try{
(()=>{var ya=Object.defineProperty;var te=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var ge=(e,t)=>()=>(e&&(t=e(e=0)),t);var ba=(e,t)=>{for(var a in t)ya(e,a,{get:t[a],enumerable:!0})};var v=ge(()=>{});var A=ge(()=>{});var x=ge(()=>{});var pt={};ba(pt,{A:()=>$a,AbstractToolbar:()=>_a,ActionBar:()=>Ta,ActionList:()=>Ra,AddonPanel:()=>Ca,Badge:()=>z,Bar:()=>Oa,Blockquote:()=>ka,Button:()=>F,Card:()=>Na,ClipboardCode:()=>wa,Code:()=>Pa,Collapsible:()=>Da,DL:()=>La,Div:()=>Ma,DocumentWrapper:()=>Fa,EmptyTabContent:()=>Pe,ErrorFormatter:()=>Ua,FlexBar:()=>Ha,Form:()=>Ga,H1:()=>Ba,H2:()=>qa,H3:()=>Va,H4:()=>Ya,H5:()=>ja,H6:()=>Wa,HR:()=>za,IconButton:()=>Ka,Img:()=>Xa,LI:()=>Qa,Link:()=>de,ListItem:()=>Za,Loader:()=>Ja,Modal:()=>er,ModalDecorator:()=>tr,OL:()=>ar,P:()=>rr,Placeholder:()=>nr,Popover:()=>or,PopoverProvider:()=>lr,Pre:()=>ir,ProgressSpinner:()=>sr,ResetWrapper:()=>cr,ScrollArea:()=>ur,Select:()=>De,Separator:()=>mr,Spaced:()=>dr,Span:()=>pr,StatelessTab:()=>fr,StatelessTabList:()=>yr,StatelessTabPanel:()=>br,StatelessTabsView:()=>hr,StorybookIcon:()=>Sr,StorybookLogo:()=>gr,SyntaxHighlighter:()=>Le,TT:()=>Er,TabBar:()=>Ir,TabButton:()=>vr,TabList:()=>Ar,TabPanel:()=>xr,TabWrapper:()=>$r,Table:()=>_r,Tabs:()=>Tr,TabsState:()=>Rr,TabsView:()=>Me,ToggleButton:()=>Cr,Toolbar:()=>Or,Tooltip:()=>kr,TooltipLinkList:()=>Nr,TooltipMessage:()=>wr,TooltipNote:()=>Pr,TooltipProvider:()=>Dr,UL:()=>Lr,WithTooltip:()=>Mr,WithTooltipPure:()=>Fr,Zoom:()=>Ur,codeCommon:()=>Hr,components:()=>Gr,convertToReactAriaPlacement:()=>Br,createCopyToClipboardFunction:()=>qr,default:()=>xa,getStoryHref:()=>Vr,interleaveSeparators:()=>Yr,nameSpaceClassNames:()=>jr,resetComponents:()=>Wr,useTabsState:()=>zr,withReset:()=>Kr});var xa,$a,_a,Ta,Ra,Ca,z,Oa,ka,F,Na,wa,Pa,Da,La,Ma,Fa,Pe,Ua,Ha,Ga,Ba,qa,Va,Ya,ja,Wa,za,Ka,Xa,Qa,de,Za,Ja,er,tr,ar,rr,nr,or,lr,ir,sr,cr,ur,De,mr,dr,pr,fr,yr,br,hr,Sr,gr,Le,Er,Ir,vr,Ar,xr,$r,_r,Tr,Rr,Me,Cr,Or,kr,Nr,wr,Pr,Dr,Lr,Mr,Fr,Ur,Hr,Gr,Br,qr,Vr,Yr,jr,Wr,zr,Kr,K=ge(()=>{v();A();x();xa=__STORYBOOK_COMPONENTS__,{A:$a,AbstractToolbar:_a,ActionBar:Ta,ActionList:Ra,AddonPanel:Ca,Badge:z,Bar:Oa,Blockquote:ka,Button:F,Card:Na,ClipboardCode:wa,Code:Pa,Collapsible:Da,DL:La,Div:Ma,DocumentWrapper:Fa,EmptyTabContent:Pe,ErrorFormatter:Ua,FlexBar:Ha,Form:Ga,H1:Ba,H2:qa,H3:Va,H4:Ya,H5:ja,H6:Wa,HR:za,IconButton:Ka,Img:Xa,LI:Qa,Link:de,ListItem:Za,Loader:Ja,Modal:er,ModalDecorator:tr,OL:ar,P:rr,Placeholder:nr,Popover:or,PopoverProvider:lr,Pre:ir,ProgressSpinner:sr,ResetWrapper:cr,ScrollArea:ur,Select:De,Separator:mr,Spaced:dr,Span:pr,StatelessTab:fr,StatelessTabList:yr,StatelessTabPanel:br,StatelessTabsView:hr,StorybookIcon:Sr,StorybookLogo:gr,SyntaxHighlighter:Le,TT:Er,TabBar:Ir,TabButton:vr,TabList:Ar,TabPanel:xr,TabWrapper:$r,Table:_r,Tabs:Tr,TabsState:Rr,TabsView:Me,ToggleButton:Cr,Toolbar:Or,Tooltip:kr,TooltipLinkList:Nr,TooltipMessage:wr,TooltipNote:Pr,TooltipProvider:Dr,UL:Lr,WithTooltip:Mr,WithTooltipPure:Fr,Zoom:Ur,codeCommon:Hr,components:Gr,convertToReactAriaPlacement:Br,createCopyToClipboardFunction:qr,getStoryHref:Vr,interleaveSeparators:Yr,nameSpaceClassNames:jr,resetComponents:Wr,useTabsState:zr,withReset:Kr}=__STORYBOOK_COMPONENTS__});v();A();x();v();A();x();v();A();x();var w="storybook/a11y",Ee=`${w}/panel`,ot="a11y",me="vision",vo=`${w}/ui`,ha=`${w}/result`,Sa=`${w}/request`,ga=`${w}/running`,Ea=`${w}/error`,Ia=`${w}/manual`,va=`${w}/select`,Aa="writing-tests/accessibility-testing",lt=`${Aa}#why-are-my-tests-failing-in-different-environments`,Z={RESULT:ha,REQUEST:Sa,RUNNING:ga,ERROR:Ea,MANUAL:Ia,SELECT:va},Ne="storybook/component-test",it="storybook/a11y",we={blurred:{label:"Blurred vision",filter:"blur(2px)",percentage:22.9},deuteranomaly:{label:"Deuteranomaly",filter:'url("#storybook-a11y-vision-deuteranomaly")',percentage:2.7},deuteranopia:{label:"Deuteranopia",filter:'url("#storybook-a11y-vision-deuteranopia")',percentage:.56},protanomaly:{label:"Protanomaly",filter:'url("#storybook-a11y-vision-protanomaly")',percentage:.66},protanopia:{label:"Protanopia",filter:'url("#storybook-a11y-vision-protanopia")',percentage:.59},tritanomaly:{label:"Tritanomaly",filter:'url("#storybook-a11y-vision-tritanomaly")',percentage:.01},tritanopia:{label:"Tritanopia",filter:'url("#storybook-a11y-vision-tritanopia")',percentage:.016},achromatopsia:{label:"Achromatopsia",filter:'url("#storybook-a11y-vision-achromatopsia")',percentage:1e-4},grayscale:{label:"Grayscale",filter:"grayscale(100%)"}},st=`<svg id="storybook-a11y-vision-filters" style="display: none !important;">
  <defs>
    <filter id="storybook-a11y-vision-protanopia">
      <feColorMatrix
        in="SourceGraphic"
        type="matrix"
        values="0.567, 0.433, 0, 0, 0 0.558, 0.442, 0, 0, 0 0, 0.242, 0.758, 0, 0 0, 0, 0, 1, 0"
      />
    </filter>
    <filter id="storybook-a11y-vision-protanomaly">
      <feColorMatrix
        in="SourceGraphic"
        type="matrix"
        values="0.817, 0.183, 0, 0, 0 0.333, 0.667, 0, 0, 0 0, 0.125, 0.875, 0, 0 0, 0, 0, 1, 0"
      />
    </filter>
    <filter id="storybook-a11y-vision-deuteranopia">
      <feColorMatrix
        in="SourceGraphic"
        type="matrix"
        values="0.625, 0.375, 0, 0, 0 0.7, 0.3, 0, 0, 0 0, 0.3, 0.7, 0, 0 0, 0, 0, 1, 0"
      />
    </filter>
    <filter id="storybook-a11y-vision-deuteranomaly">
      <feColorMatrix
        in="SourceGraphic"
        type="matrix"
        values="0.8, 0.2, 0, 0, 0 0.258, 0.742, 0, 0, 0 0, 0.142, 0.858, 0, 0 0, 0, 0, 1, 0"
      />
    </filter>
    <filter id="storybook-a11y-vision-tritanopia">
      <feColorMatrix
        in="SourceGraphic"
        type="matrix"
        values="0.95, 0.05,  0, 0, 0 0,  0.433, 0.567, 0, 0 0,  0.475, 0.525, 0, 0 0,  0, 0, 1, 0"
      />
    </filter>
    <filter id="storybook-a11y-vision-tritanomaly">
      <feColorMatrix
        in="SourceGraphic"
        type="matrix"
        values="0.967, 0.033, 0, 0, 0 0, 0.733, 0.267, 0, 0 0, 0.183, 0.817, 0, 0 0, 0, 0, 1, 0"
      />
    </filter>
    <filter id="storybook-a11y-vision-achromatopsia">
      <feColorMatrix
        in="SourceGraphic"
        type="matrix"
        values="0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0.299, 0.587, 0.114, 0, 0 0, 0, 0, 1, 0"
      />
    </filter>
  </defs>
</svg>`;v();A();x();v();A();x();var n=__REACT__,{Children:U,Component:ko,Fragment:le,Profiler:No,PureComponent:wo,StrictMode:Po,Suspense:Do,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Lo,act:Mo,cloneElement:J,createContext:ae,createElement:y,createFactory:Fo,createRef:Uo,forwardRef:N,isValidElement:j,lazy:Ho,memo:Go,startTransition:Bo,unstable_act:qo,useCallback:E,useContext:ie,useDebugValue:Vo,useDeferredValue:Yo,useEffect:O,useId:ct,useImperativeHandle:jo,useInsertionEffect:Wo,useLayoutEffect:ut,useMemo:L,useReducer:mt,useRef:M,useState:V,useSyncExternalStore:zo,useTransition:Ko,version:Xo}=__REACT__;K();v();A();x();var rl=__STORYBOOK_API__,{ActiveTabs:nl,Consumer:ol,ManagerContext:ll,Provider:il,RequestResponseError:sl,Tag:cl,addons:Ie,combineParameters:ul,controlOrMetaKey:ml,controlOrMetaSymbol:dl,eventMatchesShortcut:pl,eventToShortcut:fl,experimental_MockUniversalStore:yl,experimental_UniversalStore:bl,experimental_getStatusStore:ft,experimental_getTestProviderStore:hl,experimental_requestResponse:Sl,experimental_useStatusStore:yt,experimental_useTestProviderStore:gl,experimental_useUniversalStore:El,internal_checklistStore:Il,internal_fullStatusStore:vl,internal_fullTestProviderStore:Al,internal_universalChecklistStore:xl,internal_universalStatusStore:$l,internal_universalTestProviderStore:_l,isMacLike:Tl,isShortcutTaken:Rl,keyToSymbol:Cl,merge:Ol,mockChannel:kl,optionOrAltSymbol:Nl,shortcutMatchesShortcut:wl,shortcutToAriaKeyshortcuts:Pl,shortcutToHumanString:Dl,types:Fe,useAddonState:ve,useArgTypes:Ll,useArgs:Ml,useChannel:bt,useGlobalTypes:Fl,useGlobals:Ae,useParameter:ht,useSharedState:Ul,useStoryPrepared:Hl,useStorybookApi:se,useStorybookState:St}=__STORYBOOK_API__;K();v();A();x();var Yl=__STORYBOOK_ICONS__,{AccessibilityAltIcon:jl,AccessibilityIcon:gt,AccessibilityIgnoredIcon:Wl,AddIcon:zl,AdminIcon:Kl,AlertAltIcon:Xl,AlertIcon:Ql,AlignLeftIcon:Zl,AlignRightIcon:Jl,AppleIcon:ei,ArrowBottomLeftIcon:ti,ArrowBottomRightIcon:ai,ArrowDownIcon:ri,ArrowLeftIcon:ni,ArrowRightIcon:oi,ArrowSolidDownIcon:li,ArrowSolidLeftIcon:ii,ArrowSolidRightIcon:si,ArrowSolidUpIcon:ci,ArrowTopLeftIcon:ui,ArrowTopRightIcon:mi,ArrowUpIcon:di,AzureDevOpsIcon:pi,BackIcon:fi,BasketIcon:yi,BatchAcceptIcon:bi,BatchDenyIcon:hi,BeakerIcon:Si,BellIcon:gi,BitbucketIcon:Ei,BoldIcon:Ii,BookIcon:vi,BookmarkHollowIcon:Ai,BookmarkIcon:xi,BottomBarIcon:$i,BottomBarToggleIcon:_i,BoxIcon:Ti,BranchIcon:Ri,BrowserIcon:Ci,BugIcon:Oi,ButtonIcon:ki,CPUIcon:Ni,CalendarIcon:wi,CameraIcon:Pi,CameraStabilizeIcon:Di,CategoryIcon:Li,CertificateIcon:Mi,ChangedIcon:Fi,ChatIcon:Ui,CheckIcon:Et,ChecklistIcon:Hi,ChevronDownIcon:Gi,ChevronLeftIcon:Bi,ChevronRightIcon:qi,ChevronSmallDownIcon:It,ChevronSmallLeftIcon:Vi,ChevronSmallRightIcon:Yi,ChevronSmallUpIcon:ji,ChevronUpIcon:Wi,ChromaticIcon:zi,ChromeIcon:Ki,CircleHollowIcon:Xi,CircleIcon:Qi,ClearIcon:Zi,CloseAltIcon:Ji,CloseIcon:es,CloudHollowIcon:ts,CloudIcon:as,CogIcon:rs,CollapseIcon:vt,CommandIcon:ns,CommentAddIcon:os,CommentIcon:ls,CommentsIcon:is,CommitIcon:ss,CompassIcon:cs,ComponentDrivenIcon:us,ComponentIcon:ms,ContrastIcon:ds,ContrastIgnoredIcon:ps,ControlsIcon:fs,CopyIcon:At,CreditIcon:ys,CrossIcon:bs,DashboardIcon:hs,DatabaseIcon:Ss,DeleteIcon:gs,DiamondIcon:Es,DirectionIcon:Is,DiscordIcon:vs,DocChartIcon:As,DocListIcon:xs,DocumentIcon:$s,DownloadIcon:_s,DragIcon:Ts,EditIcon:Rs,EditorIcon:Cs,EllipsisIcon:Os,EmailIcon:ks,ExpandAltIcon:xt,ExpandIcon:Ns,EyeCloseIcon:$t,EyeIcon:_t,FaceHappyIcon:ws,FaceNeutralIcon:Ps,FaceSadIcon:Ds,FacebookIcon:Ls,FailedIcon:Ms,FastForwardIcon:Fs,FigmaIcon:Us,FilesIcon:Hs,FilterIcon:Gs,FlagIcon:Bs,FolderIcon:qs,FormIcon:Vs,GDriveIcon:Ys,GiftIcon:js,GithubIcon:Ws,GitlabIcon:zs,GlobeIcon:Ks,GoogleIcon:Xs,GraphBarIcon:Qs,GraphLineIcon:Zs,GraphqlIcon:Js,GridAltIcon:ec,GridIcon:tc,GrowIcon:ac,HeartHollowIcon:rc,HeartIcon:nc,HomeIcon:oc,HourglassIcon:lc,InfoIcon:ic,ItalicIcon:sc,JumpToIcon:cc,KeyIcon:uc,LightningIcon:mc,LightningOffIcon:dc,LinkBrokenIcon:pc,LinkIcon:fc,LinkedinIcon:yc,LinuxIcon:bc,ListOrderedIcon:hc,ListUnorderedIcon:Sc,LocationIcon:Tt,LockIcon:gc,MarkdownIcon:Ec,MarkupIcon:Ic,MediumIcon:vc,MemoryIcon:Ac,MenuIcon:xc,MergeIcon:$c,MirrorIcon:_c,MobileIcon:Tc,MoonIcon:Rc,NutIcon:Cc,OutboxIcon:Oc,OutlineIcon:kc,PaintBrushAltIcon:Nc,PaintBrushIcon:wc,PaperClipIcon:Pc,ParagraphIcon:Dc,PassedIcon:Lc,PhoneIcon:Mc,PhotoDragIcon:Fc,PhotoIcon:Uc,PhotoStabilizeIcon:Hc,PinAltIcon:Gc,PinIcon:Bc,PlayAllHollowIcon:qc,PlayBackIcon:Vc,PlayHollowIcon:Yc,PlayIcon:jc,PlayNextIcon:Wc,PlusIcon:zc,PointerDefaultIcon:Kc,PointerHandIcon:Xc,PopOutIcon:Qc,PowerIcon:Zc,PrintIcon:Jc,ProceedIcon:eu,ProfileIcon:tu,PullRequestIcon:au,QuestionIcon:ru,RSSIcon:nu,RedirectIcon:ou,ReduxIcon:lu,RefreshIcon:iu,ReplyIcon:su,RepoIcon:cu,RequestChangeIcon:uu,RewindIcon:mu,RulerIcon:du,SaveIcon:pu,SearchIcon:fu,ShareAltIcon:yu,ShareIcon:bu,ShieldIcon:hu,SideBySideIcon:Su,SidebarAltIcon:gu,SidebarAltToggleIcon:Eu,SidebarIcon:Iu,SidebarToggleIcon:vu,SortDownIcon:Au,SortUpIcon:xu,SpeakerIcon:$u,StackedIcon:_u,StarHollowIcon:Tu,StarIcon:Ru,StatusFailIcon:Cu,StatusIcon:Ou,StatusNewIcon:ku,StatusPassIcon:Nu,StatusWarnIcon:wu,StickerIcon:Pu,StopAltHollowIcon:Du,StopAltIcon:Lu,StopIcon:Mu,StorybookIcon:Fu,StructureIcon:Uu,SubtractIcon:Hu,SunIcon:Gu,SupportIcon:Bu,SweepIcon:qu,SwitchAltIcon:Vu,SyncIcon:xe,TabletIcon:Yu,ThumbsUpIcon:ju,TimeIcon:Wu,TimerIcon:zu,TransferIcon:Ku,TrashIcon:Xu,TwitterIcon:Qu,TypeIcon:Zu,UbuntuIcon:Ju,UndoIcon:em,UnfoldIcon:tm,UnlockIcon:am,UnpinIcon:rm,UploadIcon:nm,UserAddIcon:om,UserAltIcon:lm,UserIcon:im,UsersIcon:sm,VSCodeIcon:cm,VerifiedIcon:um,VideoIcon:mm,WandIcon:dm,WatchIcon:pm,WindowsIcon:fm,WrenchIcon:ym,XIcon:bm,YoutubeIcon:hm,ZoomIcon:Sm,ZoomOutIcon:gm,ZoomResetIcon:Em,iconList:Im}=__STORYBOOK_ICONS__;v();A();x();var _m=__STORYBOOK_THEMING__,{CacheProvider:Tm,ClassNames:Rm,Global:Cm,ThemeProvider:Om,background:km,color:Nm,convert:Rt,create:wm,createCache:Pm,createGlobal:Dm,createReset:Lm,css:Mm,darken:Fm,ensure:Um,getPreferredColorScheme:Hm,ignoreSsrWarning:Gm,isPropValid:Bm,jsx:qm,keyframes:Vm,lighten:Ym,srOnlyStyles:jm,styled:I,themes:Ct,tokens:Wm,typography:zm,useTheme:Ot,withTheme:Km}=__STORYBOOK_THEMING__;v();A();x();var ed=__STORYBOOK_CORE_EVENTS__,{AI_PROMPT_NUDGE:td,AI_SETUP_ANALYTICS_REQUEST:ad,AI_SETUP_ANALYTICS_RESPONSE:rd,ARGTYPES_INFO_REQUEST:nd,ARGTYPES_INFO_RESPONSE:od,CHANNEL_CREATED:ld,CHANNEL_WS_DISCONNECT:id,CONFIG_ERROR:sd,CREATE_NEW_STORYFILE_REQUEST:cd,CREATE_NEW_STORYFILE_RESPONSE:ud,CURRENT_STORY_WAS_SET:md,DOCS_PREPARED:dd,DOCS_RENDERED:pd,FILE_COMPONENT_SEARCH_REQUEST:fd,FILE_COMPONENT_SEARCH_RESPONSE:yd,FORCE_REMOUNT:bd,FORCE_RE_RENDER:hd,GHOST_STORIES_REQUEST:Sd,GHOST_STORIES_RESPONSE:gd,GLOBALS_UPDATED:Ed,MANAGER_INERT_ATTRIBUTE_CHANGED:Id,NAVIGATE_URL:vd,OPEN_IN_EDITOR_REQUEST:Ad,OPEN_IN_EDITOR_RESPONSE:xd,PLAY_FUNCTION_THREW_EXCEPTION:$d,PRELOAD_ENTRIES:_d,PREVIEW_BUILDER_PROGRESS:Td,PREVIEW_INITIALIZED:Rd,PREVIEW_KEYDOWN:Cd,REGISTER_SUBSCRIPTION:Od,REQUEST_WHATS_NEW_DATA:kd,RESET_STORY_ARGS:Nd,RESULT_WHATS_NEW_DATA:wd,SAVE_STORY_REQUEST:Pd,SAVE_STORY_RESPONSE:Dd,SELECT_STORY:Ld,SET_CONFIG:Md,SET_CURRENT_STORY:Fd,SET_FILTER:Ud,SET_GLOBALS:Hd,SET_INDEX:Gd,SET_STORIES:Bd,SET_WHATS_NEW_CACHE:qd,SHARED_STATE_CHANGED:Vd,SHARED_STATE_SET:Yd,SHARE_ISOLATE_MODE:jd,SIDEBAR_FILTER_CHANGED:Wd,STORIES_COLLAPSE_ALL:zd,STORIES_EXPAND_ALL:Kd,STORY_ARGS_UPDATED:Xd,STORY_CHANGED:kt,STORY_ERRORED:Qd,STORY_FINISHED:Nt,STORY_HOT_UPDATED:wt,STORY_INDEX_INVALIDATED:Zd,STORY_MISSING:Jd,STORY_PREPARED:ep,STORY_RENDERED:tp,STORY_RENDER_PHASE_CHANGED:Pt,STORY_SPECIFIED:ap,STORY_THREW_EXCEPTION:rp,STORY_UNCHANGED:np,TELEMETRY_ERROR:op,TOGGLE_WHATS_NEW_NOTIFICATIONS:lp,UNHANDLED_ERRORS_WHILE_PLAYING:ip,UPDATE_GLOBALS:sp,UPDATE_QUERY_PARAMS:cp,UPDATE_STORY_ARGS:up}=__STORYBOOK_CORE_EVENTS__;v();A();x();v();A();x();var $e="storybook/highlight",_e=`${$e}/add`,Te=`${$e}/remove`,Xr=`${$e}/reset`,Ue=`${$e}/scroll-into-view`;v();A();x();var gp=(e=>typeof te<"u"?te:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof te<"u"?te:t)[a]}):e)(function(e){if(typeof te<"u")return te.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});K();K();v();A();x();var kp=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Np,createPortal:wp,createRoot:Pp,findDOMNode:Dp,flushSync:Dt,hydrate:Lp,hydrateRoot:Mp,render:Fp,unmountComponentAtNode:Up,unstable_batchedUpdates:Hp,unstable_renderSubtreeIntoContainer:Gp,version:Bp}=__REACT_DOM__;K();K();K();var H={VIOLATION:"violations",PASS:"passes",INCOMPLETION:"incomplete"},Qr={"area-alt":{title:"<area> alt text",axeSummary:"Ensure <area> elements of image maps have alternative text",friendlySummary:"Add alt text to all <area> elements of image maps."},"aria-allowed-attr":{title:"Supported ARIA attributes",axeSummary:"Ensure an element's role supports its ARIA attributes",friendlySummary:"Only use ARIA attributes that are permitted for the element's role."},"aria-braille-equivalent":{title:"Braille equivalent",axeSummary:"Ensure aria-braillelabel and aria-brailleroledescription have a non-braille equivalent",friendlySummary:"If you use braille ARIA labels, also provide a matching non-braille label."},"aria-command-name":{title:"ARIA command name",axeSummary:"Ensure every ARIA button, link and menuitem has an accessible name",friendlySummary:"Every ARIA button, link, or menuitem needs a label or accessible name."},"aria-conditional-attr":{title:"ARIA attribute valid for role",axeSummary:"Ensure ARIA attributes are used as described in the specification of the element's role",friendlySummary:"Follow the element role's specification when using ARIA attributes."},"aria-deprecated-role":{title:"Deprecated ARIA role",axeSummary:"Ensure elements do not use deprecated roles",friendlySummary:"Don't use deprecated ARIA roles on elements."},"aria-hidden-body":{title:"Hidden body",axeSummary:'Ensure aria-hidden="true" is not present on the document <body>',friendlySummary:'Never set aria-hidden="true" on the <body> element.'},"aria-hidden-focus":{title:"Hidden element focus",axeSummary:"Ensure aria-hidden elements are not focusable nor contain focusable elements",friendlySummary:"Elements marked hidden (aria-hidden) should not be focusable or contain focusable items."},"aria-input-field-name":{title:"ARIA input field name",axeSummary:"Ensure every ARIA input field has an accessible name",friendlySummary:"Give each ARIA text input or field a label or accessible name."},"aria-meter-name":{title:"ARIA meter name",axeSummary:"Ensure every ARIA meter node has an accessible name",friendlySummary:'Give each element with role="meter" a label or accessible name.'},"aria-progressbar-name":{title:"ARIA progressbar name",axeSummary:"Ensure every ARIA progressbar node has an accessible name",friendlySummary:'Give each element with role="progressbar" a label or accessible name.'},"aria-prohibited-attr":{title:"ARIA prohibited attributes",axeSummary:"Ensure ARIA attributes are not prohibited for an element's role",friendlySummary:"Don't use ARIA attributes that are forbidden for that element's role."},"aria-required-attr":{title:"ARIA required attributes",axeSummary:"Ensure elements with ARIA roles have all required ARIA attributes",friendlySummary:"Include all required ARIA attributes for elements with that ARIA role."},"aria-required-children":{title:"ARIA required children",axeSummary:"Ensure elements with an ARIA role that require child roles contain them",friendlySummary:"If an ARIA role requires specific child roles, include those child elements."},"aria-required-parent":{title:"ARIA required parent",axeSummary:"Ensure elements with an ARIA role that require parent roles are contained by them",friendlySummary:"Place elements with certain ARIA roles inside the required parent role element."},"aria-roles":{title:"ARIA role value",axeSummary:"Ensure all elements with a role attribute use a valid value",friendlySummary:"Use only valid values in the role attribute (no typos or invalid roles)."},"aria-toggle-field-name":{title:"ARIA toggle field name",axeSummary:"Ensure every ARIA toggle field has an accessible name",friendlySummary:"Every ARIA toggle field (elements with the checkbox, radio, or switch roles) needs an accessible name."},"aria-tooltip-name":{title:"ARIA tooltip name",axeSummary:"Ensure every ARIA tooltip node has an accessible name",friendlySummary:'Give each element with role="tooltip" a descriptive accessible name.'},"aria-valid-attr-value":{title:"ARIA attribute values valid",axeSummary:"Ensure all ARIA attributes have valid values",friendlySummary:"Use only valid values for ARIA attributes (no typos or invalid values)."},"aria-valid-attr":{title:"ARIA attribute valid",axeSummary:"Ensure attributes that begin with aria- are valid ARIA attributes",friendlySummary:"Use only valid aria-* attributes (make sure the attribute name is correct)."},blink:{title:"<blink> element",axeSummary:"Ensure <blink> elements are not used",friendlySummary:"Don't use the deprecated <blink> element."},"button-name":{title:"Button name",axeSummary:"Ensure buttons have discernible text",friendlySummary:"Every <button> needs a visible label or accessible name."},bypass:{title:"Navigation bypass",axeSummary:"Ensure each page has at least one mechanism to bypass navigation and jump to content",friendlySummary:'Provide a way to skip repetitive navigation (e.g. a "Skip to content" link).'},"color-contrast":{title:"Color contrast",axeSummary:"Ensure the contrast between foreground and background text meets WCAG 2 AA minimum thresholds",friendlySummary:"The color contrast between text and its background meets WCAG AA contrast ratio."},"definition-list":{title:"Definition list structure",axeSummary:"Ensure <dl> elements are structured correctly",friendlySummary:"Definition lists (<dl>) should directly contain <dt> and <dd> elements in order."},dlitem:{title:"Definition list items",axeSummary:"Ensure <dt> and <dd> elements are contained by a <dl>",friendlySummary:"Ensure <dt> and <dd> elements are contained by a <dl>"},"document-title":{title:"Document title",axeSummary:"Ensure each HTML document contains a non-empty <title> element",friendlySummary:"Include a non-empty <title> element for every page."},"duplicate-id-aria":{title:"Unique id",axeSummary:"Ensure every id attribute value used in ARIA and in labels is unique",friendlySummary:"Every id used for ARIA or form labels should be unique on the page."},"form-field-multiple-labels":{title:"Multiple form field labels",axeSummary:"Ensure a form field does not have multiple <label> elements",friendlySummary:"Don't give a single form field more than one <label>."},"frame-focusable-content":{title:"Focusable frames",axeSummary:'Ensure <frame> and <iframe> with focusable content do not have tabindex="-1"',friendlySummary:`Don't set tabindex="-1" on a <frame> or <iframe> that contains focusable elements.`},"frame-title-unique":{title:"Unique frame title",axeSummary:"Ensure <iframe> and <frame> elements contain a unique title attribute",friendlySummary:"Use a unique title attribute for each <frame> or <iframe> on the page."},"frame-title":{title:"Frame title",axeSummary:"Ensure <iframe> and <frame> elements have an accessible name",friendlySummary:"Every <frame> and <iframe> needs a title or accessible name."},"html-has-lang":{title:"<html> has lang",axeSummary:"Ensure every HTML document has a lang attribute",friendlySummary:"Add a lang attribute to the <html> element."},"html-lang-valid":{title:"<html> lang valid",axeSummary:"Ensure the <html lang> attribute has a valid value",friendlySummary:"Use a valid language code in the <html lang> attribute."},"html-xml-lang-mismatch":{title:"HTML and XML lang mismatch",axeSummary:"Ensure that HTML elements with both lang and xml:lang agree on the page's language",friendlySummary:"If using both lang and xml:lang on <html>, make sure they are the same language."},"image-alt":{title:"Image alt text",axeSummary:"Ensure <img> elements have alternative text or a role of none/presentation",friendlySummary:'Give every image alt text or mark it as decorative with alt="".'},"input-button-name":{title:"Input button name",axeSummary:"Ensure input buttons have discernible text",friendlySummary:'Give each <input type="button"> or similar a clear label (text or aria-label).'},"input-image-alt":{title:"Input image alt",axeSummary:'Ensure <input type="image"> elements have alternative text',friendlySummary:'<input type="image"> must have alt text describing its image.'},label:{title:"Form label",axeSummary:"Ensure every form element has a label",friendlySummary:"Every form field needs an associated label."},"link-in-text-block":{title:"Identifiable links",axeSummary:"Ensure links are distinguishable from surrounding text without relying on color",friendlySummary:"Make sure links are obviously identifiable without relying only on color."},"link-name":{title:"Link name",axeSummary:"Ensure links have discernible text",friendlySummary:"Give each link meaningful text or an aria-label so its purpose is clear."},list:{title:"List structure",axeSummary:"Ensure that lists are structured correctly",friendlySummary:"Use proper list structure. Only use <li> inside <ul> or <ol>."},listitem:{title:"List item",axeSummary:"Ensure <li> elements are used semantically",friendlySummary:"Only use <li> tags inside <ul> or <ol> lists."},marquee:{title:"<marquee> element",axeSummary:"Ensure <marquee> elements are not used",friendlySummary:"Don't use the deprecated <marquee> element."},"meta-refresh":{title:"<meta> refresh",axeSummary:'Ensure <meta http-equiv="refresh"> is not used for delayed refresh',friendlySummary:'Avoid auto-refreshing or redirecting pages using <meta http-equiv="refresh">.'},"meta-viewport":{title:"<meta> viewport scaling",axeSummary:'Ensure <meta name="viewport"> does not disable text scaling and zooming',friendlySummary:`Don't disable user zooming in <meta name="viewport"> to allow scaling.`},"nested-interactive":{title:"Nested interactive controls",axeSummary:"Ensure interactive controls are not nested (nesting causes screen reader/focus issues)",friendlySummary:"Do not nest interactive elements; it can confuse screen readers and keyboard focus."},"no-autoplay-audio":{title:"Autoplaying video",axeSummary:"Ensure <video> or <audio> do not autoplay audio > 3 seconds without a control to stop/mute",friendlySummary:"Don't autoplay audio for more than 3 seconds without providing a way to stop or mute it."},"object-alt":{title:"<object> alt text",axeSummary:"Ensure <object> elements have alternative text",friendlySummary:"Provide alternative text or content for <object> elements."},"role-img-alt":{title:'role="img" alt text',axeSummary:'Ensure elements with role="img" have alternative text',friendlySummary:'Any element with role="img" needs alt text.'},"scrollable-region-focusable":{title:"Scrollable element focusable",axeSummary:"Ensure elements with scrollable content are keyboard-accessible",friendlySummary:"If an area can scroll, ensure it can be focused and scrolled via keyboard."},"select-name":{title:"<select> name",axeSummary:"Ensure <select> elements have an accessible name",friendlySummary:"Give each <select> field a label or other accessible name."},"server-side-image-map":{title:"Server-side image map",axeSummary:"Ensure that server-side image maps are not used",friendlySummary:"Don't use server-side image maps."},"svg-img-alt":{title:"SVG image alt text",axeSummary:"Ensure <svg> images/graphics have accessible text",friendlySummary:'SVG images with role="img" or similar need a text description.'},"td-headers-attr":{title:"Table headers attribute",axeSummary:"Ensure each cell in a table using headers only refers to <th> in that table",friendlySummary:"In tables using the headers attribute, only reference other cells in the same table."},"th-has-data-cells":{title:"<th> has data cell",axeSummary:"Ensure <th> (or header role) elements have data cells they describe",friendlySummary:"Every table header (<th> or header role) should correspond to at least one data cell."},"valid-lang":{title:"Valid lang",axeSummary:"Ensure lang attributes have valid values",friendlySummary:"Use valid language codes in all lang attributes."},"video-caption":{title:"<video> captions",axeSummary:"Ensure <video> elements have captions",friendlySummary:"Provide captions for all <video> content."}},Zr={"autocomplete-valid":{title:"autocomplete attribute valid",axeSummary:"Ensure the autocomplete attribute is correct and suitable for the form field",friendlySummary:"Use valid autocomplete values that match the form field's purpose."},"avoid-inline-spacing":{title:"Forced inline spacing",axeSummary:"Ensure that text spacing set via inline styles can be adjusted with custom CSS",friendlySummary:"Don't lock in text spacing with forced (!important) inline styles\u2014allow user CSS to adjust text spacing."}},Jr={"target-size":{title:"Touch target size",axeSummary:"Ensure touch targets have sufficient size and space",friendlySummary:"Make sure interactive elements are big enough and not too close together for touch."}},en={accesskeys:{title:"Unique accesskey",axeSummary:"Ensure every accesskey attribute value is unique",friendlySummary:"Use unique values for all accesskey attributes."},"aria-allowed-role":{title:"Appropriate role value",axeSummary:"Ensure the role attribute has an appropriate value for the element",friendlySummary:"ARIA roles should have a valid value for the element."},"aria-dialog-name":{title:"ARIA dialog name",axeSummary:"Ensure every ARIA dialog and alertdialog has an accessible name",friendlySummary:"Give each ARIA dialog or alertdialog a title or accessible name."},"aria-text":{title:'ARIA role="text"',axeSummary:'Ensure role="text" is used on elements with no focusable descendants',friendlySummary:`Only use role="text" on elements that don't contain focusable elements.`},"aria-treeitem-name":{title:"ARIA treeitem name",axeSummary:"Ensure every ARIA treeitem node has an accessible name",friendlySummary:"Give each ARIA treeitem a label or accessible name."},"empty-heading":{title:"Empty heading",axeSummary:"Ensure headings have discernible text",friendlySummary:"Don't leave heading elements empty or hide them."},"empty-table-header":{title:"Empty table header",axeSummary:"Ensure table headers have discernible text",friendlySummary:"Make sure table header cells have visible text."},"frame-tested":{title:"Test all frames",axeSummary:"Ensure <iframe> and <frame> elements contain the axe-core script",friendlySummary:"Make sure axe-core is injected into all frames or iframes so they are tested."},"heading-order":{title:"Heading order",axeSummary:"Ensure the order of headings is semantically correct (no skipping levels)",friendlySummary:"Use proper heading order (don't skip heading levels)."},"image-redundant-alt":{title:"Redundant image alt text",axeSummary:"Ensure image alternative text is not repeated as nearby text",friendlySummary:"Avoid repeating the same information in both an image's alt text and nearby text."},"label-title-only":{title:"Visible form element label",axeSummary:"Ensure each form element has a visible label (not only title/ARIA)",friendlySummary:"Every form input needs a visible label (not only a title attribute or hidden text)."},"landmark-banner-is-top-level":{title:"Top-level landmark banner",axeSummary:"Ensure the banner landmark is at top level (not nested)",friendlySummary:"Use the banner landmark (e.g. site header) only at the top level of the page, not inside another landmark."},"landmark-complementary-is-top-level":{title:"Top-level <aside>",axeSummary:"Ensure the complementary landmark (<aside>) is top level",friendlySummary:'The complementary landmark <aside> or role="complementary" should be a top-level region, not nested in another landmark.'},"landmark-contentinfo-is-top-level":{title:"Top-level contentinfo",axeSummary:"Ensure the contentinfo landmark (footer) is top level",friendlySummary:"Make sure the contentinfo landmark (footer) is at the top level of the page and not contained in another landmark."},"landmark-main-is-top-level":{title:"Top-level main",axeSummary:"Ensure the main landmark is at top level",friendlySummary:"The main landmark should be a top-level element and not nested inside another landmark."},"landmark-no-duplicate-banner":{title:"Duplicate banner landmark",axeSummary:"Ensure the document has at most one banner landmark",friendlySummary:'Have only one role="banner" or <header> on a page.'},"landmark-no-duplicate-contentinfo":{title:"Duplicate contentinfo",axeSummary:"Ensure the document has at most one contentinfo landmark",friendlySummary:'Have only one role="contentinfo" or <footer> on a page.'},"landmark-no-duplicate-main":{title:"Duplicate main",axeSummary:"Ensure the document has at most one main landmark",friendlySummary:'Have only one role="main" or <main> on a page.'},"landmark-one-main":{title:"main landmark",axeSummary:"Ensure the document has a main landmark",friendlySummary:'Include a main landmark on each page using a <main> region or role="main".'},"landmark-unique":{title:"Unique landmark",axeSummary:"Ensure landmarks have a unique role or role/label combination",friendlySummary:"If you use multiple landmarks of the same type, give them unique labels (names)."},"meta-viewport-large":{title:"Significant viewport scaling",axeSummary:'Ensure <meta name="viewport"> can scale a significant amount (e.g. 500%)',friendlySummary:'<meta name="viewport"> should allow users to significantly scale content.'},"page-has-heading-one":{title:"Has <h1>",axeSummary:"Ensure the page (or at least one frame) contains a level-one heading",friendlySummary:"Every page or frame should have at least one <h1> heading."},"presentation-role-conflict":{title:"Presentational content",axeSummary:'Ensure elements with role="presentation"/"none" have no ARIA or tabindex',friendlySummary:`Don't give elements with role="none"/"presentation" any ARIA attributes or a tabindex.`},region:{title:"Landmark regions",axeSummary:"Ensure all page content is contained by landmarks",friendlySummary:"Wrap all page content in appropriate landmark regions (<header>, <main>, <footer>, etc.)."},"scope-attr-valid":{title:"scope attribute",axeSummary:"Ensure the scope attribute is used correctly on tables",friendlySummary:"Use the scope attribute only on <th> elements, with proper values (col, row, etc.)."},"skip-link":{title:"Skip link",axeSummary:'Ensure all "skip" links have a focusable target',friendlySummary:'Make sure any "skip to content" link targets an existing, focusable element.'},tabindex:{title:"tabindex values",axeSummary:"Ensure tabindex attribute values are not greater than 0",friendlySummary:"Don't use tabindex values greater than 0."},"table-duplicate-name":{title:"Duplicate names for table",axeSummary:"Ensure the <caption> does not duplicate the summary attribute text",friendlySummary:"Don't use the same text in both a table's <caption> and its summary attribute."}},tn={"color-contrast-enhanced":{title:"Enhanced color contrast",axeSummary:"Ensure contrast between text and background meets WCAG 2 AAA enhanced contrast thresholds",friendlySummary:"Use extra-high contrast for text and background to meet WCAG AAA level."},"identical-links-same-purpose":{title:"Same link name, same purpose",axeSummary:"Ensure links with the same accessible name serve a similar purpose",friendlySummary:"If two links have the same text, they should do the same thing (lead to the same content)."},"meta-refresh-no-exceptions":{title:'No <meta http-equiv="refresh">',axeSummary:'Ensure <meta http-equiv="refresh"> is not used for delayed refresh (no exceptions)',friendlySummary:`Don't auto-refresh or redirect pages using <meta http-equiv="refresh"> even with a delay.`}},an={"css-orientation-lock":{title:"CSS orientation lock",axeSummary:"Ensure content is not locked to a specific display orientation (works in all orientations)",friendlySummary:"Don't lock content to one screen orientation; support both portrait and landscape modes."},"focus-order-semantics":{title:"Focus order semantic role",axeSummary:"Ensure elements in the tab order have a role appropriate for interactive content",friendlySummary:"Ensure elements in the tab order have a role appropriate for interactive content"},"hidden-content":{title:"Hidden content",axeSummary:"Informs users about hidden content",friendlySummary:"Display hidden content on the page for test analysis."},"label-content-name-mismatch":{title:"Content name mismatch",axeSummary:"Ensure elements labeled by their content include that text in their accessible name",friendlySummary:"If an element's visible text serves as its label, include that text in its accessible name."},"p-as-heading":{title:"No <p> headings",axeSummary:"Ensure <p> elements aren't styled to look like headings (use real headings)",friendlySummary:"Don't just style a <p> to look like a heading \u2013 use an actual heading tag for headings."},"table-fake-caption":{title:"Table caption",axeSummary:"Ensure that tables with a caption use the <caption> element",friendlySummary:"Use a <caption> element for table captions instead of just styled text."},"td-has-header":{title:"<td> has header",axeSummary:"Ensure each non-empty data cell in large tables (3\xD73+) has one or more headers",friendlySummary:"Every data cell in large tables should be associated with at least one header cell."}},rn={"aria-roledescription":{title:"aria-roledescription",axeSummary:"Ensure aria-roledescription is only used on elements with an implicit or explicit role",friendlySummary:"Only use aria-roledescription on elements that already have a defined role."}},Bt={...Qr,...Zr,...Jr,...tn,...en,...an,...rn},Ye=e=>Bt[e.id]?.title||e.id,je=e=>Bt[e.id]?.friendlySummary||e.description,nn=["html","body","main"],He=Rt(Ct.light),Ge={[H.VIOLATION]:He.color.negative,[H.PASS]:He.color.positive,[H.INCOMPLETION]:He.color.warning},qt=ae({parameters:{},results:void 0,highlighted:!1,toggleHighlight:()=>{},tab:H.VIOLATION,handleCopyLink:()=>{},setTab:()=>{},setStatus:()=>{},status:"initial",error:void 0,handleManual:()=>{},discrepancy:null,selectedItems:new Map,allExpanded:!1,toggleOpen:()=>{},handleCollapseAll:()=>{},handleExpandAll:()=>{},handleJumpToElement:()=>{},handleSelectionChange:()=>{}}),on=e=>{let t=ht("a11y",{}),[a]=Ae()??[],r=se(),l=E((m=!1)=>m?"manual":"initial",[]),i=L(()=>a?.a11y?.manual??!1,[a?.a11y?.manual]),o=L(()=>{let m=r.getQueryParam("a11ySelection");return m&&r.setQueryParams({a11ySelection:""}),m},[r]),[u,c]=ve(w,{ui:{highlighted:!1,tab:H.VIOLATION},results:void 0,error:void 0,status:l(i)}),{ui:s,results:d,error:f,status:S}=u,{storyId:g}=St(),h=yt(m=>m[g]?.[it]?.value);O(()=>ft("storybook/component-test").onAllStatusChange((m,b)=>{let p=m[g]?.[Ne],_=b[g]?.[Ne];p?.value==="status-value:error"&&_?.value!=="status-value:error"&&c(k=>({...k,status:"component-test-error"}))}),[c,g]);let R=E(()=>{c(m=>({...m,ui:{...m.ui,highlighted:!m.ui.highlighted}}))},[c]),$=M(null);O(()=>()=>{$.current!==null&&clearTimeout($.current)},[]);let[T,C]=V(()=>{let m=new Map;if(o&&/^[a-z]+.[a-z-]+.[0-9]+$/.test(o)){let[b,p]=o.split(".");m.set(`${b}.${p}`,o)}return m}),ue=L(()=>d?.[s.tab]?.every(m=>T.has(`${s.tab}.${m.id}`))??!1,[d,T,s.tab]),Q=E((m,b,p)=>{m.stopPropagation();let _=`${b}.${p.id}`;C(k=>new Map(k.delete(_)?k:k.set(_,`${_}.1`)))},[]),ke=E(()=>{C(new Map)},[]),pe=E(()=>{C(m=>new Map(d?.[s.tab]?.map(b=>{let p=`${s.tab}.${b.id}`;return[p,m.get(p)??`${p}.1`]})??[]))},[d,s.tab]),D=E(m=>{let[b,p]=m.split(".");C(_=>new Map(_.set(`${b}.${p}`,m)))},[]),re=E(m=>{c(b=>({...b,status:"error",error:m}))},[c]),ee=E((m,b)=>{g===b&&(c(p=>({...p,status:"ran",results:m})),$.current!==null&&clearTimeout($.current),$.current=setTimeout(()=>{$.current=null,c(p=>p.status==="ran"?{...p,status:"ready"}:p),C(p=>{if(p.size===1){let[_]=p.values();document.getElementById(_)?.scrollIntoView({behavior:"smooth",block:"center"})}return p})},900))},[g,c,C]),ne=E((m,b)=>{let[p,_]=m.split("."),{helpUrl:k,nodes:be}=d?.[p]?.find(oe=>oe.id===_)||{},he=k&&window.open(k,"_blank","noopener,noreferrer");if(be&&!he){let oe=be.findIndex(Se=>b.selectors.some(fa=>fa===String(Se.target)))??-1;if(oe!==-1){let Se=`${p}.${_}.${oe+1}`;C(new Map([[`${p}.${_}`,Se]])),setTimeout(()=>{document.getElementById(Se)?.scrollIntoView({behavior:"smooth",block:"center"})},100)}}},[d]),fe=E(({reporters:m})=>{let b=m.find(p=>p.type==="a11y");b&&("error"in b.result?re(b.result.error):ee(b.result,g))},[re,ee,g]),ye=E(({newPhase:m})=>{m==="loading"?c(b=>({...b,results:void 0,status:i?"manual":"initial"})):m==="afterEach"&&!i&&c(b=>({...b,status:"running"}))},[i,c]),Y=bt({[Z.RESULT]:ee,[Z.ERROR]:re,[Z.SELECT]:ne,[kt]:()=>C(new Map),[Pt]:ye,[Nt]:fe,[wt]:()=>{c(m=>({...m,status:"running"})),Y(Z.MANUAL,g,t)}},[ye,fe,ne,re,ee,t,g]),W=E(()=>{c(m=>({...m,status:"running"})),Y(Z.MANUAL,g,t)},[Y,t,c,g]),ma=E(async m=>{let{createCopyToClipboardFunction:b}=await Promise.resolve().then(()=>(K(),pt));await b()(`${window.location.origin}${m}`)},[]),da=E(m=>Y(Ue,m),[Y]);O(()=>{c(m=>({...m,status:l(i)}))},[l,i,c]);let nt=S==="initial";O(()=>{o&&c(m=>{let b={...m.ui,highlighted:!0},[p]=o.split(".")??[];return p&&Object.values(H).includes(p)&&(b.tab=p),{...m,ui:b}})},[o]),O(()=>{if(Y(Te,`${w}/selected`),Y(Te,`${w}/others`),!s.highlighted||nt)return;let m=Array.from(T.values()).flatMap(p=>{let[_,k,be]=p.split(".");if(_!==s.tab)return[];let he=d?.[_]?.find(oe=>oe.id===k)?.nodes[Number(be)-1]?.target;return he?[String(he)]:[]});m.length&&Y(_e,{id:`${w}/selected`,priority:1,selectors:m,styles:{outline:`1px solid color-mix(in srgb, ${Ge[s.tab]}, transparent 30%)`,backgroundColor:"transparent"},hoverStyles:{outlineWidth:"2px"},focusStyles:{backgroundColor:"transparent"},menu:d?.[s.tab].map(p=>{let _=p.nodes.flatMap(k=>k.target).map(String).filter(k=>m.includes(k));return[{id:`${s.tab}.${p.id}:info`,title:Ye(p),description:je(p),selectors:_},{id:`${s.tab}.${p.id}`,iconLeft:"info",iconRight:"shareAlt",title:"Learn how to resolve this violation",clickEvent:Z.SELECT,selectors:_}]})});let b=d?.[s.tab].flatMap(p=>p.nodes.flatMap(_=>_.target).map(String)).filter(p=>![...nn,...m].includes(p));b?.length&&Y(_e,{id:`${w}/others`,selectors:b,styles:{outline:`1px solid color-mix(in srgb, ${Ge[s.tab]}, transparent 30%)`,backgroundColor:`color-mix(in srgb, ${Ge[s.tab]}, transparent 60%)`},hoverStyles:{outlineWidth:"2px"},focusStyles:{backgroundColor:"transparent"},menu:d?.[s.tab].map(p=>{let _=p.nodes.flatMap(k=>k.target).map(String).filter(k=>!m.includes(k));return[{id:`${s.tab}.${p.id}:info`,title:Ye(p),description:je(p),selectors:_},{id:`${s.tab}.${p.id}`,iconLeft:"info",iconRight:"shareAlt",title:"Learn how to resolve this violation",clickEvent:Z.SELECT,selectors:_}]})})},[nt,Y,s.highlighted,d,s.tab,T]);let pa=L(()=>{if(!h)return null;if(h==="status-value:success"&&d?.violations.length)return"cliPassedBrowserFailed";if(h==="status-value:error"&&!d?.violations.length){if(S==="ready"||S==="ran")return"browserPassedCliFailed";if(S==="manual")return"cliFailedButModeManual"}return null},[d?.violations.length,S,h]);return n.createElement(qt.Provider,{value:{parameters:t,results:d,highlighted:s.highlighted,toggleHighlight:R,tab:s.tab,setTab:E(m=>c(b=>({...b,ui:{...b.ui,tab:m}})),[c]),handleCopyLink:ma,status:S,setStatus:E(m=>c(b=>({...b,status:m})),[c]),error:f,handleManual:W,discrepancy:pa,selectedItems:T,toggleOpen:Q,allExpanded:ue,handleCollapseAll:ke,handleExpandAll:pe,handleJumpToElement:da,handleSelectionChange:D},...e})},Ze=()=>ie(qt);function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},P.apply(null,arguments)}function X(e,t,{checkForDefaultPrevented:a=!0}={}){return function(r){if(e?.(r),a===!1||!r.defaultPrevented)return t?.(r)}}function Je(e,t=[]){let a=[];function r(i,o){let u=ae(o),c=a.length;a=[...a,o];function s(f){let{scope:S,children:g,...h}=f,R=S?.[e][c]||u,$=L(()=>h,Object.values(h));return y(R.Provider,{value:$},g)}function d(f,S){let g=S?.[e][c]||u,h=ie(g);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return s.displayName=i+"Provider",[s,d]}let l=()=>{let i=a.map(o=>ae(o));return function(o){let u=o?.[e]||i;return L(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return l.scopeName=e,[r,ln(l,...t)]}function ln(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let r=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(l){let i=r.reduce((o,{useScope:u,scopeName:c})=>{let s=u(l)[`__scope${c}`];return{...o,...s}},{});return L(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return a.scopeName=t.scopeName,a}function sn(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function et(...e){return t=>e.forEach(a=>sn(a,t))}function Ce(...e){return E(et(...e),e)}var We=N((e,t)=>{let{children:a,...r}=e,l=U.toArray(a),i=l.find(un);if(i){let o=i.props.children,u=l.map(c=>c===i?U.count(o)>1?U.only(null):j(o)?o.props.children:null:c);return y(ze,P({},r,{ref:t}),j(o)?J(o,void 0,u):null)}return y(ze,P({},r,{ref:t}),a)});We.displayName="Slot";var ze=N((e,t)=>{let{children:a,...r}=e;return j(a)?J(a,{...mn(r,a.props),ref:t?et(t,a.ref):a.ref}):U.count(a)>1?U.only(null):null});ze.displayName="SlotClone";var cn=({children:e})=>y(le,null,e);function un(e){return j(e)&&e.type===cn}function mn(e,t){let a={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?a[r]=(...o)=>{i(...o),l(...o)}:l&&(a[r]=l):r==="style"?a[r]={...l,...i}:r==="className"&&(a[r]=[l,i].filter(Boolean).join(" "))}return{...e,...a}}function dn(e){let t=e+"CollectionProvider",[a,r]=Je(t),[l,i]=a(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{let{scope:h,children:R}=g,$=n.useRef(null),T=n.useRef(new Map).current;return n.createElement(l,{scope:h,itemMap:T,collectionRef:$},R)};Object.assign(o,{displayName:t});let u=e+"CollectionSlot",c=n.forwardRef((g,h)=>{let{scope:R,children:$}=g,T=i(u,R),C=Ce(h,T.collectionRef);return n.createElement(We,{ref:C},$)});Object.assign(c,{displayName:u});let s=e+"CollectionItemSlot",d="data-radix-collection-item",f=n.forwardRef((g,h)=>{let{scope:R,children:$,...T}=g,C=n.useRef(null),ue=Ce(h,C),Q=i(s,R);return n.useEffect(()=>(Q.itemMap.set(C,{ref:C,...T}),()=>{Q.itemMap.delete(C)})),n.createElement(We,{[d]:"",ref:ue},$)});Object.assign(f,{displayName:s});function S(g){let h=i(e+"CollectionConsumer",g);return n.useCallback(()=>{let R=h.collectionRef.current;if(!R)return[];let $=Array.from(R.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((T,C)=>$.indexOf(T.ref.current)-$.indexOf(C.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},S,r]}var Ke=globalThis?.document?ut:()=>{},pn=ct||(()=>{}),fn=0;function Vt(e){let[t,a]=V(pn());return Ke(()=>{e||a(r=>r??String(fn++))},[e]),e||(t?`radix-${t}`:"")}var Yt=N((e,t)=>{let{children:a,...r}=e,l=U.toArray(a),i=l.find(bn);if(i){let o=i.props.children,u=l.map(c=>c===i?U.count(o)>1?U.only(null):j(o)?o.props.children:null:c);return y(Xe,P({},r,{ref:t}),j(o)?J(o,void 0,u):null)}return y(Xe,P({},r,{ref:t}),a)});Yt.displayName="Slot";var Xe=N((e,t)=>{let{children:a,...r}=e;return j(a)?J(a,{...hn(r,a.props),ref:t?et(t,a.ref):a.ref}):U.count(a)>1?U.only(null):null});Xe.displayName="SlotClone";var yn=({children:e})=>y(le,null,e);function bn(e){return j(e)&&e.type===yn}function hn(e,t){let a={...t};for(let r in t){let l=e[r],i=t[r];/^on[A-Z]/.test(r)?l&&i?a[r]=(...o)=>{i(...o),l(...o)}:l&&(a[r]=l):r==="style"?a[r]={...l,...i}:r==="className"&&(a[r]=[l,i].filter(Boolean).join(" "))}return{...e,...a}}var Sn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ce=Sn.reduce((e,t)=>{let a=N((r,l)=>{let{asChild:i,...o}=r,u=i?Yt:t;return O(()=>{window[Symbol.for("radix-ui")]=!0},[]),y(u,P({},o,{ref:l}))});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function tt(e){let t=M(e);return O(()=>{t.current=e}),L(()=>(...a)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...a)},[])}function jt({prop:e,defaultProp:t,onChange:a=()=>{}}){let[r,l]=gn({defaultProp:t,onChange:a}),i=e!==void 0,o=i?e:r,u=tt(a),c=E(s=>{if(i){let d=typeof s=="function"?s(e):s;d!==e&&u(d)}else l(s)},[i,e,l,u]);return[o,c]}function gn({defaultProp:e,onChange:t}){let a=V(e),[r]=a,l=M(r),i=tt(t);return O(()=>{l.current!==r&&(i(r),l.current=r)},[r,l,i]),a}var En=ae(void 0);function Wt(e){let t=ie(En);return e||t||"ltr"}var Be="rovingFocusGroup.onEntryFocus",In={bubbles:!1,cancelable:!0},Oe="RovingFocusGroup",[Qe,zt,vn]=dn(Oe),[An,Kt]=Je(Oe,[vn]),[xn,$n]=An(Oe),Xt=N((e,t)=>y(Qe.Provider,{scope:e.__scopeRovingFocusGroup},y(Qe.Slot,{scope:e.__scopeRovingFocusGroup},y(_n,P({},e,{ref:t})))));Object.assign(Xt,{displayName:Oe});var _n=N((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:r,loop:l=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:s,...d}=e,f=M(null),S=Ce(t,f),g=Wt(i),[h=null,R]=jt({prop:o,defaultProp:u,onChange:c}),[$,T]=V(!1),C=tt(s),ue=zt(a),Q=M(!1),[ke,pe]=V(0);return O(()=>{let D=f.current;if(D)return D.addEventListener(Be,C),()=>D.removeEventListener(Be,C)},[C]),y(xn,{scope:a,orientation:r,dir:g,loop:l,currentTabStopId:h,onItemFocus:E(D=>R(D),[R]),onItemShiftTab:E(()=>T(!0),[]),onFocusableItemAdd:E(()=>pe(D=>D+1),[]),onFocusableItemRemove:E(()=>pe(D=>D-1),[])},y(ce.div,P({tabIndex:$||ke===0?-1:0,"data-orientation":r},d,{ref:S,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{Q.current=!0}),onFocus:X(e.onFocus,D=>{let re=!Q.current;if(D.target===D.currentTarget&&re&&!$){let ee=new CustomEvent(Be,In);if(D.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){let ne=ue().filter(W=>W.focusable),fe=ne.find(W=>W.active),ye=ne.find(W=>W.id===h),Y=[fe,ye,...ne].filter(Boolean).map(W=>W.ref.current);Jt(Y)}}Q.current=!1}),onBlur:X(e.onBlur,()=>T(!1))})))}),Qt="RovingFocusGroupItem",Zt=N((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:r=!0,active:l=!1,tabStopId:i,...o}=e,u=Vt(),c=i||u,s=$n(Qt,a),d=s.currentTabStopId===c,f=zt(a),{onFocusableItemAdd:S,onFocusableItemRemove:g}=s;return O(()=>{if(r)return S(),()=>g()},[r,S,g]),y(Qe.ItemSlot,{scope:a,id:c,focusable:r,active:l},y(ce.span,P({tabIndex:d?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:X(e.onMouseDown,h=>{r?s.onItemFocus(c):h.preventDefault()}),onFocus:X(e.onFocus,()=>s.onItemFocus(c)),onKeyDown:X(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){s.onItemShiftTab();return}if(h.target!==h.currentTarget)return;let R=Cn(h,s.orientation,s.dir);if(R!==void 0){h.preventDefault();let $=f().filter(T=>T.focusable).map(T=>T.ref.current);if(R==="last")$.reverse();else if(R==="prev"||R==="next"){R==="prev"&&$.reverse();let T=$.indexOf(h.currentTarget);$=s.loop?On($,T+1):$.slice(T+1)}setTimeout(()=>Jt($))}})})))});Object.assign(Zt,{displayName:Qt});var Tn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rn(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Cn(e,t,a){let r=Rn(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Tn[r]}function Jt(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function On(e,t){return e.map((a,r)=>e[(t+r)%e.length])}var kn=Xt,Nn=Zt;function wn(e,t){return mt((a,r)=>t[a][r]??a,e)}var ea=e=>{let{present:t,children:a}=e,r=Pn(t),l=typeof a=="function"?a({present:r.isPresent}):U.only(a),i=Ce(r.ref,l.ref);return typeof a=="function"||r.isPresent?J(l,{ref:i}):null};ea.displayName="Presence";function Pn(e){let[t,a]=V(),r=M({}),l=M(e),i=M("none"),o=e?"mounted":"unmounted",[u,c]=wn(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O(()=>{let s=Re(r.current);i.current=u==="mounted"?s:"none"},[u]),Ke(()=>{let s=r.current,d=l.current;if(d!==e){let f=i.current,S=Re(s);e?c("MOUNT"):S==="none"||s?.display==="none"?c("UNMOUNT"):c(d&&f!==S?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,c]),Ke(()=>{if(t){let s=f=>{let S=Re(r.current).includes(f.animationName);f.target===t&&S&&Dt(()=>c("ANIMATION_END"))},d=f=>{f.target===t&&(i.current=Re(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:E(s=>{s&&(r.current=getComputedStyle(s)),a(s)},[])}}function Re(e){return e?.animationName||"none"}var at="Tabs",[Dn,Nf]=Je(at,[Kt]),ta=Kt(),[Ln,rt]=Dn(at),aa=N((e,t)=>{let{__scopeTabs:a,value:r,onValueChange:l,defaultValue:i,orientation:o="horizontal",dir:u,activationMode:c="automatic",...s}=e,d=Wt(u),[f,S]=jt({prop:r,onChange:l,defaultProp:i});return y(Ln,{scope:a,baseId:Vt(),value:f,onValueChange:S,orientation:o,dir:d,activationMode:c},y(ce.div,P({dir:d,"data-orientation":o},s,{ref:t})))});Object.assign(aa,{displayName:at});var ra="TabsList",na=N((e,t)=>{let{__scopeTabs:a,loop:r=!0,...l}=e,i=rt(ra,a),o=ta(a);return y(kn,P({asChild:!0},o,{orientation:i.orientation,dir:i.dir,loop:r}),y(ce.div,P({role:"tablist","aria-orientation":i.orientation},l,{ref:t})))});Object.assign(na,{displayName:ra});var oa="TabsTrigger",la=N((e,t)=>{let{__scopeTabs:a,value:r,disabled:l=!1,...i}=e,o=rt(oa,a),u=ta(a),c=ca(o.baseId,r),s=ua(o.baseId,r),d=r===o.value;return y(Nn,P({asChild:!0},u,{focusable:!l,active:d}),y(ce.button,P({type:"button",role:"tab","aria-selected":d,"aria-controls":s,"data-state":d?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:c},i,{ref:t,onMouseDown:X(e.onMouseDown,f=>{!l&&f.button===0&&f.ctrlKey===!1?o.onValueChange(r):f.preventDefault()}),onKeyDown:X(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(r)}),onFocus:X(e.onFocus,()=>{let f=o.activationMode!=="manual";!d&&!l&&f&&o.onValueChange(r)})})))});Object.assign(la,{displayName:oa});var ia="TabsContent",sa=N((e,t)=>{let{__scopeTabs:a,value:r,forceMount:l,children:i,...o}=e,u=rt(ia,a),c=ca(u.baseId,r),s=ua(u.baseId,r),d=r===u.value,f=M(d);return O(()=>{let S=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(S)},[]),y(ea,{present:l||d},({present:S})=>y(ce.div,P({"data-state":d?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!S,id:s,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0}}),S&&i))});Object.assign(sa,{displayName:ia});function ca(e,t){return`${e}-trigger-${t}`}function ua(e,t){return`${e}-content-${t}`}var Mn=aa,Fn=na,Un=la,Lt=sa,Mt=I(Le)(({theme:e})=>({fontSize:e.typography.size.s1}),({language:e})=>e==="css"&&{".selector ~ span:nth-last-of-type(-n+3)":{display:"none"}}),Hn=I.div({display:"flex",flexDirection:"column"}),Gn=I.div(({theme:e})=>({display:"block",color:e.textMutedColor,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,marginTop:-8,marginBottom:12,"@container (min-width: 800px)":{display:"none"}})),Bn=I.p({margin:0}),qn=I.div({display:"flex",flexDirection:"column",padding:"0 15px 20px 15px",gap:20}),Vn=I.div({gap:15,"@container (min-width: 800px)":{display:"grid",gridTemplateColumns:"50% 50%"}}),Ft=I.div(({theme:e,side:t})=>({display:t==="left"?"flex":"none",flexDirection:"column",gap:15,margin:t==="left"?"15px 0":0,padding:t==="left"?"0 15px":0,borderLeft:t==="left"?`1px solid ${e.color.border}`:"none","&:focus-visible":{outline:"none",borderRadius:4,boxShadow:`0 0 0 1px inset ${e.color.secondary}`},"@container (min-width: 800px)":{display:t==="left"?"none":"flex"}})),Yn=I(F)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontWeight:e.typography.weight.regular,color:e.textMutedColor,height:40,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block",width:"100%",textAlign:"left",padding:"0 12px",'&[data-state="active"]':{color:e.color.secondary,backgroundColor:e.background.hoverable}})),jn=I.div({display:"flex",flexDirection:"column",gap:10}),Wn=I.div({display:"flex",gap:10}),zn=({onClick:e})=>{let[t,a]=V(!1),r=E(()=>{e(),a(!0);let l=setTimeout(()=>a(!1),2e3);return()=>clearTimeout(l)},[e]);return n.createElement(F,{ariaLabel:!1,onClick:r},t?n.createElement(Et,null):n.createElement(At,null)," ",t?"Copied":"Copy link")},Kn=({id:e,item:t,type:a,selection:r,handleSelectionChange:l})=>n.createElement(qn,{id:e},n.createElement(Hn,null,n.createElement(Gn,null,t.id),n.createElement(Bn,null,je(t)," ",n.createElement(de,{href:t.helpUrl,target:"_blank",rel:"noopener noreferrer",withArrow:!0},"Learn how to resolve this violation"))),n.createElement(Mn,{defaultValue:r,orientation:"vertical",value:r,onValueChange:l,asChild:!0},n.createElement(Vn,null,n.createElement(Fn,{"aria-label":a},t.nodes.map((i,o)=>{let u=`${a}.${t.id}.${o+1}`;return n.createElement(le,{key:u},n.createElement(Un,{value:u,asChild:!0},n.createElement(Yn,{ariaLabel:!1,variant:"ghost",size:"medium",id:u},o+1,". ",i.html)),n.createElement(Lt,{value:u,asChild:!0},n.createElement(Ft,{side:"left"},Ut(i))))})),t.nodes.map((i,o)=>{let u=`${a}.${t.id}.${o+1}`;return n.createElement(Lt,{key:u,value:u,asChild:!0},n.createElement(Ft,{side:"right"},Ut(i)))}))));function Ut(e){let{handleCopyLink:t,handleJumpToElement:a}=Ze(),{any:r,all:l,none:i,html:o,target:u}=e,c=[...r,...l,...i];return n.createElement(n.Fragment,null,n.createElement(jn,null,c.map(s=>n.createElement("div",{key:s.id},`${s.message}${/(\.|: [^.]+\.*)$/.test(s.message)?"":"."}`))),n.createElement(Wn,null,n.createElement(F,{ariaLabel:!1,onClick:()=>a(e.target.toString())},n.createElement(Tt,null)," Jump to element"),n.createElement(zn,{onClick:()=>t(e.linkPath)})),n.createElement(Mt,{language:"jsx",wrapLongLines:!0},`/* element */
${o}`),n.createElement(Mt,{language:"css",wrapLongLines:!0},`/* selector */
${u} {}`))}var Xn={minor:"neutral",moderate:"warning",serious:"negative",critical:"critical"},Qn={minor:"Minor",moderate:"Moderate",serious:"Serious",critical:"Critical"},Zn=I.div(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",borderBottom:`1px solid ${e.appBorderColor}`,containerType:"inline-size",fontSize:e.typography.size.s2})),Jn=I(It)({transition:"transform 0.1s ease-in-out"}),eo=I.div(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"6px 10px 6px 15px",minHeight:40,background:"none",color:"inherit",textAlign:"left",cursor:"pointer",width:"100%","&:hover":{color:e.color.secondary}})),to=I.div(({theme:e})=>({display:"flex",alignItems:"baseline",flexGrow:1,fontSize:e.typography.size.s2,gap:8})),ao=I.div(({theme:e})=>({display:"none",color:e.textMutedColor,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,"@container (min-width: 800px)":{display:"block"}})),ro=I.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.textMutedColor,width:28,height:28})),qe=({items:e,empty:t,type:a,handleSelectionChange:r,selectedItems:l,toggleOpen:i})=>n.createElement(n.Fragment,null,e&&e.length?e.map(o=>{let u=`${a}.${o.id}`,c=`details:${u}`,s=l.get(u),d=Ye(o);return n.createElement(Zn,{key:u},n.createElement(eo,{onClick:f=>i(f,a,o),"data-active":!!s},n.createElement(to,null,n.createElement("strong",null,d),n.createElement(ao,null,o.id)),o.impact&&n.createElement(z,{status:a===H.PASS?"neutral":Xn[o.impact]},Qn[o.impact]),n.createElement(ro,null,o.nodes.length),n.createElement(F,{onClick:f=>i(f,a,o),ariaLabel:`${s?"Collapse":"Expand"} details for: ${d}`,"aria-expanded":!!s,"aria-controls":c,variant:"ghost",padding:"small"},n.createElement(Jn,{style:{transform:`rotate(${s?-180:0}deg)`}}))),s?n.createElement(Kn,{id:c,item:o,type:a,selection:s,handleSelectionChange:r}):n.createElement("div",{id:c}))}):n.createElement(Pe,{title:t})),no=I.div({width:"100%",position:"relative",height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"}),oo=I.div({display:"flex",justifyContent:"flex-end",gap:6}),lo=({tabs:e})=>{let{tab:t,setTab:a,toggleHighlight:r,highlighted:l,handleManual:i,allExpanded:o,handleCollapseAll:u,handleExpandAll:c}=Ze(),s=Ot();return y(no,null,y(Me,{backgroundColor:s.background.app,panelProps:{hasScrollbar:!0},tabs:e.map(d=>({id:d.type,title:d.label,children:d.panel})),selected:t,onSelectionChange:d=>a(d),tools:y(oo,null,y(F,{variant:"ghost",padding:"small",onClick:r,ariaLabel:l?"Hide accessibility test result highlights":"Highlight elements with accessibility test results"},l?y($t,null):y(_t,null)),y(F,{variant:"ghost",padding:"small",onClick:o?u:c,ariaLabel:o?"Collapse all results":"Expand all results","aria-expanded":o},o?y(vt,null):y(xt,null)),y(F,{variant:"ghost",padding:"small",onClick:i,ariaLabel:"Rerun accessibility scan"},y(xe,null)))}))},io=I.div(({theme:{color:e,typography:t,background:a}})=>({textAlign:"start",padding:"11px 15px",fontSize:`${t.size.s2}px`,fontWeight:t.weight.regular,lineHeight:"1rem",background:a.app,borderBottom:`1px solid ${e.border}`,color:e.defaultText,backgroundClip:"padding-box",position:"relative",code:{fontSize:`${t.size.s1-1}px`,color:"inherit",margin:"0 0.2em",padding:"0 0.2em",background:"rgba(255, 255, 255, 0.8)",borderRadius:"2px",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.1)"}})),so=({discrepancy:e})=>{let t=se().getDocsUrl({subpath:lt,versioned:!0,renderer:!0}),a=L(()=>{switch(e){case"browserPassedCliFailed":return"Accessibility checks passed in this browser but failed in the CLI.";case"cliPassedBrowserFailed":return"Accessibility checks passed in the CLI but failed in this browser.";case"cliFailedButModeManual":return"Accessibility checks failed in the CLI. Run the tests manually to see the results.";default:return null}},[e]);return a?n.createElement(io,null,a," ",n.createElement(de,{href:t,target:"_blank",withArrow:!0},"Learn what could cause this")):null},Ht=I(xe)(({theme:e})=>({animation:`${e.animation.rotate360} 1s linear infinite;`,margin:4})),Ve=I.div({display:"flex",alignItems:"center",gap:6}),Gt=I.span(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",fontSize:e.typography.size.s2,height:"100%",gap:24,div:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},p:{margin:0,color:e.textMutedColor},code:{display:"inline-block",fontSize:e.typography.size.s2-1,backgroundColor:e.background.app,border:`1px solid ${e.color.border}`,borderRadius:4,padding:"2px 3px"}})),co=()=>{let{parameters:e,tab:t,results:a,status:r,handleManual:l,error:i,discrepancy:o,handleSelectionChange:u,selectedItems:c,toggleOpen:s}=Ze(),d=L(()=>{let{passes:f,incomplete:S,violations:g}=a??{passes:[],incomplete:[],violations:[]};return[{label:n.createElement(Ve,null,"Violations",n.createElement(z,{compact:!0,status:t==="violations"?"active":"neutral"},g.length)),panel:n.createElement(qe,{items:g,type:H.VIOLATION,empty:"No accessibility violations found.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:g,type:H.VIOLATION},{label:n.createElement(Ve,null,"Passes",n.createElement(z,{compact:!0,status:t==="passes"?"active":"neutral"},f.length)),panel:n.createElement(qe,{items:f,type:H.PASS,empty:"No passing accessibility checks found.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:f,type:H.PASS},{label:n.createElement(Ve,null,"Inconclusive",n.createElement(z,{compact:!0,status:t==="incomplete"?"active":"neutral"},S.length)),panel:n.createElement(qe,{items:S,type:H.INCOMPLETION,empty:"No inconclusive accessibility checks found.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:S,type:H.INCOMPLETION}]},[t,a,u,c,s]);return e.disable||e.test==="off"?n.createElement(Gt,null,n.createElement("div",null,n.createElement("strong",null,"Accessibility tests are disabled for this story"),n.createElement("p",null,"Update"," ",n.createElement("code",null,e.disable?"parameters.a11y.disable":"parameters.a11y.test")," ","to enable accessibility tests."))):n.createElement(n.Fragment,null,o&&n.createElement(so,{discrepancy:o}),r==="ready"||r==="ran"?n.createElement(lo,{key:"tabs",tabs:d}):n.createElement(Gt,{style:{marginTop:o?"1em":0}},r==="initial"&&n.createElement("div",null,n.createElement(Ht,{size:12}),n.createElement("strong",null,"Preparing accessibility scan"),n.createElement("p",null,"Please wait while the addon is initializing...")),r==="manual"&&n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement("strong",null,"Accessibility tests run manually for this story"),n.createElement("p",null,"Results will not show when using the testing module. You can still run accessibility tests manually.")),n.createElement(F,{ariaLabel:!1,size:"medium",onClick:l},"Run accessibility scan"),n.createElement("p",null,"Update ",n.createElement("code",null,"globals.a11y.manual")," to disable manual mode.")),r==="running"&&n.createElement("div",null,n.createElement(Ht,{size:12}),n.createElement("strong",null,"Accessibility scan in progress"),n.createElement("p",null,"Please wait while the accessibility scan is running...")),r==="error"&&n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement("strong",null,"The accessibility scan encountered an error"),n.createElement("p",null,typeof i=="string"?i:i instanceof Error?i.toString():JSON.stringify(i,null,2))),n.createElement(F,{ariaLabel:!1,size:"medium",onClick:l},"Rerun accessibility scan")),r==="component-test-error"&&n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement("strong",null,"This story's component tests failed"),n.createElement("p",null,"Automated accessibility tests will not run until this is resolved. You can still test manually.")),n.createElement(F,{ariaLabel:!1,size:"medium",onClick:l},"Run accessibility scan"))))},uo=I.div({"&, & svg":{position:"absolute",width:0,height:0}}),mo=I.span({background:"linear-gradient(to right, #F44336, #FF9800, #FFEB3B, #8BC34A, #2196F3, #9C27B0)",borderRadius:14,display:"block",flexShrink:0,height:14,width:14},({$filter:e})=>({filter:we[e].filter||"none"}),({theme:e})=>({boxShadow:`${e.appBorderColor} 0 0 0 1px inset`})),po=()=>{let[e,t,a]=Ae(),r=e[me],l=a[me]!==void 0,i=Object.entries(we).map(([o,{label:u,percentage:c}])=>({title:u,description:c?`${c}% of users`:void 0,icon:n.createElement(mo,{$filter:o}),value:o}));return n.createElement(n.Fragment,null,n.createElement(De,{resetLabel:"Reset color filter",onReset:()=>t({[me]:void 0}),icon:n.createElement(gt,null),disabled:l,ariaLabel:l?"Vision filter set by story globals":"Vision filter",ariaDescription:"Select a vision filter among predefined options, or reset to remove the filter.",tooltip:l?"Vision filter set by story globals":"Change vision filter",defaultOptions:r,options:i,onSelect:o=>t({[me]:o})}),n.createElement(uo,{dangerouslySetInnerHTML:{__html:st}}))},fo=()=>{let e=se().getSelectedPanel(),[{results:t}]=ve(w,{ui:{highlighted:!1,tab:H.VIOLATION},results:void 0,error:void 0,status:"initial"}),a=t?.violations?.length??0,r=t?.incomplete?.length??0,l=a+r,i=l===0?null:n.createElement(z,{compact:!0,status:e===Ee?"active":"neutral"},l);return n.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},n.createElement("span",null,"Accessibility"),i)};Ie.register(w,e=>{Ie.add(Ee,{title:"",type:Fe.TOOL,match:({viewMode:t,tabId:a})=>t==="story"&&!a,render:()=>n.createElement(po,null)}),Ie.add(Ee,{title:fo,type:Fe.PANEL,render:({active:t=!0})=>n.createElement(on,null,t?n.createElement(co,null):null),paramKey:ot})});})();
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
