From a97921603cbb9f0027af653cb95315f4b8b2a254 Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 13:35:00 -0700 Subject: [PATCH 1/9] Loosen and upgrade react-leaflet dep Playground works --- docs/installation.md | 13 ++++++++----- package-lock.json | 4 ++-- package.json | 4 ++-- playground/package-lock.json | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index e51d324..0d573a8 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -8,11 +8,14 @@ Client applications will need to install these as dependencies (or, possibly, peer dependencies). ```json -"leaflet": "^1.7.1", -"react": "^17.0.2", -"react-dom": "^17.0.2", -"@react-leaflet/core": "1.0.2", -"react-leaflet": "3.1.0" +"peerDependencies": { + "@react-leaflet/core": "2.0.0", + "leaflet": "^1.8.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-leaflet": "^4.2.1" +} + ``` IMPORTANT: Note the exact (and out of date) version specifications for diff --git a/package-lock.json b/package-lock.json index 17a6374..174a499 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pcic-react-leaflet-components", - "version": "2.0.1", + "version": "3.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pcic-react-leaflet-components", - "version": "2.0.1", + "version": "3.1.0", "dependencies": { "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", diff --git a/package.json b/package.json index 22c84f3..6f52611 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "i-pg": "cd playground && npm i", "i-all": "npm i && cd playground && npm i", "rei-all": "(rm -rf node_modules ; npm i) && (cd playground && rm -rf node_modules ; npm i)", - "dev": "npm-run-all --parallel build-watch start-playground", + "dev": "npm-run-all --parallel build-watch start-pg", "start": "react-scripts start", "test": "react-scripts test", "eject": "react-scripts eject" @@ -65,6 +65,6 @@ "leaflet": "^1.8.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-leaflet": "4.0.0" + "react-leaflet": "^4.2.1" } } diff --git a/playground/package-lock.json b/playground/package-lock.json index 1ec7e92..e7076c9 100644 --- a/playground/package-lock.json +++ b/playground/package-lock.json @@ -24,7 +24,7 @@ } }, "..": { - "version": "2.0.1", + "version": "3.1.0", "dependencies": { "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", From 4b83f3d922faad211e1c0f1196434ad0bbaabec3 Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 13:38:41 -0700 Subject: [PATCH 2/9] Remove @react-leaflet/core peer dep Playground works --- dist/index.cjs.js | 1498 +++++++++++++++++++--------------- dist/index.esm.js | 1498 +++++++++++++++++++--------------- package-lock.json | 47 +- package.json | 1 - playground/package-lock.json | 3 +- 5 files changed, 1708 insertions(+), 1339 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 44efc96..48cf5e4 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -7,7 +7,7 @@ var reactLeaflet = require('react-leaflet'); var L = require('leaflet'); require('leaflet/dist/leaflet.css'); var client = require('react-dom/client'); -var core = require('@react-leaflet/core'); +require('react-dom'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } @@ -10476,6 +10476,16 @@ var SetView = function SetView(_ref) { return null; }; +const LeafletContext = React.createContext(null); +LeafletContext.Provider; +function useLeafletContext() { + const context = React.useContext(LeafletContext); + if (context == null) { + throw new Error('No context provided: useLeafletContext() can only be used in a descendant of '); + } + return context; +} + L__default["default"].Control.Static = L__default["default"].Control.extend({ onAdd: function onAdd(map) { var container = L__default["default"].DomUtil.create('div', 'leaflet-control-static leaflet-control'); @@ -10494,7 +10504,7 @@ function StaticControl(_ref) { var children = _ref.children, rest = _objectWithoutProperties(_ref, _excluded$1); - var context = core.useLeafletContext(); + var context = useLeafletContext(); React.useEffect(function () { var control = L__default["default"].control.static(rest); control.addTo(context.map); @@ -10577,27 +10587,27 @@ function require_root () { return _root; } -var root$9 = require_root(); +var root$a = require_root(); /** Built-in value references. */ -var Symbol$5 = root$9.Symbol; +var Symbol$5 = root$a.Symbol; var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$8 = Object.prototype; +var objectProto$7 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$6 = objectProto$8.hasOwnProperty; +var hasOwnProperty$5 = objectProto$7.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$8.toString; +var nativeObjectToString$1 = objectProto$7.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10610,7 +10620,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$5.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10633,14 +10643,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$7 = Object.prototype; +var objectProto$6 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$7.toString; +var nativeObjectToString = objectProto$6.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -10710,15 +10720,15 @@ var _baseGetTag = baseGetTag$5; * // => false */ -function isObject$5(value) { +function isObject$6(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } -var isObject_1 = isObject$5; +var isObject_1 = isObject$6; var baseGetTag$4 = _baseGetTag, - isObject$4 = isObject_1; + isObject$5 = isObject_1; /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', @@ -10743,8 +10753,8 @@ var asyncTag = '[object AsyncFunction]', * _.isFunction(/abc/); * // => false */ -function isFunction(value) { - if (!isObject$4(value)) { +function isFunction$1(value) { + if (!isObject$5(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator @@ -10753,58 +10763,42 @@ function isFunction(value) { return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag; } -var isFunction_1 = isFunction; - -var _coreJsData; -var hasRequired_coreJsData; +var isFunction_1 = isFunction$1; -function require_coreJsData () { - if (hasRequired_coreJsData) return _coreJsData; - hasRequired_coreJsData = 1; - var root = require_root(); - - /** Used to detect overreaching core-js shims. */ - var coreJsData = root['__core-js_shared__']; - - _coreJsData = coreJsData; - return _coreJsData; -} +var root$9 = require_root(); -var _isMasked; -var hasRequired_isMasked; +/** Used to detect overreaching core-js shims. */ +var coreJsData$1 = root$9['__core-js_shared__']; -function require_isMasked () { - if (hasRequired_isMasked) return _isMasked; - hasRequired_isMasked = 1; - var coreJsData = require_coreJsData(); +var _coreJsData = coreJsData$1; - /** Used to detect methods masquerading as native. */ - var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; - }()); +var coreJsData = _coreJsData; - /** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ - function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); - } +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); - _isMasked = isMasked; - return _isMasked; +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked$1(func) { + return !!maskSrcKey && (maskSrcKey in func); } +var _isMasked = isMasked$1; + /** Used for built-in method references. */ -var funcProto$1 = Function.prototype; +var funcProto$2 = Function.prototype; /** Used to resolve the decompiled source of functions. */ -var funcToString$1 = funcProto$1.toString; +var funcToString$2 = funcProto$2.toString; /** * Converts `func` to its source code. @@ -10813,10 +10807,10 @@ var funcToString$1 = funcProto$1.toString; * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ -function toSource$1(func) { +function toSource$2(func) { if (func != null) { try { - return funcToString$1.call(func); + return funcToString$2.call(func); } catch (e) {} try { return (func + ''); @@ -10825,64 +10819,56 @@ function toSource$1(func) { return ''; } -var _toSource = toSource$1; +var _toSource = toSource$2; -var _baseIsNative; -var hasRequired_baseIsNative; +var isFunction = isFunction_1, + isMasked = _isMasked, + isObject$4 = isObject_1, + toSource$1 = _toSource; -function require_baseIsNative () { - if (hasRequired_baseIsNative) return _baseIsNative; - hasRequired_baseIsNative = 1; - var isFunction = isFunction_1, - isMasked = require_isMasked(), - isObject = isObject_1, - toSource = _toSource; - - /** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - /** Used to detect host constructors (Safari). */ - var reIsHostCtor = /^\[object .+?Constructor\]$/; +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; - /** Used for built-in method references. */ - var funcProto = Function.prototype, - objectProto = Object.prototype; +/** Used for built-in method references. */ +var funcProto$1 = Function.prototype, + objectProto$5 = Object.prototype; - /** Used to resolve the decompiled source of functions. */ - var funcToString = funcProto.toString; +/** Used to resolve the decompiled source of functions. */ +var funcToString$1 = funcProto$1.toString; - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used to check objects for own properties. */ +var hasOwnProperty$4 = objectProto$5.hasOwnProperty; - /** Used to detect if a method is native. */ - var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' - ); +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString$1.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); - /** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - - _baseIsNative = baseIsNative; - return _baseIsNative; +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative$1(value) { + if (!isObject$4(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource$1(value)); } +var _baseIsNative = baseIsNative$1; + /** * Gets the value at `key` of `object`. * @@ -10892,61 +10878,37 @@ function require_baseIsNative () { * @returns {*} Returns the property value. */ -var _getValue; -var hasRequired_getValue; - -function require_getValue () { - if (hasRequired_getValue) return _getValue; - hasRequired_getValue = 1; - function getValue(object, key) { - return object == null ? undefined : object[key]; - } - - _getValue = getValue; - return _getValue; +function getValue$1(object, key) { + return object == null ? undefined : object[key]; } -var _getNative; -var hasRequired_getNative; +var _getValue = getValue$1; -function require_getNative () { - if (hasRequired_getNative) return _getNative; - hasRequired_getNative = 1; - var baseIsNative = require_baseIsNative(), - getValue = require_getValue(); +var baseIsNative = _baseIsNative, + getValue = _getValue; - /** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; - } - - _getNative = getNative; - return _getNative; +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative$6(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; } -var _WeakMap; -var hasRequired_WeakMap; +var _getNative = getNative$6; -function require_WeakMap () { - if (hasRequired_WeakMap) return _WeakMap; - hasRequired_WeakMap = 1; - var getNative = require_getNative(), - root = require_root(); +var getNative$5 = _getNative, + root$8 = require_root(); - /* Built-in method references that are verified to be native. */ - var WeakMap = getNative(root, 'WeakMap'); +/* Built-in method references that are verified to be native. */ +var WeakMap$1 = getNative$5(root$8, 'WeakMap'); - _WeakMap = WeakMap; - return _WeakMap; -} +var _WeakMap = WeakMap$1; var _metaMap; var hasRequired_metaMap; @@ -10954,7 +10916,7 @@ var hasRequired_metaMap; function require_metaMap () { if (hasRequired_metaMap) return _metaMap; hasRequired_metaMap = 1; - var WeakMap = require_WeakMap(); + var WeakMap = _WeakMap; /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; @@ -11059,7 +11021,7 @@ function createCtor$4(Ctor) { var _createCtor = createCtor$4; var createCtor$3 = _createCtor, - root$8 = require_root(); + root$7 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$6 = 1; @@ -11079,7 +11041,7 @@ function createBind$1(func, bitmask, thisArg) { Ctor = createCtor$3(func); function wrapper() { - var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func; return fn.apply(isBind ? thisArg : this, arguments); } return wrapper; @@ -11880,25 +11842,17 @@ function requireConstant () { return constant_1; } -var _defineProperty; -var hasRequired_defineProperty; +var getNative$4 = _getNative; -function require_defineProperty () { - if (hasRequired_defineProperty) return _defineProperty; - hasRequired_defineProperty = 1; - var getNative = require_getNative(); - - var defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} - }()); +var defineProperty$1 = (function() { + try { + var func = getNative$4(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} +}()); - _defineProperty = defineProperty; - return _defineProperty; -} +var _defineProperty = defineProperty$1; var _baseSetToString; var hasRequired_baseSetToString; @@ -11907,7 +11861,7 @@ function require_baseSetToString () { if (hasRequired_baseSetToString) return _baseSetToString; hasRequired_baseSetToString = 1; var constant = requireConstant(), - defineProperty = require_defineProperty(), + defineProperty = _defineProperty, identity = requireIdentity(); /** @@ -12327,7 +12281,7 @@ var composeArgs$1 = _composeArgs, getHolder$1 = _getHolder, reorder = _reorder, replaceHolders$2 = _replaceHolders, - root$7 = require_root(); + root$6 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$3 = 1, @@ -12402,7 +12356,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight if (isAry && ary < length) { args.length = ary; } - if (this && this !== root$7 && this instanceof wrapper) { + if (this && this !== root$6 && this instanceof wrapper) { fn = Ctor || createCtor$2(fn); } return fn.apply(thisBinding, args); @@ -12418,7 +12372,7 @@ var apply$1 = require_apply(), createRecurry = _createRecurry, getHolder = _getHolder, replaceHolders$1 = _replaceHolders, - root$6 = require_root(); + root$5 = require_root(); /** * Creates a function that wraps `func` to enable currying. @@ -12451,7 +12405,7 @@ function createCurry$1(func, bitmask, arity) { func, bitmask, createHybrid$1, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } - var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; return apply$1(fn, this, args); } return wrapper; @@ -12461,7 +12415,7 @@ var _createCurry = createCurry$1; var apply = require_apply(), createCtor = _createCtor, - root$5 = require_root(); + root$4 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$2 = 1; @@ -12488,7 +12442,7 @@ function createPartial$1(func, bitmask, thisArg, partials) { leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), - fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; + fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; @@ -12947,7 +12901,7 @@ function ary(func, n, guard) { var ary_1 = ary; -var defineProperty = require_defineProperty(); +var defineProperty = _defineProperty; /** * The base implementation of `assignValue` and `assignMergeValue` without @@ -13006,20 +12960,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$2(value, other) { +function eq$1(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$2; +var eq_1 = eq$1; var baseAssignValue$1 = _baseAssignValue, - eq$1 = eq_1; + eq = eq_1; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$4 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$5 = objectProto$6.hasOwnProperty; +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -13033,7 +12987,7 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || + if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13757,184 +13711,248 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -function listCacheClear$1() { - this.__data__ = []; - this.size = 0; +var _listCacheClear; +var hasRequired_listCacheClear; + +function require_listCacheClear () { + if (hasRequired_listCacheClear) return _listCacheClear; + hasRequired_listCacheClear = 1; + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + + _listCacheClear = listCacheClear; + return _listCacheClear; } -var _listCacheClear = listCacheClear$1; +var _assocIndexOf; +var hasRequired_assocIndexOf; -var eq = eq_1; +function require_assocIndexOf () { + if (hasRequired_assocIndexOf) return _assocIndexOf; + hasRequired_assocIndexOf = 1; + var eq = eq_1; -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf$4(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + + _assocIndexOf = assocIndexOf; + return _assocIndexOf; } -var _assocIndexOf = assocIndexOf$4; +var _listCacheDelete; +var hasRequired_listCacheDelete; -var assocIndexOf$3 = _assocIndexOf; +function require_listCacheDelete () { + if (hasRequired_listCacheDelete) return _listCacheDelete; + hasRequired_listCacheDelete = 1; + var assocIndexOf = require_assocIndexOf(); -/** Used for built-in method references. */ -var arrayProto = Array.prototype; + /** Used for built-in method references. */ + var arrayProto = Array.prototype; -/** Built-in value references. */ -var splice = arrayProto.splice; + /** Built-in value references. */ + var splice = arrayProto.splice; -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete$1(key) { - var data = this.__data__, - index = assocIndexOf$3(data, key); + /** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } + + _listCacheDelete = listCacheDelete; + return _listCacheDelete; } -var _listCacheDelete = listCacheDelete$1; +var _listCacheGet; +var hasRequired_listCacheGet; -var assocIndexOf$2 = _assocIndexOf; +function require_listCacheGet () { + if (hasRequired_listCacheGet) return _listCacheGet; + hasRequired_listCacheGet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet$1(key) { - var data = this.__data__, - index = assocIndexOf$2(data, key); + /** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - return index < 0 ? undefined : data[index][1]; + return index < 0 ? undefined : data[index][1]; + } + + _listCacheGet = listCacheGet; + return _listCacheGet; } -var _listCacheGet = listCacheGet$1; +var _listCacheHas; +var hasRequired_listCacheHas; -var assocIndexOf$1 = _assocIndexOf; +function require_listCacheHas () { + if (hasRequired_listCacheHas) return _listCacheHas; + hasRequired_listCacheHas = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas$1(key) { - return assocIndexOf$1(this.__data__, key) > -1; + /** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + + _listCacheHas = listCacheHas; + return _listCacheHas; } -var _listCacheHas = listCacheHas$1; +var _listCacheSet; +var hasRequired_listCacheSet; -var assocIndexOf = _assocIndexOf; +function require_listCacheSet () { + if (hasRequired_listCacheSet) return _listCacheSet; + hasRequired_listCacheSet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet$1(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); + /** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ + function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; + _listCacheSet = listCacheSet; + return _listCacheSet; } -var _listCacheSet = listCacheSet$1; +var _ListCache; +var hasRequired_ListCache; -var listCacheClear = _listCacheClear, - listCacheDelete = _listCacheDelete, - listCacheGet = _listCacheGet, - listCacheHas = _listCacheHas, - listCacheSet = _listCacheSet; +function require_ListCache () { + if (hasRequired_ListCache) return _ListCache; + hasRequired_ListCache = 1; + var listCacheClear = require_listCacheClear(), + listCacheDelete = require_listCacheDelete(), + listCacheGet = require_listCacheGet(), + listCacheHas = require_listCacheHas(), + listCacheSet = require_listCacheSet(); -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache$4(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `ListCache`. + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + + _ListCache = ListCache; + return _ListCache; } -// Add methods to `ListCache`. -ListCache$4.prototype.clear = listCacheClear; -ListCache$4.prototype['delete'] = listCacheDelete; -ListCache$4.prototype.get = listCacheGet; -ListCache$4.prototype.has = listCacheHas; -ListCache$4.prototype.set = listCacheSet; +var _stackClear; +var hasRequired_stackClear; -var _ListCache = ListCache$4; +function require_stackClear () { + if (hasRequired_stackClear) return _stackClear; + hasRequired_stackClear = 1; + var ListCache = require_ListCache(); -var ListCache$3 = _ListCache; + /** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ + function stackClear() { + this.__data__ = new ListCache; + this.size = 0; + } -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear$1() { - this.__data__ = new ListCache$3; - this.size = 0; + _stackClear = stackClear; + return _stackClear; } -var _stackClear = stackClear$1; - /** * Removes `key` and its value from the stack. * @@ -13945,15 +13963,23 @@ var _stackClear = stackClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function stackDelete$1(key) { - var data = this.__data__, - result = data['delete'](key); +var _stackDelete; +var hasRequired_stackDelete; - this.size = data.size; - return result; -} +function require_stackDelete () { + if (hasRequired_stackDelete) return _stackDelete; + hasRequired_stackDelete = 1; + function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); -var _stackDelete = stackDelete$1; + this.size = data.size; + return result; + } + + _stackDelete = stackDelete; + return _stackDelete; +} /** * Gets the stack value for `key`. @@ -13965,11 +13991,19 @@ var _stackDelete = stackDelete$1; * @returns {*} Returns the entry value. */ -function stackGet$1(key) { - return this.__data__.get(key); -} +var _stackGet; +var hasRequired_stackGet; -var _stackGet = stackGet$1; +function require_stackGet () { + if (hasRequired_stackGet) return _stackGet; + hasRequired_stackGet = 1; + function stackGet(key) { + return this.__data__.get(key); + } + + _stackGet = stackGet; + return _stackGet; +} /** * Checks if a stack value for `key` exists. @@ -13981,42 +14015,66 @@ var _stackGet = stackGet$1; * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -function stackHas$1(key) { - return this.__data__.has(key); -} +var _stackHas; +var hasRequired_stackHas; + +function require_stackHas () { + if (hasRequired_stackHas) return _stackHas; + hasRequired_stackHas = 1; + function stackHas(key) { + return this.__data__.has(key); + } -var _stackHas = stackHas$1; + _stackHas = stackHas; + return _stackHas; +} -var getNative$4 = require_getNative(), - root$4 = require_root(); +var getNative$3 = _getNative, + root$3 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$3 = getNative$4(root$4, 'Map'); +var Map$1 = getNative$3(root$3, 'Map'); -var _Map = Map$3; +var _Map = Map$1; -var getNative$3 = require_getNative(); +var _nativeCreate; +var hasRequired_nativeCreate; -/* Built-in method references that are verified to be native. */ -var nativeCreate$4 = getNative$3(Object, 'create'); - -var _nativeCreate = nativeCreate$4; +function require_nativeCreate () { + if (hasRequired_nativeCreate) return _nativeCreate; + hasRequired_nativeCreate = 1; + var getNative = _getNative; -var nativeCreate$3 = _nativeCreate; + /* Built-in method references that are verified to be native. */ + var nativeCreate = getNative(Object, 'create'); -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear$1() { - this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; - this.size = 0; + _nativeCreate = nativeCreate; + return _nativeCreate; } -var _hashClear = hashClear$1; +var _hashClear; +var hasRequired_hashClear; + +function require_hashClear () { + if (hasRequired_hashClear) return _hashClear; + hasRequired_hashClear = 1; + var nativeCreate = require_nativeCreate(); + + /** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + + _hashClear = hashClear; + return _hashClear; +} /** * Removes `key` and its value from the hash. @@ -14029,148 +14087,196 @@ var _hashClear = hashClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function hashDelete$1(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; +var _hashDelete; +var hasRequired_hashDelete; + +function require_hashDelete () { + if (hasRequired_hashDelete) return _hashDelete; + hasRequired_hashDelete = 1; + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + + _hashDelete = hashDelete; + return _hashDelete; } -var _hashDelete = hashDelete$1; +var _hashGet; +var hasRequired_hashGet; -var nativeCreate$2 = _nativeCreate; +function require_hashGet () { + if (hasRequired_hashGet) return _hashGet; + hasRequired_hashGet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** Used for built-in method references. */ -var objectProto$5 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$5.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet$1(key) { - var data = this.__data__; - if (nativeCreate$2) { - var result = data[key]; - return result === HASH_UNDEFINED$1 ? undefined : result; - } - return hasOwnProperty$4.call(data, key) ? data[key] : undefined; + /** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; + } + + _hashGet = hashGet; + return _hashGet; } -var _hashGet = hashGet$1; +var _hashHas; +var hasRequired_hashHas; -var nativeCreate$1 = _nativeCreate; +function require_hashHas () { + if (hasRequired_hashHas) return _hashHas; + hasRequired_hashHas = 1; + var nativeCreate = require_nativeCreate(); -/** Used for built-in method references. */ -var objectProto$4 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas$1(key) { - var data = this.__data__; - return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); + /** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); + } + + _hashHas = hashHas; + return _hashHas; } -var _hashHas = hashHas$1; +var _hashSet; +var hasRequired_hashSet; -var nativeCreate = _nativeCreate; +function require_hashSet () { + if (hasRequired_hashSet) return _hashSet; + hasRequired_hashSet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet$1(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; + /** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; + } + + _hashSet = hashSet; + return _hashSet; } -var _hashSet = hashSet$1; +var _Hash; +var hasRequired_Hash; -var hashClear = _hashClear, - hashDelete = _hashDelete, - hashGet = _hashGet, - hashHas = _hashHas, - hashSet = _hashSet; +function require_Hash () { + if (hasRequired_Hash) return _Hash; + hasRequired_Hash = 1; + var hashClear = require_hashClear(), + hashDelete = require_hashDelete(), + hashGet = require_hashGet(), + hashHas = require_hashHas(), + hashSet = require_hashSet(); -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash$1(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `Hash`. + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + + _Hash = Hash; + return _Hash; } -// Add methods to `Hash`. -Hash$1.prototype.clear = hashClear; -Hash$1.prototype['delete'] = hashDelete; -Hash$1.prototype.get = hashGet; -Hash$1.prototype.has = hashHas; -Hash$1.prototype.set = hashSet; +var _mapCacheClear; +var hasRequired_mapCacheClear; -var _Hash = Hash$1; +function require_mapCacheClear () { + if (hasRequired_mapCacheClear) return _mapCacheClear; + hasRequired_mapCacheClear = 1; + var Hash = require_Hash(), + ListCache = require_ListCache(), + Map = _Map; -var Hash = _Hash, - ListCache$2 = _ListCache, - Map$2 = _Map; + /** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ + function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; + } -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear$1() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map$2 || ListCache$2), - 'string': new Hash - }; + _mapCacheClear = mapCacheClear; + return _mapCacheClear; } -var _mapCacheClear = mapCacheClear$1; - /** * Checks if `value` is suitable for use as unique object key. * @@ -14179,205 +14285,277 @@ var _mapCacheClear = mapCacheClear$1; * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -function isKeyable$1(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); +var _isKeyable; +var hasRequired_isKeyable; + +function require_isKeyable () { + if (hasRequired_isKeyable) return _isKeyable; + hasRequired_isKeyable = 1; + function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); + } + + _isKeyable = isKeyable; + return _isKeyable; } -var _isKeyable = isKeyable$1; +var _getMapData; +var hasRequired_getMapData; -var isKeyable = _isKeyable; +function require_getMapData () { + if (hasRequired_getMapData) return _getMapData; + hasRequired_getMapData = 1; + var isKeyable = require_isKeyable(); -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData$4(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; + /** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; + } + + _getMapData = getMapData; + return _getMapData; } -var _getMapData = getMapData$4; +var _mapCacheDelete; +var hasRequired_mapCacheDelete; -var getMapData$3 = _getMapData; +function require_mapCacheDelete () { + if (hasRequired_mapCacheDelete) return _mapCacheDelete; + hasRequired_mapCacheDelete = 1; + var getMapData = require_getMapData(); -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete$1(key) { - var result = getMapData$3(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; + /** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; + } + + _mapCacheDelete = mapCacheDelete; + return _mapCacheDelete; } -var _mapCacheDelete = mapCacheDelete$1; +var _mapCacheGet; +var hasRequired_mapCacheGet; -var getMapData$2 = _getMapData; +function require_mapCacheGet () { + if (hasRequired_mapCacheGet) return _mapCacheGet; + hasRequired_mapCacheGet = 1; + var getMapData = require_getMapData(); -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet$1(key) { - return getMapData$2(this, key).get(key); + /** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + + _mapCacheGet = mapCacheGet; + return _mapCacheGet; } -var _mapCacheGet = mapCacheGet$1; +var _mapCacheHas; +var hasRequired_mapCacheHas; -var getMapData$1 = _getMapData; +function require_mapCacheHas () { + if (hasRequired_mapCacheHas) return _mapCacheHas; + hasRequired_mapCacheHas = 1; + var getMapData = require_getMapData(); -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas$1(key) { - return getMapData$1(this, key).has(key); + /** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + + _mapCacheHas = mapCacheHas; + return _mapCacheHas; } -var _mapCacheHas = mapCacheHas$1; +var _mapCacheSet; +var hasRequired_mapCacheSet; -var getMapData = _getMapData; +function require_mapCacheSet () { + if (hasRequired_mapCacheSet) return _mapCacheSet; + hasRequired_mapCacheSet = 1; + var getMapData = require_getMapData(); -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet$1(key, value) { - var data = getMapData(this, key), - size = data.size; + /** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ + function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + + _mapCacheSet = mapCacheSet; + return _mapCacheSet; } -var _mapCacheSet = mapCacheSet$1; +var _MapCache; +var hasRequired_MapCache; -var mapCacheClear = _mapCacheClear, - mapCacheDelete = _mapCacheDelete, - mapCacheGet = _mapCacheGet, - mapCacheHas = _mapCacheHas, - mapCacheSet = _mapCacheSet; +function require_MapCache () { + if (hasRequired_MapCache) return _MapCache; + hasRequired_MapCache = 1; + var mapCacheClear = require_mapCacheClear(), + mapCacheDelete = require_mapCacheDelete(), + mapCacheGet = require_mapCacheGet(), + mapCacheHas = require_mapCacheHas(), + mapCacheSet = require_mapCacheSet(); -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache$2(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `MapCache`. + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + + _MapCache = MapCache; + return _MapCache; } -// Add methods to `MapCache`. -MapCache$2.prototype.clear = mapCacheClear; -MapCache$2.prototype['delete'] = mapCacheDelete; -MapCache$2.prototype.get = mapCacheGet; -MapCache$2.prototype.has = mapCacheHas; -MapCache$2.prototype.set = mapCacheSet; +var _stackSet; +var hasRequired_stackSet; -var _MapCache = MapCache$2; +function require_stackSet () { + if (hasRequired_stackSet) return _stackSet; + hasRequired_stackSet = 1; + var ListCache = require_ListCache(), + Map = _Map, + MapCache = require_MapCache(); -var ListCache$1 = _ListCache, - Map$1 = _Map, - MapCache$1 = _MapCache; + /** Used as the size to enable large array optimizations. */ + var LARGE_ARRAY_SIZE = 200; -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; + /** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet$1(key, value) { - var data = this.__data__; - if (data instanceof ListCache$1) { - var pairs = data.__data__; - if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache$1(pairs); - } - data.set(key, value); - this.size = data.size; - return this; + _stackSet = stackSet; + return _stackSet; } -var _stackSet = stackSet$1; +var _Stack; +var hasRequired_Stack; -var ListCache = _ListCache, - stackClear = _stackClear, - stackDelete = _stackDelete, - stackGet = _stackGet, - stackHas = _stackHas, - stackSet = _stackSet; +function require_Stack () { + if (hasRequired_Stack) return _Stack; + hasRequired_Stack = 1; + var ListCache = require_ListCache(), + stackClear = require_stackClear(), + stackDelete = require_stackDelete(), + stackGet = require_stackGet(), + stackHas = require_stackHas(), + stackSet = require_stackSet(); -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack$1(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; -} + /** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } -// Add methods to `Stack`. -Stack$1.prototype.clear = stackClear; -Stack$1.prototype['delete'] = stackDelete; -Stack$1.prototype.get = stackGet; -Stack$1.prototype.has = stackHas; -Stack$1.prototype.set = stackSet; + // Add methods to `Stack`. + Stack.prototype.clear = stackClear; + Stack.prototype['delete'] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; -var _Stack = Stack$1; + _Stack = Stack; + return _Stack; +} /** * This function is like @@ -14762,27 +14940,27 @@ function getAllKeysIn$1(object) { var _getAllKeysIn = getAllKeysIn$1; -var getNative$2 = require_getNative(), - root$3 = require_root(); +var getNative$2 = _getNative, + root$2 = require_root(); /* Built-in method references that are verified to be native. */ -var DataView$2 = getNative$2(root$3, 'DataView'); +var DataView$2 = getNative$2(root$2, 'DataView'); var _DataView = DataView$2; -var getNative$1 = require_getNative(), - root$2 = require_root(); +var getNative$1 = _getNative, + root$1 = require_root(); /* Built-in method references that are verified to be native. */ -var Promise$2 = getNative$1(root$2, 'Promise'); +var Promise$2 = getNative$1(root$1, 'Promise'); var _Promise = Promise$2; -var getNative = require_getNative(), - root$1 = require_root(); +var getNative = _getNative, + root = require_root(); /* Built-in method references that are verified to be native. */ -var Set$1 = getNative(root$1, 'Set'); +var Set$1 = getNative(root, 'Set'); var _Set = Set$1; @@ -14790,7 +14968,7 @@ var DataView$1 = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, - WeakMap = require_WeakMap(), + WeakMap = _WeakMap, baseGetTag$2 = _baseGetTag, toSource = _toSource; @@ -14873,14 +15051,22 @@ function initCloneArray$1(array) { var _initCloneArray = initCloneArray$1; -var root = require_root(); +var _Uint8Array; +var hasRequired_Uint8Array; -/** Built-in value references. */ -var Uint8Array$2 = root.Uint8Array; +function require_Uint8Array () { + if (hasRequired_Uint8Array) return _Uint8Array; + hasRequired_Uint8Array = 1; + var root = require_root(); -var _Uint8Array = Uint8Array$2; + /** Built-in value references. */ + var Uint8Array = root.Uint8Array; + + _Uint8Array = Uint8Array; + return _Uint8Array; +} -var Uint8Array$1 = _Uint8Array; +var Uint8Array$1 = require_Uint8Array(); /** * Creates a clone of `arrayBuffer`. @@ -15160,7 +15346,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = _Stack, +var Stack = require_Stack(), arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15610,7 +15796,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = _MapCache, + var MapCache = require_MapCache(), setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -15852,7 +16038,7 @@ function require_equalByTag () { if (hasRequired_equalByTag) return _equalByTag; hasRequired_equalByTag = 1; var Symbol = _Symbol, - Uint8Array = _Uint8Array, + Uint8Array = require_Uint8Array(), eq = eq_1, equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), @@ -16071,7 +16257,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = _Stack, + var Stack = require_Stack(), equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -16200,7 +16386,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = _Stack, + var Stack = require_Stack(), baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16421,7 +16607,7 @@ function require_isKey () { return _isKey; } -var MapCache = _MapCache; +var MapCache = require_MapCache(); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; diff --git a/dist/index.esm.js b/dist/index.esm.js index 1fe18e2..4a8b61b 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -1,9 +1,9 @@ -import React, { PureComponent, useEffect, useState } from 'react'; +import React, { PureComponent, useEffect, createContext, useContext, useState } from 'react'; import { MapContainer, TileLayer, useMap, useMapEvents, SVGOverlay } from 'react-leaflet'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; import { createRoot } from 'react-dom/client'; -import { useLeafletContext } from '@react-leaflet/core'; +import 'react-dom'; function _mergeNamespaces(n, m) { m.forEach(function (e) { @@ -10467,6 +10467,16 @@ var SetView = function SetView(_ref) { return null; }; +const LeafletContext = createContext(null); +LeafletContext.Provider; +function useLeafletContext() { + const context = useContext(LeafletContext); + if (context == null) { + throw new Error('No context provided: useLeafletContext() can only be used in a descendant of '); + } + return context; +} + L.Control.Static = L.Control.extend({ onAdd: function onAdd(map) { var container = L.DomUtil.create('div', 'leaflet-control-static leaflet-control'); @@ -10568,27 +10578,27 @@ function require_root () { return _root; } -var root$9 = require_root(); +var root$a = require_root(); /** Built-in value references. */ -var Symbol$5 = root$9.Symbol; +var Symbol$5 = root$a.Symbol; var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$8 = Object.prototype; +var objectProto$7 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$6 = objectProto$8.hasOwnProperty; +var hasOwnProperty$5 = objectProto$7.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$8.toString; +var nativeObjectToString$1 = objectProto$7.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10601,7 +10611,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$5.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10624,14 +10634,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$7 = Object.prototype; +var objectProto$6 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$7.toString; +var nativeObjectToString = objectProto$6.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -10701,15 +10711,15 @@ var _baseGetTag = baseGetTag$5; * // => false */ -function isObject$5(value) { +function isObject$6(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } -var isObject_1 = isObject$5; +var isObject_1 = isObject$6; var baseGetTag$4 = _baseGetTag, - isObject$4 = isObject_1; + isObject$5 = isObject_1; /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', @@ -10734,8 +10744,8 @@ var asyncTag = '[object AsyncFunction]', * _.isFunction(/abc/); * // => false */ -function isFunction(value) { - if (!isObject$4(value)) { +function isFunction$1(value) { + if (!isObject$5(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator @@ -10744,58 +10754,42 @@ function isFunction(value) { return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag; } -var isFunction_1 = isFunction; - -var _coreJsData; -var hasRequired_coreJsData; +var isFunction_1 = isFunction$1; -function require_coreJsData () { - if (hasRequired_coreJsData) return _coreJsData; - hasRequired_coreJsData = 1; - var root = require_root(); - - /** Used to detect overreaching core-js shims. */ - var coreJsData = root['__core-js_shared__']; - - _coreJsData = coreJsData; - return _coreJsData; -} +var root$9 = require_root(); -var _isMasked; -var hasRequired_isMasked; +/** Used to detect overreaching core-js shims. */ +var coreJsData$1 = root$9['__core-js_shared__']; -function require_isMasked () { - if (hasRequired_isMasked) return _isMasked; - hasRequired_isMasked = 1; - var coreJsData = require_coreJsData(); +var _coreJsData = coreJsData$1; - /** Used to detect methods masquerading as native. */ - var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; - }()); +var coreJsData = _coreJsData; - /** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ - function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); - } +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); - _isMasked = isMasked; - return _isMasked; +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked$1(func) { + return !!maskSrcKey && (maskSrcKey in func); } +var _isMasked = isMasked$1; + /** Used for built-in method references. */ -var funcProto$1 = Function.prototype; +var funcProto$2 = Function.prototype; /** Used to resolve the decompiled source of functions. */ -var funcToString$1 = funcProto$1.toString; +var funcToString$2 = funcProto$2.toString; /** * Converts `func` to its source code. @@ -10804,10 +10798,10 @@ var funcToString$1 = funcProto$1.toString; * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ -function toSource$1(func) { +function toSource$2(func) { if (func != null) { try { - return funcToString$1.call(func); + return funcToString$2.call(func); } catch (e) {} try { return (func + ''); @@ -10816,64 +10810,56 @@ function toSource$1(func) { return ''; } -var _toSource = toSource$1; +var _toSource = toSource$2; -var _baseIsNative; -var hasRequired_baseIsNative; +var isFunction = isFunction_1, + isMasked = _isMasked, + isObject$4 = isObject_1, + toSource$1 = _toSource; -function require_baseIsNative () { - if (hasRequired_baseIsNative) return _baseIsNative; - hasRequired_baseIsNative = 1; - var isFunction = isFunction_1, - isMasked = require_isMasked(), - isObject = isObject_1, - toSource = _toSource; - - /** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - /** Used to detect host constructors (Safari). */ - var reIsHostCtor = /^\[object .+?Constructor\]$/; +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; - /** Used for built-in method references. */ - var funcProto = Function.prototype, - objectProto = Object.prototype; +/** Used for built-in method references. */ +var funcProto$1 = Function.prototype, + objectProto$5 = Object.prototype; - /** Used to resolve the decompiled source of functions. */ - var funcToString = funcProto.toString; +/** Used to resolve the decompiled source of functions. */ +var funcToString$1 = funcProto$1.toString; - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used to check objects for own properties. */ +var hasOwnProperty$4 = objectProto$5.hasOwnProperty; - /** Used to detect if a method is native. */ - var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' - ); +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString$1.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); - /** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - - _baseIsNative = baseIsNative; - return _baseIsNative; +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative$1(value) { + if (!isObject$4(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource$1(value)); } +var _baseIsNative = baseIsNative$1; + /** * Gets the value at `key` of `object`. * @@ -10883,61 +10869,37 @@ function require_baseIsNative () { * @returns {*} Returns the property value. */ -var _getValue; -var hasRequired_getValue; - -function require_getValue () { - if (hasRequired_getValue) return _getValue; - hasRequired_getValue = 1; - function getValue(object, key) { - return object == null ? undefined : object[key]; - } - - _getValue = getValue; - return _getValue; +function getValue$1(object, key) { + return object == null ? undefined : object[key]; } -var _getNative; -var hasRequired_getNative; +var _getValue = getValue$1; -function require_getNative () { - if (hasRequired_getNative) return _getNative; - hasRequired_getNative = 1; - var baseIsNative = require_baseIsNative(), - getValue = require_getValue(); +var baseIsNative = _baseIsNative, + getValue = _getValue; - /** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; - } - - _getNative = getNative; - return _getNative; +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative$6(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; } -var _WeakMap; -var hasRequired_WeakMap; +var _getNative = getNative$6; -function require_WeakMap () { - if (hasRequired_WeakMap) return _WeakMap; - hasRequired_WeakMap = 1; - var getNative = require_getNative(), - root = require_root(); +var getNative$5 = _getNative, + root$8 = require_root(); - /* Built-in method references that are verified to be native. */ - var WeakMap = getNative(root, 'WeakMap'); +/* Built-in method references that are verified to be native. */ +var WeakMap$1 = getNative$5(root$8, 'WeakMap'); - _WeakMap = WeakMap; - return _WeakMap; -} +var _WeakMap = WeakMap$1; var _metaMap; var hasRequired_metaMap; @@ -10945,7 +10907,7 @@ var hasRequired_metaMap; function require_metaMap () { if (hasRequired_metaMap) return _metaMap; hasRequired_metaMap = 1; - var WeakMap = require_WeakMap(); + var WeakMap = _WeakMap; /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; @@ -11050,7 +11012,7 @@ function createCtor$4(Ctor) { var _createCtor = createCtor$4; var createCtor$3 = _createCtor, - root$8 = require_root(); + root$7 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$6 = 1; @@ -11070,7 +11032,7 @@ function createBind$1(func, bitmask, thisArg) { Ctor = createCtor$3(func); function wrapper() { - var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func; return fn.apply(isBind ? thisArg : this, arguments); } return wrapper; @@ -11871,25 +11833,17 @@ function requireConstant () { return constant_1; } -var _defineProperty; -var hasRequired_defineProperty; +var getNative$4 = _getNative; -function require_defineProperty () { - if (hasRequired_defineProperty) return _defineProperty; - hasRequired_defineProperty = 1; - var getNative = require_getNative(); - - var defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} - }()); +var defineProperty$1 = (function() { + try { + var func = getNative$4(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} +}()); - _defineProperty = defineProperty; - return _defineProperty; -} +var _defineProperty = defineProperty$1; var _baseSetToString; var hasRequired_baseSetToString; @@ -11898,7 +11852,7 @@ function require_baseSetToString () { if (hasRequired_baseSetToString) return _baseSetToString; hasRequired_baseSetToString = 1; var constant = requireConstant(), - defineProperty = require_defineProperty(), + defineProperty = _defineProperty, identity = requireIdentity(); /** @@ -12318,7 +12272,7 @@ var composeArgs$1 = _composeArgs, getHolder$1 = _getHolder, reorder = _reorder, replaceHolders$2 = _replaceHolders, - root$7 = require_root(); + root$6 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$3 = 1, @@ -12393,7 +12347,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight if (isAry && ary < length) { args.length = ary; } - if (this && this !== root$7 && this instanceof wrapper) { + if (this && this !== root$6 && this instanceof wrapper) { fn = Ctor || createCtor$2(fn); } return fn.apply(thisBinding, args); @@ -12409,7 +12363,7 @@ var apply$1 = require_apply(), createRecurry = _createRecurry, getHolder = _getHolder, replaceHolders$1 = _replaceHolders, - root$6 = require_root(); + root$5 = require_root(); /** * Creates a function that wraps `func` to enable currying. @@ -12442,7 +12396,7 @@ function createCurry$1(func, bitmask, arity) { func, bitmask, createHybrid$1, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } - var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; return apply$1(fn, this, args); } return wrapper; @@ -12452,7 +12406,7 @@ var _createCurry = createCurry$1; var apply = require_apply(), createCtor = _createCtor, - root$5 = require_root(); + root$4 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$2 = 1; @@ -12479,7 +12433,7 @@ function createPartial$1(func, bitmask, thisArg, partials) { leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), - fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; + fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; @@ -12938,7 +12892,7 @@ function ary(func, n, guard) { var ary_1 = ary; -var defineProperty = require_defineProperty(); +var defineProperty = _defineProperty; /** * The base implementation of `assignValue` and `assignMergeValue` without @@ -12997,20 +12951,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$2(value, other) { +function eq$1(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$2; +var eq_1 = eq$1; var baseAssignValue$1 = _baseAssignValue, - eq$1 = eq_1; + eq = eq_1; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$4 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$5 = objectProto$6.hasOwnProperty; +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -13024,7 +12978,7 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || + if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13748,184 +13702,248 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -function listCacheClear$1() { - this.__data__ = []; - this.size = 0; +var _listCacheClear; +var hasRequired_listCacheClear; + +function require_listCacheClear () { + if (hasRequired_listCacheClear) return _listCacheClear; + hasRequired_listCacheClear = 1; + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + + _listCacheClear = listCacheClear; + return _listCacheClear; } -var _listCacheClear = listCacheClear$1; +var _assocIndexOf; +var hasRequired_assocIndexOf; -var eq = eq_1; +function require_assocIndexOf () { + if (hasRequired_assocIndexOf) return _assocIndexOf; + hasRequired_assocIndexOf = 1; + var eq = eq_1; -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf$4(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + + _assocIndexOf = assocIndexOf; + return _assocIndexOf; } -var _assocIndexOf = assocIndexOf$4; +var _listCacheDelete; +var hasRequired_listCacheDelete; -var assocIndexOf$3 = _assocIndexOf; +function require_listCacheDelete () { + if (hasRequired_listCacheDelete) return _listCacheDelete; + hasRequired_listCacheDelete = 1; + var assocIndexOf = require_assocIndexOf(); -/** Used for built-in method references. */ -var arrayProto = Array.prototype; + /** Used for built-in method references. */ + var arrayProto = Array.prototype; -/** Built-in value references. */ -var splice = arrayProto.splice; + /** Built-in value references. */ + var splice = arrayProto.splice; -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete$1(key) { - var data = this.__data__, - index = assocIndexOf$3(data, key); + /** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } + + _listCacheDelete = listCacheDelete; + return _listCacheDelete; } -var _listCacheDelete = listCacheDelete$1; +var _listCacheGet; +var hasRequired_listCacheGet; -var assocIndexOf$2 = _assocIndexOf; +function require_listCacheGet () { + if (hasRequired_listCacheGet) return _listCacheGet; + hasRequired_listCacheGet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet$1(key) { - var data = this.__data__, - index = assocIndexOf$2(data, key); + /** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - return index < 0 ? undefined : data[index][1]; + return index < 0 ? undefined : data[index][1]; + } + + _listCacheGet = listCacheGet; + return _listCacheGet; } -var _listCacheGet = listCacheGet$1; +var _listCacheHas; +var hasRequired_listCacheHas; -var assocIndexOf$1 = _assocIndexOf; +function require_listCacheHas () { + if (hasRequired_listCacheHas) return _listCacheHas; + hasRequired_listCacheHas = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas$1(key) { - return assocIndexOf$1(this.__data__, key) > -1; + /** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + + _listCacheHas = listCacheHas; + return _listCacheHas; } -var _listCacheHas = listCacheHas$1; +var _listCacheSet; +var hasRequired_listCacheSet; -var assocIndexOf = _assocIndexOf; +function require_listCacheSet () { + if (hasRequired_listCacheSet) return _listCacheSet; + hasRequired_listCacheSet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet$1(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); + /** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ + function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; + _listCacheSet = listCacheSet; + return _listCacheSet; } -var _listCacheSet = listCacheSet$1; +var _ListCache; +var hasRequired_ListCache; -var listCacheClear = _listCacheClear, - listCacheDelete = _listCacheDelete, - listCacheGet = _listCacheGet, - listCacheHas = _listCacheHas, - listCacheSet = _listCacheSet; +function require_ListCache () { + if (hasRequired_ListCache) return _ListCache; + hasRequired_ListCache = 1; + var listCacheClear = require_listCacheClear(), + listCacheDelete = require_listCacheDelete(), + listCacheGet = require_listCacheGet(), + listCacheHas = require_listCacheHas(), + listCacheSet = require_listCacheSet(); -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache$4(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `ListCache`. + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + + _ListCache = ListCache; + return _ListCache; } -// Add methods to `ListCache`. -ListCache$4.prototype.clear = listCacheClear; -ListCache$4.prototype['delete'] = listCacheDelete; -ListCache$4.prototype.get = listCacheGet; -ListCache$4.prototype.has = listCacheHas; -ListCache$4.prototype.set = listCacheSet; +var _stackClear; +var hasRequired_stackClear; -var _ListCache = ListCache$4; +function require_stackClear () { + if (hasRequired_stackClear) return _stackClear; + hasRequired_stackClear = 1; + var ListCache = require_ListCache(); -var ListCache$3 = _ListCache; + /** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ + function stackClear() { + this.__data__ = new ListCache; + this.size = 0; + } -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear$1() { - this.__data__ = new ListCache$3; - this.size = 0; + _stackClear = stackClear; + return _stackClear; } -var _stackClear = stackClear$1; - /** * Removes `key` and its value from the stack. * @@ -13936,15 +13954,23 @@ var _stackClear = stackClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function stackDelete$1(key) { - var data = this.__data__, - result = data['delete'](key); +var _stackDelete; +var hasRequired_stackDelete; - this.size = data.size; - return result; -} +function require_stackDelete () { + if (hasRequired_stackDelete) return _stackDelete; + hasRequired_stackDelete = 1; + function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); -var _stackDelete = stackDelete$1; + this.size = data.size; + return result; + } + + _stackDelete = stackDelete; + return _stackDelete; +} /** * Gets the stack value for `key`. @@ -13956,11 +13982,19 @@ var _stackDelete = stackDelete$1; * @returns {*} Returns the entry value. */ -function stackGet$1(key) { - return this.__data__.get(key); -} +var _stackGet; +var hasRequired_stackGet; -var _stackGet = stackGet$1; +function require_stackGet () { + if (hasRequired_stackGet) return _stackGet; + hasRequired_stackGet = 1; + function stackGet(key) { + return this.__data__.get(key); + } + + _stackGet = stackGet; + return _stackGet; +} /** * Checks if a stack value for `key` exists. @@ -13972,42 +14006,66 @@ var _stackGet = stackGet$1; * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -function stackHas$1(key) { - return this.__data__.has(key); -} +var _stackHas; +var hasRequired_stackHas; + +function require_stackHas () { + if (hasRequired_stackHas) return _stackHas; + hasRequired_stackHas = 1; + function stackHas(key) { + return this.__data__.has(key); + } -var _stackHas = stackHas$1; + _stackHas = stackHas; + return _stackHas; +} -var getNative$4 = require_getNative(), - root$4 = require_root(); +var getNative$3 = _getNative, + root$3 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$3 = getNative$4(root$4, 'Map'); +var Map$1 = getNative$3(root$3, 'Map'); -var _Map = Map$3; +var _Map = Map$1; -var getNative$3 = require_getNative(); +var _nativeCreate; +var hasRequired_nativeCreate; -/* Built-in method references that are verified to be native. */ -var nativeCreate$4 = getNative$3(Object, 'create'); - -var _nativeCreate = nativeCreate$4; +function require_nativeCreate () { + if (hasRequired_nativeCreate) return _nativeCreate; + hasRequired_nativeCreate = 1; + var getNative = _getNative; -var nativeCreate$3 = _nativeCreate; + /* Built-in method references that are verified to be native. */ + var nativeCreate = getNative(Object, 'create'); -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear$1() { - this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; - this.size = 0; + _nativeCreate = nativeCreate; + return _nativeCreate; } -var _hashClear = hashClear$1; +var _hashClear; +var hasRequired_hashClear; + +function require_hashClear () { + if (hasRequired_hashClear) return _hashClear; + hasRequired_hashClear = 1; + var nativeCreate = require_nativeCreate(); + + /** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + + _hashClear = hashClear; + return _hashClear; +} /** * Removes `key` and its value from the hash. @@ -14020,148 +14078,196 @@ var _hashClear = hashClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function hashDelete$1(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; +var _hashDelete; +var hasRequired_hashDelete; + +function require_hashDelete () { + if (hasRequired_hashDelete) return _hashDelete; + hasRequired_hashDelete = 1; + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + + _hashDelete = hashDelete; + return _hashDelete; } -var _hashDelete = hashDelete$1; +var _hashGet; +var hasRequired_hashGet; -var nativeCreate$2 = _nativeCreate; +function require_hashGet () { + if (hasRequired_hashGet) return _hashGet; + hasRequired_hashGet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** Used for built-in method references. */ -var objectProto$5 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$5.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet$1(key) { - var data = this.__data__; - if (nativeCreate$2) { - var result = data[key]; - return result === HASH_UNDEFINED$1 ? undefined : result; - } - return hasOwnProperty$4.call(data, key) ? data[key] : undefined; + /** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; + } + + _hashGet = hashGet; + return _hashGet; } -var _hashGet = hashGet$1; +var _hashHas; +var hasRequired_hashHas; -var nativeCreate$1 = _nativeCreate; +function require_hashHas () { + if (hasRequired_hashHas) return _hashHas; + hasRequired_hashHas = 1; + var nativeCreate = require_nativeCreate(); -/** Used for built-in method references. */ -var objectProto$4 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas$1(key) { - var data = this.__data__; - return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); + /** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); + } + + _hashHas = hashHas; + return _hashHas; } -var _hashHas = hashHas$1; +var _hashSet; +var hasRequired_hashSet; -var nativeCreate = _nativeCreate; +function require_hashSet () { + if (hasRequired_hashSet) return _hashSet; + hasRequired_hashSet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet$1(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; + /** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; + } + + _hashSet = hashSet; + return _hashSet; } -var _hashSet = hashSet$1; +var _Hash; +var hasRequired_Hash; -var hashClear = _hashClear, - hashDelete = _hashDelete, - hashGet = _hashGet, - hashHas = _hashHas, - hashSet = _hashSet; +function require_Hash () { + if (hasRequired_Hash) return _Hash; + hasRequired_Hash = 1; + var hashClear = require_hashClear(), + hashDelete = require_hashDelete(), + hashGet = require_hashGet(), + hashHas = require_hashHas(), + hashSet = require_hashSet(); -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash$1(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `Hash`. + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + + _Hash = Hash; + return _Hash; } -// Add methods to `Hash`. -Hash$1.prototype.clear = hashClear; -Hash$1.prototype['delete'] = hashDelete; -Hash$1.prototype.get = hashGet; -Hash$1.prototype.has = hashHas; -Hash$1.prototype.set = hashSet; +var _mapCacheClear; +var hasRequired_mapCacheClear; -var _Hash = Hash$1; +function require_mapCacheClear () { + if (hasRequired_mapCacheClear) return _mapCacheClear; + hasRequired_mapCacheClear = 1; + var Hash = require_Hash(), + ListCache = require_ListCache(), + Map = _Map; -var Hash = _Hash, - ListCache$2 = _ListCache, - Map$2 = _Map; + /** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ + function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; + } -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear$1() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map$2 || ListCache$2), - 'string': new Hash - }; + _mapCacheClear = mapCacheClear; + return _mapCacheClear; } -var _mapCacheClear = mapCacheClear$1; - /** * Checks if `value` is suitable for use as unique object key. * @@ -14170,205 +14276,277 @@ var _mapCacheClear = mapCacheClear$1; * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -function isKeyable$1(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); +var _isKeyable; +var hasRequired_isKeyable; + +function require_isKeyable () { + if (hasRequired_isKeyable) return _isKeyable; + hasRequired_isKeyable = 1; + function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); + } + + _isKeyable = isKeyable; + return _isKeyable; } -var _isKeyable = isKeyable$1; +var _getMapData; +var hasRequired_getMapData; -var isKeyable = _isKeyable; +function require_getMapData () { + if (hasRequired_getMapData) return _getMapData; + hasRequired_getMapData = 1; + var isKeyable = require_isKeyable(); -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData$4(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; + /** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; + } + + _getMapData = getMapData; + return _getMapData; } -var _getMapData = getMapData$4; +var _mapCacheDelete; +var hasRequired_mapCacheDelete; -var getMapData$3 = _getMapData; +function require_mapCacheDelete () { + if (hasRequired_mapCacheDelete) return _mapCacheDelete; + hasRequired_mapCacheDelete = 1; + var getMapData = require_getMapData(); -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete$1(key) { - var result = getMapData$3(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; + /** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; + } + + _mapCacheDelete = mapCacheDelete; + return _mapCacheDelete; } -var _mapCacheDelete = mapCacheDelete$1; +var _mapCacheGet; +var hasRequired_mapCacheGet; -var getMapData$2 = _getMapData; +function require_mapCacheGet () { + if (hasRequired_mapCacheGet) return _mapCacheGet; + hasRequired_mapCacheGet = 1; + var getMapData = require_getMapData(); -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet$1(key) { - return getMapData$2(this, key).get(key); + /** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + + _mapCacheGet = mapCacheGet; + return _mapCacheGet; } -var _mapCacheGet = mapCacheGet$1; +var _mapCacheHas; +var hasRequired_mapCacheHas; -var getMapData$1 = _getMapData; +function require_mapCacheHas () { + if (hasRequired_mapCacheHas) return _mapCacheHas; + hasRequired_mapCacheHas = 1; + var getMapData = require_getMapData(); -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas$1(key) { - return getMapData$1(this, key).has(key); + /** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + + _mapCacheHas = mapCacheHas; + return _mapCacheHas; } -var _mapCacheHas = mapCacheHas$1; +var _mapCacheSet; +var hasRequired_mapCacheSet; -var getMapData = _getMapData; +function require_mapCacheSet () { + if (hasRequired_mapCacheSet) return _mapCacheSet; + hasRequired_mapCacheSet = 1; + var getMapData = require_getMapData(); -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet$1(key, value) { - var data = getMapData(this, key), - size = data.size; + /** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ + function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + + _mapCacheSet = mapCacheSet; + return _mapCacheSet; } -var _mapCacheSet = mapCacheSet$1; +var _MapCache; +var hasRequired_MapCache; -var mapCacheClear = _mapCacheClear, - mapCacheDelete = _mapCacheDelete, - mapCacheGet = _mapCacheGet, - mapCacheHas = _mapCacheHas, - mapCacheSet = _mapCacheSet; +function require_MapCache () { + if (hasRequired_MapCache) return _MapCache; + hasRequired_MapCache = 1; + var mapCacheClear = require_mapCacheClear(), + mapCacheDelete = require_mapCacheDelete(), + mapCacheGet = require_mapCacheGet(), + mapCacheHas = require_mapCacheHas(), + mapCacheSet = require_mapCacheSet(); -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache$2(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `MapCache`. + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + + _MapCache = MapCache; + return _MapCache; } -// Add methods to `MapCache`. -MapCache$2.prototype.clear = mapCacheClear; -MapCache$2.prototype['delete'] = mapCacheDelete; -MapCache$2.prototype.get = mapCacheGet; -MapCache$2.prototype.has = mapCacheHas; -MapCache$2.prototype.set = mapCacheSet; +var _stackSet; +var hasRequired_stackSet; -var _MapCache = MapCache$2; +function require_stackSet () { + if (hasRequired_stackSet) return _stackSet; + hasRequired_stackSet = 1; + var ListCache = require_ListCache(), + Map = _Map, + MapCache = require_MapCache(); -var ListCache$1 = _ListCache, - Map$1 = _Map, - MapCache$1 = _MapCache; + /** Used as the size to enable large array optimizations. */ + var LARGE_ARRAY_SIZE = 200; -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; + /** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet$1(key, value) { - var data = this.__data__; - if (data instanceof ListCache$1) { - var pairs = data.__data__; - if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache$1(pairs); - } - data.set(key, value); - this.size = data.size; - return this; + _stackSet = stackSet; + return _stackSet; } -var _stackSet = stackSet$1; +var _Stack; +var hasRequired_Stack; -var ListCache = _ListCache, - stackClear = _stackClear, - stackDelete = _stackDelete, - stackGet = _stackGet, - stackHas = _stackHas, - stackSet = _stackSet; +function require_Stack () { + if (hasRequired_Stack) return _Stack; + hasRequired_Stack = 1; + var ListCache = require_ListCache(), + stackClear = require_stackClear(), + stackDelete = require_stackDelete(), + stackGet = require_stackGet(), + stackHas = require_stackHas(), + stackSet = require_stackSet(); -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack$1(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; -} + /** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } -// Add methods to `Stack`. -Stack$1.prototype.clear = stackClear; -Stack$1.prototype['delete'] = stackDelete; -Stack$1.prototype.get = stackGet; -Stack$1.prototype.has = stackHas; -Stack$1.prototype.set = stackSet; + // Add methods to `Stack`. + Stack.prototype.clear = stackClear; + Stack.prototype['delete'] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; -var _Stack = Stack$1; + _Stack = Stack; + return _Stack; +} /** * This function is like @@ -14753,27 +14931,27 @@ function getAllKeysIn$1(object) { var _getAllKeysIn = getAllKeysIn$1; -var getNative$2 = require_getNative(), - root$3 = require_root(); +var getNative$2 = _getNative, + root$2 = require_root(); /* Built-in method references that are verified to be native. */ -var DataView$2 = getNative$2(root$3, 'DataView'); +var DataView$2 = getNative$2(root$2, 'DataView'); var _DataView = DataView$2; -var getNative$1 = require_getNative(), - root$2 = require_root(); +var getNative$1 = _getNative, + root$1 = require_root(); /* Built-in method references that are verified to be native. */ -var Promise$2 = getNative$1(root$2, 'Promise'); +var Promise$2 = getNative$1(root$1, 'Promise'); var _Promise = Promise$2; -var getNative = require_getNative(), - root$1 = require_root(); +var getNative = _getNative, + root = require_root(); /* Built-in method references that are verified to be native. */ -var Set$1 = getNative(root$1, 'Set'); +var Set$1 = getNative(root, 'Set'); var _Set = Set$1; @@ -14781,7 +14959,7 @@ var DataView$1 = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, - WeakMap = require_WeakMap(), + WeakMap = _WeakMap, baseGetTag$2 = _baseGetTag, toSource = _toSource; @@ -14864,14 +15042,22 @@ function initCloneArray$1(array) { var _initCloneArray = initCloneArray$1; -var root = require_root(); +var _Uint8Array; +var hasRequired_Uint8Array; -/** Built-in value references. */ -var Uint8Array$2 = root.Uint8Array; +function require_Uint8Array () { + if (hasRequired_Uint8Array) return _Uint8Array; + hasRequired_Uint8Array = 1; + var root = require_root(); -var _Uint8Array = Uint8Array$2; + /** Built-in value references. */ + var Uint8Array = root.Uint8Array; + + _Uint8Array = Uint8Array; + return _Uint8Array; +} -var Uint8Array$1 = _Uint8Array; +var Uint8Array$1 = require_Uint8Array(); /** * Creates a clone of `arrayBuffer`. @@ -15151,7 +15337,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = _Stack, +var Stack = require_Stack(), arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15601,7 +15787,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = _MapCache, + var MapCache = require_MapCache(), setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -15843,7 +16029,7 @@ function require_equalByTag () { if (hasRequired_equalByTag) return _equalByTag; hasRequired_equalByTag = 1; var Symbol = _Symbol, - Uint8Array = _Uint8Array, + Uint8Array = require_Uint8Array(), eq = eq_1, equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), @@ -16062,7 +16248,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = _Stack, + var Stack = require_Stack(), equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -16191,7 +16377,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = _Stack, + var Stack = require_Stack(), baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16412,7 +16598,7 @@ function require_isKey () { return _isKey; } -var MapCache = _MapCache; +var MapCache = require_MapCache(); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; diff --git a/package-lock.json b/package-lock.json index 174a499..94b9b61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,11 +33,10 @@ "rollup-plugin-peer-deps-external": "^2.2.4" }, "peerDependencies": { - "@react-leaflet/core": "2.0.0", "leaflet": "^1.8.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-leaflet": "4.0.0" + "react-leaflet": "^4.2.1" } }, "node_modules/@ampproject/remapping": { @@ -3009,12 +3008,12 @@ } }, "node_modules/@react-leaflet/core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.0.0.tgz", - "integrity": "sha512-SQQ5DCQIaLzvslN6wCXs5OWqtlvk1Ubv2n5d7zTM8SDl9hM5Rr2wVy7/nOCIY958D75/ovhq6ZoSvT7GLCX6sg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.1.0.tgz", + "integrity": "sha512-Qk7Pfu8BSarKGqILj4x7bCSZ1pjuAPZ+qmRwH5S7mDS91VSbVVsJSrW4qA+GPrro8t69gFYVMWb1Zc4yFmPiVg==", "peer": true, "peerDependencies": { - "leaflet": "^1.8.0", + "leaflet": "^1.9.0", "react": "^18.0.0", "react-dom": "^18.0.0" } @@ -11911,9 +11910,9 @@ } }, "node_modules/leaflet": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.8.0.tgz", - "integrity": "sha512-gwhMjFCQiYs3x/Sf+d49f10ERXaEFCPr+nVTryhAW8DWbMGqJqt9G4XuIaHmFW08zYvhgdzqXGr8AlW8v8dQkA==", + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz", + "integrity": "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==", "peer": true }, "node_modules/leven": { @@ -14699,15 +14698,15 @@ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "node_modules/react-leaflet": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/react-leaflet/-/react-leaflet-4.0.0.tgz", - "integrity": "sha512-qJJvoCNe12XHSWVUwhXYmMObPoSYy8h/hn0aDNvcBuq3O8zmVI5S2RdabhaDg/iWMCJ2jbCWZWtIU5VtztO9sg==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/react-leaflet/-/react-leaflet-4.2.1.tgz", + "integrity": "sha512-p9chkvhcKrWn/H/1FFeVSqLdReGwn2qmiobOQGO3BifX+/vV/39qhY8dGqbdcPh1e6jxh/QHriLXr7a4eLFK4Q==", "peer": true, "dependencies": { - "@react-leaflet/core": "^2.0.0" + "@react-leaflet/core": "^2.1.0" }, "peerDependencies": { - "leaflet": "^1.8.0", + "leaflet": "^1.9.0", "react": "^18.0.0", "react-dom": "^18.0.0" } @@ -19662,9 +19661,9 @@ } }, "@react-leaflet/core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.0.0.tgz", - "integrity": "sha512-SQQ5DCQIaLzvslN6wCXs5OWqtlvk1Ubv2n5d7zTM8SDl9hM5Rr2wVy7/nOCIY958D75/ovhq6ZoSvT7GLCX6sg==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.1.0.tgz", + "integrity": "sha512-Qk7Pfu8BSarKGqILj4x7bCSZ1pjuAPZ+qmRwH5S7mDS91VSbVVsJSrW4qA+GPrro8t69gFYVMWb1Zc4yFmPiVg==", "peer": true, "requires": {} }, @@ -26138,9 +26137,9 @@ } }, "leaflet": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.8.0.tgz", - "integrity": "sha512-gwhMjFCQiYs3x/Sf+d49f10ERXaEFCPr+nVTryhAW8DWbMGqJqt9G4XuIaHmFW08zYvhgdzqXGr8AlW8v8dQkA==", + "version": "1.9.4", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.9.4.tgz", + "integrity": "sha512-nxS1ynzJOmOlHp+iL3FyWqK89GtNL8U8rvlMOsQdTTssxZwCXh8N2NB3GDQOL+YR3XnWyZAxwQixURb+FA74PA==", "peer": true }, "leven": { @@ -28005,12 +28004,12 @@ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==" }, "react-leaflet": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/react-leaflet/-/react-leaflet-4.0.0.tgz", - "integrity": "sha512-qJJvoCNe12XHSWVUwhXYmMObPoSYy8h/hn0aDNvcBuq3O8zmVI5S2RdabhaDg/iWMCJ2jbCWZWtIU5VtztO9sg==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/react-leaflet/-/react-leaflet-4.2.1.tgz", + "integrity": "sha512-p9chkvhcKrWn/H/1FFeVSqLdReGwn2qmiobOQGO3BifX+/vV/39qhY8dGqbdcPh1e6jxh/QHriLXr7a4eLFK4Q==", "peer": true, "requires": { - "@react-leaflet/core": "^2.0.0" + "@react-leaflet/core": "^2.1.0" } }, "react-refresh": { diff --git a/package.json b/package.json index 6f52611..cef83d8 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "rollup-plugin-peer-deps-external": "^2.2.4" }, "peerDependencies": { - "@react-leaflet/core": "2.0.0", "leaflet": "^1.8.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/playground/package-lock.json b/playground/package-lock.json index e7076c9..f37ad1c 100644 --- a/playground/package-lock.json +++ b/playground/package-lock.json @@ -51,11 +51,10 @@ "rollup-plugin-peer-deps-external": "^2.2.4" }, "peerDependencies": { - "@react-leaflet/core": "2.0.0", "leaflet": "^1.8.0", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-leaflet": "4.0.0" + "react-leaflet": "^4.2.1" } }, "../node_modules/react": { From 5aa0b76779940b0dcd0718c3e7fa2b2c0081e894 Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 13:39:41 -0700 Subject: [PATCH 3/9] Build project --- dist/index.cjs.js | 346 ++++++++++++++++++++++++++-------------------- dist/index.esm.js | 346 ++++++++++++++++++++++++++-------------------- 2 files changed, 394 insertions(+), 298 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 48cf5e4..26dc28c 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -10587,27 +10587,27 @@ function require_root () { return _root; } -var root$a = require_root(); +var root$9 = require_root(); /** Built-in value references. */ -var Symbol$5 = root$a.Symbol; +var Symbol$5 = root$9.Symbol; var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$7 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$5 = objectProto$7.hasOwnProperty; +var hasOwnProperty$4 = objectProto$6.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$7.toString; +var nativeObjectToString$1 = objectProto$6.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10620,7 +10620,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$5.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10643,14 +10643,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$5 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$6.toString; +var nativeObjectToString = objectProto$5.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -10720,15 +10720,15 @@ var _baseGetTag = baseGetTag$5; * // => false */ -function isObject$6(value) { +function isObject$5(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } -var isObject_1 = isObject$6; +var isObject_1 = isObject$5; var baseGetTag$4 = _baseGetTag, - isObject$5 = isObject_1; + isObject$4 = isObject_1; /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', @@ -10753,8 +10753,8 @@ var asyncTag = '[object AsyncFunction]', * _.isFunction(/abc/); * // => false */ -function isFunction$1(value) { - if (!isObject$5(value)) { +function isFunction(value) { + if (!isObject$4(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator @@ -10763,42 +10763,58 @@ function isFunction$1(value) { return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag; } -var isFunction_1 = isFunction$1; +var isFunction_1 = isFunction; -var root$9 = require_root(); +var _coreJsData; +var hasRequired_coreJsData; -/** Used to detect overreaching core-js shims. */ -var coreJsData$1 = root$9['__core-js_shared__']; +function require_coreJsData () { + if (hasRequired_coreJsData) return _coreJsData; + hasRequired_coreJsData = 1; + var root = require_root(); -var _coreJsData = coreJsData$1; + /** Used to detect overreaching core-js shims. */ + var coreJsData = root['__core-js_shared__']; -var coreJsData = _coreJsData; + _coreJsData = coreJsData; + return _coreJsData; +} -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); +var _isMasked; +var hasRequired_isMasked; -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked$1(func) { - return !!maskSrcKey && (maskSrcKey in func); -} +function require_isMasked () { + if (hasRequired_isMasked) return _isMasked; + hasRequired_isMasked = 1; + var coreJsData = require_coreJsData(); -var _isMasked = isMasked$1; + /** Used to detect methods masquerading as native. */ + var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; + }()); + + /** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ + function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); + } + + _isMasked = isMasked; + return _isMasked; +} /** Used for built-in method references. */ -var funcProto$2 = Function.prototype; +var funcProto$1 = Function.prototype; /** Used to resolve the decompiled source of functions. */ -var funcToString$2 = funcProto$2.toString; +var funcToString$1 = funcProto$1.toString; /** * Converts `func` to its source code. @@ -10807,10 +10823,10 @@ var funcToString$2 = funcProto$2.toString; * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ -function toSource$2(func) { +function toSource$1(func) { if (func != null) { try { - return funcToString$2.call(func); + return funcToString$1.call(func); } catch (e) {} try { return (func + ''); @@ -10819,55 +10835,63 @@ function toSource$2(func) { return ''; } -var _toSource = toSource$2; +var _toSource = toSource$1; -var isFunction = isFunction_1, - isMasked = _isMasked, - isObject$4 = isObject_1, - toSource$1 = _toSource; +var _baseIsNative; +var hasRequired_baseIsNative; -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +function require_baseIsNative () { + if (hasRequired_baseIsNative) return _baseIsNative; + hasRequired_baseIsNative = 1; + var isFunction = isFunction_1, + isMasked = require_isMasked(), + isObject = isObject_1, + toSource = _toSource; -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; + /** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -/** Used for built-in method references. */ -var funcProto$1 = Function.prototype, - objectProto$5 = Object.prototype; + /** Used to detect host constructors (Safari). */ + var reIsHostCtor = /^\[object .+?Constructor\]$/; -/** Used to resolve the decompiled source of functions. */ -var funcToString$1 = funcProto$1.toString; + /** Used for built-in method references. */ + var funcProto = Function.prototype, + objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$5.hasOwnProperty; + /** Used to resolve the decompiled source of functions. */ + var funcToString = funcProto.toString; -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString$1.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative$1(value) { - if (!isObject$4(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource$1(value)); -} + /** Used to detect if a method is native. */ + var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' + ); -var _baseIsNative = baseIsNative$1; + /** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + + _baseIsNative = baseIsNative; + return _baseIsNative; +} /** * Gets the value at `key` of `object`. @@ -10878,37 +10902,61 @@ var _baseIsNative = baseIsNative$1; * @returns {*} Returns the property value. */ -function getValue$1(object, key) { - return object == null ? undefined : object[key]; +var _getValue; +var hasRequired_getValue; + +function require_getValue () { + if (hasRequired_getValue) return _getValue; + hasRequired_getValue = 1; + function getValue(object, key) { + return object == null ? undefined : object[key]; + } + + _getValue = getValue; + return _getValue; } -var _getValue = getValue$1; +var _getNative; +var hasRequired_getNative; -var baseIsNative = _baseIsNative, - getValue = _getValue; +function require_getNative () { + if (hasRequired_getNative) return _getNative; + hasRequired_getNative = 1; + var baseIsNative = require_baseIsNative(), + getValue = require_getValue(); -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative$6(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; + /** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; + } + + _getNative = getNative; + return _getNative; } -var _getNative = getNative$6; +var _WeakMap; +var hasRequired_WeakMap; -var getNative$5 = _getNative, - root$8 = require_root(); +function require_WeakMap () { + if (hasRequired_WeakMap) return _WeakMap; + hasRequired_WeakMap = 1; + var getNative = require_getNative(), + root = require_root(); -/* Built-in method references that are verified to be native. */ -var WeakMap$1 = getNative$5(root$8, 'WeakMap'); + /* Built-in method references that are verified to be native. */ + var WeakMap = getNative(root, 'WeakMap'); -var _WeakMap = WeakMap$1; + _WeakMap = WeakMap; + return _WeakMap; +} var _metaMap; var hasRequired_metaMap; @@ -10916,7 +10964,7 @@ var hasRequired_metaMap; function require_metaMap () { if (hasRequired_metaMap) return _metaMap; hasRequired_metaMap = 1; - var WeakMap = _WeakMap; + var WeakMap = require_WeakMap(); /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; @@ -11021,7 +11069,7 @@ function createCtor$4(Ctor) { var _createCtor = createCtor$4; var createCtor$3 = _createCtor, - root$7 = require_root(); + root$8 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$6 = 1; @@ -11041,7 +11089,7 @@ function createBind$1(func, bitmask, thisArg) { Ctor = createCtor$3(func); function wrapper() { - var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func; return fn.apply(isBind ? thisArg : this, arguments); } return wrapper; @@ -11842,17 +11890,25 @@ function requireConstant () { return constant_1; } -var getNative$4 = _getNative; +var _defineProperty; +var hasRequired_defineProperty; -var defineProperty$1 = (function() { - try { - var func = getNative$4(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} -}()); +function require_defineProperty () { + if (hasRequired_defineProperty) return _defineProperty; + hasRequired_defineProperty = 1; + var getNative = require_getNative(); -var _defineProperty = defineProperty$1; + var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} + }()); + + _defineProperty = defineProperty; + return _defineProperty; +} var _baseSetToString; var hasRequired_baseSetToString; @@ -11861,7 +11917,7 @@ function require_baseSetToString () { if (hasRequired_baseSetToString) return _baseSetToString; hasRequired_baseSetToString = 1; var constant = requireConstant(), - defineProperty = _defineProperty, + defineProperty = require_defineProperty(), identity = requireIdentity(); /** @@ -12281,7 +12337,7 @@ var composeArgs$1 = _composeArgs, getHolder$1 = _getHolder, reorder = _reorder, replaceHolders$2 = _replaceHolders, - root$6 = require_root(); + root$7 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$3 = 1, @@ -12356,7 +12412,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight if (isAry && ary < length) { args.length = ary; } - if (this && this !== root$6 && this instanceof wrapper) { + if (this && this !== root$7 && this instanceof wrapper) { fn = Ctor || createCtor$2(fn); } return fn.apply(thisBinding, args); @@ -12372,7 +12428,7 @@ var apply$1 = require_apply(), createRecurry = _createRecurry, getHolder = _getHolder, replaceHolders$1 = _replaceHolders, - root$5 = require_root(); + root$6 = require_root(); /** * Creates a function that wraps `func` to enable currying. @@ -12405,7 +12461,7 @@ function createCurry$1(func, bitmask, arity) { func, bitmask, createHybrid$1, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } - var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func; return apply$1(fn, this, args); } return wrapper; @@ -12415,7 +12471,7 @@ var _createCurry = createCurry$1; var apply = require_apply(), createCtor = _createCtor, - root$4 = require_root(); + root$5 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$2 = 1; @@ -12442,7 +12498,7 @@ function createPartial$1(func, bitmask, thisArg, partials) { leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), - fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func; + fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; @@ -12901,7 +12957,7 @@ function ary(func, n, guard) { var ary_1 = ary; -var defineProperty = _defineProperty; +var defineProperty = require_defineProperty(); /** * The base implementation of `assignValue` and `assignMergeValue` without @@ -14029,11 +14085,11 @@ function require_stackHas () { return _stackHas; } -var getNative$3 = _getNative, - root$3 = require_root(); +var getNative$3 = require_getNative(), + root$4 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$1 = getNative$3(root$3, 'Map'); +var Map$1 = getNative$3(root$4, 'Map'); var _Map = Map$1; @@ -14043,7 +14099,7 @@ var hasRequired_nativeCreate; function require_nativeCreate () { if (hasRequired_nativeCreate) return _nativeCreate; hasRequired_nativeCreate = 1; - var getNative = _getNative; + var getNative = require_getNative(); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); @@ -14940,27 +14996,27 @@ function getAllKeysIn$1(object) { var _getAllKeysIn = getAllKeysIn$1; -var getNative$2 = _getNative, - root$2 = require_root(); +var getNative$2 = require_getNative(), + root$3 = require_root(); /* Built-in method references that are verified to be native. */ -var DataView$2 = getNative$2(root$2, 'DataView'); +var DataView$2 = getNative$2(root$3, 'DataView'); var _DataView = DataView$2; -var getNative$1 = _getNative, - root$1 = require_root(); +var getNative$1 = require_getNative(), + root$2 = require_root(); /* Built-in method references that are verified to be native. */ -var Promise$2 = getNative$1(root$1, 'Promise'); +var Promise$2 = getNative$1(root$2, 'Promise'); var _Promise = Promise$2; -var getNative = _getNative, - root = require_root(); +var getNative = require_getNative(), + root$1 = require_root(); /* Built-in method references that are verified to be native. */ -var Set$1 = getNative(root, 'Set'); +var Set$1 = getNative(root$1, 'Set'); var _Set = Set$1; @@ -14968,7 +15024,7 @@ var DataView$1 = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, - WeakMap = _WeakMap, + WeakMap = require_WeakMap(), baseGetTag$2 = _baseGetTag, toSource = _toSource; @@ -15051,22 +15107,14 @@ function initCloneArray$1(array) { var _initCloneArray = initCloneArray$1; -var _Uint8Array; -var hasRequired_Uint8Array; - -function require_Uint8Array () { - if (hasRequired_Uint8Array) return _Uint8Array; - hasRequired_Uint8Array = 1; - var root = require_root(); +var root = require_root(); - /** Built-in value references. */ - var Uint8Array = root.Uint8Array; +/** Built-in value references. */ +var Uint8Array$2 = root.Uint8Array; - _Uint8Array = Uint8Array; - return _Uint8Array; -} +var _Uint8Array = Uint8Array$2; -var Uint8Array$1 = require_Uint8Array(); +var Uint8Array$1 = _Uint8Array; /** * Creates a clone of `arrayBuffer`. @@ -16038,7 +16086,7 @@ function require_equalByTag () { if (hasRequired_equalByTag) return _equalByTag; hasRequired_equalByTag = 1; var Symbol = _Symbol, - Uint8Array = require_Uint8Array(), + Uint8Array = _Uint8Array, eq = eq_1, equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), diff --git a/dist/index.esm.js b/dist/index.esm.js index 4a8b61b..e8d682f 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -10578,27 +10578,27 @@ function require_root () { return _root; } -var root$a = require_root(); +var root$9 = require_root(); /** Built-in value references. */ -var Symbol$5 = root$a.Symbol; +var Symbol$5 = root$9.Symbol; var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$7 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$5 = objectProto$7.hasOwnProperty; +var hasOwnProperty$4 = objectProto$6.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$7.toString; +var nativeObjectToString$1 = objectProto$6.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10611,7 +10611,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$5.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10634,14 +10634,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$5 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$6.toString; +var nativeObjectToString = objectProto$5.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -10711,15 +10711,15 @@ var _baseGetTag = baseGetTag$5; * // => false */ -function isObject$6(value) { +function isObject$5(value) { var type = typeof value; return value != null && (type == 'object' || type == 'function'); } -var isObject_1 = isObject$6; +var isObject_1 = isObject$5; var baseGetTag$4 = _baseGetTag, - isObject$5 = isObject_1; + isObject$4 = isObject_1; /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', @@ -10744,8 +10744,8 @@ var asyncTag = '[object AsyncFunction]', * _.isFunction(/abc/); * // => false */ -function isFunction$1(value) { - if (!isObject$5(value)) { +function isFunction(value) { + if (!isObject$4(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator @@ -10754,42 +10754,58 @@ function isFunction$1(value) { return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag; } -var isFunction_1 = isFunction$1; +var isFunction_1 = isFunction; -var root$9 = require_root(); +var _coreJsData; +var hasRequired_coreJsData; -/** Used to detect overreaching core-js shims. */ -var coreJsData$1 = root$9['__core-js_shared__']; +function require_coreJsData () { + if (hasRequired_coreJsData) return _coreJsData; + hasRequired_coreJsData = 1; + var root = require_root(); -var _coreJsData = coreJsData$1; + /** Used to detect overreaching core-js shims. */ + var coreJsData = root['__core-js_shared__']; -var coreJsData = _coreJsData; + _coreJsData = coreJsData; + return _coreJsData; +} -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); +var _isMasked; +var hasRequired_isMasked; -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked$1(func) { - return !!maskSrcKey && (maskSrcKey in func); -} +function require_isMasked () { + if (hasRequired_isMasked) return _isMasked; + hasRequired_isMasked = 1; + var coreJsData = require_coreJsData(); -var _isMasked = isMasked$1; + /** Used to detect methods masquerading as native. */ + var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; + }()); + + /** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ + function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); + } + + _isMasked = isMasked; + return _isMasked; +} /** Used for built-in method references. */ -var funcProto$2 = Function.prototype; +var funcProto$1 = Function.prototype; /** Used to resolve the decompiled source of functions. */ -var funcToString$2 = funcProto$2.toString; +var funcToString$1 = funcProto$1.toString; /** * Converts `func` to its source code. @@ -10798,10 +10814,10 @@ var funcToString$2 = funcProto$2.toString; * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ -function toSource$2(func) { +function toSource$1(func) { if (func != null) { try { - return funcToString$2.call(func); + return funcToString$1.call(func); } catch (e) {} try { return (func + ''); @@ -10810,55 +10826,63 @@ function toSource$2(func) { return ''; } -var _toSource = toSource$2; +var _toSource = toSource$1; -var isFunction = isFunction_1, - isMasked = _isMasked, - isObject$4 = isObject_1, - toSource$1 = _toSource; +var _baseIsNative; +var hasRequired_baseIsNative; -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +function require_baseIsNative () { + if (hasRequired_baseIsNative) return _baseIsNative; + hasRequired_baseIsNative = 1; + var isFunction = isFunction_1, + isMasked = require_isMasked(), + isObject = isObject_1, + toSource = _toSource; -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; + /** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; -/** Used for built-in method references. */ -var funcProto$1 = Function.prototype, - objectProto$5 = Object.prototype; + /** Used to detect host constructors (Safari). */ + var reIsHostCtor = /^\[object .+?Constructor\]$/; -/** Used to resolve the decompiled source of functions. */ -var funcToString$1 = funcProto$1.toString; + /** Used for built-in method references. */ + var funcProto = Function.prototype, + objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$5.hasOwnProperty; + /** Used to resolve the decompiled source of functions. */ + var funcToString = funcProto.toString; -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString$1.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative$1(value) { - if (!isObject$4(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource$1(value)); -} + /** Used to detect if a method is native. */ + var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' + ); -var _baseIsNative = baseIsNative$1; + /** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ + function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = isFunction(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); + } + + _baseIsNative = baseIsNative; + return _baseIsNative; +} /** * Gets the value at `key` of `object`. @@ -10869,37 +10893,61 @@ var _baseIsNative = baseIsNative$1; * @returns {*} Returns the property value. */ -function getValue$1(object, key) { - return object == null ? undefined : object[key]; +var _getValue; +var hasRequired_getValue; + +function require_getValue () { + if (hasRequired_getValue) return _getValue; + hasRequired_getValue = 1; + function getValue(object, key) { + return object == null ? undefined : object[key]; + } + + _getValue = getValue; + return _getValue; } -var _getValue = getValue$1; +var _getNative; +var hasRequired_getNative; -var baseIsNative = _baseIsNative, - getValue = _getValue; +function require_getNative () { + if (hasRequired_getNative) return _getNative; + hasRequired_getNative = 1; + var baseIsNative = require_baseIsNative(), + getValue = require_getValue(); -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative$6(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; + /** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ + function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; + } + + _getNative = getNative; + return _getNative; } -var _getNative = getNative$6; +var _WeakMap; +var hasRequired_WeakMap; -var getNative$5 = _getNative, - root$8 = require_root(); +function require_WeakMap () { + if (hasRequired_WeakMap) return _WeakMap; + hasRequired_WeakMap = 1; + var getNative = require_getNative(), + root = require_root(); -/* Built-in method references that are verified to be native. */ -var WeakMap$1 = getNative$5(root$8, 'WeakMap'); + /* Built-in method references that are verified to be native. */ + var WeakMap = getNative(root, 'WeakMap'); -var _WeakMap = WeakMap$1; + _WeakMap = WeakMap; + return _WeakMap; +} var _metaMap; var hasRequired_metaMap; @@ -10907,7 +10955,7 @@ var hasRequired_metaMap; function require_metaMap () { if (hasRequired_metaMap) return _metaMap; hasRequired_metaMap = 1; - var WeakMap = _WeakMap; + var WeakMap = require_WeakMap(); /** Used to store function metadata. */ var metaMap = WeakMap && new WeakMap; @@ -11012,7 +11060,7 @@ function createCtor$4(Ctor) { var _createCtor = createCtor$4; var createCtor$3 = _createCtor, - root$7 = require_root(); + root$8 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$6 = 1; @@ -11032,7 +11080,7 @@ function createBind$1(func, bitmask, thisArg) { Ctor = createCtor$3(func); function wrapper() { - var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func; return fn.apply(isBind ? thisArg : this, arguments); } return wrapper; @@ -11833,17 +11881,25 @@ function requireConstant () { return constant_1; } -var getNative$4 = _getNative; +var _defineProperty; +var hasRequired_defineProperty; -var defineProperty$1 = (function() { - try { - var func = getNative$4(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} -}()); +function require_defineProperty () { + if (hasRequired_defineProperty) return _defineProperty; + hasRequired_defineProperty = 1; + var getNative = require_getNative(); -var _defineProperty = defineProperty$1; + var defineProperty = (function() { + try { + var func = getNative(Object, 'defineProperty'); + func({}, '', {}); + return func; + } catch (e) {} + }()); + + _defineProperty = defineProperty; + return _defineProperty; +} var _baseSetToString; var hasRequired_baseSetToString; @@ -11852,7 +11908,7 @@ function require_baseSetToString () { if (hasRequired_baseSetToString) return _baseSetToString; hasRequired_baseSetToString = 1; var constant = requireConstant(), - defineProperty = _defineProperty, + defineProperty = require_defineProperty(), identity = requireIdentity(); /** @@ -12272,7 +12328,7 @@ var composeArgs$1 = _composeArgs, getHolder$1 = _getHolder, reorder = _reorder, replaceHolders$2 = _replaceHolders, - root$6 = require_root(); + root$7 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$3 = 1, @@ -12347,7 +12403,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight if (isAry && ary < length) { args.length = ary; } - if (this && this !== root$6 && this instanceof wrapper) { + if (this && this !== root$7 && this instanceof wrapper) { fn = Ctor || createCtor$2(fn); } return fn.apply(thisBinding, args); @@ -12363,7 +12419,7 @@ var apply$1 = require_apply(), createRecurry = _createRecurry, getHolder = _getHolder, replaceHolders$1 = _replaceHolders, - root$5 = require_root(); + root$6 = require_root(); /** * Creates a function that wraps `func` to enable currying. @@ -12396,7 +12452,7 @@ function createCurry$1(func, bitmask, arity) { func, bitmask, createHybrid$1, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } - var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func; return apply$1(fn, this, args); } return wrapper; @@ -12406,7 +12462,7 @@ var _createCurry = createCurry$1; var apply = require_apply(), createCtor = _createCtor, - root$4 = require_root(); + root$5 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$2 = 1; @@ -12433,7 +12489,7 @@ function createPartial$1(func, bitmask, thisArg, partials) { leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), - fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func; + fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; @@ -12892,7 +12948,7 @@ function ary(func, n, guard) { var ary_1 = ary; -var defineProperty = _defineProperty; +var defineProperty = require_defineProperty(); /** * The base implementation of `assignValue` and `assignMergeValue` without @@ -14020,11 +14076,11 @@ function require_stackHas () { return _stackHas; } -var getNative$3 = _getNative, - root$3 = require_root(); +var getNative$3 = require_getNative(), + root$4 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$1 = getNative$3(root$3, 'Map'); +var Map$1 = getNative$3(root$4, 'Map'); var _Map = Map$1; @@ -14034,7 +14090,7 @@ var hasRequired_nativeCreate; function require_nativeCreate () { if (hasRequired_nativeCreate) return _nativeCreate; hasRequired_nativeCreate = 1; - var getNative = _getNative; + var getNative = require_getNative(); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); @@ -14931,27 +14987,27 @@ function getAllKeysIn$1(object) { var _getAllKeysIn = getAllKeysIn$1; -var getNative$2 = _getNative, - root$2 = require_root(); +var getNative$2 = require_getNative(), + root$3 = require_root(); /* Built-in method references that are verified to be native. */ -var DataView$2 = getNative$2(root$2, 'DataView'); +var DataView$2 = getNative$2(root$3, 'DataView'); var _DataView = DataView$2; -var getNative$1 = _getNative, - root$1 = require_root(); +var getNative$1 = require_getNative(), + root$2 = require_root(); /* Built-in method references that are verified to be native. */ -var Promise$2 = getNative$1(root$1, 'Promise'); +var Promise$2 = getNative$1(root$2, 'Promise'); var _Promise = Promise$2; -var getNative = _getNative, - root = require_root(); +var getNative = require_getNative(), + root$1 = require_root(); /* Built-in method references that are verified to be native. */ -var Set$1 = getNative(root, 'Set'); +var Set$1 = getNative(root$1, 'Set'); var _Set = Set$1; @@ -14959,7 +15015,7 @@ var DataView$1 = _DataView, Map = _Map, Promise$1 = _Promise, Set = _Set, - WeakMap = _WeakMap, + WeakMap = require_WeakMap(), baseGetTag$2 = _baseGetTag, toSource = _toSource; @@ -15042,22 +15098,14 @@ function initCloneArray$1(array) { var _initCloneArray = initCloneArray$1; -var _Uint8Array; -var hasRequired_Uint8Array; - -function require_Uint8Array () { - if (hasRequired_Uint8Array) return _Uint8Array; - hasRequired_Uint8Array = 1; - var root = require_root(); +var root = require_root(); - /** Built-in value references. */ - var Uint8Array = root.Uint8Array; +/** Built-in value references. */ +var Uint8Array$2 = root.Uint8Array; - _Uint8Array = Uint8Array; - return _Uint8Array; -} +var _Uint8Array = Uint8Array$2; -var Uint8Array$1 = require_Uint8Array(); +var Uint8Array$1 = _Uint8Array; /** * Creates a clone of `arrayBuffer`. @@ -16029,7 +16077,7 @@ function require_equalByTag () { if (hasRequired_equalByTag) return _equalByTag; hasRequired_equalByTag = 1; var Symbol = _Symbol, - Uint8Array = require_Uint8Array(), + Uint8Array = _Uint8Array, eq = eq_1, equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), From 246bd7c6bae345a5295f526c5c3dac7058f9f093 Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 13:44:49 -0700 Subject: [PATCH 4/9] Update @babel/core dep to remove vuln --- dist/index.cjs.js | 1749 ++++++++++++---------------------- dist/index.esm.js | 1749 ++++++++++++---------------------- package-lock.json | 711 +++++++------- package.json | 2 +- playground/package-lock.json | 4 +- 5 files changed, 1625 insertions(+), 2590 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 26dc28c..0e10648 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -29,265 +29,36 @@ function _mergeNamespaces(n, m) { var React__default = /*#__PURE__*/_interopDefaultLegacy(React); var L__default = /*#__PURE__*/_interopDefaultLegacy(L); -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - - return keys; -} - -function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - _defineProperty$1(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - - return target; -} - -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a 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); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} - -function _defineProperty$1(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; +function _defineProperty$1(e, r, t) { + return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; } - function _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - return _extends.apply(this, arguments); -} - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} - -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} - -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} - -function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; - - try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - return true; - } catch (e) { - return false; - } -} - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - - var target = _objectWithoutPropertiesLoose(source, excluded); - - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; -} - -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -function _possibleConstructorReturn(self, call) { - if (call && (typeof call === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - - return _assertThisInitialized(self); -} - -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); + return _extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } - - return _possibleConstructorReturn(this, result); - }; -} - -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); + return n; + }, _extends.apply(null, arguments); } - -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -function _iterableToArrayLimit(arr, i) { - var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; - - if (_i == null) return; - var _arr = []; - var _n = true; - var _d = false; - - var _s, _e; - - try { - for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } +function _toPrimitive(t, r) { + if ("object" != typeof t || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != typeof i) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); } - - return _arr; + return ("string" === r ? String : Number)(t); } - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} - -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - - return arr2; -} - -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == typeof i ? i : i + ""; } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; @@ -10182,7 +9953,10 @@ var _baseConvert = baseConvert$1; var _ = lodash_min.exports.runInContext(); var fp = _baseConvert(_, _); -var pixelWidth = 0.00028; // Compute resolutions from CRS info and tile matrix parameters. +// From OGC Standard +const pixelWidth = 0.00028; + +// Compute resolutions from CRS info and tile matrix parameters. // // The user must supply one of `scaleDenominator` or // `metersPerUnit`, `tileMatrixMinX`, `tileMatrixMaxX`, and `tileWidth` or @@ -10194,41 +9968,41 @@ var pixelWidth = 0.00028; // Compute resolutions from CRS info and tile matrix p // value can be derived, in our particular case from fundamental information // about the tileset, namely its extents or bounds. (For details, see // https://github.com/pacificclimate/pcic-react-leaflet-components/issues/1#issuecomment-818194664) - function resolutions(_ref) { - var metersPerUnit = _ref.metersPerUnit, - scaleDenominator = _ref.scaleDenominator, - tileMatrixMinX = _ref.tileMatrixMinX, - tileMatrixMaxX = _ref.tileMatrixMaxX, - tileWidth = _ref.tileWidth, - tileMatrixMinY = _ref.tileMatrixMinY, - tileMatrixMaxY = _ref.tileMatrixMaxY, - tileHeight = _ref.tileHeight, - numResolutions = _ref.numResolutions; - var maxResolution; - + let { + metersPerUnit, + scaleDenominator, + tileMatrixMinX, + tileMatrixMaxX, + tileWidth, + tileMatrixMinY, + tileMatrixMaxY, + tileHeight, + numResolutions + } = _ref; + let maxResolution; if (!fp.isUndefined(scaleDenominator)) { maxResolution = scaleDenominator * pixelWidth; } else { - var pixelSpan = !fp.isUndefined(tileMatrixMinX) ? (tileMatrixMaxX - tileMatrixMinX) / tileWidth : (tileMatrixMaxY - tileMatrixMinY) / tileHeight; + const pixelSpan = !fp.isUndefined(tileMatrixMinX) ? (tileMatrixMaxX - tileMatrixMinX) / tileWidth : (tileMatrixMaxY - tileMatrixMinY) / tileHeight; maxResolution = pixelSpan * metersPerUnit; } + return fp.map(i => maxResolution / Math.pow(2, i))(fp.range(0, numResolutions)); +} - return fp.map(function (i) { - return maxResolution / Math.pow(2, i); - })(fp.range(0, numResolutions)); -} // Compute options for `L.Proj.CRS` from CRS info and tile matrix parameters. +// Compute options for `L.Proj.CRS` from CRS info and tile matrix parameters. // // See comments to `resolutions` re. resolution computations. // // The values for `origin` and `bounds` are also derived from the extents. (See // https://github.com/pacificclimate/pcic-react-leaflet-components/issues/1#issuecomment-818231259) - function projCRSOptions(tileMatrixParams) { - var tileMatrixMinX = tileMatrixParams.tileMatrixMinX, - tileMatrixMinY = tileMatrixParams.tileMatrixMinY, - tileMatrixMaxX = tileMatrixParams.tileMatrixMaxX, - tileMatrixMaxY = tileMatrixParams.tileMatrixMaxY; + const { + tileMatrixMinX, + tileMatrixMinY, + tileMatrixMaxX, + tileMatrixMaxY + } = tileMatrixParams; return { bounds: L__default["default"].bounds(L__default["default"].point(tileMatrixMinX, tileMatrixMinY), L__default["default"].point(tileMatrixMaxX, tileMatrixMaxY)), origin: [tileMatrixMinX, tileMatrixMaxY], @@ -10236,24 +10010,27 @@ function projCRSOptions(tileMatrixParams) { }; } -var _excluded$4 = ["tileset", "center", "zoom", "mapRef", "children"]; - function GenericBaseMap(_ref) { - var _ref$tileset = _ref.tileset, - url = _ref$tileset.url, - projection = _ref$tileset.projection, - tileMatrix = _ref$tileset.tileMatrix, - attribution = _ref$tileset.attribution, - center = _ref.center, - zoom = _ref.zoom; - _ref.mapRef; - var children = _ref.children, - rest = _objectWithoutProperties(_ref, _excluded$4); - + let { + tileset: { + url, + projection, + tileMatrix, + attribution + }, + center, + zoom, + mapRef, + children, + ...rest + } = _ref; // Create Leaflet CRS object. This is where the magic of this component // lies ... converting the tileMatrix specification to a correct CRS. // TODO: Memoize? - var crs = new L__default["default"].Proj.CRS(projection.code, projection.proj4def, _objectSpread2(_objectSpread2({}, projCRSOptions(tileMatrix)), projection.options)); + const crs = new L__default["default"].Proj.CRS(projection.code, projection.proj4def, { + ...projCRSOptions(tileMatrix), + ...projection.options + }); return /*#__PURE__*/React__default["default"].createElement(reactLeaflet.MapContainer, _extends({ crs: crs, minZoom: 0, @@ -10267,10 +10044,10 @@ function GenericBaseMap(_ref) { maxZoom: tileMatrix.numResolutions }), children); } - GenericBaseMap.propTypes = { // Only props added by this component are defined here. // All other valid props for MapContainer are passed through to it. + // Describes the tileset. tileset: propTypes.exports.shape({ // Full URL of tileset, including `x`, `y`, `z` params. @@ -10291,49 +10068,28 @@ GenericBaseMap.propTypes = { }).isRequired }; -var _excluded$3 = ["children"]; - -var BCBaseMap = /*#__PURE__*/function (_PureComponent) { - _inherits(BCBaseMap, _PureComponent); - - var _super = _createSuper(BCBaseMap); - - function BCBaseMap() { - _classCallCheck(this, BCBaseMap); - - return _super.apply(this, arguments); +class BCBaseMap extends React.PureComponent { + render() { + const { + children, + ...rest + } = this.props; + return /*#__PURE__*/React__default["default"].createElement(GenericBaseMap, _extends({ + tileset: BCBaseMap.tileset + }, rest), children); } - - _createClass(BCBaseMap, [{ - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - rest = _objectWithoutProperties(_this$props, _excluded$3); - - return /*#__PURE__*/React__default["default"].createElement(GenericBaseMap, _extends({ - tileset: BCBaseMap.tileset - }, rest), children); - } - }]); - - return BCBaseMap; -}(React.PureComponent); - +} _defineProperty$1(BCBaseMap, "propTypes", { // Only props added by this component are defined here. // All other valid props for Map component are passed through to it. - mapRef: propTypes.exports.func // Callback to which a ref to the Map component is passed. - // Allows parent components to diddle with the map established here. + mapRef: propTypes.exports.func + // Callback to which a ref to the Map component is passed. + // Allows parent components to diddle with the map established here. }); - _defineProperty$1(BCBaseMap, "defaultProps", { - mapRef: function mapRef() { - return null; - } + mapRef: () => null }); - _defineProperty$1(BCBaseMap, "tileset", { url: process.env.REACT_APP_BC_BASE_MAP_TILES_URL, projection: { @@ -10344,6 +10100,7 @@ _defineProperty$1(BCBaseMap, "tileset", { // From the definition of the projection (SRS) metersPerUnit: 1, // Proj.4: +units=m + // From tile generation tileMatrixMinX: -20037508, tileMatrixMaxX: 20037508, @@ -10354,7 +10111,6 @@ _defineProperty$1(BCBaseMap, "tileset", { }, attribution: '© OpenStreetMap contributors' }); - _defineProperty$1(BCBaseMap, "initialViewport", { center: { lat: 55.0, @@ -10363,49 +10119,28 @@ _defineProperty$1(BCBaseMap, "initialViewport", { zoom: 6 }); -var _excluded$2 = ["children"]; - -var YNWTBaseMap = /*#__PURE__*/function (_PureComponent) { - _inherits(YNWTBaseMap, _PureComponent); - - var _super = _createSuper(YNWTBaseMap); - - function YNWTBaseMap() { - _classCallCheck(this, YNWTBaseMap); - - return _super.apply(this, arguments); +class YNWTBaseMap extends React.PureComponent { + render() { + const { + children, + ...rest + } = this.props; + return /*#__PURE__*/React__default["default"].createElement(GenericBaseMap, _extends({ + tileset: YNWTBaseMap.tileset + }, rest), children); } - - _createClass(YNWTBaseMap, [{ - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - rest = _objectWithoutProperties(_this$props, _excluded$2); - - return /*#__PURE__*/React__default["default"].createElement(GenericBaseMap, _extends({ - tileset: YNWTBaseMap.tileset - }, rest), children); - } - }]); - - return YNWTBaseMap; -}(React.PureComponent); - +} _defineProperty$1(YNWTBaseMap, "propTypes", { // Only props added by this component are defined here. // All other valid props for Map component are passed through to it. - mapRef: propTypes.exports.func // Callback to which a ref to the Map component is passed. - // Allows parent components to diddle with the map established here. + mapRef: propTypes.exports.func + // Callback to which a ref to the Map component is passed. + // Allows parent components to diddle with the map established here. }); - _defineProperty$1(YNWTBaseMap, "defaultProps", { - mapRef: function mapRef() { - return null; - } + mapRef: () => null }); - _defineProperty$1(YNWTBaseMap, "tileset", { url: process.env.REACT_APP_YNWT_BASE_MAP_TILES_URL, projection: { @@ -10416,6 +10151,7 @@ _defineProperty$1(YNWTBaseMap, "tileset", { // From the definition of the projection (SRS) metersPerUnit: 1, // Proj.4: +units=m + // From tile generation tileMatrixMinX: -20037508, tileMatrixMaxX: 20037508, @@ -10426,7 +10162,6 @@ _defineProperty$1(YNWTBaseMap, "tileset", { }, attribution: '© OpenStreetMap contributors' }); - _defineProperty$1(YNWTBaseMap, "initialViewport", { center: { lat: 65.0, @@ -10436,38 +10171,33 @@ _defineProperty$1(YNWTBaseMap, "initialViewport", { }); // Sets the view (center, zoom) of the `MapContainer` inside which it is - -var printView = function printView(view) { - return JSON.stringify({ - lat: view.center.lat, - lng: view.center.lng, - zoom: view.zoom - }); -}; - -var SetView = function SetView(_ref) { - var view = _ref.view, - _ref$debug = _ref.debug, - debug = _ref$debug === void 0 ? false : _ref$debug; - var map = reactLeaflet.useMap(); - var currCenter = map.getCenter(); - var currZoom = map.getZoom(); - var tag = "SetView ".concat(map._container.id, ":"); - +const printView = view => JSON.stringify({ + lat: view.center.lat, + lng: view.center.lng, + zoom: view.zoom +}); +const SetView = _ref => { + let { + view, + debug = false + } = _ref; + const map = reactLeaflet.useMap(); + const currCenter = map.getCenter(); + const currZoom = map.getZoom(); + const tag = "SetView ".concat(map._container.id, ":"); if (debug) { console.log(tag, "from:", printView({ center: currCenter, zoom: currZoom }), "to:", printView(view)); - } // It's important to wrap side-effect updates like this with useEffect! - + } - React.useEffect(function () { + // It's important to wrap side-effect updates like this with useEffect! + React.useEffect(() => { if (currCenter.lat !== view.center.lat || currCenter.lng !== view.center.lng || currZoom !== view.zoom) { if (debug) { console.log(tag, "!setting"); } - map.setView(view.center, view.zoom, { animate: false }); @@ -10487,30 +10217,26 @@ function useLeafletContext() { } L__default["default"].Control.Static = L__default["default"].Control.extend({ - onAdd: function onAdd(map) { - var container = L__default["default"].DomUtil.create('div', 'leaflet-control-static leaflet-control'); + onAdd: map => { + const container = L__default["default"].DomUtil.create('div', 'leaflet-control-static leaflet-control'); return container; }, - onRemove: function onRemove(map) {} + onRemove: map => {} }); - -L__default["default"].control.static = function (opts) { - return new L__default["default"].Control.Static(opts); -}; - -var _excluded$1 = ["children"]; +L__default["default"].control.static = opts => new L__default["default"].Control.Static(opts); function StaticControl(_ref) { - var children = _ref.children, - rest = _objectWithoutProperties(_ref, _excluded$1); - - var context = useLeafletContext(); - React.useEffect(function () { - var control = L__default["default"].control.static(rest); + let { + children, + ...rest + } = _ref; + const context = useLeafletContext(); + React.useEffect(() => { + const control = L__default["default"].control.static(rest); control.addTo(context.map); - var root = client.createRoot(control.getContainer()); + const root = client.createRoot(control.getContainer()); root.render(children); - return function () { + return () => { control.remove(); }; }); @@ -10597,17 +10323,17 @@ var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$8 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$6.hasOwnProperty; +var hasOwnProperty$6 = objectProto$8.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$6.toString; +var nativeObjectToString$1 = objectProto$8.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10620,7 +10346,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10643,14 +10369,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$5 = Object.prototype; +var objectProto$7 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$5.toString; +var nativeObjectToString = objectProto$7.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -13016,20 +12742,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$1(value, other) { +function eq$2(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$1; +var eq_1 = eq$2; var baseAssignValue$1 = _baseAssignValue, - eq = eq_1; + eq$1 = eq_1; /** Used for built-in method references. */ -var objectProto$4 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; +var hasOwnProperty$5 = objectProto$6.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -13043,7 +12769,7 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || + if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13767,247 +13493,183 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -var _listCacheClear; -var hasRequired_listCacheClear; - -function require_listCacheClear () { - if (hasRequired_listCacheClear) return _listCacheClear; - hasRequired_listCacheClear = 1; - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - - _listCacheClear = listCacheClear; - return _listCacheClear; +function listCacheClear$1() { + this.__data__ = []; + this.size = 0; } -var _assocIndexOf; -var hasRequired_assocIndexOf; - -function require_assocIndexOf () { - if (hasRequired_assocIndexOf) return _assocIndexOf; - hasRequired_assocIndexOf = 1; - var eq = eq_1; +var _listCacheClear = listCacheClear$1; - /** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } +var eq = eq_1; - _assocIndexOf = assocIndexOf; - return _assocIndexOf; +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf$4(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; } -var _listCacheDelete; -var hasRequired_listCacheDelete; +var _assocIndexOf = assocIndexOf$4; -function require_listCacheDelete () { - if (hasRequired_listCacheDelete) return _listCacheDelete; - hasRequired_listCacheDelete = 1; - var assocIndexOf = require_assocIndexOf(); - - /** Used for built-in method references. */ - var arrayProto = Array.prototype; +var assocIndexOf$3 = _assocIndexOf; - /** Built-in value references. */ - var splice = arrayProto.splice; +/** Used for built-in method references. */ +var arrayProto = Array.prototype; - /** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +/** Built-in value references. */ +var splice = arrayProto.splice; - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete$1(key) { + var data = this.__data__, + index = assocIndexOf$3(data, key); - _listCacheDelete = listCacheDelete; - return _listCacheDelete; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; } -var _listCacheGet; -var hasRequired_listCacheGet; +var _listCacheDelete = listCacheDelete$1; -function require_listCacheGet () { - if (hasRequired_listCacheGet) return _listCacheGet; - hasRequired_listCacheGet = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf$2 = _assocIndexOf; - /** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet$1(key) { + var data = this.__data__, + index = assocIndexOf$2(data, key); - return index < 0 ? undefined : data[index][1]; - } + return index < 0 ? undefined : data[index][1]; +} + +var _listCacheGet = listCacheGet$1; - _listCacheGet = listCacheGet; - return _listCacheGet; +var assocIndexOf$1 = _assocIndexOf; + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas$1(key) { + return assocIndexOf$1(this.__data__, key) > -1; } -var _listCacheHas; -var hasRequired_listCacheHas; +var _listCacheHas = listCacheHas$1; -function require_listCacheHas () { - if (hasRequired_listCacheHas) return _listCacheHas; - hasRequired_listCacheHas = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf = _assocIndexOf; - /** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet$1(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); - _listCacheHas = listCacheHas; - return _listCacheHas; + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; } -var _listCacheSet; -var hasRequired_listCacheSet; +var _listCacheSet = listCacheSet$1; -function require_listCacheSet () { - if (hasRequired_listCacheSet) return _listCacheSet; - hasRequired_listCacheSet = 1; - var assocIndexOf = require_assocIndexOf(); +var listCacheClear = _listCacheClear, + listCacheDelete = _listCacheDelete, + listCacheGet = _listCacheGet, + listCacheHas = _listCacheHas, + listCacheSet = _listCacheSet; - /** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ - function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache$4(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _listCacheSet = listCacheSet; - return _listCacheSet; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _ListCache; -var hasRequired_ListCache; +// Add methods to `ListCache`. +ListCache$4.prototype.clear = listCacheClear; +ListCache$4.prototype['delete'] = listCacheDelete; +ListCache$4.prototype.get = listCacheGet; +ListCache$4.prototype.has = listCacheHas; +ListCache$4.prototype.set = listCacheSet; -function require_ListCache () { - if (hasRequired_ListCache) return _ListCache; - hasRequired_ListCache = 1; - var listCacheClear = require_listCacheClear(), - listCacheDelete = require_listCacheDelete(), - listCacheGet = require_listCacheGet(), - listCacheHas = require_listCacheHas(), - listCacheSet = require_listCacheSet(); +var _ListCache = ListCache$4; - /** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var ListCache$3 = _ListCache; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear; - ListCache.prototype['delete'] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - - _ListCache = ListCache; - return _ListCache; +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear$1() { + this.__data__ = new ListCache$3; + this.size = 0; } -var _stackClear; -var hasRequired_stackClear; - -function require_stackClear () { - if (hasRequired_stackClear) return _stackClear; - hasRequired_stackClear = 1; - var ListCache = require_ListCache(); - - /** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ - function stackClear() { - this.__data__ = new ListCache; - this.size = 0; - } - - _stackClear = stackClear; - return _stackClear; -} +var _stackClear = stackClear$1; /** * Removes `key` and its value from the stack. @@ -14019,24 +13681,16 @@ function require_stackClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _stackDelete; -var hasRequired_stackDelete; - -function require_stackDelete () { - if (hasRequired_stackDelete) return _stackDelete; - hasRequired_stackDelete = 1; - function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; - } +function stackDelete$1(key) { + var data = this.__data__, + result = data['delete'](key); - _stackDelete = stackDelete; - return _stackDelete; + this.size = data.size; + return result; } +var _stackDelete = stackDelete$1; + /** * Gets the stack value for `key`. * @@ -14047,20 +13701,12 @@ function require_stackDelete () { * @returns {*} Returns the entry value. */ -var _stackGet; -var hasRequired_stackGet; - -function require_stackGet () { - if (hasRequired_stackGet) return _stackGet; - hasRequired_stackGet = 1; - function stackGet(key) { - return this.__data__.get(key); - } - - _stackGet = stackGet; - return _stackGet; +function stackGet$1(key) { + return this.__data__.get(key); } +var _stackGet = stackGet$1; + /** * Checks if a stack value for `key` exists. * @@ -14071,67 +13717,43 @@ function require_stackGet () { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -var _stackHas; -var hasRequired_stackHas; - -function require_stackHas () { - if (hasRequired_stackHas) return _stackHas; - hasRequired_stackHas = 1; - function stackHas(key) { - return this.__data__.has(key); - } - - _stackHas = stackHas; - return _stackHas; +function stackHas$1(key) { + return this.__data__.has(key); } -var getNative$3 = require_getNative(), +var _stackHas = stackHas$1; + +var getNative$4 = require_getNative(), root$4 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$1 = getNative$3(root$4, 'Map'); - -var _Map = Map$1; - -var _nativeCreate; -var hasRequired_nativeCreate; - -function require_nativeCreate () { - if (hasRequired_nativeCreate) return _nativeCreate; - hasRequired_nativeCreate = 1; - var getNative = require_getNative(); +var Map$3 = getNative$4(root$4, 'Map'); - /* Built-in method references that are verified to be native. */ - var nativeCreate = getNative(Object, 'create'); +var _Map = Map$3; - _nativeCreate = nativeCreate; - return _nativeCreate; -} +var getNative$3 = require_getNative(); -var _hashClear; -var hasRequired_hashClear; +/* Built-in method references that are verified to be native. */ +var nativeCreate$4 = getNative$3(Object, 'create'); -function require_hashClear () { - if (hasRequired_hashClear) return _hashClear; - hasRequired_hashClear = 1; - var nativeCreate = require_nativeCreate(); +var _nativeCreate = nativeCreate$4; - /** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } +var nativeCreate$3 = _nativeCreate; - _hashClear = hashClear; - return _hashClear; +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear$1() { + this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; + this.size = 0; } +var _hashClear = hashClear$1; + /** * Removes `key` and its value from the hash. * @@ -14143,196 +13765,148 @@ function require_hashClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _hashDelete; -var hasRequired_hashDelete; - -function require_hashDelete () { - if (hasRequired_hashDelete) return _hashDelete; - hasRequired_hashDelete = 1; - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - - _hashDelete = hashDelete; - return _hashDelete; +function hashDelete$1(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } -var _hashGet; -var hasRequired_hashGet; +var _hashDelete = hashDelete$1; -function require_hashGet () { - if (hasRequired_hashGet) return _hashGet; - hasRequired_hashGet = 1; - var nativeCreate = require_nativeCreate(); - - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; +var nativeCreate$2 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$5 = Object.prototype; - /** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; - } +/** Used to check objects for own properties. */ +var hasOwnProperty$4 = objectProto$5.hasOwnProperty; - _hashGet = hashGet; - return _hashGet; +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet$1(key) { + var data = this.__data__; + if (nativeCreate$2) { + var result = data[key]; + return result === HASH_UNDEFINED$1 ? undefined : result; + } + return hasOwnProperty$4.call(data, key) ? data[key] : undefined; } -var _hashHas; -var hasRequired_hashHas; +var _hashGet = hashGet$1; -function require_hashHas () { - if (hasRequired_hashHas) return _hashHas; - hasRequired_hashHas = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate$1 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; - - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$4 = Object.prototype; - /** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); - } +/** Used to check objects for own properties. */ +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; - _hashHas = hashHas; - return _hashHas; +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas$1(key) { + var data = this.__data__; + return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); } -var _hashSet; -var hasRequired_hashSet; +var _hashHas = hashHas$1; -function require_hashSet () { - if (hasRequired_hashSet) return _hashSet; - hasRequired_hashSet = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate = _nativeCreate; - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; - - /** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; - } +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; - _hashSet = hashSet; - return _hashSet; +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet$1(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; } -var _Hash; -var hasRequired_Hash; - -function require_Hash () { - if (hasRequired_Hash) return _Hash; - hasRequired_Hash = 1; - var hashClear = require_hashClear(), - hashDelete = require_hashDelete(), - hashGet = require_hashGet(), - hashHas = require_hashHas(), - hashSet = require_hashSet(); - - /** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var _hashSet = hashSet$1; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } +var hashClear = _hashClear, + hashDelete = _hashDelete, + hashGet = _hashGet, + hashHas = _hashHas, + hashSet = _hashSet; - // Add methods to `Hash`. - Hash.prototype.clear = hashClear; - Hash.prototype['delete'] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash$1(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _Hash = Hash; - return _Hash; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _mapCacheClear; -var hasRequired_mapCacheClear; +// Add methods to `Hash`. +Hash$1.prototype.clear = hashClear; +Hash$1.prototype['delete'] = hashDelete; +Hash$1.prototype.get = hashGet; +Hash$1.prototype.has = hashHas; +Hash$1.prototype.set = hashSet; -function require_mapCacheClear () { - if (hasRequired_mapCacheClear) return _mapCacheClear; - hasRequired_mapCacheClear = 1; - var Hash = require_Hash(), - ListCache = require_ListCache(), - Map = _Map; +var _Hash = Hash$1; - /** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ - function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; - } +var Hash = _Hash, + ListCache$2 = _ListCache, + Map$2 = _Map; - _mapCacheClear = mapCacheClear; - return _mapCacheClear; +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear$1() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map$2 || ListCache$2), + 'string': new Hash + }; } +var _mapCacheClear = mapCacheClear$1; + /** * Checks if `value` is suitable for use as unique object key. * @@ -14341,277 +13915,205 @@ function require_mapCacheClear () { * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -var _isKeyable; -var hasRequired_isKeyable; - -function require_isKeyable () { - if (hasRequired_isKeyable) return _isKeyable; - hasRequired_isKeyable = 1; - function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); - } - - _isKeyable = isKeyable; - return _isKeyable; +function isKeyable$1(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); } -var _getMapData; -var hasRequired_getMapData; +var _isKeyable = isKeyable$1; -function require_getMapData () { - if (hasRequired_getMapData) return _getMapData; - hasRequired_getMapData = 1; - var isKeyable = require_isKeyable(); +var isKeyable = _isKeyable; - /** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; - } - - _getMapData = getMapData; - return _getMapData; +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData$4(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } -var _mapCacheDelete; -var hasRequired_mapCacheDelete; - -function require_mapCacheDelete () { - if (hasRequired_mapCacheDelete) return _mapCacheDelete; - hasRequired_mapCacheDelete = 1; - var getMapData = require_getMapData(); +var _getMapData = getMapData$4; - /** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; - } +var getMapData$3 = _getMapData; - _mapCacheDelete = mapCacheDelete; - return _mapCacheDelete; +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete$1(key) { + var result = getMapData$3(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; } -var _mapCacheGet; -var hasRequired_mapCacheGet; - -function require_mapCacheGet () { - if (hasRequired_mapCacheGet) return _mapCacheGet; - hasRequired_mapCacheGet = 1; - var getMapData = require_getMapData(); +var _mapCacheDelete = mapCacheDelete$1; - /** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } +var getMapData$2 = _getMapData; - _mapCacheGet = mapCacheGet; - return _mapCacheGet; +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet$1(key) { + return getMapData$2(this, key).get(key); } -var _mapCacheHas; -var hasRequired_mapCacheHas; +var _mapCacheGet = mapCacheGet$1; -function require_mapCacheHas () { - if (hasRequired_mapCacheHas) return _mapCacheHas; - hasRequired_mapCacheHas = 1; - var getMapData = require_getMapData(); - - /** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } +var getMapData$1 = _getMapData; - _mapCacheHas = mapCacheHas; - return _mapCacheHas; +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas$1(key) { + return getMapData$1(this, key).has(key); } -var _mapCacheSet; -var hasRequired_mapCacheSet; +var _mapCacheHas = mapCacheHas$1; -function require_mapCacheSet () { - if (hasRequired_mapCacheSet) return _mapCacheSet; - hasRequired_mapCacheSet = 1; - var getMapData = require_getMapData(); - - /** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ - function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; +var getMapData = _getMapData; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet$1(key, value) { + var data = getMapData(this, key), + size = data.size; - _mapCacheSet = mapCacheSet; - return _mapCacheSet; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; } -var _MapCache; -var hasRequired_MapCache; - -function require_MapCache () { - if (hasRequired_MapCache) return _MapCache; - hasRequired_MapCache = 1; - var mapCacheClear = require_mapCacheClear(), - mapCacheDelete = require_mapCacheDelete(), - mapCacheGet = require_mapCacheGet(), - mapCacheHas = require_mapCacheHas(), - mapCacheSet = require_mapCacheSet(); - - /** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var _mapCacheSet = mapCacheSet$1; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } +var mapCacheClear = _mapCacheClear, + mapCacheDelete = _mapCacheDelete, + mapCacheGet = _mapCacheGet, + mapCacheHas = _mapCacheHas, + mapCacheSet = _mapCacheSet; - // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype['delete'] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache$2(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _MapCache = MapCache; - return _MapCache; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _stackSet; -var hasRequired_stackSet; +// Add methods to `MapCache`. +MapCache$2.prototype.clear = mapCacheClear; +MapCache$2.prototype['delete'] = mapCacheDelete; +MapCache$2.prototype.get = mapCacheGet; +MapCache$2.prototype.has = mapCacheHas; +MapCache$2.prototype.set = mapCacheSet; -function require_stackSet () { - if (hasRequired_stackSet) return _stackSet; - hasRequired_stackSet = 1; - var ListCache = require_ListCache(), - Map = _Map, - MapCache = require_MapCache(); +var _MapCache = MapCache$2; - /** Used as the size to enable large array optimizations. */ - var LARGE_ARRAY_SIZE = 200; +var ListCache$1 = _ListCache, + Map$1 = _Map, + MapCache$1 = _MapCache; - /** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; - _stackSet = stackSet; - return _stackSet; +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet$1(key, value) { + var data = this.__data__; + if (data instanceof ListCache$1) { + var pairs = data.__data__; + if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache$1(pairs); + } + data.set(key, value); + this.size = data.size; + return this; } -var _Stack; -var hasRequired_Stack; +var _stackSet = stackSet$1; -function require_Stack () { - if (hasRequired_Stack) return _Stack; - hasRequired_Stack = 1; - var ListCache = require_ListCache(), - stackClear = require_stackClear(), - stackDelete = require_stackDelete(), - stackGet = require_stackGet(), - stackHas = require_stackHas(), - stackSet = require_stackSet(); +var ListCache = _ListCache, + stackClear = _stackClear, + stackDelete = _stackDelete, + stackGet = _stackGet, + stackHas = _stackHas, + stackSet = _stackSet; - /** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack$1(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} - // Add methods to `Stack`. - Stack.prototype.clear = stackClear; - Stack.prototype['delete'] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; +// Add methods to `Stack`. +Stack$1.prototype.clear = stackClear; +Stack$1.prototype['delete'] = stackDelete; +Stack$1.prototype.get = stackGet; +Stack$1.prototype.has = stackHas; +Stack$1.prototype.set = stackSet; - _Stack = Stack; - return _Stack; -} +var _Stack = Stack$1; /** * This function is like @@ -15394,7 +14896,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = require_Stack(), +var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15844,7 +15346,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = require_MapCache(), + var MapCache = _MapCache, setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -16305,7 +15807,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = require_Stack(), + var Stack = _Stack, equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -16434,7 +15936,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = require_Stack(), + var Stack = _Stack, baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16655,7 +16157,7 @@ function require_isKey () { return _isKey; } -var MapCache = require_MapCache(); +var MapCache = _MapCache; /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -17652,39 +17154,23 @@ var convert$3 = convert_1, func$3.placeholder = requirePlaceholder(); var keys = func$3; -var _excluded = ["spinner", "x", "y", "stroke"]; - function MapSpinner(_ref) { - var _ref$spinner = _ref.spinner, - spinner = _ref$spinner === void 0 ? "Bars" : _ref$spinner, - _ref$x = _ref.x, - x = _ref$x === void 0 ? "40%" : _ref$x, - _ref$y = _ref.y, - y = _ref$y === void 0 ? "40%" : _ref$y, - _ref$stroke = _ref.stroke, - stroke = _ref$stroke === void 0 ? "#98ff98" : _ref$stroke, - rest = _objectWithoutProperties(_ref, _excluded); - - var _useState = React.useState(reactLeaflet.useMap().getBounds()), - _useState2 = _slicedToArray(_useState, 2), - bounds = _useState2[0], - setBounds = _useState2[1]; // This could be replaced by a call to callbackOnMapEvents, but it's a bit + let { + spinner = "Bars", + x = "40%", + y = "40%", + stroke = "#98ff98", + ...rest + } = _ref; + const [bounds, setBounds] = React.useState(reactLeaflet.useMap().getBounds()); + // This could be replaced by a call to callbackOnMapEvents, but it's a bit // less clear and not much shorter. - - - var onEvent = function onEvent(map) { - return setBounds(map.getBounds()); - }; - - var map = reactLeaflet.useMapEvents({ - zoomend: function zoomend() { - return onEvent(map); - }, - moveend: function moveend() { - return onEvent(map); - } + const onEvent = map => setBounds(map.getBounds()); + const map = reactLeaflet.useMapEvents({ + zoomend: () => onEvent(map), + moveend: () => onEvent(map) }); - var Spinner = SVGLoaders[spinner]; + const Spinner = SVGLoaders[spinner]; return /*#__PURE__*/React__default["default"].createElement(reactLeaflet.SVGOverlay, { bounds: bounds }, /*#__PURE__*/React__default["default"].createElement(Spinner, _extends({ @@ -17693,7 +17179,6 @@ function MapSpinner(_ref) { stroke: stroke }, rest))); } - MapSpinner.propTypes = { spinner: propTypes.exports.oneOf(keys(SVGLoaders)).isRequired, x: propTypes.exports.string, @@ -18124,13 +17609,13 @@ var fromPairs = func; // Factory (higher order component) returning a functional component that -var callbackOnMapEvents = function callbackOnMapEvents(eventNames, callback) { - return function () { - var leafletMap = reactLeaflet.useMapEvents(flow(map(function (name) { - return [name, function () { - callback(leafletMap); - }]; - }), fromPairs)(eventNames)); +// TODO: Memoize. + +const callbackOnMapEvents = (eventNames, callback) => { + return () => { + const leafletMap = reactLeaflet.useMapEvents(flow(map(name => [name, () => { + callback(leafletMap); + }]), fromPairs)(eventNames)); return null; }; }; diff --git a/dist/index.esm.js b/dist/index.esm.js index e8d682f..cd97a46 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -20,265 +20,36 @@ function _mergeNamespaces(n, m) { return Object.freeze(n); } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - - return keys; -} - -function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - _defineProperty$1(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - - return target; -} - -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a 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); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} - -function _defineProperty$1(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; +function _defineProperty$1(e, r, t) { + return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; } - function _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - return _extends.apply(this, arguments); -} - -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) _setPrototypeOf(subClass, superClass); -} - -function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} - -function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} - -function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; - - try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - return true; - } catch (e) { - return false; - } -} - -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - - var target = _objectWithoutPropertiesLoose(source, excluded); - - var key, i; - - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - - return target; -} - -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - - return self; -} - -function _possibleConstructorReturn(self, call) { - if (call && (typeof call === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - - return _assertThisInitialized(self); -} - -function _createSuper(Derived) { - var hasNativeReflectConstruct = _isNativeReflectConstruct(); - - return function _createSuperInternal() { - var Super = _getPrototypeOf(Derived), - result; - - if (hasNativeReflectConstruct) { - var NewTarget = _getPrototypeOf(this).constructor; - - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); + return _extends = Object.assign ? Object.assign.bind() : function (n) { + for (var e = 1; e < arguments.length; e++) { + var t = arguments[e]; + for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } - - return _possibleConstructorReturn(this, result); - }; -} - -function _slicedToArray(arr, i) { - return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); + return n; + }, _extends.apply(null, arguments); } - -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} - -function _iterableToArrayLimit(arr, i) { - var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; - - if (_i == null) return; - var _arr = []; - var _n = true; - var _d = false; - - var _s, _e; - - try { - for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { - _arr.push(_s.value); - - if (i && _arr.length === i) break; - } - } catch (err) { - _d = true; - _e = err; - } finally { - try { - if (!_n && _i["return"] != null) _i["return"](); - } finally { - if (_d) throw _e; - } +function _toPrimitive(t, r) { + if ("object" != typeof t || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != typeof i) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); } - - return _arr; + return ("string" === r ? String : Number)(t); } - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return _arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); -} - -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - - return arr2; -} - -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +function _toPropertyKey(t) { + var i = _toPrimitive(t, "string"); + return "symbol" == typeof i ? i : i + ""; } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; @@ -10173,7 +9944,10 @@ var _baseConvert = baseConvert$1; var _ = lodash_min.exports.runInContext(); var fp = _baseConvert(_, _); -var pixelWidth = 0.00028; // Compute resolutions from CRS info and tile matrix parameters. +// From OGC Standard +const pixelWidth = 0.00028; + +// Compute resolutions from CRS info and tile matrix parameters. // // The user must supply one of `scaleDenominator` or // `metersPerUnit`, `tileMatrixMinX`, `tileMatrixMaxX`, and `tileWidth` or @@ -10185,41 +9959,41 @@ var pixelWidth = 0.00028; // Compute resolutions from CRS info and tile matrix p // value can be derived, in our particular case from fundamental information // about the tileset, namely its extents or bounds. (For details, see // https://github.com/pacificclimate/pcic-react-leaflet-components/issues/1#issuecomment-818194664) - function resolutions(_ref) { - var metersPerUnit = _ref.metersPerUnit, - scaleDenominator = _ref.scaleDenominator, - tileMatrixMinX = _ref.tileMatrixMinX, - tileMatrixMaxX = _ref.tileMatrixMaxX, - tileWidth = _ref.tileWidth, - tileMatrixMinY = _ref.tileMatrixMinY, - tileMatrixMaxY = _ref.tileMatrixMaxY, - tileHeight = _ref.tileHeight, - numResolutions = _ref.numResolutions; - var maxResolution; - + let { + metersPerUnit, + scaleDenominator, + tileMatrixMinX, + tileMatrixMaxX, + tileWidth, + tileMatrixMinY, + tileMatrixMaxY, + tileHeight, + numResolutions + } = _ref; + let maxResolution; if (!fp.isUndefined(scaleDenominator)) { maxResolution = scaleDenominator * pixelWidth; } else { - var pixelSpan = !fp.isUndefined(tileMatrixMinX) ? (tileMatrixMaxX - tileMatrixMinX) / tileWidth : (tileMatrixMaxY - tileMatrixMinY) / tileHeight; + const pixelSpan = !fp.isUndefined(tileMatrixMinX) ? (tileMatrixMaxX - tileMatrixMinX) / tileWidth : (tileMatrixMaxY - tileMatrixMinY) / tileHeight; maxResolution = pixelSpan * metersPerUnit; } + return fp.map(i => maxResolution / Math.pow(2, i))(fp.range(0, numResolutions)); +} - return fp.map(function (i) { - return maxResolution / Math.pow(2, i); - })(fp.range(0, numResolutions)); -} // Compute options for `L.Proj.CRS` from CRS info and tile matrix parameters. +// Compute options for `L.Proj.CRS` from CRS info and tile matrix parameters. // // See comments to `resolutions` re. resolution computations. // // The values for `origin` and `bounds` are also derived from the extents. (See // https://github.com/pacificclimate/pcic-react-leaflet-components/issues/1#issuecomment-818231259) - function projCRSOptions(tileMatrixParams) { - var tileMatrixMinX = tileMatrixParams.tileMatrixMinX, - tileMatrixMinY = tileMatrixParams.tileMatrixMinY, - tileMatrixMaxX = tileMatrixParams.tileMatrixMaxX, - tileMatrixMaxY = tileMatrixParams.tileMatrixMaxY; + const { + tileMatrixMinX, + tileMatrixMinY, + tileMatrixMaxX, + tileMatrixMaxY + } = tileMatrixParams; return { bounds: L.bounds(L.point(tileMatrixMinX, tileMatrixMinY), L.point(tileMatrixMaxX, tileMatrixMaxY)), origin: [tileMatrixMinX, tileMatrixMaxY], @@ -10227,24 +10001,27 @@ function projCRSOptions(tileMatrixParams) { }; } -var _excluded$4 = ["tileset", "center", "zoom", "mapRef", "children"]; - function GenericBaseMap(_ref) { - var _ref$tileset = _ref.tileset, - url = _ref$tileset.url, - projection = _ref$tileset.projection, - tileMatrix = _ref$tileset.tileMatrix, - attribution = _ref$tileset.attribution, - center = _ref.center, - zoom = _ref.zoom; - _ref.mapRef; - var children = _ref.children, - rest = _objectWithoutProperties(_ref, _excluded$4); - + let { + tileset: { + url, + projection, + tileMatrix, + attribution + }, + center, + zoom, + mapRef, + children, + ...rest + } = _ref; // Create Leaflet CRS object. This is where the magic of this component // lies ... converting the tileMatrix specification to a correct CRS. // TODO: Memoize? - var crs = new L.Proj.CRS(projection.code, projection.proj4def, _objectSpread2(_objectSpread2({}, projCRSOptions(tileMatrix)), projection.options)); + const crs = new L.Proj.CRS(projection.code, projection.proj4def, { + ...projCRSOptions(tileMatrix), + ...projection.options + }); return /*#__PURE__*/React.createElement(MapContainer, _extends({ crs: crs, minZoom: 0, @@ -10258,10 +10035,10 @@ function GenericBaseMap(_ref) { maxZoom: tileMatrix.numResolutions }), children); } - GenericBaseMap.propTypes = { // Only props added by this component are defined here. // All other valid props for MapContainer are passed through to it. + // Describes the tileset. tileset: propTypes.exports.shape({ // Full URL of tileset, including `x`, `y`, `z` params. @@ -10282,49 +10059,28 @@ GenericBaseMap.propTypes = { }).isRequired }; -var _excluded$3 = ["children"]; - -var BCBaseMap = /*#__PURE__*/function (_PureComponent) { - _inherits(BCBaseMap, _PureComponent); - - var _super = _createSuper(BCBaseMap); - - function BCBaseMap() { - _classCallCheck(this, BCBaseMap); - - return _super.apply(this, arguments); +class BCBaseMap extends PureComponent { + render() { + const { + children, + ...rest + } = this.props; + return /*#__PURE__*/React.createElement(GenericBaseMap, _extends({ + tileset: BCBaseMap.tileset + }, rest), children); } - - _createClass(BCBaseMap, [{ - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - rest = _objectWithoutProperties(_this$props, _excluded$3); - - return /*#__PURE__*/React.createElement(GenericBaseMap, _extends({ - tileset: BCBaseMap.tileset - }, rest), children); - } - }]); - - return BCBaseMap; -}(PureComponent); - +} _defineProperty$1(BCBaseMap, "propTypes", { // Only props added by this component are defined here. // All other valid props for Map component are passed through to it. - mapRef: propTypes.exports.func // Callback to which a ref to the Map component is passed. - // Allows parent components to diddle with the map established here. + mapRef: propTypes.exports.func + // Callback to which a ref to the Map component is passed. + // Allows parent components to diddle with the map established here. }); - _defineProperty$1(BCBaseMap, "defaultProps", { - mapRef: function mapRef() { - return null; - } + mapRef: () => null }); - _defineProperty$1(BCBaseMap, "tileset", { url: process.env.REACT_APP_BC_BASE_MAP_TILES_URL, projection: { @@ -10335,6 +10091,7 @@ _defineProperty$1(BCBaseMap, "tileset", { // From the definition of the projection (SRS) metersPerUnit: 1, // Proj.4: +units=m + // From tile generation tileMatrixMinX: -20037508, tileMatrixMaxX: 20037508, @@ -10345,7 +10102,6 @@ _defineProperty$1(BCBaseMap, "tileset", { }, attribution: '© OpenStreetMap contributors' }); - _defineProperty$1(BCBaseMap, "initialViewport", { center: { lat: 55.0, @@ -10354,49 +10110,28 @@ _defineProperty$1(BCBaseMap, "initialViewport", { zoom: 6 }); -var _excluded$2 = ["children"]; - -var YNWTBaseMap = /*#__PURE__*/function (_PureComponent) { - _inherits(YNWTBaseMap, _PureComponent); - - var _super = _createSuper(YNWTBaseMap); - - function YNWTBaseMap() { - _classCallCheck(this, YNWTBaseMap); - - return _super.apply(this, arguments); +class YNWTBaseMap extends PureComponent { + render() { + const { + children, + ...rest + } = this.props; + return /*#__PURE__*/React.createElement(GenericBaseMap, _extends({ + tileset: YNWTBaseMap.tileset + }, rest), children); } - - _createClass(YNWTBaseMap, [{ - key: "render", - value: function render() { - var _this$props = this.props, - children = _this$props.children, - rest = _objectWithoutProperties(_this$props, _excluded$2); - - return /*#__PURE__*/React.createElement(GenericBaseMap, _extends({ - tileset: YNWTBaseMap.tileset - }, rest), children); - } - }]); - - return YNWTBaseMap; -}(PureComponent); - +} _defineProperty$1(YNWTBaseMap, "propTypes", { // Only props added by this component are defined here. // All other valid props for Map component are passed through to it. - mapRef: propTypes.exports.func // Callback to which a ref to the Map component is passed. - // Allows parent components to diddle with the map established here. + mapRef: propTypes.exports.func + // Callback to which a ref to the Map component is passed. + // Allows parent components to diddle with the map established here. }); - _defineProperty$1(YNWTBaseMap, "defaultProps", { - mapRef: function mapRef() { - return null; - } + mapRef: () => null }); - _defineProperty$1(YNWTBaseMap, "tileset", { url: process.env.REACT_APP_YNWT_BASE_MAP_TILES_URL, projection: { @@ -10407,6 +10142,7 @@ _defineProperty$1(YNWTBaseMap, "tileset", { // From the definition of the projection (SRS) metersPerUnit: 1, // Proj.4: +units=m + // From tile generation tileMatrixMinX: -20037508, tileMatrixMaxX: 20037508, @@ -10417,7 +10153,6 @@ _defineProperty$1(YNWTBaseMap, "tileset", { }, attribution: '© OpenStreetMap contributors' }); - _defineProperty$1(YNWTBaseMap, "initialViewport", { center: { lat: 65.0, @@ -10427,38 +10162,33 @@ _defineProperty$1(YNWTBaseMap, "initialViewport", { }); // Sets the view (center, zoom) of the `MapContainer` inside which it is - -var printView = function printView(view) { - return JSON.stringify({ - lat: view.center.lat, - lng: view.center.lng, - zoom: view.zoom - }); -}; - -var SetView = function SetView(_ref) { - var view = _ref.view, - _ref$debug = _ref.debug, - debug = _ref$debug === void 0 ? false : _ref$debug; - var map = useMap(); - var currCenter = map.getCenter(); - var currZoom = map.getZoom(); - var tag = "SetView ".concat(map._container.id, ":"); - +const printView = view => JSON.stringify({ + lat: view.center.lat, + lng: view.center.lng, + zoom: view.zoom +}); +const SetView = _ref => { + let { + view, + debug = false + } = _ref; + const map = useMap(); + const currCenter = map.getCenter(); + const currZoom = map.getZoom(); + const tag = "SetView ".concat(map._container.id, ":"); if (debug) { console.log(tag, "from:", printView({ center: currCenter, zoom: currZoom }), "to:", printView(view)); - } // It's important to wrap side-effect updates like this with useEffect! - + } - useEffect(function () { + // It's important to wrap side-effect updates like this with useEffect! + useEffect(() => { if (currCenter.lat !== view.center.lat || currCenter.lng !== view.center.lng || currZoom !== view.zoom) { if (debug) { console.log(tag, "!setting"); } - map.setView(view.center, view.zoom, { animate: false }); @@ -10478,30 +10208,26 @@ function useLeafletContext() { } L.Control.Static = L.Control.extend({ - onAdd: function onAdd(map) { - var container = L.DomUtil.create('div', 'leaflet-control-static leaflet-control'); + onAdd: map => { + const container = L.DomUtil.create('div', 'leaflet-control-static leaflet-control'); return container; }, - onRemove: function onRemove(map) {} + onRemove: map => {} }); - -L.control.static = function (opts) { - return new L.Control.Static(opts); -}; - -var _excluded$1 = ["children"]; +L.control.static = opts => new L.Control.Static(opts); function StaticControl(_ref) { - var children = _ref.children, - rest = _objectWithoutProperties(_ref, _excluded$1); - - var context = useLeafletContext(); - useEffect(function () { - var control = L.control.static(rest); + let { + children, + ...rest + } = _ref; + const context = useLeafletContext(); + useEffect(() => { + const control = L.control.static(rest); control.addTo(context.map); - var root = createRoot(control.getContainer()); + const root = createRoot(control.getContainer()); root.render(children); - return function () { + return () => { control.remove(); }; }); @@ -10588,17 +10314,17 @@ var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$8 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$6.hasOwnProperty; +var hasOwnProperty$6 = objectProto$8.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$6.toString; +var nativeObjectToString$1 = objectProto$8.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10611,7 +10337,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10634,14 +10360,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$5 = Object.prototype; +var objectProto$7 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$5.toString; +var nativeObjectToString = objectProto$7.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -13007,20 +12733,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$1(value, other) { +function eq$2(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$1; +var eq_1 = eq$2; var baseAssignValue$1 = _baseAssignValue, - eq = eq_1; + eq$1 = eq_1; /** Used for built-in method references. */ -var objectProto$4 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; +var hasOwnProperty$5 = objectProto$6.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -13034,7 +12760,7 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || + if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13758,247 +13484,183 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -var _listCacheClear; -var hasRequired_listCacheClear; - -function require_listCacheClear () { - if (hasRequired_listCacheClear) return _listCacheClear; - hasRequired_listCacheClear = 1; - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - - _listCacheClear = listCacheClear; - return _listCacheClear; +function listCacheClear$1() { + this.__data__ = []; + this.size = 0; } -var _assocIndexOf; -var hasRequired_assocIndexOf; - -function require_assocIndexOf () { - if (hasRequired_assocIndexOf) return _assocIndexOf; - hasRequired_assocIndexOf = 1; - var eq = eq_1; +var _listCacheClear = listCacheClear$1; - /** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } +var eq = eq_1; - _assocIndexOf = assocIndexOf; - return _assocIndexOf; +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf$4(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; } -var _listCacheDelete; -var hasRequired_listCacheDelete; +var _assocIndexOf = assocIndexOf$4; -function require_listCacheDelete () { - if (hasRequired_listCacheDelete) return _listCacheDelete; - hasRequired_listCacheDelete = 1; - var assocIndexOf = require_assocIndexOf(); - - /** Used for built-in method references. */ - var arrayProto = Array.prototype; +var assocIndexOf$3 = _assocIndexOf; - /** Built-in value references. */ - var splice = arrayProto.splice; +/** Used for built-in method references. */ +var arrayProto = Array.prototype; - /** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +/** Built-in value references. */ +var splice = arrayProto.splice; - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete$1(key) { + var data = this.__data__, + index = assocIndexOf$3(data, key); - _listCacheDelete = listCacheDelete; - return _listCacheDelete; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; } -var _listCacheGet; -var hasRequired_listCacheGet; +var _listCacheDelete = listCacheDelete$1; -function require_listCacheGet () { - if (hasRequired_listCacheGet) return _listCacheGet; - hasRequired_listCacheGet = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf$2 = _assocIndexOf; - /** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet$1(key) { + var data = this.__data__, + index = assocIndexOf$2(data, key); - return index < 0 ? undefined : data[index][1]; - } + return index < 0 ? undefined : data[index][1]; +} + +var _listCacheGet = listCacheGet$1; - _listCacheGet = listCacheGet; - return _listCacheGet; +var assocIndexOf$1 = _assocIndexOf; + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas$1(key) { + return assocIndexOf$1(this.__data__, key) > -1; } -var _listCacheHas; -var hasRequired_listCacheHas; +var _listCacheHas = listCacheHas$1; -function require_listCacheHas () { - if (hasRequired_listCacheHas) return _listCacheHas; - hasRequired_listCacheHas = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf = _assocIndexOf; - /** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet$1(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); - _listCacheHas = listCacheHas; - return _listCacheHas; + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; } -var _listCacheSet; -var hasRequired_listCacheSet; +var _listCacheSet = listCacheSet$1; -function require_listCacheSet () { - if (hasRequired_listCacheSet) return _listCacheSet; - hasRequired_listCacheSet = 1; - var assocIndexOf = require_assocIndexOf(); +var listCacheClear = _listCacheClear, + listCacheDelete = _listCacheDelete, + listCacheGet = _listCacheGet, + listCacheHas = _listCacheHas, + listCacheSet = _listCacheSet; - /** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ - function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache$4(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _listCacheSet = listCacheSet; - return _listCacheSet; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _ListCache; -var hasRequired_ListCache; +// Add methods to `ListCache`. +ListCache$4.prototype.clear = listCacheClear; +ListCache$4.prototype['delete'] = listCacheDelete; +ListCache$4.prototype.get = listCacheGet; +ListCache$4.prototype.has = listCacheHas; +ListCache$4.prototype.set = listCacheSet; -function require_ListCache () { - if (hasRequired_ListCache) return _ListCache; - hasRequired_ListCache = 1; - var listCacheClear = require_listCacheClear(), - listCacheDelete = require_listCacheDelete(), - listCacheGet = require_listCacheGet(), - listCacheHas = require_listCacheHas(), - listCacheSet = require_listCacheSet(); +var _ListCache = ListCache$4; - /** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var ListCache$3 = _ListCache; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear; - ListCache.prototype['delete'] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - - _ListCache = ListCache; - return _ListCache; +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear$1() { + this.__data__ = new ListCache$3; + this.size = 0; } -var _stackClear; -var hasRequired_stackClear; - -function require_stackClear () { - if (hasRequired_stackClear) return _stackClear; - hasRequired_stackClear = 1; - var ListCache = require_ListCache(); - - /** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ - function stackClear() { - this.__data__ = new ListCache; - this.size = 0; - } - - _stackClear = stackClear; - return _stackClear; -} +var _stackClear = stackClear$1; /** * Removes `key` and its value from the stack. @@ -14010,24 +13672,16 @@ function require_stackClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _stackDelete; -var hasRequired_stackDelete; - -function require_stackDelete () { - if (hasRequired_stackDelete) return _stackDelete; - hasRequired_stackDelete = 1; - function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; - } +function stackDelete$1(key) { + var data = this.__data__, + result = data['delete'](key); - _stackDelete = stackDelete; - return _stackDelete; + this.size = data.size; + return result; } +var _stackDelete = stackDelete$1; + /** * Gets the stack value for `key`. * @@ -14038,20 +13692,12 @@ function require_stackDelete () { * @returns {*} Returns the entry value. */ -var _stackGet; -var hasRequired_stackGet; - -function require_stackGet () { - if (hasRequired_stackGet) return _stackGet; - hasRequired_stackGet = 1; - function stackGet(key) { - return this.__data__.get(key); - } - - _stackGet = stackGet; - return _stackGet; +function stackGet$1(key) { + return this.__data__.get(key); } +var _stackGet = stackGet$1; + /** * Checks if a stack value for `key` exists. * @@ -14062,67 +13708,43 @@ function require_stackGet () { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -var _stackHas; -var hasRequired_stackHas; - -function require_stackHas () { - if (hasRequired_stackHas) return _stackHas; - hasRequired_stackHas = 1; - function stackHas(key) { - return this.__data__.has(key); - } - - _stackHas = stackHas; - return _stackHas; +function stackHas$1(key) { + return this.__data__.has(key); } -var getNative$3 = require_getNative(), +var _stackHas = stackHas$1; + +var getNative$4 = require_getNative(), root$4 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$1 = getNative$3(root$4, 'Map'); - -var _Map = Map$1; - -var _nativeCreate; -var hasRequired_nativeCreate; - -function require_nativeCreate () { - if (hasRequired_nativeCreate) return _nativeCreate; - hasRequired_nativeCreate = 1; - var getNative = require_getNative(); +var Map$3 = getNative$4(root$4, 'Map'); - /* Built-in method references that are verified to be native. */ - var nativeCreate = getNative(Object, 'create'); +var _Map = Map$3; - _nativeCreate = nativeCreate; - return _nativeCreate; -} +var getNative$3 = require_getNative(); -var _hashClear; -var hasRequired_hashClear; +/* Built-in method references that are verified to be native. */ +var nativeCreate$4 = getNative$3(Object, 'create'); -function require_hashClear () { - if (hasRequired_hashClear) return _hashClear; - hasRequired_hashClear = 1; - var nativeCreate = require_nativeCreate(); +var _nativeCreate = nativeCreate$4; - /** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } +var nativeCreate$3 = _nativeCreate; - _hashClear = hashClear; - return _hashClear; +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear$1() { + this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; + this.size = 0; } +var _hashClear = hashClear$1; + /** * Removes `key` and its value from the hash. * @@ -14134,196 +13756,148 @@ function require_hashClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _hashDelete; -var hasRequired_hashDelete; - -function require_hashDelete () { - if (hasRequired_hashDelete) return _hashDelete; - hasRequired_hashDelete = 1; - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - - _hashDelete = hashDelete; - return _hashDelete; +function hashDelete$1(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } -var _hashGet; -var hasRequired_hashGet; +var _hashDelete = hashDelete$1; -function require_hashGet () { - if (hasRequired_hashGet) return _hashGet; - hasRequired_hashGet = 1; - var nativeCreate = require_nativeCreate(); - - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; +var nativeCreate$2 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$5 = Object.prototype; - /** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; - } +/** Used to check objects for own properties. */ +var hasOwnProperty$4 = objectProto$5.hasOwnProperty; - _hashGet = hashGet; - return _hashGet; +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet$1(key) { + var data = this.__data__; + if (nativeCreate$2) { + var result = data[key]; + return result === HASH_UNDEFINED$1 ? undefined : result; + } + return hasOwnProperty$4.call(data, key) ? data[key] : undefined; } -var _hashHas; -var hasRequired_hashHas; +var _hashGet = hashGet$1; -function require_hashHas () { - if (hasRequired_hashHas) return _hashHas; - hasRequired_hashHas = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate$1 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; - - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$4 = Object.prototype; - /** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); - } +/** Used to check objects for own properties. */ +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; - _hashHas = hashHas; - return _hashHas; +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas$1(key) { + var data = this.__data__; + return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); } -var _hashSet; -var hasRequired_hashSet; +var _hashHas = hashHas$1; -function require_hashSet () { - if (hasRequired_hashSet) return _hashSet; - hasRequired_hashSet = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate = _nativeCreate; - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; - - /** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; - } +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; - _hashSet = hashSet; - return _hashSet; +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet$1(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; } -var _Hash; -var hasRequired_Hash; - -function require_Hash () { - if (hasRequired_Hash) return _Hash; - hasRequired_Hash = 1; - var hashClear = require_hashClear(), - hashDelete = require_hashDelete(), - hashGet = require_hashGet(), - hashHas = require_hashHas(), - hashSet = require_hashSet(); - - /** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var _hashSet = hashSet$1; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } +var hashClear = _hashClear, + hashDelete = _hashDelete, + hashGet = _hashGet, + hashHas = _hashHas, + hashSet = _hashSet; - // Add methods to `Hash`. - Hash.prototype.clear = hashClear; - Hash.prototype['delete'] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash$1(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _Hash = Hash; - return _Hash; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _mapCacheClear; -var hasRequired_mapCacheClear; +// Add methods to `Hash`. +Hash$1.prototype.clear = hashClear; +Hash$1.prototype['delete'] = hashDelete; +Hash$1.prototype.get = hashGet; +Hash$1.prototype.has = hashHas; +Hash$1.prototype.set = hashSet; -function require_mapCacheClear () { - if (hasRequired_mapCacheClear) return _mapCacheClear; - hasRequired_mapCacheClear = 1; - var Hash = require_Hash(), - ListCache = require_ListCache(), - Map = _Map; +var _Hash = Hash$1; - /** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ - function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; - } +var Hash = _Hash, + ListCache$2 = _ListCache, + Map$2 = _Map; - _mapCacheClear = mapCacheClear; - return _mapCacheClear; +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear$1() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map$2 || ListCache$2), + 'string': new Hash + }; } +var _mapCacheClear = mapCacheClear$1; + /** * Checks if `value` is suitable for use as unique object key. * @@ -14332,277 +13906,205 @@ function require_mapCacheClear () { * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -var _isKeyable; -var hasRequired_isKeyable; - -function require_isKeyable () { - if (hasRequired_isKeyable) return _isKeyable; - hasRequired_isKeyable = 1; - function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); - } - - _isKeyable = isKeyable; - return _isKeyable; +function isKeyable$1(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); } -var _getMapData; -var hasRequired_getMapData; +var _isKeyable = isKeyable$1; -function require_getMapData () { - if (hasRequired_getMapData) return _getMapData; - hasRequired_getMapData = 1; - var isKeyable = require_isKeyable(); +var isKeyable = _isKeyable; - /** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; - } - - _getMapData = getMapData; - return _getMapData; +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData$4(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } -var _mapCacheDelete; -var hasRequired_mapCacheDelete; - -function require_mapCacheDelete () { - if (hasRequired_mapCacheDelete) return _mapCacheDelete; - hasRequired_mapCacheDelete = 1; - var getMapData = require_getMapData(); +var _getMapData = getMapData$4; - /** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; - } +var getMapData$3 = _getMapData; - _mapCacheDelete = mapCacheDelete; - return _mapCacheDelete; +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete$1(key) { + var result = getMapData$3(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; } -var _mapCacheGet; -var hasRequired_mapCacheGet; - -function require_mapCacheGet () { - if (hasRequired_mapCacheGet) return _mapCacheGet; - hasRequired_mapCacheGet = 1; - var getMapData = require_getMapData(); +var _mapCacheDelete = mapCacheDelete$1; - /** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } +var getMapData$2 = _getMapData; - _mapCacheGet = mapCacheGet; - return _mapCacheGet; +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet$1(key) { + return getMapData$2(this, key).get(key); } -var _mapCacheHas; -var hasRequired_mapCacheHas; +var _mapCacheGet = mapCacheGet$1; -function require_mapCacheHas () { - if (hasRequired_mapCacheHas) return _mapCacheHas; - hasRequired_mapCacheHas = 1; - var getMapData = require_getMapData(); - - /** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } +var getMapData$1 = _getMapData; - _mapCacheHas = mapCacheHas; - return _mapCacheHas; +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas$1(key) { + return getMapData$1(this, key).has(key); } -var _mapCacheSet; -var hasRequired_mapCacheSet; +var _mapCacheHas = mapCacheHas$1; -function require_mapCacheSet () { - if (hasRequired_mapCacheSet) return _mapCacheSet; - hasRequired_mapCacheSet = 1; - var getMapData = require_getMapData(); - - /** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ - function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; +var getMapData = _getMapData; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet$1(key, value) { + var data = getMapData(this, key), + size = data.size; - _mapCacheSet = mapCacheSet; - return _mapCacheSet; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; } -var _MapCache; -var hasRequired_MapCache; - -function require_MapCache () { - if (hasRequired_MapCache) return _MapCache; - hasRequired_MapCache = 1; - var mapCacheClear = require_mapCacheClear(), - mapCacheDelete = require_mapCacheDelete(), - mapCacheGet = require_mapCacheGet(), - mapCacheHas = require_mapCacheHas(), - mapCacheSet = require_mapCacheSet(); - - /** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var _mapCacheSet = mapCacheSet$1; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } +var mapCacheClear = _mapCacheClear, + mapCacheDelete = _mapCacheDelete, + mapCacheGet = _mapCacheGet, + mapCacheHas = _mapCacheHas, + mapCacheSet = _mapCacheSet; - // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype['delete'] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache$2(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _MapCache = MapCache; - return _MapCache; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _stackSet; -var hasRequired_stackSet; +// Add methods to `MapCache`. +MapCache$2.prototype.clear = mapCacheClear; +MapCache$2.prototype['delete'] = mapCacheDelete; +MapCache$2.prototype.get = mapCacheGet; +MapCache$2.prototype.has = mapCacheHas; +MapCache$2.prototype.set = mapCacheSet; -function require_stackSet () { - if (hasRequired_stackSet) return _stackSet; - hasRequired_stackSet = 1; - var ListCache = require_ListCache(), - Map = _Map, - MapCache = require_MapCache(); +var _MapCache = MapCache$2; - /** Used as the size to enable large array optimizations. */ - var LARGE_ARRAY_SIZE = 200; +var ListCache$1 = _ListCache, + Map$1 = _Map, + MapCache$1 = _MapCache; - /** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; - _stackSet = stackSet; - return _stackSet; +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet$1(key, value) { + var data = this.__data__; + if (data instanceof ListCache$1) { + var pairs = data.__data__; + if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache$1(pairs); + } + data.set(key, value); + this.size = data.size; + return this; } -var _Stack; -var hasRequired_Stack; +var _stackSet = stackSet$1; -function require_Stack () { - if (hasRequired_Stack) return _Stack; - hasRequired_Stack = 1; - var ListCache = require_ListCache(), - stackClear = require_stackClear(), - stackDelete = require_stackDelete(), - stackGet = require_stackGet(), - stackHas = require_stackHas(), - stackSet = require_stackSet(); +var ListCache = _ListCache, + stackClear = _stackClear, + stackDelete = _stackDelete, + stackGet = _stackGet, + stackHas = _stackHas, + stackSet = _stackSet; - /** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack$1(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} - // Add methods to `Stack`. - Stack.prototype.clear = stackClear; - Stack.prototype['delete'] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; +// Add methods to `Stack`. +Stack$1.prototype.clear = stackClear; +Stack$1.prototype['delete'] = stackDelete; +Stack$1.prototype.get = stackGet; +Stack$1.prototype.has = stackHas; +Stack$1.prototype.set = stackSet; - _Stack = Stack; - return _Stack; -} +var _Stack = Stack$1; /** * This function is like @@ -15385,7 +14887,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = require_Stack(), +var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15835,7 +15337,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = require_MapCache(), + var MapCache = _MapCache, setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -16296,7 +15798,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = require_Stack(), + var Stack = _Stack, equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -16425,7 +15927,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = require_Stack(), + var Stack = _Stack, baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16646,7 +16148,7 @@ function require_isKey () { return _isKey; } -var MapCache = require_MapCache(); +var MapCache = _MapCache; /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -17643,39 +17145,23 @@ var convert$3 = convert_1, func$3.placeholder = requirePlaceholder(); var keys = func$3; -var _excluded = ["spinner", "x", "y", "stroke"]; - function MapSpinner(_ref) { - var _ref$spinner = _ref.spinner, - spinner = _ref$spinner === void 0 ? "Bars" : _ref$spinner, - _ref$x = _ref.x, - x = _ref$x === void 0 ? "40%" : _ref$x, - _ref$y = _ref.y, - y = _ref$y === void 0 ? "40%" : _ref$y, - _ref$stroke = _ref.stroke, - stroke = _ref$stroke === void 0 ? "#98ff98" : _ref$stroke, - rest = _objectWithoutProperties(_ref, _excluded); - - var _useState = useState(useMap().getBounds()), - _useState2 = _slicedToArray(_useState, 2), - bounds = _useState2[0], - setBounds = _useState2[1]; // This could be replaced by a call to callbackOnMapEvents, but it's a bit + let { + spinner = "Bars", + x = "40%", + y = "40%", + stroke = "#98ff98", + ...rest + } = _ref; + const [bounds, setBounds] = useState(useMap().getBounds()); + // This could be replaced by a call to callbackOnMapEvents, but it's a bit // less clear and not much shorter. - - - var onEvent = function onEvent(map) { - return setBounds(map.getBounds()); - }; - - var map = useMapEvents({ - zoomend: function zoomend() { - return onEvent(map); - }, - moveend: function moveend() { - return onEvent(map); - } + const onEvent = map => setBounds(map.getBounds()); + const map = useMapEvents({ + zoomend: () => onEvent(map), + moveend: () => onEvent(map) }); - var Spinner = SVGLoaders[spinner]; + const Spinner = SVGLoaders[spinner]; return /*#__PURE__*/React.createElement(SVGOverlay, { bounds: bounds }, /*#__PURE__*/React.createElement(Spinner, _extends({ @@ -17684,7 +17170,6 @@ function MapSpinner(_ref) { stroke: stroke }, rest))); } - MapSpinner.propTypes = { spinner: propTypes.exports.oneOf(keys(SVGLoaders)).isRequired, x: propTypes.exports.string, @@ -18115,13 +17600,13 @@ var fromPairs = func; // Factory (higher order component) returning a functional component that -var callbackOnMapEvents = function callbackOnMapEvents(eventNames, callback) { - return function () { - var leafletMap = useMapEvents(flow(map(function (name) { - return [name, function () { - callback(leafletMap); - }]; - }), fromPairs)(eventNames)); +// TODO: Memoize. + +const callbackOnMapEvents = (eventNames, callback) => { + return () => { + const leafletMap = useMapEvents(flow(map(name => [name, () => { + callback(leafletMap); + }]), fromPairs)(eventNames)); return null; }; }; diff --git a/package-lock.json b/package-lock.json index 94b9b61..7b5544e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@babel/cli": "^7.17.10", - "@babel/core": "^7.18.5", + "@babel/core": "7.18.6", "@babel/preset-env": "^7.18.2", "@babel/preset-react": "^7.17.12", "@rollup/plugin-babel": "^5.3.1", @@ -81,39 +81,40 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "dependencies": { - "@babel/highlight": "^7.16.7" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.5.tgz", - "integrity": "sha512-BxhE40PVCBxVEJsSBhB6UWyAuqJRxGsAw8BdHMJ3AKGydcwuWW4kOO3HmqBQAdcq/OP+/DlTVxLvsCzRTnZuGg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.7.tgz", + "integrity": "sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.5.tgz", - "integrity": "sha512-MGY8vg3DxMnctw0LdvSEojOsumc70g0t18gNyUdAZqB1Rpd1Bqo/svHGvt+UJ6JcGX+DIekGFDxxIWofBxLCnQ==", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.6.tgz", + "integrity": "sha512-cQbWBpxcbbs/IUredIPkHiAGULLV8iwgNRMFzvbhEXISp4f3rUUXE5+TIw6KwUWUR3DwyI6gmBRnmAtYaWehwQ==", "dependencies": { "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.2", - "@babel/helper-compilation-targets": "^7.18.2", - "@babel/helper-module-transforms": "^7.18.0", - "@babel/helpers": "^7.18.2", - "@babel/parser": "^7.18.5", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.5", - "@babel/types": "^7.18.4", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.18.6", + "@babel/helper-compilation-targets": "^7.18.6", + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helpers": "^7.18.6", + "@babel/parser": "^7.18.6", + "@babel/template": "^7.18.6", + "@babel/traverse": "^7.18.6", + "@babel/types": "^7.18.6", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -174,12 +175,13 @@ } }, "node_modules/@babel/generator": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.2.tgz", - "integrity": "sha512-W1lG5vUwFvfMd8HVXqdfbuG7RuaSrTCCD8cl8fP8wOivdbtbIg2Db3IWUcgvfxKbbn6ZBGYRW/Zk1MIwK49mgw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", + "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", "dependencies": { - "@babel/types": "^7.18.2", - "@jridgewell/gen-mapping": "^0.3.0", + "@babel/types": "^7.24.7", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" }, "engines": { @@ -187,13 +189,13 @@ } }, "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.1.tgz", - "integrity": "sha512-GcHwniMlA2z+WFPWuY8lp3fsza0I8xPFMWL5+n8LYyP6PSvPrXf4+n8stDHZY2DM0zy9sVkRDy1jDI4XGzYVqg==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dependencies": { - "@jridgewell/set-array": "^1.0.0", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" @@ -223,22 +225,33 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.2.tgz", - "integrity": "sha512-s1jnPotJS9uQnzFtiZVBUxe67CuBa679oWFHpxYYnTpRL/1ffhyX44R9uYiXoa/pLXcY9H2moJta0iaanlk/rQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz", + "integrity": "sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==", "dependencies": { - "@babel/compat-data": "^7.17.10", - "@babel/helper-validator-option": "^7.16.7", - "browserslist": "^4.20.2", - "semver": "^6.3.0" + "@babel/compat-data": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + }, "node_modules/@babel/helper-create-class-features-plugin": { "version": "7.18.0", "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.18.0.tgz", @@ -293,9 +306,12 @@ } }, "node_modules/@babel/helper-environment-visitor": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.2.tgz", - "integrity": "sha512-14GQKWkX9oJzPiQQ7/J36FTXcD4kSp8egKjO9nINlSKiHITRA9q/R74qu8S9xlc/b/yjsJItQUeeh3xnGN0voQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", + "dependencies": { + "@babel/types": "^7.24.7" + }, "engines": { "node": ">=6.9.0" } @@ -312,23 +328,23 @@ } }, "node_modules/@babel/helper-function-name": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz", - "integrity": "sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz", + "integrity": "sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==", "dependencies": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-hoist-variables": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz", + "integrity": "sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==", "dependencies": { - "@babel/types": "^7.16.7" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -346,32 +362,33 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "dependencies": { - "@babel/types": "^7.16.7" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.0.tgz", - "integrity": "sha512-kclUYSUBIjlvnzN2++K9f2qzYKFgjmnmjwL4zlmU5f8ZtzgWe8s0rUPSTGy2HmK4P8T52MQsS+HTQAgZd3dMEA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz", + "integrity": "sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==", "dependencies": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-simple-access": "^7.17.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/helper-validator-identifier": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.0", - "@babel/types": "^7.18.0" + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-optimise-call-expression": { @@ -422,11 +439,12 @@ } }, "node_modules/@babel/helper-simple-access": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.2.tgz", - "integrity": "sha512-7LIrjYzndorDY88MycupkpQLKS1AFfsVRm2k/9PtKScSy5tZq0McZTj+DiMRynboZfIqOKvo03pmhTaUgiD6fQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", "dependencies": { - "@babel/types": "^7.18.2" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" @@ -444,28 +462,36 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", + "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", "dependencies": { - "@babel/types": "^7.16.7" + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", + "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", - "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz", + "integrity": "sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==", "engines": { "node": ">=6.9.0" } @@ -485,35 +511,35 @@ } }, "node_modules/@babel/helpers": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.2.tgz", - "integrity": "sha512-j+d+u5xT5utcQSzrh9p+PaJX94h++KN+ng9b9WEJq7pkUPAd61FGqhjuUEdfknb3E/uDBb7ruwEeKkIxNJPIrg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz", + "integrity": "sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==", "dependencies": { - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.2", - "@babel/types": "^7.18.2" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.17.12", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.17.12.tgz", - "integrity": "sha512-7yykMVF3hfZY2jsHZEEgLc+3x4o1O+fYyULu11GynEUQNwB6lua+IIQn1FiJxNucd5UlyJryrwsOh8PL9Sn8Qg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.5.tgz", - "integrity": "sha512-YZWVaglMiplo7v8f1oMQ5ZPQr0vn7HPeZXxXWsxXJRjGVrzUFn9OxFQl1sb5wzfootjA/yChhW84BV+383FSOw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -1821,32 +1847,32 @@ } }, "node_modules/@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.7.tgz", + "integrity": "sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==", "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.5.tgz", - "integrity": "sha512-aKXj1KT66sBj0vVzk6rEeAO6Z9aiiQ68wfDgge3nHhA/my6xMM/7HGQUNumKZaoa2qUPQ5whJG9aAifsxUKfLA==", - "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.2", - "@babel/helper-environment-visitor": "^7.18.2", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.5", - "@babel/types": "^7.18.4", - "debug": "^4.1.0", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.7.tgz", + "integrity": "sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==", + "dependencies": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-function-name": "^7.24.7", + "@babel/helper-hoist-variables": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -1854,11 +1880,12 @@ } }, "node_modules/@babel/types": { - "version": "7.18.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.4.tgz", - "integrity": "sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" }, "engines": { @@ -2855,17 +2882,17 @@ } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.7.tgz", - "integrity": "sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.1.tgz", - "integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "engines": { "node": ">=6.0.0" } @@ -2893,17 +2920,17 @@ } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.13", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz", - "integrity": "sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w==" + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.13.tgz", - "integrity": "sha512-o1xbKhp9qnIAoHJSWd6KlCZfqslL4valSF81H8ImioOAxluWYWOpWkpyktY2vnt4tbrX9XYaxovq6cgowaJp2w==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@leichtgewicht/ip-codec": { @@ -5201,9 +5228,9 @@ "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" }, "node_modules/browserslist": { - "version": "4.21.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.0.tgz", - "integrity": "sha512-UQxE0DIhRB5z/zDz9iA03BOfxaN2+GQdBYH/2WrSIWEUrnpzTPJbhqt+umq6r3acaPRTW1FNTkrcp0PXgtFkvA==", + "version": "4.23.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.1.tgz", + "integrity": "sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==", "funding": [ { "type": "opencollective", @@ -5212,13 +5239,17 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "caniuse-lite": "^1.0.30001358", - "electron-to-chromium": "^1.4.164", - "node-releases": "^2.0.5", - "update-browserslist-db": "^1.0.0" + "caniuse-lite": "^1.0.30001629", + "electron-to-chromium": "^1.4.796", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.16" }, "bin": { "browserslist": "cli.js" @@ -5319,9 +5350,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001358", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001358.tgz", - "integrity": "sha512-hvp8PSRymk85R20bsDra7ZTCpSVGN/PAz9pSAjPSjKC+rNmnUk5vCRgJwiTT/O4feQ/yu/drvZYpKxxhbFuChw==", + "version": "1.0.30001636", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001636.tgz", + "integrity": "sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==", "funding": [ { "type": "opencollective", @@ -5330,6 +5361,10 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, @@ -6558,9 +6593,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.167", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.167.tgz", - "integrity": "sha512-lPHuHXBwpkr4RcfaZBKm6TKOWG/1N9mVggUpP4fY3l1JIUU2x4fkM8928smYdZ5lF+6KCTAxo1aK9JmqT+X71Q==" + "version": "1.4.805", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.805.tgz", + "integrity": "sha512-8W4UJwX/w9T0QSzINJckTKG6CYpAUTqsaWcWIsdud3I1FYJcMgW9QqT1/4CBff/pP/TihWh13OmiyY8neto6vw==" }, "node_modules/emittery": { "version": "0.8.1", @@ -6701,9 +6736,9 @@ } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "engines": { "node": ">=6" } @@ -12431,9 +12466,9 @@ "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" }, "node_modules/node-releases": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.5.tgz", - "integrity": "sha512-U9h1NLROZTq9uE1SNffn6WuPDg8icmi3ns4rEl/oTfIle4iLjTliCzgTsbaIFMq/Xn078/lfY/BL0GWZ+psK4Q==" + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==" }, "node_modules/normalize-package-data": { "version": "2.5.0", @@ -12912,9 +12947,9 @@ "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "node_modules/picomatch": { "version": "2.3.1", @@ -15400,9 +15435,9 @@ } }, "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "bin": { "semver": "bin/semver.js" } @@ -16627,9 +16662,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.4.tgz", - "integrity": "sha512-jnmO2BEGUjsMOe/Fg9u0oczOe/ppIDZPebzccl1yDWGLFP16Pa1/RM5wEoKYPG2zstNcDuAStejyxsOuKINdGA==", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", "funding": [ { "type": "opencollective", @@ -16638,14 +16673,18 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.1.2", + "picocolors": "^1.0.1" }, "bin": { - "browserslist-lint": "cli.js" + "update-browserslist-db": "cli.js" }, "peerDependencies": { "browserslist": ">= 4.21.0" @@ -17692,33 +17731,34 @@ } }, "@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", + "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", "requires": { - "@babel/highlight": "^7.16.7" + "@babel/highlight": "^7.24.7", + "picocolors": "^1.0.0" } }, "@babel/compat-data": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.18.5.tgz", - "integrity": "sha512-BxhE40PVCBxVEJsSBhB6UWyAuqJRxGsAw8BdHMJ3AKGydcwuWW4kOO3HmqBQAdcq/OP+/DlTVxLvsCzRTnZuGg==" + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.7.tgz", + "integrity": "sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw==" }, "@babel/core": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.5.tgz", - "integrity": "sha512-MGY8vg3DxMnctw0LdvSEojOsumc70g0t18gNyUdAZqB1Rpd1Bqo/svHGvt+UJ6JcGX+DIekGFDxxIWofBxLCnQ==", + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.18.6.tgz", + "integrity": "sha512-cQbWBpxcbbs/IUredIPkHiAGULLV8iwgNRMFzvbhEXISp4f3rUUXE5+TIw6KwUWUR3DwyI6gmBRnmAtYaWehwQ==", "requires": { "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.2", - "@babel/helper-compilation-targets": "^7.18.2", - "@babel/helper-module-transforms": "^7.18.0", - "@babel/helpers": "^7.18.2", - "@babel/parser": "^7.18.5", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.5", - "@babel/types": "^7.18.4", + "@babel/code-frame": "^7.18.6", + "@babel/generator": "^7.18.6", + "@babel/helper-compilation-targets": "^7.18.6", + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helpers": "^7.18.6", + "@babel/parser": "^7.18.6", + "@babel/template": "^7.18.6", + "@babel/traverse": "^7.18.6", + "@babel/types": "^7.18.6", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -17758,23 +17798,24 @@ } }, "@babel/generator": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.18.2.tgz", - "integrity": "sha512-W1lG5vUwFvfMd8HVXqdfbuG7RuaSrTCCD8cl8fP8wOivdbtbIg2Db3IWUcgvfxKbbn6ZBGYRW/Zk1MIwK49mgw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.7.tgz", + "integrity": "sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA==", "requires": { - "@babel/types": "^7.18.2", - "@jridgewell/gen-mapping": "^0.3.0", + "@babel/types": "^7.24.7", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" }, "dependencies": { "@jridgewell/gen-mapping": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.1.tgz", - "integrity": "sha512-GcHwniMlA2z+WFPWuY8lp3fsza0I8xPFMWL5+n8LYyP6PSvPrXf4+n8stDHZY2DM0zy9sVkRDy1jDI4XGzYVqg==", + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "requires": { - "@jridgewell/set-array": "^1.0.0", + "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/trace-mapping": "^0.3.24" } } } @@ -17797,14 +17838,30 @@ } }, "@babel/helper-compilation-targets": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.2.tgz", - "integrity": "sha512-s1jnPotJS9uQnzFtiZVBUxe67CuBa679oWFHpxYYnTpRL/1ffhyX44R9uYiXoa/pLXcY9H2moJta0iaanlk/rQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz", + "integrity": "sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg==", "requires": { - "@babel/compat-data": "^7.17.10", - "@babel/helper-validator-option": "^7.16.7", - "browserslist": "^4.20.2", - "semver": "^6.3.0" + "@babel/compat-data": "^7.24.7", + "@babel/helper-validator-option": "^7.24.7", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" + } } }, "@babel/helper-create-class-features-plugin": { @@ -17846,9 +17903,12 @@ } }, "@babel/helper-environment-visitor": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.2.tgz", - "integrity": "sha512-14GQKWkX9oJzPiQQ7/J36FTXcD4kSp8egKjO9nINlSKiHITRA9q/R74qu8S9xlc/b/yjsJItQUeeh3xnGN0voQ==" + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz", + "integrity": "sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ==", + "requires": { + "@babel/types": "^7.24.7" + } }, "@babel/helper-explode-assignable-expression": { "version": "7.16.7", @@ -17859,20 +17919,20 @@ } }, "@babel/helper-function-name": { - "version": "7.17.9", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.17.9.tgz", - "integrity": "sha512-7cRisGlVtiVqZ0MW0/yFB4atgpGLWEHUVYnb448hZK4x+vih0YO5UoS11XIYtZYqHd0dIPMdUSv8q5K4LdMnIg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz", + "integrity": "sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA==", "requires": { - "@babel/template": "^7.16.7", - "@babel/types": "^7.17.0" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" } }, "@babel/helper-hoist-variables": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz", + "integrity": "sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ==", "requires": { - "@babel/types": "^7.16.7" + "@babel/types": "^7.24.7" } }, "@babel/helper-member-expression-to-functions": { @@ -17884,26 +17944,24 @@ } }, "@babel/helper-module-imports": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz", + "integrity": "sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA==", "requires": { - "@babel/types": "^7.16.7" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" } }, "@babel/helper-module-transforms": { - "version": "7.18.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.18.0.tgz", - "integrity": "sha512-kclUYSUBIjlvnzN2++K9f2qzYKFgjmnmjwL4zlmU5f8ZtzgWe8s0rUPSTGy2HmK4P8T52MQsS+HTQAgZd3dMEA==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz", + "integrity": "sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ==", "requires": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-simple-access": "^7.17.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/helper-validator-identifier": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.0", - "@babel/types": "^7.18.0" + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-module-imports": "^7.24.7", + "@babel/helper-simple-access": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7" } }, "@babel/helper-optimise-call-expression": { @@ -17942,11 +18000,12 @@ } }, "@babel/helper-simple-access": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.18.2.tgz", - "integrity": "sha512-7LIrjYzndorDY88MycupkpQLKS1AFfsVRm2k/9PtKScSy5tZq0McZTj+DiMRynboZfIqOKvo03pmhTaUgiD6fQ==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz", + "integrity": "sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg==", "requires": { - "@babel/types": "^7.18.2" + "@babel/traverse": "^7.24.7", + "@babel/types": "^7.24.7" } }, "@babel/helper-skip-transparent-expression-wrappers": { @@ -17958,22 +18017,27 @@ } }, "@babel/helper-split-export-declaration": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz", + "integrity": "sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA==", "requires": { - "@babel/types": "^7.16.7" + "@babel/types": "^7.24.7" } }, + "@babel/helper-string-parser": { + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz", + "integrity": "sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg==" + }, "@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==" + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz", + "integrity": "sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w==" }, "@babel/helper-validator-option": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", - "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==" + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz", + "integrity": "sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw==" }, "@babel/helper-wrap-function": { "version": "7.16.8", @@ -17987,29 +18051,29 @@ } }, "@babel/helpers": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.18.2.tgz", - "integrity": "sha512-j+d+u5xT5utcQSzrh9p+PaJX94h++KN+ng9b9WEJq7pkUPAd61FGqhjuUEdfknb3E/uDBb7ruwEeKkIxNJPIrg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.7.tgz", + "integrity": "sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg==", "requires": { - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.18.2", - "@babel/types": "^7.18.2" + "@babel/template": "^7.24.7", + "@babel/types": "^7.24.7" } }, "@babel/highlight": { - "version": "7.17.12", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.17.12.tgz", - "integrity": "sha512-7yykMVF3hfZY2jsHZEEgLc+3x4o1O+fYyULu11GynEUQNwB6lua+IIQn1FiJxNucd5UlyJryrwsOh8PL9Sn8Qg==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.7.tgz", + "integrity": "sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw==", "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/helper-validator-identifier": "^7.24.7", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" } }, "@babel/parser": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.18.5.tgz", - "integrity": "sha512-YZWVaglMiplo7v8f1oMQ5ZPQr0vn7HPeZXxXWsxXJRjGVrzUFn9OxFQl1sb5wzfootjA/yChhW84BV+383FSOw==" + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.7.tgz", + "integrity": "sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw==" }, "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { "version": "7.17.12", @@ -18849,38 +18913,39 @@ } }, "@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.7.tgz", + "integrity": "sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig==", "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" + "@babel/code-frame": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7" } }, "@babel/traverse": { - "version": "7.18.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.18.5.tgz", - "integrity": "sha512-aKXj1KT66sBj0vVzk6rEeAO6Z9aiiQ68wfDgge3nHhA/my6xMM/7HGQUNumKZaoa2qUPQ5whJG9aAifsxUKfLA==", - "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.18.2", - "@babel/helper-environment-visitor": "^7.18.2", - "@babel/helper-function-name": "^7.17.9", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.18.5", - "@babel/types": "^7.18.4", - "debug": "^4.1.0", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.7.tgz", + "integrity": "sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA==", + "requires": { + "@babel/code-frame": "^7.24.7", + "@babel/generator": "^7.24.7", + "@babel/helper-environment-visitor": "^7.24.7", + "@babel/helper-function-name": "^7.24.7", + "@babel/helper-hoist-variables": "^7.24.7", + "@babel/helper-split-export-declaration": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/types": "^7.24.7", + "debug": "^4.3.1", "globals": "^11.1.0" } }, "@babel/types": { - "version": "7.18.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.18.4.tgz", - "integrity": "sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw==", + "version": "7.24.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.7.tgz", + "integrity": "sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q==", "requires": { - "@babel/helper-validator-identifier": "^7.16.7", + "@babel/helper-string-parser": "^7.24.7", + "@babel/helper-validator-identifier": "^7.24.7", "to-fast-properties": "^2.0.0" } }, @@ -19558,14 +19623,14 @@ } }, "@jridgewell/resolve-uri": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.0.7.tgz", - "integrity": "sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA==" + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==" }, "@jridgewell/set-array": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.1.tgz", - "integrity": "sha512-Ct5MqZkLGEXTVmQYbGtx9SVqD2fqwvdubdps5D3djjAkgkKwT918VNOz65pEHFaYTeWcukmJmH5SwsA9Tn2ObQ==" + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==" }, "@jridgewell/source-map": { "version": "0.3.2", @@ -19589,17 +19654,17 @@ } }, "@jridgewell/sourcemap-codec": { - "version": "1.4.13", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.13.tgz", - "integrity": "sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w==" + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" }, "@jridgewell/trace-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.13.tgz", - "integrity": "sha512-o1xbKhp9qnIAoHJSWd6KlCZfqslL4valSF81H8ImioOAxluWYWOpWkpyktY2vnt4tbrX9XYaxovq6cgowaJp2w==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "@leichtgewicht/ip-codec": { @@ -21310,14 +21375,14 @@ "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==" }, "browserslist": { - "version": "4.21.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.0.tgz", - "integrity": "sha512-UQxE0DIhRB5z/zDz9iA03BOfxaN2+GQdBYH/2WrSIWEUrnpzTPJbhqt+umq6r3acaPRTW1FNTkrcp0PXgtFkvA==", + "version": "4.23.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.1.tgz", + "integrity": "sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw==", "requires": { - "caniuse-lite": "^1.0.30001358", - "electron-to-chromium": "^1.4.164", - "node-releases": "^2.0.5", - "update-browserslist-db": "^1.0.0" + "caniuse-lite": "^1.0.30001629", + "electron-to-chromium": "^1.4.796", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.16" } }, "bser": { @@ -21388,9 +21453,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001358", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001358.tgz", - "integrity": "sha512-hvp8PSRymk85R20bsDra7ZTCpSVGN/PAz9pSAjPSjKC+rNmnUk5vCRgJwiTT/O4feQ/yu/drvZYpKxxhbFuChw==" + "version": "1.0.30001636", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001636.tgz", + "integrity": "sha512-bMg2vmr8XBsbL6Lr0UHXy/21m84FTxDLWn2FSqMd5PrlbMxwJlQnC2YWYxVgp66PZE+BBNF2jYQUBKCo1FDeZg==" }, "case-sensitive-paths-webpack-plugin": { "version": "2.4.0", @@ -22284,9 +22349,9 @@ } }, "electron-to-chromium": { - "version": "1.4.167", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.167.tgz", - "integrity": "sha512-lPHuHXBwpkr4RcfaZBKm6TKOWG/1N9mVggUpP4fY3l1JIUU2x4fkM8928smYdZ5lF+6KCTAxo1aK9JmqT+X71Q==" + "version": "1.4.805", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.805.tgz", + "integrity": "sha512-8W4UJwX/w9T0QSzINJckTKG6CYpAUTqsaWcWIsdud3I1FYJcMgW9QqT1/4CBff/pP/TihWh13OmiyY8neto6vw==" }, "emittery": { "version": "0.8.1", @@ -22397,9 +22462,9 @@ } }, "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==" }, "escape-html": { "version": "1.0.3", @@ -26535,9 +26600,9 @@ "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==" }, "node-releases": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.5.tgz", - "integrity": "sha512-U9h1NLROZTq9uE1SNffn6WuPDg8icmi3ns4rEl/oTfIle4iLjTliCzgTsbaIFMq/Xn078/lfY/BL0GWZ+psK4Q==" + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==" }, "normalize-package-data": { "version": "2.5.0", @@ -26880,9 +26945,9 @@ "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" }, "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" }, "picomatch": { "version": "2.3.1", @@ -28501,9 +28566,9 @@ } }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==" }, "send": { "version": "0.18.0", @@ -29443,12 +29508,12 @@ "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==" }, "update-browserslist-db": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.4.tgz", - "integrity": "sha512-jnmO2BEGUjsMOe/Fg9u0oczOe/ppIDZPebzccl1yDWGLFP16Pa1/RM5wEoKYPG2zstNcDuAStejyxsOuKINdGA==", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.1.2", + "picocolors": "^1.0.1" } }, "uri-js": { diff --git a/package.json b/package.json index cef83d8..860714b 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "devDependencies": { "@babel/cli": "^7.17.10", - "@babel/core": "^7.18.5", + "@babel/core": "7.18.6", "@babel/preset-env": "^7.18.2", "@babel/preset-react": "^7.17.12", "@rollup/plugin-babel": "^5.3.1", diff --git a/playground/package-lock.json b/playground/package-lock.json index f37ad1c..3d14346 100644 --- a/playground/package-lock.json +++ b/playground/package-lock.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@babel/cli": "^7.17.10", - "@babel/core": "^7.18.5", + "@babel/core": "7.18.6", "@babel/preset-env": "^7.18.2", "@babel/preset-react": "^7.17.12", "@rollup/plugin-babel": "^5.3.1", @@ -2335,7 +2335,7 @@ "version": "file:..", "requires": { "@babel/cli": "^7.17.10", - "@babel/core": "^7.18.5", + "@babel/core": "7.18.6", "@babel/preset-env": "^7.18.2", "@babel/preset-react": "^7.17.12", "@rollup/plugin-babel": "^5.3.1", From c3ea18eea984e6c66b76aadd5eeb654b539d9e08 Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 13:45:23 -0700 Subject: [PATCH 5/9] Build project --- dist/index.cjs.js | 1156 +++++++++++++++++++++++++++------------------ dist/index.esm.js | 1156 +++++++++++++++++++++++++++------------------ 2 files changed, 1380 insertions(+), 932 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 0e10648..018fe4d 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -10323,17 +10323,17 @@ var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$8 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$6 = objectProto$8.hasOwnProperty; +var hasOwnProperty$4 = objectProto$6.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$8.toString; +var nativeObjectToString$1 = objectProto$6.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10346,7 +10346,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10369,14 +10369,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$7 = Object.prototype; +var objectProto$5 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$7.toString; +var nativeObjectToString = objectProto$5.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -12742,20 +12742,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$2(value, other) { +function eq$1(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$2; +var eq_1 = eq$1; var baseAssignValue$1 = _baseAssignValue, - eq$1 = eq_1; + eq = eq_1; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$4 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$5 = objectProto$6.hasOwnProperty; +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -12769,7 +12769,7 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || + if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13493,184 +13493,248 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -function listCacheClear$1() { - this.__data__ = []; - this.size = 0; +var _listCacheClear; +var hasRequired_listCacheClear; + +function require_listCacheClear () { + if (hasRequired_listCacheClear) return _listCacheClear; + hasRequired_listCacheClear = 1; + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + + _listCacheClear = listCacheClear; + return _listCacheClear; } -var _listCacheClear = listCacheClear$1; +var _assocIndexOf; +var hasRequired_assocIndexOf; -var eq = eq_1; +function require_assocIndexOf () { + if (hasRequired_assocIndexOf) return _assocIndexOf; + hasRequired_assocIndexOf = 1; + var eq = eq_1; -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf$4(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + + _assocIndexOf = assocIndexOf; + return _assocIndexOf; } -var _assocIndexOf = assocIndexOf$4; +var _listCacheDelete; +var hasRequired_listCacheDelete; -var assocIndexOf$3 = _assocIndexOf; +function require_listCacheDelete () { + if (hasRequired_listCacheDelete) return _listCacheDelete; + hasRequired_listCacheDelete = 1; + var assocIndexOf = require_assocIndexOf(); -/** Used for built-in method references. */ -var arrayProto = Array.prototype; + /** Used for built-in method references. */ + var arrayProto = Array.prototype; -/** Built-in value references. */ -var splice = arrayProto.splice; + /** Built-in value references. */ + var splice = arrayProto.splice; -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete$1(key) { - var data = this.__data__, - index = assocIndexOf$3(data, key); + /** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } + + _listCacheDelete = listCacheDelete; + return _listCacheDelete; } -var _listCacheDelete = listCacheDelete$1; +var _listCacheGet; +var hasRequired_listCacheGet; -var assocIndexOf$2 = _assocIndexOf; +function require_listCacheGet () { + if (hasRequired_listCacheGet) return _listCacheGet; + hasRequired_listCacheGet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet$1(key) { - var data = this.__data__, - index = assocIndexOf$2(data, key); + /** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; + } - return index < 0 ? undefined : data[index][1]; + _listCacheGet = listCacheGet; + return _listCacheGet; } -var _listCacheGet = listCacheGet$1; +var _listCacheHas; +var hasRequired_listCacheHas; -var assocIndexOf$1 = _assocIndexOf; +function require_listCacheHas () { + if (hasRequired_listCacheHas) return _listCacheHas; + hasRequired_listCacheHas = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas$1(key) { - return assocIndexOf$1(this.__data__, key) > -1; + /** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + + _listCacheHas = listCacheHas; + return _listCacheHas; } -var _listCacheHas = listCacheHas$1; +var _listCacheSet; +var hasRequired_listCacheSet; -var assocIndexOf = _assocIndexOf; +function require_listCacheSet () { + if (hasRequired_listCacheSet) return _listCacheSet; + hasRequired_listCacheSet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet$1(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); + /** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ + function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; + _listCacheSet = listCacheSet; + return _listCacheSet; } -var _listCacheSet = listCacheSet$1; +var _ListCache; +var hasRequired_ListCache; -var listCacheClear = _listCacheClear, - listCacheDelete = _listCacheDelete, - listCacheGet = _listCacheGet, - listCacheHas = _listCacheHas, - listCacheSet = _listCacheSet; +function require_ListCache () { + if (hasRequired_ListCache) return _ListCache; + hasRequired_ListCache = 1; + var listCacheClear = require_listCacheClear(), + listCacheDelete = require_listCacheDelete(), + listCacheGet = require_listCacheGet(), + listCacheHas = require_listCacheHas(), + listCacheSet = require_listCacheSet(); -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache$4(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `ListCache`. + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + + _ListCache = ListCache; + return _ListCache; } -// Add methods to `ListCache`. -ListCache$4.prototype.clear = listCacheClear; -ListCache$4.prototype['delete'] = listCacheDelete; -ListCache$4.prototype.get = listCacheGet; -ListCache$4.prototype.has = listCacheHas; -ListCache$4.prototype.set = listCacheSet; +var _stackClear; +var hasRequired_stackClear; -var _ListCache = ListCache$4; +function require_stackClear () { + if (hasRequired_stackClear) return _stackClear; + hasRequired_stackClear = 1; + var ListCache = require_ListCache(); -var ListCache$3 = _ListCache; + /** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ + function stackClear() { + this.__data__ = new ListCache; + this.size = 0; + } -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear$1() { - this.__data__ = new ListCache$3; - this.size = 0; + _stackClear = stackClear; + return _stackClear; } -var _stackClear = stackClear$1; - /** * Removes `key` and its value from the stack. * @@ -13681,15 +13745,23 @@ var _stackClear = stackClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function stackDelete$1(key) { - var data = this.__data__, - result = data['delete'](key); +var _stackDelete; +var hasRequired_stackDelete; - this.size = data.size; - return result; -} +function require_stackDelete () { + if (hasRequired_stackDelete) return _stackDelete; + hasRequired_stackDelete = 1; + function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); -var _stackDelete = stackDelete$1; + this.size = data.size; + return result; + } + + _stackDelete = stackDelete; + return _stackDelete; +} /** * Gets the stack value for `key`. @@ -13701,11 +13773,19 @@ var _stackDelete = stackDelete$1; * @returns {*} Returns the entry value. */ -function stackGet$1(key) { - return this.__data__.get(key); -} +var _stackGet; +var hasRequired_stackGet; -var _stackGet = stackGet$1; +function require_stackGet () { + if (hasRequired_stackGet) return _stackGet; + hasRequired_stackGet = 1; + function stackGet(key) { + return this.__data__.get(key); + } + + _stackGet = stackGet; + return _stackGet; +} /** * Checks if a stack value for `key` exists. @@ -13717,42 +13797,66 @@ var _stackGet = stackGet$1; * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -function stackHas$1(key) { - return this.__data__.has(key); -} +var _stackHas; +var hasRequired_stackHas; -var _stackHas = stackHas$1; +function require_stackHas () { + if (hasRequired_stackHas) return _stackHas; + hasRequired_stackHas = 1; + function stackHas(key) { + return this.__data__.has(key); + } -var getNative$4 = require_getNative(), + _stackHas = stackHas; + return _stackHas; +} + +var getNative$3 = require_getNative(), root$4 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$3 = getNative$4(root$4, 'Map'); - -var _Map = Map$3; +var Map$1 = getNative$3(root$4, 'Map'); -var getNative$3 = require_getNative(); +var _Map = Map$1; -/* Built-in method references that are verified to be native. */ -var nativeCreate$4 = getNative$3(Object, 'create'); +var _nativeCreate; +var hasRequired_nativeCreate; -var _nativeCreate = nativeCreate$4; +function require_nativeCreate () { + if (hasRequired_nativeCreate) return _nativeCreate; + hasRequired_nativeCreate = 1; + var getNative = require_getNative(); -var nativeCreate$3 = _nativeCreate; + /* Built-in method references that are verified to be native. */ + var nativeCreate = getNative(Object, 'create'); -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear$1() { - this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; - this.size = 0; + _nativeCreate = nativeCreate; + return _nativeCreate; } -var _hashClear = hashClear$1; +var _hashClear; +var hasRequired_hashClear; + +function require_hashClear () { + if (hasRequired_hashClear) return _hashClear; + hasRequired_hashClear = 1; + var nativeCreate = require_nativeCreate(); + + /** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + + _hashClear = hashClear; + return _hashClear; +} /** * Removes `key` and its value from the hash. @@ -13765,148 +13869,196 @@ var _hashClear = hashClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function hashDelete$1(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; +var _hashDelete; +var hasRequired_hashDelete; + +function require_hashDelete () { + if (hasRequired_hashDelete) return _hashDelete; + hasRequired_hashDelete = 1; + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + + _hashDelete = hashDelete; + return _hashDelete; } -var _hashDelete = hashDelete$1; +var _hashGet; +var hasRequired_hashGet; -var nativeCreate$2 = _nativeCreate; +function require_hashGet () { + if (hasRequired_hashGet) return _hashGet; + hasRequired_hashGet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** Used for built-in method references. */ -var objectProto$5 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$5.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet$1(key) { - var data = this.__data__; - if (nativeCreate$2) { - var result = data[key]; - return result === HASH_UNDEFINED$1 ? undefined : result; - } - return hasOwnProperty$4.call(data, key) ? data[key] : undefined; + /** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; + } + + _hashGet = hashGet; + return _hashGet; } -var _hashGet = hashGet$1; +var _hashHas; +var hasRequired_hashHas; -var nativeCreate$1 = _nativeCreate; +function require_hashHas () { + if (hasRequired_hashHas) return _hashHas; + hasRequired_hashHas = 1; + var nativeCreate = require_nativeCreate(); -/** Used for built-in method references. */ -var objectProto$4 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas$1(key) { - var data = this.__data__; - return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); + /** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); + } + + _hashHas = hashHas; + return _hashHas; } -var _hashHas = hashHas$1; +var _hashSet; +var hasRequired_hashSet; -var nativeCreate = _nativeCreate; +function require_hashSet () { + if (hasRequired_hashSet) return _hashSet; + hasRequired_hashSet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet$1(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; + /** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; + } + + _hashSet = hashSet; + return _hashSet; } -var _hashSet = hashSet$1; +var _Hash; +var hasRequired_Hash; -var hashClear = _hashClear, - hashDelete = _hashDelete, - hashGet = _hashGet, - hashHas = _hashHas, - hashSet = _hashSet; +function require_Hash () { + if (hasRequired_Hash) return _Hash; + hasRequired_Hash = 1; + var hashClear = require_hashClear(), + hashDelete = require_hashDelete(), + hashGet = require_hashGet(), + hashHas = require_hashHas(), + hashSet = require_hashSet(); -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash$1(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `Hash`. + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + + _Hash = Hash; + return _Hash; } -// Add methods to `Hash`. -Hash$1.prototype.clear = hashClear; -Hash$1.prototype['delete'] = hashDelete; -Hash$1.prototype.get = hashGet; -Hash$1.prototype.has = hashHas; -Hash$1.prototype.set = hashSet; +var _mapCacheClear; +var hasRequired_mapCacheClear; -var _Hash = Hash$1; +function require_mapCacheClear () { + if (hasRequired_mapCacheClear) return _mapCacheClear; + hasRequired_mapCacheClear = 1; + var Hash = require_Hash(), + ListCache = require_ListCache(), + Map = _Map; -var Hash = _Hash, - ListCache$2 = _ListCache, - Map$2 = _Map; + /** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ + function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; + } -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear$1() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map$2 || ListCache$2), - 'string': new Hash - }; + _mapCacheClear = mapCacheClear; + return _mapCacheClear; } -var _mapCacheClear = mapCacheClear$1; - /** * Checks if `value` is suitable for use as unique object key. * @@ -13915,205 +14067,277 @@ var _mapCacheClear = mapCacheClear$1; * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -function isKeyable$1(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); +var _isKeyable; +var hasRequired_isKeyable; + +function require_isKeyable () { + if (hasRequired_isKeyable) return _isKeyable; + hasRequired_isKeyable = 1; + function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); + } + + _isKeyable = isKeyable; + return _isKeyable; } -var _isKeyable = isKeyable$1; +var _getMapData; +var hasRequired_getMapData; -var isKeyable = _isKeyable; +function require_getMapData () { + if (hasRequired_getMapData) return _getMapData; + hasRequired_getMapData = 1; + var isKeyable = require_isKeyable(); -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData$4(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; + /** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; + } + + _getMapData = getMapData; + return _getMapData; } -var _getMapData = getMapData$4; +var _mapCacheDelete; +var hasRequired_mapCacheDelete; -var getMapData$3 = _getMapData; +function require_mapCacheDelete () { + if (hasRequired_mapCacheDelete) return _mapCacheDelete; + hasRequired_mapCacheDelete = 1; + var getMapData = require_getMapData(); -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete$1(key) { - var result = getMapData$3(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; + /** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; + } + + _mapCacheDelete = mapCacheDelete; + return _mapCacheDelete; } -var _mapCacheDelete = mapCacheDelete$1; +var _mapCacheGet; +var hasRequired_mapCacheGet; -var getMapData$2 = _getMapData; +function require_mapCacheGet () { + if (hasRequired_mapCacheGet) return _mapCacheGet; + hasRequired_mapCacheGet = 1; + var getMapData = require_getMapData(); -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet$1(key) { - return getMapData$2(this, key).get(key); + /** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + + _mapCacheGet = mapCacheGet; + return _mapCacheGet; } -var _mapCacheGet = mapCacheGet$1; +var _mapCacheHas; +var hasRequired_mapCacheHas; -var getMapData$1 = _getMapData; +function require_mapCacheHas () { + if (hasRequired_mapCacheHas) return _mapCacheHas; + hasRequired_mapCacheHas = 1; + var getMapData = require_getMapData(); -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas$1(key) { - return getMapData$1(this, key).has(key); + /** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + + _mapCacheHas = mapCacheHas; + return _mapCacheHas; } -var _mapCacheHas = mapCacheHas$1; +var _mapCacheSet; +var hasRequired_mapCacheSet; -var getMapData = _getMapData; +function require_mapCacheSet () { + if (hasRequired_mapCacheSet) return _mapCacheSet; + hasRequired_mapCacheSet = 1; + var getMapData = require_getMapData(); -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet$1(key, value) { - var data = getMapData(this, key), - size = data.size; + /** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ + function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + + _mapCacheSet = mapCacheSet; + return _mapCacheSet; } -var _mapCacheSet = mapCacheSet$1; +var _MapCache; +var hasRequired_MapCache; -var mapCacheClear = _mapCacheClear, - mapCacheDelete = _mapCacheDelete, - mapCacheGet = _mapCacheGet, - mapCacheHas = _mapCacheHas, - mapCacheSet = _mapCacheSet; +function require_MapCache () { + if (hasRequired_MapCache) return _MapCache; + hasRequired_MapCache = 1; + var mapCacheClear = require_mapCacheClear(), + mapCacheDelete = require_mapCacheDelete(), + mapCacheGet = require_mapCacheGet(), + mapCacheHas = require_mapCacheHas(), + mapCacheSet = require_mapCacheSet(); -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache$2(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `MapCache`. + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + + _MapCache = MapCache; + return _MapCache; } -// Add methods to `MapCache`. -MapCache$2.prototype.clear = mapCacheClear; -MapCache$2.prototype['delete'] = mapCacheDelete; -MapCache$2.prototype.get = mapCacheGet; -MapCache$2.prototype.has = mapCacheHas; -MapCache$2.prototype.set = mapCacheSet; +var _stackSet; +var hasRequired_stackSet; -var _MapCache = MapCache$2; +function require_stackSet () { + if (hasRequired_stackSet) return _stackSet; + hasRequired_stackSet = 1; + var ListCache = require_ListCache(), + Map = _Map, + MapCache = require_MapCache(); -var ListCache$1 = _ListCache, - Map$1 = _Map, - MapCache$1 = _MapCache; + /** Used as the size to enable large array optimizations. */ + var LARGE_ARRAY_SIZE = 200; -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; + /** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet$1(key, value) { - var data = this.__data__; - if (data instanceof ListCache$1) { - var pairs = data.__data__; - if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache$1(pairs); - } - data.set(key, value); - this.size = data.size; - return this; + _stackSet = stackSet; + return _stackSet; } -var _stackSet = stackSet$1; +var _Stack; +var hasRequired_Stack; -var ListCache = _ListCache, - stackClear = _stackClear, - stackDelete = _stackDelete, - stackGet = _stackGet, - stackHas = _stackHas, - stackSet = _stackSet; +function require_Stack () { + if (hasRequired_Stack) return _Stack; + hasRequired_Stack = 1; + var ListCache = require_ListCache(), + stackClear = require_stackClear(), + stackDelete = require_stackDelete(), + stackGet = require_stackGet(), + stackHas = require_stackHas(), + stackSet = require_stackSet(); -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack$1(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; -} + /** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } -// Add methods to `Stack`. -Stack$1.prototype.clear = stackClear; -Stack$1.prototype['delete'] = stackDelete; -Stack$1.prototype.get = stackGet; -Stack$1.prototype.has = stackHas; -Stack$1.prototype.set = stackSet; + // Add methods to `Stack`. + Stack.prototype.clear = stackClear; + Stack.prototype['delete'] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; -var _Stack = Stack$1; + _Stack = Stack; + return _Stack; +} /** * This function is like @@ -14896,7 +15120,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = _Stack, +var Stack = require_Stack(), arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15346,7 +15570,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = _MapCache, + var MapCache = require_MapCache(), setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -15807,7 +16031,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = _Stack, + var Stack = require_Stack(), equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -15936,7 +16160,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = _Stack, + var Stack = require_Stack(), baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16157,7 +16381,7 @@ function require_isKey () { return _isKey; } -var MapCache = _MapCache; +var MapCache = require_MapCache(); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; diff --git a/dist/index.esm.js b/dist/index.esm.js index cd97a46..d427ecc 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -10314,17 +10314,17 @@ var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$8 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$6 = objectProto$8.hasOwnProperty; +var hasOwnProperty$4 = objectProto$6.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$8.toString; +var nativeObjectToString$1 = objectProto$6.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10337,7 +10337,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10360,14 +10360,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$7 = Object.prototype; +var objectProto$5 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$7.toString; +var nativeObjectToString = objectProto$5.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -12733,20 +12733,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$2(value, other) { +function eq$1(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$2; +var eq_1 = eq$1; var baseAssignValue$1 = _baseAssignValue, - eq$1 = eq_1; + eq = eq_1; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$4 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$5 = objectProto$6.hasOwnProperty; +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -12760,7 +12760,7 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || + if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13484,184 +13484,248 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -function listCacheClear$1() { - this.__data__ = []; - this.size = 0; +var _listCacheClear; +var hasRequired_listCacheClear; + +function require_listCacheClear () { + if (hasRequired_listCacheClear) return _listCacheClear; + hasRequired_listCacheClear = 1; + function listCacheClear() { + this.__data__ = []; + this.size = 0; + } + + _listCacheClear = listCacheClear; + return _listCacheClear; } -var _listCacheClear = listCacheClear$1; +var _assocIndexOf; +var hasRequired_assocIndexOf; -var eq = eq_1; +function require_assocIndexOf () { + if (hasRequired_assocIndexOf) return _assocIndexOf; + hasRequired_assocIndexOf = 1; + var eq = eq_1; -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf$4(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; + /** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ + function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; + } + + _assocIndexOf = assocIndexOf; + return _assocIndexOf; } -var _assocIndexOf = assocIndexOf$4; +var _listCacheDelete; +var hasRequired_listCacheDelete; -var assocIndexOf$3 = _assocIndexOf; +function require_listCacheDelete () { + if (hasRequired_listCacheDelete) return _listCacheDelete; + hasRequired_listCacheDelete = 1; + var assocIndexOf = require_assocIndexOf(); -/** Used for built-in method references. */ -var arrayProto = Array.prototype; + /** Used for built-in method references. */ + var arrayProto = Array.prototype; -/** Built-in value references. */ -var splice = arrayProto.splice; + /** Built-in value references. */ + var splice = arrayProto.splice; -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete$1(key) { - var data = this.__data__, - index = assocIndexOf$3(data, key); + /** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; + } + + _listCacheDelete = listCacheDelete; + return _listCacheDelete; } -var _listCacheDelete = listCacheDelete$1; +var _listCacheGet; +var hasRequired_listCacheGet; -var assocIndexOf$2 = _assocIndexOf; +function require_listCacheGet () { + if (hasRequired_listCacheGet) return _listCacheGet; + hasRequired_listCacheGet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet$1(key) { - var data = this.__data__, - index = assocIndexOf$2(data, key); + /** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; + } - return index < 0 ? undefined : data[index][1]; + _listCacheGet = listCacheGet; + return _listCacheGet; } -var _listCacheGet = listCacheGet$1; +var _listCacheHas; +var hasRequired_listCacheHas; -var assocIndexOf$1 = _assocIndexOf; +function require_listCacheHas () { + if (hasRequired_listCacheHas) return _listCacheHas; + hasRequired_listCacheHas = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas$1(key) { - return assocIndexOf$1(this.__data__, key) > -1; + /** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; + } + + _listCacheHas = listCacheHas; + return _listCacheHas; } -var _listCacheHas = listCacheHas$1; +var _listCacheSet; +var hasRequired_listCacheSet; -var assocIndexOf = _assocIndexOf; +function require_listCacheSet () { + if (hasRequired_listCacheSet) return _listCacheSet; + hasRequired_listCacheSet = 1; + var assocIndexOf = require_assocIndexOf(); -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet$1(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); + /** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ + function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; + } - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; + _listCacheSet = listCacheSet; + return _listCacheSet; } -var _listCacheSet = listCacheSet$1; +var _ListCache; +var hasRequired_ListCache; -var listCacheClear = _listCacheClear, - listCacheDelete = _listCacheDelete, - listCacheGet = _listCacheGet, - listCacheHas = _listCacheHas, - listCacheSet = _listCacheSet; +function require_ListCache () { + if (hasRequired_ListCache) return _ListCache; + hasRequired_ListCache = 1; + var listCacheClear = require_listCacheClear(), + listCacheDelete = require_listCacheDelete(), + listCacheGet = require_listCacheGet(), + listCacheHas = require_listCacheHas(), + listCacheSet = require_listCacheSet(); -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache$4(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function ListCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `ListCache`. + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; + + _ListCache = ListCache; + return _ListCache; } -// Add methods to `ListCache`. -ListCache$4.prototype.clear = listCacheClear; -ListCache$4.prototype['delete'] = listCacheDelete; -ListCache$4.prototype.get = listCacheGet; -ListCache$4.prototype.has = listCacheHas; -ListCache$4.prototype.set = listCacheSet; +var _stackClear; +var hasRequired_stackClear; -var _ListCache = ListCache$4; +function require_stackClear () { + if (hasRequired_stackClear) return _stackClear; + hasRequired_stackClear = 1; + var ListCache = require_ListCache(); -var ListCache$3 = _ListCache; + /** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ + function stackClear() { + this.__data__ = new ListCache; + this.size = 0; + } -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear$1() { - this.__data__ = new ListCache$3; - this.size = 0; + _stackClear = stackClear; + return _stackClear; } -var _stackClear = stackClear$1; - /** * Removes `key` and its value from the stack. * @@ -13672,15 +13736,23 @@ var _stackClear = stackClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function stackDelete$1(key) { - var data = this.__data__, - result = data['delete'](key); +var _stackDelete; +var hasRequired_stackDelete; - this.size = data.size; - return result; -} +function require_stackDelete () { + if (hasRequired_stackDelete) return _stackDelete; + hasRequired_stackDelete = 1; + function stackDelete(key) { + var data = this.__data__, + result = data['delete'](key); -var _stackDelete = stackDelete$1; + this.size = data.size; + return result; + } + + _stackDelete = stackDelete; + return _stackDelete; +} /** * Gets the stack value for `key`. @@ -13692,11 +13764,19 @@ var _stackDelete = stackDelete$1; * @returns {*} Returns the entry value. */ -function stackGet$1(key) { - return this.__data__.get(key); -} +var _stackGet; +var hasRequired_stackGet; -var _stackGet = stackGet$1; +function require_stackGet () { + if (hasRequired_stackGet) return _stackGet; + hasRequired_stackGet = 1; + function stackGet(key) { + return this.__data__.get(key); + } + + _stackGet = stackGet; + return _stackGet; +} /** * Checks if a stack value for `key` exists. @@ -13708,42 +13788,66 @@ var _stackGet = stackGet$1; * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -function stackHas$1(key) { - return this.__data__.has(key); -} +var _stackHas; +var hasRequired_stackHas; -var _stackHas = stackHas$1; +function require_stackHas () { + if (hasRequired_stackHas) return _stackHas; + hasRequired_stackHas = 1; + function stackHas(key) { + return this.__data__.has(key); + } -var getNative$4 = require_getNative(), + _stackHas = stackHas; + return _stackHas; +} + +var getNative$3 = require_getNative(), root$4 = require_root(); /* Built-in method references that are verified to be native. */ -var Map$3 = getNative$4(root$4, 'Map'); - -var _Map = Map$3; +var Map$1 = getNative$3(root$4, 'Map'); -var getNative$3 = require_getNative(); +var _Map = Map$1; -/* Built-in method references that are verified to be native. */ -var nativeCreate$4 = getNative$3(Object, 'create'); +var _nativeCreate; +var hasRequired_nativeCreate; -var _nativeCreate = nativeCreate$4; +function require_nativeCreate () { + if (hasRequired_nativeCreate) return _nativeCreate; + hasRequired_nativeCreate = 1; + var getNative = require_getNative(); -var nativeCreate$3 = _nativeCreate; + /* Built-in method references that are verified to be native. */ + var nativeCreate = getNative(Object, 'create'); -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear$1() { - this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; - this.size = 0; + _nativeCreate = nativeCreate; + return _nativeCreate; } -var _hashClear = hashClear$1; +var _hashClear; +var hasRequired_hashClear; + +function require_hashClear () { + if (hasRequired_hashClear) return _hashClear; + hasRequired_hashClear = 1; + var nativeCreate = require_nativeCreate(); + + /** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ + function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; + this.size = 0; + } + + _hashClear = hashClear; + return _hashClear; +} /** * Removes `key` and its value from the hash. @@ -13756,148 +13860,196 @@ var _hashClear = hashClear$1; * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -function hashDelete$1(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; +var _hashDelete; +var hasRequired_hashDelete; + +function require_hashDelete () { + if (hasRequired_hashDelete) return _hashDelete; + hasRequired_hashDelete = 1; + function hashDelete(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; + } + + _hashDelete = hashDelete; + return _hashDelete; } -var _hashDelete = hashDelete$1; +var _hashGet; +var hasRequired_hashGet; -var nativeCreate$2 = _nativeCreate; +function require_hashGet () { + if (hasRequired_hashGet) return _hashGet; + hasRequired_hashGet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** Used for built-in method references. */ -var objectProto$5 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$5.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet$1(key) { - var data = this.__data__; - if (nativeCreate$2) { - var result = data[key]; - return result === HASH_UNDEFINED$1 ? undefined : result; - } - return hasOwnProperty$4.call(data, key) ? data[key] : undefined; + /** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; + } + + _hashGet = hashGet; + return _hashGet; } -var _hashGet = hashGet$1; +var _hashHas; +var hasRequired_hashHas; -var nativeCreate$1 = _nativeCreate; +function require_hashHas () { + if (hasRequired_hashHas) return _hashHas; + hasRequired_hashHas = 1; + var nativeCreate = require_nativeCreate(); -/** Used for built-in method references. */ -var objectProto$4 = Object.prototype; + /** Used for built-in method references. */ + var objectProto = Object.prototype; -/** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; + /** Used to check objects for own properties. */ + var hasOwnProperty = objectProto.hasOwnProperty; -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas$1(key) { - var data = this.__data__; - return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); + /** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function hashHas(key) { + var data = this.__data__; + return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); + } + + _hashHas = hashHas; + return _hashHas; } -var _hashHas = hashHas$1; +var _hashSet; +var hasRequired_hashSet; -var nativeCreate = _nativeCreate; +function require_hashSet () { + if (hasRequired_hashSet) return _hashSet; + hasRequired_hashSet = 1; + var nativeCreate = require_nativeCreate(); -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; + /** Used to stand-in for `undefined` hash values. */ + var HASH_UNDEFINED = '__lodash_hash_undefined__'; -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet$1(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; + /** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ + function hashSet(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; + } + + _hashSet = hashSet; + return _hashSet; } -var _hashSet = hashSet$1; +var _Hash; +var hasRequired_Hash; -var hashClear = _hashClear, - hashDelete = _hashDelete, - hashGet = _hashGet, - hashHas = _hashHas, - hashSet = _hashSet; +function require_Hash () { + if (hasRequired_Hash) return _Hash; + hasRequired_Hash = 1; + var hashClear = require_hashClear(), + hashDelete = require_hashDelete(), + hashGet = require_hashGet(), + hashHas = require_hashHas(), + hashSet = require_hashSet(); -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash$1(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Hash(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `Hash`. + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; + + _Hash = Hash; + return _Hash; } -// Add methods to `Hash`. -Hash$1.prototype.clear = hashClear; -Hash$1.prototype['delete'] = hashDelete; -Hash$1.prototype.get = hashGet; -Hash$1.prototype.has = hashHas; -Hash$1.prototype.set = hashSet; +var _mapCacheClear; +var hasRequired_mapCacheClear; -var _Hash = Hash$1; +function require_mapCacheClear () { + if (hasRequired_mapCacheClear) return _mapCacheClear; + hasRequired_mapCacheClear = 1; + var Hash = require_Hash(), + ListCache = require_ListCache(), + Map = _Map; -var Hash = _Hash, - ListCache$2 = _ListCache, - Map$2 = _Map; + /** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ + function mapCacheClear() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; + } -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear$1() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map$2 || ListCache$2), - 'string': new Hash - }; + _mapCacheClear = mapCacheClear; + return _mapCacheClear; } -var _mapCacheClear = mapCacheClear$1; - /** * Checks if `value` is suitable for use as unique object key. * @@ -13906,205 +14058,277 @@ var _mapCacheClear = mapCacheClear$1; * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -function isKeyable$1(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); +var _isKeyable; +var hasRequired_isKeyable; + +function require_isKeyable () { + if (hasRequired_isKeyable) return _isKeyable; + hasRequired_isKeyable = 1; + function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); + } + + _isKeyable = isKeyable; + return _isKeyable; } -var _isKeyable = isKeyable$1; +var _getMapData; +var hasRequired_getMapData; -var isKeyable = _isKeyable; +function require_getMapData () { + if (hasRequired_getMapData) return _getMapData; + hasRequired_getMapData = 1; + var isKeyable = require_isKeyable(); -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData$4(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; + /** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ + function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; + } + + _getMapData = getMapData; + return _getMapData; } -var _getMapData = getMapData$4; +var _mapCacheDelete; +var hasRequired_mapCacheDelete; -var getMapData$3 = _getMapData; +function require_mapCacheDelete () { + if (hasRequired_mapCacheDelete) return _mapCacheDelete; + hasRequired_mapCacheDelete = 1; + var getMapData = require_getMapData(); -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete$1(key) { - var result = getMapData$3(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; + /** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ + function mapCacheDelete(key) { + var result = getMapData(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; + } + + _mapCacheDelete = mapCacheDelete; + return _mapCacheDelete; } -var _mapCacheDelete = mapCacheDelete$1; +var _mapCacheGet; +var hasRequired_mapCacheGet; -var getMapData$2 = _getMapData; +function require_mapCacheGet () { + if (hasRequired_mapCacheGet) return _mapCacheGet; + hasRequired_mapCacheGet = 1; + var getMapData = require_getMapData(); -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet$1(key) { - return getMapData$2(this, key).get(key); + /** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ + function mapCacheGet(key) { + return getMapData(this, key).get(key); + } + + _mapCacheGet = mapCacheGet; + return _mapCacheGet; } -var _mapCacheGet = mapCacheGet$1; +var _mapCacheHas; +var hasRequired_mapCacheHas; -var getMapData$1 = _getMapData; +function require_mapCacheHas () { + if (hasRequired_mapCacheHas) return _mapCacheHas; + hasRequired_mapCacheHas = 1; + var getMapData = require_getMapData(); -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas$1(key) { - return getMapData$1(this, key).has(key); + /** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ + function mapCacheHas(key) { + return getMapData(this, key).has(key); + } + + _mapCacheHas = mapCacheHas; + return _mapCacheHas; } -var _mapCacheHas = mapCacheHas$1; +var _mapCacheSet; +var hasRequired_mapCacheSet; -var getMapData = _getMapData; +function require_mapCacheSet () { + if (hasRequired_mapCacheSet) return _mapCacheSet; + hasRequired_mapCacheSet = 1; + var getMapData = require_getMapData(); -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet$1(key, value) { - var data = getMapData(this, key), - size = data.size; + /** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ + function mapCacheSet(key, value) { + var data = getMapData(this, key), + size = data.size; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; + } + + _mapCacheSet = mapCacheSet; + return _mapCacheSet; } -var _mapCacheSet = mapCacheSet$1; +var _MapCache; +var hasRequired_MapCache; -var mapCacheClear = _mapCacheClear, - mapCacheDelete = _mapCacheDelete, - mapCacheGet = _mapCacheGet, - mapCacheHas = _mapCacheHas, - mapCacheSet = _mapCacheSet; +function require_MapCache () { + if (hasRequired_MapCache) return _MapCache; + hasRequired_MapCache = 1; + var mapCacheClear = require_mapCacheClear(), + mapCacheDelete = require_mapCacheDelete(), + mapCacheGet = require_mapCacheGet(), + mapCacheHas = require_mapCacheHas(), + mapCacheSet = require_mapCacheSet(); -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache$2(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; + /** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function MapCache(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } + } + + // Add methods to `MapCache`. + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; + + _MapCache = MapCache; + return _MapCache; } -// Add methods to `MapCache`. -MapCache$2.prototype.clear = mapCacheClear; -MapCache$2.prototype['delete'] = mapCacheDelete; -MapCache$2.prototype.get = mapCacheGet; -MapCache$2.prototype.has = mapCacheHas; -MapCache$2.prototype.set = mapCacheSet; +var _stackSet; +var hasRequired_stackSet; -var _MapCache = MapCache$2; +function require_stackSet () { + if (hasRequired_stackSet) return _stackSet; + hasRequired_stackSet = 1; + var ListCache = require_ListCache(), + Map = _Map, + MapCache = require_MapCache(); -var ListCache$1 = _ListCache, - Map$1 = _Map, - MapCache$1 = _MapCache; + /** Used as the size to enable large array optimizations. */ + var LARGE_ARRAY_SIZE = 200; -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; + /** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ + function stackSet(key, value) { + var data = this.__data__; + if (data instanceof ListCache) { + var pairs = data.__data__; + if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache(pairs); + } + data.set(key, value); + this.size = data.size; + return this; + } -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet$1(key, value) { - var data = this.__data__; - if (data instanceof ListCache$1) { - var pairs = data.__data__; - if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache$1(pairs); - } - data.set(key, value); - this.size = data.size; - return this; + _stackSet = stackSet; + return _stackSet; } -var _stackSet = stackSet$1; +var _Stack; +var hasRequired_Stack; -var ListCache = _ListCache, - stackClear = _stackClear, - stackDelete = _stackDelete, - stackGet = _stackGet, - stackHas = _stackHas, - stackSet = _stackSet; +function require_Stack () { + if (hasRequired_Stack) return _Stack; + hasRequired_Stack = 1; + var ListCache = require_ListCache(), + stackClear = require_stackClear(), + stackDelete = require_stackDelete(), + stackGet = require_stackGet(), + stackHas = require_stackHas(), + stackSet = require_stackSet(); -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack$1(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; -} + /** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ + function Stack(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; + } -// Add methods to `Stack`. -Stack$1.prototype.clear = stackClear; -Stack$1.prototype['delete'] = stackDelete; -Stack$1.prototype.get = stackGet; -Stack$1.prototype.has = stackHas; -Stack$1.prototype.set = stackSet; + // Add methods to `Stack`. + Stack.prototype.clear = stackClear; + Stack.prototype['delete'] = stackDelete; + Stack.prototype.get = stackGet; + Stack.prototype.has = stackHas; + Stack.prototype.set = stackSet; -var _Stack = Stack$1; + _Stack = Stack; + return _Stack; +} /** * This function is like @@ -14887,7 +15111,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = _Stack, +var Stack = require_Stack(), arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15337,7 +15561,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = _MapCache, + var MapCache = require_MapCache(), setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -15798,7 +16022,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = _Stack, + var Stack = require_Stack(), equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -15927,7 +16151,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = _Stack, + var Stack = require_Stack(), baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16148,7 +16372,7 @@ function require_isKey () { return _isKey; } -var MapCache = _MapCache; +var MapCache = require_MapCache(); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; From f910c9cc940750970c565da723b9486ce6b1abce Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 15:08:57 -0700 Subject: [PATCH 6/9] Fix title in playground app --- playground/public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/public/index.html b/playground/public/index.html index aa069f2..f25283e 100644 --- a/playground/public/index.html +++ b/playground/public/index.html @@ -24,7 +24,7 @@ work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> - React App + PCIC React Leaflet Components Demo From ea57ceabd34703a532897ed1c6bf92a4692ac853 Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 15:09:19 -0700 Subject: [PATCH 7/9] Use createRoot to render playground app --- playground/src/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/playground/src/index.js b/playground/src/index.js index 2576295..4a4b7e7 100644 --- a/playground/src/index.js +++ b/playground/src/index.js @@ -4,12 +4,15 @@ import 'bootstrap/dist/css/bootstrap.min.css'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; +import {createRoot} from "react-dom/client"; -ReactDOM.render( +let container = document.getElementById('root'); +const root = createRoot(container); + +root.render( - , - document.getElementById('root') + ); // If you want to start measuring performance in your app, pass a function From e85228a7d2ab8c22f67b66280a5ae6f618b05db2 Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 15:09:55 -0700 Subject: [PATCH 8/9] DemoStaticControl WIP --- playground/src/DemoStaticControl.js | 59 ++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/playground/src/DemoStaticControl.js b/playground/src/DemoStaticControl.js index 8ba19cc..bf8a1d4 100644 --- a/playground/src/DemoStaticControl.js +++ b/playground/src/DemoStaticControl.js @@ -1,6 +1,6 @@ import React, { useState } from 'react'; import { Col, Form, Row } from 'react-bootstrap'; -import { MapContainer } from 'react-leaflet'; +import {MapContainer, Marker, Popup, TileLayer} from 'react-leaflet'; import { StaticControl } from 'pcic-react-leaflet-components'; @@ -15,6 +15,63 @@ function DemoStaticControl() { setContent(e.target.value) }; + return ( + + + +
+ + Position + + { + "topleft topright bottomleft bottomright".split(" ").map( + pos => () + ) + } + + +
+ + +
+ + Content + + +
+ +
+ + + Map goes here + + + + + A pretty CSS3 popup.
Easily customizable. +
+
+ {content} +
+ +
+
+ ) + + + return ( + <> +
+ DemoStaticControl +
+ + ) + + return "DemoStaticControl" + return ( From 674c2269d6f433a0b1c76138c3ca8f0514a31f6e Mon Sep 17 00:00:00 2001 From: rod-glover Date: Tue, 18 Jun 2024 15:16:05 -0700 Subject: [PATCH 9/9] WIP --- dist/index.cjs.js | 1224 ++++++++++++++-------------------- dist/index.esm.js | 1224 ++++++++++++++-------------------- package-lock.json | 35 +- package.json | 1 + playground/package-lock.json | 1 + 5 files changed, 1028 insertions(+), 1457 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 018fe4d..d058469 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -7,7 +7,7 @@ var reactLeaflet = require('react-leaflet'); var L = require('leaflet'); require('leaflet/dist/leaflet.css'); var client = require('react-dom/client'); -require('react-dom'); +var core = require('@react-leaflet/core'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } @@ -10206,16 +10206,6 @@ const SetView = _ref => { return null; }; -const LeafletContext = React.createContext(null); -LeafletContext.Provider; -function useLeafletContext() { - const context = React.useContext(LeafletContext); - if (context == null) { - throw new Error('No context provided: useLeafletContext() can only be used in a descendant of '); - } - return context; -} - L__default["default"].Control.Static = L__default["default"].Control.extend({ onAdd: map => { const container = L__default["default"].DomUtil.create('div', 'leaflet-control-static leaflet-control'); @@ -10230,7 +10220,7 @@ function StaticControl(_ref) { children, ...rest } = _ref; - const context = useLeafletContext(); + const context = core.useLeafletContext(); React.useEffect(() => { const control = L__default["default"].control.static(rest); control.addTo(context.map); @@ -10313,27 +10303,27 @@ function require_root () { return _root; } -var root$9 = require_root(); +var root$8 = require_root(); /** Built-in value references. */ -var Symbol$5 = root$9.Symbol; +var Symbol$5 = root$8.Symbol; var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$8 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$6.hasOwnProperty; +var hasOwnProperty$6 = objectProto$8.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$6.toString; +var nativeObjectToString$1 = objectProto$8.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10346,7 +10336,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10369,14 +10359,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$5 = Object.prototype; +var objectProto$7 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$5.toString; +var nativeObjectToString = objectProto$7.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -10795,7 +10785,7 @@ function createCtor$4(Ctor) { var _createCtor = createCtor$4; var createCtor$3 = _createCtor, - root$8 = require_root(); + root$7 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$6 = 1; @@ -10815,7 +10805,7 @@ function createBind$1(func, bitmask, thisArg) { Ctor = createCtor$3(func); function wrapper() { - var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func; return fn.apply(isBind ? thisArg : this, arguments); } return wrapper; @@ -12063,7 +12053,7 @@ var composeArgs$1 = _composeArgs, getHolder$1 = _getHolder, reorder = _reorder, replaceHolders$2 = _replaceHolders, - root$7 = require_root(); + root$6 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$3 = 1, @@ -12138,7 +12128,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight if (isAry && ary < length) { args.length = ary; } - if (this && this !== root$7 && this instanceof wrapper) { + if (this && this !== root$6 && this instanceof wrapper) { fn = Ctor || createCtor$2(fn); } return fn.apply(thisBinding, args); @@ -12154,7 +12144,7 @@ var apply$1 = require_apply(), createRecurry = _createRecurry, getHolder = _getHolder, replaceHolders$1 = _replaceHolders, - root$6 = require_root(); + root$5 = require_root(); /** * Creates a function that wraps `func` to enable currying. @@ -12187,7 +12177,7 @@ function createCurry$1(func, bitmask, arity) { func, bitmask, createHybrid$1, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } - var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; return apply$1(fn, this, args); } return wrapper; @@ -12197,7 +12187,7 @@ var _createCurry = createCurry$1; var apply = require_apply(), createCtor = _createCtor, - root$5 = require_root(); + root$4 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$2 = 1; @@ -12224,7 +12214,7 @@ function createPartial$1(func, bitmask, thisArg, partials) { leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), - fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; + fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; @@ -12742,20 +12732,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$1(value, other) { +function eq$2(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$1; +var eq_1 = eq$2; var baseAssignValue$1 = _baseAssignValue, - eq = eq_1; + eq$1 = eq_1; /** Used for built-in method references. */ -var objectProto$4 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; +var hasOwnProperty$5 = objectProto$6.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -12769,7 +12759,7 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || + if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13493,248 +13483,184 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -var _listCacheClear; -var hasRequired_listCacheClear; - -function require_listCacheClear () { - if (hasRequired_listCacheClear) return _listCacheClear; - hasRequired_listCacheClear = 1; - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - - _listCacheClear = listCacheClear; - return _listCacheClear; +function listCacheClear$1() { + this.__data__ = []; + this.size = 0; } -var _assocIndexOf; -var hasRequired_assocIndexOf; - -function require_assocIndexOf () { - if (hasRequired_assocIndexOf) return _assocIndexOf; - hasRequired_assocIndexOf = 1; - var eq = eq_1; +var _listCacheClear = listCacheClear$1; - /** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } +var eq = eq_1; - _assocIndexOf = assocIndexOf; - return _assocIndexOf; +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf$4(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; } -var _listCacheDelete; -var hasRequired_listCacheDelete; +var _assocIndexOf = assocIndexOf$4; -function require_listCacheDelete () { - if (hasRequired_listCacheDelete) return _listCacheDelete; - hasRequired_listCacheDelete = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf$3 = _assocIndexOf; - /** Used for built-in method references. */ - var arrayProto = Array.prototype; - - /** Built-in value references. */ - var splice = arrayProto.splice; +/** Used for built-in method references. */ +var arrayProto = Array.prototype; - /** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +/** Built-in value references. */ +var splice = arrayProto.splice; - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete$1(key) { + var data = this.__data__, + index = assocIndexOf$3(data, key); - _listCacheDelete = listCacheDelete; - return _listCacheDelete; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; } -var _listCacheGet; -var hasRequired_listCacheGet; - -function require_listCacheGet () { - if (hasRequired_listCacheGet) return _listCacheGet; - hasRequired_listCacheGet = 1; - var assocIndexOf = require_assocIndexOf(); +var _listCacheDelete = listCacheDelete$1; - /** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +var assocIndexOf$2 = _assocIndexOf; - return index < 0 ? undefined : data[index][1]; - } +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet$1(key) { + var data = this.__data__, + index = assocIndexOf$2(data, key); - _listCacheGet = listCacheGet; - return _listCacheGet; + return index < 0 ? undefined : data[index][1]; } -var _listCacheHas; -var hasRequired_listCacheHas; +var _listCacheGet = listCacheGet$1; -function require_listCacheHas () { - if (hasRequired_listCacheHas) return _listCacheHas; - hasRequired_listCacheHas = 1; - var assocIndexOf = require_assocIndexOf(); - - /** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } +var assocIndexOf$1 = _assocIndexOf; - _listCacheHas = listCacheHas; - return _listCacheHas; +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas$1(key) { + return assocIndexOf$1(this.__data__, key) > -1; } -var _listCacheSet; -var hasRequired_listCacheSet; +var _listCacheHas = listCacheHas$1; -function require_listCacheSet () { - if (hasRequired_listCacheSet) return _listCacheSet; - hasRequired_listCacheSet = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf = _assocIndexOf; - /** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ - function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet$1(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); - _listCacheSet = listCacheSet; - return _listCacheSet; + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; } -var _ListCache; -var hasRequired_ListCache; +var _listCacheSet = listCacheSet$1; -function require_ListCache () { - if (hasRequired_ListCache) return _ListCache; - hasRequired_ListCache = 1; - var listCacheClear = require_listCacheClear(), - listCacheDelete = require_listCacheDelete(), - listCacheGet = require_listCacheGet(), - listCacheHas = require_listCacheHas(), - listCacheSet = require_listCacheSet(); +var listCacheClear = _listCacheClear, + listCacheDelete = _listCacheDelete, + listCacheGet = _listCacheGet, + listCacheHas = _listCacheHas, + listCacheSet = _listCacheSet; - /** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear; - ListCache.prototype['delete'] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache$4(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _ListCache = ListCache; - return _ListCache; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _stackClear; -var hasRequired_stackClear; +// Add methods to `ListCache`. +ListCache$4.prototype.clear = listCacheClear; +ListCache$4.prototype['delete'] = listCacheDelete; +ListCache$4.prototype.get = listCacheGet; +ListCache$4.prototype.has = listCacheHas; +ListCache$4.prototype.set = listCacheSet; -function require_stackClear () { - if (hasRequired_stackClear) return _stackClear; - hasRequired_stackClear = 1; - var ListCache = require_ListCache(); +var _ListCache = ListCache$4; - /** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ - function stackClear() { - this.__data__ = new ListCache; - this.size = 0; - } +var ListCache$3 = _ListCache; - _stackClear = stackClear; - return _stackClear; +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear$1() { + this.__data__ = new ListCache$3; + this.size = 0; } +var _stackClear = stackClear$1; + /** * Removes `key` and its value from the stack. * @@ -13745,24 +13671,16 @@ function require_stackClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _stackDelete; -var hasRequired_stackDelete; - -function require_stackDelete () { - if (hasRequired_stackDelete) return _stackDelete; - hasRequired_stackDelete = 1; - function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; - } +function stackDelete$1(key) { + var data = this.__data__, + result = data['delete'](key); - _stackDelete = stackDelete; - return _stackDelete; + this.size = data.size; + return result; } +var _stackDelete = stackDelete$1; + /** * Gets the stack value for `key`. * @@ -13773,20 +13691,12 @@ function require_stackDelete () { * @returns {*} Returns the entry value. */ -var _stackGet; -var hasRequired_stackGet; - -function require_stackGet () { - if (hasRequired_stackGet) return _stackGet; - hasRequired_stackGet = 1; - function stackGet(key) { - return this.__data__.get(key); - } - - _stackGet = stackGet; - return _stackGet; +function stackGet$1(key) { + return this.__data__.get(key); } +var _stackGet = stackGet$1; + /** * Checks if a stack value for `key` exists. * @@ -13797,67 +13707,43 @@ function require_stackGet () { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -var _stackHas; -var hasRequired_stackHas; - -function require_stackHas () { - if (hasRequired_stackHas) return _stackHas; - hasRequired_stackHas = 1; - function stackHas(key) { - return this.__data__.has(key); - } - - _stackHas = stackHas; - return _stackHas; +function stackHas$1(key) { + return this.__data__.has(key); } -var getNative$3 = require_getNative(), - root$4 = require_root(); +var _stackHas = stackHas$1; -/* Built-in method references that are verified to be native. */ -var Map$1 = getNative$3(root$4, 'Map'); +var getNative$4 = require_getNative(), + root$3 = require_root(); -var _Map = Map$1; +/* Built-in method references that are verified to be native. */ +var Map$3 = getNative$4(root$3, 'Map'); -var _nativeCreate; -var hasRequired_nativeCreate; +var _Map = Map$3; -function require_nativeCreate () { - if (hasRequired_nativeCreate) return _nativeCreate; - hasRequired_nativeCreate = 1; - var getNative = require_getNative(); +var getNative$3 = require_getNative(); - /* Built-in method references that are verified to be native. */ - var nativeCreate = getNative(Object, 'create'); - - _nativeCreate = nativeCreate; - return _nativeCreate; -} +/* Built-in method references that are verified to be native. */ +var nativeCreate$4 = getNative$3(Object, 'create'); -var _hashClear; -var hasRequired_hashClear; +var _nativeCreate = nativeCreate$4; -function require_hashClear () { - if (hasRequired_hashClear) return _hashClear; - hasRequired_hashClear = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate$3 = _nativeCreate; - /** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - - _hashClear = hashClear; - return _hashClear; +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear$1() { + this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; + this.size = 0; } +var _hashClear = hashClear$1; + /** * Removes `key` and its value from the hash. * @@ -13869,196 +13755,148 @@ function require_hashClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _hashDelete; -var hasRequired_hashDelete; - -function require_hashDelete () { - if (hasRequired_hashDelete) return _hashDelete; - hasRequired_hashDelete = 1; - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - - _hashDelete = hashDelete; - return _hashDelete; +function hashDelete$1(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } -var _hashGet; -var hasRequired_hashGet; - -function require_hashGet () { - if (hasRequired_hashGet) return _hashGet; - hasRequired_hashGet = 1; - var nativeCreate = require_nativeCreate(); +var _hashDelete = hashDelete$1; - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; +var nativeCreate$2 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$5 = Object.prototype; - /** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; - } +/** Used to check objects for own properties. */ +var hasOwnProperty$4 = objectProto$5.hasOwnProperty; - _hashGet = hashGet; - return _hashGet; +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet$1(key) { + var data = this.__data__; + if (nativeCreate$2) { + var result = data[key]; + return result === HASH_UNDEFINED$1 ? undefined : result; + } + return hasOwnProperty$4.call(data, key) ? data[key] : undefined; } -var _hashHas; -var hasRequired_hashHas; +var _hashGet = hashGet$1; -function require_hashHas () { - if (hasRequired_hashHas) return _hashHas; - hasRequired_hashHas = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate$1 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; - - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$4 = Object.prototype; - /** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); - } +/** Used to check objects for own properties. */ +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; - _hashHas = hashHas; - return _hashHas; +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas$1(key) { + var data = this.__data__; + return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); } -var _hashSet; -var hasRequired_hashSet; +var _hashHas = hashHas$1; -function require_hashSet () { - if (hasRequired_hashSet) return _hashSet; - hasRequired_hashSet = 1; - var nativeCreate = require_nativeCreate(); - - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; +var nativeCreate = _nativeCreate; - /** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; - } +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; - _hashSet = hashSet; - return _hashSet; +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet$1(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; } -var _Hash; -var hasRequired_Hash; - -function require_Hash () { - if (hasRequired_Hash) return _Hash; - hasRequired_Hash = 1; - var hashClear = require_hashClear(), - hashDelete = require_hashDelete(), - hashGet = require_hashGet(), - hashHas = require_hashHas(), - hashSet = require_hashSet(); +var _hashSet = hashSet$1; - /** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var hashClear = _hashClear, + hashDelete = _hashDelete, + hashGet = _hashGet, + hashHas = _hashHas, + hashSet = _hashSet; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - // Add methods to `Hash`. - Hash.prototype.clear = hashClear; - Hash.prototype['delete'] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash$1(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _Hash = Hash; - return _Hash; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _mapCacheClear; -var hasRequired_mapCacheClear; +// Add methods to `Hash`. +Hash$1.prototype.clear = hashClear; +Hash$1.prototype['delete'] = hashDelete; +Hash$1.prototype.get = hashGet; +Hash$1.prototype.has = hashHas; +Hash$1.prototype.set = hashSet; -function require_mapCacheClear () { - if (hasRequired_mapCacheClear) return _mapCacheClear; - hasRequired_mapCacheClear = 1; - var Hash = require_Hash(), - ListCache = require_ListCache(), - Map = _Map; +var _Hash = Hash$1; - /** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ - function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; - } +var Hash = _Hash, + ListCache$2 = _ListCache, + Map$2 = _Map; - _mapCacheClear = mapCacheClear; - return _mapCacheClear; +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear$1() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map$2 || ListCache$2), + 'string': new Hash + }; } +var _mapCacheClear = mapCacheClear$1; + /** * Checks if `value` is suitable for use as unique object key. * @@ -14067,277 +13905,205 @@ function require_mapCacheClear () { * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -var _isKeyable; -var hasRequired_isKeyable; - -function require_isKeyable () { - if (hasRequired_isKeyable) return _isKeyable; - hasRequired_isKeyable = 1; - function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); - } - - _isKeyable = isKeyable; - return _isKeyable; +function isKeyable$1(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); } -var _getMapData; -var hasRequired_getMapData; +var _isKeyable = isKeyable$1; -function require_getMapData () { - if (hasRequired_getMapData) return _getMapData; - hasRequired_getMapData = 1; - var isKeyable = require_isKeyable(); - - /** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; - } +var isKeyable = _isKeyable; - _getMapData = getMapData; - return _getMapData; +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData$4(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } -var _mapCacheDelete; -var hasRequired_mapCacheDelete; - -function require_mapCacheDelete () { - if (hasRequired_mapCacheDelete) return _mapCacheDelete; - hasRequired_mapCacheDelete = 1; - var getMapData = require_getMapData(); +var _getMapData = getMapData$4; - /** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; - } +var getMapData$3 = _getMapData; - _mapCacheDelete = mapCacheDelete; - return _mapCacheDelete; +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete$1(key) { + var result = getMapData$3(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; } -var _mapCacheGet; -var hasRequired_mapCacheGet; +var _mapCacheDelete = mapCacheDelete$1; -function require_mapCacheGet () { - if (hasRequired_mapCacheGet) return _mapCacheGet; - hasRequired_mapCacheGet = 1; - var getMapData = require_getMapData(); +var getMapData$2 = _getMapData; - /** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - - _mapCacheGet = mapCacheGet; - return _mapCacheGet; +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet$1(key) { + return getMapData$2(this, key).get(key); } -var _mapCacheHas; -var hasRequired_mapCacheHas; - -function require_mapCacheHas () { - if (hasRequired_mapCacheHas) return _mapCacheHas; - hasRequired_mapCacheHas = 1; - var getMapData = require_getMapData(); +var _mapCacheGet = mapCacheGet$1; - /** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } +var getMapData$1 = _getMapData; - _mapCacheHas = mapCacheHas; - return _mapCacheHas; +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas$1(key) { + return getMapData$1(this, key).has(key); } -var _mapCacheSet; -var hasRequired_mapCacheSet; - -function require_mapCacheSet () { - if (hasRequired_mapCacheSet) return _mapCacheSet; - hasRequired_mapCacheSet = 1; - var getMapData = require_getMapData(); +var _mapCacheHas = mapCacheHas$1; - /** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ - function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; +var getMapData = _getMapData; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet$1(key, value) { + var data = getMapData(this, key), + size = data.size; - _mapCacheSet = mapCacheSet; - return _mapCacheSet; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; } -var _MapCache; -var hasRequired_MapCache; - -function require_MapCache () { - if (hasRequired_MapCache) return _MapCache; - hasRequired_MapCache = 1; - var mapCacheClear = require_mapCacheClear(), - mapCacheDelete = require_mapCacheDelete(), - mapCacheGet = require_mapCacheGet(), - mapCacheHas = require_mapCacheHas(), - mapCacheSet = require_mapCacheSet(); - - /** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var _mapCacheSet = mapCacheSet$1; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } +var mapCacheClear = _mapCacheClear, + mapCacheDelete = _mapCacheDelete, + mapCacheGet = _mapCacheGet, + mapCacheHas = _mapCacheHas, + mapCacheSet = _mapCacheSet; - // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype['delete'] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache$2(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _MapCache = MapCache; - return _MapCache; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _stackSet; -var hasRequired_stackSet; +// Add methods to `MapCache`. +MapCache$2.prototype.clear = mapCacheClear; +MapCache$2.prototype['delete'] = mapCacheDelete; +MapCache$2.prototype.get = mapCacheGet; +MapCache$2.prototype.has = mapCacheHas; +MapCache$2.prototype.set = mapCacheSet; -function require_stackSet () { - if (hasRequired_stackSet) return _stackSet; - hasRequired_stackSet = 1; - var ListCache = require_ListCache(), - Map = _Map, - MapCache = require_MapCache(); +var _MapCache = MapCache$2; - /** Used as the size to enable large array optimizations. */ - var LARGE_ARRAY_SIZE = 200; +var ListCache$1 = _ListCache, + Map$1 = _Map, + MapCache$1 = _MapCache; - /** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; - _stackSet = stackSet; - return _stackSet; +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet$1(key, value) { + var data = this.__data__; + if (data instanceof ListCache$1) { + var pairs = data.__data__; + if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache$1(pairs); + } + data.set(key, value); + this.size = data.size; + return this; } -var _Stack; -var hasRequired_Stack; +var _stackSet = stackSet$1; -function require_Stack () { - if (hasRequired_Stack) return _Stack; - hasRequired_Stack = 1; - var ListCache = require_ListCache(), - stackClear = require_stackClear(), - stackDelete = require_stackDelete(), - stackGet = require_stackGet(), - stackHas = require_stackHas(), - stackSet = require_stackSet(); +var ListCache = _ListCache, + stackClear = _stackClear, + stackDelete = _stackDelete, + stackGet = _stackGet, + stackHas = _stackHas, + stackSet = _stackSet; - /** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack$1(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} - // Add methods to `Stack`. - Stack.prototype.clear = stackClear; - Stack.prototype['delete'] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; +// Add methods to `Stack`. +Stack$1.prototype.clear = stackClear; +Stack$1.prototype['delete'] = stackDelete; +Stack$1.prototype.get = stackGet; +Stack$1.prototype.has = stackHas; +Stack$1.prototype.set = stackSet; - _Stack = Stack; - return _Stack; -} +var _Stack = Stack$1; /** * This function is like @@ -14723,26 +14489,26 @@ function getAllKeysIn$1(object) { var _getAllKeysIn = getAllKeysIn$1; var getNative$2 = require_getNative(), - root$3 = require_root(); + root$2 = require_root(); /* Built-in method references that are verified to be native. */ -var DataView$2 = getNative$2(root$3, 'DataView'); +var DataView$2 = getNative$2(root$2, 'DataView'); var _DataView = DataView$2; var getNative$1 = require_getNative(), - root$2 = require_root(); + root$1 = require_root(); /* Built-in method references that are verified to be native. */ -var Promise$2 = getNative$1(root$2, 'Promise'); +var Promise$2 = getNative$1(root$1, 'Promise'); var _Promise = Promise$2; var getNative = require_getNative(), - root$1 = require_root(); + root = require_root(); /* Built-in method references that are verified to be native. */ -var Set$1 = getNative(root$1, 'Set'); +var Set$1 = getNative(root, 'Set'); var _Set = Set$1; @@ -14833,14 +14599,22 @@ function initCloneArray$1(array) { var _initCloneArray = initCloneArray$1; -var root = require_root(); +var _Uint8Array; +var hasRequired_Uint8Array; -/** Built-in value references. */ -var Uint8Array$2 = root.Uint8Array; +function require_Uint8Array () { + if (hasRequired_Uint8Array) return _Uint8Array; + hasRequired_Uint8Array = 1; + var root = require_root(); -var _Uint8Array = Uint8Array$2; + /** Built-in value references. */ + var Uint8Array = root.Uint8Array; + + _Uint8Array = Uint8Array; + return _Uint8Array; +} -var Uint8Array$1 = _Uint8Array; +var Uint8Array$1 = require_Uint8Array(); /** * Creates a clone of `arrayBuffer`. @@ -15120,7 +14894,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = require_Stack(), +var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15570,7 +15344,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = require_MapCache(), + var MapCache = _MapCache, setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -15812,7 +15586,7 @@ function require_equalByTag () { if (hasRequired_equalByTag) return _equalByTag; hasRequired_equalByTag = 1; var Symbol = _Symbol, - Uint8Array = _Uint8Array, + Uint8Array = require_Uint8Array(), eq = eq_1, equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), @@ -16031,7 +15805,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = require_Stack(), + var Stack = _Stack, equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -16160,7 +15934,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = require_Stack(), + var Stack = _Stack, baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16381,7 +16155,7 @@ function require_isKey () { return _isKey; } -var MapCache = require_MapCache(); +var MapCache = _MapCache; /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; diff --git a/dist/index.esm.js b/dist/index.esm.js index d427ecc..8ff7ad3 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -1,9 +1,9 @@ -import React, { PureComponent, useEffect, createContext, useContext, useState } from 'react'; +import React, { PureComponent, useEffect, useState } from 'react'; import { MapContainer, TileLayer, useMap, useMapEvents, SVGOverlay } from 'react-leaflet'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; import { createRoot } from 'react-dom/client'; -import 'react-dom'; +import { useLeafletContext } from '@react-leaflet/core'; function _mergeNamespaces(n, m) { m.forEach(function (e) { @@ -10197,16 +10197,6 @@ const SetView = _ref => { return null; }; -const LeafletContext = createContext(null); -LeafletContext.Provider; -function useLeafletContext() { - const context = useContext(LeafletContext); - if (context == null) { - throw new Error('No context provided: useLeafletContext() can only be used in a descendant of '); - } - return context; -} - L.Control.Static = L.Control.extend({ onAdd: map => { const container = L.DomUtil.create('div', 'leaflet-control-static leaflet-control'); @@ -10304,27 +10294,27 @@ function require_root () { return _root; } -var root$9 = require_root(); +var root$8 = require_root(); /** Built-in value references. */ -var Symbol$5 = root$9.Symbol; +var Symbol$5 = root$8.Symbol; var _Symbol = Symbol$5; var Symbol$4 = _Symbol; /** Used for built-in method references. */ -var objectProto$6 = Object.prototype; +var objectProto$8 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$4 = objectProto$6.hasOwnProperty; +var hasOwnProperty$6 = objectProto$8.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString$1 = objectProto$6.toString; +var nativeObjectToString$1 = objectProto$8.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; @@ -10337,7 +10327,7 @@ var symToStringTag$1 = Symbol$4 ? Symbol$4.toStringTag : undefined; * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { - var isOwn = hasOwnProperty$4.call(value, symToStringTag$1), + var isOwn = hasOwnProperty$6.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { @@ -10360,14 +10350,14 @@ var _getRawTag = getRawTag$1; /** Used for built-in method references. */ -var objectProto$5 = Object.prototype; +var objectProto$7 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ -var nativeObjectToString = objectProto$5.toString; +var nativeObjectToString = objectProto$7.toString; /** * Converts `value` to a string using `Object.prototype.toString`. @@ -10786,7 +10776,7 @@ function createCtor$4(Ctor) { var _createCtor = createCtor$4; var createCtor$3 = _createCtor, - root$8 = require_root(); + root$7 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$6 = 1; @@ -10806,7 +10796,7 @@ function createBind$1(func, bitmask, thisArg) { Ctor = createCtor$3(func); function wrapper() { - var fn = (this && this !== root$8 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$7 && this instanceof wrapper) ? Ctor : func; return fn.apply(isBind ? thisArg : this, arguments); } return wrapper; @@ -12054,7 +12044,7 @@ var composeArgs$1 = _composeArgs, getHolder$1 = _getHolder, reorder = _reorder, replaceHolders$2 = _replaceHolders, - root$7 = require_root(); + root$6 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$3 = 1, @@ -12129,7 +12119,7 @@ function createHybrid$2(func, bitmask, thisArg, partials, holders, partialsRight if (isAry && ary < length) { args.length = ary; } - if (this && this !== root$7 && this instanceof wrapper) { + if (this && this !== root$6 && this instanceof wrapper) { fn = Ctor || createCtor$2(fn); } return fn.apply(thisBinding, args); @@ -12145,7 +12135,7 @@ var apply$1 = require_apply(), createRecurry = _createRecurry, getHolder = _getHolder, replaceHolders$1 = _replaceHolders, - root$6 = require_root(); + root$5 = require_root(); /** * Creates a function that wraps `func` to enable currying. @@ -12178,7 +12168,7 @@ function createCurry$1(func, bitmask, arity) { func, bitmask, createHybrid$1, wrapper.placeholder, undefined, args, holders, undefined, undefined, arity - length); } - var fn = (this && this !== root$6 && this instanceof wrapper) ? Ctor : func; + var fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; return apply$1(fn, this, args); } return wrapper; @@ -12188,7 +12178,7 @@ var _createCurry = createCurry$1; var apply = require_apply(), createCtor = _createCtor, - root$5 = require_root(); + root$4 = require_root(); /** Used to compose bitmasks for function metadata. */ var WRAP_BIND_FLAG$2 = 1; @@ -12215,7 +12205,7 @@ function createPartial$1(func, bitmask, thisArg, partials) { leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), - fn = (this && this !== root$5 && this instanceof wrapper) ? Ctor : func; + fn = (this && this !== root$4 && this instanceof wrapper) ? Ctor : func; while (++leftIndex < leftLength) { args[leftIndex] = partials[leftIndex]; @@ -12733,20 +12723,20 @@ var _baseAssignValue = baseAssignValue$2; * // => true */ -function eq$1(value, other) { +function eq$2(value, other) { return value === other || (value !== value && other !== other); } -var eq_1 = eq$1; +var eq_1 = eq$2; var baseAssignValue$1 = _baseAssignValue, - eq = eq_1; + eq$1 = eq_1; /** Used for built-in method references. */ -var objectProto$4 = Object.prototype; +var objectProto$6 = Object.prototype; /** Used to check objects for own properties. */ -var hasOwnProperty$3 = objectProto$4.hasOwnProperty; +var hasOwnProperty$5 = objectProto$6.hasOwnProperty; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -12760,7 +12750,7 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty; */ function assignValue$2(object, key, value) { var objValue = object[key]; - if (!(hasOwnProperty$3.call(object, key) && eq(objValue, value)) || + if (!(hasOwnProperty$5.call(object, key) && eq$1(objValue, value)) || (value === undefined && !(key in object))) { baseAssignValue$1(object, key, value); } @@ -13484,248 +13474,184 @@ var _baseAssign = baseAssign$1; * @memberOf ListCache */ -var _listCacheClear; -var hasRequired_listCacheClear; - -function require_listCacheClear () { - if (hasRequired_listCacheClear) return _listCacheClear; - hasRequired_listCacheClear = 1; - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - - _listCacheClear = listCacheClear; - return _listCacheClear; +function listCacheClear$1() { + this.__data__ = []; + this.size = 0; } -var _assocIndexOf; -var hasRequired_assocIndexOf; - -function require_assocIndexOf () { - if (hasRequired_assocIndexOf) return _assocIndexOf; - hasRequired_assocIndexOf = 1; - var eq = eq_1; +var _listCacheClear = listCacheClear$1; - /** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } +var eq = eq_1; - _assocIndexOf = assocIndexOf; - return _assocIndexOf; +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf$4(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; } -var _listCacheDelete; -var hasRequired_listCacheDelete; +var _assocIndexOf = assocIndexOf$4; -function require_listCacheDelete () { - if (hasRequired_listCacheDelete) return _listCacheDelete; - hasRequired_listCacheDelete = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf$3 = _assocIndexOf; - /** Used for built-in method references. */ - var arrayProto = Array.prototype; - - /** Built-in value references. */ - var splice = arrayProto.splice; +/** Used for built-in method references. */ +var arrayProto = Array.prototype; - /** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +/** Built-in value references. */ +var splice = arrayProto.splice; - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; - } +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete$1(key) { + var data = this.__data__, + index = assocIndexOf$3(data, key); - _listCacheDelete = listCacheDelete; - return _listCacheDelete; + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + --this.size; + return true; } -var _listCacheGet; -var hasRequired_listCacheGet; - -function require_listCacheGet () { - if (hasRequired_listCacheGet) return _listCacheGet; - hasRequired_listCacheGet = 1; - var assocIndexOf = require_assocIndexOf(); +var _listCacheDelete = listCacheDelete$1; - /** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +var assocIndexOf$2 = _assocIndexOf; - return index < 0 ? undefined : data[index][1]; - } +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet$1(key) { + var data = this.__data__, + index = assocIndexOf$2(data, key); - _listCacheGet = listCacheGet; - return _listCacheGet; + return index < 0 ? undefined : data[index][1]; } -var _listCacheHas; -var hasRequired_listCacheHas; +var _listCacheGet = listCacheGet$1; -function require_listCacheHas () { - if (hasRequired_listCacheHas) return _listCacheHas; - hasRequired_listCacheHas = 1; - var assocIndexOf = require_assocIndexOf(); - - /** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } +var assocIndexOf$1 = _assocIndexOf; - _listCacheHas = listCacheHas; - return _listCacheHas; +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas$1(key) { + return assocIndexOf$1(this.__data__, key) > -1; } -var _listCacheSet; -var hasRequired_listCacheSet; +var _listCacheHas = listCacheHas$1; -function require_listCacheSet () { - if (hasRequired_listCacheSet) return _listCacheSet; - hasRequired_listCacheSet = 1; - var assocIndexOf = require_assocIndexOf(); +var assocIndexOf = _assocIndexOf; - /** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ - function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; - } +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet$1(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); - _listCacheSet = listCacheSet; - return _listCacheSet; + if (index < 0) { + ++this.size; + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; } -var _ListCache; -var hasRequired_ListCache; +var _listCacheSet = listCacheSet$1; -function require_ListCache () { - if (hasRequired_ListCache) return _ListCache; - hasRequired_ListCache = 1; - var listCacheClear = require_listCacheClear(), - listCacheDelete = require_listCacheDelete(), - listCacheGet = require_listCacheGet(), - listCacheHas = require_listCacheHas(), - listCacheSet = require_listCacheSet(); +var listCacheClear = _listCacheClear, + listCacheDelete = _listCacheDelete, + listCacheGet = _listCacheGet, + listCacheHas = _listCacheHas, + listCacheSet = _listCacheSet; - /** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear; - ListCache.prototype['delete'] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache$4(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _ListCache = ListCache; - return _ListCache; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _stackClear; -var hasRequired_stackClear; +// Add methods to `ListCache`. +ListCache$4.prototype.clear = listCacheClear; +ListCache$4.prototype['delete'] = listCacheDelete; +ListCache$4.prototype.get = listCacheGet; +ListCache$4.prototype.has = listCacheHas; +ListCache$4.prototype.set = listCacheSet; -function require_stackClear () { - if (hasRequired_stackClear) return _stackClear; - hasRequired_stackClear = 1; - var ListCache = require_ListCache(); +var _ListCache = ListCache$4; - /** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ - function stackClear() { - this.__data__ = new ListCache; - this.size = 0; - } +var ListCache$3 = _ListCache; - _stackClear = stackClear; - return _stackClear; +/** + * Removes all key-value entries from the stack. + * + * @private + * @name clear + * @memberOf Stack + */ +function stackClear$1() { + this.__data__ = new ListCache$3; + this.size = 0; } +var _stackClear = stackClear$1; + /** * Removes `key` and its value from the stack. * @@ -13736,24 +13662,16 @@ function require_stackClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _stackDelete; -var hasRequired_stackDelete; - -function require_stackDelete () { - if (hasRequired_stackDelete) return _stackDelete; - hasRequired_stackDelete = 1; - function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; - } +function stackDelete$1(key) { + var data = this.__data__, + result = data['delete'](key); - _stackDelete = stackDelete; - return _stackDelete; + this.size = data.size; + return result; } +var _stackDelete = stackDelete$1; + /** * Gets the stack value for `key`. * @@ -13764,20 +13682,12 @@ function require_stackDelete () { * @returns {*} Returns the entry value. */ -var _stackGet; -var hasRequired_stackGet; - -function require_stackGet () { - if (hasRequired_stackGet) return _stackGet; - hasRequired_stackGet = 1; - function stackGet(key) { - return this.__data__.get(key); - } - - _stackGet = stackGet; - return _stackGet; +function stackGet$1(key) { + return this.__data__.get(key); } +var _stackGet = stackGet$1; + /** * Checks if a stack value for `key` exists. * @@ -13788,67 +13698,43 @@ function require_stackGet () { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ -var _stackHas; -var hasRequired_stackHas; - -function require_stackHas () { - if (hasRequired_stackHas) return _stackHas; - hasRequired_stackHas = 1; - function stackHas(key) { - return this.__data__.has(key); - } - - _stackHas = stackHas; - return _stackHas; +function stackHas$1(key) { + return this.__data__.has(key); } -var getNative$3 = require_getNative(), - root$4 = require_root(); +var _stackHas = stackHas$1; -/* Built-in method references that are verified to be native. */ -var Map$1 = getNative$3(root$4, 'Map'); +var getNative$4 = require_getNative(), + root$3 = require_root(); -var _Map = Map$1; +/* Built-in method references that are verified to be native. */ +var Map$3 = getNative$4(root$3, 'Map'); -var _nativeCreate; -var hasRequired_nativeCreate; +var _Map = Map$3; -function require_nativeCreate () { - if (hasRequired_nativeCreate) return _nativeCreate; - hasRequired_nativeCreate = 1; - var getNative = require_getNative(); +var getNative$3 = require_getNative(); - /* Built-in method references that are verified to be native. */ - var nativeCreate = getNative(Object, 'create'); - - _nativeCreate = nativeCreate; - return _nativeCreate; -} +/* Built-in method references that are verified to be native. */ +var nativeCreate$4 = getNative$3(Object, 'create'); -var _hashClear; -var hasRequired_hashClear; +var _nativeCreate = nativeCreate$4; -function require_hashClear () { - if (hasRequired_hashClear) return _hashClear; - hasRequired_hashClear = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate$3 = _nativeCreate; - /** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - - _hashClear = hashClear; - return _hashClear; +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear$1() { + this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; + this.size = 0; } +var _hashClear = hashClear$1; + /** * Removes `key` and its value from the hash. * @@ -13860,196 +13746,148 @@ function require_hashClear () { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ -var _hashDelete; -var hasRequired_hashDelete; - -function require_hashDelete () { - if (hasRequired_hashDelete) return _hashDelete; - hasRequired_hashDelete = 1; - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - - _hashDelete = hashDelete; - return _hashDelete; +function hashDelete$1(key) { + var result = this.has(key) && delete this.__data__[key]; + this.size -= result ? 1 : 0; + return result; } -var _hashGet; -var hasRequired_hashGet; - -function require_hashGet () { - if (hasRequired_hashGet) return _hashGet; - hasRequired_hashGet = 1; - var nativeCreate = require_nativeCreate(); +var _hashDelete = hashDelete$1; - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; +var nativeCreate$2 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED$1 = '__lodash_hash_undefined__'; - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$5 = Object.prototype; - /** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; - } +/** Used to check objects for own properties. */ +var hasOwnProperty$4 = objectProto$5.hasOwnProperty; - _hashGet = hashGet; - return _hashGet; +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet$1(key) { + var data = this.__data__; + if (nativeCreate$2) { + var result = data[key]; + return result === HASH_UNDEFINED$1 ? undefined : result; + } + return hasOwnProperty$4.call(data, key) ? data[key] : undefined; } -var _hashHas; -var hasRequired_hashHas; +var _hashGet = hashGet$1; -function require_hashHas () { - if (hasRequired_hashHas) return _hashHas; - hasRequired_hashHas = 1; - var nativeCreate = require_nativeCreate(); +var nativeCreate$1 = _nativeCreate; - /** Used for built-in method references. */ - var objectProto = Object.prototype; - - /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty; +/** Used for built-in method references. */ +var objectProto$4 = Object.prototype; - /** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); - } +/** Used to check objects for own properties. */ +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; - _hashHas = hashHas; - return _hashHas; +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas$1(key) { + var data = this.__data__; + return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key); } -var _hashSet; -var hasRequired_hashSet; +var _hashHas = hashHas$1; -function require_hashSet () { - if (hasRequired_hashSet) return _hashSet; - hasRequired_hashSet = 1; - var nativeCreate = require_nativeCreate(); - - /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__'; +var nativeCreate = _nativeCreate; - /** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; - } +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; - _hashSet = hashSet; - return _hashSet; +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet$1(key, value) { + var data = this.__data__; + this.size += this.has(key) ? 0 : 1; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; } -var _Hash; -var hasRequired_Hash; - -function require_Hash () { - if (hasRequired_Hash) return _Hash; - hasRequired_Hash = 1; - var hashClear = require_hashClear(), - hashDelete = require_hashDelete(), - hashGet = require_hashGet(), - hashHas = require_hashHas(), - hashSet = require_hashSet(); +var _hashSet = hashSet$1; - /** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var hashClear = _hashClear, + hashDelete = _hashDelete, + hashGet = _hashGet, + hashHas = _hashHas, + hashSet = _hashSet; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } - - // Add methods to `Hash`. - Hash.prototype.clear = hashClear; - Hash.prototype['delete'] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash$1(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _Hash = Hash; - return _Hash; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _mapCacheClear; -var hasRequired_mapCacheClear; +// Add methods to `Hash`. +Hash$1.prototype.clear = hashClear; +Hash$1.prototype['delete'] = hashDelete; +Hash$1.prototype.get = hashGet; +Hash$1.prototype.has = hashHas; +Hash$1.prototype.set = hashSet; -function require_mapCacheClear () { - if (hasRequired_mapCacheClear) return _mapCacheClear; - hasRequired_mapCacheClear = 1; - var Hash = require_Hash(), - ListCache = require_ListCache(), - Map = _Map; +var _Hash = Hash$1; - /** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ - function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; - } +var Hash = _Hash, + ListCache$2 = _ListCache, + Map$2 = _Map; - _mapCacheClear = mapCacheClear; - return _mapCacheClear; +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear$1() { + this.size = 0; + this.__data__ = { + 'hash': new Hash, + 'map': new (Map$2 || ListCache$2), + 'string': new Hash + }; } +var _mapCacheClear = mapCacheClear$1; + /** * Checks if `value` is suitable for use as unique object key. * @@ -14058,277 +13896,205 @@ function require_mapCacheClear () { * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ -var _isKeyable; -var hasRequired_isKeyable; - -function require_isKeyable () { - if (hasRequired_isKeyable) return _isKeyable; - hasRequired_isKeyable = 1; - function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); - } - - _isKeyable = isKeyable; - return _isKeyable; +function isKeyable$1(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); } -var _getMapData; -var hasRequired_getMapData; +var _isKeyable = isKeyable$1; -function require_getMapData () { - if (hasRequired_getMapData) return _getMapData; - hasRequired_getMapData = 1; - var isKeyable = require_isKeyable(); - - /** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; - } +var isKeyable = _isKeyable; - _getMapData = getMapData; - return _getMapData; +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData$4(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; } -var _mapCacheDelete; -var hasRequired_mapCacheDelete; - -function require_mapCacheDelete () { - if (hasRequired_mapCacheDelete) return _mapCacheDelete; - hasRequired_mapCacheDelete = 1; - var getMapData = require_getMapData(); +var _getMapData = getMapData$4; - /** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ - function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; - } +var getMapData$3 = _getMapData; - _mapCacheDelete = mapCacheDelete; - return _mapCacheDelete; +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete$1(key) { + var result = getMapData$3(this, key)['delete'](key); + this.size -= result ? 1 : 0; + return result; } -var _mapCacheGet; -var hasRequired_mapCacheGet; +var _mapCacheDelete = mapCacheDelete$1; -function require_mapCacheGet () { - if (hasRequired_mapCacheGet) return _mapCacheGet; - hasRequired_mapCacheGet = 1; - var getMapData = require_getMapData(); +var getMapData$2 = _getMapData; - /** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - - _mapCacheGet = mapCacheGet; - return _mapCacheGet; +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet$1(key) { + return getMapData$2(this, key).get(key); } -var _mapCacheHas; -var hasRequired_mapCacheHas; - -function require_mapCacheHas () { - if (hasRequired_mapCacheHas) return _mapCacheHas; - hasRequired_mapCacheHas = 1; - var getMapData = require_getMapData(); +var _mapCacheGet = mapCacheGet$1; - /** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } +var getMapData$1 = _getMapData; - _mapCacheHas = mapCacheHas; - return _mapCacheHas; +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas$1(key) { + return getMapData$1(this, key).has(key); } -var _mapCacheSet; -var hasRequired_mapCacheSet; - -function require_mapCacheSet () { - if (hasRequired_mapCacheSet) return _mapCacheSet; - hasRequired_mapCacheSet = 1; - var getMapData = require_getMapData(); +var _mapCacheHas = mapCacheHas$1; - /** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ - function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; +var getMapData = _getMapData; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet$1(key, value) { + var data = getMapData(this, key), + size = data.size; - _mapCacheSet = mapCacheSet; - return _mapCacheSet; + data.set(key, value); + this.size += data.size == size ? 0 : 1; + return this; } -var _MapCache; -var hasRequired_MapCache; - -function require_MapCache () { - if (hasRequired_MapCache) return _MapCache; - hasRequired_MapCache = 1; - var mapCacheClear = require_mapCacheClear(), - mapCacheDelete = require_mapCacheDelete(), - mapCacheGet = require_mapCacheGet(), - mapCacheHas = require_mapCacheHas(), - mapCacheSet = require_mapCacheSet(); - - /** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; +var _mapCacheSet = mapCacheSet$1; - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } - } +var mapCacheClear = _mapCacheClear, + mapCacheDelete = _mapCacheDelete, + mapCacheGet = _mapCacheGet, + mapCacheHas = _mapCacheHas, + mapCacheSet = _mapCacheSet; - // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype['delete'] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache$2(entries) { + var index = -1, + length = entries == null ? 0 : entries.length; - _MapCache = MapCache; - return _MapCache; + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } } -var _stackSet; -var hasRequired_stackSet; +// Add methods to `MapCache`. +MapCache$2.prototype.clear = mapCacheClear; +MapCache$2.prototype['delete'] = mapCacheDelete; +MapCache$2.prototype.get = mapCacheGet; +MapCache$2.prototype.has = mapCacheHas; +MapCache$2.prototype.set = mapCacheSet; -function require_stackSet () { - if (hasRequired_stackSet) return _stackSet; - hasRequired_stackSet = 1; - var ListCache = require_ListCache(), - Map = _Map, - MapCache = require_MapCache(); +var _MapCache = MapCache$2; - /** Used as the size to enable large array optimizations. */ - var LARGE_ARRAY_SIZE = 200; +var ListCache$1 = _ListCache, + Map$1 = _Map, + MapCache$1 = _MapCache; - /** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; - _stackSet = stackSet; - return _stackSet; +/** + * Sets the stack `key` to `value`. + * + * @private + * @name set + * @memberOf Stack + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the stack cache instance. + */ +function stackSet$1(key, value) { + var data = this.__data__; + if (data instanceof ListCache$1) { + var pairs = data.__data__; + if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + pairs.push([key, value]); + this.size = ++data.size; + return this; + } + data = this.__data__ = new MapCache$1(pairs); + } + data.set(key, value); + this.size = data.size; + return this; } -var _Stack; -var hasRequired_Stack; +var _stackSet = stackSet$1; -function require_Stack () { - if (hasRequired_Stack) return _Stack; - hasRequired_Stack = 1; - var ListCache = require_ListCache(), - stackClear = require_stackClear(), - stackDelete = require_stackDelete(), - stackGet = require_stackGet(), - stackHas = require_stackHas(), - stackSet = require_stackSet(); +var ListCache = _ListCache, + stackClear = _stackClear, + stackDelete = _stackDelete, + stackGet = _stackGet, + stackHas = _stackHas, + stackSet = _stackSet; - /** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } +/** + * Creates a stack cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Stack$1(entries) { + var data = this.__data__ = new ListCache(entries); + this.size = data.size; +} - // Add methods to `Stack`. - Stack.prototype.clear = stackClear; - Stack.prototype['delete'] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; +// Add methods to `Stack`. +Stack$1.prototype.clear = stackClear; +Stack$1.prototype['delete'] = stackDelete; +Stack$1.prototype.get = stackGet; +Stack$1.prototype.has = stackHas; +Stack$1.prototype.set = stackSet; - _Stack = Stack; - return _Stack; -} +var _Stack = Stack$1; /** * This function is like @@ -14714,26 +14480,26 @@ function getAllKeysIn$1(object) { var _getAllKeysIn = getAllKeysIn$1; var getNative$2 = require_getNative(), - root$3 = require_root(); + root$2 = require_root(); /* Built-in method references that are verified to be native. */ -var DataView$2 = getNative$2(root$3, 'DataView'); +var DataView$2 = getNative$2(root$2, 'DataView'); var _DataView = DataView$2; var getNative$1 = require_getNative(), - root$2 = require_root(); + root$1 = require_root(); /* Built-in method references that are verified to be native. */ -var Promise$2 = getNative$1(root$2, 'Promise'); +var Promise$2 = getNative$1(root$1, 'Promise'); var _Promise = Promise$2; var getNative = require_getNative(), - root$1 = require_root(); + root = require_root(); /* Built-in method references that are verified to be native. */ -var Set$1 = getNative(root$1, 'Set'); +var Set$1 = getNative(root, 'Set'); var _Set = Set$1; @@ -14824,14 +14590,22 @@ function initCloneArray$1(array) { var _initCloneArray = initCloneArray$1; -var root = require_root(); +var _Uint8Array; +var hasRequired_Uint8Array; -/** Built-in value references. */ -var Uint8Array$2 = root.Uint8Array; +function require_Uint8Array () { + if (hasRequired_Uint8Array) return _Uint8Array; + hasRequired_Uint8Array = 1; + var root = require_root(); -var _Uint8Array = Uint8Array$2; + /** Built-in value references. */ + var Uint8Array = root.Uint8Array; + + _Uint8Array = Uint8Array; + return _Uint8Array; +} -var Uint8Array$1 = _Uint8Array; +var Uint8Array$1 = require_Uint8Array(); /** * Creates a clone of `arrayBuffer`. @@ -15111,7 +14885,7 @@ var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; var isSet_1 = isSet$1; -var Stack = require_Stack(), +var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, @@ -15561,7 +15335,7 @@ var hasRequired_SetCache; function require_SetCache () { if (hasRequired_SetCache) return _SetCache; hasRequired_SetCache = 1; - var MapCache = require_MapCache(), + var MapCache = _MapCache, setCacheAdd = require_setCacheAdd(), setCacheHas = require_setCacheHas(); @@ -15803,7 +15577,7 @@ function require_equalByTag () { if (hasRequired_equalByTag) return _equalByTag; hasRequired_equalByTag = 1; var Symbol = _Symbol, - Uint8Array = _Uint8Array, + Uint8Array = require_Uint8Array(), eq = eq_1, equalArrays = require_equalArrays(), mapToArray = require_mapToArray(), @@ -16022,7 +15796,7 @@ var hasRequired_baseIsEqualDeep; function require_baseIsEqualDeep () { if (hasRequired_baseIsEqualDeep) return _baseIsEqualDeep; hasRequired_baseIsEqualDeep = 1; - var Stack = require_Stack(), + var Stack = _Stack, equalArrays = require_equalArrays(), equalByTag = require_equalByTag(), equalObjects = require_equalObjects(), @@ -16151,7 +15925,7 @@ var hasRequired_baseIsMatch; function require_baseIsMatch () { if (hasRequired_baseIsMatch) return _baseIsMatch; hasRequired_baseIsMatch = 1; - var Stack = require_Stack(), + var Stack = _Stack, baseIsEqual = require_baseIsEqual(); /** Used to compose bitmasks for value comparisons. */ @@ -16372,7 +16146,7 @@ function require_isKey () { return _isKey; } -var MapCache = require_MapCache(); +var MapCache = _MapCache; /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; diff --git a/package-lock.json b/package-lock.json index 7b5544e..a04510f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,6 +33,7 @@ "rollup-plugin-peer-deps-external": "^2.2.4" }, "peerDependencies": { + "@react-leaflet/core": "2.0.0", "leaflet": "^1.8.0", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -3035,12 +3036,12 @@ } }, "node_modules/@react-leaflet/core": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.1.0.tgz", - "integrity": "sha512-Qk7Pfu8BSarKGqILj4x7bCSZ1pjuAPZ+qmRwH5S7mDS91VSbVVsJSrW4qA+GPrro8t69gFYVMWb1Zc4yFmPiVg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.0.0.tgz", + "integrity": "sha512-SQQ5DCQIaLzvslN6wCXs5OWqtlvk1Ubv2n5d7zTM8SDl9hM5Rr2wVy7/nOCIY958D75/ovhq6ZoSvT7GLCX6sg==", "peer": true, "peerDependencies": { - "leaflet": "^1.9.0", + "leaflet": "^1.8.0", "react": "^18.0.0", "react-dom": "^18.0.0" } @@ -14746,6 +14747,17 @@ "react-dom": "^18.0.0" } }, + "node_modules/react-leaflet/node_modules/@react-leaflet/core": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.1.0.tgz", + "integrity": "sha512-Qk7Pfu8BSarKGqILj4x7bCSZ1pjuAPZ+qmRwH5S7mDS91VSbVVsJSrW4qA+GPrro8t69gFYVMWb1Zc4yFmPiVg==", + "peer": true, + "peerDependencies": { + "leaflet": "^1.9.0", + "react": "^18.0.0", + "react-dom": "^18.0.0" + } + }, "node_modules/react-refresh": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", @@ -19726,9 +19738,9 @@ } }, "@react-leaflet/core": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.1.0.tgz", - "integrity": "sha512-Qk7Pfu8BSarKGqILj4x7bCSZ1pjuAPZ+qmRwH5S7mDS91VSbVVsJSrW4qA+GPrro8t69gFYVMWb1Zc4yFmPiVg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.0.0.tgz", + "integrity": "sha512-SQQ5DCQIaLzvslN6wCXs5OWqtlvk1Ubv2n5d7zTM8SDl9hM5Rr2wVy7/nOCIY958D75/ovhq6ZoSvT7GLCX6sg==", "peer": true, "requires": {} }, @@ -28075,6 +28087,15 @@ "peer": true, "requires": { "@react-leaflet/core": "^2.1.0" + }, + "dependencies": { + "@react-leaflet/core": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-2.1.0.tgz", + "integrity": "sha512-Qk7Pfu8BSarKGqILj4x7bCSZ1pjuAPZ+qmRwH5S7mDS91VSbVVsJSrW4qA+GPrro8t69gFYVMWb1Zc4yFmPiVg==", + "peer": true, + "requires": {} + } } }, "react-refresh": { diff --git a/package.json b/package.json index 860714b..39fa7d9 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "rollup-plugin-peer-deps-external": "^2.2.4" }, "peerDependencies": { + "@react-leaflet/core": "2.0.0", "leaflet": "^1.8.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/playground/package-lock.json b/playground/package-lock.json index 3d14346..afa8f2e 100644 --- a/playground/package-lock.json +++ b/playground/package-lock.json @@ -51,6 +51,7 @@ "rollup-plugin-peer-deps-external": "^2.2.4" }, "peerDependencies": { + "@react-leaflet/core": "2.0.0", "leaflet": "^1.8.0", "react": "^18.2.0", "react-dom": "^18.2.0",