@qualweb/best-practices 0.6.7 → 0.6.8
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/dist/bp.bundle.js +1 -1
- package/package.json +1 -1
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,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;window.qwPage.getElements("header:not([role]), [role=banner]").length<2?(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},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;window.qwPage.getElements("footer:not([role]), [role=contentinfo]").length<2?(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},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=window.qwPage.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.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},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;if(n){const e=window.AccessibilityUtils.getElementRole(n);e&&["presentation","none","list"].includes(e)&&(s=!0)}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},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})}}},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.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)}))}}}},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_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(920));t.QW_BP4=R.default;const j=s(n(293));t.QW_BP5=j.default;const E=s(n(914));t.QW_BP6=E.default;const w=s(n(551));t.QW_BP7=w.default;const B=s(n(371));t.QW_BP8=B.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"],"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]"}}}}')}},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,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;window.qwPage.getElements("header:not([role]), [role=banner]").length<2?(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},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;window.qwPage.getElements("footer:not([role]), [role=contentinfo]").length<2?(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},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=window.qwPage.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.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},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},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})}}},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.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)}))}}}},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_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(920));t.QW_BP4=R.default;const j=s(n(293));t.QW_BP5=j.default;const E=s(n(914));t.QW_BP6=E.default;const B=s(n(551));t.QW_BP7=B.default;const w=s(n(371));t.QW_BP8=w.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"],"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]"}}}}')}},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})})();
|