@sanity/ui 2.8.21 → 2.8.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -156,7 +156,7 @@ function responsiveTextFont(props) {
156
156
  function useArrayProp(val, defaultVal) {
157
157
  const $ = c(3);
158
158
  let t0;
159
- $[0] !== val || $[1] !== defaultVal ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = val, $[1] = defaultVal, $[2] = t0) : t0 = $[2];
159
+ $[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
160
160
  const [t1, setCache] = useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
161
161
  return hash !== cachedHash && setCache([_getArrayProp(val, defaultVal), hash]), cachedVal;
162
162
  }
@@ -190,7 +190,7 @@ function useClickOutside(listener, t0, boundaryElement) {
190
190
  }
191
191
  }, t3 = [element, elementsArg], $[3] = element, $[4] = elementsArg, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useEffect(t2, t3);
192
192
  let t4, t5;
193
- return $[7] !== listener || $[8] !== boundaryElement || $[9] !== elements ? (t4 = () => {
193
+ return $[7] !== boundaryElement || $[8] !== elements || $[9] !== listener ? (t4 = () => {
194
194
  if (!listener)
195
195
  return;
196
196
  const handleWindowMouseDown = (evt) => {
@@ -205,12 +205,12 @@ function useClickOutside(listener, t0, boundaryElement) {
205
205
  return window.addEventListener("mousedown", handleWindowMouseDown), () => {
206
206
  window.removeEventListener("mousedown", handleWindowMouseDown);
207
207
  };
208
- }, t5 = [boundaryElement, listener, elements], $[7] = listener, $[8] = boundaryElement, $[9] = elements, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), useEffect(t4, t5), setElement;
208
+ }, t5 = [boundaryElement, listener, elements], $[7] = boundaryElement, $[8] = elements, $[9] = listener, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), useEffect(t4, t5), setElement;
209
209
  }
210
210
  function useClickOutsideEvent(listener, t0, boundaryElement) {
211
211
  const $ = c(8), elementsArg = t0 === void 0 ? _temp$6 : t0;
212
212
  let t1;
213
- $[0] !== listener || $[1] !== boundaryElement || $[2] !== elementsArg ? (t1 = (evt) => {
213
+ $[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
214
214
  if (!listener)
215
215
  return;
216
216
  const target = evt.target;
@@ -224,7 +224,7 @@ function useClickOutsideEvent(listener, t0, boundaryElement) {
224
224
  if (el && (target === el || el.contains(target)))
225
225
  return;
226
226
  listener(evt);
227
- }, $[0] = listener, $[1] = boundaryElement, $[2] = elementsArg, $[3] = t1) : t1 = $[3];
227
+ }, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
228
228
  const onEvent = useEffectEvent(t1), hasListener = !!listener;
229
229
  let t2, t3;
230
230
  $[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
@@ -242,9 +242,9 @@ function _temp$6() {
242
242
  function useCustomValidity(ref, customValidity) {
243
243
  const $ = c(6);
244
244
  let t0;
245
- $[0] !== ref.current || $[1] !== customValidity ? (t0 = () => {
245
+ $[0] !== customValidity || $[1] !== ref.current ? (t0 = () => {
246
246
  ref.current?.setCustomValidity(customValidity || "");
247
- }, $[0] = ref.current, $[1] = customValidity, $[2] = t0) : t0 = $[2];
247
+ }, $[0] = customValidity, $[1] = ref.current, $[2] = t0) : t0 = $[2];
248
248
  let t1;
249
249
  $[3] !== customValidity || $[4] !== ref ? (t1 = [customValidity, ref], $[3] = customValidity, $[4] = ref, $[5] = t1) : t1 = $[5], useEffect(t0, t1);
250
250
  }
@@ -656,9 +656,9 @@ function ThemeProvider(props) {
656
656
  return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsx("pre", { children: 'ThemeProvider: no "theme" property provided' }), $[8] = t22) : t22 = $[8], t22;
657
657
  }
658
658
  let t2;
659
- $[9] !== theme || $[10] !== children ? (t2 = /* @__PURE__ */ jsx(ThemeProvider$1, { theme, children }), $[9] = theme, $[10] = children, $[11] = t2) : t2 = $[11];
659
+ $[9] !== children || $[10] !== theme ? (t2 = /* @__PURE__ */ jsx(ThemeProvider$1, { theme, children }), $[9] = children, $[10] = theme, $[11] = t2) : t2 = $[11];
660
660
  let t3;
661
- return $[12] !== themeContext || $[13] !== t2 ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = themeContext, $[13] = t2, $[14] = t3) : t3 = $[14], t3;
661
+ return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
662
662
  }
663
663
  ThemeProvider.displayName = "ThemeProvider";
664
664
  function useRootTheme() {
@@ -674,7 +674,7 @@ function ThemeColorProvider(props) {
674
674
  tone
675
675
  } = props, root = useRootTheme(), t0 = scheme || root.scheme;
676
676
  let t1;
677
- return $[0] !== t0 || $[1] !== root.theme || $[2] !== tone || $[3] !== children ? (t1 = /* @__PURE__ */ jsx(ThemeProvider, { scheme: t0, theme: root.theme, tone, children }), $[0] = t0, $[1] = root.theme, $[2] = tone, $[3] = children, $[4] = t1) : t1 = $[4], t1;
677
+ return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ jsx(ThemeProvider, { scheme: t0, theme: root.theme, tone, children }), $[0] = children, $[1] = root.theme, $[2] = t0, $[3] = tone, $[4] = t1) : t1 = $[4], t1;
678
678
  }
679
679
  ThemeColorProvider.displayName = "ThemeColorProvider";
680
680
  function useTheme() {
@@ -1467,7 +1467,7 @@ const Root$C = styled.div(responsiveLabelFont, responsiveTextAlignStyle, labelBa
1467
1467
  overflow: clip;
1468
1468
  `, Label = forwardRef(function(props, ref) {
1469
1469
  const $ = c(22);
1470
- let t0, t1, childrenProp, textOverflow, align, restProps, accent, weight;
1470
+ let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
1471
1471
  $[0] !== props ? ({
1472
1472
  accent,
1473
1473
  align,
@@ -1477,7 +1477,7 @@ const Root$C = styled.div(responsiveLabelFont, responsiveTextAlignStyle, labelBa
1477
1477
  textOverflow,
1478
1478
  weight,
1479
1479
  ...restProps
1480
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = childrenProp, $[4] = textOverflow, $[5] = align, $[6] = restProps, $[7] = accent, $[8] = weight) : (t0 = $[1], t1 = $[2], childrenProp = $[3], textOverflow = $[4], align = $[5], restProps = $[6], accent = $[7], weight = $[8]);
1480
+ } = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = childrenProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = textOverflow, $[8] = weight) : (accent = $[1], align = $[2], childrenProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], textOverflow = $[7], weight = $[8]);
1481
1481
  const muted = t0 === void 0 ? !1 : t0, size2 = t1 === void 0 ? 2 : t1;
1482
1482
  let children = childrenProp;
1483
1483
  if (textOverflow === "ellipsis") {
@@ -1489,7 +1489,7 @@ const Root$C = styled.div(responsiveLabelFont, responsiveTextAlignStyle, labelBa
1489
1489
  }
1490
1490
  const t2 = useArrayProp(align), t3 = useArrayProp(size2);
1491
1491
  let t4;
1492
- return $[13] !== restProps || $[14] !== accent || $[15] !== t2 || $[16] !== muted || $[17] !== t3 || $[18] !== weight || $[19] !== ref || $[20] !== children ? (t4 = /* @__PURE__ */ jsx(Root$C, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[13] = restProps, $[14] = accent, $[15] = t2, $[16] = muted, $[17] = t3, $[18] = weight, $[19] = ref, $[20] = children, $[21] = t4) : t4 = $[21], t4;
1492
+ return $[13] !== accent || $[14] !== children || $[15] !== muted || $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== weight ? (t4 = /* @__PURE__ */ jsx(Root$C, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[13] = accent, $[14] = children, $[15] = muted, $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = weight, $[21] = t4) : t4 = $[21], t4;
1493
1493
  });
1494
1494
  Label.displayName = "ForwardRef(Label)";
1495
1495
  const avatarStyle = {
@@ -1639,7 +1639,7 @@ const Root$B = styled.div(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1
1639
1639
  color: "inherit"
1640
1640
  }), Image = styled.svg(avatarStyle.image), Avatar = forwardRef(function(props, ref) {
1641
1641
  const $ = c(53);
1642
- let t0, t1, t2, asProp, animateArrowFrom, arrowPositionProp, src, onImageLoadError, __unstable_hideInnerStroke, initials, restProps, title;
1642
+ let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
1643
1643
  $[0] !== props ? ({
1644
1644
  __unstable_hideInnerStroke,
1645
1645
  as: asProp,
@@ -1653,7 +1653,7 @@ const Root$B = styled.div(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1
1653
1653
  status: t1,
1654
1654
  size: t2,
1655
1655
  ...restProps
1656
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = asProp, $[5] = animateArrowFrom, $[6] = arrowPositionProp, $[7] = src, $[8] = onImageLoadError, $[9] = __unstable_hideInnerStroke, $[10] = initials, $[11] = restProps, $[12] = title) : (t0 = $[1], t1 = $[2], t2 = $[3], asProp = $[4], animateArrowFrom = $[5], arrowPositionProp = $[6], src = $[7], onImageLoadError = $[8], __unstable_hideInnerStroke = $[9], initials = $[10], restProps = $[11], title = $[12]);
1656
+ } = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = restProps, $[8] = src, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], restProps = $[7], src = $[8], t0 = $[9], t1 = $[10], t2 = $[11], title = $[12]);
1657
1657
  const color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, {
1658
1658
  avatar
1659
1659
  } = useTheme_v2(), as = ReactIs.isValidElementType(asProp) ? asProp : "div", size2 = useArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = useId(), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = useState(!1), imageId = `avatar-image-${elementId}`;
@@ -1684,20 +1684,20 @@ const Root$B = styled.div(responsiveAvatarSizeStyle, avatarStyle.root), Arrow$1
1684
1684
  let t11;
1685
1685
  $[25] !== color ? (t11 = /* @__PURE__ */ jsx(Arrow$1, { children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[25] = color, $[26] = t11) : t11 = $[26];
1686
1686
  let t12;
1687
- $[27] !== imageFailed || $[28] !== src || $[29] !== _sizeRem || $[30] !== handleImageError || $[31] !== imageId || $[32] !== _radius || $[33] !== __unstable_hideInnerStroke ? (t12 = !imageFailed && src && /* @__PURE__ */ jsxs(Image, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1687
+ $[27] !== __unstable_hideInnerStroke || $[28] !== _radius || $[29] !== _sizeRem || $[30] !== handleImageError || $[31] !== imageFailed || $[32] !== imageId || $[33] !== src ? (t12 = !imageFailed && src && /* @__PURE__ */ jsxs(Image, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1688
1688
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("pattern", { id: imageId, patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsx("image", { href: src, width: "1", height: "1", onError: handleImageError }) }) }),
1689
1689
  /* @__PURE__ */ jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
1690
1690
  !__unstable_hideInnerStroke && /* @__PURE__ */ jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
1691
1691
  /* @__PURE__ */ jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
1692
- ] }), $[27] = imageFailed, $[28] = src, $[29] = _sizeRem, $[30] = handleImageError, $[31] = imageId, $[32] = _radius, $[33] = __unstable_hideInnerStroke, $[34] = t12) : t12 = $[34];
1692
+ ] }), $[27] = __unstable_hideInnerStroke, $[28] = _radius, $[29] = _sizeRem, $[30] = handleImageError, $[31] = imageFailed, $[32] = imageId, $[33] = src, $[34] = t12) : t12 = $[34];
1693
1693
  let t13;
1694
- $[35] !== imageFailed || $[36] !== src || $[37] !== initials || $[38] !== initialsSize ? (t13 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[35] = imageFailed, $[36] = src, $[37] = initials, $[38] = initialsSize, $[39] = t13) : t13 = $[39];
1694
+ $[35] !== imageFailed || $[36] !== initials || $[37] !== initialsSize || $[38] !== src ? (t13 = (imageFailed || !src) && initials && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Initials, { children: /* @__PURE__ */ jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[35] = imageFailed, $[36] = initials, $[37] = initialsSize, $[38] = src, $[39] = t13) : t13 = $[39];
1695
1695
  let t14;
1696
- return $[40] !== as || $[41] !== t10 || $[42] !== restProps || $[43] !== color || $[44] !== size2 || $[45] !== title || $[46] !== arrowPosition || $[47] !== status || $[48] !== ref || $[49] !== t11 || $[50] !== t12 || $[51] !== t13 ? (t14 = /* @__PURE__ */ jsxs(Root$B, { as, "data-as": t10, "data-ui": "Avatar", ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
1696
+ return $[40] !== arrowPosition || $[41] !== as || $[42] !== color || $[43] !== ref || $[44] !== restProps || $[45] !== size2 || $[46] !== status || $[47] !== t10 || $[48] !== t11 || $[49] !== t12 || $[50] !== t13 || $[51] !== title ? (t14 = /* @__PURE__ */ jsxs(Root$B, { as, "data-as": t10, "data-ui": "Avatar", ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
1697
1697
  t11,
1698
1698
  t12,
1699
1699
  t13
1700
- ] }), $[40] = as, $[41] = t10, $[42] = restProps, $[43] = color, $[44] = size2, $[45] = title, $[46] = arrowPosition, $[47] = status, $[48] = ref, $[49] = t11, $[50] = t12, $[51] = t13, $[52] = t14) : t14 = $[52], t14;
1700
+ ] }), $[40] = arrowPosition, $[41] = as, $[42] = color, $[43] = ref, $[44] = restProps, $[45] = size2, $[46] = status, $[47] = t10, $[48] = t11, $[49] = t12, $[50] = t13, $[51] = title, $[52] = t14) : t14 = $[52], t14;
1701
1701
  });
1702
1702
  Avatar.displayName = "ForwardRef(Avatar)";
1703
1703
  function _responsiveAvatarCounterSizeStyle(props) {
@@ -1750,9 +1750,9 @@ const Root$A = styled.div(_responsiveAvatarCounterSizeStyle, _avatarCounterBaseS
1750
1750
  t1 = t2;
1751
1751
  const fontSize2 = t1;
1752
1752
  let t3;
1753
- $[3] !== fontSize2 || $[4] !== count ? (t3 = /* @__PURE__ */ jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[3] = fontSize2, $[4] = count, $[5] = t3) : t3 = $[5];
1753
+ $[3] !== count || $[4] !== fontSize2 ? (t3 = /* @__PURE__ */ jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[3] = count, $[4] = fontSize2, $[5] = t3) : t3 = $[5];
1754
1754
  let t4;
1755
- return $[6] !== size2 || $[7] !== ref || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsx(Root$A, { $size: size2, "data-ui": "AvatarCounter", ref, children: t3 }), $[6] = size2, $[7] = ref, $[8] = t3, $[9] = t4) : t4 = $[9], t4;
1755
+ return $[6] !== ref || $[7] !== size2 || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsx(Root$A, { $size: size2, "data-ui": "AvatarCounter", ref, children: t3 }), $[6] = ref, $[7] = size2, $[8] = t3, $[9] = t4) : t4 = $[9], t4;
1756
1756
  });
1757
1757
  AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
1758
1758
  const BASE_STYLES = css`
@@ -1785,13 +1785,13 @@ function responsiveAvatarStackSizeStyle(props) {
1785
1785
  }
1786
1786
  const Root$z = styled.div(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = forwardRef(function(props, ref) {
1787
1787
  const $ = c(15);
1788
- let t0, t1, childrenProp, restProps;
1788
+ let childrenProp, restProps, t0, t1;
1789
1789
  $[0] !== props ? ({
1790
1790
  children: childrenProp,
1791
1791
  maxLength: t0,
1792
1792
  size: t1,
1793
1793
  ...restProps
1794
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = childrenProp, $[4] = restProps) : (t0 = $[1], t1 = $[2], childrenProp = $[3], restProps = $[4]);
1794
+ } = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
1795
1795
  const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, children = Children.toArray(childrenProp).filter(isValidElement), maxLength = Math.max(maxLengthProp, 0), size2 = useArrayProp(sizeProp), len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children, T0 = Root$z, t2 = "AvatarStack", t3 = len === 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }) }), t4 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }) });
1796
1796
  let t5;
1797
1797
  $[5] !== size2 ? (t5 = (child, childIndex) => /* @__PURE__ */ jsx("div", { children: cloneElement(child, {
@@ -1799,16 +1799,16 @@ const Root$z = styled.div(responsiveAvatarStackSizeStyle, avatarStackStyle), Ava
1799
1799
  }) }, String(childIndex)), $[5] = size2, $[6] = t5) : t5 = $[6];
1800
1800
  const t6 = visibleChildren.map(t5);
1801
1801
  let t7;
1802
- return $[7] !== T0 || $[8] !== restProps || $[9] !== ref || $[10] !== size2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t6 ? (t7 = /* @__PURE__ */ jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
1802
+ return $[7] !== T0 || $[8] !== ref || $[9] !== restProps || $[10] !== size2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t6 ? (t7 = /* @__PURE__ */ jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
1803
1803
  t3,
1804
1804
  t4,
1805
1805
  t6
1806
- ] }), $[7] = T0, $[8] = restProps, $[9] = ref, $[10] = size2, $[11] = t3, $[12] = t4, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
1806
+ ] }), $[7] = T0, $[8] = ref, $[9] = restProps, $[10] = size2, $[11] = t3, $[12] = t4, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
1807
1807
  });
1808
1808
  AvatarStack.displayName = "ForwardRef(AvatarStack)";
1809
1809
  const Root$y = styled.div(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = forwardRef(function(props, ref) {
1810
1810
  const $ = c(59);
1811
- let t0, t1, t2, t3, column, columnStart, columnEnd, flex, height, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, row, rowStart, rowEnd, sizing, restProps;
1811
+ let column, columnEnd, columnStart, flex, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, row, rowEnd, rowStart, sizing, t0, t1, t2, t3;
1812
1812
  $[0] !== props ? ({
1813
1813
  as: t0,
1814
1814
  column,
@@ -1837,10 +1837,10 @@ const Root$y = styled.div(boxStyle, flexItemStyle, responsiveBoxStyle, responsiv
1837
1837
  rowEnd,
1838
1838
  sizing,
1839
1839
  ...restProps
1840
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = column, $[6] = columnStart, $[7] = columnEnd, $[8] = flex, $[9] = height, $[10] = marginX, $[11] = marginY, $[12] = marginTop, $[13] = marginRight, $[14] = marginBottom, $[15] = marginLeft, $[16] = overflow, $[17] = paddingX, $[18] = paddingY, $[19] = paddingTop, $[20] = paddingRight, $[21] = paddingBottom, $[22] = paddingLeft, $[23] = row, $[24] = rowStart, $[25] = rowEnd, $[26] = sizing, $[27] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], column = $[5], columnStart = $[6], columnEnd = $[7], flex = $[8], height = $[9], marginX = $[10], marginY = $[11], marginTop = $[12], marginRight = $[13], marginBottom = $[14], marginLeft = $[15], overflow = $[16], paddingX = $[17], paddingY = $[18], paddingTop = $[19], paddingRight = $[20], paddingBottom = $[21], paddingLeft = $[22], row = $[23], rowStart = $[24], rowEnd = $[25], sizing = $[26], restProps = $[27]);
1840
+ } = props, $[0] = props, $[1] = column, $[2] = columnEnd, $[3] = columnStart, $[4] = flex, $[5] = height, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = overflow, $[13] = paddingBottom, $[14] = paddingLeft, $[15] = paddingRight, $[16] = paddingTop, $[17] = paddingX, $[18] = paddingY, $[19] = restProps, $[20] = row, $[21] = rowEnd, $[22] = rowStart, $[23] = sizing, $[24] = t0, $[25] = t1, $[26] = t2, $[27] = t3) : (column = $[1], columnEnd = $[2], columnStart = $[3], flex = $[4], height = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], overflow = $[12], paddingBottom = $[13], paddingLeft = $[14], paddingRight = $[15], paddingTop = $[16], paddingX = $[17], paddingY = $[18], restProps = $[19], row = $[20], rowEnd = $[21], rowStart = $[22], sizing = $[23], t0 = $[24], t1 = $[25], t2 = $[26], t3 = $[27]);
1841
1841
  const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, t4 = typeof asProp == "string" ? asProp : void 0, t5 = useArrayProp(column), t6 = useArrayProp(columnStart), t7 = useArrayProp(columnEnd), t8 = useArrayProp(display), t9 = useArrayProp(flex), t10 = useArrayProp(height), t11 = useArrayProp(margin), t12 = useArrayProp(marginX), t13 = useArrayProp(marginY), t14 = useArrayProp(marginTop), t15 = useArrayProp(marginRight), t16 = useArrayProp(marginBottom), t17 = useArrayProp(marginLeft), t18 = useArrayProp(overflow), t19 = useArrayProp(padding), t20 = useArrayProp(paddingX), t21 = useArrayProp(paddingY), t22 = useArrayProp(paddingTop), t23 = useArrayProp(paddingRight), t24 = useArrayProp(paddingBottom), t25 = useArrayProp(paddingLeft), t26 = useArrayProp(row), t27 = useArrayProp(rowStart), t28 = useArrayProp(rowEnd), t29 = useArrayProp(sizing);
1842
1842
  let t30;
1843
- return $[28] !== t4 || $[29] !== restProps || $[30] !== t5 || $[31] !== t6 || $[32] !== t7 || $[33] !== t8 || $[34] !== t9 || $[35] !== t10 || $[36] !== t11 || $[37] !== t12 || $[38] !== t13 || $[39] !== t14 || $[40] !== t15 || $[41] !== t16 || $[42] !== t17 || $[43] !== t18 || $[44] !== t19 || $[45] !== t20 || $[46] !== t21 || $[47] !== t22 || $[48] !== t23 || $[49] !== t24 || $[50] !== t25 || $[51] !== t26 || $[52] !== t27 || $[53] !== t28 || $[54] !== t29 || $[55] !== asProp || $[56] !== ref || $[57] !== props.children ? (t30 = /* @__PURE__ */ jsx(Root$y, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[28] = t4, $[29] = restProps, $[30] = t5, $[31] = t6, $[32] = t7, $[33] = t8, $[34] = t9, $[35] = t10, $[36] = t11, $[37] = t12, $[38] = t13, $[39] = t14, $[40] = t15, $[41] = t16, $[42] = t17, $[43] = t18, $[44] = t19, $[45] = t20, $[46] = t21, $[47] = t22, $[48] = t23, $[49] = t24, $[50] = t25, $[51] = t26, $[52] = t27, $[53] = t28, $[54] = t29, $[55] = asProp, $[56] = ref, $[57] = props.children, $[58] = t30) : t30 = $[58], t30;
1843
+ return $[28] !== asProp || $[29] !== props.children || $[30] !== ref || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t16 || $[39] !== t17 || $[40] !== t18 || $[41] !== t19 || $[42] !== t20 || $[43] !== t21 || $[44] !== t22 || $[45] !== t23 || $[46] !== t24 || $[47] !== t25 || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t4 || $[53] !== t5 || $[54] !== t6 || $[55] !== t7 || $[56] !== t8 || $[57] !== t9 ? (t30 = /* @__PURE__ */ jsx(Root$y, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[28] = asProp, $[29] = props.children, $[30] = ref, $[31] = restProps, $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13, $[36] = t14, $[37] = t15, $[38] = t16, $[39] = t17, $[40] = t18, $[41] = t19, $[42] = t20, $[43] = t21, $[44] = t22, $[45] = t23, $[46] = t24, $[47] = t25, $[48] = t26, $[49] = t27, $[50] = t28, $[51] = t29, $[52] = t4, $[53] = t5, $[54] = t6, $[55] = t7, $[56] = t8, $[57] = t9, $[58] = t30) : t30 = $[58], t30;
1844
1844
  });
1845
1845
  Box.displayName = "ForwardRef(Box)";
1846
1846
  function textBaseStyle(props) {
@@ -1919,7 +1919,7 @@ const Root$x = styled.div(responsiveTextFont, responsiveTextAlignStyle, textBase
1919
1919
  overflow: clip;
1920
1920
  `, Text = forwardRef(function(props, ref) {
1921
1921
  const $ = c(22);
1922
- let t0, t1, t2, childrenProp, textOverflow, align, restProps, weight;
1922
+ let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
1923
1923
  $[0] !== props ? ({
1924
1924
  accent: t0,
1925
1925
  align,
@@ -1929,7 +1929,7 @@ const Root$x = styled.div(responsiveTextFont, responsiveTextAlignStyle, textBase
1929
1929
  textOverflow,
1930
1930
  weight,
1931
1931
  ...restProps
1932
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = childrenProp, $[5] = textOverflow, $[6] = align, $[7] = restProps, $[8] = weight) : (t0 = $[1], t1 = $[2], t2 = $[3], childrenProp = $[4], textOverflow = $[5], align = $[6], restProps = $[7], weight = $[8]);
1932
+ } = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight) : (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]);
1933
1933
  const accent = t0 === void 0 ? !1 : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 2 : t2;
1934
1934
  let children = childrenProp;
1935
1935
  if (textOverflow === "ellipsis") {
@@ -1940,7 +1940,7 @@ const Root$x = styled.div(responsiveTextFont, responsiveTextAlignStyle, textBase
1940
1940
  let t5;
1941
1941
  $[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
1942
1942
  let t6;
1943
- return $[13] !== restProps || $[14] !== accent || $[15] !== t3 || $[16] !== muted || $[17] !== ref || $[18] !== t4 || $[19] !== weight || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$x, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[13] = restProps, $[14] = accent, $[15] = t3, $[16] = muted, $[17] = ref, $[18] = t4, $[19] = weight, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
1943
+ return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsx(Root$x, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
1944
1944
  });
1945
1945
  Text.displayName = "ForwardRef(Text)";
1946
1946
  function badgeStyle(props) {
@@ -1960,7 +1960,7 @@ function badgeStyle(props) {
1960
1960
  }
1961
1961
  const Root$w = styled(Box)(responsiveRadiusStyle, badgeStyle), Badge = forwardRef(function(props, ref) {
1962
1962
  const $ = c(17);
1963
- let t0, t1, t2, t3, children, restProps;
1963
+ let children, restProps, t0, t1, t2, t3;
1964
1964
  if ($[0] !== props) {
1965
1965
  const {
1966
1966
  children: t42,
@@ -1971,19 +1971,19 @@ const Root$w = styled(Box)(responsiveRadiusStyle, badgeStyle), Badge = forwardRe
1971
1971
  tone: t8,
1972
1972
  ...t9
1973
1973
  } = props;
1974
- children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = children, $[6] = restProps;
1974
+ children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2, $[6] = t3;
1975
1975
  } else
1976
- t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], children = $[5], restProps = $[6];
1976
+ children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
1977
1977
  const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3, t4 = useArrayProp(radius), t5 = useArrayProp(padding);
1978
1978
  let t6;
1979
- $[7] !== fontSize2 || $[8] !== children ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[7] = fontSize2, $[8] = children, $[9] = t6) : t6 = $[9];
1979
+ $[7] !== children || $[8] !== fontSize2 ? (t6 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children }), $[7] = children, $[8] = fontSize2, $[9] = t6) : t6 = $[9];
1980
1980
  let t7;
1981
- return $[10] !== restProps || $[11] !== tone || $[12] !== t4 || $[13] !== t5 || $[14] !== ref || $[15] !== t6 ? (t7 = /* @__PURE__ */ jsx(Root$w, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[10] = restProps, $[11] = tone, $[12] = t4, $[13] = t5, $[14] = ref, $[15] = t6, $[16] = t7) : t7 = $[16], t7;
1981
+ return $[10] !== ref || $[11] !== restProps || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== tone ? (t7 = /* @__PURE__ */ jsx(Root$w, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[10] = ref, $[11] = restProps, $[12] = t4, $[13] = t5, $[14] = t6, $[15] = tone, $[16] = t7) : t7 = $[16], t7;
1982
1982
  });
1983
1983
  Badge.displayName = "ForwardRef(Badge)";
1984
1984
  const Root$v = styled(Box)(flexItemStyle, responsiveFlexStyle), Flex = forwardRef(function(props, ref) {
1985
1985
  const $ = c(17);
1986
- let t0, align, gap, justify, wrap, restProps, as;
1986
+ let align, as, gap, justify, restProps, t0, wrap;
1987
1987
  $[0] !== props ? ({
1988
1988
  align,
1989
1989
  as,
@@ -1992,10 +1992,10 @@ const Root$v = styled(Box)(flexItemStyle, responsiveFlexStyle), Flex = forwardRe
1992
1992
  justify,
1993
1993
  wrap,
1994
1994
  ...restProps
1995
- } = props, $[0] = props, $[1] = t0, $[2] = align, $[3] = gap, $[4] = justify, $[5] = wrap, $[6] = restProps, $[7] = as) : (t0 = $[1], align = $[2], gap = $[3], justify = $[4], wrap = $[5], restProps = $[6], as = $[7]);
1995
+ } = props, $[0] = props, $[1] = align, $[2] = as, $[3] = gap, $[4] = justify, $[5] = restProps, $[6] = t0, $[7] = wrap) : (align = $[1], as = $[2], gap = $[3], justify = $[4], restProps = $[5], t0 = $[6], wrap = $[7]);
1996
1996
  const direction = t0 === void 0 ? "row" : t0, t1 = useArrayProp(align), t2 = useArrayProp(direction), t3 = useArrayProp(gap), t4 = useArrayProp(justify), t5 = useArrayProp(wrap);
1997
1997
  let t6;
1998
- return $[8] !== restProps || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t5 || $[14] !== as || $[15] !== ref ? (t6 = /* @__PURE__ */ jsx(Root$v, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[8] = restProps, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5, $[14] = as, $[15] = ref, $[16] = t6) : t6 = $[16], t6;
1998
+ return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$v, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[8] = as, $[9] = ref, $[10] = restProps, $[11] = t1, $[12] = t2, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
1999
1999
  });
2000
2000
  Flex.displayName = "ForwardRef(Flex)";
2001
2001
  const rotate$1 = keyframes`
@@ -2193,7 +2193,7 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
2193
2193
  box-shadow: inherit;
2194
2194
  `, Button = forwardRef(function(props, ref) {
2195
2195
  const $ = c(64);
2196
- let t0, t1, t2, t3, t4, t5, t6, t7, t8, paddingXProp, paddingYProp, paddingTopProp, paddingBottomProp, paddingLeftProp, paddingRightProp, loading, disabled, selected, IconComponent, text, IconRightComponent, textAlign, children, restProps, width;
2196
+ let IconComponent, IconRightComponent, children, disabled, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, width;
2197
2197
  $[0] !== props ? ({
2198
2198
  children,
2199
2199
  disabled,
@@ -2220,12 +2220,12 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
2220
2220
  muted: t8,
2221
2221
  width,
2222
2222
  ...restProps
2223
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = t6, $[8] = t7, $[9] = t8, $[10] = paddingXProp, $[11] = paddingYProp, $[12] = paddingTopProp, $[13] = paddingBottomProp, $[14] = paddingLeftProp, $[15] = paddingRightProp, $[16] = loading, $[17] = disabled, $[18] = selected, $[19] = IconComponent, $[20] = text, $[21] = IconRightComponent, $[22] = textAlign, $[23] = children, $[24] = restProps, $[25] = width) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], t6 = $[7], t7 = $[8], t8 = $[9], paddingXProp = $[10], paddingYProp = $[11], paddingTopProp = $[12], paddingBottomProp = $[13], paddingLeftProp = $[14], paddingRightProp = $[15], loading = $[16], disabled = $[17], selected = $[18], IconComponent = $[19], text = $[20], IconRightComponent = $[21], textAlign = $[22], children = $[23], restProps = $[24], width = $[25]);
2223
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = loading, $[6] = paddingBottomProp, $[7] = paddingLeftProp, $[8] = paddingRightProp, $[9] = paddingTopProp, $[10] = paddingXProp, $[11] = paddingYProp, $[12] = restProps, $[13] = selected, $[14] = t0, $[15] = t1, $[16] = t2, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = t6, $[21] = t7, $[22] = t8, $[23] = text, $[24] = textAlign, $[25] = width) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], loading = $[5], paddingBottomProp = $[6], paddingLeftProp = $[7], paddingRightProp = $[8], paddingTopProp = $[9], paddingXProp = $[10], paddingYProp = $[11], restProps = $[12], selected = $[13], t0 = $[14], t1 = $[15], t2 = $[16], t3 = $[17], t4 = $[18], t5 = $[19], t6 = $[20], t7 = $[21], t8 = $[22], text = $[23], textAlign = $[24], width = $[25]);
2224
2224
  const fontSize2 = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 === void 0 ? !1 : t8, {
2225
2225
  button
2226
2226
  } = useTheme_v2(), justify = useArrayProp(justifyProp), padding = useArrayProp(paddingProp), paddingX = useArrayProp(paddingXProp), paddingY = useArrayProp(paddingYProp), paddingTop = useArrayProp(paddingTopProp), paddingBottom = useArrayProp(paddingBottomProp), paddingLeft = useArrayProp(paddingLeftProp), paddingRight = useArrayProp(paddingRightProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp);
2227
2227
  let t9, t10;
2228
- $[26] !== padding || $[27] !== paddingX || $[28] !== paddingY || $[29] !== paddingTop || $[30] !== paddingBottom || $[31] !== paddingLeft || $[32] !== paddingRight ? (t10 = {
2228
+ $[26] !== padding || $[27] !== paddingBottom || $[28] !== paddingLeft || $[29] !== paddingRight || $[30] !== paddingTop || $[31] !== paddingX || $[32] !== paddingY ? (t10 = {
2229
2229
  padding,
2230
2230
  paddingX,
2231
2231
  paddingY,
@@ -2233,12 +2233,12 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
2233
2233
  paddingBottom,
2234
2234
  paddingLeft,
2235
2235
  paddingRight
2236
- }, $[26] = padding, $[27] = paddingX, $[28] = paddingY, $[29] = paddingTop, $[30] = paddingBottom, $[31] = paddingLeft, $[32] = paddingRight, $[33] = t10) : t10 = $[33], t9 = t10;
2236
+ }, $[26] = padding, $[27] = paddingBottom, $[28] = paddingLeft, $[29] = paddingRight, $[30] = paddingTop, $[31] = paddingX, $[32] = paddingY, $[33] = t10) : t10 = $[33], t9 = t10;
2237
2237
  const boxProps = t9, t11 = !!(loading || disabled), t12 = selected ? "" : void 0, t13 = !!(loading || disabled);
2238
2238
  let t14;
2239
2239
  $[34] !== loading ? (t14 = !!loading && /* @__PURE__ */ jsx(LoadingBox, { children: /* @__PURE__ */ jsx(Spinner, {}) }), $[34] = loading, $[35] = t14) : t14 = $[35];
2240
2240
  let t15;
2241
- $[36] !== IconComponent || $[37] !== text || $[38] !== IconRightComponent || $[39] !== fontSize2 || $[40] !== muted || $[41] !== textAlign || $[42] !== button || $[43] !== justify || $[44] !== space || $[45] !== boxProps ? (t15 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxs(Flex, { as: "span", justify, gap: space, children: [
2241
+ $[36] !== IconComponent || $[37] !== IconRightComponent || $[38] !== boxProps || $[39] !== button || $[40] !== fontSize2 || $[41] !== justify || $[42] !== muted || $[43] !== space || $[44] !== text || $[45] !== textAlign ? (t15 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxs(Flex, { as: "span", justify, gap: space, children: [
2242
2242
  IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
2243
2243
  isValidElement(IconComponent) && IconComponent,
2244
2244
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -2248,15 +2248,15 @@ const Root$t = styled.button(responsiveRadiusStyle, buttonBaseStyles, buttonColo
2248
2248
  isValidElement(IconRightComponent) && IconRightComponent,
2249
2249
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
2250
2250
  ] })
2251
- ] }) }), $[36] = IconComponent, $[37] = text, $[38] = IconRightComponent, $[39] = fontSize2, $[40] = muted, $[41] = textAlign, $[42] = button, $[43] = justify, $[44] = space, $[45] = boxProps, $[46] = t15) : t15 = $[46];
2251
+ ] }) }), $[36] = IconComponent, $[37] = IconRightComponent, $[38] = boxProps, $[39] = button, $[40] = fontSize2, $[41] = justify, $[42] = muted, $[43] = space, $[44] = text, $[45] = textAlign, $[46] = t15) : t15 = $[46];
2252
2252
  let t16;
2253
- $[47] !== children || $[48] !== boxProps ? (t16 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children }), $[47] = children, $[48] = boxProps, $[49] = t16) : t16 = $[49];
2253
+ $[47] !== boxProps || $[48] !== children ? (t16 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...boxProps, children }), $[47] = boxProps, $[48] = children, $[49] = t16) : t16 = $[49];
2254
2254
  let t17;
2255
- return $[50] !== restProps || $[51] !== mode || $[52] !== radius || $[53] !== tone || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== ref || $[58] !== type || $[59] !== width || $[60] !== t14 || $[61] !== t15 || $[62] !== t16 ? (t17 = /* @__PURE__ */ jsxs(Root$t, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t11, "data-selected": t12, disabled: t13, ref, type, $width: width, children: [
2255
+ return $[50] !== mode || $[51] !== radius || $[52] !== ref || $[53] !== restProps || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== t14 || $[58] !== t15 || $[59] !== t16 || $[60] !== tone || $[61] !== type || $[62] !== width ? (t17 = /* @__PURE__ */ jsxs(Root$t, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t11, "data-selected": t12, disabled: t13, ref, type, $width: width, children: [
2256
2256
  t14,
2257
2257
  t15,
2258
2258
  t16
2259
- ] }), $[50] = restProps, $[51] = mode, $[52] = radius, $[53] = tone, $[54] = t11, $[55] = t12, $[56] = t13, $[57] = ref, $[58] = type, $[59] = width, $[60] = t14, $[61] = t15, $[62] = t16, $[63] = t17) : t17 = $[63], t17;
2259
+ ] }), $[50] = mode, $[51] = radius, $[52] = ref, $[53] = restProps, $[54] = t11, $[55] = t12, $[56] = t13, $[57] = t14, $[58] = t15, $[59] = t16, $[60] = tone, $[61] = type, $[62] = width, $[63] = t17) : t17 = $[63], t17;
2260
2260
  });
2261
2261
  Button.displayName = "ForwardRef(Button)";
2262
2262
  function cardStyle(props) {
@@ -2409,7 +2409,7 @@ function cardColorStyle(props) {
2409
2409
  }
2410
2410
  const Root$s = styled(Box)(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = forwardRef(function(props, ref) {
2411
2411
  const $ = c(42);
2412
- let t0, t1, t2, t3, asProp, border2, borderTop2, borderRight2, borderBottom2, borderLeft2, shadow, pressed, selected, restProps, muted, scheme;
2412
+ let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
2413
2413
  $[0] !== props ? ({
2414
2414
  __unstable_checkered: t0,
2415
2415
  __unstable_focusRing: t1,
@@ -2427,12 +2427,12 @@ const Root$s = styled(Box)(responsiveBorderStyle, responsiveRadiusStyle, respons
2427
2427
  shadow,
2428
2428
  tone: t3,
2429
2429
  ...restProps
2430
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = asProp, $[6] = border2, $[7] = borderTop2, $[8] = borderRight2, $[9] = borderBottom2, $[10] = borderLeft2, $[11] = shadow, $[12] = pressed, $[13] = selected, $[14] = restProps, $[15] = muted, $[16] = scheme) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], asProp = $[5], border2 = $[6], borderTop2 = $[7], borderRight2 = $[8], borderBottom2 = $[9], borderLeft2 = $[10], shadow = $[11], pressed = $[12], selected = $[13], restProps = $[14], muted = $[15], scheme = $[16]);
2430
+ } = props, $[0] = props, $[1] = asProp, $[2] = border2, $[3] = borderBottom2, $[4] = borderLeft2, $[5] = borderRight2, $[6] = borderTop2, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3) : (asProp = $[1], border2 = $[2], borderBottom2 = $[3], borderLeft2 = $[4], borderRight2 = $[5], borderTop2 = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]);
2431
2431
  const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6 = useArrayProp(border2), t7 = useArrayProp(borderTop2), t8 = useArrayProp(borderRight2), t9 = useArrayProp(borderBottom2), t10 = useArrayProp(borderLeft2), t11 = useArrayProp(radius), t12 = useArrayProp(shadow), t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
2432
2432
  let t16;
2433
- $[17] !== t4 || $[18] !== rootTheme.scheme || $[19] !== tone || $[20] !== restProps || $[21] !== t6 || $[22] !== t7 || $[23] !== t8 || $[24] !== t9 || $[25] !== t10 || $[26] !== checkered || $[27] !== focusRing || $[28] !== muted || $[29] !== t11 || $[30] !== t12 || $[31] !== t13 || $[32] !== t14 || $[33] !== t15 || $[34] !== as || $[35] !== ref || $[36] !== selected ? (t16 = /* @__PURE__ */ jsx(Root$s, { "data-as": t4, "data-scheme": t5, "data-ui": "Card", "data-tone": tone, ...restProps, $border: t6, $borderTop: t7, $borderRight: t8, $borderBottom: t9, $borderLeft: t10, $checkered: checkered, $focusRing: focusRing, $muted: muted, $radius: t11, $shadow: t12, $tone: tone, "data-checkered": t13, "data-pressed": t14, "data-selected": t15, forwardedAs: as, ref, selected }), $[17] = t4, $[18] = rootTheme.scheme, $[19] = tone, $[20] = restProps, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = t9, $[25] = t10, $[26] = checkered, $[27] = focusRing, $[28] = muted, $[29] = t11, $[30] = t12, $[31] = t13, $[32] = t14, $[33] = t15, $[34] = as, $[35] = ref, $[36] = selected, $[37] = t16) : t16 = $[37];
2433
+ $[17] !== as || $[18] !== checkered || $[19] !== focusRing || $[20] !== muted || $[21] !== ref || $[22] !== restProps || $[23] !== rootTheme.scheme || $[24] !== selected || $[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t14 || $[30] !== t15 || $[31] !== t4 || $[32] !== t6 || $[33] !== t7 || $[34] !== t8 || $[35] !== t9 || $[36] !== tone ? (t16 = /* @__PURE__ */ jsx(Root$s, { "data-as": t4, "data-scheme": t5, "data-ui": "Card", "data-tone": tone, ...restProps, $border: t6, $borderTop: t7, $borderRight: t8, $borderBottom: t9, $borderLeft: t10, $checkered: checkered, $focusRing: focusRing, $muted: muted, $radius: t11, $shadow: t12, $tone: tone, "data-checkered": t13, "data-pressed": t14, "data-selected": t15, forwardedAs: as, ref, selected }), $[17] = as, $[18] = checkered, $[19] = focusRing, $[20] = muted, $[21] = ref, $[22] = restProps, $[23] = rootTheme.scheme, $[24] = selected, $[25] = t10, $[26] = t11, $[27] = t12, $[28] = t13, $[29] = t14, $[30] = t15, $[31] = t4, $[32] = t6, $[33] = t7, $[34] = t8, $[35] = t9, $[36] = tone, $[37] = t16) : t16 = $[37];
2434
2434
  let t17;
2435
- return $[38] !== scheme || $[39] !== tone || $[40] !== t16 ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = tone, $[40] = t16, $[41] = t17) : t17 = $[41], t17;
2435
+ return $[38] !== scheme || $[39] !== t16 || $[40] !== tone ? (t17 = /* @__PURE__ */ jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = t16, $[40] = tone, $[41] = t17) : t17 = $[41], t17;
2436
2436
  });
2437
2437
  Card.displayName = "ForwardRef(Card)";
2438
2438
  function checkboxBaseStyles() {
@@ -2575,7 +2575,7 @@ function inputElementStyles(props) {
2575
2575
  }
2576
2576
  const Root$r = styled.div(checkboxBaseStyles), Input$5 = styled.input(inputElementStyles), Checkbox = forwardRef(function(props, forwardedRef) {
2577
2577
  const $ = c(25);
2578
- let indeterminate, customValidity, disabled, readOnly, restProps, checked, className, style;
2578
+ let checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
2579
2579
  $[0] !== props ? ({
2580
2580
  checked,
2581
2581
  className,
@@ -2585,7 +2585,7 @@ const Root$r = styled.div(checkboxBaseStyles), Input$5 = styled.input(inputEleme
2585
2585
  readOnly,
2586
2586
  style,
2587
2587
  ...restProps
2588
- } = props, $[0] = props, $[1] = indeterminate, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = checked, $[7] = className, $[8] = style) : (indeterminate = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], checked = $[6], className = $[7], style = $[8]);
2588
+ } = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = customValidity, $[4] = disabled, $[5] = indeterminate, $[6] = readOnly, $[7] = restProps, $[8] = style) : (checked = $[1], className = $[2], customValidity = $[3], disabled = $[4], indeterminate = $[5], readOnly = $[6], restProps = $[7], style = $[8]);
2589
2589
  const ref = useRef(null);
2590
2590
  let t0;
2591
2591
  $[9] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[9] = t0) : t0 = $[9], useImperativeHandle(forwardedRef, t0);
@@ -2595,7 +2595,7 @@ const Root$r = styled.div(checkboxBaseStyles), Input$5 = styled.input(inputEleme
2595
2595
  }, t2 = [indeterminate], $[10] = indeterminate, $[11] = t1, $[12] = t2) : (t1 = $[11], t2 = $[12]), useEffect(t1, t2), useCustomValidity(ref, customValidity);
2596
2596
  const t3 = !disabled && readOnly ? "" : void 0, t4 = customValidity ? "" : void 0, t5 = disabled || readOnly;
2597
2597
  let t6;
2598
- $[13] !== t3 || $[14] !== t4 || $[15] !== restProps || $[16] !== checked || $[17] !== t5 || $[18] !== readOnly ? (t6 = /* @__PURE__ */ jsx(Input$5, { "data-read-only": t3, "data-error": t4, ...restProps, checked, disabled: t5, type: "checkbox", readOnly, ref }), $[13] = t3, $[14] = t4, $[15] = restProps, $[16] = checked, $[17] = t5, $[18] = readOnly, $[19] = t6) : t6 = $[19];
2598
+ $[13] !== checked || $[14] !== readOnly || $[15] !== restProps || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$5, { "data-read-only": t3, "data-error": t4, ...restProps, checked, disabled: t5, type: "checkbox", readOnly, ref }), $[13] = checked, $[14] = readOnly, $[15] = restProps, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6) : t6 = $[19];
2599
2599
  let t7;
2600
2600
  $[20] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsxs("span", { children: [
2601
2601
  /* @__PURE__ */ jsx(CheckmarkIcon, {}),
@@ -2758,27 +2758,27 @@ function codeBaseStyle() {
2758
2758
  }
2759
2759
  const Root$q = styled.pre(codeBaseStyle, responsiveCodeFontStyle), Code = forwardRef(function(props, ref) {
2760
2760
  const $ = c(23);
2761
- let t0, languageProp, children, restProps, weight;
2761
+ let children, languageProp, restProps, t0, weight;
2762
2762
  $[0] !== props ? ({
2763
2763
  children,
2764
2764
  language: languageProp,
2765
2765
  size: t0,
2766
2766
  weight,
2767
2767
  ...restProps
2768
- } = props, $[0] = props, $[1] = t0, $[2] = languageProp, $[3] = children, $[4] = restProps, $[5] = weight) : (t0 = $[1], languageProp = $[2], children = $[3], restProps = $[4], weight = $[5]);
2768
+ } = props, $[0] = props, $[1] = children, $[2] = languageProp, $[3] = restProps, $[4] = t0, $[5] = weight) : (children = $[1], languageProp = $[2], restProps = $[3], t0 = $[4], weight = $[5]);
2769
2769
  const size2 = t0 === void 0 ? 2 : t0, language = typeof languageProp == "string" ? languageProp : void 0;
2770
2770
  let t1;
2771
2771
  $[6] !== language ? (t1 = language ? Refractor.hasLanguage(language) : !1, $[6] = language, $[7] = t1) : t1 = $[7];
2772
2772
  const registered = t1, t2 = useArrayProp(size2);
2773
2773
  let t3;
2774
- $[8] !== language || $[9] !== registered || $[10] !== children ? (t3 = !(language && registered) && /* @__PURE__ */ jsx("code", { children }), $[8] = language, $[9] = registered, $[10] = children, $[11] = t3) : t3 = $[11];
2774
+ $[8] !== children || $[9] !== language || $[10] !== registered ? (t3 = !(language && registered) && /* @__PURE__ */ jsx("code", { children }), $[8] = children, $[9] = language, $[10] = registered, $[11] = t3) : t3 = $[11];
2775
2775
  let t4;
2776
- $[12] !== language || $[13] !== registered || $[14] !== children ? (t4 = language && registered && /* @__PURE__ */ jsx(Refractor, { inline: !0, language, value: String(children) }), $[12] = language, $[13] = registered, $[14] = children, $[15] = t4) : t4 = $[15];
2776
+ $[12] !== children || $[13] !== language || $[14] !== registered ? (t4 = language && registered && /* @__PURE__ */ jsx(Refractor, { inline: !0, language, value: String(children) }), $[12] = children, $[13] = language, $[14] = registered, $[15] = t4) : t4 = $[15];
2777
2777
  let t5;
2778
- return $[16] !== restProps || $[17] !== t2 || $[18] !== weight || $[19] !== ref || $[20] !== t3 || $[21] !== t4 ? (t5 = /* @__PURE__ */ jsxs(Root$q, { "data-ui": "Code", ...restProps, $size: t2, $weight: weight, ref, children: [
2778
+ return $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== weight ? (t5 = /* @__PURE__ */ jsxs(Root$q, { "data-ui": "Code", ...restProps, $size: t2, $weight: weight, ref, children: [
2779
2779
  t3,
2780
2780
  t4
2781
- ] }), $[16] = restProps, $[17] = t2, $[18] = weight, $[19] = ref, $[20] = t3, $[21] = t4, $[22] = t5) : t5 = $[22], t5;
2781
+ ] }), $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = weight, $[22] = t5) : t5 = $[22], t5;
2782
2782
  });
2783
2783
  Code.displayName = "ForwardRef(Code)";
2784
2784
  const BASE_STYLE$1 = {
@@ -2799,20 +2799,20 @@ function responsiveContainerWidthStyle(props) {
2799
2799
  }
2800
2800
  const Root$p = styled(Box)(containerBaseStyle, responsiveContainerWidthStyle), Container = forwardRef(function(props, ref) {
2801
2801
  const $ = c(9);
2802
- let t0, restProps, as;
2802
+ let as, restProps, t0;
2803
2803
  $[0] !== props ? ({
2804
2804
  as,
2805
2805
  width: t0,
2806
2806
  ...restProps
2807
- } = props, $[0] = props, $[1] = t0, $[2] = restProps, $[3] = as) : (t0 = $[1], restProps = $[2], as = $[3]);
2807
+ } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
2808
2808
  const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2809
2809
  let t2;
2810
- return $[4] !== restProps || $[5] !== t1 || $[6] !== as || $[7] !== ref ? (t2 = /* @__PURE__ */ jsx(Root$p, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = restProps, $[5] = t1, $[6] = as, $[7] = ref, $[8] = t2) : t2 = $[8], t2;
2810
+ return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t1 ? (t2 = /* @__PURE__ */ jsx(Root$p, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t1, $[8] = t2) : t2 = $[8], t2;
2811
2811
  });
2812
2812
  Container.displayName = "ForwardRef(Container)";
2813
2813
  const Root$o = styled(Box)(responsiveGridStyle), Grid = forwardRef(function(props, ref) {
2814
2814
  const $ = c(26);
2815
- let as, autoRows, autoCols, autoFlow, columns, gap, gapX, gapY, rows, restProps, children;
2815
+ let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
2816
2816
  $[0] !== props ? ({
2817
2817
  as,
2818
2818
  autoRows,
@@ -2825,10 +2825,10 @@ const Root$o = styled(Box)(responsiveGridStyle), Grid = forwardRef(function(prop
2825
2825
  rows,
2826
2826
  children,
2827
2827
  ...restProps
2828
- } = props, $[0] = props, $[1] = as, $[2] = autoRows, $[3] = autoCols, $[4] = autoFlow, $[5] = columns, $[6] = gap, $[7] = gapX, $[8] = gapY, $[9] = rows, $[10] = restProps, $[11] = children) : (as = $[1], autoRows = $[2], autoCols = $[3], autoFlow = $[4], columns = $[5], gap = $[6], gapX = $[7], gapY = $[8], rows = $[9], restProps = $[10], children = $[11]);
2828
+ } = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = restProps, $[11] = rows) : (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], restProps = $[10], rows = $[11]);
2829
2829
  const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(autoRows), t2 = useArrayProp(autoCols), t3 = useArrayProp(autoFlow), t4 = useArrayProp(columns), t5 = useArrayProp(gap), t6 = useArrayProp(gapX), t7 = useArrayProp(gapY), t8 = useArrayProp(rows);
2830
2830
  let t9;
2831
- return $[12] !== t0 || $[13] !== restProps || $[14] !== t1 || $[15] !== t2 || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 || $[19] !== t6 || $[20] !== t7 || $[21] !== t8 || $[22] !== as || $[23] !== ref || $[24] !== children ? (t9 = /* @__PURE__ */ jsx(Root$o, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t4, $gap: t5, $gapX: t6, $gapY: t7, $rows: t8, forwardedAs: as, ref, children }), $[12] = t0, $[13] = restProps, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = t7, $[21] = t8, $[22] = as, $[23] = ref, $[24] = children, $[25] = t9) : t9 = $[25], t9;
2831
+ return $[12] !== as || $[13] !== children || $[14] !== ref || $[15] !== restProps || $[16] !== t0 || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsx(Root$o, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t4, $gap: t5, $gapX: t6, $gapY: t7, $rows: t8, forwardedAs: as, ref, children }), $[12] = as, $[13] = children, $[14] = ref, $[15] = restProps, $[16] = t0, $[17] = t1, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
2832
2832
  });
2833
2833
  Grid.displayName = "ForwardRef(Grid)";
2834
2834
  function headingBaseStyle(props) {
@@ -2898,7 +2898,7 @@ const Root$n = styled.div(headingBaseStyle, responsiveTextAlignStyle, responsive
2898
2898
  overflow: clip;
2899
2899
  `, Heading = forwardRef(function(props, ref) {
2900
2900
  const $ = c(22);
2901
- let t0, t1, t2, childrenProp, textOverflow, align, restProps, weight;
2901
+ let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
2902
2902
  $[0] !== props ? ({
2903
2903
  accent: t0,
2904
2904
  align,
@@ -2908,7 +2908,7 @@ const Root$n = styled.div(headingBaseStyle, responsiveTextAlignStyle, responsive
2908
2908
  textOverflow,
2909
2909
  weight,
2910
2910
  ...restProps
2911
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = childrenProp, $[5] = textOverflow, $[6] = align, $[7] = restProps, $[8] = weight) : (t0 = $[1], t1 = $[2], t2 = $[3], childrenProp = $[4], textOverflow = $[5], align = $[6], restProps = $[7], weight = $[8]);
2911
+ } = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight) : (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]);
2912
2912
  const accent = t0 === void 0 ? !1 : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 2 : t2;
2913
2913
  let children = childrenProp;
2914
2914
  if (textOverflow === "ellipsis") {
@@ -2919,7 +2919,7 @@ const Root$n = styled.div(headingBaseStyle, responsiveTextAlignStyle, responsive
2919
2919
  let t5;
2920
2920
  $[11] !== children ? (t5 = /* @__PURE__ */ jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
2921
2921
  let t6;
2922
- return $[13] !== restProps || $[14] !== accent || $[15] !== t3 || $[16] !== muted || $[17] !== t4 || $[18] !== weight || $[19] !== ref || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$n, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[13] = restProps, $[14] = accent, $[15] = t3, $[16] = muted, $[17] = t4, $[18] = weight, $[19] = ref, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
2922
+ return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsx(Root$n, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
2923
2923
  });
2924
2924
  Heading.displayName = "ForwardRef(Heading)";
2925
2925
  function inlineBaseStyle() {
@@ -2951,13 +2951,13 @@ function inlineSpaceStyle(props) {
2951
2951
  }
2952
2952
  const Root$m = styled(Box)(inlineBaseStyle, inlineSpaceStyle), Inline = forwardRef(function(props, ref) {
2953
2953
  const $ = c(13);
2954
- let childrenProp, space, restProps, as;
2954
+ let as, childrenProp, restProps, space;
2955
2955
  $[0] !== props ? ({
2956
2956
  as,
2957
2957
  children: childrenProp,
2958
2958
  space,
2959
2959
  ...restProps
2960
- } = props, $[0] = props, $[1] = childrenProp, $[2] = space, $[3] = restProps, $[4] = as) : (childrenProp = $[1], space = $[2], restProps = $[3], as = $[4]);
2960
+ } = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
2961
2961
  let t0, t1;
2962
2962
  if ($[5] !== childrenProp) {
2963
2963
  let t22;
@@ -2967,7 +2967,7 @@ const Root$m = styled(Box)(inlineBaseStyle, inlineSpaceStyle), Inline = forwardR
2967
2967
  t0 = t1;
2968
2968
  const children = t0, t2 = useArrayProp(space);
2969
2969
  let t3;
2970
- return $[8] !== restProps || $[9] !== t2 || $[10] !== as || $[11] !== children ? (t3 = /* @__PURE__ */ jsx(Root$m, { "data-ui": "Inline", ...restProps, $space: t2, forwardedAs: as, ref, children }), $[8] = restProps, $[9] = t2, $[10] = as, $[11] = children, $[12] = t3) : t3 = $[12], t3;
2970
+ return $[8] !== as || $[9] !== children || $[10] !== restProps || $[11] !== t2 ? (t3 = /* @__PURE__ */ jsx(Root$m, { "data-ui": "Inline", ...restProps, $space: t2, forwardedAs: as, ref, children }), $[8] = as, $[9] = children, $[10] = restProps, $[11] = t2, $[12] = t3) : t3 = $[12], t3;
2971
2971
  });
2972
2972
  Inline.displayName = "ForwardRef(Inline)";
2973
2973
  function kbdStyle() {
@@ -2989,21 +2989,21 @@ function kbdStyle() {
2989
2989
  }
2990
2990
  const Root$l = styled.kbd(responsiveRadiusStyle, kbdStyle), KBD = forwardRef(function(props, ref) {
2991
2991
  const $ = c(17);
2992
- let t0, t1, t2, children, restProps;
2992
+ let children, restProps, t0, t1, t2;
2993
2993
  $[0] !== props ? ({
2994
2994
  children,
2995
2995
  fontSize: t0,
2996
2996
  padding: t1,
2997
2997
  radius: t2,
2998
2998
  ...restProps
2999
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = children, $[5] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], children = $[4], restProps = $[5]);
2999
+ } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2) : (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]);
3000
3000
  const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, t3 = useArrayProp(t2 === void 0 ? 2 : t2);
3001
3001
  let t4;
3002
- $[6] !== fontSize2 || $[7] !== children ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = fontSize2, $[7] = children, $[8] = t4) : t4 = $[8];
3002
+ $[6] !== children || $[7] !== fontSize2 ? (t4 = /* @__PURE__ */ jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = children, $[7] = fontSize2, $[8] = t4) : t4 = $[8];
3003
3003
  let t5;
3004
3004
  $[9] !== padding || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsx(Box, { as: "span", padding, children: t4 }), $[9] = padding, $[10] = t4, $[11] = t5) : t5 = $[11];
3005
3005
  let t6;
3006
- return $[12] !== restProps || $[13] !== t3 || $[14] !== ref || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$l, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = restProps, $[13] = t3, $[14] = ref, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
3006
+ return $[12] !== ref || $[13] !== restProps || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$l, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = ref, $[13] = restProps, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
3007
3007
  });
3008
3008
  KBD.displayName = "ForwardRef(KBD)";
3009
3009
  const origin = {
@@ -3127,13 +3127,13 @@ const Root$k = styled.div(({
3127
3127
  fill: var(--card-bg-color);
3128
3128
  `, Arrow = forwardRef(function(props, ref) {
3129
3129
  const $ = c(24);
3130
- let t0, w, h, restProps;
3130
+ let h, restProps, t0, w;
3131
3131
  $[0] !== props ? ({
3132
3132
  width: w,
3133
3133
  height: h,
3134
3134
  radius: t0,
3135
3135
  ...restProps
3136
- } = props, $[0] = props, $[1] = t0, $[2] = w, $[3] = h, $[4] = restProps) : (t0 = $[1], w = $[2], h = $[3], restProps = $[4]);
3136
+ } = props, $[0] = props, $[1] = h, $[2] = restProps, $[3] = t0, $[4] = w) : (h = $[1], restProps = $[2], t0 = $[3], w = $[4]);
3137
3137
  const radius = t0 === void 0 ? 0 : t0, {
3138
3138
  card
3139
3139
  } = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2, points = [{
@@ -3163,13 +3163,13 @@ const Root$k = styled.div(({
3163
3163
  let t5;
3164
3164
  $[11] !== fillPath ? (t5 = /* @__PURE__ */ jsx(ShapePath, { d: fillPath }), $[11] = fillPath, $[12] = t5) : t5 = $[12];
3165
3165
  let t6;
3166
- $[13] !== w || $[14] !== t1 || $[15] !== t2 || $[16] !== t4 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsxs("svg", { width: w, height: w, viewBox: t1, children: [
3166
+ $[13] !== t1 || $[14] !== t2 || $[15] !== t4 || $[16] !== t5 || $[17] !== w ? (t6 = /* @__PURE__ */ jsxs("svg", { width: w, height: w, viewBox: t1, children: [
3167
3167
  t2,
3168
3168
  t4,
3169
3169
  t5
3170
- ] }), $[13] = w, $[14] = t1, $[15] = t2, $[16] = t4, $[17] = t5, $[18] = t6) : t6 = $[18];
3170
+ ] }), $[13] = t1, $[14] = t2, $[15] = t4, $[16] = t5, $[17] = w, $[18] = t6) : t6 = $[18];
3171
3171
  let t7;
3172
- return $[19] !== restProps || $[20] !== w || $[21] !== ref || $[22] !== t6 ? (t7 = /* @__PURE__ */ jsx(Root$k, { ...restProps, $w: w, ref, children: t6 }), $[19] = restProps, $[20] = w, $[21] = ref, $[22] = t6, $[23] = t7) : t7 = $[23], t7;
3172
+ return $[19] !== ref || $[20] !== restProps || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsx(Root$k, { ...restProps, $w: w, ref, children: t6 }), $[19] = ref, $[20] = restProps, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23], t7;
3173
3173
  });
3174
3174
  Arrow.displayName = "ForwardRef(Arrow)";
3175
3175
  const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
@@ -3185,7 +3185,7 @@ function BoundaryElementProvider(props) {
3185
3185
  }, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
3186
3186
  const value = t0;
3187
3187
  let t2;
3188
- return $[2] !== value || $[3] !== children ? (t2 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = value, $[3] = children, $[4] = t2) : t2 = $[4], t2;
3188
+ return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
3189
3189
  }
3190
3190
  BoundaryElementProvider.displayName = "BoundaryElementProvider";
3191
3191
  function isRecord(value) {
@@ -3223,12 +3223,12 @@ function findMinBreakpoints(media, width) {
3223
3223
  }
3224
3224
  const ElementQuery = forwardRef(function(props, forwardedRef) {
3225
3225
  const $ = c(18), theme = useTheme_v2();
3226
- let _media, restProps, children;
3226
+ let _media, children, restProps;
3227
3227
  $[0] !== props ? ({
3228
3228
  children,
3229
3229
  media: _media,
3230
3230
  ...restProps
3231
- } = props, $[0] = props, $[1] = _media, $[2] = restProps, $[3] = children) : (_media = $[1], restProps = $[2], children = $[3]);
3231
+ } = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps) : (_media = $[1], children = $[2], restProps = $[3]);
3232
3232
  const media = _media ?? theme.media, [element, setElement] = useState(null), elementSize = useElementSize(element);
3233
3233
  let t0;
3234
3234
  t0 = elementSize?.border.width ?? window.innerWidth;
@@ -3252,7 +3252,7 @@ const ElementQuery = forwardRef(function(props, forwardedRef) {
3252
3252
  let t5, t6;
3253
3253
  $[10] !== element ? (t5 = () => element, t6 = [element], $[10] = element, $[11] = t5, $[12] = t6) : (t5 = $[11], t6 = $[12]), useImperativeHandle(forwardedRef, t5, t6);
3254
3254
  let t7;
3255
- return $[13] !== restProps || $[14] !== max || $[15] !== min || $[16] !== children ? (t7 = /* @__PURE__ */ jsx("div", { "data-ui": "ElementQuery", ...restProps, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[13] = restProps, $[14] = max, $[15] = min, $[16] = children, $[17] = t7) : t7 = $[17], t7;
3255
+ return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t7 = /* @__PURE__ */ jsx("div", { "data-ui": "ElementQuery", ...restProps, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t7) : t7 = $[17], t7;
3256
3256
  });
3257
3257
  ElementQuery.displayName = "ForwardRef(ElementQuery)";
3258
3258
  class ErrorBoundary extends Component {
@@ -3409,7 +3409,7 @@ function LayerProvider(props) {
3409
3409
  }, $[3] = parentRegisterChild, $[4] = setChildLayers, $[5] = t3) : t3 = $[5];
3410
3410
  const registerChild = t3;
3411
3411
  let t4, t5;
3412
- $[6] !== parentRegisterChild || $[7] !== level ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = parentRegisterChild, $[7] = level, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
3412
+ $[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
3413
3413
  let t6, t7;
3414
3414
  $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t7 = {
3415
3415
  version: 0,
@@ -3421,21 +3421,21 @@ function LayerProvider(props) {
3421
3421
  }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t7) : t7 = $[15], t6 = t7;
3422
3422
  const value = t6;
3423
3423
  let t8;
3424
- return $[16] !== value || $[17] !== children ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = value, $[17] = children, $[18] = t8) : t8 = $[18], t8;
3424
+ return $[16] !== children || $[17] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t8) : t8 = $[18], t8;
3425
3425
  }
3426
3426
  LayerProvider.displayName = "LayerProvider";
3427
3427
  const Root$j = styled.div({
3428
3428
  position: "relative"
3429
3429
  }), LayerChildren = forwardRef(function(props, forwardedRef) {
3430
3430
  const $ = c(22);
3431
- let t0, onActivate, onFocus, restProps, children;
3431
+ let children, onActivate, onFocus, restProps, t0;
3432
3432
  $[0] !== props ? ({
3433
3433
  children,
3434
3434
  onActivate,
3435
3435
  onFocus,
3436
3436
  style: t0,
3437
3437
  ...restProps
3438
- } = props, $[0] = props, $[1] = t0, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = children) : (t0 = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], children = $[5]);
3438
+ } = props, $[0] = props, $[1] = children, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = t0) : (children = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]);
3439
3439
  const style = t0 === void 0 ? EMPTY_RECORD : t0, {
3440
3440
  zIndex,
3441
3441
  isTopLayer
@@ -3449,11 +3449,11 @@ const Root$j = styled.div({
3449
3449
  }), isTopLayerRef.current = isTopLayer;
3450
3450
  }, t3 = [isTopLayer, onActivate], $[7] = isTopLayer, $[8] = onActivate, $[9] = t2, $[10] = t3) : (t2 = $[9], t3 = $[10]), useEffect(t2, t3);
3451
3451
  let t4;
3452
- $[11] !== onFocus || $[12] !== isTopLayer ? (t4 = (event) => {
3452
+ $[11] !== isTopLayer || $[12] !== onFocus ? (t4 = (event) => {
3453
3453
  onFocus?.(event);
3454
3454
  const rootElement = ref.current, target = document.activeElement;
3455
3455
  !isTopLayer || !rootElement || !target || isHTMLElement(target) && containsOrEqualsElement(rootElement, target) && (lastFocusedRef.current = target);
3456
- }, $[11] = onFocus, $[12] = isTopLayer, $[13] = t4) : t4 = $[13];
3456
+ }, $[11] = isTopLayer, $[12] = onFocus, $[13] = t4) : t4 = $[13];
3457
3457
  const handleFocus = t4;
3458
3458
  let t5;
3459
3459
  $[14] !== style || $[15] !== zIndex ? (t5 = {
@@ -3461,20 +3461,20 @@ const Root$j = styled.div({
3461
3461
  zIndex
3462
3462
  }, $[14] = style, $[15] = zIndex, $[16] = t5) : t5 = $[16];
3463
3463
  let t6;
3464
- return $[17] !== restProps || $[18] !== handleFocus || $[19] !== t5 || $[20] !== children ? (t6 = /* @__PURE__ */ jsx(Root$j, { ...restProps, "data-ui": "Layer", onFocus: handleFocus, ref, style: t5, children }), $[17] = restProps, $[18] = handleFocus, $[19] = t5, $[20] = children, $[21] = t6) : t6 = $[21], t6;
3464
+ return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$j, { ...restProps, "data-ui": "Layer", onFocus: handleFocus, ref, style: t5, children }), $[17] = children, $[18] = handleFocus, $[19] = restProps, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
3465
3465
  }), Layer = forwardRef(function(props, ref) {
3466
3466
  const $ = c(11);
3467
- let t0, restProps, children;
3467
+ let children, restProps, t0;
3468
3468
  $[0] !== props ? ({
3469
3469
  children,
3470
3470
  zOffset: t0,
3471
3471
  ...restProps
3472
- } = props, $[0] = props, $[1] = t0, $[2] = restProps, $[3] = children) : (t0 = $[1], restProps = $[2], children = $[3]);
3472
+ } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0) : (children = $[1], restProps = $[2], t0 = $[3]);
3473
3473
  const zOffset = t0 === void 0 ? 1 : t0;
3474
3474
  let t1;
3475
- $[4] !== restProps || $[5] !== ref || $[6] !== children ? (t1 = /* @__PURE__ */ jsx(LayerChildren, { ...restProps, ref, children }), $[4] = restProps, $[5] = ref, $[6] = children, $[7] = t1) : t1 = $[7];
3475
+ $[4] !== children || $[5] !== ref || $[6] !== restProps ? (t1 = /* @__PURE__ */ jsx(LayerChildren, { ...restProps, ref, children }), $[4] = children, $[5] = ref, $[6] = restProps, $[7] = t1) : t1 = $[7];
3476
3476
  let t2;
3477
- return $[8] !== zOffset || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: t1 }), $[8] = zOffset, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
3477
+ return $[8] !== t1 || $[9] !== zOffset ? (t2 = /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: t1 }), $[8] = t1, $[9] = zOffset, $[10] = t2) : t2 = $[10], t2;
3478
3478
  });
3479
3479
  Layer.displayName = "ForwardRef(Layer)";
3480
3480
  const key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
@@ -3515,15 +3515,15 @@ function PortalProvider(props) {
3515
3515
  let t0;
3516
3516
  const t1 = boundaryElement || null, t2 = element || fallbackElement;
3517
3517
  let t3;
3518
- $[0] !== t1 || $[1] !== t2 || $[2] !== elements ? (t3 = {
3518
+ $[0] !== elements || $[1] !== t1 || $[2] !== t2 ? (t3 = {
3519
3519
  version: 0,
3520
3520
  boundaryElement: t1,
3521
3521
  element: t2,
3522
3522
  elements
3523
- }, $[0] = t1, $[1] = t2, $[2] = elements, $[3] = t3) : t3 = $[3], t0 = t3;
3523
+ }, $[0] = elements, $[1] = t1, $[2] = t2, $[3] = t3) : t3 = $[3], t0 = t3;
3524
3524
  const value = t0;
3525
3525
  let t4;
3526
- return $[4] !== value || $[5] !== children ? (t4 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[4] = value, $[5] = children, $[6] = t4) : t4 = $[6], t4;
3526
+ return $[4] !== children || $[5] !== value ? (t4 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[4] = children, $[5] = value, $[6] = t4) : t4 = $[6], t4;
3527
3527
  }
3528
3528
  function _temp2$1() {
3529
3529
  return null;
@@ -3557,7 +3557,7 @@ const Root$i = styled.div`
3557
3557
  children
3558
3558
  } = props;
3559
3559
  let t0;
3560
- return $[0] !== as || $[1] !== ref || $[2] !== children ? (t0 = /* @__PURE__ */ jsx(Root$i, { "aria-hidden": !0, as, "data-ui": "SrOnly", ref, children }), $[0] = as, $[1] = ref, $[2] = children, $[3] = t0) : t0 = $[3], t0;
3560
+ return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsx(Root$i, { "aria-hidden": !0, as, "data-ui": "SrOnly", ref, children }), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
3561
3561
  });
3562
3562
  SrOnly.displayName = "ForwardRef(SrOnly)";
3563
3563
  const Root$h = styled.div`
@@ -3568,7 +3568,7 @@ const Root$h = styled.div`
3568
3568
  right: 0;
3569
3569
  `, VirtualList = forwardRef(function(props, forwardedRef) {
3570
3570
  const $ = c(56);
3571
- let t0, t1, t2, renderItem, onChange, getItemKey, restProps;
3571
+ let getItemKey, onChange, renderItem, restProps, t0, t1, t2;
3572
3572
  $[0] !== props ? ({
3573
3573
  as: t0,
3574
3574
  gap: t1,
@@ -3577,7 +3577,7 @@ const Root$h = styled.div`
3577
3577
  onChange,
3578
3578
  renderItem,
3579
3579
  ...restProps
3580
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = renderItem, $[5] = onChange, $[6] = getItemKey, $[7] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], renderItem = $[4], onChange = $[5], getItemKey = $[6], restProps = $[7]);
3580
+ } = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2) : (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]);
3581
3581
  const as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1;
3582
3582
  let t3;
3583
3583
  $[8] !== t2 ? (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3) : t3 = $[9];
@@ -3631,8 +3631,8 @@ const Root$h = styled.div`
3631
3631
  };
3632
3632
  }, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), useEffect(t7, t8);
3633
3633
  const len = items.length, height = itemHeight ? len * (itemHeight + space[gap]) - space[gap] : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
3634
- let t9, t10;
3635
- $[16] !== onChange || $[17] !== fromIndex || $[18] !== space || $[19] !== gap || $[20] !== itemHeight || $[21] !== scrollHeight || $[22] !== scrollTop || $[23] !== toIndex ? (t9 = () => {
3634
+ let t10, t9;
3635
+ $[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
3636
3636
  onChange && onChange({
3637
3637
  fromIndex,
3638
3638
  gap: space[gap],
@@ -3641,7 +3641,7 @@ const Root$h = styled.div`
3641
3641
  scrollTop,
3642
3642
  toIndex
3643
3643
  });
3644
- }, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] = onChange, $[17] = fromIndex, $[18] = space, $[19] = gap, $[20] = itemHeight, $[21] = scrollHeight, $[22] = scrollTop, $[23] = toIndex, $[24] = t9, $[25] = t10) : (t9 = $[24], t10 = $[25]), useEffect(t9, t10);
3644
+ }, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), useEffect(t9, t10);
3645
3645
  let t11;
3646
3646
  bb0: {
3647
3647
  if (!renderItem || items.length === 0) {
@@ -3657,14 +3657,14 @@ const Root$h = styled.div`
3657
3657
  break bb0;
3658
3658
  }
3659
3659
  let t122;
3660
- if ($[31] !== items || $[32] !== fromIndex || $[33] !== toIndex || $[34] !== renderItem || $[35] !== getItemKey || $[36] !== itemHeight || $[37] !== space || $[38] !== gap) {
3660
+ if ($[31] !== fromIndex || $[32] !== gap || $[33] !== getItemKey || $[34] !== itemHeight || $[35] !== items || $[36] !== renderItem || $[37] !== space || $[38] !== toIndex) {
3661
3661
  let t132;
3662
- $[40] !== fromIndex || $[41] !== renderItem || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== space || $[45] !== gap ? (t132 = (item, _itemIndex) => {
3662
+ $[40] !== fromIndex || $[41] !== gap || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== renderItem || $[45] !== space ? (t132 = (item, _itemIndex) => {
3663
3663
  const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3664
3664
  return /* @__PURE__ */ jsx(ItemWrapper, { style: {
3665
3665
  top: itemIndex * (itemHeight + space[gap])
3666
3666
  }, children: node }, key2);
3667
- }, $[40] = fromIndex, $[41] = renderItem, $[42] = getItemKey, $[43] = itemHeight, $[44] = space, $[45] = gap, $[46] = t132) : t132 = $[46], t122 = items.slice(fromIndex, toIndex).map(t132), $[31] = items, $[32] = fromIndex, $[33] = toIndex, $[34] = renderItem, $[35] = getItemKey, $[36] = itemHeight, $[37] = space, $[38] = gap, $[39] = t122;
3667
+ }, $[40] = fromIndex, $[41] = gap, $[42] = getItemKey, $[43] = itemHeight, $[44] = renderItem, $[45] = space, $[46] = t132) : t132 = $[46], t122 = items.slice(fromIndex, toIndex).map(t132), $[31] = fromIndex, $[32] = gap, $[33] = getItemKey, $[34] = itemHeight, $[35] = items, $[36] = renderItem, $[37] = space, $[38] = toIndex, $[39] = t122;
3668
3668
  } else
3669
3669
  t122 = $[39];
3670
3670
  t11 = t122;
@@ -3676,7 +3676,7 @@ const Root$h = styled.div`
3676
3676
  }, $[47] = height, $[48] = t13) : t13 = $[48], t12 = t13;
3677
3677
  const wrapperStyle = t12;
3678
3678
  let t14;
3679
- $[49] !== wrapperStyle || $[50] !== children ? (t14 = /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[49] = wrapperStyle, $[50] = children, $[51] = t14) : t14 = $[51];
3679
+ $[49] !== children || $[50] !== wrapperStyle ? (t14 = /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[49] = children, $[50] = wrapperStyle, $[51] = t14) : t14 = $[51];
3680
3680
  let t15;
3681
3681
  return $[52] !== as || $[53] !== restProps || $[54] !== t14 ? (t15 = /* @__PURE__ */ jsx(Root$h, { as, "data-ui": "VirtualList", ...restProps, ref, children: t14 }), $[52] = as, $[53] = restProps, $[54] = t14, $[55] = t15) : t15 = $[55], t15;
3682
3682
  });
@@ -3765,7 +3765,7 @@ const MotionCard$1 = styled(motion(Card))`
3765
3765
  }
3766
3766
  `, PopoverCard = memo(forwardRef(function(props, ref) {
3767
3767
  const $ = c(60);
3768
- let marginsProp, xProp, yProp, animate, originX, originY, strategy, style, width, arrowX, arrowY, restProps, padding, children, overflow, arrow2, arrowRef, placement, radius, scheme, shadow, tone;
3768
+ let animate, arrow2, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
3769
3769
  $[0] !== props ? ({
3770
3770
  __unstable_margins: marginsProp,
3771
3771
  animate,
@@ -3789,7 +3789,7 @@ const MotionCard$1 = styled(motion(Card))`
3789
3789
  x: xProp,
3790
3790
  y: yProp,
3791
3791
  ...restProps
3792
- } = props, $[0] = props, $[1] = marginsProp, $[2] = xProp, $[3] = yProp, $[4] = animate, $[5] = originX, $[6] = originY, $[7] = strategy, $[8] = style, $[9] = width, $[10] = arrowX, $[11] = arrowY, $[12] = restProps, $[13] = padding, $[14] = children, $[15] = overflow, $[16] = arrow2, $[17] = arrowRef, $[18] = placement, $[19] = radius, $[20] = scheme, $[21] = shadow, $[22] = tone) : (marginsProp = $[1], xProp = $[2], yProp = $[3], animate = $[4], originX = $[5], originY = $[6], strategy = $[7], style = $[8], width = $[9], arrowX = $[10], arrowY = $[11], restProps = $[12], padding = $[13], children = $[14], overflow = $[15], arrow2 = $[16], arrowRef = $[17], placement = $[18], radius = $[19], scheme = $[20], shadow = $[21], tone = $[22]);
3792
+ } = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = restProps, $[15] = scheme, $[16] = shadow, $[17] = strategy, $[18] = style, $[19] = tone, $[20] = width, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], restProps = $[14], scheme = $[15], shadow = $[16], strategy = $[17], style = $[18], tone = $[19], width = $[20], xProp = $[21], yProp = $[22]);
3793
3793
  const {
3794
3794
  zIndex
3795
3795
  } = useLayer();
@@ -3799,7 +3799,7 @@ const MotionCard$1 = styled(motion(Card))`
3799
3799
  let t1;
3800
3800
  const t2 = animate ? "transform" : void 0;
3801
3801
  let t3;
3802
- $[23] !== x || $[24] !== originX || $[25] !== originY || $[26] !== strategy || $[27] !== y || $[28] !== width || $[29] !== zIndex || $[30] !== t2 || $[31] !== style ? (t3 = {
3802
+ $[23] !== originX || $[24] !== originY || $[25] !== strategy || $[26] !== style || $[27] !== t2 || $[28] !== width || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t3 = {
3803
3803
  left: x,
3804
3804
  originX,
3805
3805
  originY,
@@ -3809,7 +3809,7 @@ const MotionCard$1 = styled(motion(Card))`
3809
3809
  zIndex,
3810
3810
  willChange: t2,
3811
3811
  ...style
3812
- }, $[23] = x, $[24] = originX, $[25] = originY, $[26] = strategy, $[27] = y, $[28] = width, $[29] = zIndex, $[30] = t2, $[31] = style, $[32] = t3) : t3 = $[32], t1 = t3;
3812
+ }, $[23] = originX, $[24] = originY, $[25] = strategy, $[26] = style, $[27] = t2, $[28] = width, $[29] = x, $[30] = y, $[31] = zIndex, $[32] = t3) : t3 = $[32], t1 = t3;
3813
3813
  const rootStyle2 = t1;
3814
3814
  let t4;
3815
3815
  const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
@@ -3824,16 +3824,16 @@ const MotionCard$1 = styled(motion(Card))`
3824
3824
  let t9;
3825
3825
  $[36] !== animate ? (t9 = animate ? POPOVER_MOTION_PROPS : {}, $[36] = animate, $[37] = t9) : t9 = $[37];
3826
3826
  let t10;
3827
- $[38] !== padding || $[39] !== children ? (t10 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[38] = padding, $[39] = children, $[40] = t10) : t10 = $[40];
3827
+ $[38] !== children || $[39] !== padding ? (t10 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[38] = children, $[39] = padding, $[40] = t10) : t10 = $[40];
3828
3828
  let t11;
3829
3829
  $[41] !== overflow || $[42] !== t10 ? (t11 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, overflow, children: t10 }), $[41] = overflow, $[42] = t10, $[43] = t11) : t11 = $[43];
3830
3830
  let t12;
3831
3831
  $[44] !== arrow2 || $[45] !== arrowRef || $[46] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[44] = arrow2, $[45] = arrowRef, $[46] = arrowStyle, $[47] = t12) : t12 = $[47];
3832
3832
  let t13;
3833
- return $[48] !== t8 || $[49] !== placement || $[50] !== radius || $[51] !== ref || $[52] !== scheme || $[53] !== shadow || $[54] !== rootStyle2 || $[55] !== tone || $[56] !== t9 || $[57] !== t11 || $[58] !== t12 ? (t13 = /* @__PURE__ */ jsxs(MotionCard$1, { "data-ui": "Popover", ...t8, "data-placement": placement, radius, ref, scheme, shadow, sizing: "border", style: rootStyle2, tone, ...t9, children: [
3833
+ return $[48] !== placement || $[49] !== radius || $[50] !== ref || $[51] !== rootStyle2 || $[52] !== scheme || $[53] !== shadow || $[54] !== t11 || $[55] !== t12 || $[56] !== t8 || $[57] !== t9 || $[58] !== tone ? (t13 = /* @__PURE__ */ jsxs(MotionCard$1, { "data-ui": "Popover", ...t8, "data-placement": placement, radius, ref, scheme, shadow, sizing: "border", style: rootStyle2, tone, ...t9, children: [
3834
3834
  t11,
3835
3835
  t12
3836
- ] }), $[48] = t8, $[49] = placement, $[50] = radius, $[51] = ref, $[52] = scheme, $[53] = shadow, $[54] = rootStyle2, $[55] = tone, $[56] = t9, $[57] = t11, $[58] = t12, $[59] = t13) : t13 = $[59], t13;
3836
+ ] }), $[48] = placement, $[49] = radius, $[50] = ref, $[51] = rootStyle2, $[52] = scheme, $[53] = shadow, $[54] = t11, $[55] = t12, $[56] = t8, $[57] = t9, $[58] = tone, $[59] = t13) : t13 = $[59], t13;
3837
3837
  }));
3838
3838
  PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
3839
3839
  const Popover = memo(forwardRef(function(props, forwardedRef) {
@@ -4087,7 +4087,7 @@ function inputElementStyle(props) {
4087
4087
  }
4088
4088
  const Root$g = styled.div(radioBaseStyle), Input$4 = styled.input(inputElementStyle), Radio = forwardRef(function(props, forwardedRef) {
4089
4089
  const $ = c(19);
4090
- let customValidity, disabled, readOnly, restProps, className, style;
4090
+ let className, customValidity, disabled, readOnly, restProps, style;
4091
4091
  $[0] !== props ? ({
4092
4092
  className,
4093
4093
  disabled,
@@ -4095,13 +4095,13 @@ const Root$g = styled.div(radioBaseStyle), Input$4 = styled.input(inputElementSt
4095
4095
  customValidity,
4096
4096
  readOnly,
4097
4097
  ...restProps
4098
- } = props, $[0] = props, $[1] = customValidity, $[2] = disabled, $[3] = readOnly, $[4] = restProps, $[5] = className, $[6] = style) : (customValidity = $[1], disabled = $[2], readOnly = $[3], restProps = $[4], className = $[5], style = $[6]);
4098
+ } = props, $[0] = props, $[1] = className, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = style) : (className = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], style = $[6]);
4099
4099
  const ref = useRef(null);
4100
4100
  let t0;
4101
4101
  $[7] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[7] = t0) : t0 = $[7], useImperativeHandle(forwardedRef, t0), useCustomValidity(ref, customValidity);
4102
4102
  const t1 = !disabled && readOnly ? "" : void 0, t2 = customValidity ? "" : void 0, t3 = disabled || readOnly;
4103
4103
  let t4;
4104
- $[8] !== t1 || $[9] !== t2 || $[10] !== restProps || $[11] !== t3 || $[12] !== readOnly ? (t4 = /* @__PURE__ */ jsx(Input$4, { "data-read-only": t1, "data-error": t2, ...restProps, disabled: t3, readOnly, ref, type: "radio" }), $[8] = t1, $[9] = t2, $[10] = restProps, $[11] = t3, $[12] = readOnly, $[13] = t4) : t4 = $[13];
4104
+ $[8] !== readOnly || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsx(Input$4, { "data-read-only": t1, "data-error": t2, ...restProps, disabled: t3, readOnly, ref, type: "radio" }), $[8] = readOnly, $[9] = restProps, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
4105
4105
  let t5;
4106
4106
  $[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsx("span", {}), $[14] = t5) : t5 = $[14];
4107
4107
  let t6;
@@ -4255,7 +4255,7 @@ const selectStyle = {
4255
4255
  iconBox: iconBoxStyle
4256
4256
  }, Root$f = styled.div(selectStyle.root), Input$3 = styled.select(selectStyle.input), IconBox = styled(Box)(selectStyle.iconBox), Select = forwardRef(function(props, forwardedRef) {
4257
4257
  const $ = c(29);
4258
- let t0, t1, t2, t3, customValidity, disabled, readOnly, restProps, children;
4258
+ let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
4259
4259
  $[0] !== props ? ({
4260
4260
  children,
4261
4261
  customValidity,
@@ -4266,13 +4266,13 @@ const selectStyle = {
4266
4266
  readOnly,
4267
4267
  space: t3,
4268
4268
  ...restProps
4269
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = customValidity, $[6] = disabled, $[7] = readOnly, $[8] = restProps, $[9] = children) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], customValidity = $[5], disabled = $[6], readOnly = $[7], restProps = $[8], children = $[9]);
4269
+ } = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3) : (children = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9]);
4270
4270
  const fontSize2 = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, space = t3 === void 0 ? 3 : t3, ref = useRef(null);
4271
4271
  let t4;
4272
4272
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
4273
4273
  const t5 = !disabled && readOnly ? "" : void 0, t6 = useArrayProp(fontSize2), t7 = useArrayProp(padding), t8 = useArrayProp(radius), t9 = useArrayProp(space), t10 = disabled || readOnly;
4274
4274
  let t11;
4275
- $[11] !== t5 || $[12] !== restProps || $[13] !== t6 || $[14] !== t7 || $[15] !== t8 || $[16] !== t9 || $[17] !== t10 || $[18] !== children ? (t11 = /* @__PURE__ */ jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[11] = t5, $[12] = restProps, $[13] = t6, $[14] = t7, $[15] = t8, $[16] = t9, $[17] = t10, $[18] = children, $[19] = t11) : t11 = $[19];
4275
+ $[11] !== children || $[12] !== restProps || $[13] !== t10 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9 ? (t11 = /* @__PURE__ */ jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[11] = children, $[12] = restProps, $[13] = t10, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8, $[18] = t9, $[19] = t11) : t11 = $[19];
4276
4276
  let t12;
4277
4277
  $[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[20] = t12) : t12 = $[20];
4278
4278
  let t13;
@@ -4310,15 +4310,15 @@ function responsiveStackSpaceStyle(props) {
4310
4310
  }
4311
4311
  const Root$e = styled(Box)(stackBaseStyle, responsiveStackSpaceStyle), Stack = forwardRef(function(props, ref) {
4312
4312
  const $ = c(10);
4313
- let as, space, restProps;
4313
+ let as, restProps, space;
4314
4314
  $[0] !== props ? ({
4315
4315
  as,
4316
4316
  space,
4317
4317
  ...restProps
4318
- } = props, $[0] = props, $[1] = as, $[2] = space, $[3] = restProps) : (as = $[1], space = $[2], restProps = $[3]);
4318
+ } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
4319
4319
  const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(space);
4320
4320
  let t2;
4321
- return $[4] !== t0 || $[5] !== restProps || $[6] !== t1 || $[7] !== as || $[8] !== ref ? (t2 = /* @__PURE__ */ jsx(Root$e, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[4] = t0, $[5] = restProps, $[6] = t1, $[7] = as, $[8] = ref, $[9] = t2) : t2 = $[9], t2;
4321
+ return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t0 || $[8] !== t1 ? (t2 = /* @__PURE__ */ jsx(Root$e, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2) : t2 = $[9], t2;
4322
4322
  });
4323
4323
  Stack.displayName = "ForwardRef(Stack)";
4324
4324
  function switchBaseStyles() {
@@ -4476,7 +4476,7 @@ function switchThumbStyles(props) {
4476
4476
  }
4477
4477
  const Root$d = styled.span(switchBaseStyles), Input$2 = styled.input(switchInputStyles), Representation = styled.span(switchRepresentationStyles), Track = styled.span(switchTrackStyles), Thumb = styled.span(switchThumbStyles), Switch = forwardRef(function(props, forwardedRef) {
4478
4478
  const $ = c(26);
4479
- let indeterminate, disabled, readOnly, checked, restProps, className, style;
4479
+ let checked, className, disabled, indeterminate, readOnly, restProps, style;
4480
4480
  $[0] !== props ? ({
4481
4481
  checked,
4482
4482
  className,
@@ -4485,7 +4485,7 @@ const Root$d = styled.span(switchBaseStyles), Input$2 = styled.input(switchInput
4485
4485
  readOnly,
4486
4486
  style,
4487
4487
  ...restProps
4488
- } = props, $[0] = props, $[1] = indeterminate, $[2] = disabled, $[3] = readOnly, $[4] = checked, $[5] = restProps, $[6] = className, $[7] = style) : (indeterminate = $[1], disabled = $[2], readOnly = $[3], checked = $[4], restProps = $[5], className = $[6], style = $[7]);
4488
+ } = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = disabled, $[4] = indeterminate, $[5] = readOnly, $[6] = restProps, $[7] = style) : (checked = $[1], className = $[2], disabled = $[3], indeterminate = $[4], readOnly = $[5], restProps = $[6], style = $[7]);
4489
4489
  const ref = useRef(null);
4490
4490
  let t0;
4491
4491
  $[8] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[8] = t0) : t0 = $[8], useImperativeHandle(forwardedRef, t0);
@@ -4495,7 +4495,7 @@ const Root$d = styled.span(switchBaseStyles), Input$2 = styled.input(switchInput
4495
4495
  }, t2 = [indeterminate], $[9] = indeterminate, $[10] = t1, $[11] = t2) : (t1 = $[10], t2 = $[11]), useEffect(t1, t2);
4496
4496
  const t3 = !disabled && readOnly ? "" : void 0, t4 = indeterminate !== !0 && checked, t5 = disabled || readOnly;
4497
4497
  let t6;
4498
- $[12] !== t3 || $[13] !== restProps || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$2, { "data-read-only": t3, ...restProps, checked: t4, disabled: t5, type: "checkbox", ref }), $[12] = t3, $[13] = restProps, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
4498
+ $[12] !== restProps || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsx(Input$2, { "data-read-only": t3, ...restProps, checked: t4, disabled: t5, type: "checkbox", ref }), $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
4499
4499
  let t7;
4500
4500
  $[17] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsx(Track, {}), $[17] = t7) : t7 = $[17];
4501
4501
  let t8;
@@ -4517,7 +4517,7 @@ const Root$c = styled.span(textInputRootStyle), InputRoot$1 = styled.span`
4517
4517
  position: relative;
4518
4518
  `, Input$1 = styled.textarea(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation$1 = styled.div(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = forwardRef(function(props, forwardedRef) {
4519
4519
  const $ = c(29);
4520
- let t0, t1, t2, t3, t4, customValidity, restProps, weight, __unstable_disableFocusRing;
4520
+ let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
4521
4521
  $[0] !== props ? ({
4522
4522
  border: t0,
4523
4523
  customValidity,
@@ -4528,16 +4528,16 @@ const Root$c = styled.span(textInputRootStyle), InputRoot$1 = styled.span`
4528
4528
  weight,
4529
4529
  __unstable_disableFocusRing,
4530
4530
  ...restProps
4531
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = customValidity, $[7] = restProps, $[8] = weight, $[9] = __unstable_disableFocusRing) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], customValidity = $[6], restProps = $[7], weight = $[8], __unstable_disableFocusRing = $[9]);
4531
+ } = props, $[0] = props, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = weight) : (__unstable_disableFocusRing = $[1], customValidity = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], weight = $[9]);
4532
4532
  const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize2 = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = useRef(null), rootTheme = useRootTheme();
4533
4533
  let t5;
4534
4534
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
4535
4535
  const t6 = rootTheme.scheme, t7 = rootTheme.tone, t8 = useArrayProp(fontSize2), t9 = useArrayProp(padding), t10 = rootTheme.scheme, t11 = useArrayProp(0);
4536
4536
  let t12;
4537
- $[11] !== rootTheme.scheme || $[12] !== rootTheme.tone || $[13] !== restProps || $[14] !== t8 || $[15] !== t9 || $[16] !== t11 || $[17] !== weight || $[18] !== disabled ? (t12 = /* @__PURE__ */ jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[11] = rootTheme.scheme, $[12] = rootTheme.tone, $[13] = restProps, $[14] = t8, $[15] = t9, $[16] = t11, $[17] = weight, $[18] = disabled, $[19] = t12) : t12 = $[19];
4537
+ $[11] !== disabled || $[12] !== restProps || $[13] !== rootTheme.scheme || $[14] !== rootTheme.tone || $[15] !== t11 || $[16] !== t8 || $[17] !== t9 || $[18] !== weight ? (t12 = /* @__PURE__ */ jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[11] = disabled, $[12] = restProps, $[13] = rootTheme.scheme, $[14] = rootTheme.tone, $[15] = t11, $[16] = t8, $[17] = t9, $[18] = weight, $[19] = t12) : t12 = $[19];
4538
4538
  const t13 = useArrayProp(radius), t14 = border2 ? "" : void 0;
4539
4539
  let t15;
4540
- $[20] !== t13 || $[21] !== __unstable_disableFocusRing || $[22] !== rootTheme.scheme || $[23] !== rootTheme.tone || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[20] = t13, $[21] = __unstable_disableFocusRing, $[22] = rootTheme.scheme, $[23] = rootTheme.tone, $[24] = t14, $[25] = t15) : t15 = $[25];
4540
+ $[20] !== __unstable_disableFocusRing || $[21] !== rootTheme.scheme || $[22] !== rootTheme.tone || $[23] !== t13 || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[20] = __unstable_disableFocusRing, $[21] = rootTheme.scheme, $[22] = rootTheme.tone, $[23] = t13, $[24] = t14, $[25] = t15) : t15 = $[25];
4541
4541
  let t16;
4542
4542
  return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsx(Root$c, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxs(InputRoot$1, { children: [
4543
4543
  t12,
@@ -4593,7 +4593,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
4593
4593
  }
4594
4594
  }), TextInput = forwardRef(function(props, forwardedRef) {
4595
4595
  const $ = c(86);
4596
- let t0, t1, t2, t3, t4, t5, t6, clearButton, IconComponent, IconRightComponent, suffix, prefix, customValidity, onClear, __unstable_disableFocusRing, readOnly, restProps, weight;
4596
+ let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
4597
4597
  $[0] !== props ? ({
4598
4598
  __unstable_disableFocusRing,
4599
4599
  border: t0,
@@ -4613,7 +4613,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
4613
4613
  type: t6,
4614
4614
  weight,
4615
4615
  ...restProps
4616
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = t6, $[8] = clearButton, $[9] = IconComponent, $[10] = IconRightComponent, $[11] = suffix, $[12] = prefix, $[13] = customValidity, $[14] = onClear, $[15] = __unstable_disableFocusRing, $[16] = readOnly, $[17] = restProps, $[18] = weight) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], t6 = $[7], clearButton = $[8], IconComponent = $[9], IconRightComponent = $[10], suffix = $[11], prefix = $[12], customValidity = $[13], onClear = $[14], __unstable_disableFocusRing = $[15], readOnly = $[16], restProps = $[17], weight = $[18]);
4616
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = onClear, $[7] = prefix, $[8] = readOnly, $[9] = restProps, $[10] = suffix, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5, $[17] = t6, $[18] = weight) : (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], onClear = $[6], prefix = $[7], readOnly = $[8], restProps = $[9], suffix = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16], t6 = $[17], weight = $[18]);
4617
4617
  const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = useRef(null), rootTheme = useRootTheme(), fontSize2 = useArrayProp(fontSizeProp), padding = useArrayProp(paddingProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp), $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
4618
4618
  let t7;
4619
4619
  $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
@@ -4639,10 +4639,10 @@ const CLEAR_BUTTON_BOX_STYLE = {
4639
4639
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
4640
4640
  ] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] = t14) : t14 = $[33];
4641
4641
  let t15;
4642
- $[34] !== $hasPrefix || $[35] !== __unstable_disableFocusRing || $[36] !== $hasSuffix || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t12 || $[41] !== t13 || $[42] !== t14 ? (t15 = /* @__PURE__ */ jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t12, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
4642
+ $[34] !== $hasPrefix || $[35] !== $hasSuffix || $[36] !== __unstable_disableFocusRing || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t12 || $[41] !== t13 || $[42] !== t14 ? (t15 = /* @__PURE__ */ jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t12, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
4643
4643
  t13,
4644
4644
  t14
4645
- ] }), $[34] = $hasPrefix, $[35] = __unstable_disableFocusRing, $[36] = $hasSuffix, $[37] = radius, $[38] = rootTheme.scheme, $[39] = rootTheme.tone, $[40] = t12, $[41] = t13, $[42] = t14, $[43] = t15) : t15 = $[43], t11 = t15;
4645
+ ] }), $[34] = $hasPrefix, $[35] = $hasSuffix, $[36] = __unstable_disableFocusRing, $[37] = radius, $[38] = rootTheme.scheme, $[39] = rootTheme.tone, $[40] = t12, $[41] = t13, $[42] = t14, $[43] = t15) : t15 = $[43], t11 = t15;
4646
4646
  const presentationNode = t11;
4647
4647
  let t16, t17;
4648
4648
  if ($[44] !== padding) {
@@ -4664,25 +4664,25 @@ const CLEAR_BUTTON_BOX_STYLE = {
4664
4664
  t20 = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
4665
4665
  const clearButtonProps = t20;
4666
4666
  let t21, t22;
4667
- $[50] !== disabled || $[51] !== readOnly || $[52] !== clearButton || $[53] !== customValidity || $[54] !== fontSize2 || $[55] !== clearButtonPadding || $[56] !== radius || $[57] !== clearButtonProps || $[58] !== handleClearClick || $[59] !== clearButtonBoxPadding ? (t22 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[50] = disabled, $[51] = readOnly, $[52] = clearButton, $[53] = customValidity, $[54] = fontSize2, $[55] = clearButtonPadding, $[56] = radius, $[57] = clearButtonProps, $[58] = handleClearClick, $[59] = clearButtonBoxPadding, $[60] = t22) : t22 = $[60], t21 = t22;
4667
+ $[50] !== clearButton || $[51] !== clearButtonBoxPadding || $[52] !== clearButtonPadding || $[53] !== clearButtonProps || $[54] !== customValidity || $[55] !== disabled || $[56] !== fontSize2 || $[57] !== handleClearClick || $[58] !== radius || $[59] !== readOnly ? (t22 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[50] = clearButton, $[51] = clearButtonBoxPadding, $[52] = clearButtonPadding, $[53] = clearButtonProps, $[54] = customValidity, $[55] = disabled, $[56] = fontSize2, $[57] = handleClearClick, $[58] = radius, $[59] = readOnly, $[60] = t22) : t22 = $[60], t21 = t22;
4668
4668
  const clearButtonNode = t21;
4669
4669
  let t23, t24;
4670
- $[61] !== suffix || $[62] !== radius ? (t24 = suffix && /* @__PURE__ */ jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[61] = suffix, $[62] = radius, $[63] = t24) : t24 = $[63], t23 = t24;
4670
+ $[61] !== radius || $[62] !== suffix ? (t24 = suffix && /* @__PURE__ */ jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[61] = radius, $[62] = suffix, $[63] = t24) : t24 = $[63], t23 = t24;
4671
4671
  const suffixNode = t23, t25 = $hasIconRight || $hasClearButton;
4672
4672
  let t26;
4673
- $[64] !== rootTheme.scheme || $[65] !== rootTheme.tone || $[66] !== restProps || $[67] !== fontSize2 || $[68] !== $hasIcon || $[69] !== t25 || $[70] !== padding || $[71] !== space || $[72] !== weight || $[73] !== disabled || $[74] !== readOnly || $[75] !== type ? (t26 = /* @__PURE__ */ jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t25, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[64] = rootTheme.scheme, $[65] = rootTheme.tone, $[66] = restProps, $[67] = fontSize2, $[68] = $hasIcon, $[69] = t25, $[70] = padding, $[71] = space, $[72] = weight, $[73] = disabled, $[74] = readOnly, $[75] = type, $[76] = t26) : t26 = $[76];
4673
+ $[64] !== $hasIcon || $[65] !== disabled || $[66] !== fontSize2 || $[67] !== padding || $[68] !== readOnly || $[69] !== restProps || $[70] !== rootTheme.scheme || $[71] !== rootTheme.tone || $[72] !== space || $[73] !== t25 || $[74] !== type || $[75] !== weight ? (t26 = /* @__PURE__ */ jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t25, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[64] = $hasIcon, $[65] = disabled, $[66] = fontSize2, $[67] = padding, $[68] = readOnly, $[69] = restProps, $[70] = rootTheme.scheme, $[71] = rootTheme.tone, $[72] = space, $[73] = t25, $[74] = type, $[75] = weight, $[76] = t26) : t26 = $[76];
4674
4674
  let t27;
4675
- $[77] !== t26 || $[78] !== presentationNode || $[79] !== clearButtonNode ? (t27 = /* @__PURE__ */ jsxs(InputRoot, { children: [
4675
+ $[77] !== clearButtonNode || $[78] !== presentationNode || $[79] !== t26 ? (t27 = /* @__PURE__ */ jsxs(InputRoot, { children: [
4676
4676
  t26,
4677
4677
  presentationNode,
4678
4678
  clearButtonNode
4679
- ] }), $[77] = t26, $[78] = presentationNode, $[79] = clearButtonNode, $[80] = t27) : t27 = $[80];
4679
+ ] }), $[77] = clearButtonNode, $[78] = presentationNode, $[79] = t26, $[80] = t27) : t27 = $[80];
4680
4680
  let t28;
4681
- return $[81] !== rootTheme.tone || $[82] !== prefixNode || $[83] !== t27 || $[84] !== suffixNode ? (t28 = /* @__PURE__ */ jsxs(Root$b, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4681
+ return $[81] !== prefixNode || $[82] !== rootTheme.tone || $[83] !== suffixNode || $[84] !== t27 ? (t28 = /* @__PURE__ */ jsxs(Root$b, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4682
4682
  prefixNode,
4683
4683
  t27,
4684
4684
  suffixNode
4685
- ] }), $[81] = rootTheme.tone, $[82] = prefixNode, $[83] = t27, $[84] = suffixNode, $[85] = t28) : t28 = $[85], t28;
4685
+ ] }), $[81] = prefixNode, $[82] = rootTheme.tone, $[83] = suffixNode, $[84] = t27, $[85] = t28) : t28 = $[85], t28;
4686
4686
  });
4687
4687
  TextInput.displayName = "ForwardRef(TextInput)";
4688
4688
  function _temp$2(event) {
@@ -4723,7 +4723,7 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4723
4723
  }
4724
4724
  `, TooltipCard = memo(forwardRef(function(props, ref) {
4725
4725
  const $ = c(42);
4726
- let animate, originX, originY, style, arrowX, arrowY, restProps, arrow2, arrowRef, placement, padding, radius, scheme, shadow, children;
4726
+ let animate, arrow2, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
4727
4727
  $[0] !== props ? ({
4728
4728
  animate,
4729
4729
  arrow: arrow2,
@@ -4740,16 +4740,16 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4740
4740
  shadow,
4741
4741
  style,
4742
4742
  ...restProps
4743
- } = props, $[0] = props, $[1] = animate, $[2] = originX, $[3] = originY, $[4] = style, $[5] = arrowX, $[6] = arrowY, $[7] = restProps, $[8] = arrow2, $[9] = arrowRef, $[10] = placement, $[11] = padding, $[12] = radius, $[13] = scheme, $[14] = shadow, $[15] = children) : (animate = $[1], originX = $[2], originY = $[3], style = $[4], arrowX = $[5], arrowY = $[6], restProps = $[7], arrow2 = $[8], arrowRef = $[9], placement = $[10], padding = $[11], radius = $[12], scheme = $[13], shadow = $[14], children = $[15]);
4743
+ } = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = restProps, $[13] = scheme, $[14] = shadow, $[15] = style) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], restProps = $[12], scheme = $[13], shadow = $[14], style = $[15]);
4744
4744
  let t0;
4745
4745
  const t1 = animate ? "transform" : void 0;
4746
4746
  let t2;
4747
- $[16] !== originX || $[17] !== originY || $[18] !== t1 || $[19] !== style ? (t2 = {
4747
+ $[16] !== originX || $[17] !== originY || $[18] !== style || $[19] !== t1 ? (t2 = {
4748
4748
  originX,
4749
4749
  originY,
4750
4750
  willChange: t1,
4751
4751
  ...style
4752
- }, $[16] = originX, $[17] = originY, $[18] = t1, $[19] = style, $[20] = t2) : t2 = $[20], t0 = t2;
4752
+ }, $[16] = originX, $[17] = originY, $[18] = style, $[19] = t1, $[20] = t2) : t2 = $[20], t0 = t2;
4753
4753
  const rootStyle2 = t0;
4754
4754
  let t3;
4755
4755
  const t4 = arrowX !== null ? arrowX : void 0, t5 = arrowY !== null ? arrowY : void 0;
@@ -4766,10 +4766,10 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4766
4766
  let t9;
4767
4767
  $[26] !== arrow2 || $[27] !== arrowRef || $[28] !== arrowStyle ? (t9 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[26] = arrow2, $[27] = arrowRef, $[28] = arrowStyle, $[29] = t9) : t9 = $[29];
4768
4768
  let t10;
4769
- return $[30] !== t7 || $[31] !== placement || $[32] !== padding || $[33] !== radius || $[34] !== ref || $[35] !== scheme || $[36] !== shadow || $[37] !== rootStyle2 || $[38] !== t8 || $[39] !== children || $[40] !== t9 ? (t10 = /* @__PURE__ */ jsxs(MotionCard, { "data-ui": "Tooltip__card", ...t7, "data-placement": placement, padding, radius, ref, scheme, shadow, style: rootStyle2, ...t8, children: [
4769
+ return $[30] !== children || $[31] !== padding || $[32] !== placement || $[33] !== radius || $[34] !== ref || $[35] !== rootStyle2 || $[36] !== scheme || $[37] !== shadow || $[38] !== t7 || $[39] !== t8 || $[40] !== t9 ? (t10 = /* @__PURE__ */ jsxs(MotionCard, { "data-ui": "Tooltip__card", ...t7, "data-placement": placement, padding, radius, ref, scheme, shadow, style: rootStyle2, ...t8, children: [
4770
4770
  children,
4771
4771
  t9
4772
- ] }), $[30] = t7, $[31] = placement, $[32] = padding, $[33] = radius, $[34] = ref, $[35] = scheme, $[36] = shadow, $[37] = rootStyle2, $[38] = t8, $[39] = children, $[40] = t9, $[41] = t10) : t10 = $[41], t10;
4772
+ ] }), $[30] = children, $[31] = padding, $[32] = placement, $[33] = radius, $[34] = ref, $[35] = rootStyle2, $[36] = scheme, $[37] = shadow, $[38] = t7, $[39] = t8, $[40] = t9, $[41] = t10) : t10 = $[41], t10;
4773
4773
  }));
4774
4774
  TooltipCard.displayName = "Memo(ForwardRef(TooltipCard))";
4775
4775
  const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
@@ -4784,17 +4784,17 @@ function TooltipDelayGroupProvider(props) {
4784
4784
  let t0;
4785
4785
  const t1 = isGroupActive ? 1 : openDelay;
4786
4786
  let t2;
4787
- $[0] !== isGroupActive || $[1] !== setIsGroupActive || $[2] !== openTooltipId || $[3] !== setOpenTooltipId || $[4] !== t1 || $[5] !== closeDelay ? (t2 = {
4787
+ $[0] !== closeDelay || $[1] !== isGroupActive || $[2] !== openTooltipId || $[3] !== setIsGroupActive || $[4] !== setOpenTooltipId || $[5] !== t1 ? (t2 = {
4788
4788
  isGroupActive,
4789
4789
  setIsGroupActive,
4790
4790
  openTooltipId,
4791
4791
  setOpenTooltipId,
4792
4792
  openDelay: t1,
4793
4793
  closeDelay
4794
- }, $[0] = isGroupActive, $[1] = setIsGroupActive, $[2] = openTooltipId, $[3] = setOpenTooltipId, $[4] = t1, $[5] = closeDelay, $[6] = t2) : t2 = $[6], t0 = t2;
4794
+ }, $[0] = closeDelay, $[1] = isGroupActive, $[2] = openTooltipId, $[3] = setIsGroupActive, $[4] = setOpenTooltipId, $[5] = t1, $[6] = t2) : t2 = $[6], t0 = t2;
4795
4795
  const value = t0;
4796
4796
  let t3;
4797
- return $[7] !== value || $[8] !== children ? (t3 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[7] = value, $[8] = children, $[9] = t3) : t3 = $[9], t3;
4797
+ return $[7] !== children || $[8] !== value ? (t3 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[7] = children, $[8] = value, $[9] = t3) : t3 = $[9], t3;
4798
4798
  }
4799
4799
  TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
4800
4800
  const Root$a = styled(Layer)`
@@ -4929,19 +4929,19 @@ function useCloseOnMouseLeave(t0) {
4929
4929
  showTooltip
4930
4930
  } = t0;
4931
4931
  let t1;
4932
- $[0] !== referenceElement || $[1] !== handleIsOpenChange ? (t1 = (target, teardown) => {
4932
+ $[0] !== handleIsOpenChange || $[1] !== referenceElement ? (t1 = (target, teardown) => {
4933
4933
  referenceElement && (referenceElement === target || target instanceof Node && referenceElement.contains(target) || (handleIsOpenChange(!1), teardown()));
4934
- }, $[0] = referenceElement, $[1] = handleIsOpenChange, $[2] = t1) : t1 = $[2];
4934
+ }, $[0] = handleIsOpenChange, $[1] = referenceElement, $[2] = t1) : t1 = $[2];
4935
4935
  const onMouseMove = useEffectEvent(t1);
4936
4936
  let t2, t3;
4937
- $[3] !== showTooltip || $[4] !== onMouseMove ? (t2 = () => {
4937
+ $[3] !== onMouseMove || $[4] !== showTooltip ? (t2 = () => {
4938
4938
  if (!showTooltip)
4939
4939
  return;
4940
4940
  const handleMouseMove = (event) => {
4941
4941
  onMouseMove(event.target, () => window.removeEventListener("mousemove", handleMouseMove));
4942
4942
  };
4943
4943
  return window.addEventListener("mousemove", handleMouseMove), () => window.removeEventListener("mousemove", handleMouseMove);
4944
- }, t3 = [onMouseMove, showTooltip], $[3] = showTooltip, $[4] = onMouseMove, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useEffect(t2, t3);
4944
+ }, t3 = [onMouseMove, showTooltip], $[3] = onMouseMove, $[4] = showTooltip, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), useEffect(t2, t3);
4945
4945
  }
4946
4946
  const Root$9 = styled.div`
4947
4947
  line-height: 0;
@@ -4983,7 +4983,7 @@ function AutocompleteOption(props) {
4983
4983
  }, $[3] = handleClick, $[4] = t1) : t1 = $[4];
4984
4984
  const handleKeyDown = t1;
4985
4985
  let t2;
4986
- return $[5] !== selected || $[6] !== id || $[7] !== handleClick || $[8] !== handleKeyDown || $[9] !== children ? (t2 = /* @__PURE__ */ jsx("li", { "aria-selected": selected, "data-ui": "AutocompleteOption", id, role: "option", onClick: handleClick, onKeyDown: handleKeyDown, children }), $[5] = selected, $[6] = id, $[7] = handleClick, $[8] = handleKeyDown, $[9] = children, $[10] = t2) : t2 = $[10], t2;
4986
+ return $[5] !== children || $[6] !== handleClick || $[7] !== handleKeyDown || $[8] !== id || $[9] !== selected ? (t2 = /* @__PURE__ */ jsx("li", { "aria-selected": selected, "data-ui": "AutocompleteOption", id, role: "option", onClick: handleClick, onKeyDown: handleKeyDown, children }), $[5] = children, $[6] = handleClick, $[7] = handleKeyDown, $[8] = id, $[9] = selected, $[10] = t2) : t2 = $[10], t2;
4987
4987
  }
4988
4988
  function autocompleteReducer(state, msg2) {
4989
4989
  return msg2.type === "input/change" ? {
@@ -5025,17 +5025,15 @@ function autocompleteReducer(state, msg2) {
5025
5025
  } : state;
5026
5026
  }
5027
5027
  const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "Home", "End", "PageUp", "PageDown", "Meta", "Tab", "CapsLock"], AUTOCOMPLETE_POPOVER_PLACEMENT = "bottom-start", AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS = ["bottom-start", "top-start"], DEFAULT_RENDER_VALUE = (value, option) => option ? option.value : value, DEFAULT_FILTER_OPTION = (query, option) => option.value.toLowerCase().indexOf(query.toLowerCase()) > -1, InnerAutocomplete = forwardRef(function(props, forwardedRef) {
5028
- const $ = c(187);
5029
- let t0, t1, t2, t3, t4, t5, t6, valueProp, renderOptionProp, filterOptionProp, id, optionsProp, loading, onBlur, onQueryChange, relatedElements, onSelect, onChange, onFocus, openOnFocus, disabled, openButton, readOnly, suffix, restProps, customValidity, icon, prefix, renderPopover;
5030
- $[0] !== props ? ({
5031
- border: t0,
5028
+ const {
5029
+ border: border2 = !0,
5032
5030
  customValidity,
5033
5031
  disabled,
5034
5032
  filterOption: filterOptionProp,
5035
- fontSize: t1,
5033
+ fontSize: fontSize2 = 2,
5036
5034
  icon,
5037
5035
  id,
5038
- listBox: t2,
5036
+ listBox = EMPTY_RECORD,
5039
5037
  loading,
5040
5038
  onBlur,
5041
5039
  onChange,
@@ -5045,63 +5043,39 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
5045
5043
  openButton,
5046
5044
  openOnFocus,
5047
5045
  options: optionsProp,
5048
- padding: t3,
5049
- popover: t4,
5046
+ padding: paddingProp = 3,
5047
+ popover = EMPTY_RECORD,
5050
5048
  prefix,
5051
- radius: t5,
5049
+ radius = 2,
5052
5050
  readOnly,
5053
5051
  relatedElements,
5054
5052
  renderOption: renderOptionProp,
5055
5053
  renderPopover,
5056
- renderValue: t6,
5054
+ renderValue = DEFAULT_RENDER_VALUE,
5057
5055
  suffix,
5058
5056
  value: valueProp,
5059
5057
  ...restProps
5060
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = t6, $[8] = valueProp, $[9] = renderOptionProp, $[10] = filterOptionProp, $[11] = id, $[12] = optionsProp, $[13] = loading, $[14] = onBlur, $[15] = onQueryChange, $[16] = relatedElements, $[17] = onSelect, $[18] = onChange, $[19] = onFocus, $[20] = openOnFocus, $[21] = disabled, $[22] = openButton, $[23] = readOnly, $[24] = suffix, $[25] = restProps, $[26] = customValidity, $[27] = icon, $[28] = prefix, $[29] = renderPopover) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], t6 = $[7], valueProp = $[8], renderOptionProp = $[9], filterOptionProp = $[10], id = $[11], optionsProp = $[12], loading = $[13], onBlur = $[14], onQueryChange = $[15], relatedElements = $[16], onSelect = $[17], onChange = $[18], onFocus = $[19], openOnFocus = $[20], disabled = $[21], openButton = $[22], readOnly = $[23], suffix = $[24], restProps = $[25], customValidity = $[26], icon = $[27], prefix = $[28], renderPopover = $[29]);
5061
- const border2 = t0 === void 0 ? !0 : t0, fontSize2 = t1 === void 0 ? 2 : t1, listBox = t2 === void 0 ? EMPTY_RECORD : t2, paddingProp = t3 === void 0 ? 3 : t3, popover = t4 === void 0 ? EMPTY_RECORD : t4, radius = t5 === void 0 ? 2 : t5, renderValue = t6 === void 0 ? DEFAULT_RENDER_VALUE : t6, t7 = valueProp || null, t8 = valueProp || null;
5062
- let t9;
5063
- $[30] !== t7 || $[31] !== t8 ? (t9 = {
5064
- activeValue: t7,
5058
+ } = props, [state, dispatch] = useReducer(autocompleteReducer, {
5059
+ activeValue: valueProp || null,
5065
5060
  focused: !1,
5066
5061
  listFocused: !1,
5067
5062
  query: null,
5068
- value: t8
5069
- }, $[30] = t7, $[31] = t8, $[32] = t9) : t9 = $[32];
5070
- const [state, dispatch] = useReducer(autocompleteReducer, t9), {
5063
+ value: valueProp || null
5064
+ }), {
5071
5065
  activeValue,
5072
5066
  focused,
5073
5067
  listFocused,
5074
5068
  query,
5075
5069
  value
5076
- } = state;
5077
- let t10;
5078
- $[33] !== paddingProp || $[34] !== fontSize2 ? (t10 = (t112) => {
5079
- const {
5080
- value: value_0
5081
- } = t112;
5082
- return /* @__PURE__ */ jsx(Card, { "data-as": "button", padding: paddingProp, radius: 2, tone: "inherit", children: /* @__PURE__ */ jsx(Text, { size: fontSize2, textOverflow: "ellipsis", children: value_0 }) });
5083
- }, $[33] = paddingProp, $[34] = fontSize2, $[35] = t10) : t10 = $[35];
5084
- const renderOption = typeof renderOptionProp == "function" ? renderOptionProp : t10, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, [rootElement, setRootElement] = useState(null), [resultsPopoverElement, setResultsPopoverElement] = useState(null), [inputElement, setInputElement] = useState(null), listBoxElementRef = useRef(null), listFocusedRef = useRef(!1), valueRef = useRef(value), valuePropRef = useRef(valueProp), [popoverMouseWithin, setPopoverMouseWithin] = useState(!1);
5085
- let t11, t12;
5086
- $[36] !== inputElement ? (t11 = () => inputElement, t12 = [inputElement], $[36] = inputElement, $[37] = t11, $[38] = t12) : (t11 = $[37], t12 = $[38]), useImperativeHandle(forwardedRef, t11, t12);
5087
- const listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : EMPTY_ARRAY, padding = useArrayProp(paddingProp);
5088
- let t13, t14;
5089
- $[39] !== value || $[40] !== options ? (t14 = value !== null ? options.find((o) => o.value === value) : void 0, $[39] = value, $[40] = options, $[41] = t14) : t14 = $[41], t13 = t14;
5090
- const currentOption = t13;
5091
- let t15, t16;
5092
- if ($[42] !== query || $[43] !== filterOption || $[44] !== options) {
5093
- let t172;
5094
- $[46] !== query || $[47] !== filterOption ? (t172 = (option) => query ? filterOption(query, option) : !0, $[46] = query, $[47] = filterOption, $[48] = t172) : t172 = $[48], t16 = options.filter(t172), $[42] = query, $[43] = filterOption, $[44] = options, $[45] = t16;
5095
- } else
5096
- t16 = $[45];
5097
- t15 = t16;
5098
- const filteredOptions = t15, filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null;
5099
- let t17;
5100
- $[49] !== popoverMouseWithin || $[50] !== relatedElements || $[51] !== rootElement || $[52] !== resultsPopoverElement || $[53] !== onQueryChange || $[54] !== onBlur ? (t17 = (event) => {
5070
+ } = state, defaultRenderOption = useCallback(({
5071
+ value: value_0
5072
+ }) => /* @__PURE__ */ jsx(Card, { "data-as": "button", padding: paddingProp, radius: 2, tone: "inherit", children: /* @__PURE__ */ jsx(Text, { size: fontSize2, textOverflow: "ellipsis", children: value_0 }) }), [fontSize2, paddingProp]), renderOption = typeof renderOptionProp == "function" ? renderOptionProp : defaultRenderOption, filterOption = typeof filterOptionProp == "function" ? filterOptionProp : DEFAULT_FILTER_OPTION, rootElementRef = useRef(null), resultsPopoverElementRef = useRef(null), inputElementRef = useRef(null), listBoxElementRef = useRef(null), listFocusedRef = useRef(!1), valueRef = useRef(value), valuePropRef = useRef(valueProp), popoverMouseWithinRef = useRef(!1);
5073
+ useImperativeHandle(forwardedRef, () => inputElementRef.current);
5074
+ const listBoxId = `${id}-listbox`, options = Array.isArray(optionsProp) ? optionsProp : EMPTY_ARRAY, padding = useArrayProp(paddingProp), currentOption = useMemo(() => value !== null ? options.find((o) => o.value === value) : void 0, [options, value]), filteredOptions = useMemo(() => options.filter((option) => query ? filterOption(query, option) : !0), [filterOption, options, query]), filteredOptionsLen = filteredOptions.length, activeItemId = activeValue ? `${id}-option-${activeValue}` : void 0, expanded = query !== null && loading || focused && query !== null, handleRootBlur = useCallback((event) => {
5101
5075
  setTimeout(() => {
5102
- if (popoverMouseWithin)
5076
+ if (popoverMouseWithinRef.current)
5103
5077
  return;
5104
- const elements = (relatedElements || []).concat(rootElement ? [rootElement] : [], resultsPopoverElement ? [resultsPopoverElement] : []);
5078
+ const elements = (relatedElements || []).concat(rootElementRef.current ? [rootElementRef.current] : [], resultsPopoverElementRef.current ? [resultsPopoverElementRef.current] : []);
5105
5079
  let focusInside = !1;
5106
5080
  if (document.activeElement) {
5107
5081
  for (const e of elements)
@@ -5112,32 +5086,22 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
5112
5086
  }
5113
5087
  focusInside === !1 && (dispatch({
5114
5088
  type: "root/blur"
5115
- }), setPopoverMouseWithin(!1), onQueryChange && onQueryChange(null), onBlur && onBlur(event));
5089
+ }), popoverMouseWithinRef.current = !1, onQueryChange && onQueryChange(null), onBlur && onBlur(event));
5116
5090
  }, 0);
5117
- }, $[49] = popoverMouseWithin, $[50] = relatedElements, $[51] = rootElement, $[52] = resultsPopoverElement, $[53] = onQueryChange, $[54] = onBlur, $[55] = t17) : t17 = $[55];
5118
- const handleRootBlur = t17;
5119
- let t18;
5120
- $[56] === Symbol.for("react.memo_cache_sentinel") ? (t18 = (event_0) => {
5091
+ }, [onBlur, onQueryChange, relatedElements]), handleRootFocus = useCallback((event_0) => {
5121
5092
  const listBoxElement = listBoxElementRef.current, focusedElement = event_0.target instanceof HTMLElement ? event_0.target : null, listFocused_0 = listBoxElement?.contains(focusedElement) || !1;
5122
5093
  listFocused_0 !== listFocusedRef.current && (listFocusedRef.current = listFocused_0, dispatch({
5123
5094
  type: "root/setListFocused",
5124
5095
  listFocused: listFocused_0
5125
5096
  }));
5126
- }, $[56] = t18) : t18 = $[56];
5127
- const handleRootFocus = t18;
5128
- let t19;
5129
- $[57] !== onSelect || $[58] !== onChange || $[59] !== onQueryChange || $[60] !== inputElement ? (t19 = (v) => {
5097
+ }, []), handleOptionSelect = useCallback((v) => {
5130
5098
  dispatch({
5131
5099
  type: "value/change",
5132
5100
  value: v
5133
- }), setPopoverMouseWithin(!1), onSelect && onSelect(v), valueRef.current = v, onChange && onChange(v), onQueryChange && onQueryChange(null), inputElement?.focus();
5134
- }, $[57] = onSelect, $[58] = onChange, $[59] = onQueryChange, $[60] = inputElement, $[61] = t19) : t19 = $[61];
5135
- const handleOptionSelect = t19;
5136
- let t20;
5137
- $[62] !== filteredOptionsLen || $[63] !== filteredOptions || $[64] !== activeValue || $[65] !== onQueryChange || $[66] !== inputElement ? (t20 = (event_1) => {
5101
+ }), popoverMouseWithinRef.current = !1, onSelect && onSelect(v), valueRef.current = v, onChange && onChange(v), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
5102
+ }, [onChange, onSelect, onQueryChange]), handleRootKeyDown = useCallback((event_1) => {
5138
5103
  if (event_1.key === "ArrowDown") {
5139
- if (event_1.preventDefault(), !filteredOptionsLen)
5140
- return;
5104
+ if (event_1.preventDefault(), !filteredOptionsLen) return;
5141
5105
  const activeOption = filteredOptions.find((o_0) => o_0.value === activeValue), activeIndex = activeOption ? filteredOptions.indexOf(activeOption) : -1, nextActiveOption = filteredOptions[(activeIndex + 1) % filteredOptionsLen];
5142
5106
  nextActiveOption && dispatch({
5143
5107
  type: "root/setActiveValue",
@@ -5147,8 +5111,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
5147
5111
  return;
5148
5112
  }
5149
5113
  if (event_1.key === "ArrowUp") {
5150
- if (event_1.preventDefault(), !filteredOptionsLen)
5151
- return;
5114
+ if (event_1.preventDefault(), !filteredOptionsLen) return;
5152
5115
  const activeOption_0 = filteredOptions.find((o_1) => o_1.value === activeValue), activeIndex_0 = activeOption_0 ? filteredOptions.indexOf(activeOption_0) : -1, nextActiveOption_0 = filteredOptions[activeIndex_0 === -1 ? filteredOptionsLen - 1 : (filteredOptionsLen + activeIndex_0 - 1) % filteredOptionsLen];
5153
5116
  nextActiveOption_0 && dispatch({
5154
5117
  type: "root/setActiveValue",
@@ -5160,66 +5123,43 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
5160
5123
  if (event_1.key === "Escape") {
5161
5124
  dispatch({
5162
5125
  type: "root/escape"
5163
- }), setPopoverMouseWithin(!1), onQueryChange && onQueryChange(null), inputElement?.focus();
5126
+ }), popoverMouseWithinRef.current = !1, onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
5164
5127
  return;
5165
5128
  }
5166
5129
  const target = event_1.target, listEl = listBoxElementRef.current;
5167
5130
  if ((listEl === target || listEl?.contains(target)) && !AUTOCOMPLETE_LISTBOX_IGNORE_KEYS.includes(event_1.key)) {
5168
- inputElement?.focus();
5131
+ inputElementRef.current?.focus();
5169
5132
  return;
5170
5133
  }
5171
- }, $[62] = filteredOptionsLen, $[63] = filteredOptions, $[64] = activeValue, $[65] = onQueryChange, $[66] = inputElement, $[67] = t20) : t20 = $[67];
5172
- const handleRootKeyDown = t20;
5173
- let t21;
5174
- $[68] !== onQueryChange ? (t21 = (event_2) => {
5134
+ }, [activeValue, filteredOptions, filteredOptionsLen, onQueryChange]), handleInputChange = useCallback((event_2) => {
5175
5135
  const nextQuery = event_2.currentTarget.value;
5176
5136
  dispatch({
5177
5137
  type: "input/change",
5178
5138
  query: nextQuery
5179
5139
  }), onQueryChange && onQueryChange(nextQuery);
5180
- }, $[68] = onQueryChange, $[69] = t21) : t21 = $[69];
5181
- const handleInputChange = t21;
5182
- let t22;
5183
- $[70] !== value || $[71] !== renderValue || $[72] !== currentOption ? (t22 = () => {
5140
+ }, [onQueryChange]), dispatchOpen = useCallback(() => {
5184
5141
  dispatch({
5185
5142
  type: "root/open",
5186
5143
  query: value ? renderValue(value, currentOption) : ""
5187
5144
  });
5188
- }, $[70] = value, $[71] = renderValue, $[72] = currentOption, $[73] = t22) : t22 = $[73];
5189
- const dispatchOpen = t22;
5190
- let t23;
5191
- $[74] !== focused || $[75] !== onFocus || $[76] !== openOnFocus || $[77] !== dispatchOpen ? (t23 = (event_3) => {
5145
+ }, [currentOption, renderValue, value]), handleInputFocus = useCallback((event_3) => {
5192
5146
  focused || (dispatch({
5193
5147
  type: "input/focus"
5194
5148
  }), onFocus && onFocus(event_3), openOnFocus && dispatchOpen());
5195
- }, $[74] = focused, $[75] = onFocus, $[76] = openOnFocus, $[77] = dispatchOpen, $[78] = t23) : t23 = $[78];
5196
- const handleInputFocus = t23;
5197
- let t24;
5198
- $[79] === Symbol.for("react.memo_cache_sentinel") ? (t24 = () => {
5199
- setPopoverMouseWithin(!0);
5200
- }, $[79] = t24) : t24 = $[79];
5201
- const handlePopoverMouseEnter = t24;
5202
- let t25;
5203
- $[80] === Symbol.for("react.memo_cache_sentinel") ? (t25 = () => {
5204
- setPopoverMouseWithin(!1);
5205
- }, $[80] = t25) : t25 = $[80];
5206
- const handlePopoverMouseLeave = t25;
5207
- let t26;
5208
- $[81] !== onChange || $[82] !== onQueryChange || $[83] !== inputElement ? (t26 = () => {
5149
+ }, [focused, onFocus, openOnFocus, dispatchOpen]), handlePopoverMouseEnter = useCallback(() => {
5150
+ popoverMouseWithinRef.current = !0;
5151
+ }, []), handlePopoverMouseLeave = useCallback(() => {
5152
+ popoverMouseWithinRef.current = !1;
5153
+ }, []), handleClearButtonClick = useCallback(() => {
5209
5154
  dispatch({
5210
5155
  type: "root/clear"
5211
- }), valueRef.current = "", onChange && onChange(""), onQueryChange && onQueryChange(null), inputElement?.focus();
5212
- }, $[81] = onChange, $[82] = onQueryChange, $[83] = inputElement, $[84] = t26) : t26 = $[84];
5213
- const handleClearButtonClick = t26;
5214
- let t27;
5215
- $[85] === Symbol.for("react.memo_cache_sentinel") ? (t27 = () => {
5156
+ }), valueRef.current = "", onChange && onChange(""), onQueryChange && onQueryChange(null), inputElementRef.current?.focus();
5157
+ }, [onChange, onQueryChange]), handleClearButtonFocus = useCallback(() => {
5216
5158
  dispatch({
5217
5159
  type: "input/focus"
5218
5160
  });
5219
- }, $[85] = t27) : t27 = $[85];
5220
- const handleClearButtonFocus = t27;
5221
- let t28, t29;
5222
- $[86] !== valueProp ? (t28 = () => {
5161
+ }, []);
5162
+ useEffect(() => {
5223
5163
  if (valueProp !== valuePropRef.current) {
5224
5164
  valuePropRef.current = valueProp, valueProp !== void 0 && (dispatch({
5225
5165
  type: "value/change",
@@ -5231,19 +5171,14 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
5231
5171
  type: "value/change",
5232
5172
  value: valueProp || null
5233
5173
  }));
5234
- }, t29 = [valueProp], $[86] = valueProp, $[87] = t28, $[88] = t29) : (t28 = $[87], t29 = $[88]), useEffect(t28, t29);
5235
- let t30, t31;
5236
- $[89] !== focused ? (t30 = () => {
5174
+ }, [valueProp]), useEffect(() => {
5237
5175
  !focused && valueRef.current && dispatch({
5238
5176
  type: "root/setActiveValue",
5239
5177
  value: valueRef.current
5240
5178
  });
5241
- }, t31 = [focused], $[89] = focused, $[90] = t30, $[91] = t31) : (t30 = $[90], t31 = $[91]), useEffect(t30, t31);
5242
- let t32, t33;
5243
- $[92] !== filteredOptions || $[93] !== activeValue ? (t32 = () => {
5179
+ }, [focused]), useEffect(() => {
5244
5180
  const listElement = listBoxElementRef.current;
5245
- if (!listElement)
5246
- return;
5181
+ if (!listElement) return;
5247
5182
  const activeOption_1 = filteredOptions.find((o_2) => o_2.value === activeValue);
5248
5183
  if (activeOption_1) {
5249
5184
  const activeIndex_1 = filteredOptions.indexOf(activeOption_1), activeItemElement = listElement.childNodes[activeIndex_1];
@@ -5253,123 +5188,35 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
5253
5188
  focusFirstDescendant(activeItemElement);
5254
5189
  }
5255
5190
  }
5256
- }, t33 = [activeValue, filteredOptions], $[92] = filteredOptions, $[93] = activeValue, $[94] = t32, $[95] = t33) : (t32 = $[94], t33 = $[95]), useEffect(t32, t33);
5257
- let t34;
5258
- bb0: {
5259
- if (!loading && !disabled && value) {
5260
- let t352;
5261
- $[96] === Symbol.for("react.memo_cache_sentinel") ? (t352 = {
5191
+ }, [activeValue, filteredOptions]);
5192
+ const clearButton = useMemo(() => {
5193
+ if (!loading && !disabled && value)
5194
+ return {
5262
5195
  "aria-label": "Clear",
5263
5196
  onFocus: handleClearButtonFocus
5264
- }, $[96] = t352) : t352 = $[96], t34 = t352;
5265
- break bb0;
5266
- }
5267
- t34 = void 0;
5268
- }
5269
- const clearButton = t34;
5270
- let t35, t36;
5271
- if ($[97] !== padding) {
5272
- let t372;
5273
- $[99] === Symbol.for("react.memo_cache_sentinel") ? (t372 = (v_0) => v_0 === 0 ? 0 : v_0 === 1 || v_0 === 2 ? 1 : v_0 - 2, $[99] = t372) : t372 = $[99], t36 = padding.map(t372), $[97] = padding, $[98] = t36;
5274
- } else
5275
- t36 = $[98];
5276
- t35 = t36;
5277
- const openButtonBoxPadding = t35;
5278
- let t37, t38;
5279
- if ($[100] !== padding) {
5280
- let t392;
5281
- $[102] === Symbol.for("react.memo_cache_sentinel") ? (t392 = (v_1) => Math.max(v_1 - 1, 0), $[102] = t392) : t392 = $[102], t38 = padding.map(t392), $[100] = padding, $[101] = t38;
5282
- } else
5283
- t38 = $[101];
5284
- t37 = t38;
5285
- const openButtonPadding = t37;
5286
- let t39;
5287
- t39 = typeof openButton == "object" ? openButton : EMPTY_RECORD;
5288
- const openButtonProps = t39;
5289
- let t40;
5290
- $[103] !== dispatchOpen || $[104] !== openButtonProps || $[105] !== inputElement ? (t40 = (event_4) => {
5291
- dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElement?.focus());
5292
- }, $[103] = dispatchOpen, $[104] = openButtonProps, $[105] = inputElement, $[106] = t40) : t40 = $[106];
5293
- const handleOpenClick = t40;
5294
- let t41, t42;
5295
- $[107] !== disabled || $[108] !== readOnly || $[109] !== openButton || $[110] !== expanded || $[111] !== fontSize2 || $[112] !== openButtonPadding || $[113] !== openButtonProps || $[114] !== handleOpenClick || $[115] !== openButtonBoxPadding ? (t42 = !disabled && !readOnly && openButton ? /* @__PURE__ */ jsx(Box, { "aria-hidden": expanded, padding: openButtonBoxPadding, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Open", disabled: expanded, fontSize: fontSize2, icon: ChevronDownIcon, mode: "bleed", padding: openButtonPadding, ...openButtonProps, onClick: handleOpenClick }) }) : void 0, $[107] = disabled, $[108] = readOnly, $[109] = openButton, $[110] = expanded, $[111] = fontSize2, $[112] = openButtonPadding, $[113] = openButtonProps, $[114] = handleOpenClick, $[115] = openButtonBoxPadding, $[116] = t42) : t42 = $[116], t41 = t42;
5296
- const openButtonNode = t41;
5297
- let t43;
5298
- bb1: {
5299
- if (query === null) {
5300
- if (value !== null) {
5301
- let t442;
5302
- $[117] !== renderValue || $[118] !== value || $[119] !== currentOption ? (t442 = renderValue(value, currentOption), $[117] = renderValue, $[118] = value, $[119] = currentOption, $[120] = t442) : t442 = $[120], t43 = t442;
5303
- break bb1;
5304
- }
5305
- t43 = "";
5306
- break bb1;
5307
- }
5308
- t43 = query;
5309
- }
5310
- const inputValue = t43, t44 = loading && AnimatedSpinnerIcon, t45 = suffix || openButtonNode;
5311
- let t46;
5312
- $[121] !== restProps || $[122] !== activeItemId || $[123] !== expanded || $[124] !== listBoxId || $[125] !== border2 || $[126] !== clearButton || $[127] !== customValidity || $[128] !== disabled || $[129] !== fontSize2 || $[130] !== icon || $[131] !== t44 || $[132] !== id || $[133] !== handleInputChange || $[134] !== handleClearButtonClick || $[135] !== handleInputFocus || $[136] !== padding || $[137] !== prefix || $[138] !== radius || $[139] !== readOnly || $[140] !== t45 || $[141] !== inputValue ? (t46 = /* @__PURE__ */ jsx(TextInput, { ...restProps, "aria-activedescendant": activeItemId, "aria-autocomplete": "list", "aria-expanded": expanded, "aria-owns": listBoxId, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", border: border2, clearButton, customValidity, disabled, fontSize: fontSize2, icon, iconRight: t44, id, inputMode: "search", onChange: handleInputChange, onClear: handleClearButtonClick, onFocus: handleInputFocus, padding, prefix, radius, readOnly, ref: setInputElement, role: "combobox", spellCheck: !1, suffix: t45, value: inputValue }), $[121] = restProps, $[122] = activeItemId, $[123] = expanded, $[124] = listBoxId, $[125] = border2, $[126] = clearButton, $[127] = customValidity, $[128] = disabled, $[129] = fontSize2, $[130] = icon, $[131] = t44, $[132] = id, $[133] = handleInputChange, $[134] = handleClearButtonClick, $[135] = handleInputFocus, $[136] = padding, $[137] = prefix, $[138] = radius, $[139] = readOnly, $[140] = t45, $[141] = inputValue, $[142] = t46) : t46 = $[142];
5313
- const input = t46;
5314
- let t47;
5315
- $[143] !== listFocused || $[144] !== inputElement ? (t47 = (event_5) => {
5316
- event_5.key === "Tab" && listFocused && inputElement?.focus();
5317
- }, $[143] = listFocused, $[144] = inputElement, $[145] = t47) : t47 = $[145];
5318
- const handleListBoxKeyDown = t47;
5319
- let t48;
5320
- bb2: {
5321
- if (filteredOptions.length === 0) {
5322
- t48 = null;
5323
- break bb2;
5324
- }
5325
- let t492;
5326
- if ($[146] !== activeValue || $[147] !== currentOption || $[148] !== id || $[149] !== handleOptionSelect || $[150] !== renderOption || $[151] !== loading || $[152] !== listFocused || $[153] !== filteredOptions) {
5327
- let t503;
5328
- $[155] !== activeValue || $[156] !== currentOption || $[157] !== id || $[158] !== handleOptionSelect || $[159] !== renderOption || $[160] !== loading || $[161] !== listFocused ? (t503 = (option_0) => {
5329
- const active = activeValue !== null ? option_0.value === activeValue : currentOption === option_0;
5330
- return /* @__PURE__ */ jsx(AutocompleteOption, { id: `${id}-option-${option_0.value}`, onSelect: handleOptionSelect, selected: active, value: option_0.value, children: cloneElement(renderOption(option_0), {
5331
- disabled: loading,
5332
- selected: active,
5333
- tabIndex: listFocused && active ? 0 : -1
5334
- }) }, option_0.value);
5335
- }, $[155] = activeValue, $[156] = currentOption, $[157] = id, $[158] = handleOptionSelect, $[159] = renderOption, $[160] = loading, $[161] = listFocused, $[162] = t503) : t503 = $[162], t492 = filteredOptions.map(t503), $[146] = activeValue, $[147] = currentOption, $[148] = id, $[149] = handleOptionSelect, $[150] = renderOption, $[151] = loading, $[152] = listFocused, $[153] = filteredOptions, $[154] = t492;
5336
- } else
5337
- t492 = $[154];
5338
- let t502;
5339
- $[163] !== listBoxId || $[164] !== t492 ? (t502 = /* @__PURE__ */ jsx(Stack, { as: "ul", "aria-multiselectable": !1, "data-ui": "AutoComplete__resultsList", id: listBoxId, ref: listBoxElementRef, role: "listbox", space: 1, children: t492 }), $[163] = listBoxId, $[164] = t492, $[165] = t502) : t502 = $[165];
5340
- let t51;
5341
- $[166] !== handleListBoxKeyDown || $[167] !== listBox || $[168] !== t502 ? (t51 = /* @__PURE__ */ jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: t502 }), $[166] = handleListBoxKeyDown, $[167] = listBox, $[168] = t502, $[169] = t51) : t51 = $[169], t48 = t51;
5342
- }
5343
- const content = t48;
5344
- let t49;
5345
- bb3: {
5346
- if (renderPopover) {
5347
- const t503 = !expanded;
5348
- let t51;
5349
- $[170] !== content || $[171] !== t503 || $[172] !== inputElement || $[173] !== resultsPopoverElement || $[174] !== renderPopover ? (t51 = renderPopover({
5350
- content,
5351
- hidden: t503,
5352
- inputElement,
5353
- onMouseEnter: handlePopoverMouseEnter,
5354
- onMouseLeave: handlePopoverMouseLeave
5355
- }, {
5356
- current: resultsPopoverElement
5357
- }), $[170] = content, $[171] = t503, $[172] = inputElement, $[173] = resultsPopoverElement, $[174] = renderPopover, $[175] = t51) : t51 = $[175], t49 = t51;
5358
- break bb3;
5359
- }
5360
- if (filteredOptionsLen === 0) {
5361
- t49 = null;
5362
- break bb3;
5363
- }
5364
- let t502;
5365
- $[176] !== content || $[177] !== expanded || $[178] !== radius || $[179] !== inputElement || $[180] !== popover ? (t502 = /* @__PURE__ */ jsx(Popover, { arrow: !1, constrainSize: !0, content, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: setResultsPopoverElement, referenceElement: inputElement, ...popover }), $[176] = content, $[177] = expanded, $[178] = radius, $[179] = inputElement, $[180] = popover, $[181] = t502) : t502 = $[181], t49 = t502;
5366
- }
5367
- const results = t49;
5368
- let t50;
5369
- return $[182] !== handleRootBlur || $[183] !== handleRootKeyDown || $[184] !== input || $[185] !== results ? (t50 = /* @__PURE__ */ jsxs(Root$9, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: setRootElement, children: [
5197
+ };
5198
+ }, [disabled, handleClearButtonFocus, loading, value]), openButtonBoxPadding = useMemo(() => padding.map((v_0) => v_0 === 0 ? 0 : v_0 === 1 || v_0 === 2 ? 1 : v_0 - 2), [padding]), openButtonPadding = useMemo(() => padding.map((v_1) => Math.max(v_1 - 1, 0)), [padding]), openButtonProps = useMemo(() => typeof openButton == "object" ? openButton : EMPTY_RECORD, [openButton]), handleOpenClick = useCallback((event_4) => {
5199
+ dispatchOpen(), openButtonProps.onClick && openButtonProps.onClick(event_4), _raf(() => inputElementRef.current?.focus());
5200
+ }, [openButtonProps, dispatchOpen]), openButtonNode = useMemo(() => !disabled && !readOnly && openButton ? /* @__PURE__ */ jsx(Box, { "aria-hidden": expanded, padding: openButtonBoxPadding, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Open", disabled: expanded, fontSize: fontSize2, icon: ChevronDownIcon, mode: "bleed", padding: openButtonPadding, ...openButtonProps, onClick: handleOpenClick }) }) : void 0, [disabled, expanded, fontSize2, handleOpenClick, openButton, openButtonBoxPadding, openButtonPadding, openButtonProps, readOnly]), inputValue = useMemo(() => query === null ? value !== null ? renderValue(value, currentOption) : "" : query, [currentOption, query, renderValue, value]), input = /* @__PURE__ */ jsx(TextInput, { ...restProps, "aria-activedescendant": activeItemId, "aria-autocomplete": "list", "aria-expanded": expanded, "aria-owns": listBoxId, autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", border: border2, clearButton, customValidity, disabled, fontSize: fontSize2, icon, iconRight: loading && AnimatedSpinnerIcon, id, inputMode: "search", onChange: handleInputChange, onClear: handleClearButtonClick, onFocus: handleInputFocus, padding, prefix, radius, readOnly, ref: inputElementRef, role: "combobox", spellCheck: !1, suffix: suffix || openButtonNode, value: inputValue }), handleListBoxKeyDown = useCallback((event_5) => {
5201
+ event_5.key === "Tab" && listFocused && inputElementRef.current?.focus();
5202
+ }, [listFocused]), content = useMemo(() => filteredOptions.length === 0 ? null : /* @__PURE__ */ jsx(ListBox, { "data-ui": "AutoComplete__results", onKeyDown: handleListBoxKeyDown, padding: 1, ...listBox, tabIndex: -1, children: /* @__PURE__ */ jsx(Stack, { as: "ul", "aria-multiselectable": !1, "data-ui": "AutoComplete__resultsList", id: listBoxId, ref: listBoxElementRef, role: "listbox", space: 1, children: filteredOptions.map((option_0) => {
5203
+ const active = activeValue !== null ? option_0.value === activeValue : currentOption === option_0;
5204
+ return /* @__PURE__ */ jsx(AutocompleteOption, { id: `${id}-option-${option_0.value}`, onSelect: handleOptionSelect, selected: active, value: option_0.value, children: cloneElement(renderOption(option_0), {
5205
+ disabled: loading,
5206
+ selected: active,
5207
+ tabIndex: listFocused && active ? 0 : -1
5208
+ }) }, option_0.value);
5209
+ }) }) }), [activeValue, currentOption, filteredOptions, handleOptionSelect, handleListBoxKeyDown, id, listBox, listBoxId, listFocused, loading, renderOption]), results = useMemo(() => renderPopover ? renderPopover({
5210
+ content,
5211
+ hidden: !expanded,
5212
+ inputElement: inputElementRef.current,
5213
+ onMouseEnter: handlePopoverMouseEnter,
5214
+ onMouseLeave: handlePopoverMouseLeave
5215
+ }, resultsPopoverElementRef) : filteredOptionsLen === 0 ? null : /* @__PURE__ */ jsx(Popover, { arrow: !1, constrainSize: !0, content, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: resultsPopoverElementRef, referenceElement: inputElementRef.current, ...popover }), [content, expanded, filteredOptionsLen, handlePopoverMouseEnter, handlePopoverMouseLeave, popover, radius, renderPopover]);
5216
+ return /* @__PURE__ */ jsxs(Root$9, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
5370
5217
  input,
5371
5218
  results
5372
- ] }), $[182] = handleRootBlur, $[183] = handleRootKeyDown, $[184] = input, $[185] = results, $[186] = t50) : t50 = $[186], t50;
5219
+ ] });
5373
5220
  });
5374
5221
  InnerAutocomplete.displayName = "ForwardRef(Autocomplete)";
5375
5222
  const Autocomplete = InnerAutocomplete, Root$8 = styled.ol`
@@ -5534,24 +5381,24 @@ const Root$7 = styled(Layer)(responsivePaddingStyle, dialogStyle, responsiveDial
5534
5381
  autoFocus && ref.current && focusFirstDescendant(ref.current);
5535
5382
  }, t3 = [autoFocus, ref], $[2] = autoFocus, $[3] = t2, $[4] = t3) : (t2 = $[3], t3 = $[4]), useEffect(t2, t3);
5536
5383
  let t4;
5537
- $[5] !== isTopLayer || $[6] !== onClose || $[7] !== boundaryElement || $[8] !== portalElement ? (t4 = (event) => {
5384
+ $[5] !== boundaryElement || $[6] !== isTopLayer || $[7] !== onClose || $[8] !== portalElement ? (t4 = (event) => {
5538
5385
  if (!isTopLayer || !onClose)
5539
5386
  return;
5540
5387
  const target = document.activeElement;
5541
5388
  target && !isTargetWithinScope(boundaryElement, portalElement, target) || event.key === "Escape" && (event.preventDefault(), event.stopPropagation(), onClose());
5542
- }, $[5] = isTopLayer, $[6] = onClose, $[7] = boundaryElement, $[8] = portalElement, $[9] = t4) : t4 = $[9], useGlobalKeyDown(t4);
5389
+ }, $[5] = boundaryElement, $[6] = isTopLayer, $[7] = onClose, $[8] = portalElement, $[9] = t4) : t4 = $[9], useGlobalKeyDown(t4);
5543
5390
  let t5;
5544
- $[10] !== isTopLayer || $[11] !== onClickOutside || $[12] !== boundaryElement || $[13] !== portalElement ? (t5 = isTopLayer && onClickOutside && ((event_0) => {
5391
+ $[10] !== boundaryElement || $[11] !== isTopLayer || $[12] !== onClickOutside || $[13] !== portalElement ? (t5 = isTopLayer && onClickOutside && ((event_0) => {
5545
5392
  const target_0 = event_0.target;
5546
5393
  target_0 && !isTargetWithinScope(boundaryElement, portalElement, target_0) || onClickOutside();
5547
- }), $[10] = isTopLayer, $[11] = onClickOutside, $[12] = boundaryElement, $[13] = portalElement, $[14] = t5) : t5 = $[14];
5394
+ }), $[10] = boundaryElement, $[11] = isTopLayer, $[12] = onClickOutside, $[13] = portalElement, $[14] = t5) : t5 = $[14];
5548
5395
  let t6;
5549
5396
  $[15] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => [ref.current], $[15] = t6) : t6 = $[15], useClickOutsideEvent(t5, t6);
5550
5397
  let t7;
5551
- $[16] !== showHeader || $[17] !== header || $[18] !== labelId || $[19] !== showCloseButton || $[20] !== onClose ? (t7 = showHeader && /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(Flex, { align: "flex-start", padding: 3, children: [
5398
+ $[16] !== header || $[17] !== labelId || $[18] !== onClose || $[19] !== showCloseButton || $[20] !== showHeader ? (t7 = showHeader && /* @__PURE__ */ jsx(DialogHeader, { children: /* @__PURE__ */ jsxs(Flex, { align: "flex-start", padding: 3, children: [
5552
5399
  /* @__PURE__ */ jsx(Box, { flex: 1, padding: 2, children: header && /* @__PURE__ */ jsx(Text, { id: labelId, size: 1, weight: "semibold", children: header }) }),
5553
5400
  showCloseButton && /* @__PURE__ */ jsx(Box, { flex: "none", children: /* @__PURE__ */ jsx(Button, { "aria-label": "Close dialog", disabled: !onClose, icon: CloseIcon, mode: "bleed", onClick: onClose, padding: 2 }) })
5554
- ] }) }), $[16] = showHeader, $[17] = header, $[18] = labelId, $[19] = showCloseButton, $[20] = onClose, $[21] = t7) : t7 = $[21];
5401
+ ] }) }), $[16] = header, $[17] = labelId, $[18] = onClose, $[19] = showCloseButton, $[20] = showHeader, $[21] = t7) : t7 = $[21];
5555
5402
  let t8;
5556
5403
  $[22] !== children ? (t8 = /* @__PURE__ */ jsx(DialogContent, { flex: 1, ref: contentRef, tabIndex: -1, children }), $[22] = children, $[23] = t8) : t8 = $[23];
5557
5404
  let t9;
@@ -5565,14 +5412,14 @@ const Root$7 = styled(Layer)(responsivePaddingStyle, dialogStyle, responsiveDial
5565
5412
  let t11;
5566
5413
  $[30] !== radius || $[31] !== scheme || $[32] !== shadow || $[33] !== t10 ? (t11 = /* @__PURE__ */ jsx(DialogCardRoot, { radius, ref, scheme, shadow, children: t10 }), $[30] = radius, $[31] = scheme, $[32] = shadow, $[33] = t10, $[34] = t11) : t11 = $[34];
5567
5414
  let t12;
5568
- return $[35] !== width || $[36] !== t11 ? (t12 = /* @__PURE__ */ jsx(DialogContainer, { "data-ui": "DialogCard", width, children: t11 }), $[35] = width, $[36] = t11, $[37] = t12) : t12 = $[37], t12;
5415
+ return $[35] !== t11 || $[36] !== width ? (t12 = /* @__PURE__ */ jsx(DialogContainer, { "data-ui": "DialogCard", width, children: t11 }), $[35] = t11, $[36] = width, $[37] = t12) : t12 = $[37], t12;
5569
5416
  });
5570
5417
  DialogCard.displayName = "ForwardRef(DialogCard)";
5571
5418
  const Dialog = forwardRef(function(props, ref) {
5572
5419
  const $ = c(60), dialog = useDialog(), {
5573
5420
  layer
5574
5421
  } = useTheme_v2();
5575
- let t0, t1, t2, t3, t4, t5, t6, _positionProp, _zOffsetProp, portalProp, onFocus, id, contentRef, footer, header, onClickOutside, onClose, scheme, children, restProps, onActivate;
5422
+ let _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
5576
5423
  $[0] !== props ? ({
5577
5424
  __unstable_autoFocus: t0,
5578
5425
  __unstable_hideCloseButton: t1,
@@ -5595,7 +5442,7 @@ const Dialog = forwardRef(function(props, ref) {
5595
5442
  zOffset: _zOffsetProp,
5596
5443
  animate: t6,
5597
5444
  ...restProps
5598
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = t6, $[8] = _positionProp, $[9] = _zOffsetProp, $[10] = portalProp, $[11] = onFocus, $[12] = id, $[13] = contentRef, $[14] = footer, $[15] = header, $[16] = onClickOutside, $[17] = onClose, $[18] = scheme, $[19] = children, $[20] = restProps, $[21] = onActivate) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], t6 = $[7], _positionProp = $[8], _zOffsetProp = $[9], portalProp = $[10], onFocus = $[11], id = $[12], contentRef = $[13], footer = $[14], header = $[15], onClickOutside = $[16], onClose = $[17], scheme = $[18], children = $[19], restProps = $[20], onActivate = $[21]);
5445
+ } = props, $[0] = props, $[1] = _positionProp, $[2] = _zOffsetProp, $[3] = children, $[4] = contentRef, $[5] = footer, $[6] = header, $[7] = id, $[8] = onActivate, $[9] = onClickOutside, $[10] = onClose, $[11] = onFocus, $[12] = portalProp, $[13] = restProps, $[14] = scheme, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6) : (_positionProp = $[1], _zOffsetProp = $[2], children = $[3], contentRef = $[4], footer = $[5], header = $[6], id = $[7], onActivate = $[8], onClickOutside = $[9], onClose = $[10], onFocus = $[11], portalProp = $[12], restProps = $[13], scheme = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21]);
5599
5446
  const autoFocus = t0 === void 0 ? !0 : t0, hideCloseButton = t1 === void 0 ? !1 : t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 === void 0 ? !1 : t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = usePrefersReducedMotion() ? !1 : _animate, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, cardRadius = useArrayProp(cardRadiusProp), padding = useArrayProp(paddingProp), position = useArrayProp(positionProp), width = useArrayProp(widthProp), zOffset = useArrayProp(zOffsetProp), preDivRef = useRef(null), postDivRef = useRef(null), cardRef = useRef(null), focusedElementRef = useRef(null);
5600
5447
  let t7;
5601
5448
  $[22] !== onFocus ? (t7 = (event) => {
@@ -5631,15 +5478,15 @@ const Dialog = forwardRef(function(props, ref) {
5631
5478
  let t9;
5632
5479
  $[27] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx("div", { ref: preDivRef, tabIndex: 0 }), $[27] = t9) : t9 = $[27];
5633
5480
  let t10;
5634
- $[28] !== autoFocus || $[29] !== hideCloseButton || $[30] !== contentRef || $[31] !== footer || $[32] !== header || $[33] !== id || $[34] !== onClickOutside || $[35] !== onClose || $[36] !== portalProp || $[37] !== cardRadius || $[38] !== scheme || $[39] !== cardShadow || $[40] !== width || $[41] !== children ? (t10 = /* @__PURE__ */ jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, width, children }), $[28] = autoFocus, $[29] = hideCloseButton, $[30] = contentRef, $[31] = footer, $[32] = header, $[33] = id, $[34] = onClickOutside, $[35] = onClose, $[36] = portalProp, $[37] = cardRadius, $[38] = scheme, $[39] = cardShadow, $[40] = width, $[41] = children, $[42] = t10) : t10 = $[42];
5481
+ $[28] !== autoFocus || $[29] !== cardRadius || $[30] !== cardShadow || $[31] !== children || $[32] !== contentRef || $[33] !== footer || $[34] !== header || $[35] !== hideCloseButton || $[36] !== id || $[37] !== onClickOutside || $[38] !== onClose || $[39] !== portalProp || $[40] !== scheme || $[41] !== width ? (t10 = /* @__PURE__ */ jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, width, children }), $[28] = autoFocus, $[29] = cardRadius, $[30] = cardShadow, $[31] = children, $[32] = contentRef, $[33] = footer, $[34] = header, $[35] = hideCloseButton, $[36] = id, $[37] = onClickOutside, $[38] = onClose, $[39] = portalProp, $[40] = scheme, $[41] = width, $[42] = t10) : t10 = $[42];
5635
5482
  let t11;
5636
5483
  $[43] === Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsx("div", { ref: postDivRef, tabIndex: 0 }), $[43] = t11) : t11 = $[43];
5637
5484
  let t12;
5638
- $[44] !== restProps || $[45] !== animate || $[46] !== padding || $[47] !== position || $[48] !== labelId || $[49] !== id || $[50] !== onActivate || $[51] !== handleRootClick || $[52] !== handleFocus || $[53] !== ref || $[54] !== zOffset || $[55] !== t10 ? (t12 = /* @__PURE__ */ jsxs(Root$7, { ...restProps, $animate: animate, $padding: padding, $position: position, "aria-labelledby": labelId, "aria-modal": !0, "data-ui": "Dialog", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, ref, role: "dialog", zOffset, children: [
5485
+ $[44] !== animate || $[45] !== handleFocus || $[46] !== handleRootClick || $[47] !== id || $[48] !== labelId || $[49] !== onActivate || $[50] !== padding || $[51] !== position || $[52] !== ref || $[53] !== restProps || $[54] !== t10 || $[55] !== zOffset ? (t12 = /* @__PURE__ */ jsxs(Root$7, { ...restProps, $animate: animate, $padding: padding, $position: position, "aria-labelledby": labelId, "aria-modal": !0, "data-ui": "Dialog", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, ref, role: "dialog", zOffset, children: [
5639
5486
  t9,
5640
5487
  t10,
5641
5488
  t11
5642
- ] }), $[44] = restProps, $[45] = animate, $[46] = padding, $[47] = position, $[48] = labelId, $[49] = id, $[50] = onActivate, $[51] = handleRootClick, $[52] = handleFocus, $[53] = ref, $[54] = zOffset, $[55] = t10, $[56] = t12) : t12 = $[56];
5489
+ ] }), $[44] = animate, $[45] = handleFocus, $[46] = handleRootClick, $[47] = id, $[48] = labelId, $[49] = onActivate, $[50] = padding, $[51] = position, $[52] = ref, $[53] = restProps, $[54] = t10, $[55] = zOffset, $[56] = t12) : t12 = $[56];
5643
5490
  let t13;
5644
5491
  return $[57] !== portalProp || $[58] !== t12 ? (t13 = /* @__PURE__ */ jsx(Portal, { __unstable_name: portalProp, children: t12 }), $[57] = portalProp, $[58] = t12, $[59] = t13) : t13 = $[59], t13;
5645
5492
  });
@@ -5658,7 +5505,7 @@ function DialogProvider(props) {
5658
5505
  }, $[0] = position, $[1] = zOffset, $[2] = t1) : t1 = $[2], t0 = t1;
5659
5506
  const contextValue = t0;
5660
5507
  let t2;
5661
- return $[3] !== contextValue || $[4] !== children ? (t2 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = contextValue, $[4] = children, $[5] = t2) : t2 = $[5], t2;
5508
+ return $[3] !== children || $[4] !== contextValue ? (t2 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t2) : t2 = $[5], t2;
5662
5509
  }
5663
5510
  DialogProvider.displayName = "DialogProvider";
5664
5511
  const Root$6 = styled.kbd`
@@ -5674,7 +5521,7 @@ const Root$6 = styled.kbd`
5674
5521
  }
5675
5522
  `, Hotkeys = forwardRef(function(props, ref) {
5676
5523
  const $ = c(24);
5677
- let t0, keys, fontSize2, padding, radius, restProps;
5524
+ let fontSize2, keys, padding, radius, restProps, t0;
5678
5525
  $[0] !== props ? ({
5679
5526
  fontSize: fontSize2,
5680
5527
  keys,
@@ -5682,22 +5529,22 @@ const Root$6 = styled.kbd`
5682
5529
  radius,
5683
5530
  space: t0,
5684
5531
  ...restProps
5685
- } = props, $[0] = props, $[1] = t0, $[2] = keys, $[3] = fontSize2, $[4] = padding, $[5] = radius, $[6] = restProps) : (t0 = $[1], keys = $[2], fontSize2 = $[3], padding = $[4], radius = $[5], restProps = $[6]);
5532
+ } = props, $[0] = props, $[1] = fontSize2, $[2] = keys, $[3] = padding, $[4] = radius, $[5] = restProps, $[6] = t0) : (fontSize2 = $[1], keys = $[2], padding = $[3], radius = $[4], restProps = $[5], t0 = $[6]);
5686
5533
  const space = useArrayProp(t0 === void 0 ? 0.5 : t0);
5687
5534
  if (!keys || keys.length === 0) {
5688
5535
  let t12;
5689
5536
  return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsx(Fragment, {}), $[7] = t12) : t12 = $[7], t12;
5690
5537
  }
5691
5538
  let t1;
5692
- if ($[8] !== fontSize2 || $[9] !== padding || $[10] !== radius || $[11] !== keys) {
5539
+ if ($[8] !== fontSize2 || $[9] !== keys || $[10] !== padding || $[11] !== radius) {
5693
5540
  let t22;
5694
- $[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[13] = fontSize2, $[14] = padding, $[15] = radius, $[16] = t22) : t22 = $[16], t1 = keys.map(t22), $[8] = fontSize2, $[9] = padding, $[10] = radius, $[11] = keys, $[12] = t1;
5541
+ $[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[13] = fontSize2, $[14] = padding, $[15] = radius, $[16] = t22) : t22 = $[16], t1 = keys.map(t22), $[8] = fontSize2, $[9] = keys, $[10] = padding, $[11] = radius, $[12] = t1;
5695
5542
  } else
5696
5543
  t1 = $[12];
5697
5544
  let t2;
5698
5545
  $[17] !== space || $[18] !== t1 ? (t2 = /* @__PURE__ */ jsx(Inline, { as: "span", space, children: t1 }), $[17] = space, $[18] = t1, $[19] = t2) : t2 = $[19];
5699
5546
  let t3;
5700
- return $[20] !== restProps || $[21] !== ref || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsx(Root$6, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = restProps, $[21] = ref, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
5547
+ return $[20] !== ref || $[21] !== restProps || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsx(Root$6, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
5701
5548
  });
5702
5549
  Hotkeys.displayName = "ForwardRef(Hotkeys)";
5703
5550
  const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
@@ -5843,7 +5690,7 @@ const Root$5 = styled(Box)`
5843
5690
  overflow: auto;
5844
5691
  `, Menu = forwardRef(function(props, forwardedRef) {
5845
5692
  const $ = c(50);
5846
- let t0, t1, _shouldFocus, onKeyDown, originElement, registerElement, onItemSelect, onClickOutside, onEscape, onItemClick, children, restProps;
5693
+ let _shouldFocus, children, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
5847
5694
  if ($[0] !== props) {
5848
5695
  const {
5849
5696
  children: t22,
@@ -5861,9 +5708,9 @@ const Root$5 = styled(Box)`
5861
5708
  space: t122,
5862
5709
  ...t132
5863
5710
  } = props;
5864
- children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps = t132, $[0] = props, $[1] = t0, $[2] = t1, $[3] = _shouldFocus, $[4] = onKeyDown, $[5] = originElement, $[6] = registerElement, $[7] = onItemSelect, $[8] = onClickOutside, $[9] = onEscape, $[10] = onItemClick, $[11] = children, $[12] = restProps;
5711
+ children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps = t132, $[0] = props, $[1] = _shouldFocus, $[2] = children, $[3] = onClickOutside, $[4] = onEscape, $[5] = onItemClick, $[6] = onItemSelect, $[7] = onKeyDown, $[8] = originElement, $[9] = registerElement, $[10] = restProps, $[11] = t0, $[12] = t1;
5865
5712
  } else
5866
- t0 = $[1], t1 = $[2], _shouldFocus = $[3], onKeyDown = $[4], originElement = $[5], registerElement = $[6], onItemSelect = $[7], onClickOutside = $[8], onEscape = $[9], onItemClick = $[10], children = $[11], restProps = $[12];
5713
+ _shouldFocus = $[1], children = $[2], onClickOutside = $[3], onEscape = $[4], onItemClick = $[5], onItemSelect = $[6], onKeyDown = $[7], originElement = $[8], registerElement = $[9], restProps = $[10], t0 = $[11], t1 = $[12];
5867
5714
  const padding = t0 === void 0 ? 1 : t0, space = t1 === void 0 ? 1 : t1, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = useRef(null);
5868
5715
  let t2;
5869
5716
  $[13] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[13] = t2) : t2 = $[13], useImperativeHandle(forwardedRef, t2);
@@ -5891,9 +5738,9 @@ const Root$5 = styled(Box)`
5891
5738
  }, $[18] = registerElement, $[19] = t4) : t4 = $[19];
5892
5739
  const handleRefChange = t4;
5893
5740
  let t5, t6;
5894
- $[20] !== onItemSelect || $[21] !== activeIndex ? (t5 = () => {
5741
+ $[20] !== activeIndex || $[21] !== onItemSelect ? (t5 = () => {
5895
5742
  onItemSelect && onItemSelect(activeIndex);
5896
- }, t6 = [activeIndex, onItemSelect], $[20] = onItemSelect, $[21] = activeIndex, $[22] = t5, $[23] = t6) : (t5 = $[22], t6 = $[23]), useEffect(t5, t6);
5743
+ }, t6 = [activeIndex, onItemSelect], $[20] = activeIndex, $[21] = onItemSelect, $[22] = t5, $[23] = t6) : (t5 = $[22], t6 = $[23]), useEffect(t5, t6);
5897
5744
  let t7;
5898
5745
  $[24] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => [ref.current], $[24] = t7) : t7 = $[24], useClickOutsideEvent(isTopLayer && onClickOutside, t7);
5899
5746
  let t8;
@@ -5901,7 +5748,7 @@ const Root$5 = styled(Box)`
5901
5748
  isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
5902
5749
  }, $[25] = isTopLayer, $[26] = onEscape, $[27] = t8) : t8 = $[27], useGlobalKeyDown(t8);
5903
5750
  let t9, t10;
5904
- $[28] !== activeElement || $[29] !== activeIndex || $[30] !== mount || $[31] !== onClickOutside || $[32] !== onEscape || $[33] !== onItemClick || $[34] !== handleItemMouseEnter || $[35] !== handleItemMouseLeave || $[36] !== registerElement ? (t10 = {
5751
+ $[28] !== activeElement || $[29] !== activeIndex || $[30] !== handleItemMouseEnter || $[31] !== handleItemMouseLeave || $[32] !== mount || $[33] !== onClickOutside || $[34] !== onEscape || $[35] !== onItemClick || $[36] !== registerElement ? (t10 = {
5905
5752
  version: 0,
5906
5753
  activeElement,
5907
5754
  activeIndex,
@@ -5914,14 +5761,14 @@ const Root$5 = styled(Box)`
5914
5761
  registerElement,
5915
5762
  onMouseEnter: handleItemMouseEnter,
5916
5763
  onMouseLeave: handleItemMouseLeave
5917
- }, $[28] = activeElement, $[29] = activeIndex, $[30] = mount, $[31] = onClickOutside, $[32] = onEscape, $[33] = onItemClick, $[34] = handleItemMouseEnter, $[35] = handleItemMouseLeave, $[36] = registerElement, $[37] = t10) : t10 = $[37], t9 = t10;
5764
+ }, $[28] = activeElement, $[29] = activeIndex, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] = t10) : t10 = $[37], t9 = t10;
5918
5765
  const value = t9;
5919
5766
  let t11;
5920
- $[38] !== space || $[39] !== children ? (t11 = /* @__PURE__ */ jsx(Stack, { space, children }), $[38] = space, $[39] = children, $[40] = t11) : t11 = $[40];
5767
+ $[38] !== children || $[39] !== space ? (t11 = /* @__PURE__ */ jsx(Stack, { space, children }), $[38] = children, $[39] = space, $[40] = t11) : t11 = $[40];
5921
5768
  let t12;
5922
- $[41] !== restProps || $[42] !== handleKeyDown || $[43] !== padding || $[44] !== handleRefChange || $[45] !== t11 ? (t12 = /* @__PURE__ */ jsx(Root$5, { "data-ui": "Menu", ...restProps, onKeyDown: handleKeyDown, padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t11 }), $[41] = restProps, $[42] = handleKeyDown, $[43] = padding, $[44] = handleRefChange, $[45] = t11, $[46] = t12) : t12 = $[46];
5769
+ $[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t11 ? (t12 = /* @__PURE__ */ jsx(Root$5, { "data-ui": "Menu", ...restProps, onKeyDown: handleKeyDown, padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t11 }), $[41] = handleKeyDown, $[42] = handleRefChange, $[43] = padding, $[44] = restProps, $[45] = t11, $[46] = t12) : t12 = $[46];
5923
5770
  let t13;
5924
- return $[47] !== value || $[48] !== t12 ? (t13 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t12 }), $[47] = value, $[48] = t12, $[49] = t13) : t13 = $[49], t13;
5771
+ return $[47] !== t12 || $[48] !== value ? (t13 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t12 }), $[47] = t12, $[48] = value, $[49] = t13) : t13 = $[49], t13;
5925
5772
  });
5926
5773
  Menu.displayName = "ForwardRef(Menu)";
5927
5774
  const MenuButton = forwardRef(function(props, forwardedRef) {
@@ -5989,9 +5836,9 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
5989
5836
  }, $[16] = buttonElement, $[17] = menuElements, $[18] = t12) : t12 = $[18];
5990
5837
  const handleMenuClickOutside = t12;
5991
5838
  let t13;
5992
- $[19] !== disableRestoreFocusOnClose || $[20] !== buttonElement ? (t13 = () => {
5839
+ $[19] !== buttonElement || $[20] !== disableRestoreFocusOnClose ? (t13 = () => {
5993
5840
  setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
5994
- }, $[19] = disableRestoreFocusOnClose, $[20] = buttonElement, $[21] = t13) : t13 = $[21];
5841
+ }, $[19] = buttonElement, $[20] = disableRestoreFocusOnClose, $[21] = t13) : t13 = $[21];
5995
5842
  const handleMenuEscape = t13;
5996
5843
  let t14;
5997
5844
  $[22] !== menuElements ? (t14 = (event_2) => {
@@ -6005,15 +5852,15 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
6005
5852
  }, $[22] = menuElements, $[23] = t14) : t14 = $[23];
6006
5853
  const handleBlur = t14;
6007
5854
  let t15;
6008
- $[24] !== disableRestoreFocusOnClose || $[25] !== buttonElement ? (t15 = () => {
5855
+ $[24] !== buttonElement || $[25] !== disableRestoreFocusOnClose ? (t15 = () => {
6009
5856
  setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
6010
- }, $[24] = disableRestoreFocusOnClose, $[25] = buttonElement, $[26] = t15) : t15 = $[26];
5857
+ }, $[24] = buttonElement, $[25] = disableRestoreFocusOnClose, $[26] = t15) : t15 = $[26];
6011
5858
  const handleItemClick = t15;
6012
5859
  let t16;
6013
5860
  $[27] === Symbol.for("react.memo_cache_sentinel") ? (t16 = (el_1) => (setChildMenuElements((els) => els.concat([el_1])), () => setChildMenuElements((els_0) => els_0.filter((_el) => _el !== el_1))), $[27] = t16) : t16 = $[27];
6014
5861
  const registerElement = t16;
6015
5862
  let t17;
6016
- $[28] !== id || $[29] !== handleBlur || $[30] !== handleMenuClickOutside || $[31] !== handleMenuEscape || $[32] !== handleItemClick || $[33] !== buttonElement || $[34] !== shouldFocus || $[35] !== menuProp ? (t17 = menuProp && cloneElement(menuProp, {
5863
+ $[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && cloneElement(menuProp, {
6017
5864
  "aria-labelledby": id,
6018
5865
  onBlurCapture: handleBlur,
6019
5866
  onClickOutside: handleMenuClickOutside,
@@ -6022,10 +5869,10 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
6022
5869
  originElement: buttonElement,
6023
5870
  registerElement,
6024
5871
  shouldFocus
6025
- }), $[28] = id, $[29] = handleBlur, $[30] = handleMenuClickOutside, $[31] = handleMenuEscape, $[32] = handleItemClick, $[33] = buttonElement, $[34] = shouldFocus, $[35] = menuProp, $[36] = t17) : t17 = $[36];
5872
+ }), $[28] = buttonElement, $[29] = handleBlur, $[30] = handleItemClick, $[31] = handleMenuClickOutside, $[32] = handleMenuEscape, $[33] = id, $[34] = menuProp, $[35] = shouldFocus, $[36] = t17) : t17 = $[36];
6026
5873
  const menu = t17;
6027
5874
  let t18, t19;
6028
- $[37] !== buttonProp || $[38] !== open || $[39] !== id || $[40] !== handleMouseDown ? (t19 = buttonProp && cloneElement(buttonProp, {
5875
+ $[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open ? (t19 = buttonProp && cloneElement(buttonProp, {
6029
5876
  "data-ui": "MenuButton",
6030
5877
  id,
6031
5878
  onClick: handleButtonClick,
@@ -6035,14 +5882,14 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
6035
5882
  "aria-expanded": open,
6036
5883
  ref: setButtonElement,
6037
5884
  selected: buttonProp.props.selected ?? open
6038
- }), $[37] = buttonProp, $[38] = open, $[39] = id, $[40] = handleMouseDown, $[41] = t19) : t19 = $[41], t18 = t19;
5885
+ }), $[37] = buttonProp, $[38] = handleMouseDown, $[39] = id, $[40] = open, $[41] = t19) : t19 = $[41], t18 = t19;
6039
5886
  const button = t18;
6040
5887
  let t20, t21;
6041
5888
  $[42] !== buttonElement ? (t20 = () => buttonElement, t21 = [buttonElement], $[42] = buttonElement, $[43] = t20, $[44] = t21) : (t20 = $[43], t21 = $[44]), useImperativeHandle(forwardedRef, t20, t21);
6042
5889
  let t22, t23;
6043
5890
  $[45] !== popover ? (t23 = popover || {}, $[45] = popover, $[46] = t23) : t23 = $[46];
6044
5891
  let t24;
6045
- $[47] !== deprecated_boundaryElement || $[48] !== deprecated_placement || $[49] !== deprecated_portal || $[50] !== deprecated_preventOverflow || $[51] !== deprecated_popoverRadius || $[52] !== deprecated_popoverScheme || $[53] !== t23 ? (t24 = {
5892
+ $[47] !== deprecated_boundaryElement || $[48] !== deprecated_placement || $[49] !== deprecated_popoverRadius || $[50] !== deprecated_popoverScheme || $[51] !== deprecated_portal || $[52] !== deprecated_preventOverflow || $[53] !== t23 ? (t24 = {
6046
5893
  boundaryElement: deprecated_boundaryElement,
6047
5894
  overflow: "auto",
6048
5895
  placement: deprecated_placement,
@@ -6051,12 +5898,12 @@ const MenuButton = forwardRef(function(props, forwardedRef) {
6051
5898
  radius: deprecated_popoverRadius,
6052
5899
  scheme: deprecated_popoverScheme,
6053
5900
  ...t23
6054
- }, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] = deprecated_portal, $[50] = deprecated_preventOverflow, $[51] = deprecated_popoverRadius, $[52] = deprecated_popoverScheme, $[53] = t23, $[54] = t24) : t24 = $[54], t22 = t24;
5901
+ }, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] = deprecated_popoverRadius, $[50] = deprecated_popoverScheme, $[51] = deprecated_portal, $[52] = deprecated_preventOverflow, $[53] = t23, $[54] = t24) : t24 = $[54], t22 = t24;
6055
5902
  const popoverProps = t22;
6056
5903
  let t25;
6057
5904
  $[55] !== button ? (t25 = button || /* @__PURE__ */ jsx(Fragment, {}), $[55] = button, $[56] = t25) : t25 = $[56];
6058
5905
  let t26;
6059
- return $[57] !== popoverProps || $[58] !== menu || $[59] !== open || $[60] !== t25 ? (t26 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu, open, children: t25 }), $[57] = popoverProps, $[58] = menu, $[59] = open, $[60] = t25, $[61] = t26) : t26 = $[61], t26;
5906
+ return $[57] !== menu || $[58] !== open || $[59] !== popoverProps || $[60] !== t25 ? (t26 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu, open, children: t25 }), $[57] = menu, $[58] = open, $[59] = popoverProps, $[60] = t25, $[61] = t26) : t26 = $[61], t26;
6060
5907
  });
6061
5908
  MenuButton.displayName = "ForwardRef(MenuButton)";
6062
5909
  const MenuDivider = styled.hr`
@@ -6178,7 +6025,7 @@ function useMenu() {
6178
6025
  }
6179
6026
  function MenuGroup(props) {
6180
6027
  const $ = c(77);
6181
- let t0, t1, t2, t3, t4, t5, onClick, children, IconComponent, text, restProps, popover;
6028
+ let IconComponent, children, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
6182
6029
  $[0] !== props ? ({
6183
6030
  as: t0,
6184
6031
  children,
@@ -6192,7 +6039,7 @@ function MenuGroup(props) {
6192
6039
  text,
6193
6040
  tone: t5,
6194
6041
  ...restProps
6195
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = onClick, $[8] = children, $[9] = IconComponent, $[10] = text, $[11] = restProps, $[12] = popover) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], onClick = $[7], children = $[8], IconComponent = $[9], text = $[10], restProps = $[11], popover = $[12]);
6042
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = onClick, $[4] = popover, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = text) : (IconComponent = $[1], children = $[2], onClick = $[3], popover = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], text = $[12]);
6196
6043
  const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, menu = useMenu(), {
6197
6044
  scheme
6198
6045
  } = useRootTheme(), {
@@ -6247,7 +6094,7 @@ function MenuGroup(props) {
6247
6094
  return () => cancelAnimationFrame(rafId);
6248
6095
  }, t18 = [shouldFocus], $[32] = shouldFocus, $[33] = t17, $[34] = t18) : (t17 = $[33], t18 = $[34]), useEffect(t17, t18);
6249
6096
  let t19;
6250
- $[35] !== onClickOutside || $[36] !== onEscape || $[37] !== handleChildItemClick || $[38] !== handleMenuKeyDown || $[39] !== registerElement || $[40] !== shouldFocus || $[41] !== children ? (t19 = /* @__PURE__ */ jsx(Menu, { onClickOutside, onEscape, onItemClick: handleChildItemClick, onKeyDown: handleMenuKeyDown, onMouseEnter: handleMenuMouseEnter, registerElement, shouldFocus, children }), $[35] = onClickOutside, $[36] = onEscape, $[37] = handleChildItemClick, $[38] = handleMenuKeyDown, $[39] = registerElement, $[40] = shouldFocus, $[41] = children, $[42] = t19) : t19 = $[42];
6097
+ $[35] !== children || $[36] !== handleChildItemClick || $[37] !== handleMenuKeyDown || $[38] !== onClickOutside || $[39] !== onEscape || $[40] !== registerElement || $[41] !== shouldFocus ? (t19 = /* @__PURE__ */ jsx(Menu, { onClickOutside, onEscape, onItemClick: handleChildItemClick, onKeyDown: handleMenuKeyDown, onMouseEnter: handleMenuMouseEnter, registerElement, shouldFocus, children }), $[35] = children, $[36] = handleChildItemClick, $[37] = handleMenuKeyDown, $[38] = onClickOutside, $[39] = onEscape, $[40] = registerElement, $[41] = shouldFocus, $[42] = t19) : t19 = $[42];
6251
6098
  const childMenu = t19;
6252
6099
  let t20;
6253
6100
  $[43] === Symbol.for("react.memo_cache_sentinel") ? (t20 = (event_2) => {
@@ -6270,20 +6117,20 @@ function MenuGroup(props) {
6270
6117
  let t29;
6271
6118
  $[51] !== fontSize2 ? (t29 = /* @__PURE__ */ jsx(Text, { size: fontSize2, children: t28 }), $[51] = fontSize2, $[52] = t29) : t29 = $[52];
6272
6119
  let t30;
6273
- $[53] !== space || $[54] !== padding || $[55] !== t26 || $[56] !== t27 || $[57] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
6120
+ $[53] !== padding || $[54] !== space || $[55] !== t26 || $[56] !== t27 || $[57] !== t29 ? (t30 = /* @__PURE__ */ jsxs(Flex, { gap: space, padding, children: [
6274
6121
  t26,
6275
6122
  t27,
6276
6123
  t29
6277
- ] }), $[53] = space, $[54] = padding, $[55] = t26, $[56] = t27, $[57] = t29, $[58] = t30) : t30 = $[58];
6124
+ ] }), $[53] = padding, $[54] = space, $[55] = t26, $[56] = t27, $[57] = t29, $[58] = t30) : t30 = $[58];
6278
6125
  let t31;
6279
- $[59] !== as || $[60] !== restProps || $[61] !== t21 || $[62] !== t22 || $[63] !== t23 || $[64] !== t24 || $[65] !== tone || $[66] !== scheme || $[67] !== handleClick || $[68] !== handleMouseEnter || $[69] !== t25 || $[70] !== t30 ? (t31 = /* @__PURE__ */ jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[59] = as, $[60] = restProps, $[61] = t21, $[62] = t22, $[63] = t23, $[64] = t24, $[65] = tone, $[66] = scheme, $[67] = handleClick, $[68] = handleMouseEnter, $[69] = t25, $[70] = t30, $[71] = t31) : t31 = $[71];
6126
+ $[59] !== as || $[60] !== handleClick || $[61] !== handleMouseEnter || $[62] !== restProps || $[63] !== scheme || $[64] !== t21 || $[65] !== t22 || $[66] !== t23 || $[67] !== t24 || $[68] !== t25 || $[69] !== t30 || $[70] !== tone ? (t31 = /* @__PURE__ */ jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[59] = as, $[60] = handleClick, $[61] = handleMouseEnter, $[62] = restProps, $[63] = scheme, $[64] = t21, $[65] = t22, $[66] = t23, $[67] = t24, $[68] = t25, $[69] = t30, $[70] = tone, $[71] = t31) : t31 = $[71];
6280
6127
  let t32;
6281
- return $[72] !== popover || $[73] !== childMenu || $[74] !== open || $[75] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[72] = popover, $[73] = childMenu, $[74] = open, $[75] = t31, $[76] = t32) : t32 = $[76], t32;
6128
+ return $[72] !== childMenu || $[73] !== open || $[74] !== popover || $[75] !== t31 ? (t32 = /* @__PURE__ */ jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[72] = childMenu, $[73] = open, $[74] = popover, $[75] = t31, $[76] = t32) : t32 = $[76], t32;
6282
6129
  }
6283
6130
  MenuGroup.displayName = "MenuGroup";
6284
6131
  const MenuItem = forwardRef(function(props, forwardedRef) {
6285
6132
  const $ = c(74);
6286
- let t0, t1, t2, t3, t4, t5, selectedProp, disabled, onClick, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, pressed, IconComponent, text, IconRightComponent, hotkeys, children, restProps;
6133
+ let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
6287
6134
  $[0] !== props ? ({
6288
6135
  as: t0,
6289
6136
  children,
@@ -6307,7 +6154,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
6307
6154
  text,
6308
6155
  tone: t5,
6309
6156
  ...restProps
6310
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = selectedProp, $[8] = disabled, $[9] = onClick, $[10] = paddingX, $[11] = paddingY, $[12] = paddingTop, $[13] = paddingRight, $[14] = paddingBottom, $[15] = paddingLeft, $[16] = pressed, $[17] = IconComponent, $[18] = text, $[19] = IconRightComponent, $[20] = hotkeys, $[21] = children, $[22] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], selectedProp = $[7], disabled = $[8], onClick = $[9], paddingX = $[10], paddingY = $[11], paddingTop = $[12], paddingRight = $[13], paddingBottom = $[14], paddingLeft = $[15], pressed = $[16], IconComponent = $[17], text = $[18], IconRightComponent = $[19], hotkeys = $[20], children = $[21], restProps = $[22]);
6157
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = hotkeys, $[6] = onClick, $[7] = paddingBottom, $[8] = paddingLeft, $[9] = paddingRight, $[10] = paddingTop, $[11] = paddingX, $[12] = paddingY, $[13] = pressed, $[14] = restProps, $[15] = selectedProp, $[16] = t0, $[17] = t1, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = text) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], hotkeys = $[5], onClick = $[6], paddingBottom = $[7], paddingLeft = $[8], paddingRight = $[9], paddingTop = $[10], paddingX = $[11], paddingY = $[12], pressed = $[13], restProps = $[14], selectedProp = $[15], t0 = $[16], t1 = $[17], t2 = $[18], t3 = $[19], t4 = $[20], t5 = $[21], text = $[22]);
6311
6158
  const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, {
6312
6159
  scheme
6313
6160
  } = useRootTheme(), menu = useMenu(), {
@@ -6327,7 +6174,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
6327
6174
  }, $[29] = disabled, $[30] = onClick, $[31] = onItemClick, $[32] = t9) : t9 = $[32];
6328
6175
  const handleClick = t9;
6329
6176
  let t10, t11;
6330
- $[33] !== padding || $[34] !== paddingX || $[35] !== paddingY || $[36] !== paddingTop || $[37] !== paddingRight || $[38] !== paddingBottom || $[39] !== paddingLeft ? (t11 = {
6177
+ $[33] !== padding || $[34] !== paddingBottom || $[35] !== paddingLeft || $[36] !== paddingRight || $[37] !== paddingTop || $[38] !== paddingX || $[39] !== paddingY ? (t11 = {
6331
6178
  padding,
6332
6179
  paddingX,
6333
6180
  paddingY,
@@ -6335,7 +6182,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
6335
6182
  paddingRight,
6336
6183
  paddingBottom,
6337
6184
  paddingLeft
6338
- }, $[33] = padding, $[34] = paddingX, $[35] = paddingY, $[36] = paddingTop, $[37] = paddingRight, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = t11) : t11 = $[40], t10 = t11;
6185
+ }, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t11) : t11 = $[40], t10 = t11;
6339
6186
  const paddingProps = t10, t12 = useArrayProp(fontSize2);
6340
6187
  let t13;
6341
6188
  $[41] !== t12 ? (t13 = t12.map(_temp$1), $[41] = t12, $[42] = t13) : t13 = $[42];
@@ -6346,7 +6193,7 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
6346
6193
  }, $[43] = t14) : t14 = $[43];
6347
6194
  const setRef = t14, t15 = as === "button" && pressed, t16 = as !== "button" && pressed ? "" : void 0, t17 = active ? "" : void 0, t18 = disabled ? "" : void 0, t19 = useArrayProp(radius), t20 = useArrayProp(0), t21 = disabled ? "default" : tone, t22 = as === "button" ? "button" : void 0;
6348
6195
  let t23;
6349
- $[44] !== IconComponent || $[45] !== text || $[46] !== IconRightComponent || $[47] !== fontSize2 || $[48] !== hotkeys || $[49] !== hotkeysFontSize || $[50] !== space || $[51] !== paddingProps ? (t23 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
6196
+ $[44] !== IconComponent || $[45] !== IconRightComponent || $[46] !== fontSize2 || $[47] !== hotkeys || $[48] !== hotkeysFontSize || $[49] !== paddingProps || $[50] !== space || $[51] !== text ? (t23 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
6350
6197
  IconComponent && /* @__PURE__ */ jsxs(Text, { size: fontSize2, children: [
6351
6198
  isValidElement(IconComponent) && IconComponent,
6352
6199
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -6360,14 +6207,14 @@ const MenuItem = forwardRef(function(props, forwardedRef) {
6360
6207
  isValidElement(IconRightComponent) && IconRightComponent,
6361
6208
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
6362
6209
  ] })
6363
- ] }), $[44] = IconComponent, $[45] = text, $[46] = IconRightComponent, $[47] = fontSize2, $[48] = hotkeys, $[49] = hotkeysFontSize, $[50] = space, $[51] = paddingProps, $[52] = t23) : t23 = $[52];
6210
+ ] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] = t23) : t23 = $[52];
6364
6211
  let t24;
6365
6212
  $[53] !== children || $[54] !== paddingProps ? (t24 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[53] = children, $[54] = paddingProps, $[55] = t24) : t24 = $[55];
6366
6213
  let t25;
6367
- return $[56] !== restProps || $[57] !== t15 || $[58] !== t16 || $[59] !== t17 || $[60] !== t18 || $[61] !== as || $[62] !== t19 || $[63] !== t20 || $[64] !== t21 || $[65] !== scheme || $[66] !== disabled || $[67] !== handleClick || $[68] !== onItemMouseEnter || $[69] !== onItemMouseLeave || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 ? (t25 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...restProps, "aria-pressed": t15, "data-pressed": t16, "data-selected": t17, "data-disabled": t18, forwardedAs: as, $radius: t19, $padding: t20, $tone: t21, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role: "menuitem", tabIndex: -1, type: t22, children: [
6214
+ return $[56] !== as || $[57] !== disabled || $[58] !== handleClick || $[59] !== onItemMouseEnter || $[60] !== onItemMouseLeave || $[61] !== restProps || $[62] !== scheme || $[63] !== t15 || $[64] !== t16 || $[65] !== t17 || $[66] !== t18 || $[67] !== t19 || $[68] !== t20 || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 ? (t25 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...restProps, "aria-pressed": t15, "data-pressed": t16, "data-selected": t17, "data-disabled": t18, forwardedAs: as, $radius: t19, $padding: t20, $tone: t21, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role: "menuitem", tabIndex: -1, type: t22, children: [
6368
6215
  t23,
6369
6216
  t24
6370
- ] }), $[56] = restProps, $[57] = t15, $[58] = t16, $[59] = t17, $[60] = t18, $[61] = as, $[62] = t19, $[63] = t20, $[64] = t21, $[65] = scheme, $[66] = disabled, $[67] = handleClick, $[68] = onItemMouseEnter, $[69] = onItemMouseLeave, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25) : t25 = $[73], t25;
6217
+ ] }), $[56] = as, $[57] = disabled, $[58] = handleClick, $[59] = onItemMouseEnter, $[60] = onItemMouseLeave, $[61] = restProps, $[62] = scheme, $[63] = t15, $[64] = t16, $[65] = t17, $[66] = t18, $[67] = t19, $[68] = t20, $[69] = t21, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25) : t25 = $[73], t25;
6371
6218
  });
6372
6219
  MenuItem.displayName = "ForwardRef(MenuItem)";
6373
6220
  function _temp$1(s) {
@@ -6415,13 +6262,13 @@ const keyframe = keyframes`
6415
6262
  }
6416
6263
  `, Root$4 = styled(Box)(responsiveRadiusStyle, skeletonStyle), Skeleton = forwardRef(function(props, ref) {
6417
6264
  const $ = c(14);
6418
- let t0, delay, radius, restProps;
6265
+ let delay, radius, restProps, t0;
6419
6266
  $[0] !== props ? ({
6420
6267
  animated: t0,
6421
6268
  delay,
6422
6269
  radius,
6423
6270
  ...restProps
6424
- } = props, $[0] = props, $[1] = t0, $[2] = delay, $[3] = radius, $[4] = restProps) : (t0 = $[1], delay = $[2], radius = $[3], restProps = $[4]);
6271
+ } = props, $[0] = props, $[1] = delay, $[2] = radius, $[3] = restProps, $[4] = t0) : (delay = $[1], radius = $[2], restProps = $[3], t0 = $[4]);
6425
6272
  const animated = t0 === void 0 ? !1 : t0, [visible, setVisible] = useState(!delay);
6426
6273
  let t1, t2;
6427
6274
  $[5] !== delay ? (t1 = () => {
@@ -6436,7 +6283,7 @@ const keyframe = keyframes`
6436
6283
  }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2) : (t1 = $[6], t2 = $[7]), useEffect(t1, t2);
6437
6284
  const t3 = useArrayProp(radius);
6438
6285
  let t4;
6439
- return $[8] !== restProps || $[9] !== animated || $[10] !== t3 || $[11] !== visible || $[12] !== ref ? (t4 = /* @__PURE__ */ jsx(Root$4, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[8] = restProps, $[9] = animated, $[10] = t3, $[11] = visible, $[12] = ref, $[13] = t4) : t4 = $[13], t4;
6286
+ return $[8] !== animated || $[9] !== ref || $[10] !== restProps || $[11] !== t3 || $[12] !== visible ? (t4 = /* @__PURE__ */ jsx(Root$4, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[8] = animated, $[9] = ref, $[10] = restProps, $[11] = t3, $[12] = visible, $[13] = t4) : t4 = $[13], t4;
6440
6287
  });
6441
6288
  Skeleton.displayName = "ForwardRef(Skeleton)";
6442
6289
  const Root$3 = styled(Skeleton)((props) => {
@@ -6455,57 +6302,57 @@ const Root$3 = styled(Skeleton)((props) => {
6455
6302
  });
6456
6303
  }), TextSkeleton = forwardRef(function(props, ref) {
6457
6304
  const $ = c(7);
6458
- let t0, restProps;
6305
+ let restProps, t0;
6459
6306
  $[0] !== props ? ({
6460
6307
  size: t0,
6461
6308
  ...restProps
6462
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6309
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6463
6310
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6464
6311
  let t1;
6465
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "text" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6312
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "text" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6466
6313
  });
6467
6314
  TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
6468
6315
  const LabelSkeleton = forwardRef(function(props, ref) {
6469
6316
  const $ = c(7);
6470
- let t0, restProps;
6317
+ let restProps, t0;
6471
6318
  $[0] !== props ? ({
6472
6319
  size: t0,
6473
6320
  ...restProps
6474
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6321
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6475
6322
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6476
6323
  let t1;
6477
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "label" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6324
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "label" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6478
6325
  });
6479
6326
  LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
6480
6327
  const HeadingSkeleton = forwardRef(function(props, ref) {
6481
6328
  const $ = c(7);
6482
- let t0, restProps;
6329
+ let restProps, t0;
6483
6330
  $[0] !== props ? ({
6484
6331
  size: t0,
6485
6332
  ...restProps
6486
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6333
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6487
6334
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6488
6335
  let t1;
6489
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "heading" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6336
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "heading" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6490
6337
  });
6491
6338
  HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
6492
6339
  const CodeSkeleton = forwardRef(function(props, ref) {
6493
6340
  const $ = c(7);
6494
- let t0, restProps;
6341
+ let restProps, t0;
6495
6342
  $[0] !== props ? ({
6496
6343
  size: t0,
6497
6344
  ...restProps
6498
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6345
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6499
6346
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6500
6347
  let t1;
6501
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "code" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6348
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsx(Root$3, { ...restProps, $size, ref, $style: "code" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6502
6349
  });
6503
6350
  CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
6504
6351
  const CustomButton = styled(Button)`
6505
6352
  max-width: 100%;
6506
6353
  `, Tab = forwardRef(function(props, forwardedRef) {
6507
6354
  const $ = c(30);
6508
- let t0, t1, onFocus, focused, selected, restProps, icon, id, onClick, label;
6355
+ let focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
6509
6356
  $[0] !== props ? ({
6510
6357
  icon,
6511
6358
  id,
@@ -6517,7 +6364,7 @@ const CustomButton = styled(Button)`
6517
6364
  padding: t1,
6518
6365
  selected,
6519
6366
  ...restProps
6520
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = onFocus, $[4] = focused, $[5] = selected, $[6] = restProps, $[7] = icon, $[8] = id, $[9] = onClick, $[10] = label) : (t0 = $[1], t1 = $[2], onFocus = $[3], focused = $[4], selected = $[5], restProps = $[6], icon = $[7], id = $[8], onClick = $[9], label = $[10]);
6367
+ } = props, $[0] = props, $[1] = focused, $[2] = icon, $[3] = id, $[4] = label, $[5] = onClick, $[6] = onFocus, $[7] = restProps, $[8] = selected, $[9] = t0, $[10] = t1) : (focused = $[1], icon = $[2], id = $[3], label = $[4], onClick = $[5], onFocus = $[6], restProps = $[7], selected = $[8], t0 = $[9], t1 = $[10]);
6521
6368
  const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = useRef(null), focusedRef = useRef(!1);
6522
6369
  let t2;
6523
6370
  $[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], useImperativeHandle(forwardedRef, t2);
@@ -6537,7 +6384,7 @@ const CustomButton = styled(Button)`
6537
6384
  }, t6 = [focused], $[15] = focused, $[16] = t5, $[17] = t6) : (t5 = $[16], t6 = $[17]), useEffect(t5, t6);
6538
6385
  const t7 = selected ? "true" : "false", t8 = selected ? 0 : -1;
6539
6386
  let t9;
6540
- return $[18] !== restProps || $[19] !== t7 || $[20] !== fontSize2 || $[21] !== icon || $[22] !== id || $[23] !== onClick || $[24] !== handleFocus || $[25] !== padding || $[26] !== selected || $[27] !== t8 || $[28] !== label ? (t9 = /* @__PURE__ */ jsx(CustomButton, { "data-ui": "Tab", ...restProps, "aria-selected": t7, fontSize: fontSize2, icon, id, mode: "bleed", onClick, onBlur: handleBlur, onFocus: handleFocus, padding, ref, role: "tab", selected, tabIndex: t8, text: label, type: "button" }), $[18] = restProps, $[19] = t7, $[20] = fontSize2, $[21] = icon, $[22] = id, $[23] = onClick, $[24] = handleFocus, $[25] = padding, $[26] = selected, $[27] = t8, $[28] = label, $[29] = t9) : t9 = $[29], t9;
6387
+ return $[18] !== fontSize2 || $[19] !== handleFocus || $[20] !== icon || $[21] !== id || $[22] !== label || $[23] !== onClick || $[24] !== padding || $[25] !== restProps || $[26] !== selected || $[27] !== t7 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsx(CustomButton, { "data-ui": "Tab", ...restProps, "aria-selected": t7, fontSize: fontSize2, icon, id, mode: "bleed", onClick, onBlur: handleBlur, onFocus: handleFocus, padding, ref, role: "tab", selected, tabIndex: t8, text: label, type: "button" }), $[18] = fontSize2, $[19] = handleFocus, $[20] = icon, $[21] = id, $[22] = label, $[23] = onClick, $[24] = padding, $[25] = restProps, $[26] = selected, $[27] = t7, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
6541
6388
  });
6542
6389
  Tab.displayName = "ForwardRef(Tab)";
6543
6390
  const CustomInline = styled(Inline)`
@@ -6573,19 +6420,19 @@ const CustomInline = styled(Inline)`
6573
6420
  }, $[8] = numTabs, $[9] = t1) : t1 = $[9];
6574
6421
  const handleKeyDown = t1;
6575
6422
  let t2;
6576
- return $[10] !== restProps || $[11] !== handleKeyDown || $[12] !== ref || $[13] !== tabs ? (t2 = /* @__PURE__ */ jsx(CustomInline, { "data-ui": "TabList", ...restProps, onKeyDown: handleKeyDown, ref, role: "tablist", children: tabs }), $[10] = restProps, $[11] = handleKeyDown, $[12] = ref, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
6423
+ return $[10] !== handleKeyDown || $[11] !== ref || $[12] !== restProps || $[13] !== tabs ? (t2 = /* @__PURE__ */ jsx(CustomInline, { "data-ui": "TabList", ...restProps, onKeyDown: handleKeyDown, ref, role: "tablist", children: tabs }), $[10] = handleKeyDown, $[11] = ref, $[12] = restProps, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
6577
6424
  });
6578
6425
  TabList.displayName = "ForwardRef(TabList)";
6579
6426
  const TabPanel = forwardRef(function(props, ref) {
6580
6427
  const $ = c(9);
6581
- let restProps, flex;
6428
+ let flex, restProps;
6582
6429
  $[0] !== props ? ({
6583
6430
  flex,
6584
6431
  ...restProps
6585
- } = props, $[0] = props, $[1] = restProps, $[2] = flex) : (restProps = $[1], flex = $[2]);
6432
+ } = props, $[0] = props, $[1] = flex, $[2] = restProps) : (flex = $[1], restProps = $[2]);
6586
6433
  const t0 = props.tabIndex === void 0 ? 0 : props.tabIndex;
6587
6434
  let t1;
6588
- return $[3] !== restProps || $[4] !== flex || $[5] !== ref || $[6] !== t0 || $[7] !== props.children ? (t1 = /* @__PURE__ */ jsx(Box, { "data-ui": "TabPanel", ...restProps, flex, ref, role: "tabpanel", tabIndex: t0, children: props.children }), $[3] = restProps, $[4] = flex, $[5] = ref, $[6] = t0, $[7] = props.children, $[8] = t1) : t1 = $[8], t1;
6435
+ return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ jsx(Box, { "data-ui": "TabPanel", ...restProps, flex, ref, role: "tabpanel", tabIndex: t0, children: props.children }), $[3] = flex, $[4] = props.children, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1) : t1 = $[8], t1;
6589
6436
  });
6590
6437
  TabPanel.displayName = "ForwardRef(TabPanel)";
6591
6438
  const TextBox = styled(Flex)`
@@ -6650,7 +6497,7 @@ const STATUS_CARD_TONE = {
6650
6497
  }, Root$2 = styled(Card)(rootStyles);
6651
6498
  function Toast(props) {
6652
6499
  const $ = c(30);
6653
- let t0, status, title, description, closable, onClose, restProps, duration;
6500
+ let closable, description, duration, onClose, restProps, status, t0, title;
6654
6501
  $[0] !== props ? ({
6655
6502
  closable,
6656
6503
  description,
@@ -6660,7 +6507,7 @@ function Toast(props) {
6660
6507
  title,
6661
6508
  status,
6662
6509
  ...restProps
6663
- } = props, $[0] = props, $[1] = t0, $[2] = status, $[3] = title, $[4] = description, $[5] = closable, $[6] = onClose, $[7] = restProps, $[8] = duration) : (t0 = $[1], status = $[2], title = $[3], description = $[4], closable = $[5], onClose = $[6], restProps = $[7], duration = $[8]);
6510
+ } = props, $[0] = props, $[1] = closable, $[2] = description, $[3] = duration, $[4] = onClose, $[5] = restProps, $[6] = status, $[7] = t0, $[8] = title) : (closable = $[1], description = $[2], duration = $[3], onClose = $[4], restProps = $[5], status = $[6], t0 = $[7], title = $[8]);
6664
6511
  const radius = t0 === void 0 ? 3 : t0, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status";
6665
6512
  let t1;
6666
6513
  $[9] !== title ? (t1 = title && /* @__PURE__ */ jsx(Text, { size: 1, weight: "medium", children: title }), $[9] = title, $[10] = t1) : t1 = $[10];
@@ -6672,16 +6519,16 @@ function Toast(props) {
6672
6519
  t2
6673
6520
  ] }) }), $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15];
6674
6521
  let t4;
6675
- $[16] !== closable || $[17] !== buttonTone || $[18] !== onClose ? (t4 = closable && /* @__PURE__ */ jsx(Box, { padding: 1, children: /* @__PURE__ */ jsx(Button, { as: "button", icon: CloseIcon, mode: "bleed", padding: 2, tone: buttonTone, onClick: onClose, style: {
6522
+ $[16] !== buttonTone || $[17] !== closable || $[18] !== onClose ? (t4 = closable && /* @__PURE__ */ jsx(Box, { padding: 1, children: /* @__PURE__ */ jsx(Button, { as: "button", icon: CloseIcon, mode: "bleed", padding: 2, tone: buttonTone, onClick: onClose, style: {
6676
6523
  verticalAlign: "top"
6677
- } }) }), $[16] = closable, $[17] = buttonTone, $[18] = onClose, $[19] = t4) : t4 = $[19];
6524
+ } }) }), $[16] = buttonTone, $[17] = closable, $[18] = onClose, $[19] = t4) : t4 = $[19];
6678
6525
  let t5;
6679
6526
  $[20] !== t3 || $[21] !== t4 ? (t5 = /* @__PURE__ */ jsxs(Flex, { align: "flex-start", children: [
6680
6527
  t3,
6681
6528
  t4
6682
6529
  ] }), $[20] = t3, $[21] = t4, $[22] = t5) : t5 = $[22];
6683
6530
  let t6;
6684
- return $[23] !== role || $[24] !== restProps || $[25] !== radius || $[26] !== cardTone || $[27] !== duration || $[28] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$2, { "data-ui": "Toast", role, ...restProps, marginTop: 3, radius, shadow: 2, tone: cardTone, $duration: duration, children: t5 }), $[23] = role, $[24] = restProps, $[25] = radius, $[26] = cardTone, $[27] = duration, $[28] = t5, $[29] = t6) : t6 = $[29], t6;
6531
+ return $[23] !== cardTone || $[24] !== duration || $[25] !== radius || $[26] !== restProps || $[27] !== role || $[28] !== t5 ? (t6 = /* @__PURE__ */ jsx(Root$2, { "data-ui": "Toast", role, ...restProps, marginTop: 3, radius, shadow: 2, tone: cardTone, $duration: duration, children: t5 }), $[23] = cardTone, $[24] = duration, $[25] = radius, $[26] = restProps, $[27] = role, $[28] = t5, $[29] = t6) : t6 = $[29], t6;
6685
6532
  }
6686
6533
  Toast.displayName = "Toast";
6687
6534
  function useMounted() {
@@ -6798,7 +6645,7 @@ function ToastProvider(props) {
6798
6645
  toastsRef.current = {};
6799
6646
  }, t13 = [], $[10] = t12, $[11] = t13) : (t12 = $[10], t13 = $[11]), useEffect(t12, t13);
6800
6647
  let t14;
6801
- $[12] !== mounted || $[13] !== variants || $[14] !== prefersReducedMotion || $[15] !== state || $[16] !== padding || $[17] !== paddingX || $[18] !== paddingY || $[19] !== zOffset ? (t14 = mounted && /* @__PURE__ */ jsx(Root$1, { "data-ui": "ToastProvider", zOffset, children: /* @__PURE__ */ jsx(ToastContainer, { children: /* @__PURE__ */ jsx(Box, { padding, paddingX, paddingY, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, children: state.map((t152) => {
6648
+ $[12] !== mounted || $[13] !== padding || $[14] !== paddingX || $[15] !== paddingY || $[16] !== prefersReducedMotion || $[17] !== state || $[18] !== variants || $[19] !== zOffset ? (t14 = mounted && /* @__PURE__ */ jsx(Root$1, { "data-ui": "ToastProvider", zOffset, children: /* @__PURE__ */ jsx(ToastContainer, { children: /* @__PURE__ */ jsx(Box, { padding, paddingX, paddingY, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, children: state.map((t152) => {
6802
6649
  const {
6803
6650
  dismiss: dismiss_0,
6804
6651
  id: id_0,
@@ -6811,7 +6658,7 @@ function ToastProvider(props) {
6811
6658
  damping: 30,
6812
6659
  stiffness: 400
6813
6660
  }, children: /* @__PURE__ */ jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration }) }, id_0);
6814
- }) }) }) }) }), $[12] = mounted, $[13] = variants, $[14] = prefersReducedMotion, $[15] = state, $[16] = padding, $[17] = paddingX, $[18] = paddingY, $[19] = zOffset, $[20] = t14) : t14 = $[20];
6661
+ }) }) }) }) }), $[12] = mounted, $[13] = padding, $[14] = paddingX, $[15] = paddingY, $[16] = prefersReducedMotion, $[17] = state, $[18] = variants, $[19] = zOffset, $[20] = t14) : t14 = $[20];
6815
6662
  let t15;
6816
6663
  return $[21] !== children || $[22] !== t14 ? (t15 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
6817
6664
  children,
@@ -6883,13 +6730,13 @@ function _focusItemElement(el) {
6883
6730
  }
6884
6731
  const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = memo(forwardRef(function(props, forwardedRef) {
6885
6732
  const $ = c(37);
6886
- let t0, onFocus, children, restProps;
6733
+ let children, onFocus, restProps, t0;
6887
6734
  $[0] !== props ? ({
6888
6735
  children,
6889
6736
  space: t0,
6890
6737
  onFocus,
6891
6738
  ...restProps
6892
- } = props, $[0] = props, $[1] = t0, $[2] = onFocus, $[3] = children, $[4] = restProps) : (t0 = $[1], onFocus = $[2], children = $[3], restProps = $[4]);
6739
+ } = props, $[0] = props, $[1] = children, $[2] = onFocus, $[3] = restProps, $[4] = t0) : (children = $[1], onFocus = $[2], restProps = $[3], t0 = $[4]);
6893
6740
  const space = t0 === void 0 ? 1 : t0, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement);
6894
6741
  let t1, t2;
6895
6742
  $[5] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[5] = t2) : t2 = $[5], t1 = t2;
@@ -6943,7 +6790,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
6943
6790
  let t12;
6944
6791
  const t13 = focusedElement || itemElements[0] || null;
6945
6792
  let t14;
6946
- $[17] !== t13 || $[18] !== space || $[19] !== state ? (t14 = {
6793
+ $[17] !== space || $[18] !== state || $[19] !== t13 ? (t14 = {
6947
6794
  version: 0,
6948
6795
  focusedElement: t13,
6949
6796
  level: 0,
@@ -6953,7 +6800,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
6953
6800
  setFocusedElement,
6954
6801
  space,
6955
6802
  state
6956
- }, $[17] = t13, $[18] = space, $[19] = state, $[20] = t14) : t14 = $[20], t12 = t14;
6803
+ }, $[17] = space, $[18] = state, $[19] = t13, $[20] = t14) : t14 = $[20], t12 = t14;
6957
6804
  const contextValue = t12;
6958
6805
  let t15;
6959
6806
  $[21] !== itemElements ? (t15 = (event) => {
@@ -7032,7 +6879,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
7032
6879
  let t18;
7033
6880
  $[26] !== children ? (t18 = [children], $[26] = children, $[27] = t18) : t18 = $[27], useEffect(t17, t18);
7034
6881
  let t19;
7035
- $[28] !== restProps || $[29] !== handleFocus || $[30] !== handleKeyDown || $[31] !== space || $[32] !== children ? (t19 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...restProps, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", space, children }), $[28] = restProps, $[29] = handleFocus, $[30] = handleKeyDown, $[31] = space, $[32] = children, $[33] = t19) : t19 = $[33];
6882
+ $[28] !== children || $[29] !== handleFocus || $[30] !== handleKeyDown || $[31] !== restProps || $[32] !== space ? (t19 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...restProps, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", space, children }), $[28] = children, $[29] = handleFocus, $[30] = handleKeyDown, $[31] = restProps, $[32] = space, $[33] = t19) : t19 = $[33];
7036
6883
  let t20;
7037
6884
  return $[34] !== contextValue || $[35] !== t19 ? (t20 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t19 }), $[34] = contextValue, $[35] = t19, $[36] = t20) : t20 = $[36], t20;
7038
6885
  }));
@@ -7137,15 +6984,15 @@ function useTree() {
7137
6984
  }
7138
6985
  const TreeGroup = memo(function(props) {
7139
6986
  const $ = c(9);
7140
- let t0, restProps, children;
6987
+ let children, restProps, t0;
7141
6988
  $[0] !== props ? ({
7142
6989
  children,
7143
6990
  expanded: t0,
7144
6991
  ...restProps
7145
- } = props, $[0] = props, $[1] = t0, $[2] = restProps, $[3] = children) : (t0 = $[1], restProps = $[2], children = $[3]);
6992
+ } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0) : (children = $[1], restProps = $[2], t0 = $[3]);
7146
6993
  const expanded = t0 === void 0 ? !1 : t0, tree = useTree(), t1 = !expanded;
7147
6994
  let t2;
7148
- return $[4] !== restProps || $[5] !== t1 || $[6] !== tree.space || $[7] !== children ? (t2 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "TreeGroup", ...restProps, hidden: t1, marginTop: tree.space, role: "group", space: tree.space, children }), $[4] = restProps, $[5] = t1, $[6] = tree.space, $[7] = children, $[8] = t2) : t2 = $[8], t2;
6995
+ return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.space ? (t2 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "TreeGroup", ...restProps, hidden: t1, marginTop: tree.space, role: "group", space: tree.space, children }), $[4] = children, $[5] = restProps, $[6] = t1, $[7] = tree.space, $[8] = t2) : t2 = $[8], t2;
7149
6996
  }), Root = memo(styled.li(treeItemRootStyle, treeItemRootColorStyle)), TreeItemBox = styled(Box).attrs({
7150
6997
  forwardedAs: "a"
7151
6998
  })(treeItemBoxStyle), ToggleArrowText = styled(Text)`