@bcgov/design-system-react-components 0.5.0-pr522 → 0.5.0-pr524

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/esm/index.js CHANGED
@@ -3,7 +3,7 @@ import $dbSRa$react, { createContext, useMemo, cloneElement, useContext, useStat
3
3
  import $iETbY$reactdom, { createPortal, flushSync } from 'react-dom';
4
4
 
5
5
  function styleInject(css, ref) {
6
- if ( ref === undefined ) ref = {};
6
+ if ( ref === void 0 ) ref = {};
7
7
  var insertAt = ref.insertAt;
8
8
 
9
9
  if (!css || typeof document === 'undefined') { return; }
@@ -119,7 +119,7 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
119
119
  return {
120
120
  *[Symbol.iterator] () {
121
121
  let parent = keyMap.get(key);
122
- let node = (parent === null || parent === undefined ? undefined : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;
122
+ let node = (parent === null || parent === void 0 ? void 0 : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;
123
123
  while(node){
124
124
  yield node;
125
125
  node = node.nextKey != null ? keyMap.get(node.nextKey) : undefined;
@@ -134,7 +134,7 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
134
134
  node = this.keyMap.get(node.prevKey);
135
135
  while(node && node.type !== 'item' && node.lastChildKey != null)node = this.keyMap.get(node.lastChildKey);
136
136
  var _node_key;
137
- return (_node_key = node === null || node === undefined ? undefined : node.key) !== null && _node_key !== undefined ? _node_key : null;
137
+ return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
138
138
  }
139
139
  return node.parentKey;
140
140
  }
@@ -154,13 +154,13 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
154
154
  }
155
155
  getLastKey() {
156
156
  let node = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
157
- while((node === null || node === undefined ? undefined : node.lastChildKey) != null)node = this.keyMap.get(node.lastChildKey);
157
+ while((node === null || node === void 0 ? void 0 : node.lastChildKey) != null)node = this.keyMap.get(node.lastChildKey);
158
158
  var _node_key;
159
- return (_node_key = node === null || node === undefined ? undefined : node.key) !== null && _node_key !== undefined ? _node_key : null;
159
+ return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
160
160
  }
161
161
  getItem(key) {
162
162
  var _this_keyMap_get;
163
- return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== undefined ? _this_keyMap_get : null;
163
+ return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
164
164
  }
165
165
  at() {
166
166
  throw new Error('Not implemented');
@@ -254,7 +254,7 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
254
254
  }
255
255
  get isConnected() {
256
256
  var _this_parentNode;
257
- return ((_this_parentNode = this.parentNode) === null || _this_parentNode === undefined ? undefined : _this_parentNode.isConnected) || false;
257
+ return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
258
258
  }
259
259
  appendChild(child) {
260
260
  this.ownerDocument.startTransaction();
@@ -348,14 +348,14 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
348
348
  node.level = this.level;
349
349
  node.parentKey = this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd ? this.parentNode.node.key : null;
350
350
  var _this_previousSibling_node_key;
351
- node.prevKey = (_this_previousSibling_node_key = (_this_previousSibling = this.previousSibling) === null || _this_previousSibling === undefined ? undefined : _this_previousSibling.node.key) !== null && _this_previousSibling_node_key !== undefined ? _this_previousSibling_node_key : null;
351
+ node.prevKey = (_this_previousSibling_node_key = (_this_previousSibling = this.previousSibling) === null || _this_previousSibling === void 0 ? void 0 : _this_previousSibling.node.key) !== null && _this_previousSibling_node_key !== void 0 ? _this_previousSibling_node_key : null;
352
352
  var _this_nextSibling_node_key;
353
- node.nextKey = (_this_nextSibling_node_key = (_this_nextSibling = this.nextSibling) === null || _this_nextSibling === undefined ? undefined : _this_nextSibling.node.key) !== null && _this_nextSibling_node_key !== undefined ? _this_nextSibling_node_key : null;
353
+ node.nextKey = (_this_nextSibling_node_key = (_this_nextSibling = this.nextSibling) === null || _this_nextSibling === void 0 ? void 0 : _this_nextSibling.node.key) !== null && _this_nextSibling_node_key !== void 0 ? _this_nextSibling_node_key : null;
354
354
  node.hasChildNodes = !!this.firstChild;
355
355
  var _this_firstChild_node_key;
356
- node.firstChildKey = (_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === undefined ? undefined : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== undefined ? _this_firstChild_node_key : null;
356
+ node.firstChildKey = (_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null;
357
357
  var _this_lastChild_node_key;
358
- node.lastChildKey = (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === undefined ? undefined : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== undefined ? _this_lastChild_node_key : null;
358
+ node.lastChildKey = (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null;
359
359
  }
360
360
  setProps(obj, ref, rendered, render) {
361
361
  let node = this.ownerDocument.getMutableNode(this);
@@ -459,7 +459,7 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
459
459
  let collection = this.getMutableCollection();
460
460
  for (let element of this.mutatedNodes)if (element.isConnected) collection.addNode(element.node);
461
461
  var _this_firstChild_node_key, _this_lastChild_node_key;
462
- collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === undefined ? undefined : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== undefined ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === undefined ? undefined : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== undefined ? _this_lastChild_node_key : null, this.isSSR);
462
+ collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null, this.isSSR);
463
463
  this.mutatedNodes.clear();
464
464
  }
465
465
  this.collectionMutated = false;
@@ -516,7 +516,7 @@ function $e948873055cbafe4$export$727c8fc270210f13(props) {
516
516
  rendered = children(item);
517
517
  var _rendered_props_id, _ref;
518
518
  // @ts-ignore
519
- let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== undefined ? _rendered_props_id : item.key) !== null && _ref !== undefined ? _ref : item.id;
519
+ let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
520
520
  if (key == null) throw new Error('Could not determine key for item');
521
521
  if (idScope) key = idScope + ':' + key;
522
522
  // Note: only works if wrapped Item passes through id...
@@ -585,7 +585,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
585
585
  // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
586
586
  // Since React runs the second render immediately after the first, this is safe.
587
587
  // @ts-ignore
588
- let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ($dbSRa$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === undefined ? undefined : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === undefined ? undefined : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
588
+ let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ($dbSRa$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
589
589
  if (currentOwner) {
590
590
  let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
591
591
  if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
@@ -737,7 +737,7 @@ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
737
737
  // @ts-ignore
738
738
  return (useCallback)((...args)=>{
739
739
  const f = ref.current;
740
- return f === null || f === undefined ? undefined : f(...args);
740
+ return f === null || f === void 0 ? void 0 : f(...args);
741
741
  }, []);
742
742
  }
743
743
 
@@ -894,7 +894,7 @@ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
894
894
 
895
895
  const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
896
896
  var _el_ownerDocument;
897
- return (_el_ownerDocument = el === null || el === undefined ? undefined : el.ownerDocument) !== null && _el_ownerDocument !== undefined ? _el_ownerDocument : document;
897
+ return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
898
898
  };
899
899
  const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
900
900
  if (el && 'window' in el && el.window === el) return el;
@@ -992,7 +992,7 @@ const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
992
992
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
993
993
  let { labelable: labelable, isLink: isLink, propNames: propNames } = opts;
994
994
  let filteredProps = {};
995
- for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === undefined ? undefined : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
995
+ for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
996
996
  return filteredProps;
997
997
  }
998
998
 
@@ -1073,11 +1073,11 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
1073
1073
  */ function $c87311424ea30a05$var$testUserAgent(re) {
1074
1074
  var _window_navigator_userAgentData;
1075
1075
  if (typeof window === 'undefined' || window.navigator == null) return false;
1076
- return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === undefined ? undefined : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
1076
+ return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
1077
1077
  }
1078
1078
  function $c87311424ea30a05$var$testPlatform(re) {
1079
1079
  var _window_navigator_userAgentData;
1080
- return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === undefined ? undefined : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
1080
+ return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
1081
1081
  }
1082
1082
  function $c87311424ea30a05$var$cached(fn) {
1083
1083
  let res = null;
@@ -1151,7 +1151,7 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
1151
1151
  // will prevent links with target="_blank" from opening. However, it does allow the event if the
1152
1152
  // Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.
1153
1153
  // See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.
1154
- if (($c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === undefined ? undefined : (_window_event_type = _window_event.type) === null || _window_event_type === undefined ? undefined : _window_event_type.startsWith('key')) && target.target === '_blank') {
1154
+ if (($c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {
1155
1155
  if (($c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;
1156
1156
  else ctrlKey = true;
1157
1157
  }
@@ -1199,7 +1199,7 @@ function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
1199
1199
  function $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {
1200
1200
  let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
1201
1201
  var _props_href;
1202
- const href = router.useHref((_props_href = props.href) !== null && _props_href !== undefined ? _props_href : '');
1202
+ const href = router.useHref((_props_href = props.href) !== null && _props_href !== void 0 ? _props_href : '');
1203
1203
  return {
1204
1204
  'data-href': props.href ? href : undefined,
1205
1205
  'data-target': props.target,
@@ -1212,14 +1212,14 @@ function $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {
1212
1212
  function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
1213
1213
  let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
1214
1214
  var _props_href;
1215
- const href = router.useHref((_props_href = props === null || props === undefined ? undefined : props.href) !== null && _props_href !== undefined ? _props_href : '');
1215
+ const href = router.useHref((_props_href = props === null || props === void 0 ? void 0 : props.href) !== null && _props_href !== void 0 ? _props_href : '');
1216
1216
  return {
1217
- href: (props === null || props === undefined ? undefined : props.href) ? href : undefined,
1218
- target: props === null || props === undefined ? undefined : props.target,
1219
- rel: props === null || props === undefined ? undefined : props.rel,
1220
- download: props === null || props === undefined ? undefined : props.download,
1221
- ping: props === null || props === undefined ? undefined : props.ping,
1222
- referrerPolicy: props === null || props === undefined ? undefined : props.referrerPolicy
1217
+ href: (props === null || props === void 0 ? void 0 : props.href) ? href : undefined,
1218
+ target: props === null || props === void 0 ? void 0 : props.target,
1219
+ rel: props === null || props === void 0 ? void 0 : props.rel,
1220
+ download: props === null || props === void 0 ? void 0 : props.download,
1221
+ ping: props === null || props === void 0 ? void 0 : props.ping,
1222
+ referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy
1223
1223
  };
1224
1224
  }
1225
1225
 
@@ -1312,7 +1312,7 @@ function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
1312
1312
  let globalListeners = (useRef)(new Map());
1313
1313
  let addGlobalListener = (useCallback)((eventTarget, type, listener, options)=>{
1314
1314
  // Make sure we remove the listener after it is called with the `once` option.
1315
- let fn = (options === null || options === undefined ? undefined : options.once) ? (...args)=>{
1315
+ let fn = (options === null || options === void 0 ? void 0 : options.once) ? (...args)=>{
1316
1316
  globalListeners.current.delete(listener);
1317
1317
  listener(...args);
1318
1318
  } : listener;
@@ -1326,7 +1326,7 @@ function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
1326
1326
  }, []);
1327
1327
  let removeGlobalListener = (useCallback)((eventTarget, type, listener, options)=>{
1328
1328
  var _globalListeners_current_get;
1329
- let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === undefined ? undefined : _globalListeners_current_get.fn) || listener;
1329
+ let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;
1330
1330
  eventTarget.removeEventListener(type, fn, options);
1331
1331
  globalListeners.current.delete(listener);
1332
1332
  }, []);
@@ -1444,7 +1444,7 @@ function $9daab02d461809db$var$hasResizeObserver() {
1444
1444
  function $9daab02d461809db$export$683480f191c0e3ea(options) {
1445
1445
  const { ref: ref, box: box, onResize: onResize } = options;
1446
1446
  (useEffect)(()=>{
1447
- let element = ref === null || ref === undefined ? undefined : ref.current;
1447
+ let element = ref === null || ref === void 0 ? void 0 : ref.current;
1448
1448
  if (!element) return;
1449
1449
  if (!$9daab02d461809db$var$hasResizeObserver()) {
1450
1450
  window.addEventListener('resize', onResize, false);
@@ -1587,8 +1587,8 @@ function $5df64b3807dc15ee$export$d699905dd57c73ca() {
1587
1587
  }
1588
1588
  function $5df64b3807dc15ee$var$getViewportSize() {
1589
1589
  return {
1590
- width: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === undefined ? undefined : $5df64b3807dc15ee$var$visualViewport.width) || window.innerWidth,
1591
- height: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === undefined ? undefined : $5df64b3807dc15ee$var$visualViewport.height) || window.innerHeight
1590
+ width: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === void 0 ? void 0 : $5df64b3807dc15ee$var$visualViewport.width) || window.innerWidth,
1591
+ height: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === void 0 ? void 0 : $5df64b3807dc15ee$var$visualViewport.height) || window.innerHeight
1592
1592
  };
1593
1593
  }
1594
1594
 
@@ -1733,18 +1733,18 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
1733
1733
  // won't cause a scroll if the element is already focused and doesn't behave consistently when an element is partially out of view horizontally vs vertically
1734
1734
  _targetElement_scrollIntoView;
1735
1735
  let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
1736
- targetElement === null || targetElement === undefined ? undefined : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === undefined ? undefined : _targetElement_scrollIntoView.call(targetElement, {
1736
+ targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {
1737
1737
  block: 'nearest'
1738
1738
  });
1739
1739
  let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
1740
1740
  // Account for sub pixel differences from rounding
1741
1741
  if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
1742
1742
  var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
1743
- opts === null || opts === undefined ? undefined : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === undefined ? undefined : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === undefined ? undefined : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
1743
+ opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
1744
1744
  block: 'center',
1745
1745
  inline: 'center'
1746
1746
  });
1747
- (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === undefined ? undefined : _targetElement_scrollIntoView1.call(targetElement, {
1747
+ (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {
1748
1748
  block: 'nearest'
1749
1749
  });
1750
1750
  }
@@ -1805,10 +1805,10 @@ function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
1805
1805
  });
1806
1806
  (useEffect)(()=>{
1807
1807
  var _ref_current;
1808
- let form = ref === null || ref === undefined ? undefined : (_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.form;
1809
- form === null || form === undefined ? undefined : form.addEventListener('reset', handleReset);
1808
+ let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;
1809
+ form === null || form === void 0 ? void 0 : form.addEventListener('reset', handleReset);
1810
1810
  return ()=>{
1811
- form === null || form === undefined ? undefined : form.removeEventListener('reset', handleReset);
1811
+ form === null || form === void 0 ? void 0 : form.removeEventListener('reset', handleReset);
1812
1812
  };
1813
1813
  }, [
1814
1814
  ref,
@@ -1917,7 +1917,7 @@ function requireUseSyncExternalStoreShim_production_min () {
1917
1917
  if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
1918
1918
  hasRequiredUseSyncExternalStoreShim_production_min = 1;
1919
1919
  var e=$dbSRa$react;function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
1920
- function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return true}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=undefined!==e.useSyncExternalStore?e.useSyncExternalStore:u;
1920
+ function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
1921
1921
  return useSyncExternalStoreShim_production_min;
1922
1922
  }
1923
1923
 
@@ -2242,7 +2242,7 @@ const $e1995378a142960e$var$useSyncExternalStore = typeof ($dbSRa$react)['useSyn
2242
2242
  function $e1995378a142960e$var$useCollectionDocument(createCollection) {
2243
2243
  // The document instance is mutable, and should never change between renders.
2244
2244
  // useSyncExternalStore is used to subscribe to updates, which vends immutable Collection objects.
2245
- let [document] = (useState)(()=>new ($681cc3c98f569e39$export$b34a105447964f9f)((createCollection === null || createCollection === undefined ? undefined : createCollection()) || new ($23b9f4fcf0fe224b$export$408d25a4e12db025)()));
2245
+ let [document] = (useState)(()=>new ($681cc3c98f569e39$export$b34a105447964f9f)((createCollection === null || createCollection === void 0 ? void 0 : createCollection()) || new ($23b9f4fcf0fe224b$export$408d25a4e12db025)()));
2246
2246
  let subscribe = (useCallback)((fn)=>document.subscribe(fn), [
2247
2247
  document
2248
2248
  ]);
@@ -2286,7 +2286,7 @@ function $e1995378a142960e$var$useSSRCollectionNode(Type, props, ref, rendered,
2286
2286
  // collection by the time we need to use the collection to render to the real DOM.
2287
2287
  // After hydration, we switch to client rendering using the portal.
2288
2288
  let itemRef = (useCallback)((element)=>{
2289
- element === null || element === undefined ? undefined : element.setProps(props, ref, rendered, render);
2289
+ element === null || element === void 0 ? void 0 : element.setProps(props, ref, rendered, render);
2290
2290
  }, [
2291
2291
  props,
2292
2292
  ref,
@@ -2336,7 +2336,7 @@ function $e1995378a142960e$export$e953bb1cd0f19726(type, render, useChildren = $
2336
2336
  var _useSSRCollectionNode;
2337
2337
  return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(type, props, ref, null, children, (node)=>/*#__PURE__*/ ($dbSRa$react).createElement(Component, {
2338
2338
  node: node
2339
- }))) !== null && _useSSRCollectionNode !== undefined ? _useSSRCollectionNode : /*#__PURE__*/ ($dbSRa$react).createElement(($dbSRa$react).Fragment, null);
2339
+ }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : /*#__PURE__*/ ($dbSRa$react).createElement(($dbSRa$react).Fragment, null);
2340
2340
  });
2341
2341
  // @ts-ignore
2342
2342
  Result.displayName = render.name;
@@ -2351,8 +2351,8 @@ function $e1995378a142960e$var$useCollectionChildren(options) {
2351
2351
  const $e1995378a142960e$var$CollectionContext = /*#__PURE__*/ (createContext)(null);
2352
2352
  function $e1995378a142960e$export$fb8073518f34e6ec(props) {
2353
2353
  let ctx = (useContext)($e1995378a142960e$var$CollectionContext);
2354
- let dependencies = ((ctx === null || ctx === undefined ? undefined : ctx.dependencies) || []).concat(props.dependencies);
2355
- let idScope = props.idScope || (ctx === null || ctx === undefined ? undefined : ctx.idScope);
2354
+ let dependencies = ((ctx === null || ctx === void 0 ? void 0 : ctx.dependencies) || []).concat(props.dependencies);
2355
+ let idScope = props.idScope || (ctx === null || ctx === void 0 ? void 0 : ctx.idScope);
2356
2356
  let children = $e1995378a142960e$var$useCollectionChildren({
2357
2357
  ...props,
2358
2358
  idScope: idScope,
@@ -2425,7 +2425,7 @@ function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDro
2425
2425
  type: 'item',
2426
2426
  key: key,
2427
2427
  dropPosition: 'before'
2428
- }), rendered, (keyAfter == null || ((_collection_getItem = collection.getItem(keyAfter)) === null || _collection_getItem === undefined ? undefined : _collection_getItem.type) !== 'item') && renderDropIndicator({
2428
+ }), rendered, (keyAfter == null || ((_collection_getItem = collection.getItem(keyAfter)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.type) !== 'item') && renderDropIndicator({
2429
2429
  type: 'item',
2430
2430
  key: key,
2431
2431
  dropPosition: 'after'
@@ -2486,12 +2486,12 @@ function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
2486
2486
  else if (children == null) computedChildren = defaultChildren;
2487
2487
  else computedChildren = children;
2488
2488
  return {
2489
- className: computedClassName !== null && computedClassName !== undefined ? computedClassName : defaultClassName,
2489
+ className: computedClassName !== null && computedClassName !== void 0 ? computedClassName : defaultClassName,
2490
2490
  style: computedStyle || defaultStyle ? {
2491
2491
  ...defaultStyle,
2492
2492
  ...computedStyle
2493
2493
  } : undefined,
2494
- children: computedChildren !== null && computedChildren !== undefined ? computedChildren : defaultChildren,
2494
+ children: computedChildren !== null && computedChildren !== void 0 ? computedChildren : defaultChildren,
2495
2495
  'data-rac': ''
2496
2496
  };
2497
2497
  }, [
@@ -2810,12 +2810,12 @@ class $f6c31cce2adf654f$var$PressEvent {
2810
2810
  constructor(type, pointerType, originalEvent, state){
2811
2811
  (_class_private_field_init)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, {
2812
2812
  writable: true,
2813
- value: undefined
2813
+ value: void 0
2814
2814
  });
2815
2815
  (_class_private_field_set)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, true);
2816
2816
  var _state_target;
2817
- let currentTarget = (_state_target = state === null || state === undefined ? undefined : state.target) !== null && _state_target !== undefined ? _state_target : originalEvent.currentTarget;
2818
- const rect = currentTarget === null || currentTarget === undefined ? undefined : currentTarget.getBoundingClientRect();
2817
+ let currentTarget = (_state_target = state === null || state === void 0 ? void 0 : state.target) !== null && _state_target !== void 0 ? _state_target : originalEvent.currentTarget;
2818
+ const rect = currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.getBoundingClientRect();
2819
2819
  let x, y = 0;
2820
2820
  let clientX, clientY = null;
2821
2821
  if (originalEvent.clientX != null && originalEvent.clientY != null) {
@@ -2956,7 +2956,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
2956
2956
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1393524
2957
2957
  // https://bugs.webkit.org/show_bug.cgi?id=55291
2958
2958
  // https://bugzilla.mozilla.org/show_bug.cgi?id=1299553
2959
- if (e.metaKey && ($c87311424ea30a05$export$9ac100e40613ea10)()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === undefined ? undefined : _state_metaKeyEvents.set(e.key, e.nativeEvent);
2959
+ if (e.metaKey && ($c87311424ea30a05$export$9ac100e40613ea10)()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);
2960
2960
  } else if (e.key === 'Meta') state.metaKeyEvents = new Map();
2961
2961
  },
2962
2962
  onClick (e) {
@@ -2998,15 +2998,15 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
2998
2998
  ($ea8dcbcb9ea1b556$export$95185d699e05d4d7)(state.target, e, false);
2999
2999
  }
3000
3000
  state.isPressed = false;
3001
- (_state_metaKeyEvents1 = state.metaKeyEvents) === null || _state_metaKeyEvents1 === undefined ? undefined : _state_metaKeyEvents1.delete(e.key);
3002
- } else if (e.key === 'Meta' && ((_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === undefined ? undefined : _state_metaKeyEvents.size)) {
3001
+ (_state_metaKeyEvents1 = state.metaKeyEvents) === null || _state_metaKeyEvents1 === void 0 ? void 0 : _state_metaKeyEvents1.delete(e.key);
3002
+ } else if (e.key === 'Meta' && ((_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.size)) {
3003
3003
  var _state_target;
3004
3004
  // If we recorded keydown events that occurred while the Meta key was pressed,
3005
3005
  // and those haven't received keyup events already, fire keyup events ourselves.
3006
3006
  // See comment above for more info about the macOS bug causing this.
3007
3007
  let events = state.metaKeyEvents;
3008
3008
  state.metaKeyEvents = undefined;
3009
- for (let event of events.values())(_state_target = state.target) === null || _state_target === undefined ? undefined : _state_target.dispatchEvent(new KeyboardEvent('keyup', event));
3009
+ for (let event of events.values())(_state_target = state.target) === null || _state_target === void 0 ? void 0 : _state_target.dispatchEvent(new KeyboardEvent('keyup', event));
3010
3010
  }
3011
3011
  };
3012
3012
  if (typeof PointerEvent !== 'undefined') {
@@ -3260,7 +3260,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
3260
3260
  return ()=>{
3261
3261
  var _ref_current_target;
3262
3262
  if (!allowTextSelectionOnPress) // eslint-disable-next-line react-hooks/exhaustive-deps
3263
- ($14c0b72509d70225$export$b0d6fa1ab32e3295)((_ref_current_target = ref.current.target) !== null && _ref_current_target !== undefined ? _ref_current_target : undefined);
3263
+ ($14c0b72509d70225$export$b0d6fa1ab32e3295)((_ref_current_target = ref.current.target) !== null && _ref_current_target !== void 0 ? _ref_current_target : undefined);
3264
3264
  };
3265
3265
  }, [
3266
3266
  allowTextSelectionOnPress
@@ -3397,7 +3397,7 @@ function $f6c31cce2adf654f$var$isValidInputKey(target, key) {
3397
3397
  const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /*#__PURE__*/ ($dbSRa$react).forwardRef(({ children: children, ...props }, ref)=>{
3398
3398
  let isRegistered = (useRef)(false);
3399
3399
  let prevContext = (useContext)(($ae1eeba8b9eafd08$export$5165eccb35aaadb5));
3400
- ref = ($df56164dff5785e2$export$4338b53315abf666)(ref || (prevContext === null || prevContext === undefined ? undefined : prevContext.ref));
3400
+ ref = ($df56164dff5785e2$export$4338b53315abf666)(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));
3401
3401
  let context = ($3ef42575df84b30b$export$9d1611c77c2fe928)(prevContext || {}, {
3402
3402
  ...props,
3403
3403
  ref: ref,
@@ -3484,7 +3484,7 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
3484
3484
  };
3485
3485
  }, []);
3486
3486
  let dispatchBlur = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((e)=>{
3487
- onBlur === null || onBlur === undefined ? undefined : onBlur(e);
3487
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
3488
3488
  });
3489
3489
  // This function is called during a React onFocus event.
3490
3490
  return (useCallback)((e)=>{
@@ -3511,7 +3511,7 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
3511
3511
  stateRef.current.observer = new MutationObserver(()=>{
3512
3512
  if (stateRef.current.isFocused && target.disabled) {
3513
3513
  var _stateRef_current_observer;
3514
- (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === undefined ? undefined : _stateRef_current_observer.disconnect();
3514
+ (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
3515
3515
  let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
3516
3516
  target.dispatchEvent(new FocusEvent('blur', {
3517
3517
  relatedTarget: relatedTargetEl
@@ -3780,18 +3780,18 @@ const $507fabe10e71c6fb$var$nonTextInputTypes = new Set([
3780
3780
  * focus visible style can be properly set.
3781
3781
  */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
3782
3782
  var _e_target;
3783
- const IHTMLInputElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).HTMLInputElement : HTMLInputElement;
3784
- const IHTMLTextAreaElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
3785
- const IHTMLElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).HTMLElement : HTMLElement;
3786
- const IKeyboardEvent = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).KeyboardEvent : KeyboardEvent;
3787
- isTextInput = isTextInput || (e === null || e === undefined ? undefined : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === undefined ? undefined : (_e_target = e.target) === null || _e_target === undefined ? undefined : _e_target.type) || (e === null || e === undefined ? undefined : e.target) instanceof IHTMLTextAreaElement || (e === null || e === undefined ? undefined : e.target) instanceof IHTMLElement && (e === null || e === undefined ? undefined : e.target.isContentEditable);
3783
+ const IHTMLInputElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
3784
+ const IHTMLTextAreaElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
3785
+ const IHTMLElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
3786
+ const IKeyboardEvent = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
3787
+ isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
3788
3788
  return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
3789
3789
  }
3790
3790
  function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
3791
3791
  $507fabe10e71c6fb$var$setupGlobalFocusEvents();
3792
3792
  (useEffect)(()=>{
3793
3793
  let handler = (modality, e)=>{
3794
- if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === undefined ? undefined : opts.isTextInput), modality, e)) return;
3794
+ if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
3795
3795
  fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
3796
3796
  };
3797
3797
  $507fabe10e71c6fb$var$changeHandlers.add(handler);
@@ -4329,7 +4329,7 @@ function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
4329
4329
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
4330
4330
  var _startRef_current;
4331
4331
  // Find all rendered nodes between the sentinels and add them to the scope.
4332
- let node = (_startRef_current = startRef.current) === null || _startRef_current === undefined ? undefined : _startRef_current.nextSibling;
4332
+ let node = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling;
4333
4333
  let nodes = [];
4334
4334
  let stopPropagation = (e)=>e.stopPropagation();
4335
4335
  while(node && node !== endRef.current){
@@ -4370,7 +4370,7 @@ function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
4370
4370
  var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode;
4371
4371
  var _focusScopeTree_getTreeNode_parent_scopeRef;
4372
4372
  // Scope may have been re-parented.
4373
- let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === undefined ? undefined : (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === undefined ? undefined : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== undefined ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
4373
+ let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === void 0 ? void 0 : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== void 0 ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
4374
4374
  if ((scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope))) $9bf71ea28793e738$var$activeScope = parentScope;
4375
4375
  $9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);
4376
4376
  };
@@ -4551,20 +4551,20 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
4551
4551
  if (ownerDocument.body.contains(e.target)) {
4552
4552
  var _focusedNode_current;
4553
4553
  focusedNode.current = e.target;
4554
- (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === undefined ? undefined : _focusedNode_current.focus();
4554
+ (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 ? void 0 : _focusedNode_current.focus();
4555
4555
  } else if ($9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
4556
4556
  }
4557
4557
  });
4558
4558
  };
4559
4559
  ownerDocument.addEventListener('keydown', onKeyDown, false);
4560
4560
  ownerDocument.addEventListener('focusin', onFocus, false);
4561
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4562
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusout', onBlur, false));
4561
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4562
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusout', onBlur, false));
4563
4563
  return ()=>{
4564
4564
  ownerDocument.removeEventListener('keydown', onKeyDown, false);
4565
4565
  ownerDocument.removeEventListener('focusin', onFocus, false);
4566
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4567
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusout', onBlur, false));
4566
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4567
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusout', onBlur, false));
4568
4568
  };
4569
4569
  }, [
4570
4570
  scopeRef,
@@ -4602,7 +4602,7 @@ function $9bf71ea28793e738$export$1258395f99bf9cbf(element) {
4602
4602
  }
4603
4603
  function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope) {
4604
4604
  var _focusScopeTree_getTreeNode;
4605
- let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === undefined ? undefined : _focusScopeTree_getTreeNode.parent;
4605
+ let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;
4606
4606
  while(parent){
4607
4607
  if (parent.scopeRef === ancestor) return true;
4608
4608
  parent = parent.parent;
@@ -4669,10 +4669,10 @@ function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain)
4669
4669
  else if (!$9bf71ea28793e738$var$isElementInAnyScope(target)) $9bf71ea28793e738$var$activeScope = null;
4670
4670
  };
4671
4671
  ownerDocument.addEventListener('focusin', onFocus, false);
4672
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4672
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4673
4673
  return ()=>{
4674
4674
  ownerDocument.removeEventListener('focusin', onFocus, false);
4675
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4675
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4676
4676
  };
4677
4677
  }, [
4678
4678
  scopeRef,
@@ -4686,7 +4686,7 @@ function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
4686
4686
  if (scope.nodeToRestore) return false;
4687
4687
  scope = scope.parent;
4688
4688
  }
4689
- return (scope === null || scope === undefined ? undefined : scope.scopeRef) === scopeRef;
4689
+ return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
4690
4690
  }
4691
4691
  function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
4692
4692
  // create a ref during render instead of useLayoutEffect so the active element is saved before a child with autoFocus=true mounts.
@@ -4704,10 +4704,10 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
4704
4704
  if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(ownerDocument.activeElement, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
4705
4705
  };
4706
4706
  ownerDocument.addEventListener('focusin', onFocus, false);
4707
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4707
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4708
4708
  return ()=>{
4709
4709
  ownerDocument.removeEventListener('focusin', onFocus, false);
4710
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4710
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4711
4711
  };
4712
4712
  // eslint-disable-next-line react-hooks/exhaustive-deps
4713
4713
  }, [
@@ -4772,7 +4772,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
4772
4772
  let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
4773
4773
  if (!treeNode) return;
4774
4774
  var _nodeToRestoreRef_current;
4775
- treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== undefined ? _nodeToRestoreRef_current : undefined;
4775
+ treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : undefined;
4776
4776
  return ()=>{
4777
4777
  let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
4778
4778
  if (!treeNode) return;
@@ -4823,17 +4823,17 @@ function $9bf71ea28793e738$var$restoreFocusToElement(node) {
4823
4823
  }))) $9bf71ea28793e738$var$focusElement(node);
4824
4824
  }
4825
4825
  function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
4826
- let selector = (opts === null || opts === undefined ? undefined : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;
4826
+ let selector = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;
4827
4827
  let walker = ($431fbd86ca7dc216$export$b204af158042fbac)(root).createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
4828
4828
  acceptNode (node) {
4829
4829
  var _opts_from;
4830
4830
  // Skip nodes inside the starting node.
4831
- if (opts === null || opts === undefined ? undefined : (_opts_from = opts.from) === null || _opts_from === undefined ? undefined : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
4832
- if (node.matches(selector) && ($645f2e67b85a24c9$export$e989c0fffaa6b27a)(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === undefined ? undefined : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
4831
+ if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
4832
+ if (node.matches(selector) && ($645f2e67b85a24c9$export$e989c0fffaa6b27a)(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
4833
4833
  return NodeFilter.FILTER_SKIP;
4834
4834
  }
4835
4835
  });
4836
- if (opts === null || opts === undefined ? undefined : opts.from) walker.currentNode = opts.from;
4836
+ if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;
4837
4837
  return walker;
4838
4838
  }
4839
4839
  class $9bf71ea28793e738$var$Tree {
@@ -4844,7 +4844,7 @@ class $9bf71ea28793e738$var$Tree {
4844
4844
  return this.fastMap.get(data);
4845
4845
  }
4846
4846
  addTreeNode(scopeRef, parent, nodeToRestore) {
4847
- let parentNode = this.fastMap.get(parent !== null && parent !== undefined ? parent : null);
4847
+ let parentNode = this.fastMap.get(parent !== null && parent !== void 0 ? parent : null);
4848
4848
  if (!parentNode) return;
4849
4849
  let node = new $9bf71ea28793e738$var$TreeNode({
4850
4850
  scopeRef: scopeRef
@@ -4882,7 +4882,7 @@ class $9bf71ea28793e738$var$Tree {
4882
4882
  var _node_parent;
4883
4883
  let newTree = new $9bf71ea28793e738$var$Tree();
4884
4884
  var _node_parent_scopeRef;
4885
- for (let node of this.traverse())newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === undefined ? undefined : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== undefined ? _node_parent_scopeRef : null, node.nodeToRestore);
4885
+ for (let node of this.traverse())newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node.nodeToRestore);
4886
4886
  return newTree;
4887
4887
  }
4888
4888
  constructor(){
@@ -5018,10 +5018,10 @@ function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
5018
5018
 
5019
5019
 
5020
5020
  function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
5021
- let isDisabled = options === null || options === undefined ? undefined : options.isDisabled;
5021
+ let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;
5022
5022
  let [hasTabbableChild, setHasTabbableChild] = (useState)(false);
5023
5023
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
5024
- if ((ref === null || ref === undefined ? undefined : ref.current) && !isDisabled) {
5024
+ if ((ref === null || ref === void 0 ? void 0 : ref.current) && !isDisabled) {
5025
5025
  let update = ()=>{
5026
5026
  if (ref.current) {
5027
5027
  let walker = ($9bf71ea28793e738$export$2d6ec8fc375ceafa)(ref.current, {
@@ -5098,7 +5098,7 @@ function $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {
5098
5098
  'aria-current': props['aria-current'],
5099
5099
  onClick: (e)=>{
5100
5100
  var _pressProps_onClick;
5101
- (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === undefined ? undefined : _pressProps_onClick.call(pressProps, e);
5101
+ (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);
5102
5102
  if (deprecatedOnClick) {
5103
5103
  deprecatedOnClick(e);
5104
5104
  console.warn('onClick is deprecated, please use onPress');
@@ -5290,7 +5290,7 @@ class $5b160d28a433310d$export$c17fa47878dc55b6 {
5290
5290
  [locale]: globalStrings[pkg]
5291
5291
  }, locale);
5292
5292
  }
5293
- let dictionary = $5b160d28a433310d$var$cachedGlobalStrings === null || $5b160d28a433310d$var$cachedGlobalStrings === undefined ? undefined : $5b160d28a433310d$var$cachedGlobalStrings[packageName];
5293
+ let dictionary = $5b160d28a433310d$var$cachedGlobalStrings === null || $5b160d28a433310d$var$cachedGlobalStrings === void 0 ? void 0 : $5b160d28a433310d$var$cachedGlobalStrings[packageName];
5294
5294
  if (!dictionary) throw new Error(`Strings for package "${packageName}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
5295
5295
  return dictionary;
5296
5296
  }
@@ -5516,7 +5516,7 @@ function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'ass
5516
5516
  // if we're in a test environment, announce without waiting
5517
5517
  // @ts-ignore
5518
5518
  if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{
5519
- if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === undefined ? undefined : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === undefined ? undefined : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
5519
+ if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
5520
5520
  }, 100);
5521
5521
  else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
5522
5522
  } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
@@ -5530,7 +5530,7 @@ function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'ass
5530
5530
  class $319e236875307eab$var$LiveAnnouncer {
5531
5531
  isAttached() {
5532
5532
  var _this_node;
5533
- return (_this_node = this.node) === null || _this_node === undefined ? undefined : _this_node.isConnected;
5533
+ return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;
5534
5534
  }
5535
5535
  createLog(ariaLive) {
5536
5536
  let node = document.createElement('div');
@@ -5553,8 +5553,8 @@ class $319e236875307eab$var$LiveAnnouncer {
5553
5553
  node.setAttribute('role', 'img');
5554
5554
  node.setAttribute('aria-labelledby', message['aria-labelledby']);
5555
5555
  } else node.textContent = message;
5556
- if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === undefined ? undefined : _this_assertiveLog.appendChild(node);
5557
- else (_this_politeLog = this.politeLog) === null || _this_politeLog === undefined ? undefined : _this_politeLog.appendChild(node);
5556
+ if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);
5557
+ else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);
5558
5558
  if (message !== '') setTimeout(()=>{
5559
5559
  node.remove();
5560
5560
  }, timeout);
@@ -5663,7 +5663,7 @@ function $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {
5663
5663
  validate,
5664
5664
  value
5665
5665
  ]);
5666
- if (builtinValidation === null || builtinValidation === undefined ? undefined : builtinValidation.validationDetails.valid) builtinValidation = undefined;
5666
+ if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = undefined;
5667
5667
  // Get relevant server errors from the form.
5668
5668
  let serverErrors = (useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);
5669
5669
  let serverErrorMessages = (useMemo)(()=>{
@@ -5797,7 +5797,7 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
5797
5797
  let { validationBehavior: validationBehavior, focus: focus } = props;
5798
5798
  // This is a useLayoutEffect so that it runs before the useEffect in useFormValidationState, which commits the validation change.
5799
5799
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
5800
- if (validationBehavior === 'native' && (ref === null || ref === undefined ? undefined : ref.current)) {
5800
+ if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current)) {
5801
5801
  let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(' ') || 'Invalid value.' : '';
5802
5802
  ref.current.setCustomValidity(errorMessage);
5803
5803
  // Prevent default tooltip for validation message.
@@ -5815,11 +5815,11 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
5815
5815
  // This avoids clearing server errors that the user didn't actually fix.
5816
5816
  if (!state.displayValidation.isInvalid) state.commitValidation();
5817
5817
  // Auto focus the first invalid input in a form, unless the error already had its default prevented.
5818
- let form = ref === null || ref === undefined ? undefined : (_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.form;
5818
+ let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;
5819
5819
  if (!e.defaultPrevented && ref && form && $e93e671b31057976$var$getFirstInvalidInput(form) === ref.current) {
5820
5820
  var _ref_current1;
5821
5821
  if (focus) focus();
5822
- else (_ref_current1 = ref.current) === null || _ref_current1 === undefined ? undefined : _ref_current1.focus();
5822
+ else (_ref_current1 = ref.current) === null || _ref_current1 === void 0 ? void 0 : _ref_current1.focus();
5823
5823
  // Always show focus ring.
5824
5824
  ($507fabe10e71c6fb$export$8397ddfc504fdb9a)('keyboard');
5825
5825
  }
@@ -5830,16 +5830,16 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
5830
5830
  state.commitValidation();
5831
5831
  });
5832
5832
  (useEffect)(()=>{
5833
- let input = ref === null || ref === undefined ? undefined : ref.current;
5833
+ let input = ref === null || ref === void 0 ? void 0 : ref.current;
5834
5834
  if (!input) return;
5835
5835
  let form = input.form;
5836
5836
  input.addEventListener('invalid', onInvalid);
5837
5837
  input.addEventListener('change', onChange);
5838
- form === null || form === undefined ? undefined : form.addEventListener('reset', onReset);
5838
+ form === null || form === void 0 ? void 0 : form.addEventListener('reset', onReset);
5839
5839
  return ()=>{
5840
5840
  input.removeEventListener('invalid', onInvalid);
5841
5841
  input.removeEventListener('change', onChange);
5842
- form === null || form === undefined ? undefined : form.removeEventListener('reset', onReset);
5842
+ form === null || form === void 0 ? void 0 : form.removeEventListener('reset', onReset);
5843
5843
  };
5844
5844
  }, [
5845
5845
  ref,
@@ -6217,7 +6217,7 @@ function $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {
6217
6217
  });
6218
6218
  let { name: name, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = ($1ae600c947479353$export$ec98120685d4f57d).get(state);
6219
6219
  var _props_validationBehavior;
6220
- validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : validationBehavior;
6220
+ validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : validationBehavior;
6221
6221
  // Local validation for this checkbox.
6222
6222
  let { realtimeValidation: realtimeValidation } = ($e5be200c675c3b3a$export$fc1a364ae1f3ff10)({
6223
6223
  ...props,
@@ -6241,7 +6241,7 @@ function $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {
6241
6241
  isReadOnly: props.isReadOnly || state.isReadOnly,
6242
6242
  isDisabled: props.isDisabled || state.isDisabled,
6243
6243
  name: props.name || name,
6244
- isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== undefined ? _props_isRequired : state.isRequired,
6244
+ isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== void 0 ? _props_isRequired : state.isRequired,
6245
6245
  validationBehavior: validationBehavior,
6246
6246
  [($e5be200c675c3b3a$export$a763b9476acd3eb)]: {
6247
6247
  realtimeValidation: combinedRealtimeValidation,
@@ -6470,15 +6470,15 @@ function $edcf132a9284368a$var$getContainerDimensions(containerNode) {
6470
6470
  let width = 0, height = 0, totalWidth = 0, totalHeight = 0, top = 0, left = 0;
6471
6471
  let scroll = {};
6472
6472
  var _visualViewport_scale;
6473
- let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.scale) !== null && _visualViewport_scale !== undefined ? _visualViewport_scale : 1) > 1;
6473
+ let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.scale) !== null && _visualViewport_scale !== void 0 ? _visualViewport_scale : 1) > 1;
6474
6474
  if (containerNode.tagName === 'BODY') {
6475
6475
  let documentElement = document.documentElement;
6476
6476
  totalWidth = documentElement.clientWidth;
6477
6477
  totalHeight = documentElement.clientHeight;
6478
6478
  var _visualViewport_width;
6479
- width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.width) !== null && _visualViewport_width !== undefined ? _visualViewport_width : totalWidth;
6479
+ width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.width) !== null && _visualViewport_width !== void 0 ? _visualViewport_width : totalWidth;
6480
6480
  var _visualViewport_height;
6481
- height = (_visualViewport_height = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.height) !== null && _visualViewport_height !== undefined ? _visualViewport_height : totalHeight;
6481
+ height = (_visualViewport_height = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.height) !== null && _visualViewport_height !== void 0 ? _visualViewport_height : totalHeight;
6482
6482
  scroll.top = documentElement.scrollTop || containerNode.scrollTop;
6483
6483
  scroll.left = documentElement.scrollLeft || containerNode.scrollLeft;
6484
6484
  // The goal of the below is to get a top/left value that represents the top/left of the visual viewport with
@@ -6503,9 +6503,9 @@ function $edcf132a9284368a$var$getContainerDimensions(containerNode) {
6503
6503
  scroll.top = 0;
6504
6504
  scroll.left = 0;
6505
6505
  var _visualViewport_pageTop;
6506
- top = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.pageTop) !== null && _visualViewport_pageTop !== undefined ? _visualViewport_pageTop : 0;
6506
+ top = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.pageTop) !== null && _visualViewport_pageTop !== void 0 ? _visualViewport_pageTop : 0;
6507
6507
  var _visualViewport_pageLeft;
6508
- left = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.pageLeft) !== null && _visualViewport_pageLeft !== undefined ? _visualViewport_pageLeft : 0;
6508
+ left = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.pageLeft) !== null && _visualViewport_pageLeft !== void 0 ? _visualViewport_pageLeft : 0;
6509
6509
  }
6510
6510
  return {
6511
6511
  width: width,
@@ -6535,7 +6535,7 @@ boundaryDimensions, // The dimensions of the containing block element that the p
6535
6535
  // position: relative/absolute, it will be different.
6536
6536
  containerDimensions, padding, containerOffsetWithBoundary) {
6537
6537
  var _containerDimensions_scroll_axis;
6538
- let containerScroll = (_containerDimensions_scroll_axis = containerDimensions.scroll[axis]) !== null && _containerDimensions_scroll_axis !== undefined ? _containerDimensions_scroll_axis : 0;
6538
+ let containerScroll = (_containerDimensions_scroll_axis = containerDimensions.scroll[axis]) !== null && _containerDimensions_scroll_axis !== void 0 ? _containerDimensions_scroll_axis : 0;
6539
6539
  // The height/width of the boundary. Matches the axis along which we are adjusting the overlay position
6540
6540
  let boundarySize = boundaryDimensions[$edcf132a9284368a$var$AXIS_SIZE[axis]];
6541
6541
  // Calculate the edges of the boundary (accomodating for the boundary padding) and the edges of the overlay.
@@ -6582,14 +6582,14 @@ function $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions,
6582
6582
  let position = {};
6583
6583
  var _childOffset_crossAxis;
6584
6584
  // button position
6585
- position[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== undefined ? _childOffset_crossAxis : 0;
6585
+ position[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== void 0 ? _childOffset_crossAxis : 0;
6586
6586
  var _childOffset_crossSize, _overlaySize_crossSize, _childOffset_crossSize1, _overlaySize_crossSize1;
6587
6587
  if (crossPlacement === 'center') // + (button size / 2) - (overlay size / 2)
6588
6588
  // at this point the overlay center should match the button center
6589
- position[crossAxis] += (((_childOffset_crossSize = childOffset[crossSize]) !== null && _childOffset_crossSize !== undefined ? _childOffset_crossSize : 0) - ((_overlaySize_crossSize = overlaySize[crossSize]) !== null && _overlaySize_crossSize !== undefined ? _overlaySize_crossSize : 0)) / 2;
6589
+ position[crossAxis] += (((_childOffset_crossSize = childOffset[crossSize]) !== null && _childOffset_crossSize !== void 0 ? _childOffset_crossSize : 0) - ((_overlaySize_crossSize = overlaySize[crossSize]) !== null && _overlaySize_crossSize !== void 0 ? _overlaySize_crossSize : 0)) / 2;
6590
6590
  else if (crossPlacement !== crossAxis) // + (button size) - (overlay size)
6591
6591
  // at this point the overlay bottom should match the button bottom
6592
- position[crossAxis] += ((_childOffset_crossSize1 = childOffset[crossSize]) !== null && _childOffset_crossSize1 !== undefined ? _childOffset_crossSize1 : 0) - ((_overlaySize_crossSize1 = overlaySize[crossSize]) !== null && _overlaySize_crossSize1 !== undefined ? _overlaySize_crossSize1 : 0);
6592
+ position[crossAxis] += ((_childOffset_crossSize1 = childOffset[crossSize]) !== null && _childOffset_crossSize1 !== void 0 ? _childOffset_crossSize1 : 0) - ((_overlaySize_crossSize1 = overlaySize[crossSize]) !== null && _overlaySize_crossSize1 !== void 0 ? _overlaySize_crossSize1 : 0);
6593
6593
  /* else {
6594
6594
  the overlay top should match the button top
6595
6595
  } */
@@ -6615,23 +6615,23 @@ function $edcf132a9284368a$var$getMaxHeight(position, boundaryDimensions, contai
6615
6615
  var _position_bottom;
6616
6616
  // For cases where position is set via "bottom" instead of "top", we need to calculate the true overlay top with respect to the boundary. Reverse calculate this with the same method
6617
6617
  // used in computePosition.
6618
- let overlayTop = position.top != null ? containerOffsetWithBoundary.top + position.top : containerOffsetWithBoundary.top + (containerHeight - ((_position_bottom = position.bottom) !== null && _position_bottom !== undefined ? _position_bottom : 0) - overlayHeight);
6618
+ let overlayTop = position.top != null ? containerOffsetWithBoundary.top + position.top : containerOffsetWithBoundary.top + (containerHeight - ((_position_bottom = position.bottom) !== null && _position_bottom !== void 0 ? _position_bottom : 0) - overlayHeight);
6619
6619
  var _boundaryDimensions_scroll_top, _margins_top, _margins_bottom, _boundaryDimensions_scroll_top1, _margins_top1, _margins_bottom1;
6620
6620
  let maxHeight = heightGrowthDirection !== 'top' ? // We want the distance between the top of the overlay to the bottom of the boundary
6621
- Math.max(0, boundaryDimensions.height + boundaryDimensions.top + ((_boundaryDimensions_scroll_top = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top !== undefined ? _boundaryDimensions_scroll_top : 0) - overlayTop // this is the top of the overlay
6622
- - (((_margins_top = margins.top) !== null && _margins_top !== undefined ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== undefined ? _margins_bottom : 0) + padding // save additional space for margin and padding
6621
+ Math.max(0, boundaryDimensions.height + boundaryDimensions.top + ((_boundaryDimensions_scroll_top = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top !== void 0 ? _boundaryDimensions_scroll_top : 0) - overlayTop // this is the top of the overlay
6622
+ - (((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0) + padding // save additional space for margin and padding
6623
6623
  )) : Math.max(0, overlayTop + overlayHeight // this is the bottom of the overlay
6624
- - (boundaryDimensions.top + ((_boundaryDimensions_scroll_top1 = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top1 !== undefined ? _boundaryDimensions_scroll_top1 : 0) // this is the top of the boundary
6625
- ) - (((_margins_top1 = margins.top) !== null && _margins_top1 !== undefined ? _margins_top1 : 0) + ((_margins_bottom1 = margins.bottom) !== null && _margins_bottom1 !== undefined ? _margins_bottom1 : 0) + padding // save additional space for margin and padding
6624
+ - (boundaryDimensions.top + ((_boundaryDimensions_scroll_top1 = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top1 !== void 0 ? _boundaryDimensions_scroll_top1 : 0) // this is the top of the boundary
6625
+ ) - (((_margins_top1 = margins.top) !== null && _margins_top1 !== void 0 ? _margins_top1 : 0) + ((_margins_bottom1 = margins.bottom) !== null && _margins_bottom1 !== void 0 ? _margins_bottom1 : 0) + padding // save additional space for margin and padding
6626
6626
  ));
6627
6627
  return Math.min(boundaryDimensions.height - padding * 2, maxHeight);
6628
6628
  }
6629
6629
  function $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding, placementInfo) {
6630
6630
  let { placement: placement, axis: axis, size: size } = placementInfo;
6631
6631
  var _boundaryDimensions_scroll_axis, _margins_axis;
6632
- if (placement === axis) return Math.max(0, childOffset[axis] - boundaryDimensions[axis] - ((_boundaryDimensions_scroll_axis = boundaryDimensions.scroll[axis]) !== null && _boundaryDimensions_scroll_axis !== undefined ? _boundaryDimensions_scroll_axis : 0) + containerOffsetWithBoundary[axis] - ((_margins_axis = margins[axis]) !== null && _margins_axis !== undefined ? _margins_axis : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6632
+ if (placement === axis) return Math.max(0, childOffset[axis] - boundaryDimensions[axis] - ((_boundaryDimensions_scroll_axis = boundaryDimensions.scroll[axis]) !== null && _boundaryDimensions_scroll_axis !== void 0 ? _boundaryDimensions_scroll_axis : 0) + containerOffsetWithBoundary[axis] - ((_margins_axis = margins[axis]) !== null && _margins_axis !== void 0 ? _margins_axis : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6633
6633
  var _margins_axis1;
6634
- return Math.max(0, boundaryDimensions[size] + boundaryDimensions[axis] + boundaryDimensions.scroll[axis] - containerOffsetWithBoundary[axis] - childOffset[axis] - childOffset[size] - ((_margins_axis1 = margins[axis]) !== null && _margins_axis1 !== undefined ? _margins_axis1 : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6634
+ return Math.max(0, boundaryDimensions[size] + boundaryDimensions[axis] + boundaryDimensions.scroll[axis] - containerOffsetWithBoundary[axis] - childOffset[axis] - childOffset[size] - ((_margins_axis1 = margins[axis]) !== null && _margins_axis1 !== void 0 ? _margins_axis1 : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6635
6635
  }
6636
6636
  function $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset, overlaySize, scrollSize, margins, padding, flip, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset, crossOffset, isContainerPositioned, userSetMaxHeight, arrowSize, arrowBoundaryOffset) {
6637
6637
  let placementInfo = $edcf132a9284368a$var$parsePlacement(placementInput);
@@ -6679,7 +6679,7 @@ function $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset,
6679
6679
  const arrowMinPosition = arrowSize / 2 + arrowBoundaryOffset;
6680
6680
  var _margins_left, _margins_right, _margins_top, _margins_bottom;
6681
6681
  // overlaySize[crossSize] - margins = true size of the overlay
6682
- const overlayMargin = $edcf132a9284368a$var$AXIS[crossAxis] === 'left' ? ((_margins_left = margins.left) !== null && _margins_left !== undefined ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== undefined ? _margins_right : 0) : ((_margins_top = margins.top) !== null && _margins_top !== undefined ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== undefined ? _margins_bottom : 0);
6682
+ const overlayMargin = $edcf132a9284368a$var$AXIS[crossAxis] === 'left' ? ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0) : ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);
6683
6683
  const arrowMaxPosition = overlaySize[crossSize] - overlayMargin - arrowSize / 2 - arrowBoundaryOffset;
6684
6684
  // Min/Max position limits for the arrow with respect to the trigger/overlay anchor element
6685
6685
  // Same margin accomodation done here as well as for the preferredArrowPosition
@@ -6711,9 +6711,9 @@ function $edcf132a9284368a$export$b3ceb0cbf1056d98(opts) {
6711
6711
  let overlaySize = $edcf132a9284368a$var$getOffset(overlayNode);
6712
6712
  let margins = $edcf132a9284368a$var$getMargins(overlayNode);
6713
6713
  var _margins_left, _margins_right;
6714
- overlaySize.width += ((_margins_left = margins.left) !== null && _margins_left !== undefined ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== undefined ? _margins_right : 0);
6714
+ overlaySize.width += ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0);
6715
6715
  var _margins_top, _margins_bottom;
6716
- overlaySize.height += ((_margins_top = margins.top) !== null && _margins_top !== undefined ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== undefined ? _margins_bottom : 0);
6716
+ overlaySize.height += ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);
6717
6717
  let scrollSize = $edcf132a9284368a$var$getScroll(scrollNode);
6718
6718
  let boundaryDimensions = $edcf132a9284368a$var$getContainerDimensions(boundaryElement);
6719
6719
  let containerDimensions = $edcf132a9284368a$var$getContainerDimensions(container);
@@ -6868,15 +6868,15 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6868
6868
  // Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might
6869
6869
  // just be a non-realistic use case
6870
6870
  // Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles
6871
- let lastScale = (useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.scale);
6871
+ let lastScale = (useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale);
6872
6872
  (useEffect)(()=>{
6873
- if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.scale;
6873
+ if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale;
6874
6874
  }, [
6875
6875
  isOpen
6876
6876
  ]);
6877
6877
  let updatePosition = (useCallback)(()=>{
6878
6878
  if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;
6879
- if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;
6879
+ if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;
6880
6880
  // Determine a scroll anchor based on the focused element.
6881
6881
  // This stores the offset of the anchor element from the scroll container
6882
6882
  // so it can be restored after repositioning. This way if the overlay height
@@ -6884,19 +6884,19 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6884
6884
  let anchor = null;
6885
6885
  if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {
6886
6886
  var _document_activeElement;
6887
- let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === undefined ? undefined : _document_activeElement.getBoundingClientRect();
6887
+ let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();
6888
6888
  let scrollRect = scrollRef.current.getBoundingClientRect();
6889
6889
  var _anchorRect_top;
6890
6890
  // Anchor from the top if the offset is in the top half of the scrollable element,
6891
6891
  // otherwise anchor from the bottom.
6892
6892
  anchor = {
6893
6893
  type: 'top',
6894
- offset: ((_anchorRect_top = anchorRect === null || anchorRect === undefined ? undefined : anchorRect.top) !== null && _anchorRect_top !== undefined ? _anchorRect_top : 0) - scrollRect.top
6894
+ offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top
6895
6895
  };
6896
6896
  if (anchor.offset > scrollRect.height / 2) {
6897
6897
  anchor.type = 'bottom';
6898
6898
  var _anchorRect_bottom;
6899
- anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === undefined ? undefined : anchorRect.bottom) !== null && _anchorRect_bottom !== undefined ? _anchorRect_bottom : 0) - scrollRect.bottom;
6899
+ anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;
6900
6900
  }
6901
6901
  }
6902
6902
  // Always reset the overlay's previous max height if not defined by the user so that we can compensate for
@@ -6907,7 +6907,7 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6907
6907
  overlay.style.top = '0px';
6908
6908
  overlay.style.bottom = '';
6909
6909
  var _window_visualViewport_height;
6910
- overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === undefined ? undefined : _window_visualViewport.height) !== null && _window_visualViewport_height !== undefined ? _window_visualViewport_height : window.innerHeight) + 'px';
6910
+ overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';
6911
6911
  }
6912
6912
  let position = ($edcf132a9284368a$export$b3ceb0cbf1056d98)({
6913
6913
  placement: $2a41e45df1593e64$var$translateRTL(placement, direction),
@@ -6976,17 +6976,17 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6976
6976
  let onScroll = ()=>{
6977
6977
  if (isResizing.current) onResize();
6978
6978
  };
6979
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);
6980
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);
6979
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);
6980
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);
6981
6981
  return ()=>{
6982
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);
6983
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);
6982
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);
6983
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);
6984
6984
  };
6985
6985
  }, [
6986
6986
  updatePosition
6987
6987
  ]);
6988
6988
  let close = (useCallback)(()=>{
6989
- if (!isResizing.current) onClose === null || onClose === undefined ? undefined : onClose();
6989
+ if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();
6990
6990
  }, [
6991
6991
  onClose,
6992
6992
  isResizing
@@ -7004,17 +7004,17 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
7004
7004
  style: {
7005
7005
  position: 'absolute',
7006
7006
  zIndex: 100000,
7007
- ...position === null || position === undefined ? undefined : position.position,
7008
- maxHeight: (_position_maxHeight = position === null || position === undefined ? undefined : position.maxHeight) !== null && _position_maxHeight !== undefined ? _position_maxHeight : '100vh'
7007
+ ...position === null || position === void 0 ? void 0 : position.position,
7008
+ maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'
7009
7009
  }
7010
7010
  },
7011
- placement: (_position_placement = position === null || position === undefined ? undefined : position.placement) !== null && _position_placement !== undefined ? _position_placement : null,
7011
+ placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,
7012
7012
  arrowProps: {
7013
7013
  'aria-hidden': 'true',
7014
7014
  role: 'presentation',
7015
7015
  style: {
7016
- left: position === null || position === undefined ? undefined : position.arrowOffsetLeft,
7017
- top: position === null || position === undefined ? undefined : position.arrowOffsetTop
7016
+ left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,
7017
+ top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop
7018
7018
  }
7019
7019
  },
7020
7020
  updatePosition: updatePosition
@@ -7110,7 +7110,7 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
7110
7110
  // do not close the outer overlay. At this point, the active scope should
7111
7111
  // still be the outer overlay, since blur events run before focus.
7112
7112
  if (!e.relatedTarget || ($9bf71ea28793e738$export$1258395f99bf9cbf)(e.relatedTarget)) return;
7113
- if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) onClose === null || onClose === undefined ? undefined : onClose();
7113
+ if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) onClose === null || onClose === void 0 ? void 0 : onClose();
7114
7114
  }
7115
7115
  });
7116
7116
  let onPointerDownUnderlay = (e)=>{
@@ -7348,8 +7348,8 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
7348
7348
  }), $49c51c25361d4cd2$var$addEvent(document, 'focus', onFocus, true));
7349
7349
  return ()=>{
7350
7350
  // Restore styles and scroll the page back to where it was.
7351
- restoreScrollableStyles === null || restoreScrollableStyles === undefined ? undefined : restoreScrollableStyles();
7352
- restoreStyles === null || restoreStyles === undefined ? undefined : restoreStyles();
7351
+ restoreScrollableStyles === null || restoreScrollableStyles === void 0 ? void 0 : restoreScrollableStyles();
7352
+ restoreStyles === null || restoreStyles === void 0 ? void 0 : restoreStyles();
7353
7353
  removeEvents();
7354
7354
  };
7355
7355
  }
@@ -7451,7 +7451,7 @@ function $f57aed4a881a3485$export$b47c3594eab58386(props) {
7451
7451
  let isSSR = ($b5e257d569688ac6$export$535bd6ca7f90a273)();
7452
7452
  let { portalContainer: portalContainer = isSSR ? null : document.body, ...rest } = props;
7453
7453
  ($dbSRa$react).useEffect(()=>{
7454
- if (portalContainer === null || portalContainer === undefined ? undefined : portalContainer.closest('[data-overlay-container]')) throw new Error('An OverlayContainer must not be inside another container. Please change the portalContainer prop.');
7454
+ if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest('[data-overlay-container]')) throw new Error('An OverlayContainer must not be inside another container. Please change the portalContainer prop.');
7455
7455
  }, [
7456
7456
  portalContainer
7457
7457
  ]);
@@ -7786,7 +7786,7 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body
7786
7786
  };
7787
7787
  let hide = (node)=>{
7788
7788
  var _refCountMap_get;
7789
- let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== undefined ? _refCountMap_get : 0;
7789
+ let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;
7790
7790
  // If already aria-hidden, and the ref count is zero, then this element
7791
7791
  // was already hidden and there's nothing for us to do.
7792
7792
  if (node.getAttribute('aria-hidden') === 'true' && refCount === 0) return;
@@ -7919,7 +7919,7 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
7919
7919
  const $96b38030c423d352$export$60d741e20e0aa309 = /*#__PURE__*/ (createContext)({});
7920
7920
  function $96b38030c423d352$export$574e9b0fb070c3b0() {
7921
7921
  var _useContext;
7922
- return (_useContext = (useContext)($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== undefined ? _useContext : {};
7922
+ return (_useContext = (useContext)($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== void 0 ? _useContext : {};
7923
7923
  }
7924
7924
 
7925
7925
  /*
@@ -7966,9 +7966,9 @@ function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
7966
7966
  }
7967
7967
  function $337b884510726a0d$export$14c98a7594375490() {
7968
7968
  let ctx = (useContext)($337b884510726a0d$export$a2200b96afd16271);
7969
- let setContain = ctx === null || ctx === undefined ? undefined : ctx.setContain;
7969
+ let setContain = ctx === null || ctx === void 0 ? void 0 : ctx.setContain;
7970
7970
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
7971
- setContain === null || setContain === undefined ? undefined : setContain(true);
7971
+ setContain === null || setContain === void 0 ? void 0 : setContain(true);
7972
7972
  }, [
7973
7973
  setContain
7974
7974
  ]);
@@ -8150,7 +8150,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8150
8150
  if (e.altKey && e.key === 'Tab') e.preventDefault();
8151
8151
  // Keyboard events bubble through portals. Don't handle keyboard events
8152
8152
  // for elements outside the collection (e.g. menus).
8153
- if (!((_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.contains(e.target))) return;
8153
+ if (!((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(e.target))) return;
8154
8154
  const navigateToKey = (key, childFocus)=>{
8155
8155
  if (key != null) {
8156
8156
  if (manager.isLink(key) && linkBehavior === 'selection' && selectOnFocus && !($feb5ffebff200149$export$d3e3bd3e26688c04)(e)) {
@@ -8159,7 +8159,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8159
8159
  (flushSync)(()=>{
8160
8160
  manager.setFocusedKey(key, childFocus);
8161
8161
  });
8162
- let item = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === undefined ? undefined : _scrollRef_current.querySelector(`[data-key="${CSS.escape(key.toString())}"]`);
8162
+ let item = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.querySelector(`[data-key="${CSS.escape(key.toString())}"]`);
8163
8163
  let itemProps = manager.getItemProps(key);
8164
8164
  if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
8165
8165
  return;
@@ -8174,8 +8174,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8174
8174
  case 'ArrowDown':
8175
8175
  if (delegate.getKeyBelow) {
8176
8176
  var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
8177
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === undefined ? undefined : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate);
8178
- if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === undefined ? undefined : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
8177
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
8178
+ if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
8179
8179
  if (nextKey != null) {
8180
8180
  e.preventDefault();
8181
8181
  navigateToKey(nextKey);
@@ -8185,8 +8185,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8185
8185
  case 'ArrowUp':
8186
8186
  if (delegate.getKeyAbove) {
8187
8187
  var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
8188
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === undefined ? undefined : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === undefined ? undefined : _delegate_getLastKey.call(delegate);
8189
- if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === undefined ? undefined : _delegate_getLastKey1.call(delegate, manager.focusedKey);
8188
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
8189
+ if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);
8190
8190
  if (nextKey != null) {
8191
8191
  e.preventDefault();
8192
8192
  navigateToKey(nextKey);
@@ -8196,8 +8196,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8196
8196
  case 'ArrowLeft':
8197
8197
  if (delegate.getKeyLeftOf) {
8198
8198
  var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
8199
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === undefined ? undefined : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
8200
- if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === undefined ? undefined : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === undefined ? undefined : _delegate_getLastKey2.call(delegate, manager.focusedKey);
8199
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
8200
+ if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
8201
8201
  if (nextKey != null) {
8202
8202
  e.preventDefault();
8203
8203
  navigateToKey(nextKey, direction === 'rtl' ? 'first' : 'last');
@@ -8207,8 +8207,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8207
8207
  case 'ArrowRight':
8208
8208
  if (delegate.getKeyRightOf) {
8209
8209
  var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
8210
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === undefined ? undefined : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
8211
- if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === undefined ? undefined : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === undefined ? undefined : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
8210
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
8211
+ if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
8212
8212
  if (nextKey != null) {
8213
8213
  e.preventDefault();
8214
8214
  navigateToKey(nextKey, direction === 'rtl' ? 'last' : 'first');
@@ -8303,8 +8303,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8303
8303
  var _scrollRef_current, _scrollRef_current1;
8304
8304
  var _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;
8305
8305
  scrollPos.current = {
8306
- top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === undefined ? undefined : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== undefined ? _scrollRef_current_scrollTop : 0,
8307
- left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === undefined ? undefined : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== undefined ? _scrollRef_current_scrollLeft : 0
8306
+ top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,
8307
+ left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0
8308
8308
  };
8309
8309
  });
8310
8310
  let onFocus = (e)=>{
@@ -8329,8 +8329,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8329
8329
  // and either focus the first or last item accordingly.
8330
8330
  let relatedTarget = e.relatedTarget;
8331
8331
  var _manager_lastSelectedKey, _manager_firstSelectedKey;
8332
- if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToFirstKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== undefined ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === undefined ? undefined : _delegate_getLastKey.call(delegate));
8333
- else navigateToFirstKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== undefined ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate));
8332
+ if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToFirstKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
8333
+ else navigateToFirstKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
8334
8334
  } else if (!isVirtualized && scrollRef.current) {
8335
8335
  // Restore the scroll position to what it was before.
8336
8336
  scrollRef.current.scrollTop = scrollPos.current.top;
@@ -8360,9 +8360,9 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8360
8360
  let focusedKey = null;
8361
8361
  var _delegate_getFirstKey1;
8362
8362
  // Check focus strategy to determine which item to focus
8363
- if (autoFocus === 'first') focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== undefined ? _delegate_getFirstKey1 : null;
8363
+ if (autoFocus === 'first') focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
8364
8364
  var _delegate_getLastKey1;
8365
- if (autoFocus === 'last') focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === undefined ? undefined : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== undefined ? _delegate_getLastKey1 : null;
8365
+ if (autoFocus === 'last') focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null;
8366
8366
  // If there are any selected keys, make the first one the new focus target
8367
8367
  let selectedKeys = manager.selectedKeys;
8368
8368
  if (selectedKeys.size) {
@@ -8626,11 +8626,11 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
8626
8626
  }
8627
8627
  function $880e95eb8b93ba9a$var$isActionKey() {
8628
8628
  let event = window.event;
8629
- return (event === null || event === undefined ? undefined : event.key) === 'Enter';
8629
+ return (event === null || event === void 0 ? void 0 : event.key) === 'Enter';
8630
8630
  }
8631
8631
  function $880e95eb8b93ba9a$var$isSelectionKey() {
8632
8632
  let event = window.event;
8633
- return (event === null || event === undefined ? undefined : event.key) === ' ' || (event === null || event === undefined ? undefined : event.code) === 'Space';
8633
+ return (event === null || event === void 0 ? void 0 : event.key) === ' ' || (event === null || event === void 0 ? void 0 : event.code) === 'Space';
8634
8634
  }
8635
8635
 
8636
8636
  /*
@@ -8662,18 +8662,18 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
8662
8662
  let container = this.ref.current;
8663
8663
  var _container_scrollWidth, _container_scrollHeight;
8664
8664
  return {
8665
- width: (_container_scrollWidth = container === null || container === undefined ? undefined : container.scrollWidth) !== null && _container_scrollWidth !== undefined ? _container_scrollWidth : 0,
8666
- height: (_container_scrollHeight = container === null || container === undefined ? undefined : container.scrollHeight) !== null && _container_scrollHeight !== undefined ? _container_scrollHeight : 0
8665
+ width: (_container_scrollWidth = container === null || container === void 0 ? void 0 : container.scrollWidth) !== null && _container_scrollWidth !== void 0 ? _container_scrollWidth : 0,
8666
+ height: (_container_scrollHeight = container === null || container === void 0 ? void 0 : container.scrollHeight) !== null && _container_scrollHeight !== void 0 ? _container_scrollHeight : 0
8667
8667
  };
8668
8668
  }
8669
8669
  getVisibleRect() {
8670
8670
  let container = this.ref.current;
8671
8671
  var _container_scrollLeft, _container_scrollTop, _container_offsetWidth, _container_offsetHeight;
8672
8672
  return {
8673
- x: (_container_scrollLeft = container === null || container === undefined ? undefined : container.scrollLeft) !== null && _container_scrollLeft !== undefined ? _container_scrollLeft : 0,
8674
- y: (_container_scrollTop = container === null || container === undefined ? undefined : container.scrollTop) !== null && _container_scrollTop !== undefined ? _container_scrollTop : 0,
8675
- width: (_container_offsetWidth = container === null || container === undefined ? undefined : container.offsetWidth) !== null && _container_offsetWidth !== undefined ? _container_offsetWidth : 0,
8676
- height: (_container_offsetHeight = container === null || container === undefined ? undefined : container.offsetHeight) !== null && _container_offsetHeight !== undefined ? _container_offsetHeight : 0
8673
+ x: (_container_scrollLeft = container === null || container === void 0 ? void 0 : container.scrollLeft) !== null && _container_scrollLeft !== void 0 ? _container_scrollLeft : 0,
8674
+ y: (_container_scrollTop = container === null || container === void 0 ? void 0 : container.scrollTop) !== null && _container_scrollTop !== void 0 ? _container_scrollTop : 0,
8675
+ width: (_container_offsetWidth = container === null || container === void 0 ? void 0 : container.offsetWidth) !== null && _container_offsetWidth !== void 0 ? _container_offsetWidth : 0,
8676
+ height: (_container_offsetHeight = container === null || container === void 0 ? void 0 : container.offsetHeight) !== null && _container_offsetHeight !== void 0 ? _container_offsetHeight : 0
8677
8677
  };
8678
8678
  }
8679
8679
  constructor(ref){
@@ -8696,13 +8696,13 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
8696
8696
  class $2a25aae57d74318e$export$a05409b8bb224a5a {
8697
8697
  isDisabled(item) {
8698
8698
  var _item_props;
8699
- return this.disabledBehavior === 'all' && (((_item_props = item.props) === null || _item_props === undefined ? undefined : _item_props.isDisabled) || this.disabledKeys.has(item.key));
8699
+ return this.disabledBehavior === 'all' && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));
8700
8700
  }
8701
8701
  findNextNonDisabled(key, getNext) {
8702
8702
  let nextKey = key;
8703
8703
  while(nextKey != null){
8704
8704
  let item = this.collection.getItem(nextKey);
8705
- if ((item === null || item === undefined ? undefined : item.type) === 'item' && !this.isDisabled(item)) return nextKey;
8705
+ if ((item === null || item === void 0 ? void 0 : item.type) === 'item' && !this.isDisabled(item)) return nextKey;
8706
8706
  nextKey = getNext(nextKey);
8707
8707
  }
8708
8708
  return null;
@@ -8800,7 +8800,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
8800
8800
  itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
8801
8801
  }
8802
8802
  }
8803
- return nextKey !== null && nextKey !== undefined ? nextKey : this.getFirstKey();
8803
+ return nextKey !== null && nextKey !== void 0 ? nextKey : this.getFirstKey();
8804
8804
  }
8805
8805
  getKeyPageBelow(key) {
8806
8806
  let menu = this.ref.current;
@@ -8821,7 +8821,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
8821
8821
  itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
8822
8822
  }
8823
8823
  }
8824
- return nextKey !== null && nextKey !== undefined ? nextKey : this.getLastKey();
8824
+ return nextKey !== null && nextKey !== void 0 ? nextKey : this.getLastKey();
8825
8825
  }
8826
8826
  getKeyForSearch(search, fromKey) {
8827
8827
  if (!this.collator) return null;
@@ -9043,7 +9043,7 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9043
9043
  let v = partialNode.value;
9044
9044
  if (v != null) {
9045
9045
  var _v_key;
9046
- let key = (_v_key = v.key) !== null && _v_key !== undefined ? _v_key : v.id;
9046
+ let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
9047
9047
  if (key == null) throw new Error('No key found for item');
9048
9048
  return key;
9049
9049
  }
@@ -9061,7 +9061,7 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9061
9061
  children.push(child);
9062
9062
  });
9063
9063
  var _partialNode_index;
9064
- let index = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== undefined ? _partialNode_index : 0;
9064
+ let index = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0;
9065
9065
  for (const child of children)yield* this.getFullNode({
9066
9066
  element: child,
9067
9067
  index: index++
@@ -9091,13 +9091,13 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9091
9091
  }
9092
9092
  let childNodes = type.getCollectionNode(element.props, this.context);
9093
9093
  var _partialNode_index1;
9094
- let index = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== undefined ? _partialNode_index1 : 0;
9094
+ let index = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0;
9095
9095
  let result = childNodes.next();
9096
9096
  while(!result.done && result.value){
9097
9097
  let childNode = result.value;
9098
9098
  partialNode.index = index;
9099
9099
  var _childNode_key;
9100
- let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== undefined ? _childNode_key : null;
9100
+ let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null;
9101
9101
  if (nodeKey == null) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
9102
9102
  let nodes = this.getFullNode({
9103
9103
  ...childNode,
@@ -9111,12 +9111,12 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9111
9111
  for (let node of children){
9112
9112
  var _childNode_value, _ref;
9113
9113
  // Cache the node based on its value
9114
- node.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== undefined ? _childNode_value : partialNode.value) !== null && _ref !== undefined ? _ref : null;
9114
+ node.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== void 0 ? _childNode_value : partialNode.value) !== null && _ref !== void 0 ? _ref : null;
9115
9115
  if (node.value) this.cache.set(node.value, node);
9116
9116
  var _parentNode_type;
9117
9117
  // The partial node may have specified a type for the child in order to specify a constraint.
9118
9118
  // Verify that the full node that was built recursively matches this type.
9119
- if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode === null || parentNode === undefined ? undefined : parentNode.type) !== null && _parentNode_type !== undefined ? _parentNode_type : 'unknown parent type')}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
9119
+ if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== null && _parentNode_type !== void 0 ? _parentNode_type : 'unknown parent type')}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
9120
9120
  index++;
9121
9121
  yield node;
9122
9122
  }
@@ -9134,11 +9134,11 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9134
9134
  props: partialNode.props,
9135
9135
  key: partialNode.key,
9136
9136
  parentKey: parentNode ? parentNode.key : null,
9137
- value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== undefined ? _partialNode_value : null,
9137
+ value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null,
9138
9138
  level: parentNode ? parentNode.level + 1 : 0,
9139
9139
  index: partialNode.index,
9140
9140
  rendered: partialNode.rendered,
9141
- textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== undefined ? _partialNode_textValue : '',
9141
+ textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : '',
9142
9142
  'aria-label': partialNode['aria-label'],
9143
9143
  wrapper: partialNode.wrapper,
9144
9144
  shouldInvalidate: partialNode.shouldInvalidate,
@@ -9286,7 +9286,7 @@ function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {
9286
9286
  function $c5a24bc478652b5f$var$getAncestors(collection, node) {
9287
9287
  let parents = [];
9288
9288
  let currNode = node;
9289
- while((currNode === null || currNode === undefined ? undefined : currNode.parentKey) != null){
9289
+ while((currNode === null || currNode === void 0 ? void 0 : currNode.parentKey) != null){
9290
9290
  currNode = collection.getItem(currNode.parentKey);
9291
9291
  if (currNode) parents.unshift(currNode);
9292
9292
  }
@@ -9339,17 +9339,17 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9339
9339
  let { key: key } = props;
9340
9340
  let data = ($b1f0cad8af73213b$export$3585ede4d035bf14).get(state);
9341
9341
  var _props_isDisabled;
9342
- let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== undefined ? _props_isDisabled : state.selectionManager.isDisabled(key);
9342
+ let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);
9343
9343
  var _props_isSelected;
9344
- let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== undefined ? _props_isSelected : state.selectionManager.isSelected(key);
9344
+ let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
9345
9345
  var _props_shouldSelectOnPressUp;
9346
- let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== undefined ? _props_shouldSelectOnPressUp : data === null || data === undefined ? undefined : data.shouldSelectOnPressUp;
9346
+ let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
9347
9347
  var _props_shouldFocusOnHover;
9348
- let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== undefined ? _props_shouldFocusOnHover : data === null || data === undefined ? undefined : data.shouldFocusOnHover;
9348
+ let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
9349
9349
  var _props_shouldUseVirtualFocus;
9350
- let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== undefined ? _props_shouldUseVirtualFocus : data === null || data === undefined ? undefined : data.shouldUseVirtualFocus;
9350
+ let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
9351
9351
  var _props_isVirtualized;
9352
- let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== undefined ? _props_isVirtualized : data === null || data === undefined ? undefined : data.isVirtualized;
9352
+ let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
9353
9353
  let labelId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)();
9354
9354
  let descriptionId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)();
9355
9355
  let optionProps = {
@@ -9367,13 +9367,13 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9367
9367
  }
9368
9368
  let item = state.collection.getItem(key);
9369
9369
  if (isVirtualized) {
9370
- let index = Number(item === null || item === undefined ? undefined : item.index);
9370
+ let index = Number(item === null || item === void 0 ? void 0 : item.index);
9371
9371
  optionProps['aria-posinset'] = Number.isNaN(index) ? undefined : index + 1;
9372
9372
  optionProps['aria-setsize'] = ($453cc9f0df89c0a5$export$77d5aafae4e095b2)(state.collection);
9373
9373
  }
9374
- let onAction = (data === null || data === undefined ? undefined : data.onAction) ? ()=>{
9374
+ let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? ()=>{
9375
9375
  var _data_onAction;
9376
- return data === null || data === undefined ? undefined : (_data_onAction = data.onAction) === null || _data_onAction === undefined ? undefined : _data_onAction.call(data, key);
9376
+ return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
9377
9377
  } : undefined;
9378
9378
  let { itemProps: itemProps, isPressed: isPressed, isFocused: isFocused, hasAction: hasAction, allowsSelection: allowsSelection } = ($880e95eb8b93ba9a$export$ecf600387e221c37)({
9379
9379
  selectionManager: state.selectionManager,
@@ -9384,8 +9384,8 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9384
9384
  isVirtualized: isVirtualized,
9385
9385
  shouldUseVirtualFocus: shouldUseVirtualFocus,
9386
9386
  isDisabled: isDisabled,
9387
- onAction: onAction || (item === null || item === undefined ? undefined : (_item_props = item.props) === null || _item_props === undefined ? undefined : _item_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)(item === null || item === undefined ? undefined : (_item_props1 = item.props) === null || _item_props1 === undefined ? undefined : _item_props1.onAction, onAction) : undefined,
9388
- linkBehavior: data === null || data === undefined ? undefined : data.linkBehavior
9387
+ onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : undefined,
9388
+ linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior
9389
9389
  });
9390
9390
  let { hoverProps: hoverProps } = ($6179b936705e76d3$export$ae780daf29e6d456)({
9391
9391
  isDisabled: isDisabled || !shouldFocusOnHover,
@@ -9396,9 +9396,9 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9396
9396
  }
9397
9397
  }
9398
9398
  });
9399
- let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(item === null || item === undefined ? undefined : item.props);
9399
+ let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(item === null || item === void 0 ? void 0 : item.props);
9400
9400
  delete domProps.id;
9401
- let linkProps = ($ea8dcbcb9ea1b556$export$7e924b3091a3bd18)(item === null || item === undefined ? undefined : item.props);
9401
+ let linkProps = ($ea8dcbcb9ea1b556$export$7e924b3091a3bd18)(item === null || item === void 0 ? void 0 : item.props);
9402
9402
  return {
9403
9403
  optionProps: {
9404
9404
  ...optionProps,
@@ -9947,7 +9947,7 @@ function $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {
9947
9947
  */ const $ce9b18daab526bbd$export$5b9bb410392e3991 = new WeakMap();
9948
9948
  function $ce9b18daab526bbd$export$f45c25170b9a99c2(state, key) {
9949
9949
  var _listMap_get;
9950
- let { id: id } = (_listMap_get = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state)) !== null && _listMap_get !== undefined ? _listMap_get : {};
9950
+ let { id: id } = (_listMap_get = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state)) !== null && _listMap_get !== void 0 ? _listMap_get : {};
9951
9951
  if (!id) throw new Error('Unknown list');
9952
9952
  return `${id}-${$ce9b18daab526bbd$export$e0c709538cb8ae18(key)}`;
9953
9953
  }
@@ -10526,7 +10526,7 @@ function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
10526
10526
  let { getRowText: getRowText = (key)=>{
10527
10527
  var _state_collection_getTextValue, _state_collection, _state_collection_getItem;
10528
10528
  var _state_collection_getTextValue1;
10529
- return (_state_collection_getTextValue1 = (_state_collection_getTextValue = (_state_collection = state.collection).getTextValue) === null || _state_collection_getTextValue === undefined ? undefined : _state_collection_getTextValue.call(_state_collection, key)) !== null && _state_collection_getTextValue1 !== undefined ? _state_collection_getTextValue1 : (_state_collection_getItem = state.collection.getItem(key)) === null || _state_collection_getItem === undefined ? undefined : _state_collection_getItem.textValue;
10529
+ return (_state_collection_getTextValue1 = (_state_collection_getTextValue = (_state_collection = state.collection).getTextValue) === null || _state_collection_getTextValue === void 0 ? void 0 : _state_collection_getTextValue.call(_state_collection, key)) !== null && _state_collection_getTextValue1 !== void 0 ? _state_collection_getTextValue1 : (_state_collection_getItem = state.collection.getItem(key)) === null || _state_collection_getItem === void 0 ? void 0 : _state_collection_getItem.textValue;
10530
10530
  } } = props;
10531
10531
  let stringFormatter = ($fca6afa0e843324b$export$f12b703ca79dfbb1)((($parcel$interopDefault$3($835c96616a7cb4f9$exports))), '@react-aria/grid');
10532
10532
  // Many screen readers do not announce when items in a grid are selected/deselected.
@@ -10566,7 +10566,7 @@ function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
10566
10566
  }
10567
10567
  // Announce how many items are selected, except when selecting the first item.
10568
10568
  if (state.selectionManager.selectionMode === 'multiple') {
10569
- if (messages.length === 0 || selection === 'all' || selection.size > 1 || lastSelection.current === 'all' || ((_lastSelection_current = lastSelection.current) === null || _lastSelection_current === undefined ? undefined : _lastSelection_current.size) > 1) messages.push(selection === 'all' ? stringFormatter.format('selectedAll') : stringFormatter.format('selectedCount', {
10569
+ if (messages.length === 0 || selection === 'all' || selection.size > 1 || lastSelection.current === 'all' || ((_lastSelection_current = lastSelection.current) === null || _lastSelection_current === void 0 ? void 0 : _lastSelection_current.size) > 1) messages.push(selection === 'all' ? stringFormatter.format('selectedAll') : stringFormatter.format('selectedCount', {
10570
10570
  count: selection.size
10571
10571
  }));
10572
10572
  }
@@ -10731,7 +10731,7 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10731
10731
  var _ref_current;
10732
10732
  // Don't shift focus to the row if the active element is a element within the row already
10733
10733
  // (e.g. clicking on a row button)
10734
- if (ref.current !== null && (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !((_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.contains(document.activeElement)))) ($6a99195332edec8b$export$80f3e147d781571c)(ref.current);
10734
+ if (ref.current !== null && (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(document.activeElement)))) ($6a99195332edec8b$export$80f3e147d781571c)(ref.current);
10735
10735
  };
10736
10736
  let treeGridRowProps = {};
10737
10737
  let hasChildRows;
@@ -10740,29 +10740,29 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10740
10740
  var _state_collection_getChildren, _state_collection, _filter_at;
10741
10741
  // TODO: ideally node.hasChildNodes would be a way to tell if a row has child nodes, but the row's contents make it so that value is always
10742
10742
  // true...
10743
- let children = (_state_collection_getChildren = (_state_collection = state.collection).getChildren) === null || _state_collection_getChildren === undefined ? undefined : _state_collection_getChildren.call(_state_collection, node.key);
10743
+ let children = (_state_collection_getChildren = (_state_collection = state.collection).getChildren) === null || _state_collection_getChildren === void 0 ? void 0 : _state_collection_getChildren.call(_state_collection, node.key);
10744
10744
  hasChildRows = [
10745
- ...children !== null && children !== undefined ? children : []
10745
+ ...children !== null && children !== void 0 ? children : []
10746
10746
  ].length > 1;
10747
10747
  if (onAction == null && !hasLink && state.selectionManager.selectionMode === 'none' && hasChildRows) onAction = ()=>state.toggleKey(node.key);
10748
10748
  let isExpanded = hasChildRows ? state.expandedKeys.has(node.key) : undefined;
10749
10749
  let setSize = 1;
10750
10750
  var _filter_at_index;
10751
- if (node.level > 0 && (node === null || node === undefined ? undefined : node.parentKey) != null) {
10751
+ if (node.level > 0 && (node === null || node === void 0 ? void 0 : node.parentKey) != null) {
10752
10752
  let parent = state.collection.getItem(node.parentKey);
10753
10753
  if (parent) {
10754
10754
  var _state_collection_getChildren1, _state_collection1;
10755
10755
  // siblings must exist because our original node exists, same with lastItem
10756
- let siblings = (_state_collection_getChildren1 = (_state_collection1 = state.collection).getChildren) === null || _state_collection_getChildren1 === undefined ? undefined : _state_collection_getChildren1.call(_state_collection1, parent.key);
10756
+ let siblings = (_state_collection_getChildren1 = (_state_collection1 = state.collection).getChildren) === null || _state_collection_getChildren1 === void 0 ? void 0 : _state_collection_getChildren1.call(_state_collection1, parent.key);
10757
10757
  setSize = ($c5a24bc478652b5f$export$7475b2c64539e4cf)(siblings).index + 1;
10758
10758
  }
10759
10759
  } else setSize = ((_filter_at_index = (_filter_at = [
10760
10760
  ...state.collection
10761
- ].filter((row)=>row.level === 0).at(-1)) === null || _filter_at === undefined ? undefined : _filter_at.index) !== null && _filter_at_index !== undefined ? _filter_at_index : 0) + 1;
10761
+ ].filter((row)=>row.level === 0).at(-1)) === null || _filter_at === void 0 ? void 0 : _filter_at.index) !== null && _filter_at_index !== void 0 ? _filter_at_index : 0) + 1;
10762
10762
  treeGridRowProps = {
10763
10763
  'aria-expanded': isExpanded,
10764
10764
  'aria-level': node.level + 1,
10765
- 'aria-posinset': (node === null || node === undefined ? undefined : node.index) + 1,
10765
+ 'aria-posinset': (node === null || node === void 0 ? void 0 : node.index) + 1,
10766
10766
  'aria-setsize': setSize
10767
10767
  };
10768
10768
  }
@@ -10772,7 +10772,7 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10772
10772
  ref: ref,
10773
10773
  isVirtualized: isVirtualized,
10774
10774
  shouldSelectOnPressUp: shouldSelectOnPressUp,
10775
- onAction: onAction || ((_node_props = node.props) === null || _node_props === undefined ? undefined : _node_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)((_node_props1 = node.props) === null || _node_props1 === undefined ? undefined : _node_props1.onAction, onAction ? ()=>onAction(node.key) : undefined) : undefined,
10775
+ onAction: onAction || ((_node_props = node.props) === null || _node_props === void 0 ? void 0 : _node_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)((_node_props1 = node.props) === null || _node_props1 === void 0 ? void 0 : _node_props1.onAction, onAction ? ()=>onAction(node.key) : undefined) : undefined,
10776
10776
  focus: focus,
10777
10777
  linkBehavior: linkBehavior
10778
10778
  });
@@ -10865,7 +10865,7 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10865
10865
  var _ref_current_parentElement;
10866
10866
  e.stopPropagation();
10867
10867
  e.preventDefault();
10868
- (_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === undefined ? undefined : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
10868
+ (_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0 ? void 0 : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
10869
10869
  }
10870
10870
  break;
10871
10871
  case 'Tab':
@@ -11071,7 +11071,7 @@ function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
11071
11071
  let { focusWithinProps: focusWithinProps } = ($9ab94262bd0047c7$export$420e68273165f4ec)({
11072
11072
  onBlurWithin (e) {
11073
11073
  var _props_onBlur;
11074
- (_props_onBlur = props.onBlur) === null || _props_onBlur === undefined ? undefined : _props_onBlur.call(props, e);
11074
+ (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);
11075
11075
  if (!state.selectedValue) state.setLastFocusedValue(null);
11076
11076
  },
11077
11077
  onFocusWithin: props.onFocus,
@@ -11194,7 +11194,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
11194
11194
  var _delegate_getKeyAbove, _delegate_getFirstKey;
11195
11195
  // prevent scrolling containers
11196
11196
  e.preventDefault();
11197
- let key = state.selectedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === undefined ? undefined : _delegate_getKeyAbove.call(delegate, state.selectedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate);
11197
+ let key = state.selectedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, state.selectedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
11198
11198
  if (key) state.setSelectedKey(key);
11199
11199
  break;
11200
11200
  }
@@ -11203,7 +11203,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
11203
11203
  var _delegate_getKeyBelow, _delegate_getFirstKey1;
11204
11204
  // prevent scrolling containers
11205
11205
  e.preventDefault();
11206
- let key = state.selectedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === undefined ? undefined : _delegate_getKeyBelow.call(delegate, state.selectedKey) : (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === undefined ? undefined : _delegate_getFirstKey1.call(delegate);
11206
+ let key = state.selectedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, state.selectedKey) : (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate);
11207
11207
  if (key) state.setSelectedKey(key);
11208
11208
  break;
11209
11209
  }
@@ -11242,7 +11242,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
11242
11242
  onClick: ()=>{
11243
11243
  if (!props.isDisabled) {
11244
11244
  var _ref_current;
11245
- (_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.focus();
11245
+ (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
11246
11246
  // Show the focus ring so the user knows where focus went
11247
11247
  ($507fabe10e71c6fb$export$8397ddfc504fdb9a)('keyboard');
11248
11248
  }
@@ -11325,7 +11325,7 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
11325
11325
  validationBehavior: validationBehavior,
11326
11326
  focus: ()=>{
11327
11327
  var _triggerRef_current;
11328
- return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === undefined ? undefined : _triggerRef_current.focus();
11328
+ return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();
11329
11329
  }
11330
11330
  }, state, props.selectRef);
11331
11331
  var _state_selectedKey;
@@ -11355,7 +11355,7 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
11355
11355
  disabled: isDisabled,
11356
11356
  required: validationBehavior === 'native' && isRequired,
11357
11357
  name: name,
11358
- value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== undefined ? _state_selectedKey : '',
11358
+ value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : '',
11359
11359
  onChange: (e)=>state.setSelectedKey(e.target.value)
11360
11360
  }
11361
11361
  };
@@ -11391,7 +11391,7 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
11391
11391
  autoComplete: selectProps.autoComplete,
11392
11392
  name: name,
11393
11393
  disabled: isDisabled,
11394
- value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== undefined ? _state_selectedKey : ''
11394
+ value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ''
11395
11395
  });
11396
11396
  return null;
11397
11397
  }
@@ -11805,8 +11805,8 @@ function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
11805
11805
  let onKeyDown = (e)=>{
11806
11806
  if (e.key === 'Delete' || e.key === 'Backspace') {
11807
11807
  e.preventDefault();
11808
- if (state.selectionManager.isSelected(item.key)) onRemove === null || onRemove === undefined ? undefined : onRemove(new Set(state.selectionManager.selectedKeys));
11809
- else onRemove === null || onRemove === undefined ? undefined : onRemove(new Set([
11808
+ if (state.selectionManager.isSelected(item.key)) onRemove === null || onRemove === void 0 ? void 0 : onRemove(new Set(state.selectionManager.selectedKeys));
11809
+ else onRemove === null || onRemove === void 0 ? void 0 : onRemove(new Set([
11810
11810
  item.key
11811
11811
  ]));
11812
11812
  }
@@ -11860,8 +11860,8 @@ function $326e436e94273fe1$export$1c4b08e0eca38426(props, state) {
11860
11860
  labelable: true
11861
11861
  });
11862
11862
  let { hoverProps: hoverProps } = ($6179b936705e76d3$export$ae780daf29e6d456)({
11863
- onHoverStart: ()=>state === null || state === undefined ? undefined : state.open(true),
11864
- onHoverEnd: ()=>state === null || state === undefined ? undefined : state.close()
11863
+ onHoverStart: ()=>state === null || state === void 0 ? void 0 : state.open(true),
11864
+ onHoverEnd: ()=>state === null || state === void 0 ? void 0 : state.close()
11865
11865
  });
11866
11866
  return {
11867
11867
  tooltipProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, hoverProps, {
@@ -12115,7 +12115,7 @@ function $d2b4bc8c273e7be6$var$Button(props, ref) {
12115
12115
  isFocused: isFocused,
12116
12116
  isFocusVisible: isFocusVisible,
12117
12117
  isDisabled: props.isDisabled || false,
12118
- isPending: isPending !== null && isPending !== undefined ? isPending : false
12118
+ isPending: isPending !== null && isPending !== void 0 ? isPending : false
12119
12119
  };
12120
12120
  let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
12121
12121
  ...props,
@@ -12267,7 +12267,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12267
12267
  invalidValues.current = s;
12268
12268
  validation.updateValidation(($e5be200c675c3b3a$export$75ee7c75d68f5b0e)(...s.values()));
12269
12269
  },
12270
- validationState: (_props_validationState = props.validationState) !== null && _props_validationState !== undefined ? _props_validationState : isInvalid ? 'invalid' : null,
12270
+ validationState: (_props_validationState = props.validationState) !== null && _props_validationState !== void 0 ? _props_validationState : isInvalid ? 'invalid' : null,
12271
12271
  isInvalid: isInvalid,
12272
12272
  isRequired: isRequired
12273
12273
  };
@@ -12297,12 +12297,12 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12297
12297
  getKeyBefore(key) {
12298
12298
  let node = this.keyMap.get(key);
12299
12299
  var _node_prevKey;
12300
- return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== undefined ? _node_prevKey : null : null;
12300
+ return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;
12301
12301
  }
12302
12302
  getKeyAfter(key) {
12303
12303
  let node = this.keyMap.get(key);
12304
12304
  var _node_nextKey;
12305
- return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== undefined ? _node_nextKey : null : null;
12305
+ return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;
12306
12306
  }
12307
12307
  getFirstKey() {
12308
12308
  return this.firstKey;
@@ -12312,7 +12312,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12312
12312
  }
12313
12313
  getItem(key) {
12314
12314
  var _this_keyMap_get;
12315
- return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== undefined ? _this_keyMap_get : null;
12315
+ return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
12316
12316
  }
12317
12317
  at(idx) {
12318
12318
  const keys = [
@@ -12322,7 +12322,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12322
12322
  }
12323
12323
  getChildren(key) {
12324
12324
  let node = this.keyMap.get(key);
12325
- return (node === null || node === undefined ? undefined : node.childNodes) || [];
12325
+ return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
12326
12326
  }
12327
12327
  constructor(nodes){
12328
12328
  this.keyMap = new Map();
@@ -12351,7 +12351,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12351
12351
  last.nextKey = undefined;
12352
12352
  }
12353
12353
  var _last_key;
12354
- this.lastKey = (_last_key = last === null || last === undefined ? undefined : last.key) !== null && _last_key !== undefined ? _last_key : null;
12354
+ this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
12355
12355
  }
12356
12356
  }
12357
12357
 
@@ -12369,11 +12369,11 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12369
12369
  constructor(keys, anchorKey, currentKey){
12370
12370
  super(keys);
12371
12371
  if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {
12372
- this.anchorKey = anchorKey !== null && anchorKey !== undefined ? anchorKey : keys.anchorKey;
12373
- this.currentKey = currentKey !== null && currentKey !== undefined ? currentKey : keys.currentKey;
12372
+ this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : keys.anchorKey;
12373
+ this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : keys.currentKey;
12374
12374
  } else {
12375
- this.anchorKey = anchorKey !== null && anchorKey !== undefined ? anchorKey : null;
12376
- this.currentKey = currentKey !== null && currentKey !== undefined ? currentKey : null;
12375
+ this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : null;
12376
+ this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : null;
12377
12377
  }
12378
12378
  }
12379
12379
  }
@@ -12565,7 +12565,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12565
12565
  if (!first || item && ($c5a24bc478652b5f$export$8c434b3a7a4dad6)(this.collection, item, first) < 0) first = item;
12566
12566
  }
12567
12567
  var _first_key;
12568
- return (_first_key = first === null || first === undefined ? undefined : first.key) !== null && _first_key !== undefined ? _first_key : null;
12568
+ return (_first_key = first === null || first === void 0 ? void 0 : first.key) !== null && _first_key !== void 0 ? _first_key : null;
12569
12569
  }
12570
12570
  get lastSelectedKey() {
12571
12571
  let last = null;
@@ -12574,7 +12574,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12574
12574
  if (!last || item && ($c5a24bc478652b5f$export$8c434b3a7a4dad6)(this.collection, item, last) > 0) last = item;
12575
12575
  }
12576
12576
  var _last_key;
12577
- return (_last_key = last === null || last === undefined ? undefined : last.key) !== null && _last_key !== undefined ? _last_key : null;
12577
+ return (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
12578
12578
  }
12579
12579
  get disabledKeys() {
12580
12580
  return this.state.disabledKeys;
@@ -12600,10 +12600,10 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12600
12600
  else {
12601
12601
  let selectedKeys = this.state.selectedKeys;
12602
12602
  var _selectedKeys_anchorKey;
12603
- let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== undefined ? _selectedKeys_anchorKey : mappedToKey;
12603
+ let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : mappedToKey;
12604
12604
  selection = new ($e40ea825a81a3709$export$52baac22726c72bf)(selectedKeys, anchorKey, mappedToKey);
12605
12605
  var _selectedKeys_currentKey;
12606
- for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== undefined ? _selectedKeys_currentKey : mappedToKey))selection.delete(key);
12606
+ for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : mappedToKey))selection.delete(key);
12607
12607
  for (let key of this.getKeyRange(mappedToKey, anchorKey))if (this.canSelectItem(key)) selection.add(key);
12608
12608
  }
12609
12609
  this.state.setSelectedKeys(selection);
@@ -12619,7 +12619,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12619
12619
  }
12620
12620
  getKeyRangeInternal(from, to) {
12621
12621
  var _this_layoutDelegate;
12622
- if ((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === undefined ? undefined : _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
12622
+ if ((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0 ? void 0 : _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
12623
12623
  let keys = [];
12624
12624
  let key = from;
12625
12625
  while(key != null){
@@ -12693,10 +12693,10 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12693
12693
  if (this.canSelectItem(key)) {
12694
12694
  var _getFirstItem;
12695
12695
  let item = this.collection.getItem(key);
12696
- if ((item === null || item === undefined ? undefined : item.type) === 'item') keys.push(key);
12696
+ if ((item === null || item === void 0 ? void 0 : item.type) === 'item') keys.push(key);
12697
12697
  var _getFirstItem_key;
12698
12698
  // Add child keys. If cell selection is allowed, then include item children too.
12699
- if ((item === null || item === undefined ? undefined : item.hasChildNodes) && (this.allowsCellSelection || item.type !== 'item')) addKeys((_getFirstItem_key = (_getFirstItem = ($c5a24bc478652b5f$export$fbdeaa6a76694f71)(($c5a24bc478652b5f$export$1005530eda016c13)(item, this.collection))) === null || _getFirstItem === undefined ? undefined : _getFirstItem.key) !== null && _getFirstItem_key !== undefined ? _getFirstItem_key : null);
12699
+ if ((item === null || item === void 0 ? void 0 : item.hasChildNodes) && (this.allowsCellSelection || item.type !== 'item')) addKeys((_getFirstItem_key = (_getFirstItem = ($c5a24bc478652b5f$export$fbdeaa6a76694f71)(($c5a24bc478652b5f$export$1005530eda016c13)(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key) !== null && _getFirstItem_key !== void 0 ? _getFirstItem_key : null);
12700
12700
  }
12701
12701
  key = this.collection.getKeyAfter(key);
12702
12702
  }
@@ -12748,28 +12748,28 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12748
12748
  var _item_props;
12749
12749
  if (this.state.selectionMode === 'none' || this.state.disabledKeys.has(key)) return false;
12750
12750
  let item = this.collection.getItem(key);
12751
- if (!item || (item === null || item === undefined ? undefined : (_item_props = item.props) === null || _item_props === undefined ? undefined : _item_props.isDisabled) || item.type === 'cell' && !this.allowsCellSelection) return false;
12751
+ if (!item || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || item.type === 'cell' && !this.allowsCellSelection) return false;
12752
12752
  return true;
12753
12753
  }
12754
12754
  isDisabled(key) {
12755
12755
  var _this_collection_getItem_props, _this_collection_getItem;
12756
- return this.state.disabledBehavior === 'all' && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === undefined ? undefined : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === undefined ? undefined : _this_collection_getItem_props.isDisabled));
12756
+ return this.state.disabledBehavior === 'all' && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.isDisabled));
12757
12757
  }
12758
12758
  isLink(key) {
12759
12759
  var _this_collection_getItem_props, _this_collection_getItem;
12760
- return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === undefined ? undefined : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === undefined ? undefined : _this_collection_getItem_props.href);
12760
+ return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.href);
12761
12761
  }
12762
12762
  getItemProps(key) {
12763
12763
  var _this_collection_getItem;
12764
- return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === undefined ? undefined : _this_collection_getItem.props;
12764
+ return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;
12765
12765
  }
12766
12766
  constructor(collection, state, options){
12767
12767
  this.collection = collection;
12768
12768
  this.state = state;
12769
12769
  var _options_allowsCellSelection;
12770
- this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === undefined ? undefined : options.allowsCellSelection) !== null && _options_allowsCellSelection !== undefined ? _options_allowsCellSelection : false;
12770
+ this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === void 0 ? void 0 : options.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : false;
12771
12771
  this._isSelectAll = null;
12772
- this.layoutDelegate = (options === null || options === undefined ? undefined : options.layoutDelegate) || null;
12772
+ this.layoutDelegate = (options === null || options === void 0 ? void 0 : options.layoutDelegate) || null;
12773
12773
  }
12774
12774
  }
12775
12775
 
@@ -12818,18 +12818,18 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
12818
12818
  ...cachedCollection.current.getKeys()
12819
12819
  ].map((key)=>{
12820
12820
  const itemNode = cachedCollection.current.getItem(key);
12821
- return (itemNode === null || itemNode === undefined ? undefined : itemNode.type) === 'item' ? itemNode : null;
12821
+ return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;
12822
12822
  }).filter((node)=>node !== null);
12823
12823
  const itemNodes = [
12824
12824
  ...collection.getKeys()
12825
12825
  ].map((key)=>{
12826
12826
  const itemNode = collection.getItem(key);
12827
- return (itemNode === null || itemNode === undefined ? undefined : itemNode.type) === 'item' ? itemNode : null;
12827
+ return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;
12828
12828
  }).filter((node)=>node !== null);
12829
12829
  var _cachedItemNodes_length, _itemNodes_length;
12830
- const diff = ((_cachedItemNodes_length = cachedItemNodes === null || cachedItemNodes === undefined ? undefined : cachedItemNodes.length) !== null && _cachedItemNodes_length !== undefined ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes === null || itemNodes === undefined ? undefined : itemNodes.length) !== null && _itemNodes_length !== undefined ? _itemNodes_length : 0);
12830
+ const diff = ((_cachedItemNodes_length = cachedItemNodes === null || cachedItemNodes === void 0 ? void 0 : cachedItemNodes.length) !== null && _cachedItemNodes_length !== void 0 ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length !== void 0 ? _itemNodes_length : 0);
12831
12831
  var _startItem_index, _startItem_index1, _itemNodes_length1;
12832
- let index = Math.min(diff > 1 ? Math.max(((_startItem_index = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index !== undefined ? _startItem_index : 0) - diff + 1, 0) : (_startItem_index1 = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index1 !== undefined ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes === null || itemNodes === undefined ? undefined : itemNodes.length) !== null && _itemNodes_length1 !== undefined ? _itemNodes_length1 : 0) - 1);
12832
+ let index = Math.min(diff > 1 ? Math.max(((_startItem_index = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index !== void 0 ? _startItem_index : 0) - diff + 1, 0) : (_startItem_index1 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index1 !== void 0 ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length1 !== void 0 ? _itemNodes_length1 : 0) - 1);
12833
12833
  let newNode = null;
12834
12834
  let isReverseSearching = false;
12835
12835
  while(index >= 0){
@@ -12842,7 +12842,7 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
12842
12842
  else {
12843
12843
  isReverseSearching = true;
12844
12844
  var _startItem_index2, _startItem_index3;
12845
- if (index > ((_startItem_index2 = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index2 !== undefined ? _startItem_index2 : 0)) index = (_startItem_index3 = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index3 !== undefined ? _startItem_index3 : 0;
12845
+ if (index > ((_startItem_index2 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index2 !== void 0 ? _startItem_index2 : 0)) index = (_startItem_index3 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index3 !== void 0 ? _startItem_index3 : 0;
12846
12846
  index--;
12847
12847
  }
12848
12848
  }
@@ -12877,7 +12877,7 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
12877
12877
 
12878
12878
  function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
12879
12879
  var _props_defaultSelectedKey;
12880
- let [selectedKey, setSelectedKey] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== undefined ? _props_defaultSelectedKey : null, props.onSelectionChange);
12880
+ let [selectedKey, setSelectedKey] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);
12881
12881
  let selectedKeys = (useMemo)(()=>selectedKey != null ? [
12882
12882
  selectedKey
12883
12883
  ] : [], [
@@ -12893,7 +12893,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
12893
12893
  // impossible, but TS doesn't know that
12894
12894
  if (keys === 'all') return;
12895
12895
  var _keys_values_next_value;
12896
- let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== undefined ? _keys_values_next_value : null;
12896
+ let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
12897
12897
  // Always fire onSelectionChange, even if the key is the same
12898
12898
  // as the current key (useControlledState does not).
12899
12899
  if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
@@ -13110,7 +13110,7 @@ function $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {
13110
13110
  props.name
13111
13111
  ]);
13112
13112
  var _props_defaultValue;
13113
- let [selectedValue, setSelected] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== undefined ? _props_defaultValue : null, props.onChange);
13113
+ let [selectedValue, setSelected] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);
13114
13114
  let [lastFocusedValue, setLastFocusedValue] = (useState)(null);
13115
13115
  let validation = ($e5be200c675c3b3a$export$fc1a364ae1f3ff10)({
13116
13116
  ...props,
@@ -13314,7 +13314,7 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
13314
13314
  const $ee014567cb39d3f0$export$ff05c3ac10437e03 = /*#__PURE__*/ (createContext)(null);
13315
13315
  function $ee014567cb39d3f0$var$FieldError(props, ref) {
13316
13316
  let validation = (useContext)($ee014567cb39d3f0$export$ff05c3ac10437e03);
13317
- if (!(validation === null || validation === undefined ? undefined : validation.isInvalid)) return null;
13317
+ if (!(validation === null || validation === void 0 ? void 0 : validation.isInvalid)) return null;
13318
13318
  return /*#__PURE__*/ ($dbSRa$react).createElement($ee014567cb39d3f0$var$FieldErrorInner, {
13319
13319
  ...props,
13320
13320
  ref: ref
@@ -13369,7 +13369,7 @@ function $d3e0e05bdfcf66bd$var$Form(props, ref) {
13369
13369
  validationBehavior: validationBehavior
13370
13370
  }
13371
13371
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($e5be200c675c3b3a$export$571b5131b7e65c11).Provider, {
13372
- value: validationErrors !== null && validationErrors !== undefined ? validationErrors : {}
13372
+ value: validationErrors !== null && validationErrors !== void 0 ? validationErrors : {}
13373
13373
  }, children)));
13374
13374
  }
13375
13375
  /**
@@ -13403,7 +13403,7 @@ function $bc237834342dbd75$var$CheckboxGroup(props, ref) {
13403
13403
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bc237834342dbd75$export$baf37c4be89255b8);
13404
13404
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
13405
13405
  var _props_validationBehavior, _ref;
13406
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
13406
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
13407
13407
  let state = ($587d3ad58be6d31f$export$daff6da51032a415)({
13408
13408
  ...props,
13409
13409
  validationBehavior: validationBehavior
@@ -13469,7 +13469,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
13469
13469
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, ($4e85f108e88277b8$export$b085522c77523c51));
13470
13470
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
13471
13471
  var _props_validationBehavior, _ref;
13472
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
13472
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
13473
13473
  let groupState = (useContext)($bc237834342dbd75$export$139c5b8563afc1fc);
13474
13474
  let inputRef = ($df56164dff5785e2$export$4338b53315abf666)(($5dc95899b306f630$export$c9058316764c140e)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null));
13475
13475
  let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid } = groupState ? ($fba3e38d5ca8983f$export$353b32fc6898d37d)({
@@ -13958,32 +13958,32 @@ function $612b8eb6cb90e02d$var$DropIndicator(props, ref) {
13958
13958
  */ const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /*#__PURE__*/ (forwardRef)($612b8eb6cb90e02d$var$DropIndicator);
13959
13959
  function $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {
13960
13960
  var _dragAndDropHooks_isVirtualDragging;
13961
- let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.renderDropIndicator;
13962
- let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === undefined ? undefined : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);
13961
+ let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;
13962
+ let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);
13963
13963
  let fn = (useCallback)((target)=>{
13964
13964
  // Only show drop indicators when virtual dragging or this is the current drop target.
13965
- if (isVirtualDragging || (dropState === null || dropState === undefined ? undefined : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : /*#__PURE__*/ ($dbSRa$react).createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, {
13965
+ if (isVirtualDragging || (dropState === null || dropState === void 0 ? void 0 : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : /*#__PURE__*/ ($dbSRa$react).createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, {
13966
13966
  target: target
13967
13967
  });
13968
13968
  // We invalidate whenever the target changes.
13969
13969
  // eslint-disable-next-line react-hooks/exhaustive-deps
13970
13970
  }, [
13971
- dropState === null || dropState === undefined ? undefined : dropState.target,
13971
+ dropState === null || dropState === void 0 ? void 0 : dropState.target,
13972
13972
  isVirtualDragging,
13973
13973
  renderDropIndicator
13974
13974
  ]);
13975
- return (dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.useDropIndicator) ? fn : undefined;
13975
+ return (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDropIndicator) ? fn : undefined;
13976
13976
  }
13977
13977
  function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState) {
13978
13978
  var _dragAndDropHooks_isVirtualDragging, _dropState_target;
13979
13979
  // Persist the focused key and the drop target key.
13980
13980
  let focusedKey = selectionManager.focusedKey;
13981
13981
  let dropTargetKey = null;
13982
- if ((dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === undefined ? undefined : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks)) && (dropState === null || dropState === undefined ? undefined : (_dropState_target = dropState.target) === null || _dropState_target === undefined ? undefined : _dropState_target.type) === 'item') {
13982
+ if ((dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks)) && (dropState === null || dropState === void 0 ? void 0 : (_dropState_target = dropState.target) === null || _dropState_target === void 0 ? void 0 : _dropState_target.type) === 'item') {
13983
13983
  dropTargetKey = dropState.target.key;
13984
13984
  var _dropState_collection_getKeyAfter;
13985
13985
  if (dropState.target.dropPosition === 'after') // Normalize to the "before" drop position since we only render those to the DOM.
13986
- dropTargetKey = (_dropState_collection_getKeyAfter = dropState.collection.getKeyAfter(dropTargetKey)) !== null && _dropState_collection_getKeyAfter !== undefined ? _dropState_collection_getKeyAfter : dropTargetKey;
13986
+ dropTargetKey = (_dropState_collection_getKeyAfter = dropState.collection.getKeyAfter(dropTargetKey)) !== null && _dropState_collection_getKeyAfter !== void 0 ? _dropState_collection_getKeyAfter : dropTargetKey;
13987
13987
  }
13988
13988
  return (useMemo)(()=>{
13989
13989
  return new Set([
@@ -14104,8 +14104,8 @@ function $eed445e0843c11d0$var$StandaloneListBox({ props: props, listBoxRef: lis
14104
14104
  function $eed445e0843c11d0$var$ListBoxInner({ state: state, props: props, listBoxRef: listBoxRef }) {
14105
14105
  let { dragAndDropHooks: dragAndDropHooks, layout: layout = 'stack', orientation: orientation = 'vertical' } = props;
14106
14106
  let { collection: collection, selectionManager: selectionManager } = state;
14107
- let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.useDraggableCollectionState);
14108
- let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.useDroppableCollectionState);
14107
+ let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
14108
+ let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
14109
14109
  let { direction: direction } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
14110
14110
  let { disabledBehavior: disabledBehavior, disabledKeys: disabledKeys } = selectionManager;
14111
14111
  let collator = ($325a3faab7a68acd$export$a16aca283550c30d)({
@@ -14211,7 +14211,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: state, props: props, listBo
14211
14211
  }, props.renderEmptyState(renderValues));
14212
14212
  return /*#__PURE__*/ ($dbSRa$react).createElement(($9bf71ea28793e738$export$20e40289641fbbb6), null, /*#__PURE__*/ ($dbSRa$react).createElement("div", {
14213
14213
  ...($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props),
14214
- ...($3ef42575df84b30b$export$9d1611c77c2fe928)(listBoxProps, focusProps, droppableCollection === null || droppableCollection === undefined ? undefined : droppableCollection.collectionProps),
14214
+ ...($3ef42575df84b30b$export$9d1611c77c2fe928)(listBoxProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps),
14215
14215
  ...renderProps,
14216
14216
  ref: listBoxRef,
14217
14217
  slot: props.slot || undefined,
@@ -14275,7 +14275,7 @@ function $eed445e0843c11d0$var$ListBoxSection(props, ref, section, className = '
14275
14275
  var _props_arialabel;
14276
14276
  let { headingProps: headingProps, groupProps: groupProps } = ($af383d3bef1cfdc9$export$c3f9f39876e4bc7)({
14277
14277
  heading: heading,
14278
- 'aria-label': (_props_arialabel = props['aria-label']) !== null && _props_arialabel !== undefined ? _props_arialabel : undefined
14278
+ 'aria-label': (_props_arialabel = props['aria-label']) !== null && _props_arialabel !== void 0 ? _props_arialabel : undefined
14279
14279
  });
14280
14280
  let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
14281
14281
  defaultClassName: className,
@@ -14308,7 +14308,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14308
14308
  let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = (useContext)(($612b8eb6cb90e02d$export$d188a835a7bc5783));
14309
14309
  let { optionProps: optionProps, labelProps: labelProps, descriptionProps: descriptionProps, ...states } = ($293f70390ea03370$export$497855f14858aa34)({
14310
14310
  key: item.key,
14311
- 'aria-label': props === null || props === undefined ? undefined : props['aria-label']
14311
+ 'aria-label': props === null || props === void 0 ? void 0 : props['aria-label']
14312
14312
  }, state, ref);
14313
14313
  let { hoverProps: hoverProps, isHovered: isHovered } = ($6179b936705e76d3$export$ae780daf29e6d456)({
14314
14314
  isDisabled: !states.allowsSelection && !states.hasAction,
@@ -14341,7 +14341,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14341
14341
  selectionBehavior: state.selectionManager.selectionBehavior,
14342
14342
  allowsDragging: !!dragState,
14343
14343
  isDragging: isDragging,
14344
- isDropTarget: droppableItem === null || droppableItem === undefined ? undefined : droppableItem.isDropTarget
14344
+ isDropTarget: droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget
14345
14345
  }
14346
14346
  });
14347
14347
  (useEffect)(()=>{
@@ -14351,7 +14351,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14351
14351
  ]);
14352
14352
  let ElementType = props.href ? 'a' : 'div';
14353
14353
  return /*#__PURE__*/ ($dbSRa$react).createElement(ElementType, {
14354
- ...($3ef42575df84b30b$export$9d1611c77c2fe928)(optionProps, hoverProps, draggableItem === null || draggableItem === undefined ? undefined : draggableItem.dragProps, droppableItem === null || droppableItem === undefined ? undefined : droppableItem.dropProps),
14354
+ ...($3ef42575df84b30b$export$9d1611c77c2fe928)(optionProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps, droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps),
14355
14355
  ...renderProps,
14356
14356
  ref: ref,
14357
14357
  "data-allows-dragging": !!dragState || undefined,
@@ -14362,7 +14362,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14362
14362
  "data-focus-visible": states.isFocusVisible || undefined,
14363
14363
  "data-pressed": states.isPressed || undefined,
14364
14364
  "data-dragging": isDragging || undefined,
14365
- "data-drop-target": (droppableItem === null || droppableItem === undefined ? undefined : droppableItem.isDropTarget) || undefined,
14365
+ "data-drop-target": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || undefined,
14366
14366
  "data-selection-mode": state.selectionManager.selectionMode === 'none' ? undefined : state.selectionManager.selectionMode
14367
14367
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($64fa3d84918910a7$export$2881499e37b75b9a), {
14368
14368
  values: [
@@ -14523,7 +14523,7 @@ function $07b14b47974efb58$var$PopoverInner({ state: state, isExiting: isExiting
14523
14523
  var _props_offset;
14524
14524
  let { popoverProps: popoverProps, underlayProps: underlayProps, arrowProps: arrowProps, placement: placement } = ($f2f8a6077418541e$export$542a6fd13ac93354)({
14525
14525
  ...props,
14526
- offset: (_props_offset = props.offset) !== null && _props_offset !== undefined ? _props_offset : 8,
14526
+ offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8,
14527
14527
  arrowSize: arrowWidth
14528
14528
  }, state);
14529
14529
  let ref = props.popoverRef;
@@ -14664,7 +14664,7 @@ function $de32f1b87079253c$var$Dialog(props, ref) {
14664
14664
  style: props.style,
14665
14665
  children: props.children,
14666
14666
  values: {
14667
- close: (state === null || state === undefined ? undefined : state.close) || (()=>{})
14667
+ close: (state === null || state === void 0 ? void 0 : state.close) || (()=>{})
14668
14668
  }
14669
14669
  });
14670
14670
  return /*#__PURE__*/ ($dbSRa$react).createElement("section", {
@@ -14693,7 +14693,7 @@ function $de32f1b87079253c$var$Dialog(props, ref) {
14693
14693
  slots: {
14694
14694
  [($64fa3d84918910a7$export$c62b8e45d58ddad9)]: {},
14695
14695
  close: {
14696
- onPress: ()=>state === null || state === undefined ? undefined : state.close()
14696
+ onPress: ()=>state === null || state === void 0 ? void 0 : state.close()
14697
14697
  }
14698
14698
  }
14699
14699
  }
@@ -14765,11 +14765,11 @@ function $28f4fd908f0de97f$var$Disclosure(props, ref) {
14765
14765
  onExpandedChange (isExpanded) {
14766
14766
  var _props_onExpandedChange;
14767
14767
  if (groupState) groupState.toggleKey(id);
14768
- (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === undefined ? undefined : _props_onExpandedChange.call(props, isExpanded);
14768
+ (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === void 0 ? void 0 : _props_onExpandedChange.call(props, isExpanded);
14769
14769
  }
14770
14770
  });
14771
14771
  let panelRef = ($dbSRa$react).useRef(null);
14772
- let isDisabled = props.isDisabled || (groupState === null || groupState === undefined ? undefined : groupState.isDisabled) || false;
14772
+ let isDisabled = props.isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled) || false;
14773
14773
  let { buttonProps: buttonProps, panelProps: panelProps } = ($5e910fae8e128ead$export$6e3e27031a30522f)({
14774
14774
  ...props,
14775
14775
  isExpanded: isExpanded,
@@ -14880,7 +14880,7 @@ function $5cb03073d3f54797$var$Heading(props, ref) {
14880
14880
  return /*#__PURE__*/ ($dbSRa$react).createElement(Element, {
14881
14881
  ...domProps,
14882
14882
  ref: ref,
14883
- className: className !== null && className !== undefined ? className : 'react-aria-Heading'
14883
+ className: className !== null && className !== void 0 ? className : 'react-aria-Heading'
14884
14884
  }, children);
14885
14885
  }
14886
14886
  const $5cb03073d3f54797$export$a8a3e93435678ff9 = /*#__PURE__*/ (forwardRef)($5cb03073d3f54797$var$Heading);
@@ -15051,7 +15051,7 @@ function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
15051
15051
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);
15052
15052
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
15053
15053
  var _props_validationBehavior, _ref;
15054
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
15054
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
15055
15055
  let state = ($a54cdc5c1942b639$export$bca9d026f8e704eb)({
15056
15056
  ...props,
15057
15057
  validationBehavior: validationBehavior
@@ -15231,7 +15231,7 @@ function $82d7e5349645de74$var$Select(props, ref) {
15231
15231
  function $82d7e5349645de74$var$SelectInner({ props: props, selectRef: ref, collection: collection }) {
15232
15232
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
15233
15233
  var _props_validationBehavior, _ref;
15234
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
15234
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
15235
15235
  let state = ($2bc3a590c5373a4e$export$5159ec8b34d4ec12)({
15236
15236
  ...props,
15237
15237
  collection: collection,
@@ -15385,7 +15385,7 @@ function $82d7e5349645de74$var$SelectValue(props, ref) {
15385
15385
  let state = (useContext)($82d7e5349645de74$export$ef445b55be0601bd);
15386
15386
  let { placeholder: placeholder } = ($64fa3d84918910a7$export$fabf2dc03a41866e)($82d7e5349645de74$export$7540cee5be7dc19b);
15387
15387
  let selectedItem = state.selectedKey != null ? state.collection.getItem(state.selectedKey) : null;
15388
- let rendered = selectedItem === null || selectedItem === undefined ? undefined : selectedItem.props.children;
15388
+ let rendered = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.props.children;
15389
15389
  if (typeof rendered === 'function') {
15390
15390
  // If the selected item has a function as a child, we need to call it to render to React.JSX.
15391
15391
  let fn = rendered;
@@ -15404,11 +15404,11 @@ function $82d7e5349645de74$var$SelectValue(props, ref) {
15404
15404
  var _ref, _state_selectedItem_value, _state_selectedItem_textValue;
15405
15405
  let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
15406
15406
  ...props,
15407
- defaultChildren: (_ref = rendered !== null && rendered !== undefined ? rendered : placeholder) !== null && _ref !== undefined ? _ref : stringFormatter.format('selectPlaceholder'),
15407
+ defaultChildren: (_ref = rendered !== null && rendered !== void 0 ? rendered : placeholder) !== null && _ref !== void 0 ? _ref : stringFormatter.format('selectPlaceholder'),
15408
15408
  defaultClassName: 'react-aria-SelectValue',
15409
15409
  values: {
15410
- selectedItem: (_state_selectedItem_value = (_state_selectedItem = state.selectedItem) === null || _state_selectedItem === undefined ? undefined : _state_selectedItem.value) !== null && _state_selectedItem_value !== undefined ? _state_selectedItem_value : null,
15411
- selectedText: (_state_selectedItem_textValue = (_state_selectedItem1 = state.selectedItem) === null || _state_selectedItem1 === undefined ? undefined : _state_selectedItem1.textValue) !== null && _state_selectedItem_textValue !== undefined ? _state_selectedItem_textValue : null,
15410
+ selectedItem: (_state_selectedItem_value = (_state_selectedItem = state.selectedItem) === null || _state_selectedItem === void 0 ? void 0 : _state_selectedItem.value) !== null && _state_selectedItem_value !== void 0 ? _state_selectedItem_value : null,
15411
+ selectedText: (_state_selectedItem_textValue = (_state_selectedItem1 = state.selectedItem) === null || _state_selectedItem1 === void 0 ? void 0 : _state_selectedItem1.textValue) !== null && _state_selectedItem_textValue !== void 0 ? _state_selectedItem_textValue : null,
15412
15412
  isPlaceholder: !selectedItem
15413
15413
  }
15414
15414
  });
@@ -15554,7 +15554,7 @@ function $eaf9e70818b436db$var$TagGroupInner({ props: props, forwardedRef: ref,
15554
15554
  ...domProps,
15555
15555
  ref: ref,
15556
15556
  slot: props.slot || undefined,
15557
- className: (_props_className = props.className) !== null && _props_className !== undefined ? _props_className : 'react-aria-TagGroup',
15557
+ className: (_props_className = props.className) !== null && _props_className !== void 0 ? _props_className : 'react-aria-TagGroup',
15558
15558
  style: props.style
15559
15559
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($64fa3d84918910a7$export$2881499e37b75b9a), {
15560
15560
  values: [
@@ -15767,7 +15767,7 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
15767
15767
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bcdf0525bf22703d$export$2129e27b3ef0d483);
15768
15768
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
15769
15769
  var _props_validationBehavior, _ref;
15770
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
15770
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
15771
15771
  let inputRef = (useRef)(null);
15772
15772
  let [labelRef, label] = ($64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();
15773
15773
  let [inputElementType, setInputElementType] = (useState)('input');
@@ -15952,7 +15952,7 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
15952
15952
  ...overlayProps.style,
15953
15953
  ...renderProps.style
15954
15954
  },
15955
- "data-placement": placement !== null && placement !== undefined ? placement : undefined,
15955
+ "data-placement": placement !== null && placement !== void 0 ? placement : undefined,
15956
15956
  "data-entering": isEntering || undefined,
15957
15957
  "data-exiting": props.isExiting || undefined
15958
15958
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($44f671af83e7d9e0$export$2de4954e8ae13b9f).Provider, {