@nanoporetech-digital/components 1.15.4 → 1.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/{algoliasearch.umd-da1e6f0c.js → algoliasearch.umd-0ccd70ce.js} +3 -3
  3. package/dist/cjs/{algoliasearch.umd-da1e6f0c.js.map → algoliasearch.umd-0ccd70ce.js.map} +1 -1
  4. package/dist/cjs/{component-store-1aa64afb.js → component-store-bda9b645.js} +107 -36
  5. package/dist/cjs/component-store-bda9b645.js.map +1 -0
  6. package/dist/cjs/nano-algolia-filter.cjs.entry.js +1 -1
  7. package/dist/cjs/nano-algolia-input.cjs.entry.js +2 -2
  8. package/dist/cjs/nano-algolia.cjs.entry.js +2 -2
  9. package/dist/cjs/nano-date-picker_2.cjs.entry.js +1 -1
  10. package/dist/cjs/nano-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/nano-global-nav.cjs.entry.js +4 -2
  12. package/dist/cjs/nano-global-nav.cjs.entry.js.map +1 -1
  13. package/dist/cjs/nano-global-search-results.cjs.entry.js +3 -2
  14. package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
  15. package/dist/cjs/nano-nav-item_2.cjs.entry.js +1 -1
  16. package/dist/cjs/nano-slides.cjs.entry.js +7 -6
  17. package/dist/cjs/nano-slides.cjs.entry.js.map +1 -1
  18. package/dist/cjs/nano-tab-group.cjs.entry.js +1 -1
  19. package/dist/cjs/nano-tooltip.cjs.entry.js +1 -1
  20. package/dist/cjs/{popover-04a39914.js → popover-d033efa2.js} +29 -10
  21. package/dist/cjs/popover-d033efa2.js.map +1 -0
  22. package/dist/collection/components/accordion/accordion.js +1 -1
  23. package/dist/collection/components/alert/alert.js +1 -1
  24. package/dist/collection/components/algolia/algolia-filter.js +2 -2
  25. package/dist/collection/components/algolia/algolia-input.js +5 -5
  26. package/dist/collection/components/algolia/algolia-results.js +1 -1
  27. package/dist/collection/components/algolia/algolia.js +6 -6
  28. package/dist/collection/components/checkbox/checkbox-group.js +2 -2
  29. package/dist/collection/components/checkbox/checkbox.js +3 -3
  30. package/dist/collection/components/date-input/date-input.js +7 -7
  31. package/dist/collection/components/date-picker/date-picker.js +5 -5
  32. package/dist/collection/components/details/details.js +1 -1
  33. package/dist/collection/components/dialog/dialog.js +1 -1
  34. package/dist/collection/components/file-upload/file-upload.js +4 -4
  35. package/dist/collection/components/global-nav/global-nav.js +6 -4
  36. package/dist/collection/components/global-nav/global-nav.js.map +1 -1
  37. package/dist/collection/components/global-search-results/global-search-results.js +3 -2
  38. package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
  39. package/dist/collection/components/grid/grid-item.js +1 -1
  40. package/dist/collection/components/icon/icon.js +1 -1
  41. package/dist/collection/components/input/input.js +5 -5
  42. package/dist/collection/components/nav-item/nav-item.js +4 -4
  43. package/dist/collection/components/range/range.js +4 -4
  44. package/dist/collection/components/resize-observe/resize-observe.js +1 -1
  45. package/dist/collection/components/select/select.js +5 -5
  46. package/dist/collection/components/slides/slides.js +7 -7
  47. package/dist/collection/components/tabs/tab-group.js +2 -2
  48. package/dist/collection/utils/testing/index.js +3 -2
  49. package/dist/collection/utils/testing/index.js.map +1 -1
  50. package/dist/custom-elements/index.js +147 -54
  51. package/dist/custom-elements/index.js.map +1 -1
  52. package/dist/esm/{algoliasearch.umd-1bf96913.js → algoliasearch.umd-8e5aff52.js} +3 -3
  53. package/dist/esm/{algoliasearch.umd-1bf96913.js.map → algoliasearch.umd-8e5aff52.js.map} +1 -1
  54. package/dist/esm/{component-store-f0e6cb24.js → component-store-08f430dd.js} +107 -36
  55. package/dist/esm/component-store-08f430dd.js.map +1 -0
  56. package/dist/esm/nano-algolia-filter.entry.js +1 -1
  57. package/dist/esm/nano-algolia-input.entry.js +2 -2
  58. package/dist/esm/nano-algolia.entry.js +2 -2
  59. package/dist/esm/nano-date-picker_2.entry.js +1 -1
  60. package/dist/esm/nano-dialog.entry.js +1 -1
  61. package/dist/esm/nano-global-nav.entry.js +4 -2
  62. package/dist/esm/nano-global-nav.entry.js.map +1 -1
  63. package/dist/esm/nano-global-search-results.entry.js +3 -2
  64. package/dist/esm/nano-global-search-results.entry.js.map +1 -1
  65. package/dist/esm/nano-nav-item_2.entry.js +1 -1
  66. package/dist/esm/nano-slides.entry.js +7 -6
  67. package/dist/esm/nano-slides.entry.js.map +1 -1
  68. package/dist/esm/nano-tab-group.entry.js +1 -1
  69. package/dist/esm/nano-tooltip.entry.js +1 -1
  70. package/dist/esm/{popover-9169205e.js → popover-2c7b2326.js} +29 -10
  71. package/dist/esm/popover-2c7b2326.js.map +1 -0
  72. package/dist/esm-es5/{algoliasearch.umd-1bf96913.js → algoliasearch.umd-8e5aff52.js} +3 -3
  73. package/dist/esm-es5/{algoliasearch.umd-1bf96913.js.map → algoliasearch.umd-8e5aff52.js.map} +1 -1
  74. package/dist/esm-es5/component-store-08f430dd.js +5 -0
  75. package/dist/esm-es5/component-store-08f430dd.js.map +1 -0
  76. package/dist/esm-es5/nano-algolia-filter.entry.js +1 -1
  77. package/dist/esm-es5/nano-algolia-input.entry.js +1 -1
  78. package/dist/esm-es5/nano-algolia.entry.js +1 -1
  79. package/dist/esm-es5/nano-date-picker_2.entry.js +1 -1
  80. package/dist/esm-es5/nano-dialog.entry.js +1 -1
  81. package/dist/esm-es5/nano-global-nav.entry.js +1 -1
  82. package/dist/esm-es5/nano-global-nav.entry.js.map +1 -1
  83. package/dist/esm-es5/nano-global-search-results.entry.js +1 -1
  84. package/dist/esm-es5/nano-global-search-results.entry.js.map +1 -1
  85. package/dist/esm-es5/nano-nav-item_2.entry.js +1 -1
  86. package/dist/esm-es5/nano-slides.entry.js +3 -3
  87. package/dist/esm-es5/nano-slides.entry.js.map +1 -1
  88. package/dist/esm-es5/nano-tab-group.entry.js +1 -1
  89. package/dist/esm-es5/nano-tooltip.entry.js +1 -1
  90. package/dist/esm-es5/popover-2c7b2326.js +5 -0
  91. package/dist/esm-es5/popover-2c7b2326.js.map +1 -0
  92. package/dist/nano-components/nano-components.esm.js +1 -1
  93. package/dist/nano-components/{p-89dc184e.system.entry.js → p-014f62dc.system.entry.js} +2 -2
  94. package/dist/nano-components/{p-89dc184e.system.entry.js.map → p-014f62dc.system.entry.js.map} +0 -0
  95. package/dist/nano-components/{p-beee3c85.system.entry.js → p-03104b3a.system.entry.js} +2 -2
  96. package/dist/nano-components/{p-beee3c85.system.entry.js.map → p-03104b3a.system.entry.js.map} +0 -0
  97. package/dist/nano-components/{p-26dcb670.system.entry.js → p-12ad4144.system.entry.js} +2 -2
  98. package/dist/nano-components/{p-26dcb670.system.entry.js.map → p-12ad4144.system.entry.js.map} +0 -0
  99. package/dist/nano-components/{p-7b0c0c51.entry.js → p-2bf707e3.entry.js} +4 -4
  100. package/dist/nano-components/{p-7b0c0c51.entry.js.map → p-2bf707e3.entry.js.map} +1 -1
  101. package/dist/nano-components/{p-22a51b34.system.entry.js → p-2c34907c.system.entry.js} +2 -2
  102. package/dist/nano-components/{p-22a51b34.system.entry.js.map → p-2c34907c.system.entry.js.map} +0 -0
  103. package/dist/nano-components/p-2df9e977.system.entry.js +5 -0
  104. package/dist/nano-components/p-2df9e977.system.entry.js.map +1 -0
  105. package/dist/nano-components/{p-dbbf7b9d.system.entry.js → p-31ade697.system.entry.js} +2 -2
  106. package/dist/nano-components/{p-dbbf7b9d.system.entry.js.map → p-31ade697.system.entry.js.map} +0 -0
  107. package/dist/nano-components/{p-81248be1.entry.js → p-3d1328a2.entry.js} +2 -2
  108. package/dist/nano-components/{p-81248be1.entry.js.map → p-3d1328a2.entry.js.map} +0 -0
  109. package/dist/nano-components/p-3f00179c.js +5 -0
  110. package/dist/nano-components/p-3f00179c.js.map +1 -0
  111. package/dist/nano-components/{p-78c2b685.entry.js → p-457864f2.entry.js} +2 -2
  112. package/dist/nano-components/{p-78c2b685.entry.js.map → p-457864f2.entry.js.map} +0 -0
  113. package/dist/nano-components/{p-b499e206.system.entry.js → p-568b607c.system.entry.js} +2 -2
  114. package/dist/nano-components/{p-b499e206.system.entry.js.map → p-568b607c.system.entry.js.map} +0 -0
  115. package/dist/nano-components/{p-7dc55b56.system.entry.js → p-5dbb9fb7.system.entry.js} +4 -4
  116. package/dist/nano-components/{p-7dc55b56.system.entry.js.map → p-5dbb9fb7.system.entry.js.map} +1 -1
  117. package/dist/nano-components/p-7154bfd9.system.js +1 -1
  118. package/dist/nano-components/p-71b5ba7f.system.js +5 -0
  119. package/dist/nano-components/p-71b5ba7f.system.js.map +1 -0
  120. package/dist/nano-components/{p-6e2cc669.entry.js → p-75f1499e.entry.js} +2 -2
  121. package/dist/nano-components/{p-6e2cc669.entry.js.map → p-75f1499e.entry.js.map} +0 -0
  122. package/dist/nano-components/p-7dd28543.js +5 -0
  123. package/dist/nano-components/p-7dd28543.js.map +1 -0
  124. package/dist/nano-components/{p-d79e5a9b.entry.js → p-8387377a.entry.js} +2 -2
  125. package/dist/nano-components/{p-d79e5a9b.entry.js.map → p-8387377a.entry.js.map} +0 -0
  126. package/dist/nano-components/{p-3bbdfb96.js → p-8757b4eb.js} +3 -3
  127. package/dist/nano-components/{p-3bbdfb96.js.map → p-8757b4eb.js.map} +1 -1
  128. package/dist/nano-components/{p-a32b6a4a.entry.js → p-95c8e898.entry.js} +2 -2
  129. package/dist/nano-components/{p-a32b6a4a.entry.js.map → p-95c8e898.entry.js.map} +0 -0
  130. package/dist/nano-components/{p-5e8e5fc0.system.entry.js → p-9d38cc3e.system.entry.js} +2 -2
  131. package/dist/nano-components/{p-5e8e5fc0.system.entry.js.map → p-9d38cc3e.system.entry.js.map} +0 -0
  132. package/dist/nano-components/{p-25c9fb70.system.js → p-a16651a6.system.js} +3 -3
  133. package/dist/nano-components/{p-25c9fb70.system.js.map → p-a16651a6.system.js.map} +1 -1
  134. package/dist/nano-components/{p-d82e941d.system.entry.js → p-b15362c6.system.entry.js} +2 -2
  135. package/dist/nano-components/p-b15362c6.system.entry.js.map +1 -0
  136. package/dist/nano-components/{p-80573547.entry.js → p-b198296f.entry.js} +2 -2
  137. package/dist/nano-components/{p-80573547.entry.js.map → p-b198296f.entry.js.map} +0 -0
  138. package/dist/nano-components/p-d31761c8.system.js +5 -0
  139. package/dist/nano-components/p-d31761c8.system.js.map +1 -0
  140. package/dist/nano-components/{p-4948b950.entry.js → p-d6d1a8c2.entry.js} +2 -2
  141. package/dist/nano-components/{p-4948b950.entry.js.map → p-d6d1a8c2.entry.js.map} +0 -0
  142. package/dist/nano-components/{p-fb75dd54.entry.js → p-d99e661e.entry.js} +2 -2
  143. package/dist/nano-components/p-d99e661e.entry.js.map +1 -0
  144. package/dist/nano-components/{p-43d1b037.entry.js → p-e53a485b.entry.js} +2 -2
  145. package/dist/nano-components/{p-43d1b037.entry.js.map → p-e53a485b.entry.js.map} +0 -0
  146. package/dist/nano-components/p-e669e7d5.entry.js +5 -0
  147. package/dist/nano-components/p-e669e7d5.entry.js.map +1 -0
  148. package/dist/nano-components/{p-980231d8.system.entry.js → p-f4b06615.system.entry.js} +2 -2
  149. package/dist/nano-components/{p-980231d8.system.entry.js.map → p-f4b06615.system.entry.js.map} +0 -0
  150. package/dist/types/utils/testing/index.d.ts +3 -1
  151. package/docs-json.json +1 -1
  152. package/package.json +4 -4
  153. package/dist/cjs/component-store-1aa64afb.js.map +0 -1
  154. package/dist/cjs/popover-04a39914.js.map +0 -1
  155. package/dist/esm/component-store-f0e6cb24.js.map +0 -1
  156. package/dist/esm/popover-9169205e.js.map +0 -1
  157. package/dist/esm-es5/component-store-f0e6cb24.js +0 -5
  158. package/dist/esm-es5/component-store-f0e6cb24.js.map +0 -1
  159. package/dist/esm-es5/popover-9169205e.js +0 -5
  160. package/dist/esm-es5/popover-9169205e.js.map +0 -1
  161. package/dist/nano-components/p-0c6ab963.system.js +0 -5
  162. package/dist/nano-components/p-0c6ab963.system.js.map +0 -1
  163. package/dist/nano-components/p-42498146.js +0 -5
  164. package/dist/nano-components/p-42498146.js.map +0 -1
  165. package/dist/nano-components/p-4ee6f8e7.entry.js +0 -5
  166. package/dist/nano-components/p-4ee6f8e7.entry.js.map +0 -1
  167. package/dist/nano-components/p-8766e262.js +0 -5
  168. package/dist/nano-components/p-8766e262.js.map +0 -1
  169. package/dist/nano-components/p-d82e941d.system.entry.js.map +0 -1
  170. package/dist/nano-components/p-f1f2a010.system.entry.js +0 -5
  171. package/dist/nano-components/p-f1f2a010.system.entry.js.map +0 -1
  172. package/dist/nano-components/p-f65a1ff4.system.js +0 -5
  173. package/dist/nano-components/p-f65a1ff4.system.js.map +0 -1
  174. package/dist/nano-components/p-fb75dd54.entry.js.map +0 -1
@@ -302,9 +302,9 @@ var LEGACY_ALIASES = {
302
302
 
303
303
 
304
304
 
305
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
305
+ var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
306
306
  var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
307
- var $replace = functionBind.call(Function.call, String.prototype.replace);
307
+ var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
308
308
  var $strSlice = functionBind.call(Function.call, String.prototype.slice);
309
309
 
310
310
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
@@ -319,8 +319,8 @@ var stringToPath = function stringToPath(string) {
319
319
  throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
320
320
  }
321
321
  var result = [];
322
- $replace(string, rePropName, function (match, number, quote, subString) {
323
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
322
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
323
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
324
324
  });
325
325
  return result;
326
326
  };
@@ -372,7 +372,7 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
372
372
  var alias = intrinsic.alias;
373
373
  if (alias) {
374
374
  intrinsicBaseName = alias[0];
375
- $spliceApply(parts, $concat([0, 1], alias));
375
+ $spliceApply(parts, $concat$1([0, 1], alias));
376
376
  }
377
377
 
378
378
  for (var i = 1, isOwn = true; i < parts.length; i += 1) {
@@ -518,11 +518,24 @@ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
518
518
  var booleanValueOf = Boolean.prototype.valueOf;
519
519
  var objectToString = Object.prototype.toString;
520
520
  var functionToString = Function.prototype.toString;
521
- var match = String.prototype.match;
521
+ var $match = String.prototype.match;
522
+ var $slice = String.prototype.slice;
523
+ var $replace = String.prototype.replace;
524
+ var $toUpperCase = String.prototype.toUpperCase;
525
+ var $toLowerCase = String.prototype.toLowerCase;
526
+ var $test = RegExp.prototype.test;
527
+ var $concat = Array.prototype.concat;
528
+ var $join = Array.prototype.join;
529
+ var $arrSlice = Array.prototype.slice;
530
+ var $floor = Math.floor;
522
531
  var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
523
532
  var gOPS = Object.getOwnPropertySymbols;
524
533
  var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
525
534
  var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
535
+ // ie, `has-tostringtag/shams
536
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
537
+ ? Symbol.toStringTag
538
+ : null;
526
539
  var isEnumerable = Object.prototype.propertyIsEnumerable;
527
540
 
528
541
  var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
@@ -533,9 +546,30 @@ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPr
533
546
  : null
534
547
  );
535
548
 
549
+ function addNumericSeparator(num, str) {
550
+ if (
551
+ num === Infinity
552
+ || num === -Infinity
553
+ || num !== num
554
+ || (num && num > -1000 && num < 1000)
555
+ || $test.call(/e/, str)
556
+ ) {
557
+ return str;
558
+ }
559
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
560
+ if (typeof num === 'number') {
561
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
562
+ if (int !== num) {
563
+ var intStr = String(int);
564
+ var dec = $slice.call(str, intStr.length + 1);
565
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
566
+ }
567
+ }
568
+ return $replace.call(str, sepRegex, '$&_');
569
+ }
570
+
536
571
  var inspectCustom = require$$0.custom;
537
572
  var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
538
- var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
539
573
 
540
574
  var objectInspect = function inspect_(obj, options, depth, seen) {
541
575
  var opts = options || {};
@@ -562,8 +596,12 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
562
596
  && opts.indent !== '\t'
563
597
  && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
564
598
  ) {
565
- throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
599
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
566
600
  }
601
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
602
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
603
+ }
604
+ var numericSeparator = opts.numericSeparator;
567
605
 
568
606
  if (typeof obj === 'undefined') {
569
607
  return 'undefined';
@@ -582,10 +620,12 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
582
620
  if (obj === 0) {
583
621
  return Infinity / obj > 0 ? '0' : '-0';
584
622
  }
585
- return String(obj);
623
+ var str = String(obj);
624
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
586
625
  }
587
626
  if (typeof obj === 'bigint') {
588
- return String(obj) + 'n';
627
+ var bigIntStr = String(obj) + 'n';
628
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
589
629
  }
590
630
 
591
631
  var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
@@ -604,7 +644,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
604
644
 
605
645
  function inspect(value, from, noIndent) {
606
646
  if (from) {
607
- seen = seen.slice();
647
+ seen = $arrSlice.call(seen);
608
648
  seen.push(from);
609
649
  }
610
650
  if (noIndent) {
@@ -622,21 +662,21 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
622
662
  if (typeof obj === 'function') {
623
663
  var name = nameOf(obj);
624
664
  var keys = arrObjKeys(obj, inspect);
625
- return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
665
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
626
666
  }
627
667
  if (isSymbol(obj)) {
628
- var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
668
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
629
669
  return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
630
670
  }
631
671
  if (isElement(obj)) {
632
- var s = '<' + String(obj.nodeName).toLowerCase();
672
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
633
673
  var attrs = obj.attributes || [];
634
674
  for (var i = 0; i < attrs.length; i++) {
635
675
  s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
636
676
  }
637
677
  s += '>';
638
678
  if (obj.childNodes && obj.childNodes.length) { s += '...'; }
639
- s += '</' + String(obj.nodeName).toLowerCase() + '>';
679
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
640
680
  return s;
641
681
  }
642
682
  if (isArray$3(obj)) {
@@ -645,12 +685,15 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
645
685
  if (indent && !singleLineValues(xs)) {
646
686
  return '[' + indentedJoin(xs, indent) + ']';
647
687
  }
648
- return '[ ' + xs.join(', ') + ' ]';
688
+ return '[ ' + $join.call(xs, ', ') + ' ]';
649
689
  }
650
690
  if (isError(obj)) {
651
691
  var parts = arrObjKeys(obj, inspect);
692
+ if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
693
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
694
+ }
652
695
  if (parts.length === 0) { return '[' + String(obj) + ']'; }
653
- return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
696
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
654
697
  }
655
698
  if (typeof obj === 'object' && customInspect) {
656
699
  if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
@@ -698,14 +741,14 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
698
741
  var ys = arrObjKeys(obj, inspect);
699
742
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
700
743
  var protoTag = obj instanceof Object ? '' : 'null prototype';
701
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
744
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
702
745
  var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
703
- var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
746
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
704
747
  if (ys.length === 0) { return tag + '{}'; }
705
748
  if (indent) {
706
749
  return tag + '{' + indentedJoin(ys, indent) + '}';
707
750
  }
708
- return tag + '{ ' + ys.join(', ') + ' }';
751
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
709
752
  }
710
753
  return String(obj);
711
754
  };
@@ -716,7 +759,7 @@ function wrapQuotes(s, defaultStyle, opts) {
716
759
  }
717
760
 
718
761
  function quote(s) {
719
- return String(s).replace(/"/g, '&quot;');
762
+ return $replace.call(String(s), /"/g, '&quot;');
720
763
  }
721
764
 
722
765
  function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
@@ -767,7 +810,7 @@ function toStr(obj) {
767
810
 
768
811
  function nameOf(f) {
769
812
  if (f.name) { return f.name; }
770
- var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
813
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
771
814
  if (m) { return m[1]; }
772
815
  return null;
773
816
  }
@@ -867,10 +910,10 @@ function inspectString(str, opts) {
867
910
  if (str.length > opts.maxStringLength) {
868
911
  var remaining = str.length - opts.maxStringLength;
869
912
  var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
870
- return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
913
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
871
914
  }
872
915
  // eslint-disable-next-line no-control-regex
873
- var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
916
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
874
917
  return wrapQuotes(s, 'single', opts);
875
918
  }
876
919
 
@@ -884,7 +927,7 @@ function lowbyte(c) {
884
927
  13: 'r'
885
928
  }[n];
886
929
  if (x) { return '\\' + x; }
887
- return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
930
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
888
931
  }
889
932
 
890
933
  function markBoxed(str) {
@@ -896,7 +939,7 @@ function weakCollectionOf(type) {
896
939
  }
897
940
 
898
941
  function collectionOf(type, size, entries, indent) {
899
- var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
942
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
900
943
  return type + ' (' + size + ') {' + joinedEntries + '}';
901
944
  }
902
945
 
@@ -914,20 +957,20 @@ function getIndent(opts, depth) {
914
957
  if (opts.indent === '\t') {
915
958
  baseIndent = '\t';
916
959
  } else if (typeof opts.indent === 'number' && opts.indent > 0) {
917
- baseIndent = Array(opts.indent + 1).join(' ');
960
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
918
961
  } else {
919
962
  return null;
920
963
  }
921
964
  return {
922
965
  base: baseIndent,
923
- prev: Array(depth + 1).join(baseIndent)
966
+ prev: $join.call(Array(depth + 1), baseIndent)
924
967
  };
925
968
  }
926
969
 
927
970
  function indentedJoin(xs, indent) {
928
971
  if (xs.length === 0) { return ''; }
929
972
  var lineJoiner = '\n' + indent.prev + indent.base;
930
- return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
973
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
931
974
  }
932
975
 
933
976
  function arrObjKeys(obj, inspect) {
@@ -954,7 +997,7 @@ function arrObjKeys(obj, inspect) {
954
997
  if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
955
998
  // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
956
999
  continue; // eslint-disable-line no-restricted-syntax, no-continue
957
- } else if ((/[^\w$]/).test(key)) {
1000
+ } else if ($test.call(/[^\w$]/, key)) {
958
1001
  xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
959
1002
  } else {
960
1003
  xs.push(key + ': ' + inspect(obj[key], obj));
@@ -1286,6 +1329,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
1286
1329
 
1287
1330
  i += 1;
1288
1331
  c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
1332
+ /* eslint operator-linebreak: [2, "before"] */
1289
1333
  out += hexTable[0xF0 | (c >> 18)]
1290
1334
  + hexTable[0x80 | ((c >> 12) & 0x3F)]
1291
1335
  + hexTable[0x80 | ((c >> 6) & 0x3F)]
@@ -1375,6 +1419,7 @@ var arrayPrefixGenerators = {
1375
1419
  };
1376
1420
 
1377
1421
  var isArray$1 = Array.isArray;
1422
+ var split = String.prototype.split;
1378
1423
  var push = Array.prototype.push;
1379
1424
  var pushToArray = function (arr, valueOrArray) {
1380
1425
  push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
@@ -1411,6 +1456,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
1411
1456
  || typeof v === 'bigint';
1412
1457
  };
1413
1458
 
1459
+ var sentinel = {};
1460
+
1414
1461
  var stringify = function stringify(
1415
1462
  object,
1416
1463
  prefix,
@@ -1430,8 +1477,23 @@ var stringify = function stringify(
1430
1477
  ) {
1431
1478
  var obj = object;
1432
1479
 
1433
- if (sideChannel$1.has(object)) {
1434
- throw new RangeError('Cyclic object value');
1480
+ var tmpSc = sideChannel$1;
1481
+ var step = 0;
1482
+ var findFlag = false;
1483
+ while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) {
1484
+ // Where object last appeared in the ref tree
1485
+ var pos = tmpSc.get(object);
1486
+ step += 1;
1487
+ if (typeof pos !== 'undefined') {
1488
+ if (pos === step) {
1489
+ throw new RangeError('Cyclic object value');
1490
+ } else {
1491
+ findFlag = true; // Break while
1492
+ }
1493
+ }
1494
+ if (typeof tmpSc.get(sentinel) === 'undefined') {
1495
+ step = 0;
1496
+ }
1435
1497
  }
1436
1498
 
1437
1499
  if (typeof filter === 'function') {
@@ -1458,6 +1520,14 @@ var stringify = function stringify(
1458
1520
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
1459
1521
  if (encoder) {
1460
1522
  var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
1523
+ if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
1524
+ var valuesArray = split.call(String(obj), ',');
1525
+ var valuesJoined = '';
1526
+ for (var i = 0; i < valuesArray.length; ++i) {
1527
+ valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
1528
+ }
1529
+ return [formatter(keyValue) + '=' + valuesJoined];
1530
+ }
1461
1531
  return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
1462
1532
  }
1463
1533
  return [formatter(prefix) + '=' + formatter(String(obj))];
@@ -1480,8 +1550,8 @@ var stringify = function stringify(
1480
1550
  objKeys = sort ? keys.sort(sort) : keys;
1481
1551
  }
1482
1552
 
1483
- for (var i = 0; i < objKeys.length; ++i) {
1484
- var key = objKeys[i];
1553
+ for (var j = 0; j < objKeys.length; ++j) {
1554
+ var key = objKeys[j];
1485
1555
  var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
1486
1556
 
1487
1557
  if (skipNulls && value === null) {
@@ -1492,8 +1562,9 @@ var stringify = function stringify(
1492
1562
  ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
1493
1563
  : prefix + (allowDots ? '.' + key : '[' + key + ']');
1494
1564
 
1495
- sideChannel$1.set(object, true);
1565
+ sideChannel$1.set(object, step);
1496
1566
  var valueSideChannel = sideChannel();
1567
+ valueSideChannel.set(sentinel, sideChannel$1);
1497
1568
  pushToArray(values, stringify(
1498
1569
  value,
1499
1570
  keyPrefix,
@@ -2160,4 +2231,4 @@ class Store {
2160
2231
 
2161
2232
  export { ComponentStore as C };
2162
2233
 
2163
- //# sourceMappingURL=component-store-f0e6cb24.js.map
2234
+ //# sourceMappingURL=component-store-08f430dd.js.map