@opengeoweb/store 9.13.0 → 9.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { webmapUtils, LayerType, getWMJSMapById, WMLayer, webmapTestSettings, getAlternativeImage, handleMomentISOString, getCapabilities } from '@opengeoweb/webmap';
1
+ import { webmapUtils, LayerType, getWMJSMapById, WMLayer, webmapTestSettings, getAlternativeImage, handleDateUtilsISOString, getCapabilities } from '@opengeoweb/webmap';
2
2
  import { createAction, createSlice, createSelector, createEntityAdapter, createListenerMiddleware } from '@reduxjs/toolkit';
3
3
  import { getGeoJson, moveFeature, createInterSections, getLastEmptyFeatureIndex, defaultLayers, emptyGeoJSON, addSelectionTypeToGeoJSON, getFeatureCollection, defaultIntersectionStyleProperties } from '@opengeoweb/webmap-react';
4
4
  export { defaultLayers } from '@opengeoweb/webmap-react';
@@ -6,12 +6,12 @@ import { dateUtils, defaultDelay, withEggs } from '@opengeoweb/shared';
6
6
  import { defaultTimeSpan, defaultTimeStep, defaultAnimationDelayAtStart, defaultSecondsPerPx, roundWithTimeStep, getSpeedDelay } from '@opengeoweb/timeslider';
7
7
  import { produce } from 'immer';
8
8
  import { isEqual, compact } from 'lodash';
9
+ import { useSelector, useDispatch, Provider } from 'react-redux';
10
+ import React, { useCallback, useEffect } from 'react';
9
11
  import { createStore as createStore$1 } from '@redux-eggs/redux-toolkit';
10
12
  import { getSagaExtension } from '@redux-eggs/saga-extension';
11
- import { takeLatest, takeEvery, select, put, all, call as call$b, delay } from 'redux-saga/effects';
13
+ import { takeLatest, takeEvery, select, put, all, call as call$e, delay } from 'redux-saga/effects';
12
14
  import { metronome } from '@opengeoweb/metronome';
13
- import React, { useCallback, useEffect } from 'react';
14
- import { Provider, useDispatch, useSelector } from 'react-redux';
15
15
 
16
16
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
17
17
 
@@ -33,7 +33,7 @@ var global$h =
33
33
 
34
34
  var objectGetOwnPropertyDescriptor = {};
35
35
 
36
- var fails$k = function (exec) {
36
+ var fails$n = function (exec) {
37
37
  try {
38
38
  return !!exec();
39
39
  } catch (error) {
@@ -41,48 +41,48 @@ var fails$k = function (exec) {
41
41
  }
42
42
  };
43
43
 
44
- var fails$j = fails$k;
44
+ var fails$m = fails$n;
45
45
 
46
46
  // Detect IE8's incomplete defineProperty implementation
47
- var descriptors = !fails$j(function () {
47
+ var descriptors = !fails$m(function () {
48
48
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
49
49
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
50
50
  });
51
51
 
52
- var fails$i = fails$k;
52
+ var fails$l = fails$n;
53
53
 
54
- var functionBindNative = !fails$i(function () {
54
+ var functionBindNative = !fails$l(function () {
55
55
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
56
56
  var test = (function () { /* empty */ }).bind();
57
57
  // eslint-disable-next-line no-prototype-builtins -- safe
58
58
  return typeof test != 'function' || test.hasOwnProperty('prototype');
59
59
  });
60
60
 
61
- var NATIVE_BIND$1 = functionBindNative;
61
+ var NATIVE_BIND$2 = functionBindNative;
62
62
 
63
- var call$a = Function.prototype.call;
63
+ var call$d = Function.prototype.call;
64
64
 
65
- var functionCall = NATIVE_BIND$1 ? call$a.bind(call$a) : function () {
66
- return call$a.apply(call$a, arguments);
65
+ var functionCall = NATIVE_BIND$2 ? call$d.bind(call$d) : function () {
66
+ return call$d.apply(call$d, arguments);
67
67
  };
68
68
 
69
69
  var objectPropertyIsEnumerable = {};
70
70
 
71
71
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
72
72
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
73
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
73
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
74
74
 
75
75
  // Nashorn ~ JDK8 bug
76
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
76
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
77
77
 
78
78
  // `Object.prototype.propertyIsEnumerable` method implementation
79
79
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
80
80
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
81
- var descriptor = getOwnPropertyDescriptor$1(this, V);
81
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
82
82
  return !!descriptor && descriptor.enumerable;
83
83
  } : $propertyIsEnumerable;
84
84
 
85
- var createPropertyDescriptor$3 = function (bitmap, value) {
85
+ var createPropertyDescriptor$4 = function (bitmap, value) {
86
86
  return {
87
87
  enumerable: !(bitmap & 1),
88
88
  configurable: !(bitmap & 2),
@@ -91,41 +91,41 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
91
91
  };
92
92
  };
93
93
 
94
- var NATIVE_BIND = functionBindNative;
94
+ var NATIVE_BIND$1 = functionBindNative;
95
95
 
96
- var FunctionPrototype$1 = Function.prototype;
97
- var call$9 = FunctionPrototype$1.call;
98
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$9, call$9);
96
+ var FunctionPrototype$2 = Function.prototype;
97
+ var call$c = FunctionPrototype$2.call;
98
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$c, call$c);
99
99
 
100
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
100
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
101
101
  return function () {
102
- return call$9.apply(fn, arguments);
102
+ return call$c.apply(fn, arguments);
103
103
  };
104
104
  };
105
105
 
106
- var uncurryThis$h = functionUncurryThis;
106
+ var uncurryThis$l = functionUncurryThis;
107
107
 
108
- var toString$8 = uncurryThis$h({}.toString);
109
- var stringSlice$4 = uncurryThis$h(''.slice);
108
+ var toString$b = uncurryThis$l({}.toString);
109
+ var stringSlice$4 = uncurryThis$l(''.slice);
110
110
 
111
111
  var classofRaw$1 = function (it) {
112
- return stringSlice$4(toString$8(it), 8, -1);
112
+ return stringSlice$4(toString$b(it), 8, -1);
113
113
  };
114
114
 
115
- var uncurryThis$g = functionUncurryThis;
116
- var fails$h = fails$k;
117
- var classof$6 = classofRaw$1;
115
+ var uncurryThis$k = functionUncurryThis;
116
+ var fails$k = fails$n;
117
+ var classof$8 = classofRaw$1;
118
118
 
119
119
  var $Object$4 = Object;
120
- var split = uncurryThis$g(''.split);
120
+ var split = uncurryThis$k(''.split);
121
121
 
122
122
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
123
- var indexedObject = fails$h(function () {
123
+ var indexedObject = fails$k(function () {
124
124
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
125
125
  // eslint-disable-next-line no-prototype-builtins -- safe
126
126
  return !$Object$4('z').propertyIsEnumerable(0);
127
127
  }) ? function (it) {
128
- return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
128
+ return classof$8(it) === 'String' ? split(it, '') : $Object$4(it);
129
129
  } : $Object$4;
130
130
 
131
131
  // we can't use just `it == null` since of `document.all` special case
@@ -136,21 +136,21 @@ var isNullOrUndefined$4 = function (it) {
136
136
 
137
137
  var isNullOrUndefined$3 = isNullOrUndefined$4;
138
138
 
139
- var $TypeError$a = TypeError;
139
+ var $TypeError$d = TypeError;
140
140
 
141
141
  // `RequireObjectCoercible` abstract operation
142
142
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
143
- var requireObjectCoercible$6 = function (it) {
144
- if (isNullOrUndefined$3(it)) throw new $TypeError$a("Can't call method on " + it);
143
+ var requireObjectCoercible$7 = function (it) {
144
+ if (isNullOrUndefined$3(it)) throw new $TypeError$d("Can't call method on " + it);
145
145
  return it;
146
146
  };
147
147
 
148
148
  // toObject with fallback for non-array-like ES3 strings
149
149
  var IndexedObject$2 = indexedObject;
150
- var requireObjectCoercible$5 = requireObjectCoercible$6;
150
+ var requireObjectCoercible$6 = requireObjectCoercible$7;
151
151
 
152
152
  var toIndexedObject$5 = function (it) {
153
- return IndexedObject$2(requireObjectCoercible$5(it));
153
+ return IndexedObject$2(requireObjectCoercible$6(it));
154
154
  };
155
155
 
156
156
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
@@ -159,32 +159,32 @@ var documentAll = typeof document == 'object' && document.all;
159
159
  // `IsCallable` abstract operation
160
160
  // https://tc39.es/ecma262/#sec-iscallable
161
161
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
162
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
162
+ var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
163
163
  return typeof argument == 'function' || argument === documentAll;
164
164
  } : function (argument) {
165
165
  return typeof argument == 'function';
166
166
  };
167
167
 
168
- var isCallable$f = isCallable$g;
168
+ var isCallable$j = isCallable$k;
169
169
 
170
- var isObject$8 = function (it) {
171
- return typeof it == 'object' ? it !== null : isCallable$f(it);
170
+ var isObject$b = function (it) {
171
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
172
172
  };
173
173
 
174
174
  var global$g = global$h;
175
- var isCallable$e = isCallable$g;
175
+ var isCallable$i = isCallable$k;
176
176
 
177
177
  var aFunction = function (argument) {
178
- return isCallable$e(argument) ? argument : undefined;
178
+ return isCallable$i(argument) ? argument : undefined;
179
179
  };
180
180
 
181
- var getBuiltIn$4 = function (namespace, method) {
181
+ var getBuiltIn$6 = function (namespace, method) {
182
182
  return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
183
183
  };
184
184
 
185
- var uncurryThis$f = functionUncurryThis;
185
+ var uncurryThis$j = functionUncurryThis;
186
186
 
187
- var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
187
+ var objectIsPrototypeOf = uncurryThis$j({}.isPrototypeOf);
188
188
 
189
189
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
190
190
 
@@ -218,63 +218,63 @@ var engineV8Version = version;
218
218
 
219
219
  /* eslint-disable es/no-symbol -- required for testing */
220
220
  var V8_VERSION = engineV8Version;
221
- var fails$g = fails$k;
221
+ var fails$j = fails$n;
222
222
  var global$e = global$h;
223
223
 
224
- var $String$5 = global$e.String;
224
+ var $String$6 = global$e.String;
225
225
 
226
226
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
227
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
227
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$j(function () {
228
228
  var symbol = Symbol('symbol detection');
229
229
  // Chrome 38 Symbol has incorrect toString conversion
230
230
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
231
231
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
232
232
  // of course, fail.
233
- return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
233
+ return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
234
234
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
235
235
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
236
236
  });
237
237
 
238
238
  /* eslint-disable es/no-symbol -- required for testing */
239
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
239
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
240
240
 
241
- var useSymbolAsUid = NATIVE_SYMBOL$1
241
+ var useSymbolAsUid = NATIVE_SYMBOL$2
242
242
  && !Symbol.sham
243
243
  && typeof Symbol.iterator == 'symbol';
244
244
 
245
- var getBuiltIn$3 = getBuiltIn$4;
246
- var isCallable$d = isCallable$g;
247
- var isPrototypeOf = objectIsPrototypeOf;
245
+ var getBuiltIn$5 = getBuiltIn$6;
246
+ var isCallable$h = isCallable$k;
247
+ var isPrototypeOf$1 = objectIsPrototypeOf;
248
248
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
249
249
 
250
250
  var $Object$3 = Object;
251
251
 
252
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
252
+ var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
253
253
  return typeof it == 'symbol';
254
254
  } : function (it) {
255
- var $Symbol = getBuiltIn$3('Symbol');
256
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
255
+ var $Symbol = getBuiltIn$5('Symbol');
256
+ return isCallable$h($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
257
257
  };
258
258
 
259
- var $String$4 = String;
259
+ var $String$5 = String;
260
260
 
261
- var tryToString$2 = function (argument) {
261
+ var tryToString$3 = function (argument) {
262
262
  try {
263
- return $String$4(argument);
263
+ return $String$5(argument);
264
264
  } catch (error) {
265
265
  return 'Object';
266
266
  }
267
267
  };
268
268
 
269
- var isCallable$c = isCallable$g;
270
- var tryToString$1 = tryToString$2;
269
+ var isCallable$g = isCallable$k;
270
+ var tryToString$2 = tryToString$3;
271
271
 
272
- var $TypeError$9 = TypeError;
272
+ var $TypeError$c = TypeError;
273
273
 
274
274
  // `Assert: IsCallable(argument) is true`
275
275
  var aCallable$3 = function (argument) {
276
- if (isCallable$c(argument)) return argument;
277
- throw new $TypeError$9(tryToString$1(argument) + ' is not a function');
276
+ if (isCallable$g(argument)) return argument;
277
+ throw new $TypeError$c(tryToString$2(argument) + ' is not a function');
278
278
  };
279
279
 
280
280
  var aCallable$2 = aCallable$3;
@@ -287,174 +287,174 @@ var getMethod$2 = function (V, P) {
287
287
  return isNullOrUndefined$2(func) ? undefined : aCallable$2(func);
288
288
  };
289
289
 
290
- var call$8 = functionCall;
291
- var isCallable$b = isCallable$g;
292
- var isObject$7 = isObject$8;
290
+ var call$b = functionCall;
291
+ var isCallable$f = isCallable$k;
292
+ var isObject$a = isObject$b;
293
293
 
294
- var $TypeError$8 = TypeError;
294
+ var $TypeError$b = TypeError;
295
295
 
296
296
  // `OrdinaryToPrimitive` abstract operation
297
297
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
298
298
  var ordinaryToPrimitive$1 = function (input, pref) {
299
299
  var fn, val;
300
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$8(fn, input))) return val;
301
- if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$8(fn, input))) return val;
302
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$8(fn, input))) return val;
303
- throw new $TypeError$8("Can't convert object to primitive value");
300
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
301
+ if (isCallable$f(fn = input.valueOf) && !isObject$a(val = call$b(fn, input))) return val;
302
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$a(val = call$b(fn, input))) return val;
303
+ throw new $TypeError$b("Can't convert object to primitive value");
304
304
  };
305
305
 
306
- var shared$4 = {exports: {}};
306
+ var sharedStore = {exports: {}};
307
307
 
308
308
  var global$d = global$h;
309
309
 
310
310
  // eslint-disable-next-line es/no-object-defineproperty -- safe
311
- var defineProperty$5 = Object.defineProperty;
311
+ var defineProperty$6 = Object.defineProperty;
312
312
 
313
313
  var defineGlobalProperty$3 = function (key, value) {
314
314
  try {
315
- defineProperty$5(global$d, key, { value: value, configurable: true, writable: true });
315
+ defineProperty$6(global$d, key, { value: value, configurable: true, writable: true });
316
316
  } catch (error) {
317
317
  global$d[key] = value;
318
318
  } return value;
319
319
  };
320
320
 
321
- var global$c = global$h;
321
+ var globalThis$1 = global$h;
322
322
  var defineGlobalProperty$2 = defineGlobalProperty$3;
323
323
 
324
324
  var SHARED = '__core-js_shared__';
325
- var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
326
-
327
- var sharedStore = store$3;
325
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
328
326
 
329
- var store$2 = sharedStore;
330
-
331
- (shared$4.exports = function (key, value) {
332
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
333
- })('versions', []).push({
334
- version: '3.35.1',
327
+ (store$3.versions || (store$3.versions = [])).push({
328
+ version: '3.36.1',
335
329
  mode: 'global',
336
330
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
337
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
331
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
338
332
  source: 'https://github.com/zloirock/core-js'
339
333
  });
340
334
 
341
- var requireObjectCoercible$4 = requireObjectCoercible$6;
335
+ var store$2 = sharedStore.exports;
336
+
337
+ var shared$4 = function (key, value) {
338
+ return store$2[key] || (store$2[key] = value || {});
339
+ };
340
+
341
+ var requireObjectCoercible$5 = requireObjectCoercible$7;
342
342
 
343
343
  var $Object$2 = Object;
344
344
 
345
345
  // `ToObject` abstract operation
346
346
  // https://tc39.es/ecma262/#sec-toobject
347
- var toObject$4 = function (argument) {
348
- return $Object$2(requireObjectCoercible$4(argument));
347
+ var toObject$6 = function (argument) {
348
+ return $Object$2(requireObjectCoercible$5(argument));
349
349
  };
350
350
 
351
- var uncurryThis$e = functionUncurryThis;
352
- var toObject$3 = toObject$4;
351
+ var uncurryThis$i = functionUncurryThis;
352
+ var toObject$5 = toObject$6;
353
353
 
354
- var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
354
+ var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
355
355
 
356
356
  // `HasOwnProperty` abstract operation
357
357
  // https://tc39.es/ecma262/#sec-hasownproperty
358
358
  // eslint-disable-next-line es/no-object-hasown -- safe
359
359
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
360
- return hasOwnProperty(toObject$3(it), key);
360
+ return hasOwnProperty(toObject$5(it), key);
361
361
  };
362
362
 
363
- var uncurryThis$d = functionUncurryThis;
363
+ var uncurryThis$h = functionUncurryThis;
364
364
 
365
365
  var id = 0;
366
366
  var postfix = Math.random();
367
- var toString$7 = uncurryThis$d(1.0.toString);
367
+ var toString$a = uncurryThis$h(1.0.toString);
368
368
 
369
369
  var uid$2 = function (key) {
370
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id + postfix, 36);
370
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
371
371
  };
372
372
 
373
- var global$b = global$h;
374
- var shared$3 = shared$4.exports;
375
- var hasOwn$8 = hasOwnProperty_1;
373
+ var global$c = global$h;
374
+ var shared$3 = shared$4;
375
+ var hasOwn$9 = hasOwnProperty_1;
376
376
  var uid$1 = uid$2;
377
- var NATIVE_SYMBOL = symbolConstructorDetection;
377
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
378
378
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
379
379
 
380
- var Symbol$2 = global$b.Symbol;
380
+ var Symbol$2 = global$c.Symbol;
381
381
  var WellKnownSymbolsStore = shared$3('wks');
382
382
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
383
383
 
384
384
  var wellKnownSymbol$c = function (name) {
385
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
386
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$2, name)
385
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
386
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$9(Symbol$2, name)
387
387
  ? Symbol$2[name]
388
388
  : createWellKnownSymbol('Symbol.' + name);
389
389
  } return WellKnownSymbolsStore[name];
390
390
  };
391
391
 
392
- var call$7 = functionCall;
393
- var isObject$6 = isObject$8;
394
- var isSymbol$1 = isSymbol$2;
392
+ var call$a = functionCall;
393
+ var isObject$9 = isObject$b;
394
+ var isSymbol$2 = isSymbol$3;
395
395
  var getMethod$1 = getMethod$2;
396
396
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
397
397
  var wellKnownSymbol$b = wellKnownSymbol$c;
398
398
 
399
- var $TypeError$7 = TypeError;
399
+ var $TypeError$a = TypeError;
400
400
  var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
401
401
 
402
402
  // `ToPrimitive` abstract operation
403
403
  // https://tc39.es/ecma262/#sec-toprimitive
404
404
  var toPrimitive$1 = function (input, pref) {
405
- if (!isObject$6(input) || isSymbol$1(input)) return input;
405
+ if (!isObject$9(input) || isSymbol$2(input)) return input;
406
406
  var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
407
407
  var result;
408
408
  if (exoticToPrim) {
409
409
  if (pref === undefined) pref = 'default';
410
- result = call$7(exoticToPrim, input, pref);
411
- if (!isObject$6(result) || isSymbol$1(result)) return result;
412
- throw new $TypeError$7("Can't convert object to primitive value");
410
+ result = call$a(exoticToPrim, input, pref);
411
+ if (!isObject$9(result) || isSymbol$2(result)) return result;
412
+ throw new $TypeError$a("Can't convert object to primitive value");
413
413
  }
414
414
  if (pref === undefined) pref = 'number';
415
415
  return ordinaryToPrimitive(input, pref);
416
416
  };
417
417
 
418
418
  var toPrimitive = toPrimitive$1;
419
- var isSymbol = isSymbol$2;
419
+ var isSymbol$1 = isSymbol$3;
420
420
 
421
421
  // `ToPropertyKey` abstract operation
422
422
  // https://tc39.es/ecma262/#sec-topropertykey
423
423
  var toPropertyKey$2 = function (argument) {
424
424
  var key = toPrimitive(argument, 'string');
425
- return isSymbol(key) ? key : key + '';
425
+ return isSymbol$1(key) ? key : key + '';
426
426
  };
427
427
 
428
- var global$a = global$h;
429
- var isObject$5 = isObject$8;
428
+ var global$b = global$h;
429
+ var isObject$8 = isObject$b;
430
430
 
431
- var document$1 = global$a.document;
431
+ var document$1 = global$b.document;
432
432
  // typeof document.createElement is 'object' in old IE
433
- var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
433
+ var EXISTS$1 = isObject$8(document$1) && isObject$8(document$1.createElement);
434
434
 
435
435
  var documentCreateElement$2 = function (it) {
436
436
  return EXISTS$1 ? document$1.createElement(it) : {};
437
437
  };
438
438
 
439
- var DESCRIPTORS$9 = descriptors;
440
- var fails$f = fails$k;
439
+ var DESCRIPTORS$b = descriptors;
440
+ var fails$i = fails$n;
441
441
  var createElement = documentCreateElement$2;
442
442
 
443
443
  // Thanks to IE8 for its funny defineProperty
444
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$f(function () {
444
+ var ie8DomDefine = !DESCRIPTORS$b && !fails$i(function () {
445
445
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
446
446
  return Object.defineProperty(createElement('div'), 'a', {
447
447
  get: function () { return 7; }
448
448
  }).a !== 7;
449
449
  });
450
450
 
451
- var DESCRIPTORS$8 = descriptors;
452
- var call$6 = functionCall;
451
+ var DESCRIPTORS$a = descriptors;
452
+ var call$9 = functionCall;
453
453
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
454
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
454
+ var createPropertyDescriptor$3 = createPropertyDescriptor$4;
455
455
  var toIndexedObject$4 = toIndexedObject$5;
456
456
  var toPropertyKey$1 = toPropertyKey$2;
457
- var hasOwn$7 = hasOwnProperty_1;
457
+ var hasOwn$8 = hasOwnProperty_1;
458
458
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
459
459
 
460
460
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -462,23 +462,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
462
462
 
463
463
  // `Object.getOwnPropertyDescriptor` method
464
464
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
465
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
465
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
466
466
  O = toIndexedObject$4(O);
467
467
  P = toPropertyKey$1(P);
468
468
  if (IE8_DOM_DEFINE$1) try {
469
469
  return $getOwnPropertyDescriptor$1(O, P);
470
470
  } catch (error) { /* empty */ }
471
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
471
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$3(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
472
472
  };
473
473
 
474
474
  var objectDefineProperty = {};
475
475
 
476
- var DESCRIPTORS$7 = descriptors;
477
- var fails$e = fails$k;
476
+ var DESCRIPTORS$9 = descriptors;
477
+ var fails$h = fails$n;
478
478
 
479
479
  // V8 ~ Chrome 36-
480
480
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
481
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
481
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$h(function () {
482
482
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
483
483
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
484
484
  value: 42,
@@ -486,24 +486,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
486
486
  }).prototype !== 42;
487
487
  });
488
488
 
489
- var isObject$4 = isObject$8;
489
+ var isObject$7 = isObject$b;
490
490
 
491
- var $String$3 = String;
492
- var $TypeError$6 = TypeError;
491
+ var $String$4 = String;
492
+ var $TypeError$9 = TypeError;
493
493
 
494
494
  // `Assert: Type(argument) is Object`
495
495
  var anObject$9 = function (argument) {
496
- if (isObject$4(argument)) return argument;
497
- throw new $TypeError$6($String$3(argument) + ' is not an object');
496
+ if (isObject$7(argument)) return argument;
497
+ throw new $TypeError$9($String$4(argument) + ' is not an object');
498
498
  };
499
499
 
500
- var DESCRIPTORS$6 = descriptors;
500
+ var DESCRIPTORS$8 = descriptors;
501
501
  var IE8_DOM_DEFINE = ie8DomDefine;
502
502
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
503
503
  var anObject$8 = anObject$9;
504
504
  var toPropertyKey = toPropertyKey$2;
505
505
 
506
- var $TypeError$5 = TypeError;
506
+ var $TypeError$8 = TypeError;
507
507
  // eslint-disable-next-line es/no-object-defineproperty -- safe
508
508
  var $defineProperty = Object.defineProperty;
509
509
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -514,7 +514,7 @@ var WRITABLE = 'writable';
514
514
 
515
515
  // `Object.defineProperty` method
516
516
  // https://tc39.es/ecma262/#sec-object.defineproperty
517
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
517
+ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
518
518
  anObject$8(O);
519
519
  P = toPropertyKey(P);
520
520
  anObject$8(Attributes);
@@ -536,17 +536,17 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
536
536
  if (IE8_DOM_DEFINE) try {
537
537
  return $defineProperty(O, P, Attributes);
538
538
  } catch (error) { /* empty */ }
539
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
539
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
540
540
  if ('value' in Attributes) O[P] = Attributes.value;
541
541
  return O;
542
542
  };
543
543
 
544
- var DESCRIPTORS$5 = descriptors;
544
+ var DESCRIPTORS$7 = descriptors;
545
545
  var definePropertyModule$3 = objectDefineProperty;
546
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
546
+ var createPropertyDescriptor$2 = createPropertyDescriptor$4;
547
547
 
548
- var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
549
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
548
+ var createNonEnumerableProperty$8 = DESCRIPTORS$7 ? function (object, key, value) {
549
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$2(1, value));
550
550
  } : function (object, key, value) {
551
551
  object[key] = value;
552
552
  return object;
@@ -554,17 +554,17 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value
554
554
 
555
555
  var makeBuiltIn$2 = {exports: {}};
556
556
 
557
- var DESCRIPTORS$4 = descriptors;
558
- var hasOwn$6 = hasOwnProperty_1;
557
+ var DESCRIPTORS$6 = descriptors;
558
+ var hasOwn$7 = hasOwnProperty_1;
559
559
 
560
- var FunctionPrototype = Function.prototype;
560
+ var FunctionPrototype$1 = Function.prototype;
561
561
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
562
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
562
+ var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
563
563
 
564
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
564
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
565
565
  // additional protection from minified / mangled / dropped function names
566
566
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
567
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
567
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
568
568
 
569
569
  var functionName = {
570
570
  EXISTS: EXISTS,
@@ -572,14 +572,14 @@ var functionName = {
572
572
  CONFIGURABLE: CONFIGURABLE
573
573
  };
574
574
 
575
- var uncurryThis$c = functionUncurryThis;
576
- var isCallable$a = isCallable$g;
577
- var store$1 = sharedStore;
575
+ var uncurryThis$g = functionUncurryThis;
576
+ var isCallable$e = isCallable$k;
577
+ var store$1 = sharedStore.exports;
578
578
 
579
- var functionToString = uncurryThis$c(Function.toString);
579
+ var functionToString = uncurryThis$g(Function.toString);
580
580
 
581
581
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
582
- if (!isCallable$a(store$1.inspectSource)) {
582
+ if (!isCallable$e(store$1.inspectSource)) {
583
583
  store$1.inspectSource = function (it) {
584
584
  return functionToString(it);
585
585
  };
@@ -587,14 +587,14 @@ if (!isCallable$a(store$1.inspectSource)) {
587
587
 
588
588
  var inspectSource$2 = store$1.inspectSource;
589
589
 
590
- var global$9 = global$h;
591
- var isCallable$9 = isCallable$g;
590
+ var global$a = global$h;
591
+ var isCallable$d = isCallable$k;
592
592
 
593
- var WeakMap$1 = global$9.WeakMap;
593
+ var WeakMap$1 = global$a.WeakMap;
594
594
 
595
- var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
595
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
596
596
 
597
- var shared$2 = shared$4.exports;
597
+ var shared$2 = shared$4;
598
598
  var uid = uid$2;
599
599
 
600
600
  var keys = shared$2('keys');
@@ -606,17 +606,17 @@ var sharedKey$3 = function (key) {
606
606
  var hiddenKeys$4 = {};
607
607
 
608
608
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
609
- var global$8 = global$h;
610
- var isObject$3 = isObject$8;
611
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
612
- var hasOwn$5 = hasOwnProperty_1;
613
- var shared$1 = sharedStore;
609
+ var global$9 = global$h;
610
+ var isObject$6 = isObject$b;
611
+ var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
612
+ var hasOwn$6 = hasOwnProperty_1;
613
+ var shared$1 = sharedStore.exports;
614
614
  var sharedKey$2 = sharedKey$3;
615
615
  var hiddenKeys$3 = hiddenKeys$4;
616
616
 
617
617
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
618
- var TypeError$1 = global$8.TypeError;
619
- var WeakMap = global$8.WeakMap;
618
+ var TypeError$1 = global$9.TypeError;
619
+ var WeakMap = global$9.WeakMap;
620
620
  var set, get, has;
621
621
 
622
622
  var enforce = function (it) {
@@ -626,7 +626,7 @@ var enforce = function (it) {
626
626
  var getterFor = function (TYPE) {
627
627
  return function (it) {
628
628
  var state;
629
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
629
+ if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
630
630
  throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
631
631
  } return state;
632
632
  };
@@ -655,16 +655,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
655
655
  var STATE = sharedKey$2('state');
656
656
  hiddenKeys$3[STATE] = true;
657
657
  set = function (it, metadata) {
658
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
658
+ if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
659
659
  metadata.facade = it;
660
- createNonEnumerableProperty$4(it, STATE, metadata);
660
+ createNonEnumerableProperty$7(it, STATE, metadata);
661
661
  return metadata;
662
662
  };
663
663
  get = function (it) {
664
- return hasOwn$5(it, STATE) ? it[STATE] : {};
664
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
665
665
  };
666
666
  has = function (it) {
667
- return hasOwn$5(it, STATE);
667
+ return hasOwn$6(it, STATE);
668
668
  };
669
669
  }
670
670
 
@@ -676,51 +676,51 @@ var internalState = {
676
676
  getterFor: getterFor
677
677
  };
678
678
 
679
- var uncurryThis$b = functionUncurryThis;
680
- var fails$d = fails$k;
681
- var isCallable$8 = isCallable$g;
682
- var hasOwn$4 = hasOwnProperty_1;
683
- var DESCRIPTORS$3 = descriptors;
679
+ var uncurryThis$f = functionUncurryThis;
680
+ var fails$g = fails$n;
681
+ var isCallable$c = isCallable$k;
682
+ var hasOwn$5 = hasOwnProperty_1;
683
+ var DESCRIPTORS$5 = descriptors;
684
684
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
685
685
  var inspectSource$1 = inspectSource$2;
686
686
  var InternalStateModule$1 = internalState;
687
687
 
688
688
  var enforceInternalState = InternalStateModule$1.enforce;
689
689
  var getInternalState$2 = InternalStateModule$1.get;
690
- var $String$2 = String;
690
+ var $String$3 = String;
691
691
  // eslint-disable-next-line es/no-object-defineproperty -- safe
692
- var defineProperty$4 = Object.defineProperty;
693
- var stringSlice$3 = uncurryThis$b(''.slice);
694
- var replace$2 = uncurryThis$b(''.replace);
695
- var join = uncurryThis$b([].join);
692
+ var defineProperty$5 = Object.defineProperty;
693
+ var stringSlice$3 = uncurryThis$f(''.slice);
694
+ var replace$4 = uncurryThis$f(''.replace);
695
+ var join = uncurryThis$f([].join);
696
696
 
697
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$d(function () {
698
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
697
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$g(function () {
698
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
699
699
  });
700
700
 
701
701
  var TEMPLATE = String(String).split('String');
702
702
 
703
703
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
704
- if (stringSlice$3($String$2(name), 0, 7) === 'Symbol(') {
705
- name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
704
+ if (stringSlice$3($String$3(name), 0, 7) === 'Symbol(') {
705
+ name = '[' + replace$4($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
706
706
  }
707
707
  if (options && options.getter) name = 'get ' + name;
708
708
  if (options && options.setter) name = 'set ' + name;
709
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
710
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
709
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
710
+ if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
711
711
  else value.name = name;
712
712
  }
713
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
714
- defineProperty$4(value, 'length', { value: options.arity });
713
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
714
+ defineProperty$5(value, 'length', { value: options.arity });
715
715
  }
716
716
  try {
717
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
718
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
717
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
718
+ if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
719
719
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
720
720
  } else if (value.prototype) value.prototype = undefined;
721
721
  } catch (error) { /* empty */ }
722
722
  var state = enforceInternalState(value);
723
- if (!hasOwn$4(state, 'source')) {
723
+ if (!hasOwn$5(state, 'source')) {
724
724
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
725
725
  } return value;
726
726
  };
@@ -728,10 +728,10 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
728
728
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
729
729
  // eslint-disable-next-line no-extend-native -- required
730
730
  Function.prototype.toString = makeBuiltIn$1(function toString() {
731
- return isCallable$8(this) && getInternalState$2(this).source || inspectSource$1(this);
731
+ return isCallable$c(this) && getInternalState$2(this).source || inspectSource$1(this);
732
732
  }, 'toString');
733
733
 
734
- var isCallable$7 = isCallable$g;
734
+ var isCallable$b = isCallable$k;
735
735
  var definePropertyModule$2 = objectDefineProperty;
736
736
  var makeBuiltIn = makeBuiltIn$2.exports;
737
737
  var defineGlobalProperty$1 = defineGlobalProperty$3;
@@ -740,7 +740,7 @@ var defineBuiltIn$4 = function (O, key, value, options) {
740
740
  if (!options) options = {};
741
741
  var simple = options.enumerable;
742
742
  var name = options.name !== undefined ? options.name : key;
743
- if (isCallable$7(value)) makeBuiltIn(value, name, options);
743
+ if (isCallable$b(value)) makeBuiltIn(value, name, options);
744
744
  if (options.global) {
745
745
  if (simple) O[key] = value;
746
746
  else defineGlobalProperty$1(key, value);
@@ -810,19 +810,20 @@ var toLength$1 = toLength$2;
810
810
 
811
811
  // `LengthOfArrayLike` abstract operation
812
812
  // https://tc39.es/ecma262/#sec-lengthofarraylike
813
- var lengthOfArrayLike$2 = function (obj) {
813
+ var lengthOfArrayLike$4 = function (obj) {
814
814
  return toLength$1(obj.length);
815
815
  };
816
816
 
817
817
  var toIndexedObject$3 = toIndexedObject$5;
818
818
  var toAbsoluteIndex = toAbsoluteIndex$1;
819
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
819
+ var lengthOfArrayLike$3 = lengthOfArrayLike$4;
820
820
 
821
821
  // `Array.prototype.{ indexOf, includes }` methods implementation
822
822
  var createMethod$3 = function (IS_INCLUDES) {
823
823
  return function ($this, el, fromIndex) {
824
824
  var O = toIndexedObject$3($this);
825
- var length = lengthOfArrayLike$1(O);
825
+ var length = lengthOfArrayLike$3(O);
826
+ if (length === 0) return !IS_INCLUDES && -1;
826
827
  var index = toAbsoluteIndex(fromIndex, length);
827
828
  var value;
828
829
  // Array#includes uses SameValueZero equality algorithm
@@ -847,23 +848,23 @@ var arrayIncludes = {
847
848
  indexOf: createMethod$3(false)
848
849
  };
849
850
 
850
- var uncurryThis$a = functionUncurryThis;
851
- var hasOwn$3 = hasOwnProperty_1;
851
+ var uncurryThis$e = functionUncurryThis;
852
+ var hasOwn$4 = hasOwnProperty_1;
852
853
  var toIndexedObject$2 = toIndexedObject$5;
853
854
  var indexOf$1 = arrayIncludes.indexOf;
854
855
  var hiddenKeys$2 = hiddenKeys$4;
855
856
 
856
- var push$1 = uncurryThis$a([].push);
857
+ var push$2 = uncurryThis$e([].push);
857
858
 
858
859
  var objectKeysInternal = function (object, names) {
859
860
  var O = toIndexedObject$2(object);
860
861
  var i = 0;
861
862
  var result = [];
862
863
  var key;
863
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
864
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$2(result, key);
864
865
  // Don't enum bug & hidden keys
865
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
866
- ~indexOf$1(result, key) || push$1(result, key);
866
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
867
+ ~indexOf$1(result, key) || push$2(result, key);
867
868
  }
868
869
  return result;
869
870
  };
@@ -896,40 +897,40 @@ var objectGetOwnPropertySymbols = {};
896
897
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
897
898
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
898
899
 
899
- var getBuiltIn$2 = getBuiltIn$4;
900
- var uncurryThis$9 = functionUncurryThis;
900
+ var getBuiltIn$4 = getBuiltIn$6;
901
+ var uncurryThis$d = functionUncurryThis;
901
902
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
902
903
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
903
904
  var anObject$7 = anObject$9;
904
905
 
905
- var concat$1 = uncurryThis$9([].concat);
906
+ var concat$1 = uncurryThis$d([].concat);
906
907
 
907
908
  // all object keys, includes non-enumerable and symbols
908
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
909
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
909
910
  var keys = getOwnPropertyNamesModule.f(anObject$7(it));
910
911
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
911
912
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
912
913
  };
913
914
 
914
- var hasOwn$2 = hasOwnProperty_1;
915
+ var hasOwn$3 = hasOwnProperty_1;
915
916
  var ownKeys = ownKeys$1;
916
917
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
917
918
  var definePropertyModule$1 = objectDefineProperty;
918
919
 
919
- var copyConstructorProperties$1 = function (target, source, exceptions) {
920
+ var copyConstructorProperties$2 = function (target, source, exceptions) {
920
921
  var keys = ownKeys(source);
921
922
  var defineProperty = definePropertyModule$1.f;
922
923
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
923
924
  for (var i = 0; i < keys.length; i++) {
924
925
  var key = keys[i];
925
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
926
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
926
927
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
927
928
  }
928
929
  }
929
930
  };
930
931
 
931
- var fails$c = fails$k;
932
- var isCallable$6 = isCallable$g;
932
+ var fails$f = fails$n;
933
+ var isCallable$a = isCallable$k;
933
934
 
934
935
  var replacement = /#|\.prototype\./;
935
936
 
@@ -937,7 +938,7 @@ var isForced$1 = function (feature, detection) {
937
938
  var value = data[normalize(feature)];
938
939
  return value === POLYFILL ? true
939
940
  : value === NATIVE ? false
940
- : isCallable$6(detection) ? fails$c(detection)
941
+ : isCallable$a(detection) ? fails$f(detection)
941
942
  : !!detection;
942
943
  };
943
944
 
@@ -951,12 +952,12 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
951
952
 
952
953
  var isForced_1 = isForced$1;
953
954
 
954
- var global$7 = global$h;
955
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
956
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
955
+ var global$8 = global$h;
956
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
957
+ var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
957
958
  var defineBuiltIn$3 = defineBuiltIn$4;
958
959
  var defineGlobalProperty = defineGlobalProperty$3;
959
- var copyConstructorProperties = copyConstructorProperties$1;
960
+ var copyConstructorProperties$1 = copyConstructorProperties$2;
960
961
  var isForced = isForced_1;
961
962
 
962
963
  /*
@@ -980,27 +981,27 @@ var _export = function (options, source) {
980
981
  var STATIC = options.stat;
981
982
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
982
983
  if (GLOBAL) {
983
- target = global$7;
984
+ target = global$8;
984
985
  } else if (STATIC) {
985
- target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
986
+ target = global$8[TARGET] || defineGlobalProperty(TARGET, {});
986
987
  } else {
987
- target = global$7[TARGET] && global$7[TARGET].prototype;
988
+ target = global$8[TARGET] && global$8[TARGET].prototype;
988
989
  }
989
990
  if (target) for (key in source) {
990
991
  sourceProperty = source[key];
991
992
  if (options.dontCallGetSet) {
992
- descriptor = getOwnPropertyDescriptor(target, key);
993
+ descriptor = getOwnPropertyDescriptor$1(target, key);
993
994
  targetProperty = descriptor && descriptor.value;
994
995
  } else targetProperty = target[key];
995
996
  FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
996
997
  // contained in target
997
998
  if (!FORCED && targetProperty !== undefined) {
998
999
  if (typeof sourceProperty == typeof targetProperty) continue;
999
- copyConstructorProperties(sourceProperty, targetProperty);
1000
+ copyConstructorProperties$1(sourceProperty, targetProperty);
1000
1001
  }
1001
1002
  // add a flag to not completely full polyfills
1002
1003
  if (options.sham || (targetProperty && targetProperty.sham)) {
1003
- createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1004
+ createNonEnumerableProperty$6(sourceProperty, 'sham', true);
1004
1005
  }
1005
1006
  defineBuiltIn$3(target, key, sourceProperty, options);
1006
1007
  }
@@ -1016,30 +1017,30 @@ var objectKeys$2 = Object.keys || function keys(O) {
1016
1017
  return internalObjectKeys(O, enumBugKeys$1);
1017
1018
  };
1018
1019
 
1019
- var DESCRIPTORS$2 = descriptors;
1020
- var uncurryThis$8 = functionUncurryThis;
1021
- var call$5 = functionCall;
1022
- var fails$b = fails$k;
1020
+ var DESCRIPTORS$4 = descriptors;
1021
+ var uncurryThis$c = functionUncurryThis;
1022
+ var call$8 = functionCall;
1023
+ var fails$e = fails$n;
1023
1024
  var objectKeys$1 = objectKeys$2;
1024
1025
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1025
1026
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1026
- var toObject$2 = toObject$4;
1027
+ var toObject$4 = toObject$6;
1027
1028
  var IndexedObject$1 = indexedObject;
1028
1029
 
1029
1030
  // eslint-disable-next-line es/no-object-assign -- safe
1030
1031
  var $assign = Object.assign;
1031
1032
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1032
- var defineProperty$3 = Object.defineProperty;
1033
- var concat = uncurryThis$8([].concat);
1033
+ var defineProperty$4 = Object.defineProperty;
1034
+ var concat = uncurryThis$c([].concat);
1034
1035
 
1035
1036
  // `Object.assign` method
1036
1037
  // https://tc39.es/ecma262/#sec-object.assign
1037
- var objectAssign = !$assign || fails$b(function () {
1038
+ var objectAssign = !$assign || fails$e(function () {
1038
1039
  // should have correct order of operations (Edge bug)
1039
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1040
+ if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1040
1041
  enumerable: true,
1041
1042
  get: function () {
1042
- defineProperty$3(this, 'b', {
1043
+ defineProperty$4(this, 'b', {
1043
1044
  value: 3,
1044
1045
  enumerable: false
1045
1046
  });
@@ -1055,7 +1056,7 @@ var objectAssign = !$assign || fails$b(function () {
1055
1056
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1056
1057
  return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1057
1058
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1058
- var T = toObject$2(target);
1059
+ var T = toObject$4(target);
1059
1060
  var argumentsLength = arguments.length;
1060
1061
  var index = 1;
1061
1062
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -1068,24 +1069,24 @@ var objectAssign = !$assign || fails$b(function () {
1068
1069
  var key;
1069
1070
  while (length > j) {
1070
1071
  key = keys[j++];
1071
- if (!DESCRIPTORS$2 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
1072
+ if (!DESCRIPTORS$4 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
1072
1073
  }
1073
1074
  } return T;
1074
1075
  } : $assign;
1075
1076
 
1076
- var $$6 = _export;
1077
+ var $$b = _export;
1077
1078
  var assign = objectAssign;
1078
1079
 
1079
1080
  // `Object.assign` method
1080
1081
  // https://tc39.es/ecma262/#sec-object.assign
1081
1082
  // eslint-disable-next-line es/no-object-assign -- required for testing
1082
- $$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1083
+ $$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1083
1084
  assign: assign
1084
1085
  });
1085
1086
 
1086
1087
  var objectDefineProperties = {};
1087
1088
 
1088
- var DESCRIPTORS$1 = descriptors;
1089
+ var DESCRIPTORS$3 = descriptors;
1089
1090
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1090
1091
  var definePropertyModule = objectDefineProperty;
1091
1092
  var anObject$6 = anObject$9;
@@ -1095,7 +1096,7 @@ var objectKeys = objectKeys$2;
1095
1096
  // `Object.defineProperties` method
1096
1097
  // https://tc39.es/ecma262/#sec-object.defineproperties
1097
1098
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1098
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1099
+ objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1099
1100
  anObject$6(O);
1100
1101
  var props = toIndexedObject$1(Properties);
1101
1102
  var keys = objectKeys(Properties);
@@ -1106,9 +1107,9 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1106
1107
  return O;
1107
1108
  };
1108
1109
 
1109
- var getBuiltIn$1 = getBuiltIn$4;
1110
+ var getBuiltIn$3 = getBuiltIn$6;
1110
1111
 
1111
- var html$1 = getBuiltIn$1('document', 'documentElement');
1112
+ var html$1 = getBuiltIn$3('document', 'documentElement');
1112
1113
 
1113
1114
  /* global ActiveXObject -- old IE, WSH */
1114
1115
  var anObject$5 = anObject$9;
@@ -1196,7 +1197,7 @@ var objectCreate = Object.create || function create(O, Properties) {
1196
1197
 
1197
1198
  var wellKnownSymbol$a = wellKnownSymbol$c;
1198
1199
  var create$2 = objectCreate;
1199
- var defineProperty$2 = objectDefineProperty.f;
1200
+ var defineProperty$3 = objectDefineProperty.f;
1200
1201
 
1201
1202
  var UNSCOPABLES = wellKnownSymbol$a('unscopables');
1202
1203
  var ArrayPrototype = Array.prototype;
@@ -1204,7 +1205,7 @@ var ArrayPrototype = Array.prototype;
1204
1205
  // Array.prototype[@@unscopables]
1205
1206
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1206
1207
  if (ArrayPrototype[UNSCOPABLES] === undefined) {
1207
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1208
+ defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1208
1209
  configurable: true,
1209
1210
  value: create$2(null)
1210
1211
  });
@@ -1215,20 +1216,20 @@ var addToUnscopables$2 = function (key) {
1215
1216
  ArrayPrototype[UNSCOPABLES][key] = true;
1216
1217
  };
1217
1218
 
1218
- var $$5 = _export;
1219
+ var $$a = _export;
1219
1220
  var $includes = arrayIncludes.includes;
1220
- var fails$a = fails$k;
1221
+ var fails$d = fails$n;
1221
1222
  var addToUnscopables$1 = addToUnscopables$2;
1222
1223
 
1223
1224
  // FF99+ bug
1224
- var BROKEN_ON_SPARSE = fails$a(function () {
1225
+ var BROKEN_ON_SPARSE = fails$d(function () {
1225
1226
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
1226
1227
  return !Array(1).includes();
1227
1228
  });
1228
1229
 
1229
1230
  // `Array.prototype.includes` method
1230
1231
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1231
- $$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1232
+ $$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1232
1233
  includes: function includes(el /* , fromIndex = 0 */) {
1233
1234
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1234
1235
  }
@@ -1239,18 +1240,18 @@ addToUnscopables$1('includes');
1239
1240
 
1240
1241
  var iterators = {};
1241
1242
 
1242
- var fails$9 = fails$k;
1243
+ var fails$c = fails$n;
1243
1244
 
1244
- var correctPrototypeGetter = !fails$9(function () {
1245
+ var correctPrototypeGetter = !fails$c(function () {
1245
1246
  function F() { /* empty */ }
1246
1247
  F.prototype.constructor = null;
1247
1248
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1248
1249
  return Object.getPrototypeOf(new F()) !== F.prototype;
1249
1250
  });
1250
1251
 
1251
- var hasOwn$1 = hasOwnProperty_1;
1252
- var isCallable$5 = isCallable$g;
1253
- var toObject$1 = toObject$4;
1252
+ var hasOwn$2 = hasOwnProperty_1;
1253
+ var isCallable$9 = isCallable$k;
1254
+ var toObject$3 = toObject$6;
1254
1255
  var sharedKey = sharedKey$3;
1255
1256
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1256
1257
 
@@ -1262,17 +1263,17 @@ var ObjectPrototype = $Object$1.prototype;
1262
1263
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1263
1264
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1264
1265
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1265
- var object = toObject$1(O);
1266
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1266
+ var object = toObject$3(O);
1267
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1267
1268
  var constructor = object.constructor;
1268
- if (isCallable$5(constructor) && object instanceof constructor) {
1269
+ if (isCallable$9(constructor) && object instanceof constructor) {
1269
1270
  return constructor.prototype;
1270
1271
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1271
1272
  };
1272
1273
 
1273
- var fails$8 = fails$k;
1274
- var isCallable$4 = isCallable$g;
1275
- var isObject$2 = isObject$8;
1274
+ var fails$b = fails$n;
1275
+ var isCallable$8 = isCallable$k;
1276
+ var isObject$5 = isObject$b;
1276
1277
  var getPrototypeOf$1 = objectGetPrototypeOf;
1277
1278
  var defineBuiltIn$2 = defineBuiltIn$4;
1278
1279
  var wellKnownSymbol$9 = wellKnownSymbol$c;
@@ -1295,7 +1296,7 @@ if ([].keys) {
1295
1296
  }
1296
1297
  }
1297
1298
 
1298
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$8(function () {
1299
+ var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$b(function () {
1299
1300
  var test = {};
1300
1301
  // FF44- legacy iterators case
1301
1302
  return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
@@ -1305,7 +1306,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1305
1306
 
1306
1307
  // `%IteratorPrototype%[@@iterator]()` method
1307
1308
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1308
- if (!isCallable$4(IteratorPrototype$2[ITERATOR$3])) {
1309
+ if (!isCallable$8(IteratorPrototype$2[ITERATOR$3])) {
1309
1310
  defineBuiltIn$2(IteratorPrototype$2, ITERATOR$3, function () {
1310
1311
  return this;
1311
1312
  });
@@ -1316,22 +1317,22 @@ var iteratorsCore = {
1316
1317
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1317
1318
  };
1318
1319
 
1319
- var defineProperty$1 = objectDefineProperty.f;
1320
- var hasOwn = hasOwnProperty_1;
1320
+ var defineProperty$2 = objectDefineProperty.f;
1321
+ var hasOwn$1 = hasOwnProperty_1;
1321
1322
  var wellKnownSymbol$8 = wellKnownSymbol$c;
1322
1323
 
1323
1324
  var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1324
1325
 
1325
1326
  var setToStringTag$3 = function (target, TAG, STATIC) {
1326
1327
  if (target && !STATIC) target = target.prototype;
1327
- if (target && !hasOwn(target, TO_STRING_TAG$2)) {
1328
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1328
+ if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1329
+ defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1329
1330
  }
1330
1331
  };
1331
1332
 
1332
1333
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1333
1334
  var create$1 = objectCreate;
1334
- var createPropertyDescriptor = createPropertyDescriptor$3;
1335
+ var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1335
1336
  var setToStringTag$2 = setToStringTag$3;
1336
1337
  var Iterators$2 = iterators;
1337
1338
 
@@ -1339,41 +1340,42 @@ var returnThis$1 = function () { return this; };
1339
1340
 
1340
1341
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1341
1342
  var TO_STRING_TAG = NAME + ' Iterator';
1342
- IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1343
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1343
1344
  setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1344
1345
  Iterators$2[TO_STRING_TAG] = returnThis$1;
1345
1346
  return IteratorConstructor;
1346
1347
  };
1347
1348
 
1348
- var uncurryThis$7 = functionUncurryThis;
1349
+ var uncurryThis$b = functionUncurryThis;
1349
1350
  var aCallable$1 = aCallable$3;
1350
1351
 
1351
1352
  var functionUncurryThisAccessor = function (object, key, method) {
1352
1353
  try {
1353
1354
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1354
- return uncurryThis$7(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1355
+ return uncurryThis$b(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1355
1356
  } catch (error) { /* empty */ }
1356
1357
  };
1357
1358
 
1358
- var isObject$1 = isObject$8;
1359
+ var isObject$4 = isObject$b;
1359
1360
 
1360
1361
  var isPossiblePrototype$1 = function (argument) {
1361
- return isObject$1(argument) || argument === null;
1362
+ return isObject$4(argument) || argument === null;
1362
1363
  };
1363
1364
 
1364
1365
  var isPossiblePrototype = isPossiblePrototype$1;
1365
1366
 
1366
- var $String$1 = String;
1367
- var $TypeError$4 = TypeError;
1367
+ var $String$2 = String;
1368
+ var $TypeError$7 = TypeError;
1368
1369
 
1369
1370
  var aPossiblePrototype$1 = function (argument) {
1370
1371
  if (isPossiblePrototype(argument)) return argument;
1371
- throw new $TypeError$4("Can't set " + $String$1(argument) + ' as a prototype');
1372
+ throw new $TypeError$7("Can't set " + $String$2(argument) + ' as a prototype');
1372
1373
  };
1373
1374
 
1374
1375
  /* eslint-disable no-proto -- safe */
1375
1376
  var uncurryThisAccessor = functionUncurryThisAccessor;
1376
- var anObject$4 = anObject$9;
1377
+ var isObject$3 = isObject$b;
1378
+ var requireObjectCoercible$4 = requireObjectCoercible$7;
1377
1379
  var aPossiblePrototype = aPossiblePrototype$1;
1378
1380
 
1379
1381
  // `Object.setPrototypeOf` method
@@ -1390,23 +1392,24 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1390
1392
  CORRECT_SETTER = test instanceof Array;
1391
1393
  } catch (error) { /* empty */ }
1392
1394
  return function setPrototypeOf(O, proto) {
1393
- anObject$4(O);
1395
+ requireObjectCoercible$4(O);
1394
1396
  aPossiblePrototype(proto);
1397
+ if (!isObject$3(O)) return O;
1395
1398
  if (CORRECT_SETTER) setter(O, proto);
1396
1399
  else O.__proto__ = proto;
1397
1400
  return O;
1398
1401
  };
1399
1402
  }() : undefined);
1400
1403
 
1401
- var $$4 = _export;
1402
- var call$4 = functionCall;
1404
+ var $$9 = _export;
1405
+ var call$7 = functionCall;
1403
1406
  var FunctionName = functionName;
1404
- var isCallable$3 = isCallable$g;
1407
+ var isCallable$7 = isCallable$k;
1405
1408
  var createIteratorConstructor = iteratorCreateConstructor;
1406
1409
  var getPrototypeOf = objectGetPrototypeOf;
1407
- var setPrototypeOf = objectSetPrototypeOf;
1410
+ var setPrototypeOf$2 = objectSetPrototypeOf;
1408
1411
  var setToStringTag$1 = setToStringTag$3;
1409
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1412
+ var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
1410
1413
  var defineBuiltIn$1 = defineBuiltIn$4;
1411
1414
  var wellKnownSymbol$7 = wellKnownSymbol$c;
1412
1415
  var Iterators$1 = iterators;
@@ -1454,9 +1457,9 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1454
1457
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1455
1458
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1456
1459
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1457
- if (setPrototypeOf) {
1458
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1459
- } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$2])) {
1460
+ if (setPrototypeOf$2) {
1461
+ setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype);
1462
+ } else if (!isCallable$7(CurrentIteratorPrototype[ITERATOR$2])) {
1460
1463
  defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$2, returnThis);
1461
1464
  }
1462
1465
  }
@@ -1468,10 +1471,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1468
1471
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1469
1472
  if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1470
1473
  if (CONFIGURABLE_FUNCTION_NAME) {
1471
- createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1474
+ createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
1472
1475
  } else {
1473
1476
  INCORRECT_VALUES_NAME = true;
1474
- defaultIterator = function values() { return call$4(nativeIterator, this); };
1477
+ defaultIterator = function values() { return call$7(nativeIterator, this); };
1475
1478
  }
1476
1479
  }
1477
1480
 
@@ -1486,7 +1489,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1486
1489
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1487
1490
  defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1488
1491
  }
1489
- } else $$4({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1492
+ } else $$9({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1490
1493
  }
1491
1494
 
1492
1495
  // define iterator
@@ -1508,10 +1511,10 @@ var toIndexedObject = toIndexedObject$5;
1508
1511
  var addToUnscopables = addToUnscopables$2;
1509
1512
  var Iterators = iterators;
1510
1513
  var InternalStateModule = internalState;
1511
- var defineProperty = objectDefineProperty.f;
1514
+ var defineProperty$1 = objectDefineProperty.f;
1512
1515
  var defineIterator = iteratorDefine;
1513
1516
  var createIterResultObject = createIterResultObject$1;
1514
- var DESCRIPTORS = descriptors;
1517
+ var DESCRIPTORS$2 = descriptors;
1515
1518
 
1516
1519
  var ARRAY_ITERATOR = 'Array Iterator';
1517
1520
  var setInternalState = InternalStateModule.set;
@@ -1561,24 +1564,113 @@ addToUnscopables('values');
1561
1564
  addToUnscopables('entries');
1562
1565
 
1563
1566
  // V8 ~ Chrome 45- bug
1564
- if (DESCRIPTORS && values.name !== 'values') try {
1565
- defineProperty(values, 'name', { value: 'values' });
1567
+ if (DESCRIPTORS$2 && values.name !== 'values') try {
1568
+ defineProperty$1(values, 'name', { value: 'values' });
1566
1569
  } catch (error) { /* empty */ }
1567
1570
 
1571
+ var classof$7 = classofRaw$1;
1572
+
1573
+ // `IsArray` abstract operation
1574
+ // https://tc39.es/ecma262/#sec-isarray
1575
+ // eslint-disable-next-line es/no-array-isarray -- safe
1576
+ var isArray$2 = Array.isArray || function isArray(argument) {
1577
+ return classof$7(argument) === 'Array';
1578
+ };
1579
+
1580
+ var DESCRIPTORS$1 = descriptors;
1581
+ var isArray$1 = isArray$2;
1582
+
1583
+ var $TypeError$6 = TypeError;
1584
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1585
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1586
+
1587
+ // Safari < 13 does not throw an error in this case
1588
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$1 && !function () {
1589
+ // makes no sense without proper strict mode support
1590
+ if (this !== undefined) return true;
1591
+ try {
1592
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1593
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
1594
+ } catch (error) {
1595
+ return error instanceof TypeError;
1596
+ }
1597
+ }();
1598
+
1599
+ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1600
+ if (isArray$1(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1601
+ throw new $TypeError$6('Cannot set read only .length');
1602
+ } return O.length = length;
1603
+ } : function (O, length) {
1604
+ return O.length = length;
1605
+ };
1606
+
1607
+ var $TypeError$5 = TypeError;
1608
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1609
+
1610
+ var doesNotExceedSafeInteger$2 = function (it) {
1611
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$5('Maximum allowed index exceeded');
1612
+ return it;
1613
+ };
1614
+
1615
+ var $$8 = _export;
1616
+ var toObject$2 = toObject$6;
1617
+ var lengthOfArrayLike$2 = lengthOfArrayLike$4;
1618
+ var setArrayLength$1 = arraySetLength;
1619
+ var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
1620
+ var fails$a = fails$n;
1621
+
1622
+ var INCORRECT_TO_LENGTH = fails$a(function () {
1623
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1624
+ });
1625
+
1626
+ // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1627
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1628
+ var properErrorOnNonWritableLength$1 = function () {
1629
+ try {
1630
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1631
+ Object.defineProperty([], 'length', { writable: false }).push();
1632
+ } catch (error) {
1633
+ return error instanceof TypeError;
1634
+ }
1635
+ };
1636
+
1637
+ var FORCED$4 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
1638
+
1639
+ // `Array.prototype.push` method
1640
+ // https://tc39.es/ecma262/#sec-array.prototype.push
1641
+ $$8({ target: 'Array', proto: true, arity: 1, forced: FORCED$4 }, {
1642
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1643
+ push: function push(item) {
1644
+ var O = toObject$2(this);
1645
+ var len = lengthOfArrayLike$2(O);
1646
+ var argCount = arguments.length;
1647
+ doesNotExceedSafeInteger$1(len + argCount);
1648
+ for (var i = 0; i < argCount; i++) {
1649
+ O[len] = arguments[i];
1650
+ len++;
1651
+ }
1652
+ setArrayLength$1(O, len);
1653
+ return len;
1654
+ }
1655
+ });
1656
+
1568
1657
  var aCallable = aCallable$3;
1569
- var toObject = toObject$4;
1658
+ var toObject$1 = toObject$6;
1570
1659
  var IndexedObject = indexedObject;
1571
- var lengthOfArrayLike = lengthOfArrayLike$2;
1660
+ var lengthOfArrayLike$1 = lengthOfArrayLike$4;
1572
1661
 
1573
- var $TypeError$3 = TypeError;
1662
+ var $TypeError$4 = TypeError;
1663
+
1664
+ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
1574
1665
 
1575
1666
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
1576
1667
  var createMethod$2 = function (IS_RIGHT) {
1577
1668
  return function (that, callbackfn, argumentsLength, memo) {
1578
- var O = toObject(that);
1669
+ var O = toObject$1(that);
1579
1670
  var self = IndexedObject(O);
1580
- var length = lengthOfArrayLike(O);
1671
+ var length = lengthOfArrayLike$1(O);
1581
1672
  aCallable(callbackfn);
1673
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$4(REDUCE_EMPTY);
1582
1674
  var index = IS_RIGHT ? length - 1 : 0;
1583
1675
  var i = IS_RIGHT ? -1 : 1;
1584
1676
  if (argumentsLength < 2) while (true) {
@@ -1589,7 +1681,7 @@ var createMethod$2 = function (IS_RIGHT) {
1589
1681
  }
1590
1682
  index += i;
1591
1683
  if (IS_RIGHT ? index < 0 : length <= index) {
1592
- throw new $TypeError$3('Reduce of empty array with no initial value');
1684
+ throw new $TypeError$4(REDUCE_EMPTY);
1593
1685
  }
1594
1686
  }
1595
1687
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -1608,22 +1700,22 @@ var arrayReduce = {
1608
1700
  right: createMethod$2(true)
1609
1701
  };
1610
1702
 
1611
- var fails$7 = fails$k;
1703
+ var fails$9 = fails$n;
1612
1704
 
1613
1705
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1614
1706
  var method = [][METHOD_NAME];
1615
- return !!method && fails$7(function () {
1707
+ return !!method && fails$9(function () {
1616
1708
  // eslint-disable-next-line no-useless-call -- required for testing
1617
1709
  method.call(null, argument || function () { return 1; }, 1);
1618
1710
  });
1619
1711
  };
1620
1712
 
1621
- var global$6 = global$h;
1622
- var classof$5 = classofRaw$1;
1713
+ var global$7 = global$h;
1714
+ var classof$6 = classofRaw$1;
1623
1715
 
1624
- var engineIsNode = classof$5(global$6.process) === 'process';
1716
+ var engineIsNode = classof$6(global$7.process) === 'process';
1625
1717
 
1626
- var $$3 = _export;
1718
+ var $$7 = _export;
1627
1719
  var $reduce = arrayReduce.left;
1628
1720
  var arrayMethodIsStrict = arrayMethodIsStrict$1;
1629
1721
  var CHROME_VERSION = engineV8Version;
@@ -1632,19 +1724,19 @@ var IS_NODE = engineIsNode;
1632
1724
  // Chrome 80-82 has a critical bug
1633
1725
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1634
1726
  var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1635
- var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
1727
+ var FORCED$3 = CHROME_BUG || !arrayMethodIsStrict('reduce');
1636
1728
 
1637
1729
  // `Array.prototype.reduce` method
1638
1730
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
1639
- $$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
1731
+ $$7({ target: 'Array', proto: true, forced: FORCED$3 }, {
1640
1732
  reduce: function reduce(callbackfn /* , initialValue */) {
1641
1733
  var length = arguments.length;
1642
1734
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1643
1735
  }
1644
1736
  });
1645
1737
 
1646
- var isObject = isObject$8;
1647
- var classof$4 = classofRaw$1;
1738
+ var isObject$2 = isObject$b;
1739
+ var classof$5 = classofRaw$1;
1648
1740
  var wellKnownSymbol$6 = wellKnownSymbol$c;
1649
1741
 
1650
1742
  var MATCH$1 = wellKnownSymbol$6('match');
@@ -1653,16 +1745,16 @@ var MATCH$1 = wellKnownSymbol$6('match');
1653
1745
  // https://tc39.es/ecma262/#sec-isregexp
1654
1746
  var isRegexp = function (it) {
1655
1747
  var isRegExp;
1656
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) === 'RegExp');
1748
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
1657
1749
  };
1658
1750
 
1659
1751
  var isRegExp = isRegexp;
1660
1752
 
1661
- var $TypeError$2 = TypeError;
1753
+ var $TypeError$3 = TypeError;
1662
1754
 
1663
1755
  var notARegexp = function (it) {
1664
1756
  if (isRegExp(it)) {
1665
- throw new $TypeError$2("The method doesn't accept regular expressions");
1757
+ throw new $TypeError$3("The method doesn't accept regular expressions");
1666
1758
  } return it;
1667
1759
  };
1668
1760
 
@@ -1676,7 +1768,7 @@ test[TO_STRING_TAG$1] = 'z';
1676
1768
  var toStringTagSupport = String(test) === '[object z]';
1677
1769
 
1678
1770
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1679
- var isCallable$2 = isCallable$g;
1771
+ var isCallable$6 = isCallable$k;
1680
1772
  var classofRaw = classofRaw$1;
1681
1773
  var wellKnownSymbol$4 = wellKnownSymbol$c;
1682
1774
 
@@ -1694,7 +1786,7 @@ var tryGet = function (it, key) {
1694
1786
  };
1695
1787
 
1696
1788
  // getting tag from ES6+ `Object.prototype.toString`
1697
- var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1789
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1698
1790
  var O, tag, result;
1699
1791
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1700
1792
  // @@toStringTag case
@@ -1702,16 +1794,16 @@ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1702
1794
  // builtinTag case
1703
1795
  : CORRECT_ARGUMENTS ? classofRaw(O)
1704
1796
  // ES3 arguments fallback
1705
- : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1797
+ : (result = classofRaw(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
1706
1798
  };
1707
1799
 
1708
- var classof$2 = classof$3;
1800
+ var classof$3 = classof$4;
1709
1801
 
1710
- var $String = String;
1802
+ var $String$1 = String;
1711
1803
 
1712
- var toString$6 = function (argument) {
1713
- if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1714
- return $String(argument);
1804
+ var toString$9 = function (argument) {
1805
+ if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1806
+ return $String$1(argument);
1715
1807
  };
1716
1808
 
1717
1809
  var wellKnownSymbol$3 = wellKnownSymbol$c;
@@ -1730,22 +1822,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
1730
1822
  } return false;
1731
1823
  };
1732
1824
 
1733
- var $$2 = _export;
1734
- var uncurryThis$6 = functionUncurryThis;
1825
+ var $$6 = _export;
1826
+ var uncurryThis$a = functionUncurryThis;
1735
1827
  var notARegExp = notARegexp;
1736
- var requireObjectCoercible$3 = requireObjectCoercible$6;
1737
- var toString$5 = toString$6;
1828
+ var requireObjectCoercible$3 = requireObjectCoercible$7;
1829
+ var toString$8 = toString$9;
1738
1830
  var correctIsRegExpLogic = correctIsRegexpLogic;
1739
1831
 
1740
- var stringIndexOf = uncurryThis$6(''.indexOf);
1832
+ var stringIndexOf = uncurryThis$a(''.indexOf);
1741
1833
 
1742
1834
  // `String.prototype.includes` method
1743
1835
  // https://tc39.es/ecma262/#sec-string.prototype.includes
1744
- $$2({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1836
+ $$6({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1745
1837
  includes: function includes(searchString /* , position = 0 */) {
1746
1838
  return !!~stringIndexOf(
1747
- toString$5(requireObjectCoercible$3(this)),
1748
- toString$5(notARegExp(searchString)),
1839
+ toString$8(requireObjectCoercible$3(this)),
1840
+ toString$8(notARegExp(searchString)),
1749
1841
  arguments.length > 1 ? arguments[1] : undefined
1750
1842
  );
1751
1843
  }
@@ -1795,11 +1887,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1795
1887
 
1796
1888
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1797
1889
 
1798
- var global$5 = global$h;
1890
+ var global$6 = global$h;
1799
1891
  var DOMIterables = domIterables;
1800
1892
  var DOMTokenListPrototype = domTokenListPrototype;
1801
1893
  var ArrayIteratorMethods = es_array_iterator;
1802
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1894
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
1803
1895
  var setToStringTag = setToStringTag$3;
1804
1896
  var wellKnownSymbol$2 = wellKnownSymbol$c;
1805
1897
 
@@ -1810,7 +1902,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1810
1902
  if (CollectionPrototype) {
1811
1903
  // some Chrome versions have non-configurable methods on DOMTokenList
1812
1904
  if (CollectionPrototype[ITERATOR$1] !== ArrayValues) try {
1813
- createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$1, ArrayValues);
1905
+ createNonEnumerableProperty$4(CollectionPrototype, ITERATOR$1, ArrayValues);
1814
1906
  } catch (error) {
1815
1907
  CollectionPrototype[ITERATOR$1] = ArrayValues;
1816
1908
  }
@@ -1818,7 +1910,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1818
1910
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1819
1911
  // some Chrome versions have non-configurable methods on DOMTokenList
1820
1912
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1821
- createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1913
+ createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1822
1914
  } catch (error) {
1823
1915
  CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1824
1916
  }
@@ -1827,7 +1919,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1827
1919
  };
1828
1920
 
1829
1921
  for (var COLLECTION_NAME in DOMIterables) {
1830
- handlePrototype(global$5[COLLECTION_NAME] && global$5[COLLECTION_NAME].prototype, COLLECTION_NAME);
1922
+ handlePrototype(global$6[COLLECTION_NAME] && global$6[COLLECTION_NAME].prototype, COLLECTION_NAME);
1831
1923
  }
1832
1924
 
1833
1925
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -2897,6 +2989,20 @@ const slice$7 = createSlice({
2897
2989
  }
2898
2990
  }
2899
2991
  }
2992
+ },
2993
+ // layer info actions
2994
+ showLayerInfo: (draft, action) => {
2995
+ const {
2996
+ serviceUrl,
2997
+ layerName
2998
+ } = action.payload;
2999
+ draft.activeLayerInfo = {
3000
+ serviceUrl,
3001
+ layerName
3002
+ };
3003
+ },
3004
+ hideLayerInfo: draft => {
3005
+ delete draft.activeLayerInfo;
2900
3006
  }
2901
3007
  },
2902
3008
  extraReducers: builder => {
@@ -3298,6 +3404,7 @@ const getUseLatestReferenceTime = createSelector(getLayerById, layer => Boolean(
3298
3404
  const getTimeStepForLayerId = createSelector(getLayerTimeDimension, timeDimension => {
3299
3405
  return timeDimension && timeDimension.timeInterval ? getTimeStepFromDataInterval(timeDimension.timeInterval) : undefined;
3300
3406
  }, selectorMemoizationOptions);
3407
+ const getActiveLayerInfo = createSelector(layerStore, store => store === null || store === void 0 ? void 0 : store.activeLayerInfo);
3301
3408
 
3302
3409
  var selectors$7 = /*#__PURE__*/Object.freeze({
3303
3410
  __proto__: null,
@@ -3333,7 +3440,8 @@ var selectors$7 = /*#__PURE__*/Object.freeze({
3333
3440
  getAcceptanceTimeInMinutes: getAcceptanceTimeInMinutes,
3334
3441
  getLayerIsInsideAcceptanceTime: getLayerIsInsideAcceptanceTime,
3335
3442
  getUseLatestReferenceTime: getUseLatestReferenceTime,
3336
- getTimeStepForLayerId: getTimeStepForLayerId
3443
+ getTimeStepForLayerId: getTimeStepForLayerId,
3444
+ getActiveLayerInfo: getActiveLayerInfo
3337
3445
  });
3338
3446
 
3339
3447
  /* *
@@ -3449,6 +3557,59 @@ function replaceLayerIds(layers, autoLayerIdOld, autoLayerIdNew) {
3449
3557
  return layersWithNewIds;
3450
3558
  }
3451
3559
 
3560
+ var tryToString$1 = tryToString$3;
3561
+
3562
+ var $TypeError$2 = TypeError;
3563
+
3564
+ var deletePropertyOrThrow$1 = function (O, P) {
3565
+ if (!delete O[P]) throw new $TypeError$2('Cannot delete property ' + tryToString$1(P) + ' of ' + tryToString$1(O));
3566
+ };
3567
+
3568
+ var $$5 = _export;
3569
+ var toObject = toObject$6;
3570
+ var lengthOfArrayLike = lengthOfArrayLike$4;
3571
+ var setArrayLength = arraySetLength;
3572
+ var deletePropertyOrThrow = deletePropertyOrThrow$1;
3573
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
3574
+
3575
+ // IE8-
3576
+ var INCORRECT_RESULT = [].unshift(0) !== 1;
3577
+
3578
+ // V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError
3579
+ var properErrorOnNonWritableLength = function () {
3580
+ try {
3581
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
3582
+ Object.defineProperty([], 'length', { writable: false }).unshift();
3583
+ } catch (error) {
3584
+ return error instanceof TypeError;
3585
+ }
3586
+ };
3587
+
3588
+ var FORCED$2 = INCORRECT_RESULT || !properErrorOnNonWritableLength();
3589
+
3590
+ // `Array.prototype.unshift` method
3591
+ // https://tc39.es/ecma262/#sec-array.prototype.unshift
3592
+ $$5({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
3593
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3594
+ unshift: function unshift(item) {
3595
+ var O = toObject(this);
3596
+ var len = lengthOfArrayLike(O);
3597
+ var argCount = arguments.length;
3598
+ if (argCount) {
3599
+ doesNotExceedSafeInteger(len + argCount);
3600
+ var k = len;
3601
+ while (k--) {
3602
+ var to = k + argCount;
3603
+ if (k in O) O[to] = O[k];
3604
+ else deletePropertyOrThrow(O, to);
3605
+ }
3606
+ for (var j = 0; j < argCount; j++) {
3607
+ O[j] = arguments[j];
3608
+ }
3609
+ } return setArrayLength(O, len + argCount);
3610
+ }
3611
+ });
3612
+
3452
3613
  const moveToTop = (list, element) => {
3453
3614
  const filteredList = list.filter(item => item !== element);
3454
3615
  const newOrder = [element, ...filteredList];
@@ -4272,6 +4433,7 @@ const {
4272
4433
  reducer: reducer$4
4273
4434
  } = slice$5;
4274
4435
 
4436
+ const useAppSelector = useSelector;
4275
4437
  const getUiStore = store => {
4276
4438
  if (store && store.ui) {
4277
4439
  return store.ui;
@@ -4389,9 +4551,28 @@ const getDialogIsLoading = createSelector(getDialogDetailsByType, details => {
4389
4551
  const getDialogError = createSelector(getDialogDetailsByType, details => {
4390
4552
  return details && details.error || '';
4391
4553
  }, selectorMemoizationOptions);
4554
+ const getUiDialogsByActiveMapId = (store, mapId) => {
4555
+ if (store && store.ui && store.ui.order) {
4556
+ const foundDialogsIds = store.ui.order.filter(id => {
4557
+ var _a, _b;
4558
+ return ((_b = (_a = store.ui) === null || _a === void 0 ? void 0 : _a.dialogs[id]) === null || _b === void 0 ? void 0 : _b.activeMapId) === mapId;
4559
+ });
4560
+ const foundDialogs = foundDialogsIds.reduce((list, id) => {
4561
+ var _a;
4562
+ const dialog = (_a = store.ui) === null || _a === void 0 ? void 0 : _a.dialogs[id];
4563
+ if (dialog) {
4564
+ return list.concat(dialog);
4565
+ }
4566
+ return list;
4567
+ }, []);
4568
+ return foundDialogs.length ? foundDialogs : [];
4569
+ }
4570
+ return [];
4571
+ };
4392
4572
 
4393
4573
  var selectors$6 = /*#__PURE__*/Object.freeze({
4394
4574
  __proto__: null,
4575
+ useAppSelector: useAppSelector,
4395
4576
  getUiStore: getUiStore,
4396
4577
  getDialogDetailsByType: getDialogDetailsByType,
4397
4578
  getisDialogOpen: getisDialogOpen,
@@ -4402,7 +4583,8 @@ var selectors$6 = /*#__PURE__*/Object.freeze({
4402
4583
  getActiveWindowId: getActiveWindowId,
4403
4584
  getIsActiveWindowId: getIsActiveWindowId,
4404
4585
  getDialogIsLoading: getDialogIsLoading,
4405
- getDialogError: getDialogError
4586
+ getDialogError: getDialogError,
4587
+ getUiDialogsByActiveMapId: getUiDialogsByActiveMapId
4406
4588
  });
4407
4589
 
4408
4590
  /* *
@@ -4458,54 +4640,129 @@ var types$3 = /*#__PURE__*/Object.freeze({
4458
4640
  * See the License for the specific language governing permissions and
4459
4641
  * limitations under the License.
4460
4642
  *
4461
- * Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4462
- * Copyright 2020 - Finnish Meteorological Institute (FMI)
4463
- * */
4464
- /* Type constants */
4465
- const SYNCGROUPS_TYPE_SETTIME = 'SYNCGROUPS_TYPE_SETTIME';
4466
- const SYNCGROUPS_TYPE_SETBBOX = 'SYNCGROUPS_TYPE_SETBBOX';
4467
- const SYNCGROUPS_TYPE_SETLAYERACTIONS = 'SYNCGROUPS_TYPE_SETLAYERACTIONS';
4468
- const SYNCGROUPS_SET_VIEW_STATE = 'SYNCGROUPS_SET_VIEW_STATE';
4469
-
4470
- var constants$1 = /*#__PURE__*/Object.freeze({
4471
- __proto__: null,
4472
- SYNCGROUPS_TYPE_SETTIME: SYNCGROUPS_TYPE_SETTIME,
4473
- SYNCGROUPS_TYPE_SETBBOX: SYNCGROUPS_TYPE_SETBBOX,
4474
- SYNCGROUPS_TYPE_SETLAYERACTIONS: SYNCGROUPS_TYPE_SETLAYERACTIONS,
4475
- SYNCGROUPS_SET_VIEW_STATE: SYNCGROUPS_SET_VIEW_STATE
4476
- });
4477
-
4478
- /* *
4479
- * Licensed under the Apache License, Version 2.0 (the "License");
4480
- * you may not use this file except in compliance with the License.
4481
- * You may obtain a copy of the License at
4482
- *
4483
- * http://www.apache.org/licenses/LICENSE-2.0
4484
- *
4485
- * Unless required by applicable law or agreed to in writing, software
4486
- * distributed under the License is distributed on an "AS IS" BASIS,
4487
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4488
- * See the License for the specific language governing permissions and
4489
- * limitations under the License.
4490
- *
4491
- * Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4492
- * Copyright 2020 - Finnish Meteorological Institute (FMI)
4643
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4644
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
4493
4645
  * */
4494
- /**
4495
- * The removeInPlace() method modifies an array in place, by removing elements that pass the test implemented by the provided function.
4496
- *
4497
- * NOTE: This should only be used on draft properties as provided by the immer produce library, as modifying elements in place is bad practice on non draft variables.
4498
- *
4499
- * @param inDraftArray The draft array to filter, will be modified in place.
4500
- * @param condition Function to check each element in the array
4501
- */
4502
- const removeInPlace = (inDraftArray, condition) => {
4503
- let j = 0;
4504
- inDraftArray.forEach((e, i) => {
4505
- if (!condition(e)) {
4506
- if (i !== j) {
4507
- // eslint-disable-next-line no-param-reassign
4508
- inDraftArray[j] = e;
4646
+ const useSetupDialog = (dialogType, source = 'app') => {
4647
+ const dispatch = useDispatch();
4648
+ const onCloseDialog = useCallback(() => {
4649
+ dispatch(uiActions.setToggleOpenDialog({
4650
+ type: dialogType,
4651
+ setOpen: false
4652
+ }));
4653
+ }, [dialogType, dispatch]);
4654
+ const registerDialog = useCallback(() => {
4655
+ dispatch(uiActions.registerDialog({
4656
+ type: dialogType,
4657
+ setOpen: false,
4658
+ source
4659
+ }));
4660
+ }, [dialogType, dispatch, source]);
4661
+ const unregisterDialog = useCallback(() => {
4662
+ dispatch(uiActions.unregisterDialog({
4663
+ type: dialogType
4664
+ }));
4665
+ }, [dialogType, dispatch]);
4666
+ // Register this dialog in the store
4667
+ useEffect(() => {
4668
+ registerDialog();
4669
+ return () => {
4670
+ unregisterDialog();
4671
+ };
4672
+ // eslint-disable-next-line react-hooks/exhaustive-deps
4673
+ }, []);
4674
+ const uiIsOrderedOnTop = useAppSelector(store => getDialogIsOrderedOnTop(store, dialogType));
4675
+ const setDialogOrder = useCallback(() => {
4676
+ if (!uiIsOrderedOnTop) {
4677
+ dispatch(uiActions.orderDialog({
4678
+ type: dialogType
4679
+ }));
4680
+ }
4681
+ }, [dialogType, dispatch, uiIsOrderedOnTop]);
4682
+ const dialogOrder = useAppSelector(store => getDialogOrder(store, dialogType));
4683
+ const uiSource = useAppSelector(store => getDialogSource(store, dialogType));
4684
+ const isDialogOpen = useAppSelector(store => getisDialogOpen(store, dialogType));
4685
+ const uiIsLoading = useAppSelector(store => getDialogIsLoading(store, dialogType));
4686
+ const uiError = useAppSelector(store => getDialogError(store, dialogType));
4687
+ const setFocused = focused => {
4688
+ dispatch(uiActions.setDialogFocused({
4689
+ type: dialogType,
4690
+ focused
4691
+ }));
4692
+ };
4693
+ return {
4694
+ setDialogOrder,
4695
+ dialogOrder,
4696
+ onCloseDialog,
4697
+ uiSource,
4698
+ isDialogOpen,
4699
+ uiIsLoading,
4700
+ uiError,
4701
+ setFocused
4702
+ };
4703
+ };
4704
+
4705
+ /* *
4706
+ * Licensed under the Apache License, Version 2.0 (the "License");
4707
+ * you may not use this file except in compliance with the License.
4708
+ * You may obtain a copy of the License at
4709
+ *
4710
+ * http://www.apache.org/licenses/LICENSE-2.0
4711
+ *
4712
+ * Unless required by applicable law or agreed to in writing, software
4713
+ * distributed under the License is distributed on an "AS IS" BASIS,
4714
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4715
+ * See the License for the specific language governing permissions and
4716
+ * limitations under the License.
4717
+ *
4718
+ * Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4719
+ * Copyright 2020 - Finnish Meteorological Institute (FMI)
4720
+ * */
4721
+ /* Type constants */
4722
+ const SYNCGROUPS_TYPE_SETTIME = 'SYNCGROUPS_TYPE_SETTIME';
4723
+ const SYNCGROUPS_TYPE_SETBBOX = 'SYNCGROUPS_TYPE_SETBBOX';
4724
+ const SYNCGROUPS_TYPE_SETLAYERACTIONS = 'SYNCGROUPS_TYPE_SETLAYERACTIONS';
4725
+ const SYNCGROUPS_SET_VIEW_STATE = 'SYNCGROUPS_SET_VIEW_STATE';
4726
+
4727
+ var constants$1 = /*#__PURE__*/Object.freeze({
4728
+ __proto__: null,
4729
+ SYNCGROUPS_TYPE_SETTIME: SYNCGROUPS_TYPE_SETTIME,
4730
+ SYNCGROUPS_TYPE_SETBBOX: SYNCGROUPS_TYPE_SETBBOX,
4731
+ SYNCGROUPS_TYPE_SETLAYERACTIONS: SYNCGROUPS_TYPE_SETLAYERACTIONS,
4732
+ SYNCGROUPS_SET_VIEW_STATE: SYNCGROUPS_SET_VIEW_STATE
4733
+ });
4734
+
4735
+ /* *
4736
+ * Licensed under the Apache License, Version 2.0 (the "License");
4737
+ * you may not use this file except in compliance with the License.
4738
+ * You may obtain a copy of the License at
4739
+ *
4740
+ * http://www.apache.org/licenses/LICENSE-2.0
4741
+ *
4742
+ * Unless required by applicable law or agreed to in writing, software
4743
+ * distributed under the License is distributed on an "AS IS" BASIS,
4744
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4745
+ * See the License for the specific language governing permissions and
4746
+ * limitations under the License.
4747
+ *
4748
+ * Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4749
+ * Copyright 2020 - Finnish Meteorological Institute (FMI)
4750
+ * */
4751
+ /**
4752
+ * The removeInPlace() method modifies an array in place, by removing elements that pass the test implemented by the provided function.
4753
+ *
4754
+ * NOTE: This should only be used on draft properties as provided by the immer produce library, as modifying elements in place is bad practice on non draft variables.
4755
+ *
4756
+ * @param inDraftArray The draft array to filter, will be modified in place.
4757
+ * @param condition Function to check each element in the array
4758
+ */
4759
+ const removeInPlace = (inDraftArray, condition) => {
4760
+ let j = 0;
4761
+ inDraftArray.forEach((e, i) => {
4762
+ if (!condition(e)) {
4763
+ if (i !== j) {
4764
+ // eslint-disable-next-line no-param-reassign
4765
+ inDraftArray[j] = e;
4509
4766
  }
4510
4767
  j += 1;
4511
4768
  }
@@ -6159,6 +6416,168 @@ var types = /*#__PURE__*/Object.freeze({
6159
6416
  __proto__: null
6160
6417
  });
6161
6418
 
6419
+ var NATIVE_BIND = functionBindNative;
6420
+
6421
+ var FunctionPrototype = Function.prototype;
6422
+ var apply$2 = FunctionPrototype.apply;
6423
+ var call$6 = FunctionPrototype.call;
6424
+
6425
+ // eslint-disable-next-line es/no-reflect -- safe
6426
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$6.bind(apply$2) : function () {
6427
+ return call$6.apply(apply$2, arguments);
6428
+ });
6429
+
6430
+ var uncurryThis$9 = functionUncurryThis;
6431
+
6432
+ var arraySlice$1 = uncurryThis$9([].slice);
6433
+
6434
+ var uncurryThis$8 = functionUncurryThis;
6435
+ var isArray = isArray$2;
6436
+ var isCallable$5 = isCallable$k;
6437
+ var classof$2 = classofRaw$1;
6438
+ var toString$7 = toString$9;
6439
+
6440
+ var push$1 = uncurryThis$8([].push);
6441
+
6442
+ var getJsonReplacerFunction = function (replacer) {
6443
+ if (isCallable$5(replacer)) return replacer;
6444
+ if (!isArray(replacer)) return;
6445
+ var rawLength = replacer.length;
6446
+ var keys = [];
6447
+ for (var i = 0; i < rawLength; i++) {
6448
+ var element = replacer[i];
6449
+ if (typeof element == 'string') push$1(keys, element);
6450
+ else if (typeof element == 'number' || classof$2(element) === 'Number' || classof$2(element) === 'String') push$1(keys, toString$7(element));
6451
+ }
6452
+ var keysLength = keys.length;
6453
+ var root = true;
6454
+ return function (key, value) {
6455
+ if (root) {
6456
+ root = false;
6457
+ return value;
6458
+ }
6459
+ if (isArray(this)) return value;
6460
+ for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
6461
+ };
6462
+ };
6463
+
6464
+ var $$4 = _export;
6465
+ var getBuiltIn$2 = getBuiltIn$6;
6466
+ var apply$1 = functionApply;
6467
+ var call$5 = functionCall;
6468
+ var uncurryThis$7 = functionUncurryThis;
6469
+ var fails$8 = fails$n;
6470
+ var isCallable$4 = isCallable$k;
6471
+ var isSymbol = isSymbol$3;
6472
+ var arraySlice = arraySlice$1;
6473
+ var getReplacerFunction = getJsonReplacerFunction;
6474
+ var NATIVE_SYMBOL = symbolConstructorDetection;
6475
+
6476
+ var $String = String;
6477
+ var $stringify = getBuiltIn$2('JSON', 'stringify');
6478
+ var exec$3 = uncurryThis$7(/./.exec);
6479
+ var charAt$3 = uncurryThis$7(''.charAt);
6480
+ var charCodeAt$1 = uncurryThis$7(''.charCodeAt);
6481
+ var replace$3 = uncurryThis$7(''.replace);
6482
+ var numberToString = uncurryThis$7(1.0.toString);
6483
+
6484
+ var tester = /[\uD800-\uDFFF]/g;
6485
+ var low = /^[\uD800-\uDBFF]$/;
6486
+ var hi = /^[\uDC00-\uDFFF]$/;
6487
+
6488
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$8(function () {
6489
+ var symbol = getBuiltIn$2('Symbol')('stringify detection');
6490
+ // MS Edge converts symbol values to JSON as {}
6491
+ return $stringify([symbol]) !== '[null]'
6492
+ // WebKit converts symbol values to JSON as null
6493
+ || $stringify({ a: symbol }) !== '{}'
6494
+ // V8 throws on boxed symbols
6495
+ || $stringify(Object(symbol)) !== '{}';
6496
+ });
6497
+
6498
+ // https://github.com/tc39/proposal-well-formed-stringify
6499
+ var ILL_FORMED_UNICODE = fails$8(function () {
6500
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
6501
+ || $stringify('\uDEAD') !== '"\\udead"';
6502
+ });
6503
+
6504
+ var stringifyWithSymbolsFix = function (it, replacer) {
6505
+ var args = arraySlice(arguments);
6506
+ var $replacer = getReplacerFunction(replacer);
6507
+ if (!isCallable$4($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
6508
+ args[1] = function (key, value) {
6509
+ // some old implementations (like WebKit) could pass numbers as keys
6510
+ if (isCallable$4($replacer)) value = call$5($replacer, this, $String(key), value);
6511
+ if (!isSymbol(value)) return value;
6512
+ };
6513
+ return apply$1($stringify, null, args);
6514
+ };
6515
+
6516
+ var fixIllFormed = function (match, offset, string) {
6517
+ var prev = charAt$3(string, offset - 1);
6518
+ var next = charAt$3(string, offset + 1);
6519
+ if ((exec$3(low, match) && !exec$3(hi, next)) || (exec$3(hi, match) && !exec$3(low, prev))) {
6520
+ return '\\u' + numberToString(charCodeAt$1(match, 0), 16);
6521
+ } return match;
6522
+ };
6523
+
6524
+ if ($stringify) {
6525
+ // `JSON.stringify` method
6526
+ // https://tc39.es/ecma262/#sec-json.stringify
6527
+ $$4({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
6528
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
6529
+ stringify: function stringify(it, replacer, space) {
6530
+ var args = arraySlice(arguments);
6531
+ var result = apply$1(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
6532
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$3(result, tester, fixIllFormed) : result;
6533
+ }
6534
+ });
6535
+ }
6536
+
6537
+ /* *
6538
+ * Licensed under the Apache License, Version 2.0 (the "License");
6539
+ * you may not use this file except in compliance with the License.
6540
+ * You may obtain a copy of the License at
6541
+ *
6542
+ * http://www.apache.org/licenses/LICENSE-2.0
6543
+ *
6544
+ * Unless required by applicable law or agreed to in writing, software
6545
+ * distributed under the License is distributed on an "AS IS" BASIS,
6546
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6547
+ * See the License for the specific language governing permissions and
6548
+ * limitations under the License.
6549
+ *
6550
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
6551
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
6552
+ * */
6553
+ const getUserAddedServices = () => {
6554
+ try {
6555
+ const storedString = window.localStorage.getItem('userAddedServices');
6556
+ const parsedData = JSON.parse(storedString);
6557
+ if (parsedData && typeof parsedData === 'object') {
6558
+ return Object.entries(parsedData).reduce((userServices, [serviceUrl, service]) => Object.assign(Object.assign({}, userServices), isNoIdService(service) ? {
6559
+ [serviceUrl]: Object.assign(Object.assign({}, service), {
6560
+ scope: 'user'
6561
+ })
6562
+ } : {}), {});
6563
+ }
6564
+ } catch (e) {
6565
+ console.error('Unable to read services from localStorage: ', e);
6566
+ }
6567
+ return {};
6568
+ };
6569
+ const setUserAddedServices = services => {
6570
+ try {
6571
+ window.localStorage.setItem('userAddedServices', JSON.stringify(services));
6572
+ } catch (e) {
6573
+ console.error('Unable to write services to localStorage: ', e);
6574
+ }
6575
+ };
6576
+ const isNoIdService = param => {
6577
+ const serviceParam = param;
6578
+ return !!((serviceParam === null || serviceParam === void 0 ? void 0 : serviceParam.name) && (serviceParam === null || serviceParam === void 0 ? void 0 : serviceParam.url));
6579
+ };
6580
+
6162
6581
  /* *
6163
6582
  * Licensed under the Apache License, Version 2.0 (the "License");
6164
6583
  * you may not use this file except in compliance with the License.
@@ -6335,13 +6754,222 @@ var storeTestSettings = /*#__PURE__*/Object.freeze({
6335
6754
  WmMultiDimensionServices: WmMultiDimensionServices
6336
6755
  });
6337
6756
 
6757
+ var defineProperty = objectDefineProperty.f;
6758
+
6759
+ var proxyAccessor$1 = function (Target, Source, key) {
6760
+ key in Target || defineProperty(Target, key, {
6761
+ configurable: true,
6762
+ get: function () { return Source[key]; },
6763
+ set: function (it) { Source[key] = it; }
6764
+ });
6765
+ };
6766
+
6767
+ var isCallable$3 = isCallable$k;
6768
+ var isObject$1 = isObject$b;
6769
+ var setPrototypeOf$1 = objectSetPrototypeOf;
6770
+
6771
+ // makes subclassing work correct for wrapped built-ins
6772
+ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
6773
+ var NewTarget, NewTargetPrototype;
6774
+ if (
6775
+ // it can work only with native `setPrototypeOf`
6776
+ setPrototypeOf$1 &&
6777
+ // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
6778
+ isCallable$3(NewTarget = dummy.constructor) &&
6779
+ NewTarget !== Wrapper &&
6780
+ isObject$1(NewTargetPrototype = NewTarget.prototype) &&
6781
+ NewTargetPrototype !== Wrapper.prototype
6782
+ ) setPrototypeOf$1($this, NewTargetPrototype);
6783
+ return $this;
6784
+ };
6785
+
6786
+ var toString$6 = toString$9;
6787
+
6788
+ var normalizeStringArgument$1 = function (argument, $default) {
6789
+ return argument === undefined ? arguments.length < 2 ? '' : $default : toString$6(argument);
6790
+ };
6791
+
6792
+ var isObject = isObject$b;
6793
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
6794
+
6795
+ // `InstallErrorCause` abstract operation
6796
+ // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
6797
+ var installErrorCause$1 = function (O, options) {
6798
+ if (isObject(options) && 'cause' in options) {
6799
+ createNonEnumerableProperty$3(O, 'cause', options.cause);
6800
+ }
6801
+ };
6802
+
6803
+ var uncurryThis$6 = functionUncurryThis;
6804
+
6805
+ var $Error = Error;
6806
+ var replace$2 = uncurryThis$6(''.replace);
6807
+
6808
+ var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
6809
+ // eslint-disable-next-line redos/no-vulnerable -- safe
6810
+ var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
6811
+ var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
6812
+
6813
+ var errorStackClear = function (stack, dropEntries) {
6814
+ if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
6815
+ while (dropEntries--) stack = replace$2(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
6816
+ } return stack;
6817
+ };
6818
+
6819
+ var fails$7 = fails$n;
6820
+ var createPropertyDescriptor = createPropertyDescriptor$4;
6821
+
6822
+ var errorStackInstallable = !fails$7(function () {
6823
+ var error = new Error('a');
6824
+ if (!('stack' in error)) return true;
6825
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
6826
+ Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
6827
+ return error.stack !== 7;
6828
+ });
6829
+
6830
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
6831
+ var clearErrorStack = errorStackClear;
6832
+ var ERROR_STACK_INSTALLABLE = errorStackInstallable;
6833
+
6834
+ // non-standard V8
6835
+ var captureStackTrace = Error.captureStackTrace;
6836
+
6837
+ var errorStackInstall = function (error, C, stack, dropEntries) {
6838
+ if (ERROR_STACK_INSTALLABLE) {
6839
+ if (captureStackTrace) captureStackTrace(error, C);
6840
+ else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
6841
+ }
6842
+ };
6843
+
6844
+ var getBuiltIn$1 = getBuiltIn$6;
6845
+ var hasOwn = hasOwnProperty_1;
6846
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
6847
+ var isPrototypeOf = objectIsPrototypeOf;
6848
+ var setPrototypeOf = objectSetPrototypeOf;
6849
+ var copyConstructorProperties = copyConstructorProperties$2;
6850
+ var proxyAccessor = proxyAccessor$1;
6851
+ var inheritIfRequired = inheritIfRequired$1;
6852
+ var normalizeStringArgument = normalizeStringArgument$1;
6853
+ var installErrorCause = installErrorCause$1;
6854
+ var installErrorStack = errorStackInstall;
6855
+ var DESCRIPTORS = descriptors;
6856
+
6857
+ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
6858
+ var STACK_TRACE_LIMIT = 'stackTraceLimit';
6859
+ var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
6860
+ var path = FULL_NAME.split('.');
6861
+ var ERROR_NAME = path[path.length - 1];
6862
+ var OriginalError = getBuiltIn$1.apply(null, path);
6863
+
6864
+ if (!OriginalError) return;
6865
+
6866
+ var OriginalErrorPrototype = OriginalError.prototype;
6867
+
6868
+ // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
6869
+ if (hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
6870
+
6871
+ if (!FORCED) return OriginalError;
6872
+
6873
+ var BaseError = getBuiltIn$1('Error');
6874
+
6875
+ var WrappedError = wrapper(function (a, b) {
6876
+ var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
6877
+ var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
6878
+ if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
6879
+ installErrorStack(result, WrappedError, result.stack, 2);
6880
+ if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
6881
+ if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
6882
+ return result;
6883
+ });
6884
+
6885
+ WrappedError.prototype = OriginalErrorPrototype;
6886
+
6887
+ if (ERROR_NAME !== 'Error') {
6888
+ if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
6889
+ else copyConstructorProperties(WrappedError, BaseError, { name: true });
6890
+ } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
6891
+ proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
6892
+ proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
6893
+ }
6894
+
6895
+ copyConstructorProperties(WrappedError, OriginalError);
6896
+
6897
+ try {
6898
+ // Safari 13- bug: WebAssembly errors does not have a proper `.name`
6899
+ if (OriginalErrorPrototype.name !== ERROR_NAME) {
6900
+ createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
6901
+ }
6902
+ OriginalErrorPrototype.constructor = WrappedError;
6903
+ } catch (error) { /* empty */ }
6904
+
6905
+ return WrappedError;
6906
+ };
6907
+
6908
+ /* eslint-disable no-unused-vars -- required for functions `.length` */
6909
+ var $$3 = _export;
6910
+ var global$5 = global$h;
6911
+ var apply = functionApply;
6912
+ var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
6913
+
6914
+ var WEB_ASSEMBLY = 'WebAssembly';
6915
+ var WebAssembly = global$5[WEB_ASSEMBLY];
6916
+
6917
+ // eslint-disable-next-line es/no-error-cause -- feature detection
6918
+ var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
6919
+
6920
+ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
6921
+ var O = {};
6922
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
6923
+ $$3({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
6924
+ };
6925
+
6926
+ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
6927
+ if (WebAssembly && WebAssembly[ERROR_NAME]) {
6928
+ var O = {};
6929
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
6930
+ $$3({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
6931
+ }
6932
+ };
6933
+
6934
+ // https://tc39.es/ecma262/#sec-nativeerror
6935
+ exportGlobalErrorCauseWrapper('Error', function (init) {
6936
+ return function Error(message) { return apply(init, this, arguments); };
6937
+ });
6938
+ exportGlobalErrorCauseWrapper('EvalError', function (init) {
6939
+ return function EvalError(message) { return apply(init, this, arguments); };
6940
+ });
6941
+ exportGlobalErrorCauseWrapper('RangeError', function (init) {
6942
+ return function RangeError(message) { return apply(init, this, arguments); };
6943
+ });
6944
+ exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
6945
+ return function ReferenceError(message) { return apply(init, this, arguments); };
6946
+ });
6947
+ exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
6948
+ return function SyntaxError(message) { return apply(init, this, arguments); };
6949
+ });
6950
+ exportGlobalErrorCauseWrapper('TypeError', function (init) {
6951
+ return function TypeError(message) { return apply(init, this, arguments); };
6952
+ });
6953
+ exportGlobalErrorCauseWrapper('URIError', function (init) {
6954
+ return function URIError(message) { return apply(init, this, arguments); };
6955
+ });
6956
+ exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
6957
+ return function CompileError(message) { return apply(init, this, arguments); };
6958
+ });
6959
+ exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
6960
+ return function LinkError(message) { return apply(init, this, arguments); };
6961
+ });
6962
+ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
6963
+ return function RuntimeError(message) { return apply(init, this, arguments); };
6964
+ });
6965
+
6338
6966
  // a string of all valid unicode whitespaces
6339
6967
  var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
6340
6968
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
6341
6969
 
6342
6970
  var uncurryThis$5 = functionUncurryThis;
6343
- var requireObjectCoercible$2 = requireObjectCoercible$6;
6344
- var toString$4 = toString$6;
6971
+ var requireObjectCoercible$2 = requireObjectCoercible$7;
6972
+ var toString$5 = toString$9;
6345
6973
  var whitespaces$1 = whitespaces$2;
6346
6974
 
6347
6975
  var replace$1 = uncurryThis$5(''.replace);
@@ -6351,7 +6979,7 @@ var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
6351
6979
  // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
6352
6980
  var createMethod$1 = function (TYPE) {
6353
6981
  return function ($this) {
6354
- var string = toString$4(requireObjectCoercible$2($this));
6982
+ var string = toString$5(requireObjectCoercible$2($this));
6355
6983
  if (TYPE & 1) string = replace$1(string, ltrim, '');
6356
6984
  if (TYPE & 2) string = replace$1(string, rtrim, '$1');
6357
6985
  return string;
@@ -6371,9 +6999,9 @@ var stringTrim = {
6371
6999
  };
6372
7000
 
6373
7001
  var global$4 = global$h;
6374
- var fails$6 = fails$k;
7002
+ var fails$6 = fails$n;
6375
7003
  var uncurryThis$4 = functionUncurryThis;
6376
- var toString$3 = toString$6;
7004
+ var toString$4 = toString$9;
6377
7005
  var trim = stringTrim.trim;
6378
7006
  var whitespaces = whitespaces$2;
6379
7007
 
@@ -6389,25 +7017,25 @@ var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces +
6389
7017
  // `parseInt` method
6390
7018
  // https://tc39.es/ecma262/#sec-parseint-string-radix
6391
7019
  var numberParseInt = FORCED ? function parseInt(string, radix) {
6392
- var S = trim(toString$3(string));
7020
+ var S = trim(toString$4(string));
6393
7021
  return $parseInt$1(S, (radix >>> 0) || (exec$2(hex, S) ? 16 : 10));
6394
7022
  } : $parseInt$1;
6395
7023
 
6396
- var $$1 = _export;
7024
+ var $$2 = _export;
6397
7025
  var $parseInt = numberParseInt;
6398
7026
 
6399
7027
  // `parseInt` method
6400
7028
  // https://tc39.es/ecma262/#sec-parseint-string-radix
6401
- $$1({ global: true, forced: parseInt !== $parseInt }, {
7029
+ $$2({ global: true, forced: parseInt !== $parseInt }, {
6402
7030
  parseInt: $parseInt
6403
7031
  });
6404
7032
 
6405
- var anObject$3 = anObject$9;
7033
+ var anObject$4 = anObject$9;
6406
7034
 
6407
7035
  // `RegExp.prototype.flags` getter implementation
6408
7036
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
6409
7037
  var regexpFlags$1 = function () {
6410
- var that = anObject$3(this);
7038
+ var that = anObject$4(this);
6411
7039
  var result = '';
6412
7040
  if (that.hasIndices) result += 'd';
6413
7041
  if (that.global) result += 'g';
@@ -6420,7 +7048,7 @@ var regexpFlags$1 = function () {
6420
7048
  return result;
6421
7049
  };
6422
7050
 
6423
- var fails$5 = fails$k;
7051
+ var fails$5 = fails$n;
6424
7052
  var global$3 = global$h;
6425
7053
 
6426
7054
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
@@ -6451,7 +7079,7 @@ var regexpStickyHelpers = {
6451
7079
  UNSUPPORTED_Y: UNSUPPORTED_Y$2
6452
7080
  };
6453
7081
 
6454
- var fails$4 = fails$k;
7082
+ var fails$4 = fails$n;
6455
7083
  var global$2 = global$h;
6456
7084
 
6457
7085
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
@@ -6462,7 +7090,7 @@ var regexpUnsupportedDotAll = fails$4(function () {
6462
7090
  return !(re.dotAll && re.test('\n') && re.flags === 's');
6463
7091
  });
6464
7092
 
6465
- var fails$3 = fails$k;
7093
+ var fails$3 = fails$n;
6466
7094
  var global$1 = global$h;
6467
7095
 
6468
7096
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
@@ -6476,12 +7104,12 @@ var regexpUnsupportedNcg = fails$3(function () {
6476
7104
 
6477
7105
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
6478
7106
  /* eslint-disable regexp/no-useless-quantifier -- testing */
6479
- var call$3 = functionCall;
7107
+ var call$4 = functionCall;
6480
7108
  var uncurryThis$3 = functionUncurryThis;
6481
- var toString$2 = toString$6;
7109
+ var toString$3 = toString$9;
6482
7110
  var regexpFlags = regexpFlags$1;
6483
7111
  var stickyHelpers$1 = regexpStickyHelpers;
6484
- var shared = shared$4.exports;
7112
+ var shared = shared$4;
6485
7113
  var create = objectCreate;
6486
7114
  var getInternalState = internalState.get;
6487
7115
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
@@ -6498,8 +7126,8 @@ var stringSlice$2 = uncurryThis$3(''.slice);
6498
7126
  var UPDATES_LAST_INDEX_WRONG = (function () {
6499
7127
  var re1 = /a/;
6500
7128
  var re2 = /b*/g;
6501
- call$3(nativeExec, re1, 'a');
6502
- call$3(nativeExec, re2, 'a');
7129
+ call$4(nativeExec, re1, 'a');
7130
+ call$4(nativeExec, re2, 'a');
6503
7131
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
6504
7132
  })();
6505
7133
 
@@ -6514,20 +7142,20 @@ if (PATCH) {
6514
7142
  patchedExec = function exec(string) {
6515
7143
  var re = this;
6516
7144
  var state = getInternalState(re);
6517
- var str = toString$2(string);
7145
+ var str = toString$3(string);
6518
7146
  var raw = state.raw;
6519
7147
  var result, reCopy, lastIndex, match, i, object, group;
6520
7148
 
6521
7149
  if (raw) {
6522
7150
  raw.lastIndex = re.lastIndex;
6523
- result = call$3(patchedExec, raw, str);
7151
+ result = call$4(patchedExec, raw, str);
6524
7152
  re.lastIndex = raw.lastIndex;
6525
7153
  return result;
6526
7154
  }
6527
7155
 
6528
7156
  var groups = state.groups;
6529
7157
  var sticky = UNSUPPORTED_Y$1 && re.sticky;
6530
- var flags = call$3(regexpFlags, re);
7158
+ var flags = call$4(regexpFlags, re);
6531
7159
  var source = re.source;
6532
7160
  var charsAdded = 0;
6533
7161
  var strCopy = str;
@@ -6555,7 +7183,7 @@ if (PATCH) {
6555
7183
  }
6556
7184
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
6557
7185
 
6558
- match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
7186
+ match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
6559
7187
 
6560
7188
  if (sticky) {
6561
7189
  if (match) {
@@ -6570,7 +7198,7 @@ if (PATCH) {
6570
7198
  if (NPCG_INCLUDED && match && match.length > 1) {
6571
7199
  // Fix browsers whose `exec` methods don't consistently return `undefined`
6572
7200
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
6573
- call$3(nativeReplace, match[0], reCopy, function () {
7201
+ call$4(nativeReplace, match[0], reCopy, function () {
6574
7202
  for (i = 1; i < arguments.length - 2; i++) {
6575
7203
  if (arguments[i] === undefined) match[i] = undefined;
6576
7204
  }
@@ -6591,23 +7219,58 @@ if (PATCH) {
6591
7219
 
6592
7220
  var regexpExec$2 = patchedExec;
6593
7221
 
6594
- var $ = _export;
7222
+ var $$1 = _export;
6595
7223
  var exec$1 = regexpExec$2;
6596
7224
 
6597
7225
  // `RegExp.prototype.exec` method
6598
7226
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
6599
- $({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
7227
+ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
6600
7228
  exec: exec$1
6601
7229
  });
6602
7230
 
6603
7231
  // TODO: Remove from `core-js@4` since it's moved to entry points
6604
7232
 
7233
+ var $ = _export;
7234
+ var call$3 = functionCall;
7235
+ var isCallable$2 = isCallable$k;
7236
+ var anObject$3 = anObject$9;
7237
+ var toString$2 = toString$9;
7238
+
7239
+ var DELEGATES_TO_EXEC = function () {
7240
+ var execCalled = false;
7241
+ var re = /[ac]/;
7242
+ re.exec = function () {
7243
+ execCalled = true;
7244
+ return /./.exec.apply(this, arguments);
7245
+ };
7246
+ return re.test('abc') === true && execCalled;
7247
+ }();
7248
+
7249
+ var nativeTest = /./.test;
7250
+
7251
+ // `RegExp.prototype.test` method
7252
+ // https://tc39.es/ecma262/#sec-regexp.prototype.test
7253
+ $({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
7254
+ test: function (S) {
7255
+ var R = anObject$3(this);
7256
+ var string = toString$2(S);
7257
+ var exec = R.exec;
7258
+ if (!isCallable$2(exec)) return call$3(nativeTest, R, string);
7259
+ var result = call$3(exec, R, string);
7260
+ if (result === null) return false;
7261
+ anObject$3(result);
7262
+ return true;
7263
+ }
7264
+ });
7265
+
7266
+ // TODO: Remove from `core-js@4` since it's moved to entry points
7267
+
6605
7268
  var call$2 = functionCall;
6606
7269
  var defineBuiltIn = defineBuiltIn$4;
6607
7270
  var regexpExec$1 = regexpExec$2;
6608
- var fails$2 = fails$k;
7271
+ var fails$2 = fails$n;
6609
7272
  var wellKnownSymbol$1 = wellKnownSymbol$c;
6610
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
7273
+ var createNonEnumerableProperty = createNonEnumerableProperty$8;
6611
7274
 
6612
7275
  var SPECIES$1 = wellKnownSymbol$1('species');
6613
7276
  var RegExpPrototype = RegExp.prototype;
@@ -6677,10 +7340,10 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
6677
7340
  };
6678
7341
 
6679
7342
  var uncurryThis$2 = functionUncurryThis;
6680
- var fails$1 = fails$k;
6681
- var isCallable$1 = isCallable$g;
6682
- var classof$1 = classof$3;
6683
- var getBuiltIn = getBuiltIn$4;
7343
+ var fails$1 = fails$n;
7344
+ var isCallable$1 = isCallable$k;
7345
+ var classof$1 = classof$4;
7346
+ var getBuiltIn = getBuiltIn$6;
6684
7347
  var inspectSource = inspectSource$2;
6685
7348
 
6686
7349
  var noop = function () { /* empty */ };
@@ -6729,7 +7392,7 @@ var isConstructor$1 = !construct || fails$1(function () {
6729
7392
  }) ? isConstructorLegacy : isConstructorModern;
6730
7393
 
6731
7394
  var isConstructor = isConstructor$1;
6732
- var tryToString = tryToString$2;
7395
+ var tryToString = tryToString$3;
6733
7396
 
6734
7397
  var $TypeError$1 = TypeError;
6735
7398
 
@@ -6756,8 +7419,8 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
6756
7419
 
6757
7420
  var uncurryThis$1 = functionUncurryThis;
6758
7421
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
6759
- var toString$1 = toString$6;
6760
- var requireObjectCoercible$1 = requireObjectCoercible$6;
7422
+ var toString$1 = toString$9;
7423
+ var requireObjectCoercible$1 = requireObjectCoercible$7;
6761
7424
 
6762
7425
  var charAt$1 = uncurryThis$1(''.charAt);
6763
7426
  var charCodeAt = uncurryThis$1(''.charCodeAt);
@@ -6801,7 +7464,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
6801
7464
 
6802
7465
  var call$1 = functionCall;
6803
7466
  var anObject$1 = anObject$9;
6804
- var isCallable = isCallable$g;
7467
+ var isCallable = isCallable$k;
6805
7468
  var classof = classofRaw$1;
6806
7469
  var regexpExec = regexpExec$2;
6807
7470
 
@@ -6825,15 +7488,15 @@ var uncurryThis = functionUncurryThis;
6825
7488
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
6826
7489
  var anObject = anObject$9;
6827
7490
  var isNullOrUndefined = isNullOrUndefined$4;
6828
- var requireObjectCoercible = requireObjectCoercible$6;
7491
+ var requireObjectCoercible = requireObjectCoercible$7;
6829
7492
  var speciesConstructor = speciesConstructor$1;
6830
7493
  var advanceStringIndex = advanceStringIndex$1;
6831
7494
  var toLength = toLength$2;
6832
- var toString = toString$6;
7495
+ var toString = toString$9;
6833
7496
  var getMethod = getMethod$2;
6834
7497
  var regExpExec = regexpExecAbstract;
6835
7498
  var stickyHelpers = regexpStickyHelpers;
6836
- var fails = fails$k;
7499
+ var fails = fails$n;
6837
7500
 
6838
7501
  var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
6839
7502
  var MAX_UINT32 = 0xFFFFFFFF;
@@ -7161,7 +7824,7 @@ function* setLayerDimensionsSaga({
7161
7824
  }))));
7162
7825
  }
7163
7826
  }
7164
- yield call$b(updateAnimation, mapId, incomingMaxTime);
7827
+ yield call$e(updateAnimation, mapId, incomingMaxTime);
7165
7828
  }
7166
7829
  } catch (error) {
7167
7830
  // eslint-disable-next-line no-console
@@ -7213,7 +7876,7 @@ function* toggleAutoUpdateSaga({
7213
7876
  yield all(payloads.map(payload => put(mapActions.toggleAutoUpdate(payload))));
7214
7877
  }
7215
7878
  }
7216
- yield call$b(updateAnimation, mapId, timeDimension.maxValue);
7879
+ yield call$e(updateAnimation, mapId, timeDimension.maxValue);
7217
7880
  }
7218
7881
  } catch (error) {
7219
7882
  // eslint-disable-next-line no-console
@@ -7288,7 +7951,7 @@ function* setMapPresetSaga({
7288
7951
  autoTimeStepLayerIdNew = activeLayerId;
7289
7952
  autoUpdateLayerIdNew = activeLayerId;
7290
7953
  }
7291
- const newLayerIds = yield call$b(replaceLayerIdsToEnsureUniqueLayerIdsInStore, {
7954
+ const newLayerIds = yield call$e(replaceLayerIdsToEnsureUniqueLayerIdsInStore, {
7292
7955
  layers: mapLayers,
7293
7956
  autoTimeStepLayerId: autoTimeStepLayerIdNew,
7294
7957
  autoUpdateLayerId: autoUpdateLayerIdNew
@@ -7313,7 +7976,7 @@ function* setMapPresetSaga({
7313
7976
  const allBaseLayers = [...baseLayersWithDefaultLayer, ...overLayersWithDefaultLayer].map(layer => Object.assign(Object.assign({}, layer), {
7314
7977
  id: webmapUtils.generateLayerId()
7315
7978
  }));
7316
- yield call$b(handleBaseLayersSaga, mapId, allBaseLayers);
7979
+ yield call$e(handleBaseLayersSaga, mapId, allBaseLayers);
7317
7980
  if (proj) {
7318
7981
  const isProjectionSupported = webmapUtils.getWMJSMapById(mapId).isProjectionSupported(proj.srs);
7319
7982
  if (!isProjectionSupported) {
@@ -7528,7 +8191,7 @@ function* setStepBackwardOrForwardSaga({
7528
8191
  yield put(genericActions.setTime({
7529
8192
  origin: '',
7530
8193
  sourceId: mapId,
7531
- value: handleMomentISOString(selectedTimeString)
8194
+ value: handleDateUtilsISOString(selectedTimeString)
7532
8195
  }));
7533
8196
  }
7534
8197
  }
@@ -7546,7 +8209,7 @@ function* rootSaga$4() {
7546
8209
 
7547
8210
  function* fetchServiceSaga(service) {
7548
8211
  try {
7549
- const layers = yield call$b(getCapabilities.getLayersFlattenedFromService, service.serviceUrl);
8212
+ const layers = yield call$e(getCapabilities.getLayersFlattenedFromService, service.serviceUrl);
7550
8213
  yield put(serviceActions.serviceSetLayers(Object.assign(Object.assign({}, service), {
7551
8214
  layers
7552
8215
  })));
@@ -7560,7 +8223,15 @@ function* fetchInitialServicesSaga({
7560
8223
  const {
7561
8224
  services
7562
8225
  } = payload;
7563
- yield all(services.map(service => call$b(fetchServiceSaga, service)));
8226
+ yield all(services.map(_a => {
8227
+ var {
8228
+ url
8229
+ } = _a,
8230
+ service = __rest(_a, ["url"]);
8231
+ return call$e(fetchServiceSaga, Object.assign(Object.assign({}, service), {
8232
+ serviceUrl: url
8233
+ }));
8234
+ }));
7564
8235
  }
7565
8236
  function* rootSaga$3() {
7566
8237
  yield takeEvery(serviceActions.fetchInitialServices, fetchInitialServicesSaga);
@@ -7619,6 +8290,114 @@ metronomeListener.startListening({
7619
8290
  })
7620
8291
  });
7621
8292
 
8293
+ /* *
8294
+ * Licensed under the Apache License, Version 2.0 (the "License");
8295
+ * you may not use this file except in compliance with the License.
8296
+ * You may obtain a copy of the License at
8297
+ *
8298
+ * http://www.apache.org/licenses/LICENSE-2.0
8299
+ *
8300
+ * Unless required by applicable law or agreed to in writing, software
8301
+ * distributed under the License is distributed on an "AS IS" BASIS,
8302
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8303
+ * See the License for the specific language governing permissions and
8304
+ * limitations under the License.
8305
+ *
8306
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
8307
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
8308
+ * */
8309
+ const layersListener = createListenerMiddleware();
8310
+ layersListener.startListening({
8311
+ actionCreator: layerActions.showLayerInfo,
8312
+ effect: ({
8313
+ payload
8314
+ }, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
8315
+ const {
8316
+ mapId,
8317
+ source
8318
+ } = payload;
8319
+ const currentActiveMapId = getDialogMapId(listenerApi.getState(), DialogTypes.LayerInfo);
8320
+ const isOpenInStore = getisDialogOpen(listenerApi.getState(), DialogTypes.LayerInfo);
8321
+ if (currentActiveMapId !== mapId ? true : !isOpenInStore) {
8322
+ listenerApi.dispatch(uiActions.setActiveMapIdForDialog({
8323
+ type: DialogTypes.LayerInfo,
8324
+ mapId,
8325
+ setOpen: true,
8326
+ source
8327
+ }));
8328
+ }
8329
+ })
8330
+ });
8331
+ layersListener.startListening({
8332
+ actionCreator: uiActions.setToggleOpenDialog,
8333
+ effect: ({
8334
+ payload
8335
+ }, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
8336
+ const {
8337
+ setOpen,
8338
+ type
8339
+ } = payload;
8340
+ // close LayerInfo if open and LayerManager is closed
8341
+ if (type === DialogTypes.LayerManager && !setOpen) {
8342
+ const isOpenInStore = getisDialogOpen(listenerApi.getState(), DialogTypes.LayerInfo);
8343
+ if (isOpenInStore) {
8344
+ listenerApi.dispatch(layerActions.hideLayerInfo());
8345
+ }
8346
+ }
8347
+ })
8348
+ });
8349
+
8350
+ const mapUiListener = createListenerMiddleware();
8351
+ mapUiListener.startListening({
8352
+ actionCreator: mapActions.registerMap,
8353
+ effect: (_, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
8354
+ const fields = getAllMapIds(listenerApi.getState());
8355
+ if (fields.length === 1) {
8356
+ const source = getDialogSource(listenerApi.getState(), 'legend');
8357
+ listenerApi.dispatch(uiActions.setActiveMapIdForDialog({
8358
+ type: 'legend',
8359
+ mapId: fields[0],
8360
+ setOpen: true,
8361
+ source
8362
+ }));
8363
+ }
8364
+ })
8365
+ });
8366
+ mapUiListener.startListening({
8367
+ actionCreator: mapActions.unregisterMap,
8368
+ effect: ({
8369
+ payload
8370
+ }, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
8371
+ const fields = getAllMapIds(listenerApi.getState());
8372
+ const activeLegendUI = getDialogDetailsByType(listenerApi.getState(), 'legend');
8373
+ if (fields.length && activeLegendUI && !fields.includes(activeLegendUI.activeMapId)) {
8374
+ listenerApi.dispatch(uiActions.setActiveMapIdForDialog({
8375
+ type: 'legend',
8376
+ mapId: fields[0],
8377
+ setOpen: activeLegendUI.isOpen
8378
+ }));
8379
+ } else if (!fields.length) {
8380
+ // if no more maps, we hide the legend
8381
+ listenerApi.dispatch(uiActions.setToggleOpenDialog({
8382
+ type: 'legend',
8383
+ setOpen: false
8384
+ }));
8385
+ }
8386
+ // close any remaining windows with map assigned to it
8387
+ const remainingDialogsConnectedToMap = getUiDialogsByActiveMapId(listenerApi.getState(), payload.mapId);
8388
+ if (remainingDialogsConnectedToMap.length) {
8389
+ remainingDialogsConnectedToMap.forEach(dialog => {
8390
+ if (dialog.isOpen) {
8391
+ listenerApi.dispatch(uiActions.setToggleOpenDialog({
8392
+ type: dialog.type,
8393
+ setOpen: false
8394
+ }));
8395
+ }
8396
+ });
8397
+ }
8398
+ })
8399
+ });
8400
+
7622
8401
  // TODO: This fixes typecheck errors but maybe there is a better way to do that
7623
8402
  createStore$1({
7624
8403
  extensions: [getSagaExtension()]
@@ -7632,7 +8411,7 @@ const mapStoreModuleConfig = {
7632
8411
  id: 'webmap-module',
7633
8412
  reducersMap: mapStoreReducers,
7634
8413
  sagas: [rootSaga$4, rootSaga$3],
7635
- middlewares: [metronomeListener.middleware]
8414
+ middlewares: [metronomeListener.middleware, layersListener.middleware, mapUiListener.middleware]
7636
8415
  };
7637
8416
 
7638
8417
  const mapStoreActions = Object.assign(Object.assign(Object.assign({}, layerActions), mapActions), serviceActions);
@@ -8038,7 +8817,7 @@ function* navigateToUrlSaga(action) {
8038
8817
  const {
8039
8818
  payload
8040
8819
  } = action;
8041
- yield call$b(historyDict.navigate, payload.url);
8820
+ yield call$e(historyDict.navigate, payload.url);
8042
8821
  }
8043
8822
  function* rootSaga$1() {
8044
8823
  yield takeLatest(routerActions.navigateToUrl.type, navigateToUrlSaga);
@@ -8842,7 +9621,7 @@ function* addGroupTargetSaga({
8842
9621
  targetId: targetToUpdate
8843
9622
  } = payload;
8844
9623
  if (!linked) {
8845
- yield call$b(updateSourceValueWhenLinkingComponentToGroupSaga, groupId, targetToUpdate);
9624
+ yield call$e(updateSourceValueWhenLinkingComponentToGroupSaga, groupId, targetToUpdate);
8846
9625
  }
8847
9626
  }
8848
9627
  function* linkGroupTargetSaga({
@@ -8854,7 +9633,7 @@ function* linkGroupTargetSaga({
8854
9633
  targetId: targetToUpdate
8855
9634
  } = payload;
8856
9635
  if (!linked) {
8857
- yield call$b(updateSourceValueWhenLinkingComponentToGroupSaga, groupId, targetToUpdate);
9636
+ yield call$e(updateSourceValueWhenLinkingComponentToGroupSaga, groupId, targetToUpdate);
8858
9637
  }
8859
9638
  }
8860
9639
  function* updateViewStateSaga() {
@@ -8884,43 +9663,6 @@ const synchronizationGroupConfig = {
8884
9663
  sagas: [rootSaga$2, rootSaga]
8885
9664
  };
8886
9665
 
8887
- const uiListener = createListenerMiddleware();
8888
- uiListener.startListening({
8889
- actionCreator: mapActions.registerMap,
8890
- effect: (_, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
8891
- const fields = getAllMapIds(listenerApi.getState());
8892
- if (fields.length === 1) {
8893
- const source = getDialogSource(listenerApi.getState(), 'legend');
8894
- listenerApi.dispatch(uiActions.setActiveMapIdForDialog({
8895
- type: 'legend',
8896
- mapId: fields[0],
8897
- setOpen: true,
8898
- source
8899
- }));
8900
- }
8901
- })
8902
- });
8903
- uiListener.startListening({
8904
- actionCreator: mapActions.unregisterMap,
8905
- effect: (_, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
8906
- const fields = getAllMapIds(listenerApi.getState());
8907
- const activeUI = getDialogDetailsByType(listenerApi.getState(), 'legend');
8908
- if (fields.length && activeUI && !fields.includes(activeUI.activeMapId)) {
8909
- listenerApi.dispatch(uiActions.setActiveMapIdForDialog({
8910
- type: 'legend',
8911
- mapId: fields[0],
8912
- setOpen: activeUI.isOpen
8913
- }));
8914
- } else if (!fields.length) {
8915
- // if no more maps, we hide the legend
8916
- listenerApi.dispatch(uiActions.setToggleOpenDialog({
8917
- type: 'legend',
8918
- setOpen: false
8919
- }));
8920
- }
8921
- })
8922
- });
8923
-
8924
9666
  /* *
8925
9667
  * Licensed under the Apache License, Version 2.0 (the "License");
8926
9668
  * you may not use this file except in compliance with the License.
@@ -8941,8 +9683,7 @@ const uiModuleConfig = {
8941
9683
  id: 'ui-module',
8942
9684
  reducersMap: {
8943
9685
  ui: reducer$5
8944
- },
8945
- middlewares: [uiListener.middleware]
9686
+ }
8946
9687
  };
8947
9688
 
8948
9689
  /* *
@@ -9000,88 +9741,4 @@ const StoreProvider = ({
9000
9741
  store: store
9001
9742
  }, /*#__PURE__*/React.createElement(WrapperWithModules, null, children)));
9002
9743
 
9003
- /* *
9004
- * Licensed under the Apache License, Version 2.0 (the "License");
9005
- * you may not use this file except in compliance with the License.
9006
- * You may obtain a copy of the License at
9007
- *
9008
- * http://www.apache.org/licenses/LICENSE-2.0
9009
- *
9010
- * Unless required by applicable law or agreed to in writing, software
9011
- * distributed under the License is distributed on an "AS IS" BASIS,
9012
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9013
- * See the License for the specific language governing permissions and
9014
- * limitations under the License.
9015
- *
9016
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9017
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
9018
- * */
9019
- const useSetupDialog = (dialogType, source = 'app') => {
9020
- const dispatch = useDispatch();
9021
- const onCloseDialog = useCallback(() => {
9022
- dispatch(uiActions.setToggleOpenDialog({
9023
- type: dialogType,
9024
- setOpen: false
9025
- }));
9026
- }, [dialogType, dispatch]);
9027
- const mapId = useSelector(store => getDialogMapId(store, dialogType));
9028
- const isMapPresent = useSelector(store => getIsMapPresent(store, mapId));
9029
- // Check to ensure the currently active map is still present on screen - if not, close the dialog
9030
- // exception for timeseries, since we dont need a map to show the timeseries view.
9031
- useEffect(() => {
9032
- if (mapId !== '' && !isMapPresent && !(dialogType === DialogTypes.TimeSeriesManager || dialogType === DialogTypes.TimeSeriesSelect)) {
9033
- onCloseDialog();
9034
- }
9035
- }, [mapId, isMapPresent, onCloseDialog, dialogType]);
9036
- const registerDialog = useCallback(() => {
9037
- dispatch(uiActions.registerDialog({
9038
- type: dialogType,
9039
- setOpen: false,
9040
- source
9041
- }));
9042
- }, [dialogType, dispatch, source]);
9043
- const unregisterDialog = useCallback(() => {
9044
- dispatch(uiActions.unregisterDialog({
9045
- type: dialogType
9046
- }));
9047
- }, [dialogType, dispatch]);
9048
- // Register this dialog in the store
9049
- useEffect(() => {
9050
- registerDialog();
9051
- return () => {
9052
- unregisterDialog();
9053
- };
9054
- // eslint-disable-next-line react-hooks/exhaustive-deps
9055
- }, []);
9056
- const uiIsOrderedOnTop = useSelector(store => getDialogIsOrderedOnTop(store, dialogType));
9057
- const setDialogOrder = useCallback(() => {
9058
- if (!uiIsOrderedOnTop) {
9059
- dispatch(uiActions.orderDialog({
9060
- type: dialogType
9061
- }));
9062
- }
9063
- }, [dialogType, dispatch, uiIsOrderedOnTop]);
9064
- const dialogOrder = useSelector(store => getDialogOrder(store, dialogType));
9065
- const uiSource = useSelector(store => getDialogSource(store, dialogType));
9066
- const isDialogOpen = useSelector(store => getisDialogOpen(store, dialogType));
9067
- const uiIsLoading = useSelector(store => getDialogIsLoading(store, dialogType));
9068
- const uiError = useSelector(store => getDialogError(store, dialogType));
9069
- const setFocused = focused => {
9070
- dispatch(uiActions.setDialogFocused({
9071
- type: dialogType,
9072
- focused
9073
- }));
9074
- };
9075
- return {
9076
- setDialogOrder,
9077
- dialogOrder,
9078
- onCloseDialog,
9079
- uiSource,
9080
- isDialogOpen,
9081
- uiIsLoading,
9082
- uiError,
9083
- setFocused
9084
- };
9085
- };
9086
-
9087
- export { IS_LEGEND_OPEN_BY_DEFAULT, StoreProvider, coreModuleConfig, createStore, drawtoolActions, drawtoolModuleConfig, reducer as drawtoolReducer, selectors as drawtoolSelectors, filterLayers$1 as filterLayers, genericActions, rootSaga$2 as genericSaga, selectors$4 as genericSelectors, types$1 as genericTypes, getSingularDrawtoolDrawLayerId, initialState$3 as initialState, layerActions, reducer$6 as layerReducer, selectors$7 as layerSelectors, types$5 as layerTypes, utils$2 as layerUtils, loadingIndicatorActions, constants as loadingIndicatorConstants, loadingIndicatorReducer, selectors$3 as loadingIndicatorSelectors, mapActions, enums as mapEnums, rootSaga$4 as mapSaga, selectors$2 as mapSelectors, mapStoreActions, mapStoreModuleConfig, mapStoreReducers, types$4 as mapTypes, mapUtils, routerActions, routerModuleConfig, utils as routerUtils, selectorMemoizationOptions, serviceActions, selectors$1 as serviceSelectors, types as serviceTypes, storeTestSettings, storeTestUtils, utils$1 as storeUtils, constants$1 as syncConstants, actions as syncGroupsActions, reducer$3 as syncGroupsReducer, selector as syncGroupsSelector, selectors$5 as syncGroupsSelectors, types$2 as syncGroupsTypes, types$2 as types, uiActions, uiModuleConfig, reducer$5 as uiReducer, selectors$6 as uiSelectors, types$3 as uiTypes, useSetupDialog, reducer$4 as webmapReducer };
9744
+ export { IS_LEGEND_OPEN_BY_DEFAULT, StoreProvider, coreModuleConfig, createStore, drawtoolActions, drawtoolModuleConfig, reducer as drawtoolReducer, selectors as drawtoolSelectors, filterLayers$1 as filterLayers, genericActions, rootSaga$2 as genericSaga, selectors$4 as genericSelectors, types$1 as genericTypes, getSingularDrawtoolDrawLayerId, getUserAddedServices, initialState$3 as initialState, layerActions, reducer$6 as layerReducer, selectors$7 as layerSelectors, types$5 as layerTypes, utils$2 as layerUtils, loadingIndicatorActions, constants as loadingIndicatorConstants, loadingIndicatorReducer, selectors$3 as loadingIndicatorSelectors, mapActions, enums as mapEnums, rootSaga$4 as mapSaga, selectors$2 as mapSelectors, mapStoreActions, mapStoreModuleConfig, mapStoreReducers, types$4 as mapTypes, mapUtils, routerActions, routerModuleConfig, utils as routerUtils, selectorMemoizationOptions, serviceActions, selectors$1 as serviceSelectors, types as serviceTypes, setUserAddedServices, storeTestSettings, storeTestUtils, utils$1 as storeUtils, constants$1 as syncConstants, actions as syncGroupsActions, reducer$3 as syncGroupsReducer, selector as syncGroupsSelector, selectors$5 as syncGroupsSelectors, types$2 as syncGroupsTypes, types$2 as types, uiActions, uiModuleConfig, reducer$5 as uiReducer, selectors$6 as uiSelectors, types$3 as uiTypes, useSetupDialog, reducer$4 as webmapReducer };