@bolttech/form-engine 3.1.1-beta.2 → 3.1.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -4,7 +4,7 @@ import { FormGroup, FormField } from '@bolttech/form-engine-core';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
6
 
7
- var fails$b = function (exec) {
7
+ var fails$e = function (exec) {
8
8
  try {
9
9
  return !!exec();
10
10
  } catch (error) {
@@ -12,9 +12,9 @@ var fails$b = function (exec) {
12
12
  }
13
13
  };
14
14
 
15
- var fails$a = fails$b;
15
+ var fails$d = fails$e;
16
16
 
17
- var functionBindNative = !fails$a(function () {
17
+ var functionBindNative = !fails$d(function () {
18
18
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
19
19
  var test = (function () { /* empty */ }).bind();
20
20
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -24,39 +24,39 @@ var functionBindNative = !fails$a(function () {
24
24
  var NATIVE_BIND$1 = functionBindNative;
25
25
 
26
26
  var FunctionPrototype$1 = Function.prototype;
27
- var call$6 = FunctionPrototype$1.call;
28
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$6, call$6);
27
+ var call$7 = FunctionPrototype$1.call;
28
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$7, call$7);
29
29
 
30
30
  var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
31
31
  return function () {
32
- return call$6.apply(fn, arguments);
32
+ return call$7.apply(fn, arguments);
33
33
  };
34
34
  };
35
35
 
36
- var uncurryThis$a = functionUncurryThis;
36
+ var uncurryThis$c = functionUncurryThis;
37
37
 
38
- var toString$1 = uncurryThis$a({}.toString);
39
- var stringSlice$1 = uncurryThis$a(''.slice);
38
+ var toString$3 = uncurryThis$c({}.toString);
39
+ var stringSlice$1 = uncurryThis$c(''.slice);
40
40
 
41
- var classofRaw = function (it) {
42
- return stringSlice$1(toString$1(it), 8, -1);
41
+ var classofRaw$1 = function (it) {
42
+ return stringSlice$1(toString$3(it), 8, -1);
43
43
  };
44
44
 
45
- var uncurryThis$9 = functionUncurryThis;
46
- var fails$9 = fails$b;
47
- var classof = classofRaw;
45
+ var uncurryThis$b = functionUncurryThis;
46
+ var fails$c = fails$e;
47
+ var classof$2 = classofRaw$1;
48
48
 
49
- var $Object$3 = Object;
50
- var split = uncurryThis$9(''.split);
49
+ var $Object$4 = Object;
50
+ var split = uncurryThis$b(''.split);
51
51
 
52
52
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
53
- var indexedObject = fails$9(function () {
53
+ var indexedObject = fails$c(function () {
54
54
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
55
55
  // eslint-disable-next-line no-prototype-builtins -- safe
56
- return !$Object$3('z').propertyIsEnumerable(0);
56
+ return !$Object$4('z').propertyIsEnumerable(0);
57
57
  }) ? function (it) {
58
- return classof(it) === 'String' ? split(it, '') : $Object$3(it);
59
- } : $Object$3;
58
+ return classof$2(it) === 'String' ? split(it, '') : $Object$4(it);
59
+ } : $Object$4;
60
60
 
61
61
  // we can't use just `it == null` since of `document.all` special case
62
62
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
@@ -66,12 +66,12 @@ var isNullOrUndefined$2 = function (it) {
66
66
 
67
67
  var isNullOrUndefined$1 = isNullOrUndefined$2;
68
68
 
69
- var $TypeError$6 = TypeError;
69
+ var $TypeError$7 = TypeError;
70
70
 
71
71
  // `RequireObjectCoercible` abstract operation
72
72
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
73
73
  var requireObjectCoercible$3 = function (it) {
74
- if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
74
+ if (isNullOrUndefined$1(it)) throw new $TypeError$7("Can't call method on " + it);
75
75
  return it;
76
76
  };
77
77
 
@@ -136,45 +136,45 @@ var shared$3 = function (key, value) {
136
136
 
137
137
  var requireObjectCoercible$1 = requireObjectCoercible$3;
138
138
 
139
- var $Object$2 = Object;
139
+ var $Object$3 = Object;
140
140
 
141
141
  // `ToObject` abstract operation
142
142
  // https://tc39.es/ecma262/#sec-toobject
143
- var toObject$3 = function (argument) {
144
- return $Object$2(requireObjectCoercible$1(argument));
143
+ var toObject$4 = function (argument) {
144
+ return $Object$3(requireObjectCoercible$1(argument));
145
145
  };
146
146
 
147
- var uncurryThis$8 = functionUncurryThis;
148
- var toObject$2 = toObject$3;
147
+ var uncurryThis$a = functionUncurryThis;
148
+ var toObject$3 = toObject$4;
149
149
 
150
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
150
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
151
151
 
152
152
  // `HasOwnProperty` abstract operation
153
153
  // https://tc39.es/ecma262/#sec-hasownproperty
154
154
  // eslint-disable-next-line es/no-object-hasown -- safe
155
155
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
156
- return hasOwnProperty(toObject$2(it), key);
156
+ return hasOwnProperty(toObject$3(it), key);
157
157
  };
158
158
 
159
- var uncurryThis$7 = functionUncurryThis;
159
+ var uncurryThis$9 = functionUncurryThis;
160
160
 
161
161
  var id = 0;
162
162
  var postfix = Math.random();
163
- var toString = uncurryThis$7(1.0.toString);
163
+ var toString$2 = uncurryThis$9(1.0.toString);
164
164
 
165
165
  var uid$2 = function (key) {
166
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
166
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
167
167
  };
168
168
 
169
169
  var globalThis$a = globalThis_1;
170
170
 
171
171
  var navigator = globalThis$a.navigator;
172
- var userAgent$1 = navigator && navigator.userAgent;
172
+ var userAgent$3 = navigator && navigator.userAgent;
173
173
 
174
- var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
174
+ var environmentUserAgent = userAgent$3 ? String(userAgent$3) : '';
175
175
 
176
176
  var globalThis$9 = globalThis_1;
177
- var userAgent = environmentUserAgent;
177
+ var userAgent$2 = environmentUserAgent;
178
178
 
179
179
  var process = globalThis$9.process;
180
180
  var Deno = globalThis$9.Deno;
@@ -191,10 +191,10 @@ if (v8) {
191
191
 
192
192
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
193
193
  // so check `userAgent` even if `.v8` exists, but 0
194
- if (!version && userAgent) {
195
- match = userAgent.match(/Edge\/(\d+)/);
194
+ if (!version && userAgent$2) {
195
+ match = userAgent$2.match(/Edge\/(\d+)/);
196
196
  if (!match || match[1] >= 74) {
197
- match = userAgent.match(/Chrome\/(\d+)/);
197
+ match = userAgent$2.match(/Chrome\/(\d+)/);
198
198
  if (match) version = +match[1];
199
199
  }
200
200
  }
@@ -203,19 +203,19 @@ var environmentV8Version = version;
203
203
 
204
204
  /* eslint-disable es/no-symbol -- required for testing */
205
205
  var V8_VERSION = environmentV8Version;
206
- var fails$8 = fails$b;
206
+ var fails$b = fails$e;
207
207
  var globalThis$8 = globalThis_1;
208
208
 
209
- var $String$4 = globalThis$8.String;
209
+ var $String$5 = globalThis$8.String;
210
210
 
211
211
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
212
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
212
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
213
213
  var symbol = Symbol('symbol detection');
214
214
  // Chrome 38 Symbol has incorrect toString conversion
215
215
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
216
216
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
217
217
  // of course, fail.
218
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
218
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
219
219
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
220
220
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
221
221
  });
@@ -229,7 +229,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
229
229
 
230
230
  var globalThis$7 = globalThis_1;
231
231
  var shared$2 = shared$3;
232
- var hasOwn$8 = hasOwnProperty_1;
232
+ var hasOwn$9 = hasOwnProperty_1;
233
233
  var uid$1 = uid$2;
234
234
  var NATIVE_SYMBOL = symbolConstructorDetection;
235
235
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
@@ -238,9 +238,9 @@ var Symbol$1 = globalThis$7.Symbol;
238
238
  var WellKnownSymbolsStore = shared$2('wks');
239
239
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
240
240
 
241
- var wellKnownSymbol$6 = function (name) {
242
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
243
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
241
+ var wellKnownSymbol$8 = function (name) {
242
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
243
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
244
244
  ? Symbol$1[name]
245
245
  : createWellKnownSymbol('Symbol.' + name);
246
246
  } return WellKnownSymbolsStore[name];
@@ -252,45 +252,45 @@ var documentAll = typeof document == 'object' && document.all;
252
252
  // `IsCallable` abstract operation
253
253
  // https://tc39.es/ecma262/#sec-iscallable
254
254
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
255
- var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
255
+ var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
256
256
  return typeof argument == 'function' || argument === documentAll;
257
257
  } : function (argument) {
258
258
  return typeof argument == 'function';
259
259
  };
260
260
 
261
- var isCallable$c = isCallable$d;
261
+ var isCallable$d = isCallable$e;
262
262
 
263
263
  var isObject$8 = function (it) {
264
- return typeof it == 'object' ? it !== null : isCallable$c(it);
264
+ return typeof it == 'object' ? it !== null : isCallable$d(it);
265
265
  };
266
266
 
267
267
  var isObject$7 = isObject$8;
268
268
 
269
- var $String$3 = String;
270
- var $TypeError$5 = TypeError;
269
+ var $String$4 = String;
270
+ var $TypeError$6 = TypeError;
271
271
 
272
272
  // `Assert: Type(argument) is Object`
273
- var anObject$4 = function (argument) {
273
+ var anObject$6 = function (argument) {
274
274
  if (isObject$7(argument)) return argument;
275
- throw new $TypeError$5($String$3(argument) + ' is not an object');
275
+ throw new $TypeError$6($String$4(argument) + ' is not an object');
276
276
  };
277
277
 
278
278
  var objectDefineProperties = {};
279
279
 
280
- var fails$7 = fails$b;
280
+ var fails$a = fails$e;
281
281
 
282
282
  // Detect IE8's incomplete defineProperty implementation
283
- var descriptors = !fails$7(function () {
283
+ var descriptors = !fails$a(function () {
284
284
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
285
285
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
286
286
  });
287
287
 
288
288
  var DESCRIPTORS$9 = descriptors;
289
- var fails$6 = fails$b;
289
+ var fails$9 = fails$e;
290
290
 
291
291
  // V8 ~ Chrome 36-
292
292
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
293
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$6(function () {
293
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$9(function () {
294
294
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
295
295
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
296
296
  value: 42,
@@ -312,11 +312,11 @@ var documentCreateElement$2 = function (it) {
312
312
  };
313
313
 
314
314
  var DESCRIPTORS$8 = descriptors;
315
- var fails$5 = fails$b;
315
+ var fails$8 = fails$e;
316
316
  var createElement = documentCreateElement$2;
317
317
 
318
318
  // Thanks to IE8 for its funny defineProperty
319
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
319
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$8(function () {
320
320
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
321
321
  return Object.defineProperty(createElement('div'), 'a', {
322
322
  get: function () { return 7; }
@@ -325,97 +325,97 @@ var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
325
325
 
326
326
  var NATIVE_BIND = functionBindNative;
327
327
 
328
- var call$5 = Function.prototype.call;
328
+ var call$6 = Function.prototype.call;
329
329
 
330
- var functionCall = NATIVE_BIND ? call$5.bind(call$5) : function () {
331
- return call$5.apply(call$5, arguments);
330
+ var functionCall = NATIVE_BIND ? call$6.bind(call$6) : function () {
331
+ return call$6.apply(call$6, arguments);
332
332
  };
333
333
 
334
334
  var globalThis$5 = globalThis_1;
335
- var isCallable$b = isCallable$d;
335
+ var isCallable$c = isCallable$e;
336
336
 
337
337
  var aFunction = function (argument) {
338
- return isCallable$b(argument) ? argument : undefined;
338
+ return isCallable$c(argument) ? argument : undefined;
339
339
  };
340
340
 
341
341
  var getBuiltIn$3 = function (namespace, method) {
342
342
  return arguments.length < 2 ? aFunction(globalThis$5[namespace]) : globalThis$5[namespace] && globalThis$5[namespace][method];
343
343
  };
344
344
 
345
- var uncurryThis$6 = functionUncurryThis;
345
+ var uncurryThis$8 = functionUncurryThis;
346
346
 
347
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
347
+ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
348
348
 
349
349
  var getBuiltIn$2 = getBuiltIn$3;
350
- var isCallable$a = isCallable$d;
351
- var isPrototypeOf = objectIsPrototypeOf;
350
+ var isCallable$b = isCallable$e;
351
+ var isPrototypeOf$1 = objectIsPrototypeOf;
352
352
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
353
353
 
354
- var $Object$1 = Object;
354
+ var $Object$2 = Object;
355
355
 
356
356
  var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
357
357
  return typeof it == 'symbol';
358
358
  } : function (it) {
359
359
  var $Symbol = getBuiltIn$2('Symbol');
360
- return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
360
+ return isCallable$b($Symbol) && isPrototypeOf$1($Symbol.prototype, $Object$2(it));
361
361
  };
362
362
 
363
- var $String$2 = String;
363
+ var $String$3 = String;
364
364
 
365
- var tryToString$1 = function (argument) {
365
+ var tryToString$2 = function (argument) {
366
366
  try {
367
- return $String$2(argument);
367
+ return $String$3(argument);
368
368
  } catch (error) {
369
369
  return 'Object';
370
370
  }
371
371
  };
372
372
 
373
- var isCallable$9 = isCallable$d;
374
- var tryToString = tryToString$1;
373
+ var isCallable$a = isCallable$e;
374
+ var tryToString$1 = tryToString$2;
375
375
 
376
- var $TypeError$4 = TypeError;
376
+ var $TypeError$5 = TypeError;
377
377
 
378
378
  // `Assert: IsCallable(argument) is true`
379
- var aCallable$2 = function (argument) {
380
- if (isCallable$9(argument)) return argument;
381
- throw new $TypeError$4(tryToString(argument) + ' is not a function');
379
+ var aCallable$3 = function (argument) {
380
+ if (isCallable$a(argument)) return argument;
381
+ throw new $TypeError$5(tryToString$1(argument) + ' is not a function');
382
382
  };
383
383
 
384
- var aCallable$1 = aCallable$2;
384
+ var aCallable$2 = aCallable$3;
385
385
  var isNullOrUndefined = isNullOrUndefined$2;
386
386
 
387
387
  // `GetMethod` abstract operation
388
388
  // https://tc39.es/ecma262/#sec-getmethod
389
389
  var getMethod$1 = function (V, P) {
390
390
  var func = V[P];
391
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
391
+ return isNullOrUndefined(func) ? undefined : aCallable$2(func);
392
392
  };
393
393
 
394
- var call$4 = functionCall;
395
- var isCallable$8 = isCallable$d;
394
+ var call$5 = functionCall;
395
+ var isCallable$9 = isCallable$e;
396
396
  var isObject$5 = isObject$8;
397
397
 
398
- var $TypeError$3 = TypeError;
398
+ var $TypeError$4 = TypeError;
399
399
 
400
400
  // `OrdinaryToPrimitive` abstract operation
401
401
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
402
402
  var ordinaryToPrimitive$1 = function (input, pref) {
403
403
  var fn, val;
404
- if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
405
- if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
406
- if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
407
- throw new $TypeError$3("Can't convert object to primitive value");
404
+ if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$5(fn, input))) return val;
405
+ if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$5(fn, input))) return val;
406
+ if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$5(fn, input))) return val;
407
+ throw new $TypeError$4("Can't convert object to primitive value");
408
408
  };
409
409
 
410
- var call$3 = functionCall;
410
+ var call$4 = functionCall;
411
411
  var isObject$4 = isObject$8;
412
412
  var isSymbol$1 = isSymbol$2;
413
413
  var getMethod = getMethod$1;
414
414
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
415
- var wellKnownSymbol$5 = wellKnownSymbol$6;
415
+ var wellKnownSymbol$7 = wellKnownSymbol$8;
416
416
 
417
- var $TypeError$2 = TypeError;
418
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
417
+ var $TypeError$3 = TypeError;
418
+ var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
419
419
 
420
420
  // `ToPrimitive` abstract operation
421
421
  // https://tc39.es/ecma262/#sec-toprimitive
@@ -425,9 +425,9 @@ var toPrimitive$1 = function (input, pref) {
425
425
  var result;
426
426
  if (exoticToPrim) {
427
427
  if (pref === undefined) pref = 'default';
428
- result = call$3(exoticToPrim, input, pref);
428
+ result = call$4(exoticToPrim, input, pref);
429
429
  if (!isObject$4(result) || isSymbol$1(result)) return result;
430
- throw new $TypeError$2("Can't convert object to primitive value");
430
+ throw new $TypeError$3("Can't convert object to primitive value");
431
431
  }
432
432
  if (pref === undefined) pref = 'number';
433
433
  return ordinaryToPrimitive(input, pref);
@@ -446,10 +446,10 @@ var toPropertyKey$2 = function (argument) {
446
446
  var DESCRIPTORS$7 = descriptors;
447
447
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
448
448
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
449
- var anObject$3 = anObject$4;
449
+ var anObject$5 = anObject$6;
450
450
  var toPropertyKey$1 = toPropertyKey$2;
451
451
 
452
- var $TypeError$1 = TypeError;
452
+ var $TypeError$2 = TypeError;
453
453
  // eslint-disable-next-line es/no-object-defineproperty -- safe
454
454
  var $defineProperty = Object.defineProperty;
455
455
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -461,9 +461,9 @@ var WRITABLE = 'writable';
461
461
  // `Object.defineProperty` method
462
462
  // https://tc39.es/ecma262/#sec-object.defineproperty
463
463
  objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
464
- anObject$3(O);
464
+ anObject$5(O);
465
465
  P = toPropertyKey$1(P);
466
- anObject$3(Attributes);
466
+ anObject$5(Attributes);
467
467
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
468
468
  var current = $getOwnPropertyDescriptor$1(O, P);
469
469
  if (current && current[WRITABLE]) {
@@ -476,26 +476,26 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
476
476
  }
477
477
  } return $defineProperty(O, P, Attributes);
478
478
  } : $defineProperty : function defineProperty(O, P, Attributes) {
479
- anObject$3(O);
479
+ anObject$5(O);
480
480
  P = toPropertyKey$1(P);
481
- anObject$3(Attributes);
481
+ anObject$5(Attributes);
482
482
  if (IE8_DOM_DEFINE$1) try {
483
483
  return $defineProperty(O, P, Attributes);
484
484
  } catch (error) { /* empty */ }
485
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
485
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
486
486
  if ('value' in Attributes) O[P] = Attributes.value;
487
487
  return O;
488
488
  };
489
489
 
490
490
  var ceil = Math.ceil;
491
- var floor = Math.floor;
491
+ var floor$1 = Math.floor;
492
492
 
493
493
  // `Math.trunc` method
494
494
  // https://tc39.es/ecma262/#sec-math.trunc
495
495
  // eslint-disable-next-line es/no-math-trunc -- safe
496
496
  var mathTrunc = Math.trunc || function trunc(x) {
497
497
  var n = +x;
498
- return (n > 0 ? floor : ceil)(n);
498
+ return (n > 0 ? floor$1 : ceil)(n);
499
499
  };
500
500
 
501
501
  var trunc = mathTrunc;
@@ -536,19 +536,19 @@ var toLength = toLength$1;
536
536
 
537
537
  // `LengthOfArrayLike` abstract operation
538
538
  // https://tc39.es/ecma262/#sec-lengthofarraylike
539
- var lengthOfArrayLike$1 = function (obj) {
539
+ var lengthOfArrayLike$2 = function (obj) {
540
540
  return toLength(obj.length);
541
541
  };
542
542
 
543
543
  var toIndexedObject$4 = toIndexedObject$5;
544
544
  var toAbsoluteIndex = toAbsoluteIndex$1;
545
- var lengthOfArrayLike = lengthOfArrayLike$1;
545
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
546
546
 
547
547
  // `Array.prototype.{ indexOf, includes }` methods implementation
548
548
  var createMethod = function (IS_INCLUDES) {
549
549
  return function ($this, el, fromIndex) {
550
550
  var O = toIndexedObject$4($this);
551
- var length = lengthOfArrayLike(O);
551
+ var length = lengthOfArrayLike$1(O);
552
552
  if (length === 0) return !IS_INCLUDES && -1;
553
553
  var index = toAbsoluteIndex(fromIndex, length);
554
554
  var value;
@@ -576,23 +576,23 @@ var arrayIncludes = {
576
576
 
577
577
  var hiddenKeys$4 = {};
578
578
 
579
- var uncurryThis$5 = functionUncurryThis;
580
- var hasOwn$7 = hasOwnProperty_1;
579
+ var uncurryThis$7 = functionUncurryThis;
580
+ var hasOwn$8 = hasOwnProperty_1;
581
581
  var toIndexedObject$3 = toIndexedObject$5;
582
582
  var indexOf = arrayIncludes.indexOf;
583
583
  var hiddenKeys$3 = hiddenKeys$4;
584
584
 
585
- var push = uncurryThis$5([].push);
585
+ var push$1 = uncurryThis$7([].push);
586
586
 
587
587
  var objectKeysInternal = function (object, names) {
588
588
  var O = toIndexedObject$3(object);
589
589
  var i = 0;
590
590
  var result = [];
591
591
  var key;
592
- for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
592
+ for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push$1(result, key);
593
593
  // Don't enum bug & hidden keys
594
- while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
595
- ~indexOf(result, key) || push(result, key);
594
+ while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
595
+ ~indexOf(result, key) || push$1(result, key);
596
596
  }
597
597
  return result;
598
598
  };
@@ -621,7 +621,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
621
621
  var DESCRIPTORS$6 = descriptors;
622
622
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
623
623
  var definePropertyModule$3 = objectDefineProperty;
624
- var anObject$2 = anObject$4;
624
+ var anObject$4 = anObject$6;
625
625
  var toIndexedObject$2 = toIndexedObject$5;
626
626
  var objectKeys$1 = objectKeys$2;
627
627
 
@@ -629,7 +629,7 @@ var objectKeys$1 = objectKeys$2;
629
629
  // https://tc39.es/ecma262/#sec-object.defineproperties
630
630
  // eslint-disable-next-line es/no-object-defineproperties -- safe
631
631
  objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
632
- anObject$2(O);
632
+ anObject$4(O);
633
633
  var props = toIndexedObject$2(Properties);
634
634
  var keys = objectKeys$1(Properties);
635
635
  var length = keys.length;
@@ -653,7 +653,7 @@ var sharedKey$3 = function (key) {
653
653
  };
654
654
 
655
655
  /* global ActiveXObject -- old IE, WSH */
656
- var anObject$1 = anObject$4;
656
+ var anObject$3 = anObject$6;
657
657
  var definePropertiesModule = objectDefineProperties;
658
658
  var enumBugKeys$1 = enumBugKeys$3;
659
659
  var hiddenKeys$2 = hiddenKeys$4;
@@ -728,7 +728,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
728
728
  var objectCreate = Object.create || function create(O, Properties) {
729
729
  var result;
730
730
  if (O !== null) {
731
- EmptyConstructor[PROTOTYPE] = anObject$1(O);
731
+ EmptyConstructor[PROTOTYPE] = anObject$3(O);
732
732
  result = new EmptyConstructor();
733
733
  EmptyConstructor[PROTOTYPE] = null;
734
734
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -737,11 +737,11 @@ var objectCreate = Object.create || function create(O, Properties) {
737
737
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
738
738
  };
739
739
 
740
- var wellKnownSymbol$4 = wellKnownSymbol$6;
740
+ var wellKnownSymbol$6 = wellKnownSymbol$8;
741
741
  var create$1 = objectCreate;
742
742
  var defineProperty$4 = objectDefineProperty.f;
743
743
 
744
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
744
+ var UNSCOPABLES = wellKnownSymbol$6('unscopables');
745
745
  var ArrayPrototype = Array.prototype;
746
746
 
747
747
  // Array.prototype[@@unscopables]
@@ -761,11 +761,11 @@ var addToUnscopables$1 = function (key) {
761
761
  var iterators = {};
762
762
 
763
763
  var globalThis$4 = globalThis_1;
764
- var isCallable$7 = isCallable$d;
764
+ var isCallable$8 = isCallable$e;
765
765
 
766
766
  var WeakMap$1 = globalThis$4.WeakMap;
767
767
 
768
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
768
+ var weakMapBasicDetection = isCallable$8(WeakMap$1) && /native code/.test(String(WeakMap$1));
769
769
 
770
770
  var createPropertyDescriptor$3 = function (bitmap, value) {
771
771
  return {
@@ -791,7 +791,7 @@ var NATIVE_WEAK_MAP = weakMapBasicDetection;
791
791
  var globalThis$3 = globalThis_1;
792
792
  var isObject$3 = isObject$8;
793
793
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
794
- var hasOwn$6 = hasOwnProperty_1;
794
+ var hasOwn$7 = hasOwnProperty_1;
795
795
  var shared = sharedStore.exports;
796
796
  var sharedKey$1 = sharedKey$3;
797
797
  var hiddenKeys$1 = hiddenKeys$4;
@@ -837,16 +837,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
837
837
  var STATE = sharedKey$1('state');
838
838
  hiddenKeys$1[STATE] = true;
839
839
  set = function (it, metadata) {
840
- if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
840
+ if (hasOwn$7(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
841
841
  metadata.facade = it;
842
842
  createNonEnumerableProperty$3(it, STATE, metadata);
843
843
  return metadata;
844
844
  };
845
845
  get = function (it) {
846
- return hasOwn$6(it, STATE) ? it[STATE] : {};
846
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
847
847
  };
848
848
  has = function (it) {
849
- return hasOwn$6(it, STATE);
849
+ return hasOwn$7(it, STATE);
850
850
  };
851
851
  }
852
852
 
@@ -877,12 +877,12 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
877
877
  } : $propertyIsEnumerable;
878
878
 
879
879
  var DESCRIPTORS$4 = descriptors;
880
- var call$2 = functionCall;
880
+ var call$3 = functionCall;
881
881
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
882
882
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
883
883
  var toIndexedObject$1 = toIndexedObject$5;
884
884
  var toPropertyKey = toPropertyKey$2;
885
- var hasOwn$5 = hasOwnProperty_1;
885
+ var hasOwn$6 = hasOwnProperty_1;
886
886
  var IE8_DOM_DEFINE = ie8DomDefine;
887
887
 
888
888
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -896,19 +896,19 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : f
896
896
  if (IE8_DOM_DEFINE) try {
897
897
  return $getOwnPropertyDescriptor(O, P);
898
898
  } catch (error) { /* empty */ }
899
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
899
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$3(propertyIsEnumerableModule$1.f, O, P), O[P]);
900
900
  };
901
901
 
902
902
  var makeBuiltIn$2 = {exports: {}};
903
903
 
904
904
  var DESCRIPTORS$3 = descriptors;
905
- var hasOwn$4 = hasOwnProperty_1;
905
+ var hasOwn$5 = hasOwnProperty_1;
906
906
 
907
907
  var FunctionPrototype = Function.prototype;
908
908
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
909
909
  var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
910
910
 
911
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
911
+ var EXISTS = hasOwn$5(FunctionPrototype, 'name');
912
912
  // additional protection from minified / mangled / dropped function names
913
913
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
914
914
  var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
@@ -919,14 +919,14 @@ var functionName = {
919
919
  CONFIGURABLE: CONFIGURABLE
920
920
  };
921
921
 
922
- var uncurryThis$4 = functionUncurryThis;
923
- var isCallable$6 = isCallable$d;
922
+ var uncurryThis$6 = functionUncurryThis;
923
+ var isCallable$7 = isCallable$e;
924
924
  var store = sharedStore.exports;
925
925
 
926
- var functionToString = uncurryThis$4(Function.toString);
926
+ var functionToString = uncurryThis$6(Function.toString);
927
927
 
928
928
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
929
- if (!isCallable$6(store.inspectSource)) {
929
+ if (!isCallable$7(store.inspectSource)) {
930
930
  store.inspectSource = function (it) {
931
931
  return functionToString(it);
932
932
  };
@@ -934,10 +934,10 @@ if (!isCallable$6(store.inspectSource)) {
934
934
 
935
935
  var inspectSource$1 = store.inspectSource;
936
936
 
937
- var uncurryThis$3 = functionUncurryThis;
938
- var fails$4 = fails$b;
939
- var isCallable$5 = isCallable$d;
940
- var hasOwn$3 = hasOwnProperty_1;
937
+ var uncurryThis$5 = functionUncurryThis;
938
+ var fails$7 = fails$e;
939
+ var isCallable$6 = isCallable$e;
940
+ var hasOwn$4 = hasOwnProperty_1;
941
941
  var DESCRIPTORS$2 = descriptors;
942
942
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
943
943
  var inspectSource = inspectSource$1;
@@ -945,40 +945,40 @@ var InternalStateModule$1 = internalState;
945
945
 
946
946
  var enforceInternalState = InternalStateModule$1.enforce;
947
947
  var getInternalState$1 = InternalStateModule$1.get;
948
- var $String$1 = String;
948
+ var $String$2 = String;
949
949
  // eslint-disable-next-line es/no-object-defineproperty -- safe
950
950
  var defineProperty$3 = Object.defineProperty;
951
- var stringSlice = uncurryThis$3(''.slice);
952
- var replace = uncurryThis$3(''.replace);
953
- var join = uncurryThis$3([].join);
951
+ var stringSlice = uncurryThis$5(''.slice);
952
+ var replace = uncurryThis$5(''.replace);
953
+ var join = uncurryThis$5([].join);
954
954
 
955
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
955
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$7(function () {
956
956
  return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
957
957
  });
958
958
 
959
959
  var TEMPLATE = String(String).split('String');
960
960
 
961
961
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
962
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
963
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
962
+ if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
963
+ name = '[' + replace($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
964
964
  }
965
965
  if (options && options.getter) name = 'get ' + name;
966
966
  if (options && options.setter) name = 'set ' + name;
967
- if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
967
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
968
968
  if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
969
969
  else value.name = name;
970
970
  }
971
- if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
971
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
972
972
  defineProperty$3(value, 'length', { value: options.arity });
973
973
  }
974
974
  try {
975
- if (options && hasOwn$3(options, 'constructor') && options.constructor) {
975
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
976
976
  if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
977
977
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
978
978
  } else if (value.prototype) value.prototype = undefined;
979
979
  } catch (error) { /* empty */ }
980
980
  var state = enforceInternalState(value);
981
- if (!hasOwn$3(state, 'source')) {
981
+ if (!hasOwn$4(state, 'source')) {
982
982
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
983
983
  } return value;
984
984
  };
@@ -986,19 +986,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
986
986
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
987
987
  // eslint-disable-next-line no-extend-native -- required
988
988
  Function.prototype.toString = makeBuiltIn$1(function toString() {
989
- return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
989
+ return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
990
990
  }, 'toString');
991
991
 
992
- var isCallable$4 = isCallable$d;
992
+ var isCallable$5 = isCallable$e;
993
993
  var definePropertyModule$1 = objectDefineProperty;
994
994
  var makeBuiltIn = makeBuiltIn$2.exports;
995
995
  var defineGlobalProperty$1 = defineGlobalProperty$3;
996
996
 
997
- var defineBuiltIn$3 = function (O, key, value, options) {
997
+ var defineBuiltIn$4 = function (O, key, value, options) {
998
998
  if (!options) options = {};
999
999
  var simple = options.enumerable;
1000
1000
  var name = options.name !== undefined ? options.name : key;
1001
- if (isCallable$4(value)) makeBuiltIn(value, name, options);
1001
+ if (isCallable$5(value)) makeBuiltIn(value, name, options);
1002
1002
  if (options.global) {
1003
1003
  if (simple) O[key] = value;
1004
1004
  else defineGlobalProperty$1(key, value);
@@ -1037,21 +1037,21 @@ var objectGetOwnPropertySymbols = {};
1037
1037
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1038
1038
 
1039
1039
  var getBuiltIn = getBuiltIn$3;
1040
- var uncurryThis$2 = functionUncurryThis;
1040
+ var uncurryThis$4 = functionUncurryThis;
1041
1041
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1042
1042
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1043
- var anObject = anObject$4;
1043
+ var anObject$2 = anObject$6;
1044
1044
 
1045
- var concat$1 = uncurryThis$2([].concat);
1045
+ var concat$1 = uncurryThis$4([].concat);
1046
1046
 
1047
1047
  // all object keys, includes non-enumerable and symbols
1048
1048
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1049
- var keys = getOwnPropertyNamesModule.f(anObject(it));
1049
+ var keys = getOwnPropertyNamesModule.f(anObject$2(it));
1050
1050
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1051
1051
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1052
1052
  };
1053
1053
 
1054
- var hasOwn$2 = hasOwnProperty_1;
1054
+ var hasOwn$3 = hasOwnProperty_1;
1055
1055
  var ownKeys = ownKeys$1;
1056
1056
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1057
1057
  var definePropertyModule = objectDefineProperty;
@@ -1062,14 +1062,14 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1062
1062
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1063
1063
  for (var i = 0; i < keys.length; i++) {
1064
1064
  var key = keys[i];
1065
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1065
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1066
1066
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1067
1067
  }
1068
1068
  }
1069
1069
  };
1070
1070
 
1071
- var fails$3 = fails$b;
1072
- var isCallable$3 = isCallable$d;
1071
+ var fails$6 = fails$e;
1072
+ var isCallable$4 = isCallable$e;
1073
1073
 
1074
1074
  var replacement = /#|\.prototype\./;
1075
1075
 
@@ -1077,7 +1077,7 @@ var isForced$1 = function (feature, detection) {
1077
1077
  var value = data[normalize(feature)];
1078
1078
  return value === POLYFILL ? true
1079
1079
  : value === NATIVE ? false
1080
- : isCallable$3(detection) ? fails$3(detection)
1080
+ : isCallable$4(detection) ? fails$6(detection)
1081
1081
  : !!detection;
1082
1082
  };
1083
1083
 
@@ -1094,7 +1094,7 @@ var isForced_1 = isForced$1;
1094
1094
  var globalThis$2 = globalThis_1;
1095
1095
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1096
1096
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1097
- var defineBuiltIn$2 = defineBuiltIn$3;
1097
+ var defineBuiltIn$3 = defineBuiltIn$4;
1098
1098
  var defineGlobalProperty = defineGlobalProperty$3;
1099
1099
  var copyConstructorProperties = copyConstructorProperties$1;
1100
1100
  var isForced = isForced_1;
@@ -1142,49 +1142,49 @@ var _export = function (options, source) {
1142
1142
  if (options.sham || (targetProperty && targetProperty.sham)) {
1143
1143
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1144
1144
  }
1145
- defineBuiltIn$2(target, key, sourceProperty, options);
1145
+ defineBuiltIn$3(target, key, sourceProperty, options);
1146
1146
  }
1147
1147
  };
1148
1148
 
1149
- var fails$2 = fails$b;
1149
+ var fails$5 = fails$e;
1150
1150
 
1151
- var correctPrototypeGetter = !fails$2(function () {
1151
+ var correctPrototypeGetter = !fails$5(function () {
1152
1152
  function F() { /* empty */ }
1153
1153
  F.prototype.constructor = null;
1154
1154
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1155
1155
  return Object.getPrototypeOf(new F()) !== F.prototype;
1156
1156
  });
1157
1157
 
1158
- var hasOwn$1 = hasOwnProperty_1;
1159
- var isCallable$2 = isCallable$d;
1160
- var toObject$1 = toObject$3;
1158
+ var hasOwn$2 = hasOwnProperty_1;
1159
+ var isCallable$3 = isCallable$e;
1160
+ var toObject$2 = toObject$4;
1161
1161
  var sharedKey = sharedKey$3;
1162
1162
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1163
1163
 
1164
1164
  var IE_PROTO = sharedKey('IE_PROTO');
1165
- var $Object = Object;
1166
- var ObjectPrototype = $Object.prototype;
1165
+ var $Object$1 = Object;
1166
+ var ObjectPrototype = $Object$1.prototype;
1167
1167
 
1168
1168
  // `Object.getPrototypeOf` method
1169
1169
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1170
1170
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1171
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1172
- var object = toObject$1(O);
1173
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1171
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1172
+ var object = toObject$2(O);
1173
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1174
1174
  var constructor = object.constructor;
1175
- if (isCallable$2(constructor) && object instanceof constructor) {
1175
+ if (isCallable$3(constructor) && object instanceof constructor) {
1176
1176
  return constructor.prototype;
1177
- } return object instanceof $Object ? ObjectPrototype : null;
1177
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1178
1178
  };
1179
1179
 
1180
- var fails$1 = fails$b;
1181
- var isCallable$1 = isCallable$d;
1180
+ var fails$4 = fails$e;
1181
+ var isCallable$2 = isCallable$e;
1182
1182
  var isObject$2 = isObject$8;
1183
1183
  var getPrototypeOf$1 = objectGetPrototypeOf;
1184
- var defineBuiltIn$1 = defineBuiltIn$3;
1185
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1184
+ var defineBuiltIn$2 = defineBuiltIn$4;
1185
+ var wellKnownSymbol$5 = wellKnownSymbol$8;
1186
1186
 
1187
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1187
+ var ITERATOR$2 = wellKnownSymbol$5('iterator');
1188
1188
  var BUGGY_SAFARI_ITERATORS$1 = false;
1189
1189
 
1190
1190
  // `%IteratorPrototype%` object
@@ -1202,7 +1202,7 @@ if ([].keys) {
1202
1202
  }
1203
1203
  }
1204
1204
 
1205
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$1(function () {
1205
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$4(function () {
1206
1206
  var test = {};
1207
1207
  // FF44- legacy iterators case
1208
1208
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1212,8 +1212,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1212
1212
 
1213
1213
  // `%IteratorPrototype%[@@iterator]()` method
1214
1214
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1215
- if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
1216
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1215
+ if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1216
+ defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1217
1217
  return this;
1218
1218
  });
1219
1219
  }
@@ -1224,15 +1224,15 @@ var iteratorsCore = {
1224
1224
  };
1225
1225
 
1226
1226
  var defineProperty$2 = objectDefineProperty.f;
1227
- var hasOwn = hasOwnProperty_1;
1228
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1227
+ var hasOwn$1 = hasOwnProperty_1;
1228
+ var wellKnownSymbol$4 = wellKnownSymbol$8;
1229
1229
 
1230
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1230
+ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1231
1231
 
1232
1232
  var setToStringTag$3 = function (target, TAG, STATIC) {
1233
1233
  if (target && !STATIC) target = target.prototype;
1234
- if (target && !hasOwn(target, TO_STRING_TAG)) {
1235
- defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1234
+ if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1235
+ defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1236
1236
  }
1237
1237
  };
1238
1238
 
@@ -1252,13 +1252,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1252
1252
  return IteratorConstructor;
1253
1253
  };
1254
1254
 
1255
- var uncurryThis$1 = functionUncurryThis;
1256
- var aCallable = aCallable$2;
1255
+ var uncurryThis$3 = functionUncurryThis;
1256
+ var aCallable$1 = aCallable$3;
1257
1257
 
1258
1258
  var functionUncurryThisAccessor = function (object, key, method) {
1259
1259
  try {
1260
1260
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1261
- return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1261
+ return uncurryThis$3(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1262
1262
  } catch (error) { /* empty */ }
1263
1263
  };
1264
1264
 
@@ -1270,12 +1270,12 @@ var isPossiblePrototype$1 = function (argument) {
1270
1270
 
1271
1271
  var isPossiblePrototype = isPossiblePrototype$1;
1272
1272
 
1273
- var $String = String;
1274
- var $TypeError = TypeError;
1273
+ var $String$1 = String;
1274
+ var $TypeError$1 = TypeError;
1275
1275
 
1276
1276
  var aPossiblePrototype$1 = function (argument) {
1277
1277
  if (isPossiblePrototype(argument)) return argument;
1278
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
1278
+ throw new $TypeError$1("Can't set " + $String$1(argument) + ' as a prototype');
1279
1279
  };
1280
1280
 
1281
1281
  /* eslint-disable no-proto -- safe */
@@ -1307,25 +1307,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1307
1307
  };
1308
1308
  }() : undefined);
1309
1309
 
1310
- var $$1 = _export;
1311
- var call$1 = functionCall;
1310
+ var $$2 = _export;
1311
+ var call$2 = functionCall;
1312
1312
  var FunctionName = functionName;
1313
- var isCallable = isCallable$d;
1313
+ var isCallable$1 = isCallable$e;
1314
1314
  var createIteratorConstructor = iteratorCreateConstructor;
1315
1315
  var getPrototypeOf = objectGetPrototypeOf;
1316
1316
  var setPrototypeOf = objectSetPrototypeOf;
1317
1317
  var setToStringTag$1 = setToStringTag$3;
1318
1318
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1319
- var defineBuiltIn = defineBuiltIn$3;
1320
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1319
+ var defineBuiltIn$1 = defineBuiltIn$4;
1320
+ var wellKnownSymbol$3 = wellKnownSymbol$8;
1321
1321
  var Iterators$1 = iterators;
1322
1322
  var IteratorsCore = iteratorsCore;
1323
1323
 
1324
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1324
+ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1325
1325
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1326
1326
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1327
1327
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1328
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1328
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
1329
1329
  var KEYS = 'keys';
1330
1330
  var VALUES = 'values';
1331
1331
  var ENTRIES = 'entries';
@@ -1365,8 +1365,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1365
1365
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1366
1366
  if (setPrototypeOf) {
1367
1367
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1368
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1369
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1368
+ } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
1369
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1370
1370
  }
1371
1371
  }
1372
1372
  // Set @@toStringTag to native iterators
@@ -1375,12 +1375,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1375
1375
  }
1376
1376
 
1377
1377
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1378
- if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1378
+ if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1379
1379
  if (CONFIGURABLE_FUNCTION_NAME) {
1380
1380
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1381
1381
  } else {
1382
1382
  INCORRECT_VALUES_NAME = true;
1383
- defaultIterator = function values() { return call$1(nativeIterator, this); };
1383
+ defaultIterator = function values() { return call$2(nativeIterator, this); };
1384
1384
  }
1385
1385
  }
1386
1386
 
@@ -1393,14 +1393,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1393
1393
  };
1394
1394
  if (FORCED) for (KEY in methods) {
1395
1395
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1396
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1396
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1397
1397
  }
1398
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1398
+ } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1399
1399
  }
1400
1400
 
1401
1401
  // define iterator
1402
1402
  if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1403
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1403
+ defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1404
1404
  }
1405
1405
  Iterators$1[NAME] = defaultIterator;
1406
1406
 
@@ -1524,9 +1524,9 @@ var DOMTokenListPrototype = domTokenListPrototype;
1524
1524
  var ArrayIteratorMethods = es_array_iterator;
1525
1525
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
1526
1526
  var setToStringTag = setToStringTag$3;
1527
- var wellKnownSymbol = wellKnownSymbol$6;
1527
+ var wellKnownSymbol$2 = wellKnownSymbol$8;
1528
1528
 
1529
- var ITERATOR = wellKnownSymbol('iterator');
1529
+ var ITERATOR = wellKnownSymbol$2('iterator');
1530
1530
  var ArrayValues = ArrayIteratorMethods.values;
1531
1531
 
1532
1532
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
@@ -1556,24 +1556,24 @@ for (var COLLECTION_NAME in DOMIterables) {
1556
1556
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1557
1557
 
1558
1558
  var DESCRIPTORS = descriptors;
1559
- var uncurryThis = functionUncurryThis;
1560
- var call = functionCall;
1561
- var fails = fails$b;
1559
+ var uncurryThis$2 = functionUncurryThis;
1560
+ var call$1 = functionCall;
1561
+ var fails$3 = fails$e;
1562
1562
  var objectKeys = objectKeys$2;
1563
1563
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1564
1564
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1565
- var toObject = toObject$3;
1565
+ var toObject$1 = toObject$4;
1566
1566
  var IndexedObject = indexedObject;
1567
1567
 
1568
1568
  // eslint-disable-next-line es/no-object-assign -- safe
1569
1569
  var $assign = Object.assign;
1570
1570
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1571
1571
  var defineProperty = Object.defineProperty;
1572
- var concat = uncurryThis([].concat);
1572
+ var concat = uncurryThis$2([].concat);
1573
1573
 
1574
1574
  // `Object.assign` method
1575
1575
  // https://tc39.es/ecma262/#sec-object.assign
1576
- var objectAssign = !$assign || fails(function () {
1576
+ var objectAssign = !$assign || fails$3(function () {
1577
1577
  // should have correct order of operations (Edge bug)
1578
1578
  if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1579
1579
  enumerable: true,
@@ -1594,7 +1594,7 @@ var objectAssign = !$assign || fails(function () {
1594
1594
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1595
1595
  return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1596
1596
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1597
- var T = toObject(target);
1597
+ var T = toObject$1(target);
1598
1598
  var argumentsLength = arguments.length;
1599
1599
  var index = 1;
1600
1600
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -1607,43 +1607,79 @@ var objectAssign = !$assign || fails(function () {
1607
1607
  var key;
1608
1608
  while (length > j) {
1609
1609
  key = keys[j++];
1610
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1610
+ if (!DESCRIPTORS || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1611
1611
  }
1612
1612
  } return T;
1613
1613
  } : $assign;
1614
1614
 
1615
- var $ = _export;
1615
+ var $$1 = _export;
1616
1616
  var assign = objectAssign;
1617
1617
 
1618
1618
  // `Object.assign` method
1619
1619
  // https://tc39.es/ecma262/#sec-object.assign
1620
1620
  // eslint-disable-next-line es/no-object-assign -- required for testing
1621
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1621
+ $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1622
1622
  assign: assign
1623
1623
  });
1624
1624
 
1625
+ /******************************************************************************
1626
+ Copyright (c) Microsoft Corporation.
1627
+
1628
+ Permission to use, copy, modify, and/or distribute this software for any
1629
+ purpose with or without fee is hereby granted.
1630
+
1631
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1632
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1633
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1634
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1635
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1636
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1637
+ PERFORMANCE OF THIS SOFTWARE.
1638
+ ***************************************************************************** */
1639
+
1640
+ function __rest(s, e) {
1641
+ var t = {};
1642
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1643
+ t[p] = s[p];
1644
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1645
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1646
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1647
+ t[p[i]] = s[p[i]];
1648
+ }
1649
+ return t;
1650
+ }
1651
+
1652
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1653
+ var e = new Error(message);
1654
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1655
+ };
1656
+
1625
1657
  const BuildSchemaAsFields = ({
1626
1658
  components,
1627
1659
  mappers,
1628
1660
  formIndex,
1629
1661
  mountedForm
1630
1662
  }) => {
1631
- return components && components.map(component => {
1632
- const mapper = mappers === null || mappers === void 0 ? void 0 : mappers.find(el => el.componentName === component.component);
1663
+ return components && components.map(_a => {
1664
+ var {
1665
+ component
1666
+ } = _a,
1667
+ componentEl = __rest(_a, ["component"]);
1668
+ const mapper = mappers === null || mappers === void 0 ? void 0 : mappers.find(el => el.componentName === component);
1633
1669
  return mapper ? jsx(AsFormFieldBuilder, Object.assign({
1634
1670
  formIndex: formIndex,
1635
1671
  mapper: mapper,
1636
1672
  formMounted: mountedForm
1637
- }, component, {
1638
- children: component.children && component.children.length > 0 && jsx(BuildSchemaAsFields, {
1673
+ }, componentEl, {
1674
+ children: componentEl.children && componentEl.children.length > 0 && jsx(BuildSchemaAsFields, {
1639
1675
  formIndex: formIndex,
1640
1676
  mappers: mappers,
1641
- components: component.children,
1677
+ components: componentEl.children,
1642
1678
  mountedForm: mountedForm
1643
1679
  })
1644
- }), component.name) : jsx("div", {
1645
- children: `component mapper not found for ${component.component} from field name ${component.name} on form ${formIndex}`
1646
- }, component.name);
1680
+ }), componentEl.name) : jsx("div", {
1681
+ children: `component mapper not found for ${component} from field name ${componentEl.name} on form ${formIndex}`
1682
+ }, componentEl.name);
1647
1683
  });
1648
1684
  };
1649
1685
 
@@ -1660,7 +1696,8 @@ const IsolatedContext = ({
1660
1696
  config
1661
1697
  }) => {
1662
1698
  const formGroupInstance = useRef(new FormGroup({
1663
- config
1699
+ config,
1700
+ mappers
1664
1701
  }));
1665
1702
  const formGroupContextMountRef = useRef(false);
1666
1703
  const addFormWithIndex = index => {
@@ -1770,38 +1807,297 @@ const useFormGroupContext = props => {
1770
1807
  return context;
1771
1808
  };
1772
1809
 
1773
- /******************************************************************************
1774
- Copyright (c) Microsoft Corporation.
1775
-
1776
- Permission to use, copy, modify, and/or distribute this software for any
1777
- purpose with or without fee is hereby granted.
1778
-
1779
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1780
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1781
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1782
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1783
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1784
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1785
- PERFORMANCE OF THIS SOFTWARE.
1786
- ***************************************************************************** */
1787
-
1788
- function __rest(s, e) {
1789
- var t = {};
1790
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1791
- t[p] = s[p];
1792
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
1793
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1794
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1795
- t[p[i]] = s[p[i]];
1796
- }
1797
- return t;
1798
- }
1799
-
1800
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1801
- var e = new Error(message);
1802
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1810
+ var tryToString = tryToString$2;
1811
+
1812
+ var $TypeError = TypeError;
1813
+
1814
+ var deletePropertyOrThrow$1 = function (O, P) {
1815
+ if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
1803
1816
  };
1804
1817
 
1818
+ var wellKnownSymbol$1 = wellKnownSymbol$8;
1819
+
1820
+ var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
1821
+ var test$1 = {};
1822
+
1823
+ test$1[TO_STRING_TAG$1] = 'z';
1824
+
1825
+ var toStringTagSupport = String(test$1) === '[object z]';
1826
+
1827
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1828
+ var isCallable = isCallable$e;
1829
+ var classofRaw = classofRaw$1;
1830
+ var wellKnownSymbol = wellKnownSymbol$8;
1831
+
1832
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1833
+ var $Object = Object;
1834
+
1835
+ // ES3 wrong here
1836
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1837
+
1838
+ // fallback for IE11 Script Access Denied error
1839
+ var tryGet = function (it, key) {
1840
+ try {
1841
+ return it[key];
1842
+ } catch (error) { /* empty */ }
1843
+ };
1844
+
1845
+ // getting tag from ES6+ `Object.prototype.toString`
1846
+ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1847
+ var O, tag, result;
1848
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1849
+ // @@toStringTag case
1850
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1851
+ // builtinTag case
1852
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1853
+ // ES3 arguments fallback
1854
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1855
+ };
1856
+
1857
+ var classof = classof$1;
1858
+
1859
+ var $String = String;
1860
+
1861
+ var toString$1 = function (argument) {
1862
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1863
+ return $String(argument);
1864
+ };
1865
+
1866
+ var uncurryThis$1 = functionUncurryThis;
1867
+
1868
+ var arraySlice$1 = uncurryThis$1([].slice);
1869
+
1870
+ var arraySlice = arraySlice$1;
1871
+
1872
+ var floor = Math.floor;
1873
+
1874
+ var sort = function (array, comparefn) {
1875
+ var length = array.length;
1876
+
1877
+ if (length < 8) {
1878
+ // insertion sort
1879
+ var i = 1;
1880
+ var element, j;
1881
+
1882
+ while (i < length) {
1883
+ j = i;
1884
+ element = array[i];
1885
+ while (j && comparefn(array[j - 1], element) > 0) {
1886
+ array[j] = array[--j];
1887
+ }
1888
+ if (j !== i++) array[j] = element;
1889
+ }
1890
+ } else {
1891
+ // merge sort
1892
+ var middle = floor(length / 2);
1893
+ var left = sort(arraySlice(array, 0, middle), comparefn);
1894
+ var right = sort(arraySlice(array, middle), comparefn);
1895
+ var llength = left.length;
1896
+ var rlength = right.length;
1897
+ var lindex = 0;
1898
+ var rindex = 0;
1899
+
1900
+ while (lindex < llength || rindex < rlength) {
1901
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
1902
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
1903
+ : lindex < llength ? left[lindex++] : right[rindex++];
1904
+ }
1905
+ }
1906
+
1907
+ return array;
1908
+ };
1909
+
1910
+ var arraySort = sort;
1911
+
1912
+ var fails$2 = fails$e;
1913
+
1914
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1915
+ var method = [][METHOD_NAME];
1916
+ return !!method && fails$2(function () {
1917
+ // eslint-disable-next-line no-useless-call -- required for testing
1918
+ method.call(null, argument || function () { return 1; }, 1);
1919
+ });
1920
+ };
1921
+
1922
+ var userAgent$1 = environmentUserAgent;
1923
+
1924
+ var firefox = userAgent$1.match(/firefox\/(\d+)/i);
1925
+
1926
+ var environmentFfVersion = !!firefox && +firefox[1];
1927
+
1928
+ var UA = environmentUserAgent;
1929
+
1930
+ var environmentIsIeOrEdge = /MSIE|Trident/.test(UA);
1931
+
1932
+ var userAgent = environmentUserAgent;
1933
+
1934
+ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
1935
+
1936
+ var environmentWebkitVersion = !!webkit && +webkit[1];
1937
+
1938
+ var $ = _export;
1939
+ var uncurryThis = functionUncurryThis;
1940
+ var aCallable = aCallable$3;
1941
+ var toObject = toObject$4;
1942
+ var lengthOfArrayLike = lengthOfArrayLike$2;
1943
+ var deletePropertyOrThrow = deletePropertyOrThrow$1;
1944
+ var toString = toString$1;
1945
+ var fails$1 = fails$e;
1946
+ var internalSort = arraySort;
1947
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
1948
+ var FF = environmentFfVersion;
1949
+ var IE_OR_EDGE = environmentIsIeOrEdge;
1950
+ var V8 = environmentV8Version;
1951
+ var WEBKIT = environmentWebkitVersion;
1952
+
1953
+ var test = [];
1954
+ var nativeSort = uncurryThis(test.sort);
1955
+ var push = uncurryThis(test.push);
1956
+
1957
+ // IE8-
1958
+ var FAILS_ON_UNDEFINED = fails$1(function () {
1959
+ test.sort(undefined);
1960
+ });
1961
+ // V8 bug
1962
+ var FAILS_ON_NULL = fails$1(function () {
1963
+ test.sort(null);
1964
+ });
1965
+ // Old WebKit
1966
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
1967
+
1968
+ var STABLE_SORT = !fails$1(function () {
1969
+ // feature detection can be too slow, so check engines versions
1970
+ if (V8) return V8 < 70;
1971
+ if (FF && FF > 3) return;
1972
+ if (IE_OR_EDGE) return true;
1973
+ if (WEBKIT) return WEBKIT < 603;
1974
+
1975
+ var result = '';
1976
+ var code, chr, value, index;
1977
+
1978
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
1979
+ for (code = 65; code < 76; code++) {
1980
+ chr = String.fromCharCode(code);
1981
+
1982
+ switch (code) {
1983
+ case 66: case 69: case 70: case 72: value = 3; break;
1984
+ case 68: case 71: value = 4; break;
1985
+ default: value = 2;
1986
+ }
1987
+
1988
+ for (index = 0; index < 47; index++) {
1989
+ test.push({ k: chr + index, v: value });
1990
+ }
1991
+ }
1992
+
1993
+ test.sort(function (a, b) { return b.v - a.v; });
1994
+
1995
+ for (index = 0; index < test.length; index++) {
1996
+ chr = test[index].k.charAt(0);
1997
+ if (result.charAt(result.length - 1) !== chr) result += chr;
1998
+ }
1999
+
2000
+ return result !== 'DGBEFHACIJK';
2001
+ });
2002
+
2003
+ var FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
2004
+
2005
+ var getSortCompare = function (comparefn) {
2006
+ return function (x, y) {
2007
+ if (y === undefined) return -1;
2008
+ if (x === undefined) return 1;
2009
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
2010
+ return toString(x) > toString(y) ? 1 : -1;
2011
+ };
2012
+ };
2013
+
2014
+ // `Array.prototype.sort` method
2015
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
2016
+ $({ target: 'Array', proto: true, forced: FORCED }, {
2017
+ sort: function sort(comparefn) {
2018
+ if (comparefn !== undefined) aCallable(comparefn);
2019
+
2020
+ var array = toObject(this);
2021
+
2022
+ if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
2023
+
2024
+ var items = [];
2025
+ var arrayLength = lengthOfArrayLike(array);
2026
+ var itemsLength, index;
2027
+
2028
+ for (index = 0; index < arrayLength; index++) {
2029
+ if (index in array) push(items, array[index]);
2030
+ }
2031
+
2032
+ internalSort(items, getSortCompare(comparefn));
2033
+
2034
+ itemsLength = lengthOfArrayLike(items);
2035
+ index = 0;
2036
+
2037
+ while (index < itemsLength) array[index] = items[index++];
2038
+ while (index < arrayLength) deletePropertyOrThrow(array, index++);
2039
+
2040
+ return array;
2041
+ }
2042
+ });
2043
+
2044
+ var anObject$1 = anObject$6;
2045
+
2046
+ // `RegExp.prototype.flags` getter implementation
2047
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2048
+ var regexpFlags = function () {
2049
+ var that = anObject$1(this);
2050
+ var result = '';
2051
+ if (that.hasIndices) result += 'd';
2052
+ if (that.global) result += 'g';
2053
+ if (that.ignoreCase) result += 'i';
2054
+ if (that.multiline) result += 'm';
2055
+ if (that.dotAll) result += 's';
2056
+ if (that.unicode) result += 'u';
2057
+ if (that.unicodeSets) result += 'v';
2058
+ if (that.sticky) result += 'y';
2059
+ return result;
2060
+ };
2061
+
2062
+ var call = functionCall;
2063
+ var hasOwn = hasOwnProperty_1;
2064
+ var isPrototypeOf = objectIsPrototypeOf;
2065
+ var regExpFlags = regexpFlags;
2066
+
2067
+ var RegExpPrototype$1 = RegExp.prototype;
2068
+
2069
+ var regexpGetFlags = function (R) {
2070
+ var flags = R.flags;
2071
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
2072
+ ? call(regExpFlags, R) : flags;
2073
+ };
2074
+
2075
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
2076
+ var defineBuiltIn = defineBuiltIn$4;
2077
+ var anObject = anObject$6;
2078
+ var $toString = toString$1;
2079
+ var fails = fails$e;
2080
+ var getRegExpFlags = regexpGetFlags;
2081
+
2082
+ var TO_STRING = 'toString';
2083
+ var RegExpPrototype = RegExp.prototype;
2084
+ var nativeToString = RegExpPrototype[TO_STRING];
2085
+
2086
+ var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
2087
+ // FF44- RegExp#toString has a wrong name
2088
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
2089
+
2090
+ // `RegExp.prototype.toString` method
2091
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
2092
+ if (NOT_GENERIC || INCORRECT_NAME) {
2093
+ defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
2094
+ var R = anObject(this);
2095
+ var pattern = $toString(R.source);
2096
+ var flags = $toString(getRegExpFlags(R));
2097
+ return '/' + pattern + '/' + flags;
2098
+ }, { unsafe: true });
2099
+ }
2100
+
1805
2101
  /**
1806
2102
  * events mapping to aid function callback binding
1807
2103
  */
@@ -2128,9 +2424,10 @@ const FieldWrapper = ({
2128
2424
  context,
2129
2425
  mounted,
2130
2426
  mapper,
2131
- visibility
2427
+ visibility,
2428
+ component
2132
2429
  }) => {
2133
- var _a, _b, _c;
2430
+ var _a, _b, _c, _d;
2134
2431
  const localContext = useFormGroupContext({});
2135
2432
  /**
2136
2433
  * picks the right context prioritizing the context passed as prop
@@ -2259,8 +2556,8 @@ const FieldWrapper = ({
2259
2556
  }), jsx(FieldWrapperComponentRender, {
2260
2557
  props: Object.assign(Object.assign(Object.assign(Object.assign({}, mapProps), state.props), state.errors), valueState),
2261
2558
  fieldInstance: fieldInstance,
2262
- mapper: mapper,
2263
- children: children ? children : ((_c = state === null || state === void 0 ? void 0 : state.props) === null || _c === void 0 ? void 0 : _c.children) ? state === null || state === void 0 ? void 0 : state.props.children : null
2559
+ mapper: mapper || ((_c = localContext.mappers) === null || _c === void 0 ? void 0 : _c.find(mapper => mapper.componentName === component)),
2560
+ children: children ? children : ((_d = state === null || state === void 0 ? void 0 : state.props) === null || _d === void 0 ? void 0 : _d.children) ? state === null || state === void 0 ? void 0 : state.props.children : null
2264
2561
  })]
2265
2562
  }) : jsx(Fragment, {});
2266
2563
  };
@@ -2285,14 +2582,14 @@ const AsFormFieldBuilder = props => {
2285
2582
  * Also has the logic to remove it once this element is removed
2286
2583
  */
2287
2584
  useEffect(() => {
2288
- var _a;
2585
+ var _a, _b;
2289
2586
  if (mountedRef.current) return;
2290
2587
  if (typeof props.formMounted === 'undefined' && !((_a = context.formGroupInstance) === null || _a === void 0 ? void 0 : _a.forms.has(props.formIndex))) {
2291
2588
  context.addFormWithIndex(props.formIndex);
2292
2589
  }
2293
2590
  if (props.formMounted || typeof props.formMounted === 'undefined') {
2294
2591
  const fieldSchema = Object.assign(Object.assign({}, props), {
2295
- component: props.mapper.componentName,
2592
+ component: ((_b = props.mapper) === null || _b === void 0 ? void 0 : _b.componentName) || props.component,
2296
2593
  children: undefined
2297
2594
  });
2298
2595
  const formInstance = context.formGroupInstance.forms.get(props.formIndex);
@@ -2345,6 +2642,7 @@ const AsFormFieldBuilder = props => {
2345
2642
  mounted: mounted,
2346
2643
  mapper: props.mapper,
2347
2644
  visibility: props.visibility,
2645
+ component: props.component,
2348
2646
  children: props.children && props.children
2349
2647
  });
2350
2648
  };