@bigbinary/neeto-fields-frontend 1.3.23 → 1.3.24

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/dist/index.cjs.js CHANGED
@@ -11,7 +11,7 @@ var formik = require('formik');
11
11
  var i18next = require('i18next');
12
12
  var yup = require('yup');
13
13
  var formik$1 = require('@bigbinary/neetoui/formik');
14
- var utils$3 = require('@bigbinary/neeto-commons-frontend/utils');
14
+ var utils = require('@bigbinary/neeto-commons-frontend/utils');
15
15
  var neetoIcons = require('@bigbinary/neeto-icons');
16
16
  var reactI18next = require('react-i18next');
17
17
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
@@ -19,7 +19,6 @@ var Container = require('@bigbinary/neeto-molecules/Container');
19
19
  var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
20
20
  var reactQuery = require('react-query');
21
21
  var axios = require('axios');
22
- var require$$0 = require('util');
23
22
  var uuid = require('uuid');
24
23
  var neetoFiltersFrontend = require('@bigbinary/neeto-filters-frontend');
25
24
  var reactRouterDom = require('react-router-dom');
@@ -56,7 +55,6 @@ var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
56
55
  var Container__default = /*#__PURE__*/_interopDefaultLegacy(Container);
57
56
  var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
58
57
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
59
- var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
60
58
  var MenuBar__default = /*#__PURE__*/_interopDefaultLegacy(MenuBar);
61
59
  var MoreDropdown__default = /*#__PURE__*/_interopDefaultLegacy(MoreDropdown);
62
60
  var TableWrapper__default = /*#__PURE__*/_interopDefaultLegacy(TableWrapper);
@@ -1018,7 +1016,7 @@ var Number$1 = function Number(props) {
1018
1016
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({}, fieldProps, {
1019
1017
  type: "number",
1020
1018
  suffix: showSubmitButton && /*#__PURE__*/React__default["default"].createElement(formik$1.Button, {
1021
- "data-cy": utils$3.joinHyphenCase(fieldProps.label, "check-button"),
1019
+ "data-cy": utils.joinHyphenCase(fieldProps.label, "check-button"),
1022
1020
  icon: neetoIcons.Check,
1023
1021
  style: "text",
1024
1022
  onClick: function onClick() {
@@ -1104,7 +1102,7 @@ var Text = function Text(props) {
1104
1102
  var showSubmitButton = !isInline && individualSubmit && dirty;
1105
1103
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({}, fieldProps, {
1106
1104
  suffix: showSubmitButton && /*#__PURE__*/React__default["default"].createElement(formik$1.Button, {
1107
- "data-cy": utils$3.joinHyphenCase(fieldProps.label, "check-button"),
1105
+ "data-cy": utils.joinHyphenCase(fieldProps.label, "check-button"),
1108
1106
  icon: neetoIcons.Check,
1109
1107
  style: "text",
1110
1108
  onClick: function onClick() {
@@ -1280,2054 +1278,6 @@ var FieldInputs = reactUtils.withT(function (_ref) {
1280
1278
  });
1281
1279
  });
1282
1280
 
1283
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
1284
- var shams = function hasSymbols() {
1285
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
1286
- if (typeof Symbol.iterator === 'symbol') { return true; }
1287
-
1288
- var obj = {};
1289
- var sym = Symbol('test');
1290
- var symObj = Object(sym);
1291
- if (typeof sym === 'string') { return false; }
1292
-
1293
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
1294
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
1295
-
1296
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
1297
- // if (sym instanceof Symbol) { return false; }
1298
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
1299
- // if (!(symObj instanceof Symbol)) { return false; }
1300
-
1301
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
1302
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
1303
-
1304
- var symVal = 42;
1305
- obj[sym] = symVal;
1306
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
1307
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1308
-
1309
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
1310
-
1311
- var syms = Object.getOwnPropertySymbols(obj);
1312
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
1313
-
1314
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
1315
-
1316
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
1317
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
1318
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
1319
- }
1320
-
1321
- return true;
1322
- };
1323
-
1324
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
1325
- var hasSymbolSham = shams;
1326
-
1327
- var hasSymbols$1 = function hasNativeSymbols() {
1328
- if (typeof origSymbol !== 'function') { return false; }
1329
- if (typeof Symbol !== 'function') { return false; }
1330
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
1331
- if (typeof Symbol('bar') !== 'symbol') { return false; }
1332
-
1333
- return hasSymbolSham();
1334
- };
1335
-
1336
- var test = {
1337
- foo: {}
1338
- };
1339
-
1340
- var $Object = Object;
1341
-
1342
- var hasProto$1 = function hasProto() {
1343
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
1344
- };
1345
-
1346
- /* eslint no-invalid-this: 1 */
1347
-
1348
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1349
- var slice = Array.prototype.slice;
1350
- var toStr$1 = Object.prototype.toString;
1351
- var funcType = '[object Function]';
1352
-
1353
- var implementation$1 = function bind(that) {
1354
- var target = this;
1355
- if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
1356
- throw new TypeError(ERROR_MESSAGE + target);
1357
- }
1358
- var args = slice.call(arguments, 1);
1359
-
1360
- var bound;
1361
- var binder = function () {
1362
- if (this instanceof bound) {
1363
- var result = target.apply(
1364
- this,
1365
- args.concat(slice.call(arguments))
1366
- );
1367
- if (Object(result) === result) {
1368
- return result;
1369
- }
1370
- return this;
1371
- } else {
1372
- return target.apply(
1373
- that,
1374
- args.concat(slice.call(arguments))
1375
- );
1376
- }
1377
- };
1378
-
1379
- var boundLength = Math.max(0, target.length - args.length);
1380
- var boundArgs = [];
1381
- for (var i = 0; i < boundLength; i++) {
1382
- boundArgs.push('$' + i);
1383
- }
1384
-
1385
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1386
-
1387
- if (target.prototype) {
1388
- var Empty = function Empty() {};
1389
- Empty.prototype = target.prototype;
1390
- bound.prototype = new Empty();
1391
- Empty.prototype = null;
1392
- }
1393
-
1394
- return bound;
1395
- };
1396
-
1397
- var implementation = implementation$1;
1398
-
1399
- var functionBind = Function.prototype.bind || implementation;
1400
-
1401
- var bind$1 = functionBind;
1402
-
1403
- var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
1404
-
1405
- var undefined$1;
1406
-
1407
- var $SyntaxError = SyntaxError;
1408
- var $Function = Function;
1409
- var $TypeError$1 = TypeError;
1410
-
1411
- // eslint-disable-next-line consistent-return
1412
- var getEvalledConstructor = function (expressionSyntax) {
1413
- try {
1414
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1415
- } catch (e) {}
1416
- };
1417
-
1418
- var $gOPD = Object.getOwnPropertyDescriptor;
1419
- if ($gOPD) {
1420
- try {
1421
- $gOPD({}, '');
1422
- } catch (e) {
1423
- $gOPD = null; // this is IE 8, which has a broken gOPD
1424
- }
1425
- }
1426
-
1427
- var throwTypeError = function () {
1428
- throw new $TypeError$1();
1429
- };
1430
- var ThrowTypeError = $gOPD
1431
- ? (function () {
1432
- try {
1433
- // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
1434
- arguments.callee; // IE 8 does not throw here
1435
- return throwTypeError;
1436
- } catch (calleeThrows) {
1437
- try {
1438
- // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1439
- return $gOPD(arguments, 'callee').get;
1440
- } catch (gOPDthrows) {
1441
- return throwTypeError;
1442
- }
1443
- }
1444
- }())
1445
- : throwTypeError;
1446
-
1447
- var hasSymbols = hasSymbols$1();
1448
- var hasProto = hasProto$1();
1449
-
1450
- var getProto = Object.getPrototypeOf || (
1451
- hasProto
1452
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
1453
- : null
1454
- );
1455
-
1456
- var needsEval = {};
1457
-
1458
- var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
1459
-
1460
- var INTRINSICS = {
1461
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1462
- '%Array%': Array,
1463
- '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
1464
- '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
1465
- '%AsyncFromSyncIteratorPrototype%': undefined$1,
1466
- '%AsyncFunction%': needsEval,
1467
- '%AsyncGenerator%': needsEval,
1468
- '%AsyncGeneratorFunction%': needsEval,
1469
- '%AsyncIteratorPrototype%': needsEval,
1470
- '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1471
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1472
- '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
1473
- '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
1474
- '%Boolean%': Boolean,
1475
- '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
1476
- '%Date%': Date,
1477
- '%decodeURI%': decodeURI,
1478
- '%decodeURIComponent%': decodeURIComponent,
1479
- '%encodeURI%': encodeURI,
1480
- '%encodeURIComponent%': encodeURIComponent,
1481
- '%Error%': Error,
1482
- '%eval%': eval, // eslint-disable-line no-eval
1483
- '%EvalError%': EvalError,
1484
- '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
1485
- '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1486
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1487
- '%Function%': $Function,
1488
- '%GeneratorFunction%': needsEval,
1489
- '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
1490
- '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
1491
- '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
1492
- '%isFinite%': isFinite,
1493
- '%isNaN%': isNaN,
1494
- '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1495
- '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
1496
- '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1497
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
1498
- '%Math%': Math,
1499
- '%Number%': Number,
1500
- '%Object%': Object,
1501
- '%parseFloat%': parseFloat,
1502
- '%parseInt%': parseInt,
1503
- '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
1504
- '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1505
- '%RangeError%': RangeError,
1506
- '%ReferenceError%': ReferenceError,
1507
- '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1508
- '%RegExp%': RegExp,
1509
- '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1510
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
1511
- '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
1512
- '%String%': String,
1513
- '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
1514
- '%Symbol%': hasSymbols ? Symbol : undefined$1,
1515
- '%SyntaxError%': $SyntaxError,
1516
- '%ThrowTypeError%': ThrowTypeError,
1517
- '%TypedArray%': TypedArray,
1518
- '%TypeError%': $TypeError$1,
1519
- '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
1520
- '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
1521
- '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
1522
- '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
1523
- '%URIError%': URIError,
1524
- '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1525
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1526
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1527
- };
1528
-
1529
- if (getProto) {
1530
- try {
1531
- null.error; // eslint-disable-line no-unused-expressions
1532
- } catch (e) {
1533
- // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
1534
- var errorProto = getProto(getProto(e));
1535
- INTRINSICS['%Error.prototype%'] = errorProto;
1536
- }
1537
- }
1538
-
1539
- var doEval = function doEval(name) {
1540
- var value;
1541
- if (name === '%AsyncFunction%') {
1542
- value = getEvalledConstructor('async function () {}');
1543
- } else if (name === '%GeneratorFunction%') {
1544
- value = getEvalledConstructor('function* () {}');
1545
- } else if (name === '%AsyncGeneratorFunction%') {
1546
- value = getEvalledConstructor('async function* () {}');
1547
- } else if (name === '%AsyncGenerator%') {
1548
- var fn = doEval('%AsyncGeneratorFunction%');
1549
- if (fn) {
1550
- value = fn.prototype;
1551
- }
1552
- } else if (name === '%AsyncIteratorPrototype%') {
1553
- var gen = doEval('%AsyncGenerator%');
1554
- if (gen && getProto) {
1555
- value = getProto(gen.prototype);
1556
- }
1557
- }
1558
-
1559
- INTRINSICS[name] = value;
1560
-
1561
- return value;
1562
- };
1563
-
1564
- var LEGACY_ALIASES = {
1565
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1566
- '%ArrayPrototype%': ['Array', 'prototype'],
1567
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1568
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1569
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1570
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1571
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1572
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1573
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1574
- '%BooleanPrototype%': ['Boolean', 'prototype'],
1575
- '%DataViewPrototype%': ['DataView', 'prototype'],
1576
- '%DatePrototype%': ['Date', 'prototype'],
1577
- '%ErrorPrototype%': ['Error', 'prototype'],
1578
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1579
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1580
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1581
- '%FunctionPrototype%': ['Function', 'prototype'],
1582
- '%Generator%': ['GeneratorFunction', 'prototype'],
1583
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1584
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1585
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1586
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1587
- '%JSONParse%': ['JSON', 'parse'],
1588
- '%JSONStringify%': ['JSON', 'stringify'],
1589
- '%MapPrototype%': ['Map', 'prototype'],
1590
- '%NumberPrototype%': ['Number', 'prototype'],
1591
- '%ObjectPrototype%': ['Object', 'prototype'],
1592
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1593
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1594
- '%PromisePrototype%': ['Promise', 'prototype'],
1595
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1596
- '%Promise_all%': ['Promise', 'all'],
1597
- '%Promise_reject%': ['Promise', 'reject'],
1598
- '%Promise_resolve%': ['Promise', 'resolve'],
1599
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1600
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1601
- '%RegExpPrototype%': ['RegExp', 'prototype'],
1602
- '%SetPrototype%': ['Set', 'prototype'],
1603
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1604
- '%StringPrototype%': ['String', 'prototype'],
1605
- '%SymbolPrototype%': ['Symbol', 'prototype'],
1606
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1607
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1608
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1609
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1610
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1611
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1612
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1613
- '%URIErrorPrototype%': ['URIError', 'prototype'],
1614
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1615
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
1616
- };
1617
-
1618
- var bind = functionBind;
1619
- var hasOwn$1 = src;
1620
- var $concat$1 = bind.call(Function.call, Array.prototype.concat);
1621
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
1622
- var $replace$1 = bind.call(Function.call, String.prototype.replace);
1623
- var $strSlice = bind.call(Function.call, String.prototype.slice);
1624
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
1625
-
1626
- /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1627
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1628
- var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1629
- var stringToPath = function stringToPath(string) {
1630
- var first = $strSlice(string, 0, 1);
1631
- var last = $strSlice(string, -1);
1632
- if (first === '%' && last !== '%') {
1633
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
1634
- } else if (last === '%' && first !== '%') {
1635
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
1636
- }
1637
- var result = [];
1638
- $replace$1(string, rePropName, function (match, number, quote, subString) {
1639
- result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
1640
- });
1641
- return result;
1642
- };
1643
- /* end adaptation */
1644
-
1645
- var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1646
- var intrinsicName = name;
1647
- var alias;
1648
- if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
1649
- alias = LEGACY_ALIASES[intrinsicName];
1650
- intrinsicName = '%' + alias[0] + '%';
1651
- }
1652
-
1653
- if (hasOwn$1(INTRINSICS, intrinsicName)) {
1654
- var value = INTRINSICS[intrinsicName];
1655
- if (value === needsEval) {
1656
- value = doEval(intrinsicName);
1657
- }
1658
- if (typeof value === 'undefined' && !allowMissing) {
1659
- throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1660
- }
1661
-
1662
- return {
1663
- alias: alias,
1664
- name: intrinsicName,
1665
- value: value
1666
- };
1667
- }
1668
-
1669
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
1670
- };
1671
-
1672
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1673
- if (typeof name !== 'string' || name.length === 0) {
1674
- throw new $TypeError$1('intrinsic name must be a non-empty string');
1675
- }
1676
- if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1677
- throw new $TypeError$1('"allowMissing" argument must be a boolean');
1678
- }
1679
-
1680
- if ($exec(/^%?[^%]*%?$/, name) === null) {
1681
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
1682
- }
1683
- var parts = stringToPath(name);
1684
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1685
-
1686
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1687
- var intrinsicRealName = intrinsic.name;
1688
- var value = intrinsic.value;
1689
- var skipFurtherCaching = false;
1690
-
1691
- var alias = intrinsic.alias;
1692
- if (alias) {
1693
- intrinsicBaseName = alias[0];
1694
- $spliceApply(parts, $concat$1([0, 1], alias));
1695
- }
1696
-
1697
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1698
- var part = parts[i];
1699
- var first = $strSlice(part, 0, 1);
1700
- var last = $strSlice(part, -1);
1701
- if (
1702
- (
1703
- (first === '"' || first === "'" || first === '`')
1704
- || (last === '"' || last === "'" || last === '`')
1705
- )
1706
- && first !== last
1707
- ) {
1708
- throw new $SyntaxError('property names with quotes must have matching quotes');
1709
- }
1710
- if (part === 'constructor' || !isOwn) {
1711
- skipFurtherCaching = true;
1712
- }
1713
-
1714
- intrinsicBaseName += '.' + part;
1715
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1716
-
1717
- if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
1718
- value = INTRINSICS[intrinsicRealName];
1719
- } else if (value != null) {
1720
- if (!(part in value)) {
1721
- if (!allowMissing) {
1722
- throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
1723
- }
1724
- return void undefined$1;
1725
- }
1726
- if ($gOPD && (i + 1) >= parts.length) {
1727
- var desc = $gOPD(value, part);
1728
- isOwn = !!desc;
1729
-
1730
- // By convention, when a data property is converted to an accessor
1731
- // property to emulate a data property that does not suffer from
1732
- // the override mistake, that accessor's getter is marked with
1733
- // an `originalValue` property. Here, when we detect this, we
1734
- // uphold the illusion by pretending to see that original data
1735
- // property, i.e., returning the value rather than the getter
1736
- // itself.
1737
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1738
- value = desc.get;
1739
- } else {
1740
- value = value[part];
1741
- }
1742
- } else {
1743
- isOwn = hasOwn$1(value, part);
1744
- value = value[part];
1745
- }
1746
-
1747
- if (isOwn && !skipFurtherCaching) {
1748
- INTRINSICS[intrinsicRealName] = value;
1749
- }
1750
- }
1751
- }
1752
- return value;
1753
- };
1754
-
1755
- var callBind$1 = {exports: {}};
1756
-
1757
- callBind$1.exports;
1758
-
1759
- (function (module) {
1760
-
1761
- var bind = functionBind;
1762
- var GetIntrinsic = getIntrinsic;
1763
-
1764
- var $apply = GetIntrinsic('%Function.prototype.apply%');
1765
- var $call = GetIntrinsic('%Function.prototype.call%');
1766
- var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
1767
-
1768
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1769
- var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
1770
- var $max = GetIntrinsic('%Math.max%');
1771
-
1772
- if ($defineProperty) {
1773
- try {
1774
- $defineProperty({}, 'a', { value: 1 });
1775
- } catch (e) {
1776
- // IE 8 has a broken defineProperty
1777
- $defineProperty = null;
1778
- }
1779
- }
1780
-
1781
- module.exports = function callBind(originalFunction) {
1782
- var func = $reflectApply(bind, $call, arguments);
1783
- if ($gOPD && $defineProperty) {
1784
- var desc = $gOPD(func, 'length');
1785
- if (desc.configurable) {
1786
- // original length, plus the receiver, minus any additional arguments (after the receiver)
1787
- $defineProperty(
1788
- func,
1789
- 'length',
1790
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
1791
- );
1792
- }
1793
- }
1794
- return func;
1795
- };
1796
-
1797
- var applyBind = function applyBind() {
1798
- return $reflectApply(bind, $apply, arguments);
1799
- };
1800
-
1801
- if ($defineProperty) {
1802
- $defineProperty(module.exports, 'apply', { value: applyBind });
1803
- } else {
1804
- module.exports.apply = applyBind;
1805
- }
1806
- } (callBind$1));
1807
-
1808
- var callBindExports = callBind$1.exports;
1809
-
1810
- var GetIntrinsic$1 = getIntrinsic;
1811
-
1812
- var callBind = callBindExports;
1813
-
1814
- var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
1815
-
1816
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
1817
- var intrinsic = GetIntrinsic$1(name, !!allowMissing);
1818
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
1819
- return callBind(intrinsic);
1820
- }
1821
- return intrinsic;
1822
- };
1823
-
1824
- var util_inspect = require$$0__default["default"].inspect;
1825
-
1826
- var hasMap = typeof Map === 'function' && Map.prototype;
1827
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
1828
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
1829
- var mapForEach = hasMap && Map.prototype.forEach;
1830
- var hasSet = typeof Set === 'function' && Set.prototype;
1831
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
1832
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
1833
- var setForEach = hasSet && Set.prototype.forEach;
1834
- var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
1835
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1836
- var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
1837
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1838
- var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
1839
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1840
- var booleanValueOf = Boolean.prototype.valueOf;
1841
- var objectToString = Object.prototype.toString;
1842
- var functionToString = Function.prototype.toString;
1843
- var $match = String.prototype.match;
1844
- var $slice = String.prototype.slice;
1845
- var $replace = String.prototype.replace;
1846
- var $toUpperCase = String.prototype.toUpperCase;
1847
- var $toLowerCase = String.prototype.toLowerCase;
1848
- var $test = RegExp.prototype.test;
1849
- var $concat = Array.prototype.concat;
1850
- var $join = Array.prototype.join;
1851
- var $arrSlice = Array.prototype.slice;
1852
- var $floor = Math.floor;
1853
- var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
1854
- var gOPS = Object.getOwnPropertySymbols;
1855
- var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
1856
- var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
1857
- // ie, `has-tostringtag/shams
1858
- var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
1859
- ? Symbol.toStringTag
1860
- : null;
1861
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1862
-
1863
- var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
1864
- [].__proto__ === Array.prototype // eslint-disable-line no-proto
1865
- ? function (O) {
1866
- return O.__proto__; // eslint-disable-line no-proto
1867
- }
1868
- : null
1869
- );
1870
-
1871
- function addNumericSeparator(num, str) {
1872
- if (
1873
- num === Infinity
1874
- || num === -Infinity
1875
- || num !== num
1876
- || (num && num > -1000 && num < 1000)
1877
- || $test.call(/e/, str)
1878
- ) {
1879
- return str;
1880
- }
1881
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1882
- if (typeof num === 'number') {
1883
- var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
1884
- if (int !== num) {
1885
- var intStr = String(int);
1886
- var dec = $slice.call(str, intStr.length + 1);
1887
- return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1888
- }
1889
- }
1890
- return $replace.call(str, sepRegex, '$&_');
1891
- }
1892
-
1893
- var utilInspect = util_inspect;
1894
- var inspectCustom = utilInspect.custom;
1895
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1896
-
1897
- var objectInspect = function inspect_(obj, options, depth, seen) {
1898
- var opts = options || {};
1899
-
1900
- if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
1901
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1902
- }
1903
- if (
1904
- has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
1905
- ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
1906
- : opts.maxStringLength !== null
1907
- )
1908
- ) {
1909
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1910
- }
1911
- var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
1912
- if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
1913
- throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
1914
- }
1915
-
1916
- if (
1917
- has$3(opts, 'indent')
1918
- && opts.indent !== null
1919
- && opts.indent !== '\t'
1920
- && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
1921
- ) {
1922
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1923
- }
1924
- if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1925
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1926
- }
1927
- var numericSeparator = opts.numericSeparator;
1928
-
1929
- if (typeof obj === 'undefined') {
1930
- return 'undefined';
1931
- }
1932
- if (obj === null) {
1933
- return 'null';
1934
- }
1935
- if (typeof obj === 'boolean') {
1936
- return obj ? 'true' : 'false';
1937
- }
1938
-
1939
- if (typeof obj === 'string') {
1940
- return inspectString(obj, opts);
1941
- }
1942
- if (typeof obj === 'number') {
1943
- if (obj === 0) {
1944
- return Infinity / obj > 0 ? '0' : '-0';
1945
- }
1946
- var str = String(obj);
1947
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1948
- }
1949
- if (typeof obj === 'bigint') {
1950
- var bigIntStr = String(obj) + 'n';
1951
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1952
- }
1953
-
1954
- var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
1955
- if (typeof depth === 'undefined') { depth = 0; }
1956
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
1957
- return isArray$3(obj) ? '[Array]' : '[Object]';
1958
- }
1959
-
1960
- var indent = getIndent(opts, depth);
1961
-
1962
- if (typeof seen === 'undefined') {
1963
- seen = [];
1964
- } else if (indexOf(seen, obj) >= 0) {
1965
- return '[Circular]';
1966
- }
1967
-
1968
- function inspect(value, from, noIndent) {
1969
- if (from) {
1970
- seen = $arrSlice.call(seen);
1971
- seen.push(from);
1972
- }
1973
- if (noIndent) {
1974
- var newOpts = {
1975
- depth: opts.depth
1976
- };
1977
- if (has$3(opts, 'quoteStyle')) {
1978
- newOpts.quoteStyle = opts.quoteStyle;
1979
- }
1980
- return inspect_(value, newOpts, depth + 1, seen);
1981
- }
1982
- return inspect_(value, opts, depth + 1, seen);
1983
- }
1984
-
1985
- if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
1986
- var name = nameOf(obj);
1987
- var keys = arrObjKeys(obj, inspect);
1988
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
1989
- }
1990
- if (isSymbol(obj)) {
1991
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1992
- return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
1993
- }
1994
- if (isElement(obj)) {
1995
- var s = '<' + $toLowerCase.call(String(obj.nodeName));
1996
- var attrs = obj.attributes || [];
1997
- for (var i = 0; i < attrs.length; i++) {
1998
- s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
1999
- }
2000
- s += '>';
2001
- if (obj.childNodes && obj.childNodes.length) { s += '...'; }
2002
- s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
2003
- return s;
2004
- }
2005
- if (isArray$3(obj)) {
2006
- if (obj.length === 0) { return '[]'; }
2007
- var xs = arrObjKeys(obj, inspect);
2008
- if (indent && !singleLineValues(xs)) {
2009
- return '[' + indentedJoin(xs, indent) + ']';
2010
- }
2011
- return '[ ' + $join.call(xs, ', ') + ' ]';
2012
- }
2013
- if (isError(obj)) {
2014
- var parts = arrObjKeys(obj, inspect);
2015
- if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
2016
- return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
2017
- }
2018
- if (parts.length === 0) { return '[' + String(obj) + ']'; }
2019
- return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
2020
- }
2021
- if (typeof obj === 'object' && customInspect) {
2022
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
2023
- return utilInspect(obj, { depth: maxDepth - depth });
2024
- } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
2025
- return obj.inspect();
2026
- }
2027
- }
2028
- if (isMap(obj)) {
2029
- var mapParts = [];
2030
- if (mapForEach) {
2031
- mapForEach.call(obj, function (value, key) {
2032
- mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
2033
- });
2034
- }
2035
- return collectionOf('Map', mapSize.call(obj), mapParts, indent);
2036
- }
2037
- if (isSet(obj)) {
2038
- var setParts = [];
2039
- if (setForEach) {
2040
- setForEach.call(obj, function (value) {
2041
- setParts.push(inspect(value, obj));
2042
- });
2043
- }
2044
- return collectionOf('Set', setSize.call(obj), setParts, indent);
2045
- }
2046
- if (isWeakMap(obj)) {
2047
- return weakCollectionOf('WeakMap');
2048
- }
2049
- if (isWeakSet(obj)) {
2050
- return weakCollectionOf('WeakSet');
2051
- }
2052
- if (isWeakRef(obj)) {
2053
- return weakCollectionOf('WeakRef');
2054
- }
2055
- if (isNumber(obj)) {
2056
- return markBoxed(inspect(Number(obj)));
2057
- }
2058
- if (isBigInt(obj)) {
2059
- return markBoxed(inspect(bigIntValueOf.call(obj)));
2060
- }
2061
- if (isBoolean(obj)) {
2062
- return markBoxed(booleanValueOf.call(obj));
2063
- }
2064
- if (isString(obj)) {
2065
- return markBoxed(inspect(String(obj)));
2066
- }
2067
- if (!isDate(obj) && !isRegExp$1(obj)) {
2068
- var ys = arrObjKeys(obj, inspect);
2069
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
2070
- var protoTag = obj instanceof Object ? '' : 'null prototype';
2071
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
2072
- var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
2073
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
2074
- if (ys.length === 0) { return tag + '{}'; }
2075
- if (indent) {
2076
- return tag + '{' + indentedJoin(ys, indent) + '}';
2077
- }
2078
- return tag + '{ ' + $join.call(ys, ', ') + ' }';
2079
- }
2080
- return String(obj);
2081
- };
2082
-
2083
- function wrapQuotes(s, defaultStyle, opts) {
2084
- var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
2085
- return quoteChar + s + quoteChar;
2086
- }
2087
-
2088
- function quote(s) {
2089
- return $replace.call(String(s), /"/g, '&quot;');
2090
- }
2091
-
2092
- function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2093
- function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2094
- function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2095
- function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2096
- function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2097
- function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2098
- function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
2099
-
2100
- // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
2101
- function isSymbol(obj) {
2102
- if (hasShammedSymbols) {
2103
- return obj && typeof obj === 'object' && obj instanceof Symbol;
2104
- }
2105
- if (typeof obj === 'symbol') {
2106
- return true;
2107
- }
2108
- if (!obj || typeof obj !== 'object' || !symToString) {
2109
- return false;
2110
- }
2111
- try {
2112
- symToString.call(obj);
2113
- return true;
2114
- } catch (e) {}
2115
- return false;
2116
- }
2117
-
2118
- function isBigInt(obj) {
2119
- if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
2120
- return false;
2121
- }
2122
- try {
2123
- bigIntValueOf.call(obj);
2124
- return true;
2125
- } catch (e) {}
2126
- return false;
2127
- }
2128
-
2129
- var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
2130
- function has$3(obj, key) {
2131
- return hasOwn.call(obj, key);
2132
- }
2133
-
2134
- function toStr(obj) {
2135
- return objectToString.call(obj);
2136
- }
2137
-
2138
- function nameOf(f) {
2139
- if (f.name) { return f.name; }
2140
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
2141
- if (m) { return m[1]; }
2142
- return null;
2143
- }
2144
-
2145
- function indexOf(xs, x) {
2146
- if (xs.indexOf) { return xs.indexOf(x); }
2147
- for (var i = 0, l = xs.length; i < l; i++) {
2148
- if (xs[i] === x) { return i; }
2149
- }
2150
- return -1;
2151
- }
2152
-
2153
- function isMap(x) {
2154
- if (!mapSize || !x || typeof x !== 'object') {
2155
- return false;
2156
- }
2157
- try {
2158
- mapSize.call(x);
2159
- try {
2160
- setSize.call(x);
2161
- } catch (s) {
2162
- return true;
2163
- }
2164
- return x instanceof Map; // core-js workaround, pre-v2.5.0
2165
- } catch (e) {}
2166
- return false;
2167
- }
2168
-
2169
- function isWeakMap(x) {
2170
- if (!weakMapHas || !x || typeof x !== 'object') {
2171
- return false;
2172
- }
2173
- try {
2174
- weakMapHas.call(x, weakMapHas);
2175
- try {
2176
- weakSetHas.call(x, weakSetHas);
2177
- } catch (s) {
2178
- return true;
2179
- }
2180
- return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
2181
- } catch (e) {}
2182
- return false;
2183
- }
2184
-
2185
- function isWeakRef(x) {
2186
- if (!weakRefDeref || !x || typeof x !== 'object') {
2187
- return false;
2188
- }
2189
- try {
2190
- weakRefDeref.call(x);
2191
- return true;
2192
- } catch (e) {}
2193
- return false;
2194
- }
2195
-
2196
- function isSet(x) {
2197
- if (!setSize || !x || typeof x !== 'object') {
2198
- return false;
2199
- }
2200
- try {
2201
- setSize.call(x);
2202
- try {
2203
- mapSize.call(x);
2204
- } catch (m) {
2205
- return true;
2206
- }
2207
- return x instanceof Set; // core-js workaround, pre-v2.5.0
2208
- } catch (e) {}
2209
- return false;
2210
- }
2211
-
2212
- function isWeakSet(x) {
2213
- if (!weakSetHas || !x || typeof x !== 'object') {
2214
- return false;
2215
- }
2216
- try {
2217
- weakSetHas.call(x, weakSetHas);
2218
- try {
2219
- weakMapHas.call(x, weakMapHas);
2220
- } catch (s) {
2221
- return true;
2222
- }
2223
- return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
2224
- } catch (e) {}
2225
- return false;
2226
- }
2227
-
2228
- function isElement(x) {
2229
- if (!x || typeof x !== 'object') { return false; }
2230
- if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
2231
- return true;
2232
- }
2233
- return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
2234
- }
2235
-
2236
- function inspectString(str, opts) {
2237
- if (str.length > opts.maxStringLength) {
2238
- var remaining = str.length - opts.maxStringLength;
2239
- var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
2240
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
2241
- }
2242
- // eslint-disable-next-line no-control-regex
2243
- var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
2244
- return wrapQuotes(s, 'single', opts);
2245
- }
2246
-
2247
- function lowbyte(c) {
2248
- var n = c.charCodeAt(0);
2249
- var x = {
2250
- 8: 'b',
2251
- 9: 't',
2252
- 10: 'n',
2253
- 12: 'f',
2254
- 13: 'r'
2255
- }[n];
2256
- if (x) { return '\\' + x; }
2257
- return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
2258
- }
2259
-
2260
- function markBoxed(str) {
2261
- return 'Object(' + str + ')';
2262
- }
2263
-
2264
- function weakCollectionOf(type) {
2265
- return type + ' { ? }';
2266
- }
2267
-
2268
- function collectionOf(type, size, entries, indent) {
2269
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
2270
- return type + ' (' + size + ') {' + joinedEntries + '}';
2271
- }
2272
-
2273
- function singleLineValues(xs) {
2274
- for (var i = 0; i < xs.length; i++) {
2275
- if (indexOf(xs[i], '\n') >= 0) {
2276
- return false;
2277
- }
2278
- }
2279
- return true;
2280
- }
2281
-
2282
- function getIndent(opts, depth) {
2283
- var baseIndent;
2284
- if (opts.indent === '\t') {
2285
- baseIndent = '\t';
2286
- } else if (typeof opts.indent === 'number' && opts.indent > 0) {
2287
- baseIndent = $join.call(Array(opts.indent + 1), ' ');
2288
- } else {
2289
- return null;
2290
- }
2291
- return {
2292
- base: baseIndent,
2293
- prev: $join.call(Array(depth + 1), baseIndent)
2294
- };
2295
- }
2296
-
2297
- function indentedJoin(xs, indent) {
2298
- if (xs.length === 0) { return ''; }
2299
- var lineJoiner = '\n' + indent.prev + indent.base;
2300
- return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
2301
- }
2302
-
2303
- function arrObjKeys(obj, inspect) {
2304
- var isArr = isArray$3(obj);
2305
- var xs = [];
2306
- if (isArr) {
2307
- xs.length = obj.length;
2308
- for (var i = 0; i < obj.length; i++) {
2309
- xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
2310
- }
2311
- }
2312
- var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
2313
- var symMap;
2314
- if (hasShammedSymbols) {
2315
- symMap = {};
2316
- for (var k = 0; k < syms.length; k++) {
2317
- symMap['$' + syms[k]] = syms[k];
2318
- }
2319
- }
2320
-
2321
- for (var key in obj) { // eslint-disable-line no-restricted-syntax
2322
- if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
2323
- if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
2324
- if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
2325
- // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
2326
- continue; // eslint-disable-line no-restricted-syntax, no-continue
2327
- } else if ($test.call(/[^\w$]/, key)) {
2328
- xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
2329
- } else {
2330
- xs.push(key + ': ' + inspect(obj[key], obj));
2331
- }
2332
- }
2333
- if (typeof gOPS === 'function') {
2334
- for (var j = 0; j < syms.length; j++) {
2335
- if (isEnumerable.call(obj, syms[j])) {
2336
- xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
2337
- }
2338
- }
2339
- }
2340
- return xs;
2341
- }
2342
-
2343
- var GetIntrinsic = getIntrinsic;
2344
- var callBound = callBound$1;
2345
- var inspect = objectInspect;
2346
-
2347
- var $TypeError = GetIntrinsic('%TypeError%');
2348
- var $WeakMap = GetIntrinsic('%WeakMap%', true);
2349
- var $Map = GetIntrinsic('%Map%', true);
2350
-
2351
- var $weakMapGet = callBound('WeakMap.prototype.get', true);
2352
- var $weakMapSet = callBound('WeakMap.prototype.set', true);
2353
- var $weakMapHas = callBound('WeakMap.prototype.has', true);
2354
- var $mapGet = callBound('Map.prototype.get', true);
2355
- var $mapSet = callBound('Map.prototype.set', true);
2356
- var $mapHas = callBound('Map.prototype.has', true);
2357
-
2358
- /*
2359
- * This function traverses the list returning the node corresponding to the
2360
- * given key.
2361
- *
2362
- * That node is also moved to the head of the list, so that if it's accessed
2363
- * again we don't need to traverse the whole list. By doing so, all the recently
2364
- * used nodes can be accessed relatively quickly.
2365
- */
2366
- var listGetNode = function (list, key) { // eslint-disable-line consistent-return
2367
- for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
2368
- if (curr.key === key) {
2369
- prev.next = curr.next;
2370
- curr.next = list.next;
2371
- list.next = curr; // eslint-disable-line no-param-reassign
2372
- return curr;
2373
- }
2374
- }
2375
- };
2376
-
2377
- var listGet = function (objects, key) {
2378
- var node = listGetNode(objects, key);
2379
- return node && node.value;
2380
- };
2381
- var listSet = function (objects, key, value) {
2382
- var node = listGetNode(objects, key);
2383
- if (node) {
2384
- node.value = value;
2385
- } else {
2386
- // Prepend the new node to the beginning of the list
2387
- objects.next = { // eslint-disable-line no-param-reassign
2388
- key: key,
2389
- next: objects.next,
2390
- value: value
2391
- };
2392
- }
2393
- };
2394
- var listHas = function (objects, key) {
2395
- return !!listGetNode(objects, key);
2396
- };
2397
-
2398
- var sideChannel = function getSideChannel() {
2399
- var $wm;
2400
- var $m;
2401
- var $o;
2402
- var channel = {
2403
- assert: function (key) {
2404
- if (!channel.has(key)) {
2405
- throw new $TypeError('Side channel does not contain ' + inspect(key));
2406
- }
2407
- },
2408
- get: function (key) { // eslint-disable-line consistent-return
2409
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2410
- if ($wm) {
2411
- return $weakMapGet($wm, key);
2412
- }
2413
- } else if ($Map) {
2414
- if ($m) {
2415
- return $mapGet($m, key);
2416
- }
2417
- } else {
2418
- if ($o) { // eslint-disable-line no-lonely-if
2419
- return listGet($o, key);
2420
- }
2421
- }
2422
- },
2423
- has: function (key) {
2424
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2425
- if ($wm) {
2426
- return $weakMapHas($wm, key);
2427
- }
2428
- } else if ($Map) {
2429
- if ($m) {
2430
- return $mapHas($m, key);
2431
- }
2432
- } else {
2433
- if ($o) { // eslint-disable-line no-lonely-if
2434
- return listHas($o, key);
2435
- }
2436
- }
2437
- return false;
2438
- },
2439
- set: function (key, value) {
2440
- if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
2441
- if (!$wm) {
2442
- $wm = new $WeakMap();
2443
- }
2444
- $weakMapSet($wm, key, value);
2445
- } else if ($Map) {
2446
- if (!$m) {
2447
- $m = new $Map();
2448
- }
2449
- $mapSet($m, key, value);
2450
- } else {
2451
- if (!$o) {
2452
- /*
2453
- * Initialize the linked list as an empty node, so that we don't have
2454
- * to special-case handling of the first node: we can always refer to
2455
- * it as (previous node).next, instead of something like (list).head
2456
- */
2457
- $o = { key: {}, next: null };
2458
- }
2459
- listSet($o, key, value);
2460
- }
2461
- }
2462
- };
2463
- return channel;
2464
- };
2465
-
2466
- var replace = String.prototype.replace;
2467
- var percentTwenties = /%20/g;
2468
-
2469
- var Format = {
2470
- RFC1738: 'RFC1738',
2471
- RFC3986: 'RFC3986'
2472
- };
2473
-
2474
- var formats$3 = {
2475
- 'default': Format.RFC3986,
2476
- formatters: {
2477
- RFC1738: function (value) {
2478
- return replace.call(value, percentTwenties, '+');
2479
- },
2480
- RFC3986: function (value) {
2481
- return String(value);
2482
- }
2483
- },
2484
- RFC1738: Format.RFC1738,
2485
- RFC3986: Format.RFC3986
2486
- };
2487
-
2488
- var formats$2 = formats$3;
2489
-
2490
- var has$2 = Object.prototype.hasOwnProperty;
2491
- var isArray$2 = Array.isArray;
2492
-
2493
- var hexTable = (function () {
2494
- var array = [];
2495
- for (var i = 0; i < 256; ++i) {
2496
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
2497
- }
2498
-
2499
- return array;
2500
- }());
2501
-
2502
- var compactQueue = function compactQueue(queue) {
2503
- while (queue.length > 1) {
2504
- var item = queue.pop();
2505
- var obj = item.obj[item.prop];
2506
-
2507
- if (isArray$2(obj)) {
2508
- var compacted = [];
2509
-
2510
- for (var j = 0; j < obj.length; ++j) {
2511
- if (typeof obj[j] !== 'undefined') {
2512
- compacted.push(obj[j]);
2513
- }
2514
- }
2515
-
2516
- item.obj[item.prop] = compacted;
2517
- }
2518
- }
2519
- };
2520
-
2521
- var arrayToObject = function arrayToObject(source, options) {
2522
- var obj = options && options.plainObjects ? Object.create(null) : {};
2523
- for (var i = 0; i < source.length; ++i) {
2524
- if (typeof source[i] !== 'undefined') {
2525
- obj[i] = source[i];
2526
- }
2527
- }
2528
-
2529
- return obj;
2530
- };
2531
-
2532
- var merge = function merge(target, source, options) {
2533
- /* eslint no-param-reassign: 0 */
2534
- if (!source) {
2535
- return target;
2536
- }
2537
-
2538
- if (typeof source !== 'object') {
2539
- if (isArray$2(target)) {
2540
- target.push(source);
2541
- } else if (target && typeof target === 'object') {
2542
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
2543
- target[source] = true;
2544
- }
2545
- } else {
2546
- return [target, source];
2547
- }
2548
-
2549
- return target;
2550
- }
2551
-
2552
- if (!target || typeof target !== 'object') {
2553
- return [target].concat(source);
2554
- }
2555
-
2556
- var mergeTarget = target;
2557
- if (isArray$2(target) && !isArray$2(source)) {
2558
- mergeTarget = arrayToObject(target, options);
2559
- }
2560
-
2561
- if (isArray$2(target) && isArray$2(source)) {
2562
- source.forEach(function (item, i) {
2563
- if (has$2.call(target, i)) {
2564
- var targetItem = target[i];
2565
- if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
2566
- target[i] = merge(targetItem, item, options);
2567
- } else {
2568
- target.push(item);
2569
- }
2570
- } else {
2571
- target[i] = item;
2572
- }
2573
- });
2574
- return target;
2575
- }
2576
-
2577
- return Object.keys(source).reduce(function (acc, key) {
2578
- var value = source[key];
2579
-
2580
- if (has$2.call(acc, key)) {
2581
- acc[key] = merge(acc[key], value, options);
2582
- } else {
2583
- acc[key] = value;
2584
- }
2585
- return acc;
2586
- }, mergeTarget);
2587
- };
2588
-
2589
- var assign = function assignSingleSource(target, source) {
2590
- return Object.keys(source).reduce(function (acc, key) {
2591
- acc[key] = source[key];
2592
- return acc;
2593
- }, target);
2594
- };
2595
-
2596
- var decode = function (str, decoder, charset) {
2597
- var strWithoutPlus = str.replace(/\+/g, ' ');
2598
- if (charset === 'iso-8859-1') {
2599
- // unescape never throws, no try...catch needed:
2600
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
2601
- }
2602
- // utf-8
2603
- try {
2604
- return decodeURIComponent(strWithoutPlus);
2605
- } catch (e) {
2606
- return strWithoutPlus;
2607
- }
2608
- };
2609
-
2610
- var encode = function encode(str, defaultEncoder, charset, kind, format) {
2611
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
2612
- // It has been adapted here for stricter adherence to RFC 3986
2613
- if (str.length === 0) {
2614
- return str;
2615
- }
2616
-
2617
- var string = str;
2618
- if (typeof str === 'symbol') {
2619
- string = Symbol.prototype.toString.call(str);
2620
- } else if (typeof str !== 'string') {
2621
- string = String(str);
2622
- }
2623
-
2624
- if (charset === 'iso-8859-1') {
2625
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
2626
- return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
2627
- });
2628
- }
2629
-
2630
- var out = '';
2631
- for (var i = 0; i < string.length; ++i) {
2632
- var c = string.charCodeAt(i);
2633
-
2634
- if (
2635
- c === 0x2D // -
2636
- || c === 0x2E // .
2637
- || c === 0x5F // _
2638
- || c === 0x7E // ~
2639
- || (c >= 0x30 && c <= 0x39) // 0-9
2640
- || (c >= 0x41 && c <= 0x5A) // a-z
2641
- || (c >= 0x61 && c <= 0x7A) // A-Z
2642
- || (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
2643
- ) {
2644
- out += string.charAt(i);
2645
- continue;
2646
- }
2647
-
2648
- if (c < 0x80) {
2649
- out = out + hexTable[c];
2650
- continue;
2651
- }
2652
-
2653
- if (c < 0x800) {
2654
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
2655
- continue;
2656
- }
2657
-
2658
- if (c < 0xD800 || c >= 0xE000) {
2659
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
2660
- continue;
2661
- }
2662
-
2663
- i += 1;
2664
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
2665
- /* eslint operator-linebreak: [2, "before"] */
2666
- out += hexTable[0xF0 | (c >> 18)]
2667
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
2668
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
2669
- + hexTable[0x80 | (c & 0x3F)];
2670
- }
2671
-
2672
- return out;
2673
- };
2674
-
2675
- var compact = function compact(value) {
2676
- var queue = [{ obj: { o: value }, prop: 'o' }];
2677
- var refs = [];
2678
-
2679
- for (var i = 0; i < queue.length; ++i) {
2680
- var item = queue[i];
2681
- var obj = item.obj[item.prop];
2682
-
2683
- var keys = Object.keys(obj);
2684
- for (var j = 0; j < keys.length; ++j) {
2685
- var key = keys[j];
2686
- var val = obj[key];
2687
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
2688
- queue.push({ obj: obj, prop: key });
2689
- refs.push(val);
2690
- }
2691
- }
2692
- }
2693
-
2694
- compactQueue(queue);
2695
-
2696
- return value;
2697
- };
2698
-
2699
- var isRegExp = function isRegExp(obj) {
2700
- return Object.prototype.toString.call(obj) === '[object RegExp]';
2701
- };
2702
-
2703
- var isBuffer = function isBuffer(obj) {
2704
- if (!obj || typeof obj !== 'object') {
2705
- return false;
2706
- }
2707
-
2708
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
2709
- };
2710
-
2711
- var combine = function combine(a, b) {
2712
- return [].concat(a, b);
2713
- };
2714
-
2715
- var maybeMap = function maybeMap(val, fn) {
2716
- if (isArray$2(val)) {
2717
- var mapped = [];
2718
- for (var i = 0; i < val.length; i += 1) {
2719
- mapped.push(fn(val[i]));
2720
- }
2721
- return mapped;
2722
- }
2723
- return fn(val);
2724
- };
2725
-
2726
- var utils$2 = {
2727
- arrayToObject: arrayToObject,
2728
- assign: assign,
2729
- combine: combine,
2730
- compact: compact,
2731
- decode: decode,
2732
- encode: encode,
2733
- isBuffer: isBuffer,
2734
- isRegExp: isRegExp,
2735
- maybeMap: maybeMap,
2736
- merge: merge
2737
- };
2738
-
2739
- var getSideChannel = sideChannel;
2740
- var utils$1 = utils$2;
2741
- var formats$1 = formats$3;
2742
- var has$1 = Object.prototype.hasOwnProperty;
2743
-
2744
- var arrayPrefixGenerators = {
2745
- brackets: function brackets(prefix) {
2746
- return prefix + '[]';
2747
- },
2748
- comma: 'comma',
2749
- indices: function indices(prefix, key) {
2750
- return prefix + '[' + key + ']';
2751
- },
2752
- repeat: function repeat(prefix) {
2753
- return prefix;
2754
- }
2755
- };
2756
-
2757
- var isArray$1 = Array.isArray;
2758
- var push = Array.prototype.push;
2759
- var pushToArray = function (arr, valueOrArray) {
2760
- push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
2761
- };
2762
-
2763
- var toISO = Date.prototype.toISOString;
2764
-
2765
- var defaultFormat = formats$1['default'];
2766
- var defaults$1 = {
2767
- addQueryPrefix: false,
2768
- allowDots: false,
2769
- charset: 'utf-8',
2770
- charsetSentinel: false,
2771
- delimiter: '&',
2772
- encode: true,
2773
- encoder: utils$1.encode,
2774
- encodeValuesOnly: false,
2775
- format: defaultFormat,
2776
- formatter: formats$1.formatters[defaultFormat],
2777
- // deprecated
2778
- indices: false,
2779
- serializeDate: function serializeDate(date) {
2780
- return toISO.call(date);
2781
- },
2782
- skipNulls: false,
2783
- strictNullHandling: false
2784
- };
2785
-
2786
- var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
2787
- return typeof v === 'string'
2788
- || typeof v === 'number'
2789
- || typeof v === 'boolean'
2790
- || typeof v === 'symbol'
2791
- || typeof v === 'bigint';
2792
- };
2793
-
2794
- var sentinel = {};
2795
-
2796
- var stringify$1 = function stringify(
2797
- object,
2798
- prefix,
2799
- generateArrayPrefix,
2800
- commaRoundTrip,
2801
- strictNullHandling,
2802
- skipNulls,
2803
- encoder,
2804
- filter,
2805
- sort,
2806
- allowDots,
2807
- serializeDate,
2808
- format,
2809
- formatter,
2810
- encodeValuesOnly,
2811
- charset,
2812
- sideChannel
2813
- ) {
2814
- var obj = object;
2815
-
2816
- var tmpSc = sideChannel;
2817
- var step = 0;
2818
- var findFlag = false;
2819
- while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
2820
- // Where object last appeared in the ref tree
2821
- var pos = tmpSc.get(object);
2822
- step += 1;
2823
- if (typeof pos !== 'undefined') {
2824
- if (pos === step) {
2825
- throw new RangeError('Cyclic object value');
2826
- } else {
2827
- findFlag = true; // Break while
2828
- }
2829
- }
2830
- if (typeof tmpSc.get(sentinel) === 'undefined') {
2831
- step = 0;
2832
- }
2833
- }
2834
-
2835
- if (typeof filter === 'function') {
2836
- obj = filter(prefix, obj);
2837
- } else if (obj instanceof Date) {
2838
- obj = serializeDate(obj);
2839
- } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
2840
- obj = utils$1.maybeMap(obj, function (value) {
2841
- if (value instanceof Date) {
2842
- return serializeDate(value);
2843
- }
2844
- return value;
2845
- });
2846
- }
2847
-
2848
- if (obj === null) {
2849
- if (strictNullHandling) {
2850
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
2851
- }
2852
-
2853
- obj = '';
2854
- }
2855
-
2856
- if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
2857
- if (encoder) {
2858
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
2859
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
2860
- }
2861
- return [formatter(prefix) + '=' + formatter(String(obj))];
2862
- }
2863
-
2864
- var values = [];
2865
-
2866
- if (typeof obj === 'undefined') {
2867
- return values;
2868
- }
2869
-
2870
- var objKeys;
2871
- if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
2872
- // we need to join elements in
2873
- if (encodeValuesOnly && encoder) {
2874
- obj = utils$1.maybeMap(obj, encoder);
2875
- }
2876
- objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
2877
- } else if (isArray$1(filter)) {
2878
- objKeys = filter;
2879
- } else {
2880
- var keys = Object.keys(obj);
2881
- objKeys = sort ? keys.sort(sort) : keys;
2882
- }
2883
-
2884
- var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
2885
-
2886
- for (var j = 0; j < objKeys.length; ++j) {
2887
- var key = objKeys[j];
2888
- var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
2889
-
2890
- if (skipNulls && value === null) {
2891
- continue;
2892
- }
2893
-
2894
- var keyPrefix = isArray$1(obj)
2895
- ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
2896
- : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
2897
-
2898
- sideChannel.set(object, step);
2899
- var valueSideChannel = getSideChannel();
2900
- valueSideChannel.set(sentinel, sideChannel);
2901
- pushToArray(values, stringify(
2902
- value,
2903
- keyPrefix,
2904
- generateArrayPrefix,
2905
- commaRoundTrip,
2906
- strictNullHandling,
2907
- skipNulls,
2908
- generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder,
2909
- filter,
2910
- sort,
2911
- allowDots,
2912
- serializeDate,
2913
- format,
2914
- formatter,
2915
- encodeValuesOnly,
2916
- charset,
2917
- valueSideChannel
2918
- ));
2919
- }
2920
-
2921
- return values;
2922
- };
2923
-
2924
- var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
2925
- if (!opts) {
2926
- return defaults$1;
2927
- }
2928
-
2929
- if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
2930
- throw new TypeError('Encoder has to be a function.');
2931
- }
2932
-
2933
- var charset = opts.charset || defaults$1.charset;
2934
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2935
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2936
- }
2937
-
2938
- var format = formats$1['default'];
2939
- if (typeof opts.format !== 'undefined') {
2940
- if (!has$1.call(formats$1.formatters, opts.format)) {
2941
- throw new TypeError('Unknown format option provided.');
2942
- }
2943
- format = opts.format;
2944
- }
2945
- var formatter = formats$1.formatters[format];
2946
-
2947
- var filter = defaults$1.filter;
2948
- if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
2949
- filter = opts.filter;
2950
- }
2951
-
2952
- return {
2953
- addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
2954
- allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
2955
- charset: charset,
2956
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
2957
- delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
2958
- encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
2959
- encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
2960
- encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
2961
- filter: filter,
2962
- format: format,
2963
- formatter: formatter,
2964
- serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
2965
- skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
2966
- sort: typeof opts.sort === 'function' ? opts.sort : null,
2967
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
2968
- };
2969
- };
2970
-
2971
- var stringify_1 = function (object, opts) {
2972
- var obj = object;
2973
- var options = normalizeStringifyOptions(opts);
2974
-
2975
- var objKeys;
2976
- var filter;
2977
-
2978
- if (typeof options.filter === 'function') {
2979
- filter = options.filter;
2980
- obj = filter('', obj);
2981
- } else if (isArray$1(options.filter)) {
2982
- filter = options.filter;
2983
- objKeys = filter;
2984
- }
2985
-
2986
- var keys = [];
2987
-
2988
- if (typeof obj !== 'object' || obj === null) {
2989
- return '';
2990
- }
2991
-
2992
- var arrayFormat;
2993
- if (opts && opts.arrayFormat in arrayPrefixGenerators) {
2994
- arrayFormat = opts.arrayFormat;
2995
- } else if (opts && 'indices' in opts) {
2996
- arrayFormat = opts.indices ? 'indices' : 'repeat';
2997
- } else {
2998
- arrayFormat = 'indices';
2999
- }
3000
-
3001
- var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
3002
- if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
3003
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
3004
- }
3005
- var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
3006
-
3007
- if (!objKeys) {
3008
- objKeys = Object.keys(obj);
3009
- }
3010
-
3011
- if (options.sort) {
3012
- objKeys.sort(options.sort);
3013
- }
3014
-
3015
- var sideChannel = getSideChannel();
3016
- for (var i = 0; i < objKeys.length; ++i) {
3017
- var key = objKeys[i];
3018
-
3019
- if (options.skipNulls && obj[key] === null) {
3020
- continue;
3021
- }
3022
- pushToArray(keys, stringify$1(
3023
- obj[key],
3024
- key,
3025
- generateArrayPrefix,
3026
- commaRoundTrip,
3027
- options.strictNullHandling,
3028
- options.skipNulls,
3029
- options.encode ? options.encoder : null,
3030
- options.filter,
3031
- options.sort,
3032
- options.allowDots,
3033
- options.serializeDate,
3034
- options.format,
3035
- options.formatter,
3036
- options.encodeValuesOnly,
3037
- options.charset,
3038
- sideChannel
3039
- ));
3040
- }
3041
-
3042
- var joined = keys.join(options.delimiter);
3043
- var prefix = options.addQueryPrefix === true ? '?' : '';
3044
-
3045
- if (options.charsetSentinel) {
3046
- if (options.charset === 'iso-8859-1') {
3047
- // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
3048
- prefix += 'utf8=%26%2310003%3B&';
3049
- } else {
3050
- // encodeURIComponent('✓')
3051
- prefix += 'utf8=%E2%9C%93&';
3052
- }
3053
- }
3054
-
3055
- return joined.length > 0 ? prefix + joined : '';
3056
- };
3057
-
3058
- var utils = utils$2;
3059
-
3060
- var has = Object.prototype.hasOwnProperty;
3061
- var isArray = Array.isArray;
3062
-
3063
- var defaults = {
3064
- allowDots: false,
3065
- allowPrototypes: false,
3066
- allowSparse: false,
3067
- arrayLimit: 20,
3068
- charset: 'utf-8',
3069
- charsetSentinel: false,
3070
- comma: false,
3071
- decoder: utils.decode,
3072
- delimiter: '&',
3073
- depth: 5,
3074
- ignoreQueryPrefix: false,
3075
- interpretNumericEntities: false,
3076
- parameterLimit: 1000,
3077
- parseArrays: true,
3078
- plainObjects: false,
3079
- strictNullHandling: false
3080
- };
3081
-
3082
- var interpretNumericEntities = function (str) {
3083
- return str.replace(/&#(\d+);/g, function ($0, numberStr) {
3084
- return String.fromCharCode(parseInt(numberStr, 10));
3085
- });
3086
- };
3087
-
3088
- var parseArrayValue = function (val, options) {
3089
- if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
3090
- return val.split(',');
3091
- }
3092
-
3093
- return val;
3094
- };
3095
-
3096
- // This is what browsers will submit when the ✓ character occurs in an
3097
- // application/x-www-form-urlencoded body and the encoding of the page containing
3098
- // the form is iso-8859-1, or when the submitted form has an accept-charset
3099
- // attribute of iso-8859-1. Presumably also with other charsets that do not contain
3100
- // the ✓ character, such as us-ascii.
3101
- var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
3102
-
3103
- // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
3104
- var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
3105
-
3106
- var parseValues = function parseQueryStringValues(str, options) {
3107
- var obj = { __proto__: null };
3108
-
3109
- var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
3110
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
3111
- var parts = cleanStr.split(options.delimiter, limit);
3112
- var skipIndex = -1; // Keep track of where the utf8 sentinel was found
3113
- var i;
3114
-
3115
- var charset = options.charset;
3116
- if (options.charsetSentinel) {
3117
- for (i = 0; i < parts.length; ++i) {
3118
- if (parts[i].indexOf('utf8=') === 0) {
3119
- if (parts[i] === charsetSentinel) {
3120
- charset = 'utf-8';
3121
- } else if (parts[i] === isoSentinel) {
3122
- charset = 'iso-8859-1';
3123
- }
3124
- skipIndex = i;
3125
- i = parts.length; // The eslint settings do not allow break;
3126
- }
3127
- }
3128
- }
3129
-
3130
- for (i = 0; i < parts.length; ++i) {
3131
- if (i === skipIndex) {
3132
- continue;
3133
- }
3134
- var part = parts[i];
3135
-
3136
- var bracketEqualsPos = part.indexOf(']=');
3137
- var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
3138
-
3139
- var key, val;
3140
- if (pos === -1) {
3141
- key = options.decoder(part, defaults.decoder, charset, 'key');
3142
- val = options.strictNullHandling ? null : '';
3143
- } else {
3144
- key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
3145
- val = utils.maybeMap(
3146
- parseArrayValue(part.slice(pos + 1), options),
3147
- function (encodedVal) {
3148
- return options.decoder(encodedVal, defaults.decoder, charset, 'value');
3149
- }
3150
- );
3151
- }
3152
-
3153
- if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
3154
- val = interpretNumericEntities(val);
3155
- }
3156
-
3157
- if (part.indexOf('[]=') > -1) {
3158
- val = isArray(val) ? [val] : val;
3159
- }
3160
-
3161
- if (has.call(obj, key)) {
3162
- obj[key] = utils.combine(obj[key], val);
3163
- } else {
3164
- obj[key] = val;
3165
- }
3166
- }
3167
-
3168
- return obj;
3169
- };
3170
-
3171
- var parseObject = function (chain, val, options, valuesParsed) {
3172
- var leaf = valuesParsed ? val : parseArrayValue(val, options);
3173
-
3174
- for (var i = chain.length - 1; i >= 0; --i) {
3175
- var obj;
3176
- var root = chain[i];
3177
-
3178
- if (root === '[]' && options.parseArrays) {
3179
- obj = [].concat(leaf);
3180
- } else {
3181
- obj = options.plainObjects ? Object.create(null) : {};
3182
- var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
3183
- var index = parseInt(cleanRoot, 10);
3184
- if (!options.parseArrays && cleanRoot === '') {
3185
- obj = { 0: leaf };
3186
- } else if (
3187
- !isNaN(index)
3188
- && root !== cleanRoot
3189
- && String(index) === cleanRoot
3190
- && index >= 0
3191
- && (options.parseArrays && index <= options.arrayLimit)
3192
- ) {
3193
- obj = [];
3194
- obj[index] = leaf;
3195
- } else if (cleanRoot !== '__proto__') {
3196
- obj[cleanRoot] = leaf;
3197
- }
3198
- }
3199
-
3200
- leaf = obj;
3201
- }
3202
-
3203
- return leaf;
3204
- };
3205
-
3206
- var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
3207
- if (!givenKey) {
3208
- return;
3209
- }
3210
-
3211
- // Transform dot notation to bracket notation
3212
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
3213
-
3214
- // The regex chunks
3215
-
3216
- var brackets = /(\[[^[\]]*])/;
3217
- var child = /(\[[^[\]]*])/g;
3218
-
3219
- // Get the parent
3220
-
3221
- var segment = options.depth > 0 && brackets.exec(key);
3222
- var parent = segment ? key.slice(0, segment.index) : key;
3223
-
3224
- // Stash the parent if it exists
3225
-
3226
- var keys = [];
3227
- if (parent) {
3228
- // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
3229
- if (!options.plainObjects && has.call(Object.prototype, parent)) {
3230
- if (!options.allowPrototypes) {
3231
- return;
3232
- }
3233
- }
3234
-
3235
- keys.push(parent);
3236
- }
3237
-
3238
- // Loop through children appending to the array until we hit depth
3239
-
3240
- var i = 0;
3241
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
3242
- i += 1;
3243
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
3244
- if (!options.allowPrototypes) {
3245
- return;
3246
- }
3247
- }
3248
- keys.push(segment[1]);
3249
- }
3250
-
3251
- // If there's a remainder, just add whatever is left
3252
-
3253
- if (segment) {
3254
- keys.push('[' + key.slice(segment.index) + ']');
3255
- }
3256
-
3257
- return parseObject(keys, val, options, valuesParsed);
3258
- };
3259
-
3260
- var normalizeParseOptions = function normalizeParseOptions(opts) {
3261
- if (!opts) {
3262
- return defaults;
3263
- }
3264
-
3265
- if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
3266
- throw new TypeError('Decoder has to be a function.');
3267
- }
3268
-
3269
- if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
3270
- throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
3271
- }
3272
- var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
3273
-
3274
- return {
3275
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
3276
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
3277
- allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
3278
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
3279
- charset: charset,
3280
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
3281
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
3282
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
3283
- delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
3284
- // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3285
- depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
3286
- ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
3287
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
3288
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
3289
- parseArrays: opts.parseArrays !== false,
3290
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
3291
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
3292
- };
3293
- };
3294
-
3295
- var parse$1 = function (str, opts) {
3296
- var options = normalizeParseOptions(opts);
3297
-
3298
- if (str === '' || str === null || typeof str === 'undefined') {
3299
- return options.plainObjects ? Object.create(null) : {};
3300
- }
3301
-
3302
- var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
3303
- var obj = options.plainObjects ? Object.create(null) : {};
3304
-
3305
- // Iterate over the keys and setup the new object
3306
-
3307
- var keys = Object.keys(tempObj);
3308
- for (var i = 0; i < keys.length; ++i) {
3309
- var key = keys[i];
3310
- var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
3311
- obj = utils.merge(obj, newObj, options);
3312
- }
3313
-
3314
- if (options.allowSparse === true) {
3315
- return obj;
3316
- }
3317
-
3318
- return utils.compact(obj);
3319
- };
3320
-
3321
- var stringify = stringify_1;
3322
- var parse = parse$1;
3323
- var formats = formats$3;
3324
-
3325
- var lib = {
3326
- formats: formats,
3327
- parse: parse,
3328
- stringify: stringify
3329
- };
3330
-
3331
1281
  var NEETO_FIELDS_URL = "/neeto_fields_engine/api/v1";
3332
1282
  var FIELDS_URL = "".concat(NEETO_FIELDS_URL, "/fields");
3333
1283
  var FIELD_VALUES_URL = "".concat(NEETO_FIELDS_URL, "/field_values");
@@ -3341,12 +1291,12 @@ var INFO_ICON_SIZE = 16;
3341
1291
  function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3342
1292
  function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3343
1293
  var fieldUrl = function fieldUrl(fieldId) {
3344
- return utils$3.buildUrl(FIELD_URL, {
1294
+ return utils.buildUrl(FIELD_URL, {
3345
1295
  fieldId: fieldId
3346
1296
  });
3347
1297
  };
3348
1298
  var dependenciesUrl = function dependenciesUrl(fieldId) {
3349
- return utils$3.buildUrl(DEPENDENCIES_URL, {
1299
+ return utils.buildUrl(DEPENDENCIES_URL, {
3350
1300
  fieldId: fieldId
3351
1301
  });
3352
1302
  };
@@ -3363,12 +1313,7 @@ var fetch$1 = function fetch(_ref) {
3363
1313
  ownerId: ownerId,
3364
1314
  state: state,
3365
1315
  filters: filters
3366
- }, pageProps),
3367
- paramsSerializer: function paramsSerializer(params) {
3368
- return lib.stringify(params, {
3369
- arrayFormat: "brackets"
3370
- });
3371
- }
1316
+ }, pageProps)
3372
1317
  });
3373
1318
  };
3374
1319
  var create$1 = function create(payload) {
@@ -4857,7 +2802,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
4857
2802
  defaultColumns: defaultColumns
4858
2803
  });
4859
2804
  var handleBlockClick = function handleBlockClick(params) {
4860
- return reactUtils.handleMetaClick(history, utils$3.buildUrl("", _objectSpread$6({
2805
+ return reactUtils.handleMetaClick(history, utils.buildUrl("", _objectSpread$6({
4861
2806
  resource: resource,
4862
2807
  state: state
4863
2808
  }, params)));
@@ -4876,7 +2821,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
4876
2821
  queryParams.state = FIELD_STATES.active;
4877
2822
  }
4878
2823
  if (!isConfigsLoading && ramda.any(ramda.isNil)([resource, state])) {
4879
- history.replace(utils$3.buildUrl("", queryParams));
2824
+ history.replace(utils.buildUrl("", queryParams));
4880
2825
  }
4881
2826
  };
4882
2827
  var isScreenLoading = isFieldsLoading || isConfigsLoading;
@@ -5016,7 +2961,7 @@ var FieldsTable = function FieldsTable(_ref) {
5016
2961
  var _useTranslation = reactI18next.useTranslation(),
5017
2962
  t = _useTranslation.t;
5018
2963
  var showNoDataScreen = isFetched && ramda.isEmpty(rowData);
5019
- var _getQueryParams = utils$3.getQueryParams(),
2964
+ var _getQueryParams = utils.getQueryParams(),
5020
2965
  state = _getQueryParams.state;
5021
2966
  title = title.toLocaleLowerCase();
5022
2967
  var page = pageProps.page,
@@ -9414,7 +7359,7 @@ var ReorderPane = function ReorderPane(_ref) {
9414
7359
  var initialStateRef = React.useRef([]);
9415
7360
  var _useTranslation = reactI18next.useTranslation(),
9416
7361
  t = _useTranslation.t;
9417
- var _getQueryParams = utils$3.getQueryParams(),
7362
+ var _getQueryParams = utils.getQueryParams(),
9418
7363
  resource = _getQueryParams.resource;
9419
7364
  var _useReorderFields = useReorderFields(),
9420
7365
  reorderField = _useReorderFields.mutate,
@@ -9658,7 +7603,7 @@ var isFieldValueEmpty = function isFieldValueEmpty(fieldKind, fieldValueData) {
9658
7603
  };
9659
7604
 
9660
7605
  var fieldValueUrl = function fieldValueUrl(fieldValueId) {
9661
- return utils$3.buildUrl(FIELD_VALUE_URL, {
7606
+ return utils.buildUrl(FIELD_VALUE_URL, {
9662
7607
  fieldValueId: fieldValueId
9663
7608
  });
9664
7609
  };
@@ -9946,15 +7891,15 @@ var renderDataAsText = function renderDataAsText(field, fieldValues) {
9946
7891
  }, fieldValues)) === null || _findBy === void 0 || (_findBy = _findBy.data) === null || _findBy === void 0 ? void 0 : _findBy.value;
9947
7892
  switch (field.kind) {
9948
7893
  case KINDS.date:
9949
- return fieldValueData && utils$3.dateFormat.date(fieldValueData);
7894
+ return fieldValueData && utils.dateFormat.date(fieldValueData);
9950
7895
  case KINDS.time:
9951
- return fieldValueData && utils$3.dateFormat.time(fieldValueData);
7896
+ return fieldValueData && utils.dateFormat.time(fieldValueData);
9952
7897
  case KINDS.datetime:
9953
- return fieldValueData && utils$3.dateFormat.dateTime(fieldValueData);
7898
+ return fieldValueData && utils.dateFormat.dateTime(fieldValueData);
9954
7899
  case KINDS.dateRange:
9955
- return fieldValueData && neetoCist.isNotEmpty(fieldValueData) && "".concat(utils$3.dateFormat.date(fieldValueData[0]), " - ").concat(utils$3.dateFormat.date(fieldValueData[1]));
7900
+ return fieldValueData && neetoCist.isNotEmpty(fieldValueData) && "".concat(utils.dateFormat.date(fieldValueData[0]), " - ").concat(utils.dateFormat.date(fieldValueData[1]));
9956
7901
  case KINDS.timeRange:
9957
- return fieldValueData && "".concat(utils$3.dateFormat.time(fieldValueData[0]), " - ").concat(utils$3.dateFormat.time(fieldValueData[1]));
7902
+ return fieldValueData && "".concat(utils.dateFormat.time(fieldValueData[0]), " - ").concat(utils.dateFormat.time(fieldValueData[1]));
9958
7903
  case KINDS.singleOption:
9959
7904
  return (_findBy2 = neetoCist.findBy({
9960
7905
  id: fieldValueData