From 7f4ae17bfa48ab86f16e32374df2f936d74a7f24 Mon Sep 17 00:00:00 2001 From: allyoucanmap Date: Wed, 11 Nov 2020 10:11:08 +0100 Subject: [PATCH 1/3] add project extensibility, map swipe and locate plugins --- geonode_mapstore_client/client/.eslintignore | 1 - geonode_mapstore_client/client/.eslintrc | 224 -------------- geonode_mapstore_client/client/.gitignore | 1 + geonode_mapstore_client/client/.npmignore | 2 + geonode_mapstore_client/client/js/api.js | 21 +- .../client/js/api/geonode.js | 4 +- .../js/components/leaflet/ArcGisMapServer.js | 2 +- .../components/openlayers/ArcGisMapServer.js | 2 +- .../client/js/epics/index.js | 42 +-- geonode_mapstore_client/client/js/extend.js | 10 + geonode_mapstore_client/client/js/plugins.js | 95 +++--- .../client/js/previewPlugins.js | 55 ++-- .../client/karma.conf.continuous-test.js | 22 -- .../client/karma.conf.single-run.js | 33 --- .../client/mergeDependencies.js | 6 - geonode_mapstore_client/client/package.json | 273 ++---------------- geonode_mapstore_client/client/postCompile.js | 22 ++ .../client/prod-webpack.config.js | 29 -- .../mapstore/translations/data.de-DE.json | 4 + .../mapstore/translations/data.en-US.json | 4 + .../mapstore/translations/data.es-ES.json | 4 + .../mapstore/translations/data.fr-FR.json | 4 + .../mapstore/translations/data.it-IT.json | 4 + .../client/tests.webpack.js | 3 - .../client/themes/default/theme.less | 2 +- .../client/themes/preview/less/geonode.less | 2 +- .../client/themes/preview/theme.less | 2 +- geonode_mapstore_client/client/version.txt | 2 +- .../client/webpack.config.js | 89 ------ .../geonode/js/ms2/utils/ms2_base_plugins.js | 5 + .../js/ms2/utils/ms2_map_embed_plugins.js | 4 +- .../js/ms2/utils/ms2_map_viewer_plugins.js | 4 +- .../geonode-mapstore-client/layer_edit.html | 2 +- .../layer_style_edit.html | 2 +- .../geonode-mapstore-client/layer_view.html | 2 +- package.json | 12 + 36 files changed, 228 insertions(+), 767 deletions(-) delete mode 100644 geonode_mapstore_client/client/.eslintignore delete mode 100644 geonode_mapstore_client/client/.eslintrc create mode 100644 geonode_mapstore_client/client/.npmignore create mode 100644 geonode_mapstore_client/client/js/extend.js delete mode 100644 geonode_mapstore_client/client/karma.conf.continuous-test.js delete mode 100644 geonode_mapstore_client/client/karma.conf.single-run.js delete mode 100644 geonode_mapstore_client/client/mergeDependencies.js create mode 100644 geonode_mapstore_client/client/postCompile.js delete mode 100644 geonode_mapstore_client/client/prod-webpack.config.js create mode 100644 geonode_mapstore_client/client/static/mapstore/translations/data.de-DE.json create mode 100644 geonode_mapstore_client/client/static/mapstore/translations/data.en-US.json create mode 100644 geonode_mapstore_client/client/static/mapstore/translations/data.es-ES.json create mode 100644 geonode_mapstore_client/client/static/mapstore/translations/data.fr-FR.json create mode 100644 geonode_mapstore_client/client/static/mapstore/translations/data.it-IT.json delete mode 100644 geonode_mapstore_client/client/tests.webpack.js delete mode 100644 geonode_mapstore_client/client/webpack.config.js create mode 100644 package.json diff --git a/geonode_mapstore_client/client/.eslintignore b/geonode_mapstore_client/client/.eslintignore deleted file mode 100644 index c5ca95c269..0000000000 --- a/geonode_mapstore_client/client/.eslintignore +++ /dev/null @@ -1 +0,0 @@ -MapStore2/ diff --git a/geonode_mapstore_client/client/.eslintrc b/geonode_mapstore_client/client/.eslintrc deleted file mode 100644 index 8667a1d5f4..0000000000 --- a/geonode_mapstore_client/client/.eslintrc +++ /dev/null @@ -1,224 +0,0 @@ -{ - "parser": "babel-eslint", // https://github.com/babel/babel-eslint - "plugins": [ - "no-only-tests", // https://github.com/levibuzolic/eslint-plugin-no-only-tests - "react" // https://github.com/yannickcr/eslint-plugin-react - ], - "env": { // http://eslint.org/docs/user-guide/configuring.html#specifying-environments - "browser": true, // browser global variables - "node": true, // Node.js global variables and Node.js-specific rules - "es6": true // enable all ECMAScript 6 features except for modules (this automatically sets the ecmaVersion parser option to 6). - }, - "globals" : { - /* MOCHA */ - "describe" : false, - "it" : false, - "before" : false, - "beforeEach" : false, - "after" : false, - "afterEach" : false, - "__DEVTOOLS__": false - }, - "rules": { -/** - * Strict mode - */ - // babel inserts "use strict"; for us - "strict": [2, "never"], // http://eslint.org/docs/rules/strict - -/** - * ES6 - */ - "no-var": 0, // http://eslint.org/docs/rules/no-var - "prefer-const": 0, // http://eslint.org/docs/rules/prefer-const - -/** - * Variables - */ - "no-shadow": 2, // http://eslint.org/docs/rules/no-shadow - "no-shadow-restricted-names": 2, // http://eslint.org/docs/rules/no-shadow-restricted-names - "no-unused-vars": [2, { // http://eslint.org/docs/rules/no-unused-vars - "vars": "local", - "args": "after-used", - "ignoreRestSiblings": true - }], - "no-use-before-define": 2, // http://eslint.org/docs/rules/no-use-before-define - -/** - * Possible errors - */ - "no-only-tests/no-only-tests": ["error", {"block": ["it", "describe"], "focus": ["only"]}], - "comma-dangle": [2, "never"], // http://eslint.org/docs/rules/comma-dangle - "no-cond-assign": [2, "always"], // http://eslint.org/docs/rules/no-cond-assign - "no-console": 1, // http://eslint.org/docs/rules/no-console - "no-debugger": 1, // http://eslint.org/docs/rules/no-debugger - "no-undef": 2, // https://eslint.org/docs/rules/no-undef - "no-const-assign": 2, // https://eslint.org/docs/rules/no-const-assign - "no-duplicate-imports": 2, // https://eslint.org/docs/rules/no-duplicate-imports - "no-alert": 1, // http://eslint.org/docs/rules/no-alert - "no-constant-condition": 1, // http://eslint.org/docs/rules/no-constant-condition - "no-dupe-keys": 2, // http://eslint.org/docs/rules/no-dupe-keys - "no-duplicate-case": 2, // http://eslint.org/docs/rules/no-duplicate-case - "no-empty": 2, // http://eslint.org/docs/rules/no-empty - "no-ex-assign": 2, // http://eslint.org/docs/rules/no-ex-assign - "no-extra-boolean-cast": 0, // http://eslint.org/docs/rules/no-extra-boolean-cast - "no-extra-semi": 2, // http://eslint.org/docs/rules/no-extra-semi - "no-func-assign": 2, // http://eslint.org/docs/rules/no-func-assign - "no-inner-declarations": 2, // http://eslint.org/docs/rules/no-inner-declarations - "no-invalid-regexp": 2, // http://eslint.org/docs/rules/no-invalid-regexp - "no-irregular-whitespace": 2, // http://eslint.org/docs/rules/no-irregular-whitespace - "no-obj-calls": 2, // http://eslint.org/docs/rules/no-obj-calls - "quote-props": [2, "as-needed", {"keywords": true, "unnecessary": false}], // http://eslint.org/docs/rules/no-reserved-keys - "no-sparse-arrays": 2, // http://eslint.org/docs/rules/no-sparse-arrays - "no-unreachable": 2, // http://eslint.org/docs/rules/no-unreachable - "use-isnan": 2, // http://eslint.org/docs/rules/use-isnan - "block-scoped-var": 2, // http://eslint.org/docs/rules/block-scoped-var - -/** - * Best practices - */ - "consistent-return": [2, {"treatUndefinedAsUnspecified": true}], // http://eslint.org/docs/rules/consistent-return - "curly": [2, "multi-line"], // http://eslint.org/docs/rules/curly - "default-case": 2, // http://eslint.org/docs/rules/default-case - "dot-notation": [2, { // http://eslint.org/docs/rules/dot-notation - "allowKeywords": true - }], - "eqeqeq": 2, // http://eslint.org/docs/rules/eqeqeq - "guard-for-in": 2, // http://eslint.org/docs/rules/guard-for-in - "no-caller": 2, // http://eslint.org/docs/rules/no-caller - "no-else-return": 2, // http://eslint.org/docs/rules/no-else-return - "no-eq-null": 2, // http://eslint.org/docs/rules/no-eq-null - "no-eval": 2, // http://eslint.org/docs/rules/no-eval - "no-extend-native": 2, // http://eslint.org/docs/rules/no-extend-native - "no-extra-bind": 2, // http://eslint.org/docs/rules/no-extra-bind - "no-fallthrough": 2, // http://eslint.org/docs/rules/no-fallthrough - "no-floating-decimal": 2, // http://eslint.org/docs/rules/no-floating-decimal - "no-implied-eval": 2, // http://eslint.org/docs/rules/no-implied-eval - "no-lone-blocks": 2, // http://eslint.org/docs/rules/no-lone-blocks - "no-loop-func": 2, // http://eslint.org/docs/rules/no-loop-func - "no-multi-str": 2, // http://eslint.org/docs/rules/no-multi-str - "no-native-reassign": 2, // http://eslint.org/docs/rules/no-native-reassign - "no-new": 2, // http://eslint.org/docs/rules/no-new - "no-new-func": 2, // http://eslint.org/docs/rules/no-new-func - "no-new-wrappers": 2, // http://eslint.org/docs/rules/no-new-wrappers - "no-octal": 2, // http://eslint.org/docs/rules/no-octal - "no-octal-escape": 2, // http://eslint.org/docs/rules/no-octal-escape - "no-param-reassign": 2, // http://eslint.org/docs/rules/no-param-reassign - "no-proto": 2, // http://eslint.org/docs/rules/no-proto - "no-redeclare": 2, // http://eslint.org/docs/rules/no-redeclare - "no-return-assign": 2, // http://eslint.org/docs/rules/no-return-assign - "no-script-url": 2, // http://eslint.org/docs/rules/no-script-url - "no-self-compare": 2, // http://eslint.org/docs/rules/no-self-compare - "no-sequences": 2, // http://eslint.org/docs/rules/no-sequences - "no-throw-literal": 2, // http://eslint.org/docs/rules/no-throw-literal - "no-with": 2, // http://eslint.org/docs/rules/no-with - "radix": 2, // http://eslint.org/docs/rules/radix - "vars-on-top": 2, // http://eslint.org/docs/rules/vars-on-top - "wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife - "yoda": 2, // http://eslint.org/docs/rules/yoda - -/** - * Style - */ - "indent": [2, 4], // http://eslint.org/docs/rules/indent - "brace-style": [2, // http://eslint.org/docs/rules/brace-style - "1tbs", { - "allowSingleLine": true - }], - "quotes": [ - 0, "single", "avoid-escape" // http://eslint.org/docs/rules/quotes - ], - "camelcase": [1, { // http://eslint.org/docs/rules/camelcase - "properties": "never", - "allow": ["^UNSAFE_"]} - ], - "comma-spacing": [2, { // http://eslint.org/docs/rules/comma-spacing - "before": false, - "after": true - }], - "comma-style": [2, "last"], // http://eslint.org/docs/rules/comma-style - "eol-last": 2, // http://eslint.org/docs/rules/eol-last - "func-names": 0, // http://eslint.org/docs/rules/func-names - "key-spacing": [2, { // http://eslint.org/docs/rules/key-spacing - "beforeColon": false, - "afterColon": true - }], - "new-cap": [2, { // http://eslint.org/docs/rules/new-cap - "newIsCap": true - }], - "no-multiple-empty-lines": [2, { // http://eslint.org/docs/rules/no-multiple-empty-lines - "max": 2 - }], - "no-nested-ternary": 0, // http://eslint.org/docs/rules/no-nested-ternary - "no-new-object": 2, // http://eslint.org/docs/rules/no-new-object - "no-spaced-func": 2, // http://eslint.org/docs/rules/no-spaced-func - "no-trailing-spaces": 2, // http://eslint.org/docs/rules/no-trailing-spaces - "no-extra-parens": [2, "functions"], // http://eslint.org/docs/rules/no-wrap-func - "no-underscore-dangle": 0, // http://eslint.org/docs/rules/no-underscore-dangle - "one-var": [2, "never"], // http://eslint.org/docs/rules/one-var - "padded-blocks": [0, "never"], // http://eslint.org/docs/rules/padded-blocks - "semi": [2, "always"], // http://eslint.org/docs/rules/semi - "semi-spacing": [2, { // http://eslint.org/docs/rules/semi-spacing - "before": false, - "after": true - }], - "keyword-spacing": [2, {"after": true}], // http://eslint.org/docs/rules/space-after-keywords - "space-before-blocks": 2, // http://eslint.org/docs/rules/space-before-blocks - "space-before-function-paren": [2, "never"], // http://eslint.org/docs/rules/space-before-function-paren - "space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops - // "space-return-throw-case": 2, // http://eslint.org/docs/rules/space-return-throw-case - "spaced-comment": 2, // http://eslint.org/docs/rules/spaced-line-comment - -/** - * JSX style - */ - "react/jsx-no-duplicate-props": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md - "react/display-name": 0, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md - "react/jsx-boolean-value": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md - "react/jsx-quotes": [2, "double"], // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-quotes.md - "react/jsx-no-undef": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-undef.md - "react/jsx-sort-props": 0, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md - "react/jsx-sort-prop-types": 0, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-prop-types.md - "react/jsx-uses-react": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md - "react/jsx-uses-vars": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md - "react/no-did-mount-set-state": [2], // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md - "react/no-did-update-set-state": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-update-set-state.md - "react/no-multi-comp": 0, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md - "react/no-unknown-property": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md - "react/prop-types": [2, { "ignore": ["children"]}], // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md - "react/react-in-jsx-scope": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md - "react/self-closing-comp": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md - "react/wrap-multilines": 2, // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/wrap-multilines.md - "react/sort-comp": [2, { // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md - "order": [ - "displayName", - "propTypes", - "inheritedPropTypes", - "contextTypes", - "childContextTypes", - "mixins", - "statics", - "defaultProps", - "constructor", - "getDefaultProps", - "/^state$/", - "getInitialState", - "getChildContext", - "UNSAFE_componentWillMount", - "componentWillMount", - "componentDidMount", - "UNSAFE_componentWillReceiveProps", - "componentWillReceiveProps", - "shouldComponentUpdate", - "UNSAFE_componentWillUpdate", - "componentWillUpdate", - "componentDidUpdate", - "componentWillUnmount", - "/^on.+$/", - "/^get.+$/", - "/^render.+$/", - "render" - ] - }] - } -} diff --git a/geonode_mapstore_client/client/.gitignore b/geonode_mapstore_client/client/.gitignore index af804c8994..af8b16befd 100644 --- a/geonode_mapstore_client/client/.gitignore +++ b/geonode_mapstore_client/client/.gitignore @@ -4,3 +4,4 @@ web/ dist/ module/ coverage/ +package-lock.json diff --git a/geonode_mapstore_client/client/.npmignore b/geonode_mapstore_client/client/.npmignore new file mode 100644 index 0000000000..e0c4db9201 --- /dev/null +++ b/geonode_mapstore_client/client/.npmignore @@ -0,0 +1,2 @@ +MapStore2 +module/ diff --git a/geonode_mapstore_client/client/js/api.js b/geonode_mapstore_client/client/js/api.js index 0bad739c68..230b2c2cc6 100644 --- a/geonode_mapstore_client/client/js/api.js +++ b/geonode_mapstore_client/client/js/api.js @@ -7,19 +7,20 @@ */ require('react-widgets/dist/css/react-widgets.css'); const assign = require("object-assign"); -const ConfigUtils = require('../MapStore2/web/client/utils/ConfigUtils'); -const LocaleUtils = require('../MapStore2/web/client/utils/LocaleUtils'); -const LayersUtils = require('../MapStore2/web/client/utils/LayersUtils'); +const ConfigUtils = require('@mapstore/framework/utils/ConfigUtils'); +const LocaleUtils = require('@mapstore/framework/utils/LocaleUtils'); +const LayersUtils = require('@mapstore/framework/utils/LayersUtils'); LayersUtils.setRegGeoserverRule(/\/[\w- ]*geoserver[\w- ]*\/|\/[\w- ]*gs[\w- ]*\//); const {keyBy, values} = require('lodash'); + +require('react-select/dist/react-select.css'); /** * Add custom (overriding) translations with: * * ConfigUtils.setConfigProp('translationsPath', ['./MapStore2/web/client/translations', './translations']); */ -ConfigUtils.setConfigProp('translationsPath', ['../MapStore2/web/client', './'] ); ConfigUtils.setConfigProp('themePrefix', 'msgapi'); -const Persistence = require("../MapStore2/web/client/api/persistence"); +const Persistence = require("@mapstore/framework/api/persistence"); Persistence.addApi("geonode", require("./api/geonode")); Persistence.setApi("geonode"); @@ -50,21 +51,23 @@ Persistence.setApi("geonode"); const getScriptPath = function() { const scriptEl = document.getElementById('ms2-api'); - return scriptEl && scriptEl.src && scriptEl.src.substring(0, scriptEl.src.lastIndexOf('/')) || 'https://dev.mapstore2.geo-solutions.it/mapstore/dist'; + return scriptEl && scriptEl.src && scriptEl.src.substring(0, scriptEl.src.lastIndexOf('/')) || ''; }; +const translationsPath = __GEONODE_PROJECT_CONFIG__.translationsPath || getScriptPath() + '/../ms-translations'; + // Set X-CSRFToken in axios; -const axios = require('../MapStore2/web/client/libs/ajax'); +const axios = require('@mapstore/framework/libs/ajax'); axios.defaults.xsrfHeaderName = "X-CSRFToken"; axios.defaults.xsrfCookieName = "csrftoken"; const createMapStore2Api = function(plugins) { - const MapStore2 = require('../MapStore2/web/client/jsapi/MapStore2').withPlugins(plugins, { + const MapStore2 = require('@mapstore/framework/jsapi/MapStore2').withPlugins(plugins, { theme: { path: getScriptPath() + '/themes' }, noLocalConfig: true, - translations: getScriptPath() + '/../MapStore2/web/client' + translations: translationsPath }); // window.MapStore2 = MapStore2; return assign({}, MapStore2, { create: function(container, opts) { diff --git a/geonode_mapstore_client/client/js/api/geonode.js b/geonode_mapstore_client/client/js/api/geonode.js index e64a14e3be..01bfa9ccd1 100644 --- a/geonode_mapstore_client/client/js/api/geonode.js +++ b/geonode_mapstore_client/client/js/api/geonode.js @@ -7,8 +7,8 @@ */ const Rx = require('rxjs'); -const axios = require('../../MapStore2/web/client/libs/ajax'); -const ConfigUtils = require("../../MapStore2/web/client/utils/ConfigUtils"); +const axios = require('@mapstore/framework/libs/ajax'); +const ConfigUtils = require("@mapstore/framework/utils/ConfigUtils"); const createAttributesFromMetadata = ({ name, description }) => { diff --git a/geonode_mapstore_client/client/js/components/leaflet/ArcGisMapServer.js b/geonode_mapstore_client/client/js/components/leaflet/ArcGisMapServer.js index 8c31380039..a296c351c4 100644 --- a/geonode_mapstore_client/client/js/components/leaflet/ArcGisMapServer.js +++ b/geonode_mapstore_client/client/js/components/leaflet/ArcGisMapServer.js @@ -6,7 +6,7 @@ * LICENSE file in the root directory of this source tree. */ -const Layers = require('../../../MapStore2/web/client/utils/leaflet/Layers'); +const Layers = require('@mapstore/framework/utils/leaflet/Layers'); var L = require('leaflet'); Layers.registerType('arcgis', (options) => { diff --git a/geonode_mapstore_client/client/js/components/openlayers/ArcGisMapServer.js b/geonode_mapstore_client/client/js/components/openlayers/ArcGisMapServer.js index 62b2774a77..c1b006b00e 100644 --- a/geonode_mapstore_client/client/js/components/openlayers/ArcGisMapServer.js +++ b/geonode_mapstore_client/client/js/components/openlayers/ArcGisMapServer.js @@ -6,7 +6,7 @@ * LICENSE file in the root directory of this source tree. */ -import Layers from '../../../MapStore2/web/client/utils/openlayers/Layers'; +import Layers from '@mapstore/framework/utils/openlayers/Layers'; import TileLayer from 'ol/layer/Tile'; import TileArcGISRest from 'ol/source/TileArcGISRest'; diff --git a/geonode_mapstore_client/client/js/epics/index.js b/geonode_mapstore_client/client/js/epics/index.js index 06aae4d6c3..22cd6fc81a 100644 --- a/geonode_mapstore_client/client/js/epics/index.js +++ b/geonode_mapstore_client/client/js/epics/index.js @@ -11,33 +11,33 @@ */ const Rx = require("rxjs"); -const { SELECT_NODE } = require("../../MapStore2/web/client/actions/layers"); -const { setPermission } = require("../../MapStore2/web/client/actions/featuregrid"); -const { setEditPermissionStyleEditor, INIT_STYLE_SERVICE } = require("../../MapStore2/web/client/actions/styleeditor"); +const { SELECT_NODE } = require("@mapstore/framework/actions/layers"); +const { setPermission } = require("@mapstore/framework/actions/featuregrid"); +const { setEditPermissionStyleEditor, INIT_STYLE_SERVICE } = require("@mapstore/framework/actions/styleeditor"); const { layerEditPermissions, styleEditPermissions, updateThumb } = require("../api/geonode"); -const { getSelectedLayer, layersSelector } = require("../../MapStore2/web/client/selectors/layers"); -const { mapSelector } = require("../../MapStore2/web/client/selectors/map"); -const ConfigUtils = require("../../MapStore2/web/client/utils/ConfigUtils"); - -const { updateMapLayout } = require('../../MapStore2/web/client/actions/maplayout'); -const { TOGGLE_CONTROL, SET_CONTROL_PROPERTY, SET_CONTROL_PROPERTIES } = require('../../MapStore2/web/client/actions/controls'); -const { MAP_CONFIG_LOADED } = require('../../MapStore2/web/client/actions/config'); -const { SIZE_CHANGE, CLOSE_FEATURE_GRID, OPEN_FEATURE_GRID } = require('../../MapStore2/web/client/actions/featuregrid'); -const { CLOSE_IDENTIFY, ERROR_FEATURE_INFO, TOGGLE_MAPINFO_STATE, LOAD_FEATURE_INFO, EXCEPTIONS_FEATURE_INFO, NO_QUERYABLE_LAYER } = require('../../MapStore2/web/client/actions/mapInfo'); -const { SHOW_SETTINGS, HIDE_SETTINGS } = require('../../MapStore2/web/client/actions/layers'); -const { PURGE_MAPINFO_RESULTS } = require('../../MapStore2/web/client/actions/mapInfo'); -const { isMapInfoOpen } = require('../../MapStore2/web/client/selectors/mapInfo'); - -const { isFeatureGridOpen, getDockSize } = require('../../MapStore2/web/client/selectors/featuregrid'); +const { getSelectedLayer, layersSelector } = require("@mapstore/framework/selectors/layers"); +const { mapSelector } = require("@mapstore/framework/selectors/map"); +const ConfigUtils = require("@mapstore/framework/utils/ConfigUtils"); + +const { updateMapLayout } = require('@mapstore/framework/actions/maplayout'); +const { TOGGLE_CONTROL, SET_CONTROL_PROPERTY, SET_CONTROL_PROPERTIES } = require('@mapstore/framework/actions/controls'); +const { MAP_CONFIG_LOADED } = require('@mapstore/framework/actions/config'); +const { SIZE_CHANGE, CLOSE_FEATURE_GRID, OPEN_FEATURE_GRID } = require('@mapstore/framework/actions/featuregrid'); +const { CLOSE_IDENTIFY, ERROR_FEATURE_INFO, TOGGLE_MAPINFO_STATE, LOAD_FEATURE_INFO, EXCEPTIONS_FEATURE_INFO, NO_QUERYABLE_LAYER } = require('@mapstore/framework/actions/mapInfo'); +const { SHOW_SETTINGS, HIDE_SETTINGS } = require('@mapstore/framework/actions/layers'); +const { PURGE_MAPINFO_RESULTS } = require('@mapstore/framework/actions/mapInfo'); +const { isMapInfoOpen } = require('@mapstore/framework/selectors/mapInfo'); + +const { isFeatureGridOpen, getDockSize } = require('@mapstore/framework/selectors/featuregrid'); const { head, get } = require('lodash'); -// const {updateMapLayoutEpic} = require('../../MapStore2/web/client/epics/maplayout'); +// const {updateMapLayoutEpic} = require('@mapstore/framework/epics/maplayout'); -// const {basicError} = require('../../MapStore2/web/client/utils/NotificationUtils'); +// const {basicError} = require('@mapstore/framework/utils/NotificationUtils'); /** * We need to include missing epics. The plugins that normally include this epic is not used. */ -const { mapSaveMapResourceEpic } = require("../../MapStore2/web/client/epics/maps"); -const { showCoordinateEditorSelector } = require('../../MapStore2/web/client/selectors/controls'); +const { mapSaveMapResourceEpic } = require("@mapstore/framework/epics/maps"); +const { showCoordinateEditorSelector } = require('@mapstore/framework/selectors/controls'); /** diff --git a/geonode_mapstore_client/client/js/extend.js b/geonode_mapstore_client/client/js/extend.js new file mode 100644 index 0000000000..8298679274 --- /dev/null +++ b/geonode_mapstore_client/client/js/extend.js @@ -0,0 +1,10 @@ +/** + * Copyright 2020, GeoSolutions Sas. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. + */ + +export const extendPluginsDefinition = false; +export default { extendPluginsDefinition }; diff --git a/geonode_mapstore_client/client/js/plugins.js b/geonode_mapstore_client/client/js/plugins.js index 9f90e0dec1..95422adb6a 100644 --- a/geonode_mapstore_client/client/js/plugins.js +++ b/geonode_mapstore_client/client/js/plugins.js @@ -6,60 +6,69 @@ * LICENSE file in the root directory of this source tree. */ // geonode specific epics -const epics = require("./epics"); +const epics = require("@js/epics"); +const { extendPluginsDefinition } = require("@extend/jsapi/plugins"); -module.exports = { +const pluginsDefinition = { plugins: { - AddGroupPlugin: require('../MapStore2/web/client/plugins/AddGroup').default, - IdentifyPlugin: require('../MapStore2/web/client/plugins/Identify'), - TOCPlugin: require('../MapStore2/web/client/plugins/TOC'), - MapPlugin: require('../MapStore2/web/client/plugins/Map').default, - ToolbarPlugin: require('../MapStore2/web/client/plugins/Toolbar'), - DrawerMenuPlugin: require('../MapStore2/web/client/plugins/DrawerMenu'), - ZoomAllPlugin: require('../MapStore2/web/client/plugins/ZoomAll'), - MapLoadingPlugin: require('../MapStore2/web/client/plugins/MapLoading'), - OmniBarPlugin: require('../MapStore2/web/client/plugins/OmniBar'), - BackgroundSelectorPlugin: require('../MapStore2/web/client/plugins/BackgroundSelector').default, - FullScreenPlugin: require('../MapStore2/web/client/plugins/FullScreen'), - ZoomInPlugin: require('../MapStore2/web/client/plugins/ZoomIn'), - ZoomOutPlugin: require('../MapStore2/web/client/plugins/ZoomOut'), - ExpanderPlugin: require('../MapStore2/web/client/plugins/Expander'), - BurgerMenuPlugin: require('../MapStore2/web/client/plugins/BurgerMenu'), - UndoPlugin: require('../MapStore2/web/client/plugins/History'), - RedoPlugin: require('../MapStore2/web/client/plugins/History'), - ScaleBoxPlugin: require('../MapStore2/web/client/plugins/ScaleBox'), - MapFooterPlugin: require('../MapStore2/web/client/plugins/MapFooter'), - PrintPlugin: require('../MapStore2/web/client/plugins/Print'), - MeasurePlugin: require('../MapStore2/web/client/plugins/Measure'), - FilterLayerPlugin: require('../MapStore2/web/client/plugins/FilterLayer').default, - TOCItemsSettingsPlugin: require('../MapStore2/web/client/plugins/TOCItemsSettings').default, - WidgetsPlugin: require('../MapStore2/web/client/plugins/Widgets').default, - WidgetsBuilderPlugin: require('../MapStore2/web/client/plugins/WidgetsBuilder').default, - WidgetsTrayPlugin: require('../MapStore2/web/client/plugins/WidgetsTray').default, - NotificationsPlugin: require('../MapStore2/web/client/plugins/Notifications'), - FeatureEditorPlugin: require('../MapStore2/web/client/plugins/FeatureEditor').default, - QueryPanelPlugin: require('../MapStore2/web/client/plugins/QueryPanel'), + AddGroupPlugin: require('@mapstore/framework/plugins/AddGroup').default, + IdentifyPlugin: require('@mapstore/framework/plugins/Identify'), + TOCPlugin: require('@mapstore/framework/plugins/TOC'), + MapPlugin: require('@mapstore/framework/plugins/Map').default, + ToolbarPlugin: require('@mapstore/framework/plugins/Toolbar'), + DrawerMenuPlugin: require('@mapstore/framework/plugins/DrawerMenu'), + ZoomAllPlugin: require('@mapstore/framework/plugins/ZoomAll'), + MapLoadingPlugin: require('@mapstore/framework/plugins/MapLoading'), + OmniBarPlugin: require('@mapstore/framework/plugins/OmniBar'), + BackgroundSelectorPlugin: require('@mapstore/framework/plugins/BackgroundSelector').default, + FullScreenPlugin: require('@mapstore/framework/plugins/FullScreen'), + ZoomInPlugin: require('@mapstore/framework/plugins/ZoomIn'), + ZoomOutPlugin: require('@mapstore/framework/plugins/ZoomOut'), + ExpanderPlugin: require('@mapstore/framework/plugins/Expander'), + BurgerMenuPlugin: require('@mapstore/framework/plugins/BurgerMenu'), + UndoPlugin: require('@mapstore/framework/plugins/History'), + RedoPlugin: require('@mapstore/framework/plugins/History'), + ScaleBoxPlugin: require('@mapstore/framework/plugins/ScaleBox'), + MapFooterPlugin: require('@mapstore/framework/plugins/MapFooter'), + PrintPlugin: require('@mapstore/framework/plugins/Print'), + MeasurePlugin: require('@mapstore/framework/plugins/Measure'), + FilterLayerPlugin: require('@mapstore/framework/plugins/FilterLayer').default, + TOCItemsSettingsPlugin: require('@mapstore/framework/plugins/TOCItemsSettings').default, + WidgetsPlugin: require('@mapstore/framework/plugins/Widgets').default, + WidgetsBuilderPlugin: require('@mapstore/framework/plugins/WidgetsBuilder').default, + WidgetsTrayPlugin: require('@mapstore/framework/plugins/WidgetsTray').default, + NotificationsPlugin: require('@mapstore/framework/plugins/Notifications'), + FeatureEditorPlugin: require('@mapstore/framework/plugins/FeatureEditor').default, + QueryPanelPlugin: require('@mapstore/framework/plugins/QueryPanel'), SavePlugin: require('@js/plugins/Save').default, SaveAsPlugin: require('@js/plugins/SaveAs').default, - MetadataExplorerPlugin: require('../MapStore2/web/client/plugins/MetadataExplorer'), - GridContainerPlugin: require('../MapStore2/web/client/plugins/GridContainer'), - StyleEditorPlugin: require('../MapStore2/web/client/plugins/StyleEditor'), - TimelinePlugin: require('../MapStore2/web/client/plugins/Timeline'), - PlaybackPlugin: require('../MapStore2/web/client/plugins/Playback'), - MousePositionPlugin: require('../MapStore2/web/client/plugins/MousePosition'), - SearchPlugin: require('../MapStore2/web/client/plugins/Search'), - SearchServicesConfigPlugin: require('../MapStore2/web/client/plugins/SearchServicesConfig'), + MetadataExplorerPlugin: require('@mapstore/framework/plugins/MetadataExplorer'), + GridContainerPlugin: require('@mapstore/framework/plugins/GridContainer'), + StyleEditorPlugin: require('@mapstore/framework/plugins/StyleEditor'), + TimelinePlugin: require('@mapstore/framework/plugins/Timeline'), + PlaybackPlugin: require('@mapstore/framework/plugins/Playback'), + MousePositionPlugin: require('@mapstore/framework/plugins/MousePosition'), + SearchPlugin: require('@mapstore/framework/plugins/Search'), + SearchServicesConfigPlugin: require('@mapstore/framework/plugins/SearchServicesConfig'), + SwipePlugin: require('@mapstore/framework/plugins/Swipe').default, + LocatePlugin: require('@mapstore/framework/plugins/Locate').default, AddReducersAndEpics: { reducers: { - security: require('../MapStore2/web/client/reducers/security').default, - maps: require('../MapStore2/web/client/reducers/maps').default, - maplayout: require('../MapStore2/web/client/reducers/maplayout').default + security: require('@mapstore/framework/reducers/security').default, + maps: require('@mapstore/framework/reducers/maps').default, + maplayout: require('@mapstore/framework/reducers/maplayout').default }, epics } }, requires: { ReactSwipe: require('react-swipeable-views').default, - SwipeHeader: require('../MapStore2/web/client/components/data/identify/SwipeHeader') + SwipeHeader: require('@mapstore/framework/components/data/identify/SwipeHeader') } }; + +const extendedPluginsDefinition = extendPluginsDefinition + ? extendPluginsDefinition(pluginsDefinition) + : pluginsDefinition; + +module.exports = extendedPluginsDefinition; diff --git a/geonode_mapstore_client/client/js/previewPlugins.js b/geonode_mapstore_client/client/js/previewPlugins.js index ffa2751238..13e433880e 100644 --- a/geonode_mapstore_client/client/js/previewPlugins.js +++ b/geonode_mapstore_client/client/js/previewPlugins.js @@ -6,31 +6,34 @@ * LICENSE file in the root directory of this source tree. */ const Rx = require("rxjs"); -const {_setThumbnail, updateMapLayoutEpic} = require("./epics"); -module.exports = { +const {_setThumbnail, updateMapLayoutEpic} = require("@js/epics"); + +const { extendPluginsDefinition } = require("@extend/jsapi/previewPlugins"); + +const pluginsDefinition = { plugins: { - MapPlugin: require('../MapStore2/web/client/plugins/Map').default, - IdentifyPlugin: require('../MapStore2/web/client/plugins/Identify'), - ToolbarPlugin: require('../MapStore2/web/client/plugins/Toolbar'), - ZoomAllPlugin: require('../MapStore2/web/client/plugins/ZoomAll'), - MapLoadingPlugin: require('../MapStore2/web/client/plugins/MapLoading'), - OmniBarPlugin: require('../MapStore2/web/client/plugins/OmniBar'), - BackgroundSelectorPlugin: require('../MapStore2/web/client/plugins/BackgroundSelector').default, - FullScreenPlugin: require('../MapStore2/web/client/plugins/FullScreen'), - ZoomInPlugin: require('../MapStore2/web/client/plugins/ZoomIn'), - ZoomOutPlugin: require('../MapStore2/web/client/plugins/ZoomOut'), - ExpanderPlugin: require('../MapStore2/web/client/plugins/Expander'), - BurgerMenuPlugin: require('../MapStore2/web/client/plugins/BurgerMenu'), - ScaleBoxPlugin: require('../MapStore2/web/client/plugins/ScaleBox'), - MapFooterPlugin: require('../MapStore2/web/client/plugins/MapFooter'), - PrintPlugin: require('../MapStore2/web/client/plugins/Print'), - TimelinePlugin: require('../MapStore2/web/client/plugins/Timeline'), - PlaybackPlugin: require('../MapStore2/web/client/plugins/Playback'), + MapPlugin: require('@mapstore/framework/plugins/Map').default, + IdentifyPlugin: require('@mapstore/framework/plugins/Identify'), + ToolbarPlugin: require('@mapstore/framework/plugins/Toolbar'), + ZoomAllPlugin: require('@mapstore/framework/plugins/ZoomAll'), + MapLoadingPlugin: require('@mapstore/framework/plugins/MapLoading'), + OmniBarPlugin: require('@mapstore/framework/plugins/OmniBar'), + BackgroundSelectorPlugin: require('@mapstore/framework/plugins/BackgroundSelector').default, + FullScreenPlugin: require('@mapstore/framework/plugins/FullScreen'), + ZoomInPlugin: require('@mapstore/framework/plugins/ZoomIn'), + ZoomOutPlugin: require('@mapstore/framework/plugins/ZoomOut'), + ExpanderPlugin: require('@mapstore/framework/plugins/Expander'), + BurgerMenuPlugin: require('@mapstore/framework/plugins/BurgerMenu'), + ScaleBoxPlugin: require('@mapstore/framework/plugins/ScaleBox'), + MapFooterPlugin: require('@mapstore/framework/plugins/MapFooter'), + PrintPlugin: require('@mapstore/framework/plugins/Print'), + TimelinePlugin: require('@mapstore/framework/plugins/Timeline'), + PlaybackPlugin: require('@mapstore/framework/plugins/Playback'), AddReducersAndEpics: { reducers: { - security: require('../MapStore2/web/client/reducers/security').default, - maps: require('../MapStore2/web/client/reducers/maps').default, - maplayout: require('../MapStore2/web/client/reducers/maplayout').default + security: require('@mapstore/framework/reducers/security').default, + maps: require('@mapstore/framework/reducers/maps').default, + maplayout: require('@mapstore/framework/reducers/maplayout').default }, epics: { _setThumbnail, @@ -41,6 +44,12 @@ module.exports = { }, requires: { ReactSwipe: require('react-swipeable-views').default, - SwipeHeader: require('../MapStore2/web/client/components/data/identify/SwipeHeader') + SwipeHeader: require('@mapstore/framework/components/data/identify/SwipeHeader') } }; + +const extendedPluginsDefinition = extendPluginsDefinition + ? extendPluginsDefinition(pluginsDefinition) + : pluginsDefinition; + +module.exports = extendedPluginsDefinition; diff --git a/geonode_mapstore_client/client/karma.conf.continuous-test.js b/geonode_mapstore_client/client/karma.conf.continuous-test.js deleted file mode 100644 index 6f36839520..0000000000 --- a/geonode_mapstore_client/client/karma.conf.continuous-test.js +++ /dev/null @@ -1,22 +0,0 @@ -const path = require('path'); - -module.exports = function karmaConfig(config) { - config.set(require('./MapStore2/build/testConfig')({ - files: [ - 'tests.webpack.js', - { pattern: './MapStore2/**/*', included: false } - ], - browsers: ['Chrome'], - basePath: '.', - path: [ - path.join(__dirname, 'js'), - path.join(__dirname, 'MapStore2', 'web', 'client') - ], - testFile: 'tests.webpack.js', - singleRun: false, - alias: { - '@js': path.join(__dirname, 'js'), - '@mapstore/framework': path.join(__dirname, 'MapStore2', 'web', 'client') - } - })); -}; diff --git a/geonode_mapstore_client/client/karma.conf.single-run.js b/geonode_mapstore_client/client/karma.conf.single-run.js deleted file mode 100644 index d90904f117..0000000000 --- a/geonode_mapstore_client/client/karma.conf.single-run.js +++ /dev/null @@ -1,33 +0,0 @@ -const path = require("path"); - -module.exports = function karmaConfig(config) { - const testConfig = require('./MapStore2/build/testConfig')({ - files: [ - 'tests.webpack.js', - { pattern: './MapStore2/**/*', included: false } - ], - path: [ - path.join(__dirname, 'js'), - path.join(__dirname, 'MapStore2', 'web', 'client') - ], - basePath: '.', - testFile: 'tests.webpack.js', - singleRun: true, - alias: { - '@js': path.join(__dirname, 'js'), - '@mapstore/framework': path.join(__dirname, 'MapStore2', 'web', 'client') - } - }); - testConfig.webpack.module.rules = [{ - test: /\.jsx?$/, - exclude: /(__tests__|node_modules|legacy|libs\\Cesium|libs\\html2canvas)\\|(__tests__|node_modules|legacy|libs\/Cesium|libs\/html2canvas)\/|webpack\.js|utils\/(openlayers|leaflet)/, - enforce: "post", - use: [ - { - loader: 'istanbul-instrumenter-loader', - options: { esModules: true } - } - ] - }, ...testConfig.webpack.module.rules]; - config.set(testConfig); -}; diff --git a/geonode_mapstore_client/client/mergeDependencies.js b/geonode_mapstore_client/client/mergeDependencies.js deleted file mode 100644 index f2d9f9d6b5..0000000000 --- a/geonode_mapstore_client/client/mergeDependencies.js +++ /dev/null @@ -1,6 +0,0 @@ -var fs = require('fs'); -var msP = JSON.parse(fs.readFileSync("./MapStore2/package.json", "utf8")); -var projP = JSON.parse(fs.readFileSync("./package.json", "utf8")); -var devDependencies = {...(projP.devDependencies || {}), ...msP.devDependencies}; -var dependencies = {...(projP.dependencies || {}), ...msP.dependencies}; -fs.writeFileSync("./package.json", JSON.stringify({...projP, devDependencies, dependencies}, null, 2), "utf8"); diff --git a/geonode_mapstore_client/client/package.json b/geonode_mapstore_client/client/package.json index b49afecb2c..b5f6503520 100644 --- a/geonode_mapstore_client/client/package.json +++ b/geonode_mapstore_client/client/package.json @@ -1,263 +1,34 @@ { - "name": "ms2-geonode-api", - "version": "2.0.4", + "name": "geonode-mapstore-client", + "version": "0.0.6", "description": "MapStore 2 Api bundle specific to geonode framework", "main": "api.js", + "eslintConfig": { + "extends": [ + "@mapstore/eslint-config-mapstore" + ], + "parserOptions": { + "babelOptions": { + "configFile": "./node_modules/mapstore/build/babel.config.js" + } + }, + "globals": { + "__GEONODE_PROJECT_CONFIG__": false + } + }, "scripts": { - "clean": "rimraf ../static/mapstore", - "compile": "npm run clean && mkdirp ../static/mapstore/dist && webpack --progress --config prod-webpack.config.js", - "start": "webpack-dev-server --progress --colors --port 8081 --hot --inline", - "startprod": "webpack-dev-server --progress --colors --port 8081 --hot --inline --content-base . --config prod-webpack.config.js", - "lint": "eslint js --ext .jsx,.js", - "analyze": "webpack --json | webpack-bundle-size-analyzer", - "postinstall": "rimraf node_modules/leaflet-simple-graticule/node_modules && rimraf node_modules/react-sortable-items/node_modules/react-dom && rimraf node_modules/mocha && ncp node_modules/@geosolutions/mocha node_modules/mocha", - "postcompile": "mkdirp ../static/mapstore/MapStore2/web/client/ && ncp ./MapStore2/web/client/translations ../static/mapstore/MapStore2/web/client/.", - "test": "karma start karma.conf.single-run.js --colors", - "test:watch": "karma start karma.conf.continuous-test.js --colors" + "compile": "mapstore-project compile geonode && node postCompile", + "start": "mapstore-project start geonode", + "test": "mapstore-project test geonode", + "test:watch": "mapstore-project test:watch geonode", + "update-project": "mapstore-project update geonode" }, "author": "GeoSolutions", "license": "BSD-2-Clause", "devDependencies": { - "@babel/core": "7.8.7", - "@babel/plugin-proposal-class-properties": "7.8.3", - "@babel/plugin-syntax-dynamic-import": "7.8.3", - "@babel/preset-env": "7.8.7", - "@babel/preset-react": "7.8.3", - "@geosolutions/acorn-jsx": "4.0.2", - "@geosolutions/jsdoc": "3.4.4", - "@geosolutions/mocha": "6.2.1-3", - "@mapstore/eslint-config-mapstore": "1.0.1", - "axios-mock-adapter": "1.16.0", - "babel-eslint": "10.0.3", - "babel-istanbul-loader": "0.1.0", - "babel-loader": "8.0.5", - "babel-plugin-add-module-exports": "0.1.4", - "babel-plugin-object-assign": "1.2.1", - "babel-plugin-react-transform": "2.0.2", - "cesium": "1.17.0", - "copy-webpack-plugin": "5.0.2", - "css-loader": "0.19.0", - "denodeify": "1.2.1", - "docma": "1.5.1", - "download-cli": "1.0.1", - "dynamic-public-path-webpack-plugin": "1.0.4", - "escope": "3.2.0", - "eslint": "7.8.1", - "eslint-plugin-import": "2.20.2", - "eslint-plugin-no-only-tests": "2.3.1", - "eslint-plugin-react": "3.3.2", - "expect": "1.20.1", - "file-loader": "2.0.0", - "glob": "7.1.1", - "html-loader": "0.5.1", - "html-webpack-plugin": "3.2.0", - "jsdoc-jsx": "0.1.0", - "karma": "4.3.0", - "karma-chrome-launcher": "3.1.0", - "karma-cli": "2.0.0", - "karma-coverage": "2.0.1", - "karma-coveralls": "2.1.0", - "karma-firefox-launcher": "1.2.0", - "karma-ie-launcher": "1.0.0", - "karma-junit-reporter": "1.2.0", - "karma-mocha": "1.3.0", - "karma-mocha-reporter": "2.2.5", - "karma-sourcemap-loader": "0.3.7", - "karma-webpack": "4.0.2", - "less": "2.7.1", - "less-loader": "4.1.0", - "mini-css-extract-plugin": "0.5.0", - "mkdirp": "0.5.1", - "ncp": "2.0.0", - "parallelshell": "1.2.0", - "postcss": "7.0.14", - "postcss-loader": "3.0.0", - "postcss-prefix-selector": "1.7.1", - "progress-bar-webpack-plugin": "1.12.1", - "raw-loader": "0.5.1", - "react-motion": "0.5.0", - "react-transition-group": "1.1.3", - "readline-promise": "1.0.4", - "redux-devtools": "3.4.0", - "redux-devtools-dock-monitor": "1.1.2", - "redux-devtools-log-monitor": "1.3.0", - "redux-immutable-state-invariant": "2.1.0", - "redux-mock-store": "1.2.2", - "rimraf": "2.5.2", - "simple-git": "2.20.1", - "style-loader": "0.12.4", - "url-loader": "0.5.7", - "vusion-webfonts-generator": "0.4.1", - "webpack": "4.41.5", - "webpack-bundle-size-analyzer": "2.0.2", - "webpack-cli": "3.3.6", - "webpack-dev-server": "3.10.3" + "@mapstore/project": "git+https://github.com/geosolutions-it/mapstore-project.git#b752ff71f58f73addb164aeb472a9d353ca17c50" }, "dependencies": { - "@boundlessgeo/jsonix": "2.4.3", - "@carnesen/redux-add-action-listener-enhancer": "0.0.1", - "@geosolutions/proj4": "2.4.7", - "@geosolutions/react-joyride": "1.10.2", - "@geosolutions/wkt-parser": "1.2.2", - "@mapbox/geojsonhint": "2.0.1", - "@mapbox/togeojson": "0.16.0", - "@terrestris/base-util": "0.1.4", - "@terrestris/ol-util": "3.0.0", - "@turf/bbox": "4.1.0", - "@turf/bbox-polygon": "5.1.5", - "@turf/boolean-contains": "5.1.5", - "@turf/boolean-overlap": "5.1.5", - "@turf/center": "5.1.5", - "@turf/circle": "6.0.1", - "@turf/great-circle": "5.1.5", - "@turf/inside": "4.1.0", - "@turf/line-intersect": "4.1.0", - "@turf/point-on-surface": "4.1.0", - "@turf/polygon-to-linestring": "4.1.0", - "ag-grid-community": "20.2.0", - "ag-grid-react": "20.2.0", - "axios": "0.18.1", - "b64-to-blob": "1.2.19", - "babel-polyfill": "6.8.0", - "babel-standalone": "6.7.7", - "bootstrap": "3.3.5", - "canvas-to-blob": "0.0.0", - "canvg-browser": "1.0.0", - "chroma-js": "1.3.7", - "classnames": "2.2.5", - "codemirror": "5.18.2", - "colorbrewer": "1.0.0", - "connected-react-router": "6.3.2", - "create-react-class": "15.6.3", - "css-tree": "1.0.0-alpha24", - "draft-js": "0.11.0", - "draft-js-inline-toolbar-plugin": "3.0.0", - "draft-js-plugins-editor": "2.1.1", - "draft-js-side-toolbar-plugin": "3.0.1", - "draftjs-to-html": "0.8.4", - "element-closest": "2.0.2", - "es6-object-assign": "1.1.0", - "es6-promise": "2.3.0", - "eventlistener": "0.0.1", - "file-saver": "1.3.3", - "fs-extra": "3.0.1", - "geostyler-geocss-parser": "https://github.com/allyoucanmap/geostyler-geocss-parser/tarball/build", - "geostyler-openlayers-parser": "1.1.4", - "geostyler-sld-parser": "2.0.1", - "history": "4.6.1", - "html-to-draftjs": "npm:@geosolutions/html-to-draftjs@1.5.1", - "html2canvas": "0.5.0-beta4", - "immutable": "4.0.0-rc.12", - "intersection-observer": "0.7.0", - "intl": "1.2.2", - "is-equal": "1.5.5", - "ismobilejs": "0.5.0", - "istanbul-instrumenter-loader": "3.0.1", - "json-2-csv": "2.1.2", - "json-loader": "0.5.7", - "jsonlint-mod": "1.7.5", - "jszip": "3.1.5", - "keymirror": "0.1.1", - "leaflet": "1.3.1", - "leaflet-draw": "1.0.2", - "leaflet-extra-markers": "1.0.6", - "leaflet-minimap": "3.6.0", - "leaflet-plugins": "3.0.2", - "leaflet-simple-graticule": "1.0.2", - "leaflet.gridlayer.googlemutant": "0.6.4", - "leaflet.locatecontrol": "0.62.0", - "leaflet.nontiledlayer": "1.0.7", - "lodash": "4.17.19", - "lrucache": "1.0.3", - "moment": "2.21.0", - "node-geo-distance": "1.2.0", - "object-assign": "4.1.1", - "object-fit-images": "3.2.4", - "ogc-schemas": "2.6.1", - "ol": "5.3.0", - "pdfviewer": "0.3.2", - "prop-types": "15.7.2", - "qrcode.react": "0.9.3", - "query-string": "6.9.0", - "react": "16.10.1", - "react-addons-css-transition-group": "15.6.2", - "react-addons-shallow-compare": "15.6.2", - "react-bootstrap": "0.31.0", - "react-checkbox-tree": "1.5.1", - "react-codemirror2": "4.0.0", - "react-color": "2.17.0", - "react-confirm-button": "0.0.2", - "react-container-dimensions": "1.3.2", - "react-contenteditable": "3.3.2", - "react-copy-to-clipboard": "5.0.0", - "react-data-grid": "5.0.4", - "react-data-grid-addons": "5.0.4", - "react-dnd": "2.6.0", - "react-dnd-html5-backend": "2.6.0", - "react-dnd-test-backend": "2.6.0", - "react-dock": "0.2.4", - "react-dom": "16.10.1", - "react-draft-wysiwyg": "npm:@geosolutions/react-draft-wysiwyg@1.14.8", - "react-draggable": "2.2.6", - "react-dropzone": "3.13.1", - "react-error-boundary": "1.2.5", - "react-grid-layout": "0.16.6", - "react-image-lightbox": "4.2.2", - "react-input-autosize": "1.1.4", - "react-intersection-observer": "8.24.1", - "react-intl": "2.3.0", - "react-notification-system": "0.2.14", - "react-nouislider": "2.0.1", - "react-numeric-input": "2.2.3", - "react-overlays": "1.2.0", - "react-pdf": "4.0.5", - "react-player": "1.15.3", - "react-quill": "1.1.0", - "react-redux": "6.0.0", - "react-resize-detector": "4.2.1", - "react-responsive": "1.3.0", - "react-router": "4.1.1", - "react-router-dom": "4.2.2", - "react-scroll-up": "1.3.0", - "react-select": "1.3.0", - "react-selectize": "3.0.1", - "react-share": "1.15.1", - "react-side-effect": "1.1.0", - "react-sidebar": "2.3.2", - "react-spinkit": "2.1.2", - "react-swipeable": "5.5.1", - "react-swipeable-views": "0.12.2", - "react-textfit": "1.1.0", - "react-twitter-widgets": "1.3.0", - "react-widgets": "3.5.0", - "recharts": "0.22.4", - "recompose": "0.24.0", - "redux": "3.6.0", - "redux-logger": "3.0.6", - "redux-observable": "0.19.0", - "redux-thunk": "0.1.0", - "redux-undo": "0.5.0", - "reselect": "4.0.0", - "resize-observer-polyfill": "1.5.0", - "rxjs": "5.1.1", - "screenfull": "4.0.0", - "shpjs": "3.4.2", - "stickybits": "3.6.6", - "tinycolor2": "1.4.1", - "turf-bbox": "3.0.10", - "turf-buffer": "3.0.10", - "turf-intersect": "3.0.10", - "turf-point": "2.0.1", - "turf-point-on-surface": "3.0.10", - "turf-union": "3.0.10", - "url": "0.11.0", - "uuid": "3.0.1", - "vis": "4.21.0", - "w3c-schemas": "1.3.1", - "webfontloader": "1.6.28", - "wellknown": "0.5.0", - "xml2js": "0.4.17", - "xmldom": "0.3.0", - "xpath": "0.0.27" + "mapstore": "file:MapStore2" } } diff --git a/geonode_mapstore_client/client/postCompile.js b/geonode_mapstore_client/client/postCompile.js new file mode 100644 index 0000000000..b6f54608a9 --- /dev/null +++ b/geonode_mapstore_client/client/postCompile.js @@ -0,0 +1,22 @@ + +const fs = require('fs'); +const childProcess = require('child_process'); + +const packageJSONPath = './package.json'; +const rootPackageJSONPath = '../../package.json'; + +// copy dependencies to root package + +const packageJSON = require(packageJSONPath); +const rootPackageJSON = require(rootPackageJSONPath); + +const mapStoreCommit = childProcess + .execSync('git rev-parse @:./MapStore2') + .toString().trim(); + +const mapStorePackage = `git+https://github.com/geosolutions-it/MapStore2.git#${mapStoreCommit}`; + +rootPackageJSON.dependencies = JSON.parse(JSON.stringify(packageJSON.dependencies)); +rootPackageJSON.dependencies.mapstore = mapStorePackage; + +fs.writeFileSync(rootPackageJSONPath, JSON.stringify(rootPackageJSON, null, 2), 'utf8'); diff --git a/geonode_mapstore_client/client/prod-webpack.config.js b/geonode_mapstore_client/client/prod-webpack.config.js deleted file mode 100644 index 21cc08be03..0000000000 --- a/geonode_mapstore_client/client/prod-webpack.config.js +++ /dev/null @@ -1,29 +0,0 @@ -const path = require("path"); - -const themeEntries = { - "themes/default": path.join(__dirname, "themes", "default", "theme.less"), - "themes/preview": path.join(__dirname, "themes", "preview", "theme.less") -}; -const extractThemesPlugin = require('./MapStore2/build/themes.js').extractThemesPlugin; - -module.exports = require('./MapStore2/build/buildConfig')( - { - 'ms2-geonode-api': path.join(__dirname, "js", "api") - }, - themeEntries, - { - base: __dirname, - dist: path.join(__dirname, "../static/mapstore/dist"), - framework: path.join(__dirname, "MapStore2", "web", "client"), - code: [path.join(__dirname, "js"), path.join(__dirname, "MapStore2", "web", "client")] - }, - extractThemesPlugin, - true, - "/static/mapstore/dist/", - '.msgapi', - [], - { - '@js': path.join(__dirname, 'js'), - '@mapstore/framework': path.join(__dirname, 'MapStore2', 'web', 'client') - } -); diff --git a/geonode_mapstore_client/client/static/mapstore/translations/data.de-DE.json b/geonode_mapstore_client/client/static/mapstore/translations/data.de-DE.json new file mode 100644 index 0000000000..52097bcf5b --- /dev/null +++ b/geonode_mapstore_client/client/static/mapstore/translations/data.de-DE.json @@ -0,0 +1,4 @@ +{ + "locale": "de-DE", + "messages": {} +} diff --git a/geonode_mapstore_client/client/static/mapstore/translations/data.en-US.json b/geonode_mapstore_client/client/static/mapstore/translations/data.en-US.json new file mode 100644 index 0000000000..509fd4e2eb --- /dev/null +++ b/geonode_mapstore_client/client/static/mapstore/translations/data.en-US.json @@ -0,0 +1,4 @@ +{ + "locale": "en-US", + "messages": {} +} diff --git a/geonode_mapstore_client/client/static/mapstore/translations/data.es-ES.json b/geonode_mapstore_client/client/static/mapstore/translations/data.es-ES.json new file mode 100644 index 0000000000..9590e6afb4 --- /dev/null +++ b/geonode_mapstore_client/client/static/mapstore/translations/data.es-ES.json @@ -0,0 +1,4 @@ +{ + "locale": "es-ES", + "messages": {} +} diff --git a/geonode_mapstore_client/client/static/mapstore/translations/data.fr-FR.json b/geonode_mapstore_client/client/static/mapstore/translations/data.fr-FR.json new file mode 100644 index 0000000000..733e3effd4 --- /dev/null +++ b/geonode_mapstore_client/client/static/mapstore/translations/data.fr-FR.json @@ -0,0 +1,4 @@ +{ + "locale": "fr-FR", + "messages": {} +} diff --git a/geonode_mapstore_client/client/static/mapstore/translations/data.it-IT.json b/geonode_mapstore_client/client/static/mapstore/translations/data.it-IT.json new file mode 100644 index 0000000000..12800e25e2 --- /dev/null +++ b/geonode_mapstore_client/client/static/mapstore/translations/data.it-IT.json @@ -0,0 +1,4 @@ +{ + "locale": "it-IT", + "messages": {} +} diff --git a/geonode_mapstore_client/client/tests.webpack.js b/geonode_mapstore_client/client/tests.webpack.js deleted file mode 100644 index 189971c09e..0000000000 --- a/geonode_mapstore_client/client/tests.webpack.js +++ /dev/null @@ -1,3 +0,0 @@ -var context = require.context('./js', true, /-test\.jsx?$/); -context.keys().forEach(context); -module.exports = context; diff --git a/geonode_mapstore_client/client/themes/default/theme.less b/geonode_mapstore_client/client/themes/default/theme.less index d137c41b97..a669bae23a 100644 --- a/geonode_mapstore_client/client/themes/default/theme.less +++ b/geonode_mapstore_client/client/themes/default/theme.less @@ -1,4 +1,4 @@ -@ms2-path: "../../MapStore2/web/client/themes/default"; +@ms2-path: "~mapstore/web/client/themes/default"; @import "@{ms2-path}/base.less"; @import "@{ms2-path}/icons.less"; diff --git a/geonode_mapstore_client/client/themes/preview/less/geonode.less b/geonode_mapstore_client/client/themes/preview/less/geonode.less index 6c891dabd1..6dc19c275a 100644 --- a/geonode_mapstore_client/client/themes/preview/less/geonode.less +++ b/geonode_mapstore_client/client/themes/preview/less/geonode.less @@ -21,7 +21,7 @@ @icon-size: 18px; @padding-left-square: floor(@icon-size/@icon-margin-ratio); @square-btn-size: @padding-left-square * 2 + @icon-size; - @import (multiple) "../../../MapStore2/web/client/themes/default/ms2-theme.less"; + @import (multiple) "~mapstore/web/client/themes/default/ms2-theme.less"; #mapstore-navbar-container{ height: @square-btn-size; width: @square-btn-size; diff --git a/geonode_mapstore_client/client/themes/preview/theme.less b/geonode_mapstore_client/client/themes/preview/theme.less index 4abec8a775..722ef439c7 100644 --- a/geonode_mapstore_client/client/themes/preview/theme.less +++ b/geonode_mapstore_client/client/themes/preview/theme.less @@ -1,4 +1,4 @@ -@ms2-path: "../../MapStore2/web/client/themes/default"; +@ms2-path: "~mapstore/web/client/themes/default"; @import "@{ms2-path}/base.less"; @import "@{ms2-path}/icons.less"; diff --git a/geonode_mapstore_client/client/version.txt b/geonode_mapstore_client/client/version.txt index e21008e78f..5a079bbf0c 100644 --- a/geonode_mapstore_client/client/version.txt +++ b/geonode_mapstore_client/client/version.txt @@ -1 +1 @@ -ms2-geonode-api-2.0.2 \ No newline at end of file +geonode-mapstore-client-v0.0.6-c965a7da47a438212ea26625812f16d452c2653a \ No newline at end of file diff --git a/geonode_mapstore_client/client/webpack.config.js b/geonode_mapstore_client/client/webpack.config.js deleted file mode 100644 index 566be20f14..0000000000 --- a/geonode_mapstore_client/client/webpack.config.js +++ /dev/null @@ -1,89 +0,0 @@ -const path = require('path'); -const assign = require('object-assign'); - -const themeEntries = { - 'themes/default': path.join(__dirname, 'themes', 'default', 'theme.less'), - 'themes/preview': path.join(__dirname, 'themes', 'preview', 'theme.less') -}; -const extractThemesPlugin = require('./MapStore2/build/themes.js').extractThemesPlugin; - -const envJson = require('./env.json'); - -const DEV_SERVER_HOST = envJson.DEV_SERVER_HOST || 'ERROR:INSERT_DEV_SERVER_HOST_IN_ENV_JSON_CONFIG! eg: my-geonode-host.org'; -const protocol = envJson.DEV_SERVER_HOST_PROTOCOL || 'http'; - -module.exports = assign({}, require('./MapStore2/build/buildConfig')( - { - 'ms2-geonode-api': path.join(__dirname, 'js', 'api') - }, - themeEntries, - { - base: __dirname, - dist: path.join(__dirname, 'dist'), - framework: path.join(__dirname, 'MapStore2', 'web', 'client'), - code: [path.join(__dirname, 'js'), path.join(__dirname, 'MapStore2', 'web', 'client')] - }, - extractThemesPlugin, - false, - `/static/mapstore/dist/`, - '.msgapi', - [], - { - '@js': path.join(__dirname, 'js'), - '@mapstore/framework': path.join(__dirname, 'MapStore2', 'web', 'client') - } -), { - devServer: { - https: protocol === 'https' ? true : false, - headers: { - 'Access-Control-Allow-Origin': '*' - }, - contentBase: [ - path.join(__dirname), - path.join(__dirname, '..', 'static') - ], - before: function(app) { - const hashRegex = /\.[a-zA-Z0-9]{1,}\.js/; - app.use(function(req, res, next) { - // remove hash from requests to use the local js - if (req.url.indexOf('/static/geonode/js/ms2/utils/') !== -1 - || req.url.indexOf('/ms2-geonode-api') !== -1) { - req.url = req.url.replace(hashRegex, '.js'); - req.path = req.path.replace(hashRegex, '.js'); - req.originalUrl = req.originalUrl.replace(hashRegex, '.js'); - } - next(); - }); - }, - proxy: [ - { - context: [ - '**', - '!**/static/mapstore/**', - '!**/static/geonode/js/ms2/utils/**', - '!**/geonode/js/ms2/utils/**', - '!**/MapStore2/**', - '!**/node_modules/**' - ], - target: `${protocol}://${DEV_SERVER_HOST}`, - headers: { - Host: DEV_SERVER_HOST, - Referer: `${protocol}://${DEV_SERVER_HOST}/` - } - }, - { - context: [ - '/static/mapstore/MapStore2/web/client/**', - '/static/geonode/js/ms2/utils/**' - ], - target: `${protocol}://localhost:8081`, - secure: false, - changeOrigin: true, - pathRewrite: { - '/static/mapstore/MapStore2/web/client/': '/MapStore2/web/client/translations/', - '/static/geonode/js/ms2/utils/': '/geonode/js/ms2/utils/' - } - } - ] - } -}); diff --git a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js index 999707fac1..74f1b350b2 100644 --- a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js +++ b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_base_plugins.js @@ -14,6 +14,11 @@ var MS2_BASE_PLUGINS = { "altShiftDragRotate": false } } + }, + "toolsOptions": { + "locate": { + // "maxZoom": 5 use a custom max zoom + } } } }, diff --git a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_embed_plugins.js b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_embed_plugins.js index 0ac229c415..50d762f0ee 100644 --- a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_embed_plugins.js +++ b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_embed_plugins.js @@ -54,6 +54,8 @@ var MS2_EMBED_PLUGINS = { "Widgets", "WidgetsTray", "Notifications", - "SearchServicesConfig" + "SearchServicesConfig", + { "name": "Swipe" }, + { "name": "Locate" } ] } \ No newline at end of file diff --git a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_viewer_plugins.js b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_viewer_plugins.js index 3fd91a0d34..dca42a754c 100644 --- a/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_viewer_plugins.js +++ b/geonode_mapstore_client/static/geonode/js/ms2/utils/ms2_map_viewer_plugins.js @@ -169,6 +169,8 @@ var MS2_MAP_PLUGINS = { "Notifications", "Timeline", "Playback", - "SearchServicesConfig" + "SearchServicesConfig", + { "name": "Swipe" }, + { "name": "Locate" } ] } diff --git a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_edit.html b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_edit.html index 6d1afa0c74..28f7d03bf7 100644 --- a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_edit.html +++ b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_edit.html @@ -32,7 +32,7 @@ "access_token": accessToken } MS2_PLUGINS = window.squashMS2PlugCfg(MS2_BASE_PLUGINS, MS2_MAP_PLUGINS, MS2_EDIT_PLUGINS); - MS2_PLUGINS = window.excludeMS2Plugins(MS2_PLUGINS, ["Save", "SaveAs","WidgetsBuilder","Widgets"]); + MS2_PLUGINS = window.excludeMS2Plugins(MS2_PLUGINS, ["Save", "SaveAs","WidgetsBuilder","Widgets", "Swipe", "Locate"]); MS2_PLUGINS["mobile"] = MS2_PLUGINS.desktop; let localConfig = defaultConfig.localConfig; initMapstore2Api('edit', function(MapStore2, options) { diff --git a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_style_edit.html b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_style_edit.html index 91163f38fb..ab25929c6f 100644 --- a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_style_edit.html +++ b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_style_edit.html @@ -46,7 +46,7 @@ } } MS2_PLUGINS.desktop.push(stylerCfg); - MS2_PLUGINS = window.excludeMS2Plugins(MS2_PLUGINS, ["Save", "SaveAs", "Widgets", "WidgetsBuilder"]); + MS2_PLUGINS = window.excludeMS2Plugins(MS2_PLUGINS, ["Save", "SaveAs", "Widgets", "WidgetsBuilder", "Swipe", "Locate"]); MS2_PLUGINS["mobile"] = MS2_PLUGINS.desktop; let localConfig = defaultConfig.localConfig; initMapstore2Api('edit', function(MapStore2, options) { diff --git a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_view.html b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_view.html index 182d5e1546..1f7d12a034 100644 --- a/geonode_mapstore_client/templates/geonode-mapstore-client/layer_view.html +++ b/geonode_mapstore_client/templates/geonode-mapstore-client/layer_view.html @@ -46,7 +46,7 @@ } } MS2_PLUGINS.desktop.push(stylerCfg); - MS2_PLUGINS = window.excludeMS2Plugins(MS2_PLUGINS, ["Save", "SaveAs", "Widgets", "WidgetsBuilder"]); + MS2_PLUGINS = window.excludeMS2Plugins(MS2_PLUGINS, ["Save", "SaveAs", "Widgets", "WidgetsBuilder", "Swipe", "Locate"]); MS2_PLUGINS["mobile"] = MS2_PLUGINS.desktop; let localConfig = defaultConfig.localConfig; initMapstore2Api('edit', function(MapStore2, options) { diff --git a/package.json b/package.json new file mode 100644 index 0000000000..4c2c74eefe --- /dev/null +++ b/package.json @@ -0,0 +1,12 @@ +{ + "name": "geonode-mapstore-client", + "version": "1.0.0", + "description": "", + "scripts": {}, + "author": "GeoSolutions", + "license": "BSD-2-Clause", + "devDependencies": {}, + "dependencies": { + "mapstore": "git+https://github.com/geosolutions-it/MapStore2.git#3cac29f044649a1ab3da576bacdb20951ae6635e" + } +} \ No newline at end of file From b8e1ea99f64b4c9f04216d6fc0956f56a907594c Mon Sep 17 00:00:00 2001 From: allyoucanmap Date: Wed, 11 Nov 2020 10:44:35 +0100 Subject: [PATCH 2/3] update client bundle --- geonode_mapstore_client/client/version.txt | 2 +- .../MapStore2/web/client/data.nl-NL.json | 1770 --------- ...unk.js => 0.77463e34d36870e03dfd.chunk.js} | 0 .../dist/1.77463e34d36870e03dfd.chunk.js | 1 + .../dist/10.77463e34d36870e03dfd.chunk.js | 1 + .../dist/11.77463e34d36870e03dfd.chunk.js | 7 + .../dist/12.77463e34d36870e03dfd.chunk.js | 86 + .../dist/13.77463e34d36870e03dfd.chunk.js | 1 + .../dist/13.a4f6534862100dbe4d18.chunk.js | 1 - .../dist/14.77463e34d36870e03dfd.chunk.js | 1 + .../dist/15.77463e34d36870e03dfd.chunk.js | 1 + .../dist/15.a4f6534862100dbe4d18.chunk.js | 1 - .../dist/16.77463e34d36870e03dfd.chunk.js | 1 + .../dist/16.a4f6534862100dbe4d18.chunk.js | 1 - .../dist/17.77463e34d36870e03dfd.chunk.js | 1 + .../dist/18.77463e34d36870e03dfd.chunk.js | 1 + .../dist/19.77463e34d36870e03dfd.chunk.js | 7 + .../dist/2.77463e34d36870e03dfd.chunk.js | 1 + .../dist/2.a4f6534862100dbe4d18.chunk.js | 92 - ...nk.js => 20.77463e34d36870e03dfd.chunk.js} | 2 +- .../dist/21.77463e34d36870e03dfd.chunk.js | 1 + .../dist/22.77463e34d36870e03dfd.chunk.js | 1 + ...nk.js => 23.77463e34d36870e03dfd.chunk.js} | 2 +- ...nk.js => 24.77463e34d36870e03dfd.chunk.js} | 2 +- ...nk.js => 25.77463e34d36870e03dfd.chunk.js} | 2 +- .../dist/26.77463e34d36870e03dfd.chunk.js | 1 + .../dist/27.77463e34d36870e03dfd.chunk.js | 1 + .../dist/3.77463e34d36870e03dfd.chunk.js | 1 + .../dist/3.a4f6534862100dbe4d18.chunk.js | 1 - .../dist/4.77463e34d36870e03dfd.chunk.js | 1 + ...unk.js => 5.77463e34d36870e03dfd.chunk.js} | 2 +- ...unk.js => 6.77463e34d36870e03dfd.chunk.js} | 2 +- .../dist/6.a4f6534862100dbe4d18.chunk.js | 95 - .../dist/7.77463e34d36870e03dfd.chunk.js | 1 + .../dist/7.a4f6534862100dbe4d18.chunk.js | 1 - ...unk.js => 8.77463e34d36870e03dfd.chunk.js} | 2 +- .../dist/8.a4f6534862100dbe4d18.chunk.js | 1 - .../dist/9.77463e34d36870e03dfd.chunk.js | 186 + .../dist/9.a4f6534862100dbe4d18.chunk.js | 1 - .../static/mapstore/dist/icons.eot | Bin 79608 -> 80868 bytes .../static/mapstore/dist/icons.svg | 464 +-- .../static/mapstore/dist/icons.ttf | Bin 79452 -> 80712 bytes .../static/mapstore/dist/ms2-geonode-api.js | 24 +- .../static/mapstore/dist/themes/default.css | 1859 +++++++--- .../static/mapstore/dist/themes/preview.css | 2886 +++++++++++---- ...pdfjsWorker.77463e34d36870e03dfd.chunk.js} | 0 .../mapstore/dist/webpack-dev-server.js | 1 - .../static/mapstore/dist/webpack.js | 1 - .../mapstore/gn-translations/data.de-DE.json | 4 + .../mapstore/gn-translations/data.en-US.json | 4 + .../mapstore/gn-translations/data.es-ES.json | 4 + .../mapstore/gn-translations/data.fr-FR.json | 4 + .../mapstore/gn-translations/data.it-IT.json | 4 + .../data.de-DE.json | 101 +- .../data.en-US.json | 99 +- .../data.es-ES.json | 93 +- .../data.fi-FI.json | 15 +- .../data.fr-FR.json | 103 +- .../data.hr-HR.json | 4 +- .../data.it-IT.json | 95 +- .../mapstore/ms-translations/data.nl-NL.json | 3198 +++++++++++++++++ .../data.pt-PT.json | 4 +- .../data.vi-VN.json | 4 +- .../data.zh-ZH.json | 4 +- .../fragments/cookie/cookieDetails-de-DE.html | 0 .../fragments/cookie/cookieDetails-en-PT.html | 0 .../fragments/cookie/cookieDetails-en-US.html | 0 .../fragments/cookie/cookieDetails-es-ES.html | 0 .../fragments/cookie/cookieDetails-fi-FI.html | 0 .../fragments/cookie/cookieDetails-fr-FR.html | 0 .../fragments/cookie/cookieDetails-hr-HR.html | 0 .../fragments/cookie/cookieDetails-it-IT.html | 0 .../fragments/cookie/cookieDetails-nl-NL.html | 0 .../fragments/cookie/cookieDetails-vi-VN.html | 0 .../fragments/cookie/cookieDetails-zh-ZH.html | 0 .../static/mapstore/version.txt | 1 + 76 files changed, 7860 insertions(+), 3398 deletions(-) delete mode 100644 geonode_mapstore_client/static/mapstore/MapStore2/web/client/data.nl-NL.json rename geonode_mapstore_client/static/mapstore/dist/{0.a4f6534862100dbe4d18.chunk.js => 0.77463e34d36870e03dfd.chunk.js} (100%) create mode 100644 geonode_mapstore_client/static/mapstore/dist/1.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/10.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/11.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/12.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/13.77463e34d36870e03dfd.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/13.a4f6534862100dbe4d18.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/14.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/15.77463e34d36870e03dfd.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/15.a4f6534862100dbe4d18.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/16.77463e34d36870e03dfd.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/16.a4f6534862100dbe4d18.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/17.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/18.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/19.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/2.77463e34d36870e03dfd.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/2.a4f6534862100dbe4d18.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{10.a4f6534862100dbe4d18.chunk.js => 20.77463e34d36870e03dfd.chunk.js} (99%) create mode 100644 geonode_mapstore_client/static/mapstore/dist/21.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/22.77463e34d36870e03dfd.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{11.a4f6534862100dbe4d18.chunk.js => 23.77463e34d36870e03dfd.chunk.js} (98%) rename geonode_mapstore_client/static/mapstore/dist/{12.a4f6534862100dbe4d18.chunk.js => 24.77463e34d36870e03dfd.chunk.js} (90%) rename geonode_mapstore_client/static/mapstore/dist/{14.a4f6534862100dbe4d18.chunk.js => 25.77463e34d36870e03dfd.chunk.js} (99%) create mode 100644 geonode_mapstore_client/static/mapstore/dist/26.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/27.77463e34d36870e03dfd.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/3.77463e34d36870e03dfd.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/3.a4f6534862100dbe4d18.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/4.77463e34d36870e03dfd.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{1.a4f6534862100dbe4d18.chunk.js => 5.77463e34d36870e03dfd.chunk.js} (98%) rename geonode_mapstore_client/static/mapstore/dist/{4.a4f6534862100dbe4d18.chunk.js => 6.77463e34d36870e03dfd.chunk.js} (99%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/6.a4f6534862100dbe4d18.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/7.77463e34d36870e03dfd.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/7.a4f6534862100dbe4d18.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{5.a4f6534862100dbe4d18.chunk.js => 8.77463e34d36870e03dfd.chunk.js} (91%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/8.a4f6534862100dbe4d18.chunk.js create mode 100644 geonode_mapstore_client/static/mapstore/dist/9.77463e34d36870e03dfd.chunk.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/9.a4f6534862100dbe4d18.chunk.js rename geonode_mapstore_client/static/mapstore/dist/{vendors~pdfjsWorker.a4f6534862100dbe4d18.chunk.js => vendors~pdfjsWorker.77463e34d36870e03dfd.chunk.js} (100%) delete mode 100644 geonode_mapstore_client/static/mapstore/dist/webpack-dev-server.js delete mode 100644 geonode_mapstore_client/static/mapstore/dist/webpack.js create mode 100644 geonode_mapstore_client/static/mapstore/gn-translations/data.de-DE.json create mode 100644 geonode_mapstore_client/static/mapstore/gn-translations/data.en-US.json create mode 100644 geonode_mapstore_client/static/mapstore/gn-translations/data.es-ES.json create mode 100644 geonode_mapstore_client/static/mapstore/gn-translations/data.fr-FR.json create mode 100644 geonode_mapstore_client/static/mapstore/gn-translations/data.it-IT.json rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.de-DE.json (97%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.en-US.json (97%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.es-ES.json (97%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.fi-FI.json (99%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.fr-FR.json (97%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.hr-HR.json (99%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.it-IT.json (97%) create mode 100644 geonode_mapstore_client/static/mapstore/ms-translations/data.nl-NL.json rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.pt-PT.json (99%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.vi-VN.json (99%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/data.zh-ZH.json (99%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-de-DE.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-en-PT.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-en-US.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-es-ES.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-fi-FI.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-fr-FR.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-hr-HR.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-it-IT.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-nl-NL.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-vi-VN.html (100%) rename geonode_mapstore_client/static/mapstore/{MapStore2/web/client => ms-translations}/fragments/cookie/cookieDetails-zh-ZH.html (100%) create mode 100644 geonode_mapstore_client/static/mapstore/version.txt diff --git a/geonode_mapstore_client/client/version.txt b/geonode_mapstore_client/client/version.txt index 5a079bbf0c..68b2427a9d 100644 --- a/geonode_mapstore_client/client/version.txt +++ b/geonode_mapstore_client/client/version.txt @@ -1 +1 @@ -geonode-mapstore-client-v0.0.6-c965a7da47a438212ea26625812f16d452c2653a \ No newline at end of file +geonode-mapstore-client-v0.0.6-7f4ae17bfa48ab86f16e32374df2f936d74a7f24 \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/MapStore2/web/client/data.nl-NL.json b/geonode_mapstore_client/static/mapstore/MapStore2/web/client/data.nl-NL.json deleted file mode 100644 index 1b2a5b1b30..0000000000 --- a/geonode_mapstore_client/static/mapstore/MapStore2/web/client/data.nl-NL.json +++ /dev/null @@ -1,1770 +0,0 @@ -{ - "locale": "nl-NL", - "messages": { - "Language": "Taal", - "msgId0": "{name} heeft op {takenDate, date, long} {numPhotos, plural, =0 {geen foto's} =1 {een foto} other {# foto's}} genomen.", - "htmlTest": "{name} {surname}", - "about_title": "Info over deze app...", - "aboutLbl": "Meer info", - "about_p0-0": "MapStore is een framework dat het mogelijk maakt cartografische webtoepassingen te ontwikkelen met behulp van de standaard libraries zoals", - "about_p0-1": "en", - "about_p1": "MapStore heeft meerdere toepassingsvoorbeelden:", - "about_ul0_li0": "MapViewer is een eenvoudige viewer van gepreconfigureerde kaarten (optioneel opgeslagen in een GeoStore database)", - "about_ul0_li1": "MapPublisher is ontwikkeld om op een eenvoudige en intuïtieve manier kaarten en assemblages te maken, te bewaren en te delen. Kaarten op basis van inhoud van van servers zoals OpenStreetMap, Google Maps, MapQuest en iedere andere specifieke server van uw of van een andere organisatie. Voor meer informatie: ", - "about_h20": "Licentie", - "about_p3": "MapStore is open source software, gebaseerd op OpenLayers, Leaflet and ReactJS, en is beschikbaar onder Simplified BSD License.", - "about_p5-0": "Voor meer informatie, zie", - "about_a0": "deze", - "about_p5-1": "bladzijde.", - "about_h21": "Credits", - "about_p6": "MapStore ontwikkeld door:", - "enable": "Activeren", - "layers": "Lagen", - "warning": "Opgepast", - "errorTitleDefault": "Error", - "errorDefault": "An error occurred", - "pageInfoShowMore": "Results {count} of {total}", - "showMore": "Show more...", - "collapse": "Collapse", - "expand": "Expand", - "Forbidden": "Forbidden", - "version": { - "label": "Versie" - }, - "autorefresh": { - "of": "van", - "updating": "Wordt bijgewerkt...", - "layers": "lagen" - }, - "localeErrors": { - "404": "Vertaalbestand niet gevonden" - }, - "details": { - "title": "About this map" - }, - "showEmptyMessageGFI": "Show empty results message in GetFeatureInfo panel", - "remove": "Delete", - "layerProperties": { - "windowTitle": "Eigenschappen van de laag", - "title": "Titel", - "name": "Naam", - "group": "Groep", - "general": "Algemeen", - "display": "Weergave", - "style": "Stijl", - "transparent": "Transparant", - "singleTile": "Single Tile", - "cached": "Gebruik cache-opties", - "styleCustom": "Gebruik een stijl genaamd \"{value} \"", - "styleListLoadError": "Er is een fout opgetreden bij het laden van de lijst met stijlen", - "stylesRefreshList": "Vernieuw de lijst met stijlen", - "format": "Formaat", - "delete": "Wissen", - "deleteLayer":"Verwijder de laag", - "deleteLayerMessage": "Weet u zeker dat u deze laag wilt verwijderen?", - "deleteLayerGroup":"Groep verwijderen", - "deleteLayerGroupMessage": "Wilt u deze groep en alle lagen ervan echt verwijderen?", - "confirmDelete": "Bent u zeker?", - "featureTypeError": "De atributen van de laag kunnen niet geladen worden", - "featureTypeErrorInvalidJSON": "Cannot load layer attributes. Response is not valid", - "elevation": "hoogte", - "titleTranslations": "Title translations", - "groupProperties": "Groep properties", - "featureInfo": "Feature Info", - "featureInfoFormatLbl": "Informatie, formaat van het antwoord", - "legenderror": "Het legende is niet berijkbaar", - "editCustomFormat": "Edit custom format", - "exampleOfResponse": "Example", - "changedSettings": "Changed Settings", - "changedSettingsAlert": "You are closing the settings panel without save your changes", - "textFormatTitle": "TEXT", - "textFormatDescription": "Shows feature info results as plain text", - "htmlFormatTitle": "HTML", - "htmlFormatDescription": "Shows feature info results as html", - "propertiesFormatTitle": "PROPERTIES", - "propertiesFormatDescription": "Shows feature info results as properties list", - "templateFormatTitle": "TEMPLATE", - "templateFormatDescription": "Customize feature info results format", - "templateFormatInfoAlert1": "Click on edit button to add a new template.", - "templateFormatInfoAlert2": "Use ${ attribute } to wrap the properties you need to display", - "templateFormatInfoAlertExample": "The id of the feature is ${ properties }", - "templatePreview": "Template preview", - "tooltip": { - "label": "Tooltip", - "title": "Title", - "description": "Description", - "both": "Title and Description", - "none": "No Tooltip", - "labelPlacement": "Tooltip placement", - "right": "Right", - "bottom": "Bottom", - "top": "Top" - } - }, - "longitude": "Longitude", - "latitude": "Latitude", - "notification": { - "update": "Bijwerken", - "warning": "Waarschuwing", - "success": "Geslaagd", - "backgroundLayerNotSupported": "De eerder geselecteerde achtergrond wordt niet ondersteund voor dit type kaart. De eerst beschikbare wordt vervolgens gebruikt.", - "noBackgroundLayerSupported": "Er is geen achtergrondlaag ondersteund voor dit type kaart.", - "updateOldMap": "Dit is een oude kaart, dus niet alle functionaliteiten kunnen worden ingeschakeld. Klik op de knop Bijwerken om de kaart bij te werken of sluit deze melding als u deze niet wilt bijwerken.", - "warningSaveUpdatedMap": "Sommige lagen zijn niet correct bijgewerkt", - "saveUpdatedMap": "Alle lagen zijn succesvol bijgewerkt", - "incompatibleBackgroundAndProjection":"The Projection you selected is not compatible with background, switch to a compatible -or an empty- background, then select this projection!", - "incompatibleDataAndProjection":"the current layer and map projection are not completely compatible. Parts or all of the data might not appear in the map" - }, - "dock": { - "row": "{rowsSelected} geselecteerde lijn", - "rows": "{rowsSelected} geselecteerde lijnen" - }, - "globeswitcher": { - "tooltipDeactivate": "Verlaat de 3D-modus", - "tooltipActivate": "Ga naar de 3D-modus" - }, - "cookie":{ - "info": "Deze website maakt gebruik van cookies om uw ervaring te verbeteren. We gaan ervan uit dat je hiermee akkoord gaat, maar je kunt er van afzien als je dat wilt.", - "moreDetailsButton": "Meer details", - "leave": "Verlaten", - "accept": "Aanvaarden" - }, - "background": "Achtergrondkaart", - "language": "Taal", - "mousePositionCoordinates": "Coördinaten", - "mouseCoordinates": "Coördinaten:", - "mousePositionCRS": "CRS:", - "mousePositionElevation": "Elev.:", - "mousePositionNoElevation": "N/A", - "elevationLoading": "Loading...", - "elevationLoadingError": "Error", - "elevationNotAvailable": "N/A", - "mapScale": "Schaal:", - "showMousePositionCoordinates": "Toon de coördinaten", - "showCrsSelector": "Select projection", - "crsSelectorFilterPlaceholder": "Filter projection", - "crsSelectorSelectedCRS": "Selected:", - "menu": "Menu", - "options": "Opties", - "settings": "Instellingen", - "help": "Help", - "docs": "Docs", - "gohome": "Terug", - "back": "Back to the Importer", - "printbutton": "Afdrukken", - "annotationsbutton": "Annotations", - "noresultfound": "Geen enkel resultaat gevonden", - "save": "Opslaan", - "saveAs": "Opslaan als", - "opacity": "Transparantie", - "elevation": "Hoogte", - "close": "Sluiten", - "cancel": "Annuleren", - "no": "No", - "yes": "Yes", - "confirm": "Bevestigen", - "confirmTitle": "Kunt u bevestigen?", - "pageInfo": "{total, plural, =0 {geen enkel item} =1 {{total} item van de {total}} other {{start}-{end} items van de {total}}}", - "loading": "Bezig met laden...", - "group": "Groep", - "groups": "Groepen", - "permission": "Permissie", - "permissions": "Permissies", - "global": { - "colors": { - "red": "{number, plural, =0 {Rouge} =1 {Rouge} other {rouges}}", - "blue": "{number, plural, =0 {Bleu} =1 {Bleu} other {Bleus}}", - "green": "{number, plural, =0 {Vert} =1 {Vert} other {Verts}}", - "gray": "{number, plural, =0 {Gray} =1 {Gray} other {Grays}}", - "jet": "{number, plural, =0 {Jet} =1 {Jet} other {Jet}}", - "brown": "{number, plural, =0 {Brun} =1 {Brun} other {Bruns}}", - "purple": "{number, plural, =0 {Pourpre} =1 {Pourpre} other {Pourpre}}", - "random": "{number, plural, =0 {Random} =1 {Random} other {Random}}" - } - }, - "home":{ - "open": "Openen", - "shortDescription": "Modern webmapping with OpenLayers, Leaflet and React
visit the documentation page", - "forkMeOnGitHub": "Fork me on GitHub", - "description": "MapStore is ontwikkeld om op een eenvoudige en intuïtieve manier kaarten en assemblages te maken, te bewaren en te delen. Kaarten op basis van inhoud van van servers zoals OpenStreetMap, Google Maps, MapQuest en iedere andere specifieke server van uw of van een andere organisatie.
Bezoek onze homepage voor meer detail.", - "Applications": "Toepassingen", - "Examples": "Voorbeelden", - "LinkedinGroup": "Mapstore Linkedin groep", - "scrollTop": "Terug naar boven", - "footerDescription": "GeoSolutions S.a.s. | Via di Montramito 3/A, 55054 Massarosa (Lucca) - Italy info@geo-solutions.it | Tel: +39 0584 962313 | Fax: +39 0584 1660272", - "ml": { - "title": "Blijf op de hoogte van de laatste ontwikkelingen via mailinglijsten", - "subscribe_users": "Abonneer u op de gebruikers mailinglijsten", - "subscribe_devel": "Abonneer je op de mailinglijsten van ontwikkelaars", - "visit_group": "Ga naar deze groep", - "subscribe": "Abonneren", - "email": "E-mail:" - }, - "examples":{ - "viewer":{ - "html":"

Viewer

Eenvoudige viewer

" - }, - "3dviewer":{ - "html":"

3D viewer

Eenvoudige 3D viewer gebaseerd op CesiumJS

" - }, - "manager":{ - "html":"

Beheerder

De Mapstore-kaarten doorbladeren

" - }, - "mouseposition":{ - "html":"

Positie muis

Specifiek voorbeeld

" - }, - "scalebar":{ - "html":"

Schaalbalk

Specifiek voorbeeld

" - }, - "layertree":{ - "html":"

Geavanceerde boom van de lagen

Specifiek voorbeeld

" - }, - "queryform":{ - "html":"

Query builder

Specifiek voorbeeld

" - }, - "featuregrid":{ - "html":"

Raster van de objecten

Specifiek voorbeeld

" - }, - "print":{ - "html":"

Afdrukken

Specifiek voorbeeld

" - }, - "plugins":{ - "html":"

Plugins

Uw eigen applicatie opbouwen

" - }, - "api":{ - "html":"

API

Gebruik API's om een MapStore-kaart in uw applicatie op te nemen

" - }, - "rasterstyler":{ - "html":"

Beeldweergave

Uw beeldlaag weergeven

" - } - } - }, - "cookiesPolicyNotification": { - "title": "Deze site maakt gebruik van cookies", - "message": "Door onze website te blijven gebruiken, gaat u akkoord met ons gebruik van cookies.", - "confirm": "akkoord" - }, - "manager": { - "openInANewTab":"Kaart openen", - "deleteMap":"Kaart verwijderen", - "deleteMapMessage": "Wilt u deze kaart verwijderen?", - "editMapMetadata":"De eigenschappen van de kaart wijzigen", - "mapTypes_combo": "De kaart-viewer kiezen: ", - "theme_combo": "Kies een thema:", - "maps_title": "Kaarten", - "locales_combo": "Taal:", - "featuredMaps": "Featured Maps" - }, - "newMap": "Nieuwe kaart", - "maps": { - "title": "Maps", - "addToFeaturedMaps": "Add to featured maps", - "removeFromFeaturedMaps": "Remove from featured maps", - "feedback": { - "noDetailsAvailable": "Details not available", - "successSavedMap": "The map has been created correctly", - "errorDeletingMap": "Error when deleting this map", - "errorDeletingThumbnailOfMap": "Error when deleting thumbnail for this map", - "errorDeletingDetailsOfMap": "Error when deleting details for this map", - "allResDeleted": "All resources associated with this map have been deleted successfully", - "errorFetchingDetailsOfMap": "Error when fetching details for this map", - "details": { - "deletedSuccesfully": "The details have been removed correctly", - "savedSuccesfully": "The details have been saved correctly", - "updatedSuccesfully": "The details have been updated correctly" - }, - "thumbnail": { - "deletedSuccesfully": "The thumbnail have been removed correctly", - "savedSuccesfully": "The thumbnail have been saved correctly", - "updatedSuccesfully": "The thumbnail have been updated correctly" - }, - "errorWhenSaving": "An error occurred during saving process", - "errorWhenUpdating": "An error occurred during updating process", - "errorWhenDeleting": "An error occurred during deleting process", - "errorSizeExceeded": "Please, reduce the size of the details or the quality of the images" - }, - "search": "Kaarten opzoeken..." - }, - "resources": { - "deleteConfirmTitle": "Are you sure", - "deleteConfirmMessage": "Are you sure you want do delete this resource?", - "deleteConfirmButtonText": "Delete", - "deleteCancelButtonText": "Close", - "resource": { - "deleteResource": "Delete", - "editResource": "Edit properties", - "addToFeatured": "Add to featured", - "removeFromFeatured": "Remove from featured", - "showDetails": "Show details" - }, - "contents": { - "title": "Contents" - }, - "dashboards": { - "newDashboard": "New Dashboard", - "title": "Dashboards ({count})", - "titleNoCount": "Dashboards", - "create": "Create Dashboard", - "noDashboardAvailable": "No dashboard available", - "createANewOne": "Create a new one", - "deleteError": "There was an error deleting the resource", - "errorLoadingDashboards": "There was an error loading dashboards" - }, - "maps": { - "title": "Maps ({count})", - "noMapAvailable": "Geen kaart beschikbaar", - "createNewOne": "Maak een nieuwe", - "unsavedMapConfirmTitle": "Niet-opgeslagen wijzigingen", - "unsavedMapConfirmMessage": "Weet u zeker dat u niet-opgeslagen wijzigingen wilt achterlaten?", - "unsavedMapConfirmButtonText": "Vertrekken", - "unsavedMapCancelButtonText": "Afsluiten" - } - }, - "map": { - "errorLoadingFont": "The font family {family} is not correctly loaded. Some elements (like symbols in markers) can have rendering problems", - "loading": "Bezig met laden...", - "loadingSpinner": "Loading Map", - "loadingerror": "Fout bij het laden", - "name": "Naam", - "description": "Beschrijving", - "namePlaceholder": "Kaartnaam", - "descriptionPlaceholder": "Kaartbeschrijving", - "saveTitle": "Kaart opslaan", - "saveText": "De huidige kaart opslaan", - "thumbnail": "Thumbnail", - "message": "Drop of klik om een afbeelding te importeren", - "suggestion": "(best 300px X 180px, max 500kb)", - "errorFormat": "Ondersteunde formaten: png/jpg", - "errorSize": "Maximale toegestaan grootte : 500kb", - "error": "Ongeldige afbeelding", - "thumbnailError": { - "error403": "Er is een fout opgetreden bij het verwijderen van de thumbnail", - "error404": "Er is een fout opgetreden tijdens het aanmaken van de thumbnail", - "error409": "Naam van de thumbnail bestaat al", - "errorDefault": "Er is een fout opgetreden op de server" - }, - "mapError": { - "error403": "Er is een fout opgetreden tijdens het verwijderen van de kaart", - "error404": "Er is een fout opgetreden tijdens het aanmaken van de kaart", - "error409": "Naam van de kaart bestaat al", - "errorDefault": "Er is een fout opgetreden op de server" - }, - "permissions": { - "noRules": "geen enkele regel", - "addRule": "een regel toevoegen...", - "selectGroup": "een groep kiezen...", - "canView": "kan lezen", - "canWrite": "kan wijzigen", - "noResult": "geen enkel resultaat gevonden", - "title": "geautoriseerde groepen" - }, - "errors": { - "loading": { - "title": "Error loading map", - "notFound": "Map not found", - "notAccessible": "Map not accessible", - "unknownError": "

One of the following reason could be the cause:

", - "title" : "Map cannot be viewed" - } - } - }, - "floatinglegend": { - "showTOC": "Show layers", - "showLegend": "Show legend", - "hideLegend": "Hide legend" - }, - "toc": { - "toggleLayerVisibility": "Zet de zichtbaarheid van de laag aan / uit", - "displayLegendAndTools": "Toon de legende en de tools", - "zoomToLayerExtent": "Zoom op de laag", - "addLayer": "Add Layer", - "toolZoomToLayerTooltip": "Zoom to selected layer extent", - "toolZoomToLayersTooltip": "Zoom to selected layers extent", - "toolLayerSettingsTooltip": "Selected layer settings", - "toolGroupSettingsTooltip": "Selected group settings", - "toolTrashLayerTooltip": "Remove selected layer", - "toolTrashLayersTooltip": "Remove selected layers", - "toolFeaturesGridTooltip": "Open Attribute Table", - "toolDownloadTooltip": "Export layer data", - "noFilteredResults": "No results", - "filterPlaceholder": "Filter layers", - "clearFilter": "Clear filter", - "toolReloadLayerTooltip": "Force reload of selected layer", - "toolReloadLayersTooltip": "Force reload of selected layers", - "statusIconOpen": "Close group", - "statusIconClose": "Open group", - "grabLayerIcon": "Grab and sort layer", - "grabGroupIcon": "Grab and sort group", - "toggleLayerVisibilityWarning": "Toggle layer visibility, Warning: layer didn't load correctly", - "createWidget": "Create a widget for the selected layer", - "editLayerProperties": "Wijzig de eigenschappen van de laag", - "browseData": "Open de attributentabel", - "removeLayer": "De laag verwijderen", - "loadingerror": "De laag is niet correct geladen", - "measure": "Meten", - "backgroundSwitcher": "achtergrond kaart", - "layers": "Lagen", - "drawerButton": "Lagen", - "refreshTitle": "Lagen bijwerken", - "refreshConfirm": "Bijwerken", - "refreshMessage": "Laad de configuratie van de WMS-lagen opnieuw vanaf de server(s)", - "refreshError": "Fout bij het bijwerken van de lagen: ", - "epsgNotSupported": "CRS {epsg} not supported for zoom to layer", - "refreshOptions": { - "bbox": "BBOX bijwerken", - "search": "De zoekopties bijwerken", - "title": "De titet bijwerken", - "dimensions": "De dimensies bijwerken" - }, - "layerMetadata": { - "identifier": "Identifier", - "title": "Title", - "abstract": "Abstract", - "subject": "Subject", - "type": "Type", - "creator": "Creator", - "toolLayerMetadataTooltip": "Toon de metadata van de geselecteerde laag", - "layerMetadataPanelTitle": "Metagegevens van de laag", - "notification": { - "warnigGetMetadataRecordById": "Fout bij zoeken naar metadata" - } - }, - "thematic": { - "classification_field": "Classification Field:", - "classification_method": "Classification Method:", - "classification_aggregate": "Aggregate Function:", - "classification_colors": "Color Ramp:", - "classification_intervals": "Intervals:", - "preview": "Preview", - "remove_thematic": "Back to Simple Style", - "values": { - "equalInterval": "Equal Intervals", - "quantile": "Quantile", - "jenks": "Natural Breaks", - "sum": "Sum", - "avg": "Average", - "count": "Count", - "min": "Min", - "max": "Max" - }, - "configuration": "Configuration", - "apply": "Apply classification", - "restore": "Reset customizations", - "go_to_cfg": "Configure...", - "go_to_thema": "Use this configuration", - "cfgError": "Error in configuration JSON", - "classify": "Classify", - "remove": "Remove classification", - "data_panel": "Data", - "classification_stroke": "Stroke", - "classification_error": "Error calling the classification service: {message}", - "fields_error": "Error loading fields list: {message}", - "interval_limit": "Intervals should be a number between {min} and {max}", - "invalid_object": "Invalid service response", - "invalid_geometry": "Geometry type is not valid, not a point, line or polygon", - "invalid_classes": "Max must be greater than min in every class" - } - }, - "print":{ - "paneltitle": "Afdrukken", - "layout": "Mise en page", - "sheetsize": "Papierformaat :", - "legendoptions": "Opties van de legende", - "submit": "Afdrukken", - "title": "Titel", - "titleplaceholder": "Voer een titel in...", - "description": "Beschrijving", - "descriptionplaceholder": "Voer een beschrijving in...", - "resolution": "Résolutie:", - "defaultBackground": "Gebruik OSM als achtergrond kaart", - "printtooltip": "Afdrukken", - "alternatives": { - "legend": "Legende toevoegen", - "2pages": "Legenda op een afzonderlijke pagina", - "landscape": "Landschap", - "portrait": "Portret" - }, - "legend": { - "font": "Labels configureren:", - "forceLabels": "De labels dwingen:", - "antiAliasing": "Anti-aliasing van de fonts:", - "iconsSize": "Pictogramgrootte:", - "dpi": "ppp:" - }, - "layoutWarning": "Lay-out onmogelijk" - }, - "backgroundSwither":{ - "tooltip": "Selectie van de achtergrond kaart" - }, - "info":{ - "tooltip": "De objecten op de kaart ondervragen" - }, - "expandtoolbar": { - "tooltip": "Vergroten / Verkleinen" - }, - "getFeatureInfoTitle": "Item informatie", - "identifyTitle": "Item informatie", - "identifyNoQueryableLayers": "Geen actieve laag nodig", - "identifyRevGeocodeHeader": "Coördinaten", - "identifyShowCoordinateEditor": "Coördinateneditor weergeven", - "identifyHideCoordinateEditor": "Coördinateneditor verbergen", - "identifyCoordinateApplyChanges": "Pas wijzigingen toe", - "identifyRevGeocodeModalTitle": "Adres", - "identifyRevGeocodeSubmitText": "Meer informatie", - "identifyRevGeocodeCloseText": "Afsluiten", - "identifyRevGeocodeError": "Geocoding onmogelijk", - "getFeatureInfoError": { - "title": "Ooops! Iets werkt niet", - "text": "Er is een fout opgetreden tijdens deze GetFeatureInfo query" - }, - "noFeatureInfo": "Er is geen informatie beschikbaar voor het geklikte punt", - "noInfoForLayers": "Er worden geen objecten gevonden voor de volgende lagen: ", - "history":{ - "barLabel": "Geschiedenis van de kaart", - "undoBtnTooltip": "Terug gaan", - "redoBtnTooltip": "Vooruit gaan" - }, - "infoFormatLbl": "Informatie, formaat van het antwoord", - "measureSupport": { - "continueLine": "Click to continue drawing the line", - "continuePolygon": "Click to continue drawing the polygon", - "startDrawing": "Click to start drawing" - }, - "measureComponent": { - "Measure": "Meten", - "MeasureLength": "Meetafstand", - "MeasureArea": "Oppervlakte", - "MeasureBearing": "Richtingsmeting", - "MeasureTrueBearing": "Ware Richtingsmeting", - "tooltip": "Meting van afstanden, oppervlakken en coördinaten", - "title": "Meten", - "lengthButtonText": "Lijn", - "areaButtonText": "Gebied", - "resetButtonText": "Herbeginnen", - "lengthLabel": "Lengte", - "areaLabel": "Afstand", - "bearingLabel": "Richting", - "trueBearingLabel": "Ware Richting", - "formula": "Formula for distance calculation", - "showLabel": "Show measurement label", - "addAsAnnotation": "Add as annotation", - "newMeasure": "New annotation", - "selectTool": "Select a measurement tool" - }, - "search":{ - "decimal": "Decimal", - "aeronautical": "Aeronautical", - "changeSearchInputField": "Change the search tool", - "addressSearch": "Zoeken op locatienaam", - "coordinatesSearch": "Zoeken op coördinaten", - "searchservicesbutton": "Opzoekservices configureren", - "configpaneltitle": "Een opzoekservice aanmaken/wijzigen", - "serviceslistlabel": "Beschikbare services", - "overriedservice": "Overtollige standaardservices", - "addbtn": "Bijvoegen", - "nextbtn": "Volgende", - "prevbtn": "Vorige", - "savebtn": "Bijwerken", - "cancelbtn": "Annuleren", - "confirmremove": "Verwijderen?", - "cancelconfirm": "Bent u zeker?", - "s_name": "Voornaam", - "s_title": "Titel", - "s_description": "De beschrijving", - "s_priority": "Prioriteit", - "s_url": "Service-URL", - "s_layer": "Laag", - "s_attributes": "De attributen", - "s_sort": "Sorteer op", - "s_max_features": "Max functies", - "s_wfs_props_label" : "WFS-serviceaccessoires", - "s_wfs_opt_props_label" : "Optionele supports", - "s_result_props_label": "Eigenschappen van de weergave van de resultaten", - "s_priority_info": "Gebruik eerst eerst hogere waarden om de zoekresultaten te sorteren. Nominatim-resultaten hebben prioriteit = 5", - "serviceslistempty": "Er is geen aangepaste service gedefinieerd", - "service_missing": "{serviceType} service is not configured", - "generic_error": "An error occurred during search. Error details: {message}", - "errors": { - "nonQueriableLayers": "The layer provided in the url is not queriable or not visible in map", - "serverError": "The server has return an error when performing the GetFeatureInfo request. Check if the params are correct" - }, - "s_launch_info_panel": { - "label": "Launch Info panel", - "no_info": "No Info", - "all_layers": "All Layers", - "single_layer": "Search Layer", - "no_info_description": "Identify panel will not show up on search", - "all_layers_description": "Identify panel will show up displaying information of all layers visible in map", - "single_layer_description": "Identify panel will show up with the data already available through the WFS search" - } - }, - "draw": { - "fill": "Fill", - "text": "Text", - "fontTitle": "Font", - "color": "Color", - "lineDash": "LineDash", - "stroke": "Stroke", - "opacity": "Opacity", - "width": "Width", - "font": { - "textColor": "Color", - "family": "Family", - "size": "Size", - "style": "Style", - "weight": "Weight", - "textAlign": "Align" - }, - "marker": { - "layout": "Layout", - "shape": "Shape", - "size": "Size", - "type": "Type", - "icon": "Icon" - } - }, - "drawLocal": { - "draw": { - "toolbar": { - "actions": { - "title": "Tekening wissen", - "text": "Wissen" - }, - "undo": { - "title": "Verwijder het laatst getekende punt", - "text": "Verwijder het laatste punt" - }, - "buttons": { - "polyline": "teken een lijn", - "polygon": "Teken een veelhoek", - "rectangle": "Teken een rechthoek", - "circle": "Teken een cirkel", - "marker": "Teken een punt" - } - }, - "handlers": { - "circle": { - "tooltip": { - "start": "Klik en sleep om een cirkel te tekenen." - } - }, - "marker": { - "tooltip": { - "start": "Klik om een punt te plaatsen." - } - }, - "polygon": { - "error": "Fout: De randen van het vorm kunnen elkaar niet kruisen!", - "tooltip": { - "start": "Klik om te beginnen met het tekenen van een vorm.", - "cont": "Klik om door te gaan met de vorm.", - "end": "Klik op het eerste punt om de vorm te sluiten." - } - }, - "polyline": { - "error": "Fout: de streep van de lijnmag elkaar niet kruisen!", - "tooltip": { - "start": "Klik om te beginnen met het tekenen van een lijn.", - "cont": "Klik om verder te gaan met de lijn.", - "end": "Klik het laatste punt aan om de lijn te beëindigen." - } - }, - "rectangle": { - "tooltip": { - "start": "Klik en sleep om een rechthoek te tekenen." } - }, - "simpleshape": { - "tooltip": { - "end": "Laat de muis los om de rechthoek te voltooien." - } - } - } - }, - "edit": { - "toolbar": { - "actions": { - "save": { - "title": "Sla de wijzigingen op.", - "text": "Opslaan" - }, - "cancel": { - "title": "Annuleer de bewerking, verwerp alle wijzigingen.", - "text": "Annuler" - } - }, - "buttons": { - "edit": "Wijzig de lagen.", - "editDisabled": "Geen enkele laag om te wijzigen.", - "remove": "Verwijder de lagen.", - "removeDisabled": "Geen enkele laag te verwijderen." - } - }, - "handlers": { - "edit": { - "tooltip": { - "text": "Verplaats de grepen, of wijs naar het object om het te wijzigen.", - "subtext": "Klik op Annuleren om de wijzigingen ongedaan te maken." - } - }, - "remove": { - "tooltip": { - "text": "Klik op het object om het te verwijderen" - } - } - } - } - }, - "locate": { - "tooltip": "Lokaliseer me", - "metersUnit": "meter", - "feetUnit": "voet", - "popup": "U bent op minder dan {distance} {unit} van dat punt verwijderd", - "outsideMapBoundsMsg": "U lijkt buiten de grenzen van de kaart" - }, - "zoombuttons": { - "zoomInTooltip": "Vergroten", - "zoomOutTooltip": "Verkleinen", - "zoomAllTooltip": "Pas aan, aan de extensie van de gegevens" - }, - "fullscreen": { - "tooltipActivate": "Overschakelen naar het volledige scherm", - "tooltipDeactivate": "Volledig scherm verlaten", - "viewLargerMap": "De kaart vergroten" - }, - "helptexts": { - "scaleBox": "This is the helptext for the ScaleBox", - "zoomToMaxExtentButton": "This is the helptext for the ZoomToMaxExtentButton", - "zoomIn": "This is the helptext for the ZoomIn", - "zoomOut": "This is the helptext for the ZoomOut", - "searchBar": "Typ het op te zoeken adres. Bv. 'Kunstlaan, Brussel'. U kunt ook coördinaten onder volgende vorm invoeren : 43.87,10.20", - "metadataexplorer": "This is the helptext for the MetadataExplorer", - "settingsPanel": "This is the helptext for the SettingsPanel", - "gohome": "This is the helptext for Home", - "measureComponent": "This is the helptext for the MeasureComponent", - "backgroundSwitcher": "This is the helptext for the BackgroundSwitcher", - "layerSwitcher": "This is the helptext for the LayerSwitcher", - "infoButton": "This is the helptext for the InfoButton", - "locateBtn": "This is the helptext for the LocateBtn", - "snapshot": "This is the helptext for the Snapshot", - "print": "This is the helptext for Print", - "shapefile": "This is the helptext for the Shapefile", - "rasterstyler": "Stel een minimum en maximum waarde in, klasnummer en kleurbereik en maak een nieuwe geclassificeerde laag op", - "expandToolbar": "This is the helptext for Expand / Collapse", - "historyundo": "Gebruik deze knop om terug te keren naar de vorige extensie en positie", - "historyredo": "Utiliser ce bouton pour revenir à l'extension et la position suivante", - "vectorstyler": "Gebruik deze knop om terug te keren naar de extensie en de volgende positie", - "styler": "Maak een stijl voor de geselecteerde laag" - }, - "queryform": { - "title": "Geavanceerd zoeken", - "query": "Zoek", - "reset": "Herbegin", - "query_request_exception": "Fout bij het uitvoeren van de query", - "config": { - "load_config_exception": "Fout bij het laden van de configuratie" - }, - "comboField": { - "default_placeholder": "Kies...", - "drop_down": "Open Dropdown" - }, - "form": { - "header": "Zoek in de data", - "dataset_header": "Geheel van gegevens" - }, - "emptyfilter": "Geen enkele filterset. De zoekopdracht kan verstrijken als paging niet door de server wordt ondersteund", - "attributefilter":{ - "add_condition": " Voeg een voorwaarde toe", - "delete": " Delete", - "add_group": " Voeg een groep toe", - "group_label_a": "Toereikendheid", - "group_label_b": "de volgende condities:", - "combo_placeholder": "Attribuut", - "text_placeholder": "Voer de te zoeken tekst in", - "attribute_filter_header": "Filter op attribuut", - "tooltipTextField": "utilise * voor om het even welk karakter
gebruik . voor een enkel karakter
gebruik ! voor de speciale karakters (* en .)
", - "groupField": { - "any": "sommige", - "all": "alle", - "none": "geen" - }, - "numberfield": { - "isRequired": "verplicht veld", - "wrong_range": "De onderste limiet moet kleiner zijn dan de bovenste limiet" - }, - "datefield": { - "wrong_date_range": "De startdatum moet vóór de einddatum zijn" - }, - "autocomplete": { - "emptyList": "Geen enkel resultaat", - "emptyFilter": "De filter heeft geen resultaten opgeleverd", - "open": "Open het menu" - } - }, - "spatialfilter": { - "filterType": "Filter type", - "geometric_operation": "Geometrische operatie", - "combo_placeholder": "Kies...", - "spatial_filter_header": "Ruimtelijke filter", - "remove": "Remove", - "draw_start_label": "Teken de regio van belang op de kaart", - "dwithin_label": "meter", - "details": { - "detail_button_label": "Details", - "details_header": "Details van de selectie", - "details_bbox_label": "Bewerk coördinaten om het oppervlak te veranderen", - "details_circle_label": "Bewerk attributen om de straal en het midden van de cirkel te wijzigen", - "reset_bbox": "Herbegin", - "save_bbox": "Wijzigingen opslaan", - "save_radius": "Wijzigingen opslaan", - "radius": "Straal(m)" - }, - "methods": { - "zone": "Zone", - "viewport": "Viewport", - "box": "rechthoek", - "buffer": "Bufferzone", - "circle": "Cirkel", - "poly": "Veelhoek" - }, - "operations": { - "intersects": "doorsnede", - "bbox": "Objectkader", - "contains": "Omvat", - "dwithin": "Afstand vanaf", - "within": "Bevat" - } - } - }, - "annotations": { - "errorLoadingSymbols": "There was a problem loading the symbol list. Please, contact the administrator in order to check the configuration options", - "edit": "Edit", - "remove": "Delete", - "save": "Save", - "cancel": "Cancel", - "back": "Back", - "applyStyle": "Apply Style", - "addMarker": "Add a new geometry", - "styleGeometry": "Change style", - "deleteGeometry": "Remove all annotation geometries", - "removeannotation": "Do you want to remove the annotation with title: {title}?", - "removegeometry": "Do you want to remove all annotation features?", - "confirm": "Confirm", - "mandatory": "Mandatory field", - "emptygeometry": "Geometry cannot be empty", - "add": "New", - "filter": "Filter annotations...", - "titleUndoGeom": "The geometry has changed", - "undoGeom": "Are you sure to exit without saving? (You will lose any changes)", - "confirmGeom": "Confirm", - "cancelModalGeom": "Cancel", - "deleteFeature": "Delete this feature", - "undoDeleteFeature": "Are you sure to delete this feature?", - "undo": "Are you sure you want to abandon the annotation editing session?", - "title": "Annotations", - "zoomTo": "Zoom", - "insertText": "Please insert the text annotation", - "downloadtooltip": "Download annotations", - "downloadcurrenttooltip": "Download current annotation", - "downloadError": "Export error", - "loadtooltip": "Import annotations", - "loadtitle": "Import Annotations", - "selectfiletext": "Drop your file here or click to select the Annotation File to import. (supported files: JSON)", - "loadoverride": "Replace annotations", - "loaderror": "Select one or more annotations files. (supported files: json)", - "defaulttitle": "Edit default title", - "field": { - "title": "Title", - "description": "Description" - }, - "titles": { - "marker": " Marker", - "line": " Line", - "polygon": " Polygon", - "text": " Text", - "circle": " Circle" - }, - "editor": { - "decimal": "Decimal", - "aeronautical": "Aeronautical", - "title": { - "Polygon": "Polygon editor", - "LineString": "LineString editor", - "Bearing": "Bearing editor", - "Circle": "Circle editor", - "Point": "Marker editor", - "MultiPoint": "LineString editor", - "Text": "Text editor" - }, - "center": "Center", - "add": "Add new coordinates", - "addByClick": "Add new coordinates by clicking the plus button or on the map", - "valid": "Geometry is valid", - "radius": "Radius", - "text": "Text", - "lat": "Latitude", - "lon": "Longitude", - "notValidMarker": "Insert a valid coordinate (+|- 90° lat, +|-180° lon)", - "notValidPolyline": "All coordinate must be valid (+|- 90° lat, +|-180° lon)", - "notValidText": "Insert a text value and a valid coordinate (+|- 90° lat, +|-180° lon)", - "notValidCircle": "Insert a radius value and a valid coordinate (+|- 90° lat, +|-180° lon)" - } - }, - "user":{ - "login": "Login", - "logout": "Logout", - "info": "Account informatie", - "details": "Details van de gebruiker", - "noAttributesMessage": "Er is geen informatie over uw account", - "changePwd": "Paswoord wijzigen", - "newPwd": "Nieuw paswoord", - "retypePwd": "Bevestig het paswoord", - "passwordMinlenght": "Uw wachtwoord moet minstens {data} tekens bevatten", - "passwordCheckFail": "De twee wachtwoorden komen niet overeen!", - "passwordInvalid": "Verkeerd wachtwoord", - "username": "Gebruikersnaam", - "password": "Paswoord", - "passwordMessage": "Password must contain at least 6 characters", - "passwordChanged": "Wachtwoord gewijzigd", - "passwordError": "Fout bij het wijzigen van het wachtwoord", - "signIn":"Certificeer", - "loginFail":"Verificatiefout", - "loginFailedStatusMessages": { - "usernamePwdInsert": "Vul alstublieft uw gebruikersnaam en wachtwoord in", - "usernamePwdIncorrect":"Ongeldige gebruikersnaam of wachtwoord" - }, - "detailsName": "Name", - "detailsRole": "Role", - "detailsGroups": "Groups", - "detailsEmail": "E-mail", - "detailsCompany": "Company", - "detailsNotes": "Notes" - }, - "users": { - "title": "Accounts beheren", - "users": "Gebruikersnaam", - "manageUsers": "Gebruikers beheren", - "searchUsers": "zoeken naar gebruikers ...", - "newUser": "Nieuw", - "editUser": "Wijzigen", - "deleteUser": "Verwijderen", - "statusTitle": "Statuut", - "enabled": "Geactiveerd", - "groupTitle": "Groepen:", - "roleTitle": "Rol", - "saveUser": "Opslaan", - "savingUser": "wordt opgeslagen...", - "userSaved": "Opgeslagen!", - "createUser": "Aanmaken", - "creatingUser": "Wordt aangemaakt...", - "userCreated": "Aangemaakt!", - "deleting": "Wordt verwijderd...", - "delete": "Verwijderen", - "confirmDeleteUser": "Weet u zeker dat u deze gebruiker wilt verwijderen?", - "errorDelete": "Er is een fout opgetreden bij het wissen van deze gebruiker:", - "errorSaving": "Er is een fout opgetreden bij het opslaan van deze gebruiker", - "selectedGroups": "BEPAALDE GROEPEN", - "requiredFiedsMessage": "Fields marked with asterisk (*) are required" - }, - "usergroups": { - "searchGroups": "groepen opzoeken...", - "groups": "Groepen", - "nameLimit": "De naam is beperkt tot 255 tekens.", - "descLimit": "De beschrijving is beperkt tot 255 tekens.", - "editGroup": "Wijzigen", - "deleteGroup": "Verwijderen", - "removeUser": "verwijder de gebruiker", - "newGroup": "Nieuwe groep", - "manageGroups": "Beheer van de groepen", - "description": "Beschrijving:", - "noDescriptionAvailable": "(Geen beschrijving)", - "groupName": "Naam van de groep", - "groupDescription": "Beschrijving", - "saveGroup": "Opslaan", - "createGroup": "Aanmaken", - "creatingGroup": "Wordt aangemaakt...", - "groupMembers": "Leden:", - "addMember": "Lid toevoegen:", - "selectMemberPlaceholder": "Selecteer lid ...", - "noUsers": "Geen enkele gebruiker voor deze groep", - "errorSaving": "Er is een fout opgetreden tijdens het registreren van deze groep", - "errorDelete": "Er is een fout opgetreden tijdens het verwijderen van deze groep", - "confirmDeleteGroup": "Weet u zeker dat u deze groep wilt verwijderen?" - }, - "share":{ - "title": "Delen", - "titlePanel": "De kaart delen", - "socialIntro": "Via je favoriete sociale netwerk", - "directLinkTitle": "Via een directe link", - "embeddedLinkTitle": "Via de geïntegreerde code", - "social": "Social", - "direct": "Link", - "code": "Embed", - "forceDrawer": "Inhoudsopgave tonen", - "apiLinkTitle": "Via API's", - "QRCodeLinkTitle": "qr code", - "msgCopiedUrl":"Gekopieerd", - "msgToCopyUrl":"Klik om te kopiëren", - "sharedTitle": "Check out my new map: ", - "advancedOptions": "Advanced Options", - "addBboxParam": "Add bbox param to sharing link", - "wrongBboxParamTitle": "Invalid bbox param", - "wrongBboxParamMessage": "bbox params must be in EPSG:4326 and wrote as bbox=minx,miny,maxx,maxy" - }, - "snapshot": { - "title": "Preview van de vastgelegde kaart", - "save": "Opslaan", - "tooltip": "Sla een afbeelding van de kaart op.", - "googleBingError": "Google- en Bing-lagen zijn niet beschikbaar voor het maken van afbeeldingen omwille van de rechten.", - "downloadingSnapshots": "De afbeelding wordt gegenereerd, even geduld", - "date": "Datum", - "layers": "Lagen", - "size": "Grootte", - "notsupported": "Image capture wordt niet ondersteund", - "taintedMessage": "De opslagfunctie is beperkt omwille van beveiligingsbeperkingen van de browser. Klik met de rechtermuisknop op het voorbeeld en selecteer 'Afbeelding opslaan als ...' om een beter resultaat te bekomen (ondersteund door Firefox en Chrome)" - }, - "shapefile": { - "title": "Voeg een lokaal bestand", - "tooltip": "Voeg een lokaal bestand toe aan de kaart.", - "placeholder": "Drop je bestanden hier of klik hier op om de shapefiles te selecteren die u wilt importeren. (Shapefiles moeten in zip-archieven zijn opgenomen)", - "defaultStyle": "Standaard stijl", - "zoom": "Zoomer op het bestand", - "error": {"select": "Kies één of meerdere zip-bestanden. (Shapefiles moeten in zip-archieven zijn opgenomen, KML/KMZ e GPX)"}, - "add": "Voeg toe", - "cancel": "Annuleer", - "success": " Import geslaagd" - }, - "mapImport": { - "title": "Import", - "dropZone": { - "heading": "

Drop your configuration or vector files here

or

", - "selectFiles": "Select Files...", - "infoSupported": "

Supported configuration files: MapStore legacy format
Supported vector layer files: shapefiles (must be contained in zip archives), KML/KMZ, GeoJSON or GPX

", - "note": "

note: current map will be overridden in case of configuration files

" - }, - "errors": { - "fileNotSupported": "File not supported", - "unknownError": "there was an unknown error during import" - } - }, - "mapExport": { - "title": "Export Map" - }, - "catalog": { - "start": "Start date ", - "end": "End date ", - "notAvailable": "Not Available", - "title": "Catalogus", - "tooltip": "De catalogus doorlopen", - "addToMap": "Aan de kaart toevoegen", - "getWMSLink": "WMS-link", - "error": "Er is een fout opgetreden tijdens het laden van de gegevens van de catalogus", - "pageInfo": "{start}-{end} resultaten op {total}", - "noRecordsMatched": "Geen enkel overeenkomstige record", - "wmsGetCapLink": "WMS", - "wfsGetCapLink": "WFS", - "share": "Deel", - "copyToClipboard": "Kopiëren naar klembord", - "copied": "Gekopieerd!", - "catalogUrlPlaceholder": "Voer URL-catalogus in...", - "textSearchPlaceholder": "op te zoeken tekst...", - "search": "Zoek", - "reset": "Verwijder", - "options": "Opties", - "srs_not_allowed": "Deze service ondersteunt het geografische coördinatensysteem van de kaart niet", - "missingReference": "Missing OGC reference metadata", - "showDescription": "Show full description", - "hideDescription": "Hide full description", - "templateFormatDescriptionExample": "The description of layer is", - "showTemplate": "Show metadata template", - "showPreview": "Show preview", - "advancedSettings": "Advanced Settings", - "templateMetadataAvailable": "Metadata available from Dublin Core format: abstract, boundingBox, contributor, creator, description, format, identifier, references, rights, source, subject, temporal, title, type, uri", - "notification": { - "errorTitle": "Error", - "errorSearchingRecords": "Some records have not been found: {records} Please check the query param url", - "warningAddCatalogService": "Insert a valid url and title", - "addCatalogService": "Service added correctly", - "duplicatedServiceTitle": "A service with that title already exists. Please, change title", - "serviceDeletedCorrectly": "The service was deleted correctly", - "errorServiceUrl": "Service not available. Please, check the provided url" - } - }, - "uploader": { - "filename": "File Name", - "type": "Type", - "lastModified": "Last Modified", - "filesize": "Size", - "beforeUpload": "Doing pre-upload operations... ", - "uploadingFiles": "Uploading Files...", - "dropfile": "drop files here to upload", - "dropfileImport": "drop here files to add it to this process" - }, - "importer": { - "title": "Gegevens importeren", - "imports": "Import proces", - "importN": "Proces {id}", - "creatingImportProcess": "De import wordt uitgevoerd ...", - "dropfile": "Sleep bestanden hier om een nieuw import proces te maken", - "dropfileImport": "sleep bestanden hier om toe te voegen aan dit proces", - "process": "Proces", - "number": "#", - "workspace": { - "create": "Maak aan", - "createWS": "maak een nieuwe werkruimte aan: ", - "target": "doel werkruimte: ", - "failure": "Fout opgetreden tijdens de aanmaak van de werkruimte: {statusWS}", - "success": "Werkruimte {statusWS} succesvol aangemaakt", - "select": "Selecteer de doel werkruimte", - "new": "Naam..." - }, - "import": { - "actions": "Acties", - "tasks": "taken", - "runImport": "begin", - "deleteImport": "Proces verwijderen", - "deleteTask": "Verwijderen", - "status": "Statuut", - "archive": "Archiveer", - "deleting": "Clearing ...", - "analyzing": "Analyzing package...", - "applyingPreset": "Presets d'application ..." - }, - "task": { - "panelTitle": "Taken {id}", - "general": "Generale Info", - "status": "Statuut", - "updateMode": "Refresh modus", - "originalData": "origineel bestand", - "file": "Naam van het bestand", - "format": "Formaat", - "targetStore": "target store", - "storeType": "Type store", - "storeName": "Naam van de store", - "layer": "Laag", - "transforms": "Ketting van transformaties", - "update": "Bijwerken", - "run": "Voer dit pakket in", - "edit": "Wijzig de standaardstijl", - "delete": "Verwijder dit pakket" - }, - "transform": { - "panelTitle": "Transformatie {id}", - "type": "Transformatie type", - "actions": "Acties", - "options": "transformatie van de opties", - "overviewlevels": "Overzicht van niveaus", - "delete": "deze transformatie verwijderen" - } - }, - "rasterstyler": { - "tooltip": "Creëer en bewerk een stijl voor een beeldlaag", - "paneltitle": "Beeldstijl editor", - "layerlabel": "Laag", - "typelabel": "Stijltype", - "opacitylabel": "Doorzichtigheid", - "redtitle": "Rood", - "greentitle": "Groen", - "bluetitle": "Blauw", - "graytitle": "Grijs", - "pseudobandtitle": "Selecteer de band", - "eqinttitle": "Classificatie met regelmatig interval", - "pseudotitle": "Pseudo-kleurinstellingen", - "applybtn": "De stijl toepassen" - }, - "bandselector": { - "band": "Band", - "enhancement": "Verbetering", - "algorithmTitle": "Optioneel algoritme", - "value": "Waarde", - "min": "Min", - "max": "Max", - "enha": { - "none": "Geen", - "Normalize": "Normaliseer", - "Histogram": "Histogram", - "GammaValue": "Gamma correctie" - }, - "algorithm": { - "none": "Geen", - "StretchToMinimumMaximum": "Rekken", - "ClipToMinimumMaximum": "Klem", - "ClipToZero": "Klem op nul" - } - }, - "equalinterval": { - "min": "Min", - "max": "Max", - "classes": "Klassen", - "ramp": "Kleurengamma", - "classify": "Classificeren", - "maxerror": "De maximale waarde moet groter zijn dan de minimale waarde", - "minerror": "De minimale waarde moet minder zijn dan de maximale waarde" - }, - "colormapgrid": { - "color": "Kleur", - "quantity": "Hoeveelheid", - "label": "Label", - "minmaxerror": "De waarde moet tussen de waarden van de vorige en volgende cellen liggen" - }, - "pseudocolorsettings": { - "type": "Type", - "extended": "Extended", - "colormap": "Kleurkaart", - "add": "Voeg een waarde toe", - "remove": "Verwijder een waarde" - }, - "rasterstyletype": { - "rgb": "Rood Groen Blauw", - "gray": "Grijswaarde", - "pseudo": "Pseudo kleur", - "multi": "Meerdere bands", - "single": "enkele band" - }, - "featuregrid": { - "columns": "Kolommen", - "header": "Zoek de resultatenlijst", - "tools": "Gereedschapspaneel", - "export": "Exporteren", - "selectall": "Selecteer alles", - "deselectall": "Deselecteer alles", - "backtosearch": "Terug naar zoeken", - "resultInfo": "{total, plural, =0 {geen enkel object} =1 {{total} van {total}} other {{start}-{end} van {total}}}", - "resultInfoVirtual": "{total, plural, =0 {geen enkel object} =1 {{total} van {total}} other {{total}}}", - "pageInfo": "{totalPages, plural, =0 {No pages} =1 {Page {totalPages} van {totalPages}} other {Page {page} van {totalPages}}}", - "pagination": { - "page": "Bladzijde", - "of": "van", - "to": "tot", - "more": "meer" - }, - "noFeaturesAvailable": "Geen enkele functionaliteit beschikbaar", - "errorSaving": "Er is een fout opgetreden tijdens het opslaan van de bewerking", - "yesButton": "Ja", - "noButton": "Neen", - "deleteButton": "Verwijderen", - "clear": "Weet je zeker dat je alle wijzigingen wilt annuleren?", - "featureClose":"Wilt u echt het rooster sluiten?", - "delete": "Valideren om de elementen te verwijderen?", - "missingGeometry": "Ontbrekende geometrie", - "filter": { - "placeholders": { - "default": "Search...", - "string": "Type text to filter...", - "date": "Type date to filter...", - "number": "Type number or expression..." - }, - "tooltips": { - "editMode": "Quick search is not available in edit mode", - "default": "Search...", - "string": "Type text to filter...", - "number": "Type a number or an expression. Examples: 10, > 2, < 10" - } - }, - "toolbar": { - "synchPopoverTitle": "Sync map with filter ", - "synchPopoverText": "Use this tool to synchronize the map with the selected filter", - "notShowAgain": " Don't show this message again", - "editMode": "Bewerkingsmodus", - "advancedFilter": "Geavanceerd zoeken", - "quitEditMode": "Verlaat de bewerkingsmodus", - "addNewFeatures": "Voeg een nieuw element toe", - "editFeature": "Bewerk element", - "drawGeom": "Teken element", - "stopDrawGeom": "Annuleer de creatie van de geometrie", - "addGeom": "Voeg een element toe aan de bestaande geometrie", - "drawFeature": "Tekenelement", - "deleteSelectedFeatures": "Verwijder geselecteerde functies", - "saveChanges": "De wijzigingen opslaan", - "saving": "wordt opgeslagen...", - "cancelChanges": "De wijzigingen annuleren", - "deleteGeometry": "De geometrie verwijderen", - "downloadGridData": "De gegevens downloaden", - "hideShowColumns": "De kolommen verbergen/tonen", - "zoomAll": "Zoom in op de pagina" - } - }, - "wfsdownload": { - "title": "De gegevens exporteren", - "format": "Bestandsformaat", - "export": "Export", - "downloadonlycurrentpage": "Enkel de huidige pagina downloaden", - "error": { - "title": "Fout tijdens exporteren", - "invalidOutputFormat": "Het geselecteerde exportformaat is niet beschikbaar" - } - }, - "widgets": { - "selectChartType": { - "title": "Sélectionnez le type de widget" - }, - "title": "Titre", - "description": "Description", - "errors": { - "nodata": "Aucune donnée disponible pour la couche / filtre sélectionné", - "nodatainviewport": "Aucune donnée dans la fenêtre courante", - "timeoutExpired": "Le service a pris trop de temps pour répondre. Peut-être que la requête est trop complexe ou que le serveur est occupé", - "genericError": "Il y a une erreur lors de la récupération des données" - }, - "builder": { - "header": { - "title": "Widget" - }, - "wizard": { - "backToTypeSelection": "Retour à la sélection du type", - "backToChartOptions": "retour aux options de graphique", - "configureChartOptions": "Configurer les options de graphique", - "configureWidgetOptions": "Configurer les options du widget", - "updateWidget": "Mettre à jour le widget", - "addTheWidget": "Ajouter le widget" - }, - "errors": { - "noWidgetsAvailableTitle": "Aucun widget disponible", - "noWidgetsAvailableDescription": "

Vous ne pouvez pas créer de widget pour le calque sélectionné. C'est probablement parce que la couche ne convient pas aux widgets ou que le serveur n'expose pas tous les services ou informations nécessaires pour générer un widget. Les causes possibles sont:

)

" - }, - "setupFilter": "Configurer un filtre pour les données du widget" - }, - "widget": { - "menu": { - "showChartData": "Afficher les données de graphique", - "edit": "éditer", - "delete": "effacer", - "confirmDelete": "Êtes-vous sûr?", - "downloadData": "Télécharger les données", - "exportImage": "Exporter l'image" - } - }, - "chartType": { - "bar": { - "title": "Diagramme à barres", - "description": "Créer un graphique à barres à ajouter à la carte", - "caption": "barres" - }, - "pie": { - "title": "Diagramme à secteurs", - "description": "Créer un graphique à secteurs à ajouter à la carte", - "caption": "secteurs" - }, - "line": { - "title": "Graphique linéaire", - "description": "Créer un graphique linéaire à ajouter à la carte", - "caption": "linéaire" - }, - "gauge": { - "title": "Tableau de jauge", - "description": "Créer un graphique de jauge à ajouter à la carte", - "caption": "jauge" - } - }, - "chartOptionsTitle": "Données", - "widgetOptionsTitle": "Info sur le widget", - "placeHolder":{ - "default":"Select attribute" - }, - "groupByAttributes": { - "line": "Attributs X", - "pie": "Grouper par", - "bar": "Attributs X", - "gauge": "Grouper par" - }, - "aggregationAttribute": { - "line": "Attributs Y", - "pie": "Use", - "bar": "Attributs Y", - "gauge": "Use", - "counter": "Use", - "default": "Use" - }, - "aggregateFunction": { - "line": "Opération", - "pie": "Opération", - "bar": "Opération", - "gauge": "Opération" - }, - "colorRamp": { - "line": "Couleur", - "pie": "Rampe de couleur", - "bar": "Couleur", - "gauge": "Couleur" - }, - "mapSync": "Live Filter par viewport", - "displayLegend": { - "line": "Légende d'affichage", - "pie": "Légende d'affichage", - "bar": "Légende d'affichage", - "gauge": "Afficher les étiquettes" - }, - "displayCartesian": { - "line": "Hide Grid", - "bar": "Hide Grid" - }, - "xAxisAngle":{ - "line": "X Axis: Label rotation angle °", - "bar": "X Axis: Label rotation angle °" - }, - "yAxis":{ - "line": "Hide Y axis", - "bar": "Hide Y axis" - }, - "yAxisLabel":{ - "line": "Legend Label", - "bar": "Legend Label" - }, - "advancedOptions":{ - "line": "Advanced Options", - "bar": "Advanced Options" - } - }, - "dashboard": { - "loadingSpinner": "Loading Dashboard", - "saveDialog": { - "title": "Edit dashboard properties", - "name": "Name", - "description": "Description", - "createdAt": "Aangemaakt", - "modifiedAt": "Gemodificeerde", - "namePlaceholder": "Type a name...", - "descriptionPlaceholder": "Type a description...", - "confirmCloseText": "There are pending changes, are you sure that you want to close without saving?", - "close": "Close", - "cancel": "Cancel", - "saveSuccessTitle": "Success", - "saveSuccessMessage": "Dashboard saved successfully" - }, - "errors":{ - "loading": { - "title": "Error loading dashboard", - "dashboardNotAccessible": "You don't have permission to access this dashboard. Please contact the resource owner", - "pleaseLogin": "This dashboard is not public. Please try to login", - "dashboardDoesNotExist": "The dashboard you are trying to access doesn't exist", - "unknownError": "There was an error loading the dashboard. Please contact the administrator", - "notFound": "Dashboard not found", - "notAccessible": "Dashboard not accessible" - }, - "resourceAlreadyExists": "A resource with this name already exists", - "forbidden": "An unexpected error occured (403 Forbidden). Please contact the Administrator", - "forbidden405": "An unexpected error occured (405 Forbidden). Please contact the Administrator" - }, - "editor": { - "save": "Save the dashboard", - "addACardToTheDashboard": "Add a widget to the dashboard", - "showConnections": "Show connections", - "hideConnections": "HideConnections" - }, - "emptyTitle": "The dashboard is empty" - }, - "wizard": { - "next": "Suivant", - "prev": "Précédent", - "finish": "Finition" - }, - "vectorstyler": { - "tooltip": "Maak en bewerk een stijl van een vectorlaag", - "paneltitle": "Laagstijl", - "layerlabel": "Laag", - "rulelabel": "Regels", - "namelabel": "Naam van de regel", - "symboltitle": "Symbool", - "labeltitle": "Etiket", - "conditiontitle": "Voorwaarden", - "applybtn": "Stijl toepassen", - "addrulebtn": "Regel toevoegen", - "removerulebtn": "Regel verwijderen" - }, - "scaledenominator": { - "minlabel": "Minimale schaalnominator", - "maxlabel": "Maximale schaalnominator", - "maxerror": "De maximale waarde moet groter zijn dan de minimumwaarde", - "minerror": "De minimale waarde moet groter zijn dan de maximumwaarde", - "none": "Geen enkele" - }, - "markNameSelector": { - "circle": "Cirkel", - "square": "Vierkant", - "triangle": "Driehoek", - "star": "Ster", - "cross": "Kruis", - "x": "X" - }, - "styler": { - "tooltip": "Maak en bewerk een laagstijl", - "paneltitle": "Laagstijl", - "layerlabel": "Laag" - }, - "styleeditor": { - "styleListfilterPlaceholder": "Filter styles by name, title or abstract", - "templateFilterPlaceholder": "Filter styles templates by title", - "createStyleFromTemplate": "Select a template to create a new style", - "titleRequired": "

Title is required!
Title and abstract must be alphanumeric
", - "titleSettings": "Title", - "titleSettingsplaceholder": "Enter title (alphanumeric)", - "abstractSettings": "Abstract", - "abstractSettingsplaceholder": "Enter abstract (alphanumeric)", - "createStyleModalTitle": "Create new style", - "filterMatchNotFound": "No styles match entered text filter", - "backToList": "Back to style list", - "createNewStyle": "Create new style", - "editSelectedStyle": "Edit selected style", - "saveCurrentStyle": "Save current style", - "addSelectedTemplate": "Add selected template to list of styles", - "deleteSelectedStyle": "Delete selected style", - "closeWithoutSaveAlertTitle": "Style has changed", - "closeWithoutSaveAlert": "You are quitting the style editor without save your changes", - "deleteStyleAlertTitle": "Delete style", - "deleteStyleAlert": "Selected style will be permanently delete", - "delete": "Delete", - "defaultStyle": "Default style", - "availableStyle": "Available style", - "styleNotFound": "Style not found", - "noPermission": "User cannot edit styles", - "deletedStyleSuccessTitle": "Delete style", - "deletedStyleSuccessMessage": "Style has been successfully deleted", - "deletedStyleErrorTitle": "Delete style error", - "deletedStyleErrorMessage": "Could not delete current style", - "savedStyleTitle": "Style saved", - "savedStyleMessage": "Style has been successfully saved", - "missingAvailableStyles": "Missing styles", - "missingAvailableStylesMessage": "", - "createTmpErrorTitle": "New Temporary Style", - "createTmpStyleErrorMessage": "Temporary style could not be created. This could due an unsupported style format on the style service", - "updateTmpErrorTitle": "Temporary Style Update", - "updateTmpStyleErrorMessage": "Temporary style could not be updated. This could be on unsupported style format or connection issue.", - "createStyleErrorTitle": "New Style", - "createStyleErrorMessage": "Style could not be saved on the style service. This could be on unsupported style format or connection issue.", - "updateStyleErrorTitle": "Edit Style", - "updateStyleErrorMessage": "Style could not be updated on the style service. This could be on unsupported style format or connection issue.", - "validationErrorTitle": "Validation Error", - "genericValidationError": "Style is not valid and it could not be applied.", - "setDefaultStyle": "Set selected style as default for the current layer", - "setDefaultStyleSuccessTitle": "Success on set default style", - "setDefaultStyleSuccessMessage": "Default Style has been successfully applied", - "setDefaultStyleErrorTitle": "Error on set default style", - "setDefaultStyleErrorMessage": "It's not possible apply selected style as default" - }, - "playback": { - "settings": { - "tooltip": "Settings", - "title": "Playback Settings", - "frameDuration": "Frame Duration", - "range": { - "title": "Animation Range", - "zoomTooltip": "Zoom to current animation range", - "animationStart": "Animation start", - "animationEnd": "Animation end", - "zoomToCurrentPlayackRange": "Zoom to current playback range", - "setToCurrentViewRange": "Set to current view range", - "fitToSelectedLayerRange": "Fit to selected layer's range" - }, - "step": { - "tooltip": "When 'Snap to guide Layer' option is disabled, you can customize the animation step", - "label": "Animation Step", - "year": "{number, plural, =0 {Year} =1 {Year} other {Years}}", - "week": "{number, plural, =0 {Week} =1 {Week} other {Weeks}}", - "day": "{number, plural, =0 {Day} =1 {Day} other {Days}}", - "hour": "{number, plural, =0 {Hour} =1 {Hour} other {Hours}}", - "minute": "{number, plural, =0 {Minute} =1 {Minute} other {Minutes}}", - "second": "{number, plural, =0 {Second} =1 {Second} other {Seconds}}" - }, - "mode": { - "title": "Mode", - "following": "Follow the animation", - "followingDescription": "When the animation is active, follow the cursor" - } - }, - "backwardStep": "Step backward", - "forwardStep" : "Step forward", - "play": "Play", - "pause": "Pause", - "paused": "Play (paused)", - "stop": "Stop" - }, - "timeline": { - "settings": { - "title": "Timeline Settings", - "snapToGuideLayer": "Snap to guide layer", - "snapToGuideLayerTooltip": "Forces the time cursor to snap to the selected layer's data. Disable this option to unlock the time cursors and enable the customization of animation step" - }, - "currentTime": "Go to current time", - "rangeStart":"Go to the current time range", - "rangeEnd" : "Go to the current time range", - "hideLayerName" : "Hide layers names", - "showLayerName" : "Show layers names", - "enableRange": "Enable time range", - "disableRange": "Disable time range", - "enablePlayBack": "Enable playback controls", - "disablePlayBack": "Disable playback controls", - "expand" : "Expand time slider", - "collapse" : "Collapse time slider", - "errors": { - "multidim_error_title": "Backend service is not responding", - "multidim_error_message": "The required services for multidinensional support are not responding. Please try again later or contact the administrator." - } - }, - "rulesmanager": { - "placeholders": { - "filter": "Zoeken..." - }, - "menutitle": "Beheer GeoFence Rules", - "title": "Toegangsregels", - "role": "Rol", - "user": "Gebruiker", - "service": "Service", - "request": "Request", - "workspace": "Workspace", - "layer": "Laag", - "filters": "Filters", - "rules": "Regels", - "access": "Toegang", - "newModal": "Nieuwe regel", - "editModal": "Regel wijzigen", - "newButton": "Aanmaken", - "editButton": "Opslaan", - "close": "Sluiten", - "previous": "vorige", - "next": "volgende", - "errorTitle": "Geofence", - "errorLoadingRoles": "Fout bij laden van de rollen.", - "errorLoadingUsers": "Fout bij laden van de gebruikers.", - "errorLoadingWorkspaces": "Fout bij laden van workspaces.", - "errorLoadingLayers": "Fout bij laden van de lagen.", - "errorLoadingRules": "Fout bij laden van de regels.", - "errorMovingRules": "Fout bij verplaatsen van de regels.", - "errorDeletingRules": "Fout bij verwijderen van de regels.", - "errorAddingRule": "Fout bij toevoegen van de regel.", - "errorUpdatingRule": "Fout bij bijwerken van de regel.", - "deleteModal": "Regel verwijderen", - "selectedRulesDelete": "Wilt u de geselecteerde regels verwijderen?", - "deleteButton": "Wissen", - "cancelButton": "Annuleren" - }, - "tutorial": { - "title": "Tutorial", - "back": "Vorige", - "next": "Volgende", - "close": "Sluiten", - "skip": "Overslaan", - "last": "Einde", - "start": "Start", - "checkbox": "laat dit bericht niet meer zien", - "error": "Fout: doel niet gevonden", - "intro": { - "title": "Welkom bij MapStore", - "text": "framework om web mapping-applicaties te bouwen met behulp van standaard mapping-bibliotheken, zoals OpenLayers en Leaflet." - }, - "drawerMenu": { - "title": "Hoofdmenu", - "text": "U kunt informatie en hulpmiddelen vinden om laag te beheren" - }, - "searchBar": { - "title": "Zoekbalk", - "text": "Schrijf het adres van een te vinden plaats, bijv. '1st avenue, new york'. U kunt zelfs coördinaten inbrengen in volgend formaat: 43.87,10.20" - }, - "home": { - "title": "Home", - "text": "Ga naar homepagina" - }, - "searchButton": { - "title": "Zoek", - "text": "Klik om de zoekbalk te openen en typ vervolgens het adres van een te vinden plaats. bijv. '1st avenue, new york'. U kunt zelfs coördinaten invoegen in dit formaat: 43.87,10.20" - }, - "burgerMenu": { - "title": "Optiemenu", - "text": "U kunt opties, instellingen en hulp vinden" - }, - "zoomInButton": { - "title": "Inzoomen", - "text": "Klik om de kaart te vergroten" - }, - "zoomOutButton": { - "title": "UItzoomen", - "text": "Klik om de kaart te verkleinen" - }, - "fullscreen": { - "title": "Schakel over naar volledig scherm", - "text": "Schakel over naar volledig scherm" - }, - "identifyButton": { - "title": "Info", - "text": "Druk op de knop om de tool te activeren en klik vervolgens op de kaart om informatie uit lagen op te halen" - }, - "mapType": { - "title": "Bibliotheek", - "text": "U kunt Leaflet of OpenLayers kiezen om uw kaarten weer te geven" - }, - "mapsGrid": { - "title": "Kaarten", - "text": "Hier enkele voorbeelden van MapStore. Klik op een afbeelding om de demo te proberen." - }, - "examples": { - "title": "Aangepaste applicatie", - "text": "U kunt componenten en plug-ins van MapStore gebruiken om aangepaste applicaties te bouwen" - }, - "introCesium": { - "title": "3D-kaartinstructies", - "text": "Klik op de volgende knop om de tutorial te starten" - }, - "cesium": { - "title": "Interacties met de kaart", - "pan": "Pan beeld", - "zoom": "Zoomweergave", - "tilt": "Schuine weergave", - "rotate": "Draai het beeld", - "oneDrag": "Sleep met één vinger", - "twoPinch": "Two finger pinch", - "twoDragSame": "Twee vingers slepen, dezelfde richting", - "twoDragOpposite": "Twee vingers slepen, tegengestelde richting", - "leftClick": "Klik met de linkermuisknop + slepen", - "rightClick": "Klik met de rechtermuisknop + slepen, of muiswiel scrollen", - "middleClick": "Middelste klik + slepen, of CTRL + Links / Rechts klikken + slepen" - - }, - "cesiumCompass": { - "title": "Kompas", - "text": "Je kunt het kompas gebruiken om rond de wereld te cirkelen. Sleep om de kaart te draaien" - }, - "cesiumNavigation": { - "title": "Navigatie", - "text": "Hier kunt u de knoppen voor in- en uitzoomen vinden" - }, - "dashboardIntro": { - "title": "Dashboard Tutorial", - "text": "Overview of dashboard functionalities" - }, - "dashboardNav": { - "title": "Navigation Bar", - "text": "Here you can find language selector, login, homepage link and options menu" - }, - "dashboardContainer": { - "title": "Dashboard", - "text": "

A Dashboard in MapStore provides a set of information suitably collected to show aggregated data in one shot view. Geospatial data displayed in a map can be placed side by side to related attribute tables, charts and other, with the aim to connect different kind of information, show statistical details and textual descriptions relating to a specific context.

All users can visualize and interact with published dashboards but only users allowed to edit can add, arrange, resize or delete all the widgets inside a dashboard

" - }, - "dashboardAddWidget": { - "title": "Add Widget", - "text": "To add a widget to the dashboard, you can click on the + button" - }, - "dashboardBuilder": { - "title": "Create a new widget", - "text": "You can select which type of widget you want and then add to the dashboard selecting one of the items in the list" - }, - "dashboardAddChart": { - "title": "Chart Widget", - "text": "

It's a widget that show and aggregate data into pie, line or bar charts.

Steps:

" - }, - "dashboardAddText": { - "title": "Text Widget", - "text": "

Add your own text to the dashboard.

Steps:

" - }, - "dashboardAddTable": { - "title": "Table Widget", - "text": "

Add an attribute table to the dashboard that contains data from a selected vector layer. You can also filter data to customize your table.

Steps:

" - }, - "dashboardAddCounter": { - "title": "Counter Widget", - "text": "

Add a new counter to the dashboard. Counter will show numeric value aggregationg data from a selected vector layer.

Steps:

" - }, - "dashboardAddMap": { - "title": "Map Widget", - "text": "

Add a new interactive map to the dashboard. You can add more than one map with the ability to connect other widgets to them. After saving the first map, the legend widget will be added to the list. Legend Widget will show a legend related to the connected map.

Steps:

" - } - } - } - } diff --git a/geonode_mapstore_client/static/mapstore/dist/0.a4f6534862100dbe4d18.chunk.js b/geonode_mapstore_client/static/mapstore/dist/0.77463e34d36870e03dfd.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/0.a4f6534862100dbe4d18.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/0.77463e34d36870e03dfd.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1.77463e34d36870e03dfd.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1.77463e34d36870e03dfd.chunk.js new file mode 100644 index 0000000000..f32742af35 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/1.77463e34d36870e03dfd.chunk.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"./node_modules/tinycolor2/tinycolor.js":function(t,r,e){var n;!function(a){var i=/^\s+/,s=/\s+$/,o=0,f=a.round,h=a.min,l=a.max,u=a.random;function c(t,r){if(r=r||{},(t=t||"")instanceof c)return t;if(!(this instanceof c))return new c(t,r);var e=function(t){var r={r:0,g:0,b:0},e=1,n=null,o=null,f=null,u=!1,c=!1;"string"==typeof t&&(t=function(t){t=t.replace(i,"").replace(s,"").toLowerCase();var r,e=!1;if(q[t])t=q[t],e=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(r=U.rgb.exec(t))return{r:r[1],g:r[2],b:r[3]};if(r=U.rgba.exec(t))return{r:r[1],g:r[2],b:r[3],a:r[4]};if(r=U.hsl.exec(t))return{h:r[1],s:r[2],l:r[3]};if(r=U.hsla.exec(t))return{h:r[1],s:r[2],l:r[3],a:r[4]};if(r=U.hsv.exec(t))return{h:r[1],s:r[2],v:r[3]};if(r=U.hsva.exec(t))return{h:r[1],s:r[2],v:r[3],a:r[4]};if(r=U.hex8.exec(t))return{r:j(r[1]),g:j(r[2]),b:j(r[3]),a:O(r[4]),format:e?"name":"hex8"};if(r=U.hex6.exec(t))return{r:j(r[1]),g:j(r[2]),b:j(r[3]),format:e?"name":"hex"};if(r=U.hex4.exec(t))return{r:j(r[1]+""+r[1]),g:j(r[2]+""+r[2]),b:j(r[3]+""+r[3]),a:O(r[4]+""+r[4]),format:e?"name":"hex8"};if(r=U.hex3.exec(t))return{r:j(r[1]+""+r[1]),g:j(r[2]+""+r[2]),b:j(r[3]+""+r[3]),format:e?"name":"hex"};return!1}(t));"object"==typeof t&&(B(t.r)&&B(t.g)&&B(t.b)?(g=t.r,b=t.g,d=t.b,r={r:255*L(g,255),g:255*L(b,255),b:255*L(d,255)},u=!0,c="%"===String(t.r).substr(-1)?"prgb":"rgb"):B(t.h)&&B(t.s)&&B(t.v)?(n=E(t.s),o=E(t.v),r=function(t,r,e){t=6*L(t,360),r=L(r,100),e=L(e,100);var n=a.floor(t),i=t-n,s=e*(1-r),o=e*(1-i*r),f=e*(1-(1-i)*r),h=n%6;return{r:255*[e,o,s,s,f,e][h],g:255*[f,e,e,o,s,s][h],b:255*[s,s,f,e,e,o][h]}}(t.h,n,o),u=!0,c="hsv"):B(t.h)&&B(t.s)&&B(t.l)&&(n=E(t.s),f=E(t.l),r=function(t,r,e){var n,a,i;function s(t,r,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+6*(r-t)*e:e<.5?r:e<2/3?t+(r-t)*(2/3-e)*6:t}if(t=L(t,360),r=L(r,100),e=L(e,100),0===r)n=a=i=e;else{var o=e<.5?e*(1+r):e+r-e*r,f=2*e-o;n=s(f,o,t+1/3),a=s(f,o,t),i=s(f,o,t-1/3)}return{r:255*n,g:255*a,b:255*i}}(t.h,n,f),u=!0,c="hsl"),t.hasOwnProperty("a")&&(e=t.a));var g,b,d;return e=I(e),{ok:u,format:t.format||c,r:h(255,l(r.r,0)),g:h(255,l(r.g,0)),b:h(255,l(r.b,0)),a:e}}(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=f(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=e.ok,this._tc_id=o++}function g(t,r,e){t=L(t,255),r=L(r,255),e=L(e,255);var n,a,i=l(t,r,e),s=h(t,r,e),o=(i+s)/2;if(i==s)n=a=0;else{var f=i-s;switch(a=o>.5?f/(2-i-s):f/(i+s),i){case t:n=(r-e)/f+(r>1)+720)%360;--r;)n.h=(n.h+a)%360,i.push(c(n));return i}function C(t,r){r=r||6;for(var e=c(t).toHsv(),n=e.h,a=e.s,i=e.v,s=[],o=1/r;r--;)s.push(c({h:n,s:a,v:i})),i=(i+o)%1;return s}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,e,n=this.toRgb();return t=n.r/255,r=n.g/255,e=n.b/255,.2126*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=I(t),this._roundA=f(100*this._a)/100,this},toHsv:function(){var t=b(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=b(this._r,this._g,this._b),r=f(360*t.h),e=f(100*t.s),n=f(100*t.v);return 1==this._a?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=g(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=g(this._r,this._g,this._b),r=f(360*t.h),e=f(100*t.s),n=f(100*t.l);return 1==this._a?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return d(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,r,e,n,a){var i=[z(f(t).toString(16)),z(f(r).toString(16)),z(f(e).toString(16)),z(T(n))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(100*L(this._r,255))+"%",g:f(100*L(this._g,255))+"%",b:f(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+f(100*L(this._r,255))+"%, "+f(100*L(this._g,255))+"%, "+f(100*L(this._b,255))+"%)":"rgba("+f(100*L(this._r,255))+"%, "+f(100*L(this._g,255))+"%, "+f(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var r="#"+p(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var a=c(t);e="#"+p(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0;return r||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(e=this.toRgbString()),"prgb"===t&&(e=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(e=this.toHexString()),"hex3"===t&&(e=this.toHexString(!0)),"hex4"===t&&(e=this.toHex8String(!0)),"hex8"===t&&(e=this.toHex8String()),"name"===t&&(e=this.toName()),"hsl"===t&&(e=this.toHslString()),"hsv"===t&&(e=this.toHsvString()),e||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(H,arguments)}},c.fromRatio=function(t,r){if("object"==typeof t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]="a"===n?t[n]:E(t[n]));t=e}return c(t,r)},c.equals=function(t,r){return!(!t||!r)&&c(t).toRgbString()==c(r).toRgbString()},c.random=function(){return c.fromRatio({r:u(),g:u(),b:u()})},c.mix=function(t,r,e){e=0===e?0:e||50;var n=c(t).toRgb(),a=c(r).toRgb(),i=e/100;return c({r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a})},c.readability=function(t,r){var e=c(t),n=c(r);return(a.max(e.getLuminance(),n.getLuminance())+.05)/(a.min(e.getLuminance(),n.getLuminance())+.05)},c.isReadable=function(t,r,e){var n,a,i=c.readability(t,r);switch(a=!1,(n=function(t){var r,e;r=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),"AA"!==r&&"AAA"!==r&&(r="AA");"small"!==e&&"large"!==e&&(e="small");return{level:r,size:e}}(e)).level+n.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},c.mostReadable=function(t,r,e){var n,a,i,s,o=null,f=0;a=(e=e||{}).includeFallbackColors,i=e.level,s=e.size;for(var h=0;hf&&(f=n,o=c(r[h]));return c.isReadable(t,o,{level:i,size:s})||!a?o:(e.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],e))};var q=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=c.hexNames=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(q);function I(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function L(t,r){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var e=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=h(r,l(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),a.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function N(t){return h(1,l(0,t))}function j(t){return parseInt(t,16)}function z(t){return 1==t.length?"0"+t:""+t}function E(t){return t<=1&&(t=100*t+"%"),t}function T(t){return a.round(255*parseFloat(t)).toString(16)}function O(t){return j(t)/255}var P,$,D,U=($="[\\s|\\(]+("+(P="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",D="[\\s|\\(]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")[,|\\s]+("+P+")\\s*\\)?",{CSS_UNIT:new RegExp(P),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+D),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+D),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+D),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function B(t){return!!U.CSS_UNIT.exec(t)}t.exports?t.exports=c:void 0===(n=function(){return c}.call(r,e,r,t))||(t.exports=n)}(Math)}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/10.77463e34d36870e03dfd.chunk.js b/geonode_mapstore_client/static/mapstore/dist/10.77463e34d36870e03dfd.chunk.js new file mode 100644 index 0000000000..0e417802ea --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/10.77463e34d36870e03dfd.chunk.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"./MapStore2/web/client/actions/additionallayers.js":function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_ADDITIONAL_LAYER",(function(){return r})),n.d(t,"UPDATE_OPTIONS_BY_OWNER",(function(){return o})),n.d(t,"REMOVE_ADDITIONAL_LAYER",(function(){return i})),n.d(t,"REMOVE_ALL_ADDITIONAL_LAYERS",(function(){return a})),n.d(t,"updateAdditionalLayer",(function(){return c})),n.d(t,"updateOptionsByOwner",(function(){return s})),n.d(t,"removeAdditionalLayer",(function(){return u})),n.d(t,"removeAllAdditionalLayers",(function(){return l}));var r="ADDITIONALLAYER:UPDATE_ADDITIONAL_LAYER",o="ADDITIONALLAYER:UPDATE_OPTIONS_BY_OWNER",i="ADDITIONALLAYER:REMOVE_ADDITIONAL_LAYER",a="ADDITIONALLAYER:REMOVE_ALL_ADDITIONAL_LAYERS",c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"override",o=arguments.length>3?arguments[3]:void 0;return{type:r,id:e,owner:t,actionType:n,options:o}},s=function(e,t){return{type:o,owner:e,options:t}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.owner;return{type:i,id:t,owner:n}},l=function(){return{type:a}}},"./MapStore2/web/client/actions/annotations.js":function(e,t,n){"use strict";n.r(t),n.d(t,"INIT_PLUGIN",(function(){return o})),n.d(t,"EDIT_ANNOTATION",(function(){return i})),n.d(t,"OPEN_EDITOR",(function(){return a})),n.d(t,"SHOW_ANNOTATION",(function(){return c})),n.d(t,"NEW_ANNOTATION",(function(){return s})),n.d(t,"REMOVE_ANNOTATION",(function(){return u})),n.d(t,"REMOVE_ANNOTATION_GEOMETRY",(function(){return l})),n.d(t,"CONFIRM_REMOVE_ANNOTATION",(function(){return p})),n.d(t,"CANCEL_REMOVE_ANNOTATION",(function(){return f})),n.d(t,"CANCEL_EDIT_ANNOTATION",(function(){return d})),n.d(t,"CANCEL_SHOW_ANNOTATION",(function(){return m})),n.d(t,"SAVE_ANNOTATION",(function(){return b})),n.d(t,"TOGGLE_ADD",(function(){return y})),n.d(t,"TOGGLE_STYLE",(function(){return g})),n.d(t,"SET_STYLE",(function(){return h})),n.d(t,"RESTORE_STYLE",(function(){return S})),n.d(t,"UPDATE_ANNOTATION_GEOMETRY",(function(){return v})),n.d(t,"SET_INVALID_SELECTED",(function(){return O})),n.d(t,"VALIDATION_ERROR",(function(){return E})),n.d(t,"HIGHLIGHT",(function(){return j})),n.d(t,"CLEAN_HIGHLIGHT",(function(){return w})),n.d(t,"FILTER_ANNOTATIONS",(function(){return A})),n.d(t,"CLOSE_ANNOTATIONS",(function(){return T})),n.d(t,"CONFIRM_CLOSE_ANNOTATIONS",(function(){return _})),n.d(t,"CANCEL_CLOSE_ANNOTATIONS",(function(){return x})),n.d(t,"START_DRAWING",(function(){return P})),n.d(t,"UNSAVED_CHANGES",(function(){return M})),n.d(t,"TOGGLE_ANNOTATION_VISIBILITY",(function(){return R})),n.d(t,"TOGGLE_CHANGES_MODAL",(function(){return C})),n.d(t,"TOGGLE_GEOMETRY_MODAL",(function(){return I})),n.d(t,"CHANGED_PROPERTIES",(function(){return D})),n.d(t,"UNSAVED_STYLE",(function(){return N})),n.d(t,"TOGGLE_STYLE_MODAL",(function(){return L})),n.d(t,"ADD_TEXT",(function(){return k})),n.d(t,"DOWNLOAD",(function(){return F})),n.d(t,"LOAD_ANNOTATIONS",(function(){return G})),n.d(t,"CHANGED_SELECTED",(function(){return U})),n.d(t,"RESET_COORD_EDITOR",(function(){return B})),n.d(t,"CHANGE_RADIUS",(function(){return H})),n.d(t,"CHANGE_TEXT",(function(){return z})),n.d(t,"ADD_NEW_FEATURE",(function(){return Y})),n.d(t,"SET_EDITING_FEATURE",(function(){return V})),n.d(t,"HIGHLIGHT_POINT",(function(){return q})),n.d(t,"TOGGLE_DELETE_FT_MODAL",(function(){return W})),n.d(t,"CONFIRM_DELETE_FEATURE",(function(){return K})),n.d(t,"CHANGE_FORMAT",(function(){return Q})),n.d(t,"UPDATE_SYMBOLS",(function(){return Z})),n.d(t,"ERROR_SYMBOLS",(function(){return $})),n.d(t,"SET_DEFAULT_STYLE",(function(){return X})),n.d(t,"LOAD_DEFAULT_STYLES",(function(){return J})),n.d(t,"LOADING",(function(){return ee})),n.d(t,"CHANGE_GEOMETRY_TITLE",(function(){return te})),n.d(t,"FILTER_MARKER",(function(){return ne})),n.d(t,"HIDE_MEASURE_WARNING",(function(){return re})),n.d(t,"TOGGLE_SHOW_AGAIN",(function(){return oe})),n.d(t,"GEOMETRY_HIGHLIGHT",(function(){return ie})),n.d(t,"UNSELECT_FEATURE",(function(){return ae})),n.d(t,"initPlugin",(function(){return ce})),n.d(t,"updateSymbols",(function(){return se})),n.d(t,"setErrorSymbol",(function(){return ue})),n.d(t,"loadAnnotations",(function(){return le})),n.d(t,"confirmDeleteFeature",(function(){return pe})),n.d(t,"openEditor",(function(){return fe})),n.d(t,"changeFormat",(function(){return de})),n.d(t,"toggleDeleteFtModal",(function(){return me})),n.d(t,"highlightPoint",(function(){return be})),n.d(t,"download",(function(){return ye})),n.d(t,"editAnnotation",(function(){return ge})),n.d(t,"newAnnotation",(function(){return he})),n.d(t,"changeSelected",(function(){return Se})),n.d(t,"setInvalidSelected",(function(){return ve})),n.d(t,"addText",(function(){return Oe})),n.d(t,"toggleVisibilityAnnotation",(function(){return Ee})),n.d(t,"changedProperties",(function(){return je})),n.d(t,"removeAnnotation",(function(){return we})),n.d(t,"removeAnnotationGeometry",(function(){return Ae})),n.d(t,"confirmRemoveAnnotation",(function(){return Te})),n.d(t,"cancelRemoveAnnotation",(function(){return _e})),n.d(t,"cancelEditAnnotation",(function(){return xe})),n.d(t,"saveAnnotation",(function(){return Pe})),n.d(t,"toggleAdd",(function(){return Me})),n.d(t,"toggleStyle",(function(){return Re})),n.d(t,"restoreStyle",(function(){return Ce})),n.d(t,"setStyle",(function(){return Ie})),n.d(t,"updateAnnotationGeometry",(function(){return De})),n.d(t,"validationError",(function(){return Ne})),n.d(t,"highlight",(function(){return Le})),n.d(t,"cleanHighlight",(function(){return ke})),n.d(t,"showAnnotation",(function(){return Fe})),n.d(t,"cancelShowAnnotation",(function(){return Ge})),n.d(t,"filterAnnotations",(function(){return Ue})),n.d(t,"closeAnnotations",(function(){return Be})),n.d(t,"confirmCloseAnnotations",(function(){return He})),n.d(t,"setUnsavedChanges",(function(){return ze})),n.d(t,"setUnsavedStyle",(function(){return Ye})),n.d(t,"addNewFeature",(function(){return Ve})),n.d(t,"setEditingFeature",(function(){return qe})),n.d(t,"cancelCloseAnnotations",(function(){return We})),n.d(t,"startDrawing",(function(){return Ke})),n.d(t,"toggleUnsavedChangesModal",(function(){return Qe})),n.d(t,"toggleUnsavedGeometryModal",(function(){return Ze})),n.d(t,"toggleUnsavedStyleModal",(function(){return $e})),n.d(t,"resetCoordEditor",(function(){return Xe})),n.d(t,"unSelectFeature",(function(){return Je})),n.d(t,"changeRadius",(function(){return et})),n.d(t,"changeText",(function(){return tt})),n.d(t,"setDefaultStyle",(function(){return nt})),n.d(t,"loadDefaultStyles",(function(){return rt})),n.d(t,"changeGeometryTitle",(function(){return ot})),n.d(t,"loading",(function(){return it})),n.d(t,"filterMarker",(function(){return at})),n.d(t,"geometryHighlight",(function(){return ct})),n.d(t,"hideMeasureWarning",(function(){return st})),n.d(t,"toggleShowAgain",(function(){return ut}));var r=n("./node_modules/lodash/lodash.js"),o="ANNOTATIONS:INIT_PLUGIN",i="ANNOTATIONS:EDIT",a="ANNOTATIONS:OPEN_EDITOR",c="ANNOTATIONS:SHOW",s="ANNOTATIONS:NEW",u="ANNOTATIONS:REMOVE",l="ANNOTATIONS:REMOVE_GEOMETRY",p="ANNOTATIONS:CONFIRM_REMOVE",f="ANNOTATIONS:CANCEL_REMOVE",d="ANNOTATIONS:CANCEL_EDIT",m="ANNOTATIONS:CANCEL_SHOW",b="ANNOTATIONS:SAVE",y="ANNOTATIONS:TOGGLE_ADD",g="ANNOTATIONS:TOGGLE_STYLE",h="ANNOTATIONS:SET_STYLE",S="ANNOTATIONS:RESTORE_STYLE",v="ANNOTATIONS:UPDATE_GEOMETRY",O="ANNOTATIONS:SET_INVALID_SELECTED",E="ANNOTATIONS:VALIDATION_ERROR",j="ANNOTATIONS:HIGHLIGHT",w="ANNOTATIONS:CLEAN_HIGHLIGHT",A="ANNOTATIONS:FILTER",T="ANNOTATIONS:CLOSE",_="ANNOTATIONS:CONFIRM_CLOSE",x="ANNOTATIONS:CANCEL_CLOSE",P="ANNOTATIONS:START_DRAWING",M="ANNOTATIONS:UNSAVED_CHANGES",R="ANNOTATIONS:VISIBILITY",C="ANNOTATIONS:TOGGLE_CHANGES_MODAL",I="ANNOTATIONS:TOGGLE_GEOMETRY_MODAL",D="ANNOTATIONS:CHANGED_PROPERTIES",N="ANNOTATIONS:UNSAVED_STYLE",L="ANNOTATIONS:TOGGLE_STYLE_MODAL",k="ANNOTATIONS:ADD_TEXT",F="ANNOTATIONS:DOWNLOAD",G="ANNOTATIONS:LOAD_ANNOTATIONS",U="ANNOTATIONS:CHANGED_SELECTED",B="ANNOTATIONS:RESET_COORD_EDITOR",H="ANNOTATIONS:CHANGE_RADIUS",z="ANNOTATIONS:CHANGE_TEXT",Y="ANNOTATIONS:ADD_NEW_FEATURE",V="ANNOTATIONS:SET_EDITING_FEATURE",q="ANNOTATIONS:HIGHLIGHT_POINT",W="ANNOTATIONS:TOGGLE_DELETE_FT_MODAL",K="ANNOTATIONS:CONFIRM_DELETE_FEATURE",Q="ANNOTATIONS:CHANGE_FORMAT",Z="ANNOTATIONS:UPDATE_SYMBOLS",$="ANNOTATIONS:ERROR_SYMBOLS",X="ANNOTATIONS:SET_DEFAULT_STYLE",J="ANNOTATIONS:LOAD_DEFAULT_STYLES",ee="ANNOTATIONS:LOADING",te="ANNOTATIONS:CHANGE_GEOMETRY_TITLE",ne="ANNOTATIONS:FILTER_MARKER",re="ANNOTATIONS:HIDE_MEASURE_WARNING",oe="ANNOTATIONS:TOGGLE_SHOW_AGAIN",ie="ANNOTATIONS:GEOMETRY_HIGHLIGHT",ae="ANNOTATIONS:UNSELECT_FEATURE",ce=function(){return{type:o}},se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:Z,symbols:e}},ue=function(e){return{type:$,symbolErrors:e}},le=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:G,features:e,override:t}},pe=function(){return{type:K}},fe=function(e){return{type:a,id:e}},de=function(e){return{type:Q,format:e}},me=function(){return{type:W}},be=function(e){return{type:q,point:e}},ye=function(e){return{type:F,annotation:e}},ge=function(e){return function(t,n){var o=Object(r.head)(Object(r.head)(n().layers.flat.filter((function(e){return"annotations"===e.id}))).features.filter((function(t){return t.properties.id===e})));"FeatureCollection"===o.type?t({type:i,feature:o,featureType:o.type}):t({type:i,feature:o,featureType:o.geometry.type})}},he=function(){return{type:s}},Se=function(e,t,n,r){return{type:U,coordinates:e,radius:t,text:n,crs:r}},ve=function(e,t){return{type:O,errorFrom:e,coordinates:t}},Oe=function(){return{type:k}},Ee=function(e){return{type:R,id:e}},je=function(e,t){return{type:D,field:e,value:t}},we=function(e){return{type:u,id:e}},Ae=function(e){return{type:l,id:e}},Te=function(e,t){return{type:p,id:e,attribute:t}},_e=function(){return{type:f}},xe=function(){return{type:d}},Pe=function(e,t,n,r,o,i){return{type:b,id:e,fields:t,geometry:n,style:r,newFeature:o,properties:i}},Me=function(e){return{type:y,featureType:e}},Re=function(e){return{type:g,styling:e}},Ce=function(){return{type:S}},Ie=function(e){return{type:h,style:e}},De=function(e,t,n){return{type:v,geometry:e,textChanged:t,circleChanged:n}},Ne=function(e){return{type:E,errors:e}},Le=function(e){return{type:j,id:e}},ke=function(){return{type:w}},Fe=function(e){return{type:c,id:e}},Ge=function(){return{type:m}},Ue=function(e){return{type:A,filter:e}},Be=function(){return{type:T}},He=function(){return{type:_}},ze=function(e){return{type:M,unsavedChanges:e}},Ye=function(e){return{type:N,unsavedStyle:e}},Ve=function(){return{type:Y}},qe=function(e){return{type:V,feature:e}},We=function(){return{type:x}},Ke=function(){return{type:P}},Qe=function(){return{type:C}},Ze=function(){return{type:I}},$e=function(){return{type:L}},Xe=function(){return{type:B}},Je=function(){return{type:ae}},et=function(e,t,n){return{type:H,radius:e,components:t,crs:n}},tt=function(e,t){return{type:z,text:e,components:t}},nt=function(e,t){return{type:X,path:e,style:t}},rt=function(e,t,n,r,o){return{type:J,shape:e,size:t,fillColor:n,strokeColor:r,symbolsPath:o}},ot=function(e){return{type:te,title:e}},it=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading";return{type:ee,name:t,value:e}},at=function(e){return{type:ne,filter:e}},ct=function(e,t){return{type:ie,id:e,state:t}},st=function(){return{type:re}},ut=function(){return{type:oe}}},"./MapStore2/web/client/actions/backgroundselector.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ADD_BACKGROUND",(function(){return r})),n.d(t,"REMOVE_BACKGROUND",(function(){return o})),n.d(t,"SET_CURRENT_BACKGROUND_LAYER",(function(){return i})),n.d(t,"BACKGROUND_ADDED",(function(){return a})),n.d(t,"BACKGROUND_EDITED",(function(){return c})),n.d(t,"ADD_BACKGROUND_PROPERTIES",(function(){return s})),n.d(t,"SET_BACKGROUND_MODAL_PARAMS",(function(){return u})),n.d(t,"UPDATE_BACKGROUND_THUMBNAIL",(function(){return l})),n.d(t,"BACKGROUNDS_CLEAR",(function(){return p})),n.d(t,"CREATE_BACKGROUNDS_LIST",(function(){return f})),n.d(t,"CLEAR_MODAL_PARAMETERS",(function(){return d})),n.d(t,"CONFIRM_DELETE_BACKGROUND_MODAL",(function(){return m})),n.d(t,"ALLOW_BACKGROUNDS_DELETION",(function(){return b})),n.d(t,"createBackgroundsList",(function(){return y})),n.d(t,"addBackground",(function(){return g})),n.d(t,"addBackgroundProperties",(function(){return h})),n.d(t,"setBackgroundModalParams",(function(){return S})),n.d(t,"backgroundAdded",(function(){return v})),n.d(t,"backgroundEdited",(function(){return O})),n.d(t,"setCurrentBackgroundLayer",(function(){return E})),n.d(t,"allowBackgroundsDeletion",(function(){return j})),n.d(t,"updateThumbnail",(function(){return w})),n.d(t,"removeBackground",(function(){return A})),n.d(t,"clearBackgrounds",(function(){return T})),n.d(t,"clearModalParameters",(function(){return _})),n.d(t,"confirmDeleteBackgroundModal",(function(){return x}));var r="BACKGROUND_SELECTOR:ADD_BACKGROUND",o="BACKGROUND_SELECTOR:REMOVE_BACKGROUND",i="BACKGROUND_SELECTOR:SET_CURRENT_BACKGROUND_LAYER",a="BACKGROUND_SELECTOR:BACKGROUND_ADDED",c="BACKGROUND_SELECTOR:BACKGROUND_EDITED",s="BACKGROUND_SELECTOR:ADD_BACKGROUND_PROPERTIES",u="BACKGROUND_SELECTOR:SET_BACKGROUND_MODAL_PARAMS",l="BACKGROUND_SELECTOR:UPDATE_BACKGROUND_THUMBNAIL",p="BACKGROUND_SELECTOR:BACKGROUNDS_CLEAR",f="BACKGROUND_SELECTOR:CREATE_BACKGROUNDS_LIST",d="BACKGROUND_SELECTOR:CLEAR_MODAL_PARAMETERS",m="BACKGROUND_SELECTOR:CONFIRM_DELETE_BACKGROUND_MODAL",b="BACKGROUND_SELECTOR:ALLOW_BACKGROUNDS_DELETION";function y(e){return{type:f,backgrounds:e}}function g(e){return{type:r,source:e}}function h(e){return{type:s,modalParams:e}}function S(e){return{type:u,modalParams:e}}function v(e){return{type:a,layerId:e}}function O(e){return{type:c,layerId:e}}function E(e){return{type:i,layerId:e}}function j(e){return{type:b,allow:e}}function w(e,t){return{type:l,thumbnailData:e,id:t}}function A(e){return{type:o,backgroundId:e}}function T(){return{type:p}}function _(){return{type:d}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:m,show:e,layerTitle:t,layerId:n}}},"./MapStore2/web/client/actions/catalog.js":function(e,t,n){"use strict";n.r(t),n.d(t,"ADD_LAYERS_FROM_CATALOGS",(function(){return E})),n.d(t,"TEXT_SEARCH",(function(){return j})),n.d(t,"RECORD_LIST_LOADED",(function(){return w})),n.d(t,"RESET_CATALOG",(function(){return A})),n.d(t,"CATALOG_CLOSE",(function(){return T})),n.d(t,"RECORD_LIST_LOAD_ERROR",(function(){return _})),n.d(t,"CHANGE_CATALOG_FORMAT",(function(){return x})),n.d(t,"ADD_LAYER_ERROR",(function(){return P})),n.d(t,"DESCRIBE_ERROR",(function(){return M})),n.d(t,"CHANGE_SELECTED_SERVICE",(function(){return R})),n.d(t,"CHANGE_CATALOG_MODE",(function(){return C})),n.d(t,"CHANGE_METADATA_TEMPLATE",(function(){return I})),n.d(t,"CHANGE_TITLE",(function(){return D})),n.d(t,"CHANGE_TEXT",(function(){return N})),n.d(t,"CHANGE_TYPE",(function(){return L})),n.d(t,"CHANGE_SERVICE_PROPERTY",(function(){return k})),n.d(t,"CHANGE_SERVICE_FORMAT",(function(){return F})),n.d(t,"FOCUS_SERVICES_LIST",(function(){return G})),n.d(t,"CHANGE_URL",(function(){return U})),n.d(t,"ADD_CATALOG_SERVICE",(function(){return B})),n.d(t,"DELETE_CATALOG_SERVICE",(function(){return H})),n.d(t,"ADD_SERVICE",(function(){return z})),n.d(t,"DELETE_SERVICE",(function(){return Y})),n.d(t,"SAVING_SERVICE",(function(){return V})),n.d(t,"CATALOG_INITED",(function(){return q})),n.d(t,"GET_METADATA_RECORD_BY_ID",(function(){return W})),n.d(t,"SET_LOADING",(function(){return K})),n.d(t,"TOGGLE_TEMPLATE",(function(){return Q})),n.d(t,"TOGGLE_THUMBNAIL",(function(){return Z})),n.d(t,"TOGGLE_ADVANCED_SETTINGS",(function(){return $})),n.d(t,"addLayersMapViewerUrl",(function(){return X})),n.d(t,"textSearch",(function(){return J})),n.d(t,"recordsLoaded",(function(){return ee})),n.d(t,"changeCatalogFormat",(function(){return te})),n.d(t,"savingService",(function(){return ne})),n.d(t,"setLoading",(function(){return re})),n.d(t,"changeSelectedService",(function(){return oe})),n.d(t,"focusServicesList",(function(){return ie})),n.d(t,"changeCatalogMode",(function(){return ae})),n.d(t,"changeTitle",(function(){return ce})),n.d(t,"changeText",(function(){return se})),n.d(t,"changeServiceProperty",(function(){return ue})),n.d(t,"changeServiceFormat",(function(){return le})),n.d(t,"changeType",(function(){return pe})),n.d(t,"changeUrl",(function(){return fe})),n.d(t,"addService",(function(){return de})),n.d(t,"addCatalogService",(function(){return me})),n.d(t,"deleteCatalogService",(function(){return be})),n.d(t,"deleteService",(function(){return ye})),n.d(t,"resetCatalog",(function(){return ge})),n.d(t,"recordsLoadError",(function(){return he})),n.d(t,"catalogInited",(function(){return Se})),n.d(t,"initCatalog",(function(){return ve})),n.d(t,"catalogClose",(function(){return Oe})),n.d(t,"getRecords",(function(){return Ee})),n.d(t,"describeError",(function(){return je})),n.d(t,"addLayerAndDescribe",(function(){return we})),n.d(t,"addLayer",(function(){return Ae})),n.d(t,"addLayerError",(function(){return Te})),n.d(t,"getMetadataRecordById",(function(){return _e})),n.d(t,"changeMetadataTemplate",(function(){return xe})),n.d(t,"toggleAdvancedSettings",(function(){return Pe})),n.d(t,"toggleTemplate",(function(){return Me})),n.d(t,"toggleThumbnail",(function(){return Re})),n.d(t,"recordsNotFound",(function(){return Ce}));var r=n("./MapStore2/web/client/api/CSW.js"),o=n.n(r),i=n("./MapStore2/web/client/api/WMS.js"),a=n("./MapStore2/web/client/api/WMTS.js"),c=n.n(a),s=n("./MapStore2/web/client/api/mapBackground.js"),u=n.n(s),l=n("./MapStore2/web/client/actions/layers.js"),p=n("./MapStore2/web/client/actions/map.js"),f=n("./MapStore2/web/client/utils/LayersUtils.js"),d=n("./MapStore2/web/client/utils/ConfigUtils.js"),m=n("./node_modules/lodash/lodash.js"),b=n("./MapStore2/web/client/selectors/catalog.js"),y=n("./MapStore2/web/client/selectors/layers.js"),g=n("./MapStore2/web/client/actions/notifications.js");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:E,layers:e,sources:t}}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,n=e.url,r=e.startPosition,o=e.maxRecords,i=e.text,a=e.options,c=void 0===a?{}:a;return{type:j,format:t,url:n,startPosition:r,maxRecords:o,text:i,options:c}}function ee(e,t){return{type:w,searchOptions:e,result:t}}function te(e){return{type:x,format:e}}function ne(e){return{type:V,status:e}}function re(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:K,loading:e}}function oe(e){return{type:R,service:e}}function ie(e){return{type:G,status:e}}function ae(e,t){return{type:C,mode:e,isNew:t}}function ce(e){return{type:D,title:e}}function se(e){return{type:N,text:e}}function ue(e,t){return{type:k,property:e,value:t}}function le(e){return{type:F,format:e}}function pe(e){return{type:L,newType:e}}function fe(e){return{type:U,url:e}}function de(){return{type:z}}function me(e){return{type:B,service:e}}function be(e){return{type:H,service:e}}function ye(){return{type:Y}}function ge(){return{type:A}}function he(e){return{type:_,error:e}}function Se(){return{type:q}}function ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O;return function(t){Object.keys(e).forEach((function(t){e[t].reset()})),t(Se())}}function Oe(){return{type:T}}function Ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return function(a){a(re(!0)),O[e].getRecords(t,n,r,o,i).then((function(e){e.error?a(he(e)):a(ee({url:t,startPosition:n,maxRecords:r,filter:o},e))})).catch((function(e){a(he(e))}))}}function je(e,t){return{type:M,layer:e,error:t}}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.zoomToLayer,r=void 0!==n&&n;return function(t,n){var o=n(),i=Object(y.layersSelector)(o),a=f.getLayerId(e,i||[]);return t(Object(l.addLayer)(S(S({},e),{},{id:a}))),r&&e.bbox&&t(Object(p.zoomToExtent)(e.bbox.bounds,e.bbox.crs)),"wms"===e.type?O.wms.describeLayers(f.getLayerUrl(e),e.name).then((function(n){if(n){var r=Object(m.find)(n,(function(t){return t.name===e.name}));if(r&&"WFS"===r.owsType){var i=d.filterUrlParams(d.cleanDuplicatedQuestionMarks(r.owsURL),Object(b.authkeyParamNameSelector)(o));t(Object(l.changeLayerProperties)(a,{search:{url:i,type:"wfs"}}))}}})).catch((function(n){return t(je(e,n))})):null}}var Ae=we;function Te(e){return{type:P,error:e}}function _e(e){return{type:W,metadataOptions:e}}var xe=function(e){return{type:I,metadataTemplate:e}},Pe=function(){return{type:$}},Me=function(){return{type:Q}},Re=function(){return{type:Z}};function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(g.error)({title:"catalog.notification.errorTitle",message:"catalog.notification.errorSearchingRecords",values:{records:e}})}},"./MapStore2/web/client/actions/draw.js":function(e,t,n){"use strict";n.r(t),n.d(t,"CHANGE_DRAWING_STATUS",(function(){return r})),n.d(t,"END_DRAWING",(function(){return o})),n.d(t,"SET_CURRENT_STYLE",(function(){return i})),n.d(t,"GEOMETRY_CHANGED",(function(){return a})),n.d(t,"DRAW_SUPPORT_STOPPED",(function(){return c})),n.d(t,"FEATURES_SELECTED",(function(){return s})),n.d(t,"DRAWING_FEATURE",(function(){return u})),n.d(t,"geometryChanged",(function(){return l})),n.d(t,"selectFeatures",(function(){return p})),n.d(t,"drawingFeatures",(function(){return f})),n.d(t,"drawStopped",(function(){return d})),n.d(t,"changeDrawingStatus",(function(){return m})),n.d(t,"endDrawing",(function(){return b})),n.d(t,"setCurrentStyle",(function(){return y})),n.d(t,"drawSupportReset",(function(){return g}));var r="CHANGE_DRAWING_STATUS",o="DRAW:END_DRAWING",i="DRAW:SET_CURRENT_STYLE",a="DRAW:GEOMETRY_CHANGED",c="DRAW:DRAW_SUPPORT_STOPPED",s="DRAW:FEATURES_SELECTED",u="DRAW:DRAWING_FEATURES";function l(e,t,n,r,o){return{type:a,features:e,owner:t,enableEdit:n,textChanged:r,circleChanged:o}}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:s,features:e}}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:u,features:e}}function d(){return{type:c}}function m(e,t,n,o,i,a){return{type:r,status:e,method:t,owner:n,features:o,options:i,style:a}}function b(e,t){return{type:o,geometry:e,owner:t}}function y(e){return{type:i,currentStyle:e}}var g=function(e){return m("clean","",e,[],{})}},"./MapStore2/web/client/actions/featuregrid.js":function(e,t,n){"use strict";n.r(t),n.d(t,"SET_UP",(function(){return r})),n.d(t,"SELECT_FEATURES",(function(){return o})),n.d(t,"DESELECT_FEATURES",(function(){return i})),n.d(t,"CLEAR_SELECTION",(function(){return a})),n.d(t,"SET_SELECTION_OPTIONS",(function(){return c})),n.d(t,"TOGGLE_MODE",(function(){return s})),n.d(t,"TOGGLE_FEATURES_SELECTION",(function(){return u})),n.d(t,"FEATURES_MODIFIED",(function(){return l})),n.d(t,"CREATE_NEW_FEATURE",(function(){return p})),n.d(t,"SAVE_CHANGES",(function(){return f})),n.d(t,"SAVING",(function(){return d})),n.d(t,"START_EDITING_FEATURE",(function(){return m})),n.d(t,"START_DRAWING_FEATURE",(function(){return b})),n.d(t,"DELETE_GEOMETRY",(function(){return y})),n.d(t,"DELETE_GEOMETRY_FEATURE",(function(){return g})),n.d(t,"SAVE_SUCCESS",(function(){return h})),n.d(t,"CLEAR_CHANGES",(function(){return S})),n.d(t,"SAVE_ERROR",(function(){return v})),n.d(t,"DELETE_SELECTED_FEATURES",(function(){return O})),n.d(t,"DELETE_SELECTED_FEATURES_CONFIRM",(function(){return E})),n.d(t,"SET_FEATURES",(function(){return j})),n.d(t,"SORT_BY",(function(){return w})),n.d(t,"SET_LAYER",(function(){return A})),n.d(t,"UPDATE_FILTER",(function(){return T})),n.d(t,"CHANGE_PAGE",(function(){return _})),n.d(t,"GEOMETRY_CHANGED",(function(){return x})),n.d(t,"DOCK_SIZE_FEATURES",(function(){return P})),n.d(t,"TOGGLE_TOOL",(function(){return M})),n.d(t,"CUSTOMIZE_ATTRIBUTE",(function(){return R})),n.d(t,"CLOSE_FEATURE_GRID_CONFIRM",(function(){return C})),n.d(t,"OPEN_FEATURE_GRID",(function(){return I})),n.d(t,"CLOSE_FEATURE_GRID",(function(){return D})),n.d(t,"CLEAR_CHANGES_CONFIRMED",(function(){return N})),n.d(t,"FEATURE_GRID_CLOSE_CONFIRMED",(function(){return L})),n.d(t,"SET_PERMISSION",(function(){return k})),n.d(t,"DISABLE_TOOLBAR",(function(){return F})),n.d(t,"ACTIVATE_TEMPORARY_CHANGES",(function(){return G})),n.d(t,"DEACTIVATE_GEOMETRY_FILTER",(function(){return U})),n.d(t,"OPEN_ADVANCED_SEARCH",(function(){return B})),n.d(t,"ZOOM_ALL",(function(){return H})),n.d(t,"INIT_PLUGIN",(function(){return z})),n.d(t,"SIZE_CHANGE",(function(){return Y})),n.d(t,"TOGGLE_SHOW_AGAIN_FLAG",(function(){return V})),n.d(t,"HIDE_SYNC_POPOVER",(function(){return q})),n.d(t,"MODES",(function(){return W})),n.d(t,"START_SYNC_WMS",(function(){return K})),n.d(t,"STOP_SYNC_WMS",(function(){return Q})),n.d(t,"STORE_ADVANCED_SEARCH_FILTER",(function(){return Z})),n.d(t,"LOAD_MORE_FEATURES",(function(){return $})),n.d(t,"GRID_QUERY_RESULT",(function(){return X})),n.d(t,"SET_TIME_SYNC",(function(){return J})),n.d(t,"toggleShowAgain",(function(){return ee})),n.d(t,"hideSyncPopover",(function(){return te})),n.d(t,"fatureGridQueryResult",(function(){return ne})),n.d(t,"storeAdvancedSearchFilter",(function(){return re})),n.d(t,"initPlugin",(function(){return oe})),n.d(t,"clearChangeConfirmed",(function(){return ie})),n.d(t,"closeFeatureGridConfirmed",(function(){return ae})),n.d(t,"selectFeatures",(function(){return ce})),n.d(t,"setUp",(function(){return se})),n.d(t,"geometryChanged",(function(){return ue})),n.d(t,"startEditingFeature",(function(){return le})),n.d(t,"startDrawingFeature",(function(){return pe})),n.d(t,"deselectFeatures",(function(){return fe})),n.d(t,"deleteGeometry",(function(){return de})),n.d(t,"deleteGeometryFeature",(function(){return me})),n.d(t,"clearSelection",(function(){return be})),n.d(t,"toggleSelection",(function(){return ye})),n.d(t,"setSelectionOptions",(function(){return ge})),n.d(t,"setFeatures",(function(){return he})),n.d(t,"dockSizeFeatures",(function(){return Se})),n.d(t,"sort",(function(){return ve})),n.d(t,"changePage",(function(){return Oe})),n.d(t,"setLayer",(function(){return Ee})),n.d(t,"updateFilter",(function(){return je})),n.d(t,"toggleTool",(function(){return we})),n.d(t,"customizeAttribute",(function(){return Ae})),n.d(t,"toggleEditMode",(function(){return Te})),n.d(t,"toggleViewMode",(function(){return _e})),n.d(t,"featureModified",(function(){return xe})),n.d(t,"createNewFeatures",(function(){return Pe})),n.d(t,"saveChanges",(function(){return Me})),n.d(t,"saveSuccess",(function(){return Re})),n.d(t,"deleteFeaturesConfirm",(function(){return Ce})),n.d(t,"deleteFeatures",(function(){return Ie})),n.d(t,"featureSaving",(function(){return De})),n.d(t,"clearChanges",(function(){return Ne})),n.d(t,"saveError",(function(){return Le})),n.d(t,"closeFeatureGridConfirm",(function(){return ke})),n.d(t,"closeFeatureGrid",(function(){return Fe})),n.d(t,"openFeatureGrid",(function(){return Ge})),n.d(t,"disableToolbar",(function(){return Ue})),n.d(t,"setPermission",(function(){return Be})),n.d(t,"openAdvancedSearch",(function(){return He})),n.d(t,"zoomAll",(function(){return ze})),n.d(t,"startSyncWMS",(function(){return Ye})),n.d(t,"sizeChange",(function(){return Ve})),n.d(t,"moreFeatures",(function(){return qe})),n.d(t,"activateTemporaryChanges",(function(){return We})),n.d(t,"deactivateGeometryFilter",(function(){return Ke})),n.d(t,"setTimeSync",(function(){return Qe}));var r="FEATUREGRID:SET_UP",o="FEATUREGRID:SELECT_FEATURES",i="FEATUREGRID:DESELECT_FEATURES",a="FEATUREGRID:CLEAR_SELECTION",c="FEATUREGRID:SET_SELECTION_OPTIONS",s="FEATUREGRID:TOGGLE_MODE",u="FEATUREGRID:TOGGLE_FEATURES_SELECTION",l="FEATUREGRID:FEATURES_MODIFIED",p="FEATUREGRID:NEW_FEATURE",f="FEATUREGRID:SAVE_CHANGES",d="FEATUREGRID:SAVING",m="FEATUREGRID:START_EDITING_FEATURE",b="FEATUREGRID:START_DRAWING_FEATURE",y="FEATUREGRID:DELETE_GEOMETRY",g="FEATUREGRID:DELETE_GEOMETRY_FEATURE",h="FEATUREGRID:SAVE_SUCCESS",S="FEATUREGRID:CLEAR_CHANGES",v="FEATUREGRID:SAVE_ERROR",O="FEATUREGRID:DELETE_SELECTED_FEATURES",E="FEATUREGRID:DELETE_SELECTED_FEATURES_CONFIRM",j="SET_FEATURES",w="FEATUREGRID:SORT_BY",A="FEATUREGRID:SET_LAYER",T="QUERY:UPDATE_FILTER",_="FEATUREGRID:CHANGE_PAGE",x="FEATUREGRID:GEOMETRY_CHANGED",P="DOCK_SIZE_FEATURES",M="FEATUREGRID:TOGGLE_TOOL",R="FEATUREGRID:CUSTOMIZE_ATTRIBUTE",C="ASK_CLOSE_FEATURE_GRID_CONFIRM",I="FEATUREGRID:OPEN_GRID",D="FEATUREGRID:CLOSE_GRID",N="FEATUREGRID:CLEAR_CHANGES_CONFIRMED",L="FEATUREGRID:FEATURE_GRID_CLOSE_CONFIRMED",k="FEATUREGRID:SET_PERMISSION",F="FEATUREGRID:DISABLE_TOOLBAR",G="FEATUREGRID:ACTIVATE_TEMPORARY_CHANGES",U="FEATUREGRID:DEACTIVATE_GEOMETRY_FILTER",B="FEATUREGRID:ADVANCED_SEARCH",H="FEATUREGRID:ZOOM_ALL",z="FEATUREGRID:INIT_PLUGIN",Y="FEATUREGRID:SIZE_CHANGE",V="FEATUREGRID:TOGGLE_SHOW_AGAIN_FLAG",q="FEATUREGRID:HIDE_SYNC_POPOVER",W={EDIT:"EDIT",VIEW:"VIEW"},K="FEATUREGRID:START_SYNC_WMS",Q="FEATUREGRID:STOP_SYNC_WMS",Z="STORE_ADVANCED_SEARCH_FILTER",$="LOAD_MORE_FEATURES",X="FEATUREGRID:QUERY_RESULT",J="FEATUREGRID:SET_TIME_SYNC";function ee(){return{type:V}}function te(){return{type:q}}function ne(e,t){return{type:X,features:e,pages:t}}function re(e){return{type:Z,filterObj:e}}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:z,options:e}}function ie(){return{type:N}}function ae(){return{type:L}}function ce(e,t){return{type:o,features:e,append:t}}function se(e){return{type:r,options:e}}function ue(e){return{type:x,features:e}}function le(){return{type:m}}function pe(){return{type:b}}function fe(e){return{type:i,features:e}}function de(){return{type:y}}function me(e){return{type:g,features:e}}function be(){return{type:a}}function ye(e){return{type:u,features:e}}function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiselect,n=void 0!==t&&t;return{type:c,multiselect:n}}function he(e){return{type:j,features:e}}function Se(e){return{type:P,dockSize:e}}function ve(e,t){return{type:w,sortBy:e,sortOrder:t}}function Oe(e,t){return{type:_,page:e,size:t}}function Ee(e){return{type:A,id:e}}function je(e){return{type:T,update:e}}function we(e,t){return{type:M,tool:e,value:t}}function Ae(e,t,n){return{type:R,name:e,key:t,value:n}}function Te(){return{type:s,mode:W.EDIT}}function _e(){return{type:s,mode:W.VIEW}}function xe(e,t){return{type:l,features:e,updated:t}}function Pe(e){return{type:p,features:e}}function Me(){return{type:f}}function Re(){return{type:h}}function Ce(){return{type:E}}function Ie(){return{type:O}}function De(){return{type:d}}function Ne(){return{type:S}}function Le(){return{type:v}}function ke(){return{type:C}}function Fe(){return{type:D}}function Ge(){return{type:I}}function Ue(e){return{type:F,disabled:e}}function Be(e){return{type:k,permission:e}}function He(){return{type:B}}function ze(){return{type:H}}function Ye(){return{type:K}}function Ve(e,t){return{type:Y,size:e,dockProps:t}}var qe=function(e){return{type:$,pages:e}},We=function(e){return{type:G,activated:e}},Ke=function(e){return{type:U,deactivated:e}},Qe=function(e){return{type:J,value:e}}},"./MapStore2/web/client/actions/fullscreen.js":function(e,t,n){"use strict";n.r(t),n.d(t,"TOGGLE_FULLSCREEN",(function(){return r})),n.d(t,"toggleFullscreen",(function(){return o}));var r="TOGGLE_FULLSCREEN";function o(e,t){return{type:r,enable:e,elementSelector:t}}},"./MapStore2/web/client/actions/highlight.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return c}));var r="HIGHLIGHT_STATUS",o="UPDATE_HIGHLIGHTED",i="HIGHLIGHT:SET_HIGHLIGHT_FEATURES_PATH";function a(e){return{type:i,featuresPath:e}}function c(e,t){return{type:o,features:e,status:t}}},"./MapStore2/web/client/actions/locate.js":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a}));var r="CHANGE_LOCATE_STATE",o="LOCATE_ERROR";function i(e){return{type:r,state:e}}function a(e){return{type:o,error:e}}},"./MapStore2/web/client/actions/mapInfo.js":function(e,t,n){"use strict";n.r(t),n.d(t,"LOAD_FEATURE_INFO",(function(){return i})),n.d(t,"ERROR_FEATURE_INFO",(function(){return a})),n.d(t,"EXCEPTIONS_FEATURE_INFO",(function(){return c})),n.d(t,"CHANGE_MAPINFO_STATE",(function(){return s})),n.d(t,"NEW_MAPINFO_REQUEST",(function(){return u})),n.d(t,"PURGE_MAPINFO_RESULTS",(function(){return l})),n.d(t,"CHANGE_MAPINFO_FORMAT",(function(){return p})),n.d(t,"SHOW_MAPINFO_MARKER",(function(){return f})),n.d(t,"HIDE_MAPINFO_MARKER",(function(){return d})),n.d(t,"SHOW_REVERSE_GEOCODE",(function(){return m})),n.d(t,"HIDE_REVERSE_GEOCODE",(function(){return b})),n.d(t,"GET_VECTOR_INFO",(function(){return y})),n.d(t,"NO_QUERYABLE_LAYERS",(function(){return g})),n.d(t,"CLEAR_WARNING",(function(){return h})),n.d(t,"FEATURE_INFO_CLICK",(function(){return S})),n.d(t,"UPDATE_FEATURE_INFO_CLICK_POINT",(function(){return v})),n.d(t,"TOGGLE_HIGHLIGHT_FEATURE",(function(){return O})),n.d(t,"TOGGLE_MAPINFO_STATE",(function(){return E})),n.d(t,"UPDATE_CENTER_TO_MARKER",(function(){return j})),n.d(t,"CHANGE_PAGE",(function(){return w})),n.d(t,"CLOSE_IDENTIFY",(function(){return A})),n.d(t,"CHANGE_FORMAT",(function(){return T})),n.d(t,"TOGGLE_SHOW_COORD_EDITOR",(function(){return _})),n.d(t,"EDIT_LAYER_FEATURES",(function(){return x})),n.d(t,"SET_CURRENT_EDIT_FEATURE_QUERY",(function(){return P})),n.d(t,"SET_MAP_TRIGGER",(function(){return M})),n.d(t,"TOGGLE_EMPTY_MESSAGE_GFI",(function(){return R})),n.d(t,"toggleEmptyMessageGFI",(function(){return C})),n.d(t,"loadFeatureInfo",(function(){return I})),n.d(t,"errorFeatureInfo",(function(){return D})),n.d(t,"exceptionsFeatureInfo",(function(){return N})),n.d(t,"noQueryableLayers",(function(){return L})),n.d(t,"clearWarning",(function(){return k})),n.d(t,"newMapInfoRequest",(function(){return F})),n.d(t,"getVectorInfo",(function(){return G})),n.d(t,"changeMapInfoState",(function(){return U})),n.d(t,"purgeMapInfoResults",(function(){return B})),n.d(t,"changeMapInfoFormat",(function(){return H})),n.d(t,"showMapinfoMarker",(function(){return z})),n.d(t,"hideMapinfoMarker",(function(){return Y})),n.d(t,"revGeocodeInfo",(function(){return V})),n.d(t,"showMapinfoRevGeocode",(function(){return q})),n.d(t,"hideMapinfoRevGeocode",(function(){return W})),n.d(t,"toggleMapInfoState",(function(){return K})),n.d(t,"updateCenterToMarker",(function(){return Q})),n.d(t,"featureInfoClick",(function(){return Z})),n.d(t,"updateFeatureInfoClickPoint",(function(){return $})),n.d(t,"toggleHighlightFeature",(function(){return X})),n.d(t,"changePage",(function(){return J})),n.d(t,"closeIdentify",(function(){return ee})),n.d(t,"changeFormat",(function(){return te})),n.d(t,"toggleShowCoordinateEditor",(function(){return ne})),n.d(t,"editLayerFeatures",(function(){return re})),n.d(t,"setCurrentEditFeatureQuery",(function(){return oe})),n.d(t,"setMapTrigger",(function(){return ie}));var r=n("./MapStore2/web/client/api/Nominatim.js"),o=n.n(r),i="LOAD_FEATURE_INFO",a="ERROR_FEATURE_INFO",c="EXCEPTIONS_FEATURE_INFO",s="CHANGE_MAPINFO_STATE",u="NEW_MAPINFO_REQUEST",l="PURGE_MAPINFO_RESULTS",p="CHANGE_MAPINFO_FORMAT",f="SHOW_MAPINFO_MARKER",d="HIDE_MAPINFO_MARKER",m="SHOW_REVERSE_GEOCODE",b="HIDE_REVERSE_GEOCODE",y="GET_VECTOR_INFO",g="NO_QUERYABLE_LAYERS",h="CLEAR_WARNING",S="FEATURE_INFO_CLICK",v="IDENTIFY:UPDATE_FEATURE_INFO_CLICK_POINT",O="IDENTIFY:TOGGLE_HIGHLIGHT_FEATURE",E="TOGGLE_MAPINFO_STATE",j="UPDATE_CENTER_TO_MARKER",w="IDENTIFY:CHANGE_PAGE",A="IDENTIFY:CLOSE_IDENTIFY",T="IDENTIFY:CHANGE_FORMAT",_="IDENTIFY:TOGGLE_SHOW_COORD_EDITOR",x="IDENTIFY:EDIT_LAYER_FEATURES",P="IDENTIFY:CURRENT_EDIT_FEATURE_QUERY",M="IDENTIFY:SET_MAP_TRIGGER",R="IDENTIFY:TOGGLE_EMPTY_MESSAGE_GFI",C=function(){return{type:R}};function I(e,t,n,r,o){return{type:i,data:t,reqId:e,requestParams:n,layerMetadata:r,layer:o}}function D(e,t,n,r){return{type:a,error:t,reqId:e,requestParams:n,layerMetadata:r}}function N(e,t,n,r){return{type:c,reqId:e,exceptions:t,requestParams:n,layerMetadata:r}}function L(){return{type:g}}function k(){return{type:h}}function F(e,t){return{type:u,reqId:e,request:t}}function G(e,t,n,r){return{type:y,layer:e,request:t,metadata:n,queryableLayers:r}}function U(e){return{type:s,enabled:e}}function B(){return{type:l}}function H(e){return{type:p,infoFormat:e}}function z(){return{type:f}}function Y(){return{type:d}}function V(e){return{type:m,reverseGeocodeData:e.data}}function q(e){return function(t){o.a.reverseGeocode(e).then((function(e){t(V(e))})).catch((function(e){t(V(e))}))}}function W(){return{type:b}}function K(){return{type:E}}function Q(e){return{type:j,status:e}}function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{type:S,point:e,layer:t,filterNameList:n,overrideParams:r,itemId:o}}function $(e){return{type:v,point:e}}function X(e){return{type:O,enabled:e}}function J(e){return{type:w,index:e}}var ee=function(){return{type:A}},te=function(e){return{type:T,format:e}},ne=function(e){return{type:_,showCoordinateEditor:e}},re=function(e){return{type:x,layer:e}},oe=function(e){return{type:P,query:e}},ie=function(e){return{type:M,trigger:e}}},"./MapStore2/web/client/actions/mapPopups.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2&&void 0!==arguments[2])||arguments[2];return{type:"MAP:ADD_POPUP",id:e,popup:o({id:e},t),single:n}},s=function(e){return{type:a,id:e}},u=function(){return{type:"MAP:CLEAN_POPUPS"}}},"./MapStore2/web/client/actions/maplayout.js":function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_MAP_LAYOUT",(function(){return r})),n.d(t,"updateMapLayout",(function(){return o}));var r="MAP_LAYOUT:UPDATE_MAP_LAYOUT";function o(e){return{type:r,layout:e}}},"./MapStore2/web/client/actions/measurement.js":function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,"CHANGE_MEASUREMENT_TOOL",(function(){return i})),n.d(t,"CHANGE_MEASUREMENT_STATE",(function(){return a})),n.d(t,"CHANGE_UOM",(function(){return c})),n.d(t,"CHANGED_GEOMETRY",(function(){return s})),n.d(t,"SET_TEXT_LABELS",(function(){return u})),n.d(t,"SET_CURRENT_FEATURE",(function(){return l})),n.d(t,"ADD_AS_LAYER",(function(){return p})),n.d(t,"RESET_GEOMETRY",(function(){return f})),n.d(t,"CHANGE_FORMAT",(function(){return d})),n.d(t,"CHANGE_COORDINATES",(function(){return m})),n.d(t,"ADD_MEASURE_AS_ANNOTATION",(function(){return b})),n.d(t,"UPDATE_MEASURES",(function(){return y})),n.d(t,"INIT",(function(){return g})),n.d(t,"SET_MEASUREMENT_CONFIG",(function(){return h})),n.d(t,"SET_ANNOTATION_MEASUREMENT",(function(){return S})),n.d(t,"addAnnotation",(function(){return v})),n.d(t,"toggleMeasurement",(function(){return O})),n.d(t,"changeMeasurement",(function(){return E})),n.d(t,"setAnnotationMeasurement",(function(){return j})),n.d(t,"changeUom",(function(){return w})),n.d(t,"changeGeometry",(function(){return A})),n.d(t,"setMeasurementConfig",(function(){return T})),n.d(t,"setTextLabels",(function(){return _})),n.d(t,"setCurrentFeature",(function(){return x})),n.d(t,"addAsLayer",(function(){return P})),n.d(t,"changeFormatMeasurement",(function(){return M})),n.d(t,"changeCoordinates",(function(){return R})),n.d(t,"resetGeometry",(function(){return C})),n.d(t,"updateMeasures",(function(){return I})),n.d(t,"changeMeasurementState",(function(){return D})),n.d(t,"init",(function(){return N}));var i="CHANGE_MEASUREMENT_TOOL",a="CHANGE_MEASUREMENT_STATE",c="MEASUREMENT:CHANGE_UOM",s="MEASUREMENT:CHANGED_GEOMETRY",u="MEASUREMENT:SET_TEXT_LABELS",l="MEASUREMENT:SET_CURRENT_FEATURE",p="MEASUREMENT:ADD_AS_LAYER",f="MEASUREMENT:RESET_GEOMETRY",d="MEASUREMENT:CHANGE_FORMAT",m="MEASUREMENT:CHANGE_COORDINATES",b="MEASUREMENT:ADD_MEASURE_AS_ANNOTATION",y="MEASUREMENT:UPDATE_MEASURES",g="MEASUREMENT:INIT",h="MEASUREMENT:SET_MEASUREMENT_CONFIG",S="MEASUREMENT:SET_ANNOTATION_MEASUREMENT";function v(e,t,n,r,o){return{type:b,features:e,textLabels:t,uom:n,save:r,id:o}}function O(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:g,defaultOptions:e}}},"./MapStore2/web/client/actions/playback.js":function(e,t,n){"use strict";n.r(t),n.d(t,"PLAY",(function(){return r})),n.d(t,"PAUSE",(function(){return o})),n.d(t,"STOP",(function(){return i})),n.d(t,"SET_FRAMES",(function(){return a})),n.d(t,"APPEND_FRAMES",(function(){return c})),n.d(t,"FRAMES_LOADING",(function(){return s})),n.d(t,"SET_CURRENT_FRAME",(function(){return u})),n.d(t,"SELECT_PLAYBACK_RANGE",(function(){return l})),n.d(t,"CHANGE_SETTING",(function(){return p})),n.d(t,"TOGGLE_ANIMATION_MODE",(function(){return f})),n.d(t,"ANIMATION_STEP_MOVE",(function(){return d})),n.d(t,"UPDATE_METADATA",(function(){return m})),n.d(t,"STATUS",(function(){return b})),n.d(t,"play",(function(){return y})),n.d(t,"pause",(function(){return g})),n.d(t,"stop",(function(){return h})),n.d(t,"setFrames",(function(){return S})),n.d(t,"setCurrentFrame",(function(){return v})),n.d(t,"appendFrames",(function(){return O})),n.d(t,"framesLoading",(function(){return E})),n.d(t,"selectPlaybackRange",(function(){return j})),n.d(t,"changeSetting",(function(){return w})),n.d(t,"toggleAnimationMode",(function(){return A})),n.d(t,"animationStepMove",(function(){return T})),n.d(t,"updateMetadata",(function(){return _}));var r="PLAYBACK:START",o="PLAYBACK:PAUSE",i="PLAYBACK:STOP",a="PLAYBACK:SET_FRAMES",c="PLAYBACK:APPEND_FRAMES",s="PLAYBACK:FRAMES_LOADING",u="PLAYBACK:SET_CURRENT_FRAME",l="PLAYBACK:SELECT_PLAYBACK_RANGE",p="PLAYBACK:SETTINGS_CHANGE",f="PLAYBACK:TOGGLE_ANIMATION_MODE",d="PLAYBACK:ANIMATION_STEP_MOVE",m="PLAYBACK:UPDATE_METADATA",b={PLAY:"PLAY",STOP:"STOP",PAUSE:"PAUSE"},y=function(){return{type:r}},g=function(){return{type:o}},h=function(){return{type:i}},S=function(e){return{type:a,frames:e}},v=function(e){return{type:u,frame:e}},O=function(e){return{type:c,frames:e}},E=function(e){return{type:s,loading:e}},j=function(e){return{type:l,range:e}},w=function(e,t){return{type:p,name:e,value:t}},A=function(){return{type:f}},T=function(e){return{type:d,direction:e}},_=function(e){var t=e.next,n=e.previous,r=e.forTime;return{type:m,forTime:r,next:t,previous:n}}},"./MapStore2/web/client/actions/search.js":function(e,t,n){"use strict";n.r(t),n.d(t,"SEARCH_LAYER_WITH_FILTER",(function(){return o})),n.d(t,"TEXT_SEARCH_STARTED",(function(){return i})),n.d(t,"TEXT_SEARCH_RESULTS_LOADED",(function(){return a})),n.d(t,"TEXT_SEARCH_PERFORMED",(function(){return c})),n.d(t,"TEXT_SEARCH_RESULTS_PURGE",(function(){return s})),n.d(t,"TEXT_SEARCH_RESET",(function(){return u})),n.d(t,"TEXT_SEARCH_ADD_MARKER",(function(){return l})),n.d(t,"TEXT_SEARCH_TEXT_CHANGE",(function(){return p})),n.d(t,"TEXT_SEARCH_LOADING",(function(){return f})),n.d(t,"TEXT_SEARCH_NESTED_SERVICES_SELECTED",(function(){return d})),n.d(t,"TEXT_SEARCH_ERROR",(function(){return m})),n.d(t,"TEXT_SEARCH_CANCEL_ITEM",(function(){return b})),n.d(t,"TEXT_SEARCH_ITEM_SELECTED",(function(){return y})),n.d(t,"TEXT_SEARCH_SHOW_GFI",(function(){return g})),n.d(t,"TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",(function(){return h})),n.d(t,"UPDATE_RESULTS_STYLE",(function(){return S})),n.d(t,"CHANGE_SEARCH_TOOL",(function(){return v})),n.d(t,"ZOOM_ADD_POINT",(function(){return O})),n.d(t,"CHANGE_FORMAT",(function(){return E})),n.d(t,"CHANGE_COORD",(function(){return j})),n.d(t,"changeFormat",(function(){return w})),n.d(t,"searchLayerWithFilter",(function(){return A})),n.d(t,"zoomAndAddPoint",(function(){return T})),n.d(t,"changeActiveSearchTool",(function(){return _})),n.d(t,"searchResultLoaded",(function(){return x})),n.d(t,"searchTextChanged",(function(){return P})),n.d(t,"searchTextLoading",(function(){return M})),n.d(t,"searchResultError",(function(){return R})),n.d(t,"resultsPurge",(function(){return C})),n.d(t,"resetSearch",(function(){return I})),n.d(t,"addMarker",(function(){return D})),n.d(t,"textSearch",(function(){return N})),n.d(t,"selectSearchItem",(function(){return L})),n.d(t,"showGFI",(function(){return k})),n.d(t,"selectNestedService",(function(){return F})),n.d(t,"cancelSelectedItem",(function(){return G})),n.d(t,"setHighlightedFeature",(function(){return U})),n.d(t,"updateResultsStyle",(function(){return B})),n.d(t,"changeCoord",(function(){return H})),n.d(t,"nonQueriableLayerError",(function(){return z})),n.d(t,"serverError",(function(){return Y}));var r=n("./MapStore2/web/client/actions/notifications.js"),o="SEARCH:SEARCH_WITH_FILTER",i="TEXT_SEARCH_STARTED",a="TEXT_SEARCH_RESULTS_LOADED",c="TEXT_SEARCH_PERFORMED",s="TEXT_SEARCH_RESULTS_PURGE",u="TEXT_SEARCH_RESET",l="TEXT_SEARCH_ADD_MARKER",p="TEXT_SEARCH_TEXT_CHANGE",f="TEXT_SEARCH_LOADING",d="TEXT_SEARCH_NESTED_SERVICE_SELECTED",m="TEXT_SEARCH_ERROR",b="TEXT_SEARCH_CANCEL_ITEM",y="TEXT_SEARCH_ITEM_SELECTED",g="TEXT_SEARCH_SHOW_GFI",h="TEXT_SEARCH_SET_HIGHLIGHTED_FEATURE",S="UPDATE_RESULTS_STYLE",v="CHANGE_SEARCH_TOOL",O="SEARCH:ZOOM_ADD_POINT",E="SEARCH:CHANGE_FORMAT",j="SEARCH:CHANGE_COORD";function w(e){return{type:E,format:e}}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layer,n=e.cql_filter;return{type:o,layer:t,cql_filter:n}}function T(e,t,n){return{type:O,pos:e,zoom:t,crs:n}}function _(e){return{type:v,activeSearchTool:e}}function x(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return{type:a,results:e,append:t,services:n}}function P(e){return{type:p,searchText:e}}function M(e){return{type:f,loading:e}}function R(e){return{type:m,error:e}}function C(){return{type:s}}function I(){return{type:u}}function D(e,t){return{type:l,markerPosition:e,markerLabel:t}}function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.services,r=void 0===n?null:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;return{type:i,searchText:e,services:r,maxResults:o}}function L(e,t,n){return{type:y,item:e,mapConfig:t,resultsStyle:n}}var k=function(e){return{type:g,item:e}};function F(e,t,n){return{type:d,searchText:n,services:e,items:t}}function G(e){return{type:b,item:e}}function U(e){return{type:h,highlightedFeature:e}}function B(e){return{type:S,style:e}}function H(e,t){return{type:j,coord:e,val:t}}function z(){return Object(r.error)({title:"Error",position:"tc",message:"search.errors.nonQueriableLayers",autoDismiss:10})}function Y(){return Object(r.error)({title:"Error",position:"tc",message:"search.errors.serverError",autoDismiss:10})}},"./MapStore2/web/client/actions/styleeditor.js":function(e,t,n){"use strict";n.r(t),n.d(t,"TOGGLE_STYLE_EDITOR",(function(){return r})),n.d(t,"SELECT_STYLE_TEMPLATE",(function(){return o})),n.d(t,"UPDATE_TEMPORARY_STYLE",(function(){return i})),n.d(t,"UPDATE_STATUS",(function(){return a})),n.d(t,"RESET_STYLE_EDITOR",(function(){return c})),n.d(t,"ADD_STYLE",(function(){return s})),n.d(t,"CREATE_STYLE",(function(){return u})),n.d(t,"LOADING_STYLE",(function(){return l})),n.d(t,"LOADED_STYLE",(function(){return p})),n.d(t,"ERROR_STYLE",(function(){return f})),n.d(t,"UPDATE_STYLE_CODE",(function(){return d})),n.d(t,"EDIT_STYLE_CODE",(function(){return m})),n.d(t,"DELETE_STYLE",(function(){return b})),n.d(t,"INIT_STYLE_SERVICE",(function(){return y})),n.d(t,"SET_EDIT_PERMISSION",(function(){return g})),n.d(t,"SET_DEFAULT_STYLE",(function(){return h})),n.d(t,"UPDATE_EDITOR_METADATA",(function(){return S})),n.d(t,"toggleStyleEditor",(function(){return v})),n.d(t,"updateStatus",(function(){return O})),n.d(t,"selectStyleTemplate",(function(){return E})),n.d(t,"updateTemporaryStyle",(function(){return j})),n.d(t,"loadingStyle",(function(){return w})),n.d(t,"loadedStyle",(function(){return A})),n.d(t,"createStyle",(function(){return T})),n.d(t,"resetStyleEditor",(function(){return _})),n.d(t,"addStyle",(function(){return x})),n.d(t,"errorStyle",(function(){return P})),n.d(t,"updateStyleCode",(function(){return M})),n.d(t,"editStyleCode",(function(){return R})),n.d(t,"deleteStyle",(function(){return C})),n.d(t,"initStyleService",(function(){return I})),n.d(t,"setEditPermissionStyleEditor",(function(){return D})),n.d(t,"setDefaultStyle",(function(){return N})),n.d(t,"updateEditorMetadata",(function(){return L}));var r="STYLEEDITOR:TOGGLE_STYLE_EDITOR",o="STYLEEDITOR:SELECT_STYLE_TEMPLATE",i="STYLEEDITOR:UPDATE_TEMPORARY_STYLE",a="STYLEEDITOR:UPDATE_STATUS",c="STYLEEDITOR:RESET_STYLE_EDITOR",s="STYLEEDITOR:ADD_STYLE",u="STYLEEDITOR:CREATE_STYLE",l="STYLEEDITOR:LOADING_STYLE",p="STYLEEDITOR:LOADED_STYLE",f="STYLEEDITOR:ERROR_STYLE",d="STYLEEDITOR:UPDATE_STYLE_CODE",m="STYLEEDITOR:EDIT_STYLE_CODE",b="STYLEEDITOR:DELETE_STYLE",y="STYLEEDITOR:INIT_STYLE_SERVICE",g="STYLEEDITOR:SET_EDIT_PERMISSION",h="STYLEEDITOR:SET_DEFAULT_STYLE",S="STYLEEDITOR:UPDATE_EDITOR_METADATA";function v(e,t){return{type:r,layer:e,enabled:t}}function O(e){return{type:a,status:e}}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.code,n=e.templateId,r=e.format,i=e.languageVersion,a=e.init;return{type:o,code:t,templateId:n,format:r,init:a,languageVersion:i}}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.temporaryId,n=e.templateId,r=e.code,o=e.format,a=e.languageVersion,c=e.init;return{type:i,temporaryId:t,templateId:n,code:r,format:o,init:c,languageVersion:a}}function w(e){return{type:l,status:e}}function A(){return{type:p}}function T(e){return{type:u,settings:e}}function _(){return{type:c}}function x(e){return{type:s,add:e}}function P(e,t){return{type:f,status:e,error:t}}function M(){return{type:d}}function R(e){return{type:m,code:e}}function C(e){return{type:b,styleName:e}}function I(e,t){return{type:y,service:e,canEdit:t}}function D(e){return{type:g,canEdit:e}}function N(){return{type:h}}function L(e){return{type:S,metadata:e}}},"./MapStore2/web/client/actions/wfsquery.js":function(e,t,n){"use strict";n.r(t),n.d(t,"LAYER_SELECTED_FOR_SEARCH",(function(){return a})),n.d(t,"FEATURE_TYPE_SELECTED",(function(){return c})),n.d(t,"FEATURE_TYPE_LOADED",(function(){return s})),n.d(t,"FEATURE_LOADED",(function(){return u})),n.d(t,"FEATURE_LOADING",(function(){return l})),n.d(t,"FEATURE_TYPE_ERROR",(function(){return p})),n.d(t,"FEATURE_ERROR",(function(){return f})),n.d(t,"QUERY_CREATE",(function(){return d})),n.d(t,"UPDATE_QUERY",(function(){return m})),n.d(t,"QUERY_RESULT",(function(){return b})),n.d(t,"QUERY_ERROR",(function(){return y})),n.d(t,"RESET_QUERY",(function(){return g})),n.d(t,"QUERY",(function(){return h})),n.d(t,"INIT_QUERY_PANEL",(function(){return S})),n.d(t,"TOGGLE_SYNC_WMS",(function(){return v})),n.d(t,"TOGGLE_LAYER_FILTER",(function(){return O})),n.d(t,"toggleSyncWms",(function(){return E})),n.d(t,"toggleLayerFilter",(function(){return j})),n.d(t,"layerSelectedForSearch",(function(){return w})),n.d(t,"initQueryPanel",(function(){return A})),n.d(t,"featureTypeSelected",(function(){return T})),n.d(t,"featureTypeLoaded",(function(){return _})),n.d(t,"featureTypeError",(function(){return x})),n.d(t,"featureLoading",(function(){return P})),n.d(t,"featureLoaded",(function(){return M})),n.d(t,"featureError",(function(){return R})),n.d(t,"querySearchResponse",(function(){return C})),n.d(t,"queryError",(function(){return I})),n.d(t,"updateQuery",(function(){return D})),n.d(t,"loadFeature",(function(){return N})),n.d(t,"createQuery",(function(){return L})),n.d(t,"query",(function(){return k})),n.d(t,"resetQuery",(function(){return F}));var r=n("./MapStore2/web/client/libs/ajax.js"),o=n.n(r);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="LAYER_SELECTED_FOR_SEARCH",c="FEATURE_TYPE_SELECTED",s="FEATURE_TYPE_LOADED",u="FEATURE_LOADED",l="FEATURE_LOADING",p="FEATURE_TYPE_ERROR",f="FEATURE_ERROR",d="QUERY_CREATE",m="QUERY:UPDATE_QUERY",b="QUERY_RESULT",y="QUERY_ERROR",g="RESET_QUERY",h="QUERY",S="INIT_QUERY_PANEL",v="QUERY:TOGGLE_SYNC_WMS",O="QUERY:TOGGLE_LAYER_FILTER";function E(){return{type:v}}function j(){return{type:O}}function w(e){return{type:a,id:e}}function A(){return{type:S}}function T(e,t){return{type:c,url:e,typeName:t}}function _(e,t){return{type:s,typeName:e,featureType:t}}function x(e,t){return{type:p,typeName:e,error:t}}function P(e){return{type:l,isLoading:e}}function M(e,t){return{type:u,typeName:e,feature:t}}function R(e,t){return{type:f,typeName:e,error:t}}function C(e,t,n,r,o){return{type:b,searchUrl:t,filterObj:n,result:e,queryOptions:r,reason:o}}function I(e){return{type:y,error:e}}function D(e,t){return{type:m,updates:e,reason:t}}function N(e,t){return function(n){return o.a.get(e+"?service=WFS&version=1.1.0&request=GetFeature&typeName="+t+"&outputFormat=application/json").then((function(e){if("object"===i(e.data))n(M(t,e.data));else try{JSON.parse(e.data)}catch(e){n(R(t,"Error from WFS: "+e.message))}})).catch((function(e){n(R(t,e))}))}}function L(e,t){return{type:d,searchUrl:e,filterObj:t}}function k(e,t,n,r){return{type:h,searchUrl:e,filterObj:t,queryOptions:n,reason:r}}function F(){return{type:g}}},"./MapStore2/web/client/api/CSW.js":function(e,t,n){var r=n("./MapStore2/web/client/libs/ajax.js"),o=n("./node_modules/lodash/lodash.js"),i=n("./node_modules/url/url.js"),a=n("./MapStore2/web/client/utils/ConfigUtils.js").default,c=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),s=n("./node_modules/object-assign/index.js"),u=function(e){var t=i.parse(e,!0);return i.format(s({},t,{search:null},{query:s({service:"CSW",version:"2.0.2"},t.query,{request:void 0})}))},l={parseUrl:u,getRecordById:function(e){return new Promise((function(t){Promise.all([n.e(0),n.e(23)]).then(function(){t(r.get(e).then((function(e){if(e){var t=n("./MapStore2/web/client/utils/ogc/CSW.js").unmarshaller.unmarshalString(e.data);if(t&&t.name&&"GetRecordByIdResponse"===t.name.localPart&&t.value&&t.value.abstractRecord){var r=t.value.abstractRecord[0].value.dcElement;if(r){for(var o={references:[]},i=0;i=t-1&&r-1})),c=a.filter((function(e,r){return r>=t-1&&r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o.a.createElement("div",{className:"dropzone-errorBox alert-danger"},o.a.createElement("p",null,o.a.createElement(d.default,{msgId:"map.error"})),this.state.thumbnailErrors.map((function(t){return o.a.createElement("div",{id:"error"+t,key:"error"+t,className:"error"+t},e[t])}))):null}},{key:"renderSpecificTypeForm",value:function(){var e=this;return"wms"===this.props.layer.type?o.a.createElement(o.a.Fragment,null,o.a.createElement(b.FormGroup,{controlId:"formControlsSelect"},o.a.createElement(b.ControlLabel,null,o.a.createElement(d.default,{msgId:"layerProperties.format"})),o.a.createElement(c.default,{onChange:function(t){return e.setState({format:t&&t.value})},value:this.state.format||this.props.defaultFormat,clearable:!0,options:this.props.formatOptions})),this.renderStyleSelector(),o.a.createElement(D,null,o.a.createElement("div",{style:{display:"flex",alignItems:"center"}},o.a.createElement(b.ControlLabel,{style:{flex:1}},o.a.createElement(d.default,{msgId:"backgroundDialog.additionalParameters"})),o.a.createElement(D,{className:"square-button-md",tooltipId:"backgroundDialog.addAdditionalParameterTooltip",style:{borderColor:"transparent"},onClick:function(){var t=Math.max.apply(Math,A(e.state.additionalParameters.length>0?e.state.additionalParameters.map((function(e){return e.id})):[-1]))+1;e.setState({additionalParameters:[].concat(A(e.state.additionalParameters),[{id:t,type:"string",param:"",val:""}])})}},o.a.createElement(b.Glyphicon,{glyph:"plus"}))),this.state.additionalParameters.map((function(t){return o.a.createElement("div",{key:"val:"+t.id,style:{display:"flex",marginTop:8}},o.a.createElement("div",{style:{display:"flex",flex:1,marginRight:8}},o.a.createElement(b.FormControl,{style:{width:"50%",marginRight:8,minWidth:0},placeholder:S.a.getMessageById(e.context.messages,"backgroundDialog.parameter"),value:t.param,onChange:function(n){return e.addAdditionalParameter(n.target.value,"param",t.id,t.type)}}),"boolean"===t.type?o.a.createElement("div",{style:{width:"50%"}},o.a.createElement(c.default,{onChange:function(n){return e.addAdditionalParameter(n.value,"val",t.id,t.type)},clearable:!1,value:t.val,options:e.props.booleanOptions})):o.a.createElement(b.FormControl,{style:{width:"50%",minWidth:0},placeholder:S.a.getMessageById(e.context.messages,"backgroundDialog.value"),value:t.val.toString(),onChange:function(n){return e.addAdditionalParameter(n.target.value,"val",t.id,t.type)}})),o.a.createElement(c.default,{style:{flex:1,width:90},onChange:function(n){return e.addAdditionalParameter(t.val,"val",t.id,n.value)},clearable:!1,value:t.type,options:e.props.parameterTypeOptions.map((function(t){var n=t.label;return j(j({},w(t,["label"])),{},{label:S.a.getMessageById(e.context.messages,n)})}))}),o.a.createElement(D,{onClick:function(){return e.setState({additionalParameters:e.state.additionalParameters.filter((function(e){return t.id!==e.id}))})},tooltipId:"backgroundDialog.removeAdditionalParameterTooltip",className:"square-button-md",style:{borderColor:"transparent"}},o.a.createElement(b.Glyphicon,{glyph:"trash"})))})))):null}},{key:"render",value:function(){var e=this;return o.a.createElement(m.default,{fitContent:!0,title:o.a.createElement(d.default,{msgId:this.props.editing?"backgroundDialog.editTitle":"backgroundDialog.addTitle"}),show:!0,fade:!0,clickOutEnabled:!1,bodyClassName:"ms-flex modal-properties-container background-dialog",loading:this.props.loading,onClose:function(){e.props.onClose(),e.resetParameters()},buttons:this.props.loading?[]:[{text:o.a.createElement(d.default,{msgId:this.props.editing?"save":"backgroundDialog.add"}),bsStyle:"primary",onClick:function(){var t=e.props.editing?e.props.layer.id:p()(),n=e.props.layer.thumbURL||"",r=e.state.format||e.props.defaultFormat;e.props.updateThumbnail(e.state.thumbnail.data,t),e.props.onSave(u()({},e.props.layer,Object(f.omit)(e.state,"thumbnail"),e.props.editing?{}:{id:t},{params:Object(f.omit)(e.state.additionalParameters.reduce((function(e,t){return u()(e,I({},t.param,t.val))}),{}),["source","title"]),format:r,group:"background"},n||e.state.thumbnail.data?{thumbURL:e.state.thumbnail.url}:{})),e.resetParameters()}}]},o.a.createElement(b.Form,{style:{width:"100%"}},this.renderThumbnailErrors(),o.a.createElement(g.a,{onUpdate:function(t,n){return e.setState({thumbnail:{data:t,url:n}})},onError:function(t){return e.setState({thumbnailErrors:t})},message:o.a.createElement(d.default,{msgId:"backgroundDialog.thumbnailMessage"}),suggestion:"",map:{newThumbnail:Object(f.get)(this.state.thumbnail,"url")||"NODATA"}}),o.a.createElement(b.FormGroup,null,o.a.createElement(b.ControlLabel,null,o.a.createElement(d.default,{msgId:"layerProperties.title"})),o.a.createElement(b.FormControl,{value:this.state.title,placeholder:S.a.getMessageById(this.context.messages,"backgroundDialog.titlePlaceholder"),onChange:function(t){return e.setState({title:t.target.value})}})),this.renderSpecificTypeForm()))}}])&&_(t.prototype,n),r&&_(t,r),a}(o.a.Component);I(N,"propTypes",{loading:a.a.bool,editing:a.a.bool,layer:a.a.object,capabilities:a.a.object,onAdd:a.a.func,onClose:a.a.func,source:a.a.string,onSave:a.a.func,addParameters:a.a.func,updateThumbnail:a.a.func,thumbURL:a.a.string,title:a.a.string,format:a.a.string,style:a.a.string,thumbnail:a.a.object,additionalParameters:a.a.object,addParameter:a.a.func,defaultFormat:a.a.string,formatOptions:a.a.array,parameterTypeOptions:a.a.array,booleanOptions:a.a.array}),I(N,"contextTypes",{messages:a.a.object}),I(N,"defaultProps",{updateThumbnail:function(){},onClose:function(){},onSave:function(){},addParameters:function(){},addParameter:function(){},loading:!1,editing:!1,layer:{},capabilities:{},title:"",thumbnail:{},additionalParameters:{},formatOptions:[{label:"image/png",value:"image/png"},{label:"image/png8",value:"image/png8"},{label:"image/jpeg",value:"image/jpeg"},{label:"image/vnd.jpeg-png",value:"image/vnd.jpeg-png"},{label:"image/gif",value:"image/gif"}],parameterTypeOptions:[{label:"backgroundDialog.string",value:"string"},{label:"backgroundDialog.number",value:"number"},{label:"backgroundDialog.boolean",value:"boolean"}],booleanOptions:[{label:"True",value:!0},{label:"False",value:!1}]})},"./MapStore2/web/client/components/background/BackgroundSelector.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t1&&d.createElement(S,{glyph:"trash",className:"square-button-md background-tool-button delete-button",bsStyle:"primary",onClick:function(){e.props.onRemoveBackground(!0,i.title||i.name||"",i.id)}}),e.props.mapIsEditable&&!e.props.enabledCatalog&&!("wms"!==i.type&&"wmts"!==i.type&&"tms"!==i.type&&"tileprovider"!==i.type)&&d.createElement(S,{glyph:"wrench",className:"square-button-md background-tool-button edit-button",bsStyle:"primary",onClick:function(){e.props.addBackgroundProperties({layer:i,editing:!0})}})),d.createElement(h,{projection:e.props.projection,vertical:o,key:a,src:c,currentLayer:e.props.currentLayer,margin:r,side:t,frame:n,layer:i,onToggle:e.props.onToggle,onPropertiesChange:e.props.onPropertiesChange,onLayerChange:e.props.onLayerChange,setCurrentBackgroundLayer:e.props.setCurrentBackgroundLayer}))})):[]})),f(l(e),"getDimensions",(function(t,n,r,o,i,a){var c=i/2-(t+2*n+2*r)-o,s=t+2*n+2*r+(t+2*n+r)*a+o>i/2,u=Math.floor(c/(t+2*n+r));return u=u>a?a:u,{pagination:s,listSize:e.props.enabled?(t+n+r)*u+52:0,visibleIconsLength:u}})),f(l(e),"renderBackgroundSelector",(function(){var t=m({side:78,sidePreview:104,frame:3,margin:5,label:!0,vertical:!1},e.props.dimensions),n=2*t.frame,r=t.side-n,i=e.props.enabled?t.sidePreview-n:r,a=t.margin,c=e.props.enabled?i-2*n:0,s=e.props.enabled?e.props.tempLayer:e.props.currentLayer,u=e.getIcons(r,n,a,t.vertical),l=e.getDimensions(r,n,a,0,t.vertical?e.props.size.height:e.props.size.width,u.length),p=l.pagination,f=l.listSize,h=l.visibleIconsLength,S=r+n+a,E=r+n+2*a,j=t.vertical?{bottom:E,left:0,width:E,height:f}:{left:i+2*a+n,width:f,height:S},w=t.vertical?{height:S*h,width:S}:{height:S,width:S*h},A=e.props.modalParams&&e.props.modalParams.layer||{},T=(e.props.backgroundList||[]).find((function(e){return e.id===A.id})),_={title:A.title,format:A.format,style:A.style,additionalParameters:A.params,thumbnail:{data:T&&T.thumbnail,url:e.getThumb(A)}},x=e.props.confirmDeleteBackgroundModal||{show:!1},P=x.show,M=x.layerId,R=x.layerTitle;return h<=0&&!e.props.alwaysVisible&&e.props.enabled?null:d.createElement("span",null,d.createElement(O,{draggable:!1,modal:!0,show:P,onClose:function(){return e.props.onRemoveBackground(!1)},onConfirm:function(){e.props.removeBackground(M),e.props.onRemoveBackground(!1)},confirmButtonBSStyle:"default",confirmButtonContent:d.createElement(b,{msgId:"confirm"}),closeText:d.createElement(b,{msgId:"cancel"}),closeGlyph:"1-close"},d.createElement(b,{msgId:"backgroundSelector.confirmDelete",msgParams:{title:R}})),e.props.modalParams&&d.createElement(v,o({onClose:e.props.clearModal,onSave:function(t){e.props.modalParams.editing?(e.props.updateNode(t.id,"layers",t),e.props.onBackgroundEdit(t.id)):(e.props.addLayer(t),e.props.backgroundAdded(t.id))},updateThumbnail:e.props.onUpdateThumbnail},_,e.props.modalParams)),d.createElement("div",{className:"background-plugin-position",style:e.props.style},d.createElement(y,{layers:e.props.layers,showAdd:"mobile"!==e.props.mode&&e.props.mapIsEditable&&e.props.hasCatalog&&!e.props.enabledCatalog,onAdd:function(){return e.props.onAdd(e.props.source||"backgroundSelector")},showLabel:t.label,src:e.getThumb(s),side:i,frame:n,margin:a,labelHeight:c,label:s.title,onToggle:e.props.onToggle}),d.createElement("div",{className:"background-list-container",style:j},d.createElement(g,{vertical:t.vertical,start:e.props.start,bottom:0,height:w.height,width:w.width,icons:u,pagination:p,length:h,onStartChange:e.props.onStartChange}))))})),e}return t=p,(n=[{key:"componentWillUnmount",value:function(){this.props.onLayerChange("currentLayer",{}),this.props.onLayerChange("tempLayer",{}),this.props.onStartChange(0)}},{key:"render",value:function(){return this.props.layers.length>0?this.renderBackgroundSelector():null}}])&&a(t.prototype,n),r&&a(t,r),p}(d.Component);f(j,"propTypes",{mode:E.string,backgroundList:E.array,backgrounds:E.array,start:E.number,style:E.object,enabled:E.bool,layers:E.array,currentLayer:E.object,tempLayer:E.object,size:E.object,dimensions:E.object,thumbs:E.object,mapIsEditable:E.bool,onPropertiesChange:E.func,onToggle:E.func,onLayerChange:E.func,onStartChange:E.func,onAdd:E.func,hasCatalog:E.bool,alwaysVisible:E.bool,enabledCatalog:E.bool,onRemove:E.func,onBackgroundEdit:E.func,source:E.string,addBackgroundProperties:E.func,onUpdateThumbnail:E.func,removeBackground:E.func,onRemoveBackground:E.func,setCurrentBackgroundLayer:E.func,confirmDeleteBackgroundModal:E.object,deletedId:E.string,modalParams:E.object,updateNode:E.func,clearModal:E.func,allowDeletion:E.bool,projection:E.string}),f(j,"defaultProps",{mode:"desktop",addBackgroundProperties:function(){},onBackgroundEdit:function(){},setCurrentBackgroundLayer:function(){},source:"backgroundSelector",start:0,style:{},enabled:!1,layers:[],currentLayer:{},tempLayer:{},size:{width:0,height:0},dimensions:{},allowDeletion:!0,thumbs:{unknown:n("./MapStore2/web/client/components/background/img/default.jpg")},mapIsEditable:!0,onRemoveBackground:function(){},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){},onStartChange:function(){},onAdd:function(){},onRemove:function(){},clearModal:function(){}}),e.exports=j},"./MapStore2/web/client/components/background/PaginationButton.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0?p.createElement(d,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:this.props.showAdd?[{glyph:"plus",tooltipId:"backgroundSelector.addTooltip",onClick:function(){return e.props.onAdd()}}]:[]}):null)}}])&&i(t.prototype,n),r&&i(t,r),u}(p.Component);l(m,"propTypes",{src:f.string,side:f.number,frame:f.number,margin:f.number,labelHeight:f.number,label:f.string,showLabel:f.bool,onToggle:f.func,onAdd:f.func,showAdd:f.bool}),l(m,"defaultProps",{src:"./images/mapthumbs/none.jpg",side:50,frame:4,margin:5,labelHeight:29,label:"",showLabel:!0,onToggle:function(){},onAdd:function(){}}),e.exports=m},"./MapStore2/web/client/components/background/PreviewIcon.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n-1,n="wmts"===this.props.layer.type&&b(this.props.layer.allowedSRS,this.props.projection),r=this.props.vertical?"background-preview-icon-container-vertical":"background-preview-icon-container-horizontal",o=this.props.layer.visibility?" bg-primary":" bg-body",i=(t||n||y(["wms","empty","osm"],this.props.layer.type))&&!this.props.layer.invalid,a=i?function(){e.props.onToggle(),e.props.onPropertiesChange(e.props.layer.id,{visibility:!0}),e.props.setCurrentBackgroundLayer(e.props.layer.id)}:function(){};return p.createElement("div",{className:r+o+(i?"":" disabled-icon"),style:{padding:this.props.frame/2,marginLeft:this.props.vertical?this.props.margin:0,marginRight:this.props.vertical?0:this.props.margin,marginBottom:this.props.margin,width:this.props.side+this.props.frame,height:this.props.side+this.props.frame}},p.createElement("div",{className:"background-preview-icon-frame",style:{width:this.props.side,height:this.props.side}},p.createElement("img",{onMouseOver:function(){e.props.onLayerChange("tempLayer",e.props.layer)},onMouseOut:function(){e.props.onLayerChange("tempLayer",e.props.currentLayer)},onClick:a,src:this.props.src})))}}])&&i(t.prototype,n),r&&i(t,r),u}(p.Component);l(g,"propTypes",{side:f.number,frame:f.number,margin:f.number,src:f.string,vertical:f.bool,layer:f.object,currentLayer:f.object,onPropertiesChange:f.func,onToggle:f.func,onLayerChange:f.func,setCurrentBackgroundLayer:f.func,projection:f.string}),l(g,"defaultProps",{side:50,frame:4,margin:5,src:"",vertical:!1,layer:{},currentLayer:{},onPropertiesChange:function(){},onToggle:function(){},onLayerChange:function(){}}),e.exports=g},"./MapStore2/web/client/components/background/PreviewList.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;nthis.props.maxZoom||this.props.currentZoom+this.props.step=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&d.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderLeftButton()),d.createElement("div",{className:"ms-identify-swipe-header-title"},this.props.title),this.props.size>1&&d.createElement("div",{className:"ms-identify-swipe-header-arrow"},this.renderRightButton()))}}])&&i(t.prototype,n),r&&i(t,r),l}(d.Component);p(g,"propTypes",{title:f.string,index:f.number,size:f.number,container:f.oneOfType([f.object,f.func]),useButtons:f.bool,onPrevious:f.func,onNext:f.func,btnClassName:f.string}),p(g,"defaultProps",{useButtons:!0}),e.exports=g},"./MapStore2/web/client/components/data/identify/coordinates/Coordinate.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./MapStore2/web/client/components/data/identify/coordinates/Editor.jsx"),i=n("./MapStore2/web/client/components/data/identify/coordinates/Viewer.jsx");e.exports=function(e){var t=e.coordinate,n=void 0===t?{}:t,a=e.formatCoord,c=e.edit,s=e.onSubmit,u=void 0===s?function(){}:s,l=e.onChangeFormat,p=void 0===l?function(){}:l;return c?r.createElement(o,{removeVisible:!1,formatCoord:a,coordinate:n||{lat:"",lon:""},onSubmit:u,onChangeFormat:p}):r.createElement(i,{className:"coordinates-text",formatCoord:a,coordinate:n||{lat:"",lon:""}})}},"./MapStore2/web/client/components/data/identify/coordinates/Editor.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./MapStore2/web/client/components/misc/coordinateeditors/CoordinatesRow.jsx"),i=n("./node_modules/lodash/lodash.js").isEmpty;e.exports=function(e){return r.createElement(o,{format:e.formatCoord||"decimal",aeronauticalOptions:{seconds:{decimals:4,step:1e-4}},idx:1,onSubmit:function(t,n){e.onSubmit(i(n)?void 0:n)},onChangeFormat:function(t){e.onChangeFormat(t)},key:"GFI row coord editor",component:e.coordinate||{},customClassName:"coord-editor",isDraggable:!1,showDraggable:!1,formatVisible:!0,showLabels:!0,removeVisible:!1})}},"./MapStore2/web/client/components/data/identify/coordinates/Viewer.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-bootstrap/es/index.js"),i=o.Row,a=o.Col,c=n("./node_modules/lodash/lodash.js").isNil,s=n("./MapStore2/web/client/components/I18N/Number.jsx"),u=n("./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js")((function(e){var t=e.degrees,n=void 0===t?0:t,o=e.minutes,i=void 0===o?0:o,a=e.seconds,c=void 0===a?0:a,u=e.direction,l=e.integerFormat,p=e.decimalFormat;return r.createElement("span",{className:"coordinate-dms"},r.createElement(s,{key:"latD",numberParams:l,value:n}),r.createElement("span",null,"° "),r.createElement(s,{key:"latM",numberParams:l,value:i}),r.createElement("span",null,"' "),r.createElement(s,{key:"latS",numberParams:p,value:c}),r.createElement("span",null,"'' ")," ",r.createElement("span",null,u))}));e.exports=function(e){var t=e.integerFormat,n=void 0===t?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:0}:t,o=e.decimalFormat,l=void 0===o?{style:"decimal",minimumIntegerDigits:2,maximumFractionDigits:4,minimumFractionDigits:4}:o,p=e.coordinate,f=void 0===p?{}:p,d=e.formatCoord,m=void 0===d?"decimal":d,b=e.className;return r.createElement(i,{className:b},r.createElement(a,{xs:12},c(f.lat)||c(f.lon)?null:"decimal"===m?r.createElement("div",{className:"ms-coordinates-decimal"},"Lat: ",r.createElement(s,{value:Math.round(1e5*f.lat)/1e5})," - Long: ",r.createElement(s,{value:f.lon})):r.createElement("div",{className:"ms-coordinates-aeronautical"},r.createElement("span",null,"Lat: ",r.createElement(u,{integerFormat:n,decimalFormat:l,value:f.lat})),r.createElement("span",null," - "),r.createElement("span",null," Long: ",r.createElement(u,{coordinate:"lon",integerFormat:n,decimalFormat:l,value:f.lon})))))}},"./MapStore2/web/client/components/data/identify/enhancers/defaultViewer.js":function(e,t,n){var r=n("./node_modules/recompose/es/Recompose.js"),o=r.withHandlers,i=r.defaultProps,a=n("./MapStore2/web/client/utils/MapInfoUtils.js"),c=o({onNext:function(e){var t=e.index,n=void 0===t?0:t,r=e.setIndex,o=void 0===r?function(){}:r,i=e.validResponses,a=void 0===i?[]:i;return function(){o(Math.min(a.length-1,n+1))}},onPrevious:function(e){var t=e.index,n=e.setIndex,r=void 0===n?function(){}:n;return function(){r(Math.max(0,t-1))}}}),s=i({format:a.getDefaultInfoFormatValue(),validator:a.getValidator});e.exports={defaultViewerHandlers:c,defaultViewerDefaultProps:s}},"./MapStore2/web/client/components/data/identify/enhancers/identify.js":function(e,t,n){var r=n("./node_modules/recompose/es/Recompose.js"),o=r.lifecycle,i=r.withHandlers,a=r.compose,c=n("./MapStore2/web/client/utils/ImmutableUtils.js").set,s=n("./node_modules/lodash/lodash.js"),u=s.isNil,l=s.isNaN,p=a(i({needsRefresh:function(){return function(e,t){if(t.enabled&&t.point&&t.point.pixel){if(!e.point||!e.point.pixel||e.point.pixel.x!==t.point.pixel.x||e.point.latlng!==t.point.latlng||e.point.pixel.y!==t.point.pixel.y)return!0;if(!e.point||!e.point.pixel||t.point.pixel&&e.format!==t.format)return!0}return!1}},onClose:function(e){var t=e.purgeResults,n=void 0===t?function(){}:t,r=e.closeIdentify,o=void 0===r?function(){}:r;return function(){n(),o()}},onSubmitClickPoint:function(e){var t=e.onSubmitClickPoint,n=void 0===t?function(){}:t,r=e.point;return function(e){var t=u(e.lat)||l(e.lat)?0:parseFloat(e.lat),o=u(e.lon)||l(e.lon)?0:parseFloat(e.lon),i=c("latlng.lng",o,c("latlng.lat",t,r));n(i)}},onChangeFormat:function(e){var t=e.onChangeFormat,n=void 0===t?function(){}:t;return function(e){n(e)}}}),o({componentDidMount:function(){var e=this.props,t=e.enabled,n=e.changeMousePointer,r=void 0===n?function(){}:n,o=e.disableCenterToMarker,i=e.onEnableCenterToMarker,a=void 0===i?function(){}:i;t&&r("pointer"),o||a()},componentWillUnmount:function(){var e=this.props,t=e.hideMarker,n=void 0===t?function(){}:t,r=e.purgeResults,o=void 0===r?function(){}:r,i=e.changeMousePointer;(void 0===i?function(){}:i)("auto"),n(),o()},componentWillReceiveProps:function(e){var t=this.props,n=t.hideMarker,r=void 0===n?function(){}:n,o=t.purgeResults,i=void 0===o?function(){}:o,a=t.changeMousePointer,c=void 0===a?function(){}:a,s=t.enabled;e.enabled&&!s?c("pointer"):!e.enabled&&s&&(c("auto"),r(),i())}}));e.exports={identifyLifecycle:p}},"./MapStore2/web/client/components/data/identify/enhancers/zoomToFeatureHandler.js":function(e,t,n){var r=n("./node_modules/@turf/bbox/index.js"),o=n("./node_modules/recompose/es/Recompose.js").withHandlers;e.exports=o({zoomToFeature:function(e){var t=e.zoomToExtent,n=void 0===t?function(){}:t,o=e.currentFeature,i=void 0===o?[]:o,a=e.currentFeatureCrs;return function(){var e=i.filter((function(e){return!!e.geometry}));if(e.length>0){var t=r({type:"FeatureCollection",features:e});t&&n(t,a)}}}})},"./MapStore2/web/client/components/data/identify/viewers/ViewerPage.jsx":function(e,t,n){var r,o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;nMath.abs(e.startX-n.pageX))t.stopPropagation();else{var o=e.startX=e.props.minZoom}))})),e}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return!v(e,this.props)}},{key:"render",value:function(){var e=null;return e=this.props.readOnly?d.createElement("label",null,this.props.template(this.props.scales[this.props.currentZoomLvl],this.props.currentZoomLvl)):this.props.useRawInput?d.createElement("select",{label:this.props.label,onChange:this.onComboChange,bsSize:"small",value:this.props.currentZoomLvl||""},this.getOptions()):d.createElement(b,{inline:!0},d.createElement(g,{bsSize:"small"},d.createElement(h,null,this.props.label),d.createElement(y,{componentClass:"select",onChange:this.onComboChange,value:this.props.currentZoomLvl||""},this.getOptions()))),d.createElement("div",{id:this.props.id,style:this.props.style},e)}}])&&i(t.prototype,n),r&&i(t,r),l}(d.Component);p(O,"propTypes",{id:f.string,style:f.object,scales:f.array,currentZoomLvl:f.number,minZoom:f.number,onChange:f.func,readOnly:f.bool,label:f.oneOfType([f.func,f.string,f.object]),template:f.func,useRawInput:f.bool}),p(O,"defaultProps",{id:"mapstore-scalebox",scales:S.getGoogleMercatorScales(0,28),currentZoomLvl:0,minZoom:0,onChange:function(){},readOnly:!1,template:function(e){return e<1?Math.round(1/e)+" : 1":"1 : "+Math.round(e)},useRawInput:!1}),e.exports=O},"./MapStore2/web/client/components/maps/forms/Thumbnail.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0){var r=n[0],o=new FileReader;return o.onload=function(e){return t(e.target.result,r.size)},o.readAsDataURL(r)}return t(null)})),p(u(e),"getThumbnailDataUri",(function(t){e.getDataUri(e.files,t)})),p(u(e),"generateUUID",(function(){var e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))})),p(u(e),"processUpdateThumbnail",(function(t,n,r){var o=e.generateUUID();!e.props.map||r||!e.props.map.thumbnail||e.refs.imgThumbnail||n||e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!0),e.props.map&&!r&&e.props.map.newThumbnail&&!e.refs.imgThumbnail&&n&&(e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id)),e.props.map.newThumbnail&&r&&e.refs.imgThumbnail&&(e.deleteThumbnail(e.props.map.thumbnail,null,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id)),e.props.map.newThumbnail&&!r&&e.refs.imgThumbnail&&e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id),e.props.map.newThumbnail||r||e.refs.imgThumbnail||(e.props.map.thumbnail&&n&&e.deleteThumbnail(e.props.map.thumbnail,e.props.map.id,!1),e.props.onSaveAll(t,n,o,r,"THUMBNAIL",e.props.map.id))})),p(u(e),"updateThumbnail",(function(t,n){e.props.map.errors&&e.props.map.errors.length||e.getDataUri(e.files,(function(r){return e.processUpdateThumbnail(t,n,r),r}))})),p(u(e),"deleteThumbnail",(function(t,n){if(t&&-1!==t.indexOf("geostore")){var r=b(t);r&&e.props.onDeleteThumbnail(r,n)}})),e}return t=l,(n=[{key:"renderThumbnailErrors",value:function(){return this.props.thumbnailErrors&&this.props.thumbnailErrors.length>0?f.createElement("div",{className:"dropzone-errorBox alert-danger"},f.createElement("p",null,f.createElement(m,{msgId:"map.error"})),this.props.thumbnailErrors.map((function(e){return f.createElement("div",{id:"error"+e,key:"error"+e,className:"error"+e},g[e])}))):null}},{key:"render",value:function(){var e=this;return f.createElement(y,{ref:"imgThumbnail",thumbnail:this.getThumbnailUrl(),className:null,dropZoneProps:{className:"dropzone alert alert-info",rejectClassName:"alert-danger"},loading:this.props.loading,maxFileSize:this.props.maxFileSize,style:{pointerEvents:this.props.map.saving?"none":"auto"},label:this.props.withLabel&&f.createElement("label",{className:"control-label"},f.createElement(m,{msgId:"map.thumbnail"})),"ù":!0,message:f.createElement(f.Fragment,null,this.props.message,f.createElement("br",null),this.props.suggestion),error:this.renderThumbnailErrors(),onUpdate:function(t,n){var r;e.props.onError([],e.props.map.id),e.files=n,e.props.onUpdate(t,null==n||null===(r=n[0])||void 0===r?void 0:r.preview)},onError:function(t,n){e.props.onError(t,e.props.map.id),e.files=n,e.props.onUpdate(null,null)},onRemove:function(){e.files=null,e.props.onUpdate(null,null),e.props.onRemoveThumbnail(),e.props.onError([],e.props.map.id)}})}}])&&i(t.prototype,n),r&&i(t,r),l}(f.Component);p(h,"propTypes",{glyphiconRemove:d.string,style:d.object,thumbnailErrors:d.array,loading:d.bool,withLabel:d.bool,map:d.object,maxFileSize:d.number,onDrop:d.func,onError:d.func,onUpdate:d.func,onSaveAll:d.func,onCreateThumbnail:d.func,onDeleteThumbnail:d.func,onRemoveThumbnail:d.func,message:d.oneOfType([d.string,d.element]),suggestion:d.oneOfType([d.string,d.element])}),p(h,"contextTypes",{messages:d.object}),p(h,"defaultProps",{loading:!1,withLabel:!0,glyphiconRemove:"remove-circle",maxFileSize:5e5,onDrop:function(){},onError:function(){},onUpdate:function(){},onSaveAll:function(){},onRemoveThumbnail:function(){},onCreateThumbnail:function(){},onDeleteThumbnail:function(){},message:f.createElement(m,{msgId:"map.message"}),suggestion:f.createElement(m,{msgId:"map.suggestion"}),map:{},thumbnailErrors:[]}),e.exports=h},"./MapStore2/web/client/components/misc/ConfirmDialog.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0})),d(p(e),"onClickOut",(function(t){e.props.onClickOut&&e.mask===t.target&&e.props.onClickOut(t)})),e}return t=l,(n=[{key:"render",value:function(){var e=this,t=m.createElement("div",{id:this.props.id,style:i({zIndex:3},this.props.style),className:"".concat(this.props.draggable?"modal-dialog-draggable":""," ").concat(this.props.className," modal-dialog-container")},m.createElement("div",{className:this.props.headerClassName+" draggable-header"},this.renderRole("header")),m.createElement("div",{className:this.props.bodyClassName},this.renderLoading(),this.renderRole("body")),this.hasRole("footer")?m.createElement("div",{className:this.props.footerClassName},this.renderRole("footer")):m.createElement("span",null)),n=this.props.draggable?m.createElement(y,{defaultPosition:this.props.start,bounds:this.props.bounds,handle:".draggable-header, .draggable-header *"},t):t,r=h({},this.props.style.display?{display:this.props.style.display}:{},this.props.backgroundStyle);return this.props.modal?m.createElement("div",{ref:function(t){e.mask=t},onClick:this.onClickOut,style:r,className:"fade in modal "+this.props.containerClassName,role:"dialog"},n):n}}])&&c(t.prototype,n),r&&c(t,r),l}(m.Component);d(v,"propTypes",{id:b.string.isRequired,style:b.object,backgroundStyle:b.object,className:b.string,maskLoading:b.bool,containerClassName:b.string,headerClassName:b.string,bodyClassName:b.string,footerClassName:b.string,onClickOut:b.func,modal:b.bool,start:b.object,draggable:b.bool,bounds:b.oneOfType([b.string,b.object])}),d(v,"defaultProps",{style:{},backgroundStyle:{background:"rgba(0,0,0,.5)"},start:{x:0,y:150},className:"modal-dialog modal-content",maskLoading:!1,containerClassName:"",headerClassName:"modal-header",bodyClassName:"modal-body",footerClassName:"modal-footer",modal:!1,draggable:!0,bounds:"parent"}),e.exports=v},"./MapStore2/web/client/components/misc/FeatureInfoFormatSelector.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),c=n("./MapStore2/web/client/utils/MapInfoUtils.js"),s=n.n(c),u=n("./node_modules/react-select/dist/react-select.es.js"),l=n("./node_modules/react-bootstrap/es/index.js"),p=n("./MapStore2/web/client/components/misc/Overlay.jsx"),f=n.n(p);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n100?"full":e>40?"medium":"small"},u=function(e){var t=e.size,n=e.style,r=void 0===n?{}:n,i=e.className,c=e.hidden;return a.createElement("div",{className:i,style:o({width:t,height:t,overflow:"hidden"},r)},!c&&a.createElement("div",{className:"mapstore-".concat(s(t),"-size-loader")}))};u.propTypes={size:c.number,className:c.string,style:c.object},e.exports=u},"./MapStore2/web/client/components/misc/LoadingSpinner.jsx":function(e,t,n){var r=n("./node_modules/react/index.js");e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.style,n=void 0===t?{display:"inline-block"}:t;return r.createElement("div",{style:n,className:"mapstore-inline-loader"})}},"./MapStore2/web/client/components/misc/LoadingView.jsx":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0?Math.min(i,u):i),f=n||(u>0?Math.min(i,u):i),d=Math.min(p,f);return a.createElement(s,{size:d,style:o({padding:d/10,margin:"auto",display:"flex"},l)})})))}},"./MapStore2/web/client/components/misc/Overlay.jsx":function(e,t,n){var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx").default;e.exports=r(n("./node_modules/react-bootstrap/es/index.js").Overlay)},"./MapStore2/web/client/components/misc/OverlayTrigger.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/components/misc/WithContainer.jsx"),o=n("./node_modules/react-bootstrap/es/index.js");t.default=Object(r.default)(o.OverlayTrigger)},"./MapStore2/web/client/components/misc/OverlayTriggerCustom.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/react-dom/index.js"),a=n.n(i),c=n("./node_modules/prop-types/index.js"),s=n.n(c),u=n("./node_modules/react-bootstrap/es/index.js"),l=n("./MapStore2/web/client/components/misc/WithContainer.jsx");function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;no?[t,t/e]:[r*e,r];c.save(),c.translate(t/2,r/2),c.drawImage(m,-l[0]/2,-l[1]/2,l[0],l[1]),c.restore();var f=i.toDataURL(p,d);n(f)},m.onerror=function(e){r(e)},m.src=e}))},l=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),p=n.n(l);function f(){return(f=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=A?["SIZE"]:[])),e)):null})).catch((function(e){return k.current?(U(!1),D(e)):null}))}}),g?o.a.createElement("div",{style:{position:"relative",width:"100%",height:"100%"}},o.a.createElement("div",{ref:t,style:{position:"relative",width:"100%",height:"100%",backgroundImage:"url(".concat(g,")"),backgroundSize:(null==x?void 0:x.contain)?"contain":"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"}}),o.a.createElement("div",{className:"dropzone-content-image-added"},b),B):o.a.createElement("div",{className:"dropzone-content-image"},b,B,y&&o.a.createElement("div",{className:"dropzone-errors"},y))))}));t.default=g},"./MapStore2/web/client/components/misc/WithContainer.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r);function i(){return(i=Object.assign||function(e){for(var t=1;t div")||document.body}))}}},"./MapStore2/web/client/components/misc/coordinateeditors/CoordinateEntry.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t=0?a=r.degrees:r.minutes<0&&r.degrees<=0?(a=0,i=r.minutes):(a=0,i=0,o=1e-4)),{degrees:a,minutes:i,seconds:o,direction:c}}catch(e){return null}})),d(p(e),"getSexagesimalStep",(function(e){return e>=60?1:e<0?-1:0})),d(p(e),"getInputStyle",(function(e){return isNaN(e)||""===e?{borderColor:"#a94442"}:{}})),d(p(e),"verifyOnKeyDownEvent",(function(t){69===t.keyCode&&t.preventDefault(),13===t.keyCode&&(t.preventDefault(),t.stopPropagation(),e.props.onKeyDown())})),d(p(e),"roundToNextSexagesimalStep",(function(e){return e<0?60+e:e>=60?e-60:e})),d(p(e),"isValid",(function(t){var n=t.minutes,r=t.seconds,o=t.degrees,i=t.direction;return!v(n)&&n>0&&n<60&&!v(r)&&r>0&&r<60&&!v(o)&&o>0&&or?"error":null})),p(u(e),"validateDecimalLat",(function(t){var n=e.props.constraints[e.props.format].lat.min,r=e.props.constraints[e.props.format].lat.max,o=parseFloat(t);return isNaN(o)||or?"error":null})),e}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.coordinate,r=t.value,o=t.onChange,i="validateDecimal"+b(n);return f.createElement(m,{validationState:this[i](r)},f.createElement(y,{key:n,value:r,placeholder:n,onChange:function(t){""===t&&o(""),null===e[i](t)&&o(t)},onKeyDown:this.verifyOnKeyDownEvent,step:1,validateNameFunc:this[i],type:"number"}))}}])&&i(t.prototype,n),r&&i(t,r),l}(f.Component);p(g,"propTypes",{idx:d.number,value:d.number,constraints:d.object,format:d.string,coordinate:d.string,onChange:d.func,onKeyDown:d.func,onSubmit:d.func}),p(g,"defaultProps",{format:"decimal",coordinate:"lat",constraints:{decimal:{lat:{min:-90,max:90},lon:{min:-180,max:180}}},onKeyDown:function(){}}),e.exports=g},"./MapStore2/web/client/components/misc/coordinateeditors/enhancers/coordinateTypePreset.js":function(e,t,n){var r=n("./node_modules/recompose/es/Recompose.js").withProps;e.exports=r((function(e){var t=e.coordinate,n=void 0===t?"lat":t;return{maxDegrees:"lat"===n?90:180,directions:"lat"===n?["N","S"]:["E","W"]}}))},"./MapStore2/web/client/components/misc/coordinateeditors/enhancers/decimalToAeronautical.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n("./node_modules/recompose/es/Recompose.js"),a=i.compose,c=i.withHandlers,s=i.withProps,u=n("./node_modules/lodash/lodash.js"),l=u.round,p=u.isNaN;e.exports=a(s((function(e){return function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{seconds:{decimals:4}},r=n.seconds,o=e>=0?Math.floor(e):Math.ceil(e),i=Math.abs(60*(e-o)),a=Math.floor(i),c=60*(i-a),s=l(c,r.decimals);if(o=Math.abs(o),60===s&&(a++,s=0),60===a&&(o++,a=0),p(o)||""===e)return{degrees:"",minutes:"",seconds:"",direction:t?"E":"N"};var u={degrees:o,minutes:a,seconds:s,direction:e<0?t?"W":"S":t?"E":"N"};return u}(e.value,"lon"===e.coordinate,e.aeronauticalOptions))})),c({onChange:function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.degrees,r=t.minutes,o=t.seconds,i=t.direction,a=0,c=0,s=0;void 0===n&&void 0===r&&void 0===o&&e.onChange(void 0),p(n)||(a=n),p(r)||(c=r),p(o)||(s=o);var u=a+c/60+s/3600;(u>0&&("S"===i||"W"===i)||u<0&&("N"===i||"E"===i))&&(u*=-1),e.onChange(u.toPrecision(12))}}}))},"./MapStore2/web/client/components/misc/coordinateeditors/enhancers/no90Lat.js":function(e,t,n){var r=n("./node_modules/recompose/es/Recompose.js"),o=r.compose,i=r.withHandlers;e.exports=o(i({onChange:function(e){var t=e.onChange,n=void 0===t?function(){}:t,r=e.maxLatitude,o=void 0===r?89.9997222222:r,i=e.coordinate;return function(e){return n(Math.abs(parseFloat(e))>o&&"lat"===i?Math.sign(e)*o:e)}}}))},"./MapStore2/web/client/components/misc/coordinateeditors/enhancers/tempAeronauticalValue.js":function(e,t,n){var r=n("./node_modules/recompose/es/Recompose.js"),o=r.compose,i=r.withHandlers,a=r.withState,c=r.withProps;e.exports=o(c((function(e){return{isValid:""!==e.value}})),a("initial","setInitial",{}),c((function(e){var t=e.isValid,n=e.initial,r=e.degrees,o=e.minutes,i=e.seconds;return t||""===r&&""===o&&""===i?{}:n})),i({onChange:function(e){return function(t){var n=t.degrees,r=t.minutes,o=t.seconds,i=t.direction;isNaN(n)?e.setInitial({degrees:"",minutes:r,seconds:o,direction:i}):isNaN(r)?e.setInitial({degrees:n,minutes:"",seconds:o,direction:i}):isNaN(o)&&e.setInitial({degrees:n,minutes:r,seconds:"",direction:i}),e.onChange({degrees:n,minutes:r,seconds:o,direction:i})}}}))},"./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/recompose/es/Recompose.js").branch,i=n("./node_modules/lodash/lodash.js").omit,a=n("./MapStore2/web/client/components/misc/enhancers/tooltip.jsx");e.exports=o((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disabled,n=e.noTooltipWhenDisabled,r=void 0!==n&&n;return!(r&&t)}),a,(function(e){return function(t){return r.createElement(e,i(t,["tooltipId","tooltip","noTooltipWhenDisabled"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/draggableComponent.jsx":function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n("./node_modules/react/index.js"),s=n("./node_modules/recompose/es/Recompose.js"),u=s.compose,l=s.branch,p=n("./node_modules/react-dnd/lib/index.js").DragSource,f=n("./node_modules/react-dnd/lib/index.js").DropTarget,d={beginDrag:function(e){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.isDraggable;return t}),u(p("row",d,(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging(),draggingItem:t.getItem()||null}})),f("row",{drop:function(e,t){var n=t.getItem();n.sortId!==e.sortId&&e.onSort(e.sortId,n.sortId,{id:e.id,containerId:e.containerId},{id:n.id,containerId:n.containerId})}},(function(e,t){return{connectDropTarget:e.dropTarget(),isOver:t.isOver()}})),(function(e){return function(t){var n=t.connectDragSource,i=t.connectDragPreview,a=t.connectDropTarget,s=t.isDragging,u=t.isOver,l=o(t,["connectDragSource","connectDragPreview","connectDropTarget","isDragging","isOver"]),p=l.draggingItem&&l.draggingItem.sortId0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;return i(e,(function(){return function(e){var i=e.loaderProps;return o.createElement(n,r({},t,i))}}))}},"./MapStore2/web/client/components/misc/enhancers/localizedProps.js":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"label";if(p(t))return t.map((function(r){var o=c(e,r[n]||d(r)&&r||"");return i(i({},r),{},a({},n,f(o)?t:o))}));var r=c(e,t);return f(r)?t:r},S=function(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return i(i({},r),{},a({},o,e[o]&&h(t,e[o],n)))}};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"label";return g(b({messages:s.object}),y((function(n){var o=n.messages,a=r(n,["messages"]);return i(i({},a),l(e).reduce(S(a,o,t),{}))})))}},"./MapStore2/web/client/components/misc/enhancers/popover.js":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var o=n("./node_modules/react/index.js"),i=n("./node_modules/recompose/es/Recompose.js").branch,a=n("./node_modules/react-bootstrap/es/index.js").Tooltip,c=n("./MapStore2/web/client/components/misc/OverlayTrigger.jsx").default,s=n("./MapStore2/web/client/components/I18N/Message.jsx").default,u=n("./node_modules/lodash/lodash.js").omit;e.exports=i((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tooltip,n=e.tooltipId;return t||n}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.tooltip,i=t.tooltipId,u=t.tooltipPosition,l=void 0===u?"top":u,p=t.tooltipTrigger,f=t.keyProp,d=t.idDropDown,m=t.args,b=t.customOverlayTrigger,y=void 0===b?c:b,g=r(t,["tooltip","tooltipId","tooltipPosition","tooltipTrigger","keyProp","idDropDown","args","customOverlayTrigger"]);return o.createElement(y,{trigger:p,id:d,key:f,placement:l,overlay:o.createElement(a,{id:"tooltip-"+f},i?o.createElement(s,{msgId:i,msgParams:{data:m}}):n)},o.createElement(e,g))}}),(function(e){return function(t){return o.createElement(e,u(t,["tooltipId","tooltip"]),t.children)}}))},"./MapStore2/web/client/components/misc/enhancers/withMask.js":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=o.branch,a=o.nest,c=function(e,t,n){var o=n.maskContainerStyle,i=n.maskStyle,c=n.className,s=n.white;return function(n){return a((function(n){return r.createElement("div",{className:"ms2-mask-container ".concat(c||""," ").concat(e(n)?"":"ms2-mask-empty"),style:o},n.children,e(n)?r.createElement("div",{className:"ms2-mask"+(s?" white-mask":""),style:i},t(n)):null)}),n)}};e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.alwaysWrap,o=void 0===r||r,a=n.white,s=void 0!==a&&a,u=n.maskContainerStyle,l=void 0===u?{}:u,p=n.maskStyle,f=void 0===p?{}:p,d=n.className;return o?c(e,t,{maskContainerStyle:l,maskStyle:f,className:d,white:s}):i(e,c((function(){return!0}),t,{maskContainerStyle:l,maskStyle:f,white:s}))}},"./MapStore2/web/client/components/misc/enhancers/withResizeSpy.js":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.debounceTime,n=e.querySelector,r=e.closest,i=void 0!==r&&r;return function(e){var r,s;return s=r=function(r){c(l,r);var s=u(l);function l(e){var r;return o(this,l),d(p(r=s.call(this,e)),"findDomNode",(function(){if(!r.isMounded)return null;var e=g.findDOMNode(p(r));return e&&i&&n?e.closest(n||"*"):e&&(n?e.querySelector(n):e)})),r.width=void 0,r.height=void 0,r.skipOnMount=e.skipOnMount,r.onResize=b((function(){var e;return(e=r.props).onResize.apply(e,arguments)}),void 0!==t?t:e.debounceTime||1e3),r.ro=new h((function(e){e.forEach((function(e){var t=e.contentRect,n=t.width,o=t.height,i=r.props.handleWidth&&r.width!==n,a=r.props.handleHeight&&r.height!==o;r.skipOnMount||!i&&!a||r.onResize({width:n,height:o}),r.width=n,r.height=o,r.skipOnMount=!1}))})),r}return a(l,[{key:"componentDidMount",value:function(){this.isMounded=!0;var e=this.findDomNode();e&&this.ro.observe(e)}},{key:"componentWillUnmount",value:function(){var e=this.findDomNode();e&&this.ro&&this.ro.unobserve&&this.ro.unobserve(e)}},{key:"render",value:function(){return m.createElement(e,this.props)}}]),l}(m.Component),d(r,"propTypes",{handleWidth:y.bool,handleHeight:y.bool,onResize:y.func}),d(r,"defaultProps",{onResize:function(){},handleWidth:!0,handleHeight:!0}),s}}},"./MapStore2/web/client/components/misc/panels/DockPanel.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-dock/lib/index.js").default,i=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),a=n("./node_modules/recompose/es/Recompose.js").withState,c=n("./MapStore2/web/client/components/misc/panels/PanelHeader.jsx");e.exports=a("fullscreen","onFullscreen",!1)((function(e){var t=e.fluid,n=e.className,a=void 0===n?"":n,s=e.fullscreen,u=void 0!==s&&s,l=e.position,p=e.open,f=e.size,d=void 0===f?550:f,m=e.style,b=void 0===m?{}:m,y=e.zIndex,g=void 0===y?1030:y,h=e.onClose,S=e.bsStyle,v=e.title,O=e.showFullscreen,E=void 0!==O&&O,j=e.glyph,w=e.header,A=e.footer,T=e.children,_=e.onFullscreen,x=void 0===_?function(){}:_,P=e.fixed,M=void 0!==P&&P,R=e.resizable,C=void 0!==R&&R,I=e.hideHeader;return r.createElement("div",{className:"ms-side-panel "+(M?"":"ms-absolute-dock ")+(C?"":"react-dock-no-resize ")+a},r.createElement(o,{fluid:t||u,position:l,dimMode:"none",isVisible:p,size:u?1:d,dockStyle:b,zIndex:g},r.createElement(i,{header:!I&&p&&r.createElement(c,{position:l,onClose:h,bsStyle:S,title:v,fullscreen:u,showFullscreen:E,glyph:j,additionalRows:w,onFullscreen:x}),footer:p&&A},p&&T)))}))},"./MapStore2/web/client/components/misc/panels/DockablePanel.jsx":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var o=n("./node_modules/react/index.js"),i=n("./node_modules/recompose/es/Recompose.js"),a=i.branch,c=i.renameProps,s=n("./MapStore2/web/client/components/layout/BorderLayout.jsx"),u=n("./MapStore2/web/client/components/misc/panels/DockPanel.jsx"),l=n("./MapStore2/web/client/components/misc/ResizableModal.jsx").default,p=c({open:"show"})((function(e){var t=e.children,n=e.header,i=r(e,["children","header"]);return o.createElement(l,i,o.createElement(s,{header:o.createElement("div",{className:"ms-header"},n)},t))}));e.exports=a((function(e){return!e.dock}),(function(){return function(e){return o.createElement(p,e)}}))(u)},"./MapStore2/web/client/components/misc/panels/PanelHeader.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-bootstrap/es/index.js"),i=o.Button,a=o.Glyphicon,c=o.Grid,s=o.Row,u=o.Col,l={bottom:{true:"chevron-down",false:"chevron-up"},top:{true:"chevron-up",false:"chevron-down"},right:{true:"chevron-right",false:"chevron-left"},left:{true:"chevron-left",false:"chevron-right"}};e.exports=function(e){var t=e.position,n=void 0===t?"right":t,o=e.onClose,p=e.bsStyle,f=void 0===p?"default":p,d=e.title,m=void 0===d?"":d,b=e.fullscreen,y=void 0!==b&&b,g=e.showFullscreen,h=void 0!==g&&g,S=e.glyph,v=void 0===S?"info-sign":S,O=e.additionalRows,E=e.onFullscreen,j=void 0===E?function(){}:E,w=o?r.createElement(i,{key:"ms-header-close",className:"square-button ms-close",onClick:o,bsStyle:f},r.createElement(a,{glyph:"1-close"})):null,A=h?r.createElement(i,{key:"ms-header-glyph",className:"square-button",bsStyle:f,onClick:function(){return j(!y)}},r.createElement(a,{glyph:l[n]&&l[n][y]||"resize-full"})):r.createElement("div",{key:"ms-header-glyph",className:"square-button ".concat("bg-"+f),style:{display:"flex"}},r.createElement(a,{glyph:v,className:"".concat("default"===f?"text-primary":"")})),T="left"===n?[w,A]:[A,w];return r.createElement(c,{fluid:!0,style:{width:"100%"},className:"ms-header ms-"+f},r.createElement(s,null,r.createElement(u,{xs:2},T[0]),r.createElement(u,{xs:8},r.createElement("h4",null,m)),r.createElement(u,{xs:2},T[1])),O)}},"./MapStore2/web/client/components/misc/spinners/GlobalSpinner/GlobalSpinner.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n0&&this.props.expanded&&f.createElement(v,{btnDefaultProps:{className:"square-button-sm no-border"},buttons:this.props.buttons})))}},{key:"render",value:function(){return f.createElement(b,{className:"mapstore-switch-panel",collapsible:!0,expanded:this.props.expanded,defaultExpanded:this.props.defaultExpanded,header:this.renderHeader()},this.props.children)}}])&&i(t.prototype,n),r&&i(t,r),l}(f.Component);p(w,"propTypes",{header:d.node,title:d.oneOfType([d.string,d.node]),defaultExpanded:d.string,expanded:d.bool,onSwitch:d.func,locked:d.bool,buttons:d.array,loading:d.bool,error:d.any,errorMsgId:d.string,transitionProps:d.object,useToolbar:d.bool}),p(w,"defaultProps",{title:"",expanded:!1,onSwitch:function(){},locked:!1,buttons:[],useToolbar:!1}),e.exports=w},"./MapStore2/web/client/components/misc/switch/SwitchToolbar.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react/index.js"),o=n.n(r),i=n("./node_modules/prop-types/index.js"),a=n.n(i),c=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),s=n.n(c),u=n("./MapStore2/web/client/components/I18N/Message.jsx");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.menuOptions,n=void 0===t?[]:t,o=e.buttonConfig,a=void 0===o?{}:o;return u.createElement(p,r({},f,a),n.length?n.map((function(e,t){var n=e.glyph,r=e.text,o=e.onClick,a=e.active,s=void 0!==a&&a;return u.createElement(c,{active:s,eventKey:t,onClick:o,key:t},n&&u.createElement(i,{glyph:n})," ",r)})):null)}},"./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx":function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=n("./node_modules/react/index.js"),a=n("./node_modules/react-bootstrap/es/index.js").ButtonGroup,c=n("./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx"),s=n("./node_modules/react-addons-css-transition-group/index.js");e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buttons,n=void 0===t?[]:t,u=e.btnGroupProps,l=void 0===u?{}:u,p=e.btnDefaultProps,f=void 0===p?{}:p,d=e.transitionProps,m=void 0===d?{transitionName:"toolbar-btn-transition",transitionEnterTimeout:300,transitionLeaveTimeout:300}:d,b=function(){return n.map((function(e,t){var n=e.visible,a=void 0===n||n,s=e.Element,u=e.renderButton,l=o(e,["visible","Element","renderButton"]);return a?u||(s&&i.createElement(s,r({key:l.key||t},l))||i.createElement(c,r({key:l.key||t},f,l))):null}))};return i.createElement(a,l,m?i.createElement(s,m,b()):b())}},"./MapStore2/web/client/components/misc/toolbar/ToolbarButton.jsx":function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=n("./node_modules/react/index.js"),a=n("./node_modules/recompose/es/Recompose.js").compose,c=n("./MapStore2/web/client/components/I18N/Message.jsx").default,s=n("./node_modules/lodash/lodash.js").omit,u=n("./node_modules/react-bootstrap/es/index.js"),l=u.Button,p=u.Glyphicon,f=n("./MapStore2/web/client/components/misc/Loader.jsx"),d=n("./MapStore2/web/client/components/misc/enhancers/buttonTooltip.jsx"),m=n("./MapStore2/web/client/components/misc/enhancers/popover.js");e.exports=a(d,m)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.glyph,n=e.loading,a=e.text,u=void 0===a?"":a,d=e.textId,m=e.glyphClassName,b=void 0===m?"":m,y=e.loaderProps,g=void 0===y?{}:y,h=e.children,S=o(e,["glyph","loading","text","textId","glyphClassName","loaderProps","children"]);return i.createElement(l,s(S,["pullRight","confirmNo","confirmYes"]),t&&!n?i.createElement(p,{glyph:t,className:b}):null,d?i.createElement(c,{msgId:d}):u,n?i.createElement(f,r({className:"ms-loader".concat(S.bsStyle&&" ms-loader-"+S.bsStyle||"").concat(S.bsSize&&" ms-loader-"+S.bsSize||"")},g)):null,h)}))},"./MapStore2/web/client/components/playback/Settings.jsx":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:function(){};try{if(!s(parseInt(e,10))){var r=parseInt(e,10);return t(r<1?1:r)}return n()}catch(e){return n(e)}},E=function(e){var t=e.startPlaybackTime,n=e.endPlaybackTime,r=c(t).diff(n);return{startPlaybackTime:r>=0?n:t,endPlaybackTime:r>=0?t:n}};e.exports=function(e){var t=e.following,n=e.frameDuration,r=e.timeStep,i=e.stepUnit,c=e.onSettingChange,s=void 0===c?function(){}:c,u=e.toggleAnimationMode,j=void 0===u?function(){}:u,w=e.toggleAnimationRange,A=void 0===w?function(){}:w,T=e.fixedStep,_=void 0!==T&&T,x=e.playbackRange,P=void 0===x?{}:x,M=e.setPlaybackRange,R=void 0===M?function(){}:M,C=e.playbackButtons,I=e.dateSelectorStyle,D=void 0===I?{padding:0,margin:0,border:"none"}:I,N=e.style,L=void 0===N?{}:N;return a.createElement("div",{className:"ms-playback-settings",style:L},a.createElement("h4",null,a.createElement(b,{msgId:"timeline.settings.title"})),a.createElement(p,{controlId:"timelineSettings"},a.createElement(l,{componentClass:"fieldset",inline:!0},a.createElement(f,null,a.createElement(b,{msgId:"timeline.settings.snapToGuideLayer"})," ",a.createElement(y,{text:a.createElement(b,{msgId:"timeline.settings.snapToGuideLayerTooltip"})})),a.createElement("span",null,a.createElement(h,{checked:!_,onChange:function(){return j()}})))),a.createElement("h4",null,a.createElement(b,{msgId:"playback.settings.title"})),a.createElement(p,{controlId:"frameDuration"},a.createElement(f,null,a.createElement(b,{msgId:"playback.settings.frameDuration"})),a.createElement(m,null,a.createElement(v,{componentClass:"input",type:"number",value:n,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return O(e,(function(e){s("frameDuration",e)}))}}),a.createElement(m.Addon,null,"s"))),a.createElement(f,null,a.createElement(b,{msgId:"playback.settings.step.label"})," ",a.createElement(y,{text:a.createElement(b,{msgId:"playback.settings.step.tooltip"})})),a.createElement(p,{controlId:"formPlaybackStep"},a.createElement(l,{componentClass:"fieldset",inline:!0},a.createElement(v,{disabled:!_,componentClass:"input",type:"number",style:{input:{maxWidth:120}},value:r,onChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return O(e,(function(e){s("timeStep",e)}))}}),a.createElement(d,{disabled:!_,componentClass:"select",value:i,onChange:function(e){var t=e.target;return s("stepUnit",(void 0===t?{}:t).value)}},a.createElement(b,{msgId:"playback.settings.step.year",msgParams:{number:r||1}},(function(e){return a.createElement("option",{value:"years"},e)})),a.createElement(b,{msgId:"playback.settings.step.week",msgParams:{number:r||1}},(function(e){return a.createElement("option",{value:"weeks"},e)})),a.createElement(b,{msgId:"playback.settings.step.day",msgParams:{number:r||1}},(function(e){return a.createElement("option",{value:"days"},e)})),a.createElement(b,{msgId:"playback.settings.step.hour",msgParams:{number:r||1}},(function(e){return a.createElement("option",{value:"hour"},e)})),a.createElement(b,{msgId:"playback.settings.step.minute",msgParams:{number:r||1}},(function(e){return a.createElement("option",{value:"minutes"},e)})),a.createElement(b,{msgId:"playback.settings.step.second",msgParams:{number:r||1}},(function(e){return a.createElement("option",{value:"seconds"},e)}))))),a.createElement(S,{onSwitch:function(e){return A(e)},expanded:P.startPlaybackTime&&P.endPlaybackTime,title:a.createElement(b,{msgId:"playback.settings.range.title"}),buttons:C},a.createElement(p,{controlId:"formPlaybackMode",style:{margin:10}},a.createElement(g,{tooltipId:"playback.settings.range.animationStart",glyph:"play",date:P.startPlaybackTime,onUpdate:function(e){return R(E(o(o({},P),{},{startPlaybackTime:e})))},style:D,showButtons:!0}),a.createElement(g,{glyph:"stop",tooltipId:"playback.settings.range.animationEnd",date:P.endPlaybackTime,onUpdate:function(e){return R(E(o(o({},P),{},{endPlaybackTime:e})))},style:D,showButtons:!0}))),a.createElement(p,{controlId:"formPlaybackFollowingMode"},a.createElement(l,{componentClass:"fieldset",inline:!0},a.createElement(f,null,a.createElement(b,{msgId:"playback.settings.mode.following"})," ",a.createElement(y,{text:a.createElement(b,{msgId:"playback.settings.mode.followingDescription"})})),a.createElement("span",null,a.createElement(h,{checked:t,onChange:function(e){return s("following",e)}})))))}},"./MapStore2/web/client/components/time/InlineDateTimeSelector.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:function(e){return e};if(""!==n){var o=w(e.props.date).utc(),i=o["day"===t?"date":t]&&w(o)["day"===t?"date":t](r(n));i.isValid()&&!isNaN(i.toDate().getTime())&&e.props.onUpdate(i.toISOString())}})),p(u(e),"getForm",(function(){var t=e.props.date&&w(e.props.date).utc();return[{name:"icon",value:"calendar",type:"icon"},{name:"day",placeholder:"DD",value:t&&t.date()},{name:"month",placeholder:"MM",readOnly:!0,value:t&&t.month(),format:function(e){return!j(e)&&""!==e&&w.monthsShort(e)},parseValue:function(e){return e-1}},{name:"year",placeholder:"YYYY",value:t&&t.year()},{name:"icon",value:"time",type:"icon"},{name:"hours",placeholder:"hh",value:t&&t.hours()},{name:"separator",value:":",type:"separator"},{name:"minutes",placeholder:"mm",value:t&&t.minutes()},{name:"separator",value:":",type:"separator"},{name:"seconds",placeholder:"ss",value:t&&t.seconds()},{name:"separator",value:t&&t.utcOffset(),type:"separator",format:function(e){return"UTC "+(e>=0?"+":"-")+E(e/60,2,0)}}]})),e}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.getForm();return f.createElement(b,{className:"ms-inline-datetime ".concat(this.props.className),style:this.props.style},f.createElement(y,{controlId:"inlineDateTime"},this.props.glyph&&f.createElement("div",{style:this.props.clickable?{cursor:"pointer"}:{},onClick:function(){return e.props.clickable&&e.props.onIconClick(e.props.date,e.props.glyph)}},f.createElement(v,{tooltip:this.props.clickable?this.props.tooltip:void 0,tooltipId:this.props.clickable?this.props.tooltipId:void 0,className:"ms-inline-datetime-icon",glyph:this.props.glyph})),t.map((function(t){return"icon"===t.type&&f.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},f.createElement(v,{glyph:t.value}))||"separator"===t.type&&f.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},t.format&&t.format(t.value)||t.value)||f.createElement("div",{className:"ms-inline-datetime-input ms-dt-".concat(t.name)},e.props.showButtons&&f.createElement(S,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name,!0)}},f.createElement(v,{glyph:"chevron-up"})),f.createElement(g,{type:"text",readOnly:t.readOnly,placeholder:t.placeholder||t.name,disabled:!e.props.date,value:t.format&&t.format(t.value)||t.value,onChange:function(n){return e.onChange(t.name,n.target.value,t.parseValue)}}),e.props.showButtons&&f.createElement(S,{bsSize:"xs",disabled:!e.props.date,onClick:function(){return e.onUpdate(t.name)}},f.createElement(v,{glyph:"chevron-down"})))}))))}}])&&i(t.prototype,n),r&&i(t,r),l}(f.Component);p(A,"propTypes",{date:d.string,clickable:d.bool,onUpdate:d.func,onIconClick:d.func,glyph:d.string,style:d.object,className:d.string,tooltip:d.string,tooltipId:d.string,showButtons:d.bool}),p(A,"defaultProps",{date:"",onIconClick:function(){},clickable:!1,onUpdate:function(){},glyph:"time",style:{},className:"",tooltip:""}),e.exports=A},"./MapStore2/web/client/components/time/TimelineComponent.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?t.$el.initialFitDone?t.setAllItems(e):(t.setAllItems(e),t.$el.emit("changed")):t.$el.initialRangeChangeDone&&t.setAllItems(e)})),t.state={customTimes:[]},t}return t=u,(n=[{key:"componentDidMount",value:function(){var e=this,t=this.refs.container;this.$el=new y.Timeline(t,void 0,this.props.options),_.forEach((function(t){return e.$el.on(t,e.props["".concat(t,"Handler")])})),this.init()}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.items,r=t.groups,o=t.options,i=t.selection,a=t.customTimes,c=t.readOnly,s=t.rangeItems,u=n!==e.items,l=r!==e.groups,p=o!==e.options,f=a!==e.customTimes,d=i!==e.selection,m=c!==e.readOnly,b=s!==e.rangeItems;return u||l||p||f||d||m||b}},{key:"componentDidUpdate",value:function(e){this.init(e)}},{key:"componentWillUnmount",value:function(){this.$el.destroy()}},{key:"render",value:function(){return d.createElement("div",{ref:"container",className:this.props.readOnly?"read-only-timeline":"",onMouseOut:this.props.onMouseOutHandler})}},{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.props,r=n.items,o=n.rangeItems,i=n.groups,a=n.options,c=n.selection,s=n.selectionOptions,u=void 0===s?{}:s,l=n.customTimes,p=n.animate,f=void 0===p||p,d=n.currentTime,m=a;if(f&&(m=w(a,"start","end"),a.start&&a.end?this.$el.setWindow(a.start,a.end,{animation:f}):this.$el.setWindow(b().subtract(1,"month"),b().add(1,"month"),{animation:f})),this.$el.setOptions(m),i.length>0){var g=new y.DataSet;g.add(i),this.$el.setGroups(g)}if(r&&r!==t.items)this.setItems(r);else if(o!==t.rangeItems){var A=this.$el&&this.$el.itemsData&&this.$el.itemsData.getDataSet();if(A){var T=E(o||[],t.rangeItems||[],"id"),_=S(o||[],t.rangeItems||[],"id"),x=S(t.rangeItems||[],o||[],"id");T.map((function(e){return A.update(e)})),_.map((function(e){return A.add(e)})),x.map((function(e){var t=e.id;return A.remove(t)}))}else this.setItems(r)}this.$el.setSelection(c,u),d&&this.$el.setCurrentTime(d);var P=v(this.state.customTimes),M=v(l),R=h(M,P),C=h(P,M),I=O(P,M);j(C,(function(t){return e.$el.removeCustomTime(t)})),j(R,(function(t){var n=l[t];e.$el.addCustomTime(n,t)})),j(I,(function(t){var n=l[t];e.$el.setCustomTime(n,t)})),this.setState({customTimes:l}),(this.props.readOnly!==t.readOnly||this.props.readOnly&&R.length>0)&&j(this.$el.customTimes,(function(n){e.props.readOnly?n.hammer.off("panstart panmove panend"):!0===t.readOnly&&(n.hammer.on("panstart",n._onDragStart.bind(n)),n.hammer.on("panmove",n._onDrag.bind(n)),n.hammer.on("panend",n._onDragEnd.bind(n)))}))}}])&&a(t.prototype,n),r&&a(t,r),u}(d.Component);f(R,"propTypes",A(M,x)),f(R,"defaultProps",A({items:[],groups:[],options:{},selection:[],customTimes:{}},P)),e.exports=R},"./MapStore2/web/client/components/time/enhancers/customTimesEnhancer.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;i(e),t(e)}})}})),l(["rangeItems","currentTime","offsetEnabled","selectedLayer","currentTimeRange","readOnly"],(function(e){var t=e.currentTimeRange,n=e.rangeItems,r=void 0===n?[]:n,i=e.readOnly;return{rangeItems:e.offsetEnabled&&void 0!==t.start&&void 0!==t.end?[].concat(a(r),[o(o({id:"current-range",editable:{updateTime:!i,updateGroup:!1,remove:!1}},f(t.start,t.end)),{},{type:"background",className:"ms-current-range"})]).filter((function(e){return e})):r}}))),l(["currentTime","playbackRange","playbackEnabled","offsetEnabled","currentTimeRange"],(function(e){var t=e.currentTime,n=e.playbackRange,r=e.playbackEnabled,i=e.offsetEnabled,a=e.currentTimeRange;return{customTimes:[t?{currentTime:t}:{},r&&n&&n.startPlaybackTime&&n.endPlaybackTime?n:{},i&&a?{offsetTime:a.end}:{}].reduce((function(e,t){return t?o(o({},e),t):o({},e)}),{})}})))},"./MapStore2/web/client/components/time/enhancers/customTimesHandlers.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0},l=n("./MapStore2/web/client/utils/TimeUtils.js").getStartEnd;e.exports=a({clickHandler:function(e){var t=e.selectedLayer,n=e.offsetEnabled,r=e.status,o=e.setCurrentTime,i=void 0===o?function(){}:o,a=e.selectGroup,s=void 0===a?function(){}:a;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.time,a=e.group,u=e.what,l=e.event;if("PLAY"!==r)switch(u){case"group-label":a&&"PLAY"!==r&&s(a);break;default:var p=l&&l.target&&l.target.closest(".vis-custom-time"),f=p&&p.getAttribute("class"),d=f&&c(f.replace("vis-custom-time",""));o&&!n&&"startPlaybackTime"!==d&&"endPlaybackTime"!==d&&i(o.toISOString(),t)}}},timechangedHandler:function(e){var t=e.currentTime,n=e.setOffset,r=void 0===n?function(){}:n,a=e.setCurrentTime,c=void 0===a?function(){}:a,s=e.currentTimeRange,p=void 0===s?{}:s,f=e.playbackRange,d=e.setPlaybackRange,m=void 0===d?function(){}:d,b=e.selectedLayer;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.time,a=e.id;if("startPlaybackTime"!==a&&"endPlaybackTime"!==a)"currentTime"===a&&(p.end?u(n,p.end)?c(n.toISOString(),null):(c(p.end),r(n.toISOString())):c(n.toISOString(),b)),"offsetTime"===a&&(u(t,n)?r(n.toISOString()):(c(n.toISOString()),r(t)));else{var s=o(o({},f),{},i({},a,n.toISOString())),d=l(s.startPlaybackTime,s.endPlaybackTime),y=d.start,g=d.end;u(y,g)&&m({startPlaybackTime:y,endPlaybackTime:g})}}}})},"./MapStore2/web/client/components/widgets/widget/InfoPopover.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n div");return t&&e.enable&&o.a.enabled?o.a.request(t):t&&!e.enable&&o.a.exit(),l.a.Observable.merge(l.a.Observable.fromEvent(document,Object(i.last)(Object(i.head)([["exitFullscreen","fullscreenchange"],["webkitExitFullscreen","webkitfullscreenchange"],["webkitCancelFullScreen","webkitfullscreenchange"],["mozCancelFullScreen","mozfullscreenchange"],["msExitFullscreen","MSFullscreenChange"]].filter((function(e){return document[e[0]]}))))).filter((function(){return o.a.element!==t})).map((function(){return Object(a.setControlProperty)("fullscreen","enabled",!1)})),l.a.Observable.of(Object(a.setControlProperty)("fullscreen","enabled",e.enable)),l.a.Observable.fromEvent(window,"hashchange").do((function(){return o.a.exit()})).map((function(){return Object(a.setControlProperty)("fullscreen","enabled",!1)})))}))};t.default={toggleFullscreenEpic:p}},"./MapStore2/web/client/epics/identify.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./node_modules/lodash/lodash.js"),a=n("./node_modules/uuid/index.js"),c=n.n(a),s=n("./node_modules/connected-react-router/esm/actions.js"),u=n("./MapStore2/web/client/actions/mapInfo.js"),l=n("./MapStore2/web/client/actions/controls.js"),p=n("./MapStore2/web/client/actions/featuregrid.js"),f=n("./MapStore2/web/client/actions/wfsquery.js"),d=n("./MapStore2/web/client/actions/map.js"),m=n("./MapStore2/web/client/actions/layers.js"),b=n("./MapStore2/web/client/actions/annotations.js"),y=n("./MapStore2/web/client/actions/config.js"),g=n("./MapStore2/web/client/actions/mapPopups.js"),h=n("./MapStore2/web/client/actions/search.js"),S=n("./MapStore2/web/client/selectors/mapInfo.js"),v=n("./MapStore2/web/client/selectors/layers.js"),O=n("./MapStore2/web/client/selectors/featuregrid.js"),E=n("./MapStore2/web/client/selectors/queryform.js"),j=n("./MapStore2/web/client/selectors/map.js"),w=n("./MapStore2/web/client/selectors/maplayout.js"),A=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),T=n("./MapStore2/web/client/selectors/localConfig.js"),_=n("./MapStore2/web/client/selectors/controls.js"),x=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),P=n("./MapStore2/web/client/utils/MapUtils.js"),M=n("./MapStore2/web/client/utils/MapInfoUtils.js"),R=n.n(M),C=n("./MapStore2/web/client/components/map/popups/index.js"),I=n("./MapStore2/web/client/libs/ajax.js"),D=n.n(I);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}))).mergeMap((function(e){var t=Object(x.localizedLayerStylesEnvSelector)(a()),n=R.a.buildIdentifyRequest(e,B(B({},Object(S.identifyOptionsSelector)(a())),{},{env:t})),s=n.url,l=n.request,d=n.metadata;if(Object(S.itemIdSelector)(a())&&Object(S.overrideParamsSelector)(a())&&(l=B(B({},l),Object(S.overrideParamsSelector)(a())[e.name])),p[e.name]&&(l=B(B({},l),p[e.name])),s){var y=s,g=l,h=d,v=R.a.filterRequestParams(e,b,m),O=Object(S.isHighlightEnabledSelector)(a()),E=Object(S.itemIdSelector)(a()),j=c.a.v1(),w=B(B({},v),g);return function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.attachJSON,c=o.itemId,s=void 0===c?null:c,u=function(t){return r.Observable.defer((function(){return D.a.get(e,{params:t})}))},l=function(t){return R.a.getIdentifyFlow(n,e,t)},p=R.a.getIdentifyFlow(n,e,t)?l:u;return a&&"application/json"!==t.info_format&&"application/json"!==t.outputFormat?r.Observable.forkJoin(p(t),p(F(F({},t),{},{info_format:"application/json"})).map((function(e){return e.data})).catch((function(){return r.Observable.of({})}))).map((function(e){var t=N(e,2),n=t[0],r=t[1];return F(F({},n),{},{features:r&&r.features&&r.features.filter((function(e){return!!Object(i.isNil)(s)||e.id===s})),featuresCrs:r&&r.crs&&Object(A.parseURN)(r.crs)})})):p(t).map((function(e){return e.data})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{data:Object(i.isString)(e)?e:F(F({},e),{},{features:e.features&&e.features.filter((function(e){return!s||e.id===s}))}),features:e.features&&e.features.filter((function(e){return!s||e.id===s})),featuresCrs:e&&e.crs&&Object(A.parseURN)(e.crs)}}))}(y,w,e,{attachJSON:O,itemId:E}).map((function(t){return t.data.exceptions?Object(u.exceptionsFeatureInfo)(j,t.data.exceptions,g,h):Object(u.loadFeatureInfo)(j,t.data,g,B(B({},h),{},{features:t.features,featuresCrs:t.featuresCrs}),e)})).catch((function(e){return o.a.Observable.of(Object(u.errorFeatureInfo)(j,e.data||e.statusText||e.status,g,h))})).startWith(Object(u.newMapInfoRequest)(j,w))}return o.a.Observable.of(Object(u.getVectorInfo)(e,l,d,f))}));return t&&t.modifiers&&!0===t.modifiers.ctrl&&t.multiSelection?y:y.startWith(Object(u.purgeMapInfoResults)())}))},K=function(e,t){var n=t.getState;return e.ofType(u.FEATURE_INFO_CLICK).filter((function(){return!Object(S.isMapPopup)(n())})).map((function(e){return e.layer?Object(u.hideMapinfoMarker)():Object(u.showMapinfoMarker)()}))},Q=function(e){return e.ofType(u.LOAD_FEATURE_INFO,u.GET_VECTOR_INFO).switchMap((function(){return o.a.Observable.of(Object(p.closeFeatureGrid)())}))},Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(u.CLOSE_IDENTIFY).switchMap((function(){return Object(i.get)(r(),"annotations.editing")?o.a.Observable.of(Object(b.closeAnnotations)()):o.a.Observable.of(Object(u.purgeMapInfoResults)())}))},$=function(e){return e.ofType(u.CLOSE_IDENTIFY).flatMap((function(){return o.a.Observable.of(Object(u.hideMapinfoMarker)())}))},X=function(e,t){return e.ofType(d.CHANGE_MOUSE_POINTER).filter((function(){return!t.getState().map})).switchMap((function(t){return e.ofType(y.MAP_CONFIG_LOADED).mapTo(t)}))},J=function(e,t){return e.ofType(d.CLICK_ON_MAP).filter((function(){var e=t.getState().mapInfo.disableAlwaysOn,n=void 0!==e&&e;return!Object(j.isMouseMoveIdentifyActiveSelector)(t.getState())&&(n||!V(t.getState()||{}))})).switchMap((function(e){var n=e.point,r=e.layer,i=Object(j.projectionSelector)(t.getState());return o.a.Observable.of(Object(u.featureInfoClick)(q(n,i),r),Object(h.cancelSelectedItem)()).merge(o.a.Observable.of(Object(g.b)(c()(),{component:C.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:n?n.rawPos:[]}})).filter((function(){return Object(S.isMapPopup)(t.getState())})))}))},ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(u.UPDATE_FEATURE_INFO_CLICK_POINT).map((function(e){var t=e.point,n=Object(j.projectionSelector)(r());return{point:q(t,n)}})).withLatestFrom(e.ofType(u.FEATURE_INFO_CLICK),(function(e,t){var n=e.point;return B(B({},t),{},{point:n})}))},te=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(u.TOGGLE_HIGHLIGHT_FEATURE).filter((function(e){return e.enabled&&Object(S.clickPointSelector)(r())})).switchMap((function(){return o.a.Observable.from([Object(u.featureInfoClick)(Object(S.clickPointSelector)(r()),Object(S.clickLayerSelector)(r()),Object(S.filterNameListSelector)(r()),Object(S.overrideParamsSelector)(r()),Object(S.itemIdSelector)(r())),Object(u.showMapinfoMarker)()])}))},ne=function(e,t){return e.ofType(u.FEATURE_INFO_CLICK).filter((function(){return Object(v.centerToMarkerSelector)(t.getState())})).switchMap((function(n){return e.ofType(u.LOAD_FEATURE_INFO,u.ERROR_FEATURE_INFO).switchMap((function(){var r=t.getState(),a=Object(j.mapSelector)(r),c=Object(j.projectionSelector)(r),s=Object(j.projectionDefsSelector)(r),l=Object(i.find)(s,{code:c}),p=l&&l.extent,f=p&&Object(A.reprojectBbox)(p,c,"EPSG:4326"),m=Object(w.boundingMapRectSelector)(r),b=n.point&&n.point&&n.point.latlng,y=Object(P.getCurrentResolution)(Math.round(a.zoom),0,21,96),g=m&&a&&a.size&&{left:Object(P.parseLayoutValue)(m.left,a.size.width),bottom:Object(P.parseLayoutValue)(m.bottom,a.size.height),right:Object(P.parseLayoutValue)(m.right,a.size.width),top:Object(P.parseLayoutValue)(m.top,a.size.height)};if(!a||!g||!b||n.point.cartographic||Object(A.isInsideVisibleArea)(b,a,g,y)||Object(j.isMouseMoveIdentifyActiveSelector)(r))return o.a.Observable.of(Object(u.updateCenterToMarker)("disabled"));if(f&&!Object(A.isPointInsideExtent)(b,f))return o.a.Observable.empty();var h=Object(A.centerToVisibleArea)(b,a,g,y);return o.a.Observable.of(Object(u.updateCenterToMarker)("enabled"),Object(d.zoomToPoint)(h.pos,h.zoom,h.crs)).concat(e.ofType(u.CLOSE_IDENTIFY).switchMap((function(){var e=a&&Object(P.getBbox)(a.center,a.zoom);return o.a.Observable.of(Object(d.changeMapView)(a.center,a.zoom,e,a.size,null,a.projection))})).takeUntil(e.ofType(d.CHANGE_MAP_VIEW).skip(1)))}))}))},re=function(e,t){return e.ofType(l.SET_CONTROL_PROPERTIES).filter((function(e){return"metadataexplorer"===e.control&&e.properties&&e.properties.enabled})).switchMap((function(){return o.a.Observable.of(Object(u.purgeMapInfoResults)(),Object(u.hideMapinfoMarker)()).merge(o.a.Observable.of(Object(g.c)()).filter((function(){return Object(S.isMapPopup)(t.getState())})))}))},oe=function(e,t){var n=t.getState;return e.ofType(l.TOGGLE_CONTROL).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control;return"annotations"===t&&Object(i.get)(n(),"controls.annotations.enabled",!1)})).mapTo(Object(u.purgeMapInfoResults)())},ie=function(e){return e.ofType(l.SET_CONTROL_PROPERTY).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.control,n=e.value;return"measure"===t&&n})).mapTo(Object(u.purgeMapInfoResults)())},ae=function(e,t){var n=t.getState;return e.ofType(u.PURGE_MAPINFO_RESULTS).filter((function(){return Object(S.isMapPopup)(n())})).mapTo(Object(g.c)())},ce=function(e,t){return e.ofType(u.EDIT_LAYER_FEATURES).exhaustMap((function(e){var n,r=e.layer;return o.a.Observable.of(Object(u.setCurrentEditFeatureQuery)(null===(n=Object(S.clickPointSelector)(t.getState()))||void 0===n?void 0:n.geometricFilter),Object(m.browseData)(r))}))},se=function(e,t){return e.ofType(f.QUERY_CREATE).switchMap((function(){var e=Object(S.currentEditFeatureQuerySelector)(t.getState()),n=(Object(i.find)(Object(O.getAttributeFilters)(t.getState()),(function(e){return"geometry"===e.type}))||{}).attribute||Object(i.get)(Object(E.spatialFieldSelector)(t.getState()),"attribute");return e?o.a.Observable.of(Object(u.setCurrentEditFeatureQuery)(),Object(p.toggleEditMode)(),Object(p.updateFilter)(B(B({},e),{},{attribute:n,value:B(B({},e.value),{},{attribute:n})}))):o.a.Observable.empty()}))},ue=function(e){return e.ofType(p.CLOSE_FEATURE_GRID,s.b).mapTo(Object(u.setCurrentEditFeatureQuery)())},le=function(e,t){var n=t.getState;return e.ofType(d.MOUSE_MOVE).debounceTime(Object(T.a)(n())).switchMap((function(e){var t=e.position,r=e.layer,i=Object(_.createControlEnabledSelector)("annotations")(n()),a=Object(_.measureSelector)(n()),s=n().mousePosition.mouseOut;return!Object(j.isMouseMoveIdentifyActiveSelector)(n())||i||a||s?o.a.Observable.empty():o.a.Observable.of(Object(u.featureInfoClick)(t,r)).merge(o.a.Observable.of(Object(g.b)(c()(),{component:C.IDENTIFY_POPUP,maxWidth:600,position:{coordinates:t?t.rawPos:[]},autoPanMargin:70,autoPan:!0})))}))},pe=function(e,t){var n=t.getState;return e.ofType(d.UNREGISTER_EVENT_LISTENER).switchMap((function(){var e,t,r=o.a.Observable.empty(),i=(null===(e=n())||void 0===e||null===(t=e.mapPopups)||void 0===t?void 0:t.popups)||[];if(i.length&&!Object(j.isMouseMoveIdentifyActiveSelector)(n())){var a=i[0].id;r=o.a.Observable.of(Object(g.d)(a))}return r}))},fe=function(e,t){var n=t.getState;return e.ofType(s.b,u.PURGE_MAPINFO_RESULTS).switchMap((function(){var e,t,r=o.a.Observable.empty(),i=(null===(e=n())||void 0===e||null===(t=e.mapPopups)||void 0===t?void 0:t.popups)||[];if(i.length){var a=i[0].id;r=o.a.Observable.of(Object(g.d)(a))}return r}))},de=function(e,t){var n=t.getState;return e.ofType(g.a).switchMap((function(){return Object(j.isMouseMoveIdentifyActiveSelector)(n())?o.a.Observable.of(Object(u.hideMapinfoMarker)()):o.a.Observable.empty()}))},me=function(e,t){return e.ofType(u.SET_MAP_TRIGGER,y.MAP_CONFIG_LOADED).switchMap((function(){return o.a.Observable.of("hover"===Object(S.mapTriggerSelector)(t.getState())?Object(d.registerEventListener)("mousemove","identifyFloatingTool"):Object(d.unRegisterEventListener)("mousemove","identifyFloatingTool"))}))};t.default={getFeatureInfoOnFeatureInfoClick:W,handleMapInfoMarker:K,closeFeatureGridFromIdentifyEpic:Q,closeFeatureAndAnnotationEditing:Z,hideMarkerOnIdentifyClose:$,changeMapPointer:X,onMapClick:J,onUpdateFeatureInfoClickPoint:ee,featureInfoClickOnHighligh:te,zoomToVisibleAreaEpic:ne,closeFeatureInfoOnCatalogOpenEpic:re,closeFeatureInfoOnAnnotationOpenEpic:oe,closeFeatureInfoOnMeasureOpenEpic:ie,cleanPopupsEpicOnPurge:ae,identifyEditLayerFeaturesEpic:ce,switchFeatureGridToEdit:se,resetCurrentEditFeatureQuery:ue,mouseMoveMapEventEpic:le,removePopupOnUnregister:pe,removePopupOnLocationChangeEpic:fe,removeMapInfoMarkerOnRemoveMapPopupEpic:de,setMapTriggerEpic:me}},"./MapStore2/web/client/epics/maps.js":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./node_modules/object-assign/index.js"),a=n.n(i),c=n("./node_modules/connected-react-router/esm/actions.js"),s=n("./MapStore2/web/client/utils/NotificationUtils.js"),u=n("./MapStore2/web/client/api/GeoStoreDAO.js"),l=n.n(u),p=n("./MapStore2/web/client/actions/config.js"),f=n("./node_modules/lodash/lodash.js"),d=n("./MapStore2/web/client/actions/maps.js"),m=n("./MapStore2/web/client/actions/featuregrid.js"),b=n("./MapStore2/web/client/actions/controls.js"),y=function(e,t){return Object(f.find)(function(e){return Object(f.get)(e,"maps.results",[])}(e),(function(e){return e.id===t}))},g=function(e){return e&&e.maps&&e.maps.searchText},h=function(e){return{start:Object(f.get)(e,"maps.start"),limit:Object(f.get)(e,"maps.limit")}},S=function(e){return e&&e.maps&&e.maps.searchFilter},v=n("./MapStore2/web/client/selectors/map.js"),O=n("./MapStore2/web/client/selectors/maptype.js"),E=n("./MapStore2/web/client/selectors/security.js"),j=n("./MapStore2/web/client/actions/security.js"),w=n("./MapStore2/web/client/utils/ObservableUtils.js"),A=n("./MapStore2/web/client/utils/MapUtils.js"),T=n("./MapStore2/web/client/utils/LocaleUtils.js"),_=n("./MapStore2/web/client/utils/MapInfoUtils.js"),x=n("./MapStore2/web/client/api/persistence/index.js"),P=n("./MapStore2/web/client/observables/epics.js");function M(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"loadMapsEpic",(function(){return G})),n.d(t,"reloadMapsEpic",(function(){return U})),n.d(t,"getMapsResourcesByCategoryEpic",(function(){return B})),n.d(t,"loadMapsOnSearchFilterChange",(function(){return H})),n.d(t,"hideTabsOnSearchFilterChange",(function(){return z})),n.d(t,"mapsLoadContextsEpic",(function(){return Y})),n.d(t,"mapsSetupFilterOnLogin",(function(){return V})),n.d(t,"deleteMapAndAssociatedResourcesEpic",(function(){return q})),n.d(t,"fetchDataForDetailsPanel",(function(){return W})),n.d(t,"closeDetailsPanelEpic",(function(){return K})),n.d(t,"storeDetailsInfoEpic",(function(){return Q})),n.d(t,"mapSaveMapResourceEpic",(function(){return Z}));var F=function(e){var t=function(e){return Object(f.get)(e,"maps.totalCount")}(e),n=h(e)||{},r=n.start,o=n.limit,i=k(n,["start","limit"]);return r===t-1?{start:Math.max(0,r-o),limit:o}:N({start:r,limit:o},i)},G=function(e){return e.ofType(d.k).switchMap((function(e){var t=e.params,n=e.searchText,r=e.geoStoreUrl,i=n.replace(/[/?:;@=&\\]+/g,""),c=a()({},{params:t},r?{baseURL:r}:{});return o.a.Observable.of(Object(d.R)(i,t),Object(d.G)("MAP",i,c))}))},U=function(e,t){var n=t.getState,r=void 0===n?function(){}:n;return e.ofType(d.n,p.MAP_SAVED,d.v,d.a,"DASHBOARDS:DASHBOARD_DELETED").delay(1e3).switchMap((function(){return o.a.Observable.of(Object(d.K)(!1,g(r()),F(r())),Object(d.H)())}))},B=function(e,t){return e.ofType(d.g).switchMap((function(e){var n=t.getState(),r=S(n)||{},i=Object(E.userRoleSelector)(n),a=e.map,c=e.searchText,s=e.opts,u=void 0===s?{}:s,p=r.contexts&&r.contexts.length>0,m=p&&"*"===c?"":c,b=function(e){var t=e.results,n=k(e,["results"]),r=Object(f.isArray)(t)?t:""===t?[]:[t];return 0===r.length?o.a.Observable.of(N({results:[]},n)):o.a.Observable.forkJoin(r.map((function(e){var t=e.context;return t?Object(x.getResource)(t,{includeAttributes:!1,withData:!1,withPermissions:!1}).switchMap((function(e){return o.a.Observable.of(e.name)})).catch((function(){return o.a.Observable.of(null)})):o.a.Observable.of(null)}))).map((function(e){return N({results:Object(f.zip)(r,e).map((function(e){var t=R(e,2),n=t[0],r=t[1];return N(N({},n),{},{contextName:r})}))},n)}))};return(p?Object(x.searchListByAttributes)({AND:{FIELD:[{field:["NAME"],operator:["ILIKE"],value:["%"+m+"%"]}],OR:p&&{ATTRIBUTE:(r.contexts||[]).map((function(e){return{name:["context"],operator:["EQUAL_TO"],type:["STRING"],value:[e.id]}}))}}},N(N({},u),{},{params:N(N({},u.params||{}),{},{includeAttributes:!0})})).switchMap((function(e){var t=e.results,n=e.totalCount,r={results:t.map((function(e){return N(N(N({},Object(f.omit)(e,"attributes","permissions")),Object(f.pick)(e.attributes,"thumbnail","context")),{},{canCopy:"ADMIN"===i,canEdit:"ADMIN"===i,canDelete:"ADMIN"===i})})),totalCount:n,success:!0};return b(r).switchMap((function(e){return o.a.Observable.of(Object(d.Q)(e,u.params,m))}))})):o.a.Observable.fromPromise(l.a.getResourcesByCategory(a,m,N(N({},u),{},{params:N(N({},u.params||{}),{},{includeAttributes:!0})})).then((function(e){return e}))).switchMap((function(e){return b(e).switchMap((function(e){var t;return o.a.Observable.of(Object(d.Q)(N(N({},e),{},{results:null===(t=e.results)||void 0===t?void 0:t.map((function(e){return N(N({},e),{},{category:{name:"MAP"}})}))}),u.params,c))}))}))).let(Object(P.wrapStartStop)(Object(d.L)(!0,"loadingMaps"),Object(d.L)(!1,"loadingMaps"),(function(e){return o.a.Observable.of(Object(d.J)(e))})))}))},H=function(e,t){return e.ofType(d.y,d.z).filter((function(e){var t=e.filter;return!t||"contexts"===t})).switchMap((function(e){var n,r=e.type,i=t.getState(),a=S(i),c=g(i),s=h(i)||{},u=s.limit,l=void 0===u?12:u,p=k(s,["limit"]);return(n=o.a.Observable).of.apply(n,M(r===d.z?[Object(d.V)({})]:[]).concat(M(r!==d.z||a&&0!==(a.contexts||[]).length?[Object(d.K)(null,c,N({start:0,limit:l},Object(f.omit)(p,"start")))]:[])))}))},z=function(e){return e.ofType(d.y,d.z).filter((function(e){var t=e.filter;return!t||"contexts"===t})).switchMap((function(e){var t=e.filterData;return o.a.Observable.of({type:"CONTENT_TABS:SET_TABS_HIDDEN",tabs:0===(t||[]).length?{geostories:!1,dashboards:!1}:{geostories:!0,dashboards:!0}})}))},Y=function(e){return e.ofType(d.f).distinctUntilChanged((function(e,t){return(e.searchText||"*")===(t.searchText||"*")&&Object(f.isEqual)(e.options,t.options)&&!t.force})).switchMap((function(e){var t=e.searchText,n=e.options,r=void 0===n?{}:n,i=e.delayLoad,a=void 0===i?0:i,c=t||"*";return o.a.Observable.of(null).delay(a).switchMap((function(){return o.a.Observable.defer((function(){return l.a.getResourcesByCategory("CONTEXT",c,r)})).switchMap((function(e){return o.a.Observable.of(Object(d.U)({results:(Object(f.isArray)(e.results)?e.results:[e.results]).filter((function(e){return!!e})),totalCount:e.totalCount,searchText:c,start:Object(f.get)(r,"params.start"),limit:Object(f.get)(r,"params.limit")}))})).let(Object(P.wrapStartStop)(Object(d.L)(!0,"loadingContexts"),Object(d.L)(!1,"loadingContexts"),(function(){return o.a.Observable.of(Object(s.basicError)({message:"maps.feedback.errorLoadingContexts"}))})))}))}))},V=function(e,t){return e.ofType(j.d,j.e).switchMap((function(){var e=function(e){return e&&e.maps&&e.maps.contexts}(t.getState())||{};return o.a.Observable.of(Object(b.setControlProperty)("advancedsearchpanel","enabled",!1),Object(d.I)(e.searchText,{params:{start:Object(f.get)(e,"start",0),limit:Object(f.get)(e,"limit",12)}},0,!0))}))},q=function(e,t){return e.ofType(d.c).switchMap((function(e){var n=t.getState(),r=e.resourceId,i=e.options,a=function(e,t){return y(e,t)&&y(e,t).details||""}(n,r),c=function(e,t){return y(e,t)&&y(e,t).thumbnail||""}(n,r),u=Object(A.getIdFromUri)(a),l=Object(A.getIdFromUri)(c);return o.a.Observable.forkJoin(Object(w.deleteResourceById)(l,i),Object(w.deleteResourceById)(u,i),Object(w.deleteResourceById)(r,i)).concatMap((function(e){var t=R(e,3),n=t[0],i=t[1],a=t[2],c=[];return"error"===n.resType&&c.push(Object(s.basicError)({message:"maps.feedback.errorDeletingDetailsOfMap"})),"error"===i.resType&&c.push(Object(s.basicError)({message:"maps.feedback.errorDeletingThumbnailOfMap"})),"error"===a.resType&&(c.push(Object(s.basicError)({message:"maps.feedback.errorDeletingMap"})),c.push(Object(d.N)(r,"failure",a.error))),"success"===a.resType&&c.push(Object(d.N)(r,"success")),"success"===a.resType&&"success"===n.resType&&"success"===i.resType&&c.push(Object(s.basicSuccess)({message:"maps.feedback.allResDeleted"})),o.a.Observable.from(c)})).startWith(Object(d.O)(r))}))},W=function(e,t){return e.ofType(d.t).switchMap((function(){var e=t.getState(),n=Object(v.mapInfoDetailsUriFromIdSelector)(e),r=Object(A.getIdFromUri)(n);return o.a.Observable.fromPromise(l.a.getData(r).then((function(e){return e}))).switchMap((function(e){return o.a.Observable.of(Object(m.closeFeatureGrid)(),Object(d.W)(e))})).startWith(Object(b.toggleControl)("details","enabled")).catch((function(){return o.a.Observable.of(Object(s.basicError)({message:"maps.feedback.errorFetchingDetailsOfMap"}),Object(d.W)(d.s))}))}))},K=function(e){return e.ofType(d.b).switchMap((function(){return o.a.Observable.from([Object(b.toggleControl)("details","enabled")])}))},Q=function(e,t){return e.ofType(p.MAP_INFO_LOADED).switchMap((function(){var e=Object(v.mapIdSelector)(t.getState());return e?o.a.Observable.fromPromise(l.a.getResourceAttributes(e)).switchMap((function(t){var n,r=Object(f.find)(t,{name:"details"}),i=Object(f.find)(t,{name:"detailsSettings"}),a={};if(!r||r.value===_.EMPTY_RESOURCE_VALUE)return o.a.Observable.empty();try{a=JSON.parse(i.value)}catch(e){a={}}return(n=o.a.Observable).of.apply(n,[Object(d.F)(e,r.value,a)].concat(M(a.showAtStartup?[Object(d.S)()]:[])))})):o.a.Observable.empty()}))},Z=function(e,t){return e.ofType(d.w).exhaustMap((function(e){var n,r=e.resource,i=Object(f.mapValues)(r.attributes,(function(e){if(Object(f.isObject)(e)){var t=null;try{t=JSON.stringify(e)}catch(e){t=null}return t}return e})),u=Object(f.keys)(i).filter((function(e){return"thumbnail"!==e&&"details"!==e&&!Object(f.isNil)(i[e])}));return o.a.Observable.forkJoin((n=Object(f.get)(r,"attributes.context"),n?Object(x.getResource)(n,{withData:!1}):o.a.Observable.of(null)),r.id?Object(x.updateResource)(r):Object(x.createResource)(r)).switchMap((function(e){var n=R(e,2),l=n[0],f=n[1];return(u.length>0?o.a.Observable.forkJoin(u.map((function(e){return Object(x.updateResourceAttribute)({id:f,name:e,value:i[e]})}))):o.a.Observable.of([])).switchMap((function(){return o.a.Observable.from([].concat(M(r.id?[Object(p.loadMapInfo)(f)]:[]),M(r.id?[Object(p.configureMap)(r.data,f)]:[]),[r.id?Object(b.toggleControl)("mapSave"):Object(b.toggleControl)("mapSaveAs"),Object(p.mapSaved)(r.id)],M(r.id?[]:[Object(d.M)(f,a()({id:f,canDelete:!0,canEdit:!0,canCopy:!0},r.metadata),r.data),Object(c.d)(l?"/context/".concat(l.name,"/").concat(f):"/viewer/".concat(Object(O.mapTypeSelector)(t.getState()),"/").concat(f))]))).merge(o.a.Observable.of(Object(s.basicSuccess)({title:"map.savedMapTitle",message:"map.savedMapMessage",autoDismiss:6,position:"tc"})))}))})).catch((function(e){var t=e.status,n=e.statusText,r=e.data,i=e.message,a=k(e,["status","statusText","data","message"]);return o.a.Observable.of(Object(p.mapSaveError)(t?{status:t,statusText:n,data:r}:i||a),Object(s.basicError)(N(N({},Object(T.getErrorMessage)(e,"geostore","mapsError")),{},{autoDismiss:6,position:"tc"})))})).startWith(r.id?Object(d.P)(r.metadata):Object(d.T)(r.metadata))}))};t.default={loadMapsEpic:G,reloadMapsEpic:U,getMapsResourcesByCategoryEpic:B,loadMapsOnSearchFilterChange:H,hideTabsOnSearchFilterChange:z,mapsLoadContextsEpic:Y,mapsSetupFilterOnLogin:V,deleteMapAndAssociatedResourcesEpic:q,fetchDataForDetailsPanel:W,closeDetailsPanelEpic:K,storeDetailsInfoEpic:Q,mapSaveMapResourceEpic:Z}},"./MapStore2/web/client/epics/playback.js":function(e,t,n){"use strict";n.r(t),n.d(t,"retrieveFramesForPlayback",(function(){return I})),n.d(t,"updateCurrentTimeFromAnimation",(function(){return D})),n.d(t,"timeDimensionPlayback",(function(){return N})),n.d(t,"playbackToggleGuideLayerToFixedStep",(function(){return L})),n.d(t,"playbackMoveStep",(function(){return k})),n.d(t,"playbackCacheNextPreviousTimes",(function(){return F})),n.d(t,"playbackFollowCursor",(function(){return G})),n.d(t,"playbackStopWhenDeleteLayer",(function(){return U}));var r=n("./node_modules/moment/moment.js"),o=n.n(r),i=n("./node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/playback.js"),c=n("./MapStore2/web/client/actions/dimension.js"),s=n("./MapStore2/web/client/actions/timeline.js"),u=n("./MapStore2/web/client/actions/layers.js"),l=n("./MapStore2/web/client/actions/notifications.js"),p=n("./MapStore2/web/client/selectors/dimension.js"),f=n("./node_modules/connected-react-router/esm/actions.js"),d=n("./MapStore2/web/client/selectors/playback.js"),m=n("./MapStore2/web/client/selectors/timeline.js"),b=n("./MapStore2/web/client/observables/pausable.js"),y=n.n(b),g=n("./MapStore2/web/client/observables/epics.js"),h=n("./MapStore2/web/client/api/MultiDim.js"),S=n("./node_modules/rxjs/Rx.js"),v=n.n(S);function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||j(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||j(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(m.selectedLayerSelector)(e()),r=Object(m.selectedLayerName)(e()),o=Object(m.selectedLayerUrl)(e()),i=Object(d.playbackRangeSelector)(e())||{},c=i.startPlaybackTime,s=i.endPlaybackTime,u=Object(d.statusSelector)(e())===a.STATUS.PLAY||Object(d.statusSelector)(e())===a.STATUS.PAUSE;return[o,r,"time",T({limit:20,time:c&&s&&u?x(c,s):void 0},t),Object(m.multidimOptionsSelectorCreator)(n)(e())]},M=function(e,t){if(Object(m.selectedLayerName)(e())){var n=Object(p.layerTimeSequenceSelectorCreator)(Object(m.selectedLayerData)(e()))(e()),r=Object(m.selectedLayerTimeDimensionConfiguration)(e());return"multidim-extension"!==Object(i.get)(r,"source.type")&&n&&n.length>0?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.fromValue,i=n.limit,a=void 0===i?20:i,c=Object(d.playbackRangeSelector)(t())||{},s=c.startPlaybackTime,u=c.endPlaybackTime;return v.a.Observable.of(e.filter((function(e){return!s||!u||o()(e).isSameOrAfter(s)&&o()(e).isSameOrBefore(u)})).filter((function(e){return!r||o()(e).isAfter(r)})).slice(0,a))}(n,e,t):h.getDomainValues.apply(void 0,E(P(e,t))).map((function(e){return e.DomainValues.Domain.split(",")}))}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fromValue,r=t.limit,i=void 0===r?20:r,a=t.sort,c=void 0===a?"asc":a,s=Object(d.playbackSettingsSelector)(e()),u=s.timeStep,l=s.stepUnit,f=o.a.duration(u,l),m=Object(d.playbackRangeSelector)(e())||{},b=m.startPlaybackTime,y=m.endPlaybackTime,g=void 0!==n?n:b||Object(p.currentTimeSelector)(e())||(new Date).toString(),h=[];g!==n&&h.push(o()(g).toISOString());for(var S=0;S0&&void 0!==arguments[0]?arguments[0]:function(){return{}};return function(t){var n=Object(p.layersWithTimeDataSelector)(e());return v.a.Observable.from(n.map((function(e){return Object(u.changeLayerProperties)(e.id,{singleTile:!0})}))).concat(t).concat(v.a.Observable.from(n.map((function(e){return Object(u.changeLayerProperties)(e.id,{singleTile:e.singleTile})}))))}},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.start,r=t.end;return n&&r&&(o()(e).isBefore(n)||o()(e).isAfter(r))},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(a.PLAY).exhaustMap((function(){return M(r,{fromValue:Object(d.playbackRangeSelector)(r())&&Object(d.playbackRangeSelector)(r()).startPlaybackTime&&Object(d.playbackRangeSelector)(r()).endPlaybackTime?void 0:Object(p.currentTimeSelector)(r())}).map((function(e){return Object(a.setFrames)(e)})).let(Object(g.wrapStartStop)(Object(a.framesLoading)(!0),Object(a.framesLoading)(!1)),(function(){return v.a.Observable.of(Object(l.error)({title:"There was an error retrieving animation",message:"Please contact the administrator"}),Object(a.stop)())})).let(Object(g.wrapStartStop)(Object(s.timeDataLoading)(!1,!0),Object(s.timeDataLoading)(!1,!1))).concat(e.ofType(a.SET_CURRENT_FRAME).filter((function(e){return e.frame%20==10})).switchMap((function(){return M(r,{fromValue:Object(d.lastFrameSelector)(r())}).map(a.appendFrames).let(Object(g.wrapStartStop)(Object(a.framesLoading)(!0),Object(a.framesLoading)(!1)))}))).takeUntil(e.ofType(a.STOP,f.b)).concat(v.a.Observable.of(Object(s.timeDataLoading)(!1,!1))).let(R(r))}))},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(a.SET_CURRENT_FRAME).map((function(){return Object(d.currentFrameValueSelector)(r())})).map((function(e){return e?Object(c.moveTime)(e):Object(a.stop)()}))},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(a.SET_FRAMES).exhaustMap((function(){return v.a.Observable.interval(1e3*Object(d.frameDurationSelector)(r())).startWith(0).let(y()(e.ofType(a.PLAY,a.PAUSE).map((function(e){return e.type===a.PLAY})))).map((function(){return Object(a.setCurrentFrame)(Object(d.currentFrameSelector)(r())+1)})).merge(e.ofType(a.ANIMATION_STEP_MOVE).map((function(e){var t=e.direction;return Object(a.setCurrentFrame)(Math.max(0,Object(d.currentFrameSelector)(r())+t))}))).concat(v.a.Observable.of(Object(a.stop)())).takeUntil(e.ofType(a.STOP,f.b))}))},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(a.TOGGLE_ANIMATION_MODE).exhaustMap((function(){return Object(m.selectedLayerName)(r())?v.a.Observable.of(Object(s.selectLayer)(void 0)):v.a.Observable.of(Object(s.selectLayer)(Object(i.get)(Object(m.timelineLayersSelector)(r()),"[0].id")))}))},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(a.ANIMATION_STEP_MOVE).filter((function(){return Object(d.statusSelector)(r())!==a.STATUS.PLAY})).switchMap((function(e){var t=e.direction,n=void 0===t?1:t,o=Object(d.playbackMetadataSelector)(r())||{},i=Object(p.currentTimeSelector)(r());return i&&o.forTime===i?v.a.Observable.of(n>0?o.next:o.previous):M(r,{limit:1,sort:n>0?"asc":"desc",fromValue:Object(p.currentTimeSelector)(r())}).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=O(e,1),n=t[0];return n}))})).filter((function(e){return!!e})).map((function(e){return Object(c.moveTime)(e)}))},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.SET_CURRENT_TIME,c.MOVE_TIME,s.SELECT_LAYER,a.STOP,s.SET_MAP_SYNC).filter((function(){return Object(d.statusSelector)(r())!==a.STATUS.PLAY&&Object(d.statusSelector)(r())!==a.STATUS.PAUSE})).filter((function(){return Object(m.selectedLayerSelector)(r())})).filter((function(e){return!!e})).switchMap((function(e){var t=e.time||Object(p.currentTimeSelector)(r());return v.a.Observable.forkJoin(h.getDomainValues.apply(void 0,E(P(r,{sort:"asc",limit:1,fromValue:t}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return O(e,1)[0]})).catch((function(e){return e&&v.a.Observable.of(null)})),h.getDomainValues.apply(void 0,E(P(r,{sort:"desc",limit:1,fromValue:t}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return O(e,1)[0]})).catch((function(e){return e&&v.a.Observable.of(null)}))).map((function(e){var n=O(e,2),r=n[0],o=n[1];return Object(a.updateMetadata)({forTime:t,next:r,previous:o})}))}))},G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(c.MOVE_TIME).filter((function(e){return(e.type===c.MOVE_TIME||Object(d.statusSelector)(r())===a.STATUS.PLAY)&&C(Object(p.currentTimeSelector)(r()),Object(m.rangeSelector)(r()))})).filter((function(){return Object(i.get)(Object(d.playbackSettingsSelector)(r()),"following")})).switchMap((function(){return v.a.Observable.of(Object(s.onRangeChanged)((e=Object(p.currentTimeSelector)(r()),t=Object(m.rangeSelector)(r()),n=t.start,i=t.end,a=o()(i).diff(o()(n)),{start:e,end:o()(e).add(a).toISOString()})));var e,t,n,i,a}))},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(u.REMOVE_NODE).filter((function(){return!Object(m.selectedLayerSelector)(r())&&"PLAY"===Object(d.statusSelector)(r())})).switchMap((function(){return v.a.Observable.of(Object(a.stop)())}))};t.default={retrieveFramesForPlayback:I,updateCurrentTimeFromAnimation:D,timeDimensionPlayback:N,playbackToggleGuideLayerToFixedStep:L,playbackMoveStep:k,playbackCacheNextPreviousTimes:F,playbackFollowCursor:G,playbackStopWhenDeleteLayer:U}},"./MapStore2/web/client/epics/timeline.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setTimelineCurrentTime",(function(){return M})),n.d(t,"setupTimelineExistingSettings",(function(){return R})),n.d(t,"settingInitialOffsetValue",(function(){return C})),n.d(t,"updateRangeDataOnRangeChange",(function(){return I}));var r=n("./node_modules/rxjs/Rx.js"),o=n.n(r),i=n("./node_modules/lodash/lodash.js"),a=n("./node_modules/moment/moment.js"),c=n.n(a),s=n("./MapStore2/web/client/observables/epics.js"),u=n("./MapStore2/web/client/actions/map.js"),l=n("./MapStore2/web/client/actions/timeline.js"),p=n("./MapStore2/web/client/actions/dimension.js"),f=n("./MapStore2/web/client/actions/layers.js"),d=n("./MapStore2/web/client/actions/notifications.js"),m=n("./MapStore2/web/client/selectors/layers.js"),b=n("./MapStore2/web/client/selectors/timeline.js"),y=n("./MapStore2/web/client/selectors/dimension.js"),g=n("./MapStore2/web/client/utils/TimeUtils.js"),h=n("./MapStore2/web/client/api/MultiDim.js");function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||O(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||O(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=Object(b.selectedLayerSelector)(e),r=Object(b.selectedLayerName)(e),o=Object(b.selectedLayerUrl)(e),i=Object(b.multidimOptionsSelectorCreator)(n)(e);return[o,r,"time",w({limit:1},t),i]},_=function(e,t,n){if(Object(b.selectedLayerName)(e))return o.a.Observable.forkJoin(h.getDomainValues.apply(void 0,v(T(e,{sort:"asc",fromValue:n}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return S(e,1)[0]})).catch((function(e){return e&&o.a.Observable.of(null)})),h.getDomainValues.apply(void 0,v(T(e,{sort:"desc",fromValue:n}))).map((function(e){return e.DomainValues.Domain.split(",")})).map((function(e){return S(e,1)[0]})).catch((function(e){return e&&o.a.Observable.of(null)}))).map((function(e){return Object(g.getNearestDate)(e.filter((function(e){return!!e})),n)||n}));var r=Object(y.layerTimeSequenceSelectorCreator)(Object(m.getLayerFromId)(e,t))(e);return o.a.Observable.of(Object(g.getNearestDate)(r,n)||n)},x=function(e){return Object(i.isString)(e)?e:e.toISOString()},P=function(e,t,n){var r=t.domain.split("--"),a=Object(b.rangeSelector)(n())||{start:new Date(r[0]),end:new Date(r[1])},c=Object(g.roundRangeResolution)(a,20),s=c.range,u=c.resolution,l=Object(m.getLayerFromId)(n(),e).name,p=A({},"time","".concat(x(s.start),"/").concat(x(s.end)));return Object(h.getHistogram)(t.source.url,l,"time",A({},"time","".concat(x(s.start),"/").concat(x(s.end))),u,Object(b.multidimOptionsSelectorCreator)(e)(n())).merge(Object(h.describeDomains)(t.source.url,l,p,w(w({},Object(b.multidimOptionsSelectorCreator)(e)(n())),{},{expandLimit:20}))).scan((function(e,t){return w(w({},e),t)}),{}).switchMap((function(e){var t,n=e.Histogram,r=e.Domains,a=Object(i.get)(Object(i.head)(Object(i.castArray)(Object(i.get)(r,"DimensionDomain")||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Identifier;return"time"===t}))),"Domain");try{t=n&&n.Values&&n.Values.split(",").map((function(e){return parseInt(e,10)}))||[]}catch(e){t=[]}var c=a&&a.indexOf("--")<0&&a.split(",");return o.a.Observable.of({range:s,histogram:n&&n.Domain?{values:t,domain:n.Domain}:void 0,domain:a?{values:c}:void 0})}))},M=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(l.SELECT_TIME).throttleTime(100).switchMap((function(e){var t=e.time,n=e.group,i=r();return n?_(i,n,t).switchMap((function(e){var t=Object(b.rangeSelector)(i)||{},n=t.start,r=t.end,a=[];if(n&&r&&(c()(e).isBefore(n)||c()(e).isAfter(r))){var s=c()(r).diff(n);a=[Object(l.onRangeChanged)({start:c()(e).subtract(s/2),end:c()(e).add(s/2)})]}return o.a.Observable.from([].concat(v(a),[Object(p.setCurrentTime)(e)]))})).let(Object(s.wrapStartStop)(Object(l.timeDataLoading)(!1,!0),Object(l.timeDataLoading)(!1,!1))):o.a.Observable.of(Object(p.setCurrentTime)(t))}))},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(f.REMOVE_NODE,l.AUTOSELECT).exhaustMap((function(){return Object(b.isAutoSelectEnabled)(r())&&Object(i.get)(Object(b.timelineLayersSelector)(r()),"[0].id")&&!Object(b.selectedLayerSelector)(r())?o.a.Observable.of(Object(l.selectLayer)(Object(i.get)(Object(b.timelineLayersSelector)(r()),"[0].id"))).concat(o.a.Observable.of(1).switchMap((function(){return _(r(),Object(i.get)(Object(b.timelineLayersSelector)(r()),"[0].id"),Object(y.currentTimeSelector)(r)||(new Date).toISOString()).filter((function(e){return e})).map((function(e){return Object(p.setCurrentTime)(e)}))}))):o.a.Observable.empty()}))},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(l.ENABLE_OFFSET).switchMap((function(e){var t=r(),n=Object(y.currentTimeSelector)(t),i=Object(b.rangeSelector)(t);if(e.enabled){var a=i||{},s=a.start,u=void 0===s?0:s,f=a.end,d=void 0===f?432e6:f,m=Object(y.offsetTimeSelector)(t),g=c()(d).diff(u),h=i?c()(u).add(g/2).toISOString():c()(new Date).toISOString(),S=c()(n||h).add(g/5),v=e.enabled&&!n?o.a.Observable.of(Object(p.setCurrentTime)(h)):o.a.Observable.empty(),O=e.enabled&&!m||e.enabled&&c()(m).diff(n)<0?o.a.Observable.of(Object(p.setCurrentOffset)(S.toISOString())):o.a.Observable.empty(),E=i?o.a.Observable.empty():o.a.Observable.of(Object(l.onRangeChanged)({start:c()(h).add(-1*g/2),end:c()(h).add(g/2)}));return v.concat(O).concat(E)}return o.a.Observable.of(Object(p.setCurrentOffset)())}))},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState,r=void 0===n?function(){}:n;return e.ofType(l.RANGE_CHANGED).merge(e.ofType(u.CHANGE_MAP_VIEW).filter((function(){return Object(b.isMapSync)(r())})),e.ofType(l.SET_MAP_SYNC)).debounceTime(400).merge(e.ofType(p.UPDATE_LAYER_DIMENSION_DATA).debounceTime(50)).switchMap((function(){var e,t=Object(y.timeDataSelector)(r())||{},n=Object.keys(t).filter((function(e){return t[e]&&t[e].domain&&Object(g.isTimeDomainInterval)(t[e].domain)||Object(b.isMapSync)(r())}));return(e=o.a.Observable).merge.apply(e,v(n.map((function(e){return P(e,t[e],r).map((function(t){var n=t.range,r=t.histogram,o=t.domain;return Object(l.rangeDataLoaded)(e,n,r,o)})).startWith(Object(l.timeDataLoading)(e,!0)).catch((function(){return o.a.Observable.of(Object(d.error)({uid:"error_with_timeline_update",title:"timeline.errors.multidim_error_title",message:"timeline.errors.multidim_error_message"}))})).concat(o.a.Observable.of(Object(l.timeDataLoading)(e,!1)))}))))}))};t.default={setTimelineCurrentTime:M,setupTimelineExistingSettings:R,settingInitialOffsetValue:C,updateRangeDataOnRangeChange:I}},"./MapStore2/web/client/observables/epics.js":function(e,t,n){function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return e.startWith.apply(e,r(t))};e.exports={wrapStartStop:function(e,t,n){return function(r){return(n?c(r,a(e)).catch(n):c(r,a(e))).concat(i.Observable.from(a(t)))}}}},"./MapStore2/web/client/observables/pausable.js":function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return function(o){return o.withLatestFrom(e.startWith(t)).filter((function(e){var t=n(e,2)[1];return r(t)})).map((function(e){return n(e,1)[0]}))}}},"./MapStore2/web/client/observables/wms.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.search,r=void 0===n?{}:n,i=e.url,a=f.parse(r.url||i,!0);return f.format(o(o({},a),{},{search:void 0,query:o(o({},a.query),{},{service:"WMS",version:"1.1.1",layers:t,outputFormat:"application/json",request:"DescribeLayer"})}))}(e))})).let(d)},g=function(e){return a.defer((function(){return s.getCapabilities(u.getCapabilitiesUrl(e))})).let(d).map((function(t){return s.parseLayerCapabilities(t,e)}))};e.exports={getLayerCapabilities:g,describeLayer:y,addSearch:function(e){return y(e).map((function(e){var t=e.data,n=void 0===t?{}:t;return n&&n.layerDescriptions[0]})).map((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.owsURL;return o(o({},e),{},{params:{},search:n?{type:"wfs",url:l.cleanAuthParamsFromURL(n)}:void 0})}))},getNativeCrs:function(e){return a.of(e).filter((function(e){return!e.nativeCrs})).switchMap((function(e){return g(e).switchMap((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=m(e.crs)||"EPSG:3587";if(!p.determineCrs(t)){var n=2===t.split(":").length?t.split(":")[1]:"3857";return a.fromPromise(p.fetchProjRemotely(t,p.getProjUrl(n)).then((function(e){return b.defs(t,e.data),t})))}return a.of(t)}))}))}}},"./MapStore2/web/client/plugins/BackgroundSelector.jsx":function(e,t,n){"use strict";n.r(t);var r=n("./node_modules/react-redux/es/index.js"),o=n("./node_modules/recompose/es/Recompose.js"),i=n("./node_modules/lodash/lodash.js"),a=n("./MapStore2/web/client/actions/controls.js"),c=n("./MapStore2/web/client/actions/layers.js"),s=n("./MapStore2/web/client/actions/backgroundselector.js"),u=n("./node_modules/reselect/es/index.js"),l=n("./MapStore2/web/client/selectors/layers.js"),p=n("./MapStore2/web/client/selectors/map.js"),f=n("./MapStore2/web/client/selectors/backgroundselector.js"),d=n("./MapStore2/web/client/selectors/maplayout.js"),m=n("./MapStore2/web/client/plugins/background/DefaultThumbs.js"),b=n.n(m),y=n("./MapStore2/web/client/utils/PluginsUtils.js"),g=n("./MapStore2/web/client/reducers/controls.js"),h=n("./MapStore2/web/client/actions/catalog.js"),S=n("./node_modules/object-assign/index.js"),v=n.n(S);var O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.ADD_BACKGROUND:return v()({},e,{source:t.source});case h.RESET_CATALOG:return v()({},e,{source:"metadataExplorer"});case s.SET_BACKGROUND_MODAL_PARAMS:return v()({},e,{modalParams:t.modalParams});case s.BACKGROUNDS_CLEAR:return v()({},e,{backgrounds:[],removedBackgroundsThumbIds:[],modalParams:{},lastRemovedId:void 0});case s.UPDATE_BACKGROUND_THUMBNAIL:if(t.id){var n=e.backgrounds||[],r=-1===n.findIndex((function(e){return e.id===t.id})),o=r?n.concat({id:t.id}):n,i=o.map((function(e){return e.id===t.id?v()({},e,{id:t.id,thumbnail:t.thumbnailData}):v()({},e)}));return v()({},e,{backgrounds:i})}return e;case s.CLEAR_MODAL_PARAMETERS:return v()({},e,{modalParams:void 0});case s.REMOVE_BACKGROUND:var a=e.backgrounds||[],c=e.removedBackgroundsThumbIds||[],u=a.filter((function(e){return e.id!==t.backgroundId})),l=a.filter((function(e){return e.id===t.backgroundId&&!!e.thumbId})).map((function(e){return e.thumbId}));return v()({},e,{backgrounds:u,removedBackgroundsThumbIds:c.concat(l),lastRemovedId:t.backgroundId});case s.CREATE_BACKGROUNDS_LIST:return v()({},e,{backgrounds:t.backgrounds});case s.CONFIRM_DELETE_BACKGROUND_MODAL:return v()({},e,{confirmDeleteBackgroundModal:{show:t.show,layerTitle:t.layerTitle,layerId:t.layerId}});case s.ALLOW_BACKGROUNDS_DELETION:return v()({},e,{allowDeletion:t.allow||!1});default:return e}},E=n("./node_modules/rxjs/Rx.js"),j=n.n(E),w=n("./MapStore2/web/client/actions/config.js"),A=n("./MapStore2/web/client/observables/wms.js"),T=n("./MapStore2/web/client/utils/LayersUtils.js");function _(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var g=n("./node_modules/react/index.js"),h=n("./node_modules/prop-types/index.js"),S=n("./node_modules/react-redux/es/index.js").connect,v=n("./node_modules/object-assign/index.js"),O=n("./node_modules/react-bootstrap/es/index.js"),E=O.DropdownButton,j=O.Glyphicon,w=O.MenuItem,A=S((function(){return{noCaret:!0,pullRight:!0,bsStyle:"primary",title:g.createElement(j,{glyph:"menu-hamburger"})}}))(E),T=function(e){var t=e.children,n=y(e,["children"]);return g.createElement("div",n,t)},_=n("./MapStore2/web/client/plugins/containers/ToolsContainer.jsx"),x=n("./MapStore2/web/client/plugins/locale/Message.jsx"),P=n("./MapStore2/web/client/utils/PluginsUtils.js").createPlugin;n("./MapStore2/web/client/plugins/burgermenu/burgermenu.css");var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,n,r,i=p(a);function a(){var e;s(this,a);for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=n.map((function(e){return c(c({},e),t(e.children))})).sort((function(e,t){return e.position-t.position})),o={container:T,containerWrapperStyle:{position:"static"},className:"burger-menu-submenu",toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:w,panelStyle:e.props.panelStyle,panelClassName:e.props.panelClassName};return n.length>0?{containerWrapperStyle:{position:"static"},style:{position:"relative"},childTools:r,childPanels:e.getPanels(n),innerProps:o}:{}}(t.children))})).sort((function(e,t){return e.position-t.position}))))})),e}return t=a,(n=[{key:"render",value:function(){return g.createElement(_,{id:this.props.id,className:"square-button",container:A,mapType:this.props.mapType,toolStyle:"primary",activeStyle:"default",stateSelector:"burgermenu",eventSelector:"onSelect",tool:w,tools:this.getTools(),panels:this.getPanels(this.props.items),panelStyle:this.props.panelStyle,panelClassName:this.props.panelClassName})}}])&&u(t.prototype,n),r&&u(t,r),a}(g.Component);b(M,"propTypes",{id:h.string,dispatch:h.func,items:h.array,title:h.node,onItemClick:h.func,controls:h.object,mapType:h.string,panelStyle:h.object,panelClassName:h.string}),b(M,"contextTypes",{messages:h.object,router:h.object}),b(M,"defaultProps",{id:"mapstore-burger-menu",items:[],onItemClick:function(){},title:g.createElement(w,{header:!0},g.createElement(x,{msgId:"options"})),controls:[],mapType:"leaflet",panelStyle:{minWidth:"300px",right:"52px",zIndex:100,position:"absolute",overflow:"auto"},panelClassName:"toolbar-panel"}),e.exports=P("BurgerMenu",{component:S((function(e){return{controls:e.controls}}))(M),containers:{OmniBar:{name:"burgermenu",position:2,tool:!0,priority:1}}})},"./MapStore2/web/client/plugins/Expander.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-bootstrap/es/index.js").Glyphicon,i=n("./node_modules/object-assign/index.js"),a=n("./MapStore2/web/client/components/buttons/ToggleButton.jsx");e.exports={ExpanderPlugin:i(a,{Toolbar:{name:"expand",position:1e4,alwaysVisible:!0,tooltip:"expandtoolbar.tooltip",showWhen:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.items,n=void 0===t?[]:t;return n.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"expand"!==!e.name&&!e.alwaysVisible})).length>1},icon:r.createElement(o,{glyph:"option-horizontal"}),toggle:!0,toggleControl:"toolbar",toggleProperty:"expanded",priority:1}}),reducers:{}}},"./MapStore2/web/client/plugins/FullScreen.jsx":function(e,t,n){var r=n("./node_modules/react-redux/es/index.js").connect,o=n("./MapStore2/web/client/actions/fullscreen.js").toggleFullscreen,i=n("./MapStore2/web/client/epics/fullscreen.js").toggleFullscreenEpic,a=n("./node_modules/object-assign/index.js"),c=n("./MapStore2/web/client/components/buttons/FullScreenButton.jsx"),s=r((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.controls,n=void 0===t?{}:t;return{active:n.fullscreen&&n.fullscreen.enabled}}),{onClick:function(e,t){return o(e,t.querySelector)}})(c);e.exports={FullScreenPlugin:a(s,{disablePluginIf:"{state('browser') && state('browser').safari}",Toolbar:{name:"fullscreen",position:5,alwaysVisible:!0,tool:!0,priority:1}}),reducers:{},epics:{toggleFullscreenEpic:i}}},"./MapStore2/web/client/plugins/Identify.jsx":function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=e,a=r,c=o,s=i;if(Object({NODE_ENV:"production"}).isTest){var u={},l=function(e){return u[e]=u[e]||{rootCount:0,iframesCreated:!1,timedOut:!1,fontLoaded:!1,requiredExtraTimeout:!1},u[e]};window.reporter=window.reporter||{modifyRootCount:function(e,t){l(e).rootCount+=t},iframesCreated:function(e){l(e).iframesCreated=!0},timedOut:function(e){l(e).timedOut=!0},fontLoaded:function(e){l(e).fontLoaded=!0},requiredExtraTimeout:function(e){l(e).requiredExtraTimeout=!0},getTests:function(){return u}}}n.timeoutAfter&&setTimeout((function(){a&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(s,-1),document.body.removeChild(a),a=0,n.onTimeout&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.timedOut(s),n.onTimeout()))}),n.timeoutAfter),c=function(){a&&a.firstChild.clientWidth===a.lastChild.clientWidth&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(s,-1),document.body.removeChild(a),a=0,Object({NODE_ENV:"production"}).isTest&&window.reporter.fontLoaded(s),t())},Object({NODE_ENV:"production"}).isTest&&window.reporter.modifyRootCount(s,1),Object({NODE_ENV:"production"}).isLegacy||c(document.body.appendChild(a=document.createElement("div")).innerHTML='
'+(n.sampleText||" ")+'
'+(n.sampleText||" ")+"
"),Object({NODE_ENV:"production"}).isLegacy&&c(document.body.appendChild(a=document.createElement("div")).innerHTML='
.'+(n.sampleText||" ")+'.
.'+(n.sampleText||" ")+".
"),a&&(Object({NODE_ENV:"production"}).isTest&&window.reporter.iframesCreated(s),Object({NODE_ENV:"production"}).isLegacy||(a.firstChild.appendChild(i=document.createElement("iframe")).style.width="999%",i.contentWindow.onresize=c,a.lastChild.appendChild(i=document.createElement("iframe")).style.width="999%",i.contentWindow.onresize=c),Object({NODE_ENV:"production"}).isLegacy&&(a.firstChild.firstChild.firstChild.firstChild.appendChild(i=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",i.attachEvent?i.contentWindow.attachEvent("onresize",c):i.contentWindow.onresize=c,a.lastChild.firstChild.firstChild.firstChild.appendChild(i=document.createElement("iframe")).style.cssText="position:absolute;bottom:999%;right:999%;width:999%",i.attachEvent?i.contentWindow.attachEvent("onresize",c):i.contentWindow.onresize=c),Object({NODE_ENV:"production"}).isTest||(i=setTimeout(c)),Object({NODE_ENV:"production"}).isTest&&(i=setTimeout((function(){a&&(window.reporter.requiredExtraTimeout(s),c())}))))},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){s(e,n,{timeoutAfter:t.timeoutAfter,onTimeout:r,sampleText:t.sampleText,generic:t.generic})}))},l=n("./node_modules/object-assign/index.js"),p=n.n(l),f=n("./node_modules/react-spinkit/dist/index.js"),d=n.n(f),m=(n("./MapStore2/web/client/plugins/map/css/map.css"),n("./MapStore2/web/client/components/I18N/Message.jsx")),b=n("./MapStore2/web/client/utils/ConfigUtils.js"),y=n("./MapStore2/web/client/actions/map.js"),g=n("./node_modules/lodash/lodash.js"),h=n("./node_modules/reselect/es/index.js"),S=n("./MapStore2/web/client/selectors/map.js"),v=n("./MapStore2/web/client/selectors/maptype.js"),O=n("./MapStore2/web/client/selectors/layers.js"),E=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),j=n.n(E);function w(e){return function(e){if(Array.isArray(e))return A(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t?Object(E.reprojectGeoJson)(o,r,"EPSG:4326").features:[]})),P=Object(h.createSelector)([x,function(e){return Object(g.get)(e,e&&e.highlight&&e.highlight.featuresPath||"highlight.emptyFeatures")||[]}],(function(e,t){return[].concat(w(t),w(e))})),M=n("./MapStore2/web/client/selectors/security.js"),R=n("./MapStore2/web/client/selectors/locale.js"),C=n("./MapStore2/web/client/selectors/localizedLayerStyles.js"),I=Object(h.createStructuredSelector)({projectionDefs:S.projectionDefsSelector,map:S.mapSelector,mapType:v.mapTypeSelector,layers:O.layerSelectorWithMarkers,features:P,loadingError:function(e){return e.mapInitialConfig&&e.mapInitialConfig.loadingError&&e.mapInitialConfig.loadingError.data},securityToken:M.securityTokenSelector,elevationEnabled:S.isMouseMoveCoordinatesActiveSelector,shouldLoadFont:v.isOpenlayers,isLocalizedLayerStylesEnabled:C.isLocalizedLayerStylesEnabledSelector,localizedLayerStylesName:C.localizedLayerStylesNameSelector,currentLocaleLanguage:R.currentLocaleLanguageSelector}),D=n("./MapStore2/web/client/reducers/map.js"),N=n("./MapStore2/web/client/reducers/layers.js"),L=n("./MapStore2/web/client/actions/draw.js"),k={drawStatus:null,drawOwner:null,drawMethod:null,options:{},features:[],tempFeatures:[]};var F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case L.CHANGE_DRAWING_STATUS:return p()({},e,{drawStatus:t.status,drawOwner:t.owner,drawMethod:t.method,options:t.options,features:t.features,style:t.style});case L.SET_CURRENT_STYLE:return p()({},e,{currentStyle:t.currentStyle});case L.GEOMETRY_CHANGED:return p()({},e,{tempFeatures:t.features});case L.DRAW_SUPPORT_STOPPED:return p()({},e,{tempFeatures:[]});default:return e}},G=n("./MapStore2/web/client/actions/highlight.js");function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case G.b:return p()({},e,{featuresPath:t.featuresPath||"highlight.emptyFeatures"});case G.a:return B(B({},e),{},{status:t.status});case G.c:return B(B({},e),{},{highlighted:t.features.length,features:t.features,status:t.status||e.status});default:return e}};var V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mapType:"leaflet"},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"MAP_TYPE_CHANGED":return{mapType:t.mapType};default:return e}},q=n("./MapStore2/web/client/actions/additionallayers.js");function W(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case q.UPDATE_ADDITIONAL_LAYER:var n=Object(g.pickBy)({id:t.id,owner:t.owner,actionType:t.actionType,options:t.options},g.identity),r=Object(g.head)(e.filter((function(e){return e.id===n.id})));return r?e.map((function(e){return e.id===n.id?Z(Z({},r),n):Z({},e)})):[].concat(W(e),[n]);case q.UPDATE_OPTIONS_BY_OWNER:var o=t.options,i=t.owner;return e.map((function(e,t){return e.owner===i?Z(Z({},e),{},{options:Object(g.isObject)(o)&&o[e.id]||Object(g.isArray)(o)&&o[t]||{}}):Z({},e)}));case q.REMOVE_ADDITIONAL_LAYER:var a=t.id,c=t.owner;return c?e.filter((function(e){return e.owner!==c})):e.filter((function(e){return e.id!==a}));case q.REMOVE_ALL_ADDITIONAL_LAYERS:return[];default:return e}},J=n("./node_modules/rxjs/Rx.js"),ee=n.n(J),te=n("./MapStore2/web/client/actions/layers.js"),ne=n("./MapStore2/web/client/actions/config.js"),re=n("./MapStore2/web/client/actions/security.js"),oe=n("./MapStore2/web/client/selectors/maplayout.js"),ie=n("./MapStore2/web/client/actions/controls.js"),ae=n("./MapStore2/web/client/utils/LayersUtils.js"),ce=n("./MapStore2/web/client/utils/MapUtils.js"),se=n.n(ce),ue=n("./MapStore2/web/client/actions/notifications.js"),le=n("./MapStore2/web/client/actions/mapInfo.js");function pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t=180&&o[3]>=90)n=1;else{var c=j.a.reprojectBbox(o,e.crs,t.projection||"EPSG:4326");n=se.a.getZoomForExtent(c,t.size,0,21,null)}e.maxZoom&&n>e.maxZoom&&(n=e.maxZoom);var s={minx:i[0],miny:i[1],maxx:i[2],maxy:i[3]},u=fe(fe({},t.bbox),{},{bounds:s});return ee.a.Observable.of(Object(y.changeMapView)(a,n,u,t.size,e.mapStateSource,t.projection,t.viewerOptions))}return ee.a.Observable.empty()}(fe(fe({},e),{},{extent:t}),Object(S.mapSelector)(r()))}))}},be=n("./MapStore2/web/client/actions/mapPopups.js"),ye=n("./MapStore2/web/client/actions/measurement.js"),ge=n("./MapStore2/web/client/selectors/measurement.js");function he(e){return{type:"CHANGE_SELECTION_STATE",geomType:e.geomType,point:e.point,line:e.line,polygon:e.polygon}}var Se=n("./MapStore2/web/client/actions/locate.js"),ve=n("./node_modules/react-redux/es/index.js");function Oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ee(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0})),y(m(e),"filterLayers",(function(t){var n=e.props.layers.filter((function(t){return t.visibility&&e.isAllowed(t)}));if(e.isBackgroundIgnored()&&e.props.defaultBackground&&t.defaultBackground){var r=e.props.layers.filter((function(t){return t.type===e.props.defaultBackground}))[0];return[H({},r,{visibility:!0})].concat(a(n))}return n})),y(m(e),"configurePrintMap",(function(t,n){var r=t||e.props.map,o=n||e.props.printSpec;if(r&&r.bbox&&e.props.capabilities){var i=O.reprojectBbox([r.bbox.bounds.minx,r.bbox.bounds.miny,r.bbox.bounds.maxx,r.bbox.bounds.maxy],r.bbox.crs,r.projection),a=e.getMapSize();if(e.props.useFixedScales){var c=e.props.getZoomForExtent(i,a,e.props.minZoom,e.props.maxZoom),s=ie.getPrintScales(e.props.capabilities),u=ie.getNearestZoom(r.zoom,s);e.props.configurePrintMap(r.center,c,u,s[u],e.filterLayers(o),r.projection,e.props.currentLocale)}else e.props.configurePrintMap(r.center,r.zoom,r.zoom,e.props.scales[r.zoom],e.filterLayers(o),r.projection,e.props.currentLocale)}})),y(m(e),"print",(function(){var t=e.props.printSpec;e.props.isLocalizedLayerStylesEnabled&&(t=i(i({},t),{},{env:e.props.localizedLayerStylesEnv,language:e.props.currentLocaleLanguage})),e.props.setPage(0),e.props.onBeforePrint(),e.props.preloadData(t).then((function(t){var n=e.props.getPrintSpecification(t);e.props.onPrint(e.props.capabilities.createURL,i(i({},n),e.props.overrideOptions))})).catch((function(t){e.props.printError("Error pre-loading data:"+t.message)}))})),e}return t=w,(n=[{key:"UNSAFE_componentWillMount",value:function(){if(this.props.usePreview&&!window.PDFJS){var e=document.createElement("script");e.type="text/javascript",e.src="https://unpkg.com/pdfjs-dist@1.4.79/build/pdf.combined.js",document.head.appendChild(e)}this.configurePrintMap()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.open&&!this.props.open,n=this.props.open&&this.props.syncMapPreview&&E.mapUpdated(this.props.map,e.map),r=e.printSpec.defaultBackground!==this.props.printSpec.defaultBackground;(t||n||r)&&this.configurePrintMap(e.map,e.printSpec)}},{key:"render",value:function(){return(this.props.capabilities||this.props.error)&&this.props.open?this.props.withContainer?this.props.withPanelAsContainer?g.createElement(x,{className:"mapstore-print-panel",header:g.createElement("span",null,g.createElement("span",{className:"print-panel-title"},g.createElement(X,{msgId:"print.paneltitle"})),g.createElement("span",{className:"print-panel-close panel-close",onClick:this.props.toggleControl})),style:this.props.style},this.renderBody()):g.createElement(j,{id:"mapstore-print-panel",style:i({left:"17%",top:"50px",zIndex:1990},this.props.style)},g.createElement("span",{role:"header"},g.createElement("span",{className:"print-panel-title"},g.createElement(X,{msgId:"print.paneltitle"})),g.createElement("button",{onClick:this.props.toggleControl,className:"print-panel-close close"},this.props.closeGlyph?g.createElement(M,{glyph:this.props.closeGlyph}):g.createElement("span",null,"×"))),this.renderBody()):this.renderBody():null}}])&&l(t.prototype,n),h&&l(t,h),w}(g.Component);y(ae,"propTypes",{map:h.object,layers:h.array,capabilities:h.object,printSpec:h.object,printSpecTemplate:h.object,withContainer:h.bool,withPanelAsContainer:h.bool,open:h.bool,pdfUrl:h.string,title:h.string,style:h.object,mapWidth:h.number,mapType:h.string,alternatives:h.array,toggleControl:h.func,onBeforePrint:h.func,setPage:h.func,onPrint:h.func,printError:h.func,configurePrintMap:h.func,preloadData:h.func,getPrintSpecification:h.func,getLayoutName:h.func,error:h.string,getZoomForExtent:h.func,minZoom:h.number,maxZoom:h.number,usePreview:h.bool,mapPreviewOptions:h.object,syncMapPreview:h.bool,useFixedScales:h.bool,scales:h.array,ignoreLayers:h.array,defaultBackground:h.string,closeGlyph:h.string,submitConfig:h.object,previewOptions:h.object,currentLocale:h.string,currentLocaleLanguage:h.string,overrideOptions:h.object,isLocalizedLayerStylesEnabled:h.bool,localizedLayerStylesEnv:h.object}),y(ae,"contextTypes",{messages:h.object}),y(ae,"defaultProps",{withContainer:!0,withPanelAsContainer:!1,title:"print.paneltitle",toggleControl:function(){},onBeforePrint:function(){},setPage:function(){},onPrint:function(){},configurePrintMap:function(){},printSpecTemplate:{},preloadData:ie.preloadData,getPrintSpecification:ie.getMapfishPrintSpecification,getLayoutName:ie.getLayoutName,getZoomForExtent:E.defaultGetZoomForExtent,pdfUrl:null,mapWidth:370,mapType:"leaflet",minZoom:1,maxZoom:23,alternatives:[{name:"legend",component:w,regex:/legend/},{name:"2pages",component:R,regex:/2_pages/},{name:"landscape",component:D,regex:/landscape/}],usePreview:!0,mapPreviewOptions:{enableScalebox:!1,enableRefresh:!1},syncMapPreview:!0,useFixedScales:!1,scales:[],ignoreLayers:["google","bing"],defaultBackground:"osm",closeGlyph:"1-close",submitConfig:{buttonConfig:{bsSize:"small",bsStyle:"primary"},glyph:""},previewOptions:{buttonStyle:"primary"},style:{},currentLocale:"en-US",overrideOptions:{}});var ce=B([function(e){return e.controls.print&&e.controls.print.enabled||e.controls.toolbar&&"print"===e.controls.toolbar.active},function(e){return e.print&&e.print.capabilities},function(e){return e.print&&e.print.spec&&H({},e.print.spec,e.print.map||{})},function(e){return e.print&&e.print.pdfUrl},function(e){return e.print&&e.print.error},G,U,Y,function(e){return e.browser&&(!e.browser.ie||e.browser.ie11)},q,W,$,Q,Z],(function(e,t,n,r,o,i,a,c,s,u,l,p,f,d){return{open:e,capabilities:t,printSpec:n,pdfUrl:r,error:o,map:i,layers:a.filter((function(e){return!e.loadingError})),scales:c,usePreview:s,currentLocale:u,currentLocaleLanguage:l,mapType:p,isLocalizedLayerStylesEnabled:f,localizedLayerStylesEnv:d}})),se=S(ce,{toggleControl:C.bind(null,"print",null),onPrint:N,printError:L,onBeforePrint:k,setPage:I.bind(null,"print","currentPage"),configurePrintMap:F})(ae);e(se)}.bind(null,n)).catch(n.oe)},enabler:function(e){return e.print&&e.print.enabled||e.toolbar&&"print"===e.toolbar.active}},{disablePluginIf:"{state('mapType') === 'cesium' || !state('printEnabled')}",Toolbar:{name:"print",position:7,help:g.createElement(X,{msgId:"helptexts.print"}),tooltip:"printbutton",icon:g.createElement(M,{glyph:"print"}),exclusive:!0,panel:!0,priority:1},BurgerMenu:{name:"print",position:2,text:g.createElement(X,{msgId:"printbutton"}),icon:g.createElement(M,{glyph:"print"}),action:C.bind(null,"print",null),priority:2,doNotHide:!0}}),reducers:{print:n("./MapStore2/web/client/reducers/print.js").default}}},"./MapStore2/web/client/plugins/ScaleBox.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t0},te=A(s(u(h,v,b,g,m,H,z,S,(function(e,t,n,r,o,i,a,c){return{visible:e,layers:t,currentTime:n,currentTimeRange:r,offsetEnabled:o,playbackRange:i,status:a,viewRange:c}})),{setCurrentTime:D,onOffsetEnabled:N,setOffset:F,setPlaybackRange:U,moveRangeTo:L}),T((function(e){var t=e.visible,n=void 0===t||t,r=e.layers,o=void 0===r?[]:r;return!n||0===Object.keys(o).length}),_),w("options","setOptions",{collapsed:!0}),s(u(O,(function(e){return{mapSync:e}})),{toggleMapSync:k}),A(A(x((function(){return{}}),{onResize:function(){return function(e){return{containerWidth:e.width}}}}),C({querySelector:".ms2",closest:!0,debounceTime:100})),M({style:{marginBottom:35,marginLeft:100,marginRight:80}}),s(u((function(e){return E(e,{right:!0,bottom:!0,left:!0})}),(function(e){return{mapLayoutStyle:e}}))),P((function(e){var t=e.containerWidth,n=e.style,r=e.mapLayoutStyle,o=n||{},a=o.marginLeft,c=o.marginRight,s=r.left,u=void 0===s?0:s,l=r.right,p=void 0===l?0:l;p=X(p)&&J(p)*t||p,u=X(u)&&J(u)*t||u;if(t){var f=t-p-u-a-c;return{hide:f<410,compactToolbar:f<880,style:i(i(i({},n),r),{},{minWidth:410})}}return{style:i(i(i({},n),r),{},{minWidth:410})}})),T((function(e){return e.hide}),_),R("TimelinePlugin")))((function(e){var t=e.items,n=e.options,o=e.setOptions,a=e.mapSync,s=e.toggleMapSync,u=void 0===s?function(){}:s,d=e.currentTime,m=e.setCurrentTime,b=e.offsetEnabled,y=e.onOffsetEnabled,g=e.currentTimeRange,h=e.setOffset,S=e.style,v=e.status,O=e.viewRange,E=e.moveRangeTo,j=e.compactToolbar,w=n.hideLayersName,A=n.collapsed,T=Q(t&&t.filter((function(e){return"playback"===e.name}))),_=T&&T.plugin,x=function(e,t,n,r){var o=$(n.end).diff(n.start)/2;if("time-current"===t&&n&&n.start.toString()!==$(e).add(-1*o).toString()&&n.end.toString()!==$(e).add(o).toString()&&E({start:$(e).add(-1*o),end:$(e).add(o)}),"range-start"===t||"range-end"===t){var i=$(r.end).diff(r.start),a=$(r.start).add(i/2);E(i/2<=o?{start:$(a).add(-1*o),end:$(a).add(o)}:{start:$(a).add(-1*i*5/2),end:$(a).add(5*i/2)})}};return c.createElement("div",{style:i(i({position:"absolute",marginBottom:35,marginLeft:100,background:"transparent"},S),{},{right:A?"auto":S.right||0}),className:"timeline-plugin".concat(w?" hide-layers-name":"").concat(b?" with-time-offset":"")},b&&c.createElement(p,{clickable:!A,glyph:"range-start",onIconClick:function(e,t){return"PLAY"!==v&&x(e,t,O,g)},tooltip:c.createElement(G,{msgId:"timeline.rangeStart"}),showButtons:!0,date:d||g&&g.start,onUpdate:function(e){return(g&&ee(e,g.end)||!g)&&"PLAY"!==v&&m(e)},className:"shadow-soft",style:{position:"absolute",top:-5,left:2,transform:"translateY(-100%)"}}),c.createElement("div",{className:"timeline-plugin-toolbar".concat(j?" ms-collapsed":"")},b&&g?c.createElement(p,{clickable:!A,glyph:"range-end",onIconClick:function(e,t){return"PLAY"!==v&&x(e,t,O,g)},tooltip:c.createElement(G,{msgId:"timeline.rangeEnd"}),date:g.end,showButtons:!0,onUpdate:function(e){return"PLAY"!==v&&ee(d,e)&&h(e)}}):c.createElement(p,{clickable:!A,glyph:"time-current",showButtons:!0,onIconClick:function(e,t){return"PLAY"!==v&&x(e,t,O)},tooltip:c.createElement(G,{msgId:"timeline.currentTime"}),date:d||g&&g.start,onUpdate:function(e){return(g&&ee(e,g.end)||!g)&&"PLAY"!==v&&m(e)}}),c.createElement("div",{className:"timeline-plugin-btn-group"},c.createElement(f,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"list",tooltip:c.createElement(G,{msgId:w?"timeline.showLayerName":"timeline.hideLayerName"}),bsStyle:w?"primary":"success",visible:!A,active:!w,onClick:function(){return o(i(i({},n),{},{hideLayersName:!w}))}},{glyph:"time-offset",bsStyle:b?"success":"primary",active:b,disabled:"PLAY"===v,tooltip:c.createElement(G,{msgId:b?"timeline.disableRange":"timeline.enableRange"}),onClick:function(){"PLAY"!==v&&y(!b)}},{glyph:"map-synch",tooltip:c.createElement(G,{msgId:a?"timeline.mapSyncOn":"timeline.mapSyncOff"}),bsStyle:a?"success":"primary",active:a,onClick:function(){return u(!a)}}]}),_&&c.createElement(_,r({},T,{settingsStyle:{right:A||j?40:"unset"}}))),c.createElement(W,{onClick:function(){return o(i(i({},n),{},{collapsed:!A}))},className:"square-button-sm ms-timeline-expand",bsStyle:"primary",tooltip:c.createElement(G,{msgId:A?"timeline.expand":"timeline.collapse"})},c.createElement(q,{glyph:A?"chevron-up":"chevron-down"}))),!A&&c.createElement(l,{offsetEnabled:b,playbackEnabled:!0,hideLayersName:w}))})),ne=n("./node_modules/object-assign/index.js"),re=n("./MapStore2/web/client/plugins/timeline/TimelineToggle.jsx");e.exports={TimelinePlugin:ne(te,{disablePluginIf:"{state('mapType') === 'cesium'}",WidgetsTray:{tool:c.createElement(re,null),position:0}}),reducers:{dimension:n("./MapStore2/web/client/reducers/dimension.js").default,timeline:n("./MapStore2/web/client/reducers/timeline.js").default},epics:n("./MapStore2/web/client/epics/timeline.js").default}},"./MapStore2/web/client/plugins/Toolbar.jsx":function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"toolbar";return h(x(e))(_)},reducers:{controls:n("./MapStore2/web/client/reducers/controls.js").default}}},"./MapStore2/web/client/plugins/ZoomAll.jsx":function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t0&&b.createElement(p,o({},t.innerProps,{mapType:e.props.mapType,tools:s,panels:t.childPanels}))),t)})),m(f(e),"renderTools",(function(){return e.props.tools.map(e.renderTool)})),m(f(e),"renderPanels",(function(){return e.props.panels.filter((function(e){return!e.panel.loadPlugin})).map((function(t){var n=t.panel,r=b.createElement(n,o({key:t.name,mapType:e.props.mapType},t.cfg,t.props||{},{items:t.items||[]})),i=t.title?b.createElement(j,{msgId:t.title}):null;return t.wrap?b.createElement(x,{key:"mapToolBar-item-collapse-"+t.name,in:e.props.activePanel===t.name},b.createElement(_,{header:i,style:e.props.panelStyle,className:e.props.panelClassName},r)):r}))})),m(f(e),"mergeHandlers",(function(e,t){return Object.keys(t).reduce((function(n,r){return N(n,m({},r,e[r]?h(e[r],t[r]):t[r]))}),e)})),m(f(e),"addTooltip",(function(t,n){if(n.tooltip){var r=b.createElement(T,{id:e.props.id+"-"+n.name+"-tooltip"},b.createElement(j,{msgId:n.tooltip}));return b.createElement(M,{key:e.props.id+"-"+n.name+"-overlay",rootClose:!0,placement:"left",overlay:r},t)}return t})),e}return t=p,(n=[{key:"render",value:function(){var e=this.props.container;return b.createElement("span",{id:this.props.id,style:this.props.containerWrapperStyle},b.createElement(e,{id:this.props.id+"-container",style:this.props.style,className:this.props.className},this.renderTools()),this.renderPanels())}}])&&s(t.prototype,n),r&&s(t,r),p}(b.Component);m(L,"propTypes",{id:y.string.isRequired,container:y.func,containerWrapperStyle:y.object,tool:y.func,className:y.string,style:y.object,tools:y.array,panels:y.array,mapType:y.string,toolStyle:y.string,activeStyle:y.string,toolSize:y.string,stateSelector:y.string.isRequired,eventSelector:y.string,panelStyle:y.object,panelClassName:y.string,activePanel:y.string,toolCfg:y.object}),m(L,"contextTypes",{messages:y.object,router:y.object}),m(L,"defaultProps",{container:_,className:"tools-container",style:{},toolStyle:"default",activeStyle:"primary",tools:[],panels:[],tool:A,mapType:"leaflet",eventSelector:"onClick",panelStyle:{},panelClassName:"tools-container-panel",toolSize:null,toolCfg:{}}),e.exports=L},"./MapStore2/web/client/plugins/help/HelpWrapper.jsx":function(e,t,n){var r=n("./node_modules/react-redux/es/index.js").connect,o=n("./MapStore2/web/client/actions/help.js"),i=o.changeHelpwinVisibility,a=o.changeHelpText;e.exports=r((function(e){return{helpEnabled:e.controls&&e.controls.help&&e.controls.help.enabled}}),{changeHelpText:a,changeHelpwinVisibility:i})(n("./MapStore2/web/client/components/help/HelpWrapper.jsx"))},"./MapStore2/web/client/plugins/identify/featureButtons.js":function(e,t){e.exports=function(e){var t=e.showHighlightFeatureButton,n=e.currentFeature,r=e.highlight,o=e.toggleHighlightFeature,i=void 0===o?function(){}:o,a=e.zoomToFeature,c=void 0===a?function(){}:a;return[{glyph:"map-filter",visible:t,tooltipId:r?"identifyStopHighlightingFeatures":"identifyHighlightFeatures",bsStyle:r?"success":"primary",onClick:function(){return i(!r)}},{glyph:"zoom-to",visible:r&&!!n&&n.length>0&&n.reduce((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.geometry;return e||!!n}),!1)||!1,tooltipId:"identifyZoomToFeature",onClick:c}]}},"./MapStore2/web/client/plugins/identify/identify.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/identify/identify.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/identify/toolButtons.js":function(e,t){function n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}e.exports=function(e){e.showHighlightFeatureButton,e.currentFeature,e.highlight;var t=e.onEdit,r=void 0===t?function(){}:t,o=n(e,["showHighlightFeatureButton","currentFeature","highlight","onEdit"]);return[{glyph:"info-sign",tooltipId:"identifyRevGeocodeSubmitText",visible:o.latlng&&o.enableRevGeocode&&o.lngCorrected&&o.showMoreInfo,onClick:function(){o.showRevGeocode({lat:o.latlng.lat,lng:o.lngCorrected})}},{glyph:"search-coords",tooltipId:o.showCoordinateEditor?"identifyHideCoordinateEditor":"identifyShowCoordinateEditor",visible:o.enabledCoordEditorButton,bsStyle:o.showCoordinateEditor?"success":"primary",onClick:function(){o.onToggleShowCoordinateEditor(o.showCoordinateEditor)}},{glyph:"pencil",visible:o.showEdit,tooltipId:"identifyEdit",onClick:function(){return r()}}].filter((function(e){return e&&e.visible}))}},"./MapStore2/web/client/plugins/locale/Message.jsx":function(e,t,n){var r=n("./node_modules/react-redux/es/index.js").connect;e.exports=r((function(e){return{locale:e.locale&&e.locale.currentLocale,messages:e.locale&&e.locale.messages||[]}}))(n("./MapStore2/web/client/components/I18N/Message.jsx").default)},"./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$":function(e,t,n){var r={"./cesium/index":["./MapStore2/web/client/plugins/map/cesium/index.js",22],"./leaflet/index":["./MapStore2/web/client/plugins/map/leaflet/index.js",1,2,19,15],"./openlayers/index":["./MapStore2/web/client/plugins/map/openlayers/index.js",1,2,3,16,13]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n.t(o,7)}))}o.keys=function(){return Object.keys(r)},o.id="./MapStore2/web/client/plugins/map lazy recursive ^\\.\\/.*\\/index$",e.exports=o},"./MapStore2/web/client/plugins/map/css/map.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/map/css/map.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/maploading/maploading.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/maploading/maploading.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/omnibar/omnibar.css":function(e,t,n){var r=n("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/omnibar/omnibar.css");"string"==typeof r&&(r=[[e.i,r,""]]);n("./node_modules/style-loader/addStyles.js")(r,{});r.locals&&(e.exports=r.locals)},"./MapStore2/web/client/plugins/playback/Playback.jsx":function(e,t,n){var r=n("./node_modules/react/index.js"),o=n("./node_modules/react-redux/es/index.js").connect,i=n("./node_modules/reselect/es/index.js").createSelector,a=n("./node_modules/recompose/es/Recompose.js"),c=a.compose,s=a.withState,u=a.withProps,l=a.withHandlers,p=n("./MapStore2/web/client/selectors/timeline.js").selectedLayerSelector,f=n("./MapStore2/web/client/selectors/playback.js"),d=f.statusSelector,m=f.hasPrevNextAnimationSteps,b=f.playbackMetadataSelector,y=n("./MapStore2/web/client/actions/playback.js"),g=y.animationStepMove,h=y.STATUS,S=n("./MapStore2/web/client/components/I18N/Message.jsx").default,v=n("./MapStore2/web/client/components/misc/toolbar/Toolbar.jsx"),O=n("./MapStore2/web/client/plugins/playback/Settings.jsx"),E=c(s("showSettings","onShowSettings",!1),s("collapsed","setCollapsed",!0),u((function(e){var t=e.setCollapsed;return{buttons:[{glyph:"minus",onClick:function(){return t(!0)}}]}}))),j=c(o(i(d,p,b,m,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return t?e===h.PLAY||e===h.PAUSE?r:{hasNext:!!n.next,hasPrevious:!!n.previous}:{hasNext:!0,hasPrevious:!0}})),{stepMove:g}),l({forward:function(e){var t=e.stepMove,n=void 0===t?function(){}:t;return function(){return n(1)}},backward:function(e){var t=e.stepMove,n=void 0===t?function(){}:t;return function(){return n(-1)}}})),w=c(E,j);e.exports=w((function(e){var t=e.status,n=e.statusMap,o=e.play,i=void 0===o?function(){}:o,a=e.forward,c=void 0===a?function(){}:a,s=e.backward,u=void 0===s?function(){}:s,l=e.pause,p=void 0===l?function(){}:l,f=e.stop,d=void 0===f?function(){}:f,m=e.hasPrevious,b=e.hasNext,y=e.showSettings,g=e.onShowSettings,h=void 0===g?function(){}:g,E=e.settingsStyle,j=void 0===E?{}:E;return r.createElement("div",{style:{display:"flex"}},t!==n.PLAY&&t!==n.PAUSE&&y&&r.createElement(O,{style:j}),r.createElement(v,{btnDefaultProps:{className:"square-button-md",bsStyle:"primary"},buttons:[{glyph:"step-backward",key:"back",onClick:u,disabled:!m,tooltip:r.createElement(S,{msgId:"playback.backwardStep"})},{glyph:t===n.PLAY?"pause":"play",key:"play",active:t===n.PLAY||t===n.PAUSE,disabled:!b,bsStyle:t===n.PLAY||t===n.PAUSE?"success":"primary",onClick:function(){return t===n.PLAY?p():i()},tooltipId:b&&(t===n.PLAY?"playback.pause":t===n.PAUSE?"playback.paused":"playback.play")},{glyph:"stop",key:"stop",disabled:t!==n.PLAY&&t!==n.PAUSE,onClick:d,tooltip:!(t!==n.PLAY&&t!==n.PAUSE)&&r.createElement(S,{msgId:"playback.stop"})},{glyph:"step-forward",key:"forward",onClick:c,disabled:!b,tooltip:b&&r.createElement(S,{msgId:"playback.forwardStep"})},{glyph:"cog",key:"settings",bsStyle:t!==n.PLAY&&t!==n.PAUSE&&y?"success":"primary",active:(t!==n.PLAY||t!==n.PAUSE)&&!!y,disabled:t===n.PLAY||t===n.PAUSE,onClick:function(){return t!==n.PLAY&&h(!y)},tooltip:!(t===n.PLAY||t===n.PAUSE)&&r.createElement(S,{msgId:"playback.settings.tooltip"})}]}))}))},"./MapStore2/web/client/plugins/playback/Settings.jsx":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n("./node_modules/react-redux/es/index.js").connect,a=n("./node_modules/reselect/es/index.js").createSelector,c=n("./node_modules/moment/moment.js"),s=n("./node_modules/recompose/es/Recompose.js"),u=s.compose,l=s.withProps,p=s.withHandlers,f=n("./MapStore2/web/client/selectors/playback.js"),d=f.playbackSettingsSelector,m=f.playbackRangeSelector,b=n("./MapStore2/web/client/selectors/timeline.js"),y=b.selectedLayerSelector,g=b.rangeSelector,h=b.selectedLayerDataRangeSelector,S=n("./MapStore2/web/client/actions/playback.js"),v=S.selectPlaybackRange,O=S.changeSetting,E=S.toggleAnimationMode,j=n("./MapStore2/web/client/actions/timeline.js").onRangeChanged;e.exports=u(i(a(d,y,m,(function(e,t,n){return function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.title,r=e.name;return t+n+r})).length>0}),(function(e){var t=e.layers,n=void 0===t?[]:t,r=e.loading,o=void 0===r?{}:r,i=e.selectedLayer;return{groups:n.map((function(e){return{id:e.id,className:(o[e.id]?"loading":"")+(e.id&&e.id===i?" selected":""),content:'
'+(o[e.id]?'
':'
'.concat(e.id&&e.id===i?'':"","
"))+'
'.concat(u(e.title)?e.title:e.name,"
")+"
"}}))}}))),q=L(c(I(f,O,(function(e,t){return{currentTime:e,currentTimeRange:t}})),{setCurrentTime:m,moveCurrentRange:A,setOffset:T})),W=L(c(C({playbackRange:P,status:M}),{setPlaybackRange:_})),K=L(c(I(v,(function(e){return{selectedLayer:e}})),{selectGroup:b})),Q=L(c((function(){return{}}),{rangechangedHandler:y})),Z=L(q,W,K,H,Q,V,F({key:"timeline",options:{maxHeight:"90%",verticalScroll:!0,stack:!1,showMajorLabels:!0,showCurrentTime:!1,zoomMin:10,zoomable:!0,type:"background",margin:{item:0,axis:0},format:{minorLabels:{minute:"h:mma",hour:"ha"}},itemsAlwaysDraggable:!0,moment:function(e){return Y(e).utc()}}}),k(["viewRange","options"],(function(e){var t=e.viewRange,n=void 0===t?{}:t;return{options:o(o({},e.options),n)}})),k(["status"],(function(e){return{readOnly:"PLAY"===e.status}})),z,G((function(e){var t=e.loading;return t&&t.timeline}),(function(){return a.createElement("div",{style:{margin:"auto",fontWeight:"bold"}},a.createElement(B,{style:{display:"inline-block",verticalAlign:"middle"}}),a.createElement(U,{msgId:"loading"}))}),{white:!0})),$=n("./MapStore2/web/client/components/time/TimelineComponent.jsx");e.exports=Z($)},"./MapStore2/web/client/plugins/timeline/TimelineToggle.jsx":function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.UPDATE_LAYER_DIMENSION_DATA:return Object(a.set)("data[".concat(t.dimension,"][").concat(t.layerId,"]"),t.data,e);case r.SET_CURRENT_TIME:return Object(a.set)("currentTime",t.time,e);case r.SET_OFFSET_TIME:return Object(a.set)("offsetTime",t.offsetTime,e);case r.MOVE_TIME:if(e.offsetTime&&e.currentTime){var n=s()(e.offsetTime).diff(e.currentTime),c=s()(t.time).add(n);return Object(a.set)("currentTime",t.time,Object(a.set)("offsetTime",c.toISOString(),e))}return Object(a.set)("currentTime",t.time,e);case o.REMOVE_NODE:var l=Object(u.mapValues)(e.data,(function(e){return Object(u.pickBy)(e,(function(e,n){return n!==t.node}))}));return Object(a.set)("data",l,e);case i.RESET_CONTROLS:return Object(a.set)("data",void 0,Object(a.set)("currentTime",void 0,Object(a.set)("offsetTime",void 0,e)));default:return e}}},"./MapStore2/web/client/reducers/mapInfo.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/mapInfo.js"),o=n("./MapStore2/web/client/actions/config.js"),i=n("./MapStore2/web/client/actions/controls.js"),a=n("./node_modules/object-assign/index.js"),c=n.n(a),s=n("./node_modules/lodash/lodash.js"),u=n("./MapStore2/web/client/utils/MapInfoUtils.js");function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.NO_QUERYABLE_LAYERS:return c()({},e,{warning:"NO_QUERYABLE_LAYERS"});case r.CLEAR_WARNING:return c()({},e,{warning:null});case r.CHANGE_MAPINFO_STATE:return c()({},e,{enabled:t.enabled});case r.TOGGLE_MAPINFO_STATE:return c()({},e,{enabled:!e.enabled});case r.CHANGE_PAGE:return c()({},e,{index:t.index});case r.TOGGLE_HIGHLIGHT_FEATURE:return c()({},e,{highlight:t.enabled});case r.NEW_MAPINFO_REQUEST:var a=t.reqId,s=t.request,u=e.requests||[];return c()({},e,{requests:[].concat(p(u),[{request:s,reqId:a}])});case r.PURGE_MAPINFO_RESULTS:e.index,e.loaded;var f=l(e,["index","loaded"]);return m(m({},f),{},{queryableLayers:[],responses:[],requests:[]});case r.LOAD_FEATURE_INFO:return y(e,t,"data");case r.EXCEPTIONS_FEATURE_INFO:return y(e,t,"exceptions");case r.ERROR_FEATURE_INFO:return y(e,t,"error");case r.FEATURE_INFO_CLICK:return c()({},e,{clickPoint:t.point,clickLayer:t.layer||null,itemId:t.itemId||null,overrideParams:t.overrideParams||null,filterNameList:t.filterNameList||null});case r.CHANGE_MAPINFO_FORMAT:return m(m({},e),{},{configuration:m(m({},e.configuration),{},{infoFormat:t.infoFormat})});case r.SHOW_MAPINFO_MARKER:return c()({},e,{showMarker:!0});case r.HIDE_MAPINFO_MARKER:return c()({},e,{showMarker:!1});case r.SHOW_REVERSE_GEOCODE:return c()({},e,{showModalReverse:!0,reverseGeocodeData:t.reverseGeocodeData});case r.HIDE_REVERSE_GEOCODE:return c()({},e,{showModalReverse:!1,reverseGeocodeData:void 0});case i.RESET_CONTROLS:return c()({},e,{showMarker:!1,responses:[],requests:[]});case r.GET_VECTOR_INFO:var d,b=n("./node_modules/turf-buffer/index.js"),h=n("./node_modules/turf-intersect/index.js"),S={type:"Feature",properties:{},geometry:{type:"Point",coordinates:[t.request.lng,t.request.lat]}},v=t.metadata&&t.metadata.units;switch(v){case"m":v="meters";break;case"deg":v="degrees";break;case"mi":v="miles";break;default:v="meters"}var O,E=t.metadata&&t.metadata.resolution||1,j=b(S,(t.metadata.buffer||1)*E,v),w=(t.layer.features||[]).filter((function(e){try{return"FeatureCollection"===e.type&&e.features&&e.features.length?e.features.reduce((function(e,n){var r=n.properties.useGeodesicLines&&n.properties.geometryGeodesic?m(m({},n),{},{geometry:n.properties.geometryGeodesic}):n;return e||h(j,E&&t.metadata.buffer&&v?b(r,1,"meters"):r)}),!1):h(j,E&&t.metadata.buffer&&v?b(e,1,"meters"):e)}catch(e){return!1}})),A=e.responses||[],T="hover"===(null==e||null===(d=e.configuration)||void 0===d?void 0:d.trigger)||!1,_={response:{crs:null,features:w,totalFeatures:"unknown",type:"FeatureCollection"},queryParams:t.request,layerMetadata:t.metadata,format:"JSON"};T?(A=[].concat(p(A),[_]),O={reqId:0}):(A[e.requests.length]=_,O={reqId:e.requests.length});var x=[].concat(p(e.requests),[{}]);return y(c()({},e,{requests:x,queryableLayers:t.queryableLayers,responses:p(A)}),O,"vector");case r.UPDATE_CENTER_TO_MARKER:return c()({},e,{centerToMarker:t.status});case r.TOGGLE_EMPTY_MESSAGE_GFI:return m(m({},e),{},{configuration:m(m({},e.configuration),{},{showEmptyMessageGFI:!e.configuration.showEmptyMessageGFI})});case o.MAP_CONFIG_LOADED:return m(m({},e),{},{configuration:t.config.mapInfoConfiguration||e.configuration||{}});case r.CHANGE_FORMAT:return m(m({},e),{},{formatCoord:t.format});case r.TOGGLE_SHOW_COORD_EDITOR:return m(m({},e),{},{showCoordinateEditor:!t.showCoordinateEditor});case r.SET_CURRENT_EDIT_FEATURE_QUERY:return m(m({},e),{},{currentEditFeatureQuery:t.query});case r.SET_MAP_TRIGGER:return m(m({},e),{},{configuration:m(m({},e.configuration),{},{trigger:t.trigger})});default:return e}}},"./MapStore2/web/client/reducers/maplayout.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/maplayout.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{layout:{},boundingMapRect:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.UPDATE_MAP_LAYOUT:var n=t.layout,o=n.boundingMapRect,a=void 0===o?{}:o,s=u(n,["boundingMapRect"]);return i()({},e,{layout:i()({},s,s),boundingMapRect:c({},a)});default:return e}}},"./MapStore2/web/client/reducers/maps.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/maps.js"),o=n("./node_modules/object-assign/index.js"),i=n.n(o),a=n("./node_modules/lodash/lodash.js");function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{enabled:!1,showMapDetails:!0,errors:[],searchFilter:{},searchText:"",results:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.l:return i()({},e,{searchText:t.text});case r.y:return i()({},e,{searchFilter:l(l({},e.searchFilter),{},p({},t.filter,t.filterData))});case r.B:return i()({},e,{searchFilter:t.searchFilter});case r.A:return i()({},e,{contexts:t.contexts});case r.e:return i()({},e,{loading:t.value,loadFlags:l(l({},e.loadFlags||{}),"loading"!==t.name?p({},t.name,t.value):{})});case r.r:return i()({},e,{metadata:i()({},e.metadata,p({},t.prop,t.value))});case r.C:return i()({},e,{showMapDetails:t.showMapDetails});case r.i:return i()({},e,{loading:!0,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});case r.h:if(t.maps&&t.maps.results&&Array.isArray(t.maps.results))return i()({},e,t.maps,{loading:!1,start:t.params&&t.params.start,limit:t.params&&t.params.limit,searchText:t.searchText});var n=""!==t.maps.results?[t.maps.results]:[];return i()({},e,t.maps,{results:n,loading:!1});case r.j:return{loadingError:t.error};case r.q:for(var o=""===e.results||Object(a.isNil)(e.results)?[]:c(e.results),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{status:r.STATUS.STOP,currentFrame:-1,settings:s},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case r.PLAY:return Object(i.set)("status",r.STATUS.PLAY,e);case r.PAUSE:return Object(i.set)("status",r.STATUS.PAUSE,e);case r.STOP:return Object(i.set)("status",r.STATUS.STOP,Object(i.set)("currentFrame",-1,e));case r.SET_FRAMES:return Object(i.set)("frames",t.frames,Object(i.set)("currentFrame",-1,e));case r.FRAMES_LOADING:return Object(i.set)("framesLoading",t.loading,e);case r.APPEND_FRAMES:return Object(i.set)("frames",[].concat(a(e.frames||[]),a(t.frames)),e);case r.SET_CURRENT_FRAME:return Object(i.set)("currentFrame",t.frame,e);case r.SELECT_PLAYBACK_RANGE:return Object(i.set)("playbackRange",t.range,e);case r.CHANGE_SETTING:return Object(i.set)("settings[".concat(t.name,"]"),t.value,e);case r.UPDATE_METADATA:return Object(i.set)("metadata",{next:t.next,previous:t.previous,forTime:t.forTime},e);case o.RESET_CONTROLS:return Object(i.set)("metadata",void 0,Object(i.set)("framesLoading",void 0,Object(i.set)("playbackRange",void 0,Object(i.set)("frames",void 0,Object(i.set)("currentFrame",-1,Object(i.set)("status","STOP",Object(i.set)("settings",s,e)))))));default:return e}}},"./MapStore2/web/client/reducers/print.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/print.js"),o=n("./MapStore2/web/client/actions/controls.js"),i=n("./node_modules/lodash/lodash.js"),a=n("./node_modules/object-assign/index.js"),c=n.n(a);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={antiAliasing:!0,iconSize:24,legendDpi:96,fontFamily:"Verdana",fontSize:8,bold:!1,italic:!1,resolution:96,name:"",description:""},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("_")[0]};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{spec:u,capabilities:null,map:null,isLoading:!1,pdfUrl:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.TOGGLE_CONTROL:return"print"===t.control?c()({},e,{pdfUrl:null,isLoading:!1,error:null}):e;case r.PRINT_CAPABILITIES_LOADED:var n=Object(i.get)(t,"capabilities.layouts",[{name:"A4"}]),a=n.filter((function(t){return l(t.name)===e.spec.sheet})).length?e.spec.sheet:l(n[0].name);return c()({},e,{capabilities:t.capabilities,spec:c()({},e.spec||{},{sheet:a,resolution:t.capabilities&&t.capabilities.dpis&&t.capabilities.dpis.length&&t.capabilities.dpis[0].value})});case r.SET_PRINT_PARAMETER:return c()({},e,{spec:c()({},e.spec,s({},t.name,t.value))});case r.CONFIGURE_PRINT_MAP:var p=t.layers.map((function(e){return e.title?c()({},e,{title:Object(i.isObject)(e.title)&&t.currentLocale&&e.title[t.currentLocale]||Object(i.isObject)(e.title)&&e.title.default||e.title}):e}));return c()({},e,{map:{center:t.center,zoom:t.zoom,scaleZoom:t.scaleZoom,scale:t.scale,layers:p,projection:t.projection},error:null});case r.CHANGE_PRINT_ZOOM_LEVEL:var f=t.zoom-e.map.scaleZoom;return c()({},e,{map:c()({},e.map,{scaleZoom:t.zoom,zoom:e.map.zoom+f,scale:t.scale})});case r.CHANGE_MAP_PRINT_PREVIEW:return c()({},e,{map:c()({},e.map,{size:t.size})});case r.PRINT_SUBMITTING:return c()({},e,{isLoading:!0,pdfUrl:null,error:null});case r.PRINT_CREATED:return c()({},e,{isLoading:!1,pdfUrl:t.url,error:null});case r.PRINT_ERROR:case r.PRINT_CAPABILITIES_ERROR:return c()({},e,{isLoading:!1,pdfUrl:null,error:t.error});case r.PRINT_CANCEL:return c()({},e,{isLoading:!1,pdfUrl:null,error:null});default:return e}}},"./MapStore2/web/client/reducers/timeline.js":function(e,t,n){"use strict";n.r(t);var r=n("./MapStore2/web/client/actions/layers.js"),o=n("./MapStore2/web/client/actions/controls.js"),i=n("./MapStore2/web/client/actions/timeline.js"),a=n("./MapStore2/web/client/utils/ImmutableUtils.js"),c=n("./node_modules/lodash/lodash.js");t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{settings:{autoSelect:!0,collapsed:!1}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.SET_COLLAPSED:return Object(a.set)("settings.collapsed",t.collapsed,e);case i.SET_MAP_SYNC:return Object(a.set)("settings.mapSync",t.mapSync,e);case i.RANGE_CHANGED:return Object(a.set)("range",{start:t.start,end:t.end},e);case i.RANGE_DATA_LOADED:return Object(a.set)("rangeData[".concat(t.layerId,"]"),{range:t.range,histogram:t.histogram,domain:t.domain},e);case i.LOADING:return t.layerId?Object(a.set)("loading[".concat(t.layerId,"]"),t.loading,e):Object(a.set)("loading.timeline",t.loading,e);case i.SELECT_LAYER:return Object(a.set)("selectedLayer",t.layerId,e);case r.REMOVE_NODE:var n=e;return Object(c.assign)({},e,{rangeData:Object(c.has)(n.rangeData,t.node)?Object(c.pickBy)(n.rangeData,(function(e,n){return n!==t.node})):n.rangeData,loading:Object(c.has)(n.rangeData,t.node)?Object(c.pickBy)(n.loading,(function(e,n){return n!==t.node})):n.loading,selectedLayer:e.selectedLayer===t.node?void 0:e.selectedLayer});case o.RESET_CONTROLS:return Object(c.assign)({},e,{range:void 0,rangeData:void 0,selectedLayer:void 0,loading:void 0,MouseEvent:void 0});default:return e}}},"./MapStore2/web/client/selectors/backgroundselector.js":function(e,t,n){"use strict";n.r(t),n.d(t,"metadataSourceSelector",(function(){return c})),n.d(t,"modalParamsSelector",(function(){return s})),n.d(t,"backgroundListSelector",(function(){return u})),n.d(t,"isDeletedIdSelector",(function(){return l})),n.d(t,"removedBackgroundsThumbIdsSelector",(function(){return p})),n.d(t,"confirmDeleteBackgroundModalSelector",(function(){return f})),n.d(t,"backgroundControlsSelector",(function(){return d})),n.d(t,"allowBackgroundsDeletionSelector",(function(){return m})),n.d(t,"backgroundLayersSelector",(function(){return b}));var r=n("./node_modules/reselect/es/index.js"),o=n("./MapStore2/web/client/selectors/layers.js"),i=n("./MapStore2/web/client/selectors/maptype.js"),a=n("./MapStore2/web/client/utils/LayersUtils.js"),c=function(e){return e.backgroundSelector&&e.backgroundSelector.source},s=function(e){return e.backgroundSelector&&e.backgroundSelector.modalParams},u=function(e){return e.backgroundSelector&&e.backgroundSelector.backgrounds||[]},l=function(e){return e.backgroundSelector&&e.backgroundSelector.lastRemovedId},p=function(e){return e.backgroundSelector&&e.backgroundSelector.removedBackgroundsThumbIds},f=function(e){return e.backgroundSelector&&e.backgroundSelector.confirmDeleteBackgroundModal},d=function(e){return e.controls&&e.controls.backgroundSelector||{}},m=function(e){return e.backgroundSelector&&e.backgroundSelector.allowDeletion},b=Object(r.createSelector)(o.layersSelector,i.mapTypeSelector,(function(e,t){return e.filter((function(e){return e&&"background"===e.group})).map((function(e){return Object(a.invalidateUnsupportedLayer)(e,t)}))||[]}))},"./MapStore2/web/client/selectors/catalog.js":function(e,t,n){"use strict";n.r(t),n.d(t,"staticServicesSelector",(function(){return u})),n.d(t,"servicesSelector",(function(){return l})),n.d(t,"servicesSelectorWithBackgrounds",(function(){return p})),n.d(t,"selectedStaticServiceTypeSelector",(function(){return f})),n.d(t,"tileSizeOptionsSelector",(function(){return d})),n.d(t,"groupSelector",(function(){return m})),n.d(t,"savingSelector",(function(){return b})),n.d(t,"resultSelector",(function(){return y})),n.d(t,"serviceListOpenSelector",(function(){return g})),n.d(t,"newServiceSelector",(function(){return h})),n.d(t,"newServiceTypeSelector",(function(){return S})),n.d(t,"selectedCatalogSelector",(function(){return v})),n.d(t,"selectedServiceTypeSelector",(function(){return O})),n.d(t,"selectedServiceLayerOptionsSelector",(function(){return E})),n.d(t,"searchOptionsSelector",(function(){return j})),n.d(t,"loadingErrorSelector",(function(){return w})),n.d(t,"loadingSelector",(function(){return A})),n.d(t,"selectedServiceSelector",(function(){return T})),n.d(t,"modeSelector",(function(){return _})),n.d(t,"layerErrorSelector",(function(){return x})),n.d(t,"searchTextSelector",(function(){return P})),n.d(t,"activeSelector",(function(){return M})),n.d(t,"authkeyParamNameSelector",(function(){return R})),n.d(t,"pageSizeSelector",(function(){return C})),n.d(t,"delayAutoSearchSelector",(function(){return I})),n.d(t,"catalogSearchInfoSelector",(function(){return D}));var r=n("./node_modules/reselect/es/index.js"),o=n("./node_modules/lodash/lodash.js"),i=n("./MapStore2/web/client/selectors/map.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return e.title||e.name},h=function(e){return Object(r.get)(e,"featuregrid.selectedLayer")},S=function(e){return Object(r.get)(e,"featuregrid.chartDisabled",!1)},v=function(e,t){return Object(r.get)(e,"featuregrid.attributes[".concat(t.name||t.attribute,"]"))},O=function(e){return e&&e.featuregrid&&e.featuregrid.select},E=function(e){return e&&e.featuregrid&&e.featuregrid.changes},j=function(e){return e&&e.featuregrid&&e.featuregrid.newFeatures},w=function(e){return Object(r.head)(O(e))},A=function(e){var t=Object(f.describeSelector)(e);if(t){var n=Object(i.findGeometryProperty)(t);return n&&n.localType}return null},T=function(e){var t=w(e);if(t){var n=Object(s.toChangesMap)(E(e));return!(!n[t.id]||null===n[t.id].geometry)||(!n[t.id]||null!==n[t.id].geometry)&&((!t._new||!Object(r.head)(j(e))||null!==Object(r.head)(j(e)).geometry)&&(!(!t._new||!Object(r.head)(j(e))||null===Object(r.head)(j(e)).geometry)||null!==t.geometry))}return!1},_=["Geometry","GeometryCollection"],x=function(e){return!Object(r.head)(_.filter((function(t){return A(e)===t})))},P=function(e){return E(e)&&E(e).length>0},M=function(e){return j(e)&&j(e).length>0},R=function(e){return e&&e.featuregrid&&e.featuregrid.filters},C=function(e){return Object(r.get)(y(e,h(e)),"params")},I=function(e){return y(e,h(e))},D=function(e){return Object(r.get)(e,"featuregrid.editingAllowedRoles",["ADMIN"])},N=function(e){return e&&e.featuregrid&&e.featuregrid.canEdit},L=function(e){return e&&e.featuregrid&&e.featuregrid.open},k=function(e,t){return Object(r.get)(R(e),t)},F=function(e){var t=g(y(e,h(e)));return Object(r.isObject)(t)?t[Object(a.currentLocaleSelector)(e)]||t.default||"":t},G=function(e){return(Object(f.attributesSelector)(e)||[]).map((function(t){var n=v(e,t);return n?m(m({},t),n):t}))},U=function(e){return e&&e.featuregrid&&e.featuregrid.mode},B=function(e){return(O(e)||[]).length},H=function(e){return Object(s.toChangesMap)(E(e))},z=function(e){return T(e)},Y=function(e){return Object(r.get)(e,"featuregrid.showAgain",!1)},V=function(e){if(Object(r.get)(e,"featuregrid.showTimeSync",!1)){var t=h(e);return Object(u.layerDimensionSelectorCreator)({id:t},"time")(e)}return null},q=function(e){return Object(r.get)(e,"featuregrid.timeSync",!1)},W=function(e){return Object(r.get)(e,"featuregrid.showPopoverSync",!0)},K=function(e){return e&&e.featuregrid&&e.featuregrid.saving},Q=function(e){return e&&e.featuregrid&&e.featuregrid.saved},Z=function(e){return e&&e.featuregrid&&e.featuregrid.drawing},$=function(e){return M(e)||P(e)},X=function(e){return Object(c.isSimpleGeomType)(A(e))},J=function(e){return e.featuregrid&&e.featuregrid.dockSize},ee=function(e){var t=y(e,h(e));return t&&t.name||""},te=function(e){var t=C(e);return{viewParams:t&&(t.VIEWPARAMS||t.viewParams||t.viewparams),cqlFilter:t&&(t.CQL_FILTER||t.cqlFilter||t.cql_filter)}},ne=function(e){var t=Object(l.userRoleSelector)(e),n=D(e)||["ADMIN"],r=N(e);return(-1!==n.indexOf(t)||r)&&!Object(p.isCesium)(e)}},"./MapStore2/web/client/selectors/localizedLayerStyles.js":function(e,t,n){"use strict";n.r(t),n.d(t,"isLocalizedLayerStylesEnabledSelector",(function(){return a})),n.d(t,"isLocalizedLayerStylesEnabledDashboardsSelector",(function(){return c})),n.d(t,"localizedLayerStylesNameSelector",(function(){return s})),n.d(t,"localizedLayerStylesEnvSelector",(function(){return u}));var r=n("./node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/locale.js"),a=function(e){return Object(r.has)(e,"localConfig.localizedLayerStyles")},c=function(e){var t=Object(r.get)(e,"localConfig.plugins.dashboard",[]),n=Object(r.find)(t,(function(e){return"DashboardEditor"===e.name}))||{};return Object(r.get)(n,"cfg.catalog.localizedLayerStyles",!1)},s=function(e){return Object(r.get)(e,"localConfig.localizedLayerStyles.name","mapstore_language")},u=Object(o.createSelector)(a,s,i.currentLocaleLanguageSelector,(function(e,t,n){var r=[];return e&&r.push({name:t,value:n}),r}))},"./MapStore2/web/client/selectors/maplayout.js":function(e,t,n){"use strict";n.r(t),n.d(t,"mapLayoutSelector",(function(){return u})),n.d(t,"boundingMapRectSelector",(function(){return l})),n.d(t,"mapLayoutValuesSelector",(function(){return p})),n.d(t,"checkConditionsSelector",(function(){return f})),n.d(t,"rightPanelOpenSelector",(function(){return d})),n.d(t,"bottomPanelOpenSelector",(function(){return m})),n.d(t,"mapPaddingSelector",(function(){return b}));var r=n("./node_modules/lodash/lodash.js"),o=n("./MapStore2/web/client/selectors/map.js"),i=n("./MapStore2/web/client/utils/MapUtils.js");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=u(e);return n&&Object.keys(n).filter((function(e){return t[e]})).reduce((function(e,t){return c(c({},e),{},s({},t,n[t]))}),{})||{}},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=u(e),o=!!Object(r.head)(t.filter((function(e){return n[e.key]})).map((function(e){return"not"===e.type?n[e.key]!==e.value&&n[e.key]:n[e.key]===e.value})));return o},d=function(e){return f(e,[{key:"right",value:658}])},m=function(e){return f(e,[{key:"bottom",value:30,type:"not"}])},b=function(e){var t=Object(o.mapSelector)(e),n=l(e);return n&&t&&t.size&&{left:Object(i.parseLayoutValue)(n.left,t.size.width),bottom:Object(i.parseLayoutValue)(n.bottom,t.size.height),right:Object(i.parseLayoutValue)(n.right,t.size.width),top:Object(i.parseLayoutValue)(n.top,t.size.height)}}},"./MapStore2/web/client/selectors/measurement.js":function(e,t,n){"use strict";n.r(t),n.d(t,"isCoordinateEditorEnabledSelector",(function(){return l})),n.d(t,"showAddAsAnnotationSelector",(function(){return p})),n.d(t,"isTrueBearingEnabledSelector",(function(){return f})),n.d(t,"getValidFeatureSelector",(function(){return d})),n.d(t,"measurementSelector",(function(){return m})),n.d(t,"geomTypeSelector",(function(){return b}));var r=n("./MapStore2/web/client/selectors/maptype.js"),o=n("./MapStore2/web/client/selectors/controls.js"),i=n("./MapStore2/web/client/utils/ImmutableUtils.js"),a=n("./MapStore2/web/client/utils/MeasureUtils.js");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return{hasNext:e[t+1],hasPrevious:e[t-1]}}))},"./MapStore2/web/client/selectors/query.js":function(e,t,n){"use strict";n.r(t),n.d(t,"queryFeatureTypeName",(function(){return c})),n.d(t,"featureTypeSelectorCreator",(function(){return s})),n.d(t,"layerDescribeSelector",(function(){return u})),n.d(t,"wfsURL",(function(){return l})),n.d(t,"wfsURLSelector",(function(){return p})),n.d(t,"wfsFilter",(function(){return f})),n.d(t,"attributesSelector",(function(){return d})),n.d(t,"typeNameSelector",(function(){return m})),n.d(t,"resultsSelector",(function(){return b})),n.d(t,"featureCollectionResultSelector",(function(){return y})),n.d(t,"getFeatureById",(function(){return g})),n.d(t,"paginationInfo",(function(){return h})),n.d(t,"isDescribeLoaded",(function(){return S})),n.d(t,"describeSelector",(function(){return v})),n.d(t,"featureLoadingSelector",(function(){return O})),n.d(t,"isSyncWmsActive",(function(){return E})),n.d(t,"isFilterActive",(function(){return j}));var r=n("./node_modules/lodash/lodash.js");function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t-1)||t&&t.collectGeometries&&t.operation)}},"./MapStore2/web/client/selectors/queryform.js":function(e,t,n){"use strict";n.r(t),n.d(t,"crossLayerFilterSelector",(function(){return f})),n.d(t,"availableCrossLayerFilterLayersSelector",(function(){return d})),n.d(t,"spatialFieldGeomSelector",(function(){return m})),n.d(t,"spatialFieldSelector",(function(){return b})),n.d(t,"attributePanelExpandedSelector",(function(){return y})),n.d(t,"spatialPanelExpandedSelector",(function(){return g})),n.d(t,"crossLayerExpandedSelector",(function(){return h})),n.d(t,"queryFormUiStateSelector",(function(){return S})),n.d(t,"storedFilterSelector",(function(){return v})),n.d(t,"appliedFilterSelector",(function(){return O})),n.d(t,"spatialFieldMethodSelector",(function(){return E})),n.d(t,"maxFeaturesWPSSelector",(function(){return j})),n.d(t,"spatialFieldGeomTypeSelector",(function(){return w})),n.d(t,"spatialFieldGeomProjSelector",(function(){return A})),n.d(t,"spatialFieldGeomCoordSelector",(function(){return T}));var r=n("./node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/selectors/layers.js"),a=n("./MapStore2/web/client/selectors/locale.js"),c=n("./MapStore2/web/client/utils/LocaleUtils.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=function(e){return Object(r.get)(e,"queryform.crossLayerFilter")},d=function(e){return(Object(i.layersSelector)(e)||[]).filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.group;return"wms"===t&&"background"!==n})).map((function(t){var n=t.title;return u(u({},p(t,["title"])),{},{title:Object(c.getLocalizedProp)(Object(a.currentLocaleSelector)(e),n)})}))},m=function(e){return Object(r.get)(e,"queryform.spatialField.geometry")},b=function(e){return Object(r.get)(e,"queryform.spatialField")},y=function(e){return Object(r.get)(e,"queryform.attributePanelExpanded")},g=function(e){return Object(r.get)(e,"queryform.spatialPanelExpanded")},h=function(e){return Object(r.get)(e,"queryform.crossLayerExpanded")},S=Object(o.createSelector)(y,g,h,(function(e,t,n){return{attributePanelExpanded:e,spatialPanelExpanded:t,crossLayerExpanded:n}})),v=function(e){return Object(r.get)(e,"layerFilter.persisted")},O=function(e){return Object(r.get)(e,"layerFilter.applied")},E=function(e){return Object(r.get)(e,"queryform.spatialField.method")},j=function(e){return Object(r.get)(e,"queryform.maxFeaturesWPS")},w=function(e){return m(e)&&m(e).type||"Polygon"},A=function(e){return m(e)&&m(e).projection||"EPSG =4326"},T=function(e){return m(e)&&m(e).coordinates||[]}},"./MapStore2/web/client/selectors/timeline.js":function(e,t,n){"use strict";n.r(t),n.d(t,"rangeSelector",(function(){return h})),n.d(t,"rangeDataSelector",(function(){return S})),n.d(t,"isCollapsed",(function(){return v})),n.d(t,"isAutoSelectEnabled",(function(){return O})),n.d(t,"isMapSync",(function(){return E})),n.d(t,"timeStampToItems",(function(){return j})),n.d(t,"valuesToItems",(function(){return w})),n.d(t,"rangeDataToItems",(function(){return A})),n.d(t,"getTimeItems",(function(){return T})),n.d(t,"itemsSelector",(function(){return _})),n.d(t,"loadingSelector",(function(){return x})),n.d(t,"selectedLayerSelector",(function(){return P})),n.d(t,"selectedLayerData",(function(){return M})),n.d(t,"selectedLayerName",(function(){return R})),n.d(t,"selectedLayerTimeDimensionConfiguration",(function(){return C})),n.d(t,"selectedLayerUrl",(function(){return I})),n.d(t,"currentTimeRangeSelector",(function(){return D})),n.d(t,"selectedLayerDataRangeSelector",(function(){return N})),n.d(t,"timelineLayersSelector",(function(){return L})),n.d(t,"hasLayers",(function(){return k})),n.d(t,"isVisible",(function(){return F})),n.d(t,"multidimOptionsSelectorCreator",(function(){return G}));var r=n("./node_modules/lodash/lodash.js"),o=n("./node_modules/reselect/es/index.js"),i=n("./MapStore2/web/client/utils/ReselectUtils.js"),a=n("./MapStore2/web/client/utils/CoordinatesUtils.js"),c=n("./MapStore2/web/client/utils/TimeUtils.js"),s=n("./MapStore2/web/client/selectors/dimension.js"),u=n("./MapStore2/web/client/selectors/map.js"),l=n("./MapStore2/web/client/selectors/layers.js");function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n50?[{start:r,end:o,duration:i,type:"range",content:"".concat(s," items")}]:Object(c.timeIntervalToSequence)({start:u,end:l,duration:i}).map((function(e){return{start:new Date(e),end:new Date(e),type:"point"}}))}return isNaN(new Date(r).getTime())?null:[{start:new Date(r),end:new Date(o||r),type:o?"range":"point"}]},w=function(e,t){return(e||[]).reduce((function(e,n){return[].concat(m(e),m(j(n,t)))}),[]).filter((function(e){return e&&e.start}))},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(e.domain&&e.domain.values)return w(e.domain.values,t);if(e.histogram&&e.histogram.domain&&e.histogram.values){var n=e.histogram.domain.split("/"),r=b(n,3),o=r[0],i=r[1],a=r[2],s=Math.max.apply(Math,m(e.histogram.values)),u=Object(c.timeIntervalToIntervalSequence)({start:o,end:i,duration:a});return e.histogram.values.map((function(e,t){return f(f({},u[t]),{},{type:"range",itemType:"histogram",count:e,className:"histogram-item",content:'
').concat(e,"
")})}))}return[]},T=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e&&e.values||e&&e.domain&&!Object(c.isTimeDomainInterval)(e.domain)?w(e.values||e.domain.split(","),t):n&&n.histogram?A(n,t):[]},_=Object(i.createShallowSelector)(s.timeDataSelector,h,S,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m(Object.keys(e).map((function(r){return T(e[r],t,n[r]).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(f({content:" "},e),{},{group:r})}))})).reduce((function(e,t){return[].concat(m(e),m(t))}),[]))})),x=function(e){return Object(r.get)(e,"timeline.loading")},P=function(e){return Object(r.get)(e,"timeline.selectedLayer")},M=function(e){return Object(l.getLayerFromId)(e,P(e))},R=function(e){return M(e)&&M(e).name},C=function(e){return M(e)&&M(e).dimensions&&Object(r.head)(M(e).dimensions.filter((function(e){return"time"===e.name})))},I=function(e){return Object(r.get)(C(e),"source.url")},D=Object(o.createSelector)(s.currentTimeSelector,s.offsetTimeSelector,(function(e,t){return{start:e,end:t}})),N=function(e){return Object(s.layerDimensionRangeSelector)(e,P(e))},L=s.layersWithTimeDataSelector,k=Object(o.createSelector)(L,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.length>0})),F=function(e){return!v(e)&&k(e)},G=function(e){return function(t){var n=(Object(u.mapSelector)(t)||{}).bbox;if(!n)return{};var o=Object(s.layerDimensionDataSelectorCreator)(e,"time")(t),i=Object(r.get)(o,"source.version"),c=Object.keys(n.bounds).reduce((function(e,t){return f(f({},e),{},d({},t,parseFloat(n.bounds[t])))}),{});if(!c||!E(t))return{};if("1.1"!==i){var l=Object(s.layerDimensionDataSelectorCreator)(e,"space")(t),p=Object(r.get)(l,"domain.CRS");if(!p||!c||!E(t))return{};var m=b(Object(a.reprojectBbox)(c,Object(u.projectionSelector)(t),p),4),y=m[0],g=m[1],h=m[2],S=m[3];return he.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return l(e,(function(e){return e<=n&&n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=l(e,t);return o>=0?e.map((function(e,t){return t===o?n:e})):[].concat(r(e),[n])},T=function(e){return(b(e)||[]).filter((function(e){return!y(e)}))},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return t.map((function(t){return n<=t&&t<=r?0:Math.abs(t-e)})).reduce((function(e,t,n,r){return t>r[e]&&n||e}),0)},x=function(e,t){return t.filter((function(t,n){return n!==e}))},P=function(e,t,n){return e.filter((function(e,r){return r=t+n}))},M=function(e,t,n,r){for(var o,i,a=e;a<=t&&void 0===o;a++)-1===E(a*r,n,r)&&(o=a);for(var c=t;c>=e&&void 0===i;c--)-1===E(c*r,n,r)&&(i=c);return[o,i].filter((function(e){return void 0!==e}))};e.exports={getAttributeFields:T,featureTypeToGridColumns:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.editable,o=void 0!==r&&r,i=n.sortable,a=void 0===i||i,c=n.resizable,s=void 0===c||c,u=n.filterable,l=void 0===u||u,p=n.defaultSize,f=void 0===p?200:p,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},m=d.getEditor,b=void 0===m?function(){}:m,y=d.getFilterRenderer,g=void 0===y?function(){}:y,h=d.getFormatter,S=void 0===h?function(){}:h;return T(e).filter((function(e){return!(t[e.name]&&t[e.name].hide)})).map((function(e){return{sortable:a,key:e.name,width:t[e.name]&&t[e.name].width||f||void 0,name:t[e.name]&&t[e.name].label||e.name,resizable:s,editable:o,filterable:l,editor:b(e),formatter:S(e),filterRenderer:g(e,e.name)}}))},getRow:function(e,t){return t[e]},getRowVirtual:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0;return t[E(e,n,r)]||a({},j)},getToolColumns:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=S(n);return e.map((function(e){return a(a({},e),{},{events:e.events&&Object.keys(e.events).reduce((function(o,i){return a(a({},o),{},c({},i,(function(o,a){return e.events[i](t(a.rowIdx),a,n,r)})))}),{})},"geometry"===e.key&&i?{filterRenderer:o(a(a({},i),{},{localType:"geometry"}),i.name),filterable:!0,geometryPropName:i.name}:{})}))},getGridEvents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return Object.keys(e).reduce((function(i,s){return a(a({},i),{},c({},s,(function(){for(var i=arguments.length,a=new Array(i),c=0;c0&&void 0!==arguments[0]?arguments[0]:[];return d(e)?e.reduce((function(e,t){return a(a({},e),{},c({},t.id,a(a({},e[t.id]),t.updated)))}),{}):{}},createNewAndEditingFilter:function(e,t,n){return function(r){return t.length>0?r._new:!e||e&&!!n[r.id]}},hasValidNewFeatures:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.map((function(e){return g(e,t)})).reduce((function(e,t){return t&&e}),!0)},applyAllChanges:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w(e,t[e.id]||{})},applyChanges:w,gridUpdateToQueryUpdate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.attribute,n=e.operator,r=e.value,o=e.type,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(a({},i),{},{groupFields:[{id:1,logic:"AND",index:0}],filterFields:"geometry"===o?i.filterFields:p(r)?(i.filterFields||[]).filter((function(e){return e.attribute!==t})):A(i.filterFields||[],{attribute:t},{attribute:t,rowId:Date.now(),type:o,groupId:1,operator:n,value:r}),spatialField:"geometry"===o?r:i.spatialField})},toPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.startIndex,n=void 0===t?0:t,r=e.maxFeatures,o=void 0===r?1:r,i=e.totalFeatures,a=void 0===i?0:i,c=e.resultSize;return{page:Math.ceil(n/o),resultSize:c,size:o,total:a,maxPages:Math.ceil(a/o)-1}},getCurrentPaginationOptions:function(e,t,n){var r=e.startPage,o=e.endPage,i=M(r,o,t,n),a=i[1]-i[0]+1;return{startIndex:i[0]*n,maxFeatures:a*n}},updatePages:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.endPage,r=t.startPage,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.pages,a=o.features,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=c.size,l=c.maxStoredPages,p=c.startIndex,d=M(r,n,i,s),m=d[1]-d[0]+1,b=u(e,"features",[]);b.length!==m*s&&(b=b.concat(f(Array(m*s-b.length>0?m*s-b.length:b.length),!1)));var y=i,g=a,h=y.length+m-Math.max(l,n-r+1);if(h>0)for(var S=r*s,v=n*s,O=S+(v-S)/2,E=0;E0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type,r=t;if("LineString"===n){if((r=t.filter(u)).length<2)return[]}else if("Polygon"===n){if((r=i(t).filter(u)).length<3)return[[]];r=[r.concat([i(r)])]}return r};e.exports={validateFeatureCoordinates:l,isValidGeometry:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.coordinates,n=e.type;if(!n||!t||t&&o(t)&&0===t.length)return!1;var r=l({coordinates:t,type:n});return(r="Polygon"===n?i(r):r).length>0},convertUom:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"m",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"m";return s[t]&&s[t][n]?e*s[t][n]:e},getFormattedBearingValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.measureTrueBearing,r=void 0!==n&&n,o=t.fractionDigits,i=void 0===o?0:o,a="";if(r){var s="";e>=0&&e<10?s="00":e>10&&e<100&&(s="0");var u=i>0?e.toFixed(i):Math.floor(e);a=s+u+"° T"}else e>=0&&e<90?a="N "+c(e)+"E":e>90&&e<=180?a="S "+c(180-e)+"E":e>180&&e<270?a="S "+c(e-180)+"W":e>=270&&e<=360&&(a="N "+c(360-e)+"W");return a},degToDms:c}},"./MapStore2/web/client/utils/ReselectUtils.js":function(e,t,n){var r=n("./node_modules/lodash/lodash.js"),o=r.isEqualWith,i=r.isObject,a=n("./node_modules/reselect/es/index.js"),c=a.defaultMemoize,s=a.createSelectorCreator,u=function(e,t){return e===t},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return function(t,n){return Array.isArray(t)&&Array.isArray(n)?t===n||t.length===n.length&&t.reduce((function(t,r,o){return t&&e(r,n[o])}),!0):i(t)&&i(n)?t===n||Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((function(r,o){return r&&e(t[o],n[o])}),!0):t===n}},p=s(c,(function(e,t){return o(e,t,l())}));e.exports={createShallowSelector:p,createShallowSelectorCreator:function(e){return s(c,(function(t,n){return o(t,n,l(e))}))}}},"./js/epics/index.js":function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(c).filter((function(e){return"layer"===e.nodeType&&!v.getConfigProp("disableCheckEditPermissions")})).switchMap((function(){var e=g(n()||{});return e?d(e).map((function(e){return s(e)})).startWith(s({canEdit:!1})).catch((function(){return a.Observable.empty()})):a.Observable.of(s({canEdit:!1}))}))},_setThumbnail:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType("GEONODE:CREATE_MAP_THUMBNAIL","GEONODE:CREATE_LAYER_THUMBNAIL").do((function(){try{$("#_thumbnail_processing").modal("show")}catch(e){console.log(e)}})).exhaustMap((function(e){var t=e.type,r=n(),o=h(r),i=S(r),c="GEONODE:CREATE_MAP_THUMBNAIL"===t,s=c?K(i,"info.id"):o[o.length-1].name,u=c?"maps":"layers",l=i.size,p=l.width,f=l.height,d=i.bbox.bounds,m=d.maxx,y=d.minx,g=d.maxy,v={bbox:[y,m,d.miny,g],srid:i.bbox.crs,center:i.center,zoom:i.zoom,width:p,height:f,layers:o.filter((function(e){return"background"!==e.group&&e.visibility})).map((function(e){return e.name})).join(",")};return b(u,s,v).do((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.status;try{$("#_thumbnail_feedbacks").find(".modal-title").text(n),$("#_thumbnail_feedbacks").find(".modal-body").text(t),$("#_thumbnail_feedbacks").modal("show")}catch(e){console.log(e)}})).mapTo({type:"THUMBNAIL_UPDATE"}).catch((function(e){var t=e.code,n=e.message;try{"ECONNABORTED"===t?($("#_thumbnail_feedbacks").find(".modal-title").text("Timeout"),$("#_thumbnail_feedbacks").find(".modal-body").text("Failed from timeout: Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show")):($("#_thumbnail_feedbacks").find(".modal-title").text("Error: "+n),$("#_thumbnail_feedbacks").find(".modal-body").text("Could not create Thumbnail"),$("#_thumbnail_feedbacks").modal("show"))}catch(e){console.log(e)}finally{return a.Observable.of({type:"THUMBNAIL_UPDATE_ERROR"})}})).do((function(){try{$("#_thumbnail_processing").modal("hide")}catch(e){console.log(e)}}))}))},_setStyleEditorPermission:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getState;return e.ofType(p,c).filter((function(e){var t=e.nodeType;return t&&"layer"===t&&!v.getConfigProp("disableCheckEditPermissions")||!t&&!v.getConfigProp("disableCheckEditPermissions")})).switchMap((function(e){var t=g(n()||{});return t?m(t).map((function(e){var t=e.canEdit;return l(t)})).startWith(l(e.canEdit)).catch((function(){return a.Observable.empty()})):a.Observable.of(l(!1))}))},updateMapLayoutEpic:function(e,t){return e.ofType(T,x,k,A,P,M,C,D,N,L,j,w,G,U,I,B).switchMap((function(){var e=t.getState();if(K(e,"browser.mobile")){var n=o({},H(e)?{bottom:"50%"}:{bottom:void 0});return a.Observable.of(O({boundingMapRect:n}))}var r=v.getConfigProp("mapLayout")||{left:{sm:300,md:500,lg:600},right:{md:658},bottom:{sm:30}};if("embedded"===K(e,"mode")){var i={height:"calc(100% - "+r.bottom.sm+"px)"},c=o({},H(e)?{bottom:"50%"}:{bottom:void 0});return a.Observable.of(O(o(o({},i),{},{boundingMapRect:c})))}var s=K(e,"controls.drawer.resizedWidth"),u=W([K(e,"controls.queryPanel.enabled")&&{left:r.left.lg}||null,K(e,"controls.widgetBuilder.enabled")&&{left:r.left.md}||null,K(e,"layers.settings.expanded")&&{left:r.left.md}||null,K(e,"controls.drawer.enabled")&&{left:s||r.left.sm}||null].filter((function(e){return e})))||{left:0},l=W([K(e,"controls.details.enabled")&&{right:r.right.md}||null,K(e,"controls.annotations.enabled")&&{right:r.right.md}||null,K(e,"controls.metadataexplorer.enabled")&&{right:r.right.md}||null,K(e,"controls.measure.enabled")&&Z(e)&&{right:r.right.md}||null,K(e,"mapInfo.enabled")&&H(e)&&{right:r.right.md}||null].filter((function(e){return e})))||{right:0},p=100*V(e),f=Y(e)&&{bottom:p+"%",dockSize:p}||{bottom:r.bottom.sm},d=Y(e)&&{transform:"translate(0, -"+r.bottom.sm+"px)"}||{transform:"none"},m={height:"calc(100% - "+r.bottom.sm+"px)"},b=o(o(o({},f),u),l);return a.Observable.of(O(o(o(o(o(o(o({},u),l),f),d),m),{},{boundingMapRect:b})))}))}}},"./js/extend.js":function(e,t,n){"use strict";n.r(t),n.d(t,"extendPluginsDefinition",(function(){return r}));var r=!1;t.default={extendPluginsDefinition:r}},"./js/previewPlugins.js":function(e,t,n){var r=n("./node_modules/rxjs/Rx.js"),o=n("./js/epics/index.js"),i=o._setThumbnail,a=o.updateMapLayoutEpic,c=n("./js/extend.js").extendPluginsDefinition,s={plugins:{MapPlugin:n("./MapStore2/web/client/plugins/Map.jsx").default,IdentifyPlugin:n("./MapStore2/web/client/plugins/Identify.jsx"),ToolbarPlugin:n("./MapStore2/web/client/plugins/Toolbar.jsx"),ZoomAllPlugin:n("./MapStore2/web/client/plugins/ZoomAll.jsx"),MapLoadingPlugin:n("./MapStore2/web/client/plugins/MapLoading.jsx"),OmniBarPlugin:n("./MapStore2/web/client/plugins/OmniBar.jsx"),BackgroundSelectorPlugin:n("./MapStore2/web/client/plugins/BackgroundSelector.jsx").default,FullScreenPlugin:n("./MapStore2/web/client/plugins/FullScreen.jsx"),ZoomInPlugin:n("./MapStore2/web/client/plugins/ZoomIn.jsx"),ZoomOutPlugin:n("./MapStore2/web/client/plugins/ZoomOut.jsx"),ExpanderPlugin:n("./MapStore2/web/client/plugins/Expander.jsx"),BurgerMenuPlugin:n("./MapStore2/web/client/plugins/BurgerMenu.jsx"),ScaleBoxPlugin:n("./MapStore2/web/client/plugins/ScaleBox.jsx"),MapFooterPlugin:n("./MapStore2/web/client/plugins/MapFooter.jsx"),PrintPlugin:n("./MapStore2/web/client/plugins/Print.jsx"),TimelinePlugin:n("./MapStore2/web/client/plugins/Timeline.jsx"),PlaybackPlugin:n("./MapStore2/web/client/plugins/Playback.jsx"),AddReducersAndEpics:{reducers:{security:n("./MapStore2/web/client/reducers/security.js").default,maps:n("./MapStore2/web/client/reducers/maps.js").default,maplayout:n("./MapStore2/web/client/reducers/maplayout.js").default},epics:{_setThumbnail:i,updateMapLayoutEpic:a,zoomToVisibleAreaEpic:function(){return r.Observable.empty()}}}},requires:{ReactSwipe:n("./node_modules/react-swipeable-views/lib/index.js").default,SwipeHeader:n("./MapStore2/web/client/components/data/identify/SwipeHeader.jsx")}},u=c?c(s):s;e.exports=u},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/I18N/css/formControlIntl.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .form-control-intl {\r\n background-color: unset !important;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/background/css/previewbutton.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"\r\n.msgapi .background-preview-button-label {\r\n position: absolute;\r\n overflow: hidden;\r\n font-weight: bold;\r\n font-size: 12px;\r\n text-align: center;\r\n -webkit-transition: all 0.0s;\r\n -moz-transition: all 0.0s;\r\n -o-transition: all 0.0s;\r\n transition: all 0.0s;\r\n\r\n}\r\n\r\n.msgapi .background-preview-button-label div {\r\n overflow: hidden;\r\n opacity: 0.8;\r\n box-shadow: 0 7px 14px rgba(0,0,0,0.12), 0 5px 5px rgba(0,0,0,0.11);\r\n -webkit-box-shadow: 0 7px 14px rgba(0,0,0,0.12), 0 5px 5px rgba(0,0,0,0.11);\r\n -moz-box-shadow: 0 7px 14px rgba(0,0,0,0.12), 0 5px 5px rgba(0,0,0,0.11);\r\n}\r\n\r\n.msgapi .background-preview-button-container {\r\n -webkit-transition: all 0.3s;\r\n -moz-transition: all 0.3s;\r\n -o-transition: all 0.3s;\r\n transition: all 0.3s;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-button-frame {\r\n overflow: hidden;\r\n -webkit-transition: all 0.3s;\r\n -moz-transition: all 0.3s;\r\n -o-transition: all 0.3s;\r\n transition: all 0.3s;\r\n}\r\n\r\n.msgapi .background-preview-button-frame img{\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.msgapi .background-preview-button-container:hover {\r\n cursor: pointer;\r\n box-shadow: none;\r\n}\r\n\r\n.msgapi .background-preview-button-container:active {\r\n opacity: 0.6;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/background/css/previewicon.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"\r\n.msgapi .background-preview-icon-frame {\r\n overflow: hidden;\r\n}\r\n\r\n.msgapi .background-preview-icon-frame img{\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal {\r\n cursor: pointer;\r\n float: left;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal:hover {\r\n cursor: pointer;\r\n box-shadow: none;\r\n opacity: 0.9;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal:active {\r\n opacity: 0.6;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-horizontal.disabled-icon {\r\n cursor: not-allowed;\r\n float: left;\r\n opacity: 0.5;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical {\r\n cursor: pointer;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical:hover {\r\n cursor: pointer;\r\n box-shadow: none;\r\n opacity: 0.9;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical:active {\r\n opacity: 0.6;\r\n}\r\n\r\n.msgapi .background-preview-icon-container-vertical.disabled-icon {\r\n cursor: not-allowed;\r\n opacity: 0.5;\r\n box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -webkit-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n -moz-box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/help/help.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .mapToolbar .mapstore-tb-helpbadge {\r\n display: block;\r\n background-color: #777;\r\n position: absolute;\r\n z-index: 1000;\r\n top : -10px;\r\n left: -10px;\r\n}\r\n\r\n\r\n.msgapi #helpbadge-zoomToMaxExtent {\r\n display: inline;\r\n position: absolute;\r\n left: 34px;\r\n top: 72px;\r\n z-index: 100000\r\n}\r\n\r\n.msgapi #helpbadge-scaleBox {\r\n display: inline;\r\n position: absolute;\r\n left: 116px;\r\n bottom: 48px;\r\n z-index: 100000\r\n}\r\n\r\n.msgapi #helpbadge-seachBar {\r\n display: inline;\r\n position: absolute;\r\n left: 46px;\r\n top: 10px;\r\n z-index: 100000\r\n}\r\n\r\n\r\n.msgapi .btn .badge {\r\n position: absolute;\r\n top: -10px;\r\n left: -10px;\r\n}\r\n\r\n.msgapi .themed .btn .badge {\r\n top: -35px;\r\n left: -50px;\r\n}\r\n\r\n.msgapi .badge {\r\n cursor: pointer;\r\n}\r\n\r\n.msgapi #helpbadge-scaleBox {\r\n left: 0 !important;\r\n}\r\n\r\n.msgapi #mapstore-navbar #helpbadge-search-help {\r\n position: absolute;\r\n left: -10px;\r\n bottom: -8px;\r\n z-index: 1;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/misc/spinners/GlobalSpinner/css/GlobalSpinner.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-globalspinner {\r\n margin: 0 !important;\r\n width: 40px !important;\r\n position:static !important;\r\n border-radius: 0 !important;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/burgermenu/burgermenu.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-burger-menu {\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n}\r\n\r\n.msgapi .burger-menu-submenu {\r\n display: none;\r\n position: absolute;\r\n left: -160px;\r\n top: 0px;\r\n background-color: white;\r\n width: 160px;\r\n box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);\r\n}\r\n\r\n.msgapi .burger-menu-submenu li:hover {\r\n background-color: #dddddd;\r\n}\r\n\r\n.msgapi .burger-menu-submenu li a {\r\n display: block;\r\n padding: 10px 15px;\r\n}\r\n\r\n.msgapi .burger-menu-submenu li a:hover {\r\n text-decoration: none;\r\n background-color: #dddddd;\r\n}\r\n\r\n.msgapi #mapstore-burger-menu .dropdown-menu > li > a:hover > span > .burger-menu-submenu,\r\n.msgapi .burger-menu-submenu > li > a:hover > span > .burger-menu-submenu {\r\n display: block;\r\n}\r\n\r\n.msgapi .burger-menu-submenu span {\r\n overflow: hidden;\r\n}\r\n\r\n.msgapi #mapstore-navbar #mapstore-burger-menu {\r\n position: relative;\r\n float: right;\r\n left: 0;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/identify/identify.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .swipe-header-left-button {\r\n float: left;\r\n}\r\n\r\n.msgapi .swipe-header-right-button {\r\n float: right;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/map/css/map.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .mapErrorMessage {\r\n font-size: 16px;\r\n color: red;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/maploading/maploading.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-globalspinner {\r\n width: 28px;\r\n height: 28px;\r\n box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.2);\r\n background-color: white;\r\n background-size: 80px 80px;\r\n background-repeat: no-repeat;\r\n border-radius: 4px;\r\n border: 1px solid #999;\r\n z-index: 10;\r\n top: 90px;\r\n left: 2px;\r\n position: absolute;\r\n margin: 8px;\r\n}\r\n\r\n.msgapi #mapstore-globalspinner .circle-wrapper {\r\n margin-left: 2px;\r\n margin-top: 1px;\r\n}\r\n\r\n.msgapi #mapstore-toolbar #mapstore-globalspinner {\r\n position: static;\r\n width: 42px;\r\n margin: 0;\r\n margin-top: 0;\r\n height: 35px;\r\n box-shadow: none;\r\n}\r\n\r\n.msgapi .ms2-loading .sk-circle-wrapper {\r\n width: 30px;\r\n height: 30px;\r\n margin-left: 10px !important;\r\n margin-top: 10px !important;\r\n }\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/omnibar/omnibar.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,"/*viewer navbar */\r\n.msgapi .navbar-dx{\r\n\tposition:absolute;\r\n\tright:0;\r\n\ttop:0;\r\n}\r\n\r\n.msgapi .navbar-dx > ul{\r\n\tpadding:0;\r\n}\r\n\r\n.msgapi .navbar-dx > ul > li{\r\n\tfloat: left;\r\n\tlist-style:none;\r\n}\r\n\r\n.msgapi .navbar-dx .search-wrap .MapSearchBar{\r\n right: 0;\r\n top: 0;\r\n left: 0;\r\n}\r\n\r\n.msgapi .navbar-dx .search-wrap .form-control,.msgapi .navbar-dx .search-wrap .form-control:focus{\r\n border-color: #fff;\r\n border-right: 0;\r\n webkit-box-shadow: none;\r\n box-shadow: none;\r\n}\r\n.msgapi .navbar-dx .search-wrap .MapSearchBar .input-group-addon{\r\n border: 0;\r\n}\r\n.msgapi .navbar-dx .search-result-list{\r\n left: 0;\r\n max-height: none;\r\n}\r\n\r\n.msgapi .navbar-dx .dropdown-menu {\r\n\tmargin:0;\r\n\tpadding-top: 0;\r\n}\r\n\r\n@media (min-width: 1200px) {\r\n .msgapi .navbar-dx .search-wrap {\r\n width: 500px;\r\n height: 50px;\r\n }\r\n}\r\n\r\n.msgapi .navbar-dx > * {\r\n\tdisplay: inline-block;\r\n}\r\n/* Page Navbar */\r\n.msgapi .navbar-home .dropdown {\r\n\tfloat: right;\r\n}\r\n.msgapi .navbar-home .navbar-header {\r\n\tmargin-top: 7px;\r\n\tmargin-left: 10px;\r\n\tmargin-right: 10px;\r\n\tdisplay: inline-block;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/print/print.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mappreview-scalebox {\r\n position: relative;\r\n top: -36px;\r\n width: 150px;\r\n left: 10px;\r\n}\r\n\r\n.msgapi .print-error {\r\n height: 100px;\r\n color: #600;\r\n background-color: #E8BABA;\r\n border: solid #600 1px;\r\n border-radius: 10px;\r\n padding: 10px;\r\n}\r\n.msgapi .print-error span, .msgapi .print-warning span {\r\n display: inline-block;\r\n max-height: 80px;\r\n overflow: auto;\r\n width: 100%;\r\n}\r\n.msgapi .print-warning {\r\n height: 50px;\r\n color: #660;\r\n background-color: #E6E8BA;\r\n border: solid #660 1px;\r\n border-radius: 10px;\r\n padding: 10px;\r\n}\r\n.msgapi .print-preview-panel .spinner {\r\n display: inline-block;\r\n}\r\n\r\n.msgapi .print-mappreview-refresh {\r\n position: relative;\r\n top: -83px;\r\n right: -155px;\r\n z-index: 1000;\r\n}\r\n.msgapi #mapstore-print-panel.modal-dialog {\r\n z-index: 2000;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .modal-body {\r\n max-height: calc(100vh - 190px);\r\n overflow-y: auto;\r\n}\r\n\r\n.msgapi .mapstore-print-panel {\r\n width: 850px;\r\n position: absolute;\r\n top: 50px;\r\n right: 60px;\r\n zIndex: 100;\r\n}\r\n\r\n.msgapi .mapstore-print-panel .form-inline label {\r\n margin-right: 20px;\r\n}\r\n\r\n.msgapi .mapstore-print-panel .print-download {\r\n margin-right: 10px;\r\n display: inline-block;\r\n width: 30px;\r\n height: 34px;\r\n border: solid 1px #CCC;\r\n padding: 7px;\r\n border-radius: 4px;\r\n padding-right: 25px;\r\n padding-left: 11px;\r\n top: 2px;\r\n position: relative;\r\n}\r\n\r\n.msgapi .print-layout .panel-title {\r\n padding-left: 10px;\r\n}\r\n\r\n.msgapi .print-layout .panel-title a{\r\n text-decoration: none;\r\n}\r\n\r\n.msgapi .print-layout .panel-title a:hover{\r\n color: #d6d6d6;\r\n}\r\n\r\n.msgapi .print-legend-options .panel-title {\r\n padding-left: 10px;\r\n}\r\n\r\n.msgapi .print-legend-options .panel-title a{\r\n text-decoration: none;\r\n}\r\n\r\n.msgapi .print-legend-options .panel-title a:hover{\r\n color: #d6d6d6;\r\n}\r\n\r\n\r\n@media (min-width: 992px) {\r\n .msgapi #mapstore-print-panel {\r\n width: 825px;\r\n }\r\n}\r\n\r\n@media (max-width: 991px) {\r\n .msgapi #mapstore-print-panel {\r\n width: 700px;\r\n }\r\n}\r\n\r\n@media (max-width: 767px) {\r\n .msgapi #mapstore-print-panel {\r\n width: 98%;\r\n }\r\n}\r\n\r\n.msgapi #mapstore-print-panel .modal-body .print-mappreview-refresh {\r\n top: -96px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-submit {\r\n float: right;\r\n}\r\n\r\n@media (min-width: 768px) {\r\n .msgapi #mapstore-print-panel input[type=radio] {\r\n margin: 0 8px 0 20px;\r\n }\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-map-preview {\r\n margin-bottom: 15px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-default {\r\n border: none;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-heading .panel-title {\r\n font-weight: bold;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-heading {\r\n padding-left: 0;\r\n background-color: transparent;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .panel-body {\r\n padding: 10px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .form-control {\r\n padding: 0 10px;\r\n height: 25px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-download {\r\n margin-right: 10px;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-download a {\r\n color: white;\r\n}\r\n\r\n.msgapi #mapstore-print-panel .print-legend-options .container-fluid {\r\n padding-left: 0;\r\n padding-right: 0;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/scalebox/scalebox.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-scalebox {\r\n /*z-index: 10;\r\n bottom: 6px;\r\n left: -2px;\r\n position: absolute;\r\n margin: 8px;\r\n width: 148px;*/\r\n}\r\n\r\n.msgapi #mapstore-scalebox-container {\r\n /*z-index: 10;\r\n bottom: -16px;\r\n right: 55px;\r\n left: auto;\r\n position: absolute;\r\n margin: 8px;\r\n width: 148px;*/\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/toolbar/assets/css/toolbar.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi .mapToolbar {\r\n position: absolute;\r\n bottom: 5px;\r\n right: 0;\r\n z-index: 1000;\r\n margin-bottom: 35px;\r\n margin-right: 5px;\r\n}\r\n\r\n.msgapi .toolbarexpand-enter {\r\n opacity: 0.01;\r\n}\r\n\r\n.msgapi .toolbarexpand-enter.toolbarexpand-enter-active {\r\n opacity: 1;\r\n transition: opacity 500ms ease-in;\r\n}\r\n\r\n.msgapi .toolbarexpand-leave {\r\n opacity: 1;\r\n}\r\n\r\n.msgapi .toolbarexpand-leave.toolbarexpand-leave-active {\r\n opacity: 0.01;\r\n transition: opacity 300ms ease-in;\r\n}\r\n\r\n.msgapi #navigationBar .toolbar-panel {\r\n bottom: 80px !important;\r\n}\r\n\r\n.msgapi #identifyBar .mapToolbar {\r\n top: auto !important;\r\n bottom: 5px;\r\n right: 212px !important;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoom/zoom.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #zoomin-btn, .msgapi #zoomout-btn {\r\n z-index: 1;\r\n position: relative;\r\n}\r\n",""])},"./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/plugins/zoomall/zoomall.css":function(e,t,n){(e.exports=n("./node_modules/css-loader/lib/css-base.js")()).push([e.i,".msgapi #mapstore-zoomtomaxextent {\r\n z-index: 1;\r\n position: relative;\r\n}\r\n",""])}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/11.77463e34d36870e03dfd.chunk.js b/geonode_mapstore_client/static/mapstore/dist/11.77463e34d36870e03dfd.chunk.js new file mode 100644 index 0000000000..04ceac20f2 --- /dev/null +++ b/geonode_mapstore_client/static/mapstore/dist/11.77463e34d36870e03dfd.chunk.js @@ -0,0 +1,7 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[11,7,14,19,21],{"./MapStore2/web/client/components/map sync recursive ^\\.\\/.*\\/index$":function(e,t,r){var n={"./cesium/plugins/index":"./MapStore2/web/client/components/map/cesium/plugins/index.js","./leaflet/index":"./MapStore2/web/client/components/map/leaflet/index.js","./leaflet/plugins/index":"./MapStore2/web/client/components/map/leaflet/plugins/index.js","./openlayers/index":"./MapStore2/web/client/components/map/openlayers/index.js","./openlayers/plugins/index":"./MapStore2/web/client/components/map/openlayers/plugins/index.js","./popups/index":"./MapStore2/web/client/components/map/popups/index.js"};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="./MapStore2/web/client/components/map sync recursive ^\\.\\/.*\\/index$"},"./MapStore2/web/client/components/map sync recursive ^\\.\\/.*\\/plugins\\/index$":function(e,t,r){var n={"./cesium/plugins/index":"./MapStore2/web/client/components/map/cesium/plugins/index.js","./leaflet/plugins/index":"./MapStore2/web/client/components/map/leaflet/plugins/index.js","./openlayers/plugins/index":"./MapStore2/web/client/components/map/openlayers/plugins/index.js"};function o(e){var t=i(e);return r(t)}function i(e){if(!r.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="./MapStore2/web/client/components/map sync recursive ^\\.\\/.*\\/plugins\\/index$"},"./MapStore2/web/client/components/map/cesium/plugins/BingLayer.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/cesium/Layers.js"),o=r("./MapStore2/web/client/libs/cesium.js");n.registerType("bing",(function(e){var t=e.apiKey;return new o.BingMapsImageryProvider({url:"//dev.virtualearth.net",key:t,mapStyle:o.BingMapsStyle[e.name.toUpperCase()]})}))},"./MapStore2/web/client/components/map/cesium/plugins/GraticuleLayer.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/cesium/Layers.js"),o=r("./MapStore2/web/client/libs/cesium.js"),i=r("./node_modules/object-assign/index.js"),a=function(){var e=[o.Math.toRadians(.05),o.Math.toRadians(.1),o.Math.toRadians(.2),o.Math.toRadians(.5),o.Math.toRadians(1),o.Math.toRadians(2),o.Math.toRadians(5),o.Math.toRadians(10)];function t(e,t){var r=e||{};this._tilingScheme=r.tilingScheme||new o.GeographicTilingScheme,this._color=r.color&&new o.Color(r.color[0],r.color[1],r.color[2],r.color[3])||new o.Color(1,1,1,.4),this._tileWidth=r.tileWidth||256,this._tileHeight=r.tileHeight||256,this._ready=!0,this._sexagesimal=r.sexagesimal||!1,this._numLines=r.numLines||50,this._scene=t,this._labels=new o.LabelCollection,t.primitives.add(this._labels),this._polylines=new o.PolylineCollection,t.primitives.add(this._polylines),this._ellipsoid=t.globe.ellipsoid;var n=document.createElement("canvas");n.width=256,n.height=256,this._canvas=n}var r=function(){try{return"x"in Object.defineProperty({},"x",{})}catch(e){return!1}}(),n=Object.defineProperties;function i(e){return e<.01?3:e<.1?2:e<1?1:0}return r&&n||(n=function(e){return e}),n(t.prototype,{url:{get:function(){}},proxy:{get:function(){}},tileWidth:{get:function(){return this._tileWidth}},tileHeight:{get:function(){return this._tileHeight}},maximumLevel:{get:function(){return 18}},minimumLevel:{get:function(){return 0}},tilingScheme:{get:function(){return this._tilingScheme}},rectangle:{get:function(){return this._tilingScheme.rectangle}},tileDiscardPolicy:{get:function(){}},errorEvent:{get:function(){return this._errorEvent}},ready:{get:function(){return this._ready}},credit:{get:function(){return this._credit}},hasAlphaChannel:{get:function(){return!0}}}),t.prototype.makeLabel=function(e,t,r,n){this._labels.add({position:this._ellipsoid.cartographicToCartesian(new o.Cartographic(e,t,10)),text:r,font:"normal",fillColor:this._color,outlineColor:this._color,style:o.LabelStyle.FILL,pixelOffset:new o.Cartesian2(5,n?5:-5),eyeOffset:o.Cartesian3.ZERO,horizontalOrigin:o.HorizontalOrigin.LEFT,verticalOrigin:n?o.VerticalOrigin.BOTTOM:o.VerticalOrigin.TOP,scale:1})},t.prototype._drawGrid=function(t){if(!this._currentExtent||!this._currentExtent.equals(t)){this._currentExtent=t,this._polylines.removeAll(),this._labels.removeAll();for(var r=0,n=0,a=0;ai&&u*u/(s*s+l*l+c*c)>i?this.setVisible(!1):this.setVisible(!0)},e.prototype.update=function(){if(this.computeVisible(),this._visible&&this._position){var e=o.SceneTransforms.wgs84ToWindowCoordinates(this._scene,this._position);if(e){var t=Math.floor(e.x)-this._div.clientWidth/2+"px",r=Math.floor(e.y)-this._div.clientHeight+"px";this._div.tabIndex=5,this._div.style.left=t,this._div.style.top=r}}},e.prototype.destroy=function(){this._div.parentNode.removeChild(this._div)},e}();n.registerType("overlay",{create:function(e,t){var r=function(e,t){var r=e.cloneNode(!0);r.id=t.id+"-overlay",r.className=(t.className||e.className)+"-overlay",r.removeAttribute("data-reactid"),function e(t){if(0!==t.length)for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0})).filter((function(e){return(void 0===r[e]?i&&i[e]:r[e])!==(void 0===t[e]?n&&n[e]:t[e])})).length>0||t.securityToken!==r.securityToken||t.tileSize!==r.tileSize?k(t):null}})},"./MapStore2/web/client/components/map/cesium/plugins/WMTSLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/cesium/Layers.js"),o=r.n(n),i=r("./MapStore2/web/client/utils/ConfigUtils.js"),a=r("./MapStore2/web/client/utils/ProxyUtils.js"),s=r.n(a),l=r("./MapStore2/web/client/utils/WMTSUtils.js"),c=r.n(l),u=r("./MapStore2/web/client/libs/cesium.js"),p=r.n(u),d=r("./MapStore2/web/client/utils/LayersUtils.js"),f=r("./node_modules/object-assign/index.js"),h=r.n(f),m=r("./node_modules/lodash/lodash.js"),g=r("./node_modules/url/url.js"),y=r.n(g),b=r("./MapStore2/web/client/utils/VectorTileUtils.js");function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t=0?new p.a.GeographicTilingScheme:e.indexOf("EPSG:3857")>=0?new p.a.WebMercatorTilingScheme:null},P=function(e,t){var r=c.a.getTileMatrixSet(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds);return{tileMatrixSet:r,matrixIds:function(e,t){return e.length>t?Object(m.slice)(e,0,t):e.length0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return(Object(m.isObject)(e)&&e[t]||Object(m.isArray)(e)&&e||[]).map((function(e){return e.identifier}))}(e.matrixIds,r)||function(e){for(var t=new Array(30),r=0;r<30;++r)t[r]=e.tileMatrixPrefix+r;return t}(e))}};function C(e){var t="EPSG:4326",r=P(e,t),n=r.tileMatrixSet,o=r.matrixIds;if(0===o.length){var a=P(e,t="EPSG:3857");n=a.tileMatrixSet,o=a.matrixIds}var l,c=i.default.getProxyUrl({});c&&(l=s.a.needProxy(e.url)&&c);var u,p=(u=e.matrixIds&&e.matrixIds[n],function(e,t,r){return u&&u[r]&&!u[r].ranges||e<=parseInt(Object(m.get)(u[r],"ranges.cols.max"),10)&&e>=parseInt(Object(m.get)(u[r],"ranges.cols.min"),10)&&t<=parseInt(Object(m.get)(u[r],"ranges.rows.max"),10)&&t>=parseInt(Object(m.get)(u[r],"ranges.rows.min"),10)}),f=y.a.format({query:_({},Object(d.getAuthenticationParam)(e))});return h()({url:Object(m.head)(Object(d.getURLs)(Object(m.isArray)(e.url)?e.url:[e.url],f)),format:(Object(b.isVectorFormat)(e.format)?"image/png":e.format)||"image/png",isValid:p,layer:e.name,style:e.style||"",tileMatrixLabels:o,tilingScheme:L(t,e.matrixIds[n]),proxy:l&&new x(l)||new k,enablePickFeatures:!1,tileWidth:e.tileWidth||e.tileSize||256,tileHeight:e.tileHeight||e.tileSize||256,tileMatrixSetID:n,maximumLevel:30,parameters:_({},Object(d.getAuthenticationParam)(e))})}var O=function e(t){var r,n=C(t),o=(r=new p.a.WebMapTileServiceImageryProvider(n)).requestImage;return r.requestImage=function(e,t,i){return n.isValid(e,t,i)?o.bind(r)(e,t,i):new Promise((function(){}))},r.updateParams=function(r){var n=h()({},t,{params:h()({},t.params||{},r)});return e(n)},r};o.a.registerType("wmts",{create:O,update:function(e,t,r){return t.securityToken!==r.securityToken||r.format!==t.format?O(t):null}})},"./MapStore2/web/client/components/map/cesium/plugins/index.js":function(e,t,r){e.exports={BingLayer:r("./MapStore2/web/client/components/map/cesium/plugins/BingLayer.js"),OSMLayer:r("./MapStore2/web/client/components/map/cesium/plugins/OSMLayer.js"),TileProviderLayer:r("./MapStore2/web/client/components/map/cesium/plugins/TileProviderLayer.js"),WMSLayer:r("./MapStore2/web/client/components/map/cesium/plugins/WMSLayer.js"),WMTSLayer:r("./MapStore2/web/client/components/map/cesium/plugins/WMTSLayer.js"),GraticuleLayer:r("./MapStore2/web/client/components/map/cesium/plugins/GraticuleLayer.js"),MarkerLayer:r("./MapStore2/web/client/components/map/cesium/plugins/MarkerLayer.js"),OverlayLayer:r("./MapStore2/web/client/components/map/cesium/plugins/OverlayLayer.js")}},"./MapStore2/web/client/components/map/leaflet/Feature.jsx":function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:1,t=this.originalStyle||this.options&&this.options.style||this.options||{};this.originalStyle=i({},t);var r=t.opacity,o=void 0===r?1:r,a=t.fillOpacity,s=void 0===a?1:a,l=t.color,c=t.fillColor,u=t.radius,p=t.weight,d={color:l,fillColor:c,radius:u,weight:p,opacity:o*e,fillOpacity:s*e};n.setStyle&&n.setStyle(d)}),this._layers.push(n)}}])&&s(t.prototype,r),n&&s(t,n),u}(m.Component);f(k,"propTypes",{msId:h.oneOfType([h.string,h.number]),type:h.string,styleName:h.string,properties:h.object,container:h.object,geometry:h.object,features:h.array,style:h.object,onClick:h.func,options:h.object}),e.exports=k},"./MapStore2/web/client/components/map/leaflet/Layer.jsx":function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=r.padding,o=r.crs,i=r.maxZoom,a=r.duration,s=n&&d.point(n.left||0,n.top||0),l=n&&d.point(n.right||0,n.bottom||0),c=g.reprojectBbox(t,o,"EPSG:4326");e.map.fitBounds([[c[1],c[0]],[c[3],c[2]]],{paddingTopLeft:s,paddingBottomRight:l,maxZoom:i,duration:a,animate:0!==a&&void 0})}))})),p(c(e),"addLayerObservable",(function(t,r){!t.layer.layerId||t.layer&&t.layer.options&&"vector"===t.layer.options.msLayer||t&&t.layer&&t.layer.on&&r&&(t.layer._ms2LoadingTileCount=0,t.layer.layerLoadingStream$=new v.Subject,t.layer.layerLoadStream$=new v.Subject,t.layer.layerErrorStream$=new v.Subject,t.layer.layerErrorStream$.bufferToggle(t.layer.layerLoadingStream$,(function(){return t.layer.layerLoadStream$})).subscribe({next:function(r){var n=t.layer._ms2LoadingTileCount||r&&r.length||0;r&&r.length>0&&e.props.onLayerError(r[0].target.layerId,n,r.length),t.layer._ms2LoadingTileCount=0}}))})),e}return t=u,(r=[{key:"UNSAFE_componentWillMount",value:function(){if(this.zoomOffset=0,this.props.mapOptions&&this.props.mapOptions.view&&this.props.mapOptions.view.resolutions&&this.props.mapOptions.view.resolutions.length>0){var e=d.CRS.EPSG3857.scale,t=this.props.mapOptions.view.resolutions[0]/b.getGoogleMercatorResolutions(0,23)[0];this.crs=y({},d.CRS.EPSG3857,{scale:function(r){return e.call(d.CRS.EPSG3857,r)/Math.pow(2,Math.round(Math.log2(t)))}}),this.zoomOffset=Math.round(Math.log2(t))}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.limits,r=void 0===t?{}:t,n=r.restrictedExtent&&r.crs&&g.reprojectBbox(r.restrictedExtent,r.crs,"EPSG:4326"),o=y({},this.props.interactive?{}:{dragging:!1,touchZoom:!1,scrollWheelZoom:!1,doubleClickZoom:!1,boxZoom:!1,tap:!1,attributionControl:!1,maxBounds:n&&d.latLngBounds([[n[1],n[0]],[n[3],n[2]]]),maxBoundsViscosity:n&&1,minZoom:r&&r.minZoom,maxZoom:r&&r.maxZoom||23},this.props.mapOptions,this.crs?{crs:this.crs}:{}),i=d.map(this.getDocument().getElementById(this.props.id),y({zoomControl:!1},o)).setView([this.props.center.y,this.props.center.x],Math.round(this.props.zoom));this.map=i,this.props.zoomControl&&(this.mapZoomControl=d.control.zoom(),this.map.addControl(this.mapZoomControl)),this.attribution=d.control.attribution(),this.attribution.addTo(this.map);var a=this.getDocument();this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&(a.querySelector(this.props.mapOptions.attribution.container).appendChild(this.attribution.getContainer()),a.querySelector(".leaflet-control-container .leaflet-control-attribution")&&a.querySelector(".leaflet-control-container .leaflet-control-attribution").parentNode.removeChild(a.querySelector(".leaflet-control-container .leaflet-control-attribution"))),this.map.on("moveend",this.updateMapInfoState),this.map.on("singleclick",(function(t){e.props.onClick&&e.props.onClick({pixel:{x:t.containerPoint.x,y:t.containerPoint.y},latlng:{lat:t.latlng.lat,lng:t.latlng.lng,z:e.elevationLayer&&e.elevationLayer.getElevation(t.latlng,t.containerPoint)||void 0},rawPos:[t.latlng.lat,t.latlng.lng],modifiers:{alt:t.originalEvent.altKey,ctrl:t.originalEvent.ctrlKey,shift:t.originalEvent.shiftKey}})}));var s=_(this.mouseMoveEvent,100);this.map.on("dragstart",(function(){e.map.off("mousemove",s)})),this.map.on("dragend",(function(){e.map.on("mousemove",s)})),this.map.on("mousemove",s),this.map.on("contextmenu",(function(){e.props.onRightClick&&e.props.onRightClick(event.containerPoint)})),this.map.on("mouseout",(function(){setTimeout((function(){return e.props.onMouseOut()}),150)})),this.updateMapInfoState(),this.setMousePointer(this.props.mousePointer),this.forceUpdate(),this.map.on("layeradd",(function(t){if(t.layer._ms2Added){var r=t.layer.layerLoadingStream$&&t.layer.layerLoadingStream$.isStopped;e.addLayerObservable(t,r)}else t.layer._ms2Added=!0,t.layer.getElevation&&(e.elevationLayer=t.layer),t.layer.layerId&&(t.layer&&t.layer.options&&"vector"===t.layer.options.msLayer||t&&t.layer&&t.layer.on&&(e.addLayerObservable(t,!0),t.layer.options&&t.layer.options.hideLoading||(e.props.onLayerLoading(t.layer.layerId),t.layer.layerLoadingStream$.next()),t.layer.on("loading",(function(r){e.props.onLayerLoading(r.target.layerId),t.layer.layerLoadingStream$.next()})),t.layer.on("load",(function(r){e.props.onLayerLoad(r.target.layerId),t.layer.layerLoadStream$.next()})),t.layer.on("tileloadstart ",(function(){t.layer._ms2LoadingTileCount++})),(t.layer.options&&!t.layer.options.hideErrors||!t.layer.options)&&t.layer.on("tileerror",(function(e){t.layer.layerErrorStream$.next(e)})),t.layer.on("loaderror",(function(t){e.props.onLayerError(t.target.layerId)}))))})),this.map.on("layerremove",(function(e){e.layer.layerLoadingStream$&&(e.layer.layerLoadingStream$.complete(),e.layer.layerLoadStream$.complete(),e.layer.layerErrorStream$.complete())})),this.drawControl=null,this.props.registerHooks&&this.registerHooks()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(e.mousePointer!==this.props.mousePointer&&this.setMousePointer(e.mousePointer),this.map&&e.mapStateSource!==this.props.id&&this._updateMapPositionFromNewProps(e),e.zoomControl!==this.props.zoomControl&&(e.zoomControl?(this.mapZoomControl=d.control.zoom(),this.map.addControl(this.mapZoomControl)):this.mapZoomControl&&!e.zoomControl&&(this.map.removeControl(this.mapZoomControl),this.mapZoomControl=void 0)),e.resize!==this.props.resize&&setTimeout((function(){t.map&&t.map.invalidateSize(!1)}),0),this.props.limits!==e.limits){var r=e.limits,n=void 0===r?{}:r,o=this.props.limits;if(n.restrictedExtent!==(o&&o.restrictedExtent)){var i=n.restrictedExtent&&n.crs&&g.reprojectBbox(n.restrictedExtent,n.crs,"EPSG:4326");this.map.setMaxBounds(n.restrictedExtent&&d.latLngBounds([[i[1],i[0]],[i[3],i[2]]]))}n.minZoom!==(o&&o.minZoom)&&this.map.setMinZoom(n.minZoom)}return!1}},{key:"componentWillUnmount",value:function(){var e=this.getDocument(),t=this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&e.querySelector(this.props.mapOptions.attribution.container);if(t&&this.attribution.getContainer()&&t.querySelector(".leaflet-control-attribution"))try{t.removeChild(this.attribution.getContainer())}catch(e){}this.mapZoomControl&&(this.map.removeControl(this.mapZoomControl),this.mapZoomControl=void 0),this.map.off(),this.map.remove(),this.map=void 0}},{key:"render",value:function(){var e=this,t=this.map,r=this.props.projection,n=t?h.Children.map(this.props.children,(function(n){return n?h.cloneElement(n,{map:t,projection:r,zoomOffset:e.zoomOffset,onCreationError:e.props.onCreationError,onClick:e.props.onClick}):null})):null;return h.createElement("div",{id:this.props.id,style:this.props.style},n)}}])&&i(t.prototype,r),n&&i(t,n),u}(h.Component);p(w,"propTypes",{id:f.string,document:f.object,center:m.PropTypes.center,zoom:f.number.isRequired,mapStateSource:m.PropTypes.mapStateSource,style:f.object,projection:f.string,onMapViewChanges:f.func,onClick:f.func,onRightClick:f.func,mapOptions:f.object,limits:f.object,zoomControl:f.bool,mousePointer:f.string,onMouseMove:f.func,onLayerLoading:f.func,onLayerLoad:f.func,onLayerError:f.func,resize:f.number,measurement:f.object,changeMeasurementState:f.func,registerHooks:f.bool,interactive:f.bool,resolutions:f.array,hookRegister:f.object,onCreationError:f.func,onMouseOut:f.func}),p(w,"defaultProps",{id:"map",onMapViewChanges:function(){},onCreationError:function(){},onClick:null,onMouseMove:function(){},zoomControl:!0,mapOptions:{zoomAnimation:!0,attributionControl:!1},projection:"EPSG:3857",center:{x:13,y:45,crs:"EPSG:4326"},zoom:5,onLayerLoading:function(){},onLayerLoad:function(){},onLayerError:function(){},resize:0,registerHooks:!0,hookRegister:b,style:{},interactive:!0,resolutions:b.getGoogleMercatorResolutions(0,23),onMouseOut:function(){}}),e.exports=w},"./MapStore2/web/client/components/map/leaflet/MeasurementSupport.jsx":function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rt?v.GeometryUtil.formattedNumber(C(e,r,n),o[n])+" "+a:v.GeometryUtil.formattedNumber(e,o[r])+" "+i};var A=v.GeometryUtil.readableDistance;v.GeometryUtil.readableDistance=function(e,t,r,n,o,i){if(!i)return A.apply(null,arguments);if("Bearing"===i.geomType)return i.bearing;var a=v.Util.extend({},j,o),s=i.uom.length,l=s.unit,c=s.label,u=v.GeometryUtil.formattedNumber(C(e,"m",l),a[l])+" "+c;return i.useTreshold&&(t&&(u=v.getMeasureWithTreshold(e,1e3,"m","km",a,"m","km")),"mi"===l&&(u=v.getMeasureWithTreshold(C(e,"m","yd"),1760,"yd","mi",a,"yd","mi"))),u};var E=v.GeometryUtil.readableArea;v.GeometryUtil.readableArea=function(e,t,r,n){if(!n)return E.apply(null,arguments);var o=n.uom.area,i=o.unit,a=o.label,s=v.Util.extend({},j,r),l=v.GeometryUtil.formattedNumber(C(e,"sqm",i),s[i])+" "+a;return n.useTreshold&&(t&&(l=v.getMeasureWithTreshold(e,1e6,"sqm","sqkm",s,"m²","km²")),"sqmi"===i&&(l=v.getMeasureWithTreshold(C(e,"sqm","sqyd"),3097600,"sqyd","sqmi",s,"yd²","mi²"))),l};var T=v.Draw.Polygon.prototype._getMeasurementString;v.Draw.Polygon.prototype._getMeasurementString=function(){if(!this.options.uom)return T.apply(this,arguments);var e=this._area,t="";if(!e&&!this.options.showLength)return null;if(this.options.showLength&&(t=v.Draw.Polyline.prototype._getMeasurementString.call(this)),e){var r={uom:this.options.uom,useTreshold:this.options.useTreshold};t+=this.options.showLength?"
":""+v.GeometryUtil.readableArea(e,this.options.metric,this.options.precision,r)}return t};var M=v.Draw.Polyline.prototype._getMeasurementString;v.Draw.Polyline.prototype._getMeasurementString=function(){if(!this.options.uom)return M.apply(this,arguments);var e,t=this._currentLatLng,r=this._markers[this._markers.length-1].getLatLng();e=v.GeometryUtil.isVersion07x()?r&&t&&t.distanceTo?this._measurementRunningTotal+t.distanceTo(r)*(this.options.factor||1):this._measurementRunningTotal||0:r&&t?this._measurementRunningTotal+this._map.distance(t,r)*(this.options.factor||1):this._measurementRunningTotal||0;var n={uom:this.options.uom,useTreshold:this.options.useTreshold,geomType:this.options.geomType,bearing:this.options.bearing?O(this.options.bearing,this.options.trueBearing):0};return v.GeometryUtil.readableDistance(e,this.options.metric,this.options.feet,this.options.nautic,this.options.precision,n)};var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(s,e);var t,r,n,o=p(s);function s(){var e;l(this,s);for(var t=arguments.length,r=new Array(t),n=0;n=2?setTimeout((function(){e.drawControl._markers=_(e.drawControl._markers,0,2),e.drawControl._poly._latlngs=_(e.drawControl._poly._latlngs,0,2),e.drawControl._poly._originalPoints=_(e.drawControl._poly._originalPoints,0,2),e.updateMeasurementResults(),e.drawControl._finishShape(),e.drawControl.disable()}),100):e.updateMeasurementResults()})),m(f(e),"addArcsToMap",(function(t){e.removeLastLayer();var r=t.map((function(e){return b({},e,{geometry:b({},e.geometry,{coordinates:L(e.geometry.coordinates)})})}));e.arcLayer=v.geoJson(r,{style:{color:"#ffcc33",opacity:1,weight:1,fillColor:"#ffffff",fillOpacity:.2,clickable:!1}}),e.props.map.addLayer(e.arcLayer),r&&r.length>0&&e.arcLayer.addData(r)})),m(f(e),"updateMeasurementResults",(function(){if(e.drawing&&e.drawControl){var t=0,r=0,n=0,o=e.drawControl._currentLatLng;if("LineString"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>1){var i=e.drawControl._markers.reduce((function(e,t){var r=t.getLatLng(),n=r.lng,o=r.lat;return[].concat(a(e),[[n,o]])}),[]);t=k(i,e.props.measurement.lengthFormula)}else if("Polygon"===e.props.measurement.geomType&&e.drawControl._poly){var s=[].concat(a(e.drawControl._poly.getLatLngs()),[o]);r=v.GeometryUtil.geodesicArea(s)}else"Bearing"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>0&&(n=e.calculateBearing());var l=b({},e.props.measurement,{point:null,len:t,area:r,bearing:n});e.props.changeMeasurementState(l)}})),m(f(e),"restartDrawing",(function(){e.props.map.off("click",e.restartDrawing,f(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable(),e.props.map.removeLayer(e.lastLayer),e.drawControl.enable(),e.drawing=!0})),m(f(e),"addDrawInteraction",(function(t){if(e.removeDrawInteraction(),e.props.map.on("draw:created",e.onDrawCreated,f(e)),e.props.map.on("draw:drawstart",e.onDrawStart,f(e)),e.props.map.on("draw:drawvertex",e.onDrawVertex,f(e)),e.props.map.on("mousemove",e.updateBearing,f(e)),e.props.updateOnMouseMove&&e.props.map.on("mousemove",e.updateMeasurementResults,f(e)),"Point"===t.measurement.geomType)e.drawControl=new v.Draw.Marker(e.props.map,{repeatMode:!1});else if("LineString"===t.measurement.geomType||"Bearing"===t.measurement.geomType){var r=e.uomLengthOptions(t);e.drawControl=new v.Draw.Polyline(e.props.map,i(i({shapeOptions:{color:"#ffcc33",weight:2},showLength:!0,useTreshold:t.useTreshold,uom:t.uom,geomType:t.measurement.geomType},r),{},{repeatMode:!1,icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),trueBearing:t.measurement.trueBearing}))}else if("Polygon"===t.measurement.geomType){var n=e.uomAreaOptions(t);e.drawControl=new v.Draw.Polygon(e.props.map,i(i({shapeOptions:{color:"#ffcc33",weight:2,fill:"rgba(255, 255, 255, 0.2)"},showArea:!0,allowIntersection:!1,showLength:!1,repeatMode:!1,useTreshold:t.useTreshold,uom:t.uom,geomType:t.measurement.geomType},n),{},{icon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new v.DivIcon({iconSize:new v.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"})}))}e.drawControl.enable()})),m(f(e),"removeDrawInteraction",(function(){null!==e.drawControl&&void 0!==e.drawControl&&(e.drawControl.disable(),e.drawControl=null,e.removeLastLayer(),e.removeArcLayer(),e.props.map.off("draw:created",e.onDrawCreated,f(e)),e.props.map.off("draw:drawstart",e.onDrawStart,f(e)),e.props.map.off("draw:drawvertex",e.onDrawVertex,f(e)),e.props.map.off("mousemove",e.updateBearing,f(e)),e.props.map.off("click",e.restartDrawing,f(e)),e.props.updateOnMouseMove&&e.props.map.off("mousemove",e.updateMeasurementResults,f(e)),e.props.map.doubleClickZoom&&e.props.map.doubleClickZoom.enable())})),m(f(e),"removeLastLayer",(function(){e.lastLayer&&e.props.map.removeLayer(e.lastLayer)})),m(f(e),"removeArcLayer",(function(){e.arcLayer&&e.props.map.removeLayer(e.arcLayer)})),m(f(e),"uomLengthOptions",(function(e){var t=e.uom.length.unit;return{metric:"m"===t||"km"===t,nautic:"nm"===t,feet:"ft"===t}})),m(f(e),"uomAreaOptions",(function(e){var t=e.uom.area.unit;return{metric:"sqm"===t||"sqkm"===t,nautic:"sqnm"===t,feet:"sqft"===t}})),m(f(e),"calculateBearing",(function(){var t,r=e.drawControl._currentLatLng,n=e.drawControl._markers,o=[n[0].getLatLng().lng,n[0].getLatLng().lat];return 1===n.length?t=[r.lng,r.lat]:2===n.length&&(t=[n[1].getLatLng().lng,n[1].getLatLng().lat]),o=S(o,"EPSG:4326",e.props.projection),t=S(t,"EPSG:4326",e.props.projection),x(o,t,e.props.projection)})),m(f(e),"updateBearing",(function(){if("Bearing"===e.props.measurement.geomType&&e.drawControl._markers&&e.drawControl._markers.length>0){var t=e.props.measurement&&e.props.measurement.trueBearing;e.drawControl.setOptions({bearing:e.calculateBearing(),trueBearing:t})}})),e}return t=s,(r=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){if((e&&e.uom&&e.uom.length&&e.uom.length.unit)!==(this.props&&this.props.uom&&this.props.uom.length&&this.props.uom.length.unit)&&this.drawControl){var t=this.uomLengthOptions(e);this.drawControl.setOptions(i(i({},t),{},{uom:e.uom}))}if((e&&e.uom&&e.uom.area&&e.uom.area.unit)!==(this.props&&this.props.uom&&this.props.uom.area&&this.props.uom.area.unit)&&this.drawControl){var r=this.uomAreaOptions(e);this.drawControl.setOptions(i(i({},r),{},{uom:e.uom}))}(e.measurement.geomType&&e.measurement.geomType!==this.props.measurement.geomType||e.measurement.geomType&&this.props.measurement.geomType&&(e.measurement.lineMeasureEnabled||e.measurement.areaMeasureEnabled||e.measurement.bearingMeasureEnabled)&&!this.props.enabled&&e.enabled)&&this.addDrawInteraction(e),e.measurement.geomType||this.removeDrawInteraction()}},{key:"render",value:function(){var e=this.props.messages||!!this.context.messages&&this.context.messages.drawLocal;return e&&(v.drawLocal=e),null}}])&&c(t.prototype,r),n&&c(t,n),s}(y.Component);m(R,"displayName","MeasurementSupport"),m(R,"propTypes",{map:g.object,metric:g.bool,feet:g.bool,nautic:g.bool,enabled:g.bool,useTreshold:g.bool,projection:g.string,measurement:g.object,changeMeasurementState:g.func,messages:g.object,uom:g.object,updateOnMouseMove:g.bool}),m(R,"contextTypes",{messages:g.object}),m(R,"defaultProps",{uom:{length:{unit:"m",label:"m"},area:{unit:"sqm",label:"m²"}},updateOnMouseMove:!1,metric:!0,nautic:!1,useTreshold:!1,feet:!1}),e.exports=R},"./MapStore2/web/client/components/map/leaflet/Overview.jsx":function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r1&&(this.overview=new f(h.layerGroup(t),e))}this.props.map&&this.overview&&this.overview.addTo(this.props.map)}},{key:"render",value:function(){return null}}])&&i(t.prototype,r),n&&i(t,n),c}(d.Component);u(b,"displayName","Overview"),u(b,"propTypes",{map:p.object,overviewOpt:p.object,layers:p.array}),u(b,"defaultProps",{id:"overview",overviewOpt:{},layers:[{type:"osm",options:{}}]}),e.exports=b},"./MapStore2/web/client/components/map/leaflet/ScaleBar.jsx":function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;rOpenStreetMap contributors',zoomOffset:e.zoomOffset||0,maxNativeZoom:e.maxNativeZoom||19,maxZoom:e.maxZoom||23})}))},"./MapStore2/web/client/components/map/leaflet/plugins/TMSLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/leaflet/Layers.js"),o=r.n(n),i=r("./MapStore2/web/client/libs/leaflet.js"),a=r.n(i);o.a.registerType("tms",(function(e){return a.a.tileLayer("".concat(e.tileMapUrl,"/{z}/{x}/{y}.").concat(e.extension),{hideErrors:e.hideErrors||!0,tms:!0})}))},"./MapStore2/web/client/components/map/leaflet/plugins/TileProviderLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/leaflet/Layers.js"),o=r.n(n),i=r("./MapStore2/web/client/libs/leaflet.js"),a=r.n(i),s=r("./MapStore2/web/client/utils/TileConfigProvider.js");function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.style&&e.style[0]||e.style;return v(t)},w=function(e,t){var r=_(t);e.setStyle(r),e.options.style=r,e.styleName=t.styleName},S=function e(t,r){t.eachLayer&&t.eachLayer((function(t){t.setOpacity&&t.setOpacity(r),e(t,r)}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=_(e),o=function(t,n){return"marker"===e.styleName?i.a.marker(n,r):i.a.circleMarker(n,r)},a=new i.a.GeoJSON(t,{pointToLayer:o,style:r});return a.setOpacity=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=g({},a.options.style||{}),r=t.fillOpacity,n=void 0===r?1:r,o=t.opacity,i=void 0===o?1:o,s=g(g({},t),{},{opacity:i*e,fillOpacity:n*e});a.setStyle(v(s)),S(a,e)},a.on("layeradd",(function(){w(a,e),a.setOpacity(Object(n.isNil)(a.opacity)?e.opacity:a.opacity)})),a};u.a.registerType("wfs",{create:function(e){var t=x(e);return b(t,e),t.opacity=Object(n.isNil)(e.opacity)?1:e.opacity,t},update:function(e,t,r){if(t.opacity!==r.opacity&&(e.opacity=t.opacity),Object(f.needsReload)(r,t)&&b(e,t),Object(n.isEqual)(t.style,r.style)||w(e,t),t.styleName!==r.styleName){var o=e.toGeoJSON().features;return x(t,o)}return null},render:function(){return null}})},"./MapStore2/web/client/components/map/leaflet/plugins/WMSLayer.js":function(e,t,r){function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r("./node_modules/react/index.js"),i=r("./MapStore2/web/client/components/I18N/Message.jsx").default,a=r("./MapStore2/web/client/utils/leaflet/Layers.js"),s=r("./MapStore2/web/client/utils/VendorParamsUtils.js").optionsToVendorParams,l=r("./MapStore2/web/client/utils/leaflet/WMSUtils.js"),c=r("./MapStore2/web/client/libs/leaflet.js"),u=r("./node_modules/object-assign/index.js"),p=r("./node_modules/lodash/lodash.js"),d=p.isArray,f=p.isNil,h=r("./MapStore2/web/client/utils/SecurityUtils.js"),m=r("./MapStore2/web/client/utils/ElevationUtils.js"),g=r("./MapStore2/web/client/utils/LayersUtils.js").creditsToAttribution,y=r("./MapStore2/web/client/utils/VectorTileUtils.js").isVectorFormat;r("./node_modules/leaflet.nontiledlayer/dist/NonTiledLayer-src.js"),c.NonTiledLayer.WMSCustom=c.NonTiledLayer.WMS.extend({initialize:function(e,t){this._wmsUrl=e;var r=c.extend({},this.defaultWmsParams);for(var n in t)this.options.hasOwnProperty(n)||"CRS"===n.toUpperCase()||"maxNativeZoom"===n||(r[n]=t[n]);this.wmsParams=r,c.setOptions(this,t)},removeParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return t.forEach((function(t){return delete e.wmsParams[t]})),r||this.redraw(),this}}),c.nonTiledLayer.wmsCustom=function(e,t){return new c.NonTiledLayer.WMSCustom(e,t)},c.TileLayer.MultipleUrlWMS=c.TileLayer.WMS.extend({initialize:function(e,t){this._url=e[0],this._urls=e,this._urlsIndex=0;var r=c.extend({},this.defaultWmsParams),n=t.tileSize||this.options.tileSize;for(var o in t.detectRetina&&c.Browser.retina?r.width=r.height=2*n:r.width=r.height=n,t)this.options.hasOwnProperty(o)||"CRS"===o.toUpperCase()||"maxNativeZoom"===o||(r[o]=t[o]);this.wmsParams=r,c.setOptions(this,t)},getTileUrl:function(e){var t=this._map,r=this.options.tileSize,n=e.multiplyBy(r),o=n.add([r,r]),i=this._crs.project(t.unproject(n,e.z)),a=this._crs.project(t.unproject(o,e.z)),s=this._wmsVersion>=1.3&&this._crs===c.CRS.EPSG4326?[a.y,i.x,i.y,a.x].join(","):[i.x,a.y,a.x,i.y].join(",");this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var l=c.Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(e)});return l+c.Util.getParamString(this.wmsParams,l,!0)+"&BBOX="+s},removeParams:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return t.forEach((function(t){return delete e.wmsParams[t]})),r||this.redraw(),this}}),c.tileLayer.multipleUrlWMS=function(e,t){return new c.TileLayer.MultipleUrlWMS(e,t)},c.TileLayer.ElevationWMS=c.TileLayer.MultipleUrlWMS.extend({initialize:function(e,t,r){this._tiles={},this._nodata=r,c.TileLayer.MultipleUrlWMS.prototype.initialize.apply(this,arguments)},_addTile:function(e){var t=this.getTileUrl(e);m.loadTile(t,e,this._tileCoordsToKey(e))},getElevation:function(e,t){try{var r=this._getTileFromCoords(e),n=m.getElevation(this._tileCoordsToKey(r),this._getTileRelativePixel(r,t),this.getTileSize().x,this._nodata);return n.available?n.value:o.createElement(i,{msgId:n.message})}catch(e){return o.createElement(i,{msgId:"elevationLoadingError"})}},_getTileFromCoords:function(e){var t=this._map.project(e).divideBy(256).floor();return u(t,{z:this._tileZoom})},_getTileRelativePixel:function(e,t){var r=Math.floor(t.x-this._getTilePos(e).x-this._map._getMapPanePos().x),n=Math.min(this.getTileSize().x-1,Math.floor(t.y-this._getTilePos(e).y-this._map._getMapPanePos().y));return new c.Point(r,n)},_removeTile:function(){},_abortLoading:function(){}}),c.tileLayer.elevationWMS=function(e,t,r){return new c.TileLayer.ElevationWMS(e,t,r)};var b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,r){return f(e[r])?t:u(t,n({},r,e[r]))}),{})};function v(e){var t=void 0!==e.opacity?e.opacity:1,r=s(e),n=u({},e.baseParams,{attribution:e.credits&&g(e.credits),layers:e.name,styles:e.style||"",format:(y(e.format)?"image/png":e.format)||"image/png",transparent:void 0===e.transparent||e.transparent,tiled:void 0===e.tiled||e.tiled,opacity:t,zIndex:e.zIndex,version:e.version||"1.3.0",tileSize:e.tileSize||256,maxZoom:e.maxZoom||23,maxNativeZoom:e.maxNativeZoom||18},u(e._v_?{_v_:e._v_}:{},r||{}));return h.addAuthenticationToSLD(n,e)}function _(e){return e.map((function(e){return e.split("?")[0]}))}a.registerType("wms",{create:function(e){var t=_(d(e.url)?e.url:[e.url]),r=b(v(e)||{});return t.forEach((function(t){return h.addAuthenticationParameter(t,r,e.securityToken)})),e.useForElevation?c.tileLayer.elevationWMS(t,r,e.nodata||-9999):e.singleTile?c.nonTiledLayer.wmsCustom(t[0],r):c.tileLayer.multipleUrlWMS(t,r)},update:function(e,t,r){if(r.singleTile!==t.singleTile||r.tileSize!==t.tileSize||r.securityToken!==t.securityToken&&t.visibility){var o=_(d(t.url)?t.url:[t.url]),i=v(t)||{};return o.forEach((function(e){return h.addAuthenticationParameter(e,i,t.securityToken)})),t.singleTile?c.nonTiledLayer.wmsCustom(o[0],i):c.tileLayer.multipleUrlWMS(o,i)}var a=u({},l.filterWMSParamOptions(v(r)),h.addAuthenticationToSLD(r.params||{},r)),s=u({},l.filterWMSParamOptions(v(t)),h.addAuthenticationToSLD(t.params||{},t)),p=Object.keys(s).filter((function(e){return s[e]!==a[e]})),f=Object.keys(a).filter((function(e){return a[e]!==s[e]})),m={};return f.length>0&&e.removeParams(f,p.length>0),p.length>0&&(m=p.reduce((function(e,t){return u({},e,n({},t,s[t]))}),m),e.setParams(b(u(m,m.params,h.addAuthenticationToSLD(t.params||{},t))))),null}})},"./MapStore2/web/client/components/map/leaflet/plugins/WMTSLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/leaflet/Layers.js"),o=r.n(n),i=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=r.n(i),s=r("./MapStore2/web/client/libs/leaflet.js"),l=r.n(s),c=r("./node_modules/object-assign/index.js"),u=r.n(c),p=r("./MapStore2/web/client/utils/SecurityUtils.js"),d=r.n(p),f=r("./MapStore2/web/client/utils/WMTSUtils.js"),h=r.n(f),m=r("./MapStore2/web/client/utils/leaflet/WMTS.js"),g=r.n(m),y=r("./node_modules/lodash/lodash.js"),b=r("./MapStore2/web/client/utils/VectorTileUtils.js");l.a.tileLayer.wmts=function(e,t,r){return new g.a(e,t,r)};var v=function(e){var t=function(e){return e.map((function(e){return e.split("?")[0]}))}(Object(y.isArray)(e.url)?e.url:[e.url]),r=function(e){var t=a.a.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),r=h.a.getTileMatrixSet(e.tileMatrixSet,t,e.allowedSRS,e.matrixIds);return u()({requestEncoding:e.requestEncoding,layer:e.name,style:e.style||"",format:(Object(b.isVectorFormat)(e.format)?"image/png":e.format)||"image/png",tileMatrixSet:r,version:e.version||"1.0.0",tileSize:e.tileSize||256,CRS:a.a.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),maxZoom:e.maxZoom||23,maxNativeZoom:e.maxNativeZoom||18},e.params||{})}(e)||{};t.forEach((function(t){return d.a.addAuthenticationParameter(t,r,e.securityToken)}));var n=a.a.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),o=h.a.getTileMatrix(e,n),i=o.tileMatrixSet,s=o.matrixIds;return l.a.tileLayer.wmts(t,r,{tileMatrixPrefix:e.tileMatrixPrefix||r.tileMatrixSet+":"||n+":",originY:e.originY||20037508.3428,originX:e.originX||-20037508.3428,ignoreErrors:e.ignoreErrors||!1,matrixIds:s,matrixSet:i})};o.a.registerType("wmts",{create:v,update:function(e,t,r){return r.securityToken!==t.securityToken||r.format!==t.format?v(t):null}})},"./MapStore2/web/client/components/map/leaflet/plugins/index.js":function(e,t,r){e.exports={BingLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/BingLayer.js"),Commons:r("./MapStore2/web/client/components/map/leaflet/plugins/Commons.js"),GraticuleLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/GraticuleLayer.js"),GoogleLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/GoogleLayer.js"),MapQuest:r("./MapStore2/web/client/components/map/leaflet/plugins/MapQuest.js"),OSMLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/OSMLayer.js"),TMSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/TMSLayer.js"),TileProviderLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/TileProviderLayer.js"),WFSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WFSLayer.jsx").default,WMSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WMSLayer.js"),WMTSLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/WMTSLayer.js"),VectorLayer:r("./MapStore2/web/client/components/map/leaflet/plugins/VectorLayer.jsx")}},"./MapStore2/web/client/components/map/openlayers/Feature.jsx":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return j}));var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./node_modules/axios/index.js"),l=r.n(s),c=r("./node_modules/lodash/lodash.js"),u=r("./node_modules/lodash/find.js"),p=r.n(u),d=r("./node_modules/lodash/castArray.js"),f=r.n(d),h=r("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),m=r("./MapStore2/web/client/utils/openlayers/DrawSupportUtils.js"),g=r("./MapStore2/web/client/utils/VectorStyleUtils.js"),y=r("./node_modules/ol/format/GeoJSON.js");function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t0&&(t&&!t.hideErrors||!t)?(e.props.onLayerLoad(t.id,{error:!0}),e.props.onLayerError(t.id,r.length,n.length)):e.props.onLayerLoad(t.id)}}),e.tileLoadEndStream$=r,e.tileStopStream$=n;var o=new f.a.Subject,i=new f.a.Subject;if(e.layer.getSource().on("imageloadstart",(function(){0===e.imagestoload?(e.props.onLayerLoading(t.id),e.imagestoload++):e.imagestoload++})),e.layer.getSource().on("imageloadend",(function(){e.imagestoload--,o.next({type:"imageloadend"}),0===e.imagestoload&&i.next()})),e.layer.getSource().on("imageloaderror",(function(t){e.imagestoload--,o.next({type:"imageloaderror",event:t}),0===e.imagestoload&&i.next()})),o.bufferWhen((function(){return i})).subscribe({next:function(r){var n=r.filter((function(e){return"imageloaderror"===e.type}));n.length>0?(e.props.onLayerLoad(t.id,{error:!0}),(t&&!t.hideErrors||!t)&&e.props.onLayerError(t.id,r.length,n.length)):e.props.onLayerLoad(t.id)}}),e.imageLoadEndStream$=o,e.imageStopStream$=i,t.refresh){var a=0;e.refreshTimer=setInterval((function(){e.layer.getSource().updateParams(p()({},t.params,{_refreshCounter:a++}))}),t.refresh)}}})),A(O(e),"isValid",(function(){var t=s.default.isValid(e.props.type,e.layer);return e.valid=t,t})),e}return t=i,(r=[{key:"componentDidMount",value:function(){this.valid=!0,this.tilestoload=0,this.imagestoload=0,this.createLayer(this.props.type,this.props.options,this.props.position,this.props.securityToken,this.props.env)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.options&&!1!==e.options.visibility;this.setLayerVisibility(t);var r=e.options&&void 0!==e.options.opacity?e.options.opacity:1;this.setLayerOpacity(r),e.position!==this.props.position&&this.layer&&this.layer.setZIndex&&this.layer.setZIndex(e.position),this.props.options&&this.updateLayer(e,this.props)}},{key:"componentWillUnmount",value:function(){this.layer&&this.props.map&&(this.tileLoadEndStream$&&(this.tileLoadEndStream$.complete(),this.tileStopStream$.complete(),this.imageLoadEndStream$.complete(),this.imageStopStream$.complete()),this.layer.detached?this.layer.remove():this.props.map.removeLayer(this.layer)),this.refreshTimer&&clearInterval(this.refreshTimer),s.default.removeLayer(this.props.type,this.props.options,this.props.map,this.props.mapId,this.layer)}},{key:"render",value:function(){var e=this;if(this.props.children){var t=this.layer,r=t?a.a.Children.map(this.props.children,(function(r){return r?a.a.cloneElement(r,{container:t,styleName:e.props.options&&e.props.options.styleName}):null})):null;return a.a.createElement(a.a.Fragment,null,r)}return s.default.renderLayer(this.props.type,this.props.options,this.props.map,this.props.mapId,this.layer)}}])&&k(t.prototype,r),n&&k(t,n),i}(a.a.Component);A(E,"propTypes",{onWarning:o.a.func,maxExtent:o.a.array,map:o.a.object,mapId:o.a.string,srs:o.a.string,type:o.a.string,options:o.a.object,onLayerLoading:o.a.func,onLayerError:o.a.func,onCreationError:o.a.func,onLayerLoad:o.a.func,position:o.a.number,observables:o.a.array,securityToken:o.a.string,env:o.a.array}),A(E,"defaultProps",{observables:[],onLayerLoading:function(){},onLayerLoad:function(){},onLayerError:function(){},onCreationError:function(){},onWarning:function(){},srs:"EPSG:3857"})},"./MapStore2/web/client/components/map/openlayers/Locate.jsx":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/prop-types/index.js"),o=r.n(n),i=r("./node_modules/react/index.js"),a=r.n(i),s=(r("./MapStore2/web/client/utils/openlayers/olPopUp.css"),r("./node_modules/object-assign/index.js")),l=r.n(s),c=r("./node_modules/ol/util.js"),u=r("./node_modules/ol/Object.js"),p=r("./node_modules/ol/Overlay.js"),d=r("./node_modules/ol/Feature.js"),f=r("./node_modules/ol/source/Vector.js"),h=r("./node_modules/ol/layer/Vector.js"),m=r("./node_modules/ol/Geolocation.js"),g=r("./node_modules/ol/geom/Point.js"),y=r("./node_modules/ol/geom/Circle.js"),b=r("./node_modules/ol/geom/GeometryCollection.js"),v=r("./node_modules/ol/style/Style.js"),_=r("./node_modules/ol/style/Fill.js"),w=r("./node_modules/ol/style/Stroke.js"),S=r("./node_modules/ol/style/Circle.js");function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L=function(){var e=document.createElement("div");e.setAttribute("class","ol-popup");var t=document.createElement("a");t.setAttribute("class","ol-popup-close-btn"),t.setAttribute("href","#close"),t.innerHTML="x";var r=document.createElement("div");r.setAttribute("class","ol-popup-cnt-wrapper");var n=document.createElement("div");n.setAttribute("class","ol-popup-cnt"),r.appendChild(n);var o=document.createElement("div");o.setAttribute("class","ol-popup-tip-wrapper");var i=document.createElement("div");return i.setAttribute("class","ol-popup-tip"),o.appendChild(i),e.appendChild(t),e.appendChild(r),e.appendChild(o),e}(),P=function(e,t){u.a.call(this,{state:"DISABLED"}),this.map=e;var r={drawCircle:!0,follow:!0,stopFollowingOnDrag:!1,remainActive:!0,locateStyle:this._getDefaultStyles(),metric:!0,onLocationError:this.onLocationError,keepCurrentZoomLevel:!1,showPopup:!0,strings:{metersUnit:"meters",feetUnit:"feet",popup:"You are within {distance} {unit} from this point"},locateOptions:{maximumAge:2e3,enableHighAccuracy:!1,timeout:1e4,maxZoom:18}};this.options=l()({},r,t||{}),this.geolocate=new m.a({projection:this.map.getView().getProjection(),trackingOptions:this.options.locateOptions}),this.updateHandler=this._updatePosFt.bind(this),this.geolocate.on("change:position",this.updateHandler),this.popup=L,this.popup.hidden=!0,this.popCnt=L.getElementsByClassName("ol-popup-cnt")[0],this.overlay=new p.a({element:this.popup,positioning:"top-center",stopEvent:!1}),this.layer=new h.a({source:new f.a({useSpatialIndex:!1})}),this.posFt=new d.a({geometry:this.geolocate.getAccuracyGeometry(),name:"position",id:"_locate-pos"}),this.posFt.setStyle(this.options.locateStyle),this.layer.getSource().addFeature(this.posFt),this.clickHandler=this.mapClick.bind(this),this.stopHandler=this.stopFollow.bind(this),this.errorHandler=this.options.onLocationError.bind(this)};Object(c.d)(P,u.a),P.prototype.start=function(){this.geolocate.on("error",this.errorHandler),this.follow=this.options.follow,this.geolocate.setTracking(!0),this.layer.setMap(this.map),this.map.addOverlay(this.overlay),this.options.showPopup&&(this.map.on("click",this.clickHandler),this.map.on("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p?this._updatePosFt():this.set("state","LOCATING")},P.prototype.startFollow=function(){this.follow=!0,this.options.stopFollowingOnDrag&&this.map.on("pointerdrag",this.stopHandler),this.p&&this._updatePosFt()},P.prototype.stop=function(){this.geolocate.un("error",this.errorHandler),this.geolocate.setTracking(!1),this.popup.hide=!0,this.map.removeOverlay(this.overlay),this.layer.setMap(null),this.options.showPopup&&(this.map.un("click",this.clickHandler),this.map.un("touch",this.clickHandler)),this.options.stopFollowingOnDrag&&this.map.un("pointerdrag",this.stopHandler),this.set("state","DISABLED")},P.prototype.stopFollow=function(){this.follow=!1,this.map.un("pointerdrag",this.stopHandler),this.set("state","ENABLED")},P.prototype._updatePosFt=function(){var e=this.get("state"),t=this.follow?"FOLLOWING":"ENABLED";t!==e&&this.set("state",t);var r=this.geolocate.getPosition();this.p=r;var n=new g.a([parseFloat(r[0]),parseFloat(r[1])]);if(this.options.drawCircle){var o=new y.a([parseFloat(r[0]),parseFloat(r[1])],this.geolocate.getAccuracy());this.posFt.setGeometry(new b.default([n,o]))}else this.posFt.setGeometry(new b.default([n]));this.popup.hidden||this._updatePopUpCnt(),this.follow&&this.updateView(n),this.options.remainActive||this.geolocate.setTracking(!1)},P.prototype.updateView=function(e){this.follow&&(this.map.getView().setCenter(e.getCoordinates()),this.options.keepCurrentZoomLevel||this.map.getView().setZoom(this.options.locateOptions.maxZoom))},P.prototype._updatePopUpCnt=function(){var e,t;this.options.metric?(e=this.geolocate.getAccuracy(),t=this.options.strings.metersUnit):(e=Math.round(3.2808399*this.geolocate.getAccuracy()),t=this.options.strings.feetUnit);var r=this.options.strings.popup.replace("{distance}",e);this.popCnt.innerHTML=r.replace("{unit}",t),this.overlay.setPosition(this.posFt.getGeometry().getGeometries()[0].getCoordinates()),this.popup.hidden=!1},P.prototype.onLocationError=function(e){alert(e.message)},P.prototype.mapClick=function(e){var t=this.map.forEachFeatureAtPixel(e.pixel,(function(e){return e}));t&&"_locate-pos"===t.get("id")&&this.popup.hidden?this._updatePopUpCnt():this.popup.hidden||(L.hidden=!0)},P.prototype._getDefaultStyles=function(){return new v.default({image:new S.default({radius:6,fill:new _.default({color:"rgba(42,147,238,0.7)"}),stroke:new w.default({color:"rgba(19,106,236,1)",width:2})}),fill:new _.default({color:"rgba(19,106,236,0.15)"}),stroke:new w.default({color:"rgba(19,106,236,1)",width:2})})},P.prototype.setStrings=function(e){this.options.strings=l()({},this.options.strings,e)},P.prototype.setTrackingOptions=function(e){this.geolocate&&(this.geolocate.setTrackingOptions(e),this.options.locateOptions=function(e){for(var t=1;t180&&(i-=360),e.props.onMouseMove({y:o[1]||0,x:i||0,z:e.map.get("elevationLayer")&&e.map.get("elevationLayer").get("getElevation")(n,t.pixel)||void 0,crs:"EPSG:4326",pixel:{x:t.pixel[0],y:t.pixel[1]},latlng:{lat:o[1],lng:i,z:r&&r(n,t.pixel)||void 0},lat:o[1],lng:i,rawPos:t.coordinate.slice()})}})),U(F(e),"updateMapInfoState",(function(){var t=e.map.getView(),r=t.getCenter(),n=t.getProjection().getExtent(),o=t.getProjection().getCode();if(-1!==["EPSG:3857","EPSG:900913","EPSG:4326"].indexOf(o)||r&&r[0]>=n[0]&&r[0]<=n[2]&&r[1]>=n[1]&&r[1]<=n[3]){var i=e.normalizeCenter(t.getCenter()),a=t.calculateExtent(e.map.getSize()),s={width:e.map.getSize()[0],height:e.map.getSize()[1]};e.props.onMapViewChanges({x:i[0]||0,y:i[1]||0,crs:"EPSG:4326"},t.getZoom(),{bounds:{minx:a[0],miny:a[1],maxx:a[2],maxy:a[3]},crs:o,rotation:t.getRotation()},s,e.props.id,e.props.projection)}})),U(F(e),"haveResolutionsChanged",(function(t){var r=e.props.mapOptions&&e.props.mapOptions.view?e.props.mapOptions.view.resolutions:void 0,n=t.mapOptions&&t.mapOptions.view?t.mapOptions.view.resolutions:void 0;return!Object(A.isEqual)(r,n)})),U(F(e),"createView",(function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=o.restrictedExtent&&o.crs&&x.a.reprojectBbox(o.restrictedExtent,o.crs,x.a.normalizeSRS(r)),a=!n||n&&!n.view?w()({},n,{extent:i}):w()({},n),s=w()({},{projection:x.a.normalizeSRS(r),center:[e.x,e.y],zoom:t,minZoom:o.minZoom},a||{});return new l.a(s)})),U(F(e),"_updateMapPositionFromNewProps",(function(t){var r=e.map.getView(),n=e.props.center;if(!(t.center.y===n.y&&t.center.x===n.x)){var o=x.a.reproject({x:t.center.x,y:t.center.y},"EPSG:4326",t.projection,!0);r.setCenter([o.x,o.y])}Math.round(t.zoom)!==e.props.zoom&&r.setZoom(Math.round(t.zoom)),(t.bbox&&void 0!==t.bbox.rotation||e.bbox&&void 0!==e.bbox.rotation&&t.bbox.rotation!==e.props.bbox.rotation)&&r.setRotation(t.bbox.rotation)})),U(F(e),"normalizeCenter",(function(t){var r=x.a.reproject({x:t[0],y:t[1]},e.props.projection,"EPSG:4326",!0);return[r.x,r.y]})),U(F(e),"setMousePointer",(function(t){e.map&&(e.map.getViewport().style.cursor=t||"auto")})),U(F(e),"registerHooks",(function(){e.props.hookRegister.registerHook(P.a.RESOLUTIONS_HOOK,(function(){return e.getResolutions()})),e.props.hookRegister.registerHook(P.a.RESOLUTION_HOOK,(function(){return e.map.getView().getResolution()})),e.props.hookRegister.registerHook(P.a.COMPUTE_BBOX_HOOK,(function(t,r){var n=x.a.reproject([t.x,t.y],"EPSG:4326",e.props.projection),o=e.createView(n,r,e.props.projection,e.props.mapOptions&&e.props.mapOptions.view,e.props.limits),i=e.map.getSize(),a=o.calculateExtent(i);return{bounds:{minx:a[0],miny:a[1],maxx:a[2],maxy:a[3]},crs:e.props.projection,rotation:e.map.getView().getRotation()}})),e.props.hookRegister.registerHook(P.a.GET_PIXEL_FROM_COORDINATES_HOOK,(function(t){return e.map.getPixelFromCoordinate(t)})),e.props.hookRegister.registerHook(P.a.GET_COORDINATES_FROM_PIXEL_HOOK,(function(t){return e.map.getCoordinateFromPixel(t)})),e.props.hookRegister.registerHook(P.a.ZOOM_TO_EXTENT_HOOK,(function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.padding,o=r.crs,i=r.maxZoom,a=r.duration,s=x.a.reprojectBbox(t,o,e.props.projection);s&&s[0]===s[2]&&s[1]===s[3]&&"EPSG:4326"===o&&Object(A.isArray)(t)&&-180===t[0]&&-90===t[1]&&(s=e.map.getView().getProjection().getExtent());var l=i;s&&s[0]===s[2]&&s[1]===s[3]&&Object(A.isNil)(l)&&(l=21),e.map.getView().fit(s,{size:e.map.getSize(),padding:n&&[n.top||0,n.right||0,n.bottom||0,n.left||0],maxZoom:l,duration:a})}))})),e}return t=y,(r=[{key:"componentDidMount",value:function(){var e=this;this.props.projectionDefs.forEach((function(e){var t=h.a.defs(e.code);O(e.code,e.extent,e.worldExtent,e.axisOrientation||t.axis||"enu",t.units||"m")}));var t=x.a.reproject([this.props.center.x,this.props.center.y],"EPSG:4326",this.props.projection);Object(m.a)(h.a);var r=w()(this.props.interactive?{}:{doubleClickZoom:!1,dragPan:!1,altShiftDragRotate:!1,keyboard:!1,mouseWheelZoom:!1,shiftDragZoom:!1,pinchRotate:!1,pinchZoom:!1},this.props.mapOptions.interactions),l=Object(n.a)(w()({dragPan:!1,mouseWheelZoom:!1},r,{}));void 0!==r&&void 0!==r.dragPan||(this.dragPanInteraction=new o.a({kinetic:!1}),l.extend([this.dragPanInteraction])),void 0!==r&&void 0!==r.mouseWheelZoom||(this.mouseWheelInteraction=new i.a({duration:0}),l.extend([this.mouseWheelInteraction]));var u=Object(a.a)(w()({zoom:this.props.zoomControl,attributionOptions:w()({collapsible:!1},this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container?{target:this.getDocument().querySelector(this.props.mapOptions.attribution.container)}:{})},this.props.mapOptions.controls)),p=new s.default({layers:[],controls:u,interactions:l,maxTilesLoading:1/0,target:this.getDocument().getElementById(this.props.id)||"".concat(this.props.id),view:this.createView(t,Math.round(this.props.zoom),this.props.projection,this.props.mapOptions&&this.props.mapOptions.view,this.props.limits)});this.map=p,this.map.disabledListeners={},this.map.disableEventListener=function(t){e.map.disabledListeners[t]=!0},this.map.enableEventListener=function(t){delete e.map.disabledListeners[t]},this.map.getViewport().addEventListener("mouseout",(function(){setTimeout((function(){return e.props.onMouseOut()}),150)})),p.on("moveend",this.updateMapInfoState),p.on("singleclick",(function(t){if(e.props.onClick&&!e.map.disabledListeners.singleclick){var r=e.map.getView(),n=t.coordinate.slice(),o=r.getProjection().getExtent();if("EPSG:4326"===e.props.projection&&(n[0]=x.a.normalizeLng(n[0])),"EPSG:900913"!==e.props.projection&&"EPSG:3857"!==e.props.projection||(n=Object(c.toLonLat)(n,e.props.projection),o=x.a.reprojectBbox(o,e.props.projection,"EPSG:4326")),n[0]>=o[0]&&n[0]<=o[2]&&n[1]>=o[1]&&n[1]<=o[3]){var i,a;i="EPSG:900913"!==e.props.projection&&"EPSG:3857"!==e.props.projection?x.a.reproject(n,e.props.projection,"EPSG:4326"):{x:n[0],y:n[1]},e.markerPresent=!1,p.forEachFeatureAtPixel(t.pixel,(function(t,r){if(r&&r.get("handleClickOnLayer")){var n=t.getGeometry();if(!e.markerPresent&&"Point"===n.getType()){e.markerPresent=!0,a=r.get("msId");var o=Object(c.toLonLat)(n.getFirstCoordinate(),e.props.projection);i={x:o[0],y:o[1]}}}}));var s=x.a.normalizeLng(i.x),l=e.map.get("elevationLayer")&&e.map.get("elevationLayer").get("getElevation");e.props.onClick({pixel:{x:t.pixel[0],y:t.pixel[1]},latlng:{lat:i.y,lng:s,z:l&&l(n,t.pixel)||void 0},rawPos:t.coordinate.slice(),modifiers:{alt:t.originalEvent.altKey,ctrl:t.originalEvent.ctrlKey,shift:t.originalEvent.shiftKey}},a)}}}));var d=Object(A.throttle)(this.mouseMoveEvent,100);p.on("pointermove",d),this.updateMapInfoState(),this.setMousePointer(this.props.mousePointer),this.forceUpdate(),this.props.onResolutionsChange(this.getResolutions()),this.props.registerHooks&&this.registerHooks()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;if(e.mousePointer!==this.props.mousePointer&&this.setMousePointer(e.mousePointer),e.zoomControl!==this.props.zoomControl&&(e.zoomControl?this.map.addControl(new u.a):this.map.removeControl(this.map.getControls().getArray().filter((function(e){return e instanceof u.a}))[0])),this.map&&(this.props.mapOptions&&this.props.mapOptions.interactions)!==(e.mapOptions&&e.mapOptions.interactions)){var r=e.mapOptions.interactions||{},n=this.map.getInteractions().getArray();Object.keys(r).forEach((function(e){var o=j.a[e]||{},i=o.Instance,a=o.options,s=Object(A.find)(n,(function(t){return j.a[e]&&t instanceof i}));s?s.setActive(r[e]):r[e]&&i&&t.map.addInteraction(new i(a))}))}if(this.map&&this.props.id!==e.mapStateSource&&this._updateMapPositionFromNewProps(e),this.map&&e.resize!==this.props.resize&&setTimeout((function(){t.map.updateSize()}),0),this.map&&(this.props.projection!==e.projection||this.haveResolutionsChanged(e))||this.props.limits!==e.limits){if(this.props.projection!==e.projection||this.props.limits!==e.limits){var o=e.projection,i=x.a.reproject([e.center.x,e.center.y],"EPSG:4326",o);this.map.setView(this.createView(i,e.zoom,e.projection,e.mapOptions&&e.mapOptions.view,e.limits)),this.props.onResolutionsChange(this.getResolutions())}this.map.getLayers().forEach((function(e){var t=e.getSource();t.getTileLoadFunction&&t.setTileLoadFunction(t.getTileLoadFunction())})),this.map.render()}}},{key:"componentWillUnmount",value:function(){var e=this.props.mapOptions.attribution&&this.props.mapOptions.attribution.container&&this.getDocument().querySelector(this.props.mapOptions.attribution.container);if(e&&e.querySelector(".ol-attribution"))try{e.removeChild(e.querySelector(".ol-attribution"))}catch(e){}this.map&&this.map.setTarget(null)}},{key:"render",value:function(){var e=this,t=this.map,r=t?v.a.Children.map(this.props.children,(function(r){return r?v.a.cloneElement(r,{map:t,mapId:e.props.id,onLayerLoading:e.props.onLayerLoading,onLayerError:e.props.onLayerError,onLayerLoad:e.props.onLayerLoad,projection:e.props.projection,onCreationError:e.props.onCreationError}):null})):null;return v.a.createElement("div",{id:this.props.id,style:this.props.style},r)}}])&&M(t.prototype,r),f&&M(t,f),y}(v.a.Component);U(z,"propTypes",{id:y.a.string,document:y.a.object,style:y.a.object,center:k.default.PropTypes.center,zoom:y.a.number.isRequired,mapStateSource:k.default.PropTypes.mapStateSource,projection:y.a.string,projectionDefs:y.a.array,onMapViewChanges:y.a.func,onResolutionsChange:y.a.func,onClick:y.a.func,mapOptions:y.a.object,zoomControl:y.a.bool,mousePointer:y.a.string,onMouseMove:y.a.func,onLayerLoading:y.a.func,onLayerLoad:y.a.func,onLayerError:y.a.func,resize:y.a.number,measurement:y.a.object,changeMeasurementState:y.a.func,registerHooks:y.a.bool,hookRegister:y.a.object,interactive:y.a.bool,onCreationError:y.a.func,bbox:y.a.object,wpsBounds:y.a.object,onWarning:y.a.func,maxExtent:y.a.array,limits:y.a.object,onMouseOut:y.a.func}),U(z,"defaultProps",{id:"map",onMapViewChanges:function(){},onResolutionsChange:function(){},onCreationError:function(){},onClick:null,onMouseMove:function(){},mapOptions:{},projection:"EPSG:3857",projectionDefs:[],onLayerLoading:function(){},onLayerLoad:function(){},onLayerError:function(){},resize:0,registerHooks:!0,hookRegister:P.a,interactive:!0,onMouseOut:function(){},center:{x:13,y:45,crs:"EPSG:4326"},zoom:5});t.default=z},"./MapStore2/web/client/components/map/openlayers/MeasurementSupport.jsx":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return B}));var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./node_modules/prop-types/index.js"),a=r.n(i),s=r("./node_modules/lodash/lodash.js"),l=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),c=r("./MapStore2/web/client/utils/MeasureUtils.js"),u=r("./MapStore2/web/client/utils/ImmutableUtils.js"),p=r("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),d=r("./MapStore2/web/client/utils/LocaleUtils.js"),f=r("./MapStore2/web/client/utils/openlayers/DrawUtils.js"),h=r("./node_modules/ol/geom/Polygon.js"),m=r("./node_modules/ol/geom/LineString.js"),g=r("./node_modules/ol/Overlay.js"),y=r("./node_modules/ol/source/Vector.js"),b=r("./node_modules/ol/layer/Vector.js"),v=r("./node_modules/ol/Feature.js"),_=r("./node_modules/ol/style/Style.js"),w=r("./node_modules/ol/style/Fill.js"),S=r("./node_modules/ol/style/Stroke.js"),x=r("./node_modules/ol/style/Circle.js"),k=r("./node_modules/ol/interaction/Draw.js"),L=r("./node_modules/ol/format/GeoJSON.js"),P=r("./node_modules/ol/Observable.js"),C=r("./node_modules/ol/sphere.js");function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function A(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)return Object(l.calculateAzimuth)(t[0],t[1],q(r.map));var n=e.reprojectedCoordinatesIn4326(t);return Object(l.calculateDistance)(n,r.measurement.lengthFormula)})),G(U(e),"getArea",(function(t){return e.calculateGeodesicArea(t.getLinearRing(0).getCoordinates())})),G(U(e),"validateCoords",(function(e){return e.filter((function(e){return!isNaN(parseFloat(e[0]))&&!isNaN(parseFloat(e[1]))}))})),G(U(e),"updateFeatures",(function(t){var r=e.source.getFeatures();e.removeMeasureTooltips(),e.removeSegmentLengthOverlays(),e.source.clear(),e.textLabels=[],e.segmentLengths=[];var n=t.measurement.features.map((function(n,o){if(Object(s.get)(n,"properties.disabled"))return[n,r&&r[o]&&r[o].getGeometry()];var i=n.geometry.type,a=Object(s.get)(n,"properties.values",[]),u="bearing"===(a[0]||{}).type||!(a[0]||{}).type&&t.measurement.bearingMeasureEnabled,p="Polygon"===i?n.geometry.coordinates[0]:n.geometry.coordinates,d=e.reprojectedCoordinatesFrom4326(p),f="Polygon"===i?new h.b([d]):new m.a(d),g={Point:function(){return p},LineString:function(){return u?Object(l.calculateAzimuth)(p[0],p[1],"EPSG:4326"):Object(l.calculateDistance)(p,t.measurement.lengthFormula)},Polygon:function(){return e.getArea(f)}},y={LineString:function(){return e.formatLengthValue(u?Object(l.calculateAzimuth)(p[0],p[1],"EPSG:4326"):Object(l.calculateDistance)(p,t.measurement.lengthFormula),t.uom,u,t.measurement.trueBearing)},Polygon:function(){return e.formatAreaValue(e.getArea(f),t.uom)}};if(!u)for(var b=0;b2)){a.push(Object(l.midpoint)(i[i.length-1],i[i.length-2],!0)),a.push(Object(l.midpoint)(i[i.length-2],i[i.length-3],!0));for(var u=0;u1&&r.length>2){for(e.drawInteraction.sketchCoords_=[r[0],r[1],r[0]];e.sketchFeature.getGeometry().getCoordinates().length>3;)e.drawInteraction.removeLastPoint();e.sketchFeature.getGeometry().setCoordinates([r[0],r[1]]),e.drawInteraction.sketchFeature_=e.sketchFeature,e.drawInteraction.finishDrawing()}}})),G(U(e),"reprojectedCoordinatesFrom4326",(function(t){return t.map((function(t){var r=Object(l.reproject)(t,"EPSG:4326",q(e.props.map));return[r.x,r.y]}))})),G(U(e),"reprojectedCoordinatesIn4326",(function(t){return t.map((function(t){var r=Object(l.reproject)(t,q(e.props.map),"EPSG:4326");return[r.x,r.y]}))})),G(U(e),"calculateGeodesicArea",(function(t){if(t.length>=4){var r=e.reprojectedCoordinatesIn4326(t);return Math.abs(Object(C.a)(new h.b([r]),{projection:"EPSG:4326"}))}return 0})),G(U(e),"createHelpTooltip",(function(){e.removeHelpTooltip(),e.helpTooltipElement=document.createElement("div"),e.helpTooltipElement.className="tooltip hidden",e.helpTooltip=new g.a({element:e.helpTooltipElement,offset:[15,0],positioning:"center-left"}),e.props.map.addOverlay(e.helpTooltip)})),G(U(e),"createMeasureTooltip",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,-15];e.measureTooltipElements||(e.measureTooltipElements=[]),e.measureTooltips||(e.measureTooltips=[]),e.outputValues||(e.outputValues=[]);var r=document.createElement("div");r.className="tooltip tooltip-measure",r.style.display=e.props.measurement.showLabel?"":"none",e.measureTooltipElements.push(r);var n=new g.a({element:r,offset:t,positioning:"bottom-center"});e.props.map.addOverlay(n),e.measureTooltips.push(n),e.outputValues.push(null)})),G(U(e),"createSegmentLengthOverlay",(function(t){e.segmentOverlayElements||(e.segmentOverlayElements=[]),e.segmentOverlays||(e.segmentOverlays=[]);var r=document.createElement("div");r.className="segment-overlay",r.style.display=e.props.measurement.showSegmentLengths&&!t?"":"none",e.segmentOverlayElements.push(r);var n=new g.a({element:r,offset:[0,0],positioning:"center-center"});e.props.map.addOverlay(n),e.segmentOverlays.push(n)})),G(U(e),"formatLengthValue",(function(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(n)return Object(c.getFormattedBearingValue)(t,o);var i=r&&r.length,a=i.label,l=i.unit,u=Object(s.round)(Object(c.convertUom)(t,"m",l),2);return e.props.formatNumber(u)+" "+a})),G(U(e),"formatAreaValue",(function(t,r){var n=r&&r.area,o=n.label,i=n.unit,a=Object(s.round)(Object(c.convertUom)(t,"sqm",i),2);return e.props.formatNumber(a)+" "+o})),G(U(e),"removeHelpTooltip",(function(){e.helpTooltipElement&&e.helpTooltipElement.parentNode&&e.helpTooltipElement.parentNode.removeChild(e.helpTooltipElement),e.helpTooltip&&e.props.map.removeOverlay(e.helpTooltip)})),G(U(e),"removeMeasureTooltips",(function(){(e.measureTooltips||[]).forEach((function(t){e.props.map.removeOverlay(t)}));for(var t=document.getElementsByClassName("tooltip-static")||[],r=0;r0&&this.props.changeGeometry([]),e.measurement.textLabels&&e.measurement.textLabels.length>0&&this.props.setTextLabels([]),this.source&&(this.source.clear(),this.source=null));var n=this.props.measurement.features,o=e.measurement.features;e.measurement.updatedByUI&&!Object(s.isEqual)(n,o)?this.updateFeatures(e):e.measurement.updatedByUI&&!Object(s.isEqual)(this.props.uom,e.uom)&&this.updateMeasures(e)}},{key:"render",value:function(){return null}}])&&I(t.prototype,r),n&&I(t,n),i}(o.a.Component);G(B,"propTypes",{startEndPoint:a.a.object,map:a.a.object,measurement:a.a.object,enabled:a.a.bool,uom:a.a.object,formatNumber:a.a.func,changeMeasurementState:a.a.func,updateMeasures:a.a.func,resetGeometry:a.a.func,changeGeometry:a.a.func,updateOnMouseMove:a.a.bool,setTextLabels:a.a.func}),G(B,"contextTypes",{messages:a.a.object}),G(B,"defaultProps",{changeMeasurementState:function(){},resetGeometry:function(){},updateMeasures:function(){},changeGeometry:function(){},formatNumber:function(e){return e},setTextLabels:function(){},startEndPoint:{startPointOptions:{radius:3,fillColor:"green"},endPointOptions:{radius:3,fillColor:"red"}},updateOnMouseMove:!1})},"./MapStore2/web/client/components/map/openlayers/Overview.jsx":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return x}));var n=r("./node_modules/prop-types/index.js"),o=r.n(n),i=r("./node_modules/react/index.js"),a=r.n(i),s=r("./MapStore2/web/client/utils/openlayers/Layers.js"),l=r("./node_modules/object-assign/index.js"),c=r.n(l),u=r("./node_modules/lodash/isFinite.js"),p=r.n(u),d=r("./node_modules/ol/control/OverviewMap.js");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=o()(e.style&&e.style.rotation)?0:e.style.rotation;return[new C.default({image:new O.default({rotation:t,anchor:[12,12],anchorXUnits:"pixels",anchorYUnits:"pixels",src:I})}),new C.default({image:new O.default({rotation:t,src:R,anchor:[M.size[0]/2,M.size[1]],anchorXUnits:"pixels",anchorYUnits:"pixels",size:M.size,offset:[M.colors.indexOf(e.style.iconColor||"blue")*M.size[0],M.shapes.indexOf(e.style.iconShape||"circle")*M.size[1]]}),text:new j.default({rotation:t,text:F[e.style.iconGlyph],font:"14px FontAwesome",offsetY:2*-M.size[1]/3,fill:new A.default({color:"#FFFFFF"})})})].concat(N(e.style,2*(D+15)))}},standard:{getIcon:function(e){var t=e.style,r=e.iconAnchor,n=o()(t&&t.rotation)?0:t.rotation,i=t.iconAnchor||r,a=[new C.default({image:new O.default({anchor:i||[.5,1],anchorXUnits:t.anchorXUnits||(i||0===i?"pixels":"fraction"),anchorYUnits:t.anchorYUnits||(i||0===i?"pixels":"fraction"),size:u()(t.size)?t.size:P()(t.size)?[t.size,t.size]:void 0,rotation:n,anchorOrigin:t.anchorOrigin||"top-left",src:t.iconUrl||t.symbolUrlCustomized||t.symbolUrl})})];t.shadowUrl&&(a=[new C.default({image:new O.default({anchor:[12,41],anchorXUnits:"pixels",anchorYUnits:"pixels",src:t.shadowUrl})}),a[0]]);var s=u()(t.size)?t.size[1]:P()(t.size)?t.size:0;return s=s>32?s+.75*s:D+10,a.concat(N(t,s))}},html:{getIcon:function(){return null}}},z=r("./MapStore2/web/client/utils/VectorStyleUtils.js"),G=r("./node_modules/ol/style/Circle.js"),q=r("./node_modules/ol/style/Stroke.js"),B=r("./node_modules/ol/geom/Point.js"),W=r("./node_modules/ol/geom/LineString.js"),H=r("./node_modules/es6-promise/dist/es6-promise.js"),V=r("./MapStore2/web/client/libs/ajax.js"),Z=r.n(V),Y=r("./node_modules/geostyler-openlayers-parser/build/dist/OlStyleParser.js"),X=r.n(Y),Q=r("./MapStore2/web/client/components/map/openlayers/img/marker-icon.png"),K=r.n(Q),J=r("./MapStore2/web/client/components/map/openlayers/img/marker-shadow.png"),$=r.n(J),ee=r("./node_modules/object-assign/index.js"),te=r.n(ee),re=r("./MapStore2/web/client/utils/ImmutableUtils.js");function ne(e){return function(e){if(Array.isArray(e))return oe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,r=void 0===t?5:t,n=e.fillColor,o=void 0===n?"green":n,i=e.applyToPolygon,a=void 0!==i&&i;return new C.default({image:new G.default({radius:r,fill:new A.default({color:o})}),geometry:function(e){var t=e.getGeometry(),r=t.getType();if(!a&&"Polygon"===r)return null;var n="Polygon"===r?t.getCoordinates()[0]:t.getCoordinates();return n.length>1?new B.a(h()(n)):null}})},pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,r=void 0===t?5:t,n=e.fillColor,o=void 0===n?"red":n,i=e.applyToPolygon,a=void 0!==i&&i;return new C.default({image:new G.default({radius:r,fill:new A.default({color:o})}),geometry:function(e){var t=e.getGeometry(),r=t.getType();if(!a&&"Polygon"===r)return null;var n="Polygon"===r?t.getCoordinates()[0]:t.getCoordinates();return new B.a(n.length>3?n[n.length-("Polygon"===r?2:1)]:g()(n))}})},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[ue(e),pe(t)]},fe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new C.default({text:new j.default({offsetY:-4*Math.sqrt(e.fontSize),textAlign:e.textAlign||"center",text:t||"",font:e.font,fill:new A.default({color:Object(w.colorToRgbaStr)(e.stroke||e.color||"#000000",e.opacity||1)}),stroke:r?new q.default({color:[255,255,255,1],width:2}):null}),image:r?new G.default({radius:5,fill:null,stroke:new q.default({color:Object(w.colorToRgbaStr)(e.color||"#0000FF",e.opacity||1),width:e.weight||1})}):null})},he={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,radius:10},me={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,editing:{fill:1}},ge={color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2,editing:{fill:1}},ye={Marker:{iconColor:"orange",iconShape:"circle",iconGlyph:"comment"},Text:{fontStyle:"normal",fontSize:"14",fontSizeUom:"px",fontFamily:"Arial",fontWeight:"normal",font:"14px Arial",textAlign:"center",color:"#000000",opacity:1},Circle:{color:"#ffcc33",opacity:1,weight:3,fillColor:"#ffffff",fillOpacity:.2},Point:he,MultiPoint:he,LineString:me,MultiLineString:me,Polygon:ge,MultiPolygon:ge},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{color:"blue",width:3,lineDash:[6]};return{stroke:new q.default(e.style?e.style.stroke||{color:e.style.color||t.color,lineDash:l()(e.style.dashArray)&&a()(e.style.dashArray).split(" ")||t.lineDash,width:e.style.weight||t.width,lineCap:e.style.lineCap||"round",lineJoin:e.style.lineJoin||"round",lineDashOffset:e.style.dashOffset||0}:ae({},t))}},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{color:"rgba(0, 0, 255, 0.1)"};return{fill:new A.default(e.style?e.style.fill||{color:Object(w.colorToRgbaStr)(e.style.fillColor,e.style.fillOpacity)||t.color}:ae({},t))}},_e={Point:function(){return[new C.default({image:ce})]},LineString:function(e){return[new C.default(te()({},be(e,{color:"blue",width:3})))]},MultiLineString:function(e){return[new C.default(te()({},be(e,{color:"blue",width:3})))]},MultiPoint:function(){return[new C.default({image:ce})]},MultiPolygon:function(e){return[new C.default(te()({},be(e),ve(e)))]},Polygon:function(e){return[new C.default(te()({},be(e),ve(e)))]},GeometryCollection:function(e){return[new C.default(te()({},be(e),ve(e),{image:new G.default({radius:10,fill:null,stroke:new q.default({color:"magenta"})})}))]},Circle:function(){return[new C.default({stroke:new q.default({color:"red",width:2}),fill:new A.default({color:"rgba(255,0,0,0.2)"})})]},marker:function(e){return[new C.default({image:new O.default({anchor:[14,41],anchorXUnits:"pixels",anchorYUnits:"pixels",src:$.a})}),new C.default({image:new O.default({anchor:[.5,1],anchorXUnits:"fraction",anchorYUnits:"fraction",src:K.a}),text:new j.default({text:e.label,scale:1.25,offsetY:8,fill:new A.default({color:"#000000"}),stroke:new q.default({color:"#FFFFFF",width:2})})})]}},we=function(e,t){var r=e.getGeometry().getType();return _e[r](t&&t.style&&t.style[r]&&{style:ae({},t.style[r])}||t||{})};function Se(e){if(e.style.iconUrl)return U.standard.getIcon(e);var t=e.style.iconLibrary||"extra";return U[t]?U[t].getIcon(e):null}var xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{style:ye},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=t.style[e]||t.style;if("MultiLineString"===e||"LineString"===e){var s=[new C.default({stroke:t.style.useSelectedStyle?new q.default({color:[255,255,255,1],width:a.weight+2}):null}),new C.default(a?{stroke:new q.default(a&&a.stroke?a.stroke:{color:Object(w.colorToRgbaStr)(t.style&&a.color||"#0000FF",a.opacity||1),lineDash:t.style.highlight?[10]:[0],width:a.weight||1}),image:r?ce:null}:{stroke:new q.default(ye[e]&&ye[e].stroke?ye[e].stroke:{color:Object(w.colorToRgbaStr)(t.style&&ye[e].color||"#0000FF",ye[e].opacity||1),lineDash:t.style.highlight?[10]:[0],width:ye[e].weight||1})})],l=t.style.useSelectedStyle?de({radius:a.weight,applyToPolygon:!0},{radius:a.weight,applyToPolygon:!0}):[];return[].concat(ne(l),s)}if(("MultiPoint"===e||"Point"===e)&&(a.iconUrl||a.iconGlyph))return r?new C.default({image:ce}):Se({style:ae(ae({},a),{},{highlight:t.style.highlight||t.style.useSelectedStyle})});if("Circle"===e&&i){var c=[new C.default({stroke:t.style.useSelectedStyle?new q.default({color:[255,255,255,1],width:a.weight+4}):null}),new C.default({stroke:new q.default(a&&a.stroke?a.stroke:{color:t.style.useSelectedStyle?le:Object(w.colorToRgbaStr)(t.style&&a.color||"#0000FF",a.opacity||1),lineDash:t.style.highlight?[10]:[0],width:a.weight||1}),fill:new A.default(a.fill?a.fill:{color:Object(w.colorToRgbaStr)(t.style&&a.fillColor||"#0000FF",a.fillOpacity||.2)})}),new C.default({image:t.style.useSelectedStyle?new G.default({radius:3,fill:new A.default(a.fill?a.fill:{color:le})}):null,geometry:function(e){var t=e.getGeometry();if("Circle"===t.getType()){var r=t.getCenter();return new B.a(r)}return null}})];return c}if("Text"===e&&a.font)return[fe(a,n[0],t.style.useSelectedStyle||t.style.highlight)];if("MultiPolygon"===e||"Polygon"===e){var u=[new C.default({stroke:t.style.useSelectedStyle?new q.default({color:[255,255,255,1],width:a.weight+2}):null}),new C.default({stroke:new q.default(a.stroke?a.stroke:{color:t.style.useSelectedStyle?le:Object(w.colorToRgbaStr)(t.style&&a.color||"#0000FF",a.opacity||1),lineDash:t.style.highlight?[10]:[0],width:a.weight||1}),image:r?ce:null,fill:new A.default(a.fill?a.fill:{color:Object(w.colorToRgbaStr)(t.style&&a.fillColor||"#0000FF",a.fillOpacity||1)})})],p=t.style.useSelectedStyle?de({radius:a.weight,applyToPolygon:!0},{radius:a.weight,applyToPolygon:!0}):[];return[].concat(u,ne(p))}return o};function ke(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.styleName&&!e.overrideOLStyle)return function(t){if("marker"===e.styleName)switch(t.getGeometry().getType()){case"Point":case"MultiPoint":return _e.marker(e)}return _e[e.styleName](e)};var n,i=e.nativeStyle,a=r,s=0,l=e.style&&e.style.type||(e.features&&e.features[0]&&e.features[0].geometry?e.features[0].geometry.type:void 0);if("FeatureCollection"===l||e.features&&e.features[0]&&"FeatureCollection"===e.features[0].type)return function(r){var o=this||r;n=o.getGeometry()&&o.getGeometry().getType();var i=o&&o.getProperties();i&&i.isCircle&&(n="Circle",s=i.radius),i&&i.isText&&(n="Text",a=[i.valueText]);var l=Object(re.set)("style.useSelectedStyle",i.canEdit,e);return xe(n,l,t,a,null,s)};if(e&&e.properties&&e.properties.isText)return n="Text",a=[e.properties.valueText],xe(n,e,t,a,null,s);if(e&&e.properties&&e.properties.isCircle)return n="Circle",s=e.properties.radius,xe(n,e,t,a,null,s);if(!i&&e.style){if(i={stroke:new q.default(e.style.stroke?e.style.stroke:{color:Object(w.colorToRgbaStr)(e.style&&e.style.color||"#0000FF",o()(e.style.opacity)?1:e.style.opacity),lineDash:e.style.highlight?[10]:[0],width:e.style.weight||1}),fill:new A.default(e.style.fill?e.style.fill:{color:Object(w.colorToRgbaStr)(e.style&&e.style.fillColor||"#0000FF",o()(e.style.fillOpacity)?1:e.style.fillOpacity)})},"Point"===l&&(i={image:new G.default(te()({},i,{radius:e.style.radius||5}))}),e.style.iconUrl||e.style.iconGlyph){var c=Se(e);return i=function(t){var r=this||t;switch(n=r.getGeometry().getType()){case"Point":case"MultiPoint":return c;default:return we(r,e)}}}return i=new C.default(i),"GeometryCollection"===l?i=function(o){var i,a=this||o;n=a.getGeometry().getType();var s=a.get("textGeometriesIndexes")||[],l=a.get("circles")||[],c=a.get("textValues");return"GeometryCollection"===a.getGeometry().getType()?a.getGeometry().getGeometries().reduce((function(o,a,p){if(("Point"===(n=a.getType())||"MultiPoint"===n)&&s.length&&-1!==s.indexOf(p)){var d=xe("Text",e,t,[c[s.indexOf(p)]]);return d.setGeometry(a),o.concat([d])}if("Polygon"===n&&l.length&&-1!==l.indexOf(p)){var f=xe("Circle",e,t,[]);return f.setGeometry(a),o.concat([f])}if("Point"===n||"MultiPoint"===n)return i=Se({style:ae(ae({},e.style[n]),{},{highlight:e.style.highlight})}),o.concat(i.map((function(e){return e.setGeometry(a),e})));var h=xe(n,e,t,r);return u()(h)?h.forEach((function(e){return e.setGeometry(a)})):h.setGeometry(a),o.concat([h])}),[]):"Point"===n||"MultiPoint"===n?(i=Se({style:ae(ae({},e.style[n]),{},{highlight:e.style.highlight})}),t?new C.default({image:ce,geometry:a.getGeometry()}):i.map((function(e){return e.setGeometry(a.getGeometry()),e}))):xe(n,e,t,r)}:("Circle"===l&&(s=e.features&&e.features.length&&e.features[0].properties&&e.features[0].properties.radius||10),xe(l,e,t,r,i,s))}return i||we}function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(z.isCircleStyle)(e)?new G.default({stroke:t,fill:r,radius:e.radius||5}):null},Ee=function(e){if(Object(z.isMarkerStyle)(e)){if(e.iconUrl)return U.standard.getIcon({style:e});var t=e.iconLibrary||"extra";if(U[t])return U[t].getIcon({style:e})}return null},Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(z.isStrokeStyle)(e)?new q.default(e.stroke&&_()(e.stroke)?e.stroke:{color:e.highlight?je.blue:Object(w.colorToRgbaStr)(e.color||e.stroke||"#0000FF",o()(e.opacity)?1:e.opacity),width:o()(e.weight)?1:e.weight,lineDash:l()(e.dashArray)&&a()(e.dashArray).split(" ")||u()(e.dashArray)&&e.dashArray||[0],lineCap:e.lineCap||"round",lineJoin:e.lineJoin||"round",lineDashOffset:e.dashOffset||0}):null},Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(z.isFillStyle)(e)?new A.default(e.fill&&_()(e.fill)?e.fill:{color:Object(w.colorToRgbaStr)(e.fillColor||"#0000FF",o()(e.fillOpacity)?1:e.fillOpacity)}):null},Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return Object(z.isTextStyle)(e)?new j.default({fill:r,offsetY:e.offsetY||-4*Math.sqrt(e.fontSize),rotation:e.textRotationDeg?e.textRotationDeg/180*Math.PI:0,textAlign:e.textAlign||"center",text:e.label||n&&n.properties&&n.properties.valueText||"New",font:e.font||"Arial",stroke:e.highlight?new q.default({color:[255,255,255,1],width:2}):t,image:e.highlight?new G.default({radius:5,fill:null,stroke:new q.default({color:Object(w.colorToRgbaStr)(e.color||"#0000FF",e.opacity||1),width:e.weight||1})}):null}):null},Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,r=void 0===t?5:t,n=e.fillColor,o=void 0===n?"green":n,i=e.applyToPolygon,a=void 0!==i&&i;return new C.default({image:new G.default({radius:r,fill:new A.default({color:o})}),geometry:function(e){var t=e.getGeometry(),r=t.getType();if(!a&&"Polygon"===r)return null;var n="Polygon"===r?t.getCoordinates()[0]:t.getCoordinates();return n.length>1?new B.a(h()(n)):null}})},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.radius,r=void 0===t?5:t,n=e.fillColor,o=void 0===n?"red":n,i=e.applyToPolygon,a=void 0!==i&&i;return new C.default({image:new G.default({radius:r,fill:new A.default({color:o})}),geometry:function(e){var t=e.getGeometry(),r=t.getType();if(!a&&"Polygon"===r)return null;var n="Polygon"===r?t.getCoordinates()[0]:t.getCoordinates();return new B.a(n.length>3?n[n.length-("Polygon"===r?2:1)]:g()(n))}})},Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{radius:3,fillColor:"green",applyToPolygon:!0},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{radius:3,fillColor:"red",applyToPolygon:!0},n=[];return b()(e,(function(e){return"startPoint"===e.geometry&&e.filtering}))||n.push(Ie(Pe({},t))),b()(e,(function(e){return"endPoint"===e.geometry&&e.filtering}))||n.push(De(Pe({},r))),n};Object(z.registerGeometryFunctions)("centerPoint",(function(e){var t=e.getGeometry(),r=t.getExtent(),n=t.getCenter&&t.getCenter()||[r[2]-r[0],r[3]-r[1]];return new B.a(n)}),"Point"),Object(z.registerGeometryFunctions)("lineToArc",(function(e){var t=e.getGeometry().getType();if("LineString"===t||"MultiPoint"===t){var r=e.getGeometry().getCoordinates();return r=Object(S.transformLineToArcs)(r.map((function(e){var t=Object(S.reproject)(e,"EPSG:3857","EPSG:4326");return[t.x,t.y]}))),new W.a(r.map((function(e){var t=Object(S.reproject)(e,"EPSG:4326","EPSG:3857");return[t.x,t.y]})))}return e.getGeometry()}),"LineString"),Object(z.registerGeometryFunctions)("startPoint",(function(e){var t=e.getGeometry(),r="Polygon"===t.getType()?t.getCoordinates()[0]:t.getCoordinates();return r.length>1?new B.a(h()(r)):null}),"Point"),Object(z.registerGeometryFunctions)("endPoint",(function(e){var t=e.getGeometry(),r=t.getType(),n="Polygon"===r?t.getCoordinates()[0]:t.getCoordinates();return new B.a(n.length>3?n[n.length-("Polygon"===r?2:1)]:g()(n))}),"Point");var Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.geometry?function(t){var r=e.geometry||"centerPoint";return z.geometryFunctions[r].func(t)}:function(e){return e.getGeometry()}},Ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!o()(e.filtering)||e.filtering},ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{properties:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Ue(t,e);if(n){var o=Te(t),i=Me(t),a=Ae(t,o,i);if(Object(z.isMarkerStyle)(t))return Ee(t).map((function(e){return e.setGeometry(Ne(t)),e}));if(Object(z.isSymbolStyle)(t))return U.standard.getIcon({style:t}).map((function(e){return e.setGeometry(Ne(t)),e}));var s=Re(t,o,i,e),l=t.zIndex,c=new C.default({geometry:Ne(t),image:a,text:s,stroke:!s&&!a&&o||null,fill:!s&&!a&&i||null,zIndex:l});return[c].concat(e&&e.properties&&e.properties.canEdit&&!e.properties.isCircle?Fe(r):[])}return new C.default({})},Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{properties:{}},t=e.style;if(t){var r=u()(t)?t:d()(t);return r.reduce((function(t,n){return t.concat(ze(e,n,r))}),[])}return[]},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e.style&&e.style.url)return Z.a.get(e.style.url).then((function(t){return Object(z.getStyleParser)(e.style.format).readStyle(t.data).then((function(e){return Oe.writeStyle(e)}))}));if(e.style&&"geostyler"===e.style.format)return Oe.writeStyle(e.style.styleObj);var n=ke(e,t,r);return e.asPromise?new H.Promise((function(e){e(n)})):n},Be=Se,We=de,He=ye},"./MapStore2/web/client/components/map/openlayers/img/marker-shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAYAAACoYAD2AAAC5ElEQVRYw+2YW4/TMBCF45S0S1luXZCABy5CgLQgwf//S4BYBLTdJLax0fFqmB07nnQfEGqkIydpVH85M+NLjPe++dcPc4Q8Qh4hj5D/AaQJx6H/4TMwB0PeBNwU7EGQAmAtsNfAzoZkgIa0ZgLMa4Aj6CxIAsjhjOCoL5z7Glg1JAOkaicgvQBXuncwJAWjksLtBTWZe04CnYRktUGdilALppZBOgHGZcBzL6OClABvMSVIzyBjazOgrvACf1ydC5mguqAVg6RhdkSWQFj2uxfaq/BrIZOLEWgZdALIDvcMcZLD8ZbLC9de4yR1sYMi4G20S4Q/PWeJYxTOZn5zJXANZHIxAd4JWhPIloTJZhzMQduM89WQ3MUVAE/RnhAXpTycqys3NZALOBbB7kFrgLesQl2h45Fcj8L1tTSohUwuxhy8H/Qg6K7gIs+3kkaigQCOcyEXCHN07wyQazhrmIulvKMQAwMcmLNqyCVyMAI+BuxSMeTk3OPikLY2J1uE+VHQk6ANrhds+tNARqBeaGc72cK550FP4WhXmFmcMGhTwAR1ifOe3EvPqIegFmF+C8gVy0OfAaWQPMR7gF1OQKqGoBjq90HPMP01BUjPOqGFksC4emE48tWQAH0YmvOgF3DST6xieJgHAWxPAHMuNhrImIdvoNOKNWIOcE+UXE0pYAnkX6uhWsgVXDxHdTfCmrEEmMB2zMFimLVOtiiajxiGWrbU52EeCdyOwPEQD8LqyPH9Ti2kgYMf4OhSKB7qYILbBv3CuVTJ11Y80oaseiMWOONc/Y7kJYe0xL2f0BaiFTxknHO5HaMGMublKwxFGzYdWsBF174H/QDknhTHmHHN39iWFnkZx8lPyM8WHfYELmlLKtgWNmFNzQcC1b47gJ4hL19i7o65dhH0Negbca8vONZoP7doIeOC9zXm8RjuL0Gf4d4OYaU5ljo3GYiqzrWQHfJxA6ALhDpVKv9qYeZA8eM3EhfPSCmpuD0AAAAASUVORK5CYII="},"./MapStore2/web/client/components/map/openlayers/index.js":function(e,t,r){e.exports={LLayer:r("./MapStore2/web/client/components/map/openlayers/Layer.jsx").default,Locate:r("./MapStore2/web/client/components/map/openlayers/Locate.jsx").default,LMap:r("./MapStore2/web/client/components/map/openlayers/Map.jsx").default,MeasurementSupport:r("./MapStore2/web/client/components/map/openlayers/MeasurementSupport.jsx").default,Overview:r("./MapStore2/web/client/components/map/openlayers/Overview.jsx").default,ScaleBar:r("./MapStore2/web/client/components/map/openlayers/ScaleBar.jsx").default,Feature:r("./MapStore2/web/client/components/map/openlayers/Feature.jsx").default}},"./MapStore2/web/client/components/map/openlayers/mapstore-ol-overrides.css":function(e,t,r){var n=r("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/map/openlayers/mapstore-ol-overrides.css");"string"==typeof n&&(n=[[e.i,n,""]]);r("./node_modules/style-loader/addStyles.js")(n,{});n.locals&&(e.exports=n.locals)},"./MapStore2/web/client/components/map/openlayers/overview.css":function(e,t,r){var n=r("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/components/map/openlayers/overview.css");"string"==typeof n&&(n=[[e.i,n,""]]);r("./node_modules/style-loader/addStyles.js")(n,{});n.locals&&(e.exports=n.locals)},"./MapStore2/web/client/components/map/openlayers/plugins/BingLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/openlayers/Layers.js"),o=r("./node_modules/ol/layer/Tile.js"),i=r("./node_modules/ol/source/BingMaps.js"),a=function e(t,r){t.getSource&&"error"===t.getSource().getState()&&r.onError&&r.onError(t),t.getSource&&"loading"===t.getSource().getState()&&setTimeout(e.bind(null,t,r),1e3)};n.default.registerType("bing",{create:function(e){var t=e.apiKey,r=e.maxNativeZoom||19,n=new o.a({msId:e.id,preload:1/0,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,visible:e.visibility,source:new i.a({key:t,imagerySet:e.name,maxZoom:r})});return setTimeout(a.bind(null,n,e),1e3),n},isValid:function(e){return!e.getSource||"error"!==e.getSource().getState()}})},"./MapStore2/web/client/components/map/openlayers/plugins/GoogleLayer.js":function(e,t,r){"use strict";r.r(t);var n,o,i=r("./MapStore2/web/client/utils/openlayers/Layers.js"),a=r("./node_modules/react/index.js"),s=r.n(a),l=r("./node_modules/ol/proj.js"),c={},u="ontouchstart"in window,p=u?"touchstart":"mousedown",d=u?"touchmove":"mousemove",f=u?"touchend":"mouseup";i.default.registerType("google",{create:function(e,t,r){if(document.getElementById(r+"gmaps")){var o=window.google;n||(n={HYBRID:o.maps.MapTypeId.HYBRID,SATELLITE:o.maps.MapTypeId.SATELLITE,ROADMAP:o.maps.MapTypeId.ROADMAP,TERRAIN:o.maps.MapTypeId.TERRAIN}),c[r]||(c[r]=new o.maps.Map(document.getElementById(r+"gmaps"),{disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1})),c[r].setMapTypeId(n[e.name]);var i=document.getElementById(r+"gmaps"),a=function(){if(c[r]&&"hidden"!==i.style.visibility){var e=Object(l.transform)(t.getView().getCenter(),"EPSG:3857","EPSG:4326");c[r].setCenter(new o.maps.LatLng(e[1],e[0]))}},s=function(){c[r]&&"hidden"!==i.style.visibility&&c[r].setZoom(t.getView().getZoom())},u=function(e,t){var r=t[0],n=t[1],o=[[r/2,n/2],[-r/2,n/2],[-r/2,-n/2],[r/2,-n/2]].map((function(t){return r=t,n=e*Math.PI/180,o=r[0],i=r[1],[o*Math.cos(n)-i*Math.sin(n),o*Math.sin(n)+i*Math.cos(n)];var r,n,o,i})),i=o.map((function(e){return e[0]})),a=o.map((function(e){return e[1]})),s=Math.max.apply(null,i),l=Math.min.apply(null,i),c=Math.max.apply(null,a),u=Math.min.apply(null,a),p=Math.abs(c)+Math.abs(u);return{width:Math.abs(s)+Math.abs(l),height:p}},h=function(){if("hidden"!==i.style.visibility){var e=180*t.getView().getRotation()/Math.PI;i.style.transform="rotate("+e+"deg)",o.maps.event.trigger(c[r],"resize")}},m=function(){var e=t.getView();e.on("change:center",a),e.on("change:resolution",s),e.on("change:rotation",h)};t.on("change:view",m),m(),a(),s();var g=t.getViewport(),y=document.getElementById(r+"gmaps").style.transform,b=!1,v=!1;g.addEventListener(p,(function(){b=!0})),g.addEventListener(f,(function(){v&&b&&function(){var e=document.getElementById(r+"gmaps").style.transform;if(c[r]&&e!==y&&-1!==e.indexOf("rotate")){var n=parseFloat(e.match(/[\+\-]?\d+\.?\d*/i)[0]),s=u(-n,t.getSize());i.style.width=s.width+"px",i.style.height=s.height+"px",i.style.left=Math.round((t.getSize()[0]-s.width)/2)+"px",i.style.top=Math.round((t.getSize()[1]-s.height)/2)+"px",o.maps.event.trigger(c[r],"resize"),a()}}(),y=document.getElementById(r+"gmaps").style.transform,b=!1})),g.addEventListener(d,(function(){v=b}))}return null},render:function(e,t,r){o||(o=e.name);var i={zIndex:0};if(!0===e.visibility){var a=document.getElementById(r+"gmaps");a&&(a.style.visibility="visible"),c[r]&&n&&(c[r].setMapTypeId(n[e.name]),c[r].setTilt(0))}else i.visibility="hidden";if(o===e.name){var l=document.getElementById(r+"gmaps");return l&&(l.style.visibility=e.visibility?"visible":"hidden"),s.a.createElement("div",{id:r+"gmaps",className:"fill",style:i})}return null},update:function(e,t,r,n,o){if(c[o]){var i=window.google;if(!r.visibility&&t.visibility){var a=n.getView(),s=Object(l.transform)(a.getCenter(),"EPSG:3857","EPSG:4326");c[o].setCenter(new i.maps.LatLng(s[1],s[0])),c[o].setZoom(a.getZoom())}}},remove:function(e,t,r){o===e.name&&(o=void 0,delete c[r])}})},"./MapStore2/web/client/components/map/openlayers/plugins/GraticuleLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/openlayers/Layers.js"),o=r("./node_modules/ol/Graticule.js"),i=r("./node_modules/ol/style/Stroke.js");n.default.registerType("graticule",{create:function(e,t){var r=new o.a({strokeStyle:e.style||new i.default({color:"rgba(255,120,0,0.9)",width:2,lineDash:[.5,4]})});return r.setMap(t),{detached:!0,remove:function(){r.setMap(null)}}}})},"./MapStore2/web/client/components/map/openlayers/plugins/MapQuest.js":function(e,t,r){"use strict";r.r(t),r("./MapStore2/web/client/utils/openlayers/Layers.js").default.registerType("mapquest",{create:function(e){return e.onError(),!1},isValid:function(){return!1}})},"./MapStore2/web/client/components/map/openlayers/plugins/OSMLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/openlayers/Layers.js"),o=r("./node_modules/ol/source/OSM.js"),i=r("./node_modules/ol/layer/Tile.js");n.default.registerType("osm",{create:function(e){return new i.a({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,visible:e.visibility,zIndex:e.zIndex,source:new o.a})}})},"./MapStore2/web/client/components/map/openlayers/plugins/OverlayLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/openlayers/Layers.js"),o=r("./node_modules/eventlistener/eventlistener.js"),i=r.n(o),a=r("./node_modules/ol/Overlay.js");n.default.registerType("overlay",{create:function(e,t){var r=function(e,t){var r=e.cloneNode(!0);r.id=t.id+"-overlay",r.className=(t.className||e.className)+"-overlay",r.removeAttribute("data-reactid"),function e(t){if(0!==t.length)for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=Object(n.get)(e,"bbox.bounds",{}),r=t.minx,o=t.miny,s=t.maxx,l=t.maxy,c={projection:e.srs,url:"".concat(e.tileMapUrl,"/{z}/{x}/{-y}.").concat(e.extension),attributions:e.attribution?[e.attribution]:[]},u=new i.a(c),p=u.getTileGrid();if(e.forceDefaultTileGrid){var d=p.getExtent(),f=[d[0],d[1]],h=new a.a({origin:f,extent:e.bbox&&[r,o,s,l],resolutions:p.getResolutions(),tileSize:e.tileSize});u.setTileGridForProjection(e.srs,h),"EPSG:3857"===e.srs&&u.setTileGridForProjection("EPSG:900913",h)}else e.tileSets&&u.setTileGridForProjection(e.srs,new a.a({origin:e.origin,extent:e.bbox&&[r,o,s,l],resolutions:e.tileSets.map((function(e){return e.resolution})),tileSize:e.tileSize}));var m={msId:e.id,extent:e.bbox&&[r,o,s,l],opacity:void 0!==e.opacity?e.opacity:1,visible:!1!==e.visibility,zIndex:e.zIndex,source:u};return m}(e))}})},"./MapStore2/web/client/components/map/openlayers/plugins/TileProviderLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/object-assign/index.js"),o=r.n(n),i=r("./MapStore2/web/client/utils/openlayers/Layers.js"),a=r("./MapStore2/web/client/utils/TileConfigProvider.js"),s=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),l=r.n(s),c=r("./MapStore2/web/client/utils/TileProviderUtils.js"),u=r("./node_modules/ol/source/XYZ.js"),p=r("./node_modules/ol/layer/Tile.js");function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.topLeftCorner;return t})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=P(e,2),r=t[0],n=t[1];return C?[n,r]:[r,n]})),j=c&&c.map((function(e){return[e.tileWidth,e.tileHeight]})),A=e.bbox,E=A?Object(m.a)([parseFloat(A.bounds.minx),parseFloat(A.bounds.miny),parseFloat(A.bounds.maxx),parseFloat(A.bounds.maxy)],Object(h.getTransform)(A.crs,e.srs)):null,T=p&&p.lowerCorner&&p.upperCorner?[].concat(L(p.lowerCorner),L(p.upperCorner)):null,M=new g.a({extent:T,minZoom:0,origins:O,origin:O?void 0:[20037508.3428,-20037508.3428],resolutions:k,tileSizes:j,tileSize:j?void 0:[256,256]}),R=(e.url||"").replace(/\{tilingSchemeId\}/,s).replace(/\{level\}/,"{z}").replace(/\{row\}/,"{y}").replace(/\{col\}/,"{x}"),I={};f.a.addAuthenticationParameter(R,I,e.securityToken);var D=decodeURI(R),F=a.a.format({query:x({},I)}),N=Object(_.isVectorFormat)(e.format)&&w.a[e.format]||v.a,U=new b.a({format:new N({dataProjection:t,layerName:"_layer_"}),tileGrid:M,url:D+F}),z=new y.a({extent:E,msId:e.id,source:U,visible:!1!==e.visibility,zIndex:e.zIndex});return Object(w.b)(e.vectorStyle,z),z};p.default.registerType("wfs3",{create:j,update:function(e,t,r){return r.securityToken!==t.securityToken||r.srs!==t.srs?j(t):null},render:function(){return null}})},"./MapStore2/web/client/components/map/openlayers/plugins/WFSLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./MapStore2/web/client/utils/openlayers/Layers.js"),o=r("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),i=r("./node_modules/ol/source/Vector.js"),a=r("./node_modules/ol/layer/Vector.js"),s=r("./node_modules/ol/format/GeoJSON.js"),l=r("./MapStore2/web/client/api/WFS.js"),c=r("./MapStore2/web/client/utils/VendorParamsUtils.js"),u=r("./MapStore2/web/client/utils/WFSLayerUtils.js");function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.crs||r.srs||"EPSG:3857",o=t.crs||t.srs||"EPSG:3857",i=e.getSource();o!==n&&i.forEachFeature((function(e){e.getGeometry().transform(n,o)})),Object(u.needsReload)(r,t)&&(i.setLoader(h(i,t)),i.clear(),i.refresh()),t.style===r.style&&t.styleName===r.styleName||g(e,t)},render:function(){return null}})},"./MapStore2/web/client/components/map/openlayers/plugins/WMSLayer.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/react/index.js"),o=r.n(n),i=r("./MapStore2/web/client/components/I18N/Message.jsx"),a=r("./MapStore2/web/client/utils/openlayers/Layers.js"),s=r("./node_modules/lodash/isNil.js"),l=r.n(s),c=r("./node_modules/lodash/isEqual.js"),u=r.n(c),p=r("./node_modules/lodash/union.js"),d=r.n(p),f=r("./node_modules/lodash/isArray.js"),h=r.n(f),m=r("./node_modules/object-assign/index.js"),g=r.n(m),y=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),b=r.n(y),v=r("./MapStore2/web/client/utils/ProxyUtils.js"),_=r.n(v),w=r("./MapStore2/web/client/utils/VendorParamsUtils.js"),S=r("./MapStore2/web/client/utils/SecurityUtils.js"),x=r.n(S),k=r("./MapStore2/web/client/utils/LayersUtils.js"),L=r("./MapStore2/web/client/utils/MapUtils.js"),P=r.n(L),C=r("./MapStore2/web/client/utils/ElevationUtils.js"),O=r.n(C),j=r("./node_modules/ol/layer/Image.js"),A=r("./node_modules/ol/source/ImageWMS.js"),E=r("./node_modules/ol/proj.js"),T=r("./node_modules/ol/tilegrid/TileGrid.js"),M=r("./node_modules/ol/layer/Tile.js"),R=r("./node_modules/ol/source/TileWMS.js"),I=r("./node_modules/ol/source/VectorTile.js"),D=r("./node_modules/ol/layer/VectorTile.js"),F=r("./MapStore2/web/client/utils/VectorTileUtils.js"),N=r("./MapStore2/web/client/utils/openlayers/VectorTileUtils.js"),U=r("./MapStore2/web/client/utils/LayerLocalizationUtils.js");function z(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.TopLeftCorner;return t&&m.a.parseString(t)})).map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.x,r=e.y;return O?[r,t]:[t,r]})),A=u&&u.TileMatrix&&u.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.MatrixWidth,r=e.MatrixHeight;return[parseInt(t,10),parseInt(r,10)]})),T=u&&u.TileMatrix&&u.TileMatrix.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.TileWidth,r=e.TileHeight;return[parseInt(t,10),parseInt(r,10)]})),R=e.bbox,D=R?Object(S.a)([parseFloat(R.bounds.minx),parseFloat(R.bounds.miny),parseFloat(R.bounds.maxx),parseFloat(R.bounds.maxy)],Object(w.getTransform)(R.crs,e.srs)):o.getExtent(),F=Object(S.B)(D,o.getExtent());Object(S.H)(F)&&(F=o.getExtent());var N={};r.forEach((function(t){return p.a.addAuthenticationParameter(t,N,e.securityToken)}));var U=_.a.format({query:M({},N)}),z=e.maxResolution||c()(g.filter((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return v[0]/e*256<.5}))),G=-1!==(e.availableFormats||[]).indexOf(e.format)&&e.format||!e.availableFormats&&e.format||"image/png",q=Object(b.isVectorFormat)(G),B={requestEncoding:t,urls:r.map((function(e){return e+U})),layer:e.name,version:e.version||"1.0.0",matrixSet:l,format:G,style:e.style||"",tileGrid:new C.b({origins:j,origin:j?void 0:[20037508.3428,-20037508.3428],resolutions:v,matrixIds:f.a.limitMatrix((d||f.a.getDefaultMatrixId(e)||[]).map((function(e){return e.identifier})),v.length),sizes:A,extent:F,tileSizes:T,tileSize:!T&&(e.tileSize||[256,256])}),wrapX:!0},W=new L.a(B),H=new(q?k.a:x.a)({msId:e.id,opacity:void 0!==e.opacity?e.opacity:1,zIndex:e.zIndex,maxResolution:z,visible:!1!==e.visibility,source:q?new P.a(M(M({},B),{},{format:new I[e.format]({dataProjection:n}),tileUrlFunction:function(){return W.tileUrlFunction.apply(W,arguments)}})):W});return q&&H.setStyle(Object(E.d)(e)),H};n.default.registerType("wmts",{create:D,update:function(e,t,r){return r.securityToken!==t.securityToken||r.srs!==t.srs||r.format!==t.format||r.style!==t.style?D(t):null},isCompatible:function(e){return!!s()(m.a.getEquivalentSRS(e.srs||"EPSG:3857").filter((function(t){return function(e,t){var r=f.a.getTileMatrix(t,e),n=r.tileMatrixSetName,o=r.tileMatrixSet;return o?m.a.getEPSGCode(o["ows:SupportedCRS"])===e:n===e}(t,e)})))}})},"./MapStore2/web/client/components/map/openlayers/plugins/index.js":function(e,t,r){e.exports={BingLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/BingLayer.js").default,GoogleLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/GoogleLayer.js").default,GraticuleLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/GraticuleLayer.js").default,MapQuest:r("./MapStore2/web/client/components/map/openlayers/plugins/MapQuest.js").default,OSMLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/OSMLayer.js").default,OverlayLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/OverlayLayer.js").default,TMSLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/TMSLayer.js").default,TileProviderLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/TileProviderLayer.js").default,VectorLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/VectorLayer.js").default,WFSLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/WFSLayer.js").default,WFS3Layer:r("./MapStore2/web/client/components/map/openlayers/plugins/WFS3Layer.js").default,WMSLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/WMSLayer.js").default,WMTSLayer:r("./MapStore2/web/client/components/map/openlayers/plugins/WMTSLayer.js").default}},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png":function(e,t,r){e.exports=r.p+"MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"},"./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAQCAYAAACcN8ZaAAAB3klEQVR42s3U4UdDURzG8czMXJnJ1Vwzc6VJZjaZJdlMlpQsKdmUFNOUspRSSqUolfQfr+fF98Vx5mwv9qbDx7LdznnO7/7Omej3+/+Ga0QMUYkhbvBgmhzCQxwxibIGrGEF8CQhU+LLtKQkQNqScUgjxRxTBIxbgfgD/BgnhM8kM5KTeclLQYqGkkMRBckzR8ic/mAgd5BAZplsUaqyIg2sDtHg2brUZJk5SmwopErJUWE8SpmTMhNvya60Zd/SNrR4bkeaskG4uiwRZk6yrJEYFibGAxn+scECHTmTnuVCzvmty3PHciB7bGKN6lQkzysPqIrHmpFhYbKUtckC1/Ioz4ZHuZdbuSLYiRxRpSZVWXZVxAzC0R4Ik5SQsu6w8yd5l2/5kg95I9SdXMoZQfYIUjeqEUrgOkXGPeN4TYRhxy8E+ZUf+eS7B7miIoeybVSjKDnm8u3+gH3pDTYwu1igATvs/pXqvBKiR4i2bNJfi1ZfUAnjgrOG8wY2quNzBKuU/ZS+uSFEl5O0xRGuUIlZCcw7xG5QPkeHYUSNV5WXGou2sC3rBC0LjenqCXGO0WEiTJa0Lr4KixdHBrDGuGGiRqCUpFk8pGIpQtCU7p4YPwxYxEMCk1aAMQZh8Ac8PfbIzYPJOwAAAABJRU5ErkJggg=="},"./MapStore2/web/client/components/print/Choice.jsx":function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var r=0;r0&&e.props.setPage(0)})),p(c(e),"lastPage",(function(){e.props.currentPage0&&e.props.setPage(e.props.currentPage-1)})),p(c(e),"nextPage",(function(){e.props.currentPage=this.props.maxScale,onClick:this.zoomIn},f.createElement(g,{glyph:"zoom-in"})),f.createElement(m,{bsStyle:this.props.buttonStyle,disabled:this.props.scale<=this.props.minScale,onClick:this.zoomOut},f.createElement(g,{glyph:"zoom-out"})),f.createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},this.props.scale,"x"),f.createElement("div",{className:"print-download btn btn-"+this.props.buttonStyle},f.createElement("a",{href:this.props.url,target:"_blank"},f.createElement(g,{glyph:"save"}))),f.createElement(m,{bsStyle:this.props.buttonStyle,disabled:0===this.props.currentPage,onClick:this.firstPage},f.createElement(g,{glyph:"step-backward"})),f.createElement(m,{bsStyle:this.props.buttonStyle,disabled:0===this.props.currentPage,onClick:this.prevPage},f.createElement(g,{glyph:"chevron-left"})),f.createElement("label",{style:{marginLeft:"10px",marginRight:"10px"}},this.props.currentPage+1," / ",this.props.pages),f.createElement(m,{bsStyle:this.props.buttonStyle,disabled:this.props.currentPage===this.props.pages-1,onClick:this.nextPage},f.createElement(g,{glyph:"chevron-right"})),f.createElement(m,{bsStyle:this.props.buttonStyle,disabled:this.props.currentPage===this.props.pages-1,onClick:this.lastPage},f.createElement(g,{glyph:"step-forward"})))):null}}])&&i(t.prototype,r),n&&i(t,n),u}(f.Component);p(_,"propTypes",{url:d.string,scale:d.number,currentPage:d.number,pages:d.number,zoomFactor:d.number,minScale:d.number,maxScale:d.number,back:d.func,setScale:d.func,setPage:d.func,setPages:d.func,style:d.object,buttonStyle:d.string}),p(_,"defaultProps",{url:null,scale:1,minScale:.25,maxScale:8,currentPage:0,pages:1,zoomFactor:2,back:function(){},setScale:function(){},setPage:function(){},setPages:function(){},style:{height:"500px",width:"800px",overflow:"auto",backgroundColor:"#888",padding:"10px"},buttonStyle:"default"}),e.exports=_},"./MapStore2/web/client/components/print/PrintSubmit.jsx":function(e,t,r){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r0&&-1===t.indexOf(n[n.length-1])&&t.concat([n[n.length-1]])||t}),[]).map((function(t){return{name:e.getLayoutName(t),value:t}}))})),e}return t=d,(r=[{key:"render",value:function(){var e=this.props,t=(e.children,e.sheetRegex,e.layouts,i(e,["children","sheetRegex","layouts"]));return m.createElement(g,o({},t,{items:this.getSheetFormats()}))}}])&&s(t.prototype,r),n&&s(t,n),d}(m.Component);f(b,"propTypes",{layouts:h.array,sheetRegex:h.oneOfType([h.object,h.string]),label:h.string,onChange:h.func,selected:h.string,layoutNames:h.oneOfType([h.object,h.func])}),f(b,"defaultProps",{layouts:[],sheetRegex:/^[^_]+/,label:"Sheet Size",onChange:function(){},selected:""}),e.exports=b},"./MapStore2/web/client/libs/cesium.js":function(e,t){e.exports=window.Cesium},"./MapStore2/web/client/libs/mapquest.js":function(e,t){e.exports=window.MQ},"./MapStore2/web/client/plugins/print/index.js":function(e,t,r){var n=r("./node_modules/react/index.js"),o=r("./node_modules/react-redux/es/index.js").connect,i=r("./node_modules/redux/es/index.js").compose,a=r("./MapStore2/web/client/utils/ConfigUtils.js").default,s=r("./node_modules/react-bootstrap/es/index.js"),l=s.FormControl,c=s.FormGroup,u=s.ControlLabel,p=r("./MapStore2/web/client/actions/print.js"),d=p.setPrintParameter,f=p.changePrintZoomLevel,h=p.changeMapPrintPreview,m=p.printCancel,g=r("./MapStore2/web/client/actions/controls.js").setControlProperty,y=function(e){return n.createElement(c,null,e.label&&n.createElement(u,null,e.label)||null,n.createElement(l,e))},b=o((function(e){return{value:e.print&&e.print.spec&&e.print.spec.name||"",type:"text"}}),{onChange:i(d.bind(null,"name"),(function(e){return e.target.value}))})(y),v=o((function(e){return{value:e.print&&e.print.spec&&e.print.spec.description||"",componentClass:"textarea"}}),{onChange:i(d.bind(null,"description"),(function(e){return e.target.value}))})(y),_=o((function(e){return{selected:e.print&&e.print.spec&&e.print.spec.resolution||"",items:e.print&&e.print.capabilities&&e.print.capabilities.dpis.map((function(e){return{name:e.name+" dpi",value:e.value}}))||[]}}),{onChange:d.bind(null,"resolution")})(r("./MapStore2/web/client/components/print/Choice.jsx")),w=o((function(e){return{selected:e.print&&e.print.spec&&e.print.spec.sheet}}),{onChange:d.bind(null,"sheet")})(r("./MapStore2/web/client/components/print/Sheet.jsx")),S=r("./MapStore2/web/client/selectors/print.js"),x=S.currentLayouts,k=S.twoPageEnabled,L=o((function(e){return{checked:e.print&&e.print.spec&&!!e.print.spec.includeLegend,layouts:x(e)}}),{onChange:d.bind(null,"includeLegend")})(r("./MapStore2/web/client/components/print/PrintOption.jsx")),P=o((function(e){return{checked:e.print&&e.print.spec.includeLegend&&e.print.spec&&!!e.print.spec.twoPages,layouts:x(e),isEnabled:function(){return k(e)}}}),{onChange:d.bind(null,"twoPages")})(r("./MapStore2/web/client/components/print/PrintOption.jsx")),C=o((function(e){return{selected:e.print&&e.print.spec&&e.print.spec.landscape?"landscape":"portrait",layouts:x(e),options:[{label:"print.alternatives.landscape",value:"landscape"},{label:"print.alternatives.portrait",value:"portrait"}]}}),{onChange:i(d.bind(null,"landscape"),(function(e){return"landscape"===e}))})(r("./MapStore2/web/client/components/print/PrintOptions.jsx")),O=o((function(e){return{checked:e.print&&e.print.spec&&!!e.print.spec.forceLabels}}),{onChange:d.bind(null,"forceLabels")})(r("./MapStore2/web/client/components/print/PrintOption.jsx")),j=o((function(e){return{checked:e.print&&e.print.spec&&!!e.print.spec.antiAliasing}}),{onChange:d.bind(null,"antiAliasing")})(r("./MapStore2/web/client/components/print/PrintOption.jsx")),A=o((function(e){return{value:e.print&&e.print.spec&&e.print.spec.iconSize,type:"number"}}),{onChange:i(d.bind(null,"iconSize"),(function(e){return parseInt(e.target.value,10)}))})(y),E=o((function(e){return{value:e.print&&e.print.spec&&e.print.spec.legendDpi,type:"number"}}),{onChange:i(d.bind(null,"legendDpi"),(function(e){return parseInt(e.target.value,10)}))})(y),T=o((function(e){return{checked:e.print&&e.print.spec&&!!e.print.spec.defaultBackground}}),{onChange:d.bind(null,"defaultBackground")})(r("./MapStore2/web/client/components/print/PrintOption.jsx")),M=o((function(e){return{family:e.print&&e.print.spec&&e.print.spec.fontFamily,size:e.print&&e.print.spec&&e.print.spec.fontSize,bold:e.print&&e.print.spec&&e.print.spec.bold,italic:e.print&&e.print.spec&&e.print.spec.italic}}),{onChangeFamily:d.bind(null,"fontFamily"),onChangeSize:d.bind(null,"fontSize"),onChangeBold:d.bind(null,"bold"),onChangeItalic:d.bind(null,"italic")})(r("./MapStore2/web/client/components/print/Font.jsx")),R=o((function(e){return{map:e.print&&e.print.map,layers:e.print&&e.print.map&&e.print.map.layers||[],scales:e.print&&e.print.capabilities&&e.print.capabilities.scales.slice(0).reverse().map((function(e){return parseFloat(e.value)}))||[]}}),{onChangeZoomLevel:f,onMapViewChanges:h})(r("./MapStore2/web/client/components/print/MapPreview.jsx")),I=o((function(e){return{loading:e.print&&e.print.isLoading||!1}}))(r("./MapStore2/web/client/components/print/PrintSubmit.jsx")),D=o((function(e){return{url:e.print&&a.getProxiedUrl(e.print.pdfUrl),scale:e.controls&&e.controls.print&&e.controls.print.viewScale||.5,currentPage:e.controls&&e.controls.print&&e.controls.print.currentPage||0,pages:e.controls&&e.controls.print&&e.controls.print.pages||1}}),{back:m,setPage:g.bind(null,"print","currentPage"),setPages:g.bind(null,"print","pages"),setScale:g.bind(null,"print","viewScale")})(r("./MapStore2/web/client/components/print/PrintPreview.jsx"));e.exports={Name:b,Description:v,Resolution:_,DefaultBackgroundOption:T,Sheet:w,LegendOption:L,MultiPageOption:P,LandscapeOption:C,ForceLabelsOption:O,AntiAliasingOption:j,IconSizeOption:A,LegendDpiOption:E,Font:M,MapPreview:R,PrintSubmit:I,PrintPreview:D}},"./MapStore2/web/client/product/assets/symbols/symbolMissing.svg":function(e,t,r){e.exports=r.p+"symbolMissing.svg"},"./MapStore2/web/client/selectors/print.js":function(e,t,r){"use strict";r.r(t),r.d(t,"currentLayouts",(function(){return n})),r.d(t,"twoPageEnabled",(function(){return o}));var n=function(e){return e.print&&e.print.capabilities&&e.print.capabilities.layouts.filter((function(t){return 0===t.name.indexOf(e.print.spec.sheet)}))||[]},o=function(e){return e.print&&e.print.spec&&e.print.spec.includeLegend}},"./MapStore2/web/client/utils/AnnotationsUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"STYLE_CIRCLE",(function(){return S})),r.d(t,"STYLE_POINT_MARKER",(function(){return x})),r.d(t,"STYLE_POINT_SYMBOL",(function(){return k})),r.d(t,"STYLE_TEXT",(function(){return L})),r.d(t,"STYLE_LINE",(function(){return P})),r.d(t,"STYLE_POLYGON",(function(){return C})),r.d(t,"DEFAULT_ANNOTATIONS_STYLES",(function(){return O})),r.d(t,"ANNOTATION_TYPE",(function(){return j})),r.d(t,"getStartEndPointsForLinestring",(function(){return A})),r.d(t,"rgbaTorgb",(function(){return E})),r.d(t,"textAlignTolabelAlign",(function(){return T})),r.d(t,"getStylesObject",(function(){return M})),r.d(t,"getProperties",(function(){return R})),r.d(t,"getDashArrayFromStyle",(function(){return I})),r.d(t,"hasOutline",(function(){return D})),r.d(t,"annStyleToOlStyle",(function(){return F})),r.d(t,"convertGeoJSONToInternalModel",(function(){return N})),r.d(t,"getAvailableStyler",(function(){return U})),r.d(t,"getRelativeStyler",(function(){return z})),r.d(t,"createFont",(function(){return G})),r.d(t,"getGeometryType",(function(){return q})),r.d(t,"getGeometryGlyphInfo",(function(){return B})),r.d(t,"normalizeAnnotation",(function(){return W})),r.d(t,"removeDuplicate",(function(){return H})),r.d(t,"circlesToMultiPolygon",(function(){return V})),r.d(t,"fromCircleToPolygon",(function(){return Z})),r.d(t,"fromTextToPoint",(function(){return Y})),r.d(t,"fromLineStringToGeodesicLineString",(function(){return X})),r.d(t,"textToPoint",(function(){return Q})),r.d(t,"flattenGeometryCollection",(function(){return K})),r.d(t,"createGeometryFromGeomFunction",(function(){return J})),r.d(t,"fromAnnotationToGeoJson",(function(){return $})),r.d(t,"annotationsToPrint",(function(){return ee})),r.d(t,"formatCoordinates",(function(){return te})),r.d(t,"getBaseCoord",(function(){return re})),r.d(t,"getComponents",(function(){return ne})),r.d(t,"addIds",(function(){return oe})),r.d(t,"COMPONENTS_VALIDATION",(function(){return ie})),r.d(t,"validateCoords",(function(){return ae})),r.d(t,"validateCoordsArray",(function(){return se})),r.d(t,"validateCoord",(function(){return le})),r.d(t,"coordToArray",(function(){return ce})),r.d(t,"validateCoordinates",(function(){return ue})),r.d(t,"validateCircle",(function(){return pe})),r.d(t,"validateText",(function(){return de})),r.d(t,"validateFeature",(function(){return fe})),r.d(t,"updateAllStyles",(function(){return he})),r.d(t,"DEFAULT_SHAPE",(function(){return me})),r.d(t,"DEFAULT_PATH",(function(){return ge})),r.d(t,"checkSymbolsError",(function(){return ye})),r.d(t,"isAMissingSymbol",(function(){return be})),r.d(t,"isCompletePolygon",(function(){return ve})),r.d(t,"isAnnotation",(function(){return _e}));var n=r("./node_modules/uuid/v1.js"),o=r.n(n),i=r("./MapStore2/web/client/utils/LocaleUtils.js"),a=r.n(i),s=r("./MapStore2/web/client/utils/MarkerUtils.js"),l=r("./MapStore2/web/client/utils/VectorStyleUtils.js"),c=r("./MapStore2/web/client/utils/ImmutableUtils.js"),u=r("./node_modules/lodash/lodash.js"),p=r("./node_modules/uuid/index.js"),d=r.n(p),f=r("./node_modules/@turf/center/main.es.js"),h=r("./node_modules/object-assign/index.js"),m=r.n(h);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:"";return-1!==e.indexOf("rgba")?"rgb".concat(e.slice(e.indexOf("("),e.lastIndexOf(",")),")"):e},T=function(e){return("start"===e?"lm":"end"===e&&"rm")||"cm"},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=void 0===t?"Point":t,n=e.features,o=void 0===n?[]:n;return"FeatureCollection"===r?o.reduce((function(e,t){return e[t.geometry.type]=O[t.geometry.type],e}),{type:"FeatureCollection"}):v({},O[r])},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v({title:"annotations.defaulttitle"!==a.a.getMessageById(t,"annotations.defaulttitle")?a.a.getMessageById(t,"annotations.defaulttitle"):"Default title",id:o()()},e)},I=function(e){return Object(u.isString)(e)&&e||Object(u.isArray)(e)&&e.join(" ")},D=function(e){return e.color&&e.opacity&&e.weight},F=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=t&&t[e]?t[e]:t,o=n,i=o.dashArray?I(o.dashArray):"solid";switch(e){case"MultiPolygon":case"Polygon":case"Circle":return{strokeColor:E(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,fillColor:E(o.fillColor),fillOpacity:o.fillOpacity,strokeDashstyle:i};case"LineString":case"MultiLineString":return{strokeColor:E(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i};case"Text":var a=D(o)?{labelOutlineColor:E(o.color),labelOutlineOpacity:o.opacity,labelOutlineWidth:o.weight}:{};return v({fontStyle:o.fontStyle,fontSize:o.fontSize,fontFamily:o.fontFamily,fontWeight:o.fontWeight,labelAlign:T(o.textAlign),fontColor:E(o.fillColor),fontOpacity:o.fillOpacity,label:r,stroke:!0,strokeColor:E(o.color),strokeOpacity:o.opacity,strokeWidth:o.weight,strokeDashstyle:i},a);case"Point":case"MultiPoint":var c=o.symbolUrl&&Object(l.fetchStyle)(Object(l.hashAndStringify)(o),"base64")||s.extraMarkers.markerToDataUrl(o),p=-18,d=-46;return o.iconAnchor&&Object(u.isArray)(o.iconAnchor)&&o.size&&(p="pixels"===o.anchorXUnits?-1*o.iconAnchor[0]:-1*o.size*o.iconAnchor[0],d="pixels"===o.anchorYUnits?-1*o.iconAnchor[1]:-1*o.size*o.iconAnchor[1]),c?{graphicWidth:o.size||36,graphicHeight:o.size||46,externalGraphic:c,graphicXOffset:p,graphicYOffset:d,display:!1===o.filtering&&"none"}:{fillColor:"#0000AE",fillOpacity:.5,strokeColor:"#0000FF",pointRadius:10,strokeOpacity:1,strokeWidth:1,display:!1===o.filtering&&"none"};default:return{fillColor:"#FF0000",fillOpacity:0,strokeColor:"#FF0000",pointRadius:5,strokeOpacity:1,strokeDashstyle:i,strokeWidth:1}}},N=function(e){var t=e.type,r=void 0===t?"Point":t,n=e.geometries,o=void 0===n?[]:n,i=e.features,a=void 0===i?[]:i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];switch(r){case"Point":case"MultiPoint":return{type:1===s.length?"Text":r};case"Polygon":return{type:1===l.length?"Circle":r};case"GeometryCollection":var c=o.filter((function(e){return"Point"===e.type||"MultiPoint"===e.type})),u=o.filter((function(e){return"Polygon"===e.type})),p=0,d=0;return{type:"GeometryCollection",geometries:o.map((function(e){if("Point"===e.type||"MultiPoint"===e.type){if(c.length===s.length)return{type:"Text"};if(0===s.length)return{type:e.type};if(0===p)return p++,{type:"Text"}}if("Polygon"===e.type){if(u.length===l.length)return{type:"Circle"};if(0===l.length)return{type:e.type};if(0===d)return d++,{type:"Circle"}}return{type:e.type}}))};case"FeatureCollection":var f=a.map((function(e){return e.properties&&e.properties.isCircle?{type:"Circle"}:e.properties&&e.properties.isText?{type:"Text"}:{type:e.geometry.type}}));return{type:"FeatureCollection",features:f};default:return{type:r}}},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,r=void 0===t?"Point":t,n=e.geometries,o=void 0===n?[]:n,i=e.features,a=void 0===i?[]:i;switch(r){case"Point":case"MultiPoint":case"Symbol":return[w.getRelativeStyler(r)];case"LineString":case"MultiLineString":return[w.getRelativeStyler(r)];case"Polygon":case"MultiPolygon":case"Text":case"Circle":return[w.getRelativeStyler(r)];case"GeometryCollection":return o.reduce((function(e,t){return-1!==e.indexOf(w.getRelativeStyler(t.type))?e:e.concat(w.getAvailableStyler(t))}),[]);case"FeatureCollection":return a.reduce((function(e,t){return-1!==e.indexOf(w.getRelativeStyler(t.type))?e:e.concat(w.getAvailableStyler(t))}),[]);default:return[]}},z=function(e){switch(e){case"Point":case"MultiPoint":return"marker";case"Symbol":return"symbol";case"Circle":return"circle";case"LineString":case"MultiLineString":return"lineString";case"Polygon":case"MultiPolygon":return"polygon";case"Text":return"text";default:return""}},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fontSize,r=void 0===t?"14":t,n=e.fontSizeUom,o=void 0===n?"px":n,i=e.fontFamily,a=void 0===i?"Arial":i,s=e.fontStyle,l=void 0===s?"normal":s,c=e.fontWeight,u=void 0===c?"normal":c;return"".concat(l," ").concat(u," ").concat(r).concat(o," ").concat(a)},q=function(e){var t,r,n;return(null==e||null===(t=e.properties)||void 0===t?void 0:t.isCircle)?"Circle":(null==e||null===(r=e.properties)||void 0===r?void 0:r.isText)?"Text":null==e||null===(n=e.geometry)||void 0===n?void 0:n.type},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Point",t={Point:{glyph:"point",label:"Point"},MultiPoint:{glyph:"point",label:"Point"},LineString:{glyph:"polyline",label:"Line"},MultiLineString:{glyph:"polyline",label:"Line"},Polygon:{glyph:"polygon",label:"Polygon"},MultiPolygon:{glyph:"polygon",label:"Polygon"},Text:{glyph:"font",label:"Text"},Circle:{glyph:"1-circle",label:"Circle"}};return t[e]},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="FeatureCollection"===e.type?v({},e):{type:"Feature",geometry:e},n=M(r),o=R(r.properties,t);return v({style:n,properties:o},r)},H=function(e){return Object(u.values)(e.reduce((function(e,t){return v(v({},e),{},_({},t.properties.id,t))}),{}))},V=function(e,t){var r=e.geometries,n=void 0===r?[]:r,i=t.circles,a=void 0===i?[]:i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,l=a.reduce((function(e,t){return e.concat([n[t].coordinates])}),[]);return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:l},properties:{id:o()(),ms_style:F("Circle",s)}}},Z=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return{type:"Feature",geometry:t.polygonGeom||e,properties:{id:t.id||o()(),ms_style:F("Circle",r)}}},Y=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;return{type:"Feature",geometry:e,properties:{id:t.id||o()(),ms_style:F("Text",r,t.valueText)}}},X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P;return{type:"Feature",geometry:e.geometryGeodesic,properties:{id:e.id||o()(),ms_style:F(e.geometryGeodesic.type,t)}}},Q=function(e,t){var r=e.geometries,n=void 0===r?[]:r,i=t.textGeometriesIndexes,a=void 0===i?[]:i,s=t.textValues,l=void 0===s?[]:s,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;return a.map((function(e,t){return{type:"Feature",geometry:n[e],properties:{id:o()(),ms_style:F("Text",c,l[t])}}}))},K=function(e){var t=e.geometry,r=e.properties,n=e.style,i=r.circles&&w.circlesToMultiPolygon(t,r,n.Circle)||[],a=r.textGeometriesIndexes&&w.textToPoint(t,r,n.Text)||[],s=(r.circles||[]).concat(r.textGeometriesIndexes||[]);return t.geometries.filter((function(e,t){return-1===s.indexOf(t)})).map((function(e){return{type:"Feature",geometry:e,properties:{id:o()(),ms_style:F(e.type,n[e.type])}}})).concat(i,a)},J=function(e){var t=l.geometryFunctions[e.style.geometry]&&l.geometryFunctions[e.style.geometry].type||e.geometry.type,r=e.geometry.coordinates||[];switch(e.style.geometry){case"startPoint":r=Object(u.head)(r);break;case"endPoint":r=Object(u.last)(r);break;case"centerPoint":r=Object(f.a)(e).geometry.coordinates}return{type:t,coordinates:r}},$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geometry,r=e.properties,n=void 0===r?{}:r,i=e.style,a=void 0===i?{}:i,s=a.geometry?w.createGeometryFromGeomFunction({geometry:t,properties:n,style:a,type:"Feature"}):t;return n.isCircle&&"Polygon"===s.type?w.fromCircleToPolygon(s,n,a):n.isText?w.fromTextToPoint(s,n,a):"LineString"===s.type&&n.useGeodesicLines&&a.filtering?w.fromLineStringToGeodesicLineString(n,a):{type:"Feature",geometry:s,properties:{id:n.id||o()(),ms_style:F(s.type,a)}}},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce((function(e,t){return"FeatureCollection"===t.type?e.concat(t.features.map((function(e){return Object(u.castArray)(e.style||t.style||{}).filter((function(e){return!!Object(u.isNil)(e.filtering)||e.filtering})).map((function(t){return w.fromAnnotationToGeoJson(v(v({},e),{},{style:t}))}))})).reduce((function(e,t){return e.concat(t)}),[])):t.geometry&&"GeometryCollection"===t.geometry.type?e.concat(w.flattenGeometryCollection(t)):e.concat({type:"Feature",geometry:t.geometry,properties:v(v({},t.properties),{},{ms_style:F(t.geometry.type,t.style)})})}),[])},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[]];return e.map((function(e){return{lat:e&&e[1],lon:e&&e[0]}}))},re=function(e){switch(e){case"Polygon":case"LineString":case"MultiPoint":return[];default:return[[{lat:"",lon:""}]]}},ne=function(e){var t=e.type,r=e.coordinates;switch(t){case"Polygon":return w.isCompletePolygon(r)?w.formatCoordinates(Object(u.slice)(r[0],0,r[0].length-1)):w.formatCoordinates(r[0]);case"LineString":case"MultiPoint":return w.formatCoordinates(r);default:return w.formatCoordinates([r])}},oe=function(e){return e.map((function(e){return e.properties&&e.properties.id?e:Object(c.set)("properties.id",d.a.v1(),e)}))},ie={Point:{min:1,add:!1,remove:!1,validation:"validateCoordinates",notValid:"Add a valid coordinate to complete the Point"},MultiPoint:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Polygon:{min:3,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 3 valid coordinates to complete the Polygon"},LineString:{min:2,add:!0,remove:!0,validation:"validateCoordinates",notValid:"Add 2 valid coordinates to complete the Polyline"},Circle:{add:!1,remove:!1,validation:"validateCircle",notValid:"Add a valid coordinate and a radius (m) to complete the Circle"},Text:{add:!1,remove:!1,validation:"validateText",notValid:"Add a valid coordinate and a Text value"}},ae=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.lat,r=e.lon;return!isNaN(parseFloat(t))&&!isNaN(parseFloat(r))},se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=g(e,2),r=t[0],n=t[1];return!isNaN(parseFloat(n))&&!isNaN(parseFloat(r))},le=function(e){return!isNaN(parseFloat(e))},ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[e.lon,e.lat]},ue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,r=void 0===t?[]:t,n=e.remove,o=void 0!==n&&n,i=e.type;if(r&&r.length){var a=r.filter(w.validateCoords);return o?a.length>w.COMPONENTS_VALIDATION[i].min&&a.length===r.length:a.length>=w.COMPONENTS_VALIDATION[i].min&&a.length===r.length}return!1},pe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,r=void 0===t?[]:t,n=e.properties,o=void 0===n?{radius:0}:n;if(r&&r.length){var i=Object(u.head)(r);return!isNaN(parseFloat(o.radius))&&w.validateCoords(i)}return!1},de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,r=void 0===t?[]:t,n=e.properties,o=void 0===n?{valueText:""}:n;if(r&&r.length){var i=Object(u.head)(r);return o&&!!o.valueText&&w.validateCoords(i)}return!1},fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.components,r=void 0===t?[[]]:t,n=e.type,o=e.remove,i=void 0!==o&&o,a=e.properties,s=void 0===a?{}:a;return!Object(u.isNil)(n)&&("Text"===n?w.validateText({components:r,properties:s}):"Circle"===n?w.validateCircle({components:r,properties:s}):w.validateCoordinates({components:r,remove:i,type:n}))},he=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.features&&e.features.length?v(v({},e),{},{features:e.features.map((function(e){return m()({},e,{style:Object(u.castArray)(e.style).map((function(e){return m()({},e,t)}))})}))}):e},me="triangle",ge="product/assets/symbols/",ye=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"loading_symbols_path";return e.length&&-1!==Object(u.findIndex)(e,(function(e){return e===t}))},be=function(e){return e.symbolUrlCustomized===r("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")},ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[[[]]],t=e[0].filter(w.validateCoordsArray);return t.length>3&&Object(u.head)(t)[0]===Object(u.last)(t)[0]&&Object(u.head)(t)[1]===Object(u.last)(t)[1]},_e=function(e){return(null==e?void 0:e.type)===j||"Annotations"===(null==e?void 0:e.name)};w={ANNOTATION_TYPE:j,convertGeoJSONToInternalModel:N,getAvailableStyler:U,getRelativeStyler:z,createFont:G,DEFAULT_ANNOTATIONS_STYLES:O,STYLE_CIRCLE:S,STYLE_POINT_MARKER:x,STYLE_POINT_SYMBOL:k,STYLE_TEXT:L,STYLE_LINE:P,STYLE_POLYGON:C,getGeometryType:q,getGeometryGlyphInfo:B,normalizeAnnotation:W,removeDuplicate:H,circlesToMultiPolygon:V,fromCircleToPolygon:Z,fromTextToPoint:Y,fromLineStringToGeodesicLineString:X,textToPoint:Q,flattenGeometryCollection:K,createGeometryFromGeomFunction:J,fromAnnotationToGeoJson:$,annotationsToPrint:ee,formatCoordinates:te,getBaseCoord:re,getComponents:ne,addIds:oe,COMPONENTS_VALIDATION:ie,validateCoords:ae,validateCoordsArray:se,validateCoord:le,coordToArray:ce,validateCoordinates:ue,validateCircle:pe,validateText:de,validateFeature:fe,updateAllStyles:he,getStartEndPointsForLinestring:A,DEFAULT_SHAPE:me,DEFAULT_PATH:ge,checkSymbolsError:ye,isAMissingSymbol:be,isCompletePolygon:ve,getDashArrayFromStyle:I,isAnnotation:_e},t.default=w},"./MapStore2/web/client/utils/ColorUtils.js":function(e,t,r){var n=r("./node_modules/tinycolor2/tinycolor.js"),o=r("./node_modules/lodash/lodash.js").toNumber,i={decToHex:function(e){var t=parseInt(e,10);return t=isNaN(t)?0:t,"0123456789ABCDEF".charAt(((t=t>255||t<0?0:t)-t%16)/16)+"0123456789ABCDEF".charAt(t%16)},rgbToHex:function(e,t,r){return e instanceof Array?i.rgbToHex(e[0],e[1],e[2]):"#"+i.decToHex(e)+i.decToHex(t)+i.decToHex(r)},realToDec:function(e){return Math.min(255,Math.round(256*e))},rgbToHsv:function(e,t,r){if(e instanceof Array)return i.rgbToHsv(e[0],e[1],e[2]);var n,o,a,s,l,c=e/255,u=t/255,p=r/255;switch(n=Math.min(Math.min(c,u),p),a=(o=Math.max(Math.max(c,u),p))-n,o){case n:s=0;break;case c:s=60*(u-p)/a,u0){"#"===t[0]&&(t=e.substring(1));var r=i.hexToRgb(t);return i.rgbToHsv(r)}return null},hexToRgb:function(e){var t,r,n,o=e;return"#"===o.charAt(0)&&(o=e.substring(1)),t=o.charAt(0)+o.charAt(1),r=o.charAt(2)+o.charAt(3),n=o.charAt(4)+o.charAt(5),[parseInt(t,16),parseInt(r,16),parseInt(n,16)]},colorToHexStr:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"red";return n(e).toHexString()},colorToRgbaStr:function(e,t,r){var i=n(e);return e&&i.setAlpha(o(void 0!==t?t:i.getAlpha())).toRgbString()||r}};e.exports=i},"./MapStore2/web/client/utils/ConfigProvider.js":function(e,t,r){"use strict";t.a={OpenStreetMap:{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,credits:{text:"© OpenStreetMap, Open Street Map and contributors, CC-BY-SA",link:"http://www.openstreetmap.org/copyright"},attribution:'© OpenStreetMap'},variants:{Mapnik:{},BlackAndWhite:{url:"http://tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},DE:{url:"http://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png",options:{maxZoom:18,maxNativeZoom:18}},France:{url:"http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png",options:{attribution:"© Openstreetmap France | {attribution.OpenStreetMap}"}},HOT:{url:"http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap}, Tiles courtesy of Humanitarian OpenStreetMap Team'}}}},OpenSeaMap:{url:"http://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'Map data: © OpenSeaMap contributors',credits:{text:"Map data: © OpenSeaMap contributors",link:"http://www.openseamap.org"}}},OpenPtMap:{url:"http://openptmap.org/tiles/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: © OpenPtMap contributors'}},OpenTopoMap:{url:"https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",options:{maxZoom:17,attribution:'Map data: {attribution.OpenStreetMap}, SRTM | Map style: © OpenTopoMap (CC-BY-SA)'}},OpenRailwayMap:{url:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenRailwayMap (CC-BY-SA)'}},OpenFireMap:{url:"http://openfiremap.org/hytiles/{z}/{x}/{y}.png",options:{maxZoom:19,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © OpenFireMap (CC-BY-SA)'}},SafeCast:{url:"https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png",options:{maxZoom:16,attribution:'Map data: {attribution.OpenStreetMap} | Map style: © SafeCast (CC-BY-SA)'}},CyclOSM:{url:"https://dev.{s}.tile.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png",options:{maxZoom:20,attribution:'CyclOSM | Map data: {attribution.OpenStreetMap}'}},OpenMapSurfer:{url:"https://maps.heigit.org/openmapsurfer/tiles/{variant}/webmercator/{z}/{x}/{y}.png",options:{maxZoom:19,variant:"roads",attribution:'Imagery from GIScience Research Group @ University of Heidelberg | Map data '},variants:{Roads:{options:{variant:"roads",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},Hybrid:{options:{variant:"hybrid",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},AdminBounds:{options:{variant:"adminb",maxZoom:18,attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}},ContourLines:{options:{variant:"asterc",maxZoom:18,minZoom:13,attribution:'{attribution.OpenMapSurfer} ASTER GDEM'}},Hillshade:{options:{variant:"asterh",maxZoom:18,attribution:'{attribution.OpenMapSurfer} ASTER GDEM, SRTM'}},ElementsAtRisk:{options:{variant:"elements_at_risk",attribution:"{attribution.OpenMapSurfer}{attribution.OpenStreetMap}"}}}},Hydda:{url:"https://{s}.tile.openstreetmap.se/hydda/{variant}/{z}/{x}/{y}.png",options:{maxZoom:18,variant:"full",attribution:'Tiles courtesy of OpenStreetMap Sweden — Map data {attribution.OpenStreetMap}'},variants:{Full:"full",Base:"base",RoadsAndLabels:"roads_and_labels"}},Thunderforest:{url:"https://{s}.tile.thunderforest.com/{variant}/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:'© OpenCycleMap, {attribution.OpenStreetMap}',credits:{text:"Map data: OpenCycleMap contributors",link:"http://www.opencyclemap.org"},variant:"cycle"},variants:{OpenCycleMap:"cycle",Transport:{options:{variant:"transport",maxZoom:19,maxNativeZoom:19}},TransportDark:{options:{variant:"transport-dark",maxZoom:19,maxNativeZoom:19}},Landscape:"landscape",Outdoors:"outdoors"}},MapQuestOpen:{url:"http://otile{s}.mqcdn.com/tiles/1.0.0/{type}/{z}/{x}/{y}.{ext}",options:{maxNativeZoom:18,type:"map",ext:"jpg",attribution:'Tiles Courtesy of MapQuest — Map data {attribution.OpenStreetMap}',subdomains:["1","2","3","4"]},variants:{OSM:{},Aerial:{options:{type:"sat",attribution:'Tiles Courtesy of MapQuest — Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency'}},HybridOverlay:{options:{type:"hyb",ext:"png",opacity:.9}}}},MapBox:{url:"https://api.tiles.mapbox.com/v4/{source}/{z}/{x}/{y}.png?access_token={accessToken}",options:{maxNativeZoom:18,attribution:'Imagery from MapBox — Map data {attribution.OpenStreetMap}',subdomains:["a","b","c","d"]}},MapBoxStyle:{url:"https://api.mapbox.com/styles/v1/mapbox/{source}/tiles/{z}/{x}/{y}?access_token={accessToken}",options:{attribution:'Imagery from MapBox',subdomains:["a","b","c","d"]}},Stamen:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{attribution:'Map tiles by Stamen Design, CC BY 3.0 — Map data {attribution.OpenStreetMap}',subdomains:"abcd",minZoom:0,maxZoom:20,variant:"toner",ext:"png"},variants:{Toner:"toner",TonerBackground:"toner-background",TonerHybrid:"toner-hybrid",TonerLines:"toner-lines",TonerLabels:"toner-labels",TonerLite:"toner-lite",Watercolor:{url:"https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}",options:{variant:"watercolor",ext:"jpg",minZoom:1,maxZoom:16}},Terrain:{options:{variant:"terrain",minZoom:0,maxZoom:18}},TerrainBackground:{options:{variant:"terrain-background",minZoom:0,maxZoom:18}},TerrainLabels:{options:{variant:"terrain-labels",minZoom:0,maxZoom:18}}}},Esri:{url:"https://server.arcgisonline.com/ArcGIS/rest/services/{variant}/MapServer/tile/{z}/{y}/{x}",options:{maxNativeZoom:18,variant:"World_Street_Map",attribution:"Tiles © Esri"},variants:{WorldStreetMap:{options:{attribution:"{attribution.Esri} — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"}},DeLorme:{options:{variant:"Specialty/DeLorme_World_Base_Map",minZoom:1,maxZoom:11,maxNativeZoom:11,attribution:"{attribution.Esri} — Copyright: ©2012 DeLorme"}},WorldTopoMap:{options:{variant:"World_Topo_Map",attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community"}},WorldImagery:{options:{variant:"World_Imagery",attribution:"{attribution.Esri} — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}},WorldTerrain:{options:{variant:"World_Terrain_Base",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: USGS, Esri, TANA, DeLorme, and NPS"}},WorldShadedRelief:{options:{variant:"World_Shaded_Relief",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Source: Esri"}},WorldPhysical:{options:{variant:"World_Physical_Map",maxZoom:8,maxNativeZoom:8,attribution:"{attribution.Esri} — Source: US National Park Service"}},OceanBasemap:{options:{variant:"Ocean_Basemap",maxZoom:13,maxNativeZoom:13,attribution:"{attribution.Esri} — Sources: GEBCO, NOAA, CHS, OSU, UNH, CSUMB, National Geographic, DeLorme, NAVTEQ, and Esri"}},NatGeoWorldMap:{options:{variant:"NatGeo_World_Map",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — National Geographic, Esri, DeLorme, NAVTEQ, UNEP-WCMC, USGS, NASA, ESA, METI, NRCAN, GEBCO, NOAA, iPC"}},WorldGrayCanvas:{options:{variant:"Canvas/World_Light_Gray_Base",maxZoom:16,maxNativeZoom:16,attribution:"{attribution.Esri} — Esri, DeLorme, NAVTEQ"}}}},OpenWeatherMap:{url:"http://{s}.tile.openweathermap.org/map/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:'Map data © OpenWeatherMap',opacity:.5},variants:{Clouds:"clouds",CloudsClassic:"clouds_cls",Precipitation:"precipitation",PrecipitationClassic:"precipitation_cls",Rain:"rain",RainClassic:"rain_cls",Pressure:"pressure",PressureContour:"pressure_cntr",Wind:"wind",Temperature:"temp",Snow:"snow"}},HERE:{url:"https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/maptile/{mapID}/{variant}/{z}/{x}/{y}/256/png8?app_id={app_id}&app_code={app_code}",options:{attribution:'Map © 1987-2014 HERE',subdomains:["1","2","3","4"],mapID:"newest",app_id:"",app_code:"",base:"base",variant:"normal.day",maxZoom:20,maxNativeZoom:20},variants:{normalDay:"normal.day",normalDayCustom:"normal.day.custom",normalDayGrey:"normal.day.grey",normalDayMobile:"normal.day.mobile",normalDayGreyMobile:"normal.day.grey.mobile",normalDayTransit:"normal.day.transit",normalDayTransitMobile:"normal.day.transit.mobile",normalNight:"normal.night",normalNightMobile:"normal.night.mobile",normalNightGrey:"normal.night.grey",normalNightGreyMobile:"normal.night.grey.mobile",carnavDayGrey:"carnav.day.grey",hybridDay:{options:{base:"aerial",variant:"hybrid.day"}},hybridDayMobile:{options:{base:"aerial",variant:"hybrid.day.mobile"}},pedestrianDay:"pedestrian.day",pedestrianNight:"pedestrian.night",satelliteDay:{options:{base:"aerial",variant:"satellite.day"}},terrainDay:{options:{base:"aerial",variant:"terrain.day"}},terrainDayMobile:{options:{base:"aerial",variant:"terrain.day.mobile"}}}},Acetate:{url:"http://a{s}.acetate.geoiq.com/tiles/{variant}/{z}/{x}/{y}.png",options:{attribution:"©2012 Esri & Stamen, Data from OSM and Natural Earth",subdomains:["0","1","2","3"],minZoom:2,maxZoom:18,maxNativeZoom:18,variant:"acetate-base"},variants:{basemap:"acetate-base",terrain:"terrain",all:"acetate-hillshading",foreground:"acetate-fg",roads:"acetate-roads",labels:"acetate-labels",hillshading:"hillshading"}},FreeMapSK:{url:"http://t{s}.freemap.sk/T/{z}/{x}/{y}.jpeg",options:{minZoom:8,maxZoom:16,maxNativeZoom:16,subdomains:["1","2","3","4"],bounds:[[47.204642,15.996093],[49.830896,22.576904]],attribution:'{attribution.OpenStreetMap}, vizualization CC-By-SA 2.0 Freemap.sk'}},MtbMap:{url:"http://tile.mtbmap.cz/mtbmap_tiles/{z}/{x}/{y}.png",options:{maxNativeZoom:18,attribution:"{attribution.OpenStreetMap} & USGS"}},CartoDB:{url:"https://{s}.basemaps.cartocdn.com/{variant}/{z}/{x}/{y}.png",options:{attribution:'{attribution.OpenStreetMap} © CartoDB',subdomains:["a","b","c","d"],maxZoom:19,maxNativeZoom:19,variant:"light_all"},variants:{Positron:"light_all",PositronNoLabels:"light_nolabels",PositronOnlyLabels:"light_only_labels",DarkMatter:"dark_all",DarkMatterNoLabels:"dark_nolabels",DarkMatterOnlyLabels:"dark_only_labels"}},HikeBike:{url:"http://{s}.tiles.wmflabs.org/{variant}/{z}/{x}/{y}.png",options:{maxZoom:19,maxNativeZoom:19,attribution:"{attribution.OpenStreetMap}",variant:"hikebike"},variants:{HikeBike:{},HillShading:{options:{maxZoom:15,maxNativeZoom:15,variant:"hillshading"}}}},BasemapAT:{url:"https://maps{s}.wien.gv.at/basemap/{variant}/normal/google3857/{z}/{y}/{x}.{format}",options:{maxZoom:19,maxNativeZoom:19,attribution:'Datenquelle: basemap.at',subdomains:["","1","2","3","4"],format:"png",bounds:[[46.35877,8.782379],[49.037872,17.189532]],variant:"geolandbasemap"},variants:{basemap:"geolandbasemap",grau:"bmapgrau",overlay:"bmapoverlay",highdpi:{options:{variant:"bmaphidpi",format:"jpeg"}},orthofoto:{options:{variant:"bmaporthofoto30cm",format:"jpeg"}}}},NASAGIBS:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}9/{z}/{y}/{x}.{format}",options:{attribution:'Imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.',credits:{text:"Black Marble imagery courtesy NASA Earth Observatory"},bounds:[[-85.0511287776,-179.999999975],[85.0511287776,179.999999975]],minZoom:1,maxZoom:9,maxNativeZoom:9,format:"jpg",time:"",tilematrixset:"GoogleMapsCompatible_Level"},variants:{ModisTerraTrueColorCR:"MODIS_Terra_CorrectedReflectance_TrueColor",ModisTerraBands367CR:"MODIS_Terra_CorrectedReflectance_Bands367",ViirsEarthAtNight2012:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"VIIRS_CityLights_2012",maxZoom:8,maxNativeZoom:8}},ModisTerraLSTDay:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Land_Surface_Temp_Day",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}},ModisTerraSnowCover:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}8/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Snow_Cover",format:"png",maxZoom:8,maxNativeZoom:8,opacity:.75}},ModisTerraAOD:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}6/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Aerosol",format:"png",maxZoom:6,maxNativeZoom:6,opacity:.75}},ModisTerraChlorophyll:{url:"https://map1.vis.earthdata.nasa.gov/wmts-webmerc/{variant}/default/{time}/{tilematrixset}7/{z}/{y}/{x}.{format}",options:{variant:"MODIS_Terra_Chlorophyll_A",format:"png",maxZoom:7,maxNativeZoom:7,opacity:.75}}}},NLS:{url:"https://nls-{s}.tileserver.com/{variant}/{z}/{x}/{y}.jpg",options:{attribution:'National Library of Scotland Historic Maps',bounds:[[49.6,-12],[61.7,3]],minZoom:1,maxZoom:18,maxNativeZoom:18,subdomains:["0","1","2","3"]},variants:{OS_1900:"NLS_API",OS_1920:"nls",OS_opendata:{url:"http://geo.nls.uk/maps/opendata/{z}/{x}/{y}.png",options:{maxZoom:16,maxNativeZoom:16}},OS_6inch_1st:{url:"http://geo.nls.uk/maps/os/six_inch/{z}/{x}/{y}.png",options:{tms:!0,minZoom:6,maxZoom:16,maxNativeZoom:16,bounds:[[49.86261,-8.66444],[60.89421,1.7785]]}},OS_6inch:"os_6_inch_gb",OS_25k:"25k",OS_npe:{url:"http://geo.nls.uk/maps/os/newpopular/{z}/{x}/{y}.png",options:{tms:!0,minZoom:3,maxZoom:15,maxNativeZoom:15}},OS_7th:"os7gb",OS_London:{options:{variant:"London_1056",minZoom:9,maxNativeZoom:9,bounds:[[51.177621,-.708618],[51.618016,.355682]]}},GSGS_Ireland:{url:"http://geo.nls.uk/maps/ireland/gsgs4136/{z}/{x}/{y}.png",options:{tms:!0,minZoom:5,maxZoom:15,maxNativeZoom:15,bounds:[[51.37178,-10.810546],[55.422779,-5.262451]]}}}},LINZ:{url:"http://tiles-{s}.data-cdn.linz.govt.nz/services;key={linzAPIkey}/tiles/v4/{variant}/{tilematrixset}/{z}/{x}/{y}.png",options:{attribution:'Sourced from LINZ. CC-BY 4.0',subdomains:["a","b","c","d"],linzAPIkey:"",variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22},variants:{nz_aerial_imagery:{options:{attribution:'Sourced from LINZ. CC-BY 4.0',variant:"set=4702",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50767",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo50_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52343",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_gridless_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=52324",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_topo250_maps:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"layer=50798",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}},nz_parcel_boundaries_wireframe:{options:{attribution:'Sourced from the LINZ Data Service and licensed for reuse under the CC BY 4.0 license',variant:"set=4769",tilematrixset:"EPSG:3857",maxZoom:22,maxNativeZoom:22}}}},PDOK:{url:"https://geodata.nationaalgeoregister.nl/tiles/service/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{attribution:'BRT Achtergrondkaart by Kadaster, CC BY 4.0',format:"png",bounds:[[48.0405018704,-1.65729160235],[56.1105896442,12.4317272654]],minZoom:6,maxZoom:19,maxNativeZoom:19},variants:{brtachtergrondkaart:"brtachtergrondkaart",brtachtergrondkaartgrijs:"brtachtergrondkaartgrijs",brtachtergrondkaartpastel:"brtachtergrondkaartpastel",brtachtergrondkaartwater:"brtachtergrondkaartwater",luchtfotoRGB:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25",attribution:'Luchtfoto Actueel Ortho 25cm RGB by Beeldmateriaal.nl, CC BY 4.0'}},luchtfotoIR:{url:"https://geodata.nationaalgeoregister.nl/luchtfoto/rgb/wmts?layer={variant}&tilematrixset=EPSG:3857&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image%2Fpng&TileMatrix={z}&TileCol={x}&TileRow={y}",options:{variant:"Actueel_ortho25IR",attribution:'Luchtfoto Actueel Ortho 25cm Infrarood by Beeldmateriaal.nl, CC BY 4.0'}}}}}},"./MapStore2/web/client/utils/ElevationUtils.js":function(e,t,r){var n=r("./MapStore2/web/client/libs/ajax.js"),o=r("./node_modules/lrucache/index.js"),i=r("./node_modules/es6-promise/dist/es6-promise.js").Promise,a=new o(100),s=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-9999,i=n*e+r;try{var a=t.dataView.getInt16(2*i,!1);if(a!==o&&32767!==a&&-32768!==a)return a}catch(e){}return null};e.exports={loadTile:function(e,t,r){return a.has(r)?null:new i((function(o,i){n.get(e,{responseType:"arraybuffer"}).then((function(e){!function(e,t,r){a.set(r,{data:e,dataView:new DataView(e),coords:t,current:!0,status:"success"})}(e.data,t,r),o()})).catch((function(e){!function(e,t,r){a.set(r,{coords:t,current:!0,status:"error: "+e})}(e.message,t,r),i(e)}))}))},getElevation:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-9999,o=a.get(e);return o&&"success"===o.status?{available:!0,value:s(r,o,t.x,t.y,n)}:o&&"loading"===o.status?{available:!1,message:"elevationLoading"}:o&&"error"===o.status?{available:!1,message:"elevationLoadingError"}:{available:!1,message:"elevationNotAvailable"}},reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a=new o(e.max||100)}}},"./MapStore2/web/client/utils/MarkerUtils.js":function(module,exports,__webpack_require__){function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var csstree=__webpack_require__("./node_modules/css-tree/lib/index.js"),assign=__webpack_require__("./node_modules/object-assign/index.js"),css={fontawesome:__webpack_require__("./node_modules/raw-loader/index.js!./MapStore2/web/client/utils/font-awesome.txt")},baseImageUrl=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_default.png"),shadowImageUrl=__webpack_require__("./MapStore2/web/client/components/mapcontrols/annotations/img/markers_shadow.png"),baseImage=new Image,shadowImage=new Image;baseImage.src=baseImageUrl,shadowImage.src=shadowImageUrl;var getNodeOfType=function e(t,r){return r(t)?t:t.children?t.children.reduce((function(t,n){return e(n,r)||t}),null):null},glyphs={},loadGlyphs=function loadGlyphs(font){var parsedCss=csstree.toPlainObject(csstree.parse(css[font]));return parsedCss.children.reduce((function(previous,rule){if(rule.prelude){var classSelector=getNodeOfType(rule.prelude,(function(e){return"ClassSelector"===e.type})),pseudoClassSelector=getNodeOfType(rule.prelude,(function(e){return"PseudoClassSelector"===e.type}));if(classSelector&&classSelector.name&&0===classSelector.name.indexOf("fa-")&&pseudoClassSelector&&"before"===pseudoClassSelector.name){var text=getNodeOfType(getNodeOfType(rule.block,(function(e){return"Declaration"===e.type&&"content"===e.property})).value,(function(e){return"String"===e.type})).value;return assign(previous,_defineProperty({},classSelector.name.substring(3),eval("'\\u"+text.substring(2,text.length-1)+"'")))}}return previous}),{})},extraMarkers={size:[36,46],colors:["red","orange-dark","orange","yellow","blue-dark","blue","cyan","purple","violet","pink","green-dark","green","green-light","black"],shapes:["circle","square","star","penta"],icons:[baseImageUrl,shadowImageUrl],images:[shadowImage,baseImage]},getOffsets=function(e,t){return[-extraMarkers.colors.indexOf(e)*extraMarkers.size[0]-2,-extraMarkers.shapes.indexOf(t)*extraMarkers.size[1]]},MarkerUtils={extraMarkers:assign({},extraMarkers,{getOffsets:getOffsets,markerToDataUrl:function(e){var t=e.iconColor,r=e.iconShape,n=e.iconGlyph;if(MarkerUtils.extraMarkers.images){var o=document.createElement("canvas"),i=extraMarkers.size;o.width=i[0],o.height=i[1];var a=o.getContext("2d"),s=getOffsets(t,r);a.drawImage(extraMarkers.images[0],4,31,35,16),a.drawImage(extraMarkers.images[1],Math.abs(s[0]),Math.abs(s[1]),i[0],i[1],0,0,i[0],i[1]),a.font="14px FontAwesome",a.fillStyle="rgb(255,255,255)",a.textBaseline="middle",a.textAlign="center",a.fillText(MarkerUtils.getGlyphs("fontawesome")[n]||"",i[0]/2-2,i[1]/2-7);var l=o.toDataURL("image/png");return o=null,l}return null},matches:function(e,t){return e.iconColor===t.color&&e.iconShape===t.shape},getStyle:function(e){return{iconColor:e.color,iconShape:e.shape}},getGrid:function(){return extraMarkers.shapes.map((function(e){return{name:e,markers:extraMarkers.colors.map((function(t){return{name:t,width:extraMarkers.size[0],height:extraMarkers.size[1],offsets:getOffsets(t,e),style:{color:t,shape:e},thumbnailStyle:{backgroundImage:"url("+extraMarkers.icons[0]+")",width:extraMarkers.size[0]+"px",height:extraMarkers.size[1]+"px",backgroundPositionX:getOffsets(t,e)[0],backgroundPositionY:getOffsets(t,e)[1],cursor:"pointer"}}}))}}))}}),getGlyphs:function(e){return glyphs[e]||(glyphs[e]=loadGlyphs(e)),glyphs[e]}};MarkerUtils.markers={extra:MarkerUtils.extraMarkers},module.exports=MarkerUtils},"./MapStore2/web/client/utils/PrintUtils.js":function(e,t,r){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?Promise.all(t.map((function(t){return P(t.url,t.name,a({outputFormat:"application/json",srsName:e.projection},p(t)||{})).then((function(e){var r=e.data;return{id:t.id,geoJson:r}}))}))).then((function(t){return a(a({},e),{},{layers:(e.layers||[]).map((function(e){var r=S(t,{id:e.id});return"wfs"===e.type&&r?a(a({},e),r):e}))})})):new Promise((function(t){t(e)}))},toAbsoluteURL:function(e,t){return-1!==e.search(/^\/\//)?window.location.protocol+e:-1!==e.search(/:\/\//)?e:-1!==e.search(/^\//)?(t||window.location.origin)+e:e},normalizeUrl:function(e){var t=_(e)?e[0]:e;return-1!==t.indexOf("?")&&(t=t.substring(0,t.indexOf("?"))),M.toAbsoluteURL(t)},getLayoutName:function(e){var t=[e.sheet];return e.includeLegend?e.twoPages&&t.push("2_pages_legend"):t.push("no_legend"),e.landscape&&t.push("landscape"),t.join("_")},getPrintScales:function(e){return e.scales.slice(0).reverse().map((function(e){return parseFloat(e.value)}))||[]},getNearestZoom:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j,n=r[Math.round(e)];return t.reduce((function(e,t,r){return t2&&void 0!==arguments[2]?arguments[2]:j,n=t[Math.round(e)];return r.reduce((function(e,t,r){return t0&&void 0!==arguments[0]?arguments[0]:{};return{baseURL:"http://a.tile.openstreetmap.org/",opacity:T(e),singleTile:!1,type:"OSM",maxExtent:[-20037508.3392,-20037508.3392,20037508.3392,20037508.3392],tileSize:[256,256],extension:"png",resolutions:[156543.03390625,78271.516953125,39135.7584765625,19567.87923828125,9783.939619140625,4891.9698095703125,2445.9849047851562,1222.9924523925781,611.4962261962891,305.74811309814453,152.87405654907226,76.43702827453613,38.218514137268066,19.109257068634033,9.554628534317017,4.777314267158508,2.388657133579254,1.194328566789627,.5971642833948135]}}},mapquest:{map:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{baseURL:"http://otile1.mqcdn.com/tiles/1.0.0/map/",opacity:T(e),singleTile:!1,type:"OSM",maxExtent:[-20037508.3392,-20037508.3392,20037508.3392,20037508.3392],tileSize:[256,256],extension:"png",resolutions:[156543.03390625,78271.516953125,39135.7584765625,19567.87923828125,9783.939619140625,4891.9698095703125,2445.9849047851562,1222.9924523925781,611.4962261962891,305.74811309814453,152.87405654907226,76.43702827453613,38.218514137268066,19.109257068634033,9.554628534317017,4.777314267158508,2.388657133579254,1.194328566789627,.5971642833948135]}}},wmts:{map:function(e,t){var r=t.projection,n=g.getTileMatrix(e,r),o=n.tileMatrixSet,i=n.tileMatrixSetName;if(!o)throw Error("tile matrix not found for pdf EPSG"+r);var s=M.getWMTSMatrixIds(e,o),l=M.normalizeUrl(L(e.url)[0]),u={};return l.indexOf("{Style}")>=0&&(u={dimensions:["Style"],params:{STYLE:e.style}}),a(a({baseURL:encodeURI(l),format:e.format||"image/png",type:"WMTS",layer:e.name,"customParams ":c.addAuthenticationParameter(e.capabilitiesURL,A({TRANSPARENT:!0}))},u),{},{matrixIds:s,matrixSet:i,style:e.style,name:e.name,requestEncoding:"RESTful"===e.requestEncoding?"REST":e.requestEncoding,opacity:T(e),version:e.version||"1.0.0"})}},tileprovider:{map:function(e){var t=n(h(e.provider,e),2),r=t[0],o=t[1];if(!x(o)){var i,s=m(a(a({},o),{},{url:null!==(i=null==o?void 0:o.url)&&void 0!==i?i:r}));if(!s)throw Error("No base URL found for this layer");var l=s.indexOf("{");return{baseURL:s.slice(0,l),path_format:s.slice(l).replace("{x}","${x}").replace("{y}","${y}").replace("{z}","${z}"),type:"xyz",extension:s.split(".").pop()||"png",opacity:T(e),tileSize:[256,256],maxExtent:[-20037508.3392,-20037508.3392,20037508.3392,20037508.3392],resolutions:[156543.03390625,78271.516953125,39135.7584765625,19567.87923828125,9783.939619140625,4891.9698095703125,2445.9849047851562,1222.9924523925781,611.4962261962891,305.74811309814453,152.87405654907226,76.43702827453613,38.218514137268066,19.109257068634033,9.554628534317017,4.777314267158508,2.388657133579254,1.194328566789627,.5971642833948135].filter((function(e,t){var r=!0;return o.maxNativeZoom&&(r=r&&t<=o.maxNativeZoom),r}))}}return{}}},tms:{map:function(e){var t=e.tileMapUrl.split(e.tileMapService+"/")[1];return{type:"tms",opacity:T(e),layer:t,baseURL:e.tileMapService.substring(0,e.tileMapService.lastIndexOf("/1.0.0")),tileSize:e.tileSize,format:y(e.tileMapUrl),maxExtent:[-20037508.3392,-20037508.3392,20037508.3392,20037508.3392],resolutions:e.tileSets.map((function(e){return e.resolution}))}}}},getWMTSMatrixIds:function(e,t){var r=[],n=l.normalizeSRS(e.srs||"EPSG:3857",e.allowedSRS),o=b(n),i=o.getMetersPerUnit();return t&&t.TileMatrix.map((function(e){var t=e["ows:Identifier"],n=28e-5*e.ScaleDenominator/i,o=[k(e.TileWidth),k(e.TileHeight)],a=e.TopLeftCorner&&e.TopLeftCorner.split(" ").map((function(e){return k(e)})),s=[k(e.MatrixWidth),k(e.MatrixHeight)];return r.push({identifier:t,matrixSize:s,resolution:n,tileSize:o,topLeftCorner:a})})),r},rgbaTorgb:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return-1!==e.indexOf("rgba")?"rgb".concat(e.slice(e.indexOf("("),e.lastIndexOf(",")),")"):e},toOpenLayers2Style:function(e,t,r){return t&&"marker"!==e.styleName?{fillColor:f(t.fillColor),fillOpacity:t.fillOpacity,externalGraphic:t.iconUrl,pointRadius:t.radius,strokeColor:f(t.color),strokeOpacity:t.opacity,strokeWidth:t.weight}:M.getOlDefaultStyle(e,r)},getOlDefaultStyle:function(e,t){switch(t||function(e){return e.features&&e.features[0]&&e.features[0].geometry?e.features[0].geometry.type:e.features&&e.features[0].features&&e.features[0].style&&e.features[0].style.type?e.features[0].style.type:void 0}(e)||""){case"Polygon":case"MultiPolygon":return{fillColor:"#0000FF",fillOpacity:.1,strokeColor:"#0000FF",strokeOpacity:1,strokeWidth:3,strokeDashstyle:"dash",strokeLinecap:"round"};case"MultiLineString":case"LineString":return{strokeColor:"#0000FF",strokeOpacity:1,strokeWidth:3};case"Point":case"MultiPoint":return"marker"===e.styleName?{externalGraphic:"http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/images/marker-icon.png",graphicWidth:25,graphicHeight:41,graphicXOffset:-12,graphicYOffset:-41}:{fillColor:"#FF0000",fillOpacity:0,strokeColor:"#FF0000",pointRadius:5,strokeOpacity:1,strokeWidth:1};default:return{fillColor:"#0000FF",fillOpacity:.1,strokeColor:"#0000FF",pointRadius:5,strokeOpacity:1,strokeWidth:1}}}};e.exports=M},"./MapStore2/web/client/utils/ProxyUtils.js":function(e,t,r){var n=r("./MapStore2/web/client/utils/ConfigUtils.js").default,o=r("./node_modules/lodash/lodash.js"),i=o.isArray,a=o.isObject,s={needProxy:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(e))return e.reduce((function(e,t){return s.needProxy(t)&&e}),!0);var r=!1,o=!(0===e.indexOf("http")),l=!o&&e.match(/([^:]*:)\/\/([^:]*:?[^@]*@)?([^:\/\?]*):?([^\/\?]*)/);if(l){var c=window.location;o=l[1]===c.protocol&&l[3]===c.hostname;var u=l[4],p=c.port;(80!==u&&""!==u||"80"!==p&&""!==p)&&(o=o&&u===p)}if(!o){var d=n.getProxyUrl(t);if(d){var f=[];a(d)&&(f=d.useCORS||[],d=d.url);var h=f.reduce((function(t,r){return t||0===e.indexOf(r)}),!1);h||(r=!0)}}return r},getProxyUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.getProxyUrl(e);return t&&a(t)&&(t=t.url),t}};e.exports=s},"./MapStore2/web/client/utils/TMSUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"guessFormat",(function(){return o}));var n=r("./node_modules/lodash/lodash.js"),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("?")[0].split("@");if(t.length>1){var r=t[t.length-1];if(Object(n.includes)(["png","png8","jpeg","vnd.jpeg-png","gif"],r))return r}return null}},"./MapStore2/web/client/utils/TileConfigProvider.js":function(e,t,r){"use strict";r.r(t);var n=r("./node_modules/lodash/lodash.js"),o=r("./MapStore2/web/client/utils/ConfigProvider.js"),i=r("./MapStore2/web/client/utils/ConfigUtils.js");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/(\{(.*?)\})/g,(function(){var e=arguments[0],r=arguments[2]?arguments[2]:arguments[1];if(["x","y","z"].includes(r))return arguments[0];var n=t[r];if(void 0===n)throw new Error("No value provided for variable "+e);return"function"==typeof n&&(n=n(t)),n}))}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url||"",r=e.subdomains||"";return r&&("string"==typeof r&&(r=r.split("")),n(r))?r.map((function(r){return o(t.replace("{s}",r),e)})):["a","b","c"].map((function(r){return o(t.replace("{s}",r),e)}))}e.exports={extractValidBaseURL:function(e){return(e.url.match(/(\{s\})/)?i(e):[o(e.url,e)])[0]},getUrls:i,template:o}},"./MapStore2/web/client/utils/VectorStyleUtils.js":function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.filter((function(t){return!a(e[t])})).length>0},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["color","opacity","dashArray","dashOffset","lineCap","lineJoin","weight"];return f(e,t)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["fillColor","fillOpacity"];return f(e,t)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["label","font","fontFamily","fontSize","fontStyle","fontWeight","textAlign","textRotationDeg"];return f(e,t)},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["radius"];return f(e,t)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["iconGlyph","iconShape","iconUrl"];return f(e,t)},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["symbolUrl"];return f(e,t)},_={centerPoint:{type:"Point",func:function(){}},lineToArc:{type:"LineString",func:function(){}},startPoint:{type:"Point",func:function(){}},endPoint:{type:"Point",func:function(){}}},w=function(e){var t,r=0;if(0===e.length)return r;for(t=0;t1&&void 0!==arguments[1]?arguments[1]:"style";return S[e]&&S[e][t]},L=function(e){if(e)return w(JSON.stringify(e));throw new Error("hashAndStringify: specify mandatory params: style")},P=function(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return v(e)&&e.symbolUrl?c.get(t,{"Content-Type":"image/svg+xml;charset=utf-8"}).then((function(t){var r=window.URL||window.webkitURL||window,n=(new DOMParser).parseFromString(t.data,"image/svg+xml").firstElementChild;n.setAttribute("fill",e.fillColor||"#FFCC33"),n.setAttribute("fill-opacity",a(e.fillOpacity)?.2:e.fillOpacity),n.setAttribute("stroke",l(e.color||"#FFCC33",a(e.opacity)?1:e.opacity)),n.setAttribute("stroke-opacity",a(e.opacity)?1:e.opacity),n.setAttribute("stroke-width",e.weight||1),n.setAttribute("width",e.size||32),n.setAttribute("height",e.size||32),n.setAttribute("stroke-dasharray",e.dashArray||"none");var i=new Blob([P(n)],{type:"image/svg+xml;charset=utf-8"}),s=r.createObjectURL(i),c=document.createElement("canvas");c.width=e.size,c.height=e.size;var u=c.getContext("2d"),p=new Image;p.src=s;var d="",f=L(e);return p.onload=function(){try{u.drawImage(p,c.width/2-p.width/2,c.height/2-p.height/2),d=c.toDataURL("image/png"),c=null,x(f,{style:o(o({},e),{},{symbolUrlCustomized:s}),base64:d})}catch(e){return}},x(f,{style:o(o({},e),{},{symbolUrlCustomized:s}),svg:n,base64:d}),s})).catch((function(){return r("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})):new Promise((function(e){e(null)}))};e.exports={getGeometryFunction:function(e,t){return _[e]&&_[e][t]},SymbolsStyles:S,registerStyle:x,fetchStyle:k,hashCode:w,hashAndStringify:L,domNodeToString:P,createSvgUrl:C,registerGeometryFunctions:function(e,t,r){if(!(e&&t&&r))throw new Error("specify all the params: functionName, func, type");_[e]={func:t,type:r}},geometryFunctions:_,getStylerTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(e)?"Marker":v(e)?"Symbol":g(e)?"Text":y(e)||"Circle Style"===e.title?"Circle":m(e)?"Polygon":h(e)?"Polyline":""},isAttrPresent:f,addOpacityToColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#FFCC33",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.2;return s("a",t,e)},isMarkerStyle:b,isSymbolStyle:v,isTextStyle:g,isCircleStyle:y,isStrokeStyle:h,isFillStyle:m,getSymbolsStyles:function(){return S},setSymbolsStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S=e},createStylesAsync:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return v(e)&&!k(L(e))?C(e,e.symbolUrl||e.symbolUrlCustomized).then((function(t){return t?o(o({},e),{},{symbolUrlCustomized:t}):k(L(e))})).catch((function(){return o(o({},e),{},{symbolUrlCustomized:r("./MapStore2/web/client/product/assets/symbols/symbolMissing.svg")})})):new Promise((function(t){t(v(e)?k(L(e)):e)}))}))},getStyleParser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"sld";return d[e]}}},"./MapStore2/web/client/utils/VectorTileUtils.js":function(e,t,r){"use strict";r.r(t),r.d(t,"VECTOR_FORMATS",(function(){return n})),r.d(t,"isVectorFormat",(function(){return o}));var n=["application/vnd.mapbox-vector-tile","application/json;type=geojson","application/json;type=topojson"],o=function(e){return-1!==n.indexOf(e)}},"./MapStore2/web/client/utils/cesium/BILTerrainProvider.js":function(e,t){e.exports=function(e){var t={};t.CRS=[{name:"CRS:84",ellipsoid:e.Ellipsoid.WGS84,firstAxeIsLatitude:!1,tilingScheme:e.GeographicTilingScheme,supportedCRS:"urn:ogc:def:crs:OGC:2:84"},{name:"EPSG:4326",ellipsoid:e.Ellipsoid.WGS84,firstAxeIsLatitude:!0,tilingScheme:e.GeographicTilingScheme,SupportedCRS:"urn:ogc:def:crs:EPSG::4326"},{name:"EPSG:3857",ellipsoid:e.Ellipsoid.WGS84,firstAxeIsLatitude:!1,tilingScheme:e.WebMercatorTilingScheme,SupportedCRS:"urn:ogc:def:crs:EPSG::3857"},{name:"OSGEO:41001",ellipsoid:e.Ellipsoid.WGS84,firstAxeIsLatitude:!1,tilingScheme:e.WebMercatorTilingScheme,SupportedCRS:"urn:ogc:def:crs:EPSG::3857"}],t.FormatImage=[{format:"image/png",extension:"png"},{format:"image/jpeg",extension:"jpg"},{format:"image/jpeg",extension:"jpeg"},{format:"image/gif",extension:"gif"},{format:"image/png; mode=8bit",extension:"png"}],t.FormatArray=[{format:"image/bil",postProcessArray:function(e,t,r,n,o){var i,a=new DataView(e),s=new ArrayBuffer(t.height*t.width*2),l=new DataView(s);if(s.byteLength===e.byteLength){for(var c,u=0;un&&c-1&&(o=o.substring(0,i));var a=o+"?SERVICE=WMS&REQUEST=GetCapabilities&tiled=true";e.defined(r.proxy)&&(a=r.proxy.getURL(a)),n=e.when(e.loadXML(a),(function(e){return t.WMSParser.getMetaDatafromXML(e,r)}))}else{if(!e.defined(r.xml))throw new e.DeveloperError("either description.url or description.xml are required.");n=t.WMSParser.getMetaDatafromXML(r.xml,r)}return n},t.WMSParser.getMetaDatafromXML=function(r,n){if(!(r instanceof XMLDocument))throw new e.DeveloperError("xml must be a XMLDocument");if(!e.defined(n.layerName))throw new e.DeveloperError("description.layerName is required.");var o={},i=n.layerName,a=(e.defaultValue(n.maxLevel,11),void 0);o.heightMapWidth=e.defaultValue(n.heightMapWidth,65),o.heightMapHeight=e.defaultValue(n.heightMapHeight,o.heightMapWidth);var s={width:65,height:65},l=void 0;o.formatImage=n.formatImage,o.formatArray=n.formatArray,o.tilingScheme=void 0;var c=void 0,u=void 0;o.ready=!1,o.levelZeroMaximumGeometricError=void 0,o.waterMask=e.defaultValue(n.waterMask,!1),"boolean"!=typeof o.waterMask&&(o.waterMask=!1),o.offset=e.defaultValue(n.offset,0),o.highest=e.defaultValue(n.highest,12e3),o.lowest=e.defaultValue(n.lowest,-500);var p=n.styleName;o.hasStyledImage=e.defaultValue(n.hasStyledImage,"string"==typeof n.styleName);var d=r.querySelector("[version]");null!==d&&(a=d.getAttribute("version"),u=/^1\.[3-9]\./.test(a));var f=r.querySelector("Request>GetMap OnlineResource").getAttribute("xlink:href"),h=f.indexOf("?");h>-1&&(f=f.substring(0,h)),e.defined(n.proxy)&&(f=n.proxy.getURL(f));var m=r.querySelectorAll("Request>GetMap>Format");if(!e.defined(o.formatImage))for(var g=0;g0&&(o.formatArray=y[0])}e.defined(o.formatArray)&&"string"==typeof o.formatArray.format&&"function"==typeof o.formatArray.postProcessArray?o.formatArray.terrainDataStructure={heightScale:1,heightOffset:0,elementsPerHeight:1,stride:1,elementMultiplier:256,isBigEndian:!1}:o.formatArray=void 0;for(g=0;g0&&(o.formatImage=y[0])}e.defined(o.formatImage)&&"string"==typeof o.formatImage.format?o.formatImage.terrainDataStructure={heightScale:1,heightOffset:0,elementsPerHeight:2,stride:4,elementMultiplier:256,isBigEndian:!0}:o.formatImage=void 0;for(var b,v=r.querySelectorAll("Layer[queryable='1'],Layer[queryable='true']"),_=0;_0&&w0?w:s.height),e.defined(S)&&(S=parseInt(S),o.heightMapWidth=S>0&&S0?S:s.width)}if(e.defined(b)&&e.defined(a)){for(var x=!1,k=0;kName"),M=!1,R=0;RTileSet"),D=!1,F=0;F0&&(o.tilingScheme=new l[0].tilingScheme({ellipsoid:l[0].ellipsoid}));var c=r.querySelector("TileFormat"),u=t.FormatImage.filter((function(e){return e.extension==c.getAttribute("extension")}));u.length>0&&(o.formatImage=u[0],o.imageSize={},o.imageSize.width=parseInt(c.getAttribute("width")),o.imageSize.height=parseInt(c.getAttribute("height")));var p=[].slice.call(r.querySelectorAll("TileSets>TileSet")),d=[];if(e.defined(o.formatImage)&&((d=p.map((function(t){var r=t.getAttribute("href")+"/{x}/{tmsY}."+o.formatImage.extension;return e.defined(a)&&(r=a.getURL(r)),{url:r,level:parseInt(t.getAttribute("order"))}}))).sort((function(e,t){return e.level-t.level})),d.length>0&&(o.tileSets=d)),e.defined(o.tileSets)&&e.defined(o.formatImage)&&e.defined(o.tilingScheme)){o.URLtemplateImage=function(e,t,r){var n="";return r=p?void 0:new e.Rectangle(l,u,c,p));return e.defined(h)&&n-1&&(o=o.substring(0,i));var a=o+"?REQUEST=GetCapabilities";e.defined(r.proxy)&&(a=r.proxy.getURL(a)),n=e.loadXML(a).then((function(e){return t.WMTSParser.getMetaDatafromXML(e,r)}))}else{if(!e.defined(r.xml))throw new e.DeveloperError("either description.url or description.xml are required.");n=t.WMTSParser.getMetaDatafromXML(r.xml,r)}return n},t.WMTSParser.getMetaDatafromXML=function(r,n){if(!(r instanceof XMLDocument))throw new e.DeveloperError("xml must be a XMLDocument");var o={},i=n.layerName;o.ready=!1,o.heightMapWidth=e.defaultValue(n.heightMapWidth,65),o.heightMapHeight=e.defaultValue(n.heightMapHeight,o.heightMapWidth);var a,s=e.defaultValue(n.maxLevel,12),l=n.proxy,c=n.styleName;o.hasStyledImage=e.defaultValue(n.hasStyledImage,"string"==typeof n.styleName),o.waterMask=e.defaultValue(n.waterMask,!1),"boolean"!=typeof o.waterMask&&(o.waterMask=!1),o.offset=e.defaultValue(n.offset,0),o.highest=e.defaultValue(n.highest,12e3),o.lowest=e.defaultValue(n.lowest,-500);for(var u,p,d,f=[],h=[].slice.call(r.querySelectorAll('Operation[name="GetTile"] HTTP Get')).map((function(e){var t,r=e.querySelector("Value").textContent;return"KVP"===r&&(t={node:e,type:"KVP"}),"RESTful"===r&&(t={node:e,type:"RESTful"}),t})).filter((function(t){return e.defined(t)})),m=0;mLayer>Identifier");for(m=0;m0&&(d=t.FormatImage[k])}f=y.querySelectorAll("TileMatrixSetLink")}for(var L=[].slice.call(r.querySelectorAll("TileMatrixSet>Identifier")),P=0;PTileMatrixLimits");for(var I=0;I0){o.tilingScheme=new O.tilingScheme({ellipsoid:O.ellipsoid,numberOfLevelZeroTilesX:M[0].maxWidth,numberOfLevelZeroTilesY:M[0].maxHeight});var U=y.querySelector("ResourceURL[format='"+d.format+"']");if(null!=U?a=U.getAttribute("template").replace("{TileRow}","{y}").replace("{TileCol}","{x}").replace("{Style}",c).replace("{TileMatrixSet}",A).replace("{layer}",i).replace("{infoFormatExtension}",d.extension):e.defined(u)&&(a=u+"service=WMTS&request=GetTile&version=1.0.0&layer="+i+"&style=&"+c+"format="+d.format+"&TileMatrixSet="+A+"&TileMatrix={TileMatrix}&TileRow={y}&TileCol={x}"),e.defined(a)){o.getTileDataAvailable=function(e,t,r){var n=!1;if(r=o.minTileRow&&e<=o.maxTileCol&&e>=o.minTileCol:e128,g=(f<<8|h)-r.offset-32768;g>r.lowest&&g0&&void 0!==arguments[0]?arguments[0]:{},t=e.pointToLayer,r=e.geojson,n=e.latlng,i=e.options,s=e.style,l=void 0===s?{}:s,c=e.highlight,u=void 0!==c&&c;if(r.properties&&r.properties.isText){var p=a.divIcon({html:'').concat(r.properties.valueText,""),className:""});return new a.Marker(n,{icon:p})}return h.getPointLayer(t,r,n,o(o({},i),{},{style:l,highlight:u}))},createPolygonCircleLayer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.geojson,r=e.style,n=void 0===r?{}:r,i=e.latlngs,s=void 0===i?[]:i,l=e.coordsToLatLng,c=void 0===l?function(){}:l;if(t.properties&&t.properties.isCircle){var u=c(t.properties.center);return a.circle(u,o(o({},n),{},{radius:t.properties.radius}))}return new a.Polygon(s,n)},geometryToLayer:function(e,t){var r,n="Feature"===e.type?e.geometry:e,i=n?n.coordinates:null,s=[],c=o({styleName:t.styleName,style:t.style&&t.style[0]||t.style},e),u=t&&!f(c)?function(e,t){return"marker"===c.styleName?a.marker(t,c.style):a.circleMarker(t,c.style&&c.style[0]||c.style)}:null,p=t&&t.coordsToLatLng||h.coordsToLatLngF;if(!i&&!n)return null;var m,g,y,b,v=c.style||l({},t.style&&t.style[n.type]||t.style,{highlight:t.style&&t.style.highlight});switch(n.type){case"Point":return m=p(i),r=h.createTextPointMarkerLayer({pointToLayer:u,geojson:e,latlng:m,options:t,style:v,highlight:v&&v.highlight});case"MultiPoint":for(y=0,b=i.length;y=0&&(t[r]=e[r])})),t}};e.exports=o},"./MapStore2/web/client/utils/leaflet/WMTS.js":function(e,t,r){function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=i&&o(n-o)/2?{id:r,data:t}:{id:r+1,data:e[r+1]}:null})).filter((function(e){return e}))),p=l&&u(l.id)&&l.id+""||0===e.length&&r||null;if(!t[p])return null;var d=t[p].identifier,f=l.data&&l.data.TopLeftCorner&&s.parseString(l.data.TopLeftCorner)||t[p].topLeftCorner,h=f.lng||f.x,m=f.lat||f.y,g=Math.round((n.x-h)/o),y=-Math.round((n.y-m)/o),b=l.data&&l.data.MatrixWidth&&l.data.MatrixHeight&&{cols:{min:0,max:l.data.MatrixWidth-1},rows:{min:0,max:l.data.MatrixHeight-1}},v=t[p].ranges||b;return v&&!function(e,t,r){return!(er.cols.max)&&!(tr.rows.max)}(g,y,v)?null:{ident:d,tilecol:g,tilerow:y}},getTileUrl:function(e){var t=this._map,r=t.options.crs,o=this.options.tileSize,a=e.multiplyBy(o);a.x+=1,a.y-=1;var s=a.add([o,o]),l=r.project(t.unproject(a,e.z)),c=r.project(t.unproject(s,e.z)).x-l.x,u=this.getWMTSParams(n(this.matrixSet),n(this.matrixIds),e.z,l,c);if(!u)return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";this._urlsIndex++,this._urlsIndex===this._urls.length&&(this._urlsIndex=0);var p=i.Util.template(this._urls[this._urlsIndex],{s:this._getSubdomain(e),TileRow:u.tilerow,TileCol:u.tilecol,TileMatrixSet:this.options.tileMatrixSet,TileMatrix:u.ident,Style:this.options.style});return"RESTful"===this.options.requestEncoding?p:p+i.Util.getParamString(this.wmtsParams,p,!0)+"&tilematrix="+u.ident+"&tilerow="+u.tilerow+"&tilecol="+u.tilecol},getMatrix:function(e,t){return e.map((function(e){return{identifier:e.identifier,topLeftCorner:new i.LatLng(t.originY,t.originX),ranges:e.ranges||null}}))},getDefaultMatrix:function(e){for(var t=new Array(22),r=0;r<22;r++)t[r]={identifier:e.tileMatrixPrefix+r,topLeftCorner:new i.LatLng(e.originY,e.originX)};return t},onError:function(){return!this.ignoreErrors}});e.exports=p},"./MapStore2/web/client/utils/openlayers/DrawSupportUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("./node_modules/lodash/isArray.js"),o=r.n(n),i=r("./MapStore2/web/client/utils/CoordinatesUtils.js"),a=r("./node_modules/ol/extent.js"),s=r("./node_modules/ol/geom/Circle.js"),l=function(e,t,r,n){if(o()(t)&&o()(t[0])&&o()(t[0][0])){var a=Object(i.reproject)(t[0][0],n,r);return Math.sqrt(Math.pow(e[0]-a.x,2)+Math.pow(e[1]-a.y,2))}return 100},c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e.getGeometry()||"Polygon"!==e.getGeometry().getType()||e.getProperties().center&&0===e.getProperties().center.length)return e;if(e.getProperties()&&e.getProperties().isCircle&&e.getProperties().center&&e.getProperties().center[0]&&e.getProperties().center[1]){var n,o=e.getGeometry().getExtent();n=e.getProperties().center?[(n=Object(i.reproject)(e.getProperties().center,"EPSG:4326",t)).x,n.y]:Object(a.x)(o);var c=e.getProperties().crs===t?e.getProperties().radius:l(n,e.getGeometry().getCoordinates(),t,r);return e.setGeometry(new s.a(n,c)),e}return e}},"./MapStore2/web/client/utils/openlayers/DrawUtils.js":function(e,t,r){"use strict";r.d(t,"b",(function(){return v})),r.d(t,"c",(function(){return _})),r.d(t,"a",(function(){return w}));var n=r("./node_modules/ol/interaction/DragPan.js"),o=r("./node_modules/ol/interaction/KeyboardPan.js"),i=r("./node_modules/ol/interaction/MouseWheelZoom.js"),a=r("./node_modules/ol/interaction/DoubleClickZoom.js"),s=r("./node_modules/ol/interaction/DragZoom.js"),l=r("./node_modules/ol/interaction/KeyboardZoom.js"),c=r("./node_modules/ol/interaction/PinchZoom.js"),u=r("./node_modules/ol/interaction/PinchRotate.js"),p=r("./node_modules/ol/interaction/DragRotate.js"),d=r("./node_modules/ol/geom/Point.js"),f=r("./node_modules/ol/geom/LineString.js"),h=r("./node_modules/ol/geom/MultiPoint.js"),m=r("./node_modules/ol/geom/MultiLineString.js"),g=r("./node_modules/ol/geom/MultiPolygon.js"),y=r("./node_modules/ol/geom/Circle.js"),b=r("./node_modules/ol/geom/Polygon.js"),v=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.type,n=t.coordinates,o=t.radius,i=t.center;switch(r){case"Point":e=new d.a(n||[]);break;case"LineString":e=new f.a(n||[]);break;case"MultiPoint":e=new h.a(n||[]);break;case"MultiLineString":e=new m.a(n||[]);break;case"MultiPolygon":e=new g.a(n||[]);break;default:e=o&&i?Object(b.c)(new y.a([i.x,i.y],o),100):new b.b(n||[])}return e},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&e.geometry&&"Polygon"===e.geometry.type},w={dragPan:{options:{kinetic:!1},Instance:n.a},keyboardPan:{options:{kinetic:!1},Instance:o.a},mouseWheelZoom:{options:{duration:0},Instance:i.a},doubleClickZoom:{options:{duration:0},Instance:a.a},shiftDragZoom:{options:{duration:0},Instance:s.a},keyboardZoom:{options:{},Instance:l.a},pinchZoom:{options:{duration:0},Instance:c.a},pinchRotate:{options:{},Instance:u.a},altShiftDragRotate:{options:{},Instance:p.a}}},"./MapStore2/web/client/utils/openlayers/VectorTileUtils.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l}));var n=r("./node_modules/ol/format/MVT.js"),o=r("./node_modules/ol/format/GeoJSON.js"),i=r("./node_modules/ol/format/TopoJSON.js"),a=r("./MapStore2/web/client/components/map/openlayers/VectorStyle.js"),s={"application/vnd.mapbox-vector-tile":n.a,"application/json;type=geojson":o.a,"application/json;type=topojson":i.a},l=function(e,t){Object(a.d)({asPromise:!0,style:e}).then((function(e){t.setStyle(e)})).catch((function(){}))}},"./MapStore2/web/client/utils/openlayers/highlight.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAXCAYAAABqBU3hAAABIUlEQVRIS+3UsYoCMRDG8f8q+EBid5WNnc019la2Vr6Ala1g4SvY+RTXiVdcJQgHV9jJIdhKZCNx2GwyibCNW4bd+X47k6Sg4adoOJ83wNcBsz4CvoGfF4zpEzgCO1mrCmDWpsAC+Af6wD4DMQGWwBUYAF9uLQlww1vli+cMhA1vl7UuEuECqsItNgUhw22tJ4QLGANrwP657LoG4Qt3EV3g4ALMfLZAp2beMYhQuCn/B/SAk9wDQ2CTgYgN/wB+jaTqFKQi1OE+gFnXIpLC6wAaxAqYAfaoVW0hM/NH2+vuAflxTCdCd5Q3PNQBWzgHURseC4gdh+xEMFwD0CKiwrWAWER0eAoghFCFpwJ8CHV4DkAiksJzARYxL2/O+92ufW42SVMYbhcsEwAAAABJRU5ErkJgggAA"},"./MapStore2/web/client/utils/openlayers/olPopUp.css":function(e,t,r){var n=r("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./MapStore2/web/client/utils/openlayers/olPopUp.css");"string"==typeof n&&(n=[[e.i,n,""]]);r("./node_modules/style-loader/addStyles.js")(n,{});n.locals&&(e.exports=n.locals)},"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/typeof.js"),o=r("./node_modules/@babel/runtime/helpers/assertThisInitialized.js");e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t}},"./node_modules/@babel/runtime/helpers/setPrototypeOf.js":function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},"./node_modules/@babel/runtime/helpers/slicedToArray.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/arrayWithHoles.js"),o=r("./node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"),i=r("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),a=r("./node_modules/@babel/runtime/helpers/nonIterableRest.js");e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()}},"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),o=r("./node_modules/@babel/runtime/helpers/iterableToArray.js"),i=r("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),a=r("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");e.exports=function(e){return n(e)||o(e)||i(e)||a()}},"./node_modules/@babel/runtime/helpers/typeof.js":function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js":function(e,t,r){var n=r("./node_modules/@babel/runtime/helpers/getPrototypeOf.js"),o=r("./node_modules/@babel/runtime/helpers/setPrototypeOf.js"),i=r("./node_modules/@babel/runtime/helpers/isNativeFunction.js"),a=r("./node_modules/@babel/runtime/helpers/construct.js");function s(t){var r="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},s(t)}e.exports=s},"./node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js":function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof p?t:p,i=Object.create(o.prototype),a=new x(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=_(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=c(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function p(){}function d(){}function f(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(k([])));g&&g!==t&&r.call(g,o)&&(h=g);var y=f.prototype=p.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},"./node_modules/@babel/runtime/regenerator/index.js":function(e,t,r){e.exports=r("./node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js")},"./node_modules/@turf/center/main.es.js":function(e,t,r){"use strict";var n=r("./node_modules/@turf/meta/main.es.js");var o=function(e){var t=[1/0,1/0,-1/0,-1/0];return Object(n.b)(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]Error: shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(e,t){this._map=e,this._container=e._container,this._overlayPane=e._panes.overlayPane,this._popupPane=e._panes.popupPane,t&&t.shapeOptions&&(t.shapeOptions=L.Util.extend({},this.options.shapeOptions,t.shapeOptions)),L.setOptions(this,t);var r=L.version.split(".");1===parseInt(r[0],10)&&parseInt(r[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var e=this._map;e&&(L.DomUtil.disableTextSelection(),e.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(e){L.setOptions(this,e)},_fireCreatedEvent:function(e){this._map.fire(L.Draw.Event.CREATED,{layer:e,layerType:this.type})},_cancelDrawing:function(e){27===e.keyCode&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(e,t){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,t&&t.drawError&&(t.drawError=L.Util.extend({},this.options.drawError,t.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,e,t)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var e=this._markers.pop(),t=this._poly,r=t.getLatLngs(),n=r.splice(-1,1)[0];this._poly.setLatLngs(r),this._markerGroup.removeLayer(e),t.getLatLngs().length<2&&this._map.removeLayer(t),this._vertexChanged(n,!1)}},addVertex:function(e){this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(e)?this._showErrorTooltip():(this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(e)),this._poly.addLatLng(e),2===this._poly.getLatLngs().length&&this._map.addLayer(this._poly),this._vertexChanged(e,!0))},completeShape:function(){this._markers.length<=1||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var e=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),t=this._poly.newLatLngIntersects(e[e.length-1]);!this.options.allowIntersection&&t||!this._shapeIsValid()?this._showErrorTooltip():(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_shapeIsValid:function(){return!0},_onZoomEnd:function(){null!==this._markers&&this._updateGuide()},_onMouseMove:function(e){var t=this._map.mouseEventToLayerPoint(e.originalEvent),r=this._map.layerPointToLatLng(t);this._currentLatLng=r,this._updateTooltip(r),this._updateGuide(t),this._mouseMarker.setLatLng(r),L.DomEvent.preventDefault(e.originalEvent)},_vertexChanged:function(e,t){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(e,t),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(e){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(e),this._clickHandled=!0,this._disableNewMarkers();var t=e.originalEvent,r=t.clientX,n=t.clientY;this._startPoint.call(this,r,n)}},_startPoint:function(e,t){this._mouseDownOrigin=L.point(e,t)},_onMouseUp:function(e){var t=e.originalEvent,r=t.clientX,n=t.clientY;this._endPoint.call(this,r,n,e),this._clickHandled=null},_endPoint:function(e,t,n){if(this._mouseDownOrigin){var o=L.point(e,t).distanceTo(this._mouseDownOrigin),i=this._calculateFinishDistance(n.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(n.latlng),this._finishShape()):i<10&&L.Browser.touch?this._finishShape():Math.abs(o)<9*(r.devicePixelRatio||1)&&this.addVertex(n.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(e){var t,r,n=e.originalEvent;!n.touches||!n.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(t=n.touches[0].clientX,r=n.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,t,r),this._endPoint.call(this,t,r,e),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(e){var t;if(this._markers.length>0){var r;if(this.type===L.Draw.Polyline.TYPE)r=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;r=this._markers[0]}var n=this._map.latLngToContainerPoint(r.getLatLng()),o=new L.Marker(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),i=this._map.latLngToContainerPoint(o.getLatLng());t=n.distanceTo(i)}else t=1/0;return t},_updateFinishHandler:function(){var e=this._markers.length;e>1&&this._markers[e-1].on("click",this._finishShape,this),e>2&&this._markers[e-2].off("click",this._finishShape,this)},_createMarker:function(e){var t=new L.Marker(e,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(t),t},_updateGuide:function(e){var t=this._markers?this._markers.length:0;t>0&&(e=e||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[t-1].getLatLng()),e))},_updateTooltip:function(e){var t=this._getTooltipText();e&&this._tooltip.updatePosition(e),this._errorShown||this._tooltip.updateContent(t)},_drawGuide:function(e,t){var r,n,o,i=Math.floor(Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))),a=this.options.guidelineDistance,s=this.options.maxGuideLineLength,l=i>s?i-s:a;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));l1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var e=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,e)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(e,t){L.Draw.Polyline.prototype.initialize.call(this,e,t),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var e=this._markers.length;1===e&&this._markers[0].on("click",this._finishShape,this),e>2&&(this._markers[e-1].on("dblclick",this._finishShape,this),e>3&&this._markers[e-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var e,t;return 0===this._markers.length?e=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(e=L.drawLocal.draw.handlers.polygon.tooltip.cont,t=this._getMeasurementString()):(e=L.drawLocal.draw.handlers.polygon.tooltip.end,t=this._getMeasurementString()),{text:e,subtext:t}},_getMeasurementString:function(){var e=this._area,t="";return e||this.options.showLength?(this.options.showLength&&(t=L.Draw.Polyline.prototype._getMeasurementString.call(this)),e&&(t+="
"+L.GeometryUtil.readableArea(e,this.options.metric,this.options.precision)),t):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(e,t){var r;!this.options.allowIntersection&&this.options.showArea&&(r=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(r)),L.Draw.Polyline.prototype._vertexChanged.call(this,e,t)},_cleanUpShape:function(){var e=this._markers.length;e>0&&(this._markers[0].off("click",this._finishShape,this),e>2&&this._markers[e-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(e,t){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,e,t)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),n.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(n,"mouseup",this._onMouseUp,this),L.DomEvent.off(n,"touchend",this._onMouseUp,this),n.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(e){this._isDrawing=!0,this._startLatLng=e.latlng,L.DomEvent.on(n,"mouseup",this._onMouseUp,this).on(n,"touchend",this._onMouseUp,this).preventDefault(e.originalEvent)},_onMouseMove:function(e){var t=e.latlng;this._tooltip.updatePosition(t),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(t))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,showArea:!0,clickable:!0},metric:!0},initialize:function(e,t){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,e,t)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(e){this._shape||this._isCurrentlyTwoClickDrawing?this._isCurrentlyTwoClickDrawing&&!function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}(e.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this):this._isCurrentlyTwoClickDrawing=!0},_drawShape:function(e){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,e)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,e),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var e=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,e)},_getTooltipText:function(){var e,t,r,n=L.Draw.SimpleShape.prototype._getTooltipText.call(this),o=this._shape,i=this.options.showArea;return o&&(e=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),t=L.GeometryUtil.geodesicArea(e),r=i?L.GeometryUtil.readableArea(t,this.options.metric):""),{text:n.text,subtext:r}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(e,t){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,e,t)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(e){var t=e.latlng;this._tooltip.updatePosition(t),this._mouseMarker.setLatLng(t),this._marker?(t=this._mouseMarker.getLatLng(),this._marker.setLatLng(t)):(this._marker=this._createMarker(t),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(e){return new L.Marker(e,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(e){this._onMouseMove(e),this._onClick()},_fireCreatedEvent:function(){var e=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,e)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(e,t){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,e,t)},_fireCreatedEvent:function(){var e=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,e)},_createMarker:function(e){return new L.CircleMarker(e,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(e,t){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,e,t)},_drawShape:function(e){if(L.GeometryUtil.isVersion07x())var t=this._startLatLng.distanceTo(e);else t=this._map.distance(this._startLatLng,e);this._shape?this._shape.setRadius(t):(this._shape=new L.Circle(this._startLatLng,t,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var e=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,e)},_onMouseMove:function(e){var t,r=e.latlng,n=this.options.showRadius,o=this.options.metric;if(this._tooltip.updatePosition(r),this._isDrawing){this._drawShape(r),t=this._shape.getRadius().toFixed(1);var i="";n&&(i=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(t,o,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:i})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(e,t){this._marker=e,L.setOptions(this,t)},addHooks:function(){var e=this._marker;e.dragging.enable(),e.on("dragend",this._onDragEnd,e),this._toggleMarkerHighlight()},removeHooks:function(){var e=this._marker;e.dragging.disable(),e.off("dragend",this._onDragEnd,e),this._toggleMarkerHighlight()},_onDragEnd:function(e){var t=e.target;t.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:t})},_toggleMarkerHighlight:function(){var e=this._marker._icon;e&&(e.style.display="none",L.DomUtil.hasClass(e,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(e,"leaflet-edit-marker-selected"),this._offsetMarker(e,-4)):(L.DomUtil.addClass(e,"leaflet-edit-marker-selected"),this._offsetMarker(e,4)),e.style.display="")},_offsetMarker:function(e,t){var r=parseInt(e.style.marginTop,10)-t,n=parseInt(e.style.marginLeft,10)-t;e.style.marginTop=r+"px",e.style.marginLeft=n+"px"}}),L.Marker.addInitHook((function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())})),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(e){this.latlngs=[e._latlngs],e._holes&&(this.latlngs=this.latlngs.concat(e._holes)),this._poly=e,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(e){for(var t=0;te&&(r._index+=t)}))},_createMiddleMarker:function(e,t){var r,n,o,i=this._getMiddleLatLng(e,t),a=this._createMarker(i);a.setOpacity(.6),e._middleRight=t._middleLeft=a,n=function(){a.off("touchmove",n,this);var o=t._index;a._index=o,a.off("click",r,this).on("click",this._onMarkerClick,this),i.lat=a.getLatLng().lat,i.lng=a.getLatLng().lng,this._spliceLatLngs(o,0,i),this._markers.splice(o,0,a),a.setOpacity(1),this._updateIndexes(o,1),t._index++,this._updatePrevNext(e,a),this._updatePrevNext(a,t),this._poly.fire("editstart")},o=function(){a.off("dragstart",n,this),a.off("dragend",o,this),a.off("touchmove",n,this),this._createMiddleMarker(e,a),this._createMiddleMarker(a,t)},r=function(){n.call(this),o.call(this),this._fireEdit()},a.on("click",r,this).on("dragstart",n,this).on("dragend",o,this).on("touchmove",n,this),this._markerGroup.addLayer(a)},_updatePrevNext:function(e,t){e&&(e._next=t),t&&(t._prev=e)},_getMiddleLatLng:function(e,t){var r=this._poly._map,n=r.project(e.getLatLng()),o=r.project(t.getLatLng());return r.unproject(n._add(o)._divideBy(2))}}),L.Polyline.addInitHook((function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",(function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()})),this.on("remove",(function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})))})),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(e,t){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=e,L.Util.setOptions(this,t)},addHooks:function(){var e=this._shape;this._shape._map&&(this._map=this._shape._map,e.setStyle(e.options.editing),e._map&&(this._map=e._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var e=this._shape;if(e.setStyle(e.options.original),e._map){this._unbindMarker(this._moveMarker);for(var t=0,r=this._resizeMarkers.length;t"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook((function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable()),this.on("add",(function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()})),this.on("remove",(function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))})),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart),L.DomEvent.off(this._container,"touchend",this._onTouchEnd),L.DomEvent.off(this._container,"touchmove",this._onTouchMove),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDowm",this._onTouchStart),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave))},_touchEvent:function(e,t){var r={};if(void 0!==e.touches){if(!e.touches.length)return;r=e.touches[0]}else{if("touch"!==e.pointerType)return;if(r=e,!this._filterClick(e))return}var n=this._map.mouseEventToContainerPoint(r),o=this._map.mouseEventToLayerPoint(r),i=this._map.layerPointToLatLng(o);this._map.fire(t,{latlng:i,layerPoint:o,containerPoint:n,pageX:r.pageX,pageY:r.pageY,originalEvent:e})},_filterClick:function(e){var t=e.timeStamp||e.originalEvent.timeStamp,r=L.DomEvent._lastClick&&t-L.DomEvent._lastClick;return r&&r>100&&r<500||e.target._simulatedClick&&!e._simulated?(L.DomEvent.stop(e),!1):(L.DomEvent._lastClick=t,!0)},_onTouchStart:function(e){this._map._loaded&&this._touchEvent(e,"touchstart")},_onTouchEnd:function(e){this._map._loaded&&this._touchEvent(e,"touchend")},_onTouchCancel:function(e){if(this._map._loaded){var t="touchcancel";this._detectIE()&&(t="pointercancel"),this._touchEvent(e,t)}},_onTouchLeave:function(e){this._map._loaded&&this._touchEvent(e,"touchleave")},_onTouchMove:function(e){this._map._loaded&&this._touchEvent(e,"touchmove")},_detectIE:function(){var e=r.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var o=e.indexOf("Edge/");return o>0&&parseInt(e.substring(o+5,e.indexOf(".",o)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var e=this._icon,t=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?t.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):t.concat(["touchcancel"]),L.DomUtil.addClass(e,"leaflet-clickable"),L.DomEvent.on(e,"click",this._onMouseClick,this),L.DomEvent.on(e,"keypress",this._onKeyPress,this);for(var r=0;r0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var o=e.indexOf("Edge/");return o>0&&parseInt(e.substring(o+5,e.indexOf(".",o)),10)}}),L.LatLngUtil={cloneLatLngs:function(e){for(var t=[],r=0,n=e.length;r2){for(var a=0;a1&&(r=r+a+s[1])}return r},readableArea:function(t,r,n){var o,i;return n=L.Util.extend({},e,n),r?(i=["ha","m"],type=typeof r,"string"===type?i=[r]:"boolean"!==type&&(i=r),o=t>=1e6&&-1!==i.indexOf("km")?L.GeometryUtil.formattedNumber(1e-6*t,n.km)+" km²":t>=1e4&&-1!==i.indexOf("ha")?L.GeometryUtil.formattedNumber(1e-4*t,n.ha)+" ha":L.GeometryUtil.formattedNumber(t,n.m)+" m²"):o=(t/=.836127)>=3097600?L.GeometryUtil.formattedNumber(t/3097600,n.mi)+" mi²":t>=4840?L.GeometryUtil.formattedNumber(t/4840,n.ac)+" acres":L.GeometryUtil.formattedNumber(t,n.yd)+" yd²",o},readableDistance:function(t,r,n,o,i){var a;switch(i=L.Util.extend({},e,i),r?"string"==typeof r?r:"metric":n?"feet":o?"nauticalMile":"yards"){case"metric":a=t>1e3?L.GeometryUtil.formattedNumber(t/1e3,i.km)+" km":L.GeometryUtil.formattedNumber(t,i.m)+" m";break;case"feet":t*=3.28083,a=L.GeometryUtil.formattedNumber(t,i.ft)+" ft";break;case"nauticalMile":t*=.53996,a=L.GeometryUtil.formattedNumber(t/1e3,i.nm)+" nm";break;case"yards":default:a=(t*=1.09361)>1760?L.GeometryUtil.formattedNumber(t/1760,i.mi)+" miles":L.GeometryUtil.formattedNumber(t,i.yd)+" yd"}return a},isVersion07x:function(){var e=L.version.split(".");return 0===parseInt(e[0],10)&&7===parseInt(e[1],10)}})}(),L.Util.extend(L.LineUtil,{segmentsIntersect:function(e,t,r,n){return this._checkCounterclockwise(e,r,n)!==this._checkCounterclockwise(t,r,n)&&this._checkCounterclockwise(e,t,r)!==this._checkCounterclockwise(e,t,n)},_checkCounterclockwise:function(e,t,r){return(r.y-e.y)*(t.x-e.x)>(t.y-e.y)*(r.x-e.x)}}),L.Polyline.include({intersects:function(){var e,t,r,n=this._getProjectedPoints(),o=n?n.length:0;if(this._tooFewPointsForIntersection())return!1;for(e=o-1;e>=3;e--)if(t=n[e-1],r=n[e],this._lineSegmentsIntersectsRange(t,r,e-2))return!0;return!1},newLatLngIntersects:function(e,t){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(e),t)},newPointIntersects:function(e,t){var r=this._getProjectedPoints(),n=r?r.length:0,o=r?r[n-1]:null,i=n-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(o,e,i,t?1:0)},_tooFewPointsForIntersection:function(e){var t=this._getProjectedPoints(),r=t?t.length:0;return!t||(r+=e||0)<=3},_lineSegmentsIntersectsRange:function(e,t,r,n){var o,i,a=this._getProjectedPoints();n=n||0;for(var s=r;s>n;s--)if(o=a[s-1],i=a[s],L.LineUtil.segmentsIntersect(e,t,o,i))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var e=[],t=this._defaultShape(),r=0;r=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return null!==this._activeMode},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(e){var t,r=L.DomUtil.create("div","leaflet-draw-section"),n=0,o=this._toolbarClass||"",i=this.getModeHandlers(e);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=e,t=0;t0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(e.subtext.length>0?''+e.subtext+"
":"")+""+e.text+"",e.text||e.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(e){var t=this._map.latLngToLayerPoint(e),r=this._container;return this._container&&(this._visible&&(r.style.visibility="inherit"),L.DomUtil.setPosition(r,t)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(e){for(var t in this.options)this.options.hasOwnProperty(t)&&e[t]&&(e[t]=L.extend({},this.options[t],e[t]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,e)},getModeHandlers:function(e){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(e,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(e,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(e,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(e,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(e,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(e,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(e){return[{enabled:e.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:e.completeShape,context:e},{enabled:e.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:e.deleteLastVertex,context:e},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(e){for(var t in L.setOptions(this,e),this._modes)this._modes.hasOwnProperty(t)&&e.hasOwnProperty(t)&&this._modes[t].handler.setOptions(e[t])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(e){e.edit&&(void 0===e.edit.selectedPathOptions&&(e.edit.selectedPathOptions=this.options.edit.selectedPathOptions),e.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,e.edit.selectedPathOptions)),e.remove&&(e.remove=L.extend({},this.options.remove,e.remove)),e.poly&&(e.poly=L.extend({},this.options.poly,e.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,e),this._selectedFeatureCount=0},getModeHandlers:function(e){var t=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(e,{featureGroup:t,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(e,{featureGroup:t}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(e){var t=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return e.removeAllLayers&&t.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),t},addToolbar:function(e){var t=L.Toolbar.prototype.addToolbar.call(this,e);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),t},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var e,t=0!==this.options.featureGroup.getLayers().length;this.options.edit&&(e=this._modes[L.EditToolbar.Edit.TYPE].button,t?L.DomUtil.removeClass(e,"leaflet-disabled"):L.DomUtil.addClass(e,"leaflet-disabled"),e.setAttribute("title",t?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(e=this._modes[L.EditToolbar.Delete.TYPE].button,t?L.DomUtil.removeClass(e,"leaflet-disabled"):L.DomUtil.addClass(e,"leaflet-disabled"),e.setAttribute("title",t?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(e,t){if(L.Handler.prototype.initialize.call(this,e),L.setOptions(this,t),this._featureGroup=t.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var r=L.version.split(".");1===parseInt(r[0],10)&&parseInt(r[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var e=this._map;e&&(e.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),e._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer((function(e){this._revertLayer(e)}),this)},save:function(){var e=new L.LayerGroup;this._featureGroup.eachLayer((function(t){t.edited&&(e.addLayer(t),t.edited=!1)})),this._map.fire(L.Draw.Event.EDITED,{layers:e})},_backupLayer:function(e){var t=L.Util.stamp(e);this._uneditedLayerProps[t]||(e instanceof L.Polyline||e instanceof L.Polygon||e instanceof L.Rectangle?this._uneditedLayerProps[t]={latlngs:L.LatLngUtil.cloneLatLngs(e.getLatLngs())}:e instanceof L.Circle?this._uneditedLayerProps[t]={latlng:L.LatLngUtil.cloneLatLng(e.getLatLng()),radius:e.getRadius()}:(e instanceof L.Marker||e instanceof L.CircleMarker)&&(this._uneditedLayerProps[t]={latlng:L.LatLngUtil.cloneLatLng(e.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(e){var t=L.Util.stamp(e);e.edited=!1,this._uneditedLayerProps.hasOwnProperty(t)&&(e instanceof L.Polyline||e instanceof L.Polygon||e instanceof L.Rectangle?e.setLatLngs(this._uneditedLayerProps[t].latlngs):e instanceof L.Circle?(e.setLatLng(this._uneditedLayerProps[t].latlng),e.setRadius(this._uneditedLayerProps[t].radius)):(e instanceof L.Marker||e instanceof L.CircleMarker)&&e.setLatLng(this._uneditedLayerProps[t].latlng),e.fire("revert-edited",{layer:e}))},_enableLayerEdit:function(e){var t,r,n=e.layer||e.target||e;this._backupLayer(n),this.options.poly&&(r=L.Util.extend({},this.options.poly),n.options.poly=r),this.options.selectedPathOptions&&((t=L.Util.extend({},this.options.selectedPathOptions)).maintainColor&&(t.color=n.options.color,t.fillColor=n.options.fillColor),n.options.original=L.extend({},n.options),n.options.editing=t),n instanceof L.Marker?(n.editing&&n.editing.enable(),n.dragging.enable(),n.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):n.editing.enable()},_disableLayerEdit:function(e){var t=e.layer||e.target||e;t.edited=!1,t.editing&&t.editing.disable(),delete t.options.editing,delete t.options.original,this._selectedPathOptions&&(t instanceof L.Marker?this._toggleMarkerHighlight(t):(t.setStyle(t.options.previousOptions),delete t.options.previousOptions)),t instanceof L.Marker?(t.dragging.disable(),t.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):t.editing.disable()},_onMouseMove:function(e){this._tooltip.updatePosition(e.latlng)},_onMarkerDragEnd:function(e){var t=e.target;t.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:t})},_onTouchMove:function(e){var t=e.originalEvent.changedTouches[0],r=this._map.mouseEventToLayerPoint(t),n=this._map.layerPointToLatLng(r);e.target.setLatLng(n)},_hasAvailableLayers:function(){return 0!==this._featureGroup.getLayers().length}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(e,t){if(L.Handler.prototype.initialize.call(this,e),L.Util.setOptions(this,t),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var r=L.version.split(".");1===parseInt(r[0],10)&&parseInt(r[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var e=this._map;e&&(e.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer((function(e){this._deletableLayers.addLayer(e),e.fire("revert-deleted",{layer:e})}),this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer((function(e){this._removeLayer({layer:e})}),this),this.save()},_enableLayerDelete:function(e){(e.layer||e.target||e).on("click",this._removeLayer,this)},_disableLayerDelete:function(e){var t=e.layer||e.target||e;t.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(t)},_removeLayer:function(e){var t=e.layer||e.target||e;this._deletableLayers.removeLayer(t),this._deletedLayers.addLayer(t),t.fire("deleted")},_onMouseMove:function(e){this._tooltip.updatePosition(e.latlng)},_hasAvailableLayers:function(){return 0!==this._deletableLayers.getLayers().length}})},"./node_modules/leaflet-extra-markers/dist/css/leaflet.extra-markers.min.css":function(e,t,r){var n=r("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/leaflet-extra-markers/dist/css/leaflet.extra-markers.min.css");"string"==typeof n&&(n=[[e.i,n,""]]);r("./node_modules/style-loader/addStyles.js")(n,{});n.locals&&(e.exports=n.locals)},"./node_modules/leaflet-extra-markers/dist/img/markers_default.png":function(e,t,r){e.exports=r.p+"node_modules/leaflet-extra-markers/dist/img/markers_default.png"},"./node_modules/leaflet-extra-markers/dist/img/markers_default@2x.png":function(e,t,r){e.exports=r.p+"node_modules/leaflet-extra-markers/dist/img/markers_default@2x.png"},"./node_modules/leaflet-extra-markers/dist/img/markers_shadow.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAQCAYAAACcN8ZaAAAB3klEQVR42s3U4UdDURzG8czMXJnJ1Vwzc6VJZjaZJdlMlpQsKdmUFNOUspRSSqUolfQfr+fF98Vx5mwv9qbDx7LdznnO7/7Omej3+/+Ga0QMUYkhbvBgmhzCQxwxibIGrGEF8CQhU+LLtKQkQNqScUgjxRxTBIxbgfgD/BgnhM8kM5KTeclLQYqGkkMRBckzR8ic/mAgd5BAZplsUaqyIg2sDtHg2brUZJk5SmwopErJUWE8SpmTMhNvya60Zd/SNrR4bkeaskG4uiwRZk6yrJEYFibGAxn+scECHTmTnuVCzvmty3PHciB7bGKN6lQkzysPqIrHmpFhYbKUtckC1/Ioz4ZHuZdbuSLYiRxRpSZVWXZVxAzC0R4Ik5SQsu6w8yd5l2/5kg95I9SdXMoZQfYIUjeqEUrgOkXGPeN4TYRhxy8E+ZUf+eS7B7miIoeybVSjKDnm8u3+gH3pDTYwu1igATvs/pXqvBKiR4i2bNJfi1ZfUAnjgrOG8wY2quNzBKuU/ZS+uSFEl5O0xRGuUIlZCcw7xG5QPkeHYUSNV5WXGou2sC3rBC0LjenqCXGO0WEiTJa0Lr4KixdHBrDGuGGiRqCUpFk8pGIpQtCU7p4YPwxYxEMCk1aAMQZh8Ac8PfbIzYPJOwAAAABJRU5ErkJggg=="},"./node_modules/leaflet-extra-markers/dist/img/markers_shadow@2x.png":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAgCAYAAACvgw7DAAAFhElEQVR42tWZ/0ubVxSHZZQxpJQRwoqEUkJQQhlBCcEiQRGJiKFEQqQ4lKFYLA5FsSjKioqipRutbLJ2f627g+dyDmfvqfetzlLh+aFpcr88+dxzb+7bdwt/33wG974g/rhu+pdzwt86fJdA/82w7Un/18m6kRBXgD+5+4YHDt/fEtImfRppVlJ+MY4QEWEmbyZZUBQVP2TwMJGBDMx7aFP6K4gwJBlBecVYISIDCSJAJm0mUIJH8NhQdqjkh8/SNv2VRB6SjCAtJ2dKMGuFIEIEMHGZ2CAMQdXwxPDjNdQ++f+0Q9tD9F1RkgYYLwlCDmIg19IhJQiRVJToFAlMViYxHBiBOjQyGP0ETzMw76Ed+qC/YSVrSAkqiRySo1IjAnwkKSKlQKMIQQYS4sQZ/Bg0A+MwYZg0TKViPjeh+mjS72iUhKCqyCE5pCZdDEmxUmjwURQSZSCiqSbXCkwHZmAW2g7PEmkbZml/mj6nlKgm42rE9DDushHzQGpNohjefB8pD2NK6GSEjscZ1AyD7QTmAt1AD+YVz/Mjn6e9LswB0pCEICVnhFQPIabEfAoiJj0xkhaWj5LSoNMW39ocA14I/BRYCvwMy58NbdDe4r9twwLCEIUcEoSYCbWkhqk1g0lLyTv92bTQUBkpdZWSDoNbZAKrgbXAy8B64JdE1jN4SVsvAquwokUhaJ70dNTyaiEmLqUaYiqUArZu0qLF+EdjOa/wwWKsK2r5tPiGFhjoGhPcCmwHdgKvEtlRbMNWYDOwQbtIEjlGDIlhKUmNqZOWKuOPW3bRSct1iUGMbM2PabxBp20GtMygt5jkfuAg8DpwaOF1y6+BA9iDXdpDEoKQQ79LLKv5mBZVX8ZZQiO66Nqt2jngISFNTJkoPqXjLoOKUvaY5HHgJHDmcAoncBw4UtIOkLtnxJAapEid6aqkTKliW2f5VOPysXUFjJQ0Mf1KTAXzTb6VeeK8wQQOmeibwNvA7xn8xv+95X3nyIqCDiU9iGFJUXPWkLKo6krbLJ2GpIQdiJoiy8dJyg3E1IjoDDvCCgPfZ3LnCHgf+MNwwevveE+UE1N0RGKilJ0MIUv021Vb86QIYefJJUSkXF1d4eS6rdoXM0uUV5nA6ygFCZeBDxpe+1MEkSBJzbESs6uWzwu+gEWzdFpIidtxzWzHck5h6fgpETHI8cWYGlOMW7VKzEKWGCb/V+Bj4G/4wGtRzDsSc07SjjKSsqaEPFdCpkWIpMQc9UmJCLEXVVaGFXPP4G/XUnybjpg3TPhSS4GPKjHvVVJOY10hJduxyKpa0gt01Nlk3JxkbXEt+j8OBREhpIgRORzw6LiqdqUexXeTb/qUFFzE1MAly4vaQkpYNrHAqh1nSS2Ztl0yJiFsvyYhbh0RHDH+UvJSw7cxqM4xc9SZdbUrnaniewEiRBJyoBKyniGk4y8ZOY+kLhn4z19+MYLcw8ghr0ZqppnEMpPbZUmcIOAMTA1hubDTILenziKT5nBmt92B9G1XhOQQk3iliRgGU+JbqzOBttqdNkUOp1451e5LUWXJSFHtaCHebxunqKZJ4d+3LEZ2JwZWYcCjLKlnTHCZFGwgIB7MYjFdUculJwczKaZquVT9c4gUVKeG9P3fYuS3VPaPyRrf7CQ7Ro/0yDWD+qHn7C5j5ug+aO9m7c2+FZLndv/2xPin4BLJqcZf2wiaMbdxs3KzJncjzlWjFFM5lJl0+A/I7lpMX+bdDHKIe1WlZ0zuddXVIjJMMsr21t6mI+8DsbsXQ2pEDqdhuf+tsHM8YfJgbujZZh0Z/W4xNX9fXoz/+8nKKdlnSYqKTYctplYIfC1i7KFPnhwwUXnMah+dioxCsgyEfD1iIPMxrVAQ0p8ZexLuWsw/8PFSG0HPbPgAAAAASUVORK5CYII="},"./node_modules/leaflet-extra-markers/src/assets/js/leaflet.extra-markers.js":function(e,t){!function(e,t,r){"use strict";L.ExtraMarkers={},L.ExtraMarkers.version="1.0.1",L.ExtraMarkers.Icon=L.Icon.extend({options:{iconSize:[35,45],iconAnchor:[17,42],popupAnchor:[1,-32],shadowAnchor:[10,12],shadowSize:[36,16],className:"extra-marker",prefix:"",extraClasses:"",shape:"circle",icon:"",innerHTML:"",markerColor:"red",svgBorderColor:"#fff",svgOpacity:1,iconColor:"#fff",number:"",svg:!1},initialize:function(e){e=L.Util.setOptions(this,e)},createIcon:function(){var e=t.createElement("div"),r=this.options;return r.icon&&(e.innerHTML=this._createInner()),r.innerHTML&&(e.innerHTML=r.innerHTML),r.bgPos&&(e.style.backgroundPosition=-r.bgPos.x+"px "+-r.bgPos.y+"px"),r.svg?this._setIconStyles(e,"svg"):this._setIconStyles(e,r.shape+"-"+r.markerColor),e},_createInner:function(){var e="",t="",r=this.options;if(r.iconColor&&(e="style='color: "+r.iconColor+"' "),r.number&&(t="number='"+r.number+"' "),r.svg){var n='';return"square"==r.shape&&(n=''),"star"==r.shape&&(n=''),"penta"==r.shape&&(n=''),n+""}return""},_setIconStyles:function(e,t){var r,n,o=this.options,i=L.point(o["shadow"===t?"shadowSize":"iconSize"]);"shadow"===t?(r=L.point(o.shadowAnchor||o.iconAnchor),n="shadow"):(r=L.point(o.iconAnchor),n="icon"),!r&&i&&(r=i.divideBy(2,!0)),e.className="leaflet-marker-"+n+" extra-marker-"+t+" "+o.className,r&&(e.style.marginLeft=-r.x+"px",e.style.marginTop=-r.y+"px"),i&&(e.style.width=i.x+"px",e.style.height=i.y+"px")},createShadow:function(){var e=t.createElement("div");return this._setIconStyles(e,"shadow"),e}}),L.ExtraMarkers.icon=function(e){return new L.ExtraMarkers.Icon(e)}}(window,document)},"./node_modules/leaflet-minimap/dist/Control.MiniMap.min.js":function(e,t,r){var n,o,i;!function(a,s){o=[r("./MapStore2/web/client/libs/leaflet.js")],void 0===(i="function"==typeof(n=a)?n.apply(t,o):n)||(e.exports=i),void 0!==s&&s.L&&(s.L.Control.MiniMap=a(L),s.L.control.minimap=function(e,t){return new s.L.Control.MiniMap(e,t)})}((function(e){var t=e.Control.extend({includes:e.Evented?e.Evented.prototype:e.Mixin.Events,options:{position:"bottomright",toggleDisplay:!1,zoomLevelOffset:-5,zoomLevelFixed:!1,centerFixed:!1,zoomAnimation:!1,autoToggleDisplay:!1,minimized:!1,width:150,height:150,collapsedWidth:19,collapsedHeight:19,aimingRectOptions:{color:"#ff7800",weight:1,clickable:!1},shadowRectOptions:{color:"#000000",weight:1,clickable:!1,opacity:0,fillOpacity:0},strings:{hideText:"Hide MiniMap",showText:"Show MiniMap"},mapOptions:{}},initialize:function(t,r){e.Util.setOptions(this,r),this.options.aimingRectOptions.clickable=!1,this.options.shadowRectOptions.clickable=!1,this._layer=t},onAdd:function(t){this._mainMap=t,this._container=e.DomUtil.create("div","leaflet-control-minimap"),this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",e.DomEvent.disableClickPropagation(this._container),e.DomEvent.on(this._container,"mousewheel",e.DomEvent.stopPropagation);var r={attributionControl:!1,dragging:!this.options.centerFixed,zoomControl:!1,zoomAnimation:this.options.zoomAnimation,autoToggleDisplay:this.options.autoToggleDisplay,touchZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),scrollWheelZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),doubleClickZoom:this.options.centerFixed?"center":!this._isZoomLevelFixed(),boxZoom:!this._isZoomLevelFixed(),crs:t.options.crs};return r=e.Util.extend(this.options.mapOptions,r),this._miniMap=new e.Map(this._container,r),this._miniMap.addLayer(this._layer),this._mainMapMoving=!1,this._miniMapMoving=!1,this._userToggledDisplay=!1,this._minimized=!1,this.options.toggleDisplay&&this._addToggleButton(),this._miniMap.whenReady(e.Util.bind((function(){this._aimingRect=e.rectangle(this._mainMap.getBounds(),this.options.aimingRectOptions).addTo(this._miniMap),this._shadowRect=e.rectangle(this._mainMap.getBounds(),this.options.shadowRectOptions).addTo(this._miniMap),this._mainMap.on("moveend",this._onMainMapMoved,this),this._mainMap.on("move",this._onMainMapMoving,this),this._miniMap.on("movestart",this._onMiniMapMoveStarted,this),this._miniMap.on("move",this._onMiniMapMoving,this),this._miniMap.on("moveend",this._onMiniMapMoved,this)}),this)),this._container},addTo:function(t){e.Control.prototype.addTo.call(this,t);var r=this.options.centerFixed||this._mainMap.getCenter();return this._miniMap.setView(r,this._decideZoom(!0)),this._setDisplay(this.options.minimized),this},onRemove:function(e){this._mainMap.off("moveend",this._onMainMapMoved,this),this._mainMap.off("move",this._onMainMapMoving,this),this._miniMap.off("moveend",this._onMiniMapMoved,this),this._miniMap.removeLayer(this._layer)},changeLayer:function(e){this._miniMap.removeLayer(this._layer),this._layer=e,this._miniMap.addLayer(this._layer)},_addToggleButton:function(){this._toggleDisplayButton=this.options.toggleDisplay?this._createButton("",this._toggleButtonInitialTitleText(),"leaflet-control-minimap-toggle-display leaflet-control-minimap-toggle-display-"+this.options.position,this._container,this._toggleDisplayButtonClicked,this):void 0,this._toggleDisplayButton.style.width=this.options.collapsedWidth+"px",this._toggleDisplayButton.style.height=this.options.collapsedHeight+"px"},_toggleButtonInitialTitleText:function(){return this.options.minimized?this.options.strings.showText:this.options.strings.hideText},_createButton:function(t,r,n,o,i,a){var s=e.DomUtil.create("a",n,o);s.innerHTML=t,s.href="#",s.title=r;var l=e.DomEvent.stopPropagation;return e.DomEvent.on(s,"click",l).on(s,"mousedown",l).on(s,"dblclick",l).on(s,"click",e.DomEvent.preventDefault).on(s,"click",i,a),s},_toggleDisplayButtonClicked:function(){this._userToggledDisplay=!0,this._minimized?this._restore():this._minimize()},_setDisplay:function(e){e!==this._minimized&&(this._minimized?this._restore():this._minimize())},_minimize:function(){this.options.toggleDisplay?(this._container.style.width=this.options.collapsedWidth+"px",this._container.style.height=this.options.collapsedHeight+"px",this._toggleDisplayButton.className+=" minimized-"+this.options.position,this._toggleDisplayButton.title=this.options.strings.showText):this._container.style.display="none",this._minimized=!0,this._onToggle()},_restore:function(){this.options.toggleDisplay?(this._container.style.width=this.options.width+"px",this._container.style.height=this.options.height+"px",this._toggleDisplayButton.className=this._toggleDisplayButton.className.replace("minimized-"+this.options.position,""),this._toggleDisplayButton.title=this.options.strings.hideText):this._container.style.display="block",this._minimized=!1,this._onToggle()},_onMainMapMoved:function(e){if(this._miniMapMoving)this._miniMapMoving=!1;else{var t=this.options.centerFixed||this._mainMap.getCenter();this._mainMapMoving=!0,this._miniMap.setView(t,this._decideZoom(!0)),this._setDisplay(this._decideMinimized())}this._aimingRect.setBounds(this._mainMap.getBounds())},_onMainMapMoving:function(e){this._aimingRect.setBounds(this._mainMap.getBounds())},_onMiniMapMoveStarted:function(e){if(!this.options.centerFixed){var t=this._aimingRect.getBounds(),r=this._miniMap.latLngToContainerPoint(t.getSouthWest()),n=this._miniMap.latLngToContainerPoint(t.getNorthEast());this._lastAimingRectPosition={sw:r,ne:n}}},_onMiniMapMoving:function(t){this.options.centerFixed||!this._mainMapMoving&&this._lastAimingRectPosition&&(this._shadowRect.setBounds(new e.LatLngBounds(this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.sw),this._miniMap.containerPointToLatLng(this._lastAimingRectPosition.ne))),this._shadowRect.setStyle({opacity:1,fillOpacity:.3}))},_onMiniMapMoved:function(e){this._mainMapMoving?this._mainMapMoving=!1:(this._miniMapMoving=!0,this._mainMap.setView(this._miniMap.getCenter(),this._decideZoom(!1)),this._shadowRect.setStyle({opacity:0,fillOpacity:0}))},_isZoomLevelFixed:function(){var e=this.options.zoomLevelFixed;return this._isDefined(e)&&this._isInteger(e)},_decideZoom:function(e){if(this._isZoomLevelFixed())return e?this.options.zoomLevelFixed:this._mainMap.getZoom();if(e)return this._mainMap.getZoom()+this.options.zoomLevelOffset;var t,r=this._miniMap.getZoom()-this._mainMap.getZoom(),n=this._miniMap.getZoom()-this.options.zoomLevelOffset;return r>this.options.zoomLevelOffset&&this._mainMap.getZoom()this._lastMiniMapZoom?(t=this._mainMap.getZoom()+1,this._miniMap.setZoom(this._miniMap.getZoom()-1)):t=this._mainMap.getZoom():t=n,this._lastMiniMapZoom=this._miniMap.getZoom(),t},_decideMinimized:function(){return this._userToggledDisplay?this._minimized:this.options.autoToggleDisplay?!!this._mainMap.getBounds().contains(this._miniMap.getBounds()):this._minimized},_isInteger:function(e){return"number"==typeof e},_isDefined:function(e){return void 0!==e},_onToggle:function(){e.Util.requestAnimFrame((function(){e.DomEvent.on(this._container,"transitionend",this._fireToggleEvents,this),e.Browser.any3d||e.Util.requestAnimFrame(this._fireToggleEvents,this)}),this)},_fireToggleEvents:function(){e.DomEvent.off(this._container,"transitionend",this._fireToggleEvents,this);var t={minimized:this._minimized};this.fire(this._minimized?"minimize":"restore",t),this.fire("toggle",t)}});return e.Map.mergeOptions({miniMapControl:!1}),e.Map.addInitHook((function(){this.options.miniMapControl&&(this.miniMapControl=(new t).addTo(this))})),t}),window)},"./node_modules/leaflet-plugins/layer/tile/Bing.js":function(e,t){L.BingLayer=L.TileLayer.extend({options:{subdomains:[0,1,2,3],type:"Aerial",attribution:"Bing",culture:""},initialize:function(e,t){L.Util.setOptions(this,t),this._key=e,this._url=null,this._providers=[],this.metaRequested=!1},tile2quad:function(e,t,r){for(var n="",o=r;o>0;o--){var i=0,a=1<=n.zoomMin&&e.intersects(n.bounds)?(!n.active&&this._map.attributionControl&&this._map.attributionControl.addAttribution(n.attrib),n.active=!0):(n.active&&this._map.attributionControl&&this._map.attributionControl.removeAttribution(n.attrib),n.active=!1)}},onAdd:function(e){this.loadMetadata(),L.TileLayer.prototype.onAdd.apply(this,[e])},onRemove:function(e){for(var t=0;t'+t+""})})},addOriginLabel:function(){return n.marker([0,0],{icon:n.divIcon({iconSize:[0,0],className:"leaflet-grid-label",html:'
(0,0)
'})})}});e.exports=o},"./node_modules/leaflet.gridlayer.googlemutant/Leaflet.GoogleMutant.js":function(e,t){L.GridLayer.GoogleMutant=L.GridLayer.extend({options:{minZoom:0,maxZoom:23,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",opacity:1,continuousWorld:!1,noWrap:!1,type:"roadmap",maxNativeZoom:21},initialize:function(e){L.GridLayer.prototype.initialize.call(this,e),this._ready=!!window.google&&!!window.google.maps&&!!window.google.maps.Map,this._GAPIPromise=this._ready?Promise.resolve(window.google):new Promise((function(e,t){var r=0,n=null;n=setInterval((function(){return r>=10?(clearInterval(n),t(new Error("window.google not found after 10 attempts"))):window.google&&window.google.maps&&window.google.maps.Map?(clearInterval(n),e(window.google)):void r++}),500)})),this._tileCallbacks={},this._freshTiles={},this._imagesPerTile="hybrid"===this.options.type?2:1},onAdd:function(e){L.GridLayer.prototype.onAdd.call(this,e),this._initMutantContainer(),this._GAPIPromise.then(function(){if(this._ready=!0,this._map=e,this._initMutant(),e.on("viewreset",this._reset,this),e.on("move",this._update,this),e.on("zoomend",this._handleZoomAnim,this),e.on("resize",this._resize,this),google.maps.event.addListenerOnce(this._mutant,"idle",function(){this._checkZoomLevels(),this._mutantIsReady=!0}.bind(this)),e._controlCorners.bottomright.style.marginBottom="20px",e._controlCorners.bottomleft.style.marginBottom="20px",this._reset(),this._update(),this._subLayers)for(var t in this._subLayers)this._subLayers[t].setMap(this._mutant)}.bind(this))},onRemove:function(e){L.GridLayer.prototype.onRemove.call(this,e),e._container.removeChild(this._mutantContainer),this._mutantContainer=void 0,google.maps.event.clearListeners(e,"idle"),google.maps.event.clearListeners(this._mutant,"idle"),e.off("viewreset",this._reset,this),e.off("move",this._update,this),e.off("zoomend",this._handleZoomAnim,this),e.off("resize",this._resize,this),e._controlCorners&&(e._controlCorners.bottomright.style.marginBottom="0em",e._controlCorners.bottomleft.style.marginBottom="0em")},getAttribution:function(){return this.options.attribution},setOpacity:function(e){this.options.opacity=e,e<1&&L.DomUtil.setOpacity(this._mutantContainer,e)},setElementSize:function(e,t){e.style.width=t.x+"px",e.style.height=t.y+"px"},addGoogleLayer:function(e,t){return this._subLayers||(this._subLayers={}),this._GAPIPromise.then(function(){var r=new(0,google.maps[e])(t);return r.setMap(this._mutant),this._subLayers[e]=r,r}.bind(this))},removeGoogleLayer:function(e){var t=this._subLayers&&this._subLayers[e];t&&(t.setMap(null),delete this._subLayers[e])},_initMutantContainer:function(){this._mutantContainer||(this._mutantContainer=L.DomUtil.create("div","leaflet-google-mutant leaflet-top leaflet-left"),this._mutantContainer.id="_MutantContainer_"+L.Util.stamp(this._mutantContainer),this._mutantContainer.style.zIndex="800",this._mutantContainer.style.pointerEvents="none",this._map.getContainer().appendChild(this._mutantContainer)),this.setOpacity(this.options.opacity),this.setElementSize(this._mutantContainer,this._map.getSize()),this._attachObserver(this._mutantContainer)},_initMutant:function(){if(this._ready&&this._mutantContainer){this._mutantCenter=new google.maps.LatLng(0,0);var e=new google.maps.Map(this._mutantContainer,{center:this._mutantCenter,zoom:0,tilt:0,mapTypeId:this.options.type,disableDefaultUI:!0,keyboardShortcuts:!1,draggable:!1,disableDoubleClickZoom:!0,scrollwheel:!1,streetViewControl:!1,styles:this.options.styles||{},backgroundColor:"transparent"});this._mutant=e,google.maps.event.addListenerOnce(e,"idle",function(){for(var e=this._mutantContainer.querySelectorAll("a"),t=0;t1&&(e.style.zIndex=1,n=1)):((r=e.src.match(this._satRegexp))&&(t={x:r[1],y:r[2],z:r[3]}),n=0),t){var o=this._tileCoordsToKey(t);e.style.position="absolute",e.style.visibility="hidden";var i=o+"/"+n;if(this._freshTiles[i]=e,i in this._tileCallbacks&&this._tileCallbacks[i])this._tileCallbacks[i].pop()(e),this._tileCallbacks[i].length||delete this._tileCallbacks[i];else if(this._tiles[o]){var a=this._tiles[o].el,s=0===n?a.firstChild:a.firstChild.nextSibling,l=this._clone(e);a.replaceChild(l,s)}}else e.src.match(this._staticRegExp)&&(e.style.visibility="hidden")},createTile:function(e,t){var r=this._tileCoordsToKey(e),n=L.DomUtil.create("div");n.dataset.pending=this._imagesPerTile,t=t.bind(this,null,n);for(var o=0;othis.options.maxNativeZoom)&&this._setMaxNativeZoom(t)},_setMaxNativeZoom:function(e){e!=this.options.maxNativeZoom&&(this.options.maxNativeZoom=e,this._resetView())},_reset:function(){this._initContainer()},_update:function(){if(this._mutant){var e=this._map.getCenter(),t=new google.maps.LatLng(e.lat,e.lng);this._mutant.setCenter(t);var r=this._map.getZoom(),n=r!==Math.round(r),o=this._mutant.getZoom();n||r==o||(this._mutant.setZoom(r),this._mutantIsReady&&this._checkZoomLevels())}L.GridLayer.prototype._update.call(this)},_resize:function(){var e=this._map.getSize();this._mutantContainer.style.width===e.x&&this._mutantContainer.style.height===e.y||(this.setElementSize(this._mutantContainer,e),this._mutant&&google.maps.event.trigger(this._mutant,"resize"))},_handleZoomAnim:function(){if(this._mutant){var e=this._map.getCenter(),t=new google.maps.LatLng(e.lat,e.lng);this._mutant.setCenter(t),this._mutant.setZoom(Math.round(this._map.getZoom()))}},_removeTile:function(e){if(this._mutant)return setTimeout(this._pruneTile.bind(this,e),1e3),L.GridLayer.prototype._removeTile.call(this,e)},_pruneTile:function(e){for(var t=this._mutant.getZoom(),r=e.split(":")[2],n=this._mutant.getBounds(),o=n.getSouthWest(),i=n.getNorthEast(),a=L.latLngBounds([[o.lat(),o.lng()],[i.lat(),i.lng()]]),s=0;s=1.3?"crs":"srs";this.wmsParams[r]=this._crs.code,t.NonTiledLayer.prototype.onAdd.call(this,e)},getImageUrl:function(e,r,n){var o=this.wmsParams;o.width=r,o.height=n;var i=this._crs.project(e.getNorthWest()),a=this._crs.project(e.getSouthEast()),s=this._wmsUrl,l=l=(this._wmsVersion>=1.3&&this._crs===t.CRS.EPSG4326?[a.y,i.x,i.y,a.x]:[i.x,a.y,a.x,i.y]).join(",");return s+t.Util.getParamString(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+l},setParams:function(e,r){return t.extend(this.wmsParams,e),r||this.redraw(),this}}),t.nonTiledLayer.wms=function(e,r){return new t.NonTiledLayer.WMS(e,r)},r.exports=t.NonTiledLayer.WMS}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,r,n){(function(e){"use strict";var t="undefined"!=typeof window?window.L:void 0!==e?e.L:null;t.NonTiledLayer=(t.Layer||t.Class).extend({includes:t.Evented||t.Mixin.Events,emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==",options:{attribution:"",opacity:1,zIndex:void 0,minZoom:0,maxZoom:18,pointerEvents:null,errorImageUrl:"data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==",bounds:t.latLngBounds([-85.05,-180],[85.05,180]),useCanvas:void 0},key:"",initialize:function(e){t.setOptions(this,e)},onAdd:function(e){this._map=e,void 0===this._zoomAnimated&&(this._zoomAnimated=t.DomUtil.TRANSITION&&t.Browser.any3d&&!t.Browser.mobileOpera&&this._map.options.zoomAnimation),t.version<"1.0"&&this._map.on(this.getEvents(),this),this._div||(this._div=t.DomUtil.create("div","leaflet-image-layer"),this.options.pointerEvents&&(this._div.style["pointer-events"]=this.options.pointerEvents),void 0!==this.options.zIndex&&(this._div.style.zIndex=this.options.zIndex),void 0!==this.options.opacity&&(this._div.style.opacity=this.options.opacity)),this.getPane().appendChild(this._div);var r=!!window.HTMLCanvasElement;void 0===this.options.useCanvas?this._useCanvas=r:this._useCanvas=this.options.useCanvas,this._useCanvas?(this._bufferCanvas=this._initCanvas(),this._currentCanvas=this._initCanvas()):(this._bufferImage=this._initImage(),this._currentImage=this._initImage()),this._update()},getPane:function(){return t.Layer?t.Layer.prototype.getPane.call(this):(this.options.pane?this._pane=this.options.pane:this._pane=this._map.getPanes().overlayPane,this._pane)},onRemove:function(e){t.version<"1.0"&&this._map.off(this.getEvents(),this),this.getPane().removeChild(this._div),this._useCanvas?(this._div.removeChild(this._bufferCanvas),this._div.removeChild(this._currentCanvas)):(this._div.removeChild(this._bufferImage),this._div.removeChild(this._currentImage))},addTo:function(e){return e.addLayer(this),this},_setZoom:function(){this._useCanvas?(this._currentCanvas._bounds&&this._resetImageScale(this._currentCanvas,!0),this._bufferCanvas._bounds&&this._resetImageScale(this._bufferCanvas)):(this._currentImage._bounds&&this._resetImageScale(this._currentImage,!0),this._bufferImage._bounds&&this._resetImageScale(this._bufferImage))},getEvents:function(){var e={moveend:this._update};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),t.version>="1.0"&&(e.zoom=this._setZoom),e},getElement:function(){return this._div},setOpacity:function(e){return this.options.opacity=e,this._div&&t.DomUtil.setOpacity(this._div,this.options.opacity),this},setZIndex:function(e){return e&&(this.options.zIndex=e,this._div&&(this._div.style.zIndex=e)),this},bringToFront:function(){return this._div&&this.getPane().appendChild(this._div),this},bringToBack:function(){return this._div&&this.getPane().insertBefore(this._div,this.getPane().firstChild),this},getAttribution:function(){return this.options.attribution},_initCanvas:function(){var e=t.DomUtil.create("canvas","leaflet-image-layer");return this._div.appendChild(e),e._image=new Image,this._ctx=e.getContext("2d"),this._map.options.zoomAnimation&&t.Browser.any3d?t.DomUtil.addClass(e,"leaflet-zoom-animated"):t.DomUtil.addClass(e,"leaflet-zoom-hide"),t.extend(e._image,{onload:t.bind(this._onImageLoad,this),onerror:t.bind(this._onImageError,this)}),e},_initImage:function(){var e=t.DomUtil.create("img","leaflet-image-layer");return this._div.appendChild(e),this._map.options.zoomAnimation&&t.Browser.any3d?t.DomUtil.addClass(e,"leaflet-zoom-animated"):t.DomUtil.addClass(e,"leaflet-zoom-hide"),t.extend(e,{galleryimg:"no",onselectstart:t.Util.falseFn,onmousemove:t.Util.falseFn,onload:t.bind(this._onImageLoad,this),onerror:t.bind(this._onImageError,this)}),e},redraw:function(){return this._map&&this._update(),this},_animateZoom:function(e){this._useCanvas?(this._currentCanvas._bounds&&this._animateImage(this._currentCanvas,e),this._bufferCanvas._bounds&&this._animateImage(this._bufferCanvas,e)):(this._currentImage._bounds&&this._animateImage(this._currentImage,e),this._bufferImage._bounds&&this._animateImage(this._bufferImage,e))},_animateImage:function(e,r){if(void 0===t.DomUtil.setTransform){var n=this._map,o=e._scale*n.getZoomScale(r.zoom),i=e._bounds.getNorthWest(),a=e._bounds.getSouthEast(),s=n._latLngToNewLayerPoint(i,r.zoom,r.center),l=n._latLngToNewLayerPoint(a,r.zoom,r.center)._subtract(s),c=s._add(l._multiplyBy(.5*(1-1/o)));e.style[t.DomUtil.TRANSFORM]=t.DomUtil.getTranslateString(c)+" scale("+o+") "}else n=this._map,o=e._scale*e._sscale*n.getZoomScale(r.zoom),i=e._bounds.getNorthWest(),a=e._bounds.getSouthEast(),s=n._latLngToNewLayerPoint(i,r.zoom,r.center),t.DomUtil.setTransform(e,s,o);e._lastScale=o},_resetImageScale:function(e,r){var n=new t.Bounds(this._map.latLngToLayerPoint(e._bounds.getNorthWest()),this._map.latLngToLayerPoint(e._bounds.getSouthEast())),o=e._orgBounds.getSize().y,i=n.getSize().y/o;e._sscale=i,t.DomUtil.setTransform(e,n.min,i)},_resetImage:function(e){var r=new t.Bounds(this._map.latLngToLayerPoint(e._bounds.getNorthWest()),this._map.latLngToLayerPoint(e._bounds.getSouthEast())),n=r.getSize();t.DomUtil.setPosition(e,r.min),e._orgBounds=r,e._sscale=1,this._useCanvas?(e.width=n.x,e.height=n.y):(e.style.width=n.x+"px",e.style.height=n.y+"px")},_getClippedBounds:function(){var e=this._map.getBounds(),r=e.getSouth(),n=e.getNorth(),o=e.getWest(),i=e.getEast(),a=this.options.bounds.getSouth(),s=this.options.bounds.getNorth(),l=this.options.bounds.getWest(),c=this.options.bounds.getEast();rs&&(n=s),oc&&(i=c);var u=new t.LatLng(n,o),p=new t.LatLng(r,i);return new t.LatLngBounds(u,p)},_update:function(){var e,r=this._getClippedBounds(),n=this._map.latLngToContainerPoint(r.getNorthWest()),o=this._map.latLngToContainerPoint(r.getSouthEast()),i=o.x-n.x,a=o.y-n.y;if(this._useCanvas?(this._bufferCanvas._scale=this._bufferCanvas._lastScale,this._currentCanvas._scale=this._currentCanvas._lastScale=1,this._bufferCanvas._sscale=1,this._currentCanvas._bounds=r,this._resetImage(this._currentCanvas),e=this._currentCanvas._image,t.DomUtil.setOpacity(e,0)):(this._bufferImage._scale=this._bufferImage._lastScale,this._currentImage._scale=this._currentImage._lastScale=1,this._bufferImage._sscale=1,this._currentImage._bounds=r,this._resetImage(this._currentImage),e=this._currentImage,t.DomUtil.setOpacity(e,0)),this._map.getZoom()this.options.maxZoom||i<32||a<32)return this._div.style.visibility="hidden",e.src=this.emptyImageUrl,this.key=e.key="",void(e.tag=null);this.fire("loading"),this.key=r.getNorthWest()+", "+r.getSouthEast()+", "+i+", "+a,this.getImageUrl?(e.src=this.getImageUrl(r,i,a),e.key=this.key):this.getImageUrlAsync(r,i,a,this.key,(function(t,r,n){e.key=t,e.src=r,e.tag=n}))},_onImageError:function(e){this.fire("error",e),t.DomUtil.addClass(e.target,"invalid"),e.target.src!==this.options.errorImageUrl&&(e.target.src=this.options.errorImageUrl)},_onImageLoad:function(e){(e.target.src===this.options.errorImageUrl||(t.DomUtil.removeClass(e.target,"invalid"),e.target.key&&e.target.key===this.key))&&(this._onImageDone(e),this.fire("load",e))},_onImageDone:function(e){if(this._useCanvas)this._renderCanvas(e);else{t.DomUtil.setOpacity(this._currentImage,1),t.DomUtil.setOpacity(this._bufferImage,0),this._addInteraction&&this._currentImage.tag&&this._addInteraction(this._currentImage.tag);var r=this._bufferImage;this._bufferImage=this._currentImage,this._currentImage=r}""!==e.target.key&&(this._div.style.visibility="visible")},_renderCanvas:function(e){this._currentCanvas.getContext("2d").drawImage(this._currentCanvas._image,0,0),t.DomUtil.setOpacity(this._currentCanvas,1),t.DomUtil.setOpacity(this._bufferCanvas,0),this._addInteraction&&this._currentCanvas._image.tag&&this._addInteraction(this._currentCanvas._image.tag);var r=this._bufferCanvas;this._bufferCanvas=this._currentCanvas,this._currentCanvas=r}}),t.nonTiledLayer=function(){return new t.NonTiledLayer},r.exports=t.NonTiledLayer}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[2,1])(2)}).call(this,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/lodash.once/index.js":function(e,t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,s=Object.prototype.toString;function l(e,t){var l;if("function"!=typeof t)throw new TypeError("Expected a function");return e=function(e){var t=function(e){if(!e)return 0===e?e:0;if((e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(e))return NaN;if(c(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=c(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var l=o.test(e);return l||i.test(e)?a(e.slice(2),l?2:8):n.test(e)?NaN:+e}(e))===1/0||e===-1/0){return 17976931348623157e292*(e<0?-1:1)}return e==e?e:0}(e),l=t%1;return t==t?l?t-l:t:0}(e),function(){return--e>0&&(l=t.apply(this,arguments)),e<=1&&(t=void 0),l}}function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){return l(2,e)}},"./node_modules/lodash/_customOmitClone.js":function(e,t,r){var n=r("./node_modules/lodash/isPlainObject.js");e.exports=function(e){return n(e)?void 0:e}},"./node_modules/lodash/isFinite.js":function(e,t,r){var n=r("./node_modules/lodash/_root.js").isFinite;e.exports=function(e){return"number"==typeof e&&n(e)}},"./node_modules/lodash/omit.js":function(e,t,r){var n=r("./node_modules/lodash/_arrayMap.js"),o=r("./node_modules/lodash/_baseClone.js"),i=r("./node_modules/lodash/_baseUnset.js"),a=r("./node_modules/lodash/_castPath.js"),s=r("./node_modules/lodash/_copyObject.js"),l=r("./node_modules/lodash/_customOmitClone.js"),c=r("./node_modules/lodash/_flatRest.js"),u=r("./node_modules/lodash/_getAllKeysIn.js"),p=c((function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),r),c&&(r=o(r,7,l));for(var p=t.length;p--;)i(r,t[p]);return r}));e.exports=p},"./node_modules/make-event-props/dist/entry.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.focusEvents=t.keyboardEvents=t.touchEvents=t.mouseEvents=void 0;var n=["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"];t.mouseEvents=n;var o=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"];t.touchEvents=o;var i=["onKeyDown","onKeyPress","onKeyUp"];t.keyboardEvents=i;var a=["onFocus","onBlur"];t.focusEvents=a;var s=function(e,t){var r={};return[].concat(n,o,i,a).forEach((function(n){e[n]&&(r[n]=function(r){return t?e[n](r,t(n)):e[n](r)})})),r};t.default=s},"./node_modules/merge-class-names/dist/esm/index.js":function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=new Array(e),r=0;r.75*u||c>.75*p?this.resetExtent_():Object(b.g)(i,n)||this.recenter_()}},t.prototype.resetExtent_=function(){var e=this.getMap(),t=this.ovmap_,r=e.getSize(),n=e.getView().calculateExtent(r),o=t.getView(),i=Math.log(7.5)/Math.LN2,a=1/(.1*Math.pow(2,i/2));Object(b.J)(n,a),o.fit(n)},t.prototype.recenter_=function(){var e=this.getMap(),t=this.ovmap_,r=e.getView();t.getView().setCenter(r.getCenter())},t.prototype.updateBox_=function(){var e=this.getMap(),t=this.ovmap_;if(e.isRendered()&&t.isRendered()){var r=e.getSize(),n=e.getView(),o=t.getView(),i=n.getRotation(),a=this.boxOverlay_,s=this.boxOverlay_.getElement(),l=n.calculateExtent(r),c=o.getResolution(),u=Object(b.v)(l),p=Object(b.D)(l),d=this.calculateCoordinateRotate_(i,u);a.setPosition(d),s&&(s.style.width=Math.abs((u[0]-p[0])/c)+"px",s.style.height=Math.abs((p[1]-u[1])/c)+"px")}},t.prototype.calculateCoordinateRotate_=function(e,t){var r,n=this.getMap().getView().getCenter();return n&&(r=[t[0]-n[0],t[1]-n[1]],Object(f.f)(r,e),Object(f.a)(r,n)),r},t.prototype.handleClick_=function(e){e.preventDefault(),this.handleToggle_()},t.prototype.handleToggle_=function(){this.element.classList.toggle(h.a),this.collapsed_?Object(m.f)(this.collapseLabel_,this.label_):Object(m.f)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_;var e=this.ovmap_;this.collapsed_||e.isRendered()||(e.updateSize(),this.resetExtent_(),Object(g.b)(e,i.a.POSTRENDER,(function(e){this.updateBox_()}),this))},t.prototype.getCollapsible=function(){return this.collapsible_},t.prototype.setCollapsible=function(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle("ol-uncollapsible"),!e&&this.collapsed_&&this.handleToggle_())},t.prototype.setCollapsed=function(e){this.collapsible_&&this.collapsed_!==e&&this.handleToggle_()},t.prototype.getCollapsed=function(){return this.collapsed_},t.prototype.getOverviewMap=function(){return this.ovmap_},t}(d.a);function _(e){this.validateExtent_(),this.updateBox_()}t.a=v},"./node_modules/ol/control/ScaleLine.js":function(e,t,r){"use strict";var n=r("./node_modules/ol/Object.js"),o=r("./node_modules/ol/asserts.js"),i=r("./node_modules/ol/control/Control.js"),a=r("./node_modules/ol/css.js"),s=r("./node_modules/ol/events.js"),l=r("./node_modules/ol/proj.js"),c=r("./node_modules/ol/proj/Units.js"),u="degrees",p="imperial",d="nautical",f="metric",h="us",m=[1,2,5],g=function(e){function t(t){var r=t||{},o=void 0!==r.className?r.className:"ol-scale-line";e.call(this,{element:document.createElement("div"),render:r.render||y,target:r.target}),this.innerElement_=document.createElement("div"),this.innerElement_.className=o+"-inner",this.element.className=o+" "+a.e,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=void 0!==r.minWidth?r.minWidth:64,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_="",Object(s.a)(this,Object(n.b)("units"),this.handleUnitsChanged_,this),this.setUnits(r.units||f)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.getUnits=function(){return this.get("units")},t.prototype.handleUnitsChanged_=function(){this.updateElement_()},t.prototype.setUnits=function(e){this.set("units",e)},t.prototype.updateElement_=function(){var e=this.viewState_;if(e){var t=e.center,r=e.projection,n=this.getUnits(),i=n==u?c.default.DEGREES:c.default.METERS,a=Object(l.getPointResolution)(r,e.resolution,t,i);r.getUnits()!=c.default.DEGREES&&r.getMetersPerUnit()&&i==c.default.METERS&&(a*=r.getMetersPerUnit());var s=this.minWidth_*a,g="";if(n==u){var y=c.METERS_PER_UNIT[c.default.DEGREES];r.getUnits()==c.default.DEGREES?s*=y:a/=y,s=this.minWidth_)break;++_}var w=b+" "+g;this.renderedHTML_!=w&&(this.innerElement_.innerHTML=w,this.renderedHTML_=w),this.renderedWidth_!=v&&(this.innerElement_.style.width=v+"px",this.renderedWidth_=v),this.renderedVisible_||(this.element.style.display="",this.renderedVisible_=!0)}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},t}(i.a);function y(e){var t=e.frameState;this.viewState_=t?t.viewState:null,this.updateElement_()}t.a=g},"./node_modules/ol/geom/Circle.js":function(e,t,r){"use strict";var n=r("./node_modules/ol/extent.js"),o=r("./node_modules/ol/geom/GeometryType.js"),i=r("./node_modules/ol/geom/SimpleGeometry.js"),a=r("./node_modules/ol/geom/flat/deflate.js"),s=function(e){function t(t,r,n){if(e.call(this),void 0!==n&&void 0===r)this.setFlatCoordinates(n,t);else{var o=r||0;this.setCenterAndRadius(t,o,n)}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.clone=function(){return new t(this.flatCoordinates.slice(),void 0,this.layout)},t.prototype.closestPointXY=function(e,t,r,n){var o=this.flatCoordinates,i=e-o[0],a=t-o[1],s=i*i+a*a;if(s=r[0]||(e[1]<=r[1]&&e[3]>=r[1]||Object(n.t)(e,this.intersectsCoordinate,this))}return!1},t.prototype.setCenter=function(e){var t=this.stride,r=this.flatCoordinates[t]-this.flatCoordinates[0],n=e.slice();n[t]=n[0]+r;for(var o=1;o=this.dragVertexDelay_?(this.downPx_=t.pixel,this.shouldHandle_=!this.freehand_,r=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&t.type===i.a.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(t),o=!1):this.freehand_&&t.type===i.a.POINTERDOWN?o=!1:r?(o=t.type===i.a.POINTERMOVE)&&this.freehand_?o=this.handlePointerMove_(t):(t.pointerEvent.pointerType==v.b||t.type===i.a.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(t):t.type===i.a.DBLCLICK&&(o=!1),e.prototype.handleEvent.call(this,t)&&o},t.prototype.handleDownEvent=function(e){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=e.pixel,this.finishCoordinate_||this.startDrawing_(e),!0):!!this.condition_(e)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new a.a(i.a.POINTERMOVE,e.map,e.pointerEvent,!1,e.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=e.pixel,!0)},t.prototype.handleUpEvent=function(e){var t=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(e);var r=this.mode_===A;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||r?this.finishDrawing():this.atFinish_(e)?this.finishCondition_(e)&&this.finishDrawing():this.addToDrawing_(e):(this.startDrawing_(e),this.mode_===C&&this.finishDrawing()),t=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!t&&this.stopClick_&&e.stopPropagation(),t},t.prototype.handlePointerMove_=function(e){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var t=this.downPx_,r=e.pixel,n=t[0]-r[0],o=t[1]-r[1],i=n*n+o*o;if(this.shouldHandle_=this.freehand_?i>this.squaredClickTolerance_:i<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(e):this.createOrUpdateSketchPoint_(e),!0},t.prototype.atFinish_=function(e){var t=!1;if(this.sketchFeature_){var r=!1,n=[this.finishCoordinate_];if(this.mode_===O)r=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===j){var o=this.sketchCoords_;r=o[0].length>this.minPoints_,n=[o[0][0],o[0][o[0].length-2]]}if(r)for(var i=e.map,a=0,s=n.length;a=this.maxPoints_&&(this.freehand_?r.pop():t=!0),r.push(n.slice()),this.geometryFunction_(r,o)):this.mode_===j&&((r=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?r.pop():t=!0),r.push(n.slice()),t&&(this.finishCoordinate_=r[0]),this.geometryFunction_(this.sketchCoords_,o)),this.updateSketchFeatures_(),t&&this.finishDrawing()},t.prototype.removeLastPoint=function(){if(this.sketchFeature_){var e,t=this.sketchFeature_.getGeometry();this.mode_===O?((e=this.sketchCoords_).splice(-2,1),this.geometryFunction_(e,t),e.length>=2&&(this.finishCoordinate_=e[e.length-2].slice())):this.mode_===j&&((e=this.sketchCoords_[0]).splice(-2,1),this.sketchLine_.getGeometry().setCoordinates(e),this.geometryFunction_(this.sketchCoords_,t)),0===e.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},t.prototype.finishDrawing=function(){var e=this.abortDrawing_();if(e){var t=this.sketchCoords_,r=e.getGeometry();this.mode_===O?(t.pop(),this.geometryFunction_(t,r)):this.mode_===j&&(t[0].pop(),this.geometryFunction_(t,r),t=r.getCoordinates()),this.type_===h.a.MULTI_POINT?e.setGeometry(new y.a([t])):this.type_===h.a.MULTI_LINE_STRING?e.setGeometry(new g.a([t])):this.type_===h.a.MULTI_POLYGON&&e.setGeometry(new b.a([t])),this.dispatchEvent(new M(T,e)),this.features_&&this.features_.push(e),this.source_&&this.source_.addFeature(e)}},t.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var e=this.sketchFeature_;return e&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),e},t.prototype.extend=function(e){var t=e.getGeometry();this.sketchFeature_=e,this.sketchCoords_=t.getCoordinates();var r=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=r.slice(),this.sketchCoords_.push(r.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new M(E,this.sketchFeature_))},t.prototype.updateSketchFeatures_=function(){var e=[];this.sketchFeature_&&e.push(this.sketchFeature_),this.sketchLine_&&e.push(this.sketchLine_),this.sketchPoint_&&e.push(this.sketchPoint_);var t=this.overlay_.getSource();t.clear(!0),t.addFeatures(e)},t.prototype.updateState_=function(){var e=this.getMap(),t=this.getActive();e&&t||this.abortDrawing_(),this.overlay_.setMap(t?e:null)},t}(S.b);t.a=R},"./node_modules/ol/ol.css":function(e,t,r){var n=r("./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js?!./node_modules/ol/ol.css");"string"==typeof n&&(n=[[e.i,n,""]]);r("./node_modules/style-loader/addStyles.js")(n,{});n.locals&&(e.exports=n.locals)},"./node_modules/ol/proj/proj4.js":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("./node_modules/ol/proj.js"),o=r("./node_modules/ol/proj/transforms.js"),i=r("./node_modules/ol/proj/Projection.js");function a(e){var t,r,a=Object.keys(e.defs),s=a.length;for(t=0;t1&&void 0!==arguments[1]&&arguments[1];u(Number.isInteger(e)&&e>0,"The number should be a positive integer.");for(var r,n=[];e>=1e3;)e-=1e3,n.push("M");r=e/100|0,e%=100,n.push(P[r]),r=e/10|0,e%=10,n.push(P[10+r]),n.push(P[20+e]);var o=n.join("");return t?o.toLowerCase():o},t.arrayByteLength=x,t.arraysToBytes=function(e){if(1===e.length&&e[0]instanceof Uint8Array)return e[0];var t,r,n,o=0,i=e.length;for(t=0;t100){l('getInheritableProperty: maximum loop count exceeded for "'.concat(n,'"'));break}r=r.get("Parent")}return t},t.getLookupTableFactory=function(e){var t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getVerbosityLevel=function(){return s},t.info=function(e){s>=a.INFOS&&console.log("Info: "+e)},t.isArrayBuffer=function(e){return"object"===i(e)&&null!==e&&void 0!==e.byteLength},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSpace=function(e){return 32===e||9===e||13===e||10===e},t.isSameOrigin=function(e,t){try{var r=new o.URL(e);if(!r.origin||"null"===r.origin)return!1}catch(e){return!1}var n=new o.URL(t,r);return r.origin===n.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var r=t?new o.URL(e,t):new o.URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.isLittleEndian=function(){var e=new Uint8Array(4);return e[0]=1,1===new Uint32Array(e.buffer,0,1)[0]},t.isEvalSupported=function(){try{return new Function(""),!0}catch(e){return!1}},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.removeNullCharacters=function(e){return"string"!=typeof e?(l("The argument for removeNullCharacters must be a string."),e):e.replace(w,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(s=e)},t.shadow=function(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!1}),r},t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=S,t.stringToPDFString=function(e){var t,r=e.length,n=[];if("þ"===e[0]&&"ÿ"===e[1])for(t=2;t=a.WARNINGS&&console.log("Warning: "+e)}function c(e){throw new Error(e)}function u(e,t){e||c(t)}var p=function(){function e(e,t){this.name="PasswordException",this.message=e,this.code=t}return e.prototype=new Error,e.constructor=e,e}();t.PasswordException=p;var d=function(){function e(e,t){this.name="UnknownErrorException",this.message=e,this.details=t}return e.prototype=new Error,e.constructor=e,e}();t.UnknownErrorException=d;var f=function(){function e(e){this.name="InvalidPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}();t.InvalidPDFException=f;var h=function(){function e(e){this.name="MissingPDFException",this.message=e}return e.prototype=new Error,e.constructor=e,e}();t.MissingPDFException=h;var m=function(){function e(e,t){this.name="UnexpectedResponseException",this.message=e,this.status=t}return e.prototype=new Error,e.constructor=e,e}();t.UnexpectedResponseException=m;var g=function(){function e(e,t){this.begin=e,this.end=t,this.message="Missing data ["+e+", "+t+")"}return e.prototype=new Error,e.prototype.name="MissingDataException",e.constructor=e,e}();t.MissingDataException=g;var y=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="XRefEntryException",e.constructor=e,e}();t.XRefEntryException=y;var b=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="XRefParseException",e.constructor=e,e}();t.XRefParseException=b;var v=function(){function e(e){this.message=e}return e.prototype=new Error,e.prototype.name="FormatError",e.constructor=e,e}();t.FormatError=v;var _=function(){function e(e){this.name="AbortException",this.message=e}return e.prototype=new Error,e.constructor=e,e}();t.AbortException=_;var w=/\x00/g;function S(e){u("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,r=new Uint8Array(t),n=0;ne[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t},e.intersect=function(t,r){function n(e,t){return e-t}var o=[t[0],t[2],r[0],r[2]].sort(n),i=[t[1],t[3],r[1],r[3]].sort(n),a=[];return t=e.normalizeRect(t),r=e.normalizeRect(r),(o[0]===t[0]&&o[1]===r[0]||o[0]===r[0]&&o[1]===t[0])&&(a[0]=o[1],a[2]=o[2],(i[0]===t[1]&&i[1]===r[1]||i[0]===r[1]&&i[1]===t[1])&&(a[1]=i[1],a[3]=i[2],a))},e}();t.Util=k;var L,P=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],O=(L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r&&o.URL.createObjectURL){var n=new Blob([e],{type:t});return o.URL.createObjectURL(n)}for(var i="data:"+t+";base64,",a=0,s=e.length;a>2,d=(3&l)<<4|c>>4,f=a+1>6:64,h=a+21?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t}),String.prototype.startsWith||n(5),String.prototype.endsWith||n(35),String.prototype.includes||n(37),Array.prototype.includes||n(39),Array.from||n(46),Object.assign||n(69),Math.log2||(Math.log2=n(74)),Number.isNaN||(Number.isNaN=n(76)),Number.isInteger||(Number.isInteger=n(78)),i.Promise&&i.Promise.prototype&&i.Promise.prototype.finally||(i.Promise=n(81)),i.WeakMap||(i.WeakMap=n(101)),i.WeakSet||(i.WeakSet=n(118)),String.codePointAt||(String.codePointAt=n(122)),String.fromCodePoint||(String.fromCodePoint=n(124)),i.Symbol||n(126),String.prototype.padStart||n(133),String.prototype.padEnd||n(137),Object.values||(Object.values=n(139))}},function(e,t,r){"use strict";e.exports="undefined"!=typeof window&&window.Math===Math?window:void 0!==n&&n.Math===Math?n:"undefined"!=typeof self&&self.Math===Math?self:{}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){return"object"===(void 0===o?"undefined":n(o))&&o+""=="[object process]"&&!o.versions.nw}},function(e,t,r){"use strict";r(6),e.exports=r(9).String.startsWith},function(e,t,r){"use strict";var n=r(7),o=r(25),i=r(27),a="".startsWith;n(n.P+n.F*r(34)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),r=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return a?a.call(t,n,r):t.slice(r,r+n.length)===n}})},function(e,t,r){"use strict";var n=r(8),o=r(9),i=r(10),a=r(20),s=r(23),l=function e(t,r,l){var c,u,p,d,f=t&e.F,h=t&e.G,m=t&e.P,g=t&e.B,y=h?n:t&e.S?n[r]||(n[r]={}):(n[r]||{}).prototype,b=h?o:o[r]||(o[r]={}),v=b.prototype||(b.prototype={});for(c in h&&(l=r),l)p=((u=!f&&y&&void 0!==y[c])?y:l)[c],d=g&&u?s(p,n):m&&"function"==typeof p?s(Function.call,p):p,y&&a(y,c,p,t&e.U),b[c]!=p&&i(b,c,d),m&&v[c]!=p&&(v[c]=p)};n.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,r){"use strict";var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,r){"use strict";var n=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=n)},function(e,t,r){"use strict";var n=r(11),o=r(19);e.exports=r(15)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){"use strict";var n=r(12),o=r(14),i=r(18),a=Object.defineProperty;t.f=r(15)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,r){"use strict";e.exports=!r(15)&&!r(16)((function(){return 7!=Object.defineProperty(r(17)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){"use strict";e.exports=!r(16)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=r(13),o=r(8).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,r){"use strict";var n=r(13);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){"use strict";var n=r(8),o=r(10),i=r(21),a=r(22)("src"),s=Function.toString,l=(""+s).split("toString");r(9).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,r,s){var c="function"==typeof r;c&&(i(r,"name")||o(r,"name",t)),e[t]!==r&&(c&&(i(r,a)||o(r,a,e[t]?""+e[t]:l.join(String(t)))),e===n?e[t]=r:s?e[t]?e[t]=r:o(e,t,r):(delete e[t],o(e,t,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(e,t,r){"use strict";var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,r){"use strict";var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,r){"use strict";var n=r(24);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";var n=r(26),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){"use strict";var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,r){"use strict";var n=r(28),o=r(33);e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(e))}},function(e,t,r){"use strict";var n=r(13),o=r(29),i=r(30)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,r){"use strict";var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,r){"use strict";var n=r(31)("wks"),o=r(22),i=r(8).Symbol,a="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=n},function(e,t,r){"use strict";var n=r(9),o=r(8),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(32)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){"use strict";e.exports=!1},function(e,t,r){"use strict";e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){"use strict";var n=r(30)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,r){"use strict";r(36),e.exports=r(9).String.endsWith},function(e,t,r){"use strict";var n=r(7),o=r(25),i=r(27),a="".endsWith;n(n.P+n.F*r(34)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),r=arguments.length>1?arguments[1]:void 0,n=o(t.length),s=void 0===r?n:Math.min(o(r),n),l=String(e);return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,r){"use strict";r(38),e.exports=r(9).String.includes},function(e,t,r){"use strict";var n=r(7),o=r(27);n(n.P+n.F*r(34)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,r){"use strict";r(40),e.exports=r(9).Array.includes},function(e,t,r){"use strict";var n=r(7),o=r(41)(!0);n(n.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),r(45)("includes")},function(e,t,r){"use strict";var n=r(42),o=r(25),i=r(44);e.exports=function(e){return function(t,r,a){var s,l=n(t),c=o(l.length),u=i(a,c);if(e&&r!=r){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){"use strict";var n=r(43),o=r(33);e.exports=function(e){return n(o(e))}},function(e,t,r){"use strict";var n=r(29);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){"use strict";var n=r(26),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?o(e+t,0):i(e,t)}},function(e,t,r){"use strict";var n=r(30)("unscopables"),o=Array.prototype;null==o[n]&&r(10)(o,n,{}),e.exports=function(e){o[n][e]=!0}},function(e,t,r){"use strict";r(47),r(62),e.exports=r(9).Array.from},function(e,t,r){"use strict";var n=r(48)(!0);r(49)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},function(e,t,r){"use strict";var n=r(26),o=r(33);e.exports=function(e){return function(t,r){var i,a,s=String(o(t)),l=n(r),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},function(e,t,r){"use strict";var n=r(32),o=r(7),i=r(20),a=r(10),s=r(50),l=r(51),c=r(59),u=r(60),p=r(30)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,r,h,m,g,y){l(r,t,h);var b,v,_,w=function(e){if(!d&&e in L)return L[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",x="values"==m,k=!1,L=e.prototype,P=L[p]||L["@@iterator"]||m&&L[m],C=P||w(m),O=m?x?w("entries"):C:void 0,j="Array"==t&&L.entries||P;if(j&&(_=u(j.call(new e)))!==Object.prototype&&_.next&&(c(_,S,!0),n||"function"==typeof _[p]||a(_,p,f)),x&&P&&"values"!==P.name&&(k=!0,C=function(){return P.call(this)}),n&&!y||!d&&!k&&L[p]||a(L,p,C),s[t]=C,s[S]=f,m)if(b={values:x?C:w("values"),keys:g?C:w("keys"),entries:O},y)for(v in b)v in L||i(L,v,b[v]);else o(o.P+o.F*(d||k),t,b);return b}},function(e,t,r){"use strict";e.exports={}},function(e,t,r){"use strict";var n=r(52),o=r(19),i=r(59),a={};r(10)(a,r(30)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n(a,{next:o(1,r)}),i(e,t+" Iterator")}},function(e,t,r){"use strict";var n=r(12),o=r(53),i=r(57),a=r(56)("IE_PROTO"),s=function(){},l=function(){var e,t=r(17)("iframe"),n=i.length;for(t.style.display="none",r(58).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("