@opengeoweb/webmap-react 6.0.4 → 6.1.1

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,8 +1,8 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { Component, forwardRef, useContext, useRef, useState, useEffect } from 'react';
4
- import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getMapImageStore } from '@opengeoweb/webmap';
5
- import { CustomTooltip } from '@opengeoweb/shared';
4
+ import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getMapImageStore, LayerType, WMBBOX, debug, DebugType, WMLayer, WMJSMap, tilesettings } from '@opengeoweb/webmap';
5
+ import { CustomTooltip, dateUtils } from '@opengeoweb/shared';
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
@@ -11,7 +11,7 @@ var check = function (it) {
11
11
  };
12
12
 
13
13
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
14
- var global$d =
14
+ var global$h =
15
15
  // eslint-disable-next-line es/no-global-this -- safe
16
16
  check(typeof globalThis == 'object' && globalThis) ||
17
17
  check(typeof window == 'object' && window) ||
@@ -23,7 +23,7 @@ var global$d =
23
23
 
24
24
  var objectGetOwnPropertyDescriptor = {};
25
25
 
26
- var fails$d = function (exec) {
26
+ var fails$j = function (exec) {
27
27
  try {
28
28
  return !!exec();
29
29
  } catch (error) {
@@ -31,29 +31,29 @@ var fails$d = function (exec) {
31
31
  }
32
32
  };
33
33
 
34
- var fails$c = fails$d;
34
+ var fails$i = fails$j;
35
35
 
36
36
  // Detect IE8's incomplete defineProperty implementation
37
- var descriptors = !fails$c(function () {
37
+ var descriptors = !fails$i(function () {
38
38
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
39
39
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
40
40
  });
41
41
 
42
- var fails$b = fails$d;
42
+ var fails$h = fails$j;
43
43
 
44
- var functionBindNative = !fails$b(function () {
44
+ var functionBindNative = !fails$h(function () {
45
45
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
46
46
  var test = (function () { /* empty */ }).bind();
47
47
  // eslint-disable-next-line no-prototype-builtins -- safe
48
48
  return typeof test != 'function' || test.hasOwnProperty('prototype');
49
49
  });
50
50
 
51
- var NATIVE_BIND$1 = functionBindNative;
51
+ var NATIVE_BIND$2 = functionBindNative;
52
52
 
53
- var call$7 = Function.prototype.call;
53
+ var call$b = Function.prototype.call;
54
54
 
55
- var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
56
- return call$7.apply(call$7, arguments);
55
+ var functionCall = NATIVE_BIND$2 ? call$b.bind(call$b) : function () {
56
+ return call$b.apply(call$b, arguments);
57
57
  };
58
58
 
59
59
  var objectPropertyIsEnumerable = {};
@@ -81,66 +81,66 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
81
81
  };
82
82
  };
83
83
 
84
- var NATIVE_BIND = functionBindNative;
84
+ var NATIVE_BIND$1 = functionBindNative;
85
85
 
86
- var FunctionPrototype$1 = Function.prototype;
87
- var call$6 = FunctionPrototype$1.call;
88
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$6, call$6);
86
+ var FunctionPrototype$2 = Function.prototype;
87
+ var call$a = FunctionPrototype$2.call;
88
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$a, call$a);
89
89
 
90
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
90
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
91
91
  return function () {
92
- return call$6.apply(fn, arguments);
92
+ return call$a.apply(fn, arguments);
93
93
  };
94
94
  };
95
95
 
96
- var uncurryThis$d = functionUncurryThis;
96
+ var uncurryThis$j = functionUncurryThis;
97
97
 
98
- var toString$4 = uncurryThis$d({}.toString);
99
- var stringSlice$1 = uncurryThis$d(''.slice);
98
+ var toString$7 = uncurryThis$j({}.toString);
99
+ var stringSlice$5 = uncurryThis$j(''.slice);
100
100
 
101
- var classofRaw$1 = function (it) {
102
- return stringSlice$1(toString$4(it), 8, -1);
101
+ var classofRaw$2 = function (it) {
102
+ return stringSlice$5(toString$7(it), 8, -1);
103
103
  };
104
104
 
105
- var uncurryThis$c = functionUncurryThis;
106
- var fails$a = fails$d;
107
- var classof$3 = classofRaw$1;
105
+ var uncurryThis$i = functionUncurryThis;
106
+ var fails$g = fails$j;
107
+ var classof$5 = classofRaw$2;
108
108
 
109
109
  var $Object$4 = Object;
110
- var split$1 = uncurryThis$c(''.split);
110
+ var split$1 = uncurryThis$i(''.split);
111
111
 
112
112
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
113
- var indexedObject = fails$a(function () {
113
+ var indexedObject = fails$g(function () {
114
114
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
115
115
  // eslint-disable-next-line no-prototype-builtins -- safe
116
116
  return !$Object$4('z').propertyIsEnumerable(0);
117
117
  }) ? function (it) {
118
- return classof$3(it) === 'String' ? split$1(it, '') : $Object$4(it);
118
+ return classof$5(it) === 'String' ? split$1(it, '') : $Object$4(it);
119
119
  } : $Object$4;
120
120
 
121
121
  // we can't use just `it == null` since of `document.all` special case
122
122
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
123
- var isNullOrUndefined$2 = function (it) {
123
+ var isNullOrUndefined$3 = function (it) {
124
124
  return it === null || it === undefined;
125
125
  };
126
126
 
127
- var isNullOrUndefined$1 = isNullOrUndefined$2;
127
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
128
128
 
129
- var $TypeError$6 = TypeError;
129
+ var $TypeError$8 = TypeError;
130
130
 
131
131
  // `RequireObjectCoercible` abstract operation
132
132
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
133
- var requireObjectCoercible$3 = function (it) {
134
- if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
133
+ var requireObjectCoercible$5 = function (it) {
134
+ if (isNullOrUndefined$2(it)) throw $TypeError$8("Can't call method on " + it);
135
135
  return it;
136
136
  };
137
137
 
138
138
  // toObject with fallback for non-array-like ES3 strings
139
- var IndexedObject$1 = indexedObject;
140
- var requireObjectCoercible$2 = requireObjectCoercible$3;
139
+ var IndexedObject$2 = indexedObject;
140
+ var requireObjectCoercible$4 = requireObjectCoercible$5;
141
141
 
142
142
  var toIndexedObject$5 = function (it) {
143
- return IndexedObject$1(requireObjectCoercible$2(it));
143
+ return IndexedObject$2(requireObjectCoercible$4(it));
144
144
  };
145
145
 
146
146
  var documentAll$2 = typeof document == 'object' && document.all;
@@ -160,45 +160,45 @@ var documentAll$1 = $documentAll$1.all;
160
160
 
161
161
  // `IsCallable` abstract operation
162
162
  // https://tc39.es/ecma262/#sec-iscallable
163
- var isCallable$f = $documentAll$1.IS_HTMLDDA ? function (argument) {
163
+ var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
164
164
  return typeof argument == 'function' || argument === documentAll$1;
165
165
  } : function (argument) {
166
166
  return typeof argument == 'function';
167
167
  };
168
168
 
169
- var isCallable$e = isCallable$f;
169
+ var isCallable$g = isCallable$h;
170
170
  var $documentAll = documentAll_1;
171
171
 
172
172
  var documentAll = $documentAll.all;
173
173
 
174
174
  var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
175
- return typeof it == 'object' ? it !== null : isCallable$e(it) || it === documentAll;
175
+ return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
176
176
  } : function (it) {
177
- return typeof it == 'object' ? it !== null : isCallable$e(it);
177
+ return typeof it == 'object' ? it !== null : isCallable$g(it);
178
178
  };
179
179
 
180
- var global$c = global$d;
181
- var isCallable$d = isCallable$f;
180
+ var global$g = global$h;
181
+ var isCallable$f = isCallable$h;
182
182
 
183
183
  var aFunction = function (argument) {
184
- return isCallable$d(argument) ? argument : undefined;
184
+ return isCallable$f(argument) ? argument : undefined;
185
185
  };
186
186
 
187
187
  var getBuiltIn$3 = function (namespace, method) {
188
- return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
188
+ return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
189
189
  };
190
190
 
191
- var uncurryThis$b = functionUncurryThis;
191
+ var uncurryThis$h = functionUncurryThis;
192
192
 
193
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
193
+ var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
194
194
 
195
195
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
196
196
 
197
- var global$b = global$d;
197
+ var global$f = global$h;
198
198
  var userAgent = engineUserAgent;
199
199
 
200
- var process$1 = global$b.process;
201
- var Deno = global$b.Deno;
200
+ var process$1 = global$f.process;
201
+ var Deno = global$f.Deno;
202
202
  var versions = process$1 && process$1.versions || Deno && Deno.version;
203
203
  var v8 = versions && versions.v8;
204
204
  var match$2, version;
@@ -224,13 +224,13 @@ var engineV8Version = version;
224
224
 
225
225
  /* eslint-disable es/no-symbol -- required for testing */
226
226
  var V8_VERSION = engineV8Version;
227
- var fails$9 = fails$d;
228
- var global$a = global$d;
227
+ var fails$f = fails$j;
228
+ var global$e = global$h;
229
229
 
230
- var $String$5 = global$a.String;
230
+ var $String$5 = global$e.String;
231
231
 
232
232
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
233
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
233
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
234
234
  var symbol = Symbol('symbol detection');
235
235
  // Chrome 38 Symbol has incorrect toString conversion
236
236
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -249,7 +249,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
249
249
  && typeof Symbol.iterator == 'symbol';
250
250
 
251
251
  var getBuiltIn$2 = getBuiltIn$3;
252
- var isCallable$c = isCallable$f;
252
+ var isCallable$e = isCallable$h;
253
253
  var isPrototypeOf$1 = objectIsPrototypeOf;
254
254
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
255
255
 
@@ -259,7 +259,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
259
259
  return typeof it == 'symbol';
260
260
  } : function (it) {
261
261
  var $Symbol = getBuiltIn$2('Symbol');
262
- return isCallable$c($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
262
+ return isCallable$e($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$3(it));
263
263
  };
264
264
 
265
265
  var $String$4 = String;
@@ -272,69 +272,69 @@ var tryToString$1 = function (argument) {
272
272
  }
273
273
  };
274
274
 
275
- var isCallable$b = isCallable$f;
275
+ var isCallable$d = isCallable$h;
276
276
  var tryToString = tryToString$1;
277
277
 
278
- var $TypeError$5 = TypeError;
278
+ var $TypeError$7 = TypeError;
279
279
 
280
280
  // `Assert: IsCallable(argument) is true`
281
- var aCallable$2 = function (argument) {
282
- if (isCallable$b(argument)) return argument;
283
- throw $TypeError$5(tryToString(argument) + ' is not a function');
281
+ var aCallable$3 = function (argument) {
282
+ if (isCallable$d(argument)) return argument;
283
+ throw $TypeError$7(tryToString(argument) + ' is not a function');
284
284
  };
285
285
 
286
- var aCallable$1 = aCallable$2;
287
- var isNullOrUndefined = isNullOrUndefined$2;
286
+ var aCallable$2 = aCallable$3;
287
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
288
288
 
289
289
  // `GetMethod` abstract operation
290
290
  // https://tc39.es/ecma262/#sec-getmethod
291
- var getMethod$1 = function (V, P) {
291
+ var getMethod$2 = function (V, P) {
292
292
  var func = V[P];
293
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
293
+ return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
294
294
  };
295
295
 
296
- var call$5 = functionCall;
297
- var isCallable$a = isCallable$f;
296
+ var call$9 = functionCall;
297
+ var isCallable$c = isCallable$h;
298
298
  var isObject$6 = isObject$7;
299
299
 
300
- var $TypeError$4 = TypeError;
300
+ var $TypeError$6 = TypeError;
301
301
 
302
302
  // `OrdinaryToPrimitive` abstract operation
303
303
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
304
304
  var ordinaryToPrimitive$1 = function (input, pref) {
305
305
  var fn, val;
306
- if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$5(fn, input))) return val;
307
- if (isCallable$a(fn = input.valueOf) && !isObject$6(val = call$5(fn, input))) return val;
308
- if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$6(val = call$5(fn, input))) return val;
309
- throw $TypeError$4("Can't convert object to primitive value");
306
+ if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
307
+ if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$9(fn, input))) return val;
308
+ if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
309
+ throw $TypeError$6("Can't convert object to primitive value");
310
310
  };
311
311
 
312
- var shared$3 = {exports: {}};
312
+ var shared$4 = {exports: {}};
313
313
 
314
- var global$9 = global$d;
314
+ var global$d = global$h;
315
315
 
316
316
  // eslint-disable-next-line es/no-object-defineproperty -- safe
317
317
  var defineProperty$5 = Object.defineProperty;
318
318
 
319
319
  var defineGlobalProperty$3 = function (key, value) {
320
320
  try {
321
- defineProperty$5(global$9, key, { value: value, configurable: true, writable: true });
321
+ defineProperty$5(global$d, key, { value: value, configurable: true, writable: true });
322
322
  } catch (error) {
323
- global$9[key] = value;
323
+ global$d[key] = value;
324
324
  } return value;
325
325
  };
326
326
 
327
- var global$8 = global$d;
327
+ var global$c = global$h;
328
328
  var defineGlobalProperty$2 = defineGlobalProperty$3;
329
329
 
330
330
  var SHARED = '__core-js_shared__';
331
- var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
331
+ var store$3 = global$c[SHARED] || defineGlobalProperty$2(SHARED, {});
332
332
 
333
333
  var sharedStore = store$3;
334
334
 
335
335
  var store$2 = sharedStore;
336
336
 
337
- (shared$3.exports = function (key, value) {
337
+ (shared$4.exports = function (key, value) {
338
338
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
339
339
  })('versions', []).push({
340
340
  version: '3.32.1',
@@ -344,50 +344,50 @@ var store$2 = sharedStore;
344
344
  source: 'https://github.com/zloirock/core-js'
345
345
  });
346
346
 
347
- var requireObjectCoercible$1 = requireObjectCoercible$3;
347
+ var requireObjectCoercible$3 = requireObjectCoercible$5;
348
348
 
349
349
  var $Object$2 = Object;
350
350
 
351
351
  // `ToObject` abstract operation
352
352
  // https://tc39.es/ecma262/#sec-toobject
353
- var toObject$4 = function (argument) {
354
- return $Object$2(requireObjectCoercible$1(argument));
353
+ var toObject$6 = function (argument) {
354
+ return $Object$2(requireObjectCoercible$3(argument));
355
355
  };
356
356
 
357
- var uncurryThis$a = functionUncurryThis;
358
- var toObject$3 = toObject$4;
357
+ var uncurryThis$g = functionUncurryThis;
358
+ var toObject$5 = toObject$6;
359
359
 
360
- var hasOwnProperty$2 = uncurryThis$a({}.hasOwnProperty);
360
+ var hasOwnProperty$2 = uncurryThis$g({}.hasOwnProperty);
361
361
 
362
362
  // `HasOwnProperty` abstract operation
363
363
  // https://tc39.es/ecma262/#sec-hasownproperty
364
364
  // eslint-disable-next-line es/no-object-hasown -- safe
365
365
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
366
- return hasOwnProperty$2(toObject$3(it), key);
366
+ return hasOwnProperty$2(toObject$5(it), key);
367
367
  };
368
368
 
369
- var uncurryThis$9 = functionUncurryThis;
369
+ var uncurryThis$f = functionUncurryThis;
370
370
 
371
371
  var id = 0;
372
372
  var postfix = Math.random();
373
- var toString$3 = uncurryThis$9(1.0.toString);
373
+ var toString$6 = uncurryThis$f(1.0.toString);
374
374
 
375
375
  var uid$2 = function (key) {
376
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
376
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
377
377
  };
378
378
 
379
- var global$7 = global$d;
380
- var shared$2 = shared$3.exports;
379
+ var global$b = global$h;
380
+ var shared$3 = shared$4.exports;
381
381
  var hasOwn$9 = hasOwnProperty_1;
382
382
  var uid$1 = uid$2;
383
383
  var NATIVE_SYMBOL = symbolConstructorDetection;
384
384
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
385
385
 
386
- var Symbol$2 = global$7.Symbol;
387
- var WellKnownSymbolsStore = shared$2('wks');
386
+ var Symbol$2 = global$b.Symbol;
387
+ var WellKnownSymbolsStore = shared$3('wks');
388
388
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
389
389
 
390
- var wellKnownSymbol$8 = function (name) {
390
+ var wellKnownSymbol$a = function (name) {
391
391
  if (!hasOwn$9(WellKnownSymbolsStore, name)) {
392
392
  WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$2, name)
393
393
  ? Symbol$2[name]
@@ -395,27 +395,27 @@ var wellKnownSymbol$8 = function (name) {
395
395
  } return WellKnownSymbolsStore[name];
396
396
  };
397
397
 
398
- var call$4 = functionCall;
398
+ var call$8 = functionCall;
399
399
  var isObject$5 = isObject$7;
400
400
  var isSymbol$1 = isSymbol$2;
401
- var getMethod = getMethod$1;
401
+ var getMethod$1 = getMethod$2;
402
402
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
403
- var wellKnownSymbol$7 = wellKnownSymbol$8;
403
+ var wellKnownSymbol$9 = wellKnownSymbol$a;
404
404
 
405
- var $TypeError$3 = TypeError;
406
- var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
405
+ var $TypeError$5 = TypeError;
406
+ var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
407
407
 
408
408
  // `ToPrimitive` abstract operation
409
409
  // https://tc39.es/ecma262/#sec-toprimitive
410
410
  var toPrimitive$1 = function (input, pref) {
411
411
  if (!isObject$5(input) || isSymbol$1(input)) return input;
412
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
412
+ var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
413
413
  var result;
414
414
  if (exoticToPrim) {
415
415
  if (pref === undefined) pref = 'default';
416
- result = call$4(exoticToPrim, input, pref);
416
+ result = call$8(exoticToPrim, input, pref);
417
417
  if (!isObject$5(result) || isSymbol$1(result)) return result;
418
- throw $TypeError$3("Can't convert object to primitive value");
418
+ throw $TypeError$5("Can't convert object to primitive value");
419
419
  }
420
420
  if (pref === undefined) pref = 'number';
421
421
  return ordinaryToPrimitive(input, pref);
@@ -431,10 +431,10 @@ var toPropertyKey$2 = function (argument) {
431
431
  return isSymbol(key) ? key : key + '';
432
432
  };
433
433
 
434
- var global$6 = global$d;
434
+ var global$a = global$h;
435
435
  var isObject$4 = isObject$7;
436
436
 
437
- var document$1 = global$6.document;
437
+ var document$1 = global$a.document;
438
438
  // typeof document.createElement is 'object' in old IE
439
439
  var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
440
440
 
@@ -443,11 +443,11 @@ var documentCreateElement$2 = function (it) {
443
443
  };
444
444
 
445
445
  var DESCRIPTORS$9 = descriptors;
446
- var fails$8 = fails$d;
446
+ var fails$e = fails$j;
447
447
  var createElement = documentCreateElement$2;
448
448
 
449
449
  // Thanks to IE8 for its funny defineProperty
450
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$8(function () {
450
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$e(function () {
451
451
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
452
452
  return Object.defineProperty(createElement('div'), 'a', {
453
453
  get: function () { return 7; }
@@ -455,7 +455,7 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$8(function () {
455
455
  });
456
456
 
457
457
  var DESCRIPTORS$8 = descriptors;
458
- var call$3 = functionCall;
458
+ var call$7 = functionCall;
459
459
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
460
460
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
461
461
  var toIndexedObject$4 = toIndexedObject$5;
@@ -474,17 +474,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
474
474
  if (IE8_DOM_DEFINE$1) try {
475
475
  return $getOwnPropertyDescriptor$1(O, P);
476
476
  } catch (error) { /* empty */ }
477
- if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule$1.f, O, P), O[P]);
477
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
478
478
  };
479
479
 
480
480
  var objectDefineProperty = {};
481
481
 
482
482
  var DESCRIPTORS$7 = descriptors;
483
- var fails$7 = fails$d;
483
+ var fails$d = fails$j;
484
484
 
485
485
  // V8 ~ Chrome 36-
486
486
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
487
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$7(function () {
487
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$d(function () {
488
488
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
489
489
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
490
490
  value: 42,
@@ -495,21 +495,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$7(function () {
495
495
  var isObject$3 = isObject$7;
496
496
 
497
497
  var $String$3 = String;
498
- var $TypeError$2 = TypeError;
498
+ var $TypeError$4 = TypeError;
499
499
 
500
500
  // `Assert: Type(argument) is Object`
501
- var anObject$7 = function (argument) {
501
+ var anObject$9 = function (argument) {
502
502
  if (isObject$3(argument)) return argument;
503
- throw $TypeError$2($String$3(argument) + ' is not an object');
503
+ throw $TypeError$4($String$3(argument) + ' is not an object');
504
504
  };
505
505
 
506
506
  var DESCRIPTORS$6 = descriptors;
507
507
  var IE8_DOM_DEFINE = ie8DomDefine;
508
508
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
509
- var anObject$6 = anObject$7;
509
+ var anObject$8 = anObject$9;
510
510
  var toPropertyKey = toPropertyKey$2;
511
511
 
512
- var $TypeError$1 = TypeError;
512
+ var $TypeError$3 = TypeError;
513
513
  // eslint-disable-next-line es/no-object-defineproperty -- safe
514
514
  var $defineProperty = Object.defineProperty;
515
515
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -521,9 +521,9 @@ var WRITABLE = 'writable';
521
521
  // `Object.defineProperty` method
522
522
  // https://tc39.es/ecma262/#sec-object.defineproperty
523
523
  objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
524
- anObject$6(O);
524
+ anObject$8(O);
525
525
  P = toPropertyKey(P);
526
- anObject$6(Attributes);
526
+ anObject$8(Attributes);
527
527
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
528
528
  var current = $getOwnPropertyDescriptor(O, P);
529
529
  if (current && current[WRITABLE]) {
@@ -536,13 +536,13 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
536
536
  }
537
537
  } return $defineProperty(O, P, Attributes);
538
538
  } : $defineProperty : function defineProperty(O, P, Attributes) {
539
- anObject$6(O);
539
+ anObject$8(O);
540
540
  P = toPropertyKey(P);
541
- anObject$6(Attributes);
541
+ anObject$8(Attributes);
542
542
  if (IE8_DOM_DEFINE) try {
543
543
  return $defineProperty(O, P, Attributes);
544
544
  } catch (error) { /* empty */ }
545
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
545
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$3('Accessors not supported');
546
546
  if ('value' in Attributes) O[P] = Attributes.value;
547
547
  return O;
548
548
  };
@@ -551,7 +551,7 @@ var DESCRIPTORS$5 = descriptors;
551
551
  var definePropertyModule$3 = objectDefineProperty;
552
552
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
553
553
 
554
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
554
+ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
555
555
  return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
556
556
  } : function (object, key, value) {
557
557
  object[key] = value;
@@ -563,14 +563,14 @@ var makeBuiltIn$2 = {exports: {}};
563
563
  var DESCRIPTORS$4 = descriptors;
564
564
  var hasOwn$7 = hasOwnProperty_1;
565
565
 
566
- var FunctionPrototype = Function.prototype;
566
+ var FunctionPrototype$1 = Function.prototype;
567
567
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
568
568
  var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
569
569
 
570
- var EXISTS = hasOwn$7(FunctionPrototype, 'name');
570
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
571
571
  // additional protection from minified / mangled / dropped function names
572
572
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
573
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
573
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
574
574
 
575
575
  var functionName = {
576
576
  EXISTS: EXISTS,
@@ -578,14 +578,14 @@ var functionName = {
578
578
  CONFIGURABLE: CONFIGURABLE
579
579
  };
580
580
 
581
- var uncurryThis$8 = functionUncurryThis;
582
- var isCallable$9 = isCallable$f;
581
+ var uncurryThis$e = functionUncurryThis;
582
+ var isCallable$b = isCallable$h;
583
583
  var store$1 = sharedStore;
584
584
 
585
- var functionToString = uncurryThis$8(Function.toString);
585
+ var functionToString = uncurryThis$e(Function.toString);
586
586
 
587
587
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
588
- if (!isCallable$9(store$1.inspectSource)) {
588
+ if (!isCallable$b(store$1.inspectSource)) {
589
589
  store$1.inspectSource = function (it) {
590
590
  return functionToString(it);
591
591
  };
@@ -593,17 +593,17 @@ if (!isCallable$9(store$1.inspectSource)) {
593
593
 
594
594
  var inspectSource$1 = store$1.inspectSource;
595
595
 
596
- var global$5 = global$d;
597
- var isCallable$8 = isCallable$f;
596
+ var global$9 = global$h;
597
+ var isCallable$a = isCallable$h;
598
598
 
599
- var WeakMap$2 = global$5.WeakMap;
599
+ var WeakMap$2 = global$9.WeakMap;
600
600
 
601
- var weakMapBasicDetection = isCallable$8(WeakMap$2) && /native code/.test(String(WeakMap$2));
601
+ var weakMapBasicDetection = isCallable$a(WeakMap$2) && /native code/.test(String(WeakMap$2));
602
602
 
603
- var shared$1 = shared$3.exports;
603
+ var shared$2 = shared$4.exports;
604
604
  var uid = uid$2;
605
605
 
606
- var keys = shared$1('keys');
606
+ var keys = shared$2('keys');
607
607
 
608
608
  var sharedKey$3 = function (key) {
609
609
  return keys[key] || (keys[key] = uid(key));
@@ -612,17 +612,17 @@ var sharedKey$3 = function (key) {
612
612
  var hiddenKeys$4 = {};
613
613
 
614
614
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
615
- var global$4 = global$d;
615
+ var global$8 = global$h;
616
616
  var isObject$2 = isObject$7;
617
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
617
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
618
618
  var hasOwn$6 = hasOwnProperty_1;
619
- var shared = sharedStore;
619
+ var shared$1 = sharedStore;
620
620
  var sharedKey$2 = sharedKey$3;
621
621
  var hiddenKeys$3 = hiddenKeys$4;
622
622
 
623
623
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
624
- var TypeError$1 = global$4.TypeError;
625
- var WeakMap$1 = global$4.WeakMap;
624
+ var TypeError$1 = global$8.TypeError;
625
+ var WeakMap$1 = global$8.WeakMap;
626
626
  var set, get$1, has$3;
627
627
 
628
628
  var enforce = function (it) {
@@ -638,8 +638,8 @@ var getterFor = function (TYPE) {
638
638
  };
639
639
  };
640
640
 
641
- if (NATIVE_WEAK_MAP || shared.state) {
642
- var store = shared.state || (shared.state = new WeakMap$1());
641
+ if (NATIVE_WEAK_MAP || shared$1.state) {
642
+ var store = shared$1.state || (shared$1.state = new WeakMap$1());
643
643
  /* eslint-disable no-self-assign -- prototype methods protection */
644
644
  store.get = store.get;
645
645
  store.has = store.has;
@@ -663,7 +663,7 @@ if (NATIVE_WEAK_MAP || shared.state) {
663
663
  set = function (it, metadata) {
664
664
  if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
665
665
  metadata.facade = it;
666
- createNonEnumerableProperty$3(it, STATE, metadata);
666
+ createNonEnumerableProperty$4(it, STATE, metadata);
667
667
  return metadata;
668
668
  };
669
669
  get$1 = function (it) {
@@ -682,9 +682,9 @@ var internalState = {
682
682
  getterFor: getterFor
683
683
  };
684
684
 
685
- var uncurryThis$7 = functionUncurryThis;
686
- var fails$6 = fails$d;
687
- var isCallable$7 = isCallable$f;
685
+ var uncurryThis$d = functionUncurryThis;
686
+ var fails$c = fails$j;
687
+ var isCallable$9 = isCallable$h;
688
688
  var hasOwn$5 = hasOwnProperty_1;
689
689
  var DESCRIPTORS$3 = descriptors;
690
690
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
@@ -692,23 +692,23 @@ var inspectSource = inspectSource$1;
692
692
  var InternalStateModule$1 = internalState;
693
693
 
694
694
  var enforceInternalState = InternalStateModule$1.enforce;
695
- var getInternalState$1 = InternalStateModule$1.get;
695
+ var getInternalState$2 = InternalStateModule$1.get;
696
696
  var $String$2 = String;
697
697
  // eslint-disable-next-line es/no-object-defineproperty -- safe
698
698
  var defineProperty$4 = Object.defineProperty;
699
- var stringSlice = uncurryThis$7(''.slice);
700
- var replace$2 = uncurryThis$7(''.replace);
701
- var join = uncurryThis$7([].join);
699
+ var stringSlice$4 = uncurryThis$d(''.slice);
700
+ var replace$4 = uncurryThis$d(''.replace);
701
+ var join = uncurryThis$d([].join);
702
702
 
703
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$6(function () {
703
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$c(function () {
704
704
  return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
705
705
  });
706
706
 
707
707
  var TEMPLATE = String(String).split('String');
708
708
 
709
709
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
710
- if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
711
- name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
710
+ if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
711
+ name = '[' + replace$4($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
712
712
  }
713
713
  if (options && options.getter) name = 'get ' + name;
714
714
  if (options && options.setter) name = 'set ' + name;
@@ -734,19 +734,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
734
734
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
735
735
  // eslint-disable-next-line no-extend-native -- required
736
736
  Function.prototype.toString = makeBuiltIn$1(function toString() {
737
- return isCallable$7(this) && getInternalState$1(this).source || inspectSource(this);
737
+ return isCallable$9(this) && getInternalState$2(this).source || inspectSource(this);
738
738
  }, 'toString');
739
739
 
740
- var isCallable$6 = isCallable$f;
740
+ var isCallable$8 = isCallable$h;
741
741
  var definePropertyModule$2 = objectDefineProperty;
742
742
  var makeBuiltIn = makeBuiltIn$2.exports;
743
743
  var defineGlobalProperty$1 = defineGlobalProperty$3;
744
744
 
745
- var defineBuiltIn$4 = function (O, key, value, options) {
745
+ var defineBuiltIn$5 = function (O, key, value, options) {
746
746
  if (!options) options = {};
747
747
  var simple = options.enumerable;
748
748
  var name = options.name !== undefined ? options.name : key;
749
- if (isCallable$6(value)) makeBuiltIn(value, name, options);
749
+ if (isCallable$8(value)) makeBuiltIn(value, name, options);
750
750
  if (options.global) {
751
751
  if (simple) O[key] = value;
752
752
  else defineGlobalProperty$1(key, value);
@@ -768,66 +768,66 @@ var defineBuiltIn$4 = function (O, key, value, options) {
768
768
  var objectGetOwnPropertyNames = {};
769
769
 
770
770
  var ceil = Math.ceil;
771
- var floor = Math.floor;
771
+ var floor$1 = Math.floor;
772
772
 
773
773
  // `Math.trunc` method
774
774
  // https://tc39.es/ecma262/#sec-math.trunc
775
775
  // eslint-disable-next-line es/no-math-trunc -- safe
776
776
  var mathTrunc = Math.trunc || function trunc(x) {
777
777
  var n = +x;
778
- return (n > 0 ? floor : ceil)(n);
778
+ return (n > 0 ? floor$1 : ceil)(n);
779
779
  };
780
780
 
781
781
  var trunc = mathTrunc;
782
782
 
783
783
  // `ToIntegerOrInfinity` abstract operation
784
784
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
785
- var toIntegerOrInfinity$2 = function (argument) {
785
+ var toIntegerOrInfinity$4 = function (argument) {
786
786
  var number = +argument;
787
787
  // eslint-disable-next-line no-self-compare -- NaN check
788
788
  return number !== number || number === 0 ? 0 : trunc(number);
789
789
  };
790
790
 
791
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
791
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
792
792
 
793
- var max = Math.max;
794
- var min$1 = Math.min;
793
+ var max$1 = Math.max;
794
+ var min$2 = Math.min;
795
795
 
796
796
  // Helper for a popular repeating case of the spec:
797
797
  // Let integer be ? ToInteger(index).
798
798
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
799
799
  var toAbsoluteIndex$1 = function (index, length) {
800
- var integer = toIntegerOrInfinity$1(index);
801
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
800
+ var integer = toIntegerOrInfinity$3(index);
801
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
802
802
  };
803
803
 
804
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
804
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
805
805
 
806
- var min = Math.min;
806
+ var min$1 = Math.min;
807
807
 
808
808
  // `ToLength` abstract operation
809
809
  // https://tc39.es/ecma262/#sec-tolength
810
- var toLength$1 = function (argument) {
811
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
810
+ var toLength$2 = function (argument) {
811
+ return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
812
812
  };
813
813
 
814
- var toLength = toLength$1;
814
+ var toLength$1 = toLength$2;
815
815
 
816
816
  // `LengthOfArrayLike` abstract operation
817
817
  // https://tc39.es/ecma262/#sec-lengthofarraylike
818
- var lengthOfArrayLike$1 = function (obj) {
819
- return toLength(obj.length);
818
+ var lengthOfArrayLike$2 = function (obj) {
819
+ return toLength$1(obj.length);
820
820
  };
821
821
 
822
822
  var toIndexedObject$3 = toIndexedObject$5;
823
823
  var toAbsoluteIndex = toAbsoluteIndex$1;
824
- var lengthOfArrayLike = lengthOfArrayLike$1;
824
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
825
825
 
826
826
  // `Array.prototype.{ indexOf, includes }` methods implementation
827
- var createMethod$1 = function (IS_INCLUDES) {
827
+ var createMethod$3 = function (IS_INCLUDES) {
828
828
  return function ($this, el, fromIndex) {
829
829
  var O = toIndexedObject$3($this);
830
- var length = lengthOfArrayLike(O);
830
+ var length = lengthOfArrayLike$1(O);
831
831
  var index = toAbsoluteIndex(fromIndex, length);
832
832
  var value;
833
833
  // Array#includes uses SameValueZero equality algorithm
@@ -846,29 +846,29 @@ var createMethod$1 = function (IS_INCLUDES) {
846
846
  var arrayIncludes = {
847
847
  // `Array.prototype.includes` method
848
848
  // https://tc39.es/ecma262/#sec-array.prototype.includes
849
- includes: createMethod$1(true),
849
+ includes: createMethod$3(true),
850
850
  // `Array.prototype.indexOf` method
851
851
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
852
- indexOf: createMethod$1(false)
852
+ indexOf: createMethod$3(false)
853
853
  };
854
854
 
855
- var uncurryThis$6 = functionUncurryThis;
855
+ var uncurryThis$c = functionUncurryThis;
856
856
  var hasOwn$4 = hasOwnProperty_1;
857
857
  var toIndexedObject$2 = toIndexedObject$5;
858
- var indexOf = arrayIncludes.indexOf;
858
+ var indexOf$1 = arrayIncludes.indexOf;
859
859
  var hiddenKeys$2 = hiddenKeys$4;
860
860
 
861
- var push = uncurryThis$6([].push);
861
+ var push$1 = uncurryThis$c([].push);
862
862
 
863
863
  var objectKeysInternal = function (object, names) {
864
864
  var O = toIndexedObject$2(object);
865
865
  var i = 0;
866
866
  var result = [];
867
867
  var key;
868
- for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
868
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
869
869
  // Don't enum bug & hidden keys
870
870
  while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
871
- ~indexOf(result, key) || push(result, key);
871
+ ~indexOf$1(result, key) || push$1(result, key);
872
872
  }
873
873
  return result;
874
874
  };
@@ -902,18 +902,18 @@ var objectGetOwnPropertySymbols = {};
902
902
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
903
903
 
904
904
  var getBuiltIn$1 = getBuiltIn$3;
905
- var uncurryThis$5 = functionUncurryThis;
905
+ var uncurryThis$b = functionUncurryThis;
906
906
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
907
907
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
908
- var anObject$5 = anObject$7;
908
+ var anObject$7 = anObject$9;
909
909
 
910
- var concat$1 = uncurryThis$5([].concat);
910
+ var concat$2 = uncurryThis$b([].concat);
911
911
 
912
912
  // all object keys, includes non-enumerable and symbols
913
913
  var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
914
- var keys = getOwnPropertyNamesModule.f(anObject$5(it));
914
+ var keys = getOwnPropertyNamesModule.f(anObject$7(it));
915
915
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
916
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
916
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
917
917
  };
918
918
 
919
919
  var hasOwn$3 = hasOwnProperty_1;
@@ -933,8 +933,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
933
933
  }
934
934
  };
935
935
 
936
- var fails$5 = fails$d;
937
- var isCallable$5 = isCallable$f;
936
+ var fails$b = fails$j;
937
+ var isCallable$7 = isCallable$h;
938
938
 
939
939
  var replacement = /#|\.prototype\./;
940
940
 
@@ -942,7 +942,7 @@ var isForced$1 = function (feature, detection) {
942
942
  var value = data[normalize(feature)];
943
943
  return value === POLYFILL ? true
944
944
  : value === NATIVE ? false
945
- : isCallable$5(detection) ? fails$5(detection)
945
+ : isCallable$7(detection) ? fails$b(detection)
946
946
  : !!detection;
947
947
  };
948
948
 
@@ -956,10 +956,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
956
956
 
957
957
  var isForced_1 = isForced$1;
958
958
 
959
- var global$3 = global$d;
959
+ var global$7 = global$h;
960
960
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
961
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
962
- var defineBuiltIn$3 = defineBuiltIn$4;
961
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
962
+ var defineBuiltIn$4 = defineBuiltIn$5;
963
963
  var defineGlobalProperty = defineGlobalProperty$3;
964
964
  var copyConstructorProperties = copyConstructorProperties$1;
965
965
  var isForced = isForced_1;
@@ -985,11 +985,11 @@ var _export = function (options, source) {
985
985
  var STATIC = options.stat;
986
986
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
987
987
  if (GLOBAL) {
988
- target = global$3;
988
+ target = global$7;
989
989
  } else if (STATIC) {
990
- target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
990
+ target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
991
991
  } else {
992
- target = (global$3[TARGET] || {}).prototype;
992
+ target = (global$7[TARGET] || {}).prototype;
993
993
  }
994
994
  if (target) for (key in source) {
995
995
  sourceProperty = source[key];
@@ -1005,9 +1005,9 @@ var _export = function (options, source) {
1005
1005
  }
1006
1006
  // add a flag to not completely full polyfills
1007
1007
  if (options.sham || (targetProperty && targetProperty.sham)) {
1008
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1008
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1009
1009
  }
1010
- defineBuiltIn$3(target, key, sourceProperty, options);
1010
+ defineBuiltIn$4(target, key, sourceProperty, options);
1011
1011
  }
1012
1012
  };
1013
1013
 
@@ -1022,24 +1022,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
1022
1022
  };
1023
1023
 
1024
1024
  var DESCRIPTORS$2 = descriptors;
1025
- var uncurryThis$4 = functionUncurryThis;
1026
- var call$2 = functionCall;
1027
- var fails$4 = fails$d;
1025
+ var uncurryThis$a = functionUncurryThis;
1026
+ var call$6 = functionCall;
1027
+ var fails$a = fails$j;
1028
1028
  var objectKeys$1 = objectKeys$2;
1029
1029
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1030
1030
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1031
- var toObject$2 = toObject$4;
1032
- var IndexedObject = indexedObject;
1031
+ var toObject$4 = toObject$6;
1032
+ var IndexedObject$1 = indexedObject;
1033
1033
 
1034
1034
  // eslint-disable-next-line es/no-object-assign -- safe
1035
1035
  var $assign = Object.assign;
1036
1036
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1037
1037
  var defineProperty$3 = Object.defineProperty;
1038
- var concat = uncurryThis$4([].concat);
1038
+ var concat$1 = uncurryThis$a([].concat);
1039
1039
 
1040
1040
  // `Object.assign` method
1041
1041
  // https://tc39.es/ecma262/#sec-object.assign
1042
- var objectAssign$1 = !$assign || fails$4(function () {
1042
+ var objectAssign$1 = !$assign || fails$a(function () {
1043
1043
  // should have correct order of operations (Edge bug)
1044
1044
  if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1045
1045
  enumerable: true,
@@ -1060,31 +1060,31 @@ var objectAssign$1 = !$assign || fails$4(function () {
1060
1060
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1061
1061
  return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1062
1062
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1063
- var T = toObject$2(target);
1063
+ var T = toObject$4(target);
1064
1064
  var argumentsLength = arguments.length;
1065
1065
  var index = 1;
1066
1066
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1067
1067
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
1068
1068
  while (argumentsLength > index) {
1069
- var S = IndexedObject(arguments[index++]);
1070
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1069
+ var S = IndexedObject$1(arguments[index++]);
1070
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1071
1071
  var length = keys.length;
1072
1072
  var j = 0;
1073
1073
  var key;
1074
1074
  while (length > j) {
1075
1075
  key = keys[j++];
1076
- if (!DESCRIPTORS$2 || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
1076
+ if (!DESCRIPTORS$2 || call$6(propertyIsEnumerable, S, key)) T[key] = S[key];
1077
1077
  }
1078
1078
  } return T;
1079
1079
  } : $assign;
1080
1080
 
1081
- var $$3 = _export;
1081
+ var $$5 = _export;
1082
1082
  var assign$2 = objectAssign$1;
1083
1083
 
1084
1084
  // `Object.assign` method
1085
1085
  // https://tc39.es/ecma262/#sec-object.assign
1086
1086
  // eslint-disable-next-line es/no-object-assign -- required for testing
1087
- $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$2 }, {
1087
+ $$5({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$2 }, {
1088
1088
  assign: assign$2
1089
1089
  });
1090
1090
 
@@ -1439,7 +1439,7 @@ var objectDefineProperties = {};
1439
1439
  var DESCRIPTORS$1 = descriptors;
1440
1440
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1441
1441
  var definePropertyModule = objectDefineProperty;
1442
- var anObject$4 = anObject$7;
1442
+ var anObject$6 = anObject$9;
1443
1443
  var toIndexedObject$1 = toIndexedObject$5;
1444
1444
  var objectKeys = objectKeys$2;
1445
1445
 
@@ -1447,7 +1447,7 @@ var objectKeys = objectKeys$2;
1447
1447
  // https://tc39.es/ecma262/#sec-object.defineproperties
1448
1448
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1449
1449
  objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1450
- anObject$4(O);
1450
+ anObject$6(O);
1451
1451
  var props = toIndexedObject$1(Properties);
1452
1452
  var keys = objectKeys(Properties);
1453
1453
  var length = keys.length;
@@ -1462,7 +1462,7 @@ var getBuiltIn = getBuiltIn$3;
1462
1462
  var html$1 = getBuiltIn('document', 'documentElement');
1463
1463
 
1464
1464
  /* global ActiveXObject -- old IE, WSH */
1465
- var anObject$3 = anObject$7;
1465
+ var anObject$5 = anObject$9;
1466
1466
  var definePropertiesModule = objectDefineProperties;
1467
1467
  var enumBugKeys = enumBugKeys$3;
1468
1468
  var hiddenKeys = hiddenKeys$4;
@@ -1536,7 +1536,7 @@ hiddenKeys[IE_PROTO$1] = true;
1536
1536
  var objectCreate = Object.create || function create(O, Properties) {
1537
1537
  var result;
1538
1538
  if (O !== null) {
1539
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
1539
+ EmptyConstructor[PROTOTYPE] = anObject$5(O);
1540
1540
  result = new EmptyConstructor();
1541
1541
  EmptyConstructor[PROTOTYPE] = null;
1542
1542
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1545,11 +1545,11 @@ var objectCreate = Object.create || function create(O, Properties) {
1545
1545
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1546
1546
  };
1547
1547
 
1548
- var wellKnownSymbol$6 = wellKnownSymbol$8;
1549
- var create$1 = objectCreate;
1548
+ var wellKnownSymbol$8 = wellKnownSymbol$a;
1549
+ var create$2 = objectCreate;
1550
1550
  var defineProperty$2 = objectDefineProperty.f;
1551
1551
 
1552
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1552
+ var UNSCOPABLES = wellKnownSymbol$8('unscopables');
1553
1553
  var ArrayPrototype = Array.prototype;
1554
1554
 
1555
1555
  // Array.prototype[@@unscopables]
@@ -1557,7 +1557,7 @@ var ArrayPrototype = Array.prototype;
1557
1557
  if (ArrayPrototype[UNSCOPABLES] === undefined) {
1558
1558
  defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1559
1559
  configurable: true,
1560
- value: create$1(null)
1560
+ value: create$2(null)
1561
1561
  });
1562
1562
  }
1563
1563
 
@@ -1568,9 +1568,9 @@ var addToUnscopables$1 = function (key) {
1568
1568
 
1569
1569
  var iterators = {};
1570
1570
 
1571
- var fails$3 = fails$d;
1571
+ var fails$9 = fails$j;
1572
1572
 
1573
- var correctPrototypeGetter = !fails$3(function () {
1573
+ var correctPrototypeGetter = !fails$9(function () {
1574
1574
  function F() { /* empty */ }
1575
1575
  F.prototype.constructor = null;
1576
1576
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1578,8 +1578,8 @@ var correctPrototypeGetter = !fails$3(function () {
1578
1578
  });
1579
1579
 
1580
1580
  var hasOwn$2 = hasOwnProperty_1;
1581
- var isCallable$4 = isCallable$f;
1582
- var toObject$1 = toObject$4;
1581
+ var isCallable$6 = isCallable$h;
1582
+ var toObject$3 = toObject$6;
1583
1583
  var sharedKey = sharedKey$3;
1584
1584
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1585
1585
 
@@ -1591,22 +1591,22 @@ var ObjectPrototype = $Object$1.prototype;
1591
1591
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1592
1592
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1593
1593
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1594
- var object = toObject$1(O);
1594
+ var object = toObject$3(O);
1595
1595
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1596
1596
  var constructor = object.constructor;
1597
- if (isCallable$4(constructor) && object instanceof constructor) {
1597
+ if (isCallable$6(constructor) && object instanceof constructor) {
1598
1598
  return constructor.prototype;
1599
1599
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1600
1600
  };
1601
1601
 
1602
- var fails$2 = fails$d;
1603
- var isCallable$3 = isCallable$f;
1602
+ var fails$8 = fails$j;
1603
+ var isCallable$5 = isCallable$h;
1604
1604
  var isObject$1 = isObject$7;
1605
1605
  var getPrototypeOf$1 = objectGetPrototypeOf;
1606
- var defineBuiltIn$2 = defineBuiltIn$4;
1607
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1606
+ var defineBuiltIn$3 = defineBuiltIn$5;
1607
+ var wellKnownSymbol$7 = wellKnownSymbol$a;
1608
1608
 
1609
- var ITERATOR$3 = wellKnownSymbol$5('iterator');
1609
+ var ITERATOR$3 = wellKnownSymbol$7('iterator');
1610
1610
  var BUGGY_SAFARI_ITERATORS$1 = false;
1611
1611
 
1612
1612
  // `%IteratorPrototype%` object
@@ -1624,7 +1624,7 @@ if ([].keys) {
1624
1624
  }
1625
1625
  }
1626
1626
 
1627
- var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$2(function () {
1627
+ var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$8(function () {
1628
1628
  var test = {};
1629
1629
  // FF44- legacy iterators case
1630
1630
  return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
@@ -1634,8 +1634,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1634
1634
 
1635
1635
  // `%IteratorPrototype%[@@iterator]()` method
1636
1636
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1637
- if (!isCallable$3(IteratorPrototype$2[ITERATOR$3])) {
1638
- defineBuiltIn$2(IteratorPrototype$2, ITERATOR$3, function () {
1637
+ if (!isCallable$5(IteratorPrototype$2[ITERATOR$3])) {
1638
+ defineBuiltIn$3(IteratorPrototype$2, ITERATOR$3, function () {
1639
1639
  return this;
1640
1640
  });
1641
1641
  }
@@ -1647,9 +1647,9 @@ var iteratorsCore = {
1647
1647
 
1648
1648
  var defineProperty$1 = objectDefineProperty.f;
1649
1649
  var hasOwn$1 = hasOwnProperty_1;
1650
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1650
+ var wellKnownSymbol$6 = wellKnownSymbol$a;
1651
1651
 
1652
- var TO_STRING_TAG$3 = wellKnownSymbol$4('toStringTag');
1652
+ var TO_STRING_TAG$3 = wellKnownSymbol$6('toStringTag');
1653
1653
 
1654
1654
  var setToStringTag$2 = function (target, TAG, STATIC) {
1655
1655
  if (target && !STATIC) target = target.prototype;
@@ -1659,7 +1659,7 @@ var setToStringTag$2 = function (target, TAG, STATIC) {
1659
1659
  };
1660
1660
 
1661
1661
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1662
- var create = objectCreate;
1662
+ var create$1 = objectCreate;
1663
1663
  var createPropertyDescriptor = createPropertyDescriptor$3;
1664
1664
  var setToStringTag$1 = setToStringTag$2;
1665
1665
  var Iterators$2 = iterators;
@@ -1668,35 +1668,35 @@ var returnThis$1 = function () { return this; };
1668
1668
 
1669
1669
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1670
1670
  var TO_STRING_TAG = NAME + ' Iterator';
1671
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1671
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1672
1672
  setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1673
1673
  Iterators$2[TO_STRING_TAG] = returnThis$1;
1674
1674
  return IteratorConstructor;
1675
1675
  };
1676
1676
 
1677
- var uncurryThis$3 = functionUncurryThis;
1678
- var aCallable = aCallable$2;
1677
+ var uncurryThis$9 = functionUncurryThis;
1678
+ var aCallable$1 = aCallable$3;
1679
1679
 
1680
1680
  var functionUncurryThisAccessor = function (object, key, method) {
1681
1681
  try {
1682
1682
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1683
- return uncurryThis$3(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1683
+ return uncurryThis$9(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1684
1684
  } catch (error) { /* empty */ }
1685
1685
  };
1686
1686
 
1687
- var isCallable$2 = isCallable$f;
1687
+ var isCallable$4 = isCallable$h;
1688
1688
 
1689
1689
  var $String$1 = String;
1690
- var $TypeError = TypeError;
1690
+ var $TypeError$2 = TypeError;
1691
1691
 
1692
1692
  var aPossiblePrototype$1 = function (argument) {
1693
- if (typeof argument == 'object' || isCallable$2(argument)) return argument;
1694
- throw $TypeError("Can't set " + $String$1(argument) + ' as a prototype');
1693
+ if (typeof argument == 'object' || isCallable$4(argument)) return argument;
1694
+ throw $TypeError$2("Can't set " + $String$1(argument) + ' as a prototype');
1695
1695
  };
1696
1696
 
1697
1697
  /* eslint-disable no-proto -- safe */
1698
1698
  var uncurryThisAccessor = functionUncurryThisAccessor;
1699
- var anObject$2 = anObject$7;
1699
+ var anObject$4 = anObject$9;
1700
1700
  var aPossiblePrototype = aPossiblePrototype$1;
1701
1701
 
1702
1702
  // `Object.setPrototypeOf` method
@@ -1713,7 +1713,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1713
1713
  CORRECT_SETTER = test instanceof Array;
1714
1714
  } catch (error) { /* empty */ }
1715
1715
  return function setPrototypeOf(O, proto) {
1716
- anObject$2(O);
1716
+ anObject$4(O);
1717
1717
  aPossiblePrototype(proto);
1718
1718
  if (CORRECT_SETTER) setter(O, proto);
1719
1719
  else O.__proto__ = proto;
@@ -1721,17 +1721,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1721
1721
  };
1722
1722
  }() : undefined);
1723
1723
 
1724
- var $$2 = _export;
1725
- var call$1 = functionCall;
1724
+ var $$4 = _export;
1725
+ var call$5 = functionCall;
1726
1726
  var FunctionName = functionName;
1727
- var isCallable$1 = isCallable$f;
1727
+ var isCallable$3 = isCallable$h;
1728
1728
  var createIteratorConstructor = iteratorCreateConstructor;
1729
1729
  var getPrototypeOf = objectGetPrototypeOf;
1730
1730
  var setPrototypeOf = objectSetPrototypeOf;
1731
1731
  var setToStringTag = setToStringTag$2;
1732
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1733
- var defineBuiltIn$1 = defineBuiltIn$4;
1734
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1732
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1733
+ var defineBuiltIn$2 = defineBuiltIn$5;
1734
+ var wellKnownSymbol$5 = wellKnownSymbol$a;
1735
1735
  var Iterators$1 = iterators;
1736
1736
  var IteratorsCore = iteratorsCore;
1737
1737
 
@@ -1739,7 +1739,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1739
1739
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1740
1740
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1741
1741
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1742
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1742
+ var ITERATOR$2 = wellKnownSymbol$5('iterator');
1743
1743
  var KEYS = 'keys';
1744
1744
  var VALUES = 'values';
1745
1745
  var ENTRIES = 'entries';
@@ -1776,8 +1776,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1776
1776
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1777
1777
  if (setPrototypeOf) {
1778
1778
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1779
- } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$2])) {
1780
- defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$2, returnThis);
1779
+ } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$2])) {
1780
+ defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$2, returnThis);
1781
1781
  }
1782
1782
  }
1783
1783
  // Set @@toStringTag to native iterators
@@ -1788,10 +1788,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1788
1788
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1789
1789
  if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1790
1790
  if (CONFIGURABLE_FUNCTION_NAME) {
1791
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1791
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1792
1792
  } else {
1793
1793
  INCORRECT_VALUES_NAME = true;
1794
- defaultIterator = function values() { return call$1(nativeIterator, this); };
1794
+ defaultIterator = function values() { return call$5(nativeIterator, this); };
1795
1795
  }
1796
1796
  }
1797
1797
 
@@ -1804,14 +1804,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1804
1804
  };
1805
1805
  if (FORCED) for (KEY in methods) {
1806
1806
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1807
- defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1807
+ defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
1808
1808
  }
1809
- } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1809
+ } else $$4({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1810
1810
  }
1811
1811
 
1812
1812
  // define iterator
1813
1813
  if (IterablePrototype[ITERATOR$2] !== defaultIterator) {
1814
- defineBuiltIn$1(IterablePrototype, ITERATOR$2, defaultIterator, { name: DEFAULT });
1814
+ defineBuiltIn$2(IterablePrototype, ITERATOR$2, defaultIterator, { name: DEFAULT });
1815
1815
  }
1816
1816
  Iterators$1[NAME] = defaultIterator;
1817
1817
 
@@ -1835,7 +1835,7 @@ var DESCRIPTORS = descriptors;
1835
1835
 
1836
1836
  var ARRAY_ITERATOR = 'Array Iterator';
1837
1837
  var setInternalState = InternalStateModule.set;
1838
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1838
+ var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1839
1839
 
1840
1840
  // `Array.prototype.entries` method
1841
1841
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -1857,7 +1857,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1857
1857
  // `%ArrayIteratorPrototype%.next` method
1858
1858
  // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1859
1859
  }, function () {
1860
- var state = getInternalState(this);
1860
+ var state = getInternalState$1(this);
1861
1861
  var target = state.target;
1862
1862
  var kind = state.kind;
1863
1863
  var index = state.index++;
@@ -1930,32 +1930,32 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1930
1930
 
1931
1931
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1932
1932
 
1933
- var global$2 = global$d;
1933
+ var global$6 = global$h;
1934
1934
  var DOMIterables = domIterables;
1935
1935
  var DOMTokenListPrototype = domTokenListPrototype;
1936
1936
  var ArrayIteratorMethods = es_array_iterator;
1937
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1938
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1937
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1938
+ var wellKnownSymbol$4 = wellKnownSymbol$a;
1939
1939
 
1940
- var ITERATOR$1 = wellKnownSymbol$2('iterator');
1941
- var TO_STRING_TAG$2 = wellKnownSymbol$2('toStringTag');
1940
+ var ITERATOR$1 = wellKnownSymbol$4('iterator');
1941
+ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1942
1942
  var ArrayValues = ArrayIteratorMethods.values;
1943
1943
 
1944
1944
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1945
1945
  if (CollectionPrototype) {
1946
1946
  // some Chrome versions have non-configurable methods on DOMTokenList
1947
1947
  if (CollectionPrototype[ITERATOR$1] !== ArrayValues) try {
1948
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$1, ArrayValues);
1948
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$1, ArrayValues);
1949
1949
  } catch (error) {
1950
1950
  CollectionPrototype[ITERATOR$1] = ArrayValues;
1951
1951
  }
1952
1952
  if (!CollectionPrototype[TO_STRING_TAG$2]) {
1953
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1953
+ createNonEnumerableProperty$1(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1954
1954
  }
1955
1955
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1956
1956
  // some Chrome versions have non-configurable methods on DOMTokenList
1957
1957
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1958
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1958
+ createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1959
1959
  } catch (error) {
1960
1960
  CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1961
1961
  }
@@ -1964,7 +1964,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1964
1964
  };
1965
1965
 
1966
1966
  for (var COLLECTION_NAME in DOMIterables) {
1967
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
1967
+ handlePrototype(global$6[COLLECTION_NAME] && global$6[COLLECTION_NAME].prototype, COLLECTION_NAME);
1968
1968
  }
1969
1969
 
1970
1970
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -2379,7 +2379,7 @@ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2379
2379
  var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
2380
2380
  var propIsEnumerable = Object.prototype.propertyIsEnumerable;
2381
2381
 
2382
- function toObject(val) {
2382
+ function toObject$2(val) {
2383
2383
  if (val === null || val === undefined) {
2384
2384
  throw new TypeError('Object.assign cannot be called with null or undefined');
2385
2385
  }
@@ -2433,7 +2433,7 @@ function shouldUseNative() {
2433
2433
 
2434
2434
  var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
2435
2435
  var from;
2436
- var to = toObject(target);
2436
+ var to = toObject$2(target);
2437
2437
  var symbols;
2438
2438
 
2439
2439
  for (var s = 1; s < arguments.length; s++) {
@@ -3722,11 +3722,12 @@ const globalStateClassesMapping = {
3722
3722
  checked: 'checked',
3723
3723
  completed: 'completed',
3724
3724
  disabled: 'disabled',
3725
- readOnly: 'readOnly',
3726
3725
  error: 'error',
3727
3726
  expanded: 'expanded',
3728
3727
  focused: 'focused',
3729
3728
  focusVisible: 'focusVisible',
3729
+ open: 'open',
3730
+ readOnly: 'readOnly',
3730
3731
  required: 'required',
3731
3732
  selected: 'selected'
3732
3733
  };
@@ -3992,7 +3993,7 @@ function match$1 (value, pattern) {
3992
3993
  * @param {string} replacement
3993
3994
  * @return {string}
3994
3995
  */
3995
- function replace$1 (value, pattern, replacement) {
3996
+ function replace$3 (value, pattern, replacement) {
3996
3997
  return value.replace(pattern, replacement)
3997
3998
  }
3998
3999
 
@@ -4320,7 +4321,7 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
4320
4321
  // (
4321
4322
  case 40:
4322
4323
  if (previous != 108 && charat(characters, length - 1) == 58) {
4323
- if (indexof(characters += replace$1(delimit(character), '&', '&\f'), '&\f') != -1)
4324
+ if (indexof(characters += replace$3(delimit(character), '&', '&\f'), '&\f') != -1)
4324
4325
  ampersand = -1;
4325
4326
  break
4326
4327
  }
@@ -4355,9 +4356,9 @@ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, de
4355
4356
  // \0 }
4356
4357
  case 0: case 125: scanning = 0;
4357
4358
  // ;
4358
- case 59 + offset: if (ampersand == -1) characters = replace$1(characters, /\f/g, '');
4359
+ case 59 + offset: if (ampersand == -1) characters = replace$3(characters, /\f/g, '');
4359
4360
  if (property > 0 && (strlen(characters) - length))
4360
- append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace$1(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
4361
+ append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace$3(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
4361
4362
  break
4362
4363
  // @ ;
4363
4364
  case 59: characters += ';';
@@ -4439,7 +4440,7 @@ function ruleset (value, root, parent, index, offset, rules, points, type, props
4439
4440
 
4440
4441
  for (var i = 0, j = 0, k = 0; i < index; ++i)
4441
4442
  for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
4442
- if (z = trim$1(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
4443
+ if (z = trim$1(j > 0 ? rule[x] + ' ' + y : replace$3(y, /&\f/g, rule[x])))
4443
4444
  props[k++] = z;
4444
4445
 
4445
4446
  return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
@@ -4835,51 +4836,51 @@ function prefix(value, length) {
4835
4836
  // align-items
4836
4837
 
4837
4838
  case 5187:
4838
- return WEBKIT + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
4839
+ return WEBKIT + value + replace$3(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
4839
4840
  // align-self
4840
4841
 
4841
4842
  case 5443:
4842
- return WEBKIT + value + MS + 'flex-item-' + replace$1(value, /flex-|-self/, '') + value;
4843
+ return WEBKIT + value + MS + 'flex-item-' + replace$3(value, /flex-|-self/, '') + value;
4843
4844
  // align-content
4844
4845
 
4845
4846
  case 4675:
4846
- return WEBKIT + value + MS + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/, '') + value;
4847
+ return WEBKIT + value + MS + 'flex-line-pack' + replace$3(value, /align-content|flex-|-self/, '') + value;
4847
4848
  // flex-shrink
4848
4849
 
4849
4850
  case 5548:
4850
- return WEBKIT + value + MS + replace$1(value, 'shrink', 'negative') + value;
4851
+ return WEBKIT + value + MS + replace$3(value, 'shrink', 'negative') + value;
4851
4852
  // flex-basis
4852
4853
 
4853
4854
  case 5292:
4854
- return WEBKIT + value + MS + replace$1(value, 'basis', 'preferred-size') + value;
4855
+ return WEBKIT + value + MS + replace$3(value, 'basis', 'preferred-size') + value;
4855
4856
  // flex-grow
4856
4857
 
4857
4858
  case 6060:
4858
- return WEBKIT + 'box-' + replace$1(value, '-grow', '') + WEBKIT + value + MS + replace$1(value, 'grow', 'positive') + value;
4859
+ return WEBKIT + 'box-' + replace$3(value, '-grow', '') + WEBKIT + value + MS + replace$3(value, 'grow', 'positive') + value;
4859
4860
  // transition
4860
4861
 
4861
4862
  case 4554:
4862
- return WEBKIT + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
4863
+ return WEBKIT + replace$3(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
4863
4864
  // cursor
4864
4865
 
4865
4866
  case 6187:
4866
- return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
4867
+ return replace$3(replace$3(replace$3(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
4867
4868
  // background, background-image
4868
4869
 
4869
4870
  case 5495:
4870
4871
  case 3959:
4871
- return replace$1(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
4872
+ return replace$3(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
4872
4873
  // justify-content
4873
4874
 
4874
4875
  case 4968:
4875
- return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
4876
+ return replace$3(replace$3(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
4876
4877
  // (margin|padding)-inline-(start|end)
4877
4878
 
4878
4879
  case 4095:
4879
4880
  case 3583:
4880
4881
  case 4068:
4881
4882
  case 2532:
4882
- return replace$1(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
4883
+ return replace$3(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
4883
4884
  // (min|max)?(width|height|inline-size|block-size)
4884
4885
 
4885
4886
  case 8116:
@@ -4903,11 +4904,11 @@ function prefix(value, length) {
4903
4904
  // (f)ill-available, (f)it-content
4904
4905
 
4905
4906
  case 102:
4906
- return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
4907
+ return replace$3(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
4907
4908
  // (s)tretch
4908
4909
 
4909
4910
  case 115:
4910
- return ~indexof(value, 'stretch') ? prefix(replace$1(value, 'stretch', 'fill-available'), length) + value : value;
4911
+ return ~indexof(value, 'stretch') ? prefix(replace$3(value, 'stretch', 'fill-available'), length) + value : value;
4911
4912
  }
4912
4913
  break;
4913
4914
  // position: sticky
@@ -4921,11 +4922,11 @@ function prefix(value, length) {
4921
4922
  switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
4922
4923
  // stic(k)y
4923
4924
  case 107:
4924
- return replace$1(value, ':', ':' + WEBKIT) + value;
4925
+ return replace$3(value, ':', ':' + WEBKIT) + value;
4925
4926
  // (inline-)?fl(e)x
4926
4927
 
4927
4928
  case 101:
4928
- return replace$1(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
4929
+ return replace$3(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
4929
4930
  }
4930
4931
 
4931
4932
  break;
@@ -4935,15 +4936,15 @@ function prefix(value, length) {
4935
4936
  switch (charat(value, length + 11)) {
4936
4937
  // vertical-l(r)
4937
4938
  case 114:
4938
- return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
4939
+ return WEBKIT + value + MS + replace$3(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
4939
4940
  // vertical-r(l)
4940
4941
 
4941
4942
  case 108:
4942
- return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
4943
+ return WEBKIT + value + MS + replace$3(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
4943
4944
  // horizontal(-)tb
4944
4945
 
4945
4946
  case 45:
4946
- return WEBKIT + value + MS + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
4947
+ return WEBKIT + value + MS + replace$3(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
4947
4948
  }
4948
4949
 
4949
4950
  return WEBKIT + value + MS + value + value;
@@ -4960,7 +4961,7 @@ var prefixer = function prefixer(element, index, children, callback) {
4960
4961
 
4961
4962
  case KEYFRAMES:
4962
4963
  return serialize([copy(element, {
4963
- value: replace$1(element.value, '@', '@' + WEBKIT)
4964
+ value: replace$3(element.value, '@', '@' + WEBKIT)
4964
4965
  })], callback);
4965
4966
 
4966
4967
  case RULESET:
@@ -4970,17 +4971,17 @@ var prefixer = function prefixer(element, index, children, callback) {
4970
4971
  case ':read-only':
4971
4972
  case ':read-write':
4972
4973
  return serialize([copy(element, {
4973
- props: [replace$1(value, /:(read-\w+)/, ':' + MOZ + '$1')]
4974
+ props: [replace$3(value, /:(read-\w+)/, ':' + MOZ + '$1')]
4974
4975
  })], callback);
4975
4976
  // :placeholder
4976
4977
 
4977
4978
  case '::placeholder':
4978
4979
  return serialize([copy(element, {
4979
- props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
4980
+ props: [replace$3(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
4980
4981
  }), copy(element, {
4981
- props: [replace$1(value, /:(plac\w+)/, ':' + MOZ + '$1')]
4982
+ props: [replace$3(value, /:(plac\w+)/, ':' + MOZ + '$1')]
4982
4983
  }), copy(element, {
4983
- props: [replace$1(value, /:(plac\w+)/, MS + 'input-$1')]
4984
+ props: [replace$3(value, /:(plac\w+)/, MS + 'input-$1')]
4984
4985
  })], callback);
4985
4986
  }
4986
4987
 
@@ -5997,7 +5998,7 @@ tags.forEach(function (tagName) {
5997
5998
  });
5998
5999
 
5999
6000
  /**
6000
- * @mui/styled-engine v5.13.2
6001
+ * @mui/styled-engine v5.14.8
6001
6002
  *
6002
6003
  * @license MIT
6003
6004
  * This source code is licensed under the MIT license found in the
@@ -6648,10 +6649,20 @@ const width = style$1({
6648
6649
  const maxWidth = props => {
6649
6650
  if (props.maxWidth !== undefined && props.maxWidth !== null) {
6650
6651
  const styleFromPropValue = propValue => {
6651
- var _props$theme;
6652
+ var _props$theme, _props$theme2;
6652
6653
  const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
6654
+ if (!breakpoint) {
6655
+ return {
6656
+ maxWidth: sizingTransform(propValue)
6657
+ };
6658
+ }
6659
+ if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
6660
+ return {
6661
+ maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
6662
+ };
6663
+ }
6653
6664
  return {
6654
- maxWidth: breakpoint || sizingTransform(propValue)
6665
+ maxWidth: breakpoint
6655
6666
  };
6656
6667
  };
6657
6668
  return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
@@ -8901,9 +8912,9 @@ const Legend = ({
8901
8912
  }));
8902
8913
  };
8903
8914
 
8904
- var wellKnownSymbol$1 = wellKnownSymbol$8;
8915
+ var wellKnownSymbol$3 = wellKnownSymbol$a;
8905
8916
 
8906
- var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
8917
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
8907
8918
  var test$1 = {};
8908
8919
 
8909
8920
  test$1[TO_STRING_TAG$1] = 'z';
@@ -8911,15 +8922,15 @@ test$1[TO_STRING_TAG$1] = 'z';
8911
8922
  var toStringTagSupport = String(test$1) === '[object z]';
8912
8923
 
8913
8924
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
8914
- var isCallable = isCallable$f;
8915
- var classofRaw = classofRaw$1;
8916
- var wellKnownSymbol = wellKnownSymbol$8;
8925
+ var isCallable$2 = isCallable$h;
8926
+ var classofRaw$1 = classofRaw$2;
8927
+ var wellKnownSymbol$2 = wellKnownSymbol$a;
8917
8928
 
8918
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
8929
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
8919
8930
  var $Object = Object;
8920
8931
 
8921
8932
  // ES3 wrong here
8922
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
8933
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
8923
8934
 
8924
8935
  // fallback for IE11 Script Access Denied error
8925
8936
  var tryGet = function (it, key) {
@@ -8929,23 +8940,23 @@ var tryGet = function (it, key) {
8929
8940
  };
8930
8941
 
8931
8942
  // getting tag from ES6+ `Object.prototype.toString`
8932
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
8943
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
8933
8944
  var O, tag, result;
8934
8945
  return it === undefined ? 'Undefined' : it === null ? 'Null'
8935
8946
  // @@toStringTag case
8936
8947
  : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
8937
8948
  // builtinTag case
8938
- : CORRECT_ARGUMENTS ? classofRaw(O)
8949
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
8939
8950
  // ES3 arguments fallback
8940
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
8951
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
8941
8952
  };
8942
8953
 
8943
- var classof$1 = classof$2;
8954
+ var classof$3 = classof$4;
8944
8955
 
8945
8956
  var $String = String;
8946
8957
 
8947
- var toString$2 = function (argument) {
8948
- if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
8958
+ var toString$5 = function (argument) {
8959
+ if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
8949
8960
  return $String(argument);
8950
8961
  };
8951
8962
 
@@ -8953,21 +8964,21 @@ var toString$2 = function (argument) {
8953
8964
  var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
8954
8965
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
8955
8966
 
8956
- var uncurryThis$2 = functionUncurryThis;
8957
- var requireObjectCoercible = requireObjectCoercible$3;
8958
- var toString$1 = toString$2;
8967
+ var uncurryThis$8 = functionUncurryThis;
8968
+ var requireObjectCoercible$2 = requireObjectCoercible$5;
8969
+ var toString$4 = toString$5;
8959
8970
  var whitespaces$1 = whitespaces$2;
8960
8971
 
8961
- var replace = uncurryThis$2(''.replace);
8972
+ var replace$2 = uncurryThis$8(''.replace);
8962
8973
  var ltrim = RegExp('^[' + whitespaces$1 + ']+');
8963
8974
  var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
8964
8975
 
8965
8976
  // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
8966
- var createMethod = function (TYPE) {
8977
+ var createMethod$2 = function (TYPE) {
8967
8978
  return function ($this) {
8968
- var string = toString$1(requireObjectCoercible($this));
8969
- if (TYPE & 1) string = replace(string, ltrim, '');
8970
- if (TYPE & 2) string = replace(string, rtrim, '$1');
8979
+ var string = toString$4(requireObjectCoercible$2($this));
8980
+ if (TYPE & 1) string = replace$2(string, ltrim, '');
8981
+ if (TYPE & 2) string = replace$2(string, rtrim, '$1');
8971
8982
  return string;
8972
8983
  };
8973
8984
  };
@@ -8975,53 +8986,53 @@ var createMethod = function (TYPE) {
8975
8986
  var stringTrim = {
8976
8987
  // `String.prototype.{ trimLeft, trimStart }` methods
8977
8988
  // https://tc39.es/ecma262/#sec-string.prototype.trimstart
8978
- start: createMethod(1),
8989
+ start: createMethod$2(1),
8979
8990
  // `String.prototype.{ trimRight, trimEnd }` methods
8980
8991
  // https://tc39.es/ecma262/#sec-string.prototype.trimend
8981
- end: createMethod(2),
8992
+ end: createMethod$2(2),
8982
8993
  // `String.prototype.trim` method
8983
8994
  // https://tc39.es/ecma262/#sec-string.prototype.trim
8984
- trim: createMethod(3)
8995
+ trim: createMethod$2(3)
8985
8996
  };
8986
8997
 
8987
- var global$1 = global$d;
8988
- var fails$1 = fails$d;
8989
- var uncurryThis$1 = functionUncurryThis;
8990
- var toString = toString$2;
8998
+ var global$5 = global$h;
8999
+ var fails$7 = fails$j;
9000
+ var uncurryThis$7 = functionUncurryThis;
9001
+ var toString$3 = toString$5;
8991
9002
  var trim = stringTrim.trim;
8992
9003
  var whitespaces = whitespaces$2;
8993
9004
 
8994
- var $parseInt$1 = global$1.parseInt;
8995
- var Symbol$1 = global$1.Symbol;
9005
+ var $parseInt$1 = global$5.parseInt;
9006
+ var Symbol$1 = global$5.Symbol;
8996
9007
  var ITERATOR = Symbol$1 && Symbol$1.iterator;
8997
9008
  var hex = /^[+-]?0x/i;
8998
- var exec = uncurryThis$1(hex.exec);
8999
- var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
9009
+ var exec$1 = uncurryThis$7(hex.exec);
9010
+ var FORCED$1 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
9000
9011
  // MS Edge 18- broken with boxed symbols
9001
- || (ITERATOR && !fails$1(function () { $parseInt$1(Object(ITERATOR)); }));
9012
+ || (ITERATOR && !fails$7(function () { $parseInt$1(Object(ITERATOR)); }));
9002
9013
 
9003
9014
  // `parseInt` method
9004
9015
  // https://tc39.es/ecma262/#sec-parseint-string-radix
9005
- var numberParseInt = FORCED ? function parseInt(string, radix) {
9006
- var S = trim(toString(string));
9007
- return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
9016
+ var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
9017
+ var S = trim(toString$3(string));
9018
+ return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
9008
9019
  } : $parseInt$1;
9009
9020
 
9010
- var $$1 = _export;
9021
+ var $$3 = _export;
9011
9022
  var $parseInt = numberParseInt;
9012
9023
 
9013
9024
  // `parseInt` method
9014
9025
  // https://tc39.es/ecma262/#sec-parseint-string-radix
9015
- $$1({ global: true, forced: parseInt !== $parseInt }, {
9026
+ $$3({ global: true, forced: parseInt !== $parseInt }, {
9016
9027
  parseInt: $parseInt
9017
9028
  });
9018
9029
 
9019
- var anObject$1 = anObject$7;
9030
+ var anObject$3 = anObject$9;
9020
9031
 
9021
9032
  // `RegExp.prototype.flags` getter implementation
9022
9033
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
9023
- var regexpFlags = function () {
9024
- var that = anObject$1(this);
9034
+ var regexpFlags$1 = function () {
9035
+ var that = anObject$3(this);
9025
9036
  var result = '';
9026
9037
  if (that.hasIndices) result += 'd';
9027
9038
  if (that.global) result += 'g';
@@ -9034,66 +9045,66 @@ var regexpFlags = function () {
9034
9045
  return result;
9035
9046
  };
9036
9047
 
9037
- var call = functionCall;
9048
+ var call$4 = functionCall;
9038
9049
  var hasOwn = hasOwnProperty_1;
9039
9050
  var isPrototypeOf = objectIsPrototypeOf;
9040
- var regExpFlags = regexpFlags;
9051
+ var regExpFlags = regexpFlags$1;
9041
9052
 
9042
- var RegExpPrototype$1 = RegExp.prototype;
9053
+ var RegExpPrototype$2 = RegExp.prototype;
9043
9054
 
9044
9055
  var regexpGetFlags = function (R) {
9045
9056
  var flags = R.flags;
9046
- return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
9047
- ? call(regExpFlags, R) : flags;
9057
+ return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$2, R)
9058
+ ? call$4(regExpFlags, R) : flags;
9048
9059
  };
9049
9060
 
9050
9061
  var PROPER_FUNCTION_NAME = functionName.PROPER;
9051
- var defineBuiltIn = defineBuiltIn$4;
9052
- var anObject = anObject$7;
9053
- var $toString = toString$2;
9054
- var fails = fails$d;
9062
+ var defineBuiltIn$1 = defineBuiltIn$5;
9063
+ var anObject$2 = anObject$9;
9064
+ var $toString = toString$5;
9065
+ var fails$6 = fails$j;
9055
9066
  var getRegExpFlags = regexpGetFlags;
9056
9067
 
9057
9068
  var TO_STRING = 'toString';
9058
- var RegExpPrototype = RegExp.prototype;
9059
- var nativeToString = RegExpPrototype[TO_STRING];
9069
+ var RegExpPrototype$1 = RegExp.prototype;
9070
+ var nativeToString = RegExpPrototype$1[TO_STRING];
9060
9071
 
9061
- var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
9072
+ var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
9062
9073
  // FF44- RegExp#toString has a wrong name
9063
9074
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
9064
9075
 
9065
9076
  // `RegExp.prototype.toString` method
9066
9077
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
9067
9078
  if (NOT_GENERIC || INCORRECT_NAME) {
9068
- defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
9069
- var R = anObject(this);
9079
+ defineBuiltIn$1(RegExp.prototype, TO_STRING, function toString() {
9080
+ var R = anObject$2(this);
9070
9081
  var pattern = $toString(R.source);
9071
9082
  var flags = $toString(getRegExpFlags(R));
9072
9083
  return '/' + pattern + '/' + flags;
9073
9084
  }, { unsafe: true });
9074
9085
  }
9075
9086
 
9076
- var classof = classofRaw$1;
9087
+ var classof$2 = classofRaw$2;
9077
9088
 
9078
9089
  // `IsArray` abstract operation
9079
9090
  // https://tc39.es/ecma262/#sec-isarray
9080
9091
  // eslint-disable-next-line es/no-array-isarray -- safe
9081
9092
  var isArray$1 = Array.isArray || function isArray(argument) {
9082
- return classof(argument) === 'Array';
9093
+ return classof$2(argument) === 'Array';
9083
9094
  };
9084
9095
 
9085
- var $ = _export;
9086
- var uncurryThis = functionUncurryThis;
9096
+ var $$2 = _export;
9097
+ var uncurryThis$6 = functionUncurryThis;
9087
9098
  var isArray = isArray$1;
9088
9099
 
9089
- var nativeReverse = uncurryThis([].reverse);
9100
+ var nativeReverse = uncurryThis$6([].reverse);
9090
9101
  var test = [1, 2];
9091
9102
 
9092
9103
  // `Array.prototype.reverse` method
9093
9104
  // https://tc39.es/ecma262/#sec-array.prototype.reverse
9094
9105
  // fix for Safari 12.0 bug
9095
9106
  // https://bugs.webkit.org/show_bug.cgi?id=188794
9096
- $({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
9107
+ $$2({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
9097
9108
  reverse: function reverse() {
9098
9109
  // eslint-disable-next-line no-self-assign -- dirty hack
9099
9110
  if (isArray(this)) this.length = this.length;
@@ -39883,4 +39894,1843 @@ const intersectionFeatureBE = {
39883
39894
  })
39884
39895
  };
39885
39896
 
39886
- export { CanvasComponent, DRAWMODE, EDITMODE, Legend, LegendLayout, MapDrawContainer, addFeatureProperties, checkHoverFeatures, createInterSections, defaultStyleProperties, distance, emptyGeoJSON, featureBox, featureMultiPoint, featurePoint, featurePolygon, getDrawFunctionFromStore, getFeatureCollection, getGeoJson, intersectGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, lineString, registerDrawFunction, simpleBoxGeoJSON, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON };
39897
+ var fails$5 = fails$j;
39898
+ var global$4 = global$h;
39899
+
39900
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
39901
+ var $RegExp$2 = global$4.RegExp;
39902
+
39903
+ var UNSUPPORTED_Y$1 = fails$5(function () {
39904
+ var re = $RegExp$2('a', 'y');
39905
+ re.lastIndex = 2;
39906
+ return re.exec('abcd') !== null;
39907
+ });
39908
+
39909
+ // UC Browser bug
39910
+ // https://github.com/zloirock/core-js/issues/1008
39911
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$5(function () {
39912
+ return !$RegExp$2('a', 'y').sticky;
39913
+ });
39914
+
39915
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
39916
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
39917
+ var re = $RegExp$2('^r', 'gy');
39918
+ re.lastIndex = 2;
39919
+ return re.exec('str') !== null;
39920
+ });
39921
+
39922
+ var regexpStickyHelpers = {
39923
+ BROKEN_CARET: BROKEN_CARET,
39924
+ MISSED_STICKY: MISSED_STICKY,
39925
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
39926
+ };
39927
+
39928
+ var fails$4 = fails$j;
39929
+ var global$3 = global$h;
39930
+
39931
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
39932
+ var $RegExp$1 = global$3.RegExp;
39933
+
39934
+ var regexpUnsupportedDotAll = fails$4(function () {
39935
+ var re = $RegExp$1('.', 's');
39936
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
39937
+ });
39938
+
39939
+ var fails$3 = fails$j;
39940
+ var global$2 = global$h;
39941
+
39942
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
39943
+ var $RegExp = global$2.RegExp;
39944
+
39945
+ var regexpUnsupportedNcg = fails$3(function () {
39946
+ var re = $RegExp('(?<a>b)', 'g');
39947
+ return re.exec('b').groups.a !== 'b' ||
39948
+ 'b'.replace(re, '$<a>c') !== 'bc';
39949
+ });
39950
+
39951
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
39952
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
39953
+ var call$3 = functionCall;
39954
+ var uncurryThis$5 = functionUncurryThis;
39955
+ var toString$2 = toString$5;
39956
+ var regexpFlags = regexpFlags$1;
39957
+ var stickyHelpers = regexpStickyHelpers;
39958
+ var shared = shared$4.exports;
39959
+ var create = objectCreate;
39960
+ var getInternalState = internalState.get;
39961
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
39962
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
39963
+
39964
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
39965
+ var nativeExec = RegExp.prototype.exec;
39966
+ var patchedExec = nativeExec;
39967
+ var charAt$3 = uncurryThis$5(''.charAt);
39968
+ var indexOf = uncurryThis$5(''.indexOf);
39969
+ var replace$1 = uncurryThis$5(''.replace);
39970
+ var stringSlice$3 = uncurryThis$5(''.slice);
39971
+
39972
+ var UPDATES_LAST_INDEX_WRONG = (function () {
39973
+ var re1 = /a/;
39974
+ var re2 = /b*/g;
39975
+ call$3(nativeExec, re1, 'a');
39976
+ call$3(nativeExec, re2, 'a');
39977
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
39978
+ })();
39979
+
39980
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
39981
+
39982
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
39983
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
39984
+
39985
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
39986
+
39987
+ if (PATCH) {
39988
+ patchedExec = function exec(string) {
39989
+ var re = this;
39990
+ var state = getInternalState(re);
39991
+ var str = toString$2(string);
39992
+ var raw = state.raw;
39993
+ var result, reCopy, lastIndex, match, i, object, group;
39994
+
39995
+ if (raw) {
39996
+ raw.lastIndex = re.lastIndex;
39997
+ result = call$3(patchedExec, raw, str);
39998
+ re.lastIndex = raw.lastIndex;
39999
+ return result;
40000
+ }
40001
+
40002
+ var groups = state.groups;
40003
+ var sticky = UNSUPPORTED_Y && re.sticky;
40004
+ var flags = call$3(regexpFlags, re);
40005
+ var source = re.source;
40006
+ var charsAdded = 0;
40007
+ var strCopy = str;
40008
+
40009
+ if (sticky) {
40010
+ flags = replace$1(flags, 'y', '');
40011
+ if (indexOf(flags, 'g') === -1) {
40012
+ flags += 'g';
40013
+ }
40014
+
40015
+ strCopy = stringSlice$3(str, re.lastIndex);
40016
+ // Support anchored sticky behavior.
40017
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
40018
+ source = '(?: ' + source + ')';
40019
+ strCopy = ' ' + strCopy;
40020
+ charsAdded++;
40021
+ }
40022
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
40023
+ // simulate the 'y' flag.
40024
+ reCopy = new RegExp('^(?:' + source + ')', flags);
40025
+ }
40026
+
40027
+ if (NPCG_INCLUDED) {
40028
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
40029
+ }
40030
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
40031
+
40032
+ match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
40033
+
40034
+ if (sticky) {
40035
+ if (match) {
40036
+ match.input = stringSlice$3(match.input, charsAdded);
40037
+ match[0] = stringSlice$3(match[0], charsAdded);
40038
+ match.index = re.lastIndex;
40039
+ re.lastIndex += match[0].length;
40040
+ } else re.lastIndex = 0;
40041
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
40042
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
40043
+ }
40044
+ if (NPCG_INCLUDED && match && match.length > 1) {
40045
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
40046
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
40047
+ call$3(nativeReplace, match[0], reCopy, function () {
40048
+ for (i = 1; i < arguments.length - 2; i++) {
40049
+ if (arguments[i] === undefined) match[i] = undefined;
40050
+ }
40051
+ });
40052
+ }
40053
+
40054
+ if (match && groups) {
40055
+ match.groups = object = create(null);
40056
+ for (i = 0; i < groups.length; i++) {
40057
+ group = groups[i];
40058
+ object[group[0]] = match[group[1]];
40059
+ }
40060
+ }
40061
+
40062
+ return match;
40063
+ };
40064
+ }
40065
+
40066
+ var regexpExec$2 = patchedExec;
40067
+
40068
+ var $$1 = _export;
40069
+ var exec = regexpExec$2;
40070
+
40071
+ // `RegExp.prototype.exec` method
40072
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
40073
+ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
40074
+ exec: exec
40075
+ });
40076
+
40077
+ var NATIVE_BIND = functionBindNative;
40078
+
40079
+ var FunctionPrototype = Function.prototype;
40080
+ var apply$1 = FunctionPrototype.apply;
40081
+ var call$2 = FunctionPrototype.call;
40082
+
40083
+ // eslint-disable-next-line es/no-reflect -- safe
40084
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
40085
+ return call$2.apply(apply$1, arguments);
40086
+ });
40087
+
40088
+ var classofRaw = classofRaw$2;
40089
+ var uncurryThis$4 = functionUncurryThis;
40090
+
40091
+ var functionUncurryThisClause = function (fn) {
40092
+ // Nashorn bug:
40093
+ // https://github.com/zloirock/core-js/issues/1128
40094
+ // https://github.com/zloirock/core-js/issues/1130
40095
+ if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
40096
+ };
40097
+
40098
+ // TODO: Remove from `core-js@4` since it's moved to entry points
40099
+
40100
+ var uncurryThis$3 = functionUncurryThisClause;
40101
+ var defineBuiltIn = defineBuiltIn$5;
40102
+ var regexpExec$1 = regexpExec$2;
40103
+ var fails$2 = fails$j;
40104
+ var wellKnownSymbol$1 = wellKnownSymbol$a;
40105
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
40106
+
40107
+ var SPECIES = wellKnownSymbol$1('species');
40108
+ var RegExpPrototype = RegExp.prototype;
40109
+
40110
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
40111
+ var SYMBOL = wellKnownSymbol$1(KEY);
40112
+
40113
+ var DELEGATES_TO_SYMBOL = !fails$2(function () {
40114
+ // String methods call symbol-named RegEp methods
40115
+ var O = {};
40116
+ O[SYMBOL] = function () { return 7; };
40117
+ return ''[KEY](O) !== 7;
40118
+ });
40119
+
40120
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$2(function () {
40121
+ // Symbol-named RegExp methods call .exec
40122
+ var execCalled = false;
40123
+ var re = /a/;
40124
+
40125
+ if (KEY === 'split') {
40126
+ // We can't use real regex here since it causes deoptimization
40127
+ // and serious performance degradation in V8
40128
+ // https://github.com/zloirock/core-js/issues/306
40129
+ re = {};
40130
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
40131
+ // a new one. We need to return the patched regex when creating the new one.
40132
+ re.constructor = {};
40133
+ re.constructor[SPECIES] = function () { return re; };
40134
+ re.flags = '';
40135
+ re[SYMBOL] = /./[SYMBOL];
40136
+ }
40137
+
40138
+ re.exec = function () { execCalled = true; return null; };
40139
+
40140
+ re[SYMBOL]('');
40141
+ return !execCalled;
40142
+ });
40143
+
40144
+ if (
40145
+ !DELEGATES_TO_SYMBOL ||
40146
+ !DELEGATES_TO_EXEC ||
40147
+ FORCED
40148
+ ) {
40149
+ var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
40150
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
40151
+ var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
40152
+ var $exec = regexp.exec;
40153
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
40154
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
40155
+ // The native String method already delegates to @@method (this
40156
+ // polyfilled function), leasing to infinite recursion.
40157
+ // We avoid it by directly calling the native @@method method.
40158
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
40159
+ }
40160
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
40161
+ }
40162
+ return { done: false };
40163
+ });
40164
+
40165
+ defineBuiltIn(String.prototype, KEY, methods[0]);
40166
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
40167
+ }
40168
+
40169
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
40170
+ };
40171
+
40172
+ var uncurryThis$2 = functionUncurryThis;
40173
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
40174
+ var toString$1 = toString$5;
40175
+ var requireObjectCoercible$1 = requireObjectCoercible$5;
40176
+
40177
+ var charAt$2 = uncurryThis$2(''.charAt);
40178
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
40179
+ var stringSlice$2 = uncurryThis$2(''.slice);
40180
+
40181
+ var createMethod$1 = function (CONVERT_TO_STRING) {
40182
+ return function ($this, pos) {
40183
+ var S = toString$1(requireObjectCoercible$1($this));
40184
+ var position = toIntegerOrInfinity$1(pos);
40185
+ var size = S.length;
40186
+ var first, second;
40187
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
40188
+ first = charCodeAt(S, position);
40189
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
40190
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
40191
+ ? CONVERT_TO_STRING
40192
+ ? charAt$2(S, position)
40193
+ : first
40194
+ : CONVERT_TO_STRING
40195
+ ? stringSlice$2(S, position, position + 2)
40196
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
40197
+ };
40198
+ };
40199
+
40200
+ var stringMultibyte = {
40201
+ // `String.prototype.codePointAt` method
40202
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
40203
+ codeAt: createMethod$1(false),
40204
+ // `String.prototype.at` method
40205
+ // https://github.com/mathiasbynens/String.prototype.at
40206
+ charAt: createMethod$1(true)
40207
+ };
40208
+
40209
+ var charAt$1 = stringMultibyte.charAt;
40210
+
40211
+ // `AdvanceStringIndex` abstract operation
40212
+ // https://tc39.es/ecma262/#sec-advancestringindex
40213
+ var advanceStringIndex$1 = function (S, index, unicode) {
40214
+ return index + (unicode ? charAt$1(S, index).length : 1);
40215
+ };
40216
+
40217
+ var uncurryThis$1 = functionUncurryThis;
40218
+ var toObject$1 = toObject$6;
40219
+
40220
+ var floor = Math.floor;
40221
+ var charAt = uncurryThis$1(''.charAt);
40222
+ var replace = uncurryThis$1(''.replace);
40223
+ var stringSlice$1 = uncurryThis$1(''.slice);
40224
+ // eslint-disable-next-line redos/no-vulnerable -- safe
40225
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
40226
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
40227
+
40228
+ // `GetSubstitution` abstract operation
40229
+ // https://tc39.es/ecma262/#sec-getsubstitution
40230
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
40231
+ var tailPos = position + matched.length;
40232
+ var m = captures.length;
40233
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
40234
+ if (namedCaptures !== undefined) {
40235
+ namedCaptures = toObject$1(namedCaptures);
40236
+ symbols = SUBSTITUTION_SYMBOLS;
40237
+ }
40238
+ return replace(replacement, symbols, function (match, ch) {
40239
+ var capture;
40240
+ switch (charAt(ch, 0)) {
40241
+ case '$': return '$';
40242
+ case '&': return matched;
40243
+ case '`': return stringSlice$1(str, 0, position);
40244
+ case "'": return stringSlice$1(str, tailPos);
40245
+ case '<':
40246
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
40247
+ break;
40248
+ default: // \d\d?
40249
+ var n = +ch;
40250
+ if (n === 0) return match;
40251
+ if (n > m) {
40252
+ var f = floor(n / 10);
40253
+ if (f === 0) return match;
40254
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
40255
+ return match;
40256
+ }
40257
+ capture = captures[n - 1];
40258
+ }
40259
+ return capture === undefined ? '' : capture;
40260
+ });
40261
+ };
40262
+
40263
+ var call$1 = functionCall;
40264
+ var anObject$1 = anObject$9;
40265
+ var isCallable$1 = isCallable$h;
40266
+ var classof$1 = classofRaw$2;
40267
+ var regexpExec = regexpExec$2;
40268
+
40269
+ var $TypeError$1 = TypeError;
40270
+
40271
+ // `RegExpExec` abstract operation
40272
+ // https://tc39.es/ecma262/#sec-regexpexec
40273
+ var regexpExecAbstract = function (R, S) {
40274
+ var exec = R.exec;
40275
+ if (isCallable$1(exec)) {
40276
+ var result = call$1(exec, R, S);
40277
+ if (result !== null) anObject$1(result);
40278
+ return result;
40279
+ }
40280
+ if (classof$1(R) === 'RegExp') return call$1(regexpExec, R, S);
40281
+ throw $TypeError$1('RegExp#exec called on incompatible receiver');
40282
+ };
40283
+
40284
+ var apply = functionApply;
40285
+ var call = functionCall;
40286
+ var uncurryThis = functionUncurryThis;
40287
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
40288
+ var fails$1 = fails$j;
40289
+ var anObject = anObject$9;
40290
+ var isCallable = isCallable$h;
40291
+ var isNullOrUndefined = isNullOrUndefined$3;
40292
+ var toIntegerOrInfinity = toIntegerOrInfinity$4;
40293
+ var toLength = toLength$2;
40294
+ var toString = toString$5;
40295
+ var requireObjectCoercible = requireObjectCoercible$5;
40296
+ var advanceStringIndex = advanceStringIndex$1;
40297
+ var getMethod = getMethod$2;
40298
+ var getSubstitution = getSubstitution$1;
40299
+ var regExpExec = regexpExecAbstract;
40300
+ var wellKnownSymbol = wellKnownSymbol$a;
40301
+
40302
+ var REPLACE = wellKnownSymbol('replace');
40303
+ var max = Math.max;
40304
+ var min = Math.min;
40305
+ var concat = uncurryThis([].concat);
40306
+ var push = uncurryThis([].push);
40307
+ var stringIndexOf = uncurryThis(''.indexOf);
40308
+ var stringSlice = uncurryThis(''.slice);
40309
+
40310
+ var maybeToString = function (it) {
40311
+ return it === undefined ? it : String(it);
40312
+ };
40313
+
40314
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
40315
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
40316
+ var REPLACE_KEEPS_$0 = (function () {
40317
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
40318
+ return 'a'.replace(/./, '$0') === '$0';
40319
+ })();
40320
+
40321
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
40322
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
40323
+ if (/./[REPLACE]) {
40324
+ return /./[REPLACE]('a', '$0') === '';
40325
+ }
40326
+ return false;
40327
+ })();
40328
+
40329
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$1(function () {
40330
+ var re = /./;
40331
+ re.exec = function () {
40332
+ var result = [];
40333
+ result.groups = { a: '7' };
40334
+ return result;
40335
+ };
40336
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
40337
+ return ''.replace(re, '$<a>') !== '7';
40338
+ });
40339
+
40340
+ // @@replace logic
40341
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
40342
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
40343
+
40344
+ return [
40345
+ // `String.prototype.replace` method
40346
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
40347
+ function replace(searchValue, replaceValue) {
40348
+ var O = requireObjectCoercible(this);
40349
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
40350
+ return replacer
40351
+ ? call(replacer, searchValue, O, replaceValue)
40352
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
40353
+ },
40354
+ // `RegExp.prototype[@@replace]` method
40355
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
40356
+ function (string, replaceValue) {
40357
+ var rx = anObject(this);
40358
+ var S = toString(string);
40359
+
40360
+ if (
40361
+ typeof replaceValue == 'string' &&
40362
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
40363
+ stringIndexOf(replaceValue, '$<') === -1
40364
+ ) {
40365
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
40366
+ if (res.done) return res.value;
40367
+ }
40368
+
40369
+ var functionalReplace = isCallable(replaceValue);
40370
+ if (!functionalReplace) replaceValue = toString(replaceValue);
40371
+
40372
+ var global = rx.global;
40373
+ var fullUnicode;
40374
+ if (global) {
40375
+ fullUnicode = rx.unicode;
40376
+ rx.lastIndex = 0;
40377
+ }
40378
+
40379
+ var results = [];
40380
+ var result;
40381
+ while (true) {
40382
+ result = regExpExec(rx, S);
40383
+ if (result === null) break;
40384
+
40385
+ push(results, result);
40386
+ if (!global) break;
40387
+
40388
+ var matchStr = toString(result[0]);
40389
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
40390
+ }
40391
+
40392
+ var accumulatedResult = '';
40393
+ var nextSourcePosition = 0;
40394
+ for (var i = 0; i < results.length; i++) {
40395
+ result = results[i];
40396
+
40397
+ var matched = toString(result[0]);
40398
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
40399
+ var captures = [];
40400
+ var replacement;
40401
+ // NOTE: This is equivalent to
40402
+ // captures = result.slice(1).map(maybeToString)
40403
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
40404
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
40405
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
40406
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
40407
+ var namedCaptures = result.groups;
40408
+ if (functionalReplace) {
40409
+ var replacerArgs = concat([matched], captures, position, S);
40410
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
40411
+ replacement = toString(apply(replaceValue, undefined, replacerArgs));
40412
+ } else {
40413
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
40414
+ }
40415
+ if (position >= nextSourcePosition) {
40416
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
40417
+ nextSourcePosition = position + matched.length;
40418
+ }
40419
+ }
40420
+
40421
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
40422
+ }
40423
+ ];
40424
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
40425
+
40426
+ const ReactMapViewLayer = props => {
40427
+ const {
40428
+ id
40429
+ } = props;
40430
+ return jsxs("div", Object.assign({
40431
+ style: {
40432
+ width: '100%',
40433
+ padding: '2px',
40434
+ margin: 0,
40435
+ wordWrap: 'break-word',
40436
+ border: '1px solid rgba(0, 0, 0, 0.5)',
40437
+ lineHeight: '14px',
40438
+ fontSize: '10px',
40439
+ background: 'rgba(255, 255, 255, 0.5)',
40440
+ display: 'none'
40441
+ }
40442
+ }, {
40443
+ children: [jsx("div", {
40444
+ children: id
40445
+ }), jsx("div", {
40446
+ // eslint-disable-next-line react/no-danger
40447
+ dangerouslySetInnerHTML: {
40448
+ __html: JSON.stringify(props, null, '--').replace(/\n/g, '<br/>')
40449
+ }
40450
+ })]
40451
+ }));
40452
+ };
40453
+
40454
+ /* eslint-disable no-undefined,no-param-reassign,no-shadow */
40455
+
40456
+ /**
40457
+ * Throttle execution of a function. Especially useful for rate limiting
40458
+ * execution of handlers on events like resize and scroll.
40459
+ *
40460
+ * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
40461
+ * are most useful.
40462
+ * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
40463
+ * as-is, to `callback` when the throttled-function is executed.
40464
+ * @param {object} [options] - An object to configure options.
40465
+ * @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
40466
+ * while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
40467
+ * one final time after the last throttled-function call. (After the throttled-function has not been called for
40468
+ * `delay` milliseconds, the internal counter is reset).
40469
+ * @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
40470
+ * immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
40471
+ * callback will never executed if both noLeading = true and noTrailing = true.
40472
+ * @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
40473
+ * false (at end), schedule `callback` to execute after `delay` ms.
40474
+ *
40475
+ * @returns {Function} A new, throttled, function.
40476
+ */
40477
+ function throttle (delay, callback, options) {
40478
+ var _ref = options || {},
40479
+ _ref$noTrailing = _ref.noTrailing,
40480
+ noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
40481
+ _ref$noLeading = _ref.noLeading,
40482
+ noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
40483
+ _ref$debounceMode = _ref.debounceMode,
40484
+ debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
40485
+ /*
40486
+ * After wrapper has stopped being called, this timeout ensures that
40487
+ * `callback` is executed at the proper times in `throttle` and `end`
40488
+ * debounce modes.
40489
+ */
40490
+
40491
+
40492
+ var timeoutID;
40493
+ var cancelled = false; // Keep track of the last time `callback` was executed.
40494
+
40495
+ var lastExec = 0; // Function to clear existing timeout
40496
+
40497
+ function clearExistingTimeout() {
40498
+ if (timeoutID) {
40499
+ clearTimeout(timeoutID);
40500
+ }
40501
+ } // Function to cancel next exec
40502
+
40503
+
40504
+ function cancel(options) {
40505
+ var _ref2 = options || {},
40506
+ _ref2$upcomingOnly = _ref2.upcomingOnly,
40507
+ upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
40508
+
40509
+ clearExistingTimeout();
40510
+ cancelled = !upcomingOnly;
40511
+ }
40512
+ /*
40513
+ * The `wrapper` function encapsulates all of the throttling / debouncing
40514
+ * functionality and when executed will limit the rate at which `callback`
40515
+ * is executed.
40516
+ */
40517
+
40518
+
40519
+ function wrapper() {
40520
+ for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
40521
+ arguments_[_key] = arguments[_key];
40522
+ }
40523
+
40524
+ var self = this;
40525
+ var elapsed = Date.now() - lastExec;
40526
+
40527
+ if (cancelled) {
40528
+ return;
40529
+ } // Execute `callback` and update the `lastExec` timestamp.
40530
+
40531
+
40532
+ function exec() {
40533
+ lastExec = Date.now();
40534
+ callback.apply(self, arguments_);
40535
+ }
40536
+ /*
40537
+ * If `debounceMode` is true (at begin) this is used to clear the flag
40538
+ * to allow future `callback` executions.
40539
+ */
40540
+
40541
+
40542
+ function clear() {
40543
+ timeoutID = undefined;
40544
+ }
40545
+
40546
+ if (!noLeading && debounceMode && !timeoutID) {
40547
+ /*
40548
+ * Since `wrapper` is being called for the first time and
40549
+ * `debounceMode` is true (at begin), execute `callback`
40550
+ * and noLeading != true.
40551
+ */
40552
+ exec();
40553
+ }
40554
+
40555
+ clearExistingTimeout();
40556
+
40557
+ if (debounceMode === undefined && elapsed > delay) {
40558
+ if (noLeading) {
40559
+ /*
40560
+ * In throttle mode with noLeading, if `delay` time has
40561
+ * been exceeded, update `lastExec` and schedule `callback`
40562
+ * to execute after `delay` ms.
40563
+ */
40564
+ lastExec = Date.now();
40565
+
40566
+ if (!noTrailing) {
40567
+ timeoutID = setTimeout(debounceMode ? clear : exec, delay);
40568
+ }
40569
+ } else {
40570
+ /*
40571
+ * In throttle mode without noLeading, if `delay` time has been exceeded, execute
40572
+ * `callback`.
40573
+ */
40574
+ exec();
40575
+ }
40576
+ } else if (noTrailing !== true) {
40577
+ /*
40578
+ * In trailing throttle mode, since `delay` time has not been
40579
+ * exceeded, schedule `callback` to execute `delay` ms after most
40580
+ * recent execution.
40581
+ *
40582
+ * If `debounceMode` is true (at begin), schedule `clear` to execute
40583
+ * after `delay` ms.
40584
+ *
40585
+ * If `debounceMode` is false (at end), schedule `callback` to
40586
+ * execute after `delay` ms.
40587
+ */
40588
+ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
40589
+ }
40590
+ }
40591
+
40592
+ wrapper.cancel = cancel; // Return the wrapper function.
40593
+
40594
+ return wrapper;
40595
+ }
40596
+
40597
+ /* eslint-disable no-undefined */
40598
+ /**
40599
+ * Debounce execution of a function. Debouncing, unlike throttling,
40600
+ * guarantees that a function is only executed a single time, either at the
40601
+ * very beginning of a series of calls, or at the very end.
40602
+ *
40603
+ * @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
40604
+ * @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
40605
+ * to `callback` when the debounced-function is executed.
40606
+ * @param {object} [options] - An object to configure options.
40607
+ * @param {boolean} [options.atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
40608
+ * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
40609
+ * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
40610
+ *
40611
+ * @returns {Function} A new, debounced function.
40612
+ */
40613
+
40614
+ function debounce (delay, callback, options) {
40615
+ var _ref = options || {},
40616
+ _ref$atBegin = _ref.atBegin,
40617
+ atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;
40618
+
40619
+ return throttle(delay, callback, {
40620
+ debounceMode: atBegin !== false
40621
+ });
40622
+ }
40623
+
40624
+ /* *
40625
+ * Licensed under the Apache License, Version 2.0 (the "License");
40626
+ * you may not use this file except in compliance with the License.
40627
+ * You may obtain a copy of the License at
40628
+ *
40629
+ * http://www.apache.org/licenses/LICENSE-2.0
40630
+ *
40631
+ * Unless required by applicable law or agreed to in writing, software
40632
+ * distributed under the License is distributed on an "AS IS" BASIS,
40633
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40634
+ * See the License for the specific language governing permissions and
40635
+ * limitations under the License.
40636
+ *
40637
+ * Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
40638
+ * Copyright 2020 - Finnish Meteorological Institute (FMI)
40639
+ * */
40640
+ const setLayerInfo = (wmLayer, mapId, onUpdateLayerInformation) => {
40641
+ const origin = 'ReactMapViewParseLayer';
40642
+ const map = webmapUtils.getWMJSMapById(mapId);
40643
+ /* Update list of layers for service */
40644
+ const updateObject = {
40645
+ origin,
40646
+ layerStyle: {
40647
+ origin,
40648
+ layerId: wmLayer.ReactWMJSLayerId,
40649
+ style: wmLayer.currentStyle
40650
+ },
40651
+ mapDimensions: {
40652
+ mapId,
40653
+ origin,
40654
+ dimensions: map && map.mapdimensions.map(mapdim => {
40655
+ return {
40656
+ units: mapdim.units,
40657
+ currentValue: mapdim.currentValue,
40658
+ name: mapdim.name
40659
+ };
40660
+ }) || []
40661
+ },
40662
+ layerDimensions: {
40663
+ origin,
40664
+ layerId: wmLayer.id,
40665
+ dimensions: wmLayer.dimensions.map(dim => {
40666
+ const {
40667
+ name,
40668
+ units,
40669
+ synced
40670
+ } = dim;
40671
+ return {
40672
+ name,
40673
+ units,
40674
+ currentValue: dim.getValue(),
40675
+ minValue: dim.getFirstValue(),
40676
+ maxValue: dim.getLastValue(),
40677
+ timeInterval: dim.getDimInterval(),
40678
+ values: dim.getValues(),
40679
+ synced
40680
+ };
40681
+ })
40682
+ }
40683
+ };
40684
+ onUpdateLayerInformation === null || onUpdateLayerInformation === void 0 ? void 0 : onUpdateLayerInformation(updateObject);
40685
+ };
40686
+
40687
+ var aCallable = aCallable$3;
40688
+ var toObject = toObject$6;
40689
+ var IndexedObject = indexedObject;
40690
+ var lengthOfArrayLike = lengthOfArrayLike$2;
40691
+
40692
+ var $TypeError = TypeError;
40693
+
40694
+ // `Array.prototype.{ reduce, reduceRight }` methods implementation
40695
+ var createMethod = function (IS_RIGHT) {
40696
+ return function (that, callbackfn, argumentsLength, memo) {
40697
+ aCallable(callbackfn);
40698
+ var O = toObject(that);
40699
+ var self = IndexedObject(O);
40700
+ var length = lengthOfArrayLike(O);
40701
+ var index = IS_RIGHT ? length - 1 : 0;
40702
+ var i = IS_RIGHT ? -1 : 1;
40703
+ if (argumentsLength < 2) while (true) {
40704
+ if (index in self) {
40705
+ memo = self[index];
40706
+ index += i;
40707
+ break;
40708
+ }
40709
+ index += i;
40710
+ if (IS_RIGHT ? index < 0 : length <= index) {
40711
+ throw $TypeError('Reduce of empty array with no initial value');
40712
+ }
40713
+ }
40714
+ for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
40715
+ memo = callbackfn(memo, self[index], index, O);
40716
+ }
40717
+ return memo;
40718
+ };
40719
+ };
40720
+
40721
+ var arrayReduce = {
40722
+ // `Array.prototype.reduce` method
40723
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
40724
+ left: createMethod(false),
40725
+ // `Array.prototype.reduceRight` method
40726
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
40727
+ right: createMethod(true)
40728
+ };
40729
+
40730
+ var fails = fails$j;
40731
+
40732
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
40733
+ var method = [][METHOD_NAME];
40734
+ return !!method && fails(function () {
40735
+ // eslint-disable-next-line no-useless-call -- required for testing
40736
+ method.call(null, argument || function () { return 1; }, 1);
40737
+ });
40738
+ };
40739
+
40740
+ var global$1 = global$h;
40741
+ var classof = classofRaw$2;
40742
+
40743
+ var engineIsNode = classof(global$1.process) === 'process';
40744
+
40745
+ var $ = _export;
40746
+ var $reduce = arrayReduce.left;
40747
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
40748
+ var CHROME_VERSION = engineV8Version;
40749
+ var IS_NODE = engineIsNode;
40750
+
40751
+ // Chrome 80-82 has a critical bug
40752
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
40753
+ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
40754
+ var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
40755
+
40756
+ // `Array.prototype.reduce` method
40757
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
40758
+ $({ target: 'Array', proto: true, forced: FORCED }, {
40759
+ reduce: function reduce(callbackfn /* , initialValue */) {
40760
+ var length = arguments.length;
40761
+ return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
40762
+ }
40763
+ });
40764
+
40765
+ function _typeof(o) {
40766
+ "@babel/helpers - typeof";
40767
+
40768
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
40769
+ return typeof o;
40770
+ } : function (o) {
40771
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
40772
+ }, _typeof(o);
40773
+ }
40774
+
40775
+ function requiredArgs(required, args) {
40776
+ if (args.length < required) {
40777
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
40778
+ }
40779
+ }
40780
+
40781
+ /**
40782
+ * @name toDate
40783
+ * @category Common Helpers
40784
+ * @summary Convert the given argument to an instance of Date.
40785
+ *
40786
+ * @description
40787
+ * Convert the given argument to an instance of Date.
40788
+ *
40789
+ * If the argument is an instance of Date, the function returns its clone.
40790
+ *
40791
+ * If the argument is a number, it is treated as a timestamp.
40792
+ *
40793
+ * If the argument is none of the above, the function returns Invalid Date.
40794
+ *
40795
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
40796
+ *
40797
+ * @param {Date|Number} argument - the value to convert
40798
+ * @returns {Date} the parsed date in the local time zone
40799
+ * @throws {TypeError} 1 argument required
40800
+ *
40801
+ * @example
40802
+ * // Clone the date:
40803
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
40804
+ * //=> Tue Feb 11 2014 11:30:30
40805
+ *
40806
+ * @example
40807
+ * // Convert the timestamp to date:
40808
+ * const result = toDate(1392098430000)
40809
+ * //=> Tue Feb 11 2014 11:30:30
40810
+ */
40811
+ function toDate(argument) {
40812
+ requiredArgs(1, arguments);
40813
+ var argStr = Object.prototype.toString.call(argument);
40814
+
40815
+ // Clone the date
40816
+ if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
40817
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
40818
+ return new Date(argument.getTime());
40819
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
40820
+ return new Date(argument);
40821
+ } else {
40822
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
40823
+ // eslint-disable-next-line no-console
40824
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
40825
+ // eslint-disable-next-line no-console
40826
+ console.warn(new Error().stack);
40827
+ }
40828
+ return new Date(NaN);
40829
+ }
40830
+ }
40831
+
40832
+ /**
40833
+ * Days in 1 week.
40834
+ *
40835
+ * @name daysInWeek
40836
+ * @constant
40837
+ * @type {number}
40838
+ * @default
40839
+ */
40840
+
40841
+ /**
40842
+ * Milliseconds in 1 minute
40843
+ *
40844
+ * @name millisecondsInMinute
40845
+ * @constant
40846
+ * @type {number}
40847
+ * @default
40848
+ */
40849
+ var millisecondsInMinute = 60000;
40850
+
40851
+ /**
40852
+ * @name differenceInMilliseconds
40853
+ * @category Millisecond Helpers
40854
+ * @summary Get the number of milliseconds between the given dates.
40855
+ *
40856
+ * @description
40857
+ * Get the number of milliseconds between the given dates.
40858
+ *
40859
+ * @param {Date|Number} dateLeft - the later date
40860
+ * @param {Date|Number} dateRight - the earlier date
40861
+ * @returns {Number} the number of milliseconds
40862
+ * @throws {TypeError} 2 arguments required
40863
+ *
40864
+ * @example
40865
+ * // How many milliseconds are between
40866
+ * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
40867
+ * const result = differenceInMilliseconds(
40868
+ * new Date(2014, 6, 2, 12, 30, 21, 700),
40869
+ * new Date(2014, 6, 2, 12, 30, 20, 600)
40870
+ * )
40871
+ * //=> 1100
40872
+ */
40873
+ function differenceInMilliseconds(dateLeft, dateRight) {
40874
+ requiredArgs(2, arguments);
40875
+ return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
40876
+ }
40877
+
40878
+ var roundingMap = {
40879
+ ceil: Math.ceil,
40880
+ round: Math.round,
40881
+ floor: Math.floor,
40882
+ trunc: function trunc(value) {
40883
+ return value < 0 ? Math.ceil(value) : Math.floor(value);
40884
+ } // Math.trunc is not supported by IE
40885
+ };
40886
+
40887
+ var defaultRoundingMethod = 'trunc';
40888
+ function getRoundingMethod(method) {
40889
+ return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];
40890
+ }
40891
+
40892
+ /**
40893
+ * @name differenceInMinutes
40894
+ * @category Minute Helpers
40895
+ * @summary Get the number of minutes between the given dates.
40896
+ *
40897
+ * @description
40898
+ * Get the signed number of full (rounded towards 0) minutes between the given dates.
40899
+ *
40900
+ * @param {Date|Number} dateLeft - the later date
40901
+ * @param {Date|Number} dateRight - the earlier date
40902
+ * @param {Object} [options] - an object with options.
40903
+ * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)
40904
+ * @returns {Number} the number of minutes
40905
+ * @throws {TypeError} 2 arguments required
40906
+ *
40907
+ * @example
40908
+ * // How many minutes are between 2 July 2014 12:07:59 and 2 July 2014 12:20:00?
40909
+ * const result = differenceInMinutes(
40910
+ * new Date(2014, 6, 2, 12, 20, 0),
40911
+ * new Date(2014, 6, 2, 12, 7, 59)
40912
+ * )
40913
+ * //=> 12
40914
+ *
40915
+ * @example
40916
+ * // How many minutes are between 10:01:59 and 10:00:00
40917
+ * const result = differenceInMinutes(
40918
+ * new Date(2000, 0, 1, 10, 0, 0),
40919
+ * new Date(2000, 0, 1, 10, 1, 59)
40920
+ * )
40921
+ * //=> -1
40922
+ */
40923
+ function differenceInMinutes(dateLeft, dateRight, options) {
40924
+ requiredArgs(2, arguments);
40925
+ var diff = differenceInMilliseconds(dateLeft, dateRight) / millisecondsInMinute;
40926
+ return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);
40927
+ }
40928
+
40929
+ /**
40930
+ * Returns filtered list of props with geoJson
40931
+ * @param children React.ReactNode, layers with geoJson
40932
+ */
40933
+ const getFeatureLayers = children => children && Array.isArray(children) ? children
40934
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
40935
+ // @ts-ignore
40936
+ .reduce((acc, val) => acc.concat(val), []).filter(c => c && c.props && c.props.geojson).map(c => c.props).reverse() : [];
40937
+ /**
40938
+ * Returns true if this is a maplayer and not a baselayer or overlayer
40939
+ * @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
40940
+ */
40941
+ const isAMapLayer = layer => layer.layerType === LayerType.mapLayer;
40942
+ /**
40943
+ * Returns true if this is a geojsonlayer (layer containing geojson field)
40944
+ * @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
40945
+ */
40946
+ const isAGeoJSONLayer = layer => layer.geojson !== undefined;
40947
+ const getWMJSLayerFromReactLayer = (mapId, wmLayers, reactWebMapJSLayer, wmLayerIndex) => {
40948
+ const {
40949
+ id: reactLayerId,
40950
+ name: layerName
40951
+ } = reactWebMapJSLayer.props;
40952
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
40953
+ /* Some safety checks */
40954
+ if (!wmjsMap || !wmLayers || !reactLayerId || !layerName) {
40955
+ return {
40956
+ layer: null,
40957
+ layerArrayMutated: false
40958
+ };
40959
+ }
40960
+ /* Find the wmlayer by its react layer id */
40961
+ const matchingLayerIndex = wmLayers.findIndex(wmLayer => wmLayer.id === reactLayerId);
40962
+ if (matchingLayerIndex === -1) {
40963
+ return {
40964
+ layer: null,
40965
+ layerArrayMutated: false
40966
+ };
40967
+ }
40968
+ /*
40969
+ The layer order in the react children array index is
40970
+ reversed compared to the layer order in the wmLayer array index
40971
+ */
40972
+ const reactLayerIndex = wmLayers.length - 1 - wmLayerIndex;
40973
+ const isMapLayer = isAMapLayer(reactWebMapJSLayer.props);
40974
+ const mapLayerArrayShouldBeMutated = isMapLayer && matchingLayerIndex !== reactLayerIndex;
40975
+ /* It seems that a layer was moved in the layerlist, move it in the wmjsMap too */
40976
+ if (mapLayerArrayShouldBeMutated) {
40977
+ wmjsMap.swapLayers(wmLayers[matchingLayerIndex], wmLayers[reactLayerIndex]);
40978
+ wmjsMap.draw();
40979
+ }
40980
+ return {
40981
+ layer: wmLayers[matchingLayerIndex],
40982
+ layerArrayMutated: mapLayerArrayShouldBeMutated
40983
+ };
40984
+ };
40985
+ function getIsInsideAcceptanceTime(acceptanceTimeInMinutes, mapDimensions, layerDimensions) {
40986
+ var _a, _b;
40987
+ const mapCurrentTime = (_a = mapDimensions === null || mapDimensions === void 0 ? void 0 : mapDimensions.find(dimension => dimension.name === 'time')) === null || _a === void 0 ? void 0 : _a.currentValue;
40988
+ const layerCurrentTime = (_b = layerDimensions === null || layerDimensions === void 0 ? void 0 : layerDimensions.find(dimension => dimension.name === 'time')) === null || _b === void 0 ? void 0 : _b.currentValue;
40989
+ if (acceptanceTimeInMinutes === undefined || !mapCurrentTime || !layerCurrentTime) {
40990
+ return true;
40991
+ }
40992
+ const minutesBetween = differenceInMinutes(new Date(mapCurrentTime), new Date(layerCurrentTime));
40993
+ if (Math.abs(minutesBetween) > acceptanceTimeInMinutes) {
40994
+ return false;
40995
+ }
40996
+ return true;
40997
+ }
40998
+
40999
+ const MapViewLayer = props => {
41000
+ const {
41001
+ id
41002
+ } = props;
41003
+ return jsxs(Box$1, Object.assign({
41004
+ "data-testid": "mapViewLayer",
41005
+ sx: {
41006
+ width: '100%',
41007
+ padding: '2px',
41008
+ margin: 0,
41009
+ wordWrap: 'break-word',
41010
+ border: '1px solid rgba(0, 0, 0, 0.5)',
41011
+ lineHeight: '14px',
41012
+ fontSize: '10px',
41013
+ background: 'rgba(255, 255, 255, 0.5)',
41014
+ display: 'none'
41015
+ }
41016
+ }, {
41017
+ children: [jsx("div", {
41018
+ children: id
41019
+ }), jsx("div", {
41020
+ // eslint-disable-next-line react/no-danger
41021
+ dangerouslySetInnerHTML: {
41022
+ __html: JSON.stringify(props, null, '--').replace(/\n/g, '<br/>')
41023
+ }
41024
+ })]
41025
+ }));
41026
+ };
41027
+
41028
+ const getDisplayText = currentAdagucTime => {
41029
+ const timeFormat = 'eee dd MMM yyyy HH:mm [UTC]';
41030
+ const adagucTime = dateUtils.utc(currentAdagucTime);
41031
+ const adagucTimeFormatted = dateUtils.dateToString(adagucTime, timeFormat);
41032
+ return adagucTimeFormatted;
41033
+ };
41034
+ const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = 'ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION';
41035
+ const ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO = 'ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO';
41036
+ class ReactMapView extends React.Component {
41037
+ constructor(props) {
41038
+ super(props);
41039
+ this.adaguc = {
41040
+ initialized: false,
41041
+ baseLayers: [],
41042
+ oldbbox: undefined,
41043
+ currentWidth: -1,
41044
+ currentHeight: -1,
41045
+ currentMapProps: {
41046
+ children: []
41047
+ }
41048
+ };
41049
+ this.refetchTimer = null;
41050
+ this.onStartRefetchTimer = () => {
41051
+ /*
41052
+ TODO, Maarten Plieger, 2021-09-02, https://gitlab.com/opengeoweb/opengeoweb/-/issues/1159:
41053
+ This causes many issues, we should improve the update strategy.
41054
+ Certain presets have >20 layers. This causes 20 times parsing the GetCapabilities for a minor update of the store.
41055
+
41056
+ */
41057
+ this.clearRefetchTimer();
41058
+ const fetchSpeed = 60000; // 1 minute
41059
+ this.refetchTimer = setInterval(() => {
41060
+ const {
41061
+ mapId
41062
+ } = this.props;
41063
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
41064
+ const layers = wmjsMap.getLayers();
41065
+ layers.forEach(layer => {
41066
+ if (layer.enabled !== false) {
41067
+ this.parseWMJSLayer(layer, true);
41068
+ }
41069
+ });
41070
+ }, fetchSpeed);
41071
+ };
41072
+ this.clearRefetchTimer = () => {
41073
+ if (this.refetchTimer) {
41074
+ clearInterval(this.refetchTimer);
41075
+ }
41076
+ };
41077
+ this.parseWMJSLayer = (wmLayer, forceReload, child) => {
41078
+ const callback = () => {
41079
+ const {
41080
+ onUpdateLayerInformation,
41081
+ mapId
41082
+ } = this.props;
41083
+ try {
41084
+ setLayerInfo(wmLayer, mapId, onUpdateLayerInformation);
41085
+ } catch (e) {
41086
+ /* Provide a hint on what is going wrong */
41087
+ console.error(e);
41088
+ }
41089
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
41090
+ if (child) {
41091
+ if (wmLayer.hasError) {
41092
+ if (child.props.onLayerError) {
41093
+ child.props.onLayerError(wmLayer, new Error(wmLayer.lastError), wmjsMap);
41094
+ }
41095
+ } else if (child.props.onLayerReady) {
41096
+ child.props.onLayerReady(wmLayer, wmjsMap);
41097
+ }
41098
+ }
41099
+ };
41100
+ wmLayer.parseLayer(callback, forceReload, 'ReactMapView parseWMJSLayer');
41101
+ };
41102
+ this.state = {
41103
+ adagucInitialised: false
41104
+ };
41105
+ this.resize = this.resize.bind(this);
41106
+ this.handleWindowResize = this.handleWindowResize.bind(this);
41107
+ this.drawDebounced = debounce(600, this.drawDebounced);
41108
+ this.updateWMJSMapProps = this.updateWMJSMapProps.bind(this);
41109
+ this.mountWMJSMap = this.mountWMJSMap.bind(this);
41110
+ this.onAfterSetBBoxListener = this.onAfterSetBBoxListener.bind(this);
41111
+ this.onUpdateBBoxListener = this.onUpdateBBoxListener.bind(this);
41112
+ this.onDimChangeListener = this.onDimChangeListener.bind(this);
41113
+ this.adagucContainerRef = /*#__PURE__*/React.createRef();
41114
+ this.adagucWebMapJSRef = /*#__PURE__*/React.createRef();
41115
+ }
41116
+ componentDidMount() {
41117
+ const {
41118
+ shouldAutoFetch,
41119
+ onWMJSMount,
41120
+ mapId
41121
+ } = this.props;
41122
+ /* If this components re-mounts, make sure that the initialized state is set back to false */
41123
+ this.setState({
41124
+ adagucInitialised: false
41125
+ });
41126
+ window.addEventListener('resize', this.handleWindowResize);
41127
+ this.mountWMJSMap();
41128
+ if (shouldAutoFetch) {
41129
+ this.onStartRefetchTimer();
41130
+ }
41131
+ onWMJSMount(mapId);
41132
+ }
41133
+ componentDidUpdate(prevProps) {
41134
+ this.updateWMJSMapProps(prevProps, this.props);
41135
+ }
41136
+ componentWillUnmount() {
41137
+ const {
41138
+ mapId
41139
+ } = this.props;
41140
+ window.removeEventListener('resize', this.handleWindowResize);
41141
+ this.clearRefetchTimer();
41142
+ webmapUtils.unRegisterWMJSMap(mapId);
41143
+ /* Reset adaguc properties */
41144
+ this.adaguc.initialized = false;
41145
+ this.adaguc.currentHeight = -1;
41146
+ this.adaguc.currentWidth = -1;
41147
+ this.adaguc.baseLayers = [];
41148
+ this.adaguc.oldbbox = new WMBBOX();
41149
+ this.adaguc.currentMapProps.children = null;
41150
+ }
41151
+ handleWindowResize() {
41152
+ this.resize();
41153
+ }
41154
+ onDimChangeListener() {
41155
+ const {
41156
+ mapId,
41157
+ onMapChangeDimension
41158
+ } = this.props;
41159
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
41160
+ if (wmjsMap) {
41161
+ const timeDimension = wmjsMap.getDimension('time');
41162
+ if (timeDimension) {
41163
+ onMapChangeDimension({
41164
+ mapId,
41165
+ origin: ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION,
41166
+ dimension: {
41167
+ name: 'time',
41168
+ currentValue: timeDimension.currentValue
41169
+ }
41170
+ });
41171
+ }
41172
+ }
41173
+ }
41174
+ onAfterSetBBoxListener() {
41175
+ /* Update the map after 100 ms */
41176
+ window.setTimeout(() => {
41177
+ const {
41178
+ bbox: MapViewBBOX,
41179
+ mapId,
41180
+ onMapZoomEnd
41181
+ } = this.props;
41182
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
41183
+ if (!wmjsMap) {
41184
+ return;
41185
+ }
41186
+ const projectionInfo = wmjsMap.getProjection();
41187
+ /* Trigger onMapZoomEnd callback */
41188
+ const mapBBOX = projectionInfo.bbox;
41189
+ if (MapViewBBOX.left !== mapBBOX.left || MapViewBBOX.right !== mapBBOX.right || MapViewBBOX.bottom !== mapBBOX.bottom || MapViewBBOX.top !== mapBBOX.top) {
41190
+ onMapZoomEnd({
41191
+ mapId,
41192
+ bbox: {
41193
+ left: projectionInfo.bbox.left,
41194
+ bottom: projectionInfo.bbox.bottom,
41195
+ right: projectionInfo.bbox.right,
41196
+ top: projectionInfo.bbox.top
41197
+ },
41198
+ srs: projectionInfo.srs
41199
+ });
41200
+ }
41201
+ }, 100);
41202
+ }
41203
+ onUpdateBBoxListener(newBbox) {
41204
+ const oldbbox = this.adaguc.oldbbox || new WMBBOX(ReactMapView.defaultProps.bbox);
41205
+ if (oldbbox.left !== newBbox.left || oldbbox.right !== newBbox.right || oldbbox.top !== newBbox.top || oldbbox.bottom !== newBbox.bottom) {
41206
+ oldbbox.left = newBbox.left;
41207
+ oldbbox.right = newBbox.right;
41208
+ oldbbox.top = newBbox.top;
41209
+ oldbbox.bottom = newBbox.bottom;
41210
+ this.adaguc.oldbbox = new WMBBOX(oldbbox);
41211
+ }
41212
+ }
41213
+ updateWMJSMapProps(prevProps, props) {
41214
+ if (!props) {
41215
+ return;
41216
+ }
41217
+ const {
41218
+ mapId,
41219
+ children
41220
+ } = props;
41221
+ if (prevProps && prevProps.mapId !== props.mapId) {
41222
+ console.warn('MapId has changed on an already mounted map!');
41223
+ const prevWMJSMap = webmapUtils.getWMJSMapById(prevProps.mapId);
41224
+ if (prevWMJSMap) {
41225
+ webmapUtils.registerWMJSMap(prevWMJSMap, mapId);
41226
+ }
41227
+ }
41228
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
41229
+ if (!wmjsMap) {
41230
+ console.warn(`No wmjsMap ${mapId}`);
41231
+ return;
41232
+ }
41233
+ let needsRedraw = false;
41234
+ /* Check map props */
41235
+ if (!prevProps || prevProps.showLegend !== props.showLegend) {
41236
+ wmjsMap.displayLegendInMap(props.showLegend !== false);
41237
+ }
41238
+ if (!prevProps || prevProps.showScaleBar !== props.showScaleBar) {
41239
+ wmjsMap.displayScaleBarInMap(props.showScaleBar !== false);
41240
+ needsRedraw = true;
41241
+ }
41242
+ /* Check map dimensions */
41243
+ if (!prevProps || prevProps.dimensions !== props.dimensions) {
41244
+ if (props.dimensions) {
41245
+ for (let d = 0; d < props.dimensions.length; d += 1) {
41246
+ const propDimension = props.dimensions[d];
41247
+ const mapDim = wmjsMap.getDimension(propDimension.name);
41248
+ if (mapDim && mapDim.currentValue !== propDimension.currentValue || !mapDim) {
41249
+ wmjsMap.setDimension(propDimension.name, propDimension.currentValue, false, false);
41250
+ }
41251
+ if (props.displayTimeInMap && propDimension.name === 'time' && propDimension.currentValue !== undefined) {
41252
+ needsRedraw = true;
41253
+ const displayText = getDisplayText(propDimension.currentValue);
41254
+ wmjsMap.setTimeOffset(displayText);
41255
+ }
41256
+ }
41257
+ }
41258
+ }
41259
+ /* Check if srs and BBOX is updated */
41260
+ if (!prevProps || prevProps.bbox !== props.bbox) {
41261
+ if (props.bbox.left !== undefined) {
41262
+ const projectionInfo = wmjsMap.getProjection();
41263
+ const mapBBOX = projectionInfo.bbox;
41264
+ if (props.bbox.left !== mapBBOX.left || props.bbox.right !== mapBBOX.right || props.bbox.bottom !== mapBBOX.bottom || props.bbox.top !== mapBBOX.top) {
41265
+ wmjsMap.suspendEvent('onupdatebbox');
41266
+ wmjsMap.setProjection(props.srs, new WMBBOX(props.bbox));
41267
+ wmjsMap.resumeEvent('onupdatebbox');
41268
+ wmjsMap.draw();
41269
+ }
41270
+ }
41271
+ }
41272
+ /* Check display/hide map cursor */
41273
+ if (!prevProps || prevProps.displayMapPin !== props.displayMapPin) {
41274
+ if (props.displayMapPin === true) {
41275
+ wmjsMap.getMapPin().showMapPin();
41276
+ } else if (props.displayMapPin === false) {
41277
+ wmjsMap.getMapPin().hideMapPin();
41278
+ }
41279
+ }
41280
+ /* Set map cursor location */
41281
+ if (!prevProps || prevProps.mapPinLocation !== props.mapPinLocation) {
41282
+ if (props.mapPinLocation) {
41283
+ wmjsMap.getMapPin().positionMapPinByLatLon({
41284
+ x: props.mapPinLocation.lon,
41285
+ y: props.mapPinLocation.lat
41286
+ });
41287
+ }
41288
+ }
41289
+ /* Set disable map pin */
41290
+ if (!prevProps || prevProps.disableMapPin !== props.disableMapPin) {
41291
+ if (props.disableMapPin === true) {
41292
+ wmjsMap.getMapPin().setMapPinDisabled();
41293
+ } else if (props.disableMapPin === false) {
41294
+ wmjsMap.getMapPin().setMapPinEnabled();
41295
+ }
41296
+ }
41297
+ /* Change the animation delay */
41298
+ if (!prevProps || prevProps.animationDelay !== props.animationDelay) {
41299
+ if (props.animationDelay) {
41300
+ if (typeof wmjsMap.setAnimationDelay === 'function') {
41301
+ wmjsMap.setAnimationDelay(props.animationDelay);
41302
+ }
41303
+ }
41304
+ }
41305
+ /* Check if layer metadata should be shown */
41306
+ if (!prevProps || prevProps.showLayerInfo !== props.showLayerInfo) {
41307
+ if (props.showLayerInfo) {
41308
+ wmjsMap.showLayerInfo = props.showLayerInfo;
41309
+ }
41310
+ }
41311
+ if (children !== this.adaguc.currentMapProps.children) {
41312
+ const myChildren = [];
41313
+ const takenIds = new Set();
41314
+ React.Children.forEach(children, child => {
41315
+ if (child) {
41316
+ const {
41317
+ props: childProps
41318
+ } = child;
41319
+ if (childProps && childProps.id) {
41320
+ if (!takenIds.has(childProps.id)) {
41321
+ myChildren.push(child);
41322
+ takenIds.add(childProps.id);
41323
+ } else {
41324
+ childProps.onLayerError(childProps, new Error(`Duplicate layer id "${childProps.id}" encountered within this mapTypes.WebMap`), wmjsMap);
41325
+ console.warn('ReactWMJSLayer has a duplicate id', child);
41326
+ }
41327
+ } else {
41328
+ debug(DebugType.Warning, 'ReactElement child ignored: has no props or id', child);
41329
+ }
41330
+ }
41331
+ });
41332
+ myChildren.reverse();
41333
+ const wmjsLayers = wmjsMap.getLayers();
41334
+ /* ReactWMJSLayer Layer Childs: Detect all ReactLayers connected to WMJSLayers, remove WMJSLayer if there is no ReactLayer */
41335
+ for (let l = 0; l < wmjsLayers.length; l += 1) {
41336
+ if (myChildren.filter(c => c && c.props && c.props.id === wmjsLayers[l].ReactWMJSLayerId).length === 0) {
41337
+ /* This will call the remove property of the WMJSLayer, which will adjust the layers array of WebMapJS */
41338
+ wmjsLayers[l].remove();
41339
+ /* Trigger update of all map dimensions */
41340
+ const {
41341
+ onUpdateLayerInformation,
41342
+ mapId: _mapId
41343
+ } = props;
41344
+ onUpdateLayerInformation === null || onUpdateLayerInformation === void 0 ? void 0 : onUpdateLayerInformation({
41345
+ origin: ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO,
41346
+ layerStyle: null,
41347
+ layerDimensions: null,
41348
+ mapDimensions: {
41349
+ origin,
41350
+ mapId: _mapId,
41351
+ dimensions: wmjsMap.mapdimensions.map(({
41352
+ name,
41353
+ units,
41354
+ currentValue,
41355
+ synced
41356
+ }) => {
41357
+ return {
41358
+ name,
41359
+ units,
41360
+ currentValue,
41361
+ synced
41362
+ };
41363
+ })
41364
+ }
41365
+ });
41366
+ this.updateWMJSMapProps(prevProps, props);
41367
+ return;
41368
+ }
41369
+ }
41370
+ /* ReactWMJSLayer BaseLayer Childs: For the baseLayers, detect all ReactLayers connected to WMJSLayers, remove WMJSLayer if there is no ReactLayer */
41371
+ const webmapJSBaselayers = wmjsMap.getBaseLayers();
41372
+ for (let l = 0; l < webmapJSBaselayers.length; l += 1) {
41373
+ let wmjsBaseLayers = wmjsMap.getBaseLayers();
41374
+ if (myChildren.filter(c => c && c.props ? c.props.id === wmjsBaseLayers[l].ReactWMJSLayerId : false).length === 0) {
41375
+ /* TODO (Maarten Plieger, 2020-03-19):The remove property for the baselayer is not working yet */
41376
+ wmjsBaseLayers.splice(l, 1);
41377
+ wmjsMap.setBaseLayers(wmjsBaseLayers);
41378
+ wmjsBaseLayers = wmjsMap.getBaseLayers();
41379
+ this.updateWMJSMapProps(prevProps, props);
41380
+ return;
41381
+ }
41382
+ }
41383
+ let adagucWMJSLayerIndex = 0;
41384
+ let adagucWMJSBaseLayerIndex = 0;
41385
+ /* Loop through all React layers and update WMJSLayer properties where needed */
41386
+ for (let c = 0; c < myChildren.length; c += 1) {
41387
+ const child = myChildren[c];
41388
+ if (child && child.type) {
41389
+ /* Check layers */
41390
+ if (typeof child.type === typeof MapViewLayer) {
41391
+ /* Feature layer (with child.props.geojson), these are handled collectively by the setState commando above. */
41392
+ const isBaselayer = !isAMapLayer(child.props) && !isAGeoJSONLayer(child.props);
41393
+ const adagucWMJSLayers = isBaselayer ? wmjsMap.getBaseLayers() : wmjsMap.getLayers();
41394
+ const obj = getWMJSLayerFromReactLayer(mapId, adagucWMJSLayers, child, isBaselayer ? adagucWMJSBaseLayerIndex : adagucWMJSLayerIndex);
41395
+ if (obj.layerArrayMutated) {
41396
+ this.updateWMJSMapProps(prevProps, props);
41397
+ return;
41398
+ }
41399
+ const wmLayer = obj.layer;
41400
+ if (isBaselayer) {
41401
+ adagucWMJSBaseLayerIndex += 1;
41402
+ } else {
41403
+ adagucWMJSLayerIndex += 1;
41404
+ }
41405
+ /* Layer was not yet added */
41406
+ if (wmLayer === null) {
41407
+ const keepOnTop = child.props.layerType === LayerType.overLayer || false;
41408
+ const newWMLayer = new WMLayer(Object.assign(Object.assign({}, child.props), {
41409
+ keepOnTop
41410
+ }));
41411
+ webmapUtils.registerWMLayer(newWMLayer, child.props.id);
41412
+ newWMLayer.ReactWMJSLayerId = child.props.id;
41413
+ if (isBaselayer) {
41414
+ /* Add ADAGUC WebMapJS Baselayer */
41415
+ this.adaguc.baseLayers.push(newWMLayer);
41416
+ wmjsMap.setBaseLayers(this.adaguc.baseLayers.reverse());
41417
+ } else {
41418
+ /* Add ADAGUC WebMapJS Layer */
41419
+ wmjsMap.addLayer(newWMLayer).then(() => {
41420
+ wmjsMap.draw();
41421
+ });
41422
+ }
41423
+ if (!isBaselayer) {
41424
+ this.parseWMJSLayer(newWMLayer, false, child);
41425
+ }
41426
+ needsRedraw = true;
41427
+ } else {
41428
+ /* Set the name of the ADAGUC WMJSLayer */
41429
+ if (child.props.name !== undefined && wmLayer.name !== child.props.name) {
41430
+ wmLayer.setName(child.props.name).then(() => {
41431
+ this.parseWMJSLayer(wmLayer, false, child);
41432
+ });
41433
+ needsRedraw = true;
41434
+ }
41435
+ /* Set the Opacity of the ADAGUC WMJSLayer */
41436
+ if (child.props.opacity !== undefined && wmLayer.opacity !== child.props.opacity) {
41437
+ wmLayer.setOpacity(child.props.opacity);
41438
+ needsRedraw = false;
41439
+ }
41440
+ /* Set the Style of the ADAGUC WMJSLayer */
41441
+ if (child.props.style !== undefined && wmLayer.currentStyle !== child.props.style) {
41442
+ wmLayer.setStyle(child.props.style);
41443
+ needsRedraw = true;
41444
+ }
41445
+ const {
41446
+ enabled,
41447
+ acceptanceTimeInMinutes,
41448
+ dimensions: layerDimensions
41449
+ } = child.props;
41450
+ const isInsideAcceptanceTime = getIsInsideAcceptanceTime(acceptanceTimeInMinutes, props.dimensions, layerDimensions);
41451
+ if (enabled !== undefined) {
41452
+ const wmLayerShouldBeShown = isInsideAcceptanceTime && enabled;
41453
+ if (wmLayerShouldBeShown !== wmLayer.enabled) {
41454
+ wmLayer.display(wmLayerShouldBeShown);
41455
+ needsRedraw = true;
41456
+ }
41457
+ }
41458
+ /* Set the dimensions of the ADAGUC WMJSLayer */
41459
+ if (child.props.dimensions !== undefined) {
41460
+ for (let d = 0; d < child.props.dimensions.length; d += 1) {
41461
+ const dim = child.props.dimensions[d];
41462
+ const wmjsDim = wmLayer.getDimension(dim.name);
41463
+ if (wmjsDim) {
41464
+ if (wmjsDim.currentValue !== dim.currentValue) {
41465
+ wmLayer.setDimension(dim.name, dim.currentValue, false);
41466
+ needsRedraw = true;
41467
+ }
41468
+ if (wmjsDim.synced !== dim.synced) {
41469
+ wmjsDim.synced = dim.synced;
41470
+ needsRedraw = true;
41471
+ }
41472
+ } else {
41473
+ debug(DebugType.Warning, `MapView: Dimension does not exist, skipping ${child.props.name} :: ${dim.name} = ${dim.currentValue}`);
41474
+ }
41475
+ }
41476
+ }
41477
+ }
41478
+ }
41479
+ }
41480
+ }
41481
+ if (needsRedraw) {
41482
+ wmjsMap.draw();
41483
+ }
41484
+ /* Children have been processed */
41485
+ this.adaguc.currentMapProps.children = children;
41486
+ }
41487
+ }
41488
+ drawDebounced() {
41489
+ const {
41490
+ mapId
41491
+ } = this.props;
41492
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
41493
+ wmjsMap.getListener().suspendEvents();
41494
+ wmjsMap.draw();
41495
+ wmjsMap.getListener().resumeEvents();
41496
+ }
41497
+ mountWMJSMap() {
41498
+ const {
41499
+ mapId,
41500
+ listeners,
41501
+ srs,
41502
+ bbox,
41503
+ onMapPinChangeLocation
41504
+ } = this.props;
41505
+ /* Check if we have something to mount WMJSMap on */
41506
+ if (this.adagucWebMapJSRef.current === null) {
41507
+ console.warn('No this.adagucWebMapJSRef.current yet ');
41508
+ return null;
41509
+ }
41510
+ /* Check if webmapjs was not already initialized */
41511
+ const existingWMJSMap = webmapUtils.getWMJSMapById(mapId);
41512
+ if (existingWMJSMap) {
41513
+ console.warn(`Somehow ${mapId}webmapUtils.unRegisterWMJSMap already exists`);
41514
+ webmapUtils.unRegisterWMJSMap(mapId);
41515
+ }
41516
+ const wmjsMap = new WMJSMap(this.adagucWebMapJSRef.current);
41517
+ this.adaguc.currentMapProps = {};
41518
+ this.adaguc.currentMapProps.children = null;
41519
+ this.adaguc.baseLayers = [];
41520
+ webmapUtils.registerWMJSMap(wmjsMap, mapId);
41521
+ this.adaguc.initialized = true;
41522
+ /* Enable to show actual layer properties in the map */
41523
+ wmjsMap.showLayerInfo = false;
41524
+ wmjsMap.removeAllLayers();
41525
+ if (srs) {
41526
+ wmjsMap.setProjection(srs, new WMBBOX(bbox));
41527
+ }
41528
+ wmjsMap.setWMTileRendererTileSettings(tilesettings);
41529
+ if (listeners) {
41530
+ listeners.forEach(listener => {
41531
+ wmjsMap.addListener(listener.name, data => {
41532
+ listener.callbackfunction(wmjsMap, data);
41533
+ }, listener.keep);
41534
+ });
41535
+ }
41536
+ wmjsMap.addListener('ondimchange', () => {
41537
+ this.onDimChangeListener();
41538
+ }, true);
41539
+ wmjsMap.addListener('onmapready', () => {
41540
+ this.setState({
41541
+ adagucInitialised: true
41542
+ });
41543
+ });
41544
+ wmjsMap.addListener('aftersetbbox', () => {
41545
+ this.onAfterSetBBoxListener();
41546
+ }, true);
41547
+ wmjsMap.addListener('onupdatebbox', newBbox => {
41548
+ this.onUpdateBBoxListener(newBbox);
41549
+ }, true);
41550
+ wmjsMap.addListener('onsetmappin', mapPinLatLonCoordinate => {
41551
+ // only change location when mapPin is visible and enabled
41552
+ if (onMapPinChangeLocation &&
41553
+ // eslint-disable-next-line react/destructuring-assignment
41554
+ this.props.displayMapPin &&
41555
+ // eslint-disable-next-line react/destructuring-assignment
41556
+ !this.props.disableMapPin) {
41557
+ onMapPinChangeLocation({
41558
+ mapPinLocation: {
41559
+ lat: mapPinLatLonCoordinate.lat,
41560
+ lon: mapPinLatLonCoordinate.lon
41561
+ },
41562
+ mapId
41563
+ });
41564
+ }
41565
+ }, true);
41566
+ this.resize();
41567
+ wmjsMap.draw();
41568
+ this.updateWMJSMapProps(null, this.props);
41569
+ return wmjsMap;
41570
+ }
41571
+ resize() {
41572
+ const element = this.adagucContainerRef.current;
41573
+ if (element) {
41574
+ const newWidth = element.clientWidth;
41575
+ const newHeight = element.clientHeight;
41576
+ if (this.adaguc.currentWidth !== newWidth || this.adaguc.currentHeight !== newHeight) {
41577
+ this.adaguc.currentWidth = newWidth;
41578
+ this.adaguc.currentHeight = newHeight;
41579
+ const {
41580
+ mapId
41581
+ } = this.props;
41582
+ const wmjsMap = webmapUtils.getWMJSMapById(mapId);
41583
+ wmjsMap.setSize(newWidth, newHeight);
41584
+ }
41585
+ }
41586
+ }
41587
+ render() {
41588
+ const {
41589
+ passiveMap,
41590
+ children,
41591
+ onClick,
41592
+ mapId
41593
+ } = this.props;
41594
+ const {
41595
+ adagucInitialised
41596
+ } = this.state;
41597
+ const featureLayers = getFeatureLayers(children);
41598
+ return jsx("div", Object.assign({
41599
+ className: "MapView",
41600
+ style: {
41601
+ height: '100%',
41602
+ width: '100%',
41603
+ border: 'none',
41604
+ display: 'block',
41605
+ overflow: 'hidden'
41606
+ }
41607
+ }, {
41608
+ children: jsxs("div", Object.assign({
41609
+ ref: this.adagucContainerRef,
41610
+ style: {
41611
+ minWidth: 'inherit',
41612
+ minHeight: 'inherit',
41613
+ width: 'inherit',
41614
+ height: 'inherit',
41615
+ overflow: 'hidden',
41616
+ display: 'block',
41617
+ border: 'none'
41618
+ }
41619
+ }, {
41620
+ children: [jsx("div", Object.assign({
41621
+ className: "MapViewComponent",
41622
+ style: {
41623
+ position: 'absolute',
41624
+ overflow: 'hidden',
41625
+ display: 'block',
41626
+ padding: '0',
41627
+ margin: '0',
41628
+ zIndex: 10
41629
+ }
41630
+ }, {
41631
+ children: jsx("div", {
41632
+ ref: this.adagucWebMapJSRef
41633
+ })
41634
+ })), jsxs("div", Object.assign({
41635
+ style: {
41636
+ position: 'absolute',
41637
+ overflow: 'hidden',
41638
+ display: 'block',
41639
+ padding: '0',
41640
+ margin: '0',
41641
+ zIndex: 100
41642
+ }
41643
+ }, {
41644
+ children: [jsx("div", {
41645
+ children: children
41646
+ }), adagucInitialised && featureLayers && featureLayers.length ? jsx(MapDrawContainer, {
41647
+ featureLayers: featureLayers,
41648
+ mapId: mapId
41649
+ }) : null]
41650
+ })), passiveMap &&
41651
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/control-has-associated-label, jsx-a11y/interactive-supports-focus
41652
+ jsx("div", {
41653
+ style: {
41654
+ position: 'absolute',
41655
+ overflow: 'hidden',
41656
+ display: 'block',
41657
+ padding: '0',
41658
+ margin: '0',
41659
+ zIndex: 100,
41660
+ width: '100%',
41661
+ height: '100%'
41662
+ },
41663
+ onClick: onClick,
41664
+ role: "button"
41665
+ })]
41666
+ }))
41667
+ }));
41668
+ }
41669
+ }
41670
+ ReactMapView.defaultProps = {
41671
+ srs: 'EPSG:3857',
41672
+ bbox: {
41673
+ left: -2324980.5498391856,
41674
+ bottom: 5890854.775012179,
41675
+ right: 6393377.702660825,
41676
+ top: 11652109.058827976
41677
+ },
41678
+ shouldAutoFetch: true,
41679
+ displayMapPin: false,
41680
+ disableMapPin: false,
41681
+ onWMJSMount: () => {},
41682
+ onMapChangeDimension: () => {
41683
+ /* nothing */
41684
+ },
41685
+ onUpdateLayerInformation: () => {
41686
+ /* nothing */
41687
+ },
41688
+ onMapZoomEnd: () => {
41689
+ /* nothing */
41690
+ }
41691
+ };
41692
+
41693
+ /* *
41694
+ * Licensed under the Apache License, Version 2.0 (the "License");
41695
+ * you may not use this file except in compliance with the License.
41696
+ * You may obtain a copy of the License at
41697
+ *
41698
+ * http://www.apache.org/licenses/LICENSE-2.0
41699
+ *
41700
+ * Unless required by applicable law or agreed to in writing, software
41701
+ * distributed under the License is distributed on an "AS IS" BASIS,
41702
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41703
+ * See the License for the specific language governing permissions and
41704
+ * limitations under the License.
41705
+ *
41706
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
41707
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
41708
+ * */
41709
+ const baseLayerGrey = {
41710
+ id: webmapUtils.generateLayerId(),
41711
+ name: 'WorldMap_Light_Grey_Canvas',
41712
+ type: 'twms',
41713
+ layerType: LayerType.baseLayer
41714
+ };
41715
+ // Over Layers List
41716
+ const KNMIgeoservicesBaselayers = {
41717
+ name: 'KNMIgeoservicesBaselayers',
41718
+ url: 'https://geoservices.knmi.nl/wms?DATASET=baselayers&',
41719
+ id: 'KNMIgeoservicesBaselayers'
41720
+ };
41721
+ const overLayer = {
41722
+ service: KNMIgeoservicesBaselayers.url,
41723
+ name: 'countryborders',
41724
+ format: 'image/png',
41725
+ enabled: true,
41726
+ id: webmapUtils.generateLayerId(),
41727
+ layerType: LayerType.overLayer
41728
+ };
41729
+
41730
+ var defaultLayers = /*#__PURE__*/Object.freeze({
41731
+ __proto__: null,
41732
+ baseLayerGrey: baseLayerGrey,
41733
+ overLayer: overLayer
41734
+ });
41735
+
41736
+ export { CanvasComponent, DRAWMODE, EDITMODE, Legend, LegendLayout, MapDrawContainer, MapViewLayer, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, addFeatureProperties, checkHoverFeatures, createInterSections, defaultLayers, defaultStyleProperties, distance, emptyGeoJSON, featureBox, featureMultiPoint, featurePoint, featurePolygon, getDrawFunctionFromStore, getFeatureCollection, getGeoJson, intersectGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, lineString, registerDrawFunction, simpleBoxGeoJSON, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON };