PageSourceSearch

https://jeffmcammond.com/react-select-datepicker/sb-addons/a11y-2/manager-bundle.js

js jeffmcammond.com collected 2026-09-25 22:32:40 UTC 64,837 bytes, 5 lines download raw bytes

1try{
2(()=>{var pa=Object.defineProperty;var ee=(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 he=(e,t)=>()=>(e&&(t=e(e=0)),t);var fa=(e,t)=>{for(var a in t)pa(e,a,{get:t[a],enumerable:!0})};var v=he(()=>{});var A=he(()=>{});var x=he(()=>{});var ct={};fa(ct,{A:()=>Aa,AbstractToolbar:()=>xa,ActionBar:()=>$a,ActionList:()=>Ra,AddonPanel:()=>_a,Badge:()=>z,Bar:()=>Ta,Blockquote:()=>Ca,Button:()=>M,Card:()=>Oa,ClipboardCode:()=>ka,Code:()=>wa,Collapsible:()=>Na,DL:()=>Pa,Div:()=>Da,DocumentWrapper:()=>La,EmptyTabContent:()=>we,ErrorFormatter:()=>Ma,FlexBar:()=>Fa,Form:()=>Ua,H1:()=>Ha,H2:()=>Ga,H3:()=>Ba,H4:()=>qa,H5:()=>Va,H6:()=>Ya,HR:()=>ja,IconButton:()=>Wa,Img:()=>za,LI:()=>Ka,Link:()=>me,ListItem:()=>Xa,Loader:()=>Qa,Modal:()=>Za,ModalDecorator:()=>Ja,OL:()=>en,P:()=>tn,Placeholder:()=>an,Popover:()=>nn,PopoverProvider:()=>rn,Pre:()=>on,ProgressSpinner:()=>ln,ResetWrapper:()=>sn,ScrollArea:()=>cn,Select:()=>Ne,Separator:()=>un,Spaced:()=>mn,Span:()=>dn,StatelessTab:()=>pn,StatelessTabList:()=>fn,StatelessTabPanel:()=>yn,StatelessTabsView:()=>bn,StorybookIcon:()=>hn,StorybookLogo:()=>Sn,SyntaxHighlighter:()=>Pe,TT:()=>gn,TabBar:()=>En,TabButton:()=>In,TabList:()=>vn,TabPanel:()=>An,TabWrapper:()=>xn,Table:()=>$n,Tabs:()=>Rn,TabsState:()=>_n,TabsView:()=>De,ToggleButton:()=>Tn,Toolbar:()=>Cn,Tooltip:()=>On,TooltipLinkList:()=>kn,TooltipMessage:()=>wn,TooltipNote:()=>Nn,TooltipProvider:()=>Pn,UL:()=>Dn,WithTooltip:()=>Ln,WithTooltipPure:()=>Mn,Zoom:()=>Fn,codeCommon:()=>Un,components:()=>Hn,convertToReactAriaPlacement:()=>Gn,createCopyToClipboardFunction:()=>Bn,default:()=>va,getStoryHref:()=>qn,interleaveSeparators:()=>Vn,nameSpaceClassNames:()=>Yn,resetComponents:()=>jn,useTabsState:()=>Wn,withReset:()=>zn});var va,Aa,xa,$a,Ra,_a,z,Ta,Ca,M,Oa,ka,wa,Na,Pa,Da,La,we,Ma,Fa,Ua,Ha,Ga,Ba,qa,Va,Ya,ja,Wa,za,Ka,me,Xa,Qa,Za,Ja,en,tn,an,nn,rn,on,ln,sn,cn,Ne,un,mn,dn,pn,fn,yn,bn,hn,Sn,Pe,gn,En,In,vn,An,xn,$n,Rn,_n,De,Tn,Cn,On,kn,wn,Nn,Pn,Dn,Ln,Mn,Fn,Un,Hn,Gn,Bn,qn,Vn,Yn,jn,Wn,zn,K=he(()=>{v();A();x();va=__STORYBOOK_COMPONENTS__,{A:Aa,AbstractToolbar:xa,ActionBar:$a,ActionList:Ra,AddonPanel:_a,Badge:z,Bar:Ta,Blockquote:Ca,Button:M,Card:Oa,ClipboardCode:ka,Code:wa,Collapsible:Na,DL:Pa,Div:Da,DocumentWrapper:La,EmptyTabContent:we,ErrorFormatter:Ma,FlexBar:Fa,Form:Ua,H1:Ha,H2:Ga,H3:Ba,H4:qa,H5:Va,H6:Ya,HR:ja,IconButton:Wa,Img:za,LI:Ka,Link:me,ListItem:Xa,Loader:Qa,Modal:Za,ModalDecorator:Ja,OL:en,P:tn,Placeholder:an,Popover:nn,PopoverProvider:rn,Pre:on,ProgressSpinner:ln,ResetWrapper:sn,ScrollArea:cn,Select:Ne,Separator:un,Spaced:mn,Span:dn,StatelessTab:pn,StatelessTabList:fn,StatelessTabPanel:yn,StatelessTabsView:bn,StorybookIcon:hn,StorybookLogo:Sn,SyntaxHighlighter:Pe,TT:gn,TabBar:En,TabButton:In,TabList:vn,TabPanel:An,TabWrapper:xn,Table:$n,Tabs:Rn,TabsState:_n,TabsView:De,ToggleButton:Tn,Toolbar:Cn,Tooltip:On,TooltipLinkList:kn,TooltipMessage:wn,TooltipNote:Nn,TooltipProvider:Pn,UL:Dn,WithTooltip:Ln,WithTooltipPure:Mn,Zoom:Fn,codeCommon:Un,components:Hn,convertToReactAriaPlacement:Gn,createCopyToClipboardFunction:Bn,getStoryHref:qn,interleaveSeparators:Vn,nameSpaceClassNames:Yn,resetComponents:jn,useTabsState:Wn,withReset:zn}=__STORYBOOK_COMPONENTS__});v();A();x();v();A();x();v();A();x();var N="storybook/a11y",Se=`${N}/panel`,nt="a11y",Ao=`${N}/ui`,ya=`${N}/result`,ba=`${N}/request`,ha=`${N}/running`,Sa=`${N}/error`,ga=`${N}/manual`,Ea=`${N}/select`,Ia="writing-tests/accessibility-testing",rt=`${Ia}#why-are-my-tests-failing-in-different-environments`,Z={RESULT:ya,REQUEST:ba,RUNNING:ha,ERROR:Sa,MANUAL:ga,SELECT:Ea},Oe="storybook/component-test",ot="storybook/a11y";v();A();x();v();A();x();var r=__REACT__,{Children:U,Component:wo,Fragment:oe,Profiler:No,PureComponent:Po,StrictMode:Do,Suspense:Lo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Mo,act:Fo,cloneElement:J,createContext:te,createElement:d,createFactory:Uo,createRef:Ho,forwardRef:w,isValidElement:j,lazy:Go,memo:Bo,startTransition:qo,unstable_act:Vo,useCallback:E,useContext:le,useDebugValue:Yo,useDeferredValue:jo,useEffect:k,useId:lt,useImperativeHandle:Wo,useInsertionEffect:zo,useLayoutEffect:it,useMemo:D,useReducer:st,useRef:V,useState:L,useSyncExternalStore:Ko,useTransition:Xo,version:Qo}=__REACT__;K();v();A();x();var rl=__STORYBOOK_API__,{ActiveTabs:ol,Consumer:ll,ManagerContext:il,Provider:sl,RequestResponseError:cl,addons:ge,combineParameters:ul,controlOrMetaKey:ml,controlOrMetaSymbol:dl,eventMatchesSh
2ortcut:pl,eventToShortcut:fl,experimental_MockUniversalStore:yl,experimental_UniversalStore:bl,experimental_getStatusStore:ut,experimental_getTestProviderStore:hl,experimental_requestResponse:Sl,experimental_useStatusStore:mt,experimental_useTestProviderStore:gl,experimental_useUniversalStore:El,internal_checklistStore:Il,internal_fullStatusStore:vl,internal_fullTestProviderStore:Al,internal_universalChecklistStore:xl,internal_universalStatusStore:$l,internal_universalTestProviderStore:Rl,isMacLike:_l,isShortcutTaken:Tl,keyToSymbol:Cl,merge:Ol,mockChannel:kl,optionOrAltSymbol:wl,shortcutMatchesShortcut:Nl,shortcutToAriaKeyshortcuts:Pl,shortcutToHumanString:Dl,types:Le,useAddonState:Ee,useArgTypes:Ll,useArgs:Ml,useChannel:dt,useGlobalTypes:Fl,useGlobals:pt,useParameter:ft,useSharedState:Ul,useStoryPrepared:Hl,useStorybookApi:ie,useStorybookState:yt}=__STORYBOOK_API__;K();v();A();x();var Yl=__STORYBOOK_ICONS__,{AccessibilityAltIcon:jl,AccessibilityIcon:bt,AccessibilityIgnoredIcon:Wl,AddIcon:zl,AdminIcon:Kl,AlertAltIcon:Xl,AlertIcon:Ql,AlignLeftIcon:Zl,AlignRightIcon:Jl,AppleIcon:ei,ArrowBottomLeftIcon:ti,ArrowBottomRightIcon:ai,ArrowDownIcon:ni,ArrowLeftIcon:ri,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:Ri,BoxIcon:_i,BranchIcon:Ti,BrowserIcon:Ci,BugIcon:Oi,ButtonIcon:ki,CPUIcon:wi,CalendarIcon:Ni,CameraIcon:Pi,CameraStabilizeIcon:Di,CategoryIcon:Li,CertificateIcon:Mi,ChangedIcon:Fi,ChatIcon:Ui,CheckIcon:ht,ChevronDownIcon:Hi,ChevronLeftIcon:Gi,ChevronRightIcon:Bi,ChevronSmallDownIcon:St,ChevronSmallLeftIcon:qi,ChevronSmallRightIcon:Vi,ChevronSmallUpIcon:Yi,ChevronUpIcon:ji,ChromaticIcon:Wi,ChromeIcon:zi,CircleHollowIcon:Ki,CircleIcon:Xi,ClearIcon:Qi,CloseAltIcon:Zi,CloseIcon:Ji,CloudHollowIcon:es,CloudIcon:ts,CogIcon:as,CollapseIcon:gt,CommandIcon:ns,CommentAddIcon:rs,CommentIcon:os,CommentsIcon:ls,CommitIcon:is,CompassIcon:ss,ComponentDrivenIcon:cs,ComponentIcon:us,ContrastIcon:ms,ContrastIgnoredIcon:ds,ControlsIcon:ps,CopyIcon:Et,CreditIcon:fs,CrossIcon:ys,DashboardIcon:bs,DatabaseIcon:hs,DeleteIcon:Ss,DiamondIcon:gs,DirectionIcon:Es,DiscordIcon:Is,DocChartIcon:vs,DocListIcon:As,DocumentIcon:xs,DownloadIcon:$s,DragIcon:Rs,EditIcon:_s,EditorIcon:Ts,EllipsisIcon:Cs,EmailIcon:Os,ExpandAltIcon:It,ExpandIcon:ks,EyeCloseIcon:vt,EyeIcon:At,FaceHappyIcon:ws,FaceNeutralIcon:Ns,FaceSadIcon:Ps,FacebookIcon:Ds,FailedIcon:Ls,FastForwardIcon:Ms,FigmaIcon:Fs,FilterIcon:Us,FlagIcon:Hs,FolderIcon:Gs,FormIcon:Bs,GDriveIcon:qs,GiftIcon:Vs,GithubIcon:Ys,GitlabIcon:js,GlobeIcon:Ws,GoogleIcon:zs,GraphBarIcon:Ks,GraphLineIcon:Xs,GraphqlIcon:Qs,GridAltIcon:Zs,GridIcon:Js,GrowIcon:ec,HeartHollowIcon:tc,HeartIcon:ac,HomeIcon:nc,HourglassIcon:rc,InfoIcon:oc,ItalicIcon:lc,JumpToIcon:ic,KeyIcon:sc,LightningIcon:cc,LightningOffIcon:uc,LinkBrokenIcon:mc,LinkIcon:dc,LinkedinIcon:pc,LinuxIcon:fc,ListOrderedIcon:yc,ListUnorderedIcon:bc,LocationIcon:xt,LockIcon:hc,MarkdownIcon:Sc,MarkupIcon:gc,MediumIcon:Ec,MemoryIcon:Ic,MenuIcon:vc,MergeIcon:Ac,MirrorIcon:xc,MobileIcon:$c,MoonIcon:Rc,NutIcon:_c,OutboxIcon:Tc,OutlineIcon:Cc,PaintBrushAltIcon:Oc,PaintBrushIcon:kc,PaperClipIcon:wc,ParagraphIcon:Nc,PassedIcon:Pc,PhoneIcon:Dc,PhotoDragIcon:Lc,PhotoIcon:Mc,PhotoStabilizeIcon:Fc,PinAltIcon:Uc,PinIcon:Hc,PlayAllHollowIcon:Gc,PlayBackIcon:Bc,PlayHollowIcon:qc,PlayIcon:Vc,PlayNextIcon:Yc,PlusIcon:jc,PointerDefaultIcon:Wc,PointerHandIcon:zc,PowerIcon:Kc,PrintIcon:Xc,ProceedIcon:Qc,ProfileIcon:Zc,PullRequestIcon:Jc,QuestionIcon:eu,RSSIcon:tu,RedirectIcon:au,ReduxIcon:nu,RefreshIcon:ru,ReplyIcon:ou,RepoIcon:lu,RequestChangeIcon:iu,RewindIcon:su,RulerIcon:cu,SaveIcon:uu,SearchIcon:mu,ShareAltIcon:du,ShareIcon:pu,ShieldIcon:fu,SideBySideIcon:yu,SidebarAltIcon:bu,SidebarAltToggleIcon:hu,SidebarIcon:Su,SidebarToggleIcon:gu,SortDownIcon:Eu,SortUpIcon:Iu,SpeakerIcon:vu,StackedIcon:Au,StarHollowIcon:xu,StarIcon:$u,StatusFailIcon:Ru,StatusIcon:_u,StatusPassIcon:Tu,StatusWarnIcon:Cu,StickerIcon:Ou,StopAltHollowIcon:ku,StopAltIcon:wu,StopIcon:Nu,StorybookIcon:Pu,StructureIcon:Du,SubtractIcon:Lu,SunIcon:Mu,SupportIcon:Fu,SweepIcon:Uu,SwitchAltIcon:Hu,SyncIcon:Ie,TabletIcon:Gu,ThumbsUpIcon:Bu,TimeIcon:qu,TimerIcon:Vu,TransferIcon:Yu,TrashIcon:ju,TwitterIcon:Wu,TypeIcon:zu,UbuntuIcon:Ku,UndoIcon:Xu,UnfoldIcon:Qu,UnlockIcon:Zu,UnpinIcon:Ju,UploadIcon:em,UserAddIcon:tm,UserAltIcon:am,UserIcon:nm,
2UsersIcon:rm,VSCodeIcon:om,VerifiedIcon:lm,VideoIcon:im,WandIcon:sm,WatchIcon:cm,WindowsIcon:um,WrenchIcon:mm,XIcon:dm,YoutubeIcon:pm,ZoomIcon:fm,ZoomOutIcon:ym,ZoomResetIcon:bm,iconList:hm}=__STORYBOOK_ICONS__;v();A();x();var vm=__STORYBOOK_THEMING__,{CacheProvider:Am,ClassNames:xm,Global:$t,ThemeProvider:$m,background:Rm,color:_m,convert:Rt,create:Tm,createCache:Cm,createGlobal:Om,createReset:km,css:wm,darken:Nm,ensure:Pm,getPreferredColorScheme:Dm,ignoreSsrWarning:Lm,isPropValid:Mm,jsx:Fm,keyframes:Um,lighten:Hm,styled:I,themes:_t,tokens:Gm,typography:Bm,useTheme:Tt,withTheme:qm}=__STORYBOOK_THEMING__;v();A();x();var zm=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:Km,ARGTYPES_INFO_RESPONSE:Xm,CHANNEL_CREATED:Qm,CHANNEL_WS_DISCONNECT:Zm,CONFIG_ERROR:Jm,CREATE_NEW_STORYFILE_REQUEST:ed,CREATE_NEW_STORYFILE_RESPONSE:td,CURRENT_STORY_WAS_SET:ad,DOCS_PREPARED:nd,DOCS_RENDERED:rd,FILE_COMPONENT_SEARCH_REQUEST:od,FILE_COMPONENT_SEARCH_RESPONSE:ld,FORCE_REMOUNT:id,FORCE_RE_RENDER:sd,GLOBALS_UPDATED:cd,MANAGER_INERT_ATTRIBUTE_CHANGED:ud,NAVIGATE_URL:md,OPEN_IN_EDITOR_REQUEST:dd,OPEN_IN_EDITOR_RESPONSE:pd,PLAY_FUNCTION_THREW_EXCEPTION:fd,PRELOAD_ENTRIES:yd,PREVIEW_BUILDER_PROGRESS:bd,PREVIEW_INITIALIZED:hd,PREVIEW_KEYDOWN:Sd,REGISTER_SUBSCRIPTION:gd,REQUEST_WHATS_NEW_DATA:Ed,RESET_STORY_ARGS:Id,RESULT_WHATS_NEW_DATA:vd,SAVE_STORY_REQUEST:Ad,SAVE_STORY_RESPONSE:xd,SELECT_STORY:$d,SET_CONFIG:Rd,SET_CURRENT_STORY:_d,SET_FILTER:Td,SET_GLOBALS:Cd,SET_INDEX:Od,SET_STORIES:kd,SET_WHATS_NEW_CACHE:wd,SHARED_STATE_CHANGED:Nd,SHARED_STATE_SET:Pd,STORIES_COLLAPSE_ALL:Dd,STORIES_EXPAND_ALL:Ld,STORY_ARGS_UPDATED:Md,STORY_CHANGED:Ct,STORY_ERRORED:Fd,STORY_FINISHED:Ot,STORY_HOT_UPDATED:kt,STORY_INDEX_INVALIDATED:Ud,STORY_MISSING:Hd,STORY_PREPARED:Gd,STORY_RENDERED:Bd,STORY_RENDER_PHASE_CHANGED:wt,STORY_SPECIFIED:qd,STORY_THREW_EXCEPTION:Vd,STORY_UNCHANGED:Yd,TELEMETRY_ERROR:jd,TOGGLE_WHATS_NEW_NOTIFICATIONS:Wd,UNHANDLED_ERRORS_WHILE_PLAYING:zd,UPDATE_GLOBALS:Kd,UPDATE_QUERY_PARAMS:Xd,UPDATE_STORY_ARGS:Qd}=__STORYBOOK_CORE_EVENTS__;v();A();x();v();A();x();var ve="storybook/highlight",Ae=`${ve}/add`,xe=`${ve}/remove`,Kn=`${ve}/reset`,Me=`${ve}/scroll-into-view`;v();A();x();var lp=(e=>typeof ee<"u"?ee:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof ee<"u"?ee:t)[a]}):e)(function(e){if(typeof ee<"u")return ee.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});K();K();v();A();x();var Sp=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gp,createPortal:Ep,createRoot:Ip,findDOMNode:vp,flushSync:Nt,hydrate:Ap,hydrateRoot:xp,render:$p,unmountComponentAtNode:Rp,unstable_batchedUpdates:_p,unstable_renderSubtreeIntoContainer:Tp,version:Cp}=__REACT_DOM__;K();K();K();var H={VIOLATION:"violations",PASS:"passes",INCOMPLETION:"incomplete"},Xn={"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)."}
2,"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;
2 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."}},Qn={"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."}},Zn={"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."}},Jn={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 (
2don'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."}}
2,er={"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.`}},tr={"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."}},ar={"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."}},Ht={...Xn,...Qn,...Zn,...er,...Jn,...tr,...ar},qe=e=>Ht[e.id]?.title||e.id,Ve=e=>Ht[e.id]?.friendlySummary||e.description,nr=["html","body","main"],Fe=Rt(_t.light),Ue={[H.VIOLATION]:Fe.color.negative,[H.PASS]:Fe.color.positive,[H.INCOMPLETION]:Fe.color.warning},Gt=te({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:()=>{}}),rr=e=>{let t=ft("a11y",{}),[a]=pt()??[],n=ie(),i=E((m=!1)=>m?"manual":"initial",[]),l=D(()=>a?.a11y?.manual??!1,[a?.a11y?.manual]),o=D(()=>{let m=n.getQueryParam("a11ySelection");return m&&n.setQueryParams({a11ySelection:""}),m},[n]),[u,c]=Ee(N,{ui:{highlighted:!1,tab:H.VIOLATION},results:void 0,error:void 0,status:i(l)}),{ui:s,results:p,error:y,status:S}=u,{storyId:g}=yt(),h=mt(m=>m[g]?.[ot]?.value);k(()=>ut("storybook/component-test").onAllStatusChange((m,b)=>{let f=m[g]?.[Oe],_=b[g]?.[Oe];f?.value==="status-value:error"&&_?.value!=="status-value:error"&&c(O=>({...O,status:"component-test-error"}))}),[c,g]);let T=E(()=>{c(m=>({...m,ui:{...m.ui,highlighted:!m.ui.highlighted}}))},[c]),[$,R]=L(()=>{let m=new Map;if(o&&/^[a-z]+.[a-z-]+.[0-9]+$/.test(o)){let[b,f]=o.split(".");m.set(`${b}.${f}`,o)}return m}),F=D(()=>p?.[s.tab]?.every(m=>$.has(`${s.tab}.${m.id}`))??!1,[p,$,s.tab]),ce=E((m,b,f)=>{m.stopPropagation();let _=`${b}.${f.id}`;R(O=>new Map(O.delete(_)?O:O.set(_,`${_}.1`)))},[]),Q=E(()=>{R(new Map)},[]),Te=E(()=>{R(m=>new Map(p?.[s.tab]?.map(b=>{let f=`${s.tab}.${b.id}`;return[f,m.get(f)??`${f}.1`]})??[]))},[p,s.tab]),de=E(m=>{let[b,f]=m.split(".");R(_=>new Map(_.set(`${b}.${f}`,m)))},[]),C=E(m=>{c(b=>({...b,status:"error",error:m}))},[c]),ae=E((m,b)=>{g===b&&(c(f=>({...f,status:"ran",results:m})),setTimeout(()=>{c(f=>f.status==="ran"?{...f,status:"ready"}:f),R(f=>{if(f.size===1){let[_]=f.values();document.getElementById(_)?.scrollIntoView({behavior:"smooth",block:"center"})}return f})},900))},[g,c,R]),ue=E((m,b)=>
2{let[f,_]=m.split("."),{helpUrl:O,nodes:fe}=p?.[f]?.find(re=>re.id===_)||{},ye=O&&window.open(O,"_blank","noopener,noreferrer");if(fe&&!ye){let re=fe.findIndex(be=>b.selectors.some(da=>da===String(be.target)))??-1;if(re!==-1){let be=`${f}.${_}.${re+1}`;R(new Map([[`${f}.${_}`,be]])),setTimeout(()=>{document.getElementById(be)?.scrollIntoView({behavior:"smooth",block:"center"})},100)}}},[p]),ne=E(({reporters:m})=>{let b=m.find(f=>f.type==="a11y");b&&("error"in b.result?C(b.result.error):ae(b.result,g))},[C,ae,g]),pe=E(({newPhase:m})=>{m==="loading"?c(b=>({...b,results:void 0,status:l?"manual":"initial"})):m==="afterEach"&&!l&&c(b=>({...b,status:"running"}))},[l,c]),Y=dt({[Z.RESULT]:ae,[Z.ERROR]:C,[Z.SELECT]:ue,[Ct]:()=>R(new Map),[wt]:pe,[Ot]:ne,[kt]:()=>{c(m=>({...m,status:"running"})),Y(Z.MANUAL,g,t)}},[pe,ne,ue,C,ae,t,g]),Ce=E(()=>{c(m=>({...m,status:"running"})),Y(Z.MANUAL,g,t)},[Y,t,c,g]),W=E(async m=>{let{createCopyToClipboardFunction:b}=await Promise.resolve().then(()=>(K(),ct));await b()(`${window.location.origin}${m}`)},[]),ua=E(m=>Y(Me,m),[Y]);k(()=>{c(m=>({...m,status:i(l)}))},[i,l,c]);let at=S==="initial";k(()=>{o&&c(m=>{let b={...m.ui,highlighted:!0},[f]=o.split(".")??[];return f&&Object.values(H).includes(f)&&(b.tab=f),{...m,ui:b}})},[o]),k(()=>{if(Y(xe,`${N}/selected`),Y(xe,`${N}/others`),!s.highlighted||at)return;let m=Array.from($.values()).flatMap(f=>{let[_,O,fe]=f.split(".");if(_!==s.tab)return[];let ye=p?.[_]?.find(re=>re.id===O)?.nodes[Number(fe)-1]?.target;return ye?[String(ye)]:[]});m.length&&Y(Ae,{id:`${N}/selected`,priority:1,selectors:m,styles:{outline:`1px solid color-mix(in srgb, ${Ue[s.tab]}, transparent 30%)`,backgroundColor:"transparent"},hoverStyles:{outlineWidth:"2px"},focusStyles:{backgroundColor:"transparent"},menu:p?.[s.tab].map(f=>{let _=f.nodes.flatMap(O=>O.target).map(String).filter(O=>m.includes(O));return[{id:`${s.tab}.${f.id}:info`,title:qe(f),description:Ve(f),selectors:_},{id:`${s.tab}.${f.id}`,iconLeft:"info",iconRight:"shareAlt",title:"Learn how to resolve this violation",clickEvent:Z.SELECT,selectors:_}]})});let b=p?.[s.tab].flatMap(f=>f.nodes.flatMap(_=>_.target).map(String)).filter(f=>![...nr,...m].includes(f));b?.length&&Y(Ae,{id:`${N}/others`,selectors:b,styles:{outline:`1px solid color-mix(in srgb, ${Ue[s.tab]}, transparent 30%)`,backgroundColor:`color-mix(in srgb, ${Ue[s.tab]}, transparent 60%)`},hoverStyles:{outlineWidth:"2px"},focusStyles:{backgroundColor:"transparent"},menu:p?.[s.tab].map(f=>{let _=f.nodes.flatMap(O=>O.target).map(String).filter(O=>!m.includes(O));return[{id:`${s.tab}.${f.id}:info`,title:qe(f),description:Ve(f),selectors:_},{id:`${s.tab}.${f.id}`,iconLeft:"info",iconRight:"shareAlt",title:"Learn how to resolve this violation",clickEvent:Z.SELECT,selectors:_}]})})},[at,Y,s.highlighted,p,s.tab,$]);let ma=D(()=>{if(!h)return null;if(h==="status-value:success"&&p?.violations.length)return"cliPassedBrowserFailed";if(h==="status-value:error"&&!p?.violations.length){if(S==="ready"||S==="ran")return"browserPassedCliFailed";if(S==="manual")return"cliFailedButModeManual"}return null},[p?.violations.length,S,h]);return r.createElement(Gt.Provider,{value:{parameters:t,results:p,highlighted:s.highlighted,toggleHighlight:T,tab:s.tab,setTab:E(m=>c(b=>({...b,ui:{...b.ui,tab:m}})),[c]),handleCopyLink:W,status:S,setStatus:E(m=>c(b=>({...b,status:m})),[c]),error:y,handleManual:Ce,discrepancy:ma,selectedItems:$,toggleOpen:ce,allExpanded:F,handleCollapseAll:Q,handleExpandAll:Te,handleJumpToElement:ua,handleSelectionChange:de},...e})},Xe=()=>le(Gt);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 n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},P.apply(null,arguments)}function X(e,t,{checkForDefaultPrevented:a=!0}={}){return function(n){if(e?.(n),a===!1||!n.defaultPrevented)return t?.(n)}}function Qe(e,t=[]){let a=[];function n(l,o){let u=te(o),c=a.length;a=[...a,o];function s(y){let{scope:S,children:g,...h}=y,T=S?.[e][c]||u,$=D(()=>h,Object.values(h));return d(T.Provider,{value:$},g)}function p(y,S){let g=S?.[e][c]||u,h=le(g);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${y}\` must be used within \`${l}\``)}return s.displayName=l+"Provider",[s,p]}let i=()=>{let l=a.map(o=>te(o));return function(o){let u=o?.[e]||l;return D(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return i.scopeName=e,[n,or(i,...t)]}function or(...e){let t=e[0];if(e.length===1)return t;let a=()=>{let n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){let l=n.reduce((o,{useScope:u,scopeName:c}
2)=>{let s=u(i)[`__scope${c}`];return{...o,...s}},{});return D(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return a.scopeName=t.scopeName,a}function lr(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ze(...e){return t=>e.forEach(a=>lr(a,t))}function Re(...e){return E(Ze(...e),e)}var Ye=w((e,t)=>{let{children:a,...n}=e,i=U.toArray(a),l=i.find(sr);if(l){let o=l.props.children,u=i.map(c=>c===l?U.count(o)>1?U.only(null):j(o)?o.props.children:null:c);return d(je,P({},n,{ref:t}),j(o)?J(o,void 0,u):null)}return d(je,P({},n,{ref:t}),a)});Ye.displayName="Slot";var je=w((e,t)=>{let{children:a,...n}=e;return j(a)?J(a,{...cr(n,a.props),ref:t?Ze(t,a.ref):a.ref}):U.count(a)>1?U.only(null):null});je.displayName="SlotClone";var ir=({children:e})=>d(oe,null,e);function sr(e){return j(e)&&e.type===ir}function cr(e,t){let a={...t};for(let n in t){let i=e[n],l=t[n];/^on[A-Z]/.test(n)?i&&l?a[n]=(...o)=>{l(...o),i(...o)}:i&&(a[n]=i):n==="style"?a[n]={...i,...l}:n==="className"&&(a[n]=[i,l].filter(Boolean).join(" "))}return{...e,...a}}function ur(e){let t=e+"CollectionProvider",[a,n]=Qe(t),[i,l]=a(t,{collectionRef:{current:null},itemMap:new Map}),o=g=>{let{scope:h,children:T}=g,$=r.useRef(null),R=r.useRef(new Map).current;return r.createElement(i,{scope:h,itemMap:R,collectionRef:$},T)};Object.assign(o,{displayName:t});let u=e+"CollectionSlot",c=r.forwardRef((g,h)=>{let{scope:T,children:$}=g,R=l(u,T),F=Re(h,R.collectionRef);return r.createElement(Ye,{ref:F},$)});Object.assign(c,{displayName:u});let s=e+"CollectionItemSlot",p="data-radix-collection-item",y=r.forwardRef((g,h)=>{let{scope:T,children:$,...R}=g,F=r.useRef(null),ce=Re(h,F),Q=l(s,T);return r.useEffect(()=>(Q.itemMap.set(F,{ref:F,...R}),()=>{Q.itemMap.delete(F)})),r.createElement(Ye,{[p]:"",ref:ce},$)});Object.assign(y,{displayName:s});function S(g){let h=l(e+"CollectionConsumer",g);return r.useCallback(()=>{let T=h.collectionRef.current;if(!T)return[];let $=Array.from(T.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((R,F)=>$.indexOf(R.ref.current)-$.indexOf(F.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:c,ItemSlot:y},S,n]}var We=globalThis?.document?it:()=>{},mr=lt||(()=>{}),dr=0;function Bt(e){let[t,a]=L(mr());return We(()=>{e||a(n=>n??String(dr++))},[e]),e||(t?`radix-${t}`:"")}var qt=w((e,t)=>{let{children:a,...n}=e,i=U.toArray(a),l=i.find(fr);if(l){let o=l.props.children,u=i.map(c=>c===l?U.count(o)>1?U.only(null):j(o)?o.props.children:null:c);return d(ze,P({},n,{ref:t}),j(o)?J(o,void 0,u):null)}return d(ze,P({},n,{ref:t}),a)});qt.displayName="Slot";var ze=w((e,t)=>{let{children:a,...n}=e;return j(a)?J(a,{...yr(n,a.props),ref:t?Ze(t,a.ref):a.ref}):U.count(a)>1?U.only(null):null});ze.displayName="SlotClone";var pr=({children:e})=>d(oe,null,e);function fr(e){return j(e)&&e.type===pr}function yr(e,t){let a={...t};for(let n in t){let i=e[n],l=t[n];/^on[A-Z]/.test(n)?i&&l?a[n]=(...o)=>{l(...o),i(...o)}:i&&(a[n]=i):n==="style"?a[n]={...i,...l}:n==="className"&&(a[n]=[i,l].filter(Boolean).join(" "))}return{...e,...a}}var br=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],se=br.reduce((e,t)=>{let a=w((n,i)=>{let{asChild:l,...o}=n,u=l?qt:t;return k(()=>{window[Symbol.for("radix-ui")]=!0},[]),d(u,P({},o,{ref:i}))});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function Je(e){let t=V(e);return k(()=>{t.current=e}),D(()=>(...a)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...a)},[])}function Vt({prop:e,defaultProp:t,onChange:a=()=>{}}){let[n,i]=hr({defaultProp:t,onChange:a}),l=e!==void 0,o=l?e:n,u=Je(a),c=E(s=>{if(l){let p=typeof s=="function"?s(e):s;p!==e&&u(p)}else i(s)},[l,e,i,u]);return[o,c]}function hr({defaultProp:e,onChange:t}){let a=L(e),[n]=a,i=V(n),l=Je(t);return k(()=>{i.current!==n&&(l(n),i.current=n)},[n,i,l]),a}var Sr=te(void 0);function Yt(e){let t=le(Sr);return e||t||"ltr"}var He="rovingFocusGroup.onEntryFocus",gr={bubbles:!1,cancelable:!0},_e="RovingFocusGroup",[Ke,jt,Er]=ur(_e),[Ir,Wt]=Qe(_e,[Er]),[vr,Ar]=Ir(_e),zt=w((e,t)=>d(Ke.Provider,{scope:e.__scopeRovingFocusGroup},d(Ke.Slot,{scope:e.__scopeRovingFocusGroup},d(xr,P({},e,{ref:t})))));Object.assign(zt,{displayName:_e});var xr=w((e,t)=>{let{__scopeRovingFocusGroup:a,orientation:n,loop:i=!1,dir:l,currentTabStopId:o,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:s,...p}=e,y=V(null),S=Re(t,y),g=Yt(l),[h=null,T]=Vt({prop:o,defaultProp:u,onChange:c}),[$,R]=L(!1),F=Je(s),ce=jt(a),Q=V(!1),[Te,de]=L(0);return k(()=>{let C=y.current;if(C)return C.addEventListener(He,F),()=>C.removeEventListener(He,F)},[F]),d(vr,{scope:a,orientation:n,dir:g,loop:i,currentTabStopId:h,onItemFocus:E(C=>T(C),[T]),onItemShiftTab:E(()=>R(!0),[]),onFocusableItemAdd:E(()=>de(C=>C+1),[]),onFocusableItemRemove:E(()=>de(C=>C-1),[])},d(se.div,P({tabIndex:$||Te===0?-1:0,"data-orientation":n},p,{ref:S,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{Q.current=!0}
2),onFocus:X(e.onFocus,C=>{let ae=!Q.current;if(C.target===C.currentTarget&&ae&&!$){let ue=new CustomEvent(He,gr);if(C.currentTarget.dispatchEvent(ue),!ue.defaultPrevented){let ne=ce().filter(W=>W.focusable),pe=ne.find(W=>W.active),Y=ne.find(W=>W.id===h),Ce=[pe,Y,...ne].filter(Boolean).map(W=>W.ref.current);Qt(Ce)}}Q.current=!1}),onBlur:X(e.onBlur,()=>R(!1))})))}),Kt="RovingFocusGroupItem",Xt=w((e,t)=>{let{__scopeRovingFocusGroup:a,focusable:n=!0,active:i=!1,tabStopId:l,...o}=e,u=Bt(),c=l||u,s=Ar(Kt,a),p=s.currentTabStopId===c,y=jt(a),{onFocusableItemAdd:S,onFocusableItemRemove:g}=s;return k(()=>{if(n)return S(),()=>g()},[n,S,g]),d(Ke.ItemSlot,{scope:a,id:c,focusable:n,active:i},d(se.span,P({tabIndex:p?0:-1,"data-orientation":s.orientation},o,{ref:t,onMouseDown:X(e.onMouseDown,h=>{n?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 T=_r(h,s.orientation,s.dir);if(T!==void 0){h.preventDefault();let $=y().filter(R=>R.focusable).map(R=>R.ref.current);if(T==="last")$.reverse();else if(T==="prev"||T==="next"){T==="prev"&&$.reverse();let R=$.indexOf(h.currentTarget);$=s.loop?Tr($,R+1):$.slice(R+1)}setTimeout(()=>Qt($))}})})))});Object.assign(Xt,{displayName:Kt});var $r={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Rr(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _r(e,t,a){let n=Rr(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return $r[n]}function Qt(e){let t=document.activeElement;for(let a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function Tr(e,t){return e.map((a,n)=>e[(t+n)%e.length])}var Cr=zt,Or=Xt;function kr(e,t){return st((a,n)=>t[a][n]??a,e)}var Zt=e=>{let{present:t,children:a}=e,n=wr(t),i=typeof a=="function"?a({present:n.isPresent}):U.only(a),l=Re(n.ref,i.ref);return typeof a=="function"||n.isPresent?J(i,{ref:l}):null};Zt.displayName="Presence";function wr(e){let[t,a]=L(),n=V({}),i=V(e),l=V("none"),o=e?"mounted":"unmounted",[u,c]=kr(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k(()=>{let s=$e(n.current);l.current=u==="mounted"?s:"none"},[u]),We(()=>{let s=n.current,p=i.current;if(p!==e){let y=l.current,S=$e(s);e?c("MOUNT"):S==="none"||s?.display==="none"?c("UNMOUNT"):c(p&&y!==S?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,c]),We(()=>{if(t){let s=y=>{let S=$e(n.current).includes(y.animationName);y.target===t&&S&&Nt(()=>c("ANIMATION_END"))},p=y=>{y.target===t&&(l.current=$e(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:E(s=>{s&&(n.current=getComputedStyle(s)),a(s)},[])}}function $e(e){return e?.animationName||"none"}var et="Tabs",[Nr,gf]=Qe(et,[Wt]),Jt=Wt(),[Pr,tt]=Nr(et),ea=w((e,t)=>{let{__scopeTabs:a,value:n,onValueChange:i,defaultValue:l,orientation:o="horizontal",dir:u,activationMode:c="automatic",...s}=e,p=Yt(u),[y,S]=Vt({prop:n,onChange:i,defaultProp:l});return d(Pr,{scope:a,baseId:Bt(),value:y,onValueChange:S,orientation:o,dir:p,activationMode:c},d(se.div,P({dir:p,"data-orientation":o},s,{ref:t})))});Object.assign(ea,{displayName:et});var ta="TabsList",aa=w((e,t)=>{let{__scopeTabs:a,loop:n=!0,...i}=e,l=tt(ta,a),o=Jt(a);return d(Cr,P({asChild:!0},o,{orientation:l.orientation,dir:l.dir,loop:n}),d(se.div,P({role:"tablist","aria-orientation":l.orientation},i,{ref:t})))});Object.assign(aa,{displayName:ta});var na="TabsTrigger",ra=w((e,t)=>{let{__scopeTabs:a,value:n,disabled:i=!1,...l}=e,o=tt(na,a),u=Jt(a),c=ia(o.baseId,n),s=sa(o.baseId,n),p=n===o.value;return d(Or,P({asChild:!0},u,{focusable:!i,active:p}),d(se.button,P({type:"button",role:"tab","aria-selected":p,"aria-controls":s,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:c},l,{ref:t,onMouseDown:X(e.onMouseDown,y=>{!i&&y.button===0&&y.ctrlKey===!1?o.onValueChange(n):y.preventDefault()}),onKeyDown:X(e.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&o.onValueChange(n)}),onFocus:X(e.onFocus,()=>{let y=o.activationMode!=="manual";!p&&!i&&y&&o.onValueChange(n)})})))});Object.assign(ra,{displayName:na});var oa="TabsContent",la=w((e,t)=>{let{__scopeTabs:a,value:n,forceMount:i,children:l,...o}=e,u=tt(oa,a),c=ia(u.baseId,n),s=sa(u.baseId,n),p=n===u.value,y=V(p);return k(()=>{let S=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(S)},[]),d(Zt,{present:i||p},({present:S})=>d(se.div,P({"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!S,id:s,tabIndex:0},o,{ref:t,style:{...e.style,animationDuration:y.current?"0s":void 0}}),S&&l))});Object.assign(la,{displayName:oa});function ia(e,t){return`${e}-trigger-${t}`}function sa(e,t){return`${e}-content-${t}`}var Dr=ea,Lr=aa,Mr=ra,Pt=la,Dt=I(Pe)(({theme:e})=>({fontSize:e.typography.size.s1}),({language:e})=>e==="css"&&{".selector ~ span:nth-last-of-type(-n+3)":{display:"none"}}),Fr=I.div({display:"flex",flexDirection:"column"}),Ur=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"}})),Hr=I.p({margin:0}),Gr=I.div({display:"flex",flexDirection:"column",padding:"0 15px 20px 15px",gap:20}),Br=I.div({gap:15,"@container (min-width: 800px)":{display:"grid",gridTemplateColumns:"50% 50%"}}),Lt=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"}})),qr=I(M)(({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}})),Vr=I.div({display:"flex",flexDirection:"column",gap:10}),Yr=I.div({display:"flex",gap:10}),jr=({onClick:e})=>
2{let[t,a]=L(!1),n=E(()=>{e(),a(!0);let i=setTimeout(()=>a(!1),2e3);return()=>clearTimeout(i)},[e]);return r.createElement(M,{ariaLabel:!1,onClick:n},t?r.createElement(ht,null):r.createElement(Et,null)," ",t?"Copied":"Copy link")},Wr=({id:e,item:t,type:a,selection:n,handleSelectionChange:i})=>r.createElement(Gr,{id:e},r.createElement(Fr,null,r.createElement(Ur,null,t.id),r.createElement(Hr,null,Ve(t)," ",r.createElement(me,{href:t.helpUrl,target:"_blank",rel:"noopener noreferrer",withArrow:!0},"Learn how to resolve this violation"))),r.createElement(Dr,{defaultValue:n,orientation:"vertical",value:n,onValueChange:i,asChild:!0},r.createElement(Br,null,r.createElement(Lr,{"aria-label":a},t.nodes.map((l,o)=>{let u=`${a}.${t.id}.${o+1}`;return r.createElement(oe,{key:u},r.createElement(Mr,{value:u,asChild:!0},r.createElement(qr,{ariaLabel:!1,variant:"ghost",size:"medium",id:u},o+1,". ",l.html)),r.createElement(Pt,{value:u,asChild:!0},r.createElement(Lt,{side:"left"},Mt(l))))})),t.nodes.map((l,o)=>{let u=`${a}.${t.id}.${o+1}`;return r.createElement(Pt,{key:u,value:u,asChild:!0},r.createElement(Lt,{side:"right"},Mt(l)))}))));function Mt(e){let{handleCopyLink:t,handleJumpToElement:a}=Xe(),{any:n,all:i,none:l,html:o,target:u}=e,c=[...n,...i,...l];return r.createElement(r.Fragment,null,r.createElement(Vr,null,c.map(s=>r.createElement("div",{key:s.id},`${s.message}${/(\.|: [^.]+\.*)$/.test(s.message)?"":"."}`))),r.createElement(Yr,null,r.createElement(M,{ariaLabel:!1,onClick:()=>a(e.target.toString())},r.createElement(xt,null)," Jump to element"),r.createElement(jr,{onClick:()=>t(e.linkPath)})),r.createElement(Dt,{language:"jsx",wrapLongLines:!0},`/* element */
3${o}`),r.createElement(Dt,{language:"css",wrapLongLines:!0},`/* selector */
4${u} {}`))}var zr={minor:"neutral",moderate:"warning",serious:"negative",critical:"critical"},Kr={minor:"Minor",moderate:"Moderate",serious:"Serious",critical:"Critical"},Xr=I.div(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",borderBottom:`1px solid ${e.appBorderColor}`,containerType:"inline-size",fontSize:e.typography.size.s2})),Qr=I(St)({transition:"transform 0.1s ease-in-out"}),Zr=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}})),Jr=I.div(({theme:e})=>({display:"flex",alignItems:"baseline",flexGrow:1,fontSize:e.typography.size.s2,gap:8})),eo=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"}})),to=I.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.textMutedColor,width:28,height:28})),Ge=({items:e,empty:t,type:a,handleSelectionChange:n,selectedItems:i,toggleOpen:l})=>r.createElement(r.Fragment,null,e&&e.length?e.map(o=>{let u=`${a}.${o.id}`,c=`details:${u}`,s=i.get(u),p=qe(o);return r.createElement(Xr,{key:u},r.createElement(Zr,{onClick:y=>l(y,a,o),"data-active":!!s},r.createElement(Jr,null,r.createElement("strong",null,p),r.createElement(eo,null,o.id)),o.impact&&r.createElement(z,{status:a===H.PASS?"neutral":zr[o.impact]},Kr[o.impact]),r.createElement(to,null,o.nodes.length),r.createElement(M,{onClick:y=>l(y,a,o),ariaLabel:`${s?"Collapse":"Expand"} details for: ${p}`,"aria-expanded":!!s,"aria-controls":c,variant:"ghost",padding:"small"},r.createElement(Qr,{style:{transform:`rotate(${s?-180:0}deg)`}}))),s?r.createElement(Wr,{id:c,item:o,type:a,selection:s,handleSelectionChange:n}):r.createElement("div",{id:c}))}):r.createElement(we,{title:t})),ao=I.div({width:"100%",position:"relative",height:"100%",overflow:"hidden",display:"flex",flexDirection:"column"}),no=I.div({display:"flex",justifyContent:"flex-end",gap:6}),ro=({tabs:e})=>{let{tab:t,setTab:a,toggleHighlight:n,highlighted:i,handleManual:l,allExpanded:o,handleCollapseAll:u,handleExpandAll:c}=Xe(),s=Tt();return d(ao,null,d(De,{backgroundColor:s.background.app,panelProps:{hasScrollbar:!0},tabs:e.map(p=>({id:p.type,title:p.label,children:p.panel})),selected:t,onSelectionChange:p=>a(p),tools:d(no,null,d(M,{variant:"ghost",padding:"small",onClick:n,ariaLabel:i?"Hide accessibility test result highlights":"Highlight elements with accessibility test results"},i?d(vt,null):d(At,null)),d(M,{variant:"ghost",padding:"small",onClick:o?u:c,ariaLabel:o?"Collapse all results":"Expand all results","aria-expanded":o},o?d(gt,null):d(It,null)),d(M,{variant:"ghost",padding:"small",onClick:l,ariaLabel:"Rerun accessibility scan"},d(Ie,null)))}))},oo=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)"}})),lo=({discrepancy:e})=>{let t=ie().getDocsUrl({subpath:rt,versioned:!0,renderer:!0}),a=D(()=>{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?r.createElement(oo,null,a," ",r.createElement(me,{href:t,target:"_blank",withArrow:!0},"Learn what could cause this")):null},Ft=I(Ie)(({theme:e})=>({animation:`${e.animation.rotate360} 1s linear infinite;`,margin:4})),Be=I.div({display:"flex",alignItems:"center",gap:6}),Ut=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"}})),io=()=>{let{parameters:e,tab:t,results:a,status:n,handleManual:i,error:l,discrepancy:o,handleSelectionChange:u,selectedItems:c,toggleOpen:s}=Xe(),p=D(()=>{let{passes:y,incomplete:S,violations:g}=a??{passes:[],incomplete:[],violations:[]};return[{label:r.createElement(Be,null,"Violations",r.createElement(z,{compact:!0,status:t==="violations"?"active":"neutral"},g.length)),panel:r.createElement(Ge,{items:g,type:H.VIOLATION,empty:"No accessibility violations foun
4d.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:g,type:H.VIOLATION},{label:r.createElement(Be,null,"Passes",r.createElement(z,{compact:!0,status:t==="passes"?"active":"neutral"},y.length)),panel:r.createElement(Ge,{items:y,type:H.PASS,empty:"No passing accessibility checks found.",handleSelectionChange:u,selectedItems:c,toggleOpen:s}),items:y,type:H.PASS},{label:r.createElement(Be,null,"Inconclusive",r.createElement(z,{compact:!0,status:t==="incomplete"?"active":"neutral"},S.length)),panel:r.createElement(Ge,{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"?r.createElement(Ut,null,r.createElement("div",null,r.createElement("strong",null,"Accessibility tests are disabled for this story"),r.createElement("p",null,"Update"," ",r.createElement("code",null,e.disable?"parameters.a11y.disable":"parameters.a11y.test")," ","to enable accessibility tests."))):r.createElement(r.Fragment,null,o&&r.createElement(lo,{discrepancy:o}),n==="ready"||n==="ran"?r.createElement(ro,{key:"tabs",tabs:p}):r.createElement(Ut,{style:{marginTop:o?"1em":0}},n==="initial"&&r.createElement("div",null,r.createElement(Ft,{size:12}),r.createElement("strong",null,"Preparing accessibility scan"),r.createElement("p",null,"Please wait while the addon is initializing...")),n==="manual"&&r.createElement(r.Fragment,null,r.createElement("div",null,r.createElement("strong",null,"Accessibility tests run manually for this story"),r.createElement("p",null,"Results will not show when using the testing module. You can still run accessibility tests manually.")),r.createElement(M,{ariaLabel:!1,size:"medium",onClick:i},"Run accessibility scan"),r.createElement("p",null,"Update ",r.createElement("code",null,"globals.a11y.manual")," to disable manual mode.")),n==="running"&&r.createElement("div",null,r.createElement(Ft,{size:12}),r.createElement("strong",null,"Accessibility scan in progress"),r.createElement("p",null,"Please wait while the accessibility scan is running...")),n==="error"&&r.createElement(r.Fragment,null,r.createElement("div",null,r.createElement("strong",null,"The accessibility scan encountered an error"),r.createElement("p",null,typeof l=="string"?l:l instanceof Error?l.toString():JSON.stringify(l,null,2))),r.createElement(M,{ariaLabel:!1,size:"medium",onClick:i},"Rerun accessibility scan")),n==="component-test-error"&&r.createElement(r.Fragment,null,r.createElement("div",null,r.createElement("strong",null,"This story's component tests failed"),r.createElement("p",null,"Automated accessibility tests will not run until this is resolved. You can still test manually.")),r.createElement(M,{ariaLabel:!1,size:"medium",onClick:i},"Run accessibility scan"))))},so=e=>d("svg",{...e},d("defs",null,d("filter",{id:"protanopia"},d("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"})),d("filter",{id:"protanomaly"},d("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"})),d("filter",{id:"deuteranopia"},d("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"})),d("filter",{id:"deuteranomaly"},d("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"})),d("filter",{id:"tritanopia"},d("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"})),d("filter",{id:"tritanomaly"},d("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"})),d("filter",{id:"achromatopsia"},d("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"})))),co="storybook-preview-iframe",uo=[{name:"blurred vision",percentage:22.9},{name:"deuteranomaly",percentage:2.7},{name:"deuteranopia",percentage:.56},{name:"protanomaly",percentage:.66},{name:"protanopia",percentage:.59},{name:"tritanomaly",percentage:.01},{name:"tritanopia",percentage:.016},{name:"achromatopsia",percentage:1e-4},{name:"grayscale"}],ca=e=>e?e==="blurred vision"?"blur(2px)":e==="grayscale"?"grayscale(100%)":`url('#${e}')`:"none",mo=I.div({"&, & svg":{position:"absolute",width:0,height:0}}),po=I.span({background:"linear-gradient(to right, #F44336, #FF9800, #FFEB3B, #8BC34A, #2196F3, #9C27B0)",borderRadius:"1rem",display:"block",height:"1rem",width:"1rem"},({$filter:e})=>({filter:ca(e)}),({theme:e})=>({boxShadow:`${e.appBorderColor} 0 0 0 1px inset`})),fo=()=>{let[e,t]=L(null),a=uo.map(({name:n,percentage:i})=>{let l=i!==void 0?`${i}% of users`:void 0;return{title:n,description:l,icon:r.createElement(po,{$filter:n}),value:n}});return r.createElement(r.Fragment,null,e&&r.createElement($t,{styles:{[`#${co}`]:{filter:ca(e.name)}}}),r.createElement(Ne,{resetLabel:"Reset color filter",onReset:()=>t(null),icon:r.createElement(bt,null),ariaLabel:"Vision simulator",defaultOptions:e?.name,options:a,onSelect:n=>t(()=>({name:n}))}),r.createElement(mo,null,r.createElement(so,null)))},yo=()=>{let e=ie().getSelectedPanel(),[{results:t}]=Ee(N,{ui:{highlighted:!1,tab:H.VIOLATION},results:void 0,error:void 0,status:"initial"}),a=t?.violations?.length??0,n=t?.incomplete?.length??0,i=a+n,l=i===0?null:r.createElement(z,{compact:!0,status:e===Se?"active":"neutral"},i);return r.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},r.createElement("span",null,"Accessibility"),l)};ge.register(N,e=>{ge.add(Se,{title:"",type:Le.TOOL,match:({viewMode:t,tabId:a})=>
4t==="story"&&!a,render:()=>r.createElement(fo,null)}),ge.add(Se,{title:yo,type:Le.PANEL,render:({active:t=!0})=>r.createElement(rr,null,t?r.createElement(io,null):null),paramKey:nt})});})();
5}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }

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