PageSourceSearch

https://influential.co/_next/static/chunks/4dde46f6-23503c01a74c2d95.js

js influential.co collected 2026-09-24 10:05:00 UTC 139,184 bytes, 1,060 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7472],{75482:function(e,t,r){r.d(t,{$j:function(){return ec},Bj:function(){return usePrefersDark},CP:function(){return eZ},Ct:function(){return ei},E5:function(){return responsiveRadiusStyle},EK:function(){return ex},Fg:function(){return useTheme},J2:function(){return e4},Jh:function(){return U},Kq:function(){return ti},Kx:function(){return tg},LL:function(){return isHTMLInputElement},LZ:function(){return y},Lg:function(){return v},Lt:function(){return _responsive},NM:function(){return BoundaryElementProvider},OK:function(){return tW},Of:function(){return useClickOutsideEvent},Ph:function(){return tr},Q5:function(){return useArrayProp},R:function(){return tH},RV:function(){return isHTMLSelectElement},Re:function(){return isHTMLElement},Rm:function(){return _isEnterToClickElement},SV:function(){return tL},Tb:function(){return usePrefersReducedMotion},Uy:function(){return isRecord},W2:function(){return eR},X6:function(){return ez},XZ:function(){return ev},Xp:function(){return PortalProvider},Y8:function(){return e7},ZE:function(){return responsivePaddingStyle},ZH:function(){return isHTMLTextAreaElement},Zb:function(){return eh},__:function(){return F},bT:function(){return w},bg:function(){return isHTMLAnchorElement},d2:function(){return useMediaIndex},dG:function(){return containsOrEqualsElement},eb:function(){return ThemeColorProvider},f6:function(){return ThemeProvider},fe:function(){return isHTMLButtonElement},g9:function(){return useTheme_v2},gF:function(){return ej},gG:function(){return _cardColorStyle},h4:function(){return useElementSize},hO:function(){return rem},h_:function(){return Portal},iX:function(){return eO},kC:function(){return el},kS:function(){return MenuGroup},li:function(){return LayerProvider},m4:function(){return b},mh:function(){return eD},oi:function(){return tz},p2:function(){return q},qE:function(){return Y},qh:function(){return useGlobalKeyDown},rj:function(){return eC},rs:function(){return tu},sJ:function(){return useLayer},sN:function(){return tD},sz:function(){return useBoundaryElement},td:function(){return tY},tx:function(){return createGlobalScopedContext},u:function(){return tT},uE:function(){return TooltipDelayGroupProvider},v2:function(){return tG},vI:function(){return usePortal},xu:function(){return et},xv:function(){return eo},zx:function(){return ef}});var o=r(82297),n=r(85893),i=r(41048),a=r(67294),l=r(15437),d=r(59864),s=r(43747),c=r(18573),u=r(38494),p=r(9142),f=r(64521),m=r(58354),h=r(73935),g=r(41622);let b=o.m4,v=(0,o.fi)(),y=[],w={},x={card:{initial:{scale:.97,willChange:"transform"},hidden:{opacity:0},visible:{opacity:1,transition:{when:"beforeChildren",duration:.1}},scaleIn:{scale:1},scaleOut:{scale:.97}},children:{hidden:{opacity:0},visible:{opacity:1}},transition:{type:"spring",visualDuration:.2,bounce:.25}};function _isEnterToClickElement(e){return isHTMLAnchorElement(e)||isHTMLButtonElement(e)}function isHTMLElement(e){return e instanceof Node&&e.nodeType===Node.ELEMENT_NODE}function isHTMLAnchorElement(e){return isHTMLElement(e)&&"A"===e.nodeName}function isHTMLInputElement(e){return isHTMLElement(e)&&"INPUT"===e.nodeName}function isHTMLButtonElement(e){return isHTMLElement(e)&&"BUTTON"===e.nodeName}function isHTMLSelectElement(e){return isHTMLElement(e)&&"SELECT"===e.nodeName}function isHTMLTextAreaElement(e){return isHTMLElement(e)&&"TEXTAREA"===e.nodeName}function containsOrEqualsElement(e,t){return e.contains(t)||e===t}function rem(e){return 0===e?0:`${e/16}rem`}function _responsive(e,t,r){return(t?.map(r)||[]).map((t,r)=>0===r?t:{[`@media screen and (min-width: ${e[r-1]}px)`]:t})}function _getArrayProp(e,t){return void 0===e?t||y:Array.isArray(e)?e:[e]}function _getResponsiveSpace(e,t,r=y){if(!Array.isArray(r))throw Error("the property must be array of numbers");if(0===r.length)return null;let{media:n,space:i}=(0,o.aQ)(e);return _responsive(n,r,e=>{var r;return r=rem(i[e]),t.reduce((e,t)=>(e[t]=r,e),{})})}function responsiveFont(e,t){let{$size:r,$weight:n}=t,{font:i,media:a}=(0,o.aQ)(t.theme),{family:l,sizes:d,weights:s}=i[e],c=n&&s[n]||s.regular,u=d[2],p={position:"relative",fontFamily:l,fontWeight:`${c}
1`,padding:"1px 0",margin:0,"&:before":{content:'""',display:"block",height:0},"&:after":{content:'""',display:"block",height:0},"& > code, & > span":{display:"block"},"&:not([hidden])":{display:"block"}};if(!r)return responsiveFont.warned||(console.warn("No size specified for responsive font",{fontKey:e,$size:r,props:t,base:p}),responsiveFont.warned=!0),[p];let f=_responsive(a,r,e=>(function(e){let{ascenderHeight:t,descenderHeight:r,fontSize:o,iconSize:n,letterSpacing:i,lineHeight:a}=e,l=t+r,d=a-l,s=2*Math.floor(1.125*o/2)+1;return{fontSize:rem(o),lineHeight:`calc(${a} / ${o})`,letterSpacing:rem(i),transform:`translateY(${rem(r)})`,"&:before":{marginTop:`calc(${rem(0-l)} - 1px)`},"&:after":{marginBottom:"-1px"},"& svg:not([data-sanity-icon])":{fontSize:`calc(${s} / 16 * 1rem)`,margin:rem((d-s)/2)},"& [data-sanity-icon]":{fontSize:`calc(${n} / 16 * 1rem)`,margin:rem((d-n)/2)}}})(d[e]||u));return[p,...f]}function responsiveTextAlignStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$align,e=>({textAlign:e}))}function useArrayProp(e,t){let r;let o=(0,i.c)(3);o[0]!==t||o[1]!==e?(r=()=>[_getArrayProp(e,t),JSON.stringify(e??t)],o[0]=t,o[1]=e,o[2]=r):r=o[2];let[n,l]=(0,a.useState)(r),[d,s]=n,c=JSON.stringify(e??t);return c!==s&&l([_getArrayProp(e,t),c]),d}function useClickOutsideEvent(e,t,r){let o,n,l;let d=(0,i.c)(9),s=void 0===t?_temp$9:t;d[0]!==r||d[1]!==s||d[2]!==e?(o=t=>{if(!e)return;let o=t.target;if(!(o instanceof Node))return;let n=r?.();if(n&&!n.contains(o))return;let i=s().flat();for(let e of i)if(e&&(o===e||e.contains(o)))return;e(t)},d[0]=r,d[1]=s,d[2]=e,d[3]=o):o=d[3];let c=(0,g.i)(o),u=!!e;d[4]!==u||d[5]!==c?(n=()=>{if(!u)return;let handleEvent=e=>c(e);return document.addEventListener("mousedown",handleEvent),()=>{document.removeEventListener("mousedown",handleEvent)}},d[4]=u,d[5]=c,d[6]=n):n=d[6],d[7]!==u?(l=[u],d[7]=u,d[8]=l):l=d[8],(0,a.useEffect)(n,l),(0,a.useDebugValue)(e?"MouseDown On":"MouseDown Off")}function _temp$9(){return y}function useCustomValidity(e,t){let r,o;let n=(0,i.c)(4);n[0]!==t||n[1]!==e?(r=()=>{e.current?.setCustomValidity(t||"")},o=[t,e],n[0]=t,n[1]=e,n[2]=r,n[3]=o):(r=n[2],o=n[3]),(0,a.useEffect)(r,o)}let $="u">typeof document&&"u">typeof window&&window.ResizeObserver?window.ResizeObserver:m.do,S=function(){let e=new WeakMap,t=new WeakMap;return{subscribe(r,o){let n=t.get(r)||[],i=e.get(r);return t.has(r)||(t.set(r,n),i=({subscribe(e,t){let r=new $(([e])=>{t({_contentRect:e.contentRect,border:{width:e.borderBoxSize[0].inlineSize,height:e.borderBoxSize[0].blockSize},content:{width:e.contentRect.width,height:e.contentRect.height}})});return r.observe(e),()=>{r.unobserve(e),r.disconnect()}}}).subscribe(r,e=>{for(let t of n)t(e)})),n.push(o),()=>{let e=n.indexOf(o);e>-1&&n.splice(e,1),0===n.length&&i&&i()}}}}();function useElementSize(e){let t,r;let o=(0,i.c)(3),[n,l]=(0,a.useState)(null);return o[0]!==e?(t=()=>{if(e)return S.subscribe(e,l)},r=[e],o[0]=e,o[1]=t,o[2]=r):(t=o[1],r=o[2]),(0,a.useEffect)(t,r),n}function useGlobalKeyDown(e){let t,r,o;let n=(0,i.c)(5);n[0]!==e?(t=t=>e(t),n[0]=e,n[1]=t):t=n[1];let l=(0,g.i)(t);n[2]!==l?(r=()=>{let handler=e=>l(e);return window.addEventListener("keydown",handler),()=>window.removeEventListener("keydown",handler)},n[2]=l,n[3]=r):r=n[3],n[4]===Symbol.for("react.memo_cache_sentinel")?(o=[],n[4]=o):o=n[4],(0,a.useEffect)(r,o)}function useMatchMedia(e,t){let r,o;let n=(0,i.c)(4);return(0,a.useDebugValue)(e),n[0]!==e?(r=t=>{let r=window.matchMedia(e);return r.addEventListener("change",t),()=>r.removeEventListener("change",t)},n[0]=e,n[1]=r):r=n[1],n[2]!==e?(o=()=>window.matchMedia(e).matches,n[2]=e,n[3]=o):o=n[3],(0,a.useSyncExternalStore)(r,o,t)}let R=function(){if("u">typeof globalThis)return globalThis;if("u">typeof window)return window;if("u">typeof self)return self;if("u">typeof global)return global;throw Error("@sanity/ui: could not locate global scope")}();function createGlobalScopedContext(e,t){let r=Symbol.for(e);return typeof document>"u"?(0,a.createContext)(t):(R[r]=R[r]||(0,a.createContext)(t),R[r])}let k=createGlobalScopedContext("@sanity/ui/context/theme",null);function ThemeProvider(e){let t,r,d,s;let c=(0,i.c)(15),u=(0,a.useContext)(k),{children:p}=e,f=e.scheme??(u?.scheme||"light"),m=e.theme??(u?.theme||null),h=e.tone??(u?.tone||"default");e:{let e;if(!m){t=null;break e}c[0]!==m||c[1]!==f||c[2]!==h?(e={version:0,theme:m,scheme:f,tone:h},c[0]=m,c[1]=f,c[2]=h,c[3]=e):e=c[3],t=e}let g=t;t:{let e;if(!m){r=null;break t}c[4]!==m||c[5]!==f||c[6]!==h?(e=(0,o.BA)(m,f,h),c[4]=m,c[5]=f,c[6]=h,c[7]=e):e=c[7],r=e}let b=r;if(!b){let e;return c[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("pre",{children:'ThemeProvider: no "theme" property provided'}),c[8]=e):e=c[8],e}return c[9]!==p||c[10]!==b?(d=(0,n.jsx)(l.f6,{theme:b,children:p}),c[9]=p,c[10]=b,c[11]=d):d=c[11],c[12]!==d||c[13]!==g?(s=(0,n.jsx)(k.Provider,{value:g,children:d}),c[12]=d,c[13]=g,c[14]=s):s=c[14],s}
1function useRootTheme(){let e=(0,a.useContext)(k);if(!e)throw Error("useRootTheme(): missing context value");return e}function ThemeColorProvider(e){let t;let r=(0,i.c)(5),{children:o,scheme:a,tone:l}=e,d=useRootTheme(),s=a||d.scheme;return r[0]!==o||r[1]!==d.theme||r[2]!==s||r[3]!==l?(t=(0,n.jsx)(ThemeProvider,{scheme:s,theme:d.theme,tone:l,children:o}),r[0]=o,r[1]=d.theme,r[2]=s,r[3]=l,r[4]=t):t=r[4],t}function useTheme(){return(0,l.Fg)()}function useTheme_v2(){let e;let t=(0,i.c)(2),r=(0,l.Fg)();return t[0]!==r?(e=(0,o.aQ)(r),t[0]=r,t[1]=e):e=t[1],e}function getServerSnapshot(){return 0}function useMediaIndex(){let e;let t=(0,i.c)(2),{media:r}=useTheme_v2();t[0]!==r?(e=function(e){let t;let r=e.length,getSizes=()=>{if(!t){t=[];for(let n=r;n>-1;n-=1){var o;let r=0===(o=n)?`screen and (max-width: ${e[o]-1}px)`:o===e.length?`screen and (min-width: ${e[o-1]}px)`:`screen and (min-width: ${e[o-1]}px) and (max-width: ${e[o]-1}px)`;t.push({index:n,mq:window.matchMedia(r)})}}return t};return{getSnapshot:()=>{for(let{index:e,mq:t}of getSizes())if(t.matches)return e;return 0},subscribe:e=>{let t=[];for(let{mq:r}of getSizes()){let handleChange=()=>{r.matches&&e()};r.addEventListener("change",handleChange),t.push(()=>r.removeEventListener("change",handleChange))}return()=>{for(let e of t)e()}}}}(r),t[0]=r,t[1]=e):e=t[1];let o=e;return(0,a.useSyncExternalStore)(o.subscribe,o.getSnapshot,getServerSnapshot)}function usePrefersDark(e){return useMatchMedia("(prefers-color-scheme: dark)",void 0===e?_temp$8:e)}function _temp$8(){return!1}function usePrefersReducedMotion(e){return useMatchMedia("(prefers-reduced-motion: reduce)",void 0===e?_temp$7:e)}function _temp$7(){return!1}function border(e){let{card:t,media:r}=(0,o.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(r,e.$border,e=>e?{"&&":{border:n}}:{"&&":{border:0}})}function borderTop(e){let{card:t,media:r}=(0,o.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(r,e.$borderTop,e=>e?{"&&":{borderTop:n}}:{"&&":{borderTop:0}})}function borderRight(e){let{card:t,media:r}=(0,o.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(r,e.$borderRight,e=>e?{"&&":{borderRight:n}}:{"&&":{borderRight:0}})}function borderBottom(e){let{card:t,media:r}=(0,o.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(r,e.$borderBottom,e=>e?{"&&":{borderBottom:n}}:{"&&":{borderBottom:0}})}function borderLeft(e){let{card:t,media:r}=(0,o.aQ)(e.theme),n=`${t.border?.width??1}px solid var(--card-border-color)`;return _responsive(r,e.$borderLeft,e=>e?{"&&":{borderLeft:n}}:{"&&":{borderLeft:0}})}ThemeProvider.displayName="ThemeProvider",ThemeColorProvider.displayName="ThemeColorProvider";let C={'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},_={content:"content-box",border:"border-box"},z={stretch:"stretch",fill:"100%"};function responsiveBoxDisplayStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$display,e=>({"&:not([hidden])":{display:e}}))}function responsiveBoxSizingStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$sizing,e=>({boxSizing:_[e]}))}function responsiveBoxHeightStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$height,e=>({height:z[e]}))}function responsiveBoxOverflowStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$overflow,e=>({overflow:e}))}let E={minWidth:0,minHeight:0};function flexItemStyle(){return[E,responsiveFlexItemStyle]}function responsiveFlexItemStyle(e){let{media:t}=(0,o.aQ)(e.theme);return e.$flex?_responsive(t,e.$flex,e=>({flex:`${e}`})):y}let j={"&&:not([hidden])":{display:"flex"}};function responsiveFlexAlignStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$align,e=>({alignItems:e}))}function responsiveFlexGapStyle(e){let{media:t,space:r}=(0,o.aQ)(e.theme);return _responsive(t,e.$gap,e=>({gap:e?rem(r[e]):void 0}))}function responsiveFlexWrapStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$wrap,e=>({flexWrap:e}))}function responsiveFlexJustifyStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$justify,e=>({justifyContent:e}))}function responsiveFlexDirectionStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$direction,e=>({flexDirection:e}))}function focusRingBorderStyle(e){return`inset 0 0 0 ${e.width}px ${e.color}`}function focusRingStyle(e){let{base:t,border:r,focusRing:o}=e,n=o.offset+o.width,i=0-o.offset,a=t?t.bg:"var(--card-bg-color)";return[i>0&&`inset 0 0 0 ${i}px var(--card-focus-ring-color)`,r&&focusRingBorderStyle(r),i<0&&`0 0 0 ${0-i}px ${a}`,n>0&&`0 0 0 ${n}
1px var(--card-focus-ring-color)`].filter(Boolean).join(",")}let P={auto:"auto",full:"1 / -1"},A={auto:"auto",full:"1 / -1"};function responsiveGridItemRowStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$row,e=>"number"==typeof e?{gridRow:`span ${e} / span ${e}`}:{gridRow:P[e]})}function responsiveGridItemRowStartStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$rowStart,e=>({gridRowStart:`${e}`}))}function responsiveGridItemRowEndStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$rowEnd,e=>({gridRowEnd:`${e}`}))}function responsiveGridItemColumnStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$column,e=>"number"==typeof e?{gridColumn:`span ${e} / span ${e}`}:{gridColumn:A[e]})}function responsiveGridItemColumnStartStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$columnStart,e=>({gridColumnStart:`${e}`}))}function responsiveGridItemColumnEndStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$columnEnd,e=>({gridColumnEnd:`${e}`}))}let I={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"}},T={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},N={auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"};function responsiveGridAutoFlowStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$autoFlow,e=>({gridAutoFlow:e}))}function responsiveGridAutoRowsStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$autoRows,e=>({gridAutoRows:e&&N[e]}))}function responsiveGridAutoColsStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$autoCols,e=>({gridAutoColumns:e&&T[e]}))}function responsiveGridColumnsStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$columns,e=>({gridTemplateColumns:e&&`repeat(${e},minmax(0,1fr));`}))}function responsiveGridRowsStyle(e){let{media:t}=(0,o.aQ)(e.theme);return _responsive(t,e.$rows,e=>({gridTemplateRows:e&&`repeat(${e},minmax(0,1fr));`}))}function responsiveGridGapStyle(e){let{media:t,space:r}=(0,o.aQ)(e.theme);return _responsive(t,e.$gap,e=>({gridGap:e?rem(r[e]):void 0}))}function responsiveGridGapXStyle(e){let{media:t,space:r}=(0,o.aQ)(e.theme);return _responsive(t,e.$gapX,e=>({columnGap:e?rem(r[e]):void 0}))}function responsiveGridGapYStyle(e){let{media:t,space:r}=(0,o.aQ)(e.theme);return _responsive(t,e.$gapY,e=>({rowGap:e?rem(r[e]):void 0}))}function responsiveInputPaddingStyle(e){let{$fontSize:t,$iconLeft:r,$iconRight:n,$padding:i,$space:a}=e,{font:l,media:d,space:s}=(0,o.aQ)(e.theme),c=Math.max(i.length,a.length,t.length),u=[],p=[],f=[];for(let e=0;e<c;e+=1)f[e]=void 0===t[e]?f[e-1]:t[e],u[e]=void 0===i[e]?u[e-1]:i[e],p[e]=void 0===a[e]?p[e-1]:a[e];return _responsive(d,u,(e,t)=>{let o=l.text.sizes[f[t]]||l.text.sizes[2],i=o.lineHeight-o.ascenderHeight-o.descenderHeight,a=s[u[t]],d=s[p[t]],c={paddingTop:rem(a-o.ascenderHeight),paddingRight:rem(a),paddingBottom:rem(a-o.descenderHeight),paddingLeft:rem(a)};return n&&(c.paddingRight=rem(a+i+d)),r&&(c.paddingLeft=rem(a+i+d)),c})}function responsiveInputPaddingIconRightStyle(e){return responsiveInputPaddingStyle({...e,$iconRight:!0})}let M=l.iv`
2  &:not([hidden]) {
3    display: flex;
4  }
5
6  align-items: center;
7`;function textInputRootStyle(){return M}function textInputBaseStyle(e){let{$scheme:t,$tone:r,$weight:n}=e,{color:i,font:a}=(0,o.aQ)(e.theme);return l.iv`
8    appearance: none;
9    background: none;
10    border: 0;
11    border-radius: 0;
12    outline: none;
13    width: 100%;
14    box-sizing: border-box;
15    font-family: ${a.text.family};
16    font-weight: ${n&&a.text.weights[n]||a.text.weights.regular};
17    margin: 0;
18    position: relative;
19    z-index: 1;
20    display: block;
21
22    /* NOTE: This is a hack to disable Chrome’s autofill styles */
23    &:-webkit-autofill,
24    &:-webkit-autofill:hover,
25    &:-webkit-autofill:focus,
26    &:-webkit-autofill:active {
27      -webkit-text-fill-color: var(--input-fg-color) !important;
28      transition: background-color 5000s;
29      transition-delay: 86400s /* 24h */;
30    }
31
32    /* &:is(textarea) */
33    &[data-as='textarea'] {
34      resize: none;
35    }
36
37    color: var(--input-fg-color);
38
39    &::placeholder {
40      color: var(--input-placeholder-color);
41    }
42
43    &[data-scheme='${t}'][data-tone='${r}'] {
44      --input-fg-color: ${i.input.default.enabled.fg};
45      --input-placeholder-color: ${i.input.default.enabled.placeholder};
46
47      /* enabled */
48      &:not(:invalid):not(:disabled):not(:read-only) {
49        --input-fg-color: ${i.input.default.enabled.fg};
50        --input-placeholder-color: ${i.input.default.enabled.placeholder};
51      }
52
53      /* disabled */
54      &:not(:invalid):disabled {
55        --input-fg-color: ${i.input.default.disabled.fg};
56        --input-placeholder-color: ${i.input.default.disabled.placeholder};
57      }
58
59      /* invalid */
60      &:invalid {
61        --input-fg-color: ${i.input.invalid.enabled.fg};
62        --input-placeholder-color: ${i.input.invalid.enabled.placeholder};
63      }
64
65      /* readOnly */
66      &:read-only {
67        --input-fg-color: ${i.input.default.readOnly.fg};
68        --input-placeholder-color: ${i.input.default.readOnly.placeholder};
69      }
70    }
71  `}function textInputFontSizeStyle(e){let{font:t,media:r}=(0,o.aQ)(e.theme);return _responsive(r,e.$fontSize,e=>{let r=t.text.sizes[e]||t.text.sizes[2];return{fontSize:rem(r.fontSize),lineHeight:`${r.lineHeight/r.fontSize}`}})}function textInputRepresentationStyle(e){let{$hasPrefix:t,$hasSuffix:r,$scheme:n,$tone:i,$unstableDisableFocusRing:a}=e,{color:d,input:s}=(0,o.aQ)(e.theme);return l.iv`
72    --input-box-shadow: none;
73
74    position: absolute;
75    top: 0;
76    left: 0;
77    right: 0;
78    bottom: 0;
79    display: block;
80    pointer-events: none;
81    z-index: 0;
82
83    background-color: var(--card-bg-color);
84    box-shadow: var(--input-box-shadow);
85
86    border-top-left-radius: ${t?0:void 0};
87    border-bottom-left-radius: ${t?0:void 0};
88    border-top-right-radius: ${r?0:void 0};
89    border-bottom-right-radius: ${r?0:void 0};
90
91    &[data-scheme='${n}'][data-tone='${i}'] {
92      --card-bg-color: ${d.input.default.enabled.bg};
93      --card-fg-color: ${d.input.default.enabled.fg};
94
95      /* enabled */
96      *:not(:disabled) + &[data-border] {
97        --input-box-shadow: ${focusRingBorderStyle({color:d.input.default.enabled.border,width:s.border.width})};
98      }
99
100      /* invalid */
101      *:not(:disabled):invalid + & {
102        --card-bg-color: ${d.input.invalid.enabled.bg};
103        --card-fg-color: ${d.input.invalid.enabled.fg};
104
105        &[data-border] {
106          --input-box-shadow: ${focusRingBorderStyle({color:d.input.invalid.enabled.border,width:s.border.width})};
107        }
108      }
109
110      /* focused */
111      *:not(:disabled):focus + & {
112        &[data-border] {
113          --input-box-shadow: ${a?void 0:focusRingStyle({border:{color:d.input.default.enabled.border,width:s.border.width},focusRing:s.text.focusRing})};
114        }
115
116        &:not([data-border]) {
117          --input-box-shadow: ${a?void 0:focusRingStyle({focusRing:s.text.focusRing})};
118        }
119      }
120
121      /* disabled */
122      *:not(:invalid):disabled + & {
123        --card-bg-color: ${d.input.default.disabled.bg} !important;
124        --card-fg-color: ${d.input.default.disabled.fg} !important;
125        --card-icon-color: ${d.input.default.disabled.fg} !important;
126
127        &[data-border] {
128          --input-box-shadow: ${focusRingBorderStyle({color:d.input.default.disabled.border,width:s.border.width})};
129        }
130      }
131
132      *:invalid:disabled + & {
133        --card-bg-color: ${d.input.invalid.disabled.bg} !important;
134        --card-fg-color: ${d.input.invalid.disabled.fg} !important;
135        --card-icon-color: ${d.input.invalid.disabled.fg} !important;
136
137        &[data-border] {
138          --input-box-shadow: ${focusRingBorderStyle({color:d.input.invalid.disabled.border,width:s.border.width})};
139        }
140      }
141
142      /* readOnly */
143      *:not(:invalid):read-only + & {
144        --card-bg-color: ${d.input.default.readOnly.bg} !important;
145        --card-fg-color: ${d.input.default.readOnly.fg} !important;
146      }
147
148      *:invalid:read-only + & {
149        --card-bg-color: ${d.input.invalid.readOnly.bg} !important;
150        --card-fg-color: ${d.input.invalid.readOnly.fg} !important;
151      }
152
153      /* hovered */
154      @media (hover: hover) {
155        *:not(:disabled):not(:read-only):not(:invalid):hover + & {
156          --card-bg-color: ${d.input.default.hovered.bg};
157          --card-fg-color: ${d.input.default.hovered.fg};
158        }
159
160        *:invalid:not(:disabled):not(:read-only):hover + & {
161          --card-bg-color: ${d.input.invalid.hovered.bg};
162          --card-fg-color: ${d.input.invalid.hovered.fg};
163        }
164
165        *:not(:disabled):not(:read-only):not(:invalid):not(:focus):hover + &[data-border] {
166          --input-box-shadow: ${focusRingBorderStyle({color:d.input.default.hovered.border,width:s.border.width})};
167        }
168
169        *:invalid:not(:disabled):not(:read-only):not(:focus):hover + &[data-border] {
170          --input-box-shadow: ${focusRingBorderStyle({color:d.input.invalid.hovered.border,width:s.border.width})};
171        }
172      }
173    }
174  `}function responsivePaddingStyle(e){let{theme:t}=e;return[_getResponsiveSpace(t,["padding"],e.$padding),_getResponsiveSpace(t,["paddingLeft","paddingRight"],e.$paddingX),_getResponsiveSpace(t,["paddingTop","paddingBottom"],e.$paddingY),_getResponsiveSpace(t,["paddingTop"],e.$paddingTop),_getResponsiveSpace(t,["paddingRight"],e.$paddingRight),_getResponsiveSpace(t,["paddingBottom"],e.$paddingBottom),_getResponsiveSpace(t,["paddingLeft"],e.$paddingLeft)].filter(Boolean)}function responsiveRadiusStyle(e){let{media:t,radius:r}=(0,o.aQ)(e.theme);return _responsive(t,e.$radius,e=>{let t=0;return"number"==typeof e&&(t=rem(r[e])),"full"===e&&(t="9999px"),{borderRadius:t}})}function toBoxShadow(e,t){return`${e.map(rem).join(" ")} ${t}`}let L=l.zo.span.withConfig({displayName:"SpanWithTextOverflow",componentId:"sc-ol2i3b-0"})`display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;overflow:clip;`,B=l.zo.div.withConfig({displayName:"StyledLabel",componentId:"sc-1luap7z-0"})(function(e){return responsiveFont("label",e)},responsiveTextAlignStyle,function(e){let{$accent:t,$muted:r}=e,{font:n}=(0,o.aQ)(e.theme);return l.iv`
175    text-transform: uppercase;
176
177    ${t&&l.iv`
178      color: var(--card-accent-fg-color);
179    `}
180
181    ${r&&l.iv`
182      color: var(--card-muted-fg-color);
183    `}
184
185    & code {
186      font-family: ${n.code.family};
187      border-radius: 1px;
188    }
189
190    & a {
191      text-decoration: none;
192      border-radius: 1px;
193    }
194
195    & svg {
196      /* Certain popular CSS libraries changes the defaults for SVG display */
197      /* Make sure SVGs are rendered as inline elements */
198      display: inline;
199    }
200
201    & [data-sanity-icon] {
202      vertical-align: baseline;
203    }
204  `}),F=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p;let f=(0,i.c)(22);f[0]!==e?({accent:r,align:o,children:a,muted:d,size:s,textOverflow:c,weight:u,...l}=e,f[0]=e,f[1]=r,f[2]=o,f[3]=a,f[4]=l,f[5]=d,f[6]=s,f[7]=c,f[8]=u):(r=f[1],o=f[2],a=f[3],l=f[4],d=f[5],s=f[6],c=f[7],u=f[8]);let m=void 0!==d&&d,h=void 0===s?2:s,g=a;if("ellipsis"===c){let e;f[9]!==g?(e=(0,n.jsx)(L,{children:g}),f[9]=g,f[10]=e):e=f[10],g=e}else{let e;f[11]!==g?(e=(0,n.jsx)("span",{children:g}),f[11]=g,f[12]=e):e=f[12],g=e}let b=useArrayProp(o),v=useArrayProp(h);return f[13]!==r||f[14]!==g||f[15]!==m||f[16]!==t||f[17]!==l||f[18]!==b||f[19]!==v||f[20]!==u?(p=(0,n.jsx)(B,{"data-ui":"Label",...l,$accent:r,$align:b,$muted:m,$size:v,$weight:u,ref:t,children:g}),f[13]=r,f[14]=g,f[15]=m,f[16]=t,f[17]=l,f[18]=b,f[19]=v,f[20]=u,f[21]=p):p=f[21],p});F.displayName="ForwardRef(Label)";let O={root:function(e){let{$color:t}=e,{avatar:r}=(0,o.aQ)(e.theme);return{"--avatar-bg-color":`var(--card-avatar-${t}-bg-color)`,"--avatar-fg-color":`var(--card-avatar-${t}-fg-color)`,backgroundColor:"var(--avatar-bg-color)",position:"relative",boxSizing:"border-box",userSelect:"none",boxShadow:"0 0 0 1px var(--card-bg-color)",'&[data-status="inactive"]':{opacity:"0.5"},"&>svg":{"&:not([hidden])":{display:"block"}},'&[data-as="button"]':{WebkitFontSmoothing:"inherit",appearance:"none",margin:0,padding:0,border:0,font:"inherit",color:"inherit",outline:"none","&:focus":{boxShadow:focusRingStyle({focusRing:r.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:"none"}}}},arrow:function(){return{position:"absolute",boxSizing:"border-box",zIndex:"0",opacity:"0",transition:"all 0.2s linear",transform:"rotate(-90deg) translate3d(0, 6px, 0)",left:0,right:0,top:0,bottom:0,"& > svg":{width:"11px",height:"7px",position:"absolute",top:"-5px",left:"50%",transform:"translateX(-6px)","&:not([hidden])":{display:"block"}},"[data-arrow-position='inside'] > &":{transform:"rotate(-90deg) translate3d(0, 6px, 0)",opacity:"0"},"[data-arrow-position='top'] > &":{opacity:"1",transform:"rotate(0deg)"},"[data-arrow-position='bottom'] > &":{opacity:"1",transform:"rotate(-180deg)"}}},bgStroke:function(){return{strokeWidth:"4px",stroke:"var(--card-bg-color)"}},stroke:function(){return{strokeWidth:"2px",stroke:"var(--avatar-bg-color)",'[data-status="editing"] &':{strokeDasharray:"2 4",strokeLinecap:"round"}}},initials:function(){return{width:"100%",height:"100%",color:"var(--avatar-fg-color)",alignItems:"center",justifyContent:"center",textTransform:"uppercase",textAlign:"center",borderRadius:"50%","&:not([hidden])":{display:"flex"}}},image:function(){return{position:"relative"}}
204},G=l.zo.div.withConfig({displayName:"StyledAvatar",componentId:"sc-1rj7kl0-0"})(function(e){let{avatar:t,media:r}=(0,o.aQ)(e.theme);return _responsive(r,e.$size,e=>{let r=t.sizes[e]||t.sizes[0];return{width:rem(r.size),height:rem(r.size),borderRadius:rem(r.size/2),"&>svg":{width:rem(r.size),height:rem(r.size),borderRadius:rem(r.size/2)}}})},O.root),H=l.zo.div.withConfig({displayName:"Arrow",componentId:"sc-1rj7kl0-1"})(O.arrow),Q=l.zo.ellipse.withConfig({displayName:"BgStroke",componentId:"sc-1rj7kl0-2"})(O.bgStroke),D=l.zo.ellipse.withConfig({displayName:"Stroke",componentId:"sc-1rj7kl0-3"})(O.stroke),V=l.zo.div.withConfig({displayName:"Initials",componentId:"sc-1rj7kl0-4"})(O.initials),W=(0,l.zo)(F).withConfig({displayName:"InitialsLabel",componentId:"sc-1rj7kl0-5"})({color:"inherit"}),X=l.zo.svg.withConfig({displayName:"AvatarImage",componentId:"sc-1rj7kl0-6"})(O.image),Y=(0,a.forwardRef)(function(e,t){let r,o,l,s,c,u,p,f,m,h,g,b,v,y,w,x,$,S,R,k,C,_;let z=(0,i.c)(52);z[0]!==e?({__unstable_hideInnerStroke:r,as:s,color:m,src:f,title:b,initials:c,onImageLoadError:u,arrowPosition:l,animateArrowFrom:o,status:h,size:g,...p}=e,z[0]=e,z[1]=r,z[2]=o,z[3]=l,z[4]=s,z[5]=c,z[6]=u,z[7]=p,z[8]=f,z[9]=m,z[10]=h,z[11]=g,z[12]=b):(r=z[1],o=z[2],l=z[3],s=z[4],c=z[5],u=z[6],p=z[7],f=z[8],m=z[9],h=z[10],g=z[11],b=z[12]);let E=void 0===m?"gray":m,j=void 0===h?"online":h,P=void 0===g?1:g,{avatar:A}=useTheme_v2(),I=d.isValidElementType(s)?s:"div",T=useArrayProp(P),N=(A.sizes[T[0]]||A.sizes[0]).size,M=N/2,L=(0,a.useId)(),[B,F]=(0,a.useState)(o||l||"inside"),[O,Y]=(0,a.useState)(!1),K=`avatar-image-${L}`;z[13]!==B||z[14]!==l?(v=()=>{if(B===l)return;let e=requestAnimationFrame(()=>F(l));return()=>cancelAnimationFrame(e)},y=[B,l],z[13]=B,z[14]=l,z[15]=v,z[16]=y):(v=z[15],y=z[16]),(0,a.useEffect)(v,y),z[17]!==f?(w=()=>{f&&Y(!1)},x=[f],z[17]=f,z[18]=w,z[19]=x):(w=z[18],x=z[19]),(0,a.useEffect)(w,x),z[20]!==u?($=()=>{Y(!0),u&&u(Error("Avatar: the image failed to load"))},z[20]=u,z[21]=$):$=z[21];let q=$;z[22]!==T?(S=T.map(_temp$6),z[22]=T,z[23]=S):S=z[23];let J=S,Z="string"==typeof I?I:void 0;return z[24]!==E?(R=(0,n.jsx)(H,{children:(0,n.jsx)("svg",{width:"11",height:"7",viewBox:"0 0 11 7",fill:"none",children:(0,n.jsx)("path",{d:"M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z",fill:E})})}),z[24]=E,z[25]=R):R=z[25],z[26]!==r||z[27]!==M||z[28]!==N||z[29]!==q||z[30]!==O||z[31]!==K||z[32]!==f?(k=!O&&f&&(0,n.jsxs)(X,{viewBox:`0 0 ${N} ${N}`,fill:"none",children:[(0,n.jsx)("defs",{children:(0,n.jsx)("pattern",{id:K,patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,n.jsx)("image",{href:f,width:"1",height:"1",onError:q})})}),(0,n.jsx)("circle",{cx:M,cy:M,r:M,fill:`url(#${K})`}),!r&&(0,n.jsx)(Q,{cx:M,cy:M,rx:M,ry:M,vectorEffect:"non-scaling-stroke"}),(0,n.jsx)(D,{cx:M,cy:M,rx:M,ry:M,vectorEffect:"non-scaling-stroke"})]}),z[26]=r,z[27]=M,z[28]=N,z[29]=q,z[30]=O,z[31]=K,z[32]=f,z[33]=k):k=z[33],z[34]!==O||z[35]!==c||z[36]!==J||z[37]!==f?(C=(O||!f)&&c&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(V,{children:(0,n.jsx)(W,{forwardedAs:"span",size:J,weight:"medium",children:c})})}),z[34]=O,z[35]=c,z[36]=J,z[37]=f,z[38]=C):C=z[38],z[39]!==B||z[40]!==I||z[41]!==E||z[42]!==t||z[43]!==p||z[44]!==T||z[45]!==j||z[46]!==R||z[47]!==k||z[48]!==C||z[49]!==Z||z[50]!==b?(_=(0,n.jsxs)(G,{as:I,"data-as":Z,"data-ui":"Avatar",...p,$color:E,$size:T,"aria-label":b,"data-arrow-position":B,"data-status":j,ref:t,title:b,children:[R,k,C]}),z[39]=B,z[40]=I,z[41]=E,z[42]=t,z[43]=p,z[44]=T,z[45]=j,z[46]=R,z[47]=k,z[48]=C,z[49]=Z,z[50]=b,z[51]=_):_=z[51],_});function _temp$6(e){return 1===e?1:2===e?3:3===e?5:0}Y.displayName="ForwardRef(Avatar)";let K=l.zo.div.withConfig({displayName:"StyledAvatarCounter",componentId:"sc-1ydx86y-0"})(function(e){let{avatar:t,media:r}=(0,o.aQ)(e.theme);return _responsive(r,e.$size,e=>{let r=t.sizes[e];return r?{borderRadius:rem(r.size/2),minWidth:rem(r.size),height:rem(r.size)}:w})},function(e){let{space:t}=(0,o.aQ)(e.theme);return l.iv`
205    align-items: center;
206    justify-content: center;
207    box-sizing: border-box;
208    user-select: none;
209    color: inherit;
210    color: var(--card-fg-color);
211    background: var(--card-bg-color);
212    box-shadow:
213      0 0 0 1px var(--card-bg-color),
214      inset 0 0 0 1px var(--card-hairline-hard-color);
215    padding: 0 ${rem(t[2])};
216
217    &:not([hidden]) {
218      display: flex;
219    }
220  `}),q=(0,a.forwardRef)(function(e,t){let r,o,a;let l=(0,i.c)(9),{count:d,size:s}=e,c=useArrayProp(void 0===s?1:s);l[0]!==c?(r=c.map(_temp$5),l[0]=c,l[1]=r):r=l[1];let u=r;return l[2]!==d||l[3]!==u?(o=(0,n.jsx)(F,{as:"span",size:u,weight:"medium",children:d}),l[2]=d,l[3]=u,l[4]=o):o=l[4],l[5]!==t||l[6]!==c||l[7]!==o?(a=(0,n.jsx)(K,{$size:c,"data-ui":"AvatarCounter",ref:t,children:o}),l[5]=t,l[6]=c,l[7]=o,l[8]=a):a=l[8],a});function _temp$5(e){return 1===e?1:2===e?3:3===e?5:0}q.displayName="ForwardRef(AvatarCounter)";let J=l.iv`
221  white-space: nowrap;
222
223  & > div {
224    vertical-align: top;
225
226    &:not([hidden]) {
227      display: inline-block;
228    }
229  }
230`,Z=l.zo.div.withConfig({displayName:"StyledAvatarStack",componentId:"sc-cysmbb-0"})(function(e){let{avatar:t,media:r}=(0,o.aQ)(e.theme);return _responsive(r,e.$size,e=>{let r=t.sizes[e];return r?{"& > div + div":{marginLeft:rem(r.distance)}}:w})},function(){return J}),U=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p;let f=(0,i.c)(22);f[0]!==e?({children:r,maxLength:l,size:d,...o}=e,f[0]=e,f[1]=r,f[2]=o,f[3]=l,f[4]=d):(r=f[1],o=f[2],l=f[3],d=f[4]);let m=void 0===l?4:l,h=void 0===d?1:d,g=a.Children.toArray(r).filter(a.isValidElement),b=useArrayProp(h),v=g.length,y=v-(Math.max(m,0)-1),w=y>1?g.slice(y,v):g;f[5]!==v||f[6]!==b?(s=0===v&&(0,n.jsx)("div",{children:(0,n.jsx)(q,{count:v,size:b})}),f[5]=v,f[6]=b,f[7]=s):s=f[7],f[8]!==y||f[9]!==v||f[10]!==b?(c=0!==v&&y>1&&(0,n.jsx)("div",{children:(0,n.jsx)(q,{count:y,size:b})}),f[8]=y,f[9]=v,f[10]=b,f[11]=c):c=f[11],f[12]!==b?(u=(e,t)=>(0,n.jsx)("div",{children:(0,a.cloneElement)(e,{size:b})},String(t)),f[12]=b,f[13]=u):u=f[13];let x=w.map(u);return f[14]!==Z||f[15]!==t||f[16]!==o||f[17]!==b||f[18]!==s||f[19]!==c||f[20]!==x?(p=(0,n.jsxs)(Z,{"data-ui":"AvatarStack",...o,ref:t,$size:b,children:[s,c,x]}),f[14]=Z,f[15]=t,f[16]=o,f[17]=b,f[18]=s,f[19]=c,f[20]=x,f[21]=p):p=f[21],p});
230U.displayName="ForwardRef(AvatarStack)";let ee=l.zo.div.withConfig({displayName:"StyledBox",componentId:"sc-1hhky9f-0"})(function(){return C},flexItemStyle,function(){return[responsiveBoxSizingStyle,responsiveBoxHeightStyle,responsiveBoxOverflowStyle,responsiveBoxDisplayStyle]},function(){return[responsiveGridItemRowStyle,responsiveGridItemRowStartStyle,responsiveGridItemRowEndStyle,responsiveGridItemColumnStyle,responsiveGridItemColumnStartStyle,responsiveGridItemColumnEndStyle]},function(e){let{theme:t}=e;return[_getResponsiveSpace(t,["margin"],e.$margin),_getResponsiveSpace(t,["marginLeft","marginRight"],e.$marginX),_getResponsiveSpace(t,["marginTop","marginBottom"],e.$marginY),_getResponsiveSpace(t,["marginTop"],e.$marginTop),_getResponsiveSpace(t,["marginRight"],e.$marginRight),_getResponsiveSpace(t,["marginBottom"],e.$marginBottom),_getResponsiveSpace(t,["marginLeft"],e.$marginLeft)].filter(Boolean)},responsivePaddingStyle),et=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p,f,m,h,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,P;let A=(0,i.c)(59);A[0]!==e?({as:_,column:r,columnStart:a,columnEnd:o,display:z,flex:l,height:d,margin:E,marginX:f,marginY:m,marginTop:p,marginRight:u,marginBottom:s,marginLeft:c,overflow:h,padding:j,paddingX:w,paddingY:x,paddingTop:y,paddingRight:v,paddingBottom:g,paddingLeft:b,row:S,rowStart:k,rowEnd:R,sizing:C,...$}=e,A[0]=e,A[1]=r,A[2]=o,A[3]=a,A[4]=l,A[5]=d,A[6]=s,A[7]=c,A[8]=u,A[9]=p,A[10]=f,A[11]=m,A[12]=h,A[13]=g,A[14]=b,A[15]=v,A[16]=y,A[17]=w,A[18]=x,A[19]=$,A[20]=S,A[21]=R,A[22]=k,A[23]=C,A[24]=_,A[25]=z,A[26]=E,A[27]=j):(r=A[1],o=A[2],a=A[3],l=A[4],d=A[5],s=A[6],c=A[7],u=A[8],p=A[9],f=A[10],m=A[11],h=A[12],g=A[13],b=A[14],v=A[15],y=A[16],w=A[17],x=A[18],$=A[19],S=A[20],R=A[21],k=A[22],C=A[23],_=A[24],z=A[25],E=A[26],j=A[27]);let I=void 0===_?"div":_,T=void 0===z?"block":z,N=void 0===E?0:E,M=void 0===j?0:j,L="string"==typeof I?I:void 0,B=useArrayProp(r),F=useArrayProp(a),O=useArrayProp(o),G=useArrayProp(T),H=useArrayProp(l),Q=useArrayProp(d),D=useArrayProp(N),V=useArrayProp(f),W=useArrayProp(m),X=useArrayProp(p),Y=useArrayProp(u),K=useArrayProp(s),q=useArrayProp(c),J=useArrayProp(h),Z=useArrayProp(M),U=useArrayProp(w),et=useArrayProp(x),er=useArrayProp(y),eo=useArrayProp(v),en=useArrayProp(g),ei=useArrayProp(b),ea=useArrayProp(S),el=useArrayProp(k),ed=useArrayProp(R),es=useArrayProp(C);return A[28]!==I||A[29]!==e.children||A[30]!==t||A[31]!==$||A[32]!==Q||A[33]!==D||A[34]!==V||A[35]!==W||A[36]!==X||A[37]!==Y||A[38]!==K||A[39]!==q||A[40]!==J||A[41]!==Z||A[42]!==U||A[43]!==et||A[44]!==er||A[45]!==eo||A[46]!==en||A[47]!==ei||A[48]!==ea||A[49]!==el||A[50]!==ed||A[51]!==es||A[52]!==L||A[53]!==B||A[54]!==F||A[55]!==O||A[56]!==G||A[57]!==H?(P=(0,n.jsx)(ee,{"data-as":L,"data-ui":"Box",...$,$column:B,$columnStart:F,$columnEnd:O,$display:G,$flex:H,$height:Q,$margin:D,$marginX:V,$marginY:W,$marginTop:X,$marginRight:Y,$marginBottom:K,$marginLeft:q,$overflow:J,$padding:Z,$paddingX:U,$paddingY:et,$paddingTop:er,$paddingRight:eo,$paddingBottom:en,$paddingLeft:ei,$row:ea,$rowStart:el,$rowEnd:ed,$sizing:es,as:I,ref:t,children:e.children}),A[28]=I,A[29]=e.children,A[30]=t,A[31]=$,A[32]=Q,A[33]=D,A[34]=V,A[35]=W,A[36]=X,A[37]=Y,A[38]=K,A[39]=q,A[40]=J,A[41]=Z,A[42]=U,A[43]=et,A[44]=er,A[45]=eo,A[46]=en,A[47]=ei,A[48]=ea,A[49]=el,A[50]=ed,A[51]=es,A[52]=L,A[53]=B,A[54]=F,A[55]=O,A[56]=G,A[57]=H,A[58]=P):P=A[58],P});et.displayName="ForwardRef(Box)";let er=l.zo.div.withConfig({displayName:"StyledText",componentId:"sc-11ov82j-0"})(function(e){return responsiveFont("text",e)},responsiveTextAlignStyle,function(e){let{$accent:t,$muted:r}=e,{font:n}=(0,o.aQ)(e.theme);return l.iv`
231    color: var(--card-fg-color);
232
233    ${t&&l.iv`
234      color: var(--card-accent-fg-color);
235    `}
236
237    ${r&&l.iv`
238      color: var(--card-muted-fg-color);
239    `}
240
241    & code {
242      font-family: ${n.code.family};
243      border-radius: 1px;
244      background-color: var(--card-code-bg-color);
245      color: var(--card-code-fg-color);
246    }
247
248    & a {
249      text-decoration: none;
250      border-radius: 1px;
251      color: var(--card-link-color);
252      outline: none;
253
254      @media (hover: hover) {
255        &:hover {
256          text-decoration: underline;
257        }
258      }
259
260      &:focus {
261        box-shadow:
262          0 0 0 1px var(--card-bg-color),
263          0 0 0 3px var(--card-focus-ring-color);
264      }
265
266      &:focus:not(:focus-visible) {
267        box-shadow: none;
268      }
269    }
270
271    & strong {
272      font-weight: ${n.text.weights.bold};
273    }
274
275    & svg {
276      /* Certain popular CSS libraries changes the defaults for SVG display */
277      /* Make sure SVGs are rendered as inline elements */
278      display: inline;
279    }
280
281    & [data-sanity-icon] {
282      vertical-align: baseline;
283      color: var(--card-icon-color);
284
285      & path {
286        vector-effect: non-scaling-stroke !important;
287      }
288    }
289  `}),eo=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p,f;let m=(0,i.c)(22);m[0]!==e?({accent:l,align:r,children:o,muted:d,size:s,textOverflow:c,weight:u,...a}=e,m[0]=e,m[1]=r,m[2]=o,m[3]=a,m[4]=l,m[5]=d,m[6]=s,m[7]=c,m[8]=u):(r=m[1],o=m[2],a=m[3],l=m[4],d=m[5],s=m[6],c=m[7],u=m[8]);let h=void 0!==l&&l,g=void 0!==d&&d,b=void 0===s?2:s,v=o;if("ellipsis"===c){let e;m[9]!==v?(e=(0,n.jsx)(L,{children:v}),m[9]=v,m[10]=e):e=m[10],v=e}let y=useArrayProp(r),w=useArrayProp(b);return m[11]!==v?(p=(0,n.jsx)("span",{children:v}),m[11]=v,m[12]=p):p=m[12],m[13]!==h||m[14]!==g||m[15]!==t||m[16]!==a||m[17]!==y||m[18]!==w||m[19]!==p||m[20]!==u?(f=(0,n.jsx)(er,{"data-ui":"Text",...a,$accent:h,$align:y,$muted:g,ref:t,$size:w,$weight:u,children:p}),m[13]=h,m[14]=g,m[15]=t,m[16]=a,m[17]=y,m[18]=w,m[19]=p,m[20]=u,m[21]=f):f=m[21],f});eo.displayName="ForwardRef(Text)";let en=(0,l.zo)(et).withConfig({displayName:"StyledBadge",componentId:"sc-5u140l-0"})(responsiveRadiusStyle,function(e){let{$tone:t}=e;return{"--card-bg-color":`var(--card-badge-${t}-bg-color)`,"--card-fg-color":`var(--card-badge-${t}-fg-color)`,backgroundColor:"var(--card-bg-color)",cursor:"default","&:not([hidden])":{display:"inline-block",verticalAlign:"top"}}}),ei=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u;let p=(0,i.c)(17);if(p[0]!==e){let{children:t,fontSize:n,mode:i,padding:c,radius:u,tone:f,...m}=e;r=t,a=n,l=c,d=u,s=f,o=m,p[0]=e,p[1]=r,p[2]=o,p[3]=a,p[4]=l,p[5]=d,p[6]=s}else r=p[1],o=p[2],a=p[3],l=p[4],d=p[5],s=p[6];let f=void 0===a?1:a,m=void 0===l?1:l,h=void 0===d?"full":d,g=void 0===s?"default":s,b=useArrayProp(h),v=useArrayProp(m);return p[7]!==r||p[8]!==f?(c=(0,n.jsx)(eo,{size:f,children:r}),p[7]=r,p[8]=f,p[9]=c):c=p[9],p[10]!==t||p[11]!==o||p[12]!==b||p[13]!==v||p[14]!==c||p[15]!==g?(u=(0,n.jsx)(en,{"data-ui":"Badge",...o,$tone:g,$radius:b,padding:v,ref:t,children:c}),p[10]=t,p[11]=o,p[12]=b,p[13]=v,p[14]=c,p[15]=g,p[16]=u):u=p[16],u});ei.displayName="ForwardRef(Badge)";let ea=(0,l.zo)(et).withConfig({displayName:"StyledFlex",componentId:"sc-oxesg3-0"})(flexItemStyle,function(){return[j,responsiveFlexAlignStyle,responsiveFlexGapStyle,responsiveFlexWrapStyle,responsiveFlexJustifyStyle,responsiveFlexDirectionStyle]}),el=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u;let p=(0,i.c)(17);p[0]!==e?({align:r,as:o,direction:s,gap:a,justify:l,wrap:c,...d}=e,p[0]=e,p[1]=r,p[2]=o,p[3]=a,p[4]=l,p[5]=d,p[6]=s,p[7]=c):(r=p[1],o=p[2],a=p[3],l=p[4],d=p[5],s=p[6],c=p[7]);let f=void 0===s?"row":s,m=useArrayProp(r),h=useArrayProp(f),g=useArrayProp(a),b=useArrayProp(l),v=useArrayProp(c);return p[8]!==o||p[9]!==t||p[10]!==d||p[11]!==m||p[12]!==h||p[13]!==g||p[14]!==b||p[15]!==v?(u=(0,n.jsx)(ea,{"data-ui":"Flex",...d,$align:m,$direction:h,$gap:g,$justify:b,$wrap:v,forwardedAs:o,ref:t}),p[8]=o,p[9]=t,p[10]=d,p[11]=m,p[12]=h,p[13]=g,p[14]=b,p[15]=v,p[16]=u):u=p[16],u});el.displayName="ForwardRef(Flex)";let ed=l.F4`
290  from {
291    transform: rotate(0deg);
292  }
293
294  to {
295    transform: rotate(360deg);
296  }
297`,es=(0,l.zo)(eo).withConfig({displayName:"StyledSpinner",componentId:"sc-124hnd0-0"})`& > span > svg{animation:${ed} 500ms linear infinite;}`,ec=(0,a.forwardRef)(function(e,t){let r,o;let a=(0,i.c)(4);return a[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)(s.L4p,{}),a[0]=r):r=a[0],a[1]!==e||a[2]!==t?(o=(0,n.jsx)(es,{"data-ui":"Spinner",...e,ref:t,children:r}),a[1]=e,a[2]=t,a[3]=o):o=a[3],o});function _cardColorStyle(e,t,r=!1){return{"--card-backdrop-color":e.backdrop,"--card-focus-ring-color":e.focusRing,"--card-shadow-outline-color":e.shadow.outline,"--card-shadow-umbra-color":e.shadow.umbra,"--card-shadow-penumbra-color":e.shadow.penumbra,"--card-shadow-ambient-color":e.shadow.ambient,"--card-accent-fg-color":t.accent.fg,"--card-avatar-gray-bg-color":t.avatar.gray.bg,"--card-avatar-gray-fg-color":t.avatar.gray.fg,"--card-avatar-blue-bg-color":t.avatar.blue.bg,"--card-avatar-blue-fg-color":t.avatar.blue.fg,"--card-avatar-purple-bg-color":t.avatar.purple.bg,"--card-avatar-purple-fg-color":t.avatar.purple.fg,"--card-avatar-magenta-bg-color":t.avatar.magenta.bg,"--card-avatar-magenta-fg-color":t.avatar.magenta.fg,"--card-avatar-red-bg-color":t.avatar.red.bg,"--card-avatar-red-fg-color":t.avatar.red.fg,"--card-avatar-orange-bg-color":t.avatar.orange.bg,"--card-avatar-orange-fg-color":t.avatar.orange.fg,"--card-avatar-yellow-bg-color":t.avatar.yellow.bg,"--card-avatar-yellow-fg-color":t.avatar.yellow.fg,"--card-avatar-green-bg-color":t.avatar.green.bg,"--card-avatar-green-fg-color":t.avatar.green.fg,"--card-avatar-cyan-bg-color":t.avatar.cyan.bg,"--card-avatar-cyan-fg-color":t.avatar.cyan.fg,"--card-bg-color":t.bg,"--card-bg-image":r?`repeating-conic-gradient(${t.bg} 0% 25%, ${t.muted.bg} 0% 50%)`:void 0,"--card-border-color":t.border,"--card-badge-default-bg-color":t.badge.default.bg,"--card-badge-default-dot-color":t.badge.default.dot,"--card-badge-default-fg-color":t.badge.default.fg,"--card-badge-default-icon-color":t.badge.default.icon,"--card-badge-neutral-bg-color":t.badge.neutral?.bg,"--card-badge-neutral-dot-color":t.badge.neutral?.dot,"--card-badge-neutral-fg-color":t.badge.neutral?.fg,"--card-badge-neutral-icon-color":t.badge.neutral?.icon,"--card-badge-primary-bg-color":t.badge.primary.bg,"--card-badge-primary-dot-color":t.badge.primary.dot,"--card-badge-primary-fg-color":t.badge.primary.fg,"--card-badge-primary-icon-color":t.badge.primary.icon,"--card-badge-suggest-bg-color":t.badge.suggest?.bg,"--card-badge-suggest-dot-color":t.badge.suggest?.dot,"--card-badge-suggest-fg-color":t.badge.suggest?.fg,"--card-badge-suggest-icon-color":t.badge.suggest?.icon,"--card-badge-positive-bg-color":t.badge.positive.bg,"--card-badge-positive-dot-color":t.badge.positive.dot,"--card-badge-positive-fg-color":t.badge.positive.fg,"--card-badge-positive-icon-color":t.badge.positive.icon,"--card-badge-caution-bg-color":t.badge.caution.bg,"--card-badge-caution-dot-color":t.badge.caution.dot,"--card-badge-caution-fg-color":t.badge.caution.fg,"--card-badge-caution-icon-color":t.badge.caution.icon,"--card-badge-critical-bg-color":t.badge.critical.bg,"--card-badge-critical-dot-color":t.badge.critical.dot,"--card-badge-critical-fg-color":t.badge.critical.fg,"--card-badge-critical-icon-color":t.badge.critical.icon,"--card-code-bg-color":t.code.bg,"--card-code-fg-color":t.code.fg,"--card-fg-color":t.fg,"--card-icon-color":t.icon,"--card-kbd-bg-color":t.kbd.bg,"--card-kbd-border-color":t.kbd.border,"--card-kbd-fg-color":t.kbd.fg,"--card-link-fg-color":t.link.fg,"--card-muted-bg-color":t.muted.bg,"--card-muted-fg-color":t.muted.fg,"--card-skeleton-color-from":t.skeleton.from,"--card-skeleton-color-to":t.skeleton.to,"--card-bg2-color":t.muted.bg,"--card-link-color":t.link.fg,"--card-hairline-soft-color":t.border,"--card-hairline-hard-color":t.border}}function combineBoxShadow(...e){return e.filter(Boolean).join(",")}ec.displayName="ForwardRef(Spinner)";let eu=l.zo.button.withConfig({displayName:"StyledButton",componentId:"sc-aaekt4-0"})(responsiveRadiusStyle,function(e){let{$width:t}=e,{style:r}=(0,o.aQ)(e.theme);return l.iv`
298    ${r?.button};
299
300    -webkit-font-smoothing: inherit;
301    appearance: none;
302    display: inline-flex;
303    align-items: center;
304    font: inherit;
305    border: 0;
306    outline: none;
307    user-select: none;
308    text-decoration: none;
309    border: 0;
310    box-sizing: border-box;
311    padding: 0;
312    margin: 0;
313    white-space: nowrap;
314    text-align: left;
315    position: relative;
316    vertical-align: top;
317
318    ${"fill"===t&&l.iv`
319      width: -moz-available;
320      width: -webkit-fill-available;
321      width: stretch;
322    `}
323
324    & > span {
325      display: block;
326      flex: 1;
327      min-width: 0;
328      border-radius: inherit;
329    }
330
331    &::-moz-focus-inner {
332      border: 0;
333      padding: 0;
334    }
335  `},function(e){let{$mode:t}=e,{button:r,color:n,style:i}=(0,o.aQ)(e.theme),a="ghost"===e.$mode,l=n.button[t]||n.button.default,d=l[e.$tone]||l.default,s={width:r.border.width,color:"var(--card-border-color)"},c=void 0;return[_cardColorStyle(n,d.enabled),{backgroundColor:"var(--card-bg-color)",color:"var(--card-fg-color)",boxShadow:focusRingBorderStyle(s),'&:disabled, &[data-disabled="true"]':_cardColorStyle(n,d.disabled),"&:not([data-disabled='true'])":{boxShadow:combineBoxShadow(focusRingBorderStyle(s),a?c:void 0),"&:focus":{boxShadow:focusRingStyle({base:n,border:{width:2,color:n.bg},focusRing:r.focusRing})},"&:focus:not(:focus-visible)":{boxShadow:combineBoxShadow(focusRingBorderStyle(s),a?c:void 0)},"@media (hover: hover)":{"&:hover":_cardColorStyle(n,d.hovered),"&:active":_cardColorStyle(n,d.pressed),"&[data-hovered]":_cardColorStyle(n,d.hovered)},"&[data-selected]":_cardColorStyle(n,d.pressed)}}
335,i?.button?.root].filter(Boolean)}),ep=l.zo.div.withConfig({displayName:"LoadingBox",componentId:"sc-aaekt4-1"})`position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;background-color:var(--card-bg-color);border-radius:inherit;z-index:1;box-shadow:inherit;`,ef=(0,a.forwardRef)(function(e,t){let r,o,l,s,c,u,p,f,m,h,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,P,A,I,T,N,M;let L=(0,i.c)(66);L[0]!==e?({children:l,disabled:s,fontSize:y,icon:r,iconRight:o,justify:w,loading:c,mode:x,padding:$,paddingX:h,paddingY:g,paddingTop:m,paddingBottom:u,paddingLeft:p,paddingRight:f,radius:S,selected:v,space:R,text:z,textAlign:E,textWeight:j,tone:k,type:C,muted:_,width:P,...b}=e,L[0]=e,L[1]=r,L[2]=o,L[3]=l,L[4]=s,L[5]=c,L[6]=u,L[7]=p,L[8]=f,L[9]=m,L[10]=h,L[11]=g,L[12]=b,L[13]=v,L[14]=y,L[15]=w,L[16]=x,L[17]=$,L[18]=S,L[19]=R,L[20]=k,L[21]=C,L[22]=_,L[23]=z,L[24]=E,L[25]=j,L[26]=P):(r=L[1],o=L[2],l=L[3],s=L[4],c=L[5],u=L[6],p=L[7],f=L[8],m=L[9],h=L[10],g=L[11],b=L[12],v=L[13],y=L[14],w=L[15],x=L[16],$=L[17],S=L[18],R=L[19],k=L[20],C=L[21],_=L[22],z=L[23],E=L[24],j=L[25],P=L[26]);let B=void 0===y?1:y,F=void 0===w?"center":w,O=void 0===x?"default":x,G=void 0===$?3:$,H=void 0===S?2:S,Q=void 0===R?3:R,D=void 0===k?"default":k,V=void 0===C?"button":C,W=void 0!==_&&_,{button:X}=useTheme_v2(),Y=useArrayProp(F),K=useArrayProp(G),q=useArrayProp(h),J=useArrayProp(g),Z=useArrayProp(m),U=useArrayProp(u),ee=useArrayProp(p),er=useArrayProp(f),en=useArrayProp(H),ei=useArrayProp(Q);L[27]!==K||L[28]!==U||L[29]!==ee||L[30]!==er||L[31]!==Z||L[32]!==q||L[33]!==J?(A={padding:K,paddingX:q,paddingY:J,paddingTop:Z,paddingBottom:U,paddingLeft:ee,paddingRight:er},L[27]=K,L[28]=U,L[29]=ee,L[30]=er,L[31]=Z,L[32]=q,L[33]=J,L[34]=A):A=L[34];let ea=A,ed=!!(c||s),es=v?"":void 0,ef=!!(c||s);return L[35]!==c?(I=!!c&&(0,n.jsx)(ep,{children:(0,n.jsx)(ec,{})}),L[35]=c,L[36]=I):I=L[36],L[37]!==r||L[38]!==o||L[39]!==ea||L[40]!==X||L[41]!==B||L[42]!==Y||L[43]!==W||L[44]!==ei||L[45]!==z||L[46]!==E||L[47]!==j?(T=(r||z||o)&&(0,n.jsx)(et,{as:"span",...ea,children:(0,n.jsxs)(el,{as:"span",justify:Y,gap:ei,children:[r&&(0,n.jsxs)(eo,{size:B,children:[(0,a.isValidElement)(r)&&r,(0,d.isValidElementType)(r)&&(0,n.jsx)(r,{})]}),z&&(0,n.jsx)(et,{children:(0,n.jsx)(eo,{muted:W,align:E,size:B,textOverflow:"ellipsis",weight:j??X.textWeight,children:z})}),o&&(0,n.jsxs)(eo,{size:B,children:[(0,a.isValidElement)(o)&&o,(0,d.isValidElementType)(o)&&(0,n.jsx)(o,{})]})]})}),L[37]=r,L[38]=o,L[39]=ea,L[40]=X,L[41]=B,L[42]=Y,L[43]=W,L[44]=ei,L[45]=z,L[46]=E,L[47]=j,L[48]=T):T=L[48],L[49]!==ea||L[50]!==l?(N=l&&(0,n.jsx)(et,{as:"span",...ea,children:l}),L[49]=ea,L[50]=l,L[51]=N):N=L[51],L[52]!==O||L[53]!==en||L[54]!==t||L[55]!==b||L[56]!==ed||L[57]!==es||L[58]!==ef||L[59]!==I||L[60]!==T||L[61]!==N||L[62]!==D||L[63]!==V||L[64]!==P?(M=(0,n.jsxs)(eu,{"data-ui":"Button",...b,$mode:O,$radius:en,$tone:D,"data-disabled":ed,"data-selected":es,disabled:ef,ref:t,type:V,$width:P,children:[I,T,N]}),L[52]=O,L[53]=en,L[54]=t,L[55]=b,L[56]=ed,L[57]=es,L[58]=ef,L[59]=I,L[60]=T,L[61]=N,L[62]=D,L[63]=V,L[64]=P,L[65]=M):M=L[65],M});ef.displayName="ForwardRef(Button)";let em=(0,l.zo)(et).withConfig({displayName:"StyledCard",componentId:"sc-osnro2-0"})(function(){return[border,borderTop,borderRight,borderBottom,borderLeft]},responsiveRadiusStyle,function(e){let{card:t,media:r,shadow:n}=(0,o.aQ)(e.theme);return _responsive(r,e.$shadow,e=>(function(e,t=1){if(!e)return w;let r=`0 0 0 ${rem(t)} var(--card-shadow-outline-color)`,o=toBoxShadow(e.umbra,"var(--card-shadow-umbra-color)"),n=toBoxShadow(e.penumbra,"var(--card-shadow-penumbra-color)"),i=toBoxShadow(e.ambient,"var(--card-shadow-ambient-color)");return{boxShadow:`${r}, ${o}, ${n}, ${i}`}})(n[e],t.shadow.outline))},function(e){return[function(e){let{$checkered:t}=e,{space:r}=(0,o.aQ)(e.theme);return l.iv`
336    ${t&&l.iv`
337      background-size: ${r[3]}px ${r[3]}px;
338      background-position: 50% 50%;
339      background-image: var(--card-bg-image);
340    `}
341
342    &[data-as='button'] {
343      -webkit-font-smoothing: inherit;
344      appearance: none;
345      outline: none;
346      font: inherit;
347      text-align: inherit;
348      border: 0;
349      width: -moz-available;
350      width: -webkit-fill-available;
351      width: stretch;
352    }
353
354    /* &:is(a) */
355    &[data-as='a'] {
356      outline: none;
357      text-decoration: none;
358    }
359
360    /* &:is(pre) */
361    &[data-as='pre'] {
362      font: inherit;
363    }
364  `}(e),function(e){let{$checkered:t,$focusRing:r,$muted:n}=e,{card:i,color:a,style:d}=(0,o.aQ)(e.theme),s={width:i.border.width,color:"var(--card-border-color)"};return l.iv`
365    color-scheme: ${a._dark?"dark":"light"};
366
367    ${_cardColorStyle(a,a,t)}
368
369    background-color: ${n?"var(--card-muted-bg-color)":"var(--card-bg-color)"};
370    color: var(--card-fg-color);
371
372    /* &:is(button) */
373    &[data-as='button'] {
374      --card-focus-ring-box-shadow: none;
375
376      cursor: default;
377      box-shadow: var(--card-focus-ring-box-shadow);
378
379      &:disabled {
380        ${_cardColorStyle(a,a.selectable.default.disabled,t)}
381      }
382
383      &:not(:disabled) {
384        &[data-pressed] {
385          ${_cardColorStyle(a,a.selectable.default.pressed,t)}
386        }
387
388        &[data-selected] {
389          ${_cardColorStyle(a,a.selectable.default.selected,t)}
390        }
391
392        @media (hover: hover) {
393          &:not([data-pressed]):not([data-selected]) {
394            &[data-hovered],
395            &:hover {
396              ${_cardColorStyle(a,a.selectable.default.hovered,t)}
397            }
398
399            &:active {
400              ${_cardColorStyle(a,a.selectable.default.pressed,t)}
401            }
402          }
403        }
404
405        &:focus-visible {
406          --card-focus-ring-box-shadow: ${r?focusRingStyle({base:a,border:s,focusRing:i.focusRing}):void 0};
407        }
408      }
409    }
410
411    /* &:is(a) */
412    &[data-as='a'] {
413      cursor: pointer;
414      box-shadow: var(--card-focus-ring-box-shadow);
415
416      &[data-disabled] {
417        ${_cardColorStyle(a,a.selectable.default.disabled,t)}
418      }
419
420      &:not([data-disabled]) {
421        &[data-pressed] {
422          ${_cardColorStyle(a,a.selectable.default.pressed,t)}
423        }
424
425        &[data-selected] {
426          ${_cardColorStyle(a,a.selectable.default.selected,t)}
427        }
428
429        @media (hover: hover) {
430          &:not([data-pressed]):not([data-selected]) {
431            &[data-hovered],
432            &:hover {
433              ${_cardColorStyle(a,a.selectable.default.hovered,t)}
434            }
435
436            &:active {
437              ${_cardColorStyle(a,a.selectable.default.pressed,t)}
438            }
439          }
440        }
441
442        &:focus-visible {
443          --card-focus-ring-box-shadow: ${r?focusRingStyle({base:a,border:s,focusRing:i.focusRing}):void 0};
444        }
445      }
446    }
447
448    ${d?.card?.root}
449  `}(e)]}),eh=(0,a.forwardRef)(function(e,t){let r,o,a,l,s,c,u,p,f,m,h,g,b,v,y,w,x,$;let S=(0,i.c)(42);S[0]!==e?({__unstable_checkered:b,__unstable_focusRing:v,as:r,border:o,borderTop:c,borderRight:s,borderBottom:a,borderLeft:l,muted:u,pressed:p,radius:y,scheme:m,selected:h,shadow:g,tone:w,...f}=e,S[0]=e,S[1]=r,S[2]=o,S[3]=a,S[4]=l,S[5]=s,S[6]=c,S[7]=u,S[8]=p,S[9]=f,S[10]=m,S[11]=h,S[12]=g,S[13]=b,S[14]=v,S[15]=y,S[16]=w):(r=S[1],o=S[2],a=S[3],l=S[4],s=S[5],c=S[6],u=S[7],p=S[8],f=S[9],m=S[10],h=S[11],g=S[12],b=S[13],v=S[14],y=S[15],w=S[16]);let R=void 0!==b&&b,k=void 0!==v&&v,C=void 0===y?0:y,_=void 0===w?"default":w,z=(0,d.isValidElementType)(r)?r:"div",E=useRootTheme(),j="inherit"===_?E.tone:_,P="string"==typeof z?z:void 0,A=E.scheme,I=useArrayProp(o),T=useArrayProp(c),N=useArrayProp(s),M=useArrayProp(a),L=useArrayProp(l),B=useArrayProp(C),F=useArrayProp(g),O=R?"":void 0,G=p?"":void 0,H=h?"":void 0;return S[17]!==z||S[18]!==R||S[19]!==k||S[20]!==u||S[21]!==t||S[22]!==f||S[23]!==E.scheme||S[24]!==h||S[25]!==L||S[26]!==B||S[27]!==F||S[28]!==O||S[29]!==G||S[30]!==H||S[31]!==P||S[32]!==I||S[33]!==T||S[34]!==N||S[35]!==M||S[36]!==j?(x=(0,n.jsx)(em,{"data-as":P,"data-scheme":A,"data-ui":"Card","data-tone":j,...f,$border:I,$borderTop:T,$borderRight:N,$borderBottom:M,$borderLeft:L,$checkered:R,$focusRing:k,$muted:u,$radius:B,$shadow:F,$tone:j,"data-checkered":O,"data-
449pressed":G,"data-selected":H,forwardedAs:z,ref:t,selected:h}),S[17]=z,S[18]=R,S[19]=k,S[20]=u,S[21]=t,S[22]=f,S[23]=E.scheme,S[24]=h,S[25]=L,S[26]=B,S[27]=F,S[28]=O,S[29]=G,S[30]=H,S[31]=P,S[32]=I,S[33]=T,S[34]=N,S[35]=M,S[36]=j,S[37]=x):x=S[37],S[38]!==m||S[39]!==x||S[40]!==j?($=(0,n.jsx)(ThemeColorProvider,{scheme:m,tone:j,children:x}),S[38]=m,S[39]=x,S[40]=j,S[41]=$):$=S[41],$});eh.displayName="ForwardRef(Card)";let eg=l.zo.div.withConfig({displayName:"StyledCheckbox",componentId:"sc-1l5mt2l-0"})(function(){return l.iv`
450    position: relative;
451    display: inline-block;
452  `}),eb=l.zo.input.withConfig({displayName:"Input",componentId:"sc-1l5mt2l-1"})(function(e){let{color:t,input:r,radius:n}=(0,o.aQ)(e.theme),{focusRing:i}=r.checkbox;return l.iv`
453    position: absolute;
454    top: 0;
455    left: 0;
456    width: 100%;
457    height: 100%;
458    outline: none;
459    opacity: 0;
460    z-index: 1;
461    padding: 0;
462    margin: 0;
463
464    & + span {
465      position: relative;
466      display: block;
467      height: ${rem(r.checkbox.size)};
468      width: ${rem(r.checkbox.size)};
469      box-sizing: border-box;
470      box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:r.border.width})};
471      border-radius: ${rem(n[2])};
472      line-height: 1;
473      background-color: ${t.input.default.enabled.bg};
474
475      & > svg {
476        display: block;
477        position: absolute;
478        opacity: 0;
479        height: 100%;
480        width: 100%;
481
482        & > path {
483          vector-effect: non-scaling-stroke;
484          stroke-width: 1.5px !important;
485        }
486      }
487    }
488
489    &:checked + span {
490      background: ${t.input.default.enabled.fg};
491      box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.fg,width:r.border.width})};
492      color: ${t.input.default.enabled.bg};
493    }
494
495    /* focus */
496    &:not(:disabled):focus:focus-visible + span {
497      box-shadow: ${focusRingStyle({focusRing:i})};
498    }
499
500    /* focus when checked - uses a different offset */
501    &:not(:disabled):focus:focus-visible&:checked + span {
502      box-shadow: ${focusRingStyle({focusRing:{width:1,offset:1}})};
503    }
504
505    &[data-error] + span {
506      background-color: ${t.input.invalid.enabled.border};
507      box-shadow: ${focusRingBorderStyle({width:r.border.width,color:t.input.invalid.enabled.muted.bg})};
508      color: ${t.input.default.disabled.fg};
509    }
510    &[data-error]&:checked + span {
511      background-color: ${t.input.invalid.enabled.muted.bg};
512      color: ${t.input.default.enabled.bg};
513    }
514    &[data-error]&:checked&:not(:disabled):focus:focus-visible + span {
515      box-shadow: ${focusRingStyle({border:{width:r.border.width,color:t.input.invalid.readOnly.muted.bg},focusRing:{width:1,offset:1}})};
516    }
517
518    &:disabled + span {
519      background-color: ${t.input.default.disabled.bg};
520      box-shadow: ${focusRingBorderStyle({width:r.border.width,color:t.input.default.disabled.border})};
521      color: ${t.input.default.disabled.fg};
522    }
523    &:disabled&:checked + span {
524      background-color: ${t.input.default.disabled.muted.bg};
525    }
526
527    &[data-read-only] + span {
528      background-color: ${t.input.default.readOnly.bg};
529      box-shadow: ${focusRingBorderStyle({width:r.border.width,color:t.input.default.readOnly.border})};
530      color: ${t.input.default.readOnly.fg};
531    }
532
533    &[data-read-only]&:checked + span {
534      background-color: ${t.input.default.readOnly.muted.bg};
535    }
536
537    &:checked + span > svg:first-child {
538      opacity: 1;
539    }
540    &:indeterminate + span > svg:last-child {
541      opacity: 1;
542    }
543  `}),ev=(0,a.forwardRef)(function(e,t){let r,o,l,d,c,u,p,f,m,h,g,b,v,y;let w=(0,i.c)(25);w[0]!==e?({checked:r,className:o,disabled:d,indeterminate:c,customValidity:l,readOnly:u,style:f,...p}=e,w[0]=e,w[1]=r,w[2]=o,w[3]=l,w[4]=d,w[5]=c,w[6]=u,w[7]=p,w[8]=f):(r=w[1],o=w[2],l=w[3],d=w[4],c=w[5],u=w[6],p=w[7],f=w[8]);let x=(0,a.useRef)(null);w[9]===Symbol.for("react.memo_cache_sentinel")?(m=()=>x.current,w[9]=m):m=w[9],(0,a.useImperativeHandle)(t,m),w[10]!==c?(h=()=>{x.current&&(x.current.indeterminate=c||!1)},g=[c],w[10]=c,w[11]=h,w[12]=g):(h=w[11],g=w[12]),(0,a.useEffect)(h,g),useCustomValidity(x,l);let $=!d&&u?"":void 0,S=l?"":void 0,R=d||u;return w[13]!==r||w[14]!==u||w[15]!==p||w[16]!==$||w[17]!==S||w[18]!==R?(b=(0,n.jsx)(eb,{"data-read-only":$,"data-error":S,...p,checked:r,disabled:R,type:"checkbox",readOnly:u,ref:x}),w[13]=r,w[14]=u,w[15]=p,w[16]=$,w[17]=S,w[18]=R,w[19]=b):b=w[19],w[20]===Symbol.for("react.memo_cache_sentinel")?(v=(0,n.jsxs)("span",{children:[(0,n.jsx)(s.KML,{}),(0,n.jsx)(s.HFL,{})]}),w[20]=v):v=w[20],w[21]!==o||w[22]!==f||w[23]!==b?(y=(0,n.jsxs)(eg,{className:o,"data-ui":"Checkbox",style:f,children:[b,v]}),w[21]=o,w[22]=f,w[23]=b,w[24]=y):y=w[24],y});function codeSyntaxHighlightingStyle({theme:e}){let{color:{syntax:t}}=(0,o.aQ)(e);return{"&.atrule":{color:t.atrule},"&.attr-name":{color:t.attrName},"&.attr-value":{color:t.attrValue},"&.attribute":{color:t.attribute},"&.boolean":{color:t.boolean},"&.builtin":{color:t.builtin},"&.cdata":{color:t.cdata},"&.char":{color:t.char},"&.class":{color:t.class},"&.class-name":{color:t.className},"&.comment":{color:t.comment},"&.constant":{color:t.constant},"&.deleted":{color:t.deleted},"&.doctype":{color:t.doctype},"&.entity":{color:t.entity},"&.function":{color:t.function},"&.hexcode":{color:t.hexcode},"&.id":{color:t.id},"&.important":{color:t.important},"&.inserted":{color:t.inserted},"&.keyword":{color:t.keyword},"&.number":{color:t.number},"&.operator":{color:t.operator},"&.prolog":{color:t.prolog},"&.property":{color:t.property},"&.pseudo-class":{color:t.pseudoClass},"&.pseudo-element":{color:t.pseudoElement},"&.punctuation":{color:t.punctuation},"&.regex":{color:t.regex},"&.selector":{color:t.selector},"&.string":{color:t.string},"&.symbol":{color:t.symbol},"&.tag":{color:t.tag},"&.unit":{color:t.unit},"&.url":{color:t.url},"&.variable":{color:t.variable}}}ev.displayName="ForwardRef(Checkbox)";let ey=(0,a.lazy)(()=>r.e(1377).then(r.bind(r,61377))),ew=l.zo.pre.withConfig({displayName:"StyledCode",componentId:"sc-4dymyn-0"})(function(){return l.iv`
544    color: var(--card-code-fg-color);
545
546    & code {
547      font-family: inherit;
548
549      &.refractor .token {
550        ${codeSyntaxHighlightingStyle}
551      }
552    }
553
554    & a {
555      color: inherit;
556      text-decoration: underline;
557      border-radius: 1px;
558    }
559
560    & svg {
561      /* Certain popular CSS libraries changes the defaults for SVG display */
562      /* Make sure SVGs are rendered as inline elements */
563      display: inline;
564    }
565
566    & [data-sanity-icon] {
567      vertical-align: baseline;
568    }
569  `},function(e){return responsiveFont("code",e)}),ex=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f;let m=(0,i.c)(20);m[0]!==e?({children:r,language:o,size:d,weight:s,...l}=e,m[0]=e,m[1]=r,m[2]=o,m[3]=l,m[4]=d,m[5]=s):(r=m[1],o=m[2],l=m[3],d=m[4],s=m[5]);let h=useArrayProp(void 0===d?2:d);return m[6]!==r?(c=(0,n.jsx)("code",{children:r}),m[6]=r,m[7]=c):c=m[7],m[8]!==r||m[9]!==o?(u=(0,n.jsx)(ey,{language:o,value:r}),m[8]=r,m[9]=o,m[10]=u):u=m[10],m[11]!==c||m[12]!==u?(p=(0,n.jsx)(a.Suspense,{fallback:c,children:u}),m[11]=c,m[12]=u,m[13]=p):p=m[13],m[14]!==t||m[15]!==l||m[16]!==h||m[17]!==p||m[18]!==s?(f=(0,n.jsx)(ew,{"data-ui":"Code",...l,$size:h,$weight:s,ref:t,children:p}),m[14]=t,m[15]=l,m[16]=h,m[17]=p,m[18]=s,m[19]=f):f=m[19],f});ex.displayName="ForwardRef(Code)";let e$={width:"100%",margin:"0 auto"},eS=(0,l.zo)(et).withConfig({displayName:"StyledContainer",componentId:"sc-wyroop-0"})(function(){return e$}
569,function(e){let{container:t,media:r}=(0,o.aQ)(e.theme);return _responsive(r,e.$width,e=>({maxWidth:"auto"===e?"none":rem(t[e])}))}),eR=(0,a.forwardRef)(function(e,t){let r,o,a,l;let d=(0,i.c)(9);d[0]!==e?({as:r,width:a,...o}=e,d[0]=e,d[1]=r,d[2]=o,d[3]=a):(r=d[1],o=d[2],a=d[3]);let s=useArrayProp(void 0===a?2:a);return d[4]!==r||d[5]!==t||d[6]!==o||d[7]!==s?(l=(0,n.jsx)(eS,{"data-ui":"Container",...o,$width:s,forwardedAs:r,ref:t}),d[4]=r,d[5]=t,d[6]=o,d[7]=s,d[8]=l):l=d[8],l});eR.displayName="ForwardRef(Container)";let ek=(0,l.zo)(et).withConfig({displayName:"StyledGrid",componentId:"sc-v8t8oz-0"})(function(){return[I,responsiveGridAutoFlowStyle,responsiveGridAutoRowsStyle,responsiveGridAutoColsStyle,responsiveGridColumnsStyle,responsiveGridRowsStyle,responsiveGridGapStyle,responsiveGridGapXStyle,responsiveGridGapYStyle]}),eC=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p,f,m,h;let g=(0,i.c)(26);g[0]!==e?({as:r,autoRows:l,autoCols:o,autoFlow:a,columns:s,gap:c,gapX:u,gapY:p,rows:m,children:d,...f}=e,g[0]=e,g[1]=r,g[2]=o,g[3]=a,g[4]=l,g[5]=d,g[6]=s,g[7]=c,g[8]=u,g[9]=p,g[10]=f,g[11]=m):(r=g[1],o=g[2],a=g[3],l=g[4],d=g[5],s=g[6],c=g[7],u=g[8],p=g[9],f=g[10],m=g[11]);let b="string"==typeof r?r:void 0,v=useArrayProp(l),y=useArrayProp(o),w=useArrayProp(a),x=useArrayProp(s),$=useArrayProp(c),S=useArrayProp(u),R=useArrayProp(p),k=useArrayProp(m);return g[12]!==r||g[13]!==d||g[14]!==t||g[15]!==f||g[16]!==b||g[17]!==v||g[18]!==y||g[19]!==w||g[20]!==x||g[21]!==$||g[22]!==S||g[23]!==R||g[24]!==k?(h=(0,n.jsx)(ek,{"data-as":b,"data-ui":"Grid",...f,$autoRows:v,$autoCols:y,$autoFlow:w,$columns:x,$gap:$,$gapX:S,$gapY:R,$rows:k,forwardedAs:r,ref:t,children:d}),g[12]=r,g[13]=d,g[14]=t,g[15]=f,g[16]=b,g[17]=v,g[18]=y,g[19]=w,g[20]=x,g[21]=$,g[22]=S,g[23]=R,g[24]=k,g[25]=h):h=g[25],h});eC.displayName="ForwardRef(Grid)";let e_=l.zo.div.withConfig({displayName:"StyledHeading",componentId:"sc-137lwim-0"})(function(e){let{$accent:t,$muted:r}=e,{font:n}=(0,o.aQ)(e.theme);return l.iv`
570    ${t&&l.iv`
571      color: var(--card-accent-fg-color);
572    `}
573
574    ${r&&l.iv`
575      color: var(--card-muted-fg-color);
576    `}
577
578    & code {
579      font-family: ${n.code.family};
580      border-radius: 1px;
581    }
582
583    & a {
584      text-decoration: none;
585      border-radius: 1px;
586      color: var(--card-link-color);
587      outline: none;
588
589      @media (hover: hover) {
590        &:hover {
591          text-decoration: underline;
592        }
593      }
594
595      &:focus {
596        box-shadow:
597          0 0 0 1px var(--card-bg-color),
598          0 0 0 3px var(--card-focus-ring-color);
599      }
600
601      &:focus:not(:focus-visible) {
602        box-shadow: none;
603      }
604    }
605
606    & strong {
607      font-weight: ${n.heading.weights.bold};
608    }
609
610    & svg {
611      /* Certain popular CSS libraries changes the defaults for SVG display */
612      /* Make sure SVGs are rendered as inline elements */
613      display: inline;
614    }
615
616    & [data-sanity-icon] {
617      vertical-align: baseline;
618    }
619  `},responsiveTextAlignStyle,function(e){return responsiveFont("heading",e)}),ez=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p,f;let m=(0,i.c)(22);m[0]!==e?({accent:l,align:r,children:o,muted:d,size:s,textOverflow:c,weight:u,...a}=e,m[0]=e,m[1]=r,m[2]=o,m[3]=a,m[4]=l,m[5]=d,m[6]=s,m[7]=c,m[8]=u):(r=m[1],o=m[2],a=m[3],l=m[4],d=m[5],s=m[6],c=m[7],u=m[8]);let h=void 0!==l&&l,g=void 0!==d&&d,b=void 0===s?2:s,v=o;if("ellipsis"===c){let e;m[9]!==v?(e=(0,n.jsx)(L,{children:v}),m[9]=v,m[10]=e):e=m[10],v=e}let y=useArrayProp(r),w=useArrayProp(b);return m[11]!==v?(p=(0,n.jsx)("span",{children:v}),m[11]=v,m[12]=p):p=m[12],m[13]!==h||m[14]!==g||m[15]!==t||m[16]!==a||m[17]!==y||m[18]!==w||m[19]!==p||m[20]!==u?(f=(0,n.jsx)(e_,{"data-ui":"Heading",...a,$accent:h,$align:y,$muted:g,$size:w,$weight:u,ref:t,children:p}),m[13]=h,m[14]=g,m[15]=t,m[16]=a,m[17]=y,m[18]=w,m[19]=p,m[20]=u,m[21]=f):f=m[21],f});ez.displayName="ForwardRef(Heading)";let eE=(0,l.zo)(et).withConfig({displayName:"StyledInline",componentId:"sc-1pkiy6j-0"})(function(){return{lineHeight:"0","&&:not([hidden])":{display:"block"},"& > div":{display:"inline-block",verticalAlign:"middle"}}}
619,function(e){let{media:t,space:r}=(0,o.aQ)(e.theme);return _responsive(t,e.$space,e=>{let t=rem(.5===e?r[1]/2:r[e]);return{margin:`-${t} 0 0 -${t}`,"& > div":{padding:`${t} 0 0 ${t}`}}})}),ej=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c;let u=(0,i.c)(13);u[0]!==e?({as:r,children:o,space:d,...l}=e,u[0]=e,u[1]=r,u[2]=o,u[3]=l,u[4]=d):(r=u[1],o=u[2],l=u[3],d=u[4]),u[5]!==o?(s=a.Children.map(o,_temp$4),u[5]=o,u[6]=s):s=u[6];let p=s,f=useArrayProp(d);return u[7]!==r||u[8]!==p||u[9]!==l||u[10]!==f||u[11]!==t?(c=(0,n.jsx)(eE,{"data-ui":"Inline",...l,$space:f,forwardedAs:r,ref:t,children:p}),u[7]=r,u[8]=p,u[9]=l,u[10]=f,u[11]=t,u[12]=c):c=u[12],c});function _temp$4(e){return e&&(0,n.jsx)("div",{children:e})}ej.displayName="ForwardRef(Inline)";let eP=l.zo.kbd.withConfig({displayName:"StyledKBD",componentId:"sc-1w7yd8w-0"})(responsiveRadiusStyle,function(){return l.iv`
620    --card-bg-color: var(--card-kbd-bg-color);
621    --card-border-color: var(--card-kbd-border-color);
622    --card-fg-color: var(--card-kbd-fg-color);
623
624    box-shadow: inset 0 0 0 1px var(--card-border-color);
625    background: var(--card-bg-color);
626    font: inherit;
627
628    vertical-align: top;
629
630    &:not([hidden]) {
631      display: inline-block;
632    }
633  `}),eA=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u;let p=(0,i.c)(17);p[0]!==e?({children:r,fontSize:a,padding:l,radius:d,...o}=e,p[0]=e,p[1]=r,p[2]=o,p[3]=a,p[4]=l,p[5]=d):(r=p[1],o=p[2],a=p[3],l=p[4],d=p[5]);let f=void 0===a?0:a,m=void 0===l?1:l,h=useArrayProp(void 0===d?2:d);return p[6]!==r||p[7]!==f?(s=(0,n.jsx)(eo,{as:"span",size:f,weight:"semibold",children:r}),p[6]=r,p[7]=f,p[8]=s):s=p[8],p[9]!==m||p[10]!==s?(c=(0,n.jsx)(et,{as:"span",padding:m,children:s}),p[9]=m,p[10]=s,p[11]=c):c=p[11],p[12]!==t||p[13]!==o||p[14]!==h||p[15]!==c?(u=(0,n.jsx)(eP,{"data-ui":"KBD",...o,$radius:h,ref:t,children:c}),p[12]=t,p[13]=o,p[14]=h,p[15]=c,p[16]=u):u=p[16],u});eA.displayName="ForwardRef(KBD)";let eI={name:"@sanity/ui/origin",fn({middlewareData:e,placement:t,rects:r}){let[o]=t.split("-"),n=r.floating.width,i=r.floating.height,a=e.shift?.x||0,l=e.shift?.y||0;if(n<=0||i<=0)return{};let d=["bottom","top"].includes(o),{originX:s,originY:c}
633=d?{originX:clamp(.5-a/n,0,1),originY:"bottom"===o?0:1}:{originX:"left"===o?1:0,originY:clamp(.5-l/i,0,1)};return{data:{originX:s,originY:c}}}};function clamp(e,t,r){return Math.min(Math.max(e,t),r)}function moveTowardsLength(e,t,r){let o=t.x-e.x,n=t.y-e.y;return moveTowardsFractional(e,t,Math.min(1,r/Math.sqrt(o*o+n*n)))}function moveTowardsFractional(e,t,r){return{x:e.x+(t.x-e.x)*r,y:e.y+(t.y-e.y)*r}}let eT=l.zo.div.withConfig({displayName:"StyledArrow",componentId:"sc-12vzy6c-0"})(({$w:e})=>l.iv`
634    position: absolute;
635    width: ${e}px;
636    height: ${e}px;
637
638    :empty + & {
639      display: none;
640    }
641
642    & > svg {
643      display: block;
644      line-height: 0;
645      transform-origin: ${e/2}px ${e/2}px;
646    }
647
648    [data-placement^='top'] > & {
649      bottom: -${e}px;
650
651      & > svg {
652        transform: rotate(0);
653      }
654    }
655
656    [data-placement^='right'] > & {
657      left: -${e}px;
658
659      & > svg {
660        transform: rotate(90deg);
661      }
662    }
663
664    [data-placement^='left'] > & {
665      right: -${e}px;
666
667      & > svg {
668        transform: rotate(-90deg);
669      }
670    }
671
672    [data-placement^='bottom'] > & {
673      top: -${e}px;
674
675      & > svg {
676        transform: rotate(180deg);
677      }
678    }
679  `),eN=l.zo.path.withConfig({displayName:"StrokePath",componentId:"sc-12vzy6c-1"})`stroke:var(--card-shadow-outline-color);`,eM=l.zo.path.withConfig({displayName:"ShapePath",componentId:"sc-12vzy6c-2"})`fill:var(--card-bg-color);`,eL=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p,f;let m=(0,i.c)(29);m[0]!==e?({width:l,height:r,radius:a,...o}=e,m[0]=e,m[1]=r,m[2]=o,m[3]=a,m[4]=l):(r=m[1],o=m[2],a=m[3],l=m[4]);let h=void 0===a?0:a,{card:g}=useTheme_v2(),b=g.shadow.outline,v=l/2;if(m[5]!==v||m[6]!==r||m[7]!==h||m[8]!==l){let e=[{x:0,y:0},{x:h,y:0,radius:h},{x:v,y:r-1,radius:h},{x:l-h,y:0,radius:h},{x:l,y:0}],t=function(e){let t=e.length,r=[];for(let o=0;o<t;o+=1){let t=e[o],n=e[o-1],i=e[o+1];if(n&&t.radius){let e=moveTowardsLength(t,n,t.radius),o=moveTowardsLength(t,i,t.radius),a=moveTowardsFractional(e,t,.5),l=moveTowardsFractional(t,o,.5);r.push({type:"point",...e}),r.push({type:"curve",curveEnd:o,startControl:a,endControl:l})}else r.push({type:"point",...t})}return r}(e);d=t.map((e,t)=>"point"===e.type?`${0===t?"M":"L"} ${e.x} ${e.y}`:"curve"===e.type?`C ${e.startControl.x} ${e.startControl.y} ${e.endControl.x} ${e.endControl.y} ${e.curveEnd.x} ${e.curveEnd.y}`:"").join(" "),m[5]=v,m[6]=r,m[7]=h,m[8]=l,m[9]=d}else d=m[9];let y=d,w=`${y}`,x=`${y} M ${l} -1 M 0 -1 Z`,$=`0 0 ${l} ${l}`;m[10]!==b||m[11]!==l?(s=(0,n.jsx)("mask",{id:"stroke-mask",children:(0,n.jsx)("rect",{x:0,y:b,width:l,height:l,fill:"white"})}),m[10]=b,m[11]=l,m[12]=s):s=m[12];let S=2*b;return m[13]!==w||m[14]!==S?(c=(0,n.jsx)(eN,{d:w,mask:"url(#stroke-mask)",strokeWidth:S}),m[13]=w,m[14]=S,m[15]=c):c=m[15],m[16]!==x?(u=(0,n.jsx)(eM,{d:x}),m[16]=x,m[17]=u):u=m[17],m[18]!==$||m[19]!==s||m[20]!==c||m[21]!==u||m[22]!==l?(p=(0,n.jsxs)("svg",{width:l,height:l,viewBox:$,children:[s,c,u]}),m[18]=$,m[19]=s,m[20]=c,m[21]=u,m[22]=l,m[23]=p):p=m[23],m[24]!==t||m[25]!==o||m[26]!==p||m[27]!==l?(f=(0,n.jsx)(eT,{...o,$w:l,ref:t,children:p}),m[24]=t,m[25]=o,m[26]=p,m[27]=l,m[28]=f):f=m[28],f});eL.displayName="ForwardRef(Arrow)";let eB=createGlobalScopedContext("@sanity/ui/context/boundaryElement",null);function BoundaryElementProvider(e){let t,r;let o=(0,i.c)(5),{children:a,element:l}=e;o[0]!==l?(t={version:0,element:l},o[0]=l,o[1]=t):t=o[1];let d=t;return o[2]!==a||o[3]!==d?(r=(0,n.jsx)(eB.Provider,{value:d,children:a}),o[2]=a,o[3]=d,o[4]=r):r=o[4],r}function isRecord(e){return!!(e&&"object"==typeof e&&!Array.isArray(e))}BoundaryElementProvider.displayName="BoundaryElementProvider";let eF={version:0,element:null};function useBoundaryElement(){let e=(0,a.useContext)(eB);if(e&&(!isRecord(e)||0!==e.version))throw Error("useBoundaryElement(): the context value is not compatible");return e||eF}let eO=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p;let f=(0,i.c)(18),m=useTheme_v2();f[0]!==e?({children:o,media:r,...l}=e,f[0]=e,f[1]=r,f[2]=o,f[3]=l):(r=f[1],o=f[2],l=f[3]);let h=r??m.media,[g,b]=(0,a.useState)(null),v=useElementSize(g)?.border.width??window.innerWidth;if(f[4]!==h||f[5]!==v){let e=function(e,t){let r=[];for(let o=0;o<e.length;o+=1)e[o]>t&&r.push(o);return r}(h,v);d=e.length?e.join(" "):void 0,f[4]=h,f[5]=v,f[6]=d}else d=f[6];let y=d;if(f[7]!==h||f[8]!==v){let e=function(e,t){let r=[];for(let o=0;o<e.length;o+=1)e[o]<=t&&r.push(o);return r}(h,v);s=e.length?e.join(" "):void 0,f[7]=h,f[8]=v,f[9]=s}else s=f[9];let w=s;return f[10]!==g?(c=()=>g,u=[g],f[10]=g,f[11]=c,f[12]=u):(c=f[11],u=f[12]),(0,a.useImperativeHandle)(t,c,u),f[13]!==o||f[14]!==y||f[15]!==w||f[16
679]!==l?(p=(0,n.jsx)("div",{"data-ui":"ElementQuery",...l,"data-eq-max":y,"data-eq-min":w,ref:b,children:o}),f[13]=o,f[14]=y,f[15]=w,f[16]=l,f[17]=p):p=f[17],p});function getLayerContext(e){if(!isRecord(e)||0!==e.version)throw Error("the context value is not compatible");if(!e)throw Error("components using `useLayer()` should be wrapped in a <LayerProvider>.");if(0===e.version)return e;throw Error("could not get layer context")}eO.displayName="ForwardRef(ElementQuery)";let eG=createGlobalScopedContext("@sanity/ui/context/layer",null);function LayerProvider(e){let t,r,o,l,d,s,c;let u=(0,i.c)(19),{children:p,zOffset:f}=e,m=void 0===f?0:f,h=(0,a.useContext)(eG);u[0]!==h?(t=h&&getLayerContext(h),u[0]=h,u[1]=t):t=u[1];let g=t,b=g?.registerChild,v=(g?.level??0)+1,y=useArrayProp(m),w=y.length-1,x=Math.min(useMediaIndex(),w),$=g?g.zIndex+y[x]:y[x];u[2]===Symbol.for("react.memo_cache_sentinel")?(r={},u[2]=r):r=u[2];let[,S]=(0,a.useState)(r),[R,k]=(0,a.useState)(0),C=0===R;u[3]!==b||u[4]!==S?(o=e=>{let t=b?.(e);return void 0!==e?S(t=>{let r=t[e]??0,o={...t,[e]:r+1};return k(Object.keys(o).length),o}):k(_temp$3),()=>{void 0!==e?S(t=>{let r={...t};return 1===r[e]?(delete r[e],k(Object.keys(r).length)):r[e]=r[e]-1,r}):k(_temp2$2),t?.()}},u[3]=b,u[4]=S,u[5]=o):o=u[5];let _=o;u[6]!==v||u[7]!==b?(l=()=>b?.(v),d=[v,b],u[6]=v,u[7]=b,u[8]=l,u[9]=d):(l=u[8],d=u[9]),(0,a.useEffect)(l,d),u[10]!==C||u[11]!==v||u[12]!==_||u[13]!==R||u[14]!==$?(s={version:0,isTopLayer:C,level:v,registerChild:_,size:R,zIndex:$},u[10]=C,u[11]=v,u[12]=_,u[13]=R,u[14]=$,u[15]=s):s=u[15];let z=s;return u[16]!==p||u[17]!==z?(c=(0,n.jsx)(eG.Provider,{value:z,children:p}),u[16]=p,u[17]=z,u[18]=c):c=u[18],c}function _temp2$2(e){return e-1}function _temp$3(e){return e+1}function useLayer(){let e=(0,i.c)(2),t=(0,a.useContext)(eG);if(!t)throw Error("useLayer(): missing context value");try{let r;return e[0]!==t?(r=getLayerContext(t),e[0]=t,e[1]=r):r=e[1],r}catch(e){throw e instanceof Error?Error(`useLayer(): ${e.message}`):Error(`useLayer(): ${e}`)}}LayerProvider.displayName="LayerProvider";let eH=l.zo.div.withConfig({displayName:"StyledLayer",componentId:"sc-16kojrv-0"})({position:"relative"}),eQ=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f,m,h;let g=(0,i.c)(22);g[0]!==e?({children:r,onActivate:o,onFocus:l,style:s,...d}=e,g[0]=e,g[1]=r,g[2]=o,g[3]=l,g[4]=d,g[5]=s):(r=g[1],o=g[2],l=g[3],d=g[4],s=g[5]);let b=void 0===s?w:s,{zIndex:v,isTopLayer:y}=useLayer(),x=(0,a.useRef)(null),$=(0,a.useRef)(null),S=(0,a.useRef)(y);g[6]===Symbol.for("react.memo_cache_sentinel")?(c=()=>$.current,g[6]=c):c=g[6],(0,a.useImperativeHandle)(t,c),g[7]!==y||g[8]!==o?(u=()=>{S.current!==y&&y&&o?.({activeElement:x.current}),S.current=y},p=[y,o],g[7]=y,g[8]=o,g[9]=u,g[10]=p):(u=g[9],p=g[10]),(0,a.useEffect)(u,p),g[11]!==y||g[12]!==l?(f=e=>{l?.(e);let t=$.current,r=document.activeElement;!y||!t||!r||isHTMLElement(r)&&containsOrEqualsElement(t,r)&&(x.current=r)},g[11]=y,g[12]=l,g[13]=f):f=g[13];let R=f;return g[14]!==b||g[15]!==v?(m={...b,zIndex:v},g[14]=b,g[15]=v,g[16]=m):m=g[16],g[17]!==r||g[18]!==R||g[19]!==d||g[20]!==m?(h=(0,n.jsx)(eH,{...d,"data-ui":"Layer",onFocus:R,ref:$,style:m,children:r}),g[17]=r,g[18]=R,g[19]=d,g[20]=m,g[21]=h):h=g[21],h}),eD=(0,a.forwardRef)(function(e,t){let r,o,a,l,d;let s=(0,i.c)(11);s[0]!==e?({children:r,zOffset:a,...o}=e,s[0]=e,s[1]=r,s[2]=o,s[3]=a):(r=s[1],o=s[2],a=s[3]);let c=void 0===a?1:a;return s[4]!==r||s[5]!==t||s[6]!==o?(l=(0,n.jsx)(eQ,{...o,ref:t,children:r}),s[4]=r,s[5]=t,s[6]=o,s[7]=l):l=s[7],s[8]!==l||s[9]!==c?(d=(0,n.jsx)(LayerProvider,{zOffset:c,children:l}),s[8]=l,s[9]=c,s[10]=d):d=s[10],d});eD.displayName="ForwardRef(Layer)";let eV="@sanity/ui/context/portal",eW=Symbol.for(`${eV}/element`);R[eW]=null;let eX=createGlobalScopedContext(eV,{version:0,boundaryElement:null,get element(){return typeof document>"u"?null:(R[eW]||(R[eW]=document.createElement("div"),R[eW].setAttribute("data-portal",""),document.body.appendChild(R[eW])),R[eW])}});function usePortal(){let e=(0,a.useContext)(eX);if(!e)throw Error("usePortal(): missing context value");
679if(!isRecord(e)||0!==e.version)throw Error("usePortal(): the context value is not compatible");return e}function Portal(e){let t;let r=(0,i.c)(3),{children:o,__unstable_name:n}=e,a=usePortal(),l=(n?a.elements&&a.elements[n]:a.element)||a.elements?.default;return l?(r[0]!==o||r[1]!==l?(t=(0,h.createPortal)(o,l),r[0]=o,r[1]=l,r[2]=t):t=r[2],t):null}function PortalProvider(e){let t,r;let o=(0,i.c)(7),{boundaryElement:l,children:d,element:s,__unstable_elements:c}=e,u=function(e){let t=(0,a.useRef)(e);return function(e,t){if(!e||!t)return e===t;let r=Object.keys(e),o=Object.keys(t);return r.length===o.length&&r.every(r=>e[r]===t[r])}(t.current,e)||(t.current=e),t.current}(c),p=(0,a.useSyncExternalStore)(emptySubscribe,_temp$2,_temp2$1),f=l||null,m=s||p;o[0]!==u||o[1]!==f||o[2]!==m?(t={version:0,boundaryElement:f,element:m,elements:u},o[0]=u,o[1]=f,o[2]=m,o[3]=t):t=o[3];let h=t;return o[4]!==d||o[5]!==h?(r=(0,n.jsx)(eX.Provider,{value:h,children:d}),o[4]=d,o[5]=h,o[6]=r):r=o[6],r}function _temp2$1(){return null}function _temp$2(){return document.body}Portal.displayName="Portal",PortalProvider.displayName="PortalProvider";let emptySubscribe=()=>()=>{},eY=l.zo.div.withConfig({displayName:"StyledSrOnly",componentId:"sc-mubr0c-0"})`display:block;width:0;height:0;position:absolute;overflow:hidden;overflow:clip;`,eK=(0,a.forwardRef)(function(e,t){let r;let o=(0,i.c)(4),{as:a,children:l}=e;return o[0]!==a||o[1]!==l||o[2]!==t?(r=(0,n.jsx)(eY,{"aria-hidden":!0,as:a,"data-ui":"SrOnly",ref:t,children:l}),o[0]=a,o[1]=l,o[2]=t,o[3]=r):r=o[3],r});eK.displayName="ForwardRef(SrOnly)";let eq=l.zo.div.withConfig({displayName:"StyledVirtualList",componentId:"sc-dlqsj4-0"})`position:relative;`,eJ=l.zo.div.withConfig({displayName:"ItemWrapper",componentId:"sc-dlqsj4-1"})`position:absolute;left:0;right:0;`,eZ=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f,m,h,g,b,v,y,w,x,S,R;let k=(0,i.c)(56);k[0]!==e?({as:s,gap:c,getItemKey:r,items:u,onChange:o,renderItem:l,...d}=e,k[0]=e,k[1]=r,k[2]=o,k[3]=l,k[4]=d,k[5]=s,k[6]=c,k[7]=u):(r=k[1],o=k[2],l=k[3],d=k[4],s=k[5],c=k[6],u=k[7]);let C=void 0===s?"div":s,_=void 0===c?0:c;k[8]!==u?(p=void 0===u?[]:u,k[8]=u,k[9]=p):p=k[9];let z=p,{space:E}=useTheme_v2(),j=(0,a.useRef)(null),P=(0,a.useRef)(null),[A,I]=(0,a.useState)(0),[T,N]=(0,a.useState)(0),[M,L]=(0,a.useState)(-1);k[10]===Symbol.for("react.memo_cache_sentinel")?(f=()=>j.current,k[10]=f):f=k[10],(0,a.useImperativeHandle)(t,f),k[11]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{if(!P.current)return;let e=P.current.firstChild;e instanceof HTMLElement&&L(e.offsetHeight)},k[11]=m):m=k[11],k[12]!==l?(h=[l],k[12]=l,k[13]=h):h=k[13],(0,a.useEffect)(m,h),k[14]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{if(!j.current)return;let e=function(e){let t=e;for(;t&&!function(e){if(!(e instanceof Element))return!1;let t=window.getComputedStyle(e);return t.overflowX.includes("auto")||t.overflowX.includes("scroll")||t.overflowY.includes("auto")||t.overflowY.includes("scroll")}(t);)t=t.parentNode;return t}(j.current.parentNode);if(e){if(!(e instanceof HTMLElement))return;let handleScroll=()=>{I(e.scrollTop)};e.addEventListener("scroll",handleScroll,{passive:!0});let t=new $(e=>{N(e[0].contentRect.height)});return t.observe(e),handleScroll(),()=>{e.removeEventListener("scroll",handleScroll),t.unobserve(e),t.disconnect()}}let handleScroll_0=()=>{I(window.scrollY)},handleResize=()=>{N(window.innerHeight)};return window.addEventListener("scroll",handleScroll_0,{passive:!0}),window.addEventListener("resize",handleResize),N(window.innerHeight),handleScroll_0(),()=>{window.removeEventListener("scroll",handleScroll_0),window.removeEventListener("resize",handleResize)}},b=[],k[14]=g,k[15]=b):(g=k[14],b=k[15]),(0,a.useEffect)(g,b);let B=z.length,F=M?B*(M+E[_])-E[_]:0,O=F?Math.max(Math.floor(A/F*B)-2,0):0,G=F?Math.ceil((A+T)/F*B)+1:0;k[16]!==O||k[17]!==_||k[18]!==M||k[19]!==o||k[20]!==T||k[21]!==A||k[22]!==E||k[23]!==G?(y=()=>{o&&o({fromIndex:O,gap:E[_],itemHeight:M,scrollHeight:T,scrollTop:A,toIndex:G})},v=[O,_,M,o,T,A,E,G],k[16]=O,k[17]=_,k[18]=M,k[19]=o,k[20]=T,k[21]=A,k[22]=E,k[23]=G,k[24]=v,k[25]=y):(v=k[24],y=k[25]),(0,a.useEffect)(y,v);e:{let e;if(!l||0===z.length){w=null;break e}if(-1===M){let e,t;k[26]!==z[0]||k[27]!==l?(e=l(z[0]),k[26]=z[0],k[27]=l,k[28]=e):e=k[28],k[29]!==e?(t=[(0,n.jsx)(eJ,{children:e},0)],k[29]=e,k[30]=t):t=k[30],w=t;break e}if(k[31]!==O||k[32]!==_||k[33]!==r||k[34]!==M||k[35]!==z||k[36]!==l||k[37]!==E||k[38]!==G){let t;k[40]!==O||k[41]!==_||k[42]!==r||k[43]!==M||k[44]!==l||k[45]!==E?(t=(e,t)=>
679{let o=O+t,i=l(e),a=r?r(e,o):o;return(0,n.jsx)(eJ,{style:{top:o*(M+E[_])},children:i},a)},k[40]=O,k[41]=_,k[42]=r,k[43]=M,k[44]=l,k[45]=E,k[46]=t):t=k[46],e=z.slice(O,G).map(t),k[31]=O,k[32]=_,k[33]=r,k[34]=M,k[35]=z,k[36]=l,k[37]=E,k[38]=G,k[39]=e}else e=k[39];w=e}let H=w;k[47]!==F?(x={height:F},k[47]=F,k[48]=x):x=k[48];let Q=x;return k[49]!==H||k[50]!==Q?(S=(0,n.jsx)("div",{ref:P,style:Q,children:H}),k[49]=H,k[50]=Q,k[51]=S):S=k[51],k[52]!==C||k[53]!==d||k[54]!==S?(R=(0,n.jsx)(eq,{as:C,"data-ui":"VirtualList",...d,ref:j,children:S}),k[52]=C,k[53]=d,k[54]=S,k[55]=R):R=k[55],R});function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}eZ.displayName="ForwardRef(VirtualList)";let eU=[0,0,0,0],e0={top:["bottom","left","right"],"top-start":["bottom-start","left-start","right-start"],"top-end":["bottom-end","left-end","right-end"],bottom:["top","left","right"],"bottom-start":["top-start","left-start","right-start"],"bottom-end":["top-end","left-end","right-end"],left:["right","top","bottom"],"left-start":["right-start","top-start","bottom-start"],"left-end":["right-end","top-end","bottom-end"],right:["left","top","bottom"],"right-start":["left-start","top-start","bottom-start"],"right-end":["left-end","top-end","bottom-end"]},e1=(0,l.zo)(p.E.create(eh)).withConfig({displayName:"MotionCard",componentId:"sc-ihg31s-0"})`&:not([hidden]){display:flex;}flex-direction:column;width:max-content;min-width:min-content;will-change:transform;`,e2=(0,l.zo)(p.E.create(el)).withConfig({displayName:"MotionFlex",componentId:"sc-ihg31s-1"})`will-change:opacity;`,e3=(0,a.memo)((0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p,f,m,h,g,b,v,y,w,$,S,R,k,C,_,z,E,j,P,A,I,T,N;let M=(0,i.c)(66);M[0]!==e?({__unstable_margins:c,animate:r,arrow:o,arrowRef:a,arrowX:l,arrowY:d,children:s,padding:m,placement:h,originX:u,originY:p,overflow:f,radius:g,scheme:v,shadow:y,strategy:w,style:$,tone:S,width:R,x:k,y:C,...b}=e,M[0]=e,M[1]=r,M[2]=o,M[3]=a,M[4]=l,M[5]=d,M[6]=s,M[7]=c,M[8]=u,M[9]=p,M[10]=f,M[11]=m,M[12]=h,M[13]=g,M[14]=b,M[15]=v,M[16]=y,M[17]=w,M[18]=$,M[19]=S,M[20]=R,M[21]=k,M[22]=C):(r=M[1],o=M[2],a=M[3],l=M[4],d=M[5],s=M[6],c=M[7],u=M[8],p=M[9],f=M[10],m=M[11],h=M[12],g=M[13],b=M[14],v=M[15],y=M[16],w=M[17],$=M[18],S=M[19],R=M[20],k=M[21],C=M[22]);let{zIndex:L}=useLayer(),B=c||eU,F=(k??0)+B[3],O=(C??0)+B[0],G=r?"transform":void 0;M[23]!==u||M[24]!==p||M[25]!==w||M[26]!==$||M[27]!==G||M[28]!==R||M[29]!==F||M[30]!==O||M[31]!==L?(_={left:F,originX:u,originY:p,position:w,top:O,width:R,zIndex:L,willChange:G,...$},M[23]=u,M[24]=p,M[25]=w,M[26]=$,M[27]=G,M[28]=R,M[29]=F,M[30]=O,M[31]=L,M[32]=_):_=M[32];let H=_,Q=null!==l?l:void 0,D=null!==d?d:void 0;M[33]!==Q||M[34]!==D?(z={left:Q,top:D,right:void 0,bottom:void 0},M[33]=Q,M[34]=D,M[35]=z):z=M[35];let V=z,W=b;return M[36]!==r?(E=r?["hidden","initial"]:void 0,M[36]=r,M[37]=E):E=M[37],M[38]!==r?(j=r?["visible","scaleIn"]:void 0,M[38]=r,M[39]=j):j=M[39],M[40]!==r?(P=r?["hidden","scaleOut"]:void 0,M[40]=r,M[41]=P):P=M[41],M[42]!==s||M[43]!==m?(A=(0,n.jsx)(el,{direction:"column",flex:1,padding:m,children:s}),M[42]=s,M[43]=m,M[44]=A):A=M[44],M[45]!==f||M[46]!==A?(I=(0,n.jsx)(e2,{"data-ui":"Popover__wrapper",direction:"column",flex:1,overflow:f,variants:x.children,transition:x.transition,children:A}),M[45]=f,M[46]=A,M[47]=I):I=M[47],M[48]!==o||M[49]!==a||M[50]!==V?(T=o&&(0,n.jsx)(eL,{ref:a,style:V,width:19,height:8,radius:2}),M[48]=o,M[49]=a,M[50]=V,M[51]=T):T=M[51],M[52]!==h||M[53]!==g||M[54]!==t||M[55]!==H||M[56]!==v||M[57]!==y||M[58]!==I||M[59]!==T||M[60]!==W||M[61]!==E||M[62]!==j||M[63]!==P||M[64]!==S?(N=(0,n.jsxs)(e1,{"data-ui":"Popover",...W,"data-placement":h,radius:g,ref:t,scheme:v,shadow:y,sizing:"border",style:H,tone:S,variants:x.card,transition:x.transition,initial:E,animate:j,exit:P,children:[I,T]}),M[52]=h,M[53]=g,M[54]=t,M[55]=H,M[56]=v,M[57]=y,M[58]=I,M[59]=T,M[60]=W,M[61]=E,M[62]=j,M[63]=P,M[64]=S,M[65]=N):N=M[65],N}));e3.displayName="Memo(ForwardRef(PopoverCard))";let ViewportOverlay=()=>{let e;let t=(0,i.c)(2),{zIndex:r}=useLayer();return t[0]!==r?(e=(0,n.jsx)("div",{style:{height:"100vh",inset:0,position:"fixed",width:"100vw",zIndex:r}}),t[0]=r,t[1]=e):e=t[1],e}
679,e4=(0,a.memo)((0,a.forwardRef)(function(e,t){let{container:r,layer:o}=useTheme_v2(),i=useBoundaryElement(),{__unstable_margins:l=eU,animate:d=!1,arrow:s=!1,boundaryElement:p=i.element,children:m,constrainSize:h=!1,content:g,disabled:b,fallbackPlacements:v=e.fallbackPlacements??e0[e.placement??"bottom"],matchReferenceWidth:y,floatingBoundary:w=e.boundaryElement??i.element,modal:x,onActivate:$,open:S,overflow:R="hidden",padding:k,placement:C="bottom",placementStrategy:_="flip",portal:z,preventOverflow:E=!0,radius:j=3,referenceBoundary:P=e.boundaryElement??i.element,referenceElement:A,scheme:I,shadow:T=3,tone:N="inherit",width:M="auto",zOffset:L=o.popover.zOffset,updateRef:B,...F}=e,O=!usePrefersReducedMotion()&&d,G=useElementSize(p)?.border,H=useArrayProp(k),Q=useArrayProp(j),D=useArrayProp(T),V=useArrayProp(M),W=useArrayProp(L),X=(0,a.useRef)(null),Y=(0,a.useRef)(null),K="viewport";(0,a.useImperativeHandle)(t,()=>X.current);let q=useMediaIndex(),J=h||E?G?.width:void 0,Z=function(e){let{container:t,mediaIndex:r,width:o}=e,n=o[r],i=void 0===n?o[o.length-1]:n;return"number"==typeof i?t[i]:void 0}({container:r,mediaIndex:q,width:V}),U=(0,a.useRef)(Z);(0,a.useEffect)(()=>{U.current=Z},[Z]);let ee=function(e){let{boundaryWidth:t,currentWidth:r}=e;if(!(void 0===r&&void 0===t))return Math.min(r??1/0,(t||1/0)-8)}({boundaryWidth:J,currentWidth:Z}),et=(0,a.useRef)(ee);(0,a.useEffect)(()=>{et.current=ee},[ee]);let er=(0,a.useRef)(void 0);(0,a.useEffect)(()=>{let e=X.current;if(!S||!e)return;let t=er.current;y?void 0!==t&&(e.style.width=`${t}px`):void 0!==Z&&(e.style.width=`${Z}px`),"number"==typeof ee&&(e.style.maxWidth=`${ee}px`)},[Z,y,ee,S]);let eo=(0,a.useMemo)(()=>{let e=[];return(h||E)&&("autoPlacement"===_?e.push((0,u.X5)({allowedPlacements:[C].concat(v)})):e.push((0,u.RR)({boundary:w||void 0,fallbackPlacements:v,padding:4,rootBoundary:K}))),e.push((0,u.cv)({mainAxis:4})),(h||y)&&e.push(function(e){let{apply:t,margins:r,padding:o=0}=e;return{name:"@sanity/ui/size",async fn(n){let{elements:i,placement:a,platform:l,rects:d}=n,{floating:s,reference:u}=d,p=await (0,c.US)(n,{altBoundary:!0,boundary:e.boundaryElement||void 0,elementContext:"floating",padding:o,rootBoundary:"viewport"}),f=1/0,m=1/0,h=s.width,g=s.height;a.includes("top")&&(f=h-(p.left+p.right),m=g-p.top),a.includes("right")&&(f=h-p.right,m=g-(p.top+p.bottom)),a.includes("bottom")&&(f=h-(p.left+p.right),m=g-p.bottom),a.includes("left")&&(f=h-p.left,m=g-(p.top+p.bottom)),t({availableWidth:f-r[1]-r[3],availableHeight:m-r[0]-r[2],elements:i,referenceWidth:u.width-r[1]-r[3]});let b=await l.getDimensions(i.floating),v=b.height,y=b.width;return h!==y||g!==v?{reset:{rects:!0}}:{}}}}({apply({availableWidth:e,availableHeight:t,elements:r,referenceWidth:o}){er.current=o;let n=U.current,i=et.current;y?r.floating.style.width=`${o}px`:void 0!==n&&(r.floating.style.width=`${n}px`),h&&(r.floating.style.maxWidth=`${Math.min(e,i??1/0)}px`,r.floating.style.maxHeight=`${t}px`)},boundaryElement:w||void 0,margins:l,padding:4})),E&&e.push((0,u.uY)({boundary:w||void 0,rootBoundary:K,padding:4})),s&&e.push((0,u.x7)({element:Y,padding:4})),O&&e.push(eI),e.push((0,u.Cp)({boundary:P||void 0,padding:4,strategy:"referenceHidden"})),e},[O,s,h,v,C,_,w,l,y,E,P]),{x:en,y:ei,middlewareData:ea,placement:el,refs:ed,strategy:es,update:ec}=(0,u.YF)({middleware:eo,placement:C,whileElementsMounted:c.Me,elements:A?{reference:A}:void 0}),eu=ea.hide?.referenceHidden,ep=ea.arrow?.x,ef=ea.arrow?.y,em=ea["@sanity/ui/origin"]?.originX,eh=ea["@sanity/ui/origin"]?.originY,eg=(0,a.useCallback)(e=>{Y.current=e},[]),eb=(0,a.useCallback)(e=>{X.current=e,ed.setFloating(e)},[ed]),ev=(0,a.useCallback)(e=>{ed.setReference(e);let t=getElementRef(m);"function"==typeof t?t(e):t&&(t.current=e)},[m,ed]),ey=(0,a.useMemo)(()=>A?m:m?(0,a.cloneElement)(m,{ref:ev}):null,[m,A,ev]);if((0,a.useEffect)(()=>{B&&("function"==typeof B?B(ec):B&&(B.current=ec))},[ec,B]),b)return m||(0,n.jsx)(n.Fragment,{});let ew=(0,n.jsxs)(LayerProvider,{zOffset:W,children:[x&&(0,n.jsx)(ViewportOverlay,{}),(0,n.jsx)(e3,{...F,__unstable_margins:l,animate:O,arrow:s,arrowRef:eg,arrowX:ep,arrowY:ef,hidden:eu,overflow:R,padding:H,placement:el,radius:Q,ref:eb,scheme:I,shadow:D,originX:em,originY:eh,strategy:es,tone:N,width:y?er.current:Z,x:en,y:ei,children:g})]}),ex=S&&(z?(0,n.jsx)(Portal,{__unstable_name:"string"==typeof z?z:void 0,children:ew}):ew);return(0,n.jsxs)(n.Fragment,{children:[O?(0,n.jsx)(f.M,{children:ex}):ex,ey]})}));e4.displayName="Memo(ForwardRef(Popover))";let e5=l.zo.div.withConfig({displayName:"StyledRadio",componentId:"sc-ccrwkf-0"})(function(){return l.iv`
680    position: relative;
681
682    &:not([hidden]) {
683      display: inline-block;
684    }
685
686    &[data-read-only] {
687      outline: 1px solid red;
688    }
689  `}),e6=l.zo.input.withConfig({displayName:"Input",componentId:"sc-ccrwkf-1"}
689)(function(e){let{color:t,input:r}=(0,o.aQ)(e.theme),n=(r.radio.size-r.radio.markSize)/2;return l.iv`
690    appearance: none;
691    position: absolute;
692    top: 0;
693    left: 0;
694    opacity: 0;
695    height: 100%;
696    width: 100%;
697    outline: none;
698    z-index: 1;
699    padding: 0;
700    margin: 0;
701    border-radius: ${rem(r.radio.size/2)};
702    border: none;
703
704    /* enabled */
705    & + span {
706      display: block;
707      position: relative;
708      height: ${rem(r.radio.size)};
709      width: ${rem(r.radio.size)};
710      border-radius: ${rem(r.radio.size/2)};
711      background: ${t.input.default.enabled.bg};
712      box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:r.border.width})};
713
714      &::after {
715        content: '';
716        position: absolute;
717        top: ${rem(n)};
718        left: ${rem(n)};
719        height: ${rem(r.radio.markSize)};
720        width: ${rem(r.radio.markSize)};
721        border-radius: ${rem(r.radio.markSize/2)};
722        background: ${t.input.default.enabled.fg};
723        opacity: 0;
724      }
725    }
726
727    /* focused */
728    &:not(:disabled):focus + span {
729      box-shadow: ${focusRingStyle({border:{width:r.border.width,color:t.input.default.enabled.border},focusRing:r.radio.focusRing})};
730    }
731
732    &:not(:disabled):focus:not(:focus-visible) + span {
733      box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:r.border.width})};
734    }
735
736    &:checked + span::after {
737      opacity: 1;
738    }
739
740    /* customValidity */
741    &[data-error] + span {
742      background-color: ${t.input.invalid.enabled.border};
743      box-shadow: ${focusRingBorderStyle({width:r.border.width,color:t.input.invalid.enabled.muted.bg})};
744      &::after {
745        background: ${t.input.invalid.enabled.muted.bg};
746      }
747    }
748
749    /* read only */
750    &[data-read-only] + span {
751      box-shadow: 0 0 0 1px ${t.input.default.readOnly.border};
752      background: ${t.input.default.readOnly.bg};
753
754      &::after {
755        background: ${t.input.default.readOnly.border};
756      }
757    }
758
759    /* disabled */
760    &:not([data-read-only]):disabled + span {
761      box-shadow: 0 0 0 1px ${t.input.default.disabled.border};
762      background: ${t.input.default.disabled.bg};
763
764      &::after {
765        background: ${t.input.default.disabled.border};
766      }
767    }
768  `}),e7=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f,m;let h=(0,i.c)(19);h[0]!==e?({className:r,disabled:l,style:c,customValidity:o,readOnly:d,...s}=e,h[0]=e,h[1]=r,h[2]=o,h[3]=l,h[4]=d,h[5]=s,h[6]=c):(r=h[1],o=h[2],l=h[3],d=h[4],s=h[5],c=h[6]);let g=(0,a.useRef)(null);h[7]===Symbol.for("react.memo_cache_sentinel")?(u=()=>g.current,h[7]=u):u=h[7],(0,a.useImperativeHandle)(t,u),useCustomValidity(g,o);let b=!l&&d?"":void 0,v=o?"":void 0,y=l||d;return h[8]!==d||h[9]!==s||h[10]!==b||h[11]!==v||h[12]!==y?(p=(0,n.jsx)(e6,{"data-read-only":b,"data-error":v,...s,disabled:y,readOnly:d,ref:g,type:"radio"}),h[8]=d,h[9]=s,h[10]=b,h[11]=v,h[12]=y,h[13]=p):p=h[13],h[14]===Symbol.for("react.memo_cache_sentinel")?(f=(0,n.jsx)("span",{}),h[14]=f):f=h[14],h[15]!==r||h[16]!==c||h[17]!==p?(m=(0,n.jsxs)(e5,{className:r,"data-ui":"Radio",style:c,children:[p,f]}),h[15]=r,h[16]=c,h[17]=p,h[18]=m):m=h[18],m});function inputBaseStyle(e){let{font:t}=(0,o.aQ)(e.theme);return l.iv`
769    -webkit-font-smoothing: antialiased;
770    appearance: none;
771    border: 0;
772    font-family: ${t.text.family};
773    color: inherit;
774    width: 100%;
775    outline: none;
776    margin: 0;
777
778    &:disabled {
779      opacity: 1;
780    }
781  `}
781function inputColorStyle(e){let{color:t,input:r}=(0,o.aQ)(e.theme);return l.iv`
782    /* enabled */
783    background-color: ${t.input.default.enabled.bg};
784    color: ${t.input.default.enabled.fg};
785    box-shadow: ${focusRingBorderStyle({color:t.input.default.enabled.border,width:r.border.width})};
786
787    /* hovered */
788    @media (hover: hover) {
789      &:not(:disabled):hover {
790        background-color: ${t.input.default.hovered.bg};
791        color: ${t.input.default.hovered.fg};
792        box-shadow: ${focusRingBorderStyle({color:t.input.default.hovered.border,width:r.border.width})};
793      }
794    }
795
796    /* focused */
797    &:not(:disabled):focus {
798      box-shadow: ${focusRingStyle({border:{width:r.border.width,color:t.input.default.enabled.border},focusRing:r.select.focusRing})};
799    }
800
801    /* read-only */
802    &[data-read-only] {
803      background-color: ${t.input.default.readOnly.bg};
804      color: ${t.input.default.readOnly.fg};
805      box-shadow: ${focusRingBorderStyle({color:t.input.default.readOnly.border,width:r.border.width})};
806    }
807
808    /* disabled */
809    &:not([data-read-only]):disabled {
810      background-color: ${t.input.default.disabled.bg};
811      color: ${t.input.default.disabled.fg};
812      box-shadow: ${focusRingBorderStyle({color:t.input.default.disabled.border,width:r.border.width})};
813    }
814  `}function inputTextSizeStyle(e){let{$fontSize:t}=e,{font:r,media:n}=(0,o.aQ)(e.theme);return _responsive(n,t,e=>{var t;return{fontSize:rem((t=r.text.sizes[e]||r.text.sizes[2]).fontSize),lineHeight:`${rem(t.lineHeight)}`}})}e7.displayName="ForwardRef(Radio)";let e8={root:function(){return l.iv`
815    position: relative;
816    width: -moz-available;
817    width: -webkit-fill-available;
818    width: stretch;
819
820    &:not([hidden]) {
821      display: inline-block;
822    }
823  `},input:function(){return[responsiveRadiusStyle,inputBaseStyle,inputColorStyle,inputTextSizeStyle,responsiveInputPaddingIconRightStyle]},iconBox:function(e){let{color:t}=(0,o.aQ)(e.theme);return l.iv`
824    pointer-events: none;
825    position: absolute;
826    top: 0;
827    right: 0;
828
829    /* enabled */
830    --card-fg-color: ${t.input.default.enabled.fg};
831
832    /* hover */
833    @media (hover: hover) {
834      select:not(disabled):not(:read-only):hover + && {
835        --card-fg-color: ${t.input.default.hovered.fg};
836      }
837    }
838
839    /* disabled */
840    select:disabled + && {
841      --card-fg-color: ${t.input.default.disabled.fg};
842    }
843
844    /* read-only */
845    select[data-read-only] + && {
846      --card-fg-color: ${t.input.default.readOnly.fg};
847    }
848  `}},e9=l.zo.div.withConfig({displayName:"StyledSelect",componentId:"sc-5mxno7-0"})(e8.root),te=l.zo.select.withConfig({displayName:"Input",componentId:"sc-5mxno7-1"})(e8.input),tt=(0,l.zo)(et).withConfig({displayName:"IconBox",componentId:"sc-5mxno7-2"})(e8.iconBox),tr=(0,a.forwardRef)(function(e,t){let r,o,l,d,c,u,p,f,m,h,g,b,v,y,w;let x=(0,i.c)(29);x[0]!==e?({children:r,customValidity:o,disabled:l,fontSize:u,padding:p,radius:f,readOnly:d,space:m,...c}=e,x[0]=e,x[1]=r,x[2]=o,x[3]=l,x[4]=d,x[5]=c,x[6]=u,x[7]=p,x[8]=f,x[9]=m):(r=x[1],o=x[2],l=x[3],d=x[4],c=x[5],u=x[6],p=x[7],f=x[8],m=x[9]);let $=void 0===u?2:u,S=void 0===p?3:p,R=void 0===f?2:f,k=void 0===m?3:m,C=(0,a.useRef)(null);x[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>C.current,x[10]=h):h=x[10],(0,a.useImperativeHandle)(t,h),useCustomValidity(C,o);let _=!l&&d?"":void 0,z=useArrayProp($),E=useArrayProp(S),j=useArrayProp(R),P=useArrayProp(k),A=l||d;return x[11]!==r||x[12]!==c||x[13]!==A||x[14]!==_||x[15]!==z||x[16]!==E||x[17]!==j||x[18]!==P?(g=(0,n.jsx)(te,{"data-read-only":_,"data-ui":"Select",...c,$fontSize:z,$padding:E,$radius:j,$space:P,disabled:A,ref:C,children:r}),x[11]=r,x[12]=c,x[13]=A,x[14]=_,x[15]=z,x[16]=E,x[17]=j,x[18]=P,x[19]=g):g=x[19],x[20]===Symbol.for("react.memo_cache_sentinel")?(b=(0,n.jsx)(s.v4q,{}),x[20]=b):b=x[20],x[21]!==$?(v=(0,n.jsx)(eo,{size:$,children:b}),x[21]=$,x[22]=v):v=x[22],x[23]!==S||x[24]!==v?(y=(0,n.jsx)(tt,{padding:S,children:v}),x[23]=S,x[24]=v,x[25]=y):y=x[25],x[26]!==g||x[27]!==y?(w=(0,n.jsxs)(e9,{"data-ui":"Select",children:[g,y]}),x[26]=g,x[27]=y,x[28]=w):w=x[28],w});
848tr.displayName="ForwardRef(Select)";let to={"&&:not([hidden])":{display:"grid"},'&[data-as="ul"],&[data-as="ol"]':{listStyle:"none"},gridTemplateColumns:"minmax(0, 1fr)",gridAutoRows:"min-content"},tn=(0,l.zo)(et).withConfig({displayName:"StyledStack",componentId:"sc-8dpfq2-0"})(function(){return to},function(e){let{media:t,space:r}=(0,o.aQ)(e.theme);return _responsive(t,e.$space,e=>({gridGap:rem(r[e])}))}),ti=(0,a.forwardRef)(function(e,t){let r,o,a,l;let d=(0,i.c)(10);d[0]!==e?({as:r,space:a,...o}=e,d[0]=e,d[1]=r,d[2]=o,d[3]=a):(r=d[1],o=d[2],a=d[3]);let s="string"==typeof r?r:void 0,c=useArrayProp(a);return d[4]!==r||d[5]!==t||d[6]!==o||d[7]!==s||d[8]!==c?(l=(0,n.jsx)(tn,{"data-as":s,"data-ui":"Stack",...o,$space:c,forwardedAs:r,ref:t}),d[4]=r,d[5]=t,d[6]=o,d[7]=s,d[8]=c,d[9]=l):l=d[9],l});ti.displayName="ForwardRef(Stack)";let ta=l.zo.span.withConfig({displayName:"StyledSwitch",componentId:"sc-dw1foe-0"})(function(){return l.iv`
849    position: relative;
850    &:not([hidden]) {
851      display: inline-block;
852    }
853  `}),tl=l.zo.input.withConfig({displayName:"Input",componentId:"sc-dw1foe-1"})(function(){return l.iv`
854    position: absolute;
855    top: 0;
856    right: 0;
857    bottom: 0;
858    left: 0;
859    opacity: 0;
860    height: 100%;
861    width: 100%;
862    outline: none;
863    padding: 0;
864    margin: 0;
865
866    /* Place the input element above the representation element */
867    z-index: 1;
868  `}),td=l.zo.span.withConfig({displayName:"Representation",componentId:"sc-dw1foe-2"})(function(e){let{color:t,input:r}=(0,o.aQ)(e.theme);return l.iv`
869    --switch-bg-color: ${t.input.default.enabled.border};
870    --switch-fg-color: ${t.input.default.enabled.bg};
871    --switch-box-shadow: none;
872
873    &:not([hidden]) {
874      display: block;
875    }
876    position: relative;
877    width: ${rem(r.switch.width)};
878    height: ${rem(r.switch.height)};
879    border-radius: ${rem(r.switch.height/2)};
880
881    /* Make sure it’s not possible to interact with the wrapper element */
882    pointer-events: none;
883
884    &:after {
885      content: '';
886      display: block;
887      position: absolute;
888      top: 0;
889      left: 0;
890      right: 0;
891      bottom: 0;
892      z-index: 1;
893      box-shadow: var(--switch-box-shadow);
894      border-radius: inherit;
895    }
896
897    /* Focus styles */
898    input:focus + && {
899      --switch-box-shadow: ${focusRingStyle({focusRing:r.switch.focusRing})};
900    }
901
902    input:focus:not(:focus-visible) + && {
903      --switch-box-shadow: none;
904    }
905
906    input:checked + && {
907      --switch-bg-color: ${t.input.default.enabled.fg};
908      --switch-fg-color: ${t.input.default.enabled.bg};
909    }
910
911    @media (hover: hover) {
912      input:not(:disabled):hover + && {
913        --switch-bg-color: ${t.input.default.hovered.border};
914        --switch-fg-color: ${t.input.default.hovered.bg};
915      }
916
917      input:not(:disabled):checked:hover + && {
918        --switch-bg-color: ${t.input.default.enabled.fg};
919        --switch-fg-color: ${t.input.default.enabled.bg};
920      }
921    }
922
923    input:not([data-read-only]):disabled + && {
924      --switch-bg-color: ${t.input.default.disabled.border};
925      --switch-fg-color: ${t.input.default.disabled.bg};
926    }
927
928    input[data-read-only]:disabled + && {
929      --switch-bg-color: ${t.input.default.readOnly.border};
930      --switch-fg-color: ${t.input.default.readOnly.bg};
931    }
932
933    input:checked[data-read-only]:disabled + && {
934      --switch-bg-color: ${t.input.default.readOnly.fg};
935      --switch-fg-color: ${t.input.default.readOnly.bg};
936    }
937  `}),ts=l.zo.span.withConfig({displayName:"Track",componentId:"sc-dw1foe-3"})(function(e){let{input:t}=(0,o.aQ)(e.theme);return l.iv`
938    &:not([hidden]) {
939      display: block;
940    }
941    background-color: var(--switch-bg-color);
942    position: absolute;
943    left: 0;
944    top: 0;
945    width: ${rem(t.switch.width)};
946    height: ${rem(t.switch.height)};
947    border-radius: ${rem(t.switch.height/2)};
948  `}),tc=l.zo.span.withConfig({displayName:"Thumb",componentId:"sc-dw1foe-4"})(function(e){let{$indeterminate:t}=e,{input:r}=(0,o.aQ)(e.theme),n=r.switch.width,i=r.switch.height,a=r.switch.padding,d=i-2*r.switch.padding,s=n-2*a-d,c=n/2-d/2-a,u=!0!==t&&!0===e.$checked;return l.iv`
949    &:not([hidden]) {
950      display: block;
951    }
952    position: absolute;
953    left: ${rem(a)};
954    top: ${rem(a)};
955    height: ${rem(d)};
956    width: ${rem(d)};
957    border-radius: ${rem(d/2)};
958    transition-property: transform;
959    transition-duration: ${r.switch.transitionDurationMs}ms;
960    transition-timing-function: ${r.switch.transitionTimingFunction};
961    background: var(--switch-fg-color);
962    transform: translate3d(0, 0, 0);
963    box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.05);
964
965    ${u&&l.iv`
966      transform: translate3d(${s}px, 0, 0);
967    `}
968
969    ${t&&l.iv`
970      transform: translate3d(${c}
970px, 0, 0);
971    `}
972  `}),tu=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f,m,h,g,b,v;let y=(0,i.c)(26);y[0]!==e?({checked:r,className:o,disabled:l,indeterminate:d,readOnly:s,style:u,...c}=e,y[0]=e,y[1]=r,y[2]=o,y[3]=l,y[4]=d,y[5]=s,y[6]=c,y[7]=u):(r=y[1],o=y[2],l=y[3],d=y[4],s=y[5],c=y[6],u=y[7]);let w=(0,a.useRef)(null);y[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>w.current,y[8]=p):p=y[8],(0,a.useImperativeHandle)(t,p),y[9]!==d?(f=()=>{w.current&&(w.current.indeterminate=d||!1)},m=[d],y[9]=d,y[10]=f,y[11]=m):(f=y[10],m=y[11]),(0,a.useEffect)(f,m);let x=!l&&s?"":void 0,$=!0!==d&&r,S=l||s;return y[12]!==c||y[13]!==x||y[14]!==$||y[15]!==S?(h=(0,n.jsx)(tl,{"data-read-only":x,...c,checked:$,disabled:S,type:"checkbox",ref:w}),y[12]=c,y[13]=x,y[14]=$,y[15]=S,y[16]=h):h=y[16],y[17]===Symbol.for("react.memo_cache_sentinel")?(g=(0,n.jsx)(ts,{}),y[17]=g):g=y[17],y[18]!==r||y[19]!==d?(b=(0,n.jsxs)(td,{"aria-hidden":!0,"data-name":"representation",children:[g,(0,n.jsx)(tc,{$checked:r,$indeterminate:d})]}),y[18]=r,y[19]=d,y[20]=b):b=y[20],y[21]!==o||y[22]!==u||y[23]!==h||y[24]!==b?(v=(0,n.jsxs)(ta,{className:o,"data-ui":"Switch",style:u,children:[h,b]}),y[21]=o,y[22]=u,y[23]=h,y[24]=b,y[25]=v):v=y[25],v});tu.displayName="ForwardRef(Switch)";let tp=l.zo.span.withConfig({displayName:"StyledTextArea",componentId:"sc-1d6h1o8-0"})(textInputRootStyle),tf=l.zo.span.withConfig({displayName:"InputRoot",componentId:"sc-1d6h1o8-1"})`flex:1;min-width:0;display:block;position:relative;`,tm=l.zo.textarea.withConfig({displayName:"Input",componentId:"sc-1d6h1o8-2"})(responsiveInputPaddingStyle,textInputBaseStyle,textInputFontSizeStyle),th=l.zo.div.withConfig({displayName:"Presentation",componentId:"sc-1d6h1o8-3"})(responsiveRadiusStyle,textInputRepresentationStyle),tg=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f,m,h,g,b;let v=(0,i.c)(29);v[0]!==e?({border:d,customValidity:o,disabled:s,fontSize:c,padding:u,radius:p,weight:f,__unstable_disableFocusRing:r,...l}=e,v[0]=e,v[1]=r,v[2]=o,v[3]=l,v[4]=d,v[5]=s,v[6]=c,v[7]=u,v[8]=p,v[9]=f):(r=v[1],o=v[2],l=v[3],d=v[4],s=v[5],c=v[6],u=v[7],p=v[8],f=v[9]);let y=void 0===d||d,w=void 0!==s&&s,x=void 0===c?2:c,$=void 0===u?3:u,S=void 0===p?2:p,R=(0,a.useRef)(null),k=useRootTheme();v[10]===Symbol.for("react.memo_cache_sentinel")?(m=()=>R.current,v[10]=m):m=v[10],(0,a.useImperativeHandle)(t,m),useCustomValidity(R,o);let C=k.scheme,_=k.tone,z=useArrayProp(x),E=useArrayProp($),j=k.scheme,P=useArrayProp(0);v[11]!==w||v[12]!==l||v[13]!==k.scheme||v[14]!==k.tone||v[15]!==P||v[16]!==z||v[17]!==E||v[18]!==f?(h=(0,n.jsx)(tm,{"data-as":"textarea","data-scheme":C,"data-tone":_,...l,$fontSize:z,$padding:E,$scheme:j,$space:P,$tone:k.tone,$weight:f,disabled:w,ref:R}),v[11]=w,v[12]=l,v[13]=k.scheme,v[14]=k.tone,v[15]=P,v[16]=z,v[17]=E,v[18]=f,v[19]=h):h=v[19];let A=useArrayProp(S),I=y?"":void 0;return v[20]!==r||v[21]!==k.scheme||v[22]!==k.tone||v[23]!==A||v[24]!==I?(g=(0,n.jsx)(th,{$radius:A,$unstableDisableFocusRing:r,$scheme:k.scheme,$tone:k.tone,"data-border":I,"data-scheme":k.scheme,"data-tone":k.tone}),v[20]=r,v[21]=k.scheme,v[22]=k.tone,v[23]=A,v[24]=I,v[25]=g):g=v[25],v[26]!==h||v[27]!==g?(b=(0,n.jsx)(tp,{"data-ui":"TextArea",children:(0,n.jsxs)(tf,{children:[h,g]})}),v[26]=h,v[27]=g,v[28]=b):b=v[28],b});tg.displayName="ForwardRef(TextArea)";let tb={zIndex:2},tv=(0,l.zo)(eh).attrs({forwardedAs:"span"}).withConfig({displayName:"StyledTextInput",componentId:"sc-h62wco-0"})(textInputRootStyle),ty=l.zo.span.withConfig({displayName:"InputRoot",componentId:"sc-h62wco-1"})`flex:1;min-width:0;display:block;position:relative;`,tw=(0,l.zo)(eh).attrs({forwardedAs:"span"}).withConfig({displayName:"Prefix",componentId:"sc-h62wco-2"})`border-top-right-radius:0;border-bottom-right-radius:0;& > span{display:block;margin:-1px;}`,tx=(0,l.zo)(eh).attrs({forwardedAs:"span"}).withConfig({displayName:"Suffix",componentId:"sc-h62wco-3"})`border-top-left-radius:0;border-bottom-left-radius:0;& > span{display:block;margin:-1px;}`,t$=l.zo.input.withConfig({displayName:"Input",componentId:"sc-h62wco-4"})(responsiveInputPaddingStyle,textInputBaseStyle,textInputFontSizeStyle),tS=l.zo.span.withConfig({displayName:"Presentation",componentId:"sc-h62wco-5"})(responsiveRadiusStyle,textInputRepresentationStyle),tR=(0,l.zo)(et).withConfig({displayName:"LeftBox",componentId:"sc-h62wco-6"})`position:absolute;top:0;left:0;`,tk=(0,l.zo)(et).withConfig({displayName:"RightBox",componentId:"sc-h62wco-7"})`position:absolute;top:0;right:0;`,tC=(0,l.zo)(eh).withConfig({displayName:"RightCard",componentId:"sc-h62wco-8"})`background-color:transparent;position:absolute;top:0;right:0;`,t_=(0,l.zo)(ef).withConfig({displayName:"TextInputClearButton",componentId:"sc-h62wco-9"})({"&:not([hidden])":{display:"block"}}),tz=(0,a.forwardRef)(function(e,t){let r,o,l,c,u,p,f,m,h,g,b,v,y,x,$,S,R,k,C,_,z,E,j,P,A,I,T,N,M,L,B;let F=(0,i.c)(84);F[0]!==e?({__unstable_disableFocusRing:l,border:b,clearButton:c,disabled:v,fontSize:y,icon:r,iconRight:o,onClear:p,padding:x,prefix:f,radius:$,readOnly:m,space:S,suffix:g,customValidity:u,type:R,weight:k,...h}
972=e,F[0]=e,F[1]=r,F[2]=o,F[3]=l,F[4]=c,F[5]=u,F[6]=p,F[7]=f,F[8]=m,F[9]=h,F[10]=g,F[11]=b,F[12]=v,F[13]=y,F[14]=x,F[15]=$,F[16]=S,F[17]=R,F[18]=k):(r=F[1],o=F[2],l=F[3],c=F[4],u=F[5],p=F[6],f=F[7],m=F[8],h=F[9],g=F[10],b=F[11],v=F[12],y=F[13],x=F[14],$=F[15],S=F[16],R=F[17],k=F[18]);let O=void 0===b||b,G=void 0!==v&&v,H=void 0===y?2:y,Q=void 0===x?3:x,D=void 0===$?2:$,V=void 0===S?3:S,W=void 0===R?"text":R,X=(0,a.useRef)(null),Y=useRootTheme(),K=useArrayProp(H),q=useArrayProp(Q),J=useArrayProp(D),Z=useArrayProp(V),U=!!c,ee=!!r,et=!!o,er=!!g,en=!!f;F[19]===Symbol.for("react.memo_cache_sentinel")?(C=()=>X.current,F[19]=C):C=F[19],(0,a.useImperativeHandle)(t,C),useCustomValidity(X,u),F[20]!==p?(_=e=>{e.preventDefault(),e.stopPropagation(),p&&p(),X.current?.focus()},F[20]=p,F[21]=_):_=F[21];let ei=_;F[22]!==f||F[23]!==J?(z=f&&(0,n.jsx)(tw,{borderTop:!0,borderLeft:!0,borderBottom:!0,radius:J,sizing:"border",tone:"inherit",children:(0,n.jsx)("span",{children:f})}),F[22]=f,F[23]=J,F[24]=z):z=F[24];let ea=z,el=O?"":void 0;F[25]!==r||F[26]!==K||F[27]!==q?(E=r&&(0,n.jsx)(tR,{padding:q,children:(0,n.jsxs)(eo,{size:K,children:[(0,a.isValidElement)(r)&&r,(0,d.isValidElementType)(r)&&(0,n.jsx)(r,{})]})}),F[25]=r,F[26]=K,F[27]=q,F[28]=E):E=F[28],F[29]!==U||F[30]!==o||F[31]!==K||F[32]!==q?(j=!U&&o&&(0,n.jsx)(tk,{padding:q,children:(0,n.jsxs)(eo,{size:K,children:[(0,a.isValidElement)(o)&&o,(0,d.isValidElementType)(o)&&(0,n.jsx)(o,{})]})}),F[29]=U,F[30]=o,F[31]=K,F[32]=q,F[33]=j):j=F[33],F[34]!==en||F[35]!==er||F[36]!==l||F[37]!==J||F[38]!==Y.scheme||F[39]!==Y.tone||F[40]!==el||F[41]!==E||F[42]!==j?(P=(0,n.jsxs)(tS,{$hasPrefix:en,$unstableDisableFocusRing:l,$hasSuffix:er,$radius:J,$scheme:Y.scheme,$tone:Y.tone,"data-border":el,"data-scheme":Y.scheme,"data-tone":Y.tone,children:[E,j]}),F[34]=en,F[35]=er,F[36]=l,F[37]=J,F[38]=Y.scheme,F[39]=Y.tone,F[40]=el,F[41]=E,F[42]=j,F[43]=P):P=F[43];let ed=P;F[44]!==q?(A=q.map(_temp2),F[44]=q,F[45]=A):A=F[45];let es=A;F[46]!==q?(I=q.map(_temp3),F[46]=q,F[47]=I):I=F[47];let ec=I,eu="object"==typeof c?c:w;F[48]!==c||F[49]!==es||F[50]!==ec||F[51]!==eu||F[52]!==u||F[53]!==G||F[54]!==K||F[55]!==ei||F[56]!==J||F[57]!==m?(T=!G&&!m&&c&&(0,n.jsx)(tC,{forwardedAs:"span",padding:es,style:tb,tone:u?"critical":"inherit",children:(0,n.jsx)(t_,{"aria-label":"Clear","data-qa":"clear-button",fontSize:K,icon:s.Two,mode:"bleed",padding:ec,radius:J,...eu,onClick:ei,onMouseDown:_temp$1})}),F[48]=c,F[49]=es,F[50]=ec,F[51]=eu,F[52]=u,F[53]=G,F[54]=K,F[55]=ei,F[56]=J,F[57]=m,F[58]=T):T=F[58];let ep=T;F[59]!==J||F[60]!==g?(N=g&&(0,n.jsx)(tx,{borderTop:!0,borderRight:!0,borderBottom:!0,radius:J,sizing:"border",tone:"inherit",children:(0,n.jsx)("span",{children:g})}),F[59]=J,F[60]=g,F[61]=N):N=F[61];let ef=N,em=et||U;return F[62]!==ee||F[63]!==G||F[64]!==K||F[65]!==q||F[66]!==m||F[67]!==h||F[68]!==Y.scheme||F[69]!==Y.tone||F[70]!==Z||F[71]!==em||F[72]!==W||F[73]!==k?(M=(0,n.jsx)(t$,{"data-as":"input","data-scheme":Y.scheme,"data-tone":Y.tone,...h,$fontSize:K,$iconLeft:ee,$iconRight:em,$padding:q,$scheme:Y.scheme,$space:Z,$tone:Y.tone,$weight:k,disabled:G,readOnly:m,ref:X,type:W}),F[62]=ee,F[63]=G,F[64]=K,F[65]=q,F[66]=m,F[67]=h,F[68]=Y.scheme,F[69]=Y.tone,F[70]=Z,F[71]=em,F[72]=W,F[73]=k,F[74]=M):M=F[74],F[75]!==ep||F[76]!==ed||F[77]!==M?(L=(0,n.jsxs)(ty,{children:[M,ed,ep]}),F[75]=ep,F[76]=ed,F[77]=M,F[78]=L):L=F[78],F[79]!==ea||F[80]!==Y.tone||F[81]!==ef||F[82]!==L?(B=(0,n.jsxs)(tv,{"data-ui":"TextInput",tone
972:Y.tone,children:[ea,L,ef]}),F[79]=ea,F[80]=Y.tone,F[81]=ef,F[82]=L,F[83]=B):B=F[83],B});function _temp$1(e){e.preventDefault(),e.stopPropagation()}function _temp2(e){return 0===e?0:1===e||2===e?1:e-2}function _temp3(e){return 0===e||1===e?0:2===e?1:e-1}function useDelayedState(e){let t,r;let o=(0,i.c)(3),[n,l]=(0,a.useState)(e),d=(0,a.useRef)(void 0);o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>{let action=()=>{l(e)};if(d.current&&(clearTimeout(d.current),d.current=void 0),!t)return action();d.current=setTimeout(action,t)},o[0]=t):t=o[0];let s=t;return o[1]!==n?(r=[n,s],o[1]=n,o[2]=r):r=o[2],r}tz.displayName="ForwardRef(TextInput)";let tE={top:["top-end","top-start","bottom","left","right"],"top-start":["top","top-end","bottom-start","left-start","right-start"],"top-end":["top","top-start","bottom-end","left-end","right-end"],bottom:["bottom-end","bottom-start","top","left","right"],"bottom-start":["bottom","bottom-end","top-start","left-start","right-start"],"bottom-end":["bottom","bottom-start","top-end","left-end","right-end"],left:["left-end","left-start","right","top","bottom"],"left-start":["left","left-end","right-start","top-start","bottom-start"],"left-end":["left","left-start","right-end","top-end","bottom-end"],right:["right-end","right-start","left","top","bottom"],"right-start":["right","right-end","left-start","top-start","bottom-start"],"right-end":["right","right-start","left-end","top-end","bottom-end"]},tj=(0,l.zo)(p.E.create(eh)).withConfig({displayName:"MotionCard",componentId:"sc-1xn138w-0"})`will-change:transform;`,tP=(0,a.memo)((0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p,f,m,h,g,b,v,y,w,$,S,R,k,C;let _=(0,i.c)(48);_[0]!==e?({animate:r,arrow:o,arrowRef:a,arrowX:l,arrowY:d,children:s,originX:c,originY:u,padding:p,placement:f,radius:m,scheme:g,shadow:b,style:v,...h}=e,_[0]=e,_[1]=r,_[2]=o,_[3]=a,_[4]=l,_[5]=d,_[6]=s,_[7]=c,_[8]=u,_[9]=p,_[10]=f,_[11]=m,_[12]=h,_[13]=g,_[14]=b,_[15]=v):(r=_[1],o=_[2],a=_[3],l=_[4],d=_[5],s=_[6],c=_[7],u=_[8],p=_[9],f=_[10],m=_[11],h=_[12],g=_[13],b=_[14],v=_[15]);let z=r?"transform":void 0;_[16]!==c||_[17]!==u||_[18]!==v||_[19]!==z?(y={originX:c,originY:u,willChange:z,...v},_[16]=c,_[17]=u,_[18]=v,_[19]=z,_[20]=y):y=_[20];let E=y,j=null!==l?l:void 0,P=null!==d?d:void 0;_[21]!==j||_[22]!==P?(w={left:j,top:P,right:void 0,bottom:void 0},_[21]=j,_[22]=P,_[23]=w):w=_[23];let A=w,I=h;return _[24]!==r?($=r?["hidden","initial"]:void 0,_[24]=r,_[25]=$):$=_[25],_[26]!==r?(S=r?["visible","scaleIn"]:void 0,_[26]=r,_[27]=S):S=_[27],_[28]!==r?(R=r?["hidden","scaleOut"]:void 0,_[28]=r,_[29]=R):R=_[29],_[30]!==o||_[31]!==a||_[32]!==A?(k=o&&(0,n.jsx)(eL,{ref:a,style:A,width:15,height:6,radius:2}),_[30]=o,_[31]=a,_[32]=A,_[33]=k):k=_[33],_[34]!==s||_[35]!==p||_[36]!==f||_[37]!==m||_[38]!==t||_[39]!==E||_[40]!==g||_[41]!==b||_[42]!==I||_[43]!==$||_[44]!==S||_[45]!==R||_[46]!==k?(C=(0,n.jsxs)(tj,{"data-ui":"Tooltip__card",...I,"data-placement":f,padding:p,radius:m,ref:t,scheme:g,shadow:b,style:E,variants:x.card,transition:x.transition,initial:$,animate:S,exit:R,children:[s,k]}),_[34]=s,_[35]=p,_[36]=f,_[37]=m,_[38]=t,_[39]=E,_[40]=g,_[41]=b,_[42]=I,_[43]=$,_[44]=S,_[45]=R,_[46]=k,_[47]=C):C=_[47],C}));tP.displayName="Memo(ForwardRef(TooltipCard))";let tA=createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup",null);function TooltipDelayGroupProvider(e){let t,r;let o=(0,i.c)(9),{children:a,delay:l}=e,[d,s]=useDelayedState(!1),[c,u]=useDelayedState(null),p="number"==typeof l?l:l?.open||0,f="number"==typeof l?l:l?.close||0,m=d?1:p;o[0]!==f||o[1]!==c||o[2]!==s||o[3]!==u||o[4]!==m?(t={setIsGroupActive:s,openTooltipId:c,setOpenTooltipId:u,openDelay:m,closeDelay:f},o[0]=f,o[1]=c,o[2]=s,o[3]=u,o[4]=m,o[5]=t):t=o[5];let h=t;return o[6]!==a||o[7]!==h?(r=(0,n.jsx)(tA.Provider,{value:h,children:a}),o[6]=a,o[7]=h,o[8]=r):r=o[8],r}TooltipDelayGroupProvider.displayName="TooltipDelayGroupProvider";let tI=(0,l.zo)(eD).withConfig({displayName:"StyledTooltip",componentId:"sc-13f2zvh-0"})`pointer-events:none;`,tT=(0,a.forwardRef)(function(e,t){let r=useBoundaryElement(),{layer:o}=useTheme_v2(),{animate:l=!1,arrow:d=!1,boundaryElement:s=r?.element,children:p,content:m,disabled:h,fallbackPlacements:b=e.fallbackPlacements??tE[e.placement??"bottom"],padding:v=2,placement:y="bottom",portal:w,radius:x=2,scheme:$,shadow:S=2,zOffset:R=o.tooltip.zOffset,delay:k,...C}
972=e,_=!usePrefersReducedMotion()&&l,z=useArrayProp(b),E=(0,a.useRef)(null),[j,P]=(0,a.useState)(null),A=(0,a.useRef)(null),I="viewport",[T,N]=(0,a.useState)(0);(0,a.useImperativeHandle)(t,()=>E.current);let M=usePortal(),L="string"==typeof w?M.elements?.[w]||null:M.element,B=(0,a.useMemo)(()=>{let e=[];return e.push((0,u.RR)({boundary:s||void 0,fallbackPlacements:z,padding:4,rootBoundary:I})),e.push((0,u.cv)({mainAxis:4})),e.push((0,u.uY)({boundary:s||void 0,rootBoundary:I,padding:4})),d&&e.push((0,u.x7)({element:A,padding:4})),_&&e.push(eI),e},[_,d,s,z]),{floatingStyles:F,placement:O,middlewareData:G,refs:H,update:Q}=(0,u.YF)({middleware:B,placement:y,whileElementsMounted:c.Me,elements:{reference:j}}),D=G.arrow?.x,V=G.arrow?.y,W=G["@sanity/ui/origin"]?.originX,X=G["@sanity/ui/origin"]?.originY,Y=(0,a.useId)(),[K,q]=useDelayedState(!1),J=(0,a.useContext)(tA),{setIsGroupActive:Z,setOpenTooltipId:U}=J||{},ee=K||J?.openTooltipId===Y,et=null!==J,er="number"==typeof k?k:k?.open||0,eo="number"==typeof k?k:k?.close||0,en=et?J.openDelay:er,ei=et?J.closeDelay:eo,ea=(0,a.useCallback)((e,t)=>{if(et){if(e){let r=t?0:en;Z?.(e,r),U?.(Y,r)}else{let r=ei>200?ei:200;Z?.(e,r),U?.(null,t?0:ei)}}else q(e,t?0:e?en:ei)},[et,en,Z,U,Y,ei,q]),el=(0,a.useCallback)(e=>{ea(!1),p?.props?.onBlur?.(e)},[p?.props,ea]),ed=(0,a.useCallback)(e=>{ea(!1,!0),p?.props.onClick?.(e)},[p?.props,ea]),es=(0,a.useCallback)(e=>{ea(!1,!0),p?.props.onContextMenu?.(e)},[p?.props,ea]),ec=(0,a.useCallback)(e=>{ea(!0),p?.props?.onFocus?.(e)},[p?.props,ea]),eu=(0,a.useCallback)(e=>{ea(!0),p?.props?.onMouseEnter?.(e)},[p?.props,ea]),ep=(0,a.useCallback)(e=>{ea(!1),p?.props?.onMouseLeave?.(e)},[p?.props,ea]);(function(e){let t,r,o;let n=(0,i.c)(10),{handleIsOpenChange:l,referenceElement:d,showTooltip:s,isInsideGroup:c}=e;n[0]!==l||n[1]!==d?(t=(e,t)=>{d&&(d===e||e instanceof Node&&d.contains(e)||(l(!1),t()))},n[0]=l,n[1]=d,n[2]=t):t=n[2];let u=(0,g.i)(t);n[3]!==c||n[4]!==u||n[5]!==s?(r=()=>{if(!s||c)return;let handleMouseMove=e=>{u(e.target,()=>window.removeEventListener("mousemove",handleMouseMove))};return window.addEventListener("mousemove",handleMouseMove),()=>window.removeEventListener("mousemove",handleMouseMove)},n[3]=c,n[4]=u,n[5]=s,n[6]=r):r=n[6],n[7]!==c||n[8]!==s?(o=[c,s],n[7]=c,n[8]=s,n[9]=o):o=n[9],(0,a.useEffect)(r,o)})({handleIsOpenChange:ea,referenceElement:j,showTooltip:ee,isInsideGroup:et}),(0,a.useEffect)(()=>{h&&ee&&ea(!1)},[h,ea,ee]),(0,a.useEffect)(()=>{!m&&ee&&ea(!1)},[m,ea,ee]),(0,a.useEffect)(()=>{if(ee)return window.addEventListener("keydown",handleWindowKeyDown),()=>{window.removeEventListener("keydown",handleWindowKeyDown)};function handleWindowKeyDown(e){"Escape"===e.key&&ea(!1,!0)}},[ea,ee]),(0,a.useLayoutEffect)(()=>{let e=[...s?[s.offsetWidth]:[],L?.offsetWidth||document.body.offsetWidth];N(Math.min(...e)-8)},[s,L]);let ef=(0,a.useCallback)(e=>{A.current=e,Q()},[Q]),em=(0,a.useCallback)(e=>{E.current=e,H.setFloating(e)},[H]),eh=(0,a.useMemo)(()=>p?(0,a.cloneElement)(p,{onBlur:el,onFocus:ec,onMouseEnter:eu,onMouseLeave:ep,onClick:ed,onContextMenu:es,ref:P}):null,[p,el,ed,es,ec,eu,ep]);if((0,a.useImperativeHandle)(p?getElementRef(p):null,()=>j,[j]),!eh)return(0,n.jsx)(n.Fragment,{});if(h)return eh;let eg=(0,n.jsx)(tI,{"data-ui":"Tooltip",...C,ref:em,style:{...F,maxWidth:T>0?`${T}px`:void 0},zOffset:R,children:(0,n.jsx)(tP,{...C,animate:_,arrow:d,arrowRef:ef,arrowX:D,arrowY:V,originX:W,originY:X,padding:v,placement:O,radius:x,ref:em,scheme:$,shadow:S,children:m})}),eb=ee&&(w?(0,n.jsx)(Portal,{__unstable_name:"string"==typeof w?w:void 0,children:eg}):eg);return(0,n.jsxs)(n.Fragment,{children:[_?(0,n.jsx)(f.M,{children:eb}):eb,eh]})});tT.displayName="ForwardRef(Tooltip)";let tN=l.zo.kbd.withConfig({displayName:"StyledHotkeys",componentId:"sc-b37mge-0"})`font:inherit;padding:1px;&:not([hidden]){display:block;}`,tM=(0,l.zo)(eA).withConfig({displayName:"Key",componentId:"sc-b37mge-1"})`&:not([hidden]){display:block;}`,tL=(0,a.forwardRef)(function(e,t){let r,o,a,l,d,s,c,u,p;let f=(0,i.c)(24);f[0]!==e?({fontSize:r,keys:o,padding:a,radius:l,space:s,...d}=e,f[0]=e,f[1]=r,f[2]=o,f[3]=a,f[4]=l,f[5]=d,f[6]=s):(r=f[1],o=f[2],a=f[3],l=f[4],d=f[5],s=f[6]);let m=useArrayProp(void 0===s?.5:s);if(!o||0===o.length){let e;return f[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)(n.Fragment,{}
972),f[7]=e):e=f[7],e}if(f[8]!==r||f[9]!==o||f[10]!==a||f[11]!==l){let e;f[13]!==r||f[14]!==a||f[15]!==l?(e=(e,t)=>(0,n.jsx)(tM,{fontSize:r,padding:a,radius:l,children:e},t),f[13]=r,f[14]=a,f[15]=l,f[16]=e):e=f[16],c=o.map(e),f[8]=r,f[9]=o,f[10]=a,f[11]=l,f[12]=c}else c=f[12];return f[17]!==m||f[18]!==c?(u=(0,n.jsx)(ej,{as:"span",space:m,children:c}),f[17]=m,f[18]=c,f[19]=u):u=f[19],f[20]!==t||f[21]!==d||f[22]!==u?(p=(0,n.jsx)(tN,{"data-ui":"Hotkeys",...d,ref:t,children:u}),f[20]=t,f[21]=d,f[22]=u,f[23]=p):p=f[23],p});tL.displayName="ForwardRef(Hotkeys)";let tB=createGlobalScopedContext("@sanity/ui/context/menu",null);function _isFocusable(e){return isHTMLAnchorElement(e)&&"true"!==e.getAttribute("data-disabled")||isHTMLButtonElement(e)&&!e.disabled}function _getFocusableElements(e){return e.filter(_isFocusable)}let tF=[],tO=(0,l.zo)(et).withConfig({displayName:"StyledMenu",componentId:"sc-xt0tnv-0"})`outline:none;overflow:auto;`,tG=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f,m,h,g,b,v,y,w,x,$,S,R,k,C,_;let z=(0,i.c)(50);if(z[0]!==e){let{children:t,focusFirst:n,focusLast:i,onClickOutside:a,onEscape:b,onItemClick:v,onItemSelect:y,onKeyDown:w,originElement:x,padding:$,registerElement:S,shouldFocus:R,space:k,...C}=e;o=t,l=a,d=b,s=v,c=y,u=w,p=x,h=$,f=S,r=R,g=k,m=C,z[0]=e,z[1]=r,z[2]=o,z[3]=l,z[4]=d,z[5]=s,z[6]=c,z[7]=u,z[8]=p,z[9]=f,z[10]=m,z[11]=h,z[12]=g}else r=z[1],o=z[2],l=z[3],d=z[4],s=z[5],c=z[6],u=z[7],p=z[8],f=z[9],m=z[10],h=z[11],g=z[12];let E=void 0===h?1:h,j=void 0===g?1:g,P=r??(e.focusFirst&&"first"||e.focusLast&&"last"||null),A=(0,a.useRef)(null);z[13]===Symbol.for("react.memo_cache_sentinel")?(b=()=>A.current,z[13]=b):b=z[13],(0,a.useImperativeHandle)(t,b);let{isTopLayer:I}=useLayer();z[14]!==u||z[15]!==p||z[16]!==P?(v={onKeyDown:u,originElement:p,shouldFocus:P,rootElementRef:A},z[14]=u,z[15]=p,z[16]=P,z[17]=v):v=z[17];let{activeElement:T,activeIndex:N,handleItemMouseEnter:M,handleItemMouseLeave:L,handleKeyDown:B,mount:F}=function(e){let{onKeyDown:t,originElement:r,shouldFocus:o,rootElementRef:n}=e,i=(0,a.useRef)([]),[l,d]=(0,a.useState)(-1),s=(0,a.useRef)(l),c=(0,a.useMemo)(()=>i.current[l]||null,[l]),u=!!n.current,p=(0,a.useCallback)(e=>{d(e),s.current=e},[]),f=(0,a.useCallback)((e,t)=>{if(!e)return()=>{};if(-1===i.current.indexOf(e)&&(i.current.push(e),function(e,t){if(!e)return;let r=new WeakMap;for(let o of t)r.set(o,function(e,t){let r=[],o=t;for(;o!==e;){let t=o.parentElement;if(!t)break;let n=Array.from(t.childNodes).indexOf(o);if(r.unshift(n),t===e)break;o=t}return r}(e,o));t.sort((e,t)=>{let o=r.get(e)||tF,n=r.get(t)||tF,i=Math.max(o.length,n.length);for(let e=0;e<i;e+=1){let t=o[e]||-1,r=n[e]||-1;if(t!==r)return t-r}return 0})}(n.current,i.current)),t){let t=i.current.indexOf(e);p(t)}return()=>{let t=i.current.indexOf(e);t>-1&&i.current.splice(t,1)}},[n,p]),m=(0,a.useCallback)(e=>{if("Tab"===e.key){r&&r.focus();return}if("Home"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current)[0];if(!t)return;let r=i.current.indexOf(t);p(r);return}if("End"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current),r=t[t.length-1];if(!r)return;let o=i.current.indexOf(r);p(o);return}if("ArrowUp"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current),r=t.length;if(0===r)return;let o=i.current[s.current],n=t.indexOf(o);n=(n-1+r)%r;let a=t[n],l=i.current.indexOf(a);p(l);return}if("ArrowDown"===e.key){e.preventDefault(),e.stopPropagation();let t=_getFocusableElements(i.current),r=t.length;if(0===r)return;let o=i.current[s.current],n=t.indexOf(o);n=(n+1)%r;let a=t[n],l=i.current.indexOf(a);p(l);return}t&&t(e)},[t,r,p]),h=(0,a.useCallback)(e=>{let t=e.currentTarget,r=i.current.indexOf(t);p(r)},[p]),g=(0,a.useCallback)(()=>{p(-2),n.current?.focus()},[n,p]);return(0,a.useEffect)(()=>{if(!u)return;let e=requestAnimationFrame(()=>{if(-1===l){if("first"===o){let e=_getFocusableElements(i.current)[0];if(e){let t=i.current.indexOf(e);p(t)}}if("last"===o){let e=_getFocusableElements(i.current),t=e[e.length-1];if(t){let e=i.current.indexOf(t);p(e)}}return}(i.current[l]||null)?.focus()});return()=>cancelAnimationFrame(e)},[l,u,p,o]),{activeElement:c,activeIndex:l,handleItemMouseEnter:h,handleItemMouseLeave:g,handleKeyDown:m,mount:f}}(v),O=(0,a.useRef)(null);z[18]!==f?(y=e=>{O.current&&(O.current(),O.current=null),A.current=e,A.current&&f&&(O.current=f(A.current))},z[18]=f,z[19]=y):y=z[19];let G=y;z[20]!==N||z[21]!==c?(w=()=>{c&&c(N)},x=[N,c],z[20]=N,z[21]=c,z[22]=w,z[23]=x):(w=z[22],x=z[23]),(0,a.useEffect)(w,x),z[24]===Symbol.for("react.memo_cache_sentinel")?($=()=>[A.current],z[24]=$):$=z[24],useClickOutsideEvent(I&&l,$),z[25]!==I||z[26]!==d?(S=e=>{I&&"Escape"===e.key&&(e.stopPropagation(),d&&d())},z[25]=I,z[26]=d,z[27]=S):S=z[27],useGlobalKeyDown(S),z[28]!==T||z[29]!==N||z[30]!==M||z[31]!==L||z[32]!==F||z[33]!==l||z[34]!==d||z[35]!==s||z[36]!==f?(R={version:0,activeElement:T,activeIndex:N,mount:F,onClickOutside:l,onEscape:d,onItemClick:s,onItemMouseEnter:M,onItemMouseLeave:L,registerElement:f,onMouseEnter:M,onMouseLeave:L},z[28]=T,z[29]=N,z[30]=M,z[31]=L,z[32]=F,z[33]=l,z[34]=d,z[35]=s,z[36]=f,z[37]=R):R=z[37];let H=R;return z[38]!==o||z[39]!==j?(k=(0,n.jsx)(ti,{space:j,children:o}),z[38]=o,z[39]=j,z[40]=k):k=z[40],z[41]!==B||z[42]!==G||z[43]!==E||z[44]!==m||z[45]!==k?(C=(0,n.jsx)(tO,{"data-ui":"Menu",...m,onKeyDown:B,padding:E,ref:G,role:"menu",tabIndex:-1,
972children:k}),z[41]=B,z[42]=G,z[43]=E,z[44]=m,z[45]=k,z[46]=C):C=z[46],z[47]!==C||z[48]!==H?(_=(0,n.jsx)(tB.Provider,{value:H,children:C}),z[47]=C,z[48]=H,z[49]=_):_=z[49],_});tG.displayName="ForwardRef(Menu)";let tH=l.zo.hr.withConfig({displayName:"MenuDivider",componentId:"sc-uhoxwu-0"})`height:1px;border:0;background:var(--card-hairline-soft-color);margin:0;`;tH.displayName="MenuDivider";let tQ=(0,l.zo)(et).withConfig({displayName:"Selectable",componentId:"sc-1w01ang-0"})(responsiveRadiusStyle,function(){return l.iv`
973    background-color: inherit;
974    color: inherit;
975
976    &[data-as='button'] {
977      -webkit-font-smoothing: inherit;
978      appearance: none;
979      outline: none;
980      font: inherit;
981      text-align: inherit;
982      border: 0;
983      width: -moz-available;
984      width: -webkit-fill-available;
985      width: stretch;
986    }
987
988    /* &:is(a) */
989    &[data-as='a'] {
990      text-decoration: none;
991    }
992  `},function(e){let{$tone:t}=e,{color:r,style:n}=(0,o.aQ)(e.theme),i=r.selectable[t];return l.iv`
993    ${_cardColorStyle(r,i.enabled)}
994
995    background-color: var(--card-bg-color);
996    color: var(--card-fg-color);
997    outline: none;
998
999    /* &:is(button) */
1000    &[data-as='button'] {
1001      &:disabled {
1002        ${_cardColorStyle(r,i.disabled)}
1003      }
1004
1005      &:not(:disabled) {
1006        &[aria-pressed='true'] {
1007          ${_cardColorStyle(r,i.pressed)}
1008        }
1009
1010        &[data-selected],
1011        &[aria-selected='true'] > & {
1012          ${_cardColorStyle(r,i.selected)}
1013        }
1014
1015        @media (hover: hover) {
1016          &:not([data-selected]) {
1017            &[data-hovered],
1018            &:hover {
1019              ${_cardColorStyle(r,i.hovered)}
1020            }
1021
1022            &:active {
1023              ${_cardColorStyle(r,i.pressed)}
1024            }
1025          }
1026        }
1027      }
1028    }
1029
1030    /* &:is(a) */
1031    &[data-as='a'] {
1032      &[data-disabled] {
1033        ${_cardColorStyle(r,i.disabled)}
1034      }
1035
1036      &:not([data-disabled]) {
1037        &[data-pressed] {
1038          ${_cardColorStyle(r,i.pressed)}
1039        }
1040
1041        &[data-selected] {
1042          ${_cardColorStyle(r,i.selected)}
1043        }
1044
1045        @media (hover: hover) {
1046          &:not([data-selected]) {
1047            &[data-hovered],
1048            &:hover {
1049              ${_cardColorStyle(r,i.hovered)}
1050            }
1051            &:active {
1052              ${_cardColorStyle(r,i.pressed)}
1053            }
1054          }
1055        }
1056      }
1057    }
1058
1059    ${n?.card?.root}
1060  `});function useMenu(){let e=(0,a.useContext)(tB);if(!e)throw Error("useMenu(): missing context value");if(!isRecord(e)||0!==e.version)throw Error("useMenu(): the context value is not compatible");return e}function MenuGroup(e){let t,r,o,l,c,u,p,f,m,h,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,P,A,I,T,N,M,L,B,F,O;let G=(0,i.c)(79);G[0]!==e?({as:p,children:r,fontSize:f,icon:t,menu:o,onClick:l,padding:m,popover:c,radius:h,space:g,text:v,tone:b,...u}=e,G[0]=e,G[1]=t,G[2]=r,G[3]=o,G[4]=l,G[5]=c,G[6]=u,G[7]=p,G[8]=f,G[9]=m,G[10]=h,G[11]=g,G[12]=b,G[13]=v):(t=G[1],r=G[2],o=G[3],l=G[4],c=G[5],u=G[6],p=G[7],f=G[8],m=G[9],h=G[10],g=G[11],b=G[12],v=G[13]);let H=void 0===p?"button":p,Q=void 0===f?1:f,D=void 0===m?3:m,V=void 0===h?2:h,W=void 0===g?3:g,X=void 0===b?"default":b,Y=useMenu(),{scheme:K}=useRootTheme(),{activeElement:q,mount:J,onClickOutside:Z,onEscape:U,onItemClick:ee,onItemMouseEnter:er,registerElement:en}=Y,ei=er??Y.onMouseEnter,[ea,ed]=(0,a.useState)(null),[es,ec]=(0,a.useState)(!1),[eu,ep]=(0,a.useState)(null),ef=!!q&&q===ea,[em,eh]=(0,a.useState)(!1);G[14]!==ei?(y=e=>{eh(!1),ei(e),ec(!0)},G[14]=ei,G[15]=y):y=G[15];let eg=y;G[16]!==ea?(w=e=>{"ArrowLeft"===e.key&&(e.stopPropagation(),ec(!1),requestAnimationFrame(()=>{ea?.focus()}))},G[16]=ea,G[17]=w):w=G[17];let eb=w;G[18]!==l?(x=e=>{l?.(e),ep("first"),ec(!0)},G[18]=l,G[19]=x):x=G[19];let ev=x;G[20]!==ee?($=()=>{ec(!1),ee?.()},G[20]=ee,G[21]=$):$=G[21];let ey=$;G[22]===Symbol.for("react.memo_cache_sentinel")?(S=()=>eh(!0),G[22]=S):S=G[22];let ew=S;G[23]!==J||G[24]!==ea?(R=()=>J(ea),k=[J,ea],G[23]=J,G[24]=ea,G[25]=R,G[26]=k):(R=G[25],k=G[26]),(0,a.useEffect)(R,k),G[27]!==ef?(C=()=>{ef||ec(!1)},_=[ef],G[27]=ef,G[28]=C,G[29]=_):(C=G[28],_=G[29]),(0,a.useEffect)(C,_),G[30]!==es?(z=()=>{es||eh(!1)},E=[es],G[30]=es,G[31]=z,G[32]=E):(z=G[31],E=G[32]),(0,a.useEffect)(z,E),G[33]!==eu?(j=()=>
1060{if(!eu)return;let e=requestAnimationFrame(()=>ep(null));return()=>cancelAnimationFrame(e)},P=[eu],G[33]=eu,G[34]=j,G[35]=P):(j=G[34],P=G[35]),(0,a.useEffect)(j,P),G[36]!==r||G[37]!==ey||G[38]!==eb||G[39]!==o||G[40]!==Z||G[41]!==U||G[42]!==en||G[43]!==eu?(A=(0,n.jsx)(tG,{...o,onClickOutside:Z,onEscape:U,onItemClick:ey,onKeyDown:eb,onMouseEnter:ew,registerElement:en,shouldFocus:eu,children:r}),G[36]=r,G[37]=ey,G[38]=eb,G[39]=o,G[40]=Z,G[41]=U,G[42]=en,G[43]=eu,G[44]=A):A=G[44];let ex=A;G[45]===Symbol.for("react.memo_cache_sentinel")?(I=e=>{let t=e.currentTarget;if(document.activeElement===t&&"ArrowRight"===e.key){ep("first"),ec(!0),eh(!0);return}},G[45]=I):I=G[45];let e$=I,eS="button"===H?em:void 0,eR="button"!==H?em:void 0,ek=!em&&ef?"":void 0,eC=useArrayProp(V),e_="button"===H?"button":void 0;return G[46]!==t||G[47]!==Q?(T=t&&(0,n.jsxs)(eo,{size:Q,children:[(0,a.isValidElement)(t)&&t,(0,d.isValidElementType)(t)&&(0,n.jsx)(t,{})]}),G[46]=t,G[47]=Q,G[48]=T):T=G[48],G[49]!==Q||G[50]!==v?(N=(0,n.jsx)(et,{flex:1,children:(0,n.jsx)(eo,{size:Q,textOverflow:"ellipsis",weight:"medium",children:v})}),G[49]=Q,G[50]=v,G[51]=N):N=G[51],G[52]===Symbol.for("react.memo_cache_sentinel")?(M=(0,n.jsx)(s.XCv,{}),G[52]=M):M=G[52],G[53]!==Q?(L=(0,n.jsx)(eo,{size:Q,children:M}),G[53]=Q,G[54]=L):L=G[54],G[55]!==D||G[56]!==W||G[57]!==T||G[58]!==N||G[59]!==L?(B=(0,n.jsxs)(el,{gap:W,padding:D,children:[T,N,L]}),G[55]=D,G[56]=W,G[57]=T,G[58]=N,G[59]=L,G[60]=B):B=G[60],G[61]!==H||G[62]!==ev||G[63]!==eg||G[64]!==u||G[65]!==K||G[66]!==eS||G[67]!==eR||G[68]!==ek||G[69]!==eC||G[70]!==e_||G[71]!==B||G[72]!==X?(F=(0,n.jsx)(tQ,{"data-as":H,"data-ui":"MenuGroup",forwardedAs:H,...u,"aria-pressed":eS,"data-pressed":eR,"data-selected":ek,$radius:eC,$tone:X,$scheme:K,onClick:ev,onKeyDown:e$,onMouseEnter:eg,ref:ed,tabIndex:-1,type:e_,children:B}),G[61]=H,G[62]=ev,G[63]=eg,G[64]=u,G[65]=K,G[66]=eS,G[67]=eR,G[68]=ek,G[69]=eC,G[70]=e_,G[71]=B,G[72]=X,G[73]=F):F=G[73],G[74]!==ex||G[75]!==es||G[76]!==c||G[77]!==F?(O=(0,n.jsx)(e4,{...c,content:ex,"data-ui":"MenuGroup__popover",open:es,children:F}),G[74]=ex,G[75]=es,G[76]=c,G[77]=F,G[78]=O):O=G[78],O}tQ.displayName="Selectable",MenuGroup.displayName="MenuGroup";let tD=(0,a.forwardRef)(function(e,t){let r,o,l,s,c,u,p,f,m,h,g,b,v,y,w,x,$,S,R,k,C,_,z,E,j,P,A,I,T,N,M,L;let B=(0,i.c)(73);B[0]!==e?({as:x,children:l,disabled:s,fontSize:$,hotkeys:c,icon:r,iconRight:o,onClick:u,padding:S,paddingX:g,paddingY:b,paddingTop:h,paddingRight:m,paddingBottom:p,paddingLeft:f,pressed:v,radius:R,selected:w,space:k,text:_,tone:C,...y}=e,B[0]=e,B[1]=r,B[2]=o,B[3]=l,B[4]=s,B[5]=c,B[6]=u,B[7]=p,B[8]=f,B[9]=m,B[10]=h,B[11]=g,B[12]=b,B[13]=v,B[14]=y,B[15]=w,B[16]=x,B[17]=$,B[18]=S,B[19]=R,B[20]=k,B[21]=C,B[22]=_):(r=B[1],o=B[2],l=B[3],s=B[4],c=B[5],u=B[6],p=B[7],f=B[8],m=B[9],h=B[10],g=B[11],b=B[12],v=B[13],y=B[14],w=B[15],x=B[16],$=B[17],S=B[18],R=B[19],k=B[20],C=B[21],_=B[22]);let F=void 0===x?"button":x,O=void 0===$?1:$,G=void 0===S?3:S,H=void 0===R?2:R,Q=void 0===k?3:k,D=void 0===C?"default":C,{scheme:V}=useRootTheme(),W=useMenu(),{activeElement:X,mount:Y,onItemClick:K,onItemMouseEnter:q,onItemMouseLeave:J}=W,Z=q??W.onMouseEnter,U=J??W.onMouseLeave,[ee,er]=(0,a.useState)(null),en=!!X&&X===ee,ei=(0,a.useRef)(null);B[23]===Symbol.for("react.memo_cache_sentinel")?(z=()=>ei.current,B[23]=z):z=B[23],(0,a.useImperativeHandle)(t,z),B[24]!==Y||B[25]!==ee||B[26]!==w?(E=()=>Y(ee,w),j=[Y,ee,w],B[24]=Y,B[25]=ee,B[26]=w,B[27]=E,B[28]=j):(E=B[27],j=B[28]),(0,a.useEffect)(E,j),B[29]!==s||B[30]!==u||B[31]!==K?(P=e=>{s||(u&&u(e),K&&K())},B[29]=s,B[30]=u,B[31]=K,B[32]=P):P=B[32];let ea=P;B[33]!==G||B[34]!==p||B[35]!==f||B[36]!==m||B[37]!==h||B[38]!==g||B[39]!==b?(A={padding:G,paddingX:g,paddingY:b,paddingTop:h,paddingRight:m,paddingBottom:p,paddingLeft:f},B[33]=G,B[34]=p,B[35]=f,B[36]=m,B[37]=h,B[38]=g,B[39]=b,B[40]=A):A=B[40];let ed=A,es=useArrayProp(O);B[41]!==es?(I=es.map(_temp),B[41]=es,B[42]=I):I=B[42];let ec=I;B[43]===Symbol.for("react.memo_cache_sentinel")?(T=e=>{ei.current=e,er(e)},B[43]=T):T=B[43];let eu=T,ep="button"!==F&&v?"":void 0,ef=en?"":void 0,em=s?"":void 0,eh=useArrayProp(H),eg=useArrayProp(0),eb=s?"default":D,ev="button"===F?"button":void 0;return B[44]!==r||B[45]!==o||B[46]!==O||B[47]!==c||B[48]!==ec||B[49]!==ed||B[50]!==Q||B[51]!==_?(N=(r||_||o)&&(0,n.jsxs)(el,{as:"span",gap:Q,align:"center",...ed,children:[r&&(0,n.jsxs)(eo,{size:O,children:[(0,a.isValidElement)(r)&&r,(0,d.isValidElementType)(r)&&(0,n.jsx)(r,{})]}),_&&(0,n.jsx)(et,{flex:1,children:(0,n.jsx)(eo,{size:O,textOverflow:"ellipsis",weight:"medium",children:_})}),c&&(0,n.jsx)(tL,{fontSize:ec,keys:c,style:{marginTop:-4,marginBottom:-4}}),o&&(0,n.jsxs)(eo,{size:O,children:[(0,a.isValidElement)(o)&&o,(0,d.isValidElementType)(o)&&(0,n.jsx)(o,{})]})]}),B[44]=r,B[45]=o,B[46]=O,B[47]=c,B[48]=ec,B[49]=ed,B[50]=Q,B[51]=_,B[52]=N):N=B[52],B[53]!==l||B[54]!==ed?(M=l&&(0,n.jsx)(et,{as:"span",...ed,children:l}),B[53]=l,B[54]=ed,B[55]=M):M=B[55],B[56]!==F||B[57]!==s||B[58]!==ea||B[59]!==Z||B[60]!==U||B[61]!==y||B[62]!==V||B[63]!==ep||B[64]!==ef||B[65]!==em||B[66]!==eh||B[67]!==eg||B[68]!==eb||B[69]!==ev||B[70]!==N||B[71]!==M?(L=(0,n.jsxs)(tQ,{"data-ui":"MenuItem",role:"menuitem",...y,"data-pressed":ep,"data-selected":ef,"data-disabled":em,forwardedAs:F,$radiu
1060s:eh,$padding:eg,$tone:eb,$scheme:V,disabled:s,onClick:ea,onMouseEnter:Z,onMouseLeave:U,ref:eu,tabIndex:-1,type:ev,children:[N,M]}),B[56]=F,B[57]=s,B[58]=ea,B[59]=Z,B[60]=U,B[61]=y,B[62]=V,B[63]=ep,B[64]=ef,B[65]=em,B[66]=eh,B[67]=eg,B[68]=eb,B[69]=ev,B[70]=N,B[71]=M,B[72]=L):L=B[72],L});function _temp(e){return e-1}tD.displayName="ForwardRef(MenuItem)";let tV=(0,l.zo)(ef).withConfig({displayName:"CustomButton",componentId:"sc-1kns779-0"})`max-width:100%;`,tW=(0,a.forwardRef)(function(e,t){let r,o,l,d,s,c,u,p,f,m,h,g,b,v,y,w;let x=(0,i.c)(30);x[0]!==e?({icon:o,id:l,focused:r,fontSize:f,label:d,onClick:s,onFocus:c,padding:m,selected:p,...u}=e,x[0]=e,x[1]=r,x[2]=o,x[3]=l,x[4]=d,x[5]=s,x[6]=c,x[7]=u,x[8]=p,x[9]=f,x[10]=m):(r=x[1],o=x[2],l=x[3],d=x[4],s=x[5],c=x[6],u=x[7],p=x[8],f=x[9],m=x[10]);let $=void 0===f?1:f,S=void 0===m?2:m,R=(0,a.useRef)(null),k=(0,a.useRef)(!1);x[11]===Symbol.for("react.memo_cache_sentinel")?(h=()=>R.current,x[11]=h):h=x[11],(0,a.useImperativeHandle)(t,h),x[12]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{k.current=!1},x[12]=g):g=x[12];let C=g;x[13]!==c?(b=e=>{k.current=!0,c&&c(e)},x[13]=c,x[14]=b):b=x[14];let _=b;x[15]!==r?(v=()=>{r&&!k.current&&(R.current&&R.current.focus(),k.current=!0)},y=[r],x[15]=r,x[16]=v,x[17]=y):(v=x[16],y=x[17]),(0,a.useEffect)(v,y);let z=p?"true":"false",E=p?0:-1;return x[18]!==$||x[19]!==_||x[20]!==o||x[21]!==l||x[22]!==d||x[23]!==s||x[24]!==S||x[25]!==u||x[26]!==p||x[27]!==z||x[28]!==E?(w=(0,n.jsx)(tV,{"data-ui":"Tab",...u,"aria-selected":z,fontSize:$,icon:o,id:l,mode:"bleed",onClick:s,onBlur:C,onFocus:_,padding:S,ref:R,role:"tab",selected:p,tabIndex:E,text:d,type:"button"}),x[18]=$,x[19]=_,x[20]=o,x[21]=l,x[22]=d,x[23]=s,x[24]=S,x[25]=u,x[26]=p,x[27]=z,x[28]=E,x[29]=w):w=x[29],w});tW.displayName="ForwardRef(Tab)";let tX=(0,l.zo)(ej).withConfig({displayName:"CustomInline",componentId:"sc-5cm04m-0"})`& > div{display:inline-block;vertical-align:middle;max-width:100%;box-sizing:border-box;}`,tY=(0,a.forwardRef)(function(e,t){let r,o,l,d,s;let c=(0,i.c)(15);c[0]!==e?({children:r,...o}=e,c[0]=e,c[1]=r,c[2]=o):(r=c[1],o=c[2]);let[u,p]=(0,a.useState)(-1);if(c[3]!==r||c[4]!==u){let e;let t=a.Children.toArray(r).filter(a.isValidElement);c[6]!==u?(e=(e,t)=>(0,a.cloneElement)(e,{focused:u===t,key:t,onFocus:()=>p(t)}),c[6]=u,c[7]=e):e=c[7],l=t.map(e),c[3]=r,c[4]=u,c[5]=l}else l=c[5];let f=l,m=f.length;c[8]!==m?(d=e=>{"ArrowLeft"===e.key&&p(e=>(e+m-1)%m),"ArrowRight"===e.key&&p(e=>(e+1)%m)},c[8]=m,c[9]=d):d=c[9];let h=d;return c[10]!==h||c[11]!==t||c[12]!==o||c[13]!==f?(s=(0,n.jsx)(tX,{"data-ui":"TabList",...o,onKeyDown:h,ref:t,role:"tablist",children:f}),c[10]=h,c[11]=t,c[12]=o,c[13]=f,c[14]=s):s=c[14],s});tY.displayName="ForwardRef(TabList)"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.