@bigbinary/neetoui 5.2.31 → 5.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/formik.cjs.js CHANGED
@@ -4,9 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var formik = require('formik');
7
+ var ramda = require('ramda');
7
8
  var reactRouterDom = require('react-router-dom');
8
9
  var ReactDOM = require('react-dom');
9
10
  var neetoIcons = require('@bigbinary/neeto-icons');
11
+ require('@bigbinary/neeto-cist');
10
12
  var _ConfigProvider = require('antd/lib/config-provider');
11
13
  var _Slider = require('antd/lib/slider');
12
14
  var _TreeSelect = require('antd/lib/tree-select');
@@ -109,1558 +111,6 @@ var classnames$2 = {exports: {}};
109
111
 
110
112
  var classnames$1 = classnames$2.exports;
111
113
 
112
- function _isPlaceholder(a) {
113
- return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
114
- }
115
-
116
- /**
117
- * Optimized internal one-arity curry function.
118
- *
119
- * @private
120
- * @category Function
121
- * @param {Function} fn The function to curry.
122
- * @return {Function} The curried function.
123
- */
124
-
125
- function _curry1(fn) {
126
- return function f1(a) {
127
- if (arguments.length === 0 || _isPlaceholder(a)) {
128
- return f1;
129
- } else {
130
- return fn.apply(this, arguments);
131
- }
132
- };
133
- }
134
-
135
- /**
136
- * Optimized internal two-arity curry function.
137
- *
138
- * @private
139
- * @category Function
140
- * @param {Function} fn The function to curry.
141
- * @return {Function} The curried function.
142
- */
143
-
144
- function _curry2(fn) {
145
- return function f2(a, b) {
146
- switch (arguments.length) {
147
- case 0:
148
- return f2;
149
-
150
- case 1:
151
- return _isPlaceholder(a) ? f2 : _curry1(function (_b) {
152
- return fn(a, _b);
153
- });
154
-
155
- default:
156
- return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {
157
- return fn(_a, b);
158
- }) : _isPlaceholder(b) ? _curry1(function (_b) {
159
- return fn(a, _b);
160
- }) : fn(a, b);
161
- }
162
- };
163
- }
164
-
165
- /**
166
- * Private `concat` function to merge two array-like objects.
167
- *
168
- * @private
169
- * @param {Array|Arguments} [set1=[]] An array-like object.
170
- * @param {Array|Arguments} [set2=[]] An array-like object.
171
- * @return {Array} A new, merged array.
172
- * @example
173
- *
174
- * _concat([4, 5, 6], [1, 2, 3]); //=> [4, 5, 6, 1, 2, 3]
175
- */
176
- function _concat(set1, set2) {
177
- set1 = set1 || [];
178
- set2 = set2 || [];
179
- var idx;
180
- var len1 = set1.length;
181
- var len2 = set2.length;
182
- var result = [];
183
- idx = 0;
184
-
185
- while (idx < len1) {
186
- result[result.length] = set1[idx];
187
- idx += 1;
188
- }
189
-
190
- idx = 0;
191
-
192
- while (idx < len2) {
193
- result[result.length] = set2[idx];
194
- idx += 1;
195
- }
196
-
197
- return result;
198
- }
199
-
200
- function _arity(n, fn) {
201
- /* eslint-disable no-unused-vars */
202
- switch (n) {
203
- case 0:
204
- return function () {
205
- return fn.apply(this, arguments);
206
- };
207
-
208
- case 1:
209
- return function (a0) {
210
- return fn.apply(this, arguments);
211
- };
212
-
213
- case 2:
214
- return function (a0, a1) {
215
- return fn.apply(this, arguments);
216
- };
217
-
218
- case 3:
219
- return function (a0, a1, a2) {
220
- return fn.apply(this, arguments);
221
- };
222
-
223
- case 4:
224
- return function (a0, a1, a2, a3) {
225
- return fn.apply(this, arguments);
226
- };
227
-
228
- case 5:
229
- return function (a0, a1, a2, a3, a4) {
230
- return fn.apply(this, arguments);
231
- };
232
-
233
- case 6:
234
- return function (a0, a1, a2, a3, a4, a5) {
235
- return fn.apply(this, arguments);
236
- };
237
-
238
- case 7:
239
- return function (a0, a1, a2, a3, a4, a5, a6) {
240
- return fn.apply(this, arguments);
241
- };
242
-
243
- case 8:
244
- return function (a0, a1, a2, a3, a4, a5, a6, a7) {
245
- return fn.apply(this, arguments);
246
- };
247
-
248
- case 9:
249
- return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) {
250
- return fn.apply(this, arguments);
251
- };
252
-
253
- case 10:
254
- return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) {
255
- return fn.apply(this, arguments);
256
- };
257
-
258
- default:
259
- throw new Error('First argument to _arity must be a non-negative integer no greater than ten');
260
- }
261
- }
262
-
263
- /**
264
- * Internal curryN function.
265
- *
266
- * @private
267
- * @category Function
268
- * @param {Number} length The arity of the curried function.
269
- * @param {Array} received An array of arguments received thus far.
270
- * @param {Function} fn The function to curry.
271
- * @return {Function} The curried function.
272
- */
273
-
274
- function _curryN(length, received, fn) {
275
- return function () {
276
- var combined = [];
277
- var argsIdx = 0;
278
- var left = length;
279
- var combinedIdx = 0;
280
-
281
- while (combinedIdx < received.length || argsIdx < arguments.length) {
282
- var result;
283
-
284
- if (combinedIdx < received.length && (!_isPlaceholder(received[combinedIdx]) || argsIdx >= arguments.length)) {
285
- result = received[combinedIdx];
286
- } else {
287
- result = arguments[argsIdx];
288
- argsIdx += 1;
289
- }
290
-
291
- combined[combinedIdx] = result;
292
-
293
- if (!_isPlaceholder(result)) {
294
- left -= 1;
295
- }
296
-
297
- combinedIdx += 1;
298
- }
299
-
300
- return left <= 0 ? fn.apply(this, combined) : _arity(left, _curryN(length, combined, fn));
301
- };
302
- }
303
-
304
- /**
305
- * Returns a curried equivalent of the provided function, with the specified
306
- * arity. The curried function has two unusual capabilities. First, its
307
- * arguments needn't be provided one at a time. If `g` is `R.curryN(3, f)`, the
308
- * following are equivalent:
309
- *
310
- * - `g(1)(2)(3)`
311
- * - `g(1)(2, 3)`
312
- * - `g(1, 2)(3)`
313
- * - `g(1, 2, 3)`
314
- *
315
- * Secondly, the special placeholder value [`R.__`](#__) may be used to specify
316
- * "gaps", allowing partial application of any combination of arguments,
317
- * regardless of their positions. If `g` is as above and `_` is [`R.__`](#__),
318
- * the following are equivalent:
319
- *
320
- * - `g(1, 2, 3)`
321
- * - `g(_, 2, 3)(1)`
322
- * - `g(_, _, 3)(1)(2)`
323
- * - `g(_, _, 3)(1, 2)`
324
- * - `g(_, 2)(1)(3)`
325
- * - `g(_, 2)(1, 3)`
326
- * - `g(_, 2)(_, 3)(1)`
327
- *
328
- * @func
329
- * @memberOf R
330
- * @since v0.5.0
331
- * @category Function
332
- * @sig Number -> (* -> a) -> (* -> a)
333
- * @param {Number} length The arity for the returned function.
334
- * @param {Function} fn The function to curry.
335
- * @return {Function} A new, curried function.
336
- * @see R.curry
337
- * @example
338
- *
339
- * const sumArgs = (...args) => R.sum(args);
340
- *
341
- * const curriedAddFourNumbers = R.curryN(4, sumArgs);
342
- * const f = curriedAddFourNumbers(1, 2);
343
- * const g = f(3);
344
- * g(4); //=> 10
345
- */
346
-
347
- var curryN =
348
- /*#__PURE__*/
349
- _curry2(function curryN(length, fn) {
350
- if (length === 1) {
351
- return _curry1(fn);
352
- }
353
-
354
- return _arity(length, _curryN(length, [], fn));
355
- });
356
-
357
- /**
358
- * Optimized internal three-arity curry function.
359
- *
360
- * @private
361
- * @category Function
362
- * @param {Function} fn The function to curry.
363
- * @return {Function} The curried function.
364
- */
365
-
366
- function _curry3(fn) {
367
- return function f3(a, b, c) {
368
- switch (arguments.length) {
369
- case 0:
370
- return f3;
371
-
372
- case 1:
373
- return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {
374
- return fn(a, _b, _c);
375
- });
376
-
377
- case 2:
378
- return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {
379
- return fn(_a, b, _c);
380
- }) : _isPlaceholder(b) ? _curry2(function (_b, _c) {
381
- return fn(a, _b, _c);
382
- }) : _curry1(function (_c) {
383
- return fn(a, b, _c);
384
- });
385
-
386
- default:
387
- return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {
388
- return fn(_a, _b, c);
389
- }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {
390
- return fn(_a, b, _c);
391
- }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {
392
- return fn(a, _b, _c);
393
- }) : _isPlaceholder(a) ? _curry1(function (_a) {
394
- return fn(_a, b, c);
395
- }) : _isPlaceholder(b) ? _curry1(function (_b) {
396
- return fn(a, _b, c);
397
- }) : _isPlaceholder(c) ? _curry1(function (_c) {
398
- return fn(a, b, _c);
399
- }) : fn(a, b, c);
400
- }
401
- };
402
- }
403
-
404
- /**
405
- * Tests whether or not an object is an array.
406
- *
407
- * @private
408
- * @param {*} val The object to test.
409
- * @return {Boolean} `true` if `val` is an array, `false` otherwise.
410
- * @example
411
- *
412
- * _isArray([]); //=> true
413
- * _isArray(null); //=> false
414
- * _isArray({}); //=> false
415
- */
416
- var _isArray = Array.isArray || function _isArray(val) {
417
- return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';
418
- };
419
-
420
- function _isTransformer(obj) {
421
- return obj != null && typeof obj['@@transducer/step'] === 'function';
422
- }
423
-
424
- /**
425
- * Returns a function that dispatches with different strategies based on the
426
- * object in list position (last argument). If it is an array, executes [fn].
427
- * Otherwise, if it has a function with one of the given method names, it will
428
- * execute that function (functor case). Otherwise, if it is a transformer,
429
- * uses transducer created by [transducerCreator] to return a new transformer
430
- * (transducer case).
431
- * Otherwise, it will default to executing [fn].
432
- *
433
- * @private
434
- * @param {Array} methodNames properties to check for a custom implementation
435
- * @param {Function} transducerCreator transducer factory if object is transformer
436
- * @param {Function} fn default ramda implementation
437
- * @return {Function} A function that dispatches on object in list position
438
- */
439
-
440
- function _dispatchable(methodNames, transducerCreator, fn) {
441
- return function () {
442
- if (arguments.length === 0) {
443
- return fn();
444
- }
445
-
446
- var obj = arguments[arguments.length - 1];
447
-
448
- if (!_isArray(obj)) {
449
- var idx = 0;
450
-
451
- while (idx < methodNames.length) {
452
- if (typeof obj[methodNames[idx]] === 'function') {
453
- return obj[methodNames[idx]].apply(obj, Array.prototype.slice.call(arguments, 0, -1));
454
- }
455
-
456
- idx += 1;
457
- }
458
-
459
- if (_isTransformer(obj)) {
460
- var transducer = transducerCreator.apply(null, Array.prototype.slice.call(arguments, 0, -1));
461
- return transducer(obj);
462
- }
463
- }
464
-
465
- return fn.apply(this, arguments);
466
- };
467
- }
468
-
469
- var _xfBase = {
470
- init: function () {
471
- return this.xf['@@transducer/init']();
472
- },
473
- result: function (result) {
474
- return this.xf['@@transducer/result'](result);
475
- }
476
- };
477
-
478
- function _arrayFromIterator(iter) {
479
- var list = [];
480
- var next;
481
-
482
- while (!(next = iter.next()).done) {
483
- list.push(next.value);
484
- }
485
-
486
- return list;
487
- }
488
-
489
- function _includesWith(pred, x, list) {
490
- var idx = 0;
491
- var len = list.length;
492
-
493
- while (idx < len) {
494
- if (pred(x, list[idx])) {
495
- return true;
496
- }
497
-
498
- idx += 1;
499
- }
500
-
501
- return false;
502
- }
503
-
504
- function _functionName(f) {
505
- // String(x => x) evaluates to "x => x", so the pattern may not match.
506
- var match = String(f).match(/^function (\w*)/);
507
- return match == null ? '' : match[1];
508
- }
509
-
510
- function _has(prop, obj) {
511
- return Object.prototype.hasOwnProperty.call(obj, prop);
512
- }
513
-
514
- // Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
515
- function _objectIs(a, b) {
516
- // SameValue algorithm
517
- if (a === b) {
518
- // Steps 1-5, 7-10
519
- // Steps 6.b-6.e: +0 != -0
520
- return a !== 0 || 1 / a === 1 / b;
521
- } else {
522
- // Step 6.a: NaN == NaN
523
- return a !== a && b !== b;
524
- }
525
- }
526
-
527
- var _objectIs$1 = typeof Object.is === 'function' ? Object.is : _objectIs;
528
-
529
- var toString = Object.prototype.toString;
530
-
531
- var _isArguments =
532
- /*#__PURE__*/
533
- function () {
534
- return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {
535
- return toString.call(x) === '[object Arguments]';
536
- } : function _isArguments(x) {
537
- return _has('callee', x);
538
- };
539
- }();
540
-
541
- var hasEnumBug = !
542
- /*#__PURE__*/
543
- {
544
- toString: null
545
- }.propertyIsEnumerable('toString');
546
- var nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug
547
-
548
- var hasArgsEnumBug =
549
- /*#__PURE__*/
550
- function () {
551
-
552
- return arguments.propertyIsEnumerable('length');
553
- }();
554
-
555
- var contains$1 = function contains(list, item) {
556
- var idx = 0;
557
-
558
- while (idx < list.length) {
559
- if (list[idx] === item) {
560
- return true;
561
- }
562
-
563
- idx += 1;
564
- }
565
-
566
- return false;
567
- };
568
- /**
569
- * Returns a list containing the names of all the enumerable own properties of
570
- * the supplied object.
571
- * Note that the order of the output array is not guaranteed to be consistent
572
- * across different JS platforms.
573
- *
574
- * @func
575
- * @memberOf R
576
- * @since v0.1.0
577
- * @category Object
578
- * @sig {k: v} -> [k]
579
- * @param {Object} obj The object to extract properties from
580
- * @return {Array} An array of the object's own properties.
581
- * @see R.keysIn, R.values, R.toPairs
582
- * @example
583
- *
584
- * R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']
585
- */
586
-
587
-
588
- var keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?
589
- /*#__PURE__*/
590
- _curry1(function keys(obj) {
591
- return Object(obj) !== obj ? [] : Object.keys(obj);
592
- }) :
593
- /*#__PURE__*/
594
- _curry1(function keys(obj) {
595
- if (Object(obj) !== obj) {
596
- return [];
597
- }
598
-
599
- var prop, nIdx;
600
- var ks = [];
601
-
602
- var checkArgsLength = hasArgsEnumBug && _isArguments(obj);
603
-
604
- for (prop in obj) {
605
- if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {
606
- ks[ks.length] = prop;
607
- }
608
- }
609
-
610
- if (hasEnumBug) {
611
- nIdx = nonEnumerableProps.length - 1;
612
-
613
- while (nIdx >= 0) {
614
- prop = nonEnumerableProps[nIdx];
615
-
616
- if (_has(prop, obj) && !contains$1(ks, prop)) {
617
- ks[ks.length] = prop;
618
- }
619
-
620
- nIdx -= 1;
621
- }
622
- }
623
-
624
- return ks;
625
- });
626
-
627
- /**
628
- * Gives a single-word string description of the (native) type of a value,
629
- * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not
630
- * attempt to distinguish user Object types any further, reporting them all as
631
- * 'Object'.
632
- *
633
- * @func
634
- * @memberOf R
635
- * @since v0.8.0
636
- * @category Type
637
- * @sig * -> String
638
- * @param {*} val The value to test
639
- * @return {String}
640
- * @example
641
- *
642
- * R.type({}); //=> "Object"
643
- * R.type(1); //=> "Number"
644
- * R.type(false); //=> "Boolean"
645
- * R.type('s'); //=> "String"
646
- * R.type(null); //=> "Null"
647
- * R.type([]); //=> "Array"
648
- * R.type(/[A-z]/); //=> "RegExp"
649
- * R.type(() => {}); //=> "Function"
650
- * R.type(undefined); //=> "Undefined"
651
- */
652
-
653
- var type =
654
- /*#__PURE__*/
655
- _curry1(function type(val) {
656
- return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);
657
- });
658
-
659
- /**
660
- * private _uniqContentEquals function.
661
- * That function is checking equality of 2 iterator contents with 2 assumptions
662
- * - iterators lengths are the same
663
- * - iterators values are unique
664
- *
665
- * false-positive result will be returned for comparison of, e.g.
666
- * - [1,2,3] and [1,2,3,4]
667
- * - [1,1,1] and [1,2,3]
668
- * */
669
-
670
- function _uniqContentEquals(aIterator, bIterator, stackA, stackB) {
671
- var a = _arrayFromIterator(aIterator);
672
-
673
- var b = _arrayFromIterator(bIterator);
674
-
675
- function eq(_a, _b) {
676
- return _equals(_a, _b, stackA.slice(), stackB.slice());
677
- } // if *a* array contains any element that is not included in *b*
678
-
679
-
680
- return !_includesWith(function (b, aItem) {
681
- return !_includesWith(eq, aItem, b);
682
- }, b, a);
683
- }
684
-
685
- function _equals(a, b, stackA, stackB) {
686
- if (_objectIs$1(a, b)) {
687
- return true;
688
- }
689
-
690
- var typeA = type(a);
691
-
692
- if (typeA !== type(b)) {
693
- return false;
694
- }
695
-
696
- if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {
697
- return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);
698
- }
699
-
700
- if (typeof a.equals === 'function' || typeof b.equals === 'function') {
701
- return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);
702
- }
703
-
704
- switch (typeA) {
705
- case 'Arguments':
706
- case 'Array':
707
- case 'Object':
708
- if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {
709
- return a === b;
710
- }
711
-
712
- break;
713
-
714
- case 'Boolean':
715
- case 'Number':
716
- case 'String':
717
- if (!(typeof a === typeof b && _objectIs$1(a.valueOf(), b.valueOf()))) {
718
- return false;
719
- }
720
-
721
- break;
722
-
723
- case 'Date':
724
- if (!_objectIs$1(a.valueOf(), b.valueOf())) {
725
- return false;
726
- }
727
-
728
- break;
729
-
730
- case 'Error':
731
- return a.name === b.name && a.message === b.message;
732
-
733
- case 'RegExp':
734
- if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {
735
- return false;
736
- }
737
-
738
- break;
739
- }
740
-
741
- var idx = stackA.length - 1;
742
-
743
- while (idx >= 0) {
744
- if (stackA[idx] === a) {
745
- return stackB[idx] === b;
746
- }
747
-
748
- idx -= 1;
749
- }
750
-
751
- switch (typeA) {
752
- case 'Map':
753
- if (a.size !== b.size) {
754
- return false;
755
- }
756
-
757
- return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));
758
-
759
- case 'Set':
760
- if (a.size !== b.size) {
761
- return false;
762
- }
763
-
764
- return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));
765
-
766
- case 'Arguments':
767
- case 'Array':
768
- case 'Object':
769
- case 'Boolean':
770
- case 'Number':
771
- case 'String':
772
- case 'Date':
773
- case 'Error':
774
- case 'RegExp':
775
- case 'Int8Array':
776
- case 'Uint8Array':
777
- case 'Uint8ClampedArray':
778
- case 'Int16Array':
779
- case 'Uint16Array':
780
- case 'Int32Array':
781
- case 'Uint32Array':
782
- case 'Float32Array':
783
- case 'Float64Array':
784
- case 'ArrayBuffer':
785
- break;
786
-
787
- default:
788
- // Values of other types are only equal if identical.
789
- return false;
790
- }
791
-
792
- var keysA = keys(a);
793
-
794
- if (keysA.length !== keys(b).length) {
795
- return false;
796
- }
797
-
798
- var extendedStackA = stackA.concat([a]);
799
- var extendedStackB = stackB.concat([b]);
800
- idx = keysA.length - 1;
801
-
802
- while (idx >= 0) {
803
- var key = keysA[idx];
804
-
805
- if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {
806
- return false;
807
- }
808
-
809
- idx -= 1;
810
- }
811
-
812
- return true;
813
- }
814
-
815
- /**
816
- * Returns `true` if its arguments are equivalent, `false` otherwise. Handles
817
- * cyclical data structures.
818
- *
819
- * Dispatches symmetrically to the `equals` methods of both arguments, if
820
- * present.
821
- *
822
- * @func
823
- * @memberOf R
824
- * @since v0.15.0
825
- * @category Relation
826
- * @sig a -> b -> Boolean
827
- * @param {*} a
828
- * @param {*} b
829
- * @return {Boolean}
830
- * @example
831
- *
832
- * R.equals(1, 1); //=> true
833
- * R.equals(1, '1'); //=> false
834
- * R.equals([1, 2, 3], [1, 2, 3]); //=> true
835
- *
836
- * const a = {}; a.v = a;
837
- * const b = {}; b.v = b;
838
- * R.equals(a, b); //=> true
839
- */
840
-
841
- var equals =
842
- /*#__PURE__*/
843
- _curry2(function equals(a, b) {
844
- return _equals(a, b, [], []);
845
- });
846
-
847
- function _map(fn, functor) {
848
- var idx = 0;
849
- var len = functor.length;
850
- var result = Array(len);
851
-
852
- while (idx < len) {
853
- result[idx] = fn(functor[idx]);
854
- idx += 1;
855
- }
856
-
857
- return result;
858
- }
859
-
860
- function _arrayReduce(reducer, acc, list) {
861
- var index = 0;
862
- var length = list.length;
863
-
864
- while (index < length) {
865
- acc = reducer(acc, list[index]);
866
- index += 1;
867
- }
868
-
869
- return acc;
870
- }
871
-
872
- function _isObject(x) {
873
- return Object.prototype.toString.call(x) === '[object Object]';
874
- }
875
-
876
- var XMap =
877
- /*#__PURE__*/
878
- function () {
879
- function XMap(f, xf) {
880
- this.xf = xf;
881
- this.f = f;
882
- }
883
-
884
- XMap.prototype['@@transducer/init'] = _xfBase.init;
885
- XMap.prototype['@@transducer/result'] = _xfBase.result;
886
-
887
- XMap.prototype['@@transducer/step'] = function (result, input) {
888
- return this.xf['@@transducer/step'](result, this.f(input));
889
- };
890
-
891
- return XMap;
892
- }();
893
-
894
- var _xmap = function _xmap(f) {
895
- return function (xf) {
896
- return new XMap(f, xf);
897
- };
898
- };
899
-
900
- /**
901
- * Takes a function and
902
- * a [functor](https://github.com/fantasyland/fantasy-land#functor),
903
- * applies the function to each of the functor's values, and returns
904
- * a functor of the same shape.
905
- *
906
- * Ramda provides suitable `map` implementations for `Array` and `Object`,
907
- * so this function may be applied to `[1, 2, 3]` or `{x: 1, y: 2, z: 3}`.
908
- *
909
- * Dispatches to the `map` method of the second argument, if present.
910
- *
911
- * Acts as a transducer if a transformer is given in list position.
912
- *
913
- * Also treats functions as functors and will compose them together.
914
- *
915
- * @func
916
- * @memberOf R
917
- * @since v0.1.0
918
- * @category List
919
- * @sig Functor f => (a -> b) -> f a -> f b
920
- * @param {Function} fn The function to be called on every element of the input `list`.
921
- * @param {Array} list The list to be iterated over.
922
- * @return {Array} The new list.
923
- * @see R.transduce, R.addIndex, R.pluck, R.project
924
- * @example
925
- *
926
- * const double = x => x * 2;
927
- *
928
- * R.map(double, [1, 2, 3]); //=> [2, 4, 6]
929
- *
930
- * R.map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
931
- * @symb R.map(f, [a, b]) = [f(a), f(b)]
932
- * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
933
- * @symb R.map(f, functor_o) = functor_o.map(f)
934
- */
935
-
936
- var map =
937
- /*#__PURE__*/
938
- _curry2(
939
- /*#__PURE__*/
940
- _dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
941
- switch (Object.prototype.toString.call(functor)) {
942
- case '[object Function]':
943
- return curryN(functor.length, function () {
944
- return fn.call(this, functor.apply(this, arguments));
945
- });
946
-
947
- case '[object Object]':
948
- return _arrayReduce(function (acc, key) {
949
- acc[key] = fn(functor[key]);
950
- return acc;
951
- }, {}, keys(functor));
952
-
953
- default:
954
- return _map(fn, functor);
955
- }
956
- }));
957
-
958
- /**
959
- * Determine if the passed argument is an integer.
960
- *
961
- * @private
962
- * @param {*} n
963
- * @category Type
964
- * @return {Boolean}
965
- */
966
- var _isInteger = Number.isInteger || function _isInteger(n) {
967
- return n << 0 === n;
968
- };
969
-
970
- function _isString(x) {
971
- return Object.prototype.toString.call(x) === '[object String]';
972
- }
973
-
974
- /**
975
- * Returns the nth element of the given list or string. If n is negative the
976
- * element at index length + n is returned.
977
- *
978
- * @func
979
- * @memberOf R
980
- * @since v0.1.0
981
- * @category List
982
- * @sig Number -> [a] -> a | Undefined
983
- * @sig Number -> String -> String
984
- * @param {Number} offset
985
- * @param {*} list
986
- * @return {*}
987
- * @example
988
- *
989
- * const list = ['foo', 'bar', 'baz', 'quux'];
990
- * R.nth(1, list); //=> 'bar'
991
- * R.nth(-1, list); //=> 'quux'
992
- * R.nth(-99, list); //=> undefined
993
- *
994
- * R.nth(2, 'abc'); //=> 'c'
995
- * R.nth(3, 'abc'); //=> ''
996
- * @symb R.nth(-1, [a, b, c]) = c
997
- * @symb R.nth(0, [a, b, c]) = a
998
- * @symb R.nth(1, [a, b, c]) = b
999
- */
1000
-
1001
- var nth =
1002
- /*#__PURE__*/
1003
- _curry2(function nth(offset, list) {
1004
- var idx = offset < 0 ? list.length + offset : offset;
1005
- return _isString(list) ? list.charAt(idx) : list[idx];
1006
- });
1007
-
1008
- /**
1009
- * Returns a function that when supplied an object returns the indicated
1010
- * property of that object, if it exists.
1011
- *
1012
- * @func
1013
- * @memberOf R
1014
- * @since v0.1.0
1015
- * @category Object
1016
- * @typedefn Idx = String | Int | Symbol
1017
- * @sig Idx -> {s: a} -> a | Undefined
1018
- * @param {String|Number} p The property name or array index
1019
- * @param {Object} obj The object to query
1020
- * @return {*} The value at `obj.p`.
1021
- * @see R.path, R.props, R.pluck, R.project, R.nth
1022
- * @example
1023
- *
1024
- * R.prop('x', {x: 100}); //=> 100
1025
- * R.prop('x', {}); //=> undefined
1026
- * R.prop(0, [100]); //=> 100
1027
- * R.compose(R.inc, R.prop('x'))({ x: 3 }) //=> 4
1028
- */
1029
-
1030
- var prop =
1031
- /*#__PURE__*/
1032
- _curry2(function prop(p, obj) {
1033
- if (obj == null) {
1034
- return;
1035
- }
1036
-
1037
- return _isInteger(p) ? nth(p, obj) : obj[p];
1038
- });
1039
-
1040
- /**
1041
- * Returns a new list by plucking the same named property off all objects in
1042
- * the list supplied.
1043
- *
1044
- * `pluck` will work on
1045
- * any [functor](https://github.com/fantasyland/fantasy-land#functor) in
1046
- * addition to arrays, as it is equivalent to `R.map(R.prop(k), f)`.
1047
- *
1048
- * @func
1049
- * @memberOf R
1050
- * @since v0.1.0
1051
- * @category List
1052
- * @sig Functor f => k -> f {k: v} -> f v
1053
- * @param {Number|String} key The key name to pluck off of each object.
1054
- * @param {Array} f The array or functor to consider.
1055
- * @return {Array} The list of values for the given key.
1056
- * @see R.project, R.prop, R.props
1057
- * @example
1058
- *
1059
- * var getAges = R.pluck('age');
1060
- * getAges([{name: 'fred', age: 29}, {name: 'wilma', age: 27}]); //=> [29, 27]
1061
- *
1062
- * R.pluck(0, [[1, 2], [3, 4]]); //=> [1, 3]
1063
- * R.pluck('val', {a: {val: 3}, b: {val: 5}}); //=> {a: 3, b: 5}
1064
- * @symb R.pluck('x', [{x: 1, y: 2}, {x: 3, y: 4}, {x: 5, y: 6}]) = [1, 3, 5]
1065
- * @symb R.pluck(0, [[1, 2], [3, 4], [5, 6]]) = [1, 3, 5]
1066
- */
1067
-
1068
- var pluck =
1069
- /*#__PURE__*/
1070
- _curry2(function pluck(p, list) {
1071
- return map(prop(p), list);
1072
- });
1073
-
1074
- /**
1075
- * Tests whether or not an object is similar to an array.
1076
- *
1077
- * @private
1078
- * @category Type
1079
- * @category List
1080
- * @sig * -> Boolean
1081
- * @param {*} x The object to test.
1082
- * @return {Boolean} `true` if `x` has a numeric length property and extreme indices defined; `false` otherwise.
1083
- * @example
1084
- *
1085
- * _isArrayLike([]); //=> true
1086
- * _isArrayLike(true); //=> false
1087
- * _isArrayLike({}); //=> false
1088
- * _isArrayLike({length: 10}); //=> false
1089
- * _isArrayLike({0: 'zero', 9: 'nine', length: 10}); //=> true
1090
- * _isArrayLike({nodeType: 1, length: 1}) // => false
1091
- */
1092
-
1093
- var _isArrayLike =
1094
- /*#__PURE__*/
1095
- _curry1(function isArrayLike(x) {
1096
- if (_isArray(x)) {
1097
- return true;
1098
- }
1099
-
1100
- if (!x) {
1101
- return false;
1102
- }
1103
-
1104
- if (typeof x !== 'object') {
1105
- return false;
1106
- }
1107
-
1108
- if (_isString(x)) {
1109
- return false;
1110
- }
1111
-
1112
- if (x.length === 0) {
1113
- return true;
1114
- }
1115
-
1116
- if (x.length > 0) {
1117
- return x.hasOwnProperty(0) && x.hasOwnProperty(x.length - 1);
1118
- }
1119
-
1120
- return false;
1121
- });
1122
-
1123
- var symIterator = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator';
1124
- function _createReduce(arrayReduce, methodReduce, iterableReduce) {
1125
- return function _reduce(xf, acc, list) {
1126
- if (_isArrayLike(list)) {
1127
- return arrayReduce(xf, acc, list);
1128
- }
1129
-
1130
- if (list == null) {
1131
- return acc;
1132
- }
1133
-
1134
- if (typeof list['fantasy-land/reduce'] === 'function') {
1135
- return methodReduce(xf, acc, list, 'fantasy-land/reduce');
1136
- }
1137
-
1138
- if (list[symIterator] != null) {
1139
- return iterableReduce(xf, acc, list[symIterator]());
1140
- }
1141
-
1142
- if (typeof list.next === 'function') {
1143
- return iterableReduce(xf, acc, list);
1144
- }
1145
-
1146
- if (typeof list.reduce === 'function') {
1147
- return methodReduce(xf, acc, list, 'reduce');
1148
- }
1149
-
1150
- throw new TypeError('reduce: list must be array or iterable');
1151
- };
1152
- }
1153
-
1154
- function _iterableReduce(reducer, acc, iter) {
1155
- var step = iter.next();
1156
-
1157
- while (!step.done) {
1158
- acc = reducer(acc, step.value);
1159
- step = iter.next();
1160
- }
1161
-
1162
- return acc;
1163
- }
1164
-
1165
- function _methodReduce(reducer, acc, obj, methodName) {
1166
- return obj[methodName](reducer, acc);
1167
- }
1168
-
1169
- var _reduce =
1170
- /*#__PURE__*/
1171
- _createReduce(_arrayReduce, _methodReduce, _iterableReduce);
1172
-
1173
- /**
1174
- * ap applies a list of functions to a list of values.
1175
- *
1176
- * Dispatches to the `ap` method of the first argument, if present. Also
1177
- * treats curried functions as applicatives.
1178
- *
1179
- * @func
1180
- * @memberOf R
1181
- * @since v0.3.0
1182
- * @category Function
1183
- * @sig [a -> b] -> [a] -> [b]
1184
- * @sig Apply f => f (a -> b) -> f a -> f b
1185
- * @sig (r -> a -> b) -> (r -> a) -> (r -> b)
1186
- * @param {*} applyF
1187
- * @param {*} applyX
1188
- * @return {*}
1189
- * @example
1190
- *
1191
- * R.ap([R.multiply(2), R.add(3)], [1,2,3]); //=> [2, 4, 6, 4, 5, 6]
1192
- * R.ap([R.concat('tasty '), R.toUpper], ['pizza', 'salad']); //=> ["tasty pizza", "tasty salad", "PIZZA", "SALAD"]
1193
- *
1194
- * // R.ap can also be used as S combinator
1195
- * // when only two functions are passed
1196
- * R.ap(R.concat, R.toUpper)('Ramda') //=> 'RamdaRAMDA'
1197
- * @symb R.ap([f, g], [a, b]) = [f(a), f(b), g(a), g(b)]
1198
- */
1199
-
1200
- var ap =
1201
- /*#__PURE__*/
1202
- _curry2(function ap(applyF, applyX) {
1203
- return typeof applyX['fantasy-land/ap'] === 'function' ? applyX['fantasy-land/ap'](applyF) : typeof applyF.ap === 'function' ? applyF.ap(applyX) : typeof applyF === 'function' ? function (x) {
1204
- return applyF(x)(applyX(x));
1205
- } : _reduce(function (acc, f) {
1206
- return _concat(acc, map(f, applyX));
1207
- }, [], applyF);
1208
- });
1209
-
1210
- /**
1211
- * Makes a shallow clone of an object, setting or overriding the specified
1212
- * property with the given value. Note that this copies and flattens prototype
1213
- * properties onto the new object as well. All non-primitive properties are
1214
- * copied by reference.
1215
- *
1216
- * @private
1217
- * @param {String|Number} prop The property name to set
1218
- * @param {*} val The new value
1219
- * @param {Object|Array} obj The object to clone
1220
- * @return {Object|Array} A new object equivalent to the original except for the changed property.
1221
- */
1222
-
1223
- function _assoc(prop, val, obj) {
1224
- if (_isInteger(prop) && _isArray(obj)) {
1225
- var arr = [].concat(obj);
1226
- arr[prop] = val;
1227
- return arr;
1228
- }
1229
-
1230
- var result = {};
1231
-
1232
- for (var p in obj) {
1233
- result[p] = obj[p];
1234
- }
1235
-
1236
- result[prop] = val;
1237
- return result;
1238
- }
1239
-
1240
- /**
1241
- * Checks if the input value is `null` or `undefined`.
1242
- *
1243
- * @func
1244
- * @memberOf R
1245
- * @since v0.9.0
1246
- * @category Type
1247
- * @sig * -> Boolean
1248
- * @param {*} x The value to test.
1249
- * @return {Boolean} `true` if `x` is `undefined` or `null`, otherwise `false`.
1250
- * @example
1251
- *
1252
- * R.isNil(null); //=> true
1253
- * R.isNil(undefined); //=> true
1254
- * R.isNil(0); //=> false
1255
- * R.isNil([]); //=> false
1256
- */
1257
-
1258
- var isNil =
1259
- /*#__PURE__*/
1260
- _curry1(function isNil(x) {
1261
- return x == null;
1262
- });
1263
-
1264
- /**
1265
- * Makes a shallow clone of an object, setting or overriding the nodes required
1266
- * to create the given path, and placing the specific value at the tail end of
1267
- * that path. Note that this copies and flattens prototype properties onto the
1268
- * new object as well. All non-primitive properties are copied by reference.
1269
- *
1270
- * @func
1271
- * @memberOf R
1272
- * @since v0.8.0
1273
- * @category Object
1274
- * @typedefn Idx = String | Int | Symbol
1275
- * @sig [Idx] -> a -> {a} -> {a}
1276
- * @param {Array} path the path to set
1277
- * @param {*} val The new value
1278
- * @param {Object} obj The object to clone
1279
- * @return {Object} A new object equivalent to the original except along the specified path.
1280
- * @see R.dissocPath
1281
- * @example
1282
- *
1283
- * R.assocPath(['a', 'b', 'c'], 42, {a: {b: {c: 0}}}); //=> {a: {b: {c: 42}}}
1284
- *
1285
- * // Any missing or non-object keys in path will be overridden
1286
- * R.assocPath(['a', 'b', 'c'], 42, {a: 5}); //=> {a: {b: {c: 42}}}
1287
- */
1288
-
1289
- var assocPath =
1290
- /*#__PURE__*/
1291
- _curry3(function assocPath(path, val, obj) {
1292
- if (path.length === 0) {
1293
- return val;
1294
- }
1295
-
1296
- var idx = path[0];
1297
-
1298
- if (path.length > 1) {
1299
- var nextObj = !isNil(obj) && _has(idx, obj) && typeof obj[idx] === 'object' ? obj[idx] : _isInteger(path[1]) ? [] : {};
1300
- val = assocPath(Array.prototype.slice.call(path, 1), val, nextObj);
1301
- }
1302
-
1303
- return _assoc(idx, val, obj);
1304
- });
1305
-
1306
- /**
1307
- * Makes a shallow clone of an object, setting or overriding the specified
1308
- * property with the given value. Note that this copies and flattens prototype
1309
- * properties onto the new object as well. All non-primitive properties are
1310
- * copied by reference.
1311
- *
1312
- * @func
1313
- * @memberOf R
1314
- * @since v0.8.0
1315
- * @category Object
1316
- * @typedefn Idx = String | Int
1317
- * @sig Idx -> a -> {k: v} -> {k: v}
1318
- * @param {String|Number} prop The property name to set
1319
- * @param {*} val The new value
1320
- * @param {Object} obj The object to clone
1321
- * @return {Object} A new object equivalent to the original except for the changed property.
1322
- * @see R.dissoc, R.pick
1323
- * @example
1324
- *
1325
- * R.assoc('c', 3, {a: 1, b: 2}); //=> {a: 1, b: 2, c: 3}
1326
- */
1327
-
1328
- var assoc =
1329
- /*#__PURE__*/
1330
- _curry3(function assoc(prop, val, obj) {
1331
- return assocPath([prop], val, obj);
1332
- });
1333
-
1334
- function _isFunction(x) {
1335
- var type = Object.prototype.toString.call(x);
1336
- return type === '[object Function]' || type === '[object AsyncFunction]' || type === '[object GeneratorFunction]' || type === '[object AsyncGeneratorFunction]';
1337
- }
1338
-
1339
- /**
1340
- * "lifts" a function to be the specified arity, so that it may "map over" that
1341
- * many lists, Functions or other objects that satisfy the [FantasyLand Apply spec](https://github.com/fantasyland/fantasy-land#apply).
1342
- *
1343
- * @func
1344
- * @memberOf R
1345
- * @since v0.7.0
1346
- * @category Function
1347
- * @sig Number -> (*... -> *) -> ([*]... -> [*])
1348
- * @param {Function} fn The function to lift into higher context
1349
- * @return {Function} The lifted function.
1350
- * @see R.lift, R.ap
1351
- * @example
1352
- *
1353
- * const madd3 = R.liftN(3, (...args) => R.sum(args));
1354
- * madd3([1,2,3], [1,2,3], [1]); //=> [3, 4, 5, 4, 5, 6, 5, 6, 7]
1355
- */
1356
-
1357
- var liftN =
1358
- /*#__PURE__*/
1359
- _curry2(function liftN(arity, fn) {
1360
- var lifted = curryN(arity, fn);
1361
- return curryN(arity, function () {
1362
- return _arrayReduce(ap, map(lifted, arguments[0]), Array.prototype.slice.call(arguments, 1));
1363
- });
1364
- });
1365
-
1366
- /**
1367
- * "lifts" a function of arity >= 1 so that it may "map over" a list, Function or other
1368
- * object that satisfies the [FantasyLand Apply spec](https://github.com/fantasyland/fantasy-land#apply).
1369
- *
1370
- * @func
1371
- * @memberOf R
1372
- * @since v0.7.0
1373
- * @category Function
1374
- * @sig (*... -> *) -> ([*]... -> [*])
1375
- * @param {Function} fn The function to lift into higher context
1376
- * @return {Function} The lifted function.
1377
- * @see R.liftN
1378
- * @example
1379
- *
1380
- * const madd3 = R.lift((a, b, c) => a + b + c);
1381
- *
1382
- * madd3([100, 200], [30, 40], [5, 6, 7]); //=> [135, 136, 137, 145, 146, 147, 235, 236, 237, 245, 246, 247]
1383
- *
1384
- * const madd5 = R.lift((a, b, c, d, e) => a + b + c + d + e);
1385
- *
1386
- * madd5([10, 20], [1], [2, 3], [4], [100, 200]); //=> [117, 217, 118, 218, 127, 227, 128, 228]
1387
- */
1388
-
1389
- var lift =
1390
- /*#__PURE__*/
1391
- _curry1(function lift(fn) {
1392
- return liftN(fn.length, fn);
1393
- });
1394
-
1395
- /**
1396
- * Returns the first argument if it is truthy, otherwise the second argument.
1397
- * Acts as the boolean `or` statement if both inputs are `Boolean`s.
1398
- *
1399
- * @func
1400
- * @memberOf R
1401
- * @since v0.1.0
1402
- * @category Logic
1403
- * @sig a -> b -> a | b
1404
- * @param {Any} a
1405
- * @param {Any} b
1406
- * @return {Any}
1407
- * @see R.either, R.and
1408
- * @example
1409
- *
1410
- * R.or(true, true); //=> true
1411
- * R.or(true, false); //=> true
1412
- * R.or(false, true); //=> true
1413
- * R.or(false, false); //=> false
1414
- */
1415
-
1416
- var or =
1417
- /*#__PURE__*/
1418
- _curry2(function or(a, b) {
1419
- return a || b;
1420
- });
1421
-
1422
- /**
1423
- * A function wrapping calls to the two functions in an `||` operation,
1424
- * returning the result of the first function if it is truth-y and the result
1425
- * of the second function otherwise. Note that this is short-circuited,
1426
- * meaning that the second function will not be invoked if the first returns a
1427
- * truth-y value.
1428
- *
1429
- * In addition to functions, `R.either` also accepts any fantasy-land compatible
1430
- * applicative functor.
1431
- *
1432
- * @func
1433
- * @memberOf R
1434
- * @since v0.12.0
1435
- * @category Logic
1436
- * @sig (*... -> Boolean) -> (*... -> Boolean) -> (*... -> Boolean)
1437
- * @param {Function} f a predicate
1438
- * @param {Function} g another predicate
1439
- * @return {Function} a function that applies its arguments to `f` and `g` and `||`s their outputs together.
1440
- * @see R.both, R.anyPass, R.or
1441
- * @example
1442
- *
1443
- * const gt10 = x => x > 10;
1444
- * const even = x => x % 2 === 0;
1445
- * const f = R.either(gt10, even);
1446
- * f(101); //=> true
1447
- * f(8); //=> true
1448
- *
1449
- * R.either(Maybe.Just(false), Maybe.Just(55)); // => Maybe.Just(55)
1450
- * R.either([false, false, 'a'], [11]) // => [11, 11, "a"]
1451
- */
1452
-
1453
- var either =
1454
- /*#__PURE__*/
1455
- _curry2(function either(f, g) {
1456
- return _isFunction(f) ? function _either() {
1457
- return f.apply(this, arguments) || g.apply(this, arguments);
1458
- } : lift(or)(f, g);
1459
- });
1460
-
1461
- /**
1462
- * Tests whether or not an object is a typed array.
1463
- *
1464
- * @private
1465
- * @param {*} val The object to test.
1466
- * @return {Boolean} `true` if `val` is a typed array, `false` otherwise.
1467
- * @example
1468
- *
1469
- * _isTypedArray(new Uint8Array([])); //=> true
1470
- * _isTypedArray(new Float32Array([])); //=> true
1471
- * _isTypedArray([]); //=> false
1472
- * _isTypedArray(null); //=> false
1473
- * _isTypedArray({}); //=> false
1474
- */
1475
- function _isTypedArray(val) {
1476
- var type = Object.prototype.toString.call(val);
1477
- return type === '[object Uint8ClampedArray]' || type === '[object Int8Array]' || type === '[object Uint8Array]' || type === '[object Int16Array]' || type === '[object Uint16Array]' || type === '[object Int32Array]' || type === '[object Uint32Array]' || type === '[object Float32Array]' || type === '[object Float64Array]' || type === '[object BigInt64Array]' || type === '[object BigUint64Array]';
1478
- }
1479
-
1480
- /**
1481
- * Returns the empty value of its argument's type. Ramda defines the empty
1482
- * value of Array (`[]`), Object (`{}`), String (`''`),
1483
- * TypedArray (`Uint8Array []`, `Float32Array []`, etc), and Arguments. Other
1484
- * types are supported if they define `<Type>.empty`,
1485
- * `<Type>.prototype.empty` or implement the
1486
- * [FantasyLand Monoid spec](https://github.com/fantasyland/fantasy-land#monoid).
1487
- *
1488
- * Dispatches to the `empty` method of the first argument, if present.
1489
- *
1490
- * @func
1491
- * @memberOf R
1492
- * @since v0.3.0
1493
- * @category Function
1494
- * @sig a -> a
1495
- * @param {*} x
1496
- * @return {*}
1497
- * @example
1498
- *
1499
- * R.empty(Just(42)); //=> Nothing()
1500
- * R.empty([1, 2, 3]); //=> []
1501
- * R.empty('unicorns'); //=> ''
1502
- * R.empty({x: 1, y: 2}); //=> {}
1503
- * R.empty(Uint8Array.from('123')); //=> Uint8Array []
1504
- */
1505
-
1506
- var empty =
1507
- /*#__PURE__*/
1508
- _curry1(function empty(x) {
1509
- return x != null && typeof x['fantasy-land/empty'] === 'function' ? x['fantasy-land/empty']() : x != null && x.constructor != null && typeof x.constructor['fantasy-land/empty'] === 'function' ? x.constructor['fantasy-land/empty']() : x != null && typeof x.empty === 'function' ? x.empty() : x != null && x.constructor != null && typeof x.constructor.empty === 'function' ? x.constructor.empty() : _isArray(x) ? [] : _isString(x) ? '' : _isObject(x) ? {} : _isArguments(x) ? function () {
1510
- return arguments;
1511
- }() : _isTypedArray(x) ? x.constructor.from('') : void 0 // else
1512
- ;
1513
- });
1514
-
1515
- function _objectAssign(target) {
1516
- if (target == null) {
1517
- throw new TypeError('Cannot convert undefined or null to object');
1518
- }
1519
-
1520
- var output = Object(target);
1521
- var idx = 1;
1522
- var length = arguments.length;
1523
-
1524
- while (idx < length) {
1525
- var source = arguments[idx];
1526
-
1527
- if (source != null) {
1528
- for (var nextKey in source) {
1529
- if (_has(nextKey, source)) {
1530
- output[nextKey] = source[nextKey];
1531
- }
1532
- }
1533
- }
1534
-
1535
- idx += 1;
1536
- }
1537
-
1538
- return output;
1539
- }
1540
-
1541
- var _objectAssign$1 = typeof Object.assign === 'function' ? Object.assign : _objectAssign;
1542
-
1543
- /**
1544
- * See if an object (i.e. `val`) is an instance of the supplied constructor. This
1545
- * function will check up the inheritance chain, if any.
1546
- * If `val` was created using `Object.create`, `R.is(Object, val) === true`.
1547
- *
1548
- * @func
1549
- * @memberOf R
1550
- * @since v0.3.0
1551
- * @category Type
1552
- * @sig (* -> {*}) -> a -> Boolean
1553
- * @param {Object} ctor A constructor
1554
- * @param {*} val The value to test
1555
- * @return {Boolean}
1556
- * @example
1557
- *
1558
- * R.is(Object, {}); //=> true
1559
- * R.is(Number, 1); //=> true
1560
- * R.is(Object, 1); //=> false
1561
- * R.is(String, 's'); //=> true
1562
- * R.is(String, new String('')); //=> true
1563
- * R.is(Object, new String('')); //=> true
1564
- * R.is(Object, 's'); //=> false
1565
- * R.is(Number, {}); //=> false
1566
- */
1567
-
1568
- var is =
1569
- /*#__PURE__*/
1570
- _curry2(function is(Ctor, val) {
1571
- return val instanceof Ctor || val != null && (val.constructor === Ctor || Ctor.name === 'Object' && typeof val === 'object');
1572
- });
1573
-
1574
- /**
1575
- * Returns `true` if the given value is its type's empty value; `false`
1576
- * otherwise.
1577
- *
1578
- * @func
1579
- * @memberOf R
1580
- * @since v0.1.0
1581
- * @category Logic
1582
- * @sig a -> Boolean
1583
- * @param {*} x
1584
- * @return {Boolean}
1585
- * @see R.empty
1586
- * @example
1587
- *
1588
- * R.isEmpty([1, 2, 3]); //=> false
1589
- * R.isEmpty([]); //=> true
1590
- * R.isEmpty(''); //=> true
1591
- * R.isEmpty(null); //=> false
1592
- * R.isEmpty({}); //=> true
1593
- * R.isEmpty({length: 0}); //=> false
1594
- * R.isEmpty(Uint8Array.from('')); //=> true
1595
- */
1596
-
1597
- var isEmpty =
1598
- /*#__PURE__*/
1599
- _curry1(function isEmpty(x) {
1600
- return x != null && equals(x, empty(x));
1601
- });
1602
-
1603
- /**
1604
- * Create a new object with the own properties of the first object merged with
1605
- * the own properties of the second object. If a key exists in both objects,
1606
- * the value from the first object will be used.
1607
- *
1608
- * @func
1609
- * @memberOf R
1610
- * @since v0.26.0
1611
- * @category Object
1612
- * @sig {k: v} -> {k: v} -> {k: v}
1613
- * @param {Object} l
1614
- * @param {Object} r
1615
- * @return {Object}
1616
- * @see R.mergeRight, R.mergeDeepLeft, R.mergeWith, R.mergeWithKey
1617
- * @example
1618
- *
1619
- * R.mergeLeft({ 'age': 40 }, { 'name': 'fred', 'age': 10 });
1620
- * //=> { 'name': 'fred', 'age': 40 }
1621
- *
1622
- * const resetToDefault = R.mergeLeft({x: 0});
1623
- * resetToDefault({x: 5, y: 2}); //=> {x: 0, y: 2}
1624
- * @symb R.mergeLeft(a, b) = {...b, ...a}
1625
- */
1626
-
1627
- var mergeLeft =
1628
- /*#__PURE__*/
1629
- _curry2(function mergeLeft(l, r) {
1630
- return _objectAssign$1({}, r, l);
1631
- });
1632
-
1633
- /**
1634
- * Replace a substring or regex match in a string with a replacement.
1635
- *
1636
- * The first two parameters correspond to the parameters of the
1637
- * `String.prototype.replace()` function, so the second parameter can also be a
1638
- * function.
1639
- *
1640
- * @func
1641
- * @memberOf R
1642
- * @since v0.7.0
1643
- * @category String
1644
- * @sig RegExp|String -> String -> String -> String
1645
- * @param {RegExp|String} pattern A regular expression or a substring to match.
1646
- * @param {String} replacement The string to replace the matches with.
1647
- * @param {String} str The String to do the search and replacement in.
1648
- * @return {String} The result.
1649
- * @example
1650
- *
1651
- * R.replace('foo', 'bar', 'foo foo foo'); //=> 'bar foo foo'
1652
- * R.replace(/foo/, 'bar', 'foo foo foo'); //=> 'bar foo foo'
1653
- *
1654
- * // Use the "g" (global) flag to replace all occurrences:
1655
- * R.replace(/foo/g, 'bar', 'foo foo foo'); //=> 'bar bar bar'
1656
- */
1657
-
1658
- var replace$1 =
1659
- /*#__PURE__*/
1660
- _curry3(function replace(regex, replacement, str) {
1661
- return str.replace(regex, replacement);
1662
- });
1663
-
1664
114
  function _objectWithoutPropertiesLoose$3(source, excluded) {
1665
115
  if (source == null) return {};
1666
116
  var target = {};
@@ -10865,7 +9315,7 @@ var Portal = function Portal(_ref) {
10865
9315
  container.appendChild(target.current);
10866
9316
  return function () {
10867
9317
  target.current.remove();
10868
- if (isEmpty(container.childNodes)) {
9318
+ if (ramda.isEmpty(container.childNodes)) {
10869
9319
  container.remove();
10870
9320
  }
10871
9321
  };
@@ -15066,7 +13516,7 @@ var FormikButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15066
13516
  values = _useFormikContext.values,
15067
13517
  initialValues = _useFormikContext.initialValues,
15068
13518
  isValid = _useFormikContext.isValid;
15069
- var isDisabled = disabled !== null && disabled !== void 0 ? disabled : isSubmitting || equals(values, initialValues);
13519
+ var isDisabled = disabled !== null && disabled !== void 0 ? disabled : isSubmitting || ramda.equals(values, initialValues);
15070
13520
  return /*#__PURE__*/React__default["default"].createElement(Button, _extends$2({
15071
13521
  disabled: isDisabled,
15072
13522
  loading: isSubmitting && isValid,
@@ -15096,7 +13546,7 @@ var ActionBlock = function ActionBlock(_ref) {
15096
13546
  }, submitButtonProps)), /*#__PURE__*/React__default["default"].createElement(Button, _extends$2({
15097
13547
  "data-cy": "cancel-button",
15098
13548
  "data-test-id": "cancel-button",
15099
- disabled: isSubmitting || equals(values, initialValues),
13549
+ disabled: isSubmitting || ramda.equals(values, initialValues),
15100
13550
  label: "Cancel",
15101
13551
  style: "text",
15102
13552
  onClick: handleReset,
@@ -17537,6 +15987,539 @@ var weekOfYear$1 = {exports: {}};
17537
15987
 
17538
15988
  var weekOfYear = weekOfYear$1.exports;
17539
15989
 
15990
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
15991
+ var shams = function hasSymbols() {
15992
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
15993
+ if (typeof Symbol.iterator === 'symbol') { return true; }
15994
+
15995
+ var obj = {};
15996
+ var sym = Symbol('test');
15997
+ var symObj = Object(sym);
15998
+ if (typeof sym === 'string') { return false; }
15999
+
16000
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
16001
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
16002
+
16003
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
16004
+ // if (sym instanceof Symbol) { return false; }
16005
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
16006
+ // if (!(symObj instanceof Symbol)) { return false; }
16007
+
16008
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
16009
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
16010
+
16011
+ var symVal = 42;
16012
+ obj[sym] = symVal;
16013
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
16014
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
16015
+
16016
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
16017
+
16018
+ var syms = Object.getOwnPropertySymbols(obj);
16019
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
16020
+
16021
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
16022
+
16023
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
16024
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
16025
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
16026
+ }
16027
+
16028
+ return true;
16029
+ };
16030
+
16031
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
16032
+ var hasSymbolSham = shams;
16033
+
16034
+ var hasSymbols$1 = function hasNativeSymbols() {
16035
+ if (typeof origSymbol !== 'function') { return false; }
16036
+ if (typeof Symbol !== 'function') { return false; }
16037
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
16038
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
16039
+
16040
+ return hasSymbolSham();
16041
+ };
16042
+
16043
+ /* eslint no-invalid-this: 1 */
16044
+
16045
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
16046
+ var slice$1 = Array.prototype.slice;
16047
+ var toStr = Object.prototype.toString;
16048
+ var funcType = '[object Function]';
16049
+
16050
+ var implementation$1 = function bind(that) {
16051
+ var target = this;
16052
+ if (typeof target !== 'function' || toStr.call(target) !== funcType) {
16053
+ throw new TypeError(ERROR_MESSAGE + target);
16054
+ }
16055
+ var args = slice$1.call(arguments, 1);
16056
+
16057
+ var bound;
16058
+ var binder = function () {
16059
+ if (this instanceof bound) {
16060
+ var result = target.apply(
16061
+ this,
16062
+ args.concat(slice$1.call(arguments))
16063
+ );
16064
+ if (Object(result) === result) {
16065
+ return result;
16066
+ }
16067
+ return this;
16068
+ } else {
16069
+ return target.apply(
16070
+ that,
16071
+ args.concat(slice$1.call(arguments))
16072
+ );
16073
+ }
16074
+ };
16075
+
16076
+ var boundLength = Math.max(0, target.length - args.length);
16077
+ var boundArgs = [];
16078
+ for (var i = 0; i < boundLength; i++) {
16079
+ boundArgs.push('$' + i);
16080
+ }
16081
+
16082
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
16083
+
16084
+ if (target.prototype) {
16085
+ var Empty = function Empty() {};
16086
+ Empty.prototype = target.prototype;
16087
+ bound.prototype = new Empty();
16088
+ Empty.prototype = null;
16089
+ }
16090
+
16091
+ return bound;
16092
+ };
16093
+
16094
+ var implementation = implementation$1;
16095
+
16096
+ var functionBind = Function.prototype.bind || implementation;
16097
+
16098
+ var bind$1 = functionBind;
16099
+
16100
+ var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
16101
+
16102
+ var undefined$1;
16103
+
16104
+ var $SyntaxError = SyntaxError;
16105
+ var $Function = Function;
16106
+ var $TypeError = TypeError;
16107
+
16108
+ // eslint-disable-next-line consistent-return
16109
+ var getEvalledConstructor = function (expressionSyntax) {
16110
+ try {
16111
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
16112
+ } catch (e) {}
16113
+ };
16114
+
16115
+ var $gOPD = Object.getOwnPropertyDescriptor;
16116
+ if ($gOPD) {
16117
+ try {
16118
+ $gOPD({}, '');
16119
+ } catch (e) {
16120
+ $gOPD = null; // this is IE 8, which has a broken gOPD
16121
+ }
16122
+ }
16123
+
16124
+ var throwTypeError = function () {
16125
+ throw new $TypeError();
16126
+ };
16127
+ var ThrowTypeError = $gOPD
16128
+ ? (function () {
16129
+ try {
16130
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
16131
+ arguments.callee; // IE 8 does not throw here
16132
+ return throwTypeError;
16133
+ } catch (calleeThrows) {
16134
+ try {
16135
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
16136
+ return $gOPD(arguments, 'callee').get;
16137
+ } catch (gOPDthrows) {
16138
+ return throwTypeError;
16139
+ }
16140
+ }
16141
+ }())
16142
+ : throwTypeError;
16143
+
16144
+ var hasSymbols = hasSymbols$1();
16145
+
16146
+ var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
16147
+
16148
+ var needsEval = {};
16149
+
16150
+ var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
16151
+
16152
+ var INTRINSICS = {
16153
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
16154
+ '%Array%': Array,
16155
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
16156
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
16157
+ '%AsyncFromSyncIteratorPrototype%': undefined$1,
16158
+ '%AsyncFunction%': needsEval,
16159
+ '%AsyncGenerator%': needsEval,
16160
+ '%AsyncGeneratorFunction%': needsEval,
16161
+ '%AsyncIteratorPrototype%': needsEval,
16162
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
16163
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
16164
+ '%Boolean%': Boolean,
16165
+ '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
16166
+ '%Date%': Date,
16167
+ '%decodeURI%': decodeURI,
16168
+ '%decodeURIComponent%': decodeURIComponent,
16169
+ '%encodeURI%': encodeURI,
16170
+ '%encodeURIComponent%': encodeURIComponent,
16171
+ '%Error%': Error,
16172
+ '%eval%': eval, // eslint-disable-line no-eval
16173
+ '%EvalError%': EvalError,
16174
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
16175
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
16176
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
16177
+ '%Function%': $Function,
16178
+ '%GeneratorFunction%': needsEval,
16179
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
16180
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
16181
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
16182
+ '%isFinite%': isFinite,
16183
+ '%isNaN%': isNaN,
16184
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
16185
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
16186
+ '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
16187
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
16188
+ '%Math%': Math,
16189
+ '%Number%': Number,
16190
+ '%Object%': Object,
16191
+ '%parseFloat%': parseFloat,
16192
+ '%parseInt%': parseInt,
16193
+ '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
16194
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
16195
+ '%RangeError%': RangeError,
16196
+ '%ReferenceError%': ReferenceError,
16197
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
16198
+ '%RegExp%': RegExp,
16199
+ '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
16200
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
16201
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
16202
+ '%String%': String,
16203
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
16204
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
16205
+ '%SyntaxError%': $SyntaxError,
16206
+ '%ThrowTypeError%': ThrowTypeError,
16207
+ '%TypedArray%': TypedArray,
16208
+ '%TypeError%': $TypeError,
16209
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
16210
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
16211
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
16212
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
16213
+ '%URIError%': URIError,
16214
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
16215
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
16216
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
16217
+ };
16218
+
16219
+ var doEval = function doEval(name) {
16220
+ var value;
16221
+ if (name === '%AsyncFunction%') {
16222
+ value = getEvalledConstructor('async function () {}');
16223
+ } else if (name === '%GeneratorFunction%') {
16224
+ value = getEvalledConstructor('function* () {}');
16225
+ } else if (name === '%AsyncGeneratorFunction%') {
16226
+ value = getEvalledConstructor('async function* () {}');
16227
+ } else if (name === '%AsyncGenerator%') {
16228
+ var fn = doEval('%AsyncGeneratorFunction%');
16229
+ if (fn) {
16230
+ value = fn.prototype;
16231
+ }
16232
+ } else if (name === '%AsyncIteratorPrototype%') {
16233
+ var gen = doEval('%AsyncGenerator%');
16234
+ if (gen) {
16235
+ value = getProto(gen.prototype);
16236
+ }
16237
+ }
16238
+
16239
+ INTRINSICS[name] = value;
16240
+
16241
+ return value;
16242
+ };
16243
+
16244
+ var LEGACY_ALIASES = {
16245
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
16246
+ '%ArrayPrototype%': ['Array', 'prototype'],
16247
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
16248
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
16249
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
16250
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
16251
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
16252
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
16253
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
16254
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
16255
+ '%DataViewPrototype%': ['DataView', 'prototype'],
16256
+ '%DatePrototype%': ['Date', 'prototype'],
16257
+ '%ErrorPrototype%': ['Error', 'prototype'],
16258
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
16259
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
16260
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
16261
+ '%FunctionPrototype%': ['Function', 'prototype'],
16262
+ '%Generator%': ['GeneratorFunction', 'prototype'],
16263
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
16264
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
16265
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
16266
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
16267
+ '%JSONParse%': ['JSON', 'parse'],
16268
+ '%JSONStringify%': ['JSON', 'stringify'],
16269
+ '%MapPrototype%': ['Map', 'prototype'],
16270
+ '%NumberPrototype%': ['Number', 'prototype'],
16271
+ '%ObjectPrototype%': ['Object', 'prototype'],
16272
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
16273
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
16274
+ '%PromisePrototype%': ['Promise', 'prototype'],
16275
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
16276
+ '%Promise_all%': ['Promise', 'all'],
16277
+ '%Promise_reject%': ['Promise', 'reject'],
16278
+ '%Promise_resolve%': ['Promise', 'resolve'],
16279
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
16280
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
16281
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
16282
+ '%SetPrototype%': ['Set', 'prototype'],
16283
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
16284
+ '%StringPrototype%': ['String', 'prototype'],
16285
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
16286
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
16287
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
16288
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
16289
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
16290
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
16291
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
16292
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
16293
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
16294
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
16295
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
16296
+ };
16297
+
16298
+ var bind = functionBind;
16299
+ var hasOwn = src;
16300
+ var $concat = bind.call(Function.call, Array.prototype.concat);
16301
+ var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
16302
+ var $replace = bind.call(Function.call, String.prototype.replace);
16303
+ var $strSlice = bind.call(Function.call, String.prototype.slice);
16304
+ var $exec = bind.call(Function.call, RegExp.prototype.exec);
16305
+
16306
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
16307
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
16308
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
16309
+ var stringToPath = function stringToPath(string) {
16310
+ var first = $strSlice(string, 0, 1);
16311
+ var last = $strSlice(string, -1);
16312
+ if (first === '%' && last !== '%') {
16313
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
16314
+ } else if (last === '%' && first !== '%') {
16315
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
16316
+ }
16317
+ var result = [];
16318
+ $replace(string, rePropName, function (match, number, quote, subString) {
16319
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
16320
+ });
16321
+ return result;
16322
+ };
16323
+ /* end adaptation */
16324
+
16325
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
16326
+ var intrinsicName = name;
16327
+ var alias;
16328
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
16329
+ alias = LEGACY_ALIASES[intrinsicName];
16330
+ intrinsicName = '%' + alias[0] + '%';
16331
+ }
16332
+
16333
+ if (hasOwn(INTRINSICS, intrinsicName)) {
16334
+ var value = INTRINSICS[intrinsicName];
16335
+ if (value === needsEval) {
16336
+ value = doEval(intrinsicName);
16337
+ }
16338
+ if (typeof value === 'undefined' && !allowMissing) {
16339
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
16340
+ }
16341
+
16342
+ return {
16343
+ alias: alias,
16344
+ name: intrinsicName,
16345
+ value: value
16346
+ };
16347
+ }
16348
+
16349
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
16350
+ };
16351
+
16352
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
16353
+ if (typeof name !== 'string' || name.length === 0) {
16354
+ throw new $TypeError('intrinsic name must be a non-empty string');
16355
+ }
16356
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
16357
+ throw new $TypeError('"allowMissing" argument must be a boolean');
16358
+ }
16359
+
16360
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
16361
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
16362
+ }
16363
+ var parts = stringToPath(name);
16364
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
16365
+
16366
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
16367
+ var intrinsicRealName = intrinsic.name;
16368
+ var value = intrinsic.value;
16369
+ var skipFurtherCaching = false;
16370
+
16371
+ var alias = intrinsic.alias;
16372
+ if (alias) {
16373
+ intrinsicBaseName = alias[0];
16374
+ $spliceApply(parts, $concat([0, 1], alias));
16375
+ }
16376
+
16377
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
16378
+ var part = parts[i];
16379
+ var first = $strSlice(part, 0, 1);
16380
+ var last = $strSlice(part, -1);
16381
+ if (
16382
+ (
16383
+ (first === '"' || first === "'" || first === '`')
16384
+ || (last === '"' || last === "'" || last === '`')
16385
+ )
16386
+ && first !== last
16387
+ ) {
16388
+ throw new $SyntaxError('property names with quotes must have matching quotes');
16389
+ }
16390
+ if (part === 'constructor' || !isOwn) {
16391
+ skipFurtherCaching = true;
16392
+ }
16393
+
16394
+ intrinsicBaseName += '.' + part;
16395
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
16396
+
16397
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
16398
+ value = INTRINSICS[intrinsicRealName];
16399
+ } else if (value != null) {
16400
+ if (!(part in value)) {
16401
+ if (!allowMissing) {
16402
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
16403
+ }
16404
+ return void undefined$1;
16405
+ }
16406
+ if ($gOPD && (i + 1) >= parts.length) {
16407
+ var desc = $gOPD(value, part);
16408
+ isOwn = !!desc;
16409
+
16410
+ // By convention, when a data property is converted to an accessor
16411
+ // property to emulate a data property that does not suffer from
16412
+ // the override mistake, that accessor's getter is marked with
16413
+ // an `originalValue` property. Here, when we detect this, we
16414
+ // uphold the illusion by pretending to see that original data
16415
+ // property, i.e., returning the value rather than the getter
16416
+ // itself.
16417
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
16418
+ value = desc.get;
16419
+ } else {
16420
+ value = value[part];
16421
+ }
16422
+ } else {
16423
+ isOwn = hasOwn(value, part);
16424
+ value = value[part];
16425
+ }
16426
+
16427
+ if (isOwn && !skipFurtherCaching) {
16428
+ INTRINSICS[intrinsicRealName] = value;
16429
+ }
16430
+ }
16431
+ }
16432
+ return value;
16433
+ };
16434
+
16435
+ var callBind$1 = {exports: {}};
16436
+
16437
+ (function (module) {
16438
+
16439
+ var bind = functionBind;
16440
+ var GetIntrinsic = getIntrinsic;
16441
+
16442
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
16443
+ var $call = GetIntrinsic('%Function.prototype.call%');
16444
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
16445
+
16446
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
16447
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
16448
+ var $max = GetIntrinsic('%Math.max%');
16449
+
16450
+ if ($defineProperty) {
16451
+ try {
16452
+ $defineProperty({}, 'a', { value: 1 });
16453
+ } catch (e) {
16454
+ // IE 8 has a broken defineProperty
16455
+ $defineProperty = null;
16456
+ }
16457
+ }
16458
+
16459
+ module.exports = function callBind(originalFunction) {
16460
+ var func = $reflectApply(bind, $call, arguments);
16461
+ if ($gOPD && $defineProperty) {
16462
+ var desc = $gOPD(func, 'length');
16463
+ if (desc.configurable) {
16464
+ // original length, plus the receiver, minus any additional arguments (after the receiver)
16465
+ $defineProperty(
16466
+ func,
16467
+ 'length',
16468
+ { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
16469
+ );
16470
+ }
16471
+ }
16472
+ return func;
16473
+ };
16474
+
16475
+ var applyBind = function applyBind() {
16476
+ return $reflectApply(bind, $apply, arguments);
16477
+ };
16478
+
16479
+ if ($defineProperty) {
16480
+ $defineProperty(module.exports, 'apply', { value: applyBind });
16481
+ } else {
16482
+ module.exports.apply = applyBind;
16483
+ }
16484
+ } (callBind$1));
16485
+
16486
+ var GetIntrinsic$1 = getIntrinsic;
16487
+
16488
+ var callBind = callBind$1.exports;
16489
+
16490
+ var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
16491
+
16492
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
16493
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
16494
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
16495
+ return callBind(intrinsic);
16496
+ }
16497
+ return intrinsic;
16498
+ };
16499
+
16500
+ var GetIntrinsic = getIntrinsic;
16501
+ var callBound = callBound$1;
16502
+
16503
+ GetIntrinsic('%TypeError%');
16504
+ GetIntrinsic('%WeakMap%', true);
16505
+ GetIntrinsic('%Map%', true);
16506
+
16507
+ callBound('WeakMap.prototype.get', true);
16508
+ callBound('WeakMap.prototype.set', true);
16509
+ callBound('WeakMap.prototype.has', true);
16510
+ callBound('Map.prototype.get', true);
16511
+ callBound('Map.prototype.set', true);
16512
+ callBound('Map.prototype.has', true);
16513
+
16514
+ ((function () {
16515
+ var array = [];
16516
+ for (var i = 0; i < 256; ++i) {
16517
+ array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
16518
+ }
16519
+
16520
+ return array;
16521
+ })());
16522
+
17540
16523
  dayjs.extend(weekOfYear);
17541
16524
  dayjs.extend(weekday);
17542
16525
  dayjs.extend(localeData);
@@ -18603,7 +17586,7 @@ var transformObjectToDotNotation = function transformObjectToDotNotation(object)
18603
17586
  value = _ref2[1];
18604
17587
  if (value) {
18605
17588
  var nextKey = prefix ? "".concat(prefix, ".").concat(key) : key;
18606
- if (is(Object, value)) {
17589
+ if (ramda.is(Object, value)) {
18607
17590
  result.push.apply(result, _toConsumableArray$1(transformObjectToDotNotation(value, nextKey)));
18608
17591
  } else {
18609
17592
  result.push(nextKey);
@@ -18838,7 +17821,7 @@ var Input$2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
18838
17821
  var isMaxLengthPresent = !!maxLength || maxLength === 0;
18839
17822
  var handleRegexChange = function handleRegexChange(e) {
18840
17823
  var globalRegex = new RegExp(rejectCharsRegex, "g");
18841
- e.target.value = replace$1(globalRegex, "", e.target.value);
17824
+ e.target.value = ramda.replace(globalRegex, "", e.target.value);
18842
17825
  onChange(e);
18843
17826
  };
18844
17827
  var handleChange = rejectCharsRegex ? handleRegexChange : onChange;
@@ -25736,7 +24719,7 @@ var EMAIL_REGEX = new RegExp("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$", "i");
25736
24719
  var UNSTRICT_EMAIL_REGEX = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/g;
25737
24720
  var EMAIL_SEPARATION_REGEX = /[^\s,]+/g;
25738
24721
  var CUSTOM_STYLES = {
25739
- input: assoc("overflow", "hidden"),
24722
+ input: ramda.assoc("overflow", "hidden"),
25740
24723
  multiValue: function multiValue(styles, _ref3) {
25741
24724
  var valid = _ref3.data.valid;
25742
24725
  return _objectSpread$5(_objectSpread$5({}, styles), {}, {
@@ -25763,7 +24746,7 @@ var formatEmailInputOptions = function formatEmailInputOptions(label) {
25763
24746
  };
25764
24747
  };
25765
24748
  var pruneDuplicates = function pruneDuplicates(inputValues) {
25766
- var values = pluck("value", inputValues);
24749
+ var values = ramda.pluck("value", inputValues);
25767
24750
  var uniqueValues = _toConsumableArray$1(new Set(values));
25768
24751
  return uniqueValues.map(function (email) {
25769
24752
  return formatEmailInputOptions(email);
@@ -25866,7 +24849,7 @@ var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
25866
24849
  var overrideProps = {};
25867
24850
  if (isOptionsPresent) {
25868
24851
  var isValidNewOption = function isValidNewOption(inputValue, _, selectOptions) {
25869
- var isInputEmpty = isEmpty(inputValue.trim());
24852
+ var isInputEmpty = ramda.isEmpty(inputValue.trim());
25870
24853
  var doesInputContainSeparator = inputValue.includes(",") || inputValue.includes(" ");
25871
24854
  var isInputPresentInOptions = selectOptions.find(function (option) {
25872
24855
  return option.value === inputValue.toLowerCase();
@@ -25907,7 +24890,7 @@ var MultiEmailInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
25907
24890
  "neeto-ui-react-select__container--error": !!error
25908
24891
  }),
25909
24892
  styles: _objectSpread$4(_objectSpread$4({}, CUSTOM_STYLES), {}, {
25910
- control: mergeLeft({
24893
+ control: ramda.mergeLeft({
25911
24894
  maxHeight: "".concat(maxHeight, "px"),
25912
24895
  overflowY: "auto"
25913
24896
  })
@@ -26395,15 +25378,15 @@ var Select = function Select(_ref2) {
26395
25378
  Parent = isCreateable ? AsyncCreatableSelect : AsyncSelect;
26396
25379
  }
26397
25380
  if (optionRemapping.value) {
26398
- otherProps.getOptionValue = prop(optionRemapping.value);
25381
+ otherProps.getOptionValue = ramda.prop(optionRemapping.value);
26399
25382
  }
26400
25383
  if (optionRemapping.label) {
26401
- otherProps.getOptionLabel = prop(optionRemapping.label);
25384
+ otherProps.getOptionLabel = ramda.prop(optionRemapping.label);
26402
25385
  }
26403
25386
  var portalProps = strategy === STRATEGIES.fixed && {
26404
25387
  menuPortalTarget: document.body,
26405
25388
  styles: {
26406
- menuPortal: assoc("zIndex", 999999)
25389
+ menuPortal: ramda.assoc("zIndex", 999999)
26407
25390
  },
26408
25391
  menuPosition: "fixed"
26409
25392
  };
@@ -26508,12 +25491,12 @@ var SelectField = /*#__PURE__*/React.forwardRef(function (props, ref) {
26508
25491
  };
26509
25492
  return /*#__PURE__*/React__default["default"].createElement(Select, _extends$2({
26510
25493
  error: meta.touched ? meta.error : "",
26511
- getOptionValue: getOptionValue || prop("value"),
25494
+ getOptionValue: getOptionValue || ramda.prop("value"),
26512
25495
  innerRef: ref,
26513
25496
  isMulti: !!isMulti,
26514
25497
  name: field.name,
26515
25498
  options: options,
26516
- value: either(isNil, isEmpty)(field.value) ? null : buildValueObj(field.value, options),
25499
+ value: ramda.either(ramda.isNil, ramda.isEmpty)(field.value) ? null : buildValueObj(field.value, options),
26517
25500
  onChange: function onChange(value) {
26518
25501
  return setValue(value);
26519
25502
  },