@workday/canvas-kit-mcp 15.0.1 → 15.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -305,7 +305,7 @@ ${s}
305
305
  </svg>`,filename:"wd-icon-previous.svg",category:"Audio Visual",tags:["media","media control","previous","video"]},jne={name:"search",type:Nn.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-search" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M11 2a9 9 0 0 1 7.03 14.616l4.323 4.323a.5.5 0 0 1 0 .707l-.707.707a.5.5 0 0 1-.707 0l-4.323-4.323A9 9 0 1 1 11 2m0 2a7 7 0 1 0 0 14 7 7 0 0 0 0-14" class="wd-icon-fill"/>
306
306
  </svg>`,filename:"wd-icon-search.svg",category:"Core",tags:["magnifying","glass","mag","refine","look","hunt","seek","explore"]},Bne={name:"skip",type:Nn.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-skip" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M19.5 2a.5.5 0 0 1 .5.5v19a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-8.3L4.757 20.545A.5.5 0 0 1 4 20.117V3.883a.5.5 0 0 1 .757-.429L17 10.8V2.5a.5.5 0 0 1 .5-.5z" class="wd-icon-fill"/>
307
307
  </svg>`,filename:"wd-icon-skip.svg",category:"Audio Visual",tags:["media","media control","next","video"]},Jz={name:"x-small",type:Nn.System,svg:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="wd-icon wd-icon-x-small" viewBox="0 0 24 24" role="presentation" focusable="false"><path fill="oklch(0.3523 0 0 / 1)" d="M15.94 6.646a.5.5 0 0 1 .706 0l.707.707a.5.5 0 0 1 0 .707L13.413 12l3.94 3.939a.5.5 0 0 1 0 .707l-.707.707a.5.5 0 0 1-.707 0L12 13.413l-3.939 3.94a.5.5 0 0 1-.707 0l-.707-.707a.5.5 0 0 1 0-.707l3.94-3.94-3.94-3.94a.5.5 0 0 1 0-.706l.707-.707a.5.5 0 0 1 .707 0l3.94 3.94z" class="wd-icon-fill"/>
308
- </svg>`,filename:"wd-icon-x-small.svg",category:"Core",tags:["close","exit","X"]},K=pe({extends:Kz,vars:{color:"",accentColor:"",backgroundColor:""},base:({size:e,accentColor:t,backgroundColor:n,color:a})=>({"& svg":{width:D(e,Un.systemIcon.size.lg),height:D(e,Un.systemIcon.size.lg)},".wd-icon .wd-icon-fill":{fill:D(a,Un.systemIcon.color.fill)},".wd-icon .wd-icon-accent, & .wd-icon-accent2":{fill:D(t,D(a,Un.systemIcon.color.accent))},".wd-icon .wd-icon-background":{fill:D(n,"transparent")},"@media (prefers-contrast: more)":{".wd-icon .wd-icon-fill, .wd-icon .wd-icon-accent":{color:"currentColor",fill:"currentColor"}}}),modifiers:{}}),na=Oe("span")({displayName:"SystemIcon",Component:({accent:e,background:t,color:n,icon:a,size:r,...i},o,s)=>y.jsx(Lne,{as:s,src:a,type:Nn.System,ref:o,...at(i,K({size:One(r,Un.systemIcon.size),color:n,accentColor:e,backgroundColor:t}))})}),qne=yJ(Dl.as("span"))({position:"relative",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),Gne=Oe("span")({displayName:"ButtonLabel",Component:({children:e,...t},n,a)=>y.jsx(qne,{as:a,ref:n,...t,children:e})}),Hne=pe({base:{display:"inline-block"},modifiers:{size:{extraSmall:{[K.vars.size]:Un.systemIcon.size.xs},small:{[K.vars.size]:Un.systemIcon.size.md},medium:{[K.vars.size]:Un.systemIcon.size.md},large:{[K.vars.size]:Un.systemIcon.size.lg}}}}),Vne=Oe("span")({Component:({icon:e,size:t="medium",shouldMirrorIcon:n=!1,shouldMirrorIconInRTL:a=!1,...r},i,o)=>e===void 0?null:y.jsx(na,{ref:i,as:o,icon:e,shouldMirror:n,shouldMirrorInRTL:a,...at(r,Hne({size:t}))})}),Y={default:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),focus:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),hover:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),active:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),disabled:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius")},M=pe({vars:{background:"",border:"",boxShadowInner:"",boxShadowOuter:"",label:"",opacity:"",borderRadius:""},base:({background:e,border:t,boxShadowInner:n,boxShadowOuter:a,label:r,opacity:i,borderRadius:o})=>({fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,fontWeight:Le.bold,backgroundColor:D(Y.default.background,D(e,"transparent")),color:D(Y.default.label,D(r,R.fg.strong)),borderWidth:Q(1),borderStyle:"solid",gap:v.gap.sm,borderColor:D(Y.default.border,D(t,"transparent")),cursor:"pointer",display:"inline-flex",boxShadow:"none",alignItems:"center",justifyContent:"center",outline:`${Q(2)} transparent`,whiteSpace:"nowrap",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",borderRadius:D(Y.default.borderRadius,D(o,v.shape.full)),position:"relative",verticalAlign:"middle",overflow:"hidden",[K.vars.color]:D(Y.default.icon,R.fg.strong),transition:"box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear","&:disabled, &:disabled:active, &.disabled":{cursor:"default",boxShadow:"none",opacity:D(Y.default.opacity,D(i,ut.full))},"&:focus-visible, &.focus":{backgroundColor:D(Y.focus.background,D(e,"transparent")),borderColor:D(Y.focus.border,D(t,"transparent")),color:D(Y.focus.label,D(r,R.fg.strong)),[K.vars.color]:D(Y.focus.icon,R.fg.strong),outline:`${Q(2)} solid transparent`,outlineOffset:Q(2),boxShadow:`0 0 0 ${Q(2)} ${D(Y.focus.boxShadowInner,D(n,v.color.border.inverse.default))},0 0 0 ${Q(4)} ${D(Y.focus.boxShadowOuter,D(a,v.color.brand.focus.primary))}`},"&:hover, &.hover":{backgroundColor:D(Y.hover.background,D(e,v.color.surface.contrast.strong)),borderColor:D(Y.hover.border,D(t,"transparent")),color:D(Y.hover.label,D(r,R.fg.stronger)),[K.vars.color]:D(Y.hover.icon,R.fg.stronger)},"&:hover:active":{transitionDuration:"40ms"},"&:active, &.active":{backgroundColor:D(Y.active.background,D(e,"transparent")),borderColor:D(Y.active.border,D(t,"transparent")),color:D(Y.active.label,D(r,R.fg.strong)),[K.vars.color]:D(Y.active.icon,R.fg.strong)},"&:disabled, &.disabled":{backgroundColor:D(Y.disabled.background,D(e,"transparent")),borderColor:D(Y.disabled.border,D(t,"transparent")),color:D(Y.disabled.label,D(r,R.fg.strong)),[K.vars.color]:D(Y.disabled.icon,"currentColor")},"@media (prefers-contrast: more)":{'&[aria-pressed="true"]':{outline:`${Q(2)} solid transparent`,outlineOffset:`-${Q(1)}`},'&[aria-pressed="true"]:focus-visible, &[aria-pressed="true"].focus':{outline:`${Q(4)} double transparent`,outlineOffset:0}},svg:{pointerEvents:"none"}}),modifiers:{size:{large:{fontSize:v.fontSize.body.sm,lineHeight:v.lineHeight.body.sm,letterSpacing:v.letterSpacing.body.sm,height:v.size.lg,paddingInline:v.padding.xxl,minWidth:Qe.size1400},medium:{fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,minWidth:Qe.size1200,paddingInline:v.padding.xl,height:v.size.md},small:{fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,height:v.size.sm,minWidth:Qe.size1000,paddingInline:v.padding.md,gap:v.gap.xs},extraSmall:{fontSize:v.fontSize.subtext.md,lineHeight:v.lineHeight.subtext.md,letterSpacing:v.letterSpacing.subtext.md,height:v.size.xs,minWidth:"auto",paddingInline:v.padding.sm,gap:v.gap.xs}},grow:{true:{width:"100%",maxWidth:"100%"}},iconPosition:{only:{padding:0},start:{},end:{}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:v.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xl,paddingInlineEnd:v.padding.xxl}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:v.padding.xxl,paddingInlineEnd:v.padding.xl}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:v.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:v.padding.lg,paddingInlineEnd:v.padding.xl}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:v.padding.xl,paddingInlineEnd:v.padding.lg}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:v.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.md}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:v.padding.md,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:v.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}}]}),Su=Oe("button")({displayName:"BaseButton",Component:({children:e,size:t,fillIcon:n,grow:a,iconPosition:r,icon:i,colors:o,...s},l,u)=>y.jsx(u,{ref:l,type:"button",...Ne(s,[M({size:t,iconPosition:r,grow:a}),Y.default((o==null?void 0:o.default)||{}),Y.focus((o==null?void 0:o.focus)||{}),Y.hover((o==null?void 0:o.hover)||{}),Y.active((o==null?void 0:o.active)||{}),Y.disabled((o==null?void 0:o.disabled)||{})]),children:e}),subComponents:{Icon:Vne,Label:Gne}}),Zw=Oe("button")({displayName:"Button",Component:({children:e,icon:t,colors:n,iconPosition:a,shouldMirrorIcon:r,shouldMirrorIconInRTL:i,size:o="medium",...s},l,u)=>{const c=a||(t?e?"start":"only":void 0);return y.jsxs(Su,{as:u,ref:l,size:o,icon:t,colors:n,iconPosition:c,...s,children:[t&&c==="start"&&y.jsx(Su.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i}),e&&y.jsx(Su.Label,{children:e}),t&&c&&["only","end"].includes(c)&&y.jsx(Su.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i})]})}}),Wne=pe({extends:M,base:{[M.vars.background]:D(xt.base,v.color.brand.accent.primary),[M.vars.borderRadius]:v.shape.full,[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.default.icon,"currentColor"),"&:focus-visible, &.focus":{[M.vars.background]:D(xt.base,v.color.brand.accent.primary),[M.vars.label]:D(xt.accent,R.fg.inverse),[M.vars.boxShadowInner]:v.color.focus.inverse,[M.vars.boxShadowOuter]:v.color.brand.focus.primary,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:D(xt.base,v.color.brand.accent.primary),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.hover}),[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:D(xt.base,v.color.brand.accent.primary),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.pressed}),[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:D(xt.base,v.color.brand.accent.primary),[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[M.vars.background]:D(xt.lightest,v.color.surface.inverse),[M.vars.borderRadius]:v.shape.full,[M.vars.label]:R.fg.strong,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:D(xt.lightest,v.color.surface.inverse),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.hover}),[M.vars.label]:R.fg.stronger,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[M.vars.background]:D(xt.lightest,v.color.surface.inverse),[M.vars.label]:R.fg.strong,[M.vars.boxShadowInner]:R.border.contrast.default,[M.vars.boxShadowOuter]:v.color.focus.inverse,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:D(xt.lightest,v.color.surface.inverse),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.pressed}),[M.vars.label]:R.fg.stronger,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:D(xt.lightest,v.color.surface.inverse),[M.vars.label]:R.fg.strong,[K.vars.color]:D(Y.disabled.icon,"currentColor")}}}}}),Zne=Oe("button")({displayName:"PrimaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>y.jsx(Zw,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Wne({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),Yne=pe({extends:M,base:{[M.vars.background]:v.color.surface.transparent,[M.vars.borderRadius]:v.shape.full,[M.vars.border]:R.border.input.default,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.default,[M.vars.label]:R.fg.strong,[M.vars.boxShadowInner]:v.color.focus.inverse,[M.vars.boxShadowOuter]:v.color.brand.focus.primary,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.label]:R.fg.strong,[M.vars.border]:v.color.border.input.hover,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.strong,[M.vars.border]:v.color.border.input.hover,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[M.vars.background]:v.color.surface.transparent,[M.vars.border]:v.color.border.inverse.default,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.border]:v.color.border.inverse.default,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.inverse,[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.contrast.default,[M.vars.boxShadowInner]:R.border.contrast.default,[M.vars.boxShadowOuter]:v.color.focus.inverse,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.border]:v.color.border.inverse.default,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor")}}}}}),Oc=Oe("button")({displayName:"SecondaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>y.jsx(Zw,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Yne({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),Kne=pe({extends:M,base:{paddingInline:v.padding.xs,minWidth:"auto",borderWidth:Q(2),[M.vars.borderRadius]:v.shape.full,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.focus.icon,"currentColor"),[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.contrast.default,...Cc({width:2,separation:0,innerColor:v.color.focus.inverse,outerColor:v.color.brand.focus.primary})},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.label]:R.fg.strong,[K.vars.color]:R.fg.strong,textDecoration:"underline"},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.strong,[K.vars.color]:D(Y.active.icon,"currentColor"),textDecoration:"underline"},"&:disabled, &.disabled":{textDecoration:"none",[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor")}},modifiers:{iconPosition:{only:{padding:0,[K.vars.color]:D(Y.default.icon,R.fg.default),"&:focus-visible, &.focus":{[K.vars.color]:D(Y.focus.icon,R.fg.strong)},"&:hover, &.hover":{[K.vars.color]:D(Y.hover.icon,R.fg.strong)},"&:active, &.active":{[K.vars.color]:D(Y.active.icon,R.fg.strong)},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[K.vars.color]:D(Y.disabled.icon,R.fg.default)}},start:{},end:{}},variant:{inverse:{[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.inverse,[M.vars.label]:R.fg.contrast.default,[K.vars.color]:D(Y.focus.icon,"currentColor"),...Cc({width:2,separation:2,innerColor:R.border.contrast.default,outerColor:v.color.focus.inverse})},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor")}}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:v.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:v.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:v.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:v.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xxs,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.xxs}}]}),Xne=Oe("button")({displayName:"TertiaryButton",Component:({children:e,icon:t,size:n="medium",variant:a,iconPosition:r,grow:i,cs:o,...s},l,u)=>{const c=r||(t?e?"start":"only":void 0);return y.jsx(Zw,{as:u,ref:l,icon:t,size:n,iconPosition:r,grow:i,cs:[Kne({size:n,variant:a,grow:i,iconPosition:c}),o],...s,children:e})}}),Ml=en({})(()=>({state:{inputRef:$.useRef(null)},events:{}})),Qz=pe({vars:{insetInlineStart:"initial",insetInlineEnd:"initial",width:v.size.md,height:v.size.md,pointerEvents:""},base:({width:e,height:t,insetInlineStart:n,insetInlineEnd:a})=>({display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",width:e,height:t,insetInlineStart:n,insetInlineEnd:a}),modifiers:{pointerEvents:{_:({pointerEvents:e})=>({pointerEvents:e})}}}),ob=he("div")({modelHook:Ml})(({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:a,height:r,...i},o)=>y.jsx(o,{...Ne(i,Qz({pointerEvents:e,insetInlineStart:yr(t),insetInlineEnd:yr(n),width:yr(a),height:yr(r)}))})),sb=he("div")({modelHook:Ml})(({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:a,height:r,...i},o)=>y.jsx(o,{...Ne(i,Qz({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:yr(a),height:yr(r)}))})),Jne=ue()((e,t)=>({ref:ua(t,e.state.inputRef),placeholder:""})),Qne=pe({vars:{paddingInlineStart:"",paddingInlineEnd:""},base:{display:"flex",width:"100%"},modifiers:{paddingInlineStart:{_:({paddingInlineStart:e})=>({paddingInlineStart:e})},paddingInlineEnd:{_:({paddingInlineEnd:e})=>({paddingInlineEnd:e})}}}),eN=he(vp)({modelHook:Ml,elemPropsHook:Jne})(({paddingInlineStart:e,paddingInlineEnd:t,...n},a)=>y.jsx(a,{as:a,...Ne(n,Qne({paddingInlineStart:yr(e),paddingInlineEnd:yr(t)}))})),ere=ue()(e=>({role:"presentation",tabIndex:-1,icon:Jz,size:"small",onMouseDown(t){t.preventDefault()},onClick(){yy(e.state.inputRef.current,"")}})),tre=he(Xne)({modelHook:Ml,elemPropsHook:ere})((e,t)=>y.jsx(t,{"data-part":"input-group-clear-button",...at(e)})),yr=e=>typeof e=="number"?`${e}px`:e,Eu=e=>{if(e.length!==0)return e.length===1?e[0]:`calc(${e.map(yr).join(" + ")})`},nre=pe({base:{display:"flex",position:"relative",alignItems:"center",'& :has([data-part="input-group-clear-button"])':{transition:"opacity 300ms ease"},'&:where(:has(input:placeholder-shown)) :has([data-part="input-group-clear-button"])':{opacity:0,pointerEvents:"none"}}}),Dn=Nr("div")({displayName:"InputGroup",modelHook:Ml,subComponents:{InnerStart:ob,Input:eN,InnerEnd:sb,ClearButton:tre}})(({children:e,...t},n)=>{const a=[],r=[];$.Children.forEach(e,l=>{if($.isValidElement(l)&&l.type===ob){const u=In(l.props.width||v.size.md);a.push(u)}if($.isValidElement(l)&&l.type===sb){const u=In(l.props.width||v.size.md);r.push(u)}});let i=0,o=0;const s=$.Children.map(e,l=>{if($.isValidElement(l)){if(l.type===eN)return $.cloneElement(l,{paddingInlineStart:Eu(a),paddingInlineEnd:Eu(r)});if(l.type===ob){const u=Eu(a.slice(0,i))||"0px";return i++,$.cloneElement(l,{insetInlineStart:u})}if(l.type===sb){const u=Eu(r.slice(o+1,r.length))||"0px";return o++,$.cloneElement(l,{insetInlineEnd:u})}}return l});return y.jsx(n,{...Ne(t,nre()),children:s})}),Pl=pe({base:{},modifiers:{typeLevel:{"title.large":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.title.lg,lineHeight:v.lineHeight.title.lg,color:R.fg.strong},"title.medium":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.title.md,lineHeight:v.lineHeight.title.md,color:R.fg.strong},"title.small":{fontFamily:Ke.default,fontWeight:Le.bold,lineHeight:v.lineHeight.title.sm,fontSize:v.fontSize.title.sm,color:R.fg.strong},"heading.large":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.heading.lg,lineHeight:v.lineHeight.heading.lg,color:R.fg.strong},"heading.medium":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.heading.md,lineHeight:v.lineHeight.heading.md,color:R.fg.strong},"heading.small":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.heading.sm,lineHeight:v.lineHeight.heading.sm,color:R.fg.strong},"body.large":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.body.lg,lineHeight:v.lineHeight.body.lg,color:R.fg.default},"body.medium":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.body.md,lineHeight:v.lineHeight.body.md,color:R.fg.default},"body.small":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.body.sm,lineHeight:v.lineHeight.body.sm,letterSpacing:v.letterSpacing.body.sm,color:R.fg.default},"subtext.large":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,color:R.fg.default},"subtext.medium":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.md,lineHeight:v.lineHeight.subtext.md,letterSpacing:v.letterSpacing.subtext.md,color:R.fg.default},"subtext.small":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.sm,lineHeight:v.lineHeight.subtext.sm,letterSpacing:v.letterSpacing.subtext.sm,color:R.fg.default}},variant:{error:{color:v.color.brand.fg.critical.default},hint:{color:R.fg.muted.default},inverse:{color:R.fg.inverse}}}});Oe("span")({displayName:"Text",Component:({children:e,typeLevel:t,variant:n,...a},r,i)=>y.jsx(i,{ref:r,...Ne(a,Pl({typeLevel:t,variant:n})),children:e})});const rre=pe({extends:Pl,base:{},defaultModifiers:{typeLevel:"subtext.large"}}),are=Oe("div")({displayName:"Card.Body",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,rre()),children:e})}),ire=pe({extends:Pl,base:{color:R.fg.strong,fontWeight:Le.bold,marginBlock:v.padding.none},defaultModifiers:{typeLevel:"body.large"}}),ore=Oe("h3")({displayName:"Card.Heading",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,ire()),children:e})}),sre=pe({base:{display:"flex",flexDirection:"column",gap:v.gap.lg,padding:v.padding.xl,backgroundColor:v.color.surface.default,borderRadius:v.shape.xxl,border:`${Q(1)} solid ${v.color.border.default}`},modifiers:{variant:{borderless:{borderColor:"transparent"},tonal:{backgroundColor:v.color.surface.alt.default,borderColor:R.border.transparent}}}}),lre=Oe("div")({displayName:"Card",Component:({children:e,variant:t,...n},a,r)=>y.jsx(r,{ref:a,...Ne(n,sre({variant:t})),children:e}),subComponents:{Heading:ore,Body:are}});function ure(e){return e.length?e[e.length-1]:null}function eU(e,t){const{min:n,max:a}=Yw.zIndex;return t<=a-n?e+n:Math.max(n,a-(t-e)+1)}function lb(e){const t=e.length;e.forEach((n,a)=>{n.style.zIndex=String(eU(a,t))})}function cre(e,t){let n=e;do{const a=t.find(r=>r.element===n);if(a)return a.element}while(n=n.parentElement)}function dre(e,t){return t.filter(a=>a.owner).map(a=>({element:a.element,parent:cre(a.owner,t)})).filter(a=>a.parent===e.element)}function tU(e,t){const n=t.split("."),a=n.splice(0,1)[0];return n.length&&e[a]?tU(e[a],n.join(".")):e[a]}function nU(e,t,n){const a=t.split("."),r=a.splice(0,1)[0];return a.length?(e[r]===void 0&&(e[r]={}),nU(e[r],a.join("."),n)):e[r]=n,n}typeof window<"u"&&(window.workday=window.workday||{});const rU=e=>{if(typeof window<"u")return tU(window,e)},aU=(e,t)=>{typeof window<"u"&&nU(window,e,t)},tN=(e,t)=>{var a;let n=(a=e.container)==null?void 0:a.call(e);return n===document.body&&(n=t==null?void 0:t.ownerDocument.body),n||document.body},Yw=rU("workday.__popupStack")||{description:"Global popup stack from @workday/canvas-kit/popup-stack",container:e=>(e==null?void 0:e.ownerDocument.body)||document.body,items:[],zIndex:{min:30,max:50,getValue:eU},_adapter:{}};aU("workday.__popupStack",Yw);const gr=rU("workday.__popupStackOfStacks")||[Yw];gr.description="Global stack of popup stacks from @workday/canvas-kit/popup-stack";aU("workday.__popupStackOfStacks",gr);function dr(){return gr[gr.length-1]}const At={createContainer(){var n;const e=dr();if((n=e._adapter)!=null&&n.createContainer)return e._adapter.createContainer();const t=document.createElement("div");return t.style.position="relative",t},add(e){var n;const t=dr();if((n=t._adapter)!=null&&n.add){t._adapter.add(e);return}t.items.push(e),tN(t,e.owner).appendChild(e.element),lb(At.getElements())},remove(e){var n;const t=gr.find(a=>!!At.getElements(a).find(r=>r===e));if(t){if((n=t._adapter)!=null&&n.remove){t._adapter.remove(e);return}const a=t.items.find(r=>r.element===e);t.items=t.items.filter(r=>r.element!==e),tN(t,a==null?void 0:a.owner).removeChild(e),lb(At.getElements(t))}},isTopmost(e){var a;const t=dr();if((a=t._adapter)!=null&&a.isTopmost)return t._adapter.isTopmost(e);const n=ure(t.items);return n?n.element===e:!1},getElements(e){var n;const t=e||dr();return(n=t._adapter)!=null&&n.getElements?t._adapter.getElements():t.items.map(a=>a.element)},bringToTop(e){var a;const t=dr();if((a=t._adapter)!=null&&a.bringToTop){t._adapter.bringToTop(e);return}const n=t.items.find(r=>r.element===e);if(n)t.items=[...t.items.filter(r=>r!==n),n],dre(n,t.items).forEach(r=>{At.bringToTop(r.element)}),lb(At.getElements());else{const r=new Error;console.warn("Could not find item",r.stack)}},contains(e,t){var i;const n=dr();if((i=n._adapter)!=null&&i.contains)return n._adapter.contains(e,t);const a=n.items.find(o=>o.element===e);if(a)return r(a,t);return!1;function r(o,s,l=0){var c;if(l>30)return!1;if(o.element===s||o.owner===s||o.element.contains(s)||(c=o.owner)!=null&&c.contains(s))return!0;const u=n.items.find(d=>d.owner&&o.element.contains(d.owner));return u?r(u,s,l+1):!1}},pushStackContext(e){var a,r;const t=dr();if((a=t._adapter)!=null&&a.pushStackContext)return t._adapter.pushStackContext(e);if(((r=t.container)==null?void 0:r.call(t))===e)return;const n={items:[],zIndex:t.zIndex,container:()=>e,_adapter:{}};gr.push(n)},popStackContext(e){var n,a;const t=dr();if((n=t._adapter)!=null&&n.popStackContext)return t._adapter.popStackContext(e);((a=t.container)==null?void 0:a.call(t))===e&&gr.length>1&&gr.pop()},transferToCurrentContext(e){var a;const t=dr();if((a=t._adapter)!=null&&a.transferToCurrentContext)return t._adapter.transferToCurrentContext(e);if(t.items.find(r=>r.element===e.element))return;gr.find(r=>!!r.items.find(i=>i.element===e.element))&&At.remove(e.element),At.add(e)}};let _u=null;mr.isEnabled&&mr.on("change",()=>{mr.isFullscreen?mr.element&&(_u=mr.element,At.pushStackContext(_u)):_u&&At.popStackContext(_u)});const ub=en({defaultConfig:{id:"",initialVisibility:"hidden"}})(e=>{const t=co(e.id),[n,a]=$.useState(e.initialVisibility||"hidden");return{state:{id:t,visibility:n},events:{show(o){a("visible")},hide(o){a("hidden")}}}}),nN=()=>{},ga=en({defaultContext:{state:{},events:{show:nN,hide:nN}},defaultConfig:{...ub.defaultConfig,returnFocusRef:void 0,initialFocusRef:void 0},requiredConfig:ub.requiredConfig})(e=>{const t=ee.useRef(null),n=ee.useRef(null),[a,r]=ee.useState("bottom"),i=ub(e),o={...i.state,stackRef:t,targetRef:n,initialFocusRef:e.initialFocusRef,returnFocusRef:e.returnFocusRef,placement:a},s={...i.events,updatePlacement(l){r(l.placement)}};return{state:o,events:s}});ga.Context;const iU=ue()(e=>{const t=$.useCallback(a=>{e.state.stackRef.current&&document.contains(a.target)&&!At.contains(e.state.stackRef.current,a.target)&&e.events.hide(a)},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{var a;if(n)return document.addEventListener("mousedown",t),(a=e.state.stackRef.current)==null||a.setAttribute("data-behavior-click-outside-close","always"),()=>{document.removeEventListener("mousedown",t)}},[e.state.stackRef,n,t]),{}}),oU=ue()(e=>{const t=$.useCallback(a=>{(a.key==="Esc"||a.key==="Escape")&&At.isTopmost(e.state.stackRef.current)&&e.events.hide(a)},[e.state.stackRef,e.events]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[t,n]),{}}),pre=ue()(e=>{const t=$.useCallback(a=>{mr.isFullscreen||e.events.hide(a)},[e.events]),n=e.state.visibility!=="hidden";return $.useEffect(()=>{if(n&&mr.isEnabled)return mr.on("change",t),()=>{mr.off("change",t)}},[t,n]),{}});function sU(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"||t.overflowX==="scroll"||t.overflowX==="auto"?e:sU(e.parentElement)}const fre=ue()(e=>{const t=e.state.visibility!=="hidden",n=$.useCallback(a=>{a[0].intersectionRatio<.5&&e.events.hide()},[e.events]);return $.useLayoutEffect(()=>{if(!t||!e.state.targetRef.current)return;const a=e.state.targetRef.current,r=sU(a),i=new IntersectionObserver(n,{root:r,threshold:.5});return i.observe(e.state.targetRef.current),()=>{i.disconnect()}},[n,e.state.targetRef,t]),{}}),mre=ue()(e=>{const t=$.useCallback(a=>{if(e.state.stackRef.current&&a.key==="Tab"){const r=fte(e.state.stackRef.current),i=mte(e.state.stackRef.current);a.getModifierState("Shift")&&document.activeElement===r?(a.preventDefault(),e.events.hide(a)):!a.getModifierState("Shift")&&(Array.isArray(i)&&document.activeElement&&i.includes(document.activeElement)||document.activeElement===i)&&e.events.hide(a)}},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[n,t]),{}}),lU=ue()(({state:e,events:t},n)=>{const a=ua(n,e.stackRef),r=$.useRef(e.placement);r.current=e.placement;const i=$.useCallback(o=>{o!==r.current&&t.updatePlacement({placement:o})},[t]);return{open:e.visibility!=="hidden",anchorElement:e.targetRef,ref:a,onPlacementChange:i}}),gre=(e,t)=>{const{elementRef:n,localRef:a}=ji(e),r=$.useContext(bs),{style:i}=xz(r,{}),o=$.useRef(!0),[s]=$.useState(()=>{if(o.current){const l=At.createContainer();return n(l),o.current=!1,l}return a.current});return $.useLayoutEffect(()=>{const l=a.current;if(!l)return;const u=Object.keys(i);if(u.length!==0)for(const c of u)l.style.setProperty(c,i[c])},[a,i]),$.useLayoutEffect(()=>{if(s!==a.current)throw Error("The 'ref' passed to usePopupStack should not be applied to a React element. This will cause a runtime error where the PopupStack and React compete for the element. Instead use ReactDOM.createPortal(<YourComponent />, ref.current)");const l=t?"current"in t?t.current||void 0:t:void 0,u=a.current;return At.add({element:u,owner:l}),()=>{At.remove(u)}},[a,t,s]),$.useLayoutEffect(()=>{var c,d;let u=(t?"current"in t?t.current:t:void 0)??void 0;if(u==null&&typeof document<"u"){const p=document.activeElement,m=a.current;u=(p&&m&&!m.contains(p)?p:document.body).closest("[dir]")??document.documentElement}if(u){const p=u.getAttribute("dir");(p!=null?p.toLowerCase()==="rtl":hz(u))?(c=a.current)==null||c.setAttribute("dir","rtl"):(d=a.current)==null||d.setAttribute("dir","ltr")}},[a,t]),a},uU=ue()(({events:e,state:t},n)=>({ref:ua(n,t.targetRef),onClick:r=>{t.targetRef.current instanceof Element||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r)}})),hre=ue()(({events:e,state:t},n)=>({ref:ua(n,t.targetRef),onContextMenu:r=>{t.targetRef.current||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r),r.preventDefault()}}));function cU(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"?e:cU(e.parentElement)}function dU(e){return e===null||e===document.body||!e.parentElement?null:pte(e)?e:dU(e.parentElement)}function rN(e,t){const n=e.getBoundingClientRect();return n.top+n.height/2<t.top||n.bottom-n.height/2>t.bottom||n.left+n.width/2<t.left||n.right-n.width/2>t.right}const vre=ue()(e=>{const t=e.state.visibility!=="hidden",n=$.useRef(null),a=$.useRef(!1),r=$.useCallback(o=>{o.key==="Tab"&&(a.current=!0)},[]),i=$.useCallback(o=>{e.state.stackRef.current&&o.target instanceof Element&&(At.contains(e.state.stackRef.current,o.target)||(n.current=o.target))},[e.state.stackRef]);return $.useLayoutEffect(()=>{if(!t)return;const o=(e.state.returnFocusRef||e.state.targetRef).current;return document.addEventListener("mousedown",i,!0),document.addEventListener("keydown",r,!0),()=>{if(document.removeEventListener("mousedown",i,!0),document.removeEventListener("keydown",r,!0),!o)return;const l=cU(o).getBoundingClientRect(),u={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};if(n.current&&dU(n.current)||rN(o,l)||rN(o,u)){n.current=null;return}document.activeElement!==document.body&&e.state.stackRef.current&&document.activeElement instanceof Element&&!At.contains(e.state.stackRef.current,document.activeElement)||a.current?FC(o):requestAnimationFrame(()=>{FC(o)}),n.current=null}},[e.state.returnFocusRef,e.state.targetRef,t,i,r,e.state.stackRef]),{}}),pU=e=>{const[t,n]=e.split("-");return{vertical:t==="top"?"bottom":t==="bottom"||n==="end"?"top":n==="start"?"bottom":"center",horizontal:t==="left"?"right":t==="right"||n==="end"?"left":n==="start"?"right":"center"}};var Tn="top",Gn="bottom",Hn="right",xn="left",Kw="auto",Fl=[Tn,Gn,Hn,xn],Bi="start",Xw="end",bre="clippingParents",fU="viewport",xo="popper",yre="reference",aN=Fl.reduce(function(e,t){return e.concat([t+"-"+Bi,t+"-"+Xw])},[]),mU=[].concat(Fl,[Kw]).reduce(function(e,t){return e.concat([t,t+"-"+Bi,t+"-"+Xw])},[]),Sre="beforeRead",Ere="read",_re="afterRead",wre="beforeMain",kre="main",Ire="afterMain",Tre="beforeWrite",xre="write",Rre="afterWrite",Are=[Sre,Ere,_re,wre,kre,Ire,Tre,xre,Rre];function Vn(e){return e?(e.nodeName||"").toLowerCase():null}function Wn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ss(e){var t=Wn(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Wn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cre(e){var t=Wn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Nre(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!or(i)||!Vn(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(o){var s=r[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Ore(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=o.reduce(function(l,u){return l[u]="",l},{});!or(r)||!Vn(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const Lre={name:"applyStyles",enabled:!0,phase:"write",fn:Nre,effect:Ore,requires:["computeStyles"]};function ir(e){return e.split("-")[0]}function Jw(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function gU(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cre(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Er(e){return Wn(e).getComputedStyle(e)}function $re(e){return["table","td","th"].indexOf(Vn(e))>=0}function Lr(e){return((Ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function bp(e){return Vn(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Lr(e)}function iN(e){if(!or(e)||Er(e).position==="fixed")return null;var t=e.offsetParent;if(t){var n=Lr(t);if(Vn(t)==="body"&&Er(t).position==="static"&&Er(n).position!=="static")return n}return t}function Dre(e){for(var t=bp(e);or(t)&&["html","body"].indexOf(Vn(t))<0;){var n=Er(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function zl(e){for(var t=Wn(e),n=iN(e);n&&$re(n)&&Er(n).position==="static";)n=iN(n);return n&&Vn(n)==="body"&&Er(n).position==="static"?t:n||Dre(e)||t}function Qw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qu(e,t,n){return Math.max(e,Math.min(t,n))}function hU(){return{top:0,right:0,bottom:0,left:0}}function vU(e){return Object.assign(Object.assign({},hU()),e)}function bU(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function Mre(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=ir(n.placement),s=Qw(o),l=[xn,Hn].indexOf(o)>=0,u=l?"height":"width";if(!(!r||!i)){var c=n.modifiersData[a+"#persistent"].padding,d=Jw(r),p=s==="y"?Tn:xn,m=s==="y"?Gn:Hn,b=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],S=i[s]-n.rects.reference[s],I=zl(r),h=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,f=b/2-S/2,g=c[p],E=h-d[u]-c[m],w=h/2-d[u]/2+f,k=qu(g,w,E),T=s;n.modifiersData[a]=(t={},t[T]=k,t.centerOffset=k-w,t)}}function Pre(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=r===void 0?"[data-popper-arrow]":r,o=n.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||gU(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[a+"#persistent"]={padding:vU(typeof s!="number"?s:bU(s,Fl))}))}const Fre={name:"arrow",enabled:!0,phase:"main",fn:Mre,effect:Pre,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var zre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ure(e){var t=e.x,n=e.y,a=window,r=a.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}function oN(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=Ure(i),c=u.x,d=u.y,p=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=xn,S=Tn,I=window;if(l){var h=zl(n);h===Wn(n)&&(h=Lr(n)),r===Tn&&(S=Gn,d-=h.clientHeight-a.height,d*=s?1:-1),r===xn&&(b=Hn,c-=h.clientWidth-a.width,c*=s?1:-1)}var f=Object.assign({position:o},l&&zre);if(s){var g;return Object.assign(Object.assign({},f),{},(g={},g[S]=m?"0":"",g[b]=p?"0":"",g.transform=(I.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",g))}return Object.assign(Object.assign({},f),{},(t={},t[S]=m?d+"px":"",t[b]=p?c+"px":"",t.transform="",t))}function jre(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,o=i===void 0?!0:i,s={placement:ir(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),oN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),oN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}const Bre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jre,data:{}};var wu={passive:!0};function qre(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,o=a.resize,s=o===void 0?!0:o,l=Wn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,wu)}),s&&l.addEventListener("resize",n.update,wu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,wu)}),s&&l.removeEventListener("resize",n.update,wu)}}const Gre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qre,data:{}};var Hre={left:"right",right:"left",bottom:"top",top:"bottom"};function Gu(e){return e.replace(/left|right|bottom|top/g,function(t){return Hre[t]})}var Vre={start:"end",end:"start"};function sN(e){return e.replace(/start|end/g,function(t){return Vre[t]})}function Es(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ek(e){var t=Wn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function tk(e){return Es(Lr(e)).left+ek(e).scrollLeft}function Wre(e){var t=Wn(e),n=Lr(e),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,height:i,x:o+tk(e),y:s}}function Zre(e){var t=Lr(e),n=ek(e),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+tk(e),s=-n.scrollTop;return Er(a||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}function nk(e){var t=Er(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function yU(e){return["html","body","#document"].indexOf(Vn(e))>=0?e.ownerDocument.body:or(e)&&nk(e)?e:yU(bp(e))}function Vo(e,t){t===void 0&&(t=[]);var n=yU(e),a=Vn(n)==="body",r=Wn(n),i=a?[r].concat(r.visualViewport||[],nk(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Vo(bp(i)))}function _y(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yre(e){var t=Es(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function lN(e,t){return t===fU?_y(Wre(e)):or(t)?Yre(t):_y(Zre(Lr(e)))}function Kre(e){var t=Vo(bp(e)),n=["absolute","fixed"].indexOf(Er(e).position)>=0,a=n&&or(e)?zl(e):e;return Ss(a)?t.filter(function(r){return Ss(r)&&gU(r,a)&&Vn(r)!=="body"}):[]}function Xre(e,t,n){var a=t==="clippingParents"?Kre(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce(function(s,l){var u=lN(e,l);return s.top=Math.max(u.top,s.top),s.right=Math.min(u.right,s.right),s.bottom=Math.min(u.bottom,s.bottom),s.left=Math.max(u.left,s.left),s},lN(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function _s(e){return e.split("-")[1]}function SU(e){var t=e.reference,n=e.element,a=e.placement,r=a?ir(a):null,i=a?_s(a):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case Tn:l={x:o,y:t.y-n.height};break;case Gn:l={x:o,y:t.y+t.height};break;case Hn:l={x:t.x+t.width,y:s};break;case xn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=r?Qw(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Bi:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Xw:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function qi(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.boundary,o=i===void 0?bre:i,s=n.rootBoundary,l=s===void 0?fU:s,u=n.elementContext,c=u===void 0?xo:u,d=n.altBoundary,p=d===void 0?!1:d,m=n.padding,b=m===void 0?0:m,S=vU(typeof b!="number"?b:bU(b,Fl)),I=c===xo?yre:xo,h=e.elements.reference,f=e.rects.popper,g=e.elements[p?I:c],E=Xre(Ss(g)?g:g.contextElement||Lr(e.elements.popper),o,l),w=Es(h),k=SU({reference:w,element:f,placement:r}),T=_y(Object.assign(Object.assign({},f),k)),O=c===xo?T:w,N={top:E.top-O.top+S.top,bottom:O.bottom-E.bottom+S.bottom,left:E.left-O.left+S.left,right:O.right-E.right+S.right},P=e.modifiersData.offset;if(c===xo&&P){var V=P[r];Object.keys(N).forEach(function(te){var ne=[Hn,Gn].indexOf(te)>=0?1:-1,me=[Tn,Gn].indexOf(te)>=0?"y":"x";N[te]+=V[me]*ne})}return N}function Jre(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?mU:l,c=_s(a),d=c?s?aN:aN.filter(function(b){return _s(b)===c}):Fl,p=d.filter(function(b){return u.indexOf(b)>=0});p.length===0&&(p=d);var m=p.reduce(function(b,S){return b[S]=qi(e,{placement:S,boundary:r,rootBoundary:i,padding:o})[ir(S)],b},{});return Object.keys(m).sort(function(b,S){return m[b]-m[S]})}function Qre(e){if(ir(e)===Kw)return[];var t=Gu(e);return[sN(e),t,sN(t)]}function eae(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,S=n.allowedAutoPlacements,I=t.options.placement,h=ir(I),f=h===I,g=l||(f||!b?[Gu(I)]:Qre(I)),E=[I].concat(g).reduce(function(Ee,Fe){return Ee.concat(ir(Fe)===Kw?Jre(t,{placement:Fe,boundary:c,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:S}):Fe)},[]),w=t.rects.reference,k=t.rects.popper,T=new Map,O=!0,N=E[0],P=0;P<E.length;P++){var V=E[P],te=ir(V),ne=_s(V)===Bi,me=[Tn,Gn].indexOf(te)>=0,xe=me?"width":"height",Se=qi(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Re=me?ne?Hn:xn:ne?Gn:Tn;w[xe]>k[xe]&&(Re=Gu(Re));var z=Gu(Re),q=[];if(i&&q.push(Se[te]<=0),s&&q.push(Se[Re]<=0,Se[z]<=0),q.every(function(Ee){return Ee})){N=V,O=!1;break}T.set(V,q)}if(O)for(var G=b?3:1,W=function(Fe){var Ue=E.find(function(it){var gn=T.get(it);if(gn)return gn.slice(0,Fe).every(function(za){return za})});if(Ue)return N=Ue,"break"},X=G;X>0;X--){var Je=W(X);if(Je==="break")break}t.placement!==N&&(t.modifiersData[a]._skip=!0,t.placement=N,t.reset=!0)}}const tae={name:"flip",enabled:!0,phase:"main",fn:eae,requiresIfExists:["offset"],data:{_skip:!1}};function uN(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function cN(e){return[Tn,Hn,Gn,xn].some(function(t){return e[t]>=0})}function nae(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=qi(t,{elementContext:"reference"}),s=qi(t,{altBoundary:!0}),l=uN(o,a),u=uN(s,r,i),c=cN(l),d=cN(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const rae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nae};function aae(e,t,n){var a=ir(e),r=[xn,Tn].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*r,[xn,Hn].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function iae(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=mU.reduce(function(c,d){return c[d]=aae(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=o}const oae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iae};function sae(e){var t=e.state,n=e.name;t.modifiersData[n]=SU({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const lae={name:"popperOffsets",enabled:!0,phase:"read",fn:sae,data:{}};function uae(e){return e==="x"?"y":"x"}function cae(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,S=b===void 0?0:b,I=qi(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),h=ir(t.placement),f=_s(t.placement),g=!f,E=Qw(h),w=uae(E),k=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,N=typeof S=="function"?S(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):S,P={x:0,y:0};if(k){if(i){var V=E==="y"?Tn:xn,te=E==="y"?Gn:Hn,ne=E==="y"?"height":"width",me=k[E],xe=k[E]+I[V],Se=k[E]-I[te],Re=m?-O[ne]/2:0,z=f===Bi?T[ne]:O[ne],q=f===Bi?-O[ne]:-T[ne],G=t.elements.arrow,W=m&&G?Jw(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hU(),Je=X[V],Ee=X[te],Fe=qu(0,T[ne],W[ne]),Ue=g?T[ne]/2-Re-Fe-Je-N:z-Fe-Je-N,it=g?-T[ne]/2+Re+Fe+Ee+N:q+Fe+Ee+N,gn=t.elements.arrow&&zl(t.elements.arrow),za=gn?E==="y"?gn.clientTop||0:gn.clientLeft||0:0,Ua=t.modifiersData.offset?t.modifiersData.offset[t.placement][E]:0,ja=k[E]+Ue-Ua-za,Ep=k[E]+it-Ua,Ba=qu(m?Math.min(xe,ja):xe,me,m?Math.max(Se,Ep):Se);k[E]=Ba,P[E]=Ba-me}if(s){var t2=E==="x"?Tn:xn,n2=E==="x"?Gn:Hn,ql=k[w],r2=ql+I[t2],a2=ql-I[n2],ak=qu(r2,ql,a2);k[w]=ak,P[w]=ak-ql}t.modifiersData[a]=P}}const dae={name:"preventOverflow",enabled:!0,phase:"main",fn:cae,requiresIfExists:["offset"]};function pae(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fae(e){return e===Wn(e)||!or(e)?ek(e):pae(e)}function mae(e,t,n){n===void 0&&(n=!1);var a=Lr(t),r=Es(e),i=or(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((Vn(t)!=="body"||nk(a))&&(o=fae(t)),or(t)?(s=Es(t),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=tk(a))),{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function gae(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function hae(e){var t=gae(e);return Are.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function vae(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bae(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign(Object.assign(Object.assign({},r),a),{},{options:Object.assign(Object.assign({},r.options),a.options),data:Object.assign(Object.assign({},r.data),a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var dN={placement:"bottom",modifiers:[],strategy:"absolute"};function pN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function yae(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?dN:r;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},dN),i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:c,setOptions:function(h){S(),c.options=Object.assign(Object.assign(Object.assign({},i),c.options),h),c.scrollParents={reference:Ss(s)?Vo(s):s.contextElement?Vo(s.contextElement):[],popper:Vo(l)};var f=hae(bae([].concat(a,c.options.modifiers)));return c.orderedModifiers=f.filter(function(g){return g.enabled}),b(),m.update()},forceUpdate:function(){if(!p){var h=c.elements,f=h.reference,g=h.popper;if(pN(f,g)){c.rects={reference:mae(f,zl(g),c.options.strategy==="fixed"),popper:Jw(g)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<c.orderedModifiers.length;E++){if(c.reset===!0){c.reset=!1,E=-1;continue}var w=c.orderedModifiers[E],k=w.fn,T=w.options,O=T===void 0?{}:T,N=w.name;typeof k=="function"&&(c=k({state:c,options:O,name:N,instance:m})||c)}}}},update:vae(function(){return new Promise(function(I){m.forceUpdate(),I(c)})}),destroy:function(){S(),p=!0}};if(!pN(s,l))return m;m.setOptions(u).then(function(I){!p&&u.onFirstUpdate&&u.onFirstUpdate(I)});function b(){c.orderedModifiers.forEach(function(I){var h=I.name,f=I.options,g=f===void 0?{}:f,E=I.effect;if(typeof E=="function"){var w=E({state:c,name:h,instance:m,options:g}),k=function(){};d.push(w||k)}})}function S(){d.forEach(function(I){return I()}),d=[]}return m}}var Sae=[Gre,lae,Bre,Lre,oae,tae,dae,Fre,rae],Eae=yae({defaultModifiers:Sae});const _ae=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","auto","auto-start","auto-end"],wae=e=>{const[t,n]=e.split("-");let a;switch(t){case"top":a="bottom";break;case"bottom":a="top";break;case"left":a="right";break;case"right":a="left";break;default:a="auto"}return n&&(a=_ae.find(r=>r.includes(`${a}-${n}`))??a),a},EU=(e,t,n)=>{if(e.length===0||e[0].split("-")[0]==="auto")return n;const{reference:a,popper:r}=t.rects,i=qi({...t,placement:e[0]}),o=/left|right/.test(e[0].split("-")[0])?"horizontal":"vertical",s=(i.top>0||i.bottom>0||i.left>0||i.right>0)&&(o==="horizontal"?r.height/2-i.top<a.height||r.height/2-i.bottom<a.height:r.width-i.left<a.width||r.width-i.right<a.width),l=e[0].split("-")[0];return!s&&i[l]<=0?e[0]:EU(e.slice(1),t,n)},fN="fallbackModifier",mN={name:fN,enabled:!0,phase:"main",data:{_skip:!1},fn({state:e,options:t}){const n=e.options.placement,{fallbackPlacements:a}=t,r=[n,wae(n),...a||[]],i=EU(r,e,n);e.placement!==i&&(e.modifiersData[fN]._skip=!0,e.placement=i,e.reset=!0)}},_U=["top","right","bottom","left"],rk=ee.forwardRef(({portal:e=!0,open:t=!0,...n},a)=>t?y.jsx(Tae,{ref:a,portal:e,...n}):null),kae=e=>{if(e!==null)return"current"in e?e.current||void 0:e},Iae={},Tae=ee.forwardRef(({anchorElement:e,getAnchorClientRect:t,popperOptions:n=Iae,placement:a="bottom",fallbackPlacements:r=_U,onPlacementChange:i,children:o,portal:s,popperInstanceRef:l},u)=>{const c=ee.useRef(!0),{localRef:d,elementRef:p}=ji(l),[m,b]=ee.useState(a),S=gre(u,e),I=ee.useRef(a);I.current=m;const h=ee.useMemo(()=>({name:"setPlacement",enabled:!0,phase:"afterWrite",fn({state:g}){b(g.placement),i==null||i(g.placement)}}),[b,i]);ee.useLayoutEffect(()=>{const g=t?{getBoundingClientRect:t}:kae(e??null);if(!g){console.warn("Popper: neither anchorElement or getAnchorClientRect was defined. A valid anchorElement or getAnchorClientRect callback must be provided to render a Popper");return}if(S.current){const E=Eae(g,S.current,{placement:a,...n,modifiers:[h,{...mN,options:{fallbackPlacements:r}},...n.modifiers||[]]});return p(E),()=>{E==null||E.destroy()}}},[e,t,S]),ee.useLayoutEffect(()=>{var g;c.current||(g=d.current)==null||g.setOptions({placement:a,...n,modifiers:[h,{...mN,options:{fallbackPlacements:r}},...n.modifiers||[]]}),c.current=!1},[n,a,r,h,d]);const f=y.jsx(y.Fragment,{children:xae(o)?o({placement:m}):o});return s?bS.createPortal(f,S.current):f});function xae(e){return typeof e=="function"}const ft=en({defaultConfig:{...ya.defaultConfig,...ga.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...ya.requiredConfig,...ga.requiredConfig},contextOverride:ga.Context})(e=>{const t=ya(ya.mergeConfig(e,{selection:e.mode==="single"?Rz:Cte})),n=ga(ga.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));iU(n),oU(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),Rae=pe({vars:{minWidth:Q(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,color:R.fg.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:v.padding.xxs,borderRadius:v.shape.xxl,maxWidth:ht.subtract("100vw",v.size.sm),boxShadow:cz[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),Aae=ue()(()=>({})),wU=he("div")({displayName:"Menu.Card",modelHook:ft,elemPropsHook:Aae})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=ee.useMemo(()=>pU(r.state.placement||"bottom"),[r.state.placement]);return y.jsx(lre,{as:a,...Ne(n,Rae({minWidth:typeof e=="number"?Q(e):e,maxHeight:typeof t=="number"?Q(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Cae=pe({base:{display:"block",height:Q(1),border:"none",borderTop:`${Q(1)} solid ${v.color.border.default}`,margin:`${v.gap.sm} ${v.gap.md}`}}),kU=Oe("hr")({displayName:"Menu.Divider",Component({...e},t,n){return y.jsx(n,{ref:t,...at(e,Cae())})}}),gN={vertical:"bottom",horizontal:"center"},wy=Za("positionX","positionY"),Nae=Oee({"0%":{opacity:0,transform:`translate(${wy.positionX}, ${wy.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),Oae=pe({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.md,lineHeight:v.lineHeight.subtext.md,letterSpacing:v.letterSpacing.subtext.md,display:"inline-flex",position:"relative",padding:v.padding.sm,color:R.fg.inverse,animationName:Nae,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:R.fg.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:v.shape.md,outline:`${Q(1)} solid transparent`,outlineOffset:`-${Q(1)}`,zIndex:-1,margin:v.gap.xs,backgroundColor:v.color.surface.contrast.default,position:"absolute",top:0,left:0,right:0,bottom:0,boxShadow:cz[2]},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:ht.negate(Qe.size50)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:ht.negate(Qe.size50)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:ht.negate(Qe.size50)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:ht.negate(Qe.size50)}}),modifiers:{elementHasFocus:{true:{padding:ht.subtract(v.padding.md,ht.divide(v.padding.xxs,2)),"&:before":{margin:Qe.size75}}}}}),Lae=Oe("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=gN,elementHasFocus:n=!1,...a},r,i)=>{const o=Qee(t||gN,v.gap.sm);return y.jsx(i,{ref:r,...Ne(a,[Oae({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),wy({positionX:o.x,positionY:o.y})]),children:e})}}),hN=(e,t=0)=>{const n=ee.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return ee.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},$ae=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Dae({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=ee.useRef(!1),i=ga(),[o,s]=ee.useState(null),l=co(),u=hN(i.events.hide,a),c=hN(i.events.show,n),d=()=>{u.start(),c.clear()},p=()=>{c.start(),u.clear()},m=f=>{s(f.currentTarget),p()},b=f=>{r.current||m(f),r.current=!1},S=f=>{r.current=!0,$ae(f.currentTarget)&&i.events.hide()};oU(i),iU(i),pre(i),fre(i);const I=i.state.visibility!=="hidden",h={"aria-describedby":e==="describe"&&I?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:m,onMouseLeave:d,onMouseDown:S,onFocus:b,onBlur:d};return h["aria-describedby"]===void 0&&delete h["aria-describedby"],{targetProps:h,popperProps:{open:I,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&I?l:void 0,role:"tooltip",onMouseEnter:p,onMouseLeave:d}}}const IU=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=IU(e.children[n]);if(a)return a}return null}return null},TU=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=TU(e.children[n]);if(a)return a}return null},vN=e=>{const t=TU(e)||IU(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function Mae(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=vz(t[r],e[r]):a[r]=t[r],a),{})}const yp=({placement:e="top",fallbackPlacements:t=_U,children:n,...a})=>{const[r,i]=ee.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Dae({type:"muted"}),u=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),vN(p)&&o.onMouseEnter(d)},c=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),vN(p)&&o.onFocus(d)};return y.jsxs(ee.Fragment,{children:[ee.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...Mae({...o,onMouseEnter:u,onFocus:c},n.props)}),y.jsx(rk,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const p=pU(d);return y.jsx(Lae,{transformOrigin:p,...l,...a,children:r})}})]})},xU=en({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:co(e.id)},events:{}})),Pae=pe({base:{fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,fontWeight:Le.bold,display:"flex",alignItems:"center",width:"100%",gap:v.gap.md,padding:`${v.padding.xs} ${v.padding.md}`}}),Fae=ue()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),zae=ue()(e=>({id:e.state.id})),bN=he("div")({modelHook:xU,elemPropsHook:zae})(({children:e,...t},n)=>y.jsx(yp,{children:y.jsx(n,{...Ne(t,Pae()),children:e})})),RU=Nr("div")({displayName:"Menu.Group",modelHook:xU,elemPropsHook:Fae,subComponents:{Heading:bN}})(({children:e,title:t,...n},a)=>y.jsxs(a,{...Ne(n),children:[t?y.jsx(bN,{children:t}):null,e]})),Ul=pe({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,display:"flex",alignItems:"center",width:"100%",gap:v.gap.md,padding:`${v.padding.sm} ${v.padding.md}`,boxSizing:"border-box",cursor:"pointer",color:R.fg.default,borderWidth:0,borderRadius:v.shape.xxl,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:v.size.md,overflowWrap:"anywhere",[K.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:ut.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:v.color.brand.fg.primary.strong,backgroundColor:v.color.brand.surface.primary.strong,[`& :where(${n})`]:{opacity:ut.full},"&:where(.focus, :focus-visible)":{[K.vars.color]:"currentColor",outline:"none",backgroundColor:v.color.brand.accent.primary,color:R.fg.inverse}},"&:is(.hover, :hover)":{color:R.fg.strong,backgroundColor:v.color.surface.overlay.hover.default},"&:is(.focus, :focus-visible)":{color:R.fg.inverse,backgroundColor:v.color.brand.accent.primary,outline:`${Q(2)} solid transparent`,outlineOffset:`-${Q(2)}`},"&:is(:disabled, [aria-disabled=true])":{cursor:"default",opacity:ut.disabled,"&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:v.color.brand.accent.primary,opacity:ut.disabled}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),Uae=e=>y.jsx(na,{...Ul.parts.icon,...e}),AU=Oe("span")({Component:({...e},t,n)=>y.jsx(n,{ref:t,...Ul.parts.text,...at(e)})}),Sp=Oe("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>y.jsx(r,{ref:a,"aria-disabled":t,...Ne(n,Ul({})),children:typeof e=="string"?y.jsx(AU,{children:e}):e})}),CU=ue()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),NU=ue()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=ji(t),i=n["data-id"];return ee.useLayoutEffect(()=>{e.state.mode==="single"&&ys(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:ys(e.state,n["data-id"])?"focus":void 0}});function OU(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),OU(e.UNSTABLE_parentModel))}const jae=Or(ue()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),OU(e))}:void 0})),NU,CU,Lte,Hw,$l),Gi=he("button")({displayName:"Menu.Item",modelHook:ft,elemPropsHook:jae,subComponents:{Icon:Uae,Text:AU}})(({children:e,...t},n)=>y.jsx(yp,{placement:"left",children:y.jsx(Sp,{as:n,...t,children:e})})),Bae=Or(ue()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),vre,mre),LU=pe({base:{background:v.color.surface.popover,borderRadius:v.shape.xxl,padding:0,gap:v.gap.xs},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),$U=he("div")({displayName:"Menu.List",modelHook:ft,elemPropsHook:Bae})(({children:e,...t},n,a)=>y.jsx(Ww,{as:n,model:a,marginY:v.gap.none,...at(t,LU({orientation:a.state.orientation})),children:e})),DU=Oe("span")({Component:({...e},t,n)=>y.jsxs(y.Fragment,{children:[y.jsx(Gi.Text,{ref:t,as:n,...e}),y.jsx(na,{...Ul.parts.selected,icon:$ne})]})}),qae=Oe("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,Ul()),children:typeof e=="string"?y.jsx(DU,{children:e}):e})}),Gae=Or(ue()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":Ate(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),zte,$l),MU=he("li")({displayName:"Menu.Item",modelHook:ft,elemPropsHook:Gae,subComponents:{Icon:Gi.Icon,Text:DU}})(({children:e,...t},n)=>y.jsx(yp,{placement:"left",children:y.jsx(qae,{as:n,...t,children:e})})),PU=lU,FU={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},Hae=he("div")({modelHook:ft,elemPropsHook:PU})(({children:e,...t})=>y.jsx(rk,{placement:"bottom-start",popperOptions:FU,...t,children:e})),zU=ue()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),Vae=Or(zU,uU),Wae=Or(zU,hre),Zae=he(Oc)({displayName:"Menu.Target",modelHook:ft,elemPropsHook:Vae})(({children:e,...t},n)=>y.jsx(n,{...t,children:e})),Yae=he(Oc)({displayName:"Menu.Target",modelHook:ft,elemPropsHook:Wae})(({children:e,...t},n)=>y.jsx(n,{...t,children:e})),Kae=he("div")({modelHook:ft,elemPropsHook:PU})(({children:e,...t})=>y.jsx(rk,{placement:"right-start",popperOptions:FU,...t,children:e})),Xae=(e,t=0)=>{const n=$.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return $.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},Jae=Or(vu(e=>e.UNSTABLE_parentModel,NU),vu(e=>e.UNSTABLE_parentModel,CU),vu(e=>e.UNSTABLE_parentModel,Hw),ue()((e,t)=>({ref:ua(t,e.state.targetRef)})),vu(e=>e.UNSTABLE_parentModel,$l),ue()(e=>{const t=$.useRef(),n=Xae(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),Qae=he("button")({modelHook:ft,elemPropsHook:Jae})(({children:e,...t},n)=>y.jsxs(Sp,{as:n,...t,children:[typeof e=="string"?y.jsx(Gi.Text,{children:e}):e,y.jsx(Gi.Icon,{icon:Dne})]})),eie=he()({modelHook:ft,subComponents:{Card:wU,List:$U,Item:Gi,TargetItem:Qae,Group:RU,Option:MU,Divider:kU,Popper:Kae}})(({children:e,model:t,...n},a,r)=>{const i=ft(ft.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=ft.Context;return y.jsx(o.Provider,{value:i,children:e})}),bi=Nr()({displayName:"Menu",modelHook:ft,subComponents:{Target:Zae,Card:wU,List:$U,Item:Gi,Group:RU,Option:MU,Divider:kU,TargetContext:Yae,Popper:Hae,Submenu:eie}})(({children:e})=>y.jsx(y.Fragment,{children:e})),cb=en({defaultConfig:{value:void 0,onFilterChange(e){},onChange(e){}}})(e=>{const t=$.createRef();return{onFilterChange:e.onFilterChange,onChange:e.onChange,state:{value:e.value,inputRef:t},events:{}}}),er=en({defaultConfig:{...cb.defaultConfig,...ft.defaultConfig,shouldVirtualize:!0},requiredConfig:{...cb.requiredConfig,...ft.requiredConfig}})(e=>{const t=cb(e),n=ft(e),[a,r]=$.useState(0),i={width:a,...t.state,...n.state},o={...t.events,...n.events,setWidth(s){r(s)}};return{...n,...t,state:i,events:o}}),tie=ue()(e=>({onKeyDown(t){(t.key==="ArrowDown"||t.key==="ArrowUp"&&e.state.visibility!=="visible")&&(e.events.show(t),e.events.setWidth(t.currentTarget.getBoundingClientRect().width))}})),nie=ue()(e=>({onKeyDown(t){e.state.visibility==="visible"&&Az(t,e)&&t.preventDefault()}})),rie=ue()(e=>{const t=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{var n;t&&e.events.setWidth(((n=e.state.targetRef.current)==null?void 0:n.getBoundingClientRect().width)||0)},[t,e.events,e.state.targetRef]),{}}),UU=Or(ue()((e,t)=>{const n=ua(t,e.state.inputRef);return $.useEffect(()=>{if(e.state.cursorId&&e.state.visibility==="visible"){const a=e.navigation.getItem(li(e.state),e);if(e.state.isVirtualized&&a)e.state.UNSTABLE_virtual.scrollToIndex(a.index);else{const r=document.querySelector(`[id="${e.state.id}-list"] [data-id="${li(e.state)}"]`);r&&requestAnimationFrame(()=>{r.scrollIntoView({block:"nearest"})})}}},[e.state.cursorId,e.state.selectedIds,e.state.visibility]),{onKeyDown(a){if(a.key==="Enter"&&!a.metaKey&&e.state.visibility==="visible"){const r=document.querySelector(`[data-id="${li(e.state)}"]`);r&&(r==null?void 0:r.getAttribute("aria-disabled"))!=="true"&&(e.events.select({id:li(e.state)}),e.state.mode==="single"&&e.events.hide(a)),a.preventDefault()}},onBlur(a){e.events.hide(a)},onClick(a){e.state.visibility==="hidden"&&e.events.setWidth(a.currentTarget.getBoundingClientRect().width)},value:e.state.value,role:"combobox","aria-haspopup":"listbox","aria-expanded":e.state.visibility==="visible","aria-autocomplete":"list","aria-controls":`${e.state.id}-list`,"aria-activedescendant":e.state.visibility==="hidden"?null:void 0,id:e.state.id,ref:n}}),rie,tie,Fte,nie,uU),aie=he(vp)({modelHook:er,elemPropsHook:UU})(({children:e,...t},n)=>y.jsx(n,{...t,children:e})),iie=ue()(e=>({minWidth:e.state.width})),oie=pe({base:{'& :where([data-part="list-box-container"])':{borderRadius:v.shape.xxl}}}),sie=he("div")({modelHook:er,elemPropsHook:iie})(({children:e,...t},n)=>y.jsx(bi.Card,{as:n,...at(t,oie()),children:e})),lie=ue()(e=>({role:"listbox","aria-labelledby":e.state.id,id:`${e.state.id}-list`})),uie=pe({base:{},extends:LU}),cie=he("ul")({modelHook:er,elemPropsHook:lie})(({children:e,...t},n,a)=>y.jsx(Ww,{as:n,model:a,marginY:v.gap.none,...at(t,uie({orientation:a.state.orientation})),children:e})),die=lU,pie=he("div")({displayName:"Combobox.Menu.Popper",modelHook:ft,elemPropsHook:die})(({children:e,...t})=>y.jsx(bi.Popper,{fallbackPlacements:["top","bottom"],...t,children:e})),yN=he()({modelHook:er,subComponents:{Popper:pie,List:cie,Item:bi.Option,Card:sie,Divider:bi.Divider}})(({children:e},t,n)=>y.jsx(bi,{model:n,children:e})),ku=Nr()({displayName:"Combobox",modelHook:er,subComponents:{Input:aie,Menu:yN}})(({children:e},t,n)=>y.jsx(yN,{model:n,children:e})),fie=()=>{const e=$.useRef(-1);return $.useEffect(()=>()=>{clearTimeout(e.current)},[]),(t,n)=>{clearTimeout(e.current),e.current=setTimeout(t,n)}},jU=(e,t)=>{const n=fie(),a=Pte({shouldLoad(r,i){return(e.shouldLoad?e.shouldLoad(r,i):!0)&&i.visibility!=="hidden"},...t.mergeConfig(e,{onFilterChange(r){const i=r.currentTarget.value;n(()=>a.loader.updateFilter(i),150)}})},t);return a};function mie(e){return!!e}const gie=ue()((e,t,{disabled:n,value:a,onChange:r,name:i}={})=>{const{elementRef:o,localRef:s}=ji(e.state.targetRef),{elementRef:l,localRef:u}=ji(t),c=$.useRef(e.navigation);c.current=e.navigation;const d=$.useRef(e.state);return d.current=e.state,$.useLayoutEffect(()=>{u.current&&typeof a=="string"&&a!==u.current.value&&e.events.setSelectedIds(a?a.split(", "):[])},[a,u,e.events]),$.useImperativeHandle(l,()=>{if(u.current&&s.current){const p=u.current,m=s.current;return Object.defineProperty(p,"value",{get(){var S,I;return(I=(S=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value"))==null?void 0:S.get)==null?void 0:I.call(p)},set(b){p&&b!==(d.current.selectedIds==="all"?[]:d.current.selectedIds).join(", ")&&e.events.setSelectedIds(b?b.split(", "):[])}}),Object.defineProperty(p,"focus",{configurable:!0,writable:!0,value:b=>m.focus(b)}),Object.defineProperty(p,"blur",{configurable:!0,writable:!0,value:()=>m.blur()}),p}return u.current},[u,s,e.events]),$.useLayoutEffect(()=>{if(s.current){const p=e.state.items.length===0?"":(e.state.selectedIds==="all"?[]:e.state.selectedIds.map(m=>c.current.getItem(m,{state:d.current})).filter(mie).map(m=>m.textValue)).join(", ");p!==s.current.value&&yy(s.current,p)}if(u.current){const p=(e.state.selectedIds==="all"?[]:e.state.selectedIds).join(", ");p!==u.current.value&&yy(u.current,p)}},[e.state.selectedIds,e.state.items,u,s]),{ref:o,form:"",value:null,onChange:p=>{var m;return(m=e.onFilterChange)==null||m.call(e,p),null},name:null,disabled:n,formInputProps:{disabled:n,tabIndex:-1,"aria-hidden":!0,ref:l,onChange:p=>{var m;r==null||r(p),(m=e.onChange)==null||m.call(e,p)},name:i}}}),hie=pe({base:{height:"100%",width:"100%",objectFit:"cover"}}),vie=Oe("img")({displayName:"AvatarImage",Component:({...e},t,n)=>y.jsx(n,{ref:t,...at(e,hie())})}),bie=e=>{const t=e.trim().split(/\s+/).filter(Boolean),n=t[0],a=(n==null?void 0:n[0])||"",r=t.length>1?t[t.length-1]:void 0,i=(r==null?void 0:r[0])||"";return`${a}${i}`},yie=pe({base:{textTransform:"uppercase",cursor:"default"}}),Sie=Oe("span")({displayName:"AvatarName",Component:({name:e,preferredInitials:t,...n},a,r)=>y.jsx(r,{ref:a,...at(n,yie()),children:t||bie(e)})}),BU=pe({vars:{backgroundColor:"",color:"",size:""},base:({backgroundColor:e,color:t,size:n})=>({borderRadius:v.shape.full,width:D(n,v.size.lg),height:D(n,v.size.lg),minWidth:D(n,v.size.lg),minHeight:D(n,v.size.lg),backgroundColor:D(e,Qe.blue300),color:D(t,Qe.blue800),display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",border:"none",fontFamily:Ke.default,fontWeight:Le.normal,lineHeight:v.lineHeight.body.md,fontSize:v.fontSize.body.md}),modifiers:{variant:{blue:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.blue300),color:D(t,Qe.blue800)}),amber:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.amber200),color:D(t,Qe.amber700)}),teal:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.teal300),color:D(t,Qe.teal800)}),purple:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.purple300),color:D(t,Qe.purple800)})},size:{extraExtraSmall:({size:e})=>({[e]:v.size.xs,lineHeight:v.lineHeight.subtext.sm,fontSize:v.fontSize.subtext.sm,letterSpacing:v.letterSpacing.subtext.sm}),extraSmall:({size:e})=>({[e]:v.size.sm,lineHeight:v.lineHeight.subtext.md,fontSize:v.fontSize.subtext.md,letterSpacing:v.letterSpacing.subtext.md}),small:({size:e})=>({[e]:v.size.md,lineHeight:v.lineHeight.body.sm,fontSize:v.fontSize.body.sm,letterSpacing:v.letterSpacing.body.sm}),medium:({size:e})=>({[e]:Qe.size600,lineHeight:v.lineHeight.body.md,fontSize:v.fontSize.body.md}),large:({size:e})=>({[e]:Qe.size900,fontWeight:Le.bold,lineHeight:v.lineHeight.heading.md,fontSize:v.fontSize.heading.md}),extraLarge:({size:e})=>({[e]:Qe.size1200,fontWeight:Le.bold,lineHeight:v.lineHeight.title.sm,fontSize:v.fontSize.title.sm}),extraExtraLarge:({size:e})=>({[e]:Q(120),fontWeight:Le.bold,lineHeight:v.lineHeight.title.md,fontSize:v.fontSize.title.md})}}}),db=Oe("div")({displayName:"BaseAvatar",subComponents:{Image:vie,Name:Sie},Component:({variant:e,size:t,...n},a,r)=>y.jsx(r,{ref:a,...at(n,BU({variant:e,size:t}))})}),Hu=pe({extends:BU,parts:{avatarImage:"avatar-image",avatarName:"avatar-name"},base:{},modifiers:{imageLoaded:{false:({avatarImagePart:e})=>({[e]:{display:"none"}}),true:{backgroundColor:R.bg.default}},objectFit:{contain:({avatarImagePart:e})=>({[e]:{objectFit:"contain"}}),cover:({avatarImagePart:e})=>({[e]:{objectFit:"cover"}}),fill:({avatarImagePart:e})=>({[e]:{objectFit:"fill"}}),none:({avatarImagePart:e})=>({[e]:{objectFit:"none"}}),"scale-down":({avatarImagePart:e})=>({[e]:{objectFit:"scale-down"}}),initial:({avatarImagePart:e})=>({[e]:{objectFit:"initial"}}),inherit:({avatarImagePart:e})=>({[e]:{objectFit:"inherit"}}),unset:({avatarImagePart:e})=>({[e]:{objectFit:"unset"}}),"-moz-initial":({avatarImagePart:e})=>({[e]:{objectFit:"-moz-initial"}}),revert:({avatarImagePart:e})=>({[e]:{objectFit:"revert"}})}}}),Eie=Oe("div")({displayName:"Avatar",Component:({url:e,name:t,variant:n,objectFit:a="contain",preferredInitials:r,isDecorative:i,size:o,...s},l,u)=>{const[c,d]=$.useState(!1),p=()=>{c||d(!0)};return y.jsxs(db,{as:u,ref:l,...at(s,Hu({variant:n,size:o,imageLoaded:c,objectFit:a})),children:[e&&y.jsx(y.Fragment,{children:y.jsx(db.Image,{onLoad:p,src:e,alt:i?void 0:t,"aria-hidden":i,...Hu.parts.avatarImage})}),t&&(!e||!c)&&y.jsx(db.Name,{name:t,preferredInitials:r,...Hu.parts.avatarName})]})}}),jl=en({defaultConfig:{disabled:!1,id:""}})(e=>{const t=co(e.id);return{state:{...e,id:t},events:{}}}),_ie=pe({extends:Hu,base:{flex:"0 0 auto",fontFamily:Ke.default,fontWeight:Le.normal,lineHeight:v.lineHeight.subtext.sm,fontSize:v.fontSize.subtext.sm,letterSpacing:v.letterSpacing.subtext.sm,"&:disabled, &.disabled":{opacity:ut.disabled}}}),wie=he("div")({modelHook:jl})(({size:e,...t},n,a)=>y.jsx(Eie,{isDecorative:!0,as:n,size:Q(18),...Ne(t,[_ie(),a.state.disabled?"disabled":void 0])})),Fr=pe({vars:{backgroundColor:"",borderColor:""},base:({backgroundColor:e,borderColor:t})=>({borderStartStartRadius:0,borderStartEndRadius:v.shape.sm,borderEndStartRadius:0,borderEndEndRadius:v.shape.sm,borderWidth:0,borderInlineStartWidth:0,borderStyle:"solid",borderColor:D(t,R.border.transparent),display:"inline-flex",alignItems:"center",justifyContent:"center",height:v.size.xs,width:v.size.xs,padding:`0 ${v.padding.xxs}`,marginInlineEnd:ht.negate(v.gap.sm),marginInlineStart:v.gap.xs,backgroundColor:D(e,v.color.surface.alt.strong),flex:"0 0 auto"})}),kie=Oe("span")({displayName:"Pill.Count",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,Fr()),children:e})}),Iie=pe({extends:K,base:{marginInlineStart:ht.negate(v.gap.xs),[K.vars.size]:Un.systemIcon.size.sm,flex:"0 0 auto"}}),Tie=he("span")({modelHook:jl})(({icon:e,...t},n)=>y.jsx(na,{as:n,role:"img",icon:e||zne,...Ne(t,Iie())})),xie=pe({extends:M,base:{marginInlineEnd:ht.negate(Q(7)),marginInlineStart:ht.negate(Q(2)),borderRadius:Q(2),height:v.size.xxs,width:v.size.xxs,padding:0,overflow:"visible",flex:"0 0 auto",[M.vars.border]:R.border.transparent,[M.vars.background]:v.color.surface.transparent,[K.vars.color]:R.fg.strong,[K.vars.size]:Un.systemIcon.size.sm,"::after":{content:'""',height:v.size.sm,width:v.size.sm,position:"absolute",left:ht.negate(Q(7)),bottom:ht.negate(Q(7)),margin:0,pointerEvents:"all"},"&:focus-visible, &.focus":{[M.vars.border]:R.border.transparent,...Cc({innerColor:R.border.transparent})},"&:hover, &.hover":{[M.vars.border]:R.border.transparent},"&:active, &.active":{[M.vars.border]:R.border.transparent},"&:disabled, &.disabled":{[M.vars.border]:R.border.transparent,[K.vars.color]:R.fg.disabled}}}),Rie=he("button")({modelHook:jl})(({size:e,icon:t,children:n,"aria-label":a="",...r},i,o)=>y.jsx(i,{disabled:o.state.disabled,"aria-labelledby":`removable-${o.state.id} label-${o.state.id}`,...Ne(r,xie()),children:y.jsx(na,{"aria-label":a,id:`removable-${o.state.id}`,icon:t||Jz,"aria-hidden":!0,role:"img"})})),Aie=pe({base:{flexShrink:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}}),SN=he("span")({modelHook:jl})(({tooltipProps:e,children:t,...n},a,r)=>y.jsx(yp,{...e,children:y.jsx(a,{id:`label-${r.state.id}`,...Ne(n,Aie()),children:t})})),EN=pe({extends:M,vars:{maxWidth:""},base:({maxWidth:e})=>({display:"initial",flexDirection:"row",alignItems:"center",borderRadius:v.shape.sm,fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,lineHeight:v.lineHeight.subtext.sm,boxShadow:"none",outline:"none",fontWeight:Le.medium,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",width:"fit-content",padding:`${Q(2)} ${v.padding.xs}`,height:v.size.xs,position:"relative",gap:v.gap.xs,maxWidth:e,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[M.vars.background]:v.color.surface.alt.strong,[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.strong,[K.vars.color]:"currentColor",[Fr.vars.borderColor]:"transparent","&:has(span)":{display:"flex",lineHeight:v.lineHeight.subtext.lg},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.strong,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.stronger,[K.vars.color]:"currentColor",[Fr.vars.borderColor]:"transparent"},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.stronger,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.strong,[K.vars.color]:"currentColor",[Fr.vars.borderColor]:"transparent"},"&:focus-visible, &.focus":{[M.vars.border]:v.color.brand.border.primary,[M.vars.label]:R.fg.strong,borderColor:v.color.brand.border.primary,[K.vars.color]:"currentColor",...Cc({width:0,innerColor:v.color.brand.border.primary,outerColor:v.color.brand.border.primary,separation:1})},"&:disabled, &.disabled":{[M.vars.background]:v.color.surface.alt.strong,[M.vars.label]:R.fg.disabled,[K.vars.color]:"currentColor",[Fr.vars.backgroundColor]:v.color.surface.alt.strong,[Fr.vars.borderColor]:"transparent"}}),modifiers:{variant:{readOnly:{border:`${Q(1)} solid ${v.color.border.default}`,cursor:"default",[M.vars.background]:R.bg.default,"&:hover, &.hover":{borderColor:v.color.border.default,[M.vars.background]:R.bg.default},"&:focus-visible, &.focus":{[M.vars.background]:R.bg.default},"&:active, &.active":{[M.vars.background]:R.bg.default},"&:disabled, &.disabled":{[M.vars.background]:R.bg.default}},removable:{"&:focus-visible, &.focus":{[M.vars.background]:R.bg.alt.default,[M.vars.border]:R.border.input.default,[M.vars.label]:R.fg.strong,boxShadow:"none"},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.strong,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[Fr.vars.backgroundColor]:v.color.surface.transparent},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.stronger,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[Fr.vars.backgroundColor]:v.color.surface.transparent},"&:disabled, &.disabled":{[M.vars.background]:R.bg.alt.default,[K.vars.color]:"currentColor"},cursor:"default",overflow:"revert",position:"relative"}}}}),pb=Nr("button")({displayName:"Pill",modelHook:jl,subComponents:{Avatar:wie,Count:kie,Icon:Tie,IconButton:Rie,Label:SN}})(({variant:e,maxWidth:t=200,children:n,...a},r,i)=>{const o=typeof t=="number"?Q(t):t,s=e==="readOnly";return e!=null&&e.match(/^(readOnly|removable)$/)?y.jsx(Dl,{as:r!=="button"?r:"span",id:s?i.state.id:void 0,...Ne(a,[i.state.disabled?"disabled":void 0,EN({maxWidth:o,variant:e})]),children:s?y.jsx(SN,{children:n}):n}):y.jsx(r,{disabled:i.state.disabled,...Ne(a,[i.state.disabled?"disabled":void 0,EN({maxWidth:o})]),children:n})}),$r=en({defaultConfig:{...er.defaultConfig,mode:"multiple",shouldVirtualize:!1},requiredConfig:{...er.requiredConfig},contextOverride:er.Context})(e=>{const t=$.useRef([]),n=er(er.mergeConfig(e,{onHide(){r(i),n.events.goTo({id:""})},onFilterChange(){n.events.goTo({id:""})}})),[a,r]=$.useState(()=>(e.initialSelectedIds==="all"?[]:e.initialSelectedIds).map(s=>n.navigation.getItem(s,n)).filter(s=>s)),i=$.useMemo(()=>(n.state.selectedIds==="all"?[]:n.state.selectedIds).map(s=>n.navigation.getItem(s,n)||t.current.find(l=>l.id===s)).filter(s=>s),[n.state.selectedIds,n.state.items]);t.current=i;const o=ya({orientation:"horizontal",onRemove({id:s}){n.events.select({id:s}),r(i.filter(l=>l.id!==s))},shouldVirtualize:!1,items:n.state.visibility==="hidden"?i:a});return{selected:{...o,state:{...o.state,cursorId:$.useMemo(()=>{var s;return o.state.items.find(l=>l.id===o.state.cursorId)?o.state.cursorId:((s=o.state.items[0])==null?void 0:s.id)||""},[o.state.items,o.state.cursorId])}},...n}}),Cie=ue()((e,t)=>({onKeyDown(n){var a;if(n.key==="Backspace"||n.key==="Delete"){const r=n.currentTarget.dataset.id||"",i=XC(r,e.selected);e.selected.events.remove({id:r,event:n}),i?Ey(e.selected,i,n.currentTarget):(a=e.state.inputRef.current)==null||a.focus()}},onClick(n){var i;const a=n.currentTarget.dataset.id||"",r=XC(a,e.selected);e.selected.events.remove({id:a,nextId:r,event:n}),r?Ey(e.selected,r,n.currentTarget):(i=e.state.inputRef.current)==null||i.focus()}})),Nie=Or(ue()(e=>({"aria-selected":!0})),Cie,jC()(e=>e.selected,Hw),jC()(e=>e.selected,$l)),Oie=he("span")({modelHook:$r,elemPropsHook:Nie})(({children:e,removeLabel:t,disabled:n,ref:a,...r},i)=>y.jsxs(pb,{as:i,disabled:n,variant:"removable",children:[y.jsx(pb.Label,{children:e}),y.jsx(pb.IconButton,{"aria-label":t,ref:a,...r})]})),qU=he("div")({modelHook:$r})(({"aria-labelledby":e,disabled:t,removeLabel:n},a,r)=>r.selected.state.items.length?y.jsxs(y.Fragment,{children:[y.jsx("div",{"data-part":"separator"}),y.jsx(Ww,{model:r.selected,as:a,role:"listbox","aria-orientation":"horizontal","aria-labelledby":e,children:i=>y.jsx(Oie,{disabled:t,removeLabel:n,children:i.textValue})})]}):null),GU=pe({base:{border:`1px solid ${R.border.input.default}`,display:"flex",flexDirection:"column",backgroundColor:v.color.surface.default,borderRadius:v.shape.md,boxSizing:"border-box",minHeight:v.size.md,transition:"0.2s box-shadow, 0.2s border-color",margin:0,[Yz.vars.width]:"100%",[K.vars.color]:R.fg.default,"&:hover, &.hover":{borderColor:v.color.border.input.hover},"&:has(:focus-visible:not([disabled])), &.focus":{borderColor:v.color.brand.border.primary,boxShadow:`inset 0 0 0 1px ${v.color.brand.focus.primary}`},'& [data-part="user-input"]':{fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,fontWeight:Le.normal,lineHeight:v.lineHeight.subtext.lg,backgroundColor:v.color.surface.transparent,borderRadius:v.shape.md,'&:where([data-part="user-input"], [data-part="form-input"])':{height:Q(38)},border:"none !important",boxShadow:"none !important",outlineWidth:"0px","&:where(:not([aria-autocomplete]))":{caretColor:"transparent",cursor:"default","&::selection":{backgroundColor:"transparent"}}},'&:has(:disabled, .disabled) :where([data-part="user-input"])':{opacity:ut.disabled,[K.vars.color]:R.fg.disabled},"&:has(:disabled, .disabled)":{opacity:ut.disabled,[K.vars.color]:R.fg.disabled},'&:has(:disabled, .disabled) :where([data-part="form-input"])':{opacity:0,[K.vars.color]:R.fg.disabled},'& :where([data-part="form-input"])':{position:"absolute",top:0,bottom:0,left:0,right:0,opacity:0,cursor:"default",pointerEvents:"none"},'& :where([data-part="separator"])':{backgroundColor:v.color.border.default,height:1,margin:`0 ${v.gap.sm}`},'& :where([data-part="list"])':{display:"flex",gap:v.gap.sm,padding:v.padding.xs,flexWrap:"wrap"}},modifiers:{error:{error:{borderColor:v.color.brand.border.critical,boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.critical}`,backgroundColor:v.color.brand.surface.critical.default,"&:has(:hover, :disabled, :focus-visible), &:is(.hover, .disabled, .focus)":{borderColor:v.color.brand.border.critical},"&:has(:focus-visible:not([disabled])), &.focus":{borderColor:v.color.brand.border.critical,boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.critical}, 0 0 0 2px ${v.color.focus.inverse}, 0 0 0 4px ${v.color.brand.border.primary}`,outlineOffset:Q(2)}},caution:{borderColor:v.color.brand.border.caution,boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.caution.inner}`,backgroundColor:v.color.brand.surface.caution.default,"&:has(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled])), .focus:not(:has([disabled]))":{borderColor:v.color.brand.border.caution},"&:hover, &.hover":{borderColor:v.color.brand.border.caution},"&:has(:focus-visible, .focus):not(:has([disabled]))":{boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.caution.inner},
308
+ </svg>`,filename:"wd-icon-x-small.svg",category:"Core",tags:["close","exit","X"]},K=pe({extends:Kz,vars:{color:"",accentColor:"",backgroundColor:""},base:({size:e,accentColor:t,backgroundColor:n,color:a})=>({"& svg":{width:D(e,Un.systemIcon.size.lg),height:D(e,Un.systemIcon.size.lg)},".wd-icon .wd-icon-fill":{fill:D(a,Un.systemIcon.color.fill)},".wd-icon .wd-icon-accent, & .wd-icon-accent2":{fill:D(t,D(a,Un.systemIcon.color.accent))},".wd-icon .wd-icon-background":{fill:D(n,"transparent")},"@media (prefers-contrast: more)":{".wd-icon .wd-icon-fill, .wd-icon .wd-icon-accent":{color:"currentColor",fill:"currentColor"}}}),modifiers:{}}),na=Oe("span")({displayName:"SystemIcon",Component:({accent:e,background:t,color:n,icon:a,size:r,...i},o,s)=>y.jsx(Lne,{as:s,src:a,type:Nn.System,ref:o,...at(i,K({size:One(r,Un.systemIcon.size),color:n,accentColor:e,backgroundColor:t}))})}),qne=yJ(Dl.as("span"))({position:"relative",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),Gne=Oe("span")({displayName:"ButtonLabel",Component:({children:e,...t},n,a)=>y.jsx(qne,{as:a,ref:n,...t,children:e})}),Hne=pe({base:{display:"inline-block"},modifiers:{size:{extraSmall:{[K.vars.size]:Un.systemIcon.size.xs},small:{[K.vars.size]:Un.systemIcon.size.md},medium:{[K.vars.size]:Un.systemIcon.size.md},large:{[K.vars.size]:Un.systemIcon.size.lg}}}}),Vne=Oe("span")({Component:({icon:e,size:t="medium",shouldMirrorIcon:n=!1,shouldMirrorIconInRTL:a=!1,...r},i,o)=>e===void 0?null:y.jsx(na,{ref:i,as:o,icon:e,shouldMirror:n,shouldMirrorInRTL:a,...at(r,Hne({size:t}))})}),Y={default:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),focus:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),hover:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),active:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius"),disabled:Za("background","border","boxShadowInner","boxShadowOuter","icon","label","opacity","borderRadius")},M=pe({vars:{background:"",border:"",boxShadowInner:"",boxShadowOuter:"",label:"",opacity:"",borderRadius:""},base:({background:e,border:t,boxShadowInner:n,boxShadowOuter:a,label:r,opacity:i,borderRadius:o})=>({fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,fontWeight:Le.bold,backgroundColor:D(Y.default.background,D(e,"transparent")),color:D(Y.default.label,D(r,R.fg.strong)),borderWidth:Q(1),borderStyle:"solid",gap:v.gap.sm,borderColor:D(Y.default.border,D(t,"transparent")),cursor:"pointer",display:"inline-flex",boxShadow:"none",alignItems:"center",justifyContent:"center",outline:`${Q(2)} transparent`,whiteSpace:"nowrap",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",borderRadius:D(Y.default.borderRadius,D(o,v.shape.full)),position:"relative",verticalAlign:"middle",overflow:"hidden",[K.vars.color]:D(Y.default.icon,R.fg.strong),transition:"box-shadow 120ms linear, border 120ms linear, background-color 120ms linear, color 120ms linear","&:disabled, &:disabled:active, &.disabled":{cursor:"default",boxShadow:"none",opacity:D(Y.default.opacity,D(i,ut.full))},"&:focus-visible, &.focus":{backgroundColor:D(Y.focus.background,D(e,"transparent")),borderColor:D(Y.focus.border,D(t,"transparent")),color:D(Y.focus.label,D(r,R.fg.strong)),[K.vars.color]:D(Y.focus.icon,R.fg.strong),outline:`${Q(2)} solid transparent`,outlineOffset:Q(2),boxShadow:`0 0 0 ${Q(2)} ${D(Y.focus.boxShadowInner,D(n,v.color.border.inverse.default))},0 0 0 ${Q(4)} ${D(Y.focus.boxShadowOuter,D(a,v.color.brand.focus.primary))}`},"&:hover, &.hover":{backgroundColor:D(Y.hover.background,D(e,v.color.surface.contrast.strong)),borderColor:D(Y.hover.border,D(t,"transparent")),color:D(Y.hover.label,D(r,R.fg.stronger)),[K.vars.color]:D(Y.hover.icon,R.fg.stronger)},"&:hover:active":{transitionDuration:"40ms"},"&:active, &.active":{backgroundColor:D(Y.active.background,D(e,"transparent")),borderColor:D(Y.active.border,D(t,"transparent")),color:D(Y.active.label,D(r,R.fg.strong)),[K.vars.color]:D(Y.active.icon,R.fg.strong)},"&:disabled, &.disabled":{backgroundColor:D(Y.disabled.background,D(e,"transparent")),borderColor:D(Y.disabled.border,D(t,"transparent")),color:D(Y.disabled.label,D(r,R.fg.strong)),[K.vars.color]:D(Y.disabled.icon,"currentColor")},"@media (prefers-contrast: more)":{'&[aria-pressed="true"]':{outline:`${Q(2)} solid transparent`,outlineOffset:`-${Q(1)}`},'&[aria-pressed="true"]:focus-visible, &[aria-pressed="true"].focus':{outline:`${Q(4)} double transparent`,outlineOffset:0}},svg:{pointerEvents:"none"}}),modifiers:{size:{large:{fontSize:v.fontSize.body.sm,lineHeight:v.lineHeight.body.sm,letterSpacing:v.letterSpacing.body.sm,height:v.size.lg,paddingInline:v.padding.xxl,minWidth:Qe.size1400},medium:{fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,minWidth:Qe.size1200,paddingInline:v.padding.xl,height:v.size.md},small:{fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,height:v.size.sm,minWidth:Qe.size1000,paddingInline:v.padding.md,gap:v.gap.xs},extraSmall:{fontSize:v.fontSize.subtext.md,lineHeight:v.lineHeight.subtext.md,letterSpacing:v.letterSpacing.subtext.md,height:v.size.xs,minWidth:"auto",paddingInline:v.padding.sm,gap:v.gap.xs}},grow:{true:{width:"100%",maxWidth:"100%"}},iconPosition:{only:{padding:0},start:{},end:{}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:v.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xl,paddingInlineEnd:v.padding.xxl}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:v.padding.xxl,paddingInlineEnd:v.padding.xl}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:v.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:v.padding.lg,paddingInlineEnd:v.padding.xl}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:v.padding.xl,paddingInlineEnd:v.padding.lg}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:v.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.md}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:v.padding.md,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:v.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}}]}),Su=Oe("button")({displayName:"BaseButton",Component:({children:e,size:t,fillIcon:n,grow:a,iconPosition:r,icon:i,colors:o,...s},l,u)=>y.jsx(u,{ref:l,type:"button",...Ne(s,[M({size:t,iconPosition:r,grow:a}),Y.default((o==null?void 0:o.default)||{}),Y.focus((o==null?void 0:o.focus)||{}),Y.hover((o==null?void 0:o.hover)||{}),Y.active((o==null?void 0:o.active)||{}),Y.disabled((o==null?void 0:o.disabled)||{})]),children:e}),subComponents:{Icon:Vne,Label:Gne}}),Zw=Oe("button")({displayName:"Button",Component:({children:e,icon:t,colors:n,iconPosition:a,shouldMirrorIcon:r,shouldMirrorIconInRTL:i,size:o="medium",...s},l,u)=>{const c=a||(t?e?"start":"only":void 0);return y.jsxs(Su,{as:u,ref:l,size:o,icon:t,colors:n,iconPosition:c,...s,children:[t&&c==="start"&&y.jsx(Su.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i}),e&&y.jsx(Su.Label,{children:e}),t&&c&&["only","end"].includes(c)&&y.jsx(Su.Icon,{size:o,icon:t,shouldMirrorIcon:r,shouldMirrorIconInRTL:i})]})}}),Wne=pe({extends:M,base:{[M.vars.background]:D(xt.base,v.color.brand.accent.primary),[M.vars.borderRadius]:v.shape.full,[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.default.icon,"currentColor"),"&:focus-visible, &.focus":{[M.vars.background]:D(xt.base,v.color.brand.accent.primary),[M.vars.label]:D(xt.accent,R.fg.inverse),[M.vars.boxShadowInner]:v.color.focus.inverse,[M.vars.boxShadowOuter]:v.color.brand.focus.primary,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:D(xt.base,v.color.brand.accent.primary),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.hover}),[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:D(xt.base,v.color.brand.accent.primary),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.pressed}),[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:D(xt.base,v.color.brand.accent.primary),[M.vars.label]:D(xt.accent,R.fg.inverse),[K.vars.color]:D(Y.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[M.vars.background]:D(xt.lightest,v.color.surface.inverse),[M.vars.borderRadius]:v.shape.full,[M.vars.label]:R.fg.strong,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:D(xt.lightest,v.color.surface.inverse),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.hover}),[M.vars.label]:R.fg.stronger,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[M.vars.background]:D(xt.lightest,v.color.surface.inverse),[M.vars.label]:R.fg.strong,[M.vars.boxShadowInner]:R.border.contrast.default,[M.vars.boxShadowOuter]:v.color.focus.inverse,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:D(xt.lightest,v.color.surface.inverse),mixinColor:v.color.accent.overlay.mixin,mixinValue:v.opacity.accent.pressed}),[M.vars.label]:R.fg.stronger,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:D(xt.lightest,v.color.surface.inverse),[M.vars.label]:R.fg.strong,[K.vars.color]:D(Y.disabled.icon,"currentColor")}}}}}),Zne=Oe("button")({displayName:"PrimaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>y.jsx(Zw,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Wne({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),Yne=pe({extends:M,base:{[M.vars.background]:v.color.surface.transparent,[M.vars.borderRadius]:v.shape.full,[M.vars.border]:R.border.input.default,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.default,[M.vars.label]:R.fg.strong,[M.vars.boxShadowInner]:v.color.focus.inverse,[M.vars.boxShadowOuter]:v.color.brand.focus.primary,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.label]:R.fg.strong,[M.vars.border]:v.color.border.input.hover,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.strong,[M.vars.border]:v.color.border.input.hover,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor")}},modifiers:{variant:{inverse:{[M.vars.background]:v.color.surface.transparent,[M.vars.border]:v.color.border.inverse.default,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.border]:v.color.border.inverse.default,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.inverse,[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.contrast.default,[M.vars.boxShadowInner]:R.border.contrast.default,[M.vars.boxShadowOuter]:v.color.focus.inverse,[K.vars.color]:D(Y.focus.icon,"currentColor")},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.border]:v.color.border.inverse.default,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor")}}}}}),Oc=Oe("button")({displayName:"SecondaryButton",Component:({children:e,variant:t,size:n,iconPosition:a,grow:r,cs:i,...o},s,l)=>y.jsx(Zw,{as:l,ref:s,iconPosition:a,size:n,grow:r,cs:[Yne({variant:t,iconPosition:a,grow:r,size:n}),i],...o,children:e})}),Kne=pe({extends:M,base:{paddingInline:v.padding.xs,minWidth:"auto",borderWidth:Q(2),[M.vars.borderRadius]:v.shape.full,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.focus.icon,"currentColor"),[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.contrast.default,...Cc({width:2,separation:0,innerColor:v.color.focus.inverse,outerColor:v.color.brand.focus.primary})},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.label]:R.fg.strong,[K.vars.color]:R.fg.strong,textDecoration:"underline"},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.strong,[K.vars.color]:D(Y.active.icon,"currentColor"),textDecoration:"underline"},"&:disabled, &.disabled":{textDecoration:"none",[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.default,[K.vars.color]:D(Y.default.icon,"currentColor")}},modifiers:{iconPosition:{only:{padding:0,[K.vars.color]:D(Y.default.icon,R.fg.default),"&:focus-visible, &.focus":{[K.vars.color]:D(Y.focus.icon,R.fg.strong)},"&:hover, &.hover":{[K.vars.color]:D(Y.hover.icon,R.fg.strong)},"&:active, &.active":{[K.vars.color]:D(Y.active.icon,R.fg.strong)},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[K.vars.color]:D(Y.disabled.icon,R.fg.default)}},start:{},end:{}},variant:{inverse:{[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor"),"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.hover.icon,"currentColor")},"&:focus-visible, &.focus":{[M.vars.background]:v.color.surface.inverse,[M.vars.label]:R.fg.contrast.default,[K.vars.color]:D(Y.focus.icon,"currentColor"),...Cc({width:2,separation:2,innerColor:R.border.contrast.default,outerColor:v.color.focus.inverse})},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.transparent,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.active.icon,"currentColor")},"&:disabled, &.disabled":{[M.vars.opacity]:ut.disabled,[M.vars.background]:v.color.surface.transparent,[M.vars.label]:R.fg.inverse,[K.vars.color]:D(Y.default.icon,"currentColor")}}}},compound:[{modifiers:{size:"large",iconPosition:"only"},styles:{minWidth:v.size.lg}},{modifiers:{size:"large",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"large",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"medium",iconPosition:"only"},styles:{minWidth:v.size.md}},{modifiers:{size:"medium",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"medium",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"small",iconPosition:"only"},styles:{minWidth:v.size.sm}},{modifiers:{size:"small",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.sm}},{modifiers:{size:"small",iconPosition:"end"},styles:{paddingInlineStart:v.padding.sm,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"only"},styles:{minWidth:v.size.xs}},{modifiers:{size:"extraSmall",iconPosition:"start"},styles:{paddingInlineStart:v.padding.xxs,paddingInlineEnd:v.padding.xs}},{modifiers:{size:"extraSmall",iconPosition:"end"},styles:{paddingInlineStart:v.padding.xs,paddingInlineEnd:v.padding.xxs}}]}),Xne=Oe("button")({displayName:"TertiaryButton",Component:({children:e,icon:t,size:n="medium",variant:a,iconPosition:r,grow:i,cs:o,...s},l,u)=>{const c=r||(t?e?"start":"only":void 0);return y.jsx(Zw,{as:u,ref:l,icon:t,size:n,iconPosition:r,grow:i,cs:[Kne({size:n,variant:a,grow:i,iconPosition:c}),o],...s,children:e})}}),Ml=en({})(()=>({state:{inputRef:$.useRef(null)},events:{}})),Qz=pe({vars:{insetInlineStart:"initial",insetInlineEnd:"initial",width:v.size.md,height:v.size.md,pointerEvents:""},base:({width:e,height:t,insetInlineStart:n,insetInlineEnd:a})=>({display:"flex",position:"absolute",alignItems:"center",justifyContent:"center",width:e,height:t,insetInlineStart:n,insetInlineEnd:a}),modifiers:{pointerEvents:{_:({pointerEvents:e})=>({pointerEvents:e})}}}),ob=he("div")({modelHook:Ml})(({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:a,height:r,...i},o)=>y.jsx(o,{...Ne(i,Qz({pointerEvents:e,insetInlineStart:yr(t),insetInlineEnd:yr(n),width:yr(a),height:yr(r)}))})),sb=he("div")({modelHook:Ml})(({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:a,height:r,...i},o)=>y.jsx(o,{...Ne(i,Qz({pointerEvents:e,insetInlineStart:t,insetInlineEnd:n,width:yr(a),height:yr(r)}))})),Jne=ue()((e,t)=>({ref:ua(t,e.state.inputRef),placeholder:""})),Qne=pe({vars:{paddingInlineStart:"",paddingInlineEnd:""},base:{display:"flex",width:"100%"},modifiers:{paddingInlineStart:{_:({paddingInlineStart:e})=>({paddingInlineStart:e})},paddingInlineEnd:{_:({paddingInlineEnd:e})=>({paddingInlineEnd:e})}}}),eN=he(vp)({modelHook:Ml,elemPropsHook:Jne})(({paddingInlineStart:e,paddingInlineEnd:t,...n},a)=>y.jsx(a,{as:a,...Ne(n,Qne({paddingInlineStart:yr(e),paddingInlineEnd:yr(t)}))})),ere=ue()(e=>({role:"presentation",tabIndex:-1,icon:Jz,size:"small",onMouseDown(t){t.preventDefault()},onClick(){yy(e.state.inputRef.current,"")}})),tre=he(Xne)({modelHook:Ml,elemPropsHook:ere})((e,t)=>y.jsx(t,{"data-part":"input-group-clear-button",...at(e)})),yr=e=>typeof e=="number"?`${e}px`:e,Eu=e=>{if(e.length!==0)return e.length===1?e[0]:`calc(${e.map(yr).join(" + ")})`},nre=pe({base:{display:"flex",position:"relative",alignItems:"center",'& :has([data-part="input-group-clear-button"])':{transition:"opacity 300ms ease"},'&:where(:has(input:placeholder-shown)) :has([data-part="input-group-clear-button"])':{opacity:0,pointerEvents:"none"}}}),Dn=Nr("div")({displayName:"InputGroup",modelHook:Ml,subComponents:{InnerStart:ob,Input:eN,InnerEnd:sb,ClearButton:tre}})(({children:e,...t},n)=>{const a=[],r=[];$.Children.forEach(e,l=>{if($.isValidElement(l)&&l.type===ob){const u=In(l.props.width||v.size.md);a.push(u)}if($.isValidElement(l)&&l.type===sb){const u=In(l.props.width||v.size.md);r.push(u)}});let i=0,o=0;const s=$.Children.map(e,l=>{if($.isValidElement(l)){if(l.type===eN)return $.cloneElement(l,{paddingInlineStart:Eu(a),paddingInlineEnd:Eu(r)});if(l.type===ob){const u=Eu(a.slice(0,i))||"0px";return i++,$.cloneElement(l,{insetInlineStart:u})}if(l.type===sb){const u=Eu(r.slice(o+1,r.length))||"0px";return o++,$.cloneElement(l,{insetInlineEnd:u})}}return l});return y.jsx(n,{...Ne(t,nre()),children:s})}),Pl=pe({base:{},modifiers:{typeLevel:{"title.large":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.title.lg,lineHeight:v.lineHeight.title.lg,color:R.fg.strong},"title.medium":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.title.md,lineHeight:v.lineHeight.title.md,color:R.fg.strong},"title.small":{fontFamily:Ke.default,fontWeight:Le.bold,lineHeight:v.lineHeight.title.sm,fontSize:v.fontSize.title.sm,color:R.fg.strong},"heading.large":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.heading.lg,lineHeight:v.lineHeight.heading.lg,color:R.fg.strong},"heading.medium":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.heading.md,lineHeight:v.lineHeight.heading.md,color:R.fg.strong},"heading.small":{fontFamily:Ke.default,fontWeight:Le.bold,fontSize:v.fontSize.heading.sm,lineHeight:v.lineHeight.heading.sm,color:R.fg.strong},"body.large":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.body.lg,lineHeight:v.lineHeight.body.lg,color:R.fg.default},"body.medium":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.body.md,lineHeight:v.lineHeight.body.md,color:R.fg.default},"body.small":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.body.sm,lineHeight:v.lineHeight.body.sm,letterSpacing:v.letterSpacing.body.sm,color:R.fg.default},"subtext.large":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,color:R.fg.default},"subtext.medium":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.md,lineHeight:v.lineHeight.subtext.md,letterSpacing:v.letterSpacing.subtext.md,color:R.fg.default},"subtext.small":{fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.sm,lineHeight:v.lineHeight.subtext.sm,letterSpacing:v.letterSpacing.subtext.sm,color:R.fg.default}},variant:{error:{color:v.color.brand.fg.critical.default},hint:{color:R.fg.muted.default},inverse:{color:R.fg.inverse}}}});Oe("span")({displayName:"Text",Component:({children:e,typeLevel:t,variant:n,...a},r,i)=>y.jsx(i,{ref:r,...Ne(a,Pl({typeLevel:t,variant:n})),children:e})});const rre=pe({extends:Pl,base:{},defaultModifiers:{typeLevel:"subtext.large"}}),are=Oe("div")({displayName:"Card.Body",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,rre()),children:e})}),ire=pe({extends:Pl,base:{color:R.fg.strong,fontWeight:Le.bold,marginBlock:v.padding.none},defaultModifiers:{typeLevel:"body.large"}}),ore=Oe("h3")({displayName:"Card.Heading",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,ire()),children:e})}),sre=pe({base:{display:"flex",flexDirection:"column",gap:v.gap.lg,padding:v.padding.xl,backgroundColor:v.color.surface.default,borderRadius:v.shape.xxl,border:`${Q(1)} solid ${v.color.border.default}`},modifiers:{variant:{borderless:{borderColor:"transparent"},tonal:{backgroundColor:v.color.surface.alt.default,borderColor:R.border.transparent}}}}),lre=Oe("div")({displayName:"Card",Component:({children:e,variant:t,...n},a,r)=>y.jsx(r,{ref:a,...Ne(n,sre({variant:t})),children:e}),subComponents:{Heading:ore,Body:are}});function ure(e){return e.length?e[e.length-1]:null}function eU(e,t){const{min:n,max:a}=Yw.zIndex;return t<=a-n?e+n:Math.max(n,a-(t-e)+1)}function lb(e){const t=e.length;e.forEach((n,a)=>{n.style.zIndex=String(eU(a,t))})}function cre(e,t){let n=e;do{const a=t.find(r=>r.element===n);if(a)return a.element}while(n=n.parentElement)}function dre(e,t){return t.filter(a=>a.owner).map(a=>({element:a.element,parent:cre(a.owner,t)})).filter(a=>a.parent===e.element)}function tU(e,t){const n=t.split("."),a=n.splice(0,1)[0];return n.length&&e[a]?tU(e[a],n.join(".")):e[a]}function nU(e,t,n){const a=t.split("."),r=a.splice(0,1)[0];return a.length?(e[r]===void 0&&(e[r]={}),nU(e[r],a.join("."),n)):e[r]=n,n}typeof window<"u"&&(window.workday=window.workday||{});const rU=e=>{if(typeof window<"u")return tU(window,e)},aU=(e,t)=>{typeof window<"u"&&nU(window,e,t)},tN=(e,t)=>{var a;let n=(a=e.container)==null?void 0:a.call(e);return n===document.body&&(n=t==null?void 0:t.ownerDocument.body),n||document.body},Yw=rU("workday.__popupStack")||{description:"Global popup stack from @workday/canvas-kit/popup-stack",container:e=>(e==null?void 0:e.ownerDocument.body)||document.body,items:[],zIndex:{min:30,max:50,getValue:eU},_adapter:{}};aU("workday.__popupStack",Yw);const gr=rU("workday.__popupStackOfStacks")||[Yw];gr.description="Global stack of popup stacks from @workday/canvas-kit/popup-stack";aU("workday.__popupStackOfStacks",gr);function dr(){return gr[gr.length-1]}const At={createContainer(){var n;const e=dr();if((n=e._adapter)!=null&&n.createContainer)return e._adapter.createContainer();const t=document.createElement("div");return t.style.position="relative",t},add(e){var n;const t=dr();if((n=t._adapter)!=null&&n.add){t._adapter.add(e);return}t.items.push(e),tN(t,e.owner).appendChild(e.element),lb(At.getElements())},remove(e){var n;const t=gr.find(a=>!!At.getElements(a).find(r=>r===e));if(t){if((n=t._adapter)!=null&&n.remove){t._adapter.remove(e);return}const a=t.items.find(r=>r.element===e);t.items=t.items.filter(r=>r.element!==e),tN(t,a==null?void 0:a.owner).removeChild(e),lb(At.getElements(t))}},isTopmost(e){var a;const t=dr();if((a=t._adapter)!=null&&a.isTopmost)return t._adapter.isTopmost(e);const n=ure(t.items);return n?n.element===e:!1},getElements(e){var n;const t=e||dr();return(n=t._adapter)!=null&&n.getElements?t._adapter.getElements():t.items.map(a=>a.element)},bringToTop(e){var a;const t=dr();if((a=t._adapter)!=null&&a.bringToTop){t._adapter.bringToTop(e);return}const n=t.items.find(r=>r.element===e);if(n)t.items=[...t.items.filter(r=>r!==n),n],dre(n,t.items).forEach(r=>{At.bringToTop(r.element)}),lb(At.getElements());else{const r=new Error;console.warn("Could not find item",r.stack)}},contains(e,t){var i;const n=dr();if((i=n._adapter)!=null&&i.contains)return n._adapter.contains(e,t);const a=n.items.find(o=>o.element===e);if(a)return r(a,t);return!1;function r(o,s,l=0){var c;if(l>30)return!1;if(o.element===s||o.owner===s||o.element.contains(s)||(c=o.owner)!=null&&c.contains(s))return!0;const u=n.items.find(d=>d.owner&&o.element.contains(d.owner));return u?r(u,s,l+1):!1}},pushStackContext(e){var a,r;const t=dr();if((a=t._adapter)!=null&&a.pushStackContext)return t._adapter.pushStackContext(e);if(((r=t.container)==null?void 0:r.call(t))===e)return;const n={items:[],zIndex:t.zIndex,container:()=>e,_adapter:{}};gr.push(n)},popStackContext(e){var n,a;const t=dr();if((n=t._adapter)!=null&&n.popStackContext)return t._adapter.popStackContext(e);((a=t.container)==null?void 0:a.call(t))===e&&gr.length>1&&gr.pop()},transferToCurrentContext(e){var a;const t=dr();if((a=t._adapter)!=null&&a.transferToCurrentContext)return t._adapter.transferToCurrentContext(e);if(t.items.find(r=>r.element===e.element))return;gr.find(r=>!!r.items.find(i=>i.element===e.element))&&At.remove(e.element),At.add(e)}};let _u=null;mr.isEnabled&&mr.on("change",()=>{mr.isFullscreen?mr.element&&(_u=mr.element,At.pushStackContext(_u)):_u&&At.popStackContext(_u)});const ub=en({defaultConfig:{id:"",initialVisibility:"hidden"}})(e=>{const t=co(e.id),[n,a]=$.useState(e.initialVisibility||"hidden");return{state:{id:t,visibility:n},events:{show(o){a("visible")},hide(o){a("hidden")}}}}),nN=()=>{},ga=en({defaultContext:{state:{},events:{show:nN,hide:nN}},defaultConfig:{...ub.defaultConfig,returnFocusRef:void 0,initialFocusRef:void 0},requiredConfig:ub.requiredConfig})(e=>{const t=ee.useRef(null),n=ee.useRef(null),[a,r]=ee.useState("bottom"),i=ub(e),o={...i.state,stackRef:t,targetRef:n,initialFocusRef:e.initialFocusRef,returnFocusRef:e.returnFocusRef,placement:a},s={...i.events,updatePlacement(l){r(l.placement)}};return{state:o,events:s}});ga.Context;const iU=ue()(e=>{const t=$.useCallback(a=>{e.state.stackRef.current&&document.contains(a.target)&&!At.contains(e.state.stackRef.current,a.target)&&e.events.hide(a)},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{var a;if(n)return document.addEventListener("mousedown",t),(a=e.state.stackRef.current)==null||a.setAttribute("data-behavior-click-outside-close","always"),()=>{document.removeEventListener("mousedown",t)}},[e.state.stackRef,n,t]),{}}),oU=ue()(e=>{const t=$.useCallback(a=>{(a.key==="Esc"||a.key==="Escape")&&At.isTopmost(e.state.stackRef.current)&&e.events.hide(a)},[e.state.stackRef,e.events]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[t,n]),{}}),pre=ue()(e=>{const t=$.useCallback(a=>{mr.isFullscreen||e.events.hide(a)},[e.events]),n=e.state.visibility!=="hidden";return $.useEffect(()=>{if(n&&mr.isEnabled)return mr.on("change",t),()=>{mr.off("change",t)}},[t,n]),{}});function sU(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"||t.overflowX==="scroll"||t.overflowX==="auto"?e:sU(e.parentElement)}const fre=ue()(e=>{const t=e.state.visibility!=="hidden",n=$.useCallback(a=>{a[0].intersectionRatio<.5&&e.events.hide()},[e.events]);return $.useLayoutEffect(()=>{if(!t||!e.state.targetRef.current)return;const a=e.state.targetRef.current,r=sU(a),i=new IntersectionObserver(n,{root:r,threshold:.5});return i.observe(e.state.targetRef.current),()=>{i.disconnect()}},[n,e.state.targetRef,t]),{}}),mre=ue()(e=>{const t=$.useCallback(a=>{if(e.state.stackRef.current&&a.key==="Tab"){const r=fte(e.state.stackRef.current),i=mte(e.state.stackRef.current);a.getModifierState("Shift")&&document.activeElement===r?(a.preventDefault(),e.events.hide(a)):!a.getModifierState("Shift")&&(Array.isArray(i)&&document.activeElement&&i.includes(document.activeElement)||document.activeElement===i)&&e.events.hide(a)}},[e.events,e.state.stackRef]),n=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{if(n)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[n,t]),{}}),lU=ue()(({state:e,events:t},n)=>{const a=ua(n,e.stackRef),r=$.useRef(e.placement);r.current=e.placement;const i=$.useCallback(o=>{o!==r.current&&t.updatePlacement({placement:o})},[t]);return{open:e.visibility!=="hidden",anchorElement:e.targetRef,ref:a,onPlacementChange:i}}),gre=(e,t)=>{const{elementRef:n,localRef:a}=ji(e),r=$.useContext(bs),{style:i}=xz(r,{}),o=$.useRef(!0),[s]=$.useState(()=>{if(o.current){const l=At.createContainer();return n(l),o.current=!1,l}return a.current});return $.useLayoutEffect(()=>{const l=a.current;if(!l)return;const u=Object.keys(i);if(u.length!==0)for(const c of u)l.style.setProperty(c,i[c])},[a,i]),$.useLayoutEffect(()=>{if(s!==a.current)throw Error("The 'ref' passed to usePopupStack should not be applied to a React element. This will cause a runtime error where the PopupStack and React compete for the element. Instead use ReactDOM.createPortal(<YourComponent />, ref.current)");const l=t?"current"in t?t.current||void 0:t:void 0,u=a.current;return At.add({element:u,owner:l}),()=>{At.remove(u)}},[a,t,s]),$.useLayoutEffect(()=>{var c,d;let u=(t?"current"in t?t.current:t:void 0)??void 0;if(u==null&&typeof document<"u"){const p=document.activeElement,m=a.current;u=(p&&m&&!m.contains(p)?p:document.body).closest("[dir]")??document.documentElement}if(u){const p=u.getAttribute("dir");(p!=null?p.toLowerCase()==="rtl":hz(u))?(c=a.current)==null||c.setAttribute("dir","rtl"):(d=a.current)==null||d.setAttribute("dir","ltr")}},[a,t]),a},uU=ue()(({events:e,state:t},n)=>({ref:ua(n,t.targetRef),onClick:r=>{t.targetRef.current instanceof Element||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r)}})),hre=ue()(({events:e,state:t},n)=>({ref:ua(n,t.targetRef),onContextMenu:r=>{t.targetRef.current||(t.targetRef.current=r.currentTarget),t.visibility!=="hidden"?e.hide(r):e.show(r),r.preventDefault()}}));function cU(e){if(e===document.body||!e.parentElement)return e;const t=getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"?e:cU(e.parentElement)}function dU(e){return e===null||e===document.body||!e.parentElement?null:pte(e)?e:dU(e.parentElement)}function rN(e,t){const n=e.getBoundingClientRect();return n.top+n.height/2<t.top||n.bottom-n.height/2>t.bottom||n.left+n.width/2<t.left||n.right-n.width/2>t.right}const vre=ue()(e=>{const t=e.state.visibility!=="hidden",n=$.useRef(null),a=$.useRef(!1),r=$.useCallback(o=>{o.key==="Tab"&&(a.current=!0)},[]),i=$.useCallback(o=>{e.state.stackRef.current&&o.target instanceof Element&&(At.contains(e.state.stackRef.current,o.target)||(n.current=o.target))},[e.state.stackRef]);return $.useLayoutEffect(()=>{if(!t)return;const o=(e.state.returnFocusRef||e.state.targetRef).current;return document.addEventListener("mousedown",i,!0),document.addEventListener("keydown",r,!0),()=>{if(document.removeEventListener("mousedown",i,!0),document.removeEventListener("keydown",r,!0),!o)return;const l=cU(o).getBoundingClientRect(),u={left:0,top:0,right:window.innerWidth,bottom:window.innerHeight};if(n.current&&dU(n.current)||rN(o,l)||rN(o,u)){n.current=null;return}document.activeElement!==document.body&&e.state.stackRef.current&&document.activeElement instanceof Element&&!At.contains(e.state.stackRef.current,document.activeElement)||a.current?FC(o):requestAnimationFrame(()=>{FC(o)}),n.current=null}},[e.state.returnFocusRef,e.state.targetRef,t,i,r,e.state.stackRef]),{}}),pU=e=>{const[t,n]=e.split("-");return{vertical:t==="top"?"bottom":t==="bottom"||n==="end"?"top":n==="start"?"bottom":"center",horizontal:t==="left"?"right":t==="right"||n==="end"?"left":n==="start"?"right":"center"}};var Tn="top",Gn="bottom",Hn="right",xn="left",Kw="auto",Fl=[Tn,Gn,Hn,xn],Bi="start",Xw="end",bre="clippingParents",fU="viewport",xo="popper",yre="reference",aN=Fl.reduce(function(e,t){return e.concat([t+"-"+Bi,t+"-"+Xw])},[]),mU=[].concat(Fl,[Kw]).reduce(function(e,t){return e.concat([t,t+"-"+Bi,t+"-"+Xw])},[]),Sre="beforeRead",Ere="read",_re="afterRead",wre="beforeMain",kre="main",Ire="afterMain",Tre="beforeWrite",xre="write",Rre="afterWrite",Are=[Sre,Ere,_re,wre,kre,Ire,Tre,xre,Rre];function Vn(e){return e?(e.nodeName||"").toLowerCase():null}function Wn(e){if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ss(e){var t=Wn(e).Element;return e instanceof t||e instanceof Element}function or(e){var t=Wn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cre(e){var t=Wn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Nre(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!or(i)||!Vn(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(o){var s=r[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Ore(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var r=t.elements[a],i=t.attributes[a]||{},o=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=o.reduce(function(l,u){return l[u]="",l},{});!or(r)||!Vn(r)||(Object.assign(r.style,s),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const Lre={name:"applyStyles",enabled:!0,phase:"write",fn:Nre,effect:Ore,requires:["computeStyles"]};function ir(e){return e.split("-")[0]}function Jw(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function gU(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cre(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Er(e){return Wn(e).getComputedStyle(e)}function $re(e){return["table","td","th"].indexOf(Vn(e))>=0}function Lr(e){return((Ss(e)?e.ownerDocument:e.document)||window.document).documentElement}function bp(e){return Vn(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Lr(e)}function iN(e){if(!or(e)||Er(e).position==="fixed")return null;var t=e.offsetParent;if(t){var n=Lr(t);if(Vn(t)==="body"&&Er(t).position==="static"&&Er(n).position!=="static")return n}return t}function Dre(e){for(var t=bp(e);or(t)&&["html","body"].indexOf(Vn(t))<0;){var n=Er(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function zl(e){for(var t=Wn(e),n=iN(e);n&&$re(n)&&Er(n).position==="static";)n=iN(n);return n&&Vn(n)==="body"&&Er(n).position==="static"?t:n||Dre(e)||t}function Qw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qu(e,t,n){return Math.max(e,Math.min(t,n))}function hU(){return{top:0,right:0,bottom:0,left:0}}function vU(e){return Object.assign(Object.assign({},hU()),e)}function bU(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}function Mre(e){var t,n=e.state,a=e.name,r=n.elements.arrow,i=n.modifiersData.popperOffsets,o=ir(n.placement),s=Qw(o),l=[xn,Hn].indexOf(o)>=0,u=l?"height":"width";if(!(!r||!i)){var c=n.modifiersData[a+"#persistent"].padding,d=Jw(r),p=s==="y"?Tn:xn,m=s==="y"?Gn:Hn,b=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],S=i[s]-n.rects.reference[s],I=zl(r),h=I?s==="y"?I.clientHeight||0:I.clientWidth||0:0,f=b/2-S/2,g=c[p],E=h-d[u]-c[m],w=h/2-d[u]/2+f,k=qu(g,w,E),T=s;n.modifiersData[a]=(t={},t[T]=k,t.centerOffset=k-w,t)}}function Pre(e){var t=e.state,n=e.options,a=e.name,r=n.element,i=r===void 0?"[data-popper-arrow]":r,o=n.padding,s=o===void 0?0:o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||gU(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[a+"#persistent"]={padding:vU(typeof s!="number"?s:bU(s,Fl))}))}const Fre={name:"arrow",enabled:!0,phase:"main",fn:Mre,effect:Pre,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var zre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ure(e){var t=e.x,n=e.y,a=window,r=a.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}function oN(e){var t,n=e.popper,a=e.popperRect,r=e.placement,i=e.offsets,o=e.position,s=e.gpuAcceleration,l=e.adaptive,u=Ure(i),c=u.x,d=u.y,p=i.hasOwnProperty("x"),m=i.hasOwnProperty("y"),b=xn,S=Tn,I=window;if(l){var h=zl(n);h===Wn(n)&&(h=Lr(n)),r===Tn&&(S=Gn,d-=h.clientHeight-a.height,d*=s?1:-1),r===xn&&(b=Hn,c-=h.clientWidth-a.width,c*=s?1:-1)}var f=Object.assign({position:o},l&&zre);if(s){var g;return Object.assign(Object.assign({},f),{},(g={},g[S]=m?"0":"",g[b]=p?"0":"",g.transform=(I.devicePixelRatio||1)<2?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",g))}return Object.assign(Object.assign({},f),{},(t={},t[S]=m?d+"px":"",t[b]=p?c+"px":"",t.transform="",t))}function jre(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,o=i===void 0?!0:i,s={placement:ir(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),oN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),oN(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})}const Bre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jre,data:{}};var wu={passive:!0};function qre(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=r===void 0?!0:r,o=a.resize,s=o===void 0?!0:o,l=Wn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,wu)}),s&&l.addEventListener("resize",n.update,wu),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,wu)}),s&&l.removeEventListener("resize",n.update,wu)}}const Gre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qre,data:{}};var Hre={left:"right",right:"left",bottom:"top",top:"bottom"};function Gu(e){return e.replace(/left|right|bottom|top/g,function(t){return Hre[t]})}var Vre={start:"end",end:"start"};function sN(e){return e.replace(/start|end/g,function(t){return Vre[t]})}function Es(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function ek(e){var t=Wn(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function tk(e){return Es(Lr(e)).left+ek(e).scrollLeft}function Wre(e){var t=Wn(e),n=Lr(e),a=t.visualViewport,r=n.clientWidth,i=n.clientHeight,o=0,s=0;return a&&(r=a.width,i=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,s=a.offsetTop)),{width:r,height:i,x:o+tk(e),y:s}}function Zre(e){var t=Lr(e),n=ek(e),a=e.ownerDocument.body,r=Math.max(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-n.scrollLeft+tk(e),s=-n.scrollTop;return Er(a||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:i,x:o,y:s}}function nk(e){var t=Er(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function yU(e){return["html","body","#document"].indexOf(Vn(e))>=0?e.ownerDocument.body:or(e)&&nk(e)?e:yU(bp(e))}function Vo(e,t){t===void 0&&(t=[]);var n=yU(e),a=Vn(n)==="body",r=Wn(n),i=a?[r].concat(r.visualViewport||[],nk(n)?n:[]):n,o=t.concat(i);return a?o:o.concat(Vo(bp(i)))}function _y(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yre(e){var t=Es(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function lN(e,t){return t===fU?_y(Wre(e)):or(t)?Yre(t):_y(Zre(Lr(e)))}function Kre(e){var t=Vo(bp(e)),n=["absolute","fixed"].indexOf(Er(e).position)>=0,a=n&&or(e)?zl(e):e;return Ss(a)?t.filter(function(r){return Ss(r)&&gU(r,a)&&Vn(r)!=="body"}):[]}function Xre(e,t,n){var a=t==="clippingParents"?Kre(e):[].concat(t),r=[].concat(a,[n]),i=r[0],o=r.reduce(function(s,l){var u=lN(e,l);return s.top=Math.max(u.top,s.top),s.right=Math.min(u.right,s.right),s.bottom=Math.min(u.bottom,s.bottom),s.left=Math.max(u.left,s.left),s},lN(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function _s(e){return e.split("-")[1]}function SU(e){var t=e.reference,n=e.element,a=e.placement,r=a?ir(a):null,i=a?_s(a):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(r){case Tn:l={x:o,y:t.y-n.height};break;case Gn:l={x:o,y:t.y+t.height};break;case Hn:l={x:t.x+t.width,y:s};break;case xn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=r?Qw(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Bi:l[u]=Math.floor(l[u])-Math.floor(t[c]/2-n[c]/2);break;case Xw:l[u]=Math.floor(l[u])+Math.ceil(t[c]/2-n[c]/2);break}}return l}function qi(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=a===void 0?e.placement:a,i=n.boundary,o=i===void 0?bre:i,s=n.rootBoundary,l=s===void 0?fU:s,u=n.elementContext,c=u===void 0?xo:u,d=n.altBoundary,p=d===void 0?!1:d,m=n.padding,b=m===void 0?0:m,S=vU(typeof b!="number"?b:bU(b,Fl)),I=c===xo?yre:xo,h=e.elements.reference,f=e.rects.popper,g=e.elements[p?I:c],E=Xre(Ss(g)?g:g.contextElement||Lr(e.elements.popper),o,l),w=Es(h),k=SU({reference:w,element:f,placement:r}),T=_y(Object.assign(Object.assign({},f),k)),O=c===xo?T:w,N={top:E.top-O.top+S.top,bottom:O.bottom-E.bottom+S.bottom,left:E.left-O.left+S.left,right:O.right-E.right+S.right},P=e.modifiersData.offset;if(c===xo&&P){var V=P[r];Object.keys(N).forEach(function(te){var ne=[Hn,Gn].indexOf(te)>=0?1:-1,me=[Tn,Gn].indexOf(te)>=0?"y":"x";N[te]+=V[me]*ne})}return N}function Jre(e,t){t===void 0&&(t={});var n=t,a=n.placement,r=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?mU:l,c=_s(a),d=c?s?aN:aN.filter(function(b){return _s(b)===c}):Fl,p=d.filter(function(b){return u.indexOf(b)>=0});p.length===0&&(p=d);var m=p.reduce(function(b,S){return b[S]=qi(e,{placement:S,boundary:r,rootBoundary:i,padding:o})[ir(S)],b},{});return Object.keys(m).sort(function(b,S){return m[b]-m[S]})}function Qre(e){if(ir(e)===Kw)return[];var t=Gu(e);return[sN(e),t,sN(t)]}function eae(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,S=n.allowedAutoPlacements,I=t.options.placement,h=ir(I),f=h===I,g=l||(f||!b?[Gu(I)]:Qre(I)),E=[I].concat(g).reduce(function(Ee,Fe){return Ee.concat(ir(Fe)===Kw?Jre(t,{placement:Fe,boundary:c,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:S}):Fe)},[]),w=t.rects.reference,k=t.rects.popper,T=new Map,O=!0,N=E[0],P=0;P<E.length;P++){var V=E[P],te=ir(V),ne=_s(V)===Bi,me=[Tn,Gn].indexOf(te)>=0,xe=me?"width":"height",Se=qi(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),Re=me?ne?Hn:xn:ne?Gn:Tn;w[xe]>k[xe]&&(Re=Gu(Re));var z=Gu(Re),q=[];if(i&&q.push(Se[te]<=0),s&&q.push(Se[Re]<=0,Se[z]<=0),q.every(function(Ee){return Ee})){N=V,O=!1;break}T.set(V,q)}if(O)for(var G=b?3:1,W=function(Fe){var Ue=E.find(function(it){var gn=T.get(it);if(gn)return gn.slice(0,Fe).every(function(za){return za})});if(Ue)return N=Ue,"break"},X=G;X>0;X--){var Je=W(X);if(Je==="break")break}t.placement!==N&&(t.modifiersData[a]._skip=!0,t.placement=N,t.reset=!0)}}const tae={name:"flip",enabled:!0,phase:"main",fn:eae,requiresIfExists:["offset"],data:{_skip:!1}};function uN(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function cN(e){return[Tn,Hn,Gn,xn].some(function(t){return e[t]>=0})}function nae(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=qi(t,{elementContext:"reference"}),s=qi(t,{altBoundary:!0}),l=uN(o,a),u=uN(s,r,i),c=cN(l),d=cN(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const rae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nae};function aae(e,t,n){var a=ir(e),r=[xn,Tn].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign(Object.assign({},t),{},{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*r,[xn,Hn].indexOf(a)>=0?{x:s,y:o}:{x:o,y:s}}function iae(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=r===void 0?[0,0]:r,o=mU.reduce(function(c,d){return c[d]=aae(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[a]=o}const oae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iae};function sae(e){var t=e.state,n=e.name;t.modifiersData[n]=SU({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const lae={name:"popperOffsets",enabled:!0,phase:"read",fn:sae,data:{}};function uae(e){return e==="x"?"y":"x"}function cae(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=r===void 0?!0:r,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,b=n.tetherOffset,S=b===void 0?0:b,I=qi(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),h=ir(t.placement),f=_s(t.placement),g=!f,E=Qw(h),w=uae(E),k=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,N=typeof S=="function"?S(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):S,P={x:0,y:0};if(k){if(i){var V=E==="y"?Tn:xn,te=E==="y"?Gn:Hn,ne=E==="y"?"height":"width",me=k[E],xe=k[E]+I[V],Se=k[E]-I[te],Re=m?-O[ne]/2:0,z=f===Bi?T[ne]:O[ne],q=f===Bi?-O[ne]:-T[ne],G=t.elements.arrow,W=m&&G?Jw(G):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hU(),Je=X[V],Ee=X[te],Fe=qu(0,T[ne],W[ne]),Ue=g?T[ne]/2-Re-Fe-Je-N:z-Fe-Je-N,it=g?-T[ne]/2+Re+Fe+Ee+N:q+Fe+Ee+N,gn=t.elements.arrow&&zl(t.elements.arrow),za=gn?E==="y"?gn.clientTop||0:gn.clientLeft||0:0,Ua=t.modifiersData.offset?t.modifiersData.offset[t.placement][E]:0,ja=k[E]+Ue-Ua-za,Ep=k[E]+it-Ua,Ba=qu(m?Math.min(xe,ja):xe,me,m?Math.max(Se,Ep):Se);k[E]=Ba,P[E]=Ba-me}if(s){var t2=E==="x"?Tn:xn,n2=E==="x"?Gn:Hn,ql=k[w],r2=ql+I[t2],a2=ql-I[n2],ak=qu(r2,ql,a2);k[w]=ak,P[w]=ak-ql}t.modifiersData[a]=P}}const dae={name:"preventOverflow",enabled:!0,phase:"main",fn:cae,requiresIfExists:["offset"]};function pae(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fae(e){return e===Wn(e)||!or(e)?ek(e):pae(e)}function mae(e,t,n){n===void 0&&(n=!1);var a=Lr(t),r=Es(e),i=or(t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((Vn(t)!=="body"||nk(a))&&(o=fae(t)),or(t)?(s=Es(t),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=tk(a))),{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function gae(e){var t=new Map,n=new Set,a=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&r(l)}}),a.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),a}function hae(e){var t=gae(e);return Are.reduce(function(n,a){return n.concat(t.filter(function(r){return r.phase===a}))},[])}function vae(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bae(e){var t=e.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign(Object.assign(Object.assign({},r),a),{},{options:Object.assign(Object.assign({},r.options),a.options),data:Object.assign(Object.assign({},r.data),a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var dN={placement:"bottom",modifiers:[],strategy:"absolute"};function pN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function yae(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,a=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?dN:r;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},dN),i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:c,setOptions:function(h){S(),c.options=Object.assign(Object.assign(Object.assign({},i),c.options),h),c.scrollParents={reference:Ss(s)?Vo(s):s.contextElement?Vo(s.contextElement):[],popper:Vo(l)};var f=hae(bae([].concat(a,c.options.modifiers)));return c.orderedModifiers=f.filter(function(g){return g.enabled}),b(),m.update()},forceUpdate:function(){if(!p){var h=c.elements,f=h.reference,g=h.popper;if(pN(f,g)){c.rects={reference:mae(f,zl(g),c.options.strategy==="fixed"),popper:Jw(g)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var E=0;E<c.orderedModifiers.length;E++){if(c.reset===!0){c.reset=!1,E=-1;continue}var w=c.orderedModifiers[E],k=w.fn,T=w.options,O=T===void 0?{}:T,N=w.name;typeof k=="function"&&(c=k({state:c,options:O,name:N,instance:m})||c)}}}},update:vae(function(){return new Promise(function(I){m.forceUpdate(),I(c)})}),destroy:function(){S(),p=!0}};if(!pN(s,l))return m;m.setOptions(u).then(function(I){!p&&u.onFirstUpdate&&u.onFirstUpdate(I)});function b(){c.orderedModifiers.forEach(function(I){var h=I.name,f=I.options,g=f===void 0?{}:f,E=I.effect;if(typeof E=="function"){var w=E({state:c,name:h,instance:m,options:g}),k=function(){};d.push(w||k)}})}function S(){d.forEach(function(I){return I()}),d=[]}return m}}var Sae=[Gre,lae,Bre,Lre,oae,tae,dae,Fre,rae],Eae=yae({defaultModifiers:Sae});const _ae=["top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","auto","auto-start","auto-end"],wae=e=>{const[t,n]=e.split("-");let a;switch(t){case"top":a="bottom";break;case"bottom":a="top";break;case"left":a="right";break;case"right":a="left";break;default:a="auto"}return n&&(a=_ae.find(r=>r.includes(`${a}-${n}`))??a),a},EU=(e,t,n)=>{if(e.length===0||e[0].split("-")[0]==="auto")return n;const{reference:a,popper:r}=t.rects,i=qi({...t,placement:e[0]}),o=/left|right/.test(e[0].split("-")[0])?"horizontal":"vertical",s=(i.top>0||i.bottom>0||i.left>0||i.right>0)&&(o==="horizontal"?r.height/2-i.top<a.height||r.height/2-i.bottom<a.height:r.width-i.left<a.width||r.width-i.right<a.width),l=e[0].split("-")[0];return!s&&i[l]<=0?e[0]:EU(e.slice(1),t,n)},fN="fallbackModifier",mN={name:fN,enabled:!0,phase:"main",data:{_skip:!1},fn({state:e,options:t}){const n=e.options.placement,{fallbackPlacements:a}=t,r=[n,wae(n),...a||[]],i=EU(r,e,n);e.placement!==i&&(e.modifiersData[fN]._skip=!0,e.placement=i,e.reset=!0)}},_U=["top","right","bottom","left"],rk=ee.forwardRef(({portal:e=!0,open:t=!0,...n},a)=>t?y.jsx(Tae,{ref:a,portal:e,...n}):null),kae=e=>{if(e!==null)return"current"in e?e.current||void 0:e},Iae={},Tae=ee.forwardRef(({anchorElement:e,getAnchorClientRect:t,popperOptions:n=Iae,placement:a="bottom",fallbackPlacements:r=_U,onPlacementChange:i,children:o,portal:s,popperInstanceRef:l},u)=>{const c=ee.useRef(!0),{localRef:d,elementRef:p}=ji(l),[m,b]=ee.useState(a),S=gre(u,e),I=ee.useRef(a);I.current=m;const h=ee.useMemo(()=>({name:"setPlacement",enabled:!0,phase:"afterWrite",fn({state:g}){b(g.placement),i==null||i(g.placement)}}),[b,i]);ee.useLayoutEffect(()=>{const g=t?{getBoundingClientRect:t}:kae(e??null);if(!g){console.warn("Popper: neither anchorElement or getAnchorClientRect was defined. A valid anchorElement or getAnchorClientRect callback must be provided to render a Popper");return}if(S.current){const E=Eae(g,S.current,{placement:a,...n,modifiers:[h,{...mN,options:{fallbackPlacements:r}},...n.modifiers||[]]});return p(E),()=>{E==null||E.destroy()}}},[e,t,S]),ee.useLayoutEffect(()=>{var g;c.current||(g=d.current)==null||g.setOptions({placement:a,...n,modifiers:[h,{...mN,options:{fallbackPlacements:r}},...n.modifiers||[]]}),c.current=!1},[n,a,r,h,d]);const f=y.jsx(y.Fragment,{children:xae(o)?o({placement:m}):o});return s?bS.createPortal(f,S.current):f});function xae(e){return typeof e=="function"}const ft=en({defaultConfig:{...ya.defaultConfig,...ga.defaultConfig,mode:"single",shouldVirtualize:!1},requiredConfig:{...ya.requiredConfig,...ga.requiredConfig},contextOverride:ga.Context})(e=>{const t=ya(ya.mergeConfig(e,{selection:e.mode==="single"?Rz:Cte})),n=ga(ga.mergeConfig(e,{id:t.state.id,onHide(){t.state.indexRef.current=0}}));iU(n),oU(n);const a={mode:e.mode,...t.state,...n.state},r={...t.events,...n.events};return{...t,...n,state:a,events:r,UNSTABLE_parentModel:e.UNSTABLE_parentModel}}),Rae=pe({vars:{minWidth:Q(1),transformOriginVertical:"top",transformOriginHorizontal:"left",maxHeight:""},base:({transformOriginVertical:e,transformOriginHorizontal:t,minWidth:n,maxHeight:a})=>({fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,color:R.fg.default,position:"relative",display:"flex",flexDirection:"column",transition:"transform ease-out 150ms",padding:v.padding.xxs,borderRadius:v.shape.xxl,maxWidth:ht.subtract("100vw",v.size.sm),boxShadow:cz[3],minWidth:n,maxHeight:a,transformOrigin:`${e} ${t}`,".wd-no-animation &":{animation:"none"}})}),Aae=ue()(()=>({})),wU=he("div")({displayName:"Menu.Card",modelHook:ft,elemPropsHook:Aae})(({minWidth:e,maxHeight:t,...n},a,r)=>{const i=ee.useMemo(()=>pU(r.state.placement||"bottom"),[r.state.placement]);return y.jsx(lre,{as:a,...Ne(n,Rae({minWidth:typeof e=="number"?Q(e):e,maxHeight:typeof t=="number"?Q(t):t,transformOriginVertical:i.vertical,transformOriginHorizontal:i.horizontal})),children:n.children})}),Cae=pe({base:{display:"block",height:Q(1),border:"none",borderTop:`${Q(1)} solid ${v.color.border.default}`,margin:`${v.gap.sm} ${v.gap.md}`}}),kU=Oe("hr")({displayName:"Menu.Divider",Component({...e},t,n){return y.jsx(n,{ref:t,...at(e,Cae())})}}),gN={vertical:"bottom",horizontal:"center"},wy=Za("positionX","positionY"),Nae=Oee({"0%":{opacity:0,transform:`translate(${wy.positionX}, ${wy.positionY})`},"100%":{opacity:1,transform:"translate(0)"}}),Oae=pe({vars:{tooltipTransformOriginHorizontal:"",tooltipTransformOriginVertical:""},base:({tooltipTransformOriginHorizontal:e,tooltipTransformOriginVertical:t})=>({fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.md,lineHeight:v.lineHeight.subtext.md,letterSpacing:v.letterSpacing.subtext.md,display:"inline-flex",position:"relative",padding:v.padding.sm,color:R.fg.inverse,animationName:Nae,animationDuration:"150ms",animationTimingFunction:"ease-out",transformOrigin:`${t} ${e}`,a:{color:R.fg.inverse,textDecoration:"underline"},"&:before":{content:'""',borderRadius:v.shape.md,outline:`${Q(1)} solid transparent`,outlineOffset:`-${Q(1)}`,zIndex:-1,margin:v.gap.xs,backgroundColor:v.color.surface.contrast.default,position:"absolute",top:0,left:0,right:0,bottom:0,boxShadow:cz[2]},"[data-popper-reference-hidden] &":{visibility:"hidden",pointerEvents:"none"},'[data-popper-placement="top-start"] &, [data-popper-placement="bottom-start"] &':{left:ht.negate(Qe.size50)},'[data-popper-placement="top-end"] &, [data-popper-placement="bottom-end"] &':{right:ht.negate(Qe.size50)},'[data-popper-placement="left-start"] &, [data-popper-placement="right-start"] &':{top:ht.negate(Qe.size50)},'[data-popper-placement="left-end"] &, [data-popper-placement="right-end"] &':{bottom:ht.negate(Qe.size50)}}),modifiers:{elementHasFocus:{true:{padding:ht.subtract(v.padding.md,ht.divide(v.padding.xxs,2)),"&:before":{margin:Qe.size75}}}}}),Lae=Oe("div")({displayName:"TooltipContainer",Component:({children:e,transformOrigin:t=gN,elementHasFocus:n=!1,...a},r,i)=>{const o=Qee(t||gN,v.gap.sm);return y.jsx(i,{ref:r,...Ne(a,[Oae({tooltipTransformOriginHorizontal:t==null?void 0:t.horizontal,tooltipTransformOriginVertical:t==null?void 0:t.vertical,elementHasFocus:n}),wy({positionX:o.x,positionY:o.y})]),children:e})}}),hN=(e,t=0)=>{const n=ee.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return ee.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},$ae=e=>{const t=e.tagName.toLowerCase(),n=e.getAttribute("tabindex");switch(t){case"button":case"input":case"select":case"textarea":case"details":return!0;default:return n?Number(n)>=0:!1}};function Dae({type:e="label",titleText:t="",showDelay:n=300,hideDelay:a=100}={}){const r=ee.useRef(!1),i=ga(),[o,s]=ee.useState(null),l=co(),u=hN(i.events.hide,a),c=hN(i.events.show,n),d=()=>{u.start(),c.clear()},p=()=>{c.start(),u.clear()},m=f=>{s(f.currentTarget),p()},b=f=>{r.current||m(f),r.current=!1},S=f=>{r.current=!0,$ae(f.currentTarget)&&i.events.hide()};oU(i),iU(i),pre(i),fre(i);const I=i.state.visibility!=="hidden",h={"aria-describedby":e==="describe"&&I?l:void 0,"aria-description":e==="description"?t:void 0,"aria-label":e==="label"?t:void 0,onMouseEnter:m,onMouseLeave:d,onMouseDown:S,onFocus:b,onBlur:d};return h["aria-describedby"]===void 0&&delete h["aria-describedby"],{targetProps:h,popperProps:{open:I,anchorElement:o,ref:i.state.stackRef},tooltipProps:{id:e==="describe"&&I?l:void 0,role:"tooltip",onMouseEnter:p,onMouseLeave:d}}}const IU=e=>{const t=getComputedStyle(e);if(t.overflow==="auto"||t.overflow==="scroll"||t.overflow==="clip"||t.overflow==="hidden")return e;if(e.children){for(let n=0;n<e.children.length;n++){const a=IU(e.children[n]);if(a)return a}return null}return null},TU=e=>{const t=getComputedStyle(e);if(t.textOverflow==="ellipsis"||Number(t.webkitLineClamp)>0)return e;for(let n=0;n<e.children.length;n++){const a=TU(e.children[n]);if(a)return a}return null},vN=e=>{const t=TU(e)||IU(e);return t?t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight:!1};function Mae(e,t,n=Object.keys(t)){return n.reduce((a,r)=>(typeof e[r]=="function"?a[r]=vz(t[r],e[r]):a[r]=t[r],a),{})}const yp=({placement:e="top",fallbackPlacements:t=_U,children:n,...a})=>{const[r,i]=ee.useState(""),{targetProps:o,popperProps:s,tooltipProps:l}=Dae({type:"muted"}),u=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),vN(p)&&o.onMouseEnter(d)},c=d=>{const p=d.currentTarget;i(p instanceof HTMLElement?p.innerText:""),vN(p)&&o.onFocus(d)};return y.jsxs(ee.Fragment,{children:[ee.cloneElement(n,{...o,onMouseEnter:u,onFocus:c,"aria-label":void 0,...Mae({...o,onMouseEnter:u,onFocus:c},n.props)}),y.jsx(rk,{placement:e,fallbackPlacements:t,...s,children:({placement:d})=>{const p=pU(d);return y.jsx(Lae,{transformOrigin:p,...l,...a,children:r})}})]})},xU=en({defaultConfig:{id:void 0},requiredConfig:{}})(e=>({state:{id:co(e.id)},events:{}})),Pae=pe({base:{fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,fontWeight:Le.bold,display:"flex",alignItems:"center",width:"100%",gap:v.gap.md,padding:`${v.padding.xs} ${v.padding.md}`}}),Fae=ue()(e=>({"data-type":"group",role:"group","aria-labelledby":e.state.id})),zae=ue()(e=>({id:e.state.id})),bN=he("div")({modelHook:xU,elemPropsHook:zae})(({children:e,...t},n)=>y.jsx(yp,{children:y.jsx(n,{...Ne(t,Pae()),children:e})})),RU=Nr("div")({displayName:"Menu.Group",modelHook:xU,elemPropsHook:Fae,subComponents:{Heading:bN}})(({children:e,title:t,...n},a)=>y.jsxs(a,{...Ne(n),children:[t?y.jsx(bN,{children:t}):null,e]})),Ul=pe({parts:{text:"menu-item-text",icon:"menu-item-icon",selected:"menu-item-selected"},base:({textPart:e,iconPart:t,selectedPart:n})=>({fontFamily:Ke.default,fontWeight:Le.normal,fontSize:v.fontSize.subtext.lg,lineHeight:v.lineHeight.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,display:"flex",alignItems:"center",width:"100%",gap:v.gap.md,padding:`${v.padding.sm} ${v.padding.md}`,boxSizing:"border-box",cursor:"pointer",color:R.fg.default,borderWidth:0,borderRadius:v.shape.xxl,textAlign:"start",transition:"background-color 80ms, color 80ms",backgroundColor:"inherit",minHeight:v.size.md,overflowWrap:"anywhere",[K.vars.color]:"currentColor",[`& :where(${n})`]:{transition:"opacity 80ms linear",opacity:ut.zero},"&:where(:has(span))":{display:"flex"},"&[aria-selected=true]":{color:v.color.brand.fg.primary.strong,backgroundColor:v.color.brand.surface.primary.strong,[`& :where(${n})`]:{opacity:ut.full},"&:where(.focus, :focus-visible)":{[K.vars.color]:"currentColor",outline:"none",backgroundColor:v.color.brand.accent.primary,color:R.fg.inverse}},"&:is(.hover, :hover)":{color:R.fg.strong,backgroundColor:v.color.surface.overlay.hover.default},"&:is(.focus, :focus-visible)":{color:R.fg.inverse,backgroundColor:v.color.brand.accent.primary,outline:`${Q(2)} solid transparent`,outlineOffset:`-${Q(2)}`},"&:is(:disabled, [aria-disabled=true])":{cursor:"default",opacity:ut.disabled,"&:where(.hover, :hover, [aria-selected=true])":{background:"none"},"&:where(.focus, :focus-visible)":{backgroundColor:v.color.brand.accent.primary,opacity:ut.disabled}},[`& :where(${e})`]:{flexGrow:1,alignSelf:"center"},[`& :where(${t})`]:{alignSelf:"start"}})}),Uae=e=>y.jsx(na,{...Ul.parts.icon,...e}),AU=Oe("span")({Component:({...e},t,n)=>y.jsx(n,{ref:t,...Ul.parts.text,...at(e)})}),Sp=Oe("button")({displayName:"MenuItem",Component:({children:e,isDisabled:t,...n},a,r)=>y.jsx(r,{ref:a,"aria-disabled":t,...Ne(n,Ul({})),children:typeof e=="string"?y.jsx(AU,{children:e}):e})}),CU=ue()(e=>({onKeyDown(t){const n=getComputedStyle(t.currentTarget);t.key==="ArrowLeft"&&n.direction==="ltr"&&e.UNSTABLE_parentModel&&e.events.hide(t)}})),NU=ue()((e,t,n={"data-id":""})=>{const{localRef:a,elementRef:r}=ji(t),i=n["data-id"];return ee.useLayoutEffect(()=>{e.state.mode==="single"&&ys(e.state,i)&&requestAnimationFrame(()=>{var o;(o=a.current)==null||o.focus()})},[i,a,e.state.cursorId,e.state.mode]),{ref:r,className:ys(e.state,n["data-id"])?"focus":void 0}});function OU(e){e.UNSTABLE_parentModel&&(e.UNSTABLE_parentModel.events.hide(),OU(e.UNSTABLE_parentModel))}const jae=Or(ue()(e=>({role:"menuitem",onMouseDown(t){e.events.goTo({id:t.currentTarget.getAttribute("data-id")})},onClick:e.state.mode==="single"?t=>{t.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.hide(t),OU(e))}:void 0})),NU,CU,Lte,Hw,$l),Gi=he("button")({displayName:"Menu.Item",modelHook:ft,elemPropsHook:jae,subComponents:{Icon:Uae,Text:AU}})(({children:e,...t},n)=>y.jsx(yp,{placement:"left",children:y.jsx(Sp,{as:n,...t,children:e})})),Bae=Or(ue()(e=>({role:"menu","aria-labelledby":e.state.id,"aria-orientation":e.state.orientation})),vre,mre),LU=pe({base:{background:v.color.surface.popover,borderRadius:v.shape.xxl,padding:0,gap:v.gap.xs},modifiers:{orientation:{vertical:{flexDirection:"column"},horizontal:{flexDirection:"row"}}}}),$U=he("div")({displayName:"Menu.List",modelHook:ft,elemPropsHook:Bae})(({children:e,...t},n,a)=>y.jsx(Ww,{as:n,model:a,marginY:v.gap.none,...at(t,LU({orientation:a.state.orientation})),children:e})),DU=Oe("span")({Component:({...e},t,n)=>y.jsxs(y.Fragment,{children:[y.jsx(Gi.Text,{ref:t,as:n,...e}),y.jsx(na,{...Ul.parts.selected,icon:$ne})]})}),qae=Oe("li")({displayName:"MenuOption",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,Ul()),children:typeof e=="string"?y.jsx(DU,{children:e}):e})}),Gae=Or(ue()((e,t,n={})=>{const a=n["data-id"]||"";return{role:"option","aria-selected":Ate(a,e.state),onMouseDown:o=>{o.button===0&&o.currentTarget.getAttribute("aria-disabled")!=="true"&&(e.events.goTo({id:a}),e.events.select({id:a}),e.state.mode==="single"&&e.events.hide(o)),o.preventDefault()}}}),zte,$l),MU=he("li")({displayName:"Menu.Item",modelHook:ft,elemPropsHook:Gae,subComponents:{Icon:Gi.Icon,Text:DU}})(({children:e,...t},n)=>y.jsx(yp,{placement:"left",children:y.jsx(qae,{as:n,...t,children:e})})),PU=lU,FU={modifiers:[{name:"offset",options:{offset:()=>[0,4]}}]},Hae=he("div")({modelHook:ft,elemPropsHook:PU})(({children:e,...t})=>y.jsx(rk,{placement:"bottom-start",popperOptions:FU,...t,children:e})),zU=ue()(e=>({id:e.state.id,"aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":e.events.show(t)}}})),Vae=Or(zU,uU),Wae=Or(zU,hre),Zae=he(Oc)({displayName:"Menu.Target",modelHook:ft,elemPropsHook:Vae})(({children:e,...t},n)=>y.jsx(n,{...t,children:e})),Yae=he(Oc)({displayName:"Menu.Target",modelHook:ft,elemPropsHook:Wae})(({children:e,...t},n)=>y.jsx(n,{...t,children:e})),Kae=he("div")({modelHook:ft,elemPropsHook:PU})(({children:e,...t})=>y.jsx(rk,{placement:"right-start",popperOptions:FU,...t,children:e})),Xae=(e,t=0)=>{const n=$.useRef(),a=()=>{n.current=window.setTimeout(e,t)},r=()=>{window.clearTimeout(n.current),n.current=void 0};return $.useEffect(()=>()=>{window.clearTimeout(n.current)},[n]),{start:a,clear:r}},Jae=Or(vu(e=>e.UNSTABLE_parentModel,NU),vu(e=>e.UNSTABLE_parentModel,CU),vu(e=>e.UNSTABLE_parentModel,Hw),ue()((e,t)=>({ref:ua(t,e.state.targetRef)})),vu(e=>e.UNSTABLE_parentModel,$l),ue()(e=>{const t=$.useRef(),n=Xae(()=>{e.UNSTABLE_parentModel.events.goTo({id:t.current||""}),e.events.show(event)},300);return{id:e.state.id,role:"menuitem","aria-haspopup":"true","aria-expanded":e.state.visibility==="visible",onMouseDown(a){e.UNSTABLE_parentModel.events.goTo({id:a.currentTarget.getAttribute("data-id")})},onMouseEnter(a){t.current=a.currentTarget.getAttribute("data-id"),n.start()},onMouseLeave(){n.clear()},onClick(a){e.state.targetRef.current instanceof Element||(e.state.targetRef.current=a.currentTarget),e.state.visibility!=="hidden"?e.events.hide(a):e.events.show(a)},"data-has-children":!0,onKeyDown(a){if(e.state.orientation==="vertical")switch(a.key){case"ArrowRight":case"Enter":case" ":e.events.show(a);break}}}})),Qae=he("button")({modelHook:ft,elemPropsHook:Jae})(({children:e,...t},n)=>y.jsxs(Sp,{as:n,...t,children:[typeof e=="string"?y.jsx(Gi.Text,{children:e}):e,y.jsx(Gi.Icon,{icon:Dne})]})),eie=he()({modelHook:ft,subComponents:{Card:wU,List:$U,Item:Gi,TargetItem:Qae,Group:RU,Option:MU,Divider:kU,Popper:Kae}})(({children:e,model:t,...n},a,r)=>{const i=ft(ft.mergeConfig(n,{getId:r.getId,getTextValue:r.getTextValue,UNSTABLE_parentModel:r,mode:r.state.mode,orientation:r.state.orientation,onSelect(s){r.events.select(s)},onSelectAll(){r.events.selectAll()}})),o=ft.Context;return y.jsx(o.Provider,{value:i,children:e})}),bi=Nr()({displayName:"Menu",modelHook:ft,subComponents:{Target:Zae,Card:wU,List:$U,Item:Gi,Group:RU,Option:MU,Divider:kU,TargetContext:Yae,Popper:Hae,Submenu:eie}})(({children:e})=>y.jsx(y.Fragment,{children:e})),cb=en({defaultConfig:{value:void 0,onFilterChange(e){},onChange(e){}}})(e=>{const t=$.createRef();return{onFilterChange:e.onFilterChange,onChange:e.onChange,state:{value:e.value,inputRef:t},events:{}}}),er=en({defaultConfig:{...cb.defaultConfig,...ft.defaultConfig,shouldVirtualize:!0},requiredConfig:{...cb.requiredConfig,...ft.requiredConfig}})(e=>{const t=cb(e),n=ft(e),[a,r]=$.useState(0),i={width:a,...t.state,...n.state},o={...t.events,...n.events,setWidth(s){r(s)}};return{...n,...t,state:i,events:o}}),tie=ue()(e=>({onKeyDown(t){(t.key==="ArrowDown"||t.key==="ArrowUp"&&e.state.visibility!=="visible")&&(e.events.show(t),e.events.setWidth(t.currentTarget.getBoundingClientRect().width))}})),nie=ue()(e=>({onKeyDown(t){e.state.visibility==="visible"&&Az(t,e)&&t.preventDefault()}})),rie=ue()(e=>{const t=e.state.visibility!=="hidden";return $.useLayoutEffect(()=>{var n;t&&e.events.setWidth(((n=e.state.targetRef.current)==null?void 0:n.getBoundingClientRect().width)||0)},[t,e.events,e.state.targetRef]),{}}),UU=Or(ue()((e,t)=>{const n=ua(t,e.state.inputRef);return $.useEffect(()=>{if(e.state.cursorId&&e.state.visibility==="visible"){const a=e.navigation.getItem(li(e.state),e);if(e.state.isVirtualized&&a)e.state.UNSTABLE_virtual.scrollToIndex(a.index);else{const r=document.querySelector(`[id="${e.state.id}-list"] [data-id="${li(e.state)}"]`);r&&requestAnimationFrame(()=>{r.scrollIntoView({block:"nearest"})})}}},[e.state.cursorId,e.state.selectedIds,e.state.visibility]),{onKeyDown(a){if(a.key==="Enter"&&!a.metaKey&&e.state.visibility==="visible"){const r=document.querySelector(`[data-id="${li(e.state)}"]`);r&&(r==null?void 0:r.getAttribute("aria-disabled"))!=="true"&&(e.events.select({id:li(e.state)}),e.state.mode==="single"&&e.events.hide(a)),a.preventDefault()}},onBlur(a){e.events.hide(a)},onClick(a){e.state.visibility==="hidden"&&e.events.setWidth(a.currentTarget.getBoundingClientRect().width)},value:e.state.value,role:"combobox","aria-haspopup":"listbox","aria-expanded":e.state.visibility==="visible","aria-autocomplete":"list","aria-controls":`${e.state.id}-list`,"aria-activedescendant":e.state.visibility==="hidden"?null:void 0,id:e.state.id,ref:n}}),rie,tie,Fte,nie,uU),aie=he(vp)({modelHook:er,elemPropsHook:UU})(({children:e,...t},n)=>y.jsx(n,{...t,children:e})),iie=ue()(e=>({minWidth:e.state.width})),oie=pe({base:{'& :where([data-part="list-box-container"])':{borderRadius:v.shape.xxl}}}),sie=he("div")({modelHook:er,elemPropsHook:iie})(({children:e,...t},n)=>y.jsx(bi.Card,{as:n,...at(t,oie()),children:e})),lie=ue()(e=>({role:"listbox","aria-labelledby":e.state.id,id:`${e.state.id}-list`})),uie=pe({base:{},extends:LU}),cie=he("ul")({modelHook:er,elemPropsHook:lie})(({children:e,...t},n,a)=>y.jsx(Ww,{as:n,model:a,marginY:v.gap.none,...at(t,uie({orientation:a.state.orientation})),children:e})),die=lU,pie=he("div")({displayName:"Combobox.Menu.Popper",modelHook:ft,elemPropsHook:die})(({children:e,...t})=>y.jsx(bi.Popper,{fallbackPlacements:["top","bottom"],...t,children:e})),yN=he()({modelHook:er,subComponents:{Popper:pie,List:cie,Item:bi.Option,Card:sie,Divider:bi.Divider}})(({children:e},t,n)=>y.jsx(bi,{model:n,children:e})),ku=Nr()({displayName:"Combobox",modelHook:er,subComponents:{Input:aie,Menu:yN}})(({children:e},t,n)=>y.jsx(yN,{model:n,children:e})),fie=()=>{const e=$.useRef(-1);return $.useEffect(()=>()=>{clearTimeout(e.current)},[]),(t,n)=>{clearTimeout(e.current),e.current=setTimeout(t,n)}},jU=(e,t)=>{const n=fie(),a=Pte({shouldLoad(r,i){return(e.shouldLoad?e.shouldLoad(r,i):!0)&&i.visibility!=="hidden"},...t.mergeConfig(e,{onFilterChange(r){const i=r.currentTarget.value;n(()=>a.loader.updateFilter(i),150)}})},t);return a};function mie(e){return!!e}const gie=ue()((e,t,{disabled:n,value:a,onChange:r,name:i}={})=>{const{elementRef:o,localRef:s}=ji(e.state.targetRef),{elementRef:l,localRef:u}=ji(t),c=$.useRef(e.navigation);c.current=e.navigation;const d=$.useRef(e.state);return d.current=e.state,$.useLayoutEffect(()=>{u.current&&typeof a=="string"&&a!==u.current.value&&e.events.setSelectedIds(a?a.split(", "):[])},[a,u,e.events]),$.useImperativeHandle(l,()=>{if(u.current&&s.current){const p=u.current,m=s.current;return Object.defineProperty(p,"value",{get(){var S,I;return(I=(S=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value"))==null?void 0:S.get)==null?void 0:I.call(p)},set(b){p&&b!==(d.current.selectedIds==="all"?[]:d.current.selectedIds).join(", ")&&e.events.setSelectedIds(b?b.split(", "):[])}}),Object.defineProperty(p,"focus",{configurable:!0,writable:!0,value:b=>m.focus(b)}),Object.defineProperty(p,"blur",{configurable:!0,writable:!0,value:()=>m.blur()}),p}return u.current},[u,s,e.events]),$.useLayoutEffect(()=>{if(s.current){const p=e.state.items.length===0?"":(e.state.selectedIds==="all"?[]:e.state.selectedIds.map(m=>c.current.getItem(m,{state:d.current})).filter(mie).map(m=>m.textValue)).join(", ");p!==s.current.value&&yy(s.current,p)}if(u.current){const p=(e.state.selectedIds==="all"?[]:e.state.selectedIds).join(", ");p!==u.current.value&&yy(u.current,p)}},[e.state.selectedIds,e.state.items,u,s]),{ref:o,form:"",value:null,onChange:p=>{var m;return(m=e.onFilterChange)==null||m.call(e,p),null},name:null,disabled:n,formInputProps:{disabled:n,tabIndex:-1,"aria-hidden":!0,ref:l,onChange:p=>{var m;r==null||r(p),(m=e.onChange)==null||m.call(e,p)},name:i}}}),hie=pe({base:{height:"100%",width:"100%",objectFit:"cover"}}),vie=Oe("img")({displayName:"AvatarImage",Component:({...e},t,n)=>y.jsx(n,{ref:t,...at(e,hie())})}),bie=e=>{const t=e.trim().split(/\s+/).filter(Boolean),n=t[0],a=(n==null?void 0:n[0])||"",r=t.length>1?t[t.length-1]:void 0,i=(r==null?void 0:r[0])||"";return`${a}${i}`},yie=pe({base:{textTransform:"uppercase",cursor:"default"}}),Sie=Oe("span")({displayName:"AvatarName",Component:({name:e,preferredInitials:t,...n},a,r)=>y.jsx(r,{ref:a,...at(n,yie()),children:t||bie(e)})}),BU=pe({vars:{backgroundColor:"",color:"",size:""},base:({backgroundColor:e,color:t,size:n})=>({borderRadius:v.shape.full,width:D(n,v.size.lg),height:D(n,v.size.lg),minWidth:D(n,v.size.lg),minHeight:D(n,v.size.lg),backgroundColor:D(e,Qe.blue300),color:D(t,Qe.blue800),display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",border:"none",fontFamily:Ke.default,fontWeight:Le.normal,lineHeight:v.lineHeight.body.md,fontSize:v.fontSize.body.md}),modifiers:{variant:{blue:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.blue300),color:D(t,Qe.blue800)}),amber:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.amber200),color:D(t,Qe.amber700)}),teal:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.teal300),color:D(t,Qe.teal800)}),purple:({backgroundColor:e,color:t})=>({backgroundColor:D(e,Qe.purple300),color:D(t,Qe.purple800)})},size:{extraExtraSmall:({size:e})=>({[e]:v.size.xs,lineHeight:v.lineHeight.subtext.sm,fontSize:v.fontSize.subtext.sm,letterSpacing:v.letterSpacing.subtext.sm}),extraSmall:({size:e})=>({[e]:v.size.sm,lineHeight:v.lineHeight.subtext.md,fontSize:v.fontSize.subtext.md,letterSpacing:v.letterSpacing.subtext.md}),small:({size:e})=>({[e]:v.size.md,lineHeight:v.lineHeight.body.sm,fontSize:v.fontSize.body.sm,letterSpacing:v.letterSpacing.body.sm}),medium:({size:e})=>({[e]:Qe.size600,lineHeight:v.lineHeight.body.md,fontSize:v.fontSize.body.md}),large:({size:e})=>({[e]:Qe.size900,fontWeight:Le.bold,lineHeight:v.lineHeight.heading.md,fontSize:v.fontSize.heading.md}),extraLarge:({size:e})=>({[e]:Qe.size1200,fontWeight:Le.bold,lineHeight:v.lineHeight.title.sm,fontSize:v.fontSize.title.sm}),extraExtraLarge:({size:e})=>({[e]:Q(120),fontWeight:Le.bold,lineHeight:v.lineHeight.title.md,fontSize:v.fontSize.title.md})}}}),db=Oe("div")({displayName:"BaseAvatar",subComponents:{Image:vie,Name:Sie},Component:({variant:e,size:t,...n},a,r)=>y.jsx(r,{ref:a,...at(n,BU({variant:e,size:t}))})}),Hu=pe({extends:BU,parts:{avatarImage:"avatar-image",avatarName:"avatar-name"},base:{},modifiers:{imageLoaded:{false:({avatarImagePart:e})=>({[e]:{display:"none"}}),true:{backgroundColor:R.bg.default}},objectFit:{contain:({avatarImagePart:e})=>({[e]:{objectFit:"contain"}}),cover:({avatarImagePart:e})=>({[e]:{objectFit:"cover"}}),fill:({avatarImagePart:e})=>({[e]:{objectFit:"fill"}}),none:({avatarImagePart:e})=>({[e]:{objectFit:"none"}}),"scale-down":({avatarImagePart:e})=>({[e]:{objectFit:"scale-down"}}),initial:({avatarImagePart:e})=>({[e]:{objectFit:"initial"}}),inherit:({avatarImagePart:e})=>({[e]:{objectFit:"inherit"}}),unset:({avatarImagePart:e})=>({[e]:{objectFit:"unset"}}),"-moz-initial":({avatarImagePart:e})=>({[e]:{objectFit:"-moz-initial"}}),revert:({avatarImagePart:e})=>({[e]:{objectFit:"revert"}})}}}),Eie=Oe("div")({displayName:"Avatar",Component:({url:e,name:t,variant:n,objectFit:a="contain",preferredInitials:r,isDecorative:i,size:o,...s},l,u)=>{const[c,d]=$.useState(!1),p=()=>{c||d(!0)};return y.jsxs(db,{as:u,ref:l,...at(s,Hu({variant:n,size:o,imageLoaded:c,objectFit:a})),children:[e&&y.jsx(y.Fragment,{children:y.jsx(db.Image,{onLoad:p,src:e,alt:i?void 0:t,"aria-hidden":i,...Hu.parts.avatarImage})}),t&&(!e||!c)&&y.jsx(db.Name,{name:t,preferredInitials:r,...Hu.parts.avatarName})]})}}),jl=en({defaultConfig:{disabled:!1,id:""}})(e=>{const t=co(e.id);return{state:{...e,id:t},events:{}}}),_ie=pe({extends:Hu,base:{flex:"0 0 auto",fontFamily:Ke.default,fontWeight:Le.normal,lineHeight:v.lineHeight.subtext.sm,fontSize:v.fontSize.subtext.sm,letterSpacing:v.letterSpacing.subtext.sm,"&:disabled, &.disabled":{opacity:ut.disabled}}}),wie=he("div")({modelHook:jl})(({size:e,...t},n,a)=>y.jsx(Eie,{isDecorative:!0,as:n,size:Q(18),...Ne(t,[_ie(),a.state.disabled?"disabled":void 0])})),Fr=pe({vars:{backgroundColor:"",borderColor:""},base:({backgroundColor:e,borderColor:t})=>({borderStartStartRadius:0,borderStartEndRadius:v.shape.sm,borderEndStartRadius:0,borderEndEndRadius:v.shape.sm,borderWidth:0,borderInlineStartWidth:0,borderStyle:"solid",borderColor:D(t,R.border.transparent),display:"inline-flex",alignItems:"center",justifyContent:"center",height:v.size.xs,width:v.size.xs,padding:`0 ${v.padding.xxs}`,marginInlineEnd:ht.negate(v.gap.sm),marginInlineStart:v.gap.xs,backgroundColor:D(e,v.color.surface.alt.strong),flex:"0 0 auto"})}),kie=Oe("span")({displayName:"Pill.Count",Component:({children:e,...t},n,a)=>y.jsx(a,{ref:n,...Ne(t,Fr()),children:e})}),Iie=pe({extends:K,base:{marginInlineStart:ht.negate(v.gap.xs),[K.vars.size]:Un.systemIcon.size.sm,flex:"0 0 auto"}}),Tie=he("span")({modelHook:jl})(({icon:e,...t},n)=>y.jsx(na,{as:n,role:"img",icon:e||zne,...Ne(t,Iie())})),xie=pe({extends:M,base:{marginInlineEnd:ht.negate(Q(7)),marginInlineStart:ht.negate(Q(2)),borderRadius:Q(2),height:v.size.xxs,width:v.size.xxs,padding:0,overflow:"visible",flex:"0 0 auto",[M.vars.border]:R.border.transparent,[M.vars.background]:v.color.surface.transparent,[K.vars.color]:R.fg.strong,[K.vars.size]:Un.systemIcon.size.sm,"::after":{content:'""',height:v.size.sm,width:v.size.sm,position:"absolute",left:ht.negate(Q(7)),bottom:ht.negate(Q(7)),margin:0,pointerEvents:"all"},"&:focus-visible, &.focus":{[M.vars.border]:R.border.transparent,...Cc({innerColor:R.border.transparent})},"&:hover, &.hover":{[M.vars.border]:R.border.transparent},"&:active, &.active":{[M.vars.border]:R.border.transparent},"&:disabled, &.disabled":{[M.vars.border]:R.border.transparent,[K.vars.color]:R.fg.disabled}}}),Rie=he("button")({modelHook:jl})(({size:e,icon:t,children:n,"aria-label":a="",...r},i,o)=>y.jsx(i,{disabled:o.state.disabled,"aria-labelledby":`removable-${o.state.id} label-${o.state.id}`,...Ne(r,xie()),children:y.jsx(na,{"aria-label":a,id:`removable-${o.state.id}`,icon:t||Jz,"aria-hidden":!0,role:"img"})})),Aie=pe({base:{flexShrink:1,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}}),SN=he("span")({modelHook:jl})(({tooltipProps:e,children:t,...n},a,r)=>y.jsx(yp,{...e,children:y.jsx(a,{id:`label-${r.state.id}`,...Ne(n,Aie()),children:t})})),EN=pe({extends:M,vars:{maxWidth:""},base:({maxWidth:e})=>({display:"initial",flexDirection:"row",alignItems:"center",borderRadius:v.shape.sm,fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,letterSpacing:v.letterSpacing.subtext.lg,lineHeight:v.lineHeight.subtext.sm,boxShadow:"none",outline:"none",fontWeight:Le.medium,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",width:"fit-content",padding:`${Q(2)} ${v.padding.xs}`,height:v.size.xs,position:"relative",gap:v.gap.xs,maxWidth:e,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",[M.vars.background]:v.color.surface.alt.strong,[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.strong,[K.vars.color]:"currentColor",[Fr.vars.borderColor]:"transparent","&:has(span)":{display:"flex",lineHeight:v.lineHeight.subtext.lg},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.strong,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[M.vars.border]:R.border.transparent,[M.vars.label]:R.fg.stronger,[K.vars.color]:"currentColor",[Fr.vars.borderColor]:"transparent"},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.stronger,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[M.vars.label]:R.fg.strong,[K.vars.color]:"currentColor",[Fr.vars.borderColor]:"transparent"},"&:focus-visible, &.focus":{[M.vars.border]:v.color.brand.border.primary,[M.vars.label]:R.fg.strong,borderColor:v.color.brand.border.primary,[K.vars.color]:"currentColor",...Cc({width:0,innerColor:v.color.brand.border.primary,outerColor:v.color.brand.border.primary,separation:1})},"&:disabled, &.disabled":{[M.vars.background]:v.color.surface.alt.strong,[M.vars.label]:R.fg.disabled,[K.vars.color]:"currentColor",[Fr.vars.backgroundColor]:v.color.surface.alt.strong,[Fr.vars.borderColor]:"transparent"}}),modifiers:{variant:{readOnly:{border:`${Q(1)} solid ${v.color.border.default}`,cursor:"default",[M.vars.background]:R.bg.default,"&:hover, &.hover":{borderColor:v.color.border.default,[M.vars.background]:R.bg.default},"&:focus-visible, &.focus":{[M.vars.background]:R.bg.default},"&:active, &.active":{[M.vars.background]:R.bg.default},"&:disabled, &.disabled":{[M.vars.background]:R.bg.default}},removable:{"&:focus-visible, &.focus":{[M.vars.background]:R.bg.alt.default,[M.vars.border]:R.border.input.default,[M.vars.label]:R.fg.strong,boxShadow:"none"},"&:hover, &.hover":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.strong,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.hover}),[Fr.vars.backgroundColor]:v.color.surface.transparent},"&:active, &.active":{[M.vars.background]:Nt.darken({color:v.color.surface.alt.strong,fallback:R.bg.alt.stronger,mixinColor:v.color.surface.overlay.mixin,mixinValue:v.opacity.surface.pressed}),[Fr.vars.backgroundColor]:v.color.surface.transparent},"&:disabled, &.disabled":{[M.vars.background]:R.bg.alt.default,[K.vars.color]:"currentColor"},cursor:"default",overflow:"revert",position:"relative"}}}}),pb=Nr("button")({displayName:"Pill",modelHook:jl,subComponents:{Avatar:wie,Count:kie,Icon:Tie,IconButton:Rie,Label:SN}})(({variant:e,maxWidth:t=200,children:n,...a},r,i)=>{const o=typeof t=="number"?Q(t):t,s=e==="readOnly";return e!=null&&e.match(/^(readOnly|removable)$/)?y.jsx(Dl,{as:r!=="button"?r:"span",id:s?i.state.id:void 0,...Ne(a,[i.state.disabled?"disabled":void 0,EN({maxWidth:o,variant:e})]),children:s?y.jsx(SN,{children:n}):n}):y.jsx(r,{disabled:i.state.disabled,...Ne(a,[i.state.disabled?"disabled":void 0,EN({maxWidth:o})]),children:n})}),$r=en({defaultConfig:{...er.defaultConfig,mode:"multiple",shouldVirtualize:!1},requiredConfig:{...er.requiredConfig},contextOverride:er.Context})(e=>{const t=$.useRef([]),n=er(er.mergeConfig(e,{onHide(){r(i),n.events.goTo({id:""})},onFilterChange(){n.events.goTo({id:""})}})),[a,r]=$.useState(()=>(e.initialSelectedIds==="all"?[]:e.initialSelectedIds).map(s=>n.navigation.getItem(s,n)).filter(s=>s)),i=$.useMemo(()=>(n.state.selectedIds==="all"?[]:n.state.selectedIds).map(s=>n.navigation.getItem(s,n)||t.current.find(l=>l.id===s)).filter(s=>s),[n.state.selectedIds,n.state.items]);t.current=i;const o=ya({orientation:"horizontal",onRemove({id:s}){n.events.select({id:s}),r(i.filter(l=>l.id!==s))},shouldVirtualize:!1,items:n.state.visibility==="hidden"?i:a});return{selected:{...o,state:{...o.state,cursorId:$.useMemo(()=>{var s;return o.state.items.find(l=>l.id===o.state.cursorId)?o.state.cursorId:((s=o.state.items[0])==null?void 0:s.id)||""},[o.state.items,o.state.cursorId])}},...n}}),Cie=ue()((e,t)=>({onKeyDown(n){var a;if(n.key==="Backspace"||n.key==="Delete"){const r=n.currentTarget.dataset.id||"",i=XC(r,e.selected);e.selected.events.remove({id:r,event:n}),i?Ey(e.selected,i,n.currentTarget):(a=e.state.inputRef.current)==null||a.focus()}},onClick(n){var i;const a=n.currentTarget.dataset.id||"",r=XC(a,e.selected);e.selected.events.remove({id:a,nextId:r,event:n}),r?Ey(e.selected,r,n.currentTarget):(i=e.state.inputRef.current)==null||i.focus()}})),Nie=Or(ue()(e=>({"aria-selected":!0})),Cie,jC()(e=>e.selected,Hw),jC()(e=>e.selected,$l)),Oie=he("span")({modelHook:$r,elemPropsHook:Nie})(({children:e,removeLabel:t,disabled:n,ref:a,...r},i)=>y.jsxs(pb,{as:i,disabled:n,variant:"removable",children:[y.jsx(pb.Label,{children:e}),y.jsx(pb.IconButton,{"aria-label":t,ref:a,...r})]})),qU=he("div")({modelHook:$r})(({"aria-labelledby":e,disabled:t,removeLabel:n},a,r)=>r.selected.state.items.length?y.jsxs(y.Fragment,{children:[y.jsx("div",{"data-part":"separator"}),y.jsx(Ww,{model:r.selected,as:a,role:"listbox","aria-orientation":"horizontal","aria-labelledby":e,children:i=>y.jsx(Oie,{disabled:t,removeLabel:n,children:i.textValue})})]}):null),GU=pe({base:{border:`1px solid ${R.border.input.default}`,display:"flex",flexDirection:"column",backgroundColor:v.color.surface.default,borderRadius:v.shape.md,boxSizing:"border-box",minHeight:v.size.md,transition:"0.2s box-shadow, 0.2s border-color",margin:0,[Yz.vars.width]:"100%",[K.vars.color]:R.fg.default,"&:hover, &.hover":{borderColor:v.color.border.input.hover},"&:has(:focus-visible:not([disabled])), &.focus":{borderColor:v.color.brand.border.primary,boxShadow:`inset 0 0 0 1px ${v.color.brand.focus.primary}`},'& [data-part="user-input"]':{fontFamily:Ke.default,fontSize:v.fontSize.subtext.lg,fontWeight:Le.normal,lineHeight:v.lineHeight.subtext.lg,backgroundColor:v.color.surface.transparent,borderRadius:v.shape.md,'&:where([data-part="user-input"], [data-part="form-input"])':{height:Q(38)},border:"none !important",boxShadow:"none !important",outlineWidth:"0px","&:where(:not([aria-autocomplete]))":{caretColor:"transparent",cursor:"default","&::selection":{backgroundColor:"transparent"}}},'&:has(:disabled, .disabled) :where([data-part="user-input"])':{opacity:ut.disabled,[K.vars.color]:R.fg.disabled},"&:has(:disabled, .disabled)":{opacity:ut.disabled,[K.vars.color]:R.fg.disabled},'&:has(:disabled, .disabled) :where([data-part="form-input"])':{opacity:0,[K.vars.color]:R.fg.disabled},'& :where([data-part="form-input"])':{position:"absolute",top:0,bottom:0,left:0,right:0,opacity:0,cursor:"default",pointerEvents:"none"},'& :where([data-part="separator"])':{backgroundColor:v.color.border.default,height:1,margin:`0 ${v.gap.sm}`},'& :where([data-part="list"])':{display:"flex",gap:v.gap.sm,padding:v.padding.xs,flexWrap:"wrap"}},modifiers:{error:{error:{borderColor:v.color.brand.border.critical,boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.critical}`,backgroundColor:v.color.brand.surface.critical.default,"&:has(:hover, :disabled, :focus-visible), &:is(.hover, .disabled, .focus)":{borderColor:v.color.brand.border.critical},"&:has(:focus-visible:not([disabled])), &.focus":{borderColor:v.color.brand.border.critical,boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.critical}, 0 0 0 2px ${v.color.focus.inverse}, 0 0 0 4px ${v.color.brand.border.primary}`,outlineOffset:Q(2)}},caution:{borderColor:v.color.brand.border.caution,boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.caution.inner}`,backgroundColor:v.color.brand.surface.caution.default,"&:has(:hover, .hover, :disabled, .disabled, :focus-visible:not([disabled])), .focus:not(:has([disabled]))":{borderColor:v.color.brand.border.caution},"&:hover, &.hover":{borderColor:v.color.brand.border.caution},"&:has(:focus-visible, .focus):not(:has([disabled]))":{boxShadow:`inset 0 0 0 ${Q(2)} ${v.color.brand.focus.caution.inner},
309
309
  0 0 0 2px ${v.color.focus.inverse},
310
310
  0 0 0 4px ${v.color.brand.border.primary}`},outlineOffset:Q(2)}}}}),HU=Or(ue()((e,t)=>({onKeyDown(n){if(n.key===" "&&e.state.visibility==="visible"){const a=li(e.state);a&&(e.events.select({id:a}),n.preventDefault())}(n.key==="ArrowDown"||n.key==="ArrowUp")&&e.state.visibility==="hidden"&&(e.events.show(n),n.preventDefault())}})),gie,UU),Lie=he(vp)({modelHook:$r,elemPropsHook:HU})(({className:e,cs:t,style:n,error:a,"aria-labelledby":r,removeLabel:i,disabled:o,formInputProps:s,...l},u)=>y.jsxs("div",{...at({className:e,cs:t,style:n},GU({error:a})),children:[y.jsxs(Dn,{children:[y.jsx(Dn.Input,{"data-part":"form-input",...s}),y.jsx(Dn.Input,{"data-part":"user-input",as:u,"aria-labelledby":r,readOnly:!0,disabled:o,error:a,...l}),y.jsx(Dn.InnerEnd,{pointerEvents:"none",children:y.jsx(na,{icon:Xz,size:"md"})})]}),y.jsx(qU,{disabled:o,removeLabel:i})]})),$ie=he(vp)({modelHook:$r,elemPropsHook:HU})(({className:e,cs:t,style:n,"aria-labelledby":a,removeLabel:r,formInputProps:i,ref:o,disabled:s,error:l,...u},c)=>y.jsxs("div",{...at({className:e,cs:t,style:n},GU({})),children:[y.jsxs(Dn,{children:[y.jsx(Dn.InnerStart,{pointerEvents:"none",width:v.size.sm,children:y.jsx(na,{icon:jne,size:"xs"})}),y.jsx(Dn.Input,{"data-part":"form-input",placeholder:null,...i}),y.jsx(Dn.Input,{"data-part":"user-input",as:c,"aria-labelledby":a,disabled:s,error:l,...u}),y.jsx(Dn.InnerEnd,{width:v.size.xxxs,children:y.jsx(Dn.ClearButton,{})}),y.jsx(Dn.InnerEnd,{pointerEvents:"none",children:y.jsx(na,{icon:Xz,size:"md"})})]}),y.jsx(qU,{removeLabel:r,disabled:s})]})),Die=ue()(e=>({minWidth:ht.add(Q(e.state.width),Q(2))})),Mie=he("div")({modelHook:$r,elemPropsHook:Die})(({children:e,...t},n)=>y.jsx(bi.Card,{as:n,...t,children:e})),J=Nr()({modelHook:$r,subComponents:{Input:Lie,SearchInput:$ie,Popper:ku.Menu.Popper,Card:Mie,List:ku.Menu.List,Item:ku.Menu.Item}})(({children:e,...t},n,a)=>y.jsx(ku.Menu,{model:a,...t,children:e})),Bl=en({defaultConfig:{error:void 0,id:"",isRequired:!1,orientation:"vertical"}})(e=>{const t=co(e.id);return{state:{...e,id:t},events:{}}}),Pie=ue()(({state:e})=>({id:`hint-${e.id}`})),Fie=ue()(({state:e})=>({required:e.isRequired?!0:void 0,"aria-invalid":e.error==="error"?!0:void 0,"aria-describedby":e.id?`hint-${e.id}`:void 0,"aria-labelledby":e.id?`label-${e.id}`:void 0,id:e.id?`input-${e.id}`:void 0,error:e.error})),zie=ue()(({state:e})=>({htmlFor:`input-${e.id}`,id:`label-${e.id}`})),Uie=pe({base:{display:"flex",flexDirection:"column",gap:v.gap.sm}}),jie=he("div")({displayName:"FormField.Field",modelHook:Bl})((e,t,n)=>y.jsx(t,{"data-width":"ck-formfield-width",...at(e,Uie())})),Bie=pe({extends:Pl,base:{margin:0},modifiers:{error:{error:{color:v.color.brand.fg.critical.default},caution:{color:R.fg.default}}},defaultModifiers:{typeLevel:"subtext.medium"}}),qie=he("p")({displayName:"FormField.Hint",modelHook:Bl,elemPropsHook:Pie})(({children:e,typeLevel:t,variant:n,...a},r,i)=>e?y.jsx(r,{...Ne(a,Bie({typeLevel:t,variant:n,error:i.state.error})),children:e}):null),Gie=he("input")({displayName:"FormField.Input",modelHook:Bl,elemPropsHook:Fie})((e,t)=>y.jsx(Dl,{"data-width":"ck-formfield-width",as:t,...Ne(e)})),Hie=pe({extends:Pl,base:{fontWeight:Le.medium,color:R.fg.default,paddingInlineStart:0,display:"flex",alignItems:"center",minWidth:Q(180)},modifiers:{isRequired:{true:{"&::after":{content:'"*"',fontSize:v.fontSize.body.lg,fontWeight:Le.normal,color:v.color.brand.fg.critical.default,textDecoration:"unset",marginInlineStart:v.gap.xs}}},orientation:{horizontalStart:{justifyContent:"flex-start",float:"left",maxHeight:v.size.md},horizontalEnd:{maxHeight:v.size.md,float:"left",justifyContent:"flex-end"},vertical:{width:"100%"}},isHidden:{true:{...Tz}}},defaultModifiers:{typeLevel:"subtext.large"}}),Vie=he("label")({displayName:"FormField.Label",modelHook:Bl,elemPropsHook:zie})(({children:e,typeLevel:t,variant:n,isHidden:a,...r},i,o)=>y.jsx(i,{...Ne(r,Hie({typeLevel:t,variant:n,isHidden:a?"true":void 0,isRequired:o.state.isRequired,orientation:o.state.orientation})),children:e})),Wie=pe({base:{display:"flex",border:"none",padding:0,margin:`0 0 ${v.gap.lg}`},modifiers:{grow:{true:{width:"100%",'[data-width="ck-formfield-width"]':{width:"100%"},'&:has(div[data-width="ck-formfield-width"])':{width:"100%"}}},orientation:{horizontalStart:{flexDirection:"row",gap:v.gap.xl,width:"100%"},horizontalEnd:{flexDirection:"row",gap:v.gap.xl,width:"100%"},vertical:{flexDirection:"column",gap:v.gap.xs,alignItems:"flex-start"}},required:{true:{}},error:{error:{},caution:{}}},defaultModifiers:{orientation:"vertical"}}),We=Nr("div")({displayName:"FormField",modelHook:Bl,subComponents:{Input:Gie,Label:Vie,Hint:qie,Field:jie}})(({children:e,grow:t,orientation:n="vertical",...a},r,i)=>y.jsx(r,{...Ne(a,Wie({grow:t,orientation:i.state.orientation,error:i.state.error,required:i.state.isRequired})),children:e})),Zie=["Cheese","Olives","Onions","Pepperoni","Peppers"],VU=()=>y.jsx(y.Fragment,{children:y.jsx(J,{items:Zie,initialSelectedIds:["Olives","Onions","Pepperoni"],children:y.jsxs(We,{orientation:"horizontalStart",children:[y.jsx(We.Label,{children:"Toppings"}),y.jsx(We.Input,{as:J.Input,placeholder:"Select Multiple",removeLabel:"Remove",disabled:!0}),y.jsx(J.Popper,{children:y.jsx(J.Card,{children:y.jsx(J.List,{children:e=>y.jsx(J.Item,{"data-id":e,children:y.jsx(J.Item.Text,{children:e})})})})})]})})});VU.__RAW__=`import React from 'react';
311
311