@qualweb/best-practices 0.6.11 → 0.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -32
- package/dist/bp.bundle.js +1 -1
- package/package.json +79 -83
- package/LICENSE +0 -15
package/README.md
CHANGED
|
@@ -1,33 +1,43 @@
|
|
|
1
|
-
# QualWeb best practices
|
|
2
|
-
|
|
3
|
-
Implementation of accessibility best practices for web pages.
|
|
4
|
-
|
|
5
|
-
## How to use
|
|
6
|
-
|
|
7
|
-
**This is an internal module of QualWeb. To use it check either [@qualweb/cli](https://github.com/qualweb/cli) or [@qualweb/core](https://github.com/qualweb/core).**
|
|
8
|
-
|
|
9
|
-
## Implemented best practices
|
|
10
|
-
|
|
11
|
-
| QualWeb best practice ID | Related to | Best practice Name |
|
|
12
|
-
|---|---|---|
|
|
13
|
-
| QW-BP1 | HTML | Using h1-h6 to identify headings |
|
|
14
|
-
| QW-BP2 | HTML | Concise images alt text |
|
|
15
|
-
| QW-BP3 | HTML | Link element with text content equal to the content of the title attribute |
|
|
16
|
-
| QW-BP4 | HTML | Grouped links not within a nav element |
|
|
17
|
-
| QW-BP5 | HTML | Using table elements inside other table elements |
|
|
18
|
-
| QW-BP6 | HTML | title element is not too long (64 characters) |
|
|
19
|
-
| QW-BP7 | HTML | Title element contains ASCII-art |
|
|
20
|
-
| QW-BP8 | HTML | Headings with images should have an accessible name |
|
|
21
|
-
| QW-BP9 | HTML | Table element without header cells has a caption |
|
|
22
|
-
| QW-BP10 | HTML | HTML elements are used to control visual presentation of content |
|
|
23
|
-
| QW-BP11 | HTML | Using br to make a list |
|
|
24
|
-
| QW-BP12 | HTML | Using scope col and row |
|
|
25
|
-
| QW-BP13 | HTML | Using consecutive links with the same href and one contains an image |
|
|
26
|
-
| QW-BP14 | CSS | At least one container's width has been specified using values expressed in px |
|
|
27
|
-
| QW-BP15 | CSS | At least one width attribute of an HTML element is expressed in absolute values |
|
|
28
|
-
| QW-BP17 | HTML | Adding a link at the beginning of a block of repeated content to go to the end of the block |
|
|
29
|
-
| QW-BP18 | CSS | Using percentage values in CSS for container sizes |
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
# QualWeb best practices
|
|
2
|
+
|
|
3
|
+
Implementation of accessibility best practices for web pages.
|
|
4
|
+
|
|
5
|
+
## How to use
|
|
6
|
+
|
|
7
|
+
**This is an internal module of QualWeb. To use it check either [@qualweb/cli](https://github.com/qualweb/cli) or [@qualweb/core](https://github.com/qualweb/core).**
|
|
8
|
+
|
|
9
|
+
## Implemented best practices
|
|
10
|
+
|
|
11
|
+
| QualWeb best practice ID | Related to | Best practice Name |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| QW-BP1 | HTML | Using h1-h6 to identify headings |
|
|
14
|
+
| QW-BP2 | HTML | Concise images alt text |
|
|
15
|
+
| QW-BP3 | HTML | Link element with text content equal to the content of the title attribute |
|
|
16
|
+
| QW-BP4 | HTML | Grouped links not within a nav element |
|
|
17
|
+
| QW-BP5 | HTML | Using table elements inside other table elements |
|
|
18
|
+
| QW-BP6 | HTML | title element is not too long (64 characters) |
|
|
19
|
+
| QW-BP7 | HTML | Title element contains ASCII-art |
|
|
20
|
+
| QW-BP8 | HTML | Headings with images should have an accessible name |
|
|
21
|
+
| QW-BP9 | HTML | Table element without header cells has a caption |
|
|
22
|
+
| QW-BP10 | HTML | HTML elements are used to control visual presentation of content |
|
|
23
|
+
| QW-BP11 | HTML | Using br to make a list |
|
|
24
|
+
| QW-BP12 | HTML | Using scope col and row |
|
|
25
|
+
| QW-BP13 | HTML | Using consecutive links with the same href and one contains an image |
|
|
26
|
+
| QW-BP14 | CSS | At least one container's width has been specified using values expressed in px |
|
|
27
|
+
| QW-BP15 | CSS | At least one width attribute of an HTML element is expressed in absolute values |
|
|
28
|
+
| QW-BP17 | HTML | Adding a link at the beginning of a block of repeated content to go to the end of the block |
|
|
29
|
+
| QW-BP18 | CSS | Using percentage values in CSS for container sizes |
|
|
30
|
+
| QW-BP19 | HTML | Landmark banner is top level |
|
|
31
|
+
| QW-BP20 | HTML | Landmark no duplicate banner |
|
|
32
|
+
| QW-BP21 | HTML | Landmark no duplicate contentinfo |
|
|
33
|
+
| QW-BP22 | HTML | Landmark has one main |
|
|
34
|
+
| QW-BP23 | HTML | Listitems are used semantically |
|
|
35
|
+
| QW-BP24 | HTML | Lists are used correctly |
|
|
36
|
+
| QW-BP25 | HTML | Landmark complementary is top level |
|
|
37
|
+
| QW-BP26 | HTML | Landmark contentinfo is top level |
|
|
38
|
+
| QW-BP27 | HTML | Landmark main is top level |
|
|
39
|
+
| QW-BP28 | HTML | H1 element is used and unique |
|
|
40
|
+
|
|
41
|
+
# License
|
|
42
|
+
|
|
33
43
|
ISC
|
package/dist/bp.bundle.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={952:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP1 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=e.getElements('h1, h2, h3, h4, h5, h6, [role="heading"]');for(const e of null!=t?t:[])if(window.AccessibilityUtils.isElementInAT(e)||window.DomUtils.isElementVisible(e)){const t=new c.default("warning",void 0,"W1");t.addElement(e),super.addTestResult(t)}if(0===super.getNumberOfWarningResults()){const e=new c.default("failed",void 0,"F1");super.addTestResult(e)}}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},138:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=a(n(546)),c=n(449),l=a(n(911));let d=class QW_BP10 extends r.default{constructor(e,t){super(e,t)}execute(e){const t=Object.create(null,{getTranslation:{get:()=>super.getTranslation},addTestResult:{get:()=>super.addTestResult}});return o(this,void 0,void 0,(function*(){const n=new l.default;if(void 0===e)n.verdict="passed",n.resultCode="P1";else{const s=e.getElementTagName();n.verdict="failed",n.description=t.getTranslation.call(this,"F1",{name:s}),n.resultCode="F1",n.attributes.push(s),n.addElement(e)}t.addTestResult.call(this,n)}))}};d=s([c.BestPracticeClass,i("design:paramtypes",[Object,Object])],d),e.exports=d},902:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP11 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;let n=0,s=!1;for(const t of e.getElementChildren()||[]){const e=t.getElementType();t&&"br"===t.getElementTagName()?(n++,s=!0):"text"!==e&&(n=0)}s&&n<=3?(t.verdict="passed",t.resultCode="P1"):s&&(t.verdict="failed",t.resultCode="F1"),s&&(t.addElement(e),super.addTestResult(t))}};s([r.ElementExists,(0,r.ElementHasChild)("*"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},77:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP12 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=e.getElements("tr");let n=new Array;if(t.length>0){let s,i;n=t[0].getElementChildren();let o=!0;for(s=1;s<n.length;s++)("td"===n[s].getElementTagName()||"th"===n[s].getElementTagName()&&o)&&(i=n[s].getElementAttribute("scope"),o="col"===i);let a,r=!0;for(s=1;s<t.length;s++)if(r){a=t[s];const e=a.getElements("td");e.length>0&&(i=e[0].getElementAttribute("scope"),r="row"===i)}const l=new c.default;o&&r?(l.verdict="passed",l.resultCode="P1"):(l.verdict="failed",l.resultCode="F1"),l.addElement(e),super.addTestResult(l)}}};s([r.ElementExists,(0,r.ElementHasChild)("tr"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},85:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP13 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=e.getElementParent();if(!t)return;const n=new c.default,s=t.getElementAttribute("href"),i=t.getElementNextSibling(),o=t.getElementPreviousSibling();i&&i.getElementAttribute("href")===s||o&&o.getElementAttribute("href")===s?(n.verdict="failed",n.resultCode="F1"):(n.verdict="passed",n.resultCode="P1"),t.getElementParent()&&n.addElement(e),super.addTestResult(n)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},19:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP15 extends a.default{constructor(e,t){super(e,t),this.absoluteLengths=["cm","mm","in","px","pt","pc"]}execute(e){const t=new c.default,n=e.getElementAttribute("width"),s=n.trim().substring(n.length-2,n.length);this.absoluteLengths.includes(s)||parseFloat(n).toString().length===n.length?(t.verdict="failed",t.resultCode="F1"):(t.verdict="passed",t.resultCode="P1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,r.ElementIsVisible,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},63:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP17 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;if(e){const n=window.DomUtils.getElementReferencedByHREF(e);n&&(t.verdict="warning",t.resultCode="W1",t.addElement(e),t.addElement(n),super.addTestResult(t))}else t.verdict="failed",t.resultCode="F1",super.addTestResult(t)}};l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},839:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP18 extends a.default{constructor(e,t){super(e,t),this.containers=["span","article","section","nav","aside","hgroup","header","footer","address","p","hr","blockquote","div","h1","h2","h3","h4","h5","h6","li","ul","ol","dd","dt","dl","figcaption"]}execute(e){var t,n,s;if("style"===e.getElementTagName()){const i=e.getElementProperty("sheet");for(const o of i.cssRules||[])if((null===(n=null===(t=null==o?void 0:o.style)||void 0===t?void 0:t.cssText)||void 0===n?void 0:n.includes("width:"))&&this.checkIfCssSelectorIsApplicable(o)){const t=null===(s=null==o?void 0:o.style)||void 0===s?void 0:s.cssText;t&&this.checkCssProperty(t,e)}}else{const t=e.getElementAttribute("style");this.checkCssProperty(t,e)}}checkIfCssSelectorIsApplicable(e){const t=e.selectorText.split(new RegExp(/(?![^)(]*\([^)(]*?\)\)),(?![^\(]*\))/gm)).map((e=>e.trim()))||[e.selectorText.trim()];if(this.hasContainers(t).length>0)return!0;let n=!1;for(const e of t||[])if(e.startsWith(".")||e.startsWith("#")){console.log(e);const t=window.qwPage.getElements(e);for(const e of t||[])if(this.containers.includes(e.getElementTagName())){n=!0;break}}return n}checkCssProperty(e,t){const n=new c.default,s=e.split(";").filter((e=>""!==e.trim()))||[e];for(const e of s||[])if(null==e?void 0:e.includes("width")){const s=e.split(":")[1];(null==s?void 0:s.includes("!important"))&&(s.endsWith("%")?(n.verdict="passed",n.resultCode="P1"):(n.verdict="failed",s.endsWith("px")?n.resultCode="F1":n.resultCode="F2"),n.attributes.push(e),n.addElement(t),super.addTestResult(n))}}hasContainers(e){var t;const n=new Array;for(const s of null!=e?e:[])for(const e of null!==(t=this.containers)&&void 0!==t?t:[])s===e&&n.push(s);return n}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},431:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP19 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,(0,r.ElementHasAttributeRole)("banner"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},333:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=a(n(546)),c=n(449),l=a(n(911));let d=class QW_BP2 extends r.default{constructor(e,t){super(e,t)}execute(e){const t=Object.create(null,{addTestResult:{get:()=>super.addTestResult}});return o(this,void 0,void 0,(function*(){const n=new l.default;e.getElementAttribute("alt").trim().length<=100?(n.verdict="passed",n.resultCode="P1"):(n.verdict="failed",n.resultCode="F1"),n.addElement(e),t.addTestResult.call(this,n)}))}};s([c.ElementExists,(0,c.ElementHasAttribute)("alt"),(0,c.ElementHasNonEmptyAttribute)("alt"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],d.prototype,"execute",null),d=s([c.BestPracticeClass,i("design:paramtypes",[Object,Object])],d),e.exports=d},950:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP20 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("header:not([role]), [role=banner]").filter((e=>"banner"===window.AccessibilityUtils.getElementRole(e)));n.length<2?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElements(n),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},118:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP21 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("footer:not([role]), [role=contentinfo]");n.length<2?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElements(n),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},380:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP22 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("main:not([role]), [role=main]");console.log(n.length),n.length<2?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElements(n),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},731:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP23 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElementParent();let s=!1;const i=null==n?void 0:n.getElementTagName();i&&(s=["ul","ol","menu"].includes(i)),s?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},315:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP24 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElementChildren();let s=!0;n.map((e=>{const t=window.AccessibilityUtils.getElementRole(e);"li"!==e.getElementTagName()&&"listitem"!==t&&(s=!1)})),s?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,(0,r.ElementHasChild)("*"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},36:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP25 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},434:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP26 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},929:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP27 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},695:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP28 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;1===e.getElements("h1").length?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},920:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP4 extends a.default{constructor(e,t){super(e,t)}execute(e){if(e.getNumberOfSiblingsWithTheSameTag()>=10){const t=new c.default("failed",void 0,"F1");e.getElementParent()&&t.addElement(e),super.addTestResult(t)}}};s([r.ElementExists,(0,r.ElementIsNotChildOf)("nav"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},293:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP5 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;e?(t.verdict="failed",t.resultCode="F1",t.addElement(e)):(t.verdict="passed",t.resultCode="P1"),super.addTestResult(t)}};l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},914:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP6 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;e.getElementText().length<100?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},551:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP7 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElementText().replace(/\s/g,"");new RegExp("@([[:punct:]]{4,})@iU").test(n)?(t.verdict="failed",t.resultCode="F1"):(t.verdict="passed",t.resultCode="P1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},371:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP8 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("*"),s=e.getElements("img"),i=e.getElements("svg");let o=!1;if(n.length>s.length+i.length&&(o=this.checkApplicability(e)),!o){const n=new Array;for(const e of i||[]){const t=window.AccessibilityUtils.getAccessibleNameSVG(e);t&&""!==t.trim()&&n.push(t)}const s=window.AccessibilityUtils.getAccessibleName(e);s&&""!==s.trim()||n.length>0?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e,!0,!0),super.addTestResult(t)}}checkApplicability(e){var t;let n=!1;for(const s of null!==(t=e.getElementChildren())&&void 0!==t?t:[]){const e=s.getElementTagName();if("img"!==e&&"svg"!==e){const e=s.getElementText(),t=window.DomUtils.isElementVisible(s),i=window.AccessibilityUtils.getAccessibleName(s);t&&(""!==e.trim()||i&&!this.checkApplicability(s))&&(n=!0)}}return n}};s([r.ElementExists,(0,r.ElementHasVisibleChild)("img, svg"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},843:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=a(n(546)),c=n(449),l=a(n(911));let d=class QW_BP9 extends r.default{constructor(e,t){super(e,t)}execute(e){const t=Object.create(null,{addTestResult:{get:()=>super.addTestResult}});return o(this,void 0,void 0,(function*(){if(0===e.getElements("th").length){const n=e.getElements("caption"),s=new l.default;0!==n.length?(s.verdict="passed",s.resultCode="P1"):(s.verdict="failed",s.resultCode="F1"),s.addElement(e),t.addTestResult.call(this,s)}}))}};s([c.ElementExists,(0,c.ElementDoesNotHaveChild)("th"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],d.prototype,"execute",null),d=s([c.BestPracticeClass,i("design:paramtypes",[Object,Object])],d),e.exports=d},160:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n),Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BestPractices=void 0;const r=o(n(894)),c=a(n(868));t.BestPractices=class BestPractices{constructor(e,t){var n;this.bestPractices={},this.bestPracticesToExecute={};for(const t of null!==(n=Object.keys(r))&&void 0!==n?n:[]){const n=t.replace(/_/g,"-");this.bestPractices[n]=new r[t](e),this.bestPracticesToExecute[n]=!0}t&&this.configure(t)}configure(e){var t,n;if(this.resetConfiguration(),e.bestPractices){e.bestPractices=e.bestPractices.map((e=>e.toUpperCase().trim()));for(const n of null!==(t=Object.keys(this.bestPractices))&&void 0!==t?t:[])this.bestPracticesToExecute[n]=e.bestPractices.includes(n)}if(e.exclude){e.exclude=e.exclude.map((e=>e.toUpperCase().trim()));for(const t of null!==(n=e.exclude)&&void 0!==n?n:[])this.bestPracticesToExecute[t]=!1}}resetConfiguration(){var e;for(const t in null!==(e=this.bestPracticesToExecute)&&void 0!==e?e:{})this.bestPracticesToExecute[t]=!0}executeBP(e,t,n){const s=window.qwPage.getElements(t);if(s.length>0)for(const t of null!=s?s:[])this.bestPractices[e].execute(t);else this.bestPractices[e].execute(void 0);n.assertions[e]=this.bestPractices[e].getFinalResults(),n.metadata[n.assertions[e].metadata.outcome]++}execute(){var e,t;const n={type:"best-practices",metadata:{passed:0,warning:0,failed:0,inapplicable:0},assertions:{}};for(const s of null!==(e=Object.keys(c.default))&&void 0!==e?e:[]){const e=c.default;for(const i of null!==(t=e[s])&&void 0!==t?t:[])this.bestPracticesToExecute[i]&&this.executeBP(i,s,n)}return n}}},546:e=>{e.exports=class BestPractice{constructor(e,t){this.bestPractice=e,this.locale=t}getFinalResults(){return this.outcomeBestPractice(),this.bestPractice}getNumberOfWarningResults(){return this.bestPractice.metadata.warning}addTestResult(e){e.description&&""!==e.description.trim()||(e.description=this.getTranslation(e.resultCode)),this.bestPractice.results.push(e),"inapplicable"!==e.verdict&&this.bestPractice.metadata[e.verdict]++}getTranslation(e,t){var n,s,i,o,a,r;let c="";if(c=(null===(i=null===(s=null===(n=this.locale.translate["best-practices"])||void 0===n?void 0:n[this.bestPractice.code])||void 0===s?void 0:s.results)||void 0===i?void 0:i[e])?null===(o=this.locale.translate["best-practices"][this.bestPractice.code].results)||void 0===o?void 0:o[e]:null===(r=null===(a=this.locale.fallback["best-practices"])||void 0===a?void 0:a[this.bestPractice.code].results)||void 0===r?void 0:r[e],t)for(const e of Object.keys(t)||[])c=c.replace(new RegExp(`{${e}}`,"g"),t[e].toString());return c}outcomeBestPractice(){this.bestPractice.metadata.failed>0?this.bestPractice.metadata.outcome="failed":this.bestPractice.metadata.warning>0?this.bestPractice.metadata.outcome="warning":this.bestPractice.metadata.passed>0?this.bestPractice.metadata.outcome="passed":(this.bestPractice.metadata.outcome="inapplicable",this.bestPractice.metadata.inapplicable=1),this.bestPractice.results.length>0&&this.addDescription()}addDescription(){var e;for(const t of null!==(e=this.bestPractice.results)&&void 0!==e?e:[])if(t.verdict===this.bestPractice.metadata.outcome){this.bestPractice.metadata.description=t.description;break}}}},911:e=>{e.exports=class Test{constructor(e,t,n){this.verdict=null!=e?e:"inapplicable",this.description=null!=t?t:"",this.resultCode=null!=n?n:"RC0",this.elements=new Array,this.attributes=new Array}addElement(e,t=!0,n=!1){const s=e.getElementHtmlCode(t,n),i=e.getElementSelector();this.elements.push({htmlCode:s,pointer:i})}addElements(e,t=!0,n=!1){for(const s of null!=e?e:[])this.addElement(s,t,n)}}},449:function(e,t,n){var s=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ElementHasAttributeRole=t.ElementIsNotChildOf=t.ElementHasParent=t.ElementDoesNotHaveChild=t.ElementHasVisibleChild=t.ElementHasChild=t.ElementHasNonEmptyAttribute=t.ElementHasAttribute=t.ElementExists=t.ElementItsDefined=t.IsApplicable=t.BestPracticeClass=t.ElementIsVisible=void 0;const o=i(n(837));t.BestPracticeClass=function(e){const t=function(){var t,n,s,i,a,r,c,l,d,u,f,p,m,h,g,b;const y=arguments[0],v=o.default[e.name];v.metadata.passed=0,v.metadata.warning=0,v.metadata.failed=0,v.metadata.inapplicable=0,v.metadata.outcome="inapplicable";try{v.name=null!==(s=null===(n=null===(t=y.translate["best-practices"])||void 0===t?void 0:t[v.code])||void 0===n?void 0:n.name)&&void 0!==s?s:null===(a=null===(i=y.fallback["best-practices"])||void 0===i?void 0:i[v.code])||void 0===a?void 0:a.name,v.description=null!==(l=null===(c=null===(r=y.translate["best-practices"])||void 0===r?void 0:r[v.code])||void 0===c?void 0:c.description)&&void 0!==l?l:null===(u=null===(d=y.fallback["best-practices"])||void 0===d?void 0:d[v.code])||void 0===u?void 0:u.description,v.metadata.description=null!==(h=null===(m=null===(p=null===(f=y.translate["best-practices"])||void 0===f?void 0:f[v.code])||void 0===p?void 0:p.results)||void 0===m?void 0:m.I1)&&void 0!==h?h:null===(b=null===(g=y.fallback["best-practices"])||void 0===g?void 0:g[v.code].results)||void 0===b?void 0:b.I1}catch(e){console.error(e)}v.results=new Array;const _=function(){return new e(v,y)};return _.prototype=e.prototype,new _};return t.prototype=e.prototype,t},t.IsApplicable=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){let t=!0;for(const n of e.if)t&&(t=n(arguments));if(t)return o.apply(this,arguments)}))}}},t.ElementItsDefined=function(...e){return void 0!==e[0]},t.ElementExists=function(e,t,n){const s=n.value;n.value=function(){if(arguments[0])return s.apply(this,arguments)}},t.ElementIsVisible=function(e,t,n){const s=n.value;n.value=function(){const e=window.DomUtils.isElementVisible(arguments[0]);if(e)return s.apply(this,arguments)}},t.ElementHasAttribute=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].elementHasAttribute(e);if(t)return o.apply(this,arguments)}))}}},t.ElementHasNonEmptyAttribute=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].getElementAttribute(e);if(t&&t.trim())return o.apply(this,arguments)}))}}},t.ElementHasChild=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].getElements(e);if(0!==t.length)return o.apply(this,arguments)}))}}},t.ElementHasVisibleChild=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].getElements(e);if(0!==t.length){let e=!1;for(const n of null!=t?t:[])e||(e=window.DomUtils.isElementVisible(n));if(e)return o.apply(this,arguments)}}))}}},t.ElementDoesNotHaveChild=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].getElements(e);if(0===t.length)return o.apply(this,arguments)}))}}},t.ElementHasParent=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].elementHasParent(e);if(t)return o.apply(this,arguments)}))}}},t.ElementIsNotChildOf=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].elementHasParent(e);if(!t)return o.apply(this,arguments)}))}}},t.ElementHasAttributeRole=function(e){return function(t,n,s){const i=s.value;s.value=function(){const t=window.AccessibilityUtils.getElementRole(arguments[0]);if(!t||t===e)return i.apply(this,arguments)}}}},894:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QW_BP9=t.QW_BP8=t.QW_BP7=t.QW_BP6=t.QW_BP5=t.QW_BP4=t.QW_BP28=t.QW_BP27=t.QW_BP26=t.QW_BP25=t.QW_BP24=t.QW_BP23=t.QW_BP22=t.QW_BP21=t.QW_BP20=t.QW_BP2=t.QW_BP19=t.QW_BP18=t.QW_BP17=t.QW_BP15=t.QW_BP13=t.QW_BP12=t.QW_BP11=t.QW_BP10=t.QW_BP1=void 0;const i=s(n(952));t.QW_BP1=i.default;const o=s(n(138));t.QW_BP10=o.default;const a=s(n(902));t.QW_BP11=a.default;const r=s(n(77));t.QW_BP12=r.default;const c=s(n(85));t.QW_BP13=c.default;const l=s(n(19));t.QW_BP15=l.default;const d=s(n(63));t.QW_BP17=d.default;const u=s(n(839));t.QW_BP18=u.default;const f=s(n(431));t.QW_BP19=f.default;const p=s(n(333));t.QW_BP2=p.default;const m=s(n(950));t.QW_BP20=m.default;const h=s(n(118));t.QW_BP21=h.default;const g=s(n(380));t.QW_BP22=g.default;const b=s(n(731));t.QW_BP23=b.default;const y=s(n(315));t.QW_BP24=y.default;const v=s(n(36));t.QW_BP25=v.default;const _=s(n(434));t.QW_BP26=_.default;const P=s(n(929));t.QW_BP27=P.default;const R=s(n(695));t.QW_BP28=R.default;const E=s(n(920));t.QW_BP4=E.default;const j=s(n(293));t.QW_BP5=j.default;const B=s(n(914));t.QW_BP6=B.default;const w=s(n(551));t.QW_BP7=w.default;const x=s(n(371));t.QW_BP8=x.default;const O=s(n(843));t.QW_BP9=O.default},868:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={"img[alt]":["QW-BP2"],table:["QW-BP9","QW-BP12"],"table table":["QW-BP5"],":not(svg) > title":["QW-BP6","QW-BP7"],'h1, h2, h3, h4, h5, h6, [role="heading"]':["QW-BP8"],"basefont, big, blink, center, font, marquee, multicol, nobr, spacer, tt":["QW-BP10"],"body, body *":["QW-BP11"],body:["QW-BP1","QW-BP20","QW-BP21","QW-BP22","QW-BP28"],"a > img":["QW-BP13"],"a:first-child":["QW-BP4"],"[width]:not(img)":["QW-BP15"],"a[href]":["QW-BP17"],"style, [style]":["QW-BP18"],"header:not([role]), [role=banner]":["QW-BP19"],li:["QW-BP23"],"ul, ol,menu":["QW-BP24"],"aside:not([role]), [role=complementary]":["QW-BP25"],"footer:not([role]), [role=contentinfo]":["QW-BP26"],"main:not([role]), [role=main]":["QW-BP27"]}},837:e=>{e.exports=JSON.parse('{"QW_BP1":{"name":"Using h1-h6 to identify headings","code":"QW-BP1","mapping":"H42","description":"It is recommended to use HTML and XHTML heading markup to provide semantic code for headings in the content","metadata":{"target":{"element":["h1","h2","h3","h4","h5","h6"]},"success-criteria":[{"name":"1.3.1","level":"A","principle":"Perceivable","url":"https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html"}],"related":["H69","G141","F2","F43"],"url":"https://www.w3.org/TR/WCAG20-TECHS/H42.html"}},"QW_BP2":{"name":"Concise images alt text","code":"QW-BP2","description":"Image alt text attribute with more than 100 characters","metadata":{"target":{"element":"img"}}},"QW_BP4":{"name":"Grouped links not within a nav element","code":"QW-BP4","description":"Set of 10 or more links not grouped within a list (nav)","metadata":{"target":{"element":"a"}}},"QW_BP5":{"name":"Using table elements inside other table elements","code":"QW-BP5","description":"It is not recommended to use table elements inside other table elements","metadata":{"target":{"element":"table","parent":"table"}}},"QW_BP6":{"name":"title element is not too long (100 characters)","code":"QW-BP6","description":"The webpage title element shouldn\'t have more than 100 characters","metadata":{"target":{"element":"title"}}},"QW_BP7":{"name":"Title element contains ASCII-art","code":"QW-BP7","description":"Title element contains ASCII-art","metadata":{"target":{"element":"title"}}},"QW_BP8":{"name":"Headings with images should have an accessible name","code":"QW-BP8","description":"Headings with at least one image should have an accessible name","metadata":{"target":{"element":["h1","h2","h3","h4","h5","h6","[role=\'heading\']"],"children":"img"},"related":["G130"]}},"QW_BP9":{"name":"Table element without header cells has a caption","code":"QW-BP9","description":"A table without th elements should have a caption element to describe it.","metadata":{"target":{"element":"table"}}},"QW_BP10":{"name":"HTML elements are used to control visual presentation of content","code":"QW-BP10","description":"No HTML elements are used to control the visual presentation of content","metadata":{"target":{"element":["b","blink","blockquote","basefont","center","cite","em","font","i","link","mark","strong","s","strike","u","vlink"]}}},"QW_BP11":{"name":"Using br to make a list","code":"QW-BP11","description":"Using 3 consecutive br elements","metadata":{"target":{"element":"br"}}},"QW_BP12":{"name":"Using scope col and row","code":"QW-BP12","description":"Using scope col in the first row and scope row in the first element of each row","metadata":{"target":{"element":["table","tr"]}}},"QW_BP13":{"name":"Using consecutive links with the same href and one contains an image","code":"QW-BP13","description":"Using consecutive links with the same href in which one of the links contains an image","metadata":{"target":{"element":"a"}}},"QW_BP15":{"name":"At least one width attribute of an HTML element is expressed in absolute values","code":"QW-BP15","description":"At least one width attribute of an HTML element is expressed in absolute values","metadata":{"target":{"element":"*","attributes":"width"}}},"QW_BP17":{"name":"Adding a link at the beginning of a block of repeated content to go to the end of the block","code":"QW-BP17","mapping":"G123","description":"The objective of this technique is to provide a mechanism to bypass a block of material by skipping to the end of the block.","metadata":{"target":{"element":"a","attributes":"href"},"success-criteria":[{"name":"2.4.1","level":"A","principle":"Operable","url":"https://www.w3.org/WAI/WCAG21/Understanding/bypass-blocks"}],"related":["G1","G124"],"url":"https://www.w3.org/WAI/WCAG21/Techniques/general/G123"}},"QW_BP18":{"name":"Using percentage values in CSS for container sizes","code":"QW-BP18","mapping":"C24","description":"The objective of this technique is to enable users to increase the size of text without having to scroll horizontally to read that text. To use this technique, an author specifies the width of text containers using percent values.","metadata":{"target":{"element":"span article section nav aside hgroup header footer address p hr blockquote div h1 h2 h3 h4 h5 h6 li ul ol dd dt dl figcaption","attributes":"width"},"success-criteria":[{"name":"1.4.8","level":"AAA","principle":"Perceivable","url":"https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation"}],"related":["C20"],"url":"https://www.w3.org/WAI/WCAG21/Techniques/css/C24"}},"QW_BP19":{"name":"Landmark banner is top level","code":"QW-BP19","description":"Ensures the banner landmark is at top level","metadata":{"target":{"element":"header:not([role]), [role=banner]"}}},"QW_BP20":{"name":"Landmark no duplicate banner","code":"QW-BP20","description":"Ensures the document has at most one banner landmark","metadata":{"target":{"element":"body"}}},"QW_BP21":{"name":"Landmark no duplicate contentinfo","code":"QW-BP21","description":"Ensures the document has at most one contentinfo landmark","metadata":{"target":{"element":"body"}}},"QW_BP22":{"name":"Landmark has one main","code":"QW-BP22","description":"Ensures the document has a main landmark","metadata":{"target":{"element":"body"}}},"QW_BP23":{"name":"Listitems are used semantically","code":"QW-BP23","description":"Ensures <li> elements are used semantically","metadata":{"target":{"element":"li"}}},"QW_BP24":{"name":"Lists are used correctly","code":"QW-BP24","description":"Ensures that lists are structured correctly. <ul> and <ol> must only directly contain <li>, <script> or <template> elements","metadata":{"target":{"element":"ul,ol,menu"}}},"QW_BP25":{"name":"Landmark complementary is top level","code":"QW-BP25","description":"Ensures the complementary landmark or aside is at top level","metadata":{"target":{"element":"aside:not([role]), [role=complementary]"}}},"QW_BP26":{"name":"Landmark contentinfo is top level","code":"QW-BP26","description":"Ensures the contentinfo landmark is at top level","metadata":{"target":{"element":"footer:not([role]), [role=contentinfo]"}}},"QW_BP27":{"name":"Landmark main is top level","code":"QW-BP27","description":"Ensures the main landmark is at top level","metadata":{"target":{"element":"main:not([role]), [role=main]"}}},"QW_BP28":{"name":"H1 element is used and unique","code":"QW-BP28","description":"Ensures theres is only one H1","metadata":{"target":{"element":"h1"}}}}')}},t={};var n=function n(s){var i=t[s];if(void 0!==i)return i.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,n),o.exports}(160);for(var s in n)this[s]=n[s];n.__esModule&&Object.defineProperty(this,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={952:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP1 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=e.getElements('h1, h2, h3, h4, h5, h6, [role="heading"]');for(const e of null!=t?t:[])if(window.AccessibilityUtils.isElementInAT(e)||window.DomUtils.isElementVisible(e)){const t=new c.default("warning",void 0,"W1");t.addElement(e),super.addTestResult(t)}if(0===super.getNumberOfWarningResults()){const e=new c.default("failed",void 0,"F1");super.addTestResult(e)}}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},138:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=a(n(546)),c=n(449),l=a(n(911));let d=class QW_BP10 extends r.default{constructor(e,t){super(e,t)}execute(e){const t=Object.create(null,{getTranslation:{get:()=>super.getTranslation},addTestResult:{get:()=>super.addTestResult}});return o(this,void 0,void 0,(function*(){const n=new l.default;if(void 0===e)n.verdict="passed",n.resultCode="P1";else{const s=e.getElementTagName();n.verdict="failed",n.description=t.getTranslation.call(this,"F1",{name:s}),n.resultCode="F1",n.attributes.push(s),n.addElement(e)}t.addTestResult.call(this,n)}))}};d=s([c.BestPracticeClass,i("design:paramtypes",[Object,Object])],d),e.exports=d},902:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP11 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;let n=0,s=!1;for(const t of e.getElementChildren()||[]){const e=t.getElementType();t&&"br"===t.getElementTagName()?(n++,s=!0):"text"!==e&&(n=0)}s&&n<=3?(t.verdict="passed",t.resultCode="P1"):s&&(t.verdict="failed",t.resultCode="F1"),s&&(t.addElement(e),super.addTestResult(t))}};s([r.ElementExists,(0,r.ElementHasChild)("*"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},77:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP12 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=e.getElements("tr");let n=new Array;if(t.length>0){let s,i;n=t[0].getElementChildren();let o=!0;for(s=1;s<n.length;s++)("td"===n[s].getElementTagName()||"th"===n[s].getElementTagName()&&o)&&(i=n[s].getElementAttribute("scope"),o="col"===i);let a,r=!0;for(s=1;s<t.length;s++)if(r){a=t[s];const e=a.getElements("td");e.length>0&&(i=e[0].getElementAttribute("scope"),r="row"===i)}const l=new c.default;o&&r?(l.verdict="passed",l.resultCode="P1"):(l.verdict="failed",l.resultCode="F1"),l.addElement(e),super.addTestResult(l)}}};s([r.ElementExists,(0,r.ElementHasChild)("tr"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},85:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP13 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=e.getElementParent();if(!t)return;const n=new c.default,s=t.getElementAttribute("href"),i=t.getElementNextSibling(),o=t.getElementPreviousSibling();i&&i.getElementAttribute("href")===s||o&&o.getElementAttribute("href")===s?(n.verdict="failed",n.resultCode="F1"):(n.verdict="passed",n.resultCode="P1"),t.getElementParent()&&n.addElement(e),super.addTestResult(n)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},19:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP15 extends a.default{constructor(e,t){super(e,t),this.absoluteLengths=["cm","mm","in","px","pt","pc"]}execute(e){const t=new c.default,n=e.getElementAttribute("width"),s=n.trim().substring(n.length-2,n.length);this.absoluteLengths.includes(s)||parseFloat(n).toString().length===n.length?(t.verdict="failed",t.resultCode="F1"):(t.verdict="passed",t.resultCode="P1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,r.ElementIsVisible,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},63:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP17 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;if(e){const n=window.DomUtils.getElementReferencedByHREF(e);n&&(t.verdict="warning",t.resultCode="W1",t.addElement(e),t.addElement(n),super.addTestResult(t))}else t.verdict="failed",t.resultCode="F1",super.addTestResult(t)}};l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},839:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP18 extends a.default{constructor(e,t){super(e,t),this.containers=["span","article","section","nav","aside","hgroup","header","footer","address","p","hr","blockquote","div","h1","h2","h3","h4","h5","h6","li","ul","ol","dd","dt","dl","figcaption"]}execute(e){var t,n,s;if("style"===e.getElementTagName()){const i=e.getElementProperty("sheet");for(const o of i.cssRules||[])if((null===(n=null===(t=null==o?void 0:o.style)||void 0===t?void 0:t.cssText)||void 0===n?void 0:n.includes("width:"))&&this.checkIfCssSelectorIsApplicable(o)){const t=null===(s=null==o?void 0:o.style)||void 0===s?void 0:s.cssText;t&&this.checkCssProperty(t,e)}}else{const t=e.getElementAttribute("style");this.checkCssProperty(t,e)}}checkIfCssSelectorIsApplicable(e){const t=e.selectorText.split(new RegExp(/(?![^)(]*\([^)(]*?\)\)),(?![^\(]*\))/gm)).map((e=>e.trim()))||[e.selectorText.trim()];if(this.hasContainers(t).length>0)return!0;let n=!1;for(const e of t||[])if(e.startsWith(".")||e.startsWith("#")){console.log(e);const t=window.qwPage.getElements(e);for(const e of t||[])if(this.containers.includes(e.getElementTagName())){n=!0;break}}return n}checkCssProperty(e,t){const n=new c.default,s=e.split(";").filter((e=>""!==e.trim()))||[e];for(const e of s||[])if(null==e?void 0:e.includes("width")){const s=e.split(":")[1];(null==s?void 0:s.includes("!important"))&&(s.endsWith("%")?(n.verdict="passed",n.resultCode="P1"):(n.verdict="failed",s.endsWith("px")?n.resultCode="F1":n.resultCode="F2"),n.attributes.push(e),n.addElement(t),super.addTestResult(n))}}hasContainers(e){var t;const n=new Array;for(const s of null!=e?e:[])for(const e of null!==(t=this.containers)&&void 0!==t?t:[])s===e&&n.push(s);return n}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},431:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP19 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,(0,r.ElementHasAttributeRole)("banner"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},333:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=a(n(546)),c=n(449),l=a(n(911));let d=class QW_BP2 extends r.default{constructor(e,t){super(e,t)}execute(e){const t=Object.create(null,{addTestResult:{get:()=>super.addTestResult}});return o(this,void 0,void 0,(function*(){const n=new l.default;e.getElementAttribute("alt").trim().length<=100?(n.verdict="passed",n.resultCode="P1"):(n.verdict="failed",n.resultCode="F1"),n.addElement(e),t.addTestResult.call(this,n)}))}};s([c.ElementExists,(0,c.ElementHasAttribute)("alt"),(0,c.ElementHasNonEmptyAttribute)("alt"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],d.prototype,"execute",null),d=s([c.BestPracticeClass,i("design:paramtypes",[Object,Object])],d),e.exports=d},950:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP20 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("header:not([role]), [role=banner]").filter((e=>"banner"===window.AccessibilityUtils.getElementRole(e)));n.length<2?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElements(n),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},118:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP21 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("footer:not([role]), [role=contentinfo]");n.length<2?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElements(n),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},380:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP22 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("main:not([role]), [role=main]");console.log(n.length),n.length<2?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElements(n),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},731:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP23 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElementParent();let s=!1;const i=null==n?void 0:n.getElementTagName();i&&(s=["ul","ol","menu"].includes(i)),s?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,r.ElementIsInAccessibilityTree,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},315:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP24 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElementChildren();let s=!0;n.map((e=>{const t=window.AccessibilityUtils.getElementRole(e);"li"!==e.getElementTagName()&&"listitem"!==t&&(s=!1)})),s?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,(0,r.ElementHasChild)("*"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},36:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP25 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},434:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP26 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},929:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP27 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;window.AccessibilityUtils.landmarkIsTopLevel(e)?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},695:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP28 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;1===e.getElements("h1").length?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},920:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP4 extends a.default{constructor(e,t){super(e,t)}execute(e){if(e.getNumberOfSiblingsWithTheSameTag()>=10){const t=new c.default("failed",void 0,"F1");e.getElementParent()&&t.addElement(e),super.addTestResult(t)}}};s([r.ElementExists,(0,r.ElementIsNotChildOf)("nav"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},293:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP5 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;e?(t.verdict="failed",t.resultCode="F1",t.addElement(e)):(t.verdict="passed",t.resultCode="P1"),super.addTestResult(t)}};l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},914:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP6 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default;e.getElementText().length<100?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},551:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP7 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElementText().replace(/\s/g,"");new RegExp("@([[:punct:]]{4,})@iU").test(n)?(t.verdict="failed",t.resultCode="F1"):(t.verdict="passed",t.resultCode="P1"),t.addElement(e),super.addTestResult(t)}};s([r.ElementExists,i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},371:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=o(n(546)),r=n(449),c=o(n(911));let l=class QW_BP8 extends a.default{constructor(e,t){super(e,t)}execute(e){const t=new c.default,n=e.getElements("*"),s=e.getElements("img"),i=e.getElements("svg");let o=!1;if(n.length>s.length+i.length&&(o=this.checkApplicability(e)),!o){const n=new Array;for(const e of i||[]){const t=window.AccessibilityUtils.getAccessibleNameSVG(e);t&&""!==t.trim()&&n.push(t)}const s=window.AccessibilityUtils.getAccessibleName(e);s&&""!==s.trim()||n.length>0?(t.verdict="passed",t.resultCode="P1"):(t.verdict="failed",t.resultCode="F1"),t.addElement(e,!0,!0),super.addTestResult(t)}}checkApplicability(e){var t;let n=!1;for(const s of null!==(t=e.getElementChildren())&&void 0!==t?t:[]){const e=s.getElementTagName();if("img"!==e&&"svg"!==e){const e=s.getElementText(),t=window.DomUtils.isElementVisible(s),i=window.AccessibilityUtils.getAccessibleName(s);t&&(""!==e.trim()||i&&!this.checkApplicability(s))&&(n=!0)}}return n}};s([r.ElementExists,(0,r.ElementHasVisibleChild)("img, svg"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],l.prototype,"execute",null),l=s([r.BestPracticeClass,i("design:paramtypes",[Object,Object])],l),e.exports=l},843:function(e,t,n){var s=this&&this.__decorate||function(e,t,n,s){var i,o=arguments.length,a=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,s);else for(var r=e.length-1;r>=0;r--)(i=e[r])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const r=a(n(546)),c=n(449),l=a(n(911));let d=class QW_BP9 extends r.default{constructor(e,t){super(e,t)}execute(e){const t=Object.create(null,{addTestResult:{get:()=>super.addTestResult}});return o(this,void 0,void 0,(function*(){if(0===e.getElements("th").length){const n=e.getElements("caption"),s=new l.default;0!==n.length?(s.verdict="passed",s.resultCode="P1"):(s.verdict="failed",s.resultCode="F1"),s.addElement(e),t.addTestResult.call(this,s)}}))}};s([c.ElementExists,(0,c.ElementDoesNotHaveChild)("th"),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],d.prototype,"execute",null),d=s([c.BestPracticeClass,i("design:paramtypes",[Object,Object])],d),e.exports=d},160:function(e,t,n){var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BestPractices=void 0;const r=o(n(894)),c=a(n(868));t.BestPractices=class BestPractices{constructor(e,t){var n;this.bestPractices={},this.bestPracticesToExecute={};for(const t of null!==(n=Object.keys(r))&&void 0!==n?n:[]){const n=t.replace(/_/g,"-");this.bestPractices[n]=new r[t](e),this.bestPracticesToExecute[n]=!0}t&&this.configure(t)}configure(e){var t,n;if(this.resetConfiguration(),e.bestPractices){e.bestPractices=e.bestPractices.map((e=>e.toUpperCase().trim()));for(const n of null!==(t=Object.keys(this.bestPractices))&&void 0!==t?t:[])this.bestPracticesToExecute[n]=e.bestPractices.includes(n)}if(e.exclude){e.exclude=e.exclude.map((e=>e.toUpperCase().trim()));for(const t of null!==(n=e.exclude)&&void 0!==n?n:[])this.bestPracticesToExecute[t]=!1}}resetConfiguration(){var e;for(const t in null!==(e=this.bestPracticesToExecute)&&void 0!==e?e:{})this.bestPracticesToExecute[t]=!0}executeBP(e,t,n){const s=window.qwPage.getElements(t);if(s.length>0)for(const t of null!=s?s:[])this.bestPractices[e].execute(t);else this.bestPractices[e].execute(void 0);n.assertions[e]=this.bestPractices[e].getFinalResults(),n.metadata[n.assertions[e].metadata.outcome]++}execute(){var e,t;const n={type:"best-practices",metadata:{passed:0,warning:0,failed:0,inapplicable:0},assertions:{}};for(const s of null!==(e=Object.keys(c.default))&&void 0!==e?e:[]){const e=c.default;for(const i of null!==(t=e[s])&&void 0!==t?t:[])this.bestPracticesToExecute[i]&&this.executeBP(i,s,n)}return n}}},546:e=>{e.exports=class BestPractice{constructor(e,t){this.bestPractice=e,this.locale=t}getFinalResults(){return this.outcomeBestPractice(),this.bestPractice}getNumberOfWarningResults(){return this.bestPractice.metadata.warning}addTestResult(e){e.description&&""!==e.description.trim()||(e.description=this.getTranslation(e.resultCode)),this.bestPractice.results.push(e),"inapplicable"!==e.verdict&&this.bestPractice.metadata[e.verdict]++}getTranslation(e,t){var n,s,i,o,a,r;let c="";if(c=(null===(i=null===(s=null===(n=this.locale.translate["best-practices"])||void 0===n?void 0:n[this.bestPractice.code])||void 0===s?void 0:s.results)||void 0===i?void 0:i[e])?null===(o=this.locale.translate["best-practices"][this.bestPractice.code].results)||void 0===o?void 0:o[e]:null===(r=null===(a=this.locale.fallback["best-practices"])||void 0===a?void 0:a[this.bestPractice.code].results)||void 0===r?void 0:r[e],t)for(const e of Object.keys(t)||[])c=c.replace(new RegExp(`{${e}}`,"g"),t[e].toString());return c}outcomeBestPractice(){this.bestPractice.metadata.failed>0?this.bestPractice.metadata.outcome="failed":this.bestPractice.metadata.warning>0?this.bestPractice.metadata.outcome="warning":this.bestPractice.metadata.passed>0?this.bestPractice.metadata.outcome="passed":(this.bestPractice.metadata.outcome="inapplicable",this.bestPractice.metadata.inapplicable=1),this.bestPractice.results.length>0&&this.addDescription()}addDescription(){var e;for(const t of null!==(e=this.bestPractice.results)&&void 0!==e?e:[])if(t.verdict===this.bestPractice.metadata.outcome){this.bestPractice.metadata.description=t.description;break}}}},911:e=>{e.exports=class Test{constructor(e,t,n){this.verdict=null!=e?e:"inapplicable",this.description=null!=t?t:"",this.resultCode=null!=n?n:"RC0",this.elements=new Array,this.attributes=new Array}addElement(e,t=!0,n=!1){const s=e.getElementHtmlCode(t,n),i=e.getElementSelector();this.elements.push({htmlCode:s,pointer:i})}addElements(e,t=!0,n=!1){for(const s of null!=e?e:[])this.addElement(s,t,n)}}},449:function(e,t,n){var s=this&&this.__awaiter||function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function r(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,r)}c((s=s.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ElementIsInAccessibilityTree=t.ElementHasAttributeRole=t.ElementIsNotChildOf=t.ElementHasParent=t.ElementDoesNotHaveChild=t.ElementHasVisibleChild=t.ElementHasChild=t.ElementHasNonEmptyAttribute=t.ElementHasAttribute=t.ElementExists=t.ElementItsDefined=t.IsApplicable=t.BestPracticeClass=t.ElementIsVisible=void 0;const o=i(n(837));t.BestPracticeClass=function(e){const t=function(){var t,n,s,i,a,r,c,l,d,u,f,p,m,h,g,b;const y=arguments[0],v=o.default[e.name];v.metadata.passed=0,v.metadata.warning=0,v.metadata.failed=0,v.metadata.inapplicable=0,v.metadata.outcome="inapplicable";try{v.name=null!==(s=null===(n=null===(t=y.translate["best-practices"])||void 0===t?void 0:t[v.code])||void 0===n?void 0:n.name)&&void 0!==s?s:null===(a=null===(i=y.fallback["best-practices"])||void 0===i?void 0:i[v.code])||void 0===a?void 0:a.name,v.description=null!==(l=null===(c=null===(r=y.translate["best-practices"])||void 0===r?void 0:r[v.code])||void 0===c?void 0:c.description)&&void 0!==l?l:null===(u=null===(d=y.fallback["best-practices"])||void 0===d?void 0:d[v.code])||void 0===u?void 0:u.description,v.metadata.description=null!==(h=null===(m=null===(p=null===(f=y.translate["best-practices"])||void 0===f?void 0:f[v.code])||void 0===p?void 0:p.results)||void 0===m?void 0:m.I1)&&void 0!==h?h:null===(b=null===(g=y.fallback["best-practices"])||void 0===g?void 0:g[v.code].results)||void 0===b?void 0:b.I1}catch(e){console.error(e)}v.results=new Array;const _=function(){return new e(v,y)};return _.prototype=e.prototype,new _};return t.prototype=e.prototype,t},t.IsApplicable=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){let t=!0;for(const n of e.if)t&&(t=n(arguments));if(t)return o.apply(this,arguments)}))}}},t.ElementItsDefined=function(...e){return void 0!==e[0]},t.ElementExists=function(e,t,n){const s=n.value;n.value=function(){if(arguments[0])return s.apply(this,arguments)}},t.ElementIsVisible=function(e,t,n){const s=n.value;n.value=function(){if(window.DomUtils.isElementVisible(arguments[0]))return s.apply(this,arguments)}},t.ElementHasAttribute=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){if(arguments[0].elementHasAttribute(e))return o.apply(this,arguments)}))}}},t.ElementHasNonEmptyAttribute=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].getElementAttribute(e);if(t&&t.trim())return o.apply(this,arguments)}))}}},t.ElementHasChild=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){if(0!==arguments[0].getElements(e).length)return o.apply(this,arguments)}))}}},t.ElementHasVisibleChild=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){const t=arguments[0].getElements(e);if(0!==t.length){let e=!1;for(const n of null!=t?t:[])e||(e=window.DomUtils.isElementVisible(n));if(e)return o.apply(this,arguments)}}))}}},t.ElementDoesNotHaveChild=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){if(0===arguments[0].getElements(e).length)return o.apply(this,arguments)}))}}},t.ElementHasParent=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){if(arguments[0].elementHasParent(e))return o.apply(this,arguments)}))}}},t.ElementIsNotChildOf=function(e){return function(t,n,i){const o=i.value;i.value=function(){return s(this,arguments,void 0,(function*(){if(!arguments[0].elementHasParent(e))return o.apply(this,arguments)}))}}},t.ElementHasAttributeRole=function(e){return function(t,n,s){const i=s.value;s.value=function(){const t=window.AccessibilityUtils.getElementRole(arguments[0]);if(!t||t===e)return i.apply(this,arguments)}}},t.ElementIsInAccessibilityTree=function(e,t,n){const s=n.value;n.value=function(){if(window.AccessibilityUtils.isElementInAT(arguments[0]))return s.apply(this,arguments)}}},894:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QW_BP9=t.QW_BP8=t.QW_BP7=t.QW_BP6=t.QW_BP5=t.QW_BP4=t.QW_BP28=t.QW_BP27=t.QW_BP26=t.QW_BP25=t.QW_BP24=t.QW_BP23=t.QW_BP22=t.QW_BP21=t.QW_BP20=t.QW_BP2=t.QW_BP19=t.QW_BP18=t.QW_BP17=t.QW_BP15=t.QW_BP13=t.QW_BP12=t.QW_BP11=t.QW_BP10=t.QW_BP1=void 0;const i=s(n(952));t.QW_BP1=i.default;const o=s(n(138));t.QW_BP10=o.default;const a=s(n(902));t.QW_BP11=a.default;const r=s(n(77));t.QW_BP12=r.default;const c=s(n(85));t.QW_BP13=c.default;const l=s(n(19));t.QW_BP15=l.default;const d=s(n(63));t.QW_BP17=d.default;const u=s(n(839));t.QW_BP18=u.default;const f=s(n(431));t.QW_BP19=f.default;const p=s(n(333));t.QW_BP2=p.default;const m=s(n(950));t.QW_BP20=m.default;const h=s(n(118));t.QW_BP21=h.default;const g=s(n(380));t.QW_BP22=g.default;const b=s(n(731));t.QW_BP23=b.default;const y=s(n(315));t.QW_BP24=y.default;const v=s(n(36));t.QW_BP25=v.default;const _=s(n(434));t.QW_BP26=_.default;const P=s(n(929));t.QW_BP27=P.default;const R=s(n(695));t.QW_BP28=R.default;const E=s(n(920));t.QW_BP4=E.default;const j=s(n(293));t.QW_BP5=j.default;const B=s(n(914));t.QW_BP6=B.default;const w=s(n(551));t.QW_BP7=w.default;const O=s(n(371));t.QW_BP8=O.default;const x=s(n(843));t.QW_BP9=x.default},868:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={"img[alt]":["QW-BP2"],table:["QW-BP9","QW-BP12"],"table table":["QW-BP5"],":not(svg) > title":["QW-BP6","QW-BP7"],'h1, h2, h3, h4, h5, h6, [role="heading"]':["QW-BP8"],"basefont, big, blink, center, font, marquee, multicol, nobr, spacer, tt":["QW-BP10"],"body, body *":["QW-BP11"],body:["QW-BP1","QW-BP20","QW-BP21","QW-BP22","QW-BP28"],"a > img":["QW-BP13"],"a:first-child":["QW-BP4"],"[width]:not(img)":["QW-BP15"],"a[href]":["QW-BP17"],"style, [style]":["QW-BP18"],"header:not([role]), [role=banner]":["QW-BP19"],li:["QW-BP23"],"ul, ol,menu":["QW-BP24"],"aside:not([role]), [role=complementary]":["QW-BP25"],"footer:not([role]), [role=contentinfo]":["QW-BP26"],"main:not([role]), [role=main]":["QW-BP27"]}},837:e=>{e.exports=JSON.parse('{"QW_BP1":{"name":"Using h1-h6 to identify headings","code":"QW-BP1","mapping":"H42","description":"It is recommended to use HTML and XHTML heading markup to provide semantic code for headings in the content","metadata":{"target":{"element":["h1","h2","h3","h4","h5","h6"]},"success-criteria":[{"name":"1.3.1","level":"A","principle":"Perceivable","url":"https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html"}],"related":["H69","G141","F2","F43"],"url":"https://www.w3.org/TR/WCAG20-TECHS/H42.html"}},"QW_BP2":{"name":"Concise images alt text","code":"QW-BP2","description":"Image alt text attribute with more than 100 characters","metadata":{"target":{"element":"img"}}},"QW_BP4":{"name":"Grouped links not within a nav element","code":"QW-BP4","description":"Set of 10 or more links not grouped within a list (nav)","metadata":{"target":{"element":"a"}}},"QW_BP5":{"name":"Using table elements inside other table elements","code":"QW-BP5","description":"It is not recommended to use table elements inside other table elements","metadata":{"target":{"element":"table","parent":"table"}}},"QW_BP6":{"name":"title element is not too long (100 characters)","code":"QW-BP6","description":"The webpage title element shouldn\'t have more than 100 characters","metadata":{"target":{"element":"title"}}},"QW_BP7":{"name":"Title element contains ASCII-art","code":"QW-BP7","description":"Title element contains ASCII-art","metadata":{"target":{"element":"title"}}},"QW_BP8":{"name":"Headings with images should have an accessible name","code":"QW-BP8","description":"Headings with at least one image should have an accessible name","metadata":{"target":{"element":["h1","h2","h3","h4","h5","h6","[role=\'heading\']"],"children":"img"},"related":["G130"]}},"QW_BP9":{"name":"Table element without header cells has a caption","code":"QW-BP9","description":"A table without th elements should have a caption element to describe it.","metadata":{"target":{"element":"table"}}},"QW_BP10":{"name":"HTML elements are used to control visual presentation of content","code":"QW-BP10","description":"No HTML elements are used to control the visual presentation of content","metadata":{"target":{"element":["b","blink","blockquote","basefont","center","cite","em","font","i","link","mark","strong","s","strike","u","vlink"]}}},"QW_BP11":{"name":"Using br to make a list","code":"QW-BP11","description":"Using 3 consecutive br elements","metadata":{"target":{"element":"br"}}},"QW_BP12":{"name":"Using scope col and row","code":"QW-BP12","description":"Using scope col in the first row and scope row in the first element of each row","metadata":{"target":{"element":["table","tr"]}}},"QW_BP13":{"name":"Using consecutive links with the same href and one contains an image","code":"QW-BP13","description":"Using consecutive links with the same href in which one of the links contains an image","metadata":{"target":{"element":"a"}}},"QW_BP15":{"name":"At least one width attribute of an HTML element is expressed in absolute values","code":"QW-BP15","description":"At least one width attribute of an HTML element is expressed in absolute values","metadata":{"target":{"element":"*","attributes":"width"}}},"QW_BP17":{"name":"Adding a link at the beginning of a block of repeated content to go to the end of the block","code":"QW-BP17","mapping":"G123","description":"The objective of this technique is to provide a mechanism to bypass a block of material by skipping to the end of the block.","metadata":{"target":{"element":"a","attributes":"href"},"success-criteria":[{"name":"2.4.1","level":"A","principle":"Operable","url":"https://www.w3.org/WAI/WCAG21/Understanding/bypass-blocks"}],"related":["G1","G124"],"url":"https://www.w3.org/WAI/WCAG21/Techniques/general/G123"}},"QW_BP18":{"name":"Using percentage values in CSS for container sizes","code":"QW-BP18","mapping":"C24","description":"The objective of this technique is to enable users to increase the size of text without having to scroll horizontally to read that text. To use this technique, an author specifies the width of text containers using percent values.","metadata":{"target":{"element":"span article section nav aside hgroup header footer address p hr blockquote div h1 h2 h3 h4 h5 h6 li ul ol dd dt dl figcaption","attributes":"width"},"success-criteria":[{"name":"1.4.8","level":"AAA","principle":"Perceivable","url":"https://www.w3.org/WAI/WCAG21/Understanding/visual-presentation"}],"related":["C20"],"url":"https://www.w3.org/WAI/WCAG21/Techniques/css/C24"}},"QW_BP19":{"name":"Landmark banner is top level","code":"QW-BP19","description":"Ensures the banner landmark is at top level","metadata":{"target":{"element":"header:not([role]), [role=banner]"}}},"QW_BP20":{"name":"Landmark no duplicate banner","code":"QW-BP20","description":"Ensures the document has at most one banner landmark","metadata":{"target":{"element":"body"}}},"QW_BP21":{"name":"Landmark no duplicate contentinfo","code":"QW-BP21","description":"Ensures the document has at most one contentinfo landmark","metadata":{"target":{"element":"body"}}},"QW_BP22":{"name":"Landmark has one main","code":"QW-BP22","description":"Ensures the document has a main landmark","metadata":{"target":{"element":"body"}}},"QW_BP23":{"name":"Listitems are used semantically","code":"QW-BP23","description":"Ensures <li> elements are used semantically","metadata":{"target":{"element":"li"}}},"QW_BP24":{"name":"Lists are used correctly","code":"QW-BP24","description":"Ensures that lists are structured correctly. <ul> and <ol> must only directly contain <li>, <script> or <template> elements","metadata":{"target":{"element":"ul,ol,menu"}}},"QW_BP25":{"name":"Landmark complementary is top level","code":"QW-BP25","description":"Ensures the complementary landmark or aside is at top level","metadata":{"target":{"element":"aside:not([role]), [role=complementary]"}}},"QW_BP26":{"name":"Landmark contentinfo is top level","code":"QW-BP26","description":"Ensures the contentinfo landmark is at top level","metadata":{"target":{"element":"footer:not([role]), [role=contentinfo]"}}},"QW_BP27":{"name":"Landmark main is top level","code":"QW-BP27","description":"Ensures the main landmark is at top level","metadata":{"target":{"element":"main:not([role]), [role=main]"}}},"QW_BP28":{"name":"H1 element is used and unique","code":"QW-BP28","description":"Ensures theres is only one H1","metadata":{"target":{"element":"h1"}}}}')}},t={};var n=function n(s){var i=t[s];if(void 0!==i)return i.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,n),o.exports}(160);for(var s in n)this[s]=n[s];n.__esModule&&Object.defineProperty(this,"__esModule",{value:!0})})();
|
package/package.json
CHANGED
|
@@ -1,83 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@qualweb/best-practices",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "QualWeb best practices",
|
|
5
|
-
"main": "dist/bp.bundle.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist/*"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"tsc": "tsc",
|
|
11
|
-
"test
|
|
12
|
-
"test:
|
|
13
|
-
"test:
|
|
14
|
-
"test:
|
|
15
|
-
"test:
|
|
16
|
-
"test:
|
|
17
|
-
"test:
|
|
18
|
-
"test:
|
|
19
|
-
"test:
|
|
20
|
-
"test:
|
|
21
|
-
"test:
|
|
22
|
-
"test:
|
|
23
|
-
"test:
|
|
24
|
-
"test:
|
|
25
|
-
"test:
|
|
26
|
-
"test:
|
|
27
|
-
"test:
|
|
28
|
-
"test:
|
|
29
|
-
"test:
|
|
30
|
-
"test:
|
|
31
|
-
"test:
|
|
32
|
-
"test:
|
|
33
|
-
"test:
|
|
34
|
-
"
|
|
35
|
-
"lint
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"@qualweb/
|
|
63
|
-
"@qualweb/
|
|
64
|
-
"@qualweb/
|
|
65
|
-
"@qualweb/
|
|
66
|
-
"@
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"webpack": "^5.65.0",
|
|
81
|
-
"webpack-cli": "^4.9.1"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@qualweb/best-practices",
|
|
3
|
+
"version": "0.6.14",
|
|
4
|
+
"description": "QualWeb best practices",
|
|
5
|
+
"main": "dist/bp.bundle.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/*"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"tsc": "tsc",
|
|
11
|
+
"test": "mocha",
|
|
12
|
+
"test:url": "mocha test/url.spec.mjs",
|
|
13
|
+
"test:bp1": "mocha test/best-practices/QW-BP1.spec.mjs",
|
|
14
|
+
"test:bp2": "mocha test/best-practices/QW-BP2.spec.mjs",
|
|
15
|
+
"test:bp4": "mocha test/best-practices/QW-BP4.spec.mjs",
|
|
16
|
+
"test:bp5": "mocha test/best-practices/QW-BP5.spec.mjs",
|
|
17
|
+
"test:bp6": "mocha test/best-practices/QW-BP6.spec.mjs",
|
|
18
|
+
"test:bp7": "mocha test/best-practices/QW-BP7.spec.mjs",
|
|
19
|
+
"test:bp8": "mocha test/best-practices/QW-BP8.spec.mjs",
|
|
20
|
+
"test:bp9": "mocha test/best-practices/QW-BP9.spec.mjs",
|
|
21
|
+
"test:bp10": "mocha test/best-practices/QW-BP10.spec.mjs",
|
|
22
|
+
"test:bp11": "mocha test/best-practices/QW-BP11.spec.mjs",
|
|
23
|
+
"test:bp12": "mocha test/best-practices/QW-BP12.spec.mjs",
|
|
24
|
+
"test:bp13": "mocha test/best-practices/QW-BP13.spec.mjs",
|
|
25
|
+
"test:bp15": "mocha test/best-practices/QW-BP15.spec.mjs",
|
|
26
|
+
"test:bp17": "mocha test/best-practices/QW-BP17.spec.mjs",
|
|
27
|
+
"test:bp18": "mocha test/best-practices/QW-BP18.spec.mjs",
|
|
28
|
+
"test:bp19": "mocha test/best-practices/QW-BP19.spec.mjs",
|
|
29
|
+
"test:bp20": "mocha test/best-practices/QW-BP20.spec.mjs",
|
|
30
|
+
"test:bp21": "mocha test/best-practices/QW-BP21.spec.mjs",
|
|
31
|
+
"test:bp22": "mocha test/best-practices/QW-BP22.spec.mjs",
|
|
32
|
+
"test:bp23": "mocha test/best-practices/QW-BP23.spec.mjs",
|
|
33
|
+
"test:bp24": "mocha test/best-practices/QW-BP24.spec.mjs",
|
|
34
|
+
"test:bp28": "mocha test/best-practices/QW-BP28.spec.mjs",
|
|
35
|
+
"lint": "eslint src --ext .ts",
|
|
36
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
37
|
+
"format": "prettier src/**/*.ts --write",
|
|
38
|
+
"compile:bps": "node compile-bps.js",
|
|
39
|
+
"prebuild": "rimraf prebuild && npm run compile:bps && rimraf dist",
|
|
40
|
+
"build": "tsc --build && webpack --mode production",
|
|
41
|
+
"postbuild": "rimraf prebuild",
|
|
42
|
+
"prepublishOnly": "npm run build"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/qualweb/best-practices#readme",
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/qualweb/best-practices.git"
|
|
48
|
+
},
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/qualweb/best-practices/issues"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"qualweb",
|
|
54
|
+
"best-practices",
|
|
55
|
+
"a11y",
|
|
56
|
+
"evaluation",
|
|
57
|
+
"accessibility"
|
|
58
|
+
],
|
|
59
|
+
"author": "João Vicente",
|
|
60
|
+
"license": "ISC",
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@qualweb/dom": "0.2.9",
|
|
63
|
+
"@qualweb/locale": "0.1.16",
|
|
64
|
+
"@qualweb/qw-page": "0.2.17",
|
|
65
|
+
"@qualweb/types": "0.7.25",
|
|
66
|
+
"@qualweb/util": "0.5.32",
|
|
67
|
+
"@tsconfig/recommended": "^1.0.3",
|
|
68
|
+
"@types/node": "^16.11.12",
|
|
69
|
+
"chai": "^5.0.0",
|
|
70
|
+
"eslint": "^8.56.0",
|
|
71
|
+
"mocha": "^10.2.0",
|
|
72
|
+
"prettier": "^3.1.1",
|
|
73
|
+
"puppeteer": "^21.6.1",
|
|
74
|
+
"rimraf": "^5.0.5",
|
|
75
|
+
"typescript": "^4.5.3",
|
|
76
|
+
"webpack": "^5.89.0",
|
|
77
|
+
"webpack-cli": "^4.9.1"
|
|
78
|
+
}
|
|
79
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021, FCUL
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|