@jigowatts/jigowatts-ui 1.2.2 → 2.1.0
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/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/components/Button/index.cjs.js.map +1 -1
- package/dist/components/Button/index.es.js.map +1 -1
- package/dist/components/Button/index.test.cjs.js +1 -1
- package/dist/components/Button/index.test.cjs.js.map +1 -1
- package/dist/components/Button/index.test.es.js +1 -1
- package/dist/components/Button/index.test.es.js.map +1 -1
- package/dist/components/Card/index.cjs.js +1 -1
- package/dist/components/Card/index.cjs.js.map +1 -1
- package/dist/components/Card/index.es.js +1 -1
- package/dist/components/Card/index.es.js.map +1 -1
- package/dist/components/Card/index.test.cjs.js +1 -1
- package/dist/components/Card/index.test.cjs.js.map +1 -1
- package/dist/components/Card/index.test.es.js +1 -1
- package/dist/components/Card/index.test.es.js.map +1 -1
- package/dist/components/CardWithTitle/index.cjs.js +1 -1
- package/dist/components/CardWithTitle/index.cjs.js.map +1 -1
- package/dist/components/CardWithTitle/index.es.js +1 -1
- package/dist/components/CardWithTitle/index.es.js.map +1 -1
- package/dist/components/CardWithTitle/index.test.cjs.js +1 -1
- package/dist/components/CardWithTitle/index.test.cjs.js.map +1 -1
- package/dist/components/CardWithTitle/index.test.es.js +2 -2
- package/dist/components/CardWithTitle/index.test.es.js.map +1 -1
- package/dist/components/CopyableBox/index.cjs.js +2 -0
- package/dist/components/CopyableBox/index.cjs.js.map +1 -0
- package/dist/components/CopyableBox/index.d.ts +23 -0
- package/dist/components/CopyableBox/index.es.js +46 -0
- package/dist/components/CopyableBox/index.es.js.map +1 -0
- package/dist/components/CopyableBox/index.test.cjs.js +2 -0
- package/dist/components/CopyableBox/index.test.cjs.js.map +1 -0
- package/dist/components/CopyableBox/index.test.d.ts +1 -0
- package/dist/components/CopyableBox/index.test.es.js +39 -0
- package/dist/components/CopyableBox/index.test.es.js.map +1 -0
- package/dist/components/CustomLink/index.cjs.js +1 -1
- package/dist/components/CustomLink/index.cjs.js.map +1 -1
- package/dist/components/CustomLink/index.es.js +1 -1
- package/dist/components/CustomLink/index.es.js.map +1 -1
- package/dist/components/CustomLink/index.test.cjs.js +1 -1
- package/dist/components/CustomLink/index.test.cjs.js.map +1 -1
- package/dist/components/CustomLink/index.test.es.js +2 -2
- package/dist/components/CustomLink/index.test.es.js.map +1 -1
- package/dist/components/DataTable/index.cjs.js +1 -1
- package/dist/components/DataTable/index.cjs.js.map +1 -1
- package/dist/components/DataTable/index.es.js +1 -1
- package/dist/components/DataTable/index.es.js.map +1 -1
- package/dist/components/DataTable/index.test.cjs.js +1 -1
- package/dist/components/DataTable/index.test.cjs.js.map +1 -1
- package/dist/components/DataTable/index.test.es.js +3 -3
- package/dist/components/DataTable/index.test.es.js.map +1 -1
- package/dist/components/DatePickerController/index.cjs.js +1 -1
- package/dist/components/DatePickerController/index.cjs.js.map +1 -1
- package/dist/components/DatePickerController/index.d.ts +1 -0
- package/dist/components/DatePickerController/index.es.js +1 -1
- package/dist/components/DatePickerController/index.es.js.map +1 -1
- package/dist/components/DatePickerController/index.test.cjs.js +1 -1
- package/dist/components/DatePickerController/index.test.cjs.js.map +1 -1
- package/dist/components/DatePickerController/index.test.es.js +1 -1
- package/dist/components/DatePickerController/index.test.es.js.map +1 -1
- package/dist/components/ErrorMessage/index.cjs.js +1 -1
- package/dist/components/ErrorMessage/index.cjs.js.map +1 -1
- package/dist/components/ErrorMessage/index.es.js +1 -1
- package/dist/components/ErrorMessage/index.es.js.map +1 -1
- package/dist/components/ErrorMessage/index.test.cjs.js +1 -1
- package/dist/components/ErrorMessage/index.test.cjs.js.map +1 -1
- package/dist/components/ErrorMessage/index.test.es.js +2 -2
- package/dist/components/ErrorMessage/index.test.es.js.map +1 -1
- package/dist/components/EvseStateLabel/index.cjs.js +1 -1
- package/dist/components/EvseStateLabel/index.cjs.js.map +1 -1
- package/dist/components/EvseStateLabel/index.es.js +1 -1
- package/dist/components/EvseStateLabel/index.es.js.map +1 -1
- package/dist/components/FlexButtons/index.cjs.js +1 -1
- package/dist/components/FlexButtons/index.cjs.js.map +1 -1
- package/dist/components/FlexButtons/index.es.js +1 -1
- package/dist/components/FlexButtons/index.es.js.map +1 -1
- package/dist/components/FlexButtons/index.test.cjs.js +1 -1
- package/dist/components/FlexButtons/index.test.cjs.js.map +1 -1
- package/dist/components/FlexButtons/index.test.es.js +2 -2
- package/dist/components/FlexButtons/index.test.es.js.map +1 -1
- package/dist/components/Form/index.cjs.js +1 -1
- package/dist/components/Form/index.cjs.js.map +1 -1
- package/dist/components/Form/index.es.js +1 -1
- package/dist/components/Form/index.es.js.map +1 -1
- package/dist/components/Form/index.test.cjs.js +1 -1
- package/dist/components/Form/index.test.cjs.js.map +1 -1
- package/dist/components/Form/index.test.es.js +2 -2
- package/dist/components/Form/index.test.es.js.map +1 -1
- package/dist/components/FormItem/index.cjs.js +1 -1
- package/dist/components/FormItem/index.cjs.js.map +1 -1
- package/dist/components/FormItem/index.es.js +1 -1
- package/dist/components/FormItem/index.es.js.map +1 -1
- package/dist/components/FormItem/index.test.cjs.js +1 -1
- package/dist/components/FormItem/index.test.cjs.js.map +1 -1
- package/dist/components/FormItem/index.test.es.js +2 -2
- package/dist/components/FormItem/index.test.es.js.map +1 -1
- package/dist/components/FormTitle/index.cjs.js +1 -1
- package/dist/components/FormTitle/index.cjs.js.map +1 -1
- package/dist/components/FormTitle/index.es.js +1 -1
- package/dist/components/FormTitle/index.es.js.map +1 -1
- package/dist/components/FormTitle/index.test.cjs.js +1 -1
- package/dist/components/FormTitle/index.test.cjs.js.map +1 -1
- package/dist/components/FormTitle/index.test.es.js +2 -2
- package/dist/components/FormTitle/index.test.es.js.map +1 -1
- package/dist/components/HStack/index.cjs.js +1 -1
- package/dist/components/HStack/index.cjs.js.map +1 -1
- package/dist/components/HStack/index.es.js +1 -1
- package/dist/components/HStack/index.es.js.map +1 -1
- package/dist/components/HStack/index.test.cjs.js +1 -1
- package/dist/components/HStack/index.test.cjs.js.map +1 -1
- package/dist/components/HStack/index.test.es.js +2 -2
- package/dist/components/HStack/index.test.es.js.map +1 -1
- package/dist/components/HtmlRenderer/index.cjs.js +1 -1
- package/dist/components/HtmlRenderer/index.es.js +1 -1
- package/dist/components/HtmlRenderer/index.test.cjs.js +1 -1
- package/dist/components/HtmlRenderer/index.test.cjs.js.map +1 -1
- package/dist/components/HtmlRenderer/index.test.es.js +2 -2
- package/dist/components/HtmlRenderer/index.test.es.js.map +1 -1
- package/dist/components/Input/index.cjs.js +1 -1
- package/dist/components/Input/index.cjs.js.map +1 -1
- package/dist/components/Input/index.es.js +1 -1
- package/dist/components/Input/index.es.js.map +1 -1
- package/dist/components/Input/index.test.cjs.js +1 -1
- package/dist/components/Input/index.test.cjs.js.map +1 -1
- package/dist/components/Input/index.test.es.js +1 -1
- package/dist/components/Input/index.test.es.js.map +1 -1
- package/dist/components/InputController/index.cjs.js.map +1 -1
- package/dist/components/InputController/index.es.js.map +1 -1
- package/dist/components/InputController/index.test.cjs.js +1 -1
- package/dist/components/InputController/index.test.cjs.js.map +1 -1
- package/dist/components/InputController/index.test.es.js +1 -1
- package/dist/components/InputController/index.test.es.js.map +1 -1
- package/dist/components/InputGroup/index.cjs.js +1 -1
- package/dist/components/InputGroup/index.cjs.js.map +1 -1
- package/dist/components/InputGroup/index.es.js +1 -1
- package/dist/components/InputGroup/index.es.js.map +1 -1
- package/dist/components/InputGroup/index.test.cjs.js +1 -1
- package/dist/components/InputGroup/index.test.cjs.js.map +1 -1
- package/dist/components/InputGroup/index.test.es.js +2 -2
- package/dist/components/InputGroup/index.test.es.js.map +1 -1
- package/dist/components/Label/index.cjs.js +1 -1
- package/dist/components/Label/index.cjs.js.map +1 -1
- package/dist/components/Label/index.es.js +1 -1
- package/dist/components/Label/index.es.js.map +1 -1
- package/dist/components/Label/index.test.cjs.js +1 -1
- package/dist/components/Label/index.test.cjs.js.map +1 -1
- package/dist/components/Label/index.test.es.js +2 -2
- package/dist/components/Label/index.test.es.js.map +1 -1
- package/dist/components/LabeledContent/index.cjs.js +1 -1
- package/dist/components/LabeledContent/index.cjs.js.map +1 -1
- package/dist/components/LabeledContent/index.es.js +1 -1
- package/dist/components/LabeledContent/index.es.js.map +1 -1
- package/dist/components/LabeledContent/index.test.cjs.js +1 -1
- package/dist/components/LabeledContent/index.test.cjs.js.map +1 -1
- package/dist/components/LabeledContent/index.test.es.js +1 -1
- package/dist/components/LabeledContent/index.test.es.js.map +1 -1
- package/dist/components/LoadingOverlay/index.cjs.js +1 -1
- package/dist/components/LoadingOverlay/index.cjs.js.map +1 -1
- package/dist/components/LoadingOverlay/index.es.js +1 -1
- package/dist/components/LoadingOverlay/index.es.js.map +1 -1
- package/dist/components/LoadingOverlay/index.test.cjs.js +1 -1
- package/dist/components/LoadingOverlay/index.test.cjs.js.map +1 -1
- package/dist/components/LoadingOverlay/index.test.es.js +2 -2
- package/dist/components/LoadingOverlay/index.test.es.js.map +1 -1
- package/dist/components/Map/index.cjs.js +2 -2
- package/dist/components/Map/index.cjs.js.map +1 -1
- package/dist/components/Map/index.es.js +709 -716
- package/dist/components/Map/index.es.js.map +1 -1
- package/dist/components/MaxWidthContainer/index.cjs.js +1 -1
- package/dist/components/MaxWidthContainer/index.cjs.js.map +1 -1
- package/dist/components/MaxWidthContainer/index.es.js +1 -1
- package/dist/components/MaxWidthContainer/index.es.js.map +1 -1
- package/dist/components/MaxWidthContainer/index.test.cjs.js +1 -1
- package/dist/components/MaxWidthContainer/index.test.cjs.js.map +1 -1
- package/dist/components/MaxWidthContainer/index.test.es.js +2 -2
- package/dist/components/MaxWidthContainer/index.test.es.js.map +1 -1
- package/dist/components/NumericFieldController/index.cjs.js.map +1 -1
- package/dist/components/NumericFieldController/index.d.ts +1 -0
- package/dist/components/NumericFieldController/index.es.js.map +1 -1
- package/dist/components/NumericFieldController/index.test.cjs.js +1 -1
- package/dist/components/NumericFieldController/index.test.cjs.js.map +1 -1
- package/dist/components/NumericFieldController/index.test.es.js +1 -1
- package/dist/components/NumericFieldController/index.test.es.js.map +1 -1
- package/dist/components/OfflineLabel/index.cjs.js +1 -1
- package/dist/components/OfflineLabel/index.cjs.js.map +1 -1
- package/dist/components/OfflineLabel/index.es.js +1 -1
- package/dist/components/OfflineLabel/index.es.js.map +1 -1
- package/dist/components/PageSizeSelector/index.cjs.js +1 -1
- package/dist/components/PageSizeSelector/index.cjs.js.map +1 -1
- package/dist/components/PageSizeSelector/index.es.js +2 -2
- package/dist/components/PageSizeSelector/index.es.js.map +1 -1
- package/dist/components/Pagination/index.cjs.js +2 -2
- package/dist/components/Pagination/index.cjs.js.map +1 -1
- package/dist/components/Pagination/index.es.js +17 -17
- package/dist/components/Pagination/index.es.js.map +1 -1
- package/dist/components/Pagination/index.test.cjs.js +1 -1
- package/dist/components/Pagination/index.test.cjs.js.map +1 -1
- package/dist/components/Pagination/index.test.es.js +1 -1
- package/dist/components/Pagination/index.test.es.js.map +1 -1
- package/dist/components/PasswordInputController/index.cjs.js.map +1 -1
- package/dist/components/PasswordInputController/index.es.js.map +1 -1
- package/dist/components/PasswordInputController/index.test.cjs.js +1 -1
- package/dist/components/PasswordInputController/index.test.cjs.js.map +1 -1
- package/dist/components/PasswordInputController/index.test.es.js +1 -1
- package/dist/components/PasswordInputController/index.test.es.js.map +1 -1
- package/dist/components/RadioButton/index.cjs.js +1 -1
- package/dist/components/RadioButton/index.es.js +1 -1
- package/dist/components/RadioButton/index.test.cjs.js +1 -1
- package/dist/components/RadioButton/index.test.cjs.js.map +1 -1
- package/dist/components/RadioButton/index.test.es.js +3 -3
- package/dist/components/RadioButton/index.test.es.js.map +1 -1
- package/dist/components/RadioGroupController/index.cjs.js.map +1 -1
- package/dist/components/RadioGroupController/index.es.js.map +1 -1
- package/dist/components/RadioGroupController/index.test.cjs.js +1 -1
- package/dist/components/RadioGroupController/index.test.cjs.js.map +1 -1
- package/dist/components/RadioGroupController/index.test.es.js +1 -1
- package/dist/components/RadioGroupController/index.test.es.js.map +1 -1
- package/dist/components/RangeDatePicker/index.cjs.js +1 -1
- package/dist/components/RangeDatePicker/index.cjs.js.map +1 -1
- package/dist/components/RangeDatePicker/index.es.js +1 -1
- package/dist/components/RangeDatePicker/index.es.js.map +1 -1
- package/dist/components/RangeDatePickerController/index.cjs.js.map +1 -1
- package/dist/components/RangeDatePickerController/index.es.js.map +1 -1
- package/dist/components/RangeDatePickerController/index.test.cjs.js +1 -1
- package/dist/components/RangeDatePickerController/index.test.cjs.js.map +1 -1
- package/dist/components/RangeDatePickerController/index.test.es.js +1 -1
- package/dist/components/RangeDatePickerController/index.test.es.js.map +1 -1
- package/dist/components/ReportCard/index.cjs.js +1 -1
- package/dist/components/ReportCard/index.cjs.js.map +1 -1
- package/dist/components/ReportCard/index.es.js +1 -1
- package/dist/components/ReportCard/index.es.js.map +1 -1
- package/dist/components/ReportCard/index.test.cjs.js +1 -1
- package/dist/components/ReportCard/index.test.cjs.js.map +1 -1
- package/dist/components/ReportCard/index.test.es.js +1 -1
- package/dist/components/ReportCard/index.test.es.js.map +1 -1
- package/dist/components/ReportChart/index.cjs.js +1 -1
- package/dist/components/ReportChart/index.cjs.js.map +1 -1
- package/dist/components/ReportChart/index.es.js +1 -1
- package/dist/components/ReportChart/index.es.js.map +1 -1
- package/dist/components/ReportChartMulti/index.cjs.js +1 -1
- package/dist/components/ReportChartMulti/index.cjs.js.map +1 -1
- package/dist/components/ReportChartMulti/index.es.js +1 -1
- package/dist/components/ReportChartMulti/index.es.js.map +1 -1
- package/dist/components/ReportChartMulti/index.test.cjs.js +1 -1
- package/dist/components/ReportChartMulti/index.test.cjs.js.map +1 -1
- package/dist/components/ReportChartMulti/index.test.es.js +1 -1
- package/dist/components/ReportChartMulti/index.test.es.js.map +1 -1
- package/dist/components/ScrollableDialog/index.cjs.js.map +1 -1
- package/dist/components/ScrollableDialog/index.es.js.map +1 -1
- package/dist/components/ScrollableDialog/index.test.cjs.js +1 -1
- package/dist/components/ScrollableDialog/index.test.cjs.js.map +1 -1
- package/dist/components/ScrollableDialog/index.test.es.js +1 -1
- package/dist/components/ScrollableDialog/index.test.es.js.map +1 -1
- package/dist/components/SearchForm/index.cjs.js.map +1 -1
- package/dist/components/SearchForm/index.es.js.map +1 -1
- package/dist/components/SelectBox/index.cjs.js +1 -1
- package/dist/components/SelectBox/index.es.js +1 -1
- package/dist/components/SelectBox/index.test.cjs.js +1 -1
- package/dist/components/SelectBox/index.test.cjs.js.map +1 -1
- package/dist/components/SelectBox/index.test.es.js +2 -2
- package/dist/components/SelectBox/index.test.es.js.map +1 -1
- package/dist/components/SelectBoxController/index.cjs.js.map +1 -1
- package/dist/components/SelectBoxController/index.es.js.map +1 -1
- package/dist/components/SelectBoxController/index.test.cjs.js +1 -1
- package/dist/components/SelectBoxController/index.test.cjs.js.map +1 -1
- package/dist/components/SelectBoxController/index.test.es.js +1 -1
- package/dist/components/SelectBoxController/index.test.es.js.map +1 -1
- package/dist/components/SideMenu/index.cjs.js.map +1 -1
- package/dist/components/SideMenu/index.es.js.map +1 -1
- package/dist/components/SideMenu/index.test.cjs.js +1 -1
- package/dist/components/SideMenu/index.test.cjs.js.map +1 -1
- package/dist/components/SideMenu/index.test.es.js +3 -3
- package/dist/components/SideMenu/index.test.es.js.map +1 -1
- package/dist/components/SpinnerButton/index.cjs.js.map +1 -1
- package/dist/components/SpinnerButton/index.es.js.map +1 -1
- package/dist/components/SpinnerButton/index.test.cjs.js +1 -1
- package/dist/components/SpinnerButton/index.test.cjs.js.map +1 -1
- package/dist/components/SpinnerButton/index.test.es.js +2 -2
- package/dist/components/SpinnerButton/index.test.es.js.map +1 -1
- package/dist/components/SubMenu/index.cjs.js.map +1 -1
- package/dist/components/SubMenu/index.es.js.map +1 -1
- package/dist/components/SubMenu/index.test.cjs.js +1 -1
- package/dist/components/SubMenu/index.test.cjs.js.map +1 -1
- package/dist/components/SubMenu/index.test.es.js +1 -1
- package/dist/components/SubMenu/index.test.es.js.map +1 -1
- package/dist/components/Tabs/index.cjs.js.map +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/index.es.js.map +1 -1
- package/dist/components/Tabs/index.test.cjs.js +1 -1
- package/dist/components/Tabs/index.test.cjs.js.map +1 -1
- package/dist/components/Tabs/index.test.es.js +2 -2
- package/dist/components/Tabs/index.test.es.js.map +1 -1
- package/dist/components/Textarea/index.cjs.js.map +1 -1
- package/dist/components/Textarea/index.es.js.map +1 -1
- package/dist/components/Textarea/index.test.cjs.js +1 -1
- package/dist/components/Textarea/index.test.cjs.js.map +1 -1
- package/dist/components/Textarea/index.test.es.js +2 -2
- package/dist/components/Textarea/index.test.es.js.map +1 -1
- package/dist/components/Title/index.cjs.js +1 -1
- package/dist/components/Title/index.cjs.js.map +1 -1
- package/dist/components/Title/index.es.js +9 -2
- package/dist/components/Title/index.es.js.map +1 -1
- package/dist/components/Title/index.test.cjs.js +1 -1
- package/dist/components/Title/index.test.cjs.js.map +1 -1
- package/dist/components/Title/index.test.es.js +2 -2
- package/dist/components/Title/index.test.es.js.map +1 -1
- package/dist/components/ToggleButton/index.cjs.js.map +1 -1
- package/dist/components/ToggleButton/index.es.js.map +1 -1
- package/dist/components/ToggleButton/index.test.cjs.js +1 -1
- package/dist/components/ToggleButton/index.test.cjs.js.map +1 -1
- package/dist/components/ToggleButton/index.test.es.js +1 -1
- package/dist/components/ToggleButton/index.test.es.js.map +1 -1
- package/dist/components/TwoFaDialog/index.cjs.js +19 -0
- package/dist/components/TwoFaDialog/index.cjs.js.map +1 -0
- package/dist/components/TwoFaDialog/index.d.ts +62 -0
- package/dist/components/TwoFaDialog/index.es.js +1129 -0
- package/dist/components/TwoFaDialog/index.es.js.map +1 -0
- package/dist/components/TwoFaDialog/index.test.cjs.js +3 -0
- package/dist/components/TwoFaDialog/index.test.cjs.js.map +1 -0
- package/dist/components/TwoFaDialog/index.test.d.ts +1 -0
- package/dist/components/TwoFaDialog/index.test.es.js +73 -0
- package/dist/components/TwoFaDialog/index.test.es.js.map +1 -0
- package/dist/components/TwoFaInputController/index.cjs.js +2 -0
- package/dist/components/TwoFaInputController/index.cjs.js.map +1 -0
- package/dist/components/TwoFaInputController/index.d.ts +34 -0
- package/dist/components/TwoFaInputController/index.es.js +87 -0
- package/dist/components/TwoFaInputController/index.es.js.map +1 -0
- package/dist/components/TwoFaInputController/index.test.cjs.js +2 -0
- package/dist/components/TwoFaInputController/index.test.cjs.js.map +1 -0
- package/dist/components/TwoFaInputController/index.test.d.ts +1 -0
- package/dist/components/TwoFaInputController/index.test.es.js +123 -0
- package/dist/components/TwoFaInputController/index.test.es.js.map +1 -0
- package/dist/components/TwoFaLabel/index.cjs.js +2 -0
- package/dist/components/TwoFaLabel/index.cjs.js.map +1 -0
- package/dist/components/TwoFaLabel/index.d.ts +28 -0
- package/dist/components/TwoFaLabel/index.es.js +60 -0
- package/dist/components/TwoFaLabel/index.es.js.map +1 -0
- package/dist/components/TwoFaLabel/index.test.cjs.js +2 -0
- package/dist/components/TwoFaLabel/index.test.cjs.js.map +1 -0
- package/dist/components/TwoFaLabel/index.test.d.ts +1 -0
- package/dist/components/TwoFaLabel/index.test.es.js +19 -0
- package/dist/components/TwoFaLabel/index.test.es.js.map +1 -0
- package/dist/components/VStack/index.cjs.js.map +1 -1
- package/dist/components/VStack/index.es.js.map +1 -1
- package/dist/components/VStack/index.test.cjs.js +1 -1
- package/dist/components/VStack/index.test.cjs.js.map +1 -1
- package/dist/components/VStack/index.test.es.js +2 -2
- package/dist/components/VStack/index.test.es.js.map +1 -1
- package/dist/index-9p9q0wxE.cjs +39 -0
- package/dist/index-9p9q0wxE.cjs.map +1 -0
- package/dist/{index-B663CLQ0.cjs → index-BM3CSrls.cjs} +2 -2
- package/dist/{index-B663CLQ0.cjs.map → index-BM3CSrls.cjs.map} +1 -1
- package/dist/{index-C50NsnJO.cjs → index-BoenezD8.cjs} +2 -2
- package/dist/{index-C50NsnJO.cjs.map → index-BoenezD8.cjs.map} +1 -1
- package/dist/index-C9Dbd7MM.cjs +4 -0
- package/dist/index-C9Dbd7MM.cjs.map +1 -0
- package/dist/{index-DCSLk6pp.js → index-Cj9ZvtM1.js} +1890 -2721
- package/dist/index-Cj9ZvtM1.js.map +1 -0
- package/dist/{index-pr0ncuNy.js → index-CogWL0bN.js} +2 -2
- package/dist/{index-pr0ncuNy.js.map → index-CogWL0bN.js.map} +1 -1
- package/dist/{index-CSiE_l9r.js → index-D7VNQwOv.js} +2 -2
- package/dist/{index-CSiE_l9r.js.map → index-D7VNQwOv.js.map} +1 -1
- package/dist/{index-ZP4xL6Dt.js → index-DI17hZPH.js} +7373 -6726
- package/dist/index-DI17hZPH.js.map +1 -0
- package/dist/index-Ds6DK19y.cjs +96 -0
- package/dist/index-Ds6DK19y.cjs.map +1 -0
- package/dist/{index-CCbJ_2yU.cjs → index-SHLzSoKB.cjs} +2 -2
- package/dist/{index-CCbJ_2yU.cjs.map → index-SHLzSoKB.cjs.map} +1 -1
- package/dist/{index-D5b3AasF.js → index-sarAILcU.js} +2 -2
- package/dist/{index-D5b3AasF.js.map → index-sarAILcU.js.map} +1 -1
- package/dist/{index-BqN32Ptm.js → index-zix1zlkq.js} +628 -602
- package/dist/index-zix1zlkq.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +75 -65
- package/dist/index.es.js.map +1 -1
- package/dist/{react.esm-2FJSSo-S.js → react.esm-BBESb8eI.js} +631 -609
- package/dist/react.esm-BBESb8eI.js.map +1 -0
- package/dist/{react.esm-CiMn0Rnx.cjs → react.esm-DGuy6Rn3.cjs} +33 -33
- package/dist/react.esm-DGuy6Rn3.cjs.map +1 -0
- package/package.json +42 -18
- package/dist/browser-BCVsA9bD.cjs +0 -2
- package/dist/browser-BCVsA9bD.cjs.map +0 -1
- package/dist/browser-BYxLWVDg.js +0 -654
- package/dist/browser-BYxLWVDg.js.map +0 -1
- package/dist/index-BHsZ5xlA.cjs +0 -96
- package/dist/index-BHsZ5xlA.cjs.map +0 -1
- package/dist/index-BoNIpBs7.cjs +0 -4
- package/dist/index-BoNIpBs7.cjs.map +0 -1
- package/dist/index-BpMSrIOq.cjs +0 -43
- package/dist/index-BpMSrIOq.cjs.map +0 -1
- package/dist/index-BqN32Ptm.js.map +0 -1
- package/dist/index-DCSLk6pp.js.map +0 -1
- package/dist/index-ZP4xL6Dt.js.map +0 -1
- package/dist/react.esm-2FJSSo-S.js.map +0 -1
- package/dist/react.esm-CiMn0Rnx.cjs.map +0 -1
|
@@ -1,72 +1,74 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import ai, { useRef as
|
|
4
|
-
import { createPortal as
|
|
1
|
+
import { jsxs as as, jsx as ri } from "react/jsx-runtime";
|
|
2
|
+
import { c as hs, g as us } from "../../_commonjsHelpers-DaMA6jEr.js";
|
|
3
|
+
import ai, { useRef as It, useEffect as Tt, createContext as ls, use as cs, forwardRef as we, useImperativeHandle as xe, useState as hi, useCallback as fs } from "react";
|
|
4
|
+
import { createPortal as ds } from "react-dom";
|
|
5
5
|
import '../../assets/index34.css';function kn(m, c) {
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
c !==
|
|
6
|
+
const h = It(c);
|
|
7
|
+
Tt(function() {
|
|
8
|
+
c !== h.current && m.attributionControl != null && (h.current != null && m.attributionControl.removeAttribution(h.current), c != null && m.attributionControl.addAttribution(c)), h.current = c;
|
|
9
9
|
}, [
|
|
10
10
|
m,
|
|
11
11
|
c
|
|
12
12
|
]);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
14
|
+
const _s = 1;
|
|
15
|
+
function ms(m) {
|
|
16
16
|
return Object.freeze({
|
|
17
|
-
__version:
|
|
17
|
+
__version: _s,
|
|
18
18
|
map: m
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ps(m, c) {
|
|
22
22
|
return Object.freeze({
|
|
23
23
|
...m,
|
|
24
24
|
...c
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
function
|
|
29
|
-
const m =
|
|
27
|
+
const li = ls(null);
|
|
28
|
+
function En() {
|
|
29
|
+
const m = cs(li);
|
|
30
30
|
if (m == null)
|
|
31
31
|
throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");
|
|
32
32
|
return m;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
function c(
|
|
36
|
-
const { instance: _, context: S } = m(
|
|
37
|
-
|
|
34
|
+
function gs(m) {
|
|
35
|
+
function c(h, d) {
|
|
36
|
+
const { instance: _, context: S } = m(h).current;
|
|
37
|
+
xe(d, () => _);
|
|
38
|
+
const { children: g } = h;
|
|
39
|
+
return g == null ? null : /* @__PURE__ */ ai.createElement(li, {
|
|
38
40
|
value: S
|
|
39
|
-
},
|
|
41
|
+
}, g);
|
|
40
42
|
}
|
|
41
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ we(c);
|
|
42
44
|
}
|
|
43
|
-
function
|
|
44
|
-
function c(
|
|
45
|
-
const [_, S] = hi(!1), { instance:
|
|
46
|
-
|
|
47
|
-
_ &&
|
|
45
|
+
function vs(m) {
|
|
46
|
+
function c(h, d) {
|
|
47
|
+
const [_, S] = hi(!1), { instance: g } = m(h, S).current;
|
|
48
|
+
xe(d, () => g), Tt(function() {
|
|
49
|
+
_ && g.update();
|
|
48
50
|
}, [
|
|
49
|
-
|
|
51
|
+
g,
|
|
50
52
|
_,
|
|
51
|
-
|
|
53
|
+
h.children
|
|
52
54
|
]);
|
|
53
|
-
const
|
|
54
|
-
return
|
|
55
|
+
const J = g._contentNode;
|
|
56
|
+
return J ? /* @__PURE__ */ ds(h.children, J) : null;
|
|
55
57
|
}
|
|
56
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ we(c);
|
|
57
59
|
}
|
|
58
|
-
function
|
|
59
|
-
function c(
|
|
60
|
-
const { instance: _ } = m(
|
|
61
|
-
return
|
|
60
|
+
function ys(m) {
|
|
61
|
+
function c(h, d) {
|
|
62
|
+
const { instance: _ } = m(h).current;
|
|
63
|
+
return xe(d, () => _), null;
|
|
62
64
|
}
|
|
63
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ we(c);
|
|
64
66
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
return c != null && m.instance.on(c),
|
|
69
|
-
|
|
67
|
+
function An(m, c) {
|
|
68
|
+
const h = It(void 0);
|
|
69
|
+
Tt(function() {
|
|
70
|
+
return c != null && m.instance.on(c), h.current = c, function() {
|
|
71
|
+
h.current != null && m.instance.off(h.current), h.current = null;
|
|
70
72
|
};
|
|
71
73
|
}, [
|
|
72
74
|
m,
|
|
@@ -74,16 +76,16 @@ function Zn(m, c) {
|
|
|
74
76
|
]);
|
|
75
77
|
}
|
|
76
78
|
function ci(m, c) {
|
|
77
|
-
const
|
|
78
|
-
return
|
|
79
|
+
const h = m.pane ?? c.pane;
|
|
80
|
+
return h ? {
|
|
79
81
|
...m,
|
|
80
|
-
pane:
|
|
82
|
+
pane: h
|
|
81
83
|
} : m;
|
|
82
84
|
}
|
|
83
|
-
function
|
|
84
|
-
return function(
|
|
85
|
-
const S =
|
|
86
|
-
return kn(S.map,
|
|
85
|
+
function ws(m, c) {
|
|
86
|
+
return function(d, _) {
|
|
87
|
+
const S = En(), g = m(ci(d, S), S);
|
|
88
|
+
return kn(S.map, d.attribution), An(g.current, d.eventHandlers), c(g.current, S, d, _), g;
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
91
|
var ui = { exports: {} };
|
|
@@ -92,10 +94,10 @@ var ui = { exports: {} };
|
|
|
92
94
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
93
95
|
*/
|
|
94
96
|
(function(m, c) {
|
|
95
|
-
(function(
|
|
96
|
-
|
|
97
|
-
})(
|
|
98
|
-
var
|
|
97
|
+
(function(h, d) {
|
|
98
|
+
d(c);
|
|
99
|
+
})(hs, function(h) {
|
|
100
|
+
var d = "1.9.4";
|
|
99
101
|
function _(t) {
|
|
100
102
|
var e, i, n, o;
|
|
101
103
|
for (i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -112,7 +114,7 @@ var ui = { exports: {} };
|
|
|
112
114
|
return t.prototype = e, new t();
|
|
113
115
|
};
|
|
114
116
|
}();
|
|
115
|
-
function
|
|
117
|
+
function g(t, e) {
|
|
116
118
|
var i = Array.prototype.slice;
|
|
117
119
|
if (t.bind)
|
|
118
120
|
return t.bind.apply(t, i.call(arguments, 1));
|
|
@@ -121,9 +123,9 @@ var ui = { exports: {} };
|
|
|
121
123
|
return t.apply(e, n.length ? n.concat(i.call(arguments)) : arguments);
|
|
122
124
|
};
|
|
123
125
|
}
|
|
124
|
-
var
|
|
126
|
+
var J = 0;
|
|
125
127
|
function P(t) {
|
|
126
|
-
return "_leaflet_id" in t || (t._leaflet_id = ++
|
|
128
|
+
return "_leaflet_id" in t || (t._leaflet_id = ++J), t._leaflet_id;
|
|
127
129
|
}
|
|
128
130
|
function ot(t, e, i) {
|
|
129
131
|
var n, o, s, r;
|
|
@@ -140,17 +142,17 @@ var ui = { exports: {} };
|
|
|
140
142
|
function O() {
|
|
141
143
|
return !1;
|
|
142
144
|
}
|
|
143
|
-
function
|
|
145
|
+
function X(t, e) {
|
|
144
146
|
if (e === !1)
|
|
145
147
|
return t;
|
|
146
148
|
var i = Math.pow(10, e === void 0 ? 6 : e);
|
|
147
149
|
return Math.round(t * i) / i;
|
|
148
150
|
}
|
|
149
|
-
function
|
|
151
|
+
function V(t) {
|
|
150
152
|
return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
|
|
151
153
|
}
|
|
152
154
|
function lt(t) {
|
|
153
|
-
return
|
|
155
|
+
return V(t).split(/\s+/);
|
|
154
156
|
}
|
|
155
157
|
function E(t, e) {
|
|
156
158
|
Object.prototype.hasOwnProperty.call(t, "options") || (t.options = t.options ? S(t.options) : {});
|
|
@@ -164,16 +166,16 @@ var ui = { exports: {} };
|
|
|
164
166
|
n.push(encodeURIComponent(i ? o.toUpperCase() : o) + "=" + encodeURIComponent(t[o]));
|
|
165
167
|
return (!e || e.indexOf("?") === -1 ? "?" : "&") + n.join("&");
|
|
166
168
|
}
|
|
167
|
-
var
|
|
168
|
-
function
|
|
169
|
-
return t.replace(
|
|
169
|
+
var Le = /\{ *([\w_ -]+) *\}/g;
|
|
170
|
+
function Bt(t, e) {
|
|
171
|
+
return t.replace(Le, function(i, n) {
|
|
170
172
|
var o = e[n];
|
|
171
173
|
if (o === void 0)
|
|
172
174
|
throw new Error("No value provided for variable " + i);
|
|
173
175
|
return typeof o == "function" && (o = o(e)), o;
|
|
174
176
|
});
|
|
175
177
|
}
|
|
176
|
-
var
|
|
178
|
+
var F = Array.isArray || function(t) {
|
|
177
179
|
return Object.prototype.toString.call(t) === "[object Array]";
|
|
178
180
|
};
|
|
179
181
|
function Pe(t, e) {
|
|
@@ -182,7 +184,7 @@ var ui = { exports: {} };
|
|
|
182
184
|
return i;
|
|
183
185
|
return -1;
|
|
184
186
|
}
|
|
185
|
-
var
|
|
187
|
+
var te = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
186
188
|
function be(t) {
|
|
187
189
|
return window["webkit" + t] || window["moz" + t] || window["ms" + t];
|
|
188
190
|
}
|
|
@@ -194,40 +196,40 @@ var ui = { exports: {} };
|
|
|
194
196
|
var Te = window.requestAnimationFrame || be("RequestAnimationFrame") || pi, gi = window.cancelAnimationFrame || be("CancelAnimationFrame") || be("CancelRequestAnimationFrame") || function(t) {
|
|
195
197
|
window.clearTimeout(t);
|
|
196
198
|
};
|
|
197
|
-
function
|
|
199
|
+
function q(t, e, i) {
|
|
198
200
|
if (i && Te === pi)
|
|
199
201
|
t.call(e);
|
|
200
202
|
else
|
|
201
|
-
return Te.call(window,
|
|
203
|
+
return Te.call(window, g(t, e));
|
|
202
204
|
}
|
|
203
|
-
function
|
|
205
|
+
function Q(t) {
|
|
204
206
|
t && gi.call(window, t);
|
|
205
207
|
}
|
|
206
|
-
var
|
|
208
|
+
var Zn = {
|
|
207
209
|
__proto__: null,
|
|
208
210
|
extend: _,
|
|
209
211
|
create: S,
|
|
210
|
-
bind:
|
|
212
|
+
bind: g,
|
|
211
213
|
get lastId() {
|
|
212
|
-
return
|
|
214
|
+
return J;
|
|
213
215
|
},
|
|
214
216
|
stamp: P,
|
|
215
217
|
throttle: ot,
|
|
216
218
|
wrapNum: st,
|
|
217
219
|
falseFn: O,
|
|
218
|
-
formatNum:
|
|
219
|
-
trim:
|
|
220
|
+
formatNum: X,
|
|
221
|
+
trim: V,
|
|
220
222
|
splitWords: lt,
|
|
221
223
|
setOptions: E,
|
|
222
224
|
getParamString: $t,
|
|
223
|
-
template:
|
|
224
|
-
isArray:
|
|
225
|
+
template: Bt,
|
|
226
|
+
isArray: F,
|
|
225
227
|
indexOf: Pe,
|
|
226
|
-
emptyImageUrl:
|
|
228
|
+
emptyImageUrl: te,
|
|
227
229
|
requestFn: Te,
|
|
228
230
|
cancelFn: gi,
|
|
229
|
-
requestAnimFrame:
|
|
230
|
-
cancelAnimFrame:
|
|
231
|
+
requestAnimFrame: q,
|
|
232
|
+
cancelAnimFrame: Q
|
|
231
233
|
};
|
|
232
234
|
function ct() {
|
|
233
235
|
}
|
|
@@ -238,7 +240,7 @@ var ui = { exports: {} };
|
|
|
238
240
|
n.constructor = e, e.prototype = n;
|
|
239
241
|
for (var o in this)
|
|
240
242
|
Object.prototype.hasOwnProperty.call(this, o) && o !== "prototype" && o !== "__super__" && (e[o] = this[o]);
|
|
241
|
-
return t.statics && _(e, t.statics), t.includes && (
|
|
243
|
+
return t.statics && _(e, t.statics), t.includes && (In(t.includes), _.apply(null, [n].concat(t.includes))), _(n, t), delete n.statics, delete n.includes, n.options && (n.options = i.options ? S(i.options) : {}, _(n.options, t.options)), n._initHooks = [], n.callInitHooks = function() {
|
|
242
244
|
if (!this._initHooksCalled) {
|
|
243
245
|
i.callInitHooks && i.callInitHooks.call(this), this._initHooksCalled = !0;
|
|
244
246
|
for (var s = 0, r = n._initHooks.length; s < r; s++)
|
|
@@ -256,14 +258,14 @@ var ui = { exports: {} };
|
|
|
256
258
|
};
|
|
257
259
|
return this.prototype._initHooks = this.prototype._initHooks || [], this.prototype._initHooks.push(i), this;
|
|
258
260
|
};
|
|
259
|
-
function
|
|
261
|
+
function In(t) {
|
|
260
262
|
if (!(typeof L > "u" || !L || !L.Mixin)) {
|
|
261
|
-
t =
|
|
263
|
+
t = F(t) ? t : [t];
|
|
262
264
|
for (var e = 0; e < t.length; e++)
|
|
263
265
|
t[e] === L.Mixin.Events && console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.", new Error().stack);
|
|
264
266
|
}
|
|
265
267
|
}
|
|
266
|
-
var
|
|
268
|
+
var Y = {
|
|
267
269
|
/* @method on(type: String, fn: Function, context?: Object): this
|
|
268
270
|
* Adds a listener function (`fn`) to a particular event type of the object. You can optionally specify the context of the listener (object the this keyword will point to). You can also pass several space-separated types (e.g. `'click dblclick'`).
|
|
269
271
|
*
|
|
@@ -334,8 +336,8 @@ var ui = { exports: {} };
|
|
|
334
336
|
}
|
|
335
337
|
var r = this._listens(t, e, i);
|
|
336
338
|
if (r !== !1) {
|
|
337
|
-
var
|
|
338
|
-
this._firingCount && (
|
|
339
|
+
var a = n[r];
|
|
340
|
+
this._firingCount && (a.fn = O, this._events[t] = n = n.slice()), n.splice(r, 1);
|
|
339
341
|
}
|
|
340
342
|
}
|
|
341
343
|
},
|
|
@@ -356,8 +358,8 @@ var ui = { exports: {} };
|
|
|
356
358
|
if (o) {
|
|
357
359
|
this._firingCount = this._firingCount + 1 || 1;
|
|
358
360
|
for (var s = 0, r = o.length; s < r; s++) {
|
|
359
|
-
var
|
|
360
|
-
|
|
361
|
+
var a = o[s], u = a.fn;
|
|
362
|
+
a.once && this.off(t, u, a.ctx), u.call(a.ctx || this, n);
|
|
361
363
|
}
|
|
362
364
|
this._firingCount--;
|
|
363
365
|
}
|
|
@@ -426,8 +428,8 @@ var ui = { exports: {} };
|
|
|
426
428
|
}, t), !0);
|
|
427
429
|
}
|
|
428
430
|
};
|
|
429
|
-
|
|
430
|
-
var
|
|
431
|
+
Y.addEventListener = Y.on, Y.removeEventListener = Y.clearAllEventListeners = Y.off, Y.addOneTimeEventListener = Y.once, Y.fireEvent = Y.fire, Y.hasEventListeners = Y.listens;
|
|
432
|
+
var Nt = ct.extend(Y);
|
|
431
433
|
function w(t, e, i) {
|
|
432
434
|
this.x = i ? Math.round(t) : t, this.y = i ? Math.round(e) : e;
|
|
433
435
|
}
|
|
@@ -538,11 +540,11 @@ var ui = { exports: {} };
|
|
|
538
540
|
// @method toString(): String
|
|
539
541
|
// Returns a string representation of the point for debugging purposes.
|
|
540
542
|
toString: function() {
|
|
541
|
-
return "Point(" +
|
|
543
|
+
return "Point(" + X(this.x) + ", " + X(this.y) + ")";
|
|
542
544
|
}
|
|
543
545
|
};
|
|
544
546
|
function y(t, e, i) {
|
|
545
|
-
return t instanceof w ? t :
|
|
547
|
+
return t instanceof w ? t : F(t) ? new w(t[0], t[1]) : t == null ? t : typeof t == "object" && "x" in t && "y" in t ? new w(t.x, t.y) : new w(t, e, i);
|
|
546
548
|
}
|
|
547
549
|
function Z(t, e) {
|
|
548
550
|
if (t)
|
|
@@ -561,7 +563,7 @@ var ui = { exports: {} };
|
|
|
561
563
|
return this;
|
|
562
564
|
if (t instanceof w || typeof t[0] == "number" || "x" in t)
|
|
563
565
|
e = i = y(t);
|
|
564
|
-
else if (t =
|
|
566
|
+
else if (t = G(t), e = t.min, i = t.max, !e || !i)
|
|
565
567
|
return this;
|
|
566
568
|
return !this.min && !this.max ? (this.min = e.clone(), this.max = i.clone()) : (this.min.x = Math.min(e.x, this.min.x), this.max.x = Math.max(i.x, this.max.x), this.min.y = Math.min(e.y, this.min.y), this.max.y = Math.max(i.y, this.max.y)), this;
|
|
567
569
|
},
|
|
@@ -606,13 +608,13 @@ var ui = { exports: {} };
|
|
|
606
608
|
// Returns `true` if the rectangle contains the given point.
|
|
607
609
|
contains: function(t) {
|
|
608
610
|
var e, i;
|
|
609
|
-
return typeof t[0] == "number" || t instanceof w ? t = y(t) : t =
|
|
611
|
+
return typeof t[0] == "number" || t instanceof w ? t = y(t) : t = G(t), t instanceof Z ? (e = t.min, i = t.max) : e = i = t, e.x >= this.min.x && i.x <= this.max.x && e.y >= this.min.y && i.y <= this.max.y;
|
|
610
612
|
},
|
|
611
613
|
// @method intersects(otherBounds: Bounds): Boolean
|
|
612
614
|
// Returns `true` if the rectangle intersects the given bounds. Two bounds
|
|
613
615
|
// intersect if they have at least one point in common.
|
|
614
616
|
intersects: function(t) {
|
|
615
|
-
t =
|
|
617
|
+
t = G(t);
|
|
616
618
|
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x >= e.x && n.x <= i.x, r = o.y >= e.y && n.y <= i.y;
|
|
617
619
|
return s && r;
|
|
618
620
|
},
|
|
@@ -620,7 +622,7 @@ var ui = { exports: {} };
|
|
|
620
622
|
// Returns `true` if the rectangle overlaps the given bounds. Two bounds
|
|
621
623
|
// overlap if their intersection is an area.
|
|
622
624
|
overlaps: function(t) {
|
|
623
|
-
t =
|
|
625
|
+
t = G(t);
|
|
624
626
|
var e = this.min, i = this.max, n = t.min, o = t.max, s = o.x > e.x && n.x < i.x, r = o.y > e.y && n.y < i.y;
|
|
625
627
|
return s && r;
|
|
626
628
|
},
|
|
@@ -635,7 +637,7 @@ var ui = { exports: {} };
|
|
|
635
637
|
// Negative values will retract the bounds.
|
|
636
638
|
pad: function(t) {
|
|
637
639
|
var e = this.min, i = this.max, n = Math.abs(e.x - i.x) * t, o = Math.abs(e.y - i.y) * t;
|
|
638
|
-
return
|
|
640
|
+
return G(
|
|
639
641
|
y(e.x - n, e.y - o),
|
|
640
642
|
y(i.x + n, i.y + o)
|
|
641
643
|
);
|
|
@@ -643,10 +645,10 @@ var ui = { exports: {} };
|
|
|
643
645
|
// @method equals(otherBounds: Bounds): Boolean
|
|
644
646
|
// Returns `true` if the rectangle is equivalent to the given bounds.
|
|
645
647
|
equals: function(t) {
|
|
646
|
-
return t ? (t =
|
|
648
|
+
return t ? (t = G(t), this.min.equals(t.getTopLeft()) && this.max.equals(t.getBottomRight())) : !1;
|
|
647
649
|
}
|
|
648
650
|
};
|
|
649
|
-
function
|
|
651
|
+
function G(t, e) {
|
|
650
652
|
return !t || t instanceof Z ? t : new Z(t, e);
|
|
651
653
|
}
|
|
652
654
|
function j(t, e) {
|
|
@@ -794,7 +796,7 @@ var ui = { exports: {} };
|
|
|
794
796
|
// @method toString(): String
|
|
795
797
|
// Returns a string representation of the point (for debugging purposes).
|
|
796
798
|
toString: function(t) {
|
|
797
|
-
return "LatLng(" +
|
|
799
|
+
return "LatLng(" + X(this.lat, t) + ", " + X(this.lng, t) + ")";
|
|
798
800
|
},
|
|
799
801
|
// @method distanceTo(otherLatLng: LatLng): Number
|
|
800
802
|
// Returns the distance (in meters) to the given `LatLng` calculated using the [Spherical Law of Cosines](https://en.wikipedia.org/wiki/Spherical_law_of_cosines).
|
|
@@ -820,7 +822,7 @@ var ui = { exports: {} };
|
|
|
820
822
|
}
|
|
821
823
|
};
|
|
822
824
|
function M(t, e, i) {
|
|
823
|
-
return t instanceof k ? t :
|
|
825
|
+
return t instanceof k ? t : F(t) && typeof t[0] != "object" ? t.length === 3 ? new k(t[0], t[1], t[2]) : t.length === 2 ? new k(t[0], t[1]) : null : t == null ? t : typeof t == "object" && "lat" in t ? new k(t.lat, "lng" in t ? t.lng : t.lon, t.alt) : e === void 0 ? null : new k(t, e, i);
|
|
824
826
|
}
|
|
825
827
|
var ft = {
|
|
826
828
|
// @method latLngToPoint(latlng: LatLng, zoom: Number): Point
|
|
@@ -901,8 +903,8 @@ var ui = { exports: {} };
|
|
|
901
903
|
var e = t.getCenter(), i = this.wrapLatLng(e), n = e.lat - i.lat, o = e.lng - i.lng;
|
|
902
904
|
if (n === 0 && o === 0)
|
|
903
905
|
return t;
|
|
904
|
-
var s = t.getSouthWest(), r = t.getNorthEast(),
|
|
905
|
-
return new j(
|
|
906
|
+
var s = t.getSouthWest(), r = t.getNorthEast(), a = new k(s.lat - n, s.lng - o), u = new k(r.lat - n, r.lng - o);
|
|
907
|
+
return new j(a, u);
|
|
906
908
|
}
|
|
907
909
|
}, gt = _({}, ft, {
|
|
908
910
|
wrapLng: [-180, 180],
|
|
@@ -912,7 +914,7 @@ var ui = { exports: {} };
|
|
|
912
914
|
R: 6371e3,
|
|
913
915
|
// distance between two geographical points using spherical law of cosines approximation
|
|
914
916
|
distance: function(t, e) {
|
|
915
|
-
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2), r = Math.sin((e.lng - t.lng) * i / 2),
|
|
917
|
+
var i = Math.PI / 180, n = t.lat * i, o = e.lat * i, s = Math.sin((e.lat - t.lat) * i / 2), r = Math.sin((e.lng - t.lng) * i / 2), a = s * s + Math.cos(n) * Math.cos(o) * r * r, u = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
|
|
916
918
|
return this.R * u;
|
|
917
919
|
}
|
|
918
920
|
}), yi = 6378137, Me = {
|
|
@@ -938,7 +940,7 @@ var ui = { exports: {} };
|
|
|
938
940
|
}()
|
|
939
941
|
};
|
|
940
942
|
function Ce(t, e, i, n) {
|
|
941
|
-
if (
|
|
943
|
+
if (F(t)) {
|
|
942
944
|
this._a = t[0], this._b = t[1], this._c = t[2], this._d = t[3];
|
|
943
945
|
return;
|
|
944
946
|
}
|
|
@@ -965,7 +967,7 @@ var ui = { exports: {} };
|
|
|
965
967
|
);
|
|
966
968
|
}
|
|
967
969
|
};
|
|
968
|
-
function
|
|
970
|
+
function Rt(t, e, i, n) {
|
|
969
971
|
return new Ce(t, e, i, n);
|
|
970
972
|
}
|
|
971
973
|
var ze = _({}, gt, {
|
|
@@ -973,24 +975,24 @@ var ui = { exports: {} };
|
|
|
973
975
|
projection: Me,
|
|
974
976
|
transformation: function() {
|
|
975
977
|
var t = 0.5 / (Math.PI * Me.R);
|
|
976
|
-
return
|
|
978
|
+
return Rt(t, 0.5, -t, 0.5);
|
|
977
979
|
}()
|
|
978
|
-
}),
|
|
980
|
+
}), Bn = _({}, ze, {
|
|
979
981
|
code: "EPSG:900913"
|
|
980
982
|
});
|
|
981
983
|
function wi(t) {
|
|
982
984
|
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
983
985
|
}
|
|
984
986
|
function xi(t, e) {
|
|
985
|
-
var i = "", n, o, s, r,
|
|
987
|
+
var i = "", n, o, s, r, a, u;
|
|
986
988
|
for (n = 0, s = t.length; n < s; n++) {
|
|
987
|
-
for (
|
|
988
|
-
u =
|
|
989
|
+
for (a = t[n], o = 0, r = a.length; o < r; o++)
|
|
990
|
+
u = a[o], i += (o ? "L" : "M") + u.x + " " + u.y;
|
|
989
991
|
i += e ? p.svg ? "z" : "x" : "";
|
|
990
992
|
}
|
|
991
993
|
return i || "M0 0";
|
|
992
994
|
}
|
|
993
|
-
var Se = document.documentElement.style,
|
|
995
|
+
var Se = document.documentElement.style, ee = "ActiveXObject" in window, Nn = ee && !document.addEventListener, Li = "msLaunchUri" in navigator && !("documentMode" in document), ke = rt("webkit"), Pi = rt("android"), bi = rt("android 2") || rt("android 3"), Rn = parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1], 10), Dn = Pi && rt("Google") && Rn < 537 && !("AudioNode" in window), Ee = !!window.opera, Ti = !Li && rt("chrome"), Mi = rt("gecko") && !ke && !Ee && !ee, Hn = !Ti && rt("safari"), Ci = rt("phantom"), zi = "OTransition" in Se, Fn = navigator.platform.indexOf("Win") === 0, Si = ee && "transition" in Se, Ae = "WebKitCSSMatrix" in window && "m11" in new window.WebKitCSSMatrix() && !bi, ki = "MozPerspective" in Se, Wn = !window.L_DISABLE_3D && (Si || Ae || ki) && !zi && !Ci, Dt = typeof orientation < "u" || rt("mobile"), Un = Dt && ke, Vn = Dt && Ae, Ei = !window.PointerEvent && window.MSPointerEvent, Ai = !!(window.PointerEvent || Ei), Oi = "ontouchstart" in window || !!window.TouchEvent, qn = !window.L_NO_TOUCH && (Oi || Ai), Gn = Dt && Ee, jn = Dt && Mi, Kn = (window.devicePixelRatio || window.screen.deviceXDPI / window.screen.logicalXDPI) > 1, Jn = function() {
|
|
994
996
|
var t = !1;
|
|
995
997
|
try {
|
|
996
998
|
var e = Object.defineProperty({}, "passive", {
|
|
@@ -1002,12 +1004,12 @@ var ui = { exports: {} };
|
|
|
1002
1004
|
} catch {
|
|
1003
1005
|
}
|
|
1004
1006
|
return t;
|
|
1005
|
-
}(),
|
|
1007
|
+
}(), Yn = function() {
|
|
1006
1008
|
return !!document.createElement("canvas").getContext;
|
|
1007
|
-
}(), Oe = !!(document.createElementNS && wi("svg").createSVGRect),
|
|
1009
|
+
}(), Oe = !!(document.createElementNS && wi("svg").createSVGRect), Xn = !!Oe && function() {
|
|
1008
1010
|
var t = document.createElement("div");
|
|
1009
1011
|
return t.innerHTML = "<svg/>", (t.firstChild && t.firstChild.namespaceURI) === "http://www.w3.org/2000/svg";
|
|
1010
|
-
}(),
|
|
1012
|
+
}(), Qn = !Oe && function() {
|
|
1011
1013
|
try {
|
|
1012
1014
|
var t = document.createElement("div");
|
|
1013
1015
|
t.innerHTML = '<v:shape adj="1"/>';
|
|
@@ -1016,98 +1018,98 @@ var ui = { exports: {} };
|
|
|
1016
1018
|
} catch {
|
|
1017
1019
|
return !1;
|
|
1018
1020
|
}
|
|
1019
|
-
}(),
|
|
1021
|
+
}(), $n = navigator.platform.indexOf("Mac") === 0, to = navigator.platform.indexOf("Linux") === 0;
|
|
1020
1022
|
function rt(t) {
|
|
1021
1023
|
return navigator.userAgent.toLowerCase().indexOf(t) >= 0;
|
|
1022
1024
|
}
|
|
1023
1025
|
var p = {
|
|
1024
|
-
ie,
|
|
1025
|
-
ielt9:
|
|
1026
|
+
ie: ee,
|
|
1027
|
+
ielt9: Nn,
|
|
1026
1028
|
edge: Li,
|
|
1027
1029
|
webkit: ke,
|
|
1028
1030
|
android: Pi,
|
|
1029
1031
|
android23: bi,
|
|
1030
|
-
androidStock:
|
|
1032
|
+
androidStock: Dn,
|
|
1031
1033
|
opera: Ee,
|
|
1032
1034
|
chrome: Ti,
|
|
1033
1035
|
gecko: Mi,
|
|
1034
|
-
safari:
|
|
1036
|
+
safari: Hn,
|
|
1035
1037
|
phantom: Ci,
|
|
1036
1038
|
opera12: zi,
|
|
1037
|
-
win:
|
|
1039
|
+
win: Fn,
|
|
1038
1040
|
ie3d: Si,
|
|
1039
1041
|
webkit3d: Ae,
|
|
1040
1042
|
gecko3d: ki,
|
|
1041
|
-
any3d:
|
|
1042
|
-
mobile:
|
|
1043
|
-
mobileWebkit:
|
|
1044
|
-
mobileWebkit3d:
|
|
1043
|
+
any3d: Wn,
|
|
1044
|
+
mobile: Dt,
|
|
1045
|
+
mobileWebkit: Un,
|
|
1046
|
+
mobileWebkit3d: Vn,
|
|
1045
1047
|
msPointer: Ei,
|
|
1046
1048
|
pointer: Ai,
|
|
1047
|
-
touch:
|
|
1049
|
+
touch: qn,
|
|
1048
1050
|
touchNative: Oi,
|
|
1049
|
-
mobileOpera:
|
|
1050
|
-
mobileGecko:
|
|
1051
|
-
retina:
|
|
1052
|
-
passiveEvents:
|
|
1053
|
-
canvas:
|
|
1051
|
+
mobileOpera: Gn,
|
|
1052
|
+
mobileGecko: jn,
|
|
1053
|
+
retina: Kn,
|
|
1054
|
+
passiveEvents: Jn,
|
|
1055
|
+
canvas: Yn,
|
|
1054
1056
|
svg: Oe,
|
|
1055
|
-
vml:
|
|
1056
|
-
inlineSvg:
|
|
1057
|
-
mac:
|
|
1058
|
-
linux:
|
|
1057
|
+
vml: Qn,
|
|
1058
|
+
inlineSvg: Xn,
|
|
1059
|
+
mac: $n,
|
|
1060
|
+
linux: to
|
|
1059
1061
|
}, Zi = p.msPointer ? "MSPointerDown" : "pointerdown", Ii = p.msPointer ? "MSPointerMove" : "pointermove", Bi = p.msPointer ? "MSPointerUp" : "pointerup", Ni = p.msPointer ? "MSPointerCancel" : "pointercancel", Ze = {
|
|
1060
1062
|
touchstart: Zi,
|
|
1061
1063
|
touchmove: Ii,
|
|
1062
1064
|
touchend: Bi,
|
|
1063
1065
|
touchcancel: Ni
|
|
1064
1066
|
}, Ri = {
|
|
1065
|
-
touchstart:
|
|
1066
|
-
touchmove:
|
|
1067
|
-
touchend:
|
|
1068
|
-
touchcancel:
|
|
1069
|
-
},
|
|
1070
|
-
function
|
|
1071
|
-
return e === "touchstart" &&
|
|
1072
|
-
}
|
|
1073
|
-
function
|
|
1067
|
+
touchstart: ro,
|
|
1068
|
+
touchmove: ie,
|
|
1069
|
+
touchend: ie,
|
|
1070
|
+
touchcancel: ie
|
|
1071
|
+
}, Mt = {}, Di = !1;
|
|
1072
|
+
function eo(t, e, i) {
|
|
1073
|
+
return e === "touchstart" && so(), Ri[e] ? (i = Ri[e].bind(this, i), t.addEventListener(Ze[e], i, !1), i) : (console.warn("wrong event specified:", e), O);
|
|
1074
|
+
}
|
|
1075
|
+
function io(t, e, i) {
|
|
1074
1076
|
if (!Ze[e]) {
|
|
1075
1077
|
console.warn("wrong event specified:", e);
|
|
1076
1078
|
return;
|
|
1077
1079
|
}
|
|
1078
1080
|
t.removeEventListener(Ze[e], i, !1);
|
|
1079
1081
|
}
|
|
1080
|
-
function
|
|
1081
|
-
|
|
1082
|
+
function no(t) {
|
|
1083
|
+
Mt[t.pointerId] = t;
|
|
1082
1084
|
}
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1085
|
+
function oo(t) {
|
|
1086
|
+
Mt[t.pointerId] && (Mt[t.pointerId] = t);
|
|
1085
1087
|
}
|
|
1086
1088
|
function Hi(t) {
|
|
1087
|
-
delete
|
|
1089
|
+
delete Mt[t.pointerId];
|
|
1088
1090
|
}
|
|
1089
|
-
function
|
|
1090
|
-
Di || (document.addEventListener(Zi,
|
|
1091
|
+
function so() {
|
|
1092
|
+
Di || (document.addEventListener(Zi, no, !0), document.addEventListener(Ii, oo, !0), document.addEventListener(Bi, Hi, !0), document.addEventListener(Ni, Hi, !0), Di = !0);
|
|
1091
1093
|
}
|
|
1092
|
-
function
|
|
1094
|
+
function ie(t, e) {
|
|
1093
1095
|
if (e.pointerType !== (e.MSPOINTER_TYPE_MOUSE || "mouse")) {
|
|
1094
1096
|
e.touches = [];
|
|
1095
|
-
for (var i in
|
|
1096
|
-
e.touches.push(
|
|
1097
|
+
for (var i in Mt)
|
|
1098
|
+
e.touches.push(Mt[i]);
|
|
1097
1099
|
e.changedTouches = [e], t(e);
|
|
1098
1100
|
}
|
|
1099
1101
|
}
|
|
1100
|
-
function
|
|
1101
|
-
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH &&
|
|
1102
|
+
function ro(t, e) {
|
|
1103
|
+
e.MSPOINTER_TYPE_TOUCH && e.pointerType === e.MSPOINTER_TYPE_TOUCH && W(e), ie(t, e);
|
|
1102
1104
|
}
|
|
1103
|
-
function
|
|
1105
|
+
function ao(t) {
|
|
1104
1106
|
var e = {}, i, n;
|
|
1105
1107
|
for (n in t)
|
|
1106
1108
|
i = t[n], e[n] = i && i.bind ? i.bind(t) : i;
|
|
1107
1109
|
return t = e, e.type = "dblclick", e.detail = 2, e.isTrusted = !1, e._simulated = !0, e;
|
|
1108
1110
|
}
|
|
1109
|
-
var
|
|
1110
|
-
function
|
|
1111
|
+
var ho = 200;
|
|
1112
|
+
function uo(t, e) {
|
|
1111
1113
|
t.addEventListener("dblclick", e);
|
|
1112
1114
|
var i = 0, n;
|
|
1113
1115
|
function o(s) {
|
|
@@ -1122,8 +1124,8 @@ var ui = { exports: {} };
|
|
|
1122
1124
|
}) && !r.some(function(u) {
|
|
1123
1125
|
return u instanceof HTMLInputElement || u instanceof HTMLSelectElement;
|
|
1124
1126
|
}))) {
|
|
1125
|
-
var
|
|
1126
|
-
|
|
1127
|
+
var a = Date.now();
|
|
1128
|
+
a - i <= ho ? (n++, n === 2 && e(ao(s))) : n = 1, i = a;
|
|
1127
1129
|
}
|
|
1128
1130
|
}
|
|
1129
1131
|
}
|
|
@@ -1132,18 +1134,18 @@ var ui = { exports: {} };
|
|
|
1132
1134
|
simDblclick: o
|
|
1133
1135
|
};
|
|
1134
1136
|
}
|
|
1135
|
-
function
|
|
1137
|
+
function lo(t, e) {
|
|
1136
1138
|
t.removeEventListener("dblclick", e.dblclick), t.removeEventListener("click", e.simDblclick);
|
|
1137
1139
|
}
|
|
1138
|
-
var Ie =
|
|
1140
|
+
var Ie = se(
|
|
1139
1141
|
["transform", "webkitTransform", "OTransform", "MozTransform", "msTransform"]
|
|
1140
|
-
),
|
|
1142
|
+
), Ht = se(
|
|
1141
1143
|
["webkitTransition", "transition", "OTransition", "MozTransition", "msTransition"]
|
|
1142
|
-
), Fi =
|
|
1144
|
+
), Fi = Ht === "webkitTransition" || Ht === "OTransition" ? Ht + "End" : "transitionend";
|
|
1143
1145
|
function Wi(t) {
|
|
1144
1146
|
return typeof t == "string" ? document.getElementById(t) : t;
|
|
1145
1147
|
}
|
|
1146
|
-
function
|
|
1148
|
+
function Ft(t, e) {
|
|
1147
1149
|
var i = t.style[e] || t.currentStyle && t.currentStyle[e];
|
|
1148
1150
|
if ((!i || i === "auto") && document.defaultView) {
|
|
1149
1151
|
var n = document.defaultView.getComputedStyle(t, null);
|
|
@@ -1159,22 +1161,22 @@ var ui = { exports: {} };
|
|
|
1159
1161
|
var e = t.parentNode;
|
|
1160
1162
|
e && e.removeChild(t);
|
|
1161
1163
|
}
|
|
1162
|
-
function
|
|
1164
|
+
function ne(t) {
|
|
1163
1165
|
for (; t.firstChild; )
|
|
1164
1166
|
t.removeChild(t.firstChild);
|
|
1165
1167
|
}
|
|
1166
|
-
function
|
|
1168
|
+
function Ct(t) {
|
|
1167
1169
|
var e = t.parentNode;
|
|
1168
1170
|
e && e.lastChild !== t && e.appendChild(t);
|
|
1169
1171
|
}
|
|
1170
|
-
function
|
|
1172
|
+
function zt(t) {
|
|
1171
1173
|
var e = t.parentNode;
|
|
1172
1174
|
e && e.firstChild !== t && e.insertBefore(t, e.firstChild);
|
|
1173
1175
|
}
|
|
1174
1176
|
function Be(t, e) {
|
|
1175
1177
|
if (t.classList !== void 0)
|
|
1176
1178
|
return t.classList.contains(e);
|
|
1177
|
-
var i =
|
|
1179
|
+
var i = oe(t);
|
|
1178
1180
|
return i.length > 0 && new RegExp("(^|\\s)" + e + "(\\s|$)").test(i);
|
|
1179
1181
|
}
|
|
1180
1182
|
function b(t, e) {
|
|
@@ -1182,23 +1184,23 @@ var ui = { exports: {} };
|
|
|
1182
1184
|
for (var i = lt(e), n = 0, o = i.length; n < o; n++)
|
|
1183
1185
|
t.classList.add(i[n]);
|
|
1184
1186
|
else if (!Be(t, e)) {
|
|
1185
|
-
var s =
|
|
1187
|
+
var s = oe(t);
|
|
1186
1188
|
Ne(t, (s ? s + " " : "") + e);
|
|
1187
1189
|
}
|
|
1188
1190
|
}
|
|
1189
1191
|
function B(t, e) {
|
|
1190
|
-
t.classList !== void 0 ? t.classList.remove(e) : Ne(t,
|
|
1192
|
+
t.classList !== void 0 ? t.classList.remove(e) : Ne(t, V((" " + oe(t) + " ").replace(" " + e + " ", " ")));
|
|
1191
1193
|
}
|
|
1192
1194
|
function Ne(t, e) {
|
|
1193
1195
|
t.className.baseVal === void 0 ? t.className = e : t.className.baseVal = e;
|
|
1194
1196
|
}
|
|
1195
|
-
function
|
|
1197
|
+
function oe(t) {
|
|
1196
1198
|
return t.correspondingElement && (t = t.correspondingElement), t.className.baseVal === void 0 ? t.className : t.className.baseVal;
|
|
1197
1199
|
}
|
|
1198
|
-
function
|
|
1199
|
-
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style &&
|
|
1200
|
+
function $(t, e) {
|
|
1201
|
+
"opacity" in t.style ? t.style.opacity = e : "filter" in t.style && co(t, e);
|
|
1200
1202
|
}
|
|
1201
|
-
function
|
|
1203
|
+
function co(t, e) {
|
|
1202
1204
|
var i = !1, n = "DXImageTransform.Microsoft.Alpha";
|
|
1203
1205
|
try {
|
|
1204
1206
|
i = t.filters.item(n);
|
|
@@ -1208,56 +1210,56 @@ var ui = { exports: {} };
|
|
|
1208
1210
|
}
|
|
1209
1211
|
e = Math.round(e * 100), i ? (i.Enabled = e !== 100, i.Opacity = e) : t.style.filter += " progid:" + n + "(opacity=" + e + ")";
|
|
1210
1212
|
}
|
|
1211
|
-
function
|
|
1213
|
+
function se(t) {
|
|
1212
1214
|
for (var e = document.documentElement.style, i = 0; i < t.length; i++)
|
|
1213
1215
|
if (t[i] in e)
|
|
1214
1216
|
return t[i];
|
|
1215
1217
|
return !1;
|
|
1216
1218
|
}
|
|
1217
|
-
function
|
|
1219
|
+
function wt(t, e, i) {
|
|
1218
1220
|
var n = e || new w(0, 0);
|
|
1219
1221
|
t.style[Ie] = (p.ie3d ? "translate(" + n.x + "px," + n.y + "px)" : "translate3d(" + n.x + "px," + n.y + "px,0)") + (i ? " scale(" + i + ")" : "");
|
|
1220
1222
|
}
|
|
1221
1223
|
function R(t, e) {
|
|
1222
|
-
t._leaflet_pos = e, p.any3d ?
|
|
1224
|
+
t._leaflet_pos = e, p.any3d ? wt(t, e) : (t.style.left = e.x + "px", t.style.top = e.y + "px");
|
|
1223
1225
|
}
|
|
1224
|
-
function
|
|
1226
|
+
function xt(t) {
|
|
1225
1227
|
return t._leaflet_pos || new w(0, 0);
|
|
1226
1228
|
}
|
|
1227
|
-
var
|
|
1229
|
+
var Wt, Ut, Re;
|
|
1228
1230
|
if ("onselectstart" in document)
|
|
1229
|
-
|
|
1230
|
-
x(window, "selectstart",
|
|
1231
|
-
},
|
|
1232
|
-
A(window, "selectstart",
|
|
1231
|
+
Wt = function() {
|
|
1232
|
+
x(window, "selectstart", W);
|
|
1233
|
+
}, Ut = function() {
|
|
1234
|
+
A(window, "selectstart", W);
|
|
1233
1235
|
};
|
|
1234
1236
|
else {
|
|
1235
|
-
var
|
|
1237
|
+
var Vt = se(
|
|
1236
1238
|
["userSelect", "WebkitUserSelect", "OUserSelect", "MozUserSelect", "msUserSelect"]
|
|
1237
1239
|
);
|
|
1238
|
-
|
|
1239
|
-
if (
|
|
1240
|
+
Wt = function() {
|
|
1241
|
+
if (Vt) {
|
|
1240
1242
|
var t = document.documentElement.style;
|
|
1241
|
-
Re = t[
|
|
1243
|
+
Re = t[Vt], t[Vt] = "none";
|
|
1242
1244
|
}
|
|
1243
|
-
},
|
|
1244
|
-
|
|
1245
|
+
}, Ut = function() {
|
|
1246
|
+
Vt && (document.documentElement.style[Vt] = Re, Re = void 0);
|
|
1245
1247
|
};
|
|
1246
1248
|
}
|
|
1247
1249
|
function De() {
|
|
1248
|
-
x(window, "dragstart",
|
|
1250
|
+
x(window, "dragstart", W);
|
|
1249
1251
|
}
|
|
1250
1252
|
function He() {
|
|
1251
|
-
A(window, "dragstart",
|
|
1253
|
+
A(window, "dragstart", W);
|
|
1252
1254
|
}
|
|
1253
|
-
var
|
|
1255
|
+
var re, Fe;
|
|
1254
1256
|
function We(t) {
|
|
1255
1257
|
for (; t.tabIndex === -1; )
|
|
1256
1258
|
t = t.parentNode;
|
|
1257
|
-
t.style && (
|
|
1259
|
+
t.style && (ae(), re = t, Fe = t.style.outlineStyle, t.style.outlineStyle = "none", x(window, "keydown", ae));
|
|
1258
1260
|
}
|
|
1259
|
-
function
|
|
1260
|
-
|
|
1261
|
+
function ae() {
|
|
1262
|
+
re && (re.style.outlineStyle = Fe, re = void 0, Fe = void 0, A(window, "keydown", ae));
|
|
1261
1263
|
}
|
|
1262
1264
|
function Ui(t) {
|
|
1263
1265
|
do
|
|
@@ -1273,38 +1275,38 @@ var ui = { exports: {} };
|
|
|
1273
1275
|
boundingClientRect: e
|
|
1274
1276
|
};
|
|
1275
1277
|
}
|
|
1276
|
-
var
|
|
1278
|
+
var fo = {
|
|
1277
1279
|
__proto__: null,
|
|
1278
1280
|
TRANSFORM: Ie,
|
|
1279
|
-
TRANSITION:
|
|
1281
|
+
TRANSITION: Ht,
|
|
1280
1282
|
TRANSITION_END: Fi,
|
|
1281
1283
|
get: Wi,
|
|
1282
|
-
getStyle:
|
|
1284
|
+
getStyle: Ft,
|
|
1283
1285
|
create: z,
|
|
1284
1286
|
remove: I,
|
|
1285
|
-
empty:
|
|
1286
|
-
toFront:
|
|
1287
|
-
toBack:
|
|
1287
|
+
empty: ne,
|
|
1288
|
+
toFront: Ct,
|
|
1289
|
+
toBack: zt,
|
|
1288
1290
|
hasClass: Be,
|
|
1289
1291
|
addClass: b,
|
|
1290
1292
|
removeClass: B,
|
|
1291
1293
|
setClass: Ne,
|
|
1292
|
-
getClass:
|
|
1293
|
-
setOpacity:
|
|
1294
|
-
testProp:
|
|
1295
|
-
setTransform:
|
|
1294
|
+
getClass: oe,
|
|
1295
|
+
setOpacity: $,
|
|
1296
|
+
testProp: se,
|
|
1297
|
+
setTransform: wt,
|
|
1296
1298
|
setPosition: R,
|
|
1297
|
-
getPosition:
|
|
1299
|
+
getPosition: xt,
|
|
1298
1300
|
get disableTextSelection() {
|
|
1299
|
-
return
|
|
1301
|
+
return Wt;
|
|
1300
1302
|
},
|
|
1301
1303
|
get enableTextSelection() {
|
|
1302
|
-
return
|
|
1304
|
+
return Ut;
|
|
1303
1305
|
},
|
|
1304
1306
|
disableImageDrag: De,
|
|
1305
1307
|
enableImageDrag: He,
|
|
1306
1308
|
preventOutline: We,
|
|
1307
|
-
restoreOutline:
|
|
1309
|
+
restoreOutline: ae,
|
|
1308
1310
|
getSizedParentNode: Ui,
|
|
1309
1311
|
getScale: Ue
|
|
1310
1312
|
};
|
|
@@ -1325,20 +1327,20 @@ var ui = { exports: {} };
|
|
|
1325
1327
|
Vi(t), delete t[at];
|
|
1326
1328
|
else if (e && typeof e == "object")
|
|
1327
1329
|
for (var o in e)
|
|
1328
|
-
|
|
1330
|
+
Ge(t, o, e[o], i);
|
|
1329
1331
|
else if (e = lt(e), arguments.length === 2)
|
|
1330
|
-
Vi(t, function(
|
|
1331
|
-
return Pe(e,
|
|
1332
|
+
Vi(t, function(a) {
|
|
1333
|
+
return Pe(e, a) !== -1;
|
|
1332
1334
|
});
|
|
1333
1335
|
else
|
|
1334
1336
|
for (var s = 0, r = e.length; s < r; s++)
|
|
1335
|
-
|
|
1337
|
+
Ge(t, e[s], i, n);
|
|
1336
1338
|
return this;
|
|
1337
1339
|
}
|
|
1338
1340
|
function Vi(t, e) {
|
|
1339
1341
|
for (var i in t[at]) {
|
|
1340
1342
|
var n = i.split(/\d/)[0];
|
|
1341
|
-
(!e || e(n)) &&
|
|
1343
|
+
(!e || e(n)) && Ge(t, n, null, null, i);
|
|
1342
1344
|
}
|
|
1343
1345
|
}
|
|
1344
1346
|
var Ve = {
|
|
@@ -1350,34 +1352,34 @@ var ui = { exports: {} };
|
|
|
1350
1352
|
var o = e + P(i) + (n ? "_" + P(n) : "");
|
|
1351
1353
|
if (t[at] && t[at][o])
|
|
1352
1354
|
return this;
|
|
1353
|
-
var s = function(
|
|
1354
|
-
return i.call(n || t,
|
|
1355
|
+
var s = function(a) {
|
|
1356
|
+
return i.call(n || t, a || window.event);
|
|
1355
1357
|
}, r = s;
|
|
1356
|
-
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ? s =
|
|
1357
|
-
|
|
1358
|
+
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ? s = eo(t, e, s) : p.touch && e === "dblclick" ? s = uo(t, s) : "addEventListener" in t ? e === "touchstart" || e === "touchmove" || e === "wheel" || e === "mousewheel" ? t.addEventListener(Ve[e] || e, s, p.passiveEvents ? { passive: !1 } : !1) : e === "mouseenter" || e === "mouseleave" ? (s = function(a) {
|
|
1359
|
+
a = a || window.event, Ke(t, a) && r(a);
|
|
1358
1360
|
}, t.addEventListener(Ve[e], s, !1)) : t.addEventListener(e, r, !1) : t.attachEvent("on" + e, s), t[at] = t[at] || {}, t[at][o] = s;
|
|
1359
1361
|
}
|
|
1360
|
-
function
|
|
1362
|
+
function Ge(t, e, i, n, o) {
|
|
1361
1363
|
o = o || e + P(i) + (n ? "_" + P(n) : "");
|
|
1362
1364
|
var s = t[at] && t[at][o];
|
|
1363
1365
|
if (!s)
|
|
1364
1366
|
return this;
|
|
1365
|
-
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ?
|
|
1367
|
+
!p.touchNative && p.pointer && e.indexOf("touch") === 0 ? io(t, e, s) : p.touch && e === "dblclick" ? lo(t, s) : "removeEventListener" in t ? t.removeEventListener(Ve[e] || e, s, !1) : t.detachEvent("on" + e, s), t[at][o] = null;
|
|
1366
1368
|
}
|
|
1367
|
-
function
|
|
1369
|
+
function Lt(t) {
|
|
1368
1370
|
return t.stopPropagation ? t.stopPropagation() : t.originalEvent ? t.originalEvent._stopped = !0 : t.cancelBubble = !0, this;
|
|
1369
1371
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return qe(t, "wheel",
|
|
1372
|
+
function je(t) {
|
|
1373
|
+
return qe(t, "wheel", Lt), this;
|
|
1372
1374
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return x(t, "mousedown touchstart dblclick contextmenu",
|
|
1375
|
+
function qt(t) {
|
|
1376
|
+
return x(t, "mousedown touchstart dblclick contextmenu", Lt), t._leaflet_disable_click = !0, this;
|
|
1375
1377
|
}
|
|
1376
|
-
function
|
|
1378
|
+
function W(t) {
|
|
1377
1379
|
return t.preventDefault ? t.preventDefault() : t.returnValue = !1, this;
|
|
1378
1380
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return
|
|
1381
|
+
function Pt(t) {
|
|
1382
|
+
return W(t), Lt(t), this;
|
|
1381
1383
|
}
|
|
1382
1384
|
function qi(t) {
|
|
1383
1385
|
if (t.composedPath)
|
|
@@ -1386,7 +1388,7 @@ var ui = { exports: {} };
|
|
|
1386
1388
|
e.push(i), i = i.parentNode;
|
|
1387
1389
|
return e;
|
|
1388
1390
|
}
|
|
1389
|
-
function
|
|
1391
|
+
function Gi(t, e) {
|
|
1390
1392
|
if (!e)
|
|
1391
1393
|
return new w(t.clientX, t.clientY);
|
|
1392
1394
|
var i = Ue(e), n = i.boundingClientRect;
|
|
@@ -1397,11 +1399,11 @@ var ui = { exports: {} };
|
|
|
1397
1399
|
(t.clientY - n.top) / i.y - e.clientTop
|
|
1398
1400
|
);
|
|
1399
1401
|
}
|
|
1400
|
-
var
|
|
1401
|
-
function
|
|
1402
|
+
var _o = p.linux && p.chrome ? window.devicePixelRatio : p.mac ? window.devicePixelRatio * 3 : window.devicePixelRatio > 0 ? 2 * window.devicePixelRatio : 1;
|
|
1403
|
+
function ji(t) {
|
|
1402
1404
|
return p.edge ? t.wheelDeltaY / 2 : (
|
|
1403
1405
|
// Don't trust window-geometry-based delta
|
|
1404
|
-
t.deltaY && t.deltaMode === 0 ? -t.deltaY /
|
|
1406
|
+
t.deltaY && t.deltaMode === 0 ? -t.deltaY / _o : (
|
|
1405
1407
|
// Pixels
|
|
1406
1408
|
t.deltaY && t.deltaMode === 1 ? -t.deltaY * 20 : (
|
|
1407
1409
|
// Lines
|
|
@@ -1437,29 +1439,29 @@ var ui = { exports: {} };
|
|
|
1437
1439
|
}
|
|
1438
1440
|
return i !== t;
|
|
1439
1441
|
}
|
|
1440
|
-
var
|
|
1442
|
+
var mo = {
|
|
1441
1443
|
__proto__: null,
|
|
1442
1444
|
on: x,
|
|
1443
1445
|
off: A,
|
|
1444
|
-
stopPropagation:
|
|
1445
|
-
disableScrollPropagation:
|
|
1446
|
-
disableClickPropagation:
|
|
1447
|
-
preventDefault:
|
|
1448
|
-
stop:
|
|
1446
|
+
stopPropagation: Lt,
|
|
1447
|
+
disableScrollPropagation: je,
|
|
1448
|
+
disableClickPropagation: qt,
|
|
1449
|
+
preventDefault: W,
|
|
1450
|
+
stop: Pt,
|
|
1449
1451
|
getPropagationPath: qi,
|
|
1450
|
-
getMousePosition:
|
|
1451
|
-
getWheelDelta:
|
|
1452
|
+
getMousePosition: Gi,
|
|
1453
|
+
getWheelDelta: ji,
|
|
1452
1454
|
isExternalTarget: Ke,
|
|
1453
1455
|
addListener: x,
|
|
1454
1456
|
removeListener: A
|
|
1455
|
-
}, Ki =
|
|
1457
|
+
}, Ki = Nt.extend({
|
|
1456
1458
|
// @method run(el: HTMLElement, newPos: Point, duration?: Number, easeLinearity?: Number)
|
|
1457
1459
|
// Run an animation of a given element to a new position, optionally setting
|
|
1458
1460
|
// duration in seconds (`0.25` by default) and easing linearity factor (3rd
|
|
1459
1461
|
// argument of the [cubic bezier curve](https://cubic-bezier.com/#0,0,.5,1),
|
|
1460
1462
|
// `0.5` by default).
|
|
1461
1463
|
run: function(t, e, i, n) {
|
|
1462
|
-
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos =
|
|
1464
|
+
this.stop(), this._el = t, this._inProgress = !0, this._duration = i || 0.25, this._easeOutPower = 1 / Math.max(n || 0.5, 0.2), this._startPos = xt(t), this._offset = e.subtract(this._startPos), this._startTime = +/* @__PURE__ */ new Date(), this.fire("start"), this._animate();
|
|
1463
1465
|
},
|
|
1464
1466
|
// @method stop()
|
|
1465
1467
|
// Stops the animation (if currently running).
|
|
@@ -1467,7 +1469,7 @@ var ui = { exports: {} };
|
|
|
1467
1469
|
this._inProgress && (this._step(!0), this._complete());
|
|
1468
1470
|
},
|
|
1469
1471
|
_animate: function() {
|
|
1470
|
-
this._animId =
|
|
1472
|
+
this._animId = q(this._animate, this), this._step();
|
|
1471
1473
|
},
|
|
1472
1474
|
_step: function(t) {
|
|
1473
1475
|
var e = +/* @__PURE__ */ new Date() - this._startTime, i = this._duration * 1e3;
|
|
@@ -1478,12 +1480,12 @@ var ui = { exports: {} };
|
|
|
1478
1480
|
e && i._round(), R(this._el, i), this.fire("step");
|
|
1479
1481
|
},
|
|
1480
1482
|
_complete: function() {
|
|
1481
|
-
|
|
1483
|
+
Q(this._animId), this._inProgress = !1, this.fire("end");
|
|
1482
1484
|
},
|
|
1483
1485
|
_easeOut: function(t) {
|
|
1484
1486
|
return 1 - Math.pow(1 - t, this._easeOutPower);
|
|
1485
1487
|
}
|
|
1486
|
-
}), C =
|
|
1488
|
+
}), C = Nt.extend({
|
|
1487
1489
|
options: {
|
|
1488
1490
|
// @section Map State Options
|
|
1489
1491
|
// @option crs: CRS = L.CRS.EPSG3857
|
|
@@ -1561,7 +1563,7 @@ var ui = { exports: {} };
|
|
|
1561
1563
|
trackResize: !0
|
|
1562
1564
|
},
|
|
1563
1565
|
initialize: function(t, e) {
|
|
1564
|
-
e = E(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize =
|
|
1566
|
+
e = E(this, e), this._handlers = [], this._layers = {}, this._zoomBoundLayers = {}, this._sizeChanged = !0, this._initContainer(t), this._initLayout(), this._onResize = g(this._onResize, this), this._initEvents(), e.maxBounds && this.setMaxBounds(e.maxBounds), e.zoom !== void 0 && (this._zoom = this._limitZoom(e.zoom)), e.center && e.zoom !== void 0 && this.setView(M(e.center), e.zoom, { reset: !0 }), this.callInitHooks(), this._zoomAnimated = Ht && p.any3d && !p.mobileOpera && this.options.zoomAnimation, this._zoomAnimated && (this._createAnimProxy(), x(this._proxy, Fi, this._catchTransitionEnd, this)), this._addLayers(this.options.layers);
|
|
1565
1567
|
},
|
|
1566
1568
|
// @section Methods for modifying map state
|
|
1567
1569
|
// @method setView(center: LatLng, zoom: Number, options?: Zoom/pan options): this
|
|
@@ -1598,8 +1600,8 @@ var ui = { exports: {} };
|
|
|
1598
1600
|
// @method setZoomAround(offset: Point, zoom: Number, options: Zoom options): this
|
|
1599
1601
|
// Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.
|
|
1600
1602
|
setZoomAround: function(t, e, i) {
|
|
1601
|
-
var n = this.getZoomScale(e), o = this.getSize().divideBy(2), s = t instanceof w ? t : this.latLngToContainerPoint(t), r = s.subtract(o).multiplyBy(1 - 1 / n),
|
|
1602
|
-
return this.setView(
|
|
1603
|
+
var n = this.getZoomScale(e), o = this.getSize().divideBy(2), s = t instanceof w ? t : this.latLngToContainerPoint(t), r = s.subtract(o).multiplyBy(1 - 1 / n), a = this.containerPointToLatLng(o.add(r));
|
|
1604
|
+
return this.setView(a, e, { zoom: i });
|
|
1603
1605
|
},
|
|
1604
1606
|
_getBoundsCenterZoom: function(t, e) {
|
|
1605
1607
|
e = e || {}, t = t.getBounds ? t.getBounds() : N(t);
|
|
@@ -1609,7 +1611,7 @@ var ui = { exports: {} };
|
|
|
1609
1611
|
center: t.getCenter(),
|
|
1610
1612
|
zoom: o
|
|
1611
1613
|
};
|
|
1612
|
-
var s = n.subtract(i).divideBy(2), r = this.project(t.getSouthWest(), o),
|
|
1614
|
+
var s = n.subtract(i).divideBy(2), r = this.project(t.getSouthWest(), o), a = this.project(t.getNorthEast(), o), u = this.unproject(r.add(a).divideBy(2).add(s), o);
|
|
1613
1615
|
return {
|
|
1614
1616
|
center: u,
|
|
1615
1617
|
zoom: o
|
|
@@ -1662,10 +1664,10 @@ var ui = { exports: {} };
|
|
|
1662
1664
|
this._stop();
|
|
1663
1665
|
var n = this.project(this.getCenter()), o = this.project(t), s = this.getSize(), r = this._zoom;
|
|
1664
1666
|
t = M(t), e = e === void 0 ? r : e;
|
|
1665
|
-
var
|
|
1667
|
+
var a = Math.max(s.x, s.y), u = a * this.getZoomScale(r, e), l = o.distanceTo(n) || 1, f = 1.42, v = f * f;
|
|
1666
1668
|
function T(D) {
|
|
1667
|
-
var
|
|
1668
|
-
return
|
|
1669
|
+
var ye = D ? -1 : 1, ns = D ? u : a, os = u * u - a * a + ye * v * v * l * l, ss = 2 * ns * v * l, si = os / ss, Sn = Math.sqrt(si * si + 1) - si, rs = Sn < 1e-9 ? -18 : Math.log(Sn);
|
|
1670
|
+
return rs;
|
|
1669
1671
|
}
|
|
1670
1672
|
function U(D) {
|
|
1671
1673
|
return (Math.exp(D) - Math.exp(-D)) / 2;
|
|
@@ -1673,25 +1675,25 @@ var ui = { exports: {} };
|
|
|
1673
1675
|
function H(D) {
|
|
1674
1676
|
return (Math.exp(D) + Math.exp(-D)) / 2;
|
|
1675
1677
|
}
|
|
1676
|
-
function
|
|
1678
|
+
function et(D) {
|
|
1677
1679
|
return U(D) / H(D);
|
|
1678
1680
|
}
|
|
1679
|
-
var
|
|
1680
|
-
function
|
|
1681
|
-
return
|
|
1681
|
+
var K = T(0);
|
|
1682
|
+
function Zt(D) {
|
|
1683
|
+
return a * (H(K) / H(K + f * D));
|
|
1682
1684
|
}
|
|
1683
|
-
function
|
|
1684
|
-
return
|
|
1685
|
+
function $o(D) {
|
|
1686
|
+
return a * (H(K) * et(K + f * D) - U(K)) / v;
|
|
1685
1687
|
}
|
|
1686
|
-
function
|
|
1688
|
+
function ts(D) {
|
|
1687
1689
|
return 1 - Math.pow(1 - D, 1.5);
|
|
1688
1690
|
}
|
|
1689
|
-
var
|
|
1691
|
+
var es = Date.now(), Cn = (T(1) - K) / f, is = i.duration ? 1e3 * i.duration : 1e3 * Cn * 0.8;
|
|
1690
1692
|
function zn() {
|
|
1691
|
-
var D = (Date.now() -
|
|
1692
|
-
D <= 1 ? (this._flyToFrame =
|
|
1693
|
-
this.unproject(n.add(o.subtract(n).multiplyBy(
|
|
1694
|
-
this.getScaleZoom(
|
|
1693
|
+
var D = (Date.now() - es) / is, ye = ts(D) * Cn;
|
|
1694
|
+
D <= 1 ? (this._flyToFrame = q(zn, this), this._move(
|
|
1695
|
+
this.unproject(n.add(o.subtract(n).multiplyBy($o(ye) / l)), r),
|
|
1696
|
+
this.getScaleZoom(a / Zt(ye), r),
|
|
1695
1697
|
{ flyTo: !0 }
|
|
1696
1698
|
)) : this._move(t, e)._moveEnd(!0);
|
|
1697
1699
|
}
|
|
@@ -1735,11 +1737,11 @@ var ui = { exports: {} };
|
|
|
1735
1737
|
// the map will not be panned.
|
|
1736
1738
|
panInside: function(t, e) {
|
|
1737
1739
|
e = e || {};
|
|
1738
|
-
var i = y(e.paddingTopLeft || e.padding || [0, 0]), n = y(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t), r = this.getPixelBounds(),
|
|
1739
|
-
if (!
|
|
1740
|
+
var i = y(e.paddingTopLeft || e.padding || [0, 0]), n = y(e.paddingBottomRight || e.padding || [0, 0]), o = this.project(this.getCenter()), s = this.project(t), r = this.getPixelBounds(), a = G([r.min.add(i), r.max.subtract(n)]), u = a.getSize();
|
|
1741
|
+
if (!a.contains(s)) {
|
|
1740
1742
|
this._enforcingBounds = !0;
|
|
1741
|
-
var l = s.subtract(
|
|
1742
|
-
o.x += l.x < 0 ? -
|
|
1743
|
+
var l = s.subtract(a.getCenter()), f = a.extend(s).getSize().subtract(u);
|
|
1744
|
+
o.x += l.x < 0 ? -f.x : f.x, o.y += l.y < 0 ? -f.y : f.y, this.panTo(this.unproject(o), e), this._enforcingBounds = !1;
|
|
1743
1745
|
}
|
|
1744
1746
|
return this;
|
|
1745
1747
|
},
|
|
@@ -1765,7 +1767,7 @@ var ui = { exports: {} };
|
|
|
1765
1767
|
var e = this.getSize();
|
|
1766
1768
|
this._sizeChanged = !0, this._lastCenter = null;
|
|
1767
1769
|
var i = this.getSize(), n = e.divideBy(2).round(), o = i.divideBy(2).round(), s = n.subtract(o);
|
|
1768
|
-
return !s.x && !s.y ? this : (t.animate && t.pan ? this.panBy(s) : (t.pan && this._rawPanBy(s), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(
|
|
1770
|
+
return !s.x && !s.y ? this : (t.animate && t.pan ? this.panBy(s) : (t.pan && this._rawPanBy(s), this.fire("move"), t.debounceMoveend ? (clearTimeout(this._sizeTimer), this._sizeTimer = setTimeout(g(this.fire, this, "moveend"), 200)) : this.fire("moveend")), this.fire("resize", {
|
|
1769
1771
|
oldSize: e,
|
|
1770
1772
|
newSize: i
|
|
1771
1773
|
}));
|
|
@@ -1798,7 +1800,7 @@ var ui = { exports: {} };
|
|
|
1798
1800
|
code: 0,
|
|
1799
1801
|
message: "Geolocation not supported."
|
|
1800
1802
|
}), this;
|
|
1801
|
-
var e =
|
|
1803
|
+
var e = g(this._handleGeolocationResponse, this), i = g(this._handleGeolocationError, this);
|
|
1802
1804
|
return t.watch ? this._locationWatchId = navigator.geolocation.watchPosition(e, i, t) : navigator.geolocation.getCurrentPosition(e, i, t), this;
|
|
1803
1805
|
},
|
|
1804
1806
|
// @method stopLocate(): this
|
|
@@ -1824,14 +1826,14 @@ var ui = { exports: {} };
|
|
|
1824
1826
|
var r = this.getBoundsZoom(o);
|
|
1825
1827
|
this.setView(n, s.maxZoom ? Math.min(r, s.maxZoom) : r);
|
|
1826
1828
|
}
|
|
1827
|
-
var
|
|
1829
|
+
var a = {
|
|
1828
1830
|
latlng: n,
|
|
1829
1831
|
bounds: o,
|
|
1830
1832
|
timestamp: t.timestamp
|
|
1831
1833
|
};
|
|
1832
1834
|
for (var u in t.coords)
|
|
1833
|
-
typeof t.coords[u] == "number" && (
|
|
1834
|
-
this.fire("locationfound",
|
|
1835
|
+
typeof t.coords[u] == "number" && (a[u] = t.coords[u]);
|
|
1836
|
+
this.fire("locationfound", a);
|
|
1835
1837
|
}
|
|
1836
1838
|
},
|
|
1837
1839
|
// TODO Appropriate docs section?
|
|
@@ -1854,7 +1856,7 @@ var ui = { exports: {} };
|
|
|
1854
1856
|
} catch {
|
|
1855
1857
|
this._container._leaflet_id = void 0, this._containerId = void 0;
|
|
1856
1858
|
}
|
|
1857
|
-
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), I(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (
|
|
1859
|
+
this._locationWatchId !== void 0 && this.stopLocate(), this._stop(), I(this._mapPane), this._clearControlPos && this._clearControlPos(), this._resizeRequest && (Q(this._resizeRequest), this._resizeRequest = null), this._clearHandlers(), this._loaded && this.fire("unload");
|
|
1858
1860
|
var t;
|
|
1859
1861
|
for (t in this._layers)
|
|
1860
1862
|
this._layers[t].remove();
|
|
@@ -1905,8 +1907,8 @@ var ui = { exports: {} };
|
|
|
1905
1907
|
// the given bounds in its entirety.
|
|
1906
1908
|
getBoundsZoom: function(t, e, i) {
|
|
1907
1909
|
t = N(t), i = y(i || [0, 0]);
|
|
1908
|
-
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), r = t.getNorthWest(),
|
|
1909
|
-
return n = this.getScaleZoom(U, n),
|
|
1910
|
+
var n = this.getZoom() || 0, o = this.getMinZoom(), s = this.getMaxZoom(), r = t.getNorthWest(), a = t.getSouthEast(), u = this.getSize().subtract(i), l = G(this.project(a, n), this.project(r, n)).getSize(), f = p.any3d ? this.options.zoomSnap : 1, v = u.x / l.x, T = u.y / l.y, U = e ? Math.max(v, T) : Math.min(v, T);
|
|
1911
|
+
return n = this.getScaleZoom(U, n), f && (n = Math.round(n / (f / 100)) * (f / 100), n = e ? Math.ceil(n / f) * f : Math.floor(n / f) * f), Math.max(o, Math.min(s, n));
|
|
1910
1912
|
},
|
|
1911
1913
|
// @method getSize(): Point
|
|
1912
1914
|
// Returns the current size of the map container (in pixels).
|
|
@@ -2053,7 +2055,7 @@ var ui = { exports: {} };
|
|
|
2053
2055
|
// Given a MouseEvent object, returns the pixel coordinate relative to the
|
|
2054
2056
|
// map container where the event took place.
|
|
2055
2057
|
mouseEventToContainerPoint: function(t) {
|
|
2056
|
-
return
|
|
2058
|
+
return Gi(t, this._container);
|
|
2057
2059
|
},
|
|
2058
2060
|
// @method mouseEventToLayerPoint(ev: MouseEvent): Point
|
|
2059
2061
|
// Given a MouseEvent object, returns the pixel coordinate relative to
|
|
@@ -2079,7 +2081,7 @@ var ui = { exports: {} };
|
|
|
2079
2081
|
_initLayout: function() {
|
|
2080
2082
|
var t = this._container;
|
|
2081
2083
|
this._fadeAnimated = this.options.fadeAnimation && p.any3d, b(t, "leaflet-container" + (p.touch ? " leaflet-touch" : "") + (p.retina ? " leaflet-retina" : "") + (p.ielt9 ? " leaflet-oldie" : "") + (p.safari ? " leaflet-safari" : "") + (this._fadeAnimated ? " leaflet-fade-anim" : ""));
|
|
2082
|
-
var e =
|
|
2084
|
+
var e = Ft(t, "position");
|
|
2083
2085
|
e !== "absolute" && e !== "relative" && e !== "fixed" && e !== "sticky" && (t.style.position = "relative"), this._initPanes(), this._initControlPos && this._initControlPos();
|
|
2084
2086
|
},
|
|
2085
2087
|
_initPanes: function() {
|
|
@@ -2107,7 +2109,7 @@ var ui = { exports: {} };
|
|
|
2107
2109
|
return t && this.fire("zoomend"), this.fire("moveend");
|
|
2108
2110
|
},
|
|
2109
2111
|
_stop: function() {
|
|
2110
|
-
return
|
|
2112
|
+
return Q(this._flyToFrame), this._panAnim && this._panAnim.stop(), this;
|
|
2111
2113
|
},
|
|
2112
2114
|
_rawPanBy: function(t) {
|
|
2113
2115
|
R(this._mapPane, this._getMapPanePos().subtract(t));
|
|
@@ -2130,7 +2132,7 @@ var ui = { exports: {} };
|
|
|
2130
2132
|
e(this._container, "click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup", this._handleDOMEvent, this), this.options.trackResize && e(window, "resize", this._onResize, this), p.any3d && this.options.transform3DLimit && (t ? this.off : this.on).call(this, "moveend", this._onMoveEnd);
|
|
2131
2133
|
},
|
|
2132
2134
|
_onResize: function() {
|
|
2133
|
-
|
|
2135
|
+
Q(this._resizeRequest), this._resizeRequest = q(
|
|
2134
2136
|
function() {
|
|
2135
2137
|
this.invalidateSize({ debounceMoveend: !0 });
|
|
2136
2138
|
},
|
|
@@ -2183,13 +2185,13 @@ var ui = { exports: {} };
|
|
|
2183
2185
|
o = s.concat(o);
|
|
2184
2186
|
}
|
|
2185
2187
|
if (o.length) {
|
|
2186
|
-
e === "contextmenu" &&
|
|
2187
|
-
var
|
|
2188
|
+
e === "contextmenu" && W(t);
|
|
2189
|
+
var a = o[0], u = {
|
|
2188
2190
|
originalEvent: t
|
|
2189
2191
|
};
|
|
2190
2192
|
if (t.type !== "keypress" && t.type !== "keydown" && t.type !== "keyup") {
|
|
2191
|
-
var l =
|
|
2192
|
-
u.containerPoint = l ? this.latLngToContainerPoint(
|
|
2193
|
+
var l = a.getLatLng && (!a._radius || a._radius <= 10);
|
|
2194
|
+
u.containerPoint = l ? this.latLngToContainerPoint(a.getLatLng()) : this.mouseEventToContainerPoint(t), u.layerPoint = this.containerPointToLayerPoint(u.containerPoint), u.latlng = l ? a.getLatLng() : this.layerPointToLatLng(u.layerPoint);
|
|
2193
2195
|
}
|
|
2194
2196
|
for (r = 0; r < o.length; r++)
|
|
2195
2197
|
if (o[r].fire(e, u, !0), u.originalEvent._stopped || o[r].options.bubblingMouseEvents === !1 && Pe(this._mouseEvents, e) !== -1)
|
|
@@ -2213,7 +2215,7 @@ var ui = { exports: {} };
|
|
|
2213
2215
|
},
|
|
2214
2216
|
// private methods for getting map state
|
|
2215
2217
|
_getMapPanePos: function() {
|
|
2216
|
-
return
|
|
2218
|
+
return xt(this._mapPane) || new w(0, 0);
|
|
2217
2219
|
},
|
|
2218
2220
|
_moved: function() {
|
|
2219
2221
|
var t = this._getMapPanePos();
|
|
@@ -2233,7 +2235,7 @@ var ui = { exports: {} };
|
|
|
2233
2235
|
},
|
|
2234
2236
|
_latLngBoundsToNewLayerBounds: function(t, e, i) {
|
|
2235
2237
|
var n = this._getNewPixelOrigin(i, e);
|
|
2236
|
-
return
|
|
2238
|
+
return G([
|
|
2237
2239
|
this.project(t.getSouthWest(), e)._subtract(n),
|
|
2238
2240
|
this.project(t.getNorthWest(), e)._subtract(n),
|
|
2239
2241
|
this.project(t.getSouthEast(), e)._subtract(n),
|
|
@@ -2264,11 +2266,11 @@ var ui = { exports: {} };
|
|
|
2264
2266
|
},
|
|
2265
2267
|
// returns offset needed for pxBounds to get inside maxBounds at a specified zoom
|
|
2266
2268
|
_getBoundsOffset: function(t, e, i) {
|
|
2267
|
-
var n =
|
|
2269
|
+
var n = G(
|
|
2268
2270
|
this.project(e.getNorthEast(), i),
|
|
2269
2271
|
this.project(e.getSouthWest(), i)
|
|
2270
|
-
), o = n.min.subtract(t.min), s = n.max.subtract(t.max), r = this._rebound(o.x, -s.x),
|
|
2271
|
-
return new w(r,
|
|
2272
|
+
), o = n.min.subtract(t.min), s = n.max.subtract(t.max), r = this._rebound(o.x, -s.x), a = this._rebound(o.y, -s.y);
|
|
2273
|
+
return new w(r, a);
|
|
2272
2274
|
},
|
|
2273
2275
|
_rebound: function(t, e) {
|
|
2274
2276
|
return t + e > 0 ? Math.round(t - e) / 2 : Math.max(0, Math.ceil(t)) - Math.max(0, Math.floor(e));
|
|
@@ -2291,7 +2293,7 @@ var ui = { exports: {} };
|
|
|
2291
2293
|
var t = this._proxy = z("div", "leaflet-proxy leaflet-zoom-animated");
|
|
2292
2294
|
this._panes.mapPane.appendChild(t), this.on("zoomanim", function(e) {
|
|
2293
2295
|
var i = Ie, n = this._proxy.style[i];
|
|
2294
|
-
|
|
2296
|
+
wt(this._proxy, this.project(e.center, e.zoom), this.getZoomScale(e.zoom, 1)), n === this._proxy.style[i] && this._animatingZoom && this._onZoomTransitionEnd();
|
|
2295
2297
|
}, this), this.on("load moveend", this._animMoveEnd, this), this._on("unload", this._destroyAnimProxy, this);
|
|
2296
2298
|
},
|
|
2297
2299
|
_destroyAnimProxy: function() {
|
|
@@ -2299,7 +2301,7 @@ var ui = { exports: {} };
|
|
|
2299
2301
|
},
|
|
2300
2302
|
_animMoveEnd: function() {
|
|
2301
2303
|
var t = this.getCenter(), e = this.getZoom();
|
|
2302
|
-
|
|
2304
|
+
wt(this._proxy, this.project(t, e), this.getZoomScale(e, 1));
|
|
2303
2305
|
},
|
|
2304
2306
|
_catchTransitionEnd: function(t) {
|
|
2305
2307
|
this._animatingZoom && t.propertyName.indexOf("transform") >= 0 && this._onZoomTransitionEnd();
|
|
@@ -2313,7 +2315,7 @@ var ui = { exports: {} };
|
|
|
2313
2315
|
if (i = i || {}, !this._zoomAnimated || i.animate === !1 || this._nothingToAnimate() || Math.abs(e - this._zoom) > this.options.zoomAnimationThreshold)
|
|
2314
2316
|
return !1;
|
|
2315
2317
|
var n = this.getZoomScale(e), o = this._getCenterOffset(t)._divideBy(1 - 1 / n);
|
|
2316
|
-
return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (
|
|
2318
|
+
return i.animate !== !0 && !this.getSize().contains(o) ? !1 : (q(function() {
|
|
2317
2319
|
this._moveStart(!0, i.noMoveStart || !1)._animateZoom(t, e, !0);
|
|
2318
2320
|
}, this), !0);
|
|
2319
2321
|
},
|
|
@@ -2322,13 +2324,13 @@ var ui = { exports: {} };
|
|
|
2322
2324
|
center: t,
|
|
2323
2325
|
zoom: e,
|
|
2324
2326
|
noUpdate: n
|
|
2325
|
-
}), this._tempFireZoomEvent || (this._tempFireZoomEvent = this._zoom !== this._animateToZoom), this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(
|
|
2327
|
+
}), this._tempFireZoomEvent || (this._tempFireZoomEvent = this._zoom !== this._animateToZoom), this._move(this._animateToCenter, this._animateToZoom, void 0, !0), setTimeout(g(this._onZoomTransitionEnd, this), 250));
|
|
2326
2328
|
},
|
|
2327
2329
|
_onZoomTransitionEnd: function() {
|
|
2328
2330
|
this._animatingZoom && (this._mapPane && B(this._mapPane, "leaflet-zoom-anim"), this._animatingZoom = !1, this._move(this._animateToCenter, this._animateToZoom, void 0, !0), this._tempFireZoomEvent && this.fire("zoom"), delete this._tempFireZoomEvent, this.fire("move"), this._moveEnd(!0));
|
|
2329
2331
|
}
|
|
2330
2332
|
});
|
|
2331
|
-
function
|
|
2333
|
+
function po(t, e) {
|
|
2332
2334
|
return new C(t, e);
|
|
2333
2335
|
}
|
|
2334
2336
|
var it = ct.extend({
|
|
@@ -2378,7 +2380,7 @@ var ui = { exports: {} };
|
|
|
2378
2380
|
_refocusOnMap: function(t) {
|
|
2379
2381
|
this._map && t && t.screenX > 0 && t.screenY > 0 && this._map.getContainer().focus();
|
|
2380
2382
|
}
|
|
2381
|
-
}),
|
|
2383
|
+
}), Gt = function(t) {
|
|
2382
2384
|
return new it(t);
|
|
2383
2385
|
};
|
|
2384
2386
|
C.include({
|
|
@@ -2486,7 +2488,7 @@ var ui = { exports: {} };
|
|
|
2486
2488
|
},
|
|
2487
2489
|
_initLayout: function() {
|
|
2488
2490
|
var t = "leaflet-control-layers", e = this._container = z("div", t), i = this.options.collapsed;
|
|
2489
|
-
e.setAttribute("aria-haspopup", !0),
|
|
2491
|
+
e.setAttribute("aria-haspopup", !0), qt(e), je(e);
|
|
2490
2492
|
var n = this._section = z("section", t + "-list");
|
|
2491
2493
|
i && (this._map.on("click", this.collapse, this), x(e, {
|
|
2492
2494
|
mouseenter: this._expandSafely,
|
|
@@ -2499,7 +2501,7 @@ var ui = { exports: {} };
|
|
|
2499
2501
|
},
|
|
2500
2502
|
// Certain screen readers intercept the key event and instead send a click event
|
|
2501
2503
|
click: function(s) {
|
|
2502
|
-
|
|
2504
|
+
W(s), this._expandSafely();
|
|
2503
2505
|
}
|
|
2504
2506
|
}, this), i || this.expand(), this._baseLayersList = z("div", t + "-base", n), this._separator = z("div", t + "-separator", n), this._overlaysList = z("div", t + "-overlays", n), e.appendChild(n);
|
|
2505
2507
|
},
|
|
@@ -2513,14 +2515,14 @@ var ui = { exports: {} };
|
|
|
2513
2515
|
layer: t,
|
|
2514
2516
|
name: e,
|
|
2515
2517
|
overlay: i
|
|
2516
|
-
}), this.options.sortLayers && this._layers.sort(
|
|
2518
|
+
}), this.options.sortLayers && this._layers.sort(g(function(n, o) {
|
|
2517
2519
|
return this.options.sortFunction(n.layer, o.layer, n.name, o.name);
|
|
2518
2520
|
}, this)), this.options.autoZIndex && t.setZIndex && (this._lastZIndex++, t.setZIndex(this._lastZIndex)), this._expandIfNotCollapsed();
|
|
2519
2521
|
},
|
|
2520
2522
|
_update: function() {
|
|
2521
2523
|
if (!this._container)
|
|
2522
2524
|
return this;
|
|
2523
|
-
|
|
2525
|
+
ne(this._baseLayersList), ne(this._overlaysList), this._layerControlInputs = [];
|
|
2524
2526
|
var t, e, i, n, o = 0;
|
|
2525
2527
|
for (i = 0; i < this._layers.length; i++)
|
|
2526
2528
|
n = this._layers[i], this._addItem(n), e = e || n.overlay, t = t || !n.overlay, o += n.overlay ? 0 : 1;
|
|
@@ -2568,13 +2570,13 @@ var ui = { exports: {} };
|
|
|
2568
2570
|
},
|
|
2569
2571
|
_expandSafely: function() {
|
|
2570
2572
|
var t = this._section;
|
|
2571
|
-
this._preventClick = !0, x(t, "click",
|
|
2573
|
+
this._preventClick = !0, x(t, "click", W), this.expand();
|
|
2572
2574
|
var e = this;
|
|
2573
2575
|
setTimeout(function() {
|
|
2574
|
-
A(t, "click",
|
|
2576
|
+
A(t, "click", W), e._preventClick = !1;
|
|
2575
2577
|
});
|
|
2576
2578
|
}
|
|
2577
|
-
}),
|
|
2579
|
+
}), go = function(t, e, i) {
|
|
2578
2580
|
return new Ji(t, e, i);
|
|
2579
2581
|
}, Je = it.extend({
|
|
2580
2582
|
// @section
|
|
@@ -2627,7 +2629,7 @@ var ui = { exports: {} };
|
|
|
2627
2629
|
},
|
|
2628
2630
|
_createButton: function(t, e, i, n, o) {
|
|
2629
2631
|
var s = z("a", i, n);
|
|
2630
|
-
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e),
|
|
2632
|
+
return s.innerHTML = t, s.href = "#", s.title = e, s.setAttribute("role", "button"), s.setAttribute("aria-label", e), qt(s), x(s, "click", Pt), x(s, "click", o, this), x(s, "click", this._refocusOnMap, this), s;
|
|
2631
2633
|
},
|
|
2632
2634
|
_updateDisabled: function() {
|
|
2633
2635
|
var t = this._map, e = "leaflet-disabled";
|
|
@@ -2639,7 +2641,7 @@ var ui = { exports: {} };
|
|
|
2639
2641
|
}), C.addInitHook(function() {
|
|
2640
2642
|
this.options.zoomControl && (this.zoomControl = new Je(), this.addControl(this.zoomControl));
|
|
2641
2643
|
});
|
|
2642
|
-
var
|
|
2644
|
+
var vo = function(t) {
|
|
2643
2645
|
return new Je(t);
|
|
2644
2646
|
}, Yi = it.extend({
|
|
2645
2647
|
// @section
|
|
@@ -2693,22 +2695,22 @@ var ui = { exports: {} };
|
|
|
2693
2695
|
var e = Math.pow(10, (Math.floor(t) + "").length - 1), i = t / e;
|
|
2694
2696
|
return i = i >= 10 ? 10 : i >= 5 ? 5 : i >= 3 ? 3 : i >= 2 ? 2 : 1, e * i;
|
|
2695
2697
|
}
|
|
2696
|
-
}),
|
|
2698
|
+
}), yo = function(t) {
|
|
2697
2699
|
return new Yi(t);
|
|
2698
|
-
},
|
|
2700
|
+
}, wo = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>', Ye = it.extend({
|
|
2699
2701
|
// @section
|
|
2700
2702
|
// @aka Control.Attribution options
|
|
2701
2703
|
options: {
|
|
2702
2704
|
position: "bottomright",
|
|
2703
2705
|
// @option prefix: String|false = 'Leaflet'
|
|
2704
2706
|
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
2705
|
-
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (p.inlineSvg ?
|
|
2707
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (p.inlineSvg ? wo + " " : "") + "Leaflet</a>"
|
|
2706
2708
|
},
|
|
2707
2709
|
initialize: function(t) {
|
|
2708
2710
|
E(this, t), this._attributions = {};
|
|
2709
2711
|
},
|
|
2710
2712
|
onAdd: function(t) {
|
|
2711
|
-
t.attributionControl = this, this._container = z("div", "leaflet-control-attribution"),
|
|
2713
|
+
t.attributionControl = this, this._container = z("div", "leaflet-control-attribution"), qt(this._container);
|
|
2712
2714
|
for (var e in t._layers)
|
|
2713
2715
|
t._layers[e].getAttribution && this.addAttribution(t._layers[e].getAttribution());
|
|
2714
2716
|
return this._update(), t.on("layeradd", this._addAttribution, this), this._container;
|
|
@@ -2751,10 +2753,10 @@ var ui = { exports: {} };
|
|
|
2751
2753
|
}), C.addInitHook(function() {
|
|
2752
2754
|
this.options.attributionControl && new Ye().addTo(this);
|
|
2753
2755
|
});
|
|
2754
|
-
var
|
|
2756
|
+
var xo = function(t) {
|
|
2755
2757
|
return new Ye(t);
|
|
2756
2758
|
};
|
|
2757
|
-
it.Layers = Ji, it.Zoom = Je, it.Scale = Yi, it.Attribution = Ye,
|
|
2759
|
+
it.Layers = Ji, it.Zoom = Je, it.Scale = Yi, it.Attribution = Ye, Gt.layers = go, Gt.zoom = vo, Gt.scale = yo, Gt.attribution = xo;
|
|
2758
2760
|
var ht = ct.extend({
|
|
2759
2761
|
initialize: function(t) {
|
|
2760
2762
|
this._map = t;
|
|
@@ -2784,7 +2786,7 @@ var ui = { exports: {} };
|
|
|
2784
2786
|
ht.addTo = function(t, e) {
|
|
2785
2787
|
return t.addHandler(e, this), this;
|
|
2786
2788
|
};
|
|
2787
|
-
var
|
|
2789
|
+
var Lo = { Events: Y }, Xi = p.touch ? "touchstart mousedown" : "mousedown", vt = Nt.extend({
|
|
2788
2790
|
options: {
|
|
2789
2791
|
// @section
|
|
2790
2792
|
// @aka Draggable options
|
|
@@ -2814,10 +2816,10 @@ var ui = { exports: {} };
|
|
|
2814
2816
|
vt._dragging === this && this.finishDrag();
|
|
2815
2817
|
return;
|
|
2816
2818
|
}
|
|
2817
|
-
if (!(vt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (vt._dragging = this, this._preventOutline && We(this._element), De(),
|
|
2819
|
+
if (!(vt._dragging || t.shiftKey || t.which !== 1 && t.button !== 1 && !t.touches) && (vt._dragging = this, this._preventOutline && We(this._element), De(), Wt(), !this._moving)) {
|
|
2818
2820
|
this.fire("down");
|
|
2819
2821
|
var e = t.touches ? t.touches[0] : t, i = Ui(this._element);
|
|
2820
|
-
this._startPoint = new w(e.clientX, e.clientY), this._startPos =
|
|
2822
|
+
this._startPoint = new w(e.clientX, e.clientY), this._startPos = xt(this._element), this._parentScale = Ue(i);
|
|
2821
2823
|
var n = t.type === "mousedown";
|
|
2822
2824
|
x(document, n ? "mousemove" : "touchmove", this._onMove, this), x(document, n ? "mouseup" : "touchend touchcancel", this._onUp, this);
|
|
2823
2825
|
}
|
|
@@ -2830,7 +2832,7 @@ var ui = { exports: {} };
|
|
|
2830
2832
|
return;
|
|
2831
2833
|
}
|
|
2832
2834
|
var e = t.touches && t.touches.length === 1 ? t.touches[0] : t, i = new w(e.clientX, e.clientY)._subtract(this._startPoint);
|
|
2833
|
-
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y,
|
|
2835
|
+
!i.x && !i.y || Math.abs(i.x) + Math.abs(i.y) < this.options.clickTolerance || (i.x /= this._parentScale.x, i.y /= this._parentScale.y, W(t), this._moved || (this.fire("dragstart"), this._moved = !0, b(document.body, "leaflet-dragging"), this._lastTarget = t.target || t.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), b(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(i), this._moving = !0, this._lastEvent = t, this._updatePosition());
|
|
2834
2836
|
}
|
|
2835
2837
|
},
|
|
2836
2838
|
_updatePosition: function() {
|
|
@@ -2841,7 +2843,7 @@ var ui = { exports: {} };
|
|
|
2841
2843
|
this._enabled && this.finishDrag();
|
|
2842
2844
|
},
|
|
2843
2845
|
finishDrag: function(t) {
|
|
2844
|
-
B(document.body, "leaflet-dragging"), this._lastTarget && (B(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), A(document, "mousemove touchmove", this._onMove, this), A(document, "mouseup touchend touchcancel", this._onUp, this), He(),
|
|
2846
|
+
B(document.body, "leaflet-dragging"), this._lastTarget && (B(this._lastTarget, "leaflet-drag-target"), this._lastTarget = null), A(document, "mousemove touchmove", this._onMove, this), A(document, "mouseup touchend touchcancel", this._onUp, this), He(), Ut();
|
|
2845
2847
|
var e = this._moved && this._moving;
|
|
2846
2848
|
this._moving = !1, vt._dragging = !1, e && this.fire("dragend", {
|
|
2847
2849
|
noInertia: t,
|
|
@@ -2850,33 +2852,33 @@ var ui = { exports: {} };
|
|
|
2850
2852
|
}
|
|
2851
2853
|
});
|
|
2852
2854
|
function Qi(t, e, i) {
|
|
2853
|
-
var n, o = [1, 4, 2, 8], s, r,
|
|
2854
|
-
for (s = 0,
|
|
2855
|
-
t[s]._code =
|
|
2856
|
-
for (
|
|
2857
|
-
for (
|
|
2858
|
-
u = t[s], l = t[r], u._code &
|
|
2855
|
+
var n, o = [1, 4, 2, 8], s, r, a, u, l, f, v, T;
|
|
2856
|
+
for (s = 0, f = t.length; s < f; s++)
|
|
2857
|
+
t[s]._code = bt(t[s], e);
|
|
2858
|
+
for (a = 0; a < 4; a++) {
|
|
2859
|
+
for (v = o[a], n = [], s = 0, f = t.length, r = f - 1; s < f; r = s++)
|
|
2860
|
+
u = t[s], l = t[r], u._code & v ? l._code & v || (T = he(l, u, v, e, i), T._code = bt(T, e), n.push(T)) : (l._code & v && (T = he(l, u, v, e, i), T._code = bt(T, e), n.push(T)), n.push(u));
|
|
2859
2861
|
t = n;
|
|
2860
2862
|
}
|
|
2861
2863
|
return t;
|
|
2862
2864
|
}
|
|
2863
2865
|
function $i(t, e) {
|
|
2864
|
-
var i, n, o, s, r,
|
|
2866
|
+
var i, n, o, s, r, a, u, l, f;
|
|
2865
2867
|
if (!t || t.length === 0)
|
|
2866
2868
|
throw new Error("latlngs not passed");
|
|
2867
|
-
|
|
2868
|
-
var
|
|
2869
|
-
U < 1700 && (
|
|
2870
|
-
var H = t.length,
|
|
2869
|
+
tt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2870
|
+
var v = M([0, 0]), T = N(t), U = T.getNorthWest().distanceTo(T.getSouthWest()) * T.getNorthEast().distanceTo(T.getNorthWest());
|
|
2871
|
+
U < 1700 && (v = Xe(t));
|
|
2872
|
+
var H = t.length, et = [];
|
|
2871
2873
|
for (i = 0; i < H; i++) {
|
|
2872
|
-
var
|
|
2873
|
-
|
|
2874
|
+
var K = M(t[i]);
|
|
2875
|
+
et.push(e.project(M([K.lat - v.lat, K.lng - v.lng])));
|
|
2874
2876
|
}
|
|
2875
|
-
for (
|
|
2876
|
-
o =
|
|
2877
|
-
|
|
2878
|
-
var
|
|
2879
|
-
return M([
|
|
2877
|
+
for (a = u = l = 0, i = 0, n = H - 1; i < H; n = i++)
|
|
2878
|
+
o = et[i], s = et[n], r = o.y * s.x - s.y * o.x, u += (o.x + s.x) * r, l += (o.y + s.y) * r, a += r * 3;
|
|
2879
|
+
a === 0 ? f = et[0] : f = [u / a, l / a];
|
|
2880
|
+
var Zt = e.unproject(y(f));
|
|
2881
|
+
return M([Zt.lat + v.lat, Zt.lng + v.lng]);
|
|
2880
2882
|
}
|
|
2881
2883
|
function Xe(t) {
|
|
2882
2884
|
for (var e = 0, i = 0, n = 0, o = 0; o < t.length; o++) {
|
|
@@ -2885,7 +2887,7 @@ var ui = { exports: {} };
|
|
|
2885
2887
|
}
|
|
2886
2888
|
return M([e / n, i / n]);
|
|
2887
2889
|
}
|
|
2888
|
-
var
|
|
2890
|
+
var Po = {
|
|
2889
2891
|
__proto__: null,
|
|
2890
2892
|
clipPolygon: Qi,
|
|
2891
2893
|
polygonCenter: $i,
|
|
@@ -2895,15 +2897,15 @@ var ui = { exports: {} };
|
|
|
2895
2897
|
if (!e || !t.length)
|
|
2896
2898
|
return t.slice();
|
|
2897
2899
|
var i = e * e;
|
|
2898
|
-
return t =
|
|
2900
|
+
return t = Mo(t, i), t = To(t, i), t;
|
|
2899
2901
|
}
|
|
2900
2902
|
function en(t, e, i) {
|
|
2901
2903
|
return Math.sqrt(jt(t, e, i, !0));
|
|
2902
2904
|
}
|
|
2903
|
-
function
|
|
2905
|
+
function bo(t, e, i) {
|
|
2904
2906
|
return jt(t, e, i);
|
|
2905
2907
|
}
|
|
2906
|
-
function
|
|
2908
|
+
function To(t, e) {
|
|
2907
2909
|
var i = t.length, n = typeof Uint8Array < "u" ? Uint8Array : Array, o = new n(i);
|
|
2908
2910
|
o[0] = o[i - 1] = 1, Qe(t, o, e, 0, i - 1);
|
|
2909
2911
|
var s, r = [];
|
|
@@ -2912,60 +2914,60 @@ var ui = { exports: {} };
|
|
|
2912
2914
|
return r;
|
|
2913
2915
|
}
|
|
2914
2916
|
function Qe(t, e, i, n, o) {
|
|
2915
|
-
var s = 0, r,
|
|
2916
|
-
for (
|
|
2917
|
-
u = jt(t[
|
|
2917
|
+
var s = 0, r, a, u;
|
|
2918
|
+
for (a = n + 1; a <= o - 1; a++)
|
|
2919
|
+
u = jt(t[a], t[n], t[o], !0), u > s && (r = a, s = u);
|
|
2918
2920
|
s > i && (e[r] = 1, Qe(t, e, i, n, r), Qe(t, e, i, r, o));
|
|
2919
2921
|
}
|
|
2920
|
-
function
|
|
2922
|
+
function Mo(t, e) {
|
|
2921
2923
|
for (var i = [t[0]], n = 1, o = 0, s = t.length; n < s; n++)
|
|
2922
|
-
|
|
2924
|
+
Co(t[n], t[o]) > e && (i.push(t[n]), o = n);
|
|
2923
2925
|
return o < s - 1 && i.push(t[s - 1]), i;
|
|
2924
2926
|
}
|
|
2925
2927
|
var nn;
|
|
2926
2928
|
function on(t, e, i, n, o) {
|
|
2927
|
-
var s = n ? nn :
|
|
2929
|
+
var s = n ? nn : bt(t, i), r = bt(e, i), a, u, l;
|
|
2928
2930
|
for (nn = r; ; ) {
|
|
2929
2931
|
if (!(s | r))
|
|
2930
2932
|
return [t, e];
|
|
2931
2933
|
if (s & r)
|
|
2932
2934
|
return !1;
|
|
2933
|
-
|
|
2935
|
+
a = s || r, u = he(t, e, a, i, o), l = bt(u, i), a === s ? (t = u, s = l) : (e = u, r = l);
|
|
2934
2936
|
}
|
|
2935
2937
|
}
|
|
2936
|
-
function
|
|
2937
|
-
var s = e.x - t.x, r = e.y - t.y,
|
|
2938
|
-
return i & 8 ? (l = t.x + s * (u.y - t.y) / r,
|
|
2938
|
+
function he(t, e, i, n, o) {
|
|
2939
|
+
var s = e.x - t.x, r = e.y - t.y, a = n.min, u = n.max, l, f;
|
|
2940
|
+
return i & 8 ? (l = t.x + s * (u.y - t.y) / r, f = u.y) : i & 4 ? (l = t.x + s * (a.y - t.y) / r, f = a.y) : i & 2 ? (l = u.x, f = t.y + r * (u.x - t.x) / s) : i & 1 && (l = a.x, f = t.y + r * (a.x - t.x) / s), new w(l, f, o);
|
|
2939
2941
|
}
|
|
2940
|
-
function
|
|
2942
|
+
function bt(t, e) {
|
|
2941
2943
|
var i = 0;
|
|
2942
2944
|
return t.x < e.min.x ? i |= 1 : t.x > e.max.x && (i |= 2), t.y < e.min.y ? i |= 4 : t.y > e.max.y && (i |= 8), i;
|
|
2943
2945
|
}
|
|
2944
|
-
function
|
|
2946
|
+
function Co(t, e) {
|
|
2945
2947
|
var i = e.x - t.x, n = e.y - t.y;
|
|
2946
2948
|
return i * i + n * n;
|
|
2947
2949
|
}
|
|
2948
2950
|
function jt(t, e, i, n) {
|
|
2949
|
-
var o = e.x, s = e.y, r = i.x - o,
|
|
2950
|
-
return u > 0 && (l = ((t.x - o) * r + (t.y - s) *
|
|
2951
|
+
var o = e.x, s = e.y, r = i.x - o, a = i.y - s, u = r * r + a * a, l;
|
|
2952
|
+
return u > 0 && (l = ((t.x - o) * r + (t.y - s) * a) / u, l > 1 ? (o = i.x, s = i.y) : l > 0 && (o += r * l, s += a * l)), r = t.x - o, a = t.y - s, n ? r * r + a * a : new w(o, s);
|
|
2951
2953
|
}
|
|
2952
|
-
function
|
|
2953
|
-
return !
|
|
2954
|
+
function tt(t) {
|
|
2955
|
+
return !F(t[0]) || typeof t[0][0] != "object" && typeof t[0][0] < "u";
|
|
2954
2956
|
}
|
|
2955
2957
|
function sn(t) {
|
|
2956
|
-
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),
|
|
2958
|
+
return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."), tt(t);
|
|
2957
2959
|
}
|
|
2958
2960
|
function rn(t, e) {
|
|
2959
|
-
var i, n, o, s, r,
|
|
2961
|
+
var i, n, o, s, r, a, u, l;
|
|
2960
2962
|
if (!t || t.length === 0)
|
|
2961
2963
|
throw new Error("latlngs not passed");
|
|
2962
|
-
|
|
2963
|
-
var
|
|
2964
|
-
T < 1700 && (
|
|
2964
|
+
tt(t) || (console.warn("latlngs are not flat! Only the first ring will be used"), t = t[0]);
|
|
2965
|
+
var f = M([0, 0]), v = N(t), T = v.getNorthWest().distanceTo(v.getSouthWest()) * v.getNorthEast().distanceTo(v.getNorthWest());
|
|
2966
|
+
T < 1700 && (f = Xe(t));
|
|
2965
2967
|
var U = t.length, H = [];
|
|
2966
2968
|
for (i = 0; i < U; i++) {
|
|
2967
|
-
var
|
|
2968
|
-
H.push(e.project(M([
|
|
2969
|
+
var et = M(t[i]);
|
|
2970
|
+
H.push(e.project(M([et.lat - f.lat, et.lng - f.lng])));
|
|
2969
2971
|
}
|
|
2970
2972
|
for (i = 0, n = 0; i < U - 1; i++)
|
|
2971
2973
|
n += H[i].distanceTo(H[i + 1]) / 2;
|
|
@@ -2973,26 +2975,26 @@ var ui = { exports: {} };
|
|
|
2973
2975
|
l = H[0];
|
|
2974
2976
|
else
|
|
2975
2977
|
for (i = 0, s = 0; i < U - 1; i++)
|
|
2976
|
-
if (r = H[i],
|
|
2978
|
+
if (r = H[i], a = H[i + 1], o = r.distanceTo(a), s += o, s > n) {
|
|
2977
2979
|
u = (s - n) / o, l = [
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
+
a.x - u * (a.x - r.x),
|
|
2981
|
+
a.y - u * (a.y - r.y)
|
|
2980
2982
|
];
|
|
2981
2983
|
break;
|
|
2982
2984
|
}
|
|
2983
|
-
var
|
|
2984
|
-
return M([
|
|
2985
|
+
var K = e.unproject(y(l));
|
|
2986
|
+
return M([K.lat + f.lat, K.lng + f.lng]);
|
|
2985
2987
|
}
|
|
2986
|
-
var
|
|
2988
|
+
var zo = {
|
|
2987
2989
|
__proto__: null,
|
|
2988
2990
|
simplify: tn,
|
|
2989
2991
|
pointToSegmentDistance: en,
|
|
2990
|
-
closestPointOnSegment:
|
|
2992
|
+
closestPointOnSegment: bo,
|
|
2991
2993
|
clipSegment: on,
|
|
2992
|
-
_getEdgeIntersection:
|
|
2993
|
-
_getBitCode:
|
|
2994
|
+
_getEdgeIntersection: he,
|
|
2995
|
+
_getBitCode: bt,
|
|
2994
2996
|
_sqClosestPointOnSegment: jt,
|
|
2995
|
-
isFlat:
|
|
2997
|
+
isFlat: tt,
|
|
2996
2998
|
_flat: sn,
|
|
2997
2999
|
polylineCenter: rn
|
|
2998
3000
|
}, $e = {
|
|
@@ -3008,33 +3010,33 @@ var ui = { exports: {} };
|
|
|
3008
3010
|
R_MINOR: 6356752314245179e-9,
|
|
3009
3011
|
bounds: new Z([-2003750834279e-5, -1549657073972e-5], [2003750834279e-5, 1876465623138e-5]),
|
|
3010
3012
|
project: function(t) {
|
|
3011
|
-
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, s = Math.sqrt(1 - o * o), r = s * Math.sin(n),
|
|
3012
|
-
return n = -i * Math.log(Math.max(
|
|
3013
|
+
var e = Math.PI / 180, i = this.R, n = t.lat * e, o = this.R_MINOR / i, s = Math.sqrt(1 - o * o), r = s * Math.sin(n), a = Math.tan(Math.PI / 4 - n / 2) / Math.pow((1 - r) / (1 + r), s / 2);
|
|
3014
|
+
return n = -i * Math.log(Math.max(a, 1e-10)), new w(t.lng * e * i, n);
|
|
3013
3015
|
},
|
|
3014
3016
|
unproject: function(t) {
|
|
3015
|
-
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), s = Math.exp(-t.y / i), r = Math.PI / 2 - 2 * Math.atan(s),
|
|
3017
|
+
for (var e = 180 / Math.PI, i = this.R, n = this.R_MINOR / i, o = Math.sqrt(1 - n * n), s = Math.exp(-t.y / i), r = Math.PI / 2 - 2 * Math.atan(s), a = 0, u = 0.1, l; a < 15 && Math.abs(u) > 1e-7; a++)
|
|
3016
3018
|
l = o * Math.sin(r), l = Math.pow((1 - l) / (1 + l), o / 2), u = Math.PI / 2 - 2 * Math.atan(s * l) - r, r += u;
|
|
3017
3019
|
return new k(r * e, t.x * e / i);
|
|
3018
3020
|
}
|
|
3019
|
-
},
|
|
3021
|
+
}, So = {
|
|
3020
3022
|
__proto__: null,
|
|
3021
3023
|
LonLat: $e,
|
|
3022
3024
|
Mercator: ti,
|
|
3023
3025
|
SphericalMercator: Me
|
|
3024
|
-
},
|
|
3026
|
+
}, ko = _({}, gt, {
|
|
3025
3027
|
code: "EPSG:3395",
|
|
3026
3028
|
projection: ti,
|
|
3027
3029
|
transformation: function() {
|
|
3028
3030
|
var t = 0.5 / (Math.PI * ti.R);
|
|
3029
|
-
return
|
|
3031
|
+
return Rt(t, 0.5, -t, 0.5);
|
|
3030
3032
|
}()
|
|
3031
3033
|
}), an = _({}, gt, {
|
|
3032
3034
|
code: "EPSG:4326",
|
|
3033
3035
|
projection: $e,
|
|
3034
|
-
transformation:
|
|
3035
|
-
}),
|
|
3036
|
+
transformation: Rt(1 / 180, 1, -1 / 180, 0.5)
|
|
3037
|
+
}), Eo = _({}, ft, {
|
|
3036
3038
|
projection: $e,
|
|
3037
|
-
transformation:
|
|
3039
|
+
transformation: Rt(1, 0, -1, 0),
|
|
3038
3040
|
scale: function(t) {
|
|
3039
3041
|
return Math.pow(2, t);
|
|
3040
3042
|
},
|
|
@@ -3047,8 +3049,8 @@ var ui = { exports: {} };
|
|
|
3047
3049
|
},
|
|
3048
3050
|
infinite: !0
|
|
3049
3051
|
});
|
|
3050
|
-
ft.Earth = gt, ft.EPSG3395 =
|
|
3051
|
-
var nt =
|
|
3052
|
+
ft.Earth = gt, ft.EPSG3395 = ko, ft.EPSG3857 = ze, ft.EPSG900913 = Bn, ft.EPSG4326 = an, ft.Simple = Eo;
|
|
3053
|
+
var nt = Nt.extend({
|
|
3052
3054
|
// Classes extending `L.Layer` will inherit the following options:
|
|
3053
3055
|
options: {
|
|
3054
3056
|
// @option pane: String = 'overlayPane'
|
|
@@ -3145,7 +3147,7 @@ var ui = { exports: {} };
|
|
|
3145
3147
|
return this;
|
|
3146
3148
|
},
|
|
3147
3149
|
_addLayers: function(t) {
|
|
3148
|
-
t = t ?
|
|
3150
|
+
t = t ? F(t) ? t : [t] : [];
|
|
3149
3151
|
for (var e = 0, i = t.length; e < i; e++)
|
|
3150
3152
|
this.addLayer(t[e]);
|
|
3151
3153
|
},
|
|
@@ -3165,7 +3167,7 @@ var ui = { exports: {} };
|
|
|
3165
3167
|
this._layersMaxZoom = e === -1 / 0 ? void 0 : e, this._layersMinZoom = t === 1 / 0 ? void 0 : t, i !== this._getZoomSpan() && this.fire("zoomlevelschange"), this.options.maxZoom === void 0 && this._layersMaxZoom && this.getZoom() > this._layersMaxZoom && this.setZoom(this._layersMaxZoom), this.options.minZoom === void 0 && this._layersMinZoom && this.getZoom() < this._layersMinZoom && this.setZoom(this._layersMinZoom);
|
|
3166
3168
|
}
|
|
3167
3169
|
});
|
|
3168
|
-
var
|
|
3170
|
+
var St = nt.extend({
|
|
3169
3171
|
initialize: function(t, e) {
|
|
3170
3172
|
E(this, e), this._layers = {};
|
|
3171
3173
|
var i, n;
|
|
@@ -3251,14 +3253,14 @@ var ui = { exports: {} };
|
|
|
3251
3253
|
getLayerId: function(t) {
|
|
3252
3254
|
return P(t);
|
|
3253
3255
|
}
|
|
3254
|
-
}),
|
|
3255
|
-
return new
|
|
3256
|
-
}, dt =
|
|
3256
|
+
}), Ao = function(t, e) {
|
|
3257
|
+
return new St(t, e);
|
|
3258
|
+
}, dt = St.extend({
|
|
3257
3259
|
addLayer: function(t) {
|
|
3258
|
-
return this.hasLayer(t) ? this : (t.addEventParent(this),
|
|
3260
|
+
return this.hasLayer(t) ? this : (t.addEventParent(this), St.prototype.addLayer.call(this, t), this.fire("layeradd", { layer: t }));
|
|
3259
3261
|
},
|
|
3260
3262
|
removeLayer: function(t) {
|
|
3261
|
-
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this),
|
|
3263
|
+
return this.hasLayer(t) ? (t in this._layers && (t = this._layers[t]), t.removeEventParent(this), St.prototype.removeLayer.call(this, t), this.fire("layerremove", { layer: t })) : this;
|
|
3262
3264
|
},
|
|
3263
3265
|
// @method setStyle(style: Path options): this
|
|
3264
3266
|
// Sets the given path options to each layer of the group that has a `setStyle` method.
|
|
@@ -3285,9 +3287,9 @@ var ui = { exports: {} };
|
|
|
3285
3287
|
}
|
|
3286
3288
|
return t;
|
|
3287
3289
|
}
|
|
3288
|
-
}),
|
|
3290
|
+
}), Oo = function(t, e) {
|
|
3289
3291
|
return new dt(t, e);
|
|
3290
|
-
},
|
|
3292
|
+
}, kt = ct.extend({
|
|
3291
3293
|
/* @section
|
|
3292
3294
|
* @aka Icon options
|
|
3293
3295
|
*
|
|
@@ -3373,10 +3375,10 @@ var ui = { exports: {} };
|
|
|
3373
3375
|
return p.retina && this.options[t + "RetinaUrl"] || this.options[t + "Url"];
|
|
3374
3376
|
}
|
|
3375
3377
|
});
|
|
3376
|
-
function
|
|
3377
|
-
return new
|
|
3378
|
+
function Zo(t) {
|
|
3379
|
+
return new kt(t);
|
|
3378
3380
|
}
|
|
3379
|
-
var
|
|
3381
|
+
var Kt = kt.extend({
|
|
3380
3382
|
options: {
|
|
3381
3383
|
iconUrl: "marker-icon.png",
|
|
3382
3384
|
iconRetinaUrl: "marker-icon-2x.png",
|
|
@@ -3388,7 +3390,7 @@ var ui = { exports: {} };
|
|
|
3388
3390
|
shadowSize: [41, 41]
|
|
3389
3391
|
},
|
|
3390
3392
|
_getIconUrl: function(t) {
|
|
3391
|
-
return typeof
|
|
3393
|
+
return typeof Kt.imagePath != "string" && (Kt.imagePath = this._detectIconPath()), (this.options.imagePath || Kt.imagePath) + kt.prototype._getIconUrl.call(this, t);
|
|
3392
3394
|
},
|
|
3393
3395
|
_stripUrl: function(t) {
|
|
3394
3396
|
var e = function(i, n, o) {
|
|
@@ -3398,7 +3400,7 @@ var ui = { exports: {} };
|
|
|
3398
3400
|
return t = e(t, /^url\((['"])?(.+)\1\)$/, 2), t && e(t, /^(.*)marker-icon\.png$/, 1);
|
|
3399
3401
|
},
|
|
3400
3402
|
_detectIconPath: function() {
|
|
3401
|
-
var t = z("div", "leaflet-default-icon-path", document.body), e =
|
|
3403
|
+
var t = z("div", "leaflet-default-icon-path", document.body), e = Ft(t, "background-image") || Ft(t, "backgroundImage");
|
|
3402
3404
|
if (document.body.removeChild(t), e = this._stripUrl(e), e)
|
|
3403
3405
|
return e;
|
|
3404
3406
|
var i = document.querySelector('link[href$="leaflet.css"]');
|
|
@@ -3429,32 +3431,32 @@ var ui = { exports: {} };
|
|
|
3429
3431
|
return this._draggable && this._draggable._moved;
|
|
3430
3432
|
},
|
|
3431
3433
|
_adjustPan: function(t) {
|
|
3432
|
-
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s =
|
|
3433
|
-
r.min._subtract(
|
|
3434
|
-
r.max._subtract(
|
|
3434
|
+
var e = this._marker, i = e._map, n = this._marker.options.autoPanSpeed, o = this._marker.options.autoPanPadding, s = xt(e._icon), r = i.getPixelBounds(), a = i.getPixelOrigin(), u = G(
|
|
3435
|
+
r.min._subtract(a).add(o),
|
|
3436
|
+
r.max._subtract(a).subtract(o)
|
|
3435
3437
|
);
|
|
3436
3438
|
if (!u.contains(s)) {
|
|
3437
3439
|
var l = y(
|
|
3438
3440
|
(Math.max(u.max.x, s.x) - u.max.x) / (r.max.x - u.max.x) - (Math.min(u.min.x, s.x) - u.min.x) / (r.min.x - u.min.x),
|
|
3439
3441
|
(Math.max(u.max.y, s.y) - u.max.y) / (r.max.y - u.max.y) - (Math.min(u.min.y, s.y) - u.min.y) / (r.min.y - u.min.y)
|
|
3440
3442
|
).multiplyBy(n);
|
|
3441
|
-
i.panBy(l, { animate: !1 }), this._draggable._newPos._add(l), this._draggable._startPos._add(l), R(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest =
|
|
3443
|
+
i.panBy(l, { animate: !1 }), this._draggable._newPos._add(l), this._draggable._startPos._add(l), R(e._icon, this._draggable._newPos), this._onDrag(t), this._panRequest = q(this._adjustPan.bind(this, t));
|
|
3442
3444
|
}
|
|
3443
3445
|
},
|
|
3444
3446
|
_onDragStart: function() {
|
|
3445
3447
|
this._oldLatLng = this._marker.getLatLng(), this._marker.closePopup && this._marker.closePopup(), this._marker.fire("movestart").fire("dragstart");
|
|
3446
3448
|
},
|
|
3447
3449
|
_onPreDrag: function(t) {
|
|
3448
|
-
this._marker.options.autoPan && (
|
|
3450
|
+
this._marker.options.autoPan && (Q(this._panRequest), this._panRequest = q(this._adjustPan.bind(this, t)));
|
|
3449
3451
|
},
|
|
3450
3452
|
_onDrag: function(t) {
|
|
3451
|
-
var e = this._marker, i = e._shadow, n =
|
|
3453
|
+
var e = this._marker, i = e._shadow, n = xt(e._icon), o = e._map.layerPointToLatLng(n);
|
|
3452
3454
|
i && R(i, n), e._latlng = o, t.latlng = o, t.oldLatLng = this._oldLatLng, e.fire("move", t).fire("drag", t);
|
|
3453
3455
|
},
|
|
3454
3456
|
_onDragEnd: function(t) {
|
|
3455
|
-
|
|
3457
|
+
Q(this._panRequest), delete this._oldLatLng, this._marker.fire("moveend").fire("dragend", t);
|
|
3456
3458
|
}
|
|
3457
|
-
}),
|
|
3459
|
+
}), ue = nt.extend({
|
|
3458
3460
|
// @section
|
|
3459
3461
|
// @aka Marker options
|
|
3460
3462
|
options: {
|
|
@@ -3462,7 +3464,7 @@ var ui = { exports: {} };
|
|
|
3462
3464
|
// Icon instance to use for rendering the marker.
|
|
3463
3465
|
// See [Icon documentation](#L.Icon) for details on how to customize the marker icon.
|
|
3464
3466
|
// If not specified, a common instance of `L.Icon.Default` is used.
|
|
3465
|
-
icon: new
|
|
3467
|
+
icon: new Kt(),
|
|
3466
3468
|
// Option inherited from "Interactive layer" abstract class
|
|
3467
3469
|
interactive: !0,
|
|
3468
3470
|
// @option keyboard: Boolean = true
|
|
@@ -3614,7 +3616,7 @@ var ui = { exports: {} };
|
|
|
3614
3616
|
},
|
|
3615
3617
|
_updateOpacity: function() {
|
|
3616
3618
|
var t = this.options.opacity;
|
|
3617
|
-
this._icon &&
|
|
3619
|
+
this._icon && $(this._icon, t), this._shadow && $(this._shadow, t);
|
|
3618
3620
|
},
|
|
3619
3621
|
_bringToFront: function() {
|
|
3620
3622
|
this._updateZIndex(this.options.riseOffset);
|
|
@@ -3639,8 +3641,8 @@ var ui = { exports: {} };
|
|
|
3639
3641
|
return this.options.icon.options.tooltipAnchor;
|
|
3640
3642
|
}
|
|
3641
3643
|
});
|
|
3642
|
-
function
|
|
3643
|
-
return new
|
|
3644
|
+
function Io(t, e) {
|
|
3645
|
+
return new ue(t, e);
|
|
3644
3646
|
}
|
|
3645
3647
|
var yt = nt.extend({
|
|
3646
3648
|
// @section
|
|
@@ -3728,7 +3730,7 @@ var ui = { exports: {} };
|
|
|
3728
3730
|
_clickTolerance: function() {
|
|
3729
3731
|
return (this.options.stroke ? this.options.weight / 2 : 0) + (this._renderer.options.tolerance || 0);
|
|
3730
3732
|
}
|
|
3731
|
-
}),
|
|
3733
|
+
}), le = yt.extend({
|
|
3732
3734
|
// @section
|
|
3733
3735
|
// @aka CircleMarker options
|
|
3734
3736
|
options: {
|
|
@@ -3786,10 +3788,10 @@ var ui = { exports: {} };
|
|
|
3786
3788
|
return t.distanceTo(this._point) <= this._radius + this._clickTolerance();
|
|
3787
3789
|
}
|
|
3788
3790
|
});
|
|
3789
|
-
function
|
|
3790
|
-
return new
|
|
3791
|
+
function Bo(t, e) {
|
|
3792
|
+
return new le(t, e);
|
|
3791
3793
|
}
|
|
3792
|
-
var ei =
|
|
3794
|
+
var ei = le.extend({
|
|
3793
3795
|
initialize: function(t, e, i) {
|
|
3794
3796
|
if (typeof e == "number" && (e = _({}, i, { radius: e })), E(this, e), this._latlng = M(t), isNaN(this.options.radius))
|
|
3795
3797
|
throw new Error("Circle radius cannot be NaN");
|
|
@@ -3818,16 +3820,16 @@ var ui = { exports: {} };
|
|
|
3818
3820
|
_project: function() {
|
|
3819
3821
|
var t = this._latlng.lng, e = this._latlng.lat, i = this._map, n = i.options.crs;
|
|
3820
3822
|
if (n.distance === gt.distance) {
|
|
3821
|
-
var o = Math.PI / 180, s = this._mRadius / gt.R / o, r = i.project([e + s, t]),
|
|
3822
|
-
(isNaN(
|
|
3823
|
+
var o = Math.PI / 180, s = this._mRadius / gt.R / o, r = i.project([e + s, t]), a = i.project([e - s, t]), u = r.add(a).divideBy(2), l = i.unproject(u).lat, f = Math.acos((Math.cos(s * o) - Math.sin(e * o) * Math.sin(l * o)) / (Math.cos(e * o) * Math.cos(l * o))) / o;
|
|
3824
|
+
(isNaN(f) || f === 0) && (f = s / Math.cos(Math.PI / 180 * e)), this._point = u.subtract(i.getPixelOrigin()), this._radius = isNaN(f) ? 0 : u.x - i.project([l, t - f]).x, this._radiusY = u.y - r.y;
|
|
3823
3825
|
} else {
|
|
3824
|
-
var
|
|
3825
|
-
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(
|
|
3826
|
+
var v = n.unproject(n.project(this._latlng).subtract([this._mRadius, 0]));
|
|
3827
|
+
this._point = i.latLngToLayerPoint(this._latlng), this._radius = this._point.x - i.latLngToLayerPoint(v).x;
|
|
3826
3828
|
}
|
|
3827
3829
|
this._updateBounds();
|
|
3828
3830
|
}
|
|
3829
3831
|
});
|
|
3830
|
-
function
|
|
3832
|
+
function No(t, e, i) {
|
|
3831
3833
|
return new ei(t, e, i);
|
|
3832
3834
|
}
|
|
3833
3835
|
var _t = yt.extend({
|
|
@@ -3863,11 +3865,11 @@ var ui = { exports: {} };
|
|
|
3863
3865
|
// @method closestLayerPoint(p: Point): Point
|
|
3864
3866
|
// Returns the point closest to `p` on the Polyline.
|
|
3865
3867
|
closestLayerPoint: function(t) {
|
|
3866
|
-
for (var e = 1 / 0, i = null, n = jt, o, s, r = 0,
|
|
3867
|
-
for (var u = this._parts[r], l = 1,
|
|
3868
|
+
for (var e = 1 / 0, i = null, n = jt, o, s, r = 0, a = this._parts.length; r < a; r++)
|
|
3869
|
+
for (var u = this._parts[r], l = 1, f = u.length; l < f; l++) {
|
|
3868
3870
|
o = u[l - 1], s = u[l];
|
|
3869
|
-
var
|
|
3870
|
-
|
|
3871
|
+
var v = n(t, o, s, !0);
|
|
3872
|
+
v < e && (e = v, i = n(t, o, s));
|
|
3871
3873
|
}
|
|
3872
3874
|
return i && (i.distance = Math.sqrt(e)), i;
|
|
3873
3875
|
},
|
|
@@ -3894,11 +3896,11 @@ var ui = { exports: {} };
|
|
|
3894
3896
|
this._bounds = new j(), this._latlngs = this._convertLatLngs(t);
|
|
3895
3897
|
},
|
|
3896
3898
|
_defaultShape: function() {
|
|
3897
|
-
return
|
|
3899
|
+
return tt(this._latlngs) ? this._latlngs : this._latlngs[0];
|
|
3898
3900
|
},
|
|
3899
3901
|
// recursively convert latlngs input into actual LatLng instances; calculate bounds along the way
|
|
3900
3902
|
_convertLatLngs: function(t) {
|
|
3901
|
-
for (var e = [], i =
|
|
3903
|
+
for (var e = [], i = tt(t), n = 0, o = t.length; n < o; n++)
|
|
3902
3904
|
i ? (e[n] = M(t[n]), this._bounds.extend(e[n])) : e[n] = this._convertLatLngs(t[n]);
|
|
3903
3905
|
return e;
|
|
3904
3906
|
},
|
|
@@ -3932,10 +3934,10 @@ var ui = { exports: {} };
|
|
|
3932
3934
|
this._parts = this._rings;
|
|
3933
3935
|
return;
|
|
3934
3936
|
}
|
|
3935
|
-
var e = this._parts, i, n, o, s, r,
|
|
3937
|
+
var e = this._parts, i, n, o, s, r, a, u;
|
|
3936
3938
|
for (i = 0, o = 0, s = this._rings.length; i < s; i++)
|
|
3937
3939
|
for (u = this._rings[i], n = 0, r = u.length; n < r - 1; n++)
|
|
3938
|
-
|
|
3940
|
+
a = on(u[n], u[n + 1], t, n, !0), a && (e[o] = e[o] || [], e[o].push(a[0]), (a[1] !== u[n + 1] || n === r - 2) && (e[o].push(a[1]), o++));
|
|
3939
3941
|
}
|
|
3940
3942
|
},
|
|
3941
3943
|
// simplify each clipped part of the polyline for performance
|
|
@@ -3951,21 +3953,21 @@ var ui = { exports: {} };
|
|
|
3951
3953
|
},
|
|
3952
3954
|
// Needed by the `Canvas` renderer for interactivity
|
|
3953
3955
|
_containsPoint: function(t, e) {
|
|
3954
|
-
var i, n, o, s, r,
|
|
3956
|
+
var i, n, o, s, r, a, u = this._clickTolerance();
|
|
3955
3957
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
3956
3958
|
return !1;
|
|
3957
3959
|
for (i = 0, s = this._parts.length; i < s; i++)
|
|
3958
|
-
for (
|
|
3959
|
-
if (!(!e && n === 0) && en(t,
|
|
3960
|
+
for (a = this._parts[i], n = 0, r = a.length, o = r - 1; n < r; o = n++)
|
|
3961
|
+
if (!(!e && n === 0) && en(t, a[o], a[n]) <= u)
|
|
3960
3962
|
return !0;
|
|
3961
3963
|
return !1;
|
|
3962
3964
|
}
|
|
3963
3965
|
});
|
|
3964
|
-
function
|
|
3966
|
+
function Ro(t, e) {
|
|
3965
3967
|
return new _t(t, e);
|
|
3966
3968
|
}
|
|
3967
3969
|
_t._flat = sn;
|
|
3968
|
-
var
|
|
3970
|
+
var Et = _t.extend({
|
|
3969
3971
|
options: {
|
|
3970
3972
|
fill: !0
|
|
3971
3973
|
},
|
|
@@ -3984,10 +3986,10 @@ var ui = { exports: {} };
|
|
|
3984
3986
|
return i >= 2 && e[0] instanceof k && e[0].equals(e[i - 1]) && e.pop(), e;
|
|
3985
3987
|
},
|
|
3986
3988
|
_setLatLngs: function(t) {
|
|
3987
|
-
_t.prototype._setLatLngs.call(this, t),
|
|
3989
|
+
_t.prototype._setLatLngs.call(this, t), tt(this._latlngs) && (this._latlngs = [this._latlngs]);
|
|
3988
3990
|
},
|
|
3989
3991
|
_defaultShape: function() {
|
|
3990
|
-
return
|
|
3992
|
+
return tt(this._latlngs[0]) ? this._latlngs[0] : this._latlngs[0][0];
|
|
3991
3993
|
},
|
|
3992
3994
|
_clipPoints: function() {
|
|
3993
3995
|
var t = this._renderer._bounds, e = this.options.weight, i = new w(e, e);
|
|
@@ -4005,17 +4007,17 @@ var ui = { exports: {} };
|
|
|
4005
4007
|
},
|
|
4006
4008
|
// Needed by the `Canvas` renderer for interactivity
|
|
4007
4009
|
_containsPoint: function(t) {
|
|
4008
|
-
var e = !1, i, n, o, s, r,
|
|
4010
|
+
var e = !1, i, n, o, s, r, a, u, l;
|
|
4009
4011
|
if (!this._pxBounds || !this._pxBounds.contains(t))
|
|
4010
4012
|
return !1;
|
|
4011
4013
|
for (s = 0, u = this._parts.length; s < u; s++)
|
|
4012
|
-
for (i = this._parts[s], r = 0, l = i.length,
|
|
4013
|
-
n = i[r], o = i[
|
|
4014
|
+
for (i = this._parts[s], r = 0, l = i.length, a = l - 1; r < l; a = r++)
|
|
4015
|
+
n = i[r], o = i[a], n.y > t.y != o.y > t.y && t.x < (o.x - n.x) * (t.y - n.y) / (o.y - n.y) + n.x && (e = !e);
|
|
4014
4016
|
return e || _t.prototype._containsPoint.call(this, t, !0);
|
|
4015
4017
|
}
|
|
4016
4018
|
});
|
|
4017
|
-
function
|
|
4018
|
-
return new
|
|
4019
|
+
function Do(t, e) {
|
|
4020
|
+
return new Et(t, e);
|
|
4019
4021
|
}
|
|
4020
4022
|
var mt = dt.extend({
|
|
4021
4023
|
/* @section
|
|
@@ -4073,7 +4075,7 @@ var ui = { exports: {} };
|
|
|
4073
4075
|
// @method addData( <GeoJSON> data ): this
|
|
4074
4076
|
// Adds a GeoJSON object to the layer.
|
|
4075
4077
|
addData: function(t) {
|
|
4076
|
-
var e =
|
|
4078
|
+
var e = F(t) ? t : t.features, i, n, o;
|
|
4077
4079
|
if (e) {
|
|
4078
4080
|
for (i = 0, n = e.length; i < n; i++)
|
|
4079
4081
|
o = e[i], (o.geometries || o.geometry || o.features || o.coordinates) && this.addData(o);
|
|
@@ -4082,8 +4084,8 @@ var ui = { exports: {} };
|
|
|
4082
4084
|
var s = this.options;
|
|
4083
4085
|
if (s.filter && !s.filter(t))
|
|
4084
4086
|
return this;
|
|
4085
|
-
var r =
|
|
4086
|
-
return r ? (r.feature =
|
|
4087
|
+
var r = ce(t, s);
|
|
4088
|
+
return r ? (r.feature = _e(t), r.defaultOptions = r.options, this.resetStyle(r), s.onEachFeature && s.onEachFeature(t, r), this.addLayer(r)) : this;
|
|
4087
4089
|
},
|
|
4088
4090
|
// @method resetStyle( <Path> layer? ): this
|
|
4089
4091
|
// Resets the given vector layer's style to the original GeoJSON style, useful for resetting style after hover events.
|
|
@@ -4102,36 +4104,36 @@ var ui = { exports: {} };
|
|
|
4102
4104
|
t.setStyle && (typeof e == "function" && (e = e(t.feature)), t.setStyle(e));
|
|
4103
4105
|
}
|
|
4104
4106
|
});
|
|
4105
|
-
function
|
|
4106
|
-
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer, r = e && e.coordsToLatLng || ii,
|
|
4107
|
+
function ce(t, e) {
|
|
4108
|
+
var i = t.type === "Feature" ? t.geometry : t, n = i ? i.coordinates : null, o = [], s = e && e.pointToLayer, r = e && e.coordsToLatLng || ii, a, u, l, f;
|
|
4107
4109
|
if (!n && !i)
|
|
4108
4110
|
return null;
|
|
4109
4111
|
switch (i.type) {
|
|
4110
4112
|
case "Point":
|
|
4111
|
-
return
|
|
4113
|
+
return a = r(n), un(s, t, a, e);
|
|
4112
4114
|
case "MultiPoint":
|
|
4113
|
-
for (l = 0,
|
|
4114
|
-
|
|
4115
|
+
for (l = 0, f = n.length; l < f; l++)
|
|
4116
|
+
a = r(n[l]), o.push(un(s, t, a, e));
|
|
4115
4117
|
return new dt(o);
|
|
4116
4118
|
case "LineString":
|
|
4117
4119
|
case "MultiLineString":
|
|
4118
|
-
return u =
|
|
4120
|
+
return u = fe(n, i.type === "LineString" ? 0 : 1, r), new _t(u, e);
|
|
4119
4121
|
case "Polygon":
|
|
4120
4122
|
case "MultiPolygon":
|
|
4121
|
-
return u =
|
|
4123
|
+
return u = fe(n, i.type === "Polygon" ? 1 : 2, r), new Et(u, e);
|
|
4122
4124
|
case "GeometryCollection":
|
|
4123
|
-
for (l = 0,
|
|
4124
|
-
var
|
|
4125
|
+
for (l = 0, f = i.geometries.length; l < f; l++) {
|
|
4126
|
+
var v = ce({
|
|
4125
4127
|
geometry: i.geometries[l],
|
|
4126
4128
|
type: "Feature",
|
|
4127
4129
|
properties: t.properties
|
|
4128
4130
|
}, e);
|
|
4129
|
-
|
|
4131
|
+
v && o.push(v);
|
|
4130
4132
|
}
|
|
4131
4133
|
return new dt(o);
|
|
4132
4134
|
case "FeatureCollection":
|
|
4133
|
-
for (l = 0,
|
|
4134
|
-
var T =
|
|
4135
|
+
for (l = 0, f = i.features.length; l < f; l++) {
|
|
4136
|
+
var T = ce(i.features[l], e);
|
|
4135
4137
|
T && o.push(T);
|
|
4136
4138
|
}
|
|
4137
4139
|
return new dt(o);
|
|
@@ -4140,28 +4142,28 @@ var ui = { exports: {} };
|
|
|
4140
4142
|
}
|
|
4141
4143
|
}
|
|
4142
4144
|
function un(t, e, i, n) {
|
|
4143
|
-
return t ? t(e, i) : new
|
|
4145
|
+
return t ? t(e, i) : new ue(i, n && n.markersInheritOptions && n);
|
|
4144
4146
|
}
|
|
4145
4147
|
function ii(t) {
|
|
4146
4148
|
return new k(t[1], t[0], t[2]);
|
|
4147
4149
|
}
|
|
4148
|
-
function
|
|
4150
|
+
function fe(t, e, i) {
|
|
4149
4151
|
for (var n = [], o = 0, s = t.length, r; o < s; o++)
|
|
4150
|
-
r = e ?
|
|
4152
|
+
r = e ? fe(t[o], e - 1, i) : (i || ii)(t[o]), n.push(r);
|
|
4151
4153
|
return n;
|
|
4152
4154
|
}
|
|
4153
4155
|
function ni(t, e) {
|
|
4154
|
-
return t = M(t), t.alt !== void 0 ? [
|
|
4156
|
+
return t = M(t), t.alt !== void 0 ? [X(t.lng, e), X(t.lat, e), X(t.alt, e)] : [X(t.lng, e), X(t.lat, e)];
|
|
4155
4157
|
}
|
|
4156
|
-
function
|
|
4158
|
+
function de(t, e, i, n) {
|
|
4157
4159
|
for (var o = [], s = 0, r = t.length; s < r; s++)
|
|
4158
|
-
o.push(e ?
|
|
4160
|
+
o.push(e ? de(t[s], tt(t[s]) ? 0 : e - 1, i, n) : ni(t[s], n));
|
|
4159
4161
|
return !e && i && o.length > 0 && o.push(o[0].slice()), o;
|
|
4160
4162
|
}
|
|
4161
|
-
function
|
|
4162
|
-
return t.feature ? _({}, t.feature, { geometry: e }) :
|
|
4163
|
+
function At(t, e) {
|
|
4164
|
+
return t.feature ? _({}, t.feature, { geometry: e }) : _e(e);
|
|
4163
4165
|
}
|
|
4164
|
-
function
|
|
4166
|
+
function _e(t) {
|
|
4165
4167
|
return t.type === "Feature" || t.type === "FeatureCollection" ? t : {
|
|
4166
4168
|
type: "Feature",
|
|
4167
4169
|
properties: {},
|
|
@@ -4170,34 +4172,34 @@ var ui = { exports: {} };
|
|
|
4170
4172
|
}
|
|
4171
4173
|
var oi = {
|
|
4172
4174
|
toGeoJSON: function(t) {
|
|
4173
|
-
return
|
|
4175
|
+
return At(this, {
|
|
4174
4176
|
type: "Point",
|
|
4175
4177
|
coordinates: ni(this.getLatLng(), t)
|
|
4176
4178
|
});
|
|
4177
4179
|
}
|
|
4178
4180
|
};
|
|
4179
|
-
|
|
4181
|
+
ue.include(oi), ei.include(oi), le.include(oi), _t.include({
|
|
4180
4182
|
toGeoJSON: function(t) {
|
|
4181
|
-
var e =
|
|
4182
|
-
return
|
|
4183
|
+
var e = !tt(this._latlngs), i = de(this._latlngs, e ? 1 : 0, !1, t);
|
|
4184
|
+
return At(this, {
|
|
4183
4185
|
type: (e ? "Multi" : "") + "LineString",
|
|
4184
4186
|
coordinates: i
|
|
4185
4187
|
});
|
|
4186
4188
|
}
|
|
4187
|
-
}),
|
|
4189
|
+
}), Et.include({
|
|
4188
4190
|
toGeoJSON: function(t) {
|
|
4189
|
-
var e =
|
|
4190
|
-
return e || (n = [n]),
|
|
4191
|
+
var e = !tt(this._latlngs), i = e && !tt(this._latlngs[0]), n = de(this._latlngs, i ? 2 : e ? 1 : 0, !0, t);
|
|
4192
|
+
return e || (n = [n]), At(this, {
|
|
4191
4193
|
type: (i ? "Multi" : "") + "Polygon",
|
|
4192
4194
|
coordinates: n
|
|
4193
4195
|
});
|
|
4194
4196
|
}
|
|
4195
|
-
}),
|
|
4197
|
+
}), St.include({
|
|
4196
4198
|
toMultiPoint: function(t) {
|
|
4197
4199
|
var e = [];
|
|
4198
4200
|
return this.eachLayer(function(i) {
|
|
4199
4201
|
e.push(i.toGeoJSON(t).geometry.coordinates);
|
|
4200
|
-
}),
|
|
4202
|
+
}), At(this, {
|
|
4201
4203
|
type: "MultiPoint",
|
|
4202
4204
|
coordinates: e
|
|
4203
4205
|
});
|
|
@@ -4216,11 +4218,11 @@ var ui = { exports: {} };
|
|
|
4216
4218
|
if (i)
|
|
4217
4219
|
n.push(s.geometry);
|
|
4218
4220
|
else {
|
|
4219
|
-
var r =
|
|
4221
|
+
var r = _e(s);
|
|
4220
4222
|
r.type === "FeatureCollection" ? n.push.apply(n, r.features) : n.push(r);
|
|
4221
4223
|
}
|
|
4222
4224
|
}
|
|
4223
|
-
}), i ?
|
|
4225
|
+
}), i ? At(this, {
|
|
4224
4226
|
geometries: n,
|
|
4225
4227
|
type: "GeometryCollection"
|
|
4226
4228
|
}) : {
|
|
@@ -4232,7 +4234,7 @@ var ui = { exports: {} };
|
|
|
4232
4234
|
function ln(t, e) {
|
|
4233
4235
|
return new mt(t, e);
|
|
4234
4236
|
}
|
|
4235
|
-
var
|
|
4237
|
+
var Ho = ln, me = nt.extend({
|
|
4236
4238
|
// @section
|
|
4237
4239
|
// @aka ImageOverlay options
|
|
4238
4240
|
options: {
|
|
@@ -4280,12 +4282,12 @@ var ui = { exports: {} };
|
|
|
4280
4282
|
// @method bringToFront(): this
|
|
4281
4283
|
// Brings the layer to the top of all overlays.
|
|
4282
4284
|
bringToFront: function() {
|
|
4283
|
-
return this._map &&
|
|
4285
|
+
return this._map && Ct(this._image), this;
|
|
4284
4286
|
},
|
|
4285
4287
|
// @method bringToBack(): this
|
|
4286
4288
|
// Brings the layer to the bottom of all overlays.
|
|
4287
4289
|
bringToBack: function() {
|
|
4288
|
-
return this._map &&
|
|
4290
|
+
return this._map && zt(this._image), this;
|
|
4289
4291
|
},
|
|
4290
4292
|
// @method setUrl(url: String): this
|
|
4291
4293
|
// Changes the URL of the image.
|
|
@@ -4322,7 +4324,7 @@ var ui = { exports: {} };
|
|
|
4322
4324
|
},
|
|
4323
4325
|
_initImage: function() {
|
|
4324
4326
|
var t = this._url.tagName === "IMG", e = this._image = t ? this._url : z("img");
|
|
4325
|
-
if (b(e, "leaflet-image-layer"), this._zoomAnimated && b(e, "leaflet-zoom-animated"), this.options.className && b(e, this.options.className), e.onselectstart = O, e.onmousemove = O, e.onload =
|
|
4327
|
+
if (b(e, "leaflet-image-layer"), this._zoomAnimated && b(e, "leaflet-zoom-animated"), this.options.className && b(e, this.options.className), e.onselectstart = O, e.onmousemove = O, e.onload = g(this.fire, this, "load"), e.onerror = g(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (e.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), t) {
|
|
4326
4328
|
this._url = e.src;
|
|
4327
4329
|
return;
|
|
4328
4330
|
}
|
|
@@ -4330,7 +4332,7 @@ var ui = { exports: {} };
|
|
|
4330
4332
|
},
|
|
4331
4333
|
_animateZoom: function(t) {
|
|
4332
4334
|
var e = this._map.getZoomScale(t.zoom), i = this._map._latLngBoundsToNewLayerBounds(this._bounds, t.zoom, t.center).min;
|
|
4333
|
-
|
|
4335
|
+
wt(this._image, i, e);
|
|
4334
4336
|
},
|
|
4335
4337
|
_reset: function() {
|
|
4336
4338
|
var t = this._image, e = new Z(
|
|
@@ -4340,7 +4342,7 @@ var ui = { exports: {} };
|
|
|
4340
4342
|
R(t, e.min), t.style.width = i.x + "px", t.style.height = i.y + "px";
|
|
4341
4343
|
},
|
|
4342
4344
|
_updateOpacity: function() {
|
|
4343
|
-
|
|
4345
|
+
$(this._image, this.options.opacity);
|
|
4344
4346
|
},
|
|
4345
4347
|
_updateZIndex: function() {
|
|
4346
4348
|
this._image && this.options.zIndex !== void 0 && this.options.zIndex !== null && (this._image.style.zIndex = this.options.zIndex);
|
|
@@ -4355,9 +4357,9 @@ var ui = { exports: {} };
|
|
|
4355
4357
|
getCenter: function() {
|
|
4356
4358
|
return this._bounds.getCenter();
|
|
4357
4359
|
}
|
|
4358
|
-
}),
|
|
4359
|
-
return new
|
|
4360
|
-
}, cn =
|
|
4360
|
+
}), Fo = function(t, e, i) {
|
|
4361
|
+
return new me(t, e, i);
|
|
4362
|
+
}, cn = me.extend({
|
|
4361
4363
|
// @section
|
|
4362
4364
|
// @aka VideoOverlay options
|
|
4363
4365
|
options: {
|
|
@@ -4381,13 +4383,13 @@ var ui = { exports: {} };
|
|
|
4381
4383
|
},
|
|
4382
4384
|
_initImage: function() {
|
|
4383
4385
|
var t = this._url.tagName === "VIDEO", e = this._image = t ? this._url : z("video");
|
|
4384
|
-
if (b(e, "leaflet-image-layer"), this._zoomAnimated && b(e, "leaflet-zoom-animated"), this.options.className && b(e, this.options.className), e.onselectstart = O, e.onmousemove = O, e.onloadeddata =
|
|
4386
|
+
if (b(e, "leaflet-image-layer"), this._zoomAnimated && b(e, "leaflet-zoom-animated"), this.options.className && b(e, this.options.className), e.onselectstart = O, e.onmousemove = O, e.onloadeddata = g(this.fire, this, "load"), t) {
|
|
4385
4387
|
for (var i = e.getElementsByTagName("source"), n = [], o = 0; o < i.length; o++)
|
|
4386
4388
|
n.push(i[o].src);
|
|
4387
4389
|
this._url = i.length > 0 ? n : [e.src];
|
|
4388
4390
|
return;
|
|
4389
4391
|
}
|
|
4390
|
-
|
|
4392
|
+
F(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(e.style, "objectFit") && (e.style.objectFit = "fill"), e.autoplay = !!this.options.autoplay, e.loop = !!this.options.loop, e.muted = !!this.options.muted, e.playsInline = !!this.options.playsInline;
|
|
4391
4393
|
for (var s = 0; s < this._url.length; s++) {
|
|
4392
4394
|
var r = z("source");
|
|
4393
4395
|
r.src = this._url[s], e.appendChild(r);
|
|
@@ -4397,10 +4399,10 @@ var ui = { exports: {} };
|
|
|
4397
4399
|
// Returns the instance of [`HTMLVideoElement`](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
|
|
4398
4400
|
// used by this overlay.
|
|
4399
4401
|
});
|
|
4400
|
-
function
|
|
4402
|
+
function Wo(t, e, i) {
|
|
4401
4403
|
return new cn(t, e, i);
|
|
4402
4404
|
}
|
|
4403
|
-
var fn =
|
|
4405
|
+
var fn = me.extend({
|
|
4404
4406
|
_initImage: function() {
|
|
4405
4407
|
var t = this._image = this._url;
|
|
4406
4408
|
b(t, "leaflet-image-layer"), this._zoomAnimated && b(t, "leaflet-zoom-animated"), this.options.className && b(t, this.options.className), t.onselectstart = O, t.onmousemove = O;
|
|
@@ -4409,7 +4411,7 @@ var ui = { exports: {} };
|
|
|
4409
4411
|
// Returns the instance of [`SVGElement`](https://developer.mozilla.org/docs/Web/API/SVGElement)
|
|
4410
4412
|
// used by this overlay.
|
|
4411
4413
|
});
|
|
4412
|
-
function
|
|
4414
|
+
function Uo(t, e, i) {
|
|
4413
4415
|
return new fn(t, e, i);
|
|
4414
4416
|
}
|
|
4415
4417
|
var ut = nt.extend({
|
|
@@ -4434,7 +4436,7 @@ var ui = { exports: {} };
|
|
|
4434
4436
|
content: ""
|
|
4435
4437
|
},
|
|
4436
4438
|
initialize: function(t, e) {
|
|
4437
|
-
t && (t instanceof k ||
|
|
4439
|
+
t && (t instanceof k || F(t)) ? (this._latlng = M(t), E(this, e)) : (E(this, t), this._source = e), this.options.content && (this._content = this.options.content);
|
|
4438
4440
|
},
|
|
4439
4441
|
// @method openOn(map: Map): this
|
|
4440
4442
|
// Adds the overlay to the map.
|
|
@@ -4457,10 +4459,10 @@ var ui = { exports: {} };
|
|
|
4457
4459
|
return this._map ? this.close() : (arguments.length ? this._source = t : t = this._source, this._prepareOpen(), this.openOn(t._map)), this;
|
|
4458
4460
|
},
|
|
4459
4461
|
onAdd: function(t) {
|
|
4460
|
-
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated &&
|
|
4462
|
+
this._zoomAnimated = t._zoomAnimated, this._container || this._initLayout(), t._fadeAnimated && $(this._container, 0), clearTimeout(this._removeTimeout), this.getPane().appendChild(this._container), this.update(), t._fadeAnimated && $(this._container, 1), this.bringToFront(), this.options.interactive && (b(this._container, "leaflet-interactive"), this.addInteractiveTarget(this._container));
|
|
4461
4463
|
},
|
|
4462
4464
|
onRemove: function(t) {
|
|
4463
|
-
t._fadeAnimated ? (
|
|
4465
|
+
t._fadeAnimated ? ($(this._container, 0), this._removeTimeout = setTimeout(g(I, void 0, this._container), 200)) : I(this._container), this.options.interactive && (B(this._container, "leaflet-interactive"), this.removeInteractiveTarget(this._container));
|
|
4464
4466
|
},
|
|
4465
4467
|
// @namespace DivOverlay
|
|
4466
4468
|
// @method getLatLng: LatLng
|
|
@@ -4509,12 +4511,12 @@ var ui = { exports: {} };
|
|
|
4509
4511
|
// @method bringToFront: this
|
|
4510
4512
|
// Brings this overlay in front of other overlays (in the same map pane).
|
|
4511
4513
|
bringToFront: function() {
|
|
4512
|
-
return this._map &&
|
|
4514
|
+
return this._map && Ct(this._container), this;
|
|
4513
4515
|
},
|
|
4514
4516
|
// @method bringToBack: this
|
|
4515
4517
|
// Brings this overlay to the back of other overlays (in the same map pane).
|
|
4516
4518
|
bringToBack: function() {
|
|
4517
|
-
return this._map &&
|
|
4519
|
+
return this._map && zt(this._container), this;
|
|
4518
4520
|
},
|
|
4519
4521
|
// prepare bound overlay to open: update latlng pos / content source (for FeatureGroup)
|
|
4520
4522
|
_prepareOpen: function(t) {
|
|
@@ -4580,7 +4582,7 @@ var ui = { exports: {} };
|
|
|
4580
4582
|
return o instanceof t ? (E(o, n), o._source = this) : (o = e && !n ? e : new t(n, this), o.setContent(i)), o;
|
|
4581
4583
|
}
|
|
4582
4584
|
});
|
|
4583
|
-
var
|
|
4585
|
+
var pe = ut.extend({
|
|
4584
4586
|
// @section
|
|
4585
4587
|
// @aka Popup options
|
|
4586
4588
|
options: {
|
|
@@ -4647,10 +4649,10 @@ var ui = { exports: {} };
|
|
|
4647
4649
|
return t = arguments.length ? t : this._source._map, !t.hasLayer(this) && t._popup && t._popup.options.autoClose && t.removeLayer(t._popup), t._popup = this, ut.prototype.openOn.call(this, t);
|
|
4648
4650
|
},
|
|
4649
4651
|
onAdd: function(t) {
|
|
4650
|
-
ut.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof yt || this._source.on("preclick",
|
|
4652
|
+
ut.prototype.onAdd.call(this, t), t.fire("popupopen", { popup: this }), this._source && (this._source.fire("popupopen", { popup: this }, !0), this._source instanceof yt || this._source.on("preclick", Lt));
|
|
4651
4653
|
},
|
|
4652
4654
|
onRemove: function(t) {
|
|
4653
|
-
ut.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof yt || this._source.off("preclick",
|
|
4655
|
+
ut.prototype.onRemove.call(this, t), t.fire("popupclose", { popup: this }), this._source && (this._source.fire("popupclose", { popup: this }, !0), this._source instanceof yt || this._source.off("preclick", Lt));
|
|
4654
4656
|
},
|
|
4655
4657
|
getEvents: function() {
|
|
4656
4658
|
var t = ut.prototype.getEvents.call(this);
|
|
@@ -4661,10 +4663,10 @@ var ui = { exports: {} };
|
|
|
4661
4663
|
"div",
|
|
4662
4664
|
t + " " + (this.options.className || "") + " leaflet-zoom-animated"
|
|
4663
4665
|
), i = this._wrapper = z("div", t + "-content-wrapper", e);
|
|
4664
|
-
if (this._contentNode = z("div", t + "-content", i),
|
|
4666
|
+
if (this._contentNode = z("div", t + "-content", i), qt(e), je(this._contentNode), x(e, "contextmenu", Lt), this._tipContainer = z("div", t + "-tip-container", e), this._tip = z("div", t + "-tip", this._tipContainer), this.options.closeButton) {
|
|
4665
4667
|
var n = this._closeButton = z("a", t + "-close-button", e);
|
|
4666
4668
|
n.setAttribute("role", "button"), n.setAttribute("aria-label", "Close popup"), n.href = "#close", n.innerHTML = '<span aria-hidden="true">×</span>', x(n, "click", function(o) {
|
|
4667
|
-
|
|
4669
|
+
W(o), this.close();
|
|
4668
4670
|
}, this);
|
|
4669
4671
|
}
|
|
4670
4672
|
},
|
|
@@ -4686,17 +4688,17 @@ var ui = { exports: {} };
|
|
|
4686
4688
|
this._autopanning = !1;
|
|
4687
4689
|
return;
|
|
4688
4690
|
}
|
|
4689
|
-
var t = this._map, e = parseInt(
|
|
4690
|
-
o._add(
|
|
4691
|
-
var s = t.layerPointToContainerPoint(o), r = y(this.options.autoPanPadding),
|
|
4692
|
-
s.x + n + u.x > l.x && (
|
|
4691
|
+
var t = this._map, e = parseInt(Ft(this._container, "marginBottom"), 10) || 0, i = this._container.offsetHeight + e, n = this._containerWidth, o = new w(this._containerLeft, -i - this._containerBottom);
|
|
4692
|
+
o._add(xt(this._container));
|
|
4693
|
+
var s = t.layerPointToContainerPoint(o), r = y(this.options.autoPanPadding), a = y(this.options.autoPanPaddingTopLeft || r), u = y(this.options.autoPanPaddingBottomRight || r), l = t.getSize(), f = 0, v = 0;
|
|
4694
|
+
s.x + n + u.x > l.x && (f = s.x + n - l.x + u.x), s.x - f - a.x < 0 && (f = s.x - a.x), s.y + i + u.y > l.y && (v = s.y + i - l.y + u.y), s.y - v - a.y < 0 && (v = s.y - a.y), (f || v) && (this.options.keepInView && (this._autopanning = !0), t.fire("autopanstart").panBy([f, v]));
|
|
4693
4695
|
}
|
|
4694
4696
|
},
|
|
4695
4697
|
_getAnchor: function() {
|
|
4696
4698
|
return y(this._source && this._source._getPopupAnchor ? this._source._getPopupAnchor() : [0, 0]);
|
|
4697
4699
|
}
|
|
4698
|
-
}),
|
|
4699
|
-
return new
|
|
4700
|
+
}), Vo = function(t, e) {
|
|
4701
|
+
return new pe(t, e);
|
|
4700
4702
|
};
|
|
4701
4703
|
C.mergeOptions({
|
|
4702
4704
|
closePopupOnClick: !0
|
|
@@ -4707,7 +4709,7 @@ var ui = { exports: {} };
|
|
|
4707
4709
|
// @method openPopup(content: String|HTMLElement, latlng: LatLng, options?: Popup options): this
|
|
4708
4710
|
// Creates a popup with the specified content and options and opens it in the given point on a map.
|
|
4709
4711
|
openPopup: function(t, e, i) {
|
|
4710
|
-
return this._initOverlay(
|
|
4712
|
+
return this._initOverlay(pe, t, e, i).openOn(this), this;
|
|
4711
4713
|
},
|
|
4712
4714
|
// @method closePopup(popup?: Popup): this
|
|
4713
4715
|
// Closes the popup previously opened with [openPopup](#map-openpopup) (or the given one).
|
|
@@ -4720,7 +4722,7 @@ var ui = { exports: {} };
|
|
|
4720
4722
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4721
4723
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4722
4724
|
bindPopup: function(t, e) {
|
|
4723
|
-
return this._popup = this._initOverlay(
|
|
4725
|
+
return this._popup = this._initOverlay(pe, this._popup, t, e), this._popupHandlersAdded || (this.on({
|
|
4724
4726
|
click: this._openPopup,
|
|
4725
4727
|
keypress: this._onKeyPress,
|
|
4726
4728
|
remove: this.closePopup,
|
|
@@ -4769,7 +4771,7 @@ var ui = { exports: {} };
|
|
|
4769
4771
|
},
|
|
4770
4772
|
_openPopup: function(t) {
|
|
4771
4773
|
if (!(!this._popup || !this._map)) {
|
|
4772
|
-
|
|
4774
|
+
Pt(t);
|
|
4773
4775
|
var e = t.layer || t.target;
|
|
4774
4776
|
if (this._popup._source === e && !(e instanceof yt)) {
|
|
4775
4777
|
this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(t.latlng);
|
|
@@ -4785,7 +4787,7 @@ var ui = { exports: {} };
|
|
|
4785
4787
|
t.originalEvent.keyCode === 13 && this._openPopup(t);
|
|
4786
4788
|
}
|
|
4787
4789
|
});
|
|
4788
|
-
var
|
|
4790
|
+
var ge = ut.extend({
|
|
4789
4791
|
// @section
|
|
4790
4792
|
// @aka Tooltip options
|
|
4791
4793
|
options: {
|
|
@@ -4830,15 +4832,15 @@ var ui = { exports: {} };
|
|
|
4830
4832
|
_adjustPan: function() {
|
|
4831
4833
|
},
|
|
4832
4834
|
_setPosition: function(t) {
|
|
4833
|
-
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()), r = n.layerPointToContainerPoint(t),
|
|
4834
|
-
|
|
4835
|
+
var e, i, n = this._map, o = this._container, s = n.latLngToContainerPoint(n.getCenter()), r = n.layerPointToContainerPoint(t), a = this.options.direction, u = o.offsetWidth, l = o.offsetHeight, f = y(this.options.offset), v = this._getAnchor();
|
|
4836
|
+
a === "top" ? (e = u / 2, i = l) : a === "bottom" ? (e = u / 2, i = 0) : a === "center" ? (e = u / 2, i = l / 2) : a === "right" ? (e = 0, i = l / 2) : a === "left" ? (e = u, i = l / 2) : r.x < s.x ? (a = "right", e = 0, i = l / 2) : (a = "left", e = u + (f.x + v.x) * 2, i = l / 2), t = t.subtract(y(e, i, !0)).add(f).add(v), B(o, "leaflet-tooltip-right"), B(o, "leaflet-tooltip-left"), B(o, "leaflet-tooltip-top"), B(o, "leaflet-tooltip-bottom"), b(o, "leaflet-tooltip-" + a), R(o, t);
|
|
4835
4837
|
},
|
|
4836
4838
|
_updatePosition: function() {
|
|
4837
4839
|
var t = this._map.latLngToLayerPoint(this._latlng);
|
|
4838
4840
|
this._setPosition(t);
|
|
4839
4841
|
},
|
|
4840
4842
|
setOpacity: function(t) {
|
|
4841
|
-
this.options.opacity = t, this._container &&
|
|
4843
|
+
this.options.opacity = t, this._container && $(this._container, t);
|
|
4842
4844
|
},
|
|
4843
4845
|
_animateZoom: function(t) {
|
|
4844
4846
|
var e = this._map._latLngToNewLayerPoint(this._latlng, t.zoom, t.center);
|
|
@@ -4847,8 +4849,8 @@ var ui = { exports: {} };
|
|
|
4847
4849
|
_getAnchor: function() {
|
|
4848
4850
|
return y(this._source && this._source._getTooltipAnchor && !this.options.sticky ? this._source._getTooltipAnchor() : [0, 0]);
|
|
4849
4851
|
}
|
|
4850
|
-
}),
|
|
4851
|
-
return new
|
|
4852
|
+
}), qo = function(t, e) {
|
|
4853
|
+
return new ge(t, e);
|
|
4852
4854
|
};
|
|
4853
4855
|
C.include({
|
|
4854
4856
|
// @method openTooltip(tooltip: Tooltip): this
|
|
@@ -4857,7 +4859,7 @@ var ui = { exports: {} };
|
|
|
4857
4859
|
// @method openTooltip(content: String|HTMLElement, latlng: LatLng, options?: Tooltip options): this
|
|
4858
4860
|
// Creates a tooltip with the specified content and options and open it.
|
|
4859
4861
|
openTooltip: function(t, e, i) {
|
|
4860
|
-
return this._initOverlay(
|
|
4862
|
+
return this._initOverlay(ge, t, e, i).openOn(this), this;
|
|
4861
4863
|
},
|
|
4862
4864
|
// @method closeTooltip(tooltip: Tooltip): this
|
|
4863
4865
|
// Closes the tooltip given as parameter.
|
|
@@ -4870,7 +4872,7 @@ var ui = { exports: {} };
|
|
|
4870
4872
|
// necessary event listeners. If a `Function` is passed it will receive
|
|
4871
4873
|
// the layer as the first argument and should return a `String` or `HTMLElement`.
|
|
4872
4874
|
bindTooltip: function(t, e) {
|
|
4873
|
-
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(
|
|
4875
|
+
return this._tooltip && this.isTooltipOpen() && this.unbindTooltip(), this._tooltip = this._initOverlay(ge, this._tooltip, t, e), this._initTooltipInteractions(), this._tooltip.options.permanent && this._map && this._map.hasLayer(this) && this.openTooltip(), this;
|
|
4874
4876
|
},
|
|
4875
4877
|
// @method unbindTooltip(): this
|
|
4876
4878
|
// Removes the tooltip previously bound with `bindTooltip`.
|
|
@@ -4948,7 +4950,7 @@ var ui = { exports: {} };
|
|
|
4948
4950
|
this._tooltip.options.sticky && t.originalEvent && (i = this._map.mouseEventToContainerPoint(t.originalEvent), n = this._map.containerPointToLayerPoint(i), e = this._map.layerPointToLatLng(n)), this._tooltip.setLatLng(e);
|
|
4949
4951
|
}
|
|
4950
4952
|
});
|
|
4951
|
-
var dn =
|
|
4953
|
+
var dn = kt.extend({
|
|
4952
4954
|
options: {
|
|
4953
4955
|
// @section
|
|
4954
4956
|
// @aka DivIcon options
|
|
@@ -4967,7 +4969,7 @@ var ui = { exports: {} };
|
|
|
4967
4969
|
},
|
|
4968
4970
|
createIcon: function(t) {
|
|
4969
4971
|
var e = t && t.tagName === "DIV" ? t : document.createElement("div"), i = this.options;
|
|
4970
|
-
if (i.html instanceof Element ? (
|
|
4972
|
+
if (i.html instanceof Element ? (ne(e), e.appendChild(i.html)) : e.innerHTML = i.html !== !1 ? i.html : "", i.bgPos) {
|
|
4971
4973
|
var n = y(i.bgPos);
|
|
4972
4974
|
e.style.backgroundPosition = -n.x + "px " + -n.y + "px";
|
|
4973
4975
|
}
|
|
@@ -4977,11 +4979,11 @@ var ui = { exports: {} };
|
|
|
4977
4979
|
return null;
|
|
4978
4980
|
}
|
|
4979
4981
|
});
|
|
4980
|
-
function
|
|
4982
|
+
function Go(t) {
|
|
4981
4983
|
return new dn(t);
|
|
4982
4984
|
}
|
|
4983
|
-
|
|
4984
|
-
var
|
|
4985
|
+
kt.Default = Kt;
|
|
4986
|
+
var Jt = nt.extend({
|
|
4985
4987
|
// @section
|
|
4986
4988
|
// @aka GridLayer options
|
|
4987
4989
|
options: {
|
|
@@ -5057,12 +5059,12 @@ var ui = { exports: {} };
|
|
|
5057
5059
|
// @method bringToFront: this
|
|
5058
5060
|
// Brings the tile layer to the top of all tile layers.
|
|
5059
5061
|
bringToFront: function() {
|
|
5060
|
-
return this._map && (
|
|
5062
|
+
return this._map && (Ct(this._container), this._setAutoZIndex(Math.max)), this;
|
|
5061
5063
|
},
|
|
5062
5064
|
// @method bringToBack: this
|
|
5063
5065
|
// Brings the tile layer to the bottom of all tile layers.
|
|
5064
5066
|
bringToBack: function() {
|
|
5065
|
-
return this._map && (
|
|
5067
|
+
return this._map && (zt(this._container), this._setAutoZIndex(Math.min)), this;
|
|
5066
5068
|
},
|
|
5067
5069
|
// @method getContainer: HTMLElement
|
|
5068
5070
|
// Returns the HTML element that contains the tiles for this layer.
|
|
@@ -5129,16 +5131,16 @@ var ui = { exports: {} };
|
|
|
5129
5131
|
},
|
|
5130
5132
|
_updateOpacity: function() {
|
|
5131
5133
|
if (this._map && !p.ielt9) {
|
|
5132
|
-
|
|
5134
|
+
$(this._container, this.options.opacity);
|
|
5133
5135
|
var t = +/* @__PURE__ */ new Date(), e = !1, i = !1;
|
|
5134
5136
|
for (var n in this._tiles) {
|
|
5135
5137
|
var o = this._tiles[n];
|
|
5136
5138
|
if (!(!o.current || !o.loaded)) {
|
|
5137
5139
|
var s = Math.min(1, (t - o.loaded) / 200);
|
|
5138
|
-
|
|
5140
|
+
$(o.el, s), s < 1 ? e = !0 : (o.active ? i = !0 : this._onOpaqueTile(o), o.active = !0);
|
|
5139
5141
|
}
|
|
5140
5142
|
}
|
|
5141
|
-
i && !this._noPrune && this._pruneTiles(), e && (
|
|
5143
|
+
i && !this._noPrune && this._pruneTiles(), e && (Q(this._fadeFrame), this._fadeFrame = q(this._updateOpacity, this));
|
|
5142
5144
|
}
|
|
5143
5145
|
},
|
|
5144
5146
|
_onOpaqueTile: O,
|
|
@@ -5189,9 +5191,9 @@ var ui = { exports: {} };
|
|
|
5189
5191
|
this._removeAllTiles(), this._tileZoom = void 0;
|
|
5190
5192
|
},
|
|
5191
5193
|
_retainParent: function(t, e, i, n) {
|
|
5192
|
-
var o = Math.floor(t / 2), s = Math.floor(e / 2), r = i - 1,
|
|
5193
|
-
|
|
5194
|
-
var u = this._tileCoordsToKey(
|
|
5194
|
+
var o = Math.floor(t / 2), s = Math.floor(e / 2), r = i - 1, a = new w(+o, +s);
|
|
5195
|
+
a.z = +r;
|
|
5196
|
+
var u = this._tileCoordsToKey(a), l = this._tiles[u];
|
|
5195
5197
|
return l && l.active ? (l.retain = !0, !0) : (l && l.loaded && (l.retain = !0), r > n ? this._retainParent(o, s, r, n) : !1);
|
|
5196
5198
|
},
|
|
5197
5199
|
_retainChildren: function(t, e, i, n) {
|
|
@@ -5199,7 +5201,7 @@ var ui = { exports: {} };
|
|
|
5199
5201
|
for (var s = 2 * e; s < 2 * e + 2; s++) {
|
|
5200
5202
|
var r = new w(o, s);
|
|
5201
5203
|
r.z = i + 1;
|
|
5202
|
-
var
|
|
5204
|
+
var a = this._tileCoordsToKey(r), u = this._tiles[a];
|
|
5203
5205
|
if (u && u.active) {
|
|
5204
5206
|
u.retain = !0;
|
|
5205
5207
|
continue;
|
|
@@ -5230,7 +5232,7 @@ var ui = { exports: {} };
|
|
|
5230
5232
|
},
|
|
5231
5233
|
_setZoomTransform: function(t, e, i) {
|
|
5232
5234
|
var n = this._map.getZoomScale(i, t.zoom), o = t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e, i)).round();
|
|
5233
|
-
p.any3d ?
|
|
5235
|
+
p.any3d ? wt(t.el, o, n) : R(t.el, o);
|
|
5234
5236
|
},
|
|
5235
5237
|
_resetGrid: function() {
|
|
5236
5238
|
var t = this._map, e = t.options.crs, i = this._tileSize = this.getTileSize(), n = this._tileZoom, o = this._map.getPixelWorldBounds(this._tileZoom);
|
|
@@ -5255,36 +5257,36 @@ var ui = { exports: {} };
|
|
|
5255
5257
|
if (e) {
|
|
5256
5258
|
var i = this._clampZoom(e.getZoom());
|
|
5257
5259
|
if (t === void 0 && (t = e.getCenter()), this._tileZoom !== void 0) {
|
|
5258
|
-
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), s = o.getCenter(), r = [],
|
|
5259
|
-
o.getBottomLeft().subtract([
|
|
5260
|
-
o.getTopRight().add([
|
|
5260
|
+
var n = this._getTiledPixelBounds(t), o = this._pxBoundsToTileRange(n), s = o.getCenter(), r = [], a = this.options.keepBuffer, u = new Z(
|
|
5261
|
+
o.getBottomLeft().subtract([a, -a]),
|
|
5262
|
+
o.getTopRight().add([a, -a])
|
|
5261
5263
|
);
|
|
5262
5264
|
if (!(isFinite(o.min.x) && isFinite(o.min.y) && isFinite(o.max.x) && isFinite(o.max.y)))
|
|
5263
5265
|
throw new Error("Attempted to load an infinite number of tiles");
|
|
5264
5266
|
for (var l in this._tiles) {
|
|
5265
|
-
var
|
|
5266
|
-
(
|
|
5267
|
+
var f = this._tiles[l].coords;
|
|
5268
|
+
(f.z !== this._tileZoom || !u.contains(new w(f.x, f.y))) && (this._tiles[l].current = !1);
|
|
5267
5269
|
}
|
|
5268
5270
|
if (Math.abs(i - this._tileZoom) > 1) {
|
|
5269
5271
|
this._setView(t, i);
|
|
5270
5272
|
return;
|
|
5271
5273
|
}
|
|
5272
|
-
for (var
|
|
5274
|
+
for (var v = o.min.y; v <= o.max.y; v++)
|
|
5273
5275
|
for (var T = o.min.x; T <= o.max.x; T++) {
|
|
5274
|
-
var U = new w(T,
|
|
5276
|
+
var U = new w(T, v);
|
|
5275
5277
|
if (U.z = this._tileZoom, !!this._isValidTile(U)) {
|
|
5276
5278
|
var H = this._tiles[this._tileCoordsToKey(U)];
|
|
5277
5279
|
H ? H.current = !0 : r.push(U);
|
|
5278
5280
|
}
|
|
5279
5281
|
}
|
|
5280
|
-
if (r.sort(function(
|
|
5281
|
-
return
|
|
5282
|
+
if (r.sort(function(K, Zt) {
|
|
5283
|
+
return K.distanceTo(s) - Zt.distanceTo(s);
|
|
5282
5284
|
}), r.length !== 0) {
|
|
5283
5285
|
this._loading || (this._loading = !0, this.fire("loading"));
|
|
5284
|
-
var
|
|
5286
|
+
var et = document.createDocumentFragment();
|
|
5285
5287
|
for (T = 0; T < r.length; T++)
|
|
5286
|
-
this._addTile(r[T],
|
|
5287
|
-
this._level.el.appendChild(
|
|
5288
|
+
this._addTile(r[T], et);
|
|
5289
|
+
this._level.el.appendChild(et);
|
|
5288
5290
|
}
|
|
5289
5291
|
}
|
|
5290
5292
|
}
|
|
@@ -5332,11 +5334,11 @@ var ui = { exports: {} };
|
|
|
5332
5334
|
_initTile: function(t) {
|
|
5333
5335
|
b(t, "leaflet-tile");
|
|
5334
5336
|
var e = this.getTileSize();
|
|
5335
|
-
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = O, t.onmousemove = O, p.ielt9 && this.options.opacity < 1 &&
|
|
5337
|
+
t.style.width = e.x + "px", t.style.height = e.y + "px", t.onselectstart = O, t.onmousemove = O, p.ielt9 && this.options.opacity < 1 && $(t, this.options.opacity);
|
|
5336
5338
|
},
|
|
5337
5339
|
_addTile: function(t, e) {
|
|
5338
|
-
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), o = this.createTile(this._wrapCoords(t),
|
|
5339
|
-
this._initTile(o), this.createTile.length < 2 &&
|
|
5340
|
+
var i = this._getTilePos(t), n = this._tileCoordsToKey(t), o = this.createTile(this._wrapCoords(t), g(this._tileReady, this, t));
|
|
5341
|
+
this._initTile(o), this.createTile.length < 2 && q(g(this._tileReady, this, t, null, o)), R(o, i), this._tiles[n] = {
|
|
5340
5342
|
el: o,
|
|
5341
5343
|
coords: t,
|
|
5342
5344
|
current: !0
|
|
@@ -5352,10 +5354,10 @@ var ui = { exports: {} };
|
|
|
5352
5354
|
coords: t
|
|
5353
5355
|
});
|
|
5354
5356
|
var n = this._tileCoordsToKey(t);
|
|
5355
|
-
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? (
|
|
5357
|
+
i = this._tiles[n], i && (i.loaded = +/* @__PURE__ */ new Date(), this._map._fadeAnimated ? ($(i.el, 0), Q(this._fadeFrame), this._fadeFrame = q(this._updateOpacity, this)) : (i.active = !0, this._pruneTiles()), e || (b(i.el, "leaflet-tile-loaded"), this.fire("tileload", {
|
|
5356
5358
|
tile: i.el,
|
|
5357
5359
|
coords: t
|
|
5358
|
-
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), p.ielt9 || !this._map._fadeAnimated ?
|
|
5360
|
+
})), this._noTilesToLoad() && (this._loading = !1, this.fire("load"), p.ielt9 || !this._map._fadeAnimated ? q(this._pruneTiles, this) : setTimeout(g(this._pruneTiles, this), 250)));
|
|
5359
5361
|
},
|
|
5360
5362
|
_getTilePos: function(t) {
|
|
5361
5363
|
return t.scaleBy(this.getTileSize()).subtract(this._level.origin);
|
|
@@ -5381,10 +5383,10 @@ var ui = { exports: {} };
|
|
|
5381
5383
|
return !0;
|
|
5382
5384
|
}
|
|
5383
5385
|
});
|
|
5384
|
-
function
|
|
5385
|
-
return new
|
|
5386
|
+
function jo(t) {
|
|
5387
|
+
return new Jt(t);
|
|
5386
5388
|
}
|
|
5387
|
-
var
|
|
5389
|
+
var Ot = Jt.extend({
|
|
5388
5390
|
// @section
|
|
5389
5391
|
// @aka TileLayer options
|
|
5390
5392
|
options: {
|
|
@@ -5441,7 +5443,7 @@ var ui = { exports: {} };
|
|
|
5441
5443
|
// callback is called when the tile has been loaded.
|
|
5442
5444
|
createTile: function(t, e) {
|
|
5443
5445
|
var i = document.createElement("img");
|
|
5444
|
-
return x(i, "load",
|
|
5446
|
+
return x(i, "load", g(this._tileOnLoad, this, e, i)), x(i, "error", g(this._tileOnError, this, e, i)), (this.options.crossOrigin || this.options.crossOrigin === "") && (i.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), typeof this.options.referrerPolicy == "string" && (i.referrerPolicy = this.options.referrerPolicy), i.alt = "", i.src = this.getTileUrl(t), i;
|
|
5445
5447
|
},
|
|
5446
5448
|
// @section Extension methods
|
|
5447
5449
|
// @uninheritable
|
|
@@ -5461,10 +5463,10 @@ var ui = { exports: {} };
|
|
|
5461
5463
|
var i = this._globalTileRange.max.y - t.y;
|
|
5462
5464
|
this.options.tms && (e.y = i), e["-y"] = i;
|
|
5463
5465
|
}
|
|
5464
|
-
return
|
|
5466
|
+
return Bt(this._url, _(e, this.options));
|
|
5465
5467
|
},
|
|
5466
5468
|
_tileOnLoad: function(t, e) {
|
|
5467
|
-
p.ielt9 ? setTimeout(
|
|
5469
|
+
p.ielt9 ? setTimeout(g(t, this, null, e), 0) : t(null, e);
|
|
5468
5470
|
},
|
|
5469
5471
|
_tileOnError: function(t, e, i) {
|
|
5470
5472
|
var n = this.options.errorTileUrl;
|
|
@@ -5486,7 +5488,7 @@ var ui = { exports: {} };
|
|
|
5486
5488
|
var t, e;
|
|
5487
5489
|
for (t in this._tiles)
|
|
5488
5490
|
if (this._tiles[t].coords.z !== this._tileZoom && (e = this._tiles[t].el, e.onload = O, e.onerror = O, !e.complete)) {
|
|
5489
|
-
e.src =
|
|
5491
|
+
e.src = te;
|
|
5490
5492
|
var i = this._tiles[t].coords;
|
|
5491
5493
|
I(e), delete this._tiles[t], this.fire("tileabort", {
|
|
5492
5494
|
tile: e,
|
|
@@ -5497,17 +5499,17 @@ var ui = { exports: {} };
|
|
|
5497
5499
|
_removeTile: function(t) {
|
|
5498
5500
|
var e = this._tiles[t];
|
|
5499
5501
|
if (e)
|
|
5500
|
-
return e.el.setAttribute("src",
|
|
5502
|
+
return e.el.setAttribute("src", te), Jt.prototype._removeTile.call(this, t);
|
|
5501
5503
|
},
|
|
5502
5504
|
_tileReady: function(t, e, i) {
|
|
5503
|
-
if (!(!this._map || i && i.getAttribute("src") ===
|
|
5504
|
-
return
|
|
5505
|
+
if (!(!this._map || i && i.getAttribute("src") === te))
|
|
5506
|
+
return Jt.prototype._tileReady.call(this, t, e, i);
|
|
5505
5507
|
}
|
|
5506
5508
|
});
|
|
5507
5509
|
function _n(t, e) {
|
|
5508
|
-
return new
|
|
5510
|
+
return new Ot(t, e);
|
|
5509
5511
|
}
|
|
5510
|
-
var mn =
|
|
5512
|
+
var mn = Ot.extend({
|
|
5511
5513
|
// @section
|
|
5512
5514
|
// @aka TileLayer.WMS options
|
|
5513
5515
|
// If any custom options not documented here are used, they will be sent to the
|
|
@@ -5553,11 +5555,11 @@ var ui = { exports: {} };
|
|
|
5553
5555
|
onAdd: function(t) {
|
|
5554
5556
|
this._crs = this.options.crs || t.options.crs, this._wmsVersion = parseFloat(this.wmsParams.version);
|
|
5555
5557
|
var e = this._wmsVersion >= 1.3 ? "crs" : "srs";
|
|
5556
|
-
this.wmsParams[e] = this._crs.code,
|
|
5558
|
+
this.wmsParams[e] = this._crs.code, Ot.prototype.onAdd.call(this, t);
|
|
5557
5559
|
},
|
|
5558
5560
|
getTileUrl: function(t) {
|
|
5559
|
-
var e = this._tileCoordsToNwSe(t), i = this._crs, n =
|
|
5560
|
-
return
|
|
5561
|
+
var e = this._tileCoordsToNwSe(t), i = this._crs, n = G(i.project(e[0]), i.project(e[1])), o = n.min, s = n.max, r = (this._wmsVersion >= 1.3 && this._crs === an ? [o.y, o.x, s.y, s.x] : [o.x, o.y, s.x, s.y]).join(","), a = Ot.prototype.getTileUrl.call(this, t);
|
|
5562
|
+
return a + $t(this.wmsParams, a, this.options.uppercase) + (this.options.uppercase ? "&BBOX=" : "&bbox=") + r;
|
|
5561
5563
|
},
|
|
5562
5564
|
// @method setParams(params: Object, noRedraw?: Boolean): this
|
|
5563
5565
|
// Merges an object with the new parameters and re-requests tiles on the current screen (unless `noRedraw` was set to true).
|
|
@@ -5565,10 +5567,10 @@ var ui = { exports: {} };
|
|
|
5565
5567
|
return _(this.wmsParams, t), e || this.redraw(), this;
|
|
5566
5568
|
}
|
|
5567
5569
|
});
|
|
5568
|
-
function
|
|
5570
|
+
function Ko(t, e) {
|
|
5569
5571
|
return new mn(t, e);
|
|
5570
5572
|
}
|
|
5571
|
-
|
|
5573
|
+
Ot.WMS = mn, _n.wms = Ko;
|
|
5572
5574
|
var pt = nt.extend({
|
|
5573
5575
|
// @section
|
|
5574
5576
|
// @aka Renderer options
|
|
@@ -5604,7 +5606,7 @@ var ui = { exports: {} };
|
|
|
5604
5606
|
},
|
|
5605
5607
|
_updateTransform: function(t, e) {
|
|
5606
5608
|
var i = this._map.getZoomScale(e, this._zoom), n = this._map.getSize().multiplyBy(0.5 + this.options.padding), o = this._map.project(this._center, e), s = n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t, e));
|
|
5607
|
-
p.any3d ?
|
|
5609
|
+
p.any3d ? wt(this._container, s, i) : R(this._container, s);
|
|
5608
5610
|
},
|
|
5609
5611
|
_reset: function() {
|
|
5610
5612
|
this._update(), this._updateTransform(this._center, this._zoom);
|
|
@@ -5646,7 +5648,7 @@ var ui = { exports: {} };
|
|
|
5646
5648
|
x(t, "mousemove", this._onMouseMove, this), x(t, "click dblclick mousedown mouseup contextmenu", this._onClick, this), x(t, "mouseout", this._handleMouseOut, this), t._leaflet_disable_events = !0, this._ctx = t.getContext("2d");
|
|
5647
5649
|
},
|
|
5648
5650
|
_destroyContainer: function() {
|
|
5649
|
-
|
|
5651
|
+
Q(this._redrawRequest), delete this._ctx, I(this._container), A(this._container), delete this._container;
|
|
5650
5652
|
},
|
|
5651
5653
|
_updatePaths: function() {
|
|
5652
5654
|
if (!this._postponeUpdatePaths) {
|
|
@@ -5702,7 +5704,7 @@ var ui = { exports: {} };
|
|
|
5702
5704
|
t.options._dashArray = t.options.dashArray;
|
|
5703
5705
|
},
|
|
5704
5706
|
_requestRedraw: function(t) {
|
|
5705
|
-
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest ||
|
|
5707
|
+
this._map && (this._extendRedrawBounds(t), this._redrawRequest = this._redrawRequest || q(this._redraw, this));
|
|
5706
5708
|
},
|
|
5707
5709
|
_extendRedrawBounds: function(t) {
|
|
5708
5710
|
if (t._pxBounds) {
|
|
@@ -5734,9 +5736,9 @@ var ui = { exports: {} };
|
|
|
5734
5736
|
},
|
|
5735
5737
|
_updatePoly: function(t, e) {
|
|
5736
5738
|
if (this._drawing) {
|
|
5737
|
-
var i, n, o, s, r = t._parts,
|
|
5738
|
-
if (
|
|
5739
|
-
for (u.beginPath(), i = 0; i <
|
|
5739
|
+
var i, n, o, s, r = t._parts, a = r.length, u = this._ctx;
|
|
5740
|
+
if (a) {
|
|
5741
|
+
for (u.beginPath(), i = 0; i < a; i++) {
|
|
5740
5742
|
for (n = 0, o = r[i].length; n < o; n++)
|
|
5741
5743
|
s = r[i][n], u[n ? "lineTo" : "moveTo"](s.x, s.y);
|
|
5742
5744
|
e && u.closePath();
|
|
@@ -5776,7 +5778,7 @@ var ui = { exports: {} };
|
|
|
5776
5778
|
if (!this._mouseHoverThrottled) {
|
|
5777
5779
|
for (var i, n, o = this._drawFirst; o; o = o.next)
|
|
5778
5780
|
i = o.layer, i.options.interactive && i._containsPoint(e) && (n = i);
|
|
5779
|
-
n !== this._hoveredLayer && (this._handleMouseOut(t), n && (b(this._container, "leaflet-interactive"), this._fireEvent([n], t, "mouseover"), this._hoveredLayer = n)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, t), this._mouseHoverThrottled = !0, setTimeout(
|
|
5781
|
+
n !== this._hoveredLayer && (this._handleMouseOut(t), n && (b(this._container, "leaflet-interactive"), this._fireEvent([n], t, "mouseover"), this._hoveredLayer = n)), this._fireEvent(this._hoveredLayer ? [this._hoveredLayer] : !1, t), this._mouseHoverThrottled = !0, setTimeout(g(function() {
|
|
5780
5782
|
this._mouseHoverThrottled = !1;
|
|
5781
5783
|
}, this), 32);
|
|
5782
5784
|
}
|
|
@@ -5810,7 +5812,7 @@ var ui = { exports: {} };
|
|
|
5810
5812
|
function gn(t) {
|
|
5811
5813
|
return p.canvas ? new pn(t) : null;
|
|
5812
5814
|
}
|
|
5813
|
-
var
|
|
5815
|
+
var Yt = function() {
|
|
5814
5816
|
try {
|
|
5815
5817
|
return document.namespaces.add("lvml", "urn:schemas-microsoft-com:vml"), function(t) {
|
|
5816
5818
|
return document.createElement("<lvml:" + t + ' class="lvml">');
|
|
@@ -5820,7 +5822,7 @@ var ui = { exports: {} };
|
|
|
5820
5822
|
return function(t) {
|
|
5821
5823
|
return document.createElement("<" + t + ' xmlns="urn:schemas-microsoft.com:vml" class="lvml">');
|
|
5822
5824
|
};
|
|
5823
|
-
}(),
|
|
5825
|
+
}(), Jo = {
|
|
5824
5826
|
_initContainer: function() {
|
|
5825
5827
|
this._container = z("div", "leaflet-vml-container");
|
|
5826
5828
|
},
|
|
@@ -5828,8 +5830,8 @@ var ui = { exports: {} };
|
|
|
5828
5830
|
this._map._animatingZoom || (pt.prototype._update.call(this), this.fire("update"));
|
|
5829
5831
|
},
|
|
5830
5832
|
_initPath: function(t) {
|
|
5831
|
-
var e = t._container =
|
|
5832
|
-
b(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path =
|
|
5833
|
+
var e = t._container = Yt("shape");
|
|
5834
|
+
b(e, "leaflet-vml-shape " + (this.options.className || "")), e.coordsize = "1 1", t._path = Yt("path"), e.appendChild(t._path), this._updateStyle(t), this._layers[P(t)] = t;
|
|
5833
5835
|
},
|
|
5834
5836
|
_addPath: function(t) {
|
|
5835
5837
|
var e = t._container;
|
|
@@ -5841,7 +5843,7 @@ var ui = { exports: {} };
|
|
|
5841
5843
|
},
|
|
5842
5844
|
_updateStyle: function(t) {
|
|
5843
5845
|
var e = t._stroke, i = t._fill, n = t.options, o = t._container;
|
|
5844
|
-
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke =
|
|
5846
|
+
o.stroked = !!n.stroke, o.filled = !!n.fill, n.stroke ? (e || (e = t._stroke = Yt("stroke")), o.appendChild(e), e.weight = n.weight + "px", e.color = n.color, e.opacity = n.opacity, n.dashArray ? e.dashStyle = F(n.dashArray) ? n.dashArray.join(" ") : n.dashArray.replace(/( *, *)/g, " ") : e.dashStyle = "", e.endcap = n.lineCap.replace("butt", "flat"), e.joinstyle = n.lineJoin) : e && (o.removeChild(e), t._stroke = null), n.fill ? (i || (i = t._fill = Yt("fill")), o.appendChild(i), i.color = n.fillColor || n.color, i.opacity = n.fillOpacity) : i && (o.removeChild(i), t._fill = null);
|
|
5845
5847
|
},
|
|
5846
5848
|
_updateCircle: function(t) {
|
|
5847
5849
|
var e = t._point.round(), i = Math.round(t._radius), n = Math.round(t._radiusY || i);
|
|
@@ -5851,14 +5853,14 @@ var ui = { exports: {} };
|
|
|
5851
5853
|
t._path.v = e;
|
|
5852
5854
|
},
|
|
5853
5855
|
_bringToFront: function(t) {
|
|
5854
|
-
|
|
5856
|
+
Ct(t._container);
|
|
5855
5857
|
},
|
|
5856
5858
|
_bringToBack: function(t) {
|
|
5857
|
-
|
|
5859
|
+
zt(t._container);
|
|
5858
5860
|
}
|
|
5859
|
-
},
|
|
5861
|
+
}, ve = p.vml ? Yt : wi, Xt = pt.extend({
|
|
5860
5862
|
_initContainer: function() {
|
|
5861
|
-
this._container =
|
|
5863
|
+
this._container = ve("svg"), this._container.setAttribute("pointer-events", "none"), this._rootGroup = ve("g"), this._container.appendChild(this._rootGroup);
|
|
5862
5864
|
},
|
|
5863
5865
|
_destroyContainer: function() {
|
|
5864
5866
|
I(this._container), A(this._container), delete this._container, delete this._rootGroup, delete this._svgSize;
|
|
@@ -5872,7 +5874,7 @@ var ui = { exports: {} };
|
|
|
5872
5874
|
},
|
|
5873
5875
|
// methods below are called by vector layers implementations
|
|
5874
5876
|
_initPath: function(t) {
|
|
5875
|
-
var e = t._path =
|
|
5877
|
+
var e = t._path = ve("path");
|
|
5876
5878
|
t.options.className && b(e, t.options.className), t.options.interactive && b(e, "leaflet-interactive"), this._updateStyle(t), this._layers[P(t)] = t;
|
|
5877
5879
|
},
|
|
5878
5880
|
_addPath: function(t) {
|
|
@@ -5900,15 +5902,15 @@ var ui = { exports: {} };
|
|
|
5900
5902
|
},
|
|
5901
5903
|
// SVG does not have the concept of zIndex so we resort to changing the DOM order of elements
|
|
5902
5904
|
_bringToFront: function(t) {
|
|
5903
|
-
|
|
5905
|
+
Ct(t._path);
|
|
5904
5906
|
},
|
|
5905
5907
|
_bringToBack: function(t) {
|
|
5906
|
-
|
|
5908
|
+
zt(t._path);
|
|
5907
5909
|
}
|
|
5908
5910
|
});
|
|
5909
|
-
p.vml &&
|
|
5911
|
+
p.vml && Xt.include(Jo);
|
|
5910
5912
|
function vn(t) {
|
|
5911
|
-
return p.svg || p.vml ? new
|
|
5913
|
+
return p.svg || p.vml ? new Xt(t) : null;
|
|
5912
5914
|
}
|
|
5913
5915
|
C.include({
|
|
5914
5916
|
// @namespace Map; @method getRenderer(layer: Path): Renderer
|
|
@@ -5929,9 +5931,9 @@ var ui = { exports: {} };
|
|
|
5929
5931
|
return this.options.preferCanvas && gn(t) || vn(t);
|
|
5930
5932
|
}
|
|
5931
5933
|
});
|
|
5932
|
-
var yn =
|
|
5934
|
+
var yn = Et.extend({
|
|
5933
5935
|
initialize: function(t, e) {
|
|
5934
|
-
|
|
5936
|
+
Et.prototype.initialize.call(this, this._boundsToLatLngs(t), e);
|
|
5935
5937
|
},
|
|
5936
5938
|
// @method setBounds(latLngBounds: LatLngBounds): this
|
|
5937
5939
|
// Redraws the rectangle with the passed bounds.
|
|
@@ -5947,10 +5949,10 @@ var ui = { exports: {} };
|
|
|
5947
5949
|
];
|
|
5948
5950
|
}
|
|
5949
5951
|
});
|
|
5950
|
-
function
|
|
5952
|
+
function Yo(t, e) {
|
|
5951
5953
|
return new yn(t, e);
|
|
5952
5954
|
}
|
|
5953
|
-
|
|
5955
|
+
Xt.create = ve, Xt.pointsToPath = xi, mt.geometryToLayer = ce, mt.coordsToLatLng = ii, mt.coordsToLatLngs = fe, mt.latLngToCoords = ni, mt.latLngsToCoords = de, mt.getFeature = At, mt.asFeature = _e, C.mergeOptions({
|
|
5954
5956
|
// @option boxZoom: Boolean = true
|
|
5955
5957
|
// Whether the map can be zoomed to a rectangular area specified by
|
|
5956
5958
|
// dragging the mouse while pressing the shift key.
|
|
@@ -5981,8 +5983,8 @@ var ui = { exports: {} };
|
|
|
5981
5983
|
_onMouseDown: function(t) {
|
|
5982
5984
|
if (!t.shiftKey || t.which !== 1 && t.button !== 1)
|
|
5983
5985
|
return !1;
|
|
5984
|
-
this._clearDeferredResetState(), this._resetState(),
|
|
5985
|
-
contextmenu:
|
|
5986
|
+
this._clearDeferredResetState(), this._resetState(), Wt(), De(), this._startPoint = this._map.mouseEventToContainerPoint(t), x(document, {
|
|
5987
|
+
contextmenu: Pt,
|
|
5986
5988
|
mousemove: this._onMouseMove,
|
|
5987
5989
|
mouseup: this._onMouseUp,
|
|
5988
5990
|
keydown: this._onKeyDown
|
|
@@ -5994,8 +5996,8 @@ var ui = { exports: {} };
|
|
|
5994
5996
|
R(this._box, e.min), this._box.style.width = i.x + "px", this._box.style.height = i.y + "px";
|
|
5995
5997
|
},
|
|
5996
5998
|
_finish: function() {
|
|
5997
|
-
this._moved && (I(this._box), B(this._container, "leaflet-crosshair")),
|
|
5998
|
-
contextmenu:
|
|
5999
|
+
this._moved && (I(this._box), B(this._container, "leaflet-crosshair")), Ut(), He(), A(document, {
|
|
6000
|
+
contextmenu: Pt,
|
|
5999
6001
|
mousemove: this._onMouseMove,
|
|
6000
6002
|
mouseup: this._onMouseUp,
|
|
6001
6003
|
keydown: this._onKeyDown
|
|
@@ -6003,7 +6005,7 @@ var ui = { exports: {} };
|
|
|
6003
6005
|
},
|
|
6004
6006
|
_onMouseUp: function(t) {
|
|
6005
6007
|
if (!(t.which !== 1 && t.button !== 1) && (this._finish(), !!this._moved)) {
|
|
6006
|
-
this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(
|
|
6008
|
+
this._clearDeferredResetState(), this._resetStateTimeout = setTimeout(g(this._resetState, this), 0);
|
|
6007
6009
|
var e = new j(
|
|
6008
6010
|
this._map.containerPointToLatLng(this._startPoint),
|
|
6009
6011
|
this._map.containerPointToLatLng(this._point)
|
|
@@ -6095,7 +6097,7 @@ var ui = { exports: {} };
|
|
|
6095
6097
|
var t = this._map;
|
|
6096
6098
|
if (t._stop(), this._map.options.maxBounds && this._map.options.maxBoundsViscosity) {
|
|
6097
6099
|
var e = N(this._map.options.maxBounds);
|
|
6098
|
-
this._offsetLimit =
|
|
6100
|
+
this._offsetLimit = G(
|
|
6099
6101
|
this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),
|
|
6100
6102
|
this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())
|
|
6101
6103
|
), this._viscosity = Math.min(1, Math.max(0, this._map.options.maxBoundsViscosity));
|
|
@@ -6137,10 +6139,10 @@ var ui = { exports: {} };
|
|
|
6137
6139
|
e.fire("moveend");
|
|
6138
6140
|
else {
|
|
6139
6141
|
this._prunePositions(+/* @__PURE__ */ new Date());
|
|
6140
|
-
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3, r = i.easeLinearity,
|
|
6141
|
-
!T.x && !T.y ? e.fire("moveend") : (T = e._limitOffset(T, e.options.maxBounds),
|
|
6142
|
+
var o = this._lastPos.subtract(this._positions[0]), s = (this._lastTime - this._times[0]) / 1e3, r = i.easeLinearity, a = o.multiplyBy(r / s), u = a.distanceTo([0, 0]), l = Math.min(i.inertiaMaxSpeed, u), f = a.multiplyBy(l / u), v = l / (i.inertiaDeceleration * r), T = f.multiplyBy(-v / 2).round();
|
|
6143
|
+
!T.x && !T.y ? e.fire("moveend") : (T = e._limitOffset(T, e.options.maxBounds), q(function() {
|
|
6142
6144
|
e.panBy(T, {
|
|
6143
|
-
duration:
|
|
6145
|
+
duration: v,
|
|
6144
6146
|
easeLinearity: r,
|
|
6145
6147
|
noMoveStart: !0,
|
|
6146
6148
|
animate: !0
|
|
@@ -6243,7 +6245,7 @@ var ui = { exports: {} };
|
|
|
6243
6245
|
i.closePopup();
|
|
6244
6246
|
else
|
|
6245
6247
|
return;
|
|
6246
|
-
|
|
6248
|
+
Pt(t);
|
|
6247
6249
|
}
|
|
6248
6250
|
}
|
|
6249
6251
|
});
|
|
@@ -6271,10 +6273,10 @@ var ui = { exports: {} };
|
|
|
6271
6273
|
A(this._map._container, "wheel", this._onWheelScroll, this);
|
|
6272
6274
|
},
|
|
6273
6275
|
_onWheelScroll: function(t) {
|
|
6274
|
-
var e =
|
|
6276
|
+
var e = ji(t), i = this._map.options.wheelDebounceTime;
|
|
6275
6277
|
this._delta += e, this._lastMousePos = this._map.mouseEventToContainerPoint(t), this._startTime || (this._startTime = +/* @__PURE__ */ new Date());
|
|
6276
6278
|
var n = Math.max(i - (+/* @__PURE__ */ new Date() - this._startTime), 0);
|
|
6277
|
-
clearTimeout(this._timer), this._timer = setTimeout(
|
|
6279
|
+
clearTimeout(this._timer), this._timer = setTimeout(g(this._performZoom, this), n), Pt(t);
|
|
6278
6280
|
},
|
|
6279
6281
|
_performZoom: function() {
|
|
6280
6282
|
var t = this._map, e = t.getZoom(), i = this._map.options.zoomSnap || 0;
|
|
@@ -6284,7 +6286,7 @@ var ui = { exports: {} };
|
|
|
6284
6286
|
}
|
|
6285
6287
|
});
|
|
6286
6288
|
C.addInitHook("addHandler", "scrollWheelZoom", bn);
|
|
6287
|
-
var
|
|
6289
|
+
var Xo = 600;
|
|
6288
6290
|
C.mergeOptions({
|
|
6289
6291
|
// @section Touch interaction options
|
|
6290
6292
|
// @option tapHold: Boolean
|
|
@@ -6305,13 +6307,13 @@ var ui = { exports: {} };
|
|
|
6305
6307
|
_onDown: function(t) {
|
|
6306
6308
|
if (clearTimeout(this._holdTimeout), t.touches.length === 1) {
|
|
6307
6309
|
var e = t.touches[0];
|
|
6308
|
-
this._startPos = this._newPos = new w(e.clientX, e.clientY), this._holdTimeout = setTimeout(
|
|
6309
|
-
this._cancel(), this._isTapValid() && (x(document, "touchend",
|
|
6310
|
-
}, this),
|
|
6310
|
+
this._startPos = this._newPos = new w(e.clientX, e.clientY), this._holdTimeout = setTimeout(g(function() {
|
|
6311
|
+
this._cancel(), this._isTapValid() && (x(document, "touchend", W), x(document, "touchend touchcancel", this._cancelClickPrevent), this._simulateEvent("contextmenu", e));
|
|
6312
|
+
}, this), Xo), x(document, "touchend touchcancel contextmenu", this._cancel, this), x(document, "touchmove", this._onMove, this);
|
|
6311
6313
|
}
|
|
6312
6314
|
},
|
|
6313
6315
|
_cancelClickPrevent: function t() {
|
|
6314
|
-
A(document, "touchend",
|
|
6316
|
+
A(document, "touchend", W), A(document, "touchend touchcancel", t);
|
|
6315
6317
|
},
|
|
6316
6318
|
_cancel: function() {
|
|
6317
6319
|
clearTimeout(this._holdTimeout), A(document, "touchend touchcancel contextmenu", this._cancel, this), A(document, "touchmove", this._onMove, this);
|
|
@@ -6363,7 +6365,7 @@ var ui = { exports: {} };
|
|
|
6363
6365
|
var e = this._map;
|
|
6364
6366
|
if (!(!t.touches || t.touches.length !== 2 || e._animatingZoom || this._zooming)) {
|
|
6365
6367
|
var i = e.mouseEventToContainerPoint(t.touches[0]), n = e.mouseEventToContainerPoint(t.touches[1]);
|
|
6366
|
-
this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), x(document, "touchmove", this._onTouchMove, this), x(document, "touchend touchcancel", this._onTouchEnd, this),
|
|
6368
|
+
this._centerPoint = e.getSize()._divideBy(2), this._startLatLng = e.containerPointToLatLng(this._centerPoint), e.options.touchZoom !== "center" && (this._pinchStartLatLng = e.containerPointToLatLng(i.add(n)._divideBy(2))), this._startDist = i.distanceTo(n), this._startZoom = e.getZoom(), this._moved = !1, this._zooming = !0, e._stop(), x(document, "touchmove", this._onTouchMove, this), x(document, "touchend touchcancel", this._onTouchEnd, this), W(t);
|
|
6367
6369
|
}
|
|
6368
6370
|
},
|
|
6369
6371
|
_onTouchMove: function(t) {
|
|
@@ -6378,9 +6380,9 @@ var ui = { exports: {} };
|
|
|
6378
6380
|
return;
|
|
6379
6381
|
this._center = e.unproject(e.project(this._pinchStartLatLng, this._zoom).subtract(s), this._zoom);
|
|
6380
6382
|
}
|
|
6381
|
-
this._moved || (e._moveStart(!0, !1), this._moved = !0),
|
|
6382
|
-
var r =
|
|
6383
|
-
this._animRequest =
|
|
6383
|
+
this._moved || (e._moveStart(!0, !1), this._moved = !0), Q(this._animRequest);
|
|
6384
|
+
var r = g(e._move, e, this._center, this._zoom, { pinch: !0, round: !1 }, void 0);
|
|
6385
|
+
this._animRequest = q(r, this, !0), W(t);
|
|
6384
6386
|
}
|
|
6385
6387
|
},
|
|
6386
6388
|
_onTouchEnd: function() {
|
|
@@ -6388,44 +6390,44 @@ var ui = { exports: {} };
|
|
|
6388
6390
|
this._zooming = !1;
|
|
6389
6391
|
return;
|
|
6390
6392
|
}
|
|
6391
|
-
this._zooming = !1,
|
|
6393
|
+
this._zooming = !1, Q(this._animRequest), A(document, "touchmove", this._onTouchMove, this), A(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
|
|
6392
6394
|
}
|
|
6393
6395
|
});
|
|
6394
|
-
C.addInitHook("addHandler", "touchZoom", Mn), C.BoxZoom = wn, C.DoubleClickZoom = xn, C.Drag = Ln, C.Keyboard = Pn, C.ScrollWheelZoom = bn, C.TapHold = Tn, C.TouchZoom = Mn,
|
|
6395
|
-
var
|
|
6396
|
-
|
|
6397
|
-
return window.L =
|
|
6398
|
-
}, window.L =
|
|
6396
|
+
C.addInitHook("addHandler", "touchZoom", Mn), C.BoxZoom = wn, C.DoubleClickZoom = xn, C.Drag = Ln, C.Keyboard = Pn, C.ScrollWheelZoom = bn, C.TapHold = Tn, C.TouchZoom = Mn, h.Bounds = Z, h.Browser = p, h.CRS = ft, h.Canvas = pn, h.Circle = ei, h.CircleMarker = le, h.Class = ct, h.Control = it, h.DivIcon = dn, h.DivOverlay = ut, h.DomEvent = mo, h.DomUtil = fo, h.Draggable = vt, h.Evented = Nt, h.FeatureGroup = dt, h.GeoJSON = mt, h.GridLayer = Jt, h.Handler = ht, h.Icon = kt, h.ImageOverlay = me, h.LatLng = k, h.LatLngBounds = j, h.Layer = nt, h.LayerGroup = St, h.LineUtil = zo, h.Map = C, h.Marker = ue, h.Mixin = Lo, h.Path = yt, h.Point = w, h.PolyUtil = Po, h.Polygon = Et, h.Polyline = _t, h.Popup = pe, h.PosAnimation = Ki, h.Projection = So, h.Rectangle = yn, h.Renderer = pt, h.SVG = Xt, h.SVGOverlay = fn, h.TileLayer = Ot, h.Tooltip = ge, h.Transformation = Ce, h.Util = Zn, h.VideoOverlay = cn, h.bind = g, h.bounds = G, h.canvas = gn, h.circle = No, h.circleMarker = Bo, h.control = Gt, h.divIcon = Go, h.extend = _, h.featureGroup = Oo, h.geoJSON = ln, h.geoJson = Ho, h.gridLayer = jo, h.icon = Zo, h.imageOverlay = Fo, h.latLng = M, h.latLngBounds = N, h.layerGroup = Ao, h.map = po, h.marker = Io, h.point = y, h.polygon = Do, h.polyline = Ro, h.popup = Vo, h.rectangle = Yo, h.setOptions = E, h.stamp = P, h.svg = vn, h.svgOverlay = Uo, h.tileLayer = _n, h.tooltip = qo, h.transformation = Rt, h.version = d, h.videoOverlay = Wo;
|
|
6397
|
+
var Qo = window.L;
|
|
6398
|
+
h.noConflict = function() {
|
|
6399
|
+
return window.L = Qo, this;
|
|
6400
|
+
}, window.L = h;
|
|
6399
6401
|
});
|
|
6400
6402
|
})(ui, ui.exports);
|
|
6401
6403
|
var Qt = ui.exports;
|
|
6402
|
-
const fi = /* @__PURE__ */
|
|
6403
|
-
function di(m, c,
|
|
6404
|
+
const fi = /* @__PURE__ */ us(Qt);
|
|
6405
|
+
function di(m, c, h) {
|
|
6404
6406
|
return Object.freeze({
|
|
6405
6407
|
instance: m,
|
|
6406
6408
|
context: c,
|
|
6407
|
-
container:
|
|
6409
|
+
container: h
|
|
6408
6410
|
});
|
|
6409
6411
|
}
|
|
6410
6412
|
function _i(m, c) {
|
|
6411
|
-
return c == null ? function(
|
|
6412
|
-
const S =
|
|
6413
|
-
return S.current || (S.current = m(
|
|
6414
|
-
} : function(
|
|
6415
|
-
const S =
|
|
6416
|
-
S.current || (S.current = m(
|
|
6417
|
-
const
|
|
6418
|
-
return
|
|
6419
|
-
|
|
6413
|
+
return c == null ? function(d, _) {
|
|
6414
|
+
const S = It(void 0);
|
|
6415
|
+
return S.current || (S.current = m(d, _)), S;
|
|
6416
|
+
} : function(d, _) {
|
|
6417
|
+
const S = It(void 0);
|
|
6418
|
+
S.current || (S.current = m(d, _));
|
|
6419
|
+
const g = It(d), { instance: J } = S.current;
|
|
6420
|
+
return Tt(function() {
|
|
6421
|
+
g.current !== d && (c(J, d, g.current), g.current = d);
|
|
6420
6422
|
}, [
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6423
|
+
J,
|
|
6424
|
+
d,
|
|
6425
|
+
c
|
|
6424
6426
|
]), S;
|
|
6425
6427
|
};
|
|
6426
6428
|
}
|
|
6427
|
-
function
|
|
6428
|
-
|
|
6429
|
+
function xs(m, c) {
|
|
6430
|
+
Tt(function() {
|
|
6429
6431
|
return (c.layerContainer ?? c.map).addLayer(m.instance), function() {
|
|
6430
6432
|
var S;
|
|
6431
6433
|
(S = c.layerContainer) == null || S.removeLayer(m.instance), c.map.removeLayer(m.instance);
|
|
@@ -6435,141 +6437,132 @@ function Ps(m, c) {
|
|
|
6435
6437
|
m
|
|
6436
6438
|
]);
|
|
6437
6439
|
}
|
|
6438
|
-
function
|
|
6439
|
-
return function(
|
|
6440
|
-
const
|
|
6441
|
-
return kn(
|
|
6440
|
+
function On(m) {
|
|
6441
|
+
return function(h) {
|
|
6442
|
+
const d = En(), _ = m(ci(h, d), d);
|
|
6443
|
+
return kn(d.map, h.attribution), An(_.current, h.eventHandlers), xs(_.current, d), _;
|
|
6442
6444
|
};
|
|
6443
6445
|
}
|
|
6444
|
-
function
|
|
6445
|
-
const
|
|
6446
|
-
return
|
|
6447
|
-
}
|
|
6448
|
-
function Ts(m, c) {
|
|
6449
|
-
const a = _i(m), f = Ls(a, c);
|
|
6450
|
-
return ws(f);
|
|
6446
|
+
function Ls(m, c) {
|
|
6447
|
+
const h = _i(m, c), d = On(h);
|
|
6448
|
+
return gs(d);
|
|
6451
6449
|
}
|
|
6452
|
-
function
|
|
6453
|
-
const
|
|
6454
|
-
return
|
|
6450
|
+
function Ps(m, c) {
|
|
6451
|
+
const h = _i(m), d = ws(h, c);
|
|
6452
|
+
return vs(d);
|
|
6455
6453
|
}
|
|
6456
|
-
function
|
|
6457
|
-
const
|
|
6458
|
-
|
|
6454
|
+
function bs(m, c) {
|
|
6455
|
+
const h = _i(m, c), d = On(h);
|
|
6456
|
+
return ys(d);
|
|
6459
6457
|
}
|
|
6460
|
-
function
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
var a = arguments[c];
|
|
6464
|
-
for (var f in a)
|
|
6465
|
-
Object.prototype.hasOwnProperty.call(a, f) && (m[f] = a[f]);
|
|
6466
|
-
}
|
|
6467
|
-
return m;
|
|
6468
|
-
}, li.apply(this, arguments);
|
|
6458
|
+
function Ts(m, c, h) {
|
|
6459
|
+
const { opacity: d, zIndex: _ } = c;
|
|
6460
|
+
d != null && d !== h.opacity && m.setOpacity(d), _ != null && _ !== h.zIndex && m.setZIndex(_);
|
|
6469
6461
|
}
|
|
6470
|
-
function
|
|
6471
|
-
const [
|
|
6462
|
+
function Ms({ bounds: m, boundsOptions: c, center: h, children: d, className: _, id: S, placeholder: g, style: J, whenReady: P, zoom: ot, ...st }, O) {
|
|
6463
|
+
const [X] = hi({
|
|
6472
6464
|
className: _,
|
|
6473
6465
|
id: S,
|
|
6474
|
-
style:
|
|
6475
|
-
}), [
|
|
6476
|
-
|
|
6477
|
-
|
|
6466
|
+
style: J
|
|
6467
|
+
}), [V, lt] = hi(null), E = It(void 0);
|
|
6468
|
+
xe(O, () => (V == null ? void 0 : V.map) ?? null, [
|
|
6469
|
+
V
|
|
6478
6470
|
]);
|
|
6479
|
-
const
|
|
6480
|
-
if (
|
|
6481
|
-
const
|
|
6482
|
-
|
|
6471
|
+
const $t = fs((Bt) => {
|
|
6472
|
+
if (Bt !== null && !E.current) {
|
|
6473
|
+
const F = new Qt.Map(Bt, st);
|
|
6474
|
+
E.current = F, h != null && ot != null ? F.setView(h, ot) : m != null && F.fitBounds(m, c), P != null && F.whenReady(P), lt(ms(F));
|
|
6483
6475
|
}
|
|
6484
6476
|
}, []);
|
|
6485
|
-
|
|
6486
|
-
|
|
6477
|
+
Tt(() => () => {
|
|
6478
|
+
V == null || V.map.remove();
|
|
6487
6479
|
}, [
|
|
6488
|
-
|
|
6480
|
+
V
|
|
6489
6481
|
]);
|
|
6490
|
-
const
|
|
6491
|
-
value:
|
|
6492
|
-
},
|
|
6493
|
-
return /* @__PURE__ */ ai.createElement("div",
|
|
6494
|
-
|
|
6495
|
-
|
|
6482
|
+
const Le = V ? /* @__PURE__ */ ai.createElement(li, {
|
|
6483
|
+
value: V
|
|
6484
|
+
}, d) : g ?? null;
|
|
6485
|
+
return /* @__PURE__ */ ai.createElement("div", {
|
|
6486
|
+
...X,
|
|
6487
|
+
ref: $t
|
|
6488
|
+
}, Le);
|
|
6496
6489
|
}
|
|
6497
|
-
const
|
|
6498
|
-
const _ = new Qt.Marker(c,
|
|
6499
|
-
return di(_,
|
|
6490
|
+
const Cs = /* @__PURE__ */ we(Ms), zs = Ls(function({ position: c, ...h }, d) {
|
|
6491
|
+
const _ = new Qt.Marker(c, h);
|
|
6492
|
+
return di(_, ps(d, {
|
|
6500
6493
|
overlayContainer: _
|
|
6501
6494
|
}));
|
|
6502
|
-
}, function(c,
|
|
6503
|
-
|
|
6504
|
-
}),
|
|
6505
|
-
const
|
|
6506
|
-
return di(
|
|
6507
|
-
}, function(c,
|
|
6508
|
-
|
|
6509
|
-
const { instance:
|
|
6510
|
-
function
|
|
6511
|
-
ot.popup ===
|
|
6495
|
+
}, function(c, h, d) {
|
|
6496
|
+
h.position !== d.position && c.setLatLng(h.position), h.icon != null && h.icon !== d.icon && c.setIcon(h.icon), h.zIndexOffset != null && h.zIndexOffset !== d.zIndexOffset && c.setZIndexOffset(h.zIndexOffset), h.opacity != null && h.opacity !== d.opacity && c.setOpacity(h.opacity), c.dragging != null && h.draggable !== d.draggable && (h.draggable === !0 ? c.dragging.enable() : c.dragging.disable());
|
|
6497
|
+
}), Ss = Ps(function(c, h) {
|
|
6498
|
+
const d = new Qt.Popup(c, h.overlayContainer);
|
|
6499
|
+
return di(d, h);
|
|
6500
|
+
}, function(c, h, { position: d }, _) {
|
|
6501
|
+
Tt(function() {
|
|
6502
|
+
const { instance: g } = c;
|
|
6503
|
+
function J(ot) {
|
|
6504
|
+
ot.popup === g && (g.update(), _(!0));
|
|
6512
6505
|
}
|
|
6513
6506
|
function P(ot) {
|
|
6514
|
-
ot.popup ===
|
|
6507
|
+
ot.popup === g && _(!1);
|
|
6515
6508
|
}
|
|
6516
|
-
return
|
|
6517
|
-
popupopen:
|
|
6509
|
+
return h.map.on({
|
|
6510
|
+
popupopen: J,
|
|
6518
6511
|
popupclose: P
|
|
6519
|
-
}),
|
|
6512
|
+
}), h.overlayContainer == null ? (d != null && g.setLatLng(d), g.openOn(h.map)) : h.overlayContainer.bindPopup(g), function() {
|
|
6520
6513
|
var st;
|
|
6521
|
-
|
|
6522
|
-
popupopen:
|
|
6514
|
+
h.map.off({
|
|
6515
|
+
popupopen: J,
|
|
6523
6516
|
popupclose: P
|
|
6524
|
-
}), (st =
|
|
6517
|
+
}), (st = h.overlayContainer) == null || st.unbindPopup(), h.map.removeLayer(g);
|
|
6525
6518
|
};
|
|
6526
6519
|
}, [
|
|
6527
6520
|
c,
|
|
6528
|
-
|
|
6521
|
+
h,
|
|
6529
6522
|
_,
|
|
6530
|
-
|
|
6523
|
+
d
|
|
6531
6524
|
]);
|
|
6532
|
-
}),
|
|
6533
|
-
const _ = new Qt.TileLayer(c, ci(
|
|
6534
|
-
return di(_,
|
|
6535
|
-
}, function(c,
|
|
6536
|
-
|
|
6537
|
-
const { url: _ } =
|
|
6538
|
-
_ != null && _ !==
|
|
6539
|
-
}),
|
|
6540
|
-
mapContainer:
|
|
6525
|
+
}), ks = bs(function({ url: c, ...h }, d) {
|
|
6526
|
+
const _ = new Qt.TileLayer(c, ci(h, d));
|
|
6527
|
+
return di(_, d);
|
|
6528
|
+
}, function(c, h, d) {
|
|
6529
|
+
Ts(c, h, d);
|
|
6530
|
+
const { url: _ } = h;
|
|
6531
|
+
_ != null && _ !== d.url && c.setUrl(_);
|
|
6532
|
+
}), Es = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==", As = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=", Os = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", Zs = "_mapContainer_xl36p_1", Is = {
|
|
6533
|
+
mapContainer: Zs
|
|
6541
6534
|
};
|
|
6542
6535
|
delete fi.Icon.Default.prototype.options.iconUrl;
|
|
6543
6536
|
delete fi.Icon.Default.prototype.options.iconRetinaUrl;
|
|
6544
6537
|
fi.Icon.Default.mergeOptions({
|
|
6545
|
-
iconUrl:
|
|
6546
|
-
iconRetinaUrl:
|
|
6547
|
-
shadowUrl:
|
|
6538
|
+
iconUrl: As,
|
|
6539
|
+
iconRetinaUrl: Es,
|
|
6540
|
+
shadowUrl: Os
|
|
6548
6541
|
});
|
|
6549
|
-
const
|
|
6550
|
-
const { lat: c, lon:
|
|
6551
|
-
return /* @__PURE__ */
|
|
6552
|
-
|
|
6542
|
+
const Hs = (m) => {
|
|
6543
|
+
const { lat: c, lon: h, pinTitle: d } = m;
|
|
6544
|
+
return /* @__PURE__ */ as(
|
|
6545
|
+
Cs,
|
|
6553
6546
|
{
|
|
6554
|
-
center: [c,
|
|
6547
|
+
center: [c, h],
|
|
6555
6548
|
zoom: 15,
|
|
6556
6549
|
scrollWheelZoom: !1,
|
|
6557
|
-
className:
|
|
6550
|
+
className: Is.mapContainer,
|
|
6558
6551
|
children: [
|
|
6559
6552
|
/* @__PURE__ */ ri(
|
|
6560
|
-
|
|
6553
|
+
ks,
|
|
6561
6554
|
{
|
|
6562
6555
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
|
6563
6556
|
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
6564
6557
|
}
|
|
6565
6558
|
),
|
|
6566
|
-
/* @__PURE__ */ ri(
|
|
6559
|
+
/* @__PURE__ */ ri(zs, { position: [c, h], children: d && /* @__PURE__ */ ri(Ss, { children: d }) })
|
|
6567
6560
|
]
|
|
6568
6561
|
}
|
|
6569
6562
|
);
|
|
6570
6563
|
};
|
|
6571
6564
|
export {
|
|
6572
|
-
|
|
6573
|
-
|
|
6565
|
+
Hs as Map,
|
|
6566
|
+
Hs as default
|
|
6574
6567
|
};
|
|
6575
6568
|
//# sourceMappingURL=index.es.js.map
|