smart-webcomponents 15.0.1 → 15.0.11
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/bootstrap/source/smart.element.js +1 -1
- package/framework/smart.element.js +1 -1
- package/package.json +1 -1
- package/source/angular/accordion/index.ts +1 -0
- package/source/angular/accordion/public_api.ts +5 -0
- package/source/angular/accordion/smart.accordion.module.ts +13 -0
- package/source/angular/accordion/smart.accordion.ts +370 -0
- package/source/angular/accordion/smart.accordionitem.ts +142 -0
- package/source/angular/accordion/smart.element.ts +104 -0
- package/source/angular/array/index.ts +1 -0
- package/source/angular/array/public_api.ts +3 -0
- package/source/angular/array/smart.array.module.ts +12 -0
- package/source/angular/array/smart.array.ts +817 -0
- package/source/angular/array/smart.element.ts +104 -0
- package/source/angular/barcode/index.ts +1 -0
- package/source/angular/barcode/public_api.ts +3 -0
- package/source/angular/barcode/smart.barcode.module.ts +12 -0
- package/source/angular/barcode/smart.barcode.ts +288 -0
- package/source/angular/barcode/smart.element.ts +104 -0
- package/source/angular/bootstrap/bootstrap.button.ts +160 -0
- package/source/angular/bootstrap/bootstrap.checkbox.ts +165 -0
- package/source/angular/bootstrap/bootstrap.circular.ts +151 -0
- package/source/angular/bootstrap/bootstrap.dropdown.ts +253 -0
- package/source/angular/bootstrap/bootstrap.fileinput.ts +133 -0
- package/source/angular/bootstrap/bootstrap.input.ts +160 -0
- package/source/angular/bootstrap/bootstrap.inputgroup.ts +178 -0
- package/source/angular/bootstrap/bootstrap.modal.ts +204 -0
- package/source/angular/bootstrap/bootstrap.progressbar.ts +151 -0
- package/source/angular/bootstrap/bootstrap.radiobutton.ts +156 -0
- package/source/angular/bootstrap/bootstrap.range.ts +133 -0
- package/source/angular/bootstrap/bootstrap.splitbutton.ts +253 -0
- package/source/angular/bootstrap/bootstrap.switchbutton.ts +165 -0
- package/source/angular/bootstrap/bootstrap.tabs.ts +175 -0
- package/source/angular/bootstrap/bootstrap.textarea.ts +160 -0
- package/source/angular/bootstrap/bootstrap.togglebutton.ts +156 -0
- package/source/angular/bootstrap/index.ts +1 -0
- package/source/angular/bootstrap/public_api.ts +17 -0
- package/source/angular/bootstrap/smart.element.ts +104 -0
- package/source/angular/breadcrumb/index.ts +1 -0
- package/source/angular/breadcrumb/public_api.ts +3 -0
- package/source/angular/breadcrumb/smart.breadcrumb.module.ts +12 -0
- package/source/angular/breadcrumb/smart.breadcrumb.ts +306 -0
- package/source/angular/breadcrumb/smart.element.ts +104 -0
- package/source/angular/button/index.ts +1 -0
- package/source/angular/button/public_api.ts +9 -0
- package/source/angular/button/smart.button.module.ts +15 -0
- package/source/angular/button/smart.button.ts +230 -0
- package/source/angular/button/smart.element.ts +104 -0
- package/source/angular/button/smart.powerbutton.ts +283 -0
- package/source/angular/button/smart.repeatbutton.ts +214 -0
- package/source/angular/button/smart.togglebutton.ts +235 -0
- package/source/angular/buttongroup/index.ts +1 -0
- package/source/angular/buttongroup/public_api.ts +3 -0
- package/source/angular/buttongroup/smart.buttongroup.module.ts +12 -0
- package/source/angular/buttongroup/smart.buttongroup.ts +229 -0
- package/source/angular/buttongroup/smart.element.ts +104 -0
- package/source/angular/calendar/index.ts +1 -0
- package/source/angular/calendar/public_api.ts +3 -0
- package/source/angular/calendar/smart.calendar.module.ts +12 -0
- package/source/angular/calendar/smart.calendar.ts +787 -0
- package/source/angular/calendar/smart.element.ts +104 -0
- package/source/angular/card/index.ts +1 -0
- package/source/angular/card/public_api.ts +3 -0
- package/source/angular/card/smart.card.module.ts +12 -0
- package/source/angular/card/smart.card.ts +220 -0
- package/source/angular/card/smart.element.ts +104 -0
- package/source/angular/cardview/index.ts +1 -0
- package/source/angular/cardview/public_api.ts +3 -0
- package/source/angular/cardview/smart.cardview.module.ts +12 -0
- package/source/angular/cardview/smart.cardview.ts +573 -0
- package/source/angular/cardview/smart.element.ts +104 -0
- package/source/angular/carousel/index.ts +1 -0
- package/source/angular/carousel/public_api.ts +3 -0
- package/source/angular/carousel/smart.carousel.module.ts +12 -0
- package/source/angular/carousel/smart.carousel.ts +414 -0
- package/source/angular/carousel/smart.element.ts +104 -0
- package/source/angular/chart/index.ts +1 -0
- package/source/angular/chart/public_api.ts +3 -0
- package/source/angular/chart/smart.chart.module.ts +12 -0
- package/source/angular/chart/smart.chart.ts +930 -0
- package/source/angular/chart/smart.element.ts +104 -0
- package/source/angular/checkbox/index.ts +1 -0
- package/source/angular/checkbox/public_api.ts +3 -0
- package/source/angular/checkbox/smart.checkbox.module.ts +12 -0
- package/source/angular/checkbox/smart.checkbox.ts +341 -0
- package/source/angular/checkbox/smart.element.ts +104 -0
- package/source/angular/checkinput/index.ts +1 -0
- package/source/angular/checkinput/public_api.ts +3 -0
- package/source/angular/checkinput/smart.checkinput.module.ts +12 -0
- package/source/angular/checkinput/smart.checkinput.ts +497 -0
- package/source/angular/checkinput/smart.element.ts +104 -0
- package/source/angular/chip/index.ts +1 -0
- package/source/angular/chip/public_api.ts +3 -0
- package/source/angular/chip/smart.chip.module.ts +12 -0
- package/source/angular/chip/smart.chip.ts +221 -0
- package/source/angular/chip/smart.element.ts +104 -0
- package/source/angular/colorinput/index.ts +1 -0
- package/source/angular/colorinput/public_api.ts +3 -0
- package/source/angular/colorinput/smart.colorinput.module.ts +12 -0
- package/source/angular/colorinput/smart.colorinput.ts +456 -0
- package/source/angular/colorinput/smart.element.ts +104 -0
- package/source/angular/colorpanel/index.ts +1 -0
- package/source/angular/colorpanel/public_api.ts +3 -0
- package/source/angular/colorpanel/smart.colorpanel.module.ts +12 -0
- package/source/angular/colorpanel/smart.colorpanel.ts +501 -0
- package/source/angular/colorpanel/smart.element.ts +104 -0
- package/source/angular/colorpicker/index.ts +1 -0
- package/source/angular/colorpicker/public_api.ts +3 -0
- package/source/angular/colorpicker/smart.colorpicker.module.ts +12 -0
- package/source/angular/colorpicker/smart.colorpicker.ts +756 -0
- package/source/angular/colorpicker/smart.element.ts +104 -0
- package/source/angular/columnpanel/index.ts +1 -0
- package/source/angular/columnpanel/public_api.ts +3 -0
- package/source/angular/columnpanel/smart.columnpanel.module.ts +12 -0
- package/source/angular/columnpanel/smart.columnpanel.ts +183 -0
- package/source/angular/columnpanel/smart.element.ts +104 -0
- package/source/angular/combobox/index.ts +1 -0
- package/source/angular/combobox/public_api.ts +7 -0
- package/source/angular/combobox/smart.combobox.module.ts +14 -0
- package/source/angular/combobox/smart.combobox.ts +1125 -0
- package/source/angular/combobox/smart.element.ts +104 -0
- package/source/angular/combobox/smart.listitem.ts +162 -0
- package/source/angular/combobox/smart.listitemsgroup.ts +72 -0
- package/source/angular/countryinput/index.ts +1 -0
- package/source/angular/countryinput/public_api.ts +3 -0
- package/source/angular/countryinput/smart.countryinput.module.ts +12 -0
- package/source/angular/countryinput/smart.countryinput.ts +391 -0
- package/source/angular/countryinput/smart.element.ts +104 -0
- package/source/angular/customizationdialog/index.ts +1 -0
- package/source/angular/customizationdialog/public_api.ts +3 -0
- package/source/angular/customizationdialog/smart.customizationdialog.module.ts +12 -0
- package/source/angular/customizationdialog/smart.customizationdialog.ts +311 -0
- package/source/angular/customizationdialog/smart.element.ts +104 -0
- package/source/angular/dateinput/index.ts +1 -0
- package/source/angular/dateinput/public_api.ts +3 -0
- package/source/angular/dateinput/smart.dateinput.module.ts +12 -0
- package/source/angular/dateinput/smart.dateinput.ts +465 -0
- package/source/angular/dateinput/smart.element.ts +104 -0
- package/source/angular/daterangeinput/index.ts +1 -0
- package/source/angular/daterangeinput/public_api.ts +3 -0
- package/source/angular/daterangeinput/smart.daterangeinput.module.ts +12 -0
- package/source/angular/daterangeinput/smart.daterangeinput.ts +456 -0
- package/source/angular/daterangeinput/smart.element.ts +104 -0
- package/source/angular/datetimepicker/index.ts +1 -0
- package/source/angular/datetimepicker/public_api.ts +3 -0
- package/source/angular/datetimepicker/smart.datetimepicker.module.ts +12 -0
- package/source/angular/datetimepicker/smart.datetimepicker.ts +835 -0
- package/source/angular/datetimepicker/smart.element.ts +104 -0
- package/source/angular/dockinglayout/index.ts +1 -0
- package/source/angular/dockinglayout/public_api.ts +3 -0
- package/source/angular/dockinglayout/smart.dockinglayout.module.ts +12 -0
- package/source/angular/dockinglayout/smart.dockinglayout.ts +866 -0
- package/source/angular/dockinglayout/smart.element.ts +104 -0
- package/source/angular/dropdownbutton/index.ts +1 -0
- package/source/angular/dropdownbutton/public_api.ts +3 -0
- package/source/angular/dropdownbutton/smart.dropdownbutton.module.ts +12 -0
- package/source/angular/dropdownbutton/smart.dropdownbutton.ts +542 -0
- package/source/angular/dropdownbutton/smart.element.ts +104 -0
- package/source/angular/dropdownlist/index.ts +1 -0
- package/source/angular/dropdownlist/public_api.ts +7 -0
- package/source/angular/dropdownlist/smart.dropdownlist.module.ts +14 -0
- package/source/angular/dropdownlist/smart.dropdownlist.ts +1082 -0
- package/source/angular/dropdownlist/smart.element.ts +104 -0
- package/source/angular/dropdownlist/smart.listitem.ts +162 -0
- package/source/angular/dropdownlist/smart.listitemsgroup.ts +72 -0
- package/source/angular/editor/index.ts +1 -0
- package/source/angular/editor/public_api.ts +3 -0
- package/source/angular/editor/smart.editor.module.ts +12 -0
- package/source/angular/editor/smart.editor.ts +1307 -0
- package/source/angular/editor/smart.element.ts +104 -0
- package/source/angular/element/index.ts +1 -0
- package/source/angular/element/public_api.ts +3 -0
- package/source/angular/element/smart.element.module.ts +10 -0
- package/source/angular/element/smart.element.ts +104 -0
- package/source/angular/fileupload/index.ts +1 -0
- package/source/angular/fileupload/public_api.ts +3 -0
- package/source/angular/fileupload/smart.element.ts +104 -0
- package/source/angular/fileupload/smart.fileupload.module.ts +12 -0
- package/source/angular/fileupload/smart.fileupload.ts +517 -0
- package/source/angular/filterbuilder/index.ts +1 -0
- package/source/angular/filterbuilder/public_api.ts +3 -0
- package/source/angular/filterbuilder/smart.element.ts +104 -0
- package/source/angular/filterbuilder/smart.filterbuilder.module.ts +12 -0
- package/source/angular/filterbuilder/smart.filterbuilder.ts +506 -0
- package/source/angular/filterpanel/index.ts +1 -0
- package/source/angular/filterpanel/public_api.ts +3 -0
- package/source/angular/filterpanel/smart.element.ts +104 -0
- package/source/angular/filterpanel/smart.filterpanel.module.ts +12 -0
- package/source/angular/filterpanel/smart.filterpanel.ts +334 -0
- package/source/angular/form/index.ts +1 -0
- package/source/angular/form/public_api.ts +7 -0
- package/source/angular/form/smart.element.ts +104 -0
- package/source/angular/form/smart.form.module.ts +14 -0
- package/source/angular/form/smart.form.ts +288 -0
- package/source/angular/form/smart.formcontrol.ts +336 -0
- package/source/angular/form/smart.formgroup.ts +220 -0
- package/source/angular/ganttchart/index.ts +1 -0
- package/source/angular/ganttchart/public_api.ts +3 -0
- package/source/angular/ganttchart/smart.element.ts +104 -0
- package/source/angular/ganttchart/smart.ganttchart.module.ts +12 -0
- package/source/angular/ganttchart/smart.ganttchart.ts +2142 -0
- package/source/angular/gauge/index.ts +1 -0
- package/source/angular/gauge/public_api.ts +3 -0
- package/source/angular/gauge/smart.element.ts +104 -0
- package/source/angular/gauge/smart.gauge.module.ts +12 -0
- package/source/angular/gauge/smart.gauge.ts +650 -0
- package/source/angular/grid/index.ts +1 -0
- package/source/angular/grid/public_api.ts +3 -0
- package/source/angular/grid/smart.element.ts +104 -0
- package/source/angular/grid/smart.grid.module.ts +12 -0
- package/source/angular/grid/smart.grid.ts +3091 -0
- package/source/angular/grouppanel/index.ts +1 -0
- package/source/angular/grouppanel/public_api.ts +3 -0
- package/source/angular/grouppanel/smart.element.ts +104 -0
- package/source/angular/grouppanel/smart.grouppanel.module.ts +12 -0
- package/source/angular/grouppanel/smart.grouppanel.ts +220 -0
- package/source/angular/index.d.ts +32978 -0
- package/source/angular/input/index.ts +1 -0
- package/source/angular/input/public_api.ts +3 -0
- package/source/angular/input/smart.element.ts +104 -0
- package/source/angular/input/smart.input.module.ts +12 -0
- package/source/angular/input/smart.input.ts +590 -0
- package/source/angular/kanban/index.ts +1 -0
- package/source/angular/kanban/public_api.ts +3 -0
- package/source/angular/kanban/smart.element.ts +104 -0
- package/source/angular/kanban/smart.kanban.module.ts +12 -0
- package/source/angular/kanban/smart.kanban.ts +1682 -0
- package/source/angular/layout/index.ts +1 -0
- package/source/angular/layout/public_api.ts +11 -0
- package/source/angular/layout/smart.element.ts +104 -0
- package/source/angular/layout/smart.layout.module.ts +16 -0
- package/source/angular/layout/smart.layout.ts +363 -0
- package/source/angular/layout/smart.layoutgroup.ts +140 -0
- package/source/angular/layout/smart.layoutitem.ts +129 -0
- package/source/angular/layout/smart.tablayoutgroup.ts +147 -0
- package/source/angular/layout/smart.tablayoutitem.ts +138 -0
- package/source/angular/led/index.ts +1 -0
- package/source/angular/led/public_api.ts +3 -0
- package/source/angular/led/smart.element.ts +104 -0
- package/source/angular/led/smart.led.module.ts +12 -0
- package/source/angular/led/smart.led.ts +280 -0
- package/source/angular/listbox/index.ts +1 -0
- package/source/angular/listbox/public_api.ts +7 -0
- package/source/angular/listbox/smart.element.ts +104 -0
- package/source/angular/listbox/smart.listbox.module.ts +14 -0
- package/source/angular/listbox/smart.listbox.ts +1007 -0
- package/source/angular/listbox/smart.listitem.ts +162 -0
- package/source/angular/listbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/listmenu/index.ts +1 -0
- package/source/angular/listmenu/public_api.ts +7 -0
- package/source/angular/listmenu/smart.element.ts +104 -0
- package/source/angular/listmenu/smart.listmenu.module.ts +14 -0
- package/source/angular/listmenu/smart.listmenu.ts +597 -0
- package/source/angular/listmenu/smart.menuitem.ts +126 -0
- package/source/angular/listmenu/smart.menuitemsgroup.ts +153 -0
- package/source/angular/map/index.ts +1 -0
- package/source/angular/map/public_api.ts +3 -0
- package/source/angular/map/smart.element.ts +104 -0
- package/source/angular/map/smart.map.module.ts +12 -0
- package/source/angular/map/smart.map.ts +128 -0
- package/source/angular/maskedtextbox/index.ts +1 -0
- package/source/angular/maskedtextbox/public_api.ts +3 -0
- package/source/angular/maskedtextbox/smart.element.ts +104 -0
- package/source/angular/maskedtextbox/smart.maskedtextbox.module.ts +12 -0
- package/source/angular/maskedtextbox/smart.maskedtextbox.ts +539 -0
- package/source/angular/menu/index.ts +1 -0
- package/source/angular/menu/public_api.ts +7 -0
- package/source/angular/menu/smart.element.ts +104 -0
- package/source/angular/menu/smart.menu.module.ts +14 -0
- package/source/angular/menu/smart.menu.ts +695 -0
- package/source/angular/menu/smart.menuitem.ts +126 -0
- package/source/angular/menu/smart.menuitemsgroup.ts +153 -0
- package/source/angular/multicolumnfilterpanel/index.ts +1 -0
- package/source/angular/multicolumnfilterpanel/public_api.ts +3 -0
- package/source/angular/multicolumnfilterpanel/smart.element.ts +104 -0
- package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.module.ts +12 -0
- package/source/angular/multicolumnfilterpanel/smart.multicolumnfilterpanel.ts +256 -0
- package/source/angular/multicomboinput/index.ts +1 -0
- package/source/angular/multicomboinput/public_api.ts +3 -0
- package/source/angular/multicomboinput/smart.element.ts +104 -0
- package/source/angular/multicomboinput/smart.multicomboinput.module.ts +12 -0
- package/source/angular/multicomboinput/smart.multicomboinput.ts +542 -0
- package/source/angular/multiinput/index.ts +1 -0
- package/source/angular/multiinput/public_api.ts +3 -0
- package/source/angular/multiinput/smart.element.ts +104 -0
- package/source/angular/multiinput/smart.multiinput.module.ts +12 -0
- package/source/angular/multiinput/smart.multiinput.ts +497 -0
- package/source/angular/multilinetextbox/index.ts +1 -0
- package/source/angular/multilinetextbox/public_api.ts +7 -0
- package/source/angular/multilinetextbox/smart.element.ts +104 -0
- package/source/angular/multilinetextbox/smart.listitem.ts +162 -0
- package/source/angular/multilinetextbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/multilinetextbox/smart.multilinetextbox.module.ts +14 -0
- package/source/angular/multilinetextbox/smart.multilinetextbox.ts +561 -0
- package/source/angular/multisplitbutton/index.ts +1 -0
- package/source/angular/multisplitbutton/public_api.ts +7 -0
- package/source/angular/multisplitbutton/smart.element.ts +104 -0
- package/source/angular/multisplitbutton/smart.listitem.ts +162 -0
- package/source/angular/multisplitbutton/smart.listitemsgroup.ts +72 -0
- package/source/angular/multisplitbutton/smart.multisplitbutton.module.ts +14 -0
- package/source/angular/multisplitbutton/smart.multisplitbutton.ts +620 -0
- package/source/angular/numberinput/index.ts +1 -0
- package/source/angular/numberinput/public_api.ts +3 -0
- package/source/angular/numberinput/smart.element.ts +104 -0
- package/source/angular/numberinput/smart.numberinput.module.ts +12 -0
- package/source/angular/numberinput/smart.numberinput.ts +398 -0
- package/source/angular/numerictextbox/index.ts +1 -0
- package/source/angular/numerictextbox/public_api.ts +3 -0
- package/source/angular/numerictextbox/smart.element.ts +104 -0
- package/source/angular/numerictextbox/smart.numerictextbox.module.ts +12 -0
- package/source/angular/numerictextbox/smart.numerictextbox.ts +644 -0
- package/source/angular/pager/index.ts +1 -0
- package/source/angular/pager/public_api.ts +3 -0
- package/source/angular/pager/smart.element.ts +104 -0
- package/source/angular/pager/smart.pager.module.ts +12 -0
- package/source/angular/pager/smart.pager.ts +386 -0
- package/source/angular/passwordinput/index.ts +1 -0
- package/source/angular/passwordinput/public_api.ts +3 -0
- package/source/angular/passwordinput/smart.element.ts +104 -0
- package/source/angular/passwordinput/smart.passwordinput.module.ts +12 -0
- package/source/angular/passwordinput/smart.passwordinput.ts +218 -0
- package/source/angular/passwordtextbox/index.ts +1 -0
- package/source/angular/passwordtextbox/public_api.ts +3 -0
- package/source/angular/passwordtextbox/smart.element.ts +104 -0
- package/source/angular/passwordtextbox/smart.passwordtextbox.module.ts +12 -0
- package/source/angular/passwordtextbox/smart.passwordtextbox.ts +463 -0
- package/source/angular/path/index.ts +1 -0
- package/source/angular/path/public_api.ts +3 -0
- package/source/angular/path/smart.element.ts +104 -0
- package/source/angular/path/smart.path.module.ts +12 -0
- package/source/angular/path/smart.path.ts +491 -0
- package/source/angular/phoneinput/index.ts +1 -0
- package/source/angular/phoneinput/public_api.ts +3 -0
- package/source/angular/phoneinput/smart.element.ts +104 -0
- package/source/angular/phoneinput/smart.phoneinput.module.ts +12 -0
- package/source/angular/phoneinput/smart.phoneinput.ts +493 -0
- package/source/angular/pivottable/index.ts +1 -0
- package/source/angular/pivottable/public_api.ts +3 -0
- package/source/angular/pivottable/smart.element.ts +104 -0
- package/source/angular/pivottable/smart.pivottable.module.ts +12 -0
- package/source/angular/pivottable/smart.pivottable.ts +840 -0
- package/source/angular/progressbar/index.ts +1 -0
- package/source/angular/progressbar/public_api.ts +5 -0
- package/source/angular/progressbar/smart.circularprogressbar.ts +223 -0
- package/source/angular/progressbar/smart.element.ts +104 -0
- package/source/angular/progressbar/smart.progressbar.module.ts +13 -0
- package/source/angular/progressbar/smart.progressbar.ts +235 -0
- package/source/angular/qrcode/index.ts +1 -0
- package/source/angular/qrcode/public_api.ts +3 -0
- package/source/angular/qrcode/smart.element.ts +104 -0
- package/source/angular/qrcode/smart.qrcode.module.ts +12 -0
- package/source/angular/qrcode/smart.qrcode.ts +306 -0
- package/source/angular/querybuilder/index.ts +1 -0
- package/source/angular/querybuilder/public_api.ts +3 -0
- package/source/angular/querybuilder/smart.element.ts +104 -0
- package/source/angular/querybuilder/smart.querybuilder.module.ts +12 -0
- package/source/angular/querybuilder/smart.querybuilder.ts +460 -0
- package/source/angular/radiobutton/index.ts +1 -0
- package/source/angular/radiobutton/public_api.ts +3 -0
- package/source/angular/radiobutton/smart.element.ts +104 -0
- package/source/angular/radiobutton/smart.radiobutton.module.ts +12 -0
- package/source/angular/radiobutton/smart.radiobutton.ts +350 -0
- package/source/angular/rating/index.ts +1 -0
- package/source/angular/rating/public_api.ts +3 -0
- package/source/angular/rating/smart.element.ts +104 -0
- package/source/angular/rating/smart.rating.module.ts +12 -0
- package/source/angular/rating/smart.rating.ts +309 -0
- package/source/angular/scheduler/index.ts +1 -0
- package/source/angular/scheduler/public_api.ts +3 -0
- package/source/angular/scheduler/smart.element.ts +104 -0
- package/source/angular/scheduler/smart.scheduler.module.ts +12 -0
- package/source/angular/scheduler/smart.scheduler.ts +2328 -0
- package/source/angular/scrollbar/index.ts +1 -0
- package/source/angular/scrollbar/public_api.ts +3 -0
- package/source/angular/scrollbar/smart.element.ts +104 -0
- package/source/angular/scrollbar/smart.scrollbar.module.ts +12 -0
- package/source/angular/scrollbar/smart.scrollbar.ts +260 -0
- package/source/angular/slider/index.ts +1 -0
- package/source/angular/slider/public_api.ts +3 -0
- package/source/angular/slider/smart.element.ts +104 -0
- package/source/angular/slider/smart.slider.module.ts +12 -0
- package/source/angular/slider/smart.slider.ts +632 -0
- package/source/angular/sortable/index.ts +1 -0
- package/source/angular/sortable/public_api.ts +3 -0
- package/source/angular/sortable/smart.element.ts +104 -0
- package/source/angular/sortable/smart.sortable.module.ts +12 -0
- package/source/angular/sortable/smart.sortable.ts +217 -0
- package/source/angular/sortpanel/index.ts +1 -0
- package/source/angular/sortpanel/public_api.ts +3 -0
- package/source/angular/sortpanel/smart.element.ts +104 -0
- package/source/angular/sortpanel/smart.sortpanel.module.ts +12 -0
- package/source/angular/sortpanel/smart.sortpanel.ts +180 -0
- package/source/angular/splitter/index.ts +1 -0
- package/source/angular/splitter/public_api.ts +7 -0
- package/source/angular/splitter/smart.element.ts +104 -0
- package/source/angular/splitter/smart.splitter.module.ts +14 -0
- package/source/angular/splitter/smart.splitter.ts +530 -0
- package/source/angular/splitter/smart.splitterbar.ts +121 -0
- package/source/angular/splitter/smart.splitteritem.ts +192 -0
- package/source/angular/switchbutton/index.ts +1 -0
- package/source/angular/switchbutton/public_api.ts +3 -0
- package/source/angular/switchbutton/smart.element.ts +104 -0
- package/source/angular/switchbutton/smart.switchbutton.module.ts +12 -0
- package/source/angular/switchbutton/smart.switchbutton.ts +386 -0
- package/source/angular/table/index.ts +1 -0
- package/source/angular/table/public_api.ts +3 -0
- package/source/angular/table/smart.element.ts +104 -0
- package/source/angular/table/smart.table.module.ts +12 -0
- package/source/angular/table/smart.table.ts +1493 -0
- package/source/angular/tabs/index.ts +1 -0
- package/source/angular/tabs/public_api.ts +7 -0
- package/source/angular/tabs/smart.element.ts +104 -0
- package/source/angular/tabs/smart.tabitem.ts +126 -0
- package/source/angular/tabs/smart.tabitemsgroup.ts +81 -0
- package/source/angular/tabs/smart.tabs.module.ts +14 -0
- package/source/angular/tabs/smart.tabs.ts +622 -0
- package/source/angular/tank/index.ts +1 -0
- package/source/angular/tank/public_api.ts +3 -0
- package/source/angular/tank/smart.element.ts +104 -0
- package/source/angular/tank/smart.tank.module.ts +12 -0
- package/source/angular/tank/smart.tank.ts +593 -0
- package/source/angular/textarea/index.ts +1 -0
- package/source/angular/textarea/public_api.ts +3 -0
- package/source/angular/textarea/smart.element.ts +104 -0
- package/source/angular/textarea/smart.textarea.module.ts +12 -0
- package/source/angular/textarea/smart.textarea.ts +484 -0
- package/source/angular/textbox/index.ts +1 -0
- package/source/angular/textbox/public_api.ts +7 -0
- package/source/angular/textbox/smart.element.ts +104 -0
- package/source/angular/textbox/smart.listitem.ts +162 -0
- package/source/angular/textbox/smart.listitemsgroup.ts +72 -0
- package/source/angular/textbox/smart.textbox.module.ts +14 -0
- package/source/angular/textbox/smart.textbox.ts +708 -0
- package/source/angular/threedchart/index.ts +1 -0
- package/source/angular/threedchart/public_api.ts +3 -0
- package/source/angular/threedchart/smart.element.ts +104 -0
- package/source/angular/threedchart/smart.threedchart.module.ts +12 -0
- package/source/angular/threedchart/smart.threedchart.ts +1043 -0
- package/source/angular/timeinput/index.ts +1 -0
- package/source/angular/timeinput/public_api.ts +3 -0
- package/source/angular/timeinput/smart.element.ts +104 -0
- package/source/angular/timeinput/smart.timeinput.module.ts +12 -0
- package/source/angular/timeinput/smart.timeinput.ts +427 -0
- package/source/angular/timepicker/index.ts +1 -0
- package/source/angular/timepicker/public_api.ts +3 -0
- package/source/angular/timepicker/smart.element.ts +104 -0
- package/source/angular/timepicker/smart.timepicker.module.ts +12 -0
- package/source/angular/timepicker/smart.timepicker.ts +370 -0
- package/source/angular/toast/index.ts +1 -0
- package/source/angular/toast/public_api.ts +3 -0
- package/source/angular/toast/smart.element.ts +104 -0
- package/source/angular/toast/smart.toast.module.ts +12 -0
- package/source/angular/toast/smart.toast.ts +405 -0
- package/source/angular/tooltip/index.ts +1 -0
- package/source/angular/tooltip/public_api.ts +3 -0
- package/source/angular/tooltip/smart.element.ts +104 -0
- package/source/angular/tooltip/smart.tooltip.module.ts +12 -0
- package/source/angular/tooltip/smart.tooltip.ts +339 -0
- package/source/angular/tree/index.ts +1 -0
- package/source/angular/tree/public_api.ts +7 -0
- package/source/angular/tree/smart.element.ts +104 -0
- package/source/angular/tree/smart.tree.module.ts +14 -0
- package/source/angular/tree/smart.tree.ts +1042 -0
- package/source/angular/tree/smart.treeitem.ts +135 -0
- package/source/angular/tree/smart.treeitemsgroup.ts +135 -0
- package/source/angular/validator/index.ts +1 -0
- package/source/angular/validator/public_api.ts +3 -0
- package/source/angular/validator/smart.element.ts +104 -0
- package/source/angular/validator/smart.validator.module.ts +12 -0
- package/source/angular/validator/smart.validator.ts +124 -0
- package/source/angular/window/index.ts +1 -0
- package/source/angular/window/public_api.ts +3 -0
- package/source/angular/window/smart.element.ts +104 -0
- package/source/angular/window/smart.window.module.ts +12 -0
- package/source/angular/window/smart.window.ts +1180 -0
- package/source/components/smart.ui.chart.js +1 -1
- package/source/components/smart.ui.pivottable.js +1 -1
- package/source/modules/smart.3dchart.js +1 -1
- package/source/modules/smart.accordion.js +1 -1
- package/source/modules/smart.array.js +1 -1
- package/source/modules/smart.barcode.js +1 -1
- package/source/modules/smart.breadcrumb.js +1 -1
- package/source/modules/smart.button.js +1 -1
- package/source/modules/smart.buttongroup.js +1 -1
- package/source/modules/smart.calendar.js +1 -1
- package/source/modules/smart.card.js +1 -1
- package/source/modules/smart.cardview.js +1 -1
- package/source/modules/smart.carousel.js +1 -1
- package/source/modules/smart.chart.js +2 -2
- package/source/modules/smart.checkbox.js +1 -1
- package/source/modules/smart.checkinput.js +1 -1
- package/source/modules/smart.chip.js +1 -1
- package/source/modules/smart.colorinput.js +1 -1
- package/source/modules/smart.colorpanel.js +1 -1
- package/source/modules/smart.colorpicker.js +1 -1
- package/source/modules/smart.combobox.js +1 -1
- package/source/modules/smart.common.js +1 -1
- package/source/modules/smart.countryinput.js +1 -1
- package/source/modules/smart.dateinput.js +1 -1
- package/source/modules/smart.daterangeinput.js +1 -1
- package/source/modules/smart.datetimepicker.js +1 -1
- package/source/modules/smart.dockinglayout.js +1 -1
- package/source/modules/smart.dropdownbutton.js +1 -1
- package/source/modules/smart.dropdownlist.js +1 -1
- package/source/modules/smart.editor.js +1 -1
- package/source/modules/smart.element.js +1 -1
- package/source/modules/smart.fileupload.js +1 -1
- package/source/modules/smart.form.js +1 -1
- package/source/modules/smart.formulaparser.js +1 -1
- package/source/modules/smart.ganttchart.js +1 -1
- package/source/modules/smart.gauge.js +1 -1
- package/source/modules/smart.grid.js +1 -1
- package/source/modules/smart.gridpanel.js +1 -1
- package/source/modules/smart.input.js +1 -1
- package/source/modules/smart.kanban.js +1 -1
- package/source/modules/smart.layout.js +1 -1
- package/source/modules/smart.led.js +1 -1
- package/source/modules/smart.listbox.js +1 -1
- package/source/modules/smart.listmenu.js +1 -1
- package/source/modules/smart.map.js +1 -1
- package/source/modules/smart.maskedtextbox.js +1 -1
- package/source/modules/smart.menu.js +1 -1
- package/source/modules/smart.multicomboinput.js +1 -1
- package/source/modules/smart.multiinput.js +1 -1
- package/source/modules/smart.multilinetextbox.js +1 -1
- package/source/modules/smart.multisplitbutton.js +1 -1
- package/source/modules/smart.numberinput.js +1 -1
- package/source/modules/smart.numerictextbox.js +1 -1
- package/source/modules/smart.pager.js +1 -1
- package/source/modules/smart.passwordinput.js +1 -1
- package/source/modules/smart.passwordtextbox.js +1 -1
- package/source/modules/smart.path.js +1 -1
- package/source/modules/smart.phoneinput.js +1 -1
- package/source/modules/smart.pivottable.js +2 -2
- package/source/modules/smart.progressbar.js +1 -1
- package/source/modules/smart.qrcode.js +1 -1
- package/source/modules/smart.querybuilder.js +1 -1
- package/source/modules/smart.radiobutton.js +1 -1
- package/source/modules/smart.rating.js +1 -1
- package/source/modules/smart.router.js +1 -1
- package/source/modules/smart.scheduler.js +1 -1
- package/source/modules/smart.scrollbar.js +1 -1
- package/source/modules/smart.slider.js +1 -1
- package/source/modules/smart.sortable.js +1 -1
- package/source/modules/smart.splitter.js +1 -1
- package/source/modules/smart.switchbutton.js +1 -1
- package/source/modules/smart.table.js +1 -1
- package/source/modules/smart.tabs.js +1 -1
- package/source/modules/smart.tank.js +1 -1
- package/source/modules/smart.textarea.js +1 -1
- package/source/modules/smart.textbox.js +1 -1
- package/source/modules/smart.timeinput.js +1 -1
- package/source/modules/smart.timepicker.js +1 -1
- package/source/modules/smart.toast.js +1 -1
- package/source/modules/smart.tooltip.js +1 -1
- package/source/modules/smart.tree.js +1 -1
- package/source/modules/smart.validator.js +1 -1
- package/source/modules/smart.window.js +1 -1
- package/source/react/accordion/accordion.jsx +462 -0
- package/source/react/accordion/accordion.tsx +466 -0
- package/source/react/accordion/accordionitem.jsx +211 -0
- package/source/react/accordion/accordionitem.tsx +229 -0
- package/source/react/alertwindow/alertwindow.jsx +1391 -0
- package/source/react/alertwindow/alertwindow.tsx +1349 -0
- package/source/react/array/array.jsx +907 -0
- package/source/react/array/array.tsx +909 -0
- package/source/react/barcode/barcode.jsx +372 -0
- package/source/react/barcode/barcode.tsx +394 -0
- package/source/react/breadcrumb/breadcrumb.jsx +399 -0
- package/source/react/breadcrumb/breadcrumb.tsx +405 -0
- package/source/react/button/button.jsx +331 -0
- package/source/react/button/button.tsx +359 -0
- package/source/react/button/powerbutton.jsx +301 -0
- package/source/react/button/powerbutton.tsx +323 -0
- package/source/react/button/repeatbutton.jsx +325 -0
- package/source/react/button/repeatbutton.tsx +347 -0
- package/source/react/button/togglebutton.jsx +337 -0
- package/source/react/button/togglebutton.tsx +351 -0
- package/source/react/buttongroup/buttongroup.jsx +340 -0
- package/source/react/buttongroup/buttongroup.tsx +362 -0
- package/source/react/calendar/calendar.jsx +868 -0
- package/source/react/calendar/calendar.tsx +866 -0
- package/source/react/card/card.jsx +313 -0
- package/source/react/card/card.tsx +323 -0
- package/source/react/cardview/cardview.jsx +664 -0
- package/source/react/cardview/cardview.tsx +656 -0
- package/source/react/carousel/carousel.jsx +546 -0
- package/source/react/carousel/carousel.tsx +556 -0
- package/source/react/chart/chart.jsx +1014 -0
- package/source/react/chart/chart.tsx +996 -0
- package/source/react/checkbox/checkbox.jsx +361 -0
- package/source/react/checkbox/checkbox.tsx +375 -0
- package/source/react/checkinput/checkinput.jsx +566 -0
- package/source/react/checkinput/checkinput.tsx +588 -0
- package/source/react/chip/chip.jsx +329 -0
- package/source/react/chip/chip.tsx +351 -0
- package/source/react/colorinput/colorinput.jsx +516 -0
- package/source/react/colorinput/colorinput.tsx +538 -0
- package/source/react/colorpanel/colorpanel.jsx +570 -0
- package/source/react/colorpanel/colorpanel.tsx +580 -0
- package/source/react/colorpicker/colorpicker.jsx +846 -0
- package/source/react/colorpicker/colorpicker.tsx +824 -0
- package/source/react/columnpanel/columnpanel.jsx +276 -0
- package/source/react/columnpanel/columnpanel.tsx +294 -0
- package/source/react/combobox/combobox.jsx +1212 -0
- package/source/react/combobox/combobox.tsx +1198 -0
- package/source/react/combobox/listitem.jsx +279 -0
- package/source/react/combobox/listitem.tsx +305 -0
- package/source/react/combobox/listitemsgroup.jsx +159 -0
- package/source/react/combobox/listitemsgroup.tsx +185 -0
- package/source/react/countryinput/countryinput.jsx +409 -0
- package/source/react/countryinput/countryinput.tsx +423 -0
- package/source/react/customizationdialog/customizationdialog.jsx +425 -0
- package/source/react/customizationdialog/customizationdialog.tsx +435 -0
- package/source/react/dateinput/dateinput.jsx +513 -0
- package/source/react/dateinput/dateinput.tsx +535 -0
- package/source/react/daterangeinput/daterangeinput.jsx +516 -0
- package/source/react/daterangeinput/daterangeinput.tsx +538 -0
- package/source/react/datetimepicker/datetimepicker.jsx +967 -0
- package/source/react/datetimepicker/datetimepicker.tsx +973 -0
- package/source/react/dialogwindow/dialogwindow.jsx +1391 -0
- package/source/react/dialogwindow/dialogwindow.tsx +1349 -0
- package/source/react/dockinglayout/dockinglayout.jsx +923 -0
- package/source/react/dockinglayout/dockinglayout.tsx +925 -0
- package/source/react/dropdownbutton/dropdownbutton.jsx +665 -0
- package/source/react/dropdownbutton/dropdownbutton.tsx +659 -0
- package/source/react/dropdownlist/dropdownlist.jsx +1148 -0
- package/source/react/dropdownlist/dropdownlist.tsx +1130 -0
- package/source/react/dropdownlist/listitem.jsx +279 -0
- package/source/react/dropdownlist/listitem.tsx +305 -0
- package/source/react/dropdownlist/listitemsgroup.jsx +159 -0
- package/source/react/dropdownlist/listitemsgroup.tsx +185 -0
- package/source/react/editor/editor.jsx +1373 -0
- package/source/react/editor/editor.tsx +1287 -0
- package/source/react/element/element.jsx +392 -0
- package/source/react/element/element.tsx +410 -0
- package/source/react/fileupload/fileupload.jsx +643 -0
- package/source/react/fileupload/fileupload.tsx +641 -0
- package/source/react/filterbuilder/filterbuilder.jsx +608 -0
- package/source/react/filterbuilder/filterbuilder.tsx +594 -0
- package/source/react/filterpanel/filterpanel.jsx +433 -0
- package/source/react/filterpanel/filterpanel.tsx +447 -0
- package/source/react/form/form.jsx +383 -0
- package/source/react/form/form.tsx +413 -0
- package/source/react/form/formcontrol.jsx +495 -0
- package/source/react/form/formcontrol.tsx +521 -0
- package/source/react/form/formgroup.jsx +310 -0
- package/source/react/form/formgroup.tsx +336 -0
- package/source/react/ganttchart/ganttchart.jsx +2202 -0
- package/source/react/ganttchart/ganttchart.tsx +2116 -0
- package/source/react/gauge/gauge.jsx +755 -0
- package/source/react/gauge/gauge.tsx +777 -0
- package/source/react/grid/grid.jsx +2906 -0
- package/source/react/grid/grid.tsx +2782 -0
- package/source/react/grouppanel/grouppanel.jsx +313 -0
- package/source/react/grouppanel/grouppanel.tsx +323 -0
- package/source/react/input/input.jsx +626 -0
- package/source/react/input/input.tsx +632 -0
- package/source/react/kanban/kanban.jsx +1824 -0
- package/source/react/kanban/kanban.tsx +1736 -0
- package/source/react/layout/layout.jsx +449 -0
- package/source/react/layout/layout.tsx +451 -0
- package/source/react/layout/layoutgroup.jsx +233 -0
- package/source/react/layout/layoutgroup.tsx +259 -0
- package/source/react/layout/layoutitem.jsx +219 -0
- package/source/react/layout/layoutitem.tsx +245 -0
- package/source/react/layout/tablayoutgroup.jsx +243 -0
- package/source/react/layout/tablayoutgroup.tsx +269 -0
- package/source/react/layout/tablayoutitem.jsx +231 -0
- package/source/react/layout/tablayoutitem.tsx +257 -0
- package/source/react/led/led.jsx +412 -0
- package/source/react/led/led.tsx +434 -0
- package/source/react/listbox/listbox.jsx +1044 -0
- package/source/react/listbox/listbox.tsx +1030 -0
- package/source/react/listbox/listitem.jsx +279 -0
- package/source/react/listbox/listitem.tsx +305 -0
- package/source/react/listbox/listitemsgroup.jsx +159 -0
- package/source/react/listbox/listitemsgroup.tsx +185 -0
- package/source/react/listmenu/listmenu.jsx +740 -0
- package/source/react/listmenu/listmenu.tsx +746 -0
- package/source/react/listmenu/menuitem.jsx +231 -0
- package/source/react/listmenu/menuitem.tsx +257 -0
- package/source/react/listmenu/menuitemsgroup.jsx +267 -0
- package/source/react/listmenu/menuitemsgroup.tsx +293 -0
- package/source/react/map/map.jsx +233 -0
- package/source/react/map/map.tsx +259 -0
- package/source/react/maskedtextbox/maskedtextbox.jsx +617 -0
- package/source/react/maskedtextbox/maskedtextbox.tsx +631 -0
- package/source/react/menu/menu.jsx +817 -0
- package/source/react/menu/menu.tsx +807 -0
- package/source/react/menu/menuitem.jsx +231 -0
- package/source/react/menu/menuitem.tsx +257 -0
- package/source/react/menu/menuitemsgroup.jsx +267 -0
- package/source/react/menu/menuitemsgroup.tsx +293 -0
- package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.jsx +361 -0
- package/source/react/multicolumnfilterpanel/multicolumnfilterpanel.tsx +371 -0
- package/source/react/multicomboinput/multicomboinput.jsx +626 -0
- package/source/react/multicomboinput/multicomboinput.tsx +648 -0
- package/source/react/multiinput/multiinput.jsx +566 -0
- package/source/react/multiinput/multiinput.tsx +588 -0
- package/source/react/multilinetextbox/listitem.jsx +279 -0
- package/source/react/multilinetextbox/listitem.tsx +305 -0
- package/source/react/multilinetextbox/listitemsgroup.jsx +159 -0
- package/source/react/multilinetextbox/listitemsgroup.tsx +185 -0
- package/source/react/multilinetextbox/multilinetextbox.jsx +638 -0
- package/source/react/multilinetextbox/multilinetextbox.tsx +664 -0
- package/source/react/multilinewindow/multilinewindow.jsx +1391 -0
- package/source/react/multilinewindow/multilinewindow.tsx +1349 -0
- package/source/react/multisplitbutton/listitem.jsx +279 -0
- package/source/react/multisplitbutton/listitem.tsx +305 -0
- package/source/react/multisplitbutton/listitemsgroup.jsx +159 -0
- package/source/react/multisplitbutton/listitemsgroup.tsx +185 -0
- package/source/react/multisplitbutton/multisplitbutton.jsx +751 -0
- package/source/react/multisplitbutton/multisplitbutton.tsx +745 -0
- package/source/react/numberinput/numberinput.jsx +413 -0
- package/source/react/numberinput/numberinput.tsx +435 -0
- package/source/react/numerictextbox/numerictextbox.jsx +721 -0
- package/source/react/numerictextbox/numerictextbox.tsx +719 -0
- package/source/react/pager/pager.jsx +524 -0
- package/source/react/pager/pager.tsx +542 -0
- package/source/react/passwordinput/passwordinput.jsx +317 -0
- package/source/react/passwordinput/passwordinput.tsx +335 -0
- package/source/react/passwordtextbox/passwordtextbox.jsx +523 -0
- package/source/react/passwordtextbox/passwordtextbox.tsx +541 -0
- package/source/react/path/path.jsx +629 -0
- package/source/react/path/path.tsx +623 -0
- package/source/react/phoneinput/phoneinput.jsx +481 -0
- package/source/react/phoneinput/phoneinput.tsx +495 -0
- package/source/react/pivottable/pivottable.jsx +990 -0
- package/source/react/pivottable/pivottable.tsx +980 -0
- package/source/react/progressbar/circularprogressbar.jsx +337 -0
- package/source/react/progressbar/circularprogressbar.tsx +359 -0
- package/source/react/progressbar/progressbar.jsx +351 -0
- package/source/react/progressbar/progressbar.tsx +375 -0
- package/source/react/progresswindow/progresswindow.jsx +1391 -0
- package/source/react/progresswindow/progresswindow.tsx +1349 -0
- package/source/react/promptwindow/promptwindow.jsx +1391 -0
- package/source/react/promptwindow/promptwindow.tsx +1349 -0
- package/source/react/qrcode/qrcode.jsx +396 -0
- package/source/react/qrcode/qrcode.tsx +418 -0
- package/source/react/querybuilder/querybuilder.jsx +589 -0
- package/source/react/querybuilder/querybuilder.tsx +587 -0
- package/source/react/radiobutton/radiobutton.jsx +373 -0
- package/source/react/radiobutton/radiobutton.tsx +387 -0
- package/source/react/rating/rating.jsx +315 -0
- package/source/react/rating/rating.tsx +337 -0
- package/source/react/scheduler/scheduler.jsx +2452 -0
- package/source/react/scheduler/scheduler.tsx +2336 -0
- package/source/react/scrollbar/scrollbar.jsx +380 -0
- package/source/react/scrollbar/scrollbar.tsx +402 -0
- package/source/react/slider/slider.jsx +731 -0
- package/source/react/slider/slider.tsx +753 -0
- package/source/react/sortable/sortable.jsx +319 -0
- package/source/react/sortable/sortable.tsx +341 -0
- package/source/react/sortpanel/sortpanel.jsx +273 -0
- package/source/react/sortpanel/sortpanel.tsx +291 -0
- package/source/react/splitter/splitter.jsx +613 -0
- package/source/react/splitter/splitter.tsx +627 -0
- package/source/react/splitter/splitterbar.jsx +205 -0
- package/source/react/splitter/splitterbar.tsx +231 -0
- package/source/react/splitter/splitteritem.jsx +288 -0
- package/source/react/splitter/splitteritem.tsx +314 -0
- package/source/react/switchbutton/switchbutton.jsx +421 -0
- package/source/react/switchbutton/switchbutton.tsx +435 -0
- package/source/react/table/table.jsx +1628 -0
- package/source/react/table/table.tsx +1590 -0
- package/source/react/tabs/tabitem.jsx +219 -0
- package/source/react/tabs/tabitem.tsx +245 -0
- package/source/react/tabs/tabitemsgroup.jsx +171 -0
- package/source/react/tabs/tabitemsgroup.tsx +197 -0
- package/source/react/tabs/tabs.jsx +720 -0
- package/source/react/tabs/tabs.tsx +722 -0
- package/source/react/tabswindow/tabswindow.jsx +1391 -0
- package/source/react/tabswindow/tabswindow.tsx +1349 -0
- package/source/react/tank/tank.jsx +680 -0
- package/source/react/tank/tank.tsx +702 -0
- package/source/react/textarea/textarea.jsx +541 -0
- package/source/react/textarea/textarea.tsx +559 -0
- package/source/react/textbox/listitem.jsx +279 -0
- package/source/react/textbox/listitem.tsx +305 -0
- package/source/react/textbox/listitemsgroup.jsx +159 -0
- package/source/react/textbox/listitemsgroup.tsx +185 -0
- package/source/react/textbox/textbox.jsx +842 -0
- package/source/react/textbox/textbox.tsx +864 -0
- package/source/react/threedchart/threedchart.jsx +1124 -0
- package/source/react/threedchart/threedchart.tsx +1106 -0
- package/source/react/timeinput/timeinput.jsx +463 -0
- package/source/react/timeinput/timeinput.tsx +485 -0
- package/source/react/timepicker/timepicker.jsx +406 -0
- package/source/react/timepicker/timepicker.tsx +428 -0
- package/source/react/toast/toast.jsx +510 -0
- package/source/react/toast/toast.tsx +508 -0
- package/source/react/tooltip/tooltip.jsx +453 -0
- package/source/react/tooltip/tooltip.tsx +463 -0
- package/source/react/tree/tree.jsx +1176 -0
- package/source/react/tree/tree.tsx +1158 -0
- package/source/react/tree/treeitem.jsx +243 -0
- package/source/react/tree/treeitem.tsx +269 -0
- package/source/react/tree/treeitemsgroup.jsx +243 -0
- package/source/react/tree/treeitemsgroup.tsx +269 -0
- package/source/react/validator/validator.jsx +202 -0
- package/source/react/validator/validator.tsx +228 -0
- package/source/react/waitwindow/waitwindow.jsx +1391 -0
- package/source/react/waitwindow/waitwindow.tsx +1349 -0
- package/source/react/window/window.jsx +1375 -0
- package/source/react/window/window.tsx +1349 -0
- package/source/smart.3dchart.js +6 -0
- package/source/smart.accordion.js +6 -0
- package/source/smart.ajax.js +5 -0
- package/source/smart.array.js +6 -0
- package/source/smart.barcode.js +6 -0
- package/source/smart.bootstrap.js +6 -0
- package/source/smart.breadcrumb.js +6 -0
- package/source/smart.button.js +6 -0
- package/source/smart.buttongroup.js +6 -0
- package/source/smart.calendar.js +6 -0
- package/source/smart.card.js +6 -0
- package/source/smart.cardview.js +6 -0
- package/source/smart.carousel.js +6 -0
- package/source/smart.chart.annotations.js +6 -0
- package/source/smart.chart.api.js +6 -0
- package/source/smart.chart.core.js +6 -0
- package/source/smart.chart.js +6 -0
- package/source/smart.chart.rangeselector.js +6 -0
- package/source/smart.chart.waterfall.js +6 -0
- package/source/smart.checkbox.js +6 -0
- package/source/smart.checkinput.js +6 -0
- package/source/smart.chip.js +6 -0
- package/source/smart.colorinput.js +6 -0
- package/source/smart.colorpanel.js +6 -0
- package/source/smart.colorpicker.js +6 -0
- package/source/smart.combobox.js +6 -0
- package/source/smart.complex.js +6 -0
- package/source/smart.core.js +6 -0
- package/source/smart.countryinput.js +6 -0
- package/source/smart.data.js +6 -0
- package/source/smart.date.js +6 -0
- package/source/smart.dateformatpanel.js +6 -0
- package/source/smart.dateinput.js +6 -0
- package/source/smart.daterangeinput.js +6 -0
- package/source/smart.datetimepicker.js +6 -0
- package/source/smart.dockinglayout.js +6 -0
- package/source/smart.draw.js +6 -0
- package/source/smart.dropdownbutton.js +6 -0
- package/source/smart.dropdownlist.js +6 -0
- package/source/smart.editor.js +6 -0
- package/source/smart.element.js +6 -0
- package/source/smart.elements.js +3 -3
- package/source/smart.export.js +6 -0
- package/source/smart.fileupload.js +6 -0
- package/source/smart.filter.js +6 -0
- package/source/smart.filterbuilder.js +6 -0
- package/source/smart.filterpanel.js +6 -0
- package/source/smart.form.js +6 -0
- package/source/smart.format.js +6 -0
- package/source/smart.formulaparser.js +6 -0
- package/source/smart.ganttchart.js +6 -0
- package/source/smart.gauge.js +6 -0
- package/source/smart.grid.cell.js +6 -0
- package/source/smart.grid.chart.js +6 -0
- package/source/smart.grid.column.js +6 -0
- package/source/smart.grid.core.js +6 -0
- package/source/smart.grid.dialog.js +6 -0
- package/source/smart.grid.edit.js +6 -0
- package/source/smart.grid.export.js +6 -0
- package/source/smart.grid.filter.js +6 -0
- package/source/smart.grid.group.js +6 -0
- package/source/smart.grid.js +6 -0
- package/source/smart.grid.menu.js +6 -0
- package/source/smart.grid.pager.js +6 -0
- package/source/smart.grid.reorder.js +6 -0
- package/source/smart.grid.resize.js +6 -0
- package/source/smart.grid.row.js +6 -0
- package/source/smart.grid.select.js +6 -0
- package/source/smart.grid.sort.js +6 -0
- package/source/smart.grid.toolbar.js +6 -0
- package/source/smart.grid.tree.js +6 -0
- package/source/smart.grid.view.js +6 -0
- package/source/smart.gridpanel.js +6 -0
- package/source/smart.input.js +6 -0
- package/source/smart.kanban.js +6 -0
- package/source/smart.layout.js +6 -0
- package/source/smart.led.js +6 -0
- package/source/smart.listbox.js +6 -0
- package/source/smart.listmenu.js +6 -0
- package/source/smart.map.js +6 -0
- package/source/smart.maskedtextbox.js +6 -0
- package/source/smart.math.js +6 -0
- package/source/smart.menu.js +6 -0
- package/source/smart.multicomboinput.js +6 -0
- package/source/smart.multiinput.js +6 -0
- package/source/smart.multilinetextbox.js +6 -0
- package/source/smart.multisplitbutton.js +6 -0
- package/source/smart.numberformatpanel.js +6 -0
- package/source/smart.numberinput.js +6 -0
- package/source/smart.numeric.js +6 -0
- package/source/smart.numerictextbox.js +6 -0
- package/source/smart.pager.js +6 -0
- package/source/smart.passwordinput.js +6 -0
- package/source/smart.passwordtextbox.js +6 -0
- package/source/smart.path.js +6 -0
- package/source/smart.phoneinput.js +6 -0
- package/source/smart.pivottable.js +6 -0
- package/source/smart.powerbutton.js +6 -0
- package/source/smart.progressbar.js +6 -0
- package/source/smart.qrcode.js +6 -0
- package/source/smart.radiobutton.js +6 -0
- package/source/smart.rating.js +6 -0
- package/source/smart.router.js +6 -0
- package/source/smart.scheduler.js +6 -0
- package/source/smart.scrollbar.js +6 -0
- package/source/smart.slider.js +6 -0
- package/source/smart.sortable.js +6 -0
- package/source/smart.splitter.js +6 -0
- package/source/smart.switchbutton.js +6 -0
- package/source/smart.table.js +6 -0
- package/source/smart.tabs.js +6 -0
- package/source/smart.tank.js +6 -0
- package/source/smart.textarea.js +6 -0
- package/source/smart.textbox.js +6 -0
- package/source/smart.tickintervalhandler.js +6 -0
- package/source/smart.timeinput.js +6 -0
- package/source/smart.timepicker.js +6 -0
- package/source/smart.toast.js +6 -0
- package/source/smart.tooltip.js +6 -0
- package/source/smart.tree.js +6 -0
- package/source/smart.validationpanel.js +6 -0
- package/source/smart.validator.js +6 -0
- package/source/smart.window.js +6 -0
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* License: https://htmlelements.com/license/ * /
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
|
-
*/!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=232)}({0:function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var o=(i=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),a=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(a).concat([o]).join("\n")}var i,s,l;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&o[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},1:function(t,e,r){(e=r(0)(!1)).push([t.i,"/* smart-button, smart-repeat-button, smart-toggle-button */\r\nsmart-button,\r\nsmart-toggle-button,\r\nsmart-repeat-button {\r\n --smart-button-flat-color: var(--smart-background-color);\r\n text-align: center;\r\n display: inline-flex;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n text-transform: var(--smart-button-text-transform);\r\n letter-spacing: .08929em;\r\n overflow: hidden;\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n visibility: hidden;\r\n font-weight: 500;\r\n}\r\nsmart-button.smart-element,\r\nsmart-toggle-button.smart-element,\r\nsmart-repeat-button.smart-element {\r\n display: inline-flex;\r\n visibility: inherit;\r\n}\r\nsmart-button button::-moz-focus-inner,\r\nsmart-toggle-button button::-moz-focus-inner,\r\nsmart-repeat-button button::-moz-focus-inner {\r\n border: 0;\r\n}\r\nsmart-button.primary,\r\nsmart-toggle-button.primary,\r\nsmart-repeat-button.primary {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-primary);\r\n --smart-border: var(--smart-primary);\r\n --smart-border-rgb: var(--smart-primary-rgb);\r\n --smart-background-color: var(--smart-primary-color);\r\n --smart-ui-state-hover: var(--smart-primary);\r\n --smart-ui-state-border-hover: var(--smart-primary);\r\n --smart-ui-state-color-hover: var(--smart-primary-color);\r\n --smart-ui-state-active: var(--smart-primary);\r\n --smart-ui-state-border-active: var(--smart-primary);\r\n --smart-ui-state-color-active: var(--smart-primary-color);\r\n --smart-ui-state-focus: var(--smart-primary);\r\n --smart-ui-state-border-focus: var(--smart-primary);\r\n --smart-ui-state-color-focus: var(--smart-primary-color);\r\n --smart-button-flat-color: var(--smart-primary);\r\n --smart-button-outlined-color: var(--smart-primary);\r\n --smart-button-outlined-border: var(--smart-primary);\r\n}\r\nsmart-button.secondary,\r\nsmart-toggle-button.secondary,\r\nsmart-repeat-button.secondary {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-secondary);\r\n --smart-border: var(--smart-secondary);\r\n --smart-border-rgb: var(--smart-secondary-rgb);\r\n --smart-background-color: var(--smart-secondary-color);\r\n --smart-ui-state-hover: var(--smart-secondary);\r\n --smart-ui-state-border-hover: var(--smart-secondary);\r\n --smart-ui-state-color-hover: var(--smart-secondary-color);\r\n --smart-ui-state-active: var(--smart-secondary);\r\n --smart-ui-state-border-active: var(--smart-secondary);\r\n --smart-ui-state-color-active: var(--smart-secondary-color);\r\n --smart-ui-state-focus: var(--smart-secondary);\r\n --smart-ui-state-border-focus: var(--smart-secondary);\r\n --smart-ui-state-color-focus: var(--smart-secondary-color);\r\n --smart-button-flat-color: var(--smart-secondary);\r\n --smart-button-outlined-color: var(--smart-secondary);\r\n --smart-button-outlined-border: var(--smart-secondary);\r\n}\r\nsmart-button.success,\r\nsmart-toggle-button.success,\r\nsmart-repeat-button.success {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-success);\r\n --smart-border: var(--smart-success);\r\n --smart-border-rgb: var(--smart-success-rgb);\r\n --smart-background-color: var(--smart-success-color);\r\n --smart-ui-state-hover: var(--smart-success);\r\n --smart-ui-state-border-hover: var(--smart-success);\r\n --smart-ui-state-color-hover: var(--smart-success-color);\r\n --smart-ui-state-active: var(--smart-success);\r\n --smart-ui-state-border-active: var(--smart-success);\r\n --smart-ui-state-color-active: var(--smart-success-color);\r\n --smart-ui-state-focus: var(--smart-success);\r\n --smart-ui-state-border-focus: var(--smart-success);\r\n --smart-ui-state-color-focus: var(--smart-success-color);\r\n --smart-button-flat-color: var(--smart-success);\r\n --smart-button-outlined-color: var(--smart-success);\r\n --smart-button-outlined-border: var(--smart-success);\r\n}\r\nsmart-button.error,\r\nsmart-toggle-button.error,\r\nsmart-repeat-button.error {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-error);\r\n --smart-border: var(--smart-error);\r\n --smart-border-rgb: var(--smart-error-rgb);\r\n --smart-background-color: var(--smart-error-color);\r\n --smart-ui-state-hover: var(--smart-error);\r\n --smart-ui-state-border-hover: var(--smart-error);\r\n --smart-ui-state-color-hover: var(--smart-error-color);\r\n --smart-ui-state-active: var(--smart-error);\r\n --smart-ui-state-border-active: var(--smart-error);\r\n --smart-ui-state-color-active: var(--smart-error-color);\r\n --smart-ui-state-focus: var(--smart-error);\r\n --smart-ui-state-border-focus: var(--smart-error);\r\n --smart-ui-state-color-focus: var(--smart-error-color);\r\n --smart-button-flat-color: var(--smart-error);\r\n --smart-button-outlined-color: var(--smart-error);\r\n --smart-button-outlined-border: var(--smart-error);\r\n}\r\nsmart-button.info,\r\nsmart-toggle-button.info,\r\nsmart-repeat-button.info {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-info);\r\n --smart-border: var(--smart-info);\r\n --smart-border-rgb: var(--smart-info-rgb);\r\n --smart-background-color: var(--smart-info-color);\r\n --smart-ui-state-hover: var(--smart-info);\r\n --smart-ui-state-border-hover: var(--smart-info);\r\n --smart-ui-state-color-hover: var(--smart-info-color);\r\n --smart-ui-state-active: var(--smart-info);\r\n --smart-ui-state-border-active: var(--smart-info);\r\n --smart-ui-state-color-active: var(--smart-info-color);\r\n --smart-ui-state-focus: var(--smart-info);\r\n --smart-ui-state-border-focus: var(--smart-info);\r\n --smart-ui-state-color-focus: var(--smart-info-color);\r\n --smart-button-flat-color: var(--smart-info);\r\n --smart-button-outlined-color: var(--smart-info);\r\n --smart-button-outlined-border: var(--smart-info);\r\n}\r\nsmart-button.warning,\r\nsmart-toggle-button.warning,\r\nsmart-repeat-button.warning {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-warning);\r\n --smart-border: var(--smart-warning);\r\n --smart-border-rgb: var(--smart-warning-rgb);\r\n --smart-background-color: var(--smart-warning-color);\r\n --smart-ui-state-hover: var(--smart-warning);\r\n --smart-ui-state-border-hover: var(--smart-warning);\r\n --smart-ui-state-color-hover: var(--smart-warning-color);\r\n --smart-ui-state-active: var(--smart-warning);\r\n --smart-ui-state-border-active: var(--smart-warning);\r\n --smart-ui-state-color-active: var(--smart-warning-color);\r\n --smart-ui-state-focus: var(--smart-warning);\r\n --smart-ui-state-border-focus: var(--smart-warning);\r\n --smart-ui-state-color-focus: var(--smart-warning-color);\r\n --smart-button-flat-color: var(--smart-warning);\r\n --smart-button-outlined-color: var(--smart-warning);\r\n --smart-button-outlined-border: var(--smart-warning);\r\n}\r\nsmart-button.light,\r\nsmart-toggle-button.light,\r\nsmart-repeat-button.light {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-light);\r\n --smart-border: var(--smart-light);\r\n --smart-border-rgb: var(--smart-light-rgb);\r\n --smart-background-color: var(--smart-light-color);\r\n --smart-ui-state-hover: var(--smart-light);\r\n --smart-ui-state-border-hover: var(--smart-light);\r\n --smart-ui-state-color-hover: var(--smart-light-color);\r\n --smart-ui-state-active: var(--smart-light);\r\n --smart-ui-state-border-active: var(--smart-light);\r\n --smart-ui-state-color-active: var(--smart-light-color);\r\n --smart-ui-state-focus: var(--smart-light);\r\n --smart-ui-state-border-focus: var(--smart-light);\r\n --smart-ui-state-color-focus: var(--smart-light-color);\r\n --smart-button-flat-color: var(--smart-light);\r\n --smart-button-outlined-color: var(--smart-light);\r\n --smart-button-outlined-border: var(--smart-light);\r\n}\r\nsmart-button.dark,\r\nsmart-toggle-button.dark,\r\nsmart-repeat-button.dark {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-dark);\r\n --smart-border: var(--smart-dark);\r\n --smart-border-rgb: var(--smart-dark-rgb);\r\n --smart-background-color: var(--smart-dark-color);\r\n --smart-ui-state-hover: var(--smart-dark);\r\n --smart-ui-state-border-hover: var(--smart-dark);\r\n --smart-ui-state-color-hover: var(--smart-dark-color);\r\n --smart-ui-state-active: var(--smart-dark);\r\n --smart-ui-state-border-active: var(--smart-dark);\r\n --smart-ui-state-color-active: var(--smart-dark-color);\r\n --smart-ui-state-focus: var(--smart-dark);\r\n --smart-ui-state-border-focus: var(--smart-dark);\r\n --smart-ui-state-color-focus: var(--smart-dark-color);\r\n --smart-button-flat-color: var(--smart-dark);\r\n --smart-button-outlined-color: var(--smart-dark);\r\n --smart-button-outlined-border: var(--smart-dark);\r\n}\r\nsmart-button[hover],\r\nsmart-toggle-button[hover],\r\nsmart-repeat-button[hover] {\r\n color: var(--smart-ui-state-color-hover);\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n opacity: var(--smart-button-opacity-hover);\r\n}\r\nsmart-button[focus],\r\nsmart-toggle-button[focus],\r\nsmart-repeat-button[focus] {\r\n color: var(--smart-ui-state-color-focus);\r\n border-color: var(--smart-ui-state-border-focus);\r\n background-color: var(--smart-ui-state-focus);\r\n opacity: var(--smart-button-opacity-focus);\r\n}\r\nsmart-button[active],\r\nsmart-toggle-button[active],\r\nsmart-repeat-button[active] {\r\n color: var(--smart-ui-state-color-active);\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n opacity: var(--smart-button-opacity-active);\r\n}\r\nsmart-button[disabled],\r\nsmart-toggle-button[disabled],\r\nsmart-repeat-button[disabled] {\r\n color: var(--smart-disabled-color);\r\n border-color: var(--smart-disabled);\r\n background-color: var(--smart-disabled);\r\n cursor: default;\r\n --smart-background: var(--smart-disabled);\r\n --smart-border: var(--smart-disabled);\r\n --smart-background-color: var(--smart-disabled-color);\r\n}\r\nsmart-button.large button,\r\nsmart-toggle-button.large button,\r\nsmart-repeat-button.large button {\r\n padding: var(--smart-button-large-padding);\r\n font-size: var(--smart-button-large-font-size);\r\n}\r\nsmart-button.small button,\r\nsmart-toggle-button.small button,\r\nsmart-repeat-button.small button {\r\n padding: var(--smart-button-small-padding);\r\n font-size: var(--smart-button-small-font-size);\r\n}\r\nsmart-button.very-small button,\r\nsmart-toggle-button.very-small button,\r\nsmart-repeat-button.very-small button {\r\n padding: var(--smart-button-very-small-padding);\r\n font-size: var(--smart-button-very-small-font-size);\r\n}\r\nsmart-button.rounded,\r\nsmart-toggle-button.rounded,\r\nsmart-repeat-button.rounded {\r\n --smart-border-top-left-radius: 50px;\r\n --smart-border-top-right-radius: 50px;\r\n --smart-border-bottom-left-radius: 50px;\r\n --smart-border-bottom-right-radius: 50px;\r\n border-radius: var(--smart-border-bottom-left-radius) !important;\r\n}\r\nsmart-button.squared,\r\nsmart-toggle-button.squared,\r\nsmart-repeat-button.squared {\r\n --smart-border-top-left-radius: 0;\r\n --smart-border-top-right-radius: 0;\r\n --smart-border-bottom-left-radius: 0;\r\n --smart-border-bottom-right-radius: 0;\r\n}\r\nsmart-button.flat,\r\nsmart-toggle-button.flat,\r\nsmart-repeat-button.flat {\r\n color: var(--smart-button-flat-color);\r\n background: transparent;\r\n border-color: transparent;\r\n}\r\nsmart-button.flat[hover],\r\nsmart-toggle-button.flat[hover],\r\nsmart-repeat-button.flat[hover] {\r\n color: var(--smart-button-flat-color);\r\n background: transparent;\r\n border-color: transparent;\r\n}\r\nsmart-button.flat[active],\r\nsmart-toggle-button.flat[active],\r\nsmart-repeat-button.flat[active] {\r\n color: var(--smart-button-flat-color);\r\n background: transparent;\r\n border-color: transparent;\r\n}\r\nsmart-button.flat[focus],\r\nsmart-toggle-button.flat[focus],\r\nsmart-repeat-button.flat[focus] {\r\n border-color: var(--smart-ui-state-focus);\r\n}\r\nsmart-button.flat[checked],\r\nsmart-toggle-button.flat[checked],\r\nsmart-repeat-button.flat[checked] {\r\n text-decoration: underline;\r\n background: var(--smart-ui-state-active);\r\n}\r\nsmart-button.flat .smart-ripple,\r\nsmart-toggle-button.flat .smart-ripple,\r\nsmart-repeat-button.flat .smart-ripple {\r\n background-color: var(--smart-button-flat-color);\r\n}\r\nsmart-button.outlined,\r\nsmart-toggle-button.outlined,\r\nsmart-repeat-button.outlined {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-button-outlined-border);\r\n background: transparent;\r\n border-width: calc(2 * var(--smart-border-width));\r\n}\r\nsmart-button.outlined[hover],\r\nsmart-toggle-button.outlined[hover],\r\nsmart-repeat-button.outlined[hover] {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-button-outlined-border);\r\n background: transparent;\r\n}\r\nsmart-button.outlined[active],\r\nsmart-toggle-button.outlined[active],\r\nsmart-repeat-button.outlined[active] {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-button-outlined-border);\r\n background: transparent;\r\n}\r\nsmart-button.outlined[focus],\r\nsmart-toggle-button.outlined[focus],\r\nsmart-repeat-button.outlined[focus] {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-ui-state-focus);\r\n background: transparent;\r\n}\r\nsmart-button.outlined[checked],\r\nsmart-toggle-button.outlined[checked],\r\nsmart-repeat-button.outlined[checked] {\r\n color: var(--smart-ui-state-color-active);\r\n border-color: var(--smart-ui-state-active);\r\n background: var(--smart-ui-state-active);\r\n}\r\nsmart-button.outlined .smart-ripple,\r\nsmart-toggle-button.outlined .smart-ripple,\r\nsmart-repeat-button.outlined .smart-ripple {\r\n background-color: var(--smart-button-outlined-color);\r\n}\r\nsmart-button.outlined button.smart-button,\r\nsmart-toggle-button.outlined button.smart-button,\r\nsmart-repeat-button.outlined button.smart-button {\r\n border-radius: initial;\r\n}\r\nsmart-button.raised,\r\nsmart-toggle-button.raised,\r\nsmart-repeat-button.raised {\r\n box-shadow: var(--smart-elevation-2);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n}\r\nsmart-button.raised[hover],\r\nsmart-toggle-button.raised[hover],\r\nsmart-repeat-button.raised[hover] {\r\n box-shadow: var(--smart-elevation-4);\r\n}\r\nsmart-button.raised[active], smart-button.raised[checked], smart-button.raised[active],\r\nsmart-button.raised button[active],\r\nsmart-toggle-button.raised[active],\r\nsmart-toggle-button.raised[checked],\r\nsmart-toggle-button.raised[active],\r\nsmart-toggle-button.raised button[active],\r\nsmart-repeat-button.raised[active],\r\nsmart-repeat-button.raised[checked],\r\nsmart-repeat-button.raised[active],\r\nsmart-repeat-button.raised button[active] {\r\n box-shadow: var(--smart-elevation-8);\r\n}\r\nsmart-button.raised[focus], smart-button.raised[focus]:not([checked]),\r\nsmart-toggle-button.raised[focus],\r\nsmart-toggle-button.raised[focus]:not([checked]),\r\nsmart-repeat-button.raised[focus],\r\nsmart-repeat-button.raised[focus]:not([checked]) {\r\n box-shadow: var(--smart-elevation-6);\r\n}\r\nsmart-button.floating,\r\nsmart-toggle-button.floating,\r\nsmart-repeat-button.floating {\r\n border-radius: 50%;\r\n width: 48px;\r\n height: 48px;\r\n box-shadow: var(--smart-elevation-4);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n}\r\nsmart-button.floating[hover],\r\nsmart-toggle-button.floating[hover],\r\nsmart-repeat-button.floating[hover] {\r\n box-shadow: var(--smart-elevation-6);\r\n}\r\nsmart-button.floating[active], smart-button.floating[checked],\r\nsmart-toggle-button.floating[active],\r\nsmart-toggle-button.floating[checked],\r\nsmart-repeat-button.floating[active],\r\nsmart-repeat-button.floating[checked] {\r\n box-shadow: var(--smart-elevation-12);\r\n}\r\nsmart-button.floating[focus], smart-button.floating[focus]:not([checked]),\r\nsmart-toggle-button.floating[focus],\r\nsmart-toggle-button.floating[focus]:not([checked]),\r\nsmart-repeat-button.floating[focus],\r\nsmart-repeat-button.floating[focus]:not([checked]) {\r\n box-shadow: var(--smart-elevation-6);\r\n}\r\n\r\nbutton.smart-button {\r\n position: relative;\r\n padding: var(--smart-button-padding);\r\n text-align: inherit;\r\n vertical-align: inherit;\r\n cursor: inherit;\r\n text-transform: inherit;\r\n font-weight: inherit;\r\n letter-spacing: inherit;\r\n background: inherit;\r\n color: inherit;\r\n border: none;\r\n -webkit-font-smoothing: antialiased;\r\n opacity: var(--smart-button-opacity);\r\n white-space: nowrap;\r\n border-radius: inherit;\r\n}\r\n\r\n.smart-button .smart-ripple {\r\n background: var(--smart-background-color);\r\n}\r\n\r\nsmart-toggle-button .smart-container,\r\n[smart-toggle-button] .smart-container {\r\n font-weight: inherit;\r\n font-style: inherit;\r\n}\r\nsmart-toggle-button[checked],\r\n[smart-toggle-button][checked] {\r\n color: var(--smart-ui-state-color-selected);\r\n border-color: var(--smart-ui-state-border-selected);\r\n background-color: var(--smart-ui-state-selected);\r\n}\r\n\r\n.smart-scroll-button .smart-button {\r\n padding: 0px;\r\n}\r\n\r\n:host(.smart-button.flat) .smart-ripple {\r\n background-color: var(--smart-button-flat-color);\r\n}\r\n\r\n:host(.smart-button.outlined) .smart-ripple {\r\n background-color: var(--smart-button-outlined-color);\r\n}\r\n\r\nbutton.smart-button[type]:not(.smart-container) {\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n text-align: center;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n text-transform: var(--smart-button-text-transform);\r\n font-weight: 500;\r\n letter-spacing: .08929em;\r\n overflow: hidden;\r\n font-style: var(--smart-font-style);\r\n font-size: var(--smart-font-size);\r\n background: var(--smart-background);\r\n outline: none;\r\n}\r\n\r\nbutton.smart-button[type]:hover {\r\n color: var(--smart-ui-state-color-hover);\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n}\r\n\r\nbutton.smart-button[type]:not([disabled]):active {\r\n color: var(--smart-ui-state-color-active);\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n}\r\n\r\n/* smart-button, smart-repeat-button, smart-toggle-button */\r\nsmart-button[right-to-left],\r\nsmart-toggle-button[right-to-left],\r\nsmart-repeat-button[right-to-left] {\r\n direction: rtl;\r\n}\r\n",""]),t.exports=e},10:function(t,e){Smart("smart-scroll-bar",class extends Smart.BaseElement{static get properties(){return{clickRepeatDelay:{type:"integer",value:50},largeStep:{type:"integer",value:100},min:{type:"integer",value:0},max:{type:"integer",value:1e3},mechanicalAction:{value:"switchWhileDragging",allowedValues:["switchUntilReleased","switchWhenReleased","switchWhileDragging"],type:"string"},orientation:{type:"string",value:"horizontal",allowedValues:["horizontal","vertical"]},step:{type:"integer",value:10},showButtons:{type:"boolean",value:!0,defaultReflectToAttribute:!0},value:{type:"integer",value:0}}}static get styleUrls(){return["smart.scrollbar.css"]}template(){return'<div id="container" class="smart-container" role="presentation">\n <div id="nearButton" class="smart-scroll-button smart-arrow-left" role="presentation" aria-hidden="true"></div>\n <div id="track" class="smart-track" role="presentation">\n <div id="thumb" class="smart-thumb" role="presentation"></div>\n </div>\n <div id="farButton" class="smart-scroll-button smart-arrow-right" role="presentation" aria-hidden="true"></div>\n </div>'}static get listeners(){return{"nearButton.click":"_nearButtonClickHandler","nearButton.down":"_startRepeat","nearButton.up":"_stopRepeat","nearButton.pointerenter":"_updateInBoundsFlag","nearButton.pointerleave":"_updateInBoundsFlag","farButton.click":"_farButtonClickHandler","farButton.down":"_startRepeat","farButton.up":"_stopRepeat","farButton.pointerenter":"_updateInBoundsFlag","farButton.pointerleave":"_updateInBoundsFlag","track.down":"_trackDownHandler","track.click":"_trackClickHandler","track.move":"_trackMoveHandler","thumb.down":"_dragStartHandler","document.move":"_dragHandler","document.up":"_dragEndHandler",up:"_dragEndHandler","document.selectstart":"_selectStartHandler",resize:"_resizeHandler"}}_updateInBoundsFlag(t){const e=this,r=t.target;r._isPointerInBounds=!0,-1!==t.type.indexOf("leave")&&(r._isPointerInBounds=!1),1!==("buttons"in t?t.buttons:t.which)&&e._stopRepeat(t)}_startRepeat(t){const e=this;if(e.disabled)return;const r=t.target;r._initialTimer||(r._initialTimer=setTimeout((function(){r._repeatTimer=setInterval(()=>{if(r._isPointerInBounds){const e="buttons"in t?t.buttons:t.which;r.$.fireEvent("click",{buttons:e,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY})}},e.clickRepeatDelay)}),3*e.clickRepeatDelay))}_stopRepeat(t){if(this.disabled)return;const e=t.target;e._repeatTimer&&(clearInterval(e._repeatTimer),e._repeatTimer=null),e._initialTimer&&(clearTimeout(e._initialTimer),e._initialTimer=null)}_calculateThumbSize(t){const e=this,r=e.max-e.min,n="horizontal"===e.orientation?e.$.track.offsetWidth>10:e.$.track.offsetHeight>10;let o=0;return r>=1&&n?(o=t/(r+t)*t,e.$.thumb.className.indexOf("smart-hidden")>=0&&e.$thumb.removeClass("smart-hidden")):e.$thumb.addClass("smart-hidden"),Math.max(10,Math.min(o,t))}_dragStartHandler(t){this.disabled||(this.thumbCapture=!0,this.dragStartX=t.clientX,this.dragStartY=t.clientY,this.dragStartValue=this.value,t.stopPropagation(),t.preventDefault())}_dragHandler(t){if(!0!==this.thumbCapture)return;this._isThumbDragged=!0;const e=(this.max-this.min)/(this.scrollBarSize-this.thumbSize),r="horizontal"===this.orientation?(t.clientX-this.dragStartX)*e:(t.clientY-this.dragStartY)*e;let n=r;this.rightToLeft&&"horizontal"===this.orientation&&(n=-r),this._updateValue(this.dragStartValue+n),t.stopPropagation(),t.preventDefault(),t.originalEvent&&(t.originalEvent.stopPropagation(),t.originalEvent.preventDefault())}_dragEndHandler(t){const e=this;e._trackDownTimer&&(clearInterval(e._trackDownTimer),e._trackDownTimer=null),e.thumbCapture&&(e.thumbCapture=!1,e._isThumbDragged=!1,"switchWhenReleased"===e.mechanicalAction?e._updateValue(e.dragStartValue,e.value):"switchUntilReleased"===this.mechanicalAction&&e._updateValue(e.dragStartValue),t.preventDefault(),t.stopPropagation(),t.originalEvent.preventDefault(),t.originalEvent.stopPropagation())}_farButtonClickHandler(){const t=this;if(t.disabled)return;const e=t.value;t._updateValue(t.value+("horizontal"===t.orientation&&t.rightToLeft?-1:1)*t.step),"switchUntilReleased"===t.mechanicalAction&&t._updateValue(e)}_nearButtonClickHandler(){const t=this;if(t.disabled)return;const e=t.value;t._updateValue(t.value-("horizontal"===t.orientation&&t.rightToLeft?-1:1)*t.step),"switchUntilReleased"===t.mechanicalAction&&t._updateValue(e)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;switch(t){case"min":case"max":case"orientation":case"showButtons":n._layout(),"min"===t?n.setAttribute("aria-valuemin",r):"max"===t?n.setAttribute("aria-valuemax",r):"orientation"===t&&n.setAttribute("aria-orientation",r);break;case"value":n._updateValue(e,r);break;default:n._layout()}}render(){this.setAttribute("role","scrollbar"),this.setAttribute("aria-orientation",this.orientation),this.setAttribute("aria-valuemin",this.min),this.setAttribute("aria-valuemax",this.max),this.setAttribute("aria-valuenow",this.value),this._layout(),super.render()}_resizeHandler(){this._layout()}refresh(){this._layout()}beginUpdate(){this._isUpdating=!0}endUpdate(){this._isUpdating=!1,this.refreshValue()}refreshValue(){this._layout(),this._updateValue(this.value)}_layout(){const t=this;t._isUpdating||(t.scrollBarSize="horizontal"===t.orientation?t.$.track.offsetWidth:t.$.track.offsetHeight,t.thumbSize=t._calculateThumbSize(t.scrollBarSize),"horizontal"===t.orientation&&t.$.thumb.style.width!==t.thumbSize+"px"?t.$.thumb.style.width=t.thumbSize+"px":"vertical"===t.orientation&&t.$.thumb.style.height!==t.thumbSize+"px"&&(t.$.thumb.style.height=t.thumbSize+"px"),"horizontal"===t.orientation?(t.$.nearButton.classList.contains("smart-arrow-up")&&t.$.nearButton.classList.remove("smart-arrow-up"),t.$.farButton.classList.contains("smart-arrow-down")&&t.$.farButton.classList.remove("smart-arrow-down"),t.$.nearButton.classList.contains("smart-arrow-left")||t.$.nearButton.classList.add("smart-arrow-left"),t.$.farButton.classList.contains("smart-arrow-right")||t.$.farButton.classList.add("smart-arrow-right")):(t.$.nearButton.classList.contains("smart-arrow-left")&&t.$.nearButton.classList.remove("smart-arrow-left"),t.$.farButton.classList.contains("smart-arrow-right")&&t.$.farButton.classList.remove("smart-arrow-right"),t.$.nearButton.classList.contains("smart-arrow-up")||t.$.nearButton.classList.add("smart-arrow-up"),t.$.farButton.classList.contains("smart-arrow-down")||t.$.farButton.classList.add("smart-arrow-down")),t._updateThumbPosition(),(t.value>t.max||t.value<t.min)&&t._updateValue(t.value,t.value>t.max?t.max:t.min))}_selectStartHandler(t){this.thumbCapture&&t.preventDefault()}_trackDownHandler(t){const e=this;t.target===e.$.track&&(e._trackDownTimer&&clearInterval(e._trackDownTimer),e.thumbCapture||(e._trackDownTimer=setInterval((function(){e._trackClickHandler(t)}),e.clickRepeatDelay),t.stopPropagation(),t.preventDefault()))}_trackClickHandler(t){const e=this;if(e.disabled)return;if(e._isThumbDragged)return clearInterval(e._trackDownTimer),void(e._trackDownTimer=null);const r=e.$.thumb.getBoundingClientRect(),n=t.pageX-window.pageXOffset,o=t.pageY-window.pageYOffset,a=(e.rightToLeft?-1:1)*e.value;"horizontal"===e.orientation?n>(e._isThumbDragged?e.dragStartX:r.right)?e._updateValue(e.value+(e.rightToLeft?-1:1)*e.largeStep):n<(e._isThumbDragged?e.dragStartX:r.left)&&e._updateValue(e.value-(e.rightToLeft?-1:1)*e.largeStep):o>(e._isThumbDragged?e.dragStartY:r.bottom)?e._updateValue(e.value+e.largeStep):o<(e._isThumbDragged?e.dragStartY:r.top)&&e._updateValue(e.value-e.largeStep),"switchUntilReleased"===e.mechanicalAction&&e._updateValue(a)}_trackMoveHandler(t){"touchmove"===t.originalEvent.type&&t.originalEvent.preventDefault()}_updateValue(t,e){const r=this;if(!r._isUpdating&&(1===arguments.length&&(e=t,t=r.value),(void 0===e||isNaN(e))&&(e=r.min),e>r.max&&(e=r.max),e<r.min&&(e=r.min),r.value=e,t!==e)){if(r.setAttribute("aria-valuenow",e),r._updateThumbPosition(),r.thumbCapture&&"switchWhenReleased"===r.mechanicalAction)return;if(r.onChange)return void r.onChange({value:r.value,oldValue:t,min:r.min,max:r.max,context:r});r.$.fireEvent("change",{value:r.value,oldValue:t,min:r.min,max:r.max})}}_updateThumbPosition(){const t=this,e="horizontal"===t.orientation?t.$.track.offsetWidth:t.$.track.offsetHeight,r=t._calculateThumbSize(e),n=e-r;let o=(e-r)/(t.max-t.min)*(t.value-t.min);t.rightToLeft&&"horizontal"===t.orientation&&(o=(e-r)/(t.max-t.min)*(t.max-t.value-t.min)),o=Math.min(n,Math.max(0,o)),"vertical"===t.orientation&&t.$.thumb.style.top!==o+"px"?t.$.thumb.style.top=o+"px":"horizontal"===t.orientation&&t.$.thumb.style.left!==o+"px"&&(t.$.thumb.style.left=o+"px")}})},138:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* smart-chart */\r\nsmart-chart {\r\n display: block;\r\n width: var(--smart-chart-default-width);\r\n height: var(--smart-chart-default-height); }\r\n smart-chart .smart-chart-axis-text,\r\n smart-chart .smart-chart-label-text,\r\n smart-chart .smart-chart-legend-text,\r\n smart-chart .smart-chart-annotation-text,\r\n smart-chart .smart-chart-axis-description {\r\n box-sizing: content-box;\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-size: calc(var(--smart-font-size) - 1px); }\r\n smart-chart .smart-chart-title-text {\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-weight: bold;\r\n font-size: calc(var(--smart-font-size) + 2px); }\r\n smart-chart .smart-chart-title-description {\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size); }\r\n smart-chart[theme="dark"] .smart-chart-title-text,\r\n smart-chart[theme="dark"] .smart-chart-title-description,\r\n smart-chart[theme="dark"] .smart-chart-axis-text,\r\n smart-chart[theme="dark"] .smart-chart-axis-description .smart-chart-label-text,\r\n smart-chart[theme="dark"] .smart-chart-legend-text,\r\n smart-chart[theme="dark"] .smart-chart-annotation-text {\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color); }\r\n\r\n.smart-chart-range-selector > smart-chart {\r\n width: 100%;\r\n height: 100%;\r\n touch-action: none; }\r\n.smart-chart-range-selector .slider {\r\n box-sizing: content-box;\r\n pointer-events: none; }\r\n\r\n.smart-chart-tooltip {\r\n position: absolute;\r\n cursor: default;\r\n z-index: 10000000;\r\n transition: 0.3s ease-in, transform 0.3s ease-in;\r\n opacity: 1;\r\n transform: scale(1); }\r\n .smart-chart-tooltip .smart-chart-tooltip-content {\r\n position: absolute;\r\n box-sizing: content-box;\r\n outline: none;\r\n border: 1px solid transparent;\r\n padding: 3px;\r\n text-align: center;\r\n vertical-align: middle;\r\n margin: 0 0 0 0;\r\n cursor: default;\r\n left: 0;\r\n top: 0;\r\n border-radius: var(--smart-border-radius); }\r\n .smart-chart-tooltip .smart-chart-tooltip-text {\r\n box-sizing: content-box;\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-size: calc(var(--smart-font-size) - 1px); }\r\n .smart-chart-tooltip .smart-chart-tooltip-arrow-outer {\r\n box-sizing: content-box;\r\n width: 0;\r\n height: 0;\r\n position: absolute;\r\n z-index: 10000001; }\r\n .smart-chart-tooltip .smart-chart-tooltip-arrow-inner {\r\n box-sizing: content-box;\r\n width: 0;\r\n height: 0;\r\n position: absolute;\r\n z-index: 10000002; }\r\n .smart-chart-tooltip[animation="none"] {\r\n transition: none; }\r\n .smart-chart-tooltip.smart-visibility-hidden {\r\n transform: scale(0); }\r\n\r\n[theme="dark"] .smart-chart-tooltip:not([theme="dark"]) .smart-chart-tooltip-text {\r\n fill: var(--smart-background);\r\n color: var(--smart-background); }\r\n\r\n/* smart-chart */\r\nsmart-chart[right-to-left] .smart-chart-axis-text,\r\nsmart-chart[right-to-left] .smart-chart-axis-description,\r\nsmart-chart[right-to-left] .smart-chart-title-text,\r\nsmart-chart[right-to-left] .smart-chart-legend-text,\r\nsmart-chart[right-to-left] .smart-chart-annotation-text,\r\nsmart-chart[right-to-left] .smart-chart-label-text {\r\n direction: rtl;\r\n text-anchor: end; }\r\n\r\n.smart-chart-tooltip[right-to-left] .smart-chart-tooltip-text {\r\n direction: rtl;\r\n text-anchor: end; }\r\n',""]),t.exports=e},166:function(t,e,r){Smart("smart-chart",class extends Smart.BaseElement{static get properties(){return{animationDuration:{value:300,type:"number"},backgroundColor:{value:null,type:"string?"},backgroundImage:{value:"",type:"string"},borderLineColor:{value:null,type:"string?"},borderLineWidth:{value:1,type:"number"},caption:{value:"Caption",type:"string"},clip:{value:!0,type:"boolean"},colorScheme:{value:"scheme01",type:"string"},columnSeriesOverlap:{value:!1,type:"boolean"},crosshairsColor:{value:null,type:"string?"},crosshairsDashStyle:{value:"2,2",type:"string"},crosshairsLineWidth:{value:1,type:"number"},dataSource:{value:[],type:"object",reflectToAttribute:!1},description:{value:"Description",type:"string"},draw:{value:null,type:"function?"},drawBefore:{value:null,type:"function?"},enableAxisTextAnimation:{value:!1,type:"boolean"},enableCrosshairs:{value:!1,type:"boolean"},greyScale:{value:!1,type:"boolean"},legendLayout:{value:{flow:{value:"horizontal",allowedValues:["horizontal","vertical"],type:"string"},height:{value:null,type:"number?"},left:{value:null,type:"number?"},top:{value:null,type:"number?"},width:{value:null,type:"number?"}},type:"object?"},localization:{value:{decimalSeparator:{value:".",type:"string"},patterns:{value:null,type:"object?"},thousandsSeparator:{value:"",type:"string"}},type:"object"},messages:{value:{en:{invalidRadiusDataField:"smart-chart: Invalid radiusDataField value at [{{index}}]",invalidSeries:"smart-chart: Invalid property: each series group must have a 'series' property which must be a valid array.",invalidSeriesGroups:"smart-chart: Invalid property: 'seriesGroups' property is required and must be a valid array.",invalidType:'smart-chart: Invalid serie type "{{type}}".',missingAxis:"smart-chart: seriesGroup[{{index}}] is missing {{axis}} definition.",missingReference:"smart-chart: Missing reference to {{files}}.",missingType:"smart-chart: Invalid property: each series group must have a valid 'type' property."}},type:"object",extend:!0},padding:{value:{bottom:{value:5,type:"number"},left:{value:5,type:"number"},right:{value:5,type:"number"},top:{value:5,type:"number"}},type:"object"},renderEngine:{value:"",allowedValues:["","SVG","HTML5"],type:"string"},rightToLeft:{value:!1,type:"boolean"},seriesGroups:{value:[],type:"any",reflectToAttribute:!1},showBorderLine:{value:!0,type:"boolean"},showLegend:{value:!0,type:"boolean"},showToolTips:{value:!0,type:"boolean"},showToolTipsOnAllSeries:{value:!1,type:"boolean"},theme:{value:"light",allowedValues:["light","dark"],type:"string"},titlePadding:{value:{bottom:{value:10,type:"number"},left:{value:5,type:"number"},right:{value:5,type:"number"},top:{value:5,type:"number"}},type:"object"},toolTipBackground:{value:null,type:"string?"},toolTipFormatFunction:{value:null,type:"function?"},toolTipHideDelay:{value:4e3,type:"number"},toolTipLineColor:{value:null,type:"string?"},toolTipShowDelay:{value:300,type:"number"},valueAxis:{value:{alternatingBackgroundColor:{value:"",type:"string"},alternatingBackgroundColor2:{value:"",type:"string"},alternatingBackgroundOpacity:{value:1,type:"number"},axisSize:{value:null,type:"any"},bands:{value:null,type:"array?"},baselineValue:{value:0,type:"any"},customDraw:{value:!1,type:"boolean"},flip:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},line:{value:{color:{value:"",type:"string"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},visible:{value:!0,type:"any"}},type:"object"},logarithmicScale:{value:!1,type:"boolean"},logarithmicScaleBase:{value:10,type:"number"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:"left",allowedValues:["left","right","top","bottom"],type:"string"},textRotationAngle:{value:null,type:"number?"},textRotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},tickMarks:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},size:{value:4,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},title:{value:{class:{value:null,type:"string?"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},text:{value:"",type:"string"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"boolean"}},type:"object"},unitInterval:{value:null,type:"number?"},valuesOnTicks:{value:!0,type:"boolean"},visible:{value:!0,type:"boolean"}},type:"object"},xAxis:{value:{alternatingBackgroundColor:{value:"",type:"string"},alternatingBackgroundColor2:{value:"",type:"string"},alternatingBackgroundOpacity:{value:1,type:"number"},axisSize:{value:null,type:"any"},bands:{value:null,type:"array?"},baseUnit:{value:null,allowedValues:["year","month","day","hour","minute","second","millisecond",null],type:"string?"},customDraw:{value:!1,type:"boolean"},dataField:{value:"",type:"string"},dateFormat:{value:null,type:"string?"},displayText:{value:null,type:"string?"},flip:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},line:{value:{color:{value:"",type:"string"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},visible:{value:!0,type:"any"}},type:"object"},logarithmicScale:{value:!1,type:"boolean"},logarithmicScaleBase:{value:10,type:"number"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:"bottom",allowedValues:["bottom","top","left","right"],type:"string"},rangeSelector:{value:{backgroundColor:{value:null,type:"string?"},backgroundImage:{value:"",type:"string"},baseUnit:{value:null,allowedValues:["year","month","day","hour","minute","second","millisecond",null],type:"string?"},borderLineColor:{value:null,type:"string?"},borderLineWidth:{value:null,type:"number?"},caption:{value:"",type:"string"},colorScheme:{value:null,type:"string?"},columnSeriesOverlap:{value:!1,type:"boolean"},columnsGapPercent:{value:25,type:"number"},dataField:{value:null,type:"string?"},description:{value:"",type:"string"},greyScale:{value:null,type:"boolean?"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:null,allowedValues:["bottom","top","left","right"],type:"string?"},renderTo:{value:null,type:"any"},rightToLeft:{value:null,type:"boolean?"},seriesGapPercent:{value:10,type:"number"},seriesGroups:{value:null,type:"array?"},serieType:{value:"area",type:"string"},showBorderLine:{value:null,type:"boolean?"},size:{value:null,type:"number?"},skipOverlappingPoints:{value:!0,type:"boolean"},titlePadding:{value:{bottom:{value:10,type:"number"},left:{value:5,type:"number"},right:{value:5,type:"number"},top:{value:5,type:"number"}},type:"object"},unitInterval:{value:null,type:"number?"},valueAxis:{value:{alternatingBackgroundColor:{value:"",type:"string"},alternatingBackgroundColor2:{value:"",type:"string"},alternatingBackgroundOpacity:{value:1,type:"number"},axisSize:{value:null,type:"any"},bands:{value:null,type:"array?"},baselineValue:{value:0,type:"any"},customDraw:{value:!1,type:"boolean"},flip:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},line:{value:{color:{value:"",type:"string"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},visible:{value:!0,type:"any"}},type:"object"},logarithmicScale:{value:!1,type:"boolean"},logarithmicScaleBase:{value:10,type:"number"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:"left",allowedValues:["left","right","top","bottom"],type:"string"},textRotationAngle:{value:null,type:"number?"},textRotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},tickMarks:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},size:{value:4,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},title:{value:{class:{value:null,type:"string?"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},text:{value:"",type:"string"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"boolean"}},type:"object"},unitInterval:{value:null,type:"number?"},valuesOnTicks:{value:!0,type:"boolean"},visible:{value:!1,type:"boolean"}},type:"object"},visible:{value:!1,type:"boolean"}},type:"object"},textRotationAngle:{value:null,type:"number?"},textRotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},tickMarks:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},size:{value:4,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},title:{value:{class:{value:null,type:"string?"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},text:{value:"",type:"string"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"boolean"}},type:"object"},toolTipFormatFunction:{value:null,type:"function?"},toolTipFormatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},type:{value:"auto",allowedValues:["auto","date","basic","linear"],type:"string"},unitInterval:{value:null,type:"number?"},valuesOnTicks:{value:!0,type:"boolean"},visible:{value:!0,type:"boolean"}},type:"object",reflectToAttribute:!1}}}get _legendLayout(){const t=this.legendLayout;return null!==t.height||null!==t.left||null!==t.top||null!==t.width||"vertical"===t.flow}_getFormatSettings(t,e){if(!t)return null;const r=t[e||"formatSettings"];return r&&(r.dateFormat||null!==r.decimalPlaces||r.decimalSeparator||r.negativeWithBrackets||r.prefix||r.sufix||r.thousandsSeparator)?r:null}static get listeners(){return{click:"_clickHandler",down:"_downMoveHandler",mouseleave:"_mouseleaveHandler",move:"_moveHandler",resize:"_resizeHandler","document.move":"_downMoveHandler","document.up":"_documentUpHandler"}}static get requires(){return{"Smart.Utilities.Draw":"smart.draw.js"}}static get styleUrls(){return["smart.chart.css"]}template(){return'<div role="presentation"></div>'}ready(){super.ready(),this.checkLicense()}render(){this._observeSeriesGroups(),this._isTouchDevice=Smart.Utilities.Core.isMobile,this._setDefaults(),this._createColorsCache(),this.refresh(),this._setAriaProperties(),super.render()}attached(){super.attached(),this.isCompleted&&!this._isRangeSelectorInstance&&Object.values(this._rangeSelectorInstances).forEach(t=>{t.parentDiv.parentDiv.appendChild(t.parentDiv)})}detached(){const t=this;super.detached(),t._isRangeSelectorInstance||(t._ttEl&&t._ttEl.box&&t._ttEl.box.remove(),delete t._ttEl,Object.values(t._rangeSelectorInstances).forEach(t=>{t.parentDiv.remove()}))}_setAriaProperties(){const t=this;if(t._isRangeSelectorInstance)return;const e=t.xAxis,r=t.valueAxis,n=t.seriesGroups;let o=t.$.content.children[1],a="",i=!0;function s(t,e){t&&(t.title&&t.title.text||t.description||t.dataField)&&(a+='; "',t.title&&t.title.text?a+=t.title.text:a+=t.description||t.dataField,a+='" on the '+e,isNaN(t.minValue)||(a+=" from "+t.minValue),isNaN(t.maxValue)||(a+=" up to "+t.maxValue))}t.setAttribute("role","figure"),o||(o=document.createElement("div"),o.id=t.id+"DescriptionContainer",o.className="smart-hidden",t.$.content.appendChild(o)),t.setAttribute("aria-labelledby",t.id+"TitleText"),t.setAttribute("aria-describedby",t.id+"TitleDescription "+o.id),a+="This chart displays:",s(e,"x-axis"),s(r,"y-axis");for(let t=0;t<n.length;t++){const e=n[t];if(s(e.valueAxis,"y-axis"),e.series){i=i&&"horizontal"===e.orientation;for(let r=0;r<e.series.length;r++){const n=e.series[r];0===r&&(a+=0===t?" for ":"; "),a+='"'+(n.displayText||n.dataField)+'"',r!==e.series.length-1&&(a+=", ")}}}a=a.replace(":;",":"),a=a.replace(/<.+?>/g,""),i&&(a=a.replace(/x-axis/g,"@@@"),a=a.replace(/y-axis/g,"x-axis"),a=a.replace(/@@@/g,"y-axis")),t.description&&(a="; "+a),o.innerHTML=a}_observeSeriesGroups(){const t=this;function e(e){t.context!==t&&e.newValue!==e.oldValue&&t.update()}if(t._validateSeriesGroups(),Array.isArray(t.seriesGroups)){t.seriesGroups=new Smart.ObservableArray(t.seriesGroups),t.seriesGroups.canNotify=!0;for(let r=0;r<t.seriesGroups.length;r++)Array.isArray(t.seriesGroups[r].series)&&(t.seriesGroups[r].series=new Smart.ObservableArray(t.seriesGroups[r].series),t.seriesGroups[r].series.canNotify=!0,t.seriesGroups[r].series.notify(e));t.seriesGroups.notify(e)}}_downMoveHandler(t){let e=t.originalEvent.target;this.shadowRoot&&e===this&&(e=t.originalEvent.composedPath()[0]);const r=e.closest(".smart-chart-range-selector");if(!r)return;const n=r.firstElementChild,o=n.parentChart;this!==n&&this!==o||o["_onSliderMouse"+t.type.slice(0,1).toUpperCase()+t.type.slice(1)](t)}_documentUpHandler(t){const e=this;e._draggingRangeSelector&&e._onSliderMouseUp(t)}_setDefaults(){this.axisPadding=5,this.enableEvents=!0,this.enableSampling=!0,this._itemsToggleState=[],this._isToggleRefresh=!1,this._isSelectorRefresh=!1,this._sliders=[],this._selectorRange=[],this._rangeSelectorInstances={},this._resizeState={},this._isRangeSelectorInstance=this._isRangeSelectorInstance||!1,this._renderData={},this._smartPlot=null,this._animTickInt=50,this._seriesTypes=["line","stackedline","stackedline100","spline","stackedspline","stackedspline100","stepline","stackedstepline","stackedstepline100","area","stackedarea","stackedarea100","splinearea","stackedsplinearea","stackedsplinearea100","steparea","stackedsteparea","stackedsteparea100","rangearea","splinerangearea","steprangearea","column","stackedcolumn","stackedcolumn100","rangecolumn","scatter","stackedscatter","stackedscatter100","bubble","stackedbubble","stackedbubble100","pie","donut","candlestick","ohlc","waterfall","stackedwaterfall"],this.colorSchemes=[{name:"scheme01",colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"]},{name:"scheme02",colors:["#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8"]},{name:"scheme03",colors:["#E8601A","#FF9639","#F5BD6A","#599994","#115D6E"]},{name:"scheme04",colors:["#D02841","#FF7C41","#FFC051","#5B5F4D","#364651"]},{name:"scheme05",colors:["#25A0DA","#309B46","#8EBC00","#FF7515","#FFAE00"]},{name:"scheme06",colors:["#0A3A4A","#196674","#33A6B2","#9AC836","#D0E64B"]},{name:"scheme07",colors:["#CC6B32","#FFAB48","#FFE7AD","#A7C9AE","#888A63"]},{name:"scheme08",colors:["#3F3943","#01A2A6","#29D9C2","#BDF271","#FFFFA6"]},{name:"scheme09",colors:["#1B2B32","#37646F","#A3ABAF","#E1E7E8","#B22E2F"]},{name:"scheme10",colors:["#5A4B53","#9C3C58","#DE2B5B","#D86A41","#D2A825"]},{name:"scheme11",colors:["#993144","#FFA257","#CCA56A","#ADA072","#949681"]},{name:"scheme12",colors:["#105B63","#EEEAC5","#FFD34E","#DB9E36","#BD4932"]},{name:"scheme13",colors:["#BBEBBC","#F0EE94","#F5C465","#FA7642","#FF1E54"]},{name:"scheme14",colors:["#60573E","#F2EEAC","#BFA575","#A63841","#BFB8A3"]},{name:"scheme15",colors:["#444546","#FFBB6E","#F28D00","#D94F00","#7F203B"]},{name:"scheme16",colors:["#583C39","#674E49","#948658","#F0E99A","#564E49"]},{name:"scheme17",colors:["#142D58","#447F6E","#E1B65B","#C8782A","#9E3E17"]},{name:"scheme18",colors:["#4D2B1F","#635D61","#7992A2","#97BFD5","#BFDCF5"]},{name:"scheme19",colors:["#844341","#D5CC92","#BBA146","#897B26","#55591C"]},{name:"scheme20",colors:["#56626B","#6C9380","#C0CA55","#F07C6C","#AD5472"]},{name:"scheme21",colors:["#96003A","#FF7347","#FFBC7B","#FF4154","#642223"]},{name:"scheme22",colors:["#5D7359","#E0D697","#D6AA5C","#8C5430","#661C0E"]},{name:"scheme23",colors:["#16193B","#35478C","#4E7AC7","#7FB2F0","#ADD5F7"]},{name:"scheme24",colors:["#7B1A25","#BF5322","#9DA860","#CEA457","#B67818"]},{name:"scheme25",colors:["#0081DA","#3AAFFF","#99C900","#FFEB3D","#309B46"]},{name:"scheme26",colors:["#0069A5","#0098EE","#7BD2F6","#FFB800","#FF6800"]},{name:"scheme27",colors:["#FF6800","#A0A700","#FF8D00","#678900","#0069A5"]},{name:"scheme28",colors:["#3A43BA","#281E5D","#48AAAD","#0492C2","#1E456E","#59788D","#52B2C0","#82EDFD"]},{name:"scheme29",colors:["#003F5C","#BC5090","#58508D","#FF6361","#FFA600"]},{name:"scheme30",colors:["#16736F","#A2D56A","#1C515C","#62B773","#EEEF63","#1F313F","#309577"]},{name:"scheme31",colors:["#74CC66","#191A4D","#2D867A","#EEE3CD","#224D19","#0D261B","#5771C7","#B6D7E7","#206052","#6B5724","#C3AF4B","#603620","#536722","#B6E7B9","#34819D","#94ACDB"]},{name:"scheme32",colors:["#87C5FF","#5B5B60","#9BE076","#F7A384","#7479D3","#F13A80","#E4D388","#2BC6B2","#F45B14"]}]}_clickHandler(t){const e=this;if(e.disabled||e._isRangeSelectorInstance)return;let r=t.pageX||t.clientX||t.screenX,n=t.pageY||t.clientY||t.screenY;const o=e.getBoundingClientRect();e._isTouchDevice&&(r=t.pageX,n=t.pageY),r-=o.left,n-=o.top,e._mouseX=r,e._mouseY=n,!isNaN(e._lastClickTs)&&(new Date).valueOf()-e._lastClickTs<100||(this._hostClickTimer=setTimeout((function(){if(e._isTouchDevice||(e._cancelTooltipTimer(),e._hideToolTip(),e._unselect()),e._pointMarker&&e._pointMarker.element){const r=e.seriesGroups[e._pointMarker.gidx],n=r.series[e._pointMarker.sidx];t.stopImmediatePropagation(),e._raiseItemEvent("click",r,n,e._pointMarker.iidx)}}),100),"HTML5"===e.renderEngine&&e._canvasClickHandler(r,n))}_canvasClickHandler(t,e){const r=this,n=r.renderer._elements;let o;for(let r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&"0"!==r){const a=n[r];if(e>a.y&&e<a.y+a.height&&t>a.x&&t<a.x+a.width){o=a;break}}if(o&&o.purpose&&"legend-toggle"===o.purpose){const t=o.data;r._toggleSerie(t.groupIndex,t.seriesIndex,t.itemIndex)}}_mouseleaveHandler(){if(this.disabled||this._isRangeSelectorInstance)return;const t=this._mouseX,e=this._mouseY,r=this._plotRect;r&&t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height||(this._cancelTooltipTimer(),this._hideToolTip(0),this._unselect())}_moveHandler(t){const e=this;if(e.disabled)return;if(e._isRangeSelectorInstance){const r=e.parentChart;null===r.xAxis.rangeSelector.renderTo&&(r._unselect(),r._hideToolTip()),"touchmove"===t.originalEvent.type&&t.originalEvent.preventDefault()}else e.style.cursor="default";let r=t.pageX||t.clientX||t.screenX,n=t.pageY||t.clientY||t.screenY;const o=e.getBoundingClientRect();e._isTouchDevice&&(r=t.pageX,n=t.pageY),r-=o.left,n-=o.top,e.onmousemove(r,n)}_resizeHandler(){const t=this.animation;this._isRangeSelectorInstance||(this.animation="none",this.refresh(),this.animation=t)}propertyChangedHandler(t,e,r){const n=this;switch(t){case"animation":case"theme":n._ttEl&&n._ttEl.box.setAttribute(t,r);break;case"rightToLeft":if(!n._ttEl||!n._ttEl.box)break;r?n._ttEl.box.setAttribute("right-to-left",r):n._ttEl.box.removeAttribute("right-to-left");break;case"seriesGroups":n._observeSeriesGroups();break;case"xAxis_rangeSelector_renderTo":if(null===r){const t=e.getElementsByClassName("smart-chart-range-selector")[0];t.parentElement.removeChild(t)}}this.refresh()}_initRenderer(){this._draw=new Smart.Utilities.Draw(this.$.content,this.renderEngine),this.renderer=this._draw.renderer,this._smartPlot||(this._smartPlot=new Smart.Utilities.Plot(this.renderer)),this.$.content.firstElementChild.setAttribute("role","presentation")}_internalRefresh(){const t=this;if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return;t._stopAnimations(),t.renderer&&(t._isToggleRefresh||t._isUpdate)||(t._hideToolTip(0),t.$.content.innerHTML="",t._initRenderer());const e=t.renderer;if(!e)return;const r=e.getRect();t._render({x:1,y:1,width:r.width,height:r.height}),this.$.fireEvent("refreshBegin",{instance:this}),e instanceof Smart.Utilities.HTML5Renderer&&e.refresh(),t._isUpdate=!1,this.$.fireEvent("refreshEnd",{instance:this})}saveAsPNG(t){return this._saveAsImage("png",t)}saveAsJPEG(t){return this._saveAsImage("jpeg",t)}saveAsPDF(t,e){return this._saveAsImage("pdf",t,e)}print(){return this._saveAsImage("print")}_saveAsImage(t,e,r){return this._draw._widgetToImage(this,t,e,this._hasRangeSelector?this._selectorSaveAsImageCallback:void 0,r)}_selectorSaveAsImageCallback(t,e){let r=t;for(let t=0;t<r.seriesGroups.length;t++){let n=r._getXAxis(t);if(!n||!n.rangeSelector||!n.rangeSelector.visible||n.rangeSelector.renderTo)continue;let o=r._rangeSelectorInstances[t];if(!o)continue;let a=o.renderer.getRect(),i=o.renderer.getContainer().getElementsByTagName("canvas")[0].getContext("2d"),s=r._sliders[t],l="horizontal"===r.seriesGroups[t].orientation,d=l?"height":"width",m=l?"width":"height",c=l?"y":"x",h=l?"x":"y",u={};u[c]=s.startOffset+s.rect[c],u[h]=s.rect[h],u[d]=s.endOffset-s.startOffset,u[m]=s.rect[m];let p=n.rangeSelector.colorSelectedRange||"blue",f=n.rangeSelector.colorRangeLine||"grey",g=[];g.push(o.renderer.rect(u.x,u.y,u.width,u.height,{fill:p,opacity:.1}));const b=r.renderer;l?(g.push(o.renderer.line(b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(s.rect.y),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y+u.height),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(s.rect.y+s.rect.height),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(s.rect.x),b._ptrnd(u.y),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(s.rect.x),b._ptrnd(u.y+u.height),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y+u.height),{stroke:f,opacity:.5}))):(g.push(o.renderer.line(b._ptrnd(s.rect.x),b._ptrnd(s.rect.y),b._ptrnd(u.x),b._ptrnd(s.rect.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(u.x+u.width),b._ptrnd(s.rect.y),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(s.rect.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(u.x),b._ptrnd(s.rect.y),b._ptrnd(u.x),b._ptrnd(s.rect.y+s.rect.height),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(u.x+u.width),b._ptrnd(s.rect.y),b._ptrnd(u.x+u.width),b._ptrnd(s.rect.y+s.rect.height),{stroke:f,opacity:.5}))),o.renderer.refresh();let v=i.getImageData(a.x,a.y,a.width,a.height);const y=e.getContext("2d"),w=r.getBoundingClientRect(),x=o.getBoundingClientRect();y.putImageData(v,x.left-w.left,x.top-w.top,1,1,a.width,a.height);for(let t=0;t<g.length;t++)o.renderer.removeElement(g[t]);o.renderer.refresh()}return!0}refresh(){this._internalRefresh(),this._setAriaProperties()}update(){this._isUpdate=!0,this._internalRefresh()}clear(){this.caption="",this.description="",this.refresh()}_validateSeriesGroups(){const t=this;Array.isArray(this.seriesGroups)||t.seriesGroups instanceof Smart.ObservableArray||t.error(t.localize("invalidSeriesGroups"));for(let e=0;e<this.seriesGroups.length;e++){const r=this.seriesGroups[e];r.type||t.error(t.localize("missingType")),Array.isArray(r.series)||r.series instanceof Smart.ObservableArray||t.error(t.localize("invalidSeries"))}}_render(t){var e=this.renderer;this._colorsCache.clear(),!this._isToggleRefresh&&this._isUpdate&&this._renderData&&this._renderDataClone(),this._renderData=[],e.clear(),this._unselect(),this._hideToolTip(0);var r=this.backgroundImage;this.style.backgroundImage=null==r||""===r?"":-1!==r.indexOf("(")?r:'url("'+r+'")',this._rect=t;var n=this.padding||{left:5,top:5,right:5,bottom:5},o=e.createClipRect(t),a=e.beginGroup();e.setClip(a,o);var i=e.rect(t.x,t.y,t.width-2,t.height-2);if(null==r||""===r?e.attr(i,{fill:this.backgroundColor||this._getThemeColor("background")}):e.attr(i,{fill:"transparent"}),!1!==this.showBorderLine){var s=this.borderLineWidth;(isNaN(s)||s<0||s>10)&&(s=1),e.attr(i,{"stroke-width":s,stroke:this.borderLineColor||this._getThemeColor("line")})}"function"==typeof this.drawBefore&&this.drawBefore(e,t);var l={x:n.left,y:n.top,width:t.width-n.left-n.right,height:t.height-n.top-n.bottom};this._paddedRect=l;var d,m=this.titlePadding||{left:2,top:2,right:2,bottom:2};if(this.caption&&this.caption.length>0){d=e.measureText(this.caption,0,{class:"smart-chart-title-text"}),e.text(this.caption,l.x+m.left,l.y+m.top,l.width-(m.left+m.right),d.height,0,{class:"smart-chart-title-text"},!0,"center","center").id=this.id+"TitleText",l.y+=d.height,l.height-=d.height}if(this.description&&this.description.length>0){d=e.measureText(this.description,0,{class:"smart-chart-title-description"}),e.text(this.description,l.x+m.left,l.y+m.top,l.width-(m.left+m.right),d.height,0,{class:"smart-chart-title-description"},!0,"center","center").id=this.id+"TitleDescription",l.y+=d.height,l.height-=d.height}(this.caption||this.description)&&(l.y+=m.bottom+m.top,l.height-=m.bottom+m.top);var c={x:l.x,y:l.y,width:l.width,height:l.height};this._plotRect=c,this._buildStats(c);var h,u=this._isPieOnlySeries(),p=this.seriesGroups,f={xAxis:{},valueAxis:{}};for(let t=0;t<p.length&&!u;t++){if("pie"===p[t].type||"donut"===p[t].type)continue;var g=this._getXAxis(t);g||this.error(this.localize("missingAxis",{index:t,axis:"xAxis"}));let e=g===this._getXAxis()?-1:t;f.xAxis[e]=0}var b=this.axisPadding;isNaN(b)&&(b=5);var v={left:0,right:0,leftCount:0,rightCount:0},y=[];for(let t=0;t<p.length;t++){const e=p[t];if("pie"===e.type||"donut"===e.type||!0===e.spider||!0===e.polar){y.push({width:0,position:0,xRel:0});continue}h="horizontal"===e.orientation;let r=this._getXAxis(t),n=r===this._getXAxis()?-1:t;var w=this._getValueAxis(t),x=w===this._getValueAxis()?-1:t,_=h?r.axisSize:w.axisSize,S={x:0,y:c.y,width:c.width,height:c.height},C=h?this._getXAxis(t).position:w.position;_&&"auto"!==_||(h?(_=this._renderXAxis(t,S,!0,c).width,1==(1&f.xAxis[n])?_=0:_>0&&(f.xAxis[n]|=1)):(_=this._renderValueAxis(t,S,!0,c).width,1==(1&f.valueAxis[x])?_=0:_>0&&(f.valueAxis[x]|=1))),"left"!==C&&!0===this.rightToLeft&&(C="right"),"right"!==C&&(C="left"),v[C+"Count"]>0&&v[C]>0&&_>0&&(v[C]+=b),y.push({width:_,position:C,xRel:v[C]}),v[C]+=_,v[C+"Count"]++}var k=Math.max(1,Math.max(t.width,t.height)),A={top:0,bottom:0,topCount:0,bottomCount:0},T=[];for(let t=0;t<p.length;t++){const e=p[t];if("pie"===e.type||"donut"===e.type||!0===e.spider||!0===e.polar){T.push({height:0,position:0,yRel:0});continue}h="horizontal"===e.orientation;let r=this._getValueAxis(t),n=r===this._getValueAxis()?-1:t,o=this._getXAxis(t),a=o===this._getXAxis()?-1:t,i=h?r.axisSize:o.axisSize,s=h?r.position:o.position;i&&"auto"!==i||(h?(i=this._renderValueAxis(t,{x:0,y:0,width:k,height:0},!0,c).height,2==(2&f.valueAxis[n])?i=0:i>0&&(f.valueAxis[n]|=2)):(i=this._renderXAxis(t,{x:0,y:0,width:k,height:0},!0).height,2==(2&f.xAxis[a])?i=0:i>0&&(f.xAxis[a]|=2))),"top"!==s&&(s="bottom"),A[s+"Count"]>0&&A[s]>0&&i>0&&(A[s]+=b),T.push({height:i,position:s,yRel:A[s]}),A[s]+=i,A[s+"Count"]++}this._createAnimationGroup("series");const E=!1!==this.showLegend,N=this._legendLayout;var M=E?this._renderLegend(N?this._rect:l,!0):{width:0,height:0};if(!N||isNaN(this.legendLayout.left)&&isNaN(this.legendLayout.top)||(M={width:0,height:0}),l.height<A.top+A.bottom+M.height||l.width<v.left+v.right)e.endGroup();else{c.height-=A.top+A.bottom+M.height,c.x+=v.left,c.width-=v.left+v.right,c.y+=A.top;var D=[];if(!u)for(let t=0;t<p.length;t++){const e=p[t];if(!0===e.polar||!0===e.spider||"pie"===e.type||"donut"===e.type)continue;h="horizontal"===e.orientation;let r=this._getXAxis(t)===this._getXAxis()?-1:t,n=this._getValueAxis(t)===this._getValueAxis()?-1:t,o={x:c.x,y:0,width:c.width,height:T[t].height};if("top"!==T[t].position?o.y=c.y+c.height+T[t].yRel:o.y=c.y-T[t].yRel-T[t].height,h){if(4==(4&f.valueAxis[n]))continue;if(!this._isGroupVisible(t))continue;this._renderValueAxis(t,o,!1,c),f.valueAxis[n]|=4}else{if(D.push(o),4==(4&f.xAxis[r]))continue;if(!this._isGroupVisible(t))continue;this._renderXAxis(t,o,!1,c),f.xAxis[r]|=4}}if(E){const t=this._legendLayout,e=t?this._rect:l;let r=l.x+this.renderer._ptrnd((l.width-M.width)/2),n=c.y+c.height+A.bottom,o=l.width,a=M.height;t&&(isNaN(this.legendLayout.left)||(r=this.legendLayout.left),isNaN(this.legendLayout.top)||(n=this.legendLayout.top),isNaN(this.legendLayout.width)||(o=this.legendLayout.width),isNaN(this.legendLayout.height)||(a=this.legendLayout.height)),r+o>e.x+e.width&&(o=e.x+e.width-r),n+a>e.y+e.height&&(a=e.y+e.height-n),this._renderLegend({x:r,y:n,width:o,height:a})}if(this._hasHorizontalLines=!1,!u)for(let t=0;t<p.length;t++){const e=p[t];if(!0===e.polar||!0===e.spider||"pie"===e.type||"donut"===e.type)continue;h="horizontal"===p[t].orientation;let r={x:c.x-y[t].xRel-y[t].width,y:c.y,width:y[t].width,height:c.height};"left"!==y[t].position&&(r.x=c.x+c.width+y[t].xRel);let n=this._getXAxis(t)===this._getXAxis()?-1:t,o=this._getValueAxis(t)===this._getValueAxis()?-1:t;if(h){if(D.push(r),8==(8&f.xAxis[n]))continue;if(!this._isGroupVisible(t))continue;this._renderXAxis(t,r,!1,c),f.xAxis[n]|=8}else{if(8==(8&f.valueAxis[o]))continue;if(!this._isGroupVisible(t))continue;this._renderValueAxis(t,r,!1,c),f.valueAxis[o]|=8}}if(!(c.width<=0||c.height<=0)){this._plotRect={x:c.x,y:c.y,width:c.width,height:c.height};for(let t=0;t<p.length;t++)this._drawPlotAreaLines(t,!0,{gridLines:!1,tickMarks:!1,alternatingBackground:!0}),this._drawPlotAreaLines(t,!1,{gridLines:!1,tickMarks:!1,alternatingBackground:!0});for(let t=0;t<p.length;t++)this._drawPlotAreaLines(t,!0,{gridLines:!0,tickMarks:!0,alternatingBackground:!1}),this._drawPlotAreaLines(t,!1,{gridLines:!0,tickMarks:!0,alternatingBackground:!1});var F=!1;for(let t=0;t<p.length&&!F;t++){const e=p[t];if(void 0!==e.annotations||"function"==typeof e.draw||"function"==typeof e.drawBefore){F=!0;break}}var O=e.beginGroup();if(this.clip&&!F){var I=e.createClipRect({x:c.x-2,y:c.y,width:c.width+4,height:c.height});e.setClip(O,I)}for(let r=0;r<p.length;r++){const n=p[r];var L=!1;for(var P in this._seriesTypes)if(this._seriesTypes[P]===n.type){L=!0;break}L||this.error(this.localize("invalidType",{type:n.type})),"function"==typeof n.drawBefore&&n.drawBefore(e,t,r,this),!0!==n.polar&&!0!==n.spider||-1===n.type.indexOf("pie")&&-1===n.type.indexOf("donut")&&this._renderSpiderAxis(r,c),this._renderAxisBands(r,c,!0),this._renderAxisBands(r,c,!1)}for(let r=0;r<p.length;r++){const n=p[r];if(this._isColumnType(n.type)?this._renderColumnSeries(r,c):-1!==n.type.indexOf("pie")||-1!==n.type.indexOf("donut")?this._renderPieSeries(r,c):-1!==n.type.indexOf("line")||-1!==n.type.indexOf("area")?this._renderLineSeries(r,c):-1!==n.type.indexOf("scatter")||-1!==n.type.indexOf("bubble")?this._renderScatterSeries(r,c):-1===n.type.indexOf("candlestick")&&-1===n.type.indexOf("ohlc")||this._renderCandleStickSeries(r,c,-1!==n.type.indexOf("ohlc")),n.annotations){this._moduleAnnotations||this.error(this.localize("missingReference",{files:"smart.chart.annotations.js"}));for(let t=0;t<n.annotations.length;t++)this._renderAnnotation(r,n.annotations[t],c)}"function"==typeof n.draw&&n.draw(e,t,r,this)}if(e.endGroup(),this.disabled){var z=e.rect(t.x,t.y,t.width,t.height);e.attr(z,{fill:"#777777",opacity:.5,stroke:"#00FFFFFF"})}"function"==typeof this.draw&&this.draw(e,t),e.endGroup(),this._startAnimation("series"),this._credits&&this._credits();var B=!1;for(let t=0;t<this.seriesGroups.length&&!B;t++){let e=this._getXAxis(t);e&&e.rangeSelector&&e.rangeSelector.visible&&(B=!0,this._hasRangeSelector=!0)}if(B){this._moduleRangeSelector||this.error(this.localize("missingReference",{files:"smart.chart.rangeselector.js"}));var R=[];this._isSelectorRefresh||(this._rangeSelectorInstances={});for(let t=0;t<this.seriesGroups.length;t++){var H=this._getXAxis(t);-1===R.indexOf(H)&&this._renderXAxisRangeSelector(t,D[t])&&R.push(H)}}}}}_credits(){}_isPieOnlySeries(){let t=this.seriesGroups;if(0===t.length)return!1;for(let e=0;e<t.length;e++)if("pie"!==t[e].type&&"donut"!==t[e].type)return!1;return!0}_renderChartLegend(t,e,r,n){var o=this.renderer,a={x:e.x,y:e.y,width:e.width,height:e.height};a.width>=6&&(a.x+=3,a.width-=6),a.height>=6&&(a.y+=3,a.height-=6);var i={width:a.width,height:0},s=0,l=0,d=20,m=0,c=0;for(let D=0;D<t.length;D++){var h=t[D].css;h||(h="smart-chart-legend-text"),d=20;var u=t[D].text,p=o.measureText(u,0,{class:h});p.height>d&&(d=p.height),p.width>c&&(c=p.width),n?(0!==D&&(l+=d),l>a.height&&(l=0,s+=c+20+10,c=p.width,i.width=s+c)):(0!==s&&(s+=10),s+20+p.width>a.width&&p.width<a.width&&(s=0,l+=d,d=20,m=a.width,i.height=l+d));var f=!1;if(p.width>a.width){f=!0;var g=a.width,b=u.split(/\s+/);let t=[],e="";for(let r=0;r<b.length;r++){var v=e+(e.length>0?" ":"")+b[r];this.renderer.measureText(v,0,{class:h}).width>g&&v.length>0&&e.length>0?(t.push({text:e}),e=b[r]):e=v,r+1===b.length&&t.push({text:e})}p.width=0;var y=0;for(let e=0;e<t.length;e++){var w=t[e].text;let r=this.renderer.measureText(w,0,{class:h});p.width=Math.max(p.width,r.width),y+=p.height}p.height=y}var x=s+p.width<a.width&&l+p.height<e.height;if(this._legendLayout){let t=a.x+s+p.width<this._rect.x+this._rect.width&&a.y+l+p.height<this._rect.y+this._rect.height;this._renderInBounds=t}if(!r&&x){var _=t[D].seriesIndex,S=t[D].groupIndex,C=t[D].itemIndex,k=t[D].fillColor,A=t[D].lineColor,T=this._isSerieVisible(S,_,C),E=o.beginGroup(),N=T?t[D].opacity:.1;if(f){let e=u,r=a.width,i=e.split(/\s+/);var M=0;let m=[],c="";for(let t=0;t<i.length;t++){let e=c+(c.length>0?" ":"")+i[t],n=this.renderer.measureText(e,0,{class:h});n.width>r&&e.length>0&&c.length>0?(m.push({text:c,dy:M}),M+=n.height,c=i[t]):c=e,t+1===i.length&&m.push({text:c,dy:M})}for(let t=0;t<m.length;t++){let e=m[t].text;M=m[t].dy;this.renderer.measureText(e,0,{class:h});n?this.renderer.text(e,a.x+s+15,a.y+l+M,p.width,d,0,{class:h},!1,"left","center"):this.renderer.text(e,a.x+s+15,a.y+l+M,p.width,d,0,{class:h},!1,"center","center")}let f=o.rect(a.x+s,a.y+l+5+M/2,10,10);n&&(l+=M),this.renderer.attr(f,{fill:k,"fill-opacity":N,stroke:A,"stroke-width":1,"stroke-opacity":t[D].opacity})}else{let e,r=o.rect(a.x+s,a.y+l+5,10,10);this.renderer.attr(r,{fill:k,"fill-opacity":N,stroke:A,"stroke-width":1,"stroke-opacity":t[D].opacity,purpose:"legend-toggle",data:t[D]}),e=n?this.renderer.text(u,a.x+s+15,a.y+l,p.width,p.height+5,0,{class:h},!1,"left","center"):this.renderer.text(u,a.x+s+15,a.y+l,p.width,d,0,{class:h},!1,"center","center"),o.attr(e,{purpose:"legend-toggle",data:t[D]})}this.renderer.endGroup(),this._setLegendToggleHandler(S,_,C,E)}n||m<(s+=p.width+20)&&(m=s)}if(r)return i.height=this.renderer._ptrnd(l+d+5),i.width=this.renderer._ptrnd(m),i}isSerieVisible(t,e,r){return this._isSerieVisible(t,e,r)}_isSerieVisible(t,e,r){for(;this._itemsToggleState.length<t+1;)this._itemsToggleState.push([]);let n=this._itemsToggleState[t];for(;n.length<e+1;)n.push(!!isNaN(r)||[]);let o=n[e];if(isNaN(r))return o;for(Array.isArray(o)||(n[e]=o=[]);o.length<r+1;)o.push(!0);return o[r]}isGroupVisible(t){return this._isGroupVisible(t)}_isGroupVisible(t){let e=!1,r=this.seriesGroups[t].series;if(!r)return e;for(let n=0;n<r.length;n++)if(this._isSerieVisible(t,n)){e=!0;break}return e}_toggleSerie(t,e,r,n){let o=!this._isSerieVisible(t,e,r);void 0!==n&&(o=n);let a=this.seriesGroups[t],i=a.series[e];if(this.$.fireEvent("toggle",{state:o,seriesGroup:a,serie:i,elementIndex:r}),isNaN(r))this._itemsToggleState[t][e]=o;else{let n=this._itemsToggleState[t][e];for(Array.isArray(n)||(n=[]);n.length<r;)n.push(!0);n[r]=o}this._isToggleRefresh=!0,this.update(),this._isToggleRefresh=!1}showSerie(t,e,r){this._toggleSerie(t,e,r,!0)}hideSerie(t,e,r){this._toggleSerie(t,e,r,!1)}_setLegendToggleHandler(t,e,r,n){let o=this.seriesGroups[t],a=o.series[e].enableSeriesToggle;if(null==a&&(a=!1!==o.enableSeriesToggle),a){let o=this;this.renderer.addHandler(n,"click",(function(){o._toggleSerie(t,e,r)}))}}_renderLegend(t,e){let r=this,n=[];for(let t=0;t<r.seriesGroups.length;t++){let e=r.seriesGroups[t];if(!1!==e.showLegend)for(let o=0;o<e.series.length;o++){let a=e.series[o];if(!1===a.showLegend)continue;let i,s=r._getSerieSettings(t,o);if("pie"===e.type||"donut"===e.type){let l=r._getXAxis(t);const d=a.legendFormatSettings||e.legendFormatSettings||r._getFormatSettings(l)||r._getFormatSettings(a)||r._getFormatSettings(e);let m=a.legendFormatFunction||e.legendFormatFunction||l.formatFunction||a.formatFunction||e.formatFunction,c=r._getDataLen(t);for(let e=0;e<c;e++){i=r._getDataValue(e,a.displayText,t),i=r._formatValue(i,d,m,t,o,e);let l=r._getColors(t,o,e);n.push({groupIndex:t,seriesIndex:o,itemIndex:e,text:i,css:a.displayTextClass,fillColor:l.fillColor,lineColor:l.lineColor,opacity:s.opacity})}continue}const l=a.legendFormatSettings||e.legendFormatSettings;let d=a.legendFormatFunction||e.legendFormatFunction;i=r._formatValue(a.displayText||a.dataField||"",l,d,t,o,NaN);let m=r._getSeriesColors(t,o),c=this._get([a.legendFillColor,a.legendColor,m.fillColor]),h=this._get([a.legendLineColor,a.legendColor,m.lineColor]);n.push({groupIndex:t,seriesIndex:o,text:i,css:a.displayTextClass,fillColor:c,lineColor:h,opacity:s.opacity})}}return r._renderChartLegend(n,t,e,r._legendLayout&&"vertical"===r.legendLayout.flow)}_getInterval(t,e){if(!t)return e;let r=this._get([t.unitInterval,e]);return isNaN(t.step)||null===t.step||(r=t.step*e),r}_getOffsets(t,e,r,n,o,a,i,s,l){let d,m=this._getInterval(o[t],s),c=[];if((""===t||o[t].visible&&"custom"!==o[t].visible)&&(c=this._generateIntervalValues(n,m,s,i,l)),"labels"!==t){let t=i?a.left:0;if(!i&&s>1&&(t=a.left*(s+1)),1===c.length&&(t*=2),d=this._valuesToOffsets(c,e,n,r,a,!1,t),!i){let t=(a.left+a.right)*m/s;e.flip?d.unshift(d[0]+t):d.push(d[d.length-1]+t)}}else{let t=a.left;1===c.length&&(t*=2),d=this._valuesToOffsets(c,e,n,r,a,i,t)}let h=this._arraysToObjectsArray([c,d],["value","offset"]);if(e[t]&&e[t].custom){let o=this._objectsArraysToArray(e[t].custom,"value"),s=this._objectsArraysToArray(e[t].custom,"offset"),l=this._valuesToOffsets(o,e,n,r,a,i,a.left);for(let r=0;r<e[t].custom.length;r++)h.push({value:o[r],offset:isNaN(s[r])?l[r]:s[r]})}return h}_renderXAxis(t,e,r,n){let o=this,a=o._getXAxis(t),i=o.seriesGroups[t],s="horizontal"===i.orientation,l={width:0,height:0},d=o._getAxisSettings(a);if(!a||!d.visible||"spider"===i.type)return l;if(!o._isGroupVisible(t)||this._isPieGroup(t))return l;let m=o._alignValuesWithTicks(t);for(;o._renderData.length<t+1;)o._renderData.push({});o.rightToLeft?(a._flip=a.flip,a.flip=!0):void 0!==a._flip&&(a.flip=a._flip);let c=s?e.height:e.width,h=o._calculateXOffsets(t,c),u=h.axisStats,p=a.rangeSelector&&a.rangeSelector.visible,f=0;p&&(this._moduleRangeSelector||o.error(o.localize("missingReference",{files:"smart.chart.rangeselector.js"})),f=this._selectorGetSize(a));let g=s&&"right"===a.position||!s&&"top"===a.position;!r&&p&&(s?(e.width-=f,"right"!==a.position&&(e.x+=f)):(e.height-=f,"top"===a.position&&(e.y+=f)));let b={rangeLength:h.rangeLength,itemWidth:h.itemWidth,intervalWidth:h.intervalWidth,data:h,settings:d,isMirror:g,rect:e};o._renderData[t].xAxis=b;let v=u.interval;if(isNaN(v))return l;s&&(d.title.angle-=90,d.labels.angle-=90);let y,w,x=this._getInterval(d.gridLines,v),_=this._getInterval(d.tickMarks,v),S=this._getInterval(d.labels,v),C=u.min,k=u.max,A=h.padding,T=!0===a.flip||o.rightToLeft,E={min:C,max:k};u.logAxis.enabled&&(E.min=u.logAxis.minPow,E.max=u.logAxis.maxPow),"date"===a.type?(d.gridLines.offsets=this._generateDTOffsets(C,k,c,A,x,v,u.dateTimeUnit,m,NaN,!1,T),d.tickMarks.offsets=this._generateDTOffsets(C,k,c,A,_,v,u.dateTimeUnit,m,NaN,!1,T),y=this._generateDTOffsets(C,k,c,A,S,v,u.dateTimeUnit,m,NaN,!0,T)):(d.gridLines.offsets=this._getOffsets("gridLines",a,c,u,d,A,m,v),d.tickMarks.offsets=this._getOffsets("tickMarks",a,c,u,d,A,m,v),y=this._getOffsets("labels",a,c,u,d,A,m,v)),o._elementRenderInfo&&o._elementRenderInfo.length>t&&(w=o._elementRenderInfo[t].xAxis);let N,M=[];d.labels.formatFunction&&(N=d.labels.formatFunction);const D=o._getFormatSettings(d.labels);let F;D&&(F=Object.assign({},D)),"date"===a.type&&(a.dateFormat&&!N?F?F.dateFormat=F.dateFormat||a.dateFormat:F={dateFormat:a.dateFormat}:N||F&&(!F||F.dateFormat)||(N=this._getDefaultDTFormatFn(a.baseUnit||"day")));for(let e=0;e<y.length;e++){let r=y[e].value,n=y[e].offset;if(isNaN(n))continue;let i=void 0;"date"!==a.type&&u.useIndeces&&a.dataField&&(i=Math.round(r),r=o._getDataValue(i,a.dataField,t),null==r&&(r=""));let s=o._formatValue(r,F,N,t,void 0,i);null!=s&&""!==s.toString()||(isNaN(i)&&(i=e),i>=u.filterRange.min&&i<=u.filterRange.max&&(s=u.useIndeces?(u.min+i).toString():void 0===r?"":r.toString()));let l={key:r,text:s,targetX:n,x:n};w&&w.itemOffsets[r]&&(l.x=w.itemOffsets[r].x,l.y=w.itemOffsets[r].y),M.push(l)}let O=o._getAnimProps(t),I=O.enabled&&M.length<500?O.duration:0;!1===o.enableAxisTextAnimation&&(I=0);let L={items:M,renderData:b},P=o._renderAxis(s,g,d,{x:e.x,y:e.y,width:e.width,height:e.height},n,v,!1,!0,L,r,I);return s?P.width+=f:P.height+=f,P}_animateAxisText(t,e){let r=t.items,n=t.textSettings;for(let t=0;t<r.length;t++){let o=r[t];if(!o)continue;if(!o.visible)continue;let a=o.targetX,i=o.targetY;isNaN(o.x)||isNaN(o.y)||(a=o.x+(a-o.x)*e,i=o.y+(i-o.y)*e),o.element&&(this.renderer.removeElement(o.element),o.element=void 0),o.element=this.renderer.text(o.text,a,i,o.width,o.height,n.angle,{class:n.style},!1,n.halign,n.valign,n.textRotationPoint)}}_getPolarAxisCoords(t,e){let r=this.seriesGroups[t],n=e.x+this._draw.getNum([r.offsetX,e.width/2]),o=e.y+this._draw.getNum([r.offsetY,e.height/2]),a=Math.min(e.width,e.height),i=r.radius;this._isPercent(i)&&(i=parseFloat(i)/100*a/2),isNaN(i)&&(i=a/2*.6);let s=this._alignValuesWithTicks(t),l=this._get([r.startAngle,r.minAngle,0])-90;l=isNaN(l)?0:2*Math.PI*l/360;let d=this._get([r.endAngle,r.maxAngle,360])-90;if(d=isNaN(d)?2*Math.PI:2*Math.PI*d/360,l>d){let t=l;l=d,d=t}let m=this.renderer._rnd(Math.abs(l-d)/(2*Math.PI),.001,!0),c=2*Math.PI*i*m,h=this._calcGroupOffsets(t,e).xoffsets;if(!h)return;let u,p=!(Math.abs(Math.abs(d-l)-2*Math.PI)>1e-5);if(r.spider){const e=this._getXAxisStats(t,this._getXAxis(t),c);let r=e.interval;(isNaN(r)||0===r)&&(r=1);let n=(e.max-e.min)/r+(p?1:0);if(n=Math.round(n),n>2){let t=Math.cos(Math.abs(d-l)/2/n);t=this.renderer._rnd(t,.01),0===t&&(t=1),u=i/t,u>i&&s&&(i=u)}}return i=this.renderer._ptrnd(i),{x:n,y:o,r:i,adjR:this._get([u,i]),itemWidth:h.itemWidth,rangeLength:h.rangeLength,valuesOnTicks:s,startAngle:l,endAngle:d,isClosedCircle:p,axisSize:c}}_toPolarCoord(t,e,r,n){let o=Math.abs(t.startAngle-t.endAngle)/(2*Math.PI),a=2*(r-e.x)*Math.PI*o/Math.max(1,e.width)+t.startAngle,i=(e.height+e.y-n)*t.r/Math.max(1,e.height),s=t.x+i*Math.cos(a),l=t.y+i*Math.sin(a);return{x:this.renderer._ptrnd(s),y:this.renderer._ptrnd(l)}}_renderSpiderAxis(t,e){let r=this,n=r._getXAxis(t),o=this._getAxisSettings(n);if(!n||!o.visible)return;let a=r.seriesGroups[t],i=r._getPolarAxisCoords(t,e);if(!i)return;let s=this.renderer._ptrnd(i.x),l=this.renderer._ptrnd(i.y),d=i.adjR,m=i.startAngle,c=i.endAngle;if(d<1)return;let h=this.renderer._rnd(Math.abs(m-c)/(2*Math.PI),.001,!0),u=2*Math.PI*d*h,p=i.isClosedCircle,f=this._renderData[t].xoffsets;if(!f.rangeLength)return;let g=f.axisStats.interval;for((isNaN(g)||g<1)&&(g=1);r._renderData.length<t+1;)r._renderData.push({});let b={rangeLength:f.rangeLength,itemWidth:f.itemWidth,data:f,rect:e,settings:o};r._renderData[t].xAxis=b,r._renderData[t].polarCoords=i;let v=!0;for(let e=0;e<t;e++){let t=r._renderData[e].polarCoords,o=r._getXAxis(e),a=!1;for(let e in i)if(i[e]!==t[e]){a=!0;break}a&&o===n||(v=!1)}let y,w,x=o.gridLines,_=o.tickMarks,S=o.labels,C=this._getInterval(x,g),k=this._getInterval(_,g),A=this._getInterval(S,g),T=r._alignValuesWithTicks(t),E=r.renderer,N=f.axisStats,M=N.min,D=N.max,F=this._getPaddingSize(f.axisStats,n,T,u,!0,p,!1),O=!0===n.flip||r.rightToLeft;"date"===n.type?(x.offsets=this._generateDTOffsets(M,D,u,F,C,g,n.baseUnit,!0,0,!1,O),_.offsets=this._generateDTOffsets(M,D,u,F,k,g,n.baseUnit,!0,0,!1,O),y=this._generateDTOffsets(M,D,u,F,A,g,n.baseUnit,!0,0,!0,O)):(o.gridLines.offsets=this._getOffsets("gridLines",n,u,N,o,F,!0,g),o.tickMarks.offsets=this._getOffsets("tickMarks",n,u,N,o,F,!0,g),y=this._getOffsets("labels",n,u,N,o,F,!0,g)),r._elementRenderInfo&&r._elementRenderInfo.length>t&&(w=r._elementRenderInfo[t].xAxis);let I=[],L=this._getDataLen(t);for(let e=0;e<y.length;e++){let o,a=y[e].offset,i=y[e].value;if("date"!==n.type&&N.useIndeces&&n.dataField){if(o=Math.round(i),o>=L)continue;i=r._getDataValue(o,n.dataField),null==i&&(i="")}let s=r._formatValue(i,r._getFormatSettings(S.formatSettings),S.formatFunction,t,void 0,o);null!=s&&""!==s.toString()||(s=N.useIndeces?(N.min+e).toString():null==i?"":i.toString());let l={key:i,text:s,targetX:a,x:a};w&&w.itemOffsets[i]&&(l.x=w.itemOffsets[i].x,l.y=w.itemOffsets[i].y),I.push(l)}let P={stroke:x.color||r._getThemeColor("line"),fill:"none","stroke-width":x.width,"stroke-dasharray":x.dashStyle||""};if(!a.spider)if(1===h)E.circle(s,l,d,P);else{let t=-m/Math.PI*180,e=-c/Math.PI*180;this.renderer.pieslice(s,l,0,d,Math.min(t,e),Math.max(t,e),void 0,P)}let z=m;if(x.visible&&v){T||p||x.offsets.unshift({offset:-F.right});for(let t=0;t<x.offsets.length;t++){let e=x.offsets[t].offset;T||(e+=p?F.right/2:F.right);const r=z+2*e*Math.PI*h/Math.max(1,u);if(r-c>.01)continue;let n=this.renderer._ptrnd(s+d*Math.cos(r)),o=this.renderer._ptrnd(l+d*Math.sin(r));E.line(s,l,n,o,P)}}if(_.visible&&v){let t=5,e={stroke:_.color||r._getThemeColor("line"),fill:"none","stroke-width":_.width,"stroke-dasharray":_.dashStyle||""};T||p||_.offsets.unshift({offset:-F.right});for(let r=0;r<_.offsets.length;r++){let n=_.offsets[r].offset;T||(n+=p?F.right/2:F.right);const o=z+2*n*Math.PI*h/Math.max(1,u);if(o-c>.01)continue;let a={x:s+d*Math.cos(o),y:l+d*Math.sin(o)},i={x:s+(d+t)*Math.cos(o),y:l+(d+t)*Math.sin(o)};E.line(this.renderer._ptrnd(a.x),this.renderer._ptrnd(a.y),this.renderer._ptrnd(i.x),this.renderer._ptrnd(i.y),e)}}let B=[];if(a.spider){let t=[];t="date"===n.type?this._generateDTOffsets(M,D,u,F,g,g,n.baseUnit,!0,0,!1,O):this._getOffsets("",n,u,N,o,F,!0,g),T||p||t.unshift({offset:-F.right});for(let e=0;e<t.length;e++){let r=t[e].offset;T||(r+=p?F.right/2:F.right);const n=z+2*r*Math.PI*h/Math.max(1,u);n-c>.01||B.push(n)}b.offsetAngles=B}let R=r._renderSpiderValueAxis(t,e,T?i.adjR:i.r,B);if(R||(R=[]),a.spider){if(!T)for(let t=0;t<R.length;t++)R[t]=R[t]*i.adjR/i.r;R.push(d),this._renderSpiderLines(s,l,R,i,B,P)}if(v&&S.visible){b.polarLabels=[];for(let t=0;t<I.length;t++){let e=z+2*I[t].x*Math.PI*h/Math.max(1,u);e=(360-e/(2*Math.PI)*360)%360,e<0&&(e=360+e);let r,n=E.measureText(I[t].text,0,{class:o.labels.style}),a=(T?i.adjR:i.r)+(_.visible?7:2),d=o.labels;if(d.autoRotate){let t=this._draw._ptRotate(s-n.width/2,l-a-n.height,s,l,-e/180*Math.PI),o=this._draw._ptRotate(s+n.width/2,l-a,s,l,-e/180*Math.PI);n.width=Math.abs(t.x-o.x),n.height=Math.abs(t.y-o.y),r={x:Math.min(t.x,o.x),y:Math.min(t.y,o.y)}}else r=this._adjustTextBoxPosition(s,l,n,a,e,!1,!1,!1);b.polarLabels.push({x:r.x,y:r.y,value:I[t].text}),E.text(I[t].text,r.x,r.y,n.width,n.height,d.autoRotate?90-e:d.angle,{class:d.style},!1,d.halign,d.valign)}}}_renderSpiderLines(t,e,r,n,o,a){let i=this.renderer,s=n.isClosedCircle;for(let n=0;n<r.length;n++){let l=r[n],d=void 0,m=void 0;for(let r=0;r<o.length;r++){let n=o[r],s=this.renderer._ptrnd(t+l*Math.cos(n)),c=this.renderer._ptrnd(e+l*Math.sin(n));d&&i.line(d.x,d.y,s,c,a),d={x:s,y:c},m||(m={x:s,y:c})}m&&s&&i.line(d.x,d.y,m.x,m.y,a)}}_renderSpiderValueAxis(t,e,r,n){var o=this.seriesGroups[t],a=this._getPolarAxisCoords(t,e);if(!a)return;var i=this.renderer._ptrnd(a.x),s=this.renderer._ptrnd(a.y);r=r||a.r;var l=a.startAngle,d=a.endAngle,m=this.renderer._rnd(Math.abs(l-d)/(2*Math.PI),.001,!0);if(r<1)return;r=this.renderer._ptrnd(r);var c=this._getValueAxis(t);const h=this._getAxisSettings(c);if(c&&!1!==h.visible){var u=this._stats.seriesGroups[t].mu,p=h.labels,f=this._getFormatSettings(p);-1!==o.type.indexOf("stacked")&&-1!==o.type.indexOf("100")&&!f&&(f={sufix:"%"});var g=this._get([p.step,p.unitInterval/u]);isNaN(g)&&(g=1),g=Math.max(1,Math.round(g)),this._calcValueAxisItems(t,r,g);var b=h.gridLines,v=h.tickMarks,y=h.labels,w={stroke:b.color||this._getThemeColor("line"),fill:"none","stroke-width":1,"stroke-dasharray":b.dashStyle||""},x=this._renderData[t].valueAxis,_=x.items,S=l;if(_.length&&h.line.visible){isNaN(h.line.angle)||(S=2*Math.PI*h.line.angle/360);var C=i+Math.cos(S)*r,k=s+Math.sin(S)*r;if(-1===n.indexOf(S)){var A=Object.assign({},w);A["stroke-width"]=h.line.lineWidth,A.stroke=h.line.color||this._getThemeColor("line"),A["stroke-dasharray"]=h.line.dashStyle,this.renderer.line(i,s,C,k,A)}}_=_.reverse();var T=this.renderer;x.polarLabels=[];for(let t=0;t<_.length-1;t++){var E=_[t];if(isNaN(E))continue;var N=y.formatFunction?y.formatFunction(E):this._formatNumber(E,f),M=T.measureText(N,0,{class:y.style}),D=i+(!1!==c.showTickMarks?3:2);let e=s-x.itemWidth*t-M.height/2;var F=this._draw._ptRotate(D,e,i,s,S),O=this._draw._ptRotate(D+M.width,e+M.height,i,s,S);D=Math.min(F.x,O.x),e=Math.min(F.y,O.y),M.width=Math.abs(F.x-O.x),M.height=Math.abs(F.y-O.y),D+=h.labels.textOffset.x,e+=h.labels.textOffset.y,x.polarLabels.push({x:D,y:e,value:N}),T.text(N,D,e,M.width,M.height,y.autoRotate?90+180*l/Math.PI:y.angle,{class:y.style},!1,y.halign,y.valign)}var I=!1!==c.valuesOnTicks,L=this._stats.seriesGroups[t],P=L.mu,z=!0===c.logarithmicScale;z&&(P=1);var B={min:L.min,max:L.max,logAxis:{enabled:!0===z,base:c.logarithmicScaleBase,minPow:L.minPow,maxPow:L.maxPow}};(b.visible||o.spider||c.alternatingBackgroundColor||c.alternatingBackgroundColor2)&&(b.offsets=this._getOffsets("gridLines",c,r,B,h,{left:0,right:0},I,P));var R=[];if(b.visible||o.spider){let t={stroke:b.color||this._getThemeColor("line"),fill:"none","stroke-width":1,"stroke-dasharray":b.dashStyle||""};for(let e=0;e<b.offsets.length;e++){let n=this.renderer._ptrnd(b.offsets[e].offset);if(n!==r)if(o.spider)R.push(n);else if(1!==m){var H=-l/Math.PI*180,V=-d/Math.PI*180;this.renderer.pieslice(i,s,0,n,Math.min(H,V),Math.max(H,V),void 0,t)}else T.circle(i,s,n,t)}}if(c.tickMarks&&(c.tickMarks.visible||c.showTickMarks)||(v.visible=!1),v.visible){v.offsets=this._getOffsets("tickMarks",c,r,B,h,{left:0,right:0},I,P);const t=2*v.size;let e={stroke:v.color||this._getThemeColor("line"),fill:"none","stroke-width":1,"stroke-dasharray":v.dashStyle||""};for(let r=0;r<v.offsets.length;r++){var U=v.offsets[r].offset;let n={x:i+U*Math.cos(S)-t/2*Math.sin(S+Math.PI/2),y:s+U*Math.sin(S)-t/2*Math.cos(S+Math.PI/2)},o={x:i+U*Math.cos(S)+t/2*Math.sin(S+Math.PI/2),y:s+U*Math.sin(S)+t/2*Math.cos(S+Math.PI/2)};T.line(this.renderer._ptrnd(n.x),this.renderer._ptrnd(n.y),this.renderer._ptrnd(o.x),this.renderer._ptrnd(o.y),e)}}return R}}_renderAxis(t,e,r,n,o,a,i,s,l,d,m){if(r.customDraw&&!d)return{width:NaN,height:NaN};let c=r.title,h=r.labels,u=r.tickMarks,p=r.padding,f=u.visible?u.size:0,g={width:0,height:0},b={width:0,height:0};t?g.height=b.height=n.height:g.width=b.width=n.width,!d&&e&&t&&(n.x-=n.width);let v=l.renderData,y=v.itemWidth;if(c.visible&&void 0!==c.text&&null!==c.text&&""!==c){let r=c.angle,o=this.renderer.measureText(c.text,r,{class:c.style});b.width=o.width,b.height=o.height,d||this.renderer.text(c.text,n.x+c.offset.x+(t?e?-p.right-2+2*n.width-b.width:2+p.left:0),n.y+c.offset.y+(t?0:e?p.top+2:n.height-2-b.height-p.bottom),t?b.width:n.width,t?n.height:b.height,r,{class:c.style},!0,c.halign,c.valign,c.rotationPoint)}let w=0,x=s?-y/2:0;s&&!t&&(h.halign="center");let _=n.x,S=n.y,C=h.textOffset;C&&(isNaN(C.x)||(_+=C.x),isNaN(C.y)||(S+=C.y)),t?(_+=p.left+2+(b.width>0?b.width+2:0)+(e?n.width-b.width:0),S+=x):(_+=x,e?(S+=b.height>0?b.height+6:4,S+=f-(s?f:f/4)):S+=s?f:f/4,S+=p.top);let k=0,A=0,T=l.items;v.itemOffsets={},!this._isToggleRefresh&&this._isUpdate||(m=0);let E=!1,N=0;for(let r=0;r<T.length&&h.visible;r++,w+=y){if(!T[r]||isNaN(y))continue;let o=T[r].text;isNaN(T[r].targetX)||(w=T[r].targetX);let a=this.renderer.measureText(o,h.angle,{class:h.style});if(a.width>A&&(A=a.width),a.height>k&&(k=a.height),N+=t?k:A,!d){if(t&&w>n.height+2||!t&&w>n.width+2)continue;const o=t?_+(e?0===b.width?f:f-2:0):_+w;let a=t?S+w:S;v.itemOffsets[T[r].key]={x:o,y:a},E||(!isNaN(T[r].x)||!isNaN(T[r].y)&&m)&&(E=!0),T[r].targetX=o,T[r].targetY=a,T[r].width=t?n.width-p.left-p.right-4-f-(b.width>0?b.width+2:0):y,T[r].height=t?y:n.height-p.top-p.bottom-4-f-(b.height>0?b.height+2:0),T[r].visible=!0}}if(v.avgWidth=0===T.length?0:N/T.length,!d){let t={items:T,textSettings:h};if(!isNaN(m)&&E||(m=0),this._animateAxisText(t,0===m?1:0),0!==m){let e=this;this._enqueueAnimation("series",void 0,void 0,m,(function(t,r,n){e._animateAxisText(r,n)}),t)}}if(g.width+=4+f+b.width+A+(t&&b.width>0?2:0),g.height+=4+f+b.height+k+(!t&&b.height>0?2:0),t?g.width+=p.left+p.right:g.height+=p.top+p.bottom,!d&&r.line.visible){let o={stroke:r.line.color||self._getThemeColor("line"),"stroke-width":r.line.width,"stroke-dasharray":r.line.dashStyle||""};if(t){let t=n.x+n.width+(e?p.left:-p.right);t=this.renderer._ptrnd(t),this.renderer.line(t,n.y,t,n.y+n.height,o)}else{let t=this.renderer._ptrnd(n.y+(e?n.height-p.bottom:p.top));this.renderer.line(this.renderer._ptrnd(n.x),t,this.renderer._ptrnd(n.x+n.width+1),t,o)}}return g.width=this.renderer._rup(g.width),g.height=this.renderer._rup(g.height),g}_drawPlotAreaLines(t,e,r){var n=this.seriesGroups[t],o="horizontal"!==n.orientation;if(!this._renderData||this._renderData.length<=t)return;var a=e?"valueAxis":"xAxis",i=this._renderData[t][a];if(!i)return;var s=this._renderData.axisDrawState;s||(s=this._renderData.axisDrawState={});var l,d="";e?(d="valueAxis_"+(n.valueAxis?t:"")+(o?"swap":""),l=this._getValueAxis(t)):(d="xAxis_"+(n.xAxis?t:"")+(o?"swap":""),l=this._getXAxis(t)),s=s[d]?s[d]:s[d]={},e||(o=!o);var m=i.settings;if(!m)return;if(m.customDraw)return;var c=m.gridLines,h=m.tickMarks,u=m.padding,p=i.rect,f=this._plotRect;if(!c||!h)return;var g={};let b={stroke:c.color||self._getThemeColor("line"),"stroke-width":c.width,"stroke-dasharray":c.dashStyle||""};var v=e?p.y+p.height:p.x,y=c.offsets;let w;if(e&&!l.flip&&(y=(y=y.slice(0)).reverse()),y&&y.length>0){var x=NaN;for(let t=0;t<y.length;t++)if(o?(w=this.renderer._ptrnd(p.y+y[t].offset),w<p.y-.5&&(w=this.renderer._ptrnd(p.y)),w>p.y+p.height&&(w=p.y+p.height)):(w=this.renderer._ptrnd(p.x+y[t].offset),w>p.x+p.width+.5&&(w=this.renderer._ptrnd(p.x+p.width))),!isNaN(w)&&(isNaN(x)||!(Math.abs(w-x)<2))){if(x=w,r.gridLines&&!1!==c.visible&&!0!==s.gridLines&&(o?this.renderer.line(this.renderer._ptrnd(f.x),w,this.renderer._ptrnd(f.x+f.width),w,b):this.renderer.line(w,this.renderer._ptrnd(f.y),w,this.renderer._ptrnd(f.y+f.height),b)),g[w]=!0,r.alternatingBackground&&(c.alternatingBackgroundColor||c.alternatingBackgroundColor2)&&!0!==s.alternatingBackground){var _,S=t%2==0?c.alternatingBackgroundColor2:c.alternatingBackgroundColor;if(t>0&&S)_=o?this.renderer.rect(this.renderer._ptrnd(f.x),v,this.renderer._ptrnd(f.width-1),w-v,b):this.renderer.rect(v,this.renderer._ptrnd(f.y),w-v,this.renderer._ptrnd(f.height),b),this.renderer.attr(_,{"stroke-width":0,fill:S,opacity:c.alternatingBackgroundOpacity||1})}v=w}}if(b={stroke:h.color||self._getThemeColor("line"),"stroke-width":h.width,"stroke-dasharray":h.dashStyle||""},r.tickMarks&&h.visible&&!0!==s.tickMarks){var C=h.size;let t=h.offsets,r=NaN;for(let n=0;n<t.length;n++)if(o?(w=this.renderer._ptrnd(p.y+t[n].offset),w<p.y-.5&&(w=this.renderer._ptrnd(p.y)),w>p.y+p.height&&(w=p.y+p.height)):(w=this.renderer._ptrnd(p.x+t[n].offset),w>p.x+p.width+.5&&(w=this.renderer._ptrnd(p.x+p.width))),!isNaN(w)&&(isNaN(r)||!(Math.abs(w-r)<2))){if(g[w-1]?w--:g[w+1]&&w++,o){if(w>p.y+p.height+.5)break}else if(w>p.x+p.width+.5)break;r=w;var k=i.isMirror?C:-C;if(o){var A=p.x+p.width+("right"===l.position?u.left:-u.right);e||(A=p.x+(i.isMirror?u.left:-u.right+p.width)),this.renderer.line(A,w,A+k,w,b)}else{var T=p.y+(i.isMirror?p.height:0);T+=i.isMirror?-u.bottom:u.top,T=this.renderer._ptrnd(T),this.renderer.line(w,T,w,T-k,b)}}}s.tickMarks=s.tickMarks||r.tickMarks,s.gridLines=s.gridLines||r.gridLines,s.alternatingBackground=s.alternatingBackground||r.alternatingBackground}_calcValueAxisItems(t,e,r){let n=this._stats.seriesGroups[t];if(!n||!n.isValid)return!1;let o=this.seriesGroups[t],a=this._getValueAxis(t),i=!1!==a.valuesOnTicks,s=n.intervals,l=e/s,d=n.min,m=n.mu,c=!0===a.logarithmicScale,h=a.logarithmicScaleBase||10,u=-1!==o.type.indexOf("stacked")&&-1!==o.type.indexOf("100");for(c&&(m=isNaN(a.unitInterval)?1:a.unitInterval),i||(s=Math.max(s-1,1));this._renderData.length<t+1;)this._renderData.push({});this._renderData[t].valueAxis={};let p=this._renderData[t].valueAxis;p.itemWidth=p.intervalWidth=l,p.items=[];let f=p.items;for(let t=0;t<=s;t++){let e=0;e=c?u?n.max/Math.pow(h,s-t):d*Math.pow(h,t):i?d+t*m:d+(t+.5)*m,t%r==0?f.push(e):f.push(NaN)}return p.rangeLength=c&&!u?n.intervals:n.intervals*m,!0!==a.flip&&(f=f.reverse()),!0}_getDecimalPlaces(t,e,r){let n=0;isNaN(r)&&(r=10);for(let o=0;o<t.length;o++){let a=void 0===e?t[o]:t[o][e];if(isNaN(a))continue;let i=a.toString();for(let t=0;t<i.length;t++)if((i[t]<"0"||i[t]>"9")&&(n=i.length-(t+1),n>=0))return Math.min(n,r);for(n>0&&(a*=Math.pow(10,n));Math.round(a)!==a&&n<r;)n++,a*=10}return n}_renderValueAxis(t,e,r,n){let o=this.seriesGroups[t],a="horizontal"===o.orientation,i=this._getValueAxis(t);i||this.error(this.localize("missingAxis",{index:t,axis:"valueAxis"}));let s={width:0,height:0};if(!this._isGroupVisible(t)||this._isPieOnlySeries()||"spider"===o.type)return s;let l=!1!==i.valuesOnTicks,d=this._stats.seriesGroups[t],m=d.mu,c=!0===i.logarithmicScale,h=i.logarithmicScaleBase||10;if(c&&(m=isNaN(i.unitInterval)?1:i.unitInterval),0===m&&(m=1),isNaN(m))return s;let u=this._getAxisSettings(i),p=u.title,f=u.labels,g=i.labels||{};this._get([i.horizontalTextAlignment,g.horizontalAlignment])||0!==f.angle||(f.halign=a?"center":"right"===i.position?"left":"right");let b=this._get([f.step,f.unitInterval/m]);if(isNaN(b)&&(b=1),b=Math.max(1,Math.round(b)),!this._calcValueAxisItems(t,a?e.width:e.height,b)||!u.visible)return s;a||(p.angle=this.rightToLeft?90:-90,"centercenter"===p.rotationPoint&&("top"===p.valign?p.rotationPoint="rightcenter":"bottom"===p.valign&&(p.rotationPoint="leftcenter")));let v=this._renderData[t].valueAxis,y=this._getFormatSettings(f);-1!==o.type.indexOf("stacked")&&-1!==o.type.indexOf("100")&&!y&&(y={sufix:"%"}),f.formatFunction||y&&null!==y.decimalPlaces&&void 0!==y.decimalPlaces||(y=y||{},y.decimalPlaces=this._getDecimalPlaces([d.min,d.max,m],void 0,3));let w=u.gridLines,x=a?e.width:e.height,_=!0===i.flip;i.flip=!_;let S={min:d.min,max:d.max,logAxis:{enabled:!0===c,base:h,minPow:d.minPow,maxPow:d.maxPow}};(w.visible||i.alternatingBackgroundColor||i.alternatingBackgroundColor2)&&(w.offsets=this._getOffsets("gridLines",i,x,S,u,{left:0,right:0},l,m));let C=u.tickMarks;C.visible&&(C.offsets=this._getOffsets("tickMarks",i,x,S,u,{left:0,right:0},l,m));const k=this._getOffsets("labels",i,x,S,u,{left:0,right:0},l,m,!l);i.flip=_;let A,T=[];this._elementRenderInfo&&this._elementRenderInfo.length>t&&(A=this._elementRenderInfo[t].valueAxis);for(let t=0;t<k.length;t++){let e=k[t].value;if(isNaN(k[t].offset)){T.push(void 0);continue}let r={key:e,text:f.formatFunction?f.formatFunction(e):isNaN(e)?e:this._formatNumber(e,y)};A&&A.itemOffsets[e]&&(r.x=A.itemOffsets[e].x,r.y=A.itemOffsets[e].y),r.targetX=k[t].offset,isNaN(r.targetX)||T.push(r)}let E=a&&"top"===i.position||!a&&"right"===i.position||!a&&this.rightToLeft&&"left"!==i.position,N={items:T,renderData:v},M=this._getAnimProps(t),D=M.enabled&&T.length<500?M.duration:0;return!1===this.enableAxisTextAnimation&&(D=0),v.settings=u,v.isMirror=E,v.rect=e,this._renderAxis(!a,E,u,e,n,m,c,!0,N,r,D)}_objectsArraysToArray(t,e){let r=[];if(!Array.isArray(t))return r;for(let n=0;n<t.length;n++)r.push(t[n][e]);return r}_arraysToObjectsArray(t,e){let r=[];if(t.length!==e.length)return r;for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)r.length<=o&&r.push({}),r[o][e[n]]=t[n][o];return r}_valuesToOffsets(t,e,r,n,o,a,i){let s=[];if(!e||!Array.isArray(t))return s;let l=r.logAxis.base,d=r.logAxis.enabled?"logarithmic":"linear",m=e.flip,c=n,h=0,u=0;o&&!isNaN(o.left)&&(h=o.left),o&&!isNaN(o.right)&&(u=o.right),c=n-h-u,n=c;for(let e=0;e<t.length;e++){let o=this._smartPlot.scale(t[e],{min:r.min.valueOf(),max:r.max.valueOf(),type:d,base:l},{min:0,max:a?n:c,flip:m},{});isNaN(o)?s.push(NaN):(isNaN(i)||(o+=i),o<=n+h+u+1?s.push(this.renderer._ptrnd(o)):s.push(NaN))}return s}_generateIntervalValues(t,e,r,n,o){let a=[],i=t.min,s=t.max;if(t.logAxis&&t.logAxis.enabled&&(i=t.logAxis.minPow,s=t.logAxis.maxPow),null==i||null==s)return a;if(i===s)return t.logAxis&&t.logAxis.enabled?[Math.pow(t.logAxis.base,i)]:[i];let l=1;r<1&&(l=1e6,i*=l,s*=l,r*=l);for(let t=i;t<=s;t+=r)a.push(t/l+(o?r/2:0));if(e>r){let t=[],n=Math.round(e/r);for(let e=0;e<a.length;e++)e%n==0&&t.push(a[e]);a=t}if(t.logAxis&&t.logAxis.enabled)for(let e=0;e<a.length;e++)a[e]=Math.pow(t.logAxis.base,a[e]);return a}_generateDTOffsets(t,e,r,n,o,a,i,s,l,d,m){i||(i="day");var c=[];if(t>e)return c;if(t===e)return d?c.push({offset:s?r/2:n.left,value:t}):s&&c.push({offset:r/2,value:t}),c;var h=r-n.left-n.right,u=t,p=n.left,f=p,g=a=Math.max(a,1),b=Math.min(1,a);for(a>1&&"millisecond"!==i&&(a=1);this.renderer._ptrnd(f)<=this.renderer._ptrnd(n.left+h+(s?0:n.right));){c.push({offset:f,value:u});var v=new Date(u.valueOf());if("millisecond"===i)v.setMilliseconds(u.getMilliseconds()+a);else if("second"===i)v.setSeconds(u.getSeconds()+a);else if("minute"===i)v.setMinutes(u.getMinutes()+a);else if("hour"===i){var y=v.valueOf();v.setHours(u.getHours()+a),y===v.valueOf()&&v.setHours(u.getHours()+a+1)}else"day"===i?v.setDate(u.getDate()+a):"month"===i?v.setMonth(u.getMonth()+a):"year"===i&&v.setFullYear(u.getFullYear()+a);f=p+((u=v).valueOf()-t.valueOf())*b/(e.valueOf()-t.valueOf())*h}if(m)for(let t=0;t<c.length;t++)c[t].offset=r-c[t].offset;if(g>1&&"millisecond"!==i){var w=[];for(let t=0;t<c.length;t+=g)w.push({offset:c[t].offset,value:c[t].value});c=w}if(!s&&!d&&c.length>1){let t=[];t.push({offset:0,value:void 0});for(let e=1;e<c.length;e++)t.push({offset:c[e-1].offset+(c[e].offset-c[e-1].offset)/2,value:void 0});var x=t.length;x>1?t.push({offset:t[x-1].offset+(t[x-1].offset-t[x-2].offset)}):t.push({offset:r,value:void 0}),c=t}if(o>a){let t=[];var _=Math.round(o/g);for(let e=0;e<c.length;e++)e%_==0&&t.push({offset:c[e].offset,value:c[e].value});c=t}return c}_hasStackValueReversal(t,e){let r=this.seriesGroups[t];if(!(-1!==r.type.indexOf("stacked")))return!1;let n=-1!==r.type.indexOf("waterfall"),o=this._getDataLen(t),a=0,i=!1,s=[];for(let e=0;e<r.series.length;e++)s[e]=this._isSerieVisible(t,e);for(let l=0;l<o;l++){let o=void 0;n||(i=!1);for(let n=0;n<r.series.length;n++){if(!s[n])continue;const d=this._getDataValueAsNumber(l,r.series[n].dataField,t);if(isNaN(d))continue;if(r.series[n].summary){if(void 0!==this._getDataValue(l,r.series[n].summary,t))continue}let m=i?d<0:d<e;if(i=!0,void 0===o&&(o=m),m!==o)return!0;o=m,a+=d}}return this.waterfallStackSum=a,!1}_getValueAxis(t){let e=null==t?this.valueAxis:this.seriesGroups[t].valueAxis||this.valueAxis;return e||(e=this.valueAxis={}),e}_buildStats(t){var e={seriesGroups:[]};this._stats=e;for(let H=0;H<this.seriesGroups.length;H++){var r=this.seriesGroups[H];e.seriesGroups[H]={};var n=this._getXAxis(H),o=this._getValueAxis(H),a=this._getXAxisStats(H,n,"horizontal"!==r.orientation?t.width:t.height);let V=e.seriesGroups[H];V.isValid=!0;var i="horizontal"===r.orientation?t.width:t.height,s=!0===o.logarithmicScale,l=o.logarithmicScaleBase;isNaN(l)&&(l=10);var d=-1!==r.type.indexOf("stacked"),m=d&&-1!==r.type.indexOf("100"),c=-1!==r.type.indexOf("range"),h=-1!==r.type.indexOf("waterfall");h&&!this._moduleWaterfall&&self.error(self.localize("missingReference",{files:"smart.chart.waterfall.js"})),m&&(V.psums=[],V.nsums=[]);var u=NaN,p=NaN,f=NaN,g=NaN,b=o?o.baselineValue:NaN;isNaN(b)&&(b=s&&!m?1:0);var v=!1;0!==b&&d&&(v=this._hasStackValueReversal(H,b))&&(b=0),d&&h&&(v=this._hasStackValueReversal(H,b));var y=this._getDataLen(H),w=0,x=NaN,_=[];if(h)for(let t=0;t<r.series.length;t++)_.push(NaN);var S=NaN;for(let t=0;t<y&&V.isValid;t++){if(n.rangeSelector&&n.rangeSelector.visible){var C=n.dataField?this._getDataValue(t,n.dataField,H):t;if(C&&a.isDateTime&&(C=this._castAsDate(C,n.dateFormat)),a.useIndeces&&(C=t),C&&(C.valueOf()<a.min.valueOf()||C.valueOf()>a.max.valueOf()))continue}var k=o.minValue,A=o.maxValue;o.baselineValue&&(k=isNaN(k)?b:Math.min(b,k),A=isNaN(A)?b:Math.max(b,A));var T=0,E=0;for(let e=0;r.series&&e<r.series.length;e++)if(this._isSerieVisible(H,e)){var N=NaN,M=NaN,D=NaN;if(-1!==r.type.indexOf("candle")||-1!==r.type.indexOf("ohlc")){var F=["Open","Low","Close","High"];for(var O in F){var I=this._getDataValueAsNumber(t,r.series[e]["dataField"+F[O]],H);isNaN(I)||(D=isNaN(M)?I:Math.min(D,I),M=isNaN(M)?I:Math.max(M,I))}}else if(c){var L=this._getDataValueAsNumber(t,r.series[e].dataFieldFrom,H),P=this._getDataValueAsNumber(t,r.series[e].dataFieldTo,H);M=Math.max(L,P),D=Math.min(L,P)}else{if(N=this._getDataValueAsNumber(t,r.series[e].dataField,H),h){if(this._isSummary(H,t))if(void 0!==this._getDataValue(t,r.series[e].summary,H))continue;d?(isNaN(S)||(N+=S),S=N):(isNaN(_[e])?_[e]=N:N+=_[e],_[e]=N)}if(isNaN(N)||s&&N<=0)continue;D=M=N}(isNaN(A)||M>A)&&(isNaN(o.maxValue)||M<=o.maxValue)&&(A=M),(isNaN(k)||D<k)&&(isNaN(o.minValue)||D>=o.minValue)&&(k=D),isNaN(N)||!d||h||(N>b?T+=N:N<b&&(E+=N))}if(m||(isNaN(o.maxValue)||(T=Math.min(o.maxValue,T)),isNaN(o.minValue)||(E=Math.max(o.minValue,E))),s&&m)for(let e=0;e<r.series.length;e++){if(!this._isSerieVisible(H,e)){x=.01;continue}let n=this._getDataValueAsNumber(t,r.series[e].dataField,H);if(isNaN(n)||n<=0)x=.01;else{var z=0===T?0:n/T;(isNaN(x)||z<x)&&(x=z)}}var B=T-E;w<B&&(w=B),m&&(V.psums[t]=T,V.nsums[t]=E),(A>p||isNaN(p))&&(p=A),(k<u||isNaN(u))&&(u=k),(T>f||isNaN(f))&&(f=T),(E<g||isNaN(g))&&(g=E)}m&&(f=0===f?0:Math.max(f,-g),g=0===g?0:Math.min(g,-f)),u===p&&(!isNaN(o.minValue)&&isNaN(o.maxValue)?(u=o.minValue,p=s?u*l:u+1):isNaN(o.minValue)&&!isNaN(o.maxValue)&&(p=o.maxValue,u=s?p/l:p-1)),u===p&&(0===u?(u=-1,p=1):u<0?p=0:s?1===u&&(u/=l,p*=l):u=0);var R={gmin:u,gmax:p,gsumP:f,gsumN:g,gbase:b,isLogAxis:s,logBase:l,minPercent:x,gMaxRange:w,isStacked:d,isStacked100:m,isWaterfall:h,hasStackValueReversal:v,valueAxis:o,valueAxisSize:i};R.isStacked&&(R.gsumN<0&&(R.gmin=Math.min(R.gmin,R.gbase+R.gsumN)),R.gsumP>0&&(R.gmax=Math.max(R.gmax,R.gbase+R.gsumP))),V.context=R}this._mergeCommonValueAxisStats();for(let t=0;t<e.seriesGroups.length;t++){let r=e.seriesGroups[t];if(r.isValid){var H=this._calcOutputGroupStats(r.context);for(let t in H)r[t]=H[t];delete r.context}}}_mergeCommonValueAxisStats(){let t={};for(let e=0;e<this.seriesGroups.length;e++){if(!this._isGroupVisible(e))continue;if(this.seriesGroups[e].valueAxis)continue;let r=this._stats.seriesGroups[e].context;t.gbase=r.gbase,(isNaN(t.gmin)||r.gmin<t.gmin)&&(t.gmin=r.gmin),(isNaN(t.gmax)||r.gmax>t.gmax)&&(t.gmax=r.gmax),(isNaN(t.gsumP)||r.gsumP>t.gsumP)&&(t.gsumP=r.gsumP),(isNaN(t.gsumN)||r.gsumN<t.gsumN)&&(t.gsumN=r.gsumN),(isNaN(t.logBase)||r.logBase<t.logBase)&&(t.logBase=r.logBase),(isNaN(t.minPercent)||r.minPercent<t.minPercent)&&(t.minPercent=r.minPercent),t.gsumN>0&&(t.gmin=Math.min(t.gmin,t.gbase+t.gsumN)),t.gsumP>0&&(t.gmax=Math.max(t.gmax,t.gbase+t.gsumP))}for(let e=0;e<this.seriesGroups.length;e++){if(this.seriesGroups[e].valueAxis)continue;let r=this._stats.seriesGroups[e].context;for(let e in t)r[e]=t[e]}}_calcOutputGroupStats(t){let e=t.gmin,r=t.gmax,n=t.gsumP,o=t.gsumN,a=t.gbase,i=t.isLogAxis,s=t.logBase,l=t.minPercent,d=t.gMaxRange,m=t.isStacked,c=t.isStacked100,h=t.isWaterfall,u=t.hasStackValueReversal,p=t.valueAxis,f=t.valueAxisSize,g=t.valueAxis.unitInterval;g||(g=this._calcInterval(e,r,Math.max(f/80,2))),e===r&&(e=a,r*=2);let b=NaN,v=0,y=0;if(i){if(c){b=0;let t=1;for(v=y=this._draw.log(100,s);t>l;)t/=s,v--,b++;e=Math.pow(s,v)}else m&&!h&&(r=Math.max(r,n)),y=this.renderer._rnd(this._draw.log(r,s),1,!0),r=Math.pow(s,y),v=this.renderer._rnd(this._draw.log(e,s),1,!1),e=Math.pow(s,v);g=s}e<o&&(o=e),r>n&&(n=r);let w=e,x=r;if(i||0!=Math.abs(x-w)%g&&(w=this.renderer._rnd(e,g,!1),x=this.renderer._rnd(r,g,!0)),c&&x>100&&(x=100),c&&!i&&(x=x>0?100:0,w=w<0?-100:0,g=p.unitInterval,(isNaN(g)||g<=0||g>=100)&&(g=10),100%g!=0))for(;g>=1&&100%g!=0;g--);return isNaN(x)||isNaN(w)||isNaN(g)?{}:(isNaN(b)&&(b=parseInt(((x-w)/(0===g?1:g)).toFixed())),i&&!c&&(b=y-v,d=Math.pow(s,b)),b<1?{}:{min:w,max:x,logarithmic:i,logBase:s,base:i?w:a,minPow:v,maxPow:y,sumP:n,sumN:o,mu:g,maxRange:d,intervals:b,hasStackValueReversal:u})}_getDataLen(t){let e=this.dataSource;return null!=t&&-1!==t&&this.seriesGroups[t].dataSource&&(e=this.seriesGroups[t].dataSource),e?e.length:0}_getDataValue(t,e,r){let n=this.dataSource;if(null!=r&&-1!==r&&(n=this.seriesGroups[r].dataSource||n),!(!n||t<0||t>n.length-1))return"function"==typeof e?e(t,n):e&&""!==e?n[t][e]:n[t]}_getDataValueAsNumber(t,e,r){let n=this._getDataValue(t,e,r);return this._isDate(n)?n.valueOf():("number"!=typeof n&&(n=parseFloat(n)),"number"!=typeof n&&(n=void 0),n)}_isPieGroup(t){let e=this.seriesGroups[t];return!(!e||!e.type)&&(-1!==e.type.indexOf("pie")||-1!==e.type.indexOf("donut"))}_renderPieSeries(t,e){let r=this._getDataLen(t),n=this.seriesGroups[t],o=this._calcGroupOffsets(t,e).offsets;for(let a=0;a<n.series.length;a++){let i=n.series[a];if(i.customDraw)continue;let s=this._getSerieSettings(t,a),l=this._getAnimProps(t,a),d=l.enabled&&r<5e3&&!this._isToggleRefresh&&l.duration;this._isTouchDevice&&this.renderer instanceof Smart.Utilities.HTML5Renderer&&(d=0);let m=this._get([i.minAngle,i.startAngle]);(isNaN(m)||m<0||m>360)&&(m=0);let c=this._get([i.maxAngle,i.endAngle]);(isNaN(c)||c<0||c>360)&&(c=360);let h={rect:e,minAngle:m,maxAngle:c,groupIndex:t,serieIndex:a,settings:s,items:[]};for(let e=0;e<r;e++){let r=o[a][e];if(!r.visible)continue;let n=r.fromAngle,i=r.toAngle,s=this.renderer.pieslice(r.x,r.y,r.innerRadius,r.outerRadius,n,0===d?i:n,r.centerOffset);this._setRenderInfo(t,a,e,{element:s});let l={displayValue:r.displayValue,itemIndex:e,visible:r.visible,x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:r.outerRadius,fromAngle:n,toAngle:i,centerOffset:r.centerOffset};h.items.push(l)}this._animatePieSlices(h,0);let u=this;this._enqueueAnimation("series",void 0,void 0,d,(function(t,e,r){u._animatePieSlices(e,r)}),h)}}_sliceSortFunction(t,e){return t.fromAngle-e.fromAngle}_animatePieSlices(t,e){var r;this._elementRenderInfo&&this._elementRenderInfo.length>t.groupIndex&&this._elementRenderInfo[t.groupIndex].series&&this._elementRenderInfo[t.groupIndex].series.length>t.serieIndex&&(r=this._elementRenderInfo[t.groupIndex].series[t.serieIndex]);var n=this._getLabelsSettings(t.groupIndex,t.serieIndex,NaN),o=n.visible,a=[];for(let n=0;n<t.items.length;n++){const o=t.items[n];if(!o.visible)continue;let d=o.fromAngle;var i=o.fromAngle+e*(o.toAngle-o.fromAngle);if(r&&r[o.displayValue]){var s=r[o.displayValue].fromAngle,l=r[o.displayValue].toAngle;d=s+(d-s)*e,i=l+(i-l)*e}a.push({index:n,from:d,to:i})}r&&a.sort(this._sliceSortFunction);var d=NaN;for(let i=0;i<a.length;i++){const s=t.items[a[i].index];var m=this._getRenderInfo(t.groupIndex,t.serieIndex,s.itemIndex);let l=a[i].from,p=a[i].to;r&&(!isNaN(d)&&l>d&&(l=d),d=p,i===a.length-1&&p!==a[0].from&&(p=t.maxAngle+a[0].from));var c=this.renderer.pieSlicePath(s.x,s.y,s.innerRadius,s.outerRadius,l,p,s.centerOffset);this.renderer.attr(m.element,{d:c});var h=this._getColors(t.groupIndex,t.serieIndex,s.itemIndex,"radialGradient",s.outerRadius),u=t.settings;m.colors=h,m.settings=u,this.renderer.attr(m.element,{fill:h.fillColor,stroke:h.lineColor,"stroke-width":u.stroke,"fill-opacity":u.opacity,"stroke-opacity":u.opacity,"stroke-dasharray":"none"}),o&&this._showPieLabel(t.groupIndex,t.serieIndex,s.itemIndex,n,void 0,m.colors.lineColor),1===e&&this._installHandlers(m.element,"pieslice",t.groupIndex,t.serieIndex,s.itemIndex)}}_showPieLabel(t,e,r,n,o){let a=this._renderData[t].offsets[e][r];if(a.elementInfo.labelElement&&this.renderer.removeElement(a.elementInfo.labelElement),n||(n=this._getLabelsSettings(t,e,NaN)),!n.visible)return;let i=a.fromAngle,s=a.toAngle,l=Math.abs(i-s);l>360&&(i=0,s=360);let d=l/2+i;d%=360;let m,c=d*Math.PI*2/360;!0===n.autoRotate&&(m=d<90||d>270?360-d:180-d);let h=n.linesEnabled,u=this._showLabel(t,e,r,{x:0,y:0,width:0,height:0},"center","center",!0,!1,!1,m),p=n.radius||a.outerRadius+Math.max(u.width,u.height);this._isPercent(p)&&(p=parseFloat(p)/100*Math.min(this._plotRect.width,this._plotRect.height)/2),p+=a.centerOffset,isNaN(o)&&(o=0),p+=o;let f=this.seriesGroups[t],g=f.series[e],b=this._draw.getNum([g.offsetX,f.offsetX,this._plotRect.width/2]),v=this._draw.getNum([g.offsetY,f.offsetY,this._plotRect.height/2]),y=this._plotRect.x+b,w=this._plotRect.y+v,x=this._adjustTextBoxPosition(y,w,u,p,d,a.outerRadius>p,!1!==n.linesAngles,!0===n.autoRotate);const _={},S=x.x<y?0:u.width/2,C=Math.sqrt(Math.pow(x.x-y,2)+Math.pow(x.y-w,2))+S<a.outerRadius?arguments[5]:void 0;if(a.elementInfo.labelElement=this._showLabel(t,e,r,{x:x.x,y:x.y,width:u.width,height:u.height},"left","top",!1,!1,!1,m,_,C),p>a.outerRadius+o+5&&!1!==h){let t={lineColor:a.elementInfo.colors.lineColor,stroke:a.elementInfo.settings.stroke,opacity:a.elementInfo.settings.opacity,dashStyle:a.elementInfo.settings.dashStyle};a.elementInfo.labelArrowPath=this._updateLebelArrowPath(a.elementInfo.labelArrowPath,y,w,p,a.outerRadius+o,c,!1!==n.linesAngles,t,_)}}_updateLebelArrowPath(t,e,r,n,o,a,i,s,l){const d=this.renderer;let m=d._ptrnd(e+(n-0)*Math.cos(a)),c=d._ptrnd(r-(n-0)*Math.sin(a)),h=d._ptrnd(e+(o+2)*Math.cos(a)),u=d._ptrnd(r-(o+2)*Math.sin(a)),p=[];p.push({x:l.x+l.width/2,y:l.y}),p.push({x:l.x+l.width/2,y:l.y+l.height}),p.push({x:l.x,y:l.y+l.height/2}),p.push({x:l.x+l.width,y:l.y+l.height/2}),i||(p.push({x:l.x,y:l.y}),p.push({x:l.x+l.width,y:l.y}),p.push({x:l.x+l.width,y:l.y+l.height}),p.push({x:l.x,y:l.y+l.height})),p=p.sort((function(t,n){return d._ptdist(t.x,t.y,e,r)-d._ptdist(n.x,n.y,e,r)})),p=p.sort((function(t,n){return Math.abs(t.x-e)+Math.abs(t.y-r)-(Math.abs(n.x-e)+Math.abs(n.y-r))}));for(let t=0;t<p.length;t++)p[t].x=d._ptrnd(p[t].x),p[t].y=d._ptrnd(p[t].y);m=p[0].x,c=p[0].y;let f="M "+m+","+c+" L"+h+","+u;return i&&(f="M "+m+","+c+" L"+h+","+c+" L"+h+","+u),t?d.attr(t,{d:f}):t=d.path(f,{}),d.attr(t,{fill:"none",stroke:s.lineColor,"stroke-width":s.stroke,"stroke-opacity":s.opacity,"stroke-dasharray":"none"}),t}_adjustTextBoxPosition(t,e,r,n,o,a,i,s){let l=o*Math.PI*2/360,d=this.renderer._ptrnd(t+n*Math.cos(l)),m=this.renderer._ptrnd(e-n*Math.sin(l));if(s){let o=r.width,a=r.height,i=Math.atan(a/o)%(2*Math.PI),s=l%(2*Math.PI),d=0;s<=i?d=o/2*Math.cos(l):s>=i&&s<Math.PI-i?d=a/2*Math.sin(l):s>=Math.PI-i&&s<Math.PI+i?d=o/2*Math.cos(l):s>=Math.PI+i&&s<2*Math.PI-i?d=a/2*Math.sin(l):s>=2*Math.PI-i&&s<2*Math.PI&&(d=o/2*Math.cos(l)),n+=Math.abs(d)+3;let m=this.renderer._ptrnd(t+n*Math.cos(l)),c=this.renderer._ptrnd(e-n*Math.sin(l));return m-=r.width/2,c-=r.height/2,{x:m,y:c}}return a?(d-=r.width/2,m-=r.height/2):i?o>=90&&o<270?(m-=r.height/2,d-=r.width):m-=r.height/2:o>=0&&o<45||o>=315&&o<360?m-=r.height/2:o>=45&&o<135?(m-=r.height,d-=r.width/2):o>=135&&o<225?(m-=r.height/2,d-=r.width):o>=225&&o<315&&(d-=r.width/2),{x:d,y:m}}_isColumnType(t){return-1!==t.indexOf("column")||-1!==t.indexOf("waterfall")}_getColumnGroupsCount(t){let e=0;t=t||"vertical";let r=this.seriesGroups;for(let n=0;n<r.length;n++){let o=r[n].orientation||"vertical";this._isColumnType(r[n].type)&&o===t&&e++}return this.columnSeriesOverlap&&(e=1),e}_getColumnGroupIndex(t){let e=0,r=this.seriesGroups[t].orientation||"vertical";for(let n=0;n<t;n++){let t=this.seriesGroups[n],o=t.orientation||"vertical";this._isColumnType(t.type)&&o===r&&e++}return e}_renderAxisBands(t,e,r){var n=r?this._getXAxis(t):this._getValueAxis(t),o=this.seriesGroups[t],a=r?void 0:o.bands;if(!a){for(let e=0;e<t;e++){if((r?this._getXAxis(e):this._getValueAxis(e))===n)return}a=n.bands}if(Array.isArray(a)){var i=e,s="horizontal"===o.orientation;s&&(i={x:e.y,y:e.x,width:e.height,height:e.width}),this._calcGroupOffsets(t,i);for(let n=0;n<a.length;n++){var l=a[n],d=l.minValue,m=l.maxValue,c=r?this.getXAxisDataPointOffset(d,t):this.getValueAxisDataPointOffset(d,t),h=r?this.getXAxisDataPointOffset(m,t):this.getValueAxisDataPointOffset(m,t);if(!isNaN(c)&&!isNaN(h)){var u,p=Math.abs(c-h);if(o.polar||o.spider){var f=this._renderData[t],g=f.polarCoords;if(r)if(o.spider){const e=this.getPolarDataPointOffset(d,this._stats.seriesGroups[t].max,t),r=this.getPolarDataPointOffset(m,this._stats.seriesGroups[t].max,t);let n="M "+g.x+","+g.y;n+=" L "+e.x+","+e.y,n+=" L "+r.x+","+r.y,u=this.renderer.path(n)}else{var b={},v={x:Math.min(c,h),y:e.y,width:p,height:e.height};this._columnAsPieSlice(b,e,g,v),u=b.element}else{var y=this._toPolarCoord(g,e,e.x,f.baseOffset),w=this._toPolarCoord(g,e,e.x,c),x=this._toPolarCoord(g,e,e.x,h),_=this.renderer._ptdist(y.x,y.y,w.x,w.y),S=this.renderer._ptdist(y.x,y.y,x.x,x.y),C=Math.round(360*-g.startAngle/(2*Math.PI)),k=Math.round(360*-g.endAngle/(2*Math.PI));if(C>k){const t=C;C=k,k=t}if(o.spider){var A=f.xAxis.offsetAngles;let t="";var T=[S,_],E=A;for(var N in g.isClosedCircle&&(E=A.slice(0)).push(E[0]),T){for(let e=0;e<E.length;e++){var M=0===N?e:A.length-e-1;let r=g.x+T[N]*Math.cos(E[M]),n=g.y+T[N]*Math.sin(E[M]);t+=""===t?"M ":" L",t+=this.renderer._ptrnd(r)+","+this.renderer._ptrnd(n)}if(0===N){let e=g.x+T[1]*Math.cos(E[M]),r=g.y+T[1]*Math.sin(E[M]);t+=" L"+this.renderer._ptrnd(e)+","+this.renderer._ptrnd(r)}}t+=" Z",u=this.renderer.path(t)}else u=this.renderer.pieslice(g.x,g.y,_,S,C,k)}}else{var D={x:Math.min(c,h),y:i.y,width:p,height:i.height};if(r||(D={x:i.x,y:Math.min(c,h),width:i.width,height:p}),s){let t=D.x;D.x=D.y,D.y=t,t=D.width,D.width=D.height,D.height=t}u=0===p||1===p?this.renderer.line(this.renderer._ptrnd(D.x),this.renderer._ptrnd(D.y),this.renderer._ptrnd(D.x+(s?0:D.width)),this.renderer._ptrnd(D.y+(s?D.height:0))):this.renderer.rect(D.x,D.y,D.width,D.height)}var F=l.color||this._getThemeColor("band"),O=l.lineColor||F,I=l.lineWidth;isNaN(I)&&(I=1);var L=l.opacity;(isNaN(L)||L<0||L>1)&&(L=1),this.renderer.attr(u,{fill:F,"fill-opacity":L,stroke:O,"stroke-opacity":L,"stroke-width":I,"stroke-dasharray":l.dashStyle})}}}}_getColumnGroupWidth(t,e,r){let n=this.seriesGroups[t],o=-1!==n.type.indexOf("stacked"),a=this._getColumnGroupsCount(n.orientation);(isNaN(a)||0===a)&&(a=1);let i=e.rangeLength>=1?e.itemWidth:.9*r,s=n.columnsMinWidth;isNaN(s)&&(s=1),isNaN(n.columnsMaxWidth)||(s=Math.min(n.columnsMaxWidth,s)),s>i&&e.length>0&&(i=Math.max(i,.9*r/e.length));let l=s;if(!o){let t=n.seriesGapPercent;(isNaN(t)||t<0)&&(t=10),t/=100;let e=s;e*=1+t,l+=n.series.length*e}return{requiredWidth:l,availableWidth:i,targetWidth:Math.max(i/a,l)}}_getColumnSerieWidthAndOffset(t,e){let r=this.seriesGroups[t],n="horizontal"===r.orientation,o=this._plotRect;n&&(o={x:o.y,y:o.x,width:o.height,height:o.width});let a=this._calcGroupOffsets(t,o);if(!a||0===a.xoffsets.length)return;let i=this._getColumnGroupsCount(r.orientation);"candlestick"!==r.type&&"ohlc"!==r.type||(i=1);let s=this._getColumnGroupIndex(t),l=this._getColumnGroupWidth(t,a.xoffsets,n?o.height:o.width),d=0,m=l.targetWidth;(!0===this.columnSeriesOverlap||Math.round(m)>Math.round(l.availableWidth/i))&&(i=1,s=0),d-=m*i/2,d+=m*s;let c=r.columnsGapPercent;c<=0&&(c=0),(isNaN(c)||c>=100)&&(c=25),c/=100;let h=m*c;h+l.requiredWidth>l.targetWidth&&(h=Math.max(0,l.targetWidth-l.requiredWidth)),Math.round(m)>Math.round(l.availableWidth)&&(h=0),m-=h,d+=h/2;let u=r.seriesGapPercent;(isNaN(u)||u<0)&&(u=10);let p=-1!==r.type.indexOf("stacked"),f=m;p||(f/=r.series.length);let g=this._get([r.seriesGap,m*u/100/(r.series.length-1)]);(!0===r.polar||!0===r.spider||p||r.series.length<=1)&&(g=0);let b=g*(r.series.length-1);r.series.length>1&&b>m-1*r.series.length&&(b=m-1*r.series.length,g=b/Math.max(1,r.series.length-1));let v=f-b/r.series.length,y=0,w=r.columnsMaxWidth;isNaN(w)||v>w&&(y=v-w,v=w);let x=0;if(p)x=y/2;else{x=(m-v*r.series.length-b)/2+v*e+Math.max(0,e)*g}return{width:v,offset:d+x}}_renderColumnSeries(t,e){let r=this.seriesGroups[t];if(!r.series||0===r.series.length)return;let n="horizontal"===r.orientation,o=e;n&&(o={x:e.y,y:e.x,width:e.height,height:e.width});let a,i=this._calcGroupOffsets(t,o);if(!i||0===i.xoffsets.length)return;!0!==r.polar&&!0!==r.spider||(a=this._getPolarAxisCoords(t,o));let s={groupIndex:t,rect:e,vertical:!n,seriesCtx:[],renderData:i,polarAxisCoords:a};s.columnGroupWidth=this._getColumnGroupWidth(t,i.xoffsets,n?o.height:o.width);let l,d=this._getGroupGradientType(t);for(let e=0;e<r.series.length;e++){let n=r.series[e];if(n.customDraw)continue;let o=this._getAnimProps(t,e);l=o.enabled&&!this._isToggleRefresh&&i.xoffsets.length<100?o.duration:0;let m=this._getColumnSerieWidthAndOffset(t,e),c=this._isSerieVisible(t,e),h=this._getSerieSettings(t,e),u=this._getColors(t,e,NaN,this._getGroupGradientType(t),4),p=[];if("function"==typeof n.colorFunction&&!a)for(let r=i.xoffsets.first;r<=i.xoffsets.last;r++)p.push(this._getColors(t,e,r,d,4));let f={seriesIndex:e,serieColors:u,itemsColors:p,settings:h,columnWidth:m.width,xAdjust:m.offset,isVisible:c};s.seriesCtx.push(f)}this._animColumns(s,0===l?1:0);let m=this;this._enqueueAnimation("series",void 0,void 0,l,(function(t,e,r){m._animColumns(e,r)}),s)}_getPercent(t,e,r,n){return isNaN(t)&&(t=e),!isNaN(r)&&!isNaN(t)&&t<r&&(t=r),!isNaN(n)&&!isNaN(t)&&t>n&&(t=n),isNaN(t)?NaN:t}_getColumnVOffsets(t,e,r,n,o,a){var i=this.seriesGroups[e],s=this._getPercent(i.columnsTopWidthPercent,100,0,100),l=this._getPercent(i.columnsBottomWidthPercent,100,0,100);0===s&&0===l&&(l=100);var d=this._getPercent(i.columnsNeckHeightPercent,NaN,0,100)/100,m=this._getPercent(i.columnsNeckWidthPercent,100,0,100)/100,c=[],h=NaN;for(let i=0;i<r.length;i++){var u,p=r[i],f=p.seriesIndex,g=t.offsets[f][n].from,b=t.offsets[f][n].to,v=t.xoffsets.data[n],y=p.isVisible;y||(b=g);var w=this._elementRenderInfo;if(y&&w&&w.length>e&&w[e].series.length>f){var x=t.xoffsets.xvalues[n];!(u=w[e].series[f][x])||isNaN(u.from)||isNaN(u.to)||(g=u.from+(g-u.from)*a,b=u.to+(b-u.to)*a,v=u.xoffset+(v-u.xoffset)*a)}u||(b=g+(b-g)*(o?1:a)),isNaN(g)&&(g=isNaN(h)?t.baseOffset:h),h=!isNaN(b)&&o?b:g,isNaN(b)&&(b=g);var _={from:g,to:b,xOffset:v};100===s&&100===l||(_.funnel=!0,_.toWidthPercent=s,_.fromWidthPercent=l),c.push(_)}if(o&&c.length>1&&!(this._elementRenderInfo&&this._elementRenderInfo.length>e)){var S=0,C=0,k=-1/0,A=1/0,T=1/0,E=-1/0;for(let t=0;t<c.length;t++){r[t].isVisible&&(c[t].to>=c[t].from?(C+=c[t].to-c[t].from,T=Math.min(T,c[t].from),E=Math.max(E,c[t].to)):(S+=c[t].from-c[t].to,k=Math.max(k,c[t].from),A=Math.min(A,c[t].to)))}var N=S,M=C;S*=a,C*=a;var D=0,F=0;for(let t=0;t<c.length;t++)if(c[t].to>=c[t].from){let e=c[t].to-c[t].from;e+F>C&&(e=Math.max(0,C-F),c[t].to=c[t].from+e),100===s&&100===l||(c[t].funnel=!0,!isNaN(d)&&M*d>=F?c[t].fromWidthPercent=100*m:c[t].fromWidthPercent=Math.abs(c[t].from-T)/M*(s-l)+l,!isNaN(d)&&M*d>=0+(F+e)?c[t].toWidthPercent=100*m:c[t].toWidthPercent=Math.abs(c[t].to-T)/M*(s-l)+l),F+=e}else{let e=c[t].from-c[t].to;e+D>S&&(e=Math.max(0,S-D),c[t].to=c[t].from-e),100===s&&100===l||(c[t].funnel=!0,!isNaN(d)&&N*d>=D?c[t].fromWidthPercent=100*m:c[t].fromWidthPercent=Math.abs(c[t].from-k)/N*(s-l)+l,!isNaN(d)&&N*d>=0+(D+e)?c[t].toWidthPercent=100*m:c[t].toWidthPercent=Math.abs(c[t].to-k)/N*(s-l)+l),D+=e}}return c}_columnAsPieSlice(t,e,r,n){let o=this._toPolarCoord(r,e,n.x,n.y),a=this._toPolarCoord(r,e,n.x,n.y+n.height),i=this.renderer._ptdist(r.x,r.y,a.x,a.y),s=this.renderer._ptdist(r.x,r.y,o.x,o.y),l=e.width,d=180*Math.abs(r.startAngle-r.endAngle)/Math.PI,m=-(n.x-e.x)*d/l,c=-(n.x+n.width-e.x)*d/l,h=r.startAngle;if(h=360*h/(2*Math.PI),m-=h,c-=h,t)if(void 0!==t.element&&null!==t.element){let e=this.renderer.pieSlicePath(r.x,r.y,i,s,c,m,0);e+=" Z",this.renderer.attr(t.element,{d:e})}else t.element=this.renderer.pieslice(r.x,r.y,i,s,c,m,0);return{fromAngle:c,toAngle:m,innerRadius:i,outerRadius:s}}_setRenderInfo(t,e,r,n){this._renderData[t].offsets[e][r].elementInfo=n}_getRenderInfo(t,e,r){return this._renderData[t].offsets[e][r].elementInfo||{}}_animColumns(t,e){var r=t.groupIndex,n=this.seriesGroups[r],o=t.renderData,a=-1!==n.type.indexOf("waterfall"),i=this._getXAxis(r),s=-1!==n.type.indexOf("stacked"),l=t.polarAxisCoords,d=-1;for(let t=0;t<n.series.length;t++)if(this._isSerieVisible(r,t)){d=t;break}var m=NaN,c=NaN;for(let e=0;e<t.seriesCtx.length;e++){var h=t.seriesCtx[e];(isNaN(m)||m>h.xAdjust)&&(m=h.xAdjust),(isNaN(c)||c<h.xAdjust+h.columnWidth)&&(c=h.xAdjust+h.columnWidth)}var u=Math.abs(c-m),p=this._get([n.columnsGapPercent,25])/100;(isNaN(p)<0||p>=1)&&(p=.25);var f=p*u,g=t.renderData.xoffsets,b=-1,v={},y=!0===n.skipOverlappingPoints;for(let m=g.first;m<=g.last;m++){var w=g.data[m];if(!isNaN(w)&&!(-1!==b&&Math.abs(w-b)<u-1+f&&y)){b=w;var x=this._getColumnVOffsets(o,r,t.seriesCtx,m,s,e),_=!1;if(a)for(let t=0;t<n.series.length;t++)n.series[t].summary&&g.xvalues[m][n.series[t].summary]&&(_=!0);for(let c=0;c<t.seriesCtx.length;c++){let h=t.seriesCtx[c];var S=h.seriesIndex,C=n.series[S],k=x[c].from,A=x[c].to,T=x[c].xOffset,E=(t.vertical?t.rect.x:t.rect.y)+h.xAdjust,N=h.settings;let u=0!==h.itemsColors.length?h.itemsColors[m-o.xoffsets.first]:h.serieColors;var M=this._isSerieVisible(r,S);if(!M)continue;let p=this.renderer._ptrnd(E+T);var D={x:p,width:h.columnWidth};x[c].funnel&&(D.fromWidthPercent=x[c].fromWidthPercent,D.toWidthPercent=x[c].toWidthPercent);var F=!0;t.vertical?(D.y=k,D.height=A-k,D.height<0&&(D.y+=D.height,D.height=-D.height,F=!1)):(D.x=k<A?k:A,D.width=Math.abs(k-A),F=k-A<0,D.y=p,D.height=h.columnWidth);var O=k-A;if(!isNaN(O)){O=Math.abs(O);var I=void 0,L=this._getRenderInfo(r,S,m),P=L.element,z=L.labelElement,B=null==P;if(z&&(this.renderer.removeElement(z),z=void 0),l){var R={element:P};I=this._columnAsPieSlice(R,t.rect,l,D),P=R.element,u=this._getColors(r,S,void 0,"radialGradient",I.outerRadius)}else if(x[c].funnel){var H=this._getTrapezoidPath(Object.assign({},D),t.vertical,F);B?P=this.renderer.path(H,{}):this.renderer.attr(P,{d:H})}else B?P=this.renderer.rect(D.x,D.y,t.vertical?D.width:0,t.vertical?0:D.height):!0===t.vertical?this.renderer.attr(P,{x:D.x,y:D.y,height:O}):this.renderer.attr(P,{x:D.x,y:D.y,width:O});if(O<1&&(1!==e||l)?this.renderer.attr(P,{display:"none"}):this.renderer.attr(P,{display:"block"}),B&&this.renderer.attr(P,{fill:u.fillColor,"fill-opacity":N.opacity,"stroke-opacity":N.opacity,stroke:u.lineColor,"stroke-width":N.stroke,"stroke-dasharray":N.dashStyle}),z&&this.renderer.removeElement(z),!M||0===O&&e<1)L={element:P,labelElement:z},this._setRenderInfo(r,S,m,L);else{if(a&&!1!==this._get([C.showWaterfallLines,n.showWaterfallLines])){if(!s||s&&c===d){var V=s?-1:c;if(1===e&&!isNaN(o.offsets[c][m].from)&&!isNaN(o.offsets[c][m].to)){var U=v[V];if(null!=U){var $={x:U.x,y:this.renderer._ptrnd(U.y)},G={x:p,y:$.y},j=n.columnsTopWidthPercent/100;(isNaN(j)||j>1||j<0)&&(j=1);var W=n.columnsBottomWidthPercent/100;(isNaN(W)||W>1||W<0)&&(W=1);var X=t.vertical?D.width:D.height;if($.x=$.x-X/2+X/2*j,_){let t=X*j/2;G.x=G.x+X/2-(i.flip?-t:t)}else{let t=X*W/2;G.x=G.x+X/2-(i.flip?-t:t)}t.vertical||(this._swapXY([$]),this._swapXY([G])),this.renderer.line($.x,$.y,G.x,G.y,{stroke:U.color,"stroke-width":N.stroke,"stroke-opacity":N.opacity,"fill-opacity":N.opacity,"stroke-dasharray":N.dashStyle})}}}1===e&&0!==O&&(v[s?-1:c]={y:A,x:t.vertical?D.x+D.width:D.y+D.height,color:u.lineColor})}if(l){let t=this._showLabel(r,S,m,D,void 0,void 0,!0);var q=I.outerRadius+10;const e=this._adjustTextBoxPosition(l.x,l.y,t,q,(I.fromAngle+I.toAngle)/2,!0,!1,!1);z=this._showLabel(r,S,m,{x:e.x,y:e.y},void 0,void 0,!1,!1,!1)}else z=this._showLabel(r,S,m,D,void 0,void 0,!1,!1,F);L={element:P,labelElement:z},this._setRenderInfo(r,S,m,L),1===e&&this._installHandlers(P,"column",r,S,m)}}}}}}_getTrapezoidPath(t,e,r){let n="",o=t.fromWidthPercent/100,a=t.toWidthPercent/100;if(!e){let e=t.width;t.width=t.height,t.height=e,e=t.x,t.x=t.y,t.y=e}let i=t.x+t.width/2,s=[{x:i-t.width*(r?a:o)/2,y:t.y+t.height},{x:i-t.width*(r?o:a)/2,y:t.y},{x:i+t.width*(r?o:a)/2,y:t.y},{x:i+t.width*(r?a:o)/2,y:t.y+t.height}];e||this._swapXY(s),n+="M "+this.renderer._ptrnd(s[0].x)+","+this.renderer._ptrnd(s[0].y);for(let t=1;t<s.length;t++)n+=" L "+this.renderer._ptrnd(s[t].x)+","+this.renderer._ptrnd(s[t].y);return n+=" Z",n}_swapXY(t){for(let e=0;e<t.length;e++){let r=t[e].x;t[e].x=t[e].y,t[e].y=r}}_renderCandleStickSeries(t,e,r){let n=this,o=n.seriesGroups[t];if(!o.series||0===o.series.length)return;let a="horizontal"===o.orientation,i=e;a&&(i={x:e.y,y:e.x,width:e.height,height:e.width});let s,l=n._calcGroupOffsets(t,i);if(!l||0===l.xoffsets.length)return;(o.polar||o.spider)&&(s=n._getPolarAxisCoords(t,i));let d=n._getGroupGradientType(t),m=[];for(let e=0;e<o.series.length;e++)m[e]=n._getColumnSerieWidthAndOffset(t,e);for(let i=0;i<o.series.length;i++){if(!this._isSerieVisible(t,i))continue;let c=n._getSerieSettings(t,i),h=o.series[i];if(h.customDraw)continue;let u="function"==typeof h.colorFunction?void 0:n._getColors(t,i,NaN,d),p={rect:e,inverse:a,groupIndex:t,seriesIndex:i,symbolType:h.symbolType,symbolSize:h.symbolSize,"fill-opacity":c.opacity,"stroke-opacity":c.opacity,"stroke-width":c.stroke,"stroke-dasharray":c.dashStyle,gradientType:d,colors:u,renderData:l,polarAxisCoords:s,columnsInfo:m,isOHLC:r,items:[],self:n},f=n._getAnimProps(t,i),g=f.enabled&&!n._isToggleRefresh&&l.xoffsets.length<5e3?f.duration:0;n._animCandleStick(p,0),n._enqueueAnimation("series",void 0,void 0,g,(function(t,e,r){n._animCandleStick(e,r,t)}),p)}}_animCandleStick(t,e){var r=["Open","Low","Close","High"],n=t.columnsInfo[t.seriesIndex].width,o=t.self.seriesGroups[t.groupIndex],a=t.renderData.xoffsets,i=-1,s=Math.abs(a.data[a.last]-a.data[a.first]);s*=e;var l=NaN,d=NaN;for(let e=0;e<t.columnsInfo.length;e++){var m=t.columnsInfo[e];(isNaN(l)||l>m.offset)&&(l=m.offset),(isNaN(d)||d<m.offset+m.width)&&(d=m.offset+m.width)}var c=Math.abs(d-l),h=!1!==o.skipOverlappingPoints;for(let l=a.first;l<=a.last;l++){var u=a.data[l];if(!isNaN(u)&&!(-1!==i&&Math.abs(u-i)<c&&h)){if(Math.abs(a.data[l]-a.data[a.first])>s)break;i=u;var p=t.items[l]=t.items[l]||{};for(let e in r){var f=t.self._getDataValueAsNumber(l,o.series[t.seriesIndex]["dataField"+r[e]],t.groupIndex);if(isNaN(f))break;var g=t.renderData.offsets[t.seriesIndex][l][r[e]];if(isNaN(g))break;p[r[e]]=g}if(u+=t.inverse?t.rect.y:t.rect.x,t.polarAxisCoords){var b=this._toPolarCoord(t.polarAxisCoords,this._plotRect,u,g);u=b.x,g=b.y}for(var v in u=this.renderer._ptrnd(u),r)p[v]=this.renderer._ptrnd(p[v]);var y=t.colors;if(y||(y=t.self._getColors(t.groupIndex,t.seriesIndex,l,t.gradientType)),t.isOHLC){var w="M"+u+","+p.Low+" L"+u+","+p.High+" M"+(u-n/2)+","+p.Open+" L"+u+","+p.Open+" M"+(u+n/2)+","+p.Close+" L"+u+","+p.Close;t.inverse&&(w="M"+p.Low+","+u+" L"+p.High+","+u+" M"+p.Open+","+(u-n/2)+" L"+p.Open+","+u+" M"+p.Close+","+u+" L"+p.Close+","+(u+n/2));let r=p.lineElement;r||(r=this.renderer.path(w,{}),this.renderer.attr(r,{fill:y.fillColor,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:y.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),p.lineElement=r),1===e&&this._installHandlers(r,"column",t.groupIndex,t.seriesIndex,l)}else{var x=p.lineElement;x||(x=t.inverse?this.renderer.line(p.Low,u,p.High,u):this.renderer.line(u,p.Low,u,p.High),this.renderer.attr(x,{fill:y.fillColor,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:y.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),p.lineElement=x);var _=p.stickElement;if(u-=n/2,!_){var S=y.fillColor;p.Close<=p.Open&&y.fillColorAlt&&(S=y.fillColorAlt),_=t.inverse?this.renderer.rect(Math.min(p.Open,p.Close),u,Math.abs(p.Close-p.Open),n):this.renderer.rect(u,Math.min(p.Open,p.Close),n,Math.abs(p.Close-p.Open)),this.renderer.attr(_,{fill:S,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:y.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),p.stickElement=_}1===e&&this._installHandlers(_,"column",t.groupIndex,t.seriesIndex,l)}}}}_renderScatterSeries(t,e,r){var n=this.seriesGroups[t];if(n.series&&0!==n.series.length){var o=-1!==n.type.indexOf("bubble"),a="horizontal"===n.orientation,i=e;a&&(i={x:e.y,y:e.x,width:e.height,height:e.width});var s=this._calcGroupOffsets(t,i);if(s&&0!==s.xoffsets.length){var l,d=i.width;(n.polar||n.spider)&&(d=2*(l=this._getPolarAxisCoords(t,i)).r);var m=this._getGroupGradientType(t);r||(r="to");for(let B=0;B<n.series.length;B++){var c=this._getSerieSettings(t,B),h=n.series[B];if(!h.customDraw){var u=h.dataField,p="function"==typeof h.colorFunction,f=this._getColors(t,B,NaN,m),g=NaN,b=NaN;if(o)for(let e=s.xoffsets.first;e<=s.xoffsets.last;e++){var v=this._getDataValueAsNumber(e,h.radiusDataField||h.sizeDataField,t);"number"!=typeof v&&this.error(this.localize("invalidRadiusDataField",{index:e})),isNaN(v)||((isNaN(g)||v<g)&&(g=v),(isNaN(b)||v>b)&&(b=v))}var y=h.minRadius||h.minSymbolSize;isNaN(y)&&(y=d/50);var w=h.maxRadius||h.maxSymbolSize;isNaN(w)&&(w=d/25),y>w&&(w=y);var x=h.radius;x=isNaN(x)&&!isNaN(h.symbolSize)?"circle"===h.symbolType?h.symbolSize/2:h.symbolSize:5;var _=this._getAnimProps(t,B),S=_.enabled&&!this._isToggleRefresh&&s.xoffsets.length<5e3?_.duration:0,C={groupIndex:t,seriesIndex:B,symbolType:h.symbolType,symbolSize:h.symbolSize,"fill-opacity":c.opacity,"stroke-opacity":c.opacity,"stroke-width":c.stroke,"stroke-width-symbol":c.strokeSymbol,"stroke-dasharray":c.dashStyle,items:[],polarAxisCoords:l},k=void 0;for(let n=s.xoffsets.first;n<=s.xoffsets.last;n++){if("number"==typeof this._getDataValueAsNumber(n,u,t)){var A=s.xoffsets.data[n],T=s.xoffsets.xvalues[n],E=s.offsets[B][n][r];if(!(E<i.y||E>i.y+i.height||isNaN(A)||isNaN(E))){if(a){var N=A;A=E,E=N+e.y}else A+=e.x;if(!(!p&&k&&this.enableSampling&&this.renderer._ptdist(k.x,k.y,A,E)<1)){k={x:A,y:E};var M=x;if(o){var D=this._getDataValueAsNumber(n,h.radiusDataField||h.sizeDataField,t);if("number"!=typeof D)continue;M=y+(w-y)*(D-g)/Math.max(1,b-g),isNaN(M)&&(M=y)}s.offsets[B][n].radius=M;var F=NaN,O=NaN,I=0,L=this._elementRenderInfo;if(null!=T&&L&&L.length>t&&L[t].series.length>B){var P=L[t].series[B][T];if(P&&!isNaN(P.to)){if(F=P.to,O=P.xoffset,I=x,a){let t=O;O=F,F=t+e.y}else O+=e.x;o&&(I=y+(w-y)*(P.valueRadius-g)/Math.max(1,b-g),isNaN(I)&&(I=y))}}p&&(f=this._getColors(t,B,n,m)),C.items.push({from:I,to:M,itemIndex:n,fill:f.fillColor,stroke:f.lineColor,x:A,y:E,xFrom:O,yFrom:F})}}}}this._animR(C,0);var z=this;this._enqueueAnimation("series",void 0,void 0,S,(function(t,e,r){z._animR(e,r,t)}),C)}}}}}_animR(t,e){let r=t.items,n=t.symbolType||"circle",o=t.symbolSize;for(let a=0;a<r.length;a++){let i=r[a],s=i.x,l=i.y,d=Math.round((i.to-i.from)*e+i.from);if(isNaN(i.yFrom)||(l=i.yFrom+(l-i.yFrom)*e),isNaN(i.xFrom)||(s=i.xFrom+(s-i.xFrom)*e),t.polarAxisCoords){let e=this._toPolarCoord(t.polarAxisCoords,this._plotRect,s,l);s=e.x,l=e.y}s=this.renderer._ptrnd(s),l=this.renderer._ptrnd(l),d=this.renderer._ptrnd(d);let m=this._getRenderInfo(t.groupIndex,t.seriesIndex,r[a].itemIndex),c=m.element,h=m.labelElement;"circle"===n?(c||(c=this.renderer.circle(s,l,d),this.renderer.attr(c,{fill:i.fill,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:i.stroke,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]})),this.renderer.attr(c,{r:d,cy:l,cx:s})):(c&&this.renderer.removeElement(c),c=this._drawSymbol(n,s,l,i.fill,t["fill-opacity"],i.stroke,t["stroke-opacity"]||t["fill-opacity"],t["stroke-width-symbol"],t["stroke-dasharray"],o||d)),h&&this.renderer.removeElement(h),h=this._showLabel(t.groupIndex,t.seriesIndex,i.itemIndex,{x:s-d,y:l-d,width:2*d,height:2*d}),e>=1&&this._installHandlers(c,"circle",t.groupIndex,t.seriesIndex,i.itemIndex),this._setRenderInfo(t.groupIndex,t.seriesIndex,r[a].itemIndex,{element:c,labelElement:h})}}_showMultiSeriesToolTip(t){let e=this,r="<div style='text-align:left'>",n="";for(let o=0;o<e.seriesGroups.length;o++){if(e._isPieGroup(o))continue;let a=e._getXAxis(o),i=e._getValueAxis(o),s=e.seriesGroups[o],l=this._getAxisSettings(a),d=this._getFormatSettings(l,"toolTipFormatSettings"),m=l.toolTipFormatFunction,c=e._getDataValue(t,a.dataField,o);void 0!==a.dataField&&null!==a.dataField&&""!==a.dataField||(c=t),"date"===a.type&&(c=e._castAsDate(c,(d?d.dateFormat:void 0)||a.dateFormat)),m||d||"date"!==a.type||(m=this._getDefaultDTFormatFn(a.baseUnit||"day"));let h=a.displayText||a.dataField||"";""!==h&&(h+=": ");let u=h+e._formatValue(c,d,m,o,void 0,t);n!==u&&(""!==n&&(r+="<br />"),r+=u+"<br /><br />",n=u);for(let n=0;n<s.series.length;n++){let a=s.series[n];if(!1===s.showToolTips||!1===a.showToolTips)continue;if(!e._isSerieVisible(o,n))continue;let l=e._get([e._getFormatSettings(a,"toolTipFormatSettings"),e._getFormatSettings(s,"toolTipFormatSettings"),e._getFormatSettings(i,"toolTipFormatSettings"),e._getFormatSettings(e,"toolTipFormatSettings")]),d=e._get([a.toolTipFormatFunction,s.toolTipFormatFunction,i.toolTipFormatFunction,e.toolTipFormatFunction]),m=e._getFormattedValue(o,n,t,l,d);r+='<span style="color:'+e._getColors(o,n,t).lineColor+';">'+m+"</span><br />\n"}}let o=this._get([e.toolTipClass,"smart-chart-tooltip-text"]),a=this._get([e.toolTipBackground,e._getThemeColor("background")]),i=this._get([e.toolTipLineColor,e._getThemeColor("line")]),s=this._get([e.toolTipOpacity,1]);r+="</div>";let l=this.getItemCoord(e._ttEl.gidx,e._ttEl.sidx,e._ttEl.iidx);l.x+=window.pageXOffset,l.y+=window.pageYOffset,e._createTooltip(l,e.seriesGroups[e._ttEl.gidx],r,{css:o,fill:a,stroke:i,fillOpacity:s,symbolSize:3})}_showToolTip(t,e,r,n,o){let a=this,i=a._getXAxis(r),s=a._getValueAxis(r);if(a._ttEl&&r===a._ttEl.gidx&&n===a._ttEl.sidx&&o===a._ttEl.iidx)return;let l=a.seriesGroups[r],d=l.series[n],m=a.enableCrosshairs;a._pointMarker?(t=parseInt(a._pointMarker.x+5),e=parseInt(a._pointMarker.y-5)):m=!1;let c=m&&!1===a.showToolTips;if(t=this.renderer._ptrnd(t),e=this.renderer._ptrnd(e),!1===l.showToolTips||!1===d.showToolTips)return;a._ttEl||(a._ttEl={}),a._ttEl.sidx=n,a._ttEl.gidx=r,a._ttEl.iidx=o;let h=0;for(let t=0;t<a.seriesGroups.length;t++)for(let e=0;e<a.seriesGroups[t].series.length;e++)h++;if(m){let t=this.renderer._ptrnd(a._pointMarker.x),e=this.renderer._ptrnd(a._pointMarker.y),n=a.crosshairsColor||a._getThemeColor("line");if(l.polar||l.spider){let o=this._getPolarAxisCoords(r,this._plotRect);if(this.renderer._ptdist(t,e,o.x,o.y)>o.r)return;let i=Math.atan2(e-o.y,t-o.x),s=Math.cos(i)*o.r+o.x,l=Math.sin(i)*o.r+o.y;a._ttEl.vLine?a.renderer.attr(a._ttEl.vLine,{x1:o.x,y1:o.y,x2:s,y2:l}):a._ttEl.vLine=a.renderer.line(o.x,o.y,s,l,{stroke:n,"stroke-width":a.crosshairsLineWidth||1,"stroke-dasharray":a.crosshairsDashStyle||""})}else a._ttEl.vLine&&a._ttEl.hLine?(a.renderer.attr(a._ttEl.vLine,{x1:t,x2:t}),a.renderer.attr(a._ttEl.hLine,{y1:e,y2:e})):(a._ttEl.vLine=a.renderer.line(t,a._plotRect.y,t,a._plotRect.y+a._plotRect.height,{stroke:n,"stroke-width":a.crosshairsLineWidth||1,"stroke-dasharray":a.crosshairsDashStyle||""}),a._ttEl.hLine=a.renderer.line(a._plotRect.x,e,a._plotRect.x+a._plotRect.width,e,{stroke:n,"stroke-width":a.crosshairsLineWidth||1,"stroke-dasharray":a.crosshairsDashStyle||""}))}if(a.showToolTipsOnAllSeries&&!a._isPieGroup(r)&&h>1)return void a._showMultiSeriesToolTip(o);let u=a._get([a._getFormatSettings(d,"toolTipFormatSettings"),a._getFormatSettings(l,"toolTipFormatSettings"),a._getFormatSettings(s,"toolTipFormatSettings"),a._getFormatSettings(a,"toolTipFormatSettings")]),p=a._get([d.toolTipFormatFunction,l.toolTipFormatFunction,s.toolTipFormatFunction,a.toolTipFormatFunction]),f=a._getColors(r,n,o),g=a._getDataValue(o,i.dataField,r);void 0!==i.dataField&&null!==i.dataField&&""!==i.dataField||(g=o),"date"===i.type&&(g=a._castAsDate(g,(u?u.dateFormat:void 0)||i.dateFormat));let b="";if("function"==typeof p){let t={},e=0;for(let n in d)0===n.indexOf("dataField")&&(t[n.substring(9,n.length).toLowerCase()]=a._getDataValue(o,d[n],r),e++);0===e?t=a._getDataValue(o,void 0,r):1===e&&(t=t[""]),b=p(t,o,d,l,g,i)}else{b=a._getFormattedValue(r,n,o,u,p);let t=this._getAxisSettings(i),e=a._getFormatSettings(t,"toolTipFormatSettings"),s=t.toolTipFormatFunction;s||e||"date"!==i.type||(s=this._getDefaultDTFormatFn(i.baseUnit||"day"));let l=a._formatValue(g,e,s,r,n,o);if(a._isPieGroup(r))g=a._getDataValue(o,d.displayText||d.dataField,r),l=a._formatValue(g,e,s,r,n,o),b=l+": "+b;else{let t=i.displayText||i.dataField||"";b=t.length>0?t+": "+l+"<br>"+b:l+"<br>"+b}}if(!c&&!1!==a.showToolTips){let t=this._get([d.toolTipClass,l.toolTipClass,a.toolTipClass,"smart-chart-tooltip-text"]),e=this._get([d.toolTipBackground,l.toolTipBackground,a.toolTipBackground,a._getThemeColor("background")]),i=this._get([d.toolTipLineColor,l.toolTipLineColor,a.toolTipLineColor,f.lineColor,a._getThemeColor("line")]),s=this._get([d.toolTipOpacity,l.toolTipOpacity,a.toolTipOpacity,1]),m=this.getItemCoord(r,n,o);m.y=Math.min(Math.max(m.y,this._plotRect.y),this._plotRect.y+this._plotRect.y+this._plotRect.height);let c=0;a._pointMarker&&a._pointMarker.element&&(c=d.symbolSizeSelected,isNaN(c)&&(c=d.symbolSize),(isNaN(c)||c>50||c<0)&&(c=l.symbolSize),(isNaN(c)||c>50||c<0)&&(c=8)),a._createTooltip(m,l,b,{css:t,fill:e,stroke:i,fillOpacity:s,symbolSize:c})}}_fitTooltip(t,e,r,n,o){let a={},i=2+o/2;if(e.x-r.width-7-i>t.x&&e.y+e.height/2-r.height/2>t.y&&e.y+e.height/2+r.height/2<t.y+t.height&&(a.left={arrowLocation:"right",x:e.x-r.width-7-i,y:e.y+e.height/2-r.height/2,width:r.width+7,height:r.height}),e.x+e.width+r.width+7+i<t.x+t.width&&e.y+e.height/2-r.height/2>t.y&&e.y+e.height/2+r.height/2<t.y+t.height&&(a.right={arrowLocation:"left",x:e.x+e.width+i,y:e.y+e.height/2-r.height/2,width:r.width+7,height:r.height}),e.y-r.height-i-7>t.y&&e.x+e.width/2-r.width/2>t.x&&e.x+e.width/2+r.width/2<t.x+t.width&&(a.top={arrowLocation:"bottom",x:e.x+e.width/2-r.width/2,y:e.y-r.height-i-7,width:r.width,height:r.height+7}),e.y+e.height+r.height+7+i<t.y+t.height&&e.x+e.width/2-r.width/2>t.x&&e.x+e.width/2+r.width/2<t.x+t.width&&(a.bottom={arrowLocation:"top",x:e.x+e.width/2-r.width/2,y:e.y+e.height+i,width:r.width,height:r.height+7}),e.width>e.height||(-1!==n.type.indexOf("stackedcolumn")||-1!==n.type.indexOf("stackedwaterfall"))&&"horizontal"!==n.orientation){if(a.left)return a.left;if(a.right)return a.right}else{if(a.top)return a.top;if(a.bottom)return a.bottom}for(let t in a)if(a[t])return a[t];return{arrowLocation:""}}_createTooltip(t,e,r,n){const o=this,a=e.type;let i=o._ttEl.box;if(!i){i=o._ttEl.box=document.createElement("div"),i.id=o.id+"Tooltip",i.className="smart-chart-tooltip",i.setAttribute("animation",o.animation),i.setAttribute("theme",o.theme),i.setAttribute("role","tooltip");const t=document.createElement("div"),e=document.createElement("div"),r=document.createElement("div");if(t.className="smart-chart-tooltip-arrow-outer",t.setAttribute("role","presentation"),e.className="smart-chart-tooltip-arrow-inner",e.setAttribute("role","presentation"),r.className="smart-chart-tooltip-content",r.setAttribute("role","presentation"),i.appendChild(r),i.appendChild(t),i.appendChild(e),o.getRootNode().host?o.getShadowRootOrBody().appendChild(i):document.body.appendChild(i),o.hasAttribute("aria-owns")){const t=o.getAttribute("aria-owns");o.setAttribute("aria-owns",t+" "+i.id)}else o.setAttribute("aria-owns",i.id)}if(!r||0===r.length)return void i.classList.add("smart-visibility-hidden");o.rightToLeft?i.setAttribute("right-to-left",""):i.removeAttribute("right-to-left"),i.classList.add("smart-visibility-hidden");const s=i.firstElementChild,l=i.children[1],d=i.children[2];d.style.opacity=l.style.opacity=n.fillOpacity,s.style.backgroundColor=n.fill,s.style.borderColor=n.stroke,s.style.opacity=n.fillOpacity;const m='<span class="'+n.css+'" role="presentation">'+r+"</span>";s.innerHTML=m;const c=o._measureHtml(m),h=o._plotRect;if(c.width>h.width||c.height>h.height)return;let u={width:c.width,height:c.height},p="",f=o._isColumnType(a),g=Math.max(t.x,h.x),b=Math.max(t.y,h.y);if(-1!==a.indexOf("pie")||-1!==a.indexOf("donut")){let e=(t.fromAngle+t.toAngle)/2;e*=Math.PI/180;let r=!isNaN(t.innerRadius)&&t.innerRadius>0?(t.innerRadius+t.outerRadius)/2:.75*t.outerRadius;g=t.x=t.center.x+Math.cos(e)*r,b=t.y=t.center.y-Math.sin(e)*r,t.width=t.height=1}else f&&(e.polar||e.spider)&&(t.width=t.height=1);let v=this._fitTooltip(this._plotRect,t,u,e,n.symbolSize);""!==v.arrowLocation&&(p=v.arrowLocation,g=v.x,b=v.y,u.width=v.width,u.height=v.height),"top"===p||"bottom"===p?(u.height+=7,g-=3.5,"bottom"===p&&(b-=7)):"left"!==p&&"right"!==p||(u.width+=7,b-=3.5,"right"===p&&(g-=7)),g+u.width>h.x+h.width&&(p="",g=h.x+h.width-u.width),b+u.height>h.y+h.height&&(p="",b=h.y+h.height-u.height);let y={x:0,y:0},w={x:0,y:0};s.style.width=c.width+"px",s.style.height=c.height+"px",l.style["margin-top"]=l.style["margin-left"]=0,d.style["margin-top"]=d.style["margin-left"]=0,s.style["margin-top"]=s.style["margin-left"]=0;switch(p){case"left":y={x:0,y:(c.height-7)/2},w={x:7,y:0},s.style["margin-left"]="7px",l.style["margin-left"]="0px",l.style["margin-top"]=y.y+"px",l.style["border-left"]="",l.style["border-right"]="7px solid "+n.stroke,l.style["border-top"]="7px solid transparent",l.style["border-bottom"]="7px solid transparent",d.style["margin-left"]="1px",d.style["margin-top"]=y.y+"px",d.style["border-left"]="",d.style["border-right"]="7px solid "+n.fill,d.style["border-top"]="7px solid transparent",d.style["border-bottom"]="7px solid transparent";break;case"right":y={x:u.width-7,y:(c.height-7)/2},w={x:0,y:0},l.style["margin-left"]=y.x+"px",l.style["margin-top"]=y.y+"px",l.style["border-left"]="7px solid "+n.stroke,l.style["border-right"]="",l.style["border-top"]="7px solid transparent",l.style["border-bottom"]="7px solid transparent",d.style["margin-left"]=y.x-1+"px",d.style["margin-top"]=y.y+"px",d.style["border-left"]="7px solid "+n.fill,d.style["border-right"]="",d.style["border-top"]="7px solid transparent",d.style["border-bottom"]="7px solid transparent";break;case"top":y={x:u.width/2-3.5,y:0},w={x:0,y:7},s.style["margin-top"]=w.y+"px",l.style["margin-left"]=y.x+"px",l.style["border-top"]="",l.style["border-bottom"]="7px solid "+n.stroke,l.style["border-left"]="7px solid transparent",l.style["border-right"]="7px solid transparent",d.style["margin-left"]=y.x+"px",d.style["margin-top"]="1px",d.style["border-top"]="",d.style["border-bottom"]="7px solid "+n.fill,d.style["border-left"]="7px solid transparent",d.style["border-right"]="7px solid transparent";break;case"bottom":y={x:u.width/2-3.5,y:u.height-7},w={x:0,y:0},l.style["margin-left"]=y.x+"px",l.style["margin-top"]=y.y+"px",l.style["border-top"]="7px solid "+n.stroke,l.style["border-bottom"]="",l.style["border-left"]="7px solid transparent",l.style["border-right"]="7px solid transparent",d.style["margin-left"]=y.x+"px",d.style["margin-top"]=y.y-1+"px",d.style["border-top"]="7px solid "+n.fill,d.style["border-bottom"]="",d.style["border-left"]="7px solid transparent",d.style["border-right"]="7px solid transparent"}""===p?(l.classList.add("smart-hidden"),d.classList.add("smart-hidden")):(l.classList.remove("smart-hidden"),d.classList.remove("smart-hidden")),i.style.width=u.width+"px",i.style.height=u.height+"px";const x=o.getBoundingClientRect();i.style.left=g+x.left+window.pageXOffset+"px",i.style.top=b+x.top+window.pageYOffset+"px",i.classList.remove("smart-visibility-hidden")}_measureHtml(t){const e=this;let r=e._measureDiv;r||(e._measureDiv=r=document.createElement("div"),r.className="smart-chart-tooltip",r.style.position="absolute",r.style.visibility="hidden",r.style.left=0,r.style.top=0,(e.shadowRoot||e).appendChild(r)),r.innerHTML=t;const n={width:r.offsetWidth+2,height:r.offsetHeight+2};return Smart.Utilities.Core.Browser.Firefox&&(n.height+=3),n}_hideToolTip(){this._ttEl&&(this._ttEl.box&&this._ttEl.box.classList.add("smart-visibility-hidden"),this._hideCrosshairs(),this._ttEl.gidx=void 0)}_hideCrosshairs(){this._ttEl&&(this._ttEl.vLine&&(this.renderer.removeElement(this._ttEl.vLine),this._ttEl.vLine=void 0),this._ttEl.hLine&&(this.renderer.removeElement(this._ttEl.hLine),this._ttEl.hLine=void 0))}_get(t){return this._draw.getByPriority(t)}_getAxisSettings(t){if(!t)return{};let e=t.gridLines||{},r={visible:this._get([e.visible,!0]),color:this._get([e.color,this._getThemeColor("line")]),unitInterval:e.unitInterval,step:e.step,dashStyle:e.dashStyle,width:this._get([e.lineWidth,1]),offsets:[],alternatingBackgroundColor:t.alternatingBackgroundColor,alternatingBackgroundColor2:t.alternatingBackgroundColor2,alternatingBackgroundOpacity:t.alternatingBackgroundOpacity},n=t.tickMarks||{},o={visible:this._get([n.visible,t.showTickMarks,!0]),color:this._get([n.color,t.tickMarksColor,this._getThemeColor("line")]),unitInterval:this._get([n.unitInterval,n.interval,t.tickMarksInterval]),step:this._get([n.step,t.tickMarksStep]),dashStyle:this._get([n.dashStyle,t.tickMarksDashStyle]),width:this._get([n.lineWidth,1]),size:this._get([n.size,4]),offsets:[]},a=t.title||{},i={visible:this._get([a.visible,!0]),text:this._get([t.description,a.text]),style:this._get([t.descriptionClass,a.class,"smart-chart-axis-description"]),halign:this._get([t.horizontalDescriptionAlignment,a.horizontalAlignment,"center"]),valign:this._get([t.verticalDescriptionAlignment,a.verticalAlignment,"center"]),angle:0,rotationPoint:this._get([a.rotationPoint,"centercenter"]),offset:this._get([a.offset,{x:0,y:0}])},s=t.line||{},l={visible:this._get([s.visible,!0]),color:this._get([s.color,r.color,this._getThemeColor("line")]),dashStyle:this._get([s.dashStyle,r.dashStyle,""]),width:this._get([s.lineWidth,1]),angle:this._get([s.angle,NaN])},d=t.padding||{};d={left:d.left||0,right:d.right||0,top:d.top||0,bottom:d.bottom||0};let m=this._getAxisLabelsSettings(t);return{visible:this._get([t.visible,!0]),customDraw:this._get([t.customDraw,!1]),gridLines:r,tickMarks:o,line:l,title:i,labels:m,padding:d,toolTipFormatFunction:this._get([t.toolTipFormatFunction,t.formatFunction,m.formatFunction]),toolTipFormatSettings:this._get([this._getFormatSettings(t,"toolTipFormatSettings"),this._getFormatSettings(t),this._getFormatSettings(m)])}}_getAxisLabelsSettings(t){let e=t.labels||{};return{visible:this._get([t.showLabels,e.visible,!0]),unitInterval:this._get([e.unitInterval,e.interval,t.labelsInterval]),step:this._get([e.step,t.labelsStep]),angle:this._get([t.textRotationAngle,e.angle,0]),style:this._get([t.class,e.class,"smart-chart-axis-text"]),halign:this._get([t.horizontalTextAlignment,e.horizontalAlignment,"center"]),valign:this._get([t.verticalTextAlignment,e.verticalAlignment,"center"]),textRotationPoint:this._get([t.textRotationPoint,e.rotationPoint,"auto"]),textOffset:this._get([t.textOffset,e.offset,{x:0,y:0}]),autoRotate:this._get([t.labelsAutoRotate,e.autoRotate,!1]),formatSettings:this._get([this._getFormatSettings(t),this._getFormatSettings(e),void 0]),formatFunction:this._get([t.formatFunction,e.formatFunction,void 0])}}_getLabelsSettings(t,e,r,n){let o=this.seriesGroups[t],a=o.series[e],i=isNaN(r)?void 0:this._getDataValue(r,a.dataField,t),s=n||["Visible","Offset","Angle","HorizontalAlignment","VerticalAlignment","Class","BackgroundColor","BorderColor","BorderOpacity","Padding","Opacity","BackgroundOpacity","LinesAngles","LinesEnabled","AutoRotate","Radius"],l={};for(let t=0;t<s.length;t++){let e=s[t],n="labels"+e,d="label"+e,m=e.substring(0,1).toLowerCase()+e.substring(1),c=void 0;o.labels&&"object"==typeof o.labels&&(c=o.labels[m]),a.labels&&"object"==typeof a.labels&&void 0!==a.labels[m]&&null!==a.labels[m]&&(c=a.labels[m]),c=this._get([a[n],a[d],c,o[n],o[d]]),l[m]="function"==typeof c?c(i,r,a,o):c}l.class=l.class||"smart-chart-label-text",l.visible=this._get([l.visible,a.showLabels,o.showLabels,void 0!==a.labels&&null!==a.labels||void 0,void 0!==o.labels&&null!==o.labels||void 0]);let d=l.padding||1;return l.padding={left:this._get([d.left,isNaN(d)?1:d]),right:this._get([d.right,isNaN(d)?1:d]),top:this._get([d.top,isNaN(d)?1:d]),bottom:this._get([d.bottom,isNaN(d)?1:d])},l}_showLabel(t,e,r,n,o,a,i,s,l,d,m){let c={width:0,height:0};if(isNaN(r))return;let h=this._getLabelsSettings(t,e,r);if(!h.visible)return i?c:void 0;if(n.width<0||n.height<0)return i?c:void 0;let u=h.angle;isNaN(d)||(u=d);let p=h.offset||{},f={x:p.x,y:p.y};isNaN(f.x)&&(f.x=0),isNaN(f.y)&&(f.y=0),o=o||h.horizontalAlignment||"center",a=a||h.verticalAlignment||"center";let g=this._getFormattedValue(t,e,r,void 0,void 0,!0),b=n.width,v=n.height;if(!0===s&&"center"!==o&&(o="right"===o?"left":"right"),!0===l&&"center"!==a&&"middle"!==a&&(a="top"===a?"bottom":"top",f.y*=-1),c=this.renderer.measureText(g,u,{class:h.class}),i)return c;let y=0,w=0;b>0&&(""===o||"center"===o?y+=(b-c.width)/2:"right"===o&&(y+=b-c.width)),v>0&&(""===a||"center"===a?w+=(v-c.height)/2:"bottom"===a&&(w+=v-c.height)),y+=n.x+f.x,w+=n.y+f.y;let x=this._plotRect;y<=x.x&&(y=x.x+2),w<=x.y&&(w=x.y+2);let _,S=Math.max(c.width,1),C=Math.max(c.height,1);w+C>=x.y+x.height&&(w=x.y+x.height-C-2),y+S>=x.x+x.width&&(y=x.x+x.width-S-2);let k=h.backgroundColor,A=h.borderColor,T=h.padding;(k||A)&&(_=this.renderer.beginGroup(),this.renderer.rect(y-T.left,w-T.top,c.width+T.left+T.right,c.height+T.bottom+T.bottom,{fill:k||"transparent","fill-opacity":h.backgroundOpacity||1,stroke:A||"transparent","stroke-opacity":h.borderOpacity,"stroke-width":1}));let E=this.renderer.text(g,y,w,c.width,c.height,u,{class:h.class,opacity:h.opacity||1},!1,"center","center",void 0,arguments[11]);return m&&(m.x=y-T.left,m.y=w-T.top,m.width=c.width+T.left+T.right,m.height=c.height+T.bottom+T.bottom),_&&this.renderer.endGroup(),_||E}_getAnimProps(t,e){let r=this.seriesGroups[t],n=isNaN(e)?void 0:r.series[e],o=this.hasAnimation;r.animation&&(o="none"!==r.animation),n&&n.animation&&(o="none"!==n.animation);let a=this.animationDuration;isNaN(a)&&(a=1e3);let i=r.animationDuration;if(isNaN(i)||(a=i),n){let t=n.animationDuration;isNaN(t)||(a=t)}return a>5e3&&(a=1e3),{enabled:o,duration:a}}_isColorTransition(t,e,r,n){if(n-1<r.xoffsets.first)return!1;let o=this._getColors(t,e,n,this._getGroupGradientType(t)),a=this._getColors(t,e,n-1,this._getGroupGradientType(t));return o.fillColor!==a.fillColor}_renderLineSeries(t,e){var r=this.seriesGroups[t];if(r.series&&0!==r.series.length){var n=-1!==r.type.indexOf("area"),o=-1!==r.type.indexOf("stacked"),a=o&&-1!==r.type.indexOf("100"),i=-1!==r.type.indexOf("spline"),s=-1!==r.type.indexOf("step"),l=-1!==r.type.indexOf("range"),d=!0===r.polar||!0===r.spider;if(d&&(s=!1),!s||!i){var m="horizontal"===r.orientation,c=!0===this._getXAxis(t).flip,h=e;m&&(h={x:e.y,y:e.x,width:e.height,height:e.width});var u=this._calcGroupOffsets(t,h);if(u&&0!==u.xoffsets.length){this._linesRenderInfo||(this._linesRenderInfo={}),this._linesRenderInfo[t]={};for(let e=r.series.length-1;e>=0;e--){var p=this._getSerieSettings(t,e),f={groupIndex:t,rect:h,serieIndex:e,swapXY:m,isArea:n,isSpline:i,isRange:l,isPolar:d,settings:p,segments:[],pointsLength:0};if(this._isSerieVisible(t,e)){var g=r.series[e];if(!g.customDraw){var b,v="function"==typeof g.colorFunction,y=u.xoffsets.first,w=y,x=this._getColors(t,e,NaN,this._getGroupGradientType(t));do{var _=[],S=[],C=[],k=0,A=0,T=NaN,E=NaN,N=NaN;if(!(u.xoffsets.length<1)){var M=this._getAnimProps(t,e),D=M.enabled&&!this._isToggleRefresh&&u.xoffsets.length<1e4&&M.duration,F=y;b=!1;var O=void 0;for(let o=y;o<=u.xoffsets.last;o++){y=o;var I=u.xoffsets.data[o],L=u.xoffsets.xvalues[o];if(!isNaN(I)&&(k=I=Math.max(I,1),A=u.offsets[e][o].to,!(!v&&O&&this.enableSampling&&this.renderer._ptdist(O.x,O.y,k,A)<1))){O={x:k,y:A};var P=u.offsets[e][o].from;if(isNaN(A)||isNaN(P)){if("connect"===g.emptyPointsDisplay)continue;if("zero"!==g.emptyPointsDisplay){b=!0;break}isNaN(A)&&(A=u.baseOffset),isNaN(P)&&(P=u.baseOffset)}if(v&&this._isColorTransition(t,e,u,y)&&_.length>1){y--;break}var z=this._elementRenderInfo;if(z&&z.length>t&&z[t].series.length>e){var B=z[t].series[e][L];let r=this.renderer._ptrnd(B?B.to:void 0),n=this.renderer._ptrnd(h.x+(B?B.xoffset:void 0));C.push(m?{y:n,x:r,index:o}:{x:n,y:r,index:o})}w=o,p.stroke<2&&(A-h.y<=1&&(A=h.y+1),P-h.y<=1&&(P=h.y+1),h.y+h.height-A<=1&&(A=h.y+h.height-1),h.y+h.height-P<=1&&(P=h.y+h.height-1)),!n&&a&&(A<=h.y&&(A=h.y+1),A>=h.y+h.height&&(A=h.y+h.height-1),P<=h.y&&(P=h.y+1),P>=h.y+h.height&&(P=h.y+h.height-1)),k=(I=Math.max(I,1))+h.x,!0===r.skipOverlappingPoints&&!isNaN(T)&&Math.abs(T-k)<=1||(!s||isNaN(T)||isNaN(E)||E!==A&&_.push(m?{y:k,x:this.renderer._ptrnd(E)}:{x:k,y:this.renderer._ptrnd(E)}),_.push(m?{y:k,x:this.renderer._ptrnd(A),index:o}:{x:k,y:this.renderer._ptrnd(A),index:o}),S.push(m?{y:k,x:this.renderer._ptrnd(P),index:o}:{x:k,y:this.renderer._ptrnd(P),index:o}),T=k,E=A,isNaN(N)&&(N=A))}}if(0!==_.length){var R=_[_.length-1].index;v&&(x=this._getColors(t,e,R,this._getGroupGradientType(t)));var H=h.x+u.xoffsets.data[F],V=h.x+u.xoffsets.data[w];if(n&&!0===r.alignEndPointsWithIntervals&&(H>h.x&&(H=h.x),V<h.x+h.width&&(V=h.x+h.width),c)){var U=H;H=V,V=U}V=this.renderer._ptrnd(V),H=this.renderer._ptrnd(H);var $=u.baseOffset;N=this.renderer._ptrnd(N);var G=this.renderer._ptrnd(A)||$;l&&(_=_.concat(S.reverse())),f.pointsLength+=_.length;var j={lastItemIndex:R,colorSettings:x,pointsArray:_,pointsStart:C,left:H,right:V,pyStart:N,pyEnd:G,yBase:$,labelElements:[],symbolElements:[]};f.segments.push(j)}else y++}}while(y<u.xoffsets.first+u.xoffsets.length-1||b);this._linesRenderInfo[t][e]=f}}else this._linesRenderInfo[t][e]=f}var W=this._linesRenderInfo[t],X=[];for(let t in W)X.push(W[t]);X=X.sort((function(t,e){return t.serieIndex-e.serieIndex})),n&&o&&X.reverse();for(let t=0;t<X.length;t++){let e=X[t];this._animateLine(e,0===D?1:0);var q=this;this._enqueueAnimation("series",void 0,void 0,D,(function(t,e,r){q._animateLine(e,r)}),e)}}}}}_animateLine(t,e){let r=t.settings,n=t.groupIndex,o=t.serieIndex,a=this.seriesGroups[n],i=a.series[o],s=this._getSymbol(n,o),l=this._getLabelsSettings(n,o,NaN,["Visible"]).visible,d=!0;t.isPolar&&(isNaN(a.endAngle)||360===Math.round(Math.abs((isNaN(a.startAngle)?0:a.startAngle)-a.endAngle))||(d=!1)),!1===i.endPointsConnect&&(d=!1);let m=0;for(let a=0;a<t.segments.length;a++){let c=t.segments[a],h=this._calculateLine(n,t.pointsLength,m,c.pointsArray,c.pointsStart,c.yBase,e,t.isArea,t.swapXY);if(m+=c.pointsArray.length,""===h)continue;let u=h.split(" "),p=h;p=""!==p?this._buildLineCmd(h,t.isRange,c.left,c.right,c.pyStart,c.pyEnd,c.yBase,t.isArea,t.isPolar,d,t.isSpline,t.swapXY):"M 0 0";let f=c.colorSettings;if(c.pathElement?this.renderer.attr(c.pathElement,{d:p}):(c.pathElement=this.renderer.path(p,{"stroke-width":r.stroke,stroke:f.lineColor,"stroke-opacity":r.opacity,"fill-opacity":r.opacity,"stroke-dasharray":r.dashStyle,fill:t.isArea?f.fillColor:"none"}),this._installHandlers(c.pathElement,"path",n,o,c.lastItemIndex)),c.labelElements){for(let t=0;t<c.labelElements.length;t++)this.renderer.removeElement(c.labelElements[t]);c.labelElements=[]}if(c.symbolElements){for(let t=0;t<c.symbolElements.length;t++)this.renderer.removeElement(c.symbolElements[t]);c.symbolElements=[]}if(c.pointsArray.length===u.length&&("none"!==s||l)){let t=i.symbolSize,e=this._plotRect;for(let a=0;a<u.length;a++){let i=u[a].split(",");if(i={x:parseFloat(i[0]),y:parseFloat(i[1])},!(i.x<e.x||i.x>e.x+e.width||i.y<e.y||i.y>e.y+e.height)){if("none"!==s){let e=this._getColors(n,o,c.pointsArray[a].index,this._getGroupGradientType(n)),l=this._drawSymbol(s,i.x,i.y,e.fillColorSymbol,r.opacity,e.lineColorSymbol,r.opacity,r.strokeSymbol,void 0,t);c.symbolElements.push(l)}if(l&&(i=this._adjustLineLabelPosition(n,o,c.pointsArray[a].index,i),i)){let t=this._showLabel(n,o,c.pointsArray[a].index,{x:i.x,y:i.y,width:0,height:0});c.labelElements.push(t)}}}}if(1===e&&"none"!==s)for(let t=0;t<c.symbolElements.length;t++)isNaN(c.pointsArray[t].index)||this._installHandlers(c.symbolElements[t],"symbol",n,o,c.pointsArray[t].index)}}_adjustLineLabelPosition(t,e,r,n){let o=this._showLabel(t,e,r,{width:0,height:0},"","",!0);if(!o)return;let a={x:n.x-o.width/2,y:0};return a.y=n.y-1.5*o.height,a}_calculateLine(t,e,r,n,o,a,i,s,l){let d,m=this.seriesGroups[t];!0!==m.polar&&!0!==m.spider||(d=this._getPolarAxisCoords(t,this._plotRect));let c="",h=n.length;if(!s&&0===o.length){h=e*i-r}for(let t=0;t<h+1&&t<n.length;t++){t>0&&(c+=" ");let e=n[t].y,r=n[t].x,m=s?a:e,u=r;if(o&&o.length>t&&(m=o[t].y,u=o[t].x,(isNaN(m)||isNaN(u))&&(m=e,u=r)),h<=n.length&&t>0&&t===h&&(u=n[t-1].x,m=n[t-1].y),l?(r=this.renderer._ptrnd((r-m)*(s?i:1)+m),e=this.renderer._ptrnd(e)):(r=this.renderer._ptrnd((r-u)*i+u),e=this.renderer._ptrnd((e-m)*i+m)),d){let t=this._toPolarCoord(d,this._plotRect,r,e);r=t.x,e=t.y}c+=r+","+e}return c}_buildLineCmd(t,e,r,n,o,a,i,s,l,d,m,c){let h=t,u=c?i+","+r:r+","+i;!s||l||e||(h=u+" "+t+" "+(c?i+","+n:n+","+i)),m&&(h=this._getBezierPoints(h));let p=h.split(" ");if(0===p.length)return"";if(1===p.length){let t=p[0].split(",");return"M "+p[0]+" L"+(parseFloat(t[0])+1)+","+(parseFloat(t[1])+1)}let f=p[0].replace("M","");return s&&!l?h=e?"M "+f+" L "+f+(m?"":" L "+f+" ")+h:"M "+u+" L "+f+" "+h:m||(h="M "+f+" L "+f+" "+h),(l&&d||e)&&(h+=" Z"),h}_getSerieSettings(t,e){let r=this.seriesGroups[t],n=-1!==r.type.indexOf("area"),o=-1!==r.type.indexOf("line"),a=r.series[e],i=a.dashStyle||r.dashStyle||"",s=a.opacity||r.opacity;(isNaN(s)||s<0||s>1)&&(s=1);let l=a.lineWidth;isNaN(l)&&"auto"!==l&&(l=r.lineWidth),("auto"===l||isNaN(l)||l<0||l>15)&&(l=n?2:o?3:1);let d=a.lineWidthSymbol;return isNaN(d)&&(d=1),{stroke:l,strokeSymbol:d,opacity:s,dashStyle:i}}_getColors(t,e,r,n,o){let a=this.seriesGroups[t],i=a.series[e],s=this._get([i.useGradientColors,a.useGradientColors,!1]),l=this._getSeriesColors(t,e,r),d=[[0,1.4],[100,1]],m=[[0,1],[25,1.1],[50,1.4],[100,1]],c=[[0,1.3],[90,1.2],[100,1]],h=NaN;if(isNaN(o)||(h=2===o?d:m),s){let o={};for(let t in l)o[t]=l[t];if(l=o,"verticalLinearGradient"===n||"horizontalLinearGradient"===n){let t="verticalLinearGradient"===n?h||d:h||m,e=["fillColor","fillColorSelected","fillColorAlt","fillColorAltSelected"];for(let r in e){let o=l[e[r]];o&&(l[e[r]]=this.renderer._toLinearGradient(o,"verticalLinearGradient"===n,t))}}else if("radialGradient"===n){let n,o=d;("pie"===a.type||"donut"===a.type||a.polar)&&null!=r&&this._renderData[t]&&this._renderData[t].offsets[e]&&(n=this._renderData[t].offsets[e][r],o=c),l.fillColor=this.renderer._toRadialGradient(l.fillColor,o,n),l.fillColorSelected=this.renderer._toRadialGradient(l.fillColorSelected,o,n)}}return l}_installHandlers(t,e,r,n,o){if(!this.enableEvents)return!1;var a=this,i=this.seriesGroups[r],s=this.seriesGroups[r].series[n],l=-1!==i.type.indexOf("line")||-1!==i.type.indexOf("area");l||!1===i.enableSelection||!1===s.enableSelection||this.renderer.addHandler(t,"mousemove",(function(){var t=a._selected;t&&t.isLineType&&"click"===t.linesUnselectMode&&(t.group!==r||t.series!==n)||a._ttEl&&a._ttEl.gidx===r&&a._ttEl.sidx===n&&a._ttEl.iidx===o||a._startTooltipTimer(r,n,o)})),!1!==i.enableSelection&&!1!==s.enableSelection&&this.renderer.addHandler(t,"mouseover",(function(){var i=a._selected;i&&i.isLineType&&"click"===i.linesUnselectMode&&(i.group!==r||i.series!==n)||a._select(t,e,r,n,o,o)})),this.renderer.addHandler(t,"click",(function(t){clearTimeout(a._hostClickTimer),a._lastClickTs=(new Date).valueOf(),l&&"symbol"!==e&&"pointMarker"!==e||(a._isColumnType(i.type)&&a._unselect(),isNaN(o)||(t.stopImmediatePropagation(),a._raiseItemEvent("click",i,s,o)))}))}_getHorizontalOffset(t,e,r,n){let o=this._plotRect;if(0===this._getDataLen(t))return{index:void 0,value:r};let a=this._calcGroupOffsets(t,this._plotRect);if(0===a.xoffsets.length)return{index:void 0,value:void 0};let i,s,l,d,m,c=r,h=n,u=this.seriesGroups[t];(u.polar||u.spider)&&(i=this._getPolarAxisCoords(t,o));for(let t=a.xoffsets.first;t<=a.xoffsets.last;t++){let r=a.xoffsets.data[t],n=a.offsets[e][t].to,p=0;if(i){let t=this._toPolarCoord(i,o,r+o.x,n);r=t.x,n=t.y,p=this.renderer._ptdist(c,h,r,n)}else if("horizontal"===u.orientation){r+=o.y;let t=n;n=r,r=t,p=this.renderer._ptdist(c,h,r,n)}else r+=o.x,p=Math.abs(c-r);(isNaN(s)||s>p)&&(s=p,l=t,d=r,m=n)}return{index:l,value:a.xoffsets.data[l],polarAxisCoords:i,x:d,y:m}}onmousemove(t,e){if(this._mouseX===t&&this._mouseY===e)return;if(this._mouseX=t,this._mouseY=e,!this._selected)return;let r=this._selected.group,n=this._selected.series,o=this.seriesGroups[r],a=o.series[n],i=this._plotRect;if(this.renderer&&(i=this.renderer.getRect(),i.x+=5,i.y+=5,i.width-=10,i.height-=10),t<i.x+window.scrollX||t>i.x+i.width+window.scrollX||e<i.y+window.scrollY||e>i.y+i.height+window.scrollY)return this._hideToolTip(),void this._unselect();let s="horizontal"===o.orientation;if(i=this._plotRect,-1!==o.type.indexOf("line")||-1!==o.type.indexOf("area")){let l=this._getHorizontalOffset(r,this._selected.series,t,e),d=l.index;if(null==d)return;if(this._selected.item!==d){let t=this._linesRenderInfo[r][n].segments,e=0;for(;d>t[e].lastItemIndex;)if(e++,e>=t.length)return;let o=t[e].pathElement,a=t[e].lastItemIndex;this._unselect(!1),this._select(o,"path",r,n,d,a)}let m=this._getSymbol(this._selected.group,this._selected.series);"none"===m&&(m="circle");let c=this._calcGroupOffsets(r,i),h=c.offsets[this._selected.series][d].to,u=h;-1!==o.type.indexOf("range")&&(u=c.offsets[this._selected.series][d].from);let p=s?t:e;if(e=!isNaN(u)&&Math.abs(p-u)<Math.abs(p-h)?u:h,isNaN(e))return;if(t=l.value,s){let r=t;t=e,e=r+i.y}else t+=i.x;if(l.polarAxisCoords&&(t=l.x,e=l.y),e=this.renderer._ptrnd(e),t=this.renderer._ptrnd(t),this._pointMarker&&this._pointMarker.element&&(this.renderer.removeElement(this._pointMarker.element),this._pointMarker.element=void 0),isNaN(t)||isNaN(e))return;let f=this._getSeriesColors(r,n,d),g=this._getSerieSettings(r,n),b=a.symbolSizeSelected;isNaN(b)&&(b=a.symbolSize),(isNaN(b)||b>50||b<0)&&(b=o.symbolSize),(isNaN(b)||b>50||b<0)&&(b=8),(this.showToolTips||this.enableCrosshairs)&&(this._pointMarker={type:m,x:t,y:e,gidx:r,sidx:n,iidx:d},this._pointMarker.element=this._drawSymbol(m,t,e,f.fillColorSymbolSelected,g.opacity,f.lineColorSymbolSelected,g.opacity,g.strokeSymbol,g.dashStyle,b),this._installHandlers(this._pointMarker.element,"pointMarker",r,n,d)),this._startTooltipTimer(r,this._selected.series,d)}}_drawSymbol(t,e,r,n,o,a,i,s,l,d){let m,c,h=d||6,u=h/2;switch(t){case"none":return;case"circle":m=this.renderer.circle(e,r,h/2);break;case"square":h-=1,u=h/2,m=this.renderer.rect(e-u,r-u,h,h);break;case"diamond":c="M "+(e-u)+","+r+" L"+e+","+(r-u)+" L"+(e+u)+","+r+" L"+e+","+(r+u)+" Z",m=this.renderer.path(c);break;case"triangle_up":case"triangle":c="M "+(e-u)+","+(r+u)+" L "+(e+u)+","+(r+u)+" L "+e+","+(r-u)+" Z",m=this.renderer.path(c);break;case"triangle_down":c="M "+(e-u)+","+(r-u)+" L "+e+","+(r+u)+" L "+(e+u)+","+(r-u)+" Z",m=this.renderer.path(c);break;case"triangle_left":c="M "+(e-u)+","+r+" L "+(e+u)+","+(r+u)+" L "+(e+u)+","+(r-u)+" Z",m=this.renderer.path(c);break;case"triangle_right":c="M "+(e-u)+","+(r-u)+" L "+(e-u)+","+(r+u)+" L "+(e+u)+","+r+" Z",m=this.renderer.path(c);break;default:m=this.renderer.circle(e,r,h)}return this.renderer.attr(m,{fill:n,"fill-opacity":o,stroke:a,"stroke-width":s,"stroke-opacity":i,"stroke-dasharray":l||""}),"circle"!==t&&(this.renderer.attr(m,{r:h/2}),"square"!==t&&this.renderer.attr(m,{x:e,y:r})),m}_getSymbol(t,e){let r,n=["circle","square","diamond","triangle_up","triangle_down","triangle_left","triangle_right"],o=this.seriesGroups[t],a=o.series[e];return void 0!==a.symbolType&&null!==a.symbolType&&(r=a.symbolType),null==r&&(r=o.symbolType),"default"===r?n[e%n.length]:null!=r?r:"none"}_startTooltipTimer(t,e,r,n,o,a,i){this._cancelTooltipTimer();let s=this,l=this.toolTipShowDelay;(isNaN(l)||l>1e4||l<0)&&(l=500),(this._ttEl||!0===this.enableCrosshairs&&!1===this.showToolTips)&&(l=0),isNaN(a)||(l=a),clearTimeout(this._tttimerHide),isNaN(n)&&(n=s._mouseX),isNaN(o)&&(o=s._mouseY-3),0===l&&s._showToolTip(n,o,t,e,r),this._tttimer=setTimeout((function(){0!==l&&s._showToolTip(n,o,t,e,r);let a=s.toolTipHideDelay;isNaN(i)||(a=i),isNaN(a)&&(a=4e3),s._tttimerHide=setTimeout((function(){s._hideToolTip(),s._unselect()}),a)}),l)}_cancelTooltipTimer(){clearTimeout(this._tttimer)}_getGroupGradientType(t){let e=this.seriesGroups[t];return-1!==e.type.indexOf("area")?"horizontal"===e.orientation?"horizontalLinearGradient":"verticalLinearGradient":this._isColumnType(e.type)||-1!==e.type.indexOf("candle")?e.polar?"radialGradient":"horizontal"===e.orientation?"verticalLinearGradient":"horizontalLinearGradient":-1!==e.type.indexOf("scatter")||-1!==e.type.indexOf("bubble")||this._isPieGroup(t)?"radialGradient":void 0}_select(t,e,r,n,o,a){if(this._selected){if(this._selected.item===o&&this._selected.series===n&&this._selected.group===r)return;this._unselect()}let i=this.seriesGroups[r],s=i.series[n];if(!1===i.enableSelection||!1===s.enableSelection)return;let l=-1!==i.type.indexOf("line")&&-1===i.type.indexOf("area");this._selected={element:t,type:e,group:r,series:n,item:o,iidxBase:a,isLineType:l,linesUnselectMode:s.linesUnselectMode||i.linesUnselectMode};let d=this._getColors(r,n,a||o,this._getGroupGradientType(r)),m=d.fillColorSelected;l&&(m="none");let c=this._getSerieSettings(r,n),h="symbol"===e?d.lineColorSymbolSelected:d.lineColorSelected;m="symbol"===e?d.fillColorSymbolSelected:m;let u="symbol"===e?1:c.stroke;"symbol"!==e&&this.renderer.getAttr(t,"fill")===d.fillColorAlt&&(m=d.fillColorAltSelected),this.renderer.attr(t,{stroke:h,fill:m,"stroke-width":u}),-1===i.type.indexOf("pie")&&-1===i.type.indexOf("donut")||this._applyPieSelect(),this._raiseItemEvent("mouseover",i,s,o),this._isTouchDevice&&this._startTooltipTimer(r,n,o)}_applyPieSelect(){var t=this;t._createAnimationGroup("animPieSlice");var e=this._selected;if(e){var r=this.getItemCoord(e.group,e.series,e.item);if(r){var n={element:this._getRenderInfo(e.group,e.series,e.item),coord:r};this._enqueueAnimation("animPieSlice",void 0,void 0,300,(function(r,n,o){var a=n.coord,i=a.selectedRadiusChange*o,s=t.renderer.pieSlicePath(a.center.x,a.center.y,0===a.innerRadius?0:a.innerRadius+i,a.outerRadius+i,a.fromAngle,a.toAngle,a.centerOffset);t.renderer.attr(n.element.element,{d:s}),t._showPieLabel(e.group,e.series,e.item,void 0,i,n.element.colors.lineColor)}),n),t._startAnimation("animPieSlice")}}}_applyPieUnselect(){this._stopAnimations();let t=this._selected;if(!t)return;let e=this.getItemCoord(t.group,t.series,t.item);if(!e||!e.center)return;let r=this.renderer.pieSlicePath(e.center.x,e.center.y,e.innerRadius,e.outerRadius,e.fromAngle,e.toAngle,e.centerOffset);this.renderer.attr(t.element,{d:r}),this._showPieLabel(t.group,t.series,t.item,void 0,0,this._getRenderInfo(t.group,t.series,t.item).colors.lineColor)}_unselect(){let t=this;if(t._selected){let e=t._selected.group,r=t._selected.series,n=t._selected.item,o=t._selected.iidxBase,a=t._selected.type,i=t.seriesGroups[e],s=i.series[r],l=-1!==i.type.indexOf("line")&&-1===i.type.indexOf("area"),d=t._getColors(e,r,o||n,t._getGroupGradientType(e)),m=d.fillColor;l&&(m="none");let c=t._getSerieSettings(e,r),h="symbol"===a?d.lineColorSymbol:d.lineColor;m="symbol"===a?d.fillColorSymbol:m,"symbol"!==a&&this.renderer.getAttr(t._selected.element,"fill")===d.fillColorAltSelected&&(m=d.fillColorAlt);let u="symbol"===a?1:c.stroke;t.renderer.attr(t._selected.element,{stroke:h,fill:m,"stroke-width":u}),-1===i.type.indexOf("pie")&&-1===i.type.indexOf("donut")||this._applyPieUnselect(),t._selected=void 0,isNaN(n)||t._raiseItemEvent("mouseout",i,s,n)}t._pointMarker&&(t._pointMarker.element&&(t.renderer.removeElement(t._pointMarker.element),t._pointMarker.element=void 0),t._pointMarker=void 0,t._hideCrosshairs())}_raiseItemEvent(t,e,r,n){let o=r[t]||e[t],a=0;for(;a<this.seriesGroups.length&&this.seriesGroups[a]!==e;a++);if(a===this.seriesGroups.length)return;let i={event:t,seriesGroup:e,serie:r,elementIndex:n,elementValue:this._getDataValue(n,r.dataField,a)};o&&"function"==typeof o&&o(i),this.$.fireEvent(t,i)}_calcInterval(t,e,r){let n=Math.abs(e-t)/r,o=.1,a=[1,2,3,4,5,10,15,20,25,50,100];n<1&&(a=[.5,.25,.125,.1],o=10);let i=0;do{i=0,n>=1?o*=10:o/=10;for(let t=1;t<a.length&&Math.abs(a[i]*o-n)>Math.abs(a[t]*o-n);t++)i=t}while(i===a.length-1);return a[i]*o}_renderDataClone(){if(!this._renderData||this._isToggleRefresh)return;let t=this._elementRenderInfo=[];if(!this._isSelectorRefresh)for(let e=0;e<this._renderData.length;e++){for(;t.length<=e;)t.push({});let r=t[e],n=this._renderData[e];if(!n.offsets)continue;if(n.valueAxis){r.valueAxis={itemOffsets:{}};for(let t in n.valueAxis.itemOffsets)r.valueAxis.itemOffsets[t]=n.valueAxis.itemOffsets[t]}if(n.xAxis){r.xAxis={itemOffsets:{}};for(let t in n.xAxis.itemOffsets)r.xAxis.itemOffsets[t]=n.xAxis.itemOffsets[t]}r.series=[];let o=r.series,a=this._isPieGroup(e);for(let t=0;t<n.offsets.length;t++){o.push({});for(let r=0;r<n.offsets[t].length;r++)if(a){let e=n.offsets[t][r];o[t][e.displayValue]={value:e.value,x:e.x,y:e.y,fromAngle:e.fromAngle,toAngle:e.toAngle}}else n.xoffsets?o[t][n.xoffsets.xvalues[r]]={value:n.offsets[t][r].value,valueRadius:n.offsets[t][r].valueRadius,xoffset:n.xoffsets.data[r],from:n.offsets[t][r].from,to:n.offsets[t][r].to}:(n.xoffsets=this._calculateXOffsets(e,self._plotRect.width),n.xoffsets&&(o[t][n.xoffsets.xvalues[r]]={value:n.offsets[t][r].value,valueRadius:n.offsets[t][r].valueRadius,xoffset:n.xoffsets.data[r],from:n.offsets[t][r].from,to:n.offsets[t][r].to}))}}}getPolarDataPointOffset(t,e,r){let n=this._renderData[r];if(!n)return{x:NaN,y:NaN};let o=this.getValueAxisDataPointOffset(e,r),a=this.getXAxisDataPointOffset(t,r),i=this._toPolarCoord(n.polarCoords,n.xAxis.rect,a,o);return{x:i.x,y:i.y}}_getDataPointOffsetDiff(t,e,r,n,o,a,i){let s=this._getDataPointOffset(t,r,n,o,a,i),l=this._getDataPointOffset(e,r,n,o,a,i);return Math.abs(s-l)}_getXAxisRenderData(t){if(t>=this._renderData.length)return;let e=this.seriesGroups[t],r=this._renderData[t].xAxis;if(r){if(void 0===e.xAxis||null===e.xAxis)for(let e=0;e<=t;e++)if(void 0===this.seriesGroups[e].xAxis||null===this.seriesGroups[e].xAxis){r=this._renderData[e].xAxis;break}return r}}getXAxisDataPointOffset(t,e){let r=this.seriesGroups[e];if(isNaN(t))return NaN;const n=this._getXAxisRenderData(e);if(!n)return NaN;let o=n.data.axisStats,a=o.min.valueOf(),i=o.max.valueOf(),s=i-a;if(0===s&&(s=1),t.valueOf()>i||t.valueOf()<a)return NaN;let l=this._getXAxis(e),d="horizontal"===r.orientation?"height":"width",m="horizontal"===r.orientation?"y":"x",c=(t.valueOf()-a)/s,h=n.rect[d]-n.data.padding.left-n.data.padding.right;if(r.polar||r.spider){this._renderData[e].polarCoords.isClosedCircle&&(h=n.data.axisSize)}return this._plotRect[m]+n.data.padding.left+h*(l.flip?1-c:c)}getValueAxisDataPointOffset(t,e){let r=this._getValueAxis(e);if(!r)return NaN;let n=this._renderData[e];if(!n)return NaN;let o=!0===r.flip,a=n.logBase,i=n.scale,s=n.gbase,l=n.baseOffset;return this._getDataPointOffset(t,s,a,i,l,o)}_getDataPointOffset(t,e,r,n,o,a){let i;return isNaN(t)&&(t=e),i=isNaN(r)?(t-e)*n:(this._draw.log(t,r)-this._draw.log(e,r))*n,i=a?o+i:o-i,i}_calcGroupOffsets(t,e){let r=this.seriesGroups[t];for(;this._renderData.length<t+1;)this._renderData.push({});if(null!==this._renderData[t]&&void 0!==this._renderData[t].offsets)return this._renderData[t];if(this._isPieGroup(t))return this._calcPieSeriesGroupOffsets(t,e);let n=this._getValueAxis(t);if(!n||!r.series||0===r.series.length)return this._renderData[t];let o=!0===n.flip,a=!0===n.logarithmicScale,i=n.logarithmicScaleBase||10,s=[],l=-1!==r.type.indexOf("stacked"),d=l&&-1!==r.type.indexOf("100"),m=-1!==r.type.indexOf("range"),c=this._isColumnType(r.type),h=-1!==r.type.indexOf("waterfall"),u=this._getDataLen(t),p=r.baselineValue||n.baselineValue||0;d&&(p=0);let f=this._stats.seriesGroups[t];if(!f||!f.isValid)return;let g=f.hasStackValueReversal;if(g&&(p=0),h&&l){if(g)return;p=f.base}p>f.max&&(p=f.max),p<f.min&&(p=f.min);let b=d||a?f.maxRange:f.max-f.min,v=f.min,y=f.max,w=e.height/(a?f.intervals:b),x=0;d?v*y<0?(b/=2,x=-(b+p)*w):x=-p*w:x=-(p-v)*w,o?x=e.y-x:x+=e.y+e.height;let _,S=[],C=[],k=[];a&&(_=this._draw.log(y,i)-this._draw.log(p,i),l&&(_=f.intervals,p=d?0:v),o||(x=e.y+_/f.intervals*e.height)),x=this.renderer._ptrnd(x);let A=v*y<0?e.height/2:e.height,T=[],E=[],N=l&&(c||a),M=[];s=new Array(r.series.length);for(let t=0;t<r.series.length;t++)s[t]=new Array(u);for(let e=0;e<u;e++){!h&&l&&(E=[]);for(let n=0;n<r.series.length;n++){!l&&a&&(T=[]);let c=r.series[n],h=c.dataField,u=c.dataFieldFrom,g=c.dataFieldTo,b=c.radiusDataField||c.sizeDataField;s[n][e]={};let v=this._isSerieVisible(t,n);if(-1!==r.type.indexOf("candle")||-1!==r.type.indexOf("ohlc")){let r=["Open","Close","High","Low"];for(let l in r){let d="dataField"+r[l];c[d]&&(s[n][e][r[l]]=this._getDataPointOffset(this._getDataValueAsNumber(e,c[d],t),p,a?i:NaN,w,x,o))}continue}if(l)for(;E.length<=e;)E.push(0);let y=NaN;m&&(y=this._getDataValueAsNumber(e,u,t),isNaN(y)&&(y=p));let _=NaN;_=m?this._getDataValueAsNumber(e,g,t):this._getDataValueAsNumber(e,h,t);let D,F=this._getDataValueAsNumber(e,b,t);if(l&&(E[e]+=v?_:0),v||(_=NaN),isNaN(_)||a&&_<=0){s[n][e]={from:void 0,to:void 0};continue}l&&(N?D=_>=p?S:C:_=E[e]);let O=w*(_-p);if(m&&(O=w*(_-y)),l&&N&&(M[e]?O=w*_:(M[e]=!0,O=w*(_-p))),a){for(;T.length<=e;)T.push({p:{value:0,height:0},n:{value:0,height:0}});let t=m||m?y:p,r=_>t?T[e].p:T[e].n;r.value+=_,d?(_=r.value/(f.psums[e]+f.nsums[e])*100,O=(this._draw.log(_,i)-f.minPow)*w):(O=this._draw.log(r.value,i)-this._draw.log(t,i),O*=w),O-=r.height,r.height+=O}let I=x;if(m){let t=0;t=a?(this._draw.log(y,i)-this._draw.log(p,i))*w:(y-p)*w,I+=o?t:-t}if(l){if(d&&!a){let t=f.psums[e]-f.nsums[e];_>p?(O=f.psums[e]/t*A,0!==f.psums[e]&&(O*=_/f.psums[e])):(O=f.nsums[e]/t*A,0!==f.nsums[e]&&(O*=_/f.nsums[e]))}N&&(isNaN(D[e])&&(D[e]=I),I=D[e])}isNaN(k[e])&&(k[e]=0);let L=k[e];O=Math.abs(O);let P=O;if(O>=1){const t=this.renderer._ptrnd(O)-1;O=Math.abs(O-t)>.5?Math.round(O):t}if(L+=O-P,l||(L=0),Math.abs(L)>.5&&(L>0?(O-=1,L-=1):(O+=1,L+=1)),k[e]=L,n===r.series.length-1&&d){let t=0;for(let r=0;r<n;r++)t+=Math.abs(s[r][e].to-s[r][e].from);if(t+=O,t<A)if(O>.5)O=this.renderer._ptrnd(O+A-t);else{let r=n-1;for(;r>=0;){if(Math.abs(s[r][e].to-s[r][e].from)>1){s[r][e].from>s[r][e].to&&(s[r][e].from+=A-t);break}r--}}}o&&(O*=-1);let z=_<p;m&&(z=y>_);let B=isNaN(y)?_:{from:y,to:_};z?(N&&(D[e]+=O),s[n][e]={from:I,to:I+O,value:B,valueRadius:F}):(N&&(D[e]-=O),s[n][e]={from:I,to:I-O,value:B,valueRadius:F})}}let D=this._renderData[t];return D.baseOffset=x,D.gbase=p,D.logBase=a?i:NaN,D.scale=w,D.offsets=h?this._applyWaterfall(s,u,t,x,p,a?i:NaN,w,o,l):s,D.xoffsets=this._calculateXOffsets(t,e.width),this._renderData[t]}_isPercent(t){return"string"==typeof t&&t.length>0&&t.indexOf("%")===t.length-1}_calcPieSeriesGroupOffsets(t,e){var r=this._getDataLen(t),n=this.seriesGroups[t],o=this._renderData[t]={},a=o.offsets=[];for(let o=0;o<n.series.length;o++){var i=n.series[o],s=this._get([i.minAngle,i.startAngle]);(isNaN(s)||s<0||s>360)&&(s=0);var l=this._get([i.maxAngle,i.endAngle]);(isNaN(l)||l<0||l>360)&&(l=360);var d=l-s,m=i.initialAngle||0;m<s&&(m=s),m>l&&(m=l);var c=i.centerOffset||0,h=this._draw.getNum([i.offsetX,n.offsetX,e.width/2]),u=this._draw.getNum([i.offsetY,n.offsetY,e.height/2]),p=Math.min(e.width,e.height)/2,f=m,g=i.radius;this._isPercent(g)&&(g=parseFloat(g)/100*p),isNaN(g)&&(g=.4*p);var b=i.innerRadius;this._isPercent(b)&&(b=parseFloat(b)/100*p),(isNaN(b)||b>=g)&&(b=0);var v=i.selectedRadiusChange;this._isPercent(v)&&(v=parseFloat(v)/100*(g-b)),isNaN(v)&&(v=.1*(g-b)),a.push([]);var y=0,w=0;for(let e=0;e<r;e++){var x=this._getDataValueAsNumber(e,i.dataField,t);isNaN(x)||(this._isSerieVisible(t,o,e)||!0===i.hiddenPointsDisplay)&&(x>0?y+=x:w+=x)}var _=y-w;0===_&&(_=1);for(let n=0;n<r;n++){let r=this._getDataValueAsNumber(n,i.dataField,t);if(isNaN(r))a[o].push({});else{var S=i.displayText||i.displayField,C=this._getDataValue(n,S,t);null==C&&(C=n);var k=0,A=this._isSerieVisible(t,o,n);(A||!0===i.hiddenPointsDisplay)&&(k=Math.abs(r)/_*d);var T=e.x+h,E=e.y+u,N=c;"function"==typeof c&&(N=c({seriesIndex:o,seriesGroupIndex:t,itemIndex:n})),isNaN(N)&&(N=0);var M={key:t+"_"+o+"_"+n,value:r,displayValue:C,x:T,y:E,fromAngle:f,toAngle:f+k,centerOffset:N,innerRadius:b,outerRadius:g,selectedRadiusChange:v,visible:A};a[o].push(M),f+=k}}}return o}_isPointSeriesOnly(){for(let t=0;t<this.seriesGroups.length;t++){let e=this.seriesGroups[t];if(-1===e.type.indexOf("line")&&-1===e.type.indexOf("area")&&-1===e.type.indexOf("scatter")&&-1===e.type.indexOf("bubble"))return!1}return!0}_hasColumnSeries(){let t=["column","ohlc","candlestick","waterfall"];for(let e=0;e<this.seriesGroups.length;e++){let r=this.seriesGroups[e];for(let e in t)if(-1!==r.type.indexOf(t[e]))return!0}return!1}_alignValuesWithTicks(t){let e=this._isPointSeriesOnly(),r=this.seriesGroups[t],n=this._getXAxis(t),o=void 0===n.valuesOnTicks||null===n.valuesOnTicks?e:!1!==n.valuesOnTicks;return n.logarithmicScale&&(o=!0),null==t||void 0===r.valuesOnTicks||null===r.valuesOnTicks?o:r.valuesOnTicks}_getYearsDiff(t,e){return e.getFullYear()-t.getFullYear()}_getMonthsDiff(t,e){return 12*(e.getFullYear()-t.getFullYear())+e.getMonth()-t.getMonth()}_getDateDiff(t,e,r,n){let o=0;switch("year"!==r&&"month"!==r&&(o=e.valueOf()-t.valueOf()),r){case"year":o=this._getYearsDiff(t,e);break;case"month":o=this._getMonthsDiff(t,e);break;case"day":o/=864e5;break;case"hour":o/=36e5;break;case"minute":o/=6e4;break;case"second":o/=1e3}return"year"!==r&&"month"!==r&&!1!==n&&(o=this.renderer._rnd(o,1,!0)),o}_getBestDTUnit(t,e,r,n,o){let a="day",i=e.valueOf()-t.valueOf();a=i<1e3?"second":i<36e5?"minute":i<864e5?"hour":i<2592e6?"day":i<31104e6?"month":"year";let s=[{key:"year",cnt:i/31536e6},{key:"month",cnt:i/2592e6},{key:"day",cnt:i/864e5},{key:"hour",cnt:i/36e5},{key:"minute",cnt:i/6e4},{key:"second",cnt:i/1e3},{key:"millisecond",cnt:i}],l=-1;for(let t=0;t<s.length;t++)if(s[t].key===a){l=t;break}let d=-1,m=-1;for(;l<s.length&&!(s[l].cnt/100>n);l++){let a=this._estAxisInterval(t,e,r,n,s[l].key,o),i=this._getDTIntCnt(t,e,a,s[l].key);(-1===d||d<i)&&(d=i,m=l)}return a=s[m].key,a}_getXAxisStats(t,e,r){let n=this._getDataLen(t),o="date"===e.type||"time"===e.type;if(o&&!this._autoDateFormats){this._autoDateFormats||(this._autoDateFormats=[]);let t=this._testXAxisDateFormat();t&&this._autoDateFormats.push(t)}let a=o?this._castAsDate(e.minValue,e.dateFormat):this._castAsNumber(e.minValue),i=o?this._castAsDate(e.maxValue,e.dateFormat):this._castAsNumber(e.maxValue);if(this._selectorRange&&this._selectorRange[t]){let r=this._selectorRange[t].min;isNaN(r)||(a=o?this._castAsDate(r,e.dateFormat):this._castAsNumber(r));let n=this._selectorRange[t].max;isNaN(n)||(i=o?this._castAsDate(n,e.dateFormat):this._castAsNumber(n))}let s,l,d=a,m=i,c=void 0===e.type||null===e.type||"auto"===e.type,h=c||"basic"===e.type,u=0,p=0;for(let r=0;r<n&&e.dataField;r++){let n=this._getDataValue(r,e.dataField,t);n=o?this._castAsDate(n,e.dateFormat):this._castAsNumber(n),isNaN(n)||(o?u++:p++,(isNaN(s)||n<s)&&(s=n),(isNaN(l)||n>=l)&&(l=n))}c&&(!o&&p===n||o&&u===n)&&(h=!1),h&&(s=0,l=Math.max(0,n-1)),isNaN(d)&&(d=s),isNaN(m)&&(m=l),o?(this._isDate(d)||(d=this._isDate(m)?m:new Date),this._isDate(m)||(m=this._isDate(d)?d:new Date)):(isNaN(d)&&(d=0),isNaN(m)&&(m=h?Math.max(0,n-1):d)),null==s&&(s=d),null==l&&(l=m);let f,g,b=e.rangeSelector&&e.rangeSelector.visible;if(b){let t=b.minValue||d;t&&o&&(t=this._castAsDate(t,b.dateFormat||e.dateFormat));let r=b.maxValue||m;r&&o&&(r=this._castAsDate(r,b.dateFormat||e.rangeSelector)),d<t&&(d=t),m<t&&(m=r),d>r&&(d=t),m>r&&(m=r)}o&&(f=e.baseUnit,f||(f=this._getBestDTUnit(d,m,t,r)),g="hour"===f||"minute"===f||"second"===f||"millisecond"===f);let v=!0===e.logarithmicScale,y=e.logarithmicScaleBase;(isNaN(y)||y<=1)&&(y=10);let w=e.unitInterval;v?w=1:(isNaN(w)||w<=0)&&(w=this._estAxisInterval(d,m,t,r,f));let x,_,S={min:d,max:m},C=this.seriesGroups[t];return v?(d||(d=1,m&&d>m&&(d=m)),m||(m=d),S={min:d,max:m},x=this.renderer._rnd(this._draw.log(d,y),1,!1),_=this.renderer._rnd(this._draw.log(m,y),1,!0),m=Math.pow(y,_),d=Math.pow(y,x)):o||!C.polar&&!C.spider||(d=this.renderer._rnd(d,w,!1),m=this.renderer._rnd(m,w,!0)),{min:d,max:m,logAxis:{enabled:v,base:y,minPow:x,maxPow:_},dsRange:{min:s,max:l},filterRange:S,useIndeces:h,isDateTime:o,isTimeUnit:g,dateTimeUnit:f,interval:w}}_getDefaultDTFormatFn(t){let e,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return e="year"===t||"month"===t||"day"===t?function(t){return t.getDate()+"-"+r[t.getMonth()]+"-"+t.getFullYear()}:function(t){return t.getDate()+"-"+r[t.getMonth()]+"-"+t.getFullYear()+"<br>"+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},e}_getDTIntCnt(t,e,r,n){let o=0,a=new Date(t),i=new Date(e);if(i=i.valueOf(),r<=0)return 1;for(;a.valueOf()<i;)"millisecond"===n?a=new Date(a.valueOf()+r):"second"===n?a=new Date(a.valueOf()+1e3*r):"minute"===n?a=new Date(a.valueOf()+6e4*r):"hour"===n?a=new Date(a.valueOf()+6e4*r*24):"day"===n?a.setDate(a.getDate()+r):"month"===n?a.setMonth(a.getMonth()+r):"year"===n&&a.setFullYear(a.getFullYear()+r),o++;return o}_estAxisInterval(t,e,r,n,o,a){if(isNaN(t)||isNaN(e))return NaN;let i=[1,2,5,10,15,20,50,100,200,500],s=0,l=n/(!isNaN(a)&&a>0?a:50);if(this._renderData&&this._renderData.length>r&&this._renderData[r].xAxis&&!isNaN(this._renderData[r].xAxis.avgWidth)){let t=Math.max(1,this._renderData[r].xAxis.avgWidth);0!==t&&isNaN(a)&&(l=.9*n/t)}if(l<=1)return Math.abs(e-t);let d,m=0;for(;d=s>=i.length?Math.pow(10,3+s-i.length):i[s],m=this._isDate(t)&&this._isDate(e)?this._getDTIntCnt(t,e,d,o):(e-t)/d,!(m<=l);)s++;let c=this.seriesGroups[r];return(c.spider||c.polar)&&2*d>e-t&&(d=e-t),d}_getPaddingSize(t,e,r,n,o,a,i){var s=t.min,l=t.max;t.logAxis.enabled&&(s=t.logAxis.minPow,l=t.logAxis.maxPow);var d=t.interval,m=t.dateTimeUnit;if(o){var c=n/Math.max(1,l-s+d)*d;return a?{left:0,right:c}:r?{left:0,right:0}:{left:c/2,right:c/2}}if(r&&!i)return{left:0,right:0};if(this._isDate(s)&&this._isDate(l)){let t=this._getDTIntCnt(s,l,Math.min(d,l-s),m),e=n/Math.max(2,t);return{left:e/2,right:e/2}}let h=Math.max(1,l-s);if(1===h){const t=n/4;return{left:t,right:t}}let u=n/(h+1);return{left:u/2,right:u/2}}_calculateXOffsets(t,e){var r=this.seriesGroups[t],n=this._getXAxis(t),o=[],a=[],i=this._getDataLen(t),s=this._getXAxisStats(t,n,e),l=s.min,d=s.max,m=s.isDateTime,c=s.isTimeUnit,h=this._hasColumnSeries(),u=r.polar||r.spider,p=this._get([r.startAngle,r.minAngle,0]),f=this._get([r.endAngle,r.maxAngle,360]),g=u&&!(Math.abs(Math.abs(f-p)-360)>1e-4),b=this._alignValuesWithTicks(t),v=this._getPaddingSize(s,n,b,e,u,g,h),y=d-l,w=s.filterRange;0===y&&(y=1);var x=e-v.left-v.right;u&&b&&!g&&(v.left=v.right=0);var _=-1,S=-1;for(let e=0;e<i;e++){var C=void 0===n.dataField?e:this._getDataValue(e,n.dataField,t);if(s.useIndeces){if(e<w.min||e>w.max){o.push(NaN),a.push(void 0);continue}if(A=v.left+(e-l)/y*x,!0===s.logAxis.enabled){var k=s.logAxis.base;A=this._smartPlot.scale(C,{min:l.valueOf(),max:d.valueOf(),type:"logarithmic",base:k},{min:0,max:x,flip:!1})}o.push(this.renderer._ptrnd(A)),a.push(C),-1===_&&(_=e),(-1===S||S<e)&&(S=e)}else if(C=m?this._castAsDate(C,n.dateFormat):this._castAsNumber(C),isNaN(C)||C<w.min||C>w.max)o.push(NaN),a.push(void 0);else{var A=0;if(!0===s.logAxis.enabled){let t=s.logAxis.base;A=this._smartPlot.scale(C,{min:l.valueOf(),max:d.valueOf(),type:"logarithmic",base:t},{min:0,max:x,flip:!1})}else A=!m||m&&c?(C-l)*x/y:(C.valueOf()-l.valueOf())/(d.valueOf()-l.valueOf())*x;A=this.renderer._ptrnd(v.left+A),o.push(A),a.push(C),-1===_&&(_=e),(-1===S||S<e)&&(S=e)}}if(!0===n.flip)for(let t=0;t<o.length;t++)isNaN(o[t])||(o[t]=e-o[t]);(c||m)&&(y=this._getDateDiff(l,d,n.baseUnit),y=this.renderer._rnd(y,1,!1));var T=Math.max(1,y),E=x/T;return _===S&&1===T&&(o[_]=v.left+x/2),{axisStats:s,data:o,xvalues:a,first:_,last:S,length:-1===S?0:S-_+1,itemWidth:E,intervalWidth:E*s.interval,rangeLength:y,useIndeces:s.useIndeces,padding:v,axisSize:x}}_getXAxis(t){return null==t||this.seriesGroups.length<=t?this.xAxis:this.seriesGroups[t].xAxis||this.xAxis}_isGreyScale(t,e){let r=this.seriesGroups[t],n=r.series[e];return!0===n.greyScale||!1!==n.greyScale&&(!0===r.greyScale||!1!==r.greyScale&&!0===this.greyScale)}_getSeriesColors(t,e,r){let n=this._getSeriesColorsInternal(t,e,r);if(this._isGreyScale(t,e))for(let t in n)n[t]=this._draw.toGreyScale(n[t]);return n}_getColorFromScheme(t,e,r){let n="#000000",o=this.seriesGroups[t],a=o.series[e];if(this._isPieGroup(t)){let i=this._getDataLen(t);n=this._getItemColorFromScheme(a.colorScheme||o.colorScheme||this.colorScheme,e*i+r,t,e)}else{let r=0;for(let n=0;n<=t;n++)for(let o=0;o<this.seriesGroups[n].series.length&&(n!==t||parseInt(o)!==e);o++)r++;let a=this.colorScheme;if(o.colorScheme&&(a=o.colorScheme),null!=a&&""!==a||(a=this.colorSchemes[0].name),!a)return n;for(let t=0;t<this.colorSchemes.length;t++){let e=this.colorSchemes[t];if(e.name===a){for(;r>e.colors.length;)r-=e.colors.length,++t>=this.colorSchemes.length&&(t=0),e=this.colorSchemes[t];n=e.colors[r%e.colors.length]}}}return n}_createColorsCache(){this._colorsCache={get:function(t){if(this._store[t])return this._store[t]},set:function(t,e){this._size<1e4&&(this._store[t]=e,this._size++)},clear:function(){this._store={},this._size=0},_size:0,_store:{}}}_getSeriesColorsInternal(t,e,r){let n=this.seriesGroups[t],o=n.series[e];"function"===(o.colorFunction,!1)&&"pie"!==n.type&&"donut"!==n.type&&(r=NaN);let a=t+"_"+e+"_"+(isNaN(r)?"NaN":r);if(this._colorsCache.get(a))return this._colorsCache.get(a);let i,s={lineColor:"#222222",lineColorSelected:"#151515",lineColorSymbol:"#222222",lineColorSymbolSelected:"#151515",fillColor:"#222222",fillColorSelected:"#333333",fillColorSymbol:"#222222",fillColorSymbolSelected:"#333333",fillColorAlt:"#222222",fillColorAltSelected:"#333333"};if("function"==typeof o.colorFunction){let e=isNaN(r)?NaN:this._getDataValue(r,o.dataField,t);if(-1!==n.type.indexOf("range")&&!isNaN(r)){e={from:this._getDataValue(r,o.dataFieldFrom,t),to:this._getDataValue(r,o.dataFieldTo,t)}}if(i=o.colorFunction(e,r,o,n),"object"==typeof i)for(let t in i)s[t]=i[t];else s.fillColor=i}else{for(let t in s)o[t]&&(s[t]=o[t]);o.fillColor||o.color?o.fillColor=o.fillColor||o.color:s.fillColor=this._getColorFromScheme(t,e,r)}let l={fillColor:{baseColor:"fillColor",adjust:1},fillColorSelected:{baseColor:"fillColor",adjust:1.1},fillColorSymbol:{baseColor:"fillColor",adjust:1},fillColorSymbolSelected:{baseColor:"fillColorSymbol",adjust:2},fillColorAlt:{baseColor:"fillColor",adjust:4},fillColorAltSelected:{baseColor:"fillColor",adjust:3},lineColor:{baseColor:"fillColor",adjust:.95},lineColorSelected:{baseColor:"lineColor",adjust:.95},lineColorSymbol:{baseColor:"lineColor",adjust:1},lineColorSymbolSelected:{baseColor:"lineColorSelected",adjust:1}};for(let t in s)"object"==typeof i&&i[t]||o[t]&&(s[t]=o[t]);for(let t in s)"object"==typeof i&&i[t]||o[t]||(s[t]=this.renderer.adjustColor(s[l[t].baseColor],l[t].adjust));return this._colorsCache.set(a,s),s}_getItemColorFromScheme(t,e,r,n){let o;for(void 0!==t&&""!==t||(t=this.colorSchemes[0].name),o=0;o<this.colorSchemes.length&&t!==this.colorSchemes[o].name;o++);let a=0;for(;a<=e;){o===this.colorSchemes.length&&(o=0);let t=this.colorSchemes[o].colors.length;if(!(a+t<=e)){let t=this.colorSchemes[o].colors[e-a];return this._isGreyScale(r,n)&&0===t.indexOf("#")&&(t=this._draw.toGreyScale(t)),t}a+=t,o++}}getColorScheme(t){for(let e=0;e<this.colorSchemes.length;e++)if(this.colorSchemes[e].name===t)return this.colorSchemes[e].colors}addColorScheme(t,e){for(let r=0;r<this.colorSchemes.length;r++)if(this.colorSchemes[r].name===t)return void(this.colorSchemes[r].colors=e);this.colorSchemes.push({name:t,colors:e})}removeColorScheme(t){for(let e=0;e<this.colorSchemes.length;e++)if(this.colorSchemes[e].name===t){this.colorSchemes.splice(e,1);break}}_formatValue(t,e,r,n,o,a){if(null==t)return"";if(this._isObject(t)&&!this._isDate(t)&&!r)return"";if(r){if("function"!=typeof r)return t.toString();try{return r(t,a,o,n)}catch(t){return t.message}}return this._isNumber(t)?this._formatNumber(t,e):this._isDate(t)?this._formatDate(t,e):e?(e.prefix||"")+t.toString()+(e.sufix||""):t.toString()}_getFormattedValue(t,e,r,n,o,a){let i=this.seriesGroups[t],s=i.series[e],l="",d=n,m=o;s.labels&&(d=d||this._getFormatSettings(s.labels),m=m||s.labels.formatFunction),d||m||(d=this._getFormatSettings(s),m=s.formatFunction,d||m||(d=this._getFormatSettings(i),m=i.formatFunction));let c={},h=0;for(let e in s)0===e.indexOf("dataField")&&(c[e.substring(9).toLowerCase()]=this._getDataValue(r,s[e],t),h++);if(0===h&&(c=this._getDataValue(r,void 0,t)),-1!==i.type.indexOf("waterfall")&&this._isSummary(t,r)&&(c=this._renderData[t].offsets[e][r].value,h=0),m&&"function"==typeof m)try{return m(1===h?c[""]:c,r,s,i)}catch(t){return t.message}if(1===h&&this._isPieGroup(t))return this._formatValue(c[""],d,m,t,e,r);if(h>0){let n=0;for(let o in c){n>0&&""!==l&&(l+="<br>");let i="dataField"+(o.length>0?o.substring(0,1).toUpperCase()+o.substring(1):""),h=s["displayText"+(o.length>0?o.substring(0,1).toUpperCase()+o.substring(1):"")]||s[i],u=c[o];void 0!==u&&(u=this._formatValue(u,d,m,t,e,r),l+=!0===a?u:h+": "+u,n++)}}else null!=c&&(l=this._formatValue(c,d,m,t,e,r));return l||""}_isNumberAsString(t){if("string"!=typeof t)return!1;t=t.trim();for(let e=0;e<t.length;e++){let r=t.charAt(e);if(!(r>="0"&&r<="9"||","===r||"."===r)&&(("-"!==r||0!==e)&&!("("===r&&0===e||")"===r&&e===t.length-1)))return!1}return!0}_castAsDate(t,e){if(t instanceof Date&&!isNaN(t))return t;if("string"==typeof t){let r=new Date(t);if(this._isDate(r))return-1===t.indexOf(":")&&r.setHours(0,0,0,0),r;try{if(e&&(r=Smart.Utilities.DateTime.parseDateString(t,void 0,e).toDate(),this._isDate(r)))return r;if(this._autoDateFormats)for(let e=0;e<this._autoDateFormats.length;e++)if(r=Smart.Utilities.DateTime.parseDateString(t,void 0,this._autoDateFormats[e]).toDate(),this._isDate(r))return r;let n=this._detectDateFormat(t);if(n&&(r=Smart.Utilities.DateTime.parseDateString(t,void 0,n).toDate(),this._isDate(r)))return this._autoDateFormats.push(n),r}catch(t){}}}_castAsNumber(t){if(t instanceof Date&&!isNaN(t))return t.valueOf();if("string"==typeof t)if(this._isNumber(t))t=parseFloat(t);else if(!/[a-zA-Z]/.test(t)){let e=new Date(t);null!=e&&(t=e.valueOf())}return isNaN(t)?void 0:t}_isNumber(t){return"string"==typeof t&&this._isNumberAsString(t)&&(t=parseFloat(t)),"number"==typeof t&&isFinite(t)}_isDate(t){return t instanceof Date&&!isNaN(t.getDate())}_isBoolean(t){return"boolean"==typeof t}_isObject(t){return t&&("object"==typeof t||"function"==typeof t)||!1}_formatDate(t,e){let r=t.toString();return e&&(e.dateFormat&&(r=new Smart.Utilities.DateTime(t).toString(e.dateFormat)),r=(e.prefix||"")+r+(e.sufix||"")),r}_formatNumber(t,e){if(!this._isNumber(t))return t;e=e||{};let r=this.localization.decimalSeparator,n=this.localization.thousandsSeparator;e.decimalSeparator&&(r=e.decimalSeparator),e.thousandsSeparator&&(n=e.thousandsSeparator);let o=e.prefix||"",a=e.sufix||"",i=e.decimalPlaces;isNaN(i)&&(i=this._getDecimalPlaces([t],void 0,3));let s=e.negativeWithBrackets||!1,l=t<0;l&&s&&(t*=-1);let d,m=t.toString(),c=Math.pow(10,i);if(m=(Math.round(t*c)/c).toString(),isNaN(m)&&(m=""),d=m.lastIndexOf("."),i>0)for(d<0?(m+=r,d=m.length-1):"."!==r&&(m=m.replace(".",r));m.length-1-d<i;)m+="0";d=m.lastIndexOf(r),d=d>-1?d:m.length;let h=m.substring(d),u=0;for(let t=d;t>0;t--,u++)u%3==0&&t!==d&&(!l||t>1||l&&s)&&(h=n+h),h=m.charAt(t-1)+h;return m=h,l&&s&&(m="("+m+")"),o+m+a}_calculateControlPoints(t,e){let r=t[e],n=t[e+1],o=t[e+2],a=t[e+3],i=t[e+4],s=t[e+5],l=Math.sqrt(Math.pow(o-r,2)+Math.pow(a-n,2)),d=l+Math.sqrt(Math.pow(i-o,2)+Math.pow(s-a,2));0===d&&(d=1);let m=.4*l/d,c=.4-m;return[o+m*(r-i),a+m*(n-s),o-c*(r-i),a-c*(n-s)]}_getBezierPoints(t){let e="",r=[],n=[],o=t.split(" ");for(let t=0;t<o.length;t++){let e=o[t].split(",");r.push(parseFloat(e[0])),r.push(parseFloat(e[1])),!isNaN(r[r.length-1])&&isNaN(r[r.length-2])}let a=r.length;if(a<=1)return"";if(2===a)return e="M"+this.renderer._ptrnd(r[0])+","+this.renderer._ptrnd(r[1])+" L"+this.renderer._ptrnd(r[0]+1)+","+this.renderer._ptrnd(r[1]+1)+" ",e;for(let t=0;t<a-4;t+=2)n=n.concat(this._calculateControlPoints(r,t));for(let t=2;t<a-5;t+=2)e+=" C"+this.renderer._ptrnd(n[2*t-2])+","+this.renderer._ptrnd(n[2*t-1])+" "+this.renderer._ptrnd(n[2*t])+","+this.renderer._ptrnd(n[2*t+1])+" "+this.renderer._ptrnd(r[t+2])+","+this.renderer._ptrnd(r[t+3])+" ";return e=a<=4||Math.abs(r[0]-r[2])<3||Math.abs(r[1]-r[3])<3?"M"+this.renderer._ptrnd(r[0])+","+this.renderer._ptrnd(r[1])+" L"+this.renderer._ptrnd(r[2])+","+this.renderer._ptrnd(r[3])+" "+e:"M"+this.renderer._ptrnd(r[0])+","+this.renderer._ptrnd(r[1])+" Q"+this.renderer._ptrnd(n[0])+","+this.renderer._ptrnd(n[1])+" "+this.renderer._ptrnd(r[2])+","+this.renderer._ptrnd(r[3])+" "+e,a>=4&&(Math.abs(r[a-2]-r[a-4])<3||Math.abs(r[a-1]-r[a-3])<3)?e+=" L"+this.renderer._ptrnd(r[a-2])+","+this.renderer._ptrnd(r[a-1])+" ":a>=5&&(e+=" Q"+this.renderer._ptrnd(n[2*a-10])+","+this.renderer._ptrnd(n[2*a-9])+" "+this.renderer._ptrnd(r[a-2])+","+this.renderer._ptrnd(r[a-1])+" "),e}_createAnimationGroup(t){this._animGroups||(this._animGroups={}),this._animGroups[t]={animations:[],startTick:NaN}}_startAnimation(t){let e=(new Date).getTime();this._animGroups[t].startTick=e,this._runAnimation(),this._enableAnimTimer()}_enqueueAnimation(t,e,r,n,o,a,i){n<0&&(n=0),void 0===i&&(i="easeInOutSine"),this._animGroups[t].animations.push({key:e,properties:r,duration:n,fn:o,context:a,easing:i})}_stopAnimations(){clearTimeout(this._animtimer),this._animtimer=void 0,this._animGroups=void 0}_enableAnimTimer(){if(!this._animtimer){let t=this;this._animtimer=setTimeout((function(){t._runAnimation()}),this._animTickInt)}}_runAnimation(){if(this._animGroups){let t=(new Date).getTime(),e={};for(let r in this._animGroups){let n=this._animGroups[r].animations,o=this._animGroups[r].startTick,a=0;for(let e=0;e<n.length;e++){let r=n[e],i=t-o;r.duration>a&&(a=r.duration);let s=r.duration>0?i/r.duration:1,l=s;if(r.easing&&0!==r.duration&&!1!==r.duration&&(l=Smart.Utilities.Animation.Easings[r.easing](i,0,1,r.duration)),s>1&&(s=1,l=1),r.fn){r.fn(r.key,r.context,l);continue}let d={};for(let t=0;t<r.properties.length;t++){let e=r.properties[t],n=0;n=1===s?e.to:l*(e.to-e.from)+e.from,d[e.key]=n}this.renderer.attr(r.key,d)}o+a>t&&(e[r]={startTick:o,animations:n})}this._animGroups=e,this.renderer instanceof Smart.Utilities.HTML5Renderer&&this.renderer.refresh()}this._animtimer=null,Object.values(this._animGroups).length>0&&this._enableAnimTimer()}_fixCoords(t,e){if(!("horizontal"===this.seriesGroups[e].orientation))return t;var r=t.x;return t.x=t.y,t.y=r+this._plotRect.y-this._plotRect.x,r=t.width,t.width=t.height,t.height=r,t}getItemCoord(t,e,r){if(this._isPieGroup(t)&&(!this._isSerieVisible(t,e,r)||!this._renderData||this._renderData.length<=t))return{x:NaN,y:NaN};if(!this._isSerieVisible(t,e)||!this._renderData||this._renderData.length<=t)return{x:NaN,y:NaN};var n=this.seriesGroups[t],o=n.series[e],a=this._getItemCoord(t,e,r);if(this._isPieGroup(t)){if(isNaN(a.x)||isNaN(a.y)||isNaN(a.fromAngle)||isNaN(a.toAngle))return{x:NaN,y:NaN};var i=this._plotRect,s=a.fromAngle*(Math.PI/180),l=a.toAngle*(Math.PI/180);const t=i.x+a.center.x+Math.cos(s)*a.outerRadius,e=i.x+a.center.x+Math.cos(l)*a.outerRadius,r=i.y+a.center.y-Math.sin(s)*a.outerRadius,n=i.y+a.center.y-Math.sin(l)*a.outerRadius;var d=Math.min(t,e),m=Math.abs(e-t);return a={x:d,y:Math.min(r,n),width:m,height:Math.abs(n-r),center:a.center,centerOffset:a.centerOffset,innerRadius:a.innerRadius,outerRadius:a.outerRadius,selectedRadiusChange:a.selectedRadiusChange,fromAngle:a.fromAngle,toAngle:a.toAngle}}if(-1!==n.type.indexOf("column")||-1!==n.type.indexOf("waterfall")){var c=this._getColumnSerieWidthAndOffset(t,e);a.height=Math.abs(a.y.to-a.y.from),a.y=Math.min(a.y.to,a.y.from),a.x+=c.offset,a.width=c.width}else if(-1!==n.type.indexOf("ohlc")||-1!==n.type.indexOf("candlestick")){let r=this._getColumnSerieWidthAndOffset(t,e),n=a.y;var h=Math.min(n.Open,n.Close,n.Low,n.High),u=Math.max(n.Open,n.Close,n.Low,n.High);a.height=Math.abs(u-h),a.y=h,a.x+=r.offset,a.width=r.width}else if(-1!==n.type.indexOf("line")||-1!==n.type.indexOf("area"))a.width=a.height=0,a.y=a.y.to;else if(-1!==n.type.indexOf("bubble")||-1!==n.type.indexOf("scatter")){a.center={x:a.x,y:a.y.to};var p=a.y.radius;"circle"!==o.symbolType&&void 0!==o.symbolType&&null!==o.symbolType&&(p/=2),a.y=a.y.to,a.radius=p,a.width=2*p,a.height=2*p}if(a=this._fixCoords(a,t),n.polar||n.spider){var f=this._toPolarCoord(this._renderData[t].polarCoords,this._plotRect,a.x,a.y);a.x=f.x,a.y=f.y,a.center&&(a.center=this._toPolarCoord(this._renderData[t].polarCoords,this._plotRect,a.center.x,a.center.y))}return-1===n.type.indexOf("bubble")&&-1===n.type.indexOf("scatter")||(a.x-=p,a.y-=p),a}_getItemCoord(t,e,r){let n,o,a=this.seriesGroups[t];if(!a||!this._renderData)return{x:NaN,y:NaN};if(!a.series[e])return{x:NaN,y:NaN};let i=this._plotRect;if(this._isPieGroup(t)){let a=this._renderData[t].offsets[e][r];if(!a)return{x:NaN,y:NaN};let s=(a.fromAngle+a.toAngle)/2*(Math.PI/180);return n=i.x+a.x+Math.cos(s)*a.outerRadius,o=i.y+a.y-Math.sin(s)*a.outerRadius,{x:n,y:o,center:{x:a.x,y:a.y},centerOffset:a.centerOffset,innerRadius:a.innerRadius,outerRadius:a.outerRadius,selectedRadiusChange:a.selectedRadiusChange,fromAngle:a.fromAngle,toAngle:a.toAngle}}if(n=i.x+this._renderData[t].xoffsets.data[r],o=this._renderData[t].offsets[e][r],isNaN(n)||!o)return{x:NaN,y:NaN};let s={};for(let t in o)s[t]=o[t];return{x:n,y:s}}getXAxisValue(t,e){var r=this.seriesGroups[e];if(r){var n=this._getXAxis(e),o=this._plotRect,a=0,i=NaN,s=this._renderData[0].xoffsets.axisStats,l=0,d=0;if(r.polar||r.spider){if(isNaN(t.x)||isNaN(t.y))return NaN;var m=this._getPolarAxisCoords(e,o);if(this.renderer._ptdist(t.x,t.y,m.x,m.y)>m.r)return NaN;var c=Math.atan2(m.y-t.y,t.x-m.x);(c=Math.PI/2-c)<0&&(c=2*Math.PI+c),i=c*m.r;var h=m.startAngle+Math.PI/2,u=m.endAngle+Math.PI/2;l=h*m.r,d=u*m.r,a=(u-h)*m.r;var p=this._getPaddingSize(s,n,n.valuesOnTicks,a,!0,m.isClosedCircle,this._hasColumnSeries());m.isClosedCircle?(a-=p.left+p.right,d-=p.left+p.right):n.valuesOnTicks||(l+=p.left,d-=p.right)}else{if("horizontal"!==r.orientation){if(t<o.x||t>o.x+o.width)return NaN;i=t-o.x,a=o.width}else{if(t<o.y||t>o.y+o.height)return NaN;i=t-o.y,a=o.height}if(this._renderData[e]&&this._renderData[e].xoffsets){let t=this._renderData[e].xoffsets.padding;a-=t.left+t.right,i-=t.left}d=a}return this._smartPlot.scale(i,{min:l,max:d},{min:s.min.valueOf(),max:s.max.valueOf(),type:s.logAxis.enabled?"logarithmic":"linear",base:s.logAxis.base,flip:n.flip})}}getValueAxisValue(t,e){let r=this.seriesGroups[e];if(!r)return;let n=this._getValueAxis(e),o=this._plotRect,a=0,i=NaN;if(r.polar||r.spider){if(isNaN(t.x)||isNaN(t.y))return NaN;let r=this._getPolarAxisCoords(e,o);i=this.renderer._ptdist(t.x,t.y,r.x,r.y),a=r.r,i=a-i}else if("horizontal"===r.orientation){if(t<o.x||t>o.x+o.width)return NaN;i=t-o.x,a=o.width}else{if(t<o.y||t>o.y+o.height)return NaN;i=t-o.y,a=o.height}let s=this._stats.seriesGroups[e];return this._smartPlot.scale(i,{min:0,max:a},{min:s.min.valueOf(),max:s.max.valueOf(),type:s.logarithmic?"logarithmic":"linear",base:s.logBase,flip:!n.flip})}_detectDateFormat(t,e){let r={en_US_d:"M/d/yyyy",en_US_D:"dddd, MMMM dd, yyyy",en_US_t:"h:mm tt",en_US_T:"h:mm:ss tt",en_US_f:"dddd, MMMM dd, yyyy h:mm tt",en_US_F:"dddd, MMMM dd, yyyy h:mm:ss tt",en_US_M:"MMMM dd",en_US_Y:"yyyy MMMM",en_US_S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",en_CA_d:"dd/MM/yyyy",en_CA_D:"MMMM-dd-yy",en_CA_f:"MMMM-dd-yy h:mm tt",en_CA_F:"MMMM-dd-yy h:mm:ss tt",ISO:"yyyy-MM-dd hh:mm:ss",ISO2:"yyyy-MM-dd HH:mm:ss",d1:"dd.MM.yyyy",d2:"dd-MM-yyyy",zone1:"yyyy-MM-ddTHH:mm:ss-HH:mm",zone2:"yyyy-MM-ddTHH:mm:ss+HH:mm",custom:"yyyy-MM-ddTHH:mm:ss.fff",custom2:"yyyy-MM-dd HH:mm:ss.fff",de_DE_d:"dd.MM.yyyy",de_DE_D:"dddd, d. MMMM yyyy",de_DE_t:"HH:mm",de_DE_T:"HH:mm:ss",de_DE_f:"dddd, d. MMMM yyyy HH:mm",de_DE_F:"dddd, d. MMMM yyyy HH:mm:ss",de_DE_M:"dd MMMM",de_DE_Y:"MMMM yyyy",fr_FR_d:"dd/MM/yyyy",fr_FR_D:"dddd d MMMM yyyy",fr_FR_t:"HH:mm",fr_FR_T:"HH:mm:ss",fr_FR_f:"dddd d MMMM yyyy HH:mm",fr_FR_F:"dddd d MMMM yyyy HH:mm:ss",fr_FR_M:"d MMMM",fr_FR_Y:"MMMM yyyy",it_IT_d:"dd/MM/yyyy",it_IT_D:"dddd d MMMM yyyy",it_IT_t:"HH:mm",it_IT_T:"HH:mm:ss",it_IT_f:"dddd d MMMM yyyy HH:mm",it_IT_F:"dddd d MMMM yyyy HH:mm:ss",it_IT_M:"dd MMMM",it_IT_Y:"MMMM yyyy",ru_RU_d:"dd.MM.yyyy",ru_RU_D:"d MMMM yyyy '?.'",ru_RU_t:"H:mm",ru_RU_T:"H:mm:ss",ru_RU_f:"d MMMM yyyy '?.' H:mm",ru_RU_F:"d MMMM yyyy '?.' H:mm:ss",ru_RU_Y:"MMMM yyyy",cs_CZ_d:"d.M.yyyy",cs_CZ_D:"d. MMMM yyyy",cs_CZ_t:"H:mm",cs_CZ_T:"H:mm:ss",cs_CZ_f:"d. MMMM yyyy H:mm",cs_CZ_F:"d. MMMM yyyy H:mm:ss",cs_CZ_M:"dd MMMM",cs_CZ_Y:"MMMM yyyy",he_IL_d:"dd MMMM yyyy",he_IL_D:"dddd dd MMMM yyyy",he_IL_t:"HH:mm",he_IL_T:"HH:mm:ss",he_IL_f:"dddd dd MMMM yyyy HH:mm",he_IL_F:"dddd dd MMMM yyyy HH:mm:ss",he_IL_M:"dd MMMM",he_IL_Y:"MMMM yyyy",hr_HR_d:"d.M.yyyy.",hr_HR_D:"d. MMMM yyyy.",hr_HR_t:"H:mm",hr_HR_T:"H:mm:ss",hr_HR_f:"d. MMMM yyyy. H:mm",hr_HR_F:"d. MMMM yyyy. H:mm:ss",hr_HR_M:"d. MMMM",hu_HU_d:"yyyy.MM.dd.",hu_HU_D:"yyyy. MMMM d.",hu_HU_t:"H:mm",hu_HU_T:"H:mm:ss",hu_HU_f:"yyyy. MMMM d. H:mm",hu_HU_F:"yyyy. MMMM d. H:mm:ss",hu_HU_M:"MMMM d.",hu_HU_Y:"yyyy. MMMM",jp_JP_d:"gg y/M/d",jp_JP_D:"gg y'?'M'?'d'?'",jp_JP_t:"H:mm",jp_JP_T:"H:mm:ss",jp_JP_f:"gg y'?'M'?'d'?' H:mm",jp_JP_F:"gg y'?'M'?'d'?' H:mm:ss",jp_JP_M:"M'?'d'?'",jp_JP_Y:"gg y'?'M'?'",lt_LT_d:"yyyy.MM.dd",lt_LT_D:"yyyy 'm.' MMMM d 'd.'",lt_LT_t:"HH:mm",lt_LT_T:"HH:mm:ss",lt_LT_f:"yyyy 'm.' MMMM d 'd.' HH:mm",lt_LT_F:"yyyy 'm.' MMMM d 'd.' HH:mm:ss",lt_LT_M:"MMMM d 'd.'",lt_LT_Y:"yyyy 'm.' MMMM",sa_IN_d:"dd-MM-yyyy",sa_IN_D:"dd MMMM yyyy dddd",sa_IN_t:"HH:mm",sa_IN_T:"HH:mm:ss",sa_IN_f:"dd MMMM yyyy dddd HH:mm",sa_IN_F:"dd MMMM yyyy dddd HH:mm:ss",sa_IN_M:"dd MMMM",basic_y:"yyyy",basic_ym:"yyyy-MM",basic_d:"yyyy-MM-dd",basic_dhm:"yyyy-MM-dd hh:mm",basic_bhms:"yyyy-MM-dd hh:mm:ss",basic2_ym:"MM-yyyy",basic2_d:"MM-dd-yyyy",basic2_dhm:"MM-dd-yyyy hh:mm",basic2_dhms:"MM-dd-yyyy hh:mm:ss",basic3_ym:"yyyy/MM",basic3_d:"yyyy/MM/dd",basic3_dhm:"yyyy/MM/dd hh:mm",basic3_bhms:"yyyy/MM/dd hh:mm:ss",basic4_ym:"MM/yyyy",basic4_d:"MM/dd/yyyy",basic4_dhm:"MM/dd/yyyy hh:mm",basic4_dhms:"MM/dd/yyyy hh:mm:ss"};e&&(r=Object.assign({},r,e));let n=[];Array.isArray(t)?n=t:n.push(t);for(let t in r)r[t]={format:r[t],count:0};for(let t=0;t<n.length;t++){const e=n[t];if(null!=e)for(let t in r)try{(e instanceof Date||Smart.Utilities.DateTime.parseDateString(e,void 0,r[t].format))&&r[t].count++}catch(t){}}let o={key:void 0,count:0};for(let t in r)r[t].count>o.count&&(o.key=t,o.count=r[t].count);return o.key?r[o.key].format:""}_testXAxisDateFormat(t){let e=this,r=e._getXAxis(t),n=e._getDataLen(t),o={};if(e.localization.patterns)for(let t in e.localization.patterns)o["local_"+t]=e.localization.patterns[t];let a=[];for(let o=0;o<n&&o<10;o++){const n=e._getDataValue(o,r.dataField,t);null!=n&&a.push(n)}return e._detectDateFormat(a,o)}_getThemeColor(t){if("light"===this.theme)switch(t){case"background":return"#FFFFFF";case"line":return"#BCBCBC";case"band":return"#AAAAAA"}switch(t){case"background":return"#2E2E2E";case"line":return"#707070";case"band":return"#565656"}}})},167:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleRangeSelector=!0,Smart.Chart.prototype._renderXAxisRangeSelector=function(t,e){const r=this,n=r.seriesGroups[t],o=r._getXAxis(t),a=o?o.rangeSelector:void 0;if(!r._isSelectorRefresh){const t=(a&&a.renderTo?a.renderTo:r).getElementsByClassName("smart-chart-range-selector")[0];t&&t.parentElement.removeChild(t)}if(!o||!1===o.visible||"spider"===n.type)return!1;if(!r._isGroupVisible(t))return!1;if(!a)return!1;let i="horizontal"===n.orientation;a.renderTo&&(i=!1),r.rightToLeft&&(o.flip=!0);let s=i?r.offsetHeight:r.offsetWidth;s-=4;const l=this._getXAxisStats(t,o,s);let d=o.position;if(a.renderTo&&a.position&&(d=a.position),!this._isSelectorRefresh){const r=a.renderTo,n=document.createElement("div");if(n.className="smart-chart-range-selector smart-unselectable",n.style.position="absolute",n.style.backgroundColor="transparent",n.style.onselectstart=function(){return!1},r)r.appendChild(n),n.style.width=r.offsetWidth+"px",n.style.height=r.offsetHeight+"px",e.width=r.offsetWidth,e.height=r.offsetHeight;else{this.renderer.getContainer().appendChild(n);const t=this._selectorGetSize(o);i?(n.style.left=1+e.x+("right"!==d?-t:e.width)+"px",n.style.top="0",n.style.height=s+"px",n.style.width=t+"px",e.height=t):(n.style.left="2px",n.style.top=e.y+("top"!==d?e.height:-t)+"px",n.style.height=t+"px",n.style.width=s-1+"px")}n.parentDiv=n.parentElement,this._refreshSelector(t,o,l,n,e,i)}return this._isSelectorRefresh=!1,!0},Smart.Chart.prototype._refreshSelector=function(t,e,r,n,o,a){const i=this,s={},l=e.rangeSelector;for(let t in l)s[t]=l[t];delete s.padding;let d=s.minValue,m=s.maxValue;isNaN(d)&&(d=Math.min(r.min.valueOf(),r.dsRange.min.valueOf())),isNaN(m)&&(m=Math.max(r.max.valueOf(),r.dsRange.max.valueOf())),this._isDate(r.min)&&(d=new Date(d)),this._isDate(r.max)&&(m=new Date(m));let c=e.position;l.renderTo&&l.position&&(c=l.position),s.dataField=e.dataField,delete s.rangeSelector,s.type=e.type,s.baseUnit=null!==l.baseUnit?l.baseUnit:e.baseUnit,s.minValue=d,s.maxValue=m,s.flip=e.flip,s.position=c;let h=2,u=2,p=2,f=2;l.renderTo||(h=a?0:o.x,u=a?0:this._rect.width-o.x-o.width,p=a?o.y:5,f=a?this._paddedRect.height-this._plotRect.height:5);let g=l.padding;g=null!=g||l.renderTo?{left:g&&g.left?g.left:h,top:g&&g.top?g.top:p,right:g&&g.right?g.right:u,bottom:g&&g.bottom?g.bottom:f}:{left:h,top:p,right:u,bottom:f};let b=l.dataField;for(let t=0;null==b&&t<this.seriesGroups.length;t++)for(let e=0;null==b&&e<this.seriesGroups[t].series.length;e++)b=this.seriesGroups[t].series[e].dataField;const v={parentChart:this,padding:g,_isRangeSelectorInstance:!0,theme:this.theme,caption:l.caption,description:l.description,titlePadding:l.titlePadding,colorScheme:l.colorScheme||this.colorScheme,backgroundColor:l.backgroundColor||this.backgroundColor||i._getThemeColor("background"),backgroundImage:l.backgroundImage,showBorderLine:null!==l.showBorderLine?l.showBorderLine:!!l.renderTo,borderLineWidth:l.borderLineWidth||this.borderLineWidth,borderLineColor:l.borderLineColor||this.borderLineColor||i._getThemeColor("line"),rightToLeft:null!==l.rightToLeft?l.rightToLeft:this.rightToLeft,greyScale:null!==l.greyScale?l.greyScale:this.greyScale,renderEngine:this.renderEngine,showLegend:!1,animation:"none",enableEvents:!1,showToolTips:!1,dataSource:this.dataSource,xAxis:s,seriesGroups:[{orientation:a?"horizontal":"vertical",valueAxis:{visible:!1},type:l.serieType,skipOverlappingPoints:l.skipOverlappingPoints,columnSeriesOverlap:l.columnSeriesOverlap,columnsGapPercent:l.columnsGapPercent,seriesGapPercent:l.seriesGapPercent,series:[{dataField:b,opacity:.8,lineWidth:1}]}]};l.seriesGroups&&(v.seriesGroups=l.seriesGroups),l.valueAxis.visible&&(v.valueAxis=l.valueAxis),v.showBorderLine||(v.borderLineWidth=1,v.borderLineColor=i._get([this.backgroundColor,this.background,i._getThemeColor("background")]),v.showBorderLine=!0),i._supressBindingRefresh=!0,n.innerHTML="";const y=document.createElement("smart-chart");y.rightToLeft=i.rightToLeft,y.parentDiv=n;for(let t in v)y[t]=v[t];n.appendChild(y),i._rangeSelectorInstances[t]=y,i._supressBindingRefresh=!1;const w=function(){if(!y._plotRect)return;const e=y._paddedRect;if(e.height=y._plotRect.height,a||"top"!==c){if(a){const t=y._renderData[0].xAxis.rect.width;e.width-=t,"right"!==c&&(e.x+=t)}}else e.y+=y._renderData[0].xAxis.rect.height;if(i._createSliderElements(t,n,e,l,{min:s.minValue,max:s.maxValue}),i._rangeSelectorEventData={groupIndex:t,renderTo:n,swapXY:a},i.hasAttribute("aria-owns")){const t=i.getAttribute("aria-owns");i.setAttribute("aria-owns",t+" "+y.id)}else i.setAttribute("aria-owns",y.id)};y.isRendered?w():y.whenRendered(()=>{w()})},Smart.Chart.prototype._createSliderElements=function(t,e,r,n,o){const a=this,i=e.getElementsByClassName("slider")[0];i&&i.parentElement.removeChild(i);const s=n.selectedRangeColor||"blue",l=a._get([n.selectedRangeOpacity,.1]),d=a._get([n.unselectedRangeOpacity,.5]),m=n.unselectedRangeColor||"white",c=n.rangeLineColor||"grey",h=document.createElement("div");for(h.className="slider",h.style.position="absolute",h.style.background=s,h.style.opacity=l,h.style.left=r.x+"px",h.style.top=r.y+"px",h.style.width=r.width+"px",h.style.height=r.height+"px",e.appendChild(h);this._sliders.length<t+1;)this._sliders.push({});function u(t,e){const r=document.createElement("div");return r.className="slider",r.style.position="absolute",r.style.background=t,r.style.opacity=e,r}function p(){const t=document.createElement("div");return t.className="slider",t.style.position="absolute",t.style.background="#FFFFFF",t.style.borderStyle="solid",t.style.borderWidth="1px",t.style.borderRadius="3px",t.style.borderColor=c,t.setAttribute("role","slider"),t.setAttribute("aria-controls",a.id),t}const f=h.getBoundingClientRect(),g=e.getBoundingClientRect();this._sliders[t]={element:h,host:e.firstElementChild,_sliderInitialAbsoluteRect:{x:f.left,y:f.top,width:r.width,height:r.height},_hostInitialAbsolutePos:{x:g.left,y:g.top},getRect:function(){const t=e.getBoundingClientRect();return{x:t.left-this._hostInitialAbsolutePos.x+this._sliderInitialAbsoluteRect.x,y:t.top-this._hostInitialAbsolutePos.y+this._sliderInitialAbsoluteRect.y,width:this._sliderInitialAbsoluteRect.width,height:this._sliderInitialAbsoluteRect.height}},rect:r,left:u(m,d),right:u(m,d),leftTop:u(c,d),rightTop:u(c,d),leftBorder:u(c,d),leftBar:p(),rightBorder:u(c,d),rightBar:p()};const b=this._sliders[t];e.appendChild(b.left),e.appendChild(b.right),e.appendChild(b.leftTop),e.appendChild(b.rightTop),e.appendChild(b.leftBorder),e.appendChild(b.rightBorder),e.appendChild(b.leftBar),e.appendChild(b.rightBar);const v=this._renderData[t].xAxis.data.axisStats,y=v.min.valueOf(),w=v.max.valueOf();"number"==typeof v.min?(b.leftBar.setAttribute("aria-valuemin",o.min),b.leftBar.setAttribute("aria-valuemax",o.max),b.leftBar.setAttribute("aria-valuenow",y),b.rightBar.setAttribute("aria-valuemin",o.min),b.rightBar.setAttribute("aria-valuemax",o.max),b.rightBar.setAttribute("aria-valuenow",w)):(b.leftBar.setAttribute("aria-valuemin",o.min.getTime()),b.leftBar.setAttribute("aria-valuemax",o.max.getTime()),b.leftBar.setAttribute("aria-valuenow",v.min.getTime()),b.leftBar.setAttribute("aria-valuetext",v.min.toLocaleString()),b.rightBar.setAttribute("aria-valuemin",o.min.getTime()),b.rightBar.setAttribute("aria-valuemax",o.max.getTime()),b.rightBar.setAttribute("aria-valuenow",v.max.getTime()),b.rightBar.setAttribute("aria-valuetext",v.max.toLocaleString()));let x=this._valueToOffset(t,y),_=this._valueToOffset(t,w);if(x>_){const t=_;_=x,x=t}"horizontal"!==this.seriesGroups[t].orientation?(h.style.left=Math.round(r.x+x)+"px",h.style.top=r.y+"px",h.style.width=Math.round(_-x)+"px",h.style.height=r.height+"px"):(h.style.left=r.x+"px",h.style.top=Math.round(r.y+x)+"px",h.style.width=r.width+"px",h.style.height=Math.round(_-x)+"px"),this._setSliderPositions(t,x,_)},Smart.Chart.prototype._setSliderPositions=function(t,e,r){const n=this.seriesGroups[t],o=this._getXAxis(t),a=o.rangeSelector;let i="horizontal"===n.orientation;o.rangeSelector.renderTo&&(i=!1);let s=o.position;a.renderTo&&a.position&&(s=a.position);const l=this._sliders[t],d=i?"top":"left",m=i?"left":"top",c=i?"height":"width",h=i?"width":"height",u=i?"y":"x",p=i?"x":"y",f=l.rect;l.startOffset=e,l.endOffset=r,l.left.style[d]=f[u]+"px",l.left.style[m]=f[p]+"px",l.left.style[c]=e+"px",l.left.style[h]=f[h]+"px",l.right.style[d]=f[u]+r+"px",l.right.style[m]=f[p]+"px",l.right.style[c]=f[c]-r+1+"px",l.right.style[h]=f[h]+"px",l.leftTop.style[d]=f[u]+"px",l.leftTop.style[m]=f[p]+(i&&"right"===s||!i&&"top"!==s?0:f[h])+"px",l.leftTop.style[c]=e+"px",l.leftTop.style[h]="1px",l.rightTop.style[d]=f[u]+r+"px",l.rightTop.style[m]=f[p]+(i&&"right"===s||!i&&"top"!==s?0:f[h])+"px",l.rightTop.style[c]=f[c]-r+1+"px",l.rightTop.style[h]="1px",l.leftBorder.style[d]=f[u]+e+"px",l.leftBorder.style[m]=f[p]+"px",l.leftBorder.style[c]="1px",l.leftBorder.style[h]=f[h]+"px";let g=f[h]/4;g>20&&(g=20),g<3&&(g=3),l.leftBar.style[d]=f[u]+e-3+"px",l.leftBar.style[m]=f[p]+f[h]/2-g/2+"px",l.leftBar.style[c]="5px",l.leftBar.style[h]=g+"px",l.rightBorder.style[d]=f[u]+r+"px",l.rightBorder.style[m]=f[p]+"px",l.rightBorder.style[c]="1px",l.rightBorder.style[h]=f[h]+"px",l.rightBar.style[d]=f[u]+r-3+"px",l.rightBar.style[m]=f[p]+f[h]/2-g/2+"px",l.rightBar.style[c]="5px",l.rightBar.style[h]=g+"px"},Smart.Chart.prototype._resizeState={},Smart.Chart.prototype._onSliderMouseDown=function(t){t.stopImmediatePropagation(),t.stopPropagation(),this._sliders[this._rangeSelectorEventData.groupIndex]&&(void 0!==this._resizeState.state&&null!==this._resizeState.state||this._testAndSetReadyResize(t),"ready"===this._resizeState.state&&(this._draggingRangeSelector=!0,this._resizeState.state="resizing"))},Smart.Chart.prototype._valueToOffset=function(t,e){const r=this.seriesGroups[t],n=this._sliders[t],o=n.host._renderData[0].xAxis.data.axisStats,a=o.min.valueOf();let i=o.max.valueOf()-a;0===i&&(i=1);const s=this._getXAxis(t),l="horizontal"===r.orientation?"height":"width",d=(e.valueOf()-a)/i;return n.getRect()[l]*(s.flip?1-d:d)},Smart.Chart.prototype._offsetToValue=function(t,e){const r=this._sliders[t],n=this.seriesGroups[t],o=this._getXAxis(t),a="horizontal"===n.orientation?"height":"width";let i=r.getRect()[a];0===i&&(i=1);const s=r.host._renderData[0].xAxis.data.axisStats,l=s.min.valueOf(),d=s.max.valueOf();let m=e/i*(d-l)+l;return!0===o.flip&&(m=d-e/i*(d-l)),this._isDate(s.min)||this._isDate(s.max)?m=new Date(m):((void 0===o.dataField||null===o.dataField||s.useIndeces)&&(m=Math.round(m)),m<s.min&&(m=s.min),m>s.max&&(m=s.max)),m},Smart.Chart.prototype._onSliderMouseUp=function(t){const e=this,r=e._rangeSelectorEventData.groupIndex,n=e._rangeSelectorEventData.swapXY,o=e._sliders[r];if(delete e._draggingRangeSelector,!o)return;if("resizing"!==e._resizeState.state)return;t.stopImmediatePropagation(),t.stopPropagation(),e._resizeState={},e.style.cursor="default";const a=n?"top":"left",i=n?"y":"x",s=o.element.getBoundingClientRect()[a],l=s+(n?o.element.offsetHeight:o.element.offsetWidth),d=o.getRect();let m=e._offsetToValue(r,s-d[i]),c=e._offsetToValue(r,l-d[i]);!o.host._renderData[0].xAxis.data.axisStats.isTimeUnit&&c.valueOf()-m.valueOf()>864e5&&(m.setHours(0,0,0,0),c.setDate(c.getDate()+1),c.setHours(0,0,0,0));const h=e._getXAxis(r);if(h.flip){const t=m;m=c,c=t}for(let t=0;t<e.seriesGroups.length;t++)e._getXAxis(t)===h&&(e._selectorRange[t]={min:m,max:c});e._isSelectorRefresh=!0;const u=e.animation;e.$.fireEvent("rangeSelectionChanging",{instance:e,minValue:m,maxValue:c}),e.animation="none",e.update(),e.animation=u,e.$.fireEvent("rangeSelectionChanged",{instance:e,minValue:m,maxValue:c}),"number"==typeof m?(o.leftBar.setAttribute("aria-valuenow",m),o.rightBar.setAttribute("aria-valuenow",c)):(o.leftBar.setAttribute("aria-valuenow",m.getTime()),o.leftBar.setAttribute("aria-valuetext",m.toLocaleString()),o.rightBar.setAttribute("aria-valuenow",c.getTime()),o.rightBar.setAttribute("aria-valuetext",c.toLocaleString()))},Smart.Chart.prototype._onSliderMouseMove=function(t){const e=this,r=e._rangeSelectorEventData.groupIndex,n=e._sliders[r],o=e._rangeSelectorEventData.swapXY;if(!n)return;const a=n.getRect(),i=n.element,s={left:t.clientX,top:t.clientY},l=i.getBoundingClientRect(),d=o?"top":"left",m=parseFloat(getComputedStyle(i)[d]),c=o?"height":"width",h=o?"y":"x";if("resizing"===e._resizeState.state){if(t.stopImmediatePropagation(),t.stopPropagation(),"left"===e._resizeState.side){let t=Math.round(s[d]-l[d]),e=a[h];if(l[d]+t>=e&&l[d]+t<=e+a[c]){let e=parseInt(m),r=Math.max(2,(o?i.offsetHeight:i.offsetWidth)-t);i.style[c]=r+"px",i.style[d]=e+t+"px"}}else if("right"===e._resizeState.side){let t=o?i.offsetHeight:i.offsetWidth,e=Math.round(s[d]-l[d]-t),r=a[h];if(l[d]+t+e>=r&&l[d]+e+t<=r+a[c]){let r=Math.max(2,t+e);i.style[c]=r+"px"}}else if("move"===e._resizeState.side){let t=o?i.offsetHeight:i.offsetWidth,r=parseInt(m),n=Math.round(s[d]-e._resizeState.startPos);l[d]+n>=a[h]&&l[d]+n+t<=a[h]+a[c]&&(e._resizeState.startPos=s[d],i.style[d]=r+n+"px")}const u=parseInt(m)-n.rect[h],p=u+(o?i.offsetHeight:i.offsetWidth);e._setSliderPositions(r,u,p)}else e._testAndSetReadyResize(t)},Smart.Chart.prototype._testAndSetReadyResize=function(t){const e=this,r=e._rangeSelectorEventData,n=r.renderTo,o=r.groupIndex,a=e._sliders[o],i=r.swapXY,s=a.getRect(),l=a.element,d={left:t.clientX,top:t.clientY},m=l.getBoundingClientRect(),c=i?"left":"top",h=i?"top":"left",u=i?"width":"height",p=e._isTouchDevice?30:5;d[c]>=m[c]&&d[c]<=m[c]+s[u]?Math.abs(d[h]-m[h])<=p?(n.style.cursor=i?"row-resize":"col-resize",e._resizeState={state:"ready",side:"left"}):Math.abs(d[h]-m[h]-(i?l.offsetHeight:l.offsetWidth))<=p?(n.style.cursor=i?"row-resize":"col-resize",e._resizeState={state:"ready",side:"right"}):d[h]+p>m[h]&&d[h]-p<m[h]+(i?l.offsetHeight:l.offsetWidth)?(n.style.cursor="pointer",e._resizeState={state:"ready",side:"move",startPos:d[h]}):(n.style.cursor="default",e._resizeState={}):(n.style.cursor="default",e._resizeState={})},Smart.Chart.prototype._selectorGetSize=function(t){return t.rangeSelector.renderTo?0:t.rangeSelector.size||this._paddedRect.height/3})},168:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleApi=!0,Smart.Chart.prototype.getItemsCount=function(t,e){const r=this.seriesGroups[t];if(!this._isSerieVisible(t,e))return 0;const n=this._renderData;return!r||!n||n.length<=t?0:r.series[e]?n[t].offsets[e].length:0},Smart.Chart.prototype.getXAxisRect=function(t){const e=this._renderData;if(e&&!(e.length<=t)&&e[t].xAxis)return e[t].xAxis.rect},Smart.Chart.prototype.getXAxisLabels=function(t){const e=[];let r=this._renderData;if(!r||r.length<=t)return e;if(r=r[t].xAxis,!r)return e;const n=this.seriesGroups[t];if(n.polar||n.spider){for(let t=0;t<r.polarLabels.length;t++){const n=r.polarLabels[t];e.push({offset:{x:n.x,y:n.y},value:n.value})}return e}const o=this._getXAxis(t),a=this.getXAxisRect(t),i="top"===o.position||"right"===o.position,s="horizontal"===n.orientation;for(let t=0;t<r.data.length;t++)s?e.push({offset:{x:a.x+(i?0:a.width),y:a.y+r.data.data[t]},value:r.data.xvalues[t]}):e.push({offset:{x:a.x+r.data.data[t],y:a.y+(i?a.height:0)},value:r.data.xvalues[t]});return e},Smart.Chart.prototype.getValueAxisRect=function(t){const e=this._renderData;if(e&&!(e.length<=t)&&e[t].valueAxis)return e[t].valueAxis.rect},Smart.Chart.prototype.getValueAxisLabels=function(t){const e=[];let r=this._renderData;if(!r||r.length<=t)return e;if(r=r[t].valueAxis,!r)return e;const n=this._getValueAxis(t),o="top"===n.position||"right"===n.position,a=this.seriesGroups[t],i="horizontal"===a.orientation;if(a.polar||a.spider){for(let t=0;t<r.polarLabels.length;t++){const n=r.polarLabels[t];e.push({offset:{x:n.x,y:n.y},value:n.value})}return e}for(let t=0;t<r.items.length;t++)i?e.push({offset:{x:r.itemOffsets[r.items[t]].x+r.itemWidth/2,y:r.rect.y+(o?r.rect.height:0)},value:r.items[t]}):e.push({offset:{x:r.rect.x+r.rect.width,y:r.itemOffsets[r.items[t]].y+r.itemWidth/2},value:r.items[t]});return e},Smart.Chart.prototype.getPlotAreaRect=function(){return this._plotRect},Smart.Chart.prototype.getRect=function(){return this._rect},Smart.Chart.prototype.showToolTip=function(t,e,r,n,o){const a=this.getItemCoord(t,e,r);isNaN(a.x)||isNaN(a.y)||this._startTooltipTimer(t,e,r,a.x,a.y,n,o)},Smart.Chart.prototype.hideToolTip=function(t){isNaN(t)&&(t=0);const e=this;e._cancelTooltipTimer(),setTimeout((function(){e._hideToolTip(0)}),t)})},169:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleWaterfall=!0,Smart.Chart.prototype._isSummary=function(t,e){const r=this.seriesGroups[t];for(let n=0;n<r.series.length;n++)if(void 0!==r.series[n].summary&&void 0!==this._getDataValue(e,r.series[n].summary,t))return!0;return!1},Smart.Chart.prototype._applyWaterfall=function(t,e,r,n,o,a,i,s,l){const d=this.seriesGroups[r];if(0===t.length)return t;let m=n;const c={},h=[];let u;const p=[];for(let t=0;t<d.series.length;t++)p.push(this._isSerieVisible(r,t));const f={};for(let d=0;d<e;d++){let e=n,g=0;const b=this._isSummary(r,d);for(let r=0;r<t.length;r++){if(!p[r])continue;let v=0;if(b){v=e===n?o:0,t[r][d].value=c[r],t[r][d].summary=!0,u=t[r][d].value<v,s&&(u=!u);let m=0;m=isNaN(a)?this._getDataPointOffsetDiff(t[r][d].value,v,v,NaN,i,n,s):this._getDataPointOffsetDiff(t[r][d].value+g,0===g?o:g,v||o,a,i,n,s),t[r][d].to=e+(u?m:-m),t[r][d].from=e,l&&(g+=t[r][d].value,e=t[r][d].to);continue}const y=l?-1:r;if(isNaN(t[r][d].value))continue;void 0===f[y]&&(v=o,f[y]=!0),u=t[r][d].value<v,s&&(u=!u);let w=NaN;w=l?m:0===d?n:t[r][h[r]].to;let x=0;x=isNaN(a)?this._getDataPointOffsetDiff(t[r][d].value,v,v,NaN,i,n,s):this._getDataPointOffsetDiff(t[r][d].value+(isNaN(c[y])?0:c[y]),isNaN(c[y])?o:c[y],v||o,a,i,w,s),t[r][d].to=m=w+(u?x:-x),t[r][d].from=w,isNaN(c[y])?c[y]=t[r][d].value:c[y]+=t[r][d].value,-1===y&&(isNaN(c[r])?c[r]=t[r][d].value:c[r]+=t[r][d].value),l||(h[r]=d)}}return t})},17:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* .smart-tooltip */\r\nsmart-tooltip {\r\n position: absolute;\r\n text-align: center;\r\n z-index: var(--smart-editor-drop-down-z-index);\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n visibility: hidden;\r\n pointer-events: none; }\r\n smart-tooltip.smart-element {\r\n background: transparent;\r\n overflow: visible; }\r\n smart-tooltip .smart-tooltip-content {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n padding: var(--smart-tooltip-padding);\r\n background-color: var(--smart-secondary);\r\n color: var(--smart-secondary-color);\r\n border: var(--smart-border-width) solid var(--smart-secondary);\r\n width: 100%;\r\n height: 100%;\r\n opacity: 0.9;\r\n box-shadow: var(--smart-elevation-6);\r\n font-family: var(--smart-font-family);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n smart-tooltip.auto {\r\n height: auto; }\r\n smart-tooltip.auto .smart-container {\r\n height: auto; }\r\n smart-tooltip.auto .smart-tooltip-content {\r\n height: auto; }\r\n smart-tooltip[visible] {\r\n visibility: visible;\r\n pointer-events: auto; }\r\n smart-tooltip[arrow] {\r\n padding-bottom: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow] .smart-tooltip-content:after {\r\n content: "";\r\n width: 0;\r\n height: 0;\r\n border-left: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n position: absolute;\r\n bottom: 0;\r\n left: calc(100% / 2 - var(--smart-tooltip-arrow-width));\r\n transform: translateX(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="bottom"] {\r\n padding-bottom: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="bottom"] .smart-tooltip-content:after {\r\n content: "";\r\n width: 0;\r\n height: 0;\r\n border-left: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n position: absolute;\r\n bottom: 0;\r\n left: calc(100% / 2 - var(--smart-tooltip-arrow-width));\r\n transform: translateX(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="top"] {\r\n padding-bottom: initial;\r\n padding-top: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="top"] .smart-tooltip-content:after {\r\n border-left: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-bottom: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n border-top: initial;\r\n top: 0;\r\n bottom: calc(100% + var(--smart-tooltip-arrow-width));\r\n transform: translateX(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="left"] {\r\n padding-bottom: initial;\r\n padding-left: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="left"] .smart-tooltip-content:after {\r\n border-bottom: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n border-left: initial;\r\n left: 0;\r\n top: calc(50% - var(--smart-tooltip-arrow-width));\r\n transform: translateY(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="right"] {\r\n padding-bottom: initial;\r\n padding-right: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="right"] .smart-tooltip-content:after {\r\n border-bottom: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-left: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n border-right: initial;\r\n left: calc(100% - var(--smart-tooltip-arrow-width));\r\n top: calc(50% - var(--smart-tooltip-arrow-width));\r\n transform: translateY(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip:not([animation=\'none\']) {\r\n opacity: 0;\r\n transition: opacity 0.5s ease-in-out; }\r\n smart-tooltip:not([animation=\'none\'])[visible] {\r\n opacity: 1; }\r\n\r\n/* .smart-tooltip */\r\nsmart-tooltip[right-to-left] .smart-tooltip-content {\r\n direction: rtl; }\r\n',""]),t.exports=e},170:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleAnnotations=!0,Smart.Chart.prototype._renderAnnotation=function(t,e){const r=this.seriesGroups[t],n=this.renderer;if(isNaN(t))return;let o=this._get([this.getXAxisDataPointOffset(e.xValue,t),e.x]),a=this._get([this.getValueAxisDataPointOffset(e.yValue,t),e.y]),i=this._get([this.getXAxisDataPointOffset(e.xValue2,t),e.x2]),s=this._get([this.getValueAxisDataPointOffset(e.yValue2,t),e.y2]);if(r.polar||r.spider){const r=this.getPolarDataPointOffset(e.xValue,e.yValue,t);!r||isNaN(r.x)||isNaN(r.y)?(o=e.x,a=e.y):(o=r.x,a=r.y)}if(isNaN(a)||isNaN(o))return!1;if("horizontal"===r.orientation){let t=o;o=a,a=t,t=i,i=s,s=t}e.offset&&(isNaN(e.offset.x)||(o+=e.offset.x,i+=e.offset.x),isNaN(e.offset.y)||(a+=e.offset.y,s+=e.offset.y));const l=this._get([e.width,i-o]),d=this._get([e.height,s-a]);let m,c;switch(e.type){case"rect":m=n.rect(o,a,l,d);break;case"circle":m=n.rect(o,a,e.radius);break;case"line":m=n.rect(o,a,i,s);break;case"path":m=n.path(e.path)}if(m&&n.attr(m,{fill:e.fillColor,stroke:e.lineColor,opacity:this._get([e.fillOpacity,e.opacity]),"stroke-opacity":this._get([e.lineOpacity,e.opacity]),"stroke-width":e.lineWidth,"stroke-dasharray":e.dashStyle||"none"}),e.text){const t=e.text;let r=0,i=0;t.offset&&(isNaN(t.offset.x)||(r+=t.offset.x),isNaN(t.offset.y)||(i+=t.offset.y)),c=n.text(t.value,o+r,a+i,NaN,NaN,t.angle,{},!0===t.clip,t.horizontalAlignment||"center",t.verticalAlignment||"center",t.rotationPoint||"centermiddle"),n.attr(c,{fill:t.fillColor,stroke:t.lineColor,class:"smart-chart-annotation-text "+(t.class||"")})}const h=["click","mouseenter","mouseleave"],u=this;for(let t=0;t<h.length;t++){const r=h[t];m&&this.renderer.addHandler(m,r,(function(){u._raiseAnnotationEvent(e,r)})),c&&this.renderer.addHandler(c,r,(function(){u._raiseAnnotationEvent(e,r)}))}},Smart.Chart.prototype._raiseAnnotationEvent=function(t,e){this.$.fireEvent("annotation"+e.charAt(0).toUpperCase()+e.slice(1),{annotation:t})})},2:function(t,e,r){(e=r(0)(!1)).push([t.i,"/* CSS variables */\r\n\r\n:root {\r\n --smart-primary-rgb: 0, 92, 153;\r\n /* The r, g, and b components of the theme primary color */\r\n --smart-primary: rgb(var(--smart-primary-rgb));\r\n /* The theme primary color */\r\n --smart-primary-color: #ffffff;\r\n /* Text color on top of a primary background */\r\n\r\n --smart-secondary-rgb: 45, 45, 48;\r\n /* The r, g, and b components of the theme secondary color */\r\n --smart-secondary: rgb(var(--smart-secondary-rgb));\r\n /* The theme secondary color */\r\n --smart-secondary-color: #ffffff;\r\n /* Text color on top of a secondary background */\r\n\r\n --smart-error-rgb: 176, 0, 32;\r\n /* The theme error color */\r\n --smart-error: rgb(var(--smart-error-rgb));\r\n /* The theme error color */\r\n --smart-error-color: #ffffff;\r\n /* Text color on top of a error background */\r\n\r\n --smart-success-rgb: 139, 195, 74;\r\n /* The r, g, and b components of the theme success color */\r\n --smart-success: rgb(var(--smart-success-rgb));\r\n /* The theme success color */\r\n --smart-success-color: #ffffff;\r\n /* Text color on top of a success background */\r\n\r\n --smart-info-rgb: 92, 192, 222;\r\n /* The r, g, and b components of the theme info color */\r\n --smart-info: rgb(var(--smart-info-rgb));\r\n /* The theme info color */\r\n --smart-info-color: #fff;\r\n /* Text color on top of a info background */\r\n\r\n --smart-warning-rgb: 240, 173, 78;\r\n /* The r, g, and b components of the theme warning color */\r\n --smart-warning: rgb(var(--smart-warning-rgb));\r\n /* The theme warning color */\r\n --smart-warning-color: #fff;\r\n /* Text color on top of a warning background */\r\n\r\n --smart-light-rgb: 255, 255, 255;\r\n /* The r, g, and b components of the theme light color */\r\n --smart-light: rgb(var(--smart-light-rgb));\r\n /* The theme light color */\r\n --smart-light-color: #222222;\r\n /* Text color on top of a light background */\r\n\r\n --smart-dark-rgb: 34, 34, 34;\r\n /* The r, g, and b components of the theme dark color */\r\n --smart-dark: rgb(var(--smart-dark-rgb));\r\n /* The theme dark color */\r\n --smart-dark-color: #ffffff;\r\n /* Text color on top of a dark background */\r\n\r\n --smart-background: #fefefe;\r\n /* The theme background color. The background color appears behind scrollable content.*/\r\n --smart-background-color: #5A5A5A;\r\n /* Text color on top of a background background */\r\n\r\n --smart-surface: #F5F5F5;\r\n /* The theme surface color. Surface colors affect surfaces of components, such as cards, sheets, and menus. */\r\n --smart-surface-color: #323232;\r\n /* Text color on top of a surface surface */\r\n\r\n --smart-disabled: #CCCCCC;\r\n /* The theme primary color in disabled state. */\r\n --smart-disabled-color: #555;\r\n /* Text color on top of a theme background in disabled state */\r\n\r\n --smart-ui-state-hover: #ebebeb;\r\n /* Hover state background. */\r\n --smart-ui-state-color-hover: #333;\r\n /* Text color, when UI Element's state is 'hover'. */\r\n --smart-ui-state-border-hover: var(--smart-ui-state-hover);\r\n /* Border color, when UI Element's state is 'hover'. */\r\n --smart-ui-state-active: var(--smart-primary);\r\n /* Active state background. */\r\n --smart-ui-state-color-active: var(--smart-primary-color);\r\n /* Text color, when UI Element's state is 'active'. */\r\n --smart-ui-state-border-active: var(--smart-primary);\r\n /* Border color, when UI Element's state is 'active'. */\r\n --smart-ui-state-focus: #e2e0e0;\r\n /* Focus state background. */\r\n --smart-ui-state-color-focus: #333;\r\n /* Text color, when UI Element's state is 'focus'. */\r\n --smart-ui-state-border-focus: var(--smart-ui-state-focus);\r\n /* Border color, when UI Element's state is 'focus'. */\r\n --smart-ui-state-selected: rgba(var(--smart-primary-rgb), .1);\r\n /* Selected state background. */\r\n --smart-ui-state-color-selected: var(--smart-primary);\r\n /* Text color, when UI Element's state is 'selected'. */\r\n --smart-ui-state-border-selected: rgba(var(--smart-primary-rgb), .1);\r\n /* Border color, when UI Element's state is 'selected'. */\r\n --smart-item-border-width: 1px;\r\n /* Theme border-width */\r\n --smart-item-border-radius: var(--smart-border-radius);\r\n /* Border radius of items. */\r\n --smart-item-border-top-left-radius: var(--smart-border-radius);\r\n /* Border top-left radius of items. */\r\n --smart-item-border-top-right-radius: var(--smart-border-radius);\r\n /* Border top-right radius of items. */\r\n --smart-item-border-bottom-left-radius: var(--smart-border-radius);\r\n /* Border bottom-left radius of items. */\r\n --smart-item-border-bottom-right-radius: var(--smart-border-radius);\r\n /* Border bottom-right radius of items. */\r\n --smart-font-size: 14px;\r\n /* Theme font-size */\r\n --smart-font-weight: inherit;\r\n /* Theme font-weight */\r\n --smart-font-style: inherit;\r\n /* Theme font-style */\r\n --smart-font-family: Roboto, \"Helvetica Neue\", sans-serif;\r\n /* Theme font-family */\r\n --smart-font-family-icon: smart-icons;\r\n /* Theme icons font-family. */\r\n --smart-font-family-icon-src: local('../font/smart-icons'), url('../font/smart-icons.woff2') format('woff2'), url('../font/smart-icons.woff') format('woff'), url('../font/smart-icons.ttf') format('truetype'), url('../font/smart-icons.eot') format('embedded-opentype');\r\n /* The source of the theme icons font-family */\r\n --smart-border-width: 1px;\r\n /* Theme border-width */\r\n --smart-border-radius: 4px;\r\n /* Theme border-radius */\r\n --smart-border-top-left-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border-top-right-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border-bottom-left-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border-bottom-right-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border: #E0E0E0;\r\n /* The theme background border color */\r\n --smart-border-rgb: 244, 224, 224;\r\n /* The theme background border color */\r\n --smart-outline: #b2b2b2;\r\n /* The theme active element outline color */\r\n --smart-editor-selection: var(--smart-primary);\r\n /* Background color of the selected text. */\r\n --smart-editor-selection-color: var(--smart-primary-color);\r\n /* Color of the selected text. */\r\n --smart-alternation-index0-color: var(--smart-surface-color);\r\n /* Alternation color for index0 */\r\n --smart-alternation-index0-border: var(--smart-surface);\r\n /* Alternation border color for index0 */\r\n --smart-alternation-index0-background: var(--smart-surface);\r\n /* Alternation background color for index0 */\r\n --smart-alternation-index1-color: #111;\r\n /*Alternation color for index1 */\r\n --smart-alternation-index1-border: #9BBB59;\r\n /* Alternation border color for index1 */\r\n --smart-alternation-index1-background: #9BBB59;\r\n /* Alternation background color for index1 */\r\n --smart-alternation-index2-color: #fff;\r\n /*Alternation color for index2 */\r\n --smart-alternation-index2-border: #FC3752;\r\n /* Alternation border color for index2 */\r\n --smart-alternation-index2-background: #FC3752;\r\n /* Alternation background color for index2 */\r\n --smart-tick-color: var(--smart-border);\r\n /* Default tick color for smartTank, smartSlider and smartGauge */\r\n --smart-tick-label-color: var(--smart-background-color);\r\n /* Default tick label color for smartTank, smartSlider and smartGauge */\r\n --smart-box-height: 450px;\r\n /* Default height for Dialog, Gauge, Accordion, Tabs, Tree, Array */\r\n --smart-box-width: 450px;\r\n /* Default width for Dialog, Gauge, Accordion, Tabs, Tree, Array */\r\n --smart-bar-height: 48px;\r\n /* Default height for headers and footers */\r\n --smart-bar-width: 400px;\r\n /* Default width for headers and footers */\r\n --smart-editor-height: 30px;\r\n /* Default height for editors */\r\n --smart-editor-width: 250px;\r\n /* Default width for editors */\r\n --smart-editor-drop-down-width: 300px;\r\n /* Default width for editors drop-down */\r\n --smart-editor-drop-down-height: 400px;\r\n /* Default height for editors drop-down */\r\n --smart-editor-drop-down-padding-size: 3px;\r\n /* smartDropDownList, smartComboBox drop down default height */\r\n --smart-editor-drop-down-max-width: 800px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup max width */\r\n --smart-editor-drop-down-min-width: 100px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup min width */\r\n --smart-editor-drop-down-max-height: 400px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup max height */\r\n --smart-editor-drop-down-min-height: 50px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup min height */\r\n --smart-editor-drop-down-resize-bar-height: 15px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup resize bar default height */\r\n --smart-editor-drop-down-vertical-offset: 5px;\r\n /* Vertical offset of editor drop downs */\r\n --smart-editor-drop-down-z-index: 9999;\r\n /* z-index of editor drop downs */\r\n --smart-editor-label-padding: 4px;\r\n /* Default padding for inputs */\r\n --smart-editor-addon-width: 27px;\r\n /* Default width for spin buttons, dropdown buttons. */\r\n --smart-column-icon-size: 30px;\r\n /* Default size of column icons */\r\n --smart-icon-table: '\\e800';\r\n /* Code of table icon */\r\n --smart-icon-star: '\\e801';\r\n /* Code of star icon */\r\n --smart-icon-star-empty: '\\e802';\r\n /* Code of empty star icon */\r\n --smart-icon-plus: '\\e803';\r\n /* Code of plus icon */\r\n --smart-icon-minus: '\\e804';\r\n /* Code of minus icon */\r\n --smart-icon-attention-circled: '\\e805';\r\n /* Code of circled attention icon */\r\n --smart-icon-align-left: '\\e806';\r\n /* Code of align left icon */\r\n --smart-icon-align-right: '\\e807';\r\n /* Code of align right icon */\r\n --smart-icon-align-center: '\\e808';\r\n /* Code of align center icon */\r\n --smart-icon-align-justify: '\\e813';\r\n /* Code of align justify icon */\r\n --smart-icon-reload: '\\e809';\r\n /* Code of reload icon */\r\n --smart-icon-cancel: '\\e80d';\r\n /* Code of cancel icon */\r\n --smart-icon-close: '\\e80d';\r\n /* Code of close icon */\r\n --smart-icon-cancel-circled: '\\e80e';\r\n /* Code of circled cancel icon */\r\n --smart-icon-plus-circled: '\\e810';\r\n /* Code of circled plus icon */\r\n --smart-icon-power: '\\e811';\r\n /* Code of power icon */\r\n --smart-icon-minus-circled: '\\e814';\r\n /* Code of circled minus icon */\r\n --smart-icon-arrow-up-alt: '\\e817';\r\n /* Code of alternative up arrow icon */\r\n --smart-icon-radio: '\\e818';\r\n /* Code of radio icon */\r\n --smart-icon-refresh: '\\e819';\r\n /* Code of refresh icon */\r\n --smart-icon-chart: '\\e81a';\r\n /* Code of chart icon */\r\n --smart-icon-check-squared: '\\e81b';\r\n /* Code of squared check icon */\r\n --smart-icon-resize-full: '\\e81c';\r\n /* Code of full resize icon */\r\n --smart-icon-resize-small: '\\e81d';\r\n /* Code of small resize icon */\r\n --smart-icon-resize-vertical: '\\e80c';\r\n /* Code of vertical resize icon */\r\n --smart-icon-resize-horizontal: '\\e80f';\r\n /* Code of horizontal resize icon */\r\n --smart-icon-lock: '\\e821';\r\n /* Code of lock icon */\r\n --smart-icon-sort: '\\e823';\r\n /* Code of sort icon */\r\n --smart-icon-delete: '\\e826';\r\n /* Code of delete icon */\r\n --smart-icon-search: '\\e828';\r\n /* Code of search icon */\r\n --smart-icon-calendar: '\\e829';\r\n /* Code of calendar icon */\r\n --smart-icon-edit: '\\e82a';\r\n /* Code of edit icon */\r\n --smart-icon-popup: '\\e82c';\r\n /* Code of popup icon */\r\n --smart-icon-lock-open: '\\e82e';\r\n /* Code of open lock icon */\r\n --smart-icon-add-filter: '\\e82f';\r\n /* Code of add filter icon */\r\n --smart-icon-block: '\\e832';\r\n /* Code of block icon */\r\n --smart-icon-settings: '\\e833';\r\n /* Code of settings icon */\r\n --smart-icon-duplicate: '\\e834';\r\n /* Code of duplicate icon */\r\n --smart-icon-copy-record: '\\e835';\r\n /* Code of copy record icon */\r\n --smart-icon-download-alt: '\\e836';\r\n /* Code of alternative download icon */\r\n --smart-icon-clock: '\\e837';\r\n /* Code of clock icon */\r\n --smart-icon-attention: '\\e838';\r\n /* Code of attention icon */\r\n --smart-icon-help-circled: '\\e839';\r\n /* Code of circled help icon */\r\n --smart-icon-mail: '\\e83c';\r\n /* Code of mail icon */\r\n --smart-icon-up: '\\e83f';\r\n /* Code of up icon */\r\n --smart-icon-first-page: '\\e900';\r\n /* Code of first page icon */\r\n --smart-icon-arrow-down: '\\e901';\r\n /* Code of down arrow icon */\r\n --smart-icon-arrow-left: '\\e902';\r\n /* Code of left arrow icon */\r\n --smart-icon-arrow-right: '\\e903';\r\n /* Code of right arrow icon */\r\n --smart-icon-arrow-up: '\\e904';\r\n /* Code of up arrow icon */\r\n --smart-icon-arrow-down-filled: '\\e812';\r\n /* Code of filled down arrow icon */\r\n --smart-icon-arrow-left-filled: '\\e816';\r\n /* Code of filled left arrow icon */\r\n --smart-icon-arrow-right-filled: '\\e81e';\r\n /* Code of filled right arrow icon */\r\n --smart-icon-arrow-up-filled: '\\e815';\r\n /* Code of filled up arrow icon */\r\n --smart-icon-last-page: '\\e905';\r\n /* Code of last page icon */\r\n --smart-icon-more-horiz: '\\e906';\r\n /* Code of more icon */\r\n --smart-icon-skip-next: '\\e907';\r\n /* Code of skip next icon */\r\n --smart-icon-check: '\\e908';\r\n /* Code of check icon */\r\n --smart-icon-mode-edit: '\\e909';\r\n /* Code of edit mode icon */\r\n --smart-icon-replay: '\\e90c';\r\n /* Code of replay icon */\r\n --smart-icon-visibility: '\\e90d';\r\n /* Code of visibility icon */\r\n --smart-icon-visibility-off: '\\e90e';\r\n /* Code of visibility off icon */\r\n --smart-icon-link: '\\e831';\r\n /* Code of link icon */\r\n --smart-icon-unlink: '\\f127';\r\n /* Code of link icon */\r\n --smart-icon-link-ext: '\\f08e';\r\n /* Code of link icon */\r\n --smart-icon-check-empty: '\\f096';\r\n /* Code of empty check icon */\r\n --smart-icon-filter: '\\f0b0';\r\n /* Code of filter icon */\r\n --smart-icon-resize-full-alt: '\\f0b2';\r\n /* Code of full resize alternative icon */\r\n --smart-icon-menu: '\\f0c9';\r\n /* Code of menu icon */\r\n --smart-icon-sort-1: '\\f0dc';\r\n /* Code of sort alternative icon */\r\n --smart-icon-paste: '\\f0ea';\r\n /* Code of paste icon */\r\n --smart-icon-circle-empty: '\\f10c';\r\n /* Code of empty circle icon */\r\n --smart-icon-circle: '\\f111';\r\n /* Code of circle icon */\r\n --smart-icon-ellipsis: '\\f141';\r\n /* Code of ellipsis icon */\r\n --smart-icon-minus-squared: '\\f146';\r\n /* Code of squared minus icon */\r\n --smart-icon-ok-squared: '\\f14a';\r\n /* Code of squared ok icon */\r\n --smart-icon-sort-name-up: '\\f15d';\r\n /* Code of sort name up icon */\r\n --smart-icon-sort-name-down: '\\f15e';\r\n /* Code of sort name down icon */\r\n --smart-icon-sort-alt-up: '\\f160';\r\n /* Code of sort up alternative icon */\r\n --smart-icon-sort-alt-down: '\\f161';\r\n /* Code of sort down alternative icon */\r\n --smart-icon-sort-number-up: '\\f162';\r\n /* Code of sort number up icon */\r\n --smart-icon-sort-number-down: '\\f163';\r\n /* Code of sort number down icon */\r\n --smart-icon-dot-circled: '\\f192';\r\n /* Code of circled dot icon */\r\n --smart-icon-toggle-off: '\\f204';\r\n /* Code of toggle off icon */\r\n --smart-icon-toggle-on: '\\f205';\r\n /* Code of toggle on icon */\r\n --smart-icon-group: '\\f247';\r\n /* Code of group icon */\r\n --smart-icon-ungroup: '\\f248';\r\n /* Code of ungroup icon */\r\n --smart-icon-window-maximize: '\\f2d0';\r\n /* Code of maximize window icon */\r\n --smart-icon-window-minimize: '\\f2d1';\r\n /* Code of minimize window icon */\r\n --smart-icon-window-restore: '\\f2d2';\r\n /* Code of restore window icon */\r\n --smart-icon-window-pin-alt: '\\e82d';\r\n /* Code of pin window alternative icon */\r\n --smart-icon-window-pin: '\\e80a';\r\n /* Code of window pin icon */\r\n --smart-icon-docs: '\\f0c5';\r\n /* Code of docs icon */\r\n --smart-icon-pdf: '\\f1c1';\r\n /* Code of pdf icon */\r\n --smart-icon-excel: '\\f1C3';\r\n /* Code of excel icon */\r\n --smart-icon-word: '\\f1C2';\r\n /* Code of word icon */\r\n --smart-icon-archive: '\\f1C6';\r\n /* Code of zip icon */\r\n --smart-icon-file: '\\e845';\r\n /* Code of file icon */\r\n --smart-icon-powerpoint: '\\f1c4';\r\n /* Code of powerpoint icon */\r\n --smart-icon-text: '\\f0f6';\r\n /* Code of text icon */\r\n --smart-icon-math: '\\f01a';\r\n /* Code of math icon */\r\n --smart-icon-spin: '\\e80b';\r\n /* Code of spin icon */\r\n --smart-icon-user: '\\e81f';\r\n /* Code of user icon */\r\n --smart-icon-font: '\\f031';\r\n /* Code of font icon */\r\n --smart-icon-fontsize: '\\f088';\r\n /* Code of fontsize icon */\r\n --smart-icon-contains: '\\f063';\r\n /* Code of contains icon */\r\n --smart-icon-starts_with: '\\f064';\r\n /* Code of starts with icon */\r\n --smart-icon-ends_with: '\\f065';\r\n /* Code of ends with icon */\r\n --smart-icon-does_not_contain: '\\f066';\r\n /* Code of does not contain icon */\r\n --smart-icon-equals: '\\f52c';\r\n /* Code of equals icon */\r\n --smart-icon-greater-than: '\\f531';\r\n /* Code of greater than icon */\r\n --smart-icon-greater-than-equal: '\\f532';\r\n /* Code of greater than or equal icon */\r\n --smart-icon-less-than: '\\f536';\r\n /* Code of less than icon */\r\n --smart-icon-less-than-equal: '\\f537';\r\n /* Code of less than or equal icon */\r\n --smart-icon-not-equal: '\\f53e';\r\n /* Code of not equal icon */\r\n --smart-icon-percentage: '\\f541';\r\n /* Code of percentage icon */\r\n --smart-icon-grip-vertical: '\\f58e';\r\n /* Code of grip icon */\r\n --smart-icon-between: '\\f06a';\r\n /* Code of between icon */\r\n --smart-icon-bold: '\\e820';\r\n /* Code of bold icon */\r\n --smart-icon-italic: '\\e822';\r\n /* Code of italic icon */\r\n --smart-icon-underline: '\\f0cd';\r\n /* Code of underline icon */\r\n --smart-icon-strike-through: '\\f0cc';\r\n /* Code of strike-through icon */\r\n --smart-icon-list-ordered: '\\f0cb';\r\n /* Code of list numbered icon */\r\n --smart-icon-list-unordered: '\\f0ca';\r\n /* Code of list bullet icon */\r\n --smart-icon-subscript: '\\f12c';\r\n /* Code of subscript icon */\r\n --smart-icon-superscript: '\\f12b';\r\n /* Code of superscript icon */\r\n --smart-icon-color-background: '\\e830';\r\n /* Code of bucket icon */\r\n --smart-icon-indent-right: '\\e824';\r\n /* Code of indent icon */\r\n --smart-icon-indent-left: '\\e825';\r\n /* Code of outdent icon */\r\n --smart-icon-image: '\\e827';\r\n /* Code of image icon */\r\n --smart-icon-case-lower: 'aa';\r\n /* Code of lower case icon */\r\n --smart-icon-case-upper: 'AA';\r\n /* Code of upper case icon */\r\n --smart-icon-print: '\\e82b';\r\n /* Code of print icon */\r\n --smart-icon-format-clear: 'T';\r\n /* Code of clear format icon */\r\n --smart-icon-source-code: '\\f121';\r\n /* Code of source code icon */\r\n --smart-icon-split-mode: '\\e83b';\r\n /* Code of split mode icon */\r\n --smart-icon-cut: '\\e83a';\r\n /* Code of Cut icon */\r\n --smart-icon-video: '\\f16a';\r\n /* Code of YouTube video icon */\r\n --smart-icon-video-camera: '\\e840';\r\n /* Code of Bell icon */\r\n --smart-icon-bell: '\\f0f3';\r\n /* Code of video icon */\r\n --smart-icon-header: '\\f1dc';\r\n /* Code of Table Header */\r\n --smart-icon-row: '\\f0db';\r\n /* Code of Table Row icon */\r\n --smart-icon-row-before: '\\f2d0';\r\n /* Code of Table Row icon */\r\n --smart-icon-row-after: '\\f2d0';\r\n /* Code of Table Row icon */\r\n --smart-icon-row-delete: var(--smart-icon-cancel-circled);\r\n /* Code of Table Row icon */\r\n --smart-icon-column: '\\f0db';\r\n /* Code of Table Column icon */\r\n --smart-icon-column-left: '\\f2d0';\r\n /* Code of Table Column left insert icon */\r\n --smart-icon-column-right: '\\f2d0';\r\n /* Code of Table Column right insert icon */\r\n --smart-icon-column-delete: var(--smart-icon-cancel-circled);\r\n /* Code of Table Column delete icon */\r\n --smart-icon-vertical-align: '\\f06a \\e80c';\r\n /* Code of Table Vertical Align icon */\r\n --smart-icon-styles: '\\f1fc';\r\n /* Code of Table Styles icon */\r\n --smart-icon-comment: '\\F0E5';\r\n /* Code of Comment icon */\r\n --smart-icon-card: '\\E83E';\r\n /* Code of Card icon */\r\n --smart-icon-tasks: '\\F0AE';\r\n /* Code of Tasks icon */\r\n --smart-icon-phone: '\\E83D';\r\n /* Code of Phone icon */\r\n --smart-icon-kanban: '\\F181';\r\n /* Code of Kanban icon */\r\n --smart-icon-table-alt: '\\F0CE';\r\n /* Code of Table icon */\r\n --smart-icon-zoom-in: '\\E841';\r\n /* Code of Zoom In icon */\r\n --smart-icon-zoom-out: '\\E842';\r\n /* Code of Zoom Out icon */\r\n --smart-icon-move: '\\F047';\r\n /* Code of Move icon */\r\n --smart-icon-home: '\\E843';\r\n /* Code of Home icon */\r\n /* Accordion */\r\n --smart-accordion-animation-duration: 225ms;\r\n /* smartAccordion animation duration */\r\n --smart-accordion-default-width: var(--smart-box-width);\r\n /* smartAccordion default width */\r\n --smart-accordion-default-height: var(--smart-box-height);\r\n /* smartAccordion default height */\r\n --smart-accordion-expanded-content-height: 0px;\r\n /* Determines expanded content's height */\r\n --smart-accordion-expanded-content-local-height: 0px;\r\n /* The height of an expanded item content part. Calculated dynamically for each item. Used in all modes except 'singleFitHeight'. */\r\n --smart-accordion-item-header-height: var(--smart-bar-height);\r\n /* Element's header height. Used in several calcilations related to items height. */\r\n --smart-accordion-item-expanded-offset: 20px;\r\n /* An offset below each expanded accordion item. */\r\n /* Array */\r\n --smart-array-default-width: var(--smart-box-width);\r\n /* smartArray default width */\r\n --smart-array-default-height: var(--smart-box-height);\r\n /* smartArray default height */\r\n --smart-array-element-gap: 3px;\r\n /* smartArray element gap size */\r\n /* Breadcrumb */\r\n --smart-breadcrumb-default-width: 400px;\r\n /* smartBreadcrumb default width */\r\n --smart-breadcrumb-default-height: auto;\r\n /* smartBreadcrumb default height */\r\n --smart-breadcrumb-padding: 10px;\r\n /* Padding of smart-breadcrumb and vertical offset between smartBreadcrumb items */\r\n --smart-breadcrumb-drop-down-width: var(--smart-editor-drop-down-width);\r\n /* Width of smartBreadcrumb dropdown in minimized mode */\r\n --smart-breadcrumb-item-height: 40px;\r\n /* Height of smartBreadcrumb items */\r\n --smart-breadcrumb-horizontal-offset: 10px;\r\n /* Horizontal offset between smartBreadcrumb items */\r\n /* Button - Default */\r\n --smart-button-text-transform: uppercase;\r\n /* Controls the capitalization of button's text. Could be set as uppercase/lowercase/capitalize. */\r\n --smart-button-padding: 8px 16px;\r\n /* Sets button's paddings. */\r\n --smart-button-large-padding: 10px 16px;\r\n /* Sets large button's paddings. */\r\n --smart-button-large-font-size: 18px;\r\n /* Sets large button's font size. */\r\n --smart-button-small-padding: 5px 10px;\r\n /* Sets small button's paddings. */\r\n --smart-button-small-font-size: 12px;\r\n /* Sets small button's font size. */\r\n --smart-button-very-small-padding: 3px 5px;\r\n /* Sets very small button's paddings. */\r\n --smart-button-very-small-font-size: 10px;\r\n /* Sets very small button's font size. */\r\n /* Button - Flat */\r\n --smart-button-flat-color: var(--smart-background-color);\r\n /* The color of the flat button. */\r\n /* Button - Outlined */\r\n --smart-button-outlined-color: var(--smart-background-color);\r\n /* The color of the outlined button. */\r\n --smart-button-outlined-border: var(--smart-border);\r\n /* The border of the outlined button. */\r\n /* Button Group */\r\n --smart-button-group-default-width: auto;\r\n --smart-button-group-default-height: auto;\r\n /* Calendar */\r\n --smart-calendar-header-height: calc(0.75 * var(--smart-bar-height));\r\n /* Default height for smartCalendar's header section */\r\n --smart-calendar-footer-height: calc(0.75 * var(--smart-bar-height));\r\n /* Default height for smartCalendar's footer section */\r\n --smart-calendar-title-height: calc(1.25 * var(--smart-bar-height));\r\n /* Default height for calendar's title. */\r\n --smart-calendar-cell-size: 30px;\r\n /* Default size of calendar's cell. */\r\n --smart-calendar-cell-spacing: 4px;\r\n /* Defines calendar's cell spacing. */\r\n --smart-calendar-default-width: calc(50px + var(--smart-calendar-cell-spacing) + 7 * (var(--smart-calendar-cell-spacing) + var(--smart-calendar-cell-size)));\r\n /* smartCalendar default width */\r\n --smart-calendar-default-height: calc(var(--smart-calendar-cell-spacing) + 7 * (var(--smart-calendar-cell-spacing) + var(--smart-calendar-cell-size)) + var(--smart-calendar-header-height));\r\n /* smartCalendar default height */\r\n --smart-calendar-title-text-transform: initial;\r\n /* Controls the capitalization of the title text. */\r\n --smart-calendar-week-title-text-transform: uppercase;\r\n /* Controls the capitalization of the week title. */\r\n --smart-calendar-header-text-transform: uppercase;\r\n /* Controls the capitalization of the header text. */\r\n --smart-calendar-footer-text-transform: uppercase;\r\n /* Controls the capitalization of the footer text. */\r\n --smart-calendar-cell-border-top-right-radius: 15px;\r\n /* Defines cell's top-right border radius. */\r\n --smart-calendar-cell-border-top-left-radius: 15px;\r\n /* Defines cell's top-left border radius. */\r\n --smart-calendar-cell-border-bottom-left-radius: 15px;\r\n /* Defines cell's bottom-left border radius. */\r\n --smart-calendar-cell-border-bottom-right-radius: 15px;\r\n /* Defines cell's bottom-right border radius. */\r\n --smart-calendar-title-padding: 10px;\r\n /* Defines title's padding */\r\n --smart-calendar-important-date-background: var(--smart-ui-state-hover);\r\n /* Defines title's padding */\r\n --smart-calendar-important-date-color: var(--smart-ui-state-color-hover);\r\n /* Defines title's padding */\r\n --smart-calendar-important-date-border-color: var(--smart-ui-state-border-hover);\r\n /* Defines title's padding */\r\n --smart-calendar-navigation-button-size: 30px;\r\n /* Sets the size for the navigation buttons */\r\n /* CardView */\r\n --smart-card-view-default-width: 1200px;\r\n /* Default width of CardView. */\r\n --smart-card-view-default-height: 800px;\r\n /* Default height of CardView. */\r\n --smart-card-view-header-height: 30px;\r\n /* Height of the CardView header */\r\n --smart-card-view-cover-height: var(--smart-carousel-default-height);\r\n /* Height of CardView cover (carousel). */\r\n --smart-card-view-vertical-offset: 15px;\r\n /* Vertical offset of CardView. */\r\n --smart-card-view-column-min-width: 250px;\r\n /* Min width of CardView visual columns. */\r\n --smart-card-view-gap: 10px;\r\n /* Gap between CardView cards. */\r\n --smart-card-view-add-new-button-size: 60px;\r\n /* Size of the 'Add new record' (+) button. */\r\n /* Carousel */\r\n --smart-carousel-default-width: 600px;\r\n /* default width of the element */\r\n --smart-carousel-default-height: 200px;\r\n /* default height of the element */\r\n --smart-carousel-3d-mode-slide-width: 400px;\r\n /* default width of a slide in 3d mode */\r\n --smart-carousel-3d-mode-slide-height: 400px;\r\n /* default height of a slide in 3d mode */\r\n --smart-carousel-multiple-mode-slide-width: 200px;\r\n /* default width of a slide in multiple mode*/\r\n /* Chart */\r\n --smart-chart-default-width: 850px;\r\n /* default width of the element */\r\n --smart-chart-default-height: 500px;\r\n /* default height of the element */\r\n /* Check Box */\r\n --smart-check-box-default-size: calc(1px + 1/2 * var(--smart-editor-height));\r\n /* Default size for the check box used in smartCheckBox and smartListItem. */\r\n /* ColorPanel*/\r\n --smart-color-panel-default-width: auto;\r\n /* smartColorPanel default width ; was 450px*/\r\n --smart-color-panel-default-height: auto;\r\n /* smartColorPanel default height ; was 370px */\r\n --smart-color-panel-palette-size: 300px;\r\n /* smartColorPanel palette size */\r\n --smart-color-panel-grid-mode-item-size: 20px;\r\n /* smartColorPanel item size */\r\n /*was 40px*/\r\n --smart-color-panel-grid-mode-column-count: 8;\r\n /* smartColorPanel column count */\r\n --smart-color-panel-grid-mode-columns-gap: 1px;\r\n /* smartColorPanel column gap size */\r\n --smart-color-panel-brightness: 0;\r\n /* smartColorPanel brightness */\r\n --smart-color-panel-default-mode-sections-gap: 8px;\r\n /* smartColorPanel gap size in default mode */\r\n --smart-color-panel-palette-width: var(--smart-color-panel-palette-size);\r\n /* smartColorPanel palette width */\r\n --smart-color-panel-palette-height: var(--smart-color-panel-palette-size);\r\n /* smartColorPanel palette height */\r\n --smart-color-panel-alpha-channel-color: white;\r\n /* Used as a default color for the Alpha Scale */\r\n /* ColorPicker*/\r\n --smart-color-picker-default-width: var(--smart-editor-width);\r\n /* smartColorPicker default width */\r\n --smart-color-picker-default-height: var(--smart-editor-height);\r\n /* smartColorPicker default height */\r\n --smart-color-picker-drop-down-width: auto;\r\n /* smartColorPicker default width */\r\n --smart-color-picker-drop-down-height: auto;\r\n /* smartColorPicker default height */\r\n /* ComboBox */\r\n --smart-combo-box-default-width: var(--smart-editor-width);\r\n /* smartComboBox default width */\r\n --smart-combo-box-default-height: var(--smart-editor-height);\r\n /* smartComboBox default height */\r\n --smart-combo-box-drop-down-width: auto;\r\n /* smartComboBox default width */\r\n --smart-combo-box-drop-down-height: auto;\r\n /* smartComboBox default height */\r\n /* Chip */\r\n --smart-chip-default-height: var(--smart-editor-height);\r\n /* Default chips height */\r\n --smart-chip-avatar-background: var(--smart-secondary);\r\n /* Default avatar background color */\r\n /* Currency format panel */\r\n --smart-currency-format-panel-currency-holder-width: 1fr;\r\n --smart-currency-format-panel-apply-button-width: 125px;\r\n --smart-currency-format-panel-header-holder-offset: 2%;\r\n --smart-currency-format-panel-currency-holder-input-width: 1fr;\r\n --smart-currency-format-panel-currency-holder-dropdown-width: 165px;\r\n --smart-currency-format-panel-currency-holder-dropdown-button-width: 95%;\r\n --smart-currency-format-panel-border-size: 1px;\r\n --smart-currency-format-panel-border-color: #ccc;\r\n --smart-currency-format-panel-border-radius: 4px;\r\n --smart-currency-format-panel-currencies-margin-top: 15px;\r\n --smart-currency-format-panel-currencies-max-height: 400px;\r\n --smart-currency-format-panel-currencies-item-padding: 12px;\r\n --smart-currency-format-panel-currency-holder-padding-left: 5px;\r\n --smart-currency-format-panel-currency-holder-padding-top: 3px;\r\n --smart-currency-format-panel-currency-holder-padding-bottom: 3px;\r\n --smart-currency-format-panel-currency-input-width: 100%;\r\n --smart-currency-format-panel-currencies-left-padding: 10px;\r\n --smart-currency-format-panel-currencies-hover-background: #f1f1f1;\r\n --smart-currency-format-panel-currencies-example-format-color: #777;\r\n /* DataView - Common for CardView and Kanban */\r\n --smart-data-view-padding: 10px;\r\n /* Padding of the CardView and Kanban */\r\n --smart-data-view-customize-panel-width: 320px;\r\n /* Width of the CardView and Kanban customize panel (drop down). */\r\n --smart-data-view-filter-panel-width: 550px;\r\n /* Width of the CardView and Kanban filter panel (drop down). */\r\n --smart-data-view-sort-panel-width: 470px;\r\n /* Width of the CardView and Kanban sort panel (drop down). */\r\n --smart-data-view-search-panel-width: 250px;\r\n /* Width of the CardView and Kanban search panel (drop down). */\r\n /* Date Format Panel */\r\n --smart-date-format-panel-main-container-width: 960px;\r\n /* Main container */\r\n --smart-date-format-panel-main-container-padding: 15px;\r\n --smart-date-format-panel-border-radius: 4px;\r\n /* Default styles */\r\n --smart-date-format-panel-border-size: 1px;\r\n --smart-date-format-panel-border-color: #ccc;\r\n --smart-date-format-panel-smart-inputs-container-width: 1fr;\r\n /* Input and add format holder */\r\n --smart-date-format-panel-apply-container-width: 150px;\r\n --smart-date-format-panel-smart-input-buttons-column-gap: 2%;\r\n --smart-date-format-panel-smart-inputs-holder-width: 94%;\r\n /* Input and add format holder child */\r\n --smart-date-format-panel-add-format-holder-width: 6%;\r\n --smart-date-format-panel-smart-inputs-list-holder-offset: 2px;\r\n --smart-date-format-panel-smart-input-format-width: 150px;\r\n /* Smart inputs */\r\n --smart-date-format-panel-smart-input-sign-width: 80px;\r\n --smart-date-format-panel-smart-input-height: 25px;\r\n --smart-date-format-panel-each-smart-input-offset: 4px;\r\n --smart-date-format-panel-all-format-holders-width: 255px;\r\n --smart-date-format-panel-add-format-holder-button: 120px;\r\n --smart-date-format-panel-each-add-format-holder-width: 120px;\r\n /* Add new format */\r\n --smart-date-format-panel-add-new-format-dropdown-offset: 5px;\r\n --smart-date-format-panel-date-time-format-list-offset-top: 15px;\r\n /* Format list */\r\n --smart-date-format-panel-date-time-format-list-max-height: 400px;\r\n --smart-date-format-panel-each-date-time-format-offset: 12px;\r\n /* Date Time Picker */\r\n --smart-date-time-picker-default-width: var(--smart-editor-width);\r\n /* smartDateTimePicker default width */\r\n --smart-date-time-picker-default-height: var(--smart-editor-height);\r\n /* smartDateTimePicker default height */\r\n --smart-date-time-picker-header-opacity: 0.8;\r\n /* Opacity of header elements */\r\n --smart-date-time-picker-header-opacity-active: 1;\r\n /* Opacity of header elements when selected */\r\n --smart-date-time-picker-drop-down-width: var(--smart-editor-drop-down-height);\r\n /* smartDropDownList drop down width */\r\n --smart-date-time-picker-drop-down-height: auto;\r\n /* smartDropDownList drop down height */\r\n /*DockingLayout*/\r\n --smart-docking-layout-default-width: 1000px;\r\n /* smartDropDownList, smartComboBox default width */\r\n --smart-docking-layout-default-height: 800px;\r\n /* smartDropDownList, smartComboBox default height */\r\n --smart-docking-layout-feedback-background-secondary-size: 7px;\r\n /* The size of the arrows of the advanced snapping highlighters that show possible drop position of the dragged item. */\r\n /*DropDownList*/\r\n --smart-drop-down-list-default-width: var(--smart-editor-width);\r\n /* smartDropDownList, smartComboBox default width */\r\n --smart-drop-down-list-default-height: var(--smart-editor-height);\r\n /* smartDropDownList, smartComboBox default height */\r\n --smart-drop-down-list-drop-down-width: initial;\r\n /* smartDropDownList drop down width */\r\n --smart-drop-down-list-drop-down-height: auto;\r\n /* smartDropDownList drop down height */\r\n /* DropDownButton */\r\n --smart-drop-down-button-default-width: auto;\r\n /* smartDropDownButton default width */\r\n --smart-drop-down-button-default-height: var(--smart-editor-height);\r\n /* smartDropDownButton default height */\r\n --smart-drop-down-button-drop-down-width: var(--smart-editor-drop-down-width);\r\n /* smartDropDownButton drop down width */\r\n --smart-drop-down-button-drop-down-height: var(--smart-editor-drop-down-height);\r\n /* smartDropDownButton drop down height */\r\n /* Editor */\r\n --smart-editor-default-width: 100%;\r\n /* smartEditor default width */\r\n --smart-editor-default-height: 600px;\r\n /* smartEditor default height */\r\n --smart-editor-input-min-height: 100px;\r\n /* smartEditor input min height */\r\n --smart-editor-padding: 15px;\r\n /* smartEditor padding */\r\n --smart-editor-toolbar-item-margin: 5px;\r\n /* smartEditor toolbar item margin */\r\n --smart-editor-toolbar-button-width: 30px;\r\n /* smartEditor toolbar button width */\r\n --smart-editor-toolbar-delimiter-width: 5px;\r\n /* smartEditor toolbar delimiter items width */\r\n --smart-editor-toolbar-drop-down-width-large: 100px;\r\n /* smartEditor wider drop down toolbar items like - format, fontname, etc. */\r\n --smart-editor-toolbar-drop-down-width-small: 65px;\r\n /* smartEditor all drop down toolbar items default width */\r\n --smart-editor-window-header-height: var(--smart-scheduler-window-header-height);\r\n /* smartEditor Dialog Window header height */\r\n --smart-editor-window-footer-height: var(--smart-scheduler-window-footer-height);\r\n /* smartEditor Dialog Window footer height */\r\n --smart-editor-inline-toolbar-max-width: 80vw;\r\n /* smartEditor Inline toolbar max width */\r\n --smart-editor-table-column-width: initial;\r\n /* smartEditor table column default width */\r\n --smart-editor-table-cell-min-height: 20px;\r\n /* smartEditor table cell defaut min height */\r\n --smart-editor-table-cell-min-width: var(--smart-editor-table-cell-min-height);\r\n /* smartEditor table cell default min width */\r\n --smart-editor-char-counter-offset: 30px;\r\n /* smartEditor char count offset from the edges of the element */\r\n --smart-editor-toolbar-item-height: 30px;\r\n /* smartEditor default toolbar item height */\r\n --smart-editor-toolbar-item-border-radius: var(--smart-border-radius);\r\n /* smartEditor toolbar item border radius */\r\n --smart-editor-toolbar-height: calc(var(--smart-editor-toolbar-item-height) + 2 * var(--smart-editor-toolbar-item-margin));\r\n /* smartEditor toolbar height */\r\n --smart-editor-highlight: var(--smart-primary);\r\n /* smartEditor Find and Replace highlight color */\r\n --smart-editor-highlight-color: var(--smart-primary-color);\r\n /* smartEditor highligh text color */\r\n --smart-editor-search-bar-offset: 5px;\r\n /* smartEditor search bar offset */\r\n --smart-editor-search-bar-padding: 5px;\r\n /* smartEditor search bar padding */\r\n /* Filter Builder */\r\n --smart-filter-builder-default-width: var(--smart-box-width);\r\n /* Default width of the smartFilterBuilder*/\r\n --smart-filter-builder-default-height: var(--smart-box-height);\r\n /* Default height of the smartFilterBuilder*/\r\n --smart-filter-builder-row-height: var(--smart-editor-height);\r\n /* Default height of the smartFilterBuilder's rows*/\r\n --smart-filter-builder-item-width: var(--smart-editor-width);\r\n /* Default width of the smartFilterBuilder's button items*/\r\n --smart-filter-builder-group-container-border: 4px;\r\n --smart-filter-builder-item-margin: 20px;\r\n --smart-filter-builder-group-condition-margin: 5px;\r\n --smart-filter-builder-group-margin: 15px;\r\n /* Filter Panel */\r\n --smart-filter-panel-default-width: 300px;\r\n /* Default width of the smartFilterPanel */\r\n --smart-filter-panel-default-height: auto;\r\n /* Default height of the smartFilterPanel */\r\n --smart-filter-panel-padding: 10px;\r\n /* padding of the smartFilterPanel */\r\n --smart-filter-panel-border-top-right-radius: var(--smart-border-radius);\r\n /* smartFilterPanel top-right border radius */\r\n --smart-filter-panel-border-top-left-radius: var(--smart-border-radius);\r\n /* smartFilterPanel top-left border radius */\r\n --smart-filter-panel-border-bottom-left-radius: var(--smart-border-radius);\r\n /* smartFilterPanel bottom-left border radius */\r\n --smart-filter-panel-border-bottom-right-radius: var(--smart-border-radius);\r\n /* smartFilterPanel bottom-right border radius */\r\n --smart-filter-panel-border-width: var(--smart-border-width);\r\n /* smartFilterPanel border width */\r\n --smart-filter-panel-border: var(--smart-border);\r\n /* smartFilterPanel border color */\r\n --smart-filter-panel-background: var(--smart-background);\r\n /* smartFilterPanel background color */\r\n --smart-filter-panel-color: var(--smart-background-color);\r\n /* smartFilterPanel text color */\r\n --smart-filter-panel-vertical-offset: 10px;\r\n /* Vertical offset between smartFilterPanel sub-elements */\r\n --smart-filter-panel-main-element-height: 400px;\r\n /* height of the smartTree inside the smartFilterPanel */\r\n /* File Upload */\r\n --smart-file-upload-default-width: var(--smart-editor-width);\r\n /* Default width of the smartFileUpload*/\r\n --smart-file-upload-browse-button-width: auto;\r\n /* Default width of the browse button*/\r\n --smart-file-upload-browse-button-height: auto;\r\n /* Default height of the browse button*/\r\n --smart-file-upload-footer-button-width: auto;\r\n /* Default height of the smartFileUpload's footer buttons*/\r\n --smart-file-upload-footer-button-height: auto;\r\n /* Default height of the smartFileUpload's footer buttons*/\r\n --smart-file-upload-text-content-uploading-start: \"Connecting ...\";\r\n /* Default text content of the pseudo element shown when upload starts. */\r\n --smart-file-upload-text-content-uploading: \"Uploading ...\";\r\n /* Default text content of the pseudo element shown during the upload. */\r\n --smart-file-upload-text-content-error: \"Upload error!\";\r\n /* Default text content of the pseudo element shown on error. */\r\n --smart-file-upload-text-content-pause: \"Upload paused!\";\r\n /* Default text content of the pseudo element shown when upload is paused. */\r\n --smart-file-upload-text-content-drop-zone: \"Drag files here\";\r\n /* Default text content of the pseudo element shown where is the drop zone. */\r\n --smart-file-upload-text-content-drop-zone-over: \"Drop here \\e824\";\r\n /* Default text content of the pseudo element shown when dragged files are over the drop zone. */\r\n --smart-file-upload-container-min-height: 60px;\r\n /* Sets minimmum height of the drop zone and file zone containers. */\r\n --smart-file-upload-total-files-min-height: 20px;\r\n /* Sets min height of the container where total numbers of items is displayed. */\r\n --smart-file-upload-drop-zone-height: 100%;\r\n /* Sets min height of the container where total numbers of items is displayed. */\r\n /* Gantt Chart */\r\n --smart-gantt-chart-resource-splitter-bar-fit-size: calc(var(--smart-gantt-chart-resource-timeline-content-height) + var(--smart-gantt-chart-task-default-height));\r\n /* The fit size of all Resource Splitter bar inside the Resource Panel of the element*/\r\n --smart-gantt-chart-task-splitter-bar-fit-size: var(--smart-gantt-chart-task-timeline-content-height);\r\n /* The fit size of all Splitter bar inside the element*/\r\n --smart-gantt-chart-task-default-height: 30px;\r\n /* The height of a Task inside the Timeline */\r\n --smart-gantt-chart-header-height: var(--smart-gantt-chart-task-default-height);\r\n /* The height of the header of the Task and Resource Panels */\r\n --smart-gantt-chart-task-bar-fill-padding: 5px;\r\n /* The padding of the Fill of the Task Bar */\r\n --smart-gantt-chart-task-label-padding: 2px var(--smart-gantt-chart-task-bar-fill-padding);\r\n /* */\r\n --smart-gantt-chart-task-thumb-color: rgba(0, 0, 0, .55);\r\n /* The color of the thumb */\r\n --smart-gantt-chart-task-progress-color: rgba(0, 0, 0, .15);\r\n /* #2d75f5 */\r\n /* The default color of the progress fill of all Tasks inside the Timeline */\r\n --smart-gantt-chart-project-color: #ffa558;\r\n /* #38a238*/\r\n /* The defaut color for all Project tasks */\r\n --smart-gantt-chart-project-label-color: #333;\r\n /* Determines the label color of the project tasks inside the Timeline. */\r\n --smart-gantt-chart-project-label-color-selected: #000;\r\n /* Determines the label color of the project tasks inside the Timeline when selected. */\r\n --smart-gantt-chart-project-progress-color: var(--smart-gantt-chart-task-progress-color);\r\n /* #008000 */\r\n /* The default color of the progress fill for all Project tasks */\r\n --smart-gantt-chart-task-color: rgb(43, 195, 190);\r\n /* #6495ed */\r\n /* The default color of a Task inside the Timeline */\r\n --smart-gantt-chart-milestone-color: #800080;\r\n /* The default color for all Milestones */\r\n --smart-gantt-chart-timeline-task-background-color: transparent;\r\n /* Determines the background color of the tasks(rows) inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-feedback-color: #e6510a;\r\n /* orange */\r\n /* Determines the default color of the feedback that is shows when creating a connection between tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-feedback-width: 1px;\r\n /* Determines the default width of the feedback that is shows when creating a connection between tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-feedback-style: dashed;\r\n /* Determines the style of the feedback that is shows when creating a connection between tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-color: var(--smart-gantt-chart-timeline-task-connection-feedback-color);\r\n /* Determines the color of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-color-hover: var(--smart-gantt-chart-timeline-task-connection-color);\r\n /* Determines the color on hover of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-width: var(--smart-gantt-chart-timeline-task-connection-feedback-width);\r\n /* Determines the width of the connections between the tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-style: solid;\r\n /* Determines the style of the connections between the tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-arrow-type: solid;\r\n /* Determines the border type of the arrow of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-arrow-width: 5px;\r\n /* Determines the width of the arrow of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-resize-indicator-width: 4px;\r\n /* Determines the defualt width of the resize indicator of the Task bars inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-resize-indicator-color: #fff;\r\n /* Determines the background-color of the resize indicators of the Task bars insinde the Timeline. */\r\n --smart-gantt-chart-timeline-task-resize-indicator-border-color: #333;\r\n /* Determines the border-color of the resize indicator of the Task bars inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-progress-thumb-size: 10px;\r\n /* Determines the size of the thumb controlling the progress of a Task inside the Timeline. */\r\n --smart-gantt-chart-timeline-cell-size: auto;\r\n /* Determines the default width of the cells inside the Timeline. */\r\n --smart-gantt-chart-timeline-cell-min-size: 70px;\r\n /* Determines the default min-width of the cells inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-min-width: 5px;\r\n /* Determines the default min-width of the Tasks insinde the Timeline. Not applicable to Milestone tasks. */\r\n --smart-gantt-chart-timeline-weekend-color: #EFF5FD;\r\n /* Determines the default background color of the 'weekend' cells insinde the Timeline. */\r\n --smart-gantt-chart-timeline-nonworking-color: #F5F5F5;\r\n /* Determines the default background-color of the nonworking days/hours inside the Timeline. */\r\n --smart-gantt-chart-default-width: auto;\r\n /* Determines the default width of the element. */\r\n --smart-gantt-chart-default-height: 600px;\r\n /* Determines the height of the element. */\r\n --smart-gantt-chart-task-popup-window-default-width: 60vw;\r\n /* Determines the width of the task editing popup windows of the element. */\r\n --smart-gantt-chart-connection-popup-window-default-width: 300px;\r\n /* Determines the width of the connection editing popup windows of the element. */\r\n --smart-gantt-chart-confirm-popup-window-default-width: var(--smart-gantt-chart-connection-popup-default-width);\r\n /* Determines the width of the confirm popup window of the element. */\r\n --smart-gantt-chart-popup-window-header-height: 35px;\r\n /* Determines the height of the header of the popup windows inside the element. */\r\n --smart-gantt-chart-popup-window-footer-height: 50px;\r\n /* Determines the height of the footer of the popup windows insinde the element. */\r\n --smart-gantt-chart-header-placeholder: ' - ';\r\n /* Placeholder for thea Header sections when there're no items */\r\n --smart-gantt-chart-progress-label-padding: 0 10px 0 10px;\r\n /* Task progress label padding */\r\n --smart-gantt-chart-filter-row-height: 30px;\r\n /* Sets a box shadow to the Task Timeline header */\r\n --smart-gantt-chart-task-fill-border-radius: 0;\r\n /* Sets the default border radius for the Timeline task bars */\r\n --smart-gantt-chart-segment-link-color: var(--smart-gantt-chart-task-color);\r\n /* Determines the color of the link between the task segments */\r\n --smart-gantt-chart-segment-link-size: var(--smart-border-width);\r\n /* Determines the height of the link between the task segments */\r\n --smart-gantt-chart-date-marker-color: var(--smart-primary);\r\n /* Determines the color of the date markers */\r\n --smart-gantt-chart-date-marker-height: 25px;\r\n /* Determines the background of the date markers */\r\n --smart-gantt-chart-date-marker-width: var(--smart-border-width);\r\n /* Determines the width of the date markers */\r\n --smart-gantt-chart-date-marker-background: var(--smart-primary);\r\n /* Determines the background of the date markers */\r\n --smart-gantt-chart-date-marker-color: var(--smart-primary-color);\r\n /* Determines the background of the date markers */\r\n --smart-gantt-chart-date-marker-v-offset: 15%;\r\n /* Determines the vertical position of the date markers */\r\n --smart-gantt-chart-date-marker-h-offset: 10px;\r\n /* Determines the horizontal offset of the date markers */\r\n --smart-gantt-chart-indicator-icon: initial;\r\n /* Determines the task indicator icon */\r\n --smart-gantt-chart-deadline-icon: var(--smart-icon-attention-circled);\r\n /* Determines the icon for the task deadline */\r\n --smart-gantt-chart-deadline-color: var(--smart-error);\r\n /* Determines the color for the task deadline icon */\r\n --smart-gantt-chart-baseline-proportion: 2;\r\n /* Determines the proportion of the baseline compared to the task height */\r\n --smart-gantt-chart-baseline-background: rgba(166, 205, 87, .5);\r\n /* Determines the background color of the task baseline */\r\n --smart-gantt-chart-progress-label-width: 60px;\r\n /* Determines the task progress label width */\r\n --smart-gantt-chart-current-time-indicator-size: 1px;\r\n /* Determines the current time indicator width */\r\n --smart-gantt-chart-current-time-indicator-background: var(--smart-primary);\r\n /* Determines the current time indicator background */\r\n --smart-gantt-chart-current-time-indicator-arrow-size: 7px;\r\n /* Determines the arrow size of the curernt time indicator */\r\n --smart-gantt-chart-current-time-indicator-header-size: 2px;\r\n /* Determines the current time indicator size inside the timeline header cell */\r\n --smart-gantt-chart-shader-background: rgba(var(--smart-border-rgb), .5);\r\n /* Determines the current time shader background color */\r\n\r\n /* Gauge */\r\n --smart-gauge-default-width: var(--smart-box-width);\r\n /* smartGauge default width */\r\n --smart-gauge-default-height: var(--smart-box-height);\r\n /* smartgauge default height */\r\n --smart-gauge-track-border: var(--smart-border);\r\n /* Track's border color */\r\n --smart-gauge-track-background: var(--smart-background);\r\n /* Track's background color */\r\n --smart-gauge-needle-background: var(--smart-primary);\r\n /* Needle's background color */\r\n --smart-gauge-label-fill-state: initial;\r\n /* Fill color of labels */\r\n --smart-gauge-label-stroke: initial;\r\n /* Stroke color of labels */\r\n /* Grid */\r\n --smart-grid-default-width: 800px;\r\n /* Used to set the default width. */\r\n --smart-grid-default-height: 400px;\r\n /* Used to set the default height. */\r\n --smart-grid-footer-height: var(--smart-bar-height);\r\n /* Sets footer height. */\r\n --smart-grid-header-height: var(--smart-bar-height);\r\n /* Sets header height. */\r\n --smart-grid-group-header-height: var(--smart-bar-height);\r\n /* Sets group header height. */\r\n --smart-grid-row-height: 30px;\r\n /* Sets rows height. */\r\n --smart-grid-column-header-height: var(--smart-bar-height);\r\n /* Sets columns height. */\r\n --smart-grid-filter-footer-height: var(--smart-bar-height);\r\n /* Sets filter row height. */\r\n --smart-grid-aggregate-footer-height: var(--smart-bar-height);\r\n /* Sets aggregates height. */\r\n --smart-grid-header-background-freeze: var(--smart-surface);\r\n /* Sets row/column header background, when row/column is frozen. */\r\n --smart-grid-header-color-freeze: var(--smart-surface-color);\r\n /* Sets row/column header text color, when row/column is frozen. */\r\n --smart-grid-column-menu-width: 200px;\r\n /* Sets column menu's width. */\r\n --smart-grid-column-menu-height: auto;\r\n /* Sets column menu's height. */\r\n --smart-grid-column-buttons-width: 23px;\r\n /* Sets column buttons width. */\r\n --smart-grid-cell-color-freeze: var(--smart-surface-color);\r\n /* Sets text color of cells, when row/column is frozen. */\r\n --smart-grid-cell-background-freeze: var(--smart-surface);\r\n /* Sets background color of cells, when row/column is frozen */\r\n --smart-grid-cell-color-delete: #333;\r\n /* Sets text color of cells, when row is deleted. */\r\n --smart-grid-cell-background-delete: #FFDCDC;\r\n /* Sets background color of cells, when row is deleted. */\r\n --smart-grid-cell-color-update: #333;\r\n /* Sets text color of cells, when cell is updated.. */\r\n --smart-grid-cell-background-update: #D7F9C7;\r\n /* Sets background color of cells, when cell is updated.. */\r\n --smart-grid-cell-color-add: #333;\r\n /* Sets text color of cells, when row is added.. */\r\n --smart-grid-cell-background-add: #FED59B;\r\n /* Sets background color of cells, when row is deleted.. */\r\n --smart-grid-cell-color-unbound: var(--smart-surface-color);\r\n /* Sets text color of cells, when row is unbound. */\r\n --smart-grid-cell-background-unbound: var(--smart-surface);\r\n /* Sets background color of cells, when row is unbound. */\r\n --smart-grid-cell-color-sort: var(--smart-surface-color);\r\n /* Sets text color of cells, when column is sorted. */\r\n --smart-grid-cell-background-sort: #FEF3dd;\r\n /* Sets background color of cells, when column is sorted. */\r\n --smart-grid-cell-color-filter: var(--smart-surface-color);\r\n /* Sets text color of cells, when column is filtered. */\r\n --smart-grid-cell-background-filter: #E8F2DB;\r\n /* Sets background color of cells, when column is filtered. */\r\n --smart-grid-group-row-vertical-offset: 5;\r\n /* Sets grouped rows vertical offset. */\r\n --smart-grid-group-row-horizontal-offset: 1;\r\n /* Sets grouped rows horizontal offset. */\r\n --smart-grid-template-columns: none;\r\n /* Sets Template columns. */\r\n --smart-grid-column-gap: 0px;\r\n /* Sets the element's grid-column-gap (related to CSS Grid) */\r\n --smart-grid-row-gap: 0px;\r\n /* Sets the element's grid-row-gap (related to CSS Grid) */\r\n --smart-grid-freeze-splitter-size: 1px;\r\n /* Sets frozen split bar size. */\r\n --smart-grid-resize-line-size: 1px;\r\n /* Sets resize line size. */\r\n /* Grid Layout */\r\n --smart-grid-layout-col-gap: 10px;\r\n --smart-grid-layout-row-gap: 10px;\r\n --smart-grid-layout-width: 100%;\r\n --smart-grid-layout-rows: none;\r\n /* Group Panel, Sort Panel, Column Panel, Multi Column Filter Panel, Formatting Panel */\r\n --smart-grid-panel-default-width: 450px;\r\n /* Default width of the smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel */\r\n --smart-grid-panel-default-height: auto;\r\n /* Default height of the smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel */\r\n --smart-grid-panel-padding: 10px;\r\n /* padding of the smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel */\r\n --smart-grid-panel-vertical-offset: 10px;\r\n /* Vertical offset between smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel items */\r\n --smart-grid-panel-item-height: 30px;\r\n /* height of smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel items */\r\n --smart-column-panel-drop-down-height: 350px;\r\n /* height of drop-downs */\r\n --smart-multi-column-filter-panel-template-columns: 15px 60px 2fr 3fr 3fr;\r\n /* smartMultiColumnFilterPanel grid-template-columns */\r\n --smart-formatting-panel-default-width: 600px;\r\n /* Default width of the smartFormattingPanel */\r\n --smart-formatting-panel-row-height: 30px;\r\n /* Height of rows in smartFormattingPanel */\r\n --smart-formatting-panel-add-new-button-size: 40px;\r\n /* Size of \"Add new\" (+) button in smartFormattingPanel */\r\n --smart-formatting-panel-popup-width: 300px;\r\n /* Width of smartFormattingPanel's pop-up */\r\n --smart-formatting-panel-color-box-height: 20px;\r\n /* Height of color boxes in smartFormattingPanel's pop-up */\r\n /* Kanban */\r\n --smart-kanban-default-width: 1200px;\r\n /* Default width of Kanban */\r\n --smart-kanban-default-height: 500px;\r\n /* Default height of Kanban */\r\n --smart-kanban-header-size: 35px;\r\n /* Header size of Kanban (applies to header and column headers) */\r\n --smart-kanban-task-min-width: 150px;\r\n /* Min width for Kanban tasks in columns with horizontal orientation */\r\n --smart-kanban-task-min-height: 80px;\r\n /* Kanban task min height */\r\n --smart-kanban-text-max-height: 200px;\r\n /* Kanban task text part max height */\r\n --smart-kanban-user-icon-size: 30px;\r\n /* Kanban user icon size */\r\n --smart-kanban-user-list-width: 150px;\r\n /* Kanban user list width */\r\n --smart-kanban-user-list-max-height: 500px;\r\n /* Kanban user list max height */\r\n --smart-kanban-comments-list-width: 350px;\r\n /* Kanban comments list width */\r\n --smart-kanban-comments-list-height: auto;\r\n /* Kanban comments list height */\r\n --smart-kanban-new-comment-height: 50px;\r\n /* Height of new comment section */\r\n --smart-kanban-new-comment-height-expanded: 175px;\r\n /* Expanded height of new comment section */\r\n --smart-kanban-send-button-height: 30px;\r\n /* Height of Send button in new comment section */\r\n --smart-kanban-color-band-width: 3px;\r\n /* Kanban color band width (i.e. left border of tasks) */\r\n --smart-kanban-add-new-column-width: 1fr;\r\n /* Kanban \"+ New status\" column width */\r\n /* ListBox */\r\n --smart-list-box-default-width: var(--smart-editor-width);\r\n /* smartListBox default width */\r\n --smart-list-box-default-height: var(--smart-editor-width);\r\n /* smartListBox default height */\r\n --smart-list-item-group-header-text-transform: uppercase;\r\n /* smartListBox item group header text transform */\r\n --smart-list-item-horizontal-offset: 3px;\r\n /* Defines list item's horizontal offset. */\r\n --smart-list-item-vertical-offset: 3px;\r\n /* Defines list item's vertical offset. */\r\n --smart-list-item-height: 36px;\r\n /* smartListBox item height */\r\n --smart-list-item-check-box-radius: 2px;\r\n /* smartListBox checkbox radius */\r\n --smart-list-item-label-padding: 0;\r\n /* smartListBox item label padding */\r\n --smart-list-item-label-border-radius: 0;\r\n /* smartListBox item label border radius */\r\n --smart-list-item-padding: 9px 12px;\r\n /* smartListBox item padding */\r\n /* Loader */\r\n --smart-loader-size: var(--smart-editor-height);\r\n /* smartListBox loader size(width=height) */\r\n /* LED */\r\n --smart-led-default-width: var(--smart-editor-height);\r\n /* smartLed default width */\r\n --smart-led-default-height: var(--smart-editor-height);\r\n /* smartLed default height */\r\n /* List Menu */\r\n --smart-list-menu-default-width: var(--smart-box-width);\r\n /* smartListMenu default width */\r\n --smart-list-menu-default-height: var(--smart-box-height);\r\n /* smartListMenu default height */\r\n --smart-list-menu-filter-input-vertical-offset: 5px;\r\n /* Defines vertical offset of the ListMenu's filter input. */\r\n --smart-list-menu-filter-input-horizontal-offset: 5px;\r\n /* Defines horizontal offset of the ListMenu's filter input. */\r\n /*Masked Text Box*/\r\n --smart-masked-text-box-default-width: var(--smart-editor-width);\r\n /* smartMasked default width */\r\n --smart-masked-text-box-default-height: var(--smart-editor-height);\r\n /* smartMasked default height */\r\n /* Menu */\r\n --smart-menu-default-width: var(--smart-bar-width);\r\n /* smartMenu default width */\r\n --smart-menu-default-height: var(--smart-bar-height);\r\n /* smartMenu default height */\r\n --smart-menu-vertical-default-width: calc(var(--smart-bar-width) / 2);\r\n /* vertical and context smartMenu default width */\r\n --smart-menu-vertical-default-height: var(--smart-bar-width);\r\n /* vertical and context smartMenu default height */\r\n --smart-menu-scroll-button-size: calc(var(--smart-bar-height) / 1.5);\r\n /* smartMenu scroll buttons size. Horizontal Menu scroll buttons width = Vertical Menu scroll buttons height. */\r\n /* Multiline Text Box */\r\n --smart-multiline-text-box-default-width: var(--smart-editor-width);\r\n /* Default width of the element. */\r\n --smart-multiline-text-box-default-height: calc(10 * var(--smart-editor-height));\r\n /* Default height of the element. */\r\n /* Multi Split Button*/\r\n --smart-multi-split-button-default-width: var(--smart-editor-width);\r\n /* Element's default width. */\r\n --smart-multi-split-button-default-height: var(--smart-editor-height);\r\n /* Element's default height. */\r\n /* Number format Panel */\r\n --smart-number-format-panel-selected-format-width: 1fr;\r\n --smart-number-format-panel-apply-button-width: 125px;\r\n --smart-number-format-panel-header-holder-offset: 10px;\r\n --smart-number-format-panel-border-size: 1px;\r\n --smart-number-format-panel-border-color: #ccc;\r\n --smart-number-format-panel-border-radius: 4px;\r\n --smart-number-format-panel-sample-container-vertical-offset: 15px;\r\n --smart-number-format-panel-sample-container-horizontal-offset: 5px;\r\n --smart-number-format-panel-formats-list-margin-top: 15px;\r\n --smart-number-format-panel-formats-list-max-height: 400px;\r\n --smart-number-format-panel-formats-item-padding: 12px;\r\n --smart-number-format-panel-selected-format-padding-left: 5px;\r\n --smart-number-format-panel-selected-format-padding-top: 3px;\r\n --smart-number-format-panel-selected-format-padding-bottom: 3px;\r\n --smart-number-format-panel-header-input-width: 100%;\r\n --smart-number-format-panel-formats-item-left-padding: 10px;\r\n --smart-number-format-panel-formats-item-hover-background: #f1f1f1;\r\n --smart-number-format-panel-formats-item-example-format-color: #777;\r\n /* Numeric Text Box */\r\n --smart-numeric-text-box-default-width: var(--smart-editor-width);\r\n /* smartNumericTextBox default width */\r\n --smart-numeric-text-box-default-height: var(--smart-editor-height);\r\n /* smartNumericTextBox default height */\r\n --smart-numeric-text-box-default-radix-display-width: 12%;\r\n /* smartNumericTextBox default radix display button width*/\r\n --smart-numeric-text-box-default-unit-display-width: var(--smart-editor-addon-width);\r\n /* smartNumericTextBox default unit display width*/\r\n --smart-numeric-text-box-text-align: right;\r\n /* smartNumericTextBox input text align */\r\n /* Path */\r\n --smart-path-default-width: var(--smart-editor-width);\r\n /* smartPath default width */\r\n --smart-path-default-height: var(--smart-editor-height);\r\n /* smartPath default height */\r\n --smart-path-drop-down-width: auto;\r\n /* smartPath drop down width */\r\n --smart-path-drop-down-height: auto;\r\n /* smartPath drop down height */\r\n --smart-path-button-gap: 5px;\r\n /* smartPath button gap */\r\n --smart-path-text-align: start;\r\n /* smartPath text align */\r\n /* Power Button */\r\n --smart-power-button-default-width: var(--smart-editor-height);\r\n /* smartPowerButton default width */\r\n --smart-power-button-default-height: var(--smart-editor-height);\r\n /* smartPowerButton default height */\r\n /* Progress Bar */\r\n --smart-progress-bar-default-width: var(--smart-editor-width);\r\n /* smartProgressBar default width */\r\n --smart-progress-bar-default-height: var(--smart-editor-height);\r\n /* smartProgressBar default height */\r\n --smart-circular-progress-bar-default-size: var(--smart-editor-width);\r\n /* smartCircularProgressBar default size (width = height) */\r\n --smart-circular-progress-bar-fill-size: 20%;\r\n /* smartCircularProgressBar ui-state size. The width of the ui-state. The middle container's width is calculated defaultd on this value. */\r\n /* Query Builder */\r\n --smart-query-builder-default-width: auto;\r\n /* Default width of QueryBuilder. */\r\n --smart-query-builder-default-height: auto;\r\n /* Default height of QueryBuilder. */\r\n --smart-query-builder-min-width: 100px;\r\n /* Minimum width of QueryBuilder. */\r\n --smart-query-builder-content-padding: 5px;\r\n /* Padding of QueryBuilder. */\r\n --smart-query-builder-editor-width: 125px;\r\n /* Width of editors in QueryBuilder. */\r\n /* Radio Button */\r\n --smart-radio-button-default-size: calc(1px + 1/2 * var(--smart-editor-height));\r\n /* Default size for the radio button. */\r\n /* Sortable */\r\n --smart-sortable-handle-size: 25px;\r\n /* smartSortable handle size */\r\n /* Splitter */\r\n --smart-splitter-default-width: var(--smart-box-width);\r\n /* smartSplitter default width */\r\n --smart-splitter-default-height: var(--smart-box-height);\r\n /* smartSplitter default height */\r\n --smart-splitter-bar-size: 10px;\r\n /* The width of the scrollbar when vertical and the height of the scrollbar when horizontal*/\r\n --smart-splitter-bar-fit-size: 100%;\r\n /* The size of the splitter according to the orientation of the Splitter. By 'default' a SplitterBar fits the size of the Splitter. */\r\n --smart-splitter-item-padding: 0;\r\n /* Splitter item padding */\r\n --smart-splitter-item-content-padding: 0;\r\n /* Splitter item content padding */\r\n --smart-splitter-item-size: auto;\r\n /* The default size of the Splitter Items */\r\n /* Switch Button */\r\n --smart-switch-button-default-width: calc(var(--smart-editor-height) + 10px);\r\n /* Default width of the SwitchButton. */\r\n --smart-switch-button-default-height: var(--smart-editor-height);\r\n /* smartSwitchButton default height */\r\n --smart-switch-button-thumb-size: calc(var(--smart-switch-button-default-height) - 8px);\r\n /* smartSwitchButton thumb size */\r\n /* Slider */\r\n --smart-slider-default-width: var(--smart-editor-width);\r\n /* smartSlider default width */\r\n --smart-slider-default-height: 35px;\r\n /* smartSlider default height*/\r\n --smart-slider-track-size: 1px;\r\n /* smartSlider track size. Horizontal track height = Vertical track width */\r\n --smart-slider-thumb-width: 20px;\r\n /* smartSlider thumb width*/\r\n --smart-slider-thumb-height: 20px;\r\n /* smartSlider thumb height*/\r\n --smart-slider-tooltip-width: 60px;\r\n /* smartSlider tooltip width */\r\n --smart-slider-tooltip-height: 30px;\r\n /* smartSlider tooltip height*/\r\n --smart-slider-spin-button-width: 30px;\r\n /* smartSlider spin buttons width*/\r\n --smart-slider-spin-button-height: 30px;\r\n /* smartSlider spin buttons height*/\r\n --smart-slider-tick-size: 10px;\r\n /* smartSlider tick size. Horizontal Slider tick height = Vertical Slider tick width.*/\r\n --smart-slider-minor-tick-size: 5px;\r\n /* smartSlider minor tick size. Horizontal Slider minor tick height = Vertical Slider minor tick width.*/\r\n --smart-slider-thumb-border-top-right-radius: 15px;\r\n /* Top-right border radius of smartSlider thumb */\r\n --smart-slider-thumb-border-top-left-radius: 15px;\r\n /* Top-left border radius of smartSlider thumb */\r\n --smart-slider-thumb-border-bottom-left-radius: 15px;\r\n /* Bottom-left border radius of smartSlider thumb */\r\n --smart-slider-thumb-border-bottom-right-radius: 15px;\r\n /* Bottom-right border radius of smartSlider thumb */\r\n /* ScrollBar */\r\n --smart-scroll-button-size: 16px;\r\n /* smartScrollBar buttons size. Horizontal ScrollBar button width = Vertical ScrollBar button height. ScrollBar track is calculated defaultd on this value. */\r\n --smart-scroll-bar-size: 18px;\r\n /* Default scrollbar size */\r\n --smart-scroll-bar-default-width: var(--smart-editor-width);\r\n /* ScrollBar's default width. */\r\n --smart-scroll-bar-default-height: var(--smart-scroll-bar-size);\r\n /* ScrollBar's default height. */\r\n --smart-scroll-bar-background: #F1F1F1;\r\n /* Default ScrollBar's background color. */\r\n --smart-scroll-bar-track-background: var(--smart-scroll-bar-background);\r\n --smart-scroll-bar-border: #F1F1F1;\r\n /* The border color of the ScrollBar */\r\n --smart-scroll-bar-thumb-border-top-right-radius: 0px;\r\n /* Default ScrollBar's top-right border radius. */\r\n --smart-scroll-bar-thumb-border-top-left-radius: 0px;\r\n /* Default ScrollBar's top-left border radius. */\r\n --smart-scroll-bar-thumb-border-bottom-left-radius: 0px;\r\n /* Default ScrollBar's bottom-left border radius. */\r\n --smart-scroll-bar-thumb-border-bottom-right-radius: 0px;\r\n /* Default ScrollBar's bottom-right border radius. */\r\n --smart-scroll-bar-thumb-background: #C1C1C1;\r\n /* The color of the ScrollBar's thumb. */\r\n --smart-scroll-bar-thumb-border: transparent;\r\n /* The color of the ScrollBar's thumb border. */\r\n --smart-scroll-bar-thumb-size: 100%;\r\n /* The size of the ScrollBar's thumb. */\r\n --smart-scroll-bar-thumb-padding: 1px;\r\n /* The padding of the ScrollBar's thumb. */\r\n --smart-scroll-bar-thumb-background-hover: #A8A8A8;\r\n /* The background color of the ScrollBar's thumb in hover state. */\r\n --smart-scroll-bar-thumb-border-hover: transparent;\r\n /* The border color of the ScrollBar's thumb in hover state. */\r\n --smart-scroll-bar-thumb-background-active: #787878;\r\n /* The background color of the ScrollBar's thumb in active state. */\r\n --smart-scroll-bar-thumb-border-active: transparent;\r\n /* The border color of the ScrollBar's thumb in active state. */\r\n --smart-scroll-bar-button-background: #F1F1F1;\r\n /* The background color of ScrollBar's navigation buttons. */\r\n --smart-scroll-bar-button-border: #F1F1F1;\r\n /* The border color of ScrollBar's navigation buttons. */\r\n --smart-scroll-bar-button-color: #505050;\r\n /* The color of ScrollBar's navigation buttons. */\r\n --smart-scroll-bar-button-background-hover: #D2D2D2;\r\n /* The background color of the hovered ScrollBar's buttons. */\r\n --smart-scroll-bar-button-border-hover: #F1F1F1;\r\n /* The border color of the hovered ScrollBar's buttons. */\r\n --smart-scroll-bar-button-color-hover: #505050;\r\n /* The color of the hovered ScrollBar's buttons. */\r\n --smart-scroll-bar-button-background-active: #787878;\r\n /* The background color of the ScrollBar's buttons in active state. */\r\n --smart-scroll-bar-button-border-active: #F1F1F1;\r\n /* The border color of the ScrollBar's buttons in active state. */\r\n --smart-scroll-bar-button-color-active: #fff;\r\n /* The color of the ScrollBar's buttons in active state. */\r\n /* Table and PivotTable */\r\n --smart-table-default-width: 100%;\r\n /* smartTable default width */\r\n --smart-table-default-height: auto;\r\n /* smartTable default height */\r\n --smart-table-header-footer-height: 56px;\r\n /* smartTable height of header and footer */\r\n --smart-table-column-header-height: var(--smart-table-header-footer-height);\r\n /* smartTable height of column header */\r\n --smart-table-row-height: 48px;\r\n /* smartTable height of rows */\r\n --smart-table-cell-padding: 12px;\r\n /* smartTable cell padding */\r\n --smart-table-row-detail-height: var(--smart-table-row-height);\r\n /* smartTable row detail height */\r\n --smart-table-indent: 30px;\r\n /* smartTable hierarchical cell indent */\r\n --smart-table-arrow-size: 16px;\r\n /* smartTable arrow size */\r\n --smart-table-arrow-margin: 5px;\r\n /* smartTable arrow margin */\r\n --smart-table-group-name-display: unset;\r\n /* smartTable group header name display */\r\n --smart-table-group-count-display: unset;\r\n /* smartTable group header leaf count display */\r\n --smart-pivot-table-cell-width: 200px;\r\n /* smartPivotTable cell width */\r\n --smart-pivot-table-secondary-group-width: calc(1.25 * var(--smart-pivot-table-cell-width));\r\n /* smartPivotTable row group width */\r\n --smart-pivot-panel-width: 300px;\r\n /* smartPivotTable designer (smartPivotPanel) width */\r\n --smart-pivot-panel-default-height: 800px;\r\n /* Standalone smartPivotPanel default height */\r\n --smart-pivot-panel-tab-item-height: 150px;\r\n /* smartPivotTable designer (smartPivotPanel) tab item height */\r\n --smart-pivot-panel-padding: 10px;\r\n /* smartPivotTable designer (smartPivotPanel) padding */\r\n /* Tank */\r\n --smart-tank-default-width: var(--smart-editor-width);\r\n /* smartTank default width */\r\n --smart-tank-default-height: calc(10 * var(--smart-editor-height));\r\n /* smartTank default height*/\r\n --smart-tank-scale-size: 105px;\r\n /* smartTank scale size*/\r\n --smart-tank-thumb-width: 25px;\r\n /* smartTank thumb width*/\r\n --smart-tank-thumb-height: var(--smart-tank-thumb-width);\r\n /* smartTank thumb height*/\r\n --smart-tank-tooltip-width: 80px;\r\n /* smartTank tooltip width*/\r\n --smart-tank-tooltip-height: 30px;\r\n /* smartTank thumb height*/\r\n --smart-tank-tick-size: 10px;\r\n /* smartTank tick size. Horizontal Tank tick height = Vertical Tank tick width. */\r\n --smart-tank-minor-tick-size: 5px;\r\n /* smartTank minor tick size. */\r\n --smart-tank-minimum-track-size: 6px;\r\n /* smartTank horizontal track min-height, vertical track min-width */\r\n /* Tabs */\r\n --smart-tabs-header-button-size: 20px;\r\n /* smartTabs header buttons size. Horizontal Tabs header buttons width = Vertical Tab header buttons height. */\r\n --smart-tabs-animation-duration: 0.5s;\r\n /* smartTabs animation duration */\r\n --smart-tabs-default-width: var(--smart-box-width);\r\n /* smartTabs default width */\r\n --smart-tabs-default-height: var(--smart-box-height);\r\n /* smartTabs default height */\r\n --smart-tabs-header-padding: 0px;\r\n /* Defines Tabs header padding. */\r\n --smart-tabs-header-offset: 0px;\r\n /* Defines Tabs header offset. */\r\n --smart-tab-item-padding: 12px 16px;\r\n /* Defines vertical and horizontal padding of tab items. */\r\n --smart-tab-item-offset: 5px;\r\n /* Default tab item offset. */\r\n --smart-tab-item-initial-offset: 5px;\r\n /* Initial tab item offset. */\r\n --smart-tab-item-text-transform: uppercase;\r\n /* Tab item text capitalization. */\r\n /* Time Picker */\r\n --smart-time-picker-default-width: var(--smart-editor-width);\r\n /* smartTimePicker default width */\r\n --smart-time-picker-default-height: calc(12 * var(--smart-editor-height));\r\n /* smartTimePicker default height */\r\n /* Tooltip */\r\n --smart-tooltip-arrow-width: 6px;\r\n /* Default smartTooltip arrow width */\r\n --smart-tooltip-arrow-color: var(--smart-secondary);\r\n /* smartTooltip arrow color */\r\n --smart-tooltip-arrow-translate: 0;\r\n /* smartTooltip arrow translation (transformation) */\r\n --smart-tooltip-padding: 4px 8px;\r\n /* smartTooltip padding */\r\n --smart-tooltip-content-shadow: none;\r\n /* smartTooltip content box-shadow */\r\n /* Toast */\r\n --smart-toast-item-icon: '';\r\n /* Code of toast item icon */\r\n --smart-toast-container-default-width: var(--smart-bar-width);\r\n /* Default width of the smartToast's containers, positioned top-left, top-right, bottom-left, bottom-right */\r\n --smart-toast-header-height: 20px;\r\n /* smartToast header height */\r\n --smart-toast-info-background: var(--smart-info);\r\n /* Background color for type info */\r\n --smart-toast-info-color: var(--smart-info-color);\r\n /* Text color for type info */\r\n --smart-toast-warning-background: var(--smart-warning);\r\n /* Background color for type warning */\r\n --smart-toast-warning-color: var(--smart-warning-color);\r\n /* Text color for type warning */\r\n --smart-toast-error-background: var(--smart-error);\r\n /* Background color for type error */\r\n --smart-toast-error-color: var(--smart-error-color);\r\n /* Text color for type error */\r\n --smart-toast-success-background: var(--smart-success);\r\n /* Background color for type success */\r\n --smart-toast-success-color: var(--smart-success-color);\r\n /* Text color for type success */\r\n /* Tree */\r\n --smart-tree-default-width: var(--smart-box-width);\r\n /* smartTree default width */\r\n --smart-tree-default-height: var(--smart-box-height);\r\n /* smartTree default height */\r\n --smart-tree-scroll-button-size: 20px;\r\n /* smartTree scroll buttons size */\r\n --smart-tree-lines-style: dashed;\r\n /* Default style of the connecting tree lines. */\r\n --smart-tree-indent: 16px;\r\n /* Defines the indent(hierarchy offset) size of the tree items. */\r\n --smart-tree-lines-color: var(--smart-border);\r\n /* Defines the color of the connecting lines. */\r\n --smart-tree-lines-width: 1px;\r\n /* Defines the width of the connecting lines. */\r\n --smart-tree-item-label-height: 36px;\r\n /* Defines the height of tree item labels. */\r\n --smart-tree-item-padding: 9px 12px;\r\n /* Defines the padding of the tree items. */\r\n --smart-tree-item-vertical-offset: 3px;\r\n /* Defines the vertical offset of the tree items. */\r\n --smart-tree-item-horizontal-offset: 3px;\r\n /* Defines the horizontal offset of the tree items. */\r\n /* Text Box */\r\n --smart-text-box-default-width: var(--smart-editor-width);\r\n /* Text Box default width. */\r\n --smart-text-box-default-height: var(--smart-editor-height);\r\n /* Text Box default height. */\r\n /* Validation panel */\r\n --smart-validation-panel-description-width: 20%;\r\n --smart-validation-panel-content-width: 80%;\r\n /* Validation panel - appearance */\r\n --smart-validation-panel-appearance-vertical-offset: 10px;\r\n --smart-validation-panel-appearance-reset-button-left-offset: 5px;\r\n --smart-validation-panel-appearance-textbox-vertical-offset: 5px;\r\n --smart-validation-panel-appearance-reset-button-color: var(--smart-primary);\r\n /* Validation panel - Criteria container */\r\n --smart-validation-panel-criteria-row-margin-top: 10px;\r\n --smart-validation-panel-criteria-container-vertical-offset: 10px;\r\n --smart-validation-panel-criteria-container-input-width: 180px;\r\n --smart-validation-panel-criteria-container-input-horizontal-offset: 2px;\r\n --smart-validation-panel-criteria-container-textbox-width: 80px;\r\n --smart-validation-panel-criteria-container-textbox-horizontal-offset: 2px;\r\n --smart-validation-panel-criteria-container-text-between-inputs-offset: 5px;\r\n /* Validation panel - Invalid data */\r\n --smart-validation-panel-invalid-data-vertical-offset: 10px;\r\n /* Validation panel - Footer */\r\n --smart-validation-panel-footer-button-color: #188038;\r\n --smart-validation-panel-footer-button-background: white;\r\n --smart-validation-panel-footer-vertical-offset: 20px;\r\n --smart-validation-panel-footer-button-horizontal-offset: 5px;\r\n --smart-validation-panel-footer-remove-validation-button-color: var(--smart-validation-panel-footer-button-color);\r\n --smart-validation-panel-footer-cancel-button-color: var(--smart-validation-panel-footer-button-color);\r\n --smart-validation-panel-footer-save-button-color: var(--smart-validation-panel-footer-button-background);\r\n --smart-validation-panel-footer-save-button-background: var(--smart-validation-panel-footer-button-color);\r\n /*Password Text Box*/\r\n --smart-password-text-box-default-width: var(--smart-editor-width);\r\n /* smartPasswordTextBox default width */\r\n --smart-password-text-box-default-height: var(--smart-editor-height);\r\n /* smartPasswordTextBox default height */\r\n /* Pager */\r\n --smart-pager-default-width: var(--smart-bar-width);\r\n /* default pager width */\r\n --smart-pager-default-height: var(--smart-bar-height);\r\n /* default pager height */\r\n --smart-pager-button-width: 'auto';\r\n /* default pager button width */\r\n --smart-pager-button-height: 32px;\r\n /* default pager button height */\r\n --smart-pager-page-size-selector-width: 60px;\r\n /* Default page size selector width. */\r\n --smart-pager-page-index-selector-width: 32px;\r\n /* default pager item width */\r\n --smart-pager-page-index-selector-height: 32px;\r\n /* default pager item height */\r\n --smart-pager-page-index-ellipsis-selector-width: 32px;\r\n /* default pager ellipsis width */\r\n --smart-pager-page-index-ellipsis-selector-height: 32px;\r\n /* default pager ellipsis width */\r\n --smart-pager-page-index-selector-horizontal-offset: 8px;\r\n /* default pager ellipsis width */\r\n --smart-pager-padding: 2px;\r\n /* Default padding. */\r\n --smart-pager-input-width: 50px;\r\n /* Default width of the pager input. */\r\n /*ScrollViewer*/\r\n --smart-scroll-viewer-min-width: none;\r\n --smart-scroll-viewer-max-width: none;\r\n --smart-scroll-viewer-min-height: none;\r\n --smart-scroll-viewer-max-height: none;\r\n /*Scheduler*/\r\n --smart-scheduler-default-height: auto;\r\n /* Sets the default height of the smartScheduler */\r\n --smart-scheduler-default-width: auto;\r\n /* Sets the default width of the smartScheduler */\r\n --smart-scheduler-item-size: auto;\r\n /* Sets the default size of the view selection items insinde the Timeline Header */\r\n --smart-scheduler-timeline-cell-width: auto;\r\n /* Sets the default width of the cells inside the Timeline */\r\n --smart-scheduler-timeline-cell-height: 50px;\r\n /* Sets the default height of the cells inside the Timeline */\r\n --smart-scheduler-timeline-cell-min-width: 70px;\r\n /* Sets the default min-width of the cells inside the Timeline */\r\n --smart-scheduler-timeline-cell-min-height: 35px;\r\n /* Sets the min-height of the cells inside the Timeline */\r\n --smart-scheduler-header-height: 50px;\r\n /* Sets the height of the header */\r\n --smart-scheduler-header-today-button-size: 70px;\r\n /* Scheduler header Today Button width */\r\n --smart-scheduler-header-date-button-max-size: auto;\r\n /* Sets the size of the Header Date Selection Button*/\r\n --smart-scheduler-header-navigation-button-size: 30px;\r\n /* Sets the size of the header buttons */\r\n --smart-scheduler-footer-height: var(--smart-scheduler-header-height);\r\n /* The height of the footer */\r\n --smart-scheduler-header-box-shadow: initial;\r\n /* Sets a Box shadow to the Timeline header */\r\n --smart-scheduler-header-padding: 10px;\r\n /* Sets a the padding for the header/footer */\r\n --smart-scheduler-timeline-header-cell-padding: 5px;\r\n /* Sets a the padding for the header/footer cells */\r\n --smart-scheduler-header-menu-button-size: auto;\r\n /* Sets the size for the Header menu button */\r\n --smart-scheduler-timeline-weekend-color: var(--smart-background);\r\n /* Sets the background color for the weekend cells */\r\n --smart-scheduler-timeline-nonworking-color: var(--smart-gantt-chart-timeline-nonworking-color);\r\n /* Sets the background color for nonworking days/hours cells */\r\n --smart-scheduler-timeline-all-day-label-font-weight: 600;\r\n /* Sets a the font-weight of the All day label */\r\n --smart-scheduler-timeline-header-horizontal-cells-size: 40px;\r\n /* Sets a the horizontal header cells size */\r\n --smart-scheduler-timeline-header-horizontal-label-padding: initial;\r\n /* Sets a the horizontal header cells label padding */\r\n --smart-scheduler-timeline-header-horizontal-details-size: var(--smart-scheduler-timeline-header-horizontal-cells-size);\r\n /* Sets the size of the Horizontal Details Header */\r\n --smart-scheduler-timeline-header-horizontal-group-size: var(--smart-scheduler-timeline-header-horizontal-cells-size);\r\n /* Sets the size of the Horizontal Group Header */\r\n --smart-scheduler-timeline-header-vertical-cells-size: 100px;\r\n /* Sets the vertical header cell size */\r\n --smart-scheduler-timeline-header-vertical-label-padding: initial;\r\n /* Sets the vertical header cells padding */\r\n --smart-scheduler-timeline-header-vertical-details-size: var(--smart-scheduler-timeline-header-vertical-cells-size);\r\n /* Sets the size of the Vertical Details Header */\r\n --smart-scheduler-timeline-header-vertical-group-size: var(--smart-scheduler-timeline-header-vertical-cells-size);\r\n /* Sets the size of the Vertical Group Header */\r\n --smart-scheduler-timeline-header-all-day-cells-size: 75px;\r\n /* Sets the All Day View height */\r\n --smart-scheduler-timeline-group-separator-background: var(--smart-outline);\r\n /* Sets the color for the group separator */\r\n --smart-scheduler-timeline-group-separator-size: var(--smart-border-width);\r\n /* Sets the group cell separator size */\r\n --smart-scheduler-timeline-group-white-space: nowrap;\r\n /* Sets the white-space property for the Header Group cells */\r\n --smart-scheduler-timeline-group-header-offset: calc(-50% - var(--smart-scheduler-timeline-header-cell-padding));\r\n /* Sets the label offset for the header cells when groupByDate is enabled */\r\n --smart-scheduler-current-time-indicator-background: var(--smart-primary);\r\n /* Current Time Indicator background-color*/\r\n --smart-scheduler-current-time-indicator-size: 1px;\r\n /* Current Time Indicator size(width/height depending on the view orientation) */\r\n --smart-scheduler-current-time-indicator-header-size: 2px;\r\n /* Current Time Indicator size(width/height) inside the Headers */\r\n --smart-scheduler-current-time-indicator-arrow-size: 7px;\r\n /* Current Time Indicator arrow size */\r\n --smart-scheduler-shader-background: rgba(var(--smart-border-rgb), .5);\r\n /* Shade Until Current Time background */\r\n --smart-scheduler-view-background: transparent;\r\n --smart-scheduler-view-line-size: var(--smart-border-width);\r\n /* Timeline lines size */\r\n --smart-scheduler-view-horizontal-line-color: var(--smart-border);\r\n /* Horizontal timeline line color */\r\n --smart-scheduler-view-vertical-line-color: var(--smart-border);\r\n /* Vertical timeline line color */\r\n --smart-scheduler-day-week-view-vertical-line-size: var(--smart-scheduler-view-line-size);\r\n /* Vertical line size in 'day' and 'week' views */\r\n --smart-scheduler-day-week-view-vertical-line-color: var(--smart-border);\r\n /* Vertical timeline color in 'day' and 'week' views */\r\n --smart-scheduler-day-week-view-hour-size: var(--smart-scheduler-view-line-size);\r\n /* Horizontal line size for 'day', 'week'. Only the hour lines (excluding minutes) */\r\n --smart-scheduler-day-week-view-hour-color: var(--smart-border);\r\n /* Horizontal line color for 'day', 'week' views. Only the hour lines ( excluding the minutes) */\r\n --smart-scheduler-time-ruler-tick-size: 10px;\r\n /* Time ruler tick size. Applicable only to day/week views */\r\n --smart-scheduler-event-background-rgb: 52, 121, 186;\r\n /* Event background RGB */\r\n --smart-scheduler-event-background: rgba(var(--smart-scheduler-event-background-rgb), 1);\r\n /* Event background color */\r\n --smart-scheduler-legend-item-background: var(--smart-scheduler-event-background);\r\n /* The default background color for the legen items */\r\n --smart-scheduler-event-color: var(--smart-primary-color);\r\n /* Event color */\r\n --smart-scheduler-event-focus: rgba(var(--smart-scheduler-event-background-rgb), .9);\r\n /* Event focus background color */\r\n --smart-scheduler-event-color-focus: var(--smart-scheduler-event-color);\r\n /* Event focus color */\r\n --smart-scheduler-event-hover: rgba(var(--smart-scheduler-event-background-rgb), .8);\r\n /* Event hover background color */\r\n --smart-scheduler-event-color-hover: var(--smart-scheduler-event-color);\r\n /* Event hover color */\r\n --smart-scheduler-event-padding-agenda: 5px;\r\n /* Event padding in 'agenda' view only */\r\n --smart-scheduler-event-padding-basic: 2px;\r\n /* Event padding in all basic views */\r\n --smart-scheduler-event-padding-timeline: 2px;\r\n /* Event padding in all timeline views */\r\n --smart-scheduler-event-padding-all-day: 2px;\r\n /* Event padding for events inside AllDay container */\r\n --smart-scheduler-event-content-padding: 5px;\r\n /* Event content padding */\r\n --smart-scheduler-event-label-font-size: var(--smart-font-size);\r\n /* Event label font size */\r\n --smart-scheduler-event-time-font-size: calc(var(--smart-font-size) - 3px);\r\n /* Event time label font size */\r\n --smart-scheduler-event-time-font-size-agenda: var(--smart-font-size);\r\n /* Event time font size for 'agenda' view */\r\n --smart-scheduler-event-time-font-weight-agenda: 600;\r\n /* Event time label font weight for 'agenda' view */\r\n --smart-scheduler-event-time-opacity-agenda: 1;\r\n /* Event time label opacity for 'agenda' view */\r\n --smart-scheduler-event-time-opacity: 0.7;\r\n /* Event time label opacity */\r\n --smart-scheduler-event-icon-size: 30px;\r\n /* Event icon (repeating, exception icon) size */\r\n --smart-scheduler-event-size: 30px;\r\n /* Sets the size of the timeline events in all views. Main variable. Used this variable to change the size of the events. Used by the Scheduler internally !*/\r\n --smart-scheduler-event-size-basic: var(--smart-scheduler-event-size);\r\n /* Sets the size of the events only in Basic views */\r\n --smart-scheduler-event-size-timeline: 60px;\r\n /* Sests the size of the events only in Timeline views. Should only be in pixels. Do not use calc()! */\r\n --smart-scheduler-event-collector-size: 24px;\r\n /* Event collector size */\r\n --smart-scheduler-event-collector-mobile-size: 28px;\r\n /* Event collector size on mobile */\r\n --smart-scheduler-event-collector-background: rgba(var(--smart-primary-rgb), 1);\r\n /* Event collector background color */\r\n --smart-scheduler-event-collector-color: var(--smart-primary-color);\r\n /* Event collector color */\r\n --smart-scheduler-event-collector-focus: rgba(var(--smart-primary-rgb), .9);\r\n /* Event collector background color on focus */\r\n --smart-scheduler-event-collector-color-focus: var(--smart-scheduler-event-collector-color);\r\n /* Event collector color on focus */\r\n --smart-scheduler-event-collector-hover: rgba(var(--smart-primary-rgb), .8);\r\n /* Event collector background colot on hover */\r\n --smart-scheduler-event-collector-color-hover: var(--smart-scheduler-event-collector-color);\r\n /* Event collector color on hover */\r\n --smart-scheduler-month-view-number-size: 24px;\r\n /* The size of the day number in month view */\r\n --smart-scheduler-status-size: 7px;\r\n /* The size of the day number in month view */\r\n --smart-scheduler-status-padding: 5px;\r\n /* The paddng between the content of the event and the satus strip */\r\n --smart-scheduler-status-background: transparent;\r\n /* The size of the day number in month view */\r\n --smart-scheduler-status-free-background: white;\r\n /* Event Status 'free' background color */\r\n --smart-scheduler-status-tentative-background: 0 -244rem / 5rem 5rem linear-gradient(45deg, #fd7e14 25%, rgba(0, 0, 0, .2) 25%, rgba(0, 0, 0, .2) 50%, #fd7e14 50%, #fd7e14 75%, rgba(0, 0, 0, .2) 75%, rgba(0, 0, 0, .2));\r\n /* Event status 'tentative' background color */\r\n --smart-scheduler-status-busy-background: #dc3545;\r\n /* Event status 'busy' background color */\r\n --smart-scheduler-status-out-of-office-background: #00a9e6;\r\n /* Event status 'out-of-office' background color */\r\n --smart-scheduler-cell-feedback-background: transparent;\r\n /* Cell feedback background color on event drop */\r\n --smart-scheduler-event-resize-indicator-size: var(--smart-gantt-chart-timeline-task-resize-indicator-width);\r\n /* Event resize indicator size */\r\n --smart-scheduler-event-resize-indicator-color: var(--smart-gantt-chart-timeline-task-resize-indicator-color);\r\n /* Event resize indicator color */\r\n --smart-scheduler-event-resize-indicator-border-color: var(--smart-gantt-chart-timeline-task-resize-indicator-border-color);\r\n /* Event resize indicator border color */\r\n --smart-scheduler-restricted-background: 0 -245rem / 12px 12px linear-gradient(135deg, rgba(255, 0, 0, .15) 25%, transparent 25%, transparent 50%, rgba(255, 0, 0, .15) 50%, rgba(255, 0, 0, .15) 75%, transparent 75%, transparent);\r\n /* Restricted cells background color */\r\n --smart-scheduler-event-item-size: 50px;\r\n /* Event menu item size(height) */\r\n --smart-scheduler-event-button-size: 30px;\r\n /* Event menu item button size(delete button) */\r\n --smart-scheduler-event-border-radius: initial;\r\n /* Event border radius */\r\n --smart-scheduler-event-collector-border-radius: 20px;\r\n /* Event collector border radius */\r\n --smart-scheduler-context-menu-max-height: calc(4 * var(--smart-scheduler-event-item-size));\r\n /* Context menu max-height */\r\n --smart-scheduler-context-menu-max-width: 300px;\r\n /* Context menu max-width */\r\n --smart-scheduler-window-header-height: var(--smart-gantt-chart-popup-window-header-height);\r\n /* Window editor header height */\r\n --smart-scheduler-window-footer-height: var(--smart-gantt-chart-popup-window-footer-height);\r\n /* Window editor footer height */\r\n --smart-scheduler-event-label-font-weight: 300;\r\n /* Event label font weight */\r\n --smart-scheduler-event-time-font-weight: 300;\r\n /* Event time label font weight */\r\n --smart-scheduler-event-item-label-font-weight: 600;\r\n /* Event menu item label font-weight */\r\n --smart-scheduler-toast-default-width: 400px;\r\n /* Toast(notifications) default width */\r\n --smart-scheduler-toast-default-height: 50px;\r\n /* Toast(notifications) default height */\r\n --smart-scheduler-shortcut-size: 28px;\r\n /* The width of the shortuct of the view items when placed inside a drop down */\r\n /*Window*/\r\n --smart-window-default-height: var(--smart-box-height);\r\n /* smartWindow default height */\r\n --smart-window-default-width: var(--smart-box-width);\r\n /* smartWindow default width */\r\n --smart-window-header-height: var(--smart-bar-height);\r\n /* smartWindow header height */\r\n --smart-window-footer-height: var(--smart-bar-height);\r\n /* smartWindow footer height */\r\n --smart-window-min-width: 250px;\r\n /* smartWindow header width */\r\n --smart-window-header-padding: 10px;\r\n /* smartWindow header and footer padding */\r\n --smart-window-footer-padding: 6.5px;\r\n /* smartWindow header and footer padding */\r\n --smart-window-header-button-size: 24px;\r\n /* Sets the size of the header buttons */\r\n --smart-window-header-icon-size: var(--smart-font-size);\r\n /* Sets the size of the header button icons */\r\n --smart-window-header-background: var(--smart-surface);\r\n /* Sets the background of the header section */\r\n --smart-window-footer-background: var(--smart-surface);\r\n /* Sets the size of the background of the footer section */\r\n --smart-window-footer-button-width: 100px;\r\n /* Sets the width of the footer buttons */\r\n --smart-window-content-padding: 10px;\r\n /* Sets the content section padding */\r\n /*Elevations*/\r\n --smart-elevation-24: 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12), 0 11px 15px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-16: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-12: 0 12px 17px 2px rgba(0, 0, 0, .14), 0 5px 22px 4px rgba(0, 0, 0, .12), 0 7px 8px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-8: 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 3px rgba(0, 0, 0, .12), 0 4px 15px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-6: 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12), 0 3px 5px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-4: 0 2px 4px 0 rgba(0, 0, 0, .14), 0 4px 5px 0 rgba(0, 0, 0, .12), 0 1px 10px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-2: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);\r\n --smart-elevation-1: 0 0 2px 0 rgba(0, 0, 0, .14), 0 2px 2px 0 rgba(0, 0, 0, .12), 0 1px 3px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-0: none;\r\n /* Breakpoints */\r\n --breakpoint-xs: 0;\r\n --breakpoint-sm: 576px;\r\n --breakpoint-md: 768px;\r\n --breakpoint-lg: 992px;\r\n --breakpoint-xl: 1200px;\r\n /*Misc*/\r\n --pseudo-element-height: 0;\r\n}\r\n\r\nbody[theme=\"dark\"],\r\n.smart-ui-component[theme=\"dark\"] {\r\n --smart-primary-rgb: 122, 202, 255;\r\n --smart-primary: rgb(var(--smart-primary-rgb));\r\n /* The theme primary color */\r\n --smart-primary-color: #242424;\r\n --smart-background: #242424;\r\n /* The theme background color. The background color appears behind scrollable content.*/\r\n --smart-background-color: #fff;\r\n /* Text color on top of a background background */\r\n --smart-surface: #333;\r\n /* The theme surface color. Surface colors affect surfaces of components, such as cards, sheets, and menus. */\r\n --smart-surface-color: #fff;\r\n /* Text color on top of a surface surface */\r\n --smart-disabled: #535353;\r\n /* The theme primary color in disabled state. */\r\n --smart-disabled-color: #fff;\r\n /* Text color on top of a theme background in disabled state */\r\n --smart-border: #464646;\r\n /* The theme background border color */\r\n --smart-editor-selection: var(--smart-primary);\r\n --smart-editor-selection-color: var(--smart-primary-color);\r\n --smart-ui-state-hover: #444;\r\n --smart-ui-state-color-hover: #fff;\r\n --smart-ui-state-border-hover: var(--smart-ui-state-hover);\r\n --smart-ui-state-active: var(--smart-primary);\r\n --smart-ui-state-color-active: var(--smart-primary-color);\r\n --smart-ui-state-border-active: var(--smart-primary);\r\n --smart-ui-state-focus: #555;\r\n --smart-ui-state-color-focus: #fff;\r\n --smart-ui-state-border-focus: #555;\r\n --smart-ui-state-selected: rgba(var(--smart-primary-rgb), .1);\r\n --smart-ui-state-color-selected: var(--smart-primary);\r\n --smart-ui-state-border-selected: rgba(var(--smart-primary-rgb), .1);\r\n --smart-alternation-index0-color: var(--smart-surface-color);\r\n /* Alternation color for index0 */\r\n --smart-alternation-index0-border: var(--smart-surface);\r\n /* Alternation border color for index0 */\r\n --smart-alternation-index0-background: var(--smart-surface);\r\n /* Alternation background color for index0 */\r\n --smart-alternation-index1-color: #111;\r\n /*Alternation color for index1 */\r\n --smart-alternation-index1-border: #9BBB59;\r\n /* Alternation border color for index1 */\r\n --smart-alternation-index1-background: #9BBB59;\r\n /* Alternation background color for index1 */\r\n --smart-alternation-index2-color: #fff;\r\n /*Alternation color for index2 */\r\n --smart-alternation-index2-border: #FC3752;\r\n /* Alternation border color for index2 */\r\n --smart-alternation-index2-background: #FC3752;\r\n /* Alternation background color for index2 */\r\n --smart-grid-cell-background-freeze: #242424;\r\n --smart-grid-cell-color-freeze: #fff;\r\n --smart-scroll-bar-background: #3E3E42;\r\n --smart-scroll-bar-track-background: var(--smart-scroll-bar-background);\r\n --smart-scroll-bar-border: #3E3E42;\r\n --smart-scroll-bar-thumb-background: #686868;\r\n --smart-scroll-bar-thumb-border: #686868;\r\n --smart-scroll-bar-thumb-background-hover: #9E9E9E;\r\n --smart-scroll-bar-thumb-border-hover: #9E9E9E;\r\n --smart-scroll-bar-thumb-background-active: #444;\r\n --smart-scroll-bar-thumb-border-active: #444;\r\n --smart-scroll-bar-button-background: #3E3E42;\r\n --smart-scroll-bar-button-border: #3E3E42;\r\n --smart-scroll-bar-button-color: #999999;\r\n --smart-scroll-bar-button-background-hover: #3E3E42;\r\n --smart-scroll-bar-button-border-hover: #3E3E42;\r\n --smart-scroll-bar-button-color-hover: var(--smart-primary);\r\n --smart-scroll-bar-button-background-active: #3E3E42;\r\n --smart-scroll-bar-button-border-active: #3E3E42;\r\n --smart-scroll-bar-button-color-active: var(--smart-primary);\r\n --smart-gantt-chart-timeline-nonworking-color: #3E3E42;\r\n --smart-scheduler-timeline-weekend-color: var(--smart-background);\r\n /* Sets the background color for the weekend cells */\r\n --smart-scheduler-timeline-nonworking-color: var(--smart-gantt-chart-timeline-nonworking-color);\r\n /* Sets the background color for nonworking days/hours cells */\r\n --smart-scheduler-event-background-rgb: 103, 176, 245;\r\n --smart-scheduler-event-background: rgba(var(--smart-scheduler-event-background-rgb), 1);\r\n --smart-scheduler-event-color: var(--smart-primary-color);\r\n --smart-scheduler-event-focus: rgba(var(--smart-scheduler-event-background-rgb), .9);\r\n --smart-scheduler-event-color-focus: var(--smart-scheduler-event-color);\r\n --smart-scheduler-event-hover: rgba(var(--smart-scheduler-event-background-rgb), .8);\r\n --smart-scheduler-event-color-hover: var(--smart-scheduler-event-color);\r\n --smart-scheduler-event-collector-background: rgba(var(--smart-primary-rgb), 1);\r\n --smart-scheduler-event-collector-color: var(--smart-primary-color);\r\n --smart-scheduler-event-collector-focus: rgba(var(--smart-primary-rgb), .9);\r\n --smart-scheduler-event-collector-color-focus: var(--smart-scheduler-event-collector-color);\r\n --smart-scheduler-event-collector-hover: rgba(var(--smart-primary-rgb), .8);\r\n --smart-scheduler-event-collector-color-hover: var(--smart-scheduler-event-collector-color);\r\n --smart-scheduler-status-free-background: white;\r\n --smart-scheduler-status-tentative-background: 0 -244rem / 5rem 5rem linear-gradient(45deg, #fd7e14 25%, rgba(0, 0, 0, .2) 25%, rgba(0, 0, 0, .2) 50%, #fd7e14 50%, #fd7e14 75%, rgba(0, 0, 0, .2) 75%, rgba(0, 0, 0, .2));\r\n --smart-scheduler-status-busy-background: #dc3545;\r\n --smart-scheduler-status-out-of-office-background: #00a9e6;\r\n --smart-scheduler-event-resize-indicator-color: var(--smart-gantt-chart-timeline-task-resize-indicator-color);\r\n --smart-scheduler-event-resize-indicator-border-color: var(--smart-gantt-chart-timeline-task-resize-indicator-border-color);\r\n --smart-scheduler-restricted-background: 0 -245rem / 12px 12px linear-gradient(135deg, rgba(255, 0, 0, .15) 25%, transparent 25%, transparent 50%, rgba(255, 0, 0, .15) 50%, rgba(255, 0, 0, .15) 75%, transparent 75%, transparent);\r\n}",""]),t.exports=e},232:function(t,e,r){"use strict";r.r(e),r.d(e,"UIChart",(function(){return x}));r(8),r(9),r(10),r(40),r(25),r(166),r(167),r(168),r(169),r(170),r(55);Smart.Component;Smart.DataAdapter;r(7);var n=r(2),o=r.n(n),a=r(3),i=r.n(a),s=r(1),l=r.n(s),d=r(138),m=r.n(d),c=r(4),h=r.n(c),u=r(5),p=r.n(u),f=r(6),g=r.n(f),b=r(17),v=r.n(b);const y=["@font-face { font-family: smart-icons; src: url('https://raw.githubusercontent.com/HTMLElements/smart-webcomponents/master/source/styles/font/smart-icons.woff2') format('woff2'); font-weight: normal; font-style: normal; }"],w=[o.a,i.a,l.a,v.a,m.a,h.a,p.a,g.a];class x extends HTMLElement{get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get animation(){return this.nativeElement?this.nativeElement.animation:void 0}set animation(t){if(this.nativeElement){this.nativeElement.animation=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("animation");this.nativeElement.hasAttribute("animation")?this.setAttribute("animation",e):this.removeAttribute("animation"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get animationDuration(){return this.nativeElement?this.nativeElement.animationDuration:void 0}set animationDuration(t){if(this.nativeElement){this.nativeElement.animationDuration=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("animation-duration");this.nativeElement.hasAttribute("animation-duration")?this.setAttribute("animation-duration",e):this.removeAttribute("animation-duration"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get backgroundColor(){return this.nativeElement?this.nativeElement.backgroundColor:void 0}set backgroundColor(t){if(this.nativeElement){this.nativeElement.backgroundColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("background-color");this.nativeElement.hasAttribute("background-color")?this.setAttribute("background-color",e):this.removeAttribute("background-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get backgroundImage(){return this.nativeElement?this.nativeElement.backgroundImage:void 0}set backgroundImage(t){if(this.nativeElement){this.nativeElement.backgroundImage=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("background-image");this.nativeElement.hasAttribute("background-image")?this.setAttribute("background-image",e):this.removeAttribute("background-image"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get borderLineColor(){return this.nativeElement?this.nativeElement.borderLineColor:void 0}set borderLineColor(t){if(this.nativeElement){this.nativeElement.borderLineColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("border-line-color");this.nativeElement.hasAttribute("border-line-color")?this.setAttribute("border-line-color",e):this.removeAttribute("border-line-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get borderLineWidth(){return this.nativeElement?this.nativeElement.borderLineWidth:void 0}set borderLineWidth(t){if(this.nativeElement){this.nativeElement.borderLineWidth=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("border-line-width");this.nativeElement.hasAttribute("border-line-width")?this.setAttribute("border-line-width",e):this.removeAttribute("border-line-width"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get caption(){return this.nativeElement?this.nativeElement.caption:void 0}set caption(t){if(this.nativeElement){this.nativeElement.caption=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("caption");this.nativeElement.hasAttribute("caption")?this.setAttribute("caption",e):this.removeAttribute("caption"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get clip(){return this.nativeElement?this.nativeElement.clip:void 0}set clip(t){if(this.nativeElement){this.nativeElement.clip=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("clip");this.nativeElement.hasAttribute("clip")?this.setAttribute("clip",e):this.removeAttribute("clip"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get colorScheme(){return this.nativeElement?this.nativeElement.colorScheme:void 0}set colorScheme(t){if(this.nativeElement){this.nativeElement.colorScheme=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("color-scheme");this.nativeElement.hasAttribute("color-scheme")?this.setAttribute("color-scheme",e):this.removeAttribute("color-scheme"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get columnSeriesOverlap(){return this.nativeElement?this.nativeElement.columnSeriesOverlap:void 0}set columnSeriesOverlap(t){if(this.nativeElement){this.nativeElement.columnSeriesOverlap=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("column-series-overlap");this.nativeElement.hasAttribute("column-series-overlap")?this.setAttribute("column-series-overlap",e):this.removeAttribute("column-series-overlap"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get crosshairsColor(){return this.nativeElement?this.nativeElement.crosshairsColor:void 0}set crosshairsColor(t){if(this.nativeElement){this.nativeElement.crosshairsColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("crosshairs-color");this.nativeElement.hasAttribute("crosshairs-color")?this.setAttribute("crosshairs-color",e):this.removeAttribute("crosshairs-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get crosshairsDashStyle(){return this.nativeElement?this.nativeElement.crosshairsDashStyle:void 0}set crosshairsDashStyle(t){if(this.nativeElement){this.nativeElement.crosshairsDashStyle=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("crosshairs-dash-style");this.nativeElement.hasAttribute("crosshairs-dash-style")?this.setAttribute("crosshairs-dash-style",e):this.removeAttribute("crosshairs-dash-style"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get crosshairsLineWidth(){return this.nativeElement?this.nativeElement.crosshairsLineWidth:void 0}set crosshairsLineWidth(t){if(this.nativeElement){this.nativeElement.crosshairsLineWidth=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("crosshairs-line-width");this.nativeElement.hasAttribute("crosshairs-line-width")?this.setAttribute("crosshairs-line-width",e):this.removeAttribute("crosshairs-line-width"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get dataSource(){return this.nativeElement?this.nativeElement.dataSource:void 0}set dataSource(t){if(this.nativeElement){this.nativeElement.dataSource=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("data-source");this.nativeElement.hasAttribute("data-source")?this.setAttribute("data-source",e):this.removeAttribute("data-source"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get description(){return this.nativeElement?this.nativeElement.description:void 0}set description(t){if(this.nativeElement){this.nativeElement.description=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("description");this.nativeElement.hasAttribute("description")?this.setAttribute("description",e):this.removeAttribute("description"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get disabled(){return this.nativeElement?this.nativeElement.disabled:void 0}set disabled(t){if(this.nativeElement){this.nativeElement.disabled=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("disabled");this.nativeElement.hasAttribute("disabled")?this.setAttribute("disabled",e):this.removeAttribute("disabled"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get draw(){return this.nativeElement?this.nativeElement.draw:void 0}set draw(t){if(this.nativeElement){this.nativeElement.draw=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("draw");this.nativeElement.hasAttribute("draw")?this.setAttribute("draw",e):this.removeAttribute("draw"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get drawBefore(){return this.nativeElement?this.nativeElement.drawBefore:void 0}set drawBefore(t){if(this.nativeElement){this.nativeElement.drawBefore=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("draw-before");this.nativeElement.hasAttribute("draw-before")?this.setAttribute("draw-before",e):this.removeAttribute("draw-before"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get enableAxisTextAnimation(){return this.nativeElement?this.nativeElement.enableAxisTextAnimation:void 0}set enableAxisTextAnimation(t){if(this.nativeElement){this.nativeElement.enableAxisTextAnimation=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("enable-axis-text-animation");this.nativeElement.hasAttribute("enable-axis-text-animation")?this.setAttribute("enable-axis-text-animation",e):this.removeAttribute("enable-axis-text-animation"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get enableCrosshairs(){return this.nativeElement?this.nativeElement.enableCrosshairs:void 0}set enableCrosshairs(t){if(this.nativeElement){this.nativeElement.enableCrosshairs=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("enable-crosshairs");this.nativeElement.hasAttribute("enable-crosshairs")?this.setAttribute("enable-crosshairs",e):this.removeAttribute("enable-crosshairs"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get greyScale(){return this.nativeElement?this.nativeElement.greyScale:void 0}set greyScale(t){if(this.nativeElement){this.nativeElement.greyScale=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("grey-scale");this.nativeElement.hasAttribute("grey-scale")?this.setAttribute("grey-scale",e):this.removeAttribute("grey-scale"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get legendLayout(){return this.nativeElement?this.nativeElement.legendLayout:void 0}set legendLayout(t){if(this.nativeElement){this.nativeElement.legendLayout=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("legend-layout");this.nativeElement.hasAttribute("legend-layout")?this.setAttribute("legend-layout",e):this.removeAttribute("legend-layout"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get locale(){return this.nativeElement?this.nativeElement.locale:void 0}set locale(t){if(this.nativeElement){this.nativeElement.locale=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("locale");this.nativeElement.hasAttribute("locale")?this.setAttribute("locale",e):this.removeAttribute("locale"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get localization(){return this.nativeElement?this.nativeElement.localization:void 0}set localization(t){if(this.nativeElement){this.nativeElement.localization=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("localization");this.nativeElement.hasAttribute("localization")?this.setAttribute("localization",e):this.removeAttribute("localization"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get messages(){return this.nativeElement?this.nativeElement.messages:void 0}set messages(t){if(this.nativeElement){this.nativeElement.messages=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("messages");this.nativeElement.hasAttribute("messages")?this.setAttribute("messages",e):this.removeAttribute("messages"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get padding(){return this.nativeElement?this.nativeElement.padding:void 0}set padding(t){if(this.nativeElement){this.nativeElement.padding=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("padding");this.nativeElement.hasAttribute("padding")?this.setAttribute("padding",e):this.removeAttribute("padding"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get renderEngine(){return this.nativeElement?this.nativeElement.renderEngine:void 0}set renderEngine(t){if(this.nativeElement){this.nativeElement.renderEngine=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("render-engine");this.nativeElement.hasAttribute("render-engine")?this.setAttribute("render-engine",e):this.removeAttribute("render-engine"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get rightToLeft(){return this.nativeElement?this.nativeElement.rightToLeft:void 0}set rightToLeft(t){if(this.nativeElement){this.nativeElement.rightToLeft=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("right-to-left");this.nativeElement.hasAttribute("right-to-left")?this.setAttribute("right-to-left",e):this.removeAttribute("right-to-left"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get seriesGroups(){return this.nativeElement?this.nativeElement.seriesGroups:void 0}set seriesGroups(t){if(this.nativeElement){this.nativeElement.seriesGroups=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("series-groups");this.nativeElement.hasAttribute("series-groups")?this.setAttribute("series-groups",e):this.removeAttribute("series-groups"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showBorderLine(){return this.nativeElement?this.nativeElement.showBorderLine:void 0}set showBorderLine(t){if(this.nativeElement){this.nativeElement.showBorderLine=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-border-line");this.nativeElement.hasAttribute("show-border-line")?this.setAttribute("show-border-line",e):this.removeAttribute("show-border-line"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showLegend(){return this.nativeElement?this.nativeElement.showLegend:void 0}set showLegend(t){if(this.nativeElement){this.nativeElement.showLegend=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-legend");this.nativeElement.hasAttribute("show-legend")?this.setAttribute("show-legend",e):this.removeAttribute("show-legend"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showToolTips(){return this.nativeElement?this.nativeElement.showToolTips:void 0}set showToolTips(t){if(this.nativeElement){this.nativeElement.showToolTips=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-tool-tips");this.nativeElement.hasAttribute("show-tool-tips")?this.setAttribute("show-tool-tips",e):this.removeAttribute("show-tool-tips"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showToolTipsOnAllSeries(){return this.nativeElement?this.nativeElement.showToolTipsOnAllSeries:void 0}set showToolTipsOnAllSeries(t){if(this.nativeElement){this.nativeElement.showToolTipsOnAllSeries=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-tool-tips-on-all-series");this.nativeElement.hasAttribute("show-tool-tips-on-all-series")?this.setAttribute("show-tool-tips-on-all-series",e):this.removeAttribute("show-tool-tips-on-all-series"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get theme(){return this.nativeElement?this.nativeElement.theme:void 0}set theme(t){if(this.nativeElement){this.nativeElement.theme=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("theme");this.nativeElement.hasAttribute("theme")?this.setAttribute("theme",e):this.removeAttribute("theme"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get titlePadding(){return this.nativeElement?this.nativeElement.titlePadding:void 0}set titlePadding(t){if(this.nativeElement){this.nativeElement.titlePadding=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("title-padding");this.nativeElement.hasAttribute("title-padding")?this.setAttribute("title-padding",e):this.removeAttribute("title-padding"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipBackground(){return this.nativeElement?this.nativeElement.toolTipBackground:void 0}set toolTipBackground(t){if(this.nativeElement){this.nativeElement.toolTipBackground=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-background");this.nativeElement.hasAttribute("tool-tip-background")?this.setAttribute("tool-tip-background",e):this.removeAttribute("tool-tip-background"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipFormatFunction(){return this.nativeElement?this.nativeElement.toolTipFormatFunction:void 0}set toolTipFormatFunction(t){if(this.nativeElement){this.nativeElement.toolTipFormatFunction=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-format-function");this.nativeElement.hasAttribute("tool-tip-format-function")?this.setAttribute("tool-tip-format-function",e):this.removeAttribute("tool-tip-format-function"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipHideDelay(){return this.nativeElement?this.nativeElement.toolTipHideDelay:void 0}set toolTipHideDelay(t){if(this.nativeElement){this.nativeElement.toolTipHideDelay=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-hide-delay");this.nativeElement.hasAttribute("tool-tip-hide-delay")?this.setAttribute("tool-tip-hide-delay",e):this.removeAttribute("tool-tip-hide-delay"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipLineColor(){return this.nativeElement?this.nativeElement.toolTipLineColor:void 0}set toolTipLineColor(t){if(this.nativeElement){this.nativeElement.toolTipLineColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-line-color");this.nativeElement.hasAttribute("tool-tip-line-color")?this.setAttribute("tool-tip-line-color",e):this.removeAttribute("tool-tip-line-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipShowDelay(){return this.nativeElement?this.nativeElement.toolTipShowDelay:void 0}set toolTipShowDelay(t){if(this.nativeElement){this.nativeElement.toolTipShowDelay=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-show-delay");this.nativeElement.hasAttribute("tool-tip-show-delay")?this.setAttribute("tool-tip-show-delay",e):this.removeAttribute("tool-tip-show-delay"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get valueAxis(){return this.nativeElement?this.nativeElement.valueAxis:void 0}set valueAxis(t){if(this.nativeElement){this.nativeElement.valueAxis=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("value-axis");this.nativeElement.hasAttribute("value-axis")?this.setAttribute("value-axis",e):this.removeAttribute("value-axis"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get xAxis(){return this.nativeElement?this.nativeElement.xAxis:void 0}set xAxis(t){if(this.nativeElement){this.nativeElement.xAxis=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("x-axis");this.nativeElement.hasAttribute("x-axis")?this.setAttribute("x-axis",e):this.removeAttribute("x-axis"),this._isUpdatingAttribute=!1}}static get observedAttributes(){return["style","class","animation","animation-duration","background-color","background-image","border-line-color","border-line-width","caption","clip","color-scheme","column-series-overlap","crosshairs-color","crosshairs-dash-style","crosshairs-line-width","data-source","description","disabled","draw","draw-before","enable-axis-text-animation","enable-crosshairs","grey-scale","legend-layout","locale","localization","messages","padding","render-engine","right-to-left","series-groups","show-border-line","show-legend","show-tool-tips","show-tool-tips-on-all-series","theme","title-padding","tool-tip-background","tool-tip-format-function","tool-tip-hide-delay","tool-tip-line-color","tool-tip-show-delay","value-axis","x-axis"]}get properties(){return["animation","animationDuration","backgroundColor","backgroundImage","borderLineColor","borderLineWidth","caption","clip","colorScheme","columnSeriesOverlap","crosshairsColor","crosshairsDashStyle","crosshairsLineWidth","dataSource","description","disabled","draw","drawBefore","enableAxisTextAnimation","enableCrosshairs","greyScale","legendLayout","locale","localization","messages","padding","renderEngine","rightToLeft","seriesGroups","showBorderLine","showLegend","showToolTips","showToolTipsOnAllSeries","theme","titlePadding","toolTipBackground","toolTipFormatFunction","toolTipHideDelay","toolTipLineColor","toolTipShowDelay","valueAxis","xAxis"]}get onAnnotationClick(){return this._onAnnotationClick}set onAnnotationClick(t){this._onAnnotationClick=t}get onAnnotationMouseenter(){return this._onAnnotationMouseenter}set onAnnotationMouseenter(t){this._onAnnotationMouseenter=t}get onAnnotationMouseleave(){return this._onAnnotationMouseleave}set onAnnotationMouseleave(t){this._onAnnotationMouseleave=t}get onClick(){return this._onClick}set onClick(t){this._onClick=t}get onMouseout(){return this._onMouseout}set onMouseout(t){this._onMouseout=t}get onMouseover(){return this._onMouseover}set onMouseover(t){this._onMouseover=t}get onRangeSelectionChanged(){return this._onRangeSelectionChanged}set onRangeSelectionChanged(t){this._onRangeSelectionChanged=t}get onRangeSelectionChanging(){return this._onRangeSelectionChanging}set onRangeSelectionChanging(t){this._onRangeSelectionChanging=t}get onRefreshBegin(){return this._onRefreshBegin}set onRefreshBegin(t){this._onRefreshBegin=t}get onRefreshEnd(){return this._onRefreshEnd}set onRefreshEnd(t){this._onRefreshEnd=t}get onToggle(){return this._onToggle}set onToggle(t){this._onToggle=t}constructor(){super(),this._onAnnotationClick=null,this._onAnnotationMouseenter=null,this._onAnnotationMouseleave=null,this._onClick=null,this._onMouseout=null,this._onMouseover=null,this._onRangeSelectionChanged=null,this._onRangeSelectionChanging=null,this._onRefreshBegin=null,this._onRefreshEnd=null,this._onToggle=null}get eventListeners(){return["onAnnotationClick","onAnnotationMouseenter","onAnnotationMouseleave","onClick","onMouseout","onMouseover","onRangeSelectionChanged","onRangeSelectionChanging","onRefreshBegin","onRefreshEnd","onToggle"]}addColorScheme(t,e){this.nativeElement.isRendered?this.nativeElement.addColorScheme(t,e):this.nativeElement.whenRendered(()=>{this.nativeElement.addColorScheme(t,e)})}async getColorScheme(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getColorScheme(t);e(r)})}))()}async getItemCoord(t,e,r){return await(()=>new Promise(n=>{this.nativeElement.whenRendered(()=>{const o=this.nativeElement.getItemCoord(t,e,r);n(o)})}))()}async getItemsCount(t,e){return await(()=>new Promise(r=>{this.nativeElement.whenRendered(()=>{const n=this.nativeElement.getItemsCount(t,e);r(n)})}))()}async getValueAxisLabels(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getValueAxisLabels(t);e(r)})}))()}async getValueAxisRect(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getValueAxisRect(t);e(r)})}))()}async getValueAxisValue(t,e){return await(()=>new Promise(r=>{this.nativeElement.whenRendered(()=>{const n=this.nativeElement.getValueAxisValue(t,e);r(n)})}))()}async getXAxisLabels(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getXAxisLabels(t);e(r)})}))()}async getXAxisRect(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getXAxisRect(t);e(r)})}))()}async getXAxisValue(t,e){return await(()=>new Promise(r=>{this.nativeElement.whenRendered(()=>{const n=this.nativeElement.getXAxisValue(t,e);r(n)})}))()}hideSerie(t,e,r){this.nativeElement.isRendered?this.nativeElement.hideSerie(t,e,r):this.nativeElement.whenRendered(()=>{this.nativeElement.hideSerie(t,e,r)})}hideToolTip(t){this.nativeElement.isRendered?this.nativeElement.hideToolTip(t):this.nativeElement.whenRendered(()=>{this.nativeElement.hideToolTip(t)})}print(){this.nativeElement.isRendered?this.nativeElement.print():this.nativeElement.whenRendered(()=>{this.nativeElement.print()})}refresh(){this.nativeElement.isRendered?this.nativeElement.refresh():this.nativeElement.whenRendered(()=>{this.nativeElement.refresh()})}removeColorScheme(t){this.nativeElement.isRendered?this.nativeElement.removeColorScheme(t):this.nativeElement.whenRendered(()=>{this.nativeElement.removeColorScheme(t)})}saveAsJPEG(t){this.nativeElement.isRendered?this.nativeElement.saveAsJPEG(t):this.nativeElement.whenRendered(()=>{this.nativeElement.saveAsJPEG(t)})}saveAsPNG(t){this.nativeElement.isRendered?this.nativeElement.saveAsPNG(t):this.nativeElement.whenRendered(()=>{this.nativeElement.saveAsPNG(t)})}saveAsPDF(t,e){this.nativeElement.isRendered?this.nativeElement.saveAsPDF(t,e):this.nativeElement.whenRendered(()=>{this.nativeElement.saveAsPDF(t,e)})}showSerie(t,e,r){this.nativeElement.isRendered?this.nativeElement.showSerie(t,e,r):this.nativeElement.whenRendered(()=>{this.nativeElement.showSerie(t,e,r)})}showToolTip(t,e,r,n,o){this.nativeElement.isRendered?this.nativeElement.showToolTip(t,e,r,n,o):this.nativeElement.whenRendered(()=>{this.nativeElement.showToolTip(t,e,r,n,o)})}update(){this.nativeElement.isRendered?this.nativeElement.update():this.nativeElement.whenRendered(()=>{this.nativeElement.update()})}componentDidRender(t){const e=this,r={},n={};let o=null;for(let t in e.props)"children"!==t&&("style"!==t?t.startsWith("on")&&-1===e.properties.indexOf(t)?n[t]=e.props[t]:r[t]=e.props[t]:o=e.props[t]);for(let t in e.attributes){const r=e.attributes[t].name;if(r)if("class"!==r)"style"===r&&e.nativeElement.setAttribute(r,e.getAttribute(r)),-1!==e.properties.indexOf(r.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()})))&&e.nativeElement.setAttribute(r,e.getAttribute(r));else{const t=e.getAttribute(r).trim().split(" ");for(let r in t)e.nativeElement.classList.contains(t[r])||""===t[r]||e.nativeElement.classList.add(t[r])}}for(let t in r)if("class"!==t&&"className"!==t){if(r[t]!==e.nativeElement[t]){const n=t=>t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}));"hover"!==t&&"active"!==t&&"focus"!==t&&"selected"!==t||e.nativeElement.setAttribute(t,"");const o=n(t);e.nativeElement[o]=r[t]}}else{const n=r[t].trim().split(" ");for(let t in n)e.nativeElement.classList.contains(n[t])||""===n[t]||e.nativeElement.classList.add(n[t])}for(let t in n)e[t]=n[t],e.nativeElement[t.toLowerCase()]=n[t];if(o)for(let t in o)e.nativeElement.style[t]=o[t]}componentDidMount(){this.componentDidRender(!0)}componentDidUpdate(){this.componentDidRender(!1)}componentWillUnmount(){const t=this;if(t.nativeElement){t.nativeElement.whenRenderedCallbacks=[];for(let e=0;e<t.eventListeners.length;e++){const r=t.eventListeners[e];t.nativeElement.removeEventListener(r.substring(2).toLowerCase(),t[r])}}}connectedCallback(){this.shadowRoot||this._render()}disconnectedCallback(){this.componentWillUnmount()}addStylesToElement(t,e){const r=document.createElement("style");r.type="text/css";for(let t=0;t<e.length;t++){let n=document.createTextNode(e[t]);n.textContent=n.textContent.replace(":root",":host"),r.appendChild(n)}if(document.adoptedStyleSheets){const e=new CSSStyleSheet;e.replaceSync(r.innerHTML),t.adoptedStyleSheets?t.adoptedStyleSheets=[e]:-1===document.adoptedStyleSheets.indexOf(e)&&(document.adoptedStyleSheets=[e])}else t.appendChild(r)}addStyle(t){const e=this.shadowRoot;if("string"==typeof t){const r=document.createElement("style");r.type="text/css";const n=document.createTextNode(t);r.appendChild(n),e.appendChild(r)}else e.appendChild(t)}attributeChangedCallback(t,e,r){const n=this;if(n.shadowRoot&&n.isReady&&!n._isUpdatingAttribute)if("class"!==t)n.nativeElement.setAttribute(t,r);else{const t=r.trim().split(" "),o=e.trim().split(" ");for(let t in o)""!==o[t]&&n.nativeElement.classList.remove(o[t]);for(let e in t)n.nativeElement.classList.contains(t[e])||""===t[e]||n.nativeElement.classList.add(t[e])}}_render(){const t=this;t.innerHTML='<template><smart-chart part="smart-chart" ref="chart">'+this.innerHTML+'</smart-chart ref="chart"></template>',t.attachShadow({mode:"open"}),w&&t.addStylesToElement(t.shadowRoot,w),y&&t.addStylesToElement(t,y),t.hasAttribute("style-url")&&t.addStyle("@import url("+t.getAttribute("style-url")+")"),t.classList.add("smart-element-init");(()=>{const e=t.querySelector("template"),r=e.content.cloneNode(!0);r.props=this.props,t.shadowRoot.appendChild(r),t.nativeElement=t.shadowRoot.querySelector("smart-chart"),t.classList.remove("smart-element-init"),t.componentDidMount(),e.remove(),t.isReady=!0,t.classList.add("smart-ui-component")})()}}e.default=x;window.customElements.get("smart-ui-chart")||window.customElements.define("smart-ui-chart",x)},25:function(t,e){Smart.Utilities.Assign("Draw",class{constructor(t,e){const r=this;r.host=t,r.renderEngine=e||"",r.refresh();const n=["clear","removeElement","attr","getAttr","line","circle","rect","path","pieslice","pieSlicePath","text","measureText"];for(let t in n)r._addFn(Smart.Utilities.Draw.prototype,n[t])}_addFn(t,e){t[e]||(t[e]=function(){return this.renderer[e].apply(this.renderer,arguments)})}_initRenderer(t){return this.createRenderer(this,t)}_internalRefresh(){const t=this;if(t.renderer||(t.host.innerHTML="",t._initRenderer(t.host)),"none"===window.getComputedStyle(t.host).display)return;const e=t.renderer;if(!e)return;const r=e.getRect();t._render({x:1,y:1,width:r.width,height:r.height})}_render(t){this._plotRect=t}refresh(){this._internalRefresh()}getSize(){const t=this._plotRect;return{width:t.width,height:t.height}}toGreyScale(t){if(-1===t.indexOf("#"))return t;const e=this.cssToRgb(t);e[0]=e[1]=e[2]=Math.round(.3*e[0]+.59*e[1]+.11*e[2]);const r=this.rgbToHex(e[0],e[1],e[2]);return"#"+r[0]+r[1]+r[2]}decToHex(t){return t.toString(16)}hexToDec(t){return parseInt(t,16)}rgbToHex(t,e,r){return[this.decToHex(t),this.decToHex(e),this.decToHex(r)]}hexToRgb(t,e,r){return[this.hexToDec(t),this.hexToDec(e),this.hexToDec(r)]}cssToRgb(t){return t.indexOf("rgb")<=-1?this.hexToRgb(t.substring(1,3),t.substring(3,5),t.substring(5,7)):t.substring(4,t.length-1).split(",")}hslToRgb(t){let e,r,n;const o=parseFloat(t[0]),a=parseFloat(t[1]),i=parseFloat(t[2]);if(0===a)e=r=n=i;else{const t=i<.5?i*(1+a):i+a-i*a,s=2*i-t;e=this.hueToRgb(s,t,o+1/3),r=this.hueToRgb(s,t,o),n=this.hueToRgb(s,t,o-1/3)}return[255*e,255*r,255*n]}hueToRgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}rgbToHsl(t){const e=parseFloat(t[0])/255,r=parseFloat(t[1])/255,n=parseFloat(t[2])/255,o=Math.max(e,r,n),a=Math.min(e,r,n);let i,s,l=(o+a)/2;if(o===a)i=s=0;else{const t=o-a;switch(s=l>.5?t/(2-o-a):t/(o+a),o){case e:i=(r-n)/t+(r<n?6:0);break;case r:i=(n-e)/t+2;break;case n:i=(e-r)/t+4}i/=6}return[i,s,l]}swap(t,e){const r=t;t=e,e=r}getNum(t){if(t.constructor!==Array){if(isNaN(t))return 0}else for(let e=0;e<t.length;e++)if(!isNaN(t[e]))return t[e];return 0}_ptRotate(t,e,r,n,o){const a=Math.sqrt(Math.pow(Math.abs(t-r),2)+Math.pow(Math.abs(e-n),2)),i=Math.asin((t-r)/a)+o;return{x:t=r+Math.cos(i)*a,y:e=n+Math.sin(i)*a}}log(t,e){return Math.log(t)/(e?Math.log(e):1)}_mod(t,e){const r=Math.abs(t>e?e:t);let n=1;if(0!==r)for(;r*n<100;)n*=10;return(t*=n)%(e*=n)/n}createRenderer(t,e){const r=t;let n=r.renderer=null;return document.createElementNS&&"HTML5"!==r.renderEngine&&(n=new Smart.Utilities.SvgRenderer(this)),null!==n||"HTML5"!==r.renderEngine&&void 0!==r.renderEngine||(n=new Smart.Utilities.HTML5Renderer(this)),n.init(e),r.renderer=n,n}getByPriority(t){let e=void 0;for(let r=0;r<t.length;r++){const n=t[r];if(null!=n&&""!==n){e=n;break}}return e}get(t,e,r){return void 0!==r?t[e][r]:t[e]}min(t,e){let r=NaN;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);(isNaN(r)||o<r)&&(r=o)}return r}max(t,e){let r=NaN;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);(isNaN(r)||o>r)&&(r=o)}return r}sum(t,e){let r=0;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);isNaN(o)||(r+=o)}return r}count(t,e){let r=0;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);isNaN(o)||r++}return r}avg(t,e){return this.sum(t,e)/Math.max(1,this.count(t,e))}filter(t,e){if(!e)return t;const r=[];for(let n=0;n<t.length;n++)e(t[n])&&r.push(t[n]);return r}scale(t,e,r,n){if(isNaN(t))return NaN;if((t<Math.min(e.min,e.max)||t>Math.max(e.min,e.max))&&(!n||!0!==n.ignore_range))return NaN;let o=NaN,a=1;if(void 0===e.type||"logarithmic"!==e.type){let r=Math.abs(e.max-e.min);r||(r=1),a=Math.abs(t-Math.min(e.min,e.max))/r}else if("logarithmic"===e.type){let r=e.base;isNaN(r)&&(r=10);let n=Math.min(e.min,e.max);n<=0&&(n=1);let o=Math.max(e.min,e.max);o<=0&&(o=1);const i=this.log(o,r);o=Math.pow(r,i);const s=this.log(n,r);n=Math.pow(r,s);const l=this.log(t,r);a=Math.abs(l-s)/(i-s)}if("logarithmic"===r.type){let t=r.base;isNaN(t)&&(t=10);const e=this.log(r.max,t),n=this.log(r.min,t);r.flip&&(a=1-a);const i=Math.min(n,e)+a*Math.abs(e-n);o=Math.pow(t,i)}else o=Math.min(r.min,r.max)+a*Math.abs(r.max-r.min),r.flip&&(o=Math.max(r.min,r.max)-o+r.min);return o}axis(t,e,r){if(r<=1)return[e,t];(isNaN(r)||r<2)&&(r=2);let n=0;for(;Math.round(t)!==t&&Math.round(e)!==e&&n<10;)t*=10,e*=10,n++;let o=(e-t)/r;for(;n<10&&Math.round(o)!==o;)t*=10,e*=10,o*=10,n++;const a=[1,2,5];let i,s=0;for(;;){let t=s%a.length,e=Math.floor(s/a.length),r=Math.pow(10,e)*a[t];if(t=(s+1)%a.length,e=Math.floor((s+1)/a.length),i=Math.pow(10,e)*a[t],o>=r&&o<i)break;s++}const l=i,d=[];let m=this.renderer._rnd(t,l,!1);const c=n<=0?1:Math.pow(10,n);for(;m<e+l;)d.push(m/c),m+=l;return d}_widgetToImage(t,e,r,n,o){let a=t;if(!a)return!1;void 0!==r&&""!==r||(r="image."+e);let i=a.renderEngine,s=a.animation;if(a.animation="none",a.renderEngine="HTML5",a.renderEngine!==i)try{a.refresh()}catch(t){return a.renderEngine=i,a.refresh(),a.animation=s,!1}let l=a.renderer.getContainer().firstElementChild,d=!0;"function"==typeof n&&(d=n(t,l));let m=!0;return d&&(m=this.exportImage(t,l,e,r,o)),a.renderEngine!==i&&(a.renderEngine=i,a.refresh(),a.animation=s),m}_saveAsImage(t,e){return this._widgetToImage(this,t,e)}saveAsPNG(t){return this._saveAsImage("png",t)}saveAsJPEG(t){return this._saveAsImage("jpeg",t)}exportImage(t,e,r,n,o){if(!e)return!1;let a="pdf"===r.toLowerCase();a&&(r="jpeg"),void 0!==n&&""!==n||(n="image."+r);let i=!0;if("print"!==r){try{if(e)if(a){o=o||"portrait";const a={content:{image:e.toDataURL("image/"+r),width:Math.min(e.width/1.35,"portrait"===o?515:762)},pageOrientation:o};try{pdfMake.createPdf(a).download(n)}catch(e){t.error(t.localize("missingReference",{files:"pdfmake.min.js"}))}}else{Smart.Utilities.DataExporter||t.error(t.localize("missingReference",{files:"smart.export.js"}));const o=new Smart.Utilities.DataExporter;e.toBlob((function(t){o.downloadFile(t,r,n)}))}}catch(t){i=!1}return i}{const t=window.open("","","width=800,height=500"),r=t.document.open(),n='<!DOCTYPE html><html><head><meta charset="utf-8" /><title>jQWidgets Chart</title></head><body><img src="'+e.toDataURL()+'" /></html>';try{r.write(n),r.close(),setTimeout((function(){t.print(),t.close()}),100)}catch(t){}}}}),Smart.Utilities.Assign("Renderer",class{constructor(t){this.draw=t,this._gradients={},this._toRadiansCoefficient=2*Math.PI/360}pieSlicePath(t,e,r,n,o,a,i){n||(n=1);const s=Math.abs(o-a),l=s>180?1:0;s>=360&&(a=o+359.99);const d=o*this._toRadiansCoefficient,m=a*this._toRadiansCoefficient;let c=t,h=t,u=e,p=e;const f=!isNaN(r)&&r>0;f&&(i=0);const g=Math.cos(d),b=Math.sin(d),v=Math.cos(m),y=Math.sin(m);if(i+r>0){if(i>0){const r=(s/2+o)*this._toRadiansCoefficient;t+=i*Math.cos(r),e-=i*Math.sin(r)}f&&(c=t+r*g,u=e-r*b,h=t+r*v,p=e-r*y)}const w=t+n*g,x=t+n*v,_=e-n*b,S=e-n*y;let C="";const k=Math.abs(Math.abs(a-o)-360)>.02;return f?(C="M "+h+","+p,C+=" a"+r+","+r,C+=" 0 "+l+",1 "+(c-h)+","+(u-p),C+=k?" L"+w+","+_:" M"+w+","+_,C+=" a"+n+","+n,C+=" 0 "+l+",0 "+(x-w)+","+(S-_),k&&(C+=" Z")):(C="M "+x+","+S,C+=" a"+n+","+n,C+=" 0 "+l+",1 "+(w-x)+","+(_-S),k&&(C+=" L"+t+","+e,C+=" Z")),C}measureText(t,e,r,n){const o=this._getTextParts(t,e,r),a=o.width;let i=o.height;!1===n&&(i/=.6);let s={};if(isNaN(e)&&(e=0),0===e)s={width:this._rup(a),height:this._rup(i)};else{const t=e*Math.PI*2/360,r=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t)),o=Math.abs(a*r+i*n),l=Math.abs(a*n+i*r);s={width:this._rup(l),height:this._rup(o)}}return n&&(s.textPartsInfo=o),s}alignTextInRect(t,e,r,n,o,a,i,s,l,d){const m=l*Math.PI*2/360,c=Math.sin(m),h=Math.cos(m),u=o*c,p=o*h;"center"===i||""===i||"undefined"===i?t+=r/2:"right"===i&&(t+=r),"center"===s||"middle"===s||""===s||"undefined"===s?e+=n/2:"bottom"===s?e+=n-a/2:"top"===s&&(e+=a/2);let f="middle";-1!==(d=d||"").indexOf("top")?f="top":-1!==d.indexOf("bottom")&&(f="bottom");let g="center";return-1!==d.indexOf("left")?g="left":-1!==d.indexOf("right")&&(g="right"),"center"===g?(t-=p/2,e-=u/2):"right"===g&&(t-=p,e-=u),"top"===f?(t-=a*c,e+=a*h):"middle"===f&&(t-=a*c/2,e+=a*h/2),{x:t=this._rup(t),y:e=this._rup(e)}}adjustColor(t,e){if("string"!=typeof t)return"#000000";if(-1===t.indexOf("#"))return t;const r=this.draw;let n=r.cssToRgb(t);const o=r.rgbToHsl(n);o[2]=Math.min(1,o[2]*e),o[1]=Math.min(1,o[1]*e*1.1),n=r.hslToRgb(o),t="#";for(let e=0;e<3;e++){let o=Math.round(n[e]);o=r.decToHex(o),1===o.toString().length&&(t+="0"),t+=o}return t.toUpperCase()}_rup(t){let e=Math.round(t);return t>e&&e++,e}_ptdist(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}_rnd(t,e,r,n){if(isNaN(t))return t;void 0===n&&(n=!0);let o=t-(!0===n?t%e:this._mod(t,e));return t===o?o:(r?t>o&&(o+=e):o>t&&(o-=e),1===e?Math.round(o):o)}_ptrnd(t){if(!document.createElementNS)return Math.round(t)===t?t:this._rnd(t,1,!1,!0);const e=this._rnd(t,.5,!1,!0);return.5!==Math.abs(e-Math.round(e))?e>t?e-.5:e+.5:e}_getContrastColor(t){if(void 0===t)return;let e=this.draw.hexToRgb(t.slice(1,3),t.slice(3,5),t.slice(5,7));return(.299*e[0]+.61*e[1]+.114*e[2])/255>.6?"#000000":"#FFFFFF"}}),Smart.Utilities.Assign("SvgRenderer",class extends Smart.Utilities.Renderer{constructor(t){super(t);this._svgns="http://www.w3.org/2000/svg",this._openGroups=[],this._clipId=0}init(t){const e=document.createElement("div");e.className="drawContainer",e.onselectstart=function(){return!1},t.appendChild(e),this.host=t,this.container=e;try{const t=document.createElementNS(this._svgns,"svg");t.setAttribute("version","1.1"),t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("overflow","hidden"),e.appendChild(t),this.canvas=t}catch(t){return!1}return this._id=(new Date).getTime(),this.clear(),!0}getType(){return"SVG"}refresh(){}getRect(){return{x:0,y:0,width:Math.max(this._rup(this.host.offsetWidth)-1,0),height:Math.max(this._rup(this.host.offsetHeight)-1,0)}}getContainer(){return this.container}clear(){for(;this.canvas.childNodes.length>0;)this.removeElement(this.canvas.firstElementChild);this._defaultParent=void 0,this._defs=document.createElementNS(this._svgns,"defs"),this._gradients={},this.canvas.appendChild(this._defs)}removeElement(t){if(void 0!==t)try{for(;t.firstChild;)this.removeElement(t.firstChild);t.parentNode?t.parentNode.removeChild(t):this.canvas.removeChild(t)}catch(t){}}beginGroup(){const t=this._activeParent(),e=document.createElementNS(this._svgns,"g");return t.appendChild(e),this._openGroups.push(e),e}endGroup(){0!==this._openGroups.length&&this._openGroups.pop()}_activeParent(){return 0===this._openGroups.length?this.canvas:this._openGroups[this._openGroups.length-1]}createClipRect(t){const e=document.createElementNS(this._svgns,"clipPath"),r=document.createElementNS(this._svgns,"rect");return this.attr(r,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"none"}),this._clipId=this._clipId||0,e.id="cl"+this._id+"_"+(++this._clipId).toString(),e.appendChild(r),this._defs.appendChild(e),e}getWindowHref(){let t=window.location.href;return t?(t=t.replace(/([\('\)])/g,"\\$1"),t=t.replace(/#.*$/,""),t):t}setClip(t,e){const r="url("+this.getWindowHref()+"#"+e.id+")";return this.attr(t,{"clip-path":r})}addHandler(t,e,r){t.addEventListener(e,r)}removeHandler(){}on(t,e,r){this.addHandler(t,e,r)}off(t,e,r){this.removeHandler(t,e,r)}shape(t,e){const r=document.createElementNS(this._svgns,t);if(r){for(let t in e)r.setAttribute(t,e[t]);return this._activeParent().appendChild(r),r}}_getTextParts(t,e,r){const n={width:0,height:0,parts:[]};if(void 0===t)return n;const o=t.toString().split("<br>"),a=this._activeParent(),i=document.createElementNS(this._svgns,"text");this.attr(i,r);for(let t=0;t<o.length;t++){const e=o[t],r=i.ownerDocument.createTextNode(e);let s;i.appendChild(r),a.appendChild(i);try{s=i.getBBox()}catch(t){}const l=this._rup(s.width),d=this._rup(.6*s.height);i.removeChild(r),n.width=Math.max(n.width,l),n.height+=d+(t>0?4:0),n.parts.push({width:l,height:d,text:e})}return a.removeChild(i),n}_measureText(t,e,r,n){return super.measureText(t,e,r,n)}measureText(t,e,r){return this._measureText(t,e,r,!1)}text(t,e,r,n,o,a,i,s,l,d,m){const c=this._measureText(t,a,i,!0,this).textPartsInfo,h=c.parts,u=this._getContrastColor(arguments[11]);let p;if(l||(l="center"),d||(d="center"),(h.length>1||s)&&(p=this.beginGroup()),s){const t=this.createClipRect({x:this._rup(e)-1,y:this._rup(r)-1,width:this._rup(n)+2,height:this._rup(o)+2});this.setClip(p,t)}let f=this._activeParent(),g=0,b=0;g=c.width,b=c.height,(isNaN(n)||n<=0)&&(n=g),(isNaN(o)||o<=0)&&(o=b);const v=n||0,y=o||0;let w=0;if(!a||0===a){let t;r+=b,"center"===d||"middle"===d?r+=(y-b)/2:"bottom"===d&&(r+=y-b),n||(n=g),o||(o=b),f=this._activeParent();for(let n=h.length-1;n>=0;n--){t=document.createElementNS(this._svgns,"text"),this.attr(t,i),this.attr(t,{cursor:"default"});const o=t.ownerDocument.createTextNode(h[n].text);t.appendChild(o);let a=e;const s=h[n].width,d=h[n].height;"center"===l?a+=(v-s)/2:"right"===l&&(a+=v-s),this.attr(t,{x:this._rup(a),y:this._rup(r+w),width:this._rup(s),height:this._rup(d)}),void 0!==u&&(t.style.fill=u),f.appendChild(t),w-=h[n].height+4}return p?(this.endGroup(),p):t}const x=this.alignTextInRect(e,r,n,o,g,b,l,d,a,m);e=x.x,r=x.y;const _=this.shape("g",{transform:"translate("+e+","+r+")"}),S=this.shape("g",{transform:"rotate("+a+")"});_.appendChild(S),w=0;for(let t=h.length-1;t>=0;t--){const e=document.createElementNS(this._svgns,"text");this.attr(e,i),this.attr(e,{cursor:"default"});const r=e.ownerDocument.createTextNode(h[t].text);e.appendChild(r);let n=0;const o=h[t].width,a=h[t].height;"center"===l?n+=(c.width-o)/2:"right"===l&&(n+=c.width-o),this.attr(e,{x:this._rup(n),y:this._rup(w),width:this._rup(o),height:this._rup(a)}),S.appendChild(e),w-=a+4}return f.appendChild(_),p&&this.endGroup(),_}line(t,e,r,n,o){const a=this.shape("line",{x1:t,y1:e,x2:r,y2:n});return this.attr(a,o),a}path(t,e){const r=this.shape("path");return r.setAttribute("d",t),e&&this.attr(r,e),r}rect(t,e,r,n,o){t=this._ptrnd(t),e=this._ptrnd(e),r=Math.max(1,this._rnd(r,1,!1)),n=Math.max(1,this._rnd(n,1,!1));const a=this.shape("rect",{x:t,y:e,width:r,height:n});return o&&this.attr(a,o),a}circle(t,e,r,n){const o=this.shape("circle",{cx:t,cy:e,r:r});return n&&this.attr(o,n),o}pieslice(t,e,r,n,o,a,i,s){const l=this.pieSlicePath(t,e,r,n,o,a,i),d=this.shape("path");return d.setAttribute("d",l),s&&this.attr(d,s),d}attr(t,e){if(t&&e)for(let r in e)"textContent"===r?t.textContent=e[r]:"width"===r||"height"===r?t.setAttribute(r,Math.max(0,e[r])):t.setAttribute(r,e[r])}removeAttr(t,e){if(t&&e)for(let r in e)"textContent"===r?t.textContent="":t.removeAttribute(e[r])}getAttr(t,e){return t.getAttribute(e)}_toLinearGradient(t,e,r){const n="grd"+this._id+t.replace("#","")+(e?"v":"h"),o="url("+this.getWindowHref()+"#"+n+")";if(this._gradients[o])return o;const a=document.createElementNS(this._svgns,"linearGradient");this.attr(a,{x1:"0%",y1:"0%",x2:e?"0%":"100%",y2:e?"100%":"0%",id:n});for(let e=0;e<r.length;e++){const n=r[e],o=document.createElementNS(this._svgns,"stop"),i="stop-color:"+this.adjustColor(t,n[1]);this.attr(o,{offset:n[0]+"%",style:i}),a.appendChild(o)}return this._defs.appendChild(a),this._gradients[o]=!0,o}_toRadialGradient(t,e,r){const n="grd"+this._id+t.replace("#","")+"r"+(void 0!==r?r.key:""),o="url("+this.getWindowHref()+"#"+n+")";if(this._gradients[o])return o;const a=document.createElementNS(this._svgns,"radialGradient");void 0===r?this.attr(a,{cx:"50%",cy:"50%",r:"100%",fx:"50%",fy:"50%",id:n}):this.attr(a,{cx:r.x,cy:r.y,r:r.outerRadius,id:n,gradientUnits:"userSpaceOnUse"});for(let r=0;r<e.length;r++){const n=e[r],o=document.createElementNS(this._svgns,"stop"),i="stop-color:"+this.adjustColor(t,n[1]);this.attr(o,{offset:n[0]+"%",style:i}),a.appendChild(o)}return this._defs.appendChild(a),this._gradients[o]=!0,o}}),Smart.Utilities.Assign("HTML5Renderer",class extends Smart.Utilities.Renderer{constructor(t){super(t);this._renderers=new Smart.Utilities.HTML5RenderHelpers(this)}init(t){try{this.host=t;const e=document.createElement("div"),r=document.createElement("canvas");e.className="chartContainer",e.style.position="relative",e.onselectstart=function(){return!1},r.id="__smartCanvasWrap",r.style.width="100%",r.style.height="100%",e.appendChild(r),t.appendChild(e),this.canvas=r,r.width=t.offsetWidth,r.height=t.offsetHeight,this.ctx=r.getContext("2d"),this._elements={},this._maxId=0,this._gradientId=0,this._gradients={},this._currentPoint={x:0,y:0},this._lastCmd="",this._pos=0}catch(t){return!1}return!0}getType(){return"HTML5"}getContainer(){return this.host.getElementsByClassName("chartContainer")[0]}getRect(){return{x:0,y:0,width:this.canvas.width-1,height:this.canvas.height-1}}beginGroup(){}endGroup(){}setClip(){}createClipRect(){}addHandler(){}removeHandler(){}on(t,e,r){this.addHandler(t,e,r)}off(t,e,r){this.removeHandler(t,e,r)}clear(){this._elements={},this._maxId=0,this._renderers._gradients={},this._gradientId=0}removeElement(t){void 0!==t&&this._elements[t.id]&&delete this._elements[t.id]}shape(t,e){let r={type:t,id:this._maxId++};for(let t in e)r[t]=e[t];return this._elements[r.id]=r,r}attr(t,e){for(let r in e)t[r]=e[r]}removeAttr(t,e){for(let r in e)delete t[e[r]]}rect(t,e,r,n,o){if(isNaN(t))throw'Invalid value for "x"';if(isNaN(e))throw'Invalid value for "y"';if(isNaN(r))throw'Invalid value for "width"';if(isNaN(n))throw'Invalid value for "height"';let a=this.shape("rect",{x:t,y:e,width:r,height:n});return o&&this.attr(a,o),a}path(t,e){let r=this.shape("path",e);return this.attr(r,{d:t}),r}line(t,e,r,n,o){return this.path("M "+t+","+e+" L "+r+","+n,o)}circle(t,e,r,n){let o=this.shape("circle",{x:t,y:e,r:r});return n&&this.attr(o,n),o}pieslice(t,e,r,n,o,a,i,s){let l=this.path(this.pieSlicePath(t,e,r,n,o,a,i),s);return this.attr(l,{x:t,y:e,innerRadius:r,outerRadius:n,angleFrom:o,angleTo:a}),l}_getCSSStyle(t){const e=document.createElement("div");e.className=t,e.style.position="absolute",e.style.visibility="hidden",this.host.appendChild(e);let r=window.getComputedStyle(e);return r={color:r.color,fontFamily:r.fontFamily,fontSize:r.fontSize,fontWeight:r.fontWeight},this.host.removeChild(e),r}_getTextParts(t,e,r){let n="Arial",o="10pt",a="";if(r&&r.class){let t=this._getCSSStyle(r.class);t.fontSize&&(o=t.fontSize),t.fontFamily&&(n=t.fontFamily),t.fontWeight&&(a=t.fontWeight)}this.ctx.font=a+" "+o+" "+n;let i={width:0,height:0,parts:[]},s=t.toString().split("<br>");for(let t=0;t<s.length;t++){let e=s[t],r=this.ctx.measureText(e).width,n=document.createElement("span");n.className="chart",n.font=this.ctx.font,n.textContent=e,this.host.appendChild(n);let o=.6*n.offsetHeight;this.host.removeChild(n),i.width=Math.max(i.width,this._rup(r)),i.height+=o+(t>0?4:0),i.parts.push({width:r,height:o,text:e})}return i}_measureText(t,e,r,n){return super.measureText(t,e,r,n)}measureText(t,e,r){return this._measureText(t,e,r,!1)}text(t,e,r,n,o,a,i,s,l,d,m){let c=this.shape("text",{text:t,x:e,y:r,width:n,height:o,angle:a,clip:s,halign:l,valign:d,rotateAround:m});if(i&&this.attr(c,i),c.fontFamily="Arial",c.fontSize="10pt",c.fontWeight="",c.color=this._getContrastColor(arguments[11]),i&&i.class){let t=this._getCSSStyle(i.class);c.fontFamily=t.fontFamily||c.fontFamily,c.fontSize=t.fontSize||c.fontSize,c.fontWeight=t.fontWeight||c.fontWeight,c.color=c.color||t.color}c.color=c.color||"#000000";let h=this._measureText(t,0,i,!0);return this.attr(c,{textPartsInfo:h.textPartsInfo,textWidth:h.width,textHeight:h.height}),(n<=0||isNaN(n))&&this.attr(c,{width:h.width}),(o<=0||isNaN(o))&&this.attr(c,{height:h.height}),c}_toLinearGradient(t,e,r){if(this._renderers._gradients[t])return t;let n=[];for(let e=0;e<r.length;e++)n.push({percent:r[e][0]/100,color:this.adjustColor(t,r[e][1])});let o="gr"+this._gradientId++;return this.createGradient(o,e?"vertical":"horizontal",n),o}_toRadialGradient(t,e){if(this._renderers._gradients[t])return t;let r=[];for(let n=0;n<e.length;n++)r.push({percent:e[n][0]/100,color:this.adjustColor(t,e[n][1])});let n="gr"+this._gradientId++;return this.createGradient(n,"radial",r),n}createGradient(t,e,r){this._renderers.createGradient(this,t,e,r)}refresh(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);for(let t in this._elements){let e=this._elements[t];this._renderers.setFillStyle(this,e),this._renderers.setStroke(this,e),this._renderers[this._elements[t].type](this.ctx,e)}}}),Smart.Utilities.Assign("HTML5RenderHelpers",class{constructor(t){this.HTML5Renderer=t,this._cmds="mlcazq"}ptrnd(t){if(.5===Math.abs(Math.round(t)-t))return t;let e=Math.round(t);return e<t&&(e-=1),e+.5}createGradient(t,e,r,n){t._gradients[e]={orientation:r,colorStops:n}}setStroke(t,e){let r=t.ctx,n=e["stroke-width"];r.strokeStyle=e.stroke||"transparent",r.lineWidth=0===n?.01:void 0!==n?n:1,void 0!==e["fill-opacity"]?r.globalAlpha=e["fill-opacity"]:void 0!==e.opacity?r.globalAlpha=e.opacity:r.globalAlpha=1,r.setLineDash&&(e["stroke-dasharray"]?r.setLineDash(e["stroke-dasharray"].split(",")):r.setLineDash([]))}setFillStyle(t,e){let r=t.ctx;if(r.fillStyle="transparent",void 0!==e["fill-opacity"]?r.globalAlpha=e["fill-opacity"]:void 0!==e.opacity?r.globalAlpha=e.opacity:r.globalAlpha=1,e.fill&&-1===e.fill.indexOf("#")&&t._gradients[e.fill]){let n,o="horizontal"!==t._gradients[e.fill].orientation,a="radial"===t._gradients[e.fill].orientation,i=this.ptrnd(e.x),s=this.ptrnd(e.y),l=this.ptrnd(e.x+(o?0:e.width)),d=this.ptrnd(e.y+(o?e.height:0));if(("circle"===e.type||"path"===e.type||"rect"===e.type)&&a){let t=this.ptrnd(e.x),o=this.ptrnd(e.y);const a=e.innerRadius||0,i=e.outerRadius||e.r||0;"rect"===e.type&&(t+=e.width/2,o+=e.height/2),n=r.createRadialGradient(t,o,a,t,o,i)}a||((isNaN(i)||isNaN(l)||isNaN(s)||isNaN(d))&&(i=0,s=0,l=o?0:r.canvas.width,d=o?r.canvas.height:0),n=r.createLinearGradient(i,s,l,d));let m=t._gradients[e.fill].colorStops;for(let t=0;t<m.length;t++)n.addColorStop(m[t].percent,m[t].color);r.fillStyle=n}else e.fill&&(r.fillStyle=e.fill)}rect(t,e){0!==e.width&&0!==e.height&&(t.fillRect(this.ptrnd(e.x),this.ptrnd(e.y),e.width,e.height),t.strokeRect(this.ptrnd(e.x),this.ptrnd(e.y),e.width,e.height))}circle(t,e){0!==e.r&&(t.beginPath(),t.arc(this.ptrnd(e.x),this.ptrnd(e.y),e.r,0,2*Math.PI,!1),t.closePath(),t.fill(),t.stroke())}_parsePoint(t){return{x:this._parseNumber(t),y:this._parseNumber(t)}}_parseNumber(t){let e,r=!1;for(e=this._pos;e<t.length;e++)if(t[e]>="0"&&t[e]<="9"||"."===t[e]||"e"===t[e]||"-"===t[e]&&!r||"-"===t[e]&&e>=1&&"e"===t[e-1])r=!0;else{if(r||" "!==t[e]&&","!==t[e])break;this._pos++}let n=parseFloat(t.substring(this._pos,e));if(!isNaN(n))return this._pos=e,n}_isRelativeCmd(t){return-1!==this._cmds.indexOf(t)}_parseCmd(t){for(let e=this._pos;e<t.length;e++){if(-1!==this._cmds.toLowerCase().indexOf(t[e].toLowerCase()))return this._pos=e+1,this._lastCmd=t[e],this._lastCmd;if(" "!==t[e]){if(t[e]>="0"&&t[e]<="9"){if(this._pos=e,""===this._lastCmd)break;return this._lastCmd}}else this._pos++}}_toAbsolutePoint(t){return{x:this._currentPoint.x+t.x,y:this._currentPoint.y+t.y}}path(t,e){let r=e.d;this._pos=0,this._lastCmd="";let n=void 0;for(this._currentPoint={x:0,y:0},t.beginPath();this._pos<r.length;){let e=this._parseCmd(r);if(void 0===e)break;if("M"!==e&&"m"!==e)if("L"!==e&&"l"!==e)if("A"!==e&&"a"!==e)if("Z"!==e&&"z"!==e||void 0===n)if("C"!==e&&"c"!==e)if("Q"!==e&&"q"!==e);else{let e=this._parsePoint(r),n=this._parsePoint(r);t.quadraticCurveTo(e.x,e.y,n.x,n.y),this._currentPoint=n}else{let e=this._parsePoint(r),n=this._parsePoint(r),o=this._parsePoint(r);t.bezierCurveTo(e.x,e.y,n.x,n.y,o.x,o.y),this._currentPoint=o}else t.lineTo(n.x,n.y),this._currentPoint=n;else{let n=this._parseNumber(r),o=this._parseNumber(r),a=this._parseNumber(r)*(Math.PI/180),i=this._parseNumber(r),s=this._parseNumber(r),l=this._parsePoint(r);if(this._isRelativeCmd(e)&&(l=this._toAbsolutePoint(l)),0===n||0===o)continue;let d=this._currentPoint,m={x:Math.cos(a)*(d.x-l.x)/2+Math.sin(a)*(d.y-l.y)/2,y:-Math.sin(a)*(d.x-l.x)/2+Math.cos(a)*(d.y-l.y)/2},c=Math.pow(m.x,2)/Math.pow(n,2)+Math.pow(m.y,2)/Math.pow(o,2);c>1&&(n*=Math.sqrt(c),o*=Math.sqrt(c));let h=(i===s?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(o,2)-Math.pow(n,2)*Math.pow(m.y,2)-Math.pow(o,2)*Math.pow(m.x,2))/(Math.pow(n,2)*Math.pow(m.y,2)+Math.pow(o,2)*Math.pow(m.x,2)));isNaN(h)&&(h=0);let u={x:h*n*m.y/o,y:h*-o*m.x/n},p={x:(d.x+l.x)/2+Math.cos(a)*u.x-Math.sin(a)*u.y,y:(d.y+l.y)/2+Math.sin(a)*u.x+Math.cos(a)*u.y},f=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},g=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},b=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))},v=b([1,0],[(m.x-u.x)/n,(m.y-u.y)/o]),y=[(m.x-u.x)/n,(m.y-u.y)/o],w=[(-m.x-u.x)/n,(-m.y-u.y)/o],x=b(y,w);g(y,w)<=-1&&(x=Math.PI),g(y,w)>=1&&(x=0),0===s&&x>0&&(x-=2*Math.PI),1===s&&x<0&&(x+=2*Math.PI);let _=n>o?n:o,S=n>o?1:n/o,C=n>o?o/n:1;t.translate(p.x,p.y),t.rotate(a),t.scale(S,C),t.arc(0,0,_,v,v+x,1-s),t.scale(1/S,1/C),t.rotate(-a),t.translate(-p.x,-p.y)}else{let e=this._parsePoint(r);if(void 0===e)break;t.lineTo(e.x,e.y),this._currentPoint=e}else{let e=this._parsePoint(r);if(void 0===e)break;t.moveTo(e.x,e.y),this._currentPoint=e,void 0===n&&(n=e)}}t.fill(),t.stroke(),t.closePath()}text(t,e){let r=this.ptrnd(e.x),n=this.ptrnd(e.y),o=this.ptrnd(e.width),a=this.ptrnd(e.height),i=e.halign,s=e.valign,l=e.angle,d=e.rotateAround,m=e.textPartsInfo,c=m.parts,h=e.clip;void 0===h&&(h=!0),t.save(),i||(i="center"),s||(s="center"),h&&(t.rect(r,n,o,a),t.clip());let u=e.textWidth,p=e.textHeight,f=o||0,g=a||0;if(t.fillStyle=e.color,t.font=e.fontWeight+" "+e.fontSize+" "+e.fontFamily,!l||0===l){n+=p,"center"===s||"middle"===s?n+=(g-p)/2:"bottom"===s&&(n+=g-p),o||(o=u),a||(a=p);let e=0;for(let o=c.length-1;o>=0;o--){let a=c[o],s=r,l=c[o].width;"center"===i?s+=(f-l)/2:"right"===i&&(s+=f-l),t.fillText(a.text,s,n+e),e-=a.height+(o>0?4:0)}return void t.restore()}let b=this.HTML5Renderer.alignTextInRect(r,n,o,a,u,p,i,s,l,d);r=b.x,n=b.y;let v=l*Math.PI*2/360;t.translate(r,n),t.rotate(v);let y=0,w=m.width;for(let e=c.length-1;e>=0;e--){let r=0;"center"===i?r+=(w-c[e].width)/2:"right"===i&&(r+=w-c[e].width),t.fillText(c[e].text,r,y),y-=c[e].height+4}t.restore()}}),Smart.Utilities.Assign("Plot",class{constructor(t){this.renderer=t}get(t,e,r){return void 0!==r?t[e][r]:t[e]}min(t,e){let r=NaN;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);(isNaN(r)||o<r)&&(r=o)}return r}max(t,e){let r=NaN;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);(isNaN(r)||o>r)&&(r=o)}return r}sum(t,e){let r=0;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);isNaN(o)||(r+=o)}return r}count(t,e){let r=0;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);isNaN(o)||r++}return r}avg(t,e){return this.sum(t,e)/Math.max(1,this.count(t,e))}filter(t,e){if(!e)return t;let r=[];for(let n=0;n<t.length;n++)e(t[n])&&r.push(t[n]);return r}scale(t,e,r,n){if(isNaN(t))return NaN;if((t<Math.min(e.min,e.max)||t>Math.max(e.min,e.max))&&(!n||!0!==n.ignore_range))return NaN;let o=NaN,a=1;if(void 0===e.type||"logarithmic"!==e.type){let r=Math.abs(e.max-e.min);r||(r=1),a=Math.abs(t-Math.min(e.min,e.max))/r}else if("logarithmic"===e.type){let r=e.base;isNaN(r)&&(r=10);let n=Math.min(e.min,e.max);n<=0&&(n=1);let o=Math.max(e.min,e.max);o<=0&&(o=1);let i=Math.log(o)/Math.log(r);o=Math.pow(r,i);let s=Math.log(n)/Math.log(r);n=Math.pow(r,s);let l=Math.log(t)/Math.log(r);a=Math.abs(l-s)/(i-s)}if("logarithmic"===r.type){let t=r.base;isNaN(t)&&(t=10);let e=Math.log(r.max)/Math.log(t),n=Math.log(r.min)/Math.log(t);r.flip&&(a=1-a);let i=Math.min(n,e)+a*Math.abs(e-n);o=Math.pow(t,i)}else o=Math.min(r.min,r.max)+a*Math.abs(r.max-r.min),r.flip&&(o=Math.max(r.min,r.max)-o+r.min);return o}axis(t,e,r){if(r<=1)return[e,t];(isNaN(r)||r<2)&&(r=2);let n=0;for(;Math.round(t)!==t&&Math.round(e)!==e&&n<10;)t*=10,e*=10,n++;let o=(e-t)/r;for(;n<10&&Math.round(o)!==o;)t*=10,e*=10,o*=10,n++;let a,i=[1,2,5],s=0;for(;;){let t=s%i.length,e=Math.floor(s/i.length),r=Math.pow(10,e)*i[t];if(t=(s+1)%i.length,e=Math.floor((s+1)/i.length),a=Math.pow(10,e)*i[t],o>=r&&o<a)break;s++}let l=a,d=[],m=this.renderer._rnd(t,l,!1),c=n<=0?1:Math.pow(10,n);for(;m<e+l;)d.push(m/c),m+=l;return d}})},3:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* all elements */\r\nsmart-accordion,\r\nsmart-button,\r\nsmart-toggle-button,\r\nsmart-repeat-button,\r\nsmart-switch-button,\r\nsmart-slider,\r\nsmart-led,\r\nsmart-tank,\r\nsmart-check-box,\r\nsmart-calendar,\r\nsmart-carousel,\r\nsmart-card,\r\nsmart-radio-button,\r\nsmart-progress-bar,\r\nsmart-circular-progress-bar,\r\nsmart-scroll-bar,\r\nsmart-gauge,\r\nsmart-grid,\r\nsmart-numeric-text-box,\r\nsmart-list-box,\r\nsmart-combo-box,\r\nsmart-docking-layout,\r\nsmart-drop-down-list,\r\nsmart-drop-down-button,\r\nsmart-multi-split-button,\r\nsmart-power-button,\r\nsmart-text-box,\r\nsmart-multiline-text-box,\r\nsmart-password-text-box,\r\nsmart-masked-text-box,\r\nsmart-tabs,\r\nsmart-date-time-picker,\r\nsmart-array,\r\nsmart-time-picker,\r\nsmart-menu,\r\nsmart-list-menu,\r\nsmart-window,\r\nsmart-alert-window,\r\nsmart-prompt-window,\r\nsmart-multiline-prompt-window,\r\nsmart-progress-window,\r\nsmart-tabs-window,\r\nsmart-dialog-window,\r\nsmart-pager,\r\nsmart-progress-window,\r\nsmart-wait-window,\r\nsmart-splitter,\r\nsmart-tree,\r\nsmart-filter-panel,\r\nsmart-breadcrumb,\r\nsmart-color-panel,\r\nsmart-color-picker,\r\nsmart-sort-panel,\r\nsmart-group-panel,\r\nsmart-column-panel,\r\nsmart-multi-column-filter-panel,\r\nsmart-query-builder,\r\nsmart-card-view,\r\nsmart-tooltip,\r\nsmart-layout,\r\nsmart-path,\r\nsmart-kanban,\r\nsmart-gantt-chart,\r\nsmart-sheduler,\r\nsmart-pivot-panel {\r\n padding: 0px;\r\n margin: 0px;\r\n overflow: hidden;\r\n display: block;\r\n}\r\n\r\n.smart-element {\r\n outline: none;\r\n box-sizing: border-box;\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n font-weight: var(--smart-font-weight);\r\n /* Apple iOS specific browser CSS variable used for area highlighting on click. Reference link for details:\r\n https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/AdjustingtheTextSize/AdjustingtheTextSize.html#//apple_ref/doc/uid/TP40006510-SW5 */\r\n -webkit-tap-highlight-color: transparent;\r\n background: var(--smart-background);\r\n color: var(--smart-background-color);\r\n}\r\n\r\n.smart-root {\r\n width: 100%;\r\n height: 100%;\r\n padding: 0;\r\n margin: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\nsmart-button[disabled],\r\nsmart-calendar[disabled],\r\nsmart-combo-box[disabled],\r\nsmart-chip[disabled],\r\nsmart-toggle-button[disabled],\r\nsmart-repeat-button[disabled],\r\nsmart-switch-button[disabled],\r\nsmart-slider[disabled],\r\nsmart-led[disabled],\r\nsmart-tank[disabled],\r\nsmart-check-box[disabled],\r\nsmart-radio-button[disabled],\r\nsmart-progress-bar[disabled],\r\nsmart-circular-progress-bar[disabled],\r\nsmart-gauge[disabled],\r\nsmart-grid[disabled],\r\nsmart-numeric-text-box[disabled],\r\nsmart-list-item[disabled],\r\nsmart-list-box[disabled],\r\nsmart-drop-down-list[disabled],\r\nsmart-drop-down-button[disabled],\r\nsmart-multi-split-button[disabled],\r\nsmart-scroll-bar[disabled],\r\nsmart-power-button[disabled],\r\nsmart-text-box[disabled],\r\nsmart-multiline-text-box[disabled],\r\nsmart-password-text-box[disabled],\r\nsmart-tab[disabled],\r\nsmart-tabs[disabled],\r\nsmart-time-picker[disabled],\r\nsmart-menu-item[disabled],\r\nsmart-menu-items-group[disabled],\r\nsmart-menu[disabled],\r\nsmart-list-menu[disabled],\r\nsmart-window[disabled],\r\nsmart-dialog-window[disabled],\r\nsmart-progress-window[disabled],\r\nsmart-wait-window[disabled],\r\nsmart-alert-window[disabled],\r\nsmart-prompt-window[disabled],\r\nsmart-card[disabled],\r\nsmart-multiline-prompt-window[disabled],\r\nsmart-splitter[disabled],\r\nsmart-tree-item[disabled]>.smart-tree-item-label-container,\r\nsmart-tree-items-group[disabled]>.smart-tree-item-label-container,\r\nsmart-tree[disabled],\r\nsmart-docking-layout[disabled],\r\nsmart-filter-panel[disabled],\r\nsmart-breadcrumb[disabled],\r\nsmart-pager[disabled],\r\nsmart-pager .smart-pager-button[disabled],\r\nsmart-color-panel[disabled],\r\nsmart-color-picker[disabled],\r\nsmart-input[disabled],\r\nsmart-check-input[disabled],\r\nsmart-number-input[disabled],\r\nsmart-multi-input[disabled],\r\nsmart-multi-combo-input[disabled],\r\nsmart-date-input[disabled],\r\nsmart-time-input[disabled],\r\nsmart-date-range-input[disabled],\r\nsmart-password-input[disabled],\r\nsmart-text-area[disabled],\r\nsmart-sort-panel[disabled],\r\nsmart-group-panel[disabled],\r\nsmart-column-panel[disabled],\r\nsmart-multi-column-filter-panel[disabled],\r\nsmart-card-view[disabled],\r\nsmart-query-builder[disabled],\r\nsmart-date-time-picker[disabled],\r\nsmart-layout[disabled],\r\nsmart-path[disabled],\r\nsmart-kanban[disabled],\r\nsmart-gantt[disabled],\r\nsmart-gantt-chart[disabled],\r\nsmart-scheduler[disabled],\r\nsmart-button-group[disabled],\r\nsmart-table[disabled],\r\nsmart-pivot-table[disabled],\r\nsmart-notification-panel[disabled],\r\nsmart-formatting-panel[disabled],\r\nsmart-color-input[disabled],\r\nsmart-editor[disabled] {\r\n opacity: 0.55;\r\n cursor: default;\r\n pointer-events: none;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\nsmart-accordion,\r\nsmart-calendar,\r\nsmart-card-view,\r\nsmart-button,\r\nsmart-color-panel,\r\nsmart-docking-layout,\r\nsmart-date-time-picker,\r\nsmart-gantt-chart,\r\nsmart-scheduler,\r\nsmart-grid,\r\nsmart-menu,\r\nsmart-list-menu,\r\nsmart-list-box,\r\nsmart-scroll-viewer,\r\nsmart-progress-bar,\r\nsmart-pager,\r\nsmart-splitter,\r\nsmart-tank,\r\nsmart-time-picker,\r\nsmart-tree,\r\nsmart-text-box,\r\nsmart-multiline-text-box,\r\nsmart-layout,\r\n.smart-window,\r\nsmart-kanban,\r\nsmart-sort-panel,\r\nsmart-button-group,\r\nsmart-group-panel,\r\nsmart-column-panel,\r\nsmart-multi-column-filter-panel,\r\nsmart-formatting-panel {\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n}\r\n\r\nsmart-numeric-text-box.smart-element,\r\nsmart-masked-text-box.smart-element,\r\nsmart-multiline-text-box.smart-element,\r\nsmart-text-box.smart-element,\r\nsmart-drop-down-button.smart-element,\r\nsmart-drop-down-list.smart-element,\r\nsmart-combo-box.smart-element,\r\nsmart-password-text-box.smart-element,\r\nsmart-multi-split-button.smart-element,\r\nsmart-switch-button.smart-element,\r\nsmart-multiline-text-box.smart-element,\r\nsmart-date-time-picker.smart-element,\r\nsmart-pager.smart-element,\r\nsmart-menu.smart-element,\r\nsmart-menu.smart-element,\r\nsmart-numeric-text-box.smart-element,\r\nsmart-tabs.smart-element,\r\nsmart-tank.smart-element,\r\nsmart-slider.smart-element,\r\nsmart-filter-panel.smart-element,\r\nsmart-color-panel.smart-element,\r\nsmart-color-picker.smart-element,\r\nsmart-query-builder.smart-element,\r\nsmart-card-view.smart-element,\r\nsmart-path.smart-element,\r\nsmart-kanban.smart-element {\r\n overflow: visible;\r\n}\r\n\r\n.smart-disabled {\r\n opacity: 0.55;\r\n cursor: default;\r\n pointer-events: none;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n/*\r\n Common code for Box Components with Content and Action buttons.\r\n*/\r\n.smart-element input::selection,\r\n.smart-input::selection {\r\n background: var(--smart-editor-selection);\r\n color: var(--smart-editor-selection-color);\r\n}\r\n\r\n/* Style for standard HTML scrollbars when dark theme is applied (limited browser support) */\r\n@media (hover: hover) {\r\n\r\n body[theme="dark"],\r\n .smart-element[theme="dark"] {\r\n scrollbar-color: var(--smart-scroll-bar-thumb-background) var(--smart-scroll-bar-track-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar,\r\n body[theme="dark"] ::-webkit-scrollbar {\r\n background-color: var(--smart-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-track,\r\n body[theme="dark"] ::-webkit-scrollbar-track,\r\n body[theme="dark"]::-webkit-scrollbar-track-piece,\r\n body[theme="dark"] ::-webkit-scrollbar-track-piece {\r\n background-color: var(--smart-scroll-bar-track-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-thumb,\r\n body[theme="dark"] ::-webkit-scrollbar-thumb {\r\n border: 1px solid var(--smart-scroll-bar-thumb-border);\r\n background-color: var(--smart-scroll-bar-thumb-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-thumb:hover,\r\n body[theme="dark"] ::-webkit-scrollbar-thumb:hover {\r\n border-color: var(--smart-scroll-bar-thumb-border-hover);\r\n background-color: var(--smart-scroll-bar-thumb-background-hover);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-button,\r\n body[theme="dark"] ::-webkit-scrollbar-button {\r\n background-color: var(--smart-scroll-bar-button-background);\r\n }\r\n}',""]),t.exports=e},4:function(t,e,r){(e=r(0)(!1)).push([t.i,".smart-drop-down-box {\r\n background: var(--smart-surface);\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n overflow: initial;\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n outline: none;\r\n height: var(--smart-editor-height); }\r\n .smart-drop-down-box > .smart-container, .smart-drop-down-box.smart-container {\r\n display: flex;\r\n position: relative;\r\n align-items: center; }\r\n .smart-drop-down-box > .smart-container > .smart-content, .smart-drop-down-box.smart-container > .smart-content {\r\n position: relative;\r\n display: flex;\r\n width: 100%;\r\n height: 100%; }\r\n .smart-drop-down-box .smart-buttons-container {\r\n width: inherit;\r\n height: inherit;\r\n display: inherit;\r\n flex-direction: inherit;\r\n cursor: inherit;\r\n position: inherit;\r\n overflow: hidden;\r\n min-height: inherit; }\r\n .smart-drop-down-box .smart-action-button {\r\n display: flex;\r\n padding-left: var(--smart-editor-label-padding);\r\n align-content: center;\r\n outline: 1px solid transparent;\r\n height: 100%;\r\n width: calc(100% - var(--smart-editor-addon-width));\r\n flex-wrap: wrap;\r\n overflow: hidden;\r\n position: relative;\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n align-items: center;\r\n border-right: none;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n user-select: none;\r\n white-space: nowrap; }\r\n .smart-drop-down-box .smart-action-button .smart-input {\r\n color: inherit;\r\n background: inherit;\r\n border: none;\r\n width: calc(100% - var(--smart-editor-addon-width));\r\n height: 100%;\r\n outline: none;\r\n text-overflow: ellipsis; }\r\n .smart-drop-down-box .smart-action-button .smart-input::placeholder {\r\n color: inherit; }\r\n .smart-drop-down-box .smart-drop-down-button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: var(--smart-editor-addon-width);\r\n min-width: var(--smart-editor-addon-width);\r\n color: inherit;\r\n outline: 1px solid transparent;\r\n overflow: hidden;\r\n position: relative;\r\n background-color: var(--smart-surface);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n border-left: none;\r\n color: var(--smart-surface-color);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n cursor: pointer; }\r\n .smart-drop-down-box .smart-drop-down-button .smart-drop-down-button-icon {\r\n pointer-events: none;\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n transform-origin: center;\r\n font-family: var(--smart-font-family-icon); }\r\n .smart-drop-down-box .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n content: var(--smart-icon-arrow-down);\r\n font-size: var(--smart-arrow-size); }\r\n .smart-drop-down-box .smart-drop-down-button[active] {\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box .smart-drop-down-button[top] .smart-drop-down-button-icon:after, .smart-drop-down-box .smart-drop-down-button[center-top] .smart-drop-down-button-icon:after {\r\n transform: rotate(180deg); }\r\n .smart-drop-down-box .smart-drop-down {\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size); }\r\n .smart-drop-down-box .smart-drop-down.smart-visibility-hidden {\r\n transform: scale(0);\r\n transition: transform 0.2s ease-in;\r\n transform-origin: left top 0px; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-action-button, .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-action-button {\r\n min-height: var(--smart-editor-height);\r\n padding-left: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-drop-down-button,\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-action-button, .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-drop-down-button,\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-action-button {\r\n width: 100%;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n height: 50%;\r\n justify-content: center; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] {\r\n min-height: calc(2 * var(--smart-editor-height)); }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-content {\r\n flex-direction: column-reverse; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-drop-down-button {\r\n border-bottom: initial;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: 0;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: 0; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-action-button {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-top: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] {\r\n min-height: calc(2 * var(--smart-editor-height)); }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-content {\r\n flex-direction: column; }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-action-button {\r\n border-bottom: initial;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: 0;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: 0; }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-drop-down-button {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-drop-down-button {\r\n border-top: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] > .smart-container > .smart-content, .smart-drop-down-box[drop-down-button-position=\"left\"].smart-container > .smart-content {\r\n flex-direction: row-reverse; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] .smart-action-button {\r\n padding-right: var(--smart-editor-label-padding);\r\n border-right: var(--smart-border-width) solid var(--smart-border);\r\n border-color: var(--smart-border);\r\n border-top-left-radius: 0px;\r\n border-bottom-left-radius: 0px;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n padding-left: initial;\r\n flex-direction: row-reverse; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] .smart-drop-down-button {\r\n border-left: var(--smart-border-width) solid var(--smart-border);\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: 0px;\r\n border-bottom-right-radius: 0px;\r\n border-right: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] .smart-drop-down-button[selected] {\r\n border-right: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-left: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"right\"] .smart-action-button {\r\n padding-left: var(--smart-editor-label-padding); }\r\n .smart-drop-down-box[drop-down-button-position=\"none\"] .smart-action-button {\r\n border-right: var(--smart-border-width) solid var(--smart-border);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n width: 100%;\r\n padding-right: var(--smart-editor-label-padding); }\r\n .smart-drop-down-box[drop-down-button-position=\"none\"] .smart-drop-down-button {\r\n display: none; }\r\n .smart-drop-down-box:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-color: var(--smart-border);\r\n background-color: var(--smart-surface);\r\n color: var(--smart-surface-color); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"] .smart-action-button {\r\n border-color: var(--smart-border);\r\n background-color: var(--smart-background);\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"] .smart-action-button[active] {\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"] .smart-drop-down-button {\r\n border-color: var(--smart-border);\r\n background-color: var(--smart-surface);\r\n color: var(--smart-surface-color);\r\n border-left-style: solid;\r\n border-left-width: var(--smart-border-width); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"left\"]:not([hover]) .smart-drop-down-button:focus {\r\n border-color: var(--smart-outline);\r\n box-shadow: var(--smart-border-width) 0 0 0 var(--smart-outline); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"left\"]:not([hover]) .smart-action-button:focus {\r\n border-color: var(--smart-outline);\r\n box-shadow: calc(-1 * var(--smart-border-width)) 0 0 0 var(--smart-outline); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"right\"]:not([hover]) .smart-action-button:focus {\r\n box-shadow: var(--smart-border-width) 0 0 0 var(--smart-outline);\r\n border-color: var(--smart-outline);\r\n z-index: 1; }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position]):not([hover]) .smart-drop-down-button:focus {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position]):not([hover]) .smart-action-button:focus {\r\n box-shadow: var(--smart-border-width) 0 0 0 var(--smart-outline);\r\n border-color: var(--smart-outline);\r\n z-index: 1; }\r\n .smart-drop-down-box[resizing] {\r\n user-select: none;\r\n touch-action: none; }\r\n .smart-drop-down-box[readonly] input {\r\n user-select: none;\r\n -moz-user-select: none;\r\n -webkit-user-select: none; }\r\n .smart-drop-down-box[hover] .smart-drop-down-button {\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n color: var(--smart-ui-state-color-hover); }\r\n .smart-drop-down-box[hover]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n color: var(--smart-ui-state-color-hover); }\r\n .smart-drop-down-box[focus]:not([opened]) .smart-action-button[focus],\r\n .smart-drop-down-box[focus]:not([opened]) .smart-drop-down-button[focus],\r\n .smart-drop-down-box[focus]:not([opened]) .smart-action-button,\r\n .smart-drop-down-box[focus]:not([opened]) .smart-drop-down-button {\r\n outline: initial;\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[active] .smart-action-button, .smart-drop-down-box[active][focus][drop-down-open-mode=\"dropDownButton\"] .smart-action-button, .smart-drop-down-box[active][focus][drop-down-open-mode=\"dropDownButton\"] .smart-drop-down-button, .smart-drop-down-box[active][drop-down-open-mode=\"dropDownButton\"] .smart-drop-down-button:focus {\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box[opened] .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n transform: rotate(180deg); }\r\n .smart-drop-down-box[opened] .smart-drop-down-button[bottom] .smart-drop-down-button-icon:after, .smart-drop-down-box[opened] .smart-drop-down-button[center-bottom] .smart-drop-down-button-icon:after {\r\n transform: rotate(180deg); }\r\n .smart-drop-down-box[opened] .smart-drop-down-button[top] .smart-drop-down-button-icon:after, .smart-drop-down-box[opened] .smart-drop-down-button[center-top] .smart-drop-down-button-icon:after {\r\n transform: rotate(0deg); }\r\n .smart-drop-down-box[opened]:not([drop-down-open-mode=\"dropDownButton\"]):not(.outlined):not(.underlined) .smart-action-button, .smart-drop-down-box[opened]:not(.outlined):not(.underlined) .smart-drop-down-button {\r\n border-color: var(--smart-ui-state-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box.auto-height {\r\n height: auto;\r\n min-height: var(--smart-editor-height); }\r\n .smart-drop-down-box.auto-height > .smart-container, .smart-drop-down-box.auto-height.smart-container {\r\n min-height: inherit; }\r\n .smart-drop-down-box.auto-height .smart-action-button,\r\n .smart-drop-down-box.auto-height .smart-content {\r\n min-height: inherit; }\r\n .smart-drop-down-box.auto-height .smart-action-button {\r\n padding: 3px; }\r\n .smart-drop-down-box.auto-height[label], .smart-drop-down-box.auto-height[hint] {\r\n height: auto; }\r\n .smart-drop-down-box[label][hint] > .smart-container {\r\n display: flex;\r\n position: relative;\r\n align-items: center; }\r\n .smart-drop-down-box[label] > .smart-container {\r\n align-items: flex-end; }\r\n .smart-drop-down-box[hint] > .smart-container {\r\n align-items: flex-start; }\r\n .smart-drop-down-box[hint] .smart-hint {\r\n opacity: 0;\r\n transition: opacity 0.2s cubic-bezier(0.4, 0, 0.6, 1);\r\n top: 100%;\r\n bottom: initial; }\r\n .smart-drop-down-box[hint][focus] .smart-hint {\r\n opacity: 1;\r\n transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1); }\r\n .smart-drop-down-box[label] .smart-label, .smart-drop-down-box[hint] .smart-hint {\r\n position: absolute;\r\n left: 0;\r\n bottom: 100%;\r\n font-size: 12px;\r\n width: 100%;\r\n display: block;\r\n padding: var(--smart-editor-label-padding);\r\n pointer-events: none;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n -moz-user-select: none;\r\n text-align: initial;\r\n line-height: initial;\r\n vertical-align: initial; }\r\n .smart-drop-down-box[disabled] > .smart-container {\r\n cursor: default;\r\n background-color: initial; }\r\n .smart-drop-down-box[disabled] .smart-drop-down-button {\r\n cursor: default;\r\n background-color: initial; }\r\n .smart-drop-down-box[disabled][selection-display-mode=\"tokens\"] .smart-action-button > span {\r\n cursor: default; }\r\n .smart-drop-down-box.underlined {\r\n background-color: transparent;\r\n border-width: 0px;\r\n border-bottom-width: 1px;\r\n background: var(--smart-background);\r\n border-bottom-color: var(--smart-border); }\r\n .smart-drop-down-box.underlined .smart-action-button {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0;\r\n background-color: transparent;\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box.underlined .smart-action-button input {\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined .smart-action-button[active] {\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box.underlined .smart-spin-button {\r\n background: var(--smart-background);\r\n border-width: 0px; }\r\n .smart-drop-down-box.underlined .smart-spin-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.underlined .smart-spin-button[active] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.underlined .smart-drop-down-button {\r\n background: var(--smart-background);\r\n border-width: 0px;\r\n border-bottom: 1px solid var(--smart-border) !important;\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n .smart-drop-down-box.underlined .smart-drop-down-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.underlined .smart-drop-down-button[active] {\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box.underlined .smart-hint {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n display: block !important;\r\n box-sizing: border-box;\r\n padding: var(--smart-editor-label-padding);\r\n color: var(--smart-background-color);\r\n pointer-events: none;\r\n font-size: 75%;\r\n opacity: 0;\r\n transition: color 0.2s, opacity 0.1s, font-size 0.2s, line-height 0.2s, margin-top 0.2s, top 0.2s;\r\n margin-top: calc(0px - var(--smart-font-size)); }\r\n .smart-drop-down-box.underlined .smart-hint:after {\r\n content: \"\";\r\n position: absolute;\r\n left: 0;\r\n bottom: -2px;\r\n display: block;\r\n width: 100%;\r\n height: 2px;\r\n background-color: var(--smart-primary);\r\n transform-origin: bottom center;\r\n transform: scaleX(0);\r\n transition: transform 0.2s; }\r\n .smart-drop-down-box.underlined:not([focus]) .smart-hint {\r\n margin-top: 0px; }\r\n .smart-drop-down-box.underlined[focus] input {\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined[focus] .smart-action-button {\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined[focus] .smart-drop-down-button,\r\n .smart-drop-down-box.underlined[focus] .smart-hint {\r\n color: var(--smart-primary) !important;\r\n opacity: 1;\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined[focus] .smart-hint:after {\r\n transform: scale(1); }\r\n .smart-drop-down-box.underlined[opened] .smart-action-button {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0;\r\n background-color: transparent;\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box.underlined:not([opened]):not([hover]) .smart-drop-down-button {\r\n background-color: transparent;\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box.underlined:not([opened]):not([hover]) .smart-drop-down-button:not([hover]) {\r\n border-bottom-left-radius: 0; }\r\n .smart-drop-down-box.underlined:not([opened]):not([hover]) .smart-drop-down-button:not([active]):not([hover]) {\r\n border-radius: initial; }\r\n .smart-drop-down-box.underlined:not([opened]) .smart-action-button:not([active]):not([hover]) {\r\n border-radius: initial; }\r\n .smart-drop-down-box.underlined[hover]:not([drop-down-open-mode=\"dropDownButton\"]):not([opened]) .smart-action-button {\r\n border-bottom-left-radius: 0; }\r\n .smart-drop-down-box.underlined[hover]:not([drop-down-open-mode=\"dropDownButton\"]):not([opened]) .smart-action-button:not([active]) {\r\n background-color: transparent; }\r\n .smart-drop-down-box.underlined[hover]:not([opened]) .smart-action-button, .smart-drop-down-box.underlined[hover]:not([opened]):not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button:not([active]) {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n .smart-drop-down-box.underlined[drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position=\"left\"]):not([drop-down-button-position=\"top\"]):not([drop-down-button-position=\"bottom\"]):not([hover]) .smart-action-button:focus {\r\n box-shadow: none;\r\n z-index: initial; }\r\n .smart-drop-down-box.underlined[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"left\"]:not([hover]) .smart-drop-down-button:focus {\r\n box-shadow: none; }\r\n .smart-drop-down-box.underlined[drop-down-open-mode=\"dropDownButton\"][hover]:not([opened]) .smart-action-button[hover] {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n .smart-drop-down-box.underlined.smart-invalid .smart-drop-down-button {\r\n border-bottom-color: rgba(var(--smart-error-rgb), 0.5) !important; }\r\n .smart-drop-down-box.outlined {\r\n background-color: transparent;\r\n padding-top: 6px;\r\n height: auto;\r\n min-height: 0;\r\n border: none;\r\n background: transparent; }\r\n .smart-drop-down-box.outlined > .smart-container > .smart-content {\r\n padding: 4px 3px 4px;\r\n border: 1px solid var(--smart-border);\r\n height: auto;\r\n background: var(--smart-background);\r\n border-radius: var(--smart-border-radius);\r\n z-index: 5; }\r\n .smart-drop-down-box.outlined .smart-action-button {\r\n border: none;\r\n background: var(--smart-background) !important;\r\n border-color: var(--smart-border) !important;\r\n color: var(--smart-background-color) !important; }\r\n .smart-drop-down-box.outlined .smart-action-button input {\r\n padding: 0;\r\n border: none !important;\r\n z-index: initial; }\r\n .smart-drop-down-box.outlined .smart-spin-button {\r\n background: var(--smart-background);\r\n border-width: 0px; }\r\n .smart-drop-down-box.outlined .smart-spin-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined .smart-spin-button[active] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined .smart-drop-down-button {\r\n background: var(--smart-background);\r\n border-width: 0px;\r\n padding: 8px 0px;\r\n background: var(--smart-background) !important;\r\n border-color: var(--smart-border) !important;\r\n color: var(--smart-background-color) !important; }\r\n .smart-drop-down-box.outlined .smart-drop-down-button.smart-calendar-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined .smart-drop-down-button.smart-calendar-button[active] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined.smart-element-init .smart-hint {\r\n visibility: hidden;\r\n display: none !important; }\r\n .smart-drop-down-box.outlined:not([focus])[hint] .smart-hint {\r\n font-size: var(--smart-font-size);\r\n line-height: 48px;\r\n opacity: 0; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n display: flex !important;\r\n border-color: var(--smart-border) !important;\r\n width: 100%;\r\n max-height: 100%;\r\n color: var(--smart-background-color);\r\n font-size: 75%;\r\n line-height: 15px;\r\n cursor: text;\r\n margin-top: -6px;\r\n z-index: 10;\r\n padding: 0;\r\n transition: color 0.2s, font-size 0.2s, opacity 0.1s, font-size 0.2s, line-height 0.2s; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint:before, .smart-drop-down-box.outlined[hint] .smart-hint:after {\r\n content: \"\";\r\n display: block;\r\n box-sizing: border-box;\r\n margin-top: 6px;\r\n border-top: solid 1px;\r\n border-top-color: var(--smart-border) !important;\r\n min-width: 10px;\r\n height: 8px;\r\n pointer-events: none;\r\n box-shadow: inset 0 1px transparent;\r\n transition: border-color 0.2s, box-shadow 0.2s; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint:before {\r\n margin-right: 4px;\r\n border-left: solid 1px transparent;\r\n border-radius: 4px 0; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint:after {\r\n flex-grow: 1;\r\n margin-left: 4px;\r\n border-right: solid 1px transparent;\r\n border-radius: 0 4px; }\r\n .smart-drop-down-box.outlined[focus] {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined[focus] > .smart-container > .smart-content {\r\n border-color: var(--smart-primary); }\r\n .smart-drop-down-box.outlined[focus] .smart-drop-down-button {\r\n color: var(--smart-ui-state-active) !important; }\r\n .smart-drop-down-box.outlined[focus][hint] > .smart-container > .smart-content {\r\n border-top-color: transparent !important; }\r\n .smart-drop-down-box.outlined[focus][hint] .smart-hint {\r\n color: var(--smart-primary);\r\n opacity: 1; }\r\n .smart-drop-down-box.outlined[focus][hint] .smart-hint:before, .smart-drop-down-box.outlined[focus][hint] .smart-hint:after {\r\n border-top-color: var(--smart-primary) !important; }\r\n .smart-drop-down-box.outlined[hover]:not([opened]):not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button:not([active]) {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined:not([opened]) .smart-action-button:not([active]),\r\n .smart-drop-down-box.outlined:not([opened]) .smart-drop-down-button {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined[drop-down-open-mode=\"dropDownButton\"]:not([hover]) .smart-action-button:not([active]) {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined.smart-invalid > .smart-container > .smart-content {\r\n border-color: rgba(var(--smart-error-rgb), 0.5); }\r\n .smart-drop-down-box[placeholder=\"\"][dropDownButtonPosition=\"none\"] .smart-drop-down-button, .smart-drop-down-box:not([placeholder])[dropDownButtonPosition=\"none\"] .smart-drop-down-button {\r\n border-left-width: var(--smart-border-width);\r\n border-left-style: solid;\r\n border-top-left-radius: 0px;\r\n border-bottom-left-radius: 0px;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[placeholder=\"\"]:not([opened])[dropDownButtonPosition=\"none\"] .smart-drop-down-button:not([focus]), .smart-drop-down-box:not([placeholder]):not([opened])[dropDownButtonPosition=\"none\"] .smart-drop-down-button:not([focus]) {\r\n border-color: var(--smart-border); }\r\n .smart-drop-down-box:not([animation='none']) .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n transition: transform 0.2s; }\r\n .smart-drop-down-box[drop-down-position=\"overlay-center\"] .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n content: var(--smart-icon-minus); }\r\n .smart-drop-down-box.smart-invalid:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-bottom-color: rgba(var(--smart-error-rgb), 0.5) !important; }\r\n .smart-drop-down-box[right-to-left] {\r\n direction: rtl; }\r\n .smart-drop-down-box[right-to-left] .smart-label,\r\n .smart-drop-down-box[right-to-left] .smart-hint {\r\n direction: rtl; }\r\n .smart-drop-down-box[right-to-left] .smart-drop-down-button:focus {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[right-to-left]:not([hover]) .smart-action-button[focus],\r\n .smart-drop-down-box[right-to-left]:not([hover]) .smart-drop-down-button[focus] {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-action-button {\r\n flex-direction: row; }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"right\"] > .smart-container > .smart-content {\r\n flex-direction: row-reverse; }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-action-button, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-action-button {\r\n padding: 0 var(--smart-editor-label-padding) 0 0;\r\n border-right: var(--smart-border-width) solid var(--smart-border);\r\n border-top-left-radius: initial;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: initial;\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-drop-down-button, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-drop-down-button {\r\n border-left: var(--smart-border-width) solid var(--smart-border);\r\n border-top-right-radius: initial;\r\n border-bottom-right-radius: initial;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius); }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] > .smart-container > .smart-content, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) > .smart-container > .smart-content {\r\n flex-direction: row; }\r\n .smart-drop-down-box[right-to-left]:not([drop-down-open-mode=\"dropDownButton\"])[drop-down-button-position=\"left\"] .smart-action-button, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-action-button {\r\n border-left: initial; }\r\n .smart-drop-down-box[right-to-left]:not([drop-down-open-mode=\"dropDownButton\"]):not([drop-down-button-position]) .smart-drop-down-button, .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-drop-down-button {\r\n border-right: initial; }\r\n .smart-drop-down-box[right-to-left][opened] .smart-drop-down-button,\r\n .smart-drop-down-box[right-to-left][opened] .smart-action-button {\r\n border-color: var(--smart-border-active); }\r\n .smart-drop-down-box[right-to-left][drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"right\"]:not([hover]) .smart-action-button:focus, .smart-drop-down-box[right-to-left][drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position]):not([hover]) .smart-action-button:focus {\r\n box-shadow: calc(-1 * var(--smart-border-width)) 0 0 0 var(--smart-outline); }\r\n\r\n.smart-drop-down.smart-drop-down-container {\r\n box-shadow: var(--smart-elevation-8);\r\n border-color: var(--smart-border);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down.smart-drop-down-container smart-list-box:focus {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down.smart-drop-down-container .smart-drop-down-resize-bar {\r\n position: relative;\r\n width: 100%;\r\n margin-top: 2.5px;\r\n height: calc(var(--smart-editor-drop-down-resize-bar-height) - 2.5px);\r\n touch-action: none; }\r\n .smart-drop-down.smart-drop-down-container.smart-visibility-hidden {\r\n transform: scale(0); }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden {\r\n top: 0;\r\n left: 0; }\r\n .smart-drop-down.smart-drop-down-container.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned {\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned[top], .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned[center-top] {\r\n margin: calc(-1 * (var(--smart-editor-drop-down-vertical-offset) + 3px)) 0px; }\r\n.smart-drop-down.smart-date-time-drop-down {\r\n width: var(--smart-editor-drop-down-width);\r\n height: var(--smart-editor-drop-down-height); }\r\n .smart-drop-down.smart-date-time-drop-down.smart-drop-down-repositioned {\r\n width: var(--smart-editor-drop-down-width);\r\n height: var(--smart-editor-drop-down-height);\r\n padding: initial !important;\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down.smart-date-time-drop-down[drop-down-display-mode=\"calendar\"] {\r\n height: calc(var(--smart-editor-drop-down-height) - var(--smart-calendar-title-height)) !important; }\r\n.smart-drop-down.smart-drop-down-color-picker.smart-drop-down-repositioned {\r\n max-height: calc(var(--smart-editor-drop-down-max-height) + 50px); }\r\n.smart-drop-down[top] .smart-drop-down-resize-bar {\r\n margin-top: 0;\r\n margin-bottom: 2.5px; }\r\n.smart-drop-down[top].smart-drop-down-container.smart-drop-down-repositioned, .smart-drop-down[top].smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden {\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width));\r\n flex-direction: column-reverse; }\r\n.smart-drop-down[overlay-bottom], .smart-drop-down[overlay-center], .smart-drop-down[overlay-top] {\r\n margin: unset; }\r\n.smart-drop-down:not([resize-mode='none']) smart-list-box {\r\n position: relative;\r\n width: 100%;\r\n height: calc(100% - var(--smart-editor-drop-down-resize-bar-height));\r\n border: none; }\r\n.smart-drop-down:not([resize-mode='none']) .smart-drop-down-resize-bar {\r\n border-top: 1px solid var(--smart-border); }\r\n.smart-drop-down:not([resize-mode='none'])[top] .smart-drop-down-resize-bar {\r\n border-top: initial;\r\n border-bottom: 1px solid var(--smart-border); }\r\n.smart-drop-down[resize-mode][top] .smart-drop-down-resize-bar > div {\r\n top: calc(50% - 1px);\r\n /* Including the BorderBottom */ }\r\n.smart-drop-down[resize-mode='none'] smart-list-box {\r\n width: 100%;\r\n height: 100%;\r\n position: relative;\r\n border: none; }\r\n.smart-drop-down[resize-mode='none'] .smart-drop-down-resize-bar {\r\n display: none;\r\n cursor: default; }\r\n .smart-drop-down[resize-mode='none'] .smart-drop-down-resize-bar > div {\r\n display: none; }\r\n.smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div {\r\n display: initial;\r\n position: absolute;\r\n width: 5px;\r\n height: 5px;\r\n left: 50%;\r\n /*top: 50%;*/\r\n top: calc(50% + 1px);\r\n /* Including the BorderTop */\r\n transform: translate(-50%, -50%);\r\n border: 1px solid var(--smart-border);\r\n border-radius: 50%;\r\n pointer-events: none; }\r\n .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:after, .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:before, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:after, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:before {\r\n position: absolute;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n content: '';\r\n width: 100%;\r\n height: 100%;\r\n border: 1px solid var(--smart-border);\r\n border-radius: 50%;\r\n pointer-events: none; }\r\n .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:after, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:after {\r\n left: 500%; }\r\n .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:before, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:before {\r\n left: -400%; }\r\n.smart-drop-down[resize-mode=\"vertical\"].smart-drop-down-container.smart-drop-down-repositioned .smart-drop-down-resize-bar > div, .smart-drop-down[resize-mode=\"both\"].smart-drop-down-container.smart-drop-down-repositioned .smart-drop-down-resize-bar > div {\r\n width: 3px;\r\n height: 3px; }\r\n.smart-drop-down[resize-mode=\"horizontal\"][resize-indicator] .smart-drop-down-resize-bar:before, .smart-drop-down[resize-mode=\"both\"][resize-indicator] .smart-drop-down-resize-bar:before {\r\n width: 8px;\r\n height: 5px;\r\n font-family: var(--smart-font-family-icon);\r\n content: var(--smart-icon-resize-horizontal);\r\n position: absolute;\r\n top: calc(100% - 8px);\r\n left: calc(100% - 8px);\r\n transform: rotate(-45deg);\r\n font-size: 10px;\r\n cursor: se-resize; }\r\n.smart-drop-down[resize-mode=\"horizontal\"][resize-indicator] .smart-drop-down-resize-bar:after, .smart-drop-down[resize-mode=\"both\"][resize-indicator] .smart-drop-down-resize-bar:after {\r\n width: 8px;\r\n height: 12px;\r\n font-family: var(--smart-font-family-icon);\r\n content: var(--smart-icon-resize-full);\r\n position: absolute;\r\n top: calc(100% - 12px);\r\n left: calc(100% - 7px);\r\n transform: rotate(-45deg) scaleX(2.25);\r\n font-size: 10px;\r\n cursor: e-resize; }\r\n.smart-drop-down[resize-mode=\"horizontal\"][top] .smart-drop-down-resize-bar:before, .smart-drop-down[resize-mode=\"both\"][top] .smart-drop-down-resize-bar:before {\r\n transform: rotate(45deg);\r\n top: calc(100% - 13px);\r\n left: calc(100% - 4px); }\r\n.smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar {\r\n cursor: n-resize; }\r\n.smart-drop-down[resize-mode=\"horizontal\"] .smart-drop-down-resize-bar {\r\n cursor: e-resize; }\r\n .smart-drop-down[resize-mode=\"horizontal\"] .smart-drop-down-resize-bar > div {\r\n display: none; }\r\n.smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar {\r\n cursor: nwse-resize; }\r\n.smart-drop-down[resize-mode=\"both\"][top] .smart-drop-down-resize-bar {\r\n cursor: sw-resize; }\r\n\r\n.smart-drop-down-container.smart-drop-down-repositioned {\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-drop-down-container.smart-drop-down-repositioned:focus {\r\n border-color: var(--smart-border); }\r\n .smart-drop-down-container.smart-drop-down-repositioned[overlay-bottom], .smart-drop-down-container.smart-drop-down-repositioned[overlay-center], .smart-drop-down-container.smart-drop-down-repositioned[overlay-top] {\r\n margin: unset; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[overlay-bottom]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[overlay-center]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[overlay-top]:not([animation='none']) {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[overlay-bottom]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[overlay-center]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[overlay-top]:not([animation='none']).smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[top], .smart-drop-down-container.smart-drop-down-repositioned[center-top] {\r\n margin: calc(-1 * (var(--smart-editor-drop-down-vertical-offset) + 3px)) 0px; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[top]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[center-top]:not([animation='none']) {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[top]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[center-top]:not([animation='none']).smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[bottom]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[center-bottom]:not([animation='none']) {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[bottom]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[center-bottom]:not([animation='none']).smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-drop-down-container.smart-drop-down-repositioned:not([animation='none']).smart-visibility-hidden {\r\n transition: animation, visibility 0.2s ease-in; }\r\n.smart-drop-down-container[top].smart-drop-down-container.smart-drop-down-repositioned {\r\n bottom: initial; }\r\n .smart-drop-down-container[top].smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden {\r\n bottom: calc(100% - var(--smart-border-width)); }\r\n\r\n.smart-path .smart-drop-down,\r\n.smart-color-picker .smart-drop-down,\r\n.smart-multi-split-button .smart-drop-down,\r\n.smart-drop-down-list .smart-drop-down,\r\n.smart-combo-box .smart-drop-down,\r\n.smart-text-box .smart-drop-down,\r\n.smart-drop-down-button .smart-drop-down,\r\n.smart-date-time-picker .smart-drop-down {\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important;\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down.smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down.smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down.smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down.smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down.smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down.smart-visibility-hidden {\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-color-picker .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-multi-split-button .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-drop-down-list .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-combo-box .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-text-box .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-drop-down-button .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-date-time-picker .smart-drop-down.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-path .smart-drop-down[overlay-bottom], .smart-path .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[overlay-bottom],\r\n .smart-color-picker .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[overlay-bottom],\r\n .smart-multi-split-button .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-list .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[overlay-bottom],\r\n .smart-combo-box .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[overlay-bottom],\r\n .smart-text-box .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-button .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[overlay-bottom],\r\n .smart-date-time-picker .smart-drop-down[overlay-bottom].smart-visibility-hidden {\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n top: 0; }\r\n .smart-path .smart-drop-down[overlay-center], .smart-path .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[overlay-center],\r\n .smart-color-picker .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[overlay-center],\r\n .smart-multi-split-button .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[overlay-center],\r\n .smart-drop-down-list .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[overlay-center],\r\n .smart-combo-box .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[overlay-center],\r\n .smart-text-box .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[overlay-center],\r\n .smart-drop-down-button .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[overlay-center],\r\n .smart-date-time-picker .smart-drop-down[overlay-center].smart-visibility-hidden {\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n top: 50%;\r\n transform: translateY(-50%); }\r\n .smart-path .smart-drop-down[overlay-top], .smart-path .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[overlay-top],\r\n .smart-color-picker .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[overlay-top],\r\n .smart-multi-split-button .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[overlay-top],\r\n .smart-drop-down-list .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[overlay-top],\r\n .smart-combo-box .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[overlay-top],\r\n .smart-text-box .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[overlay-top],\r\n .smart-drop-down-button .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[overlay-top],\r\n .smart-date-time-picker .smart-drop-down[overlay-top].smart-visibility-hidden {\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n top: initial;\r\n bottom: 0; }\r\n .smart-path .smart-drop-down[top],\r\n .smart-color-picker .smart-drop-down[top],\r\n .smart-multi-split-button .smart-drop-down[top],\r\n .smart-drop-down-list .smart-drop-down[top],\r\n .smart-combo-box .smart-drop-down[top],\r\n .smart-text-box .smart-drop-down[top],\r\n .smart-drop-down-button .smart-drop-down[top],\r\n .smart-date-time-picker .smart-drop-down[top] {\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width));\r\n flex-direction: column-reverse; }\r\n .smart-path .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[top].smart-visibility-hidden {\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width));\r\n flex-direction: column-reverse; }\r\n .smart-path .smart-drop-down[bottom],\r\n .smart-color-picker .smart-drop-down[bottom],\r\n .smart-multi-split-button .smart-drop-down[bottom],\r\n .smart-drop-down-list .smart-drop-down[bottom],\r\n .smart-combo-box .smart-drop-down[bottom],\r\n .smart-text-box .smart-drop-down[bottom],\r\n .smart-drop-down-button .smart-drop-down[bottom],\r\n .smart-date-time-picker .smart-drop-down[bottom] {\r\n cursor: default;\r\n left: 0;\r\n box-sizing: border-box;\r\n font-size: inherit;\r\n padding: var(--smart-editor-drop-down-padding-size);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n background-color: var(--smart-background);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n box-shadow: var(--smart-elevation-8);\r\n /*border-top: initial;*/\r\n display: flex;\r\n flex-direction: column;\r\n padding-left: 0px;\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[bottom].smart-visibility-hidden {\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down[center-bottom], .smart-path .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[center-bottom],\r\n .smart-color-picker .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[center-bottom],\r\n .smart-multi-split-button .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[center-bottom],\r\n .smart-drop-down-list .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[center-bottom],\r\n .smart-combo-box .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[center-bottom],\r\n .smart-text-box .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[center-bottom],\r\n .smart-drop-down-button .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[center-bottom],\r\n .smart-date-time-picker .smart-drop-down[center-bottom].smart-visibility-hidden {\r\n left: 50%;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down[center-top], .smart-path .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[center-top],\r\n .smart-color-picker .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[center-top],\r\n .smart-multi-split-button .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[center-top],\r\n .smart-drop-down-list .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[center-top],\r\n .smart-combo-box .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[center-top],\r\n .smart-text-box .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[center-top],\r\n .smart-drop-down-button .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[center-top],\r\n .smart-date-time-picker .smart-drop-down[center-top].smart-visibility-hidden {\r\n left: 50%;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width)); }\r\n.smart-path:not([animation='none']) .smart-drop-down,\r\n.smart-color-picker:not([animation='none']) .smart-drop-down,\r\n.smart-multi-split-button:not([animation='none']) .smart-drop-down,\r\n.smart-drop-down-list:not([animation='none']) .smart-drop-down,\r\n.smart-combo-box:not([animation='none']) .smart-drop-down,\r\n.smart-text-box:not([animation='none']) .smart-drop-down,\r\n.smart-drop-down-button:not([animation='none']) .smart-drop-down,\r\n.smart-date-time-picker:not([animation='none']) .smart-drop-down {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down.smart-visibility-hidden {\r\n transition: animation, visibility 0.2s ease-in;\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[bottom], .smart-path:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-bottom] {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden, .smart-path:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[top], .smart-path:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[top],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[top],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[top],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[top],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[top],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[top],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[top],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-top] {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-path:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden, .smart-path:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-bottom], .smart-path:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-top] {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden, .smart-path:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-center] {\r\n animation: smart-drop-down-list-smart-animate-overlay-center-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-overlay-center-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n\r\n.smart-multi-split-button .smart-drop-down,\r\n.smart-drop-down-list .smart-drop-down,\r\n.smart-text-box .smart-drop-down,\r\n.smart-drop-down-button .smart-drop-down {\r\n height: calc(var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down smart-scroll-bar:before,\r\n .smart-drop-down-list .smart-drop-down smart-scroll-bar:before,\r\n .smart-text-box .smart-drop-down smart-scroll-bar:before,\r\n .smart-drop-down-button .smart-drop-down smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-multi-split-button .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner,\r\n .smart-drop-down-list .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner,\r\n .smart-text-box .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner,\r\n .smart-drop-down-button .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down smart-scroll-bar.bottom-corner,\r\n .smart-drop-down-list .smart-drop-down smart-scroll-bar.bottom-corner,\r\n .smart-text-box .smart-drop-down smart-scroll-bar.bottom-corner,\r\n .smart-drop-down-button .smart-drop-down smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down .smart-list-items-container.vscroll,\r\n .smart-drop-down-list .smart-drop-down .smart-list-items-container.vscroll,\r\n .smart-text-box .smart-drop-down .smart-list-items-container.vscroll,\r\n .smart-drop-down-button .smart-drop-down .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"],\r\n .smart-drop-down-list .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"],\r\n .smart-text-box .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"],\r\n .smart-drop-down-button .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"] {\r\n padding-top: initial; }\r\n .smart-multi-split-button .smart-drop-down input:focus,\r\n .smart-drop-down-list .smart-drop-down input:focus,\r\n .smart-text-box .smart-drop-down input:focus,\r\n .smart-drop-down-button .smart-drop-down input:focus {\r\n outline: none; }\r\n\r\n.smart-multi-split-button.auto-height .smart-action-button,\r\n.smart-drop-down-list.auto-height .smart-action-button,\r\n.smart-drop-down-button.auto-height .smart-action-button {\r\n white-space: initial;\r\n text-overflow: initial;\r\n line-height: 1rem;\r\n flex-wrap: wrap; }\r\n.smart-multi-split-button.auto-height[selection-display-mode=\"tokens\"] smart-action-button > span,\r\n.smart-multi-split-button.auto-height[selection-display-mode=\"tokens\"] .smart-action-button > span:first-of-type,\r\n.smart-drop-down-list.auto-height[selection-display-mode=\"tokens\"] smart-action-button > span,\r\n.smart-drop-down-list.auto-height[selection-display-mode=\"tokens\"] .smart-action-button > span:first-of-type,\r\n.smart-drop-down-button.auto-height[selection-display-mode=\"tokens\"] smart-action-button > span,\r\n.smart-drop-down-button.auto-height[selection-display-mode=\"tokens\"] .smart-action-button > span:first-of-type {\r\n display: inline-block;\r\n margin: 0.2em; }\r\n\r\n.smart-color-picker .smart-drop-down {\r\n width: var(--smart-drop-down-button-drop-down-width);\r\n height: var(--smart-drop-down-button-drop-down-height); }\r\n .smart-color-picker .smart-drop-down.smart-drop-down-color-picker {\r\n max-height: calc(var(--smart-editor-drop-down-max-height) + 50px); }\r\n .smart-color-picker .smart-drop-down smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-color-picker .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-color-picker .smart-drop-down .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-color-picker .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"] {\r\n padding-top: initial; }\r\n\r\n.smart-drop-down-list .smart-drop-down {\r\n width: var(--smart-drop-down-list-drop-down-width);\r\n height: var(--smart-drop-down-list-drop-down-height); }\r\n\r\n.smart-combo-box .smart-drop-down {\r\n width: var(--smart-combo-box-drop-down-width);\r\n height: var(--smart-combo-box-drop-down-height); }\r\n .smart-combo-box .smart-drop-down smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-combo-box .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-combo-box .smart-drop-down smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-combo-box .smart-drop-down .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-combo-box .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"] {\r\n padding-top: initial; }\r\n.smart-combo-box .smart-selection-field input {\r\n outline: none; }\r\n\r\n.smart-drop-down-button .smart-drop-down {\r\n width: var(--smart-drop-down-button-drop-down-width);\r\n height: var(--smart-drop-down-button-drop-down-height); }\r\n\r\n.smart-date-time-picker .smart-drop-down {\r\n border: none; }\r\n\r\n.smart-drop-down-overlay {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n z-index: 9000; }\r\n\r\n.smart-list-box input.vscroll {\r\n outline: none; }\r\n.smart-list-box smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n.smart-list-box smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n.smart-list-box smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n.smart-list-box .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n\r\n.smart-scroll-viewer {\r\n max-width: 100%;\r\n border: 0; }\r\n .smart-scroll-viewer smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-scroll-viewer smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-scroll-viewer smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-scroll-viewer .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n\r\n@keyframes smart-drop-down-list-smart-animate-overlay-center-opening {\r\n 0% {\r\n opacity: 0.2;\r\n transform: scaleY(0) translateY(-50%); }\r\n 50% {\r\n opacity: 0.4; }\r\n 100% {\r\n opacity: 1;\r\n transform: scaleY(1) translateY(-50%); } }\r\n@keyframes smart-drop-down-list-smart-animate-overlay-center-closing {\r\n 0% {\r\n opacity: 1;\r\n transform: scaleY(1) translateY(-50%); }\r\n 50% {\r\n opacity: 0.4; }\r\n 100% {\r\n opacity: 0.2;\r\n transform: scaleY(0) translateY(-50%); } }\r\n@keyframes smart-drop-down-list-smart-animate-opening {\r\n 0% {\r\n opacity: 0.2;\r\n transform: scaleY(0); }\r\n 50% {\r\n opacity: 0.4; }\r\n 100% {\r\n opacity: 1;\r\n transform: scaleY(1); } }\r\n@keyframes smart-drop-down-list-smart-animate-closing {\r\n 0% {\r\n opacity: 1;\r\n transform: scaleY(1);\r\n pointer-events: none; }\r\n 50% {\r\n opacity: 0.4;\r\n pointer-events: none; }\r\n 100% {\r\n opacity: 0.2;\r\n transform: scaleY(0);\r\n pointer-events: none; } }\r\n.smart-drop-down-box[right-to-left]:not([hover]) .smart-action-button[focus] {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0; }\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-drop-down-button,\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-drop-down-button[focus] {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-action-button {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0;\r\n border-bottom-right-radius: 0; }\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]):not([opened]):not([hover]) .smart-drop-down-button:not([hover]),\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]):not([opened]):not([hover]) .smart-drop-down-button[focus]:not([hover]) {\r\n border-bottom-left-radius: 0; }\r\n",""]),t.exports=e},40:function(t,e){Smart.DataAdapter=window.smartDataAdapter=class{constructor(t){t||(t={});const e=Object.assign(this,t);e.key=(65536*(1+Math.random())|0).toString(16).substring(1),e.$document=Smart.Utilities.Extend(document),e.boundSource=!1===e.observable||e.virtualDataSource?[]:new Smart.ObservableArray,e.dataItemById=[],void 0===e.allowAdd&&(e.allowAdd=!0),void 0===e.allowRemove&&(e.allowRemove=!0),void 0===e.allowUpdate&&(e.allowUpdate=!0),void 0===e.mapChar&&(e.mapChar="."),void 0!==t.observable||e.virtualDataSource?e.observable=!1:e.observable=!0,void 0===e.sanitizeHTML&&(e.sanitizeHTML="blackList"),e._expandedRowIds=[],t.dataSource||(e.dataSource=[]),t.dataFields||(e.dataFields=[]),t.dataSourceType||(e.dataSourceType="array"),t.id||(e.id=null),t.autoFetch||(e.autoFetch=!0),t.dataFields&&(e.dataFields=t.dataFields),Object.defineProperty(e,"groupBy",{configurable:!1,enumerable:!0,get:()=>e._groupBy?e._groupBy:[],set(t){const r=()=>{e.boundHierarchy=null,e.refreshHierarchy(),e.onGroup&&e.onGroup()};e._groupBy=new Smart.ObservableArray(t),e._groupBy.notify((function(){r()})),e.isInitialized&&r()}}),t.groupBy?t.groupBy.toArray?e.groupBy=t.groupBy.toArray():e.groupBy=t.groupBy:e.groupBy=[],t&&!1!==t.autoBind&&e.dataBind(),e.isInitialized=!0}beginUpdate(){this.isUpdating=!0}endUpdate(){this.isUpdating=!1,this.refreshIndexes(),this.refreshHierarchy()}get expandHierarchy(){return void 0===this._expandHierarchy&&(this._expandHierarchy=!1),this._expandHierarchy}set expandHierarchy(t){const e=this;e._expandHierarchy=t,e.isInitialized&&e.refreshHierarchy()}_getDataField(t){switch(t.name){case"leaf":case"parent":case"expanded":case"checked":case"selected":case"level":case"icon":case"data":case"group":case"children":case"items":t.map?t.map=t.map.replace(t.name,"$"+t.name):t.map=t.name,t.name="$"+t.name}}get dataFields(){return this._dataFields}set dataFields(t){return this._dataFields=this._getDataFieldObjects(t),this._dataFields}_getDataFieldObjects(t){const e=this;let r=[];if("number"==typeof t){const e="A".charCodeAt(0);let n="",o=0;for(let a=0;a<t;a++){const t=String.fromCharCode(e+o);o++;const a=n+t;r.push({name:a,dataType:"string"}),o>=26&&(o=0,n+="A")}}else if(Array.isArray(t)&&t.length>0)for(let n=0;n<t.length;n++){const o=t[n];if("string"==typeof o){const t=o.split(":"),e=t[0].trim(),n=t.length>1?t[1].trim():"string";r.push({name:e,dataType:n})}else r.push(o);e._getDataField(r[r.length-1])}return r}get dataSource(){const t=this;return t._dataSource||(t._dataSource=[]),t._dataSource}set dataSource(t){const e=this;e._dataSource=t,e.isInitialized&&(e.boundSource=!1===e.observable||e.virtualDataSource?[]:new Smart.ObservableArray,e.dataItemById=[],e.bindingCompleted=!1,e.dataBind(),e.refreshIndexes())}get canNotify(){const t=this;return void 0===t._canNotify&&(t._canNotify=!0),t._canNotify}set canNotify(t){this._canNotify=t}_notify(t){const e=this;e.canNotify&&e.notifyFn&&e.notifyFn(t)}notify(t){t&&(this.notifyFn=t)}toArray(){const t=this;return!1===t.observable?t.boundSource:t.boundSource.toArray()}forEach(t){const e=this;if(t)if(e.boundHierarchy&&e.boundHierarchy.length>0){const r=(t=>{let e=[];for(;t;){e=e.concat(t);for(let r=0;r<t.length;r++)t[r].children&&(e=e.concat(t[r].children));t=t.children}return e})(e.boundHierarchy);for(let e=0;e<r.length;e++){t(r[e],e)}}else for(let r=0;r<e.boundSource.length;r++){t(e.boundSource[r],r)}}dataBind(){const t=this;t.bindingCompleted=!1,t.clear();const e=()=>{t.observable&&(t.boundSource.notify||(t.boundSource=new Smart.ObservableArray),t.boundSource.notify((function(e){if("update"===e.action&&e.path&&e.path.indexOf(".")>=0&&-1===e.path.indexOf("children")&&-1===e.path.indexOf("parent")&&-1===e.path.indexOf("loaded")&&-1===e.path.indexOf("level")&&-1===e.path.indexOf("leaf")&&-1===e.path.indexOf("expanded")){let r=!1;for(let n=0;n<t.dataFields.length;n++){const o=t.dataFields[n].name;e.path.indexOf(o)>=0&&(r=!0)}t._notify&&r&&t._notify({action:"update",data:e.target,index:e.index})}}))),t._onBindingComplete()};"string"==typeof t.dataSource&&(t.dataSource.indexOf(".json")>=0||"json"===t.dataSourceType)?(t.url=t.dataSource,t.dataSourceType="json",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".xml")>=0?(t.url=t.dataSource,t.dataSourceType="xml",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".xlsx")>=0?(t.url=t.dataSource,t.dataSourceType="xlsx",new r(t,r=>{if(!r[0])return r=[],t._bindToArray(),void e();const n=Object.keys(r[0]),o={},a=[];if(!1!==t.exportHeader){let e=0;for(let r in n){o[n[r]]=t.dataFields[e++].name}for(let t=1;t<r.length;t++){const e=r[t],i={};for(let t in n){const r=n[t];i[o[r]]=e[r]}a.push(i)}t.dataSource=a}t._bindToArray(),e()})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".csv")>=0?(t.url=t.dataSource,t.dataSourceType="csv",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".tsv")>=0?(t.url=t.dataSource,t.dataSourceType="tsv",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&(t.dataSource.indexOf(".ics")>=0||t.dataSource.indexOf(".php")>=0&&"ics"===t.dataSourceType||t.dataSource.indexOf(".txt")>=0&&"ics"===t.dataSourceType)?(t.url=t.dataSource,t.dataSourceType="ics",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&(t.dataSource.indexOf("BEGIN:VCALENDAR")>=0||"ics"===t.dataSourceType)?(t._bindToICS(),e()):"string"==typeof t.dataSource&&(t.dataSource.indexOf("<?xml")>=0||"xml"===t.dataSourceType)?(t._bindToXML(),e()):"string"==typeof t.dataSource&&(t.dataSource.indexOf(" ")>=0||t.dataSource.indexOf(",")>=0||"tsv"===t.dataSourceType||"csv"===t.dataSourceType||"tab"===t.dataSourceType)?(t._bindToCSV(),e()):"array"===t.dataSourceType?(t._bindToArray(),e()):"json"===t.dataSourceType&&(t._bindToJSON(),e())}_bindToXML(){const t=this;let e=null,r=null;window.DOMParser&&(e=new DOMParser,r=e.parseFromString(t.dataSource,"text/xml")),void 0===t.root&&(t.root=""),void 0===t.record&&(t.record="");const n=r.querySelectorAll(t.root+" "+t.record),o=n.length,a=[];let i=t.dataFields?t.dataFields.length:0;if(0===i){const e=n[0],r=new Array;for(let t in e){const e=t;r[r.length]={name:e}}t.dataFields=r,i=r.length}for(let e=0;e<o;e++){const r=n[e],o={};if(void 0===r)break;if(t.id){const e=r.querySelector(t.id);o[t.id]=e.textContent}for(let e=0;e<i;e++){const n=t.dataFields[e],a=r.querySelector(n.map||n.name);o[n.name]=a.textContent}a[e]=o}t.canNotify=!1,t.dataSource=a,t.canNotify=!0,t._bindToArray()}static BindToCSV(t,e=!1){const r=""+t,n=-1===r.indexOf(",")?"\t":",",o=r.split("\r"),a=new Array,i=[];let s=r.split("\n"),l=s.length;1===l&&o.length>1&&(s=o,l=s.length);const d=!0===e;for(let t=0;t<l;t++){const e={},r=s[t].split(n);for(let n=0;n<r.length;n++){let o=i[n],a=r[n];if(o||(i.push({name:a.trim()}),o=i[i.length-1]),a=a.trim(),1!==t||d)switch(o.dataType){case"boolean":a="false"!==a;break;case"number":a=parseFloat(a);break;case"date":a=new Date(a)}else{let t="string";"false"===a||"true"===a?(t="boolean",a="false"!==a):isNaN(parseInt(a)&&-1===a.indexOf("/"))?(a.indexOf("-")>=0||a.indexOf("/")>=0||a.indexOf(":")>=0)&&"Invalid Date"!==new Date(a).toString()&&(t="date",a=new Date(a)):(t="number",a=parseFloat(a)),o.dataType||(o.dataType=t)}e[o.name]=a}(d||t>0)&&a.push(e)}return a}_bindToCSV(){const t=this,e=""+t.dataSource,r=-1===e.indexOf(",")?"\t":",",n=e.split("\r"),o=new Array;let a=e.split("\n"),i=a.length;1===i&&n.length>1&&(a=n,i=a.length);const s=t.dataFields.length>0;for(let e=0;e<i;e++){const n=a[e],i={},l=a[e].split(r);for(let r=0;r<l.length;r++){let o=t.dataFields[r],a=l[r];if(o||(t.dataFields.push({name:a.trim()}),o=t.dataFields[t.dataFields.length-1]),o.map&&(a=n[o.map]),a=a.trim(),1!==e||s)switch(o.dataType){case"boolean":a="false"!==a;break;case"number":a=parseFloat(a);break;case"date":a=new Date(a)}else{let t="string";"false"===a||"true"===a?(t="boolean",a="false"!==a):isNaN(parseInt(a)&&-1===a.indexOf("/"))?(a.indexOf("-")>=0||a.indexOf("/")>=0||a.indexOf(":")>=0)&&"Invalid Date"!==new Date(a).toString()&&(t="date",a=new Date(a)):(t="number",a=parseFloat(a)),o.dataType||(o.dataType=t)}i[o.map||o.name||r.toString()]=a}(s||e>0)&&o.push(i)}t.canNotify=!1,t.dataSource=o,t.canNotify=!0,t._bindToArray()}_onBindingComplete(){const t=this;t._buildHierarchy(),t.onBindingComplete&&t.onBindingComplete({data:t.boundSource}),t._notify&&t._notify({action:"bindingComplete",data:t.boundSource}),t.bindingCompleted=!0}refreshHierarchy(){this.isUpdating||this._buildHierarchy()}find(){return this.boundSource.find.apply(this.boundSource,arguments)}onVirtualDataSourceRequested(t,e){const r=this;let n=e?e.first:1/0,o=e?e.last:1/0,a=e?e.row:null;if(void 0===n&&(n=1/0),void 0===o&&(o=1/0),r.virtualFirstIndex=n,r.virtualLastIndex=o,r.virtualDataSource){const i=function(o){void 0!==o.virtualDataSourceLength&&(r.virtualDataSourceLength=o.virtualDataSourceLength),new Smart.DataAdapter({dataSource:o.dataSource,dataFields:o.dataFields||r.dataFields,data:e,keyDataField:o.keyDataField,parentDataField:o.parentDataField,observable:!1,id:o.id||r.id,onBindingComplete(o){if(void 0===e.result&&(e.result=!0),r.virtualDataSourceOnExpand&&a)return r.groupBy.length>0?o.data&&o.data.length>0&&r.add(o.data):o.data&&o.data.length>0?r.add(o.data,a.$.id):a.leaf=!0,r.onFilter&&r.onFilter(),void t(e);n===1/0&&"scroll"===e.action?o.data&&o.data.length&&r.add(o.data):"filter"===e.action||"group"===e.action?(r.canNotify=!1,r.dataSource=o.data,r.canNotify=!0):("add"===e.action||"update"===e.action||e.action,r.canNotify=!1,r.dataSource=o.data,r.canNotify=!0),r.onFilter&&r.onFilter(),t(e)}})};let s={};if(e.sorting&&e.sorting.length>0){let t=[];for(let r in e.sorting)t.push(r+" "+e.sorting[r].sortOrder.toUpperCase());const r=" ORDER BY "+t.join(", ");s.orderBy=r}else s.orderBy="";if(void 0===n||void 0===o||0===n&&0===o)s.limit="";else{const t=o-n,e=" LIMIT "+t+" OFFSET "+n;s.limit=e,isNaN(t)&&(s.limit="")}if(e.grouping&&e.grouping.length>0){const t=" GROUP BY "+e.grouping[0];s.groupBy=t}else s.groupBy="";if(e.filtering&&e.filtering.length>0){const t=(t,e)=>{switch(e.condition){case"EMPTY":return t+" = ''";case"NOT_EMPTY":return t+" != ''";case"EQUAL":return t+" = '"+e.value+"'";case"NOT_EQUAL":return t+" != '"+e.value+"'";case"CONTAINS_CASE_SENSITIVE":case"CONTAINS":return t+" LIKE '%"+e.value+"%'";case"DOES_NOT_CONTAIN_CASE_SENSITIVE":case"DOES_NOT_CONTAIN":return t+" NOT LIKE '%"+e.value+"%'";case"STARTS_WITH_CASE_SENSITIVE":case"STARTS_WITH":return t+" LIKE '"+e.value+"%'";case"ENDS_WITH_CASE_SENSITIVE":case"ENDS_WITH":return t+" LIKE '%"+e.value+"'";case"NULL":return t+" IS NULL";case"NOT_NULL":return t+" IS NOT NULL"}},r=(t,e)=>{switch(e.condition){case"EQUAL":return t+" = "+e.value;case"NOT_EQUAL":return t+" != "+e.value;case"GREATER_THAN":return t+" > "+e.value;case"GREATER_THAN_OR_EQUAL":return t+" >= "+e.value;case"LESS_THAN":return t+" < "+e.value;case"LESS_THAN_OR_EQUAL":return t+" <= "+e.value;case"NULL":return t+" IS NULL";case"NOT_NULL":return t+" IS NOT NULL";case"RANGE":return"("+t+" >= "+e.value+" and "+t+" <= "+e.valueTo+")"}},n=(t,e,r)=>{if(r.operator){var n=t(e,r.condition1),o=t(e,r.condition2);return"("+n+" "+r.operator+" "+o+")"}return t(e,r)};let o=[];for(let a in e.filtering){const i=e.filtering[a];let s=i.filters,l=[],d=" AND ";for(let e=0;e<s.length;e++){const o=s[e];switch(o.type){case"stringFilter":l.push(n(t,a,o));break;case"numericFilter":case"dateFilter":case"booleanFilter":l.push(n(r,a,o))}1===i.logicalOperators[e]&&(d=" OR ")}o.push("("+l.join(d)+")")}if(o.length>0){let t=" AND ";e.filterOperator&&"or"===e.filterOperator.toLowerCase()&&(t=" OR "),s.where=" WHERE "+o.join(t)}else s.where=""}else s.where="";if("dataBind"===e.action&&r.virtualDataSourceOnExpand&&r.keyDataField&&r.parentDataField&&(s.where?s.where+=" AND "+r.parentDataField+" IS NULL":s.where=" WHERE "+r.parentDataField+" IS NULL"),"update"===e.action){const t=[];for(let n in e.edit.row)"$"!==n&&n!==r.id&&t.push(n+"='"+e.edit.row[n]+"'");s.update=" SET "+t.join(", ")+" WHERE "+r.id+"="+e.edit.row[r.id]}if("remove"===e.action){const t=[];for(let n in e.edit.row)"$"!==n&&n!==r.id&&t.push(n+" = '"+e.edit.row[n]+"'");s.remove=" WHERE "+r.id+"="+e.edit.row[r.id]}if("add"===e.action){const t=[],r=[];for(let n in e.edit.row)"$"!==n&&(r.push(n),null!==e.edit.row[n]?t.push("'"+e.edit.row[n]+"'"):t.push("null"));s.add=" ("+r.join(", ")+") VALUES ("+t.join(", ")+")"}"expand"===e.action?(r.groupDataField?s.where?s.where+=" AND "+r.groupDataField+" = '"+a[r.groupDataField]+"'":s.where=" WHERE "+r.groupDataField+" = '"+a[r.groupDataField]+"'":r.keyDataField&&r.parentDataField?s.where?s.where+=" AND "+r.parentDataField+" = "+a[r.keyDataField]:s.where=" WHERE "+r.parentDataField+" = "+a[r.keyDataField]:s.where?s.where+=" AND "+a.groupDataField+" = '"+a.label+"'":s.where=" WHERE "+a.groupDataField+" = '"+a.label+"'",s.where.indexOf("undefined")>=0&&(s.where=""),s.limit="",s.groupBy="",r.virtualDataSourceOnExpand(i,{first:n,last:o,row:e.row,sorting:e.sorting,filtering:e.filtering,grouping:e.grouping,action:e.action,query:s})):r.virtualDataSource(i,{first:n,last:o,sorting:e.sorting,filtering:e.filtering,filterOperator:e.filterOperator||"and",grouping:e.grouping,action:e.action,query:s})}else t()}add(t,e){const r=this;if(!t)return;let n=!0;const o=function(t){const o=r._getDataItem(t,r.boundSource.length);if(r.dataItemById[o.$.id])return void 0!==e&&(o.$.parentId=e),null;r[r.boundSource.length]=o,r.dataItemById[o.$.id]=o;const a=r.boundSource.push(o);return void 0!==e&&(o.$.parentId=e),a||(n=!1),o};if(t.length){let e=[];for(let r=0;r<t.length;r++){const n=o(t[r]);n&&e.push(n)}r._notify({action:"add",data:e})}else{const e=o(t);r._notify({action:"add",data:e})}return r.refreshHierarchy(),n}refreshIndexes(){const t=this;for(let e=0;e<t.boundSource.length;e++)t[e]=t.boundSource[e],t[e].$.index=e,t.dataItemById[t[e].$.id]=t[e];let e=t.boundSource.length;for(;t[e];)delete t[e],e++}removeLast(){delete this[this.boundSource.length-1];const t=this.boundSource.pop();return delete this.dataItemById[t.$.id],this._notify({action:"removeLast",data:t}),this.refreshHierarchy(),t}removeById(t){const e=this.indexOf(this.dataItemById[t]);this.boundSource[e]&&this.removeAt(e)}remove(t){const e=this;let r=e.indexOf(t);-1===r&&t&&t.$&&(r=e.indexOf(e.dataItemById[t.$.id])),e.boundSource[r]&&e.removeAt(r)}removeAt(t){const e=this.boundSource[t];if(!e)throw new Error("Invalid Item Index");this.boundSource.splice(t,1),delete this.dataItemById[e.$.id],this.refreshIndexes(),this._notify({action:"remove",index:t,data:e}),this.refreshHierarchy()}update(t,e){const r=this;if(Smart.Utilities.Types.isArray(t)&&Smart.Utilities.Types.isArray(e)&&0===t.length&&0===e.length)return void r.refreshHierarchy();if(e.length&&t.length){let n=[];for(let o=0;o<t.length;o++){const a=r._getDataItem(e[o],t[o]),i=t[o];n.push(a),r.boundSource[i]=a,r[i]=r.boundSource[i],r.dataItemById[a.$.id]=r[i]}return r._notify({action:"update",index:t,data:n}),void r.refreshHierarchy()}const n=r._getDataItem(e,t),o=r.boundSource[t].$.id;return n.$.id=o,r.boundSource[t]=n,r[t]=r.boundSource[t],r.dataItemById[n.$.id]=r[t],r._notify({action:"update",index:t,data:n}),r.refreshHierarchy(),n}insert(t,e){const r=this;if(e.length){const n=[];for(let o=0;o<e.length;o++){const a=r._getDataItem(e[o],t+o);n.push(a)}e=n}else e=r._getDataItem(e,t);const n=r.boundSource.splice(t,0,e);return r.refreshIndexes(),r._notify({action:"insert",index:t,data:e}),r.refreshHierarchy(),n}move(t,e){if(e>t&&e-t==1||t===e)return;const r=this,n=r.boundSource.splice(t,1)[0];e>t?(e--,r.boundSource.splice(e,0,n)):r.boundSource.splice(e,0,n),r.refreshIndexes(),r._notify({action:"move",index:e,data:r.boundSource[e]}),r.refreshHierarchy()}indexOf(t){return this.boundSource.indexOf(t)}get length(){const t=this;return void 0!==t.virtualDataSourceLength?t.virtualDataSourceLength:t.dataSourceLength?t.dataSourceLength:"number"==typeof t.dataSource?t.dataSource:t.bindingCompleted?t.boundSource.length:t.dataSource&&"string"!=typeof t.dataSource&&t.dataSource.length?t.dataSource.length:t.boundSource.length}clear(){const t=this;if(!t.isInitialized)return t._cachedValues=[],void(t.dataItemById=[]);for(let e=0;e<t.boundSource.length;e++)delete t[e];t._expandedRowIds=[],t._cachedValues=[],t.boundSource=t.observable?new Smart.ObservableArray:[],t.dataItemById=[],t.refreshHierarchy()}_getId(t,e,r){if(null===t||void 0===t.name||!t.name||!e.getAttribute){if(t&&t.toString().length>0&&e.getAttribute){let r=e.getAttribute(t);if(null!==r&&r.toString().length>0)return r.trim().split(" ").join("").replace(/([ #;?%&,.+*~\':'!^$[\]()=>|\/@])/g,"");{let r=t.split(this.mapChar);if(r.length>1){let t=e;for(let e=0;e<r.length;e++)void 0!==t&&(t=t[r[e]]);if(void 0!==t)return t}else if(void 0!==e[t])return e[t]}}return r}{let n=e.getAttribute(t.name);if(null!==n&&n.toString().length>0)return n;if(t.map)try{let r=e.getAttribute(t.map);if(null!==r&&r.toString().length>0)return r}catch(t){return r}}}_buildHierarchy(){const t=this;if(t.reservedNames){const e=t.reservedNames;e.leaf||(e.leaf="leaf"),e.parent||(e.parent="parent"),e.expanded||(e.expanded="expanded"),e.checked||(e.checked="checked"),e.selected||(e.selected="selected"),e.level||(e.level="level"),e.data||(e.data="data")}else t.reservedNames={leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"};const e=t.reservedNames;if(t.childrenDataField){const r=[];for(let n=0;n<t.boundSource.length;n++){const o=Object.assign({},t.boundSource[n]);if(!o)continue;r.push(o);const a=function(r){const n=t.childrenDataField.split(t.mapChar);let o=null;if(n.length>1){let t=r;for(let e=0;e<n.length;e++)void 0!==t&&(t=t[n[e]]);o=t}else o=r.children;r.children=o,(null===r.children||void 0===r.children||r.children&&0===r.children.length)&&(r[e.leaf]=!0)};a(o),o[e.level]=0,o.$||(o.$={}),o[e.parent]=null,o[e.data]=o,void 0===o[e.expanded]&&(o[e.expanded]=!1,t.expandHierarchy&&(o[e.expanded]=!0));const i=function(r,n){if(n)for(let o=0;o<n.length;o++){let s=t._getDataItem(n[o],o);if(s){if(a(s),!t.id){const t=function(){const t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()};s.$.id=t()}s[e.level]=r[e.level]+1,s[e.parent]=r,s[e.data]=Object.assign({},s),r&&(r.children[o]=s),void 0===s[e.expanded]&&(s[e.expanded]=!1,t.expandHierarchy&&(s[e.expanded]=!0)),i(s,s.children)}}else r.children=new Array};i(o,o.children)}if(t.boundHierarchy=r,!t._boundSourceUpdate){for(let e=0;e<t.boundHierarchy.length;e++){const r=t.boundHierarchy[e];if(r.children){const e=function(r){if(t.dataItemById[r.$.id]||(t.boundSource.canNotify=!1,t.dataItemById[r.$.id]=r,t.boundSource.canNotify=!0),r.children)for(let t=0;t<r.children.length;t++){const n=r.children[t];n.children&&e(n)}};e(r)}}t._boundSourceUpdate=!0}}if(t.xmlRoot&&"xml"===t.dataSourceType&&(t.boundHierarchy=this._getHierarchy("uid","_parentuid","children",null,t.boundSource)),t.keyDataField&&t.parentDataField)return["keyDataField","parentDataField"].forEach(e=>{switch(t[e]){case"parent":t[e]="$"+t[e]}}),void(t.boundHierarchy=this._getHierarchy(t.keyDataField,t.parentDataField,"children",null,t.boundSource));t.groupBy&&t.groupBy.length>0?t.boundHierarchy=this._getGroupHierarchy(t.groupBy,"children","label",null,"data",null,"parent",t.boundSource):t.virtualDataSourceOnExpand&&(t.boundHierarchy=this._getHierarchy("id","parentId","children",null,t.boundSource))}_getGroupHierarchy(t,e,r,n,o,a,i,s,l){let d=this;l||(l=0);let m=d.reservedNames;const c=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()};let h=new Array;for(let e=0;e<t.length;e++)h[e]=c();e||(e="children"),r||(r="group"),o||(o="item"),i||(i="parent"),void 0===a&&(a="value");const u=new Array,p=new Array;let f=0;const g=function(t){let e=t;if(n)for(let t in n){const r=n[t];r.name&&r.map&&(e[r.map]=e[r.name])}return e};let b=!1;for(let n=0;n<s.length;n++){let v=Object.assign({},g(s[n]));v[m.leaf]=!1;let y=new Array,w=0;for(let e=0;e<t.length;e++){const r=t[e],n=v[r];null!=n?((""===n||void 0===n&&0===e)&&(b=!0),y[w++]={value:n,group:r,hash:h[e]}):(y[w++]={value:null,group:r,hash:h[e]},0===e&&(b=!0))}if(y.length!==t.length)break;let x=null,_="";for(let t=0;t<y.length;t++){const n=y[t].value,s=y[t].group;if(_=_+"_"+y[t].hash+"_"+n,void 0===p[_]||null===p[_]){if(null===x){x={$:{}},x[m.level]=0,x[m.leaf]=!1,x[i]=null,x[r]=n,x[o]=v,x.groupDataField=s,x[s]||(x[s]=x.data[s]),void 0!==v[m.expanded]?x[m.expanded]=v[m.expanded]:(x[m.expanded]=!1,d.expandHierarchy&&(x[m.expanded]=!0)),a&&(x[a]=v[a]),x[e]=new Array;let t=u.length+l;this.id&&"number"!=typeof v.$.id&&!isFinite(v.$.id)||(t="Item"+t),void 0===x.$.id&&(x.$.id=t),d._expandedRowIds[x.$.id]&&(x[m.expanded]=!0),d.expandHierarchy&&d._collapsedIds&&d._collapsedIds[x.$.id]&&(x[m.expanded]=!1),u[f++]=x}else{const t={$:{}};t[m.level]=x[m.level]+1,t[i]=x,t[r]=n,t[e]=new Array,t[o]=v,t.groupDataField=s,t[m.leaf]=!1,t[s]||(t[s]=t.data[s]),void 0!==v[m.expanded]?t[m.expanded]=v[m.expanded]:(t[m.expanded]=!1,d.expandHierarchy&&(t[m.expanded]=!0)),a&&(t[a]=v[a]),void 0===t.$.id&&(t.$.id=x.$.id+"_"+x[e].length),d.expandHierarchy&&d._collapsedIds&&d._collapsedIds[t.$.id]&&(t[m.expanded]=!1),d._expandedRowIds[t.$.id]&&(t[m.expanded]=!0),x[e][x[e].length]=t,x=t}p[_]=x}else x=p[_]}v&&(v[m.leaf]=!0),null!==x?(null===this.id?void 0===v.$.id&&(v.$.id=x.$.id+"_"+x[e].length):void 0===v.$.id&&-1===v.$.id.toString().indexOf(x.$.id)&&(v.$.id=x.$.id+"_"+v.$.id),v[i]=x,v[m.level]=x[m.level]+1,x[e][x[e].length]=v):void 0===v.$.id&&(v.$.id=c())}if(b){let t=null,e=!1;for(let r=0;r<u.length;r++){const n=u[r];if(!n[n.groupDataField]){t=n,t.$.id.toString().startsWith("Item")&&(e=!0),u.splice(r,1);break}}if(t&&(u.push(t),e))for(let t=0;t<u.length;t++){const e=u[t];e.$.id="Item"+t,Object.keys(d._expandedRowIds).length>0&&(d._expandedRowIds[e.$.id]?e[m.expanded]=!0:e[m.expanded]=!1,d.expandHierarchy&&(e[m.expanded]=!0,d._collapsedIds&&d._collapsedIds[e.$.id]&&(e[m.expanded]=!1)))}}return u}_getHierarchy(t,e,r,n,o){const a=this,i=new Array;let s=this.boundSource;if(o&&(s=o),0===this.boundSource.length)return null;const l=null!==r?r:"children";let d=new Array,m=s,c=m.length,h=a.reservedNames;const u=function(t){let e=t;if(n)for(let t in n){const r=n[t];r.name&&r.map&&(e[r.map]=e[r.name])}return e};for(let r=0;r<c;r++){let n=m[r],o=n[e],i=n[t];"parentId"===e&&(o=n.$.parentId),"id"===t&&(i=n.$.id),n[l]=new Array,a.expandHierarchy&&void 0===n[h.expanded]&&(n[h.expanded]=a.expandHierarchy),d[i]={parentId:o,item:n}}for(let r=0;r<c;r++){const n=m[r];let o=n[e],a=n[t];if("parentId"===e&&(o=n.$.parentId),"id"===t&&(a=n.$.id),void 0!==d[o]){let t={parentId:o,item:d[a].item},e=d[o].item;e[l]||(e[l]=new Array);let r=e[l].length;t=t.item,h?t[h.parent]=e:t.parent=e;const n=u(t);e[l][r]=n,d[o].item=e,d[a].item=t}else{let t=d[a].item;h?void 0===t[h.parent]&&(t[h.parent]=null):void 0===t.parent&&(t.parent=null);const e=u(t);h?e[h.level]=0:e.level=0,i[i.length]=e}}if(0!==i.length){let t=function(e,r){for(let n=0;n<r.length;n++){const o=r[n];h?o[h.level]=e:o.level=e;const i=o[l];i&&i.length>0?(o.leaf=!1,t(e+1,i)):a.virtualDataSourceOnExpand?void 0===o.leaf&&(o.leaf=!1):h?o[h.leaf]=!0:o.leaf=!0}};t(0,i)}return i}summarize(t,e){const r=this;Array.isArray(t)||(t=[t]);let n=[];for(let e=0;e<t.length;e++){const r=t[e];for(let t in r){const e=r[t];n.push({dataField:t,functions:e})}}t=n;let o={},a=new Array;e||(e=r.boundSource);let i=e.length,s=0;if(0!==i&&void 0!==i){for(let r=0;r<i;r++){let n=e[r];if((!n||!n.$||!1!==n.$.filtered)&&n){s++;for(let e=0;e<t.length;e++){const i=t[e];let s=n[i.dataField];if(i.functions&&i.functions.length>0){o[i.dataField]=o[i.dataField]||{},a[i.dataField]=a[i.dataField]||0,a[i.dataField]++;const t=function(t){for(let e in t){let r=o[i.dataField][e];null==r&&(o[i.dataField][e]=0,r=0),"function"==typeof t[e]&&(r=t[e](r,s,i.dataField,n)),o[i.dataField][e]=r}},e=s;let l=parseFloat(s);l=!isNaN(l),e&&e.toDate&&(l=!1),"string"==typeof s&&s.startsWith("+")&&(l=!1),l&&(s=parseFloat(s)),"number"==typeof s&&isFinite(s)?i.functions.forEach((function(e){let n=o[i.dataField][e];if(null==n&&(n=0,"min"===e&&(n=9999999999999),"max"===e&&(n=-9999999999999),"median"===e&&(n=[])),"sum"===e||"avg"===e||"stdev"===e||"stdevp"===e||"var"===e||"varp"===e)n+=parseFloat(s);else if("product"===e)0===r?n=parseFloat(s):n*=parseFloat(s);else if("min"===e)n=Math.min(n,parseFloat(s));else if("max"===e)n=Math.max(n,parseFloat(s));else if("count"===e)n++;else if("median"===e)n.push(parseFloat(s));else if("blank"===e)n=o[i.dataField][e],null==n&&(n=0),s||n++;else if("filled"===e)n=o[i.dataField][e],null==n&&(n=0),void 0!==s&&n++;else if("unique"===e)n=o[i.dataField][e],null==n&&(n=[]),-1===n.indexOf(s)&&n.push(s);else if("object"==typeof e)return void t(e);o[i.dataField][e]=n})):i.functions.forEach((function(e){if("min"===e||"max"===e||"count"===e||"product"===e||"sum"===e||"avg"===e||"stdev"===e||"stdevp"===e||"var"===e||"varp"===e){if(null===s&&"count"!==e)return!0;let t=o[i.dataField][e];return null==t&&(t=0),o[i.dataField][e]=t,!0}if("blank"===e){let t=o[i.dataField][e];null==t&&(t=0),s||t++,o[i.dataField][e]=t}else if("filled"===e){let t=o[i.dataField][e];null==t&&(t=0),s&&t++,o[i.dataField][e]=t}else if("unique"===e){let t=o[i.dataField][e];null==t&&(t=[]),-1===t.indexOf(s)&&t.push(s),o[i.dataField][e]=t}"object"==typeof e&&t(e)}))}}}}for(let r=0;r<t.length;r++){const n=t[r];if(n.functions&&(!n.functions||0!==n.functions.length)){if(o[n.dataField]||(o[n.dataField]={},n.functions.forEach((function(t){o[n.dataField][t]=0}))),void 0!==o[n.dataField].avg){const t=o[n.dataField].avg,e=a[n.dataField];o[n.dataField].avg=0===e||void 0===e?0:t/e}else void 0!==o[n.dataField].count&&(o[n.dataField].count=s);if(void 0!==o[n.dataField].unique){const t=o[n.dataField].unique;o[n.dataField].unique=t.length}if(void 0!==o[n.dataField].median){let t=o[n.dataField].median;t.sort((function(t,e){return t-e})),o[n.dataField].median=.5*(t[Math.floor((t.length+1)/2)-1]+t[Math.ceil((t.length+1)/2)-1])}(o[n.dataField].stdev||o[n.dataField].stdevp||o[n.dataField].var||o[n.dataField].varp)&&n.functions.forEach((function(t){if("stdev"===t||"var"===t||"varp"===t||"stdevp"===t){const r=o[n.dataField][t],a=i,s=r/i;let l=0;for(let t=0;t<i;t++){let r=e[t][n.dataField];l+=(r-s)*(r-s)}let d="stdevp"===t||"varp"===t?a:a-1;0===d&&(d=1),"var"===t||"varp"===t?o[n.dataField][t]=l/d:"stdevp"!==t&&"stdev"!==t||(o[n.dataField][t]=Math.sqrt(l/d))}}))}}return o}}_getDataItem(t,e){const r=this,n={},o="number"==typeof r.dataSource||r.dataSourceLength;if(!t)return{$:{id:e,isEmpty:!0,index:e}};if("string"==typeof t&&(t={"":t}),o){for(let t=0;t<r.dataFields.length;t++){n[(r.dataFields?r.dataFields[t]:{}).name]=""}return n.$={},n.$.id=e,n.$.index=e,n}const a=t;if(void 0!==a.expanded&&(n.expanded=a.expanded,"true"===a.expanded||!0===a.expanded||1===a.expanded?n.expanded=!0:n.expanded=!1),r.childrenDataField?void 0!==a[r.childrenDataField]&&(n.children=a[r.childrenDataField]):void 0!==a.children?n.children=a.children:void 0!==a.items&&(n.children=a.items),void 0!==a.leaf&&(n.leaf=a.leaf),void 0!==a.level&&(n.level=a.level),r.keyDataField&&void 0!==a[r.keyDataField]&&(n[r.keyDataField]=a[r.keyDataField]),r.parentDataField&&void 0!==a[r.parentDataField]&&(n[r.parentDataField]=a[r.parentDataField]),0===r.dataFields.length){const e=Object.getOwnPropertyNames(t);for(let t=0;t<e.length;t++)"$"!==e[t]&&r.dataFields.push({name:e[t],dataType:"string"})}for(let e=0;e<r.dataFields.length;e++){const o=r.dataFields?r.dataFields[e]:{};let i="";if(null==o)continue;if(t.length&&(i=t[e]),o.map){let t=o.map.split(r.mapChar);if(t.length>0){let e=a;for(let r=0;r<t.length;r++)a&&e&&(e=e[t[r]]);i=e}else i=a[o.map]}null!=i?i=i.toString():void 0===i&&null!==i&&(i="");let s=!1;if(""===i&&(s=!0,i=t[o.name],void 0===o.dataType&&(o.dataType="any"),null!=i?"array"!==o.dataType&&("any"===o.dataType?i=Array.isArray(t[o.name])?[...t[o.name]]:"object"==typeof t[o.name]?Object.assign({},t[o.name]):t[o.name]:"date"!==o.dataType&&(i=i.toString())):i=void 0===i&&"any"===o.dataType?null:""),"[object Object]"===i&&o.map&&s&&(i=""),r._cachedValues[i+"_"+o.dataType])i=r._cachedValues[i+"_"+o.dataType];else{if("bool"===o.dataType||"boolean"===o.dataType)"true"===i||"1"===i?i=!0:"false"!==i&&"0"!==i||(i=!1);else if("number"===o.dataType)-1===i.indexOf(".")&&i.indexOf(",")>=0&&i.substring(1+i.indexOf(",")).length<3&&(i=i.replace(",",".")),i=r.$document.deserialize(""+i,o.dataType,!0);else if("date"===o.dataType)if(o.formatString&&Smart.Utilities.DateTime){i=Smart.Utilities.DateTime.ParseDate(i,o.formatString)}else i=r.$document.deserialize(""+i,o.dataType,!0);else"any"!==o.dataType&&(i="string"===o.dataType&&"null"===i?"null":r.$document.deserialize(""+i,o.dataType,!0));"any"!==o.dataType&&(r._cachedValues[i+"_"+o.dataType]=i)}"string"!==o.dataType&&"boolean"!==o.dataType&&"bool"!==o.dataType&&"any"!==o.dataType&&(isNaN(i)||i===-1/0||i===1/0)&&(i="date"===o.dataType||"number"===o.dataType?null:0),"parent"!==o.name&&"group"!==o.name&&"leaf"!==o.name&&"level"!==o.name?("string"===o.dataType&&/<.+?>/.test(i)&&i.replace&&("all"===r.sanitizeHTML?i=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,"""):"blackList"===r.sanitizeHTML&&(i=window.Smart.Utilities.Core.sanitizeHTML(i))),n[o.name]=i):n.$[o.name]=i}let i=e;if(r.id){if(i=a[r.id],void 0===i){const t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};i=t()+t()}"object"==typeof i&&(i=e),a.$&&void 0!==a.$.id&&(i=a.$.id)}else if(!r.virtualDataSource&&r.dataItemById&&r.dataItemById[i])for(i=r.length;r.dataItemById[i];)i++;return n.$||(n.$={}),n.$.id=i,n.$.index=e,new Object(n)}_bindToArray(){const t=this,e="number"==typeof t.dataSource||t.dataSourceLength,r=[];t.boundSource.canNotify=!1;const n=e?"number"==typeof t.dataSource?t.dataSource:t.dataSource.length:t.observable?t.length:t.dataSource.length;for(let o=0;o<n;o++){const n=e?{}:t.dataSource[o],a=t._getDataItem(n,o);r.push(a)}if(e&&t.dataSourceLength&&t.dataSource.length>0)for(let e=0;e<t.dataSource.length;e++){const n=t.dataSource[e].cell,o=t.dataSource[e].value,a=n.replace(/[^0-9]/g,""),i=n.replace(/[0-9]/g,"");r[a-1][i]=o}t.boundSource=!1===t.observable||t.virtualDataSource?[]:new Smart.ObservableArray(r),t.observable&&(t.boundSource=new Smart.ObservableArray(r));for(let e=0;e<n;e++)t.observable?t[e]=t.boundSource[e]:t[e]=r[e],t.dataItemById[t[e].$.id]=t[e];!1===t.observable&&(t.boundSource=r),t.boundSource.canNotify=!0}_bindToICS(){const t=""+this.dataSource,e=this.rowDelimiter||"\n",r=t.split("\r"),n=[];let o=t.split(e),a=o.length;1===a&&r.length>1&&(o=r,a=o.length);const i=function(t,e){var r=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z)?$/.exec(t);if(!r)throw new Error("Invalid UNTIL value: "+t);return e?new Date(r[1],r[2]-1,r[3],0,0,0,0):new Date(Date.UTC(r[1],r[2]-1,r[3],r[5]||0,r[6]||0,r[7]||0))};for(let t=0;t<a;t++){const e=o[t].trim();if(e.indexOf("BEGIN:VEVENT")>=0)var s={};else if(s)if(e.indexOf("BEGIN:VALARM")>=0)var l={};else{if(l){if(e.indexOf("ACTION")>=0){l.ACTION=e.substring(e.indexOf("ACTION")+7);continue}if(e.indexOf("DESCRIPTION")>=0){l.DESCRIPTION=e.substring(e.indexOf("DESCRIPTION")+12);continue}if(e.indexOf("TRIGGER")>=0){l.TRIGGER=e.substring(e.indexOf("TRIGGER")+8);continue}if(e.indexOf("END:VALARM")>=0){s.ALARM||(s.ALARM=[]),s.ALARM.push(l),l=void 0;continue}}if(e.indexOf("SUMMARY")>=0)s.SUMMARY=e.substring(e.indexOf("SUMMARY")+8);else if(e.indexOf("LOCATION")>=0)s.LOCATION=e.substring(e.indexOf("LOCATION")+9);else if(e.indexOf("DESCRIPTION")>=0)s.DESCRIPTION=e.substring(e.indexOf("DESCRIPTION")+12);else if(e.indexOf("RRULE")>=0)s.RRULE=e.substring(e.indexOf("RRULE")+6);else if(e.indexOf("RECURRENCE-ID")>=0)s.RECURRENCEID=e.substring(e.indexOf("RECURRENCE-ID")+14);else if(e.indexOf("RECURRENCE-ID;VALUE=DATE")>=0)s.RECURRENCEID=e.substring(e.indexOf("RECURRENCE-ID;VALUE=DATE")+25);else if(e.indexOf("EXDATE;VALUE=DATE")>=0){const t=e.substring(e.indexOf("EXDATE;VALUE=DATE")+20);s.EXDATE=t}else if(e.indexOf("EXDATE")>=0){const t=e.substring(e.indexOf("EXDATE")+7);s.EXDATE=t}else e.indexOf("DTEND;VALUE=DATE")>=0?s.DTEND=i(e.substring(e.indexOf("DTEND;VALUE=DATE")+17),!0):e.indexOf("DTEND")>=0?s.DTEND=i(e.substring(e.indexOf("DTEND")+6)):e.indexOf("DTSTART;VALUE=DATE")>=0?s.DTSTART=i(e.substring(e.indexOf("DTSTART;VALUE=DATE")+19),!0):e.indexOf("DTSTART")>=0?s.DTSTART=i(e.substring(e.indexOf("DTSTART")+8)):e.indexOf("UID")>=0?s.uid=s.UID=e.substring(e.indexOf("UID")+4):e.indexOf("STATUS")>=0?s.STATUS=e.substring(e.indexOf("STATUS")+7):e.indexOf("TITLE")>=0?s.TITLE=e.substring(e.indexOf("TITLE")+6):e.indexOf("CATEGORIES")>=0?s.CATEGORIES=e.substring(e.indexOf("CATEGORIES")+11):e.indexOf("END:VEVENT")>=0&&(n.push(s),s.ALARM&&(s.ALARM=JSON.stringify(s.ALARM)),l=void 0)}}this.canNotify=!1,this.dataSource=n,this.canNotify=!0,this._bindToArray()}_bindToJSON(){const t=this,e=[],r=t.dataSource.length?t.dataSource:Object.entries(t.dataSource);t.boundSource.canNotify=!1;for(let n=0;n<r.length;n++){const o=r[n],a=t._getDataItem(o,n);e.push(a)}t.boundSource=!1===t.observable||t.virtualDataSource?[]:new Smart.ObservableArray(e);for(let e=0;e<t.length;e++)t[e]=t.boundSource[e],t.dataItemById[t[e].$.id]=t[e];!1===t.observable&&(t.boundSource=e),t.boundSource.canNotify=!0}sortBy(t,e,r){const n=this;if(!e)for(let r=0;r<n.dataFields.length;r++){const o=n.dataFields[r];if(o.name===t){e=o.dataType;break}}if(n.boundHierarchy){if((!t||0===t.length)&&n.groupBy.length>0)return void n.refreshHierarchy();const o=(t=>{let e=[];for(;t;){e=e.concat(t);for(let r=0;r<t.length;r++)t[r].children&&(e=e.concat(t[r].children));t=t.children}return e})(n.boundHierarchy);if(o){o.find(t=>{if(t.summaryRow)return t})&&n.refreshHierarchy()}const a=function(o){n._sort(o,t,r,e);for(let n=0;n<o.length;n++){const i=o[n];i.children&&a(i.children,t,r,e)}};a(n.boundHierarchy)}else n._sort(n.boundSource,t,r,e)}_createFilter(t,e){const r={"=":"EQUAL","<>":"NOT_EQUAL","!=":"NOT_EQUAL",not_like:"DOES_NOT_CONTAIN",like:"CONTAINS","<":"LESS_THAN",">":"GREATER_THAN","<=":"LESS_THAN_OR_EQUAL",">=":"GREATER_THAN_OR_EQUAL",equal:"EQUAL","not equal":"NOT_EQUAL","less than":"LESS_THAN","greater than":"GREATER_THAN","greater than or equal":"GREATER_THAN_OR_EQUAL","less than or equal":"LESS_THAN_OR_EQUAL","starts with":"STARTS_WITH","ends with":"ENDS_WITH",notEqual:"NOT_EQUAL",not_equal:"NOT_EQUAL",lessThan:"LESS_THAN",greaterThan:"GREATER_THAN",greaterThanOrEqual:"GREATER_THAN_OR_EQUAL",lessThanOrEqual:"LESS_THAN_OR_EQUAL",less_than:"LESS_THAN",greater_than:"GREATER_THAN",greater_than_or_equal:"GREATER_THAN_OR_EQUAL",less_than_or_equal:"LESS_THAN_OR_EQUAL",null:"null","":"EMPTY",isblank:"EMPTY",isnotblank:"NOT_EMPTY",isBlank:"EMPTY",isNotBlank:"NOT_EMPTY",CONTAINS:"CONTAINS",DOES_NOT_CONTAIN:"DOES_NOT_CONTAIN",contains:"CONTAINS",does_not_contain:"DOES_NOT_CONTAIN","not contains":"DOES_NOT_CONTAIN",notcontains:"DOES_NOT_CONTAIN",notContains:"DOES_NOT_CONTAIN",startswith:"STARTS_WITH",endswith:"ENDS_WITH",starts_with:"STARTS_WITH",ends_with:"ENDS_WITH",startsWith:"STARTS_WITH",endsWith:"ENDS_WITH",NULL:"NULL",NOT_NULL:"NOT_NULL"};let n=[];"string"==typeof e&&(e=[e]);for(let t=0;t<e.length;t++){const r=e[t],o=-1===r.indexOf('"')?r.split(" "):r.split('"');let a=[];for(let t=0;t<o.length;t++){const e=o[t];""!==e&&" "!==e&&a.push(e.trim())}n.push(a)}const o=new Smart.FilterGroup,a=[],i=[];for(let e=0;e<n.length;e++){const o=n[e];if(o.length>1){const e=new Smart.FilterGroup;let n=o.length>2?"":"and",a=0,s=[];for(let i=0;i<o.length;i++){let l=o[i];if("and"!==l&&"or"!==l){if(a++,2===a){let d=r[o[i-1]];d||(d=o[i-1]),"number"===t&&(l=parseFloat(l)),"date"===t&&(l=new Date(l));const m=e.createFilter(t,l,d);if(a=0,s.push(m),n){for(let t=0;t<s.length;t++)e.addFilter(n,s[t]);s=[]}}}else n=l}i.push(e)}else{let t=o[0];if(t&&r[t]&&(t="and"),"and"!==t&&"or"!==t)throw new Error('Filter Exprresion expects "AND" or "OR", but the token is: '+t);a.push(t)}}let s=0;if(1===i.length)return i[0];for(let t=0;t<i.length;t++){let e=a[s];(t+1)%2==0&&s++,e||(e="and"),o.addFilter(e,i[t])}return o}filterBy(t,...e){const r=this,n=(()=>{for(let e=0;e<r.dataFields.length;e++){const n=r.dataFields[e];if(n.name===t)return n.dataType}})(),o=r._createFilter(n,e);return r.boundSource.filter(e=>o.evaluate(e[t]))}_filter(t,e="and"){const r=this,n=[],o=[];if(0===t.length)return void r.clearFilter();const a=t=>{for(let e=0;e<r.dataFields.length;e++){const n=r.dataFields[e];if(n.name===t)return n.dataType}};let i,s;"and"===e?(i=!0,s=function(t,e,r){return t&&e.evaluate(r[e.dataField])}):(i=!1,s=function(t,e,r){return t||e.evaluate(r[e.dataField])});for(let e=0;e<t.length;e++){const i=t[e],s=i[0];let l=null;l=i[1]instanceof Smart.FilterGroup?i[1]:r._createFilter(a(s),i.splice(1)),l&&(o.push(s),l.dataField=s,n.push(l))}if(r.boundHierarchy){const t=function(t){let e=i;for(let r=0;r<n.length;r++){const o=n[r];e=s(e,o,t)}return t.$.filtered=e,e},e=function(n,o,a){let i=0;for(let r=0;r<n.length;r++){const a=n[r];t(a),a.$.filtered&&i++,a.children&&e(a.children,a,o)}i>0&&r.groupBy.length>0&&o?(o.$.filtered=!0,a&&!a.$.filtered&&(a.$.filtered=!0)):i>0&&i!==n.length&&o?(o.$.filtered=null,a&&!a.$.filtered&&(a.$.filtered=null)):i>0&&i===n.length&&o&&(o.$.filtered=!0,a&&!a.$.filtered&&(a.$.filtered=!0))};e(r.boundHierarchy,null,null)}else for(let t=0;t<r.boundSource.length;t++){const e=r.boundSource[t];let o=i;for(let t=0;t<n.length;t++){const r=n[t];o=s(o,r,e)}e.$.filtered=o}r.onFilter&&r.onFilter()}clearGroup(){const t=this;t.groupBy=[],t.boundHierarchy=null,t.refreshHierarchy(),t.onGroup&&t.onGroup()}clearFilter(){const t=this;for(let e=0;e<t.boundSource.length;e++){t.boundSource[e].$.filtered=!0}if(t.boundHierarchy){const e=function(t,r,n){for(let n=0;n<t.length;n++){const o=t[n];o.$.filtered=!0,o.$.filtered,o.children&&e(o.children,o,r)}r&&(r.$.filtered=!0,n&&!n.$.filtered&&(n.$.filtered=!0))};e(t.boundHierarchy,null,null)}t.onFilter&&t.onFilter()}clearSort(){this._sort(this.boundSource,[],[],[])}_sort(t,e,r,n,o,a){const i=this;let s=!1;if(0===t.length)return;if(t&&t.constructor&&t instanceof Smart.ObservableArray&&(s=!0),(!t||!Array.isArray(t)||0===t.length||!e||Array.isArray(e)&&0===e.length)&&!s&&!i.boundHierarchy)throw new Error("sort: Missing or Invalid arguments!");"string"==typeof e&&(e=[e]);const l=[],d=[];void 0===r&&(r=[]);const m=function(t,e){let r;switch(e||typeof t){case"string":r=(new Intl.Collator).compare;break;case"number":case"int":case"bigInt":case"float":case"double":r=function(t,e){return t-e};break;case"boolean":case"bool":r=function(t,e){return t===e?0:!1===t?-1:1};break;case"date":case"time":case"dateTime":r=t instanceof Date?function(t,e){return t||e?t?e?t.getTime()-e.getTime():1:-1:0}:t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber?function(t,e){return t.compare(e)}:function(t,e){return t-e};break;case"object":if(t instanceof Date)r=function(t,e){return t||e?t?e?t.getTime()-e.getTime():1:-1:0};else if(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)r=function(t,e){return t.compare(e)};else if(t instanceof Smart.Utilities.Complex||window.NIComplex&&t instanceof window.NIComplex){const t=new Smart.Utilities.ComplexNumericProcessor;r=function(e,r){return t.compareComplexNumbers(e,r)}}}return r};for(let o=0;o<e.length;o++){void 0===r[o]||"asc"===r[o]||"ascending"===r[o]?l[o]=1:l[o]=-1;let s=t[0][e[o]];if(void 0===s&&t[0]&&t[0].children&&t[0].data&&(s=t[0].data[e[o]]),a&&a){const t=e[o];if(a[t]){d[o]=a[t];continue}}i.sortComparators&&i.sortComparators[e[o]]?d[o]=i.sortComparators[e[o]]:d[o]=m(s,n[o])}e.length>0&&o?o(t,e,r,d):t.sort((function(t,r){for(let n=0;n<e.length;n++){const o=d[n](t[e[n]],r[e[n]]);if(0===o){if(e[n+1])continue;return void 0!==t.$.index?(t.$.index-r.$.index)*l[n]:0}return o*l[n]}if(0===e.length)return t.$.index<r.$.index?-1:t.$.index>r.$.index?1:0}));for(let e=0;e<t.length;e++)i[e]=t[e]}static Filter(t,e,r,n,o="and"){let a,i;return"and"===o?(a=!0,i=function(t,e,r,o){return n?t&&n(e,r,o):t&&o.evaluate(e[r])}):(a=!1,i=function(t,e,r,o){return n?t||n(e,r,o):t||o.evaluate(e[r])}),t.filter(t=>{let n=a;for(let o=0;o<r.length;o++){const a=r[o],s=e[o];n=i(n,t,s,a)}return n})}filter(t,e,r){Smart.DataAdapter.Filter(this.boundSource,t,e,r)}sort(t,e,r){Smart.DataAdapter.Sort(this.boundSource,t,e,r)}static Sort(t,e,r,n){const o=function(t){let e;switch(typeof t){case"string":if(t.indexOf("-")>=0||t.indexOf("/")>=0){const e=new Date(t);if(e&&"Invalid Date"!==e.toString()){return function(t,e){const r=new Date(t),n=new Date(e);return r||n?r?n?r.getTime()-n.getTime():1:-1:0}}}e=(new Intl.Collator).compare;break;case"number":e=function(t,e){return t-e};break;case"boolean":e=function(t,e){return t===e?0:!1===t?-1:1};break;case"object":if(t instanceof Date)e=function(t,e){return t||e?t?e?t.getTime()-e.getTime():1:-1:0};else if(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)e=function(t,e){return t.compare(e)};else if(t instanceof Smart.Utilities.Complex||window.NIComplex&&t instanceof window.NIComplex){const t=new Smart.Utilities.ComplexNumericProcessor;e=function(e,r){return t.compareComplexNumbers(e,r)}}else e=function(t,e){return t-e}}return e};if(!t||!Array.isArray(t)||0===t.length||!e||Array.isArray(e)&&0===e.length)return;"string"==typeof e&&(e=[e]);const a=[],i=[];void 0===r&&(r=[]);for(let n=0;n<e.length;n++)void 0===r[n]||"asc"===r[n]||"ascending"===r[n]?a[n]=1:a[n]=-1,i[n]=o(t[0][e[n]]);if(n)return void n(t,e,r,i);const s=t.slice(0);return s.sort((function(t,r){for(let n=0;n<e.length;n++){const o=i[n](t[e[n]],r[e[n]]);if(0===o){if(e[n+1])continue;return void 0!==t._index?(t._index-r._index)*a[n]:0}return o*a[n]}})),s}};class r{constructor(t,e){this.config=t,this.callback=e,!1!==t.autoFetch&&this.call(t)}call(t){const e=this;t||(t=e.config);let r="GET",n=t.url,o=null,a=!0;if(t.type&&(r=t.type),t.data)if("GET"===r){n+="?";for(let e in t.data)Object.prototype.hasOwnProperty.call(t.data,e)&&(n+=encodeURI(e+"="+t.data[e]+"&"));"&"===n.charAt(n.length-1)&&(n=n.slice(0,n.length-1))}else"POST"===r&&(o=JSON.stringify(t.data));t&&!1===t.async&&"xlsx"!==t.dataSourceType&&(a=!1),void 0!==window.fetch&&a?e.ajaxFetch(t,r,n,o):e.ajaxXMLHttpRequest(t,r,n,o,a)}ajaxFetch(t,e,r,n){const o=this,a={method:e};let i,s,l,d;switch(t.dataSourceType){case"json":i="json";break;case"xlsx":i="arrayBuffer";break;default:i="text"}if(t&&t.contentType&&(a.headers=new Headers({"Content-Type":t.contentType})),null!==n&&(a.body=n),t.timeout&&(l=setTimeout((function(){d=!0}),t.timeout)),t.beforeSend){if(!1===t.beforeSend(a,t))return}fetch(r,a).then((function(t){if(d)throw s=408,new Error("timeout");if(l&&clearTimeout(l),s=t.status,!t.ok)throw new Error(t.statusText);return t[i]()})).then((function(e){if("arrayBuffer"===i)return JSZip.loadAsync(e).then((function(e){return e.files["xl/worksheets/sheet1.xml"].async("text").then((function(r){return e.files["xl/sharedStrings.xml"].async("text").then((function(e){const n=o.parseXLSXData(r,e);o.ajaxComplete(t,n,s)}))}))}));o.ajaxComplete(t,e,s)})).catch((function(e){"JSZip is not defined"===e.message&&(e.message="JSZip is not defined. Please include a reference to JSZip to be able to load data from XLSX files."),t&&t.loadError&&t.loadError(s,e),o.callback&&o.callback(e,s)}))}ajaxXMLHttpRequest(t,e,r,n,o){const a=new XMLHttpRequest,i=this;if(a.open(e,r,o),a.ontimeout=function(){t&&t.loadError&&t.loadError(408,"timeout")},a.onload=function(){if(4===a.readyState){const e=a.status;let r=a.response;e>=200&&e<=299?("json"===t.dataSourceType&&(r=JSON.parse(r)),i.ajaxComplete(t,r,e)):t&&t.loadError&&t.loadError(e,r)}},a.onerror=function(){t&&t.loadError&&t.loadError(a.status,a.response)},t&&t.contentType&&a.setRequestHeader("Content-Type",t.contentType),o&&t.timeout&&(a.timeout=t.timeout),t.beforeSend){if(!1===t.beforeSend(a,t))return}a.send(n)}ajaxComplete(t,e,r){if(t){if(t.beforeLoadComplete){const r=t.beforeLoadComplete(e);r&&(e=r)}t.loadComplete&&t.loadComplete(e,r),this.callback&&this.callback(e,r)}}parseXLSXData(t,e){const r=new DOMParser,n=r.parseFromString(e,"text/xml"),o=Array.from(n.getElementsByTagName("si")),a=[],i=r.parseFromString(t,"text/xml"),s=Array.from(i.getElementsByTagName("row")),l=[];return o.forEach((function(t){let e=t.getElementsByTagName("t");if(1===e.length)a.push(e[0].innerHTML);else{let t="";e=Array.from(e),e.forEach((function(e){t+=e.innerHTML})),a.push(t)}})),s.forEach((function(t){const e={};Array.from(t.getElementsByTagName("c")).forEach((function(t){const r=t.getAttribute("r").match(/\D+/)[0],n=t.getAttribute("t"),o=t.getElementsByTagName("v")[0].innerHTML;let i;switch(n){case"s":i=a[parseFloat(o)];break;case"b":i=1===parseFloat(o);break;default:i=parseFloat(o)}e[r]=i})),l.push(e)})),l}}Smart.Ajax=window.Ajax=r},5:function(t,e,r){(e=r(0)(!1)).push([t.i,'.smart-input-group {\r\n position: relative;\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\r\n -webkit-box-align: stretch;\r\n -ms-flex-align: stretch;\r\n align-items: stretch;\r\n box-sizing: border-box;\r\n font-family: var(--smart-font-family);\r\n}\r\n.smart-input-group smart-input .smart-drop-down-button {\r\n border-left: none;\r\n}\r\n.smart-input-group smart-button[focus] {\r\n z-index: 3;\r\n}\r\n.smart-input-group > .smart-input-group-prepend > smart-button,\r\n.smart-input-group > .smart-input-group-prepend > .smart-input-group-text {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-prepend:first-child > smart-button:not(:first-child),\r\n.smart-input-group > .smart-input-group-prepend:first-child > .smart-input-group-text:not(:first-child) {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-prepend:not(:first-child) > smart-button,\r\n.smart-input-group > .smart-input-group-prepend:not(:first-child) > .smart-input-group-text {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-append > smart-button,\r\n.smart-input-group > .smart-input-group-append > .smart-input-group-text {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-append:last-child > smart-button:not(:last-child):not(.dropdown-toggle),\r\n.smart-input-group > .smart-input-group-append:last-child > .smart-input-group-text:not(:last-child) {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-append:not(:last-child) > smart-button,\r\n.smart-input-group > .smart-input-group-append:not(:last-child) > .smart-input-group-text {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .custom-file,\r\n.smart-input-group > .custom-select,\r\n.smart-input-group > .form-control {\r\n position: relative;\r\n flex: 1 1 auto;\r\n width: 1%;\r\n margin-bottom: 0;\r\n}\r\n.smart-input-group > .custom-file:focus,\r\n.smart-input-group > .custom-select:focus,\r\n.smart-input-group > .form-control:focus {\r\n z-index: 3;\r\n}\r\n.smart-input-group > .custom-select:not(:first-child),\r\n.smart-input-group > .form-control:not(:first-child) {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .custom-select:not(:last-child),\r\n.smart-input-group > .form-control:not(:last-child) {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .form-control[focus] {\r\n z-index: 3;\r\n}\r\n.smart-input-group > .custom-file + .custom-file,\r\n.smart-input-group > .custom-file + .custom-select,\r\n.smart-input-group > .custom-file + .form-control,\r\n.smart-input-group > .custom-select + .custom-file,\r\n.smart-input-group > .custom-select + .custom-select,\r\n.smart-input-group > .custom-select + .form-control,\r\n.smart-input-group > .form-control + .custom-file,\r\n.smart-input-group > .form-control + .custom-select,\r\n.smart-input-group > .form-control + .form-control {\r\n margin-left: -1px;\r\n}\r\n\r\n.smart-input-group-append,\r\n.smart-input-group-prepend {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n box-sizing: border-box;\r\n height: auto;\r\n}\r\n.smart-input-group-append > smart-button,\r\n.smart-input-group-prepend > smart-button {\r\n height: 100%;\r\n}\r\n.smart-input-group-append smart-button + smart-button,\r\n.smart-input-group-append smart-button + .smart-input-group-text,\r\n.smart-input-group-append .smart-input-group-text + smart-button,\r\n.smart-input-group-append .smart-input-group-text + .smart-input-group-text,\r\n.smart-input-group-prepend smart-button + smart-button,\r\n.smart-input-group-prepend smart-button + .smart-input-group-text,\r\n.smart-input-group-prepend .smart-input-group-text + smart-button,\r\n.smart-input-group-prepend .smart-input-group-text + .smart-input-group-text {\r\n margin-left: -1px;\r\n}\r\n\r\n.smart-input-group-prepend {\r\n margin-right: -1px;\r\n}\r\n\r\n.smart-input-group-append {\r\n margin-left: -1px;\r\n}\r\n\r\n.smart-input-group-text {\r\n border-radius: var(--smart-border-radius);\r\n display: flex;\r\n align-items: center;\r\n padding: .375rem .75rem;\r\n margin-bottom: 0;\r\n font-size: 1rem;\r\n font-weight: 400;\r\n line-height: 1.5;\r\n color: var(--smart-surface-color);\r\n text-align: center;\r\n white-space: nowrap;\r\n background-color: var(--smart-surface);\r\n border: 1px solid var(--smart-border);\r\n}\r\n\r\n.form-control {\r\n border-radius: var(--smart-border-radius);\r\n height: auto;\r\n display: block;\r\n width: 100%;\r\n padding: .375rem .75rem;\r\n font-size: var(--smart-font-size);\r\n line-height: 1.5;\r\n color: #495057;\r\n background-color: var(--smart-background);\r\n background-clip: padding-box;\r\n -webkit-background-clip: padding-box;\r\n border: 1px solid var(--smart-border);\r\n transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;\r\n}\r\n.form-control:focus, .form-control[focus] {\r\n color: var(--smart-color);\r\n background-color: var(--smart-background);\r\n border-color: var(--smart-primary);\r\n outline: 0;\r\n}\r\n\r\n.smart-form {\r\n background: var(--smart-background);\r\n color: var(--smart-background-color);\r\n border: 0px solid var(--smart-border);\r\n border-radius: var(--smart-border-radius);\r\n box-sizing: border-box;\r\n overflow: visible;\r\n width: 600px;\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n display: block;\r\n}\r\n@media only screen and (max-width: 600px) {\r\n .smart-form {\r\n width: 350px;\r\n }\r\n}\r\n\r\n.smart-form-row {\r\n padding: 5px 0px;\r\n box-sizing: border-box;\r\n}\r\n.smart-form-row .smart-form-control-label {\r\n display: flex;\r\n align-items: center;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n font-family: var(--smart-font-family);\r\n font-size: calc(0.9 * var(--smart-font-size));\r\n}\r\n.smart-form-row .smart-form-control-label[required]:after {\r\n content: \'*\';\r\n color: #a94442;\r\n font-size: 14px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n}\r\n.smart-form-row .smart-form-control {\r\n display: flex;\r\n box-sizing: border-box;\r\n}\r\n.smart-form-row .smart-form-control + .smart-form-label[required]:before {\r\n content: \'*\';\r\n color: #a94442;\r\n font-size: 14px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n}\r\n.smart-form-row .smart-form-control + .smart-form-control-label[required]:after {\r\n content: \'\';\r\n}\r\n\r\n.smart-form-row-flex {\r\n display: flex;\r\n}\r\n\r\n.smart-form-control .smart-form-control-addon {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.smart-form-control.left {\r\n justify-content: flex-start;\r\n}\r\n.smart-form-control.center {\r\n justify-content: center;\r\n}\r\n.smart-form-control.right {\r\n justify-content: flex-end;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor {\r\n pointer-events: none;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor .smart-drop-down-button,\r\n.smart-form-control[readonly] .smart-form-editor .smart-calendar-button {\r\n visibility: hidden;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor textarea,\r\n.smart-form-control[readonly] .smart-form-editor input,\r\n.smart-form-control[readonly] .smart-form-editor div,\r\n.smart-form-control[readonly] .smart-form-editor span {\r\n border: none !important;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor + div,\r\n.smart-form-control[readonly] .smart-form-editor + .smart-form-control-addon,\r\n.smart-form-control[readonly] .smart-form-editor + .smart-form-control-icon {\r\n visibility: hidden;\r\n}\r\n\r\n.smart-form-control-icon:after {\r\n content: attr(tooltip);\r\n visibility: hidden;\r\n white-space: nowrap;\r\n margin-top: 25px;\r\n position: absolute;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n padding: 7px;\r\n background-color: var(--smart-secondary);\r\n color: var(--smart-secondary-color);\r\n font-size: calc(var(--smart-font-size) - 2px);\r\n opacity: 0;\r\n transform: scale(0);\r\n transition: opacity 0.2s ease-out, transform 0.1s ease-out;\r\n z-index: 9;\r\n}\r\n.smart-form-control-icon:hover:after {\r\n visibility: visible;\r\n opacity: 0.9;\r\n transform: scale(1);\r\n color: var(--smart-secondary-color);\r\n background: var(--smart-secondary);\r\n}\r\n\r\n.smart-form-control-label[readonly]:after {\r\n visibility: hidden;\r\n}\r\n\r\n.smart-form-group .smart-form-group-content {\r\n display: grid;\r\n grid-template-columns: none;\r\n}\r\n.smart-form-group[columns="2"] > .smart-form-group-content {\r\n grid-template-columns: 50% 50%;\r\n}\r\n.smart-form-group[columns="3"] > .smart-form-group-content {\r\n grid-template-columns: 33% 33% 33%;\r\n}\r\n.smart-form-group[columns="4"] > .smart-form-group-content {\r\n grid-template-columns: 25% 25% 25% 25%;\r\n}\r\n.smart-form-group[columns="5"] > .smart-form-group-content {\r\n grid-template-columns: 20% 20% 20% 20% 20%;\r\n}\r\n.smart-form-group[columns="6"] > .smart-form-group-content {\r\n grid-template-columns: 16.66% 16.66% 16.66% 16.66% 16.66% 16.66%;\r\n}\r\n\r\n.smart-form-group-label {\r\n font-size: 20px;\r\n font-family: var(--smart-font-family);\r\n padding-top: 10px;\r\n padding-bottom: 10px;\r\n margin-bottom: 20px;\r\n border-bottom: 1px solid var(--smart-border);\r\n}\r\n.smart-form-group-label.center {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.smart-form-group-label.right {\r\n display: flex;\r\n justify-content: flex-end;\r\n}\r\n\r\n.smart-form-group-buttons {\r\n display: flex;\r\n justify-content: flex-end;\r\n padding-right: 30px;\r\n}\r\n.smart-form-group-buttons smart-button {\r\n margin-left: 20px;\r\n}\r\n\r\n.smart-form-editor {\r\n width: 100%;\r\n}\r\n.smart-form-editor.smart-validation-success:not(smart-check-box):not([focus]) > div.smart-container::after {\r\n display: none;\r\n}\r\n.smart-form-editor.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after {\r\n left: initial;\r\n right: 0px;\r\n z-index: 9;\r\n}\r\n.smart-form-editor.smart-validation-error:not(smart-check-box) > div.smart-container::after {\r\n left: initial;\r\n right: 0px;\r\n z-index: 9;\r\n}\r\n.smart-form-editor.smart-numeric-text-box.smart-validation-success:not(smart-check-box)[focus] > div.smart-container input, .smart-form-editor.smart-numeric-text-box.smart-validation-error:not(smart-check-box) > div.smart-container input {\r\n padding-right: 30px;\r\n}\r\n.smart-form-editor.smart-numeric-text-box[focus][spin-buttons].smart-validation-success[focus] input, .smart-form-editor.smart-numeric-text-box[focus][spin-buttons].smart-validation-error[focus] input, .smart-form-editor.smart-number-input[focus]:not([drop-down-button-position="none"]).smart-validation-success[focus] input, .smart-form-editor.smart-number-input[focus]:not([drop-down-button-position="none"]).smart-validation-error[focus] input {\r\n padding-right: 30px;\r\n}\r\n.smart-form-editor.smart-numeric-text-box.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-numeric-text-box.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-number-input.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-number-input.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-combo-box.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-combo-box.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-date-time-picker.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-date-time-picker.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-drop-down-list.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-drop-down-list.smart-validation-error:not(smart-check-box) > div.smart-container::after {\r\n right: 20px;\r\n}\r\n.smart-form-editor.smart-invalid + .smart-error-label-like-after-element, .smart-form-editor.smart-valid + .smart-success-label-like-after-element {\r\n left: initial;\r\n right: 0px;\r\n z-index: 9;\r\n}\r\n\r\ninput.smart-form-editor.smart-valid:not(:focus) + .smart-success-label-like-after-element {\r\n display: none;\r\n}\r\ninput.smart-form-editor.smart-invalid + .smart-error-label-like-after-element, input.smart-form-editor.smart-valid + .smart-success-label-like-after-element {\r\n right: 35px;\r\n}\r\n\r\n.smart-form-tab {\r\n grid-row: 1;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n min-width: 0;\r\n cursor: pointer;\r\n font-family: var(--smart-font-family);\r\n box-sizing: border-box;\r\n transition: background-color 0.2s ease-in-out;\r\n}\r\n.smart-form-tab.selected {\r\n border-bottom: 2px solid var(--smart-primary);\r\n color: var(--smart-primary);\r\n}\r\n.smart-form-tab.smart-invalid {\r\n border-bottom: 2px solid var(--smart-error);\r\n color: var(--smart-error);\r\n}\r\n\r\n.smart-form-tab-strip {\r\n display: grid;\r\n grid-auto-columns: 1fr;\r\n overflow: hidden;\r\n border-bottom: var(--smart-border-width) solid var(--smart-border);\r\n height: 30px;\r\n margin-bottom: 10px;\r\n}\r\n.smart-form-tab-strip .smart-form-tab .smart-form-tab-label {\r\n font-size: calc(var(--smart-font-size) + 1px);\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n padding: 5px;\r\n}\r\n.smart-form-tab-strip .smart-form-tab:hover {\r\n background: var(--smart-ui-state-hover);\r\n color: var(--smart-ui-state-color-hover);\r\n}\r\n.smart-form-tab-strip[vertical] {\r\n display: flex;\r\n height: auto;\r\n flex-direction: column;\r\n background: var(--smart-background);\r\n border: none;\r\n border-radius: initial;\r\n padding-bottom: 1px;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab {\r\n background-color: var(--smart-surface);\r\n color: var(--smart-surface-color);\r\n overflow: hidden;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n border-radius: 0px;\r\n padding: 10px;\r\n margin-bottom: -1px;\r\n justify-content: left;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab .smart-form-tab-label {\r\n width: 100%;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab .smart-form-tab-button {\r\n float: right;\r\n transition: transform 0.3s ease-in-out;\r\n transform: rotate(-180deg);\r\n font-size: 17px;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab.selected {\r\n background: var(--smart-ui-state-focus);\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab.selected .smart-form-tab-button {\r\n transform: rotate(0deg);\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab.smart-invalid {\r\n color: var(--smart-error);\r\n background-color: var(--smart-surface);\r\n}\r\n.smart-form-tab-strip[breadcrumb] {\r\n border: none;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab {\r\n border-bottom: none;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab .smart-form-tab-label {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab .smart-form-tab-label .circle {\r\n border-radius: 100%;\r\n font-family: var(--smart-font-family);\r\n width: 12px;\r\n height: 12px;\r\n padding: 5px;\r\n margin-right: 10px;\r\n background: var(--smart-secondary);\r\n color: var(--smart-secondary-color);\r\n align-items: center;\r\n justify-content: center;\r\n display: flex;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab.smart-invalid {\r\n color: var(--smart-color);\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab.selected .smart-form-tab-label .circle {\r\n background: var(--smart-primary);\r\n color: var(--smart-primary-color);\r\n}\r\n\r\n.smart-form-tab-control {\r\n padding: 0;\r\n display: none !important;\r\n}\r\n.smart-form-tab-control.selected {\r\n margin-bottom: -1px;\r\n display: grid !important;\r\n}\r\n.smart-form-tab-control.selected[vertical] {\r\n padding: 10px;\r\n border: 1px solid var(--smart-border);\r\n}\r\n\r\n.smart-form-options-horizontal {\r\n display: flex;\r\n}\r\n',""]),t.exports=e},55:function(t,e){Smart.Utilities.Assign("DataExporter",class{constructor(t,e,r,n){const o=this;t||(t={}),o.style=t.style,o.header=t.header,o.exportHeader=void 0===t.exportHeader||t.exportHeader,o.hierarchical=t.hierarchical,o.expandChar=t.expandChar||"+",o.collapseChar=t.collapseChar||"-",o.pageOrientation=t.pageOrientation,o.allowNull=t.allowNull||!1,!o.hierarchical&&e&&e.length>0?o.groupBy=e:o.mergedCells=t.mergedCells,!o.groupBy&&r&&Object.keys(r).length>0&&(o.filterBy=r),n&&(o.conditionalFormatting=n),o.timeBetween1900And1970=new Date(1970,0,1,0,0,0).getTime()-new Date(1900,0,1,0,0,0).getTime()}downloadFile(t,e,r){let n;if(!r)return t;if(n=t instanceof Blob?t:new Blob([t],{type:e}),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,r);else{const t=document.createElement("a"),e=URL.createObjectURL(n);t.href=e,t.download=r,t.style.position="absolute",t.style.visibility="hidden",document.body.appendChild(t),t.click(),setTimeout((function(){document.body.removeChild(t),window.URL.revokeObjectURL(e)}),100)}}exportData(t,e,r,n){const o=this;if(o.actualHierarchy=o.hierarchical,e=e.toLowerCase(),o.exportHeader&&(o.header?(0===(t=t.slice(0)).length&&(o.actualHierarchy=!1),o.processComplexHeader(o.header,t,e)):1===t.length&&(o.actualHierarchy=!1)),0===t.length)return void console.warn("No data to export.");"xlsx"===e&&(o.xlsxStartIndex=o.complexHeader?o.complexHeader.length:+o.exportHeader),o.actualHierarchy&&(t=o.processHierarchicalData(t,e)),o.getDatafields(t),r&&r.slice(r.length-e.length-1,r.length)!=="."+e&&(r+="."+e);let a=null;switch(e){case"csv":a=o.exportToCSVAndTSV(t,{delimiter:", ",MIME:"text/csv",toRemove:2},r);break;case"html":a=o.exportToHTML(t,r);break;case"jpeg":case"png":o.exportToImage(t,r,e,n);break;case"json":a=o.exportToJSON(t,r);break;case"pdf":a=o.exportToPDF(t,r);break;case"tsv":a=o.exportToCSVAndTSV(t,{delimiter:"\t",MIME:"text/tab-separated-values",toRemove:1},r);break;case"xlsx":a=o.exportToXLSX(t,r);break;case"xml":a=o.exportToXML(t,r);break;case"md":a=o.exportToMD(t,r)}return n&&a&&n(a),delete o.complexHeader,a}exportToCSVAndTSV(t,e,r){const n=this,o=n.datafields;let a="";for(let r=0;r<t.length;r++){const i=t[r];let s="";for(let t=0;t<o.length;t++)n.actualHierarchy&&0===t?s+=('""'+e.delimiter).repeat(i._level-1)+'"'+i[o[t]]+'"'+e.delimiter+('""'+e.delimiter).repeat(n.maxLevel-i._level):s+='"'+i[o[t]]+'"'+e.delimiter;s=s.slice(0,s.length-e.toRemove)+"\n",a+=s}return this.downloadFile(a,e.MIME,r)}exportToHTML(t,e){const r=this,n=r.datafields,o=r.style;let a="",i=0,s="";if(t=r.processGroupingInformation(t),r.data=t,r.exportHeader&&(a=r.getHTMLHeader(n,t),i=1),arguments[2]){s=`<script type="text/javascript" src="${Array.from(document.getElementsByTagName("script")).find(t=>-1!==t.src.indexOf("html2canvas")).src}"><\/script>`}let l=`<!DOCTYPE html>\n<html>\n<head>\n <meta charset="UTF-8">\n <style type="text/css">\n${r.getRowStyle()}${r.getColumnStyle()}\n </style>${s}${r.toggleableFunctionality()}\n</head>\n<body>\n <table${r.getTableStyle()}>${a}\n <tbody>\n`;const d={},m={},c=[];r.getMergedCellsInfo(d,m);t:for(let a=i;a<t.length;a++){const s=t[a],h=a-i;let u=r.getAlternationIndex(h," rowN"),p="",f="",g="",b=0;if(r.actualHierarchy)s._collapsed&&(p=" collapsed"),f=` level="${s._level}"`;else if(r.groupBy)for(let t=0;t<r.groupBy.length;t++){const e=r.groupBy[t],n=s[e],o=r.groups[e][n];if(g+=n,-1===c.indexOf(g)){l+=` <tr class="row">\n <td class="column group" style="padding-left: ${25*b}px;" colspan="${r.datafields.length}">${o}</td>\n </tr>`,c.push(g),a--;continue t}b++}let v=` <tr class="row row${h}${u}${p}"${f}`;e||(v+=' style="page-break-inside: avoid;"'),v+=">\n";for(let t=0;t<n.length;t++){const e=t+","+h;let a=1,i=1;if(d[e])a=d[e].colspan,i=d[e].rowspan;else if(m[e])continue;const l=n[t];let c=s[l],u="";if(r.actualHierarchy&&0===t){let t="";s._expanded?t=r.collapseChar:!1===s._expanded&&(t=r.expandChar),u=`<div class="toggle-element" style="margin-left: ${25*(s._level-1)+5}px;" expanded>${t}</div>`}c=r.getFormattedValue(c,l);let p="";if(o&&o.columns&&o.columns[l]&&o.columns[l][h]){const t=o.columns[l][h];p+=`border-color: ${t.border}; background-color: ${t.background}; color: ${t.color};"`}0===t&&b>1&&(p+=`padding-left: ${25*(b-1)}px;"`),p&&(p=` style="${p}"`),v+=` <td class="column column${l}"${p} colspan="${a}" rowspan="${i}">${u+c}</td>\n`}l+=v+" </tr>\n"}return l+=" </tbody>\n </table>\n</body>\n</html>",arguments[2]?l:this.downloadFile(l,"text/html",e)}exportToImage(t,e,r,n){try{html2canvas}catch(t){throw new Error("smart-grid: Missing reference to 'html2canvas.min.js'.")}let o=null;const a=this.exportToHTML(t,e,!0),i=document.createElement("iframe");return i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.border="none",i.style.width="100%",i.style.height="100%",i.style.opacity=0,i.style.pointerEvents="none",document.body.appendChild(i),i.contentDocument.write(a),function t(){i.contentDocument.body&&i.contentDocument.body.firstElementChild?i.contentWindow.html2canvas(i.contentDocument.body.firstElementChild).then(t=>{const a=new Smart.Utilities.Draw(document.createElement("div"));o=t.toDataURL("image/png"),n?n(o):(document.body.appendChild(t),a.exportImage(void 0,t,r,e)),i.remove(),t.remove()}):requestAnimationFrame(t)}(),o}getMergedCellsInfo(t,e,r){const n=this;if(!n.mergedCells)return;const o=r&&0!==r[n.datafields.length-1];n.mergedCellsPDF=n.mergedCells.slice(0);for(let a=0;a<n.mergedCellsPDF.length;a++){const i=n.mergedCellsPDF[a];let s=i.colspan,l=i.rowspan;if(l<2&&s<2)continue;const d=i.cell[1];let m=i.cell[0];if(o&&s>1){const t=r[m],e=r[m+s-1],o=[];if(e>t){let a=t,i=m,c=0;t:for(let n=t;n<=e;n++){let t=i,e=0;for(;r[i]===a;)if(i++,c++,e++,c===s){o.push({start:t,span:e});break t}o.push({start:t,span:e}),a=r[i]}s=o[0].span;for(let t=1;t<o.length;t++)n.mergedCellsPDF.push({cell:[o[t].start,d],colspan:o[t].span,rowspan:l,originalCell:m})}}for(let r=m;r<m+s;r++)for(let n=d;n<d+l;n++){const o=r+","+n;r!==m||n!==d?e[o]=!0:t[o]={colspan:s,rowspan:l,originalCell:i.originalCell}}}}getAlternationIndex(t,e){if(!this.style)return"";const r=this.style.rows;return r&&r.alternationCount&&((void 0===r.alternationStart||t>=r.alternationStart)&&(void 0===r.alternationEnd||t<=r.alternationEnd)||r.alternationStart===r.alternationEnd)?e+t%r.alternationCount:""}getFormattedValue(t,e){const r=this,n=r.style;if(null===t)return r.allowNull?"null":"";if(e&&n&&n.columns&&n.columns[e]&&n.columns[e].format){if("number"==typeof t)return r.formatNumber(t,n.columns[e].format);if(t instanceof Date)return r.formatDate(t,n.columns[e].format)}else if(t instanceof Date)return r.formatDate(t,"d");return t}exportToJSON(t,e){return this.downloadFile(JSON.stringify(t,this.datafields.concat("rows")),"application/json",e)}exportToMD(t,e){const r=this.datafields;let n="";for(let e=0,o=t.length;e<o;e+=1)for(let o=0,a=r.length;o<a;o+=1){const a=t[e][r[o]];"string"==typeof a&&(n+=a)}return this.downloadFile(n,"application/text",e)}exportToPDF(t,e){try{pdfMake}catch(t){throw new Error("Missing reference to 'pdfmake.min.js'.")}const r=this,n=r.datafields,o=+r.exportHeader,a=[],i={},s={},l={},d=o?r.complexHeader?r.complexHeader.length:1:0,m={pageOrientation:r.pageOrientation||"portrait"};let c,h=[],u=[];function p(){let t=[];for(let e=0;e<c.length;e++)t.push([]);return t}t=r.processGroupingInformation(t),r.data=t,r.headerRows=d,r.getPDFStyle();const f=r.styleInfo;c=f?r.wrapPDFColumns(m,l):[{body:h,datafields:n}],o&&(h=r.getPDFHeader(n,c,l)),r.getMergedCellsInfo(i,s,l);t:for(let e=o;e<t.length;e++){const d=t[e];let m="",h=0;if(r.groupBy)for(let t=0;t<r.groupBy.length;t++){const n=r.groupBy[t],o=d[n],i=r.groups[n][o];if(m+=o,-1===a.indexOf(m)){r.createGroupHeaderRow(c,{text:i,style:["row","cell","group"],marginLeft:7.5*h}),a.push(m),e--;continue t}h++}const u=p(),f=e-o;let g=r.getAlternationIndex(f,"");for(let t=0;t<n.length;t++){const e=n[t],o={style:["row","row"+f,"cell","cell"+e]},a=l[t]||0;if(void 0!==g&&o.style.splice(1,0,"rowN"+g),r.mergedCellsPDF){const e=t+","+f,r=i[e];if(r){if(o.colSpan=r.colspan,o.rowSpan=r.rowspan,void 0!==r.originalCell){o.text="",o.style[o.style.length-1]="cell"+n[r.originalCell],u[a].push(o);continue}}else if(s[e]){u[a].push({});continue}}const m=r.getFormattedValue(d[e],e);o.text=m.toString(),r.getUniqueStylePDF(o,e,f),r.setIndentation(o,{j:t,currentRecord:d,value:m,outlineLevel:h}),u[a].push(o)}for(let t=0;t<c.length;t++)c[t].body.push(u[t])}if(f){for(let t=0;t<c.length;t++){const e=c[t].body;for(let r=d-1;r>=0;r--)e.unshift(h[t][r]);u.push({table:{headerRows:d,widths:c[t].widths,heights:function(t){return f.heights[t]?f.heights[t]:f.defaultHeight?f.defaultHeight:void 0},body:e},pageBreak:"after"})}delete u[c.length-1].pageBreak,m.styles=f.styles}else{const t=c[0].body;for(let e=d-1;e>=0;e--)t.unshift(h[0][e]);u=[{table:{headerRows:d,body:t}}],m.styles={header:{bold:!0},group:{bold:!0}}}m.content=u,pdfMake.createPdf(m).download(e),delete r.mergedCellsPDF,delete r.styleInfo}getPDFStyle(){const t=this,e=t.style;if(!e)return"";const r=t.data[0],n=e.header,o=e.columns,a=e.rows,i={heights:[],widths:Array(t.datafields.length).fill("*"),styles:{header:{},row:{},cell:{},group:{fillColor:"#FFFFFF",color:"#000000",bold:!0}}};function s(e,n){if(e)for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===r[o])if("height"===o&&"header"===n)for(let r=0;r<t.headerRows;r++)i.heights[r]=parseInt(e[o],10)/t.headerRows/1.4;else t.storePDFStyle({prop:o,value:e[o],toUpdate:n});else for(let r in e[o]){if(!isNaN(r)||!Object.prototype.hasOwnProperty.call(e[o],r))continue;const a=e[o][r],s=t.datafields.indexOf(o);"width"===r&&"*"===i.widths[s]?i.widths[s]=a:t.storePDFStyle({prop:r,value:a,toUpdate:n+o})}}if(t.styleInfo=i,s(n,"header"),s(o,"cell"),a){for(let e in a){if(!Object.prototype.hasOwnProperty.call(a,e)||-1!==e.indexOf("alt"))continue;const r=a[e];if(isNaN(e))"height"===e?i.defaultHeight=parseFloat(r)/1.4:t.storePDFStyle({prop:e,value:r,toUpdate:"row"});else for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&("height"===n?i.heights[parseFloat(e)+t.headerRows]=parseFloat(r[n])/1.4:t.storePDFStyle({prop:n,value:r[n],toUpdate:"row"+e}))}if(a.alternationCount)for(let t=0;t<a.alternationCount;t++){const e={};a[`alternationIndex${t}Color`]&&(e.color=a[`alternationIndex${t}Color`]),a[`alternationIndex${t}BackgroundColor`]&&(e.fillColor=a[`alternationIndex${t}BackgroundColor`]),i.styles["rowN"+t]=e}}}storePDFStyle(t){const e=this;let r=e.styleInfo.styles[t.toUpdate];r||(r={},e.styleInfo.styles[t.toUpdate]=r);let n=t.value;switch(t.prop){case"backgroundColor":r.fillColor=n;break;case"color":r.color=n;break;case"fontSize":r.fontSize=parseFloat(n);break;case"fontStyle":"italic"===n&&(r.italics=!0);break;case"fontWeight":"bold"===n&&(r.bold=!0);break;case"textAlign":r.alignment=n}}wrapPDFColumns(t,e){const r=this,n=this.styleInfo,o="portrait"===t.pageOrientation?655:1155,a=[];let i=0;for(let t=0;t<n.widths.length;t++){let s,l=n.widths[t];if("*"===l?s=o/6:"string"==typeof l&&-1!==l.indexOf("%")?(s=Math.min(o,Math.floor(parseFloat(l)/100*o)),s===o&&(l="*")):(l=parseFloat(l),l>=o?(s=o,l="*"):(s=l,l/=1.4)),void 0===a[i]){const n=[];a[i]={body:n,width:s,widths:[l],datafields:[r.datafields[t]]},e[t]=i;continue}const d=a[i];d.width+s>o?(i++,t--):(e[t]=i,d.width+=s,d.widths.push(l),d.datafields.push(r.datafields[t]))}return a}getPDFHeader(t,e,r){const n=this,o=[],a=n.headerRows,i=[],s=[];let l,d,m=[];n.complexHeader?(l=n.complexHeader,d=n.complexDataFieldsHeader):(l=[Object.values(n.data[0])],d=l);for(let t=0;t<a;t++){const e=l[t],n=d[t];for(let o=0;o<e.length;o++){let a=r[o]||0;i[a]||(i[a]=[],s[a]=[]),i[a][t]||(i[a][t]=[],s[a][t]=[]),i[a][t].push(e[o]),s[a][t].push(n[o])}}function c(t,e,r,n){for(let o=0;o<a;o++){const i=t[o],s=e[o],l=[];for(let t=0;t<i.length;t++){const r=s[t];let d=1,m=1;if(s[t-1]&&s[t-1]===r||e[o-1]&&e[o-1][t]===r){l.push({});continue}let c=t+1;for(;s[c]&&s[c]===s[c-1];)d++,c++;for(c=o+1;e[c]&&e[c][t]===r;)m++,c++;const h=o===a-1||m+o===a?n.datafields[t]:null,u={text:i[t],colSpan:d,rowSpan:m};h?u.style=["header","header"+h]:(u.alignment="center",u.style="header"),l.push(u)}r.push(l)}}for(let t=0;t<e.length;t++)m=[],c(i[t],s[t],m,e[t]),o.push(m);return o}createGroupHeaderRow(t,e){for(let r=0;r<t.length;r++){const n=Object.assign({},e),o=t[r].datafields.length,a=[n];n.colSpan=o,a.length=o,a.fill({},1,o-1),t[r].body.push(a)}}getUniqueStylePDF(t,e,r){const n=this.style;if(!n||!n.columns||!n.columns[e])return;const o=n.columns[e][r];o&&(t.fillColor=function(t){const e=/rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(t.replace(/\s/g,""));if(null===e)return t;const r=parseFloat(e[1]).toString(16).toUpperCase(),n=parseFloat(e[2]).toString(16).toUpperCase(),o=parseFloat(e[3]).toString(16).toUpperCase();return"#"+"0".repeat(2-r.length)+r+"0".repeat(2-n.length)+n+"0".repeat(2-o.length)+o}(o.background),t.color=o.color.toLowerCase())}setIndentation(t,e){if(0!==e.j)return;const r=this;if(r.actualHierarchy){const n=e.currentRecord;void 0!==n._expanded?(t.marginLeft=25*(n._level-1),t.text=r.collapseChar+" "+e.value):t.marginLeft=25*(n._level-1)+6}else e.outlineLevel>1&&(t.marginLeft=7.5*(e.outlineLevel-1))}exportToXLSX(t,e){try{JSZip}catch(t){throw new Error("Missing reference to 'jszip.min.js'.")}const r=this;let n=r.style;if(t=r.processGroupingInformation(t,!0),r.data=t,r.getColumnsArray(),r.complexHeaderMergedCells=[],r.complexHeaderMergeInfo)for(let t in r.complexHeaderMergeInfo)if(Object.prototype.hasOwnProperty.call(r.complexHeaderMergeInfo,t)){const e=r.complexHeaderMergeInfo[t];if(e.from[0]===e.to[0]&&e.from[1]===e.to[1])continue;r.complexHeaderMergedCells.push({from:r.columnsArray[e.from[1]]+(e.from[0]+1),to:r.columnsArray[e.to[1]]+(e.to[0]+1)})}r.getConditionalFormatting(),n||(n=r.generateDefaultStyle(t));const o=r.generateSharedStrings(t),a=o.collection,i=o.xml,s=r.generateStyles(n),l=r.groupBy?r.generateSheet1WithGrouping(t,a):r.generateSheet1(t,a),d=r.generateAuxiliaryFiles(),m=new JSZip,c=m.folder("_rels"),h=m.folder("docProps"),u=m.folder("xl"),p=u.folder("_rels"),f=u.folder("theme"),g=u.folder("worksheets");c.file(".rels",d._relsRels),h.file("app.xml",d.docPropsAppXml),h.file("core.xml",d.docPropsCoreXml),p.file("workbook.xml.rels",d.xl_relsWorkbookXmlRels),f.file("theme1.xml",d.xlThemeTheme1Xml),g.file("sheet1.xml",l),u.file("sharedStrings.xml",i),u.file("styles.xml",s),u.file("workbook.xml",d.xlWorkbookXml),m.file("[Content_Types].xml",d.Content_TypesXml),m.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}).then((function(t){return r.downloadFile(t,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e)})),delete r.conditionalFormattingXLSX,delete r.complexHeaderMergeInfo,delete r.defaultRowHeight,delete r.rowHeight}processGroupingInformation(t,e){const r=this;if(!r.groupBy)return t;let n;if(t=t.slice(0),r.exportHeader&&(e&&r.complexHeader?(n=t.slice(0,r.complexHeader.length),t.splice(0,r.complexHeader.length)):(n=[t[0]],t.splice(0,1))),t.length>1){const e=function(t,e){let r;switch(e||typeof t){case"string":r=(new Intl.Collator).compare;break;case"number":r=function(t,e){return t-e};break;case"boolean":case"bool":r=function(t,e){return t===e?0:!1===t?-1:1};break;case"date":case"time":case"dateTime":t instanceof Date?r=function(t,e){return t.getTime()-e.getTime()}:(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)&&(r=function(t,e){return t.compare(e)});break;case"object":if(t instanceof Date)r=function(t,e){return t.getTime()-e.getTime()};else if(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)r=function(t,e){return t.compare(e)};else if(t instanceof Smart.Utilities.Complex||window.NIComplex&&t instanceof window.NIComplex){const t=new Smart.Utilities.ComplexNumericProcessor;r=function(e,r){return t.compareComplexNumbers(e,r)}}}return r};(function(t,r,n,o){if(!t||!Array.isArray(t)||0===t.length||!r||Array.isArray(r)&&0===r.length)return;"string"==typeof r&&(r=[r]);const a=[],i=[];void 0===n&&(n=[]);for(let o=0;o<r.length;o++)void 0===n[o]||"asc"===n[o]||"ascending"===n[o]?a[o]=1:a[o]=-1,i[o]=e(t[0][r[o]]);o?o(t,r,n,i):t.sort((function(t,e){for(let n=0;n<r.length;n++){const o=i[n](t[r[n]],e[r[n]]);if(0===o){if(r[n+1])continue;return void 0!==t._index?(t._index-e._index)*a[n]:0}return o*a[n]}}))})(t,r.groupBy)}return n&&(t=n.concat(t)),r.getGroupLabels(t),t}exportToXML(t,e){const r=this.datafields.slice(0);let n='<?xml version="1.0" encoding="UTF-8" ?>\n<table>\n';return-1===r.indexOf("rows")&&r.push("rows"),n+=function t(e,n){let o="";for(let a=0;a<e.length;a++){const i=e[a];o+=n+"<row>\n";for(let e=0;e<r.length;e++){const a=r[e];if("rows"!==a)o+=n+` <${a}>${i[a]}</${a}>\n`;else{if(!i.rows)continue;o+=`${n} <rows>\n${t(i.rows,n+" ")}${n} </rows>\n`}}o+=n+"</row>\n"}return o}(t," ")+"</table>",this.downloadFile(n,"application/xml",e)}formatDate(t,e){if(!Smart.Utilities.DateTime)return t;try{return new Smart.Utilities.DateTime(t).toString(e)}catch(e){return t}}formatNumber(t,e){if(!Smart.Utilities.NumberRenderer)return t;const r=(new Smart.Utilities.NumberRenderer).formatNumber(t,e);return void 0===r?t:r}generateAuxiliaryFiles(){const t=(new Date).toISOString();return{_relsRels:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',docPropsAppXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>',docPropsCoreXml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>Smart HTML Elements</dc:creator><cp:lastModifiedBy>Smart HTML Elements</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">${t}</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">${t}</dcterms:modified></cp:coreProperties>`,xl_relsWorkbookXmlRels:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>',xlThemeTheme1Xml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>',xlWorkbookXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook 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="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="20325"/><workbookPr defaultThemeVersion="166925"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="C:UsersjqwidgetsDesktop" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="13_ncr:1_{0DEDCB6D-5403-4CD8-AAA5-59B6D238A8B6}" xr6:coauthVersionLast="34" xr6:coauthVersionMax="34" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="19200" windowHeight="6950" xr2:uid="{0CB664E6-3800-4A88-B158-B46A682E7484}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="179021"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext></extLst></workbook>',Content_TypesXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="bin" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings"/><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+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="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>'}}generateDefaultStyle(t){const e={},r=this.datafields,n=this.complexHeader?t[this.complexHeader.length]:t[+this.exportHeader];if(!n)return e;for(let t=0;t<r.length;t++){n[r[t]]instanceof Date&&(e.columns||(e.columns=[]),e.columns[r[t]]={format:"d"})}return e}generateGroupRow(t){const e=t.rowNumber,r="A"+e,n=` <row r="${e}" outlineLevel="${t.outlineLevel}" spans="1:${t.numberOfColumns}"${this.getCustomRowHeight(e-1)} x14ac:dyDescent="0.45">\n <c r="${r}" t="s" s="0">\n <v>${t.sharedStringIndex}</v>\n </c>\n </row>\n`;return t.mergedCells.push({from:r,to:this.columnsArray[t.numberOfColumns-1]+e}),n}generateSharedStrings(t){const e=this,r=e.datafields,n=[];let o="",a=0,i=0;function s(t){a++,-1===n.indexOf(t)&&(i++,n.push(t),t=(t=(t=(t=(t=t.replace(/&(?!amp;)/g,"&")).replace(/'/g,"'")).replace(/"/g,""")).replace(/>/g,">")).replace(/</g,"<"),o+=`<si><t>${t}</t></si>`)}for(let n=0;n<t.length;n++){const o=t[n];for(let t=0;t<r.length;t++){let n=o[r[t]];null!==n||e.allowNull||(n=""),"string"==typeof n&&s(n)}}if(e.groupLabels)for(let t=0;t<e.groupLabels.length;t++)s(e.groupLabels[t]);return o=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${a}" uniqueCount="${i}">${o}</sst>`,{collection:n,xml:o}}generateSheet1(t,e){const r=this,n=r.columnsArray.length,o=t.length,a=r.columnsArray[n-1]+o,i=r.datafields,s=r.getFilters(),l=[].concat(r.complexHeaderMergedCells);let d=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<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 xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">\n <sheetPr filterMode="${""!==s}" />\n <dimension ref="A1:${a}" />\n <sheetViews>\n <sheetView tabSelected="1" workbookViewId="0" />\n </sheetViews>\n <sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />${r.getCustomColumnWidths()}\n <sheetData>\n`;function m(t,e){return r.columnsArray[t]+e}for(let o=0;o<=t.length;o++){const a=t[o],s=o+1;let l="";if(r.actualHierarchy){const e=t[o-1];e&&e._collapsed&&(!a||e._level>a._level)&&(l=' collapsed="true"')}if(o===t.length){l&&(d+=` <row r="${s}" outlineLevel="${Math.max(t[o-1]._level-2,0)}" hidden="false" collapsed="true" />\n`);break}let c=` <row r="${s}"${r.getOutlineLevel(a)} hidden="${a._hidden||a._collapsed||!1}"${l} spans="1:${n}"${r.getCustomRowHeight(s-1)} x14ac:dyDescent="0.45">\n`;for(let t=0;t<i.length;t++){const n=r.getXLSXCellStyle(m(t,s));c+=r.getActualCellData(a[i[t]],{r:m(t,s),s:n},e)}c+=" </row>\n",d+=c}return d+=` </sheetData>${r.conditionalFormattingXLSX.conditions}${s}${r.getMergedCells(l)}\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n <pageSetup paperSize="9" orientation="portrait" r:id="rId1" />\n</worksheet>`,d}generateSheet1WithGrouping(t,e){const r=this,n=r.columnsArray.length,o=t.length,a=r.columnsArray[n-1]+o,i=r.datafields,s=[].concat(r.complexHeaderMergedCells);let l=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<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 xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">\n <dimension ref="A1:${a}" />\n <sheetViews>\n <sheetView tabSelected="1" workbookViewId="0" />\n </sheetViews>\n <sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />${r.getCustomColumnWidths()}\n <sheetData>\n`,d=0,m=[];function c(t,e){return r.columnsArray[t]+e}t:for(let o=0;o<t.length;o++){const a=t[o],h=o+1+d;let u=0,p="";if(!r.exportHeader||!r.complexHeader&&0!==o||r.complexHeader&&o>=r.complexHeader.length){let t="";for(let i=0;i<r.groupBy.length;i++){const c=r.groupBy[i],p=a[c],f=r.groups[c][p];if(t+=p,-1===m.indexOf(t)){let a=e.indexOf(f);l+=r.generateGroupRow({rowNumber:h,outlineLevel:u,numberOfColumns:n,sharedStringIndex:a,mergedCells:s}),m.push(t),o--,d++;continue t}u++}p=` outlineLevel="${u}"`}let f=` <row r="${h}"${p} spans="1:${n}"${r.getCustomRowHeight(h-1)} x14ac:dyDescent="0.45">\n`;for(let t=0;t<i.length;t++){const n=r.getXLSXCellStyle(c(t,o+1));f+=r.getActualCellData(a[i[t]],{r:c(t,h),s:n},e)}f+=" </row>\n",l+=f}return l+=` </sheetData>${r.getMergedCells(s)}\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n <pageSetup paperSize="9" orientation="portrait" r:id="rId1" />\n</worksheet>`,l}getActualCellData(t,e,r){const n=e.r,o=e.s||' s="0"';if(null!==t||this.allowNull||(t=""),"string"==typeof t)return` <c r="${n}" t="s"${o}>\n <v>${r.indexOf(t)}</v>\n </c>\n`;if("boolean"==typeof t)return` <c r="${n}" t="b"${o}>\n <v>${+t}</v>\n </c>\n`;if(t instanceof Date){return` <c r="${n}"${o}>\n <v>${2+Math.round(this.timeBetween1900And1970/864e5)+(t.getTime()-60*t.getTimezoneOffset()*1e3)/864e5}</v>\n </c>\n`}return` <c r="${n}"${o}>\n <v>${t}</v>\n </c>\n`}getColumnsArray(){const t=this.datafields.length,e=[];function r(t){return t<26?"":String.fromCharCode(64+Math.floor(t/26))}for(let n=0;n<t;n++)e.push(r(n)+String.fromCharCode(65+(n<26?n:n%26)));this.columnsArray=e}getColumnStyle(){const t=this,e=t.style;if(!e)return" .header { border: 1px solid black; padding: 5px; }\n .column { border: 1px solid black; padding: 5px; }\n .group { background-color: #FFFFFF; color: #000000; font-weight: bold; }";let r;r=e.removeDefault?{header:"",column:"",group:""}:{header:"border: 1px solid black; padding: 5px; ",column:"white-space: nowrap; overflow: hidden; border: 1px solid black; padding: 5px; ",group:"background-color: #FFFFFF; color: #000000; font-weight: bold; "};const n=t.data[0];let o="";const a=e.header||{};for(let e in a){if(!Object.prototype.hasOwnProperty.call(a,e))continue;const o=a[e];if(n[e]){r["header"+e]||(r["header"+e]="");for(let t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const n=Smart.Utilities.Core.toDash(t)+": "+o[t]+"; ";r["header"+e]+=n,"width"===t&&(r["column"+e]||(r["column"+e]=""),r["column"+e]+=n)}}else"height"===e&&t.complexHeader?r.header+="height: "+parseInt(a[e],10)/t.complexHeader.length+"px; ":r.header+=Smart.Utilities.Core.toDash(e)+": "+a[e]+"; "}const i=e.columns||{};for(let t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const e=i[t];if(n[t]){r["column"+t]||(r["column"+t]="");for(let n in e)isNaN(n)&&Object.prototype.hasOwnProperty.call(e,n)&&"format"!==n&&(r["column"+t]+=Smart.Utilities.Core.toDash(n)+": "+e[n]+"; ")}else r.column+=Smart.Utilities.Core.toDash(t)+": "+e+"; "}for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(o+=` .${t} { ${r[t]}}\n`);return e.custom&&(o+=`${e.custom}\n`),o}getCustomColumnWidths(){const t=this;if(!t.style||!t.columnWidth||0===t.columnWidth.length)return"";let e="\n <cols>\n";for(let r=0;r<t.columnWidth.length;r++){let n=t.columnWidth[r];void 0!==n&&(n=Math.round(parseFloat(n))/7,e+=` <col min="${r+1}" max="${r+1}" width="${n}" customWidth="1" />\n`)}return e+=" </cols>",e}getCustomFilter(t,e){let r,n="equal";switch(t instanceof Date&&(t=(t.getTime()+this.timeBetween1900And1970)/864e5+2),e=e.toUpperCase()){case"EMPTY":r="";break;case"NOT_EMPTY":r="",n="notEqual";break;case"CONTAINS":case"CONTAINS_CASE_SENSITIVE":r=`*${t}*`;break;case"DOES_NOT_CONTAIN":case"DOES_NOT_CONTAIN_CASE_SENSITIVE":r=`*${t}*`,n="notEqual";break;case"STARTS_WITH":case"STARTS_WITH_CASE_SENSITIVE":r=`${t}*`;break;case"ENDS_WITH":case"ENDS_WITH_CASE_SENSITIVE":r=`*${t}`;break;case"EQUAL":case"EQUAL_CASE_SENSITIVE":r=t;break;case"NULL":r=null;break;case"NOT_NULL":r=null,n="notEqual";break;case"NOT_EQUAL":r=t,n="notEqual";break;case"LESS_THAN":r=t,n="lessThan";break;case"LESS_THAN_OR_EQUAL":r=t,n="lessThanOrEqual";break;case"GREATER_THAN":r=t,n="greaterThan";break;case"GREATER_THAN_OR_EQUAL":r=t,n="greaterThanOrEqual"}return` <customFilter val="${r}" operator="${n}"/>\n`}getCustomRowHeight(t){const e=this;return e.style&&(e.rowHeight[t]||e.defaultRowHeight)||""}getDatafields(t){const e=t[0],r=[];for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&"_"!==t.charAt(0)&&r.push(t);this.datafields=r}getFilters(){const t=this,e=t.filterBy;if(!e)return"";let r="";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=t.datafields.indexOf(n);if(-1===o)continue;const a=e[n],i=a.filters;r+=` <filterColumn colId="${o}">\n <customFilters and="${!a.operator}">\n`;for(let e=0;e<i.length;e++)r+=t.getCustomFilter(i[e].value,i[e].condition);r+=" </customFilters>\n </filterColumn>"}return r?(r=`\n <autoFilter ref="A1:${t.columnsArray[t.columnsArray.length-1]+t.data.length}">\n${r}\n </autoFilter>`,r):""}getGroupLabels(t){const e=this,r=void 0!==e.xlsxStartIndex?e.xlsxStartIndex:+e.exportHeader,n={},o=[];for(let a=r;a<t.length;a++){const i=t[a];for(let a=0;a<e.groupBy.length;a++){const s=e.groupBy[a],l=i[s];let d=n[s];void 0===d&&(n[s]={},d=n[s]),void 0===d[l]&&(d[l]=(e.exportHeader?t[r-1][s]:s)+": "+l,o.push(d[l]))}}e.groups=n,e.groupLabels=o}getHTMLHeader(t,e){const r=this;let n="\n <thead>\n";if(!r.complexHeader){n+=" <tr>\n";for(let r=0;r<t.length;r++){const o=t[r];n+=` <th class="header header${o}">${e[0][o]}</th>\n`}return n+=" </tr>\n </thead>",n}for(let e=0;e<r.complexDataFieldsHeader.length;e++){const o=r.complexDataFieldsHeader[e];n+=" <tr>\n";for(let a=0;a<o.length;a++){const i=o[a];let s=1,l=1;if(o[a-1]&&o[a-1]===i||r.complexDataFieldsHeader[e-1]&&r.complexDataFieldsHeader[e-1][a]===i)continue;let d=a+1;for(;o[d]&&o[d]===o[d-1];)s++,d++;for(d=e+1;r.complexDataFieldsHeader[d]&&r.complexDataFieldsHeader[d][a]===i;)l++,d++;n+=` <th class="header${e===r.complexHeader.length-1||l+e===r.complexHeader.length?" header"+t[a]:""}" colspan="${s}" rowspan="${l}">${r.complexHeader[e][a]}</th>\n`}n+=" </tr>\n"}return n+=" </thead>",n}getConditionalFormatting(){const t=this,e=t.conditionalFormatting;if(!e)return void(t.conditionalFormattingXLSX={conditions:"",styles:""});const r=[];let n="",o="";for(let a=e.length-1;a>=0;a--){const i=e[a],s=t.columnsArray[t.datafields.indexOf(i.column)],l=s+(t.xlsxStartIndex+1),d=l+":"+s+t.data.length,m=i.background+i.color,c=t.getConditionalAttributes(i,l);let h=r.indexOf(m);if(-1===h){o+=` <dxf>\n <font>\n <b val="0"/>\n <i val="0"/>\n <color rgb="${"White"===i.color?"FFFFFFFF":"FF000000"}"/>\n <sz val="10"/>\n </font>\n <fill>\n <patternFill>\n <bgColor rgb="${t.toARGB(i.background)}"/>\n </patternFill>\n </fill>\n </dxf>\n`,h=r.length,r.push(m)}n+=` <conditionalFormatting sqref="${d}">\n <cfRule dxfId="${h}" text="${c.text}" rank="${c.rank}" percent="${c.percent}" bottom="${c.bottom}" equalAverage="${c.equalAverage}" aboveAverage="${c.aboveAverage}"${c.operator}${c.timePeriod} priority="${a+2}" type="${c.type}">\n${c.formula} </cfRule>\n </conditionalFormatting>\n`}o=` <dxfs count="${r.length}">\n${o} </dxfs>`,t.conditionalFormattingXLSX={conditions:n,styles:o}}getConditionalAttributes(t,e){let r=t.condition,n=t.comparator,o="",a=0,i=0,s=0,l=0,d="",m="",c="",h="";switch(r){case"equal":d="equal",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"lessThan":d="lessThan",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"greaterThan":d="greaterThan",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"notEqual":d="notEqual",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"between":d="between",c="cellIs",h=` <formula>${t.min}</formula>\n <formula>${t.max}</formula>\n`;break;case"duplicate":c="duplicateValues",h=" <formula>0</formula>\n";break;case"topNItems":a=n,c="top10";break;case"bottomNItems":a=n,s=1,c="top10";break;case"topNPercent":a=n,i=1,c="top10";break;case"bottomNPercent":a=n,i=1,s=1,c="top10";break;case"aboveAverage":l=1,c="aboveAverage",h=" <formula>0</formula>\n";break;case"belowAverage":c="aboveAverage",h=" <formula>0</formula>\n";break;case"contains":o=n,d="containsText",c="containsText",h=` <formula>NOT(ISERROR(SEARCH("${n}",${e})))</formula>\n`;break;case"doesNotContain":o=n,d="notContains",c="notContainsText",h=` <formula>ISERROR(SEARCH("${n}",${e}))</formula>\n`;break;case"dateOccur":m=` timePeriod="${n}"`,c="timePeriod"}return d&&(d=` operator="${d}" `),{text:o,rank:a,percent:i,bottom:s,equalAverage:0,aboveAverage:l,operator:d,timePeriod:m,type:c,formula:h}}getMergedCells(t){const e=this;let r="";for(let e=0;e<t.length;e++)t[e].from!==t[e].to&&(r+=`\n <mergeCell ref="${t[e].from}:${t[e].to}" />\n`);if(e.mergedCells)for(let t=0;t<e.mergedCells.length;t++){const n=e.mergedCells[t];n.rowspan<2&&n.colspan<2||(r+=`\n <mergeCell ref="${e.columnsArray[n.cell[0]]+(n.cell[1]+e.xlsxStartIndex+1)}:${e.columnsArray[n.cell[0]+n.colspan-1]+(n.cell[1]+e.xlsxStartIndex+n.rowspan)}" />\n`)}return r&&(r=`\n <mergeCells count="${t.length}">${r} </mergeCells>`),r}getNumFmtIndex(t,e){let r=e.collection.indexOf(t);return-1===r?(r=e.collection.length+100,e.collection.push(t),e.xml+=`<numFmt numFmtId="${r}" formatCode="${t}"/>`):r+=100,r}getOutlineLevel(t){return this.actualHierarchy&&1!==t._level?` outlineLevel="${t._level-1}"`:""}getRowStyle(){const t=this.style;if(!t)return"";const e=t.rows;if(!e)return"";const r={row:""};let n="";for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t)||"alternationCount"===t||"alternationStart"===t||"alternationEnd"===t)continue;const n=e[t];if(-1===t.indexOf("alt"))if(isNaN(t))r.row+=Smart.Utilities.Core.toDash(t)+": "+e[t]+"; ";else{r["row"+t]||(r["row"+t]="");for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r["row"+t]+=Smart.Utilities.Core.toDash(e)+": "+n[e]+"; ")}else{const e=t.slice(16,17),o=t.slice(17);r["rowN"+e]||(r["rowN"+e]=""),r["rowN"+e]+="Color"===o?"color : "+n+"; ":"BorderColor"===o?"border-color : "+n+"; ":"background-color : "+n+"; "}}let o=Object.keys(r);o.sort((function(t,e){if("row"===t)return-1;if("row"===e)return 1;const r=!isNaN(t.slice(3)),n=!isNaN(e.slice(3));return r&&!n?1:!r&&n?-1:+(t<e)}));for(let t=0;t<o.length;t++)n+=` .${o[t]} { ${r[o[t]]}}\n`;return n}getTableStyle(){const t=this.style;if(!t)return' style="table-layout: fixed; border: 1px solid black; border-collapse: collapse;"';let e="table-layout: fixed; ";for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===["header","columns","rows","removeDefault","custom"].indexOf(r)&&(e+=Smart.Utilities.Core.toDash(r)+": "+t[r]+"; ");return e&&(e=' style="'+e+'"'),e}getXLSXCellStyle(t){const e=this;return void 0!==e.cellStyleMapping[t]?` s="${e.cellStyleMapping[t]}"`:""}getXLSXFormat(t,e){if("number"==typeof e){if(!/^([a-zA-Z]\d*)$/g.test(t))return t;let e=parseFloat(t.slice(1))||0,r=e>0?"."+"0".repeat(e):"";switch(t=t.slice(0,1)){case"C":case"c":return"$#,0"+r;case"D":case"d":return e?"0".repeat(e):"0";case"E":case"e":return"0"+r+t+"000";case"F":case"f":return"0"+r;case"N":case"n":return"#,0"+r;case"P":case"p":return"#,0"+r+" %";default:return}}else if(e instanceof Date){switch(t){case"d":return"m/d/yyyy";case"D":return"nnnnmmmm dd, yyyy";case"t":return"h:m AM/PM";case"T":return"h:mm:ss AM/PM";case"f":return"nnnnmmmm dd, yyyy h:m AM/PM";case"F":return"nnnnmmmm dd, yyyy h:mm:ss AM/PM";case"M":return"mmmm d";case"Y":return"yyyy mmmm";case"FP":case"PP":return"yyyy-mm-dd hh:mm:ss";case"FT":case"PT":return"hh:mm:ss"}return t=(t=(t=(t=t.replace(/f|u|n|p|e|a|x|o/gi,"")).replace(/tt/gi,"AM/PM")).replace(/:{2,}|:\s|:$|\.$/g,"")).trim()}}processColumnStyle(t){const e=this,r=t.header,n=t.columns,o=e.data[0],a=e.xlsxStartIndex;if(e.columnWidth=[],a&&r)for(let t=0;t<e.columnsArray.length;t++){const n=e.columnsArray[t],i=n+a,s=r[e.datafields[t]];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&void 0===o[t])if(e.complexHeader)for(let o=0;o<e.complexHeader.length;o++)"height"!==t?e.storeCellStyle(n+(o+1),t,r[t]):e.rowHeight[o]=` ht="${parseFloat(r.height)/e.complexHeader.length/2}"`;else{if("height"===t){e.rowHeight[0]=` ht="${parseFloat(r.height)/2}"`;continue}e.storeCellStyle(i,t,r[t])}if(s)for(let r in s)if(Object.prototype.hasOwnProperty.call(s,r)){if("width"===r){e.columnWidth[t]=s.width;continue}e.storeCellStyle(i,r,s[r])}}else if(r)for(let t=0;t<e.columnsArray.length;t++){const n=r[e.datafields[t]];n&&void 0!==n.width&&(e.columnWidth[t]=n.width)}if(!n)return"";for(let t=a;t<e.data.length;t++)for(let r=0;r<e.columnsArray.length;r++){const a=e.columnsArray[r]+(t+1),i=e.datafields[r],s=n[i];for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&void 0===o[t]&&e.storeCellStyle(a,t,n[t]);if(s)for(let r in s)isNaN(r)&&Object.prototype.hasOwnProperty.call(s,r)&&e.storeCellStyle(a,r,s[r],e.data[t][i])}}processComplexHeader(t,e,r){const n=this,o={},a=-1!==["html","jpeg","pdf","png","xlsx"].indexOf(r)&&t.columngroups,i=[],s={},l={},d=[],m=[];let c=0;function h(e){for(let r=0;r<t.columngroups.length;r++){const n=t.columngroups[r];if(n.name===e)return n}}function u(t,e){const r=[];for(;t;){if(r.unshift(t[e]),!t.parentGroup)return r;t=h(t.parentGroup)}}if(a){for(let e=0;e<t.columngroups.length;e++){const r=t.columngroups[e],n=u(r,"label");s[r.name]=n,l[r.name]=u(r,"name"),c=Math.max(c,n.length)}c++;for(let t=0;t<c;t++)d[t]=[],m[t]=[]}for(let e=0;e<t.columns.length;e++){const r=t.columns[e];if(o[r.dataField]=r.label,!a)continue;if(i[e]=r.dataField,d[c-1][e]=r.label,m[c-1][e]=r.dataField,!r.columnGroup)continue;const n=s[r.columnGroup],h=l[r.columnGroup];if(n)for(let t=0;t<n.length;t++)d[t][e]=n[t],m[t][e]=h[t]}if(d.length>1){const t=Object.keys(o).length;for(let n=0;n<c-1;n++){const o={};for(let e=0;e<t;e++){if(void 0===d[n][e]){let t=n+1;for(;void 0===d[t][e];)t++;d[n][e]=d[t][e],m[n][e]=m[t][e]}o[i[e]]=d[n][e]}"xlsx"===r&&e.splice(n,0,o)}if(n.complexHeader=d,n.complexDataFieldsHeader=m,"xlsx"!==r)e.unshift(o);else{e.splice(c-1,0,o);const r={};for(let e=0;e<c;e++)for(let n=0;n<t;n++){const t=m[e][n];if(r[t]){const o=r[t].to;if(e-o[0]>1||n-o[1]>1){r[t+Math.random().toString(36)]=r[t],r[t]={from:[e,n],to:[e,n]};continue}r[t].to=[e,n]}else r[t]={from:[e,n]},r[t].to=r[t].from}n.complexHeaderMergeInfo=r}}else e.unshift(o)}processHierarchicalData(t,e){const r=this,n="xlsx"!==e?+r.exportHeader:r.xlsxStartIndex,o={},a=[];let i=0,s=!1;if(void 0===t[n]._keyDataField)return r.processNestedData(t,e,n);for(let e=n;e<t.length;e++){const r=Object.assign({},t[e]);let n=r._parentDataField;void 0===n&&(n=null),void 0===o[n]?o[n]=[r]:o[n].push(r)}if(n)for(let r=0;r<n;r++)a.push(Object.assign({},t[r])),-1===["json","pdf","xml"].indexOf(e)&&(a[r]._level=1);return"json"!==e&&"xml"!==e?function t(e,r,n){const l=o[e];if(i=Math.max(i,r),void 0!==l)for(let e=0;e<l.length;e++){const i=l[e],d=i._keyDataField;i._collapsed=n,i._level=r,a.push(i),o[d]&&(s=!0,i._expanded=void 0===i._expanded||i._expanded,t(d,r+1,n||!i._expanded))}}(null,1,!1):function t(r,n,a){const l=o[r];if(i=Math.max(i,n),void 0!==l)for(let r=0;r<l.length;r++){const i=l[r],d=i._keyDataField;let m;if("json"===e){m={};for(let t in i)Object.prototype.hasOwnProperty.call(i,t)&&"_"!==t.charAt(0)&&(m[t]=i[t])}else m=Object.assign({},i);a.push(m),o[d]&&(s=!0,m.rows=[],t(d,n+1,m.rows))}}(null,1,a),s||(r.actualHierarchy=!1),r.maxLevel=i,a}processNestedData(t,e,r){const n=this,o=[];let a=0,i=!1;if(r)for(let n=0;n<r;n++)o.push(Object.assign({},t[n])),-1===["json","pdf","xml"].indexOf(e)&&(o[n]._level=1);return"json"!==e&&"xml"!==e?function t(e,r,n,s){a=Math.max(a,n);for(let a=e;a<r.length;a++){const e=Object.assign({},r[a]);e._collapsed=s,e._level=n,o.push(e),e.children&&e.children.length>0&&(i=!0,e._expanded=void 0===e._expanded||e._expanded,t(0,e.children,n+1,s||!e._expanded)),delete e.children}}(r,t,1,!1):function t(e,r,n,s){a=Math.max(a,s);for(let a=e;a<r.length;a++){const e=Object.assign({},r[a]);1===s?o[a]=e:n[a]=e,e.children&&e.children.length>0&&(i=!0,e.rows=[],t(0,e.children,e.rows,s+1)),delete e.children}}(r,t,void 0,1),i||(n.actualHierarchy=!1),n.maxLevel=a,o}processRowStyle(t){const e=this,r=t.rows;if(e.rowHeight=[],!r)return;const n=e.xlsxStartIndex;function o(t,r,o){for(let a=0;a<e.columnsArray.length;a++){const i=e.columnsArray[a]+(t+1+n);e.storeCellStyle(i,r,o)}}r.height&&(e.defaultRowHeight=` ht="${parseFloat(r.height)/2}"`);for(let t=n;t<e.data.length;t++){const a=t-n;for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&-1===t.indexOf("alt")&&isNaN(t)&&"height"!==t&&o(a,t,r[t]);if(r.alternationCount&&((void 0===r.alternationStart||a>=r.alternationStart)&&(void 0===r.alternationEnd||a<=r.alternationEnd)||r.alternationStart===r.alternationEnd)){const t=(a-(r.alternationStart||0))%r.alternationCount;r[`alternationIndex${t}Color`]&&o(a,"color",r[`alternationIndex${t}Color`]),r[`alternationIndex${t}BorderColor`]&&o(a,"borderColor",r[`alternationIndex${t}BorderColor`]),r[`alternationIndex${t}BackgroundColor`]&&o(a,"backgroundColor",r[`alternationIndex${t}BackgroundColor`])}if(r[a])for(let n in r[a])if(Object.prototype.hasOwnProperty.call(r[a],n)){if("height"===n){e.rowHeight[t]=` ht="${parseFloat(r[a].height)/2}"`;continue}o(a,n,r[a][n])}}}storeCellStyle(t,e,r){const n=this.styleMap[t];switch(e){case"backgroundColor":n.fills.fgColor=r;break;case"color":n.fonts.color=r;break;case"fontFamily":n.fonts.name=r.replace(/"/g,"'");break;case"fontSize":n.fonts.sz=parseFloat(r);break;case"fontStyle":"italic"===r?n.fonts.i=!0:delete n.fonts.i;break;case"fontWeight":"bold"===r?n.fonts.b=!0:delete n.fonts.b;break;case"numFmt":n.numFmt=r;break;case"textAlign":n.alignment.horizontal=r;break;case"textDecoration":"underline"===r?n.fonts.u=!0:delete n.fonts.u;break;case"verticalAlign":"middle"===r&&(r="center"),n.alignment.vertical=r}}toARGB(t){t=t.replace(/\s/g,"");const e=/rgb\((\d+),(\d+),(\d+)\)/gi.exec(t);if(null!==e){const t=parseFloat(e[1]).toString(16).toUpperCase(),r=parseFloat(e[2]).toString(16).toUpperCase(),n=parseFloat(e[3]).toString(16).toUpperCase();return"FF"+"0".repeat(2-t.length)+t+"0".repeat(2-r.length)+r+"0".repeat(2-n.length)+n}const r=/rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(t);if(null!==r){const t=Math.round(255*parseFloat(r[4])).toString(16).toUpperCase(),e=parseFloat(r[1]).toString(16).toUpperCase(),n=parseFloat(r[2]).toString(16).toUpperCase(),o=parseFloat(r[3]).toString(16).toUpperCase();return"0".repeat(2-t.length)+t+"0".repeat(2-e.length)+e+"0".repeat(2-n.length)+n+"0".repeat(2-o.length)+o}const n=/^#(.)(.)(.)$/gi.exec(t);if(null!==n){const t=n[1].toUpperCase(),e=n[2].toUpperCase(),r=n[3].toUpperCase();return"FF"+t+t+e+e+r+r}return"FF"+t.toUpperCase().slice(1)}toggleableFunctionality(){return this.actualHierarchy?`\n <style type="text/css">\n .toggle-element {\n width: 5px;\n height: 1px;\n padding-right: 5px;\n float: left;\n text-align: right;\n cursor: pointer;\n user-select: none;\n }\n\n .collapsed {\n display: none;\n }\n </style>\n <script type="text/javascript">\n window.onload = function () {\n var expandChar = '${this.expandChar}',\n collapseChar = '${this.collapseChar}',\n toggleElements = document.getElementsByClassName('toggle-element');\n\n function getParent(child) {\n var prevSibling = child.previousElementSibling;\n\n while (prevSibling) {\n if (child.getAttribute('level') > prevSibling.getAttribute('level')) {\n return prevSibling;\n }\n\n prevSibling = prevSibling.previousElementSibling;\n }\n\n }\n\n function getFirstCollapsedAncestor(child) {\n var parent = getParent(child);\n\n while (parent) {\n if (parent.firstElementChild.firstElementChild.innerHTML === expandChar) {\n return parent;\n }\n\n parent = getParent(parent);\n }\n }\n\n for (var i = 0; i < toggleElements.length; i++) {\n toggleElements[i].addEventListener('click', function (event) {\n var expanded = this.innerHTML === collapseChar,\n row = this.parentElement.parentElement,\n sibling = row.nextElementSibling;\n\n if (expanded) {\n this.innerHTML = expandChar;\n }\n else {\n this.innerHTML = collapseChar;\n }\n\n while (sibling && row.getAttribute('level') < sibling.getAttribute('level')) {\n if (expanded) {\n sibling.style.display = 'none';\n }\n else {\n var firstCollapsedAncestor = getFirstCollapsedAncestor(sibling);\n\n if (!firstCollapsedAncestor || firstCollapsedAncestor === row) {\n sibling.classList.remove('collapsed');\n sibling.style.display = null;\n }\n\n }\n\n sibling = sibling.nextElementSibling;\n }\n });\n }\n }\n <\/script>`:""}generateStyles(t){const e=this;if(e.cellStyleMapping={},0===Object.keys(t).length&&!e.complexHeader)return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><charset val="204"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>${e.conditionalFormattingXLSX.styles||'<dxfs count="0"/>'}<tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`;e.styleMap={};for(let t=0;t<e.data.length;t++)for(let r=0;r<e.columnsArray.length;r++)e.styleMap[e.columnsArray[r]+(t+1)]={numFmts:{},fonts:{},fills:{},borders:{},alignment:{}};if(t&&t.columns)for(let r=0;r<e.columnsArray.length;r++){const n=e.datafields[r];if(!t.columns[n]||!t.columns[n].format)continue;const o=e.getXLSXFormat(t.columns[n].format,e.data[1][n]),a=e.getXLSXFormat(t.columns[n].format,e.data[e.data.length-1][n]);a?t.columns[n].numFmt=a:o&&(t.columns[n].numFmt=o)}e.processRowStyle(t),e.processColumnStyle(t);const r={};for(let t=0;t<e.complexHeaderMergedCells.length;t++){const n=e.complexHeaderMergedCells[t];parseFloat(n.to[1])!==e.complexHeader.length?(e.styleMap[n.from].alignment.horizontal="center",e.styleMap[n.from].alignment.vertical="center"):r[n.to]=n.from}const n={xml:'<font><sz val="11" /><color theme="1" /><name val="Calibri" /><family val="2" /><charset val="204" /><scheme val="minor" /></font>',collection:["default"]},o={xml:'<fill><patternFill patternType="none" /></fill><fill><patternFill patternType="gray125" /></fill>',collection:["default","gray125"]},a={xml:"",collection:[]},i={xml:'<xf fontId="0" fillId="0" borderId="1"/>',collection:["default"]};for(let t=0;t<e.data.length;t++)for(let s=0;s<e.columnsArray.length;s++){const l=e.columnsArray[s]+(t+1),d=e.styleMap[l];let m="",c="",h="",u=[],p=[],f=[],g=[];for(let t in d.fonts)if(Object.prototype.hasOwnProperty.call(d.fonts,t)){const r=d.fonts[t];switch(t){case"color":u[0]=r,m+=`<color rgb="${e.toARGB(r)}" />`;break;case"name":u[1]=r,m+=`<name val="${r}" />`;break;case"sz":u[2]=r,m+=`<sz val="${r}" />`;break;case"i":u[3]=r,m+="<i />";break;case"b":u[4]=r,m+="<b />";break;case"u":u[5]=r,m+="<u />"}}for(let t in d.fills)if(Object.prototype.hasOwnProperty.call(d.fills,t)){const r=d.fills[t];switch(t){case"fgColor":p[0]=r,c+=`<fgColor rgb="${e.toARGB(r)}" />`}}for(let t in d.alignment)if(Object.prototype.hasOwnProperty.call(d.alignment,t)){const e=d.alignment[t];switch(t){case"horizontal":f[0]=e,h+=`horizontal="${e}" `;break;case"vertical":f[1]=e,h+=`vertical="${e}" `}}if(u=u.toString(),p=p.toString(),""!==m){let t=n.collection.indexOf(u);-1===t&&(t=n.collection.length,n.xml+="<font>"+m+"</font>",n.collection.push(u)),g[0]=t}if(""!==c){let t=o.collection.indexOf(p);-1===t&&(t=o.collection.length,o.xml+='<fill><patternFill patternType="solid">'+c+"</patternFill></fill>",o.collection.push(p)),g[1]=t}f.length>0&&(g[2]=h),void 0!==d.numFmt&&(g[3]=e.getNumFmtIndex(d.numFmt,a));const b=g.toString();if(""!==b){let t=i.collection.indexOf(b);if(-1===t){let e="<xf ";t=i.collection.length,void 0!==g[0]&&(e+=`fontId="${g[0]}" `),void 0!==g[1]&&(e+=`fillId="${g[1]}" `),void 0!==g[3]&&(e+=`numFmtId="${g[3]}" `),void 0!==g[2]?e+=`applyAlignment="1" borderId="1"><alignment ${h}/></xf>`:e+=' borderId="1"/>',i.xml+=e,i.collection.push(b)}e.cellStyleMapping[r[l]||l]=t}}return a.collection.length&&(a.xml=`<numFmts count="${a.collection.length}">${a.xml}</numFmts>`),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision">${a.xml}<fonts count="${n.collection.length}" x14ac:knownFonts="1">${n.xml}</fonts><fills count="${o.collection.length}">${o.xml}</fills><borders count="2"><border><left/><right/><top/><bottom/></border><border><left style="hair"/><right style="hair"/><top style="hair"/><bottom style="hair"/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="${i.collection.length}">${i.xml}</cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>${e.conditionalFormattingXLSX.styles}<dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`}})},6:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* smart-element */\r\n.smart-container {\r\n box-sizing: border-box;\r\n font-family: inherit;\r\n font-size: inherit;\r\n display: block;\r\n width: 100%;\r\n height: 100%;\r\n outline: none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n.smart-container * {\r\n box-sizing: border-box;\r\n}\r\n\r\n.smart-popup,\r\n.smart-drop-down {\r\n position: absolute;\r\n box-sizing: border-box;\r\n margin: var(--smart-editor-drop-down-vertical-offset) 0px;\r\n z-index: var(--smart-editor-drop-down-z-index);\r\n list-style-type: none;\r\n}\r\n\r\n@font-face {\r\n font-family: \'smart-icons\';\r\n src: url("../font/smart-icons.woff2") format("woff2"), url("../font/smart-icons.woff") format("woff"), url("../font/smart-icons.ttf") format("truetype"), url("../font/smart-icons.eot") format("embedded-opentype");\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n\r\n.smart-icons {\r\n font-family: \'smart-icons\';\r\n font-weight: normal;\r\n font-style: normal;\r\n font-size: 24px;\r\n line-height: 1;\r\n letter-spacing: normal;\r\n text-transform: none;\r\n display: inline-block;\r\n white-space: nowrap;\r\n word-wrap: normal;\r\n direction: ltr;\r\n -webkit-font-smoothing: antialiased;\r\n}\r\n\r\n\r\n.smart-arrow {\r\n width: 100%;\r\n height: 100%;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-size: 1em 1em;\r\n}\r\n\r\n.smart-arrow-up:after,\r\n.smart-arrow-down:after,\r\n.smart-arrow-left:after,\r\n.smart-arrow-right:after,\r\n.smart-arrow-left-first:after,\r\n.smart-arrow-right-last:after {\r\n width: 100%;\r\n height: 100%;\r\n font-family: var(--smart-font-family-icon);\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: var(--smart-arrow-size);\r\n color: inherit;\r\n text-decoration: inherit;\r\n font-variant: normal;\r\n text-transform: none;\r\n display: flex;\r\n flex-wrap: wrap;\r\n align-items: center;\r\n justify-content: center;\r\n position: relative;\r\n}\r\n\r\n.smart-arrow-up:after {\r\n content: var(--smart-icon-arrow-up);\r\n top: -1px;\r\n}\r\n\r\n.smart-arrow-down:after {\r\n content: var(--smart-icon-arrow-down);\r\n}\r\n\r\n.smart-arrow-left:after {\r\n content: var(--smart-icon-arrow-left);\r\n}\r\n\r\n.smart-arrow-left-first:after {\r\n content: var(--smart-icon-first-page);\r\n}\r\n\r\n.smart-arrow-right-last:after {\r\n content: var(--smart-icon-last-page);\r\n}\r\n\r\n.smart-arrow-right:after {\r\n content: var(--smart-icon-arrow-right);\r\n}\r\n\r\n.drawContainer {\r\n width: 100%;\r\n height: 100%;\r\n position: relative;\r\n}\r\n\r\n.smart-ripple {\r\n display: block;\r\n position: absolute;\r\n border-radius: 50%;\r\n transform: scale(0);\r\n pointer-events: none;\r\n animation: ripple 0.35s linear;\r\n border: none;\r\n opacity: 0.5;\r\n}\r\n\r\n.smart-ripple.smart-animate {\r\n animation: ripple 0.65s linear;\r\n position: absolute;\r\n}\r\n\r\n@keyframes ripple {\r\n 100% {\r\n opacity: 0;\r\n transform: scale(2.5);\r\n /*scale the element to 250% to safely cover the entire link and fade it out*/\r\n }\r\n}\r\n\r\n.smart-overlay {\r\n pointer-events: none;\r\n}\r\n\r\n.smart-unselectable {\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n -moz-user-select: none;\r\n}\r\n\r\n.smart-hidden {\r\n display: none !important;\r\n}\r\n\r\n.smart-visibility-hidden {\r\n visibility: hidden !important;\r\n}\r\n\r\n.smart-element-init {\r\n visibility: hidden;\r\n}\r\n\r\n.smart-element-ready {\r\n overflow: hidden;\r\n}\r\n\r\n.smart-shown {\r\n display: block;\r\n}\r\n\r\n.smart-resize-trigger {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n transition: 0s;\r\n}\r\n\r\n.smart-resize-trigger-shrink {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n transition: 0s;\r\n width: 200%;\r\n height: 200%;\r\n}\r\n\r\n.smart-resize-trigger-container {\r\n display: block;\r\n position: relative;\r\n top: -100%;\r\n left: 0;\r\n height: 100%;\r\n width: 100%;\r\n min-height: 1px;\r\n overflow: hidden;\r\n pointer-events: none;\r\n z-index: -1;\r\n visibility: hidden;\r\n}\r\n\r\nsmart-grid .smart-loader,\r\nsmart-list-box .smart-loader,\r\nsmart-list-menu .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader,\r\nsmart-tree .smart-loader,\r\nsmart-card-view .smart-loader,\r\nsmart-table .smart-loader {\r\n margin: inherit;\r\n display: block;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n opacity: 0.85;\r\n text-align: left;\r\n border: 6px solid rgba(43, 51, 63, 0.1);\r\n box-sizing: border-box;\r\n background-clip: padding-box;\r\n border-radius: 50%;\r\n z-index: 10;\r\n width: calc(var(--smart-loader-size) + 10px);\r\n height: calc(var(--smart-loader-size) + 10px);\r\n}\r\n\r\nsmart-grid .smart-loader:before,\r\nsmart-grid .smart-loader:after,\r\nsmart-list-box .smart-loader:before,\r\nsmart-list-box .smart-loader:after,\r\nsmart-list-menu .smart-loader:before,\r\nsmart-list-menu .smart-loader:after,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader:before,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader:after,\r\nsmart-tree .smart-loader:before,\r\nsmart-tree .smart-loader:after,\r\nsmart-card-view .smart-loader:before,\r\nsmart-card-view .smart-loader:after,\r\nsmart-table .smart-loader:before,\r\nsmart-table .smart-loader:after {\r\n content: "";\r\n position: absolute;\r\n margin: -6px;\r\n box-sizing: inherit;\r\n width: inherit;\r\n height: inherit;\r\n border-radius: inherit;\r\n opacity: 1;\r\n border: 6px solid transparent;\r\n animation-delay: 0.44s;\r\n animation: smart-loader-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, smart-loader-spin-fade 1.1s linear infinite;\r\n}\r\n\r\nsmart-grid .smart-loader.smart-hidden,\r\nsmart-list-box .smart-loader.smart-hidden,\r\nsmart-list-menu .smart-loader.smart-hidden,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader.smart-hidden,\r\nsmart-tree .smart-loader.smart-hidden,\r\nsmart-card-view .smart-loader.smart-hidden,\r\nsmart-table .smart-loader.smart-hidden {\r\n display: none;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader {\r\n width: var(--smart-loader-size);\r\n height: var(--smart-loader-size);\r\n left: 20%;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-container {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n height: 10%;\r\n background-color: #F2F2F2;\r\n overflow: hidden;\r\n animation: smart-loader-container-pop-up-down 0.3s linear;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden {\r\n display: none;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-label,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-label,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-label,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-label,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-label,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-label {\r\n position: absolute;\r\n display: block;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n left: 60%;\r\n font-family: inherit;\r\n font-size: inherit;\r\n vertical-align: middle;\r\n white-space: nowrap;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-container {\r\n top: 0;\r\n position: absolute;\r\n animation: smart-loader-container-pop-up-top 0.3s linear;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-container {\r\n top: -10%;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="center"] .smart-loader,\r\nsmart-list-box[loading-indicator-position="center"] .smart-loader,\r\nsmart-list-menu[loading-indicator-position="center"] .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="center"] .smart-loader,\r\nsmart-tree[loading-indicator-position="center"] .smart-loader {\r\n width: calc(var(--smart-loader-size) + 10px);\r\n height: calc(var(--smart-loader-size) + 10px);\r\n}\r\n\r\nsmart-grid[disabled] .smart-loader:before,\r\nsmart-grid[disabled] .smart-loader:after,\r\nsmart-list-box[disabled] .smart-loader:before,\r\nsmart-list-box[disabled] .smart-loader:after,\r\nsmart-list-menu[disabled] .smart-loader:before,\r\nsmart-list-menu[disabled] .smart-loader:after,\r\nsmart-tree[disabled] .smart-loader:before,\r\nsmart-tree[disabled] .smart-loader:after {\r\n animation: none;\r\n}\r\n\r\n@keyframes smart-loader-container-pop-up-down {\r\n 0% {\r\n top: 0;\r\n }\r\n\r\n 20% {\r\n top: -2%;\r\n }\r\n\r\n 35% {\r\n top: -6%;\r\n }\r\n\r\n 60% {\r\n top: -8%;\r\n }\r\n\r\n 100% {\r\n top: -10%;\r\n }\r\n}\r\n\r\n@keyframes smart-loader-container-pop-up-top {\r\n 0% {\r\n top: -10%;\r\n }\r\n\r\n 20% {\r\n top: -8%;\r\n }\r\n\r\n 35% {\r\n top: -6%;\r\n }\r\n\r\n 60% {\r\n top: -2%;\r\n }\r\n\r\n 100% {\r\n top: 0;\r\n }\r\n}\r\n\r\n@keyframes smart-loader-spin {\r\n 100% {\r\n transform: rotate(360deg);\r\n }\r\n}\r\n\r\n@keyframes smart-loader-spin-fade {\r\n 0% {\r\n border-top-color: #7A7A7A;\r\n }\r\n\r\n 20% {\r\n border-top-color: #7A7A7A;\r\n }\r\n\r\n 35% {\r\n border-top-color: transparent;\r\n }\r\n\r\n 60% {\r\n border-top-color: #7A7A7A;\r\n }\r\n\r\n 100% {\r\n border-top-color: #7A7A7A;\r\n }\r\n}\r\n\r\n.smart-right-to-left {\r\n direction: rtl;\r\n}\r\n\r\n.smart-micro {\r\n font-size: 9px;\r\n}\r\n\r\n.smart-caps {\r\n text-transform: uppercase;\r\n letter-spacing: .1em;\r\n}\r\n\r\n.smart-strong {\r\n font-weight: 500;\r\n}\r\n\r\n.smart-truncate {\r\n max-width: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.smart-flex-auto {\r\n flex: 1 1 auto;\r\n display: flex;\r\n min-width: 0;\r\n min-height: 0;\r\n}\r\n\r\n.smart-flex {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.smart-quiet {\r\n opacity: 0.75;\r\n}\r\n\r\n.smart-dragging,\r\n.smart-dragging * {\r\n cursor: move !important;\r\n}',""]),t.exports=e},7:function(t,e,r){t.exports=r.p+"font/smart-icons.woff2"},8:function(t,e){!function(){const t=[];let e="Smart";if(window[e]&&window[e].Version){if("13.2.0"===window[e].Version)return;if("13.2.0"!==window[e].Version)e+="13.2.0";else{let t=2;for(;window[e];)e+=t.toString(),t++}}const r=navigator.userAgent.indexOf("Edge")>-1&&navigator.appVersion.indexOf("Edge")>-1;document.elementsFromPoint||(document.elementsFromPoint=document.msElementsFromPoint);class n{static isBoolean(t){return"boolean"==typeof t}static isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)}static isArray(t){return Array.isArray(t)}static isObject(t){return t&&("object"==typeof t||this.isFunction(t))||!1}static isDate(t){return t instanceof Date}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t}static getType(t){const e=this,r=["Boolean","Number","String","Function","Array","Date","Object"].find(r=>{if(e["is"+r](t))return r});return r?r.toLowerCase():void 0}}class o{static animate(t,r,n,o){const a=t;if(!a||a instanceof HTMLElement==!1)return;if(0===a.getElementsByClassName("smart-ripple").length){const t=document.createElement("span");t.classList.add("smart-ripple"),t.setAttribute("role","presentation");let r=!0,n=null;if(window[e].EnableShadowDOM&&a.enableShadowDOM&&!0!==a.isInShadowDOM){for(let t=0;t<a.shadowRoot.host.shadowRoot.children.length;t++)"link"!==a.shadowRoot.host.shadowRoot.children[t].tagName.toLowerCase()&&(n=a.shadowRoot.host.shadowRoot.children[t]);a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple")&&(r=!1)}else n=a.firstElementChild;r&&(n&&!n.noRipple&&n.offsetHeight>0?n.appendChild(t):a.appendChild(t))}let i=null;if(i=window[e].EnableShadowDOM&&a.shadowRoot?a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple"):a.getElementsByClassName("smart-ripple")[0],!i)return;i.innerHTML="",i.classList.remove("smart-animate"),i.style.height=i.style.width=Math.max(a.offsetHeight,a.offsetWidth)+"px";const s=window.getComputedStyle(i.parentElement),l=parseInt(s.borderLeftWidth)||0,d=parseInt(s.borderTopWidth)||0,m=a.getBoundingClientRect(),c=r-(m.left+window.pageXOffset)-i.offsetWidth/2-l,h=n-(m.top+window.pageYOffset)-i.offsetHeight/2-d;i.style.left=c+"px",i.style.top=h+"px",i.classList.add("smart-animate"),i.addEventListener("animationend",(function t(){i.parentElement&&i.parentElement.removeChild(i),o&&o(),i.removeEventListener("animationend",t),i.removeEventListener("animationcancel",t)})),i.addEventListener("animationcancel",(function t(){i.parentElement&&i.parentElement.removeChild(i),o&&o(),i.removeEventListener("animationcancel",t),i.removeEventListener("animationend",t)}))}}class a{static easeInQuad(t,e,r,n){return r*(t/=n)*t+e}static easeOutQuad(t,e,r,n){return-r*(t/=n)*(t-2)+e}static easeInOutQuad(t,e,r,n){return(t/=n/2)<1?r/2*t*t+e:-r/2*(--t*(t-2)-1)+e}static easeInCubic(t,e,r,n){return r*(t/=n)*t*t+e}static easeOutCubic(t,e,r,n){return r*((t=t/n-1)*t*t+1)+e}static easeInOutCubic(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e}static easeInQuart(t,e,r,n){return r*(t/=n)*t*t*t+e}static easeOutQuart(t,e,r,n){return-r*((t=t/n-1)*t*t*t-1)+e}static easeInOutQuart(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t*t+e:-r/2*((t-=2)*t*t*t-2)+e}static easeInQuint(t,e,r,n){return r*(t/=n)*t*t*t*t+e}static easeOutQuint(t,e,r,n){return r*((t=t/n-1)*t*t*t*t+1)+e}static easeInOutQuint(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t*t*t+e:r/2*((t-=2)*t*t*t*t+2)+e}static easeInSine(t,e,r,n){return-r*Math.cos(t/n*(Math.PI/2))+r+e}static easeOutSine(t,e,r,n){return r*Math.sin(t/n*(Math.PI/2))+e}static easeInOutSine(t,e,r,n){return-r/2*(Math.cos(Math.PI*t/n)-1)+e}static easeInExpo(t,e,r,n){return 0===t?e:r*Math.pow(2,10*(t/n-1))+e}static easeOutExpo(t,e,r,n){return t===n?e+r:r*(1-Math.pow(2,-10*t/n))+e}static easeInOutExpo(t,e,r,n){return 0===t?e:t===n?e+r:(t/=n/2)<1?r/2*Math.pow(2,10*(t-1))+e:r/2*(2-Math.pow(2,-10*--t))+e}static easeInCirc(t,e,r,n){return-r*(Math.sqrt(1-(t/=n)*t)-1)+e}static easeOutCirc(t,e,r,n){return r*Math.sqrt(1-(t=t/n-1)*t)+e}static easeInOutCirc(t,e,r,n){return(t/=n/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+e:r/2*(Math.sqrt(1-(t-=2)*t)+1)+e}static easeInElastic(t,e,r,n){let o=1.70158,a=0,i=r;return 0===t?e:1==(t/=n)?e+r:(a||(a=.3*n),i<Math.abs(r)?(i=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)+e)}static easeOutElastic(t,e,r,n){let o=1.70158,a=0,i=r;return 0===t?e:1==(t/=n)?e+r:(a||(a=.3*n),i<Math.abs(r)?(i=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/i),i*Math.pow(2,-10*t)*Math.sin((t*n-o)*(2*Math.PI)/a)+r+e)}static easeInOutElastic(t,e,r,n){let o=1.70158,a=0,i=r;return 0===t?e:2==(t/=n/2)?e+r:(a||(a=n*(.3*1.5)),i<Math.abs(r)?(i=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)*-.5+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)*.5+r+e)}static easeInBack(t,e,r,n,o){return void 0===o&&(o=1.70158),r*(t/=n)*t*((o+1)*t-o)+e}static easeOutBack(t,e,r,n,o){return void 0===o&&(o=1.70158),r*((t=t/n-1)*t*((o+1)*t+o)+1)+e}static easeInOutBack(t,e,r,n,o){return void 0===o&&(o=1.70158),(t/=n/2)<1?r/2*(t*t*((1+(o*=1.525))*t-o))+e:r/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+e}static easeInBounce(t,e,r,n){return r-this.easeOutBounce(n-t,0,r,n)+e}static easeOutBounce(t,e,r,n){return(t/=n)<1/2.75?r*(7.5625*t*t)+e:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+e:r*(7.5625*(t-=2.625/2.75)*t+.984375)+e}static easeInOutBounce(t,e,r,n){return t<n/2?.5*this.easeInBounce(2*t,0,r,n)+e:.5*this.easeOutBounce(2*t-n,0,r,n)+.5*r+e}}class i{static get isMobile(){const t=/(iphone|ipod|ipad|android|iemobile|blackberry|bada)/.test(window.navigator.userAgent.toLowerCase());return t||(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)}static get Browser(){let t;const e=function(e){let r=e.indexOf(t);if(-1===r)return;const n=e.indexOf("rv:");return"Trident"===t&&-1!==n?parseFloat(e.substring(n+3)):parseFloat(e.substring(r+t.length+1))};let r={};return r[function(){const e=[{string:navigator.userAgent,subString:"Edge",identity:"Edge"},{string:navigator.userAgent,subString:"MSIE",identity:"IE"},{string:navigator.userAgent,subString:"Trident",identity:"IE"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"},{string:navigator.userAgent,subString:"OPR",identity:"Opera"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"}];for(let r=0;r<e.length;r++){let n=e[r].string;if(t=e[r].subString,-1!==n.indexOf(e[r].subString))return e[r].identity}return"Other"}()]=!0,r.version=e(navigator.userAgent)||e(navigator.appVersion)||"Unknown",r}static toCamelCase(t){return t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}static toDash(t){return t.split(/(?=[A-Z])/).join("-").toLowerCase()}static unescapeHTML(t){return(new DOMParser).parseFromString(t,"text/html").documentElement.textContent}static escapeHTML(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,t=>e[t])}static sanitizeHTML(t){if(t&&(t.indexOf("onclick")>=0||t.indexOf("onload")>=0||t.indexOf("onerror")>=0))return this.escapeHTML(t);const e=new RegExp("<s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<s*/s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>","ig");return String(t).replace(e,t=>this.escapeHTML(t))}static createGUID(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}static getScriptLocation(){if("./"!==window[e].BaseUrl)return window[e].BaseUrl;return function(){if(document.currentScript){let t=document.currentScript.src,e=t.lastIndexOf("/");return t=t.substring(0,e),t}const t=new Error;let e="(",r=")";if(Smart.Utilities.Core.Browser.Safari&&(e="@",r="\n"),t.fileName)return t.fileName.replace("/smart.element.js","");let n=t.stack.split(e);return n=n[1],n=n.split(r)[0],n=n.split(":"),n.splice(-2,2),n=n.join(":"),n.replace("/smart.element.js","")}()}static CSSVariablesSupport(){return window.CSS&&window.CSS.supports&&window.CSS.supports("(--fake-var: 0)")}static assign(t,e){const r=t=>t&&"object"==typeof t&&!Array.isArray(t)&&null!==t;let n=Object.assign({},t);return r(t)&&r(e)&&Object.keys(e).forEach(o=>{r(e[o])&&o in t?n[o]=this.assign(t[o],e[o]):Object.assign(n,{[o]:e[o]})}),n}static html(t,e){const r=this;let n="",o=t.childNodes;if(!e){for(let t,e=0,a=o.length;e<a&&(t=o[e]);e++){const e=["strong"];if(t instanceof HTMLElement||t.tagName&&e.indexOf(t.tagName.toLowerCase())>=0){const e=t.tagName.toLowerCase(),o=t.attributes;let a="<"+e;for(let t,e=0;t=o[e];e++)a+=" "+t.name+'="'+t.value.replace(/[&\u00A0"]/g,g.Core.escapeHTML)+'"';a+=">",["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"][e]&&(n+=a),n=n+a+r.html(t)+"</"+e+">"}else{if(8===t.nodeType)continue;n+=t.textContent.replace(/[&\u00A0<>]/g,g.Core.escapeHTML)}}return n}{const r=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi;t.innerHTML=e.replace(r,"<$1></$2>")}}}let s=[];class l{static watch(t){switch(t.nodeName.toLowerCase()){case"smart-grid":case"smart-kanban":case"smart-table":case"smart-pivot-table":case"smart-scheduler":case"smart-tabs":case"smart-card-view":case"smart-list-box":case"smart-combo-box":case"smart-drop-down-list":case"smart-calendar":case"smart-gauge":case"smart-numeric-text-box":case"smart-menu":case"smart-tree":s.push(t);break;default:return}l.start()}static start(){l.isStarted||(l.isStarted=!0,l.interval&&clearInterval(l.interval),0===s.length||document.hidden?l.isStarted=!1:l.interval=setInterval((function(){l.observe()}),100))}static stop(){l.isStarted=!1,l.interval&&clearInterval(l.interval)}static observeElement(t){const e=t;if("test"===window.Smart.Mode||document.hidden)return void(l.interval&&clearInterval(l.interval));let r=t._computedStyle||"resize"!==e.hasStyleObserver?document.defaultView.getComputedStyle(e,null):{},n=!0,o="resize"!==e.hasStyleObserver?["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","display","visibility","font-size","font-family","font-style","font-weight","max-height","min-height","max-width","min-width","overflow","overflow-x","overflow-y"]:[];if(t.styleProperties&&(o=o.concat(t.styleProperties)),t.observableStyleProperties&&(o=t.observableStyleProperties),!e._styleInfo){e._styleInfo=[];for(let t=0;t<o.length;t++){const n=o[t],a=n.startsWith("--")?r.getPropertyValue(n):r[n];e._styleInfo[n]=a}return}if(t.isHidden||"none"!==r.display&&(0!==t.offsetWidth&&0!==t.offsetHeight||(t.isHidden=!0)),t.isHidden){if(t.visibilityChangedHandler(),t.isHidden)return;n=!1}let a=[];for(let t=0;t<o.length;t++){const n=o[t],i=n.startsWith("--")?r.getPropertyValue(n):r[n];e._styleInfo[n]!==i&&(a[n]={oldValue:e._styleInfo[n],value:i},a.length++),e._styleInfo[n]=i}a.length>0&&(e.$.fireEvent("styleChanged",{styleProperties:a},{bubbles:!1,cancelable:!0}),a.display&&n&&e.$.fireEvent("resize",e,{bubbles:!1,cancelable:!0}))}static observe(){for(let t=0;t<s.length;t++){const e=s[t];this.observeElement(e)}}static unwatch(t){l.stop();const e=s.indexOf(t);-1!==e&&s.splice(e,1),l.start()}}let d=[];const m=[],c=["resize","down","up","move","tap","taphold","swipeleft","swiperight","swipetop","swipebottom"];class h{constructor(t){const e=this;e.target=t,e.$target=new p(t),e.$document=t.$document?t.$document:new p(document),e.id=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase();let r={handlers:{},boundEventTypes:[],listen:e.listen.bind(e),unlisten:e.unlisten.bind(e)};return e.tapHoldDelay=750,e.swipeMin=10,e.swipeMax=5e3,e.swipeDelay=1e3,e.tapHoldDelay=750,e.inputEventProperties=["clientX","clientY","pageX","pageY","screenX","screenY"],c.forEach(t=>{r[t]=e=>{r.handlers[t]=e},e[t]=t=>{if(!r.handlers[t.type]){if(("mousemove"===t.type||"pointermove"===t.type||"touchmove"===t.type)&&r.handlers.move){const n=e.createEvent(t,"move");r.handlers.move(n)}return!0}return r.handlers[t.type](t)}}),e.listen(),e.handlers=r.handlers,r}listen(t){const r=this;if("resize"===t&&r.target!==document&&r.target!==window&&!1!==r.target.hasResizeObserver)if(Smart.Utilities.Core.Browser.Firefox){if(!r.target.resizeObserver){let t,e,n,o=!1,a=r.target.offsetWidth,i=r.target.offsetHeight;const s=new ResizeObserver(()=>{if(!o)return void(o=!0);const s=new CustomEvent("resize",{bubbles:!1,cancelable:!0});e=r.target.offsetWidth,n=r.target.offsetHeight,t=e!==a||n!==i,r.target.requiresLayout&&(t=!0),t&&(r.resize(s),r.target.requiresLayout=!1)});s.observe(r.target),r.target.resizeObserver=s}}else if(!r.target.resizeTrigger){const t=document.createElement("div");t.className="smart-resize-trigger-container",t.innerHTML='<div class="smart-resize-trigger-container"><div class="smart-resize-trigger"></div></div><div class="smart-resize-trigger-container"><div class="smart-resize-trigger-shrink"></div></div>',t.setAttribute("aria-hidden",!0),window[e].EnableShadowDOM&&r.target.shadowRoot?r.target.shadowRoot.appendChild(t):r.target.appendChild(t),r.target.resizeTrigger=t;const n=t.childNodes[0],o=n.childNodes[0],a=t.childNodes[1],i=function(){o.style.width="100000px",o.style.height="100000px",n.scrollLeft=1e5,n.scrollTop=1e5,a.scrollLeft=1e5,a.scrollTop=1e5};let s,l,d,m,c=r.target.offsetWidth,h=r.target.offsetHeight;if(0===c||0===h){const t=function(){i(),r.target.removeEventListener("resize",t)};r.target.addEventListener("resize",t),i()}else i();r.target.resizeHandler=function(){l||(l=requestAnimationFrame((function(){if(l=0,d=r.target.offsetWidth,m=r.target.offsetHeight,s=d!==c||m!==h,r.target.requiresLayout&&(s=!0),!s)return;c=d,h=m;const t=new CustomEvent("resize",{bubbles:!1,cancelable:!0});r.resize(t),r.target.requiresLayout=!1}))),i()},n.addEventListener("scroll",r.target.resizeHandler),a.addEventListener("scroll",r.target.resizeHandler)}if(!r.isListening){if(r.isListening=!0,r.isPressed=!1,r.isReleased=!1,r.isInBounds=!1,window.PointerEvent)r.$target.listen("pointerdown.inputEvents"+r.id,r.pointerDown.bind(r)),r.$target.listen("pointerup.inputEvents"+r.id,r.pointerUp.bind(r)),r.$target.listen("pointermove.inputEvents"+r.id,r.pointerMove.bind(r)),r.$target.listen("pointercancel.inputEvents"+r.id,r.pointerCancel.bind(r));else{"ontouchstart"in window&&(r.$target.listen("touchmove.inputEvents"+r.id,r.touchMove.bind(r)),r.$target.listen("touchstart.inputEvents"+r.id,r.touchStart.bind(r)),r.$target.listen("touchend.inputEvents"+r.id,r.touchEnd.bind(r)),r.$target.listen("touchcancel.inputEvents"+r.id,r.touchCancel.bind(r))),r.$target.listen("mousedown.inputEvents"+r.id,r.mouseDown.bind(r)),r.$target.listen("mouseup.inputEvents"+r.id,r.mouseUp.bind(r)),r.$target.listen("mousemove.inputEvents"+r.id,r.mouseMove.bind(r)),r.$target.listen("mouseleave.inputEvents"+r.id,r.mouseLeave.bind(r))}r.target._handleDocumentUp||(r.target._handleDocumentUp=r.handleDocumentUp.bind(r),r.target._handleDocumentUpId=r.id,r.$document.listen("mouseup.inputEvents"+r.target._handleDocumentUpId,r.target._handleDocumentUp))}}unlisten(t){const e=this;if(e.isListening=!1,window.PointerEvent)e.$target.unlisten("pointerdown.inputEvents"+e.id),e.$target.unlisten("pointerup.inputEvents"+e.id),e.$target.unlisten("pointermove.inputEvents"+e.id),e.$target.unlisten("pointercancel.inputEvents"+e.id);else{"ontouchstart"in window&&(e.$target.unlisten("touchstart.inputEvents"+e.id),e.$target.unlisten("touchmove.inputEvents"+e.id),e.$target.unlisten("touchend.inputEvents"+e.id),e.$target.unlisten("touchcancel.inputEvents"+e.id)),e.$target.unlisten("mousedown.inputEvents"+e.id),e.$target.unlisten("mouseup.inputEvents"+e.id),e.$target.unlisten("mousemove.inputEvents"+e.id),e.$target.unlisten("mouseleave.inputEvents"+e.id)}if(e.target._handleDocumentUp&&(e.$document.unlisten("mouseup.inputEvents"+e.target._handleDocumentUpId,e.target._handleDocumentUp),delete e.target._handleDocumentUp,delete e.target._handleDocumentUpId),"resize"===t)if(Smart.Utilities.Core.Browser.Firefox)e.target.resizeObserver&&(e.target.resizeObserver.unobserve(e.target),delete e.target.resizeObserver);else if(e.target.resizeTrigger){const t=e.target.resizeTrigger,r=t.childNodes[0],n=t.childNodes[1];r.removeEventListener("scroll",e.target.resizeHandler),n.removeEventListener("scroll",e.target.resizeHandler),e.target.resizeHandler=null,t.parentNode.removeChild(t),delete e.target.resizeTrigger}}handleDocumentUp(t){this.isPressed=!1,this.isReleased=!1,this.resetSwipe(t)}createEvent(t,e){const r=this,n=t.touches,o=t.changedTouches,a=n&&n.length?n[0]:o&&o.length?o[0]:void 0,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:void 0!==r.$target.element.getRootNode().host});if(i.originalEvent=t,a){for(let t=0;t<r.inputEventProperties.length;t++){const e=r.inputEventProperties[t];i[e]=a[e]}return i}for(let e in t)e in i||(i[e]=t[e]);return i}fireTap(t){const e=this;if(clearTimeout(this.tapHoldTimeout),!this.tapHoldFired&&this.isInBounds){const r=e.createEvent(t,"tap");e.tap(r)}}initTap(t){const e=this;e.isInBounds=!0,e.tapHoldFired=!1,e.tapHoldTimeout=setTimeout((function(){if(e.isInBounds){e.tapHoldFired=!0;const r=e.createEvent(t,"taphold");e.taphold(r)}}),e.tapHoldDelay)}pointerDown(t){return this.handleDown(t)}mouseDown(t){if(!(this.isPressed||this.touchStartTime&&new Date-this.touchStartTime<500))return this.handleDown(t)}touchStart(t){return this.touchStartTime=new Date,this.isTouchMoved=!0,this.handleDown(t)}mouseUp(t){if(!(this.isReleased||this.touchEndTime&&new Date-this.touchEndTime<500))return this.handleUp(t)}handleDown(t){const e=this;e.isReleased=!1,e.isPressed=!0;const r=e.createEvent(t,"down");return(e.handlers.tap||e.handlers.taphold)&&e.initTap(r),(e.handlers.swipeleft||e.handlers.swiperight||e.handlers.swipetop||e.handlers.swipebottom)&&e.initSwipe(r),e.down(r)}handleUp(t){const e=this;e.isReleased=!0,e.isPressed=!1;const r=e.createEvent(t,"up"),n=e.up(r);return(e.handlers.tap||e.handlers.taphold)&&e.fireTap(r),e.resetSwipe(r),n}handleMove(t){const e=this;let r=e.move(t);return e.isPressed&&(e._maxSwipeVerticalDistance=Math.max(e._maxSwipeVerticalDistance,Math.abs(e._startY-t.pageY)),e._maxSwipeHorizontalDistance=Math.max(e._maxSwipeHorizontalDistance,Math.abs(e._startX-t.pageX)),r=e.handleSwipeEvents(t)),r}touchEnd(t){return this.touchEndTime=new Date,this.handleUp(t)}pointerUp(t){return this.handleUp(t)}pointerCancel(t){this.pointerUp(t)}touchCancel(t){this.touchEnd(t)}mouseLeave(){this.isInBounds=!1}mouseMove(t){if(!this.isTouchMoved)return this.handleMove(t)}pointerMove(t){return this.handleMove(t)}touchMove(t){const e=this,r=t.touches,n=t.changedTouches,o=r&&r.length?r[0]:n&&n.length?n[0]:void 0;for(let r=0;r<e.inputEventProperties.length;r++){const n=e.inputEventProperties[r];void 0===t[n]&&(t[n]=o[n])}return e.isTouchMoved=!0,e.handleMove(t)}handleSwipeEvents(t){let e=!0;return(this.handlers.swipetop||this.handlers.swipebottom)&&(e=this.handleVerticalSwipeEvents(t)),!1===e||(this.handlers.swipeleft||this.handlers.swiperight)&&(e=this.handleHorizontalSwipeEvents(t)),e}handleVerticalSwipeEvents(t){let e,r;return e=t.pageY,r=e-this._startY,this.swiped(t,r,"vertical")}handleHorizontalSwipeEvents(t){let e,r;return e=t.pageX,r=e-this._startX,this.swiped(t,r,"horizontal")}swiped(t,e,r){const n=this;if(r=r||0,Math.abs(e)>=n.swipeMin&&!n._swipeEvent&&!n._swipeLocked){let o=e<0?"swipeleft":"swiperight";if("horizontal"===r?n._swipeEvent=n.createEvent(t,o):(o=e<0?"swipetop":"swipebottom",n._swipeEvent=n.createEvent(t,e<0?"swipetop":"swipebottom")),n[o]&&(n[o](this._swipeEvent),Math.abs(e)<=this.swipeMax))return t.stopImmediatePropagation(),!1}return!0}resetSwipe(){this._swipeEvent=null,clearTimeout(this._swipeTimeout)}initSwipe(t){const e=this;e._maxSwipeVerticalDistance=0,e._maxSwipeHorizontalDistance=0,e._startX=t.pageX,e._startY=t.pageY,e._swipeLocked=!1,e._swipeEvent=null,e._swipeTimeout=setTimeout((function(){e._swipeLocked=!0}),e.swipeDelay)}}class u{get scrollWidth(){const t=this;return t.horizontalScrollBar?t.horizontalScrollBar.max:-1}set scrollWidth(t){const e=this;t<0&&(t=0),e.horizontalScrollBar&&(e.horizontalScrollBar.max=t)}get scrollHeight(){const t=this;return t.verticalScrollBar?t.verticalScrollBar.max:-1}set scrollHeight(t){const e=this;t<0&&(t=0),e.verticalScrollBar&&(e.verticalScrollBar.max=t)}get scrollLeft(){const t=this;return t.horizontalScrollBar?t.horizontalScrollBar.value:-1}set scrollLeft(t){const e=this;t<0&&(t=0),e.horizontalScrollBar&&(e.horizontalScrollBar.value=t)}get scrollTop(){const t=this;return t.verticalScrollBar?t.verticalScrollBar.value:-1}set scrollTop(t){const e=this;t<0&&(t=0),e.verticalScrollBar&&(e.verticalScrollBar.value=t)}get vScrollBar(){return this.verticalScrollBar}get hScrollBar(){return this.horizontalScrollBar}constructor(t,e,r){this.container=t,this.horizontalScrollBar=e,this.verticalScrollBar=r,this.disableSwipeScroll=!1,this.listen()}listen(){const t=this,e=i.isMobile,r=t.horizontalScrollBar,n=t.verticalScrollBar;t.inputEvents=new h(t.container);let o,a,s,l,d,m,c,u;const p=function(t){return{amplitude:0,delta:0,initialValue:0,min:0,max:t.max,previousValue:0,pointerPosition:0,targetValue:0,scrollBar:t,value:0,velocity:0}},f=p(r),b=p(n),v=function(){const e=t.container.touchVelocityCoefficient||50;m=Date.now(),c=m-l,l=m;const r=function(t){t.delta=t.value-t.previousValue,t.previousValue=t.value;let r=e*t.delta/(1+c);t.velocity=.8*r+.2*t.velocity};r(b),r(f)},y=function(t){return u.value=t>u.max?u.max:t<u.min?u.min:t,u.scrollBar.value=u.value,t>u.max?"max":t<u.min?"min":"value"};function w(){let e,r;u.amplitude&&(t.container.$.fireEvent("kineticScroll"),e=Date.now()-l,r=-u.amplitude*Math.exp(-e/500),r>5||r<-5?(y(u.targetValue+r),cancelAnimationFrame(a),a=0,a=requestAnimationFrame(w)):y(u.targetValue))}let x;t.inputEvents.down((function(r){if(!e)return;const n=r.originalEvent.target,a=n&&n.closest?n.closest("smart-scroll-bar"):void 0;if(a===t.horizontalScrollBar||a===t.verticalScrollBar)return;s=!0,o=!1;const i=function(t,e){t.amplitude=0,t.pointerPosition=e,t.previousValue=t.value,t.value=t.scrollBar.value,t.initialValue=t.value,t.max=t.scrollBar.max};i(b,r.clientY),i(f,r.clientX),l=Date.now(),clearInterval(d),d=setInterval(v,500)})),t.inputEvents.up((function(){if(!s)return!0;if(clearInterval(d),t.disableSwipeScroll)return void(s=!1);const e=function(t){u=t,t.amplitude=.8*t.velocity,t.targetValue=Math.round(t.value+t.amplitude),l=Date.now(),cancelAnimationFrame(a),a=requestAnimationFrame(w),t.velocity=0};b.velocity>10||b.velocity<-10?e(b):(f.velocity>10||f.velocity<-10)&&e(f),s=!1})),t.inputEvents.move((function(e){if(!s)return!0;if(t.disableSwipeScroll)return;if(o&&(e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()),f.visible=t.scrollWidth>0,b.visible=t.scrollHeight>0,!s||!f.visible&&!b.visible)return;const r=t.container.touchScrollRatio,n=t.container;let a,i;r&&("number"==typeof r?(a=-r,i=-r):"function"==typeof r&&(a=r(b.max,n.offsetHeight),i=r(f.max,n.offsetWidth))),b.ratio=a||-b.max/n.offsetHeight,b.delta=(e.clientY-b.pointerPosition)*b.ratio,f.ratio=i||-f.max/n.offsetWidth,f.delta=(e.clientX-f.pointerPosition)*f.ratio;let l="value";const d=function(e,r,n){return e.delta>5||e.delta<-5?(u=e,l=e.initialValue+e.delta>u.max?"max":e.initialValue+e.delta<u.min?"min":"value","min"===l&&0===e.initialValue||("max"===l&&e.initialValue===e.max||(!e.visible||(t.container.$.fireEvent("kineticScroll"),y(e.initialValue+e.delta),v(),n.originalEvent.preventDefault(),n.originalEvent.stopPropagation(),o=!0,!1)))):null};let m=d(b,e.clientY,e);if(null!==m)return m;{let t=d(f,e.clientX,e);if(null!==t)return t}})),t.scrollTo=function(e,r){const n=!1===r?f:b;let o=!1;l||(l=Date.now()),x||(x=Date.now()),Math.abs(Date.now()-x)>375?l=Date.now():o=!0,x=Date.now(),n.value=n.scrollBar.value,n.delta=e-n.value,n.max=n.scrollBar.max,e<=n.min&&(e=n.min),e>=n.max&&(e=n.max),n.targetValue=e;const i=e;let s=n.value;n.velocity=100*n.delta/(1+n.max),n.from=s;const d=function(t){return n.value=t>n.max?n.max:t<n.min?n.min:t,n.scrollBar.value=n.value,t>n.max?"max":t<n.min?"min":"value"},m=function(){let r,c=Date.now()-x,h=Math.min(1e3,Date.now()-l),u=n.velocity*Math.exp(h/175);if(o)(u<0&&n.value<=e||u>0&&n.value>=e)&&(u=0),(n.value+u<=n.min||n.value+u>=n.max)&&(u=0),u>.5||u<-.5?(d(n.value+u),cancelAnimationFrame(a),a=0,a=requestAnimationFrame(m)):d(n.targetValue);else{if(c>=175)return cancelAnimationFrame(a),t.container.$.fireEvent("kineticScroll"),void(a=0);r=g.Animation.Easings.easeInSine(c,s,i-s,175),d(r),cancelAnimationFrame(a),a=0,a=requestAnimationFrame(m)}};cancelAnimationFrame(a),a=requestAnimationFrame(m)},t.inputEvents.listen()}unlisten(){const t=this;t.inputEvents&&t.inputEvents.unlisten(),delete t.inputEvents}}class p{constructor(t){this.events={},this.handlers={},this.element=t}hasClass(t){const e=this,r=t.split(" ");for(let t=0;t<r.length;t++){if(!e.element.classList.contains(r[t]))return!1}return!0}addClass(t){const e=this;if(e.hasClass(t))return;const r=t.split(" ");for(let t=0;t<r.length;t++)e.element.classList.add(r[t]);e.isNativeElement||l.observeElement(e.element)}removeClass(t){const e=this;if(0===arguments.length)return void e.element.removeAttribute("class");const r=t.split(" ");for(let t=0;t<r.length;t++)e.element.classList.remove(r[t]);""===e.element.className&&e.element.removeAttribute("class"),e.isNativeElement||l.observeElement(e.element)}get isCustomElement(){return!!this.element.tagName.startsWith(e)||(this.element instanceof window[e].BaseElement==!0||"DIV"!==this.element.tagName&&"SPAN"!==this.element.tagName&&"BUTTON"!==this.element.tagName&&"INPUT"!==this.element.tagName&&"UL"!==this.element.tagName&&"LI"!==this.element.tagName&&document.createElement(this.element.nodeName)instanceof window[e].BaseElement==!0)}get isNativeElement(){return!this.isCustomElement}dispatch(t){const e=this,r=e.events[t.type];let n=!1;if(r.length>1)for(let t=0;t<r.length;t++){const e=r[t];if(e.namespace&&e.namespace.indexOf("_")>=0){n=!0;break}}n&&r.sort((function(t,e){let r=t.namespace,n=e.namespace;return r=-1===r.indexOf("_")?0:parseInt(r.substring(r.indexOf("_")+1)),n=-1===n.indexOf("_")?0:parseInt(n.substring(n.indexOf("_")+1)),r<n?-1:r>n?1:0}));for(let n=0;n<r.length;n++){const o=r[n];if(t.namespace=o.namespace,t.context=o.context,t.defaultPrevented)break;const a=o.handler.apply(e.element,[t]);if(void 0!==a&&(t.result=a,!1===a)){t.preventDefault(),t.stopPropagation();break}}return t.result}fireEvent(t,e,r){const n=this;r||(r={bubbles:!0,cancelable:!0,composed:null!==n.element.getRootNode().host}),r.detail=e||{};const o=new CustomEvent(t,r);return o.originalStopPropagation=o.stopPropagation,o.stopPropagation=function(){return o.isPropagationStopped=!0,o.originalStopPropagation()},n.dispatchEvent(o),o}get isPassiveSupported(){const t=this;if(void 0!==t.supportsPassive)return t.supportsPassive;t.supportsPassive=!1;try{let e=Object.defineProperty({},"passive",{get:function(){t.supportsPassive=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(t){}return t.supportsPassive}dispatchEvent(t){const e=this,r=t.type,n=e.element.context,o=r.substring(0,1).toUpperCase()+r.substring(1);e.element.context=document,e.element["on"+o]?e.element["on"+o](t):e.element["on"+r.toLowerCase()]?e.element["on"+r.toLowerCase()](t):e.element.dispatchEvent(t),e.element.context=n}listen(t,e){const r=this,n=t.split("."),o=n.slice(1).join("."),a=n[0];r.events[a]||(r.events[a]=[]);const i={type:a,handler:e,context:r.element,namespace:o};c.indexOf(a)>=0&&(r.inputEvents||(r.inputEvents=new h(r.element)),r.inputEvents[a]((function(t){r.dispatchEvent(t)})),r.inputEvents.boundEventTypes.push(a),r.inputEvents.listen(a)),0===r.events[a].length&&(r.handlers[a]=r.dispatch.bind(r),"wheel"===a?r.element.addEventListener("wheel",r.handlers[a],!!r.isPassiveSupported&&{passive:!1}):"touchmove"===a||"touchstart"===a||"touchend"===a?r.element.addEventListener(a,r.handlers[a],!!r.isPassiveSupported&&{passive:!1}):r.element.addEventListener(a,r.handlers[a],!1)),r.events[a].push(i)}unlisten(t){const e=this,r=t.split("."),n=r.slice(1).join("."),o=r[0];let a=e.events[o];if(e.inputEvents&&e.inputEvents.boundEventTypes.indexOf(o)>=0&&(e.inputEvents.boundEventTypes.splice(e.inputEvents.boundEventTypes.indexOf(o),1),0===e.inputEvents.boundEventTypes.length&&e.inputEvents.unlisten(o)),a){for(let t=0;t<a.length;t++){if(""!==n){let t=a.findIndex(t=>t.namespace===n);a.splice(t,1);break}a=[]}0===a.length&&(e.element.removeEventListener(o,e.handlers[o]),e.events[o]=[],delete e.handlers[o])}}getAttributeValue(t,e){const r=this,n=r.element.getAttribute(t);if(r.isNativeElement)return r.deserialize(n,e);const o=r.element.propertyByAttributeName[t];return void 0===o.deserialize?r.deserialize(n,e,o.nullable):r.element[o.deserialize](n)}setAttributeValue(t,e,r){const n=this;let o,a=!1;if(n.isNativeElement){if(o=n.serialize(e,r),"boolean"===r){if(["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(t)>=0)return void(e?n.element.setAttribute(t,""):n.element.removeAttribute(t))}}else{const i=n.element.propertyByAttributeName[t];a=!i||i.nullable,o=i&&i.serialize?n.element[i.serialize](e):n.serialize(e,r,a)}"array"!==r&&"object"!==r||"[]"!==o&&"{}"!==o?void 0===o?(n.element.removeAttribute(t),n.element.shadowRoot&&n.element.$.root&&n.element.$.root.removeAttribute(t)):(n.element.setAttribute(t,o),n.element.shadowRoot&&n.element.$.root&&n.element.$.root.setAttribute(t,o)):n.element.removeAttribute(t)}serialize(t,e,r){if(void 0===e&&(e=g.Types.getType(t)),void 0===t||!r&&null===t)return;if(r&&null===t)return"null";if("string"===e)return t;if("boolean"===e||"bool"===e){if(!0===t||"true"===t||1===t||"1"===t)return"";if(!1===t||"false"===t||0===t||"0"===t)return}if("array"===e)return JSON.stringify(t);return["string","number","int","integer","float","date","any","function"].indexOf(e)>=0?t.toString():"object"===e?JSON.stringify(t):void 0}deserialize(t,e,r){const n="null"===t;if(void 0!==t&&(!n||r)){if(n&&r)return null;if("boolean"===e||"bool"===e)return null!==t;if("number"===e||"float"===e)return"NaN"===t?NaN:"Infinity"===t?1/0:"-Infinity"===t?-1/0:parseFloat(t);if("int"===e||"integer"===e)return"NaN"===t?NaN:"Infinity"===t?1/0:"-Infinity"===t?-1/0:parseInt(t);if("string"===e)return t;if("any"===e)return t;if("date"===e)return new Date(t);if("function"===e){if("function"==typeof window[t])return window[t]}else if("array"===e||"object"===e)try{const e=JSON.parse(t);if(e)return e}catch(r){if(window[t]&&"object"==typeof window[t])return window[t];if("array"===e&&t.indexOf("[")>=0){if(t.indexOf("{")>=0){let e=t.replace(/{/gi,"").replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim();e=e.split("},");for(let t=0;t<e.length;t++){let r={},n=e[t].trim().split(",");for(let t=0;t<n.length;t++){const e=n[t].split(":")[0].trim(),o=n[t].split(":")[1].trim();r[e]=o}e[t]=r}return e}return t.replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim().split(",")}}}}}class f{static get Ripple(){return o}static get Easings(){return a}}class g{static get Types(){return n}static get Core(){return i}static get Animation(){return f}static get Scroll(){return u}static get InputEvents(){return h}static Extend(t){return new p(t)}static Assign(t,e){if(t.indexOf(".")>=0){const r=t.split(".");return g[r[0]]||(g[r[0]]={}),void(g[r[0]][r[1]]=e)}g[t]=e}}const b=g.Extend(document);let v=null;document.addEventListener("click",()=>{l.start(),v&&clearTimeout(v),v=setTimeout(()=>{l.stop()},1e4)}),document.addEventListener("mouseenter",()=>{l.start()}),document.addEventListener("mouseleave",()=>{l.stop()});class y{}y.cache={};class w extends HTMLElement{static get properties(){return{animation:{value:"advanced",type:"string",allowedValues:["none","simple","advanced"]},unfocusable:{value:!1,type:"boolean"},disabled:{value:!1,type:"boolean"},dataContext:{value:null,reflectToAttribute:!1,type:"any"},debugMode:{value:!0,type:"boolean",reflectToAttribute:!1},locale:{value:"en",type:"string",reflectToAttribute:!1},localizeFormatFunction:{value:null,type:"any",reflectToAttribute:!1},messages:{value:{en:{propertyUnknownName:"Invalid property name: '{{name}}'!",propertyUnknownType:"'{{name}}' property is with undefined 'type' member!",propertyInvalidValue:"Invalid '{{name}}' property value! Actual value: '{{actualValue}}', Expected value: '{{value}}'!",propertyInvalidValueType:"Invalid '{{name}}' property value type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",methodInvalidValueType:"Invalid '{{name}}' method argument value type! Actual type: '{{actualType}}', Expected type: '{{type}}' for argument with index: '{{argumentIndex}}'!",methodInvalidArgumentsCount:"Invalid '{{name}}' method arguments count! Actual arguments count: '{{actualArgumentsCount}}', Expected at least: '{{argumentsCount}}' argument(s)!",methodInvalidReturnType:"Invalid '{{name}}' method return type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",elementNotInDOM:"Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.",moduleUndefined:"Module is undefined.",missingReference:"{{elementType}}: Missing reference to '{{files}}'.",htmlTemplateNotSuported:"{{elementType}}: Web Browser doesn't support HTMLTemplate elements.",invalidTemplate:"{{elementType}}: '{{property}}' property accepts a string that must match the id of an HTMLTemplate element from the DOM."}},reflectToAttribute:!1,inherit:!0,type:"object"},props:{value:null,reflectToAttribute:!1,isHierarchicalProperty:!0,type:"any"},readonly:{value:!1,type:"boolean"},renderMode:{value:"auto",type:"string",reflectToAttribute:!1,allowedValues:["auto","manual"]},rightToLeft:{value:!1,type:"boolean"},rethrowError:{value:!0,type:"boolean",reflectToAttribute:!1},theme:{value:window[e].Theme,type:"string"},visibility:{value:"visible",allowedValues:["visible","collapsed","hidden"],type:"string"},wait:{value:!1,type:"boolean"}}}getBindings(t,e){const r=this;let n=0,o={},a=(t=>{if(t instanceof HTMLElement)return r.parseAttributes(t);{let e=r.parseProperty(t.data?t.data.trim():null,"textContent",t);if(e)return r&&t.parentNode===r.$.content&&(e.value=""!==r.$.html?r.$.html:void 0,r.innerHTML=""),{textContent:e}}})(t);a&&(o.data=a),e||(o.mapping=[],e=o),t.getAttribute&&(o.nodeId=t.getAttribute("smart-id"),e&&a&&(e.mapping[o.nodeId]=a)),o.node=t,t.firstChild&&(o.children={});for(let a=t.firstChild;a;a=a.nextSibling)o.children[n++]=r.getBindings(a,e);return o}_addRemovePropertyBinding(t,e,r,n,o){if(!t||!e||!r)return;const a=this,i=a.bindings,s=r.getAttribute("smart-id"),l=t.indexOf("{{")>=0;let d=!1;(t=t.replace("{{","").replace("}}","").replace("[[","").replace("]]","")).indexOf("!")>=0&&(t=t.replace("!",""),d=!0);const m=a._properties[t],c={name:t,reflectToAttribute:m.reflectToAttribute,twoWay:l,type:m.type,not:d};if(o&&!n){const r={},n={name:t,targetPropertyName:e,reflectToAttribute:m.reflectToAttribute,twoWay:l,type:m.type,not:d};r[t]=n,i.mapping[s]=r}const h=function(t){for(let o in t){const i=t[o];if(i.nodeId===s){i.data||(i.data={}),n?(i.data[e]=null,delete i.data[e]):i.data[e]=c;break}if(i.children)h(i.children);else if(i.node&&i.node.children&&i.node===r.parentElement){const t=i.node;if(!t.firstChild)continue;i.children={};let e=0;for(let r=t.firstChild;r;r=r.nextSibling)i.children[e++]=a.getBindings(r);h(i.children)}}};h(i.children),n?delete a.boundProperties[t]:a.boundProperties[t]=!0,a.updateBoundNodes(t)}addPropertyBinding(t,e,r,n){this._addRemovePropertyBinding(t,e,r,!1,n)}removePropertyBinding(t,e,r,n){this._addRemovePropertyBinding(t,e,r,!0,n)}parseAttributes(t){const e=this;let r=void 0;for(let n=0;n<t.attributes.length;n++){const o=t.attributes[n],a=o.name,i=o.value;y.cache["toCamelCase"+a]||(y.cache["toCamelCase"+a]=g.Core.toCamelCase(a));const s=y.cache["toCamelCase"+a];if(a.indexOf("(")>=0){let n=a.substring(1,a.length-1);if(e&&!e.dataContext){e.templateListeners[t.getAttribute("smart-id")+"."+n]=i,t.removeAttribute(a);continue}{r||(r={});const t=i.substring(0,i.indexOf("("));r[s]={isEvent:!0,name:n,value:t};continue}}let l=e.parseProperty(i,a,t);l&&(r||(r={}),r[s]=l)}return r}parseProperty(t,e){if(!t||!t.length)return;const r=this;let n,o=t.length,a=0,i=0,s=0,l=!0;for(;i<o;){a=t.indexOf("{{",i);let e=t.indexOf("[[",i),r="}}";if(e>=0&&(a<0||e<a)&&(a=e,l=!1,r="]]"),s=a<0?-1:t.indexOf(r,a+2),s<0)return;n=n||{};let o=t.slice(a+2,s).trim();n.name=o,i=s+2}const d=n.name,m=r?r._properties[d]:null;if(n.twoWay=l,n.ready=!1,r&&(d.indexOf("::")>=0?r.boundProperties[d.substring(0,d.indexOf("::"))]=!0:r.boundProperties[d]=!0),m)n.type=m.type,n.reflectToAttribute=m.reflectToAttribute;else{["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(e)>=0?n.type="boolean":n.type="string",n.reflectToAttribute=!0}return n}updateTextNodes(){this.updateTextNode(this.shadowRoot||this,this.bindings,this)}updateTextNode(t,e,r){const n=this;if(!e)return;let o=0;for(let a=t.firstChild;a&&e.children;a=a.nextSibling)n.updateTextNode(a,e.children[o++],r);if(e&&e.data)for(let t in e.data){const n=e.data[t],o=n.name;"textContent"===t&&n.twoWay&&!n.updating&&void 0!==n.value&&(r[o]=n.value)}}updateBoundProperty(t,e){if(e.updating)return;const r=this;e.updating=!0,r[t]=e.value,e.updating=!1}updateBoundNodes(t){const e=this;if(e.updateBoundNode(e.shadowRoot||e,e.bindings,e,t),e.detachedChildren.length>0)for(let r=0;r<e.detachedChildren.length;r++){const n=e.detachedChildren[r],o=n.getAttribute("smart-id"),a=function(t){if(t.nodeId===o)return t;for(let e in t.children){const r=t.children[e];if((r.getAttribute?r.getAttribute("smart-id"):"")===o)return t;if(r.children){const t=a(r);if(t)return t}}return null},i=a(e.bindings);if(i)e.updateBoundNode(n,i,e,t,!0);else if(n.getAttribute&&e.bindings.mapping){const r=e,n=e.bindings;if(n)for(let o in n.mapping){const a=r.querySelector('[smart-id="'+o+'"]');if(a){const i=n.mapping[o];e.updateBoundData(a,i,r,t)}}}}}updateBoundMappedNodes(){const t=this,e=t.bindings,r=t;if(e.mapping)for(let n in e.mapping){let o=r.querySelector('[smart-id="'+n+'"]');if(r.shadowRoot&&(o=r.querySelector('[id="'+n+'"]'),o||(o=r.shadowRoot.querySelector('[id="'+n+'"]')||r.shadowRoot.querySelector('[smart-id="'+n+'"]'))),o){const a=e.mapping[n];t.updateBoundData(o,a,r)}else if(r.getAttribute("aria-controls")){let a=document.getElementById(r.getAttribute("aria-controls"));if(!a&&r.shadowRoot&&(a=r.shadowRoot.getElementById(r.getAttribute("aria-controls"))),o=a.querySelector('[smart-id="'+n+'"]'),o){const a=e.mapping[n];t.updateBoundData(o,a,r)}}}}updateBoundNode(t,e,r,n,o){const a=this;if(!e)return;let i=0;if(o){if(o&&!e.data)for(let s=t.firstChild;s&&e.children;s=s.nextSibling)if(s.getAttribute){const t=s.getAttribute("smart-id"),o=function(){for(let r in e.children)if(e.children[r].nodeId===t)return e.children[r]}();a.updateBoundNode(s,o,r,n),i++}else a.updateBoundNode(s,e.children[i++],r,n,o)}else for(let o=t.firstChild;o&&e.children;o=o.nextSibling)if(o.getAttribute){const t=o.getAttribute("smart-id"),s=function(){for(let r in e.children)if(e.children[r].nodeId===t)return e.children[r]}();a.updateBoundNode(o,s,r,n),i++}else a.updateBoundNode(o,e.children[i++],r,n);if(!e||!e.data)return;const s=e.data;a.updateBoundData(t,s,r,n)}updateBoundData(t,e,r,n){const o=this;for(let a in e){const i=e[a];let s=i.name;if(!i.updating&&(s.indexOf("::")>=0&&(s=s.substring(0,s.indexOf("::"))),void 0===n||n===s)){if(s.indexOf("(")>=0){let t=s.substring(s.indexOf("("));const e=s.substring(0,s.indexOf("("));if(t=t.substring(1,t.length-1),t=t.replace(/ /gi,""),t=t.split(","),t.length>0&&""!==t[0]){let n=[];for(let e=0;e<t.length;e++)n.push(r[t[e]]);i.value=r[e].apply(r,n)}else i.value=r[e]();i.type=typeof i.value}else i.value=r[s];if("innerHTML"===s){if(t[a].toString().trim()!==r[s].toString().trim()){if(window.smartBlazor&&t[a].indexOf("\x3c!--")>=0){(i.ready||r._properties[s].defaultValue!==i.value)&&(t[a]=i.value.toString());continue}(i.ready||r._properties[s].defaultValue!==i.value)&&(t[a]=i.value.toString().trim())}}else i.not?(t[a]=!i.value,i.targetPropertyName&&(t[i.targetPropertyName]=!i.value)):(t[a]=i.value,i.targetPropertyName&&(t[i.targetPropertyName]=i.value));if(t.$&&t.$.isNativeElement){y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const e=y.cache["toDash"+a],r=t.$.getAttributeValue(e,i.type);!i.reflectToAttribute||r===i.value&&i.ready||t.$.setAttributeValue(e,i.value,i.type),i.reflectToAttribute||t.$.setAttributeValue(e,null,i.type)}if(!i.ready){if(t.$&&t.$.isCustomElement){y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const e=y.cache["toDash"+a];t._properties||(t._beforeCreatedProperties=t._properties=t.propertyByAttributeName=[]),t._properties[a]||(t._properties[a]={attributeName:e},t._beforeCreatedProperties&&(t._beforeCreatedProperties[a]=t._properties[a]),t.propertyByAttributeName[e]=t._properties[a]);const r=t._properties[a];r.isUpdating=!0,i.reflectToAttribute&&(i.not?t.$.setAttributeValue(r.attributeName,!i.value,i.type):t.$.setAttributeValue(r.attributeName,i.value,i.type)),i.reflectToAttribute||t.$.setAttributeValue(r.attributeName,null,i.type),r.isUpdating=!1}if(i.twoWay){const e=function(e){if(i.value=e,t.$&&t.$.isNativeElement){y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const e=y.cache["toDash"+a],r=t.$.getAttributeValue(e,i.type);i.reflectToAttribute&&r!==i.value&&t.$.setAttributeValue(e,i.value,i.type),i.reflectToAttribute||t.$.setAttributeValue(e,null,i.type)}};if(i.name.indexOf("::")>=0){const r=i.name.indexOf("::"),n=i.name.substring(r+2);o["$"+t.getAttribute("smart-id")].listen(n,(function(){e(t[a]);const r=i.name.substring(0,i.name.indexOf("::"));o.updateBoundProperty(r,i)}))}if(t.$&&t.$.isCustomElement){t._properties[a]&&(t._properties[a].notify=!0),y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const r=y.cache["toDash"+a];o["$"+t.getAttribute("smart-id")].listen(r+"-changed",(function(t){let r=t.detail;e(r.value);const n=o.context;t.context!==document&&(o.context=o),o.updateBoundProperty(i.name,i),o.context=n}))}}}i.ready=!0}}}static clearCache(){this.cache={}}addMessages(t,e){Object.assign(this.messages[t],e)}localize(t,e){const r=this;if(!r.messages||!r.messages[r.locale])return;let n=r.messages[r.locale][t];if(""===n)return"";if(!n){const n=r.messages.en;if(n){let r=n[t];if(r){for(let t in e){let n=e[t];r=r.replace(new RegExp("{{"+t+"}}","g"),n)}return r}return t}}const o=n;for(let t in e){let r=e[t];n=n.replace(new RegExp("{{"+t+"}}","g"),r)}if(r.localizeFormatFunction){const a=r.localizeFormatFunction(o,n,e,t);if(void 0!==a)return a}return n}static get requires(){return{}}static get listeners(){return{"theme-changed":function(t){this.theme=t.detail.newValue}}}static get methods(){return{}}get classNamesMap(){return{animation:"smart-animate",rippleAnimation:"smart-ripple"}}get hasAnimation(){return"none"!==this.animation}get hasRippleAnimation(){return"none"!==this.animation&&"advanced"===this.animation}static get modules(){return window[e].Modules}get properties(){const t=this;return t._properties||(t._properties=[]),t._properties}get parents(){const t=this;let r=[],n=t.parentNode;for(;n&&9!==n.nodeType;)n instanceof HTMLElement==!0&&r.push(n),n=n.parentNode;const o=t.getRootNode();if(o.host){const t=t=>{let e=[t],r=t.parentNode;for(;r&&9!==r.nodeType;)r instanceof HTMLElement==!0&&e.push(r),r=r.parentNode;return e};r=r.concat(t(o.host))}return window[e].EnableShadowDOM&&t.isInShadowDOM&&t.shadowParent&&(r=r.concat(t.shadowParent.parents)),r}log(t){this._logger("log",t)}warn(t){this._logger("warn",t)}error(t){this._logger("error",t)}_logger(t,e){if(this.debugMode){const r=e instanceof Error?e.message:e.toString();console[t](r)}if(this.rethrowError&&"error"===t)throw e}get focused(){return this.contains(document.activeElement)}template(){return"<div></div>"}registered(){const t=this;t.onRegistered&&t.onRegistered()}created(){const t=this;t.isReady=!1,t._initElement(t),t._setModuleState("created"),t.onCreated&&t.onCreated()}completed(){const t=this;t.isCompleted=!0,t._onCompleted&&t._onCompleted(),t.onCompleted&&t.onCompleted()}whenReady(t){const e=this;e.isCompleted?t():(e.whenReadyCallbacks||(e.whenReadyCallbacks=[]),e.whenReadyCallbacks.push(t))}whenRendered(t){const e=this;e.isRendered?t():(e.whenRenderedCallbacks||(e.whenRenderedCallbacks=[]),e.whenRenderedCallbacks.push(t))}addThemeClass(){const t=this;""!==t.theme&&t.classList.add("smart-"+t.theme)}addDefaultClass(){this.classList.add(e.toLowerCase()+"-element"),this.classList.add(this.nodeName.toLowerCase())}_renderShadowRoot(){const t=this;if(t.shadowRoot){t.$.root.classList.add(t.nodeName.toLowerCase());for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e];"class"===r.name||"id"===r.name||"style"===r.name||"tabindex"===r.name||r.name.indexOf("aria")>=0||t.$.root.setAttribute(r.name,r.value)}for(let e=0;e<t.classList.length;e++){const r=t.classList[e];"smart-element-init"!==r&&"smart-element"!==r&&"smart-hidden"!==r&&"smart-visibility-hidden"!==r&&t.$.root.classList.add(r)}}}render(){const t=this;if(!t.isRendered&&(t.isRendered=!0,t.isRendering=!1,t.context=document,t._renderShadowRoot(),t.whenRenderedCallbacks)){for(let e=0;e<t.whenRenderedCallbacks.length;e++)t.whenRenderedCallbacks[e]();t.whenRenderedCallbacks=[]}t.onRender&&t.onRender(),t.disabled&&t.setAttribute("aria-disabled",!0),t.readonly&&-1!==["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(t.getAttribute("role"))&&t.setAttribute("aria-readonly",!0)}ready(){const t=this;if(t._setId(),t.addThemeClass(),t.addDefaultClass(),"collapsed"===t.visibility?t.classList.add("smart-hidden"):"hidden"===t.visibility&&t.classList.add("smart-visibility-hidden"),t.dataContext&&t.applyDataContext(),t.onReady&&t.onReady(),t.shadowRoot&&Smart(t._selector)){if(Smart(t._selector).styleUrls){const e=Smart(t._selector).styleUrls;for(let r=0;r<e.length;r++)t.importStyle(e[r])}if(Smart(t._selector).styles){const e=document.createElement("style");e.innerHTML=Smart(t._selector).styles,t.shadowRoot.insertBefore(e,t.shadowRoot.firstChild)}}Smart(t._selector)&&Smart(t._selector).ready&&Smart(t._selector).ready()}_setId(){const t=this;if(!t.id){const e=t.elementName;t.id=e.slice(0,1).toLowerCase()+e.slice(1)+Math.floor(65536*(1+Math.random())).toString(16).substring(1)}}checkLicense(){const t=this;"Evaluation"===window[e].License&&-1===window.location.hostname.indexOf("htmlelements")&&(t.logWatermark(),t.logLicense(),window[e].License="")}logWatermark(){const t=document.createElement("a");t.href="https://www.htmlelements.com/",t.innerHTML="https://www.htmlelements.com/",t.style.position="absolute",t.style.right="5px",t.style.bottom="5px",t.style.color="#fff",t.style.padding="20px",t.style.borderRadius="5px",t.style.background="#0C3D78",t.style.cursor="pointer",t.style.zIndex="999999",t.style.display="block",t.style.fontSize="24px",t.style.textDecoration="none",t.style.fontWeight="bold",t.style.opacity=0,t.style.transition="opacity .35s ease-in-out",t.id="watermark",document.getElementById("watermark")||setTimeout(()=>{document.getElementById("watermark")||(document.body.appendChild(t),setTimeout(()=>{t.style.opacity=1}),setTimeout(()=>{t.style.opacity=0,setTimeout(()=>{t.parentNode.removeChild(t)},350)},6e3))},1e3)}logLicense(){console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("*jQWidgets License Key Not Found."),console.log("*This is an EVALUATION only Version, it is NOT Licensed for software projects intended for PRODUCTION."),console.log("*if you want to hide this message, please send an email to: sales@jqwidgets.com for a license."),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************")}get _selector(){const t=this;return t.id?"#"+t.id:t.classList.length>0?"."+t.classList[0]:""}applyDataContext(t){const e=this;let r="string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext;if(t&&(r=t,e.dataContext=t),r){if(!r._uid){r._uid=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),r._properties=[];for(let t in r){const n=r[t];"function"!=typeof n&&"_properties"!==t&&"_uid"!==t&&(r._properties[t]=n,Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:()=>r._properties[t],set(n){const o=r._properties[t];r._properties[t]=n;let a=[];a[t]={oldValue:o,value:n},a.length++,e.updatingDataContext=!0,b.fireEvent("dataContextPropertyChanged",{dataContext:r,properties:a},{bubbles:!1,cancelable:!0}),e.updatingDataContext=!1}}))}}if(e.dataContextProperties=e.parseAttributes(e),e.dataContextPropertiesMap={},e.dataContextListeners={},e.dataContextProperties){e.updatingDataContext=!0;for(let t in e.dataContextProperties){const n=e.dataContextProperties[t],o=n.name;if(n.propertyName=t,e.dataContextPropertiesMap[o]=t,y.cache["toDash"+t]||(y.cache["toDash"+t]=g.Core.toDash(o)),n.isEvent){const t=n.value;e.dataContextListeners[o]&&e.removeEventListener(o,e.dataContextListeners[o]),e.dataContextListeners[o]=function(e){r[t](e)},e.addEventListener(o,e.dataContextListeners[o])}if(o.indexOf(".")>=0){const n=o.split(".");let a=r[n[0]];for(let t=1;t<n.length;t++)a=a[n[t]];void 0!==a&&(e[t]=a)}else e[t]=r[o]}e.dataContextPropertyChangedHandler=function(t){const r=t.detail.properties;if(t.detail.dataContext===("string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext))for(let t in r){const n=e.dataContextPropertiesMap[t],o=e.context;n&&(e.context=document,e[n]=r[t].value,e.context=o)}},b.listen("dataContextPropertyChanged",e.dataContextPropertyChangedHandler),e.updatingDataContext=!1}else e.dataContextProperties=null}else{e.dataContextProperties=null;const t=function(){("string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext)&&(e.applyDataContext(),window.removeEventListener("load",t))};window.addEventListener("load",t)}}updateDataContextProperty(t){const e=this,r="string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext,n=e.dataContextProperties[t];if(!e.updatingDataContext&&n.twoWay){const o=n.name;if(o.indexOf(".")>=0){const n=o.split(".");let a=r[n[0]];for(let t=1;t<n.length;t++)a=a[n[t]];void 0!==a&&(a=e[t],d[r._uid]&&(d[r._uid][t]=a))}else r[o]=e[t],d[r._uid]&&(d[r._uid][t]=r[o])}}static get version(){return window[e].Version}initProperties(){const t=this;if(Smart(t._selector)&&Smart(t._selector).properties&&(t._initProperties=Smart(t._selector).properties),t.hasAttribute("props")&&!t.props?t._initProperties=window[t.getAttribute("props")]:t.props&&(t._initProperties=t.props),t._initProperties){const e=Object.keys(t._initProperties);for(let r=0;r<e.length;r++){const n=e[r],o=t._initProperties[n];if(void 0!==o){if(o.constructor===Smart.ObservableArray||o instanceof Smart.ObservableArray){t[n]=o.toArray();continue}if(o.constructor===Smart.DataAdapter||"smartDataAdapter"===o.constructor.name||"object"==typeof o&&Smart.DataAdapter&&o instanceof Smart.DataAdapter||o instanceof Smart.Observable||o.constructor===Smart.Observable||"object"!=typeof o||g.Types.isArray(o)||o instanceof Date){if(void 0===t[n]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(n)){const e=t.localize("propertyUnknownName",{name:n});t.log(e)}t[n]=o;continue}}if("messages"!==n)if("dataSourceMap"!==n&&"rowCSSRules"!==n){if(o&&"object"==typeof o){const e=function(r,n){const o=Object.keys(r);for(let a=0;a<o.length;a++){const i=o[a],s=r[i],l=t._properties[n+"_"+i];if(l&&null===l.value){if(void 0===t[n+"_"+i]){const e=t.localize("propertyUnknownName",{name:n+"_"+i});t.log(e)}t[n+"_"+i]=s}else if("object"==typeof s&&!g.Types.isArray(s)&&s&&s.constructor!==Date)e(s,n+"_"+i);else{if(void 0===t[n+"_"+i]){const e=t.localize("propertyUnknownName",{name:n+"_"+i});t.log(e)}t[n+"_"+i]=s}}};e(o,n)}}else t[n]=o;else t[n]=Object.assign(t[n],o)}}}setProperties(t){const e=this,r=Object.keys(t);for(let n=0;n<r.length;n++){const o=r[n],a=t[o];if(a.constructor===Smart.ObservableArray||a instanceof Smart.ObservableArray)e[o]=a.toArray();else if(a.constructor===Smart.DataAdapter||"smartDataAdapter"===a.constructor.name||"object"==typeof a&&Smart.DataAdapter&&a instanceof Smart.DataAdapter||a instanceof Smart.Observable||a.constructor===Smart.Observable||"object"!=typeof a||g.Types.isArray(a)||a instanceof Date){if(void 0===e[o]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(o))continue;const t=e._properties[o];"int"===t.type||"number"===t.type&&"string"==typeof subPropertyValue?"int"===t.type?e[o]=parseInt(a):e[o]=parseFloat(a):e[o]=a}else if("messages"!==o&&"dataSourceMap"!==o){if("object"==typeof a){const t=function(r,n){const o=Object.keys(r);for(let a=0;a<o.length;a++){const i=o[a],s=r[i],l=e._properties[n+"_"+i];if(l&&null===l.value){if(void 0===e[n+"_"+i])continue;const t=e._properties[n+"_"+i];"int"===t.type||"number"===t.type&&"string"==typeof s?"int"===t.type?e[n+"_"+i]=parseInt(s):e[n+"_"+i]=parseFloat(s):e[n+"_"+i]=s}else if("object"==typeof s&&!g.Types.isArray(s)&&s&&s.constructor!==Date)t(s,n+"_"+i);else{if(void 0===e[n+"_"+i])continue;const t=e._properties[n+"_"+i];"int"===t.type||"number"===t.type&&"string"==typeof s?"int"===t.type?e[n+"_"+i]=parseInt(s):e[n+"_"+i]=parseFloat(s):e[n+"_"+i]=s}}};t(a,o)}}else e[o]=a}}setup(){const t=this;if(t.context=this,t.isReady&&!t.isCompleted)return;if(t.isReady)return t._setModuleState("attached"),t.isAttached=!0,t.attached(),t._handleListeners("listen"),void(t.context=document);t.ownerElement&&t.ownerElement.detachedChildren.indexOf(t)>=0&&t.ownerElement.detachedChildren.splice(t.ownerElement.detachedChildren.indexOf(t),1),t.isReady=!0,t.methods=t.getStaticMember("methods"),t.initProperties(),i.isMobile&&t.classList.add("smart-mobile");for(let e=0;e<t.attributes.length;e+=1){const r=t.propertyByAttributeName[t.attributes[e].name];if(!r)continue;let n=t.$.getAttributeValue(r.attributeName,r.type);const o=n?n.toString():"";if(!(o.indexOf("{{")>=0||o.indexOf("[[")>=0)&&(("object"===r.type||"array"===r.type||!(t.attributes[e].value.indexOf("{{")>=0||t.attributes[e].value.indexOf("[[")>=0))&&void 0!==n&&r.value!==n)){const o=g.Types.getType(n),a=t.attributes[e].value;if(("any"===r.type||"object"===r.type)&&""+t[r.name]===n)continue;if("array"===r.type&&t[r.name]&&JSON.stringify(t[r.name])===n)continue;if("number"===o&&isNaN(n)&&"NaN"!==a&&"Infinity"!==a&&"-Infinity"!==a){const e=t.localize("propertyInvalidValueType",{name:r.name,actualType:"string",type:r.type});t.log(e)}r.isUpdatingFromAttribute=!0,t[r.name]=n,r.isUpdatingFromAttribute=!1}}for(let e in t._properties){const r=t._properties[e];if("innerHTML"===e&&r.value===r.defaultValue&&(r.value=r.defaultValue=g.Core.html(t)),"boolean"!==r.type&&"bool"!==r.type||"false"===t.getAttribute(r.attributeName)&&(r.isUpdating=!0,t.setAttribute(r.attributeName,""),r.isUpdating=!1),r.defaultReflectToAttribute&&r.reflectToAttribute){if(r.defaultReflectToAttribute&&r.defaultReflectToAttributeConditions){let e=!0;for(let n=0;n<r.defaultReflectToAttributeConditions.length;n++){const o=r.defaultReflectToAttributeConditions[n];let a,i;for(let t in o)a=t,i=o[t];t._properties[a]&&t._properties[a].value!==i&&(e=!1)}if(!e)continue}r.isUpdating=!0,t.$.setAttributeValue(r.attributeName,r.value,r.type),r.isUpdating=!1}}const r=[];if(t.children.length>0)for(let e=0;e<t.children.length;e++){const n=t.children[e];g.Extend(n).isCustomElement&&r.push(n)}t.applyTemplate(),t.complete=function(){if(!t.templateBindingsReady){const e=t=>{t.templateBindingsReady||(t.templateBindingsReady=!0,t.updateTextNodes(),t.updateBoundNodes())};if(t.ownerElement){let r=t.ownerElement,n=[];for(;r;)n.push(r),r=r.ownerElement;for(let t=n.length-1;t>=0;t--)e(n[t]);e(t)}else e(t)}const e=()=>{if(t._setModuleState("ready"),t.ready(),"auto"!==t.renderMode||t.isRendered||t.render(),t.isAttached=!0,t._setModuleState("attached"),t.attached(),t._handleListeners("listen"),t.isHidden||0!==t.offsetWidth&&0!==t.offsetHeight||(t.isHidden=!0),t.completed(),t.isRendered&&(t.context=document),t.whenReadyCallbacks){for(let e=0;e<t.whenReadyCallbacks.length;e++)t.whenReadyCallbacks[e]();t.whenReadyCallbacks=[]}};if(t.wait)t.classList.add("smart-visibility-hidden");else if(t.classList.contains("smart-async"))requestAnimationFrame(()=>{e()});else{const r=t.shadowParent;t.shadowParent=null;const n=t.parents;if(t.shadowParent=r,0===n.length)return;const o=()=>{let e=t.ownerElement,r=[];for(;e;)r.push(e),e=e.ownerElement;for(let t=r.length-1;t>=0;t--)r[t].updateBoundMappedNodes()};t.ownerElement&&"HTML"!==n[n.length-1].nodeName?t.getRootNode().host?e():t.ownerElement&&"HTML"===t.ownerElement.parents[t.ownerElement.parents.length-1].nodeName?(o(),e()):t.checkIsInDomInterval=setInterval(()=>{const r=t.parents;"HTML"===r[r.length-1].nodeName&&(clearInterval(t.checkIsInDomInterval),o(),e())},100):e()}};let n=[].slice.call(t.querySelectorAll("[smart-id]")).concat(r);if(window[e].EnableShadowDOM&&!0!==t.isInShadowDOM&&(n=[].slice.call(t.shadowRoot.querySelectorAll("[smart-id]")).concat(r)),0===n.length)t.complete();else{t._completeListeners=0;for(let e=0;e<n.length;e++){const r=n[e];if(g.Extend(r).isCustomElement){const e=function(){t._completeListeners--,0===t._completeListeners&&(t.complete(),delete t._completeListeners)}.bind(t);r.isCompleted||r.isUtilityElement||!0===r.wait||(t._completeListeners++,r._onCompleted||(r.completeHandlers=[],r._onCompleted=function(){for(let t=0;t<r.completeHandlers.length;t++)r.completeHandlers[t]()}),r.completeHandlers.push(e))}}0===t._completeListeners&&t.complete()}}visibilityChangedHandler(){const t=this;t.isReady&&requestAnimationFrame(()=>{0===t.offsetWidth||0===t.offsetHeight?t.isHidden=!0:(t.isHidden=!1,t.$.fireEvent("resize",t,{bubbles:!1,cancelable:!0}))})}attributeChangedCallback(t,e,r){const n=this,o=n.propertyByAttributeName[t];if("class"!==t&&"style"!==t||n.visibilityChangedHandler(),o||n.attributeChanged(t,e,r),n.onAttributeChanged&&n.onAttributeChanged(t,e,r),!o||o&&o.isUpdating)return;let a=n.$.getAttributeValue(o.attributeName,o.type);void 0!==r&&n[o.name]!==a&&(o.isUpdatingFromAttribute=!0,n[o.name]=void 0!==a?a:n._properties[o.name].defaultValue,o.isUpdatingFromAttribute=!1)}attributeChanged(t,e,r){}set hasStyleObserver(t){const e=this;void 0===e._hasStyleObserver&&(e._hasStyleObserver=t),t?l.watch(e):l.unwatch(e)}get hasStyleObserver(){const t=this;return void 0===t._hasStyleObserver||t._hasStyleObserver}attached(){const t=this;t.hasStyleObserver&&l.watch(t),t.onAttached&&t.onAttached(),Smart(t._selector)&&Smart(t._selector).attached&&Smart(t._selector).attached()}detached(){const t=this;t.hasStyleObserver&&l.unwatch(t),t._setModuleState("detached"),t.isAttached=!1,t.ownerElement&&-1===t.ownerElement.detachedChildren.indexOf(t)&&t.ownerElement.detachedChildren.push(t),t._handleListeners("unlisten"),t.onDetached&&t.onDetached(),Smart(t._selector)&&Smart(t._selector).detached&&Smart(t._selector).detached(),m&&m[t._selector]&&delete m[t._selector]}propertyChangedHandler(t,e,r){const n=this;e!==r&&("theme"===t&&(""!==e&&n.classList.remove("smart-"+e),""!==r&&n.classList.add("smart-"+r)),"visibility"===t?("collapsed"===e?n.classList.remove("smart-hidden"):"hidden"===e&&n.classList.remove("smart-visibility-hidden"),"collapsed"===r?n.classList.add("smart-hidden"):"hidden"===r&&n.classList.add("smart-visibility-hidden")):("disabled"===t||"readonly"===t)&&n._ariaPropertyChangedHandler(t,r),n.propertyChanged&&n.propertyChanged(t,e,r))}_ariaPropertyChangedHandler(t,e){const r=this;"readonly"===t&&-1===["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(r.getAttribute("role"))||(e?r.setAttribute("aria-"+t,!0):r.removeAttribute("aria-"+t))}_handleListeners(t){const e=this,r=e.tagName.toLowerCase(),n=n=>{for(let o in n){const a=o.split(".");let i=a[0],s=e.$;if(a[1])if(i=a[1],s=e["$"+a[0]],"document"===a[0]){let t=e.smartId;""===t&&(t=g.Core.toCamelCase(r)),i=i+"."+t}else e.smartId&&(i=i+"."+e.smartId+"_"+e.parents.length);else e.smartId&&(i=i+"."+e.smartId);const l=n[o],d=function(t){const r=e.context;e.context=e,e[l]&&e[l].apply(e,[t]),e.context=r};s&&s[t](i,d)}};n(e.getStaticMember("listeners")),n(e.templateListeners),Smart(e._selector)&&Smart(e._selector).properties&&n(Smart(e._selector).listeners)}parseTemplate(){const e=this,n=e.template(),o=document.createDocumentFragment();if(t[e.nodeName]&&!r)return t[e.nodeName].cloneNode(!0);if(""===n)return null;let a=document.createElement("div");o.appendChild(a),a.innerHTML=n;let i=a.childNodes;a.parentNode.removeChild(a);for(let t=0;t<i.length;t++)o.appendChild(i[t]);return t[e.nodeName]=o,r?o:o.cloneNode(!0)}applyTemplate(){const t=this,e=t.parseTemplate();if(!e)return;if(!e.hasChildNodes)return;const r=e.childNodes[0],n=(e,r)=>{t["$"+e]=r.$=g.Extend(r),t.$[e]=r,r.ownerElement=t};let o=r;if(r.getElementsByTagName("content").length>0){let t=r.getElementsByTagName("content")[0];o=t.parentNode,o.removeChild(t)}else{const t=e.querySelectorAll("[inner-h-t-m-l]");t&&t.length>0&&(o=t[0])}t.$.template="template"===r.nodeName.toLowerCase()?r:r.querySelector("template");let a=e.querySelectorAll("[id]");0===a.length&&(a=e.querySelectorAll("*")),n("root",r),n("content",o),t.$.html=t.innerHTML.toString().trim();for(let e=0;e<a.length;e+=1){let r=a[e];""===r.id&&(r.id="child"+e),n(r.id,r),r.setAttribute("smart-id",r.id),t.shadowRoot?r.shadowParent=t:r.removeAttribute("id")}for(!1!==t.hasTemplateBindings?t.bindings=t.getBindings(e):t.bindings=[],t.$root.addClass("smart-container");t.childNodes.length;)o.appendChild(t.firstChild);if(t.appendTemplate(e),t.$.template){const e=document.createElement("div");e.classList.add("smart-template-container"),t.$.templateContainer=e,t.$.template.parentNode.insertBefore(e,t.$.template),t.refreshTemplate()}}refreshTemplate(){const t=this;if(!t.$.templateContainer)return;t.templateDetached(t.$.templateContainer);const e=t.$.template.content.cloneNode(!0);t.templateBindings=t.getBindings(e),t.templateProperties=[];let r=document.createDocumentFragment();const n=function(e,r,o){for(let a in e){const i=e[a],s=i.node.cloneNode();r.appendChild(s);let l=[],d=!1;if(i.data)for(let e in i.data){const n=i.data[e],a=n.name;if(t.templateProperties[a]=!0,s.removeAttribute(g.Core.toDash(e)),"*items"===e)l=t[a],d=!0;else if(a.indexOf("item.")>=0&&void 0!==o)n.value=o[a.substring("item.".length)],s[e]=n.value;else if(a.indexOf("item")>=0&&void 0!==o)n.value=o,s[e]=n.value;else if("*if"===e)if(a.indexOf("(")>=0){let e,n=a.substring(a.indexOf("("));const o=a.substring(0,a.indexOf("("));if(n=n.substring(1,n.length-1),n=n.replace(/ /gi,""),n=n.split(","),n.length>0&&""!==n[0]){let r=[];for(let e=0;e<n.length;e++)r.push(t[n[e]]);e=t[o].apply(t,r)}else e=t[o]();!1===e&&r.removeChild(s)}else t[a]||r.removeChild(s);else t.updateBoundNode(s,i,t,a)}if(l.length>0||d){for(let t=0;t<l.length;t++)i.children&&n(i.children,s,l[t]);if("number"==typeof l)for(let t=0;t<l;t++)i.children&&n(i.children,s,t)}else i.children&&n(i.children,s,o)}};n(t.templateBindings.children,r),t.$.templateContainer.innerHTML="",t.$.templateContainer.appendChild(r),t.templateAttached(t.$.templateContainer)}templateAttached(){}templateDetached(){}appendTemplate(t){this.appendChild(t)}defineElementModules(){const t=this,e=t.constructor.prototype;if("BaseElement"===e.elementName){e.modules=t.constructor.modules;const r=e.modules;for(let e=0;e<r.length;e+=1)t.addModule(r[e])}else{const r=e.modules;if(!r)return;for(let e=0;e<r.length;e+=1){const n=r[e],o=n.prototype;t.defineElementMethods(o.methodNames,o),t.defineElementProperties(n.properties)}}}watch(t,e){const r=this;r._watch=null!==t&&null!==e?{properties:t,propertyChangedCallback:e}:null}unwatch(){this._watch=null}set(t,e,r){const n=this,o=n.context;n.context=!0===r?document:n,n[t]=e,n.context=o}get(t){return this[t]}_setModuleState(t,e){const r=this,n="is"+t.substring(0,1).toUpperCase()+t.substring(1),o="on"+t.substring(0,1).toUpperCase()+t.substring(1);for(let a=0;a<r.modulesList.length;a++){const i=r.modulesList[a];i[n]=!0,i[t]&&i[t](e),i[o]&&i[o](e)}}addModule(t,e){const r=this;if(!t)return;const n=r.modules.slice(0),o=t.prototype,a=Object.getPrototypeOf(t);if(a.name&&a.name!==t.name&&r.addModule(a),!t.moduleName&&t.name&&(t.moduleName=t.name),-1===n.findIndex(e=>t.moduleName===e.moduleName)&&n.push(t),r.defineModule(t),r.defineElementMethods(o.methodNames,o),r.defineElementProperties(t.properties),r.constructor.prototype.modules=n,e)for(let e in Smart.Elements.tagNames){const n=Smart.Elements.tagNames[e];let o=Object.getPrototypeOf(n),a=[];for(;o!==HTMLElement;)a.push(o.prototype),o=Object.getPrototypeOf(o);a.indexOf(r)>=0&&n!==r&&n.prototype.addModule(t)}}defineModule(t){if(t.isDefined)return;t.prototype._initModule=function(t){this.ownerElement=t};const e=t.properties||{},r=Object.keys(e),n=Object.getOwnPropertyNames(t.prototype);t.prototype.methodNames=n;for(let n=0;n<r.length;n+=1){const o=r[n],a=e[o];Object.defineProperty(t.prototype,o,{configurable:!1,enumerable:!0,get(){return this.ownerElement?this.ownerElement[o]:a.value},set(t){this.ownerElement[o]=t}})}t.isDefined=!0}getStaticMember(t,r){const n=window[e][this.elementName],o=n[t];r||(r="");let a="array"===r?[]:"string"===r?"":{},i=Object.getPrototypeOf(n),s=[];for(;i[t];)s.push(i[t]),i=Object.getPrototypeOf(i);for(let t=s.length-1;t>=0;t--)if("array"===r)for(let e=0;e<s[t].length;e++)-1===a.indexOf(s[t][e])&&a.push(s[t][e]);else"string"===r?-1===a.indexOf(s[t])&&(a+=s[t]):a=g.Core.assign(a,s[t]);if("array"===r){for(let t=0;t<o.length;t++)-1===a.indexOf(o[t])&&a.push(o[t]);return a}return"string"===r?(-1===a.indexOf(o)&&(a+=o),a):g.Core.assign(a,o)}defineElementHierarchicalProperties(t,e){const r=this,n=[];!function(t){const r=Object.keys(t);for(let o=0;o<r.length;o++){const a=r[o];if("messages"===a)continue;const i=t[a],s=Object.keys(i),l=s.indexOf("value")>=0&&s.indexOf("type")>=0&&"object"==typeof i.value;if("propertyObject"===i.type||l){const t=function(r,o){if(!r.value)return;const a=Object.keys(r.value);for(let i=0;i<a.length;i++){const s=a[i],l=r.value[s],d=o+"_"+s;if("object"!=typeof l||null===l)break;const m=Object.keys(l);if(!(m.indexOf("value")>=0&&m.indexOf("type")>=0))break;if("array"!==r.type&&(r.isHierarchicalProperty=!0),l.parentPropertyName=o,e){const t=e._properties[d];if(r.value.hasOwnProperty(s)){if(t.isDefined)continue;delete r.value[s]}t.isDefined=!0,Object.defineProperty(r.value,s,{configurable:!1,enumerable:!0,get:()=>e._properties[d].value,set(t){e.updateProperty(e,e._properties[d],t)}})}n[d]||(n[d]=l,n.length++),("propertyObject"===l.type||"object"==typeof l.value&&"array"!==l.type)&&t(e?e._properties[d]:l,d)}};t(i,a)}}}(t),n.length>0&&!e&&r.defineElementProperties(n)}defineElement(){const t=this.constructor.prototype,e=this.getStaticMember("properties"),r=Object.getOwnPropertyNames(t);t.extendedProperties={},t.boundProperties={},t.templateListeners={},this.defineElementModules(),this.defineElementMethods(r,t),this.defineElementProperties(e),this.defineElementHierarchicalProperties(this.extendedProperties),t._initElement=function(){const e=this,r=t.extendedProperties,n=Object.keys(r),o=e.modules;e.$=g.Extend(e),e.$document=b,e.smartId=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),e.isCreated||(e.modulesList=[],e._properties=[],e._beforeCreatedProperties&&(e._properties=e._beforeCreatedProperties,delete e._beforeCreatedProperties),e.detachedChildren=[],e.propertyByAttributeName=[]);for(let t=0;t<o.length;t+=1){let r=new(0,o[t]);r._initModule(e),e.modulesList.push(r)}for(let t=0;t<n.length;t+=1){const o=n[t],a=r[o];let i=a.value;if(e._properties[o]){if(void 0!==e._properties[o].notify)continue;delete e._properties[o]}if(C&&"innerHTML"===o&&delete e[o],-1===window.navigator.userAgent.indexOf("PhantomJS")&&e.hasOwnProperty(o)&&(i=e[o],delete e[o]),"array"===a.type&&null!=i&&(i=i.slice(0)),"object"===a.type&&null!=i&&(i=Array.isArray(i)?i.slice(0):Object.assign({},i)),e._properties[o]={name:o,notify:a.notify,allowedValues:a.allowedValues,type:a.type,nullable:a.nullable,reflectToAttribute:a.reflectToAttribute,defaultReflectToAttribute:a.defaultReflectToAttribute,defaultReflectToAttributeConditions:a.defaultReflectToAttributeConditions,value:i,readOnly:a.readOnly,defaultValue:i,attributeName:a.attributeName,observer:a.observer,inherit:a.inherit,extend:a.extend,validator:a.validator},e.propertyByAttributeName[a.attributeName]=e._properties[o],!a.hasOwnProperty("type")){const t=e.localize("propertyUnknownType",{name:o});e.log(t)}if("any"===a.type||"propertyObject"===a.type)continue;const s=g.Types.getType(i);if(null!=i&&a.type!==s&&!a.validator){if("object"===a.type&&"array"===s)continue;if("number"===s){if(["integer","int","float"].findIndex(t=>t===a.type)>=0)continue}const t=e.localize("propertyInvalidValueType",{name:o,actualType:s,type:a.type});e.log(t)}}e.defineElementHierarchicalProperties(e._properties,e),e.isCreated=!0},t.registered()}defineElementMethods(t,e){const r=this.constructor.prototype,n=function(t,e){const r=Array.prototype.slice.call(arguments,2),n=function(){if(!this.isReady&&"localize"!==e&&"localize"!==e&&"cloneNode"!==e&&"importStyle"!==e&&"log"!==e&&"parseAttributes"!==e){const t=this.localize("elementNotInDOM");this.log(t)}let n=this;for(let t=0;t<this.modulesList.length;t++){let r=this.modulesList[t];if(e in r){n=r;break}}const o=this.context,a=r.concat(Array.prototype.slice.call(arguments));let i=null;const s=function(t,e){return t===e||("number"===t&&("int"===e||"integer"===e||"float"===e)||("bool"===t&&"boolean"===e||"boolean"===t&&"bool"===e||("object"===t&&"any"===e||void 0)))};if(this.methods){const t=this.methods[e];if(t){const r=t.split(":");i=r[r.length-1].trim();const n=[],o=t.substring(1+t.indexOf("("),t.lastIndexOf(")")).split(",");let l="";for(let t=0;t<o.length;t++){const e=o[t];l+=e,e.indexOf(":")>=0?(n.push(l),l=""):l+=","}let d=n.length;for(let t=0;t<n.length;t++){const r=n[t].trim().split(":"),o=r[0].split("=")[0].trim().indexOf("?")>=0,i=r[1].indexOf("?")>=0,l=r[1].replace(/\?/gi,"").trim(),m=l.split("|");let c=r[0].split("=")[1];const h=g.Types.getType(a[t]);if(void 0===a[t]&&c){switch(c=c.trim(),l[0]){case"date":{let t=c.substring(c.indexOf("(")+1,c.lastIndexOf(")"));t=t.length>0?t.split(",").map(t=>parseInt(t)):[],c=0===t.length?new Date:new Date(t[0],t[1],t[2]);break}case"bool":case"boolean":c="true"===c||"1"===c;break;case"int":case"integer":c=parseInt(c);break;case"float":case"number":c=parseFloat(c);break;case"any":case"object":c=c.indexOf("{")>=0?JSON.parse(c):c}a.push(c)}else o&&d--;if(l!==h&&h){let r=!0;for(let t=0;t<m.length;t++)if(s(h,m[t])){r=!1;break}if(r&&(null!==a[t]||!i)){const r=this.localize("methodInvalidValueType",{name:e,actualType:h,type:l,argumentIndex:t});this.log(r)}}if(a.length<d){const t=this.localize("methodInvalidArgumentsCount",{name:e,actualArgumentsCount:a.length,argumentsCount:d});this.log(t)}}}}this.context=this;const l=t.apply(n,a);if(i){const t=void 0===g.Types.getType(l)?"void":g.Types.getType(l);if(!s(t,i)){const r=this.localize("methodInvalidReturnType",{name:e,actualType:t,type:i});this.log(r)}}return this.context=o,l};return n},o=["constructor","ready","created","render","attached","detached","appendChild","insertBefore","removeChild","connect","disconnectedCallback","connectedCallback","attributeChangedCallback","propertyChangedHandler","enableShadowDOM","isInShadowDOM","addPropertyBindings"];for(let a in t){let i=t[a];i&&i.startsWith&&i.startsWith("_")||void 0!==o.find(t=>t===i)||(r.extendedProperties[i]||g.Types.isFunction(e[i])&&(r[i]=n(e[i],i)))}}defineElementProperties(t){if(!t)return;const e=this.constructor.prototype,r=Object.keys(t),n=this.getStaticMember("properties");Object.assign(e.extendedProperties,t),this.updateProperty=function(t,e,r){const n=t;if(!e||e.readOnly)return;if(e.allowedValues){let t=!1;for(let n=0;n<e.allowedValues.length;n++)if(e.allowedValues[n]===r){t=!0;break}if(!t){const t=JSON.stringify(e.allowedValues).replace(/\[|\]/gi,"").replace(",",", ").replace(/"/gi,"'"),o="'"+r+"'",a=n.localize("propertyInvalidValue",{name:e.name,actualValue:o,value:t});return void n.log(a)}}const o=e.name,a=n._properties[o].value;if(e.validator&&n[e.validator]){const t=n.context;n.context=n;const o=n[e.validator](a,r);void 0!==o&&(r=o),n.context=t}if(a!==r){if(n.propertyChanging){const t=n.propertyChanging(o,a,r);if(!1===t||null===t)return}if(!e.hasOwnProperty("type")){const t=n.localize("propertyUnknownType",{name:o});n.log(t)}if("array"!==e.type||JSON.stringify(a)!==JSON.stringify(r)){if(null!=r&&"any"!==e.type&&"propertyObject"!==e.type&&e.type!==g.Types.getType(r)&&!e.validator||null===r&&!e.nullable){let t=!0;if("object"===e.type&&"array"===g.Types.getType(r)&&(t=!1),"number"===g.Types.getType(r)){["integer","int","float"].findIndex(t=>t===e.type)>=0&&(t=!1)}if(t){const t=n.localize("propertyInvalidValueType",{name:o,actualType:g.Types.getType(r),type:e.type});return void n.error(t)}}if(e.isUpdating=!0,e.isHierarchicalProperty){const t=function(e,r){if(!e)return;const o=Object.keys(e);for(let a=0;a<o.length;a++){const i=o[a],s=e[i];"object"==typeof s&&!g.Types.isArray(s)&&s&&s.constructor!==Date?t(s,r+"_"+i):n[r+"_"+i]=s}};t(r,o)}else n._properties[o].value=r;if(!e.isUpdatingFromAttribute&&e.reflectToAttribute&&n.$.setAttributeValue(e.attributeName,r,e.type),n.isReady&&(!n.ownerElement||n.ownerElement&&n.ownerElement.isReady)){if("wait"===o&&(r||!a||n.isCompleted||(n.classList.remove("smart-visibility-hidden"),n.ownerElement&&n.ownerElement.updateBoundMappedNodes(),n.updateBoundMappedNodes(),n.complete())),"renderMode"===o)return;if(n.context!==n&&!n.wait){const t=n.context;n.context=n,n.propertyChangedHandler(o,a,r),n.context=t,e.observer&&n[e.observer]&&(n.context=n,n[e.observer](a,r),n.context=document),n._watch&&n._watch.properties.indexOf(o)>=0&&n._watch.propertyChangedCallback(o,a,r)}const t=e.notify||n.boundProperties[o];t&&(n.$.fireEvent(e.attributeName+"-changed",{context:n.context,oldValue:a,value:n[o]}),n.boundProperties[o]&&n.updateBoundNodes(o)),t&&n.templateProperties&&n.templateProperties[o]&&n.refreshTemplate(),n.dataContextProperties&&("dataContext"===o?n.applyDataContext():n.dataContextProperties[o]&&n.updateDataContextProperty(o))}e.isUpdating=!1}}};for(let o=0;o<r.length;o+=1){const a=r[o],i=t[a],s=g.Core.toDash(a),l=i.type||"any",d=l.indexOf("?")>=0||"any"===l;d&&"any"!==l&&(i.type=l.substring(0,l.length-1)),i.nullable=d,i.attributeName=s.toLowerCase(),i.name=a,i.reflectToAttribute=void 0===i.reflectToAttribute||i.reflectToAttribute,i.inherit&&n[a]&&(i.value=n[a].value),i.extend&&n[a]&&g.Core.assign(i.value,n[a].value),e.hasOwnProperty(a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get(){if(this._properties[a])return this._properties[a].value},set(t){this.updateProperty(this,this._properties[a],t)}})}}}let x=[],_=[],S=[],C=!1;const k=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(k){parseInt(k[2],10)<=50&&(C=!0)}class A{static register(t,r){const n=r.prototype;let o=i.toCamelCase(t).replace(/[a-z]+/,""),a=r.version||window[e].Version;if(window.customElements.get(t)&&window.customElements.get(t).version===a)return;let s=t;for(a=a.split(".");window.customElements.get(t);)t=s+"-"+a.join("."),a[2]=parseInt(a[2])+1;if(!x[t]){if(t.startsWith(e.toLowerCase()))x[t]=window[e][o]=window[e.toLowerCase()+o]=r;else{let n=t.split("-")[0];n=n.substring(0,1).toUpperCase()+n.substring(1),window[e][n]||(window[e][n]={}),x[t]=window[e][n][o]=window[n.toLowerCase()+o]=r,window[e][o]&&(o=i.toCamelCase(t)),window[e][o]=r}n.elementName=o,n.defineElement(),_[t]&&_[t](n),window.customElements.define(t,r)}}static registerElements(){const t=this;if(t.toRegister){t.isRegistering=!0;for(let e=0;e<t.toRegister.length;e++){const r=t.toRegister[e];t.register(r.tagName,r.element)}t.isRegistering=!1}}static get(t){if(x[t])return x[t]}static whenRegistered(t,e){if(!t)throw new Error("Syntax Error: Invalid tag name");const r=_[t],n=this.get(t),o=n?n.modules.length:3;try{r||n?!r&&n?(e(n.prototype),_[t]=void 0):r&&!n?_[t]=function(t){r(t),e(t)}:r&&n&&(n.proto&&(r(n.proto),e(n.proto)),_[t]=void 0):_[t]=function(t){try{e(t)}catch(t){const e=t instanceof Error?t.message:t.toString();console.log(e)}}}catch(t){const e=t instanceof Error?t.message:t.toString();console.log(e)}if(n&&o!==n.prototype.modules.length){const e=document.querySelectorAll(t);for(let t=0;t<e.length;t++){const r=e[t];r.isCreated&&r._initElement()}}}}A.lazyRegister=!1,A.tagNames=[];class T{constructor(){const t=this;t.name="observableArray",t.observables=arguments.length<3?null:arguments[2];const e=new Proxy(t,{deleteProperty:function(t,e){return delete t[e],!0},apply:function(t,e,r){return t.apply(e,r)},get:function(e,r){return e[r]||isNaN(parseInt(r))?e[r]:t.getItem(parseInt(r))},set:function(e,r,n){return e[r]||isNaN(parseInt(r))?(e[r]=n,!0):(t.setItem(parseInt(r),n),!0)}});if(t._addArgs={eventName:"change",object:e,action:"add",index:null,removed:new Array,addedCount:1},t._removeArgs={eventName:"change",object:e,action:"remove",index:null,removed:null,addedCount:0},arguments.length>=1&&Array.isArray(arguments[0])){t._array=[];const e=arguments[0];for(let r=0,n=e.length;r<n;r++){const n=t._getItem(t._array.length,e[r]);t._array.push(n)}}else t._array=Array.apply(null,arguments);return 2===arguments.length&&(t.notifyFn=arguments[1]),e}get canNotify(){const t=this;return void 0===t._canNotify&&(t._canNotify=!0),t._canNotify}set canNotify(t){this._canNotify=t}_notify(t){const e=this;e.canNotify&&e.notifyFn&&e.notifyFn(t)}notify(t){t&&(this.notifyFn=t)}toArray(){return this._array}_getItem(t,e){const r=this;return"string"==typeof e||"number"==typeof e||void 0===e?e:new Proxy(e,{deleteProperty:function(t,e){return delete t[e],!0},set:function(e,n,o){const a=e[n];return e[n]=o,!r._canNotify||!1===e.canNotify||(r.observables&&!r.observables[n]||r._notify({eventName:"change",object:r,target:e,action:"update",index:t,path:t+"."+n,oldValue:a,newValue:o,propertyName:n}),!0)}})}getItem(t){return this._array[t]}setItem(t,e){const r=this._array[t];this._array[t]=this._getItem(t,e),this._notify({eventName:"change",object:this._array,action:"update",index:t,removed:[r],addedCount:1})}get length(){return this._array.length}set length(t){const e=this;n.isNumber(t)&&e._array&&e._array.length!==t&&e.splice(t,e._array.length-t)}toString(){return this._array.toString()}toLocaleString(){return this._array.toLocaleString()}concat(){this._addArgs.index=this._array.length;const t=this._array.concat.apply(this._array,arguments);return new Smart.ObservableArray(t)}join(t){return this._array.join(t)}pop(){this._removeArgs.index=this._array.length-1,delete this[this._array.length-1];const t=this._array.pop();return this._removeArgs.removed=[t],this._notify(this._removeArgs),this._notifyLengthChange(),t}push(){const t=this;if(t._addArgs.index=t._array.length,1===arguments.length&&Array.isArray(arguments[0])){const e=arguments[0];for(let r=0,n=e.length;r<n;r++){const n=t._getItem(t._array.length,e[r]);t._array.push(n)}}else{const e=t._getItem(t._addArgs.index,arguments[0]);t._array.push.apply(t._array,[e])}return t._addArgs.addedCount=t._array.length-t._addArgs.index,t._notify(t._addArgs),t._notifyLengthChange(),t._array.length}_notifyLengthChange(){if(!this.canNotify)return;const t=this._createPropertyChangeData("length",this._array.length);this._notify(t)}_createPropertyChangeData(t,e,r){return{eventName:"change",object:this,action:t,value:e,oldValue:r}}reverse(){return this._array.reverse()}shift(){const t=this._array.shift();return this._removeArgs.index=0,this._removeArgs.removed=[t],this._notify(this._removeArgs),this._notifyLengthChange(),t}slice(t,e){return this._array.slice(t,e)}sort(t){return this._array.sort(t)}splice(t,e,r){const n=this,o=n._array.length;let a;if(r&&r.length)for(let o=0;o<r.length;o++)a=n._array.splice(t+o,e,r[o]);else a=n._array.splice.apply(n._array,arguments);if(r){let e=n.canNotify;if(n.canNotify=!1,r.length)for(let e=0;e<r.length;e++)n.setItem(t+e,r[e]);else n.setItem(t,r);n.canNotify=e,n._notify({eventName:"change",object:this,action:"add",index:t,added:a,addedCount:n._array.length>o?n._array.length-o:0})}else n._notify({eventName:"change",object:this,action:"remove",index:t,removed:a,addedCount:n._array.length>o?n._array.length-o:0});return n._array.length!==o&&n._notifyLengthChange(),a}unshift(){const t=this._array.length,e=this._array.unshift.apply(this._array,arguments);return this._addArgs.index=0,this._addArgs.addedCount=e-t,this._notify(this._addArgs),this._notifyLengthChange(),e}indexOf(t,e){const r=this;for(let n=e||0,o=r._array.length;n<o;n++)if(r._array[n]===t)return n;return-1}lastIndexOf(t,e){const r=this;for(let n=e||r._array.length-1;n>=0;n--)if(r._array[n]===t)return n;return-1}find(t,e){return this._array.find(t,e)}findIndex(t,e){return this._array.findIndex(t,e)}every(t,e){return this._array.every(t,e)}some(t,e){return this._array.some(t,e)}forEach(t,e){this._array.forEach(t,e)}map(t,e){return this._array.map(t,e)}filter(t,e){return this._array.filter(t,e)}reduce(t,e){return void 0!==e?this._array.reduce(t,e):this._array.reduce(t)}reduceRight(t,e){return void 0!==e?this._array.reduceRight(t,e):this._array.reduceRight(t)}move(t,e){this.splice(e,0,this.splice(t,1)[0])}}let E={};window[e]&&(E=window[e]),window[e]=function(t,r){let n=t;if(t){if(t.indexOf("#")>=0||t.indexOf(".")>=0)return m[t]?m[t]:r?(m[t]=new r,function(t,e){const r=e.properties;e._properties=[];const n=function(r,o){const a=Object.keys(r);for(let i=0;i<a.length;i++){const s=a[i],l=r[s];e._properties[o+s]=l,Array.isArray(l)?e._properties[o+s]=new T(l,(function(e){const r=s+"."+e.path,n=e.newValue,o=document.querySelector(t);if(o){const t=r.split(".");let e=o;for(let r=0;r<t.length;r++){e=e[t[r]]}e=n}})):(Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>e._properties[o+s],set(t){e._properties[o+s]=t}}),l&&"DataAdapter"===l.constructor.name||l&&"object"==typeof l&&Smart.DataAdapter&&l instanceof Smart.DataAdapter||"object"==typeof l&&l&&Object.keys(l).length>0&&n(l,o+s+"."))}};n(r,""),Object.defineProperty(e,"properties",{configurable:!1,enumerable:!0,get:()=>r});const o=document.querySelector(t);if(o&&o.isReady)for(let t in r)o[t]=r[t];else if(o){o.props={};for(let t in r)o.props[t]=r[t]}}(t,m[t]),m[t]):void 0;if(r){if(A.tagNames[t]=r,A.lazyRegister){A.toRegister||(A.toRegister=[]);const t=i.toCamelCase(n).replace(/[a-z]+/,"");return window[e][t]=r,void A.toRegister.push({tagName:n,element:r})}A.register(n,r)}}},window.addEventListener("load",(function(){const t=window[e].Elements.tagNames;let r=[];for(let n in t){const o=t[n];let a=document.querySelectorAll("["+n+"]");for(let t=0;t<a.length;t++){const e=a[t];e instanceof HTMLDivElement&&(e.__proto__=o.prototype,e.created(),e.connectedCallback()),e.classList.add("smart-element-ready")}let i=o.name;"Item"===i&&(i="ListItem"),a=document.querySelectorAll('[is="'+e.toLocaleLowerCase()+i+'"]');for(let t=0;t<a.length;t++)r.push(a[t])}if(r.length>0){const t=t=>{let e=[],r=t.parentNode;for(;r&&9!==r.nodeType;)r instanceof HTMLElement==!0&&e.push(r),r=r.parentNode;return e};r.sort((function(e,r){let n=t(e).length,o=t(r).length;return n<o?1:n>o?-1:0}));for(let t=0;t<r.length;t++){const e=r[t],n=e.getAttribute("is");let o;o="smartItem"===n?new window.smartListItem(e):new window[n](e),o.removeAttribute("is")}}}));const N=function(){if("complete"===document.readyState&&"manual"!==window[e].RenderMode){S.sort((function(t,e){let r=t.element.parents.length,n=e.element.parents.length;return r<n?-1:r>n?1:0}));for(let t=0;t<S.length;t++)window[e].RenderMode="",S[t].element.isLoading=!1,S[t].callback(),window[e].RenderMode="";S=[],document.removeEventListener("readystatechange",N)}};Object.assign(window[e],{Elements:A,Modules:[],BaseElement:class extends w{static get observedAttributes(){let t=this,e=["external-style"];for(let r in t.prototype.extendedProperties){const n=t.prototype.extendedProperties[r];e.push(n.attributeName)}return e}static get styleUrls(){return[]}static get styles(){return""}get styleUrl(){return this._styleUrl}set styleUrl(t){this._styleUrl=t}get isInShadowDOM(){const t=this.getRootNode();return!this.hasAttribute("smart-blazor")&&(t!==document&&t!==this)}getShadowRootOrBody(){const t=this;return t.isInShadowDOM&&t.getRootNode().host?t.getRootNode().host.shadowRoot:document.body}get enableShadowDOM(){return window[e].EnableShadowDOM}importStyle(t,e){this._importStyle(t,e)}_importStyle(t,e){const r=this;if(!r.shadowRoot||!t)return;const n=t=>{const n=r.shadowRoot.children;for(let r=0;r<n.length;r++){const o=n[r];if(o instanceof HTMLLinkElement&&o.href===t)return e&&e(),null}const o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",o.href=t,o.onload=e,o},o=(()=>{const t=r.shadowRoot.children;let e=null;for(let r=0;r<t.length;r++){const n=t[r];n instanceof HTMLLinkElement&&(e=n)}return e})(),a=(t,e)=>{e.parentNode.insertBefore(t,e.nextSibling)};if(Array.isArray(t)){const e=document.createDocumentFragment();for(let r=0;r<t.length;r++){const o=n(t[r]);o&&e.appendChild(o)}o?a(e,o):r.shadowRoot.insertBefore(e,r.shadowRoot.firstChild)}else{const e=n(t);if(!e)return;o?a(e,o):r.shadowRoot.insertBefore(e,r.shadowRoot.firstChild)}}attributeChanged(t,e,r){"style-url"===t&&(this.styleUrl=r)}attributeChangedCallback(t,e,r){this.isReady&&super.attributeChangedCallback(t,e,r)}constructor(t,e){super();const r=this;if(t){e&&(r._initProperties=e);const n=t=>{if("string"==typeof t?document.querySelector(t):t){const n="string"==typeof t?document.querySelector(t):t;if(n instanceof HTMLDivElement){const o=document.createElement(r.tagName);for(let t of n.attributes)o.setAttribute(t.name,n.getAttribute(t.name));for(;n.childNodes.length;)o.appendChild(n.firstChild);return"string"==typeof t&&(o.id=t.substring(1)),o._initProperties=e,n.parentNode&&n.parentNode.replaceChild(o,n),o}if(e){const t=n.context;if(n._initProperties=e,n.isReady){n.context=n;const r={},o={};for(let t in e)r[t]=n[t],o[t]=e[t];Object.getOwnPropertyNames(e).length>0&&(n.initProperties(),n.propertyChangedHandler(e,r,o)),n.context=t}}return n}};if("string"==typeof t){const e=document.querySelectorAll(t),r=[];if(e.length>1){for(let t=0;t<e.length;t++){const o=n(e[t]);r.push(o)}return r}}else if(t&&t.length>0){const e=t;if(e.length>1){for(let t=0;t<e.length;t++){const r=n(e[t]);x.push(r)}return x}}return n(t)}r._styleUrl="",r.isUtilityElement||r.created()}_getRootShadowParent(){let t=this.shadowParent;for(;t;){if(!t.shadowParent)return t;t=t.shadowParent}return t||this.shadowParent}_getStyleUrl(t){let r=g.Core.getScriptLocation()+window[e].StyleBaseUrl+t;return this.shadowParent&&(r=r.replace("scoped/","")),r}_getStyleUrls(){const t=this;t.nodeName.startsWith(e);const r=t.getStaticMember("styleUrls","array"),n=[];for(let e=0;e<r.length;e++){const o=r[e],a=t._getStyleUrl(o);n.push(a)}return n}_setupShadowRoot(){const t=this;t.classList.add("smart-element-init");const r=r=>{r.$.root&&(r.$.root.classList.add(e.toLowerCase()+"-element"),r.$.root.classList.add(t.nodeName.toLowerCase())),r.setup(),r.classList.remove("smart-element-init")};if(document.adoptedStyleSheets)if(window[e].AdoptedStyleSheets)window[e].AdoptedStyleSheetsLoaded?(t.shadowRoot.adoptedStyleSheets=window[e].AdoptedStyleSheets,r(t)):(t.shadowRoot.adoptedStyleSheets=window[e].AdoptedStyleSheets,window[e].AdoptedStyleSheetsLoadedQueue||(window[e].AdoptedStyleSheetsLoadedQueue=[]),window[e].AdoptedStyleSheetsLoadedQueue.push(t));else{const n=new CSSStyleSheet;let o=g.Core.getScriptLocation()+"/styles/smart.default.css";n.replace('@import url("'+o+'")').then(()=>{if(r(t),window[e].AdoptedStyleSheetsLoaded=!0,window[e].AdoptedStyleSheetsLoadedQueue){const t=window[e].AdoptedStyleSheetsLoadedQueue;for(let e=0;e<t.length;e++){const n=t[e];r(n)}delete window[e].AdoptedStyleSheetsLoadedQueue}}).catch(t=>{console.error("Failed to load:",t)}),window[e].AdoptedStyleSheets=[n],document.adoptedStyleSheets=[n],t.shadowRoot.adoptedStyleSheets=window[e].AdoptedStyleSheets}}connect(){const t=this;window[e].EnableShadowDOM&&!t.shadowRoot&&!0!==t.isInShadowDOM&&(t.attachShadow({mode:"open"}),t.shadowRoot&&t.$.root&&(t.shadowRoot.appendChild(t.$.root),t.$.root.classList.add(t.nodeName.toLowerCase()))),t.shadowRoot||t.shadowParent?t.shadowRoot?t._setupShadowRoot():(t.shadowParent&&window[e].EnableShadowDOM,t.setup()):t.setup()}connectedCallback(){const t=this;if(t.isLoading||t.isUtilityElement)return;t.classList.add("smart-element-init");const r=function(){t.classList.remove("smart-element-init")};if("complete"===document.readyState&&(void 0===window[e].isAngular&&(window[e].isAngular=null!==document.body.querySelector("[ng-version]")),window[e].isAngular))for(let r=0;r<t.parents.length&&!t.parents[r].nodeName.toLowerCase().startsWith(e.toLowerCase()+"-");r++)if(t.parents[r].hasAttribute("ng-version")&&!t.classList.contains("smart-angular")){window[e].RenderMode="manual";break}if("complete"===document.readyState&&"manual"!==window[e].RenderMode){const e=t.parents;e.length&&"HTML"===e[e.length-1].nodeName||t.getRootNode().host?(t.checkIsInDomTimer&&clearInterval(t.checkIsInDomTimer),r(),t.connect()):(t.checkIsInDomTimer&&clearInterval(t.checkIsInDomTimer),e.length>0&&(t.checkIsInDomTimer=setInterval(()=>{const e=t.parents;0===e.length&&clearInterval(t.checkIsInDomTimer),e.length>0&&"HTML"===e[e.length-1].nodeName&&(clearInterval(t.checkIsInDomTimer),r(),t.connect())},100)))}else t.isLoading=!0,S.push({element:this,callback:function(){this.isReady||(r(),this.connect())}.bind(t)})}disconnectedCallback(){const t=this;t.isAttached?(t.shadowParent=null,t.detached()):t._resetShadowParent()}adoptedCallback(){this.setup()}appendTemplate(t){const e=this;e.shadowRoot?e.shadowRoot.appendChild(t):e.appendChild(t)}_resetShadowParent(){const t=this;if(!window[e].EnableShadowDOM||null===t.shadowParent)return;const r=[];let n=t.parentNode;for(;n&&9!==n.nodeType;){if(n instanceof HTMLElement==!0)r.push(n);else if(11===n.nodeType&&n.host){n=n.host;continue}n=n.parentNode}for(let e=0;e<r.length;e++)if(r[e]===t.shadowParent)return;r.length>0&&"HTML"===r[r.length-1].nodeName&&(t.shadowParent=null)}},Utilities:g,Import:function(t,e){let r=0;const n=function(t,e){return new Promise(r=>{const n=document.createElement("script");n.src=t,n.onload=r;for(let t=0;t<document.head.children.length;t++){const n=document.head.children[t];if(n.src&&n.src.toString().indexOf(e)>=0)return void r()}document.head.appendChild(n)})};return new Promise(o=>{const a=g.Core.getScriptLocation(),i=function(e){if(!t[e])return;const s=a+"/"+t[e];n(s,t[e]).then((function(){r++,r===t.length&&o(),i(e+1)}))};if(e)for(let e=0;e<t.length;e++){const i=a+"/"+t[e];n(i,t[e]).then((function(){r++,r===t.length&&o()}))}else i(0)})},ObservableArray:T,Observable:class{constructor(t,e){const r=this;this.name="observable",t&&Object.assign(r,t);var n;return n=t,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>"constructor"===t||!!t.startsWith("_")||void(r[t]=n[t])),new Proxy(r,{deleteProperty:function(t,e){return delete t[e],!0},get:function(t,e){return t[e]},set:function(t,n,o){const a=t[n];return a===o||(t[n]=o,!("notifyFn"!==n&&!n.startsWith("_")&&"canNotify"!==n)||(!(!e||-1!==e.indexOf(n))||(!r.canNotify||(r._notify({target:t,propertyName:n,oldValue:a,newValue:o}),!0))))}})}get canNotify(){const t=this;return void 0===t._canNotify&&(t._canNotify=!0),t._canNotify}set canNotify(t){this._canNotify=t}_notify(t){const e=this;if(e.canNotify&&e.notifyFn)for(let r=0;r<e.notifyFn.length;r++)e.notifyFn[r](t)}notify(t){const e=this;t&&(e.notifyFn||(e.notifyFn=[]),e.notifyFn.push(t))}},Component:class{constructor(t,e){const r=this.name;let n=null;return t?n=new window[r](t,e):(n=new window[r],n._initProperties=e),this._element=n,n}get name(){return"Component"}get element(){return this._element}},Theme:E.Theme||"",EnableShadowDOM:E.ShadowDom||!1,BaseUrl:"./",StyleBaseUrl:"/styles/default/",Version:"13.2.0",Templates:t,RenderMode:E.RenderMode||"auto",Render:function(){const t=()=>{window[e].RenderMode="",N()};"complete"===document.readyState?t():(window.removeEventListener("load",t),window.addEventListener("load",t))},Data:m,Mode:E.Mode||"production",License:"Evaluation"});let M=window[e].Theme;"manual"!==window[e].RenderMode&&document.addEventListener("readystatechange",N),Object.defineProperty(window[e],"Theme",{configurable:!1,enumerable:!0,get:()=>M,set(t){const e=M;M=t,b.fireEvent("theme-changed",{oldValue:e,newValue:t},{bubbles:!0,cancelable:!0})}}),window[e]("smart-base-element",window[e].BaseElement),window[e]("smart-content-element",class extends window[e].BaseElement{static get properties(){return{content:{type:"any",reflectToAttribute:!1},innerHTML:{type:"string",reflectToAttribute:!1}}}template(){return"<div inner-h-t-m-l='[[innerHTML]]'></div>"}ready(){super.ready();this.applyContent()}refresh(){}clearContent(){const t=this;for(;t.$.content.firstChild;)t.$.content.removeChild(t.$.content.firstChild)}applyContent(){const t=this;if(void 0===t.content)return void(t.content=t.$.content);if(""===t.content||null===t.content)return void t.clearContent();if(t.content instanceof HTMLElement)return t.clearContent(),void t.$.content.appendChild(t.content);const e=document.createDocumentFragment();let r=document.createElement("div");e.appendChild(r),t.content instanceof HTMLElement?r.appendChild(t.content):r.innerHTML=t.content;let n=Array.from(r.childNodes);r.parentNode.removeChild(r);for(let t=0;t<n.length;t++)e.appendChild(n[t]);t.clearContent(),t.$.content.appendChild(e)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;e!==r&&("innerHTML"===t&&(n.content=r,n.applyContent(),n.innerHTML=n.content=g.Core.html(n.$.content)),"content"===t&&n.applyContent())}}),window[e]("smart-scroll-viewer",class extends window[e].ContentElement{static get properties(){return{autoRefresh:{type:"boolean",value:!1},horizontalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]},touchScrollRatio:{type:"any",value:null},touchVelocityCoefficient:{type:"number",value:50},verticalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]}}}static get listeners(){return{touchmove:"_touchmoveHandler",touchstart:"_touchstartHandler",wheel:"_mouseWheelHandler","document.up":"_upHandler"}}static get styleUrls(){return["smart.scrollviewer.css"]}template(){return'<div id="container" class="smart-container" role="presentation">\n <div id="scrollViewerContainer" class="smart-scroll-viewer-container" role="presentation">\n <div id="scrollViewerContentContainer" inner-h-t-m-l=\'[[innerHTML]]\' class="smart-scroll-viewer-content-container" role="presentation">\n <content></content>\n </div>\n </div>\n <smart-scroll-bar id="verticalScrollBar" theme="[[theme]]" animation="[[animation]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]" orientation="vertical"></smart-scroll-bar>\n <smart-scroll-bar id="horizontalScrollBar" theme="[[theme]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]"></smart-scroll-bar>\n </div>'}appendChild(t){const e=this;if(t){if(!e.isCompleted||t.classList&&t.classList.contains("smart-resize-trigger-container")){const t=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(e,t.concat(Array.prototype.slice.call(arguments)))}e.$.scrollViewerContentContainer.appendChild(t)}}removeChild(t){const e=this;if(t){if(!e.isCompleted||t.classList&&t.classList.contains("smart-resize-trigger-container")){const t=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(e,t.concat(Array.prototype.slice.call(arguments)))}e.$.scrollViewerContentContainer.removeChild(t)}}removeAll(){const t=this;t.isCompleted&&(t.$.scrollViewerContentContainer.innerHTML="")}_horizontalScrollbarHandler(t){const e=this;e.$.scrollViewerContentContainer.style.left=(e.rightToLeft?1:-1)*e.scrollLeft+"px",t.stopPropagation&&t.stopPropagation(),e.onHorizontalChange&&e.onHorizontalChange(t)}_verticalScrollbarHandler(t){const e=this;e.$.scrollViewerContentContainer.style.top=-e.scrollTop+"px",t.stopPropagation&&t.stopPropagation(),e.onVerticalChange&&e.onVerticalChange(t)}_touchmoveHandler(t){const e=this;if(e._touchmoveInside&&t.cancelable)return t.preventDefault(),void t.stopPropagation();const r=e.scrollHeight>0,n=e.scrollWidth>0,o=e._touchCoords;if(!r&&!n||!o)return;const a=t.touches[0];let i,s,l,d;e._touchCoords=[a.pageX,a.pageY],r?(i=e.scrollTop,s=e.scrollHeight,l=a.pageY,d=o[1]):(i=e.scrollLeft,s=e.scrollWidth,l=a.pageX,d=o[0]);const m=parseFloat(l.toFixed(5)),c=parseFloat(d.toFixed(5));0===i&&m>=c||i===s&&m<=c||(l!==d&&(e._touchmoveInside=!0),t.cancelable&&(t.preventDefault(),t.stopPropagation()))}_touchstartHandler(t){const e=t.touches[0];this._touchCoords=[e.pageX,e.pageY]}_mouseWheelHandler(t){const e=this;if(!e.disabled&&(e.computedHorizontalScrollBarVisibility||e.computedVerticalScrollBarVisibility)){if(t.shiftKey&&e.computedHorizontalScrollBarVisibility){const r=e.scrollLeft;if(0===r&&t.deltaX<0||r===e.scrollHeight&&t.deltaX>0)return;return t.stopPropagation(),t.preventDefault(),void(e.scrollWidth>0&&e.scrollTo(void 0,e.scrollLeft+e._getScrollCoefficient(t,e.offsetWidth)))}if(e.computedVerticalScrollBarVisibility){const r=e.scrollTop;if(0===r&&t.deltaY<0||r===e.scrollHeight&&t.deltaY>0)return;t.stopPropagation(),t.preventDefault(),e.scrollHeight>0&&e.scrollTo(e.scrollTop+e._getScrollCoefficient(t,e.offsetHeight))}}}_overriddenHandler(){}_upHandler(){delete this._touchCoords,delete this._touchmoveInside}_getScrollCoefficient(t,e){const r=t.deltaMode,n=Math.abs(t.deltaY);let o;return 0===r?o=n<100/3?n:e:1===r?o=n<1?n*(100/3):e:2===r&&(o=e),t.deltaY<0?-o:o}applyContent(){super.applyContent(),this.refresh()}get computedHorizontalScrollBarVisibility(){const t=this;return t._scrollView&&t._scrollView.hScrollBar?!t._scrollView.hScrollBar.$.hasClass("smart-hidden"):null}get computedVerticalScrollBarVisibility(){const t=this;return t._scrollView&&t._scrollView.vScrollBar?!t._scrollView.vScrollBar.$.hasClass("smart-hidden"):null}scrollTo(t,e){const r=this;r._scrollView&&(void 0!==t&&r._scrollView.scrollTo(t),void 0!==e&&r._scrollView.scrollTo(e,!1))}refreshScrollBarsVisibility(){const t=this;t._scrollView&&(t._scrollView.hScrollBar.disabled=t.disabled,t._scrollView.vScrollBar.disabled=t.disabled,"disabled"===t.horizontalScrollBarVisibility&&(t._scrollView.hScrollBar.disabled=!0),"disabled"===t.verticalScrollBarVisibility&&(t._scrollView.vScrollBar.disabled=!0),t.scrollWidth>0?t._scrollView.hScrollBar.$.removeClass("smart-hidden"):"visible"!==t.horizontalScrollBarVisibility&&t._scrollView.hScrollBar.$.addClass("smart-hidden"),t.scrollHeight>0?t._scrollView.vScrollBar.$.removeClass("smart-hidden"):"visible"!==t.verticalScrollBarVisibility&&t._scrollView.vScrollBar.$.addClass("smart-hidden"),"hidden"===t.horizontalScrollBarVisibility&&t._scrollView.hScrollBar.$.addClass("smart-hidden"),"hidden"===t.verticalScrollBarVisibility&&t._scrollView.vScrollBar.$.addClass("smart-hidden"),"visible"===t.horizontalScrollBarVisibility&&t._scrollView.hScrollBar.$.removeClass("smart-hidden"),"visible"===t.verticalScrollBarVisibility&&(t._scrollView.vScrollBar.$.removeClass("smart-hidden"),t.disabled||(t._scrollView.vScrollBar.disabled=t.scrollHeight<=0)),t.computedHorizontalScrollBarVisibility&&t.computedVerticalScrollBarVisibility?(t._scrollView.hScrollBar.$.addClass("bottom-corner"),t._scrollView.vScrollBar.$.addClass("bottom-corner")):(t._scrollView.hScrollBar.$.removeClass("bottom-corner"),t._scrollView.vScrollBar.$.removeClass("bottom-corner")))}ready(){super.ready();const t=this;t.$.verticalScrollBar.onChange=e=>{e.detail=e,t._verticalScrollbarHandler(e)},t.$.horizontalScrollBar.onChange=e=>{e.detail=e,t._horizontalScrollbarHandler(e)},t.$.verticalScrollBar.setAttribute("aria-controls",t.id),t.$.horizontalScrollBar.setAttribute("aria-controls",t.id),t._customScrollView||(t._scrollView=new Smart.Utilities.Scroll(t,t.$.horizontalScrollBar,t.$.verticalScrollBar)),t.refresh()}refresh(){const t=this;function e(){const e=t.$.scrollViewerContainer.classList.contains("vscroll");t.$.scrollViewerContainer.classList.remove("vscroll");const r=t.$.scrollViewerContentContainer.offsetWidth-t.$.scrollViewerContainer.offsetWidth;return r>0&&"hidden"!==t.horizontalScrollBarVisibility||"visible"===t.horizontalScrollBarVisibility?t.$.scrollViewerContainer.classList.add("hscroll"):t.$.scrollViewerContainer.classList.remove("hscroll"),e&&t.$.scrollViewerContainer.classList.add("vscroll"),r}function r(){let e;const r=t.$.scrollViewerContainer.classList.contains("hscroll");if(t.$.scrollViewerContainer.classList.remove("hscroll"),Smart.Utilities.Core.Browser.Safari){const r=t.$.scrollViewerContentContainer.getBoundingClientRect().height,n=t.$.scrollViewerContainer.getBoundingClientRect().height;e=r&&n?parseInt(r)-parseInt(n):t.$.scrollViewerContentContainer.offsetHeight-t.$.scrollViewerContainer.offsetHeight}else e=t.$.scrollViewerContentContainer.offsetHeight-t.$.scrollViewerContainer.offsetHeight;return t.virtualScrollHeight&&(e=t.virtualScrollHeight),e>0&&"hidden"!==t.verticalScrollBarVisibility||"visible"===t.verticalScrollBarVisibility?t.$.scrollViewerContainer.classList.add("vscroll"):t.$.scrollViewerContainer.classList.remove("vscroll"),r&&t.$.scrollViewerContainer.classList.add("hscroll"),e}if(!t.$.scrollViewerContentContainer)return;"hidden"===t.verticalScrollBarVisibility&&t.$.scrollViewerContentContainer.setAttribute("disable-vertical",""),"hidden"===t.horizontalScrollBarVisibility&&t.$.scrollViewerContentContainer.setAttribute("disable-horizontal","");let n=t.scrollWidth,o=t.scrollHeight;t.scrollWidth=e(),t.scrollHeight=r(),t.scrollHeight&&o===t.scrollHeight||(t.scrollWidth=e()),t.scrollWidth&&n===t.scrollWidth||(t.scrollHeight=r()),t.computedVerticalScrollBarVisibility&&(t.scrollHeight+=t._scrollView.hScrollBar.offsetHeight),t.computedHorizontalScrollBarVisibility&&(t.scrollWidth+=t._scrollView.vScrollBar.offsetWidth),0===t.scrollHeight&&t.scrollWidth>0&&t.$.container.offsetHeight-t.$.content.offsetHeight<5&&(t.$.container.style.paddingBottom=t._scrollView.hScrollBar.offsetHeight+"px"),t.autoRefresh&&(t.$.scrollViewerContainer.scrollLeft=0,t.$.scrollViewerContainer.scrollTop=0)}attached(){const t=this;super.attached(),t._scrollView||t._customScrollView||(t._scrollView=new Smart.Utilities.Scroll(t,t.$.horizontalScrollBar,t.$.verticalScrollBar))}detached(){const t=this;super.detached(),t._scrollView&&(t._scrollView.unlisten(),delete t._scrollView)}get scrollWidth(){const t=this;return t._scrollView&&t._scrollView.hScrollBar?1===t._scrollView.hScrollBar.max&&"visible"===t.horizontalScrollBarVisibility?0:t._scrollView.hScrollBar.max:-1}set scrollWidth(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.hScrollBar&&(0===t&&"visible"===e.horizontalScrollBarVisibility?e._scrollView.hScrollBar.max=0:e._scrollView.hScrollBar.max=t,e.refreshScrollBarsVisibility())}get scrollHeight(){const t=this;return t._scrollView&&t._scrollView.vScrollBar?1===t._scrollView.vScrollBar.max&&"visible"===t.verticalScrollBarVisibility?0:t._scrollView.vScrollBar.max:0}set scrollHeight(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.vScrollBar&&(0===t&&"visible"===e.verticalScrollBarVisibility?e._scrollView.vScrollBar.max=1:e._scrollView.vScrollBar.max=t,e.refreshScrollBarsVisibility())}get scrollLeft(){const t=this;return t._scrollView&&t._scrollView.hScrollBar?t._scrollView.hScrollBar.value:0}set scrollLeft(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.hScrollBar&&(e._scrollView.hScrollBar.value=t)}get scrollTop(){const t=this;return t._scrollView&&t._scrollView.vScrollBar?t._scrollView.vScrollBar.value:0}set scrollTop(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.vScrollBar&&(e._scrollView.vScrollBar.value=t)}propertyChangedHandler(t,e,r){const n=this;super.propertyChangedHandler(t,e,r),"animation"!==t&&"theme"!==t&&n.refresh()}}),window[e].Utilities.Assign("PositionDetection",class{constructor(t,e,r,n){if(e){const r="dropDown"+Math.floor(65536*(1+Math.random())).toString(16).substring(1);e.id=r,t.setAttribute("aria-owns",r)}this.context=t,this.dropDown=e,this.defaultParent=r,this.closeMethod=n}handleAutoPositioning(){const t=this,e=t.context;if("auto"!==e.dropDownPosition||e.disabled||e.isHidden)return;const r=window.requestAnimationFrame;let n,o=Date.now();return n=r((function a(){if(e.isHidden||document.hidden)return;n=r(a),"auto"===e.dropDownPosition&&!e.disabled&&(e.isInShadowDOM?document.body.contains(e.shadowParent):document.body.contains(e))||cancelAnimationFrame(n),e.isHidden&&cancelAnimationFrame(n),Date.now()-o>=200&&(t.scrollHandler(),o=Date.now())}))}checkBrowserBounds(t){const e=this.context;if("auto"===e.dropDownPosition&&!e.disabled)switch(t){case"vertically":this.checkBrowserBoundsVertically();break;case"horizontally":this.checkBrowserBoundsHorizontally();break;default:this.checkBrowserBoundsVertically(),this.checkBrowserBoundsHorizontally()}}checkBrowserBoundsHorizontally(){const t=this.context,e=this.dropDown;let r,n=0;i.isMobile||window.innerWidth===document.documentElement.clientWidth||(n=window.innerWidth-document.documentElement.clientWidth),null!==t._dropDownParent?r=!0:e.style.left="";const o=window.innerWidth-n;let a=t.getBoundingClientRect().left;if(a<0&&(e.style.left=(r?0:Math.abs(a))+"px",a=parseFloat(e.style.left)),a+e.offsetWidth>o){let t=a-Math.abs(o-a-e.offsetWidth);r&&(t+=window.pageXOffset),e.style.left=(r?t:t-a)+"px",window.innerWidth===document.documentElement.clientWidth&&(e.style.left=parseFloat(e.style.left)+n+"px"),r&&window.innerHeight===document.documentElement.clientHeight&&this.positionDropDown(!0)}}checkBrowserBoundsVertically(t){const e=this.context,r=this.dropDown,n=e._dropDownListPosition;t||(t=e.getBoundingClientRect()),0!==t.height&&(document.documentElement.clientHeight-Math.abs(t.top+t.height+r.offsetHeight)>=0?e._dropDownListPosition="bottom":t.top-r.offsetHeight>=0?e._dropDownListPosition="top":e._dropDownListPosition="overlay-center",this.updatePositionAttribute(n,e._dropDownListPosition))}scrollHandler(){const t=this.context;if(!t.parentElement)return;const e=t.getBoundingClientRect();if(e.top===t._positionTop)return;const r=t._dropDownListPosition;this.checkBrowserBoundsVertically(e),t._dropDownListPosition!==r&&this.positionDropDown(),t._positionTop=e.top}getDropDownParent(t){const e=this.context,r=this.dropDown;let n=e.dropDownAppendTo;e._positionedParent=null,null===n?e._dropDownParent=null:"body"===n||n===document.body?e.getRootNode().host?e._dropDownParent=e.getRootNode().host.shadowRoot:e._dropDownParent=document.body:n instanceof HTMLElement?e._dropDownParent=n:"string"==typeof n?(n=document.getElementById(n),n instanceof HTMLElement?e._dropDownParent=n:(e.dropDownAppendTo=null,e._dropDownParent=null)):(e.dropDownAppendTo=null,e._dropDownParent=null);let o=e._dropDownParent;if(null!==o){for(;o&&o instanceof HTMLElement&&"static"===window.getComputedStyle(o).position&&o!==e.getShadowRootOrBody();)o=o.parentElement;o===document.body?e._positionedParent=null:e._positionedParent=o,r&&(r.setAttribute("animation",e.animation),""!==e.theme&&r.$.addClass(e.theme),t&&(e._dropDownParent.appendChild(r),r.$.addClass("smart-drop-down-repositioned")),-1===e.detachedChildren.indexOf(r)&&e.detachedChildren.push(r))}}dropDownAppendToChangedHandler(){const t=this.context,e=this.dropDown,r=t._dropDownParent;this.getDropDownParent(),t._dropDownParent!==r&&(t[this.closeMethod](),["left","top","font-size","font-family","font-style","font-weight"].forEach(t=>e.style[t]=null),null===t._dropDownParent?(this.defaultParent.appendChild(e),e.$.removeClass("smart-drop-down-repositioned")):(t._dropDownParent.appendChild(e),e.$.addClass("smart-drop-down-repositioned")))}dropDownPositionChangedHandler(){this.dropDown.style.transition="none",this.context[this.closeMethod](),this.setDropDownPosition(),this.handleAutoPositioning()}dropDownAttached(t){const e=this.context;null!==e._dropDownParent&&(e._dropDownParent.appendChild(this.dropDown),this.handleAutoPositioning(),t&&e[t]())}dropDownDetached(){const t=this.context;null!==t._dropDownParent&&document.body.contains(this.dropDown)&&document.body.contains(t._dropDownParent)&&t._dropDownParent.removeChild(this.dropDown)}setDropDownPosition(){const t=this.context,e=t.dropDownPosition,r=t._dropDownListPosition;"auto"===e?this.checkBrowserBounds():t._dropDownListPosition=e,this.updatePositionAttribute(r,t._dropDownListPosition)}updatePositionAttribute(t,e){const r=this.context,n=this.dropDown;r.$.dropDownButton&&!r.$.dropDownButton.hasAttribute(e)&&(r.$.dropDownButton.removeAttribute(t),r.$.dropDownButton.setAttribute(e,"")),n.hasAttribute(e)||(n.style.transition="none",n.removeAttribute(t),n.setAttribute(e,""),requestAnimationFrame((function(){n.style.transition=null})))}positionDropDown(t){const e=this.context,r=this.dropDown;if(!e.opened||null===e._dropDownParent)return;const n=e.getBoundingClientRect();let o,a;if(this.customPositionDropDown){const t=this.customPositionDropDown(n);o=t.left,a=t.top}else switch(o=n.left,a=n.top,e._dropDownListPosition){case"bottom":a+=e.$.container.offsetHeight-1;break;case"center-bottom":a+=e.$.container.offsetHeight-1,o+=e.offsetWidth-r.offsetWidth/2;break;case"center-top":a-=r.offsetHeight-1,o+=e.offsetWidth-r.offsetWidth/2;break;case"top":a-=r.offsetHeight-1;break;case"overlay-bottom":break;case"overlay-center":a-=r.offsetHeight/2-e.offsetHeight/2;break;case"overlay-top":a-=r.offsetHeight-e.offsetHeight}const i=this.getDropDownOffset();r.style.top=a+i.y+"px",t||(r.style.left=o+i.x+"px")}getDropDownOffset(){const t=this.context._positionedParent;let e,r;if(t&&"#document-fragment"!==t.nodeName){const n=t.getBoundingClientRect();e=-n.left,r=-n.top}else e=window.pageXOffset,r=window.pageYOffset;return{x:e,y:r}}placeOverlay(){const t=this.context;if(!t.dropDownOverlay||t._overlay)return;const e=document.createElement("div");e.classList.add("smart-drop-down-overlay"),e.style.width=document.documentElement.scrollWidth+"px",e.style.height=document.documentElement.scrollHeight+"px",document.body.appendChild(e),t._overlay=e}removeOverlay(t){const e=this,r=e.context;r._overlay&&(r.hasAnimation&&t?requestAnimationFrame((function t(){e.dropDown.getBoundingClientRect().height>0?requestAnimationFrame(t):(document.body.removeChild(r._overlay),delete r._overlay)})):(document.body.removeChild(r._overlay),delete r._overlay))}});window.Smart.Color=class{constructor(t){if(window.Smart._colors||(window.Smart._colors=[]),window.Smart._colors[t]){const e=window.Smart._colors[t];return this.hex=e.hex,this.r=e.r,this.g=e.g,void(this.b=e.b)}this.r=this.g=this.b=0,this.hex="";const e=this.getStandardizedColor(t);e&&(this.setHex(e.substring(1)),window.Smart._colors[t]={hex:this.hex,r:this.r,g:this.g,b:this.b})}getStandardizedColor(t){const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillStyle}getInvertedColor(){if(""===this.hex)return"transparent";return 255-(.299*this.r+.587*this.g+.114*this.b)<105?"Black":"White"}hexToRgb(t){let e="00",r="00",n="00";return 6===(t=this.validateHex(t)).length?(e=t.substring(0,2),r=t.substring(2,4),n=t.substring(4,6)):(t.length>4&&(e=t.substring(4,t.length),t=t.substring(0,4)),t.length>2&&(r=t.substring(2,t.length),t=t.substring(0,2)),t.length>0&&(n=t.substring(0,t.length))),{r:this.hexToInt(e),g:this.hexToInt(r),b:this.hexToInt(n)}}validateHex(t){return(t=(t=new String(t).toUpperCase()).replace(/[^A-F0-9]/g,"0")).length>6&&(t=t.substring(0,6)),t}webSafeDec(t){return t=Math.round(t/51),t*=51}hexToWebSafe(t){let e,r,n;return 3===t.length?(e=t.substring(0,1),r=t.substring(1,1),n=t.substring(2,1)):(e=t.substring(0,2),r=t.substring(2,4),n=t.substring(4,6)),this.intToHex(this.webSafeDec(this.hexToInt(e)))+this.intToHex(this.webSafeDec(this.hexToInt(r)))+this.intToHex(this.webSafeDec(this.hexToInt(n)))}rgbToWebSafe(t){return{r:this.webSafeDec(t.r),g:this.webSafeDec(t.g),b:this.webSafeDec(t.b)}}rgbToHex(t){return this.intToHex(t.r)+this.intToHex(t.g)+this.intToHex(t.b)}intToHex(t){let e=parseInt(t).toString(16);return 1===e.length&&(e="0"+e),e.toUpperCase()}hexToInt(t){return parseInt(t,16)}setRgb(t,e,r){let n=function(t){return t<0||t>255||isNaN(parseInt(t))?0:t};this.r=n(t),this.g=n(e),this.b=n(r),this.hex=this.rgbToHex(this)}setHex(t){this.hex=t;let e=this.hexToRgb(this.hex);this.r=e.r,this.g=e.g,this.b=e.b}}}()},9:function(t,e){Smart("smart-button",class extends Smart.ContentElement{static get properties(){return{value:{type:"string"},name:{type:"string"},type:{value:"button",type:"string"},clickMode:{allowedValues:["hover","press","release","pressAndRelease"],type:"string",value:"release"}}}static get styleUrls(){return["smart.button.css"]}template(){return"<button class=\"smart-button smart-unselectable\" inner-h-t-m-l='[[innerHTML]]' id='button' type='[[type]]' name='[[name]]' value='[[value]]' disabled='[[disabled]]' role=\"presentation\"></button>"}refresh(){}static get listeners(){return{"button.down":"_downHandler","button.mouseenter":"_mouseEnterHandler","button.mouseleave":"_mouseLeaveHandler","button.touchend":"_touchEndHandler","button.click":"_clickHandler","button.up":"_upHandler",up:"_upHandler","button.focus":"_focusHandler","button.blur":"_blurHandler"}}focus(){const t=this;t.$.button?t.$.button.focus():HTMLElement.prototype.focus.call(t)}blur(){const t=this;t.$.button?t.$.button.blur():HTMLElement.prototype.blur.call(t)}_upHandler(t){const e=this;if(t.stopPropagation(),e.$.setAttributeValue("active",!1),e.dataset.target){const r=document.querySelector(e.dataset.target);let n=e.dataset.toggle;const o="smart-window".toLowerCase();if(r&&r.nodeName.toLowerCase()===o&&"modal"===n&&(n="openModal"),"tab"===n||"pill"===n||"list"===n){const t=this.closest(".nav, .list-group"),n='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',o=!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?t.children(".active"):t.querySelectorAll("li > .active");if(t){const r=t.querySelectorAll(n);for(let t=0;t<r.length;t++)r[t].classList.remove("primary");for(let t=0;t<o.length;t++)o[t].classList.remove("active");let a=e.parentNode;for(;a;){if("LI"===a.nodeName){a.classList.add("active");break}a=a.parentNode}e.classList.add("primary")}return r.parentNode.querySelectorAll(".active").forEach(t=>{t.classList.remove("active"),t.classList.add("smart-hidden")}),r.classList.add("active"),void r.classList.remove("smart-hidden")}n&&r&&!r[n]&&"collapse"===n&&(setTimeout(()=>{r.classList.contains("smart-hidden")?r.classList.remove("smart-hidden"):r.classList.add("smart-hidden")}),t.originalEvent.preventDefault()),n&&r&&!r[n]&&"dropdown"===n?(setTimeout(()=>{r.opened=!r.opened}),t.originalEvent.preventDefault()):n&&r&&r[n]&&(setTimeout(()=>{r[n]()},50),t.originalEvent.preventDefault())}}_focusHandler(){this.$.setAttributeValue("focus",!0),this.$.fireEvent("focus")}_blurHandler(){this.$.setAttributeValue("focus",!1),this.$.fireEvent("blur")}_clickHandler(t){("release"!==this.clickMode&&"pressAndRelease"!==this.clickMode||this.readonly)&&(t.preventDefault(),t.stopPropagation())}_downHandler(t){const e=this;if(!(e.disabled||(e.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(e,t.pageX,t.pageY),e.$.setAttributeValue("active",!0),"press"!==e.clickMode&&"pressAndRelease"!==e.clickMode||e.readonly))){if(e.hasAttribute("smart-blazor"))return void e.$.dispatchEvent(new Event("click"));const r="buttons"in t?t.buttons:t.which;e.$.fireEvent("click",{buttons:r,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY})}}_mouseEnterHandler(t){const e=this;if(!e.readonly&&(e.$button.setAttributeValue("hover",!0),e.$.setAttributeValue("hover",!0),"hover"===e.clickMode)){const r="buttons"in t?t.buttons:t.which;if(e.hasAttribute("smart-blazor"))return void e.$.dispatchEvent(new Event("click"));e.$.fireEvent("click",{buttons:r,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY})}}_touchEndHandler(){const t=this;setTimeout((function(){t.$button.setAttributeValue("hover",!1),t.$.setAttributeValue("hover",!1)}),300)}_mouseLeaveHandler(){this.$button.setAttributeValue("hover",!1),this.$.setAttributeValue("hover",!1)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;"disabled"===t?(n._setFocusable(),n.$button&&n.$button.setAttributeValue("hover",!1),n.$.setAttributeValue("hover",!1),n instanceof Smart.RepeatButton&&n._stopRepeat()):"unfocusable"===t&&n._setFocusable()}_setFocusable(){const t=this.$.button?this.$.button:this;if(this.disabled||this.unfocusable)return t.removeAttribute("tabindex"),void(t.tabIndex=-1);t.tabIndex=this.tabIndex>0?this.tabIndex:0}ready(){const t=this;super.ready(),t.setAttribute("role","button"),t._setFocusable(),t.enableShadowDOM&&t.$.hiddenInput&&t.appendChild(t.$.hiddenInput)}}),Smart("smart-repeat-button",class extends Smart.Button{static get properties(){return{delay:{value:50,type:"number"},initialDelay:{value:150,type:"number"}}}static get listeners(){return{"button.down":"_startRepeat","button.mouseenter":"_overriddenHandler","button.mouseleave":"_overriddenHandler","button.pointerenter":"_updateInBoundsFlag","button.pointerleave":"_updateInBoundsFlag","button.touchmove":"_touchmoveHandler","document.up":"_stopRepeat"}}_clickHandler(t){const e=this;("release"!==e.clickMode||e.preventDefaultClick||e.readonly||e.disabled)&&(t.preventDefault(),t.stopPropagation(),e.preventDefaultClick=!1)}_updateInBoundsFlag(t){const e=this;-1!==t.type.indexOf("leave")?(e._isPointerInBounds=!1,e.$button.setAttributeValue("hover",!1),e.$.setAttributeValue("hover",!1)):(e._isPointerInBounds=!0,e.$button.setAttributeValue("hover",!0),e.$.setAttributeValue("hover",!0)),1!==("buttons"in t?t.buttons:t.which)&&e._stopRepeat(t)}_startRepeat(t){const e=this;e.setAttribute("active",""),e._initialTimer||e.readonly||(e._initialTimer=setTimeout((function(){e._repeatTimer=setInterval(()=>{if(e._isPointerInBounds){if(e.hasAttribute("smart-blazor"))return e.$.dispatchEvent(new Event("click")),void(e.preventDefaultClick=!0);const r="buttons"in t?t.buttons:t.which;e.$.fireEvent("click",{buttons:r,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY}),e.preventDefaultClick=!0}},e.delay)}),e.initialDelay))}_stopRepeat(t){const e=this;e.readonly||t&&("pointercancel"===t.type||t.originalEvent&&"pointercancel"===t.originalEvent.type)||(e.$.setAttributeValue("active",!1),e._repeatTimer&&(clearInterval(e._repeatTimer),e._repeatTimer=null),e._initialTimer&&(clearTimeout(e._initialTimer),e._initialTimer=null))}_touchmoveHandler(t){this.preventDefaultClick&&t.cancelable&&(t.preventDefault(),t.stopPropagation())}_overriddenHandler(){}}),Smart("smart-toggle-button",class extends Smart.Button{static get properties(){return{checked:{value:!1,type:"boolean?"},falseContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminate:{value:!1,type:"boolean"},trueContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateTemplate:{value:null,type:"any"},trueTemplate:{value:null,type:"any"},falseTemplate:{value:null,type:"any"},type:{value:"toggle",type:"string",defaultReflectToAttribute:!0,readonly:!0}}}static get listeners(){return{keydown:"_keyHandler",keyup:"_keyHandler",dragstart:"_dragStartHandler","button.click":"_buttonClickHandler","button.mouseenter":"_buttonMouseEnterHandler","button.mouseleave":"_buttonMouseLeaveHandler","document.up":"_documentUpHandler"}}ready(){super.ready(),this._setAriaState(),this._updateGroupValue()}_setAriaState(){const t=this,e=t.checked;null!==e?t.setAttribute("aria-pressed",e):t.setAttribute("aria-pressed","mixed")}_buttonClickHandler(){}_buttonMouseLeaveHandler(){this.removeAttribute("hover")}_buttonMouseEnterHandler(){this.setAttribute("hover",""),this.disabled||this.readonly||"hover"!==this.clickMode||(this._changeCheckState("pointer"),this.focus(),this._updateHidenInputNameAndValue())}_documentUpHandler(t){this._pressed&&(this._pressed=!1,this.disabled||this.readonly||"press"===this.clickMode||"pointercancel"===t.originalEvent.type||(this._changeCheckState("pointer"),this.focus(),this._updateHidenInputNameAndValue()))}_downHandler(t){const e=this;e.disabled||e.readonly||(e.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(e,t.pageX,t.pageY),e._pressed=!0,"press"!==e.clickMode&&"pressAndRelease"!==e.clickMode||(e._changeCheckState("pointer"),e.hasAttribute("smart-blazor")?e.$.dispatchEvent(new Event("click")):e.$.fireEvent("click"),e._updateHidenInputNameAndValue()),"press"===e.clickMode&&(t.preventDefault(),t.stopPropagation()))}_dragStartHandler(t){t.preventDefault()}_keyHandler(t){const e=this;if(!0!==e.disabled&&!e.readonly&&32===t.keyCode){if("keydown"===t.type)return void t.preventDefault();if("none"===e.switchMode)return;e._changeCheckState("keyboard"),e._updateHidenInputNameAndValue()}}_updateGroupValue(){const t=this;if(t.dataset.target){const e=document.querySelector(t.dataset.target);if(e){const r=document.querySelectorAll('[data-target="'+t.dataset.target+'"]'),n=[];if(t.checked){const r=t.dataset.property,n=t.dataset.value;if(r&&void 0!==e[r]){let t=n;"true"===t&&(t=!0),"false"===t&&(t=!1),e[r]=t}}for(let e=0;e<r.length;e++){const o=r[e];o.checked&&(o.name?(n.push(o.name),t.id&&o.setAttribute("data-id",t.id)):t.id&&n.push(t.id))}e.value=n.toString(),t._targetDispatchTimer&&clearTimeout(t._targetDispatchTimer),t._targetDispatchTimer=setTimeout(()=>{e.dispatchEvent(new Event("change"))},100)}}}_changeCheckState(t){const e=this;let r=null;null===e.checked?e.checked=!0:(r=e.checked,e.checked=!e.checked),e._handleTextSelection(),e.$.fireEvent("change",{value:e.checked,oldValue:r,changeType:t}),e.checked?e.$.fireEvent("checkValue",{changeType:t}):e.$.fireEvent("uncheckValue",{changeType:t}),e._updateGroupValue(),e._setAriaState()}_handleTextSelection(){const t=this;t.$.addClass("smart-unselectable"),t.timer&&clearTimeout(t.timer),t.timer=setTimeout(()=>t.$.removeClass("smart-unselectable"),500)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;if("checked"===t)return n.$.fireEvent("change",{value:r,oldValue:e,changeType:"api"}),void n._setAriaState();switch(t){case"trueTemplate":n._handleTemplate(!0);break;case"falseTemplate":n._handleTemplate(!1);break;case"indeterminateTemplate":n._handleTemplate()}}_htmlBindOnInitialization(){this._bindContentProperty("trueContent","smart-true-content"),this._bindContentProperty("falseContent","smart-false-content"),this._bindContentProperty("indeterminateContent","smart-indeterminate-content")}_bindContentProperty(t,e){const r=this;if(!r.$[t+"Container"])return;let n=document.createElement("div");n.innerHTML=r.innerHTML;let o,a=n.getElementsByClassName(e);if(a.length>0)for(let t=0;t<a.length;t++)o=a[t];""===r[t]&&(r[t]=void 0===o?"":o.outerHTML),r.$[t+"Container"].innerHTML=r[t]}_updateContentProperties(){const t=this;function e(e){t.$[e+"Container"]&&(t[e]=t.$[e+"Container"].innerHTML)}e("trueContent"),e("falseContent"),e("indeterminateContent")}_updateHidenInputValue(){const t=this;if(!t.$.hiddenInput)return;let e;e=null===t.checked?"null":!1===t.checked?"off":t.value||"on",t.$.hiddenInput.setAttribute("value",e)}_updateHidenInputName(){if(!this.$.hiddenInput)return;let t=!1===this.checked?"":this.name||"";this.$.hiddenInput.setAttribute("name",t)}_updateHidenInputNameAndValue(){this._updateHidenInputName(),this._updateHidenInputValue()}_handleTemplate(t,e){const r=this;let n,o,a;if(!0===t?(n=r.trueTemplate,o=r.$.trueContentContainer,a=r.trueContent):!1===t?(n=r.falseTemplate,o=r.$.falseContentContainer,a=r.falseContent):(n=r.indeterminateTemplate,o=r.$.indeterminateContentContainer,a=r.indeterminateContent),e&&(o.innerHTML=a||""),null===n||!n)return;if("function"==typeof n)return void n(o,{value:a});if(!("content"in document.createElement("template")))return void r.error(r.localize("htmlTemplateNotSuported",{elementType:r.nodeName.toLowerCase()}));if(n=document.getElementById(n),null===n||!("content"in n))return void r.error(r.localize("invalidTemplate",{elementType:r.nodeName.toLowerCase(),property:"template"}));const i=n.content,s=i.childNodes.length,l=/{{\w+}}/g;let d,m=[];for(let t=0;t<s;t++)for(d=l.exec(i.childNodes[t].innerHTML);d;)m.push({childNodeIndex:t,bindingString:d[0]}),d=l.exec(i.childNodes[t].innerHTML);const c=m.length;let h,u,p=document.importNode(n.content,!0);for(let t=0;t<c;t++){h=p.childNodes[m[t].childNodeIndex],u=m.length;for(let e=0;e<u;e++)h.innerHTML=h.innerHTML.replace(m[t].bindingString,a)}o.innerHTML="";for(let t=0;t<p.childNodes.length;t++)p.childNodes[t].outerHTML&&(o.innerHTML+=p.childNodes[t].outerHTML)}})}});
|
|
8
|
+
*/!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=232)}({0:function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var o=(i=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),a=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(a).concat([o]).join("\n")}var i,s,l;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&o[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},1:function(t,e,r){(e=r(0)(!1)).push([t.i,"/* smart-button, smart-repeat-button, smart-toggle-button */\r\nsmart-button,\r\nsmart-toggle-button,\r\nsmart-repeat-button {\r\n --smart-button-flat-color: var(--smart-background-color);\r\n text-align: center;\r\n display: inline-flex;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n text-transform: var(--smart-button-text-transform);\r\n letter-spacing: .08929em;\r\n overflow: hidden;\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n visibility: hidden;\r\n font-weight: 500;\r\n}\r\nsmart-button.smart-element,\r\nsmart-toggle-button.smart-element,\r\nsmart-repeat-button.smart-element {\r\n display: inline-flex;\r\n visibility: inherit;\r\n}\r\nsmart-button button::-moz-focus-inner,\r\nsmart-toggle-button button::-moz-focus-inner,\r\nsmart-repeat-button button::-moz-focus-inner {\r\n border: 0;\r\n}\r\nsmart-button.primary,\r\nsmart-toggle-button.primary,\r\nsmart-repeat-button.primary {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-primary);\r\n --smart-border: var(--smart-primary);\r\n --smart-border-rgb: var(--smart-primary-rgb);\r\n --smart-background-color: var(--smart-primary-color);\r\n --smart-ui-state-hover: var(--smart-primary);\r\n --smart-ui-state-border-hover: var(--smart-primary);\r\n --smart-ui-state-color-hover: var(--smart-primary-color);\r\n --smart-ui-state-active: var(--smart-primary);\r\n --smart-ui-state-border-active: var(--smart-primary);\r\n --smart-ui-state-color-active: var(--smart-primary-color);\r\n --smart-ui-state-focus: var(--smart-primary);\r\n --smart-ui-state-border-focus: var(--smart-primary);\r\n --smart-ui-state-color-focus: var(--smart-primary-color);\r\n --smart-button-flat-color: var(--smart-primary);\r\n --smart-button-outlined-color: var(--smart-primary);\r\n --smart-button-outlined-border: var(--smart-primary);\r\n}\r\nsmart-button.secondary,\r\nsmart-toggle-button.secondary,\r\nsmart-repeat-button.secondary {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-secondary);\r\n --smart-border: var(--smart-secondary);\r\n --smart-border-rgb: var(--smart-secondary-rgb);\r\n --smart-background-color: var(--smart-secondary-color);\r\n --smart-ui-state-hover: var(--smart-secondary);\r\n --smart-ui-state-border-hover: var(--smart-secondary);\r\n --smart-ui-state-color-hover: var(--smart-secondary-color);\r\n --smart-ui-state-active: var(--smart-secondary);\r\n --smart-ui-state-border-active: var(--smart-secondary);\r\n --smart-ui-state-color-active: var(--smart-secondary-color);\r\n --smart-ui-state-focus: var(--smart-secondary);\r\n --smart-ui-state-border-focus: var(--smart-secondary);\r\n --smart-ui-state-color-focus: var(--smart-secondary-color);\r\n --smart-button-flat-color: var(--smart-secondary);\r\n --smart-button-outlined-color: var(--smart-secondary);\r\n --smart-button-outlined-border: var(--smart-secondary);\r\n}\r\nsmart-button.success,\r\nsmart-toggle-button.success,\r\nsmart-repeat-button.success {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-success);\r\n --smart-border: var(--smart-success);\r\n --smart-border-rgb: var(--smart-success-rgb);\r\n --smart-background-color: var(--smart-success-color);\r\n --smart-ui-state-hover: var(--smart-success);\r\n --smart-ui-state-border-hover: var(--smart-success);\r\n --smart-ui-state-color-hover: var(--smart-success-color);\r\n --smart-ui-state-active: var(--smart-success);\r\n --smart-ui-state-border-active: var(--smart-success);\r\n --smart-ui-state-color-active: var(--smart-success-color);\r\n --smart-ui-state-focus: var(--smart-success);\r\n --smart-ui-state-border-focus: var(--smart-success);\r\n --smart-ui-state-color-focus: var(--smart-success-color);\r\n --smart-button-flat-color: var(--smart-success);\r\n --smart-button-outlined-color: var(--smart-success);\r\n --smart-button-outlined-border: var(--smart-success);\r\n}\r\nsmart-button.error,\r\nsmart-toggle-button.error,\r\nsmart-repeat-button.error {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-error);\r\n --smart-border: var(--smart-error);\r\n --smart-border-rgb: var(--smart-error-rgb);\r\n --smart-background-color: var(--smart-error-color);\r\n --smart-ui-state-hover: var(--smart-error);\r\n --smart-ui-state-border-hover: var(--smart-error);\r\n --smart-ui-state-color-hover: var(--smart-error-color);\r\n --smart-ui-state-active: var(--smart-error);\r\n --smart-ui-state-border-active: var(--smart-error);\r\n --smart-ui-state-color-active: var(--smart-error-color);\r\n --smart-ui-state-focus: var(--smart-error);\r\n --smart-ui-state-border-focus: var(--smart-error);\r\n --smart-ui-state-color-focus: var(--smart-error-color);\r\n --smart-button-flat-color: var(--smart-error);\r\n --smart-button-outlined-color: var(--smart-error);\r\n --smart-button-outlined-border: var(--smart-error);\r\n}\r\nsmart-button.info,\r\nsmart-toggle-button.info,\r\nsmart-repeat-button.info {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-info);\r\n --smart-border: var(--smart-info);\r\n --smart-border-rgb: var(--smart-info-rgb);\r\n --smart-background-color: var(--smart-info-color);\r\n --smart-ui-state-hover: var(--smart-info);\r\n --smart-ui-state-border-hover: var(--smart-info);\r\n --smart-ui-state-color-hover: var(--smart-info-color);\r\n --smart-ui-state-active: var(--smart-info);\r\n --smart-ui-state-border-active: var(--smart-info);\r\n --smart-ui-state-color-active: var(--smart-info-color);\r\n --smart-ui-state-focus: var(--smart-info);\r\n --smart-ui-state-border-focus: var(--smart-info);\r\n --smart-ui-state-color-focus: var(--smart-info-color);\r\n --smart-button-flat-color: var(--smart-info);\r\n --smart-button-outlined-color: var(--smart-info);\r\n --smart-button-outlined-border: var(--smart-info);\r\n}\r\nsmart-button.warning,\r\nsmart-toggle-button.warning,\r\nsmart-repeat-button.warning {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-warning);\r\n --smart-border: var(--smart-warning);\r\n --smart-border-rgb: var(--smart-warning-rgb);\r\n --smart-background-color: var(--smart-warning-color);\r\n --smart-ui-state-hover: var(--smart-warning);\r\n --smart-ui-state-border-hover: var(--smart-warning);\r\n --smart-ui-state-color-hover: var(--smart-warning-color);\r\n --smart-ui-state-active: var(--smart-warning);\r\n --smart-ui-state-border-active: var(--smart-warning);\r\n --smart-ui-state-color-active: var(--smart-warning-color);\r\n --smart-ui-state-focus: var(--smart-warning);\r\n --smart-ui-state-border-focus: var(--smart-warning);\r\n --smart-ui-state-color-focus: var(--smart-warning-color);\r\n --smart-button-flat-color: var(--smart-warning);\r\n --smart-button-outlined-color: var(--smart-warning);\r\n --smart-button-outlined-border: var(--smart-warning);\r\n}\r\nsmart-button.light,\r\nsmart-toggle-button.light,\r\nsmart-repeat-button.light {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-light);\r\n --smart-border: var(--smart-light);\r\n --smart-border-rgb: var(--smart-light-rgb);\r\n --smart-background-color: var(--smart-light-color);\r\n --smart-ui-state-hover: var(--smart-light);\r\n --smart-ui-state-border-hover: var(--smart-light);\r\n --smart-ui-state-color-hover: var(--smart-light-color);\r\n --smart-ui-state-active: var(--smart-light);\r\n --smart-ui-state-border-active: var(--smart-light);\r\n --smart-ui-state-color-active: var(--smart-light-color);\r\n --smart-ui-state-focus: var(--smart-light);\r\n --smart-ui-state-border-focus: var(--smart-light);\r\n --smart-ui-state-color-focus: var(--smart-light-color);\r\n --smart-button-flat-color: var(--smart-light);\r\n --smart-button-outlined-color: var(--smart-light);\r\n --smart-button-outlined-border: var(--smart-light);\r\n}\r\nsmart-button.dark,\r\nsmart-toggle-button.dark,\r\nsmart-repeat-button.dark {\r\n --smart-button-opacity-hover: 0.75;\r\n --smart-button-opacity-focus: 0.7;\r\n --smart-button-opacity-active: 0.65;\r\n --smart-background: var(--smart-dark);\r\n --smart-border: var(--smart-dark);\r\n --smart-border-rgb: var(--smart-dark-rgb);\r\n --smart-background-color: var(--smart-dark-color);\r\n --smart-ui-state-hover: var(--smart-dark);\r\n --smart-ui-state-border-hover: var(--smart-dark);\r\n --smart-ui-state-color-hover: var(--smart-dark-color);\r\n --smart-ui-state-active: var(--smart-dark);\r\n --smart-ui-state-border-active: var(--smart-dark);\r\n --smart-ui-state-color-active: var(--smart-dark-color);\r\n --smart-ui-state-focus: var(--smart-dark);\r\n --smart-ui-state-border-focus: var(--smart-dark);\r\n --smart-ui-state-color-focus: var(--smart-dark-color);\r\n --smart-button-flat-color: var(--smart-dark);\r\n --smart-button-outlined-color: var(--smart-dark);\r\n --smart-button-outlined-border: var(--smart-dark);\r\n}\r\nsmart-button[hover],\r\nsmart-toggle-button[hover],\r\nsmart-repeat-button[hover] {\r\n color: var(--smart-ui-state-color-hover);\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n opacity: var(--smart-button-opacity-hover);\r\n}\r\nsmart-button[focus],\r\nsmart-toggle-button[focus],\r\nsmart-repeat-button[focus] {\r\n color: var(--smart-ui-state-color-focus);\r\n border-color: var(--smart-ui-state-border-focus);\r\n background-color: var(--smart-ui-state-focus);\r\n opacity: var(--smart-button-opacity-focus);\r\n}\r\nsmart-button[active],\r\nsmart-toggle-button[active],\r\nsmart-repeat-button[active] {\r\n color: var(--smart-ui-state-color-active);\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n opacity: var(--smart-button-opacity-active);\r\n}\r\nsmart-button[disabled],\r\nsmart-toggle-button[disabled],\r\nsmart-repeat-button[disabled] {\r\n color: var(--smart-disabled-color);\r\n border-color: var(--smart-disabled);\r\n background-color: var(--smart-disabled);\r\n cursor: default;\r\n --smart-background: var(--smart-disabled);\r\n --smart-border: var(--smart-disabled);\r\n --smart-background-color: var(--smart-disabled-color);\r\n}\r\nsmart-button.large button,\r\nsmart-toggle-button.large button,\r\nsmart-repeat-button.large button {\r\n padding: var(--smart-button-large-padding);\r\n font-size: var(--smart-button-large-font-size);\r\n}\r\nsmart-button.small button,\r\nsmart-toggle-button.small button,\r\nsmart-repeat-button.small button {\r\n padding: var(--smart-button-small-padding);\r\n font-size: var(--smart-button-small-font-size);\r\n}\r\nsmart-button.very-small button,\r\nsmart-toggle-button.very-small button,\r\nsmart-repeat-button.very-small button {\r\n padding: var(--smart-button-very-small-padding);\r\n font-size: var(--smart-button-very-small-font-size);\r\n}\r\nsmart-button.rounded,\r\nsmart-toggle-button.rounded,\r\nsmart-repeat-button.rounded {\r\n --smart-border-top-left-radius: 50px;\r\n --smart-border-top-right-radius: 50px;\r\n --smart-border-bottom-left-radius: 50px;\r\n --smart-border-bottom-right-radius: 50px;\r\n border-radius: var(--smart-border-bottom-left-radius) !important;\r\n}\r\nsmart-button.squared,\r\nsmart-toggle-button.squared,\r\nsmart-repeat-button.squared {\r\n --smart-border-top-left-radius: 0;\r\n --smart-border-top-right-radius: 0;\r\n --smart-border-bottom-left-radius: 0;\r\n --smart-border-bottom-right-radius: 0;\r\n}\r\nsmart-button.flat,\r\nsmart-toggle-button.flat,\r\nsmart-repeat-button.flat {\r\n color: var(--smart-button-flat-color);\r\n background: transparent;\r\n border-color: transparent;\r\n}\r\nsmart-button.flat[hover],\r\nsmart-toggle-button.flat[hover],\r\nsmart-repeat-button.flat[hover] {\r\n color: var(--smart-button-flat-color);\r\n background: transparent;\r\n border-color: transparent;\r\n}\r\nsmart-button.flat[active],\r\nsmart-toggle-button.flat[active],\r\nsmart-repeat-button.flat[active] {\r\n color: var(--smart-button-flat-color);\r\n background: transparent;\r\n border-color: transparent;\r\n}\r\nsmart-button.flat[focus],\r\nsmart-toggle-button.flat[focus],\r\nsmart-repeat-button.flat[focus] {\r\n border-color: var(--smart-ui-state-focus);\r\n}\r\nsmart-button.flat[checked],\r\nsmart-toggle-button.flat[checked],\r\nsmart-repeat-button.flat[checked] {\r\n text-decoration: underline;\r\n background: var(--smart-ui-state-active);\r\n}\r\nsmart-button.flat .smart-ripple,\r\nsmart-toggle-button.flat .smart-ripple,\r\nsmart-repeat-button.flat .smart-ripple {\r\n background-color: var(--smart-button-flat-color);\r\n}\r\nsmart-button.outlined,\r\nsmart-toggle-button.outlined,\r\nsmart-repeat-button.outlined {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-button-outlined-border);\r\n background: transparent;\r\n border-width: calc(2 * var(--smart-border-width));\r\n}\r\nsmart-button.outlined[hover],\r\nsmart-toggle-button.outlined[hover],\r\nsmart-repeat-button.outlined[hover] {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-button-outlined-border);\r\n background: transparent;\r\n}\r\nsmart-button.outlined[active],\r\nsmart-toggle-button.outlined[active],\r\nsmart-repeat-button.outlined[active] {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-button-outlined-border);\r\n background: transparent;\r\n}\r\nsmart-button.outlined[focus],\r\nsmart-toggle-button.outlined[focus],\r\nsmart-repeat-button.outlined[focus] {\r\n color: var(--smart-button-outlined-color);\r\n border-color: var(--smart-ui-state-focus);\r\n background: transparent;\r\n}\r\nsmart-button.outlined[checked],\r\nsmart-toggle-button.outlined[checked],\r\nsmart-repeat-button.outlined[checked] {\r\n color: var(--smart-ui-state-color-active);\r\n border-color: var(--smart-ui-state-active);\r\n background: var(--smart-ui-state-active);\r\n}\r\nsmart-button.outlined .smart-ripple,\r\nsmart-toggle-button.outlined .smart-ripple,\r\nsmart-repeat-button.outlined .smart-ripple {\r\n background-color: var(--smart-button-outlined-color);\r\n}\r\nsmart-button.outlined button.smart-button,\r\nsmart-toggle-button.outlined button.smart-button,\r\nsmart-repeat-button.outlined button.smart-button {\r\n border-radius: initial;\r\n}\r\nsmart-button.raised,\r\nsmart-toggle-button.raised,\r\nsmart-repeat-button.raised {\r\n box-shadow: var(--smart-elevation-2);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n}\r\nsmart-button.raised[hover],\r\nsmart-toggle-button.raised[hover],\r\nsmart-repeat-button.raised[hover] {\r\n box-shadow: var(--smart-elevation-4);\r\n}\r\nsmart-button.raised[active], smart-button.raised[checked], smart-button.raised[active],\r\nsmart-button.raised button[active],\r\nsmart-toggle-button.raised[active],\r\nsmart-toggle-button.raised[checked],\r\nsmart-toggle-button.raised[active],\r\nsmart-toggle-button.raised button[active],\r\nsmart-repeat-button.raised[active],\r\nsmart-repeat-button.raised[checked],\r\nsmart-repeat-button.raised[active],\r\nsmart-repeat-button.raised button[active] {\r\n box-shadow: var(--smart-elevation-8);\r\n}\r\nsmart-button.raised[focus], smart-button.raised[focus]:not([checked]),\r\nsmart-toggle-button.raised[focus],\r\nsmart-toggle-button.raised[focus]:not([checked]),\r\nsmart-repeat-button.raised[focus],\r\nsmart-repeat-button.raised[focus]:not([checked]) {\r\n box-shadow: var(--smart-elevation-6);\r\n}\r\nsmart-button.floating,\r\nsmart-toggle-button.floating,\r\nsmart-repeat-button.floating {\r\n border-radius: 50%;\r\n width: 48px;\r\n height: 48px;\r\n box-shadow: var(--smart-elevation-4);\r\n transition: background-color 100ms linear, box-shadow 280ms ease-in-out;\r\n}\r\nsmart-button.floating[hover],\r\nsmart-toggle-button.floating[hover],\r\nsmart-repeat-button.floating[hover] {\r\n box-shadow: var(--smart-elevation-6);\r\n}\r\nsmart-button.floating[active], smart-button.floating[checked],\r\nsmart-toggle-button.floating[active],\r\nsmart-toggle-button.floating[checked],\r\nsmart-repeat-button.floating[active],\r\nsmart-repeat-button.floating[checked] {\r\n box-shadow: var(--smart-elevation-12);\r\n}\r\nsmart-button.floating[focus], smart-button.floating[focus]:not([checked]),\r\nsmart-toggle-button.floating[focus],\r\nsmart-toggle-button.floating[focus]:not([checked]),\r\nsmart-repeat-button.floating[focus],\r\nsmart-repeat-button.floating[focus]:not([checked]) {\r\n box-shadow: var(--smart-elevation-6);\r\n}\r\n\r\nbutton.smart-button {\r\n position: relative;\r\n padding: var(--smart-button-padding);\r\n text-align: inherit;\r\n vertical-align: inherit;\r\n cursor: inherit;\r\n text-transform: inherit;\r\n font-weight: inherit;\r\n letter-spacing: inherit;\r\n background: inherit;\r\n color: inherit;\r\n border: none;\r\n -webkit-font-smoothing: antialiased;\r\n opacity: var(--smart-button-opacity);\r\n white-space: nowrap;\r\n border-radius: inherit;\r\n}\r\n\r\n.smart-button .smart-ripple {\r\n background: var(--smart-background-color);\r\n}\r\n\r\nsmart-toggle-button .smart-container,\r\n[smart-toggle-button] .smart-container {\r\n font-weight: inherit;\r\n font-style: inherit;\r\n}\r\nsmart-toggle-button[checked],\r\n[smart-toggle-button][checked] {\r\n color: var(--smart-ui-state-color-selected);\r\n border-color: var(--smart-ui-state-border-selected);\r\n background-color: var(--smart-ui-state-selected);\r\n}\r\n\r\n.smart-scroll-button .smart-button {\r\n padding: 0px;\r\n}\r\n\r\n:host(.smart-button.flat) .smart-ripple {\r\n background-color: var(--smart-button-flat-color);\r\n}\r\n\r\n:host(.smart-button.outlined) .smart-ripple {\r\n background-color: var(--smart-button-outlined-color);\r\n}\r\n\r\nbutton.smart-button[type]:not(.smart-container) {\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n text-align: center;\r\n vertical-align: middle;\r\n cursor: pointer;\r\n text-transform: var(--smart-button-text-transform);\r\n font-weight: 500;\r\n letter-spacing: .08929em;\r\n overflow: hidden;\r\n font-style: var(--smart-font-style);\r\n font-size: var(--smart-font-size);\r\n background: var(--smart-background);\r\n outline: none;\r\n}\r\n\r\nbutton.smart-button[type]:hover {\r\n color: var(--smart-ui-state-color-hover);\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n}\r\n\r\nbutton.smart-button[type]:not([disabled]):active {\r\n color: var(--smart-ui-state-color-active);\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n}\r\n\r\n/* smart-button, smart-repeat-button, smart-toggle-button */\r\nsmart-button[right-to-left],\r\nsmart-toggle-button[right-to-left],\r\nsmart-repeat-button[right-to-left] {\r\n direction: rtl;\r\n}\r\n",""]),t.exports=e},10:function(t,e){Smart("smart-scroll-bar",class extends Smart.BaseElement{static get properties(){return{clickRepeatDelay:{type:"integer",value:50},largeStep:{type:"integer",value:100},min:{type:"integer",value:0},max:{type:"integer",value:1e3},mechanicalAction:{value:"switchWhileDragging",allowedValues:["switchUntilReleased","switchWhenReleased","switchWhileDragging"],type:"string"},orientation:{type:"string",value:"horizontal",allowedValues:["horizontal","vertical"]},step:{type:"integer",value:10},showButtons:{type:"boolean",value:!0,defaultReflectToAttribute:!0},value:{type:"integer",value:0}}}static get styleUrls(){return["smart.scrollbar.css"]}template(){return'<div id="container" class="smart-container" role="presentation">\n <div id="nearButton" class="smart-scroll-button smart-arrow-left" role="presentation" aria-hidden="true"></div>\n <div id="track" class="smart-track" role="presentation">\n <div id="thumb" class="smart-thumb" role="presentation"></div>\n </div>\n <div id="farButton" class="smart-scroll-button smart-arrow-right" role="presentation" aria-hidden="true"></div>\n </div>'}static get listeners(){return{"nearButton.click":"_nearButtonClickHandler","nearButton.down":"_startRepeat","nearButton.up":"_stopRepeat","nearButton.pointerenter":"_updateInBoundsFlag","nearButton.pointerleave":"_updateInBoundsFlag","farButton.click":"_farButtonClickHandler","farButton.down":"_startRepeat","farButton.up":"_stopRepeat","farButton.pointerenter":"_updateInBoundsFlag","farButton.pointerleave":"_updateInBoundsFlag","track.down":"_trackDownHandler","track.click":"_trackClickHandler","track.move":"_trackMoveHandler","thumb.down":"_dragStartHandler","document.move":"_dragHandler","document.up":"_dragEndHandler",up:"_dragEndHandler","document.selectstart":"_selectStartHandler",resize:"_resizeHandler"}}_updateInBoundsFlag(t){const e=this,r=t.target;r._isPointerInBounds=!0,-1!==t.type.indexOf("leave")&&(r._isPointerInBounds=!1),1!==("buttons"in t?t.buttons:t.which)&&e._stopRepeat(t)}_startRepeat(t){const e=this;if(e.disabled)return;const r=t.target;r._initialTimer||(r._initialTimer=setTimeout((function(){r._repeatTimer=setInterval(()=>{if(r._isPointerInBounds){const e="buttons"in t?t.buttons:t.which;r.$.fireEvent("click",{buttons:e,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY})}},e.clickRepeatDelay)}),3*e.clickRepeatDelay))}_stopRepeat(t){if(this.disabled)return;const e=t.target;e._repeatTimer&&(clearInterval(e._repeatTimer),e._repeatTimer=null),e._initialTimer&&(clearTimeout(e._initialTimer),e._initialTimer=null)}_calculateThumbSize(t){const e=this,r=e.max-e.min,n="horizontal"===e.orientation?e.$.track.offsetWidth>10:e.$.track.offsetHeight>10;let o=0;return r>=1&&n?(o=t/(r+t)*t,e.$.thumb.className.indexOf("smart-hidden")>=0&&e.$thumb.removeClass("smart-hidden")):e.$thumb.addClass("smart-hidden"),Math.max(10,Math.min(o,t))}_dragStartHandler(t){this.disabled||(this.thumbCapture=!0,this.dragStartX=t.clientX,this.dragStartY=t.clientY,this.dragStartValue=this.value,t.stopPropagation(),t.preventDefault())}_dragHandler(t){if(!0!==this.thumbCapture)return;this._isThumbDragged=!0;const e=(this.max-this.min)/(this.scrollBarSize-this.thumbSize),r="horizontal"===this.orientation?(t.clientX-this.dragStartX)*e:(t.clientY-this.dragStartY)*e;let n=r;this.rightToLeft&&"horizontal"===this.orientation&&(n=-r),this._updateValue(this.dragStartValue+n),t.stopPropagation(),t.preventDefault(),t.originalEvent&&(t.originalEvent.stopPropagation(),t.originalEvent.preventDefault())}_dragEndHandler(t){const e=this;e._trackDownTimer&&(clearInterval(e._trackDownTimer),e._trackDownTimer=null),e.thumbCapture&&(e.thumbCapture=!1,e._isThumbDragged=!1,"switchWhenReleased"===e.mechanicalAction?e._updateValue(e.dragStartValue,e.value):"switchUntilReleased"===this.mechanicalAction&&e._updateValue(e.dragStartValue),t.preventDefault(),t.stopPropagation(),t.originalEvent.preventDefault(),t.originalEvent.stopPropagation())}_farButtonClickHandler(){const t=this;if(t.disabled)return;const e=t.value;t._updateValue(t.value+("horizontal"===t.orientation&&t.rightToLeft?-1:1)*t.step),"switchUntilReleased"===t.mechanicalAction&&t._updateValue(e)}_nearButtonClickHandler(){const t=this;if(t.disabled)return;const e=t.value;t._updateValue(t.value-("horizontal"===t.orientation&&t.rightToLeft?-1:1)*t.step),"switchUntilReleased"===t.mechanicalAction&&t._updateValue(e)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;switch(t){case"min":case"max":case"orientation":case"showButtons":n._layout(),"min"===t?n.setAttribute("aria-valuemin",r):"max"===t?n.setAttribute("aria-valuemax",r):"orientation"===t&&n.setAttribute("aria-orientation",r);break;case"value":n._updateValue(e,r);break;default:n._layout()}}render(){this.setAttribute("role","scrollbar"),this.setAttribute("aria-orientation",this.orientation),this.setAttribute("aria-valuemin",this.min),this.setAttribute("aria-valuemax",this.max),this.setAttribute("aria-valuenow",this.value),this._layout(),super.render()}_resizeHandler(){this._layout()}refresh(){this._layout()}beginUpdate(){this._isUpdating=!0}endUpdate(){this._isUpdating=!1,this.refreshValue()}refreshValue(){this._layout(),this._updateValue(this.value)}_layout(){const t=this;t._isUpdating||(t.scrollBarSize="horizontal"===t.orientation?t.$.track.offsetWidth:t.$.track.offsetHeight,t.thumbSize=t._calculateThumbSize(t.scrollBarSize),"horizontal"===t.orientation&&t.$.thumb.style.width!==t.thumbSize+"px"?t.$.thumb.style.width=t.thumbSize+"px":"vertical"===t.orientation&&t.$.thumb.style.height!==t.thumbSize+"px"&&(t.$.thumb.style.height=t.thumbSize+"px"),"horizontal"===t.orientation?(t.$.nearButton.classList.contains("smart-arrow-up")&&t.$.nearButton.classList.remove("smart-arrow-up"),t.$.farButton.classList.contains("smart-arrow-down")&&t.$.farButton.classList.remove("smart-arrow-down"),t.$.nearButton.classList.contains("smart-arrow-left")||t.$.nearButton.classList.add("smart-arrow-left"),t.$.farButton.classList.contains("smart-arrow-right")||t.$.farButton.classList.add("smart-arrow-right")):(t.$.nearButton.classList.contains("smart-arrow-left")&&t.$.nearButton.classList.remove("smart-arrow-left"),t.$.farButton.classList.contains("smart-arrow-right")&&t.$.farButton.classList.remove("smart-arrow-right"),t.$.nearButton.classList.contains("smart-arrow-up")||t.$.nearButton.classList.add("smart-arrow-up"),t.$.farButton.classList.contains("smart-arrow-down")||t.$.farButton.classList.add("smart-arrow-down")),t._updateThumbPosition(),(t.value>t.max||t.value<t.min)&&t._updateValue(t.value,t.value>t.max?t.max:t.min))}_selectStartHandler(t){this.thumbCapture&&t.preventDefault()}_trackDownHandler(t){const e=this;t.target===e.$.track&&(e._trackDownTimer&&clearInterval(e._trackDownTimer),e.thumbCapture||(e._trackDownTimer=setInterval((function(){e._trackClickHandler(t)}),e.clickRepeatDelay),t.stopPropagation(),t.preventDefault()))}_trackClickHandler(t){const e=this;if(e.disabled)return;if(e._isThumbDragged)return clearInterval(e._trackDownTimer),void(e._trackDownTimer=null);const r=e.$.thumb.getBoundingClientRect(),n=t.pageX-window.pageXOffset,o=t.pageY-window.pageYOffset,a=(e.rightToLeft?-1:1)*e.value;"horizontal"===e.orientation?n>(e._isThumbDragged?e.dragStartX:r.right)?e._updateValue(e.value+(e.rightToLeft?-1:1)*e.largeStep):n<(e._isThumbDragged?e.dragStartX:r.left)&&e._updateValue(e.value-(e.rightToLeft?-1:1)*e.largeStep):o>(e._isThumbDragged?e.dragStartY:r.bottom)?e._updateValue(e.value+e.largeStep):o<(e._isThumbDragged?e.dragStartY:r.top)&&e._updateValue(e.value-e.largeStep),"switchUntilReleased"===e.mechanicalAction&&e._updateValue(a)}_trackMoveHandler(t){"touchmove"===t.originalEvent.type&&t.originalEvent.preventDefault()}_updateValue(t,e){const r=this;if(!r._isUpdating&&(1===arguments.length&&(e=t,t=r.value),(void 0===e||isNaN(e))&&(e=r.min),e>r.max&&(e=r.max),e<r.min&&(e=r.min),r.value=e,t!==e)){if(r.setAttribute("aria-valuenow",e),r._updateThumbPosition(),r.thumbCapture&&"switchWhenReleased"===r.mechanicalAction)return;if(r.onChange)return void r.onChange({value:r.value,oldValue:t,min:r.min,max:r.max,context:r});r.$.fireEvent("change",{value:r.value,oldValue:t,min:r.min,max:r.max})}}_updateThumbPosition(){const t=this,e="horizontal"===t.orientation?t.$.track.offsetWidth:t.$.track.offsetHeight,r=t._calculateThumbSize(e),n=e-r;let o=(e-r)/(t.max-t.min)*(t.value-t.min);t.rightToLeft&&"horizontal"===t.orientation&&(o=(e-r)/(t.max-t.min)*(t.max-t.value-t.min)),o=Math.min(n,Math.max(0,o)),"vertical"===t.orientation&&t.$.thumb.style.top!==o+"px"?t.$.thumb.style.top=o+"px":"horizontal"===t.orientation&&t.$.thumb.style.left!==o+"px"&&(t.$.thumb.style.left=o+"px")}})},138:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* smart-chart */\r\nsmart-chart {\r\n display: block;\r\n width: var(--smart-chart-default-width);\r\n height: var(--smart-chart-default-height); }\r\n smart-chart .smart-chart-axis-text,\r\n smart-chart .smart-chart-label-text,\r\n smart-chart .smart-chart-legend-text,\r\n smart-chart .smart-chart-annotation-text,\r\n smart-chart .smart-chart-axis-description {\r\n box-sizing: content-box;\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-size: calc(var(--smart-font-size) - 1px); }\r\n smart-chart .smart-chart-title-text {\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-weight: bold;\r\n font-size: calc(var(--smart-font-size) + 2px); }\r\n smart-chart .smart-chart-title-description {\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size); }\r\n smart-chart[theme="dark"] .smart-chart-title-text,\r\n smart-chart[theme="dark"] .smart-chart-title-description,\r\n smart-chart[theme="dark"] .smart-chart-axis-text,\r\n smart-chart[theme="dark"] .smart-chart-axis-description .smart-chart-label-text,\r\n smart-chart[theme="dark"] .smart-chart-legend-text,\r\n smart-chart[theme="dark"] .smart-chart-annotation-text {\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color); }\r\n\r\n.smart-chart-range-selector > smart-chart {\r\n width: 100%;\r\n height: 100%;\r\n touch-action: none; }\r\n.smart-chart-range-selector .slider {\r\n box-sizing: content-box;\r\n pointer-events: none; }\r\n\r\n.smart-chart-tooltip {\r\n position: absolute;\r\n cursor: default;\r\n z-index: 10000000;\r\n transition: 0.3s ease-in, transform 0.3s ease-in;\r\n opacity: 1;\r\n transform: scale(1); }\r\n .smart-chart-tooltip .smart-chart-tooltip-content {\r\n position: absolute;\r\n box-sizing: content-box;\r\n outline: none;\r\n border: 1px solid transparent;\r\n padding: 3px;\r\n text-align: center;\r\n vertical-align: middle;\r\n margin: 0 0 0 0;\r\n cursor: default;\r\n left: 0;\r\n top: 0;\r\n border-radius: var(--smart-border-radius); }\r\n .smart-chart-tooltip .smart-chart-tooltip-text {\r\n box-sizing: content-box;\r\n fill: var(--smart-background-color);\r\n color: var(--smart-background-color);\r\n font-family: var(--smart-font-family);\r\n font-size: calc(var(--smart-font-size) - 1px); }\r\n .smart-chart-tooltip .smart-chart-tooltip-arrow-outer {\r\n box-sizing: content-box;\r\n width: 0;\r\n height: 0;\r\n position: absolute;\r\n z-index: 10000001; }\r\n .smart-chart-tooltip .smart-chart-tooltip-arrow-inner {\r\n box-sizing: content-box;\r\n width: 0;\r\n height: 0;\r\n position: absolute;\r\n z-index: 10000002; }\r\n .smart-chart-tooltip[animation="none"] {\r\n transition: none; }\r\n .smart-chart-tooltip.smart-visibility-hidden {\r\n transform: scale(0); }\r\n\r\n[theme="dark"] .smart-chart-tooltip:not([theme="dark"]) .smart-chart-tooltip-text {\r\n fill: var(--smart-background);\r\n color: var(--smart-background); }\r\n\r\n/* smart-chart */\r\nsmart-chart[right-to-left] .smart-chart-axis-text,\r\nsmart-chart[right-to-left] .smart-chart-axis-description,\r\nsmart-chart[right-to-left] .smart-chart-title-text,\r\nsmart-chart[right-to-left] .smart-chart-legend-text,\r\nsmart-chart[right-to-left] .smart-chart-annotation-text,\r\nsmart-chart[right-to-left] .smart-chart-label-text {\r\n direction: rtl;\r\n text-anchor: end; }\r\n\r\n.smart-chart-tooltip[right-to-left] .smart-chart-tooltip-text {\r\n direction: rtl;\r\n text-anchor: end; }\r\n',""]),t.exports=e},166:function(t,e,r){Smart("smart-chart",class extends Smart.BaseElement{static get properties(){return{animationDuration:{value:300,type:"number"},backgroundColor:{value:null,type:"string?"},backgroundImage:{value:"",type:"string"},borderLineColor:{value:null,type:"string?"},borderLineWidth:{value:1,type:"number"},caption:{value:"Caption",type:"string"},clip:{value:!0,type:"boolean"},colorScheme:{value:"scheme01",type:"string"},columnSeriesOverlap:{value:!1,type:"boolean"},crosshairsColor:{value:null,type:"string?"},crosshairsDashStyle:{value:"2,2",type:"string"},crosshairsLineWidth:{value:1,type:"number"},dataSource:{value:[],type:"object",reflectToAttribute:!1},description:{value:"Description",type:"string"},draw:{value:null,type:"function?"},drawBefore:{value:null,type:"function?"},enableAxisTextAnimation:{value:!1,type:"boolean"},enableCrosshairs:{value:!1,type:"boolean"},greyScale:{value:!1,type:"boolean"},legendLayout:{value:{flow:{value:"horizontal",allowedValues:["horizontal","vertical"],type:"string"},height:{value:null,type:"number?"},left:{value:null,type:"number?"},top:{value:null,type:"number?"},width:{value:null,type:"number?"}},type:"object?"},localization:{value:{decimalSeparator:{value:".",type:"string"},patterns:{value:null,type:"object?"},thousandsSeparator:{value:"",type:"string"}},type:"object"},messages:{value:{en:{invalidRadiusDataField:"smart-chart: Invalid radiusDataField value at [{{index}}]",invalidSeries:"smart-chart: Invalid property: each series group must have a 'series' property which must be a valid array.",invalidSeriesGroups:"smart-chart: Invalid property: 'seriesGroups' property is required and must be a valid array.",invalidType:'smart-chart: Invalid serie type "{{type}}".',missingAxis:"smart-chart: seriesGroup[{{index}}] is missing {{axis}} definition.",missingReference:"smart-chart: Missing reference to {{files}}.",missingType:"smart-chart: Invalid property: each series group must have a valid 'type' property."}},type:"object",extend:!0},padding:{value:{bottom:{value:5,type:"number"},left:{value:5,type:"number"},right:{value:5,type:"number"},top:{value:5,type:"number"}},type:"object"},renderEngine:{value:"",allowedValues:["","SVG","HTML5"],type:"string"},rightToLeft:{value:!1,type:"boolean"},seriesGroups:{value:[],type:"any",reflectToAttribute:!1},showBorderLine:{value:!0,type:"boolean"},showLegend:{value:!0,type:"boolean"},showToolTips:{value:!0,type:"boolean"},showToolTipsOnAllSeries:{value:!1,type:"boolean"},theme:{value:"light",allowedValues:["light","dark"],type:"string"},titlePadding:{value:{bottom:{value:10,type:"number"},left:{value:5,type:"number"},right:{value:5,type:"number"},top:{value:5,type:"number"}},type:"object"},toolTipBackground:{value:null,type:"string?"},toolTipFormatFunction:{value:null,type:"function?"},toolTipHideDelay:{value:4e3,type:"number"},toolTipLineColor:{value:null,type:"string?"},toolTipShowDelay:{value:300,type:"number"},valueAxis:{value:{alternatingBackgroundColor:{value:"",type:"string"},alternatingBackgroundColor2:{value:"",type:"string"},alternatingBackgroundOpacity:{value:1,type:"number"},axisSize:{value:null,type:"any"},bands:{value:null,type:"array?"},baselineValue:{value:0,type:"any"},customDraw:{value:!1,type:"boolean"},flip:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},line:{value:{color:{value:"",type:"string"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},visible:{value:!0,type:"any"}},type:"object"},logarithmicScale:{value:!1,type:"boolean"},logarithmicScaleBase:{value:10,type:"number"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:"left",allowedValues:["left","right","top","bottom"],type:"string"},textRotationAngle:{value:null,type:"number?"},textRotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},tickMarks:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},size:{value:4,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},title:{value:{class:{value:null,type:"string?"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},text:{value:"",type:"string"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"boolean"}},type:"object"},unitInterval:{value:null,type:"number?"},valuesOnTicks:{value:!0,type:"boolean"},visible:{value:!0,type:"boolean"}},type:"object"},xAxis:{value:{alternatingBackgroundColor:{value:"",type:"string"},alternatingBackgroundColor2:{value:"",type:"string"},alternatingBackgroundOpacity:{value:1,type:"number"},axisSize:{value:null,type:"any"},bands:{value:null,type:"array?"},baseUnit:{value:null,allowedValues:["year","month","day","hour","minute","second","millisecond",null],type:"string?"},customDraw:{value:!1,type:"boolean"},dataField:{value:"",type:"string"},dateFormat:{value:null,type:"string?"},displayText:{value:null,type:"string?"},flip:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},line:{value:{color:{value:"",type:"string"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},visible:{value:!0,type:"any"}},type:"object"},logarithmicScale:{value:!1,type:"boolean"},logarithmicScaleBase:{value:10,type:"number"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:"bottom",allowedValues:["bottom","top","left","right"],type:"string"},rangeSelector:{value:{backgroundColor:{value:null,type:"string?"},backgroundImage:{value:"",type:"string"},baseUnit:{value:null,allowedValues:["year","month","day","hour","minute","second","millisecond",null],type:"string?"},borderLineColor:{value:null,type:"string?"},borderLineWidth:{value:null,type:"number?"},caption:{value:"",type:"string"},colorScheme:{value:null,type:"string?"},columnSeriesOverlap:{value:!1,type:"boolean"},columnsGapPercent:{value:25,type:"number"},dataField:{value:null,type:"string?"},description:{value:"",type:"string"},greyScale:{value:null,type:"boolean?"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:null,allowedValues:["bottom","top","left","right"],type:"string?"},renderTo:{value:null,type:"any"},rightToLeft:{value:null,type:"boolean?"},seriesGapPercent:{value:10,type:"number"},seriesGroups:{value:null,type:"array?"},serieType:{value:"area",type:"string"},showBorderLine:{value:null,type:"boolean?"},size:{value:null,type:"number?"},skipOverlappingPoints:{value:!0,type:"boolean"},titlePadding:{value:{bottom:{value:10,type:"number"},left:{value:5,type:"number"},right:{value:5,type:"number"},top:{value:5,type:"number"}},type:"object"},unitInterval:{value:null,type:"number?"},valueAxis:{value:{alternatingBackgroundColor:{value:"",type:"string"},alternatingBackgroundColor2:{value:"",type:"string"},alternatingBackgroundOpacity:{value:1,type:"number"},axisSize:{value:null,type:"any"},bands:{value:null,type:"array?"},baselineValue:{value:0,type:"any"},customDraw:{value:!1,type:"boolean"},flip:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},gridLines:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},labels:{value:{angle:{value:0,type:"number"},autoRotate:{value:!1,type:"boolean"},class:{value:null,type:"string?"},custom:{value:null,type:"array?"},formatFunction:{value:null,type:"function?"},formatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},offset:{value:{x:{value:0,type:"number"},y:{value:0,type:"number"}},type:"object"},rotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"any"}},type:"object"},line:{value:{color:{value:"",type:"string"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},visible:{value:!0,type:"any"}},type:"object"},logarithmicScale:{value:!1,type:"boolean"},logarithmicScaleBase:{value:10,type:"number"},maxValue:{value:NaN,type:"any"},minValue:{value:NaN,type:"any"},padding:{value:{bottom:{value:0,type:"number"},left:{value:0,type:"number"},right:{value:0,type:"number"},top:{value:0,type:"number"}},type:"object"},position:{value:"left",allowedValues:["left","right","top","bottom"],type:"string"},textRotationAngle:{value:null,type:"number?"},textRotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},tickMarks:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},size:{value:4,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},title:{value:{class:{value:null,type:"string?"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},text:{value:"",type:"string"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"boolean"}},type:"object"},unitInterval:{value:null,type:"number?"},valuesOnTicks:{value:!0,type:"boolean"},visible:{value:!1,type:"boolean"}},type:"object"},visible:{value:!1,type:"boolean"}},type:"object"},textRotationAngle:{value:null,type:"number?"},textRotationPoint:{value:"auto",allowedValues:["auto","left","center","right","topleft","topcenter","topright","bottomleft","bottomcenter","bottomright","centermiddle"],type:"string"},tickMarks:{value:{color:{value:"",type:"string"},custom:{value:null,type:"array?"},dashStyle:{value:"",type:"string"},lineWidth:{value:1,type:"number"},size:{value:4,type:"number"},step:{value:null,type:"number?"},unitInterval:{value:null,type:"number?"},visible:{value:!0,type:"any"}},type:"object"},title:{value:{class:{value:null,type:"string?"},horizontalAlignment:{value:"center",allowedValues:["left","center","right"],type:"string"},text:{value:"",type:"string"},verticalAlignment:{value:"center",allowedValues:["top","center","bottom"],type:"string"},visible:{value:!0,type:"boolean"}},type:"object"},toolTipFormatFunction:{value:null,type:"function?"},toolTipFormatSettings:{value:{dateFormat:{value:null,type:"string?"},decimalPlaces:{value:null,type:"number?"},decimalSeparator:{value:null,type:"string?"},negativeWithBrackets:{value:!1,type:"boolean"},prefix:{value:"",type:"string"},sufix:{value:"",type:"string"},thousandsSeparator:{value:null,type:"string?"}},type:"object"},type:{value:"auto",allowedValues:["auto","date","basic","linear"],type:"string"},unitInterval:{value:null,type:"number?"},valuesOnTicks:{value:!0,type:"boolean"},visible:{value:!0,type:"boolean"}},type:"object",reflectToAttribute:!1}}}get _legendLayout(){const t=this.legendLayout;return null!==t.height||null!==t.left||null!==t.top||null!==t.width||"vertical"===t.flow}_getFormatSettings(t,e){if(!t)return null;const r=t[e||"formatSettings"];return r&&(r.dateFormat||null!==r.decimalPlaces||r.decimalSeparator||r.negativeWithBrackets||r.prefix||r.sufix||r.thousandsSeparator)?r:null}static get listeners(){return{click:"_clickHandler",down:"_downMoveHandler",mouseleave:"_mouseleaveHandler",move:"_moveHandler",resize:"_resizeHandler","document.move":"_downMoveHandler","document.up":"_documentUpHandler"}}static get requires(){return{"Smart.Utilities.Draw":"smart.draw.js"}}static get styleUrls(){return["smart.chart.css"]}template(){return'<div role="presentation"></div>'}ready(){super.ready(),this.checkLicense()}render(){this._observeSeriesGroups(),this._isTouchDevice=Smart.Utilities.Core.isMobile,this._setDefaults(),this._createColorsCache(),this.refresh(),this._setAriaProperties(),super.render()}attached(){super.attached(),this.isCompleted&&!this._isRangeSelectorInstance&&Object.values(this._rangeSelectorInstances).forEach(t=>{t.parentDiv.parentDiv.appendChild(t.parentDiv)})}detached(){const t=this;super.detached(),t._isRangeSelectorInstance||(t._ttEl&&t._ttEl.box&&t._ttEl.box.remove(),delete t._ttEl,Object.values(t._rangeSelectorInstances).forEach(t=>{t.parentDiv.remove()}))}_setAriaProperties(){const t=this;if(t._isRangeSelectorInstance)return;const e=t.xAxis,r=t.valueAxis,n=t.seriesGroups;let o=t.$.content.children[1],a="",i=!0;function s(t,e){t&&(t.title&&t.title.text||t.description||t.dataField)&&(a+='; "',t.title&&t.title.text?a+=t.title.text:a+=t.description||t.dataField,a+='" on the '+e,isNaN(t.minValue)||(a+=" from "+t.minValue),isNaN(t.maxValue)||(a+=" up to "+t.maxValue))}t.setAttribute("role","figure"),o||(o=document.createElement("div"),o.id=t.id+"DescriptionContainer",o.className="smart-hidden",t.$.content.appendChild(o)),t.setAttribute("aria-labelledby",t.id+"TitleText"),t.setAttribute("aria-describedby",t.id+"TitleDescription "+o.id),a+="This chart displays:",s(e,"x-axis"),s(r,"y-axis");for(let t=0;t<n.length;t++){const e=n[t];if(s(e.valueAxis,"y-axis"),e.series){i=i&&"horizontal"===e.orientation;for(let r=0;r<e.series.length;r++){const n=e.series[r];0===r&&(a+=0===t?" for ":"; "),a+='"'+(n.displayText||n.dataField)+'"',r!==e.series.length-1&&(a+=", ")}}}a=a.replace(":;",":"),a=a.replace(/<.+?>/g,""),i&&(a=a.replace(/x-axis/g,"@@@"),a=a.replace(/y-axis/g,"x-axis"),a=a.replace(/@@@/g,"y-axis")),t.description&&(a="; "+a),o.innerHTML=a}_observeSeriesGroups(){const t=this;function e(e){t.context!==t&&e.newValue!==e.oldValue&&t.update()}if(t._validateSeriesGroups(),Array.isArray(t.seriesGroups)){t.seriesGroups=new Smart.ObservableArray(t.seriesGroups),t.seriesGroups.canNotify=!0;for(let r=0;r<t.seriesGroups.length;r++)Array.isArray(t.seriesGroups[r].series)&&(t.seriesGroups[r].series=new Smart.ObservableArray(t.seriesGroups[r].series),t.seriesGroups[r].series.canNotify=!0,t.seriesGroups[r].series.notify(e));t.seriesGroups.notify(e)}}_downMoveHandler(t){let e=t.originalEvent.target;this.shadowRoot&&e===this&&(e=t.originalEvent.composedPath()[0]);const r=e.closest(".smart-chart-range-selector");if(!r)return;const n=r.firstElementChild,o=n.parentChart;this!==n&&this!==o||o["_onSliderMouse"+t.type.slice(0,1).toUpperCase()+t.type.slice(1)](t)}_documentUpHandler(t){const e=this;e._draggingRangeSelector&&e._onSliderMouseUp(t)}_setDefaults(){this.axisPadding=5,this.enableEvents=!0,this.enableSampling=!0,this._itemsToggleState=[],this._isToggleRefresh=!1,this._isSelectorRefresh=!1,this._sliders=[],this._selectorRange=[],this._rangeSelectorInstances={},this._resizeState={},this._isRangeSelectorInstance=this._isRangeSelectorInstance||!1,this._renderData={},this._smartPlot=null,this._animTickInt=50,this._seriesTypes=["line","stackedline","stackedline100","spline","stackedspline","stackedspline100","stepline","stackedstepline","stackedstepline100","area","stackedarea","stackedarea100","splinearea","stackedsplinearea","stackedsplinearea100","steparea","stackedsteparea","stackedsteparea100","rangearea","splinerangearea","steprangearea","column","stackedcolumn","stackedcolumn100","rangecolumn","scatter","stackedscatter","stackedscatter100","bubble","stackedbubble","stackedbubble100","pie","donut","candlestick","ohlc","waterfall","stackedwaterfall"],this.colorSchemes=[{name:"scheme01",colors:["#307DD7","#AA4643","#89A54E","#71588F","#4198AF"]},{name:"scheme02",colors:["#7FD13B","#EA157A","#FEB80A","#00ADDC","#738AC8"]},{name:"scheme03",colors:["#E8601A","#FF9639","#F5BD6A","#599994","#115D6E"]},{name:"scheme04",colors:["#D02841","#FF7C41","#FFC051","#5B5F4D","#364651"]},{name:"scheme05",colors:["#25A0DA","#309B46","#8EBC00","#FF7515","#FFAE00"]},{name:"scheme06",colors:["#0A3A4A","#196674","#33A6B2","#9AC836","#D0E64B"]},{name:"scheme07",colors:["#CC6B32","#FFAB48","#FFE7AD","#A7C9AE","#888A63"]},{name:"scheme08",colors:["#3F3943","#01A2A6","#29D9C2","#BDF271","#FFFFA6"]},{name:"scheme09",colors:["#1B2B32","#37646F","#A3ABAF","#E1E7E8","#B22E2F"]},{name:"scheme10",colors:["#5A4B53","#9C3C58","#DE2B5B","#D86A41","#D2A825"]},{name:"scheme11",colors:["#993144","#FFA257","#CCA56A","#ADA072","#949681"]},{name:"scheme12",colors:["#105B63","#EEEAC5","#FFD34E","#DB9E36","#BD4932"]},{name:"scheme13",colors:["#BBEBBC","#F0EE94","#F5C465","#FA7642","#FF1E54"]},{name:"scheme14",colors:["#60573E","#F2EEAC","#BFA575","#A63841","#BFB8A3"]},{name:"scheme15",colors:["#444546","#FFBB6E","#F28D00","#D94F00","#7F203B"]},{name:"scheme16",colors:["#583C39","#674E49","#948658","#F0E99A","#564E49"]},{name:"scheme17",colors:["#142D58","#447F6E","#E1B65B","#C8782A","#9E3E17"]},{name:"scheme18",colors:["#4D2B1F","#635D61","#7992A2","#97BFD5","#BFDCF5"]},{name:"scheme19",colors:["#844341","#D5CC92","#BBA146","#897B26","#55591C"]},{name:"scheme20",colors:["#56626B","#6C9380","#C0CA55","#F07C6C","#AD5472"]},{name:"scheme21",colors:["#96003A","#FF7347","#FFBC7B","#FF4154","#642223"]},{name:"scheme22",colors:["#5D7359","#E0D697","#D6AA5C","#8C5430","#661C0E"]},{name:"scheme23",colors:["#16193B","#35478C","#4E7AC7","#7FB2F0","#ADD5F7"]},{name:"scheme24",colors:["#7B1A25","#BF5322","#9DA860","#CEA457","#B67818"]},{name:"scheme25",colors:["#0081DA","#3AAFFF","#99C900","#FFEB3D","#309B46"]},{name:"scheme26",colors:["#0069A5","#0098EE","#7BD2F6","#FFB800","#FF6800"]},{name:"scheme27",colors:["#FF6800","#A0A700","#FF8D00","#678900","#0069A5"]},{name:"scheme28",colors:["#3A43BA","#281E5D","#48AAAD","#0492C2","#1E456E","#59788D","#52B2C0","#82EDFD"]},{name:"scheme29",colors:["#003F5C","#BC5090","#58508D","#FF6361","#FFA600"]},{name:"scheme30",colors:["#16736F","#A2D56A","#1C515C","#62B773","#EEEF63","#1F313F","#309577"]},{name:"scheme31",colors:["#74CC66","#191A4D","#2D867A","#EEE3CD","#224D19","#0D261B","#5771C7","#B6D7E7","#206052","#6B5724","#C3AF4B","#603620","#536722","#B6E7B9","#34819D","#94ACDB"]},{name:"scheme32",colors:["#87C5FF","#5B5B60","#9BE076","#F7A384","#7479D3","#F13A80","#E4D388","#2BC6B2","#F45B14"]}]}_clickHandler(t){const e=this;if(e.disabled||e._isRangeSelectorInstance)return;let r=t.pageX||t.clientX||t.screenX,n=t.pageY||t.clientY||t.screenY;const o=e.getBoundingClientRect();e._isTouchDevice&&(r=t.pageX,n=t.pageY),r-=o.left,n-=o.top,e._mouseX=r,e._mouseY=n,!isNaN(e._lastClickTs)&&(new Date).valueOf()-e._lastClickTs<100||(this._hostClickTimer=setTimeout((function(){if(e._isTouchDevice||(e._cancelTooltipTimer(),e._hideToolTip(),e._unselect()),e._pointMarker&&e._pointMarker.element){const r=e.seriesGroups[e._pointMarker.gidx],n=r.series[e._pointMarker.sidx];t.stopImmediatePropagation(),e._raiseItemEvent("click",r,n,e._pointMarker.iidx)}}),100),"HTML5"===e.renderEngine&&e._canvasClickHandler(r,n))}_canvasClickHandler(t,e){const r=this,n=r.renderer._elements;let o;for(let r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&"0"!==r){const a=n[r];if(e>a.y&&e<a.y+a.height&&t>a.x&&t<a.x+a.width){o=a;break}}if(o&&o.purpose&&"legend-toggle"===o.purpose){const t=o.data;r._toggleSerie(t.groupIndex,t.seriesIndex,t.itemIndex)}}_mouseleaveHandler(){if(this.disabled||this._isRangeSelectorInstance)return;const t=this._mouseX,e=this._mouseY,r=this._plotRect;r&&t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height||(this._cancelTooltipTimer(),this._hideToolTip(0),this._unselect())}_moveHandler(t){const e=this;if(e.disabled)return;if(e._isRangeSelectorInstance){const r=e.parentChart;null===r.xAxis.rangeSelector.renderTo&&(r._unselect(),r._hideToolTip()),"touchmove"===t.originalEvent.type&&t.originalEvent.preventDefault()}else e.style.cursor="default";let r=t.pageX||t.clientX||t.screenX,n=t.pageY||t.clientY||t.screenY;const o=e.getBoundingClientRect();e._isTouchDevice&&(r=t.pageX,n=t.pageY),r-=o.left,n-=o.top,e.onmousemove(r,n)}_resizeHandler(){const t=this.animation;this._isRangeSelectorInstance||(this.animation="none",this.refresh(),this.animation=t)}propertyChangedHandler(t,e,r){const n=this;switch(t){case"animation":case"theme":n._ttEl&&n._ttEl.box.setAttribute(t,r);break;case"rightToLeft":if(!n._ttEl||!n._ttEl.box)break;r?n._ttEl.box.setAttribute("right-to-left",r):n._ttEl.box.removeAttribute("right-to-left");break;case"seriesGroups":n._observeSeriesGroups();break;case"xAxis_rangeSelector_renderTo":if(null===r){const t=e.getElementsByClassName("smart-chart-range-selector")[0];t.parentElement.removeChild(t)}}this.refresh()}_initRenderer(){this._draw=new Smart.Utilities.Draw(this.$.content,this.renderEngine),this.renderer=this._draw.renderer,this._smartPlot||(this._smartPlot=new Smart.Utilities.Plot(this.renderer)),this.$.content.firstElementChild.setAttribute("role","presentation")}_internalRefresh(){const t=this;if(!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))return;t._stopAnimations(),t.renderer&&(t._isToggleRefresh||t._isUpdate)||(t._hideToolTip(0),t.$.content.innerHTML="",t._initRenderer());const e=t.renderer;if(!e)return;const r=e.getRect();t._render({x:1,y:1,width:r.width,height:r.height}),this.$.fireEvent("refreshBegin",{instance:this}),e instanceof Smart.Utilities.HTML5Renderer&&e.refresh(),t._isUpdate=!1,this.$.fireEvent("refreshEnd",{instance:this})}saveAsPNG(t){return this._saveAsImage("png",t)}saveAsJPEG(t){return this._saveAsImage("jpeg",t)}saveAsPDF(t,e){return this._saveAsImage("pdf",t,e)}print(){return this._saveAsImage("print")}_saveAsImage(t,e,r){return this._draw._widgetToImage(this,t,e,this._hasRangeSelector?this._selectorSaveAsImageCallback:void 0,r)}_selectorSaveAsImageCallback(t,e){let r=t;for(let t=0;t<r.seriesGroups.length;t++){let n=r._getXAxis(t);if(!n||!n.rangeSelector||!n.rangeSelector.visible||n.rangeSelector.renderTo)continue;let o=r._rangeSelectorInstances[t];if(!o)continue;let a=o.renderer.getRect(),i=o.renderer.getContainer().getElementsByTagName("canvas")[0].getContext("2d"),s=r._sliders[t],l="horizontal"===r.seriesGroups[t].orientation,d=l?"height":"width",m=l?"width":"height",c=l?"y":"x",h=l?"x":"y",u={};u[c]=s.startOffset+s.rect[c],u[h]=s.rect[h],u[d]=s.endOffset-s.startOffset,u[m]=s.rect[m];let p=n.rangeSelector.colorSelectedRange||"blue",f=n.rangeSelector.colorRangeLine||"grey",g=[];g.push(o.renderer.rect(u.x,u.y,u.width,u.height,{fill:p,opacity:.1}));const b=r.renderer;l?(g.push(o.renderer.line(b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(s.rect.y),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y+u.height),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(s.rect.y+s.rect.height),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(s.rect.x),b._ptrnd(u.y),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(s.rect.x),b._ptrnd(u.y+u.height),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(u.y+u.height),{stroke:f,opacity:.5}))):(g.push(o.renderer.line(b._ptrnd(s.rect.x),b._ptrnd(s.rect.y),b._ptrnd(u.x),b._ptrnd(s.rect.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(u.x+u.width),b._ptrnd(s.rect.y),b._ptrnd(s.rect.x+s.rect.width),b._ptrnd(s.rect.y),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(u.x),b._ptrnd(s.rect.y),b._ptrnd(u.x),b._ptrnd(s.rect.y+s.rect.height),{stroke:f,opacity:.5})),g.push(o.renderer.line(b._ptrnd(u.x+u.width),b._ptrnd(s.rect.y),b._ptrnd(u.x+u.width),b._ptrnd(s.rect.y+s.rect.height),{stroke:f,opacity:.5}))),o.renderer.refresh();let v=i.getImageData(a.x,a.y,a.width,a.height);const y=e.getContext("2d"),w=r.getBoundingClientRect(),x=o.getBoundingClientRect();y.putImageData(v,x.left-w.left,x.top-w.top,1,1,a.width,a.height);for(let t=0;t<g.length;t++)o.renderer.removeElement(g[t]);o.renderer.refresh()}return!0}refresh(){this._internalRefresh(),this._setAriaProperties()}update(){this._isUpdate=!0,this._internalRefresh()}clear(){this.caption="",this.description="",this.refresh()}_validateSeriesGroups(){const t=this;Array.isArray(this.seriesGroups)||t.seriesGroups instanceof Smart.ObservableArray||t.error(t.localize("invalidSeriesGroups"));for(let e=0;e<this.seriesGroups.length;e++){const r=this.seriesGroups[e];r.type||t.error(t.localize("missingType")),Array.isArray(r.series)||r.series instanceof Smart.ObservableArray||t.error(t.localize("invalidSeries"))}}_render(t){var e=this.renderer;this._colorsCache.clear(),!this._isToggleRefresh&&this._isUpdate&&this._renderData&&this._renderDataClone(),this._renderData=[],e.clear(),this._unselect(),this._hideToolTip(0);var r=this.backgroundImage;this.style.backgroundImage=null==r||""===r?"":-1!==r.indexOf("(")?r:'url("'+r+'")',this._rect=t;var n=this.padding||{left:5,top:5,right:5,bottom:5},o=e.createClipRect(t),a=e.beginGroup();e.setClip(a,o);var i=e.rect(t.x,t.y,t.width-2,t.height-2);if(null==r||""===r?e.attr(i,{fill:this.backgroundColor||this._getThemeColor("background")}):e.attr(i,{fill:"transparent"}),!1!==this.showBorderLine){var s=this.borderLineWidth;(isNaN(s)||s<0||s>10)&&(s=1),e.attr(i,{"stroke-width":s,stroke:this.borderLineColor||this._getThemeColor("line")})}"function"==typeof this.drawBefore&&this.drawBefore(e,t);var l={x:n.left,y:n.top,width:t.width-n.left-n.right,height:t.height-n.top-n.bottom};this._paddedRect=l;var d,m=this.titlePadding||{left:2,top:2,right:2,bottom:2};if(this.caption&&this.caption.length>0){d=e.measureText(this.caption,0,{class:"smart-chart-title-text"}),e.text(this.caption,l.x+m.left,l.y+m.top,l.width-(m.left+m.right),d.height,0,{class:"smart-chart-title-text"},!0,"center","center").id=this.id+"TitleText",l.y+=d.height,l.height-=d.height}if(this.description&&this.description.length>0){d=e.measureText(this.description,0,{class:"smart-chart-title-description"}),e.text(this.description,l.x+m.left,l.y+m.top,l.width-(m.left+m.right),d.height,0,{class:"smart-chart-title-description"},!0,"center","center").id=this.id+"TitleDescription",l.y+=d.height,l.height-=d.height}(this.caption||this.description)&&(l.y+=m.bottom+m.top,l.height-=m.bottom+m.top);var c={x:l.x,y:l.y,width:l.width,height:l.height};this._plotRect=c,this._buildStats(c);var h,u=this._isPieOnlySeries(),p=this.seriesGroups,f={xAxis:{},valueAxis:{}};for(let t=0;t<p.length&&!u;t++){if("pie"===p[t].type||"donut"===p[t].type)continue;var g=this._getXAxis(t);g||this.error(this.localize("missingAxis",{index:t,axis:"xAxis"}));let e=g===this._getXAxis()?-1:t;f.xAxis[e]=0}var b=this.axisPadding;isNaN(b)&&(b=5);var v={left:0,right:0,leftCount:0,rightCount:0},y=[];for(let t=0;t<p.length;t++){const e=p[t];if("pie"===e.type||"donut"===e.type||!0===e.spider||!0===e.polar){y.push({width:0,position:0,xRel:0});continue}h="horizontal"===e.orientation;let r=this._getXAxis(t),n=r===this._getXAxis()?-1:t;var w=this._getValueAxis(t),x=w===this._getValueAxis()?-1:t,_=h?r.axisSize:w.axisSize,S={x:0,y:c.y,width:c.width,height:c.height},C=h?this._getXAxis(t).position:w.position;_&&"auto"!==_||(h?(_=this._renderXAxis(t,S,!0,c).width,1==(1&f.xAxis[n])?_=0:_>0&&(f.xAxis[n]|=1)):(_=this._renderValueAxis(t,S,!0,c).width,1==(1&f.valueAxis[x])?_=0:_>0&&(f.valueAxis[x]|=1))),"left"!==C&&!0===this.rightToLeft&&(C="right"),"right"!==C&&(C="left"),v[C+"Count"]>0&&v[C]>0&&_>0&&(v[C]+=b),y.push({width:_,position:C,xRel:v[C]}),v[C]+=_,v[C+"Count"]++}var k=Math.max(1,Math.max(t.width,t.height)),A={top:0,bottom:0,topCount:0,bottomCount:0},T=[];for(let t=0;t<p.length;t++){const e=p[t];if("pie"===e.type||"donut"===e.type||!0===e.spider||!0===e.polar){T.push({height:0,position:0,yRel:0});continue}h="horizontal"===e.orientation;let r=this._getValueAxis(t),n=r===this._getValueAxis()?-1:t,o=this._getXAxis(t),a=o===this._getXAxis()?-1:t,i=h?r.axisSize:o.axisSize,s=h?r.position:o.position;i&&"auto"!==i||(h?(i=this._renderValueAxis(t,{x:0,y:0,width:k,height:0},!0,c).height,2==(2&f.valueAxis[n])?i=0:i>0&&(f.valueAxis[n]|=2)):(i=this._renderXAxis(t,{x:0,y:0,width:k,height:0},!0).height,2==(2&f.xAxis[a])?i=0:i>0&&(f.xAxis[a]|=2))),"top"!==s&&(s="bottom"),A[s+"Count"]>0&&A[s]>0&&i>0&&(A[s]+=b),T.push({height:i,position:s,yRel:A[s]}),A[s]+=i,A[s+"Count"]++}this._createAnimationGroup("series");const E=!1!==this.showLegend,N=this._legendLayout;var M=E?this._renderLegend(N?this._rect:l,!0):{width:0,height:0};if(!N||isNaN(this.legendLayout.left)&&isNaN(this.legendLayout.top)||(M={width:0,height:0}),l.height<A.top+A.bottom+M.height||l.width<v.left+v.right)e.endGroup();else{c.height-=A.top+A.bottom+M.height,c.x+=v.left,c.width-=v.left+v.right,c.y+=A.top;var D=[];if(!u)for(let t=0;t<p.length;t++){const e=p[t];if(!0===e.polar||!0===e.spider||"pie"===e.type||"donut"===e.type)continue;h="horizontal"===e.orientation;let r=this._getXAxis(t)===this._getXAxis()?-1:t,n=this._getValueAxis(t)===this._getValueAxis()?-1:t,o={x:c.x,y:0,width:c.width,height:T[t].height};if("top"!==T[t].position?o.y=c.y+c.height+T[t].yRel:o.y=c.y-T[t].yRel-T[t].height,h){if(4==(4&f.valueAxis[n]))continue;if(!this._isGroupVisible(t))continue;this._renderValueAxis(t,o,!1,c),f.valueAxis[n]|=4}else{if(D.push(o),4==(4&f.xAxis[r]))continue;if(!this._isGroupVisible(t))continue;this._renderXAxis(t,o,!1,c),f.xAxis[r]|=4}}if(E){const t=this._legendLayout,e=t?this._rect:l;let r=l.x+this.renderer._ptrnd((l.width-M.width)/2),n=c.y+c.height+A.bottom,o=l.width,a=M.height;t&&(isNaN(this.legendLayout.left)||(r=this.legendLayout.left),isNaN(this.legendLayout.top)||(n=this.legendLayout.top),isNaN(this.legendLayout.width)||(o=this.legendLayout.width),isNaN(this.legendLayout.height)||(a=this.legendLayout.height)),r+o>e.x+e.width&&(o=e.x+e.width-r),n+a>e.y+e.height&&(a=e.y+e.height-n),this._renderLegend({x:r,y:n,width:o,height:a})}if(this._hasHorizontalLines=!1,!u)for(let t=0;t<p.length;t++){const e=p[t];if(!0===e.polar||!0===e.spider||"pie"===e.type||"donut"===e.type)continue;h="horizontal"===p[t].orientation;let r={x:c.x-y[t].xRel-y[t].width,y:c.y,width:y[t].width,height:c.height};"left"!==y[t].position&&(r.x=c.x+c.width+y[t].xRel);let n=this._getXAxis(t)===this._getXAxis()?-1:t,o=this._getValueAxis(t)===this._getValueAxis()?-1:t;if(h){if(D.push(r),8==(8&f.xAxis[n]))continue;if(!this._isGroupVisible(t))continue;this._renderXAxis(t,r,!1,c),f.xAxis[n]|=8}else{if(8==(8&f.valueAxis[o]))continue;if(!this._isGroupVisible(t))continue;this._renderValueAxis(t,r,!1,c),f.valueAxis[o]|=8}}if(!(c.width<=0||c.height<=0)){this._plotRect={x:c.x,y:c.y,width:c.width,height:c.height};for(let t=0;t<p.length;t++)this._drawPlotAreaLines(t,!0,{gridLines:!1,tickMarks:!1,alternatingBackground:!0}),this._drawPlotAreaLines(t,!1,{gridLines:!1,tickMarks:!1,alternatingBackground:!0});for(let t=0;t<p.length;t++)this._drawPlotAreaLines(t,!0,{gridLines:!0,tickMarks:!0,alternatingBackground:!1}),this._drawPlotAreaLines(t,!1,{gridLines:!0,tickMarks:!0,alternatingBackground:!1});var F=!1;for(let t=0;t<p.length&&!F;t++){const e=p[t];if(void 0!==e.annotations||"function"==typeof e.draw||"function"==typeof e.drawBefore){F=!0;break}}var O=e.beginGroup();if(this.clip&&!F){var I=e.createClipRect({x:c.x-2,y:c.y,width:c.width+4,height:c.height});e.setClip(O,I)}for(let r=0;r<p.length;r++){const n=p[r];var L=!1;for(var P in this._seriesTypes)if(this._seriesTypes[P]===n.type){L=!0;break}L||this.error(this.localize("invalidType",{type:n.type})),"function"==typeof n.drawBefore&&n.drawBefore(e,t,r,this),!0!==n.polar&&!0!==n.spider||-1===n.type.indexOf("pie")&&-1===n.type.indexOf("donut")&&this._renderSpiderAxis(r,c),this._renderAxisBands(r,c,!0),this._renderAxisBands(r,c,!1)}for(let r=0;r<p.length;r++){const n=p[r];if(this._isColumnType(n.type)?this._renderColumnSeries(r,c):-1!==n.type.indexOf("pie")||-1!==n.type.indexOf("donut")?this._renderPieSeries(r,c):-1!==n.type.indexOf("line")||-1!==n.type.indexOf("area")?this._renderLineSeries(r,c):-1!==n.type.indexOf("scatter")||-1!==n.type.indexOf("bubble")?this._renderScatterSeries(r,c):-1===n.type.indexOf("candlestick")&&-1===n.type.indexOf("ohlc")||this._renderCandleStickSeries(r,c,-1!==n.type.indexOf("ohlc")),n.annotations){this._moduleAnnotations||this.error(this.localize("missingReference",{files:"smart.chart.annotations.js"}));for(let t=0;t<n.annotations.length;t++)this._renderAnnotation(r,n.annotations[t],c)}"function"==typeof n.draw&&n.draw(e,t,r,this)}if(e.endGroup(),this.disabled){var z=e.rect(t.x,t.y,t.width,t.height);e.attr(z,{fill:"#777777",opacity:.5,stroke:"#00FFFFFF"})}"function"==typeof this.draw&&this.draw(e,t),e.endGroup(),this._startAnimation("series"),this._credits&&this._credits();var B=!1;for(let t=0;t<this.seriesGroups.length&&!B;t++){let e=this._getXAxis(t);e&&e.rangeSelector&&e.rangeSelector.visible&&(B=!0,this._hasRangeSelector=!0)}if(B){this._moduleRangeSelector||this.error(this.localize("missingReference",{files:"smart.chart.rangeselector.js"}));var R=[];this._isSelectorRefresh||(this._rangeSelectorInstances={});for(let t=0;t<this.seriesGroups.length;t++){var H=this._getXAxis(t);-1===R.indexOf(H)&&this._renderXAxisRangeSelector(t,D[t])&&R.push(H)}}}}}_credits(){}_isPieOnlySeries(){let t=this.seriesGroups;if(0===t.length)return!1;for(let e=0;e<t.length;e++)if("pie"!==t[e].type&&"donut"!==t[e].type)return!1;return!0}_renderChartLegend(t,e,r,n){var o=this.renderer,a={x:e.x,y:e.y,width:e.width,height:e.height};a.width>=6&&(a.x+=3,a.width-=6),a.height>=6&&(a.y+=3,a.height-=6);var i={width:a.width,height:0},s=0,l=0,d=20,m=0,c=0;for(let D=0;D<t.length;D++){var h=t[D].css;h||(h="smart-chart-legend-text"),d=20;var u=t[D].text,p=o.measureText(u,0,{class:h});p.height>d&&(d=p.height),p.width>c&&(c=p.width),n?(0!==D&&(l+=d),l>a.height&&(l=0,s+=c+20+10,c=p.width,i.width=s+c)):(0!==s&&(s+=10),s+20+p.width>a.width&&p.width<a.width&&(s=0,l+=d,d=20,m=a.width,i.height=l+d));var f=!1;if(p.width>a.width){f=!0;var g=a.width,b=u.split(/\s+/);let t=[],e="";for(let r=0;r<b.length;r++){var v=e+(e.length>0?" ":"")+b[r];this.renderer.measureText(v,0,{class:h}).width>g&&v.length>0&&e.length>0?(t.push({text:e}),e=b[r]):e=v,r+1===b.length&&t.push({text:e})}p.width=0;var y=0;for(let e=0;e<t.length;e++){var w=t[e].text;let r=this.renderer.measureText(w,0,{class:h});p.width=Math.max(p.width,r.width),y+=p.height}p.height=y}var x=s+p.width<a.width&&l+p.height<e.height;if(this._legendLayout){let t=a.x+s+p.width<this._rect.x+this._rect.width&&a.y+l+p.height<this._rect.y+this._rect.height;this._renderInBounds=t}if(!r&&x){var _=t[D].seriesIndex,S=t[D].groupIndex,C=t[D].itemIndex,k=t[D].fillColor,A=t[D].lineColor,T=this._isSerieVisible(S,_,C),E=o.beginGroup(),N=T?t[D].opacity:.1;if(f){let e=u,r=a.width,i=e.split(/\s+/);var M=0;let m=[],c="";for(let t=0;t<i.length;t++){let e=c+(c.length>0?" ":"")+i[t],n=this.renderer.measureText(e,0,{class:h});n.width>r&&e.length>0&&c.length>0?(m.push({text:c,dy:M}),M+=n.height,c=i[t]):c=e,t+1===i.length&&m.push({text:c,dy:M})}for(let t=0;t<m.length;t++){let e=m[t].text;M=m[t].dy;this.renderer.measureText(e,0,{class:h});n?this.renderer.text(e,a.x+s+15,a.y+l+M,p.width,d,0,{class:h},!1,"left","center"):this.renderer.text(e,a.x+s+15,a.y+l+M,p.width,d,0,{class:h},!1,"center","center")}let f=o.rect(a.x+s,a.y+l+5+M/2,10,10);n&&(l+=M),this.renderer.attr(f,{fill:k,"fill-opacity":N,stroke:A,"stroke-width":1,"stroke-opacity":t[D].opacity})}else{let e,r=o.rect(a.x+s,a.y+l+5,10,10);this.renderer.attr(r,{fill:k,"fill-opacity":N,stroke:A,"stroke-width":1,"stroke-opacity":t[D].opacity,purpose:"legend-toggle",data:t[D]}),e=n?this.renderer.text(u,a.x+s+15,a.y+l,p.width,p.height+5,0,{class:h},!1,"left","center"):this.renderer.text(u,a.x+s+15,a.y+l,p.width,d,0,{class:h},!1,"center","center"),o.attr(e,{purpose:"legend-toggle",data:t[D]})}this.renderer.endGroup(),this._setLegendToggleHandler(S,_,C,E)}n||m<(s+=p.width+20)&&(m=s)}if(r)return i.height=this.renderer._ptrnd(l+d+5),i.width=this.renderer._ptrnd(m),i}isSerieVisible(t,e,r){return this._isSerieVisible(t,e,r)}_isSerieVisible(t,e,r){for(;this._itemsToggleState.length<t+1;)this._itemsToggleState.push([]);let n=this._itemsToggleState[t];for(;n.length<e+1;)n.push(!!isNaN(r)||[]);let o=n[e];if(isNaN(r))return o;for(Array.isArray(o)||(n[e]=o=[]);o.length<r+1;)o.push(!0);return o[r]}isGroupVisible(t){return this._isGroupVisible(t)}_isGroupVisible(t){let e=!1,r=this.seriesGroups[t].series;if(!r)return e;for(let n=0;n<r.length;n++)if(this._isSerieVisible(t,n)){e=!0;break}return e}_toggleSerie(t,e,r,n){let o=!this._isSerieVisible(t,e,r);void 0!==n&&(o=n);let a=this.seriesGroups[t],i=a.series[e];if(this.$.fireEvent("toggle",{state:o,seriesGroup:a,serie:i,elementIndex:r}),isNaN(r))this._itemsToggleState[t][e]=o;else{let n=this._itemsToggleState[t][e];for(Array.isArray(n)||(n=[]);n.length<r;)n.push(!0);n[r]=o}this._isToggleRefresh=!0,this.update(),this._isToggleRefresh=!1}showSerie(t,e,r){this._toggleSerie(t,e,r,!0)}hideSerie(t,e,r){this._toggleSerie(t,e,r,!1)}_setLegendToggleHandler(t,e,r,n){let o=this.seriesGroups[t],a=o.series[e].enableSeriesToggle;if(null==a&&(a=!1!==o.enableSeriesToggle),a){let o=this;this.renderer.addHandler(n,"click",(function(){o._toggleSerie(t,e,r)}))}}_renderLegend(t,e){let r=this,n=[];for(let t=0;t<r.seriesGroups.length;t++){let e=r.seriesGroups[t];if(!1!==e.showLegend)for(let o=0;o<e.series.length;o++){let a=e.series[o];if(!1===a.showLegend)continue;let i,s=r._getSerieSettings(t,o);if("pie"===e.type||"donut"===e.type){let l=r._getXAxis(t);const d=a.legendFormatSettings||e.legendFormatSettings||r._getFormatSettings(l)||r._getFormatSettings(a)||r._getFormatSettings(e);let m=a.legendFormatFunction||e.legendFormatFunction||l.formatFunction||a.formatFunction||e.formatFunction,c=r._getDataLen(t);for(let e=0;e<c;e++){i=r._getDataValue(e,a.displayText,t),i=r._formatValue(i,d,m,t,o,e);let l=r._getColors(t,o,e);n.push({groupIndex:t,seriesIndex:o,itemIndex:e,text:i,css:a.displayTextClass,fillColor:l.fillColor,lineColor:l.lineColor,opacity:s.opacity})}continue}const l=a.legendFormatSettings||e.legendFormatSettings;let d=a.legendFormatFunction||e.legendFormatFunction;i=r._formatValue(a.displayText||a.dataField||"",l,d,t,o,NaN);let m=r._getSeriesColors(t,o),c=this._get([a.legendFillColor,a.legendColor,m.fillColor]),h=this._get([a.legendLineColor,a.legendColor,m.lineColor]);n.push({groupIndex:t,seriesIndex:o,text:i,css:a.displayTextClass,fillColor:c,lineColor:h,opacity:s.opacity})}}return r._renderChartLegend(n,t,e,r._legendLayout&&"vertical"===r.legendLayout.flow)}_getInterval(t,e){if(!t)return e;let r=this._get([t.unitInterval,e]);return isNaN(t.step)||null===t.step||(r=t.step*e),r}_getOffsets(t,e,r,n,o,a,i,s,l){let d,m=this._getInterval(o[t],s),c=[];if((""===t||o[t].visible&&"custom"!==o[t].visible)&&(c=this._generateIntervalValues(n,m,s,i,l)),"labels"!==t){let t=i?a.left:0;if(!i&&s>1&&(t=a.left*(s+1)),1===c.length&&(t*=2),d=this._valuesToOffsets(c,e,n,r,a,!1,t),!i){let t=(a.left+a.right)*m/s;e.flip?d.unshift(d[0]+t):d.push(d[d.length-1]+t)}}else{let t=a.left;1===c.length&&(t*=2),d=this._valuesToOffsets(c,e,n,r,a,i,t)}let h=this._arraysToObjectsArray([c,d],["value","offset"]);if(e[t]&&e[t].custom){let o=this._objectsArraysToArray(e[t].custom,"value"),s=this._objectsArraysToArray(e[t].custom,"offset"),l=this._valuesToOffsets(o,e,n,r,a,i,a.left);for(let r=0;r<e[t].custom.length;r++)h.push({value:o[r],offset:isNaN(s[r])?l[r]:s[r]})}return h}_renderXAxis(t,e,r,n){let o=this,a=o._getXAxis(t),i=o.seriesGroups[t],s="horizontal"===i.orientation,l={width:0,height:0},d=o._getAxisSettings(a);if(!a||!d.visible||"spider"===i.type)return l;if(!o._isGroupVisible(t)||this._isPieGroup(t))return l;let m=o._alignValuesWithTicks(t);for(;o._renderData.length<t+1;)o._renderData.push({});o.rightToLeft?(a._flip=a.flip,a.flip=!0):void 0!==a._flip&&(a.flip=a._flip);let c=s?e.height:e.width,h=o._calculateXOffsets(t,c),u=h.axisStats,p=a.rangeSelector&&a.rangeSelector.visible,f=0;p&&(this._moduleRangeSelector||o.error(o.localize("missingReference",{files:"smart.chart.rangeselector.js"})),f=this._selectorGetSize(a));let g=s&&"right"===a.position||!s&&"top"===a.position;!r&&p&&(s?(e.width-=f,"right"!==a.position&&(e.x+=f)):(e.height-=f,"top"===a.position&&(e.y+=f)));let b={rangeLength:h.rangeLength,itemWidth:h.itemWidth,intervalWidth:h.intervalWidth,data:h,settings:d,isMirror:g,rect:e};o._renderData[t].xAxis=b;let v=u.interval;if(isNaN(v))return l;s&&(d.title.angle-=90,d.labels.angle-=90);let y,w,x=this._getInterval(d.gridLines,v),_=this._getInterval(d.tickMarks,v),S=this._getInterval(d.labels,v),C=u.min,k=u.max,A=h.padding,T=!0===a.flip||o.rightToLeft,E={min:C,max:k};u.logAxis.enabled&&(E.min=u.logAxis.minPow,E.max=u.logAxis.maxPow),"date"===a.type?(d.gridLines.offsets=this._generateDTOffsets(C,k,c,A,x,v,u.dateTimeUnit,m,NaN,!1,T),d.tickMarks.offsets=this._generateDTOffsets(C,k,c,A,_,v,u.dateTimeUnit,m,NaN,!1,T),y=this._generateDTOffsets(C,k,c,A,S,v,u.dateTimeUnit,m,NaN,!0,T)):(d.gridLines.offsets=this._getOffsets("gridLines",a,c,u,d,A,m,v),d.tickMarks.offsets=this._getOffsets("tickMarks",a,c,u,d,A,m,v),y=this._getOffsets("labels",a,c,u,d,A,m,v)),o._elementRenderInfo&&o._elementRenderInfo.length>t&&(w=o._elementRenderInfo[t].xAxis);let N,M=[];d.labels.formatFunction&&(N=d.labels.formatFunction);const D=o._getFormatSettings(d.labels);let F;D&&(F=Object.assign({},D)),"date"===a.type&&(a.dateFormat&&!N?F?F.dateFormat=F.dateFormat||a.dateFormat:F={dateFormat:a.dateFormat}:N||F&&(!F||F.dateFormat)||(N=this._getDefaultDTFormatFn(a.baseUnit||"day")));for(let e=0;e<y.length;e++){let r=y[e].value,n=y[e].offset;if(isNaN(n))continue;let i=void 0;"date"!==a.type&&u.useIndeces&&a.dataField&&(i=Math.round(r),r=o._getDataValue(i,a.dataField,t),null==r&&(r=""));let s=o._formatValue(r,F,N,t,void 0,i);null!=s&&""!==s.toString()||(isNaN(i)&&(i=e),i>=u.filterRange.min&&i<=u.filterRange.max&&(s=u.useIndeces?(u.min+i).toString():void 0===r?"":r.toString()));let l={key:r,text:s,targetX:n,x:n};w&&w.itemOffsets[r]&&(l.x=w.itemOffsets[r].x,l.y=w.itemOffsets[r].y),M.push(l)}let O=o._getAnimProps(t),I=O.enabled&&M.length<500?O.duration:0;!1===o.enableAxisTextAnimation&&(I=0);let L={items:M,renderData:b},P=o._renderAxis(s,g,d,{x:e.x,y:e.y,width:e.width,height:e.height},n,v,!1,!0,L,r,I);return s?P.width+=f:P.height+=f,P}_animateAxisText(t,e){let r=t.items,n=t.textSettings;for(let t=0;t<r.length;t++){let o=r[t];if(!o)continue;if(!o.visible)continue;let a=o.targetX,i=o.targetY;isNaN(o.x)||isNaN(o.y)||(a=o.x+(a-o.x)*e,i=o.y+(i-o.y)*e),o.element&&(this.renderer.removeElement(o.element),o.element=void 0),o.element=this.renderer.text(o.text,a,i,o.width,o.height,n.angle,{class:n.style},!1,n.halign,n.valign,n.textRotationPoint)}}_getPolarAxisCoords(t,e){let r=this.seriesGroups[t],n=e.x+this._draw.getNum([r.offsetX,e.width/2]),o=e.y+this._draw.getNum([r.offsetY,e.height/2]),a=Math.min(e.width,e.height),i=r.radius;this._isPercent(i)&&(i=parseFloat(i)/100*a/2),isNaN(i)&&(i=a/2*.6);let s=this._alignValuesWithTicks(t),l=this._get([r.startAngle,r.minAngle,0])-90;l=isNaN(l)?0:2*Math.PI*l/360;let d=this._get([r.endAngle,r.maxAngle,360])-90;if(d=isNaN(d)?2*Math.PI:2*Math.PI*d/360,l>d){let t=l;l=d,d=t}let m=this.renderer._rnd(Math.abs(l-d)/(2*Math.PI),.001,!0),c=2*Math.PI*i*m,h=this._calcGroupOffsets(t,e).xoffsets;if(!h)return;let u,p=!(Math.abs(Math.abs(d-l)-2*Math.PI)>1e-5);if(r.spider){const e=this._getXAxisStats(t,this._getXAxis(t),c);let r=e.interval;(isNaN(r)||0===r)&&(r=1);let n=(e.max-e.min)/r+(p?1:0);if(n=Math.round(n),n>2){let t=Math.cos(Math.abs(d-l)/2/n);t=this.renderer._rnd(t,.01),0===t&&(t=1),u=i/t,u>i&&s&&(i=u)}}return i=this.renderer._ptrnd(i),{x:n,y:o,r:i,adjR:this._get([u,i]),itemWidth:h.itemWidth,rangeLength:h.rangeLength,valuesOnTicks:s,startAngle:l,endAngle:d,isClosedCircle:p,axisSize:c}}_toPolarCoord(t,e,r,n){let o=Math.abs(t.startAngle-t.endAngle)/(2*Math.PI),a=2*(r-e.x)*Math.PI*o/Math.max(1,e.width)+t.startAngle,i=(e.height+e.y-n)*t.r/Math.max(1,e.height),s=t.x+i*Math.cos(a),l=t.y+i*Math.sin(a);return{x:this.renderer._ptrnd(s),y:this.renderer._ptrnd(l)}}_renderSpiderAxis(t,e){let r=this,n=r._getXAxis(t),o=this._getAxisSettings(n);if(!n||!o.visible)return;let a=r.seriesGroups[t],i=r._getPolarAxisCoords(t,e);if(!i)return;let s=this.renderer._ptrnd(i.x),l=this.renderer._ptrnd(i.y),d=i.adjR,m=i.startAngle,c=i.endAngle;if(d<1)return;let h=this.renderer._rnd(Math.abs(m-c)/(2*Math.PI),.001,!0),u=2*Math.PI*d*h,p=i.isClosedCircle,f=this._renderData[t].xoffsets;if(!f.rangeLength)return;let g=f.axisStats.interval;for((isNaN(g)||g<1)&&(g=1);r._renderData.length<t+1;)r._renderData.push({});let b={rangeLength:f.rangeLength,itemWidth:f.itemWidth,data:f,rect:e,settings:o};r._renderData[t].xAxis=b,r._renderData[t].polarCoords=i;let v=!0;for(let e=0;e<t;e++){let t=r._renderData[e].polarCoords,o=r._getXAxis(e),a=!1;for(let e in i)if(i[e]!==t[e]){a=!0;break}a&&o===n||(v=!1)}let y,w,x=o.gridLines,_=o.tickMarks,S=o.labels,C=this._getInterval(x,g),k=this._getInterval(_,g),A=this._getInterval(S,g),T=r._alignValuesWithTicks(t),E=r.renderer,N=f.axisStats,M=N.min,D=N.max,F=this._getPaddingSize(f.axisStats,n,T,u,!0,p,!1),O=!0===n.flip||r.rightToLeft;"date"===n.type?(x.offsets=this._generateDTOffsets(M,D,u,F,C,g,n.baseUnit,!0,0,!1,O),_.offsets=this._generateDTOffsets(M,D,u,F,k,g,n.baseUnit,!0,0,!1,O),y=this._generateDTOffsets(M,D,u,F,A,g,n.baseUnit,!0,0,!0,O)):(o.gridLines.offsets=this._getOffsets("gridLines",n,u,N,o,F,!0,g),o.tickMarks.offsets=this._getOffsets("tickMarks",n,u,N,o,F,!0,g),y=this._getOffsets("labels",n,u,N,o,F,!0,g)),r._elementRenderInfo&&r._elementRenderInfo.length>t&&(w=r._elementRenderInfo[t].xAxis);let I=[],L=this._getDataLen(t);for(let e=0;e<y.length;e++){let o,a=y[e].offset,i=y[e].value;if("date"!==n.type&&N.useIndeces&&n.dataField){if(o=Math.round(i),o>=L)continue;i=r._getDataValue(o,n.dataField),null==i&&(i="")}let s=r._formatValue(i,r._getFormatSettings(S.formatSettings),S.formatFunction,t,void 0,o);null!=s&&""!==s.toString()||(s=N.useIndeces?(N.min+e).toString():null==i?"":i.toString());let l={key:i,text:s,targetX:a,x:a};w&&w.itemOffsets[i]&&(l.x=w.itemOffsets[i].x,l.y=w.itemOffsets[i].y),I.push(l)}let P={stroke:x.color||r._getThemeColor("line"),fill:"none","stroke-width":x.width,"stroke-dasharray":x.dashStyle||""};if(!a.spider)if(1===h)E.circle(s,l,d,P);else{let t=-m/Math.PI*180,e=-c/Math.PI*180;this.renderer.pieslice(s,l,0,d,Math.min(t,e),Math.max(t,e),void 0,P)}let z=m;if(x.visible&&v){T||p||x.offsets.unshift({offset:-F.right});for(let t=0;t<x.offsets.length;t++){let e=x.offsets[t].offset;T||(e+=p?F.right/2:F.right);const r=z+2*e*Math.PI*h/Math.max(1,u);if(r-c>.01)continue;let n=this.renderer._ptrnd(s+d*Math.cos(r)),o=this.renderer._ptrnd(l+d*Math.sin(r));E.line(s,l,n,o,P)}}if(_.visible&&v){let t=5,e={stroke:_.color||r._getThemeColor("line"),fill:"none","stroke-width":_.width,"stroke-dasharray":_.dashStyle||""};T||p||_.offsets.unshift({offset:-F.right});for(let r=0;r<_.offsets.length;r++){let n=_.offsets[r].offset;T||(n+=p?F.right/2:F.right);const o=z+2*n*Math.PI*h/Math.max(1,u);if(o-c>.01)continue;let a={x:s+d*Math.cos(o),y:l+d*Math.sin(o)},i={x:s+(d+t)*Math.cos(o),y:l+(d+t)*Math.sin(o)};E.line(this.renderer._ptrnd(a.x),this.renderer._ptrnd(a.y),this.renderer._ptrnd(i.x),this.renderer._ptrnd(i.y),e)}}let B=[];if(a.spider){let t=[];t="date"===n.type?this._generateDTOffsets(M,D,u,F,g,g,n.baseUnit,!0,0,!1,O):this._getOffsets("",n,u,N,o,F,!0,g),T||p||t.unshift({offset:-F.right});for(let e=0;e<t.length;e++){let r=t[e].offset;T||(r+=p?F.right/2:F.right);const n=z+2*r*Math.PI*h/Math.max(1,u);n-c>.01||B.push(n)}b.offsetAngles=B}let R=r._renderSpiderValueAxis(t,e,T?i.adjR:i.r,B);if(R||(R=[]),a.spider){if(!T)for(let t=0;t<R.length;t++)R[t]=R[t]*i.adjR/i.r;R.push(d),this._renderSpiderLines(s,l,R,i,B,P)}if(v&&S.visible){b.polarLabels=[];for(let t=0;t<I.length;t++){let e=z+2*I[t].x*Math.PI*h/Math.max(1,u);e=(360-e/(2*Math.PI)*360)%360,e<0&&(e=360+e);let r,n=E.measureText(I[t].text,0,{class:o.labels.style}),a=(T?i.adjR:i.r)+(_.visible?7:2),d=o.labels;if(d.autoRotate){let t=this._draw._ptRotate(s-n.width/2,l-a-n.height,s,l,-e/180*Math.PI),o=this._draw._ptRotate(s+n.width/2,l-a,s,l,-e/180*Math.PI);n.width=Math.abs(t.x-o.x),n.height=Math.abs(t.y-o.y),r={x:Math.min(t.x,o.x),y:Math.min(t.y,o.y)}}else r=this._adjustTextBoxPosition(s,l,n,a,e,!1,!1,!1);b.polarLabels.push({x:r.x,y:r.y,value:I[t].text}),E.text(I[t].text,r.x,r.y,n.width,n.height,d.autoRotate?90-e:d.angle,{class:d.style},!1,d.halign,d.valign)}}}_renderSpiderLines(t,e,r,n,o,a){let i=this.renderer,s=n.isClosedCircle;for(let n=0;n<r.length;n++){let l=r[n],d=void 0,m=void 0;for(let r=0;r<o.length;r++){let n=o[r],s=this.renderer._ptrnd(t+l*Math.cos(n)),c=this.renderer._ptrnd(e+l*Math.sin(n));d&&i.line(d.x,d.y,s,c,a),d={x:s,y:c},m||(m={x:s,y:c})}m&&s&&i.line(d.x,d.y,m.x,m.y,a)}}_renderSpiderValueAxis(t,e,r,n){var o=this.seriesGroups[t],a=this._getPolarAxisCoords(t,e);if(!a)return;var i=this.renderer._ptrnd(a.x),s=this.renderer._ptrnd(a.y);r=r||a.r;var l=a.startAngle,d=a.endAngle,m=this.renderer._rnd(Math.abs(l-d)/(2*Math.PI),.001,!0);if(r<1)return;r=this.renderer._ptrnd(r);var c=this._getValueAxis(t);const h=this._getAxisSettings(c);if(c&&!1!==h.visible){var u=this._stats.seriesGroups[t].mu,p=h.labels,f=this._getFormatSettings(p);-1!==o.type.indexOf("stacked")&&-1!==o.type.indexOf("100")&&!f&&(f={sufix:"%"});var g=this._get([p.step,p.unitInterval/u]);isNaN(g)&&(g=1),g=Math.max(1,Math.round(g)),this._calcValueAxisItems(t,r,g);var b=h.gridLines,v=h.tickMarks,y=h.labels,w={stroke:b.color||this._getThemeColor("line"),fill:"none","stroke-width":1,"stroke-dasharray":b.dashStyle||""},x=this._renderData[t].valueAxis,_=x.items,S=l;if(_.length&&h.line.visible){isNaN(h.line.angle)||(S=2*Math.PI*h.line.angle/360);var C=i+Math.cos(S)*r,k=s+Math.sin(S)*r;if(-1===n.indexOf(S)){var A=Object.assign({},w);A["stroke-width"]=h.line.lineWidth,A.stroke=h.line.color||this._getThemeColor("line"),A["stroke-dasharray"]=h.line.dashStyle,this.renderer.line(i,s,C,k,A)}}_=_.reverse();var T=this.renderer;x.polarLabels=[];for(let t=0;t<_.length-1;t++){var E=_[t];if(isNaN(E))continue;var N=y.formatFunction?y.formatFunction(E):this._formatNumber(E,f),M=T.measureText(N,0,{class:y.style}),D=i+(!1!==c.showTickMarks?3:2);let e=s-x.itemWidth*t-M.height/2;var F=this._draw._ptRotate(D,e,i,s,S),O=this._draw._ptRotate(D+M.width,e+M.height,i,s,S);D=Math.min(F.x,O.x),e=Math.min(F.y,O.y),M.width=Math.abs(F.x-O.x),M.height=Math.abs(F.y-O.y),D+=h.labels.textOffset.x,e+=h.labels.textOffset.y,x.polarLabels.push({x:D,y:e,value:N}),T.text(N,D,e,M.width,M.height,y.autoRotate?90+180*l/Math.PI:y.angle,{class:y.style},!1,y.halign,y.valign)}var I=!1!==c.valuesOnTicks,L=this._stats.seriesGroups[t],P=L.mu,z=!0===c.logarithmicScale;z&&(P=1);var B={min:L.min,max:L.max,logAxis:{enabled:!0===z,base:c.logarithmicScaleBase,minPow:L.minPow,maxPow:L.maxPow}};(b.visible||o.spider||c.alternatingBackgroundColor||c.alternatingBackgroundColor2)&&(b.offsets=this._getOffsets("gridLines",c,r,B,h,{left:0,right:0},I,P));var R=[];if(b.visible||o.spider){let t={stroke:b.color||this._getThemeColor("line"),fill:"none","stroke-width":1,"stroke-dasharray":b.dashStyle||""};for(let e=0;e<b.offsets.length;e++){let n=this.renderer._ptrnd(b.offsets[e].offset);if(n!==r)if(o.spider)R.push(n);else if(1!==m){var H=-l/Math.PI*180,V=-d/Math.PI*180;this.renderer.pieslice(i,s,0,n,Math.min(H,V),Math.max(H,V),void 0,t)}else T.circle(i,s,n,t)}}if(c.tickMarks&&(c.tickMarks.visible||c.showTickMarks)||(v.visible=!1),v.visible){v.offsets=this._getOffsets("tickMarks",c,r,B,h,{left:0,right:0},I,P);const t=2*v.size;let e={stroke:v.color||this._getThemeColor("line"),fill:"none","stroke-width":1,"stroke-dasharray":v.dashStyle||""};for(let r=0;r<v.offsets.length;r++){var U=v.offsets[r].offset;let n={x:i+U*Math.cos(S)-t/2*Math.sin(S+Math.PI/2),y:s+U*Math.sin(S)-t/2*Math.cos(S+Math.PI/2)},o={x:i+U*Math.cos(S)+t/2*Math.sin(S+Math.PI/2),y:s+U*Math.sin(S)+t/2*Math.cos(S+Math.PI/2)};T.line(this.renderer._ptrnd(n.x),this.renderer._ptrnd(n.y),this.renderer._ptrnd(o.x),this.renderer._ptrnd(o.y),e)}}return R}}_renderAxis(t,e,r,n,o,a,i,s,l,d,m){if(r.customDraw&&!d)return{width:NaN,height:NaN};let c=r.title,h=r.labels,u=r.tickMarks,p=r.padding,f=u.visible?u.size:0,g={width:0,height:0},b={width:0,height:0};t?g.height=b.height=n.height:g.width=b.width=n.width,!d&&e&&t&&(n.x-=n.width);let v=l.renderData,y=v.itemWidth;if(c.visible&&void 0!==c.text&&null!==c.text&&""!==c){let r=c.angle,o=this.renderer.measureText(c.text,r,{class:c.style});b.width=o.width,b.height=o.height,d||this.renderer.text(c.text,n.x+c.offset.x+(t?e?-p.right-2+2*n.width-b.width:2+p.left:0),n.y+c.offset.y+(t?0:e?p.top+2:n.height-2-b.height-p.bottom),t?b.width:n.width,t?n.height:b.height,r,{class:c.style},!0,c.halign,c.valign,c.rotationPoint)}let w=0,x=s?-y/2:0;s&&!t&&(h.halign="center");let _=n.x,S=n.y,C=h.textOffset;C&&(isNaN(C.x)||(_+=C.x),isNaN(C.y)||(S+=C.y)),t?(_+=p.left+2+(b.width>0?b.width+2:0)+(e?n.width-b.width:0),S+=x):(_+=x,e?(S+=b.height>0?b.height+6:4,S+=f-(s?f:f/4)):S+=s?f:f/4,S+=p.top);let k=0,A=0,T=l.items;v.itemOffsets={},!this._isToggleRefresh&&this._isUpdate||(m=0);let E=!1,N=0;for(let r=0;r<T.length&&h.visible;r++,w+=y){if(!T[r]||isNaN(y))continue;let o=T[r].text;isNaN(T[r].targetX)||(w=T[r].targetX);let a=this.renderer.measureText(o,h.angle,{class:h.style});if(a.width>A&&(A=a.width),a.height>k&&(k=a.height),N+=t?k:A,!d){if(t&&w>n.height+2||!t&&w>n.width+2)continue;const o=t?_+(e?0===b.width?f:f-2:0):_+w;let a=t?S+w:S;v.itemOffsets[T[r].key]={x:o,y:a},E||(!isNaN(T[r].x)||!isNaN(T[r].y)&&m)&&(E=!0),T[r].targetX=o,T[r].targetY=a,T[r].width=t?n.width-p.left-p.right-4-f-(b.width>0?b.width+2:0):y,T[r].height=t?y:n.height-p.top-p.bottom-4-f-(b.height>0?b.height+2:0),T[r].visible=!0}}if(v.avgWidth=0===T.length?0:N/T.length,!d){let t={items:T,textSettings:h};if(!isNaN(m)&&E||(m=0),this._animateAxisText(t,0===m?1:0),0!==m){let e=this;this._enqueueAnimation("series",void 0,void 0,m,(function(t,r,n){e._animateAxisText(r,n)}),t)}}if(g.width+=4+f+b.width+A+(t&&b.width>0?2:0),g.height+=4+f+b.height+k+(!t&&b.height>0?2:0),t?g.width+=p.left+p.right:g.height+=p.top+p.bottom,!d&&r.line.visible){let o={stroke:r.line.color||self._getThemeColor("line"),"stroke-width":r.line.width,"stroke-dasharray":r.line.dashStyle||""};if(t){let t=n.x+n.width+(e?p.left:-p.right);t=this.renderer._ptrnd(t),this.renderer.line(t,n.y,t,n.y+n.height,o)}else{let t=this.renderer._ptrnd(n.y+(e?n.height-p.bottom:p.top));this.renderer.line(this.renderer._ptrnd(n.x),t,this.renderer._ptrnd(n.x+n.width+1),t,o)}}return g.width=this.renderer._rup(g.width),g.height=this.renderer._rup(g.height),g}_drawPlotAreaLines(t,e,r){var n=this.seriesGroups[t],o="horizontal"!==n.orientation;if(!this._renderData||this._renderData.length<=t)return;var a=e?"valueAxis":"xAxis",i=this._renderData[t][a];if(!i)return;var s=this._renderData.axisDrawState;s||(s=this._renderData.axisDrawState={});var l,d="";e?(d="valueAxis_"+(n.valueAxis?t:"")+(o?"swap":""),l=this._getValueAxis(t)):(d="xAxis_"+(n.xAxis?t:"")+(o?"swap":""),l=this._getXAxis(t)),s=s[d]?s[d]:s[d]={},e||(o=!o);var m=i.settings;if(!m)return;if(m.customDraw)return;var c=m.gridLines,h=m.tickMarks,u=m.padding,p=i.rect,f=this._plotRect;if(!c||!h)return;var g={};let b={stroke:c.color||self._getThemeColor("line"),"stroke-width":c.width,"stroke-dasharray":c.dashStyle||""};var v=e?p.y+p.height:p.x,y=c.offsets;let w;if(e&&!l.flip&&(y=(y=y.slice(0)).reverse()),y&&y.length>0){var x=NaN;for(let t=0;t<y.length;t++)if(o?(w=this.renderer._ptrnd(p.y+y[t].offset),w<p.y-.5&&(w=this.renderer._ptrnd(p.y)),w>p.y+p.height&&(w=p.y+p.height)):(w=this.renderer._ptrnd(p.x+y[t].offset),w>p.x+p.width+.5&&(w=this.renderer._ptrnd(p.x+p.width))),!isNaN(w)&&(isNaN(x)||!(Math.abs(w-x)<2))){if(x=w,r.gridLines&&!1!==c.visible&&!0!==s.gridLines&&(o?this.renderer.line(this.renderer._ptrnd(f.x),w,this.renderer._ptrnd(f.x+f.width),w,b):this.renderer.line(w,this.renderer._ptrnd(f.y),w,this.renderer._ptrnd(f.y+f.height),b)),g[w]=!0,r.alternatingBackground&&(c.alternatingBackgroundColor||c.alternatingBackgroundColor2)&&!0!==s.alternatingBackground){var _,S=t%2==0?c.alternatingBackgroundColor2:c.alternatingBackgroundColor;if(t>0&&S)_=o?this.renderer.rect(this.renderer._ptrnd(f.x),v,this.renderer._ptrnd(f.width-1),w-v,b):this.renderer.rect(v,this.renderer._ptrnd(f.y),w-v,this.renderer._ptrnd(f.height),b),this.renderer.attr(_,{"stroke-width":0,fill:S,opacity:c.alternatingBackgroundOpacity||1})}v=w}}if(b={stroke:h.color||self._getThemeColor("line"),"stroke-width":h.width,"stroke-dasharray":h.dashStyle||""},r.tickMarks&&h.visible&&!0!==s.tickMarks){var C=h.size;let t=h.offsets,r=NaN;for(let n=0;n<t.length;n++)if(o?(w=this.renderer._ptrnd(p.y+t[n].offset),w<p.y-.5&&(w=this.renderer._ptrnd(p.y)),w>p.y+p.height&&(w=p.y+p.height)):(w=this.renderer._ptrnd(p.x+t[n].offset),w>p.x+p.width+.5&&(w=this.renderer._ptrnd(p.x+p.width))),!isNaN(w)&&(isNaN(r)||!(Math.abs(w-r)<2))){if(g[w-1]?w--:g[w+1]&&w++,o){if(w>p.y+p.height+.5)break}else if(w>p.x+p.width+.5)break;r=w;var k=i.isMirror?C:-C;if(o){var A=p.x+p.width+("right"===l.position?u.left:-u.right);e||(A=p.x+(i.isMirror?u.left:-u.right+p.width)),this.renderer.line(A,w,A+k,w,b)}else{var T=p.y+(i.isMirror?p.height:0);T+=i.isMirror?-u.bottom:u.top,T=this.renderer._ptrnd(T),this.renderer.line(w,T,w,T-k,b)}}}s.tickMarks=s.tickMarks||r.tickMarks,s.gridLines=s.gridLines||r.gridLines,s.alternatingBackground=s.alternatingBackground||r.alternatingBackground}_calcValueAxisItems(t,e,r){let n=this._stats.seriesGroups[t];if(!n||!n.isValid)return!1;let o=this.seriesGroups[t],a=this._getValueAxis(t),i=!1!==a.valuesOnTicks,s=n.intervals,l=e/s,d=n.min,m=n.mu,c=!0===a.logarithmicScale,h=a.logarithmicScaleBase||10,u=-1!==o.type.indexOf("stacked")&&-1!==o.type.indexOf("100");for(c&&(m=isNaN(a.unitInterval)?1:a.unitInterval),i||(s=Math.max(s-1,1));this._renderData.length<t+1;)this._renderData.push({});this._renderData[t].valueAxis={};let p=this._renderData[t].valueAxis;p.itemWidth=p.intervalWidth=l,p.items=[];let f=p.items;for(let t=0;t<=s;t++){let e=0;e=c?u?n.max/Math.pow(h,s-t):d*Math.pow(h,t):i?d+t*m:d+(t+.5)*m,t%r==0?f.push(e):f.push(NaN)}return p.rangeLength=c&&!u?n.intervals:n.intervals*m,!0!==a.flip&&(f=f.reverse()),!0}_getDecimalPlaces(t,e,r){let n=0;isNaN(r)&&(r=10);for(let o=0;o<t.length;o++){let a=void 0===e?t[o]:t[o][e];if(isNaN(a))continue;let i=a.toString();for(let t=0;t<i.length;t++)if((i[t]<"0"||i[t]>"9")&&(n=i.length-(t+1),n>=0))return Math.min(n,r);for(n>0&&(a*=Math.pow(10,n));Math.round(a)!==a&&n<r;)n++,a*=10}return n}_renderValueAxis(t,e,r,n){let o=this.seriesGroups[t],a="horizontal"===o.orientation,i=this._getValueAxis(t);i||this.error(this.localize("missingAxis",{index:t,axis:"valueAxis"}));let s={width:0,height:0};if(!this._isGroupVisible(t)||this._isPieOnlySeries()||"spider"===o.type)return s;let l=!1!==i.valuesOnTicks,d=this._stats.seriesGroups[t],m=d.mu,c=!0===i.logarithmicScale,h=i.logarithmicScaleBase||10;if(c&&(m=isNaN(i.unitInterval)?1:i.unitInterval),0===m&&(m=1),isNaN(m))return s;let u=this._getAxisSettings(i),p=u.title,f=u.labels,g=i.labels||{};this._get([i.horizontalTextAlignment,g.horizontalAlignment])||0!==f.angle||(f.halign=a?"center":"right"===i.position?"left":"right");let b=this._get([f.step,f.unitInterval/m]);if(isNaN(b)&&(b=1),b=Math.max(1,Math.round(b)),!this._calcValueAxisItems(t,a?e.width:e.height,b)||!u.visible)return s;a||(p.angle=this.rightToLeft?90:-90,"centercenter"===p.rotationPoint&&("top"===p.valign?p.rotationPoint="rightcenter":"bottom"===p.valign&&(p.rotationPoint="leftcenter")));let v=this._renderData[t].valueAxis,y=this._getFormatSettings(f);-1!==o.type.indexOf("stacked")&&-1!==o.type.indexOf("100")&&!y&&(y={sufix:"%"}),f.formatFunction||y&&null!==y.decimalPlaces&&void 0!==y.decimalPlaces||(y=y||{},y.decimalPlaces=this._getDecimalPlaces([d.min,d.max,m],void 0,3));let w=u.gridLines,x=a?e.width:e.height,_=!0===i.flip;i.flip=!_;let S={min:d.min,max:d.max,logAxis:{enabled:!0===c,base:h,minPow:d.minPow,maxPow:d.maxPow}};(w.visible||i.alternatingBackgroundColor||i.alternatingBackgroundColor2)&&(w.offsets=this._getOffsets("gridLines",i,x,S,u,{left:0,right:0},l,m));let C=u.tickMarks;C.visible&&(C.offsets=this._getOffsets("tickMarks",i,x,S,u,{left:0,right:0},l,m));const k=this._getOffsets("labels",i,x,S,u,{left:0,right:0},l,m,!l);i.flip=_;let A,T=[];this._elementRenderInfo&&this._elementRenderInfo.length>t&&(A=this._elementRenderInfo[t].valueAxis);for(let t=0;t<k.length;t++){let e=k[t].value;if(isNaN(k[t].offset)){T.push(void 0);continue}let r={key:e,text:f.formatFunction?f.formatFunction(e):isNaN(e)?e:this._formatNumber(e,y)};A&&A.itemOffsets[e]&&(r.x=A.itemOffsets[e].x,r.y=A.itemOffsets[e].y),r.targetX=k[t].offset,isNaN(r.targetX)||T.push(r)}let E=a&&"top"===i.position||!a&&"right"===i.position||!a&&this.rightToLeft&&"left"!==i.position,N={items:T,renderData:v},M=this._getAnimProps(t),D=M.enabled&&T.length<500?M.duration:0;return!1===this.enableAxisTextAnimation&&(D=0),v.settings=u,v.isMirror=E,v.rect=e,this._renderAxis(!a,E,u,e,n,m,c,!0,N,r,D)}_objectsArraysToArray(t,e){let r=[];if(!Array.isArray(t))return r;for(let n=0;n<t.length;n++)r.push(t[n][e]);return r}_arraysToObjectsArray(t,e){let r=[];if(t.length!==e.length)return r;for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)r.length<=o&&r.push({}),r[o][e[n]]=t[n][o];return r}_valuesToOffsets(t,e,r,n,o,a,i){let s=[];if(!e||!Array.isArray(t))return s;let l=r.logAxis.base,d=r.logAxis.enabled?"logarithmic":"linear",m=e.flip,c=n,h=0,u=0;o&&!isNaN(o.left)&&(h=o.left),o&&!isNaN(o.right)&&(u=o.right),c=n-h-u,n=c;for(let e=0;e<t.length;e++){let o=this._smartPlot.scale(t[e],{min:r.min.valueOf(),max:r.max.valueOf(),type:d,base:l},{min:0,max:a?n:c,flip:m},{});isNaN(o)?s.push(NaN):(isNaN(i)||(o+=i),o<=n+h+u+1?s.push(this.renderer._ptrnd(o)):s.push(NaN))}return s}_generateIntervalValues(t,e,r,n,o){let a=[],i=t.min,s=t.max;if(t.logAxis&&t.logAxis.enabled&&(i=t.logAxis.minPow,s=t.logAxis.maxPow),null==i||null==s)return a;if(i===s)return t.logAxis&&t.logAxis.enabled?[Math.pow(t.logAxis.base,i)]:[i];let l=1;r<1&&(l=1e6,i*=l,s*=l,r*=l);for(let t=i;t<=s;t+=r)a.push(t/l+(o?r/2:0));if(e>r){let t=[],n=Math.round(e/r);for(let e=0;e<a.length;e++)e%n==0&&t.push(a[e]);a=t}if(t.logAxis&&t.logAxis.enabled)for(let e=0;e<a.length;e++)a[e]=Math.pow(t.logAxis.base,a[e]);return a}_generateDTOffsets(t,e,r,n,o,a,i,s,l,d,m){i||(i="day");var c=[];if(t>e)return c;if(t===e)return d?c.push({offset:s?r/2:n.left,value:t}):s&&c.push({offset:r/2,value:t}),c;var h=r-n.left-n.right,u=t,p=n.left,f=p,g=a=Math.max(a,1),b=Math.min(1,a);for(a>1&&"millisecond"!==i&&(a=1);this.renderer._ptrnd(f)<=this.renderer._ptrnd(n.left+h+(s?0:n.right));){c.push({offset:f,value:u});var v=new Date(u.valueOf());if("millisecond"===i)v.setMilliseconds(u.getMilliseconds()+a);else if("second"===i)v.setSeconds(u.getSeconds()+a);else if("minute"===i)v.setMinutes(u.getMinutes()+a);else if("hour"===i){var y=v.valueOf();v.setHours(u.getHours()+a),y===v.valueOf()&&v.setHours(u.getHours()+a+1)}else"day"===i?v.setDate(u.getDate()+a):"month"===i?v.setMonth(u.getMonth()+a):"year"===i&&v.setFullYear(u.getFullYear()+a);f=p+((u=v).valueOf()-t.valueOf())*b/(e.valueOf()-t.valueOf())*h}if(m)for(let t=0;t<c.length;t++)c[t].offset=r-c[t].offset;if(g>1&&"millisecond"!==i){var w=[];for(let t=0;t<c.length;t+=g)w.push({offset:c[t].offset,value:c[t].value});c=w}if(!s&&!d&&c.length>1){let t=[];t.push({offset:0,value:void 0});for(let e=1;e<c.length;e++)t.push({offset:c[e-1].offset+(c[e].offset-c[e-1].offset)/2,value:void 0});var x=t.length;x>1?t.push({offset:t[x-1].offset+(t[x-1].offset-t[x-2].offset)}):t.push({offset:r,value:void 0}),c=t}if(o>a){let t=[];var _=Math.round(o/g);for(let e=0;e<c.length;e++)e%_==0&&t.push({offset:c[e].offset,value:c[e].value});c=t}return c}_hasStackValueReversal(t,e){let r=this.seriesGroups[t];if(!(-1!==r.type.indexOf("stacked")))return!1;let n=-1!==r.type.indexOf("waterfall"),o=this._getDataLen(t),a=0,i=!1,s=[];for(let e=0;e<r.series.length;e++)s[e]=this._isSerieVisible(t,e);for(let l=0;l<o;l++){let o=void 0;n||(i=!1);for(let n=0;n<r.series.length;n++){if(!s[n])continue;const d=this._getDataValueAsNumber(l,r.series[n].dataField,t);if(isNaN(d))continue;if(r.series[n].summary){if(void 0!==this._getDataValue(l,r.series[n].summary,t))continue}let m=i?d<0:d<e;if(i=!0,void 0===o&&(o=m),m!==o)return!0;o=m,a+=d}}return this.waterfallStackSum=a,!1}_getValueAxis(t){let e=null==t?this.valueAxis:this.seriesGroups[t].valueAxis||this.valueAxis;return e||(e=this.valueAxis={}),e}_buildStats(t){var e={seriesGroups:[]};this._stats=e;for(let H=0;H<this.seriesGroups.length;H++){var r=this.seriesGroups[H];e.seriesGroups[H]={};var n=this._getXAxis(H),o=this._getValueAxis(H),a=this._getXAxisStats(H,n,"horizontal"!==r.orientation?t.width:t.height);let V=e.seriesGroups[H];V.isValid=!0;var i="horizontal"===r.orientation?t.width:t.height,s=!0===o.logarithmicScale,l=o.logarithmicScaleBase;isNaN(l)&&(l=10);var d=-1!==r.type.indexOf("stacked"),m=d&&-1!==r.type.indexOf("100"),c=-1!==r.type.indexOf("range"),h=-1!==r.type.indexOf("waterfall");h&&!this._moduleWaterfall&&self.error(self.localize("missingReference",{files:"smart.chart.waterfall.js"})),m&&(V.psums=[],V.nsums=[]);var u=NaN,p=NaN,f=NaN,g=NaN,b=o?o.baselineValue:NaN;isNaN(b)&&(b=s&&!m?1:0);var v=!1;0!==b&&d&&(v=this._hasStackValueReversal(H,b))&&(b=0),d&&h&&(v=this._hasStackValueReversal(H,b));var y=this._getDataLen(H),w=0,x=NaN,_=[];if(h)for(let t=0;t<r.series.length;t++)_.push(NaN);var S=NaN;for(let t=0;t<y&&V.isValid;t++){if(n.rangeSelector&&n.rangeSelector.visible){var C=n.dataField?this._getDataValue(t,n.dataField,H):t;if(C&&a.isDateTime&&(C=this._castAsDate(C,n.dateFormat)),a.useIndeces&&(C=t),C&&(C.valueOf()<a.min.valueOf()||C.valueOf()>a.max.valueOf()))continue}var k=o.minValue,A=o.maxValue;o.baselineValue&&(k=isNaN(k)?b:Math.min(b,k),A=isNaN(A)?b:Math.max(b,A));var T=0,E=0;for(let e=0;r.series&&e<r.series.length;e++)if(this._isSerieVisible(H,e)){var N=NaN,M=NaN,D=NaN;if(-1!==r.type.indexOf("candle")||-1!==r.type.indexOf("ohlc")){var F=["Open","Low","Close","High"];for(var O in F){var I=this._getDataValueAsNumber(t,r.series[e]["dataField"+F[O]],H);isNaN(I)||(D=isNaN(M)?I:Math.min(D,I),M=isNaN(M)?I:Math.max(M,I))}}else if(c){var L=this._getDataValueAsNumber(t,r.series[e].dataFieldFrom,H),P=this._getDataValueAsNumber(t,r.series[e].dataFieldTo,H);M=Math.max(L,P),D=Math.min(L,P)}else{if(N=this._getDataValueAsNumber(t,r.series[e].dataField,H),h){if(this._isSummary(H,t))if(void 0!==this._getDataValue(t,r.series[e].summary,H))continue;d?(isNaN(S)||(N+=S),S=N):(isNaN(_[e])?_[e]=N:N+=_[e],_[e]=N)}if(isNaN(N)||s&&N<=0)continue;D=M=N}(isNaN(A)||M>A)&&(isNaN(o.maxValue)||M<=o.maxValue)&&(A=M),(isNaN(k)||D<k)&&(isNaN(o.minValue)||D>=o.minValue)&&(k=D),isNaN(N)||!d||h||(N>b?T+=N:N<b&&(E+=N))}if(m||(isNaN(o.maxValue)||(T=Math.min(o.maxValue,T)),isNaN(o.minValue)||(E=Math.max(o.minValue,E))),s&&m)for(let e=0;e<r.series.length;e++){if(!this._isSerieVisible(H,e)){x=.01;continue}let n=this._getDataValueAsNumber(t,r.series[e].dataField,H);if(isNaN(n)||n<=0)x=.01;else{var z=0===T?0:n/T;(isNaN(x)||z<x)&&(x=z)}}var B=T-E;w<B&&(w=B),m&&(V.psums[t]=T,V.nsums[t]=E),(A>p||isNaN(p))&&(p=A),(k<u||isNaN(u))&&(u=k),(T>f||isNaN(f))&&(f=T),(E<g||isNaN(g))&&(g=E)}m&&(f=0===f?0:Math.max(f,-g),g=0===g?0:Math.min(g,-f)),u===p&&(!isNaN(o.minValue)&&isNaN(o.maxValue)?(u=o.minValue,p=s?u*l:u+1):isNaN(o.minValue)&&!isNaN(o.maxValue)&&(p=o.maxValue,u=s?p/l:p-1)),u===p&&(0===u?(u=-1,p=1):u<0?p=0:s?1===u&&(u/=l,p*=l):u=0);var R={gmin:u,gmax:p,gsumP:f,gsumN:g,gbase:b,isLogAxis:s,logBase:l,minPercent:x,gMaxRange:w,isStacked:d,isStacked100:m,isWaterfall:h,hasStackValueReversal:v,valueAxis:o,valueAxisSize:i};R.isStacked&&(R.gsumN<0&&(R.gmin=Math.min(R.gmin,R.gbase+R.gsumN)),R.gsumP>0&&(R.gmax=Math.max(R.gmax,R.gbase+R.gsumP))),V.context=R}this._mergeCommonValueAxisStats();for(let t=0;t<e.seriesGroups.length;t++){let r=e.seriesGroups[t];if(r.isValid){var H=this._calcOutputGroupStats(r.context);for(let t in H)r[t]=H[t];delete r.context}}}_mergeCommonValueAxisStats(){let t={};for(let e=0;e<this.seriesGroups.length;e++){if(!this._isGroupVisible(e))continue;if(this.seriesGroups[e].valueAxis)continue;let r=this._stats.seriesGroups[e].context;t.gbase=r.gbase,(isNaN(t.gmin)||r.gmin<t.gmin)&&(t.gmin=r.gmin),(isNaN(t.gmax)||r.gmax>t.gmax)&&(t.gmax=r.gmax),(isNaN(t.gsumP)||r.gsumP>t.gsumP)&&(t.gsumP=r.gsumP),(isNaN(t.gsumN)||r.gsumN<t.gsumN)&&(t.gsumN=r.gsumN),(isNaN(t.logBase)||r.logBase<t.logBase)&&(t.logBase=r.logBase),(isNaN(t.minPercent)||r.minPercent<t.minPercent)&&(t.minPercent=r.minPercent),t.gsumN>0&&(t.gmin=Math.min(t.gmin,t.gbase+t.gsumN)),t.gsumP>0&&(t.gmax=Math.max(t.gmax,t.gbase+t.gsumP))}for(let e=0;e<this.seriesGroups.length;e++){if(this.seriesGroups[e].valueAxis)continue;let r=this._stats.seriesGroups[e].context;for(let e in t)r[e]=t[e]}}_calcOutputGroupStats(t){let e=t.gmin,r=t.gmax,n=t.gsumP,o=t.gsumN,a=t.gbase,i=t.isLogAxis,s=t.logBase,l=t.minPercent,d=t.gMaxRange,m=t.isStacked,c=t.isStacked100,h=t.isWaterfall,u=t.hasStackValueReversal,p=t.valueAxis,f=t.valueAxisSize,g=t.valueAxis.unitInterval;g||(g=this._calcInterval(e,r,Math.max(f/80,2))),e===r&&(e=a,r*=2);let b=NaN,v=0,y=0;if(i){if(c){b=0;let t=1;for(v=y=this._draw.log(100,s);t>l;)t/=s,v--,b++;e=Math.pow(s,v)}else m&&!h&&(r=Math.max(r,n)),y=this.renderer._rnd(this._draw.log(r,s),1,!0),r=Math.pow(s,y),v=this.renderer._rnd(this._draw.log(e,s),1,!1),e=Math.pow(s,v);g=s}e<o&&(o=e),r>n&&(n=r);let w=e,x=r;if(i||0!=Math.abs(x-w)%g&&(w=this.renderer._rnd(e,g,!1),x=this.renderer._rnd(r,g,!0)),c&&x>100&&(x=100),c&&!i&&(x=x>0?100:0,w=w<0?-100:0,g=p.unitInterval,(isNaN(g)||g<=0||g>=100)&&(g=10),100%g!=0))for(;g>=1&&100%g!=0;g--);return isNaN(x)||isNaN(w)||isNaN(g)?{}:(isNaN(b)&&(b=parseInt(((x-w)/(0===g?1:g)).toFixed())),i&&!c&&(b=y-v,d=Math.pow(s,b)),b<1?{}:{min:w,max:x,logarithmic:i,logBase:s,base:i?w:a,minPow:v,maxPow:y,sumP:n,sumN:o,mu:g,maxRange:d,intervals:b,hasStackValueReversal:u})}_getDataLen(t){let e=this.dataSource;return null!=t&&-1!==t&&this.seriesGroups[t].dataSource&&(e=this.seriesGroups[t].dataSource),e?e.length:0}_getDataValue(t,e,r){let n=this.dataSource;if(null!=r&&-1!==r&&(n=this.seriesGroups[r].dataSource||n),!(!n||t<0||t>n.length-1))return"function"==typeof e?e(t,n):e&&""!==e?n[t][e]:n[t]}_getDataValueAsNumber(t,e,r){let n=this._getDataValue(t,e,r);return this._isDate(n)?n.valueOf():("number"!=typeof n&&(n=parseFloat(n)),"number"!=typeof n&&(n=void 0),n)}_isPieGroup(t){let e=this.seriesGroups[t];return!(!e||!e.type)&&(-1!==e.type.indexOf("pie")||-1!==e.type.indexOf("donut"))}_renderPieSeries(t,e){let r=this._getDataLen(t),n=this.seriesGroups[t],o=this._calcGroupOffsets(t,e).offsets;for(let a=0;a<n.series.length;a++){let i=n.series[a];if(i.customDraw)continue;let s=this._getSerieSettings(t,a),l=this._getAnimProps(t,a),d=l.enabled&&r<5e3&&!this._isToggleRefresh&&l.duration;this._isTouchDevice&&this.renderer instanceof Smart.Utilities.HTML5Renderer&&(d=0);let m=this._get([i.minAngle,i.startAngle]);(isNaN(m)||m<0||m>360)&&(m=0);let c=this._get([i.maxAngle,i.endAngle]);(isNaN(c)||c<0||c>360)&&(c=360);let h={rect:e,minAngle:m,maxAngle:c,groupIndex:t,serieIndex:a,settings:s,items:[]};for(let e=0;e<r;e++){let r=o[a][e];if(!r.visible)continue;let n=r.fromAngle,i=r.toAngle,s=this.renderer.pieslice(r.x,r.y,r.innerRadius,r.outerRadius,n,0===d?i:n,r.centerOffset);this._setRenderInfo(t,a,e,{element:s});let l={displayValue:r.displayValue,itemIndex:e,visible:r.visible,x:r.x,y:r.y,innerRadius:r.innerRadius,outerRadius:r.outerRadius,fromAngle:n,toAngle:i,centerOffset:r.centerOffset};h.items.push(l)}this._animatePieSlices(h,0);let u=this;this._enqueueAnimation("series",void 0,void 0,d,(function(t,e,r){u._animatePieSlices(e,r)}),h)}}_sliceSortFunction(t,e){return t.fromAngle-e.fromAngle}_animatePieSlices(t,e){var r;this._elementRenderInfo&&this._elementRenderInfo.length>t.groupIndex&&this._elementRenderInfo[t.groupIndex].series&&this._elementRenderInfo[t.groupIndex].series.length>t.serieIndex&&(r=this._elementRenderInfo[t.groupIndex].series[t.serieIndex]);var n=this._getLabelsSettings(t.groupIndex,t.serieIndex,NaN),o=n.visible,a=[];for(let n=0;n<t.items.length;n++){const o=t.items[n];if(!o.visible)continue;let d=o.fromAngle;var i=o.fromAngle+e*(o.toAngle-o.fromAngle);if(r&&r[o.displayValue]){var s=r[o.displayValue].fromAngle,l=r[o.displayValue].toAngle;d=s+(d-s)*e,i=l+(i-l)*e}a.push({index:n,from:d,to:i})}r&&a.sort(this._sliceSortFunction);var d=NaN;for(let i=0;i<a.length;i++){const s=t.items[a[i].index];var m=this._getRenderInfo(t.groupIndex,t.serieIndex,s.itemIndex);let l=a[i].from,p=a[i].to;r&&(!isNaN(d)&&l>d&&(l=d),d=p,i===a.length-1&&p!==a[0].from&&(p=t.maxAngle+a[0].from));var c=this.renderer.pieSlicePath(s.x,s.y,s.innerRadius,s.outerRadius,l,p,s.centerOffset);this.renderer.attr(m.element,{d:c});var h=this._getColors(t.groupIndex,t.serieIndex,s.itemIndex,"radialGradient",s.outerRadius),u=t.settings;m.colors=h,m.settings=u,this.renderer.attr(m.element,{fill:h.fillColor,stroke:h.lineColor,"stroke-width":u.stroke,"fill-opacity":u.opacity,"stroke-opacity":u.opacity,"stroke-dasharray":"none"}),o&&this._showPieLabel(t.groupIndex,t.serieIndex,s.itemIndex,n,void 0,m.colors.lineColor),1===e&&this._installHandlers(m.element,"pieslice",t.groupIndex,t.serieIndex,s.itemIndex)}}_showPieLabel(t,e,r,n,o){let a=this._renderData[t].offsets[e][r];if(a.elementInfo.labelElement&&this.renderer.removeElement(a.elementInfo.labelElement),n||(n=this._getLabelsSettings(t,e,NaN)),!n.visible)return;let i=a.fromAngle,s=a.toAngle,l=Math.abs(i-s);l>360&&(i=0,s=360);let d=l/2+i;d%=360;let m,c=d*Math.PI*2/360;!0===n.autoRotate&&(m=d<90||d>270?360-d:180-d);let h=n.linesEnabled,u=this._showLabel(t,e,r,{x:0,y:0,width:0,height:0},"center","center",!0,!1,!1,m),p=n.radius||a.outerRadius+Math.max(u.width,u.height);this._isPercent(p)&&(p=parseFloat(p)/100*Math.min(this._plotRect.width,this._plotRect.height)/2),p+=a.centerOffset,isNaN(o)&&(o=0),p+=o;let f=this.seriesGroups[t],g=f.series[e],b=this._draw.getNum([g.offsetX,f.offsetX,this._plotRect.width/2]),v=this._draw.getNum([g.offsetY,f.offsetY,this._plotRect.height/2]),y=this._plotRect.x+b,w=this._plotRect.y+v,x=this._adjustTextBoxPosition(y,w,u,p,d,a.outerRadius>p,!1!==n.linesAngles,!0===n.autoRotate);const _={},S=x.x<y?0:u.width/2,C=Math.sqrt(Math.pow(x.x-y,2)+Math.pow(x.y-w,2))+S<a.outerRadius?arguments[5]:void 0;if(a.elementInfo.labelElement=this._showLabel(t,e,r,{x:x.x,y:x.y,width:u.width,height:u.height},"left","top",!1,!1,!1,m,_,C),p>a.outerRadius+o+5&&!1!==h){let t={lineColor:a.elementInfo.colors.lineColor,stroke:a.elementInfo.settings.stroke,opacity:a.elementInfo.settings.opacity,dashStyle:a.elementInfo.settings.dashStyle};a.elementInfo.labelArrowPath=this._updateLebelArrowPath(a.elementInfo.labelArrowPath,y,w,p,a.outerRadius+o,c,!1!==n.linesAngles,t,_)}}_updateLebelArrowPath(t,e,r,n,o,a,i,s,l){const d=this.renderer;let m=d._ptrnd(e+(n-0)*Math.cos(a)),c=d._ptrnd(r-(n-0)*Math.sin(a)),h=d._ptrnd(e+(o+2)*Math.cos(a)),u=d._ptrnd(r-(o+2)*Math.sin(a)),p=[];p.push({x:l.x+l.width/2,y:l.y}),p.push({x:l.x+l.width/2,y:l.y+l.height}),p.push({x:l.x,y:l.y+l.height/2}),p.push({x:l.x+l.width,y:l.y+l.height/2}),i||(p.push({x:l.x,y:l.y}),p.push({x:l.x+l.width,y:l.y}),p.push({x:l.x+l.width,y:l.y+l.height}),p.push({x:l.x,y:l.y+l.height})),p=p.sort((function(t,n){return d._ptdist(t.x,t.y,e,r)-d._ptdist(n.x,n.y,e,r)})),p=p.sort((function(t,n){return Math.abs(t.x-e)+Math.abs(t.y-r)-(Math.abs(n.x-e)+Math.abs(n.y-r))}));for(let t=0;t<p.length;t++)p[t].x=d._ptrnd(p[t].x),p[t].y=d._ptrnd(p[t].y);m=p[0].x,c=p[0].y;let f="M "+m+","+c+" L"+h+","+u;return i&&(f="M "+m+","+c+" L"+h+","+c+" L"+h+","+u),t?d.attr(t,{d:f}):t=d.path(f,{}),d.attr(t,{fill:"none",stroke:s.lineColor,"stroke-width":s.stroke,"stroke-opacity":s.opacity,"stroke-dasharray":"none"}),t}_adjustTextBoxPosition(t,e,r,n,o,a,i,s){let l=o*Math.PI*2/360,d=this.renderer._ptrnd(t+n*Math.cos(l)),m=this.renderer._ptrnd(e-n*Math.sin(l));if(s){let o=r.width,a=r.height,i=Math.atan(a/o)%(2*Math.PI),s=l%(2*Math.PI),d=0;s<=i?d=o/2*Math.cos(l):s>=i&&s<Math.PI-i?d=a/2*Math.sin(l):s>=Math.PI-i&&s<Math.PI+i?d=o/2*Math.cos(l):s>=Math.PI+i&&s<2*Math.PI-i?d=a/2*Math.sin(l):s>=2*Math.PI-i&&s<2*Math.PI&&(d=o/2*Math.cos(l)),n+=Math.abs(d)+3;let m=this.renderer._ptrnd(t+n*Math.cos(l)),c=this.renderer._ptrnd(e-n*Math.sin(l));return m-=r.width/2,c-=r.height/2,{x:m,y:c}}return a?(d-=r.width/2,m-=r.height/2):i?o>=90&&o<270?(m-=r.height/2,d-=r.width):m-=r.height/2:o>=0&&o<45||o>=315&&o<360?m-=r.height/2:o>=45&&o<135?(m-=r.height,d-=r.width/2):o>=135&&o<225?(m-=r.height/2,d-=r.width):o>=225&&o<315&&(d-=r.width/2),{x:d,y:m}}_isColumnType(t){return-1!==t.indexOf("column")||-1!==t.indexOf("waterfall")}_getColumnGroupsCount(t){let e=0;t=t||"vertical";let r=this.seriesGroups;for(let n=0;n<r.length;n++){let o=r[n].orientation||"vertical";this._isColumnType(r[n].type)&&o===t&&e++}return this.columnSeriesOverlap&&(e=1),e}_getColumnGroupIndex(t){let e=0,r=this.seriesGroups[t].orientation||"vertical";for(let n=0;n<t;n++){let t=this.seriesGroups[n],o=t.orientation||"vertical";this._isColumnType(t.type)&&o===r&&e++}return e}_renderAxisBands(t,e,r){var n=r?this._getXAxis(t):this._getValueAxis(t),o=this.seriesGroups[t],a=r?void 0:o.bands;if(!a){for(let e=0;e<t;e++){if((r?this._getXAxis(e):this._getValueAxis(e))===n)return}a=n.bands}if(Array.isArray(a)){var i=e,s="horizontal"===o.orientation;s&&(i={x:e.y,y:e.x,width:e.height,height:e.width}),this._calcGroupOffsets(t,i);for(let n=0;n<a.length;n++){var l=a[n],d=l.minValue,m=l.maxValue,c=r?this.getXAxisDataPointOffset(d,t):this.getValueAxisDataPointOffset(d,t),h=r?this.getXAxisDataPointOffset(m,t):this.getValueAxisDataPointOffset(m,t);if(!isNaN(c)&&!isNaN(h)){var u,p=Math.abs(c-h);if(o.polar||o.spider){var f=this._renderData[t],g=f.polarCoords;if(r)if(o.spider){const e=this.getPolarDataPointOffset(d,this._stats.seriesGroups[t].max,t),r=this.getPolarDataPointOffset(m,this._stats.seriesGroups[t].max,t);let n="M "+g.x+","+g.y;n+=" L "+e.x+","+e.y,n+=" L "+r.x+","+r.y,u=this.renderer.path(n)}else{var b={},v={x:Math.min(c,h),y:e.y,width:p,height:e.height};this._columnAsPieSlice(b,e,g,v),u=b.element}else{var y=this._toPolarCoord(g,e,e.x,f.baseOffset),w=this._toPolarCoord(g,e,e.x,c),x=this._toPolarCoord(g,e,e.x,h),_=this.renderer._ptdist(y.x,y.y,w.x,w.y),S=this.renderer._ptdist(y.x,y.y,x.x,x.y),C=Math.round(360*-g.startAngle/(2*Math.PI)),k=Math.round(360*-g.endAngle/(2*Math.PI));if(C>k){const t=C;C=k,k=t}if(o.spider){var A=f.xAxis.offsetAngles;let t="";var T=[S,_],E=A;for(var N in g.isClosedCircle&&(E=A.slice(0)).push(E[0]),T){for(let e=0;e<E.length;e++){var M=0===N?e:A.length-e-1;let r=g.x+T[N]*Math.cos(E[M]),n=g.y+T[N]*Math.sin(E[M]);t+=""===t?"M ":" L",t+=this.renderer._ptrnd(r)+","+this.renderer._ptrnd(n)}if(0===N){let e=g.x+T[1]*Math.cos(E[M]),r=g.y+T[1]*Math.sin(E[M]);t+=" L"+this.renderer._ptrnd(e)+","+this.renderer._ptrnd(r)}}t+=" Z",u=this.renderer.path(t)}else u=this.renderer.pieslice(g.x,g.y,_,S,C,k)}}else{var D={x:Math.min(c,h),y:i.y,width:p,height:i.height};if(r||(D={x:i.x,y:Math.min(c,h),width:i.width,height:p}),s){let t=D.x;D.x=D.y,D.y=t,t=D.width,D.width=D.height,D.height=t}u=0===p||1===p?this.renderer.line(this.renderer._ptrnd(D.x),this.renderer._ptrnd(D.y),this.renderer._ptrnd(D.x+(s?0:D.width)),this.renderer._ptrnd(D.y+(s?D.height:0))):this.renderer.rect(D.x,D.y,D.width,D.height)}var F=l.color||this._getThemeColor("band"),O=l.lineColor||F,I=l.lineWidth;isNaN(I)&&(I=1);var L=l.opacity;(isNaN(L)||L<0||L>1)&&(L=1),this.renderer.attr(u,{fill:F,"fill-opacity":L,stroke:O,"stroke-opacity":L,"stroke-width":I,"stroke-dasharray":l.dashStyle})}}}}_getColumnGroupWidth(t,e,r){let n=this.seriesGroups[t],o=-1!==n.type.indexOf("stacked"),a=this._getColumnGroupsCount(n.orientation);(isNaN(a)||0===a)&&(a=1);let i=e.rangeLength>=1?e.itemWidth:.9*r,s=n.columnsMinWidth;isNaN(s)&&(s=1),isNaN(n.columnsMaxWidth)||(s=Math.min(n.columnsMaxWidth,s)),s>i&&e.length>0&&(i=Math.max(i,.9*r/e.length));let l=s;if(!o){let t=n.seriesGapPercent;(isNaN(t)||t<0)&&(t=10),t/=100;let e=s;e*=1+t,l+=n.series.length*e}return{requiredWidth:l,availableWidth:i,targetWidth:Math.max(i/a,l)}}_getColumnSerieWidthAndOffset(t,e){let r=this.seriesGroups[t],n="horizontal"===r.orientation,o=this._plotRect;n&&(o={x:o.y,y:o.x,width:o.height,height:o.width});let a=this._calcGroupOffsets(t,o);if(!a||0===a.xoffsets.length)return;let i=this._getColumnGroupsCount(r.orientation);"candlestick"!==r.type&&"ohlc"!==r.type||(i=1);let s=this._getColumnGroupIndex(t),l=this._getColumnGroupWidth(t,a.xoffsets,n?o.height:o.width),d=0,m=l.targetWidth;(!0===this.columnSeriesOverlap||Math.round(m)>Math.round(l.availableWidth/i))&&(i=1,s=0),d-=m*i/2,d+=m*s;let c=r.columnsGapPercent;c<=0&&(c=0),(isNaN(c)||c>=100)&&(c=25),c/=100;let h=m*c;h+l.requiredWidth>l.targetWidth&&(h=Math.max(0,l.targetWidth-l.requiredWidth)),Math.round(m)>Math.round(l.availableWidth)&&(h=0),m-=h,d+=h/2;let u=r.seriesGapPercent;(isNaN(u)||u<0)&&(u=10);let p=-1!==r.type.indexOf("stacked"),f=m;p||(f/=r.series.length);let g=this._get([r.seriesGap,m*u/100/(r.series.length-1)]);(!0===r.polar||!0===r.spider||p||r.series.length<=1)&&(g=0);let b=g*(r.series.length-1);r.series.length>1&&b>m-1*r.series.length&&(b=m-1*r.series.length,g=b/Math.max(1,r.series.length-1));let v=f-b/r.series.length,y=0,w=r.columnsMaxWidth;isNaN(w)||v>w&&(y=v-w,v=w);let x=0;if(p)x=y/2;else{x=(m-v*r.series.length-b)/2+v*e+Math.max(0,e)*g}return{width:v,offset:d+x}}_renderColumnSeries(t,e){let r=this.seriesGroups[t];if(!r.series||0===r.series.length)return;let n="horizontal"===r.orientation,o=e;n&&(o={x:e.y,y:e.x,width:e.height,height:e.width});let a,i=this._calcGroupOffsets(t,o);if(!i||0===i.xoffsets.length)return;!0!==r.polar&&!0!==r.spider||(a=this._getPolarAxisCoords(t,o));let s={groupIndex:t,rect:e,vertical:!n,seriesCtx:[],renderData:i,polarAxisCoords:a};s.columnGroupWidth=this._getColumnGroupWidth(t,i.xoffsets,n?o.height:o.width);let l,d=this._getGroupGradientType(t);for(let e=0;e<r.series.length;e++){let n=r.series[e];if(n.customDraw)continue;let o=this._getAnimProps(t,e);l=o.enabled&&!this._isToggleRefresh&&i.xoffsets.length<100?o.duration:0;let m=this._getColumnSerieWidthAndOffset(t,e),c=this._isSerieVisible(t,e),h=this._getSerieSettings(t,e),u=this._getColors(t,e,NaN,this._getGroupGradientType(t),4),p=[];if("function"==typeof n.colorFunction&&!a)for(let r=i.xoffsets.first;r<=i.xoffsets.last;r++)p.push(this._getColors(t,e,r,d,4));let f={seriesIndex:e,serieColors:u,itemsColors:p,settings:h,columnWidth:m.width,xAdjust:m.offset,isVisible:c};s.seriesCtx.push(f)}this._animColumns(s,0===l?1:0);let m=this;this._enqueueAnimation("series",void 0,void 0,l,(function(t,e,r){m._animColumns(e,r)}),s)}_getPercent(t,e,r,n){return isNaN(t)&&(t=e),!isNaN(r)&&!isNaN(t)&&t<r&&(t=r),!isNaN(n)&&!isNaN(t)&&t>n&&(t=n),isNaN(t)?NaN:t}_getColumnVOffsets(t,e,r,n,o,a){var i=this.seriesGroups[e],s=this._getPercent(i.columnsTopWidthPercent,100,0,100),l=this._getPercent(i.columnsBottomWidthPercent,100,0,100);0===s&&0===l&&(l=100);var d=this._getPercent(i.columnsNeckHeightPercent,NaN,0,100)/100,m=this._getPercent(i.columnsNeckWidthPercent,100,0,100)/100,c=[],h=NaN;for(let i=0;i<r.length;i++){var u,p=r[i],f=p.seriesIndex,g=t.offsets[f][n].from,b=t.offsets[f][n].to,v=t.xoffsets.data[n],y=p.isVisible;y||(b=g);var w=this._elementRenderInfo;if(y&&w&&w.length>e&&w[e].series.length>f){var x=t.xoffsets.xvalues[n];!(u=w[e].series[f][x])||isNaN(u.from)||isNaN(u.to)||(g=u.from+(g-u.from)*a,b=u.to+(b-u.to)*a,v=u.xoffset+(v-u.xoffset)*a)}u||(b=g+(b-g)*(o?1:a)),isNaN(g)&&(g=isNaN(h)?t.baseOffset:h),h=!isNaN(b)&&o?b:g,isNaN(b)&&(b=g);var _={from:g,to:b,xOffset:v};100===s&&100===l||(_.funnel=!0,_.toWidthPercent=s,_.fromWidthPercent=l),c.push(_)}if(o&&c.length>1&&!(this._elementRenderInfo&&this._elementRenderInfo.length>e)){var S=0,C=0,k=-1/0,A=1/0,T=1/0,E=-1/0;for(let t=0;t<c.length;t++){r[t].isVisible&&(c[t].to>=c[t].from?(C+=c[t].to-c[t].from,T=Math.min(T,c[t].from),E=Math.max(E,c[t].to)):(S+=c[t].from-c[t].to,k=Math.max(k,c[t].from),A=Math.min(A,c[t].to)))}var N=S,M=C;S*=a,C*=a;var D=0,F=0;for(let t=0;t<c.length;t++)if(c[t].to>=c[t].from){let e=c[t].to-c[t].from;e+F>C&&(e=Math.max(0,C-F),c[t].to=c[t].from+e),100===s&&100===l||(c[t].funnel=!0,!isNaN(d)&&M*d>=F?c[t].fromWidthPercent=100*m:c[t].fromWidthPercent=Math.abs(c[t].from-T)/M*(s-l)+l,!isNaN(d)&&M*d>=0+(F+e)?c[t].toWidthPercent=100*m:c[t].toWidthPercent=Math.abs(c[t].to-T)/M*(s-l)+l),F+=e}else{let e=c[t].from-c[t].to;e+D>S&&(e=Math.max(0,S-D),c[t].to=c[t].from-e),100===s&&100===l||(c[t].funnel=!0,!isNaN(d)&&N*d>=D?c[t].fromWidthPercent=100*m:c[t].fromWidthPercent=Math.abs(c[t].from-k)/N*(s-l)+l,!isNaN(d)&&N*d>=0+(D+e)?c[t].toWidthPercent=100*m:c[t].toWidthPercent=Math.abs(c[t].to-k)/N*(s-l)+l),D+=e}}return c}_columnAsPieSlice(t,e,r,n){let o=this._toPolarCoord(r,e,n.x,n.y),a=this._toPolarCoord(r,e,n.x,n.y+n.height),i=this.renderer._ptdist(r.x,r.y,a.x,a.y),s=this.renderer._ptdist(r.x,r.y,o.x,o.y),l=e.width,d=180*Math.abs(r.startAngle-r.endAngle)/Math.PI,m=-(n.x-e.x)*d/l,c=-(n.x+n.width-e.x)*d/l,h=r.startAngle;if(h=360*h/(2*Math.PI),m-=h,c-=h,t)if(void 0!==t.element&&null!==t.element){let e=this.renderer.pieSlicePath(r.x,r.y,i,s,c,m,0);e+=" Z",this.renderer.attr(t.element,{d:e})}else t.element=this.renderer.pieslice(r.x,r.y,i,s,c,m,0);return{fromAngle:c,toAngle:m,innerRadius:i,outerRadius:s}}_setRenderInfo(t,e,r,n){this._renderData[t].offsets[e][r].elementInfo=n}_getRenderInfo(t,e,r){return this._renderData[t].offsets[e][r].elementInfo||{}}_animColumns(t,e){var r=t.groupIndex,n=this.seriesGroups[r],o=t.renderData,a=-1!==n.type.indexOf("waterfall"),i=this._getXAxis(r),s=-1!==n.type.indexOf("stacked"),l=t.polarAxisCoords,d=-1;for(let t=0;t<n.series.length;t++)if(this._isSerieVisible(r,t)){d=t;break}var m=NaN,c=NaN;for(let e=0;e<t.seriesCtx.length;e++){var h=t.seriesCtx[e];(isNaN(m)||m>h.xAdjust)&&(m=h.xAdjust),(isNaN(c)||c<h.xAdjust+h.columnWidth)&&(c=h.xAdjust+h.columnWidth)}var u=Math.abs(c-m),p=this._get([n.columnsGapPercent,25])/100;(isNaN(p)<0||p>=1)&&(p=.25);var f=p*u,g=t.renderData.xoffsets,b=-1,v={},y=!0===n.skipOverlappingPoints;for(let m=g.first;m<=g.last;m++){var w=g.data[m];if(!isNaN(w)&&!(-1!==b&&Math.abs(w-b)<u-1+f&&y)){b=w;var x=this._getColumnVOffsets(o,r,t.seriesCtx,m,s,e),_=!1;if(a)for(let t=0;t<n.series.length;t++)n.series[t].summary&&g.xvalues[m][n.series[t].summary]&&(_=!0);for(let c=0;c<t.seriesCtx.length;c++){let h=t.seriesCtx[c];var S=h.seriesIndex,C=n.series[S],k=x[c].from,A=x[c].to,T=x[c].xOffset,E=(t.vertical?t.rect.x:t.rect.y)+h.xAdjust,N=h.settings;let u=0!==h.itemsColors.length?h.itemsColors[m-o.xoffsets.first]:h.serieColors;var M=this._isSerieVisible(r,S);if(!M)continue;let p=this.renderer._ptrnd(E+T);var D={x:p,width:h.columnWidth};x[c].funnel&&(D.fromWidthPercent=x[c].fromWidthPercent,D.toWidthPercent=x[c].toWidthPercent);var F=!0;t.vertical?(D.y=k,D.height=A-k,D.height<0&&(D.y+=D.height,D.height=-D.height,F=!1)):(D.x=k<A?k:A,D.width=Math.abs(k-A),F=k-A<0,D.y=p,D.height=h.columnWidth);var O=k-A;if(!isNaN(O)){O=Math.abs(O);var I=void 0,L=this._getRenderInfo(r,S,m),P=L.element,z=L.labelElement,B=null==P;if(z&&(this.renderer.removeElement(z),z=void 0),l){var R={element:P};I=this._columnAsPieSlice(R,t.rect,l,D),P=R.element,u=this._getColors(r,S,void 0,"radialGradient",I.outerRadius)}else if(x[c].funnel){var H=this._getTrapezoidPath(Object.assign({},D),t.vertical,F);B?P=this.renderer.path(H,{}):this.renderer.attr(P,{d:H})}else B?P=this.renderer.rect(D.x,D.y,t.vertical?D.width:0,t.vertical?0:D.height):!0===t.vertical?this.renderer.attr(P,{x:D.x,y:D.y,height:O}):this.renderer.attr(P,{x:D.x,y:D.y,width:O});if(O<1&&(1!==e||l)?this.renderer.attr(P,{display:"none"}):this.renderer.attr(P,{display:"block"}),B&&this.renderer.attr(P,{fill:u.fillColor,"fill-opacity":N.opacity,"stroke-opacity":N.opacity,stroke:u.lineColor,"stroke-width":N.stroke,"stroke-dasharray":N.dashStyle}),z&&this.renderer.removeElement(z),!M||0===O&&e<1)L={element:P,labelElement:z},this._setRenderInfo(r,S,m,L);else{if(a&&!1!==this._get([C.showWaterfallLines,n.showWaterfallLines])){if(!s||s&&c===d){var V=s?-1:c;if(1===e&&!isNaN(o.offsets[c][m].from)&&!isNaN(o.offsets[c][m].to)){var U=v[V];if(null!=U){var $={x:U.x,y:this.renderer._ptrnd(U.y)},G={x:p,y:$.y},j=n.columnsTopWidthPercent/100;(isNaN(j)||j>1||j<0)&&(j=1);var W=n.columnsBottomWidthPercent/100;(isNaN(W)||W>1||W<0)&&(W=1);var X=t.vertical?D.width:D.height;if($.x=$.x-X/2+X/2*j,_){let t=X*j/2;G.x=G.x+X/2-(i.flip?-t:t)}else{let t=X*W/2;G.x=G.x+X/2-(i.flip?-t:t)}t.vertical||(this._swapXY([$]),this._swapXY([G])),this.renderer.line($.x,$.y,G.x,G.y,{stroke:U.color,"stroke-width":N.stroke,"stroke-opacity":N.opacity,"fill-opacity":N.opacity,"stroke-dasharray":N.dashStyle})}}}1===e&&0!==O&&(v[s?-1:c]={y:A,x:t.vertical?D.x+D.width:D.y+D.height,color:u.lineColor})}if(l){let t=this._showLabel(r,S,m,D,void 0,void 0,!0);var q=I.outerRadius+10;const e=this._adjustTextBoxPosition(l.x,l.y,t,q,(I.fromAngle+I.toAngle)/2,!0,!1,!1);z=this._showLabel(r,S,m,{x:e.x,y:e.y},void 0,void 0,!1,!1,!1)}else z=this._showLabel(r,S,m,D,void 0,void 0,!1,!1,F);L={element:P,labelElement:z},this._setRenderInfo(r,S,m,L),1===e&&this._installHandlers(P,"column",r,S,m)}}}}}}_getTrapezoidPath(t,e,r){let n="",o=t.fromWidthPercent/100,a=t.toWidthPercent/100;if(!e){let e=t.width;t.width=t.height,t.height=e,e=t.x,t.x=t.y,t.y=e}let i=t.x+t.width/2,s=[{x:i-t.width*(r?a:o)/2,y:t.y+t.height},{x:i-t.width*(r?o:a)/2,y:t.y},{x:i+t.width*(r?o:a)/2,y:t.y},{x:i+t.width*(r?a:o)/2,y:t.y+t.height}];e||this._swapXY(s),n+="M "+this.renderer._ptrnd(s[0].x)+","+this.renderer._ptrnd(s[0].y);for(let t=1;t<s.length;t++)n+=" L "+this.renderer._ptrnd(s[t].x)+","+this.renderer._ptrnd(s[t].y);return n+=" Z",n}_swapXY(t){for(let e=0;e<t.length;e++){let r=t[e].x;t[e].x=t[e].y,t[e].y=r}}_renderCandleStickSeries(t,e,r){let n=this,o=n.seriesGroups[t];if(!o.series||0===o.series.length)return;let a="horizontal"===o.orientation,i=e;a&&(i={x:e.y,y:e.x,width:e.height,height:e.width});let s,l=n._calcGroupOffsets(t,i);if(!l||0===l.xoffsets.length)return;(o.polar||o.spider)&&(s=n._getPolarAxisCoords(t,i));let d=n._getGroupGradientType(t),m=[];for(let e=0;e<o.series.length;e++)m[e]=n._getColumnSerieWidthAndOffset(t,e);for(let i=0;i<o.series.length;i++){if(!this._isSerieVisible(t,i))continue;let c=n._getSerieSettings(t,i),h=o.series[i];if(h.customDraw)continue;let u="function"==typeof h.colorFunction?void 0:n._getColors(t,i,NaN,d),p={rect:e,inverse:a,groupIndex:t,seriesIndex:i,symbolType:h.symbolType,symbolSize:h.symbolSize,"fill-opacity":c.opacity,"stroke-opacity":c.opacity,"stroke-width":c.stroke,"stroke-dasharray":c.dashStyle,gradientType:d,colors:u,renderData:l,polarAxisCoords:s,columnsInfo:m,isOHLC:r,items:[],self:n},f=n._getAnimProps(t,i),g=f.enabled&&!n._isToggleRefresh&&l.xoffsets.length<5e3?f.duration:0;n._animCandleStick(p,0),n._enqueueAnimation("series",void 0,void 0,g,(function(t,e,r){n._animCandleStick(e,r,t)}),p)}}_animCandleStick(t,e){var r=["Open","Low","Close","High"],n=t.columnsInfo[t.seriesIndex].width,o=t.self.seriesGroups[t.groupIndex],a=t.renderData.xoffsets,i=-1,s=Math.abs(a.data[a.last]-a.data[a.first]);s*=e;var l=NaN,d=NaN;for(let e=0;e<t.columnsInfo.length;e++){var m=t.columnsInfo[e];(isNaN(l)||l>m.offset)&&(l=m.offset),(isNaN(d)||d<m.offset+m.width)&&(d=m.offset+m.width)}var c=Math.abs(d-l),h=!1!==o.skipOverlappingPoints;for(let l=a.first;l<=a.last;l++){var u=a.data[l];if(!isNaN(u)&&!(-1!==i&&Math.abs(u-i)<c&&h)){if(Math.abs(a.data[l]-a.data[a.first])>s)break;i=u;var p=t.items[l]=t.items[l]||{};for(let e in r){var f=t.self._getDataValueAsNumber(l,o.series[t.seriesIndex]["dataField"+r[e]],t.groupIndex);if(isNaN(f))break;var g=t.renderData.offsets[t.seriesIndex][l][r[e]];if(isNaN(g))break;p[r[e]]=g}if(u+=t.inverse?t.rect.y:t.rect.x,t.polarAxisCoords){var b=this._toPolarCoord(t.polarAxisCoords,this._plotRect,u,g);u=b.x,g=b.y}for(var v in u=this.renderer._ptrnd(u),r)p[v]=this.renderer._ptrnd(p[v]);var y=t.colors;if(y||(y=t.self._getColors(t.groupIndex,t.seriesIndex,l,t.gradientType)),t.isOHLC){var w="M"+u+","+p.Low+" L"+u+","+p.High+" M"+(u-n/2)+","+p.Open+" L"+u+","+p.Open+" M"+(u+n/2)+","+p.Close+" L"+u+","+p.Close;t.inverse&&(w="M"+p.Low+","+u+" L"+p.High+","+u+" M"+p.Open+","+(u-n/2)+" L"+p.Open+","+u+" M"+p.Close+","+u+" L"+p.Close+","+(u+n/2));let r=p.lineElement;r||(r=this.renderer.path(w,{}),this.renderer.attr(r,{fill:y.fillColor,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:y.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),p.lineElement=r),1===e&&this._installHandlers(r,"column",t.groupIndex,t.seriesIndex,l)}else{var x=p.lineElement;x||(x=t.inverse?this.renderer.line(p.Low,u,p.High,u):this.renderer.line(u,p.Low,u,p.High),this.renderer.attr(x,{fill:y.fillColor,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:y.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),p.lineElement=x);var _=p.stickElement;if(u-=n/2,!_){var S=y.fillColor;p.Close<=p.Open&&y.fillColorAlt&&(S=y.fillColorAlt),_=t.inverse?this.renderer.rect(Math.min(p.Open,p.Close),u,Math.abs(p.Close-p.Open),n):this.renderer.rect(u,Math.min(p.Open,p.Close),n,Math.abs(p.Close-p.Open)),this.renderer.attr(_,{fill:S,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:y.lineColor,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]}),p.stickElement=_}1===e&&this._installHandlers(_,"column",t.groupIndex,t.seriesIndex,l)}}}}_renderScatterSeries(t,e,r){var n=this.seriesGroups[t];if(n.series&&0!==n.series.length){var o=-1!==n.type.indexOf("bubble"),a="horizontal"===n.orientation,i=e;a&&(i={x:e.y,y:e.x,width:e.height,height:e.width});var s=this._calcGroupOffsets(t,i);if(s&&0!==s.xoffsets.length){var l,d=i.width;(n.polar||n.spider)&&(d=2*(l=this._getPolarAxisCoords(t,i)).r);var m=this._getGroupGradientType(t);r||(r="to");for(let B=0;B<n.series.length;B++){var c=this._getSerieSettings(t,B),h=n.series[B];if(!h.customDraw){var u=h.dataField,p="function"==typeof h.colorFunction,f=this._getColors(t,B,NaN,m),g=NaN,b=NaN;if(o)for(let e=s.xoffsets.first;e<=s.xoffsets.last;e++){var v=this._getDataValueAsNumber(e,h.radiusDataField||h.sizeDataField,t);"number"!=typeof v&&this.error(this.localize("invalidRadiusDataField",{index:e})),isNaN(v)||((isNaN(g)||v<g)&&(g=v),(isNaN(b)||v>b)&&(b=v))}var y=h.minRadius||h.minSymbolSize;isNaN(y)&&(y=d/50);var w=h.maxRadius||h.maxSymbolSize;isNaN(w)&&(w=d/25),y>w&&(w=y);var x=h.radius;x=isNaN(x)&&!isNaN(h.symbolSize)?"circle"===h.symbolType?h.symbolSize/2:h.symbolSize:5;var _=this._getAnimProps(t,B),S=_.enabled&&!this._isToggleRefresh&&s.xoffsets.length<5e3?_.duration:0,C={groupIndex:t,seriesIndex:B,symbolType:h.symbolType,symbolSize:h.symbolSize,"fill-opacity":c.opacity,"stroke-opacity":c.opacity,"stroke-width":c.stroke,"stroke-width-symbol":c.strokeSymbol,"stroke-dasharray":c.dashStyle,items:[],polarAxisCoords:l},k=void 0;for(let n=s.xoffsets.first;n<=s.xoffsets.last;n++){if("number"==typeof this._getDataValueAsNumber(n,u,t)){var A=s.xoffsets.data[n],T=s.xoffsets.xvalues[n],E=s.offsets[B][n][r];if(!(E<i.y||E>i.y+i.height||isNaN(A)||isNaN(E))){if(a){var N=A;A=E,E=N+e.y}else A+=e.x;if(!(!p&&k&&this.enableSampling&&this.renderer._ptdist(k.x,k.y,A,E)<1)){k={x:A,y:E};var M=x;if(o){var D=this._getDataValueAsNumber(n,h.radiusDataField||h.sizeDataField,t);if("number"!=typeof D)continue;M=y+(w-y)*(D-g)/Math.max(1,b-g),isNaN(M)&&(M=y)}s.offsets[B][n].radius=M;var F=NaN,O=NaN,I=0,L=this._elementRenderInfo;if(null!=T&&L&&L.length>t&&L[t].series.length>B){var P=L[t].series[B][T];if(P&&!isNaN(P.to)){if(F=P.to,O=P.xoffset,I=x,a){let t=O;O=F,F=t+e.y}else O+=e.x;o&&(I=y+(w-y)*(P.valueRadius-g)/Math.max(1,b-g),isNaN(I)&&(I=y))}}p&&(f=this._getColors(t,B,n,m)),C.items.push({from:I,to:M,itemIndex:n,fill:f.fillColor,stroke:f.lineColor,x:A,y:E,xFrom:O,yFrom:F})}}}}this._animR(C,0);var z=this;this._enqueueAnimation("series",void 0,void 0,S,(function(t,e,r){z._animR(e,r,t)}),C)}}}}}_animR(t,e){let r=t.items,n=t.symbolType||"circle",o=t.symbolSize;for(let a=0;a<r.length;a++){let i=r[a],s=i.x,l=i.y,d=Math.round((i.to-i.from)*e+i.from);if(isNaN(i.yFrom)||(l=i.yFrom+(l-i.yFrom)*e),isNaN(i.xFrom)||(s=i.xFrom+(s-i.xFrom)*e),t.polarAxisCoords){let e=this._toPolarCoord(t.polarAxisCoords,this._plotRect,s,l);s=e.x,l=e.y}s=this.renderer._ptrnd(s),l=this.renderer._ptrnd(l),d=this.renderer._ptrnd(d);let m=this._getRenderInfo(t.groupIndex,t.seriesIndex,r[a].itemIndex),c=m.element,h=m.labelElement;"circle"===n?(c||(c=this.renderer.circle(s,l,d),this.renderer.attr(c,{fill:i.fill,"fill-opacity":t["fill-opacity"],"stroke-opacity":t["fill-opacity"],stroke:i.stroke,"stroke-width":t["stroke-width"],"stroke-dasharray":t["stroke-dasharray"]})),this.renderer.attr(c,{r:d,cy:l,cx:s})):(c&&this.renderer.removeElement(c),c=this._drawSymbol(n,s,l,i.fill,t["fill-opacity"],i.stroke,t["stroke-opacity"]||t["fill-opacity"],t["stroke-width-symbol"],t["stroke-dasharray"],o||d)),h&&this.renderer.removeElement(h),h=this._showLabel(t.groupIndex,t.seriesIndex,i.itemIndex,{x:s-d,y:l-d,width:2*d,height:2*d}),e>=1&&this._installHandlers(c,"circle",t.groupIndex,t.seriesIndex,i.itemIndex),this._setRenderInfo(t.groupIndex,t.seriesIndex,r[a].itemIndex,{element:c,labelElement:h})}}_showMultiSeriesToolTip(t){let e=this,r="<div style='text-align:left'>",n="";for(let o=0;o<e.seriesGroups.length;o++){if(e._isPieGroup(o))continue;let a=e._getXAxis(o),i=e._getValueAxis(o),s=e.seriesGroups[o],l=this._getAxisSettings(a),d=this._getFormatSettings(l,"toolTipFormatSettings"),m=l.toolTipFormatFunction,c=e._getDataValue(t,a.dataField,o);void 0!==a.dataField&&null!==a.dataField&&""!==a.dataField||(c=t),"date"===a.type&&(c=e._castAsDate(c,(d?d.dateFormat:void 0)||a.dateFormat)),m||d||"date"!==a.type||(m=this._getDefaultDTFormatFn(a.baseUnit||"day"));let h=a.displayText||a.dataField||"";""!==h&&(h+=": ");let u=h+e._formatValue(c,d,m,o,void 0,t);n!==u&&(""!==n&&(r+="<br />"),r+=u+"<br /><br />",n=u);for(let n=0;n<s.series.length;n++){let a=s.series[n];if(!1===s.showToolTips||!1===a.showToolTips)continue;if(!e._isSerieVisible(o,n))continue;let l=e._get([e._getFormatSettings(a,"toolTipFormatSettings"),e._getFormatSettings(s,"toolTipFormatSettings"),e._getFormatSettings(i,"toolTipFormatSettings"),e._getFormatSettings(e,"toolTipFormatSettings")]),d=e._get([a.toolTipFormatFunction,s.toolTipFormatFunction,i.toolTipFormatFunction,e.toolTipFormatFunction]),m=e._getFormattedValue(o,n,t,l,d);r+='<span style="color:'+e._getColors(o,n,t).lineColor+';">'+m+"</span><br />\n"}}let o=this._get([e.toolTipClass,"smart-chart-tooltip-text"]),a=this._get([e.toolTipBackground,e._getThemeColor("background")]),i=this._get([e.toolTipLineColor,e._getThemeColor("line")]),s=this._get([e.toolTipOpacity,1]);r+="</div>";let l=this.getItemCoord(e._ttEl.gidx,e._ttEl.sidx,e._ttEl.iidx);l.x+=window.pageXOffset,l.y+=window.pageYOffset,e._createTooltip(l,e.seriesGroups[e._ttEl.gidx],r,{css:o,fill:a,stroke:i,fillOpacity:s,symbolSize:3})}_showToolTip(t,e,r,n,o){let a=this,i=a._getXAxis(r),s=a._getValueAxis(r);if(a._ttEl&&r===a._ttEl.gidx&&n===a._ttEl.sidx&&o===a._ttEl.iidx)return;let l=a.seriesGroups[r],d=l.series[n],m=a.enableCrosshairs;a._pointMarker?(t=parseInt(a._pointMarker.x+5),e=parseInt(a._pointMarker.y-5)):m=!1;let c=m&&!1===a.showToolTips;if(t=this.renderer._ptrnd(t),e=this.renderer._ptrnd(e),!1===l.showToolTips||!1===d.showToolTips)return;a._ttEl||(a._ttEl={}),a._ttEl.sidx=n,a._ttEl.gidx=r,a._ttEl.iidx=o;let h=0;for(let t=0;t<a.seriesGroups.length;t++)for(let e=0;e<a.seriesGroups[t].series.length;e++)h++;if(m){let t=this.renderer._ptrnd(a._pointMarker.x),e=this.renderer._ptrnd(a._pointMarker.y),n=a.crosshairsColor||a._getThemeColor("line");if(l.polar||l.spider){let o=this._getPolarAxisCoords(r,this._plotRect);if(this.renderer._ptdist(t,e,o.x,o.y)>o.r)return;let i=Math.atan2(e-o.y,t-o.x),s=Math.cos(i)*o.r+o.x,l=Math.sin(i)*o.r+o.y;a._ttEl.vLine?a.renderer.attr(a._ttEl.vLine,{x1:o.x,y1:o.y,x2:s,y2:l}):a._ttEl.vLine=a.renderer.line(o.x,o.y,s,l,{stroke:n,"stroke-width":a.crosshairsLineWidth||1,"stroke-dasharray":a.crosshairsDashStyle||""})}else a._ttEl.vLine&&a._ttEl.hLine?(a.renderer.attr(a._ttEl.vLine,{x1:t,x2:t}),a.renderer.attr(a._ttEl.hLine,{y1:e,y2:e})):(a._ttEl.vLine=a.renderer.line(t,a._plotRect.y,t,a._plotRect.y+a._plotRect.height,{stroke:n,"stroke-width":a.crosshairsLineWidth||1,"stroke-dasharray":a.crosshairsDashStyle||""}),a._ttEl.hLine=a.renderer.line(a._plotRect.x,e,a._plotRect.x+a._plotRect.width,e,{stroke:n,"stroke-width":a.crosshairsLineWidth||1,"stroke-dasharray":a.crosshairsDashStyle||""}))}if(a.showToolTipsOnAllSeries&&!a._isPieGroup(r)&&h>1)return void a._showMultiSeriesToolTip(o);let u=a._get([a._getFormatSettings(d,"toolTipFormatSettings"),a._getFormatSettings(l,"toolTipFormatSettings"),a._getFormatSettings(s,"toolTipFormatSettings"),a._getFormatSettings(a,"toolTipFormatSettings")]),p=a._get([d.toolTipFormatFunction,l.toolTipFormatFunction,s.toolTipFormatFunction,a.toolTipFormatFunction]),f=a._getColors(r,n,o),g=a._getDataValue(o,i.dataField,r);void 0!==i.dataField&&null!==i.dataField&&""!==i.dataField||(g=o),"date"===i.type&&(g=a._castAsDate(g,(u?u.dateFormat:void 0)||i.dateFormat));let b="";if("function"==typeof p){let t={},e=0;for(let n in d)0===n.indexOf("dataField")&&(t[n.substring(9,n.length).toLowerCase()]=a._getDataValue(o,d[n],r),e++);0===e?t=a._getDataValue(o,void 0,r):1===e&&(t=t[""]),b=p(t,o,d,l,g,i)}else{b=a._getFormattedValue(r,n,o,u,p);let t=this._getAxisSettings(i),e=a._getFormatSettings(t,"toolTipFormatSettings"),s=t.toolTipFormatFunction;s||e||"date"!==i.type||(s=this._getDefaultDTFormatFn(i.baseUnit||"day"));let l=a._formatValue(g,e,s,r,n,o);if(a._isPieGroup(r))g=a._getDataValue(o,d.displayText||d.dataField,r),l=a._formatValue(g,e,s,r,n,o),b=l+": "+b;else{let t=i.displayText||i.dataField||"";b=t.length>0?t+": "+l+"<br>"+b:l+"<br>"+b}}if(!c&&!1!==a.showToolTips){let t=this._get([d.toolTipClass,l.toolTipClass,a.toolTipClass,"smart-chart-tooltip-text"]),e=this._get([d.toolTipBackground,l.toolTipBackground,a.toolTipBackground,a._getThemeColor("background")]),i=this._get([d.toolTipLineColor,l.toolTipLineColor,a.toolTipLineColor,f.lineColor,a._getThemeColor("line")]),s=this._get([d.toolTipOpacity,l.toolTipOpacity,a.toolTipOpacity,1]),m=this.getItemCoord(r,n,o);m.y=Math.min(Math.max(m.y,this._plotRect.y),this._plotRect.y+this._plotRect.y+this._plotRect.height);let c=0;a._pointMarker&&a._pointMarker.element&&(c=d.symbolSizeSelected,isNaN(c)&&(c=d.symbolSize),(isNaN(c)||c>50||c<0)&&(c=l.symbolSize),(isNaN(c)||c>50||c<0)&&(c=8)),a._createTooltip(m,l,b,{css:t,fill:e,stroke:i,fillOpacity:s,symbolSize:c})}}_fitTooltip(t,e,r,n,o){let a={},i=2+o/2;if(e.x-r.width-7-i>t.x&&e.y+e.height/2-r.height/2>t.y&&e.y+e.height/2+r.height/2<t.y+t.height&&(a.left={arrowLocation:"right",x:e.x-r.width-7-i,y:e.y+e.height/2-r.height/2,width:r.width+7,height:r.height}),e.x+e.width+r.width+7+i<t.x+t.width&&e.y+e.height/2-r.height/2>t.y&&e.y+e.height/2+r.height/2<t.y+t.height&&(a.right={arrowLocation:"left",x:e.x+e.width+i,y:e.y+e.height/2-r.height/2,width:r.width+7,height:r.height}),e.y-r.height-i-7>t.y&&e.x+e.width/2-r.width/2>t.x&&e.x+e.width/2+r.width/2<t.x+t.width&&(a.top={arrowLocation:"bottom",x:e.x+e.width/2-r.width/2,y:e.y-r.height-i-7,width:r.width,height:r.height+7}),e.y+e.height+r.height+7+i<t.y+t.height&&e.x+e.width/2-r.width/2>t.x&&e.x+e.width/2+r.width/2<t.x+t.width&&(a.bottom={arrowLocation:"top",x:e.x+e.width/2-r.width/2,y:e.y+e.height+i,width:r.width,height:r.height+7}),e.width>e.height||(-1!==n.type.indexOf("stackedcolumn")||-1!==n.type.indexOf("stackedwaterfall"))&&"horizontal"!==n.orientation){if(a.left)return a.left;if(a.right)return a.right}else{if(a.top)return a.top;if(a.bottom)return a.bottom}for(let t in a)if(a[t])return a[t];return{arrowLocation:""}}_createTooltip(t,e,r,n){const o=this,a=e.type;let i=o._ttEl.box;if(!i){i=o._ttEl.box=document.createElement("div"),i.id=o.id+"Tooltip",i.className="smart-chart-tooltip",i.setAttribute("animation",o.animation),i.setAttribute("theme",o.theme),i.setAttribute("role","tooltip");const t=document.createElement("div"),e=document.createElement("div"),r=document.createElement("div");if(t.className="smart-chart-tooltip-arrow-outer",t.setAttribute("role","presentation"),e.className="smart-chart-tooltip-arrow-inner",e.setAttribute("role","presentation"),r.className="smart-chart-tooltip-content",r.setAttribute("role","presentation"),i.appendChild(r),i.appendChild(t),i.appendChild(e),o.getRootNode().host?o.getShadowRootOrBody().appendChild(i):document.body.appendChild(i),o.hasAttribute("aria-owns")){const t=o.getAttribute("aria-owns");o.setAttribute("aria-owns",t+" "+i.id)}else o.setAttribute("aria-owns",i.id)}if(!r||0===r.length)return void i.classList.add("smart-visibility-hidden");o.rightToLeft?i.setAttribute("right-to-left",""):i.removeAttribute("right-to-left"),i.classList.add("smart-visibility-hidden");const s=i.firstElementChild,l=i.children[1],d=i.children[2];d.style.opacity=l.style.opacity=n.fillOpacity,s.style.backgroundColor=n.fill,s.style.borderColor=n.stroke,s.style.opacity=n.fillOpacity;const m='<span class="'+n.css+'" role="presentation">'+r+"</span>";s.innerHTML=m;const c=o._measureHtml(m),h=o._plotRect;if(c.width>h.width||c.height>h.height)return;let u={width:c.width,height:c.height},p="",f=o._isColumnType(a),g=Math.max(t.x,h.x),b=Math.max(t.y,h.y);if(-1!==a.indexOf("pie")||-1!==a.indexOf("donut")){let e=(t.fromAngle+t.toAngle)/2;e*=Math.PI/180;let r=!isNaN(t.innerRadius)&&t.innerRadius>0?(t.innerRadius+t.outerRadius)/2:.75*t.outerRadius;g=t.x=t.center.x+Math.cos(e)*r,b=t.y=t.center.y-Math.sin(e)*r,t.width=t.height=1}else f&&(e.polar||e.spider)&&(t.width=t.height=1);let v=this._fitTooltip(this._plotRect,t,u,e,n.symbolSize);""!==v.arrowLocation&&(p=v.arrowLocation,g=v.x,b=v.y,u.width=v.width,u.height=v.height),"top"===p||"bottom"===p?(u.height+=7,g-=3.5,"bottom"===p&&(b-=7)):"left"!==p&&"right"!==p||(u.width+=7,b-=3.5,"right"===p&&(g-=7)),g+u.width>h.x+h.width&&(p="",g=h.x+h.width-u.width),b+u.height>h.y+h.height&&(p="",b=h.y+h.height-u.height);let y={x:0,y:0},w={x:0,y:0};s.style.width=c.width+"px",s.style.height=c.height+"px",l.style["margin-top"]=l.style["margin-left"]=0,d.style["margin-top"]=d.style["margin-left"]=0,s.style["margin-top"]=s.style["margin-left"]=0;switch(p){case"left":y={x:0,y:(c.height-7)/2},w={x:7,y:0},s.style["margin-left"]="7px",l.style["margin-left"]="0px",l.style["margin-top"]=y.y+"px",l.style["border-left"]="",l.style["border-right"]="7px solid "+n.stroke,l.style["border-top"]="7px solid transparent",l.style["border-bottom"]="7px solid transparent",d.style["margin-left"]="1px",d.style["margin-top"]=y.y+"px",d.style["border-left"]="",d.style["border-right"]="7px solid "+n.fill,d.style["border-top"]="7px solid transparent",d.style["border-bottom"]="7px solid transparent";break;case"right":y={x:u.width-7,y:(c.height-7)/2},w={x:0,y:0},l.style["margin-left"]=y.x+"px",l.style["margin-top"]=y.y+"px",l.style["border-left"]="7px solid "+n.stroke,l.style["border-right"]="",l.style["border-top"]="7px solid transparent",l.style["border-bottom"]="7px solid transparent",d.style["margin-left"]=y.x-1+"px",d.style["margin-top"]=y.y+"px",d.style["border-left"]="7px solid "+n.fill,d.style["border-right"]="",d.style["border-top"]="7px solid transparent",d.style["border-bottom"]="7px solid transparent";break;case"top":y={x:u.width/2-3.5,y:0},w={x:0,y:7},s.style["margin-top"]=w.y+"px",l.style["margin-left"]=y.x+"px",l.style["border-top"]="",l.style["border-bottom"]="7px solid "+n.stroke,l.style["border-left"]="7px solid transparent",l.style["border-right"]="7px solid transparent",d.style["margin-left"]=y.x+"px",d.style["margin-top"]="1px",d.style["border-top"]="",d.style["border-bottom"]="7px solid "+n.fill,d.style["border-left"]="7px solid transparent",d.style["border-right"]="7px solid transparent";break;case"bottom":y={x:u.width/2-3.5,y:u.height-7},w={x:0,y:0},l.style["margin-left"]=y.x+"px",l.style["margin-top"]=y.y+"px",l.style["border-top"]="7px solid "+n.stroke,l.style["border-bottom"]="",l.style["border-left"]="7px solid transparent",l.style["border-right"]="7px solid transparent",d.style["margin-left"]=y.x+"px",d.style["margin-top"]=y.y-1+"px",d.style["border-top"]="7px solid "+n.fill,d.style["border-bottom"]="",d.style["border-left"]="7px solid transparent",d.style["border-right"]="7px solid transparent"}""===p?(l.classList.add("smart-hidden"),d.classList.add("smart-hidden")):(l.classList.remove("smart-hidden"),d.classList.remove("smart-hidden")),i.style.width=u.width+"px",i.style.height=u.height+"px";const x=o.getBoundingClientRect();i.style.left=g+x.left+window.pageXOffset+"px",i.style.top=b+x.top+window.pageYOffset+"px",i.classList.remove("smart-visibility-hidden")}_measureHtml(t){const e=this;let r=e._measureDiv;r||(e._measureDiv=r=document.createElement("div"),r.className="smart-chart-tooltip",r.style.position="absolute",r.style.visibility="hidden",r.style.left=0,r.style.top=0,(e.shadowRoot||e).appendChild(r)),r.innerHTML=t;const n={width:r.offsetWidth+2,height:r.offsetHeight+2};return Smart.Utilities.Core.Browser.Firefox&&(n.height+=3),n}_hideToolTip(){this._ttEl&&(this._ttEl.box&&this._ttEl.box.classList.add("smart-visibility-hidden"),this._hideCrosshairs(),this._ttEl.gidx=void 0)}_hideCrosshairs(){this._ttEl&&(this._ttEl.vLine&&(this.renderer.removeElement(this._ttEl.vLine),this._ttEl.vLine=void 0),this._ttEl.hLine&&(this.renderer.removeElement(this._ttEl.hLine),this._ttEl.hLine=void 0))}_get(t){return this._draw.getByPriority(t)}_getAxisSettings(t){if(!t)return{};let e=t.gridLines||{},r={visible:this._get([e.visible,!0]),color:this._get([e.color,this._getThemeColor("line")]),unitInterval:e.unitInterval,step:e.step,dashStyle:e.dashStyle,width:this._get([e.lineWidth,1]),offsets:[],alternatingBackgroundColor:t.alternatingBackgroundColor,alternatingBackgroundColor2:t.alternatingBackgroundColor2,alternatingBackgroundOpacity:t.alternatingBackgroundOpacity},n=t.tickMarks||{},o={visible:this._get([n.visible,t.showTickMarks,!0]),color:this._get([n.color,t.tickMarksColor,this._getThemeColor("line")]),unitInterval:this._get([n.unitInterval,n.interval,t.tickMarksInterval]),step:this._get([n.step,t.tickMarksStep]),dashStyle:this._get([n.dashStyle,t.tickMarksDashStyle]),width:this._get([n.lineWidth,1]),size:this._get([n.size,4]),offsets:[]},a=t.title||{},i={visible:this._get([a.visible,!0]),text:this._get([t.description,a.text]),style:this._get([t.descriptionClass,a.class,"smart-chart-axis-description"]),halign:this._get([t.horizontalDescriptionAlignment,a.horizontalAlignment,"center"]),valign:this._get([t.verticalDescriptionAlignment,a.verticalAlignment,"center"]),angle:0,rotationPoint:this._get([a.rotationPoint,"centercenter"]),offset:this._get([a.offset,{x:0,y:0}])},s=t.line||{},l={visible:this._get([s.visible,!0]),color:this._get([s.color,r.color,this._getThemeColor("line")]),dashStyle:this._get([s.dashStyle,r.dashStyle,""]),width:this._get([s.lineWidth,1]),angle:this._get([s.angle,NaN])},d=t.padding||{};d={left:d.left||0,right:d.right||0,top:d.top||0,bottom:d.bottom||0};let m=this._getAxisLabelsSettings(t);return{visible:this._get([t.visible,!0]),customDraw:this._get([t.customDraw,!1]),gridLines:r,tickMarks:o,line:l,title:i,labels:m,padding:d,toolTipFormatFunction:this._get([t.toolTipFormatFunction,t.formatFunction,m.formatFunction]),toolTipFormatSettings:this._get([this._getFormatSettings(t,"toolTipFormatSettings"),this._getFormatSettings(t),this._getFormatSettings(m)])}}_getAxisLabelsSettings(t){let e=t.labels||{};return{visible:this._get([t.showLabels,e.visible,!0]),unitInterval:this._get([e.unitInterval,e.interval,t.labelsInterval]),step:this._get([e.step,t.labelsStep]),angle:this._get([t.textRotationAngle,e.angle,0]),style:this._get([t.class,e.class,"smart-chart-axis-text"]),halign:this._get([t.horizontalTextAlignment,e.horizontalAlignment,"center"]),valign:this._get([t.verticalTextAlignment,e.verticalAlignment,"center"]),textRotationPoint:this._get([t.textRotationPoint,e.rotationPoint,"auto"]),textOffset:this._get([t.textOffset,e.offset,{x:0,y:0}]),autoRotate:this._get([t.labelsAutoRotate,e.autoRotate,!1]),formatSettings:this._get([this._getFormatSettings(t),this._getFormatSettings(e),void 0]),formatFunction:this._get([t.formatFunction,e.formatFunction,void 0])}}_getLabelsSettings(t,e,r,n){let o=this.seriesGroups[t],a=o.series[e],i=isNaN(r)?void 0:this._getDataValue(r,a.dataField,t),s=n||["Visible","Offset","Angle","HorizontalAlignment","VerticalAlignment","Class","BackgroundColor","BorderColor","BorderOpacity","Padding","Opacity","BackgroundOpacity","LinesAngles","LinesEnabled","AutoRotate","Radius"],l={};for(let t=0;t<s.length;t++){let e=s[t],n="labels"+e,d="label"+e,m=e.substring(0,1).toLowerCase()+e.substring(1),c=void 0;o.labels&&"object"==typeof o.labels&&(c=o.labels[m]),a.labels&&"object"==typeof a.labels&&void 0!==a.labels[m]&&null!==a.labels[m]&&(c=a.labels[m]),c=this._get([a[n],a[d],c,o[n],o[d]]),l[m]="function"==typeof c?c(i,r,a,o):c}l.class=l.class||"smart-chart-label-text",l.visible=this._get([l.visible,a.showLabels,o.showLabels,void 0!==a.labels&&null!==a.labels||void 0,void 0!==o.labels&&null!==o.labels||void 0]);let d=l.padding||1;return l.padding={left:this._get([d.left,isNaN(d)?1:d]),right:this._get([d.right,isNaN(d)?1:d]),top:this._get([d.top,isNaN(d)?1:d]),bottom:this._get([d.bottom,isNaN(d)?1:d])},l}_showLabel(t,e,r,n,o,a,i,s,l,d,m){let c={width:0,height:0};if(isNaN(r))return;let h=this._getLabelsSettings(t,e,r);if(!h.visible)return i?c:void 0;if(n.width<0||n.height<0)return i?c:void 0;let u=h.angle;isNaN(d)||(u=d);let p=h.offset||{},f={x:p.x,y:p.y};isNaN(f.x)&&(f.x=0),isNaN(f.y)&&(f.y=0),o=o||h.horizontalAlignment||"center",a=a||h.verticalAlignment||"center";let g=this._getFormattedValue(t,e,r,void 0,void 0,!0),b=n.width,v=n.height;if(!0===s&&"center"!==o&&(o="right"===o?"left":"right"),!0===l&&"center"!==a&&"middle"!==a&&(a="top"===a?"bottom":"top",f.y*=-1),c=this.renderer.measureText(g,u,{class:h.class}),i)return c;let y=0,w=0;b>0&&(""===o||"center"===o?y+=(b-c.width)/2:"right"===o&&(y+=b-c.width)),v>0&&(""===a||"center"===a?w+=(v-c.height)/2:"bottom"===a&&(w+=v-c.height)),y+=n.x+f.x,w+=n.y+f.y;let x=this._plotRect;y<=x.x&&(y=x.x+2),w<=x.y&&(w=x.y+2);let _,S=Math.max(c.width,1),C=Math.max(c.height,1);w+C>=x.y+x.height&&(w=x.y+x.height-C-2),y+S>=x.x+x.width&&(y=x.x+x.width-S-2);let k=h.backgroundColor,A=h.borderColor,T=h.padding;(k||A)&&(_=this.renderer.beginGroup(),this.renderer.rect(y-T.left,w-T.top,c.width+T.left+T.right,c.height+T.bottom+T.bottom,{fill:k||"transparent","fill-opacity":h.backgroundOpacity||1,stroke:A||"transparent","stroke-opacity":h.borderOpacity,"stroke-width":1}));let E=this.renderer.text(g,y,w,c.width,c.height,u,{class:h.class,opacity:h.opacity||1},!1,"center","center",void 0,arguments[11]);return m&&(m.x=y-T.left,m.y=w-T.top,m.width=c.width+T.left+T.right,m.height=c.height+T.bottom+T.bottom),_&&this.renderer.endGroup(),_||E}_getAnimProps(t,e){let r=this.seriesGroups[t],n=isNaN(e)?void 0:r.series[e],o=this.hasAnimation;r.animation&&(o="none"!==r.animation),n&&n.animation&&(o="none"!==n.animation);let a=this.animationDuration;isNaN(a)&&(a=1e3);let i=r.animationDuration;if(isNaN(i)||(a=i),n){let t=n.animationDuration;isNaN(t)||(a=t)}return a>5e3&&(a=1e3),{enabled:o,duration:a}}_isColorTransition(t,e,r,n){if(n-1<r.xoffsets.first)return!1;let o=this._getColors(t,e,n,this._getGroupGradientType(t)),a=this._getColors(t,e,n-1,this._getGroupGradientType(t));return o.fillColor!==a.fillColor}_renderLineSeries(t,e){var r=this.seriesGroups[t];if(r.series&&0!==r.series.length){var n=-1!==r.type.indexOf("area"),o=-1!==r.type.indexOf("stacked"),a=o&&-1!==r.type.indexOf("100"),i=-1!==r.type.indexOf("spline"),s=-1!==r.type.indexOf("step"),l=-1!==r.type.indexOf("range"),d=!0===r.polar||!0===r.spider;if(d&&(s=!1),!s||!i){var m="horizontal"===r.orientation,c=!0===this._getXAxis(t).flip,h=e;m&&(h={x:e.y,y:e.x,width:e.height,height:e.width});var u=this._calcGroupOffsets(t,h);if(u&&0!==u.xoffsets.length){this._linesRenderInfo||(this._linesRenderInfo={}),this._linesRenderInfo[t]={};for(let e=r.series.length-1;e>=0;e--){var p=this._getSerieSettings(t,e),f={groupIndex:t,rect:h,serieIndex:e,swapXY:m,isArea:n,isSpline:i,isRange:l,isPolar:d,settings:p,segments:[],pointsLength:0};if(this._isSerieVisible(t,e)){var g=r.series[e];if(!g.customDraw){var b,v="function"==typeof g.colorFunction,y=u.xoffsets.first,w=y,x=this._getColors(t,e,NaN,this._getGroupGradientType(t));do{var _=[],S=[],C=[],k=0,A=0,T=NaN,E=NaN,N=NaN;if(!(u.xoffsets.length<1)){var M=this._getAnimProps(t,e),D=M.enabled&&!this._isToggleRefresh&&u.xoffsets.length<1e4&&M.duration,F=y;b=!1;var O=void 0;for(let o=y;o<=u.xoffsets.last;o++){y=o;var I=u.xoffsets.data[o],L=u.xoffsets.xvalues[o];if(!isNaN(I)&&(k=I=Math.max(I,1),A=u.offsets[e][o].to,!(!v&&O&&this.enableSampling&&this.renderer._ptdist(O.x,O.y,k,A)<1))){O={x:k,y:A};var P=u.offsets[e][o].from;if(isNaN(A)||isNaN(P)){if("connect"===g.emptyPointsDisplay)continue;if("zero"!==g.emptyPointsDisplay){b=!0;break}isNaN(A)&&(A=u.baseOffset),isNaN(P)&&(P=u.baseOffset)}if(v&&this._isColorTransition(t,e,u,y)&&_.length>1){y--;break}var z=this._elementRenderInfo;if(z&&z.length>t&&z[t].series.length>e){var B=z[t].series[e][L];let r=this.renderer._ptrnd(B?B.to:void 0),n=this.renderer._ptrnd(h.x+(B?B.xoffset:void 0));C.push(m?{y:n,x:r,index:o}:{x:n,y:r,index:o})}w=o,p.stroke<2&&(A-h.y<=1&&(A=h.y+1),P-h.y<=1&&(P=h.y+1),h.y+h.height-A<=1&&(A=h.y+h.height-1),h.y+h.height-P<=1&&(P=h.y+h.height-1)),!n&&a&&(A<=h.y&&(A=h.y+1),A>=h.y+h.height&&(A=h.y+h.height-1),P<=h.y&&(P=h.y+1),P>=h.y+h.height&&(P=h.y+h.height-1)),k=(I=Math.max(I,1))+h.x,!0===r.skipOverlappingPoints&&!isNaN(T)&&Math.abs(T-k)<=1||(!s||isNaN(T)||isNaN(E)||E!==A&&_.push(m?{y:k,x:this.renderer._ptrnd(E)}:{x:k,y:this.renderer._ptrnd(E)}),_.push(m?{y:k,x:this.renderer._ptrnd(A),index:o}:{x:k,y:this.renderer._ptrnd(A),index:o}),S.push(m?{y:k,x:this.renderer._ptrnd(P),index:o}:{x:k,y:this.renderer._ptrnd(P),index:o}),T=k,E=A,isNaN(N)&&(N=A))}}if(0!==_.length){var R=_[_.length-1].index;v&&(x=this._getColors(t,e,R,this._getGroupGradientType(t)));var H=h.x+u.xoffsets.data[F],V=h.x+u.xoffsets.data[w];if(n&&!0===r.alignEndPointsWithIntervals&&(H>h.x&&(H=h.x),V<h.x+h.width&&(V=h.x+h.width),c)){var U=H;H=V,V=U}V=this.renderer._ptrnd(V),H=this.renderer._ptrnd(H);var $=u.baseOffset;N=this.renderer._ptrnd(N);var G=this.renderer._ptrnd(A)||$;l&&(_=_.concat(S.reverse())),f.pointsLength+=_.length;var j={lastItemIndex:R,colorSettings:x,pointsArray:_,pointsStart:C,left:H,right:V,pyStart:N,pyEnd:G,yBase:$,labelElements:[],symbolElements:[]};f.segments.push(j)}else y++}}while(y<u.xoffsets.first+u.xoffsets.length-1||b);this._linesRenderInfo[t][e]=f}}else this._linesRenderInfo[t][e]=f}var W=this._linesRenderInfo[t],X=[];for(let t in W)X.push(W[t]);X=X.sort((function(t,e){return t.serieIndex-e.serieIndex})),n&&o&&X.reverse();for(let t=0;t<X.length;t++){let e=X[t];this._animateLine(e,0===D?1:0);var q=this;this._enqueueAnimation("series",void 0,void 0,D,(function(t,e,r){q._animateLine(e,r)}),e)}}}}}_animateLine(t,e){let r=t.settings,n=t.groupIndex,o=t.serieIndex,a=this.seriesGroups[n],i=a.series[o],s=this._getSymbol(n,o),l=this._getLabelsSettings(n,o,NaN,["Visible"]).visible,d=!0;t.isPolar&&(isNaN(a.endAngle)||360===Math.round(Math.abs((isNaN(a.startAngle)?0:a.startAngle)-a.endAngle))||(d=!1)),!1===i.endPointsConnect&&(d=!1);let m=0;for(let a=0;a<t.segments.length;a++){let c=t.segments[a],h=this._calculateLine(n,t.pointsLength,m,c.pointsArray,c.pointsStart,c.yBase,e,t.isArea,t.swapXY);if(m+=c.pointsArray.length,""===h)continue;let u=h.split(" "),p=h;p=""!==p?this._buildLineCmd(h,t.isRange,c.left,c.right,c.pyStart,c.pyEnd,c.yBase,t.isArea,t.isPolar,d,t.isSpline,t.swapXY):"M 0 0";let f=c.colorSettings;if(c.pathElement?this.renderer.attr(c.pathElement,{d:p}):(c.pathElement=this.renderer.path(p,{"stroke-width":r.stroke,stroke:f.lineColor,"stroke-opacity":r.opacity,"fill-opacity":r.opacity,"stroke-dasharray":r.dashStyle,fill:t.isArea?f.fillColor:"none"}),this._installHandlers(c.pathElement,"path",n,o,c.lastItemIndex)),c.labelElements){for(let t=0;t<c.labelElements.length;t++)this.renderer.removeElement(c.labelElements[t]);c.labelElements=[]}if(c.symbolElements){for(let t=0;t<c.symbolElements.length;t++)this.renderer.removeElement(c.symbolElements[t]);c.symbolElements=[]}if(c.pointsArray.length===u.length&&("none"!==s||l)){let t=i.symbolSize,e=this._plotRect;for(let a=0;a<u.length;a++){let i=u[a].split(",");if(i={x:parseFloat(i[0]),y:parseFloat(i[1])},!(i.x<e.x||i.x>e.x+e.width||i.y<e.y||i.y>e.y+e.height)){if("none"!==s){let e=this._getColors(n,o,c.pointsArray[a].index,this._getGroupGradientType(n)),l=this._drawSymbol(s,i.x,i.y,e.fillColorSymbol,r.opacity,e.lineColorSymbol,r.opacity,r.strokeSymbol,void 0,t);c.symbolElements.push(l)}if(l&&(i=this._adjustLineLabelPosition(n,o,c.pointsArray[a].index,i),i)){let t=this._showLabel(n,o,c.pointsArray[a].index,{x:i.x,y:i.y,width:0,height:0});c.labelElements.push(t)}}}}if(1===e&&"none"!==s)for(let t=0;t<c.symbolElements.length;t++)isNaN(c.pointsArray[t].index)||this._installHandlers(c.symbolElements[t],"symbol",n,o,c.pointsArray[t].index)}}_adjustLineLabelPosition(t,e,r,n){let o=this._showLabel(t,e,r,{width:0,height:0},"","",!0);if(!o)return;let a={x:n.x-o.width/2,y:0};return a.y=n.y-1.5*o.height,a}_calculateLine(t,e,r,n,o,a,i,s,l){let d,m=this.seriesGroups[t];!0!==m.polar&&!0!==m.spider||(d=this._getPolarAxisCoords(t,this._plotRect));let c="",h=n.length;if(!s&&0===o.length){h=e*i-r}for(let t=0;t<h+1&&t<n.length;t++){t>0&&(c+=" ");let e=n[t].y,r=n[t].x,m=s?a:e,u=r;if(o&&o.length>t&&(m=o[t].y,u=o[t].x,(isNaN(m)||isNaN(u))&&(m=e,u=r)),h<=n.length&&t>0&&t===h&&(u=n[t-1].x,m=n[t-1].y),l?(r=this.renderer._ptrnd((r-m)*(s?i:1)+m),e=this.renderer._ptrnd(e)):(r=this.renderer._ptrnd((r-u)*i+u),e=this.renderer._ptrnd((e-m)*i+m)),d){let t=this._toPolarCoord(d,this._plotRect,r,e);r=t.x,e=t.y}c+=r+","+e}return c}_buildLineCmd(t,e,r,n,o,a,i,s,l,d,m,c){let h=t,u=c?i+","+r:r+","+i;!s||l||e||(h=u+" "+t+" "+(c?i+","+n:n+","+i)),m&&(h=this._getBezierPoints(h));let p=h.split(" ");if(0===p.length)return"";if(1===p.length){let t=p[0].split(",");return"M "+p[0]+" L"+(parseFloat(t[0])+1)+","+(parseFloat(t[1])+1)}let f=p[0].replace("M","");return s&&!l?h=e?"M "+f+" L "+f+(m?"":" L "+f+" ")+h:"M "+u+" L "+f+" "+h:m||(h="M "+f+" L "+f+" "+h),(l&&d||e)&&(h+=" Z"),h}_getSerieSettings(t,e){let r=this.seriesGroups[t],n=-1!==r.type.indexOf("area"),o=-1!==r.type.indexOf("line"),a=r.series[e],i=a.dashStyle||r.dashStyle||"",s=a.opacity||r.opacity;(isNaN(s)||s<0||s>1)&&(s=1);let l=a.lineWidth;isNaN(l)&&"auto"!==l&&(l=r.lineWidth),("auto"===l||isNaN(l)||l<0||l>15)&&(l=n?2:o?3:1);let d=a.lineWidthSymbol;return isNaN(d)&&(d=1),{stroke:l,strokeSymbol:d,opacity:s,dashStyle:i}}_getColors(t,e,r,n,o){let a=this.seriesGroups[t],i=a.series[e],s=this._get([i.useGradientColors,a.useGradientColors,!1]),l=this._getSeriesColors(t,e,r),d=[[0,1.4],[100,1]],m=[[0,1],[25,1.1],[50,1.4],[100,1]],c=[[0,1.3],[90,1.2],[100,1]],h=NaN;if(isNaN(o)||(h=2===o?d:m),s){let o={};for(let t in l)o[t]=l[t];if(l=o,"verticalLinearGradient"===n||"horizontalLinearGradient"===n){let t="verticalLinearGradient"===n?h||d:h||m,e=["fillColor","fillColorSelected","fillColorAlt","fillColorAltSelected"];for(let r in e){let o=l[e[r]];o&&(l[e[r]]=this.renderer._toLinearGradient(o,"verticalLinearGradient"===n,t))}}else if("radialGradient"===n){let n,o=d;("pie"===a.type||"donut"===a.type||a.polar)&&null!=r&&this._renderData[t]&&this._renderData[t].offsets[e]&&(n=this._renderData[t].offsets[e][r],o=c),l.fillColor=this.renderer._toRadialGradient(l.fillColor,o,n),l.fillColorSelected=this.renderer._toRadialGradient(l.fillColorSelected,o,n)}}return l}_installHandlers(t,e,r,n,o){if(!this.enableEvents)return!1;var a=this,i=this.seriesGroups[r],s=this.seriesGroups[r].series[n],l=-1!==i.type.indexOf("line")||-1!==i.type.indexOf("area");l||!1===i.enableSelection||!1===s.enableSelection||this.renderer.addHandler(t,"mousemove",(function(){var t=a._selected;t&&t.isLineType&&"click"===t.linesUnselectMode&&(t.group!==r||t.series!==n)||a._ttEl&&a._ttEl.gidx===r&&a._ttEl.sidx===n&&a._ttEl.iidx===o||a._startTooltipTimer(r,n,o)})),!1!==i.enableSelection&&!1!==s.enableSelection&&this.renderer.addHandler(t,"mouseover",(function(){var i=a._selected;i&&i.isLineType&&"click"===i.linesUnselectMode&&(i.group!==r||i.series!==n)||a._select(t,e,r,n,o,o)})),this.renderer.addHandler(t,"click",(function(t){clearTimeout(a._hostClickTimer),a._lastClickTs=(new Date).valueOf(),l&&"symbol"!==e&&"pointMarker"!==e||(a._isColumnType(i.type)&&a._unselect(),isNaN(o)||(t.stopImmediatePropagation(),a._raiseItemEvent("click",i,s,o)))}))}_getHorizontalOffset(t,e,r,n){let o=this._plotRect;if(0===this._getDataLen(t))return{index:void 0,value:r};let a=this._calcGroupOffsets(t,this._plotRect);if(0===a.xoffsets.length)return{index:void 0,value:void 0};let i,s,l,d,m,c=r,h=n,u=this.seriesGroups[t];(u.polar||u.spider)&&(i=this._getPolarAxisCoords(t,o));for(let t=a.xoffsets.first;t<=a.xoffsets.last;t++){let r=a.xoffsets.data[t],n=a.offsets[e][t].to,p=0;if(i){let t=this._toPolarCoord(i,o,r+o.x,n);r=t.x,n=t.y,p=this.renderer._ptdist(c,h,r,n)}else if("horizontal"===u.orientation){r+=o.y;let t=n;n=r,r=t,p=this.renderer._ptdist(c,h,r,n)}else r+=o.x,p=Math.abs(c-r);(isNaN(s)||s>p)&&(s=p,l=t,d=r,m=n)}return{index:l,value:a.xoffsets.data[l],polarAxisCoords:i,x:d,y:m}}onmousemove(t,e){if(this._mouseX===t&&this._mouseY===e)return;if(this._mouseX=t,this._mouseY=e,!this._selected)return;let r=this._selected.group,n=this._selected.series,o=this.seriesGroups[r],a=o.series[n],i=this._plotRect;if(this.renderer&&(i=this.renderer.getRect(),i.x+=5,i.y+=5,i.width-=10,i.height-=10),t<i.x+window.scrollX||t>i.x+i.width+window.scrollX||e<i.y+window.scrollY||e>i.y+i.height+window.scrollY)return this._hideToolTip(),void this._unselect();let s="horizontal"===o.orientation;if(i=this._plotRect,-1!==o.type.indexOf("line")||-1!==o.type.indexOf("area")){let l=this._getHorizontalOffset(r,this._selected.series,t,e),d=l.index;if(null==d)return;if(this._selected.item!==d){let t=this._linesRenderInfo[r][n].segments,e=0;for(;d>t[e].lastItemIndex;)if(e++,e>=t.length)return;let o=t[e].pathElement,a=t[e].lastItemIndex;this._unselect(!1),this._select(o,"path",r,n,d,a)}let m=this._getSymbol(this._selected.group,this._selected.series);"none"===m&&(m="circle");let c=this._calcGroupOffsets(r,i),h=c.offsets[this._selected.series][d].to,u=h;-1!==o.type.indexOf("range")&&(u=c.offsets[this._selected.series][d].from);let p=s?t:e;if(e=!isNaN(u)&&Math.abs(p-u)<Math.abs(p-h)?u:h,isNaN(e))return;if(t=l.value,s){let r=t;t=e,e=r+i.y}else t+=i.x;if(l.polarAxisCoords&&(t=l.x,e=l.y),e=this.renderer._ptrnd(e),t=this.renderer._ptrnd(t),this._pointMarker&&this._pointMarker.element&&(this.renderer.removeElement(this._pointMarker.element),this._pointMarker.element=void 0),isNaN(t)||isNaN(e))return;let f=this._getSeriesColors(r,n,d),g=this._getSerieSettings(r,n),b=a.symbolSizeSelected;isNaN(b)&&(b=a.symbolSize),(isNaN(b)||b>50||b<0)&&(b=o.symbolSize),(isNaN(b)||b>50||b<0)&&(b=8),(this.showToolTips||this.enableCrosshairs)&&(this._pointMarker={type:m,x:t,y:e,gidx:r,sidx:n,iidx:d},this._pointMarker.element=this._drawSymbol(m,t,e,f.fillColorSymbolSelected,g.opacity,f.lineColorSymbolSelected,g.opacity,g.strokeSymbol,g.dashStyle,b),this._installHandlers(this._pointMarker.element,"pointMarker",r,n,d)),this._startTooltipTimer(r,this._selected.series,d)}}_drawSymbol(t,e,r,n,o,a,i,s,l,d){let m,c,h=d||6,u=h/2;switch(t){case"none":return;case"circle":m=this.renderer.circle(e,r,h/2);break;case"square":h-=1,u=h/2,m=this.renderer.rect(e-u,r-u,h,h);break;case"diamond":c="M "+(e-u)+","+r+" L"+e+","+(r-u)+" L"+(e+u)+","+r+" L"+e+","+(r+u)+" Z",m=this.renderer.path(c);break;case"triangle_up":case"triangle":c="M "+(e-u)+","+(r+u)+" L "+(e+u)+","+(r+u)+" L "+e+","+(r-u)+" Z",m=this.renderer.path(c);break;case"triangle_down":c="M "+(e-u)+","+(r-u)+" L "+e+","+(r+u)+" L "+(e+u)+","+(r-u)+" Z",m=this.renderer.path(c);break;case"triangle_left":c="M "+(e-u)+","+r+" L "+(e+u)+","+(r+u)+" L "+(e+u)+","+(r-u)+" Z",m=this.renderer.path(c);break;case"triangle_right":c="M "+(e-u)+","+(r-u)+" L "+(e-u)+","+(r+u)+" L "+(e+u)+","+r+" Z",m=this.renderer.path(c);break;default:m=this.renderer.circle(e,r,h)}return this.renderer.attr(m,{fill:n,"fill-opacity":o,stroke:a,"stroke-width":s,"stroke-opacity":i,"stroke-dasharray":l||""}),"circle"!==t&&(this.renderer.attr(m,{r:h/2}),"square"!==t&&this.renderer.attr(m,{x:e,y:r})),m}_getSymbol(t,e){let r,n=["circle","square","diamond","triangle_up","triangle_down","triangle_left","triangle_right"],o=this.seriesGroups[t],a=o.series[e];return void 0!==a.symbolType&&null!==a.symbolType&&(r=a.symbolType),null==r&&(r=o.symbolType),"default"===r?n[e%n.length]:null!=r?r:"none"}_startTooltipTimer(t,e,r,n,o,a,i){this._cancelTooltipTimer();let s=this,l=this.toolTipShowDelay;(isNaN(l)||l>1e4||l<0)&&(l=500),(this._ttEl||!0===this.enableCrosshairs&&!1===this.showToolTips)&&(l=0),isNaN(a)||(l=a),clearTimeout(this._tttimerHide),isNaN(n)&&(n=s._mouseX),isNaN(o)&&(o=s._mouseY-3),0===l&&s._showToolTip(n,o,t,e,r),this._tttimer=setTimeout((function(){0!==l&&s._showToolTip(n,o,t,e,r);let a=s.toolTipHideDelay;isNaN(i)||(a=i),isNaN(a)&&(a=4e3),s._tttimerHide=setTimeout((function(){s._hideToolTip(),s._unselect()}),a)}),l)}_cancelTooltipTimer(){clearTimeout(this._tttimer)}_getGroupGradientType(t){let e=this.seriesGroups[t];return-1!==e.type.indexOf("area")?"horizontal"===e.orientation?"horizontalLinearGradient":"verticalLinearGradient":this._isColumnType(e.type)||-1!==e.type.indexOf("candle")?e.polar?"radialGradient":"horizontal"===e.orientation?"verticalLinearGradient":"horizontalLinearGradient":-1!==e.type.indexOf("scatter")||-1!==e.type.indexOf("bubble")||this._isPieGroup(t)?"radialGradient":void 0}_select(t,e,r,n,o,a){if(this._selected){if(this._selected.item===o&&this._selected.series===n&&this._selected.group===r)return;this._unselect()}let i=this.seriesGroups[r],s=i.series[n];if(!1===i.enableSelection||!1===s.enableSelection)return;let l=-1!==i.type.indexOf("line")&&-1===i.type.indexOf("area");this._selected={element:t,type:e,group:r,series:n,item:o,iidxBase:a,isLineType:l,linesUnselectMode:s.linesUnselectMode||i.linesUnselectMode};let d=this._getColors(r,n,a||o,this._getGroupGradientType(r)),m=d.fillColorSelected;l&&(m="none");let c=this._getSerieSettings(r,n),h="symbol"===e?d.lineColorSymbolSelected:d.lineColorSelected;m="symbol"===e?d.fillColorSymbolSelected:m;let u="symbol"===e?1:c.stroke;"symbol"!==e&&this.renderer.getAttr(t,"fill")===d.fillColorAlt&&(m=d.fillColorAltSelected),this.renderer.attr(t,{stroke:h,fill:m,"stroke-width":u}),-1===i.type.indexOf("pie")&&-1===i.type.indexOf("donut")||this._applyPieSelect(),this._raiseItemEvent("mouseover",i,s,o),this._isTouchDevice&&this._startTooltipTimer(r,n,o)}_applyPieSelect(){var t=this;t._createAnimationGroup("animPieSlice");var e=this._selected;if(e){var r=this.getItemCoord(e.group,e.series,e.item);if(r){var n={element:this._getRenderInfo(e.group,e.series,e.item),coord:r};this._enqueueAnimation("animPieSlice",void 0,void 0,300,(function(r,n,o){var a=n.coord,i=a.selectedRadiusChange*o,s=t.renderer.pieSlicePath(a.center.x,a.center.y,0===a.innerRadius?0:a.innerRadius+i,a.outerRadius+i,a.fromAngle,a.toAngle,a.centerOffset);t.renderer.attr(n.element.element,{d:s}),t._showPieLabel(e.group,e.series,e.item,void 0,i,n.element.colors.lineColor)}),n),t._startAnimation("animPieSlice")}}}_applyPieUnselect(){this._stopAnimations();let t=this._selected;if(!t)return;let e=this.getItemCoord(t.group,t.series,t.item);if(!e||!e.center)return;let r=this.renderer.pieSlicePath(e.center.x,e.center.y,e.innerRadius,e.outerRadius,e.fromAngle,e.toAngle,e.centerOffset);this.renderer.attr(t.element,{d:r}),this._showPieLabel(t.group,t.series,t.item,void 0,0,this._getRenderInfo(t.group,t.series,t.item).colors.lineColor)}_unselect(){let t=this;if(t._selected){let e=t._selected.group,r=t._selected.series,n=t._selected.item,o=t._selected.iidxBase,a=t._selected.type,i=t.seriesGroups[e],s=i.series[r],l=-1!==i.type.indexOf("line")&&-1===i.type.indexOf("area"),d=t._getColors(e,r,o||n,t._getGroupGradientType(e)),m=d.fillColor;l&&(m="none");let c=t._getSerieSettings(e,r),h="symbol"===a?d.lineColorSymbol:d.lineColor;m="symbol"===a?d.fillColorSymbol:m,"symbol"!==a&&this.renderer.getAttr(t._selected.element,"fill")===d.fillColorAltSelected&&(m=d.fillColorAlt);let u="symbol"===a?1:c.stroke;t.renderer.attr(t._selected.element,{stroke:h,fill:m,"stroke-width":u}),-1===i.type.indexOf("pie")&&-1===i.type.indexOf("donut")||this._applyPieUnselect(),t._selected=void 0,isNaN(n)||t._raiseItemEvent("mouseout",i,s,n)}t._pointMarker&&(t._pointMarker.element&&(t.renderer.removeElement(t._pointMarker.element),t._pointMarker.element=void 0),t._pointMarker=void 0,t._hideCrosshairs())}_raiseItemEvent(t,e,r,n){let o=r[t]||e[t],a=0;for(;a<this.seriesGroups.length&&this.seriesGroups[a]!==e;a++);if(a===this.seriesGroups.length)return;let i={event:t,seriesGroup:e,serie:r,elementIndex:n,elementValue:this._getDataValue(n,r.dataField,a)};o&&"function"==typeof o&&o(i),this.$.fireEvent(t,i)}_calcInterval(t,e,r){let n=Math.abs(e-t)/r,o=.1,a=[1,2,3,4,5,10,15,20,25,50,100];n<1&&(a=[.5,.25,.125,.1],o=10);let i=0;do{i=0,n>=1?o*=10:o/=10;for(let t=1;t<a.length&&Math.abs(a[i]*o-n)>Math.abs(a[t]*o-n);t++)i=t}while(i===a.length-1);return a[i]*o}_renderDataClone(){if(!this._renderData||this._isToggleRefresh)return;let t=this._elementRenderInfo=[];if(!this._isSelectorRefresh)for(let e=0;e<this._renderData.length;e++){for(;t.length<=e;)t.push({});let r=t[e],n=this._renderData[e];if(!n.offsets)continue;if(n.valueAxis){r.valueAxis={itemOffsets:{}};for(let t in n.valueAxis.itemOffsets)r.valueAxis.itemOffsets[t]=n.valueAxis.itemOffsets[t]}if(n.xAxis){r.xAxis={itemOffsets:{}};for(let t in n.xAxis.itemOffsets)r.xAxis.itemOffsets[t]=n.xAxis.itemOffsets[t]}r.series=[];let o=r.series,a=this._isPieGroup(e);for(let t=0;t<n.offsets.length;t++){o.push({});for(let r=0;r<n.offsets[t].length;r++)if(a){let e=n.offsets[t][r];o[t][e.displayValue]={value:e.value,x:e.x,y:e.y,fromAngle:e.fromAngle,toAngle:e.toAngle}}else n.xoffsets?o[t][n.xoffsets.xvalues[r]]={value:n.offsets[t][r].value,valueRadius:n.offsets[t][r].valueRadius,xoffset:n.xoffsets.data[r],from:n.offsets[t][r].from,to:n.offsets[t][r].to}:(n.xoffsets=this._calculateXOffsets(e,this._plotRect.width),n.xoffsets&&(o[t][n.xoffsets.xvalues[r]]={value:n.offsets[t][r].value,valueRadius:n.offsets[t][r].valueRadius,xoffset:n.xoffsets.data[r],from:n.offsets[t][r].from,to:n.offsets[t][r].to}))}}}getPolarDataPointOffset(t,e,r){let n=this._renderData[r];if(!n)return{x:NaN,y:NaN};let o=this.getValueAxisDataPointOffset(e,r),a=this.getXAxisDataPointOffset(t,r),i=this._toPolarCoord(n.polarCoords,n.xAxis.rect,a,o);return{x:i.x,y:i.y}}_getDataPointOffsetDiff(t,e,r,n,o,a,i){let s=this._getDataPointOffset(t,r,n,o,a,i),l=this._getDataPointOffset(e,r,n,o,a,i);return Math.abs(s-l)}_getXAxisRenderData(t){if(t>=this._renderData.length)return;let e=this.seriesGroups[t],r=this._renderData[t].xAxis;if(r){if(void 0===e.xAxis||null===e.xAxis)for(let e=0;e<=t;e++)if(void 0===this.seriesGroups[e].xAxis||null===this.seriesGroups[e].xAxis){r=this._renderData[e].xAxis;break}return r}}getXAxisDataPointOffset(t,e){let r=this.seriesGroups[e];if(isNaN(t))return NaN;const n=this._getXAxisRenderData(e);if(!n)return NaN;let o=n.data.axisStats,a=o.min.valueOf(),i=o.max.valueOf(),s=i-a;if(0===s&&(s=1),t.valueOf()>i||t.valueOf()<a)return NaN;let l=this._getXAxis(e),d="horizontal"===r.orientation?"height":"width",m="horizontal"===r.orientation?"y":"x",c=(t.valueOf()-a)/s,h=n.rect[d]-n.data.padding.left-n.data.padding.right;if(r.polar||r.spider){this._renderData[e].polarCoords.isClosedCircle&&(h=n.data.axisSize)}return this._plotRect[m]+n.data.padding.left+h*(l.flip?1-c:c)}getValueAxisDataPointOffset(t,e){let r=this._getValueAxis(e);if(!r)return NaN;let n=this._renderData[e];if(!n)return NaN;let o=!0===r.flip,a=n.logBase,i=n.scale,s=n.gbase,l=n.baseOffset;return this._getDataPointOffset(t,s,a,i,l,o)}_getDataPointOffset(t,e,r,n,o,a){let i;return isNaN(t)&&(t=e),i=isNaN(r)?(t-e)*n:(this._draw.log(t,r)-this._draw.log(e,r))*n,i=a?o+i:o-i,i}_calcGroupOffsets(t,e){let r=this.seriesGroups[t];for(;this._renderData.length<t+1;)this._renderData.push({});if(null!==this._renderData[t]&&void 0!==this._renderData[t].offsets)return this._renderData[t];if(this._isPieGroup(t))return this._calcPieSeriesGroupOffsets(t,e);let n=this._getValueAxis(t);if(!n||!r.series||0===r.series.length)return this._renderData[t];let o=!0===n.flip,a=!0===n.logarithmicScale,i=n.logarithmicScaleBase||10,s=[],l=-1!==r.type.indexOf("stacked"),d=l&&-1!==r.type.indexOf("100"),m=-1!==r.type.indexOf("range"),c=this._isColumnType(r.type),h=-1!==r.type.indexOf("waterfall"),u=this._getDataLen(t),p=r.baselineValue||n.baselineValue||0;d&&(p=0);let f=this._stats.seriesGroups[t];if(!f||!f.isValid)return;let g=f.hasStackValueReversal;if(g&&(p=0),h&&l){if(g)return;p=f.base}p>f.max&&(p=f.max),p<f.min&&(p=f.min);let b=d||a?f.maxRange:f.max-f.min,v=f.min,y=f.max,w=e.height/(a?f.intervals:b),x=0;d?v*y<0?(b/=2,x=-(b+p)*w):x=-p*w:x=-(p-v)*w,o?x=e.y-x:x+=e.y+e.height;let _,S=[],C=[],k=[];a&&(_=this._draw.log(y,i)-this._draw.log(p,i),l&&(_=f.intervals,p=d?0:v),o||(x=e.y+_/f.intervals*e.height)),x=this.renderer._ptrnd(x);let A=v*y<0?e.height/2:e.height,T=[],E=[],N=l&&(c||a),M=[];s=new Array(r.series.length);for(let t=0;t<r.series.length;t++)s[t]=new Array(u);for(let e=0;e<u;e++){!h&&l&&(E=[]);for(let n=0;n<r.series.length;n++){!l&&a&&(T=[]);let c=r.series[n],h=c.dataField,u=c.dataFieldFrom,g=c.dataFieldTo,b=c.radiusDataField||c.sizeDataField;s[n][e]={};let v=this._isSerieVisible(t,n);if(-1!==r.type.indexOf("candle")||-1!==r.type.indexOf("ohlc")){let r=["Open","Close","High","Low"];for(let l in r){let d="dataField"+r[l];c[d]&&(s[n][e][r[l]]=this._getDataPointOffset(this._getDataValueAsNumber(e,c[d],t),p,a?i:NaN,w,x,o))}continue}if(l)for(;E.length<=e;)E.push(0);let y=NaN;m&&(y=this._getDataValueAsNumber(e,u,t),isNaN(y)&&(y=p));let _=NaN;_=m?this._getDataValueAsNumber(e,g,t):this._getDataValueAsNumber(e,h,t);let D,F=this._getDataValueAsNumber(e,b,t);if(l&&(E[e]+=v?_:0),v||(_=NaN),isNaN(_)||a&&_<=0){s[n][e]={from:void 0,to:void 0};continue}l&&(N?D=_>=p?S:C:_=E[e]);let O=w*(_-p);if(m&&(O=w*(_-y)),l&&N&&(M[e]?O=w*_:(M[e]=!0,O=w*(_-p))),a){for(;T.length<=e;)T.push({p:{value:0,height:0},n:{value:0,height:0}});let t=m||m?y:p,r=_>t?T[e].p:T[e].n;r.value+=_,d?(_=r.value/(f.psums[e]+f.nsums[e])*100,O=(this._draw.log(_,i)-f.minPow)*w):(O=this._draw.log(r.value,i)-this._draw.log(t,i),O*=w),O-=r.height,r.height+=O}let I=x;if(m){let t=0;t=a?(this._draw.log(y,i)-this._draw.log(p,i))*w:(y-p)*w,I+=o?t:-t}if(l){if(d&&!a){let t=f.psums[e]-f.nsums[e];_>p?(O=f.psums[e]/t*A,0!==f.psums[e]&&(O*=_/f.psums[e])):(O=f.nsums[e]/t*A,0!==f.nsums[e]&&(O*=_/f.nsums[e]))}N&&(isNaN(D[e])&&(D[e]=I),I=D[e])}isNaN(k[e])&&(k[e]=0);let L=k[e];O=Math.abs(O);let P=O;if(O>=1){const t=this.renderer._ptrnd(O)-1;O=Math.abs(O-t)>.5?Math.round(O):t}if(L+=O-P,l||(L=0),Math.abs(L)>.5&&(L>0?(O-=1,L-=1):(O+=1,L+=1)),k[e]=L,n===r.series.length-1&&d){let t=0;for(let r=0;r<n;r++)t+=Math.abs(s[r][e].to-s[r][e].from);if(t+=O,t<A)if(O>.5)O=this.renderer._ptrnd(O+A-t);else{let r=n-1;for(;r>=0;){if(Math.abs(s[r][e].to-s[r][e].from)>1){s[r][e].from>s[r][e].to&&(s[r][e].from+=A-t);break}r--}}}o&&(O*=-1);let z=_<p;m&&(z=y>_);let B=isNaN(y)?_:{from:y,to:_};z?(N&&(D[e]+=O),s[n][e]={from:I,to:I+O,value:B,valueRadius:F}):(N&&(D[e]-=O),s[n][e]={from:I,to:I-O,value:B,valueRadius:F})}}let D=this._renderData[t];return D.baseOffset=x,D.gbase=p,D.logBase=a?i:NaN,D.scale=w,D.offsets=h?this._applyWaterfall(s,u,t,x,p,a?i:NaN,w,o,l):s,D.xoffsets=this._calculateXOffsets(t,e.width),this._renderData[t]}_isPercent(t){return"string"==typeof t&&t.length>0&&t.indexOf("%")===t.length-1}_calcPieSeriesGroupOffsets(t,e){var r=this._getDataLen(t),n=this.seriesGroups[t],o=this._renderData[t]={},a=o.offsets=[];for(let o=0;o<n.series.length;o++){var i=n.series[o],s=this._get([i.minAngle,i.startAngle]);(isNaN(s)||s<0||s>360)&&(s=0);var l=this._get([i.maxAngle,i.endAngle]);(isNaN(l)||l<0||l>360)&&(l=360);var d=l-s,m=i.initialAngle||0;m<s&&(m=s),m>l&&(m=l);var c=i.centerOffset||0,h=this._draw.getNum([i.offsetX,n.offsetX,e.width/2]),u=this._draw.getNum([i.offsetY,n.offsetY,e.height/2]),p=Math.min(e.width,e.height)/2,f=m,g=i.radius;this._isPercent(g)&&(g=parseFloat(g)/100*p),isNaN(g)&&(g=.4*p);var b=i.innerRadius;this._isPercent(b)&&(b=parseFloat(b)/100*p),(isNaN(b)||b>=g)&&(b=0);var v=i.selectedRadiusChange;this._isPercent(v)&&(v=parseFloat(v)/100*(g-b)),isNaN(v)&&(v=.1*(g-b)),a.push([]);var y=0,w=0;for(let e=0;e<r;e++){var x=this._getDataValueAsNumber(e,i.dataField,t);isNaN(x)||(this._isSerieVisible(t,o,e)||!0===i.hiddenPointsDisplay)&&(x>0?y+=x:w+=x)}var _=y-w;0===_&&(_=1);for(let n=0;n<r;n++){let r=this._getDataValueAsNumber(n,i.dataField,t);if(isNaN(r))a[o].push({});else{var S=i.displayText||i.displayField,C=this._getDataValue(n,S,t);null==C&&(C=n);var k=0,A=this._isSerieVisible(t,o,n);(A||!0===i.hiddenPointsDisplay)&&(k=Math.abs(r)/_*d);var T=e.x+h,E=e.y+u,N=c;"function"==typeof c&&(N=c({seriesIndex:o,seriesGroupIndex:t,itemIndex:n})),isNaN(N)&&(N=0);var M={key:t+"_"+o+"_"+n,value:r,displayValue:C,x:T,y:E,fromAngle:f,toAngle:f+k,centerOffset:N,innerRadius:b,outerRadius:g,selectedRadiusChange:v,visible:A};a[o].push(M),f+=k}}}return o}_isPointSeriesOnly(){for(let t=0;t<this.seriesGroups.length;t++){let e=this.seriesGroups[t];if(-1===e.type.indexOf("line")&&-1===e.type.indexOf("area")&&-1===e.type.indexOf("scatter")&&-1===e.type.indexOf("bubble"))return!1}return!0}_hasColumnSeries(){let t=["column","ohlc","candlestick","waterfall"];for(let e=0;e<this.seriesGroups.length;e++){let r=this.seriesGroups[e];for(let e in t)if(-1!==r.type.indexOf(t[e]))return!0}return!1}_alignValuesWithTicks(t){let e=this._isPointSeriesOnly(),r=this.seriesGroups[t],n=this._getXAxis(t),o=void 0===n.valuesOnTicks||null===n.valuesOnTicks?e:!1!==n.valuesOnTicks;return n.logarithmicScale&&(o=!0),null==t||void 0===r.valuesOnTicks||null===r.valuesOnTicks?o:r.valuesOnTicks}_getYearsDiff(t,e){return e.getFullYear()-t.getFullYear()}_getMonthsDiff(t,e){return 12*(e.getFullYear()-t.getFullYear())+e.getMonth()-t.getMonth()}_getDateDiff(t,e,r,n){let o=0;switch("year"!==r&&"month"!==r&&(o=e.valueOf()-t.valueOf()),r){case"year":o=this._getYearsDiff(t,e);break;case"month":o=this._getMonthsDiff(t,e);break;case"day":o/=864e5;break;case"hour":o/=36e5;break;case"minute":o/=6e4;break;case"second":o/=1e3}return"year"!==r&&"month"!==r&&!1!==n&&(o=this.renderer._rnd(o,1,!0)),o}_getBestDTUnit(t,e,r,n,o){let a="day",i=e.valueOf()-t.valueOf();a=i<1e3?"second":i<36e5?"minute":i<864e5?"hour":i<2592e6?"day":i<31104e6?"month":"year";let s=[{key:"year",cnt:i/31536e6},{key:"month",cnt:i/2592e6},{key:"day",cnt:i/864e5},{key:"hour",cnt:i/36e5},{key:"minute",cnt:i/6e4},{key:"second",cnt:i/1e3},{key:"millisecond",cnt:i}],l=-1;for(let t=0;t<s.length;t++)if(s[t].key===a){l=t;break}let d=-1,m=-1;for(;l<s.length&&!(s[l].cnt/100>n);l++){let a=this._estAxisInterval(t,e,r,n,s[l].key,o),i=this._getDTIntCnt(t,e,a,s[l].key);(-1===d||d<i)&&(d=i,m=l)}return a=s[m].key,a}_getXAxisStats(t,e,r){let n=this._getDataLen(t),o="date"===e.type||"time"===e.type;if(o&&!this._autoDateFormats){this._autoDateFormats||(this._autoDateFormats=[]);let t=this._testXAxisDateFormat();t&&this._autoDateFormats.push(t)}let a=o?this._castAsDate(e.minValue,e.dateFormat):this._castAsNumber(e.minValue),i=o?this._castAsDate(e.maxValue,e.dateFormat):this._castAsNumber(e.maxValue);if(this._selectorRange&&this._selectorRange[t]){let r=this._selectorRange[t].min;isNaN(r)||(a=o?this._castAsDate(r,e.dateFormat):this._castAsNumber(r));let n=this._selectorRange[t].max;isNaN(n)||(i=o?this._castAsDate(n,e.dateFormat):this._castAsNumber(n))}let s,l,d=a,m=i,c=void 0===e.type||null===e.type||"auto"===e.type,h=c||"basic"===e.type,u=0,p=0;for(let r=0;r<n&&e.dataField;r++){let n=this._getDataValue(r,e.dataField,t);n=o?this._castAsDate(n,e.dateFormat):this._castAsNumber(n),isNaN(n)||(o?u++:p++,(isNaN(s)||n<s)&&(s=n),(isNaN(l)||n>=l)&&(l=n))}c&&(!o&&p===n||o&&u===n)&&(h=!1),h&&(s=0,l=Math.max(0,n-1)),isNaN(d)&&(d=s),isNaN(m)&&(m=l),o?(this._isDate(d)||(d=this._isDate(m)?m:new Date),this._isDate(m)||(m=this._isDate(d)?d:new Date)):(isNaN(d)&&(d=0),isNaN(m)&&(m=h?Math.max(0,n-1):d)),null==s&&(s=d),null==l&&(l=m);let f,g,b=e.rangeSelector&&e.rangeSelector.visible;if(b){let t=b.minValue||d;t&&o&&(t=this._castAsDate(t,b.dateFormat||e.dateFormat));let r=b.maxValue||m;r&&o&&(r=this._castAsDate(r,b.dateFormat||e.rangeSelector)),d<t&&(d=t),m<t&&(m=r),d>r&&(d=t),m>r&&(m=r)}o&&(f=e.baseUnit,f||(f=this._getBestDTUnit(d,m,t,r)),g="hour"===f||"minute"===f||"second"===f||"millisecond"===f);let v=!0===e.logarithmicScale,y=e.logarithmicScaleBase;(isNaN(y)||y<=1)&&(y=10);let w=e.unitInterval;v?w=1:(isNaN(w)||w<=0)&&(w=this._estAxisInterval(d,m,t,r,f));let x,_,S={min:d,max:m},C=this.seriesGroups[t];return v?(d||(d=1,m&&d>m&&(d=m)),m||(m=d),S={min:d,max:m},x=this.renderer._rnd(this._draw.log(d,y),1,!1),_=this.renderer._rnd(this._draw.log(m,y),1,!0),m=Math.pow(y,_),d=Math.pow(y,x)):o||!C.polar&&!C.spider||(d=this.renderer._rnd(d,w,!1),m=this.renderer._rnd(m,w,!0)),{min:d,max:m,logAxis:{enabled:v,base:y,minPow:x,maxPow:_},dsRange:{min:s,max:l},filterRange:S,useIndeces:h,isDateTime:o,isTimeUnit:g,dateTimeUnit:f,interval:w}}_getDefaultDTFormatFn(t){let e,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return e="year"===t||"month"===t||"day"===t?function(t){return t.getDate()+"-"+r[t.getMonth()]+"-"+t.getFullYear()}:function(t){return t.getDate()+"-"+r[t.getMonth()]+"-"+t.getFullYear()+"<br>"+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},e}_getDTIntCnt(t,e,r,n){let o=0,a=new Date(t),i=new Date(e);if(i=i.valueOf(),r<=0)return 1;for(;a.valueOf()<i;)"millisecond"===n?a=new Date(a.valueOf()+r):"second"===n?a=new Date(a.valueOf()+1e3*r):"minute"===n?a=new Date(a.valueOf()+6e4*r):"hour"===n?a=new Date(a.valueOf()+6e4*r*24):"day"===n?a.setDate(a.getDate()+r):"month"===n?a.setMonth(a.getMonth()+r):"year"===n&&a.setFullYear(a.getFullYear()+r),o++;return o}_estAxisInterval(t,e,r,n,o,a){if(isNaN(t)||isNaN(e))return NaN;let i=[1,2,5,10,15,20,50,100,200,500],s=0,l=n/(!isNaN(a)&&a>0?a:50);if(this._renderData&&this._renderData.length>r&&this._renderData[r].xAxis&&!isNaN(this._renderData[r].xAxis.avgWidth)){let t=Math.max(1,this._renderData[r].xAxis.avgWidth);0!==t&&isNaN(a)&&(l=.9*n/t)}if(l<=1)return Math.abs(e-t);let d,m=0;for(;d=s>=i.length?Math.pow(10,3+s-i.length):i[s],m=this._isDate(t)&&this._isDate(e)?this._getDTIntCnt(t,e,d,o):(e-t)/d,!(m<=l);)s++;let c=this.seriesGroups[r];return(c.spider||c.polar)&&2*d>e-t&&(d=e-t),d}_getPaddingSize(t,e,r,n,o,a,i){var s=t.min,l=t.max;t.logAxis.enabled&&(s=t.logAxis.minPow,l=t.logAxis.maxPow);var d=t.interval,m=t.dateTimeUnit;if(o){var c=n/Math.max(1,l-s+d)*d;return a?{left:0,right:c}:r?{left:0,right:0}:{left:c/2,right:c/2}}if(r&&!i)return{left:0,right:0};if(this._isDate(s)&&this._isDate(l)){let t=this._getDTIntCnt(s,l,Math.min(d,l-s),m),e=n/Math.max(2,t);return{left:e/2,right:e/2}}let h=Math.max(1,l-s);if(1===h){const t=n/4;return{left:t,right:t}}let u=n/(h+1);return{left:u/2,right:u/2}}_calculateXOffsets(t,e){var r=this.seriesGroups[t],n=this._getXAxis(t),o=[],a=[],i=this._getDataLen(t),s=this._getXAxisStats(t,n,e),l=s.min,d=s.max,m=s.isDateTime,c=s.isTimeUnit,h=this._hasColumnSeries(),u=r.polar||r.spider,p=this._get([r.startAngle,r.minAngle,0]),f=this._get([r.endAngle,r.maxAngle,360]),g=u&&!(Math.abs(Math.abs(f-p)-360)>1e-4),b=this._alignValuesWithTicks(t),v=this._getPaddingSize(s,n,b,e,u,g,h),y=d-l,w=s.filterRange;0===y&&(y=1);var x=e-v.left-v.right;u&&b&&!g&&(v.left=v.right=0);var _=-1,S=-1;for(let e=0;e<i;e++){var C=void 0===n.dataField?e:this._getDataValue(e,n.dataField,t);if(s.useIndeces){if(e<w.min||e>w.max){o.push(NaN),a.push(void 0);continue}if(A=v.left+(e-l)/y*x,!0===s.logAxis.enabled){var k=s.logAxis.base;A=this._smartPlot.scale(C,{min:l.valueOf(),max:d.valueOf(),type:"logarithmic",base:k},{min:0,max:x,flip:!1})}o.push(this.renderer._ptrnd(A)),a.push(C),-1===_&&(_=e),(-1===S||S<e)&&(S=e)}else if(C=m?this._castAsDate(C,n.dateFormat):this._castAsNumber(C),isNaN(C)||C<w.min||C>w.max)o.push(NaN),a.push(void 0);else{var A=0;if(!0===s.logAxis.enabled){let t=s.logAxis.base;A=this._smartPlot.scale(C,{min:l.valueOf(),max:d.valueOf(),type:"logarithmic",base:t},{min:0,max:x,flip:!1})}else A=!m||m&&c?(C-l)*x/y:(C.valueOf()-l.valueOf())/(d.valueOf()-l.valueOf())*x;A=this.renderer._ptrnd(v.left+A),o.push(A),a.push(C),-1===_&&(_=e),(-1===S||S<e)&&(S=e)}}if(!0===n.flip)for(let t=0;t<o.length;t++)isNaN(o[t])||(o[t]=e-o[t]);(c||m)&&(y=this._getDateDiff(l,d,n.baseUnit),y=this.renderer._rnd(y,1,!1));var T=Math.max(1,y),E=x/T;return _===S&&1===T&&(o[_]=v.left+x/2),{axisStats:s,data:o,xvalues:a,first:_,last:S,length:-1===S?0:S-_+1,itemWidth:E,intervalWidth:E*s.interval,rangeLength:y,useIndeces:s.useIndeces,padding:v,axisSize:x}}_getXAxis(t){return null==t||this.seriesGroups.length<=t?this.xAxis:this.seriesGroups[t].xAxis||this.xAxis}_isGreyScale(t,e){let r=this.seriesGroups[t],n=r.series[e];return!0===n.greyScale||!1!==n.greyScale&&(!0===r.greyScale||!1!==r.greyScale&&!0===this.greyScale)}_getSeriesColors(t,e,r){let n=this._getSeriesColorsInternal(t,e,r);if(this._isGreyScale(t,e))for(let t in n)n[t]=this._draw.toGreyScale(n[t]);return n}_getColorFromScheme(t,e,r){let n="#000000",o=this.seriesGroups[t],a=o.series[e];if(this._isPieGroup(t)){let i=this._getDataLen(t);n=this._getItemColorFromScheme(a.colorScheme||o.colorScheme||this.colorScheme,e*i+r,t,e)}else{let r=0;for(let n=0;n<=t;n++)for(let o=0;o<this.seriesGroups[n].series.length&&(n!==t||parseInt(o)!==e);o++)r++;let a=this.colorScheme;if(o.colorScheme&&(a=o.colorScheme),null!=a&&""!==a||(a=this.colorSchemes[0].name),!a)return n;for(let t=0;t<this.colorSchemes.length;t++){let e=this.colorSchemes[t];if(e.name===a){for(;r>e.colors.length;)r-=e.colors.length,++t>=this.colorSchemes.length&&(t=0),e=this.colorSchemes[t];n=e.colors[r%e.colors.length]}}}return n}_createColorsCache(){this._colorsCache={get:function(t){if(this._store[t])return this._store[t]},set:function(t,e){this._size<1e4&&(this._store[t]=e,this._size++)},clear:function(){this._store={},this._size=0},_size:0,_store:{}}}_getSeriesColorsInternal(t,e,r){let n=this.seriesGroups[t],o=n.series[e];"function"===(o.colorFunction,!1)&&"pie"!==n.type&&"donut"!==n.type&&(r=NaN);let a=t+"_"+e+"_"+(isNaN(r)?"NaN":r);if(this._colorsCache.get(a))return this._colorsCache.get(a);let i,s={lineColor:"#222222",lineColorSelected:"#151515",lineColorSymbol:"#222222",lineColorSymbolSelected:"#151515",fillColor:"#222222",fillColorSelected:"#333333",fillColorSymbol:"#222222",fillColorSymbolSelected:"#333333",fillColorAlt:"#222222",fillColorAltSelected:"#333333"};if("function"==typeof o.colorFunction){let e=isNaN(r)?NaN:this._getDataValue(r,o.dataField,t);if(-1!==n.type.indexOf("range")&&!isNaN(r)){e={from:this._getDataValue(r,o.dataFieldFrom,t),to:this._getDataValue(r,o.dataFieldTo,t)}}if(i=o.colorFunction(e,r,o,n),"object"==typeof i)for(let t in i)s[t]=i[t];else s.fillColor=i}else{for(let t in s)o[t]&&(s[t]=o[t]);o.fillColor||o.color?o.fillColor=o.fillColor||o.color:s.fillColor=this._getColorFromScheme(t,e,r)}let l={fillColor:{baseColor:"fillColor",adjust:1},fillColorSelected:{baseColor:"fillColor",adjust:1.1},fillColorSymbol:{baseColor:"fillColor",adjust:1},fillColorSymbolSelected:{baseColor:"fillColorSymbol",adjust:2},fillColorAlt:{baseColor:"fillColor",adjust:4},fillColorAltSelected:{baseColor:"fillColor",adjust:3},lineColor:{baseColor:"fillColor",adjust:.95},lineColorSelected:{baseColor:"lineColor",adjust:.95},lineColorSymbol:{baseColor:"lineColor",adjust:1},lineColorSymbolSelected:{baseColor:"lineColorSelected",adjust:1}};for(let t in s)"object"==typeof i&&i[t]||o[t]&&(s[t]=o[t]);for(let t in s)"object"==typeof i&&i[t]||o[t]||(s[t]=this.renderer.adjustColor(s[l[t].baseColor],l[t].adjust));return this._colorsCache.set(a,s),s}_getItemColorFromScheme(t,e,r,n){let o;for(void 0!==t&&""!==t||(t=this.colorSchemes[0].name),o=0;o<this.colorSchemes.length&&t!==this.colorSchemes[o].name;o++);let a=0;for(;a<=e;){o===this.colorSchemes.length&&(o=0);let t=this.colorSchemes[o].colors.length;if(!(a+t<=e)){let t=this.colorSchemes[o].colors[e-a];return this._isGreyScale(r,n)&&0===t.indexOf("#")&&(t=this._draw.toGreyScale(t)),t}a+=t,o++}}getColorScheme(t){for(let e=0;e<this.colorSchemes.length;e++)if(this.colorSchemes[e].name===t)return this.colorSchemes[e].colors}addColorScheme(t,e){for(let r=0;r<this.colorSchemes.length;r++)if(this.colorSchemes[r].name===t)return void(this.colorSchemes[r].colors=e);this.colorSchemes.push({name:t,colors:e})}removeColorScheme(t){for(let e=0;e<this.colorSchemes.length;e++)if(this.colorSchemes[e].name===t){this.colorSchemes.splice(e,1);break}}_formatValue(t,e,r,n,o,a){if(null==t)return"";if(this._isObject(t)&&!this._isDate(t)&&!r)return"";if(r){if("function"!=typeof r)return t.toString();try{return r(t,a,o,n)}catch(t){return t.message}}return this._isNumber(t)?this._formatNumber(t,e):this._isDate(t)?this._formatDate(t,e):e?(e.prefix||"")+t.toString()+(e.sufix||""):t.toString()}_getFormattedValue(t,e,r,n,o,a){let i=this.seriesGroups[t],s=i.series[e],l="",d=n,m=o;s.labels&&(d=d||this._getFormatSettings(s.labels),m=m||s.labels.formatFunction),d||m||(d=this._getFormatSettings(s),m=s.formatFunction,d||m||(d=this._getFormatSettings(i),m=i.formatFunction));let c={},h=0;for(let e in s)0===e.indexOf("dataField")&&(c[e.substring(9).toLowerCase()]=this._getDataValue(r,s[e],t),h++);if(0===h&&(c=this._getDataValue(r,void 0,t)),-1!==i.type.indexOf("waterfall")&&this._isSummary(t,r)&&(c=this._renderData[t].offsets[e][r].value,h=0),m&&"function"==typeof m)try{return m(1===h?c[""]:c,r,s,i)}catch(t){return t.message}if(1===h&&this._isPieGroup(t))return this._formatValue(c[""],d,m,t,e,r);if(h>0){let n=0;for(let o in c){n>0&&""!==l&&(l+="<br>");let i="dataField"+(o.length>0?o.substring(0,1).toUpperCase()+o.substring(1):""),h=s["displayText"+(o.length>0?o.substring(0,1).toUpperCase()+o.substring(1):"")]||s[i],u=c[o];void 0!==u&&(u=this._formatValue(u,d,m,t,e,r),l+=!0===a?u:h+": "+u,n++)}}else null!=c&&(l=this._formatValue(c,d,m,t,e,r));return l||""}_isNumberAsString(t){if("string"!=typeof t)return!1;t=t.trim();for(let e=0;e<t.length;e++){let r=t.charAt(e);if(!(r>="0"&&r<="9"||","===r||"."===r)&&(("-"!==r||0!==e)&&!("("===r&&0===e||")"===r&&e===t.length-1)))return!1}return!0}_castAsDate(t,e){if(t instanceof Date&&!isNaN(t))return t;if("string"==typeof t){let r=new Date(t);if(this._isDate(r))return-1===t.indexOf(":")&&r.setHours(0,0,0,0),r;try{if(e&&(r=Smart.Utilities.DateTime.parseDateString(t,void 0,e).toDate(),this._isDate(r)))return r;if(this._autoDateFormats)for(let e=0;e<this._autoDateFormats.length;e++)if(r=Smart.Utilities.DateTime.parseDateString(t,void 0,this._autoDateFormats[e]).toDate(),this._isDate(r))return r;let n=this._detectDateFormat(t);if(n&&(r=Smart.Utilities.DateTime.parseDateString(t,void 0,n).toDate(),this._isDate(r)))return this._autoDateFormats.push(n),r}catch(t){}}}_castAsNumber(t){if(t instanceof Date&&!isNaN(t))return t.valueOf();if("string"==typeof t)if(this._isNumber(t))t=parseFloat(t);else if(!/[a-zA-Z]/.test(t)){let e=new Date(t);null!=e&&(t=e.valueOf())}return isNaN(t)?void 0:t}_isNumber(t){return"string"==typeof t&&this._isNumberAsString(t)&&(t=parseFloat(t)),"number"==typeof t&&isFinite(t)}_isDate(t){return t instanceof Date&&!isNaN(t.getDate())}_isBoolean(t){return"boolean"==typeof t}_isObject(t){return t&&("object"==typeof t||"function"==typeof t)||!1}_formatDate(t,e){let r=t.toString();return e&&(e.dateFormat&&(r=new Smart.Utilities.DateTime(t).toString(e.dateFormat)),r=(e.prefix||"")+r+(e.sufix||"")),r}_formatNumber(t,e){if(!this._isNumber(t))return t;e=e||{};let r=this.localization.decimalSeparator,n=this.localization.thousandsSeparator;e.decimalSeparator&&(r=e.decimalSeparator),e.thousandsSeparator&&(n=e.thousandsSeparator);let o=e.prefix||"",a=e.sufix||"",i=e.decimalPlaces;isNaN(i)&&(i=this._getDecimalPlaces([t],void 0,3));let s=e.negativeWithBrackets||!1,l=t<0;l&&s&&(t*=-1);let d,m=t.toString(),c=Math.pow(10,i);if(m=(Math.round(t*c)/c).toString(),isNaN(m)&&(m=""),d=m.lastIndexOf("."),i>0)for(d<0?(m+=r,d=m.length-1):"."!==r&&(m=m.replace(".",r));m.length-1-d<i;)m+="0";d=m.lastIndexOf(r),d=d>-1?d:m.length;let h=m.substring(d),u=0;for(let t=d;t>0;t--,u++)u%3==0&&t!==d&&(!l||t>1||l&&s)&&(h=n+h),h=m.charAt(t-1)+h;return m=h,l&&s&&(m="("+m+")"),o+m+a}_calculateControlPoints(t,e){let r=t[e],n=t[e+1],o=t[e+2],a=t[e+3],i=t[e+4],s=t[e+5],l=Math.sqrt(Math.pow(o-r,2)+Math.pow(a-n,2)),d=l+Math.sqrt(Math.pow(i-o,2)+Math.pow(s-a,2));0===d&&(d=1);let m=.4*l/d,c=.4-m;return[o+m*(r-i),a+m*(n-s),o-c*(r-i),a-c*(n-s)]}_getBezierPoints(t){let e="",r=[],n=[],o=t.split(" ");for(let t=0;t<o.length;t++){let e=o[t].split(",");r.push(parseFloat(e[0])),r.push(parseFloat(e[1])),!isNaN(r[r.length-1])&&isNaN(r[r.length-2])}let a=r.length;if(a<=1)return"";if(2===a)return e="M"+this.renderer._ptrnd(r[0])+","+this.renderer._ptrnd(r[1])+" L"+this.renderer._ptrnd(r[0]+1)+","+this.renderer._ptrnd(r[1]+1)+" ",e;for(let t=0;t<a-4;t+=2)n=n.concat(this._calculateControlPoints(r,t));for(let t=2;t<a-5;t+=2)e+=" C"+this.renderer._ptrnd(n[2*t-2])+","+this.renderer._ptrnd(n[2*t-1])+" "+this.renderer._ptrnd(n[2*t])+","+this.renderer._ptrnd(n[2*t+1])+" "+this.renderer._ptrnd(r[t+2])+","+this.renderer._ptrnd(r[t+3])+" ";return e=a<=4||Math.abs(r[0]-r[2])<3||Math.abs(r[1]-r[3])<3?"M"+this.renderer._ptrnd(r[0])+","+this.renderer._ptrnd(r[1])+" L"+this.renderer._ptrnd(r[2])+","+this.renderer._ptrnd(r[3])+" "+e:"M"+this.renderer._ptrnd(r[0])+","+this.renderer._ptrnd(r[1])+" Q"+this.renderer._ptrnd(n[0])+","+this.renderer._ptrnd(n[1])+" "+this.renderer._ptrnd(r[2])+","+this.renderer._ptrnd(r[3])+" "+e,a>=4&&(Math.abs(r[a-2]-r[a-4])<3||Math.abs(r[a-1]-r[a-3])<3)?e+=" L"+this.renderer._ptrnd(r[a-2])+","+this.renderer._ptrnd(r[a-1])+" ":a>=5&&(e+=" Q"+this.renderer._ptrnd(n[2*a-10])+","+this.renderer._ptrnd(n[2*a-9])+" "+this.renderer._ptrnd(r[a-2])+","+this.renderer._ptrnd(r[a-1])+" "),e}_createAnimationGroup(t){this._animGroups||(this._animGroups={}),this._animGroups[t]={animations:[],startTick:NaN}}_startAnimation(t){let e=(new Date).getTime();this._animGroups[t].startTick=e,this._runAnimation(),this._enableAnimTimer()}_enqueueAnimation(t,e,r,n,o,a,i){n<0&&(n=0),void 0===i&&(i="easeInOutSine"),this._animGroups[t].animations.push({key:e,properties:r,duration:n,fn:o,context:a,easing:i})}_stopAnimations(){clearTimeout(this._animtimer),this._animtimer=void 0,this._animGroups=void 0}_enableAnimTimer(){if(!this._animtimer){let t=this;this._animtimer=setTimeout((function(){t._runAnimation()}),this._animTickInt)}}_runAnimation(){if(this._animGroups){let t=(new Date).getTime(),e={};for(let r in this._animGroups){let n=this._animGroups[r].animations,o=this._animGroups[r].startTick,a=0;for(let e=0;e<n.length;e++){let r=n[e],i=t-o;r.duration>a&&(a=r.duration);let s=r.duration>0?i/r.duration:1,l=s;if(r.easing&&0!==r.duration&&!1!==r.duration&&(l=Smart.Utilities.Animation.Easings[r.easing](i,0,1,r.duration)),s>1&&(s=1,l=1),r.fn){r.fn(r.key,r.context,l);continue}let d={};for(let t=0;t<r.properties.length;t++){let e=r.properties[t],n=0;n=1===s?e.to:l*(e.to-e.from)+e.from,d[e.key]=n}this.renderer.attr(r.key,d)}o+a>t&&(e[r]={startTick:o,animations:n})}this._animGroups=e,this.renderer instanceof Smart.Utilities.HTML5Renderer&&this.renderer.refresh()}this._animtimer=null,Object.values(this._animGroups).length>0&&this._enableAnimTimer()}_fixCoords(t,e){if(!("horizontal"===this.seriesGroups[e].orientation))return t;var r=t.x;return t.x=t.y,t.y=r+this._plotRect.y-this._plotRect.x,r=t.width,t.width=t.height,t.height=r,t}getItemCoord(t,e,r){if(this._isPieGroup(t)&&(!this._isSerieVisible(t,e,r)||!this._renderData||this._renderData.length<=t))return{x:NaN,y:NaN};if(!this._isSerieVisible(t,e)||!this._renderData||this._renderData.length<=t)return{x:NaN,y:NaN};var n=this.seriesGroups[t],o=n.series[e],a=this._getItemCoord(t,e,r);if(this._isPieGroup(t)){if(isNaN(a.x)||isNaN(a.y)||isNaN(a.fromAngle)||isNaN(a.toAngle))return{x:NaN,y:NaN};var i=this._plotRect,s=a.fromAngle*(Math.PI/180),l=a.toAngle*(Math.PI/180);const t=i.x+a.center.x+Math.cos(s)*a.outerRadius,e=i.x+a.center.x+Math.cos(l)*a.outerRadius,r=i.y+a.center.y-Math.sin(s)*a.outerRadius,n=i.y+a.center.y-Math.sin(l)*a.outerRadius;var d=Math.min(t,e),m=Math.abs(e-t);return a={x:d,y:Math.min(r,n),width:m,height:Math.abs(n-r),center:a.center,centerOffset:a.centerOffset,innerRadius:a.innerRadius,outerRadius:a.outerRadius,selectedRadiusChange:a.selectedRadiusChange,fromAngle:a.fromAngle,toAngle:a.toAngle}}if(-1!==n.type.indexOf("column")||-1!==n.type.indexOf("waterfall")){var c=this._getColumnSerieWidthAndOffset(t,e);a.height=Math.abs(a.y.to-a.y.from),a.y=Math.min(a.y.to,a.y.from),a.x+=c.offset,a.width=c.width}else if(-1!==n.type.indexOf("ohlc")||-1!==n.type.indexOf("candlestick")){let r=this._getColumnSerieWidthAndOffset(t,e),n=a.y;var h=Math.min(n.Open,n.Close,n.Low,n.High),u=Math.max(n.Open,n.Close,n.Low,n.High);a.height=Math.abs(u-h),a.y=h,a.x+=r.offset,a.width=r.width}else if(-1!==n.type.indexOf("line")||-1!==n.type.indexOf("area"))a.width=a.height=0,a.y=a.y.to;else if(-1!==n.type.indexOf("bubble")||-1!==n.type.indexOf("scatter")){a.center={x:a.x,y:a.y.to};var p=a.y.radius;"circle"!==o.symbolType&&void 0!==o.symbolType&&null!==o.symbolType&&(p/=2),a.y=a.y.to,a.radius=p,a.width=2*p,a.height=2*p}if(a=this._fixCoords(a,t),n.polar||n.spider){var f=this._toPolarCoord(this._renderData[t].polarCoords,this._plotRect,a.x,a.y);a.x=f.x,a.y=f.y,a.center&&(a.center=this._toPolarCoord(this._renderData[t].polarCoords,this._plotRect,a.center.x,a.center.y))}return-1===n.type.indexOf("bubble")&&-1===n.type.indexOf("scatter")||(a.x-=p,a.y-=p),a}_getItemCoord(t,e,r){let n,o,a=this.seriesGroups[t];if(!a||!this._renderData)return{x:NaN,y:NaN};if(!a.series[e])return{x:NaN,y:NaN};let i=this._plotRect;if(this._isPieGroup(t)){let a=this._renderData[t].offsets[e][r];if(!a)return{x:NaN,y:NaN};let s=(a.fromAngle+a.toAngle)/2*(Math.PI/180);return n=i.x+a.x+Math.cos(s)*a.outerRadius,o=i.y+a.y-Math.sin(s)*a.outerRadius,{x:n,y:o,center:{x:a.x,y:a.y},centerOffset:a.centerOffset,innerRadius:a.innerRadius,outerRadius:a.outerRadius,selectedRadiusChange:a.selectedRadiusChange,fromAngle:a.fromAngle,toAngle:a.toAngle}}if(n=i.x+this._renderData[t].xoffsets.data[r],o=this._renderData[t].offsets[e][r],isNaN(n)||!o)return{x:NaN,y:NaN};let s={};for(let t in o)s[t]=o[t];return{x:n,y:s}}getXAxisValue(t,e){var r=this.seriesGroups[e];if(r){var n=this._getXAxis(e),o=this._plotRect,a=0,i=NaN,s=this._renderData[0].xoffsets.axisStats,l=0,d=0;if(r.polar||r.spider){if(isNaN(t.x)||isNaN(t.y))return NaN;var m=this._getPolarAxisCoords(e,o);if(this.renderer._ptdist(t.x,t.y,m.x,m.y)>m.r)return NaN;var c=Math.atan2(m.y-t.y,t.x-m.x);(c=Math.PI/2-c)<0&&(c=2*Math.PI+c),i=c*m.r;var h=m.startAngle+Math.PI/2,u=m.endAngle+Math.PI/2;l=h*m.r,d=u*m.r,a=(u-h)*m.r;var p=this._getPaddingSize(s,n,n.valuesOnTicks,a,!0,m.isClosedCircle,this._hasColumnSeries());m.isClosedCircle?(a-=p.left+p.right,d-=p.left+p.right):n.valuesOnTicks||(l+=p.left,d-=p.right)}else{if("horizontal"!==r.orientation){if(t<o.x||t>o.x+o.width)return NaN;i=t-o.x,a=o.width}else{if(t<o.y||t>o.y+o.height)return NaN;i=t-o.y,a=o.height}if(this._renderData[e]&&this._renderData[e].xoffsets){let t=this._renderData[e].xoffsets.padding;a-=t.left+t.right,i-=t.left}d=a}return this._smartPlot.scale(i,{min:l,max:d},{min:s.min.valueOf(),max:s.max.valueOf(),type:s.logAxis.enabled?"logarithmic":"linear",base:s.logAxis.base,flip:n.flip})}}getValueAxisValue(t,e){let r=this.seriesGroups[e];if(!r)return;let n=this._getValueAxis(e),o=this._plotRect,a=0,i=NaN;if(r.polar||r.spider){if(isNaN(t.x)||isNaN(t.y))return NaN;let r=this._getPolarAxisCoords(e,o);i=this.renderer._ptdist(t.x,t.y,r.x,r.y),a=r.r,i=a-i}else if("horizontal"===r.orientation){if(t<o.x||t>o.x+o.width)return NaN;i=t-o.x,a=o.width}else{if(t<o.y||t>o.y+o.height)return NaN;i=t-o.y,a=o.height}let s=this._stats.seriesGroups[e];return this._smartPlot.scale(i,{min:0,max:a},{min:s.min.valueOf(),max:s.max.valueOf(),type:s.logarithmic?"logarithmic":"linear",base:s.logBase,flip:!n.flip})}_detectDateFormat(t,e){let r={en_US_d:"M/d/yyyy",en_US_D:"dddd, MMMM dd, yyyy",en_US_t:"h:mm tt",en_US_T:"h:mm:ss tt",en_US_f:"dddd, MMMM dd, yyyy h:mm tt",en_US_F:"dddd, MMMM dd, yyyy h:mm:ss tt",en_US_M:"MMMM dd",en_US_Y:"yyyy MMMM",en_US_S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",en_CA_d:"dd/MM/yyyy",en_CA_D:"MMMM-dd-yy",en_CA_f:"MMMM-dd-yy h:mm tt",en_CA_F:"MMMM-dd-yy h:mm:ss tt",ISO:"yyyy-MM-dd hh:mm:ss",ISO2:"yyyy-MM-dd HH:mm:ss",d1:"dd.MM.yyyy",d2:"dd-MM-yyyy",zone1:"yyyy-MM-ddTHH:mm:ss-HH:mm",zone2:"yyyy-MM-ddTHH:mm:ss+HH:mm",custom:"yyyy-MM-ddTHH:mm:ss.fff",custom2:"yyyy-MM-dd HH:mm:ss.fff",de_DE_d:"dd.MM.yyyy",de_DE_D:"dddd, d. MMMM yyyy",de_DE_t:"HH:mm",de_DE_T:"HH:mm:ss",de_DE_f:"dddd, d. MMMM yyyy HH:mm",de_DE_F:"dddd, d. MMMM yyyy HH:mm:ss",de_DE_M:"dd MMMM",de_DE_Y:"MMMM yyyy",fr_FR_d:"dd/MM/yyyy",fr_FR_D:"dddd d MMMM yyyy",fr_FR_t:"HH:mm",fr_FR_T:"HH:mm:ss",fr_FR_f:"dddd d MMMM yyyy HH:mm",fr_FR_F:"dddd d MMMM yyyy HH:mm:ss",fr_FR_M:"d MMMM",fr_FR_Y:"MMMM yyyy",it_IT_d:"dd/MM/yyyy",it_IT_D:"dddd d MMMM yyyy",it_IT_t:"HH:mm",it_IT_T:"HH:mm:ss",it_IT_f:"dddd d MMMM yyyy HH:mm",it_IT_F:"dddd d MMMM yyyy HH:mm:ss",it_IT_M:"dd MMMM",it_IT_Y:"MMMM yyyy",ru_RU_d:"dd.MM.yyyy",ru_RU_D:"d MMMM yyyy '?.'",ru_RU_t:"H:mm",ru_RU_T:"H:mm:ss",ru_RU_f:"d MMMM yyyy '?.' H:mm",ru_RU_F:"d MMMM yyyy '?.' H:mm:ss",ru_RU_Y:"MMMM yyyy",cs_CZ_d:"d.M.yyyy",cs_CZ_D:"d. MMMM yyyy",cs_CZ_t:"H:mm",cs_CZ_T:"H:mm:ss",cs_CZ_f:"d. MMMM yyyy H:mm",cs_CZ_F:"d. MMMM yyyy H:mm:ss",cs_CZ_M:"dd MMMM",cs_CZ_Y:"MMMM yyyy",he_IL_d:"dd MMMM yyyy",he_IL_D:"dddd dd MMMM yyyy",he_IL_t:"HH:mm",he_IL_T:"HH:mm:ss",he_IL_f:"dddd dd MMMM yyyy HH:mm",he_IL_F:"dddd dd MMMM yyyy HH:mm:ss",he_IL_M:"dd MMMM",he_IL_Y:"MMMM yyyy",hr_HR_d:"d.M.yyyy.",hr_HR_D:"d. MMMM yyyy.",hr_HR_t:"H:mm",hr_HR_T:"H:mm:ss",hr_HR_f:"d. MMMM yyyy. H:mm",hr_HR_F:"d. MMMM yyyy. H:mm:ss",hr_HR_M:"d. MMMM",hu_HU_d:"yyyy.MM.dd.",hu_HU_D:"yyyy. MMMM d.",hu_HU_t:"H:mm",hu_HU_T:"H:mm:ss",hu_HU_f:"yyyy. MMMM d. H:mm",hu_HU_F:"yyyy. MMMM d. H:mm:ss",hu_HU_M:"MMMM d.",hu_HU_Y:"yyyy. MMMM",jp_JP_d:"gg y/M/d",jp_JP_D:"gg y'?'M'?'d'?'",jp_JP_t:"H:mm",jp_JP_T:"H:mm:ss",jp_JP_f:"gg y'?'M'?'d'?' H:mm",jp_JP_F:"gg y'?'M'?'d'?' H:mm:ss",jp_JP_M:"M'?'d'?'",jp_JP_Y:"gg y'?'M'?'",lt_LT_d:"yyyy.MM.dd",lt_LT_D:"yyyy 'm.' MMMM d 'd.'",lt_LT_t:"HH:mm",lt_LT_T:"HH:mm:ss",lt_LT_f:"yyyy 'm.' MMMM d 'd.' HH:mm",lt_LT_F:"yyyy 'm.' MMMM d 'd.' HH:mm:ss",lt_LT_M:"MMMM d 'd.'",lt_LT_Y:"yyyy 'm.' MMMM",sa_IN_d:"dd-MM-yyyy",sa_IN_D:"dd MMMM yyyy dddd",sa_IN_t:"HH:mm",sa_IN_T:"HH:mm:ss",sa_IN_f:"dd MMMM yyyy dddd HH:mm",sa_IN_F:"dd MMMM yyyy dddd HH:mm:ss",sa_IN_M:"dd MMMM",basic_y:"yyyy",basic_ym:"yyyy-MM",basic_d:"yyyy-MM-dd",basic_dhm:"yyyy-MM-dd hh:mm",basic_bhms:"yyyy-MM-dd hh:mm:ss",basic2_ym:"MM-yyyy",basic2_d:"MM-dd-yyyy",basic2_dhm:"MM-dd-yyyy hh:mm",basic2_dhms:"MM-dd-yyyy hh:mm:ss",basic3_ym:"yyyy/MM",basic3_d:"yyyy/MM/dd",basic3_dhm:"yyyy/MM/dd hh:mm",basic3_bhms:"yyyy/MM/dd hh:mm:ss",basic4_ym:"MM/yyyy",basic4_d:"MM/dd/yyyy",basic4_dhm:"MM/dd/yyyy hh:mm",basic4_dhms:"MM/dd/yyyy hh:mm:ss"};e&&(r=Object.assign({},r,e));let n=[];Array.isArray(t)?n=t:n.push(t);for(let t in r)r[t]={format:r[t],count:0};for(let t=0;t<n.length;t++){const e=n[t];if(null!=e)for(let t in r)try{(e instanceof Date||Smart.Utilities.DateTime.parseDateString(e,void 0,r[t].format))&&r[t].count++}catch(t){}}let o={key:void 0,count:0};for(let t in r)r[t].count>o.count&&(o.key=t,o.count=r[t].count);return o.key?r[o.key].format:""}_testXAxisDateFormat(t){let e=this,r=e._getXAxis(t),n=e._getDataLen(t),o={};if(e.localization.patterns)for(let t in e.localization.patterns)o["local_"+t]=e.localization.patterns[t];let a=[];for(let o=0;o<n&&o<10;o++){const n=e._getDataValue(o,r.dataField,t);null!=n&&a.push(n)}return e._detectDateFormat(a,o)}_getThemeColor(t){if("light"===this.theme)switch(t){case"background":return"#FFFFFF";case"line":return"#BCBCBC";case"band":return"#AAAAAA"}switch(t){case"background":return"#2E2E2E";case"line":return"#707070";case"band":return"#565656"}}})},167:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleRangeSelector=!0,Smart.Chart.prototype._renderXAxisRangeSelector=function(t,e){const r=this,n=r.seriesGroups[t],o=r._getXAxis(t),a=o?o.rangeSelector:void 0;if(!r._isSelectorRefresh){const t=(a&&a.renderTo?a.renderTo:r).getElementsByClassName("smart-chart-range-selector")[0];t&&t.parentElement.removeChild(t)}if(!o||!1===o.visible||"spider"===n.type)return!1;if(!r._isGroupVisible(t))return!1;if(!a)return!1;let i="horizontal"===n.orientation;a.renderTo&&(i=!1),r.rightToLeft&&(o.flip=!0);let s=i?r.offsetHeight:r.offsetWidth;s-=4;const l=this._getXAxisStats(t,o,s);let d=o.position;if(a.renderTo&&a.position&&(d=a.position),!this._isSelectorRefresh){const r=a.renderTo,n=document.createElement("div");if(n.className="smart-chart-range-selector smart-unselectable",n.style.position="absolute",n.style.backgroundColor="transparent",n.style.onselectstart=function(){return!1},r)r.appendChild(n),n.style.width=r.offsetWidth+"px",n.style.height=r.offsetHeight+"px",e.width=r.offsetWidth,e.height=r.offsetHeight;else{this.renderer.getContainer().appendChild(n);const t=this._selectorGetSize(o);i?(n.style.left=1+e.x+("right"!==d?-t:e.width)+"px",n.style.top="0",n.style.height=s+"px",n.style.width=t+"px",e.height=t):(n.style.left="2px",n.style.top=e.y+("top"!==d?e.height:-t)+"px",n.style.height=t+"px",n.style.width=s-1+"px")}n.parentDiv=n.parentElement,this._refreshSelector(t,o,l,n,e,i)}return this._isSelectorRefresh=!1,!0},Smart.Chart.prototype._refreshSelector=function(t,e,r,n,o,a){const i=this,s={},l=e.rangeSelector;for(let t in l)s[t]=l[t];delete s.padding;let d=s.minValue,m=s.maxValue;isNaN(d)&&(d=Math.min(r.min.valueOf(),r.dsRange.min.valueOf())),isNaN(m)&&(m=Math.max(r.max.valueOf(),r.dsRange.max.valueOf())),this._isDate(r.min)&&(d=new Date(d)),this._isDate(r.max)&&(m=new Date(m));let c=e.position;l.renderTo&&l.position&&(c=l.position),s.dataField=e.dataField,delete s.rangeSelector,s.type=e.type,s.baseUnit=null!==l.baseUnit?l.baseUnit:e.baseUnit,s.minValue=d,s.maxValue=m,s.flip=e.flip,s.position=c;let h=2,u=2,p=2,f=2;l.renderTo||(h=a?0:o.x,u=a?0:this._rect.width-o.x-o.width,p=a?o.y:5,f=a?this._paddedRect.height-this._plotRect.height:5);let g=l.padding;g=null!=g||l.renderTo?{left:g&&g.left?g.left:h,top:g&&g.top?g.top:p,right:g&&g.right?g.right:u,bottom:g&&g.bottom?g.bottom:f}:{left:h,top:p,right:u,bottom:f};let b=l.dataField;for(let t=0;null==b&&t<this.seriesGroups.length;t++)for(let e=0;null==b&&e<this.seriesGroups[t].series.length;e++)b=this.seriesGroups[t].series[e].dataField;const v={parentChart:this,padding:g,_isRangeSelectorInstance:!0,theme:this.theme,caption:l.caption,description:l.description,titlePadding:l.titlePadding,colorScheme:l.colorScheme||this.colorScheme,backgroundColor:l.backgroundColor||this.backgroundColor||i._getThemeColor("background"),backgroundImage:l.backgroundImage,showBorderLine:null!==l.showBorderLine?l.showBorderLine:!!l.renderTo,borderLineWidth:l.borderLineWidth||this.borderLineWidth,borderLineColor:l.borderLineColor||this.borderLineColor||i._getThemeColor("line"),rightToLeft:null!==l.rightToLeft?l.rightToLeft:this.rightToLeft,greyScale:null!==l.greyScale?l.greyScale:this.greyScale,renderEngine:this.renderEngine,showLegend:!1,animation:"none",enableEvents:!1,showToolTips:!1,dataSource:this.dataSource,xAxis:s,seriesGroups:[{orientation:a?"horizontal":"vertical",valueAxis:{visible:!1},type:l.serieType,skipOverlappingPoints:l.skipOverlappingPoints,columnSeriesOverlap:l.columnSeriesOverlap,columnsGapPercent:l.columnsGapPercent,seriesGapPercent:l.seriesGapPercent,series:[{dataField:b,opacity:.8,lineWidth:1}]}]};l.seriesGroups&&(v.seriesGroups=l.seriesGroups),l.valueAxis.visible&&(v.valueAxis=l.valueAxis),v.showBorderLine||(v.borderLineWidth=1,v.borderLineColor=i._get([this.backgroundColor,this.background,i._getThemeColor("background")]),v.showBorderLine=!0),i._supressBindingRefresh=!0,n.innerHTML="";const y=document.createElement("smart-chart");y.rightToLeft=i.rightToLeft,y.parentDiv=n;for(let t in v)y[t]=v[t];n.appendChild(y),i._rangeSelectorInstances[t]=y,i._supressBindingRefresh=!1;const w=function(){if(!y._plotRect)return;const e=y._paddedRect;if(e.height=y._plotRect.height,a||"top"!==c){if(a){const t=y._renderData[0].xAxis.rect.width;e.width-=t,"right"!==c&&(e.x+=t)}}else e.y+=y._renderData[0].xAxis.rect.height;if(i._createSliderElements(t,n,e,l,{min:s.minValue,max:s.maxValue}),i._rangeSelectorEventData={groupIndex:t,renderTo:n,swapXY:a},i.hasAttribute("aria-owns")){const t=i.getAttribute("aria-owns");i.setAttribute("aria-owns",t+" "+y.id)}else i.setAttribute("aria-owns",y.id)};y.isRendered?w():y.whenRendered(()=>{w()})},Smart.Chart.prototype._createSliderElements=function(t,e,r,n,o){const a=this,i=e.getElementsByClassName("slider")[0];i&&i.parentElement.removeChild(i);const s=n.selectedRangeColor||"blue",l=a._get([n.selectedRangeOpacity,.1]),d=a._get([n.unselectedRangeOpacity,.5]),m=n.unselectedRangeColor||"white",c=n.rangeLineColor||"grey",h=document.createElement("div");for(h.className="slider",h.style.position="absolute",h.style.background=s,h.style.opacity=l,h.style.left=r.x+"px",h.style.top=r.y+"px",h.style.width=r.width+"px",h.style.height=r.height+"px",e.appendChild(h);this._sliders.length<t+1;)this._sliders.push({});function u(t,e){const r=document.createElement("div");return r.className="slider",r.style.position="absolute",r.style.background=t,r.style.opacity=e,r}function p(){const t=document.createElement("div");return t.className="slider",t.style.position="absolute",t.style.background="#FFFFFF",t.style.borderStyle="solid",t.style.borderWidth="1px",t.style.borderRadius="3px",t.style.borderColor=c,t.setAttribute("role","slider"),t.setAttribute("aria-controls",a.id),t}const f=h.getBoundingClientRect(),g=e.getBoundingClientRect();this._sliders[t]={element:h,host:e.firstElementChild,_sliderInitialAbsoluteRect:{x:f.left,y:f.top,width:r.width,height:r.height},_hostInitialAbsolutePos:{x:g.left,y:g.top},getRect:function(){const t=e.getBoundingClientRect();return{x:t.left-this._hostInitialAbsolutePos.x+this._sliderInitialAbsoluteRect.x,y:t.top-this._hostInitialAbsolutePos.y+this._sliderInitialAbsoluteRect.y,width:this._sliderInitialAbsoluteRect.width,height:this._sliderInitialAbsoluteRect.height}},rect:r,left:u(m,d),right:u(m,d),leftTop:u(c,d),rightTop:u(c,d),leftBorder:u(c,d),leftBar:p(),rightBorder:u(c,d),rightBar:p()};const b=this._sliders[t];e.appendChild(b.left),e.appendChild(b.right),e.appendChild(b.leftTop),e.appendChild(b.rightTop),e.appendChild(b.leftBorder),e.appendChild(b.rightBorder),e.appendChild(b.leftBar),e.appendChild(b.rightBar);const v=this._renderData[t].xAxis.data.axisStats,y=v.min.valueOf(),w=v.max.valueOf();"number"==typeof v.min?(b.leftBar.setAttribute("aria-valuemin",o.min),b.leftBar.setAttribute("aria-valuemax",o.max),b.leftBar.setAttribute("aria-valuenow",y),b.rightBar.setAttribute("aria-valuemin",o.min),b.rightBar.setAttribute("aria-valuemax",o.max),b.rightBar.setAttribute("aria-valuenow",w)):(b.leftBar.setAttribute("aria-valuemin",o.min.getTime()),b.leftBar.setAttribute("aria-valuemax",o.max.getTime()),b.leftBar.setAttribute("aria-valuenow",v.min.getTime()),b.leftBar.setAttribute("aria-valuetext",v.min.toLocaleString()),b.rightBar.setAttribute("aria-valuemin",o.min.getTime()),b.rightBar.setAttribute("aria-valuemax",o.max.getTime()),b.rightBar.setAttribute("aria-valuenow",v.max.getTime()),b.rightBar.setAttribute("aria-valuetext",v.max.toLocaleString()));let x=this._valueToOffset(t,y),_=this._valueToOffset(t,w);if(x>_){const t=_;_=x,x=t}"horizontal"!==this.seriesGroups[t].orientation?(h.style.left=Math.round(r.x+x)+"px",h.style.top=r.y+"px",h.style.width=Math.round(_-x)+"px",h.style.height=r.height+"px"):(h.style.left=r.x+"px",h.style.top=Math.round(r.y+x)+"px",h.style.width=r.width+"px",h.style.height=Math.round(_-x)+"px"),this._setSliderPositions(t,x,_)},Smart.Chart.prototype._setSliderPositions=function(t,e,r){const n=this.seriesGroups[t],o=this._getXAxis(t),a=o.rangeSelector;let i="horizontal"===n.orientation;o.rangeSelector.renderTo&&(i=!1);let s=o.position;a.renderTo&&a.position&&(s=a.position);const l=this._sliders[t],d=i?"top":"left",m=i?"left":"top",c=i?"height":"width",h=i?"width":"height",u=i?"y":"x",p=i?"x":"y",f=l.rect;l.startOffset=e,l.endOffset=r,l.left.style[d]=f[u]+"px",l.left.style[m]=f[p]+"px",l.left.style[c]=e+"px",l.left.style[h]=f[h]+"px",l.right.style[d]=f[u]+r+"px",l.right.style[m]=f[p]+"px",l.right.style[c]=f[c]-r+1+"px",l.right.style[h]=f[h]+"px",l.leftTop.style[d]=f[u]+"px",l.leftTop.style[m]=f[p]+(i&&"right"===s||!i&&"top"!==s?0:f[h])+"px",l.leftTop.style[c]=e+"px",l.leftTop.style[h]="1px",l.rightTop.style[d]=f[u]+r+"px",l.rightTop.style[m]=f[p]+(i&&"right"===s||!i&&"top"!==s?0:f[h])+"px",l.rightTop.style[c]=f[c]-r+1+"px",l.rightTop.style[h]="1px",l.leftBorder.style[d]=f[u]+e+"px",l.leftBorder.style[m]=f[p]+"px",l.leftBorder.style[c]="1px",l.leftBorder.style[h]=f[h]+"px";let g=f[h]/4;g>20&&(g=20),g<3&&(g=3),l.leftBar.style[d]=f[u]+e-3+"px",l.leftBar.style[m]=f[p]+f[h]/2-g/2+"px",l.leftBar.style[c]="5px",l.leftBar.style[h]=g+"px",l.rightBorder.style[d]=f[u]+r+"px",l.rightBorder.style[m]=f[p]+"px",l.rightBorder.style[c]="1px",l.rightBorder.style[h]=f[h]+"px",l.rightBar.style[d]=f[u]+r-3+"px",l.rightBar.style[m]=f[p]+f[h]/2-g/2+"px",l.rightBar.style[c]="5px",l.rightBar.style[h]=g+"px"},Smart.Chart.prototype._resizeState={},Smart.Chart.prototype._onSliderMouseDown=function(t){t.stopImmediatePropagation(),t.stopPropagation(),this._sliders[this._rangeSelectorEventData.groupIndex]&&(void 0!==this._resizeState.state&&null!==this._resizeState.state||this._testAndSetReadyResize(t),"ready"===this._resizeState.state&&(this._draggingRangeSelector=!0,this._resizeState.state="resizing"))},Smart.Chart.prototype._valueToOffset=function(t,e){const r=this.seriesGroups[t],n=this._sliders[t],o=n.host._renderData[0].xAxis.data.axisStats,a=o.min.valueOf();let i=o.max.valueOf()-a;0===i&&(i=1);const s=this._getXAxis(t),l="horizontal"===r.orientation?"height":"width",d=(e.valueOf()-a)/i;return n.getRect()[l]*(s.flip?1-d:d)},Smart.Chart.prototype._offsetToValue=function(t,e){const r=this._sliders[t],n=this.seriesGroups[t],o=this._getXAxis(t),a="horizontal"===n.orientation?"height":"width";let i=r.getRect()[a];0===i&&(i=1);const s=r.host._renderData[0].xAxis.data.axisStats,l=s.min.valueOf(),d=s.max.valueOf();let m=e/i*(d-l)+l;return!0===o.flip&&(m=d-e/i*(d-l)),this._isDate(s.min)||this._isDate(s.max)?m=new Date(m):((void 0===o.dataField||null===o.dataField||s.useIndeces)&&(m=Math.round(m)),m<s.min&&(m=s.min),m>s.max&&(m=s.max)),m},Smart.Chart.prototype._onSliderMouseUp=function(t){const e=this,r=e._rangeSelectorEventData.groupIndex,n=e._rangeSelectorEventData.swapXY,o=e._sliders[r];if(delete e._draggingRangeSelector,!o)return;if("resizing"!==e._resizeState.state)return;t.stopImmediatePropagation(),t.stopPropagation(),e._resizeState={},e.style.cursor="default";const a=n?"top":"left",i=n?"y":"x",s=o.element.getBoundingClientRect()[a],l=s+(n?o.element.offsetHeight:o.element.offsetWidth),d=o.getRect();let m=e._offsetToValue(r,s-d[i]),c=e._offsetToValue(r,l-d[i]);!o.host._renderData[0].xAxis.data.axisStats.isTimeUnit&&c.valueOf()-m.valueOf()>864e5&&(m.setHours(0,0,0,0),c.setDate(c.getDate()+1),c.setHours(0,0,0,0));const h=e._getXAxis(r);if(h.flip){const t=m;m=c,c=t}for(let t=0;t<e.seriesGroups.length;t++)e._getXAxis(t)===h&&(e._selectorRange[t]={min:m,max:c});e._isSelectorRefresh=!0;const u=e.animation;e.$.fireEvent("rangeSelectionChanging",{instance:e,minValue:m,maxValue:c}),e.animation="none",e.update(),e.animation=u,e.$.fireEvent("rangeSelectionChanged",{instance:e,minValue:m,maxValue:c}),"number"==typeof m?(o.leftBar.setAttribute("aria-valuenow",m),o.rightBar.setAttribute("aria-valuenow",c)):(o.leftBar.setAttribute("aria-valuenow",m.getTime()),o.leftBar.setAttribute("aria-valuetext",m.toLocaleString()),o.rightBar.setAttribute("aria-valuenow",c.getTime()),o.rightBar.setAttribute("aria-valuetext",c.toLocaleString()))},Smart.Chart.prototype._onSliderMouseMove=function(t){const e=this,r=e._rangeSelectorEventData.groupIndex,n=e._sliders[r],o=e._rangeSelectorEventData.swapXY;if(!n)return;const a=n.getRect(),i=n.element,s={left:t.clientX,top:t.clientY},l=i.getBoundingClientRect(),d=o?"top":"left",m=parseFloat(getComputedStyle(i)[d]),c=o?"height":"width",h=o?"y":"x";if("resizing"===e._resizeState.state){if(t.stopImmediatePropagation(),t.stopPropagation(),"left"===e._resizeState.side){let t=Math.round(s[d]-l[d]),e=a[h];if(l[d]+t>=e&&l[d]+t<=e+a[c]){let e=parseInt(m),r=Math.max(2,(o?i.offsetHeight:i.offsetWidth)-t);i.style[c]=r+"px",i.style[d]=e+t+"px"}}else if("right"===e._resizeState.side){let t=o?i.offsetHeight:i.offsetWidth,e=Math.round(s[d]-l[d]-t),r=a[h];if(l[d]+t+e>=r&&l[d]+e+t<=r+a[c]){let r=Math.max(2,t+e);i.style[c]=r+"px"}}else if("move"===e._resizeState.side){let t=o?i.offsetHeight:i.offsetWidth,r=parseInt(m),n=Math.round(s[d]-e._resizeState.startPos);l[d]+n>=a[h]&&l[d]+n+t<=a[h]+a[c]&&(e._resizeState.startPos=s[d],i.style[d]=r+n+"px")}const u=parseInt(m)-n.rect[h],p=u+(o?i.offsetHeight:i.offsetWidth);e._setSliderPositions(r,u,p)}else e._testAndSetReadyResize(t)},Smart.Chart.prototype._testAndSetReadyResize=function(t){const e=this,r=e._rangeSelectorEventData,n=r.renderTo,o=r.groupIndex,a=e._sliders[o],i=r.swapXY,s=a.getRect(),l=a.element,d={left:t.clientX,top:t.clientY},m=l.getBoundingClientRect(),c=i?"left":"top",h=i?"top":"left",u=i?"width":"height",p=e._isTouchDevice?30:5;d[c]>=m[c]&&d[c]<=m[c]+s[u]?Math.abs(d[h]-m[h])<=p?(n.style.cursor=i?"row-resize":"col-resize",e._resizeState={state:"ready",side:"left"}):Math.abs(d[h]-m[h]-(i?l.offsetHeight:l.offsetWidth))<=p?(n.style.cursor=i?"row-resize":"col-resize",e._resizeState={state:"ready",side:"right"}):d[h]+p>m[h]&&d[h]-p<m[h]+(i?l.offsetHeight:l.offsetWidth)?(n.style.cursor="pointer",e._resizeState={state:"ready",side:"move",startPos:d[h]}):(n.style.cursor="default",e._resizeState={}):(n.style.cursor="default",e._resizeState={})},Smart.Chart.prototype._selectorGetSize=function(t){return t.rangeSelector.renderTo?0:t.rangeSelector.size||this._paddedRect.height/3})},168:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleApi=!0,Smart.Chart.prototype.getItemsCount=function(t,e){const r=this.seriesGroups[t];if(!this._isSerieVisible(t,e))return 0;const n=this._renderData;return!r||!n||n.length<=t?0:r.series[e]?n[t].offsets[e].length:0},Smart.Chart.prototype.getXAxisRect=function(t){const e=this._renderData;if(e&&!(e.length<=t)&&e[t].xAxis)return e[t].xAxis.rect},Smart.Chart.prototype.getXAxisLabels=function(t){const e=[];let r=this._renderData;if(!r||r.length<=t)return e;if(r=r[t].xAxis,!r)return e;const n=this.seriesGroups[t];if(n.polar||n.spider){for(let t=0;t<r.polarLabels.length;t++){const n=r.polarLabels[t];e.push({offset:{x:n.x,y:n.y},value:n.value})}return e}const o=this._getXAxis(t),a=this.getXAxisRect(t),i="top"===o.position||"right"===o.position,s="horizontal"===n.orientation;for(let t=0;t<r.data.length;t++)s?e.push({offset:{x:a.x+(i?0:a.width),y:a.y+r.data.data[t]},value:r.data.xvalues[t]}):e.push({offset:{x:a.x+r.data.data[t],y:a.y+(i?a.height:0)},value:r.data.xvalues[t]});return e},Smart.Chart.prototype.getValueAxisRect=function(t){const e=this._renderData;if(e&&!(e.length<=t)&&e[t].valueAxis)return e[t].valueAxis.rect},Smart.Chart.prototype.getValueAxisLabels=function(t){const e=[];let r=this._renderData;if(!r||r.length<=t)return e;if(r=r[t].valueAxis,!r)return e;const n=this._getValueAxis(t),o="top"===n.position||"right"===n.position,a=this.seriesGroups[t],i="horizontal"===a.orientation;if(a.polar||a.spider){for(let t=0;t<r.polarLabels.length;t++){const n=r.polarLabels[t];e.push({offset:{x:n.x,y:n.y},value:n.value})}return e}for(let t=0;t<r.items.length;t++)i?e.push({offset:{x:r.itemOffsets[r.items[t]].x+r.itemWidth/2,y:r.rect.y+(o?r.rect.height:0)},value:r.items[t]}):e.push({offset:{x:r.rect.x+r.rect.width,y:r.itemOffsets[r.items[t]].y+r.itemWidth/2},value:r.items[t]});return e},Smart.Chart.prototype.getPlotAreaRect=function(){return this._plotRect},Smart.Chart.prototype.getRect=function(){return this._rect},Smart.Chart.prototype.showToolTip=function(t,e,r,n,o){const a=this.getItemCoord(t,e,r);isNaN(a.x)||isNaN(a.y)||this._startTooltipTimer(t,e,r,a.x,a.y,n,o)},Smart.Chart.prototype.hideToolTip=function(t){isNaN(t)&&(t=0);const e=this;e._cancelTooltipTimer(),setTimeout((function(){e._hideToolTip(0)}),t)})},169:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleWaterfall=!0,Smart.Chart.prototype._isSummary=function(t,e){const r=this.seriesGroups[t];for(let n=0;n<r.series.length;n++)if(void 0!==r.series[n].summary&&void 0!==this._getDataValue(e,r.series[n].summary,t))return!0;return!1},Smart.Chart.prototype._applyWaterfall=function(t,e,r,n,o,a,i,s,l){const d=this.seriesGroups[r];if(0===t.length)return t;let m=n;const c={},h=[];let u;const p=[];for(let t=0;t<d.series.length;t++)p.push(this._isSerieVisible(r,t));const f={};for(let d=0;d<e;d++){let e=n,g=0;const b=this._isSummary(r,d);for(let r=0;r<t.length;r++){if(!p[r])continue;let v=0;if(b){v=e===n?o:0,t[r][d].value=c[r],t[r][d].summary=!0,u=t[r][d].value<v,s&&(u=!u);let m=0;m=isNaN(a)?this._getDataPointOffsetDiff(t[r][d].value,v,v,NaN,i,n,s):this._getDataPointOffsetDiff(t[r][d].value+g,0===g?o:g,v||o,a,i,n,s),t[r][d].to=e+(u?m:-m),t[r][d].from=e,l&&(g+=t[r][d].value,e=t[r][d].to);continue}const y=l?-1:r;if(isNaN(t[r][d].value))continue;void 0===f[y]&&(v=o,f[y]=!0),u=t[r][d].value<v,s&&(u=!u);let w=NaN;w=l?m:0===d?n:t[r][h[r]].to;let x=0;x=isNaN(a)?this._getDataPointOffsetDiff(t[r][d].value,v,v,NaN,i,n,s):this._getDataPointOffsetDiff(t[r][d].value+(isNaN(c[y])?0:c[y]),isNaN(c[y])?o:c[y],v||o,a,i,w,s),t[r][d].to=m=w+(u?x:-x),t[r][d].from=w,isNaN(c[y])?c[y]=t[r][d].value:c[y]+=t[r][d].value,-1===y&&(isNaN(c[r])?c[r]=t[r][d].value:c[r]+=t[r][d].value),l||(h[r]=d)}}return t})},17:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* .smart-tooltip */\r\nsmart-tooltip {\r\n position: absolute;\r\n text-align: center;\r\n z-index: var(--smart-editor-drop-down-z-index);\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n visibility: hidden;\r\n pointer-events: none; }\r\n smart-tooltip.smart-element {\r\n background: transparent;\r\n overflow: visible; }\r\n smart-tooltip .smart-tooltip-content {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n padding: var(--smart-tooltip-padding);\r\n background-color: var(--smart-secondary);\r\n color: var(--smart-secondary-color);\r\n border: var(--smart-border-width) solid var(--smart-secondary);\r\n width: 100%;\r\n height: 100%;\r\n opacity: 0.9;\r\n box-shadow: var(--smart-elevation-6);\r\n font-family: var(--smart-font-family);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n smart-tooltip.auto {\r\n height: auto; }\r\n smart-tooltip.auto .smart-container {\r\n height: auto; }\r\n smart-tooltip.auto .smart-tooltip-content {\r\n height: auto; }\r\n smart-tooltip[visible] {\r\n visibility: visible;\r\n pointer-events: auto; }\r\n smart-tooltip[arrow] {\r\n padding-bottom: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow] .smart-tooltip-content:after {\r\n content: "";\r\n width: 0;\r\n height: 0;\r\n border-left: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n position: absolute;\r\n bottom: 0;\r\n left: calc(100% / 2 - var(--smart-tooltip-arrow-width));\r\n transform: translateX(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="bottom"] {\r\n padding-bottom: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="bottom"] .smart-tooltip-content:after {\r\n content: "";\r\n width: 0;\r\n height: 0;\r\n border-left: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n position: absolute;\r\n bottom: 0;\r\n left: calc(100% / 2 - var(--smart-tooltip-arrow-width));\r\n transform: translateX(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="top"] {\r\n padding-bottom: initial;\r\n padding-top: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="top"] .smart-tooltip-content:after {\r\n border-left: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-bottom: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n border-top: initial;\r\n top: 0;\r\n bottom: calc(100% + var(--smart-tooltip-arrow-width));\r\n transform: translateX(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="left"] {\r\n padding-bottom: initial;\r\n padding-left: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="left"] .smart-tooltip-content:after {\r\n border-bottom: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-right: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n border-left: initial;\r\n left: 0;\r\n top: calc(50% - var(--smart-tooltip-arrow-width));\r\n transform: translateY(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip[arrow][arrow-direction="right"] {\r\n padding-bottom: initial;\r\n padding-right: var(--smart-tooltip-arrow-width); }\r\n smart-tooltip[arrow][arrow-direction="right"] .smart-tooltip-content:after {\r\n border-bottom: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-top: var(--smart-tooltip-arrow-width) solid transparent;\r\n border-left: var(--smart-tooltip-arrow-width) solid var(--smart-tooltip-arrow-color);\r\n border-right: initial;\r\n left: calc(100% - var(--smart-tooltip-arrow-width));\r\n top: calc(50% - var(--smart-tooltip-arrow-width));\r\n transform: translateY(var(--smart-tooltip-arrow-translate)); }\r\n smart-tooltip:not([animation=\'none\']) {\r\n opacity: 0;\r\n transition: opacity 0.5s ease-in-out; }\r\n smart-tooltip:not([animation=\'none\'])[visible] {\r\n opacity: 1; }\r\n\r\n/* .smart-tooltip */\r\nsmart-tooltip[right-to-left] .smart-tooltip-content {\r\n direction: rtl; }\r\n',""]),t.exports=e},170:function(t,e){Smart.Chart&&(Smart.Chart.prototype._moduleAnnotations=!0,Smart.Chart.prototype._renderAnnotation=function(t,e){const r=this.seriesGroups[t],n=this.renderer;if(isNaN(t))return;let o=this._get([this.getXAxisDataPointOffset(e.xValue,t),e.x]),a=this._get([this.getValueAxisDataPointOffset(e.yValue,t),e.y]),i=this._get([this.getXAxisDataPointOffset(e.xValue2,t),e.x2]),s=this._get([this.getValueAxisDataPointOffset(e.yValue2,t),e.y2]);if(r.polar||r.spider){const r=this.getPolarDataPointOffset(e.xValue,e.yValue,t);!r||isNaN(r.x)||isNaN(r.y)?(o=e.x,a=e.y):(o=r.x,a=r.y)}if(isNaN(a)||isNaN(o))return!1;if("horizontal"===r.orientation){let t=o;o=a,a=t,t=i,i=s,s=t}e.offset&&(isNaN(e.offset.x)||(o+=e.offset.x,i+=e.offset.x),isNaN(e.offset.y)||(a+=e.offset.y,s+=e.offset.y));const l=this._get([e.width,i-o]),d=this._get([e.height,s-a]);let m,c;switch(e.type){case"rect":m=n.rect(o,a,l,d);break;case"circle":m=n.rect(o,a,e.radius);break;case"line":m=n.rect(o,a,i,s);break;case"path":m=n.path(e.path)}if(m&&n.attr(m,{fill:e.fillColor,stroke:e.lineColor,opacity:this._get([e.fillOpacity,e.opacity]),"stroke-opacity":this._get([e.lineOpacity,e.opacity]),"stroke-width":e.lineWidth,"stroke-dasharray":e.dashStyle||"none"}),e.text){const t=e.text;let r=0,i=0;t.offset&&(isNaN(t.offset.x)||(r+=t.offset.x),isNaN(t.offset.y)||(i+=t.offset.y)),c=n.text(t.value,o+r,a+i,NaN,NaN,t.angle,{},!0===t.clip,t.horizontalAlignment||"center",t.verticalAlignment||"center",t.rotationPoint||"centermiddle"),n.attr(c,{fill:t.fillColor,stroke:t.lineColor,class:"smart-chart-annotation-text "+(t.class||"")})}const h=["click","mouseenter","mouseleave"],u=this;for(let t=0;t<h.length;t++){const r=h[t];m&&this.renderer.addHandler(m,r,(function(){u._raiseAnnotationEvent(e,r)})),c&&this.renderer.addHandler(c,r,(function(){u._raiseAnnotationEvent(e,r)}))}},Smart.Chart.prototype._raiseAnnotationEvent=function(t,e){this.$.fireEvent("annotation"+e.charAt(0).toUpperCase()+e.slice(1),{annotation:t})})},2:function(t,e,r){(e=r(0)(!1)).push([t.i,"/* CSS variables */\r\n\r\n:root {\r\n --smart-primary-rgb: 0, 92, 153;\r\n /* The r, g, and b components of the theme primary color */\r\n --smart-primary: rgb(var(--smart-primary-rgb));\r\n /* The theme primary color */\r\n --smart-primary-color: #ffffff;\r\n /* Text color on top of a primary background */\r\n\r\n --smart-secondary-rgb: 45, 45, 48;\r\n /* The r, g, and b components of the theme secondary color */\r\n --smart-secondary: rgb(var(--smart-secondary-rgb));\r\n /* The theme secondary color */\r\n --smart-secondary-color: #ffffff;\r\n /* Text color on top of a secondary background */\r\n\r\n --smart-error-rgb: 176, 0, 32;\r\n /* The theme error color */\r\n --smart-error: rgb(var(--smart-error-rgb));\r\n /* The theme error color */\r\n --smart-error-color: #ffffff;\r\n /* Text color on top of a error background */\r\n\r\n --smart-success-rgb: 139, 195, 74;\r\n /* The r, g, and b components of the theme success color */\r\n --smart-success: rgb(var(--smart-success-rgb));\r\n /* The theme success color */\r\n --smart-success-color: #ffffff;\r\n /* Text color on top of a success background */\r\n\r\n --smart-info-rgb: 92, 192, 222;\r\n /* The r, g, and b components of the theme info color */\r\n --smart-info: rgb(var(--smart-info-rgb));\r\n /* The theme info color */\r\n --smart-info-color: #fff;\r\n /* Text color on top of a info background */\r\n\r\n --smart-warning-rgb: 240, 173, 78;\r\n /* The r, g, and b components of the theme warning color */\r\n --smart-warning: rgb(var(--smart-warning-rgb));\r\n /* The theme warning color */\r\n --smart-warning-color: #fff;\r\n /* Text color on top of a warning background */\r\n\r\n --smart-light-rgb: 255, 255, 255;\r\n /* The r, g, and b components of the theme light color */\r\n --smart-light: rgb(var(--smart-light-rgb));\r\n /* The theme light color */\r\n --smart-light-color: #222222;\r\n /* Text color on top of a light background */\r\n\r\n --smart-dark-rgb: 34, 34, 34;\r\n /* The r, g, and b components of the theme dark color */\r\n --smart-dark: rgb(var(--smart-dark-rgb));\r\n /* The theme dark color */\r\n --smart-dark-color: #ffffff;\r\n /* Text color on top of a dark background */\r\n\r\n --smart-background: #fefefe;\r\n /* The theme background color. The background color appears behind scrollable content.*/\r\n --smart-background-color: #5A5A5A;\r\n /* Text color on top of a background background */\r\n\r\n --smart-surface: #F5F5F5;\r\n /* The theme surface color. Surface colors affect surfaces of components, such as cards, sheets, and menus. */\r\n --smart-surface-color: #323232;\r\n /* Text color on top of a surface surface */\r\n\r\n --smart-disabled: #CCCCCC;\r\n /* The theme primary color in disabled state. */\r\n --smart-disabled-color: #555;\r\n /* Text color on top of a theme background in disabled state */\r\n\r\n --smart-ui-state-hover: #ebebeb;\r\n /* Hover state background. */\r\n --smart-ui-state-color-hover: #333;\r\n /* Text color, when UI Element's state is 'hover'. */\r\n --smart-ui-state-border-hover: var(--smart-ui-state-hover);\r\n /* Border color, when UI Element's state is 'hover'. */\r\n --smart-ui-state-active: var(--smart-primary);\r\n /* Active state background. */\r\n --smart-ui-state-color-active: var(--smart-primary-color);\r\n /* Text color, when UI Element's state is 'active'. */\r\n --smart-ui-state-border-active: var(--smart-primary);\r\n /* Border color, when UI Element's state is 'active'. */\r\n --smart-ui-state-focus: #e2e0e0;\r\n /* Focus state background. */\r\n --smart-ui-state-color-focus: #333;\r\n /* Text color, when UI Element's state is 'focus'. */\r\n --smart-ui-state-border-focus: var(--smart-ui-state-focus);\r\n /* Border color, when UI Element's state is 'focus'. */\r\n --smart-ui-state-selected: rgba(var(--smart-primary-rgb), .1);\r\n /* Selected state background. */\r\n --smart-ui-state-color-selected: var(--smart-primary);\r\n /* Text color, when UI Element's state is 'selected'. */\r\n --smart-ui-state-border-selected: rgba(var(--smart-primary-rgb), .1);\r\n /* Border color, when UI Element's state is 'selected'. */\r\n --smart-item-border-width: 1px;\r\n /* Theme border-width */\r\n --smart-item-border-radius: var(--smart-border-radius);\r\n /* Border radius of items. */\r\n --smart-item-border-top-left-radius: var(--smart-border-radius);\r\n /* Border top-left radius of items. */\r\n --smart-item-border-top-right-radius: var(--smart-border-radius);\r\n /* Border top-right radius of items. */\r\n --smart-item-border-bottom-left-radius: var(--smart-border-radius);\r\n /* Border bottom-left radius of items. */\r\n --smart-item-border-bottom-right-radius: var(--smart-border-radius);\r\n /* Border bottom-right radius of items. */\r\n --smart-font-size: 14px;\r\n /* Theme font-size */\r\n --smart-font-weight: inherit;\r\n /* Theme font-weight */\r\n --smart-font-style: inherit;\r\n /* Theme font-style */\r\n --smart-font-family: Roboto, \"Helvetica Neue\", sans-serif;\r\n /* Theme font-family */\r\n --smart-font-family-icon: smart-icons;\r\n /* Theme icons font-family. */\r\n --smart-font-family-icon-src: local('../font/smart-icons'), url('../font/smart-icons.woff2') format('woff2'), url('../font/smart-icons.woff') format('woff'), url('../font/smart-icons.ttf') format('truetype'), url('../font/smart-icons.eot') format('embedded-opentype');\r\n /* The source of the theme icons font-family */\r\n --smart-border-width: 1px;\r\n /* Theme border-width */\r\n --smart-border-radius: 4px;\r\n /* Theme border-radius */\r\n --smart-border-top-left-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border-top-right-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border-bottom-left-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border-bottom-right-radius: var(--smart-border-radius);\r\n /* Theme border-radius */\r\n --smart-border: #E0E0E0;\r\n /* The theme background border color */\r\n --smart-border-rgb: 244, 224, 224;\r\n /* The theme background border color */\r\n --smart-outline: #b2b2b2;\r\n /* The theme active element outline color */\r\n --smart-editor-selection: var(--smart-primary);\r\n /* Background color of the selected text. */\r\n --smart-editor-selection-color: var(--smart-primary-color);\r\n /* Color of the selected text. */\r\n --smart-alternation-index0-color: var(--smart-surface-color);\r\n /* Alternation color for index0 */\r\n --smart-alternation-index0-border: var(--smart-surface);\r\n /* Alternation border color for index0 */\r\n --smart-alternation-index0-background: var(--smart-surface);\r\n /* Alternation background color for index0 */\r\n --smart-alternation-index1-color: #111;\r\n /*Alternation color for index1 */\r\n --smart-alternation-index1-border: #9BBB59;\r\n /* Alternation border color for index1 */\r\n --smart-alternation-index1-background: #9BBB59;\r\n /* Alternation background color for index1 */\r\n --smart-alternation-index2-color: #fff;\r\n /*Alternation color for index2 */\r\n --smart-alternation-index2-border: #FC3752;\r\n /* Alternation border color for index2 */\r\n --smart-alternation-index2-background: #FC3752;\r\n /* Alternation background color for index2 */\r\n --smart-tick-color: var(--smart-border);\r\n /* Default tick color for smartTank, smartSlider and smartGauge */\r\n --smart-tick-label-color: var(--smart-background-color);\r\n /* Default tick label color for smartTank, smartSlider and smartGauge */\r\n --smart-box-height: 450px;\r\n /* Default height for Dialog, Gauge, Accordion, Tabs, Tree, Array */\r\n --smart-box-width: 450px;\r\n /* Default width for Dialog, Gauge, Accordion, Tabs, Tree, Array */\r\n --smart-bar-height: 48px;\r\n /* Default height for headers and footers */\r\n --smart-bar-width: 400px;\r\n /* Default width for headers and footers */\r\n --smart-editor-height: 30px;\r\n /* Default height for editors */\r\n --smart-editor-width: 250px;\r\n /* Default width for editors */\r\n --smart-editor-drop-down-width: 300px;\r\n /* Default width for editors drop-down */\r\n --smart-editor-drop-down-height: 400px;\r\n /* Default height for editors drop-down */\r\n --smart-editor-drop-down-padding-size: 3px;\r\n /* smartDropDownList, smartComboBox drop down default height */\r\n --smart-editor-drop-down-max-width: 800px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup max width */\r\n --smart-editor-drop-down-min-width: 100px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup min width */\r\n --smart-editor-drop-down-max-height: 400px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup max height */\r\n --smart-editor-drop-down-min-height: 50px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup min height */\r\n --smart-editor-drop-down-resize-bar-height: 15px;\r\n /* smartDropDownList, smartComboBox, smartTextBox popup resize bar default height */\r\n --smart-editor-drop-down-vertical-offset: 5px;\r\n /* Vertical offset of editor drop downs */\r\n --smart-editor-drop-down-z-index: 9999;\r\n /* z-index of editor drop downs */\r\n --smart-editor-label-padding: 4px;\r\n /* Default padding for inputs */\r\n --smart-editor-addon-width: 27px;\r\n /* Default width for spin buttons, dropdown buttons. */\r\n --smart-column-icon-size: 30px;\r\n /* Default size of column icons */\r\n --smart-icon-table: '\\e800';\r\n /* Code of table icon */\r\n --smart-icon-star: '\\e801';\r\n /* Code of star icon */\r\n --smart-icon-star-empty: '\\e802';\r\n /* Code of empty star icon */\r\n --smart-icon-plus: '\\e803';\r\n /* Code of plus icon */\r\n --smart-icon-minus: '\\e804';\r\n /* Code of minus icon */\r\n --smart-icon-attention-circled: '\\e805';\r\n /* Code of circled attention icon */\r\n --smart-icon-align-left: '\\e806';\r\n /* Code of align left icon */\r\n --smart-icon-align-right: '\\e807';\r\n /* Code of align right icon */\r\n --smart-icon-align-center: '\\e808';\r\n /* Code of align center icon */\r\n --smart-icon-align-justify: '\\e813';\r\n /* Code of align justify icon */\r\n --smart-icon-reload: '\\e809';\r\n /* Code of reload icon */\r\n --smart-icon-cancel: '\\e80d';\r\n /* Code of cancel icon */\r\n --smart-icon-close: '\\e80d';\r\n /* Code of close icon */\r\n --smart-icon-cancel-circled: '\\e80e';\r\n /* Code of circled cancel icon */\r\n --smart-icon-plus-circled: '\\e810';\r\n /* Code of circled plus icon */\r\n --smart-icon-power: '\\e811';\r\n /* Code of power icon */\r\n --smart-icon-minus-circled: '\\e814';\r\n /* Code of circled minus icon */\r\n --smart-icon-arrow-up-alt: '\\e817';\r\n /* Code of alternative up arrow icon */\r\n --smart-icon-radio: '\\e818';\r\n /* Code of radio icon */\r\n --smart-icon-refresh: '\\e819';\r\n /* Code of refresh icon */\r\n --smart-icon-chart: '\\e81a';\r\n /* Code of chart icon */\r\n --smart-icon-check-squared: '\\e81b';\r\n /* Code of squared check icon */\r\n --smart-icon-resize-full: '\\e81c';\r\n /* Code of full resize icon */\r\n --smart-icon-resize-small: '\\e81d';\r\n /* Code of small resize icon */\r\n --smart-icon-resize-vertical: '\\e80c';\r\n /* Code of vertical resize icon */\r\n --smart-icon-resize-horizontal: '\\e80f';\r\n /* Code of horizontal resize icon */\r\n --smart-icon-lock: '\\e821';\r\n /* Code of lock icon */\r\n --smart-icon-sort: '\\e823';\r\n /* Code of sort icon */\r\n --smart-icon-delete: '\\e826';\r\n /* Code of delete icon */\r\n --smart-icon-search: '\\e828';\r\n /* Code of search icon */\r\n --smart-icon-calendar: '\\e829';\r\n /* Code of calendar icon */\r\n --smart-icon-edit: '\\e82a';\r\n /* Code of edit icon */\r\n --smart-icon-popup: '\\e82c';\r\n /* Code of popup icon */\r\n --smart-icon-lock-open: '\\e82e';\r\n /* Code of open lock icon */\r\n --smart-icon-add-filter: '\\e82f';\r\n /* Code of add filter icon */\r\n --smart-icon-block: '\\e832';\r\n /* Code of block icon */\r\n --smart-icon-settings: '\\e833';\r\n /* Code of settings icon */\r\n --smart-icon-duplicate: '\\e834';\r\n /* Code of duplicate icon */\r\n --smart-icon-copy-record: '\\e835';\r\n /* Code of copy record icon */\r\n --smart-icon-download-alt: '\\e836';\r\n /* Code of alternative download icon */\r\n --smart-icon-clock: '\\e837';\r\n /* Code of clock icon */\r\n --smart-icon-attention: '\\e838';\r\n /* Code of attention icon */\r\n --smart-icon-help-circled: '\\e839';\r\n /* Code of circled help icon */\r\n --smart-icon-mail: '\\e83c';\r\n /* Code of mail icon */\r\n --smart-icon-up: '\\e83f';\r\n /* Code of up icon */\r\n --smart-icon-first-page: '\\e900';\r\n /* Code of first page icon */\r\n --smart-icon-arrow-down: '\\e901';\r\n /* Code of down arrow icon */\r\n --smart-icon-arrow-left: '\\e902';\r\n /* Code of left arrow icon */\r\n --smart-icon-arrow-right: '\\e903';\r\n /* Code of right arrow icon */\r\n --smart-icon-arrow-up: '\\e904';\r\n /* Code of up arrow icon */\r\n --smart-icon-arrow-down-filled: '\\e812';\r\n /* Code of filled down arrow icon */\r\n --smart-icon-arrow-left-filled: '\\e816';\r\n /* Code of filled left arrow icon */\r\n --smart-icon-arrow-right-filled: '\\e81e';\r\n /* Code of filled right arrow icon */\r\n --smart-icon-arrow-up-filled: '\\e815';\r\n /* Code of filled up arrow icon */\r\n --smart-icon-last-page: '\\e905';\r\n /* Code of last page icon */\r\n --smart-icon-more-horiz: '\\e906';\r\n /* Code of more icon */\r\n --smart-icon-skip-next: '\\e907';\r\n /* Code of skip next icon */\r\n --smart-icon-check: '\\e908';\r\n /* Code of check icon */\r\n --smart-icon-mode-edit: '\\e909';\r\n /* Code of edit mode icon */\r\n --smart-icon-replay: '\\e90c';\r\n /* Code of replay icon */\r\n --smart-icon-visibility: '\\e90d';\r\n /* Code of visibility icon */\r\n --smart-icon-visibility-off: '\\e90e';\r\n /* Code of visibility off icon */\r\n --smart-icon-link: '\\e831';\r\n /* Code of link icon */\r\n --smart-icon-unlink: '\\f127';\r\n /* Code of link icon */\r\n --smart-icon-link-ext: '\\f08e';\r\n /* Code of link icon */\r\n --smart-icon-check-empty: '\\f096';\r\n /* Code of empty check icon */\r\n --smart-icon-filter: '\\f0b0';\r\n /* Code of filter icon */\r\n --smart-icon-resize-full-alt: '\\f0b2';\r\n /* Code of full resize alternative icon */\r\n --smart-icon-menu: '\\f0c9';\r\n /* Code of menu icon */\r\n --smart-icon-sort-1: '\\f0dc';\r\n /* Code of sort alternative icon */\r\n --smart-icon-paste: '\\f0ea';\r\n /* Code of paste icon */\r\n --smart-icon-circle-empty: '\\f10c';\r\n /* Code of empty circle icon */\r\n --smart-icon-circle: '\\f111';\r\n /* Code of circle icon */\r\n --smart-icon-ellipsis: '\\f141';\r\n /* Code of ellipsis icon */\r\n --smart-icon-minus-squared: '\\f146';\r\n /* Code of squared minus icon */\r\n --smart-icon-ok-squared: '\\f14a';\r\n /* Code of squared ok icon */\r\n --smart-icon-sort-name-up: '\\f15d';\r\n /* Code of sort name up icon */\r\n --smart-icon-sort-name-down: '\\f15e';\r\n /* Code of sort name down icon */\r\n --smart-icon-sort-alt-up: '\\f160';\r\n /* Code of sort up alternative icon */\r\n --smart-icon-sort-alt-down: '\\f161';\r\n /* Code of sort down alternative icon */\r\n --smart-icon-sort-number-up: '\\f162';\r\n /* Code of sort number up icon */\r\n --smart-icon-sort-number-down: '\\f163';\r\n /* Code of sort number down icon */\r\n --smart-icon-dot-circled: '\\f192';\r\n /* Code of circled dot icon */\r\n --smart-icon-toggle-off: '\\f204';\r\n /* Code of toggle off icon */\r\n --smart-icon-toggle-on: '\\f205';\r\n /* Code of toggle on icon */\r\n --smart-icon-group: '\\f247';\r\n /* Code of group icon */\r\n --smart-icon-ungroup: '\\f248';\r\n /* Code of ungroup icon */\r\n --smart-icon-window-maximize: '\\f2d0';\r\n /* Code of maximize window icon */\r\n --smart-icon-window-minimize: '\\f2d1';\r\n /* Code of minimize window icon */\r\n --smart-icon-window-restore: '\\f2d2';\r\n /* Code of restore window icon */\r\n --smart-icon-window-pin-alt: '\\e82d';\r\n /* Code of pin window alternative icon */\r\n --smart-icon-window-pin: '\\e80a';\r\n /* Code of window pin icon */\r\n --smart-icon-docs: '\\f0c5';\r\n /* Code of docs icon */\r\n --smart-icon-pdf: '\\f1c1';\r\n /* Code of pdf icon */\r\n --smart-icon-excel: '\\f1C3';\r\n /* Code of excel icon */\r\n --smart-icon-word: '\\f1C2';\r\n /* Code of word icon */\r\n --smart-icon-archive: '\\f1C6';\r\n /* Code of zip icon */\r\n --smart-icon-file: '\\e845';\r\n /* Code of file icon */\r\n --smart-icon-powerpoint: '\\f1c4';\r\n /* Code of powerpoint icon */\r\n --smart-icon-text: '\\f0f6';\r\n /* Code of text icon */\r\n --smart-icon-math: '\\f01a';\r\n /* Code of math icon */\r\n --smart-icon-spin: '\\e80b';\r\n /* Code of spin icon */\r\n --smart-icon-user: '\\e81f';\r\n /* Code of user icon */\r\n --smart-icon-font: '\\f031';\r\n /* Code of font icon */\r\n --smart-icon-fontsize: '\\f088';\r\n /* Code of fontsize icon */\r\n --smart-icon-contains: '\\f063';\r\n /* Code of contains icon */\r\n --smart-icon-starts_with: '\\f064';\r\n /* Code of starts with icon */\r\n --smart-icon-ends_with: '\\f065';\r\n /* Code of ends with icon */\r\n --smart-icon-does_not_contain: '\\f066';\r\n /* Code of does not contain icon */\r\n --smart-icon-equals: '\\f52c';\r\n /* Code of equals icon */\r\n --smart-icon-greater-than: '\\f531';\r\n /* Code of greater than icon */\r\n --smart-icon-greater-than-equal: '\\f532';\r\n /* Code of greater than or equal icon */\r\n --smart-icon-less-than: '\\f536';\r\n /* Code of less than icon */\r\n --smart-icon-less-than-equal: '\\f537';\r\n /* Code of less than or equal icon */\r\n --smart-icon-not-equal: '\\f53e';\r\n /* Code of not equal icon */\r\n --smart-icon-percentage: '\\f541';\r\n /* Code of percentage icon */\r\n --smart-icon-grip-vertical: '\\f58e';\r\n /* Code of grip icon */\r\n --smart-icon-between: '\\f06a';\r\n /* Code of between icon */\r\n --smart-icon-bold: '\\e820';\r\n /* Code of bold icon */\r\n --smart-icon-italic: '\\e822';\r\n /* Code of italic icon */\r\n --smart-icon-underline: '\\f0cd';\r\n /* Code of underline icon */\r\n --smart-icon-strike-through: '\\f0cc';\r\n /* Code of strike-through icon */\r\n --smart-icon-list-ordered: '\\f0cb';\r\n /* Code of list numbered icon */\r\n --smart-icon-list-unordered: '\\f0ca';\r\n /* Code of list bullet icon */\r\n --smart-icon-subscript: '\\f12c';\r\n /* Code of subscript icon */\r\n --smart-icon-superscript: '\\f12b';\r\n /* Code of superscript icon */\r\n --smart-icon-color-background: '\\e830';\r\n /* Code of bucket icon */\r\n --smart-icon-indent-right: '\\e824';\r\n /* Code of indent icon */\r\n --smart-icon-indent-left: '\\e825';\r\n /* Code of outdent icon */\r\n --smart-icon-image: '\\e827';\r\n /* Code of image icon */\r\n --smart-icon-case-lower: 'aa';\r\n /* Code of lower case icon */\r\n --smart-icon-case-upper: 'AA';\r\n /* Code of upper case icon */\r\n --smart-icon-print: '\\e82b';\r\n /* Code of print icon */\r\n --smart-icon-format-clear: 'T';\r\n /* Code of clear format icon */\r\n --smart-icon-source-code: '\\f121';\r\n /* Code of source code icon */\r\n --smart-icon-split-mode: '\\e83b';\r\n /* Code of split mode icon */\r\n --smart-icon-cut: '\\e83a';\r\n /* Code of Cut icon */\r\n --smart-icon-video: '\\f16a';\r\n /* Code of YouTube video icon */\r\n --smart-icon-video-camera: '\\e840';\r\n /* Code of Bell icon */\r\n --smart-icon-bell: '\\f0f3';\r\n /* Code of video icon */\r\n --smart-icon-header: '\\f1dc';\r\n /* Code of Table Header */\r\n --smart-icon-row: '\\f0db';\r\n /* Code of Table Row icon */\r\n --smart-icon-row-before: '\\f2d0';\r\n /* Code of Table Row icon */\r\n --smart-icon-row-after: '\\f2d0';\r\n /* Code of Table Row icon */\r\n --smart-icon-row-delete: var(--smart-icon-cancel-circled);\r\n /* Code of Table Row icon */\r\n --smart-icon-column: '\\f0db';\r\n /* Code of Table Column icon */\r\n --smart-icon-column-left: '\\f2d0';\r\n /* Code of Table Column left insert icon */\r\n --smart-icon-column-right: '\\f2d0';\r\n /* Code of Table Column right insert icon */\r\n --smart-icon-column-delete: var(--smart-icon-cancel-circled);\r\n /* Code of Table Column delete icon */\r\n --smart-icon-vertical-align: '\\f06a \\e80c';\r\n /* Code of Table Vertical Align icon */\r\n --smart-icon-styles: '\\f1fc';\r\n /* Code of Table Styles icon */\r\n --smart-icon-comment: '\\F0E5';\r\n /* Code of Comment icon */\r\n --smart-icon-card: '\\E83E';\r\n /* Code of Card icon */\r\n --smart-icon-tasks: '\\F0AE';\r\n /* Code of Tasks icon */\r\n --smart-icon-phone: '\\E83D';\r\n /* Code of Phone icon */\r\n --smart-icon-kanban: '\\F181';\r\n /* Code of Kanban icon */\r\n --smart-icon-table-alt: '\\F0CE';\r\n /* Code of Table icon */\r\n --smart-icon-zoom-in: '\\E841';\r\n /* Code of Zoom In icon */\r\n --smart-icon-zoom-out: '\\E842';\r\n /* Code of Zoom Out icon */\r\n --smart-icon-move: '\\F047';\r\n /* Code of Move icon */\r\n --smart-icon-home: '\\E843';\r\n /* Code of Home icon */\r\n /* Accordion */\r\n --smart-accordion-animation-duration: 225ms;\r\n /* smartAccordion animation duration */\r\n --smart-accordion-default-width: var(--smart-box-width);\r\n /* smartAccordion default width */\r\n --smart-accordion-default-height: var(--smart-box-height);\r\n /* smartAccordion default height */\r\n --smart-accordion-expanded-content-height: 0px;\r\n /* Determines expanded content's height */\r\n --smart-accordion-expanded-content-local-height: 0px;\r\n /* The height of an expanded item content part. Calculated dynamically for each item. Used in all modes except 'singleFitHeight'. */\r\n --smart-accordion-item-header-height: var(--smart-bar-height);\r\n /* Element's header height. Used in several calcilations related to items height. */\r\n --smart-accordion-item-expanded-offset: 20px;\r\n /* An offset below each expanded accordion item. */\r\n /* Array */\r\n --smart-array-default-width: var(--smart-box-width);\r\n /* smartArray default width */\r\n --smart-array-default-height: var(--smart-box-height);\r\n /* smartArray default height */\r\n --smart-array-element-gap: 3px;\r\n /* smartArray element gap size */\r\n /* Breadcrumb */\r\n --smart-breadcrumb-default-width: 400px;\r\n /* smartBreadcrumb default width */\r\n --smart-breadcrumb-default-height: auto;\r\n /* smartBreadcrumb default height */\r\n --smart-breadcrumb-padding: 10px;\r\n /* Padding of smart-breadcrumb and vertical offset between smartBreadcrumb items */\r\n --smart-breadcrumb-drop-down-width: var(--smart-editor-drop-down-width);\r\n /* Width of smartBreadcrumb dropdown in minimized mode */\r\n --smart-breadcrumb-item-height: 40px;\r\n /* Height of smartBreadcrumb items */\r\n --smart-breadcrumb-horizontal-offset: 10px;\r\n /* Horizontal offset between smartBreadcrumb items */\r\n /* Button - Default */\r\n --smart-button-text-transform: uppercase;\r\n /* Controls the capitalization of button's text. Could be set as uppercase/lowercase/capitalize. */\r\n --smart-button-padding: 8px 16px;\r\n /* Sets button's paddings. */\r\n --smart-button-large-padding: 10px 16px;\r\n /* Sets large button's paddings. */\r\n --smart-button-large-font-size: 18px;\r\n /* Sets large button's font size. */\r\n --smart-button-small-padding: 5px 10px;\r\n /* Sets small button's paddings. */\r\n --smart-button-small-font-size: 12px;\r\n /* Sets small button's font size. */\r\n --smart-button-very-small-padding: 3px 5px;\r\n /* Sets very small button's paddings. */\r\n --smart-button-very-small-font-size: 10px;\r\n /* Sets very small button's font size. */\r\n /* Button - Flat */\r\n --smart-button-flat-color: var(--smart-background-color);\r\n /* The color of the flat button. */\r\n /* Button - Outlined */\r\n --smart-button-outlined-color: var(--smart-background-color);\r\n /* The color of the outlined button. */\r\n --smart-button-outlined-border: var(--smart-border);\r\n /* The border of the outlined button. */\r\n /* Button Group */\r\n --smart-button-group-default-width: auto;\r\n --smart-button-group-default-height: auto;\r\n /* Calendar */\r\n --smart-calendar-header-height: calc(0.75 * var(--smart-bar-height));\r\n /* Default height for smartCalendar's header section */\r\n --smart-calendar-footer-height: calc(0.75 * var(--smart-bar-height));\r\n /* Default height for smartCalendar's footer section */\r\n --smart-calendar-title-height: calc(1.25 * var(--smart-bar-height));\r\n /* Default height for calendar's title. */\r\n --smart-calendar-cell-size: 30px;\r\n /* Default size of calendar's cell. */\r\n --smart-calendar-cell-spacing: 4px;\r\n /* Defines calendar's cell spacing. */\r\n --smart-calendar-default-width: calc(50px + var(--smart-calendar-cell-spacing) + 7 * (var(--smart-calendar-cell-spacing) + var(--smart-calendar-cell-size)));\r\n /* smartCalendar default width */\r\n --smart-calendar-default-height: calc(var(--smart-calendar-cell-spacing) + 7 * (var(--smart-calendar-cell-spacing) + var(--smart-calendar-cell-size)) + var(--smart-calendar-header-height));\r\n /* smartCalendar default height */\r\n --smart-calendar-title-text-transform: initial;\r\n /* Controls the capitalization of the title text. */\r\n --smart-calendar-week-title-text-transform: uppercase;\r\n /* Controls the capitalization of the week title. */\r\n --smart-calendar-header-text-transform: uppercase;\r\n /* Controls the capitalization of the header text. */\r\n --smart-calendar-footer-text-transform: uppercase;\r\n /* Controls the capitalization of the footer text. */\r\n --smart-calendar-cell-border-top-right-radius: 15px;\r\n /* Defines cell's top-right border radius. */\r\n --smart-calendar-cell-border-top-left-radius: 15px;\r\n /* Defines cell's top-left border radius. */\r\n --smart-calendar-cell-border-bottom-left-radius: 15px;\r\n /* Defines cell's bottom-left border radius. */\r\n --smart-calendar-cell-border-bottom-right-radius: 15px;\r\n /* Defines cell's bottom-right border radius. */\r\n --smart-calendar-title-padding: 10px;\r\n /* Defines title's padding */\r\n --smart-calendar-important-date-background: var(--smart-ui-state-hover);\r\n /* Defines title's padding */\r\n --smart-calendar-important-date-color: var(--smart-ui-state-color-hover);\r\n /* Defines title's padding */\r\n --smart-calendar-important-date-border-color: var(--smart-ui-state-border-hover);\r\n /* Defines title's padding */\r\n --smart-calendar-navigation-button-size: 30px;\r\n /* Sets the size for the navigation buttons */\r\n /* CardView */\r\n --smart-card-view-default-width: 1200px;\r\n /* Default width of CardView. */\r\n --smart-card-view-default-height: 800px;\r\n /* Default height of CardView. */\r\n --smart-card-view-header-height: 30px;\r\n /* Height of the CardView header */\r\n --smart-card-view-cover-height: var(--smart-carousel-default-height);\r\n /* Height of CardView cover (carousel). */\r\n --smart-card-view-vertical-offset: 15px;\r\n /* Vertical offset of CardView. */\r\n --smart-card-view-column-min-width: 250px;\r\n /* Min width of CardView visual columns. */\r\n --smart-card-view-gap: 10px;\r\n /* Gap between CardView cards. */\r\n --smart-card-view-add-new-button-size: 60px;\r\n /* Size of the 'Add new record' (+) button. */\r\n /* Carousel */\r\n --smart-carousel-default-width: 600px;\r\n /* default width of the element */\r\n --smart-carousel-default-height: 200px;\r\n /* default height of the element */\r\n --smart-carousel-3d-mode-slide-width: 400px;\r\n /* default width of a slide in 3d mode */\r\n --smart-carousel-3d-mode-slide-height: 400px;\r\n /* default height of a slide in 3d mode */\r\n --smart-carousel-multiple-mode-slide-width: 200px;\r\n /* default width of a slide in multiple mode*/\r\n /* Chart */\r\n --smart-chart-default-width: 850px;\r\n /* default width of the element */\r\n --smart-chart-default-height: 500px;\r\n /* default height of the element */\r\n /* Check Box */\r\n --smart-check-box-default-size: calc(1px + 1/2 * var(--smart-editor-height));\r\n /* Default size for the check box used in smartCheckBox and smartListItem. */\r\n /* ColorPanel*/\r\n --smart-color-panel-default-width: auto;\r\n /* smartColorPanel default width ; was 450px*/\r\n --smart-color-panel-default-height: auto;\r\n /* smartColorPanel default height ; was 370px */\r\n --smart-color-panel-palette-size: 300px;\r\n /* smartColorPanel palette size */\r\n --smart-color-panel-grid-mode-item-size: 20px;\r\n /* smartColorPanel item size */\r\n /*was 40px*/\r\n --smart-color-panel-grid-mode-column-count: 8;\r\n /* smartColorPanel column count */\r\n --smart-color-panel-grid-mode-columns-gap: 1px;\r\n /* smartColorPanel column gap size */\r\n --smart-color-panel-brightness: 0;\r\n /* smartColorPanel brightness */\r\n --smart-color-panel-default-mode-sections-gap: 8px;\r\n /* smartColorPanel gap size in default mode */\r\n --smart-color-panel-palette-width: var(--smart-color-panel-palette-size);\r\n /* smartColorPanel palette width */\r\n --smart-color-panel-palette-height: var(--smart-color-panel-palette-size);\r\n /* smartColorPanel palette height */\r\n --smart-color-panel-alpha-channel-color: white;\r\n /* Used as a default color for the Alpha Scale */\r\n /* ColorPicker*/\r\n --smart-color-picker-default-width: var(--smart-editor-width);\r\n /* smartColorPicker default width */\r\n --smart-color-picker-default-height: var(--smart-editor-height);\r\n /* smartColorPicker default height */\r\n --smart-color-picker-drop-down-width: auto;\r\n /* smartColorPicker default width */\r\n --smart-color-picker-drop-down-height: auto;\r\n /* smartColorPicker default height */\r\n /* ComboBox */\r\n --smart-combo-box-default-width: var(--smart-editor-width);\r\n /* smartComboBox default width */\r\n --smart-combo-box-default-height: var(--smart-editor-height);\r\n /* smartComboBox default height */\r\n --smart-combo-box-drop-down-width: auto;\r\n /* smartComboBox default width */\r\n --smart-combo-box-drop-down-height: auto;\r\n /* smartComboBox default height */\r\n /* Chip */\r\n --smart-chip-default-height: var(--smart-editor-height);\r\n /* Default chips height */\r\n --smart-chip-avatar-background: var(--smart-secondary);\r\n /* Default avatar background color */\r\n /* Currency format panel */\r\n --smart-currency-format-panel-currency-holder-width: 1fr;\r\n --smart-currency-format-panel-apply-button-width: 125px;\r\n --smart-currency-format-panel-header-holder-offset: 2%;\r\n --smart-currency-format-panel-currency-holder-input-width: 1fr;\r\n --smart-currency-format-panel-currency-holder-dropdown-width: 165px;\r\n --smart-currency-format-panel-currency-holder-dropdown-button-width: 95%;\r\n --smart-currency-format-panel-border-size: 1px;\r\n --smart-currency-format-panel-border-color: #ccc;\r\n --smart-currency-format-panel-border-radius: 4px;\r\n --smart-currency-format-panel-currencies-margin-top: 15px;\r\n --smart-currency-format-panel-currencies-max-height: 400px;\r\n --smart-currency-format-panel-currencies-item-padding: 12px;\r\n --smart-currency-format-panel-currency-holder-padding-left: 5px;\r\n --smart-currency-format-panel-currency-holder-padding-top: 3px;\r\n --smart-currency-format-panel-currency-holder-padding-bottom: 3px;\r\n --smart-currency-format-panel-currency-input-width: 100%;\r\n --smart-currency-format-panel-currencies-left-padding: 10px;\r\n --smart-currency-format-panel-currencies-hover-background: #f1f1f1;\r\n --smart-currency-format-panel-currencies-example-format-color: #777;\r\n /* DataView - Common for CardView and Kanban */\r\n --smart-data-view-padding: 10px;\r\n /* Padding of the CardView and Kanban */\r\n --smart-data-view-customize-panel-width: 320px;\r\n /* Width of the CardView and Kanban customize panel (drop down). */\r\n --smart-data-view-filter-panel-width: 550px;\r\n /* Width of the CardView and Kanban filter panel (drop down). */\r\n --smart-data-view-sort-panel-width: 470px;\r\n /* Width of the CardView and Kanban sort panel (drop down). */\r\n --smart-data-view-search-panel-width: 250px;\r\n /* Width of the CardView and Kanban search panel (drop down). */\r\n /* Date Format Panel */\r\n --smart-date-format-panel-main-container-width: 960px;\r\n /* Main container */\r\n --smart-date-format-panel-main-container-padding: 15px;\r\n --smart-date-format-panel-border-radius: 4px;\r\n /* Default styles */\r\n --smart-date-format-panel-border-size: 1px;\r\n --smart-date-format-panel-border-color: #ccc;\r\n --smart-date-format-panel-smart-inputs-container-width: 1fr;\r\n /* Input and add format holder */\r\n --smart-date-format-panel-apply-container-width: 150px;\r\n --smart-date-format-panel-smart-input-buttons-column-gap: 2%;\r\n --smart-date-format-panel-smart-inputs-holder-width: 94%;\r\n /* Input and add format holder child */\r\n --smart-date-format-panel-add-format-holder-width: 6%;\r\n --smart-date-format-panel-smart-inputs-list-holder-offset: 2px;\r\n --smart-date-format-panel-smart-input-format-width: 150px;\r\n /* Smart inputs */\r\n --smart-date-format-panel-smart-input-sign-width: 80px;\r\n --smart-date-format-panel-smart-input-height: 25px;\r\n --smart-date-format-panel-each-smart-input-offset: 4px;\r\n --smart-date-format-panel-all-format-holders-width: 255px;\r\n --smart-date-format-panel-add-format-holder-button: 120px;\r\n --smart-date-format-panel-each-add-format-holder-width: 120px;\r\n /* Add new format */\r\n --smart-date-format-panel-add-new-format-dropdown-offset: 5px;\r\n --smart-date-format-panel-date-time-format-list-offset-top: 15px;\r\n /* Format list */\r\n --smart-date-format-panel-date-time-format-list-max-height: 400px;\r\n --smart-date-format-panel-each-date-time-format-offset: 12px;\r\n /* Date Time Picker */\r\n --smart-date-time-picker-default-width: var(--smart-editor-width);\r\n /* smartDateTimePicker default width */\r\n --smart-date-time-picker-default-height: var(--smart-editor-height);\r\n /* smartDateTimePicker default height */\r\n --smart-date-time-picker-header-opacity: 0.8;\r\n /* Opacity of header elements */\r\n --smart-date-time-picker-header-opacity-active: 1;\r\n /* Opacity of header elements when selected */\r\n --smart-date-time-picker-drop-down-width: var(--smart-editor-drop-down-height);\r\n /* smartDropDownList drop down width */\r\n --smart-date-time-picker-drop-down-height: auto;\r\n /* smartDropDownList drop down height */\r\n /*DockingLayout*/\r\n --smart-docking-layout-default-width: 1000px;\r\n /* smartDropDownList, smartComboBox default width */\r\n --smart-docking-layout-default-height: 800px;\r\n /* smartDropDownList, smartComboBox default height */\r\n --smart-docking-layout-feedback-background-secondary-size: 7px;\r\n /* The size of the arrows of the advanced snapping highlighters that show possible drop position of the dragged item. */\r\n /*DropDownList*/\r\n --smart-drop-down-list-default-width: var(--smart-editor-width);\r\n /* smartDropDownList, smartComboBox default width */\r\n --smart-drop-down-list-default-height: var(--smart-editor-height);\r\n /* smartDropDownList, smartComboBox default height */\r\n --smart-drop-down-list-drop-down-width: initial;\r\n /* smartDropDownList drop down width */\r\n --smart-drop-down-list-drop-down-height: auto;\r\n /* smartDropDownList drop down height */\r\n /* DropDownButton */\r\n --smart-drop-down-button-default-width: auto;\r\n /* smartDropDownButton default width */\r\n --smart-drop-down-button-default-height: var(--smart-editor-height);\r\n /* smartDropDownButton default height */\r\n --smart-drop-down-button-drop-down-width: var(--smart-editor-drop-down-width);\r\n /* smartDropDownButton drop down width */\r\n --smart-drop-down-button-drop-down-height: var(--smart-editor-drop-down-height);\r\n /* smartDropDownButton drop down height */\r\n /* Editor */\r\n --smart-editor-default-width: 100%;\r\n /* smartEditor default width */\r\n --smart-editor-default-height: 600px;\r\n /* smartEditor default height */\r\n --smart-editor-input-min-height: 100px;\r\n /* smartEditor input min height */\r\n --smart-editor-padding: 15px;\r\n /* smartEditor padding */\r\n --smart-editor-toolbar-item-margin: 5px;\r\n /* smartEditor toolbar item margin */\r\n --smart-editor-toolbar-button-width: 30px;\r\n /* smartEditor toolbar button width */\r\n --smart-editor-toolbar-delimiter-width: 5px;\r\n /* smartEditor toolbar delimiter items width */\r\n --smart-editor-toolbar-drop-down-width-large: 100px;\r\n /* smartEditor wider drop down toolbar items like - format, fontname, etc. */\r\n --smart-editor-toolbar-drop-down-width-small: 65px;\r\n /* smartEditor all drop down toolbar items default width */\r\n --smart-editor-window-header-height: var(--smart-scheduler-window-header-height);\r\n /* smartEditor Dialog Window header height */\r\n --smart-editor-window-footer-height: var(--smart-scheduler-window-footer-height);\r\n /* smartEditor Dialog Window footer height */\r\n --smart-editor-inline-toolbar-max-width: 80vw;\r\n /* smartEditor Inline toolbar max width */\r\n --smart-editor-table-column-width: initial;\r\n /* smartEditor table column default width */\r\n --smart-editor-table-cell-min-height: 20px;\r\n /* smartEditor table cell defaut min height */\r\n --smart-editor-table-cell-min-width: var(--smart-editor-table-cell-min-height);\r\n /* smartEditor table cell default min width */\r\n --smart-editor-char-counter-offset: 30px;\r\n /* smartEditor char count offset from the edges of the element */\r\n --smart-editor-toolbar-item-height: 30px;\r\n /* smartEditor default toolbar item height */\r\n --smart-editor-toolbar-item-border-radius: var(--smart-border-radius);\r\n /* smartEditor toolbar item border radius */\r\n --smart-editor-toolbar-height: calc(var(--smart-editor-toolbar-item-height) + 2 * var(--smart-editor-toolbar-item-margin));\r\n /* smartEditor toolbar height */\r\n --smart-editor-highlight: var(--smart-primary);\r\n /* smartEditor Find and Replace highlight color */\r\n --smart-editor-highlight-color: var(--smart-primary-color);\r\n /* smartEditor highligh text color */\r\n --smart-editor-search-bar-offset: 5px;\r\n /* smartEditor search bar offset */\r\n --smart-editor-search-bar-padding: 5px;\r\n /* smartEditor search bar padding */\r\n /* Filter Builder */\r\n --smart-filter-builder-default-width: var(--smart-box-width);\r\n /* Default width of the smartFilterBuilder*/\r\n --smart-filter-builder-default-height: var(--smart-box-height);\r\n /* Default height of the smartFilterBuilder*/\r\n --smart-filter-builder-row-height: var(--smart-editor-height);\r\n /* Default height of the smartFilterBuilder's rows*/\r\n --smart-filter-builder-item-width: var(--smart-editor-width);\r\n /* Default width of the smartFilterBuilder's button items*/\r\n --smart-filter-builder-group-container-border: 4px;\r\n --smart-filter-builder-item-margin: 20px;\r\n --smart-filter-builder-group-condition-margin: 5px;\r\n --smart-filter-builder-group-margin: 15px;\r\n /* Filter Panel */\r\n --smart-filter-panel-default-width: 300px;\r\n /* Default width of the smartFilterPanel */\r\n --smart-filter-panel-default-height: auto;\r\n /* Default height of the smartFilterPanel */\r\n --smart-filter-panel-padding: 10px;\r\n /* padding of the smartFilterPanel */\r\n --smart-filter-panel-border-top-right-radius: var(--smart-border-radius);\r\n /* smartFilterPanel top-right border radius */\r\n --smart-filter-panel-border-top-left-radius: var(--smart-border-radius);\r\n /* smartFilterPanel top-left border radius */\r\n --smart-filter-panel-border-bottom-left-radius: var(--smart-border-radius);\r\n /* smartFilterPanel bottom-left border radius */\r\n --smart-filter-panel-border-bottom-right-radius: var(--smart-border-radius);\r\n /* smartFilterPanel bottom-right border radius */\r\n --smart-filter-panel-border-width: var(--smart-border-width);\r\n /* smartFilterPanel border width */\r\n --smart-filter-panel-border: var(--smart-border);\r\n /* smartFilterPanel border color */\r\n --smart-filter-panel-background: var(--smart-background);\r\n /* smartFilterPanel background color */\r\n --smart-filter-panel-color: var(--smart-background-color);\r\n /* smartFilterPanel text color */\r\n --smart-filter-panel-vertical-offset: 10px;\r\n /* Vertical offset between smartFilterPanel sub-elements */\r\n --smart-filter-panel-main-element-height: 400px;\r\n /* height of the smartTree inside the smartFilterPanel */\r\n /* File Upload */\r\n --smart-file-upload-default-width: var(--smart-editor-width);\r\n /* Default width of the smartFileUpload*/\r\n --smart-file-upload-browse-button-width: auto;\r\n /* Default width of the browse button*/\r\n --smart-file-upload-browse-button-height: auto;\r\n /* Default height of the browse button*/\r\n --smart-file-upload-footer-button-width: auto;\r\n /* Default height of the smartFileUpload's footer buttons*/\r\n --smart-file-upload-footer-button-height: auto;\r\n /* Default height of the smartFileUpload's footer buttons*/\r\n --smart-file-upload-text-content-uploading-start: \"Connecting ...\";\r\n /* Default text content of the pseudo element shown when upload starts. */\r\n --smart-file-upload-text-content-uploading: \"Uploading ...\";\r\n /* Default text content of the pseudo element shown during the upload. */\r\n --smart-file-upload-text-content-error: \"Upload error!\";\r\n /* Default text content of the pseudo element shown on error. */\r\n --smart-file-upload-text-content-pause: \"Upload paused!\";\r\n /* Default text content of the pseudo element shown when upload is paused. */\r\n --smart-file-upload-text-content-drop-zone: \"Drag files here\";\r\n /* Default text content of the pseudo element shown where is the drop zone. */\r\n --smart-file-upload-text-content-drop-zone-over: \"Drop here \\e824\";\r\n /* Default text content of the pseudo element shown when dragged files are over the drop zone. */\r\n --smart-file-upload-container-min-height: 60px;\r\n /* Sets minimmum height of the drop zone and file zone containers. */\r\n --smart-file-upload-total-files-min-height: 20px;\r\n /* Sets min height of the container where total numbers of items is displayed. */\r\n --smart-file-upload-drop-zone-height: 100%;\r\n /* Sets min height of the container where total numbers of items is displayed. */\r\n /* Gantt Chart */\r\n --smart-gantt-chart-resource-splitter-bar-fit-size: calc(var(--smart-gantt-chart-resource-timeline-content-height) + var(--smart-gantt-chart-task-default-height));\r\n /* The fit size of all Resource Splitter bar inside the Resource Panel of the element*/\r\n --smart-gantt-chart-task-splitter-bar-fit-size: var(--smart-gantt-chart-task-timeline-content-height);\r\n /* The fit size of all Splitter bar inside the element*/\r\n --smart-gantt-chart-task-default-height: 30px;\r\n /* The height of a Task inside the Timeline */\r\n --smart-gantt-chart-header-height: var(--smart-gantt-chart-task-default-height);\r\n /* The height of the header of the Task and Resource Panels */\r\n --smart-gantt-chart-task-bar-fill-padding: 5px;\r\n /* The padding of the Fill of the Task Bar */\r\n --smart-gantt-chart-task-label-padding: 2px var(--smart-gantt-chart-task-bar-fill-padding);\r\n /* */\r\n --smart-gantt-chart-task-thumb-color: rgba(0, 0, 0, .55);\r\n /* The color of the thumb */\r\n --smart-gantt-chart-task-progress-color: rgba(0, 0, 0, .15);\r\n /* #2d75f5 */\r\n /* The default color of the progress fill of all Tasks inside the Timeline */\r\n --smart-gantt-chart-project-color: #ffa558;\r\n /* #38a238*/\r\n /* The defaut color for all Project tasks */\r\n --smart-gantt-chart-project-label-color: #333;\r\n /* Determines the label color of the project tasks inside the Timeline. */\r\n --smart-gantt-chart-project-label-color-selected: #000;\r\n /* Determines the label color of the project tasks inside the Timeline when selected. */\r\n --smart-gantt-chart-project-progress-color: var(--smart-gantt-chart-task-progress-color);\r\n /* #008000 */\r\n /* The default color of the progress fill for all Project tasks */\r\n --smart-gantt-chart-task-color: rgb(43, 195, 190);\r\n /* #6495ed */\r\n /* The default color of a Task inside the Timeline */\r\n --smart-gantt-chart-milestone-color: #800080;\r\n /* The default color for all Milestones */\r\n --smart-gantt-chart-timeline-task-background-color: transparent;\r\n /* Determines the background color of the tasks(rows) inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-feedback-color: #e6510a;\r\n /* orange */\r\n /* Determines the default color of the feedback that is shows when creating a connection between tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-feedback-width: 1px;\r\n /* Determines the default width of the feedback that is shows when creating a connection between tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-feedback-style: dashed;\r\n /* Determines the style of the feedback that is shows when creating a connection between tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-color: var(--smart-gantt-chart-timeline-task-connection-feedback-color);\r\n /* Determines the color of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-color-hover: var(--smart-gantt-chart-timeline-task-connection-color);\r\n /* Determines the color on hover of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-width: var(--smart-gantt-chart-timeline-task-connection-feedback-width);\r\n /* Determines the width of the connections between the tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-style: solid;\r\n /* Determines the style of the connections between the tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-arrow-type: solid;\r\n /* Determines the border type of the arrow of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-connection-arrow-width: 5px;\r\n /* Determines the width of the arrow of the connections between Tasks inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-resize-indicator-width: 4px;\r\n /* Determines the defualt width of the resize indicator of the Task bars inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-resize-indicator-color: #fff;\r\n /* Determines the background-color of the resize indicators of the Task bars insinde the Timeline. */\r\n --smart-gantt-chart-timeline-task-resize-indicator-border-color: #333;\r\n /* Determines the border-color of the resize indicator of the Task bars inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-progress-thumb-size: 10px;\r\n /* Determines the size of the thumb controlling the progress of a Task inside the Timeline. */\r\n --smart-gantt-chart-timeline-cell-size: auto;\r\n /* Determines the default width of the cells inside the Timeline. */\r\n --smart-gantt-chart-timeline-cell-min-size: 70px;\r\n /* Determines the default min-width of the cells inside the Timeline. */\r\n --smart-gantt-chart-timeline-task-min-width: 5px;\r\n /* Determines the default min-width of the Tasks insinde the Timeline. Not applicable to Milestone tasks. */\r\n --smart-gantt-chart-timeline-weekend-color: #EFF5FD;\r\n /* Determines the default background color of the 'weekend' cells insinde the Timeline. */\r\n --smart-gantt-chart-timeline-nonworking-color: #F5F5F5;\r\n /* Determines the default background-color of the nonworking days/hours inside the Timeline. */\r\n --smart-gantt-chart-default-width: auto;\r\n /* Determines the default width of the element. */\r\n --smart-gantt-chart-default-height: 600px;\r\n /* Determines the height of the element. */\r\n --smart-gantt-chart-task-popup-window-default-width: 60vw;\r\n /* Determines the width of the task editing popup windows of the element. */\r\n --smart-gantt-chart-connection-popup-window-default-width: 300px;\r\n /* Determines the width of the connection editing popup windows of the element. */\r\n --smart-gantt-chart-confirm-popup-window-default-width: var(--smart-gantt-chart-connection-popup-default-width);\r\n /* Determines the width of the confirm popup window of the element. */\r\n --smart-gantt-chart-popup-window-header-height: 35px;\r\n /* Determines the height of the header of the popup windows inside the element. */\r\n --smart-gantt-chart-popup-window-footer-height: 50px;\r\n /* Determines the height of the footer of the popup windows insinde the element. */\r\n --smart-gantt-chart-header-placeholder: ' - ';\r\n /* Placeholder for thea Header sections when there're no items */\r\n --smart-gantt-chart-progress-label-padding: 0 10px 0 10px;\r\n /* Task progress label padding */\r\n --smart-gantt-chart-filter-row-height: 30px;\r\n /* Sets a box shadow to the Task Timeline header */\r\n --smart-gantt-chart-task-fill-border-radius: 0;\r\n /* Sets the default border radius for the Timeline task bars */\r\n --smart-gantt-chart-segment-link-color: var(--smart-gantt-chart-task-color);\r\n /* Determines the color of the link between the task segments */\r\n --smart-gantt-chart-segment-link-size: var(--smart-border-width);\r\n /* Determines the height of the link between the task segments */\r\n --smart-gantt-chart-date-marker-color: var(--smart-primary);\r\n /* Determines the color of the date markers */\r\n --smart-gantt-chart-date-marker-height: 25px;\r\n /* Determines the background of the date markers */\r\n --smart-gantt-chart-date-marker-width: var(--smart-border-width);\r\n /* Determines the width of the date markers */\r\n --smart-gantt-chart-date-marker-background: var(--smart-primary);\r\n /* Determines the background of the date markers */\r\n --smart-gantt-chart-date-marker-color: var(--smart-primary-color);\r\n /* Determines the background of the date markers */\r\n --smart-gantt-chart-date-marker-v-offset: 15%;\r\n /* Determines the vertical position of the date markers */\r\n --smart-gantt-chart-date-marker-h-offset: 10px;\r\n /* Determines the horizontal offset of the date markers */\r\n --smart-gantt-chart-indicator-icon: initial;\r\n /* Determines the task indicator icon */\r\n --smart-gantt-chart-deadline-icon: var(--smart-icon-attention-circled);\r\n /* Determines the icon for the task deadline */\r\n --smart-gantt-chart-deadline-color: var(--smart-error);\r\n /* Determines the color for the task deadline icon */\r\n --smart-gantt-chart-baseline-proportion: 2;\r\n /* Determines the proportion of the baseline compared to the task height */\r\n --smart-gantt-chart-baseline-background: rgba(166, 205, 87, .5);\r\n /* Determines the background color of the task baseline */\r\n --smart-gantt-chart-progress-label-width: 60px;\r\n /* Determines the task progress label width */\r\n --smart-gantt-chart-current-time-indicator-size: 1px;\r\n /* Determines the current time indicator width */\r\n --smart-gantt-chart-current-time-indicator-background: var(--smart-primary);\r\n /* Determines the current time indicator background */\r\n --smart-gantt-chart-current-time-indicator-arrow-size: 7px;\r\n /* Determines the arrow size of the curernt time indicator */\r\n --smart-gantt-chart-current-time-indicator-header-size: 2px;\r\n /* Determines the current time indicator size inside the timeline header cell */\r\n --smart-gantt-chart-shader-background: rgba(var(--smart-border-rgb), .5);\r\n /* Determines the current time shader background color */\r\n\r\n /* Gauge */\r\n --smart-gauge-default-width: var(--smart-box-width);\r\n /* smartGauge default width */\r\n --smart-gauge-default-height: var(--smart-box-height);\r\n /* smartgauge default height */\r\n --smart-gauge-track-border: var(--smart-border);\r\n /* Track's border color */\r\n --smart-gauge-track-background: var(--smart-background);\r\n /* Track's background color */\r\n --smart-gauge-needle-background: var(--smart-primary);\r\n /* Needle's background color */\r\n --smart-gauge-label-fill-state: initial;\r\n /* Fill color of labels */\r\n --smart-gauge-label-stroke: initial;\r\n /* Stroke color of labels */\r\n /* Grid */\r\n --smart-grid-default-width: 800px;\r\n /* Used to set the default width. */\r\n --smart-grid-default-height: 400px;\r\n /* Used to set the default height. */\r\n --smart-grid-footer-height: var(--smart-bar-height);\r\n /* Sets footer height. */\r\n --smart-grid-header-height: var(--smart-bar-height);\r\n /* Sets header height. */\r\n --smart-grid-group-header-height: var(--smart-bar-height);\r\n /* Sets group header height. */\r\n --smart-grid-row-height: 30px;\r\n /* Sets rows height. */\r\n --smart-grid-column-header-height: var(--smart-bar-height);\r\n /* Sets columns height. */\r\n --smart-grid-filter-footer-height: var(--smart-bar-height);\r\n /* Sets filter row height. */\r\n --smart-grid-aggregate-footer-height: var(--smart-bar-height);\r\n /* Sets aggregates height. */\r\n --smart-grid-header-background-freeze: var(--smart-surface);\r\n /* Sets row/column header background, when row/column is frozen. */\r\n --smart-grid-header-color-freeze: var(--smart-surface-color);\r\n /* Sets row/column header text color, when row/column is frozen. */\r\n --smart-grid-column-menu-width: 200px;\r\n /* Sets column menu's width. */\r\n --smart-grid-column-menu-height: auto;\r\n /* Sets column menu's height. */\r\n --smart-grid-column-buttons-width: 23px;\r\n /* Sets column buttons width. */\r\n --smart-grid-cell-color-freeze: var(--smart-surface-color);\r\n /* Sets text color of cells, when row/column is frozen. */\r\n --smart-grid-cell-background-freeze: var(--smart-surface);\r\n /* Sets background color of cells, when row/column is frozen */\r\n --smart-grid-cell-color-delete: #333;\r\n /* Sets text color of cells, when row is deleted. */\r\n --smart-grid-cell-background-delete: #FFDCDC;\r\n /* Sets background color of cells, when row is deleted. */\r\n --smart-grid-cell-color-update: #333;\r\n /* Sets text color of cells, when cell is updated.. */\r\n --smart-grid-cell-background-update: #D7F9C7;\r\n /* Sets background color of cells, when cell is updated.. */\r\n --smart-grid-cell-color-add: #333;\r\n /* Sets text color of cells, when row is added.. */\r\n --smart-grid-cell-background-add: #FED59B;\r\n /* Sets background color of cells, when row is deleted.. */\r\n --smart-grid-cell-color-unbound: var(--smart-surface-color);\r\n /* Sets text color of cells, when row is unbound. */\r\n --smart-grid-cell-background-unbound: var(--smart-surface);\r\n /* Sets background color of cells, when row is unbound. */\r\n --smart-grid-cell-color-sort: var(--smart-surface-color);\r\n /* Sets text color of cells, when column is sorted. */\r\n --smart-grid-cell-background-sort: #FEF3dd;\r\n /* Sets background color of cells, when column is sorted. */\r\n --smart-grid-cell-color-filter: var(--smart-surface-color);\r\n /* Sets text color of cells, when column is filtered. */\r\n --smart-grid-cell-background-filter: #E8F2DB;\r\n /* Sets background color of cells, when column is filtered. */\r\n --smart-grid-group-row-vertical-offset: 5;\r\n /* Sets grouped rows vertical offset. */\r\n --smart-grid-group-row-horizontal-offset: 1;\r\n /* Sets grouped rows horizontal offset. */\r\n --smart-grid-template-columns: none;\r\n /* Sets Template columns. */\r\n --smart-grid-column-gap: 0px;\r\n /* Sets the element's grid-column-gap (related to CSS Grid) */\r\n --smart-grid-row-gap: 0px;\r\n /* Sets the element's grid-row-gap (related to CSS Grid) */\r\n --smart-grid-freeze-splitter-size: 1px;\r\n /* Sets frozen split bar size. */\r\n --smart-grid-resize-line-size: 1px;\r\n /* Sets resize line size. */\r\n /* Grid Layout */\r\n --smart-grid-layout-col-gap: 10px;\r\n --smart-grid-layout-row-gap: 10px;\r\n --smart-grid-layout-width: 100%;\r\n --smart-grid-layout-rows: none;\r\n /* Group Panel, Sort Panel, Column Panel, Multi Column Filter Panel, Formatting Panel */\r\n --smart-grid-panel-default-width: 450px;\r\n /* Default width of the smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel */\r\n --smart-grid-panel-default-height: auto;\r\n /* Default height of the smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel */\r\n --smart-grid-panel-padding: 10px;\r\n /* padding of the smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel */\r\n --smart-grid-panel-vertical-offset: 10px;\r\n /* Vertical offset between smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel items */\r\n --smart-grid-panel-item-height: 30px;\r\n /* height of smartGroupPanel/smartSortPanel/smartColumnPanel/smartMultiColumnFilterPanel items */\r\n --smart-column-panel-drop-down-height: 350px;\r\n /* height of drop-downs */\r\n --smart-multi-column-filter-panel-template-columns: 15px 60px 2fr 3fr 3fr;\r\n /* smartMultiColumnFilterPanel grid-template-columns */\r\n --smart-formatting-panel-default-width: 600px;\r\n /* Default width of the smartFormattingPanel */\r\n --smart-formatting-panel-row-height: 30px;\r\n /* Height of rows in smartFormattingPanel */\r\n --smart-formatting-panel-add-new-button-size: 40px;\r\n /* Size of \"Add new\" (+) button in smartFormattingPanel */\r\n --smart-formatting-panel-popup-width: 300px;\r\n /* Width of smartFormattingPanel's pop-up */\r\n --smart-formatting-panel-color-box-height: 20px;\r\n /* Height of color boxes in smartFormattingPanel's pop-up */\r\n /* Kanban */\r\n --smart-kanban-default-width: 1200px;\r\n /* Default width of Kanban */\r\n --smart-kanban-default-height: 500px;\r\n /* Default height of Kanban */\r\n --smart-kanban-header-size: 35px;\r\n /* Header size of Kanban (applies to header and column headers) */\r\n --smart-kanban-task-min-width: 150px;\r\n /* Min width for Kanban tasks in columns with horizontal orientation */\r\n --smart-kanban-task-min-height: 80px;\r\n /* Kanban task min height */\r\n --smart-kanban-text-max-height: 200px;\r\n /* Kanban task text part max height */\r\n --smart-kanban-user-icon-size: 30px;\r\n /* Kanban user icon size */\r\n --smart-kanban-user-list-width: 150px;\r\n /* Kanban user list width */\r\n --smart-kanban-user-list-max-height: 500px;\r\n /* Kanban user list max height */\r\n --smart-kanban-comments-list-width: 350px;\r\n /* Kanban comments list width */\r\n --smart-kanban-comments-list-height: auto;\r\n /* Kanban comments list height */\r\n --smart-kanban-new-comment-height: 50px;\r\n /* Height of new comment section */\r\n --smart-kanban-new-comment-height-expanded: 175px;\r\n /* Expanded height of new comment section */\r\n --smart-kanban-send-button-height: 30px;\r\n /* Height of Send button in new comment section */\r\n --smart-kanban-color-band-width: 3px;\r\n /* Kanban color band width (i.e. left border of tasks) */\r\n --smart-kanban-add-new-column-width: 1fr;\r\n /* Kanban \"+ New status\" column width */\r\n /* ListBox */\r\n --smart-list-box-default-width: var(--smart-editor-width);\r\n /* smartListBox default width */\r\n --smart-list-box-default-height: var(--smart-editor-width);\r\n /* smartListBox default height */\r\n --smart-list-item-group-header-text-transform: uppercase;\r\n /* smartListBox item group header text transform */\r\n --smart-list-item-horizontal-offset: 3px;\r\n /* Defines list item's horizontal offset. */\r\n --smart-list-item-vertical-offset: 3px;\r\n /* Defines list item's vertical offset. */\r\n --smart-list-item-height: 36px;\r\n /* smartListBox item height */\r\n --smart-list-item-check-box-radius: 2px;\r\n /* smartListBox checkbox radius */\r\n --smart-list-item-label-padding: 0;\r\n /* smartListBox item label padding */\r\n --smart-list-item-label-border-radius: 0;\r\n /* smartListBox item label border radius */\r\n --smart-list-item-padding: 9px 12px;\r\n /* smartListBox item padding */\r\n /* Loader */\r\n --smart-loader-size: var(--smart-editor-height);\r\n /* smartListBox loader size(width=height) */\r\n /* LED */\r\n --smart-led-default-width: var(--smart-editor-height);\r\n /* smartLed default width */\r\n --smart-led-default-height: var(--smart-editor-height);\r\n /* smartLed default height */\r\n /* List Menu */\r\n --smart-list-menu-default-width: var(--smart-box-width);\r\n /* smartListMenu default width */\r\n --smart-list-menu-default-height: var(--smart-box-height);\r\n /* smartListMenu default height */\r\n --smart-list-menu-filter-input-vertical-offset: 5px;\r\n /* Defines vertical offset of the ListMenu's filter input. */\r\n --smart-list-menu-filter-input-horizontal-offset: 5px;\r\n /* Defines horizontal offset of the ListMenu's filter input. */\r\n /*Masked Text Box*/\r\n --smart-masked-text-box-default-width: var(--smart-editor-width);\r\n /* smartMasked default width */\r\n --smart-masked-text-box-default-height: var(--smart-editor-height);\r\n /* smartMasked default height */\r\n /* Menu */\r\n --smart-menu-default-width: var(--smart-bar-width);\r\n /* smartMenu default width */\r\n --smart-menu-default-height: var(--smart-bar-height);\r\n /* smartMenu default height */\r\n --smart-menu-vertical-default-width: calc(var(--smart-bar-width) / 2);\r\n /* vertical and context smartMenu default width */\r\n --smart-menu-vertical-default-height: var(--smart-bar-width);\r\n /* vertical and context smartMenu default height */\r\n --smart-menu-scroll-button-size: calc(var(--smart-bar-height) / 1.5);\r\n /* smartMenu scroll buttons size. Horizontal Menu scroll buttons width = Vertical Menu scroll buttons height. */\r\n /* Multiline Text Box */\r\n --smart-multiline-text-box-default-width: var(--smart-editor-width);\r\n /* Default width of the element. */\r\n --smart-multiline-text-box-default-height: calc(10 * var(--smart-editor-height));\r\n /* Default height of the element. */\r\n /* Multi Split Button*/\r\n --smart-multi-split-button-default-width: var(--smart-editor-width);\r\n /* Element's default width. */\r\n --smart-multi-split-button-default-height: var(--smart-editor-height);\r\n /* Element's default height. */\r\n /* Number format Panel */\r\n --smart-number-format-panel-selected-format-width: 1fr;\r\n --smart-number-format-panel-apply-button-width: 125px;\r\n --smart-number-format-panel-header-holder-offset: 10px;\r\n --smart-number-format-panel-border-size: 1px;\r\n --smart-number-format-panel-border-color: #ccc;\r\n --smart-number-format-panel-border-radius: 4px;\r\n --smart-number-format-panel-sample-container-vertical-offset: 15px;\r\n --smart-number-format-panel-sample-container-horizontal-offset: 5px;\r\n --smart-number-format-panel-formats-list-margin-top: 15px;\r\n --smart-number-format-panel-formats-list-max-height: 400px;\r\n --smart-number-format-panel-formats-item-padding: 12px;\r\n --smart-number-format-panel-selected-format-padding-left: 5px;\r\n --smart-number-format-panel-selected-format-padding-top: 3px;\r\n --smart-number-format-panel-selected-format-padding-bottom: 3px;\r\n --smart-number-format-panel-header-input-width: 100%;\r\n --smart-number-format-panel-formats-item-left-padding: 10px;\r\n --smart-number-format-panel-formats-item-hover-background: #f1f1f1;\r\n --smart-number-format-panel-formats-item-example-format-color: #777;\r\n /* Numeric Text Box */\r\n --smart-numeric-text-box-default-width: var(--smart-editor-width);\r\n /* smartNumericTextBox default width */\r\n --smart-numeric-text-box-default-height: var(--smart-editor-height);\r\n /* smartNumericTextBox default height */\r\n --smart-numeric-text-box-default-radix-display-width: 12%;\r\n /* smartNumericTextBox default radix display button width*/\r\n --smart-numeric-text-box-default-unit-display-width: var(--smart-editor-addon-width);\r\n /* smartNumericTextBox default unit display width*/\r\n --smart-numeric-text-box-text-align: right;\r\n /* smartNumericTextBox input text align */\r\n /* Path */\r\n --smart-path-default-width: var(--smart-editor-width);\r\n /* smartPath default width */\r\n --smart-path-default-height: var(--smart-editor-height);\r\n /* smartPath default height */\r\n --smart-path-drop-down-width: auto;\r\n /* smartPath drop down width */\r\n --smart-path-drop-down-height: auto;\r\n /* smartPath drop down height */\r\n --smart-path-button-gap: 5px;\r\n /* smartPath button gap */\r\n --smart-path-text-align: start;\r\n /* smartPath text align */\r\n /* Power Button */\r\n --smart-power-button-default-width: var(--smart-editor-height);\r\n /* smartPowerButton default width */\r\n --smart-power-button-default-height: var(--smart-editor-height);\r\n /* smartPowerButton default height */\r\n /* Progress Bar */\r\n --smart-progress-bar-default-width: var(--smart-editor-width);\r\n /* smartProgressBar default width */\r\n --smart-progress-bar-default-height: var(--smart-editor-height);\r\n /* smartProgressBar default height */\r\n --smart-circular-progress-bar-default-size: var(--smart-editor-width);\r\n /* smartCircularProgressBar default size (width = height) */\r\n --smart-circular-progress-bar-fill-size: 20%;\r\n /* smartCircularProgressBar ui-state size. The width of the ui-state. The middle container's width is calculated defaultd on this value. */\r\n /* Query Builder */\r\n --smart-query-builder-default-width: auto;\r\n /* Default width of QueryBuilder. */\r\n --smart-query-builder-default-height: auto;\r\n /* Default height of QueryBuilder. */\r\n --smart-query-builder-min-width: 100px;\r\n /* Minimum width of QueryBuilder. */\r\n --smart-query-builder-content-padding: 5px;\r\n /* Padding of QueryBuilder. */\r\n --smart-query-builder-editor-width: 125px;\r\n /* Width of editors in QueryBuilder. */\r\n /* Radio Button */\r\n --smart-radio-button-default-size: calc(1px + 1/2 * var(--smart-editor-height));\r\n /* Default size for the radio button. */\r\n /* Sortable */\r\n --smart-sortable-handle-size: 25px;\r\n /* smartSortable handle size */\r\n /* Splitter */\r\n --smart-splitter-default-width: var(--smart-box-width);\r\n /* smartSplitter default width */\r\n --smart-splitter-default-height: var(--smart-box-height);\r\n /* smartSplitter default height */\r\n --smart-splitter-bar-size: 10px;\r\n /* The width of the scrollbar when vertical and the height of the scrollbar when horizontal*/\r\n --smart-splitter-bar-fit-size: 100%;\r\n /* The size of the splitter according to the orientation of the Splitter. By 'default' a SplitterBar fits the size of the Splitter. */\r\n --smart-splitter-item-padding: 0;\r\n /* Splitter item padding */\r\n --smart-splitter-item-content-padding: 0;\r\n /* Splitter item content padding */\r\n --smart-splitter-item-size: auto;\r\n /* The default size of the Splitter Items */\r\n /* Switch Button */\r\n --smart-switch-button-default-width: calc(var(--smart-editor-height) + 10px);\r\n /* Default width of the SwitchButton. */\r\n --smart-switch-button-default-height: var(--smart-editor-height);\r\n /* smartSwitchButton default height */\r\n --smart-switch-button-thumb-size: calc(var(--smart-switch-button-default-height) - 8px);\r\n /* smartSwitchButton thumb size */\r\n /* Slider */\r\n --smart-slider-default-width: var(--smart-editor-width);\r\n /* smartSlider default width */\r\n --smart-slider-default-height: 35px;\r\n /* smartSlider default height*/\r\n --smart-slider-track-size: 1px;\r\n /* smartSlider track size. Horizontal track height = Vertical track width */\r\n --smart-slider-thumb-width: 20px;\r\n /* smartSlider thumb width*/\r\n --smart-slider-thumb-height: 20px;\r\n /* smartSlider thumb height*/\r\n --smart-slider-tooltip-width: 60px;\r\n /* smartSlider tooltip width */\r\n --smart-slider-tooltip-height: 30px;\r\n /* smartSlider tooltip height*/\r\n --smart-slider-spin-button-width: 30px;\r\n /* smartSlider spin buttons width*/\r\n --smart-slider-spin-button-height: 30px;\r\n /* smartSlider spin buttons height*/\r\n --smart-slider-tick-size: 10px;\r\n /* smartSlider tick size. Horizontal Slider tick height = Vertical Slider tick width.*/\r\n --smart-slider-minor-tick-size: 5px;\r\n /* smartSlider minor tick size. Horizontal Slider minor tick height = Vertical Slider minor tick width.*/\r\n --smart-slider-thumb-border-top-right-radius: 15px;\r\n /* Top-right border radius of smartSlider thumb */\r\n --smart-slider-thumb-border-top-left-radius: 15px;\r\n /* Top-left border radius of smartSlider thumb */\r\n --smart-slider-thumb-border-bottom-left-radius: 15px;\r\n /* Bottom-left border radius of smartSlider thumb */\r\n --smart-slider-thumb-border-bottom-right-radius: 15px;\r\n /* Bottom-right border radius of smartSlider thumb */\r\n /* ScrollBar */\r\n --smart-scroll-button-size: 16px;\r\n /* smartScrollBar buttons size. Horizontal ScrollBar button width = Vertical ScrollBar button height. ScrollBar track is calculated defaultd on this value. */\r\n --smart-scroll-bar-size: 18px;\r\n /* Default scrollbar size */\r\n --smart-scroll-bar-default-width: var(--smart-editor-width);\r\n /* ScrollBar's default width. */\r\n --smart-scroll-bar-default-height: var(--smart-scroll-bar-size);\r\n /* ScrollBar's default height. */\r\n --smart-scroll-bar-background: #F1F1F1;\r\n /* Default ScrollBar's background color. */\r\n --smart-scroll-bar-track-background: var(--smart-scroll-bar-background);\r\n --smart-scroll-bar-border: #F1F1F1;\r\n /* The border color of the ScrollBar */\r\n --smart-scroll-bar-thumb-border-top-right-radius: 0px;\r\n /* Default ScrollBar's top-right border radius. */\r\n --smart-scroll-bar-thumb-border-top-left-radius: 0px;\r\n /* Default ScrollBar's top-left border radius. */\r\n --smart-scroll-bar-thumb-border-bottom-left-radius: 0px;\r\n /* Default ScrollBar's bottom-left border radius. */\r\n --smart-scroll-bar-thumb-border-bottom-right-radius: 0px;\r\n /* Default ScrollBar's bottom-right border radius. */\r\n --smart-scroll-bar-thumb-background: #C1C1C1;\r\n /* The color of the ScrollBar's thumb. */\r\n --smart-scroll-bar-thumb-border: transparent;\r\n /* The color of the ScrollBar's thumb border. */\r\n --smart-scroll-bar-thumb-size: 100%;\r\n /* The size of the ScrollBar's thumb. */\r\n --smart-scroll-bar-thumb-padding: 1px;\r\n /* The padding of the ScrollBar's thumb. */\r\n --smart-scroll-bar-thumb-background-hover: #A8A8A8;\r\n /* The background color of the ScrollBar's thumb in hover state. */\r\n --smart-scroll-bar-thumb-border-hover: transparent;\r\n /* The border color of the ScrollBar's thumb in hover state. */\r\n --smart-scroll-bar-thumb-background-active: #787878;\r\n /* The background color of the ScrollBar's thumb in active state. */\r\n --smart-scroll-bar-thumb-border-active: transparent;\r\n /* The border color of the ScrollBar's thumb in active state. */\r\n --smart-scroll-bar-button-background: #F1F1F1;\r\n /* The background color of ScrollBar's navigation buttons. */\r\n --smart-scroll-bar-button-border: #F1F1F1;\r\n /* The border color of ScrollBar's navigation buttons. */\r\n --smart-scroll-bar-button-color: #505050;\r\n /* The color of ScrollBar's navigation buttons. */\r\n --smart-scroll-bar-button-background-hover: #D2D2D2;\r\n /* The background color of the hovered ScrollBar's buttons. */\r\n --smart-scroll-bar-button-border-hover: #F1F1F1;\r\n /* The border color of the hovered ScrollBar's buttons. */\r\n --smart-scroll-bar-button-color-hover: #505050;\r\n /* The color of the hovered ScrollBar's buttons. */\r\n --smart-scroll-bar-button-background-active: #787878;\r\n /* The background color of the ScrollBar's buttons in active state. */\r\n --smart-scroll-bar-button-border-active: #F1F1F1;\r\n /* The border color of the ScrollBar's buttons in active state. */\r\n --smart-scroll-bar-button-color-active: #fff;\r\n /* The color of the ScrollBar's buttons in active state. */\r\n /* Table and PivotTable */\r\n --smart-table-default-width: 100%;\r\n /* smartTable default width */\r\n --smart-table-default-height: auto;\r\n /* smartTable default height */\r\n --smart-table-header-footer-height: 56px;\r\n /* smartTable height of header and footer */\r\n --smart-table-column-header-height: var(--smart-table-header-footer-height);\r\n /* smartTable height of column header */\r\n --smart-table-row-height: 48px;\r\n /* smartTable height of rows */\r\n --smart-table-cell-padding: 12px;\r\n /* smartTable cell padding */\r\n --smart-table-row-detail-height: var(--smart-table-row-height);\r\n /* smartTable row detail height */\r\n --smart-table-indent: 30px;\r\n /* smartTable hierarchical cell indent */\r\n --smart-table-arrow-size: 16px;\r\n /* smartTable arrow size */\r\n --smart-table-arrow-margin: 5px;\r\n /* smartTable arrow margin */\r\n --smart-table-group-name-display: unset;\r\n /* smartTable group header name display */\r\n --smart-table-group-count-display: unset;\r\n /* smartTable group header leaf count display */\r\n --smart-pivot-table-cell-width: 200px;\r\n /* smartPivotTable cell width */\r\n --smart-pivot-table-secondary-group-width: calc(1.25 * var(--smart-pivot-table-cell-width));\r\n /* smartPivotTable row group width */\r\n --smart-pivot-panel-width: 300px;\r\n /* smartPivotTable designer (smartPivotPanel) width */\r\n --smart-pivot-panel-default-height: 800px;\r\n /* Standalone smartPivotPanel default height */\r\n --smart-pivot-panel-tab-item-height: 150px;\r\n /* smartPivotTable designer (smartPivotPanel) tab item height */\r\n --smart-pivot-panel-padding: 10px;\r\n /* smartPivotTable designer (smartPivotPanel) padding */\r\n /* Tank */\r\n --smart-tank-default-width: var(--smart-editor-width);\r\n /* smartTank default width */\r\n --smart-tank-default-height: calc(10 * var(--smart-editor-height));\r\n /* smartTank default height*/\r\n --smart-tank-scale-size: 105px;\r\n /* smartTank scale size*/\r\n --smart-tank-thumb-width: 25px;\r\n /* smartTank thumb width*/\r\n --smart-tank-thumb-height: var(--smart-tank-thumb-width);\r\n /* smartTank thumb height*/\r\n --smart-tank-tooltip-width: 80px;\r\n /* smartTank tooltip width*/\r\n --smart-tank-tooltip-height: 30px;\r\n /* smartTank thumb height*/\r\n --smart-tank-tick-size: 10px;\r\n /* smartTank tick size. Horizontal Tank tick height = Vertical Tank tick width. */\r\n --smart-tank-minor-tick-size: 5px;\r\n /* smartTank minor tick size. */\r\n --smart-tank-minimum-track-size: 6px;\r\n /* smartTank horizontal track min-height, vertical track min-width */\r\n /* Tabs */\r\n --smart-tabs-header-button-size: 20px;\r\n /* smartTabs header buttons size. Horizontal Tabs header buttons width = Vertical Tab header buttons height. */\r\n --smart-tabs-animation-duration: 0.5s;\r\n /* smartTabs animation duration */\r\n --smart-tabs-default-width: var(--smart-box-width);\r\n /* smartTabs default width */\r\n --smart-tabs-default-height: var(--smart-box-height);\r\n /* smartTabs default height */\r\n --smart-tabs-header-padding: 0px;\r\n /* Defines Tabs header padding. */\r\n --smart-tabs-header-offset: 0px;\r\n /* Defines Tabs header offset. */\r\n --smart-tab-item-padding: 12px 16px;\r\n /* Defines vertical and horizontal padding of tab items. */\r\n --smart-tab-item-offset: 5px;\r\n /* Default tab item offset. */\r\n --smart-tab-item-initial-offset: 5px;\r\n /* Initial tab item offset. */\r\n --smart-tab-item-text-transform: uppercase;\r\n /* Tab item text capitalization. */\r\n /* Time Picker */\r\n --smart-time-picker-default-width: var(--smart-editor-width);\r\n /* smartTimePicker default width */\r\n --smart-time-picker-default-height: calc(12 * var(--smart-editor-height));\r\n /* smartTimePicker default height */\r\n /* Tooltip */\r\n --smart-tooltip-arrow-width: 6px;\r\n /* Default smartTooltip arrow width */\r\n --smart-tooltip-arrow-color: var(--smart-secondary);\r\n /* smartTooltip arrow color */\r\n --smart-tooltip-arrow-translate: 0;\r\n /* smartTooltip arrow translation (transformation) */\r\n --smart-tooltip-padding: 4px 8px;\r\n /* smartTooltip padding */\r\n --smart-tooltip-content-shadow: none;\r\n /* smartTooltip content box-shadow */\r\n /* Toast */\r\n --smart-toast-item-icon: '';\r\n /* Code of toast item icon */\r\n --smart-toast-container-default-width: var(--smart-bar-width);\r\n /* Default width of the smartToast's containers, positioned top-left, top-right, bottom-left, bottom-right */\r\n --smart-toast-header-height: 20px;\r\n /* smartToast header height */\r\n --smart-toast-info-background: var(--smart-info);\r\n /* Background color for type info */\r\n --smart-toast-info-color: var(--smart-info-color);\r\n /* Text color for type info */\r\n --smart-toast-warning-background: var(--smart-warning);\r\n /* Background color for type warning */\r\n --smart-toast-warning-color: var(--smart-warning-color);\r\n /* Text color for type warning */\r\n --smart-toast-error-background: var(--smart-error);\r\n /* Background color for type error */\r\n --smart-toast-error-color: var(--smart-error-color);\r\n /* Text color for type error */\r\n --smart-toast-success-background: var(--smart-success);\r\n /* Background color for type success */\r\n --smart-toast-success-color: var(--smart-success-color);\r\n /* Text color for type success */\r\n /* Tree */\r\n --smart-tree-default-width: var(--smart-box-width);\r\n /* smartTree default width */\r\n --smart-tree-default-height: var(--smart-box-height);\r\n /* smartTree default height */\r\n --smart-tree-scroll-button-size: 20px;\r\n /* smartTree scroll buttons size */\r\n --smart-tree-lines-style: dashed;\r\n /* Default style of the connecting tree lines. */\r\n --smart-tree-indent: 16px;\r\n /* Defines the indent(hierarchy offset) size of the tree items. */\r\n --smart-tree-lines-color: var(--smart-border);\r\n /* Defines the color of the connecting lines. */\r\n --smart-tree-lines-width: 1px;\r\n /* Defines the width of the connecting lines. */\r\n --smart-tree-item-label-height: 36px;\r\n /* Defines the height of tree item labels. */\r\n --smart-tree-item-padding: 9px 12px;\r\n /* Defines the padding of the tree items. */\r\n --smart-tree-item-vertical-offset: 3px;\r\n /* Defines the vertical offset of the tree items. */\r\n --smart-tree-item-horizontal-offset: 3px;\r\n /* Defines the horizontal offset of the tree items. */\r\n /* Text Box */\r\n --smart-text-box-default-width: var(--smart-editor-width);\r\n /* Text Box default width. */\r\n --smart-text-box-default-height: var(--smart-editor-height);\r\n /* Text Box default height. */\r\n /* Validation panel */\r\n --smart-validation-panel-description-width: 20%;\r\n --smart-validation-panel-content-width: 80%;\r\n /* Validation panel - appearance */\r\n --smart-validation-panel-appearance-vertical-offset: 10px;\r\n --smart-validation-panel-appearance-reset-button-left-offset: 5px;\r\n --smart-validation-panel-appearance-textbox-vertical-offset: 5px;\r\n --smart-validation-panel-appearance-reset-button-color: var(--smart-primary);\r\n /* Validation panel - Criteria container */\r\n --smart-validation-panel-criteria-row-margin-top: 10px;\r\n --smart-validation-panel-criteria-container-vertical-offset: 10px;\r\n --smart-validation-panel-criteria-container-input-width: 180px;\r\n --smart-validation-panel-criteria-container-input-horizontal-offset: 2px;\r\n --smart-validation-panel-criteria-container-textbox-width: 80px;\r\n --smart-validation-panel-criteria-container-textbox-horizontal-offset: 2px;\r\n --smart-validation-panel-criteria-container-text-between-inputs-offset: 5px;\r\n /* Validation panel - Invalid data */\r\n --smart-validation-panel-invalid-data-vertical-offset: 10px;\r\n /* Validation panel - Footer */\r\n --smart-validation-panel-footer-button-color: #188038;\r\n --smart-validation-panel-footer-button-background: white;\r\n --smart-validation-panel-footer-vertical-offset: 20px;\r\n --smart-validation-panel-footer-button-horizontal-offset: 5px;\r\n --smart-validation-panel-footer-remove-validation-button-color: var(--smart-validation-panel-footer-button-color);\r\n --smart-validation-panel-footer-cancel-button-color: var(--smart-validation-panel-footer-button-color);\r\n --smart-validation-panel-footer-save-button-color: var(--smart-validation-panel-footer-button-background);\r\n --smart-validation-panel-footer-save-button-background: var(--smart-validation-panel-footer-button-color);\r\n /*Password Text Box*/\r\n --smart-password-text-box-default-width: var(--smart-editor-width);\r\n /* smartPasswordTextBox default width */\r\n --smart-password-text-box-default-height: var(--smart-editor-height);\r\n /* smartPasswordTextBox default height */\r\n /* Pager */\r\n --smart-pager-default-width: var(--smart-bar-width);\r\n /* default pager width */\r\n --smart-pager-default-height: var(--smart-bar-height);\r\n /* default pager height */\r\n --smart-pager-button-width: 'auto';\r\n /* default pager button width */\r\n --smart-pager-button-height: 32px;\r\n /* default pager button height */\r\n --smart-pager-page-size-selector-width: 60px;\r\n /* Default page size selector width. */\r\n --smart-pager-page-index-selector-width: 32px;\r\n /* default pager item width */\r\n --smart-pager-page-index-selector-height: 32px;\r\n /* default pager item height */\r\n --smart-pager-page-index-ellipsis-selector-width: 32px;\r\n /* default pager ellipsis width */\r\n --smart-pager-page-index-ellipsis-selector-height: 32px;\r\n /* default pager ellipsis width */\r\n --smart-pager-page-index-selector-horizontal-offset: 8px;\r\n /* default pager ellipsis width */\r\n --smart-pager-padding: 2px;\r\n /* Default padding. */\r\n --smart-pager-input-width: 50px;\r\n /* Default width of the pager input. */\r\n /*ScrollViewer*/\r\n --smart-scroll-viewer-min-width: none;\r\n --smart-scroll-viewer-max-width: none;\r\n --smart-scroll-viewer-min-height: none;\r\n --smart-scroll-viewer-max-height: none;\r\n /*Scheduler*/\r\n --smart-scheduler-default-height: auto;\r\n /* Sets the default height of the smartScheduler */\r\n --smart-scheduler-default-width: auto;\r\n /* Sets the default width of the smartScheduler */\r\n --smart-scheduler-item-size: auto;\r\n /* Sets the default size of the view selection items insinde the Timeline Header */\r\n --smart-scheduler-timeline-cell-width: auto;\r\n /* Sets the default width of the cells inside the Timeline */\r\n --smart-scheduler-timeline-cell-height: 50px;\r\n /* Sets the default height of the cells inside the Timeline */\r\n --smart-scheduler-timeline-cell-min-width: 70px;\r\n /* Sets the default min-width of the cells inside the Timeline */\r\n --smart-scheduler-timeline-cell-min-height: 35px;\r\n /* Sets the min-height of the cells inside the Timeline */\r\n --smart-scheduler-header-height: 50px;\r\n /* Sets the height of the header */\r\n --smart-scheduler-header-today-button-size: 70px;\r\n /* Scheduler header Today Button width */\r\n --smart-scheduler-header-date-button-max-size: auto;\r\n /* Sets the size of the Header Date Selection Button*/\r\n --smart-scheduler-header-navigation-button-size: 30px;\r\n /* Sets the size of the header buttons */\r\n --smart-scheduler-footer-height: var(--smart-scheduler-header-height);\r\n /* The height of the footer */\r\n --smart-scheduler-header-box-shadow: initial;\r\n /* Sets a Box shadow to the Timeline header */\r\n --smart-scheduler-header-padding: 10px;\r\n /* Sets a the padding for the header/footer */\r\n --smart-scheduler-timeline-header-cell-padding: 5px;\r\n /* Sets a the padding for the header/footer cells */\r\n --smart-scheduler-header-menu-button-size: auto;\r\n /* Sets the size for the Header menu button */\r\n --smart-scheduler-timeline-weekend-color: var(--smart-background);\r\n /* Sets the background color for the weekend cells */\r\n --smart-scheduler-timeline-nonworking-color: var(--smart-gantt-chart-timeline-nonworking-color);\r\n /* Sets the background color for nonworking days/hours cells */\r\n --smart-scheduler-timeline-all-day-label-font-weight: 600;\r\n /* Sets a the font-weight of the All day label */\r\n --smart-scheduler-timeline-header-horizontal-cells-size: 40px;\r\n /* Sets a the horizontal header cells size */\r\n --smart-scheduler-timeline-header-horizontal-label-padding: initial;\r\n /* Sets a the horizontal header cells label padding */\r\n --smart-scheduler-timeline-header-horizontal-details-size: var(--smart-scheduler-timeline-header-horizontal-cells-size);\r\n /* Sets the size of the Horizontal Details Header */\r\n --smart-scheduler-timeline-header-horizontal-group-size: var(--smart-scheduler-timeline-header-horizontal-cells-size);\r\n /* Sets the size of the Horizontal Group Header */\r\n --smart-scheduler-timeline-header-vertical-cells-size: 100px;\r\n /* Sets the vertical header cell size */\r\n --smart-scheduler-timeline-header-vertical-label-padding: initial;\r\n /* Sets the vertical header cells padding */\r\n --smart-scheduler-timeline-header-vertical-details-size: var(--smart-scheduler-timeline-header-vertical-cells-size);\r\n /* Sets the size of the Vertical Details Header */\r\n --smart-scheduler-timeline-header-vertical-group-size: var(--smart-scheduler-timeline-header-vertical-cells-size);\r\n /* Sets the size of the Vertical Group Header */\r\n --smart-scheduler-timeline-header-all-day-cells-size: 75px;\r\n /* Sets the All Day View height */\r\n --smart-scheduler-timeline-group-separator-background: var(--smart-outline);\r\n /* Sets the color for the group separator */\r\n --smart-scheduler-timeline-group-separator-size: var(--smart-border-width);\r\n /* Sets the group cell separator size */\r\n --smart-scheduler-timeline-group-white-space: nowrap;\r\n /* Sets the white-space property for the Header Group cells */\r\n --smart-scheduler-timeline-group-header-offset: calc(-50% - var(--smart-scheduler-timeline-header-cell-padding));\r\n /* Sets the label offset for the header cells when groupByDate is enabled */\r\n --smart-scheduler-current-time-indicator-background: var(--smart-primary);\r\n /* Current Time Indicator background-color*/\r\n --smart-scheduler-current-time-indicator-size: 1px;\r\n /* Current Time Indicator size(width/height depending on the view orientation) */\r\n --smart-scheduler-current-time-indicator-header-size: 2px;\r\n /* Current Time Indicator size(width/height) inside the Headers */\r\n --smart-scheduler-current-time-indicator-arrow-size: 7px;\r\n /* Current Time Indicator arrow size */\r\n --smart-scheduler-shader-background: rgba(var(--smart-border-rgb), .5);\r\n /* Shade Until Current Time background */\r\n --smart-scheduler-view-background: transparent;\r\n --smart-scheduler-view-line-size: var(--smart-border-width);\r\n /* Timeline lines size */\r\n --smart-scheduler-view-horizontal-line-color: var(--smart-border);\r\n /* Horizontal timeline line color */\r\n --smart-scheduler-view-vertical-line-color: var(--smart-border);\r\n /* Vertical timeline line color */\r\n --smart-scheduler-day-week-view-vertical-line-size: var(--smart-scheduler-view-line-size);\r\n /* Vertical line size in 'day' and 'week' views */\r\n --smart-scheduler-day-week-view-vertical-line-color: var(--smart-border);\r\n /* Vertical timeline color in 'day' and 'week' views */\r\n --smart-scheduler-day-week-view-hour-size: var(--smart-scheduler-view-line-size);\r\n /* Horizontal line size for 'day', 'week'. Only the hour lines (excluding minutes) */\r\n --smart-scheduler-day-week-view-hour-color: var(--smart-border);\r\n /* Horizontal line color for 'day', 'week' views. Only the hour lines ( excluding the minutes) */\r\n --smart-scheduler-time-ruler-tick-size: 10px;\r\n /* Time ruler tick size. Applicable only to day/week views */\r\n --smart-scheduler-event-background-rgb: 52, 121, 186;\r\n /* Event background RGB */\r\n --smart-scheduler-event-background: rgba(var(--smart-scheduler-event-background-rgb), 1);\r\n /* Event background color */\r\n --smart-scheduler-legend-item-background: var(--smart-scheduler-event-background);\r\n /* The default background color for the legen items */\r\n --smart-scheduler-event-color: var(--smart-primary-color);\r\n /* Event color */\r\n --smart-scheduler-event-focus: rgba(var(--smart-scheduler-event-background-rgb), .9);\r\n /* Event focus background color */\r\n --smart-scheduler-event-color-focus: var(--smart-scheduler-event-color);\r\n /* Event focus color */\r\n --smart-scheduler-event-hover: rgba(var(--smart-scheduler-event-background-rgb), .8);\r\n /* Event hover background color */\r\n --smart-scheduler-event-color-hover: var(--smart-scheduler-event-color);\r\n /* Event hover color */\r\n --smart-scheduler-event-padding-agenda: 5px;\r\n /* Event padding in 'agenda' view only */\r\n --smart-scheduler-event-padding-basic: 2px;\r\n /* Event padding in all basic views */\r\n --smart-scheduler-event-padding-timeline: 2px;\r\n /* Event padding in all timeline views */\r\n --smart-scheduler-event-padding-all-day: 2px;\r\n /* Event padding for events inside AllDay container */\r\n --smart-scheduler-event-content-padding: 5px;\r\n /* Event content padding */\r\n --smart-scheduler-event-label-font-size: var(--smart-font-size);\r\n /* Event label font size */\r\n --smart-scheduler-event-time-font-size: calc(var(--smart-font-size) - 3px);\r\n /* Event time label font size */\r\n --smart-scheduler-event-time-font-size-agenda: var(--smart-font-size);\r\n /* Event time font size for 'agenda' view */\r\n --smart-scheduler-event-time-font-weight-agenda: 600;\r\n /* Event time label font weight for 'agenda' view */\r\n --smart-scheduler-event-time-opacity-agenda: 1;\r\n /* Event time label opacity for 'agenda' view */\r\n --smart-scheduler-event-time-opacity: 0.7;\r\n /* Event time label opacity */\r\n --smart-scheduler-event-icon-size: 30px;\r\n /* Event icon (repeating, exception icon) size */\r\n --smart-scheduler-event-size: 30px;\r\n /* Sets the size of the timeline events in all views. Main variable. Used this variable to change the size of the events. Used by the Scheduler internally !*/\r\n --smart-scheduler-event-size-basic: var(--smart-scheduler-event-size);\r\n /* Sets the size of the events only in Basic views */\r\n --smart-scheduler-event-size-timeline: 60px;\r\n /* Sests the size of the events only in Timeline views. Should only be in pixels. Do not use calc()! */\r\n --smart-scheduler-event-collector-size: 24px;\r\n /* Event collector size */\r\n --smart-scheduler-event-collector-mobile-size: 28px;\r\n /* Event collector size on mobile */\r\n --smart-scheduler-event-collector-background: rgba(var(--smart-primary-rgb), 1);\r\n /* Event collector background color */\r\n --smart-scheduler-event-collector-color: var(--smart-primary-color);\r\n /* Event collector color */\r\n --smart-scheduler-event-collector-focus: rgba(var(--smart-primary-rgb), .9);\r\n /* Event collector background color on focus */\r\n --smart-scheduler-event-collector-color-focus: var(--smart-scheduler-event-collector-color);\r\n /* Event collector color on focus */\r\n --smart-scheduler-event-collector-hover: rgba(var(--smart-primary-rgb), .8);\r\n /* Event collector background colot on hover */\r\n --smart-scheduler-event-collector-color-hover: var(--smart-scheduler-event-collector-color);\r\n /* Event collector color on hover */\r\n --smart-scheduler-month-view-number-size: 24px;\r\n /* The size of the day number in month view */\r\n --smart-scheduler-status-size: 7px;\r\n /* The size of the day number in month view */\r\n --smart-scheduler-status-padding: 5px;\r\n /* The paddng between the content of the event and the satus strip */\r\n --smart-scheduler-status-background: transparent;\r\n /* The size of the day number in month view */\r\n --smart-scheduler-status-free-background: white;\r\n /* Event Status 'free' background color */\r\n --smart-scheduler-status-tentative-background: 0 -244rem / 5rem 5rem linear-gradient(45deg, #fd7e14 25%, rgba(0, 0, 0, .2) 25%, rgba(0, 0, 0, .2) 50%, #fd7e14 50%, #fd7e14 75%, rgba(0, 0, 0, .2) 75%, rgba(0, 0, 0, .2));\r\n /* Event status 'tentative' background color */\r\n --smart-scheduler-status-busy-background: #dc3545;\r\n /* Event status 'busy' background color */\r\n --smart-scheduler-status-out-of-office-background: #00a9e6;\r\n /* Event status 'out-of-office' background color */\r\n --smart-scheduler-cell-feedback-background: transparent;\r\n /* Cell feedback background color on event drop */\r\n --smart-scheduler-event-resize-indicator-size: var(--smart-gantt-chart-timeline-task-resize-indicator-width);\r\n /* Event resize indicator size */\r\n --smart-scheduler-event-resize-indicator-color: var(--smart-gantt-chart-timeline-task-resize-indicator-color);\r\n /* Event resize indicator color */\r\n --smart-scheduler-event-resize-indicator-border-color: var(--smart-gantt-chart-timeline-task-resize-indicator-border-color);\r\n /* Event resize indicator border color */\r\n --smart-scheduler-restricted-background: 0 -245rem / 12px 12px linear-gradient(135deg, rgba(255, 0, 0, .15) 25%, transparent 25%, transparent 50%, rgba(255, 0, 0, .15) 50%, rgba(255, 0, 0, .15) 75%, transparent 75%, transparent);\r\n /* Restricted cells background color */\r\n --smart-scheduler-event-item-size: 50px;\r\n /* Event menu item size(height) */\r\n --smart-scheduler-event-button-size: 30px;\r\n /* Event menu item button size(delete button) */\r\n --smart-scheduler-event-border-radius: initial;\r\n /* Event border radius */\r\n --smart-scheduler-event-collector-border-radius: 20px;\r\n /* Event collector border radius */\r\n --smart-scheduler-context-menu-max-height: calc(4 * var(--smart-scheduler-event-item-size));\r\n /* Context menu max-height */\r\n --smart-scheduler-context-menu-max-width: 300px;\r\n /* Context menu max-width */\r\n --smart-scheduler-window-header-height: var(--smart-gantt-chart-popup-window-header-height);\r\n /* Window editor header height */\r\n --smart-scheduler-window-footer-height: var(--smart-gantt-chart-popup-window-footer-height);\r\n /* Window editor footer height */\r\n --smart-scheduler-event-label-font-weight: 300;\r\n /* Event label font weight */\r\n --smart-scheduler-event-time-font-weight: 300;\r\n /* Event time label font weight */\r\n --smart-scheduler-event-item-label-font-weight: 600;\r\n /* Event menu item label font-weight */\r\n --smart-scheduler-toast-default-width: 400px;\r\n /* Toast(notifications) default width */\r\n --smart-scheduler-toast-default-height: 50px;\r\n /* Toast(notifications) default height */\r\n --smart-scheduler-shortcut-size: 28px;\r\n /* The width of the shortuct of the view items when placed inside a drop down */\r\n /*Window*/\r\n --smart-window-default-height: var(--smart-box-height);\r\n /* smartWindow default height */\r\n --smart-window-default-width: var(--smart-box-width);\r\n /* smartWindow default width */\r\n --smart-window-header-height: var(--smart-bar-height);\r\n /* smartWindow header height */\r\n --smart-window-footer-height: var(--smart-bar-height);\r\n /* smartWindow footer height */\r\n --smart-window-min-width: 250px;\r\n /* smartWindow header width */\r\n --smart-window-header-padding: 10px;\r\n /* smartWindow header and footer padding */\r\n --smart-window-footer-padding: 6.5px;\r\n /* smartWindow header and footer padding */\r\n --smart-window-header-button-size: 24px;\r\n /* Sets the size of the header buttons */\r\n --smart-window-header-icon-size: var(--smart-font-size);\r\n /* Sets the size of the header button icons */\r\n --smart-window-header-background: var(--smart-surface);\r\n /* Sets the background of the header section */\r\n --smart-window-footer-background: var(--smart-surface);\r\n /* Sets the size of the background of the footer section */\r\n --smart-window-footer-button-width: 100px;\r\n /* Sets the width of the footer buttons */\r\n --smart-window-content-padding: 10px;\r\n /* Sets the content section padding */\r\n /*Elevations*/\r\n --smart-elevation-24: 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12), 0 11px 15px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-16: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-12: 0 12px 17px 2px rgba(0, 0, 0, .14), 0 5px 22px 4px rgba(0, 0, 0, .12), 0 7px 8px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-8: 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 3px rgba(0, 0, 0, .12), 0 4px 15px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-6: 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12), 0 3px 5px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-4: 0 2px 4px 0 rgba(0, 0, 0, .14), 0 4px 5px 0 rgba(0, 0, 0, .12), 0 1px 10px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-2: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);\r\n --smart-elevation-1: 0 0 2px 0 rgba(0, 0, 0, .14), 0 2px 2px 0 rgba(0, 0, 0, .12), 0 1px 3px 0 rgba(0, 0, 0, .2);\r\n --smart-elevation-0: none;\r\n /* Breakpoints */\r\n --breakpoint-xs: 0;\r\n --breakpoint-sm: 576px;\r\n --breakpoint-md: 768px;\r\n --breakpoint-lg: 992px;\r\n --breakpoint-xl: 1200px;\r\n /*Misc*/\r\n --pseudo-element-height: 0;\r\n}\r\n\r\nbody[theme=\"dark\"],\r\n.smart-ui-component[theme=\"dark\"] {\r\n --smart-primary-rgb: 122, 202, 255;\r\n --smart-primary: rgb(var(--smart-primary-rgb));\r\n /* The theme primary color */\r\n --smart-primary-color: #242424;\r\n --smart-background: #242424;\r\n /* The theme background color. The background color appears behind scrollable content.*/\r\n --smart-background-color: #fff;\r\n /* Text color on top of a background background */\r\n --smart-surface: #333;\r\n /* The theme surface color. Surface colors affect surfaces of components, such as cards, sheets, and menus. */\r\n --smart-surface-color: #fff;\r\n /* Text color on top of a surface surface */\r\n --smart-disabled: #535353;\r\n /* The theme primary color in disabled state. */\r\n --smart-disabled-color: #fff;\r\n /* Text color on top of a theme background in disabled state */\r\n --smart-border: #464646;\r\n /* The theme background border color */\r\n --smart-editor-selection: var(--smart-primary);\r\n --smart-editor-selection-color: var(--smart-primary-color);\r\n --smart-ui-state-hover: #444;\r\n --smart-ui-state-color-hover: #fff;\r\n --smart-ui-state-border-hover: var(--smart-ui-state-hover);\r\n --smart-ui-state-active: var(--smart-primary);\r\n --smart-ui-state-color-active: var(--smart-primary-color);\r\n --smart-ui-state-border-active: var(--smart-primary);\r\n --smart-ui-state-focus: #555;\r\n --smart-ui-state-color-focus: #fff;\r\n --smart-ui-state-border-focus: #555;\r\n --smart-ui-state-selected: rgba(var(--smart-primary-rgb), .1);\r\n --smart-ui-state-color-selected: var(--smart-primary);\r\n --smart-ui-state-border-selected: rgba(var(--smart-primary-rgb), .1);\r\n --smart-alternation-index0-color: var(--smart-surface-color);\r\n /* Alternation color for index0 */\r\n --smart-alternation-index0-border: var(--smart-surface);\r\n /* Alternation border color for index0 */\r\n --smart-alternation-index0-background: var(--smart-surface);\r\n /* Alternation background color for index0 */\r\n --smart-alternation-index1-color: #111;\r\n /*Alternation color for index1 */\r\n --smart-alternation-index1-border: #9BBB59;\r\n /* Alternation border color for index1 */\r\n --smart-alternation-index1-background: #9BBB59;\r\n /* Alternation background color for index1 */\r\n --smart-alternation-index2-color: #fff;\r\n /*Alternation color for index2 */\r\n --smart-alternation-index2-border: #FC3752;\r\n /* Alternation border color for index2 */\r\n --smart-alternation-index2-background: #FC3752;\r\n /* Alternation background color for index2 */\r\n --smart-grid-cell-background-freeze: #242424;\r\n --smart-grid-cell-color-freeze: #fff;\r\n --smart-scroll-bar-background: #3E3E42;\r\n --smart-scroll-bar-track-background: var(--smart-scroll-bar-background);\r\n --smart-scroll-bar-border: #3E3E42;\r\n --smart-scroll-bar-thumb-background: #686868;\r\n --smart-scroll-bar-thumb-border: #686868;\r\n --smart-scroll-bar-thumb-background-hover: #9E9E9E;\r\n --smart-scroll-bar-thumb-border-hover: #9E9E9E;\r\n --smart-scroll-bar-thumb-background-active: #444;\r\n --smart-scroll-bar-thumb-border-active: #444;\r\n --smart-scroll-bar-button-background: #3E3E42;\r\n --smart-scroll-bar-button-border: #3E3E42;\r\n --smart-scroll-bar-button-color: #999999;\r\n --smart-scroll-bar-button-background-hover: #3E3E42;\r\n --smart-scroll-bar-button-border-hover: #3E3E42;\r\n --smart-scroll-bar-button-color-hover: var(--smart-primary);\r\n --smart-scroll-bar-button-background-active: #3E3E42;\r\n --smart-scroll-bar-button-border-active: #3E3E42;\r\n --smart-scroll-bar-button-color-active: var(--smart-primary);\r\n --smart-gantt-chart-timeline-nonworking-color: #3E3E42;\r\n --smart-scheduler-timeline-weekend-color: var(--smart-background);\r\n /* Sets the background color for the weekend cells */\r\n --smart-scheduler-timeline-nonworking-color: var(--smart-gantt-chart-timeline-nonworking-color);\r\n /* Sets the background color for nonworking days/hours cells */\r\n --smart-scheduler-event-background-rgb: 103, 176, 245;\r\n --smart-scheduler-event-background: rgba(var(--smart-scheduler-event-background-rgb), 1);\r\n --smart-scheduler-event-color: var(--smart-primary-color);\r\n --smart-scheduler-event-focus: rgba(var(--smart-scheduler-event-background-rgb), .9);\r\n --smart-scheduler-event-color-focus: var(--smart-scheduler-event-color);\r\n --smart-scheduler-event-hover: rgba(var(--smart-scheduler-event-background-rgb), .8);\r\n --smart-scheduler-event-color-hover: var(--smart-scheduler-event-color);\r\n --smart-scheduler-event-collector-background: rgba(var(--smart-primary-rgb), 1);\r\n --smart-scheduler-event-collector-color: var(--smart-primary-color);\r\n --smart-scheduler-event-collector-focus: rgba(var(--smart-primary-rgb), .9);\r\n --smart-scheduler-event-collector-color-focus: var(--smart-scheduler-event-collector-color);\r\n --smart-scheduler-event-collector-hover: rgba(var(--smart-primary-rgb), .8);\r\n --smart-scheduler-event-collector-color-hover: var(--smart-scheduler-event-collector-color);\r\n --smart-scheduler-status-free-background: white;\r\n --smart-scheduler-status-tentative-background: 0 -244rem / 5rem 5rem linear-gradient(45deg, #fd7e14 25%, rgba(0, 0, 0, .2) 25%, rgba(0, 0, 0, .2) 50%, #fd7e14 50%, #fd7e14 75%, rgba(0, 0, 0, .2) 75%, rgba(0, 0, 0, .2));\r\n --smart-scheduler-status-busy-background: #dc3545;\r\n --smart-scheduler-status-out-of-office-background: #00a9e6;\r\n --smart-scheduler-event-resize-indicator-color: var(--smart-gantt-chart-timeline-task-resize-indicator-color);\r\n --smart-scheduler-event-resize-indicator-border-color: var(--smart-gantt-chart-timeline-task-resize-indicator-border-color);\r\n --smart-scheduler-restricted-background: 0 -245rem / 12px 12px linear-gradient(135deg, rgba(255, 0, 0, .15) 25%, transparent 25%, transparent 50%, rgba(255, 0, 0, .15) 50%, rgba(255, 0, 0, .15) 75%, transparent 75%, transparent);\r\n}",""]),t.exports=e},232:function(t,e,r){"use strict";r.r(e),r.d(e,"UIChart",(function(){return x}));r(8),r(9),r(10),r(40),r(25),r(166),r(167),r(168),r(169),r(170),r(55);Smart.Component;Smart.DataAdapter;r(7);var n=r(2),o=r.n(n),a=r(3),i=r.n(a),s=r(1),l=r.n(s),d=r(138),m=r.n(d),c=r(4),h=r.n(c),u=r(5),p=r.n(u),f=r(6),g=r.n(f),b=r(17),v=r.n(b);const y=["@font-face { font-family: smart-icons; src: url('https://raw.githubusercontent.com/HTMLElements/smart-webcomponents/master/source/styles/font/smart-icons.woff2') format('woff2'); font-weight: normal; font-style: normal; }"],w=[o.a,i.a,l.a,v.a,m.a,h.a,p.a,g.a];class x extends HTMLElement{get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get animation(){return this.nativeElement?this.nativeElement.animation:void 0}set animation(t){if(this.nativeElement){this.nativeElement.animation=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("animation");this.nativeElement.hasAttribute("animation")?this.setAttribute("animation",e):this.removeAttribute("animation"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get animationDuration(){return this.nativeElement?this.nativeElement.animationDuration:void 0}set animationDuration(t){if(this.nativeElement){this.nativeElement.animationDuration=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("animation-duration");this.nativeElement.hasAttribute("animation-duration")?this.setAttribute("animation-duration",e):this.removeAttribute("animation-duration"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get backgroundColor(){return this.nativeElement?this.nativeElement.backgroundColor:void 0}set backgroundColor(t){if(this.nativeElement){this.nativeElement.backgroundColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("background-color");this.nativeElement.hasAttribute("background-color")?this.setAttribute("background-color",e):this.removeAttribute("background-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get backgroundImage(){return this.nativeElement?this.nativeElement.backgroundImage:void 0}set backgroundImage(t){if(this.nativeElement){this.nativeElement.backgroundImage=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("background-image");this.nativeElement.hasAttribute("background-image")?this.setAttribute("background-image",e):this.removeAttribute("background-image"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get borderLineColor(){return this.nativeElement?this.nativeElement.borderLineColor:void 0}set borderLineColor(t){if(this.nativeElement){this.nativeElement.borderLineColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("border-line-color");this.nativeElement.hasAttribute("border-line-color")?this.setAttribute("border-line-color",e):this.removeAttribute("border-line-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get borderLineWidth(){return this.nativeElement?this.nativeElement.borderLineWidth:void 0}set borderLineWidth(t){if(this.nativeElement){this.nativeElement.borderLineWidth=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("border-line-width");this.nativeElement.hasAttribute("border-line-width")?this.setAttribute("border-line-width",e):this.removeAttribute("border-line-width"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get caption(){return this.nativeElement?this.nativeElement.caption:void 0}set caption(t){if(this.nativeElement){this.nativeElement.caption=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("caption");this.nativeElement.hasAttribute("caption")?this.setAttribute("caption",e):this.removeAttribute("caption"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get clip(){return this.nativeElement?this.nativeElement.clip:void 0}set clip(t){if(this.nativeElement){this.nativeElement.clip=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("clip");this.nativeElement.hasAttribute("clip")?this.setAttribute("clip",e):this.removeAttribute("clip"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get colorScheme(){return this.nativeElement?this.nativeElement.colorScheme:void 0}set colorScheme(t){if(this.nativeElement){this.nativeElement.colorScheme=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("color-scheme");this.nativeElement.hasAttribute("color-scheme")?this.setAttribute("color-scheme",e):this.removeAttribute("color-scheme"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get columnSeriesOverlap(){return this.nativeElement?this.nativeElement.columnSeriesOverlap:void 0}set columnSeriesOverlap(t){if(this.nativeElement){this.nativeElement.columnSeriesOverlap=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("column-series-overlap");this.nativeElement.hasAttribute("column-series-overlap")?this.setAttribute("column-series-overlap",e):this.removeAttribute("column-series-overlap"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get crosshairsColor(){return this.nativeElement?this.nativeElement.crosshairsColor:void 0}set crosshairsColor(t){if(this.nativeElement){this.nativeElement.crosshairsColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("crosshairs-color");this.nativeElement.hasAttribute("crosshairs-color")?this.setAttribute("crosshairs-color",e):this.removeAttribute("crosshairs-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get crosshairsDashStyle(){return this.nativeElement?this.nativeElement.crosshairsDashStyle:void 0}set crosshairsDashStyle(t){if(this.nativeElement){this.nativeElement.crosshairsDashStyle=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("crosshairs-dash-style");this.nativeElement.hasAttribute("crosshairs-dash-style")?this.setAttribute("crosshairs-dash-style",e):this.removeAttribute("crosshairs-dash-style"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get crosshairsLineWidth(){return this.nativeElement?this.nativeElement.crosshairsLineWidth:void 0}set crosshairsLineWidth(t){if(this.nativeElement){this.nativeElement.crosshairsLineWidth=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("crosshairs-line-width");this.nativeElement.hasAttribute("crosshairs-line-width")?this.setAttribute("crosshairs-line-width",e):this.removeAttribute("crosshairs-line-width"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get dataSource(){return this.nativeElement?this.nativeElement.dataSource:void 0}set dataSource(t){if(this.nativeElement){this.nativeElement.dataSource=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("data-source");this.nativeElement.hasAttribute("data-source")?this.setAttribute("data-source",e):this.removeAttribute("data-source"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get description(){return this.nativeElement?this.nativeElement.description:void 0}set description(t){if(this.nativeElement){this.nativeElement.description=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("description");this.nativeElement.hasAttribute("description")?this.setAttribute("description",e):this.removeAttribute("description"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get disabled(){return this.nativeElement?this.nativeElement.disabled:void 0}set disabled(t){if(this.nativeElement){this.nativeElement.disabled=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("disabled");this.nativeElement.hasAttribute("disabled")?this.setAttribute("disabled",e):this.removeAttribute("disabled"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get draw(){return this.nativeElement?this.nativeElement.draw:void 0}set draw(t){if(this.nativeElement){this.nativeElement.draw=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("draw");this.nativeElement.hasAttribute("draw")?this.setAttribute("draw",e):this.removeAttribute("draw"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get drawBefore(){return this.nativeElement?this.nativeElement.drawBefore:void 0}set drawBefore(t){if(this.nativeElement){this.nativeElement.drawBefore=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("draw-before");this.nativeElement.hasAttribute("draw-before")?this.setAttribute("draw-before",e):this.removeAttribute("draw-before"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get enableAxisTextAnimation(){return this.nativeElement?this.nativeElement.enableAxisTextAnimation:void 0}set enableAxisTextAnimation(t){if(this.nativeElement){this.nativeElement.enableAxisTextAnimation=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("enable-axis-text-animation");this.nativeElement.hasAttribute("enable-axis-text-animation")?this.setAttribute("enable-axis-text-animation",e):this.removeAttribute("enable-axis-text-animation"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get enableCrosshairs(){return this.nativeElement?this.nativeElement.enableCrosshairs:void 0}set enableCrosshairs(t){if(this.nativeElement){this.nativeElement.enableCrosshairs=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("enable-crosshairs");this.nativeElement.hasAttribute("enable-crosshairs")?this.setAttribute("enable-crosshairs",e):this.removeAttribute("enable-crosshairs"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get greyScale(){return this.nativeElement?this.nativeElement.greyScale:void 0}set greyScale(t){if(this.nativeElement){this.nativeElement.greyScale=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("grey-scale");this.nativeElement.hasAttribute("grey-scale")?this.setAttribute("grey-scale",e):this.removeAttribute("grey-scale"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get legendLayout(){return this.nativeElement?this.nativeElement.legendLayout:void 0}set legendLayout(t){if(this.nativeElement){this.nativeElement.legendLayout=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("legend-layout");this.nativeElement.hasAttribute("legend-layout")?this.setAttribute("legend-layout",e):this.removeAttribute("legend-layout"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get locale(){return this.nativeElement?this.nativeElement.locale:void 0}set locale(t){if(this.nativeElement){this.nativeElement.locale=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("locale");this.nativeElement.hasAttribute("locale")?this.setAttribute("locale",e):this.removeAttribute("locale"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get localization(){return this.nativeElement?this.nativeElement.localization:void 0}set localization(t){if(this.nativeElement){this.nativeElement.localization=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("localization");this.nativeElement.hasAttribute("localization")?this.setAttribute("localization",e):this.removeAttribute("localization"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get messages(){return this.nativeElement?this.nativeElement.messages:void 0}set messages(t){if(this.nativeElement){this.nativeElement.messages=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("messages");this.nativeElement.hasAttribute("messages")?this.setAttribute("messages",e):this.removeAttribute("messages"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get padding(){return this.nativeElement?this.nativeElement.padding:void 0}set padding(t){if(this.nativeElement){this.nativeElement.padding=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("padding");this.nativeElement.hasAttribute("padding")?this.setAttribute("padding",e):this.removeAttribute("padding"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get renderEngine(){return this.nativeElement?this.nativeElement.renderEngine:void 0}set renderEngine(t){if(this.nativeElement){this.nativeElement.renderEngine=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("render-engine");this.nativeElement.hasAttribute("render-engine")?this.setAttribute("render-engine",e):this.removeAttribute("render-engine"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get rightToLeft(){return this.nativeElement?this.nativeElement.rightToLeft:void 0}set rightToLeft(t){if(this.nativeElement){this.nativeElement.rightToLeft=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("right-to-left");this.nativeElement.hasAttribute("right-to-left")?this.setAttribute("right-to-left",e):this.removeAttribute("right-to-left"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get seriesGroups(){return this.nativeElement?this.nativeElement.seriesGroups:void 0}set seriesGroups(t){if(this.nativeElement){this.nativeElement.seriesGroups=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("series-groups");this.nativeElement.hasAttribute("series-groups")?this.setAttribute("series-groups",e):this.removeAttribute("series-groups"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showBorderLine(){return this.nativeElement?this.nativeElement.showBorderLine:void 0}set showBorderLine(t){if(this.nativeElement){this.nativeElement.showBorderLine=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-border-line");this.nativeElement.hasAttribute("show-border-line")?this.setAttribute("show-border-line",e):this.removeAttribute("show-border-line"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showLegend(){return this.nativeElement?this.nativeElement.showLegend:void 0}set showLegend(t){if(this.nativeElement){this.nativeElement.showLegend=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-legend");this.nativeElement.hasAttribute("show-legend")?this.setAttribute("show-legend",e):this.removeAttribute("show-legend"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showToolTips(){return this.nativeElement?this.nativeElement.showToolTips:void 0}set showToolTips(t){if(this.nativeElement){this.nativeElement.showToolTips=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-tool-tips");this.nativeElement.hasAttribute("show-tool-tips")?this.setAttribute("show-tool-tips",e):this.removeAttribute("show-tool-tips"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get showToolTipsOnAllSeries(){return this.nativeElement?this.nativeElement.showToolTipsOnAllSeries:void 0}set showToolTipsOnAllSeries(t){if(this.nativeElement){this.nativeElement.showToolTipsOnAllSeries=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("show-tool-tips-on-all-series");this.nativeElement.hasAttribute("show-tool-tips-on-all-series")?this.setAttribute("show-tool-tips-on-all-series",e):this.removeAttribute("show-tool-tips-on-all-series"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get theme(){return this.nativeElement?this.nativeElement.theme:void 0}set theme(t){if(this.nativeElement){this.nativeElement.theme=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("theme");this.nativeElement.hasAttribute("theme")?this.setAttribute("theme",e):this.removeAttribute("theme"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get titlePadding(){return this.nativeElement?this.nativeElement.titlePadding:void 0}set titlePadding(t){if(this.nativeElement){this.nativeElement.titlePadding=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("title-padding");this.nativeElement.hasAttribute("title-padding")?this.setAttribute("title-padding",e):this.removeAttribute("title-padding"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipBackground(){return this.nativeElement?this.nativeElement.toolTipBackground:void 0}set toolTipBackground(t){if(this.nativeElement){this.nativeElement.toolTipBackground=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-background");this.nativeElement.hasAttribute("tool-tip-background")?this.setAttribute("tool-tip-background",e):this.removeAttribute("tool-tip-background"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipFormatFunction(){return this.nativeElement?this.nativeElement.toolTipFormatFunction:void 0}set toolTipFormatFunction(t){if(this.nativeElement){this.nativeElement.toolTipFormatFunction=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-format-function");this.nativeElement.hasAttribute("tool-tip-format-function")?this.setAttribute("tool-tip-format-function",e):this.removeAttribute("tool-tip-format-function"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipHideDelay(){return this.nativeElement?this.nativeElement.toolTipHideDelay:void 0}set toolTipHideDelay(t){if(this.nativeElement){this.nativeElement.toolTipHideDelay=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-hide-delay");this.nativeElement.hasAttribute("tool-tip-hide-delay")?this.setAttribute("tool-tip-hide-delay",e):this.removeAttribute("tool-tip-hide-delay"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipLineColor(){return this.nativeElement?this.nativeElement.toolTipLineColor:void 0}set toolTipLineColor(t){if(this.nativeElement){this.nativeElement.toolTipLineColor=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-line-color");this.nativeElement.hasAttribute("tool-tip-line-color")?this.setAttribute("tool-tip-line-color",e):this.removeAttribute("tool-tip-line-color"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get toolTipShowDelay(){return this.nativeElement?this.nativeElement.toolTipShowDelay:void 0}set toolTipShowDelay(t){if(this.nativeElement){this.nativeElement.toolTipShowDelay=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("tool-tip-show-delay");this.nativeElement.hasAttribute("tool-tip-show-delay")?this.setAttribute("tool-tip-show-delay",e):this.removeAttribute("tool-tip-show-delay"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get valueAxis(){return this.nativeElement?this.nativeElement.valueAxis:void 0}set valueAxis(t){if(this.nativeElement){this.nativeElement.valueAxis=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("value-axis");this.nativeElement.hasAttribute("value-axis")?this.setAttribute("value-axis",e):this.removeAttribute("value-axis"),this._isUpdatingAttribute=!1}}get _isUpdating(){return this.nativeElement?this.nativeElement._isUpdating:void 0}set _isUpdating(t){this.nativeElement&&(this.nativeElement._isUpdating=t)}get xAxis(){return this.nativeElement?this.nativeElement.xAxis:void 0}set xAxis(t){if(this.nativeElement){this.nativeElement.xAxis=t,this._isUpdatingAttribute=!0;const e=this.nativeElement.getAttribute("x-axis");this.nativeElement.hasAttribute("x-axis")?this.setAttribute("x-axis",e):this.removeAttribute("x-axis"),this._isUpdatingAttribute=!1}}static get observedAttributes(){return["style","class","animation","animation-duration","background-color","background-image","border-line-color","border-line-width","caption","clip","color-scheme","column-series-overlap","crosshairs-color","crosshairs-dash-style","crosshairs-line-width","data-source","description","disabled","draw","draw-before","enable-axis-text-animation","enable-crosshairs","grey-scale","legend-layout","locale","localization","messages","padding","render-engine","right-to-left","series-groups","show-border-line","show-legend","show-tool-tips","show-tool-tips-on-all-series","theme","title-padding","tool-tip-background","tool-tip-format-function","tool-tip-hide-delay","tool-tip-line-color","tool-tip-show-delay","value-axis","x-axis"]}get properties(){return["animation","animationDuration","backgroundColor","backgroundImage","borderLineColor","borderLineWidth","caption","clip","colorScheme","columnSeriesOverlap","crosshairsColor","crosshairsDashStyle","crosshairsLineWidth","dataSource","description","disabled","draw","drawBefore","enableAxisTextAnimation","enableCrosshairs","greyScale","legendLayout","locale","localization","messages","padding","renderEngine","rightToLeft","seriesGroups","showBorderLine","showLegend","showToolTips","showToolTipsOnAllSeries","theme","titlePadding","toolTipBackground","toolTipFormatFunction","toolTipHideDelay","toolTipLineColor","toolTipShowDelay","valueAxis","xAxis"]}get onAnnotationClick(){return this._onAnnotationClick}set onAnnotationClick(t){this._onAnnotationClick=t}get onAnnotationMouseenter(){return this._onAnnotationMouseenter}set onAnnotationMouseenter(t){this._onAnnotationMouseenter=t}get onAnnotationMouseleave(){return this._onAnnotationMouseleave}set onAnnotationMouseleave(t){this._onAnnotationMouseleave=t}get onClick(){return this._onClick}set onClick(t){this._onClick=t}get onMouseout(){return this._onMouseout}set onMouseout(t){this._onMouseout=t}get onMouseover(){return this._onMouseover}set onMouseover(t){this._onMouseover=t}get onRangeSelectionChanged(){return this._onRangeSelectionChanged}set onRangeSelectionChanged(t){this._onRangeSelectionChanged=t}get onRangeSelectionChanging(){return this._onRangeSelectionChanging}set onRangeSelectionChanging(t){this._onRangeSelectionChanging=t}get onRefreshBegin(){return this._onRefreshBegin}set onRefreshBegin(t){this._onRefreshBegin=t}get onRefreshEnd(){return this._onRefreshEnd}set onRefreshEnd(t){this._onRefreshEnd=t}get onToggle(){return this._onToggle}set onToggle(t){this._onToggle=t}constructor(){super(),this._onAnnotationClick=null,this._onAnnotationMouseenter=null,this._onAnnotationMouseleave=null,this._onClick=null,this._onMouseout=null,this._onMouseover=null,this._onRangeSelectionChanged=null,this._onRangeSelectionChanging=null,this._onRefreshBegin=null,this._onRefreshEnd=null,this._onToggle=null}get eventListeners(){return["onAnnotationClick","onAnnotationMouseenter","onAnnotationMouseleave","onClick","onMouseout","onMouseover","onRangeSelectionChanged","onRangeSelectionChanging","onRefreshBegin","onRefreshEnd","onToggle"]}addColorScheme(t,e){this.nativeElement.isRendered?this.nativeElement.addColorScheme(t,e):this.nativeElement.whenRendered(()=>{this.nativeElement.addColorScheme(t,e)})}async getColorScheme(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getColorScheme(t);e(r)})}))()}async getItemCoord(t,e,r){return await(()=>new Promise(n=>{this.nativeElement.whenRendered(()=>{const o=this.nativeElement.getItemCoord(t,e,r);n(o)})}))()}async getItemsCount(t,e){return await(()=>new Promise(r=>{this.nativeElement.whenRendered(()=>{const n=this.nativeElement.getItemsCount(t,e);r(n)})}))()}async getValueAxisLabels(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getValueAxisLabels(t);e(r)})}))()}async getValueAxisRect(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getValueAxisRect(t);e(r)})}))()}async getValueAxisValue(t,e){return await(()=>new Promise(r=>{this.nativeElement.whenRendered(()=>{const n=this.nativeElement.getValueAxisValue(t,e);r(n)})}))()}async getXAxisLabels(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getXAxisLabels(t);e(r)})}))()}async getXAxisRect(t){return await(()=>new Promise(e=>{this.nativeElement.whenRendered(()=>{const r=this.nativeElement.getXAxisRect(t);e(r)})}))()}async getXAxisValue(t,e){return await(()=>new Promise(r=>{this.nativeElement.whenRendered(()=>{const n=this.nativeElement.getXAxisValue(t,e);r(n)})}))()}hideSerie(t,e,r){this.nativeElement.isRendered?this.nativeElement.hideSerie(t,e,r):this.nativeElement.whenRendered(()=>{this.nativeElement.hideSerie(t,e,r)})}hideToolTip(t){this.nativeElement.isRendered?this.nativeElement.hideToolTip(t):this.nativeElement.whenRendered(()=>{this.nativeElement.hideToolTip(t)})}print(){this.nativeElement.isRendered?this.nativeElement.print():this.nativeElement.whenRendered(()=>{this.nativeElement.print()})}refresh(){this.nativeElement.isRendered?this.nativeElement.refresh():this.nativeElement.whenRendered(()=>{this.nativeElement.refresh()})}removeColorScheme(t){this.nativeElement.isRendered?this.nativeElement.removeColorScheme(t):this.nativeElement.whenRendered(()=>{this.nativeElement.removeColorScheme(t)})}saveAsJPEG(t){this.nativeElement.isRendered?this.nativeElement.saveAsJPEG(t):this.nativeElement.whenRendered(()=>{this.nativeElement.saveAsJPEG(t)})}saveAsPNG(t){this.nativeElement.isRendered?this.nativeElement.saveAsPNG(t):this.nativeElement.whenRendered(()=>{this.nativeElement.saveAsPNG(t)})}saveAsPDF(t,e){this.nativeElement.isRendered?this.nativeElement.saveAsPDF(t,e):this.nativeElement.whenRendered(()=>{this.nativeElement.saveAsPDF(t,e)})}showSerie(t,e,r){this.nativeElement.isRendered?this.nativeElement.showSerie(t,e,r):this.nativeElement.whenRendered(()=>{this.nativeElement.showSerie(t,e,r)})}showToolTip(t,e,r,n,o){this.nativeElement.isRendered?this.nativeElement.showToolTip(t,e,r,n,o):this.nativeElement.whenRendered(()=>{this.nativeElement.showToolTip(t,e,r,n,o)})}update(){this.nativeElement.isRendered?this.nativeElement.update():this.nativeElement.whenRendered(()=>{this.nativeElement.update()})}componentDidRender(t){const e=this,r={},n={};let o=null;for(let t in e.props)"children"!==t&&("style"!==t?t.startsWith("on")&&-1===e.properties.indexOf(t)?n[t]=e.props[t]:r[t]=e.props[t]:o=e.props[t]);for(let t in e.attributes){const r=e.attributes[t].name;if(r)if("class"!==r)"style"===r&&e.nativeElement.setAttribute(r,e.getAttribute(r)),-1!==e.properties.indexOf(r.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()})))&&e.nativeElement.setAttribute(r,e.getAttribute(r));else{const t=e.getAttribute(r).trim().split(" ");for(let r in t)e.nativeElement.classList.contains(t[r])||""===t[r]||e.nativeElement.classList.add(t[r])}}for(let t in r)if("class"!==t&&"className"!==t){if(r[t]!==e.nativeElement[t]){const n=t=>t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}));"hover"!==t&&"active"!==t&&"focus"!==t&&"selected"!==t||e.nativeElement.setAttribute(t,"");const o=n(t);e.nativeElement[o]=r[t]}}else{const n=r[t].trim().split(" ");for(let t in n)e.nativeElement.classList.contains(n[t])||""===n[t]||e.nativeElement.classList.add(n[t])}for(let t in n)e[t]=n[t],e.nativeElement[t.toLowerCase()]=n[t];if(o)for(let t in o)e.nativeElement.style[t]=o[t]}componentDidMount(){this.componentDidRender(!0)}componentDidUpdate(){this.componentDidRender(!1)}componentWillUnmount(){const t=this;if(t.nativeElement){t.nativeElement.whenRenderedCallbacks=[];for(let e=0;e<t.eventListeners.length;e++){const r=t.eventListeners[e];t.nativeElement.removeEventListener(r.substring(2).toLowerCase(),t[r])}}}connectedCallback(){this.shadowRoot||this._render()}disconnectedCallback(){this.componentWillUnmount()}addStylesToElement(t,e){const r=document.createElement("style");r.type="text/css";for(let t=0;t<e.length;t++){let n=document.createTextNode(e[t]);n.textContent=n.textContent.replace(":root",":host"),r.appendChild(n)}if(document.adoptedStyleSheets){const e=new CSSStyleSheet;e.replaceSync(r.innerHTML),t.adoptedStyleSheets?t.adoptedStyleSheets=[e]:-1===document.adoptedStyleSheets.indexOf(e)&&(document.adoptedStyleSheets=[e])}else t.appendChild(r)}addStyle(t){const e=this.shadowRoot;if("string"==typeof t){const r=document.createElement("style");r.type="text/css";const n=document.createTextNode(t);r.appendChild(n),e.appendChild(r)}else e.appendChild(t)}attributeChangedCallback(t,e,r){const n=this;if(n.shadowRoot&&n.isReady&&!n._isUpdatingAttribute)if("class"!==t)n.nativeElement.setAttribute(t,r);else{const t=r.trim().split(" "),o=e.trim().split(" ");for(let t in o)""!==o[t]&&n.nativeElement.classList.remove(o[t]);for(let e in t)n.nativeElement.classList.contains(t[e])||""===t[e]||n.nativeElement.classList.add(t[e])}}_render(){const t=this;t.innerHTML='<template><smart-chart part="smart-chart" ref="chart">'+this.innerHTML+'</smart-chart ref="chart"></template>',t.attachShadow({mode:"open"}),w&&t.addStylesToElement(t.shadowRoot,w),y&&t.addStylesToElement(t,y),t.hasAttribute("style-url")&&t.addStyle("@import url("+t.getAttribute("style-url")+")"),t.classList.add("smart-element-init");(()=>{const e=t.querySelector("template"),r=e.content.cloneNode(!0);r.props=this.props,t.shadowRoot.appendChild(r),t.nativeElement=t.shadowRoot.querySelector("smart-chart"),t.classList.remove("smart-element-init"),t.componentDidMount(),e.remove(),t.isReady=!0,t.classList.add("smart-ui-component")})()}}e.default=x;window.customElements.get("smart-ui-chart")||window.customElements.define("smart-ui-chart",x)},25:function(t,e){Smart.Utilities.Assign("Draw",class{constructor(t,e){const r=this;r.host=t,r.renderEngine=e||"",r.refresh();const n=["clear","removeElement","attr","getAttr","line","circle","rect","path","pieslice","pieSlicePath","text","measureText"];for(let t in n)r._addFn(Smart.Utilities.Draw.prototype,n[t])}_addFn(t,e){t[e]||(t[e]=function(){return this.renderer[e].apply(this.renderer,arguments)})}_initRenderer(t){return this.createRenderer(this,t)}_internalRefresh(){const t=this;if(t.renderer||(t.host.innerHTML="",t._initRenderer(t.host)),"none"===window.getComputedStyle(t.host).display)return;const e=t.renderer;if(!e)return;const r=e.getRect();t._render({x:1,y:1,width:r.width,height:r.height})}_render(t){this._plotRect=t}refresh(){this._internalRefresh()}getSize(){const t=this._plotRect;return{width:t.width,height:t.height}}toGreyScale(t){if(-1===t.indexOf("#"))return t;const e=this.cssToRgb(t);e[0]=e[1]=e[2]=Math.round(.3*e[0]+.59*e[1]+.11*e[2]);const r=this.rgbToHex(e[0],e[1],e[2]);return"#"+r[0]+r[1]+r[2]}decToHex(t){return t.toString(16)}hexToDec(t){return parseInt(t,16)}rgbToHex(t,e,r){return[this.decToHex(t),this.decToHex(e),this.decToHex(r)]}hexToRgb(t,e,r){return[this.hexToDec(t),this.hexToDec(e),this.hexToDec(r)]}cssToRgb(t){return t.indexOf("rgb")<=-1?this.hexToRgb(t.substring(1,3),t.substring(3,5),t.substring(5,7)):t.substring(4,t.length-1).split(",")}hslToRgb(t){let e,r,n;const o=parseFloat(t[0]),a=parseFloat(t[1]),i=parseFloat(t[2]);if(0===a)e=r=n=i;else{const t=i<.5?i*(1+a):i+a-i*a,s=2*i-t;e=this.hueToRgb(s,t,o+1/3),r=this.hueToRgb(s,t,o),n=this.hueToRgb(s,t,o-1/3)}return[255*e,255*r,255*n]}hueToRgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}rgbToHsl(t){const e=parseFloat(t[0])/255,r=parseFloat(t[1])/255,n=parseFloat(t[2])/255,o=Math.max(e,r,n),a=Math.min(e,r,n);let i,s,l=(o+a)/2;if(o===a)i=s=0;else{const t=o-a;switch(s=l>.5?t/(2-o-a):t/(o+a),o){case e:i=(r-n)/t+(r<n?6:0);break;case r:i=(n-e)/t+2;break;case n:i=(e-r)/t+4}i/=6}return[i,s,l]}swap(t,e){const r=t;t=e,e=r}getNum(t){if(t.constructor!==Array){if(isNaN(t))return 0}else for(let e=0;e<t.length;e++)if(!isNaN(t[e]))return t[e];return 0}_ptRotate(t,e,r,n,o){const a=Math.sqrt(Math.pow(Math.abs(t-r),2)+Math.pow(Math.abs(e-n),2)),i=Math.asin((t-r)/a)+o;return{x:t=r+Math.cos(i)*a,y:e=n+Math.sin(i)*a}}log(t,e){return Math.log(t)/(e?Math.log(e):1)}_mod(t,e){const r=Math.abs(t>e?e:t);let n=1;if(0!==r)for(;r*n<100;)n*=10;return(t*=n)%(e*=n)/n}createRenderer(t,e){const r=t;let n=r.renderer=null;return document.createElementNS&&"HTML5"!==r.renderEngine&&(n=new Smart.Utilities.SvgRenderer(this)),null!==n||"HTML5"!==r.renderEngine&&void 0!==r.renderEngine||(n=new Smart.Utilities.HTML5Renderer(this)),n.init(e),r.renderer=n,n}getByPriority(t){let e=void 0;for(let r=0;r<t.length;r++){const n=t[r];if(null!=n&&""!==n){e=n;break}}return e}get(t,e,r){return void 0!==r?t[e][r]:t[e]}min(t,e){let r=NaN;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);(isNaN(r)||o<r)&&(r=o)}return r}max(t,e){let r=NaN;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);(isNaN(r)||o>r)&&(r=o)}return r}sum(t,e){let r=0;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);isNaN(o)||(r+=o)}return r}count(t,e){let r=0;for(let n=0;n<t.length;n++){const o=this.get(t,n,e);isNaN(o)||r++}return r}avg(t,e){return this.sum(t,e)/Math.max(1,this.count(t,e))}filter(t,e){if(!e)return t;const r=[];for(let n=0;n<t.length;n++)e(t[n])&&r.push(t[n]);return r}scale(t,e,r,n){if(isNaN(t))return NaN;if((t<Math.min(e.min,e.max)||t>Math.max(e.min,e.max))&&(!n||!0!==n.ignore_range))return NaN;let o=NaN,a=1;if(void 0===e.type||"logarithmic"!==e.type){let r=Math.abs(e.max-e.min);r||(r=1),a=Math.abs(t-Math.min(e.min,e.max))/r}else if("logarithmic"===e.type){let r=e.base;isNaN(r)&&(r=10);let n=Math.min(e.min,e.max);n<=0&&(n=1);let o=Math.max(e.min,e.max);o<=0&&(o=1);const i=this.log(o,r);o=Math.pow(r,i);const s=this.log(n,r);n=Math.pow(r,s);const l=this.log(t,r);a=Math.abs(l-s)/(i-s)}if("logarithmic"===r.type){let t=r.base;isNaN(t)&&(t=10);const e=this.log(r.max,t),n=this.log(r.min,t);r.flip&&(a=1-a);const i=Math.min(n,e)+a*Math.abs(e-n);o=Math.pow(t,i)}else o=Math.min(r.min,r.max)+a*Math.abs(r.max-r.min),r.flip&&(o=Math.max(r.min,r.max)-o+r.min);return o}axis(t,e,r){if(r<=1)return[e,t];(isNaN(r)||r<2)&&(r=2);let n=0;for(;Math.round(t)!==t&&Math.round(e)!==e&&n<10;)t*=10,e*=10,n++;let o=(e-t)/r;for(;n<10&&Math.round(o)!==o;)t*=10,e*=10,o*=10,n++;const a=[1,2,5];let i,s=0;for(;;){let t=s%a.length,e=Math.floor(s/a.length),r=Math.pow(10,e)*a[t];if(t=(s+1)%a.length,e=Math.floor((s+1)/a.length),i=Math.pow(10,e)*a[t],o>=r&&o<i)break;s++}const l=i,d=[];let m=this.renderer._rnd(t,l,!1);const c=n<=0?1:Math.pow(10,n);for(;m<e+l;)d.push(m/c),m+=l;return d}_widgetToImage(t,e,r,n,o){let a=t;if(!a)return!1;void 0!==r&&""!==r||(r="image."+e);let i=a.renderEngine,s=a.animation;if(a.animation="none",a.renderEngine="HTML5",a.renderEngine!==i)try{a.refresh()}catch(t){return a.renderEngine=i,a.refresh(),a.animation=s,!1}let l=a.renderer.getContainer().firstElementChild,d=!0;"function"==typeof n&&(d=n(t,l));let m=!0;return d&&(m=this.exportImage(t,l,e,r,o)),a.renderEngine!==i&&(a.renderEngine=i,a.refresh(),a.animation=s),m}_saveAsImage(t,e){return this._widgetToImage(this,t,e)}saveAsPNG(t){return this._saveAsImage("png",t)}saveAsJPEG(t){return this._saveAsImage("jpeg",t)}exportImage(t,e,r,n,o){if(!e)return!1;let a="pdf"===r.toLowerCase();a&&(r="jpeg"),void 0!==n&&""!==n||(n="image."+r);let i=!0;if("print"!==r){try{if(e)if(a){o=o||"portrait";const a={content:{image:e.toDataURL("image/"+r),width:Math.min(e.width/1.35,"portrait"===o?515:762)},pageOrientation:o};try{pdfMake.createPdf(a).download(n)}catch(e){t.error(t.localize("missingReference",{files:"pdfmake.min.js"}))}}else{Smart.Utilities.DataExporter||t.error(t.localize("missingReference",{files:"smart.export.js"}));const o=new Smart.Utilities.DataExporter;e.toBlob((function(t){o.downloadFile(t,r,n)}))}}catch(t){i=!1}return i}{const t=window.open("","","width=800,height=500"),r=t.document.open(),n='<!DOCTYPE html><html><head><meta charset="utf-8" /><title>jQWidgets Chart</title></head><body><img src="'+e.toDataURL()+'" /></html>';try{r.write(n),r.close(),setTimeout((function(){t.print(),t.close()}),100)}catch(t){}}}}),Smart.Utilities.Assign("Renderer",class{constructor(t){this.draw=t,this._gradients={},this._toRadiansCoefficient=2*Math.PI/360}pieSlicePath(t,e,r,n,o,a,i){n||(n=1);const s=Math.abs(o-a),l=s>180?1:0;s>=360&&(a=o+359.99);const d=o*this._toRadiansCoefficient,m=a*this._toRadiansCoefficient;let c=t,h=t,u=e,p=e;const f=!isNaN(r)&&r>0;f&&(i=0);const g=Math.cos(d),b=Math.sin(d),v=Math.cos(m),y=Math.sin(m);if(i+r>0){if(i>0){const r=(s/2+o)*this._toRadiansCoefficient;t+=i*Math.cos(r),e-=i*Math.sin(r)}f&&(c=t+r*g,u=e-r*b,h=t+r*v,p=e-r*y)}const w=t+n*g,x=t+n*v,_=e-n*b,S=e-n*y;let C="";const k=Math.abs(Math.abs(a-o)-360)>.02;return f?(C="M "+h+","+p,C+=" a"+r+","+r,C+=" 0 "+l+",1 "+(c-h)+","+(u-p),C+=k?" L"+w+","+_:" M"+w+","+_,C+=" a"+n+","+n,C+=" 0 "+l+",0 "+(x-w)+","+(S-_),k&&(C+=" Z")):(C="M "+x+","+S,C+=" a"+n+","+n,C+=" 0 "+l+",1 "+(w-x)+","+(_-S),k&&(C+=" L"+t+","+e,C+=" Z")),C}measureText(t,e,r,n){const o=this._getTextParts(t,e,r),a=o.width;let i=o.height;!1===n&&(i/=.6);let s={};if(isNaN(e)&&(e=0),0===e)s={width:this._rup(a),height:this._rup(i)};else{const t=e*Math.PI*2/360,r=Math.abs(Math.sin(t)),n=Math.abs(Math.cos(t)),o=Math.abs(a*r+i*n),l=Math.abs(a*n+i*r);s={width:this._rup(l),height:this._rup(o)}}return n&&(s.textPartsInfo=o),s}alignTextInRect(t,e,r,n,o,a,i,s,l,d){const m=l*Math.PI*2/360,c=Math.sin(m),h=Math.cos(m),u=o*c,p=o*h;"center"===i||""===i||"undefined"===i?t+=r/2:"right"===i&&(t+=r),"center"===s||"middle"===s||""===s||"undefined"===s?e+=n/2:"bottom"===s?e+=n-a/2:"top"===s&&(e+=a/2);let f="middle";-1!==(d=d||"").indexOf("top")?f="top":-1!==d.indexOf("bottom")&&(f="bottom");let g="center";return-1!==d.indexOf("left")?g="left":-1!==d.indexOf("right")&&(g="right"),"center"===g?(t-=p/2,e-=u/2):"right"===g&&(t-=p,e-=u),"top"===f?(t-=a*c,e+=a*h):"middle"===f&&(t-=a*c/2,e+=a*h/2),{x:t=this._rup(t),y:e=this._rup(e)}}adjustColor(t,e){if("string"!=typeof t)return"#000000";if(-1===t.indexOf("#"))return t;const r=this.draw;let n=r.cssToRgb(t);const o=r.rgbToHsl(n);o[2]=Math.min(1,o[2]*e),o[1]=Math.min(1,o[1]*e*1.1),n=r.hslToRgb(o),t="#";for(let e=0;e<3;e++){let o=Math.round(n[e]);o=r.decToHex(o),1===o.toString().length&&(t+="0"),t+=o}return t.toUpperCase()}_rup(t){let e=Math.round(t);return t>e&&e++,e}_ptdist(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}_rnd(t,e,r,n){if(isNaN(t))return t;void 0===n&&(n=!0);let o=t-(!0===n?t%e:this._mod(t,e));return t===o?o:(r?t>o&&(o+=e):o>t&&(o-=e),1===e?Math.round(o):o)}_ptrnd(t){if(!document.createElementNS)return Math.round(t)===t?t:this._rnd(t,1,!1,!0);const e=this._rnd(t,.5,!1,!0);return.5!==Math.abs(e-Math.round(e))?e>t?e-.5:e+.5:e}_getContrastColor(t){if(void 0===t)return;let e=this.draw.hexToRgb(t.slice(1,3),t.slice(3,5),t.slice(5,7));return(.299*e[0]+.61*e[1]+.114*e[2])/255>.6?"#000000":"#FFFFFF"}}),Smart.Utilities.Assign("SvgRenderer",class extends Smart.Utilities.Renderer{constructor(t){super(t);this._svgns="http://www.w3.org/2000/svg",this._openGroups=[],this._clipId=0}init(t){const e=document.createElement("div");e.className="drawContainer",e.onselectstart=function(){return!1},t.appendChild(e),this.host=t,this.container=e;try{const t=document.createElementNS(this._svgns,"svg");t.setAttribute("version","1.1"),t.setAttribute("width","100%"),t.setAttribute("height","100%"),t.setAttribute("overflow","hidden"),e.appendChild(t),this.canvas=t}catch(t){return!1}return this._id=(new Date).getTime(),this.clear(),!0}getType(){return"SVG"}refresh(){}getRect(){return{x:0,y:0,width:Math.max(this._rup(this.host.offsetWidth)-1,0),height:Math.max(this._rup(this.host.offsetHeight)-1,0)}}getContainer(){return this.container}clear(){for(;this.canvas.childNodes.length>0;)this.removeElement(this.canvas.firstElementChild);this._defaultParent=void 0,this._defs=document.createElementNS(this._svgns,"defs"),this._gradients={},this.canvas.appendChild(this._defs)}removeElement(t){if(void 0!==t)try{for(;t.firstChild;)this.removeElement(t.firstChild);t.parentNode?t.parentNode.removeChild(t):this.canvas.removeChild(t)}catch(t){}}beginGroup(){const t=this._activeParent(),e=document.createElementNS(this._svgns,"g");return t.appendChild(e),this._openGroups.push(e),e}endGroup(){0!==this._openGroups.length&&this._openGroups.pop()}_activeParent(){return 0===this._openGroups.length?this.canvas:this._openGroups[this._openGroups.length-1]}createClipRect(t){const e=document.createElementNS(this._svgns,"clipPath"),r=document.createElementNS(this._svgns,"rect");return this.attr(r,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"none"}),this._clipId=this._clipId||0,e.id="cl"+this._id+"_"+(++this._clipId).toString(),e.appendChild(r),this._defs.appendChild(e),e}getWindowHref(){let t=window.location.href;return t?(t=t.replace(/([\('\)])/g,"\\$1"),t=t.replace(/#.*$/,""),t):t}setClip(t,e){const r="url("+this.getWindowHref()+"#"+e.id+")";return this.attr(t,{"clip-path":r})}addHandler(t,e,r){t.addEventListener(e,r)}removeHandler(){}on(t,e,r){this.addHandler(t,e,r)}off(t,e,r){this.removeHandler(t,e,r)}shape(t,e){const r=document.createElementNS(this._svgns,t);if(r){for(let t in e)r.setAttribute(t,e[t]);return this._activeParent().appendChild(r),r}}_getTextParts(t,e,r){const n={width:0,height:0,parts:[]};if(void 0===t)return n;const o=t.toString().split("<br>"),a=this._activeParent(),i=document.createElementNS(this._svgns,"text");this.attr(i,r);for(let t=0;t<o.length;t++){const e=o[t],r=i.ownerDocument.createTextNode(e);let s;i.appendChild(r),a.appendChild(i);try{s=i.getBBox()}catch(t){}const l=this._rup(s.width),d=this._rup(.6*s.height);i.removeChild(r),n.width=Math.max(n.width,l),n.height+=d+(t>0?4:0),n.parts.push({width:l,height:d,text:e})}return a.removeChild(i),n}_measureText(t,e,r,n){return super.measureText(t,e,r,n)}measureText(t,e,r){return this._measureText(t,e,r,!1)}text(t,e,r,n,o,a,i,s,l,d,m){const c=this._measureText(t,a,i,!0,this).textPartsInfo,h=c.parts,u=this._getContrastColor(arguments[11]);let p;if(l||(l="center"),d||(d="center"),(h.length>1||s)&&(p=this.beginGroup()),s){const t=this.createClipRect({x:this._rup(e)-1,y:this._rup(r)-1,width:this._rup(n)+2,height:this._rup(o)+2});this.setClip(p,t)}let f=this._activeParent(),g=0,b=0;g=c.width,b=c.height,(isNaN(n)||n<=0)&&(n=g),(isNaN(o)||o<=0)&&(o=b);const v=n||0,y=o||0;let w=0;if(!a||0===a){let t;r+=b,"center"===d||"middle"===d?r+=(y-b)/2:"bottom"===d&&(r+=y-b),n||(n=g),o||(o=b),f=this._activeParent();for(let n=h.length-1;n>=0;n--){t=document.createElementNS(this._svgns,"text"),this.attr(t,i),this.attr(t,{cursor:"default"});const o=t.ownerDocument.createTextNode(h[n].text);t.appendChild(o);let a=e;const s=h[n].width,d=h[n].height;"center"===l?a+=(v-s)/2:"right"===l&&(a+=v-s),this.attr(t,{x:this._rup(a),y:this._rup(r+w),width:this._rup(s),height:this._rup(d)}),void 0!==u&&(t.style.fill=u),f.appendChild(t),w-=h[n].height+4}return p?(this.endGroup(),p):t}const x=this.alignTextInRect(e,r,n,o,g,b,l,d,a,m);e=x.x,r=x.y;const _=this.shape("g",{transform:"translate("+e+","+r+")"}),S=this.shape("g",{transform:"rotate("+a+")"});_.appendChild(S),w=0;for(let t=h.length-1;t>=0;t--){const e=document.createElementNS(this._svgns,"text");this.attr(e,i),this.attr(e,{cursor:"default"});const r=e.ownerDocument.createTextNode(h[t].text);e.appendChild(r);let n=0;const o=h[t].width,a=h[t].height;"center"===l?n+=(c.width-o)/2:"right"===l&&(n+=c.width-o),this.attr(e,{x:this._rup(n),y:this._rup(w),width:this._rup(o),height:this._rup(a)}),S.appendChild(e),w-=a+4}return f.appendChild(_),p&&this.endGroup(),_}line(t,e,r,n,o){const a=this.shape("line",{x1:t,y1:e,x2:r,y2:n});return this.attr(a,o),a}path(t,e){const r=this.shape("path");return r.setAttribute("d",t),e&&this.attr(r,e),r}rect(t,e,r,n,o){t=this._ptrnd(t),e=this._ptrnd(e),r=Math.max(1,this._rnd(r,1,!1)),n=Math.max(1,this._rnd(n,1,!1));const a=this.shape("rect",{x:t,y:e,width:r,height:n});return o&&this.attr(a,o),a}circle(t,e,r,n){const o=this.shape("circle",{cx:t,cy:e,r:r});return n&&this.attr(o,n),o}pieslice(t,e,r,n,o,a,i,s){const l=this.pieSlicePath(t,e,r,n,o,a,i),d=this.shape("path");return d.setAttribute("d",l),s&&this.attr(d,s),d}attr(t,e){if(t&&e)for(let r in e)"textContent"===r?t.textContent=e[r]:"width"===r||"height"===r?t.setAttribute(r,Math.max(0,e[r])):t.setAttribute(r,e[r])}removeAttr(t,e){if(t&&e)for(let r in e)"textContent"===r?t.textContent="":t.removeAttribute(e[r])}getAttr(t,e){return t.getAttribute(e)}_toLinearGradient(t,e,r){const n="grd"+this._id+t.replace("#","")+(e?"v":"h"),o="url("+this.getWindowHref()+"#"+n+")";if(this._gradients[o])return o;const a=document.createElementNS(this._svgns,"linearGradient");this.attr(a,{x1:"0%",y1:"0%",x2:e?"0%":"100%",y2:e?"100%":"0%",id:n});for(let e=0;e<r.length;e++){const n=r[e],o=document.createElementNS(this._svgns,"stop"),i="stop-color:"+this.adjustColor(t,n[1]);this.attr(o,{offset:n[0]+"%",style:i}),a.appendChild(o)}return this._defs.appendChild(a),this._gradients[o]=!0,o}_toRadialGradient(t,e,r){const n="grd"+this._id+t.replace("#","")+"r"+(void 0!==r?r.key:""),o="url("+this.getWindowHref()+"#"+n+")";if(this._gradients[o])return o;const a=document.createElementNS(this._svgns,"radialGradient");void 0===r?this.attr(a,{cx:"50%",cy:"50%",r:"100%",fx:"50%",fy:"50%",id:n}):this.attr(a,{cx:r.x,cy:r.y,r:r.outerRadius,id:n,gradientUnits:"userSpaceOnUse"});for(let r=0;r<e.length;r++){const n=e[r],o=document.createElementNS(this._svgns,"stop"),i="stop-color:"+this.adjustColor(t,n[1]);this.attr(o,{offset:n[0]+"%",style:i}),a.appendChild(o)}return this._defs.appendChild(a),this._gradients[o]=!0,o}}),Smart.Utilities.Assign("HTML5Renderer",class extends Smart.Utilities.Renderer{constructor(t){super(t);this._renderers=new Smart.Utilities.HTML5RenderHelpers(this)}init(t){try{this.host=t;const e=document.createElement("div"),r=document.createElement("canvas");e.className="chartContainer",e.style.position="relative",e.onselectstart=function(){return!1},r.id="__smartCanvasWrap",r.style.width="100%",r.style.height="100%",e.appendChild(r),t.appendChild(e),this.canvas=r,r.width=t.offsetWidth,r.height=t.offsetHeight,this.ctx=r.getContext("2d"),this._elements={},this._maxId=0,this._gradientId=0,this._gradients={},this._currentPoint={x:0,y:0},this._lastCmd="",this._pos=0}catch(t){return!1}return!0}getType(){return"HTML5"}getContainer(){return this.host.getElementsByClassName("chartContainer")[0]}getRect(){return{x:0,y:0,width:this.canvas.width-1,height:this.canvas.height-1}}beginGroup(){}endGroup(){}setClip(){}createClipRect(){}addHandler(){}removeHandler(){}on(t,e,r){this.addHandler(t,e,r)}off(t,e,r){this.removeHandler(t,e,r)}clear(){this._elements={},this._maxId=0,this._renderers._gradients={},this._gradientId=0}removeElement(t){void 0!==t&&this._elements[t.id]&&delete this._elements[t.id]}shape(t,e){let r={type:t,id:this._maxId++};for(let t in e)r[t]=e[t];return this._elements[r.id]=r,r}attr(t,e){for(let r in e)t[r]=e[r]}removeAttr(t,e){for(let r in e)delete t[e[r]]}rect(t,e,r,n,o){if(isNaN(t))throw'Invalid value for "x"';if(isNaN(e))throw'Invalid value for "y"';if(isNaN(r))throw'Invalid value for "width"';if(isNaN(n))throw'Invalid value for "height"';let a=this.shape("rect",{x:t,y:e,width:r,height:n});return o&&this.attr(a,o),a}path(t,e){let r=this.shape("path",e);return this.attr(r,{d:t}),r}line(t,e,r,n,o){return this.path("M "+t+","+e+" L "+r+","+n,o)}circle(t,e,r,n){let o=this.shape("circle",{x:t,y:e,r:r});return n&&this.attr(o,n),o}pieslice(t,e,r,n,o,a,i,s){let l=this.path(this.pieSlicePath(t,e,r,n,o,a,i),s);return this.attr(l,{x:t,y:e,innerRadius:r,outerRadius:n,angleFrom:o,angleTo:a}),l}_getCSSStyle(t){const e=document.createElement("div");e.className=t,e.style.position="absolute",e.style.visibility="hidden",this.host.appendChild(e);let r=window.getComputedStyle(e);return r={color:r.color,fontFamily:r.fontFamily,fontSize:r.fontSize,fontWeight:r.fontWeight},this.host.removeChild(e),r}_getTextParts(t,e,r){let n="Arial",o="10pt",a="";if(r&&r.class){let t=this._getCSSStyle(r.class);t.fontSize&&(o=t.fontSize),t.fontFamily&&(n=t.fontFamily),t.fontWeight&&(a=t.fontWeight)}this.ctx.font=a+" "+o+" "+n;let i={width:0,height:0,parts:[]},s=t.toString().split("<br>");for(let t=0;t<s.length;t++){let e=s[t],r=this.ctx.measureText(e).width,n=document.createElement("span");n.className="chart",n.font=this.ctx.font,n.textContent=e,this.host.appendChild(n);let o=.6*n.offsetHeight;this.host.removeChild(n),i.width=Math.max(i.width,this._rup(r)),i.height+=o+(t>0?4:0),i.parts.push({width:r,height:o,text:e})}return i}_measureText(t,e,r,n){return super.measureText(t,e,r,n)}measureText(t,e,r){return this._measureText(t,e,r,!1)}text(t,e,r,n,o,a,i,s,l,d,m){let c=this.shape("text",{text:t,x:e,y:r,width:n,height:o,angle:a,clip:s,halign:l,valign:d,rotateAround:m});if(i&&this.attr(c,i),c.fontFamily="Arial",c.fontSize="10pt",c.fontWeight="",c.color=this._getContrastColor(arguments[11]),i&&i.class){let t=this._getCSSStyle(i.class);c.fontFamily=t.fontFamily||c.fontFamily,c.fontSize=t.fontSize||c.fontSize,c.fontWeight=t.fontWeight||c.fontWeight,c.color=c.color||t.color}c.color=c.color||"#000000";let h=this._measureText(t,0,i,!0);return this.attr(c,{textPartsInfo:h.textPartsInfo,textWidth:h.width,textHeight:h.height}),(n<=0||isNaN(n))&&this.attr(c,{width:h.width}),(o<=0||isNaN(o))&&this.attr(c,{height:h.height}),c}_toLinearGradient(t,e,r){if(this._renderers._gradients[t])return t;let n=[];for(let e=0;e<r.length;e++)n.push({percent:r[e][0]/100,color:this.adjustColor(t,r[e][1])});let o="gr"+this._gradientId++;return this.createGradient(o,e?"vertical":"horizontal",n),o}_toRadialGradient(t,e){if(this._renderers._gradients[t])return t;let r=[];for(let n=0;n<e.length;n++)r.push({percent:e[n][0]/100,color:this.adjustColor(t,e[n][1])});let n="gr"+this._gradientId++;return this.createGradient(n,"radial",r),n}createGradient(t,e,r){this._renderers.createGradient(this,t,e,r)}refresh(){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);for(let t in this._elements){let e=this._elements[t];this._renderers.setFillStyle(this,e),this._renderers.setStroke(this,e),this._renderers[this._elements[t].type](this.ctx,e)}}}),Smart.Utilities.Assign("HTML5RenderHelpers",class{constructor(t){this.HTML5Renderer=t,this._cmds="mlcazq"}ptrnd(t){if(.5===Math.abs(Math.round(t)-t))return t;let e=Math.round(t);return e<t&&(e-=1),e+.5}createGradient(t,e,r,n){t._gradients[e]={orientation:r,colorStops:n}}setStroke(t,e){let r=t.ctx,n=e["stroke-width"];r.strokeStyle=e.stroke||"transparent",r.lineWidth=0===n?.01:void 0!==n?n:1,void 0!==e["fill-opacity"]?r.globalAlpha=e["fill-opacity"]:void 0!==e.opacity?r.globalAlpha=e.opacity:r.globalAlpha=1,r.setLineDash&&(e["stroke-dasharray"]?r.setLineDash(e["stroke-dasharray"].split(",")):r.setLineDash([]))}setFillStyle(t,e){let r=t.ctx;if(r.fillStyle="transparent",void 0!==e["fill-opacity"]?r.globalAlpha=e["fill-opacity"]:void 0!==e.opacity?r.globalAlpha=e.opacity:r.globalAlpha=1,e.fill&&-1===e.fill.indexOf("#")&&t._gradients[e.fill]){let n,o="horizontal"!==t._gradients[e.fill].orientation,a="radial"===t._gradients[e.fill].orientation,i=this.ptrnd(e.x),s=this.ptrnd(e.y),l=this.ptrnd(e.x+(o?0:e.width)),d=this.ptrnd(e.y+(o?e.height:0));if(("circle"===e.type||"path"===e.type||"rect"===e.type)&&a){let t=this.ptrnd(e.x),o=this.ptrnd(e.y);const a=e.innerRadius||0,i=e.outerRadius||e.r||0;"rect"===e.type&&(t+=e.width/2,o+=e.height/2),n=r.createRadialGradient(t,o,a,t,o,i)}a||((isNaN(i)||isNaN(l)||isNaN(s)||isNaN(d))&&(i=0,s=0,l=o?0:r.canvas.width,d=o?r.canvas.height:0),n=r.createLinearGradient(i,s,l,d));let m=t._gradients[e.fill].colorStops;for(let t=0;t<m.length;t++)n.addColorStop(m[t].percent,m[t].color);r.fillStyle=n}else e.fill&&(r.fillStyle=e.fill)}rect(t,e){0!==e.width&&0!==e.height&&(t.fillRect(this.ptrnd(e.x),this.ptrnd(e.y),e.width,e.height),t.strokeRect(this.ptrnd(e.x),this.ptrnd(e.y),e.width,e.height))}circle(t,e){0!==e.r&&(t.beginPath(),t.arc(this.ptrnd(e.x),this.ptrnd(e.y),e.r,0,2*Math.PI,!1),t.closePath(),t.fill(),t.stroke())}_parsePoint(t){return{x:this._parseNumber(t),y:this._parseNumber(t)}}_parseNumber(t){let e,r=!1;for(e=this._pos;e<t.length;e++)if(t[e]>="0"&&t[e]<="9"||"."===t[e]||"e"===t[e]||"-"===t[e]&&!r||"-"===t[e]&&e>=1&&"e"===t[e-1])r=!0;else{if(r||" "!==t[e]&&","!==t[e])break;this._pos++}let n=parseFloat(t.substring(this._pos,e));if(!isNaN(n))return this._pos=e,n}_isRelativeCmd(t){return-1!==this._cmds.indexOf(t)}_parseCmd(t){for(let e=this._pos;e<t.length;e++){if(-1!==this._cmds.toLowerCase().indexOf(t[e].toLowerCase()))return this._pos=e+1,this._lastCmd=t[e],this._lastCmd;if(" "!==t[e]){if(t[e]>="0"&&t[e]<="9"){if(this._pos=e,""===this._lastCmd)break;return this._lastCmd}}else this._pos++}}_toAbsolutePoint(t){return{x:this._currentPoint.x+t.x,y:this._currentPoint.y+t.y}}path(t,e){let r=e.d;this._pos=0,this._lastCmd="";let n=void 0;for(this._currentPoint={x:0,y:0},t.beginPath();this._pos<r.length;){let e=this._parseCmd(r);if(void 0===e)break;if("M"!==e&&"m"!==e)if("L"!==e&&"l"!==e)if("A"!==e&&"a"!==e)if("Z"!==e&&"z"!==e||void 0===n)if("C"!==e&&"c"!==e)if("Q"!==e&&"q"!==e);else{let e=this._parsePoint(r),n=this._parsePoint(r);t.quadraticCurveTo(e.x,e.y,n.x,n.y),this._currentPoint=n}else{let e=this._parsePoint(r),n=this._parsePoint(r),o=this._parsePoint(r);t.bezierCurveTo(e.x,e.y,n.x,n.y,o.x,o.y),this._currentPoint=o}else t.lineTo(n.x,n.y),this._currentPoint=n;else{let n=this._parseNumber(r),o=this._parseNumber(r),a=this._parseNumber(r)*(Math.PI/180),i=this._parseNumber(r),s=this._parseNumber(r),l=this._parsePoint(r);if(this._isRelativeCmd(e)&&(l=this._toAbsolutePoint(l)),0===n||0===o)continue;let d=this._currentPoint,m={x:Math.cos(a)*(d.x-l.x)/2+Math.sin(a)*(d.y-l.y)/2,y:-Math.sin(a)*(d.x-l.x)/2+Math.cos(a)*(d.y-l.y)/2},c=Math.pow(m.x,2)/Math.pow(n,2)+Math.pow(m.y,2)/Math.pow(o,2);c>1&&(n*=Math.sqrt(c),o*=Math.sqrt(c));let h=(i===s?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(o,2)-Math.pow(n,2)*Math.pow(m.y,2)-Math.pow(o,2)*Math.pow(m.x,2))/(Math.pow(n,2)*Math.pow(m.y,2)+Math.pow(o,2)*Math.pow(m.x,2)));isNaN(h)&&(h=0);let u={x:h*n*m.y/o,y:h*-o*m.x/n},p={x:(d.x+l.x)/2+Math.cos(a)*u.x-Math.sin(a)*u.y,y:(d.y+l.y)/2+Math.sin(a)*u.x+Math.cos(a)*u.y},f=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},g=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(f(t)*f(e))},b=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))},v=b([1,0],[(m.x-u.x)/n,(m.y-u.y)/o]),y=[(m.x-u.x)/n,(m.y-u.y)/o],w=[(-m.x-u.x)/n,(-m.y-u.y)/o],x=b(y,w);g(y,w)<=-1&&(x=Math.PI),g(y,w)>=1&&(x=0),0===s&&x>0&&(x-=2*Math.PI),1===s&&x<0&&(x+=2*Math.PI);let _=n>o?n:o,S=n>o?1:n/o,C=n>o?o/n:1;t.translate(p.x,p.y),t.rotate(a),t.scale(S,C),t.arc(0,0,_,v,v+x,1-s),t.scale(1/S,1/C),t.rotate(-a),t.translate(-p.x,-p.y)}else{let e=this._parsePoint(r);if(void 0===e)break;t.lineTo(e.x,e.y),this._currentPoint=e}else{let e=this._parsePoint(r);if(void 0===e)break;t.moveTo(e.x,e.y),this._currentPoint=e,void 0===n&&(n=e)}}t.fill(),t.stroke(),t.closePath()}text(t,e){let r=this.ptrnd(e.x),n=this.ptrnd(e.y),o=this.ptrnd(e.width),a=this.ptrnd(e.height),i=e.halign,s=e.valign,l=e.angle,d=e.rotateAround,m=e.textPartsInfo,c=m.parts,h=e.clip;void 0===h&&(h=!0),t.save(),i||(i="center"),s||(s="center"),h&&(t.rect(r,n,o,a),t.clip());let u=e.textWidth,p=e.textHeight,f=o||0,g=a||0;if(t.fillStyle=e.color,t.font=e.fontWeight+" "+e.fontSize+" "+e.fontFamily,!l||0===l){n+=p,"center"===s||"middle"===s?n+=(g-p)/2:"bottom"===s&&(n+=g-p),o||(o=u),a||(a=p);let e=0;for(let o=c.length-1;o>=0;o--){let a=c[o],s=r,l=c[o].width;"center"===i?s+=(f-l)/2:"right"===i&&(s+=f-l),t.fillText(a.text,s,n+e),e-=a.height+(o>0?4:0)}return void t.restore()}let b=this.HTML5Renderer.alignTextInRect(r,n,o,a,u,p,i,s,l,d);r=b.x,n=b.y;let v=l*Math.PI*2/360;t.translate(r,n),t.rotate(v);let y=0,w=m.width;for(let e=c.length-1;e>=0;e--){let r=0;"center"===i?r+=(w-c[e].width)/2:"right"===i&&(r+=w-c[e].width),t.fillText(c[e].text,r,y),y-=c[e].height+4}t.restore()}}),Smart.Utilities.Assign("Plot",class{constructor(t){this.renderer=t}get(t,e,r){return void 0!==r?t[e][r]:t[e]}min(t,e){let r=NaN;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);(isNaN(r)||o<r)&&(r=o)}return r}max(t,e){let r=NaN;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);(isNaN(r)||o>r)&&(r=o)}return r}sum(t,e){let r=0;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);isNaN(o)||(r+=o)}return r}count(t,e){let r=0;for(let n=0;n<t.length;n++){let o=this.get(t,n,e);isNaN(o)||r++}return r}avg(t,e){return this.sum(t,e)/Math.max(1,this.count(t,e))}filter(t,e){if(!e)return t;let r=[];for(let n=0;n<t.length;n++)e(t[n])&&r.push(t[n]);return r}scale(t,e,r,n){if(isNaN(t))return NaN;if((t<Math.min(e.min,e.max)||t>Math.max(e.min,e.max))&&(!n||!0!==n.ignore_range))return NaN;let o=NaN,a=1;if(void 0===e.type||"logarithmic"!==e.type){let r=Math.abs(e.max-e.min);r||(r=1),a=Math.abs(t-Math.min(e.min,e.max))/r}else if("logarithmic"===e.type){let r=e.base;isNaN(r)&&(r=10);let n=Math.min(e.min,e.max);n<=0&&(n=1);let o=Math.max(e.min,e.max);o<=0&&(o=1);let i=Math.log(o)/Math.log(r);o=Math.pow(r,i);let s=Math.log(n)/Math.log(r);n=Math.pow(r,s);let l=Math.log(t)/Math.log(r);a=Math.abs(l-s)/(i-s)}if("logarithmic"===r.type){let t=r.base;isNaN(t)&&(t=10);let e=Math.log(r.max)/Math.log(t),n=Math.log(r.min)/Math.log(t);r.flip&&(a=1-a);let i=Math.min(n,e)+a*Math.abs(e-n);o=Math.pow(t,i)}else o=Math.min(r.min,r.max)+a*Math.abs(r.max-r.min),r.flip&&(o=Math.max(r.min,r.max)-o+r.min);return o}axis(t,e,r){if(r<=1)return[e,t];(isNaN(r)||r<2)&&(r=2);let n=0;for(;Math.round(t)!==t&&Math.round(e)!==e&&n<10;)t*=10,e*=10,n++;let o=(e-t)/r;for(;n<10&&Math.round(o)!==o;)t*=10,e*=10,o*=10,n++;let a,i=[1,2,5],s=0;for(;;){let t=s%i.length,e=Math.floor(s/i.length),r=Math.pow(10,e)*i[t];if(t=(s+1)%i.length,e=Math.floor((s+1)/i.length),a=Math.pow(10,e)*i[t],o>=r&&o<a)break;s++}let l=a,d=[],m=this.renderer._rnd(t,l,!1),c=n<=0?1:Math.pow(10,n);for(;m<e+l;)d.push(m/c),m+=l;return d}})},3:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* all elements */\r\nsmart-accordion,\r\nsmart-button,\r\nsmart-toggle-button,\r\nsmart-repeat-button,\r\nsmart-switch-button,\r\nsmart-slider,\r\nsmart-led,\r\nsmart-tank,\r\nsmart-check-box,\r\nsmart-calendar,\r\nsmart-carousel,\r\nsmart-card,\r\nsmart-radio-button,\r\nsmart-progress-bar,\r\nsmart-circular-progress-bar,\r\nsmart-scroll-bar,\r\nsmart-gauge,\r\nsmart-grid,\r\nsmart-numeric-text-box,\r\nsmart-list-box,\r\nsmart-combo-box,\r\nsmart-docking-layout,\r\nsmart-drop-down-list,\r\nsmart-drop-down-button,\r\nsmart-multi-split-button,\r\nsmart-power-button,\r\nsmart-text-box,\r\nsmart-multiline-text-box,\r\nsmart-password-text-box,\r\nsmart-masked-text-box,\r\nsmart-tabs,\r\nsmart-date-time-picker,\r\nsmart-array,\r\nsmart-time-picker,\r\nsmart-menu,\r\nsmart-list-menu,\r\nsmart-window,\r\nsmart-alert-window,\r\nsmart-prompt-window,\r\nsmart-multiline-prompt-window,\r\nsmart-progress-window,\r\nsmart-tabs-window,\r\nsmart-dialog-window,\r\nsmart-pager,\r\nsmart-progress-window,\r\nsmart-wait-window,\r\nsmart-splitter,\r\nsmart-tree,\r\nsmart-filter-panel,\r\nsmart-breadcrumb,\r\nsmart-color-panel,\r\nsmart-color-picker,\r\nsmart-sort-panel,\r\nsmart-group-panel,\r\nsmart-column-panel,\r\nsmart-multi-column-filter-panel,\r\nsmart-query-builder,\r\nsmart-card-view,\r\nsmart-tooltip,\r\nsmart-layout,\r\nsmart-path,\r\nsmart-kanban,\r\nsmart-gantt-chart,\r\nsmart-sheduler,\r\nsmart-pivot-panel {\r\n padding: 0px;\r\n margin: 0px;\r\n overflow: hidden;\r\n display: block;\r\n}\r\n\r\n.smart-element {\r\n outline: none;\r\n box-sizing: border-box;\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n font-weight: var(--smart-font-weight);\r\n /* Apple iOS specific browser CSS variable used for area highlighting on click. Reference link for details:\r\n https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/AdjustingtheTextSize/AdjustingtheTextSize.html#//apple_ref/doc/uid/TP40006510-SW5 */\r\n -webkit-tap-highlight-color: transparent;\r\n background: var(--smart-background);\r\n color: var(--smart-background-color);\r\n}\r\n\r\n.smart-root {\r\n width: 100%;\r\n height: 100%;\r\n padding: 0;\r\n margin: 0;\r\n box-sizing: border-box;\r\n}\r\n\r\nsmart-button[disabled],\r\nsmart-calendar[disabled],\r\nsmart-combo-box[disabled],\r\nsmart-chip[disabled],\r\nsmart-toggle-button[disabled],\r\nsmart-repeat-button[disabled],\r\nsmart-switch-button[disabled],\r\nsmart-slider[disabled],\r\nsmart-led[disabled],\r\nsmart-tank[disabled],\r\nsmart-check-box[disabled],\r\nsmart-radio-button[disabled],\r\nsmart-progress-bar[disabled],\r\nsmart-circular-progress-bar[disabled],\r\nsmart-gauge[disabled],\r\nsmart-grid[disabled],\r\nsmart-numeric-text-box[disabled],\r\nsmart-list-item[disabled],\r\nsmart-list-box[disabled],\r\nsmart-drop-down-list[disabled],\r\nsmart-drop-down-button[disabled],\r\nsmart-multi-split-button[disabled],\r\nsmart-scroll-bar[disabled],\r\nsmart-power-button[disabled],\r\nsmart-text-box[disabled],\r\nsmart-multiline-text-box[disabled],\r\nsmart-password-text-box[disabled],\r\nsmart-tab[disabled],\r\nsmart-tabs[disabled],\r\nsmart-time-picker[disabled],\r\nsmart-menu-item[disabled],\r\nsmart-menu-items-group[disabled],\r\nsmart-menu[disabled],\r\nsmart-list-menu[disabled],\r\nsmart-window[disabled],\r\nsmart-dialog-window[disabled],\r\nsmart-progress-window[disabled],\r\nsmart-wait-window[disabled],\r\nsmart-alert-window[disabled],\r\nsmart-prompt-window[disabled],\r\nsmart-card[disabled],\r\nsmart-multiline-prompt-window[disabled],\r\nsmart-splitter[disabled],\r\nsmart-tree-item[disabled]>.smart-tree-item-label-container,\r\nsmart-tree-items-group[disabled]>.smart-tree-item-label-container,\r\nsmart-tree[disabled],\r\nsmart-docking-layout[disabled],\r\nsmart-filter-panel[disabled],\r\nsmart-breadcrumb[disabled],\r\nsmart-pager[disabled],\r\nsmart-pager .smart-pager-button[disabled],\r\nsmart-color-panel[disabled],\r\nsmart-color-picker[disabled],\r\nsmart-input[disabled],\r\nsmart-check-input[disabled],\r\nsmart-number-input[disabled],\r\nsmart-multi-input[disabled],\r\nsmart-multi-combo-input[disabled],\r\nsmart-date-input[disabled],\r\nsmart-time-input[disabled],\r\nsmart-date-range-input[disabled],\r\nsmart-password-input[disabled],\r\nsmart-text-area[disabled],\r\nsmart-sort-panel[disabled],\r\nsmart-group-panel[disabled],\r\nsmart-column-panel[disabled],\r\nsmart-multi-column-filter-panel[disabled],\r\nsmart-card-view[disabled],\r\nsmart-query-builder[disabled],\r\nsmart-date-time-picker[disabled],\r\nsmart-layout[disabled],\r\nsmart-path[disabled],\r\nsmart-kanban[disabled],\r\nsmart-gantt[disabled],\r\nsmart-gantt-chart[disabled],\r\nsmart-scheduler[disabled],\r\nsmart-button-group[disabled],\r\nsmart-table[disabled],\r\nsmart-pivot-table[disabled],\r\nsmart-notification-panel[disabled],\r\nsmart-formatting-panel[disabled],\r\nsmart-color-input[disabled],\r\nsmart-editor[disabled] {\r\n opacity: 0.55;\r\n cursor: default;\r\n pointer-events: none;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\nsmart-accordion,\r\nsmart-calendar,\r\nsmart-card-view,\r\nsmart-button,\r\nsmart-color-panel,\r\nsmart-docking-layout,\r\nsmart-date-time-picker,\r\nsmart-gantt-chart,\r\nsmart-scheduler,\r\nsmart-grid,\r\nsmart-menu,\r\nsmart-list-menu,\r\nsmart-list-box,\r\nsmart-scroll-viewer,\r\nsmart-progress-bar,\r\nsmart-pager,\r\nsmart-splitter,\r\nsmart-tank,\r\nsmart-time-picker,\r\nsmart-tree,\r\nsmart-text-box,\r\nsmart-multiline-text-box,\r\nsmart-layout,\r\n.smart-window,\r\nsmart-kanban,\r\nsmart-sort-panel,\r\nsmart-button-group,\r\nsmart-group-panel,\r\nsmart-column-panel,\r\nsmart-multi-column-filter-panel,\r\nsmart-formatting-panel {\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n}\r\n\r\nsmart-numeric-text-box.smart-element,\r\nsmart-masked-text-box.smart-element,\r\nsmart-multiline-text-box.smart-element,\r\nsmart-text-box.smart-element,\r\nsmart-drop-down-button.smart-element,\r\nsmart-drop-down-list.smart-element,\r\nsmart-combo-box.smart-element,\r\nsmart-password-text-box.smart-element,\r\nsmart-multi-split-button.smart-element,\r\nsmart-switch-button.smart-element,\r\nsmart-multiline-text-box.smart-element,\r\nsmart-date-time-picker.smart-element,\r\nsmart-pager.smart-element,\r\nsmart-menu.smart-element,\r\nsmart-menu.smart-element,\r\nsmart-numeric-text-box.smart-element,\r\nsmart-tabs.smart-element,\r\nsmart-tank.smart-element,\r\nsmart-slider.smart-element,\r\nsmart-filter-panel.smart-element,\r\nsmart-color-panel.smart-element,\r\nsmart-color-picker.smart-element,\r\nsmart-query-builder.smart-element,\r\nsmart-card-view.smart-element,\r\nsmart-path.smart-element,\r\nsmart-kanban.smart-element {\r\n overflow: visible;\r\n}\r\n\r\n.smart-disabled {\r\n opacity: 0.55;\r\n cursor: default;\r\n pointer-events: none;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n}\r\n\r\n/*\r\n Common code for Box Components with Content and Action buttons.\r\n*/\r\n.smart-element input::selection,\r\n.smart-input::selection {\r\n background: var(--smart-editor-selection);\r\n color: var(--smart-editor-selection-color);\r\n}\r\n\r\n/* Style for standard HTML scrollbars when dark theme is applied (limited browser support) */\r\n@media (hover: hover) {\r\n\r\n body[theme="dark"],\r\n .smart-element[theme="dark"] {\r\n scrollbar-color: var(--smart-scroll-bar-thumb-background) var(--smart-scroll-bar-track-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar,\r\n body[theme="dark"] ::-webkit-scrollbar {\r\n background-color: var(--smart-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-track,\r\n body[theme="dark"] ::-webkit-scrollbar-track,\r\n body[theme="dark"]::-webkit-scrollbar-track-piece,\r\n body[theme="dark"] ::-webkit-scrollbar-track-piece {\r\n background-color: var(--smart-scroll-bar-track-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-thumb,\r\n body[theme="dark"] ::-webkit-scrollbar-thumb {\r\n border: 1px solid var(--smart-scroll-bar-thumb-border);\r\n background-color: var(--smart-scroll-bar-thumb-background);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-thumb:hover,\r\n body[theme="dark"] ::-webkit-scrollbar-thumb:hover {\r\n border-color: var(--smart-scroll-bar-thumb-border-hover);\r\n background-color: var(--smart-scroll-bar-thumb-background-hover);\r\n }\r\n\r\n body[theme="dark"]::-webkit-scrollbar-button,\r\n body[theme="dark"] ::-webkit-scrollbar-button {\r\n background-color: var(--smart-scroll-bar-button-background);\r\n }\r\n}',""]),t.exports=e},4:function(t,e,r){(e=r(0)(!1)).push([t.i,".smart-drop-down-box {\r\n background: var(--smart-surface);\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n overflow: initial;\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n outline: none;\r\n height: var(--smart-editor-height); }\r\n .smart-drop-down-box > .smart-container, .smart-drop-down-box.smart-container {\r\n display: flex;\r\n position: relative;\r\n align-items: center; }\r\n .smart-drop-down-box > .smart-container > .smart-content, .smart-drop-down-box.smart-container > .smart-content {\r\n position: relative;\r\n display: flex;\r\n width: 100%;\r\n height: 100%; }\r\n .smart-drop-down-box .smart-buttons-container {\r\n width: inherit;\r\n height: inherit;\r\n display: inherit;\r\n flex-direction: inherit;\r\n cursor: inherit;\r\n position: inherit;\r\n overflow: hidden;\r\n min-height: inherit; }\r\n .smart-drop-down-box .smart-action-button {\r\n display: flex;\r\n padding-left: var(--smart-editor-label-padding);\r\n align-content: center;\r\n outline: 1px solid transparent;\r\n height: 100%;\r\n width: calc(100% - var(--smart-editor-addon-width));\r\n flex-wrap: wrap;\r\n overflow: hidden;\r\n position: relative;\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n align-items: center;\r\n border-right: none;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n user-select: none;\r\n white-space: nowrap; }\r\n .smart-drop-down-box .smart-action-button .smart-input {\r\n color: inherit;\r\n background: inherit;\r\n border: none;\r\n width: calc(100% - var(--smart-editor-addon-width));\r\n height: 100%;\r\n outline: none;\r\n text-overflow: ellipsis; }\r\n .smart-drop-down-box .smart-action-button .smart-input::placeholder {\r\n color: inherit; }\r\n .smart-drop-down-box .smart-drop-down-button {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: var(--smart-editor-addon-width);\r\n min-width: var(--smart-editor-addon-width);\r\n color: inherit;\r\n outline: 1px solid transparent;\r\n overflow: hidden;\r\n position: relative;\r\n background-color: var(--smart-surface);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n border-left: none;\r\n color: var(--smart-surface-color);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n cursor: pointer; }\r\n .smart-drop-down-box .smart-drop-down-button .smart-drop-down-button-icon {\r\n pointer-events: none;\r\n width: 100%;\r\n height: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n transform-origin: center;\r\n font-family: var(--smart-font-family-icon); }\r\n .smart-drop-down-box .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n content: var(--smart-icon-arrow-down);\r\n font-size: var(--smart-arrow-size); }\r\n .smart-drop-down-box .smart-drop-down-button[active] {\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box .smart-drop-down-button[top] .smart-drop-down-button-icon:after, .smart-drop-down-box .smart-drop-down-button[center-top] .smart-drop-down-button-icon:after {\r\n transform: rotate(180deg); }\r\n .smart-drop-down-box .smart-drop-down {\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size); }\r\n .smart-drop-down-box .smart-drop-down.smart-visibility-hidden {\r\n transform: scale(0);\r\n transition: transform 0.2s ease-in;\r\n transform-origin: left top 0px; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-action-button, .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-action-button {\r\n min-height: var(--smart-editor-height);\r\n padding-left: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-drop-down-button,\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-action-button, .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-drop-down-button,\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-action-button {\r\n width: 100%;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n height: 50%;\r\n justify-content: center; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] {\r\n min-height: calc(2 * var(--smart-editor-height)); }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-content {\r\n flex-direction: column-reverse; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-drop-down-button {\r\n border-bottom: initial;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: 0;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: 0; }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"] .smart-action-button {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[drop-down-button-position=\"top\"]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-top: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] {\r\n min-height: calc(2 * var(--smart-editor-height)); }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-content {\r\n flex-direction: column; }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-action-button {\r\n border-bottom: initial;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: 0;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: 0; }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"] .smart-drop-down-button {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[drop-down-button-position=\"bottom\"]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-drop-down-button {\r\n border-top: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] > .smart-container > .smart-content, .smart-drop-down-box[drop-down-button-position=\"left\"].smart-container > .smart-content {\r\n flex-direction: row-reverse; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] .smart-action-button {\r\n padding-right: var(--smart-editor-label-padding);\r\n border-right: var(--smart-border-width) solid var(--smart-border);\r\n border-color: var(--smart-border);\r\n border-top-left-radius: 0px;\r\n border-bottom-left-radius: 0px;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n padding-left: initial;\r\n flex-direction: row-reverse; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] .smart-drop-down-button {\r\n border-left: var(--smart-border-width) solid var(--smart-border);\r\n border-color: var(--smart-border);\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-top-right-radius: 0px;\r\n border-bottom-right-radius: 0px;\r\n border-right: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"] .smart-drop-down-button[selected] {\r\n border-right: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"left\"]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-left: initial; }\r\n .smart-drop-down-box[drop-down-button-position=\"right\"] .smart-action-button {\r\n padding-left: var(--smart-editor-label-padding); }\r\n .smart-drop-down-box[drop-down-button-position=\"none\"] .smart-action-button {\r\n border-right: var(--smart-border-width) solid var(--smart-border);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n width: 100%;\r\n padding-right: var(--smart-editor-label-padding); }\r\n .smart-drop-down-box[drop-down-button-position=\"none\"] .smart-drop-down-button {\r\n display: none; }\r\n .smart-drop-down-box:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-color: var(--smart-border);\r\n background-color: var(--smart-surface);\r\n color: var(--smart-surface-color); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"] .smart-action-button {\r\n border-color: var(--smart-border);\r\n background-color: var(--smart-background);\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"] .smart-action-button[active] {\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"] .smart-drop-down-button {\r\n border-color: var(--smart-border);\r\n background-color: var(--smart-surface);\r\n color: var(--smart-surface-color);\r\n border-left-style: solid;\r\n border-left-width: var(--smart-border-width); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"left\"]:not([hover]) .smart-drop-down-button:focus {\r\n border-color: var(--smart-outline);\r\n box-shadow: var(--smart-border-width) 0 0 0 var(--smart-outline); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"left\"]:not([hover]) .smart-action-button:focus {\r\n border-color: var(--smart-outline);\r\n box-shadow: calc(-1 * var(--smart-border-width)) 0 0 0 var(--smart-outline); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"right\"]:not([hover]) .smart-action-button:focus {\r\n box-shadow: var(--smart-border-width) 0 0 0 var(--smart-outline);\r\n border-color: var(--smart-outline);\r\n z-index: 1; }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position]):not([hover]) .smart-drop-down-button:focus {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position]):not([hover]) .smart-action-button:focus {\r\n box-shadow: var(--smart-border-width) 0 0 0 var(--smart-outline);\r\n border-color: var(--smart-outline);\r\n z-index: 1; }\r\n .smart-drop-down-box[resizing] {\r\n user-select: none;\r\n touch-action: none; }\r\n .smart-drop-down-box[readonly] input {\r\n user-select: none;\r\n -moz-user-select: none;\r\n -webkit-user-select: none; }\r\n .smart-drop-down-box[hover] .smart-drop-down-button {\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n color: var(--smart-ui-state-color-hover); }\r\n .smart-drop-down-box[hover]:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-color: var(--smart-ui-state-border-hover);\r\n background-color: var(--smart-ui-state-hover);\r\n color: var(--smart-ui-state-color-hover); }\r\n .smart-drop-down-box[focus]:not([opened]) .smart-action-button[focus],\r\n .smart-drop-down-box[focus]:not([opened]) .smart-drop-down-button[focus],\r\n .smart-drop-down-box[focus]:not([opened]) .smart-action-button,\r\n .smart-drop-down-box[focus]:not([opened]) .smart-drop-down-button {\r\n outline: initial;\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[active] .smart-action-button, .smart-drop-down-box[active][focus][drop-down-open-mode=\"dropDownButton\"] .smart-action-button, .smart-drop-down-box[active][focus][drop-down-open-mode=\"dropDownButton\"] .smart-drop-down-button, .smart-drop-down-box[active][drop-down-open-mode=\"dropDownButton\"] .smart-drop-down-button:focus {\r\n border-color: var(--smart-ui-state-border-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box[opened] .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n transform: rotate(180deg); }\r\n .smart-drop-down-box[opened] .smart-drop-down-button[bottom] .smart-drop-down-button-icon:after, .smart-drop-down-box[opened] .smart-drop-down-button[center-bottom] .smart-drop-down-button-icon:after {\r\n transform: rotate(180deg); }\r\n .smart-drop-down-box[opened] .smart-drop-down-button[top] .smart-drop-down-button-icon:after, .smart-drop-down-box[opened] .smart-drop-down-button[center-top] .smart-drop-down-button-icon:after {\r\n transform: rotate(0deg); }\r\n .smart-drop-down-box[opened]:not([drop-down-open-mode=\"dropDownButton\"]):not(.outlined):not(.underlined) .smart-action-button, .smart-drop-down-box[opened]:not(.outlined):not(.underlined) .smart-drop-down-button {\r\n border-color: var(--smart-ui-state-active);\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box.auto-height {\r\n height: auto;\r\n min-height: var(--smart-editor-height); }\r\n .smart-drop-down-box.auto-height > .smart-container, .smart-drop-down-box.auto-height.smart-container {\r\n min-height: inherit; }\r\n .smart-drop-down-box.auto-height .smart-action-button,\r\n .smart-drop-down-box.auto-height .smart-content {\r\n min-height: inherit; }\r\n .smart-drop-down-box.auto-height .smart-action-button {\r\n padding: 3px; }\r\n .smart-drop-down-box.auto-height[label], .smart-drop-down-box.auto-height[hint] {\r\n height: auto; }\r\n .smart-drop-down-box[label][hint] > .smart-container {\r\n display: flex;\r\n position: relative;\r\n align-items: center; }\r\n .smart-drop-down-box[label] > .smart-container {\r\n align-items: flex-end; }\r\n .smart-drop-down-box[hint] > .smart-container {\r\n align-items: flex-start; }\r\n .smart-drop-down-box[hint] .smart-hint {\r\n opacity: 0;\r\n transition: opacity 0.2s cubic-bezier(0.4, 0, 0.6, 1);\r\n top: 100%;\r\n bottom: initial; }\r\n .smart-drop-down-box[hint][focus] .smart-hint {\r\n opacity: 1;\r\n transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1); }\r\n .smart-drop-down-box[label] .smart-label, .smart-drop-down-box[hint] .smart-hint {\r\n position: absolute;\r\n left: 0;\r\n bottom: 100%;\r\n font-size: 12px;\r\n width: 100%;\r\n display: block;\r\n padding: var(--smart-editor-label-padding);\r\n pointer-events: none;\r\n user-select: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n -moz-user-select: none;\r\n text-align: initial;\r\n line-height: initial;\r\n vertical-align: initial; }\r\n .smart-drop-down-box[disabled] > .smart-container {\r\n cursor: default;\r\n background-color: initial; }\r\n .smart-drop-down-box[disabled] .smart-drop-down-button {\r\n cursor: default;\r\n background-color: initial; }\r\n .smart-drop-down-box[disabled][selection-display-mode=\"tokens\"] .smart-action-button > span {\r\n cursor: default; }\r\n .smart-drop-down-box.underlined {\r\n background-color: transparent;\r\n border-width: 0px;\r\n border-bottom-width: 1px;\r\n background: var(--smart-background);\r\n border-bottom-color: var(--smart-border); }\r\n .smart-drop-down-box.underlined .smart-action-button {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0;\r\n background-color: transparent;\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box.underlined .smart-action-button input {\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined .smart-action-button[active] {\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box.underlined .smart-spin-button {\r\n background: var(--smart-background);\r\n border-width: 0px; }\r\n .smart-drop-down-box.underlined .smart-spin-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.underlined .smart-spin-button[active] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.underlined .smart-drop-down-button {\r\n background: var(--smart-background);\r\n border-width: 0px;\r\n border-bottom: 1px solid var(--smart-border) !important;\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n .smart-drop-down-box.underlined .smart-drop-down-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.underlined .smart-drop-down-button[active] {\r\n background-color: var(--smart-ui-state-active);\r\n color: var(--smart-ui-state-color-active); }\r\n .smart-drop-down-box.underlined .smart-hint {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n display: block !important;\r\n box-sizing: border-box;\r\n padding: var(--smart-editor-label-padding);\r\n color: var(--smart-background-color);\r\n pointer-events: none;\r\n font-size: 75%;\r\n opacity: 0;\r\n transition: color 0.2s, opacity 0.1s, font-size 0.2s, line-height 0.2s, margin-top 0.2s, top 0.2s;\r\n margin-top: calc(0px - var(--smart-font-size)); }\r\n .smart-drop-down-box.underlined .smart-hint:after {\r\n content: \"\";\r\n position: absolute;\r\n left: 0;\r\n bottom: -2px;\r\n display: block;\r\n width: 100%;\r\n height: 2px;\r\n background-color: var(--smart-primary);\r\n transform-origin: bottom center;\r\n transform: scaleX(0);\r\n transition: transform 0.2s; }\r\n .smart-drop-down-box.underlined:not([focus]) .smart-hint {\r\n margin-top: 0px; }\r\n .smart-drop-down-box.underlined[focus] input {\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined[focus] .smart-action-button {\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined[focus] .smart-drop-down-button,\r\n .smart-drop-down-box.underlined[focus] .smart-hint {\r\n color: var(--smart-primary) !important;\r\n opacity: 1;\r\n border-color: transparent !important; }\r\n .smart-drop-down-box.underlined[focus] .smart-hint:after {\r\n transform: scale(1); }\r\n .smart-drop-down-box.underlined[opened] .smart-action-button {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0;\r\n background-color: transparent;\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box.underlined:not([opened]):not([hover]) .smart-drop-down-button {\r\n background-color: transparent;\r\n color: var(--smart-background-color); }\r\n .smart-drop-down-box.underlined:not([opened]):not([hover]) .smart-drop-down-button:not([hover]) {\r\n border-bottom-left-radius: 0; }\r\n .smart-drop-down-box.underlined:not([opened]):not([hover]) .smart-drop-down-button:not([active]):not([hover]) {\r\n border-radius: initial; }\r\n .smart-drop-down-box.underlined:not([opened]) .smart-action-button:not([active]):not([hover]) {\r\n border-radius: initial; }\r\n .smart-drop-down-box.underlined[hover]:not([drop-down-open-mode=\"dropDownButton\"]):not([opened]) .smart-action-button {\r\n border-bottom-left-radius: 0; }\r\n .smart-drop-down-box.underlined[hover]:not([drop-down-open-mode=\"dropDownButton\"]):not([opened]) .smart-action-button:not([active]) {\r\n background-color: transparent; }\r\n .smart-drop-down-box.underlined[hover]:not([opened]) .smart-action-button, .smart-drop-down-box.underlined[hover]:not([opened]):not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button:not([active]) {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n .smart-drop-down-box.underlined[drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position=\"left\"]):not([drop-down-button-position=\"top\"]):not([drop-down-button-position=\"bottom\"]):not([hover]) .smart-action-button:focus {\r\n box-shadow: none;\r\n z-index: initial; }\r\n .smart-drop-down-box.underlined[drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"left\"]:not([hover]) .smart-drop-down-button:focus {\r\n box-shadow: none; }\r\n .smart-drop-down-box.underlined[drop-down-open-mode=\"dropDownButton\"][hover]:not([opened]) .smart-action-button[hover] {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n .smart-drop-down-box.underlined.smart-invalid .smart-drop-down-button {\r\n border-bottom-color: rgba(var(--smart-error-rgb), 0.5) !important; }\r\n .smart-drop-down-box.outlined {\r\n background-color: transparent;\r\n padding-top: 6px;\r\n height: auto;\r\n min-height: 0;\r\n border: none;\r\n background: transparent; }\r\n .smart-drop-down-box.outlined > .smart-container > .smart-content {\r\n padding: 4px 3px 4px;\r\n border: 1px solid var(--smart-border);\r\n height: auto;\r\n background: var(--smart-background);\r\n border-radius: var(--smart-border-radius);\r\n z-index: 5; }\r\n .smart-drop-down-box.outlined .smart-action-button {\r\n border: none;\r\n background: var(--smart-background) !important;\r\n border-color: var(--smart-border) !important;\r\n color: var(--smart-background-color) !important; }\r\n .smart-drop-down-box.outlined .smart-action-button input {\r\n padding: 0;\r\n border: none !important;\r\n z-index: initial; }\r\n .smart-drop-down-box.outlined .smart-spin-button {\r\n background: var(--smart-background);\r\n border-width: 0px; }\r\n .smart-drop-down-box.outlined .smart-spin-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined .smart-spin-button[active] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined .smart-drop-down-button {\r\n background: var(--smart-background);\r\n border-width: 0px;\r\n padding: 8px 0px;\r\n background: var(--smart-background) !important;\r\n border-color: var(--smart-border) !important;\r\n color: var(--smart-background-color) !important; }\r\n .smart-drop-down-box.outlined .smart-drop-down-button.smart-calendar-button[hover] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined .smart-drop-down-button.smart-calendar-button[active] {\r\n background: var(--smart-background);\r\n color: var(--smart-ui-state-active); }\r\n .smart-drop-down-box.outlined.smart-element-init .smart-hint {\r\n visibility: hidden;\r\n display: none !important; }\r\n .smart-drop-down-box.outlined:not([focus])[hint] .smart-hint {\r\n font-size: var(--smart-font-size);\r\n line-height: 48px;\r\n opacity: 0; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n display: flex !important;\r\n border-color: var(--smart-border) !important;\r\n width: 100%;\r\n max-height: 100%;\r\n color: var(--smart-background-color);\r\n font-size: 75%;\r\n line-height: 15px;\r\n cursor: text;\r\n margin-top: -6px;\r\n z-index: 10;\r\n padding: 0;\r\n transition: color 0.2s, font-size 0.2s, opacity 0.1s, font-size 0.2s, line-height 0.2s; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint:before, .smart-drop-down-box.outlined[hint] .smart-hint:after {\r\n content: \"\";\r\n display: block;\r\n box-sizing: border-box;\r\n margin-top: 6px;\r\n border-top: solid 1px;\r\n border-top-color: var(--smart-border) !important;\r\n min-width: 10px;\r\n height: 8px;\r\n pointer-events: none;\r\n box-shadow: inset 0 1px transparent;\r\n transition: border-color 0.2s, box-shadow 0.2s; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint:before {\r\n margin-right: 4px;\r\n border-left: solid 1px transparent;\r\n border-radius: 4px 0; }\r\n .smart-drop-down-box.outlined[hint] .smart-hint:after {\r\n flex-grow: 1;\r\n margin-left: 4px;\r\n border-right: solid 1px transparent;\r\n border-radius: 0 4px; }\r\n .smart-drop-down-box.outlined[focus] {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined[focus] > .smart-container > .smart-content {\r\n border-color: var(--smart-primary); }\r\n .smart-drop-down-box.outlined[focus] .smart-drop-down-button {\r\n color: var(--smart-ui-state-active) !important; }\r\n .smart-drop-down-box.outlined[focus][hint] > .smart-container > .smart-content {\r\n border-top-color: transparent !important; }\r\n .smart-drop-down-box.outlined[focus][hint] .smart-hint {\r\n color: var(--smart-primary);\r\n opacity: 1; }\r\n .smart-drop-down-box.outlined[focus][hint] .smart-hint:before, .smart-drop-down-box.outlined[focus][hint] .smart-hint:after {\r\n border-top-color: var(--smart-primary) !important; }\r\n .smart-drop-down-box.outlined[hover]:not([opened]):not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button:not([active]) {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined:not([opened]) .smart-action-button:not([active]),\r\n .smart-drop-down-box.outlined:not([opened]) .smart-drop-down-button {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined[drop-down-open-mode=\"dropDownButton\"]:not([hover]) .smart-action-button:not([active]) {\r\n background-color: transparent; }\r\n .smart-drop-down-box.outlined.smart-invalid > .smart-container > .smart-content {\r\n border-color: rgba(var(--smart-error-rgb), 0.5); }\r\n .smart-drop-down-box[placeholder=\"\"][dropDownButtonPosition=\"none\"] .smart-drop-down-button, .smart-drop-down-box:not([placeholder])[dropDownButtonPosition=\"none\"] .smart-drop-down-button {\r\n border-left-width: var(--smart-border-width);\r\n border-left-style: solid;\r\n border-top-left-radius: 0px;\r\n border-bottom-left-radius: 0px;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[placeholder=\"\"]:not([opened])[dropDownButtonPosition=\"none\"] .smart-drop-down-button:not([focus]), .smart-drop-down-box:not([placeholder]):not([opened])[dropDownButtonPosition=\"none\"] .smart-drop-down-button:not([focus]) {\r\n border-color: var(--smart-border); }\r\n .smart-drop-down-box:not([animation='none']) .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n transition: transform 0.2s; }\r\n .smart-drop-down-box[drop-down-position=\"overlay-center\"] .smart-drop-down-button .smart-drop-down-button-icon:after {\r\n content: var(--smart-icon-minus); }\r\n .smart-drop-down-box.smart-invalid:not([drop-down-open-mode=\"dropDownButton\"]) .smart-action-button {\r\n border-bottom-color: rgba(var(--smart-error-rgb), 0.5) !important; }\r\n .smart-drop-down-box[right-to-left] {\r\n direction: rtl; }\r\n .smart-drop-down-box[right-to-left] .smart-label,\r\n .smart-drop-down-box[right-to-left] .smart-hint {\r\n direction: rtl; }\r\n .smart-drop-down-box[right-to-left] .smart-drop-down-button:focus {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[right-to-left]:not([hover]) .smart-action-button[focus],\r\n .smart-drop-down-box[right-to-left]:not([hover]) .smart-drop-down-button[focus] {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-action-button {\r\n flex-direction: row; }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"right\"] > .smart-container > .smart-content {\r\n flex-direction: row-reverse; }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-action-button, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-action-button {\r\n padding: 0 var(--smart-editor-label-padding) 0 0;\r\n border-right: var(--smart-border-width) solid var(--smart-border);\r\n border-top-left-radius: initial;\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: initial;\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius); }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-drop-down-button, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-drop-down-button {\r\n border-left: var(--smart-border-width) solid var(--smart-border);\r\n border-top-right-radius: initial;\r\n border-bottom-right-radius: initial;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius); }\r\n .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] > .smart-container > .smart-content, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) > .smart-container > .smart-content {\r\n flex-direction: row; }\r\n .smart-drop-down-box[right-to-left]:not([drop-down-open-mode=\"dropDownButton\"])[drop-down-button-position=\"left\"] .smart-action-button, .smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-action-button {\r\n border-left: initial; }\r\n .smart-drop-down-box[right-to-left]:not([drop-down-open-mode=\"dropDownButton\"]):not([drop-down-button-position]) .smart-drop-down-button, .smart-drop-down-box[right-to-left][drop-down-button-position=\"left\"] .smart-drop-down-button {\r\n border-right: initial; }\r\n .smart-drop-down-box[right-to-left][opened] .smart-drop-down-button,\r\n .smart-drop-down-box[right-to-left][opened] .smart-action-button {\r\n border-color: var(--smart-border-active); }\r\n .smart-drop-down-box[right-to-left][drop-down-open-mode=\"dropDownButton\"][drop-down-button-position=\"right\"]:not([hover]) .smart-action-button:focus, .smart-drop-down-box[right-to-left][drop-down-open-mode=\"dropDownButton\"]:not([drop-down-button-position]):not([hover]) .smart-action-button:focus {\r\n box-shadow: calc(-1 * var(--smart-border-width)) 0 0 0 var(--smart-outline); }\r\n\r\n.smart-drop-down.smart-drop-down-container {\r\n box-shadow: var(--smart-elevation-8);\r\n border-color: var(--smart-border);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down.smart-drop-down-container smart-list-box:focus {\r\n border-color: var(--smart-outline); }\r\n .smart-drop-down.smart-drop-down-container .smart-drop-down-resize-bar {\r\n position: relative;\r\n width: 100%;\r\n margin-top: 2.5px;\r\n height: calc(var(--smart-editor-drop-down-resize-bar-height) - 2.5px);\r\n touch-action: none; }\r\n .smart-drop-down.smart-drop-down-container.smart-visibility-hidden {\r\n transform: scale(0); }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden {\r\n top: 0;\r\n left: 0; }\r\n .smart-drop-down.smart-drop-down-container.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned {\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned[top], .smart-drop-down.smart-drop-down-container.smart-drop-down-repositioned[center-top] {\r\n margin: calc(-1 * (var(--smart-editor-drop-down-vertical-offset) + 3px)) 0px; }\r\n.smart-drop-down.smart-date-time-drop-down {\r\n width: var(--smart-editor-drop-down-width);\r\n height: var(--smart-editor-drop-down-height); }\r\n .smart-drop-down.smart-date-time-drop-down.smart-drop-down-repositioned {\r\n width: var(--smart-editor-drop-down-width);\r\n height: var(--smart-editor-drop-down-height);\r\n padding: initial !important;\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down.smart-date-time-drop-down[drop-down-display-mode=\"calendar\"] {\r\n height: calc(var(--smart-editor-drop-down-height) - var(--smart-calendar-title-height)) !important; }\r\n.smart-drop-down.smart-drop-down-color-picker.smart-drop-down-repositioned {\r\n max-height: calc(var(--smart-editor-drop-down-max-height) + 50px); }\r\n.smart-drop-down[top] .smart-drop-down-resize-bar {\r\n margin-top: 0;\r\n margin-bottom: 2.5px; }\r\n.smart-drop-down[top].smart-drop-down-container.smart-drop-down-repositioned, .smart-drop-down[top].smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden {\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width));\r\n flex-direction: column-reverse; }\r\n.smart-drop-down[overlay-bottom], .smart-drop-down[overlay-center], .smart-drop-down[overlay-top] {\r\n margin: unset; }\r\n.smart-drop-down:not([resize-mode='none']) smart-list-box {\r\n position: relative;\r\n width: 100%;\r\n height: calc(100% - var(--smart-editor-drop-down-resize-bar-height));\r\n border: none; }\r\n.smart-drop-down:not([resize-mode='none']) .smart-drop-down-resize-bar {\r\n border-top: 1px solid var(--smart-border); }\r\n.smart-drop-down:not([resize-mode='none'])[top] .smart-drop-down-resize-bar {\r\n border-top: initial;\r\n border-bottom: 1px solid var(--smart-border); }\r\n.smart-drop-down[resize-mode][top] .smart-drop-down-resize-bar > div {\r\n top: calc(50% - 1px);\r\n /* Including the BorderBottom */ }\r\n.smart-drop-down[resize-mode='none'] smart-list-box {\r\n width: 100%;\r\n height: 100%;\r\n position: relative;\r\n border: none; }\r\n.smart-drop-down[resize-mode='none'] .smart-drop-down-resize-bar {\r\n display: none;\r\n cursor: default; }\r\n .smart-drop-down[resize-mode='none'] .smart-drop-down-resize-bar > div {\r\n display: none; }\r\n.smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div {\r\n display: initial;\r\n position: absolute;\r\n width: 5px;\r\n height: 5px;\r\n left: 50%;\r\n /*top: 50%;*/\r\n top: calc(50% + 1px);\r\n /* Including the BorderTop */\r\n transform: translate(-50%, -50%);\r\n border: 1px solid var(--smart-border);\r\n border-radius: 50%;\r\n pointer-events: none; }\r\n .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:after, .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:before, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:after, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:before {\r\n position: absolute;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n content: '';\r\n width: 100%;\r\n height: 100%;\r\n border: 1px solid var(--smart-border);\r\n border-radius: 50%;\r\n pointer-events: none; }\r\n .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:after, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:after {\r\n left: 500%; }\r\n .smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar > div:before, .smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar > div:before {\r\n left: -400%; }\r\n.smart-drop-down[resize-mode=\"vertical\"].smart-drop-down-container.smart-drop-down-repositioned .smart-drop-down-resize-bar > div, .smart-drop-down[resize-mode=\"both\"].smart-drop-down-container.smart-drop-down-repositioned .smart-drop-down-resize-bar > div {\r\n width: 3px;\r\n height: 3px; }\r\n.smart-drop-down[resize-mode=\"horizontal\"][resize-indicator] .smart-drop-down-resize-bar:before, .smart-drop-down[resize-mode=\"both\"][resize-indicator] .smart-drop-down-resize-bar:before {\r\n width: 8px;\r\n height: 5px;\r\n font-family: var(--smart-font-family-icon);\r\n content: var(--smart-icon-resize-horizontal);\r\n position: absolute;\r\n top: calc(100% - 8px);\r\n left: calc(100% - 8px);\r\n transform: rotate(-45deg);\r\n font-size: 10px;\r\n cursor: se-resize; }\r\n.smart-drop-down[resize-mode=\"horizontal\"][resize-indicator] .smart-drop-down-resize-bar:after, .smart-drop-down[resize-mode=\"both\"][resize-indicator] .smart-drop-down-resize-bar:after {\r\n width: 8px;\r\n height: 12px;\r\n font-family: var(--smart-font-family-icon);\r\n content: var(--smart-icon-resize-full);\r\n position: absolute;\r\n top: calc(100% - 12px);\r\n left: calc(100% - 7px);\r\n transform: rotate(-45deg) scaleX(2.25);\r\n font-size: 10px;\r\n cursor: e-resize; }\r\n.smart-drop-down[resize-mode=\"horizontal\"][top] .smart-drop-down-resize-bar:before, .smart-drop-down[resize-mode=\"both\"][top] .smart-drop-down-resize-bar:before {\r\n transform: rotate(45deg);\r\n top: calc(100% - 13px);\r\n left: calc(100% - 4px); }\r\n.smart-drop-down[resize-mode=\"vertical\"] .smart-drop-down-resize-bar {\r\n cursor: n-resize; }\r\n.smart-drop-down[resize-mode=\"horizontal\"] .smart-drop-down-resize-bar {\r\n cursor: e-resize; }\r\n .smart-drop-down[resize-mode=\"horizontal\"] .smart-drop-down-resize-bar > div {\r\n display: none; }\r\n.smart-drop-down[resize-mode=\"both\"] .smart-drop-down-resize-bar {\r\n cursor: nwse-resize; }\r\n.smart-drop-down[resize-mode=\"both\"][top] .smart-drop-down-resize-bar {\r\n cursor: sw-resize; }\r\n\r\n.smart-drop-down-container.smart-drop-down-repositioned {\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important; }\r\n .smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-drop-down-container.smart-drop-down-repositioned:focus {\r\n border-color: var(--smart-border); }\r\n .smart-drop-down-container.smart-drop-down-repositioned[overlay-bottom], .smart-drop-down-container.smart-drop-down-repositioned[overlay-center], .smart-drop-down-container.smart-drop-down-repositioned[overlay-top] {\r\n margin: unset; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[overlay-bottom]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[overlay-center]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[overlay-top]:not([animation='none']) {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[overlay-bottom]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[overlay-center]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[overlay-top]:not([animation='none']).smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[top], .smart-drop-down-container.smart-drop-down-repositioned[center-top] {\r\n margin: calc(-1 * (var(--smart-editor-drop-down-vertical-offset) + 3px)) 0px; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[top]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[center-top]:not([animation='none']) {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[top]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[center-top]:not([animation='none']).smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[bottom]:not([animation='none']), .smart-drop-down-container.smart-drop-down-repositioned[center-bottom]:not([animation='none']) {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-drop-down-container.smart-drop-down-repositioned[bottom]:not([animation='none']).smart-visibility-hidden, .smart-drop-down-container.smart-drop-down-repositioned[center-bottom]:not([animation='none']).smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-drop-down-container.smart-drop-down-repositioned:not([animation='none']).smart-visibility-hidden {\r\n transition: animation, visibility 0.2s ease-in; }\r\n.smart-drop-down-container[top].smart-drop-down-container.smart-drop-down-repositioned {\r\n bottom: initial; }\r\n .smart-drop-down-container[top].smart-drop-down-container.smart-drop-down-repositioned.smart-visibility-hidden {\r\n bottom: calc(100% - var(--smart-border-width)); }\r\n\r\n.smart-path .smart-drop-down,\r\n.smart-color-picker .smart-drop-down,\r\n.smart-multi-split-button .smart-drop-down,\r\n.smart-drop-down-list .smart-drop-down,\r\n.smart-combo-box .smart-drop-down,\r\n.smart-text-box .smart-drop-down,\r\n.smart-drop-down-button .smart-drop-down,\r\n.smart-date-time-picker .smart-drop-down {\r\n background-color: var(--smart-background);\r\n box-sizing: border-box;\r\n outline: none;\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n display: flex;\r\n flex-direction: column;\r\n height: var(--smart-editor-drop-down-height);\r\n max-height: var(--smart-editor-drop-down-max-height);\r\n min-height: var(--smart-editor-drop-down-min-height);\r\n width: var(--smart-editor-drop-down-width);\r\n max-width: var(--smart-editor-drop-down-max-width);\r\n min-width: var(--smart-editor-drop-down-min-width);\r\n font-size: var(--smart-font-size);\r\n font-family: var(--smart-font-family);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n padding: var(--smart-editor-drop-down-padding-size) 0 var(--smart-editor-drop-down-padding-size) 0 !important;\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down.smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down.smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down.smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down.smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down.smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down.smart-visibility-hidden {\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-color-picker .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-multi-split-button .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-drop-down-list .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-combo-box .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-text-box .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-drop-down-button .smart-drop-down.smart-visibility-hidden.not-in-view,\r\n .smart-date-time-picker .smart-drop-down.smart-visibility-hidden.not-in-view {\r\n left: -9999px;\r\n top: -9999px;\r\n transition: none; }\r\n .smart-path .smart-drop-down[overlay-bottom], .smart-path .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[overlay-bottom],\r\n .smart-color-picker .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[overlay-bottom],\r\n .smart-multi-split-button .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-list .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[overlay-bottom],\r\n .smart-combo-box .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[overlay-bottom],\r\n .smart-text-box .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-button .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[overlay-bottom],\r\n .smart-date-time-picker .smart-drop-down[overlay-bottom].smart-visibility-hidden {\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n top: 0; }\r\n .smart-path .smart-drop-down[overlay-center], .smart-path .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[overlay-center],\r\n .smart-color-picker .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[overlay-center],\r\n .smart-multi-split-button .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[overlay-center],\r\n .smart-drop-down-list .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[overlay-center],\r\n .smart-combo-box .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[overlay-center],\r\n .smart-text-box .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[overlay-center],\r\n .smart-drop-down-button .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[overlay-center],\r\n .smart-date-time-picker .smart-drop-down[overlay-center].smart-visibility-hidden {\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n top: 50%;\r\n transform: translateY(-50%); }\r\n .smart-path .smart-drop-down[overlay-top], .smart-path .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[overlay-top],\r\n .smart-color-picker .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[overlay-top],\r\n .smart-multi-split-button .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[overlay-top],\r\n .smart-drop-down-list .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[overlay-top],\r\n .smart-combo-box .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[overlay-top],\r\n .smart-text-box .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[overlay-top],\r\n .smart-drop-down-button .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[overlay-top],\r\n .smart-date-time-picker .smart-drop-down[overlay-top].smart-visibility-hidden {\r\n border-color: var(--smart-border);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n top: initial;\r\n bottom: 0; }\r\n .smart-path .smart-drop-down[top],\r\n .smart-color-picker .smart-drop-down[top],\r\n .smart-multi-split-button .smart-drop-down[top],\r\n .smart-drop-down-list .smart-drop-down[top],\r\n .smart-combo-box .smart-drop-down[top],\r\n .smart-text-box .smart-drop-down[top],\r\n .smart-drop-down-button .smart-drop-down[top],\r\n .smart-date-time-picker .smart-drop-down[top] {\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width));\r\n flex-direction: column-reverse; }\r\n .smart-path .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[top].smart-visibility-hidden {\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width));\r\n flex-direction: column-reverse; }\r\n .smart-path .smart-drop-down[bottom],\r\n .smart-color-picker .smart-drop-down[bottom],\r\n .smart-multi-split-button .smart-drop-down[bottom],\r\n .smart-drop-down-list .smart-drop-down[bottom],\r\n .smart-combo-box .smart-drop-down[bottom],\r\n .smart-text-box .smart-drop-down[bottom],\r\n .smart-drop-down-button .smart-drop-down[bottom],\r\n .smart-date-time-picker .smart-drop-down[bottom] {\r\n cursor: default;\r\n left: 0;\r\n box-sizing: border-box;\r\n font-size: inherit;\r\n padding: var(--smart-editor-drop-down-padding-size);\r\n margin: calc(var(--smart-editor-drop-down-vertical-offset) + var(--smart-editor-drop-down-padding-size)) 0px;\r\n background-color: var(--smart-background);\r\n border-width: var(--smart-border-width);\r\n border-style: solid;\r\n border-color: var(--smart-border);\r\n box-shadow: var(--smart-elevation-8);\r\n /*border-top: initial;*/\r\n display: flex;\r\n flex-direction: column;\r\n padding-left: 0px;\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[bottom].smart-visibility-hidden {\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down[center-bottom], .smart-path .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[center-bottom],\r\n .smart-color-picker .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[center-bottom],\r\n .smart-multi-split-button .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[center-bottom],\r\n .smart-drop-down-list .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[center-bottom],\r\n .smart-combo-box .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[center-bottom],\r\n .smart-text-box .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[center-bottom],\r\n .smart-drop-down-button .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[center-bottom],\r\n .smart-date-time-picker .smart-drop-down[center-bottom].smart-visibility-hidden {\r\n left: 50%;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n top: calc(100% - var(--smart-border-width)); }\r\n .smart-path .smart-drop-down[center-top], .smart-path .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-color-picker .smart-drop-down[center-top],\r\n .smart-color-picker .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-multi-split-button .smart-drop-down[center-top],\r\n .smart-multi-split-button .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-list .smart-drop-down[center-top],\r\n .smart-drop-down-list .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-combo-box .smart-drop-down[center-top],\r\n .smart-combo-box .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-text-box .smart-drop-down[center-top],\r\n .smart-text-box .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-button .smart-drop-down[center-top],\r\n .smart-drop-down-button .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-date-time-picker .smart-drop-down[center-top],\r\n .smart-date-time-picker .smart-drop-down[center-top].smart-visibility-hidden {\r\n left: 50%;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n top: initial;\r\n bottom: calc(100% - var(--smart-border-width)); }\r\n.smart-path:not([animation='none']) .smart-drop-down,\r\n.smart-color-picker:not([animation='none']) .smart-drop-down,\r\n.smart-multi-split-button:not([animation='none']) .smart-drop-down,\r\n.smart-drop-down-list:not([animation='none']) .smart-drop-down,\r\n.smart-combo-box:not([animation='none']) .smart-drop-down,\r\n.smart-text-box:not([animation='none']) .smart-drop-down,\r\n.smart-drop-down-button:not([animation='none']) .smart-drop-down,\r\n.smart-date-time-picker:not([animation='none']) .smart-drop-down {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down.smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down.smart-visibility-hidden {\r\n transition: animation, visibility 0.2s ease-in;\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[bottom], .smart-path:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-bottom],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[bottom],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-bottom] {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden, .smart-path:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[bottom].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-bottom].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[top], .smart-path:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[top],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[top],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[top],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[top],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[top],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[top],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-top],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[top],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-top] {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-path:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden, .smart-path:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[top].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[center-top].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: bottom;\r\n transform-origin: bottom; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-bottom], .smart-path:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-top],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-bottom],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-top] {\r\n animation: smart-drop-down-list-smart-animate-opening 0.2s ease-out;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden, .smart-path:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-bottom].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-top].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-closing 0.2s ease-in;\r\n -webkit-transform-origin: center;\r\n transform-origin: center; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-center],\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-center] {\r\n animation: smart-drop-down-list-smart-animate-overlay-center-opening 0.2s ease-out;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n .smart-path:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-color-picker:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-multi-split-button:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-list:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-combo-box:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-text-box:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-drop-down-button:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden,\r\n .smart-date-time-picker:not([animation='none']) .smart-drop-down[overlay-center].smart-visibility-hidden {\r\n animation: smart-drop-down-list-smart-animate-overlay-center-closing 0.2s ease-in;\r\n -webkit-transform-origin: top;\r\n transform-origin: top; }\r\n\r\n.smart-multi-split-button .smart-drop-down,\r\n.smart-drop-down-list .smart-drop-down,\r\n.smart-text-box .smart-drop-down,\r\n.smart-drop-down-button .smart-drop-down {\r\n height: calc(var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down smart-scroll-bar:before,\r\n .smart-drop-down-list .smart-drop-down smart-scroll-bar:before,\r\n .smart-text-box .smart-drop-down smart-scroll-bar:before,\r\n .smart-drop-down-button .smart-drop-down smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-multi-split-button .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner,\r\n .smart-drop-down-list .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner,\r\n .smart-text-box .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner,\r\n .smart-drop-down-button .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down smart-scroll-bar.bottom-corner,\r\n .smart-drop-down-list .smart-drop-down smart-scroll-bar.bottom-corner,\r\n .smart-text-box .smart-drop-down smart-scroll-bar.bottom-corner,\r\n .smart-drop-down-button .smart-drop-down smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down .smart-list-items-container.vscroll,\r\n .smart-drop-down-list .smart-drop-down .smart-list-items-container.vscroll,\r\n .smart-text-box .smart-drop-down .smart-list-items-container.vscroll,\r\n .smart-drop-down-button .smart-drop-down .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-multi-split-button .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"],\r\n .smart-drop-down-list .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"],\r\n .smart-text-box .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"],\r\n .smart-drop-down-button .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"] {\r\n padding-top: initial; }\r\n .smart-multi-split-button .smart-drop-down input:focus,\r\n .smart-drop-down-list .smart-drop-down input:focus,\r\n .smart-text-box .smart-drop-down input:focus,\r\n .smart-drop-down-button .smart-drop-down input:focus {\r\n outline: none; }\r\n\r\n.smart-multi-split-button.auto-height .smart-action-button,\r\n.smart-drop-down-list.auto-height .smart-action-button,\r\n.smart-drop-down-button.auto-height .smart-action-button {\r\n white-space: initial;\r\n text-overflow: initial;\r\n line-height: 1rem;\r\n flex-wrap: wrap; }\r\n.smart-multi-split-button.auto-height[selection-display-mode=\"tokens\"] smart-action-button > span,\r\n.smart-multi-split-button.auto-height[selection-display-mode=\"tokens\"] .smart-action-button > span:first-of-type,\r\n.smart-drop-down-list.auto-height[selection-display-mode=\"tokens\"] smart-action-button > span,\r\n.smart-drop-down-list.auto-height[selection-display-mode=\"tokens\"] .smart-action-button > span:first-of-type,\r\n.smart-drop-down-button.auto-height[selection-display-mode=\"tokens\"] smart-action-button > span,\r\n.smart-drop-down-button.auto-height[selection-display-mode=\"tokens\"] .smart-action-button > span:first-of-type {\r\n display: inline-block;\r\n margin: 0.2em; }\r\n\r\n.smart-color-picker .smart-drop-down {\r\n width: var(--smart-drop-down-button-drop-down-width);\r\n height: var(--smart-drop-down-button-drop-down-height); }\r\n .smart-color-picker .smart-drop-down.smart-drop-down-color-picker {\r\n max-height: calc(var(--smart-editor-drop-down-max-height) + 50px); }\r\n .smart-color-picker .smart-drop-down smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-color-picker .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-color-picker .smart-drop-down .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-color-picker .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"] {\r\n padding-top: initial; }\r\n\r\n.smart-drop-down-list .smart-drop-down {\r\n width: var(--smart-drop-down-list-drop-down-width);\r\n height: var(--smart-drop-down-list-drop-down-height); }\r\n\r\n.smart-combo-box .smart-drop-down {\r\n width: var(--smart-combo-box-drop-down-width);\r\n height: var(--smart-combo-box-drop-down-height); }\r\n .smart-combo-box .smart-drop-down smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-combo-box .smart-drop-down smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-combo-box .smart-drop-down smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-combo-box .smart-drop-down .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-combo-box .smart-drop-down .smart-list-items-container.vscroll[orientation=\"vertical\"] {\r\n padding-top: initial; }\r\n.smart-combo-box .smart-selection-field input {\r\n outline: none; }\r\n\r\n.smart-drop-down-button .smart-drop-down {\r\n width: var(--smart-drop-down-button-drop-down-width);\r\n height: var(--smart-drop-down-button-drop-down-height); }\r\n\r\n.smart-date-time-picker .smart-drop-down {\r\n border: none; }\r\n\r\n.smart-drop-down-overlay {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n z-index: 9000; }\r\n\r\n.smart-list-box input.vscroll {\r\n outline: none; }\r\n.smart-list-box smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n.smart-list-box smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n.smart-list-box smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n.smart-list-box .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n\r\n.smart-scroll-viewer {\r\n max-width: 100%;\r\n border: 0; }\r\n .smart-scroll-viewer smart-scroll-bar:before {\r\n display: none;\r\n background-color: var(--smart-border); }\r\n .smart-scroll-viewer smart-scroll-bar[orientation=\"vertical\"].bottom-corner {\r\n width: calc(var(--smart-scroll-bar-size));\r\n height: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-scroll-viewer smart-scroll-bar.bottom-corner {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n .smart-scroll-viewer .smart-list-items-container.vscroll {\r\n width: calc(100% - var(--smart-scroll-bar-size)); }\r\n\r\n@keyframes smart-drop-down-list-smart-animate-overlay-center-opening {\r\n 0% {\r\n opacity: 0.2;\r\n transform: scaleY(0) translateY(-50%); }\r\n 50% {\r\n opacity: 0.4; }\r\n 100% {\r\n opacity: 1;\r\n transform: scaleY(1) translateY(-50%); } }\r\n@keyframes smart-drop-down-list-smart-animate-overlay-center-closing {\r\n 0% {\r\n opacity: 1;\r\n transform: scaleY(1) translateY(-50%); }\r\n 50% {\r\n opacity: 0.4; }\r\n 100% {\r\n opacity: 0.2;\r\n transform: scaleY(0) translateY(-50%); } }\r\n@keyframes smart-drop-down-list-smart-animate-opening {\r\n 0% {\r\n opacity: 0.2;\r\n transform: scaleY(0); }\r\n 50% {\r\n opacity: 0.4; }\r\n 100% {\r\n opacity: 1;\r\n transform: scaleY(1); } }\r\n@keyframes smart-drop-down-list-smart-animate-closing {\r\n 0% {\r\n opacity: 1;\r\n transform: scaleY(1);\r\n pointer-events: none; }\r\n 50% {\r\n opacity: 0.4;\r\n pointer-events: none; }\r\n 100% {\r\n opacity: 0.2;\r\n transform: scaleY(0);\r\n pointer-events: none; } }\r\n.smart-drop-down-box[right-to-left]:not([hover]) .smart-action-button[focus] {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0; }\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-drop-down-button,\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-drop-down-button[focus] {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent; }\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]) .smart-action-button {\r\n border-top-color: transparent;\r\n border-left-color: transparent;\r\n border-right-color: transparent;\r\n border-bottom-left-radius: 0;\r\n border-bottom-right-radius: 0; }\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]):not([opened]):not([hover]) .smart-drop-down-button:not([hover]),\r\n.smart-drop-down-box[right-to-left]:not([drop-down-button-position]):not([opened]):not([hover]) .smart-drop-down-button[focus]:not([hover]) {\r\n border-bottom-left-radius: 0; }\r\n",""]),t.exports=e},40:function(t,e){Smart.DataAdapter=window.smartDataAdapter=class{constructor(t){t||(t={});const e=Object.assign(this,t);e.key=(65536*(1+Math.random())|0).toString(16).substring(1),e.$document=Smart.Utilities.Extend(document),e.boundSource=!1===e.observable||e.virtualDataSource?[]:new Smart.ObservableArray,e.dataItemById=[],void 0===e.allowAdd&&(e.allowAdd=!0),void 0===e.allowRemove&&(e.allowRemove=!0),void 0===e.allowUpdate&&(e.allowUpdate=!0),void 0===e.mapChar&&(e.mapChar="."),void 0!==t.observable||e.virtualDataSource?e.observable=!1:e.observable=!0,void 0===e.sanitizeHTML&&(e.sanitizeHTML="blackList"),e._expandedRowIds=[],t.dataSource||(e.dataSource=[]),t.dataFields||(e.dataFields=[]),t.dataSourceType||(e.dataSourceType="array"),t.id||(e.id=null),t.autoFetch||(e.autoFetch=!0),t.dataFields&&(e.dataFields=t.dataFields),Object.defineProperty(e,"groupBy",{configurable:!1,enumerable:!0,get:()=>e._groupBy?e._groupBy:[],set(t){const r=()=>{e.boundHierarchy=null,e.refreshHierarchy(),e.onGroup&&e.onGroup()};e._groupBy=new Smart.ObservableArray(t),e._groupBy.notify((function(){r()})),e.isInitialized&&r()}}),t.groupBy?t.groupBy.toArray?e.groupBy=t.groupBy.toArray():e.groupBy=t.groupBy:e.groupBy=[],t&&!1!==t.autoBind&&e.dataBind(),e.isInitialized=!0}beginUpdate(){this.isUpdating=!0}endUpdate(){this.isUpdating=!1,this.refreshIndexes(),this.refreshHierarchy()}get expandHierarchy(){return void 0===this._expandHierarchy&&(this._expandHierarchy=!1),this._expandHierarchy}set expandHierarchy(t){const e=this;e._expandHierarchy=t,e.isInitialized&&e.refreshHierarchy()}_getDataField(t){switch(t.name){case"leaf":case"parent":case"expanded":case"checked":case"selected":case"level":case"icon":case"data":case"group":case"children":case"items":t.map?t.map=t.map.replace(t.name,"$"+t.name):t.map=t.name,t.name="$"+t.name}}get dataFields(){return this._dataFields}set dataFields(t){return this._dataFields=this._getDataFieldObjects(t),this._dataFields}_getDataFieldObjects(t){const e=this;let r=[];if("number"==typeof t){const e="A".charCodeAt(0);let n="",o=0;for(let a=0;a<t;a++){const t=String.fromCharCode(e+o);o++;const a=n+t;r.push({name:a,dataType:"string"}),o>=26&&(o=0,n+="A")}}else if(Array.isArray(t)&&t.length>0)for(let n=0;n<t.length;n++){const o=t[n];if("string"==typeof o){const t=o.split(":"),e=t[0].trim(),n=t.length>1?t[1].trim():"string";r.push({name:e,dataType:n})}else r.push(o);e._getDataField(r[r.length-1])}return r}get dataSource(){const t=this;return t._dataSource||(t._dataSource=[]),t._dataSource}set dataSource(t){const e=this;e._dataSource=t,e.isInitialized&&(e.boundSource=!1===e.observable||e.virtualDataSource?[]:new Smart.ObservableArray,e.dataItemById=[],e.bindingCompleted=!1,e.dataBind(),e.refreshIndexes())}get canNotify(){const t=this;return void 0===t._canNotify&&(t._canNotify=!0),t._canNotify}set canNotify(t){this._canNotify=t}_notify(t){const e=this;e.canNotify&&e.notifyFn&&e.notifyFn(t)}notify(t){t&&(this.notifyFn=t)}toArray(){const t=this;return!1===t.observable?t.boundSource:t.boundSource.toArray()}forEach(t){const e=this;if(t)if(e.boundHierarchy&&e.boundHierarchy.length>0){const r=(t=>{let e=[];for(;t;){e=e.concat(t);for(let r=0;r<t.length;r++)t[r].children&&(e=e.concat(t[r].children));t=t.children}return e})(e.boundHierarchy);for(let e=0;e<r.length;e++){t(r[e],e)}}else for(let r=0;r<e.boundSource.length;r++){t(e.boundSource[r],r)}}dataBind(){const t=this;t.bindingCompleted=!1,t.clear();const e=()=>{t.observable&&(t.boundSource.notify||(t.boundSource=new Smart.ObservableArray),t.boundSource.notify((function(e){if("update"===e.action&&e.path&&e.path.indexOf(".")>=0&&-1===e.path.indexOf("children")&&-1===e.path.indexOf("parent")&&-1===e.path.indexOf("loaded")&&-1===e.path.indexOf("level")&&-1===e.path.indexOf("leaf")&&-1===e.path.indexOf("expanded")){let r=!1;for(let n=0;n<t.dataFields.length;n++){const o=t.dataFields[n].name;e.path.indexOf(o)>=0&&(r=!0)}t._notify&&r&&t._notify({action:"update",data:e.target,index:e.index})}}))),t._onBindingComplete()};"string"==typeof t.dataSource&&(t.dataSource.indexOf(".json")>=0||"json"===t.dataSourceType)?(t.url=t.dataSource,t.dataSourceType="json",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".xml")>=0?(t.url=t.dataSource,t.dataSourceType="xml",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".xlsx")>=0?(t.url=t.dataSource,t.dataSourceType="xlsx",new r(t,r=>{if(!r[0])return r=[],t._bindToArray(),void e();const n=Object.keys(r[0]),o={},a=[];if(!1!==t.exportHeader){let e=0;for(let r in n){o[n[r]]=t.dataFields[e++].name}for(let t=1;t<r.length;t++){const e=r[t],i={};for(let t in n){const r=n[t];i[o[r]]=e[r]}a.push(i)}t.dataSource=a}t._bindToArray(),e()})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".csv")>=0?(t.url=t.dataSource,t.dataSourceType="csv",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&t.dataSource.indexOf(".tsv")>=0?(t.url=t.dataSource,t.dataSourceType="tsv",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&(t.dataSource.indexOf(".ics")>=0||t.dataSource.indexOf(".php")>=0&&"ics"===t.dataSourceType||t.dataSource.indexOf(".txt")>=0&&"ics"===t.dataSourceType)?(t.url=t.dataSource,t.dataSourceType="ics",new r(t,e=>{t.dataSource=e})):"string"==typeof t.dataSource&&(t.dataSource.indexOf("BEGIN:VCALENDAR")>=0||"ics"===t.dataSourceType)?(t._bindToICS(),e()):"string"==typeof t.dataSource&&(t.dataSource.indexOf("<?xml")>=0||"xml"===t.dataSourceType)?(t._bindToXML(),e()):"string"==typeof t.dataSource&&(t.dataSource.indexOf(" ")>=0||t.dataSource.indexOf(",")>=0||"tsv"===t.dataSourceType||"csv"===t.dataSourceType||"tab"===t.dataSourceType)?(t._bindToCSV(),e()):"array"===t.dataSourceType?(t._bindToArray(),e()):"json"===t.dataSourceType&&(t._bindToJSON(),e())}_bindToXML(){const t=this;let e=null,r=null;window.DOMParser&&(e=new DOMParser,r=e.parseFromString(t.dataSource,"text/xml")),void 0===t.root&&(t.root=""),void 0===t.record&&(t.record="");const n=r.querySelectorAll(t.root+" "+t.record),o=n.length,a=[];let i=t.dataFields?t.dataFields.length:0;if(0===i){const e=n[0],r=new Array;for(let t in e){const e=t;r[r.length]={name:e}}t.dataFields=r,i=r.length}for(let e=0;e<o;e++){const r=n[e],o={};if(void 0===r)break;if(t.id){const e=r.querySelector(t.id);o[t.id]=e.textContent}for(let e=0;e<i;e++){const n=t.dataFields[e],a=r.querySelector(n.map||n.name);o[n.name]=a.textContent}a[e]=o}t.canNotify=!1,t.dataSource=a,t.canNotify=!0,t._bindToArray()}static BindToCSV(t,e=!1){const r=""+t,n=-1===r.indexOf(",")?"\t":",",o=r.split("\r"),a=new Array,i=[];let s=r.split("\n"),l=s.length;1===l&&o.length>1&&(s=o,l=s.length);const d=!0===e;for(let t=0;t<l;t++){const e={},r=s[t].split(n);for(let n=0;n<r.length;n++){let o=i[n],a=r[n];if(o||(i.push({name:a.trim()}),o=i[i.length-1]),a=a.trim(),1!==t||d)switch(o.dataType){case"boolean":a="false"!==a;break;case"number":a=parseFloat(a);break;case"date":a=new Date(a)}else{let t="string";"false"===a||"true"===a?(t="boolean",a="false"!==a):isNaN(parseInt(a)&&-1===a.indexOf("/"))?(a.indexOf("-")>=0||a.indexOf("/")>=0||a.indexOf(":")>=0)&&"Invalid Date"!==new Date(a).toString()&&(t="date",a=new Date(a)):(t="number",a=parseFloat(a)),o.dataType||(o.dataType=t)}e[o.name]=a}(d||t>0)&&a.push(e)}return a}_bindToCSV(){const t=this,e=""+t.dataSource,r=-1===e.indexOf(",")?"\t":",",n=e.split("\r"),o=new Array;let a=e.split("\n"),i=a.length;1===i&&n.length>1&&(a=n,i=a.length);const s=t.dataFields.length>0;for(let e=0;e<i;e++){const n=a[e],i={},l=a[e].split(r);for(let r=0;r<l.length;r++){let o=t.dataFields[r],a=l[r];if(o||(t.dataFields.push({name:a.trim()}),o=t.dataFields[t.dataFields.length-1]),o.map&&(a=n[o.map]),a=a.trim(),1!==e||s)switch(o.dataType){case"boolean":a="false"!==a;break;case"number":a=parseFloat(a);break;case"date":a=new Date(a)}else{let t="string";"false"===a||"true"===a?(t="boolean",a="false"!==a):isNaN(parseInt(a)&&-1===a.indexOf("/"))?(a.indexOf("-")>=0||a.indexOf("/")>=0||a.indexOf(":")>=0)&&"Invalid Date"!==new Date(a).toString()&&(t="date",a=new Date(a)):(t="number",a=parseFloat(a)),o.dataType||(o.dataType=t)}i[o.map||o.name||r.toString()]=a}(s||e>0)&&o.push(i)}t.canNotify=!1,t.dataSource=o,t.canNotify=!0,t._bindToArray()}_onBindingComplete(){const t=this;t._buildHierarchy(),t.onBindingComplete&&t.onBindingComplete({data:t.boundSource}),t._notify&&t._notify({action:"bindingComplete",data:t.boundSource}),t.bindingCompleted=!0}refreshHierarchy(){this.isUpdating||this._buildHierarchy()}find(){return this.boundSource.find.apply(this.boundSource,arguments)}onVirtualDataSourceRequested(t,e){const r=this;let n=e?e.first:1/0,o=e?e.last:1/0,a=e?e.row:null;if(void 0===n&&(n=1/0),void 0===o&&(o=1/0),r.virtualFirstIndex=n,r.virtualLastIndex=o,r.virtualDataSource){const i=function(o){void 0!==o.virtualDataSourceLength&&(r.virtualDataSourceLength=o.virtualDataSourceLength),new Smart.DataAdapter({dataSource:o.dataSource,dataFields:o.dataFields||r.dataFields,data:e,keyDataField:o.keyDataField,parentDataField:o.parentDataField,observable:!1,id:o.id||r.id,onBindingComplete(o){if(void 0===e.result&&(e.result=!0),r.virtualDataSourceOnExpand&&a)return r.groupBy.length>0?o.data&&o.data.length>0&&r.add(o.data):o.data&&o.data.length>0?r.add(o.data,a.$.id):a.leaf=!0,r.onFilter&&r.onFilter(),void t(e);n===1/0&&"scroll"===e.action?o.data&&o.data.length&&r.add(o.data):"filter"===e.action||"group"===e.action?(r.canNotify=!1,r.dataSource=o.data,r.canNotify=!0):("add"===e.action||"update"===e.action||e.action,r.canNotify=!1,r.dataSource=o.data,r.canNotify=!0),r.onFilter&&r.onFilter(),t(e)}})};let s={};if(e.sorting&&e.sorting.length>0){let t=[];for(let r in e.sorting)t.push(r+" "+e.sorting[r].sortOrder.toUpperCase());const r=" ORDER BY "+t.join(", ");s.orderBy=r}else s.orderBy="";if(void 0===n||void 0===o||0===n&&0===o)s.limit="";else{const t=o-n,e=" LIMIT "+t+" OFFSET "+n;s.limit=e,isNaN(t)&&(s.limit="")}if(e.grouping&&e.grouping.length>0){const t=" GROUP BY "+e.grouping[0];s.groupBy=t}else s.groupBy="";if(e.filtering&&e.filtering.length>0){const t=(t,e)=>{switch(e.condition){case"EMPTY":return t+" = ''";case"NOT_EMPTY":return t+" != ''";case"EQUAL":return t+" = '"+e.value+"'";case"NOT_EQUAL":return t+" != '"+e.value+"'";case"CONTAINS_CASE_SENSITIVE":case"CONTAINS":return t+" LIKE '%"+e.value+"%'";case"DOES_NOT_CONTAIN_CASE_SENSITIVE":case"DOES_NOT_CONTAIN":return t+" NOT LIKE '%"+e.value+"%'";case"STARTS_WITH_CASE_SENSITIVE":case"STARTS_WITH":return t+" LIKE '"+e.value+"%'";case"ENDS_WITH_CASE_SENSITIVE":case"ENDS_WITH":return t+" LIKE '%"+e.value+"'";case"NULL":return t+" IS NULL";case"NOT_NULL":return t+" IS NOT NULL"}},r=(t,e)=>{switch(e.condition){case"EQUAL":return t+" = "+e.value;case"NOT_EQUAL":return t+" != "+e.value;case"GREATER_THAN":return t+" > "+e.value;case"GREATER_THAN_OR_EQUAL":return t+" >= "+e.value;case"LESS_THAN":return t+" < "+e.value;case"LESS_THAN_OR_EQUAL":return t+" <= "+e.value;case"NULL":return t+" IS NULL";case"NOT_NULL":return t+" IS NOT NULL";case"RANGE":return"("+t+" >= "+e.value+" and "+t+" <= "+e.valueTo+")"}},n=(t,e,r)=>{if(r.operator){var n=t(e,r.condition1),o=t(e,r.condition2);return"("+n+" "+r.operator+" "+o+")"}return t(e,r)};let o=[];for(let a in e.filtering){const i=e.filtering[a];let s=i.filters,l=[],d=" AND ";for(let e=0;e<s.length;e++){const o=s[e];switch(o.type){case"stringFilter":l.push(n(t,a,o));break;case"numericFilter":case"dateFilter":case"booleanFilter":l.push(n(r,a,o))}1===i.logicalOperators[e]&&(d=" OR ")}o.push("("+l.join(d)+")")}if(o.length>0){let t=" AND ";e.filterOperator&&"or"===e.filterOperator.toLowerCase()&&(t=" OR "),s.where=" WHERE "+o.join(t)}else s.where=""}else s.where="";if("dataBind"===e.action&&r.virtualDataSourceOnExpand&&r.keyDataField&&r.parentDataField&&(s.where?s.where+=" AND "+r.parentDataField+" IS NULL":s.where=" WHERE "+r.parentDataField+" IS NULL"),"update"===e.action){const t=[];for(let n in e.edit.row)"$"!==n&&n!==r.id&&t.push(n+"='"+e.edit.row[n]+"'");s.update=" SET "+t.join(", ")+" WHERE "+r.id+"="+e.edit.row[r.id]}if("remove"===e.action){const t=[];for(let n in e.edit.row)"$"!==n&&n!==r.id&&t.push(n+" = '"+e.edit.row[n]+"'");s.remove=" WHERE "+r.id+"="+e.edit.row[r.id]}if("add"===e.action){const t=[],r=[];for(let n in e.edit.row)"$"!==n&&(r.push(n),null!==e.edit.row[n]?t.push("'"+e.edit.row[n]+"'"):t.push("null"));s.add=" ("+r.join(", ")+") VALUES ("+t.join(", ")+")"}"expand"===e.action?(r.groupDataField?s.where?s.where+=" AND "+r.groupDataField+" = '"+a[r.groupDataField]+"'":s.where=" WHERE "+r.groupDataField+" = '"+a[r.groupDataField]+"'":r.keyDataField&&r.parentDataField?s.where?s.where+=" AND "+r.parentDataField+" = "+a[r.keyDataField]:s.where=" WHERE "+r.parentDataField+" = "+a[r.keyDataField]:s.where?s.where+=" AND "+a.groupDataField+" = '"+a.label+"'":s.where=" WHERE "+a.groupDataField+" = '"+a.label+"'",s.where.indexOf("undefined")>=0&&(s.where=""),s.limit="",s.groupBy="",r.virtualDataSourceOnExpand(i,{first:n,last:o,row:e.row,sorting:e.sorting,filtering:e.filtering,grouping:e.grouping,action:e.action,query:s})):r.virtualDataSource(i,{first:n,last:o,sorting:e.sorting,filtering:e.filtering,filterOperator:e.filterOperator||"and",grouping:e.grouping,action:e.action,query:s})}else t()}add(t,e){const r=this;if(!t)return;let n=!0;const o=function(t){const o=r._getDataItem(t,r.boundSource.length);if(r.dataItemById[o.$.id])return void 0!==e&&(o.$.parentId=e),null;r[r.boundSource.length]=o,r.dataItemById[o.$.id]=o;const a=r.boundSource.push(o);return void 0!==e&&(o.$.parentId=e),a||(n=!1),o};if(t.length){let e=[];for(let r=0;r<t.length;r++){const n=o(t[r]);n&&e.push(n)}r._notify({action:"add",data:e})}else{const e=o(t);r._notify({action:"add",data:e})}return r.refreshHierarchy(),n}refreshIndexes(){const t=this;for(let e=0;e<t.boundSource.length;e++)t[e]=t.boundSource[e],t[e].$.index=e,t.dataItemById[t[e].$.id]=t[e];let e=t.boundSource.length;for(;t[e];)delete t[e],e++}removeLast(){delete this[this.boundSource.length-1];const t=this.boundSource.pop();return delete this.dataItemById[t.$.id],this._notify({action:"removeLast",data:t}),this.refreshHierarchy(),t}removeById(t){const e=this.indexOf(this.dataItemById[t]);this.boundSource[e]&&this.removeAt(e)}remove(t){const e=this;let r=e.indexOf(t);-1===r&&t&&t.$&&(r=e.indexOf(e.dataItemById[t.$.id])),e.boundSource[r]&&e.removeAt(r)}removeAt(t){const e=this.boundSource[t];if(!e)throw new Error("Invalid Item Index");this.boundSource.splice(t,1),delete this.dataItemById[e.$.id],this.refreshIndexes(),this._notify({action:"remove",index:t,data:e}),this.refreshHierarchy()}update(t,e){const r=this;if(Smart.Utilities.Types.isArray(t)&&Smart.Utilities.Types.isArray(e)&&0===t.length&&0===e.length)return void r.refreshHierarchy();if(e.length&&t.length){let n=[];for(let o=0;o<t.length;o++){const a=r._getDataItem(e[o],t[o]),i=t[o];n.push(a),r.boundSource[i]=a,r[i]=r.boundSource[i],r.dataItemById[a.$.id]=r[i]}return r._notify({action:"update",index:t,data:n}),void r.refreshHierarchy()}const n=r._getDataItem(e,t),o=r.boundSource[t].$.id;return n.$.id=o,r.boundSource[t]=n,r[t]=r.boundSource[t],r.dataItemById[n.$.id]=r[t],r._notify({action:"update",index:t,data:n}),r.refreshHierarchy(),n}insert(t,e){const r=this;if(e.length){const n=[];for(let o=0;o<e.length;o++){const a=r._getDataItem(e[o],t+o);n.push(a)}e=n}else e=r._getDataItem(e,t);const n=r.boundSource.splice(t,0,e);return r.refreshIndexes(),r._notify({action:"insert",index:t,data:e}),r.refreshHierarchy(),n}move(t,e){if(e>t&&e-t==1||t===e)return;const r=this,n=r.boundSource.splice(t,1)[0];e>t?(e--,r.boundSource.splice(e,0,n)):r.boundSource.splice(e,0,n),r.refreshIndexes(),r._notify({action:"move",index:e,data:r.boundSource[e]}),r.refreshHierarchy()}indexOf(t){return this.boundSource.indexOf(t)}get length(){const t=this;return void 0!==t.virtualDataSourceLength?t.virtualDataSourceLength:t.dataSourceLength?t.dataSourceLength:"number"==typeof t.dataSource?t.dataSource:t.bindingCompleted?t.boundSource.length:t.dataSource&&"string"!=typeof t.dataSource&&t.dataSource.length?t.dataSource.length:t.boundSource.length}clear(){const t=this;if(!t.isInitialized)return t._cachedValues=[],void(t.dataItemById=[]);for(let e=0;e<t.boundSource.length;e++)delete t[e];t._expandedRowIds=[],t._cachedValues=[],t.boundSource=t.observable?new Smart.ObservableArray:[],t.dataItemById=[],t.refreshHierarchy()}_getId(t,e,r){if(null===t||void 0===t.name||!t.name||!e.getAttribute){if(t&&t.toString().length>0&&e.getAttribute){let r=e.getAttribute(t);if(null!==r&&r.toString().length>0)return r.trim().split(" ").join("").replace(/([ #;?%&,.+*~\':'!^$[\]()=>|\/@])/g,"");{let r=t.split(this.mapChar);if(r.length>1){let t=e;for(let e=0;e<r.length;e++)void 0!==t&&(t=t[r[e]]);if(void 0!==t)return t}else if(void 0!==e[t])return e[t]}}return r}{let n=e.getAttribute(t.name);if(null!==n&&n.toString().length>0)return n;if(t.map)try{let r=e.getAttribute(t.map);if(null!==r&&r.toString().length>0)return r}catch(t){return r}}}_buildHierarchy(){const t=this;if(t.reservedNames){const e=t.reservedNames;e.leaf||(e.leaf="leaf"),e.parent||(e.parent="parent"),e.expanded||(e.expanded="expanded"),e.checked||(e.checked="checked"),e.selected||(e.selected="selected"),e.level||(e.level="level"),e.data||(e.data="data")}else t.reservedNames={leaf:"leaf",parent:"parent",expanded:"expanded",checked:"checked",selected:"selected",level:"level",icon:"icon",data:"data"};const e=t.reservedNames;if(t.childrenDataField){const r=[];for(let n=0;n<t.boundSource.length;n++){const o=Object.assign({},t.boundSource[n]);if(!o)continue;r.push(o);const a=function(r){const n=t.childrenDataField.split(t.mapChar);let o=null;if(n.length>1){let t=r;for(let e=0;e<n.length;e++)void 0!==t&&(t=t[n[e]]);o=t}else o=r.children;r.children=o,(null===r.children||void 0===r.children||r.children&&0===r.children.length)&&(r[e.leaf]=!0)};a(o),o[e.level]=0,o.$||(o.$={}),o[e.parent]=null,o[e.data]=o,void 0===o[e.expanded]&&(o[e.expanded]=!1,t.expandHierarchy&&(o[e.expanded]=!0));const i=function(r,n){if(n)for(let o=0;o<n.length;o++){let s=t._getDataItem(n[o],o);if(s){if(a(s),!t.id){const t=function(){const t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return t()+t()};s.$.id=t()}s[e.level]=r[e.level]+1,s[e.parent]=r,s[e.data]=Object.assign({},s),r&&(r.children[o]=s),void 0===s[e.expanded]&&(s[e.expanded]=!1,t.expandHierarchy&&(s[e.expanded]=!0)),i(s,s.children)}}else r.children=new Array};i(o,o.children)}if(t.boundHierarchy=r,!t._boundSourceUpdate){for(let e=0;e<t.boundHierarchy.length;e++){const r=t.boundHierarchy[e];if(r.children){const e=function(r){if(t.dataItemById[r.$.id]||(t.boundSource.canNotify=!1,t.dataItemById[r.$.id]=r,t.boundSource.canNotify=!0),r.children)for(let t=0;t<r.children.length;t++){const n=r.children[t];n.children&&e(n)}};e(r)}}t._boundSourceUpdate=!0}}if(t.xmlRoot&&"xml"===t.dataSourceType&&(t.boundHierarchy=this._getHierarchy("uid","_parentuid","children",null,t.boundSource)),t.keyDataField&&t.parentDataField)return["keyDataField","parentDataField"].forEach(e=>{switch(t[e]){case"parent":t[e]="$"+t[e]}}),void(t.boundHierarchy=this._getHierarchy(t.keyDataField,t.parentDataField,"children",null,t.boundSource));t.groupBy&&t.groupBy.length>0?t.boundHierarchy=this._getGroupHierarchy(t.groupBy,"children","label",null,"data",null,"parent",t.boundSource):t.virtualDataSourceOnExpand&&(t.boundHierarchy=this._getHierarchy("id","parentId","children",null,t.boundSource))}_getGroupHierarchy(t,e,r,n,o,a,i,s,l){let d=this;l||(l=0);let m=d.reservedNames;const c=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()};let h=new Array;for(let e=0;e<t.length;e++)h[e]=c();e||(e="children"),r||(r="group"),o||(o="item"),i||(i="parent"),void 0===a&&(a="value");const u=new Array,p=new Array;let f=0;const g=function(t){let e=t;if(n)for(let t in n){const r=n[t];r.name&&r.map&&(e[r.map]=e[r.name])}return e};let b=!1;for(let n=0;n<s.length;n++){let v=Object.assign({},g(s[n]));v[m.leaf]=!1;let y=new Array,w=0;for(let e=0;e<t.length;e++){const r=t[e],n=v[r];null!=n?((""===n||void 0===n&&0===e)&&(b=!0),y[w++]={value:n,group:r,hash:h[e]}):(y[w++]={value:null,group:r,hash:h[e]},0===e&&(b=!0))}if(y.length!==t.length)break;let x=null,_="";for(let t=0;t<y.length;t++){const n=y[t].value,s=y[t].group;if(_=_+"_"+y[t].hash+"_"+n,void 0===p[_]||null===p[_]){if(null===x){x={$:{}},x[m.level]=0,x[m.leaf]=!1,x[i]=null,x[r]=n,x[o]=v,x.groupDataField=s,x[s]||(x[s]=x.data[s]),void 0!==v[m.expanded]?x[m.expanded]=v[m.expanded]:(x[m.expanded]=!1,d.expandHierarchy&&(x[m.expanded]=!0)),a&&(x[a]=v[a]),x[e]=new Array;let t=u.length+l;this.id&&"number"!=typeof v.$.id&&!isFinite(v.$.id)||(t="Item"+t),void 0===x.$.id&&(x.$.id=t),d._expandedRowIds[x.$.id]&&(x[m.expanded]=!0),d.expandHierarchy&&d._collapsedIds&&d._collapsedIds[x.$.id]&&(x[m.expanded]=!1),u[f++]=x}else{const t={$:{}};t[m.level]=x[m.level]+1,t[i]=x,t[r]=n,t[e]=new Array,t[o]=v,t.groupDataField=s,t[m.leaf]=!1,t[s]||(t[s]=t.data[s]),void 0!==v[m.expanded]?t[m.expanded]=v[m.expanded]:(t[m.expanded]=!1,d.expandHierarchy&&(t[m.expanded]=!0)),a&&(t[a]=v[a]),void 0===t.$.id&&(t.$.id=x.$.id+"_"+x[e].length),d.expandHierarchy&&d._collapsedIds&&d._collapsedIds[t.$.id]&&(t[m.expanded]=!1),d._expandedRowIds[t.$.id]&&(t[m.expanded]=!0),x[e][x[e].length]=t,x=t}p[_]=x}else x=p[_]}v&&(v[m.leaf]=!0),null!==x?(null===this.id?void 0===v.$.id&&(v.$.id=x.$.id+"_"+x[e].length):void 0===v.$.id&&-1===v.$.id.toString().indexOf(x.$.id)&&(v.$.id=x.$.id+"_"+v.$.id),v[i]=x,v[m.level]=x[m.level]+1,x[e][x[e].length]=v):void 0===v.$.id&&(v.$.id=c())}if(b){let t=null,e=!1;for(let r=0;r<u.length;r++){const n=u[r];if(!n[n.groupDataField]){t=n,t.$.id.toString().startsWith("Item")&&(e=!0),u.splice(r,1);break}}if(t&&(u.push(t),e))for(let t=0;t<u.length;t++){const e=u[t];e.$.id="Item"+t,Object.keys(d._expandedRowIds).length>0&&(d._expandedRowIds[e.$.id]?e[m.expanded]=!0:e[m.expanded]=!1,d.expandHierarchy&&(e[m.expanded]=!0,d._collapsedIds&&d._collapsedIds[e.$.id]&&(e[m.expanded]=!1)))}}return u}_getHierarchy(t,e,r,n,o){const a=this,i=new Array;let s=this.boundSource;if(o&&(s=o),0===this.boundSource.length)return null;const l=null!==r?r:"children";let d=new Array,m=s,c=m.length,h=a.reservedNames;const u=function(t){let e=t;if(n)for(let t in n){const r=n[t];r.name&&r.map&&(e[r.map]=e[r.name])}return e};for(let r=0;r<c;r++){let n=m[r],o=n[e],i=n[t];"parentId"===e&&(o=n.$.parentId),"id"===t&&(i=n.$.id),n[l]=new Array,a.expandHierarchy&&void 0===n[h.expanded]&&(n[h.expanded]=a.expandHierarchy),d[i]={parentId:o,item:n}}for(let r=0;r<c;r++){const n=m[r];let o=n[e],a=n[t];if("parentId"===e&&(o=n.$.parentId),"id"===t&&(a=n.$.id),void 0!==d[o]){let t={parentId:o,item:d[a].item},e=d[o].item;e[l]||(e[l]=new Array);let r=e[l].length;t=t.item,h?t[h.parent]=e:t.parent=e;const n=u(t);e[l][r]=n,d[o].item=e,d[a].item=t}else{let t=d[a].item;h?void 0===t[h.parent]&&(t[h.parent]=null):void 0===t.parent&&(t.parent=null);const e=u(t);h?e[h.level]=0:e.level=0,i[i.length]=e}}if(0!==i.length){let t=function(e,r){for(let n=0;n<r.length;n++){const o=r[n];h?o[h.level]=e:o.level=e;const i=o[l];i&&i.length>0?(o.leaf=!1,t(e+1,i)):a.virtualDataSourceOnExpand?void 0===o.leaf&&(o.leaf=!1):h?o[h.leaf]=!0:o.leaf=!0}};t(0,i)}return i}summarize(t,e){const r=this;Array.isArray(t)||(t=[t]);let n=[];for(let e=0;e<t.length;e++){const r=t[e];for(let t in r){const e=r[t];n.push({dataField:t,functions:e})}}t=n;let o={},a=new Array;e||(e=r.boundSource);let i=e.length,s=0;if(0!==i&&void 0!==i){for(let r=0;r<i;r++){let n=e[r];if((!n||!n.$||!1!==n.$.filtered)&&n){s++;for(let e=0;e<t.length;e++){const i=t[e];let s=n[i.dataField];if(i.functions&&i.functions.length>0){o[i.dataField]=o[i.dataField]||{},a[i.dataField]=a[i.dataField]||0,a[i.dataField]++;const t=function(t){for(let e in t){let r=o[i.dataField][e];null==r&&(o[i.dataField][e]=0,r=0),"function"==typeof t[e]&&(r=t[e](r,s,i.dataField,n)),o[i.dataField][e]=r}},e=s;let l=parseFloat(s);l=!isNaN(l),e&&e.toDate&&(l=!1),"string"==typeof s&&s.startsWith("+")&&(l=!1),l&&(s=parseFloat(s)),"number"==typeof s&&isFinite(s)?i.functions.forEach((function(e){let n=o[i.dataField][e];if(null==n&&(n=0,"min"===e&&(n=9999999999999),"max"===e&&(n=-9999999999999),"median"===e&&(n=[])),"sum"===e||"avg"===e||"stdev"===e||"stdevp"===e||"var"===e||"varp"===e)n+=parseFloat(s);else if("product"===e)0===r?n=parseFloat(s):n*=parseFloat(s);else if("min"===e)n=Math.min(n,parseFloat(s));else if("max"===e)n=Math.max(n,parseFloat(s));else if("count"===e)n++;else if("median"===e)n.push(parseFloat(s));else if("blank"===e)n=o[i.dataField][e],null==n&&(n=0),s||n++;else if("filled"===e)n=o[i.dataField][e],null==n&&(n=0),void 0!==s&&n++;else if("unique"===e)n=o[i.dataField][e],null==n&&(n=[]),-1===n.indexOf(s)&&n.push(s);else if("object"==typeof e)return void t(e);o[i.dataField][e]=n})):i.functions.forEach((function(e){if("min"===e||"max"===e||"count"===e||"product"===e||"sum"===e||"avg"===e||"stdev"===e||"stdevp"===e||"var"===e||"varp"===e){if(null===s&&"count"!==e)return!0;let t=o[i.dataField][e];return null==t&&(t=0),o[i.dataField][e]=t,!0}if("blank"===e){let t=o[i.dataField][e];null==t&&(t=0),s||t++,o[i.dataField][e]=t}else if("filled"===e){let t=o[i.dataField][e];null==t&&(t=0),s&&t++,o[i.dataField][e]=t}else if("unique"===e){let t=o[i.dataField][e];null==t&&(t=[]),-1===t.indexOf(s)&&t.push(s),o[i.dataField][e]=t}"object"==typeof e&&t(e)}))}}}}for(let r=0;r<t.length;r++){const n=t[r];if(n.functions&&(!n.functions||0!==n.functions.length)){if(o[n.dataField]||(o[n.dataField]={},n.functions.forEach((function(t){o[n.dataField][t]=0}))),void 0!==o[n.dataField].avg){const t=o[n.dataField].avg,e=a[n.dataField];o[n.dataField].avg=0===e||void 0===e?0:t/e}else void 0!==o[n.dataField].count&&(o[n.dataField].count=s);if(void 0!==o[n.dataField].unique){const t=o[n.dataField].unique;o[n.dataField].unique=t.length}if(void 0!==o[n.dataField].median){let t=o[n.dataField].median;t.sort((function(t,e){return t-e})),o[n.dataField].median=.5*(t[Math.floor((t.length+1)/2)-1]+t[Math.ceil((t.length+1)/2)-1])}(o[n.dataField].stdev||o[n.dataField].stdevp||o[n.dataField].var||o[n.dataField].varp)&&n.functions.forEach((function(t){if("stdev"===t||"var"===t||"varp"===t||"stdevp"===t){const r=o[n.dataField][t],a=i,s=r/i;let l=0;for(let t=0;t<i;t++){let r=e[t][n.dataField];l+=(r-s)*(r-s)}let d="stdevp"===t||"varp"===t?a:a-1;0===d&&(d=1),"var"===t||"varp"===t?o[n.dataField][t]=l/d:"stdevp"!==t&&"stdev"!==t||(o[n.dataField][t]=Math.sqrt(l/d))}}))}}return o}}_getDataItem(t,e){const r=this,n={},o="number"==typeof r.dataSource||r.dataSourceLength;if(!t)return{$:{id:e,isEmpty:!0,index:e}};if("string"==typeof t&&(t={"":t}),o){for(let t=0;t<r.dataFields.length;t++){n[(r.dataFields?r.dataFields[t]:{}).name]=""}return n.$={},n.$.id=e,n.$.index=e,n}const a=t;if(void 0!==a.expanded&&(n.expanded=a.expanded,"true"===a.expanded||!0===a.expanded||1===a.expanded?n.expanded=!0:n.expanded=!1),r.childrenDataField?void 0!==a[r.childrenDataField]&&(n.children=a[r.childrenDataField]):void 0!==a.children?n.children=a.children:void 0!==a.items&&(n.children=a.items),void 0!==a.leaf&&(n.leaf=a.leaf),void 0!==a.level&&(n.level=a.level),r.keyDataField&&void 0!==a[r.keyDataField]&&(n[r.keyDataField]=a[r.keyDataField]),r.parentDataField&&void 0!==a[r.parentDataField]&&(n[r.parentDataField]=a[r.parentDataField]),0===r.dataFields.length){const e=Object.getOwnPropertyNames(t);for(let t=0;t<e.length;t++)"$"!==e[t]&&r.dataFields.push({name:e[t],dataType:"string"})}for(let e=0;e<r.dataFields.length;e++){const o=r.dataFields?r.dataFields[e]:{};let i="";if(null==o)continue;if(t.length&&(i=t[e]),o.map){let t=o.map.split(r.mapChar);if(t.length>0){let e=a;for(let r=0;r<t.length;r++)a&&e&&(e=e[t[r]]);i=e}else i=a[o.map]}null!=i?i=i.toString():void 0===i&&null!==i&&(i="");let s=!1;if(""===i&&(s=!0,i=t[o.name],void 0===o.dataType&&(o.dataType="any"),null!=i?"array"!==o.dataType&&("any"===o.dataType?i=Array.isArray(t[o.name])?[...t[o.name]]:"object"==typeof t[o.name]?Object.assign({},t[o.name]):t[o.name]:"date"!==o.dataType&&(i=i.toString())):i=void 0===i&&"any"===o.dataType?null:""),"[object Object]"===i&&o.map&&s&&(i=""),r._cachedValues[i+"_"+o.dataType])i=r._cachedValues[i+"_"+o.dataType];else{if("bool"===o.dataType||"boolean"===o.dataType)"true"===i||"1"===i?i=!0:"false"!==i&&"0"!==i||(i=!1);else if("number"===o.dataType)-1===i.indexOf(".")&&i.indexOf(",")>=0&&i.substring(1+i.indexOf(",")).length<3&&(i=i.replace(",",".")),i=r.$document.deserialize(""+i,o.dataType,!0);else if("date"===o.dataType)if(o.formatString&&Smart.Utilities.DateTime){i=Smart.Utilities.DateTime.ParseDate(i,o.formatString)}else i=r.$document.deserialize(""+i,o.dataType,!0);else"any"!==o.dataType&&(i="string"===o.dataType&&"null"===i?"null":r.$document.deserialize(""+i,o.dataType,!0));"any"!==o.dataType&&(r._cachedValues[i+"_"+o.dataType]=i)}"string"!==o.dataType&&"boolean"!==o.dataType&&"bool"!==o.dataType&&"any"!==o.dataType&&(isNaN(i)||i===-1/0||i===1/0)&&(i="date"===o.dataType||"number"===o.dataType?null:0),"parent"!==o.name&&"group"!==o.name&&"leaf"!==o.name&&"level"!==o.name?("string"===o.dataType&&/<.+?>/.test(i)&&i.replace&&("all"===r.sanitizeHTML?i=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,"""):"blackList"===r.sanitizeHTML&&(i=window.Smart.Utilities.Core.sanitizeHTML(i))),n[o.name]=i):n.$[o.name]=i}let i=e;if(r.id){if(i=a[r.id],void 0===i){const t=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};i=t()+t()}"object"==typeof i&&(i=e),a.$&&void 0!==a.$.id&&(i=a.$.id)}else if(!r.virtualDataSource&&r.dataItemById&&r.dataItemById[i])for(i=r.length;r.dataItemById[i];)i++;return n.$||(n.$={}),n.$.id=i,n.$.index=e,new Object(n)}_bindToArray(){const t=this,e="number"==typeof t.dataSource||t.dataSourceLength,r=[];t.boundSource.canNotify=!1;const n=e?"number"==typeof t.dataSource?t.dataSource:t.dataSource.length:t.observable?t.length:t.dataSource.length;for(let o=0;o<n;o++){const n=e?{}:t.dataSource[o],a=t._getDataItem(n,o);r.push(a)}if(e&&t.dataSourceLength&&t.dataSource.length>0)for(let e=0;e<t.dataSource.length;e++){const n=t.dataSource[e].cell,o=t.dataSource[e].value,a=n.replace(/[^0-9]/g,""),i=n.replace(/[0-9]/g,"");r[a-1][i]=o}t.boundSource=!1===t.observable||t.virtualDataSource?[]:new Smart.ObservableArray(r),t.observable&&(t.boundSource=new Smart.ObservableArray(r));for(let e=0;e<n;e++)t.observable?t[e]=t.boundSource[e]:t[e]=r[e],t.dataItemById[t[e].$.id]=t[e];!1===t.observable&&(t.boundSource=r),t.boundSource.canNotify=!0}_bindToICS(){const t=""+this.dataSource,e=this.rowDelimiter||"\n",r=t.split("\r"),n=[];let o=t.split(e),a=o.length;1===a&&r.length>1&&(o=r,a=o.length);const i=function(t,e){var r=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z)?$/.exec(t);if(!r)throw new Error("Invalid UNTIL value: "+t);return e?new Date(r[1],r[2]-1,r[3],0,0,0,0):new Date(Date.UTC(r[1],r[2]-1,r[3],r[5]||0,r[6]||0,r[7]||0))};for(let t=0;t<a;t++){const e=o[t].trim();if(e.indexOf("BEGIN:VEVENT")>=0)var s={};else if(s)if(e.indexOf("BEGIN:VALARM")>=0)var l={};else{if(l){if(e.indexOf("ACTION")>=0){l.ACTION=e.substring(e.indexOf("ACTION")+7);continue}if(e.indexOf("DESCRIPTION")>=0){l.DESCRIPTION=e.substring(e.indexOf("DESCRIPTION")+12);continue}if(e.indexOf("TRIGGER")>=0){l.TRIGGER=e.substring(e.indexOf("TRIGGER")+8);continue}if(e.indexOf("END:VALARM")>=0){s.ALARM||(s.ALARM=[]),s.ALARM.push(l),l=void 0;continue}}if(e.indexOf("SUMMARY")>=0)s.SUMMARY=e.substring(e.indexOf("SUMMARY")+8);else if(e.indexOf("LOCATION")>=0)s.LOCATION=e.substring(e.indexOf("LOCATION")+9);else if(e.indexOf("DESCRIPTION")>=0)s.DESCRIPTION=e.substring(e.indexOf("DESCRIPTION")+12);else if(e.indexOf("RRULE")>=0)s.RRULE=e.substring(e.indexOf("RRULE")+6);else if(e.indexOf("RECURRENCE-ID")>=0)s.RECURRENCEID=e.substring(e.indexOf("RECURRENCE-ID")+14);else if(e.indexOf("RECURRENCE-ID;VALUE=DATE")>=0)s.RECURRENCEID=e.substring(e.indexOf("RECURRENCE-ID;VALUE=DATE")+25);else if(e.indexOf("EXDATE;VALUE=DATE")>=0){const t=e.substring(e.indexOf("EXDATE;VALUE=DATE")+20);s.EXDATE=t}else if(e.indexOf("EXDATE")>=0){const t=e.substring(e.indexOf("EXDATE")+7);s.EXDATE=t}else e.indexOf("DTEND;VALUE=DATE")>=0?s.DTEND=i(e.substring(e.indexOf("DTEND;VALUE=DATE")+17),!0):e.indexOf("DTEND")>=0?s.DTEND=i(e.substring(e.indexOf("DTEND")+6)):e.indexOf("DTSTART;VALUE=DATE")>=0?s.DTSTART=i(e.substring(e.indexOf("DTSTART;VALUE=DATE")+19),!0):e.indexOf("DTSTART")>=0?s.DTSTART=i(e.substring(e.indexOf("DTSTART")+8)):e.indexOf("UID")>=0?s.uid=s.UID=e.substring(e.indexOf("UID")+4):e.indexOf("STATUS")>=0?s.STATUS=e.substring(e.indexOf("STATUS")+7):e.indexOf("TITLE")>=0?s.TITLE=e.substring(e.indexOf("TITLE")+6):e.indexOf("CATEGORIES")>=0?s.CATEGORIES=e.substring(e.indexOf("CATEGORIES")+11):e.indexOf("END:VEVENT")>=0&&(n.push(s),s.ALARM&&(s.ALARM=JSON.stringify(s.ALARM)),l=void 0)}}this.canNotify=!1,this.dataSource=n,this.canNotify=!0,this._bindToArray()}_bindToJSON(){const t=this,e=[],r=t.dataSource.length?t.dataSource:Object.entries(t.dataSource);t.boundSource.canNotify=!1;for(let n=0;n<r.length;n++){const o=r[n],a=t._getDataItem(o,n);e.push(a)}t.boundSource=!1===t.observable||t.virtualDataSource?[]:new Smart.ObservableArray(e);for(let e=0;e<t.length;e++)t[e]=t.boundSource[e],t.dataItemById[t[e].$.id]=t[e];!1===t.observable&&(t.boundSource=e),t.boundSource.canNotify=!0}sortBy(t,e,r){const n=this;if(!e)for(let r=0;r<n.dataFields.length;r++){const o=n.dataFields[r];if(o.name===t){e=o.dataType;break}}if(n.boundHierarchy){if((!t||0===t.length)&&n.groupBy.length>0)return void n.refreshHierarchy();const o=(t=>{let e=[];for(;t;){e=e.concat(t);for(let r=0;r<t.length;r++)t[r].children&&(e=e.concat(t[r].children));t=t.children}return e})(n.boundHierarchy);if(o){o.find(t=>{if(t.summaryRow)return t})&&n.refreshHierarchy()}const a=function(o){n._sort(o,t,r,e);for(let n=0;n<o.length;n++){const i=o[n];i.children&&a(i.children,t,r,e)}};a(n.boundHierarchy)}else n._sort(n.boundSource,t,r,e)}_createFilter(t,e){const r={"=":"EQUAL","<>":"NOT_EQUAL","!=":"NOT_EQUAL",not_like:"DOES_NOT_CONTAIN",like:"CONTAINS","<":"LESS_THAN",">":"GREATER_THAN","<=":"LESS_THAN_OR_EQUAL",">=":"GREATER_THAN_OR_EQUAL",equal:"EQUAL","not equal":"NOT_EQUAL","less than":"LESS_THAN","greater than":"GREATER_THAN","greater than or equal":"GREATER_THAN_OR_EQUAL","less than or equal":"LESS_THAN_OR_EQUAL","starts with":"STARTS_WITH","ends with":"ENDS_WITH",notEqual:"NOT_EQUAL",not_equal:"NOT_EQUAL",lessThan:"LESS_THAN",greaterThan:"GREATER_THAN",greaterThanOrEqual:"GREATER_THAN_OR_EQUAL",lessThanOrEqual:"LESS_THAN_OR_EQUAL",less_than:"LESS_THAN",greater_than:"GREATER_THAN",greater_than_or_equal:"GREATER_THAN_OR_EQUAL",less_than_or_equal:"LESS_THAN_OR_EQUAL",null:"null","":"EMPTY",isblank:"EMPTY",isnotblank:"NOT_EMPTY",isBlank:"EMPTY",isNotBlank:"NOT_EMPTY",CONTAINS:"CONTAINS",DOES_NOT_CONTAIN:"DOES_NOT_CONTAIN",contains:"CONTAINS",does_not_contain:"DOES_NOT_CONTAIN","not contains":"DOES_NOT_CONTAIN",notcontains:"DOES_NOT_CONTAIN",notContains:"DOES_NOT_CONTAIN",startswith:"STARTS_WITH",endswith:"ENDS_WITH",starts_with:"STARTS_WITH",ends_with:"ENDS_WITH",startsWith:"STARTS_WITH",endsWith:"ENDS_WITH",NULL:"NULL",NOT_NULL:"NOT_NULL"};let n=[];"string"==typeof e&&(e=[e]);for(let t=0;t<e.length;t++){const r=e[t],o=-1===r.indexOf('"')?r.split(" "):r.split('"');let a=[];for(let t=0;t<o.length;t++){const e=o[t];""!==e&&" "!==e&&a.push(e.trim())}n.push(a)}const o=new Smart.FilterGroup,a=[],i=[];for(let e=0;e<n.length;e++){const o=n[e];if(o.length>1){const e=new Smart.FilterGroup;let n=o.length>2?"":"and",a=0,s=[];for(let i=0;i<o.length;i++){let l=o[i];if("and"!==l&&"or"!==l){if(a++,2===a){let d=r[o[i-1]];d||(d=o[i-1]),"number"===t&&(l=parseFloat(l)),"date"===t&&(l=new Date(l));const m=e.createFilter(t,l,d);if(a=0,s.push(m),n){for(let t=0;t<s.length;t++)e.addFilter(n,s[t]);s=[]}}}else n=l}i.push(e)}else{let t=o[0];if(t&&r[t]&&(t="and"),"and"!==t&&"or"!==t)throw new Error('Filter Exprresion expects "AND" or "OR", but the token is: '+t);a.push(t)}}let s=0;if(1===i.length)return i[0];for(let t=0;t<i.length;t++){let e=a[s];(t+1)%2==0&&s++,e||(e="and"),o.addFilter(e,i[t])}return o}filterBy(t,...e){const r=this,n=(()=>{for(let e=0;e<r.dataFields.length;e++){const n=r.dataFields[e];if(n.name===t)return n.dataType}})(),o=r._createFilter(n,e);return r.boundSource.filter(e=>o.evaluate(e[t]))}_filter(t,e="and"){const r=this,n=[],o=[];if(0===t.length)return void r.clearFilter();const a=t=>{for(let e=0;e<r.dataFields.length;e++){const n=r.dataFields[e];if(n.name===t)return n.dataType}};let i,s;"and"===e?(i=!0,s=function(t,e,r){return t&&e.evaluate(r[e.dataField])}):(i=!1,s=function(t,e,r){return t||e.evaluate(r[e.dataField])});for(let e=0;e<t.length;e++){const i=t[e],s=i[0];let l=null;l=i[1]instanceof Smart.FilterGroup?i[1]:r._createFilter(a(s),i.splice(1)),l&&(o.push(s),l.dataField=s,n.push(l))}if(r.boundHierarchy){const t=function(t){let e=i;for(let r=0;r<n.length;r++){const o=n[r];e=s(e,o,t)}return t.$.filtered=e,e},e=function(n,o,a){let i=0;for(let r=0;r<n.length;r++){const a=n[r];t(a),a.$.filtered&&i++,a.children&&e(a.children,a,o)}i>0&&r.groupBy.length>0&&o?(o.$.filtered=!0,a&&!a.$.filtered&&(a.$.filtered=!0)):i>0&&i!==n.length&&o?(o.$.filtered=null,a&&!a.$.filtered&&(a.$.filtered=null)):i>0&&i===n.length&&o&&(o.$.filtered=!0,a&&!a.$.filtered&&(a.$.filtered=!0))};e(r.boundHierarchy,null,null)}else for(let t=0;t<r.boundSource.length;t++){const e=r.boundSource[t];let o=i;for(let t=0;t<n.length;t++){const r=n[t];o=s(o,r,e)}e.$.filtered=o}r.onFilter&&r.onFilter()}clearGroup(){const t=this;t.groupBy=[],t.boundHierarchy=null,t.refreshHierarchy(),t.onGroup&&t.onGroup()}clearFilter(){const t=this;for(let e=0;e<t.boundSource.length;e++){t.boundSource[e].$.filtered=!0}if(t.boundHierarchy){const e=function(t,r,n){for(let n=0;n<t.length;n++){const o=t[n];o.$.filtered=!0,o.$.filtered,o.children&&e(o.children,o,r)}r&&(r.$.filtered=!0,n&&!n.$.filtered&&(n.$.filtered=!0))};e(t.boundHierarchy,null,null)}t.onFilter&&t.onFilter()}clearSort(){this._sort(this.boundSource,[],[],[])}_sort(t,e,r,n,o,a){const i=this;let s=!1;if(0===t.length)return;if(t&&t.constructor&&t instanceof Smart.ObservableArray&&(s=!0),(!t||!Array.isArray(t)||0===t.length||!e||Array.isArray(e)&&0===e.length)&&!s&&!i.boundHierarchy)throw new Error("sort: Missing or Invalid arguments!");"string"==typeof e&&(e=[e]);const l=[],d=[];void 0===r&&(r=[]);const m=function(t,e){let r;switch(e||typeof t){case"string":r=(new Intl.Collator).compare;break;case"number":case"int":case"bigInt":case"float":case"double":r=function(t,e){return t-e};break;case"boolean":case"bool":r=function(t,e){return t===e?0:!1===t?-1:1};break;case"date":case"time":case"dateTime":r=t instanceof Date?function(t,e){return t||e?t?e?t.getTime()-e.getTime():1:-1:0}:t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber?function(t,e){return t.compare(e)}:function(t,e){return t-e};break;case"object":if(t instanceof Date)r=function(t,e){return t||e?t?e?t.getTime()-e.getTime():1:-1:0};else if(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)r=function(t,e){return t.compare(e)};else if(t instanceof Smart.Utilities.Complex||window.NIComplex&&t instanceof window.NIComplex){const t=new Smart.Utilities.ComplexNumericProcessor;r=function(e,r){return t.compareComplexNumbers(e,r)}}}return r};for(let o=0;o<e.length;o++){void 0===r[o]||"asc"===r[o]||"ascending"===r[o]?l[o]=1:l[o]=-1;let s=t[0][e[o]];if(void 0===s&&t[0]&&t[0].children&&t[0].data&&(s=t[0].data[e[o]]),a&&a){const t=e[o];if(a[t]){d[o]=a[t];continue}}i.sortComparators&&i.sortComparators[e[o]]?d[o]=i.sortComparators[e[o]]:d[o]=m(s,n[o])}e.length>0&&o?o(t,e,r,d):t.sort((function(t,r){for(let n=0;n<e.length;n++){const o=d[n](t[e[n]],r[e[n]]);if(0===o){if(e[n+1])continue;return void 0!==t.$.index?(t.$.index-r.$.index)*l[n]:0}return o*l[n]}if(0===e.length)return t.$.index<r.$.index?-1:t.$.index>r.$.index?1:0}));for(let e=0;e<t.length;e++)i[e]=t[e]}static Filter(t,e,r,n,o="and"){let a,i;return"and"===o?(a=!0,i=function(t,e,r,o){return n?t&&n(e,r,o):t&&o.evaluate(e[r])}):(a=!1,i=function(t,e,r,o){return n?t||n(e,r,o):t||o.evaluate(e[r])}),t.filter(t=>{let n=a;for(let o=0;o<r.length;o++){const a=r[o],s=e[o];n=i(n,t,s,a)}return n})}filter(t,e,r){Smart.DataAdapter.Filter(this.boundSource,t,e,r)}sort(t,e,r){Smart.DataAdapter.Sort(this.boundSource,t,e,r)}static Sort(t,e,r,n){const o=function(t){let e;switch(typeof t){case"string":if(t.indexOf("-")>=0||t.indexOf("/")>=0){const e=new Date(t);if(e&&"Invalid Date"!==e.toString()){return function(t,e){const r=new Date(t),n=new Date(e);return r||n?r?n?r.getTime()-n.getTime():1:-1:0}}}e=(new Intl.Collator).compare;break;case"number":e=function(t,e){return t-e};break;case"boolean":e=function(t,e){return t===e?0:!1===t?-1:1};break;case"object":if(t instanceof Date)e=function(t,e){return t||e?t?e?t.getTime()-e.getTime():1:-1:0};else if(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)e=function(t,e){return t.compare(e)};else if(t instanceof Smart.Utilities.Complex||window.NIComplex&&t instanceof window.NIComplex){const t=new Smart.Utilities.ComplexNumericProcessor;e=function(e,r){return t.compareComplexNumbers(e,r)}}else e=function(t,e){return t-e}}return e};if(!t||!Array.isArray(t)||0===t.length||!e||Array.isArray(e)&&0===e.length)return;"string"==typeof e&&(e=[e]);const a=[],i=[];void 0===r&&(r=[]);for(let n=0;n<e.length;n++)void 0===r[n]||"asc"===r[n]||"ascending"===r[n]?a[n]=1:a[n]=-1,i[n]=o(t[0][e[n]]);if(n)return void n(t,e,r,i);const s=t.slice(0);return s.sort((function(t,r){for(let n=0;n<e.length;n++){const o=i[n](t[e[n]],r[e[n]]);if(0===o){if(e[n+1])continue;return void 0!==t._index?(t._index-r._index)*a[n]:0}return o*a[n]}})),s}};class r{constructor(t,e){this.config=t,this.callback=e,!1!==t.autoFetch&&this.call(t)}call(t){const e=this;t||(t=e.config);let r="GET",n=t.url,o=null,a=!0;if(t.type&&(r=t.type),t.data)if("GET"===r){n+="?";for(let e in t.data)Object.prototype.hasOwnProperty.call(t.data,e)&&(n+=encodeURI(e+"="+t.data[e]+"&"));"&"===n.charAt(n.length-1)&&(n=n.slice(0,n.length-1))}else"POST"===r&&(o=JSON.stringify(t.data));t&&!1===t.async&&"xlsx"!==t.dataSourceType&&(a=!1),void 0!==window.fetch&&a?e.ajaxFetch(t,r,n,o):e.ajaxXMLHttpRequest(t,r,n,o,a)}ajaxFetch(t,e,r,n){const o=this,a={method:e};let i,s,l,d;switch(t.dataSourceType){case"json":i="json";break;case"xlsx":i="arrayBuffer";break;default:i="text"}if(t&&t.contentType&&(a.headers=new Headers({"Content-Type":t.contentType})),null!==n&&(a.body=n),t.timeout&&(l=setTimeout((function(){d=!0}),t.timeout)),t.beforeSend){if(!1===t.beforeSend(a,t))return}fetch(r,a).then((function(t){if(d)throw s=408,new Error("timeout");if(l&&clearTimeout(l),s=t.status,!t.ok)throw new Error(t.statusText);return t[i]()})).then((function(e){if("arrayBuffer"===i)return JSZip.loadAsync(e).then((function(e){return e.files["xl/worksheets/sheet1.xml"].async("text").then((function(r){return e.files["xl/sharedStrings.xml"].async("text").then((function(e){const n=o.parseXLSXData(r,e);o.ajaxComplete(t,n,s)}))}))}));o.ajaxComplete(t,e,s)})).catch((function(e){"JSZip is not defined"===e.message&&(e.message="JSZip is not defined. Please include a reference to JSZip to be able to load data from XLSX files."),t&&t.loadError&&t.loadError(s,e),o.callback&&o.callback(e,s)}))}ajaxXMLHttpRequest(t,e,r,n,o){const a=new XMLHttpRequest,i=this;if(a.open(e,r,o),a.ontimeout=function(){t&&t.loadError&&t.loadError(408,"timeout")},a.onload=function(){if(4===a.readyState){const e=a.status;let r=a.response;e>=200&&e<=299?("json"===t.dataSourceType&&(r=JSON.parse(r)),i.ajaxComplete(t,r,e)):t&&t.loadError&&t.loadError(e,r)}},a.onerror=function(){t&&t.loadError&&t.loadError(a.status,a.response)},t&&t.contentType&&a.setRequestHeader("Content-Type",t.contentType),o&&t.timeout&&(a.timeout=t.timeout),t.beforeSend){if(!1===t.beforeSend(a,t))return}a.send(n)}ajaxComplete(t,e,r){if(t){if(t.beforeLoadComplete){const r=t.beforeLoadComplete(e);r&&(e=r)}t.loadComplete&&t.loadComplete(e,r),this.callback&&this.callback(e,r)}}parseXLSXData(t,e){const r=new DOMParser,n=r.parseFromString(e,"text/xml"),o=Array.from(n.getElementsByTagName("si")),a=[],i=r.parseFromString(t,"text/xml"),s=Array.from(i.getElementsByTagName("row")),l=[];return o.forEach((function(t){let e=t.getElementsByTagName("t");if(1===e.length)a.push(e[0].innerHTML);else{let t="";e=Array.from(e),e.forEach((function(e){t+=e.innerHTML})),a.push(t)}})),s.forEach((function(t){const e={};Array.from(t.getElementsByTagName("c")).forEach((function(t){const r=t.getAttribute("r").match(/\D+/)[0],n=t.getAttribute("t"),o=t.getElementsByTagName("v")[0].innerHTML;let i;switch(n){case"s":i=a[parseFloat(o)];break;case"b":i=1===parseFloat(o);break;default:i=parseFloat(o)}e[r]=i})),l.push(e)})),l}}Smart.Ajax=window.Ajax=r},5:function(t,e,r){(e=r(0)(!1)).push([t.i,'.smart-input-group {\r\n position: relative;\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\r\n -webkit-box-align: stretch;\r\n -ms-flex-align: stretch;\r\n align-items: stretch;\r\n box-sizing: border-box;\r\n font-family: var(--smart-font-family);\r\n}\r\n.smart-input-group smart-input .smart-drop-down-button {\r\n border-left: none;\r\n}\r\n.smart-input-group smart-button[focus] {\r\n z-index: 3;\r\n}\r\n.smart-input-group > .smart-input-group-prepend > smart-button,\r\n.smart-input-group > .smart-input-group-prepend > .smart-input-group-text {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-prepend:first-child > smart-button:not(:first-child),\r\n.smart-input-group > .smart-input-group-prepend:first-child > .smart-input-group-text:not(:first-child) {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-prepend:not(:first-child) > smart-button,\r\n.smart-input-group > .smart-input-group-prepend:not(:first-child) > .smart-input-group-text {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-append > smart-button,\r\n.smart-input-group > .smart-input-group-append > .smart-input-group-text {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-append:last-child > smart-button:not(:last-child):not(.dropdown-toggle),\r\n.smart-input-group > .smart-input-group-append:last-child > .smart-input-group-text:not(:last-child) {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .smart-input-group-append:not(:last-child) > smart-button,\r\n.smart-input-group > .smart-input-group-append:not(:last-child) > .smart-input-group-text {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .custom-file,\r\n.smart-input-group > .custom-select,\r\n.smart-input-group > .form-control {\r\n position: relative;\r\n flex: 1 1 auto;\r\n width: 1%;\r\n margin-bottom: 0;\r\n}\r\n.smart-input-group > .custom-file:focus,\r\n.smart-input-group > .custom-select:focus,\r\n.smart-input-group > .form-control:focus {\r\n z-index: 3;\r\n}\r\n.smart-input-group > .custom-select:not(:first-child),\r\n.smart-input-group > .form-control:not(:first-child) {\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n}\r\n.smart-input-group > .custom-select:not(:last-child),\r\n.smart-input-group > .form-control:not(:last-child) {\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n}\r\n.smart-input-group > .form-control[focus] {\r\n z-index: 3;\r\n}\r\n.smart-input-group > .custom-file + .custom-file,\r\n.smart-input-group > .custom-file + .custom-select,\r\n.smart-input-group > .custom-file + .form-control,\r\n.smart-input-group > .custom-select + .custom-file,\r\n.smart-input-group > .custom-select + .custom-select,\r\n.smart-input-group > .custom-select + .form-control,\r\n.smart-input-group > .form-control + .custom-file,\r\n.smart-input-group > .form-control + .custom-select,\r\n.smart-input-group > .form-control + .form-control {\r\n margin-left: -1px;\r\n}\r\n\r\n.smart-input-group-append,\r\n.smart-input-group-prepend {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n box-sizing: border-box;\r\n height: auto;\r\n}\r\n.smart-input-group-append > smart-button,\r\n.smart-input-group-prepend > smart-button {\r\n height: 100%;\r\n}\r\n.smart-input-group-append smart-button + smart-button,\r\n.smart-input-group-append smart-button + .smart-input-group-text,\r\n.smart-input-group-append .smart-input-group-text + smart-button,\r\n.smart-input-group-append .smart-input-group-text + .smart-input-group-text,\r\n.smart-input-group-prepend smart-button + smart-button,\r\n.smart-input-group-prepend smart-button + .smart-input-group-text,\r\n.smart-input-group-prepend .smart-input-group-text + smart-button,\r\n.smart-input-group-prepend .smart-input-group-text + .smart-input-group-text {\r\n margin-left: -1px;\r\n}\r\n\r\n.smart-input-group-prepend {\r\n margin-right: -1px;\r\n}\r\n\r\n.smart-input-group-append {\r\n margin-left: -1px;\r\n}\r\n\r\n.smart-input-group-text {\r\n border-radius: var(--smart-border-radius);\r\n display: flex;\r\n align-items: center;\r\n padding: .375rem .75rem;\r\n margin-bottom: 0;\r\n font-size: 1rem;\r\n font-weight: 400;\r\n line-height: 1.5;\r\n color: var(--smart-surface-color);\r\n text-align: center;\r\n white-space: nowrap;\r\n background-color: var(--smart-surface);\r\n border: 1px solid var(--smart-border);\r\n}\r\n\r\n.form-control {\r\n border-radius: var(--smart-border-radius);\r\n height: auto;\r\n display: block;\r\n width: 100%;\r\n padding: .375rem .75rem;\r\n font-size: var(--smart-font-size);\r\n line-height: 1.5;\r\n color: #495057;\r\n background-color: var(--smart-background);\r\n background-clip: padding-box;\r\n -webkit-background-clip: padding-box;\r\n border: 1px solid var(--smart-border);\r\n transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;\r\n}\r\n.form-control:focus, .form-control[focus] {\r\n color: var(--smart-color);\r\n background-color: var(--smart-background);\r\n border-color: var(--smart-primary);\r\n outline: 0;\r\n}\r\n\r\n.smart-form {\r\n background: var(--smart-background);\r\n color: var(--smart-background-color);\r\n border: 0px solid var(--smart-border);\r\n border-radius: var(--smart-border-radius);\r\n box-sizing: border-box;\r\n overflow: visible;\r\n width: 600px;\r\n font-family: var(--smart-font-family);\r\n font-size: var(--smart-font-size);\r\n display: block;\r\n}\r\n@media only screen and (max-width: 600px) {\r\n .smart-form {\r\n width: 350px;\r\n }\r\n}\r\n\r\n.smart-form-row {\r\n padding: 5px 0px;\r\n box-sizing: border-box;\r\n}\r\n.smart-form-row .smart-form-control-label {\r\n display: flex;\r\n align-items: center;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n font-family: var(--smart-font-family);\r\n font-size: calc(0.9 * var(--smart-font-size));\r\n}\r\n.smart-form-row .smart-form-control-label[required]:after {\r\n content: \'*\';\r\n color: #a94442;\r\n font-size: 14px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n}\r\n.smart-form-row .smart-form-control {\r\n display: flex;\r\n box-sizing: border-box;\r\n}\r\n.smart-form-row .smart-form-control + .smart-form-label[required]:before {\r\n content: \'*\';\r\n color: #a94442;\r\n font-size: 14px;\r\n margin-left: 2px;\r\n margin-right: 2px;\r\n}\r\n.smart-form-row .smart-form-control + .smart-form-control-label[required]:after {\r\n content: \'\';\r\n}\r\n\r\n.smart-form-row-flex {\r\n display: flex;\r\n}\r\n\r\n.smart-form-control .smart-form-control-addon {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.smart-form-control.left {\r\n justify-content: flex-start;\r\n}\r\n.smart-form-control.center {\r\n justify-content: center;\r\n}\r\n.smart-form-control.right {\r\n justify-content: flex-end;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor {\r\n pointer-events: none;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor .smart-drop-down-button,\r\n.smart-form-control[readonly] .smart-form-editor .smart-calendar-button {\r\n visibility: hidden;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor textarea,\r\n.smart-form-control[readonly] .smart-form-editor input,\r\n.smart-form-control[readonly] .smart-form-editor div,\r\n.smart-form-control[readonly] .smart-form-editor span {\r\n border: none !important;\r\n}\r\n.smart-form-control[readonly] .smart-form-editor + div,\r\n.smart-form-control[readonly] .smart-form-editor + .smart-form-control-addon,\r\n.smart-form-control[readonly] .smart-form-editor + .smart-form-control-icon {\r\n visibility: hidden;\r\n}\r\n\r\n.smart-form-control-icon:after {\r\n content: attr(tooltip);\r\n visibility: hidden;\r\n white-space: nowrap;\r\n margin-top: 25px;\r\n position: absolute;\r\n border-top-left-radius: var(--smart-border-top-left-radius);\r\n border-top-right-radius: var(--smart-border-top-right-radius);\r\n border-bottom-left-radius: var(--smart-border-bottom-left-radius);\r\n border-bottom-right-radius: var(--smart-border-bottom-right-radius);\r\n padding: 7px;\r\n background-color: var(--smart-secondary);\r\n color: var(--smart-secondary-color);\r\n font-size: calc(var(--smart-font-size) - 2px);\r\n opacity: 0;\r\n transform: scale(0);\r\n transition: opacity 0.2s ease-out, transform 0.1s ease-out;\r\n z-index: 9;\r\n}\r\n.smart-form-control-icon:hover:after {\r\n visibility: visible;\r\n opacity: 0.9;\r\n transform: scale(1);\r\n color: var(--smart-secondary-color);\r\n background: var(--smart-secondary);\r\n}\r\n\r\n.smart-form-control-label[readonly]:after {\r\n visibility: hidden;\r\n}\r\n\r\n.smart-form-group .smart-form-group-content {\r\n display: grid;\r\n grid-template-columns: none;\r\n}\r\n.smart-form-group[columns="2"] > .smart-form-group-content {\r\n grid-template-columns: 50% 50%;\r\n}\r\n.smart-form-group[columns="3"] > .smart-form-group-content {\r\n grid-template-columns: 33% 33% 33%;\r\n}\r\n.smart-form-group[columns="4"] > .smart-form-group-content {\r\n grid-template-columns: 25% 25% 25% 25%;\r\n}\r\n.smart-form-group[columns="5"] > .smart-form-group-content {\r\n grid-template-columns: 20% 20% 20% 20% 20%;\r\n}\r\n.smart-form-group[columns="6"] > .smart-form-group-content {\r\n grid-template-columns: 16.66% 16.66% 16.66% 16.66% 16.66% 16.66%;\r\n}\r\n\r\n.smart-form-group-label {\r\n font-size: 20px;\r\n font-family: var(--smart-font-family);\r\n padding-top: 10px;\r\n padding-bottom: 10px;\r\n margin-bottom: 20px;\r\n border-bottom: 1px solid var(--smart-border);\r\n}\r\n.smart-form-group-label.center {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n.smart-form-group-label.right {\r\n display: flex;\r\n justify-content: flex-end;\r\n}\r\n\r\n.smart-form-group-buttons {\r\n display: flex;\r\n justify-content: flex-end;\r\n padding-right: 30px;\r\n}\r\n.smart-form-group-buttons smart-button {\r\n margin-left: 20px;\r\n}\r\n\r\n.smart-form-editor {\r\n width: 100%;\r\n}\r\n.smart-form-editor.smart-validation-success:not(smart-check-box):not([focus]) > div.smart-container::after {\r\n display: none;\r\n}\r\n.smart-form-editor.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after {\r\n left: initial;\r\n right: 0px;\r\n z-index: 9;\r\n}\r\n.smart-form-editor.smart-validation-error:not(smart-check-box) > div.smart-container::after {\r\n left: initial;\r\n right: 0px;\r\n z-index: 9;\r\n}\r\n.smart-form-editor.smart-numeric-text-box.smart-validation-success:not(smart-check-box)[focus] > div.smart-container input, .smart-form-editor.smart-numeric-text-box.smart-validation-error:not(smart-check-box) > div.smart-container input {\r\n padding-right: 30px;\r\n}\r\n.smart-form-editor.smart-numeric-text-box[focus][spin-buttons].smart-validation-success[focus] input, .smart-form-editor.smart-numeric-text-box[focus][spin-buttons].smart-validation-error[focus] input, .smart-form-editor.smart-number-input[focus]:not([drop-down-button-position="none"]).smart-validation-success[focus] input, .smart-form-editor.smart-number-input[focus]:not([drop-down-button-position="none"]).smart-validation-error[focus] input {\r\n padding-right: 30px;\r\n}\r\n.smart-form-editor.smart-numeric-text-box.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-numeric-text-box.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-number-input.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-number-input.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-combo-box.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-combo-box.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-date-time-picker.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-date-time-picker.smart-validation-error:not(smart-check-box) > div.smart-container::after, .smart-form-editor.smart-drop-down-list.smart-validation-success:not(smart-check-box)[focus] > div.smart-container::after, .smart-form-editor.smart-drop-down-list.smart-validation-error:not(smart-check-box) > div.smart-container::after {\r\n right: 20px;\r\n}\r\n.smart-form-editor.smart-invalid + .smart-error-label-like-after-element, .smart-form-editor.smart-valid + .smart-success-label-like-after-element {\r\n left: initial;\r\n right: 0px;\r\n z-index: 9;\r\n}\r\n\r\ninput.smart-form-editor.smart-valid:not(:focus) + .smart-success-label-like-after-element {\r\n display: none;\r\n}\r\ninput.smart-form-editor.smart-invalid + .smart-error-label-like-after-element, input.smart-form-editor.smart-valid + .smart-success-label-like-after-element {\r\n right: 35px;\r\n}\r\n\r\n.smart-form-tab {\r\n grid-row: 1;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n min-width: 0;\r\n cursor: pointer;\r\n font-family: var(--smart-font-family);\r\n box-sizing: border-box;\r\n transition: background-color 0.2s ease-in-out;\r\n}\r\n.smart-form-tab.selected {\r\n border-bottom: 2px solid var(--smart-primary);\r\n color: var(--smart-primary);\r\n}\r\n.smart-form-tab.smart-invalid {\r\n border-bottom: 2px solid var(--smart-error);\r\n color: var(--smart-error);\r\n}\r\n\r\n.smart-form-tab-strip {\r\n display: grid;\r\n grid-auto-columns: 1fr;\r\n overflow: hidden;\r\n border-bottom: var(--smart-border-width) solid var(--smart-border);\r\n height: 30px;\r\n margin-bottom: 10px;\r\n}\r\n.smart-form-tab-strip .smart-form-tab .smart-form-tab-label {\r\n font-size: calc(var(--smart-font-size) + 1px);\r\n min-width: 0;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n padding: 5px;\r\n}\r\n.smart-form-tab-strip .smart-form-tab:hover {\r\n background: var(--smart-ui-state-hover);\r\n color: var(--smart-ui-state-color-hover);\r\n}\r\n.smart-form-tab-strip[vertical] {\r\n display: flex;\r\n height: auto;\r\n flex-direction: column;\r\n background: var(--smart-background);\r\n border: none;\r\n border-radius: initial;\r\n padding-bottom: 1px;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab {\r\n background-color: var(--smart-surface);\r\n color: var(--smart-surface-color);\r\n overflow: hidden;\r\n border: var(--smart-border-width) solid var(--smart-border);\r\n border-radius: 0px;\r\n padding: 10px;\r\n margin-bottom: -1px;\r\n justify-content: left;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab .smart-form-tab-label {\r\n width: 100%;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab .smart-form-tab-button {\r\n float: right;\r\n transition: transform 0.3s ease-in-out;\r\n transform: rotate(-180deg);\r\n font-size: 17px;\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab.selected {\r\n background: var(--smart-ui-state-focus);\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab.selected .smart-form-tab-button {\r\n transform: rotate(0deg);\r\n}\r\n.smart-form-tab-strip[vertical] .smart-form-tab.smart-invalid {\r\n color: var(--smart-error);\r\n background-color: var(--smart-surface);\r\n}\r\n.smart-form-tab-strip[breadcrumb] {\r\n border: none;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab {\r\n border-bottom: none;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab .smart-form-tab-label {\r\n display: flex;\r\n align-items: center;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab .smart-form-tab-label .circle {\r\n border-radius: 100%;\r\n font-family: var(--smart-font-family);\r\n width: 12px;\r\n height: 12px;\r\n padding: 5px;\r\n margin-right: 10px;\r\n background: var(--smart-secondary);\r\n color: var(--smart-secondary-color);\r\n align-items: center;\r\n justify-content: center;\r\n display: flex;\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab.smart-invalid {\r\n color: var(--smart-color);\r\n}\r\n.smart-form-tab-strip[breadcrumb] .smart-form-tab.selected .smart-form-tab-label .circle {\r\n background: var(--smart-primary);\r\n color: var(--smart-primary-color);\r\n}\r\n\r\n.smart-form-tab-control {\r\n padding: 0;\r\n display: none !important;\r\n}\r\n.smart-form-tab-control.selected {\r\n margin-bottom: -1px;\r\n display: grid !important;\r\n}\r\n.smart-form-tab-control.selected[vertical] {\r\n padding: 10px;\r\n border: 1px solid var(--smart-border);\r\n}\r\n\r\n.smart-form-options-horizontal {\r\n display: flex;\r\n}\r\n',""]),t.exports=e},55:function(t,e){Smart.Utilities.Assign("DataExporter",class{constructor(t,e,r,n){const o=this;t||(t={}),o.style=t.style,o.header=t.header,o.exportHeader=void 0===t.exportHeader||t.exportHeader,o.hierarchical=t.hierarchical,o.expandChar=t.expandChar||"+",o.collapseChar=t.collapseChar||"-",o.pageOrientation=t.pageOrientation,o.allowNull=t.allowNull||!1,!o.hierarchical&&e&&e.length>0?o.groupBy=e:o.mergedCells=t.mergedCells,!o.groupBy&&r&&Object.keys(r).length>0&&(o.filterBy=r),n&&(o.conditionalFormatting=n),o.timeBetween1900And1970=new Date(1970,0,1,0,0,0).getTime()-new Date(1900,0,1,0,0,0).getTime()}downloadFile(t,e,r){let n;if(!r)return t;if(n=t instanceof Blob?t:new Blob([t],{type:e}),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,r);else{const t=document.createElement("a"),e=URL.createObjectURL(n);t.href=e,t.download=r,t.style.position="absolute",t.style.visibility="hidden",document.body.appendChild(t),t.click(),setTimeout((function(){document.body.removeChild(t),window.URL.revokeObjectURL(e)}),100)}}exportData(t,e,r,n){const o=this;if(o.actualHierarchy=o.hierarchical,e=e.toLowerCase(),o.exportHeader&&(o.header?(0===(t=t.slice(0)).length&&(o.actualHierarchy=!1),o.processComplexHeader(o.header,t,e)):1===t.length&&(o.actualHierarchy=!1)),0===t.length)return void console.warn("No data to export.");"xlsx"===e&&(o.xlsxStartIndex=o.complexHeader?o.complexHeader.length:+o.exportHeader),o.actualHierarchy&&(t=o.processHierarchicalData(t,e)),o.getDatafields(t),r&&r.slice(r.length-e.length-1,r.length)!=="."+e&&(r+="."+e);let a=null;switch(e){case"csv":a=o.exportToCSVAndTSV(t,{delimiter:", ",MIME:"text/csv",toRemove:2},r);break;case"html":a=o.exportToHTML(t,r);break;case"jpeg":case"png":o.exportToImage(t,r,e,n);break;case"json":a=o.exportToJSON(t,r);break;case"pdf":a=o.exportToPDF(t,r);break;case"tsv":a=o.exportToCSVAndTSV(t,{delimiter:"\t",MIME:"text/tab-separated-values",toRemove:1},r);break;case"xlsx":a=o.exportToXLSX(t,r);break;case"xml":a=o.exportToXML(t,r);break;case"md":a=o.exportToMD(t,r)}return n&&a&&n(a),delete o.complexHeader,a}exportToCSVAndTSV(t,e,r){const n=this,o=n.datafields;let a="";for(let r=0;r<t.length;r++){const i=t[r];let s="";for(let t=0;t<o.length;t++)n.actualHierarchy&&0===t?s+=('""'+e.delimiter).repeat(i._level-1)+'"'+i[o[t]]+'"'+e.delimiter+('""'+e.delimiter).repeat(n.maxLevel-i._level):s+='"'+i[o[t]]+'"'+e.delimiter;s=s.slice(0,s.length-e.toRemove)+"\n",a+=s}return this.downloadFile(a,e.MIME,r)}exportToHTML(t,e){const r=this,n=r.datafields,o=r.style;let a="",i=0,s="";if(t=r.processGroupingInformation(t),r.data=t,r.exportHeader&&(a=r.getHTMLHeader(n,t),i=1),arguments[2]){s=`<script type="text/javascript" src="${Array.from(document.getElementsByTagName("script")).find(t=>-1!==t.src.indexOf("html2canvas")).src}"><\/script>`}let l=`<!DOCTYPE html>\n<html>\n<head>\n <meta charset="UTF-8">\n <style type="text/css">\n${r.getRowStyle()}${r.getColumnStyle()}\n </style>${s}${r.toggleableFunctionality()}\n</head>\n<body>\n <table${r.getTableStyle()}>${a}\n <tbody>\n`;const d={},m={},c=[];r.getMergedCellsInfo(d,m);t:for(let a=i;a<t.length;a++){const s=t[a],h=a-i;let u=r.getAlternationIndex(h," rowN"),p="",f="",g="",b=0;if(r.actualHierarchy)s._collapsed&&(p=" collapsed"),f=` level="${s._level}"`;else if(r.groupBy)for(let t=0;t<r.groupBy.length;t++){const e=r.groupBy[t],n=s[e],o=r.groups[e][n];if(g+=n,-1===c.indexOf(g)){l+=` <tr class="row">\n <td class="column group" style="padding-left: ${25*b}px;" colspan="${r.datafields.length}">${o}</td>\n </tr>`,c.push(g),a--;continue t}b++}let v=` <tr class="row row${h}${u}${p}"${f}`;e||(v+=' style="page-break-inside: avoid;"'),v+=">\n";for(let t=0;t<n.length;t++){const e=t+","+h;let a=1,i=1;if(d[e])a=d[e].colspan,i=d[e].rowspan;else if(m[e])continue;const l=n[t];let c=s[l],u="";if(r.actualHierarchy&&0===t){let t="";s._expanded?t=r.collapseChar:!1===s._expanded&&(t=r.expandChar),u=`<div class="toggle-element" style="margin-left: ${25*(s._level-1)+5}px;" expanded>${t}</div>`}c=r.getFormattedValue(c,l);let p="";if(o&&o.columns&&o.columns[l]&&o.columns[l][h]){const t=o.columns[l][h];p+=`border-color: ${t.border}; background-color: ${t.background}; color: ${t.color};"`}0===t&&b>1&&(p+=`padding-left: ${25*(b-1)}px;"`),p&&(p=` style="${p}"`),v+=` <td class="column column${l}"${p} colspan="${a}" rowspan="${i}">${u+c}</td>\n`}l+=v+" </tr>\n"}return l+=" </tbody>\n </table>\n</body>\n</html>",arguments[2]?l:this.downloadFile(l,"text/html",e)}exportToImage(t,e,r,n){try{html2canvas}catch(t){throw new Error("smart-grid: Missing reference to 'html2canvas.min.js'.")}let o=null;const a=this.exportToHTML(t,e,!0),i=document.createElement("iframe");return i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.border="none",i.style.width="100%",i.style.height="100%",i.style.opacity=0,i.style.pointerEvents="none",document.body.appendChild(i),i.contentDocument.write(a),function t(){i.contentDocument.body&&i.contentDocument.body.firstElementChild?i.contentWindow.html2canvas(i.contentDocument.body.firstElementChild).then(t=>{const a=new Smart.Utilities.Draw(document.createElement("div"));o=t.toDataURL("image/png"),n?n(o):(document.body.appendChild(t),a.exportImage(void 0,t,r,e)),i.remove(),t.remove()}):requestAnimationFrame(t)}(),o}getMergedCellsInfo(t,e,r){const n=this;if(!n.mergedCells)return;const o=r&&0!==r[n.datafields.length-1];n.mergedCellsPDF=n.mergedCells.slice(0);for(let a=0;a<n.mergedCellsPDF.length;a++){const i=n.mergedCellsPDF[a];let s=i.colspan,l=i.rowspan;if(l<2&&s<2)continue;const d=i.cell[1];let m=i.cell[0];if(o&&s>1){const t=r[m],e=r[m+s-1],o=[];if(e>t){let a=t,i=m,c=0;t:for(let n=t;n<=e;n++){let t=i,e=0;for(;r[i]===a;)if(i++,c++,e++,c===s){o.push({start:t,span:e});break t}o.push({start:t,span:e}),a=r[i]}s=o[0].span;for(let t=1;t<o.length;t++)n.mergedCellsPDF.push({cell:[o[t].start,d],colspan:o[t].span,rowspan:l,originalCell:m})}}for(let r=m;r<m+s;r++)for(let n=d;n<d+l;n++){const o=r+","+n;r!==m||n!==d?e[o]=!0:t[o]={colspan:s,rowspan:l,originalCell:i.originalCell}}}}getAlternationIndex(t,e){if(!this.style)return"";const r=this.style.rows;return r&&r.alternationCount&&((void 0===r.alternationStart||t>=r.alternationStart)&&(void 0===r.alternationEnd||t<=r.alternationEnd)||r.alternationStart===r.alternationEnd)?e+t%r.alternationCount:""}getFormattedValue(t,e){const r=this,n=r.style;if(null===t)return r.allowNull?"null":"";if(e&&n&&n.columns&&n.columns[e]&&n.columns[e].format){if("number"==typeof t)return r.formatNumber(t,n.columns[e].format);if(t instanceof Date)return r.formatDate(t,n.columns[e].format)}else if(t instanceof Date)return r.formatDate(t,"d");return t}exportToJSON(t,e){return this.downloadFile(JSON.stringify(t,this.datafields.concat("rows")),"application/json",e)}exportToMD(t,e){const r=this.datafields;let n="";for(let e=0,o=t.length;e<o;e+=1)for(let o=0,a=r.length;o<a;o+=1){const a=t[e][r[o]];"string"==typeof a&&(n+=a)}return this.downloadFile(n,"application/text",e)}exportToPDF(t,e){try{pdfMake}catch(t){throw new Error("Missing reference to 'pdfmake.min.js'.")}const r=this,n=r.datafields,o=+r.exportHeader,a=[],i={},s={},l={},d=o?r.complexHeader?r.complexHeader.length:1:0,m={pageOrientation:r.pageOrientation||"portrait"};let c,h=[],u=[];function p(){let t=[];for(let e=0;e<c.length;e++)t.push([]);return t}t=r.processGroupingInformation(t),r.data=t,r.headerRows=d,r.getPDFStyle();const f=r.styleInfo;c=f?r.wrapPDFColumns(m,l):[{body:h,datafields:n}],o&&(h=r.getPDFHeader(n,c,l)),r.getMergedCellsInfo(i,s,l);t:for(let e=o;e<t.length;e++){const d=t[e];let m="",h=0;if(r.groupBy)for(let t=0;t<r.groupBy.length;t++){const n=r.groupBy[t],o=d[n],i=r.groups[n][o];if(m+=o,-1===a.indexOf(m)){r.createGroupHeaderRow(c,{text:i,style:["row","cell","group"],marginLeft:7.5*h}),a.push(m),e--;continue t}h++}const u=p(),f=e-o;let g=r.getAlternationIndex(f,"");for(let t=0;t<n.length;t++){const e=n[t],o={style:["row","row"+f,"cell","cell"+e]},a=l[t]||0;if(void 0!==g&&o.style.splice(1,0,"rowN"+g),r.mergedCellsPDF){const e=t+","+f,r=i[e];if(r){if(o.colSpan=r.colspan,o.rowSpan=r.rowspan,void 0!==r.originalCell){o.text="",o.style[o.style.length-1]="cell"+n[r.originalCell],u[a].push(o);continue}}else if(s[e]){u[a].push({});continue}}const m=r.getFormattedValue(d[e],e);o.text=m.toString(),r.getUniqueStylePDF(o,e,f),r.setIndentation(o,{j:t,currentRecord:d,value:m,outlineLevel:h}),u[a].push(o)}for(let t=0;t<c.length;t++)c[t].body.push(u[t])}if(f){for(let t=0;t<c.length;t++){const e=c[t].body;for(let r=d-1;r>=0;r--)e.unshift(h[t][r]);u.push({table:{headerRows:d,widths:c[t].widths,heights:function(t){return f.heights[t]?f.heights[t]:f.defaultHeight?f.defaultHeight:void 0},body:e},pageBreak:"after"})}delete u[c.length-1].pageBreak,m.styles=f.styles}else{const t=c[0].body;for(let e=d-1;e>=0;e--)t.unshift(h[0][e]);u=[{table:{headerRows:d,body:t}}],m.styles={header:{bold:!0},group:{bold:!0}}}m.content=u,pdfMake.createPdf(m).download(e),delete r.mergedCellsPDF,delete r.styleInfo}getPDFStyle(){const t=this,e=t.style;if(!e)return"";const r=t.data[0],n=e.header,o=e.columns,a=e.rows,i={heights:[],widths:Array(t.datafields.length).fill("*"),styles:{header:{},row:{},cell:{},group:{fillColor:"#FFFFFF",color:"#000000",bold:!0}}};function s(e,n){if(e)for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o))if(void 0===r[o])if("height"===o&&"header"===n)for(let r=0;r<t.headerRows;r++)i.heights[r]=parseInt(e[o],10)/t.headerRows/1.4;else t.storePDFStyle({prop:o,value:e[o],toUpdate:n});else for(let r in e[o]){if(!isNaN(r)||!Object.prototype.hasOwnProperty.call(e[o],r))continue;const a=e[o][r],s=t.datafields.indexOf(o);"width"===r&&"*"===i.widths[s]?i.widths[s]=a:t.storePDFStyle({prop:r,value:a,toUpdate:n+o})}}if(t.styleInfo=i,s(n,"header"),s(o,"cell"),a){for(let e in a){if(!Object.prototype.hasOwnProperty.call(a,e)||-1!==e.indexOf("alt"))continue;const r=a[e];if(isNaN(e))"height"===e?i.defaultHeight=parseFloat(r)/1.4:t.storePDFStyle({prop:e,value:r,toUpdate:"row"});else for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&("height"===n?i.heights[parseFloat(e)+t.headerRows]=parseFloat(r[n])/1.4:t.storePDFStyle({prop:n,value:r[n],toUpdate:"row"+e}))}if(a.alternationCount)for(let t=0;t<a.alternationCount;t++){const e={};a[`alternationIndex${t}Color`]&&(e.color=a[`alternationIndex${t}Color`]),a[`alternationIndex${t}BackgroundColor`]&&(e.fillColor=a[`alternationIndex${t}BackgroundColor`]),i.styles["rowN"+t]=e}}}storePDFStyle(t){const e=this;let r=e.styleInfo.styles[t.toUpdate];r||(r={},e.styleInfo.styles[t.toUpdate]=r);let n=t.value;switch(t.prop){case"backgroundColor":r.fillColor=n;break;case"color":r.color=n;break;case"fontSize":r.fontSize=parseFloat(n);break;case"fontStyle":"italic"===n&&(r.italics=!0);break;case"fontWeight":"bold"===n&&(r.bold=!0);break;case"textAlign":r.alignment=n}}wrapPDFColumns(t,e){const r=this,n=this.styleInfo,o="portrait"===t.pageOrientation?655:1155,a=[];let i=0;for(let t=0;t<n.widths.length;t++){let s,l=n.widths[t];if("*"===l?s=o/6:"string"==typeof l&&-1!==l.indexOf("%")?(s=Math.min(o,Math.floor(parseFloat(l)/100*o)),s===o&&(l="*")):(l=parseFloat(l),l>=o?(s=o,l="*"):(s=l,l/=1.4)),void 0===a[i]){const n=[];a[i]={body:n,width:s,widths:[l],datafields:[r.datafields[t]]},e[t]=i;continue}const d=a[i];d.width+s>o?(i++,t--):(e[t]=i,d.width+=s,d.widths.push(l),d.datafields.push(r.datafields[t]))}return a}getPDFHeader(t,e,r){const n=this,o=[],a=n.headerRows,i=[],s=[];let l,d,m=[];n.complexHeader?(l=n.complexHeader,d=n.complexDataFieldsHeader):(l=[Object.values(n.data[0])],d=l);for(let t=0;t<a;t++){const e=l[t],n=d[t];for(let o=0;o<e.length;o++){let a=r[o]||0;i[a]||(i[a]=[],s[a]=[]),i[a][t]||(i[a][t]=[],s[a][t]=[]),i[a][t].push(e[o]),s[a][t].push(n[o])}}function c(t,e,r,n){for(let o=0;o<a;o++){const i=t[o],s=e[o],l=[];for(let t=0;t<i.length;t++){const r=s[t];let d=1,m=1;if(s[t-1]&&s[t-1]===r||e[o-1]&&e[o-1][t]===r){l.push({});continue}let c=t+1;for(;s[c]&&s[c]===s[c-1];)d++,c++;for(c=o+1;e[c]&&e[c][t]===r;)m++,c++;const h=o===a-1||m+o===a?n.datafields[t]:null,u={text:i[t],colSpan:d,rowSpan:m};h?u.style=["header","header"+h]:(u.alignment="center",u.style="header"),l.push(u)}r.push(l)}}for(let t=0;t<e.length;t++)m=[],c(i[t],s[t],m,e[t]),o.push(m);return o}createGroupHeaderRow(t,e){for(let r=0;r<t.length;r++){const n=Object.assign({},e),o=t[r].datafields.length,a=[n];n.colSpan=o,a.length=o,a.fill({},1,o-1),t[r].body.push(a)}}getUniqueStylePDF(t,e,r){const n=this.style;if(!n||!n.columns||!n.columns[e])return;const o=n.columns[e][r];o&&(t.fillColor=function(t){const e=/rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(t.replace(/\s/g,""));if(null===e)return t;const r=parseFloat(e[1]).toString(16).toUpperCase(),n=parseFloat(e[2]).toString(16).toUpperCase(),o=parseFloat(e[3]).toString(16).toUpperCase();return"#"+"0".repeat(2-r.length)+r+"0".repeat(2-n.length)+n+"0".repeat(2-o.length)+o}(o.background),t.color=o.color.toLowerCase())}setIndentation(t,e){if(0!==e.j)return;const r=this;if(r.actualHierarchy){const n=e.currentRecord;void 0!==n._expanded?(t.marginLeft=25*(n._level-1),t.text=r.collapseChar+" "+e.value):t.marginLeft=25*(n._level-1)+6}else e.outlineLevel>1&&(t.marginLeft=7.5*(e.outlineLevel-1))}exportToXLSX(t,e){try{JSZip}catch(t){throw new Error("Missing reference to 'jszip.min.js'.")}const r=this;let n=r.style;if(t=r.processGroupingInformation(t,!0),r.data=t,r.getColumnsArray(),r.complexHeaderMergedCells=[],r.complexHeaderMergeInfo)for(let t in r.complexHeaderMergeInfo)if(Object.prototype.hasOwnProperty.call(r.complexHeaderMergeInfo,t)){const e=r.complexHeaderMergeInfo[t];if(e.from[0]===e.to[0]&&e.from[1]===e.to[1])continue;r.complexHeaderMergedCells.push({from:r.columnsArray[e.from[1]]+(e.from[0]+1),to:r.columnsArray[e.to[1]]+(e.to[0]+1)})}r.getConditionalFormatting(),n||(n=r.generateDefaultStyle(t));const o=r.generateSharedStrings(t),a=o.collection,i=o.xml,s=r.generateStyles(n),l=r.groupBy?r.generateSheet1WithGrouping(t,a):r.generateSheet1(t,a),d=r.generateAuxiliaryFiles(),m=new JSZip,c=m.folder("_rels"),h=m.folder("docProps"),u=m.folder("xl"),p=u.folder("_rels"),f=u.folder("theme"),g=u.folder("worksheets");c.file(".rels",d._relsRels),h.file("app.xml",d.docPropsAppXml),h.file("core.xml",d.docPropsCoreXml),p.file("workbook.xml.rels",d.xl_relsWorkbookXmlRels),f.file("theme1.xml",d.xlThemeTheme1Xml),g.file("sheet1.xml",l),u.file("sharedStrings.xml",i),u.file("styles.xml",s),u.file("workbook.xml",d.xlWorkbookXml),m.file("[Content_Types].xml",d.Content_TypesXml),m.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}).then((function(t){return r.downloadFile(t,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e)})),delete r.conditionalFormattingXLSX,delete r.complexHeaderMergeInfo,delete r.defaultRowHeight,delete r.rowHeight}processGroupingInformation(t,e){const r=this;if(!r.groupBy)return t;let n;if(t=t.slice(0),r.exportHeader&&(e&&r.complexHeader?(n=t.slice(0,r.complexHeader.length),t.splice(0,r.complexHeader.length)):(n=[t[0]],t.splice(0,1))),t.length>1){const e=function(t,e){let r;switch(e||typeof t){case"string":r=(new Intl.Collator).compare;break;case"number":r=function(t,e){return t-e};break;case"boolean":case"bool":r=function(t,e){return t===e?0:!1===t?-1:1};break;case"date":case"time":case"dateTime":t instanceof Date?r=function(t,e){return t.getTime()-e.getTime()}:(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)&&(r=function(t,e){return t.compare(e)});break;case"object":if(t instanceof Date)r=function(t,e){return t.getTime()-e.getTime()};else if(t instanceof Smart.Utilities.DateTime||t instanceof Smart.Utilities.BigNumber)r=function(t,e){return t.compare(e)};else if(t instanceof Smart.Utilities.Complex||window.NIComplex&&t instanceof window.NIComplex){const t=new Smart.Utilities.ComplexNumericProcessor;r=function(e,r){return t.compareComplexNumbers(e,r)}}}return r};(function(t,r,n,o){if(!t||!Array.isArray(t)||0===t.length||!r||Array.isArray(r)&&0===r.length)return;"string"==typeof r&&(r=[r]);const a=[],i=[];void 0===n&&(n=[]);for(let o=0;o<r.length;o++)void 0===n[o]||"asc"===n[o]||"ascending"===n[o]?a[o]=1:a[o]=-1,i[o]=e(t[0][r[o]]);o?o(t,r,n,i):t.sort((function(t,e){for(let n=0;n<r.length;n++){const o=i[n](t[r[n]],e[r[n]]);if(0===o){if(r[n+1])continue;return void 0!==t._index?(t._index-e._index)*a[n]:0}return o*a[n]}}))})(t,r.groupBy)}return n&&(t=n.concat(t)),r.getGroupLabels(t),t}exportToXML(t,e){const r=this.datafields.slice(0);let n='<?xml version="1.0" encoding="UTF-8" ?>\n<table>\n';return-1===r.indexOf("rows")&&r.push("rows"),n+=function t(e,n){let o="";for(let a=0;a<e.length;a++){const i=e[a];o+=n+"<row>\n";for(let e=0;e<r.length;e++){const a=r[e];if("rows"!==a)o+=n+` <${a}>${i[a]}</${a}>\n`;else{if(!i.rows)continue;o+=`${n} <rows>\n${t(i.rows,n+" ")}${n} </rows>\n`}}o+=n+"</row>\n"}return o}(t," ")+"</table>",this.downloadFile(n,"application/xml",e)}formatDate(t,e){if(!Smart.Utilities.DateTime)return t;try{return new Smart.Utilities.DateTime(t).toString(e)}catch(e){return t}}formatNumber(t,e){if(!Smart.Utilities.NumberRenderer)return t;const r=(new Smart.Utilities.NumberRenderer).formatNumber(t,e);return void 0===r?t:r}generateAuxiliaryFiles(){const t=(new Date).toISOString();return{_relsRels:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',docPropsAppXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>',docPropsCoreXml:`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>Smart HTML Elements</dc:creator><cp:lastModifiedBy>Smart HTML Elements</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">${t}</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">${t}</dcterms:modified></cp:coreProperties>`,xl_relsWorkbookXmlRels:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>',xlThemeTheme1Xml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>',xlWorkbookXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook 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="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="20325"/><workbookPr defaultThemeVersion="166925"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="C:UsersjqwidgetsDesktop" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="13_ncr:1_{0DEDCB6D-5403-4CD8-AAA5-59B6D238A8B6}" xr6:coauthVersionLast="34" xr6:coauthVersionMax="34" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="19200" windowHeight="6950" xr2:uid="{0CB664E6-3800-4A88-B158-B46A682E7484}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="179021"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext></extLst></workbook>',Content_TypesXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="bin" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings"/><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+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="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>'}}generateDefaultStyle(t){const e={},r=this.datafields,n=this.complexHeader?t[this.complexHeader.length]:t[+this.exportHeader];if(!n)return e;for(let t=0;t<r.length;t++){n[r[t]]instanceof Date&&(e.columns||(e.columns=[]),e.columns[r[t]]={format:"d"})}return e}generateGroupRow(t){const e=t.rowNumber,r="A"+e,n=` <row r="${e}" outlineLevel="${t.outlineLevel}" spans="1:${t.numberOfColumns}"${this.getCustomRowHeight(e-1)} x14ac:dyDescent="0.45">\n <c r="${r}" t="s" s="0">\n <v>${t.sharedStringIndex}</v>\n </c>\n </row>\n`;return t.mergedCells.push({from:r,to:this.columnsArray[t.numberOfColumns-1]+e}),n}generateSharedStrings(t){const e=this,r=e.datafields,n=[];let o="",a=0,i=0;function s(t){a++,-1===n.indexOf(t)&&(i++,n.push(t),t=(t=(t=(t=(t=t.replace(/&(?!amp;)/g,"&")).replace(/'/g,"'")).replace(/"/g,""")).replace(/>/g,">")).replace(/</g,"<"),o+=`<si><t>${t}</t></si>`)}for(let n=0;n<t.length;n++){const o=t[n];for(let t=0;t<r.length;t++){let n=o[r[t]];null!==n||e.allowNull||(n=""),"string"==typeof n&&s(n)}}if(e.groupLabels)for(let t=0;t<e.groupLabels.length;t++)s(e.groupLabels[t]);return o=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${a}" uniqueCount="${i}">${o}</sst>`,{collection:n,xml:o}}generateSheet1(t,e){const r=this,n=r.columnsArray.length,o=t.length,a=r.columnsArray[n-1]+o,i=r.datafields,s=r.getFilters(),l=[].concat(r.complexHeaderMergedCells);let d=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<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 xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">\n <sheetPr filterMode="${""!==s}" />\n <dimension ref="A1:${a}" />\n <sheetViews>\n <sheetView tabSelected="1" workbookViewId="0" />\n </sheetViews>\n <sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />${r.getCustomColumnWidths()}\n <sheetData>\n`;function m(t,e){return r.columnsArray[t]+e}for(let o=0;o<=t.length;o++){const a=t[o],s=o+1;let l="";if(r.actualHierarchy){const e=t[o-1];e&&e._collapsed&&(!a||e._level>a._level)&&(l=' collapsed="true"')}if(o===t.length){l&&(d+=` <row r="${s}" outlineLevel="${Math.max(t[o-1]._level-2,0)}" hidden="false" collapsed="true" />\n`);break}let c=` <row r="${s}"${r.getOutlineLevel(a)} hidden="${a._hidden||a._collapsed||!1}"${l} spans="1:${n}"${r.getCustomRowHeight(s-1)} x14ac:dyDescent="0.45">\n`;for(let t=0;t<i.length;t++){const n=r.getXLSXCellStyle(m(t,s));c+=r.getActualCellData(a[i[t]],{r:m(t,s),s:n},e)}c+=" </row>\n",d+=c}return d+=` </sheetData>${r.conditionalFormattingXLSX.conditions}${s}${r.getMergedCells(l)}\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n <pageSetup paperSize="9" orientation="portrait" r:id="rId1" />\n</worksheet>`,d}generateSheet1WithGrouping(t,e){const r=this,n=r.columnsArray.length,o=t.length,a=r.columnsArray[n-1]+o,i=r.datafields,s=[].concat(r.complexHeaderMergedCells);let l=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<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 xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">\n <dimension ref="A1:${a}" />\n <sheetViews>\n <sheetView tabSelected="1" workbookViewId="0" />\n </sheetViews>\n <sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />${r.getCustomColumnWidths()}\n <sheetData>\n`,d=0,m=[];function c(t,e){return r.columnsArray[t]+e}t:for(let o=0;o<t.length;o++){const a=t[o],h=o+1+d;let u=0,p="";if(!r.exportHeader||!r.complexHeader&&0!==o||r.complexHeader&&o>=r.complexHeader.length){let t="";for(let i=0;i<r.groupBy.length;i++){const c=r.groupBy[i],p=a[c],f=r.groups[c][p];if(t+=p,-1===m.indexOf(t)){let a=e.indexOf(f);l+=r.generateGroupRow({rowNumber:h,outlineLevel:u,numberOfColumns:n,sharedStringIndex:a,mergedCells:s}),m.push(t),o--,d++;continue t}u++}p=` outlineLevel="${u}"`}let f=` <row r="${h}"${p} spans="1:${n}"${r.getCustomRowHeight(h-1)} x14ac:dyDescent="0.45">\n`;for(let t=0;t<i.length;t++){const n=r.getXLSXCellStyle(c(t,o+1));f+=r.getActualCellData(a[i[t]],{r:c(t,h),s:n},e)}f+=" </row>\n",l+=f}return l+=` </sheetData>${r.getMergedCells(s)}\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n <pageSetup paperSize="9" orientation="portrait" r:id="rId1" />\n</worksheet>`,l}getActualCellData(t,e,r){const n=e.r,o=e.s||' s="0"';if(null!==t||this.allowNull||(t=""),"string"==typeof t)return` <c r="${n}" t="s"${o}>\n <v>${r.indexOf(t)}</v>\n </c>\n`;if("boolean"==typeof t)return` <c r="${n}" t="b"${o}>\n <v>${+t}</v>\n </c>\n`;if(t instanceof Date){return` <c r="${n}"${o}>\n <v>${2+Math.round(this.timeBetween1900And1970/864e5)+(t.getTime()-60*t.getTimezoneOffset()*1e3)/864e5}</v>\n </c>\n`}return` <c r="${n}"${o}>\n <v>${t}</v>\n </c>\n`}getColumnsArray(){const t=this.datafields.length,e=[];function r(t){return t<26?"":String.fromCharCode(64+Math.floor(t/26))}for(let n=0;n<t;n++)e.push(r(n)+String.fromCharCode(65+(n<26?n:n%26)));this.columnsArray=e}getColumnStyle(){const t=this,e=t.style;if(!e)return" .header { border: 1px solid black; padding: 5px; }\n .column { border: 1px solid black; padding: 5px; }\n .group { background-color: #FFFFFF; color: #000000; font-weight: bold; }";let r;r=e.removeDefault?{header:"",column:"",group:""}:{header:"border: 1px solid black; padding: 5px; ",column:"white-space: nowrap; overflow: hidden; border: 1px solid black; padding: 5px; ",group:"background-color: #FFFFFF; color: #000000; font-weight: bold; "};const n=t.data[0];let o="";const a=e.header||{};for(let e in a){if(!Object.prototype.hasOwnProperty.call(a,e))continue;const o=a[e];if(n[e]){r["header"+e]||(r["header"+e]="");for(let t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const n=Smart.Utilities.Core.toDash(t)+": "+o[t]+"; ";r["header"+e]+=n,"width"===t&&(r["column"+e]||(r["column"+e]=""),r["column"+e]+=n)}}else"height"===e&&t.complexHeader?r.header+="height: "+parseInt(a[e],10)/t.complexHeader.length+"px; ":r.header+=Smart.Utilities.Core.toDash(e)+": "+a[e]+"; "}const i=e.columns||{};for(let t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const e=i[t];if(n[t]){r["column"+t]||(r["column"+t]="");for(let n in e)isNaN(n)&&Object.prototype.hasOwnProperty.call(e,n)&&"format"!==n&&(r["column"+t]+=Smart.Utilities.Core.toDash(n)+": "+e[n]+"; ")}else r.column+=Smart.Utilities.Core.toDash(t)+": "+e+"; "}for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(o+=` .${t} { ${r[t]}}\n`);return e.custom&&(o+=`${e.custom}\n`),o}getCustomColumnWidths(){const t=this;if(!t.style||!t.columnWidth||0===t.columnWidth.length)return"";let e="\n <cols>\n";for(let r=0;r<t.columnWidth.length;r++){let n=t.columnWidth[r];void 0!==n&&(n=Math.round(parseFloat(n))/7,e+=` <col min="${r+1}" max="${r+1}" width="${n}" customWidth="1" />\n`)}return e+=" </cols>",e}getCustomFilter(t,e){let r,n="equal";switch(t instanceof Date&&(t=(t.getTime()+this.timeBetween1900And1970)/864e5+2),e=e.toUpperCase()){case"EMPTY":r="";break;case"NOT_EMPTY":r="",n="notEqual";break;case"CONTAINS":case"CONTAINS_CASE_SENSITIVE":r=`*${t}*`;break;case"DOES_NOT_CONTAIN":case"DOES_NOT_CONTAIN_CASE_SENSITIVE":r=`*${t}*`,n="notEqual";break;case"STARTS_WITH":case"STARTS_WITH_CASE_SENSITIVE":r=`${t}*`;break;case"ENDS_WITH":case"ENDS_WITH_CASE_SENSITIVE":r=`*${t}`;break;case"EQUAL":case"EQUAL_CASE_SENSITIVE":r=t;break;case"NULL":r=null;break;case"NOT_NULL":r=null,n="notEqual";break;case"NOT_EQUAL":r=t,n="notEqual";break;case"LESS_THAN":r=t,n="lessThan";break;case"LESS_THAN_OR_EQUAL":r=t,n="lessThanOrEqual";break;case"GREATER_THAN":r=t,n="greaterThan";break;case"GREATER_THAN_OR_EQUAL":r=t,n="greaterThanOrEqual"}return` <customFilter val="${r}" operator="${n}"/>\n`}getCustomRowHeight(t){const e=this;return e.style&&(e.rowHeight[t]||e.defaultRowHeight)||""}getDatafields(t){const e=t[0],r=[];for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&"_"!==t.charAt(0)&&r.push(t);this.datafields=r}getFilters(){const t=this,e=t.filterBy;if(!e)return"";let r="";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const o=t.datafields.indexOf(n);if(-1===o)continue;const a=e[n],i=a.filters;r+=` <filterColumn colId="${o}">\n <customFilters and="${!a.operator}">\n`;for(let e=0;e<i.length;e++)r+=t.getCustomFilter(i[e].value,i[e].condition);r+=" </customFilters>\n </filterColumn>"}return r?(r=`\n <autoFilter ref="A1:${t.columnsArray[t.columnsArray.length-1]+t.data.length}">\n${r}\n </autoFilter>`,r):""}getGroupLabels(t){const e=this,r=void 0!==e.xlsxStartIndex?e.xlsxStartIndex:+e.exportHeader,n={},o=[];for(let a=r;a<t.length;a++){const i=t[a];for(let a=0;a<e.groupBy.length;a++){const s=e.groupBy[a],l=i[s];let d=n[s];void 0===d&&(n[s]={},d=n[s]),void 0===d[l]&&(d[l]=(e.exportHeader?t[r-1][s]:s)+": "+l,o.push(d[l]))}}e.groups=n,e.groupLabels=o}getHTMLHeader(t,e){const r=this;let n="\n <thead>\n";if(!r.complexHeader){n+=" <tr>\n";for(let r=0;r<t.length;r++){const o=t[r];n+=` <th class="header header${o}">${e[0][o]}</th>\n`}return n+=" </tr>\n </thead>",n}for(let e=0;e<r.complexDataFieldsHeader.length;e++){const o=r.complexDataFieldsHeader[e];n+=" <tr>\n";for(let a=0;a<o.length;a++){const i=o[a];let s=1,l=1;if(o[a-1]&&o[a-1]===i||r.complexDataFieldsHeader[e-1]&&r.complexDataFieldsHeader[e-1][a]===i)continue;let d=a+1;for(;o[d]&&o[d]===o[d-1];)s++,d++;for(d=e+1;r.complexDataFieldsHeader[d]&&r.complexDataFieldsHeader[d][a]===i;)l++,d++;n+=` <th class="header${e===r.complexHeader.length-1||l+e===r.complexHeader.length?" header"+t[a]:""}" colspan="${s}" rowspan="${l}">${r.complexHeader[e][a]}</th>\n`}n+=" </tr>\n"}return n+=" </thead>",n}getConditionalFormatting(){const t=this,e=t.conditionalFormatting;if(!e)return void(t.conditionalFormattingXLSX={conditions:"",styles:""});const r=[];let n="",o="";for(let a=e.length-1;a>=0;a--){const i=e[a],s=t.columnsArray[t.datafields.indexOf(i.column)],l=s+(t.xlsxStartIndex+1),d=l+":"+s+t.data.length,m=i.background+i.color,c=t.getConditionalAttributes(i,l);let h=r.indexOf(m);if(-1===h){o+=` <dxf>\n <font>\n <b val="0"/>\n <i val="0"/>\n <color rgb="${"White"===i.color?"FFFFFFFF":"FF000000"}"/>\n <sz val="10"/>\n </font>\n <fill>\n <patternFill>\n <bgColor rgb="${t.toARGB(i.background)}"/>\n </patternFill>\n </fill>\n </dxf>\n`,h=r.length,r.push(m)}n+=` <conditionalFormatting sqref="${d}">\n <cfRule dxfId="${h}" text="${c.text}" rank="${c.rank}" percent="${c.percent}" bottom="${c.bottom}" equalAverage="${c.equalAverage}" aboveAverage="${c.aboveAverage}"${c.operator}${c.timePeriod} priority="${a+2}" type="${c.type}">\n${c.formula} </cfRule>\n </conditionalFormatting>\n`}o=` <dxfs count="${r.length}">\n${o} </dxfs>`,t.conditionalFormattingXLSX={conditions:n,styles:o}}getConditionalAttributes(t,e){let r=t.condition,n=t.comparator,o="",a=0,i=0,s=0,l=0,d="",m="",c="",h="";switch(r){case"equal":d="equal",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"lessThan":d="lessThan",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"greaterThan":d="greaterThan",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"notEqual":d="notEqual",c="cellIs",h=` <formula>${n}</formula>\n`;break;case"between":d="between",c="cellIs",h=` <formula>${t.min}</formula>\n <formula>${t.max}</formula>\n`;break;case"duplicate":c="duplicateValues",h=" <formula>0</formula>\n";break;case"topNItems":a=n,c="top10";break;case"bottomNItems":a=n,s=1,c="top10";break;case"topNPercent":a=n,i=1,c="top10";break;case"bottomNPercent":a=n,i=1,s=1,c="top10";break;case"aboveAverage":l=1,c="aboveAverage",h=" <formula>0</formula>\n";break;case"belowAverage":c="aboveAverage",h=" <formula>0</formula>\n";break;case"contains":o=n,d="containsText",c="containsText",h=` <formula>NOT(ISERROR(SEARCH("${n}",${e})))</formula>\n`;break;case"doesNotContain":o=n,d="notContains",c="notContainsText",h=` <formula>ISERROR(SEARCH("${n}",${e}))</formula>\n`;break;case"dateOccur":m=` timePeriod="${n}"`,c="timePeriod"}return d&&(d=` operator="${d}" `),{text:o,rank:a,percent:i,bottom:s,equalAverage:0,aboveAverage:l,operator:d,timePeriod:m,type:c,formula:h}}getMergedCells(t){const e=this;let r="";for(let e=0;e<t.length;e++)t[e].from!==t[e].to&&(r+=`\n <mergeCell ref="${t[e].from}:${t[e].to}" />\n`);if(e.mergedCells)for(let t=0;t<e.mergedCells.length;t++){const n=e.mergedCells[t];n.rowspan<2&&n.colspan<2||(r+=`\n <mergeCell ref="${e.columnsArray[n.cell[0]]+(n.cell[1]+e.xlsxStartIndex+1)}:${e.columnsArray[n.cell[0]+n.colspan-1]+(n.cell[1]+e.xlsxStartIndex+n.rowspan)}" />\n`)}return r&&(r=`\n <mergeCells count="${t.length}">${r} </mergeCells>`),r}getNumFmtIndex(t,e){let r=e.collection.indexOf(t);return-1===r?(r=e.collection.length+100,e.collection.push(t),e.xml+=`<numFmt numFmtId="${r}" formatCode="${t}"/>`):r+=100,r}getOutlineLevel(t){return this.actualHierarchy&&1!==t._level?` outlineLevel="${t._level-1}"`:""}getRowStyle(){const t=this.style;if(!t)return"";const e=t.rows;if(!e)return"";const r={row:""};let n="";for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t)||"alternationCount"===t||"alternationStart"===t||"alternationEnd"===t)continue;const n=e[t];if(-1===t.indexOf("alt"))if(isNaN(t))r.row+=Smart.Utilities.Core.toDash(t)+": "+e[t]+"; ";else{r["row"+t]||(r["row"+t]="");for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(r["row"+t]+=Smart.Utilities.Core.toDash(e)+": "+n[e]+"; ")}else{const e=t.slice(16,17),o=t.slice(17);r["rowN"+e]||(r["rowN"+e]=""),r["rowN"+e]+="Color"===o?"color : "+n+"; ":"BorderColor"===o?"border-color : "+n+"; ":"background-color : "+n+"; "}}let o=Object.keys(r);o.sort((function(t,e){if("row"===t)return-1;if("row"===e)return 1;const r=!isNaN(t.slice(3)),n=!isNaN(e.slice(3));return r&&!n?1:!r&&n?-1:+(t<e)}));for(let t=0;t<o.length;t++)n+=` .${o[t]} { ${r[o[t]]}}\n`;return n}getTableStyle(){const t=this.style;if(!t)return' style="table-layout: fixed; border: 1px solid black; border-collapse: collapse;"';let e="table-layout: fixed; ";for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&-1===["header","columns","rows","removeDefault","custom"].indexOf(r)&&(e+=Smart.Utilities.Core.toDash(r)+": "+t[r]+"; ");return e&&(e=' style="'+e+'"'),e}getXLSXCellStyle(t){const e=this;return void 0!==e.cellStyleMapping[t]?` s="${e.cellStyleMapping[t]}"`:""}getXLSXFormat(t,e){if("number"==typeof e){if(!/^([a-zA-Z]\d*)$/g.test(t))return t;let e=parseFloat(t.slice(1))||0,r=e>0?"."+"0".repeat(e):"";switch(t=t.slice(0,1)){case"C":case"c":return"$#,0"+r;case"D":case"d":return e?"0".repeat(e):"0";case"E":case"e":return"0"+r+t+"000";case"F":case"f":return"0"+r;case"N":case"n":return"#,0"+r;case"P":case"p":return"#,0"+r+" %";default:return}}else if(e instanceof Date){switch(t){case"d":return"m/d/yyyy";case"D":return"nnnnmmmm dd, yyyy";case"t":return"h:m AM/PM";case"T":return"h:mm:ss AM/PM";case"f":return"nnnnmmmm dd, yyyy h:m AM/PM";case"F":return"nnnnmmmm dd, yyyy h:mm:ss AM/PM";case"M":return"mmmm d";case"Y":return"yyyy mmmm";case"FP":case"PP":return"yyyy-mm-dd hh:mm:ss";case"FT":case"PT":return"hh:mm:ss"}return t=(t=(t=(t=t.replace(/f|u|n|p|e|a|x|o/gi,"")).replace(/tt/gi,"AM/PM")).replace(/:{2,}|:\s|:$|\.$/g,"")).trim()}}processColumnStyle(t){const e=this,r=t.header,n=t.columns,o=e.data[0],a=e.xlsxStartIndex;if(e.columnWidth=[],a&&r)for(let t=0;t<e.columnsArray.length;t++){const n=e.columnsArray[t],i=n+a,s=r[e.datafields[t]];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&void 0===o[t])if(e.complexHeader)for(let o=0;o<e.complexHeader.length;o++)"height"!==t?e.storeCellStyle(n+(o+1),t,r[t]):e.rowHeight[o]=` ht="${parseFloat(r.height)/e.complexHeader.length/2}"`;else{if("height"===t){e.rowHeight[0]=` ht="${parseFloat(r.height)/2}"`;continue}e.storeCellStyle(i,t,r[t])}if(s)for(let r in s)if(Object.prototype.hasOwnProperty.call(s,r)){if("width"===r){e.columnWidth[t]=s.width;continue}e.storeCellStyle(i,r,s[r])}}else if(r)for(let t=0;t<e.columnsArray.length;t++){const n=r[e.datafields[t]];n&&void 0!==n.width&&(e.columnWidth[t]=n.width)}if(!n)return"";for(let t=a;t<e.data.length;t++)for(let r=0;r<e.columnsArray.length;r++){const a=e.columnsArray[r]+(t+1),i=e.datafields[r],s=n[i];for(let t in n)Object.prototype.hasOwnProperty.call(n,t)&&void 0===o[t]&&e.storeCellStyle(a,t,n[t]);if(s)for(let r in s)isNaN(r)&&Object.prototype.hasOwnProperty.call(s,r)&&e.storeCellStyle(a,r,s[r],e.data[t][i])}}processComplexHeader(t,e,r){const n=this,o={},a=-1!==["html","jpeg","pdf","png","xlsx"].indexOf(r)&&t.columngroups,i=[],s={},l={},d=[],m=[];let c=0;function h(e){for(let r=0;r<t.columngroups.length;r++){const n=t.columngroups[r];if(n.name===e)return n}}function u(t,e){const r=[];for(;t;){if(r.unshift(t[e]),!t.parentGroup)return r;t=h(t.parentGroup)}}if(a){for(let e=0;e<t.columngroups.length;e++){const r=t.columngroups[e],n=u(r,"label");s[r.name]=n,l[r.name]=u(r,"name"),c=Math.max(c,n.length)}c++;for(let t=0;t<c;t++)d[t]=[],m[t]=[]}for(let e=0;e<t.columns.length;e++){const r=t.columns[e];if(o[r.dataField]=r.label,!a)continue;if(i[e]=r.dataField,d[c-1][e]=r.label,m[c-1][e]=r.dataField,!r.columnGroup)continue;const n=s[r.columnGroup],h=l[r.columnGroup];if(n)for(let t=0;t<n.length;t++)d[t][e]=n[t],m[t][e]=h[t]}if(d.length>1){const t=Object.keys(o).length;for(let n=0;n<c-1;n++){const o={};for(let e=0;e<t;e++){if(void 0===d[n][e]){let t=n+1;for(;void 0===d[t][e];)t++;d[n][e]=d[t][e],m[n][e]=m[t][e]}o[i[e]]=d[n][e]}"xlsx"===r&&e.splice(n,0,o)}if(n.complexHeader=d,n.complexDataFieldsHeader=m,"xlsx"!==r)e.unshift(o);else{e.splice(c-1,0,o);const r={};for(let e=0;e<c;e++)for(let n=0;n<t;n++){const t=m[e][n];if(r[t]){const o=r[t].to;if(e-o[0]>1||n-o[1]>1){r[t+Math.random().toString(36)]=r[t],r[t]={from:[e,n],to:[e,n]};continue}r[t].to=[e,n]}else r[t]={from:[e,n]},r[t].to=r[t].from}n.complexHeaderMergeInfo=r}}else e.unshift(o)}processHierarchicalData(t,e){const r=this,n="xlsx"!==e?+r.exportHeader:r.xlsxStartIndex,o={},a=[];let i=0,s=!1;if(void 0===t[n]._keyDataField)return r.processNestedData(t,e,n);for(let e=n;e<t.length;e++){const r=Object.assign({},t[e]);let n=r._parentDataField;void 0===n&&(n=null),void 0===o[n]?o[n]=[r]:o[n].push(r)}if(n)for(let r=0;r<n;r++)a.push(Object.assign({},t[r])),-1===["json","pdf","xml"].indexOf(e)&&(a[r]._level=1);return"json"!==e&&"xml"!==e?function t(e,r,n){const l=o[e];if(i=Math.max(i,r),void 0!==l)for(let e=0;e<l.length;e++){const i=l[e],d=i._keyDataField;i._collapsed=n,i._level=r,a.push(i),o[d]&&(s=!0,i._expanded=void 0===i._expanded||i._expanded,t(d,r+1,n||!i._expanded))}}(null,1,!1):function t(r,n,a){const l=o[r];if(i=Math.max(i,n),void 0!==l)for(let r=0;r<l.length;r++){const i=l[r],d=i._keyDataField;let m;if("json"===e){m={};for(let t in i)Object.prototype.hasOwnProperty.call(i,t)&&"_"!==t.charAt(0)&&(m[t]=i[t])}else m=Object.assign({},i);a.push(m),o[d]&&(s=!0,m.rows=[],t(d,n+1,m.rows))}}(null,1,a),s||(r.actualHierarchy=!1),r.maxLevel=i,a}processNestedData(t,e,r){const n=this,o=[];let a=0,i=!1;if(r)for(let n=0;n<r;n++)o.push(Object.assign({},t[n])),-1===["json","pdf","xml"].indexOf(e)&&(o[n]._level=1);return"json"!==e&&"xml"!==e?function t(e,r,n,s){a=Math.max(a,n);for(let a=e;a<r.length;a++){const e=Object.assign({},r[a]);e._collapsed=s,e._level=n,o.push(e),e.children&&e.children.length>0&&(i=!0,e._expanded=void 0===e._expanded||e._expanded,t(0,e.children,n+1,s||!e._expanded)),delete e.children}}(r,t,1,!1):function t(e,r,n,s){a=Math.max(a,s);for(let a=e;a<r.length;a++){const e=Object.assign({},r[a]);1===s?o[a]=e:n[a]=e,e.children&&e.children.length>0&&(i=!0,e.rows=[],t(0,e.children,e.rows,s+1)),delete e.children}}(r,t,void 0,1),i||(n.actualHierarchy=!1),n.maxLevel=a,o}processRowStyle(t){const e=this,r=t.rows;if(e.rowHeight=[],!r)return;const n=e.xlsxStartIndex;function o(t,r,o){for(let a=0;a<e.columnsArray.length;a++){const i=e.columnsArray[a]+(t+1+n);e.storeCellStyle(i,r,o)}}r.height&&(e.defaultRowHeight=` ht="${parseFloat(r.height)/2}"`);for(let t=n;t<e.data.length;t++){const a=t-n;for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&-1===t.indexOf("alt")&&isNaN(t)&&"height"!==t&&o(a,t,r[t]);if(r.alternationCount&&((void 0===r.alternationStart||a>=r.alternationStart)&&(void 0===r.alternationEnd||a<=r.alternationEnd)||r.alternationStart===r.alternationEnd)){const t=(a-(r.alternationStart||0))%r.alternationCount;r[`alternationIndex${t}Color`]&&o(a,"color",r[`alternationIndex${t}Color`]),r[`alternationIndex${t}BorderColor`]&&o(a,"borderColor",r[`alternationIndex${t}BorderColor`]),r[`alternationIndex${t}BackgroundColor`]&&o(a,"backgroundColor",r[`alternationIndex${t}BackgroundColor`])}if(r[a])for(let n in r[a])if(Object.prototype.hasOwnProperty.call(r[a],n)){if("height"===n){e.rowHeight[t]=` ht="${parseFloat(r[a].height)/2}"`;continue}o(a,n,r[a][n])}}}storeCellStyle(t,e,r){const n=this.styleMap[t];switch(e){case"backgroundColor":n.fills.fgColor=r;break;case"color":n.fonts.color=r;break;case"fontFamily":n.fonts.name=r.replace(/"/g,"'");break;case"fontSize":n.fonts.sz=parseFloat(r);break;case"fontStyle":"italic"===r?n.fonts.i=!0:delete n.fonts.i;break;case"fontWeight":"bold"===r?n.fonts.b=!0:delete n.fonts.b;break;case"numFmt":n.numFmt=r;break;case"textAlign":n.alignment.horizontal=r;break;case"textDecoration":"underline"===r?n.fonts.u=!0:delete n.fonts.u;break;case"verticalAlign":"middle"===r&&(r="center"),n.alignment.vertical=r}}toARGB(t){t=t.replace(/\s/g,"");const e=/rgb\((\d+),(\d+),(\d+)\)/gi.exec(t);if(null!==e){const t=parseFloat(e[1]).toString(16).toUpperCase(),r=parseFloat(e[2]).toString(16).toUpperCase(),n=parseFloat(e[3]).toString(16).toUpperCase();return"FF"+"0".repeat(2-t.length)+t+"0".repeat(2-r.length)+r+"0".repeat(2-n.length)+n}const r=/rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(t);if(null!==r){const t=Math.round(255*parseFloat(r[4])).toString(16).toUpperCase(),e=parseFloat(r[1]).toString(16).toUpperCase(),n=parseFloat(r[2]).toString(16).toUpperCase(),o=parseFloat(r[3]).toString(16).toUpperCase();return"0".repeat(2-t.length)+t+"0".repeat(2-e.length)+e+"0".repeat(2-n.length)+n+"0".repeat(2-o.length)+o}const n=/^#(.)(.)(.)$/gi.exec(t);if(null!==n){const t=n[1].toUpperCase(),e=n[2].toUpperCase(),r=n[3].toUpperCase();return"FF"+t+t+e+e+r+r}return"FF"+t.toUpperCase().slice(1)}toggleableFunctionality(){return this.actualHierarchy?`\n <style type="text/css">\n .toggle-element {\n width: 5px;\n height: 1px;\n padding-right: 5px;\n float: left;\n text-align: right;\n cursor: pointer;\n user-select: none;\n }\n\n .collapsed {\n display: none;\n }\n </style>\n <script type="text/javascript">\n window.onload = function () {\n var expandChar = '${this.expandChar}',\n collapseChar = '${this.collapseChar}',\n toggleElements = document.getElementsByClassName('toggle-element');\n\n function getParent(child) {\n var prevSibling = child.previousElementSibling;\n\n while (prevSibling) {\n if (child.getAttribute('level') > prevSibling.getAttribute('level')) {\n return prevSibling;\n }\n\n prevSibling = prevSibling.previousElementSibling;\n }\n\n }\n\n function getFirstCollapsedAncestor(child) {\n var parent = getParent(child);\n\n while (parent) {\n if (parent.firstElementChild.firstElementChild.innerHTML === expandChar) {\n return parent;\n }\n\n parent = getParent(parent);\n }\n }\n\n for (var i = 0; i < toggleElements.length; i++) {\n toggleElements[i].addEventListener('click', function (event) {\n var expanded = this.innerHTML === collapseChar,\n row = this.parentElement.parentElement,\n sibling = row.nextElementSibling;\n\n if (expanded) {\n this.innerHTML = expandChar;\n }\n else {\n this.innerHTML = collapseChar;\n }\n\n while (sibling && row.getAttribute('level') < sibling.getAttribute('level')) {\n if (expanded) {\n sibling.style.display = 'none';\n }\n else {\n var firstCollapsedAncestor = getFirstCollapsedAncestor(sibling);\n\n if (!firstCollapsedAncestor || firstCollapsedAncestor === row) {\n sibling.classList.remove('collapsed');\n sibling.style.display = null;\n }\n\n }\n\n sibling = sibling.nextElementSibling;\n }\n });\n }\n }\n <\/script>`:""}generateStyles(t){const e=this;if(e.cellStyleMapping={},0===Object.keys(t).length&&!e.complexHeader)return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><charset val="204"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>${e.conditionalFormattingXLSX.styles||'<dxfs count="0"/>'}<tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`;e.styleMap={};for(let t=0;t<e.data.length;t++)for(let r=0;r<e.columnsArray.length;r++)e.styleMap[e.columnsArray[r]+(t+1)]={numFmts:{},fonts:{},fills:{},borders:{},alignment:{}};if(t&&t.columns)for(let r=0;r<e.columnsArray.length;r++){const n=e.datafields[r];if(!t.columns[n]||!t.columns[n].format)continue;const o=e.getXLSXFormat(t.columns[n].format,e.data[1][n]),a=e.getXLSXFormat(t.columns[n].format,e.data[e.data.length-1][n]);a?t.columns[n].numFmt=a:o&&(t.columns[n].numFmt=o)}e.processRowStyle(t),e.processColumnStyle(t);const r={};for(let t=0;t<e.complexHeaderMergedCells.length;t++){const n=e.complexHeaderMergedCells[t];parseFloat(n.to[1])!==e.complexHeader.length?(e.styleMap[n.from].alignment.horizontal="center",e.styleMap[n.from].alignment.vertical="center"):r[n.to]=n.from}const n={xml:'<font><sz val="11" /><color theme="1" /><name val="Calibri" /><family val="2" /><charset val="204" /><scheme val="minor" /></font>',collection:["default"]},o={xml:'<fill><patternFill patternType="none" /></fill><fill><patternFill patternType="gray125" /></fill>',collection:["default","gray125"]},a={xml:"",collection:[]},i={xml:'<xf fontId="0" fillId="0" borderId="1"/>',collection:["default"]};for(let t=0;t<e.data.length;t++)for(let s=0;s<e.columnsArray.length;s++){const l=e.columnsArray[s]+(t+1),d=e.styleMap[l];let m="",c="",h="",u=[],p=[],f=[],g=[];for(let t in d.fonts)if(Object.prototype.hasOwnProperty.call(d.fonts,t)){const r=d.fonts[t];switch(t){case"color":u[0]=r,m+=`<color rgb="${e.toARGB(r)}" />`;break;case"name":u[1]=r,m+=`<name val="${r}" />`;break;case"sz":u[2]=r,m+=`<sz val="${r}" />`;break;case"i":u[3]=r,m+="<i />";break;case"b":u[4]=r,m+="<b />";break;case"u":u[5]=r,m+="<u />"}}for(let t in d.fills)if(Object.prototype.hasOwnProperty.call(d.fills,t)){const r=d.fills[t];switch(t){case"fgColor":p[0]=r,c+=`<fgColor rgb="${e.toARGB(r)}" />`}}for(let t in d.alignment)if(Object.prototype.hasOwnProperty.call(d.alignment,t)){const e=d.alignment[t];switch(t){case"horizontal":f[0]=e,h+=`horizontal="${e}" `;break;case"vertical":f[1]=e,h+=`vertical="${e}" `}}if(u=u.toString(),p=p.toString(),""!==m){let t=n.collection.indexOf(u);-1===t&&(t=n.collection.length,n.xml+="<font>"+m+"</font>",n.collection.push(u)),g[0]=t}if(""!==c){let t=o.collection.indexOf(p);-1===t&&(t=o.collection.length,o.xml+='<fill><patternFill patternType="solid">'+c+"</patternFill></fill>",o.collection.push(p)),g[1]=t}f.length>0&&(g[2]=h),void 0!==d.numFmt&&(g[3]=e.getNumFmtIndex(d.numFmt,a));const b=g.toString();if(""!==b){let t=i.collection.indexOf(b);if(-1===t){let e="<xf ";t=i.collection.length,void 0!==g[0]&&(e+=`fontId="${g[0]}" `),void 0!==g[1]&&(e+=`fillId="${g[1]}" `),void 0!==g[3]&&(e+=`numFmtId="${g[3]}" `),void 0!==g[2]?e+=`applyAlignment="1" borderId="1"><alignment ${h}/></xf>`:e+=' borderId="1"/>',i.xml+=e,i.collection.push(b)}e.cellStyleMapping[r[l]||l]=t}}return a.collection.length&&(a.xml=`<numFmts count="${a.collection.length}">${a.xml}</numFmts>`),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision">${a.xml}<fonts count="${n.collection.length}" x14ac:knownFonts="1">${n.xml}</fonts><fills count="${o.collection.length}">${o.xml}</fills><borders count="2"><border><left/><right/><top/><bottom/></border><border><left style="hair"/><right style="hair"/><top style="hair"/><bottom style="hair"/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="${i.collection.length}">${i.xml}</cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>${e.conditionalFormattingXLSX.styles}<dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`}})},6:function(t,e,r){(e=r(0)(!1)).push([t.i,'/* smart-element */\r\n.smart-container {\r\n box-sizing: border-box;\r\n font-family: inherit;\r\n font-size: inherit;\r\n display: block;\r\n width: 100%;\r\n height: 100%;\r\n outline: none;\r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n.smart-container * {\r\n box-sizing: border-box;\r\n}\r\n\r\n.smart-popup,\r\n.smart-drop-down {\r\n position: absolute;\r\n box-sizing: border-box;\r\n margin: var(--smart-editor-drop-down-vertical-offset) 0px;\r\n z-index: var(--smart-editor-drop-down-z-index);\r\n list-style-type: none;\r\n}\r\n\r\n@font-face {\r\n font-family: \'smart-icons\';\r\n src: url("../font/smart-icons.woff2") format("woff2"), url("../font/smart-icons.woff") format("woff"), url("../font/smart-icons.ttf") format("truetype"), url("../font/smart-icons.eot") format("embedded-opentype");\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n\r\n.smart-icons {\r\n font-family: \'smart-icons\';\r\n font-weight: normal;\r\n font-style: normal;\r\n font-size: 24px;\r\n line-height: 1;\r\n letter-spacing: normal;\r\n text-transform: none;\r\n display: inline-block;\r\n white-space: nowrap;\r\n word-wrap: normal;\r\n direction: ltr;\r\n -webkit-font-smoothing: antialiased;\r\n}\r\n\r\n\r\n.smart-arrow {\r\n width: 100%;\r\n height: 100%;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-size: 1em 1em;\r\n}\r\n\r\n.smart-arrow-up:after,\r\n.smart-arrow-down:after,\r\n.smart-arrow-left:after,\r\n.smart-arrow-right:after,\r\n.smart-arrow-left-first:after,\r\n.smart-arrow-right-last:after {\r\n width: 100%;\r\n height: 100%;\r\n font-family: var(--smart-font-family-icon);\r\n font-style: normal;\r\n font-weight: normal;\r\n font-size: var(--smart-arrow-size);\r\n color: inherit;\r\n text-decoration: inherit;\r\n font-variant: normal;\r\n text-transform: none;\r\n display: flex;\r\n flex-wrap: wrap;\r\n align-items: center;\r\n justify-content: center;\r\n position: relative;\r\n}\r\n\r\n.smart-arrow-up:after {\r\n content: var(--smart-icon-arrow-up);\r\n top: -1px;\r\n}\r\n\r\n.smart-arrow-down:after {\r\n content: var(--smart-icon-arrow-down);\r\n}\r\n\r\n.smart-arrow-left:after {\r\n content: var(--smart-icon-arrow-left);\r\n}\r\n\r\n.smart-arrow-left-first:after {\r\n content: var(--smart-icon-first-page);\r\n}\r\n\r\n.smart-arrow-right-last:after {\r\n content: var(--smart-icon-last-page);\r\n}\r\n\r\n.smart-arrow-right:after {\r\n content: var(--smart-icon-arrow-right);\r\n}\r\n\r\n.drawContainer {\r\n width: 100%;\r\n height: 100%;\r\n position: relative;\r\n}\r\n\r\n.smart-ripple {\r\n display: block;\r\n position: absolute;\r\n border-radius: 50%;\r\n transform: scale(0);\r\n pointer-events: none;\r\n animation: ripple 0.35s linear;\r\n border: none;\r\n opacity: 0.5;\r\n}\r\n\r\n.smart-ripple.smart-animate {\r\n animation: ripple 0.65s linear;\r\n position: absolute;\r\n}\r\n\r\n@keyframes ripple {\r\n 100% {\r\n opacity: 0;\r\n transform: scale(2.5);\r\n /*scale the element to 250% to safely cover the entire link and fade it out*/\r\n }\r\n}\r\n\r\n.smart-overlay {\r\n pointer-events: none;\r\n}\r\n\r\n.smart-unselectable {\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n -moz-user-select: none;\r\n}\r\n\r\n.smart-hidden {\r\n display: none !important;\r\n}\r\n\r\n.smart-visibility-hidden {\r\n visibility: hidden !important;\r\n}\r\n\r\n.smart-element-init {\r\n visibility: hidden;\r\n}\r\n\r\n.smart-element-ready {\r\n overflow: hidden;\r\n}\r\n\r\n.smart-shown {\r\n display: block;\r\n}\r\n\r\n.smart-resize-trigger {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n transition: 0s;\r\n}\r\n\r\n.smart-resize-trigger-shrink {\r\n position: absolute;\r\n left: 0;\r\n top: 0;\r\n transition: 0s;\r\n width: 200%;\r\n height: 200%;\r\n}\r\n\r\n.smart-resize-trigger-container {\r\n display: block;\r\n position: relative;\r\n top: -100%;\r\n left: 0;\r\n height: 100%;\r\n width: 100%;\r\n min-height: 1px;\r\n overflow: hidden;\r\n pointer-events: none;\r\n z-index: -1;\r\n visibility: hidden;\r\n}\r\n\r\nsmart-grid .smart-loader,\r\nsmart-list-box .smart-loader,\r\nsmart-list-menu .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader,\r\nsmart-tree .smart-loader,\r\nsmart-card-view .smart-loader,\r\nsmart-table .smart-loader {\r\n margin: inherit;\r\n display: block;\r\n position: absolute;\r\n top: 50%;\r\n left: 50%;\r\n transform: translate(-50%, -50%);\r\n opacity: 0.85;\r\n text-align: left;\r\n border: 6px solid rgba(43, 51, 63, 0.1);\r\n box-sizing: border-box;\r\n background-clip: padding-box;\r\n border-radius: 50%;\r\n z-index: 10;\r\n width: calc(var(--smart-loader-size) + 10px);\r\n height: calc(var(--smart-loader-size) + 10px);\r\n}\r\n\r\nsmart-grid .smart-loader:before,\r\nsmart-grid .smart-loader:after,\r\nsmart-list-box .smart-loader:before,\r\nsmart-list-box .smart-loader:after,\r\nsmart-list-menu .smart-loader:before,\r\nsmart-list-menu .smart-loader:after,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader:before,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader:after,\r\nsmart-tree .smart-loader:before,\r\nsmart-tree .smart-loader:after,\r\nsmart-card-view .smart-loader:before,\r\nsmart-card-view .smart-loader:after,\r\nsmart-table .smart-loader:before,\r\nsmart-table .smart-loader:after {\r\n content: "";\r\n position: absolute;\r\n margin: -6px;\r\n box-sizing: inherit;\r\n width: inherit;\r\n height: inherit;\r\n border-radius: inherit;\r\n opacity: 1;\r\n border: 6px solid transparent;\r\n animation-delay: 0.44s;\r\n animation: smart-loader-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, smart-loader-spin-fade 1.1s linear infinite;\r\n}\r\n\r\nsmart-grid .smart-loader.smart-hidden,\r\nsmart-list-box .smart-loader.smart-hidden,\r\nsmart-list-menu .smart-loader.smart-hidden,\r\n.smart-list-menu-view.smart-drop-down-repositioned .smart-loader.smart-hidden,\r\nsmart-tree .smart-loader.smart-hidden,\r\nsmart-card-view .smart-loader.smart-hidden,\r\nsmart-table .smart-loader.smart-hidden {\r\n display: none;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader {\r\n width: var(--smart-loader-size);\r\n height: var(--smart-loader-size);\r\n left: 20%;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-container {\r\n display: block;\r\n position: relative;\r\n width: 100%;\r\n height: 10%;\r\n background-color: #F2F2F2;\r\n overflow: hidden;\r\n animation: smart-loader-container-pop-up-down 0.3s linear;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-container.smart-hidden,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-container.smart-hidden {\r\n display: none;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-label,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-label,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-label,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-label,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-label,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-label,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-label {\r\n position: absolute;\r\n display: block;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n left: 60%;\r\n font-family: inherit;\r\n font-size: inherit;\r\n vertical-align: middle;\r\n white-space: nowrap;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="top"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="top"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="top"] .smart-loader-container {\r\n top: 0;\r\n position: absolute;\r\n animation: smart-loader-container-pop-up-top 0.3s linear;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-box[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-list-menu[loading-indicator-position="bottom"] .smart-loader-container,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="bottom"] .smart-loader-container,\r\nsmart-tree[loading-indicator-position="bottom"] .smart-loader-container {\r\n top: -10%;\r\n}\r\n\r\nsmart-grid[loading-indicator-position="center"] .smart-loader,\r\nsmart-list-box[loading-indicator-position="center"] .smart-loader,\r\nsmart-list-menu[loading-indicator-position="center"] .smart-loader,\r\n.smart-list-menu-view.smart-drop-down-repositioned[loading-indicator-position="center"] .smart-loader,\r\nsmart-tree[loading-indicator-position="center"] .smart-loader {\r\n width: calc(var(--smart-loader-size) + 10px);\r\n height: calc(var(--smart-loader-size) + 10px);\r\n}\r\n\r\nsmart-grid[disabled] .smart-loader:before,\r\nsmart-grid[disabled] .smart-loader:after,\r\nsmart-list-box[disabled] .smart-loader:before,\r\nsmart-list-box[disabled] .smart-loader:after,\r\nsmart-list-menu[disabled] .smart-loader:before,\r\nsmart-list-menu[disabled] .smart-loader:after,\r\nsmart-tree[disabled] .smart-loader:before,\r\nsmart-tree[disabled] .smart-loader:after {\r\n animation: none;\r\n}\r\n\r\n@keyframes smart-loader-container-pop-up-down {\r\n 0% {\r\n top: 0;\r\n }\r\n\r\n 20% {\r\n top: -2%;\r\n }\r\n\r\n 35% {\r\n top: -6%;\r\n }\r\n\r\n 60% {\r\n top: -8%;\r\n }\r\n\r\n 100% {\r\n top: -10%;\r\n }\r\n}\r\n\r\n@keyframes smart-loader-container-pop-up-top {\r\n 0% {\r\n top: -10%;\r\n }\r\n\r\n 20% {\r\n top: -8%;\r\n }\r\n\r\n 35% {\r\n top: -6%;\r\n }\r\n\r\n 60% {\r\n top: -2%;\r\n }\r\n\r\n 100% {\r\n top: 0;\r\n }\r\n}\r\n\r\n@keyframes smart-loader-spin {\r\n 100% {\r\n transform: rotate(360deg);\r\n }\r\n}\r\n\r\n@keyframes smart-loader-spin-fade {\r\n 0% {\r\n border-top-color: #7A7A7A;\r\n }\r\n\r\n 20% {\r\n border-top-color: #7A7A7A;\r\n }\r\n\r\n 35% {\r\n border-top-color: transparent;\r\n }\r\n\r\n 60% {\r\n border-top-color: #7A7A7A;\r\n }\r\n\r\n 100% {\r\n border-top-color: #7A7A7A;\r\n }\r\n}\r\n\r\n.smart-right-to-left {\r\n direction: rtl;\r\n}\r\n\r\n.smart-micro {\r\n font-size: 9px;\r\n}\r\n\r\n.smart-caps {\r\n text-transform: uppercase;\r\n letter-spacing: .1em;\r\n}\r\n\r\n.smart-strong {\r\n font-weight: 500;\r\n}\r\n\r\n.smart-truncate {\r\n max-width: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n.smart-flex-auto {\r\n flex: 1 1 auto;\r\n display: flex;\r\n min-width: 0;\r\n min-height: 0;\r\n}\r\n\r\n.smart-flex {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.smart-quiet {\r\n opacity: 0.75;\r\n}\r\n\r\n.smart-dragging,\r\n.smart-dragging * {\r\n cursor: move !important;\r\n}',""]),t.exports=e},7:function(t,e,r){t.exports=r.p+"font/smart-icons.woff2"},8:function(t,e){!function(){const t=[];let e="Smart";if(window[e]&&window[e].Version){if("13.2.0"===window[e].Version)return;if("13.2.0"!==window[e].Version)e+="13.2.0";else{let t=2;for(;window[e];)e+=t.toString(),t++}}const r=navigator.userAgent.indexOf("Edge")>-1&&navigator.appVersion.indexOf("Edge")>-1;document.elementsFromPoint||(document.elementsFromPoint=document.msElementsFromPoint);class n{static isBoolean(t){return"boolean"==typeof t}static isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)}static isArray(t){return Array.isArray(t)}static isObject(t){return t&&("object"==typeof t||this.isFunction(t))||!1}static isDate(t){return t instanceof Date}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t}static getType(t){const e=this,r=["Boolean","Number","String","Function","Array","Date","Object"].find(r=>{if(e["is"+r](t))return r});return r?r.toLowerCase():void 0}}class o{static animate(t,r,n,o){const a=t;if(!a||a instanceof HTMLElement==!1)return;if(0===a.getElementsByClassName("smart-ripple").length){const t=document.createElement("span");t.classList.add("smart-ripple"),t.setAttribute("role","presentation");let r=!0,n=null;if(window[e].EnableShadowDOM&&a.enableShadowDOM&&!0!==a.isInShadowDOM){for(let t=0;t<a.shadowRoot.host.shadowRoot.children.length;t++)"link"!==a.shadowRoot.host.shadowRoot.children[t].tagName.toLowerCase()&&(n=a.shadowRoot.host.shadowRoot.children[t]);a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple")&&(r=!1)}else n=a.firstElementChild;r&&(n&&!n.noRipple&&n.offsetHeight>0?n.appendChild(t):a.appendChild(t))}let i=null;if(i=window[e].EnableShadowDOM&&a.shadowRoot?a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple"):a.getElementsByClassName("smart-ripple")[0],!i)return;i.innerHTML="",i.classList.remove("smart-animate"),i.style.height=i.style.width=Math.max(a.offsetHeight,a.offsetWidth)+"px";const s=window.getComputedStyle(i.parentElement),l=parseInt(s.borderLeftWidth)||0,d=parseInt(s.borderTopWidth)||0,m=a.getBoundingClientRect(),c=r-(m.left+window.pageXOffset)-i.offsetWidth/2-l,h=n-(m.top+window.pageYOffset)-i.offsetHeight/2-d;i.style.left=c+"px",i.style.top=h+"px",i.classList.add("smart-animate"),i.addEventListener("animationend",(function t(){i.parentElement&&i.parentElement.removeChild(i),o&&o(),i.removeEventListener("animationend",t),i.removeEventListener("animationcancel",t)})),i.addEventListener("animationcancel",(function t(){i.parentElement&&i.parentElement.removeChild(i),o&&o(),i.removeEventListener("animationcancel",t),i.removeEventListener("animationend",t)}))}}class a{static easeInQuad(t,e,r,n){return r*(t/=n)*t+e}static easeOutQuad(t,e,r,n){return-r*(t/=n)*(t-2)+e}static easeInOutQuad(t,e,r,n){return(t/=n/2)<1?r/2*t*t+e:-r/2*(--t*(t-2)-1)+e}static easeInCubic(t,e,r,n){return r*(t/=n)*t*t+e}static easeOutCubic(t,e,r,n){return r*((t=t/n-1)*t*t+1)+e}static easeInOutCubic(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t+e:r/2*((t-=2)*t*t+2)+e}static easeInQuart(t,e,r,n){return r*(t/=n)*t*t*t+e}static easeOutQuart(t,e,r,n){return-r*((t=t/n-1)*t*t*t-1)+e}static easeInOutQuart(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t*t+e:-r/2*((t-=2)*t*t*t-2)+e}static easeInQuint(t,e,r,n){return r*(t/=n)*t*t*t*t+e}static easeOutQuint(t,e,r,n){return r*((t=t/n-1)*t*t*t*t+1)+e}static easeInOutQuint(t,e,r,n){return(t/=n/2)<1?r/2*t*t*t*t*t+e:r/2*((t-=2)*t*t*t*t+2)+e}static easeInSine(t,e,r,n){return-r*Math.cos(t/n*(Math.PI/2))+r+e}static easeOutSine(t,e,r,n){return r*Math.sin(t/n*(Math.PI/2))+e}static easeInOutSine(t,e,r,n){return-r/2*(Math.cos(Math.PI*t/n)-1)+e}static easeInExpo(t,e,r,n){return 0===t?e:r*Math.pow(2,10*(t/n-1))+e}static easeOutExpo(t,e,r,n){return t===n?e+r:r*(1-Math.pow(2,-10*t/n))+e}static easeInOutExpo(t,e,r,n){return 0===t?e:t===n?e+r:(t/=n/2)<1?r/2*Math.pow(2,10*(t-1))+e:r/2*(2-Math.pow(2,-10*--t))+e}static easeInCirc(t,e,r,n){return-r*(Math.sqrt(1-(t/=n)*t)-1)+e}static easeOutCirc(t,e,r,n){return r*Math.sqrt(1-(t=t/n-1)*t)+e}static easeInOutCirc(t,e,r,n){return(t/=n/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+e:r/2*(Math.sqrt(1-(t-=2)*t)+1)+e}static easeInElastic(t,e,r,n){let o=1.70158,a=0,i=r;return 0===t?e:1==(t/=n)?e+r:(a||(a=.3*n),i<Math.abs(r)?(i=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)+e)}static easeOutElastic(t,e,r,n){let o=1.70158,a=0,i=r;return 0===t?e:1==(t/=n)?e+r:(a||(a=.3*n),i<Math.abs(r)?(i=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/i),i*Math.pow(2,-10*t)*Math.sin((t*n-o)*(2*Math.PI)/a)+r+e)}static easeInOutElastic(t,e,r,n){let o=1.70158,a=0,i=r;return 0===t?e:2==(t/=n/2)?e+r:(a||(a=n*(.3*1.5)),i<Math.abs(r)?(i=r,o=a/4):o=a/(2*Math.PI)*Math.asin(r/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)*-.5+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*n-o)*(2*Math.PI)/a)*.5+r+e)}static easeInBack(t,e,r,n,o){return void 0===o&&(o=1.70158),r*(t/=n)*t*((o+1)*t-o)+e}static easeOutBack(t,e,r,n,o){return void 0===o&&(o=1.70158),r*((t=t/n-1)*t*((o+1)*t+o)+1)+e}static easeInOutBack(t,e,r,n,o){return void 0===o&&(o=1.70158),(t/=n/2)<1?r/2*(t*t*((1+(o*=1.525))*t-o))+e:r/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+e}static easeInBounce(t,e,r,n){return r-this.easeOutBounce(n-t,0,r,n)+e}static easeOutBounce(t,e,r,n){return(t/=n)<1/2.75?r*(7.5625*t*t)+e:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+e:r*(7.5625*(t-=2.625/2.75)*t+.984375)+e}static easeInOutBounce(t,e,r,n){return t<n/2?.5*this.easeInBounce(2*t,0,r,n)+e:.5*this.easeOutBounce(2*t-n,0,r,n)+.5*r+e}}class i{static get isMobile(){const t=/(iphone|ipod|ipad|android|iemobile|blackberry|bada)/.test(window.navigator.userAgent.toLowerCase());return t||(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)}static get Browser(){let t;const e=function(e){let r=e.indexOf(t);if(-1===r)return;const n=e.indexOf("rv:");return"Trident"===t&&-1!==n?parseFloat(e.substring(n+3)):parseFloat(e.substring(r+t.length+1))};let r={};return r[function(){const e=[{string:navigator.userAgent,subString:"Edge",identity:"Edge"},{string:navigator.userAgent,subString:"MSIE",identity:"IE"},{string:navigator.userAgent,subString:"Trident",identity:"IE"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"},{string:navigator.userAgent,subString:"OPR",identity:"Opera"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"}];for(let r=0;r<e.length;r++){let n=e[r].string;if(t=e[r].subString,-1!==n.indexOf(e[r].subString))return e[r].identity}return"Other"}()]=!0,r.version=e(navigator.userAgent)||e(navigator.appVersion)||"Unknown",r}static toCamelCase(t){return t.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}static toDash(t){return t.split(/(?=[A-Z])/).join("-").toLowerCase()}static unescapeHTML(t){return(new DOMParser).parseFromString(t,"text/html").documentElement.textContent}static escapeHTML(t){const e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,t=>e[t])}static sanitizeHTML(t){if(t&&(t.indexOf("onclick")>=0||t.indexOf("onload")>=0||t.indexOf("onerror")>=0))return this.escapeHTML(t);const e=new RegExp("<s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<s*/s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>","ig");return String(t).replace(e,t=>this.escapeHTML(t))}static createGUID(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}static getScriptLocation(){if("./"!==window[e].BaseUrl)return window[e].BaseUrl;return function(){if(document.currentScript){let t=document.currentScript.src,e=t.lastIndexOf("/");return t=t.substring(0,e),t}const t=new Error;let e="(",r=")";if(Smart.Utilities.Core.Browser.Safari&&(e="@",r="\n"),t.fileName)return t.fileName.replace("/smart.element.js","");let n=t.stack.split(e);return n=n[1],n=n.split(r)[0],n=n.split(":"),n.splice(-2,2),n=n.join(":"),n.replace("/smart.element.js","")}()}static CSSVariablesSupport(){return window.CSS&&window.CSS.supports&&window.CSS.supports("(--fake-var: 0)")}static assign(t,e){const r=t=>t&&"object"==typeof t&&!Array.isArray(t)&&null!==t;let n=Object.assign({},t);return r(t)&&r(e)&&Object.keys(e).forEach(o=>{r(e[o])&&o in t?n[o]=this.assign(t[o],e[o]):Object.assign(n,{[o]:e[o]})}),n}static html(t,e){const r=this;let n="",o=t.childNodes;if(!e){for(let t,e=0,a=o.length;e<a&&(t=o[e]);e++){const e=["strong"];if(t instanceof HTMLElement||t.tagName&&e.indexOf(t.tagName.toLowerCase())>=0){const e=t.tagName.toLowerCase(),o=t.attributes;let a="<"+e;for(let t,e=0;t=o[e];e++)a+=" "+t.name+'="'+t.value.replace(/[&\u00A0"]/g,g.Core.escapeHTML)+'"';a+=">",["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"][e]&&(n+=a),n=n+a+r.html(t)+"</"+e+">"}else{if(8===t.nodeType)continue;n+=t.textContent.replace(/[&\u00A0<>]/g,g.Core.escapeHTML)}}return n}{const r=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi;t.innerHTML=e.replace(r,"<$1></$2>")}}}let s=[];class l{static watch(t){switch(t.nodeName.toLowerCase()){case"smart-grid":case"smart-kanban":case"smart-table":case"smart-pivot-table":case"smart-scheduler":case"smart-tabs":case"smart-card-view":case"smart-list-box":case"smart-combo-box":case"smart-drop-down-list":case"smart-calendar":case"smart-gauge":case"smart-numeric-text-box":case"smart-menu":case"smart-tree":s.push(t);break;default:return}l.start()}static start(){l.isStarted||(l.isStarted=!0,l.interval&&clearInterval(l.interval),0===s.length||document.hidden?l.isStarted=!1:l.interval=setInterval((function(){l.observe()}),100))}static stop(){l.isStarted=!1,l.interval&&clearInterval(l.interval)}static observeElement(t){const e=t;if("test"===window.Smart.Mode||document.hidden)return void(l.interval&&clearInterval(l.interval));let r=t._computedStyle||"resize"!==e.hasStyleObserver?document.defaultView.getComputedStyle(e,null):{},n=!0,o="resize"!==e.hasStyleObserver?["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","display","visibility","font-size","font-family","font-style","font-weight","max-height","min-height","max-width","min-width","overflow","overflow-x","overflow-y"]:[];if(t.styleProperties&&(o=o.concat(t.styleProperties)),t.observableStyleProperties&&(o=t.observableStyleProperties),!e._styleInfo){e._styleInfo=[];for(let t=0;t<o.length;t++){const n=o[t],a=n.startsWith("--")?r.getPropertyValue(n):r[n];e._styleInfo[n]=a}return}if(t.isHidden||"none"!==r.display&&(0!==t.offsetWidth&&0!==t.offsetHeight||(t.isHidden=!0)),t.isHidden){if(t.visibilityChangedHandler(),t.isHidden)return;n=!1}let a=[];for(let t=0;t<o.length;t++){const n=o[t],i=n.startsWith("--")?r.getPropertyValue(n):r[n];e._styleInfo[n]!==i&&(a[n]={oldValue:e._styleInfo[n],value:i},a.length++),e._styleInfo[n]=i}a.length>0&&(e.$.fireEvent("styleChanged",{styleProperties:a},{bubbles:!1,cancelable:!0}),a.display&&n&&e.$.fireEvent("resize",e,{bubbles:!1,cancelable:!0}))}static observe(){for(let t=0;t<s.length;t++){const e=s[t];this.observeElement(e)}}static unwatch(t){l.stop();const e=s.indexOf(t);-1!==e&&s.splice(e,1),l.start()}}let d=[];const m=[],c=["resize","down","up","move","tap","taphold","swipeleft","swiperight","swipetop","swipebottom"];class h{constructor(t){const e=this;e.target=t,e.$target=new p(t),e.$document=t.$document?t.$document:new p(document),e.id=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase();let r={handlers:{},boundEventTypes:[],listen:e.listen.bind(e),unlisten:e.unlisten.bind(e)};return e.tapHoldDelay=750,e.swipeMin=10,e.swipeMax=5e3,e.swipeDelay=1e3,e.tapHoldDelay=750,e.inputEventProperties=["clientX","clientY","pageX","pageY","screenX","screenY"],c.forEach(t=>{r[t]=e=>{r.handlers[t]=e},e[t]=t=>{if(!r.handlers[t.type]){if(("mousemove"===t.type||"pointermove"===t.type||"touchmove"===t.type)&&r.handlers.move){const n=e.createEvent(t,"move");r.handlers.move(n)}return!0}return r.handlers[t.type](t)}}),e.listen(),e.handlers=r.handlers,r}listen(t){const r=this;if("resize"===t&&r.target!==document&&r.target!==window&&!1!==r.target.hasResizeObserver)if(Smart.Utilities.Core.Browser.Firefox){if(!r.target.resizeObserver){let t,e,n,o=!1,a=r.target.offsetWidth,i=r.target.offsetHeight;const s=new ResizeObserver(()=>{if(!o)return void(o=!0);const s=new CustomEvent("resize",{bubbles:!1,cancelable:!0});e=r.target.offsetWidth,n=r.target.offsetHeight,t=e!==a||n!==i,r.target.requiresLayout&&(t=!0),t&&(r.resize(s),r.target.requiresLayout=!1)});s.observe(r.target),r.target.resizeObserver=s}}else if(!r.target.resizeTrigger){const t=document.createElement("div");t.className="smart-resize-trigger-container",t.innerHTML='<div class="smart-resize-trigger-container"><div class="smart-resize-trigger"></div></div><div class="smart-resize-trigger-container"><div class="smart-resize-trigger-shrink"></div></div>',t.setAttribute("aria-hidden",!0),window[e].EnableShadowDOM&&r.target.shadowRoot?r.target.shadowRoot.appendChild(t):r.target.appendChild(t),r.target.resizeTrigger=t;const n=t.childNodes[0],o=n.childNodes[0],a=t.childNodes[1],i=function(){o.style.width="100000px",o.style.height="100000px",n.scrollLeft=1e5,n.scrollTop=1e5,a.scrollLeft=1e5,a.scrollTop=1e5};let s,l,d,m,c=r.target.offsetWidth,h=r.target.offsetHeight;if(0===c||0===h){const t=function(){i(),r.target.removeEventListener("resize",t)};r.target.addEventListener("resize",t),i()}else i();r.target.resizeHandler=function(){l||(l=requestAnimationFrame((function(){if(l=0,d=r.target.offsetWidth,m=r.target.offsetHeight,s=d!==c||m!==h,r.target.requiresLayout&&(s=!0),!s)return;c=d,h=m;const t=new CustomEvent("resize",{bubbles:!1,cancelable:!0});r.resize(t),r.target.requiresLayout=!1}))),i()},n.addEventListener("scroll",r.target.resizeHandler),a.addEventListener("scroll",r.target.resizeHandler)}if(!r.isListening){if(r.isListening=!0,r.isPressed=!1,r.isReleased=!1,r.isInBounds=!1,window.PointerEvent)r.$target.listen("pointerdown.inputEvents"+r.id,r.pointerDown.bind(r)),r.$target.listen("pointerup.inputEvents"+r.id,r.pointerUp.bind(r)),r.$target.listen("pointermove.inputEvents"+r.id,r.pointerMove.bind(r)),r.$target.listen("pointercancel.inputEvents"+r.id,r.pointerCancel.bind(r));else{"ontouchstart"in window&&(r.$target.listen("touchmove.inputEvents"+r.id,r.touchMove.bind(r)),r.$target.listen("touchstart.inputEvents"+r.id,r.touchStart.bind(r)),r.$target.listen("touchend.inputEvents"+r.id,r.touchEnd.bind(r)),r.$target.listen("touchcancel.inputEvents"+r.id,r.touchCancel.bind(r))),r.$target.listen("mousedown.inputEvents"+r.id,r.mouseDown.bind(r)),r.$target.listen("mouseup.inputEvents"+r.id,r.mouseUp.bind(r)),r.$target.listen("mousemove.inputEvents"+r.id,r.mouseMove.bind(r)),r.$target.listen("mouseleave.inputEvents"+r.id,r.mouseLeave.bind(r))}r.target._handleDocumentUp||(r.target._handleDocumentUp=r.handleDocumentUp.bind(r),r.target._handleDocumentUpId=r.id,r.$document.listen("mouseup.inputEvents"+r.target._handleDocumentUpId,r.target._handleDocumentUp))}}unlisten(t){const e=this;if(e.isListening=!1,window.PointerEvent)e.$target.unlisten("pointerdown.inputEvents"+e.id),e.$target.unlisten("pointerup.inputEvents"+e.id),e.$target.unlisten("pointermove.inputEvents"+e.id),e.$target.unlisten("pointercancel.inputEvents"+e.id);else{"ontouchstart"in window&&(e.$target.unlisten("touchstart.inputEvents"+e.id),e.$target.unlisten("touchmove.inputEvents"+e.id),e.$target.unlisten("touchend.inputEvents"+e.id),e.$target.unlisten("touchcancel.inputEvents"+e.id)),e.$target.unlisten("mousedown.inputEvents"+e.id),e.$target.unlisten("mouseup.inputEvents"+e.id),e.$target.unlisten("mousemove.inputEvents"+e.id),e.$target.unlisten("mouseleave.inputEvents"+e.id)}if(e.target._handleDocumentUp&&(e.$document.unlisten("mouseup.inputEvents"+e.target._handleDocumentUpId,e.target._handleDocumentUp),delete e.target._handleDocumentUp,delete e.target._handleDocumentUpId),"resize"===t)if(Smart.Utilities.Core.Browser.Firefox)e.target.resizeObserver&&(e.target.resizeObserver.unobserve(e.target),delete e.target.resizeObserver);else if(e.target.resizeTrigger){const t=e.target.resizeTrigger,r=t.childNodes[0],n=t.childNodes[1];r.removeEventListener("scroll",e.target.resizeHandler),n.removeEventListener("scroll",e.target.resizeHandler),e.target.resizeHandler=null,t.parentNode.removeChild(t),delete e.target.resizeTrigger}}handleDocumentUp(t){this.isPressed=!1,this.isReleased=!1,this.resetSwipe(t)}createEvent(t,e){const r=this,n=t.touches,o=t.changedTouches,a=n&&n.length?n[0]:o&&o.length?o[0]:void 0,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:void 0!==r.$target.element.getRootNode().host});if(i.originalEvent=t,a){for(let t=0;t<r.inputEventProperties.length;t++){const e=r.inputEventProperties[t];i[e]=a[e]}return i}for(let e in t)e in i||(i[e]=t[e]);return i}fireTap(t){const e=this;if(clearTimeout(this.tapHoldTimeout),!this.tapHoldFired&&this.isInBounds){const r=e.createEvent(t,"tap");e.tap(r)}}initTap(t){const e=this;e.isInBounds=!0,e.tapHoldFired=!1,e.tapHoldTimeout=setTimeout((function(){if(e.isInBounds){e.tapHoldFired=!0;const r=e.createEvent(t,"taphold");e.taphold(r)}}),e.tapHoldDelay)}pointerDown(t){return this.handleDown(t)}mouseDown(t){if(!(this.isPressed||this.touchStartTime&&new Date-this.touchStartTime<500))return this.handleDown(t)}touchStart(t){return this.touchStartTime=new Date,this.isTouchMoved=!0,this.handleDown(t)}mouseUp(t){if(!(this.isReleased||this.touchEndTime&&new Date-this.touchEndTime<500))return this.handleUp(t)}handleDown(t){const e=this;e.isReleased=!1,e.isPressed=!0;const r=e.createEvent(t,"down");return(e.handlers.tap||e.handlers.taphold)&&e.initTap(r),(e.handlers.swipeleft||e.handlers.swiperight||e.handlers.swipetop||e.handlers.swipebottom)&&e.initSwipe(r),e.down(r)}handleUp(t){const e=this;e.isReleased=!0,e.isPressed=!1;const r=e.createEvent(t,"up"),n=e.up(r);return(e.handlers.tap||e.handlers.taphold)&&e.fireTap(r),e.resetSwipe(r),n}handleMove(t){const e=this;let r=e.move(t);return e.isPressed&&(e._maxSwipeVerticalDistance=Math.max(e._maxSwipeVerticalDistance,Math.abs(e._startY-t.pageY)),e._maxSwipeHorizontalDistance=Math.max(e._maxSwipeHorizontalDistance,Math.abs(e._startX-t.pageX)),r=e.handleSwipeEvents(t)),r}touchEnd(t){return this.touchEndTime=new Date,this.handleUp(t)}pointerUp(t){return this.handleUp(t)}pointerCancel(t){this.pointerUp(t)}touchCancel(t){this.touchEnd(t)}mouseLeave(){this.isInBounds=!1}mouseMove(t){if(!this.isTouchMoved)return this.handleMove(t)}pointerMove(t){return this.handleMove(t)}touchMove(t){const e=this,r=t.touches,n=t.changedTouches,o=r&&r.length?r[0]:n&&n.length?n[0]:void 0;for(let r=0;r<e.inputEventProperties.length;r++){const n=e.inputEventProperties[r];void 0===t[n]&&(t[n]=o[n])}return e.isTouchMoved=!0,e.handleMove(t)}handleSwipeEvents(t){let e=!0;return(this.handlers.swipetop||this.handlers.swipebottom)&&(e=this.handleVerticalSwipeEvents(t)),!1===e||(this.handlers.swipeleft||this.handlers.swiperight)&&(e=this.handleHorizontalSwipeEvents(t)),e}handleVerticalSwipeEvents(t){let e,r;return e=t.pageY,r=e-this._startY,this.swiped(t,r,"vertical")}handleHorizontalSwipeEvents(t){let e,r;return e=t.pageX,r=e-this._startX,this.swiped(t,r,"horizontal")}swiped(t,e,r){const n=this;if(r=r||0,Math.abs(e)>=n.swipeMin&&!n._swipeEvent&&!n._swipeLocked){let o=e<0?"swipeleft":"swiperight";if("horizontal"===r?n._swipeEvent=n.createEvent(t,o):(o=e<0?"swipetop":"swipebottom",n._swipeEvent=n.createEvent(t,e<0?"swipetop":"swipebottom")),n[o]&&(n[o](this._swipeEvent),Math.abs(e)<=this.swipeMax))return t.stopImmediatePropagation(),!1}return!0}resetSwipe(){this._swipeEvent=null,clearTimeout(this._swipeTimeout)}initSwipe(t){const e=this;e._maxSwipeVerticalDistance=0,e._maxSwipeHorizontalDistance=0,e._startX=t.pageX,e._startY=t.pageY,e._swipeLocked=!1,e._swipeEvent=null,e._swipeTimeout=setTimeout((function(){e._swipeLocked=!0}),e.swipeDelay)}}class u{get scrollWidth(){const t=this;return t.horizontalScrollBar?t.horizontalScrollBar.max:-1}set scrollWidth(t){const e=this;t<0&&(t=0),e.horizontalScrollBar&&(e.horizontalScrollBar.max=t)}get scrollHeight(){const t=this;return t.verticalScrollBar?t.verticalScrollBar.max:-1}set scrollHeight(t){const e=this;t<0&&(t=0),e.verticalScrollBar&&(e.verticalScrollBar.max=t)}get scrollLeft(){const t=this;return t.horizontalScrollBar?t.horizontalScrollBar.value:-1}set scrollLeft(t){const e=this;t<0&&(t=0),e.horizontalScrollBar&&(e.horizontalScrollBar.value=t)}get scrollTop(){const t=this;return t.verticalScrollBar?t.verticalScrollBar.value:-1}set scrollTop(t){const e=this;t<0&&(t=0),e.verticalScrollBar&&(e.verticalScrollBar.value=t)}get vScrollBar(){return this.verticalScrollBar}get hScrollBar(){return this.horizontalScrollBar}constructor(t,e,r){this.container=t,this.horizontalScrollBar=e,this.verticalScrollBar=r,this.disableSwipeScroll=!1,this.listen()}listen(){const t=this,e=i.isMobile,r=t.horizontalScrollBar,n=t.verticalScrollBar;t.inputEvents=new h(t.container);let o,a,s,l,d,m,c,u;const p=function(t){return{amplitude:0,delta:0,initialValue:0,min:0,max:t.max,previousValue:0,pointerPosition:0,targetValue:0,scrollBar:t,value:0,velocity:0}},f=p(r),b=p(n),v=function(){const e=t.container.touchVelocityCoefficient||50;m=Date.now(),c=m-l,l=m;const r=function(t){t.delta=t.value-t.previousValue,t.previousValue=t.value;let r=e*t.delta/(1+c);t.velocity=.8*r+.2*t.velocity};r(b),r(f)},y=function(t){return u.value=t>u.max?u.max:t<u.min?u.min:t,u.scrollBar.value=u.value,t>u.max?"max":t<u.min?"min":"value"};function w(){let e,r;u.amplitude&&(t.container.$.fireEvent("kineticScroll"),e=Date.now()-l,r=-u.amplitude*Math.exp(-e/500),r>5||r<-5?(y(u.targetValue+r),cancelAnimationFrame(a),a=0,a=requestAnimationFrame(w)):y(u.targetValue))}let x;t.inputEvents.down((function(r){if(!e)return;const n=r.originalEvent.target,a=n&&n.closest?n.closest("smart-scroll-bar"):void 0;if(a===t.horizontalScrollBar||a===t.verticalScrollBar)return;s=!0,o=!1;const i=function(t,e){t.amplitude=0,t.pointerPosition=e,t.previousValue=t.value,t.value=t.scrollBar.value,t.initialValue=t.value,t.max=t.scrollBar.max};i(b,r.clientY),i(f,r.clientX),l=Date.now(),clearInterval(d),d=setInterval(v,500)})),t.inputEvents.up((function(){if(!s)return!0;if(clearInterval(d),t.disableSwipeScroll)return void(s=!1);const e=function(t){u=t,t.amplitude=.8*t.velocity,t.targetValue=Math.round(t.value+t.amplitude),l=Date.now(),cancelAnimationFrame(a),a=requestAnimationFrame(w),t.velocity=0};b.velocity>10||b.velocity<-10?e(b):(f.velocity>10||f.velocity<-10)&&e(f),s=!1})),t.inputEvents.move((function(e){if(!s)return!0;if(t.disableSwipeScroll)return;if(o&&(e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()),f.visible=t.scrollWidth>0,b.visible=t.scrollHeight>0,!s||!f.visible&&!b.visible)return;const r=t.container.touchScrollRatio,n=t.container;let a,i;r&&("number"==typeof r?(a=-r,i=-r):"function"==typeof r&&(a=r(b.max,n.offsetHeight),i=r(f.max,n.offsetWidth))),b.ratio=a||-b.max/n.offsetHeight,b.delta=(e.clientY-b.pointerPosition)*b.ratio,f.ratio=i||-f.max/n.offsetWidth,f.delta=(e.clientX-f.pointerPosition)*f.ratio;let l="value";const d=function(e,r,n){return e.delta>5||e.delta<-5?(u=e,l=e.initialValue+e.delta>u.max?"max":e.initialValue+e.delta<u.min?"min":"value","min"===l&&0===e.initialValue||("max"===l&&e.initialValue===e.max||(!e.visible||(t.container.$.fireEvent("kineticScroll"),y(e.initialValue+e.delta),v(),n.originalEvent.preventDefault(),n.originalEvent.stopPropagation(),o=!0,!1)))):null};let m=d(b,e.clientY,e);if(null!==m)return m;{let t=d(f,e.clientX,e);if(null!==t)return t}})),t.scrollTo=function(e,r){const n=!1===r?f:b;let o=!1;l||(l=Date.now()),x||(x=Date.now()),Math.abs(Date.now()-x)>375?l=Date.now():o=!0,x=Date.now(),n.value=n.scrollBar.value,n.delta=e-n.value,n.max=n.scrollBar.max,e<=n.min&&(e=n.min),e>=n.max&&(e=n.max),n.targetValue=e;const i=e;let s=n.value;n.velocity=100*n.delta/(1+n.max),n.from=s;const d=function(t){return n.value=t>n.max?n.max:t<n.min?n.min:t,n.scrollBar.value=n.value,t>n.max?"max":t<n.min?"min":"value"},m=function(){let r,c=Date.now()-x,h=Math.min(1e3,Date.now()-l),u=n.velocity*Math.exp(h/175);if(o)(u<0&&n.value<=e||u>0&&n.value>=e)&&(u=0),(n.value+u<=n.min||n.value+u>=n.max)&&(u=0),u>.5||u<-.5?(d(n.value+u),cancelAnimationFrame(a),a=0,a=requestAnimationFrame(m)):d(n.targetValue);else{if(c>=175)return cancelAnimationFrame(a),t.container.$.fireEvent("kineticScroll"),void(a=0);r=g.Animation.Easings.easeInSine(c,s,i-s,175),d(r),cancelAnimationFrame(a),a=0,a=requestAnimationFrame(m)}};cancelAnimationFrame(a),a=requestAnimationFrame(m)},t.inputEvents.listen()}unlisten(){const t=this;t.inputEvents&&t.inputEvents.unlisten(),delete t.inputEvents}}class p{constructor(t){this.events={},this.handlers={},this.element=t}hasClass(t){const e=this,r=t.split(" ");for(let t=0;t<r.length;t++){if(!e.element.classList.contains(r[t]))return!1}return!0}addClass(t){const e=this;if(e.hasClass(t))return;const r=t.split(" ");for(let t=0;t<r.length;t++)e.element.classList.add(r[t]);e.isNativeElement||l.observeElement(e.element)}removeClass(t){const e=this;if(0===arguments.length)return void e.element.removeAttribute("class");const r=t.split(" ");for(let t=0;t<r.length;t++)e.element.classList.remove(r[t]);""===e.element.className&&e.element.removeAttribute("class"),e.isNativeElement||l.observeElement(e.element)}get isCustomElement(){return!!this.element.tagName.startsWith(e)||(this.element instanceof window[e].BaseElement==!0||"DIV"!==this.element.tagName&&"SPAN"!==this.element.tagName&&"BUTTON"!==this.element.tagName&&"INPUT"!==this.element.tagName&&"UL"!==this.element.tagName&&"LI"!==this.element.tagName&&document.createElement(this.element.nodeName)instanceof window[e].BaseElement==!0)}get isNativeElement(){return!this.isCustomElement}dispatch(t){const e=this,r=e.events[t.type];let n=!1;if(r.length>1)for(let t=0;t<r.length;t++){const e=r[t];if(e.namespace&&e.namespace.indexOf("_")>=0){n=!0;break}}n&&r.sort((function(t,e){let r=t.namespace,n=e.namespace;return r=-1===r.indexOf("_")?0:parseInt(r.substring(r.indexOf("_")+1)),n=-1===n.indexOf("_")?0:parseInt(n.substring(n.indexOf("_")+1)),r<n?-1:r>n?1:0}));for(let n=0;n<r.length;n++){const o=r[n];if(t.namespace=o.namespace,t.context=o.context,t.defaultPrevented)break;const a=o.handler.apply(e.element,[t]);if(void 0!==a&&(t.result=a,!1===a)){t.preventDefault(),t.stopPropagation();break}}return t.result}fireEvent(t,e,r){const n=this;r||(r={bubbles:!0,cancelable:!0,composed:null!==n.element.getRootNode().host}),r.detail=e||{};const o=new CustomEvent(t,r);return o.originalStopPropagation=o.stopPropagation,o.stopPropagation=function(){return o.isPropagationStopped=!0,o.originalStopPropagation()},n.dispatchEvent(o),o}get isPassiveSupported(){const t=this;if(void 0!==t.supportsPassive)return t.supportsPassive;t.supportsPassive=!1;try{let e=Object.defineProperty({},"passive",{get:function(){t.supportsPassive=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(t){}return t.supportsPassive}dispatchEvent(t){const e=this,r=t.type,n=e.element.context,o=r.substring(0,1).toUpperCase()+r.substring(1);e.element.context=document,e.element["on"+o]?e.element["on"+o](t):e.element["on"+r.toLowerCase()]?e.element["on"+r.toLowerCase()](t):e.element.dispatchEvent(t),e.element.context=n}listen(t,e){const r=this,n=t.split("."),o=n.slice(1).join("."),a=n[0];r.events[a]||(r.events[a]=[]);const i={type:a,handler:e,context:r.element,namespace:o};c.indexOf(a)>=0&&(r.inputEvents||(r.inputEvents=new h(r.element)),r.inputEvents[a]((function(t){r.dispatchEvent(t)})),r.inputEvents.boundEventTypes.push(a),r.inputEvents.listen(a)),0===r.events[a].length&&(r.handlers[a]=r.dispatch.bind(r),"wheel"===a?r.element.addEventListener("wheel",r.handlers[a],!!r.isPassiveSupported&&{passive:!1}):"touchmove"===a||"touchstart"===a||"touchend"===a?r.element.addEventListener(a,r.handlers[a],!!r.isPassiveSupported&&{passive:!1}):r.element.addEventListener(a,r.handlers[a],!1)),r.events[a].push(i)}unlisten(t){const e=this,r=t.split("."),n=r.slice(1).join("."),o=r[0];let a=e.events[o];if(e.inputEvents&&e.inputEvents.boundEventTypes.indexOf(o)>=0&&(e.inputEvents.boundEventTypes.splice(e.inputEvents.boundEventTypes.indexOf(o),1),0===e.inputEvents.boundEventTypes.length&&e.inputEvents.unlisten(o)),a){for(let t=0;t<a.length;t++){if(""!==n){let t=a.findIndex(t=>t.namespace===n);a.splice(t,1);break}a=[]}0===a.length&&(e.element.removeEventListener(o,e.handlers[o]),e.events[o]=[],delete e.handlers[o])}}getAttributeValue(t,e){const r=this,n=r.element.getAttribute(t);if(r.isNativeElement)return r.deserialize(n,e);const o=r.element.propertyByAttributeName[t];return void 0===o.deserialize?r.deserialize(n,e,o.nullable):r.element[o.deserialize](n)}setAttributeValue(t,e,r){const n=this;let o,a=!1;if(n.isNativeElement){if(o=n.serialize(e,r),"boolean"===r){if(["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(t)>=0)return void(e?n.element.setAttribute(t,""):n.element.removeAttribute(t))}}else{const i=n.element.propertyByAttributeName[t];a=!i||i.nullable,o=i&&i.serialize?n.element[i.serialize](e):n.serialize(e,r,a)}"array"!==r&&"object"!==r||"[]"!==o&&"{}"!==o?void 0===o?(n.element.removeAttribute(t),n.element.shadowRoot&&n.element.$.root&&n.element.$.root.removeAttribute(t)):(n.element.setAttribute(t,o),n.element.shadowRoot&&n.element.$.root&&n.element.$.root.setAttribute(t,o)):n.element.removeAttribute(t)}serialize(t,e,r){if(void 0===e&&(e=g.Types.getType(t)),void 0===t||!r&&null===t)return;if(r&&null===t)return"null";if("string"===e)return t;if("boolean"===e||"bool"===e){if(!0===t||"true"===t||1===t||"1"===t)return"";if(!1===t||"false"===t||0===t||"0"===t)return}if("array"===e)return JSON.stringify(t);return["string","number","int","integer","float","date","any","function"].indexOf(e)>=0?t.toString():"object"===e?JSON.stringify(t):void 0}deserialize(t,e,r){const n="null"===t;if(void 0!==t&&(!n||r)){if(n&&r)return null;if("boolean"===e||"bool"===e)return null!==t;if("number"===e||"float"===e)return"NaN"===t?NaN:"Infinity"===t?1/0:"-Infinity"===t?-1/0:parseFloat(t);if("int"===e||"integer"===e)return"NaN"===t?NaN:"Infinity"===t?1/0:"-Infinity"===t?-1/0:parseInt(t);if("string"===e)return t;if("any"===e)return t;if("date"===e)return new Date(t);if("function"===e){if("function"==typeof window[t])return window[t]}else if("array"===e||"object"===e)try{const e=JSON.parse(t);if(e)return e}catch(r){if(window[t]&&"object"==typeof window[t])return window[t];if("array"===e&&t.indexOf("[")>=0){if(t.indexOf("{")>=0){let e=t.replace(/{/gi,"").replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim();e=e.split("},");for(let t=0;t<e.length;t++){let r={},n=e[t].trim().split(",");for(let t=0;t<n.length;t++){const e=n[t].split(":")[0].trim(),o=n[t].split(":")[1].trim();r[e]=o}e[t]=r}return e}return t.replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim().split(",")}}}}}class f{static get Ripple(){return o}static get Easings(){return a}}class g{static get Types(){return n}static get Core(){return i}static get Animation(){return f}static get Scroll(){return u}static get InputEvents(){return h}static Extend(t){return new p(t)}static Assign(t,e){if(t.indexOf(".")>=0){const r=t.split(".");return g[r[0]]||(g[r[0]]={}),void(g[r[0]][r[1]]=e)}g[t]=e}}const b=g.Extend(document);let v=null;document.addEventListener("click",()=>{l.start(),v&&clearTimeout(v),v=setTimeout(()=>{l.stop()},1e4)}),document.addEventListener("mouseenter",()=>{l.start()}),document.addEventListener("mouseleave",()=>{l.stop()});class y{}y.cache={};class w extends HTMLElement{static get properties(){return{animation:{value:"advanced",type:"string",allowedValues:["none","simple","advanced"]},unfocusable:{value:!1,type:"boolean"},disabled:{value:!1,type:"boolean"},dataContext:{value:null,reflectToAttribute:!1,type:"any"},debugMode:{value:!0,type:"boolean",reflectToAttribute:!1},locale:{value:"en",type:"string",reflectToAttribute:!1},localizeFormatFunction:{value:null,type:"any",reflectToAttribute:!1},messages:{value:{en:{propertyUnknownName:"Invalid property name: '{{name}}'!",propertyUnknownType:"'{{name}}' property is with undefined 'type' member!",propertyInvalidValue:"Invalid '{{name}}' property value! Actual value: '{{actualValue}}', Expected value: '{{value}}'!",propertyInvalidValueType:"Invalid '{{name}}' property value type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",methodInvalidValueType:"Invalid '{{name}}' method argument value type! Actual type: '{{actualType}}', Expected type: '{{type}}' for argument with index: '{{argumentIndex}}'!",methodInvalidArgumentsCount:"Invalid '{{name}}' method arguments count! Actual arguments count: '{{actualArgumentsCount}}', Expected at least: '{{argumentsCount}}' argument(s)!",methodInvalidReturnType:"Invalid '{{name}}' method return type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",elementNotInDOM:"Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.",moduleUndefined:"Module is undefined.",missingReference:"{{elementType}}: Missing reference to '{{files}}'.",htmlTemplateNotSuported:"{{elementType}}: Web Browser doesn't support HTMLTemplate elements.",invalidTemplate:"{{elementType}}: '{{property}}' property accepts a string that must match the id of an HTMLTemplate element from the DOM."}},reflectToAttribute:!1,inherit:!0,type:"object"},props:{value:null,reflectToAttribute:!1,isHierarchicalProperty:!0,type:"any"},readonly:{value:!1,type:"boolean"},renderMode:{value:"auto",type:"string",reflectToAttribute:!1,allowedValues:["auto","manual"]},rightToLeft:{value:!1,type:"boolean"},rethrowError:{value:!0,type:"boolean",reflectToAttribute:!1},theme:{value:window[e].Theme,type:"string"},visibility:{value:"visible",allowedValues:["visible","collapsed","hidden"],type:"string"},wait:{value:!1,type:"boolean"}}}getBindings(t,e){const r=this;let n=0,o={},a=(t=>{if(t instanceof HTMLElement)return r.parseAttributes(t);{let e=r.parseProperty(t.data?t.data.trim():null,"textContent",t);if(e)return r&&t.parentNode===r.$.content&&(e.value=""!==r.$.html?r.$.html:void 0,r.innerHTML=""),{textContent:e}}})(t);a&&(o.data=a),e||(o.mapping=[],e=o),t.getAttribute&&(o.nodeId=t.getAttribute("smart-id"),e&&a&&(e.mapping[o.nodeId]=a)),o.node=t,t.firstChild&&(o.children={});for(let a=t.firstChild;a;a=a.nextSibling)o.children[n++]=r.getBindings(a,e);return o}_addRemovePropertyBinding(t,e,r,n,o){if(!t||!e||!r)return;const a=this,i=a.bindings,s=r.getAttribute("smart-id"),l=t.indexOf("{{")>=0;let d=!1;(t=t.replace("{{","").replace("}}","").replace("[[","").replace("]]","")).indexOf("!")>=0&&(t=t.replace("!",""),d=!0);const m=a._properties[t],c={name:t,reflectToAttribute:m.reflectToAttribute,twoWay:l,type:m.type,not:d};if(o&&!n){const r={},n={name:t,targetPropertyName:e,reflectToAttribute:m.reflectToAttribute,twoWay:l,type:m.type,not:d};r[t]=n,i.mapping[s]=r}const h=function(t){for(let o in t){const i=t[o];if(i.nodeId===s){i.data||(i.data={}),n?(i.data[e]=null,delete i.data[e]):i.data[e]=c;break}if(i.children)h(i.children);else if(i.node&&i.node.children&&i.node===r.parentElement){const t=i.node;if(!t.firstChild)continue;i.children={};let e=0;for(let r=t.firstChild;r;r=r.nextSibling)i.children[e++]=a.getBindings(r);h(i.children)}}};h(i.children),n?delete a.boundProperties[t]:a.boundProperties[t]=!0,a.updateBoundNodes(t)}addPropertyBinding(t,e,r,n){this._addRemovePropertyBinding(t,e,r,!1,n)}removePropertyBinding(t,e,r,n){this._addRemovePropertyBinding(t,e,r,!0,n)}parseAttributes(t){const e=this;let r=void 0;for(let n=0;n<t.attributes.length;n++){const o=t.attributes[n],a=o.name,i=o.value;y.cache["toCamelCase"+a]||(y.cache["toCamelCase"+a]=g.Core.toCamelCase(a));const s=y.cache["toCamelCase"+a];if(a.indexOf("(")>=0){let n=a.substring(1,a.length-1);if(e&&!e.dataContext){e.templateListeners[t.getAttribute("smart-id")+"."+n]=i,t.removeAttribute(a);continue}{r||(r={});const t=i.substring(0,i.indexOf("("));r[s]={isEvent:!0,name:n,value:t};continue}}let l=e.parseProperty(i,a,t);l&&(r||(r={}),r[s]=l)}return r}parseProperty(t,e){if(!t||!t.length)return;const r=this;let n,o=t.length,a=0,i=0,s=0,l=!0;for(;i<o;){a=t.indexOf("{{",i);let e=t.indexOf("[[",i),r="}}";if(e>=0&&(a<0||e<a)&&(a=e,l=!1,r="]]"),s=a<0?-1:t.indexOf(r,a+2),s<0)return;n=n||{};let o=t.slice(a+2,s).trim();n.name=o,i=s+2}const d=n.name,m=r?r._properties[d]:null;if(n.twoWay=l,n.ready=!1,r&&(d.indexOf("::")>=0?r.boundProperties[d.substring(0,d.indexOf("::"))]=!0:r.boundProperties[d]=!0),m)n.type=m.type,n.reflectToAttribute=m.reflectToAttribute;else{["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(e)>=0?n.type="boolean":n.type="string",n.reflectToAttribute=!0}return n}updateTextNodes(){this.updateTextNode(this.shadowRoot||this,this.bindings,this)}updateTextNode(t,e,r){const n=this;if(!e)return;let o=0;for(let a=t.firstChild;a&&e.children;a=a.nextSibling)n.updateTextNode(a,e.children[o++],r);if(e&&e.data)for(let t in e.data){const n=e.data[t],o=n.name;"textContent"===t&&n.twoWay&&!n.updating&&void 0!==n.value&&(r[o]=n.value)}}updateBoundProperty(t,e){if(e.updating)return;const r=this;e.updating=!0,r[t]=e.value,e.updating=!1}updateBoundNodes(t){const e=this;if(e.updateBoundNode(e.shadowRoot||e,e.bindings,e,t),e.detachedChildren.length>0)for(let r=0;r<e.detachedChildren.length;r++){const n=e.detachedChildren[r],o=n.getAttribute("smart-id"),a=function(t){if(t.nodeId===o)return t;for(let e in t.children){const r=t.children[e];if((r.getAttribute?r.getAttribute("smart-id"):"")===o)return t;if(r.children){const t=a(r);if(t)return t}}return null},i=a(e.bindings);if(i)e.updateBoundNode(n,i,e,t,!0);else if(n.getAttribute&&e.bindings.mapping){const r=e,n=e.bindings;if(n)for(let o in n.mapping){const a=r.querySelector('[smart-id="'+o+'"]');if(a){const i=n.mapping[o];e.updateBoundData(a,i,r,t)}}}}}updateBoundMappedNodes(){const t=this,e=t.bindings,r=t;if(e.mapping)for(let n in e.mapping){let o=r.querySelector('[smart-id="'+n+'"]');if(r.shadowRoot&&(o=r.querySelector('[id="'+n+'"]'),o||(o=r.shadowRoot.querySelector('[id="'+n+'"]')||r.shadowRoot.querySelector('[smart-id="'+n+'"]'))),o){const a=e.mapping[n];t.updateBoundData(o,a,r)}else if(r.getAttribute("aria-controls")){let a=document.getElementById(r.getAttribute("aria-controls"));if(!a&&r.shadowRoot&&(a=r.shadowRoot.getElementById(r.getAttribute("aria-controls"))),o=a.querySelector('[smart-id="'+n+'"]'),o){const a=e.mapping[n];t.updateBoundData(o,a,r)}}}}updateBoundNode(t,e,r,n,o){const a=this;if(!e)return;let i=0;if(o){if(o&&!e.data)for(let s=t.firstChild;s&&e.children;s=s.nextSibling)if(s.getAttribute){const t=s.getAttribute("smart-id"),o=function(){for(let r in e.children)if(e.children[r].nodeId===t)return e.children[r]}();a.updateBoundNode(s,o,r,n),i++}else a.updateBoundNode(s,e.children[i++],r,n,o)}else for(let o=t.firstChild;o&&e.children;o=o.nextSibling)if(o.getAttribute){const t=o.getAttribute("smart-id"),s=function(){for(let r in e.children)if(e.children[r].nodeId===t)return e.children[r]}();a.updateBoundNode(o,s,r,n),i++}else a.updateBoundNode(o,e.children[i++],r,n);if(!e||!e.data)return;const s=e.data;a.updateBoundData(t,s,r,n)}updateBoundData(t,e,r,n){const o=this;for(let a in e){const i=e[a];let s=i.name;if(!i.updating&&(s.indexOf("::")>=0&&(s=s.substring(0,s.indexOf("::"))),void 0===n||n===s)){if(s.indexOf("(")>=0){let t=s.substring(s.indexOf("("));const e=s.substring(0,s.indexOf("("));if(t=t.substring(1,t.length-1),t=t.replace(/ /gi,""),t=t.split(","),t.length>0&&""!==t[0]){let n=[];for(let e=0;e<t.length;e++)n.push(r[t[e]]);i.value=r[e].apply(r,n)}else i.value=r[e]();i.type=typeof i.value}else i.value=r[s];if("innerHTML"===s){if(t[a].toString().trim()!==r[s].toString().trim()){if(window.smartBlazor&&t[a].indexOf("\x3c!--")>=0){(i.ready||r._properties[s].defaultValue!==i.value)&&(t[a]=i.value.toString());continue}(i.ready||r._properties[s].defaultValue!==i.value)&&(t[a]=i.value.toString().trim())}}else i.not?(t[a]=!i.value,i.targetPropertyName&&(t[i.targetPropertyName]=!i.value)):(t[a]=i.value,i.targetPropertyName&&(t[i.targetPropertyName]=i.value));if(t.$&&t.$.isNativeElement){y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const e=y.cache["toDash"+a],r=t.$.getAttributeValue(e,i.type);!i.reflectToAttribute||r===i.value&&i.ready||t.$.setAttributeValue(e,i.value,i.type),i.reflectToAttribute||t.$.setAttributeValue(e,null,i.type)}if(!i.ready){if(t.$&&t.$.isCustomElement){y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const e=y.cache["toDash"+a];t._properties||(t._beforeCreatedProperties=t._properties=t.propertyByAttributeName=[]),t._properties[a]||(t._properties[a]={attributeName:e},t._beforeCreatedProperties&&(t._beforeCreatedProperties[a]=t._properties[a]),t.propertyByAttributeName[e]=t._properties[a]);const r=t._properties[a];r.isUpdating=!0,i.reflectToAttribute&&(i.not?t.$.setAttributeValue(r.attributeName,!i.value,i.type):t.$.setAttributeValue(r.attributeName,i.value,i.type)),i.reflectToAttribute||t.$.setAttributeValue(r.attributeName,null,i.type),r.isUpdating=!1}if(i.twoWay){const e=function(e){if(i.value=e,t.$&&t.$.isNativeElement){y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const e=y.cache["toDash"+a],r=t.$.getAttributeValue(e,i.type);i.reflectToAttribute&&r!==i.value&&t.$.setAttributeValue(e,i.value,i.type),i.reflectToAttribute||t.$.setAttributeValue(e,null,i.type)}};if(i.name.indexOf("::")>=0){const r=i.name.indexOf("::"),n=i.name.substring(r+2);o["$"+t.getAttribute("smart-id")].listen(n,(function(){e(t[a]);const r=i.name.substring(0,i.name.indexOf("::"));o.updateBoundProperty(r,i)}))}if(t.$&&t.$.isCustomElement){t._properties[a]&&(t._properties[a].notify=!0),y.cache["toDash"+a]||(y.cache["toDash"+a]=g.Core.toDash(a));const r=y.cache["toDash"+a];o["$"+t.getAttribute("smart-id")].listen(r+"-changed",(function(t){let r=t.detail;e(r.value);const n=o.context;t.context!==document&&(o.context=o),o.updateBoundProperty(i.name,i),o.context=n}))}}}i.ready=!0}}}static clearCache(){this.cache={}}addMessages(t,e){Object.assign(this.messages[t],e)}localize(t,e){const r=this;if(!r.messages||!r.messages[r.locale])return;let n=r.messages[r.locale][t];if(""===n)return"";if(!n){const n=r.messages.en;if(n){let r=n[t];if(r){for(let t in e){let n=e[t];r=r.replace(new RegExp("{{"+t+"}}","g"),n)}return r}return t}}const o=n;for(let t in e){let r=e[t];n=n.replace(new RegExp("{{"+t+"}}","g"),r)}if(r.localizeFormatFunction){const a=r.localizeFormatFunction(o,n,e,t);if(void 0!==a)return a}return n}static get requires(){return{}}static get listeners(){return{"theme-changed":function(t){this.theme=t.detail.newValue}}}static get methods(){return{}}get classNamesMap(){return{animation:"smart-animate",rippleAnimation:"smart-ripple"}}get hasAnimation(){return"none"!==this.animation}get hasRippleAnimation(){return"none"!==this.animation&&"advanced"===this.animation}static get modules(){return window[e].Modules}get properties(){const t=this;return t._properties||(t._properties=[]),t._properties}get parents(){const t=this;let r=[],n=t.parentNode;for(;n&&9!==n.nodeType;)n instanceof HTMLElement==!0&&r.push(n),n=n.parentNode;const o=t.getRootNode();if(o.host){const t=t=>{let e=[t],r=t.parentNode;for(;r&&9!==r.nodeType;)r instanceof HTMLElement==!0&&e.push(r),r=r.parentNode;return e};r=r.concat(t(o.host))}return window[e].EnableShadowDOM&&t.isInShadowDOM&&t.shadowParent&&(r=r.concat(t.shadowParent.parents)),r}log(t){this._logger("log",t)}warn(t){this._logger("warn",t)}error(t){this._logger("error",t)}_logger(t,e){if(this.debugMode){const r=e instanceof Error?e.message:e.toString();console[t](r)}if(this.rethrowError&&"error"===t)throw e}get focused(){return this.contains(document.activeElement)}template(){return"<div></div>"}registered(){const t=this;t.onRegistered&&t.onRegistered()}created(){const t=this;t.isReady=!1,t._initElement(t),t._setModuleState("created"),t.onCreated&&t.onCreated()}completed(){const t=this;t.isCompleted=!0,t._onCompleted&&t._onCompleted(),t.onCompleted&&t.onCompleted()}whenReady(t){const e=this;e.isCompleted?t():(e.whenReadyCallbacks||(e.whenReadyCallbacks=[]),e.whenReadyCallbacks.push(t))}whenRendered(t){const e=this;e.isRendered?t():(e.whenRenderedCallbacks||(e.whenRenderedCallbacks=[]),e.whenRenderedCallbacks.push(t))}addThemeClass(){const t=this;""!==t.theme&&t.classList.add("smart-"+t.theme)}addDefaultClass(){this.classList.add(e.toLowerCase()+"-element"),this.classList.add(this.nodeName.toLowerCase())}_renderShadowRoot(){const t=this;if(t.shadowRoot){t.$.root.classList.add(t.nodeName.toLowerCase());for(let e=0;e<t.attributes.length;e++){const r=t.attributes[e];"class"===r.name||"id"===r.name||"style"===r.name||"tabindex"===r.name||r.name.indexOf("aria")>=0||t.$.root.setAttribute(r.name,r.value)}for(let e=0;e<t.classList.length;e++){const r=t.classList[e];"smart-element-init"!==r&&"smart-element"!==r&&"smart-hidden"!==r&&"smart-visibility-hidden"!==r&&t.$.root.classList.add(r)}}}render(){const t=this;if(!t.isRendered&&(t.isRendered=!0,t.isRendering=!1,t.context=document,t._renderShadowRoot(),t.whenRenderedCallbacks)){for(let e=0;e<t.whenRenderedCallbacks.length;e++)t.whenRenderedCallbacks[e]();t.whenRenderedCallbacks=[]}t.onRender&&t.onRender(),t.disabled&&t.setAttribute("aria-disabled",!0),t.readonly&&-1!==["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(t.getAttribute("role"))&&t.setAttribute("aria-readonly",!0)}ready(){const t=this;if(t._setId(),t.addThemeClass(),t.addDefaultClass(),"collapsed"===t.visibility?t.classList.add("smart-hidden"):"hidden"===t.visibility&&t.classList.add("smart-visibility-hidden"),t.dataContext&&t.applyDataContext(),t.onReady&&t.onReady(),t.shadowRoot&&Smart(t._selector)){if(Smart(t._selector).styleUrls){const e=Smart(t._selector).styleUrls;for(let r=0;r<e.length;r++)t.importStyle(e[r])}if(Smart(t._selector).styles){const e=document.createElement("style");e.innerHTML=Smart(t._selector).styles,t.shadowRoot.insertBefore(e,t.shadowRoot.firstChild)}}Smart(t._selector)&&Smart(t._selector).ready&&Smart(t._selector).ready()}_setId(){const t=this;if(!t.id){const e=t.elementName;t.id=e.slice(0,1).toLowerCase()+e.slice(1)+Math.floor(65536*(1+Math.random())).toString(16).substring(1)}}checkLicense(){const t=this;"Evaluation"===window[e].License&&-1===window.location.hostname.indexOf("htmlelements")&&(t.logWatermark(),t.logLicense(),window[e].License="")}logWatermark(){const t=document.createElement("a");t.href="https://www.htmlelements.com/",t.innerHTML="https://www.htmlelements.com/",t.style.position="absolute",t.style.right="5px",t.style.bottom="5px",t.style.color="#fff",t.style.padding="20px",t.style.borderRadius="5px",t.style.background="#0C3D78",t.style.cursor="pointer",t.style.zIndex="999999",t.style.display="block",t.style.fontSize="24px",t.style.textDecoration="none",t.style.fontWeight="bold",t.style.opacity=0,t.style.transition="opacity .35s ease-in-out",t.id="watermark",document.getElementById("watermark")||setTimeout(()=>{document.getElementById("watermark")||(document.body.appendChild(t),setTimeout(()=>{t.style.opacity=1}),setTimeout(()=>{t.style.opacity=0,setTimeout(()=>{t.parentNode.removeChild(t)},350)},6e3))},1e3)}logLicense(){console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("*jQWidgets License Key Not Found."),console.log("*This is an EVALUATION only Version, it is NOT Licensed for software projects intended for PRODUCTION."),console.log("*if you want to hide this message, please send an email to: sales@jqwidgets.com for a license."),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************")}get _selector(){const t=this;return t.id?"#"+t.id:t.classList.length>0?"."+t.classList[0]:""}applyDataContext(t){const e=this;let r="string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext;if(t&&(r=t,e.dataContext=t),r){if(!r._uid){r._uid=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),r._properties=[];for(let t in r){const n=r[t];"function"!=typeof n&&"_properties"!==t&&"_uid"!==t&&(r._properties[t]=n,Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:()=>r._properties[t],set(n){const o=r._properties[t];r._properties[t]=n;let a=[];a[t]={oldValue:o,value:n},a.length++,e.updatingDataContext=!0,b.fireEvent("dataContextPropertyChanged",{dataContext:r,properties:a},{bubbles:!1,cancelable:!0}),e.updatingDataContext=!1}}))}}if(e.dataContextProperties=e.parseAttributes(e),e.dataContextPropertiesMap={},e.dataContextListeners={},e.dataContextProperties){e.updatingDataContext=!0;for(let t in e.dataContextProperties){const n=e.dataContextProperties[t],o=n.name;if(n.propertyName=t,e.dataContextPropertiesMap[o]=t,y.cache["toDash"+t]||(y.cache["toDash"+t]=g.Core.toDash(o)),n.isEvent){const t=n.value;e.dataContextListeners[o]&&e.removeEventListener(o,e.dataContextListeners[o]),e.dataContextListeners[o]=function(e){r[t](e)},e.addEventListener(o,e.dataContextListeners[o])}if(o.indexOf(".")>=0){const n=o.split(".");let a=r[n[0]];for(let t=1;t<n.length;t++)a=a[n[t]];void 0!==a&&(e[t]=a)}else e[t]=r[o]}e.dataContextPropertyChangedHandler=function(t){const r=t.detail.properties;if(t.detail.dataContext===("string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext))for(let t in r){const n=e.dataContextPropertiesMap[t],o=e.context;n&&(e.context=document,e[n]=r[t].value,e.context=o)}},b.listen("dataContextPropertyChanged",e.dataContextPropertyChangedHandler),e.updatingDataContext=!1}else e.dataContextProperties=null}else{e.dataContextProperties=null;const t=function(){("string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext)&&(e.applyDataContext(),window.removeEventListener("load",t))};window.addEventListener("load",t)}}updateDataContextProperty(t){const e=this,r="string"==typeof e.dataContext?window[e.dataContext]||document[e.dataContext]:e.dataContext,n=e.dataContextProperties[t];if(!e.updatingDataContext&&n.twoWay){const o=n.name;if(o.indexOf(".")>=0){const n=o.split(".");let a=r[n[0]];for(let t=1;t<n.length;t++)a=a[n[t]];void 0!==a&&(a=e[t],d[r._uid]&&(d[r._uid][t]=a))}else r[o]=e[t],d[r._uid]&&(d[r._uid][t]=r[o])}}static get version(){return window[e].Version}initProperties(){const t=this;if(Smart(t._selector)&&Smart(t._selector).properties&&(t._initProperties=Smart(t._selector).properties),t.hasAttribute("props")&&!t.props?t._initProperties=window[t.getAttribute("props")]:t.props&&(t._initProperties=t.props),t._initProperties){const e=Object.keys(t._initProperties);for(let r=0;r<e.length;r++){const n=e[r],o=t._initProperties[n];if(void 0!==o){if(o.constructor===Smart.ObservableArray||o instanceof Smart.ObservableArray){t[n]=o.toArray();continue}if(o.constructor===Smart.DataAdapter||"smartDataAdapter"===o.constructor.name||"object"==typeof o&&Smart.DataAdapter&&o instanceof Smart.DataAdapter||o instanceof Smart.Observable||o.constructor===Smart.Observable||"object"!=typeof o||g.Types.isArray(o)||o instanceof Date){if(void 0===t[n]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(n)){const e=t.localize("propertyUnknownName",{name:n});t.log(e)}t[n]=o;continue}}if("messages"!==n)if("dataSourceMap"!==n&&"rowCSSRules"!==n){if(o&&"object"==typeof o){const e=function(r,n){const o=Object.keys(r);for(let a=0;a<o.length;a++){const i=o[a],s=r[i],l=t._properties[n+"_"+i];if(l&&null===l.value){if(void 0===t[n+"_"+i]){const e=t.localize("propertyUnknownName",{name:n+"_"+i});t.log(e)}t[n+"_"+i]=s}else if("object"==typeof s&&!g.Types.isArray(s)&&s&&s.constructor!==Date)e(s,n+"_"+i);else{if(void 0===t[n+"_"+i]){const e=t.localize("propertyUnknownName",{name:n+"_"+i});t.log(e)}t[n+"_"+i]=s}}};e(o,n)}}else t[n]=o;else t[n]=Object.assign(t[n],o)}}}setProperties(t){const e=this,r=Object.keys(t);for(let n=0;n<r.length;n++){const o=r[n],a=t[o];if(a.constructor===Smart.ObservableArray||a instanceof Smart.ObservableArray)e[o]=a.toArray();else if(a.constructor===Smart.DataAdapter||"smartDataAdapter"===a.constructor.name||"object"==typeof a&&Smart.DataAdapter&&a instanceof Smart.DataAdapter||a instanceof Smart.Observable||a.constructor===Smart.Observable||"object"!=typeof a||g.Types.isArray(a)||a instanceof Date){if(void 0===e[o]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(o))continue;const t=e._properties[o];"int"===t.type||"number"===t.type&&"string"==typeof subPropertyValue?"int"===t.type?e[o]=parseInt(a):e[o]=parseFloat(a):e[o]=a}else if("messages"!==o&&"dataSourceMap"!==o){if("object"==typeof a){const t=function(r,n){const o=Object.keys(r);for(let a=0;a<o.length;a++){const i=o[a],s=r[i],l=e._properties[n+"_"+i];if(l&&null===l.value){if(void 0===e[n+"_"+i])continue;const t=e._properties[n+"_"+i];"int"===t.type||"number"===t.type&&"string"==typeof s?"int"===t.type?e[n+"_"+i]=parseInt(s):e[n+"_"+i]=parseFloat(s):e[n+"_"+i]=s}else if("object"==typeof s&&!g.Types.isArray(s)&&s&&s.constructor!==Date)t(s,n+"_"+i);else{if(void 0===e[n+"_"+i])continue;const t=e._properties[n+"_"+i];"int"===t.type||"number"===t.type&&"string"==typeof s?"int"===t.type?e[n+"_"+i]=parseInt(s):e[n+"_"+i]=parseFloat(s):e[n+"_"+i]=s}}};t(a,o)}}else e[o]=a}}setup(){const t=this;if(t.context=this,t.isReady&&!t.isCompleted)return;if(t.isReady)return t._setModuleState("attached"),t.isAttached=!0,t.attached(),t._handleListeners("listen"),void(t.context=document);t.ownerElement&&t.ownerElement.detachedChildren.indexOf(t)>=0&&t.ownerElement.detachedChildren.splice(t.ownerElement.detachedChildren.indexOf(t),1),t.isReady=!0,t.methods=t.getStaticMember("methods"),t.initProperties(),i.isMobile&&t.classList.add("smart-mobile");for(let e=0;e<t.attributes.length;e+=1){const r=t.propertyByAttributeName[t.attributes[e].name];if(!r)continue;let n=t.$.getAttributeValue(r.attributeName,r.type);const o=n?n.toString():"";if(!(o.indexOf("{{")>=0||o.indexOf("[[")>=0)&&(("object"===r.type||"array"===r.type||!(t.attributes[e].value.indexOf("{{")>=0||t.attributes[e].value.indexOf("[[")>=0))&&void 0!==n&&r.value!==n)){const o=g.Types.getType(n),a=t.attributes[e].value;if(("any"===r.type||"object"===r.type)&&""+t[r.name]===n)continue;if("array"===r.type&&t[r.name]&&JSON.stringify(t[r.name])===n)continue;if("number"===o&&isNaN(n)&&"NaN"!==a&&"Infinity"!==a&&"-Infinity"!==a){const e=t.localize("propertyInvalidValueType",{name:r.name,actualType:"string",type:r.type});t.log(e)}r.isUpdatingFromAttribute=!0,t[r.name]=n,r.isUpdatingFromAttribute=!1}}for(let e in t._properties){const r=t._properties[e];if("innerHTML"===e&&r.value===r.defaultValue&&(r.value=r.defaultValue=g.Core.html(t)),"boolean"!==r.type&&"bool"!==r.type||"false"===t.getAttribute(r.attributeName)&&(r.isUpdating=!0,t.setAttribute(r.attributeName,""),r.isUpdating=!1),r.defaultReflectToAttribute&&r.reflectToAttribute){if(r.defaultReflectToAttribute&&r.defaultReflectToAttributeConditions){let e=!0;for(let n=0;n<r.defaultReflectToAttributeConditions.length;n++){const o=r.defaultReflectToAttributeConditions[n];let a,i;for(let t in o)a=t,i=o[t];t._properties[a]&&t._properties[a].value!==i&&(e=!1)}if(!e)continue}r.isUpdating=!0,t.$.setAttributeValue(r.attributeName,r.value,r.type),r.isUpdating=!1}}const r=[];if(t.children.length>0)for(let e=0;e<t.children.length;e++){const n=t.children[e];g.Extend(n).isCustomElement&&r.push(n)}t.applyTemplate(),t.complete=function(){if(!t.templateBindingsReady){const e=t=>{t.templateBindingsReady||(t.templateBindingsReady=!0,t.updateTextNodes(),t.updateBoundNodes())};if(t.ownerElement){let r=t.ownerElement,n=[];for(;r;)n.push(r),r=r.ownerElement;for(let t=n.length-1;t>=0;t--)e(n[t]);e(t)}else e(t)}const e=()=>{if(t._setModuleState("ready"),t.ready(),"auto"!==t.renderMode||t.isRendered||t.render(),t.isAttached=!0,t._setModuleState("attached"),t.attached(),t._handleListeners("listen"),t.isHidden||0!==t.offsetWidth&&0!==t.offsetHeight||(t.isHidden=!0),t.completed(),t.isRendered&&(t.context=document),t.whenReadyCallbacks){for(let e=0;e<t.whenReadyCallbacks.length;e++)t.whenReadyCallbacks[e]();t.whenReadyCallbacks=[]}};if(t.wait)t.classList.add("smart-visibility-hidden");else if(t.classList.contains("smart-async"))requestAnimationFrame(()=>{e()});else{const r=t.shadowParent;t.shadowParent=null;const n=t.parents;if(t.shadowParent=r,0===n.length)return;const o=()=>{let e=t.ownerElement,r=[];for(;e;)r.push(e),e=e.ownerElement;for(let t=r.length-1;t>=0;t--)r[t].updateBoundMappedNodes()};t.ownerElement&&"HTML"!==n[n.length-1].nodeName?t.getRootNode().host?e():t.ownerElement&&"HTML"===t.ownerElement.parents[t.ownerElement.parents.length-1].nodeName?(o(),e()):t.checkIsInDomInterval=setInterval(()=>{const r=t.parents;"HTML"===r[r.length-1].nodeName&&(clearInterval(t.checkIsInDomInterval),o(),e())},100):e()}};let n=[].slice.call(t.querySelectorAll("[smart-id]")).concat(r);if(window[e].EnableShadowDOM&&!0!==t.isInShadowDOM&&(n=[].slice.call(t.shadowRoot.querySelectorAll("[smart-id]")).concat(r)),0===n.length)t.complete();else{t._completeListeners=0;for(let e=0;e<n.length;e++){const r=n[e];if(g.Extend(r).isCustomElement){const e=function(){t._completeListeners--,0===t._completeListeners&&(t.complete(),delete t._completeListeners)}.bind(t);r.isCompleted||r.isUtilityElement||!0===r.wait||(t._completeListeners++,r._onCompleted||(r.completeHandlers=[],r._onCompleted=function(){for(let t=0;t<r.completeHandlers.length;t++)r.completeHandlers[t]()}),r.completeHandlers.push(e))}}0===t._completeListeners&&t.complete()}}visibilityChangedHandler(){const t=this;t.isReady&&requestAnimationFrame(()=>{0===t.offsetWidth||0===t.offsetHeight?t.isHidden=!0:(t.isHidden=!1,t.$.fireEvent("resize",t,{bubbles:!1,cancelable:!0}))})}attributeChangedCallback(t,e,r){const n=this,o=n.propertyByAttributeName[t];if("class"!==t&&"style"!==t||n.visibilityChangedHandler(),o||n.attributeChanged(t,e,r),n.onAttributeChanged&&n.onAttributeChanged(t,e,r),!o||o&&o.isUpdating)return;let a=n.$.getAttributeValue(o.attributeName,o.type);void 0!==r&&n[o.name]!==a&&(o.isUpdatingFromAttribute=!0,n[o.name]=void 0!==a?a:n._properties[o.name].defaultValue,o.isUpdatingFromAttribute=!1)}attributeChanged(t,e,r){}set hasStyleObserver(t){const e=this;void 0===e._hasStyleObserver&&(e._hasStyleObserver=t),t?l.watch(e):l.unwatch(e)}get hasStyleObserver(){const t=this;return void 0===t._hasStyleObserver||t._hasStyleObserver}attached(){const t=this;t.hasStyleObserver&&l.watch(t),t.onAttached&&t.onAttached(),Smart(t._selector)&&Smart(t._selector).attached&&Smart(t._selector).attached()}detached(){const t=this;t.hasStyleObserver&&l.unwatch(t),t._setModuleState("detached"),t.isAttached=!1,t.ownerElement&&-1===t.ownerElement.detachedChildren.indexOf(t)&&t.ownerElement.detachedChildren.push(t),t._handleListeners("unlisten"),t.onDetached&&t.onDetached(),Smart(t._selector)&&Smart(t._selector).detached&&Smart(t._selector).detached(),m&&m[t._selector]&&delete m[t._selector]}propertyChangedHandler(t,e,r){const n=this;e!==r&&("theme"===t&&(""!==e&&n.classList.remove("smart-"+e),""!==r&&n.classList.add("smart-"+r)),"visibility"===t?("collapsed"===e?n.classList.remove("smart-hidden"):"hidden"===e&&n.classList.remove("smart-visibility-hidden"),"collapsed"===r?n.classList.add("smart-hidden"):"hidden"===r&&n.classList.add("smart-visibility-hidden")):("disabled"===t||"readonly"===t)&&n._ariaPropertyChangedHandler(t,r),n.propertyChanged&&n.propertyChanged(t,e,r))}_ariaPropertyChangedHandler(t,e){const r=this;"readonly"===t&&-1===["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(r.getAttribute("role"))||(e?r.setAttribute("aria-"+t,!0):r.removeAttribute("aria-"+t))}_handleListeners(t){const e=this,r=e.tagName.toLowerCase(),n=n=>{for(let o in n){const a=o.split(".");let i=a[0],s=e.$;if(a[1])if(i=a[1],s=e["$"+a[0]],"document"===a[0]){let t=e.smartId;""===t&&(t=g.Core.toCamelCase(r)),i=i+"."+t}else e.smartId&&(i=i+"."+e.smartId+"_"+e.parents.length);else e.smartId&&(i=i+"."+e.smartId);const l=n[o],d=function(t){const r=e.context;e.context=e,e[l]&&e[l].apply(e,[t]),e.context=r};s&&s[t](i,d)}};n(e.getStaticMember("listeners")),n(e.templateListeners),Smart(e._selector)&&Smart(e._selector).properties&&n(Smart(e._selector).listeners)}parseTemplate(){const e=this,n=e.template(),o=document.createDocumentFragment();if(t[e.nodeName]&&!r)return t[e.nodeName].cloneNode(!0);if(""===n)return null;let a=document.createElement("div");o.appendChild(a),a.innerHTML=n;let i=a.childNodes;a.parentNode.removeChild(a);for(let t=0;t<i.length;t++)o.appendChild(i[t]);return t[e.nodeName]=o,r?o:o.cloneNode(!0)}applyTemplate(){const t=this,e=t.parseTemplate();if(!e)return;if(!e.hasChildNodes)return;const r=e.childNodes[0],n=(e,r)=>{t["$"+e]=r.$=g.Extend(r),t.$[e]=r,r.ownerElement=t};let o=r;if(r.getElementsByTagName("content").length>0){let t=r.getElementsByTagName("content")[0];o=t.parentNode,o.removeChild(t)}else{const t=e.querySelectorAll("[inner-h-t-m-l]");t&&t.length>0&&(o=t[0])}t.$.template="template"===r.nodeName.toLowerCase()?r:r.querySelector("template");let a=e.querySelectorAll("[id]");0===a.length&&(a=e.querySelectorAll("*")),n("root",r),n("content",o),t.$.html=t.innerHTML.toString().trim();for(let e=0;e<a.length;e+=1){let r=a[e];""===r.id&&(r.id="child"+e),n(r.id,r),r.setAttribute("smart-id",r.id),t.shadowRoot?r.shadowParent=t:r.removeAttribute("id")}for(!1!==t.hasTemplateBindings?t.bindings=t.getBindings(e):t.bindings=[],t.$root.addClass("smart-container");t.childNodes.length;)o.appendChild(t.firstChild);if(t.appendTemplate(e),t.$.template){const e=document.createElement("div");e.classList.add("smart-template-container"),t.$.templateContainer=e,t.$.template.parentNode.insertBefore(e,t.$.template),t.refreshTemplate()}}refreshTemplate(){const t=this;if(!t.$.templateContainer)return;t.templateDetached(t.$.templateContainer);const e=t.$.template.content.cloneNode(!0);t.templateBindings=t.getBindings(e),t.templateProperties=[];let r=document.createDocumentFragment();const n=function(e,r,o){for(let a in e){const i=e[a],s=i.node.cloneNode();r.appendChild(s);let l=[],d=!1;if(i.data)for(let e in i.data){const n=i.data[e],a=n.name;if(t.templateProperties[a]=!0,s.removeAttribute(g.Core.toDash(e)),"*items"===e)l=t[a],d=!0;else if(a.indexOf("item.")>=0&&void 0!==o)n.value=o[a.substring("item.".length)],s[e]=n.value;else if(a.indexOf("item")>=0&&void 0!==o)n.value=o,s[e]=n.value;else if("*if"===e)if(a.indexOf("(")>=0){let e,n=a.substring(a.indexOf("("));const o=a.substring(0,a.indexOf("("));if(n=n.substring(1,n.length-1),n=n.replace(/ /gi,""),n=n.split(","),n.length>0&&""!==n[0]){let r=[];for(let e=0;e<n.length;e++)r.push(t[n[e]]);e=t[o].apply(t,r)}else e=t[o]();!1===e&&r.removeChild(s)}else t[a]||r.removeChild(s);else t.updateBoundNode(s,i,t,a)}if(l.length>0||d){for(let t=0;t<l.length;t++)i.children&&n(i.children,s,l[t]);if("number"==typeof l)for(let t=0;t<l;t++)i.children&&n(i.children,s,t)}else i.children&&n(i.children,s,o)}};n(t.templateBindings.children,r),t.$.templateContainer.innerHTML="",t.$.templateContainer.appendChild(r),t.templateAttached(t.$.templateContainer)}templateAttached(){}templateDetached(){}appendTemplate(t){this.appendChild(t)}defineElementModules(){const t=this,e=t.constructor.prototype;if("BaseElement"===e.elementName){e.modules=t.constructor.modules;const r=e.modules;for(let e=0;e<r.length;e+=1)t.addModule(r[e])}else{const r=e.modules;if(!r)return;for(let e=0;e<r.length;e+=1){const n=r[e],o=n.prototype;t.defineElementMethods(o.methodNames,o),t.defineElementProperties(n.properties)}}}watch(t,e){const r=this;r._watch=null!==t&&null!==e?{properties:t,propertyChangedCallback:e}:null}unwatch(){this._watch=null}set(t,e,r){const n=this,o=n.context;n.context=!0===r?document:n,n[t]=e,n.context=o}get(t){return this[t]}_setModuleState(t,e){const r=this,n="is"+t.substring(0,1).toUpperCase()+t.substring(1),o="on"+t.substring(0,1).toUpperCase()+t.substring(1);for(let a=0;a<r.modulesList.length;a++){const i=r.modulesList[a];i[n]=!0,i[t]&&i[t](e),i[o]&&i[o](e)}}addModule(t,e){const r=this;if(!t)return;const n=r.modules.slice(0),o=t.prototype,a=Object.getPrototypeOf(t);if(a.name&&a.name!==t.name&&r.addModule(a),!t.moduleName&&t.name&&(t.moduleName=t.name),-1===n.findIndex(e=>t.moduleName===e.moduleName)&&n.push(t),r.defineModule(t),r.defineElementMethods(o.methodNames,o),r.defineElementProperties(t.properties),r.constructor.prototype.modules=n,e)for(let e in Smart.Elements.tagNames){const n=Smart.Elements.tagNames[e];let o=Object.getPrototypeOf(n),a=[];for(;o!==HTMLElement;)a.push(o.prototype),o=Object.getPrototypeOf(o);a.indexOf(r)>=0&&n!==r&&n.prototype.addModule(t)}}defineModule(t){if(t.isDefined)return;t.prototype._initModule=function(t){this.ownerElement=t};const e=t.properties||{},r=Object.keys(e),n=Object.getOwnPropertyNames(t.prototype);t.prototype.methodNames=n;for(let n=0;n<r.length;n+=1){const o=r[n],a=e[o];Object.defineProperty(t.prototype,o,{configurable:!1,enumerable:!0,get(){return this.ownerElement?this.ownerElement[o]:a.value},set(t){this.ownerElement[o]=t}})}t.isDefined=!0}getStaticMember(t,r){const n=window[e][this.elementName],o=n[t];r||(r="");let a="array"===r?[]:"string"===r?"":{},i=Object.getPrototypeOf(n),s=[];for(;i[t];)s.push(i[t]),i=Object.getPrototypeOf(i);for(let t=s.length-1;t>=0;t--)if("array"===r)for(let e=0;e<s[t].length;e++)-1===a.indexOf(s[t][e])&&a.push(s[t][e]);else"string"===r?-1===a.indexOf(s[t])&&(a+=s[t]):a=g.Core.assign(a,s[t]);if("array"===r){for(let t=0;t<o.length;t++)-1===a.indexOf(o[t])&&a.push(o[t]);return a}return"string"===r?(-1===a.indexOf(o)&&(a+=o),a):g.Core.assign(a,o)}defineElementHierarchicalProperties(t,e){const r=this,n=[];!function(t){const r=Object.keys(t);for(let o=0;o<r.length;o++){const a=r[o];if("messages"===a)continue;const i=t[a],s=Object.keys(i),l=s.indexOf("value")>=0&&s.indexOf("type")>=0&&"object"==typeof i.value;if("propertyObject"===i.type||l){const t=function(r,o){if(!r.value)return;const a=Object.keys(r.value);for(let i=0;i<a.length;i++){const s=a[i],l=r.value[s],d=o+"_"+s;if("object"!=typeof l||null===l)break;const m=Object.keys(l);if(!(m.indexOf("value")>=0&&m.indexOf("type")>=0))break;if("array"!==r.type&&(r.isHierarchicalProperty=!0),l.parentPropertyName=o,e){const t=e._properties[d];if(r.value.hasOwnProperty(s)){if(t.isDefined)continue;delete r.value[s]}t.isDefined=!0,Object.defineProperty(r.value,s,{configurable:!1,enumerable:!0,get:()=>e._properties[d].value,set(t){e.updateProperty(e,e._properties[d],t)}})}n[d]||(n[d]=l,n.length++),("propertyObject"===l.type||"object"==typeof l.value&&"array"!==l.type)&&t(e?e._properties[d]:l,d)}};t(i,a)}}}(t),n.length>0&&!e&&r.defineElementProperties(n)}defineElement(){const t=this.constructor.prototype,e=this.getStaticMember("properties"),r=Object.getOwnPropertyNames(t);t.extendedProperties={},t.boundProperties={},t.templateListeners={},this.defineElementModules(),this.defineElementMethods(r,t),this.defineElementProperties(e),this.defineElementHierarchicalProperties(this.extendedProperties),t._initElement=function(){const e=this,r=t.extendedProperties,n=Object.keys(r),o=e.modules;e.$=g.Extend(e),e.$document=b,e.smartId=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),e.isCreated||(e.modulesList=[],e._properties=[],e._beforeCreatedProperties&&(e._properties=e._beforeCreatedProperties,delete e._beforeCreatedProperties),e.detachedChildren=[],e.propertyByAttributeName=[]);for(let t=0;t<o.length;t+=1){let r=new(0,o[t]);r._initModule(e),e.modulesList.push(r)}for(let t=0;t<n.length;t+=1){const o=n[t],a=r[o];let i=a.value;if(e._properties[o]){if(void 0!==e._properties[o].notify)continue;delete e._properties[o]}if(C&&"innerHTML"===o&&delete e[o],-1===window.navigator.userAgent.indexOf("PhantomJS")&&e.hasOwnProperty(o)&&(i=e[o],delete e[o]),"array"===a.type&&null!=i&&(i=i.slice(0)),"object"===a.type&&null!=i&&(i=Array.isArray(i)?i.slice(0):Object.assign({},i)),e._properties[o]={name:o,notify:a.notify,allowedValues:a.allowedValues,type:a.type,nullable:a.nullable,reflectToAttribute:a.reflectToAttribute,defaultReflectToAttribute:a.defaultReflectToAttribute,defaultReflectToAttributeConditions:a.defaultReflectToAttributeConditions,value:i,readOnly:a.readOnly,defaultValue:i,attributeName:a.attributeName,observer:a.observer,inherit:a.inherit,extend:a.extend,validator:a.validator},e.propertyByAttributeName[a.attributeName]=e._properties[o],!a.hasOwnProperty("type")){const t=e.localize("propertyUnknownType",{name:o});e.log(t)}if("any"===a.type||"propertyObject"===a.type)continue;const s=g.Types.getType(i);if(null!=i&&a.type!==s&&!a.validator){if("object"===a.type&&"array"===s)continue;if("number"===s){if(["integer","int","float"].findIndex(t=>t===a.type)>=0)continue}const t=e.localize("propertyInvalidValueType",{name:o,actualType:s,type:a.type});e.log(t)}}e.defineElementHierarchicalProperties(e._properties,e),e.isCreated=!0},t.registered()}defineElementMethods(t,e){const r=this.constructor.prototype,n=function(t,e){const r=Array.prototype.slice.call(arguments,2),n=function(){if(!this.isReady&&"localize"!==e&&"localize"!==e&&"cloneNode"!==e&&"importStyle"!==e&&"log"!==e&&"parseAttributes"!==e){const t=this.localize("elementNotInDOM");this.log(t)}let n=this;for(let t=0;t<this.modulesList.length;t++){let r=this.modulesList[t];if(e in r){n=r;break}}const o=this.context,a=r.concat(Array.prototype.slice.call(arguments));let i=null;const s=function(t,e){return t===e||("number"===t&&("int"===e||"integer"===e||"float"===e)||("bool"===t&&"boolean"===e||"boolean"===t&&"bool"===e||("object"===t&&"any"===e||void 0)))};if(this.methods){const t=this.methods[e];if(t){const r=t.split(":");i=r[r.length-1].trim();const n=[],o=t.substring(1+t.indexOf("("),t.lastIndexOf(")")).split(",");let l="";for(let t=0;t<o.length;t++){const e=o[t];l+=e,e.indexOf(":")>=0?(n.push(l),l=""):l+=","}let d=n.length;for(let t=0;t<n.length;t++){const r=n[t].trim().split(":"),o=r[0].split("=")[0].trim().indexOf("?")>=0,i=r[1].indexOf("?")>=0,l=r[1].replace(/\?/gi,"").trim(),m=l.split("|");let c=r[0].split("=")[1];const h=g.Types.getType(a[t]);if(void 0===a[t]&&c){switch(c=c.trim(),l[0]){case"date":{let t=c.substring(c.indexOf("(")+1,c.lastIndexOf(")"));t=t.length>0?t.split(",").map(t=>parseInt(t)):[],c=0===t.length?new Date:new Date(t[0],t[1],t[2]);break}case"bool":case"boolean":c="true"===c||"1"===c;break;case"int":case"integer":c=parseInt(c);break;case"float":case"number":c=parseFloat(c);break;case"any":case"object":c=c.indexOf("{")>=0?JSON.parse(c):c}a.push(c)}else o&&d--;if(l!==h&&h){let r=!0;for(let t=0;t<m.length;t++)if(s(h,m[t])){r=!1;break}if(r&&(null!==a[t]||!i)){const r=this.localize("methodInvalidValueType",{name:e,actualType:h,type:l,argumentIndex:t});this.log(r)}}if(a.length<d){const t=this.localize("methodInvalidArgumentsCount",{name:e,actualArgumentsCount:a.length,argumentsCount:d});this.log(t)}}}}this.context=this;const l=t.apply(n,a);if(i){const t=void 0===g.Types.getType(l)?"void":g.Types.getType(l);if(!s(t,i)){const r=this.localize("methodInvalidReturnType",{name:e,actualType:t,type:i});this.log(r)}}return this.context=o,l};return n},o=["constructor","ready","created","render","attached","detached","appendChild","insertBefore","removeChild","connect","disconnectedCallback","connectedCallback","attributeChangedCallback","propertyChangedHandler","enableShadowDOM","isInShadowDOM","addPropertyBindings"];for(let a in t){let i=t[a];i&&i.startsWith&&i.startsWith("_")||void 0!==o.find(t=>t===i)||(r.extendedProperties[i]||g.Types.isFunction(e[i])&&(r[i]=n(e[i],i)))}}defineElementProperties(t){if(!t)return;const e=this.constructor.prototype,r=Object.keys(t),n=this.getStaticMember("properties");Object.assign(e.extendedProperties,t),this.updateProperty=function(t,e,r){const n=t;if(!e||e.readOnly)return;if(e.allowedValues){let t=!1;for(let n=0;n<e.allowedValues.length;n++)if(e.allowedValues[n]===r){t=!0;break}if(!t){const t=JSON.stringify(e.allowedValues).replace(/\[|\]/gi,"").replace(",",", ").replace(/"/gi,"'"),o="'"+r+"'",a=n.localize("propertyInvalidValue",{name:e.name,actualValue:o,value:t});return void n.log(a)}}const o=e.name,a=n._properties[o].value;if(e.validator&&n[e.validator]){const t=n.context;n.context=n;const o=n[e.validator](a,r);void 0!==o&&(r=o),n.context=t}if(a!==r){if(n.propertyChanging){const t=n.propertyChanging(o,a,r);if(!1===t||null===t)return}if(!e.hasOwnProperty("type")){const t=n.localize("propertyUnknownType",{name:o});n.log(t)}if("array"!==e.type||JSON.stringify(a)!==JSON.stringify(r)){if(null!=r&&"any"!==e.type&&"propertyObject"!==e.type&&e.type!==g.Types.getType(r)&&!e.validator||null===r&&!e.nullable){let t=!0;if("object"===e.type&&"array"===g.Types.getType(r)&&(t=!1),"number"===g.Types.getType(r)){["integer","int","float"].findIndex(t=>t===e.type)>=0&&(t=!1)}if(t){const t=n.localize("propertyInvalidValueType",{name:o,actualType:g.Types.getType(r),type:e.type});return void n.error(t)}}if(e.isUpdating=!0,e.isHierarchicalProperty){const t=function(e,r){if(!e)return;const o=Object.keys(e);for(let a=0;a<o.length;a++){const i=o[a],s=e[i];"object"==typeof s&&!g.Types.isArray(s)&&s&&s.constructor!==Date?t(s,r+"_"+i):n[r+"_"+i]=s}};t(r,o)}else n._properties[o].value=r;if(!e.isUpdatingFromAttribute&&e.reflectToAttribute&&n.$.setAttributeValue(e.attributeName,r,e.type),n.isReady&&(!n.ownerElement||n.ownerElement&&n.ownerElement.isReady)){if("wait"===o&&(r||!a||n.isCompleted||(n.classList.remove("smart-visibility-hidden"),n.ownerElement&&n.ownerElement.updateBoundMappedNodes(),n.updateBoundMappedNodes(),n.complete())),"renderMode"===o)return;if(n.context!==n&&!n.wait){const t=n.context;n.context=n,n.propertyChangedHandler(o,a,r),n.context=t,e.observer&&n[e.observer]&&(n.context=n,n[e.observer](a,r),n.context=document),n._watch&&n._watch.properties.indexOf(o)>=0&&n._watch.propertyChangedCallback(o,a,r)}const t=e.notify||n.boundProperties[o];t&&(n.$.fireEvent(e.attributeName+"-changed",{context:n.context,oldValue:a,value:n[o]}),n.boundProperties[o]&&n.updateBoundNodes(o)),t&&n.templateProperties&&n.templateProperties[o]&&n.refreshTemplate(),n.dataContextProperties&&("dataContext"===o?n.applyDataContext():n.dataContextProperties[o]&&n.updateDataContextProperty(o))}e.isUpdating=!1}}};for(let o=0;o<r.length;o+=1){const a=r[o],i=t[a],s=g.Core.toDash(a),l=i.type||"any",d=l.indexOf("?")>=0||"any"===l;d&&"any"!==l&&(i.type=l.substring(0,l.length-1)),i.nullable=d,i.attributeName=s.toLowerCase(),i.name=a,i.reflectToAttribute=void 0===i.reflectToAttribute||i.reflectToAttribute,i.inherit&&n[a]&&(i.value=n[a].value),i.extend&&n[a]&&g.Core.assign(i.value,n[a].value),e.hasOwnProperty(a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get(){if(this._properties[a])return this._properties[a].value},set(t){this.updateProperty(this,this._properties[a],t)}})}}}let x=[],_=[],S=[],C=!1;const k=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(k){parseInt(k[2],10)<=50&&(C=!0)}class A{static register(t,r){const n=r.prototype;let o=i.toCamelCase(t).replace(/[a-z]+/,""),a=r.version||window[e].Version;if(window.customElements.get(t)&&window.customElements.get(t).version===a)return;let s=t;for(a=a.split(".");window.customElements.get(t);)t=s+"-"+a.join("."),a[2]=parseInt(a[2])+1;if(!x[t]){if(t.startsWith(e.toLowerCase()))x[t]=window[e][o]=window[e.toLowerCase()+o]=r;else{let n=t.split("-")[0];n=n.substring(0,1).toUpperCase()+n.substring(1),window[e][n]||(window[e][n]={}),x[t]=window[e][n][o]=window[n.toLowerCase()+o]=r,window[e][o]&&(o=i.toCamelCase(t)),window[e][o]=r}n.elementName=o,n.defineElement(),_[t]&&_[t](n),window.customElements.define(t,r)}}static registerElements(){const t=this;if(t.toRegister){t.isRegistering=!0;for(let e=0;e<t.toRegister.length;e++){const r=t.toRegister[e];t.register(r.tagName,r.element)}t.isRegistering=!1}}static get(t){if(x[t])return x[t]}static whenRegistered(t,e){if(!t)throw new Error("Syntax Error: Invalid tag name");const r=_[t],n=this.get(t),o=n?n.modules.length:3;try{r||n?!r&&n?(e(n.prototype),_[t]=void 0):r&&!n?_[t]=function(t){r(t),e(t)}:r&&n&&(n.proto&&(r(n.proto),e(n.proto)),_[t]=void 0):_[t]=function(t){try{e(t)}catch(t){const e=t instanceof Error?t.message:t.toString();console.log(e)}}}catch(t){const e=t instanceof Error?t.message:t.toString();console.log(e)}if(n&&o!==n.prototype.modules.length){const e=document.querySelectorAll(t);for(let t=0;t<e.length;t++){const r=e[t];r.isCreated&&r._initElement()}}}}A.lazyRegister=!1,A.tagNames=[];class T{constructor(){const t=this;t.name="observableArray",t.observables=arguments.length<3?null:arguments[2];const e=new Proxy(t,{deleteProperty:function(t,e){return delete t[e],!0},apply:function(t,e,r){return t.apply(e,r)},get:function(e,r){return e[r]||isNaN(parseInt(r))?e[r]:t.getItem(parseInt(r))},set:function(e,r,n){return e[r]||isNaN(parseInt(r))?(e[r]=n,!0):(t.setItem(parseInt(r),n),!0)}});if(t._addArgs={eventName:"change",object:e,action:"add",index:null,removed:new Array,addedCount:1},t._removeArgs={eventName:"change",object:e,action:"remove",index:null,removed:null,addedCount:0},arguments.length>=1&&Array.isArray(arguments[0])){t._array=[];const e=arguments[0];for(let r=0,n=e.length;r<n;r++){const n=t._getItem(t._array.length,e[r]);t._array.push(n)}}else t._array=Array.apply(null,arguments);return 2===arguments.length&&(t.notifyFn=arguments[1]),e}get canNotify(){const t=this;return void 0===t._canNotify&&(t._canNotify=!0),t._canNotify}set canNotify(t){this._canNotify=t}_notify(t){const e=this;e.canNotify&&e.notifyFn&&e.notifyFn(t)}notify(t){t&&(this.notifyFn=t)}toArray(){return this._array}_getItem(t,e){const r=this;return"string"==typeof e||"number"==typeof e||void 0===e?e:new Proxy(e,{deleteProperty:function(t,e){return delete t[e],!0},set:function(e,n,o){const a=e[n];return e[n]=o,!r._canNotify||!1===e.canNotify||(r.observables&&!r.observables[n]||r._notify({eventName:"change",object:r,target:e,action:"update",index:t,path:t+"."+n,oldValue:a,newValue:o,propertyName:n}),!0)}})}getItem(t){return this._array[t]}setItem(t,e){const r=this._array[t];this._array[t]=this._getItem(t,e),this._notify({eventName:"change",object:this._array,action:"update",index:t,removed:[r],addedCount:1})}get length(){return this._array.length}set length(t){const e=this;n.isNumber(t)&&e._array&&e._array.length!==t&&e.splice(t,e._array.length-t)}toString(){return this._array.toString()}toLocaleString(){return this._array.toLocaleString()}concat(){this._addArgs.index=this._array.length;const t=this._array.concat.apply(this._array,arguments);return new Smart.ObservableArray(t)}join(t){return this._array.join(t)}pop(){this._removeArgs.index=this._array.length-1,delete this[this._array.length-1];const t=this._array.pop();return this._removeArgs.removed=[t],this._notify(this._removeArgs),this._notifyLengthChange(),t}push(){const t=this;if(t._addArgs.index=t._array.length,1===arguments.length&&Array.isArray(arguments[0])){const e=arguments[0];for(let r=0,n=e.length;r<n;r++){const n=t._getItem(t._array.length,e[r]);t._array.push(n)}}else{const e=t._getItem(t._addArgs.index,arguments[0]);t._array.push.apply(t._array,[e])}return t._addArgs.addedCount=t._array.length-t._addArgs.index,t._notify(t._addArgs),t._notifyLengthChange(),t._array.length}_notifyLengthChange(){if(!this.canNotify)return;const t=this._createPropertyChangeData("length",this._array.length);this._notify(t)}_createPropertyChangeData(t,e,r){return{eventName:"change",object:this,action:t,value:e,oldValue:r}}reverse(){return this._array.reverse()}shift(){const t=this._array.shift();return this._removeArgs.index=0,this._removeArgs.removed=[t],this._notify(this._removeArgs),this._notifyLengthChange(),t}slice(t,e){return this._array.slice(t,e)}sort(t){return this._array.sort(t)}splice(t,e,r){const n=this,o=n._array.length;let a;if(r&&r.length)for(let o=0;o<r.length;o++)a=n._array.splice(t+o,e,r[o]);else a=n._array.splice.apply(n._array,arguments);if(r){let e=n.canNotify;if(n.canNotify=!1,r.length)for(let e=0;e<r.length;e++)n.setItem(t+e,r[e]);else n.setItem(t,r);n.canNotify=e,n._notify({eventName:"change",object:this,action:"add",index:t,added:a,addedCount:n._array.length>o?n._array.length-o:0})}else n._notify({eventName:"change",object:this,action:"remove",index:t,removed:a,addedCount:n._array.length>o?n._array.length-o:0});return n._array.length!==o&&n._notifyLengthChange(),a}unshift(){const t=this._array.length,e=this._array.unshift.apply(this._array,arguments);return this._addArgs.index=0,this._addArgs.addedCount=e-t,this._notify(this._addArgs),this._notifyLengthChange(),e}indexOf(t,e){const r=this;for(let n=e||0,o=r._array.length;n<o;n++)if(r._array[n]===t)return n;return-1}lastIndexOf(t,e){const r=this;for(let n=e||r._array.length-1;n>=0;n--)if(r._array[n]===t)return n;return-1}find(t,e){return this._array.find(t,e)}findIndex(t,e){return this._array.findIndex(t,e)}every(t,e){return this._array.every(t,e)}some(t,e){return this._array.some(t,e)}forEach(t,e){this._array.forEach(t,e)}map(t,e){return this._array.map(t,e)}filter(t,e){return this._array.filter(t,e)}reduce(t,e){return void 0!==e?this._array.reduce(t,e):this._array.reduce(t)}reduceRight(t,e){return void 0!==e?this._array.reduceRight(t,e):this._array.reduceRight(t)}move(t,e){this.splice(e,0,this.splice(t,1)[0])}}let E={};window[e]&&(E=window[e]),window[e]=function(t,r){let n=t;if(t){if(t.indexOf("#")>=0||t.indexOf(".")>=0)return m[t]?m[t]:r?(m[t]=new r,function(t,e){const r=e.properties;e._properties=[];const n=function(r,o){const a=Object.keys(r);for(let i=0;i<a.length;i++){const s=a[i],l=r[s];e._properties[o+s]=l,Array.isArray(l)?e._properties[o+s]=new T(l,(function(e){const r=s+"."+e.path,n=e.newValue,o=document.querySelector(t);if(o){const t=r.split(".");let e=o;for(let r=0;r<t.length;r++){e=e[t[r]]}e=n}})):(Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>e._properties[o+s],set(t){e._properties[o+s]=t}}),l&&"DataAdapter"===l.constructor.name||l&&"object"==typeof l&&Smart.DataAdapter&&l instanceof Smart.DataAdapter||"object"==typeof l&&l&&Object.keys(l).length>0&&n(l,o+s+"."))}};n(r,""),Object.defineProperty(e,"properties",{configurable:!1,enumerable:!0,get:()=>r});const o=document.querySelector(t);if(o&&o.isReady)for(let t in r)o[t]=r[t];else if(o){o.props={};for(let t in r)o.props[t]=r[t]}}(t,m[t]),m[t]):void 0;if(r){if(A.tagNames[t]=r,A.lazyRegister){A.toRegister||(A.toRegister=[]);const t=i.toCamelCase(n).replace(/[a-z]+/,"");return window[e][t]=r,void A.toRegister.push({tagName:n,element:r})}A.register(n,r)}}},window.addEventListener("load",(function(){const t=window[e].Elements.tagNames;let r=[];for(let n in t){const o=t[n];let a=document.querySelectorAll("["+n+"]");for(let t=0;t<a.length;t++){const e=a[t];e instanceof HTMLDivElement&&(e.__proto__=o.prototype,e.created(),e.connectedCallback()),e.classList.add("smart-element-ready")}let i=o.name;"Item"===i&&(i="ListItem"),a=document.querySelectorAll('[is="'+e.toLocaleLowerCase()+i+'"]');for(let t=0;t<a.length;t++)r.push(a[t])}if(r.length>0){const t=t=>{let e=[],r=t.parentNode;for(;r&&9!==r.nodeType;)r instanceof HTMLElement==!0&&e.push(r),r=r.parentNode;return e};r.sort((function(e,r){let n=t(e).length,o=t(r).length;return n<o?1:n>o?-1:0}));for(let t=0;t<r.length;t++){const e=r[t],n=e.getAttribute("is");let o;o="smartItem"===n?new window.smartListItem(e):new window[n](e),o.removeAttribute("is")}}}));const N=function(){if("complete"===document.readyState&&"manual"!==window[e].RenderMode){S.sort((function(t,e){let r=t.element.parents.length,n=e.element.parents.length;return r<n?-1:r>n?1:0}));for(let t=0;t<S.length;t++)window[e].RenderMode="",S[t].element.isLoading=!1,S[t].callback(),window[e].RenderMode="";S=[],document.removeEventListener("readystatechange",N)}};Object.assign(window[e],{Elements:A,Modules:[],BaseElement:class extends w{static get observedAttributes(){let t=this,e=["external-style"];for(let r in t.prototype.extendedProperties){const n=t.prototype.extendedProperties[r];e.push(n.attributeName)}return e}static get styleUrls(){return[]}static get styles(){return""}get styleUrl(){return this._styleUrl}set styleUrl(t){this._styleUrl=t}get isInShadowDOM(){const t=this.getRootNode();return!this.hasAttribute("smart-blazor")&&(t!==document&&t!==this)}getShadowRootOrBody(){const t=this;return t.isInShadowDOM&&t.getRootNode().host?t.getRootNode().host.shadowRoot:document.body}get enableShadowDOM(){return window[e].EnableShadowDOM}importStyle(t,e){this._importStyle(t,e)}_importStyle(t,e){const r=this;if(!r.shadowRoot||!t)return;const n=t=>{const n=r.shadowRoot.children;for(let r=0;r<n.length;r++){const o=n[r];if(o instanceof HTMLLinkElement&&o.href===t)return e&&e(),null}const o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",o.href=t,o.onload=e,o},o=(()=>{const t=r.shadowRoot.children;let e=null;for(let r=0;r<t.length;r++){const n=t[r];n instanceof HTMLLinkElement&&(e=n)}return e})(),a=(t,e)=>{e.parentNode.insertBefore(t,e.nextSibling)};if(Array.isArray(t)){const e=document.createDocumentFragment();for(let r=0;r<t.length;r++){const o=n(t[r]);o&&e.appendChild(o)}o?a(e,o):r.shadowRoot.insertBefore(e,r.shadowRoot.firstChild)}else{const e=n(t);if(!e)return;o?a(e,o):r.shadowRoot.insertBefore(e,r.shadowRoot.firstChild)}}attributeChanged(t,e,r){"style-url"===t&&(this.styleUrl=r)}attributeChangedCallback(t,e,r){this.isReady&&super.attributeChangedCallback(t,e,r)}constructor(t,e){super();const r=this;if(t){e&&(r._initProperties=e);const n=t=>{if("string"==typeof t?document.querySelector(t):t){const n="string"==typeof t?document.querySelector(t):t;if(n instanceof HTMLDivElement){const o=document.createElement(r.tagName);for(let t of n.attributes)o.setAttribute(t.name,n.getAttribute(t.name));for(;n.childNodes.length;)o.appendChild(n.firstChild);return"string"==typeof t&&(o.id=t.substring(1)),o._initProperties=e,n.parentNode&&n.parentNode.replaceChild(o,n),o}if(e){const t=n.context;if(n._initProperties=e,n.isReady){n.context=n;const r={},o={};for(let t in e)r[t]=n[t],o[t]=e[t];Object.getOwnPropertyNames(e).length>0&&(n.initProperties(),n.propertyChangedHandler(e,r,o)),n.context=t}}return n}};if("string"==typeof t){const e=document.querySelectorAll(t),r=[];if(e.length>1){for(let t=0;t<e.length;t++){const o=n(e[t]);r.push(o)}return r}}else if(t&&t.length>0){const e=t;if(e.length>1){for(let t=0;t<e.length;t++){const r=n(e[t]);x.push(r)}return x}}return n(t)}r._styleUrl="",r.isUtilityElement||r.created()}_getRootShadowParent(){let t=this.shadowParent;for(;t;){if(!t.shadowParent)return t;t=t.shadowParent}return t||this.shadowParent}_getStyleUrl(t){let r=g.Core.getScriptLocation()+window[e].StyleBaseUrl+t;return this.shadowParent&&(r=r.replace("scoped/","")),r}_getStyleUrls(){const t=this;t.nodeName.startsWith(e);const r=t.getStaticMember("styleUrls","array"),n=[];for(let e=0;e<r.length;e++){const o=r[e],a=t._getStyleUrl(o);n.push(a)}return n}_setupShadowRoot(){const t=this;t.classList.add("smart-element-init");const r=r=>{r.$.root&&(r.$.root.classList.add(e.toLowerCase()+"-element"),r.$.root.classList.add(t.nodeName.toLowerCase())),r.setup(),r.classList.remove("smart-element-init")};if(document.adoptedStyleSheets)if(window[e].AdoptedStyleSheets)window[e].AdoptedStyleSheetsLoaded?(t.shadowRoot.adoptedStyleSheets=window[e].AdoptedStyleSheets,r(t)):(t.shadowRoot.adoptedStyleSheets=window[e].AdoptedStyleSheets,window[e].AdoptedStyleSheetsLoadedQueue||(window[e].AdoptedStyleSheetsLoadedQueue=[]),window[e].AdoptedStyleSheetsLoadedQueue.push(t));else{const n=new CSSStyleSheet;let o=g.Core.getScriptLocation()+"/styles/smart.default.css";n.replace('@import url("'+o+'")').then(()=>{if(r(t),window[e].AdoptedStyleSheetsLoaded=!0,window[e].AdoptedStyleSheetsLoadedQueue){const t=window[e].AdoptedStyleSheetsLoadedQueue;for(let e=0;e<t.length;e++){const n=t[e];r(n)}delete window[e].AdoptedStyleSheetsLoadedQueue}}).catch(t=>{console.error("Failed to load:",t)}),window[e].AdoptedStyleSheets=[n],document.adoptedStyleSheets=[n],t.shadowRoot.adoptedStyleSheets=window[e].AdoptedStyleSheets}}connect(){const t=this;window[e].EnableShadowDOM&&!t.shadowRoot&&!0!==t.isInShadowDOM&&(t.attachShadow({mode:"open"}),t.shadowRoot&&t.$.root&&(t.shadowRoot.appendChild(t.$.root),t.$.root.classList.add(t.nodeName.toLowerCase()))),t.shadowRoot||t.shadowParent?t.shadowRoot?t._setupShadowRoot():(t.shadowParent&&window[e].EnableShadowDOM,t.setup()):t.setup()}connectedCallback(){const t=this;if(t.isLoading||t.isUtilityElement)return;t.classList.add("smart-element-init");const r=function(){t.classList.remove("smart-element-init")};if("complete"===document.readyState&&(void 0===window[e].isAngular&&(window[e].isAngular=null!==document.body.querySelector("[ng-version]")),window[e].isAngular))for(let r=0;r<t.parents.length&&!t.parents[r].nodeName.toLowerCase().startsWith(e.toLowerCase()+"-");r++)if(t.parents[r].hasAttribute("ng-version")&&!t.classList.contains("smart-angular")){window[e].RenderMode="manual";break}if("complete"===document.readyState&&"manual"!==window[e].RenderMode){const e=t.parents;e.length&&"HTML"===e[e.length-1].nodeName||t.getRootNode().host?(t.checkIsInDomTimer&&clearInterval(t.checkIsInDomTimer),r(),t.connect()):(t.checkIsInDomTimer&&clearInterval(t.checkIsInDomTimer),e.length>0&&(t.checkIsInDomTimer=setInterval(()=>{const e=t.parents;0===e.length&&clearInterval(t.checkIsInDomTimer),e.length>0&&"HTML"===e[e.length-1].nodeName&&(clearInterval(t.checkIsInDomTimer),r(),t.connect())},100)))}else t.isLoading=!0,S.push({element:this,callback:function(){this.isReady||(r(),this.connect())}.bind(t)})}disconnectedCallback(){const t=this;t.isAttached?(t.shadowParent=null,t.detached()):t._resetShadowParent()}adoptedCallback(){this.setup()}appendTemplate(t){const e=this;e.shadowRoot?e.shadowRoot.appendChild(t):e.appendChild(t)}_resetShadowParent(){const t=this;if(!window[e].EnableShadowDOM||null===t.shadowParent)return;const r=[];let n=t.parentNode;for(;n&&9!==n.nodeType;){if(n instanceof HTMLElement==!0)r.push(n);else if(11===n.nodeType&&n.host){n=n.host;continue}n=n.parentNode}for(let e=0;e<r.length;e++)if(r[e]===t.shadowParent)return;r.length>0&&"HTML"===r[r.length-1].nodeName&&(t.shadowParent=null)}},Utilities:g,Import:function(t,e){let r=0;const n=function(t,e){return new Promise(r=>{const n=document.createElement("script");n.src=t,n.onload=r;for(let t=0;t<document.head.children.length;t++){const n=document.head.children[t];if(n.src&&n.src.toString().indexOf(e)>=0)return void r()}document.head.appendChild(n)})};return new Promise(o=>{const a=g.Core.getScriptLocation(),i=function(e){if(!t[e])return;const s=a+"/"+t[e];n(s,t[e]).then((function(){r++,r===t.length&&o(),i(e+1)}))};if(e)for(let e=0;e<t.length;e++){const i=a+"/"+t[e];n(i,t[e]).then((function(){r++,r===t.length&&o()}))}else i(0)})},ObservableArray:T,Observable:class{constructor(t,e){const r=this;this.name="observable",t&&Object.assign(r,t);var n;return n=t,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>"constructor"===t||!!t.startsWith("_")||void(r[t]=n[t])),new Proxy(r,{deleteProperty:function(t,e){return delete t[e],!0},get:function(t,e){return t[e]},set:function(t,n,o){const a=t[n];return a===o||(t[n]=o,!("notifyFn"!==n&&!n.startsWith("_")&&"canNotify"!==n)||(!(!e||-1!==e.indexOf(n))||(!r.canNotify||(r._notify({target:t,propertyName:n,oldValue:a,newValue:o}),!0))))}})}get canNotify(){const t=this;return void 0===t._canNotify&&(t._canNotify=!0),t._canNotify}set canNotify(t){this._canNotify=t}_notify(t){const e=this;if(e.canNotify&&e.notifyFn)for(let r=0;r<e.notifyFn.length;r++)e.notifyFn[r](t)}notify(t){const e=this;t&&(e.notifyFn||(e.notifyFn=[]),e.notifyFn.push(t))}},Component:class{constructor(t,e){const r=this.name;let n=null;return t?n=new window[r](t,e):(n=new window[r],n._initProperties=e),this._element=n,n}get name(){return"Component"}get element(){return this._element}},Theme:E.Theme||"",EnableShadowDOM:E.ShadowDom||!1,BaseUrl:"./",StyleBaseUrl:"/styles/default/",Version:"13.2.0",Templates:t,RenderMode:E.RenderMode||"auto",Render:function(){const t=()=>{window[e].RenderMode="",N()};"complete"===document.readyState?t():(window.removeEventListener("load",t),window.addEventListener("load",t))},Data:m,Mode:E.Mode||"production",License:"Evaluation"});let M=window[e].Theme;"manual"!==window[e].RenderMode&&document.addEventListener("readystatechange",N),Object.defineProperty(window[e],"Theme",{configurable:!1,enumerable:!0,get:()=>M,set(t){const e=M;M=t,b.fireEvent("theme-changed",{oldValue:e,newValue:t},{bubbles:!0,cancelable:!0})}}),window[e]("smart-base-element",window[e].BaseElement),window[e]("smart-content-element",class extends window[e].BaseElement{static get properties(){return{content:{type:"any",reflectToAttribute:!1},innerHTML:{type:"string",reflectToAttribute:!1}}}template(){return"<div inner-h-t-m-l='[[innerHTML]]'></div>"}ready(){super.ready();this.applyContent()}refresh(){}clearContent(){const t=this;for(;t.$.content.firstChild;)t.$.content.removeChild(t.$.content.firstChild)}applyContent(){const t=this;if(void 0===t.content)return void(t.content=t.$.content);if(""===t.content||null===t.content)return void t.clearContent();if(t.content instanceof HTMLElement)return t.clearContent(),void t.$.content.appendChild(t.content);const e=document.createDocumentFragment();let r=document.createElement("div");e.appendChild(r),t.content instanceof HTMLElement?r.appendChild(t.content):r.innerHTML=t.content;let n=Array.from(r.childNodes);r.parentNode.removeChild(r);for(let t=0;t<n.length;t++)e.appendChild(n[t]);t.clearContent(),t.$.content.appendChild(e)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;e!==r&&("innerHTML"===t&&(n.content=r,n.applyContent(),n.innerHTML=n.content=g.Core.html(n.$.content)),"content"===t&&n.applyContent())}}),window[e]("smart-scroll-viewer",class extends window[e].ContentElement{static get properties(){return{autoRefresh:{type:"boolean",value:!1},horizontalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]},touchScrollRatio:{type:"any",value:null},touchVelocityCoefficient:{type:"number",value:50},verticalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]}}}static get listeners(){return{touchmove:"_touchmoveHandler",touchstart:"_touchstartHandler",wheel:"_mouseWheelHandler","document.up":"_upHandler"}}static get styleUrls(){return["smart.scrollviewer.css"]}template(){return'<div id="container" class="smart-container" role="presentation">\n <div id="scrollViewerContainer" class="smart-scroll-viewer-container" role="presentation">\n <div id="scrollViewerContentContainer" inner-h-t-m-l=\'[[innerHTML]]\' class="smart-scroll-viewer-content-container" role="presentation">\n <content></content>\n </div>\n </div>\n <smart-scroll-bar id="verticalScrollBar" theme="[[theme]]" animation="[[animation]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]" orientation="vertical"></smart-scroll-bar>\n <smart-scroll-bar id="horizontalScrollBar" theme="[[theme]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]"></smart-scroll-bar>\n </div>'}appendChild(t){const e=this;if(t){if(!e.isCompleted||t.classList&&t.classList.contains("smart-resize-trigger-container")){const t=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(e,t.concat(Array.prototype.slice.call(arguments)))}e.$.scrollViewerContentContainer.appendChild(t)}}removeChild(t){const e=this;if(t){if(!e.isCompleted||t.classList&&t.classList.contains("smart-resize-trigger-container")){const t=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(e,t.concat(Array.prototype.slice.call(arguments)))}e.$.scrollViewerContentContainer.removeChild(t)}}removeAll(){const t=this;t.isCompleted&&(t.$.scrollViewerContentContainer.innerHTML="")}_horizontalScrollbarHandler(t){const e=this;e.$.scrollViewerContentContainer.style.left=(e.rightToLeft?1:-1)*e.scrollLeft+"px",t.stopPropagation&&t.stopPropagation(),e.onHorizontalChange&&e.onHorizontalChange(t)}_verticalScrollbarHandler(t){const e=this;e.$.scrollViewerContentContainer.style.top=-e.scrollTop+"px",t.stopPropagation&&t.stopPropagation(),e.onVerticalChange&&e.onVerticalChange(t)}_touchmoveHandler(t){const e=this;if(e._touchmoveInside&&t.cancelable)return t.preventDefault(),void t.stopPropagation();const r=e.scrollHeight>0,n=e.scrollWidth>0,o=e._touchCoords;if(!r&&!n||!o)return;const a=t.touches[0];let i,s,l,d;e._touchCoords=[a.pageX,a.pageY],r?(i=e.scrollTop,s=e.scrollHeight,l=a.pageY,d=o[1]):(i=e.scrollLeft,s=e.scrollWidth,l=a.pageX,d=o[0]);const m=parseFloat(l.toFixed(5)),c=parseFloat(d.toFixed(5));0===i&&m>=c||i===s&&m<=c||(l!==d&&(e._touchmoveInside=!0),t.cancelable&&(t.preventDefault(),t.stopPropagation()))}_touchstartHandler(t){const e=t.touches[0];this._touchCoords=[e.pageX,e.pageY]}_mouseWheelHandler(t){const e=this;if(!e.disabled&&(e.computedHorizontalScrollBarVisibility||e.computedVerticalScrollBarVisibility)){if(t.shiftKey&&e.computedHorizontalScrollBarVisibility){const r=e.scrollLeft;if(0===r&&t.deltaX<0||r===e.scrollHeight&&t.deltaX>0)return;return t.stopPropagation(),t.preventDefault(),void(e.scrollWidth>0&&e.scrollTo(void 0,e.scrollLeft+e._getScrollCoefficient(t,e.offsetWidth)))}if(e.computedVerticalScrollBarVisibility){const r=e.scrollTop;if(0===r&&t.deltaY<0||r===e.scrollHeight&&t.deltaY>0)return;t.stopPropagation(),t.preventDefault(),e.scrollHeight>0&&e.scrollTo(e.scrollTop+e._getScrollCoefficient(t,e.offsetHeight))}}}_overriddenHandler(){}_upHandler(){delete this._touchCoords,delete this._touchmoveInside}_getScrollCoefficient(t,e){const r=t.deltaMode,n=Math.abs(t.deltaY);let o;return 0===r?o=n<100/3?n:e:1===r?o=n<1?n*(100/3):e:2===r&&(o=e),t.deltaY<0?-o:o}applyContent(){super.applyContent(),this.refresh()}get computedHorizontalScrollBarVisibility(){const t=this;return t._scrollView&&t._scrollView.hScrollBar?!t._scrollView.hScrollBar.$.hasClass("smart-hidden"):null}get computedVerticalScrollBarVisibility(){const t=this;return t._scrollView&&t._scrollView.vScrollBar?!t._scrollView.vScrollBar.$.hasClass("smart-hidden"):null}scrollTo(t,e){const r=this;r._scrollView&&(void 0!==t&&r._scrollView.scrollTo(t),void 0!==e&&r._scrollView.scrollTo(e,!1))}refreshScrollBarsVisibility(){const t=this;t._scrollView&&(t._scrollView.hScrollBar.disabled=t.disabled,t._scrollView.vScrollBar.disabled=t.disabled,"disabled"===t.horizontalScrollBarVisibility&&(t._scrollView.hScrollBar.disabled=!0),"disabled"===t.verticalScrollBarVisibility&&(t._scrollView.vScrollBar.disabled=!0),t.scrollWidth>0?t._scrollView.hScrollBar.$.removeClass("smart-hidden"):"visible"!==t.horizontalScrollBarVisibility&&t._scrollView.hScrollBar.$.addClass("smart-hidden"),t.scrollHeight>0?t._scrollView.vScrollBar.$.removeClass("smart-hidden"):"visible"!==t.verticalScrollBarVisibility&&t._scrollView.vScrollBar.$.addClass("smart-hidden"),"hidden"===t.horizontalScrollBarVisibility&&t._scrollView.hScrollBar.$.addClass("smart-hidden"),"hidden"===t.verticalScrollBarVisibility&&t._scrollView.vScrollBar.$.addClass("smart-hidden"),"visible"===t.horizontalScrollBarVisibility&&t._scrollView.hScrollBar.$.removeClass("smart-hidden"),"visible"===t.verticalScrollBarVisibility&&(t._scrollView.vScrollBar.$.removeClass("smart-hidden"),t.disabled||(t._scrollView.vScrollBar.disabled=t.scrollHeight<=0)),t.computedHorizontalScrollBarVisibility&&t.computedVerticalScrollBarVisibility?(t._scrollView.hScrollBar.$.addClass("bottom-corner"),t._scrollView.vScrollBar.$.addClass("bottom-corner")):(t._scrollView.hScrollBar.$.removeClass("bottom-corner"),t._scrollView.vScrollBar.$.removeClass("bottom-corner")))}ready(){super.ready();const t=this;t.$.verticalScrollBar.onChange=e=>{e.detail=e,t._verticalScrollbarHandler(e)},t.$.horizontalScrollBar.onChange=e=>{e.detail=e,t._horizontalScrollbarHandler(e)},t.$.verticalScrollBar.setAttribute("aria-controls",t.id),t.$.horizontalScrollBar.setAttribute("aria-controls",t.id),t._customScrollView||(t._scrollView=new Smart.Utilities.Scroll(t,t.$.horizontalScrollBar,t.$.verticalScrollBar)),t.refresh()}refresh(){const t=this;function e(){const e=t.$.scrollViewerContainer.classList.contains("vscroll");t.$.scrollViewerContainer.classList.remove("vscroll");const r=t.$.scrollViewerContentContainer.offsetWidth-t.$.scrollViewerContainer.offsetWidth;return r>0&&"hidden"!==t.horizontalScrollBarVisibility||"visible"===t.horizontalScrollBarVisibility?t.$.scrollViewerContainer.classList.add("hscroll"):t.$.scrollViewerContainer.classList.remove("hscroll"),e&&t.$.scrollViewerContainer.classList.add("vscroll"),r}function r(){let e;const r=t.$.scrollViewerContainer.classList.contains("hscroll");if(t.$.scrollViewerContainer.classList.remove("hscroll"),Smart.Utilities.Core.Browser.Safari){const r=t.$.scrollViewerContentContainer.getBoundingClientRect().height,n=t.$.scrollViewerContainer.getBoundingClientRect().height;e=r&&n?parseInt(r)-parseInt(n):t.$.scrollViewerContentContainer.offsetHeight-t.$.scrollViewerContainer.offsetHeight}else e=t.$.scrollViewerContentContainer.offsetHeight-t.$.scrollViewerContainer.offsetHeight;return t.virtualScrollHeight&&(e=t.virtualScrollHeight),e>0&&"hidden"!==t.verticalScrollBarVisibility||"visible"===t.verticalScrollBarVisibility?t.$.scrollViewerContainer.classList.add("vscroll"):t.$.scrollViewerContainer.classList.remove("vscroll"),r&&t.$.scrollViewerContainer.classList.add("hscroll"),e}if(!t.$.scrollViewerContentContainer)return;"hidden"===t.verticalScrollBarVisibility&&t.$.scrollViewerContentContainer.setAttribute("disable-vertical",""),"hidden"===t.horizontalScrollBarVisibility&&t.$.scrollViewerContentContainer.setAttribute("disable-horizontal","");let n=t.scrollWidth,o=t.scrollHeight;t.scrollWidth=e(),t.scrollHeight=r(),t.scrollHeight&&o===t.scrollHeight||(t.scrollWidth=e()),t.scrollWidth&&n===t.scrollWidth||(t.scrollHeight=r()),t.computedVerticalScrollBarVisibility&&(t.scrollHeight+=t._scrollView.hScrollBar.offsetHeight),t.computedHorizontalScrollBarVisibility&&(t.scrollWidth+=t._scrollView.vScrollBar.offsetWidth),0===t.scrollHeight&&t.scrollWidth>0&&t.$.container.offsetHeight-t.$.content.offsetHeight<5&&(t.$.container.style.paddingBottom=t._scrollView.hScrollBar.offsetHeight+"px"),t.autoRefresh&&(t.$.scrollViewerContainer.scrollLeft=0,t.$.scrollViewerContainer.scrollTop=0)}attached(){const t=this;super.attached(),t._scrollView||t._customScrollView||(t._scrollView=new Smart.Utilities.Scroll(t,t.$.horizontalScrollBar,t.$.verticalScrollBar))}detached(){const t=this;super.detached(),t._scrollView&&(t._scrollView.unlisten(),delete t._scrollView)}get scrollWidth(){const t=this;return t._scrollView&&t._scrollView.hScrollBar?1===t._scrollView.hScrollBar.max&&"visible"===t.horizontalScrollBarVisibility?0:t._scrollView.hScrollBar.max:-1}set scrollWidth(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.hScrollBar&&(0===t&&"visible"===e.horizontalScrollBarVisibility?e._scrollView.hScrollBar.max=0:e._scrollView.hScrollBar.max=t,e.refreshScrollBarsVisibility())}get scrollHeight(){const t=this;return t._scrollView&&t._scrollView.vScrollBar?1===t._scrollView.vScrollBar.max&&"visible"===t.verticalScrollBarVisibility?0:t._scrollView.vScrollBar.max:0}set scrollHeight(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.vScrollBar&&(0===t&&"visible"===e.verticalScrollBarVisibility?e._scrollView.vScrollBar.max=1:e._scrollView.vScrollBar.max=t,e.refreshScrollBarsVisibility())}get scrollLeft(){const t=this;return t._scrollView&&t._scrollView.hScrollBar?t._scrollView.hScrollBar.value:0}set scrollLeft(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.hScrollBar&&(e._scrollView.hScrollBar.value=t)}get scrollTop(){const t=this;return t._scrollView&&t._scrollView.vScrollBar?t._scrollView.vScrollBar.value:0}set scrollTop(t){const e=this;t<0&&(t=0),e._scrollView&&e._scrollView.vScrollBar&&(e._scrollView.vScrollBar.value=t)}propertyChangedHandler(t,e,r){const n=this;super.propertyChangedHandler(t,e,r),"animation"!==t&&"theme"!==t&&n.refresh()}}),window[e].Utilities.Assign("PositionDetection",class{constructor(t,e,r,n){if(e){const r="dropDown"+Math.floor(65536*(1+Math.random())).toString(16).substring(1);e.id=r,t.setAttribute("aria-owns",r)}this.context=t,this.dropDown=e,this.defaultParent=r,this.closeMethod=n}handleAutoPositioning(){const t=this,e=t.context;if("auto"!==e.dropDownPosition||e.disabled||e.isHidden)return;const r=window.requestAnimationFrame;let n,o=Date.now();return n=r((function a(){if(e.isHidden||document.hidden)return;n=r(a),"auto"===e.dropDownPosition&&!e.disabled&&(e.isInShadowDOM?document.body.contains(e.shadowParent):document.body.contains(e))||cancelAnimationFrame(n),e.isHidden&&cancelAnimationFrame(n),Date.now()-o>=200&&(t.scrollHandler(),o=Date.now())}))}checkBrowserBounds(t){const e=this.context;if("auto"===e.dropDownPosition&&!e.disabled)switch(t){case"vertically":this.checkBrowserBoundsVertically();break;case"horizontally":this.checkBrowserBoundsHorizontally();break;default:this.checkBrowserBoundsVertically(),this.checkBrowserBoundsHorizontally()}}checkBrowserBoundsHorizontally(){const t=this.context,e=this.dropDown;let r,n=0;i.isMobile||window.innerWidth===document.documentElement.clientWidth||(n=window.innerWidth-document.documentElement.clientWidth),null!==t._dropDownParent?r=!0:e.style.left="";const o=window.innerWidth-n;let a=t.getBoundingClientRect().left;if(a<0&&(e.style.left=(r?0:Math.abs(a))+"px",a=parseFloat(e.style.left)),a+e.offsetWidth>o){let t=a-Math.abs(o-a-e.offsetWidth);r&&(t+=window.pageXOffset),e.style.left=(r?t:t-a)+"px",window.innerWidth===document.documentElement.clientWidth&&(e.style.left=parseFloat(e.style.left)+n+"px"),r&&window.innerHeight===document.documentElement.clientHeight&&this.positionDropDown(!0)}}checkBrowserBoundsVertically(t){const e=this.context,r=this.dropDown,n=e._dropDownListPosition;t||(t=e.getBoundingClientRect()),0!==t.height&&(document.documentElement.clientHeight-Math.abs(t.top+t.height+r.offsetHeight)>=0?e._dropDownListPosition="bottom":t.top-r.offsetHeight>=0?e._dropDownListPosition="top":e._dropDownListPosition="overlay-center",this.updatePositionAttribute(n,e._dropDownListPosition))}scrollHandler(){const t=this.context;if(!t.parentElement)return;const e=t.getBoundingClientRect();if(e.top===t._positionTop)return;const r=t._dropDownListPosition;this.checkBrowserBoundsVertically(e),t._dropDownListPosition!==r&&this.positionDropDown(),t._positionTop=e.top}getDropDownParent(t){const e=this.context,r=this.dropDown;let n=e.dropDownAppendTo;e._positionedParent=null,null===n?e._dropDownParent=null:"body"===n||n===document.body?e.getRootNode().host?e._dropDownParent=e.getRootNode().host.shadowRoot:e._dropDownParent=document.body:n instanceof HTMLElement?e._dropDownParent=n:"string"==typeof n?(n=document.getElementById(n),n instanceof HTMLElement?e._dropDownParent=n:(e.dropDownAppendTo=null,e._dropDownParent=null)):(e.dropDownAppendTo=null,e._dropDownParent=null);let o=e._dropDownParent;if(null!==o){for(;o&&o instanceof HTMLElement&&"static"===window.getComputedStyle(o).position&&o!==e.getShadowRootOrBody();)o=o.parentElement;o===document.body?e._positionedParent=null:e._positionedParent=o,r&&(r.setAttribute("animation",e.animation),""!==e.theme&&r.$.addClass(e.theme),t&&(e._dropDownParent.appendChild(r),r.$.addClass("smart-drop-down-repositioned")),-1===e.detachedChildren.indexOf(r)&&e.detachedChildren.push(r))}}dropDownAppendToChangedHandler(){const t=this.context,e=this.dropDown,r=t._dropDownParent;this.getDropDownParent(),t._dropDownParent!==r&&(t[this.closeMethod](),["left","top","font-size","font-family","font-style","font-weight"].forEach(t=>e.style[t]=null),null===t._dropDownParent?(this.defaultParent.appendChild(e),e.$.removeClass("smart-drop-down-repositioned")):(t._dropDownParent.appendChild(e),e.$.addClass("smart-drop-down-repositioned")))}dropDownPositionChangedHandler(){this.dropDown.style.transition="none",this.context[this.closeMethod](),this.setDropDownPosition(),this.handleAutoPositioning()}dropDownAttached(t){const e=this.context;null!==e._dropDownParent&&(e._dropDownParent.appendChild(this.dropDown),this.handleAutoPositioning(),t&&e[t]())}dropDownDetached(){const t=this.context;null!==t._dropDownParent&&document.body.contains(this.dropDown)&&document.body.contains(t._dropDownParent)&&t._dropDownParent.removeChild(this.dropDown)}setDropDownPosition(){const t=this.context,e=t.dropDownPosition,r=t._dropDownListPosition;"auto"===e?this.checkBrowserBounds():t._dropDownListPosition=e,this.updatePositionAttribute(r,t._dropDownListPosition)}updatePositionAttribute(t,e){const r=this.context,n=this.dropDown;r.$.dropDownButton&&!r.$.dropDownButton.hasAttribute(e)&&(r.$.dropDownButton.removeAttribute(t),r.$.dropDownButton.setAttribute(e,"")),n.hasAttribute(e)||(n.style.transition="none",n.removeAttribute(t),n.setAttribute(e,""),requestAnimationFrame((function(){n.style.transition=null})))}positionDropDown(t){const e=this.context,r=this.dropDown;if(!e.opened||null===e._dropDownParent)return;const n=e.getBoundingClientRect();let o,a;if(this.customPositionDropDown){const t=this.customPositionDropDown(n);o=t.left,a=t.top}else switch(o=n.left,a=n.top,e._dropDownListPosition){case"bottom":a+=e.$.container.offsetHeight-1;break;case"center-bottom":a+=e.$.container.offsetHeight-1,o+=e.offsetWidth-r.offsetWidth/2;break;case"center-top":a-=r.offsetHeight-1,o+=e.offsetWidth-r.offsetWidth/2;break;case"top":a-=r.offsetHeight-1;break;case"overlay-bottom":break;case"overlay-center":a-=r.offsetHeight/2-e.offsetHeight/2;break;case"overlay-top":a-=r.offsetHeight-e.offsetHeight}const i=this.getDropDownOffset();r.style.top=a+i.y+"px",t||(r.style.left=o+i.x+"px")}getDropDownOffset(){const t=this.context._positionedParent;let e,r;if(t&&"#document-fragment"!==t.nodeName){const n=t.getBoundingClientRect();e=-n.left,r=-n.top}else e=window.pageXOffset,r=window.pageYOffset;return{x:e,y:r}}placeOverlay(){const t=this.context;if(!t.dropDownOverlay||t._overlay)return;const e=document.createElement("div");e.classList.add("smart-drop-down-overlay"),e.style.width=document.documentElement.scrollWidth+"px",e.style.height=document.documentElement.scrollHeight+"px",document.body.appendChild(e),t._overlay=e}removeOverlay(t){const e=this,r=e.context;r._overlay&&(r.hasAnimation&&t?requestAnimationFrame((function t(){e.dropDown.getBoundingClientRect().height>0?requestAnimationFrame(t):(document.body.removeChild(r._overlay),delete r._overlay)})):(document.body.removeChild(r._overlay),delete r._overlay))}});window.Smart.Color=class{constructor(t){if(window.Smart._colors||(window.Smart._colors=[]),window.Smart._colors[t]){const e=window.Smart._colors[t];return this.hex=e.hex,this.r=e.r,this.g=e.g,void(this.b=e.b)}this.r=this.g=this.b=0,this.hex="";const e=this.getStandardizedColor(t);e&&(this.setHex(e.substring(1)),window.Smart._colors[t]={hex:this.hex,r:this.r,g:this.g,b:this.b})}getStandardizedColor(t){const e=document.createElement("canvas").getContext("2d");return e.fillStyle=t,e.fillStyle}getInvertedColor(){if(""===this.hex)return"transparent";return 255-(.299*this.r+.587*this.g+.114*this.b)<105?"Black":"White"}hexToRgb(t){let e="00",r="00",n="00";return 6===(t=this.validateHex(t)).length?(e=t.substring(0,2),r=t.substring(2,4),n=t.substring(4,6)):(t.length>4&&(e=t.substring(4,t.length),t=t.substring(0,4)),t.length>2&&(r=t.substring(2,t.length),t=t.substring(0,2)),t.length>0&&(n=t.substring(0,t.length))),{r:this.hexToInt(e),g:this.hexToInt(r),b:this.hexToInt(n)}}validateHex(t){return(t=(t=new String(t).toUpperCase()).replace(/[^A-F0-9]/g,"0")).length>6&&(t=t.substring(0,6)),t}webSafeDec(t){return t=Math.round(t/51),t*=51}hexToWebSafe(t){let e,r,n;return 3===t.length?(e=t.substring(0,1),r=t.substring(1,1),n=t.substring(2,1)):(e=t.substring(0,2),r=t.substring(2,4),n=t.substring(4,6)),this.intToHex(this.webSafeDec(this.hexToInt(e)))+this.intToHex(this.webSafeDec(this.hexToInt(r)))+this.intToHex(this.webSafeDec(this.hexToInt(n)))}rgbToWebSafe(t){return{r:this.webSafeDec(t.r),g:this.webSafeDec(t.g),b:this.webSafeDec(t.b)}}rgbToHex(t){return this.intToHex(t.r)+this.intToHex(t.g)+this.intToHex(t.b)}intToHex(t){let e=parseInt(t).toString(16);return 1===e.length&&(e="0"+e),e.toUpperCase()}hexToInt(t){return parseInt(t,16)}setRgb(t,e,r){let n=function(t){return t<0||t>255||isNaN(parseInt(t))?0:t};this.r=n(t),this.g=n(e),this.b=n(r),this.hex=this.rgbToHex(this)}setHex(t){this.hex=t;let e=this.hexToRgb(this.hex);this.r=e.r,this.g=e.g,this.b=e.b}}}()},9:function(t,e){Smart("smart-button",class extends Smart.ContentElement{static get properties(){return{value:{type:"string"},name:{type:"string"},type:{value:"button",type:"string"},clickMode:{allowedValues:["hover","press","release","pressAndRelease"],type:"string",value:"release"}}}static get styleUrls(){return["smart.button.css"]}template(){return"<button class=\"smart-button smart-unselectable\" inner-h-t-m-l='[[innerHTML]]' id='button' type='[[type]]' name='[[name]]' value='[[value]]' disabled='[[disabled]]' role=\"presentation\"></button>"}refresh(){}static get listeners(){return{"button.down":"_downHandler","button.mouseenter":"_mouseEnterHandler","button.mouseleave":"_mouseLeaveHandler","button.touchend":"_touchEndHandler","button.click":"_clickHandler","button.up":"_upHandler",up:"_upHandler","button.focus":"_focusHandler","button.blur":"_blurHandler"}}focus(){const t=this;t.$.button?t.$.button.focus():HTMLElement.prototype.focus.call(t)}blur(){const t=this;t.$.button?t.$.button.blur():HTMLElement.prototype.blur.call(t)}_upHandler(t){const e=this;if(t.stopPropagation(),e.$.setAttributeValue("active",!1),e.dataset.target){const r=document.querySelector(e.dataset.target);let n=e.dataset.toggle;const o="smart-window".toLowerCase();if(r&&r.nodeName.toLowerCase()===o&&"modal"===n&&(n="openModal"),"tab"===n||"pill"===n||"list"===n){const t=this.closest(".nav, .list-group"),n='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',o=!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?t.children(".active"):t.querySelectorAll("li > .active");if(t){const r=t.querySelectorAll(n);for(let t=0;t<r.length;t++)r[t].classList.remove("primary");for(let t=0;t<o.length;t++)o[t].classList.remove("active");let a=e.parentNode;for(;a;){if("LI"===a.nodeName){a.classList.add("active");break}a=a.parentNode}e.classList.add("primary")}return r.parentNode.querySelectorAll(".active").forEach(t=>{t.classList.remove("active"),t.classList.add("smart-hidden")}),r.classList.add("active"),void r.classList.remove("smart-hidden")}n&&r&&!r[n]&&"collapse"===n&&(setTimeout(()=>{r.classList.contains("smart-hidden")?r.classList.remove("smart-hidden"):r.classList.add("smart-hidden")}),t.originalEvent.preventDefault()),n&&r&&!r[n]&&"dropdown"===n?(setTimeout(()=>{r.opened=!r.opened}),t.originalEvent.preventDefault()):n&&r&&r[n]&&(setTimeout(()=>{r[n]()},50),t.originalEvent.preventDefault())}}_focusHandler(){this.$.setAttributeValue("focus",!0),this.$.fireEvent("focus")}_blurHandler(){this.$.setAttributeValue("focus",!1),this.$.fireEvent("blur")}_clickHandler(t){("release"!==this.clickMode&&"pressAndRelease"!==this.clickMode||this.readonly)&&(t.preventDefault(),t.stopPropagation())}_downHandler(t){const e=this;if(!(e.disabled||(e.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(e,t.pageX,t.pageY),e.$.setAttributeValue("active",!0),"press"!==e.clickMode&&"pressAndRelease"!==e.clickMode||e.readonly))){if(e.hasAttribute("smart-blazor"))return void e.$.dispatchEvent(new Event("click"));const r="buttons"in t?t.buttons:t.which;e.$.fireEvent("click",{buttons:r,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY})}}_mouseEnterHandler(t){const e=this;if(!e.readonly&&(e.$button.setAttributeValue("hover",!0),e.$.setAttributeValue("hover",!0),"hover"===e.clickMode)){const r="buttons"in t?t.buttons:t.which;if(e.hasAttribute("smart-blazor"))return void e.$.dispatchEvent(new Event("click"));e.$.fireEvent("click",{buttons:r,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY})}}_touchEndHandler(){const t=this;setTimeout((function(){t.$button.setAttributeValue("hover",!1),t.$.setAttributeValue("hover",!1)}),300)}_mouseLeaveHandler(){this.$button.setAttributeValue("hover",!1),this.$.setAttributeValue("hover",!1)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;"disabled"===t?(n._setFocusable(),n.$button&&n.$button.setAttributeValue("hover",!1),n.$.setAttributeValue("hover",!1),n instanceof Smart.RepeatButton&&n._stopRepeat()):"unfocusable"===t&&n._setFocusable()}_setFocusable(){const t=this.$.button?this.$.button:this;if(this.disabled||this.unfocusable)return t.removeAttribute("tabindex"),void(t.tabIndex=-1);t.tabIndex=this.tabIndex>0?this.tabIndex:0}ready(){const t=this;super.ready(),t.setAttribute("role","button"),t._setFocusable(),t.enableShadowDOM&&t.$.hiddenInput&&t.appendChild(t.$.hiddenInput)}}),Smart("smart-repeat-button",class extends Smart.Button{static get properties(){return{delay:{value:50,type:"number"},initialDelay:{value:150,type:"number"}}}static get listeners(){return{"button.down":"_startRepeat","button.mouseenter":"_overriddenHandler","button.mouseleave":"_overriddenHandler","button.pointerenter":"_updateInBoundsFlag","button.pointerleave":"_updateInBoundsFlag","button.touchmove":"_touchmoveHandler","document.up":"_stopRepeat"}}_clickHandler(t){const e=this;("release"!==e.clickMode||e.preventDefaultClick||e.readonly||e.disabled)&&(t.preventDefault(),t.stopPropagation(),e.preventDefaultClick=!1)}_updateInBoundsFlag(t){const e=this;-1!==t.type.indexOf("leave")?(e._isPointerInBounds=!1,e.$button.setAttributeValue("hover",!1),e.$.setAttributeValue("hover",!1)):(e._isPointerInBounds=!0,e.$button.setAttributeValue("hover",!0),e.$.setAttributeValue("hover",!0)),1!==("buttons"in t?t.buttons:t.which)&&e._stopRepeat(t)}_startRepeat(t){const e=this;e.setAttribute("active",""),e._initialTimer||e.readonly||(e._initialTimer=setTimeout((function(){e._repeatTimer=setInterval(()=>{if(e._isPointerInBounds){if(e.hasAttribute("smart-blazor"))return e.$.dispatchEvent(new Event("click")),void(e.preventDefaultClick=!0);const r="buttons"in t?t.buttons:t.which;e.$.fireEvent("click",{buttons:r,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY}),e.preventDefaultClick=!0}},e.delay)}),e.initialDelay))}_stopRepeat(t){const e=this;e.readonly||t&&("pointercancel"===t.type||t.originalEvent&&"pointercancel"===t.originalEvent.type)||(e.$.setAttributeValue("active",!1),e._repeatTimer&&(clearInterval(e._repeatTimer),e._repeatTimer=null),e._initialTimer&&(clearTimeout(e._initialTimer),e._initialTimer=null))}_touchmoveHandler(t){this.preventDefaultClick&&t.cancelable&&(t.preventDefault(),t.stopPropagation())}_overriddenHandler(){}}),Smart("smart-toggle-button",class extends Smart.Button{static get properties(){return{checked:{value:!1,type:"boolean?"},falseContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminate:{value:!1,type:"boolean"},trueContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateTemplate:{value:null,type:"any"},trueTemplate:{value:null,type:"any"},falseTemplate:{value:null,type:"any"},type:{value:"toggle",type:"string",defaultReflectToAttribute:!0,readonly:!0}}}static get listeners(){return{keydown:"_keyHandler",keyup:"_keyHandler",dragstart:"_dragStartHandler","button.click":"_buttonClickHandler","button.mouseenter":"_buttonMouseEnterHandler","button.mouseleave":"_buttonMouseLeaveHandler","document.up":"_documentUpHandler"}}ready(){super.ready(),this._setAriaState(),this._updateGroupValue()}_setAriaState(){const t=this,e=t.checked;null!==e?t.setAttribute("aria-pressed",e):t.setAttribute("aria-pressed","mixed")}_buttonClickHandler(){}_buttonMouseLeaveHandler(){this.removeAttribute("hover")}_buttonMouseEnterHandler(){this.setAttribute("hover",""),this.disabled||this.readonly||"hover"!==this.clickMode||(this._changeCheckState("pointer"),this.focus(),this._updateHidenInputNameAndValue())}_documentUpHandler(t){this._pressed&&(this._pressed=!1,this.disabled||this.readonly||"press"===this.clickMode||"pointercancel"===t.originalEvent.type||(this._changeCheckState("pointer"),this.focus(),this._updateHidenInputNameAndValue()))}_downHandler(t){const e=this;e.disabled||e.readonly||(e.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(e,t.pageX,t.pageY),e._pressed=!0,"press"!==e.clickMode&&"pressAndRelease"!==e.clickMode||(e._changeCheckState("pointer"),e.hasAttribute("smart-blazor")?e.$.dispatchEvent(new Event("click")):e.$.fireEvent("click"),e._updateHidenInputNameAndValue()),"press"===e.clickMode&&(t.preventDefault(),t.stopPropagation()))}_dragStartHandler(t){t.preventDefault()}_keyHandler(t){const e=this;if(!0!==e.disabled&&!e.readonly&&32===t.keyCode){if("keydown"===t.type)return void t.preventDefault();if("none"===e.switchMode)return;e._changeCheckState("keyboard"),e._updateHidenInputNameAndValue()}}_updateGroupValue(){const t=this;if(t.dataset.target){const e=document.querySelector(t.dataset.target);if(e){const r=document.querySelectorAll('[data-target="'+t.dataset.target+'"]'),n=[];if(t.checked){const r=t.dataset.property,n=t.dataset.value;if(r&&void 0!==e[r]){let t=n;"true"===t&&(t=!0),"false"===t&&(t=!1),e[r]=t}}for(let e=0;e<r.length;e++){const o=r[e];o.checked&&(o.name?(n.push(o.name),t.id&&o.setAttribute("data-id",t.id)):t.id&&n.push(t.id))}e.value=n.toString(),t._targetDispatchTimer&&clearTimeout(t._targetDispatchTimer),t._targetDispatchTimer=setTimeout(()=>{e.dispatchEvent(new Event("change"))},100)}}}_changeCheckState(t){const e=this;let r=null;null===e.checked?e.checked=!0:(r=e.checked,e.checked=!e.checked),e._handleTextSelection(),e.$.fireEvent("change",{value:e.checked,oldValue:r,changeType:t}),e.checked?e.$.fireEvent("checkValue",{changeType:t}):e.$.fireEvent("uncheckValue",{changeType:t}),e._updateGroupValue(),e._setAriaState()}_handleTextSelection(){const t=this;t.$.addClass("smart-unselectable"),t.timer&&clearTimeout(t.timer),t.timer=setTimeout(()=>t.$.removeClass("smart-unselectable"),500)}propertyChangedHandler(t,e,r){super.propertyChangedHandler(t,e,r);const n=this;if("checked"===t)return n.$.fireEvent("change",{value:r,oldValue:e,changeType:"api"}),void n._setAriaState();switch(t){case"trueTemplate":n._handleTemplate(!0);break;case"falseTemplate":n._handleTemplate(!1);break;case"indeterminateTemplate":n._handleTemplate()}}_htmlBindOnInitialization(){this._bindContentProperty("trueContent","smart-true-content"),this._bindContentProperty("falseContent","smart-false-content"),this._bindContentProperty("indeterminateContent","smart-indeterminate-content")}_bindContentProperty(t,e){const r=this;if(!r.$[t+"Container"])return;let n=document.createElement("div");n.innerHTML=r.innerHTML;let o,a=n.getElementsByClassName(e);if(a.length>0)for(let t=0;t<a.length;t++)o=a[t];""===r[t]&&(r[t]=void 0===o?"":o.outerHTML),r.$[t+"Container"].innerHTML=r[t]}_updateContentProperties(){const t=this;function e(e){t.$[e+"Container"]&&(t[e]=t.$[e+"Container"].innerHTML)}e("trueContent"),e("falseContent"),e("indeterminateContent")}_updateHidenInputValue(){const t=this;if(!t.$.hiddenInput)return;let e;e=null===t.checked?"null":!1===t.checked?"off":t.value||"on",t.$.hiddenInput.setAttribute("value",e)}_updateHidenInputName(){if(!this.$.hiddenInput)return;let t=!1===this.checked?"":this.name||"";this.$.hiddenInput.setAttribute("name",t)}_updateHidenInputNameAndValue(){this._updateHidenInputName(),this._updateHidenInputValue()}_handleTemplate(t,e){const r=this;let n,o,a;if(!0===t?(n=r.trueTemplate,o=r.$.trueContentContainer,a=r.trueContent):!1===t?(n=r.falseTemplate,o=r.$.falseContentContainer,a=r.falseContent):(n=r.indeterminateTemplate,o=r.$.indeterminateContentContainer,a=r.indeterminateContent),e&&(o.innerHTML=a||""),null===n||!n)return;if("function"==typeof n)return void n(o,{value:a});if(!("content"in document.createElement("template")))return void r.error(r.localize("htmlTemplateNotSuported",{elementType:r.nodeName.toLowerCase()}));if(n=document.getElementById(n),null===n||!("content"in n))return void r.error(r.localize("invalidTemplate",{elementType:r.nodeName.toLowerCase(),property:"template"}));const i=n.content,s=i.childNodes.length,l=/{{\w+}}/g;let d,m=[];for(let t=0;t<s;t++)for(d=l.exec(i.childNodes[t].innerHTML);d;)m.push({childNodeIndex:t,bindingString:d[0]}),d=l.exec(i.childNodes[t].innerHTML);const c=m.length;let h,u,p=document.importNode(n.content,!0);for(let t=0;t<c;t++){h=p.childNodes[m[t].childNodeIndex],u=m.length;for(let e=0;e<u;e++)h.innerHTML=h.innerHTML.replace(m[t].bindingString,a)}o.innerHTML="";for(let t=0;t<p.childNodes.length;t++)p.childNodes[t].outerHTML&&(o.innerHTML+=p.childNodes[t].outerHTML)}})}});
|