diff --git a/.eslintrc b/.eslintrc index 2b81a3a7..a6072f88 100644 --- a/.eslintrc +++ b/.eslintrc @@ -80,7 +80,6 @@ "react/jsx-max-props-per-line": 0, "react/jsx-no-duplicate-props": 2, "react/jsx-no-undef": 2, - "react/jsx-sort-prop-types": 1, "react/jsx-sort-props": 1, "react/jsx-uses-react": 1, "react/jsx-uses-vars": 1, @@ -94,6 +93,7 @@ "react/require-extension": 1, "react/self-closing-comp": 1, "react/sort-comp": 1, + "react/sort-prop-types": 1, "react/wrap-multilines": 1 } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dd1ff9d..dda9ff98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## HEAD (unreleased) +## v0.10.1 (22/02/16) - Added the popup container as source layer to `Popup` creation, fixes [#113](https://github.com/PaulLeCam/react-leaflet/issues/113) ([PR #112](https://github.com/PaulLeCam/react-leaflet/pull/112) by *amarant*). - [internal] Updated Lodash to v4. diff --git a/LICENSE b/LICENSE index cc8aadb8..2c593ad5 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Paul Le Cam +Copyright (c) 2016 Paul Le Cam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index d36d25fd..1b618a2b 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ Check Leaflet documentation for the events associated to each component. ### Components -The properties documented for each component are the ones aimed to be supported (tested and made dynamic when possible) by React-Leaflet. +The properties documented as **dynamic properties** are updated using the relevant Leaflet setter, other properties will *not* update the component when they are changed after the component is mounted. All other properties are passed as the `options` argument to their corresponding Leaflet element and should work fine for static maps, it is however unlikely that they would updated if you change them afterwards. You can directly access the Leaflet element created by a component using the `getLeafletElement()` method on this component. This leaflet element is usually created in `componentWillMount()`, except for the `Map` component where it can only be created after the `
` container is rendered. @@ -120,66 +120,77 @@ It exposes a `getLeafletElement()` method to access the `Leaflet` object created ##### MapLayer -Base class extending `MapComponent` using the provided `map` prop to add its element and passing it down to its children. +Base class extending [`MapComponent`](#mapcomponent) using the provided `map` prop to add its element and passing it down to its children. It exposes the following methods: - `getClonedChildrenWithMap(object extra): object`: returns the cloned children of the component, adding the `map` and the `extra` props provided to them. - `renderChildrenWithProps(object props): object`: returns the cloned children of the component using `getClonedChildrenWithMap()`, wrapped in a `
` with `display: none` style. ##### BaseTileLayer -Base class extending `MapLayer` with a `render()` method and handling a TitleLayer `opacity` and `zIndex` props. +Base class extending [`MapLayer`](#maplayer) with a `render()` method and handling a TitleLayer `opacity` and `zIndex` props. ##### Path -Base class extending `MapLayer` with the following methods: +Base class extending [`MapLayer`](#maplayer) with the following methods: - `getPathOptions(object props): object`: filters the input `props` and return a new object of [Path options](http://leafletjs.com/reference.html#path-options) properties. - `setStyle(object options = {}): void`: alias to the Leaflet element [`setStyle()`](http://leafletjs.com/reference.html#path-setstyle). - `setStyleIfChanged(object fromProps, object toProps): void`: extracts the Path options of the two arguments, and calls `setStyle()` with the new options if different from the previous ones. #### Map -This is the top-level component that must be mounted for children ones to be rendered. Refer to Leaflet documentation for more information about the properties. +This is the top-level component that must be mounted for children ones to be rendered. Refer to [Leaflet documentation](http://leafletjs.com/reference.html#map-options) for more information about the properties. -**Properties** -- `bounds: bounds` (optional, dynamic): A rectangle for the map to contain. It will be centered, and the map will zoom in as close as it can while still showing the full bounds. This property is dynamic, if you change it it will be reflected on the map. -- `boundsOptions: object` (optional, dynamic): Options passed to the `fitBounds()` method. -- `center: latLng` (optional, dynamic): Center of the map. This property is dynamic, if you change it it will be reflected in the map. -- `className: string` (optional, dynamic): className property of the `
` container for the map. +**Dynamic properties** +- `bounds: bounds` (optional): A rectangle for the map to contain. It will be centered, and the map will zoom in as close as it can while still showing the full bounds. This property is dynamic, if you change it it will be reflected on the map. +- `boundsOptions: object` (optional): Options passed to the `fitBounds()` method. +- `center: latLng` (optional): Center of the map. This property is dynamic, if you change it it will be reflected in the map. +- `className: string` (optional): className property of the `
` container for the map. +- `maxBounds: bounds` (optional) +- `style: object` (optional): style property of the `
` container for the map. +- `zoom: number` (optional) + +**Other properties** - `id: string` (optional): The ID of the `
` container for the map. If you don't provide it, a unique one will be created. -- `maxBounds: bounds` (optional, dynamic) -- `maxZoom: number` (optional) -- `minZoom: number` (optional) -- `style: object` (optional, dynamic): style property of the `
` container for the map. -- `zoom: number` (optional, dynamic) #### UI Layers ##### Marker -- `position: latLng` (required, dynamic) -- `icon: Leaflet.Icon` (optional, dynamic) -- `zIndexOffset: number` (optional, dynamic) -- `opacity: number` (optional, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#marker) + +**Dynamic properties** +- `position: latLng` (required) +- `icon: Leaflet.Icon` (optional) +- `zIndexOffset: number` (optional) +- `opacity: number` (optional) ##### Popup +[Leaflet reference](http://leafletjs.com/reference.html#popup) + The Popup children will be rendered using `ReactDOM.render()`, they must be valid React elements. -- `position: latLng` (optional, dynamic) +**Dynamic properties** +- `position: latLng` (optional) #### Raster Layers ##### TileLayer -- `url: string` (required, dynamic) -- `opacity: number` (optional, dynamic) -- `zIndex: number` (optional, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#tilelayer) + +**Dynamic properties** +- `url: string` (required) +- `opacity: number` (optional) +- `zIndex: number` (optional) ##### ImageOverlay -- `url: string` (required, dynamic) -- `opacity: number` (optional, dynamic) -- `attribution: string` (optional) +[Leaflet reference](http://leafletjs.com/reference.html#imageoverlay) + +**Dynamic properties** +- `url: string` (required) +- `opacity: number` (optional) ##### Implemented but needing testing and documentation @@ -192,32 +203,53 @@ All vector layers extend the **Path** component and therefore accept dynamic [Pa ##### Circle -- `center: latLng` (required, dynamic) -- `radius: number` (required, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#circle) + +**Dynamic properties** +- `center: latLng` (required) +- `radius: number` (required) ##### CircleMarker -- `center: latLng` (required, dynamic) -- `radius: number` (optional, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#circlemarker) + +**Dynamic properties** +- `center: latLng` (required) +- `radius: number` (optional) ##### Polyline -- `positions: latLngList` (required, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#polyline) + +**Dynamic properties** +- `positions: latLngList` (required) ##### MultiPolyline -- `polylines: array` (required, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#multipolyline) + +**Dynamic properties** +- `polylines: array` (required) ##### Polygon -- `positions: latLngList | Array` (required, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#polygon) + +**Dynamic properties** +- `positions: latLngList | Array` (required) ##### MultiPolygon -- `polygons: array` (required, dynamic) +[Leaflet reference](http://leafletjs.com/reference.html#multipolygon) + +**Dynamic properties** +- `polygons: array` (required) ##### Rectangle +[Leaflet reference](http://leafletjs.com/reference.html#rectangle) + +**Dynamic properties** - `bounds: bounds` (required, dynamic) #### Other Layers @@ -232,30 +264,44 @@ Extended `LayerGroup` supporting a `Popup` child. ##### GeoJson -- `data: GeoJSON` (required) +[Leaflet reference](http://leafletjs.com/reference.html#geojson) + +**Properties** +- `data: GeoJSON` (required). This property will *not* be updated if it is changed after the component is mounted. #### Controls ##### AttributionControl -- `position: controlPosition` (optional, dynamic) -- `prefix: string` (optional) +[Leaflet reference](http://leafletjs.com/reference.html#control-attribution) + +**Dynamic properties** +- `position: controlPosition` (optional) + +##### LayersControl + +[Leaflet reference](http://leafletjs.com/reference.html#control-layers) + +**Dynamic properties** +- `position: controlPosition` (optional) + +**Other properties** +- `baseLayers: object` (optional) +- `overlays: object` (optional) ##### ScaleControl -- `imperial: bool` (optional) -- `position: controlPosition` (optional, dynamic) -- `maxWidth: number` (optional) -- `metric: bool` (optional) -- `updateWhenIdle: bool` (optional) +[Leaflet reference](http://leafletjs.com/reference.html#control-scale) + +**Dynamic properties** +- `position: controlPosition` (optional) ##### ZoomControl -- `position: controlPosition` (optional, dynamic) -- `zoomInText: string` (optional) -- `zoomInTitle: string` (optional) -- `zoomOutText: string` (optional) -- `zoomOutTitle: string` (optional) +[Leaflet reference](http://leafletjs.com/reference.html#control-zoom) + +**Dynamic properties** +- `position: controlPosition` (optional) ## Creating custom components diff --git a/bower.json b/bower.json index 3694d10b..5a390a36 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "react-leaflet", - "version": "0.10.0", + "version": "0.10.1", "homepage": "https://github.com/PaulLeCam/react-leaflet", "authors": [ "Paul Le Cam " @@ -8,7 +8,7 @@ "description": "React components for Leaflet maps", "main": "lib/index.js", "dependencies": { - "lodash": "~3.0.0", + "lodash": "~4.0.0", "leaflet": "~0.7.0", "react": "~0.14.0" }, diff --git a/dist/react-leaflet.js b/dist/react-leaflet.js index 2f353daa..82ad61a7 100644 --- a/dist/react-leaflet.js +++ b/dist/react-leaflet.js @@ -7,7 +7,7 @@ exports["ReactLeaflet"] = factory(require("leaflet"), require("react"), require("react-dom")); else root["ReactLeaflet"] = factory(root["L"], root["React"], root["ReactDOM"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_160__) { +})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_4__, __WEBPACK_EXTERNAL_MODULE_167__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; @@ -77,39 +77,39 @@ return /******/ (function(modules) { // webpackBootstrap var _BaseTileLayer3 = _interopRequireDefault(_BaseTileLayer2); - var _CanvasTileLayer2 = __webpack_require__(137); + var _CanvasTileLayer2 = __webpack_require__(144); var _CanvasTileLayer3 = _interopRequireDefault(_CanvasTileLayer2); - var _Circle2 = __webpack_require__(138); + var _Circle2 = __webpack_require__(145); var _Circle3 = _interopRequireDefault(_Circle2); - var _CircleMarker2 = __webpack_require__(145); + var _CircleMarker2 = __webpack_require__(152); var _CircleMarker3 = _interopRequireDefault(_CircleMarker2); - var _FeatureGroup2 = __webpack_require__(146); + var _FeatureGroup2 = __webpack_require__(153); var _FeatureGroup3 = _interopRequireDefault(_FeatureGroup2); - var _GeoJson2 = __webpack_require__(147); + var _GeoJson2 = __webpack_require__(154); var _GeoJson3 = _interopRequireDefault(_GeoJson2); - var _ImageOverlay2 = __webpack_require__(148); + var _ImageOverlay2 = __webpack_require__(155); var _ImageOverlay3 = _interopRequireDefault(_ImageOverlay2); - var _LayerGroup2 = __webpack_require__(149); + var _LayerGroup2 = __webpack_require__(156); var _LayerGroup3 = _interopRequireDefault(_LayerGroup2); - var _LayersControl2 = __webpack_require__(150); + var _LayersControl2 = __webpack_require__(157); var _LayersControl3 = _interopRequireDefault(_LayersControl2); - var _Map2 = __webpack_require__(151); + var _Map2 = __webpack_require__(158); var _Map3 = _interopRequireDefault(_Map2); @@ -125,51 +125,51 @@ return /******/ (function(modules) { // webpackBootstrap var _MapLayer3 = _interopRequireDefault(_MapLayer2); - var _Marker2 = __webpack_require__(154); + var _Marker2 = __webpack_require__(161); var _Marker3 = _interopRequireDefault(_Marker2); - var _MultiPolygon2 = __webpack_require__(155); + var _MultiPolygon2 = __webpack_require__(162); var _MultiPolygon3 = _interopRequireDefault(_MultiPolygon2); - var _MultiPolyline2 = __webpack_require__(156); + var _MultiPolyline2 = __webpack_require__(163); var _MultiPolyline3 = _interopRequireDefault(_MultiPolyline2); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); - var _Polygon2 = __webpack_require__(157); + var _Polygon2 = __webpack_require__(164); var _Polygon3 = _interopRequireDefault(_Polygon2); - var _Polyline2 = __webpack_require__(158); + var _Polyline2 = __webpack_require__(165); var _Polyline3 = _interopRequireDefault(_Polyline2); - var _Popup2 = __webpack_require__(159); + var _Popup2 = __webpack_require__(166); var _Popup3 = _interopRequireDefault(_Popup2); - var _Rectangle2 = __webpack_require__(161); + var _Rectangle2 = __webpack_require__(168); var _Rectangle3 = _interopRequireDefault(_Rectangle2); - var _ScaleControl2 = __webpack_require__(162); + var _ScaleControl2 = __webpack_require__(169); var _ScaleControl3 = _interopRequireDefault(_ScaleControl2); - var _TileLayer2 = __webpack_require__(163); + var _TileLayer2 = __webpack_require__(170); var _TileLayer3 = _interopRequireDefault(_TileLayer2); - var _WMSTileLayer2 = __webpack_require__(164); + var _WMSTileLayer2 = __webpack_require__(171); var _WMSTileLayer3 = _interopRequireDefault(_WMSTileLayer2); - var _ZoomControl2 = __webpack_require__(165); + var _ZoomControl2 = __webpack_require__(172); var _ZoomControl3 = _interopRequireDefault(_ZoomControl2); @@ -344,12 +344,12 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -396,12 +396,12 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = __webpack_require__(4); var _controlPosition = __webpack_require__(7); @@ -469,12 +469,12 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = __webpack_require__(4); var _MapLayer2 = __webpack_require__(11); @@ -534,14 +534,14 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _assign = __webpack_require__(12); var _assign2 = _interopRequireDefault(_assign); @@ -710,8 +710,11 @@ return /******/ (function(modules) { // webpackBootstrap length = props.length; while (++index < length) { - var key = props[index], - newValue = customizer ? customizer(object[key], source[key], key, object, source) : source[key]; + var key = props[index]; + + var newValue = customizer + ? customizer(object[key], source[key], key, object, source) + : source[key]; assignValue(object, key, newValue); } @@ -725,10 +728,10 @@ return /******/ (function(modules) { // webpackBootstrap /* 15 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var eq = __webpack_require__(16); + var eq = __webpack_require__(16); /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -745,8 +748,7 @@ return /******/ (function(modules) { // webpackBootstrap */ function assignValue(object, key, value) { var objValue = object[key]; - if ((!eq(objValue, value) || - (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) || + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { object[key] = value; } @@ -754,7 +756,6 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = assignValue; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 16 */ @@ -818,7 +819,10 @@ return /******/ (function(modules) { // webpackBootstrap customizer = length > 1 ? sources[length - 1] : undefined, guard = length > 2 ? sources[2] : undefined; - customizer = typeof customizer == 'function' ? (length--, customizer) : undefined; + customizer = typeof customizer == 'function' + ? (length--, customizer) + : undefined; + if (guard && isIterateeCall(sources[0], sources[1], guard)) { customizer = length < 3 ? undefined : customizer; length = 1; @@ -827,7 +831,7 @@ return /******/ (function(modules) { // webpackBootstrap while (++index < length) { var source = sources[index]; if (source) { - assigner(object, source, customizer); + assigner(object, source, index, customizer); } } return object; @@ -847,7 +851,7 @@ return /******/ (function(modules) { // webpackBootstrap isObject = __webpack_require__(23); /** - * Checks if the provided arguments are from an iteratee call. + * Checks if the given arguments are from an iteratee call. * * @private * @param {*} value The potential iteratee value argument. @@ -886,7 +890,6 @@ return /******/ (function(modules) { // webpackBootstrap * * @static * @memberOf _ - * @type Function * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. @@ -957,14 +960,14 @@ return /******/ (function(modules) { // webpackBootstrap /* 22 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var isObject = __webpack_require__(23); + var isObject = __webpack_require__(23); /** `Object#toString` result references. */ var funcTag = '[object Function]', genTag = '[object GeneratorFunction]'; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) @@ -998,7 +1001,6 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = isFunction; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 23 */ @@ -1028,8 +1030,6 @@ return /******/ (function(modules) { // webpackBootstrap * // => false */ function isObject(value) { - // Avoid a V8 JIT bug in Chrome 19-20. - // See https://code.google.com/p/v8/issues/detail?id=2291 for more details. var type = typeof value; return !!value && (type == 'object' || type == 'function'); } @@ -1069,7 +1069,8 @@ return /******/ (function(modules) { // webpackBootstrap * // => false */ function isLength(value) { - return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; @@ -1180,11 +1181,11 @@ return /******/ (function(modules) { // webpackBootstrap * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. - * @param {...*} [args] The arguments to invoke `func` with. + * @param {...*} args The arguments to invoke `func` with. * @returns {*} Returns the result of `func`. */ function apply(func, thisArg, args) { - var length = args ? args.length : 0; + var length = args.length; switch (length) { case 0: return func.call(thisArg); case 1: return func.call(thisArg, args[0]); @@ -1269,7 +1270,7 @@ return /******/ (function(modules) { // webpackBootstrap /** Used to detect octal string values. */ var reIsOctal = /^0o[0-7]+$/i; - /** Built-in method references without a dependency on `global`. */ + /** Built-in method references without a dependency on `root`. */ var freeParseInt = parseInt; /** @@ -1377,8 +1378,8 @@ return /******/ (function(modules) { // webpackBootstrap /* 31 */ /***/ function(module, exports) { - /* WEBPACK VAR INJECTION */(function(global) {/** Used for built-in method references. */ - var objectProto = global.Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -1404,7 +1405,6 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = baseHas; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 32 */ @@ -1418,7 +1418,6 @@ return /******/ (function(modules) { // webpackBootstrap * property of prototypes or treat sparse arrays as dense. * * @private - * @type Function * @param {Object} object The object to query. * @returns {Array} Returns the array of property names. */ @@ -1449,9 +1448,11 @@ return /******/ (function(modules) { // webpackBootstrap */ function indexKeys(object) { var length = object ? object.length : undefined; - return (isLength(length) && (isArray(object) || isString(object) || isArguments(object))) - ? baseTimes(length, String) - : null; + if (isLength(length) && + (isArray(object) || isString(object) || isArguments(object))) { + return baseTimes(length, String); + } + return null; } module.exports = indexKeys; @@ -1487,13 +1488,13 @@ return /******/ (function(modules) { // webpackBootstrap /* 35 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var isArrayLikeObject = __webpack_require__(36); + var isArrayLikeObject = __webpack_require__(36); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -1531,7 +1532,6 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = isArguments; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 36 */ @@ -1546,7 +1546,6 @@ return /******/ (function(modules) { // webpackBootstrap * * @static * @memberOf _ - * @type Function * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`. @@ -1614,7 +1613,7 @@ return /******/ (function(modules) { // webpackBootstrap * * @static * @memberOf _ - * @type Function + * @type {Function} * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. @@ -1641,14 +1640,14 @@ return /******/ (function(modules) { // webpackBootstrap /* 39 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var isArray = __webpack_require__(38), + var isArray = __webpack_require__(38), isObjectLike = __webpack_require__(37); /** `Object#toString` result references. */ var stringTag = '[object String]'; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) @@ -1679,14 +1678,15 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = isString; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 40 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { + + var isFunction = __webpack_require__(22); - /* WEBPACK VAR INJECTION */(function(global) {/** Used for built-in method references. */ - var objectProto = global.Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; /** * Checks if `value` is likely a prototype object. @@ -1697,14 +1697,13 @@ return /******/ (function(modules) { // webpackBootstrap */ function isPrototype(value) { var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + proto = (isFunction(Ctor) && Ctor.prototype) || objectProto; return value === proto; } module.exports = isPrototype; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 41 */ @@ -1712,17 +1711,17 @@ return /******/ (function(modules) { // webpackBootstrap 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _clone = __webpack_require__(42); var _clone2 = _interopRequireDefault(_clone); - var _forEach = __webpack_require__(99); + var _forEach = __webpack_require__(106); var _forEach2 = _interopRequireDefault(_forEach); @@ -1730,7 +1729,7 @@ return /******/ (function(modules) { // webpackBootstrap var _keys2 = _interopRequireDefault(_keys); - var _reduce = __webpack_require__(104); + var _reduce = __webpack_require__(111); var _reduce2 = _interopRequireDefault(_reduce); @@ -1880,17 +1879,19 @@ return /******/ (function(modules) { // webpackBootstrap /***/ function(module, exports, __webpack_require__) { var Stack = __webpack_require__(44), - arrayEach = __webpack_require__(72), + arrayEach = __webpack_require__(75), assignValue = __webpack_require__(15), - baseAssign = __webpack_require__(73), - baseForOwn = __webpack_require__(74), - copyArray = __webpack_require__(77), - copySymbols = __webpack_require__(78), - getTag = __webpack_require__(80), - initCloneArray = __webpack_require__(82), - initCloneByTag = __webpack_require__(83), - initCloneObject = __webpack_require__(97), + baseAssign = __webpack_require__(76), + baseForOwn = __webpack_require__(77), + cloneBuffer = __webpack_require__(80), + copyArray = __webpack_require__(81), + copySymbols = __webpack_require__(82), + getTag = __webpack_require__(84), + initCloneArray = __webpack_require__(87), + initCloneByTag = __webpack_require__(88), + initCloneObject = __webpack_require__(102), isArray = __webpack_require__(38), + isBuffer = __webpack_require__(104), isHostObject = __webpack_require__(60), isObject = __webpack_require__(23); @@ -1972,6 +1973,9 @@ return /******/ (function(modules) { // webpackBootstrap var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; + if (isBuffer(value)) { + return cloneBuffer(value, isDeep); + } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { if (isHostObject(value)) { return object ? value : {}; @@ -1981,9 +1985,10 @@ return /******/ (function(modules) { // webpackBootstrap return copySymbols(value, baseAssign(result, value)); } } else { - return cloneableTags[tag] - ? initCloneByTag(value, tag, isDeep) - : (object ? value : {}); + if (!cloneableTags[tag]) { + return object ? value : {}; + } + result = initCloneByTag(value, tag, isDeep); } } // Check for circular references and return its corresponding clone. @@ -2018,6 +2023,7 @@ return /******/ (function(modules) { // webpackBootstrap * Creates a stack cache object to store key-value pairs. * * @private + * @constructor * @param {Array} [values] The values to cache. */ function Stack(values) { @@ -2088,10 +2094,10 @@ return /******/ (function(modules) { // webpackBootstrap /* 47 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var assocIndexOf = __webpack_require__(48); + var assocIndexOf = __webpack_require__(48); /** Used for built-in method references. */ - var arrayProto = global.Array.prototype; + var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; @@ -2120,7 +2126,6 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = assocDelete; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 48 */ @@ -2248,7 +2253,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ function(module, exports, __webpack_require__) { var MapCache = __webpack_require__(54), - assocSet = __webpack_require__(70); + assocSet = __webpack_require__(73); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; @@ -2290,15 +2295,16 @@ return /******/ (function(modules) { // webpackBootstrap /***/ function(module, exports, __webpack_require__) { var mapClear = __webpack_require__(55), - mapDelete = __webpack_require__(62), - mapGet = __webpack_require__(66), - mapHas = __webpack_require__(68), - mapSet = __webpack_require__(69); + mapDelete = __webpack_require__(65), + mapGet = __webpack_require__(69), + mapHas = __webpack_require__(71), + mapSet = __webpack_require__(72); /** * Creates a map cache object to store key-value pairs. * * @private + * @constructor * @param {Array} [values] The values to cache. */ function MapCache(values) { @@ -2337,7 +2343,11 @@ return /******/ (function(modules) { // webpackBootstrap * @memberOf MapCache */ function mapClear() { - this.__data__ = { 'hash': new Hash, 'map': Map ? new Map : [], 'string': new Hash }; + this.__data__ = { + 'hash': new Hash, + 'map': Map ? new Map : [], + 'string': new Hash + }; } module.exports = mapClear; @@ -2347,15 +2357,16 @@ return /******/ (function(modules) { // webpackBootstrap /* 56 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var nativeCreate = __webpack_require__(57); + var nativeCreate = __webpack_require__(57); /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** * Creates an hash object. * * @private + * @constructor * @returns {Object} Returns the new hash object. */ function Hash() {} @@ -2365,7 +2376,6 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = Hash; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 57 */ @@ -2405,7 +2415,7 @@ return /******/ (function(modules) { // webpackBootstrap /* 59 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var isFunction = __webpack_require__(22), + var isFunction = __webpack_require__(22), isHostObject = __webpack_require__(60), isObjectLike = __webpack_require__(37); @@ -2416,10 +2426,10 @@ return /******/ (function(modules) { // webpackBootstrap var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ - var funcToString = global.Function.prototype.toString; + var funcToString = Function.prototype.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -2459,7 +2469,6 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = isNative; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 60 */ @@ -2491,23 +2500,105 @@ return /******/ (function(modules) { // webpackBootstrap /* 61 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var getNative = __webpack_require__(58); + var getNative = __webpack_require__(58), + root = __webpack_require__(62); /* Built-in method references that are verified to be native. */ - var Map = getNative(global, 'Map'); + var Map = getNative(root, 'Map'); module.exports = Map; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, /* 62 */ +/***/ function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(module, global) {var checkGlobal = __webpack_require__(64); + + /** Used to determine if values are of the language type `Object`. */ + var objectTypes = { + 'function': true, + 'object': true + }; + + /** Detect free variable `exports`. */ + var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) + ? exports + : undefined; + + /** Detect free variable `module`. */ + var freeModule = (objectTypes[typeof module] && module && !module.nodeType) + ? module + : undefined; + + /** Detect free variable `global` from Node.js. */ + var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global); + + /** Detect free variable `self`. */ + var freeSelf = checkGlobal(objectTypes[typeof self] && self); + + /** Detect free variable `window`. */ + var freeWindow = checkGlobal(objectTypes[typeof window] && window); + + /** Detect `this` as the global object. */ + var thisGlobal = checkGlobal(objectTypes[typeof this] && this); + + /** + * Used as a reference to the global object. + * + * The `this` value is used if it's the global object to avoid Greasemonkey's + * restricted `window` object, otherwise the `window` object is used. + */ + var root = freeGlobal || + ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || + freeSelf || thisGlobal || Function('return this')(); + + module.exports = root; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(63)(module), (function() { return this; }()))) + +/***/ }, +/* 63 */ +/***/ function(module, exports) { + + module.exports = function(module) { + if(!module.webpackPolyfill) { + module.deprecate = function() {}; + module.paths = []; + // module.parent = undefined by default + module.children = []; + module.webpackPolyfill = 1; + } + return module; + } + + +/***/ }, +/* 64 */ +/***/ function(module, exports) { + + /** + * Checks if `value` is a global object. + * + * @private + * @param {*} value The value to check. + * @returns {null|Object} Returns `value` if it's a global object, else `null`. + */ + function checkGlobal(value) { + return (value && value.Object === Object) ? value : null; + } + + module.exports = checkGlobal; + + +/***/ }, +/* 65 */ /***/ function(module, exports, __webpack_require__) { var Map = __webpack_require__(61), assocDelete = __webpack_require__(47), - hashDelete = __webpack_require__(63), - isKeyable = __webpack_require__(65); + hashDelete = __webpack_require__(66), + isKeyable = __webpack_require__(68); /** * Removes `key` and its value from the map. @@ -2530,10 +2621,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 63 */ +/* 66 */ /***/ function(module, exports, __webpack_require__) { - var hashHas = __webpack_require__(64); + var hashHas = __webpack_require__(67); /** * Removes `key` and its value from the hash. @@ -2551,13 +2642,13 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 64 */ +/* 67 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var nativeCreate = __webpack_require__(57); + var nativeCreate = __webpack_require__(57); /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -2576,10 +2667,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = hashHas; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 65 */ +/* 68 */ /***/ function(module, exports) { /** @@ -2592,20 +2682,20 @@ return /******/ (function(modules) { // webpackBootstrap function isKeyable(value) { var type = typeof value; return type == 'number' || type == 'boolean' || - (type == 'string' && value !== '__proto__') || value == null; + (type == 'string' && value != '__proto__') || value == null; } module.exports = isKeyable; /***/ }, -/* 66 */ +/* 69 */ /***/ function(module, exports, __webpack_require__) { var Map = __webpack_require__(61), assocGet = __webpack_require__(50), - hashGet = __webpack_require__(67), - isKeyable = __webpack_require__(65); + hashGet = __webpack_require__(70), + isKeyable = __webpack_require__(68); /** * Gets the map value for `key`. @@ -2628,16 +2718,16 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 67 */ +/* 70 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var nativeCreate = __webpack_require__(57); + var nativeCreate = __webpack_require__(57); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -2660,16 +2750,15 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = hashGet; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 68 */ +/* 71 */ /***/ function(module, exports, __webpack_require__) { var Map = __webpack_require__(61), assocHas = __webpack_require__(52), - hashHas = __webpack_require__(64), - isKeyable = __webpack_require__(65); + hashHas = __webpack_require__(67), + isKeyable = __webpack_require__(68); /** * Checks if a map value for `key` exists. @@ -2692,13 +2781,13 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 69 */ +/* 72 */ /***/ function(module, exports, __webpack_require__) { var Map = __webpack_require__(61), - assocSet = __webpack_require__(70), - hashSet = __webpack_require__(71), - isKeyable = __webpack_require__(65); + assocSet = __webpack_require__(73), + hashSet = __webpack_require__(74), + isKeyable = __webpack_require__(68); /** * Sets the map `key` to `value`. @@ -2726,7 +2815,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 70 */ +/* 73 */ /***/ function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(48); @@ -2752,7 +2841,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 71 */ +/* 74 */ /***/ function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(57); @@ -2776,7 +2865,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 72 */ +/* 75 */ /***/ function(module, exports) { /** @@ -2804,7 +2893,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 73 */ +/* 76 */ /***/ function(module, exports, __webpack_require__) { var copyObject = __webpack_require__(13), @@ -2827,10 +2916,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 74 */ +/* 77 */ /***/ function(module, exports, __webpack_require__) { - var baseFor = __webpack_require__(75), + var baseFor = __webpack_require__(78), keys = __webpack_require__(30); /** @@ -2849,10 +2938,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 75 */ +/* 78 */ /***/ function(module, exports, __webpack_require__) { - var createBaseFor = __webpack_require__(76); + var createBaseFor = __webpack_require__(79); /** * The base implementation of `baseForIn` and `baseForOwn` which iterates @@ -2872,7 +2961,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 76 */ +/* 79 */ /***/ function(module, exports) { /** @@ -2903,7 +2992,33 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 77 */ +/* 80 */ +/***/ function(module, exports) { + + /** + * Creates a clone of `buffer`. + * + * @private + * @param {Buffer} buffer The buffer to clone. + * @param {boolean} [isDeep] Specify a deep clone. + * @returns {Buffer} Returns the cloned buffer. + */ + function cloneBuffer(buffer, isDeep) { + if (isDeep) { + return buffer.slice(); + } + var Ctor = buffer.constructor, + result = new Ctor(buffer.length); + + buffer.copy(result); + return result; + } + + module.exports = cloneBuffer; + + +/***/ }, +/* 81 */ /***/ function(module, exports) { /** @@ -2929,11 +3044,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 78 */ +/* 82 */ /***/ function(module, exports, __webpack_require__) { var copyObject = __webpack_require__(13), - getSymbols = __webpack_require__(79); + getSymbols = __webpack_require__(83); /** * Copies own symbol properties of `source` to `object`. @@ -2951,7 +3066,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 79 */ +/* 83 */ /***/ function(module, exports) { /** Built-in value references. */ @@ -2972,22 +3087,24 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 80 */ +/* 84 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var Map = __webpack_require__(61), - Set = __webpack_require__(81); + var Map = __webpack_require__(61), + Set = __webpack_require__(85), + WeakMap = __webpack_require__(86); /** `Object#toString` result references. */ var mapTag = '[object Map]', objectTag = '[object Object]', - setTag = '[object Set]'; + setTag = '[object Set]', + weakMapTag = '[object WeakMap]'; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ - var funcToString = global.Function.prototype.toString; + var funcToString = Function.prototype.toString; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) @@ -2995,9 +3112,10 @@ return /******/ (function(modules) { // webpackBootstrap */ var objectToString = objectProto.toString; - /** Used to detect maps and sets. */ + /** Used to detect maps, sets, and weakmaps. */ var mapCtorString = Map ? funcToString.call(Map) : '', - setCtorString = Set ? funcToString.call(Set) : ''; + setCtorString = Set ? funcToString.call(Set) : '', + weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : ''; /** * Gets the `toStringTag` of `value`. @@ -3010,19 +3128,20 @@ return /******/ (function(modules) { // webpackBootstrap return objectToString.call(value); } - // Fallback for IE 11 providing `toStringTag` values for maps and sets. - if ((Map && getTag(new Map) != mapTag) || (Set && getTag(new Set) != setTag)) { + // Fallback for IE 11 providing `toStringTag` values for maps, sets, and weakmaps. + if ((Map && getTag(new Map) != mapTag) || + (Set && getTag(new Set) != setTag) || + (WeakMap && getTag(new WeakMap) != weakMapTag)) { getTag = function(value) { var result = objectToString.call(value), Ctor = result == objectTag ? value.constructor : null, ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : ''; if (ctorString) { - if (ctorString == mapCtorString) { - return mapTag; - } - if (ctorString == setCtorString) { - return setTag; + switch (ctorString) { + case mapCtorString: return mapTag; + case setCtorString: return setTag; + case weakMapCtorString: return weakMapTag; } } return result; @@ -3031,27 +3150,39 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = getTag; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 81 */ +/* 85 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var getNative = __webpack_require__(58); + var getNative = __webpack_require__(58), + root = __webpack_require__(62); /* Built-in method references that are verified to be native. */ - var Set = getNative(global, 'Set'); + var Set = getNative(root, 'Set'); module.exports = Set; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 82 */ +/* 86 */ +/***/ function(module, exports, __webpack_require__) { + + var getNative = __webpack_require__(58), + root = __webpack_require__(62); + + /* Built-in method references that are verified to be native. */ + var WeakMap = getNative(root, 'WeakMap'); + + module.exports = WeakMap; + + +/***/ }, +/* 87 */ /***/ function(module, exports) { - /* WEBPACK VAR INJECTION */(function(global) {/** Used for built-in method references. */ - var objectProto = global.Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -3077,18 +3208,17 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = initCloneArray; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 83 */ +/* 88 */ /***/ function(module, exports, __webpack_require__) { - var cloneBuffer = __webpack_require__(84), - cloneMap = __webpack_require__(86), - cloneRegExp = __webpack_require__(90), - cloneSet = __webpack_require__(91), - cloneSymbol = __webpack_require__(94), - cloneTypedArray = __webpack_require__(96); + var cloneArrayBuffer = __webpack_require__(89), + cloneMap = __webpack_require__(91), + cloneRegExp = __webpack_require__(95), + cloneSet = __webpack_require__(96), + cloneSymbol = __webpack_require__(99), + cloneTypedArray = __webpack_require__(101); /** `Object#toString` result references. */ var boolTag = '[object Boolean]', @@ -3127,7 +3257,7 @@ return /******/ (function(modules) { // webpackBootstrap var Ctor = object.constructor; switch (tag) { case arrayBufferTag: - return cloneBuffer(object); + return cloneArrayBuffer(object); case boolTag: case dateTag: @@ -3160,48 +3290,49 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 84 */ +/* 89 */ /***/ function(module, exports, __webpack_require__) { - var Uint8Array = __webpack_require__(85); + var Uint8Array = __webpack_require__(90); /** - * Creates a clone of `buffer`. + * Creates a clone of `arrayBuffer`. * * @private - * @param {ArrayBuffer} buffer The array buffer to clone. + * @param {ArrayBuffer} arrayBuffer The array buffer to clone. * @returns {ArrayBuffer} Returns the cloned array buffer. */ - function cloneBuffer(buffer) { - var Ctor = buffer.constructor, - result = new Ctor(buffer.byteLength), + function cloneArrayBuffer(arrayBuffer) { + var Ctor = arrayBuffer.constructor, + result = new Ctor(arrayBuffer.byteLength), view = new Uint8Array(result); - view.set(new Uint8Array(buffer)); + view.set(new Uint8Array(arrayBuffer)); return result; } - module.exports = cloneBuffer; + module.exports = cloneArrayBuffer; /***/ }, -/* 85 */ -/***/ function(module, exports) { +/* 90 */ +/***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {/** Built-in value references. */ - var Uint8Array = global.Uint8Array; + var root = __webpack_require__(62); + + /** Built-in value references. */ + var Uint8Array = root.Uint8Array; module.exports = Uint8Array; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 86 */ +/* 91 */ /***/ function(module, exports, __webpack_require__) { - var addMapEntry = __webpack_require__(87), - arrayReduce = __webpack_require__(88), - mapToArray = __webpack_require__(89); + var addMapEntry = __webpack_require__(92), + arrayReduce = __webpack_require__(93), + mapToArray = __webpack_require__(94); /** * Creates a clone of `map`. @@ -3219,7 +3350,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 87 */ +/* 92 */ /***/ function(module, exports) { /** @@ -3239,7 +3370,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 88 */ +/* 93 */ /***/ function(module, exports) { /** @@ -3250,14 +3381,14 @@ return /******/ (function(modules) { // webpackBootstrap * @param {Array} array The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} [accumulator] The initial value. - * @param {boolean} [initFromArray] Specify using the first element of `array` as the initial value. + * @param {boolean} [initAccum] Specify using the first element of `array` as the initial value. * @returns {*} Returns the accumulated value. */ - function arrayReduce(array, iteratee, accumulator, initFromArray) { + function arrayReduce(array, iteratee, accumulator, initAccum) { var index = -1, length = array.length; - if (initFromArray && length) { + if (initAccum && length) { accumulator = array[++index]; } while (++index < length) { @@ -3270,7 +3401,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 89 */ +/* 94 */ /***/ function(module, exports) { /** @@ -3294,7 +3425,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 90 */ +/* 95 */ /***/ function(module, exports) { /** Used to match `RegExp` flags from their coerced string values. */ @@ -3319,12 +3450,12 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 91 */ +/* 96 */ /***/ function(module, exports, __webpack_require__) { - var addSetEntry = __webpack_require__(92), - arrayReduce = __webpack_require__(88), - setToArray = __webpack_require__(93); + var addSetEntry = __webpack_require__(97), + arrayReduce = __webpack_require__(93), + setToArray = __webpack_require__(98); /** * Creates a clone of `set`. @@ -3342,7 +3473,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 92 */ +/* 97 */ /***/ function(module, exports) { /** @@ -3362,7 +3493,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 93 */ +/* 98 */ /***/ function(module, exports) { /** @@ -3386,14 +3517,14 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 94 */ +/* 99 */ /***/ function(module, exports, __webpack_require__) { - var _Symbol = __webpack_require__(95); + var Symbol = __webpack_require__(100); /** Used to convert symbols to primitives and strings. */ - var symbolProto = _Symbol ? _Symbol.prototype : undefined, - symbolValueOf = _Symbol ? symbolProto.valueOf : undefined; + var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = Symbol ? symbolProto.valueOf : undefined; /** * Creates a clone of the `symbol` object. @@ -3403,28 +3534,29 @@ return /******/ (function(modules) { // webpackBootstrap * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { - return _Symbol ? Object(symbolValueOf.call(symbol)) : {}; + return Symbol ? Object(symbolValueOf.call(symbol)) : {}; } module.exports = cloneSymbol; /***/ }, -/* 95 */ -/***/ function(module, exports) { +/* 100 */ +/***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {/** Built-in value references. */ - var _Symbol = global.Symbol; + var root = __webpack_require__(62); - module.exports = _Symbol; + /** Built-in value references. */ + var Symbol = root.Symbol; + + module.exports = Symbol; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 96 */ +/* 101 */ /***/ function(module, exports, __webpack_require__) { - var cloneBuffer = __webpack_require__(84); + var cloneArrayBuffer = __webpack_require__(89); /** * Creates a clone of `typedArray`. @@ -3435,21 +3567,26 @@ return /******/ (function(modules) { // webpackBootstrap * @returns {Object} Returns the cloned typed array. */ function cloneTypedArray(typedArray, isDeep) { - var buffer = typedArray.buffer, + var arrayBuffer = typedArray.buffer, + buffer = isDeep ? cloneArrayBuffer(arrayBuffer) : arrayBuffer, Ctor = typedArray.constructor; - return new Ctor(isDeep ? cloneBuffer(buffer) : buffer, typedArray.byteOffset, typedArray.length); + return new Ctor(buffer, typedArray.byteOffset, typedArray.length); } module.exports = cloneTypedArray; /***/ }, -/* 97 */ +/* 102 */ /***/ function(module, exports, __webpack_require__) { - var baseCreate = __webpack_require__(98), - isFunction = __webpack_require__(22); + var baseCreate = __webpack_require__(103), + isFunction = __webpack_require__(22), + isPrototype = __webpack_require__(40); + + /** Built-in value references. */ + var getPrototypeOf = Object.getPrototypeOf; /** * Initializes an object clone. @@ -3459,19 +3596,23 @@ return /******/ (function(modules) { // webpackBootstrap * @returns {Object} Returns the initialized clone. */ function initCloneObject(object) { - var Ctor = object.constructor; - return baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined); + return (isFunction(object.constructor) && !isPrototype(object)) + ? baseCreate(getPrototypeOf(object)) + : {}; } module.exports = initCloneObject; /***/ }, -/* 98 */ +/* 103 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(23); + /** Built-in value references. */ + var objectCreate = Object.create; + /** * The base implementation of `_.create` without support for assigning * properties to the created object. @@ -3480,151 +3621,169 @@ return /******/ (function(modules) { // webpackBootstrap * @param {Object} prototype The object to inherit from. * @returns {Object} Returns the new object. */ - var baseCreate = (function() { - function object() {} - return function(prototype) { - if (isObject(prototype)) { - object.prototype = prototype; - var result = new object; - object.prototype = undefined; - } - return result || {}; - }; - }()); + function baseCreate(proto) { + return isObject(proto) ? objectCreate(proto) : {}; + } module.exports = baseCreate; /***/ }, -/* 99 */ +/* 104 */ /***/ function(module, exports, __webpack_require__) { - var arrayEach = __webpack_require__(72), - baseEach = __webpack_require__(100), - isArray = __webpack_require__(38), - toFunction = __webpack_require__(102); + /* WEBPACK VAR INJECTION */(function(module) {var constant = __webpack_require__(105), + root = __webpack_require__(62); + + /** Used to determine if values are of the language type `Object`. */ + var objectTypes = { + 'function': true, + 'object': true + }; + + /** Detect free variable `exports`. */ + var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) + ? exports + : undefined; + + /** Detect free variable `module`. */ + var freeModule = (objectTypes[typeof module] && module && !module.nodeType) + ? module + : undefined; + + /** Detect the popular CommonJS extension `module.exports`. */ + var moduleExports = (freeModule && freeModule.exports === freeExports) + ? freeExports + : undefined; + + /** Built-in value references. */ + var Buffer = moduleExports ? root.Buffer : undefined; /** - * Iterates over elements of `collection` invoking `iteratee` for each element. - * The iteratee is invoked with three arguments: (value, index|key, collection). - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * **Note:** As with other "Collections" methods, objects with a "length" property - * are iterated like arrays. To avoid this behavior use `_.forIn` or `_.forOwn` - * for object iteration. + * Checks if `value` is a buffer. * * @static * @memberOf _ - * @alias each - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} [iteratee=_.identity] The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * - * _([1, 2]).forEach(function(value) { - * console.log(value); - * }); - * // => logs `1` then `2` + * _.isBuffer(new Buffer(2)); + * // => true * - * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { - * console.log(key); - * }); - * // => logs 'a' then 'b' (iteration order is not guaranteed) + * _.isBuffer(new Uint8Array(2)); + * // => false */ - function forEach(collection, iteratee) { - return (typeof iteratee == 'function' && isArray(collection)) - ? arrayEach(collection, iteratee) - : baseEach(collection, toFunction(iteratee)); - } + var isBuffer = !Buffer ? constant(false) : function(value) { + return value instanceof Buffer; + }; - module.exports = forEach; + module.exports = isBuffer; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(63)(module))) /***/ }, -/* 100 */ -/***/ function(module, exports, __webpack_require__) { - - var baseForOwn = __webpack_require__(74), - createBaseEach = __webpack_require__(101); +/* 105 */ +/***/ function(module, exports) { /** - * The base implementation of `_.forEach` without support for iteratee shorthands. + * Creates a function that returns `value`. * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. + * @static + * @memberOf _ + * @category Util + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new function. + * @example + * + * var object = { 'user': 'fred' }; + * var getter = _.constant(object); + * + * getter() === object; + * // => true */ - var baseEach = createBaseEach(baseForOwn); + function constant(value) { + return function() { + return value; + }; + } - module.exports = baseEach; + module.exports = constant; /***/ }, -/* 101 */ +/* 106 */ /***/ function(module, exports, __webpack_require__) { - var isArrayLike = __webpack_require__(19); + var arrayEach = __webpack_require__(75), + baseCastFunction = __webpack_require__(107), + baseEach = __webpack_require__(109), + isArray = __webpack_require__(38); /** - * Creates a `baseEach` or `baseEachRight` function. + * Iterates over elements of `collection` invoking `iteratee` for each element. + * The iteratee is invoked with three arguments: (value, index|key, collection). + * Iteratee functions may exit iteration early by explicitly returning `false`. * - * @private - * @param {Function} eachFunc The function to iterate over a collection. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. + * **Note:** As with other "Collections" methods, objects with a "length" property + * are iterated like arrays. To avoid this behavior use `_.forIn` or `_.forOwn` + * for object iteration. + * + * @static + * @memberOf _ + * @alias each + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + * @example + * + * _([1, 2]).forEach(function(value) { + * console.log(value); + * }); + * // => logs `1` then `2` + * + * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) { + * console.log(key); + * }); + * // => logs 'a' then 'b' (iteration order is not guaranteed) */ - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee); - } - var length = collection.length, - index = fromRight ? length : -1, - iterable = Object(collection); - - while ((fromRight ? index-- : ++index < length)) { - if (iteratee(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; + function forEach(collection, iteratee) { + return (typeof iteratee == 'function' && isArray(collection)) + ? arrayEach(collection, iteratee) + : baseEach(collection, baseCastFunction(iteratee)); } - module.exports = createBaseEach; + module.exports = forEach; /***/ }, -/* 102 */ +/* 107 */ /***/ function(module, exports, __webpack_require__) { - var identity = __webpack_require__(103); + var identity = __webpack_require__(108); /** - * Converts `value` to a function if it's not one. + * Casts `value` to `identity` if it's not a function. * * @private - * @param {*} value The value to process. - * @returns {Function} Returns the function. + * @param {*} value The value to inspect. + * @returns {Array} Returns the array-like object. */ - function toFunction(value) { + function baseCastFunction(value) { return typeof value == 'function' ? value : identity; } - module.exports = toFunction; + module.exports = baseCastFunction; /***/ }, -/* 103 */ +/* 108 */ /***/ function(module, exports) { /** - * This method returns the first argument provided to it. + * This method returns the first argument given to it. * * @static * @memberOf _ @@ -3646,20 +3805,78 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 104 */ +/* 109 */ +/***/ function(module, exports, __webpack_require__) { + + var baseForOwn = __webpack_require__(77), + createBaseEach = __webpack_require__(110); + + /** + * The base implementation of `_.forEach` without support for iteratee shorthands. + * + * @private + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array|Object} Returns `collection`. + */ + var baseEach = createBaseEach(baseForOwn); + + module.exports = baseEach; + + +/***/ }, +/* 110 */ /***/ function(module, exports, __webpack_require__) { - var arrayReduce = __webpack_require__(88), - baseEach = __webpack_require__(100), - baseIteratee = __webpack_require__(105), - baseReduce = __webpack_require__(136), + var isArrayLike = __webpack_require__(19); + + /** + * Creates a `baseEach` or `baseEachRight` function. + * + * @private + * @param {Function} eachFunc The function to iterate over a collection. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ + function createBaseEach(eachFunc, fromRight) { + return function(collection, iteratee) { + if (collection == null) { + return collection; + } + if (!isArrayLike(collection)) { + return eachFunc(collection, iteratee); + } + var length = collection.length, + index = fromRight ? length : -1, + iterable = Object(collection); + + while ((fromRight ? index-- : ++index < length)) { + if (iteratee(iterable[index], index, iterable) === false) { + break; + } + } + return collection; + }; + } + + module.exports = createBaseEach; + + +/***/ }, +/* 111 */ +/***/ function(module, exports, __webpack_require__) { + + var arrayReduce = __webpack_require__(93), + baseEach = __webpack_require__(109), + baseIteratee = __webpack_require__(112), + baseReduce = __webpack_require__(143), isArray = __webpack_require__(38); /** * Reduces `collection` to a value which is the accumulated result of running * each element in `collection` through `iteratee`, where each successive * invocation is supplied the return value of the previous. If `accumulator` - * is not provided the first element of `collection` is used as the initial + * is not given the first element of `collection` is used as the initial * value. The iteratee is invoked with four arguments: * (accumulator, value, index|key, collection). * @@ -3681,7 +3898,7 @@ return /******/ (function(modules) { // webpackBootstrap * * _.reduce([1, 2], function(sum, n) { * return sum + n; - * }); + * }, 0); * // => 3 * * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) { @@ -3692,23 +3909,23 @@ return /******/ (function(modules) { // webpackBootstrap */ function reduce(collection, iteratee, accumulator) { var func = isArray(collection) ? arrayReduce : baseReduce, - initFromCollection = arguments.length < 3; + initAccum = arguments.length < 3; - return func(collection, baseIteratee(iteratee, 4), accumulator, initFromCollection, baseEach); + return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach); } module.exports = reduce; /***/ }, -/* 105 */ +/* 112 */ /***/ function(module, exports, __webpack_require__) { - var baseMatches = __webpack_require__(106), - baseMatchesProperty = __webpack_require__(120), - identity = __webpack_require__(103), + var baseMatches = __webpack_require__(113), + baseMatchesProperty = __webpack_require__(127), + identity = __webpack_require__(108), isArray = __webpack_require__(38), - property = __webpack_require__(134); + property = __webpack_require__(141); /** * The base implementation of `_.iteratee`. @@ -3737,11 +3954,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 106 */ +/* 113 */ /***/ function(module, exports, __webpack_require__) { - var baseIsMatch = __webpack_require__(107), - getMatchData = __webpack_require__(115); + var baseIsMatch = __webpack_require__(114), + getMatchData = __webpack_require__(122); /** * The base implementation of `_.matches` which doesn't clone `source`. @@ -3773,11 +3990,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 107 */ +/* 114 */ /***/ function(module, exports, __webpack_require__) { var Stack = __webpack_require__(44), - baseIsEqual = __webpack_require__(108); + baseIsEqual = __webpack_require__(115); /** Used to compose bitmasks for comparison styles. */ var UNORDERED_COMPARE_FLAG = 1, @@ -3825,7 +4042,10 @@ return /******/ (function(modules) { // webpackBootstrap var stack = new Stack, result = customizer ? customizer(objValue, srcValue, key, object, source, stack) : undefined; - if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) : result)) { + if (!(result === undefined + ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack) + : result + )) { return false; } } @@ -3837,10 +4057,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 108 */ +/* 115 */ /***/ function(module, exports, __webpack_require__) { - var baseIsEqualDeep = __webpack_require__(109), + var baseIsEqualDeep = __webpack_require__(116), isObject = __webpack_require__(23), isObjectLike = __webpack_require__(37); @@ -3873,17 +4093,17 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 109 */ +/* 116 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var Stack = __webpack_require__(44), - equalArrays = __webpack_require__(110), - equalByTag = __webpack_require__(112), - equalObjects = __webpack_require__(113), - getTag = __webpack_require__(80), + var Stack = __webpack_require__(44), + equalArrays = __webpack_require__(117), + equalByTag = __webpack_require__(119), + equalObjects = __webpack_require__(120), + getTag = __webpack_require__(84), isArray = __webpack_require__(38), isHostObject = __webpack_require__(60), - isTypedArray = __webpack_require__(114); + isTypedArray = __webpack_require__(121); /** Used to compose bitmasks for comparison styles. */ var PARTIAL_COMPARE_FLAG = 2; @@ -3894,7 +4114,7 @@ return /******/ (function(modules) { // webpackBootstrap objectTag = '[object Object]'; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; @@ -3960,13 +4180,12 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = baseIsEqualDeep; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 110 */ +/* 117 */ /***/ function(module, exports, __webpack_require__) { - var arraySome = __webpack_require__(111); + var arraySome = __webpack_require__(118); /** Used to compose bitmasks for comparison styles. */ var UNORDERED_COMPARE_FLAG = 1, @@ -4041,7 +4260,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 111 */ +/* 118 */ /***/ function(module, exports) { /** @@ -4069,13 +4288,13 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 112 */ +/* 119 */ /***/ function(module, exports, __webpack_require__) { - var Uint8Array = __webpack_require__(85), - _Symbol = __webpack_require__(95), - mapToArray = __webpack_require__(89), - setToArray = __webpack_require__(93); + var Symbol = __webpack_require__(100), + Uint8Array = __webpack_require__(90), + mapToArray = __webpack_require__(94), + setToArray = __webpack_require__(98); /** Used to compose bitmasks for comparison styles. */ var UNORDERED_COMPARE_FLAG = 1, @@ -4095,8 +4314,8 @@ return /******/ (function(modules) { // webpackBootstrap var arrayBufferTag = '[object ArrayBuffer]'; /** Used to convert symbols to primitives and strings. */ - var symbolProto = _Symbol ? _Symbol.prototype : undefined, - symbolValueOf = _Symbol ? symbolProto.valueOf : undefined; + var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolValueOf = Symbol ? symbolProto.valueOf : undefined; /** * A specialized version of `baseIsEqualDeep` for comparing objects of @@ -4154,7 +4373,7 @@ return /******/ (function(modules) { // webpackBootstrap equalFunc(convert(object), convert(other), customizer, bitmask | UNORDERED_COMPARE_FLAG); case symbolTag: - return !!_Symbol && (symbolValueOf.call(object) == symbolValueOf.call(other)); + return !!Symbol && (symbolValueOf.call(object) == symbolValueOf.call(other)); } return false; } @@ -4163,15 +4382,14 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 113 */ +/* 120 */ /***/ function(module, exports, __webpack_require__) { var baseHas = __webpack_require__(31), keys = __webpack_require__(30); /** Used to compose bitmasks for comparison styles. */ - var UNORDERED_COMPARE_FLAG = 1, - PARTIAL_COMPARE_FLAG = 2; + var PARTIAL_COMPARE_FLAG = 2; /** * A specialized version of `baseIsEqualDeep` for objects with support for @@ -4188,7 +4406,6 @@ return /******/ (function(modules) { // webpackBootstrap */ function equalObjects(object, other, equalFunc, customizer, bitmask, stack) { var isPartial = bitmask & PARTIAL_COMPARE_FLAG, - isUnordered = bitmask & UNORDERED_COMPARE_FLAG, objProps = keys(object), objLength = objProps.length, othProps = keys(other), @@ -4200,8 +4417,7 @@ return /******/ (function(modules) { // webpackBootstrap var index = objLength; while (index--) { var key = objProps[index]; - if (!(isPartial ? key in other : baseHas(other, key)) || - !(isUnordered || key == othProps[index])) { + if (!(isPartial ? key in other : baseHas(other, key))) { return false; } } @@ -4254,10 +4470,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 114 */ +/* 121 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var isLength = __webpack_require__(24), + var isLength = __webpack_require__(24), isObjectLike = __webpack_require__(37); /** `Object#toString` result references. */ @@ -4302,7 +4518,7 @@ return /******/ (function(modules) { // webpackBootstrap typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) @@ -4327,19 +4543,19 @@ return /******/ (function(modules) { // webpackBootstrap * // => false */ function isTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[objectToString.call(value)]; } module.exports = isTypedArray; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 115 */ +/* 122 */ /***/ function(module, exports, __webpack_require__) { - var isStrictComparable = __webpack_require__(116), - toPairs = __webpack_require__(117); + var isStrictComparable = __webpack_require__(123), + toPairs = __webpack_require__(124); /** * Gets the property names, values, and compare flags of `object`. @@ -4362,7 +4578,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 116 */ +/* 123 */ /***/ function(module, exports, __webpack_require__) { var isObject = __webpack_require__(23); @@ -4383,14 +4599,15 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 117 */ +/* 124 */ /***/ function(module, exports, __webpack_require__) { - var baseToPairs = __webpack_require__(118), + var baseToPairs = __webpack_require__(125), keys = __webpack_require__(30); /** - * Creates an array of own enumerable key-value pairs for `object`. + * Creates an array of own enumerable key-value pairs for `object` which + * can be consumed by `_.fromPairs`. * * @static * @memberOf _ @@ -4417,10 +4634,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 118 */ +/* 125 */ /***/ function(module, exports, __webpack_require__) { - var arrayMap = __webpack_require__(119); + var arrayMap = __webpack_require__(126); /** * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array @@ -4441,7 +4658,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 119 */ +/* 126 */ /***/ function(module, exports) { /** @@ -4468,12 +4685,12 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 120 */ +/* 127 */ /***/ function(module, exports, __webpack_require__) { - var baseIsEqual = __webpack_require__(108), - get = __webpack_require__(121), - hasIn = __webpack_require__(128); + var baseIsEqual = __webpack_require__(115), + get = __webpack_require__(128), + hasIn = __webpack_require__(135); /** Used to compose bitmasks for comparison styles. */ var UNORDERED_COMPARE_FLAG = 1, @@ -4500,10 +4717,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 121 */ +/* 128 */ /***/ function(module, exports, __webpack_require__) { - var baseGet = __webpack_require__(122); + var baseGet = __webpack_require__(129); /** * Gets the value at `path` of `object`. If the resolved value is @@ -4538,11 +4755,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 122 */ +/* 129 */ /***/ function(module, exports, __webpack_require__) { - var baseToPath = __webpack_require__(123), - isKey = __webpack_require__(127); + var baseCastPath = __webpack_require__(130), + isKey = __webpack_require__(134); /** * The base implementation of `_.get` without support for default values. @@ -4553,7 +4770,7 @@ return /******/ (function(modules) { // webpackBootstrap * @returns {*} Returns the resolved value. */ function baseGet(object, path) { - path = isKey(path, object) ? [path + ''] : baseToPath(path); + path = isKey(path, object) ? [path + ''] : baseCastPath(path); var index = 0, length = path.length; @@ -4568,32 +4785,31 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 123 */ +/* 130 */ /***/ function(module, exports, __webpack_require__) { var isArray = __webpack_require__(38), - stringToPath = __webpack_require__(124); + stringToPath = __webpack_require__(131); /** - * The base implementation of `_.toPath` which only converts `value` to a - * path if it's not one. + * Casts `value` to a path array if it's not one. * * @private - * @param {*} value The value to process. - * @returns {Array} Returns the property path array. + * @param {*} value The value to inspect. + * @returns {Array} Returns the cast property path array. */ - function baseToPath(value) { + function baseCastPath(value) { return isArray(value) ? value : stringToPath(value); } - module.exports = baseToPath; + module.exports = baseCastPath; /***/ }, -/* 124 */ +/* 131 */ /***/ function(module, exports, __webpack_require__) { - var toString = __webpack_require__(125); + var toString = __webpack_require__(132); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g; @@ -4620,18 +4836,18 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 125 */ +/* 132 */ /***/ function(module, exports, __webpack_require__) { - var _Symbol = __webpack_require__(95), - isSymbol = __webpack_require__(126); + var Symbol = __webpack_require__(100), + isSymbol = __webpack_require__(133); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ - var symbolProto = _Symbol ? _Symbol.prototype : undefined, - symbolToString = _Symbol ? symbolProto.toString : undefined; + var symbolProto = Symbol ? Symbol.prototype : undefined, + symbolToString = Symbol ? symbolProto.toString : undefined; /** * Converts `value` to a string if it's not one. An empty string is returned @@ -4662,7 +4878,7 @@ return /******/ (function(modules) { // webpackBootstrap return ''; } if (isSymbol(value)) { - return _Symbol ? symbolToString.call(value) : ''; + return Symbol ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; @@ -4672,16 +4888,16 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 126 */ +/* 133 */ /***/ function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(global) {var isObjectLike = __webpack_require__(37); + var isObjectLike = __webpack_require__(37); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; /** Used for built-in method references. */ - var objectProto = global.Object.prototype; + var objectProto = Object.prototype; /** * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring) @@ -4712,10 +4928,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = isSymbol; - /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) /***/ }, -/* 127 */ +/* 134 */ /***/ function(module, exports, __webpack_require__) { var isArray = __webpack_require__(38); @@ -4745,11 +4960,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 128 */ +/* 135 */ /***/ function(module, exports, __webpack_require__) { - var baseHasIn = __webpack_require__(129), - hasPath = __webpack_require__(130); + var baseHasIn = __webpack_require__(136), + hasPath = __webpack_require__(137); /** * Checks if `path` is a direct or inherited property of `object`. @@ -4784,7 +4999,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 129 */ +/* 136 */ /***/ function(module, exports) { /** @@ -4803,18 +5018,18 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 130 */ +/* 137 */ /***/ function(module, exports, __webpack_require__) { - var baseToPath = __webpack_require__(123), + var baseCastPath = __webpack_require__(130), isArguments = __webpack_require__(35), isArray = __webpack_require__(38), isIndex = __webpack_require__(25), - isKey = __webpack_require__(127), + isKey = __webpack_require__(134), isLength = __webpack_require__(24), isString = __webpack_require__(39), - last = __webpack_require__(131), - parent = __webpack_require__(132); + last = __webpack_require__(138), + parent = __webpack_require__(139); /** * Checks if `path` exists on `object`. @@ -4831,22 +5046,25 @@ return /******/ (function(modules) { // webpackBootstrap } var result = hasFunc(object, path); if (!result && !isKey(path)) { - path = baseToPath(path); + path = baseCastPath(path); object = parent(object, path); if (object != null) { path = last(path); result = hasFunc(object, path); } } - return result || (isLength(object && object.length) && isIndex(path, object.length) && - (isArray(object) || isString(object) || isArguments(object))); + var length = object ? object.length : undefined; + return result || ( + !!length && isLength(length) && isIndex(path, length) && + (isArray(object) || isString(object) || isArguments(object)) + ); } module.exports = hasPath; /***/ }, -/* 131 */ +/* 138 */ /***/ function(module, exports) { /** @@ -4871,11 +5089,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 132 */ +/* 139 */ /***/ function(module, exports, __webpack_require__) { - var baseSlice = __webpack_require__(133), - get = __webpack_require__(121); + var baseSlice = __webpack_require__(140), + get = __webpack_require__(128); /** * Gets the parent value at `path` of `object`. @@ -4893,7 +5111,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 133 */ +/* 140 */ /***/ function(module, exports) { /** @@ -4930,12 +5148,12 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 134 */ +/* 141 */ /***/ function(module, exports, __webpack_require__) { var baseProperty = __webpack_require__(21), - basePropertyDeep = __webpack_require__(135), - isKey = __webpack_require__(127); + basePropertyDeep = __webpack_require__(142), + isKey = __webpack_require__(134); /** * Creates a function that returns the value at `path` of a given object. @@ -4966,10 +5184,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 135 */ +/* 142 */ /***/ function(module, exports, __webpack_require__) { - var baseGet = __webpack_require__(122); + var baseGet = __webpack_require__(129); /** * A specialized version of `baseProperty` which supports deep paths. @@ -4988,26 +5206,25 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 136 */ +/* 143 */ /***/ function(module, exports) { /** * The base implementation of `_.reduce` and `_.reduceRight`, without support - * for iteratee shorthands, which iterates over `collection` using the provided - * `eachFunc`. + * for iteratee shorthands, which iterates over `collection` using `eachFunc`. * * @private * @param {Array|Object} collection The collection to iterate over. * @param {Function} iteratee The function invoked per iteration. * @param {*} accumulator The initial value. - * @param {boolean} initFromCollection Specify using the first or last element of `collection` as the initial value. + * @param {boolean} initAccum Specify using the first or last element of `collection` as the initial value. * @param {Function} eachFunc The function to iterate over `collection`. * @returns {*} Returns the accumulated value. */ - function baseReduce(collection, iteratee, accumulator, initFromCollection, eachFunc) { + function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { eachFunc(collection, function(value, index, collection) { - accumulator = initFromCollection - ? (initFromCollection = false, value) + accumulator = initAccum + ? (initAccum = false, value) : iteratee(accumulator, value, index, collection); }); return accumulator; @@ -5017,19 +5234,19 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 137 */ +/* 144 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = __webpack_require__(1); var _BaseTileLayer2 = __webpack_require__(10); @@ -5074,19 +5291,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = CanvasTileLayer; /***/ }, -/* 138 */ +/* 145 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -5095,7 +5312,7 @@ return /******/ (function(modules) { // webpackBootstrap var _latlng2 = _interopRequireDefault(_latlng); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -5154,22 +5371,22 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Circle; /***/ }, -/* 139 */ +/* 146 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); - var _isEqual = __webpack_require__(140); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _isEqual = __webpack_require__(147); var _isEqual2 = _interopRequireDefault(_isEqual); - var _pick = __webpack_require__(141); + var _pick = __webpack_require__(148); var _pick2 = _interopRequireDefault(_pick); @@ -5231,10 +5448,10 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Path; /***/ }, -/* 140 */ +/* 147 */ /***/ function(module, exports, __webpack_require__) { - var baseIsEqual = __webpack_require__(108); + var baseIsEqual = __webpack_require__(115); /** * Performs a deep comparison between two values to determine if they are @@ -5271,11 +5488,11 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 141 */ +/* 148 */ /***/ function(module, exports, __webpack_require__) { - var baseFlatten = __webpack_require__(142), - basePick = __webpack_require__(144), + var baseFlatten = __webpack_require__(149), + basePick = __webpack_require__(151), rest = __webpack_require__(26); /** @@ -5296,17 +5513,17 @@ return /******/ (function(modules) { // webpackBootstrap * // => { 'a': 1, 'c': 3 } */ var pick = rest(function(object, props) { - return object == null ? {} : basePick(object, baseFlatten(props)); + return object == null ? {} : basePick(object, baseFlatten(props, 1)); }); module.exports = pick; /***/ }, -/* 142 */ +/* 149 */ /***/ function(module, exports, __webpack_require__) { - var arrayPush = __webpack_require__(143), + var arrayPush = __webpack_require__(150), isArguments = __webpack_require__(35), isArray = __webpack_require__(38), isArrayLikeObject = __webpack_require__(36); @@ -5316,12 +5533,12 @@ return /******/ (function(modules) { // webpackBootstrap * * @private * @param {Array} array The array to flatten. - * @param {boolean} [isDeep] Specify a deep flatten. + * @param {number} depth The maximum recursion depth. * @param {boolean} [isStrict] Restrict flattening to arrays-like objects. * @param {Array} [result=[]] The initial result value. * @returns {Array} Returns the new flattened array. */ - function baseFlatten(array, isDeep, isStrict, result) { + function baseFlatten(array, depth, isStrict, result) { result || (result = []); var index = -1, @@ -5329,11 +5546,11 @@ return /******/ (function(modules) { // webpackBootstrap while (++index < length) { var value = array[index]; - if (isArrayLikeObject(value) && + if (depth > 0 && isArrayLikeObject(value) && (isStrict || isArray(value) || isArguments(value))) { - if (isDeep) { + if (depth > 1) { // Recursively flatten arrays (susceptible to call stack limits). - baseFlatten(value, isDeep, isStrict, result); + baseFlatten(value, depth - 1, isStrict, result); } else { arrayPush(result, value); } @@ -5348,7 +5565,7 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 143 */ +/* 150 */ /***/ function(module, exports) { /** @@ -5374,10 +5591,10 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 144 */ +/* 151 */ /***/ function(module, exports, __webpack_require__) { - var arrayReduce = __webpack_require__(88); + var arrayReduce = __webpack_require__(93); /** * The base implementation of `_.pick` without support for individual @@ -5402,19 +5619,19 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 145 */ +/* 152 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -5423,7 +5640,7 @@ return /******/ (function(modules) { // webpackBootstrap var _latlng2 = _interopRequireDefault(_latlng); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -5481,22 +5698,22 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = CircleMarker; /***/ }, -/* 146 */ +/* 153 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = __webpack_require__(1); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -5549,24 +5766,24 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = FeatureGroup; /***/ }, -/* 147 */ +/* 154 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -5617,19 +5834,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = GeoJson; /***/ }, -/* 148 */ +/* 155 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -5704,19 +5921,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ImageOverlay; /***/ }, -/* 149 */ +/* 156 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = __webpack_require__(1); var _MapLayer2 = __webpack_require__(11); @@ -5761,17 +5978,17 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = LayerGroup; /***/ }, -/* 150 */ +/* 157 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -5782,6 +5999,8 @@ return /******/ (function(modules) { // webpackBootstrap function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -5803,7 +6022,8 @@ return /******/ (function(modules) { // webpackBootstrap var _props = this.props; var baseLayers = _props.baseLayers; var overlays = _props.overlays; - var options = _props.options; + + var options = _objectWithoutProperties(_props, ['baseLayers', 'overlays']); this.leafletElement = _leaflet.control.layers(baseLayers, overlays, options); } @@ -5814,34 +6034,33 @@ return /******/ (function(modules) { // webpackBootstrap LayersControl.propTypes = { baseLayers: _react.PropTypes.object, - options: _react.PropTypes.object, overlays: _react.PropTypes.object }; exports.default = LayersControl; /***/ }, -/* 151 */ +/* 158 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _isArray = __webpack_require__(38); var _isArray2 = _interopRequireDefault(_isArray); - var _isUndefined = __webpack_require__(152); + var _isUndefined = __webpack_require__(159); var _isUndefined2 = _interopRequireDefault(_isUndefined); - var _uniqueId = __webpack_require__(153); + var _uniqueId = __webpack_require__(160); var _uniqueId2 = _interopRequireDefault(_uniqueId); @@ -5982,7 +6201,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Map; /***/ }, -/* 152 */ +/* 159 */ /***/ function(module, exports) { /** @@ -6009,21 +6228,21 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 153 */ +/* 160 */ /***/ function(module, exports, __webpack_require__) { - var toString = __webpack_require__(125); + var toString = __webpack_require__(132); /** Used to generate unique IDs. */ var idCounter = 0; /** - * Generates a unique ID. If `prefix` is provided the ID is appended to it. + * Generates a unique ID. If `prefix` is given the ID is appended to it. * * @static * @memberOf _ * @category Util - * @param {string} [prefix] The value to prefix the ID with. + * @param {string} [prefix=''] The value to prefix the ID with. * @returns {string} Returns the unique ID. * @example * @@ -6042,19 +6261,19 @@ return /******/ (function(modules) { // webpackBootstrap /***/ }, -/* 154 */ +/* 161 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -6135,19 +6354,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Marker; /***/ }, -/* 155 */ +/* 162 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -6156,7 +6375,7 @@ return /******/ (function(modules) { // webpackBootstrap var _latlngList2 = _interopRequireDefault(_latlngList); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -6210,19 +6429,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = MultiPolygon; /***/ }, -/* 156 */ +/* 163 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -6231,7 +6450,7 @@ return /******/ (function(modules) { // webpackBootstrap var _latlngList2 = _interopRequireDefault(_latlngList); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -6285,19 +6504,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = MultiPolyline; /***/ }, -/* 157 */ +/* 164 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -6306,7 +6525,7 @@ return /******/ (function(modules) { // webpackBootstrap var _latlngList2 = _interopRequireDefault(_latlngList); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -6360,26 +6579,26 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Polygon; /***/ }, -/* 158 */ +/* 165 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = __webpack_require__(1); var _latlngList = __webpack_require__(5); var _latlngList2 = _interopRequireDefault(_latlngList); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -6433,22 +6652,22 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Polyline; /***/ }, -/* 159 */ +/* 166 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); - var _reactDom = __webpack_require__(160); + var _reactDom = __webpack_require__(167); var _leaflet = __webpack_require__(1); @@ -6520,6 +6739,7 @@ return /******/ (function(modules) { // webpackBootstrap value: function componentDidUpdate(prevProps) { var position = this.props.position; + if (position !== prevProps.position) { this.leafletElement.setLatLng(position); } @@ -6574,32 +6794,32 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Popup; /***/ }, -/* 160 */ +/* 167 */ /***/ function(module, exports) { - module.exports = __WEBPACK_EXTERNAL_MODULE_160__; + module.exports = __WEBPACK_EXTERNAL_MODULE_167__; /***/ }, -/* 161 */ +/* 168 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = __webpack_require__(1); var _bounds = __webpack_require__(3); var _bounds2 = _interopRequireDefault(_bounds); - var _Path2 = __webpack_require__(139); + var _Path2 = __webpack_require__(146); var _Path3 = _interopRequireDefault(_Path2); @@ -6653,17 +6873,17 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = Rectangle; /***/ }, -/* 162 */ +/* 169 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -6708,19 +6928,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ZoomControl; /***/ }, -/* 163 */ +/* 170 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -6780,19 +7000,19 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = TileLayer; /***/ }, -/* 164 */ +/* 171 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - - var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + + var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); @@ -6843,17 +7063,17 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = WMSTileLayer; /***/ }, -/* 165 */ +/* 172 */ /***/ function(module, exports, __webpack_require__) { 'use strict'; - var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); + var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = __webpack_require__(4); var _leaflet = __webpack_require__(1); diff --git a/dist/react-leaflet.min.js b/dist/react-leaflet.min.js index 56538059..5689af01 100644 --- a/dist/react-leaflet.min.js +++ b/dist/react-leaflet.min.js @@ -1,3 +1,3 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("leaflet"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["leaflet","react","react-dom"],e):"object"==typeof exports?exports.ReactLeaflet=e(require("leaflet"),require("react"),require("react-dom")):t.ReactLeaflet=e(t.L,t.React,t.ReactDOM)}(this,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.setIconDefaultImagePath=e.ZoomControl=e.WMSTileLayer=e.TileLayer=e.ScaleControl=e.Rectangle=e.Popup=e.Polyline=e.Polygon=e.Path=e.MultiPolyline=e.MultiPolygon=e.Marker=e.MapLayer=e.MapControl=e.MapComponent=e.Map=e.LayersControl=e.LayerGroup=e.ImageOverlay=e.GeoJson=e.FeatureGroup=e.CircleMarker=e.Circle=e.CanvasTileLayer=e.BaseTileLayer=e.AttributionControl=e.PropTypes=void 0;var i=n(1),u=o(i),a=n(79),c=r(a),l=n(58),f=o(l),p=n(13),s=o(p),y=n(59),v=o(y),b=n(60),h=o(b),d=n(61),O=o(d),m=n(62),j=o(m),g=n(63),P=o(g),_=n(64),w=o(_),x=n(65),E=o(x),T=n(66),M=o(T),k=n(67),C=o(k),S=n(14),L=o(S),W=n(12),R=o(W),A=n(7),D=o(A),I=n(68),U=o(I),F=n(69),B=o(F),q=n(70),z=o(q),G=n(4),N=o(G),$=n(71),Z=o($),J=n(72),V=o(J),H=n(73),K=o(H),Q=n(74),X=o(Q),Y=n(75),tt=o(Y),et=n(76),nt=o(et),rt=n(77),ot=o(rt),it=n(78),ut=o(it);e.PropTypes=c,e.AttributionControl=f["default"],e.BaseTileLayer=s["default"],e.CanvasTileLayer=v["default"],e.Circle=h["default"],e.CircleMarker=O["default"],e.FeatureGroup=j["default"],e.GeoJson=P["default"],e.ImageOverlay=w["default"],e.LayerGroup=E["default"],e.LayersControl=M["default"],e.Map=C["default"],e.MapComponent=L["default"],e.MapControl=R["default"],e.MapLayer=D["default"],e.Marker=U["default"],e.MultiPolygon=B["default"],e.MultiPolyline=z["default"],e.Path=N["default"],e.Polygon=Z["default"],e.Polyline=V["default"],e.Popup=K["default"],e.Rectangle=X["default"],e.ScaleControl=tt["default"],e.TileLayer=nt["default"],e.WMSTileLayer=ot["default"],e.ZoomControl=ut["default"];var at=e.setIconDefaultImagePath=function(t){u["default"].Icon.Default.imagePath=t};at("//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images")},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(){function t(t,e){for(var n=0;n-1&&t%1==0&&r>=t}var r=9007199254740991;t.exports=n},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1&&t%1==0&&e>t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){function r(t,e){return"number"==typeof t?!0:!o(t)&&(u.test(t)||!i.test(t)||null!=e&&t in Object(e))}var o=n(3),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=r},function(t,e,n){(function(e){function r(t){return o(t)&&a.call(t,"callee")&&(!l.call(t,"callee")||c.call(t)==i)}var o=n(54),i="[object Arguments]",u=e.Object.prototype,a=u.hasOwnProperty,c=u.toString,l=u.propertyIsEnumerable;t.exports=r}).call(e,function(){return this}())},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);e["default"]=r.PropTypes.oneOf(["topleft","topright","bottomleft","bottomright"])},function(t,e,n){function r(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}var o=n(45);t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e){(function(e){var n=e.Uint8Array;t.exports=n}).call(e,function(){return this}())},function(t,e){function n(t,e){for(var n=-1,r=t.length;++nn)return!1;var r=t.length-1;return n==r?t.pop():u.call(t,n,1),!0}var o=n(17),i=e.Array.prototype,u=i.splice;t.exports=r}).call(e,function(){return this}())},function(t,e,n){function r(t,e){var n=o(t,e);return 0>n?void 0:t[n][1]}var o=n(17);t.exports=r},function(t,e,n){function r(t,e){return o(t,e)>-1}var o=n(17);t.exports=r},function(t,e,n){function r(t,e,n){var r=o(t,e);0>r?t.push([e,n]):t[r][1]=n}var o=n(17);t.exports=r},function(t,e,n){var r=n(44),o=n(120),i=o(r);t.exports=i},function(t,e,n){function r(t,e){return t&&o(t,e,i)}var o=n(97),i=n(11);t.exports=r},function(t,e,n){function r(t,e){e=i(e,t)?[e+""]:o(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[e[n++]];return n&&n==r?t:void 0}var o=n(48),i=n(31);t.exports=r},function(t,e){(function(e){function n(t,e){return o.call(t,e)||"object"==typeof t&&e in t&&null===i(t)}var r=e.Object.prototype,o=r.hasOwnProperty,i=Object.getPrototypeOf;t.exports=n}).call(e,function(){return this}())},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t){return o(t)?t:i(t)}var o=n(3),i=n(150);t.exports=r},function(t,e,n){function r(t){var e=t.constructor,n=new e(t.byteLength),r=new o(n);return r.set(new o(t)),n}var o=n(36);t.exports=r},function(t,e,n){(function(e){function r(t){return p.call(t)}var o=n(9),i=n(86),u="[object Map]",a="[object Object]",c="[object Set]",l=e.Object.prototype,f=e.Function.prototype.toString,p=l.toString,s=o?f.call(o):"",y=i?f.call(i):"";(o&&r(new o)!=u||i&&r(new i)!=c)&&(r=function(t){var e=p.call(t),n=e==a?t.constructor:null,r="function"==typeof n?f.call(n):"";if(r){if(r==s)return u;if(r==y)return c}return e}),t.exports=r}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(t,e){return o?void 0!==t[e]:u.call(t,e)}var o=n(19),i=e.Object.prototype,u=i.hasOwnProperty;t.exports=r}).call(e,function(){return this}())},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t){return i(t)&&o(t)}var o=n(20),i=n(10);t.exports=r},function(t,e,n){(function(e){function r(t){return"string"==typeof t||!o(t)&&i(t)&&c.call(t)==u}var o=n(3),i=n(10),u="[object String]",a=e.Object.prototype,c=a.toString;t.exports=r}).call(e,function(){return this}())},function(t,e,n){function r(t,e){if("function"!=typeof t)throw new TypeError(u);return e=a(void 0===e?t.length-1:i(e),0),function(){for(var n=arguments,r=-1,i=a(n.length-e,0),u=Array(i);++r=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(){function t(t,e){for(var n=0;ne&&(e=-e>o?0:o+e),n=n>o?o:n,0>n&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(u="function"==typeof u?(i--,u):void 0,a&&o(n[0],n[1],a)&&(u=3>i?void 0:u,i=1),e=Object(e);++rs))return!1;var v=c.get(t);if(v)return v==e;var b=!0;for(c.set(t,e);++lt?-1:1;return e*u}var n=t%1;return t===t?n?t-n:t:0}var o=n(162),i=1/0,u=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t){if(i(t)){var e=o(t.valueOf)?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=l.test(t);return n||f.test(t)?p(t.slice(2),n?2:8):c.test(t)?u:+t}var o=n(21),i=n(6),u=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;t.exports=r},function(t,e,n){function r(t){return o(t,i(t))}var o=n(110),i=n(11);t.exports=r},function(t,e,n){function r(t){var e=++i;return o(t)+e}var o=n(57),i=0;t.exports=r},function(t,e){t.exports=n}])}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("leaflet"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["leaflet","react","react-dom"],e):"object"==typeof exports?exports.ReactLeaflet=e(require("leaflet"),require("react"),require("react-dom")):t.ReactLeaflet=e(t.L,t.React,t.ReactDOM)}(this,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function o(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.setIconDefaultImagePath=e.ZoomControl=e.WMSTileLayer=e.TileLayer=e.ScaleControl=e.Rectangle=e.Popup=e.Polyline=e.Polygon=e.Path=e.MultiPolyline=e.MultiPolygon=e.Marker=e.MapLayer=e.MapControl=e.MapComponent=e.Map=e.LayersControl=e.LayerGroup=e.ImageOverlay=e.GeoJson=e.FeatureGroup=e.CircleMarker=e.Circle=e.CanvasTileLayer=e.BaseTileLayer=e.AttributionControl=e.PropTypes=void 0;var i=n(1),u=o(i),a=n(82),c=r(a),l=n(61),f=o(l),p=n(15),s=o(p),y=n(62),v=o(y),b=n(63),h=o(b),d=n(64),O=o(d),m=n(65),j=o(m),g=n(66),P=o(g),_=n(67),w=o(_),x=n(68),E=o(x),T=n(69),M=o(T),k=n(70),C=o(k),S=n(16),L=o(S),W=n(13),R=o(W),A=n(7),D=o(A),I=n(71),U=o(I),F=n(72),B=o(F),q=n(73),z=o(q),G=n(4),N=o(G),$=n(74),Z=o($),J=n(75),V=o(J),H=n(76),K=o(H),Q=n(77),X=o(Q),Y=n(78),tt=o(Y),et=n(79),nt=o(et),rt=n(80),ot=o(rt),it=n(81),ut=o(it);e.PropTypes=c,e.AttributionControl=f["default"],e.BaseTileLayer=s["default"],e.CanvasTileLayer=v["default"],e.Circle=h["default"],e.CircleMarker=O["default"],e.FeatureGroup=j["default"],e.GeoJson=P["default"],e.ImageOverlay=w["default"],e.LayerGroup=E["default"],e.LayersControl=M["default"],e.Map=C["default"],e.MapComponent=L["default"],e.MapControl=R["default"],e.MapLayer=D["default"],e.Marker=U["default"],e.MultiPolygon=B["default"],e.MultiPolyline=z["default"],e.Path=N["default"],e.Polygon=Z["default"],e.Polyline=V["default"],e.Popup=K["default"],e.Rectangle=X["default"],e.ScaleControl=tt["default"],e.TileLayer=nt["default"],e.WMSTileLayer=ot["default"],e.ZoomControl=ut["default"];var at=e.setIconDefaultImagePath=function(t){u["default"].Icon.Default.imagePath=t};at("//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images")},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n-1&&t%1==0&&r>=t}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t){var e=-1,n=t?t.length:0;for(this.clear();++e-1&&t%1==0&&e>t}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,e,n){function r(t,e){return"number"==typeof t?!0:!o(t)&&(u.test(t)||!i.test(t)||null!=e&&t in Object(e))}var o=n(3),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){return o(t)&&a.call(t,"callee")&&(!l.call(t,"callee")||c.call(t)==i)}var o=n(56),i="[object Arguments]",u=Object.prototype,a=u.hasOwnProperty,c=u.toString,l=u.propertyIsEnumerable;t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2);e["default"]=r.PropTypes.oneOf(["topleft","topright","bottomleft","bottomright"])},function(t,e,n){var r=n(10),o=r.Uint8Array;t.exports=o},function(t,e){function n(t,e){for(var n=-1,r=t.length;++nn)return!1;var r=t.length-1;return n==r?t.pop():u.call(t,n,1),!0}var o=n(19),i=Array.prototype,u=i.splice;t.exports=r},function(t,e,n){function r(t,e){var n=o(t,e);return 0>n?void 0:t[n][1]}var o=n(19);t.exports=r},function(t,e,n){function r(t,e){return o(t,e)>-1}var o=n(19);t.exports=r},function(t,e,n){function r(t,e,n){var r=o(t,e);0>r?t.push([e,n]):t[r][1]=n}var o=n(19);t.exports=r},function(t,e,n){function r(t){return o(t)?t:i(t)}var o=n(3),i=n(152);t.exports=r},function(t,e,n){var r=n(44),o=n(123),i=o(r);t.exports=i},function(t,e,n){function r(t,e){return t&&o(t,e,i)}var o=n(98),i=n(12);t.exports=r},function(t,e,n){function r(t,e){e=i(e,t)?[e+""]:o(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[e[n++]];return n&&n==r?t:void 0}var o=n(42),i=n(31);t.exports=r},function(t,e){function n(t,e){return o.call(t,e)||"object"==typeof t&&e in t&&null===i(t)}var r=Object.prototype,o=r.hasOwnProperty,i=Object.getPrototypeOf;t.exports=n},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},function(t,e,n){function r(t){var e=t.constructor,n=new e(t.byteLength),r=new o(n);return r.set(new o(t)),n}var o=n(35);t.exports=r},function(t,e,n){function r(t){return y.call(t)}var o=n(9),i=n(85),u=n(86),a="[object Map]",c="[object Object]",l="[object Set]",f="[object WeakMap]",p=Object.prototype,s=Function.prototype.toString,y=p.toString,v=o?s.call(o):"",b=i?s.call(i):"",h=u?s.call(u):"";(o&&r(new o)!=a||i&&r(new i)!=l||u&&r(new u)!=f)&&(r=function(t){var e=y.call(t),n=e==c?t.constructor:null,r="function"==typeof n?s.call(n):"";if(r)switch(r){case v:return a;case b:return l;case h:return f}return e}),t.exports=r},function(t,e,n){function r(t,e){return o?void 0!==t[e]:u.call(t,e)}var o=n(22),i=Object.prototype,u=i.hasOwnProperty;t.exports=r},function(t,e,n){function r(t){var e=t&&t.constructor,n=o(e)&&e.prototype||i;return t===n}var o=n(14),i=Object.prototype;t.exports=r},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}t.exports=n},function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}t.exports=n},function(t,e,n){function r(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}var o=n(45);t.exports=r},function(t,e){function n(t){return t}t.exports=n},function(t,e,n){function r(t){return i(t)&&o(t)}var o=n(23),i=n(11);t.exports=r},function(t,e,n){function r(t){return"string"==typeof t||!o(t)&&i(t)&&c.call(t)==u}var o=n(3),i=n(11),u="[object String]",a=Object.prototype,c=a.toString;t.exports=r},function(t,e,n){function r(t,e){if("function"!=typeof t)throw new TypeError(u);return e=a(void 0===e?t.length-1:i(e),0),function(){for(var n=arguments,r=-1,i=a(n.length-e,0),u=Array(i);++r=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n0&&a(p)&&(n||u(p)||i(p))?e>1?r(p,e-1,n,c):o(c,p):n||(c[c.length]=p)}return c}var o=n(91),i=n(33),u=n(3),a=n(56);t.exports=r},function(t,e,n){var r=n(124),o=r();t.exports=o},function(t,e){function n(t,e){return e in Object(t)}t.exports=n},function(t,e,n){function r(t,e,n,r,h,O){var m=l(t),j=l(e),g=v,P=v;m||(g=c(t),g==y?g=b:g!=b&&(m=p(t))),j||(P=c(e),P==y?P=b:P!=b&&(j=p(e)));var _=g==b&&!f(t),w=P==b&&!f(e),x=g==P;if(x&&!m&&!_)return u(t,e,g,n,r,h);var E=h&s;if(!E){var T=_&&d.call(t,"__wrapped__"),M=w&&d.call(e,"__wrapped__");if(T||M)return n(T?t.value():t,M?e.value():e,r,h,O)}return x?(O||(O=new o),(m?i:a)(t,e,n,r,h,O)):!1}var o=n(25),i=n(125),u=n(126),a=n(127),c=n(49),l=n(3),f=n(29),p=n(162),s=2,y="[object Arguments]",v="[object Array]",b="[object Object]",h=Object.prototype,d=h.hasOwnProperty;t.exports=r},function(t,e,n){function r(t,e,n,r){var c=n.length,l=c,f=!r;if(null==t)return!l;for(t=Object(t);c--;){var p=n[c];if(f&&p[2]?p[1]!==t[p[0]]:!(p[0]in t))return!1}for(;++ce&&(e=-e>o?0:o+e),n=n>o?o:n,0>n&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(u="function"==typeof u?(i--,u):void 0,a&&o(n[0],n[1],a)&&(u=3>i?void 0:u,i=1),e=Object(e);++rs))return!1;var v=c.get(t);if(v)return v==e;var b=!0;for(c.set(t,e);++lt?-1:1;return e*u}var n=t%1;return t===t?n?t-n:t:0}var o=n(169),i=1/0,u=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t){if(i(t)){var e=o(t.valueOf)?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=l.test(t);return n||f.test(t)?p(t.slice(2),n?2:8):c.test(t)?u:+t}var o=n(14),i=n(6),u=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;t.exports=r},function(t,e,n){function r(t){return o(t,i(t))}var o=n(111),i=n(12);t.exports=r},function(t,e,n){function r(t){var e=++i;return o(t)+e}var o=n(59),i=0;t.exports=r},function(t,e){t.exports=n}])}); \ No newline at end of file diff --git a/lib/AttributionControl.js b/lib/AttributionControl.js index 955dcf4d..869b1c1a 100644 --- a/lib/AttributionControl.js +++ b/lib/AttributionControl.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/BaseTileLayer.js b/lib/BaseTileLayer.js index 6df5c68c..b52ae78a 100644 --- a/lib/BaseTileLayer.js +++ b/lib/BaseTileLayer.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = require('react'); var _MapLayer2 = require('./MapLayer'); diff --git a/lib/CanvasTileLayer.js b/lib/CanvasTileLayer.js index 16ab2355..dca45e49 100644 --- a/lib/CanvasTileLayer.js +++ b/lib/CanvasTileLayer.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = require('leaflet'); var _BaseTileLayer2 = require('./BaseTileLayer'); diff --git a/lib/Circle.js b/lib/Circle.js index 72d3b1ec..1e7c320e 100644 --- a/lib/Circle.js +++ b/lib/Circle.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/CircleMarker.js b/lib/CircleMarker.js index 18f0628e..0dbd3cb5 100644 --- a/lib/CircleMarker.js +++ b/lib/CircleMarker.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/FeatureGroup.js b/lib/FeatureGroup.js index d9eb7d32..4d2988a8 100644 --- a/lib/FeatureGroup.js +++ b/lib/FeatureGroup.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = require('leaflet'); var _Path2 = require('./Path'); diff --git a/lib/GeoJson.js b/lib/GeoJson.js index 7deacc9a..51c84e4c 100644 --- a/lib/GeoJson.js +++ b/lib/GeoJson.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/ImageOverlay.js b/lib/ImageOverlay.js index 0d53eb89..da9d9d50 100644 --- a/lib/ImageOverlay.js +++ b/lib/ImageOverlay.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/LayerGroup.js b/lib/LayerGroup.js index f2f94cc5..d471ff65 100644 --- a/lib/LayerGroup.js +++ b/lib/LayerGroup.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = require('leaflet'); var _MapLayer2 = require('./MapLayer'); diff --git a/lib/LayersControl.js b/lib/LayersControl.js index 9a5aa4d7..c6602baa 100644 --- a/lib/LayersControl.js +++ b/lib/LayersControl.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = require('react'); var _leaflet = require('leaflet'); @@ -16,6 +16,8 @@ var _MapControl3 = _interopRequireDefault(_MapControl2); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } @@ -37,7 +39,8 @@ var LayersControl = function (_MapControl) { var _props = this.props; var baseLayers = _props.baseLayers; var overlays = _props.overlays; - var options = _props.options; + + var options = _objectWithoutProperties(_props, ['baseLayers', 'overlays']); this.leafletElement = _leaflet.control.layers(baseLayers, overlays, options); } @@ -48,7 +51,6 @@ var LayersControl = function (_MapControl) { LayersControl.propTypes = { baseLayers: _react.PropTypes.object, - options: _react.PropTypes.object, overlays: _react.PropTypes.object }; exports.default = LayersControl; \ No newline at end of file diff --git a/lib/Map.js b/lib/Map.js index 1bd69888..7f06ec4d 100644 --- a/lib/Map.js +++ b/lib/Map.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _isArray = require('lodash/isArray'); var _isArray2 = _interopRequireDefault(_isArray); diff --git a/lib/MapComponent.js b/lib/MapComponent.js index c99dbf06..c5f530a1 100644 --- a/lib/MapComponent.js +++ b/lib/MapComponent.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _clone = require('lodash/clone'); var _clone2 = _interopRequireDefault(_clone); diff --git a/lib/MapControl.js b/lib/MapControl.js index ded625bf..7051d1e0 100644 --- a/lib/MapControl.js +++ b/lib/MapControl.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = require('react'); var _controlPosition = require('./types/controlPosition'); diff --git a/lib/MapLayer.js b/lib/MapLayer.js index c5e4d30b..df831a13 100644 --- a/lib/MapLayer.js +++ b/lib/MapLayer.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _assign = require('lodash/assign'); var _assign2 = _interopRequireDefault(_assign); diff --git a/lib/Marker.js b/lib/Marker.js index b6fccd40..6cbbbef3 100644 --- a/lib/Marker.js +++ b/lib/Marker.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/MultiPolygon.js b/lib/MultiPolygon.js index 9148729b..b890d655 100644 --- a/lib/MultiPolygon.js +++ b/lib/MultiPolygon.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/MultiPolyline.js b/lib/MultiPolyline.js index 2648446a..04f938e7 100644 --- a/lib/MultiPolyline.js +++ b/lib/MultiPolyline.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/Path.js b/lib/Path.js index 236303c9..a2afc604 100644 --- a/lib/Path.js +++ b/lib/Path.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _isEqual = require('lodash/isEqual'); var _isEqual2 = _interopRequireDefault(_isEqual); diff --git a/lib/Polygon.js b/lib/Polygon.js index ba1f34ec..5b8a9f23 100644 --- a/lib/Polygon.js +++ b/lib/Polygon.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/Polyline.js b/lib/Polyline.js index de548c23..7986746a 100644 --- a/lib/Polyline.js +++ b/lib/Polyline.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = require('leaflet'); var _latlngList = require('./types/latlngList'); diff --git a/lib/Popup.js b/lib/Popup.js index d117262d..6bddf7eb 100644 --- a/lib/Popup.js +++ b/lib/Popup.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _reactDom = require('react-dom'); @@ -82,6 +82,7 @@ var Popup = function (_MapComponent) { value: function componentDidUpdate(prevProps) { var position = this.props.position; + if (position !== prevProps.position) { this.leafletElement.setLatLng(position); } diff --git a/lib/Rectangle.js b/lib/Rectangle.js index ec5ac9dd..380c6453 100644 --- a/lib/Rectangle.js +++ b/lib/Rectangle.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _leaflet = require('leaflet'); var _bounds = require('./types/bounds'); diff --git a/lib/ScaleControl.js b/lib/ScaleControl.js index 83bb0809..c1871217 100644 --- a/lib/ScaleControl.js +++ b/lib/ScaleControl.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/TileLayer.js b/lib/TileLayer.js index 4e76378c..31ab046d 100644 --- a/lib/TileLayer.js +++ b/lib/TileLayer.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/WMSTileLayer.js b/lib/WMSTileLayer.js index 52dad34d..cf5c1333 100644 --- a/lib/WMSTileLayer.js +++ b/lib/WMSTileLayer.js @@ -1,13 +1,13 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + +var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } }; + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/lib/ZoomControl.js b/lib/ZoomControl.js index a4500ab3..28ddfc76 100644 --- a/lib/ZoomControl.js +++ b/lib/ZoomControl.js @@ -1,11 +1,11 @@ 'use strict'; -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - Object.defineProperty(exports, "__esModule", { value: true }); +var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); + var _react = require('react'); var _leaflet = require('leaflet'); diff --git a/package.json b/package.json index 3e59ff76..095ae562 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-leaflet", - "version": "0.10.0", + "version": "0.10.1", "description": "React components for Leaflet maps", "main": "lib/index.js", "scripts": { @@ -44,31 +44,31 @@ "react-dom": "^0.14.0" }, "devDependencies": { - "babel-cli": "^6.4.5", - "babel-core": "^6.4.5", - "babel-eslint": "^5.0.0-beta6", + "babel-cli": "^6.5.1", + "babel-core": "^6.5.2", + "babel-eslint": "^5.0.0", "babel-jest": "^6.0.1", - "babel-loader": "^6.2.1", + "babel-loader": "^6.2.3", "babel-plugin-react-transform": "^2.0.0", - "babel-plugin-syntax-class-properties": "^6.3.13", - "babel-plugin-syntax-export-extensions": "^6.3.13", - "babel-plugin-syntax-function-bind": "^6.3.13", - "babel-plugin-syntax-object-rest-spread": "^6.3.13", - "babel-plugin-transform-class-properties": "^6.4.0", - "babel-plugin-transform-export-extensions": "^6.4.0", - "babel-plugin-transform-function-bind": "^6.3.13", - "babel-plugin-transform-object-rest-spread": "^6.3.13", - "babel-preset-es2015": "^6.3.13", - "babel-preset-react": "^6.3.13", - "eslint": "^1.10.3", - "eslint-plugin-react": "^3.16.1", + "babel-plugin-syntax-class-properties": "^6.5.0", + "babel-plugin-syntax-export-extensions": "^6.5.0", + "babel-plugin-syntax-function-bind": "^6.5.0", + "babel-plugin-syntax-object-rest-spread": "^6.5.0", + "babel-plugin-transform-class-properties": "^6.5.2", + "babel-plugin-transform-export-extensions": "^6.5.0", + "babel-plugin-transform-function-bind": "^6.5.2", + "babel-plugin-transform-object-rest-spread": "^6.5.0", + "babel-preset-es2015": "^6.5.0", + "babel-preset-react": "^6.5.0", + "eslint": "^2.2.0", + "eslint-plugin-react": "^4.0.0", "jest-cli": "^0.8.2", "leaflet": "^0.7.7", "onchange": "^2.0.0", - "react": "^0.14.6", - "react-dom": "^0.14.6", - "react-transform-hmr": "^1.0.1", - "webpack": "^1.12.12", + "react": "^0.14.7", + "react-dom": "^0.14.7", + "react-transform-hmr": "^1.0.2", + "webpack": "^1.12.14", "webpack-dev-server": "^1.14.1" }, "jest": { diff --git a/src/LayersControl.js b/src/LayersControl.js index 1257d3c8..53c71193 100644 --- a/src/LayersControl.js +++ b/src/LayersControl.js @@ -6,12 +6,11 @@ import MapControl from './MapControl'; export default class LayersControl extends MapControl { static propTypes = { baseLayers: PropTypes.object, - options: PropTypes.object, overlays: PropTypes.object, }; componentWillMount() { - const { baseLayers, overlays, options } = this.props; + const { baseLayers, overlays, ...options } = this.props; this.leafletElement = control.layers(baseLayers, overlays, options); } }