accessibility-checker-engine
Version:
An automated accessibility checking engine for use by other tools
2 lines • 596 kB
JavaScript
/*! For license information please see ace.js.LICENSE.txt */
var ace;(()=>{"use strict";var e={4:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.table_caption_empty=void 0;var a=i(461),l=i(461),n=i(7139);t.table_caption_empty={id:"table_caption_empty",context:"dom:caption",refactor:{Valerie_Caption_HasContent:{Pass_0:"Pass_0",Fail_1:"Fail_1"}},help:{"en-US":{Pass_0:"table_caption_empty.html",Fail_1:"table_caption_empty.html",group:"table_caption_empty.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Fail_1:"The <table> element has an empty <caption> element",group:"A <caption> element for a <table> element must contain descriptive text"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.3.1"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_ONE}],act:[],run:function(e,t,i){var l=e.dom.node;return n.CommonUtil.hasInnerContentHidden(l)?(0,a.RulePass)("Pass_0"):(0,a.RuleFail)("Fail_1")}}},18:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.table_structure_misuse=void 0;var a=i(461),l=i(461),n=i(7011),r=i(7139),o=i(3946),s=i(9196);t.table_structure_misuse={id:"table_structure_misuse",context:"dom:table",refactor:{WCAG20_Table_Structure:{Pass_0:"Pass_0",Fail_1:"Fail_1"}},help:{"en-US":{Pass_0:"table_structure_misuse.html",Fail_1:"table_structure_misuse.html",group:"table_structure_misuse.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Fail_1:'The <{0}> element with "presentation" role or "none" role has structural element(s) and/or attribute(s) \'{1}\'',group:'Table elements with \'role="presentation" or \'role="none" should not have structural elements or attributes'}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.3.1"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_TWO}],act:[],run:function(e,t,i){var l=e.dom.node;if(o.VisUtil.isNodeHiddenFromAT(l))return null;if(s.TableUtil.isDataTable(l))return null;if(n.AriaUtil.isNodeInGrid(l))return null;var u=[];r.CommonUtil.attributeNonEmpty(l,"summary")&&u.push(l);for(var d=l.getElementsByTagName("caption"),c=0;c<d.length;++c)if(r.CommonUtil.getAncestor(d[c],"table")==l){if(r.CommonUtil.shouldNodeBeSkippedHidden(d[c]))continue;u.push(d[c]);break}var m=l.getElementsByTagName("th");for(c=0;c<m.length;++c)if(r.CommonUtil.getAncestor(m[c],"table")==l){if(r.CommonUtil.shouldNodeBeSkippedHidden(m[c]))continue;u.push(m[c]);break}var p=l.getElementsByTagName("td");for(c=0;c<p.length;++c)if((p[c].hasAttribute("scope")||p[c].hasAttribute("headers"))&&r.CommonUtil.getAncestor(p[c],"table")==l){if(r.CommonUtil.shouldNodeBeSkippedHidden(p[c]))continue;u.push(p[c]);break}var h=l.nodeName.toLowerCase(),_=new Array,b={};for(c=0;c<u.length;c++){var g=u[c].nodeName.toLowerCase();b.hasOwnProperty(g)||("table"!=g||b.hasOwnProperty.summary?(b[g]=!0,_.push(g)):(b.summary=!0,_.push("summary")))}var f=_.join(", ");return 0==u.length?(0,a.RulePass)("Pass_0"):(0,a.RuleFail)("Fail_1",[h,f])}}},85:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aria_child_tabbable=void 0;var a=i(461),l=i(461),n=i(7011),r=i(7139),o=i(9910),s=i(3946);t.aria_child_tabbable={id:"aria_child_tabbable",context:"dom:*[role]",dependencies:["aria_role_allowed"],refactor:{Rpt_Aria_MissingFocusableChild:{pass:"pass",fail_missing_child:"fail_missing_child"}},help:{"en-US":{pass:"aria_child_tabbable.html",fail_missing_child:"aria_child_tabbable.html",group:"aria_child_tabbable.html"}},messages:{"en-US":{pass:"Rule Passed",fail_missing_child:'None of the descendent elements with "{1}" role is tabbable',group:"UI component must have at least one tabbable descendant for keyboard access"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["2.1.1"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_ONE}],act:[],run:function(e,t,i){var l=e.dom.node;if(!(s.VisUtil.isNodeHiddenFromAT(l)||r.CommonUtil.isNodeDisabled(l)||n.AriaUtil.containsPresentationalChildrenOnly(l)||n.AriaUtil.shouldBePresentationalChild(l))){if(n.AriaUtil.hasRole(l,{list:!0,row:!0,rowgroup:!0,table:!0,grid:!0}))return null;if(l.hasAttribute("class")&&"mbl"==l.getAttribute("class").substring(0,3))return null;if("datalist"===l.nodeName.toLowerCase())return null;if(n.AriaUtil.isNavigationOwnedOrControlled(l))return null;var u=n.AriaUtil.getResolvedRole(l),d=!0,c=l.ownerDocument,m=r.CommonUtil.hasAttribute,p=new Array,h="",_=!1;if(o.ARIADefinitions.containers.includes(u)&&"true"!=(m(l,"aria-disabled")?l.getAttribute("aria-disabled"):"")&&!m(l,"aria-activedescendant")&&!r.CommonUtil.isTabbable(l)){var b=o.ARIADefinitions.designPatterns[u].reqChildren;if(b){_=!0,d=!1;for(var g="descendant::*[",f=0;f<b.length;f++)g+="@role='"+b[f]+"' or ";g=g.substring(0,g.length-4)+"]";for(var v=c.evaluate(g,l,r.CommonUtil.defaultNSResolver,0,null),A=v.iterateNext();A&&!d;)if(r.CommonUtil.shouldNodeBeSkippedHidden(A))A=v.iterateNext();else{if(!(d=r.CommonUtil.isTabbable(A)))for(var y=c.evaluate("descendant::*",A,r.CommonUtil.defaultNSResolver,0,null),w=y.iterateNext();w&&!d;)r.CommonUtil.shouldNodeBeSkippedHidden(w)||(d=r.CommonUtil.isTabbable(A)),w=y.iterateNext();d||(p=A.getAttribute("role").trim().split(" "),h=A.nodeName.toLowerCase()),A=v.iterateNext()}}}var C=new Array,k=new Array;return h.length>0&&p.length>0?(C.push(h),k.push(p.join(", "))):d=!0,_?d?(0,a.RulePass)("pass"):(0,a.RuleFail)("fail_missing_child",[C.toString(),k.toString()]):null}}}},167:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ClipPathUtil=void 0;var a=i(4566),l=i(4919),n=function(){function e(){}return e.isNodeVisuallyHiddenByClipPath=function(t){if(!t||1!==t.nodeType)return!1;var i=t,n=a.CacheUtil.getCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",void 0);if(void 0!==n)return n;var r=l.CSSUtil.getComputedStyle(i),o=parseInt(r.width),s=parseInt(r.height),u=r["clip-path"];if(!u||"none"===u.trim()||""===u.trim())return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;var d=(u=u.trim().replace(/\s+/g," ").toLowerCase()).indexOf("inset(");if(-1!==d){var c=u.indexOf("round"),m=u.substring(u.indexOf("(")+1,u.indexOf(")"));if(-1!==c&&(m=u.substring(u.indexOf("(")+1,c)),1===(f=m.trim().split(" ")).length){var p=e.isClippedByInset(i,f[0],f[0],f[0],f[0]);return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",p),p}if(2===f.length)return p=e.isClippedByInset(i,f[0],f[1],f[0],f[1]),a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",p),p;if(3===f.length)return p=e.isClippedByInset(i,f[0],f[1],f[1],f[2]),a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",p),p;if(4===f.length)return p=e.isClippedByInset(i,f[0],f[1],f[2],f[3]),a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",p),p}if(-1!==(d=u.indexOf("rect("))){c=u.indexOf("round"),m=u.substring(u.indexOf("(")+1,u.indexOf(")")),-1!==c&&(m=u.substring(u.indexOf("(")+1,c)),"auto"===(f=m.trim().split(" "))[0]&&(f[0]="0px"),"auto"===f[3]&&(f[3]="0px"),"auto"===f[1]&&(f[1]="100%"),"auto"===f[2]&&(f[2]="100%"),f[2]=Math.max(f[0],f[2]),f[1]=Math.max(f[1],f[3]);var h=parseInt(f[0]);if(isNaN(h))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[0].endsWith("%"))h=h*s/100;else{if(!(N=l.CSSUtil.getValueUnitPair(h)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;h=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}if(h>=s)return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;var _=parseInt(f[3]);if(isNaN(_))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[3].endsWith("%"))_=_*o/100;else{if(!(N=l.CSSUtil.getValueUnitPair(_)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;_=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}if(_>=o)return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;var b=parseInt(f[1]);if(isNaN(b))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[1].endsWith("%"))b=b*o/100;else{if(!(N=l.CSSUtil.getValueUnitPair(b)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;b=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}var g=parseInt(f[2]);if(isNaN(g))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[2].endsWith("%"))g=g*s/100;else{if(!(N=l.CSSUtil.getValueUnitPair(g)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;g=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}return g-h<=e.THRESHOLD||b-_<=e.THRESHOLD?(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0):(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1)}if(-1!==(d=u.indexOf("xywh("))){c=u.indexOf("round"),m=u.substring(u.indexOf("(")+1,u.indexOf(")")),-1!==c&&(m=u.substring(u.indexOf("(")+1,c));var f=m.trim().split(" "),v=parseInt(f[0]);if(isNaN(v))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[0].endsWith("%"))v=v*o/100;else{if(!(N=l.CSSUtil.getValueUnitPair(top)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;v=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}if(v>=o)return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;var A=parseInt(f[1]);if(isNaN(A))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[1].endsWith("%"))A=A*s/100;else{if(!(N=l.CSSUtil.getValueUnitPair(A)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;scrollY=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}if(A>=s)return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;var y=parseInt(f[2]);if(isNaN(y))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[2].endsWith("%"))y=y*o/100;else{if(!(N=l.CSSUtil.getValueUnitPair(y)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;y=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}if(y<=e.THRESHOLD)return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0;var w=parseInt(f[3]);if(isNaN(w))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[3].endsWith("%"))w=w*s/100;else{if(!(N=l.CSSUtil.getValueUnitPair(w)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;w=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}return w<=e.THRESHOLD?(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0):(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1)}if(-1!==(d=u.indexOf("circle("))){f=(m=u.substring(u.indexOf("(")+1,u.indexOf(")"))).trim().split(" ");var C=parseInt(f[0]);if(isNaN(C))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;if(f[0].endsWith("%"))C=C*(o>s?s:o)/100;else{if(!(N=l.CSSUtil.getValueUnitPair(C)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;C=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}return C<=e.THRESHOLD?(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0):(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1)}if(-1!==(d=u.indexOf("ellipse("))){if((f=(m=u.substring(u.indexOf("(")+1,u.indexOf(")"))).trim().split(" ")).length>3&&"closest-side"===f[0]&&"farthest-side"===f[1]&&"at"===f[2]){if(C=parseInt(f[3]),4===f.length){if(f[3].endsWith("%"))C=C*(E=o>s?s:o)/100;else{if(!(N=l.CSSUtil.getValueUnitPair(C)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;C=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}return C<=e.THRESHOLD?(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0):(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1)}if(5===f.length)for(var k=3;k<f.length;k++){var x=parseInt(f[k]);if(f[k].endsWith("%"))x=x*(E=3===k?o:s)/100;else{if(!(N=l.CSSUtil.getValueUnitPair(x)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;x=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}return x<=e.THRESHOLD?(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0):(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1)}return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1}var P=u.indexOf("at");if(m=u.substring(u.indexOf("(")+1,u.indexOf(")")),-1!==P&&(m=u.substring(u.indexOf("(")+1,P)),2!==(f=m.trim().split(" ")).length)return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;for(k=0;k<f.length;k++){if(C=parseInt(f[k]),f[k].endsWith("%"))C=C*(E=0===k?o:s)/100;else{if(!(N=l.CSSUtil.getValueUnitPair(C)))return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;C=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}return C<=e.THRESHOLD?(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0):(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1)}return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1}if(-1!==(d=u.indexOf("polygon("))){"nonzero"!==(f=(m=u.substring(u.indexOf("(")+1,u.indexOf(")"))).trim().split(","))[0]&&"evenodd"!==f[0]||f.shift(),A=0,v=0;var R=!1,U=!1;for(k=0;k<f.length;k++){var I=f[k].trim().split(" ");if(2!=I.length)return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1;for(var T=[0,0],L=0;L<2;L++){var E=parseInt(I[L]);if(isNaN(E))return!1;if(I[L].endsWith("%"))T[L]=0===L?E*o/100:E*s/100;else{var N;if(!(N=l.CSSUtil.getValueUnitPair(I[L])))return!1;T[L]=l.CSSUtil.convertValue2Pixels(N[0],N[1],i)}}0===k&&(v=T[0],A=T[1]),Math.abs(T[0]-v)>=e.THRESHOLD&&(R=!0),Math.abs(T[1]-A)>=e.THRESHOLD&&(U=!0)}return R&&U?(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1):(a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!0),!0)}return a.CacheUtil.setCache(i,"PT_NODE_VISUALLY_HIDDEN_CLIPPATH",!1),!1},e.isClippedByInset=function(t,i,a,n,r){void 0===a&&(a="0px"),void 0===n&&(n="0px"),void 0===r&&(r="0px");var o=l.CSSUtil.getComputedStyle(t),s=parseInt(o.width),u=parseInt(o.height),d=parseInt(i);if(isNaN(d))return!1;if(i.endsWith("%"))d=d*u/100;else{if(!(h=l.CSSUtil.getValueUnitPair(i)))return!1;d=l.CSSUtil.convertValue2Pixels(h[0],h[1],t)}if(d>u)return!1;var c=parseInt(a);if(isNaN(c))return!1;if(a.endsWith("%"))c=c*s/100;else{if(!(h=l.CSSUtil.getValueUnitPair(a)))return!1;c=l.CSSUtil.convertValue2Pixels(h[0],h[1],t)}if(c>s)return!1;var m=parseInt(n);if(isNaN(m))return!1;if(n.endsWith("%"))m=m*u/100;else{if(!(h=l.CSSUtil.getValueUnitPair(n)))return!1;m=l.CSSUtil.convertValue2Pixels(h[0],h[1],t)}if(m>u)return!1;var p=parseInt(r);if(isNaN(p))return!1;if(r.endsWith("%"))p=p*s/100;else{var h;if(!(h=l.CSSUtil.getValueUnitPair(r)))return!1;p=l.CSSUtil.convertValue2Pixels(h[0],h[1],t)}return!(p>s)&&(u-(d+m)<=e.THRESHOLD||s-(c+p)<=e.THRESHOLD)},e.THRESHOLD=5,e}();t.ClipPathUtil=n},183:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aria_attribute_redundant=void 0;var a=i(461),l=i(461),n=i(7011);t.aria_attribute_redundant={id:"aria_attribute_redundant",context:"dom:*[aria-required], dom:*[aria-autocomplete], dom:*[aria-readonly], dom:*[aria-disabled], dom:*[aria-placeholder], dom:*[aria-checked], dom:*[aria-hidden], dom:*[aria-valuemax], dom:*[aria-valuemin], dom:*[aria-colspan], dom:*[aria-rowspan]",help:{"en-US":{pass:"aria_attribute_redundant.html",fail_redundant:"aria_attribute_redundant.html",group:"aria_attribute_redundant.html"}},messages:{"en-US":{pass:"The ARIA attribute is not redundant with a corresponding HTML attribute",fail_redundant:'The ARIA attribute "{0}" is redundant with the HTML attribute "{1}"',group:"An ARIA attribute should not be redundant with a corresponding HTML attribute"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["4.1.2"],level:l.eRulePolicy.RECOMMENDATION,toolkitLevel:l.eToolkitLevel.LEVEL_ONE}],act:[],run:function(e,t,i){var l=e.dom.node,r=n.AriaUtil.getInvalidAriaAttributes(l);if(r&&r.length>0)return null;var o=n.AriaUtil.getConflictAriaAndHtmlAttributes(l);if(o&&o.length>0)return null;var s=l.attributes,u=[],d=[];if(s)for(var c=0;c<s.length;c++){var m=s[c].name.trim().toLowerCase(),p=l.getAttribute(m);""===p&&(p=null),"aria-"===m.substring(0,5)?u.push({name:m,value:p}):d.push({name:m,value:p})}var h=[],_=function(e){var t=n.AriaUtil.getConflictOrOverlappingHtmlAttribute(u[e],d,"overlapping");if(null===t)return"continue";t.forEach(function(t){"Pass"===t.result?h.push((0,a.RulePass)("pass")):"Failed"===t.result&&h.push((0,a.RuleFail)("fail_redundant",[u[e].name,t.attr]))})};for(c=0;c<u.length;c++)_(c);return h.length>0?h:null}}},275:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.img_alt_background=void 0;var a=i(461),l=i(461),n=i(3946);t.img_alt_background={id:"img_alt_background",context:"dom:*",refactor:{HAAC_BackgroundImg_HasTextOrTitle:{Pass_0:"Pass_0",Manual_1:"Manual_1"}},help:{"en-US":{Pass_0:"img_alt_background.html",Manual_1:"img_alt_background.html",group:"img_alt_background.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Manual_1:"Verify important background image information has a text alternative in system high contrast mode",group:"Background images that convey important information must have a text alternative that describes the image"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.1.1"],level:l.eRulePolicy.RECOMMENDATION,toolkitLevel:l.eToolkitLevel.LEVEL_TWO}],act:[],run:function(e,t,i){var l=e.dom.node;if(n.VisUtil.isNodeHiddenFromAT(l))return null;var r=l.ownerDocument.defaultView.getComputedStyle(l);if(null==r)return(0,a.RulePass)("Pass_0");var o=r.backgroundImage,s=!0;if(null!=o&&""!=o&&"none"!=o&&"inherit"!=o)if(null!=l.innerHTML&&0!=l.innerHTML.trim().length)s=!1;else{var u=l.getAttribute("title");null!=u&&0!=u.length&&(s=!1)}return s?(0,a.RulePass)("Pass_0"):s?void 0:(0,a.RuleManual)("Manual_1")}}},361:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.media_keyboard_controllable=void 0;var a=i(461),l=i(461),n=i(3946);t.media_keyboard_controllable={id:"media_keyboard_controllable",context:"dom:audio, dom:video",refactor:{HAAC_Audio_Video_Trigger:{Pass_0:"Pass_0",Manual_1:"Manual_1"}},help:{"en-US":{Pass_0:"media_keyboard_controllable.html",Manual_1:"media_keyboard_controllable.html",group:"media_keyboard_controllable.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Manual_1:"Verify media using <audio> and/or <video> elements have keyboard accessible controls",group:"Media using <audio> and/or <video> elements must have keyboard accessible controls"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["2.1.1"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_TWO}],act:[],run:function(e,t,i){var l=e.dom.node;if(n.VisUtil.isNodeHiddenFromAT(l))return null;var r=!0,o=l.nodeName.toLowerCase();return"audio"!=o&&"video"!==o||(r=!1),r?(0,a.RulePass)("Pass_0"):(0,a.RuleManual)("Manual_1")}}},375:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.select_options_grouped=void 0;var a=i(461),l=i(461),n=i(7139);t.select_options_grouped={id:"select_options_grouped",context:"dom:select",refactor:{WCAG20_Select_HasOptGroup:{Pass_0:"Pass_0",Potential_1:"Potential_1"}},help:{"en-US":{Pass_0:"select_options_grouped.html",Potential_1:"select_options_grouped.html",group:"select_options_grouped.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Potential_1:"Group of related options may need <optgroup>",group:"Groups of related options within a selection list should be grouped with <optgroup>"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.3.1"],level:l.eRulePolicy.RECOMMENDATION,toolkitLevel:l.eToolkitLevel.LEVEL_THREE}],act:[],run:function(e,t,i){var l=e.dom.node,r=n.CommonUtil.getChildByTagHidden(l,"optgroup",!1,!0).length>0||n.CommonUtil.getChildByTagHidden(l,"option",!1,!0).length<=10;return r?(0,a.RulePass)("Pass_0"):r?void 0:(0,a.RulePotential)("Potential_1")}}},390:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aria_hidden_nontabbable=void 0;var a=i(7139),l=i(461),n=i(461);t.aria_hidden_nontabbable={id:"aria_hidden_nontabbable",context:"dom:*[aria-hidden=true], dom:*[aria-hidden=true] dom:*",refactor:{aria_hidden_focus_misuse:{Pass_0:"Pass_0",Fail_1:"Fail_1"}},help:{"en-US":{group:"aria_hidden_nontabbable.html",Pass_0:"aria_hidden_nontabbable.html",Fail_1:"aria_hidden_nontabbable.html"}},messages:{"en-US":{group:"A hidden element should not contain any tabbable elements",Pass_0:"Rule Passed",Fail_1:"Element \"{0}\" should not be focusable within the subtree of an element with an 'aria-hidden' attribute with value 'true'"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_0","WCAG_2_1","WCAG_2_2"],num:["1.3.1","4.1.2"],level:n.eRulePolicy.VIOLATION,toolkitLevel:n.eToolkitLevel.LEVEL_TWO}],act:"6cfa84",run:function(e,t,i){var n=e.dom.node,r=n.nodeName.toLowerCase();return a.CommonUtil.isTabbable(n)?(0,l.RuleFail)("Fail_1",[r]):(0,l.RulePass)("Pass_0")}}},408:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.widget_tabbable_single=void 0;var a=i(461),l=i(461),n=i(3864),r=i(7011),o=i(7139),s=i(9955),u=i(4566),d=i(3946);t.widget_tabbable_single={id:"widget_tabbable_single",context:"aria:button,aria:link,aria:menuitem,aria:spinbutton,aria:tablist,aria:combobox,aria:listbox,aria:menu,aria:radiogroup,aria:tree,aria:checkbox,aria:option,aria:radio,aria:slider,aria:spinbutton,aria:textbox,aria:columnheader,aria:rowheader,aria:slider,aria:tab",refactor:{IBMA_Focus_MultiTab:{pass:"pass",potential_multiple_tabbable:"potential_multiple_tabbable"}},help:{"en-US":{pass:"widget_tabbable_single.html",potential_multiple_tabbable:"widget_tabbable_single.html",group:"widget_tabbable_single.html"}},messages:{"en-US":{pass:"Components with a widget role should have no more than one tabbable element",potential_multiple_tabbable:'Component with "{0}" role has more than one tabbable element',group:"Components with a widget role must have no more than one tabbable element"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["2.1.1","2.4.3"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_ONE}],act:[],run:function(e,t,i){var l=e.dom.node;if(!d.VisUtil.isNodeHiddenFromAT(l)&&!o.CommonUtil.isNodeDisabled(l)&&!r.AriaUtil.shouldBePresentationalChild(l)){var c=s.ARIAMapper.nodeToRole(l),m=0;if(o.CommonUtil.isTabbable(l)&&++m,m<2&&!r.AriaUtil.containsPresentationalChildrenOnly(l)&&l.firstChild)for(var p=new n.DOMWalker(l);m<2&&p.nextNode()&&p.node!=l;)1==p.node.nodeType&&!p.bEndTag&&o.CommonUtil.isTabbable(p.node)&&++m;var h=m<2;return h||u.CacheUtil.setCache(l,"widget_tabbable_single","potential_multiple_tabbable"),h?(0,a.RulePass)("pass"):(0,a.RulePotential)("potential_multiple_tabbable",[c])}}}},429:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.embed_alt_exists=void 0;var a=i(461),l=i(461),n=i(7139),r=i(3946);t.embed_alt_exists={id:"embed_alt_exists",context:"dom:embed",refactor:{RPT_Embed_HasAlt:{Pass_0:"Pass_0",Potential_1:"Potential_1"}},help:{"en-US":{Pass_0:"embed_alt_exists.html",Potential_1:"embed_alt_exists.html",group:"embed_alt_exists.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Potential_1:"Verify that the <embed> element has alternative content",group:"Provide alternative content for <embed> elements"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.1.1"],level:l.eRulePolicy.RECOMMENDATION,toolkitLevel:l.eToolkitLevel.LEVEL_FOUR}],act:[],run:function(e,t,i){var l=e.dom.node;return r.VisUtil.isNodeHiddenFromAT(l)?null:n.CommonUtil.attributeNonEmpty(l,"alt")?(0,a.RulePass)("Pass_0"):(0,a.RulePotential)("Potential_1")}}},435:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.object_text_exists=void 0;var a=i(461),l=i(461),n=i(3946),r=i(1950);t.object_text_exists={id:"object_text_exists",context:"dom:object",refactor:{WCAG20_Object_HasText:{pass:"pass",fail_no_text_alternative:"fail_no_text_alternative"}},help:{"en-US":{group:"object_text_exists.html",pass:"object_text_exists.html",fail_no_text_alternative:"object_text_exists.html"}},messages:{"en-US":{group:"<object> element must have a text alternative for the content rendered by the object",pass:"<object> element has a text alternative",fail_no_text_alternative:"An <object> element does not have a text alternative"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.1.1"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_ONE}],act:"8fc3b6",run:function(e,t,i){var l=e.dom.node;if(n.VisUtil.isNodeHiddenFromAT(l))return null;if(l.hasAttribute("type")&&-1!==l.getAttribute("type").indexOf("text"))return null;if(l.getAttribute("role"))return null;var o=l.getAttribute("data"),s=o&&"string"==typeof o?o.substring(o.lastIndexOf(".")):"";if(".html"===s||".htm"===s)return null;var u=r.AccNameUtil.computeAccessibleName(l);return u&&u.name&&u.name.trim().length>0?(0,a.RulePass)("pass"):(0,a.RuleFail)("fail_no_text_alternative")}}},461:(e,t,i)=>{var a,l;Object.defineProperty(t,"__esModule",{value:!0}),t.eRulesetType=t.eRuleCategory=t.eToolkitLevel=t.RuleManual=t.RulePotential=t.RuleFail=t.RuleRender=t.RulePass=t.eRulePolicy=t.eRuleConfidence=void 0,function(e){e.PASS="PASS",e.FAIL="FAIL",e.POTENTIAL="POTENTIAL",e.MANUAL="MANUAL"}(a=t.eRuleConfidence||(t.eRuleConfidence={})),function(e){e.VIOLATION="VIOLATION",e.RECOMMENDATION="RECOMMENDATION",e.INFORMATION="INFORMATION"}(l=t.eRulePolicy||(t.eRulePolicy={})),t.RulePass=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.PASS],reasonId:e,messageArgs:t||[],apiArgs:i||[]}},t.RuleRender=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.PASS],reasonId:0,messageArgs:t||[],apiArgs:i||[]}},t.RuleFail=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.FAIL],reasonId:e,messageArgs:t||[],apiArgs:i||[]}},t.RulePotential=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.POTENTIAL],reasonId:e,messageArgs:t||[],apiArgs:i||[]}},t.RuleManual=function(e,t,i){if(null==e)throw new Error("Reason ID must be defined");return{value:[l.INFORMATION,a.MANUAL],reasonId:e,messageArgs:t||[],apiArgs:i||[]}};var n=i(8601);Object.defineProperty(t,"eToolkitLevel",{enumerable:!0,get:function(){return n.eToolkitLevel}});var r=i(8601);Object.defineProperty(t,"eRuleCategory",{enumerable:!0,get:function(){return r.eGuidelineCategory}});var o=i(8601);Object.defineProperty(t,"eRulesetType",{enumerable:!0,get:function(){return o.eGuidelineType}})},507:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.element_accesskey_unique=void 0;var a=i(461),l=i(461),n=i(4566);t.element_accesskey_unique={id:"element_accesskey_unique",context:"dom:*[accesskey]",refactor:{WCAG20_Elem_UniqueAccessKey:{Pass_0:"Pass_0",Fail_1:"Fail_1"}},help:{"en-US":{Pass_0:"element_accesskey_unique.html",Fail_1:"element_accesskey_unique.html",group:"element_accesskey_unique.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Fail_1:"'accesskey' attribute value on the element is not unique",group:"'accesskey' attribute values on each element must be unique for the page"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next"],num:["HTML"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_THREE}],act:[],run:function(e,t,i){var l=e.dom.node,r=n.CacheUtil.getCache(l.ownerDocument,"element_accesskey_unique",{}),o=l.getAttribute("accesskey"),s=!(o in r);return r[o]=!0,s?(0,a.RulePass)("Pass_0"):(0,a.RuleFail)("Fail_1")}}},510:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.frame_title_exists=void 0;var a=i(461),l=i(461),n=i(1950),r=i(3946);t.frame_title_exists={id:"frame_title_exists",context:"dom:frame, dom:iframe",refactor:{WCAG20_Frame_HasTitle:{Pass_0:"Pass_0",Fail_1:"Fail_1"}},help:{"en-US":{group:"frame_title_exists.html",Pass_0:"frame_title_exists.html",Fail_1:"frame_title_exists.html"}},messages:{"en-US":{group:"Inline frames must have a unique, non-empty 'title' attribute",Pass_0:"Rule Passed",Fail_1:"Inline frame does not have a 'title' attribute"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["4.1.2"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_THREE}],act:"cae760",run:function(e,t,i){var l=e.dom.node;if(r.VisUtil.isNodeHiddenFromAT(l))return null;if(l.getAttribute("role"))return null;var o=n.AccNameUtil.computeAccessibleName(l);return o&&o.name&&o.name.trim().length>0?(0,a.RulePass)("Pass_0"):(0,a.RuleFail)("Fail_1")}}},514:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aria_child_valid=void 0;var a=i(461),l=i(461),n=i(7011),r=i(7139),o=i(3946);t.aria_child_valid={id:"aria_child_valid",context:"dom:*",dependencies:["aria_role_valid","aria_descendant_valid"],help:{"en-US":{group:"aria_child_valid.html",Pass:"aria_child_valid.html",Fail_no_child:"aria_child_valid.html",Fail_invalid_child:"aria_child_valid.html"}},messages:{"en-US":{group:"An element with an ARIA role must own a required child",Pass:"An element with an ARIA role owns a required child",Fail_no_child:'The element with role "{0}" does not own any child element with any of the following role(s): "{1}"',Fail_invalid_child:'The element with role "{0}" owns the child element with the role "{1}" that is not one of the allowed role(s): "{2}"'}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.3.1"],level:l.eRulePolicy.RECOMMENDATION,toolkitLevel:l.eToolkitLevel.LEVEL_ONE}],act:["bc4a75"],run:function(e,t,i){var l=e.dom.node;if(!o.VisUtil.isNodeHiddenFromAT(l)&&!r.CommonUtil.isNodeDisabled(l)&&!n.AriaUtil.containsPresentationalChildrenOnly(l)){var s=n.AriaUtil.getRoles(l,!1);if(s&&0!==s.length||(s=n.AriaUtil.getImplicitRole(l)),!s||0===s.length)return null;var u=["none","presentation"];if(s.some(function(e){return u.includes(e)}))return null;if(s.includes("combobox"))return null;var d=n.AriaUtil.getRequiredChildRoles(l,!0);if(d.includes("group")){var c=d.indexOf("group");c>-1&&d.splice(c,1)}if(0==d.length)return null;var m=n.AriaUtil.getDirectATChildren(l);if(!m||0==m.length){var p=l.getAttribute("aria-busy");return p&&"true"===p?null:((v=new Array).push(s.join(", ")),v.push(d.join(", ")),(0,a.RuleFail)("Fail_no_child",v))}for(var h=new Array,_=0;_<m.length;_++){var b=n.AriaUtil.getRoles(m[_],!1);b&&0!=b.length||(b=n.AriaUtil.getImplicitRole(m[_])),b&&b.length>0&&(b.some(function(e){return d.includes(e)})||h.push(b.join(", ")))}if(h.length>0){for(var g=[],f=0;f<h.length;f++){var v;(v=new Array).push(s.join(", ")),v.push(h[f]),v.push(d.join(", ")),g.push((0,a.RuleFail)("Fail_invalid_child",v))}return g}return(0,a.RulePass)("Pass")}}}},590:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.img_alt_redundant=void 0;var a=i(461),l=i(461),n=i(3864),r=i(7139);t.img_alt_redundant={id:"img_alt_redundant",context:"dom:img[alt]",refactor:{WCAG20_Img_LinkTextNotRedundant:{Pass_0:"Pass_0",Fail_1:"Fail_1",Fail_2:"Fail_2",Fail_3:"Fail_3"}},help:{"en-US":{Pass_0:"img_alt_redundant.html",Fail_1:"img_alt_redundant.html",Fail_2:"img_alt_redundant.html",Fail_3:"img_alt_redundant.html",group:"img_alt_redundant.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Fail_1:"Link text is repeated in an image 'alt' value within the same link",Fail_2:"Link text of previous link is repeated in image 'alt' value of a link",Fail_3:"Image 'alt' value within a link is repeated in link text of the link after",group:"The text alternative for an image within a link should not repeat the link text or adjacent link text"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.1.1","2.4.4"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_TWO}],act:[],run:function(e,t,i){var l=e.dom.node,o=r.CommonUtil.getAncestor(l,"a");if(null==o)return null;var s=l.getAttribute("alt").trim().toLowerCase();if(0==s.length)return null;var u=o.innerText,d="";if(null!=u&&(d=u.trim().toLowerCase()),!(d.length>0)){for(var c=!0,m=new n.DOMWalker(o);c&&m.prevNode()&&!("#text"==(h=(p=m.node).nodeName.toLowerCase())&&p.nodeValue.length>0||"img"==h&&r.CommonUtil.attributeNonEmpty(p,"alt"));)"a"!==h||r.CommonUtil.shouldNodeBeSkippedHidden(p)||(c=(p.innerText||p.textContent||"").trim().toLowerCase()!=s);if(!c)return(0,a.RuleFail)("Fail_2");for(m=new n.DOMWalker(o,!0);c&&m.nextNode();){var p,h;if("#text"==(h=(p=m.node).nodeName.toLowerCase())&&p.nodeValue.length>0||"img"==h&&r.CommonUtil.attributeNonEmpty(p,"alt"))break;"a"!=h||r.CommonUtil.shouldNodeBeSkippedHidden(p)||(c=p.innerText.trim().toLowerCase()!=s)}return c?(0,a.RulePass)("Pass_0"):(0,a.RuleFail)("Fail_3")}return s==d?(0,a.RuleFail)("Fail_1"):void 0}}},591:function(e,t,i){var a=this&&this.__createBinding||(Object.create?function(e,t,i,a){void 0===a&&(a=i);var l=Object.getOwnPropertyDescriptor(t,i);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,a,l)}:function(e,t,i,a){void 0===a&&(a=i),e[a]=t[i]}),l=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||a(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),l(i(2297),t),l(i(4401),t),l(i(4546),t),l(i(9292),t),l(i(9605),t),l(i(3987),t),l(i(8631),t),l(i(8025),t),l(i(1198),t),l(i(8001),t),l(i(5778),t),l(i(8118),t),l(i(2242),t),l(i(3673),t),l(i(5080),t),l(i(183),t),l(i(6805),t),l(i(1886),t),l(i(4078),t),l(i(5750),t),l(i(85),t),l(i(514),t),l(i(5310),t),l(i(9083),t),l(i(6049),t),l(i(5099),t),l(i(2759),t),l(i(3141),t),l(i(5131),t),l(i(5167),t),l(i(8115),t),l(i(5733),t),l(i(5782),t),l(i(6731),t),l(i(390),t),l(i(3900),t),l(i(1218),t),l(i(6734),t),l(i(9973),t),l(i(5711),t),l(i(3384),t),l(i(2762),t),l(i(5757),t),l(i(5232),t),l(i(1891),t),l(i(6142),t),l(i(4863),t),l(i(1440),t),l(i(1968),t),l(i(1617),t),l(i(3475),t),l(i(3370),t),l(i(9272),t),l(i(7735),t),l(i(3923),t),l(i(7521),t),l(i(1852),t),l(i(799),t),l(i(4614),t),l(i(5952),t),l(i(5395),t),l(i(1992),t),l(i(7955),t),l(i(9531),t),l(i(891),t),l(i(7446),t),l(i(6137),t),l(i(6839),t),l(i(8135),t),l(i(507),t),l(i(3566),t),l(i(5173),t),l(i(6027),t),l(i(7515),t),l(i(1704),t),l(i(5053),t),l(i(4681),t),l(i(8050),t),l(i(2644),t),l(i(429),t),l(i(7860),t),l(i(4617),t),l(i(5460),t),l(i(3399),t),l(i(3498),t),l(i(9629),t),l(i(733),t),l(i(9797),t),l(i(7156),t),l(i(3062),t),l(i(3827),t),l(i(5498),t),l(i(510),t),l(i(7722),t),l(i(4597),t),l(i(2104),t),l(i(8260),t),l(i(8920),t),l(i(1237),t),l(i(4101),t),l(i(275),t),l(i(7601),t),l(i(7541),t),l(i(8274),t),l(i(590),t),l(i(8925),t),l(i(9234),t),l(i(8617),t),l(i(1939),t),l(i(7726),t),l(i(3142),t),l(i(1353),t),l(i(2631),t),l(i(8550),t),l(i(8853),t),l(i(3180),t),l(i(1382),t),l(i(953),t),l(i(2222),t),l(i(4678),t),l(i(7578),t),l(i(9964),t),l(i(6401),t),l(i(1174),t),l(i(9907),t),l(i(6032),t),l(i(5622),t),l(i(2240),t),l(i(4019),t),l(i(361),t),l(i(5960),t),l(i(5515),t),l(i(8752),t),l(i(8834),t),l(i(1025),t),l(i(9116),t),l(i(435),t),l(i(6640),t),l(i(2068),t),l(i(7322),t),l(i(5702),t),l(i(1961),t),l(i(3022),t),l(i(375),t),l(i(4658),t),l(i(4605),t),l(i(5294),t),l(i(3506),t),l(i(7475),t),l(i(8064),t),l(i(7942),t),l(i(2219),t),l(i(1473),t),l(i(1912),t),l(i(6539),t),l(i(4),t),l(i(5334),t),l(i(2173),t),l(i(8349),t),l(i(8142),t),l(i(3980),t),l(i(4701),t),l(i(18),t),l(i(9314),t),l(i(1667),t),l(i(9599),t),l(i(4672),t),l(i(4353),t),l(i(7147),t),l(i(1419),t),l(i(855),t),l(i(3420),t),l(i(408),t)},733:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.form_font_color=void 0;var a=i(461),l=i(461);t.form_font_color={id:"form_font_color",context:"dom:form",refactor:{RPT_Font_ColorInForm:{Pass_0:"Pass_0",Potential_1:"Potential_1"}},help:{"en-US":{Pass_0:"form_font_color.html",Potential_1:"form_font_color.html",group:"form_font_color.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Potential_1:"Check color is not used as the only visual means to convey which fields are required",group:"Combine color and descriptive markup to indicate required form fields"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.4.1"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_TWO}],act:[],run:function(e,t,i){var l=!0,n=e.dom.node.getElementsByTagName("font");if(null!=n)for(var r=0;r<n.length;++r)l=!n[r].hasAttribute("color");return l?(0,a.RulePass)("Pass_0"):l?void 0:(0,a.RulePotential)("Potential_1")}}},799:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.combobox_active_descendant=void 0;var a=i(461),l=i(461),n=i(7011),r=i(5279),o=i(3864),s=i(4566),u=i(3946);t.combobox_active_descendant={id:"combobox_active_descendant",context:"aria:combobox",dependencies:["combobox_popup_reference"],help:{"en-US":{Pass:"combobox_active_descendant.html",Fail_missing:"combobox_active_descendant.html",Fail_not_in_popup:"combobox_active_descendant.html",Fail_active_role_invalid:"combobox_active_descendant.html",Fail_active_not_selected:"combobox_active_descendant.html",group:"combobox_active_descendant.html"}},messages:{"en-US":{Pass:"'aria-activedescendant' is used appropriately for this combobox",Fail_missing:"The element referenced by 'aria-activedescendant' \"{0}\" does not exist",Fail_not_in_popup:"The element referenced by 'aria-activedescendant' \"{0}\" does not exist within the popup referenced by 'id' \"{1}\"",Fail_active_role_invalid:"The 'aria-activedescendant' \"{0}\" references an element with the roles \"{1}\", which does not have a valid ARIA role of 'option', 'gridcell', 'row', or 'treeitem'",Fail_active_not_selected:"The 'aria-activedescendant' \"{0}\" references an element that does not have 'aria-selected' set to true",group:"'aria-activedescendant' must be used to define focus within the combobox popup, except when using a dialog popup"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["4.1.2"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_ONE}],act:[],run:function(e,t,i){var l=e.dom.node,d=s.CacheUtil.getCache(l.ownerDocument,"combobox",{});if(!d)return null;var c=d[e.dom.rolePath];if(!c)return null;var m=c.popupElement,p=c.popupId;if(!m)return null;var h=l.getAttribute("aria-activedescendant");if(!h||0===h.trim().length)return null;var _=r.FragmentUtil.getById(l,h);if(!_)return(0,a.RuleFail)("Fail_missing",[h]);var b=!1;if(m)for(var g=new o.DOMWalker(m);!b&&g.nextNode()&&g.node!=m&&g.node!=m.nextSibling;)1===g.node.nodeType&&u.VisUtil.isNodeVisible(g.node)&&(b=g.elem().getAttribute("id")===h);var f=[];b||f.push((0,a.RulePass)("Fail_not_in_popup",[h,p]));var v=n.AriaUtil.getRoles(_,!0);return 0===["option","gridcell","row","treeitem"].filter(function(e){return v.includes(e)}).length&&f.push((0,a.RuleFail)("Fail_active_role_invalid",[h,v.join(",")])),"true"!==_.getAttribute("aria-selected")&&f.push((0,a.RuleFail)("Fail_active_not_selected",[h])),0===f.length?(0,a.RulePass)("Pass"):f}}},855:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.text_whitespace_valid=void 0;var a=i(461),l=i(461),n=i(7139);t.text_whitespace_valid={id:"text_whitespace_valid",context:"dom:*",help:{"en-US":{pass:"text_whitespace_valid.html",potential_text:"text_whitespace_valid.html",group:"text_whitespace_valid.html"}},messages:{"en-US":{pass:"Rule Passed",potential_text:"Space characters should not be used to create space between the letters of a word",group:"Space characters should not be used to control spacing within a word"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.3.2"],level:l.eRulePolicy.VIOLATION,toolkitLevel:l.eToolkitLevel.LEVEL_THREE}],act:[],run:function(e,t,i){var l=e.dom.node,r=n.CommonUtil.getAncestor(l,["body","script","code"]);if(null==r||"body"!=r.nodeName.toLowerCase())return null;for(var o=!0,s=l.firstChild;o&&s;){if("#text"==s.nodeName){var u=s.nodeValue;o=!/(^|\s)[a-zA-Z] [a-zA-Z] [a-zA-Z]($|\s)/.test(u)}s=s.nextSibling}return o?(0,a.RulePass)("pass"):(0,a.RulePotential)("potential_text")}}},891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.detector_tabbable=void 0;var a=i(7139),l=i(461),n=i(461);t.detector_tabbable={id:"detector_tabbable",context:"dom:*",help:{"en-US":{group:"",Pass_0:""}},messages:{"en-US":{group:"",Pass_0:""}},rulesets:[{id:["EXTENSIONS"],num:"1",level:n.eRulePolicy.INFORMATION,toolkitLevel:n.eToolkitLevel.LEVEL_FOUR}],act:[],run:function(e,t,i){var n=e.dom.node;if(!a.CommonUtil.isTabbable(n))return null;var r=i.aria[i.aria.length-1];return(0,l.RulePass)("Pass_0",[],[{name:r.attributes.name,role:r.role,tabindex:parseInt(n.getAttribute("tabindex")||"0")}])}}},920:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.PartInfo=t.AttrInfo=void 0;var i=function(){function e(e,t,i,a){if(this.inclusive=e,this.attr=t,this.eq=i,this.value=a,!e&&void 0!==i&&i.length>0)throw new Error("Cannot have !attr"+i+" context");if(e&&void 0!==i&&i.length>0&&(void 0===a||0===a.length))throw new Error("Cannot have equivalence check without a value")}return e.prototype.matches=function(e){var t=this,i=e.attributes;if(t.attr in i){if(t.inclusive){if(t.eq){var a=i[t.attr];if("="===t.eq)return t.value===a;if("!="===t.eq)return t.value!==a;if("~"===t.eq)return t.value===a;if("!~"===t.eq)return t.value!==a;throw new Error("Context equivalence operator not supported")}return!0}return!1}return!t.inclusive},e}();t.AttrInfo=i;var a=function(){function e(e,t,i,a,l){if(this.inclusive=e,this.namespace=t,this.role=i,this.attrs=a,this.connector=l,"*"===i&&!e)throw new Error("!* context not supported")}return e.prototype.matches=function(e,t){var i=this,a=i.namespace in e&&e[i.namespace][t]&&(e[i.namespace][t].role===i.role||"none"!==e[i.namespace][t].role&&"*"===i.role);if(!a||"*"!==i.role||"dom"!==i.namespace||"#text"!==e[i.namespace][t].role&&"/#text"!==e[i.namespace][t].role||(a=!1),i.inclusive&&!a)return!1;if(!i.inclusive&&!a)return!0;for(var l=i.attrs,n=e[i.namespace][t],r=!0,o=0,s=l;o<s.length;o++){var u=s[o];r=r&&u.matches(n)}return i.inclusive||(r=!r),r},e}();t.PartInfo=a;var l=function(){function e(e){this.contextInfo=[];for(var t=[],l=0,n=e.match(/!?[/a-zA-Z:0-9*\-_]+(\[[^\]]+\])*[ >+~]?/g);l<n.length;l++){for(var r=n[l].match(/(!?)([/a-zA-Z:0-9*\-_]+)((\[[^\]]+\])*)([ >+~]?)/),o=[],s=0,u=r[3].match(/\[([^\]]+)\]/g)||[];s<u.length;s++){var d=u[s].match(/\[(!?)([a-z:A-Z*\-_]+)(!?[=~])?([^\]]+)?\]/);o.push(new i("!"!==d[1],d[2].toLowerCase(),d[3],d[4]))}r[2]=r[2].toLowerCase();var c=r[2].split(":"),m="!"!==r[1],p=c.shift(),h=c.join(":"),_=new a(m,p,h,o,r[r.length-1]);t.push(_)}this.contextInfo=t}return e.cleanContext=function(e){return(e=(e=(e=(e=(e=e.toLowerCase().trim()).replace(/ +!/g," !")).replace(/ +([>+~,])/g,"$1")).replace(/([>+~,]) +/g,"$1")).replace(/ +/g," ")).trim()},e.parse=function(t){for(var i=e.splitMultiple(e.cleanContext(t)),a=[],l=0;l<i.length;++l){var n=new e(i[l]);a.push(n)}return a},e.splitMultiple=function(e){var t=[];if(e)if(-1===e.indexOf(","))t.push(e);else for(var i=0,a=e.split(",");i<a.length;i++){var l=a[i];t.push(l)}return t},e}();t.Context=l},953:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.input_placeholder_label_visible=void 0;var a=i(461);t.input_placeholder_label_visible={id:"input_placeholder_label_visible",context:"dom:input[placeholder], dom:textarea[placeholder]",refactor:{HAAC_Input_Placeholder:{Pass_0:"Pass_0",Potential_1:"Potential_1",Potential_2:"Potential_2"}},help:{"en-US":{Pass_0:"input_placeholder_label_visible.html",Potential_1:"input_placeholder_label_visible.html",Potential_2:"input_placeholder_label_visible.html",group:"input_placeholder_label_visible.html"}},messages:{"en-US":{Pass_0:"Rule Passed",Potential_1:"HTML5 placeholder is the only visible label",Potential_2:"Additional visible label referenced by 'aria-labelledby' is not valid",group:"HTML5 'placeholder' attribute must not be used as a visible label replacement"}},rulesets:[],act:[],run:function(e,t,i){var l=e.dom.node;if(l.hasAttribute("type")){var n=l.getAttribute("type").toLowerCase();if("hidden"==n||"button"==n)return(0,a.RulePass)("Pass_0")}if(l.hasAttribute("hidden")){var r=l.getAttribute("hidden");if(""==r||"hidden"==r.toLowerCase())return(0,a.RulePass)("Pass_0")}if(l.hasAttribute("aria-label"))return(0,a.RulePotential)("Potential_1");if(l.hasAttribute("aria-labelledby")&&l.hasAttribute("id")){var o=l.getAttribute("id").trim();return l.getAttribute("aria-labelledby").trim().split(/\s+/).includes(o)?(0,a.RulePotential)("Potential_2"):(0,a.RulePass)("Pass_0")}return(0,a.RulePass)("Pass_0")}}},1025:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.meta_viewport_zoomable=void 0;var a=i(461),l=i(461);t.meta_viewport_zoomable={id:"meta_viewport_zoomable",context:"dom:meta[name][content]",refactor:{meta_viewport_zoom:{Pass_0:"pass",Potential_1:"potential_zoomable"}},help:{"en-US":{group:"meta_viewport_zoomable.html",pass:"meta_viewport_zoomable.html",potential_zoomable:"meta_viewport_zoomable.html"}},messages:{"en-US":{group:"The 'meta[name=viewport]' should not prevent the browser zooming the content",pass:"The 'meta[name=viewport]' does not prevent the browser zooming the content",potential_zoomable:"Confirm the 'meta[name=viewport]' with \"{0}\" can be zoomed by user"}},rulesets:[{id:["IBM_Accessibility","IBM_Accessibility_next","WCAG_2_1","WCAG_2_0","WCAG_2_2"],num:["1.4.4"],level:l.eRulePolicy.RECOMMENDATION,toolkitLevel:l.eToolkitLevel.LEVEL_THREE}],act:[{b4f0c3:{pass:"pass",potential_zoomable:"fail"}}],run:function(e,t,i){var l=e.dom.node;if("viewport"!==l.getAttribute("name").toLowerCase())return null;var n=l.getAttribute("content").toLowerCase();if(!n||""===n.trim()||!n.includes("maximum-scale")&&!n.includes("user-scalable"))return null;for(var r=null,o=null,s="yes",u="2.0",d=0,c=n.split(",");d<c.length;d++){var m=c[d],p=m.trim().split("=");p.length<2||(m.includes("user-scalable")?(r=m,((s=p[1].trim()).startsWith("'")||s.startsWith('"'))&&(s=s.substring(1,s.length-1))):m.includes("maximum-scale")&&(o=m,((u=p[1].trim()).startsWith("'")||u.startsWith('"'))&&(u=u.substring(1,u.length-1).trim())))}var h=Number(s);isNaN(h)||(h>=1||h<=-1)&&(s="yes");var _;return h=Number(u),_=isNaN(h)?"yes"===u?1:.1:h<0?2:h,"yes"!==s?(0,a.RulePotential)("potential_zoomable",[r]):_<2?(0,a.RulePotential)("potential_zoomable",[o]):(0,a.RulePass)("pass")}}},1043:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LangUtil=void 0;var i=[["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","aaa","aab","aac","aad","aae","aaf","aag","aah","aai","aak","aal","aam","aan","aao","aap","aaq","aas","aat","aau","aav","aaw","aax","aaz","aba","abb","abc","abd","abe","abf","abg","abh","abi","abj","abl","abm","abn","abo","abp","abq","abr","abs","abt","abu","abv","abw","abx","aby","abz","aca","acb","acd","ace","acf","ach","aci","ack","acl","acm","acn","acp","acq","acr","acs","act","acu","acv","acw","acx","acy","acz","ada","adb","add","ade","adf","adg","adh","adi","adj","adl","adn","ado","adp","adq","adr","ads","adt","adu","adw","adx","ady","adz","aea","aeb","aec","aed","aee","aek","ael","aem","aen","aeq","aer","aes","aeu","aew","aey","aez","afa","afb","afd","afe","afg","afh","afi","afk","afn","afo","afp","afs","aft","afu","afz","aga","agb","agc","agd","age","agf","agg","agh","agi","agj","agk","agl","agm","agn","ago","agp","agq","agr","ags","agt","agu","agv","agw","agx","agy","agz","aha","ahb","ahg","ahh","ahi","ahk","ahl","ahm","ahn","aho","ahp","ahr","ahs","aht","aia","aib","aic","aid","aie","aif","aig","aih","aii","aij","aik","ail","aim","ain","aio","aip","aiq","air","ais","ait","aiw","aix","aiy","aja","ajg","aji","ajn","ajp","ajt","aju","ajw","ajz","akb","akc","akd","ake","akf","akg","akh","aki","akj","akk","akl","akm","ako","akp","akq","akr","aks","akt","aku","akv","akw","akx","aky","akz","ala","alc","ald","ale","alf","alg","alh","ali","alj","alk","all","alm","aln","alo","alp","alq","alr","als","alt","alu","alv","alw","alx","aly","alz","ama","amb","amc","ame","amf","amg","ami","amj","amk","aml","amm","amn","amo","amp","amq","amr","ams","amt","amu","amv","amw","amx","amy","amz","ana","anb","anc","and","ane","anf","ang","anh","ani","anj","ank","anl","anm","ann","ano","anp","anq","anr","ans","ant","anu","anv","anw","anx","any","anz","aoa","aob","aoc","aod","aoe","aof","aog","aoh","aoi","aoj","aok","aol","aom","aon","aor","aos","aot","aou","aox","aoz","apa","apb","apc","apd","ape","apf","apg","aph","api","apj","apk","apl","apm","apn","apo","app","apq","apr","aps","apt","apu","apv","apw","apx","apy","apz","aqa","aqc","aqd","aqg","aqk","aql","aqm","aqn","aqp","aqr","aqt","aqz","arb","arc","ard","are","arh","ari","arj","ark","arl","arn","aro","arp","arq","arr","ars","art","aru","arv","arw","arx","ary","arz","asa","asb","asc","asd","ase","asf","asg","ash","asi","asj","ask","asl","asn","aso","asp","asq","asr","ass","ast","asu","asv","asw","asx","asy","asz","ata","atb","atc","atd","ate","atg","ath","ati","atj","atk","atl","atm","atn","ato","atp","atq","atr","ats","att","atu","atv","atw","atx","aty","atz","aua","aub","auc","aud","aue","auf","aug","auh","aui","auj","auk","aul","aum","aun","auo","aup","auq","aur","aus","aut","auu","auw","aux","auy","auz","avb","avd","avi","avk","avl","avm","avn","avo","avs","avt","avu","avv","awa","awb","awc","awd","awe","awg","awh","awi","awk","awm","awn","awo","awr","aws","awt","awu","awv","aww","awx","awy","axb","axe","axg","axk","axl","axm","axx","aya","ayb","ayc","ayd","aye","ayg","ayh","ayi","ayk","ayl","ayn","ayo","ayp","ayq","ayr","ays","ayt","ayu","ayx","ayy","ayz","aza","azb","azc","azd","azg","azj","azm","azn","azo","azt","azz"],["ba","be","bg","bh","bi","bm","bn","bo","br","bs","baa","bab","bac","bad","bae","baf","bag","bah","bai","baj","bal","ban","bao","bap","bar","bas","bat","bau","bav","baw","bax","bay","baz","bba","bbb","bbc","bbd","bbe","bbf","bbg","bbh","bbi","bbj","bbk","bbl","bbm","bbn","bbo","bbp","bbq","bbr","bbs","bbt","bbu"