extra-react-hooks 0.1.14 → 0.2.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.
Files changed (58) hide show
  1. package/README.md +8 -3
  2. package/dist/es2015/index.min.mjs +2 -2
  3. package/dist/es2015/index.min.mjs.map +1 -1
  4. package/dist/es2015/index.mjs +1188 -449
  5. package/dist/es2015/index.mjs.map +1 -1
  6. package/dist/es2015/index.umd.js +1188 -448
  7. package/dist/es2015/index.umd.js.map +1 -1
  8. package/dist/es2015/index.umd.min.js +3 -3
  9. package/dist/es2015/index.umd.min.js.map +1 -1
  10. package/dist/es2018/index.min.mjs +2 -2
  11. package/dist/es2018/index.min.mjs.map +1 -1
  12. package/dist/es2018/index.mjs +1188 -449
  13. package/dist/es2018/index.mjs.map +1 -1
  14. package/dist/es2018/index.umd.js +1188 -448
  15. package/dist/es2018/index.umd.js.map +1 -1
  16. package/dist/es2018/index.umd.min.js +3 -3
  17. package/dist/es2018/index.umd.min.js.map +1 -1
  18. package/lib/es2015/index.d.ts +1 -0
  19. package/lib/es2015/index.js +1 -0
  20. package/lib/es2015/index.js.map +1 -1
  21. package/lib/es2015/use-increment.js +5 -5
  22. package/lib/es2015/use-increment.js.map +1 -1
  23. package/lib/es2015/use-multiple-selection.d.ts +1 -1
  24. package/lib/es2015/use-multiple-selection.js +3 -3
  25. package/lib/es2015/use-multiple-selection.js.map +1 -1
  26. package/lib/es2015/use-render-counter.d.ts +1 -0
  27. package/lib/es2015/use-render-counter.js +11 -0
  28. package/lib/es2015/use-render-counter.js.map +1 -0
  29. package/lib/es2015/use-single-selection.d.ts +2 -2
  30. package/lib/es2015/use-single-selection.js +3 -3
  31. package/lib/es2015/use-single-selection.js.map +1 -1
  32. package/lib/es2015/use-state-cycle.js +5 -5
  33. package/lib/es2015/use-state-cycle.js.map +1 -1
  34. package/lib/es2015/use-step.js +21 -23
  35. package/lib/es2015/use-step.js.map +1 -1
  36. package/lib/es2015/use-toggle.js +3 -1
  37. package/lib/es2015/use-toggle.js.map +1 -1
  38. package/lib/es2018/index.d.ts +1 -0
  39. package/lib/es2018/index.js +1 -0
  40. package/lib/es2018/index.js.map +1 -1
  41. package/lib/es2018/use-increment.js +5 -5
  42. package/lib/es2018/use-increment.js.map +1 -1
  43. package/lib/es2018/use-multiple-selection.d.ts +1 -1
  44. package/lib/es2018/use-multiple-selection.js +3 -3
  45. package/lib/es2018/use-multiple-selection.js.map +1 -1
  46. package/lib/es2018/use-render-counter.d.ts +1 -0
  47. package/lib/es2018/use-render-counter.js +11 -0
  48. package/lib/es2018/use-render-counter.js.map +1 -0
  49. package/lib/es2018/use-single-selection.d.ts +2 -2
  50. package/lib/es2018/use-single-selection.js +3 -3
  51. package/lib/es2018/use-single-selection.js.map +1 -1
  52. package/lib/es2018/use-state-cycle.js +5 -5
  53. package/lib/es2018/use-state-cycle.js.map +1 -1
  54. package/lib/es2018/use-step.js +21 -23
  55. package/lib/es2018/use-step.js.map +1 -1
  56. package/lib/es2018/use-toggle.js +3 -1
  57. package/lib/es2018/use-toggle.js.map +1 -1
  58. package/package.json +3 -2
@@ -2491,13 +2491,13 @@
2491
2491
 
2492
2492
  function useIncrement(initialValue) {
2493
2493
  const [value, setValue] = react.exports.useState(initialValue);
2494
- const increment = react.exports.useCallback((step = 1) => {
2494
+ return [value, increment, reset];
2495
+ function increment(step = 1) {
2495
2496
  setValue(value => value + step);
2496
- }, []);
2497
- const reset = react.exports.useCallback(() => {
2497
+ }
2498
+ function reset() {
2498
2499
  setValue(initialValue);
2499
- }, []);
2500
- return [value, increment, reset];
2500
+ }
2501
2501
  }
2502
2502
 
2503
2503
  function useMount(effect) {
@@ -2535,6 +2535,12 @@
2535
2535
  return () => state.current === State.First;
2536
2536
  }
2537
2537
 
2538
+ function useRenderCounter() {
2539
+ const counter = react.exports.useRef(0);
2540
+ counter.current++;
2541
+ return counter.current;
2542
+ }
2543
+
2538
2544
  function useUpdateEffect(effect, deps) {
2539
2545
  const isFirstRender = useIsFirstRender();
2540
2546
  react.exports.useEffect(() => {
@@ -2544,227 +2550,227 @@
2544
2550
  }, deps);
2545
2551
  }
2546
2552
 
2547
- var es2018$7 = {};
2553
+ var es2018$9 = {};
2548
2554
 
2549
- var array = {};
2555
+ var array$2 = {};
2550
2556
 
2551
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
2552
- function isArray$3(val) {
2557
+ array$2.isntEmptyArray = array$2.isEmptyArray = array$2.isntArray = array$2.isArray = void 0;
2558
+ function isArray$5(val) {
2553
2559
  return Array.isArray(val);
2554
2560
  }
2555
- array.isArray = isArray$3;
2556
- function isntArray(val) {
2557
- return !isArray$3(val);
2561
+ array$2.isArray = isArray$5;
2562
+ function isntArray$2(val) {
2563
+ return !isArray$5(val);
2558
2564
  }
2559
- array.isntArray = isntArray;
2560
- function isEmptyArray(val) {
2565
+ array$2.isntArray = isntArray$2;
2566
+ function isEmptyArray$2(val) {
2561
2567
  return val.length === 0;
2562
2568
  }
2563
- array.isEmptyArray = isEmptyArray;
2564
- function isntEmptyArray(val) {
2569
+ array$2.isEmptyArray = isEmptyArray$2;
2570
+ function isntEmptyArray$2(val) {
2565
2571
  return val.length !== 0;
2566
2572
  }
2567
- array.isntEmptyArray = isntEmptyArray;
2573
+ array$2.isntEmptyArray = isntEmptyArray$2;
2568
2574
 
2569
- var asyncIterable = {};
2575
+ var asyncIterable$2 = {};
2570
2576
 
2571
- var _null = {};
2577
+ var _null$2 = {};
2572
2578
 
2573
- _null.isntNull = _null.isNull = void 0;
2574
- function isNull(val) {
2579
+ _null$2.isntNull = _null$2.isNull = void 0;
2580
+ function isNull$2(val) {
2575
2581
  return val === null;
2576
2582
  }
2577
- _null.isNull = isNull;
2578
- function isntNull(val) {
2579
- return !isNull(val);
2583
+ _null$2.isNull = isNull$2;
2584
+ function isntNull$2(val) {
2585
+ return !isNull$2(val);
2580
2586
  }
2581
- _null.isntNull = isntNull;
2587
+ _null$2.isntNull = isntNull$2;
2582
2588
 
2583
- var _undefined = {};
2589
+ var _undefined$2 = {};
2584
2590
 
2585
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
2586
- function isUndefined(val) {
2591
+ _undefined$2.isntUndefined = _undefined$2.isUndefined = void 0;
2592
+ function isUndefined$2(val) {
2587
2593
  return val === undefined;
2588
2594
  }
2589
- _undefined.isUndefined = isUndefined;
2590
- function isntUndefined(val) {
2591
- return !isUndefined(val);
2595
+ _undefined$2.isUndefined = isUndefined$2;
2596
+ function isntUndefined$2(val) {
2597
+ return !isUndefined$2(val);
2592
2598
  }
2593
- _undefined.isntUndefined = isntUndefined;
2599
+ _undefined$2.isntUndefined = isntUndefined$2;
2594
2600
 
2595
- var _function = {};
2601
+ var _function$2 = {};
2596
2602
 
2597
- _function.isntFunction = _function.isFunction = void 0;
2598
- function isFunction$2(val) {
2603
+ _function$2.isntFunction = _function$2.isFunction = void 0;
2604
+ function isFunction$4(val) {
2599
2605
  return typeof val === 'function';
2600
2606
  }
2601
- _function.isFunction = isFunction$2;
2602
- function isntFunction(val) {
2603
- return !isFunction$2(val);
2607
+ _function$2.isFunction = isFunction$4;
2608
+ function isntFunction$2(val) {
2609
+ return !isFunction$4(val);
2604
2610
  }
2605
- _function.isntFunction = isntFunction;
2611
+ _function$2.isntFunction = isntFunction$2;
2606
2612
 
2607
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
2608
- const null_1$2 = _null;
2609
- const undefined_1$1 = _undefined;
2610
- const function_1$2 = _function;
2611
- function isAsyncIterable$2(val) {
2612
- return (0, null_1$2.isntNull)(val)
2613
- && (0, undefined_1$1.isntUndefined)(val)
2614
- && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
2613
+ asyncIterable$2.isntAsyncIterable = asyncIterable$2.isAsyncIterable = void 0;
2614
+ const null_1$8 = _null$2;
2615
+ const undefined_1$5 = _undefined$2;
2616
+ const function_1$8 = _function$2;
2617
+ function isAsyncIterable$4(val) {
2618
+ return (0, null_1$8.isntNull)(val)
2619
+ && (0, undefined_1$5.isntUndefined)(val)
2620
+ && (0, function_1$8.isFunction)(val[Symbol.asyncIterator]);
2615
2621
  }
2616
- asyncIterable.isAsyncIterable = isAsyncIterable$2;
2617
- function isntAsyncIterable(val) {
2618
- return !isAsyncIterable$2(val);
2622
+ asyncIterable$2.isAsyncIterable = isAsyncIterable$4;
2623
+ function isntAsyncIterable$2(val) {
2624
+ return !isAsyncIterable$4(val);
2619
2625
  }
2620
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
2626
+ asyncIterable$2.isntAsyncIterable = isntAsyncIterable$2;
2621
2627
 
2622
- var bigint = {};
2628
+ var bigint$2 = {};
2623
2629
 
2624
- bigint.isntBigInt = bigint.isBigInt = void 0;
2625
- function isBigInt(val) {
2630
+ bigint$2.isntBigInt = bigint$2.isBigInt = void 0;
2631
+ function isBigInt$2(val) {
2626
2632
  return typeof val === 'bigint';
2627
2633
  }
2628
- bigint.isBigInt = isBigInt;
2629
- function isntBigInt(val) {
2630
- return !isBigInt(val);
2634
+ bigint$2.isBigInt = isBigInt$2;
2635
+ function isntBigInt$2(val) {
2636
+ return !isBigInt$2(val);
2631
2637
  }
2632
- bigint.isntBigInt = isntBigInt;
2638
+ bigint$2.isntBigInt = isntBigInt$2;
2633
2639
 
2634
- var boolean = {};
2640
+ var boolean$2 = {};
2635
2641
 
2636
- boolean.isntBoolean = boolean.isBoolean = void 0;
2637
- function isBoolean(val) {
2642
+ boolean$2.isntBoolean = boolean$2.isBoolean = void 0;
2643
+ function isBoolean$2(val) {
2638
2644
  return typeof val === 'boolean';
2639
2645
  }
2640
- boolean.isBoolean = isBoolean;
2641
- function isntBoolean(val) {
2642
- return !isBoolean(val);
2646
+ boolean$2.isBoolean = isBoolean$2;
2647
+ function isntBoolean$2(val) {
2648
+ return !isBoolean$2(val);
2643
2649
  }
2644
- boolean.isntBoolean = isntBoolean;
2650
+ boolean$2.isntBoolean = isntBoolean$2;
2645
2651
 
2646
- var char = {};
2652
+ var char$2 = {};
2647
2653
 
2648
- var string = {};
2654
+ var string$2 = {};
2649
2655
 
2650
- string.isntString = string.isString = void 0;
2651
- function isString(val) {
2656
+ string$2.isntString = string$2.isString = void 0;
2657
+ function isString$2(val) {
2652
2658
  return typeof val === 'string';
2653
2659
  }
2654
- string.isString = isString;
2655
- function isntString(val) {
2656
- return !isString(val);
2660
+ string$2.isString = isString$2;
2661
+ function isntString$2(val) {
2662
+ return !isString$2(val);
2657
2663
  }
2658
- string.isntString = isntString;
2664
+ string$2.isntString = isntString$2;
2659
2665
 
2660
- char.isntChar = char.isChar = void 0;
2661
- const string_1$1 = string;
2662
- function isChar(val) {
2663
- return (0, string_1$1.isString)(val)
2666
+ char$2.isntChar = char$2.isChar = void 0;
2667
+ const string_1$5 = string$2;
2668
+ function isChar$2(val) {
2669
+ return (0, string_1$5.isString)(val)
2664
2670
  && val.length === 1;
2665
2671
  }
2666
- char.isChar = isChar;
2667
- function isntChar(val) {
2668
- return !isChar(val);
2672
+ char$2.isChar = isChar$2;
2673
+ function isntChar$2(val) {
2674
+ return !isChar$2(val);
2669
2675
  }
2670
- char.isntChar = isntChar;
2676
+ char$2.isntChar = isntChar$2;
2671
2677
 
2672
- var date = {};
2678
+ var date$2 = {};
2673
2679
 
2674
- date.isntDate = date.isDate = void 0;
2675
- function isDate$1(val) {
2680
+ date$2.isntDate = date$2.isDate = void 0;
2681
+ function isDate$3(val) {
2676
2682
  return val instanceof Date;
2677
2683
  }
2678
- date.isDate = isDate$1;
2679
- function isntDate(val) {
2680
- return !isDate$1(val);
2684
+ date$2.isDate = isDate$3;
2685
+ function isntDate$2(val) {
2686
+ return !isDate$3(val);
2681
2687
  }
2682
- date.isntDate = isntDate;
2688
+ date$2.isntDate = isntDate$2;
2683
2689
 
2684
- var _enum = {};
2690
+ var _enum$2 = {};
2685
2691
 
2686
- _enum.inEnum = void 0;
2687
- function inEnum(val, _enum) {
2692
+ _enum$2.inEnum = void 0;
2693
+ function inEnum$2(val, _enum) {
2688
2694
  return Object.values(_enum).includes(val);
2689
2695
  }
2690
- _enum.inEnum = inEnum;
2696
+ _enum$2.inEnum = inEnum$2;
2691
2697
 
2692
- var error = {};
2698
+ var error$2 = {};
2693
2699
 
2694
- error.isntError = error.isError = void 0;
2695
- function isError(val) {
2700
+ error$2.isntError = error$2.isError = void 0;
2701
+ function isError$2(val) {
2696
2702
  return val instanceof Error;
2697
2703
  }
2698
- error.isError = isError;
2699
- function isntError(val) {
2700
- return !isError(val);
2704
+ error$2.isError = isError$2;
2705
+ function isntError$2(val) {
2706
+ return !isError$2(val);
2701
2707
  }
2702
- error.isntError = isntError;
2708
+ error$2.isntError = isntError$2;
2703
2709
 
2704
- var falsy = {};
2710
+ var falsy$2 = {};
2705
2711
 
2706
- falsy.isntFalsy = falsy.isFalsy = void 0;
2707
- function isFalsy(val) {
2712
+ falsy$2.isntFalsy = falsy$2.isFalsy = void 0;
2713
+ function isFalsy$2(val) {
2708
2714
  return !val;
2709
2715
  }
2710
- falsy.isFalsy = isFalsy;
2711
- function isntFalsy(val) {
2712
- return !isFalsy(val);
2716
+ falsy$2.isFalsy = isFalsy$2;
2717
+ function isntFalsy$2(val) {
2718
+ return !isFalsy$2(val);
2713
2719
  }
2714
- falsy.isntFalsy = isntFalsy;
2720
+ falsy$2.isntFalsy = isntFalsy$2;
2715
2721
 
2716
- var iterable = {};
2722
+ var iterable$2 = {};
2717
2723
 
2718
- iterable.isntIterable = iterable.isIterable = void 0;
2719
- const null_1$1 = _null;
2720
- const undefined_1 = _undefined;
2721
- const function_1$1 = _function;
2722
- function isIterable$2(val) {
2723
- return (0, null_1$1.isntNull)(val)
2724
- && (0, undefined_1.isntUndefined)(val)
2725
- && (0, function_1$1.isFunction)(val[Symbol.iterator]);
2724
+ iterable$2.isntIterable = iterable$2.isIterable = void 0;
2725
+ const null_1$7 = _null$2;
2726
+ const undefined_1$4 = _undefined$2;
2727
+ const function_1$7 = _function$2;
2728
+ function isIterable$4(val) {
2729
+ return (0, null_1$7.isntNull)(val)
2730
+ && (0, undefined_1$4.isntUndefined)(val)
2731
+ && (0, function_1$7.isFunction)(val[Symbol.iterator]);
2726
2732
  }
2727
- iterable.isIterable = isIterable$2;
2728
- function isntIterable(val) {
2729
- return !isIterable$2(val);
2733
+ iterable$2.isIterable = isIterable$4;
2734
+ function isntIterable$2(val) {
2735
+ return !isIterable$4(val);
2730
2736
  }
2731
- iterable.isntIterable = isntIterable;
2737
+ iterable$2.isntIterable = isntIterable$2;
2732
2738
 
2733
- var json = {};
2739
+ var json$2 = {};
2734
2740
 
2735
- var number = {};
2741
+ var number$2 = {};
2736
2742
 
2737
- number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
2738
- function isNumber(val) {
2743
+ number$2.isntNaN = number$2.isNaN = number$2.isNegativeInfinity = number$2.isPositiveInfinity = number$2.isFinite = number$2.isntNumber = number$2.isNumber = void 0;
2744
+ function isNumber$2(val) {
2739
2745
  return typeof val === 'number';
2740
2746
  }
2741
- number.isNumber = isNumber;
2742
- function isntNumber(val) {
2743
- return !isNumber(val);
2747
+ number$2.isNumber = isNumber$2;
2748
+ function isntNumber$2(val) {
2749
+ return !isNumber$2(val);
2744
2750
  }
2745
- number.isntNumber = isntNumber;
2746
- function isFinite(val) {
2751
+ number$2.isntNumber = isntNumber$2;
2752
+ function isFinite$2(val) {
2747
2753
  return Number.isFinite(val);
2748
2754
  }
2749
- number.isFinite = isFinite;
2750
- function isPositiveInfinity(val) {
2755
+ number$2.isFinite = isFinite$2;
2756
+ function isPositiveInfinity$2(val) {
2751
2757
  return val === Infinity;
2752
2758
  }
2753
- number.isPositiveInfinity = isPositiveInfinity;
2754
- function isNegativeInfinity(val) {
2759
+ number$2.isPositiveInfinity = isPositiveInfinity$2;
2760
+ function isNegativeInfinity$2(val) {
2755
2761
  return val === -Infinity;
2756
2762
  }
2757
- number.isNegativeInfinity = isNegativeInfinity;
2758
- function isNaN$1(val) {
2763
+ number$2.isNegativeInfinity = isNegativeInfinity$2;
2764
+ function isNaN$3(val) {
2759
2765
  return Number.isNaN(val);
2760
2766
  }
2761
- number.isNaN = isNaN$1;
2762
- function isntNaN(val) {
2763
- return !isNaN$1(val);
2767
+ number$2.isNaN = isNaN$3;
2768
+ function isntNaN$2(val) {
2769
+ return !isNaN$3(val);
2764
2770
  }
2765
- number.isntNaN = isntNaN;
2771
+ number$2.isntNaN = isntNaN$2;
2766
2772
 
2767
- var object = {};
2773
+ var object$2 = {};
2768
2774
 
2769
2775
  /** Detect free variable `global` from Node.js. */
2770
2776
 
@@ -2992,7 +2998,7 @@
2992
2998
  * _.isPlainObject(Object.create(null));
2993
2999
  * // => true
2994
3000
  */
2995
- function isPlainObject$1(value) {
3001
+ function isPlainObject$3(value) {
2996
3002
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
2997
3003
  return false;
2998
3004
  }
@@ -3005,59 +3011,59 @@
3005
3011
  funcToString.call(Ctor) == objectCtorString;
3006
3012
  }
3007
3013
 
3008
- var isPlainObject_1$1 = isPlainObject$1;
3014
+ var isPlainObject_1$3 = isPlainObject$3;
3009
3015
 
3010
- var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3016
+ var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3011
3017
  return (mod && mod.__esModule) ? mod : { "default": mod };
3012
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
3013
- const isPlainObject_1 = __importDefault(isPlainObject_1$1);
3014
- function isObject(val) {
3018
+ };object$2.isntEmptyObject = object$2.isEmptyObject = object$2.isntPlainObject = object$2.isPlainObject = object$2.isntObject = object$2.isObject = void 0;
3019
+ const isPlainObject_1$2 = __importDefault$2(isPlainObject_1$3);
3020
+ function isObject$2(val) {
3015
3021
  return val !== null
3016
3022
  && typeof val === 'object';
3017
3023
  }
3018
- object.isObject = isObject;
3019
- function isntObject(val) {
3020
- return !isObject(val);
3024
+ object$2.isObject = isObject$2;
3025
+ function isntObject$2(val) {
3026
+ return !isObject$2(val);
3021
3027
  }
3022
- object.isntObject = isntObject;
3023
- function isPlainObject(val) {
3024
- return (0, isPlainObject_1.default)(val);
3028
+ object$2.isntObject = isntObject$2;
3029
+ function isPlainObject$2(val) {
3030
+ return (0, isPlainObject_1$2.default)(val);
3025
3031
  }
3026
- object.isPlainObject = isPlainObject;
3027
- function isntPlainObject(val) {
3028
- return !isPlainObject(val);
3032
+ object$2.isPlainObject = isPlainObject$2;
3033
+ function isntPlainObject$2(val) {
3034
+ return !isPlainObject$2(val);
3029
3035
  }
3030
- object.isntPlainObject = isntPlainObject;
3031
- function isEmptyObject(val) {
3036
+ object$2.isntPlainObject = isntPlainObject$2;
3037
+ function isEmptyObject$2(val) {
3032
3038
  return Object.keys(val).length === 0;
3033
3039
  }
3034
- object.isEmptyObject = isEmptyObject;
3035
- function isntEmptyObject(val) {
3040
+ object$2.isEmptyObject = isEmptyObject$2;
3041
+ function isntEmptyObject$2(val) {
3036
3042
  return Object.keys(val).length !== 0;
3037
3043
  }
3038
- object.isntEmptyObject = isntEmptyObject;
3039
-
3040
- json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
3041
- const null_1 = _null;
3042
- const boolean_1 = boolean;
3043
- const string_1 = string;
3044
- const number_1 = number;
3045
- const array_1 = array;
3046
- const object_1$1 = object;
3047
- function isJson(val) {
3048
- return (0, null_1.isNull)(val)
3049
- || (0, boolean_1.isBoolean)(val)
3050
- || (0, string_1.isString)(val)
3051
- || (0, number_1.isNumber)(val)
3052
- || ((0, array_1.isArray)(val) && val.every(isJson))
3053
- || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
3054
- }
3055
- json.isJson = isJson;
3056
- function isntJson(val) {
3057
- return !isJson(val);
3058
- }
3059
- json.isntJson = isntJson;
3060
- function isJsonable(val) {
3044
+ object$2.isntEmptyObject = isntEmptyObject$2;
3045
+
3046
+ json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
3047
+ const null_1$6 = _null$2;
3048
+ const boolean_1$2 = boolean$2;
3049
+ const string_1$4 = string$2;
3050
+ const number_1$2 = number$2;
3051
+ const array_1$2 = array$2;
3052
+ const object_1$5 = object$2;
3053
+ function isJson$2(val) {
3054
+ return (0, null_1$6.isNull)(val)
3055
+ || (0, boolean_1$2.isBoolean)(val)
3056
+ || (0, string_1$4.isString)(val)
3057
+ || (0, number_1$2.isNumber)(val)
3058
+ || ((0, array_1$2.isArray)(val) && val.every(isJson$2))
3059
+ || ((0, object_1$5.isPlainObject)(val) && Object.values(val).every(isJson$2));
3060
+ }
3061
+ json$2.isJson = isJson$2;
3062
+ function isntJson$2(val) {
3063
+ return !isJson$2(val);
3064
+ }
3065
+ json$2.isntJson = isntJson$2;
3066
+ function isJsonable$2(val) {
3061
3067
  try {
3062
3068
  JSON.stringify(val);
3063
3069
  return true;
@@ -3066,39 +3072,39 @@
3066
3072
  return false;
3067
3073
  }
3068
3074
  }
3069
- json.isJsonable = isJsonable;
3070
- function isntJsonable(val) {
3071
- return !isntJsonable();
3075
+ json$2.isJsonable = isJsonable$2;
3076
+ function isntJsonable$2(val) {
3077
+ return !isntJsonable$2();
3072
3078
  }
3073
- json.isntJsonable = isntJsonable;
3079
+ json$2.isntJsonable = isntJsonable$2;
3074
3080
 
3075
- var promise = {};
3081
+ var promise$2 = {};
3076
3082
 
3077
- promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
3078
- const object_1 = object;
3079
- const function_1 = _function;
3080
- function isPromise$2(val) {
3083
+ promise$2.isPromiseLike = promise$2.isntPromiseLike = promise$2.isntPromise = promise$2.isPromise = void 0;
3084
+ const object_1$4 = object$2;
3085
+ const function_1$6 = _function$2;
3086
+ function isPromise$4(val) {
3081
3087
  return val instanceof Promise;
3082
3088
  }
3083
- promise.isPromise = isPromise$2;
3084
- function isntPromise(val) {
3085
- return !isPromise$2(val);
3089
+ promise$2.isPromise = isPromise$4;
3090
+ function isntPromise$2(val) {
3091
+ return !isPromise$4(val);
3086
3092
  }
3087
- promise.isntPromise = isntPromise;
3088
- function isntPromiseLike(val) {
3089
- return !isPromiseLike(val);
3093
+ promise$2.isntPromise = isntPromise$2;
3094
+ function isntPromiseLike$2(val) {
3095
+ return !isPromiseLike$2(val);
3090
3096
  }
3091
- promise.isntPromiseLike = isntPromiseLike;
3092
- function isPromiseLike(val) {
3093
- return (0, object_1.isObject)(val)
3094
- && (0, function_1.isFunction)(val.then);
3097
+ promise$2.isntPromiseLike = isntPromiseLike$2;
3098
+ function isPromiseLike$2(val) {
3099
+ return (0, object_1$4.isObject)(val)
3100
+ && (0, function_1$6.isFunction)(val.then);
3095
3101
  }
3096
- promise.isPromiseLike = isPromiseLike;
3102
+ promise$2.isPromiseLike = isPromiseLike$2;
3097
3103
 
3098
- var url = {};
3104
+ var url$2 = {};
3099
3105
 
3100
- url.isAbsoluteURL = void 0;
3101
- function isAbsoluteURL(str) {
3106
+ url$2.isAbsoluteURL = void 0;
3107
+ function isAbsoluteURL$2(str) {
3102
3108
  try {
3103
3109
  new URL(str);
3104
3110
  return true;
@@ -3107,7 +3113,19 @@
3107
3113
  return false;
3108
3114
  }
3109
3115
  }
3110
- url.isAbsoluteURL = isAbsoluteURL;
3116
+ url$2.isAbsoluteURL = isAbsoluteURL$2;
3117
+
3118
+ var regexp = {};
3119
+
3120
+ regexp.isntRegExp = regexp.isRegExp = void 0;
3121
+ function isRegExp(val) {
3122
+ return val instanceof RegExp;
3123
+ }
3124
+ regexp.isRegExp = isRegExp;
3125
+ function isntRegExp(val) {
3126
+ return !isRegExp(val);
3127
+ }
3128
+ regexp.isntRegExp = isntRegExp;
3111
3129
 
3112
3130
  (function (exports) {
3113
3131
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -3123,39 +3141,40 @@
3123
3141
  }));
3124
3142
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3125
3143
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3126
- };__exportStar(array, exports);
3127
- __exportStar(asyncIterable, exports);
3128
- __exportStar(bigint, exports);
3129
- __exportStar(boolean, exports);
3130
- __exportStar(char, exports);
3131
- __exportStar(date, exports);
3132
- __exportStar(_enum, exports);
3133
- __exportStar(error, exports);
3134
- __exportStar(falsy, exports);
3135
- __exportStar(_function, exports);
3136
- __exportStar(iterable, exports);
3137
- __exportStar(json, exports);
3138
- __exportStar(_null, exports);
3139
- __exportStar(number, exports);
3140
- __exportStar(object, exports);
3141
- __exportStar(promise, exports);
3142
- __exportStar(string, exports);
3143
- __exportStar(_undefined, exports);
3144
- __exportStar(url, exports);
3144
+ };__exportStar(array$2, exports);
3145
+ __exportStar(asyncIterable$2, exports);
3146
+ __exportStar(bigint$2, exports);
3147
+ __exportStar(boolean$2, exports);
3148
+ __exportStar(char$2, exports);
3149
+ __exportStar(date$2, exports);
3150
+ __exportStar(_enum$2, exports);
3151
+ __exportStar(error$2, exports);
3152
+ __exportStar(falsy$2, exports);
3153
+ __exportStar(_function$2, exports);
3154
+ __exportStar(iterable$2, exports);
3155
+ __exportStar(json$2, exports);
3156
+ __exportStar(_null$2, exports);
3157
+ __exportStar(number$2, exports);
3158
+ __exportStar(object$2, exports);
3159
+ __exportStar(promise$2, exports);
3160
+ __exportStar(string$2, exports);
3161
+ __exportStar(_undefined$2, exports);
3162
+ __exportStar(url$2, exports);
3163
+ __exportStar(regexp, exports);
3145
3164
 
3146
- } (es2018$7));
3165
+ } (es2018$9));
3147
3166
 
3148
- var es2018$6 = {};
3167
+ var es2018$8 = {};
3149
3168
 
3150
3169
  var customError = {};
3151
3170
 
3152
- var es2018$5 = {};
3171
+ var es2018$7 = {};
3153
3172
 
3154
3173
  var middleware = {};
3155
3174
 
3156
3175
  var chunkAsync = {};
3157
3176
 
3158
- var es2018$4 = {};
3177
+ var es2018$6 = {};
3159
3178
 
3160
3179
  var go$1 = {};
3161
3180
 
@@ -3177,7 +3196,7 @@
3177
3196
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3178
3197
  };__exportStar(go$1, exports);
3179
3198
 
3180
- } (es2018$4));
3199
+ } (es2018$6));
3181
3200
 
3182
3201
  var hasRequiredChunkAsync;
3183
3202
 
@@ -3185,7 +3204,7 @@
3185
3204
  if (hasRequiredChunkAsync) return chunkAsync;
3186
3205
  hasRequiredChunkAsync = 1;
3187
3206
  chunkAsync.chunkAsync = void 0;
3188
- const go_1 = es2018$4;
3207
+ const go_1 = es2018$6;
3189
3208
  const errors_1 = requireEs2018();
3190
3209
  function chunkAsync$1(iterable, size) {
3191
3210
  (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -3210,47 +3229,407 @@
3210
3229
 
3211
3230
  var chunkByAsync$1 = {};
3212
3231
 
3213
- chunkByAsync$1.chunkByAsync = void 0;
3214
- const types_1$j = es2018$7;
3215
- function chunkByAsync(iterable, predicate) {
3216
- if ((0, types_1$j.isAsyncIterable)(iterable)) {
3217
- return chunkByAsyncIterable(iterable);
3218
- }
3219
- else {
3220
- return chunkByIterable(iterable);
3221
- }
3222
- async function* chunkByAsyncIterable(iterable) {
3223
- let buffer = [];
3224
- let index = 0;
3225
- for await (const element of iterable) {
3226
- buffer.push(element);
3227
- if (await predicate(element, index)) {
3228
- yield buffer;
3229
- buffer = [];
3230
- }
3231
- index++;
3232
- }
3233
- if (buffer.length)
3234
- yield buffer;
3235
- }
3236
- async function* chunkByIterable(iterable) {
3237
- let buffer = [];
3238
- let index = 0;
3239
- for (const element of iterable) {
3240
- buffer.push(element);
3241
- if (await predicate(element, index)) {
3242
- yield buffer;
3243
- buffer = [];
3244
- }
3245
- index++;
3246
- }
3247
- if (buffer.length)
3248
- yield buffer;
3249
- }
3250
- }
3251
- chunkByAsync$1.chunkByAsync = chunkByAsync;
3232
+ var es2018$5 = {};
3252
3233
 
3253
- var chunkBy$1 = {};
3234
+ var array$1 = {};
3235
+
3236
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
3237
+ function isArray$4(val) {
3238
+ return Array.isArray(val);
3239
+ }
3240
+ array$1.isArray = isArray$4;
3241
+ function isntArray$1(val) {
3242
+ return !isArray$4(val);
3243
+ }
3244
+ array$1.isntArray = isntArray$1;
3245
+ function isEmptyArray$1(val) {
3246
+ return val.length === 0;
3247
+ }
3248
+ array$1.isEmptyArray = isEmptyArray$1;
3249
+ function isntEmptyArray$1(val) {
3250
+ return val.length !== 0;
3251
+ }
3252
+ array$1.isntEmptyArray = isntEmptyArray$1;
3253
+
3254
+ var asyncIterable$1 = {};
3255
+
3256
+ var _null$1 = {};
3257
+
3258
+ _null$1.isntNull = _null$1.isNull = void 0;
3259
+ function isNull$1(val) {
3260
+ return val === null;
3261
+ }
3262
+ _null$1.isNull = isNull$1;
3263
+ function isntNull$1(val) {
3264
+ return !isNull$1(val);
3265
+ }
3266
+ _null$1.isntNull = isntNull$1;
3267
+
3268
+ var _undefined$1 = {};
3269
+
3270
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
3271
+ function isUndefined$1(val) {
3272
+ return val === undefined;
3273
+ }
3274
+ _undefined$1.isUndefined = isUndefined$1;
3275
+ function isntUndefined$1(val) {
3276
+ return !isUndefined$1(val);
3277
+ }
3278
+ _undefined$1.isntUndefined = isntUndefined$1;
3279
+
3280
+ var _function$1 = {};
3281
+
3282
+ _function$1.isntFunction = _function$1.isFunction = void 0;
3283
+ function isFunction$3(val) {
3284
+ return typeof val === 'function';
3285
+ }
3286
+ _function$1.isFunction = isFunction$3;
3287
+ function isntFunction$1(val) {
3288
+ return !isFunction$3(val);
3289
+ }
3290
+ _function$1.isntFunction = isntFunction$1;
3291
+
3292
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
3293
+ const null_1$5 = _null$1;
3294
+ const undefined_1$3 = _undefined$1;
3295
+ const function_1$5 = _function$1;
3296
+ function isAsyncIterable$3(val) {
3297
+ return (0, null_1$5.isntNull)(val)
3298
+ && (0, undefined_1$3.isntUndefined)(val)
3299
+ && (0, function_1$5.isFunction)(val[Symbol.asyncIterator]);
3300
+ }
3301
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$3;
3302
+ function isntAsyncIterable$1(val) {
3303
+ return !isAsyncIterable$3(val);
3304
+ }
3305
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
3306
+
3307
+ var bigint$1 = {};
3308
+
3309
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
3310
+ function isBigInt$1(val) {
3311
+ return typeof val === 'bigint';
3312
+ }
3313
+ bigint$1.isBigInt = isBigInt$1;
3314
+ function isntBigInt$1(val) {
3315
+ return !isBigInt$1(val);
3316
+ }
3317
+ bigint$1.isntBigInt = isntBigInt$1;
3318
+
3319
+ var boolean$1 = {};
3320
+
3321
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
3322
+ function isBoolean$1(val) {
3323
+ return typeof val === 'boolean';
3324
+ }
3325
+ boolean$1.isBoolean = isBoolean$1;
3326
+ function isntBoolean$1(val) {
3327
+ return !isBoolean$1(val);
3328
+ }
3329
+ boolean$1.isntBoolean = isntBoolean$1;
3330
+
3331
+ var char$1 = {};
3332
+
3333
+ var string$1 = {};
3334
+
3335
+ string$1.isntString = string$1.isString = void 0;
3336
+ function isString$1(val) {
3337
+ return typeof val === 'string';
3338
+ }
3339
+ string$1.isString = isString$1;
3340
+ function isntString$1(val) {
3341
+ return !isString$1(val);
3342
+ }
3343
+ string$1.isntString = isntString$1;
3344
+
3345
+ char$1.isntChar = char$1.isChar = void 0;
3346
+ const string_1$3 = string$1;
3347
+ function isChar$1(val) {
3348
+ return (0, string_1$3.isString)(val)
3349
+ && val.length === 1;
3350
+ }
3351
+ char$1.isChar = isChar$1;
3352
+ function isntChar$1(val) {
3353
+ return !isChar$1(val);
3354
+ }
3355
+ char$1.isntChar = isntChar$1;
3356
+
3357
+ var date$1 = {};
3358
+
3359
+ date$1.isntDate = date$1.isDate = void 0;
3360
+ function isDate$2(val) {
3361
+ return val instanceof Date;
3362
+ }
3363
+ date$1.isDate = isDate$2;
3364
+ function isntDate$1(val) {
3365
+ return !isDate$2(val);
3366
+ }
3367
+ date$1.isntDate = isntDate$1;
3368
+
3369
+ var _enum$1 = {};
3370
+
3371
+ _enum$1.inEnum = void 0;
3372
+ function inEnum$1(val, _enum) {
3373
+ return Object.values(_enum).includes(val);
3374
+ }
3375
+ _enum$1.inEnum = inEnum$1;
3376
+
3377
+ var error$1 = {};
3378
+
3379
+ error$1.isntError = error$1.isError = void 0;
3380
+ function isError$1(val) {
3381
+ return val instanceof Error;
3382
+ }
3383
+ error$1.isError = isError$1;
3384
+ function isntError$1(val) {
3385
+ return !isError$1(val);
3386
+ }
3387
+ error$1.isntError = isntError$1;
3388
+
3389
+ var falsy$1 = {};
3390
+
3391
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
3392
+ function isFalsy$1(val) {
3393
+ return !val;
3394
+ }
3395
+ falsy$1.isFalsy = isFalsy$1;
3396
+ function isntFalsy$1(val) {
3397
+ return !isFalsy$1(val);
3398
+ }
3399
+ falsy$1.isntFalsy = isntFalsy$1;
3400
+
3401
+ var iterable$1 = {};
3402
+
3403
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
3404
+ const null_1$4 = _null$1;
3405
+ const undefined_1$2 = _undefined$1;
3406
+ const function_1$4 = _function$1;
3407
+ function isIterable$3(val) {
3408
+ return (0, null_1$4.isntNull)(val)
3409
+ && (0, undefined_1$2.isntUndefined)(val)
3410
+ && (0, function_1$4.isFunction)(val[Symbol.iterator]);
3411
+ }
3412
+ iterable$1.isIterable = isIterable$3;
3413
+ function isntIterable$1(val) {
3414
+ return !isIterable$3(val);
3415
+ }
3416
+ iterable$1.isntIterable = isntIterable$1;
3417
+
3418
+ var json$1 = {};
3419
+
3420
+ var number$1 = {};
3421
+
3422
+ number$1.isntNaN = number$1.isNaN = number$1.isNegativeInfinity = number$1.isPositiveInfinity = number$1.isFinite = number$1.isntNumber = number$1.isNumber = void 0;
3423
+ function isNumber$1(val) {
3424
+ return typeof val === 'number';
3425
+ }
3426
+ number$1.isNumber = isNumber$1;
3427
+ function isntNumber$1(val) {
3428
+ return !isNumber$1(val);
3429
+ }
3430
+ number$1.isntNumber = isntNumber$1;
3431
+ function isFinite$1(val) {
3432
+ return Number.isFinite(val);
3433
+ }
3434
+ number$1.isFinite = isFinite$1;
3435
+ function isPositiveInfinity$1(val) {
3436
+ return val === Infinity;
3437
+ }
3438
+ number$1.isPositiveInfinity = isPositiveInfinity$1;
3439
+ function isNegativeInfinity$1(val) {
3440
+ return val === -Infinity;
3441
+ }
3442
+ number$1.isNegativeInfinity = isNegativeInfinity$1;
3443
+ function isNaN$2(val) {
3444
+ return Number.isNaN(val);
3445
+ }
3446
+ number$1.isNaN = isNaN$2;
3447
+ function isntNaN$1(val) {
3448
+ return !isNaN$2(val);
3449
+ }
3450
+ number$1.isntNaN = isntNaN$1;
3451
+
3452
+ var object$1 = {};
3453
+
3454
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3455
+ return (mod && mod.__esModule) ? mod : { "default": mod };
3456
+ };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
3457
+ const isPlainObject_1$1 = __importDefault$1(isPlainObject_1$3);
3458
+ function isObject$1(val) {
3459
+ return val !== null
3460
+ && typeof val === 'object';
3461
+ }
3462
+ object$1.isObject = isObject$1;
3463
+ function isntObject$1(val) {
3464
+ return !isObject$1(val);
3465
+ }
3466
+ object$1.isntObject = isntObject$1;
3467
+ function isPlainObject$1(val) {
3468
+ return (0, isPlainObject_1$1.default)(val);
3469
+ }
3470
+ object$1.isPlainObject = isPlainObject$1;
3471
+ function isntPlainObject$1(val) {
3472
+ return !isPlainObject$1(val);
3473
+ }
3474
+ object$1.isntPlainObject = isntPlainObject$1;
3475
+ function isEmptyObject$1(val) {
3476
+ return Object.keys(val).length === 0;
3477
+ }
3478
+ object$1.isEmptyObject = isEmptyObject$1;
3479
+ function isntEmptyObject$1(val) {
3480
+ return Object.keys(val).length !== 0;
3481
+ }
3482
+ object$1.isntEmptyObject = isntEmptyObject$1;
3483
+
3484
+ json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
3485
+ const null_1$3 = _null$1;
3486
+ const boolean_1$1 = boolean$1;
3487
+ const string_1$2 = string$1;
3488
+ const number_1$1 = number$1;
3489
+ const array_1$1 = array$1;
3490
+ const object_1$3 = object$1;
3491
+ function isJson$1(val) {
3492
+ return (0, null_1$3.isNull)(val)
3493
+ || (0, boolean_1$1.isBoolean)(val)
3494
+ || (0, string_1$2.isString)(val)
3495
+ || (0, number_1$1.isNumber)(val)
3496
+ || ((0, array_1$1.isArray)(val) && val.every(isJson$1))
3497
+ || ((0, object_1$3.isPlainObject)(val) && Object.values(val).every(isJson$1));
3498
+ }
3499
+ json$1.isJson = isJson$1;
3500
+ function isntJson$1(val) {
3501
+ return !isJson$1(val);
3502
+ }
3503
+ json$1.isntJson = isntJson$1;
3504
+ function isJsonable$1(val) {
3505
+ try {
3506
+ JSON.stringify(val);
3507
+ return true;
3508
+ }
3509
+ catch (_a) {
3510
+ return false;
3511
+ }
3512
+ }
3513
+ json$1.isJsonable = isJsonable$1;
3514
+ function isntJsonable$1(val) {
3515
+ return !isntJsonable$1();
3516
+ }
3517
+ json$1.isntJsonable = isntJsonable$1;
3518
+
3519
+ var promise$1 = {};
3520
+
3521
+ promise$1.isPromiseLike = promise$1.isntPromiseLike = promise$1.isntPromise = promise$1.isPromise = void 0;
3522
+ const object_1$2 = object$1;
3523
+ const function_1$3 = _function$1;
3524
+ function isPromise$3(val) {
3525
+ return val instanceof Promise;
3526
+ }
3527
+ promise$1.isPromise = isPromise$3;
3528
+ function isntPromise$1(val) {
3529
+ return !isPromise$3(val);
3530
+ }
3531
+ promise$1.isntPromise = isntPromise$1;
3532
+ function isntPromiseLike$1(val) {
3533
+ return !isPromiseLike$1(val);
3534
+ }
3535
+ promise$1.isntPromiseLike = isntPromiseLike$1;
3536
+ function isPromiseLike$1(val) {
3537
+ return (0, object_1$2.isObject)(val)
3538
+ && (0, function_1$3.isFunction)(val.then);
3539
+ }
3540
+ promise$1.isPromiseLike = isPromiseLike$1;
3541
+
3542
+ var url$1 = {};
3543
+
3544
+ url$1.isAbsoluteURL = void 0;
3545
+ function isAbsoluteURL$1(str) {
3546
+ try {
3547
+ new URL(str);
3548
+ return true;
3549
+ }
3550
+ catch (_a) {
3551
+ return false;
3552
+ }
3553
+ }
3554
+ url$1.isAbsoluteURL = isAbsoluteURL$1;
3555
+
3556
+ (function (exports) {
3557
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3558
+ if (k2 === undefined) k2 = k;
3559
+ var desc = Object.getOwnPropertyDescriptor(m, k);
3560
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3561
+ desc = { enumerable: true, get: function() { return m[k]; } };
3562
+ }
3563
+ Object.defineProperty(o, k2, desc);
3564
+ }) : (function(o, m, k, k2) {
3565
+ if (k2 === undefined) k2 = k;
3566
+ o[k2] = m[k];
3567
+ }));
3568
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3569
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3570
+ };__exportStar(array$1, exports);
3571
+ __exportStar(asyncIterable$1, exports);
3572
+ __exportStar(bigint$1, exports);
3573
+ __exportStar(boolean$1, exports);
3574
+ __exportStar(char$1, exports);
3575
+ __exportStar(date$1, exports);
3576
+ __exportStar(_enum$1, exports);
3577
+ __exportStar(error$1, exports);
3578
+ __exportStar(falsy$1, exports);
3579
+ __exportStar(_function$1, exports);
3580
+ __exportStar(iterable$1, exports);
3581
+ __exportStar(json$1, exports);
3582
+ __exportStar(_null$1, exports);
3583
+ __exportStar(number$1, exports);
3584
+ __exportStar(object$1, exports);
3585
+ __exportStar(promise$1, exports);
3586
+ __exportStar(string$1, exports);
3587
+ __exportStar(_undefined$1, exports);
3588
+ __exportStar(url$1, exports);
3589
+
3590
+ } (es2018$5));
3591
+
3592
+ chunkByAsync$1.chunkByAsync = void 0;
3593
+ const types_1$j = es2018$5;
3594
+ function chunkByAsync(iterable, predicate) {
3595
+ if ((0, types_1$j.isAsyncIterable)(iterable)) {
3596
+ return chunkByAsyncIterable(iterable);
3597
+ }
3598
+ else {
3599
+ return chunkByIterable(iterable);
3600
+ }
3601
+ async function* chunkByAsyncIterable(iterable) {
3602
+ let buffer = [];
3603
+ let index = 0;
3604
+ for await (const element of iterable) {
3605
+ buffer.push(element);
3606
+ if (await predicate(element, index)) {
3607
+ yield buffer;
3608
+ buffer = [];
3609
+ }
3610
+ index++;
3611
+ }
3612
+ if (buffer.length)
3613
+ yield buffer;
3614
+ }
3615
+ async function* chunkByIterable(iterable) {
3616
+ let buffer = [];
3617
+ let index = 0;
3618
+ for (const element of iterable) {
3619
+ buffer.push(element);
3620
+ if (await predicate(element, index)) {
3621
+ yield buffer;
3622
+ buffer = [];
3623
+ }
3624
+ index++;
3625
+ }
3626
+ if (buffer.length)
3627
+ yield buffer;
3628
+ }
3629
+ }
3630
+ chunkByAsync$1.chunkByAsync = chunkByAsync;
3631
+
3632
+ var chunkBy$1 = {};
3254
3633
 
3255
3634
  chunkBy$1.chunkBy = void 0;
3256
3635
  function* chunkBy(iterable, predicate) {
@@ -3277,7 +3656,7 @@
3277
3656
  if (hasRequiredChunk) return chunk;
3278
3657
  hasRequiredChunk = 1;
3279
3658
  chunk.chunk = void 0;
3280
- const go_1 = es2018$4;
3659
+ const go_1 = es2018$6;
3281
3660
  const errors_1 = requireEs2018();
3282
3661
  function chunk$1(iterable, size) {
3283
3662
  (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -3303,8 +3682,8 @@
3303
3682
  var concatAsync$1 = {};
3304
3683
 
3305
3684
  concatAsync$1.concatAsync = void 0;
3306
- const types_1$i = es2018$7;
3307
- const go_1$1 = es2018$4;
3685
+ const types_1$i = es2018$5;
3686
+ const go_1$1 = es2018$6;
3308
3687
  function concatAsync(iterable, ...otherIterables) {
3309
3688
  return (0, go_1$1.go)(async function* () {
3310
3689
  for (const iter of [iterable, ...otherIterables]) {
@@ -3326,7 +3705,7 @@
3326
3705
  var concat$5 = {};
3327
3706
 
3328
3707
  concat$5.concat = void 0;
3329
- const go_1 = es2018$4;
3708
+ const go_1 = es2018$6;
3330
3709
  function concat$4(iterable, ...otherIterables) {
3331
3710
  return (0, go_1.go)(function* () {
3332
3711
  for (const iter of [iterable, ...otherIterables]) {
@@ -3360,7 +3739,7 @@
3360
3739
  if (hasRequiredDropAsync) return dropAsync;
3361
3740
  hasRequiredDropAsync = 1;
3362
3741
  dropAsync.dropAsync = void 0;
3363
- const go_1 = es2018$4;
3742
+ const go_1 = es2018$6;
3364
3743
  const utils_1 = utils;
3365
3744
  const errors_1 = requireEs2018();
3366
3745
  function dropAsync$1(iterable, count) {
@@ -3403,7 +3782,7 @@
3403
3782
  if (hasRequiredDropRightAsync) return dropRightAsync;
3404
3783
  hasRequiredDropRightAsync = 1;
3405
3784
  dropRightAsync.dropRightAsync = void 0;
3406
- const go_1 = es2018$4;
3785
+ const go_1 = es2018$6;
3407
3786
  const utils_1 = utils;
3408
3787
  const errors_1 = requireEs2018();
3409
3788
  function dropRightAsync$1(iterable, count) {
@@ -3439,7 +3818,7 @@
3439
3818
  if (hasRequiredDropRight) return dropRight;
3440
3819
  hasRequiredDropRight = 1;
3441
3820
  dropRight.dropRight = void 0;
3442
- const go_1 = es2018$4;
3821
+ const go_1 = es2018$6;
3443
3822
  const utils_1 = utils;
3444
3823
  const errors_1 = requireEs2018();
3445
3824
  function dropRight$1(iterable, count) {
@@ -3460,7 +3839,7 @@
3460
3839
  var dropUntilAsync$1 = {};
3461
3840
 
3462
3841
  dropUntilAsync$1.dropUntilAsync = void 0;
3463
- const types_1$h = es2018$7;
3842
+ const types_1$h = es2018$5;
3464
3843
  function dropUntilAsync(iterable, predicate) {
3465
3844
  if ((0, types_1$h.isAsyncIterable)(iterable)) {
3466
3845
  return dropUntilAsyncIterable(iterable);
@@ -3547,7 +3926,7 @@
3547
3926
  if (hasRequiredDrop) return drop;
3548
3927
  hasRequiredDrop = 1;
3549
3928
  drop.drop = void 0;
3550
- const go_1 = es2018$4;
3929
+ const go_1 = es2018$6;
3551
3930
  const utils_1 = utils;
3552
3931
  const errors_1 = requireEs2018();
3553
3932
  function drop$1(iterable, count) {
@@ -3585,7 +3964,7 @@
3585
3964
  var filterAsync$1 = {};
3586
3965
 
3587
3966
  filterAsync$1.filterAsync = void 0;
3588
- const types_1$g = es2018$7;
3967
+ const types_1$g = es2018$5;
3589
3968
  function filterAsync(iterable, predicate) {
3590
3969
  if ((0, types_1$g.isAsyncIterable)(iterable)) {
3591
3970
  return filterAsyncIterable(iterable);
@@ -3632,7 +4011,7 @@
3632
4011
  var flattenByAsync$1 = {};
3633
4012
 
3634
4013
  flattenByAsync$1.flattenByAsync = void 0;
3635
- const types_1$f = es2018$7;
4014
+ const types_1$f = es2018$5;
3636
4015
  function flattenByAsync(iterable, predicate) {
3637
4016
  if ((0, types_1$f.isAsyncIterable)(iterable)) {
3638
4017
  return flattenByAsyncIterable(iterable);
@@ -3706,7 +4085,7 @@
3706
4085
  var flattenBy$1 = {};
3707
4086
 
3708
4087
  flattenBy$1.flattenBy = void 0;
3709
- const types_1$e = es2018$7;
4088
+ const types_1$e = es2018$5;
3710
4089
  function flattenBy(iterable, predicate) {
3711
4090
  return flatten(iterable, 1);
3712
4091
  function* flatten(iterable, level) {
@@ -3765,7 +4144,7 @@
3765
4144
  var mapAsync$1 = {};
3766
4145
 
3767
4146
  mapAsync$1.mapAsync = void 0;
3768
- const types_1$d = es2018$7;
4147
+ const types_1$d = es2018$5;
3769
4148
  function mapAsync(iterable, fn) {
3770
4149
  if ((0, types_1$d.isAsyncIterable)(iterable)) {
3771
4150
  return mapAsyncIterable(iterable);
@@ -3810,7 +4189,7 @@
3810
4189
  if (hasRequiredRepeatAsync) return repeatAsync;
3811
4190
  hasRequiredRepeatAsync = 1;
3812
4191
  repeatAsync.repeatAsync = void 0;
3813
- const go_1 = es2018$4;
4192
+ const go_1 = es2018$6;
3814
4193
  const errors_1 = requireEs2018();
3815
4194
  function repeatAsync$1(iterable, times) {
3816
4195
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -3853,7 +4232,7 @@
3853
4232
  if (hasRequiredRepeat) return repeat$2;
3854
4233
  hasRequiredRepeat = 1;
3855
4234
  repeat$2.repeat = void 0;
3856
- const go_1 = es2018$4;
4235
+ const go_1 = es2018$6;
3857
4236
  const errors_1 = requireEs2018();
3858
4237
  function repeat(iterable, times) {
3859
4238
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -3896,7 +4275,7 @@
3896
4275
  if (hasRequiredSliceAsync) return sliceAsync;
3897
4276
  hasRequiredSliceAsync = 1;
3898
4277
  sliceAsync.sliceAsync = void 0;
3899
- const go_1 = es2018$4;
4278
+ const go_1 = es2018$6;
3900
4279
  const errors_1 = requireEs2018();
3901
4280
  function sliceAsync$1(iterable, start, end = Infinity) {
3902
4281
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -3927,7 +4306,7 @@
3927
4306
  if (hasRequiredSlice) return slice;
3928
4307
  hasRequiredSlice = 1;
3929
4308
  slice.slice = void 0;
3930
- const go_1 = es2018$4;
4309
+ const go_1 = es2018$6;
3931
4310
  const errors_1 = requireEs2018();
3932
4311
  function slice$1(iterable, start, end = Infinity) {
3933
4312
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -3971,7 +4350,7 @@
3971
4350
  var splitByAsync$1 = {};
3972
4351
 
3973
4352
  splitByAsync$1.splitByAsync = void 0;
3974
- const types_1$c = es2018$7;
4353
+ const types_1$c = es2018$5;
3975
4354
  function splitByAsync(iterable, predicate) {
3976
4355
  if ((0, types_1$c.isAsyncIterable)(iterable)) {
3977
4356
  return splitByAsyncIterable(iterable);
@@ -4058,7 +4437,7 @@
4058
4437
  if (hasRequiredTakeAsync) return takeAsync;
4059
4438
  hasRequiredTakeAsync = 1;
4060
4439
  takeAsync.takeAsync = void 0;
4061
- const go_1 = es2018$4;
4440
+ const go_1 = es2018$6;
4062
4441
  const errors_1 = requireEs2018();
4063
4442
  function takeAsync$1(iterable, count) {
4064
4443
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4087,7 +4466,7 @@
4087
4466
  if (hasRequiredTakeRightAsync) return takeRightAsync;
4088
4467
  hasRequiredTakeRightAsync = 1;
4089
4468
  takeRightAsync.takeRightAsync = void 0;
4090
- const go_1 = es2018$4;
4469
+ const go_1 = es2018$6;
4091
4470
  const errors_1 = requireEs2018();
4092
4471
  function takeRightAsync$1(iterable, count) {
4093
4472
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4125,7 +4504,7 @@
4125
4504
  if (hasRequiredTakeRight) return takeRight;
4126
4505
  hasRequiredTakeRight = 1;
4127
4506
  takeRight.takeRight = void 0;
4128
- const go_1 = es2018$4;
4507
+ const go_1 = es2018$6;
4129
4508
  const errors_1 = requireEs2018();
4130
4509
  function takeRight$1(iterable, count) {
4131
4510
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4158,7 +4537,7 @@
4158
4537
  var takeUntilAsync$1 = {};
4159
4538
 
4160
4539
  takeUntilAsync$1.takeUntilAsync = void 0;
4161
- const types_1$b = es2018$7;
4540
+ const types_1$b = es2018$5;
4162
4541
  function takeUntilAsync(iterable, predicate) {
4163
4542
  if ((0, types_1$b.isAsyncIterable)(iterable)) {
4164
4543
  return takeUntilAsyncIterable(iterable);
@@ -4209,7 +4588,7 @@
4209
4588
  if (hasRequiredTake) return take$2;
4210
4589
  hasRequiredTake = 1;
4211
4590
  take$2.take = void 0;
4212
- const go_1 = es2018$4;
4591
+ const go_1 = es2018$6;
4213
4592
  const errors_1 = requireEs2018();
4214
4593
  function take(iterable, count) {
4215
4594
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4233,7 +4612,7 @@
4233
4612
  var tapAsync$1 = {};
4234
4613
 
4235
4614
  tapAsync$1.tapAsync = void 0;
4236
- const types_1$a = es2018$7;
4615
+ const types_1$a = es2018$5;
4237
4616
  function tapAsync(iterable, fn) {
4238
4617
  if ((0, types_1$a.isAsyncIterable)(iterable)) {
4239
4618
  return tapAsyncIterable(iterable);
@@ -4316,7 +4695,7 @@
4316
4695
  var uniqByAsync$1 = {};
4317
4696
 
4318
4697
  uniqByAsync$1.uniqByAsync = void 0;
4319
- const types_1$9 = es2018$7;
4698
+ const types_1$9 = es2018$5;
4320
4699
  function uniqByAsync(iterable, fn) {
4321
4700
  if ((0, types_1$9.isAsyncIterable)(iterable)) {
4322
4701
  return uniqByAsyncIterable(iterable);
@@ -4385,7 +4764,7 @@
4385
4764
  var zipAsync$1 = {};
4386
4765
 
4387
4766
  zipAsync$1.zipAsync = void 0;
4388
- const types_1$8 = es2018$7;
4767
+ const types_1$8 = es2018$5;
4389
4768
  var Kind;
4390
4769
  (function (Kind) {
4391
4770
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -4556,7 +4935,7 @@
4556
4935
  var eachAsync$1 = {};
4557
4936
 
4558
4937
  eachAsync$1.eachAsync = void 0;
4559
- const types_1$7 = es2018$7;
4938
+ const types_1$7 = es2018$5;
4560
4939
  function eachAsync(iterable, fn) {
4561
4940
  if ((0, types_1$7.isAsyncIterable)(iterable)) {
4562
4941
  return eachAsyncIterable(iterable);
@@ -4596,7 +4975,7 @@
4596
4975
  var everyAsync$1 = {};
4597
4976
 
4598
4977
  everyAsync$1.everyAsync = void 0;
4599
- const types_1$6 = es2018$7;
4978
+ const types_1$6 = es2018$5;
4600
4979
  function everyAsync(iterable, predicate) {
4601
4980
  if ((0, types_1$6.isAsyncIterable)(iterable)) {
4602
4981
  return everyAsyncIterable(iterable);
@@ -4642,7 +5021,7 @@
4642
5021
  var findAsync$1 = {};
4643
5022
 
4644
5023
  findAsync$1.findAsync = void 0;
4645
- const types_1$5 = es2018$7;
5024
+ const types_1$5 = es2018$5;
4646
5025
  function findAsync(iterable, predicate) {
4647
5026
  if ((0, types_1$5.isAsyncIterable)(iterable)) {
4648
5027
  return findAsyncIterable(iterable);
@@ -4766,7 +5145,7 @@
4766
5145
  var reduceAsync$1 = {};
4767
5146
 
4768
5147
  reduceAsync$1.reduceAsync = void 0;
4769
- const types_1$4 = es2018$7;
5148
+ const types_1$4 = es2018$5;
4770
5149
  function reduceAsync(iterable, fn, initialValue) {
4771
5150
  if ((0, types_1$4.isUndefined)(initialValue)) {
4772
5151
  return reduceAsyncWithoutInitialValue(iterable, fn);
@@ -4862,7 +5241,7 @@
4862
5241
  var reduce$3 = {};
4863
5242
 
4864
5243
  reduce$3.reduce = void 0;
4865
- const types_1$3 = es2018$7;
5244
+ const types_1$3 = es2018$5;
4866
5245
  function reduce$2(iterable, fn, initialValue) {
4867
5246
  if ((0, types_1$3.isUndefined)(initialValue)) {
4868
5247
  return reduceWithoutInitialValue(iterable, fn);
@@ -4909,7 +5288,7 @@
4909
5288
  var someAsync$1 = {};
4910
5289
 
4911
5290
  someAsync$1.someAsync = void 0;
4912
- const types_1$2 = es2018$7;
5291
+ const types_1$2 = es2018$5;
4913
5292
  function someAsync(iterable, predicate) {
4914
5293
  if ((0, types_1$2.isAsyncIterable)(iterable)) {
4915
5294
  return someAsyncIterable(iterable);
@@ -5113,7 +5492,7 @@
5113
5492
  var hasRequiredEs2018$1;
5114
5493
 
5115
5494
  function requireEs2018$1 () {
5116
- if (hasRequiredEs2018$1) return es2018$5;
5495
+ if (hasRequiredEs2018$1) return es2018$7;
5117
5496
  hasRequiredEs2018$1 = 1;
5118
5497
  (function (exports) {
5119
5498
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -5132,8 +5511,8 @@
5132
5511
  };__exportStar(requireMiddleware(), exports);
5133
5512
  __exportStar(output, exports);
5134
5513
 
5135
- } (es2018$5));
5136
- return es2018$5;
5514
+ } (es2018$7));
5515
+ return es2018$7;
5137
5516
  }
5138
5517
 
5139
5518
  var getErrorNames$1 = {};
@@ -5152,7 +5531,7 @@
5152
5531
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
5153
5532
 
5154
5533
  getErrorNames$1.getErrorNames = void 0;
5155
- const types_1$1 = es2018$7;
5534
+ const types_1$1 = es2018$9;
5156
5535
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
5157
5536
  function* getErrorNames(err) {
5158
5537
  var _a;
@@ -5173,7 +5552,7 @@
5173
5552
  var serializableError = {};
5174
5553
 
5175
5554
  serializableError.isSerializableError = void 0;
5176
- const types_1 = es2018$7;
5555
+ const types_1 = es2018$9;
5177
5556
  function isSerializableError(val) {
5178
5557
  return (0, types_1.isObject)(val)
5179
5558
  && (0, types_1.isString)(val.name)
@@ -5191,7 +5570,7 @@
5191
5570
  customError.CustomError = void 0;
5192
5571
  const iterable_operator_1 = requireEs2018$1();
5193
5572
  const get_error_names_1 = getErrorNames$1;
5194
- const types_1 = es2018$7;
5573
+ const types_1 = es2018$9;
5195
5574
  const serializable_error_1 = serializableError;
5196
5575
  class CustomError extends Error {
5197
5576
  get name() {
@@ -5261,7 +5640,7 @@
5261
5640
 
5262
5641
  var hydrate$1 = {};
5263
5642
 
5264
- var es2018$3 = {};
5643
+ var es2018$4 = {};
5265
5644
 
5266
5645
  var pass$1 = {};
5267
5646
 
@@ -5281,10 +5660,10 @@
5281
5660
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5282
5661
  };__exportStar(pass$1, exports);
5283
5662
 
5284
- } (es2018$3));
5663
+ } (es2018$4));
5285
5664
 
5286
5665
  hydrate$1.hydrate = void 0;
5287
- const pass_1 = es2018$3;
5666
+ const pass_1 = es2018$4;
5288
5667
  function hydrate(err) {
5289
5668
  var _a;
5290
5669
  const errorNames = [err.name, ...err.ancestors]
@@ -5330,7 +5709,7 @@
5330
5709
  var hasRequiredEs2018;
5331
5710
 
5332
5711
  function requireEs2018 () {
5333
- if (hasRequiredEs2018) return es2018$6;
5712
+ if (hasRequiredEs2018) return es2018$8;
5334
5713
  hasRequiredEs2018 = 1;
5335
5714
  (function (exports) {
5336
5715
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -5355,27 +5734,27 @@
5355
5734
  __exportStar(getErrorNames$1, exports);
5356
5735
  __exportStar(traverseErrorPrototypeChain$1, exports);
5357
5736
 
5358
- } (es2018$6));
5359
- return es2018$6;
5737
+ } (es2018$8));
5738
+ return es2018$8;
5360
5739
  }
5361
5740
 
5362
5741
  var es2018Exports$1 = requireEs2018();
5363
5742
 
5364
5743
  function useSingleSelection(values, defaultSelectedIndex) {
5365
5744
  es2018Exports$1.assert(values.length > 0, 'The parameter values must be a non-empty array');
5366
- if (es2018$7.isntUndefined(defaultSelectedIndex)) {
5745
+ if (es2018$9.isntUndefined(defaultSelectedIndex)) {
5367
5746
  es2018Exports$1.assert(defaultSelectedIndex >= 0 && defaultSelectedIndex < values.length, 'The parameter defaultSelectedIndex must be in the range of 0 to values.length');
5368
5747
  }
5369
5748
  const [selectedIndex, setSelectedIndex] = react.exports.useState(defaultSelectedIndex);
5370
- return {
5371
- value: es2018$7.isUndefined(selectedIndex) ? undefined : values[selectedIndex],
5749
+ return react.exports.useMemo(() => ({
5750
+ selectedValue: es2018$9.isUndefined(selectedIndex) ? undefined : values[selectedIndex],
5372
5751
  options: values.map((value, index) => ({
5373
5752
  value,
5374
5753
  index,
5375
5754
  selected: index === selectedIndex,
5376
5755
  select: () => setSelectedIndex(index)
5377
5756
  }))
5378
- };
5757
+ }), [selectedIndex]);
5379
5758
  }
5380
5759
 
5381
5760
  var es2018Exports = requireEs2018$1();
@@ -5386,8 +5765,8 @@
5386
5765
  es2018Exports$1.assert(index >= 0 && index < values.length, 'The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length');
5387
5766
  }
5388
5767
  const [selectedIndexes, setSelectedIndexes] = react.exports.useState(new Set(defaultSelectedIndexes));
5389
- return {
5390
- values: es2018Exports.toArray(es2018Exports.map(selectedIndexes, i => values[i])),
5768
+ return react.exports.useMemo(() => ({
5769
+ selectedValues: es2018Exports.toArray(es2018Exports.map(selectedIndexes, i => values[i])),
5391
5770
  options: values.map((value, index) => {
5392
5771
  const selected = selectedIndexes.has(index);
5393
5772
  const select = () => {
@@ -5409,28 +5788,30 @@
5409
5788
  toggle: selected ? unselect : select
5410
5789
  };
5411
5790
  })
5412
- };
5791
+ }), [selectedIndexes]);
5413
5792
  }
5414
5793
 
5415
5794
  function useStateCycle(stateList, initialStateIndex = 0) {
5416
5795
  const [index, setIndex] = react.exports.useState(initialStateIndex);
5417
- return [
5418
- stateList[index],
5419
- () => setIndex(index => {
5796
+ return [stateList[index], next];
5797
+ function next() {
5798
+ setIndex(index => {
5420
5799
  if (index + 1 < stateList.length) {
5421
5800
  return index + 1;
5422
5801
  }
5423
5802
  else {
5424
5803
  return 0;
5425
5804
  }
5426
- })
5427
- ];
5805
+ });
5806
+ }
5428
5807
  }
5429
5808
 
5430
5809
  function useToggle(initialState = false) {
5431
5810
  const [state, setState] = react.exports.useState(initialState);
5432
- const toggle = () => setState(state => !state);
5433
5811
  return [state, toggle];
5812
+ function toggle() {
5813
+ setState(state => !state);
5814
+ }
5434
5815
  }
5435
5816
 
5436
5817
  function useResizeObserver(callback, refs) {
@@ -5439,7 +5820,7 @@
5439
5820
  const observer = new ResizeObserver(callback);
5440
5821
  refs
5441
5822
  .map(x => x.current)
5442
- .filter(es2018$7.isntNull)
5823
+ .filter(es2018$9.isntNull)
5443
5824
  .forEach(x => observer.observe(x));
5444
5825
  return () => observer.disconnect();
5445
5826
  }, deps);
@@ -5447,29 +5828,27 @@
5447
5828
 
5448
5829
  function useStep(steps, initialStepIndex = 0) {
5449
5830
  const [index, setIndex] = react.exports.useState(initialStepIndex);
5450
- return [
5451
- steps[index],
5452
- () => {
5453
- setIndex(index => {
5454
- if (index === steps.length - 1) {
5455
- return index;
5456
- }
5457
- else {
5458
- return index + 1;
5459
- }
5460
- });
5461
- },
5462
- () => {
5463
- setIndex(index => {
5464
- if (index === 0) {
5465
- return index;
5466
- }
5467
- else {
5468
- return index - 1;
5469
- }
5470
- });
5471
- }
5472
- ];
5831
+ return [steps[index], next, previous];
5832
+ function next() {
5833
+ setIndex(index => {
5834
+ if (index === steps.length - 1) {
5835
+ return index;
5836
+ }
5837
+ else {
5838
+ return index + 1;
5839
+ }
5840
+ });
5841
+ }
5842
+ function previous() {
5843
+ setIndex(index => {
5844
+ if (index === 0) {
5845
+ return index;
5846
+ }
5847
+ else {
5848
+ return index - 1;
5849
+ }
5850
+ });
5851
+ }
5473
5852
  }
5474
5853
 
5475
5854
  function useForceUpdate() {
@@ -5477,7 +5856,7 @@
5477
5856
  return () => setState({});
5478
5857
  }
5479
5858
 
5480
- var es2018$2 = {};
5859
+ var es2018$3 = {};
5481
5860
 
5482
5861
  var box = {};
5483
5862
 
@@ -5711,11 +6090,11 @@
5711
6090
 
5712
6091
  var expirableMap = {};
5713
6092
 
5714
- var es2018$1 = {};
6093
+ var es2018$2 = {};
5715
6094
 
5716
6095
  var exponentialBackoff = {};
5717
6096
 
5718
- var es2018 = {};
6097
+ var es2018$1 = {};
5719
6098
 
5720
6099
  var random$1 = {};
5721
6100
 
@@ -5759,10 +6138,10 @@
5759
6138
  __exportStar(randomInt$1, exports);
5760
6139
  __exportStar(randomIntInclusive$1, exports);
5761
6140
 
5762
- } (es2018));
6141
+ } (es2018$1));
5763
6142
 
5764
6143
  exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
5765
- const extra_rand_1 = es2018;
6144
+ const extra_rand_1 = es2018$1;
5766
6145
  function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
5767
6146
  const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
5768
6147
  if (jitter) {
@@ -5877,10 +6256,10 @@
5877
6256
  __exportStar(setTimeoutLoop$1, exports);
5878
6257
  __exportStar(setDynamicTimeoutLoop$1, exports);
5879
6258
 
5880
- } (es2018$1));
6259
+ } (es2018$2));
5881
6260
 
5882
6261
  expirableMap.ExpirableMap = void 0;
5883
- const extra_timers_1$1 = es2018$1;
6262
+ const extra_timers_1$1 = es2018$2;
5884
6263
  class ExpirableMap {
5885
6264
  constructor() {
5886
6265
  this.map = new Map();
@@ -5978,7 +6357,7 @@
5978
6357
  tlruMap.TLRUMap = void 0;
5979
6358
  const errors_1$1 = requireEs2018();
5980
6359
  const iterable_operator_1$1 = requireEs2018$1();
5981
- const extra_timers_1 = es2018$1;
6360
+ const extra_timers_1 = es2018$2;
5982
6361
  class TLRUMap {
5983
6362
  constructor(limit) {
5984
6363
  this.map = new Map();
@@ -6217,13 +6596,13 @@
6217
6596
 
6218
6597
  var Subscriber = {};
6219
6598
 
6220
- var isFunction$1 = {};
6599
+ var isFunction$2 = {};
6221
6600
 
6222
- isFunction$1.isFunction = void 0;
6223
- function isFunction(value) {
6601
+ isFunction$2.isFunction = void 0;
6602
+ function isFunction$1(value) {
6224
6603
  return typeof value === 'function';
6225
6604
  }
6226
- isFunction$1.isFunction = isFunction;
6605
+ isFunction$2.isFunction = isFunction$1;
6227
6606
 
6228
6607
  var Subscription$1 = {};
6229
6608
 
@@ -6300,7 +6679,7 @@
6300
6679
  to[j] = from[i];
6301
6680
  return to;
6302
6681
  };Subscription$1.isSubscription = Subscription$1.EMPTY_SUBSCRIPTION = Subscription$1.Subscription = void 0;
6303
- var isFunction_1$p = isFunction$1;
6682
+ var isFunction_1$p = isFunction$2;
6304
6683
  var UnsubscriptionError_1 = UnsubscriptionError;
6305
6684
  var arrRemove_1$7 = arrRemove$1;
6306
6685
  var Subscription = (function () {
@@ -6593,7 +6972,7 @@
6593
6972
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6594
6973
  };
6595
6974
  })();exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0;
6596
- var isFunction_1 = isFunction$1;
6975
+ var isFunction_1 = isFunction$2;
6597
6976
  var Subscription_1 = Subscription$1;
6598
6977
  var config_1 = config;
6599
6978
  var reportUnhandledError_1 = reportUnhandledError$1;
@@ -6822,7 +7201,7 @@
6822
7201
  var observable_1$2 = observable;
6823
7202
  var pipe_1$2 = pipe$1;
6824
7203
  var config_1 = config;
6825
- var isFunction_1$o = isFunction$1;
7204
+ var isFunction_1$o = isFunction$2;
6826
7205
  var errorContext_1$1 = errorContext$1;
6827
7206
  var Observable = (function () {
6828
7207
  function Observable(subscribe) {
@@ -6926,7 +7305,7 @@
6926
7305
  var lift = {};
6927
7306
 
6928
7307
  lift.operate = lift.hasLift = void 0;
6929
- var isFunction_1$n = isFunction$1;
7308
+ var isFunction_1$n = isFunction$2;
6930
7309
  function hasLift(source) {
6931
7310
  return isFunction_1$n.isFunction(source === null || source === void 0 ? void 0 : source.lift);
6932
7311
  }
@@ -8421,14 +8800,14 @@
8421
8800
  var isScheduler$1 = {};
8422
8801
 
8423
8802
  isScheduler$1.isScheduler = void 0;
8424
- var isFunction_1$m = isFunction$1;
8803
+ var isFunction_1$m = isFunction$2;
8425
8804
  function isScheduler(value) {
8426
8805
  return value && isFunction_1$m.isFunction(value.schedule);
8427
8806
  }
8428
8807
  isScheduler$1.isScheduler = isScheduler;
8429
8808
 
8430
8809
  args.popNumber = args.popScheduler = args.popResultSelector = void 0;
8431
- var isFunction_1$l = isFunction$1;
8810
+ var isFunction_1$l = isFunction$2;
8432
8811
  var isScheduler_1$3 = isScheduler$1;
8433
8812
  function last$2(arr) {
8434
8813
  return arr[arr.length - 1];
@@ -8459,33 +8838,33 @@
8459
8838
  isArrayLike.isArrayLike = void 0;
8460
8839
  isArrayLike.isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });
8461
8840
 
8462
- var isPromise$1 = {};
8841
+ var isPromise$2 = {};
8463
8842
 
8464
- isPromise$1.isPromise = void 0;
8465
- var isFunction_1$k = isFunction$1;
8466
- function isPromise(value) {
8843
+ isPromise$2.isPromise = void 0;
8844
+ var isFunction_1$k = isFunction$2;
8845
+ function isPromise$1(value) {
8467
8846
  return isFunction_1$k.isFunction(value === null || value === void 0 ? void 0 : value.then);
8468
8847
  }
8469
- isPromise$1.isPromise = isPromise;
8848
+ isPromise$2.isPromise = isPromise$1;
8470
8849
 
8471
8850
  var isInteropObservable$1 = {};
8472
8851
 
8473
8852
  isInteropObservable$1.isInteropObservable = void 0;
8474
8853
  var observable_1$1 = observable;
8475
- var isFunction_1$j = isFunction$1;
8854
+ var isFunction_1$j = isFunction$2;
8476
8855
  function isInteropObservable(input) {
8477
8856
  return isFunction_1$j.isFunction(input[observable_1$1.observable]);
8478
8857
  }
8479
8858
  isInteropObservable$1.isInteropObservable = isInteropObservable;
8480
8859
 
8481
- var isAsyncIterable$1 = {};
8860
+ var isAsyncIterable$2 = {};
8482
8861
 
8483
- isAsyncIterable$1.isAsyncIterable = void 0;
8484
- var isFunction_1$i = isFunction$1;
8485
- function isAsyncIterable(obj) {
8862
+ isAsyncIterable$2.isAsyncIterable = void 0;
8863
+ var isFunction_1$i = isFunction$2;
8864
+ function isAsyncIterable$1(obj) {
8486
8865
  return Symbol.asyncIterator && isFunction_1$i.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
8487
8866
  }
8488
- isAsyncIterable$1.isAsyncIterable = isAsyncIterable;
8867
+ isAsyncIterable$2.isAsyncIterable = isAsyncIterable$1;
8489
8868
 
8490
8869
  var throwUnobservableError = {};
8491
8870
 
@@ -8495,7 +8874,7 @@
8495
8874
  }
8496
8875
  throwUnobservableError.createInvalidObservableTypeError = createInvalidObservableTypeError;
8497
8876
 
8498
- var isIterable$1 = {};
8877
+ var isIterable$2 = {};
8499
8878
 
8500
8879
  var iterator = {};
8501
8880
 
@@ -8509,13 +8888,13 @@
8509
8888
  iterator.getSymbolIterator = getSymbolIterator;
8510
8889
  iterator.iterator = getSymbolIterator();
8511
8890
 
8512
- isIterable$1.isIterable = void 0;
8891
+ isIterable$2.isIterable = void 0;
8513
8892
  var iterator_1$1 = iterator;
8514
- var isFunction_1$h = isFunction$1;
8515
- function isIterable(input) {
8893
+ var isFunction_1$h = isFunction$2;
8894
+ function isIterable$1(input) {
8516
8895
  return isFunction_1$h.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1$1.iterator]);
8517
8896
  }
8518
- isIterable$1.isIterable = isIterable;
8897
+ isIterable$2.isIterable = isIterable$1;
8519
8898
 
8520
8899
  var isReadableStreamLike$1 = {};
8521
8900
 
@@ -8558,7 +8937,7 @@
8558
8937
  function reject(value) { resume("throw", value); }
8559
8938
  function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
8560
8939
  };isReadableStreamLike$1.isReadableStreamLike = isReadableStreamLike$1.readableStreamLikeToAsyncGenerator = void 0;
8561
- var isFunction_1$g = isFunction$1;
8940
+ var isFunction_1$g = isFunction$2;
8562
8941
  function readableStreamLikeToAsyncGenerator(readableStream) {
8563
8942
  return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
8564
8943
  var reader, _a, value, done;
@@ -8652,14 +9031,14 @@
8652
9031
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
8653
9032
  };innerFrom$1.fromReadableStreamLike = innerFrom$1.fromAsyncIterable = innerFrom$1.fromIterable = innerFrom$1.fromPromise = innerFrom$1.fromArrayLike = innerFrom$1.fromInteropObservable = innerFrom$1.innerFrom = void 0;
8654
9033
  var isArrayLike_1$2 = isArrayLike;
8655
- var isPromise_1$1 = isPromise$1;
9034
+ var isPromise_1$1 = isPromise$2;
8656
9035
  var Observable_1$j = Observable$1;
8657
9036
  var isInteropObservable_1$1 = isInteropObservable$1;
8658
- var isAsyncIterable_1$1 = isAsyncIterable$1;
9037
+ var isAsyncIterable_1$1 = isAsyncIterable$2;
8659
9038
  var throwUnobservableError_1$1 = throwUnobservableError;
8660
- var isIterable_1$1 = isIterable$1;
9039
+ var isIterable_1$1 = isIterable$2;
8661
9040
  var isReadableStreamLike_1$2 = isReadableStreamLike$1;
8662
- var isFunction_1$f = isFunction$1;
9041
+ var isFunction_1$f = isFunction$2;
8663
9042
  var reportUnhandledError_1 = reportUnhandledError$1;
8664
9043
  var observable_1 = observable;
8665
9044
  function innerFrom(input) {
@@ -8895,7 +9274,7 @@
8895
9274
  scheduleIterable$1.scheduleIterable = void 0;
8896
9275
  var Observable_1$h = Observable$1;
8897
9276
  var iterator_1 = iterator;
8898
- var isFunction_1$e = isFunction$1;
9277
+ var isFunction_1$e = isFunction$2;
8899
9278
  var executeSchedule_1$5 = executeSchedule$1;
8900
9279
  function scheduleIterable(input, scheduler) {
8901
9280
  return new Observable_1$h.Observable(function (subscriber) {
@@ -8970,10 +9349,10 @@
8970
9349
  var scheduleIterable_1$1 = scheduleIterable$1;
8971
9350
  var scheduleAsyncIterable_1 = scheduleAsyncIterable$1;
8972
9351
  var isInteropObservable_1 = isInteropObservable$1;
8973
- var isPromise_1 = isPromise$1;
9352
+ var isPromise_1 = isPromise$2;
8974
9353
  var isArrayLike_1$1 = isArrayLike;
8975
- var isIterable_1 = isIterable$1;
8976
- var isAsyncIterable_1 = isAsyncIterable$1;
9354
+ var isIterable_1 = isIterable$2;
9355
+ var isAsyncIterable_1 = isAsyncIterable$2;
8977
9356
  var throwUnobservableError_1 = throwUnobservableError;
8978
9357
  var isReadableStreamLike_1 = isReadableStreamLike$1;
8979
9358
  var scheduleReadableStreamLike_1 = scheduleReadableStreamLike$1;
@@ -9027,7 +9406,7 @@
9027
9406
 
9028
9407
  throwError$1.throwError = void 0;
9029
9408
  var Observable_1$f = Observable$1;
9030
- var isFunction_1$d = isFunction$1;
9409
+ var isFunction_1$d = isFunction$2;
9031
9410
  function throwError(errorOrErrorFactory, scheduler) {
9032
9411
  var errorFactory = isFunction_1$d.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; };
9033
9412
  var init = function (subscriber) { return subscriber.error(errorFactory()); };
@@ -9040,7 +9419,7 @@
9040
9419
  var empty_1 = empty;
9041
9420
  var of_1 = of$1;
9042
9421
  var throwError_1 = throwError$1;
9043
- var isFunction_1 = isFunction$1;
9422
+ var isFunction_1 = isFunction$2;
9044
9423
  (function (NotificationKind) {
9045
9424
  NotificationKind["NEXT"] = "N";
9046
9425
  NotificationKind["ERROR"] = "E";
@@ -9115,7 +9494,7 @@
9115
9494
 
9116
9495
  isObservable$1.isObservable = void 0;
9117
9496
  var Observable_1$e = Observable$1;
9118
- var isFunction_1$c = isFunction$1;
9497
+ var isFunction_1$c = isFunction$2;
9119
9498
  function isObservable(obj) {
9120
9499
  return !!obj && (obj instanceof Observable_1$e.Observable || (isFunction_1$c.isFunction(obj.lift) && isFunction_1$c.isFunction(obj.subscribe)));
9121
9500
  }
@@ -9228,18 +9607,18 @@
9228
9607
 
9229
9608
  var timeout = {};
9230
9609
 
9231
- var isDate = {};
9610
+ var isDate$1 = {};
9232
9611
 
9233
- isDate.isValidDate = void 0;
9612
+ isDate$1.isValidDate = void 0;
9234
9613
  function isValidDate(value) {
9235
9614
  return value instanceof Date && !isNaN(value);
9236
9615
  }
9237
- isDate.isValidDate = isValidDate;
9616
+ isDate$1.isValidDate = isValidDate;
9238
9617
 
9239
9618
  (function (exports) {
9240
9619
  exports.timeout = exports.TimeoutError = void 0;
9241
9620
  var async_1 = async;
9242
- var isDate_1 = isDate;
9621
+ var isDate_1 = isDate$1;
9243
9622
  var lift_1 = lift;
9244
9623
  var innerFrom_1 = innerFrom$1;
9245
9624
  var createErrorClass_1 = createErrorClass$1;
@@ -9343,9 +9722,9 @@
9343
9722
  return to;
9344
9723
  };mapOneOrManyArgs$1.mapOneOrManyArgs = void 0;
9345
9724
  var map_1$5 = map$1;
9346
- var isArray$2 = Array.isArray;
9725
+ var isArray$3 = Array.isArray;
9347
9726
  function callOrApply(fn, args) {
9348
- return isArray$2(args) ? fn.apply(void 0, __spreadArray$f([], __read$g(args))) : fn(args);
9727
+ return isArray$3(args) ? fn.apply(void 0, __spreadArray$f([], __read$g(args))) : fn(args);
9349
9728
  }
9350
9729
  function mapOneOrManyArgs(fn) {
9351
9730
  return map_1$5.map(function (args) { return callOrApply(fn, args); });
@@ -9473,12 +9852,12 @@
9473
9852
  var argsArgArrayOrObject$1 = {};
9474
9853
 
9475
9854
  argsArgArrayOrObject$1.argsArgArrayOrObject = void 0;
9476
- var isArray$1 = Array.isArray;
9855
+ var isArray$2 = Array.isArray;
9477
9856
  var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys;
9478
9857
  function argsArgArrayOrObject(args) {
9479
9858
  if (args.length === 1) {
9480
9859
  var first_1 = args[0];
9481
- if (isArray$1(first_1)) {
9860
+ if (isArray$2(first_1)) {
9482
9861
  return { args: first_1, keys: null };
9483
9862
  }
9484
9863
  if (isPOJO(first_1)) {
@@ -9655,7 +10034,7 @@
9655
10034
  var innerFrom_1$p = innerFrom$1;
9656
10035
  var lift_1$10 = lift;
9657
10036
  var mergeInternals_1$2 = mergeInternals$1;
9658
- var isFunction_1$b = isFunction$1;
10037
+ var isFunction_1$b = isFunction$2;
9659
10038
  function mergeMap(project, resultSelector, concurrent) {
9660
10039
  if (concurrent === void 0) { concurrent = Infinity; }
9661
10040
  if (isFunction_1$b.isFunction(resultSelector)) {
@@ -9813,7 +10192,7 @@
9813
10192
  var Observable_1$8 = Observable$1;
9814
10193
  var mergeMap_1$5 = mergeMap$1;
9815
10194
  var isArrayLike_1 = isArrayLike;
9816
- var isFunction_1$a = isFunction$1;
10195
+ var isFunction_1$a = isFunction$2;
9817
10196
  var mapOneOrManyArgs_1$3 = mapOneOrManyArgs$1;
9818
10197
  var nodeEventEmitterMethods = ['addListener', 'removeListener'];
9819
10198
  var eventTargetMethods = ['addEventListener', 'removeEventListener'];
@@ -9872,7 +10251,7 @@
9872
10251
 
9873
10252
  fromEventPattern$1.fromEventPattern = void 0;
9874
10253
  var Observable_1$7 = Observable$1;
9875
- var isFunction_1$9 = isFunction$1;
10254
+ var isFunction_1$9 = isFunction$2;
9876
10255
  var mapOneOrManyArgs_1$2 = mapOneOrManyArgs$1;
9877
10256
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
9878
10257
  if (resultSelector) {
@@ -9987,7 +10366,7 @@
9987
10366
  var Observable_1$6 = Observable$1;
9988
10367
  var async_1$a = async;
9989
10368
  var isScheduler_1 = isScheduler$1;
9990
- var isDate_1$1 = isDate;
10369
+ var isDate_1$1 = isDate$1;
9991
10370
  function timer(dueTime, intervalOrScheduler, scheduler) {
9992
10371
  if (dueTime === void 0) { dueTime = 0; }
9993
10372
  if (scheduler === void 0) { scheduler = async_1$a.async; }
@@ -10082,9 +10461,9 @@
10082
10461
  var argsOrArgArray$1 = {};
10083
10462
 
10084
10463
  argsOrArgArray$1.argsOrArgArray = void 0;
10085
- var isArray = Array.isArray;
10464
+ var isArray$1 = Array.isArray;
10086
10465
  function argsOrArgArray(args) {
10087
- return args.length === 1 && isArray(args[0]) ? args[0] : args;
10466
+ return args.length === 1 && isArray$1(args[0]) ? args[0] : args;
10088
10467
  }
10089
10468
  argsOrArgArray$1.argsOrArgArray = argsOrArgArray;
10090
10469
 
@@ -10895,7 +11274,7 @@
10895
11274
 
10896
11275
  concatMap$1.concatMap = void 0;
10897
11276
  var mergeMap_1$3 = mergeMap$1;
10898
- var isFunction_1$8 = isFunction$1;
11277
+ var isFunction_1$8 = isFunction$2;
10899
11278
  function concatMap(project, resultSelector) {
10900
11279
  return isFunction_1$8.isFunction(resultSelector) ? mergeMap_1$3.mergeMap(project, resultSelector, 1) : mergeMap_1$3.mergeMap(project, 1);
10901
11280
  }
@@ -10905,7 +11284,7 @@
10905
11284
 
10906
11285
  concatMapTo$1.concatMapTo = void 0;
10907
11286
  var concatMap_1 = concatMap$1;
10908
- var isFunction_1$7 = isFunction$1;
11287
+ var isFunction_1$7 = isFunction$2;
10909
11288
  function concatMapTo(innerObservable, resultSelector) {
10910
11289
  return isFunction_1$7.isFunction(resultSelector) ? concatMap_1.concatMap(function () { return innerObservable; }, resultSelector) : concatMap_1.concatMap(function () { return innerObservable; });
10911
11290
  }
@@ -11693,7 +12072,7 @@
11693
12072
 
11694
12073
  max$1.max = void 0;
11695
12074
  var reduce_1$1 = reduce$1;
11696
- var isFunction_1$6 = isFunction$1;
12075
+ var isFunction_1$6 = isFunction$2;
11697
12076
  function max(comparer) {
11698
12077
  return reduce_1$1.reduce(isFunction_1$6.isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); });
11699
12078
  }
@@ -11709,7 +12088,7 @@
11709
12088
 
11710
12089
  mergeMapTo$1.mergeMapTo = void 0;
11711
12090
  var mergeMap_1 = mergeMap$1;
11712
- var isFunction_1$5 = isFunction$1;
12091
+ var isFunction_1$5 = isFunction$2;
11713
12092
  function mergeMapTo(innerObservable, resultSelector, concurrent) {
11714
12093
  if (concurrent === void 0) { concurrent = Infinity; }
11715
12094
  if (isFunction_1$5.isFunction(resultSelector)) {
@@ -11817,7 +12196,7 @@
11817
12196
 
11818
12197
  min$1.min = void 0;
11819
12198
  var reduce_1 = reduce$1;
11820
- var isFunction_1$4 = isFunction$1;
12199
+ var isFunction_1$4 = isFunction$2;
11821
12200
  function min(comparer) {
11822
12201
  return reduce_1.reduce(isFunction_1$4.isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); });
11823
12202
  }
@@ -11827,7 +12206,7 @@
11827
12206
 
11828
12207
  multicast$1.multicast = void 0;
11829
12208
  var ConnectableObservable_1$2 = ConnectableObservable$1;
11830
- var isFunction_1$3 = isFunction$1;
12209
+ var isFunction_1$3 = isFunction$2;
11831
12210
  var connect_1$1 = connect$1;
11832
12211
  function multicast(subjectOrSubjectFactory, selector) {
11833
12212
  var subjectFactory = isFunction_1$3.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; };
@@ -11930,7 +12309,7 @@
11930
12309
  publishReplay$1.publishReplay = void 0;
11931
12310
  var ReplaySubject_1$1 = ReplaySubject$1;
11932
12311
  var multicast_1 = multicast$1;
11933
- var isFunction_1$2 = isFunction$1;
12312
+ var isFunction_1$2 = isFunction$2;
11934
12313
  function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
11935
12314
  if (selectorOrScheduler && !isFunction_1$2.isFunction(selectorOrScheduler)) {
11936
12315
  timestampProvider = selectorOrScheduler;
@@ -12587,7 +12966,7 @@
12587
12966
 
12588
12967
  switchMapTo$1.switchMapTo = void 0;
12589
12968
  var switchMap_1$1 = switchMap$1;
12590
- var isFunction_1$1 = isFunction$1;
12969
+ var isFunction_1$1 = isFunction$2;
12591
12970
  function switchMapTo(innerObservable, resultSelector) {
12592
12971
  return isFunction_1$1.isFunction(resultSelector) ? switchMap_1$1.switchMap(function () { return innerObservable; }, resultSelector) : switchMap_1$1.switchMap(function () { return innerObservable; });
12593
12972
  }
@@ -12645,7 +13024,7 @@
12645
13024
  var tap$1 = {};
12646
13025
 
12647
13026
  tap$1.tap = void 0;
12648
- var isFunction_1 = isFunction$1;
13027
+ var isFunction_1 = isFunction$2;
12649
13028
  var lift_1$8 = lift;
12650
13029
  var OperatorSubscriber_1$7 = OperatorSubscriber$1;
12651
13030
  var identity_1$1 = identity$1;
@@ -12789,7 +13168,7 @@
12789
13168
 
12790
13169
  timeoutWith$1.timeoutWith = void 0;
12791
13170
  var async_1$1 = async;
12792
- var isDate_1 = isDate;
13171
+ var isDate_1 = isDate$1;
12793
13172
  var timeout_1 = timeout;
12794
13173
  function timeoutWith(due, withObservable, scheduler) {
12795
13174
  var first;
@@ -13618,30 +13997,390 @@
13618
13997
 
13619
13998
  } (cjs));
13620
13999
 
13621
- (function (exports) {
13622
- exports.BadEventError = exports.ObservableFiniteStateMachine = void 0;
13623
- const finite_state_machine_1 = finiteStateMachine;
13624
- const rxjs_1 = cjs;
13625
- const types_1 = es2018$7;
13626
- class ObservableFiniteStateMachine extends finite_state_machine_1.FiniteStateMachine {
13627
- constructor() {
13628
- super(...arguments);
13629
- this.stateChanges = new rxjs_1.Subject();
13630
- }
13631
- observeStateChanges() {
13632
- return this.stateChanges;
13633
- }
13634
- send(event) {
13635
- const oldState = this.state;
13636
- super.send(event);
13637
- const newState = this.state;
13638
- this.stateChanges.next({ event, oldState, newState });
13639
- if ((0, types_1.isEmptyObject)(this.schema[newState])) {
13640
- this.stateChanges.complete();
13641
- }
13642
- }
13643
- }
13644
- exports.ObservableFiniteStateMachine = ObservableFiniteStateMachine;
14000
+ var es2018 = {};
14001
+
14002
+ var array = {};
14003
+
14004
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
14005
+ function isArray(val) {
14006
+ return Array.isArray(val);
14007
+ }
14008
+ array.isArray = isArray;
14009
+ function isntArray(val) {
14010
+ return !isArray(val);
14011
+ }
14012
+ array.isntArray = isntArray;
14013
+ function isEmptyArray(val) {
14014
+ return val.length === 0;
14015
+ }
14016
+ array.isEmptyArray = isEmptyArray;
14017
+ function isntEmptyArray(val) {
14018
+ return val.length !== 0;
14019
+ }
14020
+ array.isntEmptyArray = isntEmptyArray;
14021
+
14022
+ var asyncIterable = {};
14023
+
14024
+ var _null = {};
14025
+
14026
+ _null.isntNull = _null.isNull = void 0;
14027
+ function isNull(val) {
14028
+ return val === null;
14029
+ }
14030
+ _null.isNull = isNull;
14031
+ function isntNull(val) {
14032
+ return !isNull(val);
14033
+ }
14034
+ _null.isntNull = isntNull;
14035
+
14036
+ var _undefined = {};
14037
+
14038
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
14039
+ function isUndefined(val) {
14040
+ return val === undefined;
14041
+ }
14042
+ _undefined.isUndefined = isUndefined;
14043
+ function isntUndefined(val) {
14044
+ return !isUndefined(val);
14045
+ }
14046
+ _undefined.isntUndefined = isntUndefined;
14047
+
14048
+ var _function = {};
14049
+
14050
+ _function.isntFunction = _function.isFunction = void 0;
14051
+ function isFunction(val) {
14052
+ return typeof val === 'function';
14053
+ }
14054
+ _function.isFunction = isFunction;
14055
+ function isntFunction(val) {
14056
+ return !isFunction(val);
14057
+ }
14058
+ _function.isntFunction = isntFunction;
14059
+
14060
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
14061
+ const null_1$2 = _null;
14062
+ const undefined_1$1 = _undefined;
14063
+ const function_1$2 = _function;
14064
+ function isAsyncIterable(val) {
14065
+ return (0, null_1$2.isntNull)(val)
14066
+ && (0, undefined_1$1.isntUndefined)(val)
14067
+ && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
14068
+ }
14069
+ asyncIterable.isAsyncIterable = isAsyncIterable;
14070
+ function isntAsyncIterable(val) {
14071
+ return !isAsyncIterable(val);
14072
+ }
14073
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
14074
+
14075
+ var bigint = {};
14076
+
14077
+ bigint.isntBigInt = bigint.isBigInt = void 0;
14078
+ function isBigInt(val) {
14079
+ return typeof val === 'bigint';
14080
+ }
14081
+ bigint.isBigInt = isBigInt;
14082
+ function isntBigInt(val) {
14083
+ return !isBigInt(val);
14084
+ }
14085
+ bigint.isntBigInt = isntBigInt;
14086
+
14087
+ var boolean = {};
14088
+
14089
+ boolean.isntBoolean = boolean.isBoolean = void 0;
14090
+ function isBoolean(val) {
14091
+ return typeof val === 'boolean';
14092
+ }
14093
+ boolean.isBoolean = isBoolean;
14094
+ function isntBoolean(val) {
14095
+ return !isBoolean(val);
14096
+ }
14097
+ boolean.isntBoolean = isntBoolean;
14098
+
14099
+ var char = {};
14100
+
14101
+ var string = {};
14102
+
14103
+ string.isntString = string.isString = void 0;
14104
+ function isString(val) {
14105
+ return typeof val === 'string';
14106
+ }
14107
+ string.isString = isString;
14108
+ function isntString(val) {
14109
+ return !isString(val);
14110
+ }
14111
+ string.isntString = isntString;
14112
+
14113
+ char.isntChar = char.isChar = void 0;
14114
+ const string_1$1 = string;
14115
+ function isChar(val) {
14116
+ return (0, string_1$1.isString)(val)
14117
+ && val.length === 1;
14118
+ }
14119
+ char.isChar = isChar;
14120
+ function isntChar(val) {
14121
+ return !isChar(val);
14122
+ }
14123
+ char.isntChar = isntChar;
14124
+
14125
+ var date = {};
14126
+
14127
+ date.isntDate = date.isDate = void 0;
14128
+ function isDate(val) {
14129
+ return val instanceof Date;
14130
+ }
14131
+ date.isDate = isDate;
14132
+ function isntDate(val) {
14133
+ return !isDate(val);
14134
+ }
14135
+ date.isntDate = isntDate;
14136
+
14137
+ var _enum = {};
14138
+
14139
+ _enum.inEnum = void 0;
14140
+ function inEnum(val, _enum) {
14141
+ return Object.values(_enum).includes(val);
14142
+ }
14143
+ _enum.inEnum = inEnum;
14144
+
14145
+ var error = {};
14146
+
14147
+ error.isntError = error.isError = void 0;
14148
+ function isError(val) {
14149
+ return val instanceof Error;
14150
+ }
14151
+ error.isError = isError;
14152
+ function isntError(val) {
14153
+ return !isError(val);
14154
+ }
14155
+ error.isntError = isntError;
14156
+
14157
+ var falsy = {};
14158
+
14159
+ falsy.isntFalsy = falsy.isFalsy = void 0;
14160
+ function isFalsy(val) {
14161
+ return !val;
14162
+ }
14163
+ falsy.isFalsy = isFalsy;
14164
+ function isntFalsy(val) {
14165
+ return !isFalsy(val);
14166
+ }
14167
+ falsy.isntFalsy = isntFalsy;
14168
+
14169
+ var iterable = {};
14170
+
14171
+ iterable.isntIterable = iterable.isIterable = void 0;
14172
+ const null_1$1 = _null;
14173
+ const undefined_1 = _undefined;
14174
+ const function_1$1 = _function;
14175
+ function isIterable(val) {
14176
+ return (0, null_1$1.isntNull)(val)
14177
+ && (0, undefined_1.isntUndefined)(val)
14178
+ && (0, function_1$1.isFunction)(val[Symbol.iterator]);
14179
+ }
14180
+ iterable.isIterable = isIterable;
14181
+ function isntIterable(val) {
14182
+ return !isIterable(val);
14183
+ }
14184
+ iterable.isntIterable = isntIterable;
14185
+
14186
+ var json = {};
14187
+
14188
+ var number = {};
14189
+
14190
+ number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
14191
+ function isNumber(val) {
14192
+ return typeof val === 'number';
14193
+ }
14194
+ number.isNumber = isNumber;
14195
+ function isntNumber(val) {
14196
+ return !isNumber(val);
14197
+ }
14198
+ number.isntNumber = isntNumber;
14199
+ function isFinite(val) {
14200
+ return Number.isFinite(val);
14201
+ }
14202
+ number.isFinite = isFinite;
14203
+ function isPositiveInfinity(val) {
14204
+ return val === Infinity;
14205
+ }
14206
+ number.isPositiveInfinity = isPositiveInfinity;
14207
+ function isNegativeInfinity(val) {
14208
+ return val === -Infinity;
14209
+ }
14210
+ number.isNegativeInfinity = isNegativeInfinity;
14211
+ function isNaN$1(val) {
14212
+ return Number.isNaN(val);
14213
+ }
14214
+ number.isNaN = isNaN$1;
14215
+ function isntNaN(val) {
14216
+ return !isNaN$1(val);
14217
+ }
14218
+ number.isntNaN = isntNaN;
14219
+
14220
+ var object = {};
14221
+
14222
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
14223
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14224
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
14225
+ const isPlainObject_1 = __importDefault(isPlainObject_1$3);
14226
+ function isObject(val) {
14227
+ return val !== null
14228
+ && typeof val === 'object';
14229
+ }
14230
+ object.isObject = isObject;
14231
+ function isntObject(val) {
14232
+ return !isObject(val);
14233
+ }
14234
+ object.isntObject = isntObject;
14235
+ function isPlainObject(val) {
14236
+ return (0, isPlainObject_1.default)(val);
14237
+ }
14238
+ object.isPlainObject = isPlainObject;
14239
+ function isntPlainObject(val) {
14240
+ return !isPlainObject(val);
14241
+ }
14242
+ object.isntPlainObject = isntPlainObject;
14243
+ function isEmptyObject(val) {
14244
+ return Object.keys(val).length === 0;
14245
+ }
14246
+ object.isEmptyObject = isEmptyObject;
14247
+ function isntEmptyObject(val) {
14248
+ return Object.keys(val).length !== 0;
14249
+ }
14250
+ object.isntEmptyObject = isntEmptyObject;
14251
+
14252
+ json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
14253
+ const null_1 = _null;
14254
+ const boolean_1 = boolean;
14255
+ const string_1 = string;
14256
+ const number_1 = number;
14257
+ const array_1 = array;
14258
+ const object_1$1 = object;
14259
+ function isJson(val) {
14260
+ return (0, null_1.isNull)(val)
14261
+ || (0, boolean_1.isBoolean)(val)
14262
+ || (0, string_1.isString)(val)
14263
+ || (0, number_1.isNumber)(val)
14264
+ || ((0, array_1.isArray)(val) && val.every(isJson))
14265
+ || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
14266
+ }
14267
+ json.isJson = isJson;
14268
+ function isntJson(val) {
14269
+ return !isJson(val);
14270
+ }
14271
+ json.isntJson = isntJson;
14272
+ function isJsonable(val) {
14273
+ try {
14274
+ JSON.stringify(val);
14275
+ return true;
14276
+ }
14277
+ catch (_a) {
14278
+ return false;
14279
+ }
14280
+ }
14281
+ json.isJsonable = isJsonable;
14282
+ function isntJsonable(val) {
14283
+ return !isntJsonable();
14284
+ }
14285
+ json.isntJsonable = isntJsonable;
14286
+
14287
+ var promise = {};
14288
+
14289
+ promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
14290
+ const object_1 = object;
14291
+ const function_1 = _function;
14292
+ function isPromise(val) {
14293
+ return val instanceof Promise;
14294
+ }
14295
+ promise.isPromise = isPromise;
14296
+ function isntPromise(val) {
14297
+ return !isPromise(val);
14298
+ }
14299
+ promise.isntPromise = isntPromise;
14300
+ function isntPromiseLike(val) {
14301
+ return !isPromiseLike(val);
14302
+ }
14303
+ promise.isntPromiseLike = isntPromiseLike;
14304
+ function isPromiseLike(val) {
14305
+ return (0, object_1.isObject)(val)
14306
+ && (0, function_1.isFunction)(val.then);
14307
+ }
14308
+ promise.isPromiseLike = isPromiseLike;
14309
+
14310
+ var url = {};
14311
+
14312
+ url.isAbsoluteURL = void 0;
14313
+ function isAbsoluteURL(str) {
14314
+ try {
14315
+ new URL(str);
14316
+ return true;
14317
+ }
14318
+ catch (_a) {
14319
+ return false;
14320
+ }
14321
+ }
14322
+ url.isAbsoluteURL = isAbsoluteURL;
14323
+
14324
+ (function (exports) {
14325
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14326
+ if (k2 === undefined) k2 = k;
14327
+ var desc = Object.getOwnPropertyDescriptor(m, k);
14328
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14329
+ desc = { enumerable: true, get: function() { return m[k]; } };
14330
+ }
14331
+ Object.defineProperty(o, k2, desc);
14332
+ }) : (function(o, m, k, k2) {
14333
+ if (k2 === undefined) k2 = k;
14334
+ o[k2] = m[k];
14335
+ }));
14336
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
14337
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
14338
+ };__exportStar(array, exports);
14339
+ __exportStar(asyncIterable, exports);
14340
+ __exportStar(bigint, exports);
14341
+ __exportStar(boolean, exports);
14342
+ __exportStar(char, exports);
14343
+ __exportStar(date, exports);
14344
+ __exportStar(_enum, exports);
14345
+ __exportStar(error, exports);
14346
+ __exportStar(falsy, exports);
14347
+ __exportStar(_function, exports);
14348
+ __exportStar(iterable, exports);
14349
+ __exportStar(json, exports);
14350
+ __exportStar(_null, exports);
14351
+ __exportStar(number, exports);
14352
+ __exportStar(object, exports);
14353
+ __exportStar(promise, exports);
14354
+ __exportStar(string, exports);
14355
+ __exportStar(_undefined, exports);
14356
+ __exportStar(url, exports);
14357
+
14358
+ } (es2018));
14359
+
14360
+ (function (exports) {
14361
+ exports.BadEventError = exports.ObservableFiniteStateMachine = void 0;
14362
+ const finite_state_machine_1 = finiteStateMachine;
14363
+ const rxjs_1 = cjs;
14364
+ const types_1 = es2018;
14365
+ class ObservableFiniteStateMachine extends finite_state_machine_1.FiniteStateMachine {
14366
+ constructor() {
14367
+ super(...arguments);
14368
+ this.stateChanges = new rxjs_1.Subject();
14369
+ }
14370
+ observeStateChanges() {
14371
+ return this.stateChanges;
14372
+ }
14373
+ send(event) {
14374
+ const oldState = this.state;
14375
+ super.send(event);
14376
+ const newState = this.state;
14377
+ this.stateChanges.next({ event, oldState, newState });
14378
+ if ((0, types_1.isEmptyObject)(this.schema[newState])) {
14379
+ this.stateChanges.complete();
14380
+ }
14381
+ }
14382
+ }
14383
+ exports.ObservableFiniteStateMachine = ObservableFiniteStateMachine;
13645
14384
  var finite_state_machine_2 = finiteStateMachine;
13646
14385
  Object.defineProperty(exports, "BadEventError", { enumerable: true, get: function () { return finite_state_machine_2.BadEventError; } });
13647
14386
 
@@ -13674,11 +14413,11 @@
13674
14413
  __exportStar(finiteStateMachine, exports);
13675
14414
  __exportStar(observableFiniteStateMachine, exports);
13676
14415
 
13677
- } (es2018$2));
14416
+ } (es2018$3));
13678
14417
 
13679
14418
  function useFiniteStateMachine(schema, initialState) {
13680
14419
  const forceUpdate = useForceUpdate();
13681
- const fsm = react.exports.useMemo(() => new es2018$2.ObservableFiniteStateMachine(schema, initialState), [schema]);
14420
+ const fsm = react.exports.useMemo(() => new es2018$3.ObservableFiniteStateMachine(schema, initialState), [schema]);
13682
14421
  react.exports.useEffect(() => {
13683
14422
  const observable = fsm.observeStateChanges();
13684
14423
  const subscription = observable.subscribe(() => forceUpdate());
@@ -13687,7 +14426,7 @@
13687
14426
  return fsm;
13688
14427
  }
13689
14428
 
13690
- exports.ObservableFiniteStateMachine = es2018$2.ObservableFiniteStateMachine;
14429
+ exports.ObservableFiniteStateMachine = es2018$3.ObservableFiniteStateMachine;
13691
14430
  exports.useFiniteStateMachine = useFiniteStateMachine;
13692
14431
  exports.useForceUpdate = useForceUpdate;
13693
14432
  exports.useIncrement = useIncrement;
@@ -13695,6 +14434,7 @@
13695
14434
  exports.useIsMounted = useIsMounted;
13696
14435
  exports.useMount = useMount;
13697
14436
  exports.useMultipleSelection = useMultipleSelection;
14437
+ exports.useRenderCounter = useRenderCounter;
13698
14438
  exports.useResizeObserver = useResizeObserver;
13699
14439
  exports.useSingleSelection = useSingleSelection;
13700
14440
  exports.useStateCycle = useStateCycle;