var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},__assign.apply(this,arguments)},__awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function u(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):i(e.value).then(a,u)}l((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(a=2&r[0]?o.return:r[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,r[1])).done)return a;switch(o=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,o=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){l.label=r[1];break}if(6===r[0]&&l.label<a[1]){l.label=a[1],a=r;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(r);break}a[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],o=0}finally{i=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}var i,o,a,u,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u},__rest=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},__read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e){var t=e.resolve,r=(e.reject,e.params);e.filteredElements;return E.enabled&&r.reset?(A.isSmartContrastEnabled()||i(),E.autofix&&A.enable(),void(UserWayWidgetApp.ContextHolder.remediationResources?(M.acceptedFixes=UserWayWidgetApp.ContextHolder.remediationResources.Contrast||[],l().then(t)):t())):t()}function t(){var e=function(e){return e.hasAttribute("data-uw-rm-ignore")},t=["SVG","SCRIPT","IMG","STYLE"],r=[],n=document.body,i=D(),o=function(e){return i.includes(w.xpath(e))},a=function(e){return e.hasAttribute(I)};s(n)&&a(n)&&r.push(n);var u=function(n){n.children&&Array.from(n.children).forEach(function(n){var i=n.tagName.toUpperCase();if(!t.includes(i)&&!e(n))return a(n)||!s(n)||o(n)||r.push(n),n.childNodes&&u(n)})};return u(n),r}function r(){[].slice.call(document.querySelectorAll("["+I+"="+O.AUTOFIX+"]")).forEach(function(e){e.setAttribute(I,O.PARSED),x.resetInlineStyles(e,I,L)}),E.autofix=!1}function n(){var e=Object.keys(O).map(function(e){return O[e]}).filter(function(e){return e!==O.SET}).map(function(e){return"["+I+"="+e+"]"}).join(", ");[].slice.call(document.querySelectorAll(e)).forEach(function(e){e.getAttribute(I)===O.AUTOFIX&&x.resetInlineStyles(e,I,L),e.removeAttribute(I)}),M.foundedIssues=[],M.contrastIssues=[]}function i(){[].slice.call(document.querySelectorAll("["+I+"]")).forEach(function(e){e.setAttribute(I,O.PARSED),x.resetInlineStyles(e,I,L)})}function o(){return M.foundedIssues.filter(function(e){var t=e.xpath;return!M.acceptedFixes.find(function(e){return e.xpath===t})})}function a(e){var t=e.callbackAggregator,r=e.items,n=e.resolve,i=e.reject;return __awaiter(this,void 0,void 0,function(){var e,o,a;return __generator(this,function(l){switch(l.label){case 0:e=function(){var e=M.foundedIssues.concat(U());t.onHelperRemediationCompleted(_.of(v,{items:function(e){return e.map(function(e){return __assign(__assign({},e),{contrastData:__assign(__assign({},e.contrastData),{backgroundColorParentElement:null})})})}(e),acceptedFixes:D(),autofix:E.autofix},null,M.foundedIssues.length,0))},o=E.autofix||A.isSmartContrastEnabled(),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,u(r,o,e)];case 2:return l.sent(),[3,4];case 3:return a=l.sent(),i(a),[3,4];case 4:return n(),[2]}})})}function u(e,t,r){return __awaiter(this,void 0,void 0,function(){var n,i,o,a,u;return __generator(this,function(l){switch(l.label){case 0:n=D(),i=function(e){return n.includes(w.xpath(e))},o=0,l.label=1;case 1:if(!(o<e.length))return[3,6];a=e[o],l.label=2;case 2:return l.trys.push([2,4,,5]),[4,d(a)];case 3:return l.sent(),i(a)||a.setAttribute(I,O.PARSED),[3,5];case 4:throw u=l.sent(),console.error("Error in the Color Contrast helper:",u),u;case 5:return o++,[3,1];case 6:return c(),M.foundedIssues=M.foundedIssues.concat(M.contrastIssues.slice()),M.contrastIssues=[],r&&r(),t&&A.autofixAllIssues(),[2]}})})}function l(){return __awaiter(this,void 0,void 0,function(){var e,t;return __generator(this,function(r){switch(r.label){case 0:return W||!M.acceptedFixes.length?[3,2]:[4,Promise.all(M.acceptedFixes.map(y))];case 1:e=r.sent(),t=e.filter(Boolean),k(t),A.fixIssues(M.acceptedFixes,!1),W=!0,r.label=2;case 2:return[2]}})})}function c(){var e=function(e,t,r){void 0===e&&(e=4.5);var n=0;return n=r?(e+.05)*(t+.05)-.05:(t+.05)/e-.05,n<0?0:n>1?1:n},t=function(t,r,n,i){void 0===i&&(i=!1);var o=new j,a=new F(t),u=new F(r),l=function(){var e=a.isLight(),t=u.isLight();if(e&&t||!e&&!t){if(a.luminance===u.luminance){var r=0===a.luminance,n=1===a.luminance;return!(!r||!i)||(!n||!i)&&e}return a.luminance>u.luminance}return e}(),c=e(n,u.luminance,l),s=t.slice(0,3).map(Number),d=o.rgbToXyz(s),f=__read(o.xyzToLab(d),3),p=(f[0],f[1]),h=f[2],m=o.findL(c)+(l?1:-1);return"rgb("+o.labToRgb([m,p,h]).join(",")+")"},r=[];(function(e,t){var r=function(e){return e[t]},n=t.split(".");return n.length>1&&(r=function(e){return n.reduce(function(e,t){return e[t]},e)}),e.reduce(function(e,t){var n=r(t),i=e.get(n)||[];return e.set(n,__spreadArray(__spreadArray([],__read(i),!1),[t],!1)),e},new Map)})(M.contrastIssues,"contrastData.backgroundColorParentElement").forEach(function(e,t){var n=__read(e),i=n[0],o=n.slice(1);!o.length||o.every(function(e){return e.contrastData.foreground[4]===i.contrastData.foreground[4]})?r.push(__assign(__assign({},i),{tagName:t.tagName,xpath:w.xpath(t),childrenIssues:e.map(function(e){return e.xpath})})):r=r.concat(e)}),M.contrastIssues=r.map(function(e){var r,n=e.expectedRatio,i=e.contrastData,o=i.foreground,a=i.background,u=a[4],l=new F(a);r=t(o,a,n);var c=f(r);return new F(c).contrast(l).ratio<n&&(u=t(a,c,n,!0)),__assign(__assign({},e),{suggestion:{foreground:r,background:u}})})}function s(e){var t=!1;return!!e&&(Array.from(e.childNodes).some(function(e){var r=e.nodeType,n=e.nodeValue;return 3===r&&n.length>0&&-1===n.search(/^\s+$/i)&&(t=!0)}),(e instanceof HTMLInputElement&&e.value.length>0||e instanceof HTMLSelectElement&&e.options.length>0)&&(t=!0),t)}function d(e){return __awaiter(this,void 0,void 0,function(){var t,r,n,i;return __generator(this,function(o){switch(o.label){case 0:return t=p(e),[4,h(e)];case 1:return r=o.sent(),(n=r.backgroundColor,i=r.targetElement,t.join("")===n.join(""))?[2]:("0"===n[3]&&(n=["255","255","255","1","rgb(255, 255, 255)"]),C(i)&&(i=e),1===parseFloat(n[3])&&g(e,t,n,i),[2])}})})}function f(e){if(!e)return["0","0","0","0","rgba(0,0,0,0)"];var t=e.replace(/[^\d,.]/g,"").split(",");return t[3]||(t[3]="1"),t[4]=e,t}function p(e){return f(getComputedStyle(e).color)}function h(e){return __awaiter(this,void 0,void 0,function(){var t,r,n,i,o,a,u,l,c,s,d,p;return __generator(this,function(g){switch(g.label){case 0:if(t=getComputedStyle(e),r=document.body===e,n=t.background.indexOf("linear-gradient")>-1,i=t.backgroundImage.indexOf("url")>-1||t.background.indexOf("url")>-1,o=new RegExp(/rgba?\(((25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,\s*?){2}(25[0-5]|2[0-4]\d|1\d{1,2}|\d\d?)\s*,?\s*([01]\.?\d*?)?\)/g),a=function(e){return"rgba(0, 0, 0, 0)"===e||"transparent"===e},!r&&a(t.backgroundColor)&&!n&&!i)return[2,h(e.parentElement)];if(n&&a(t.backgroundColor)&&(u=(t.background.match(o)||[]).find(function(e){return!a(e)})),!i||!a(t.backgroundColor))return[3,6];if(l=[".svg"],c=l.some(function(e){return-1!==t.backgroundImage.indexOf(e)||-1!==t.background.indexOf(e)}))return[2,h(e.parentElement)];s=t.backgroundImage.indexOf("url")>-1?t.backgroundImage.slice(4,-1).replace(/['"]/g,""):t.background.match(/url\(["']?([^"']*)["']?\)/)[1],g.label=1;case 1:return g.trys.push([1,3,,5]),[4,m(s)];case 2:return u=g.sent(),[3,5];case 3:return d=g.sent(),[4,h(e.parentElement)];case 4:return[2,g.sent()];case 5:if("rgb(0,0,0)"===u)return[2,h(e.parentElement)];g.label=6;case 6:return p=f(u||t.backgroundColor),(+t.opacity<1||"none"!==t.filter)&&(p[3]=".1"),[2,{backgroundColor:p,targetElement:e}]}})})}function m(e){return new Promise(function(t,r){var n=document.createElement("canvas").getContext("2d"),i=new Image,o=function(e){return"rgb("+e.join(",")+")"};i.setAttribute("crossOrigin",""),i.src=e,i.addEventListener("load",function(){var e;n.imageSmoothingEnabled=!0,n.drawImage(i,0,0),e=n.getImageData(0,0,1,1).data.slice(0,3),t(o(e))}),i.addEventListener("error",function(t){console.warn("Image color recognition error:",e),r(t)})})}function g(e,t,r,n){var i={ratio:null,contrastRatio:null},o=new F(t),a=new F(r),u=o.contrast(a),l=u.ratio;if(l){i.ratio=Number(l),i.contrastRatio=l+":1";var c=window.getComputedStyle(e),s=c.getPropertyValue("font-size"),d=c.getPropertyValue("font-weight"),f=72*Number(s.substring(0,s.length-2))/96,p=f>=18||f>=14&&("bold"===d||parseInt(d)>=700),h=function(e){if(R){if(e&&l<4.5)return 4.5;if(l<7)return 7}return e&&l<3?3:l<4.5?4.5:null}(p);if(!h)return;M.contrastIssues.push({contrastData:{passRatio:h,ratio:b(i.ratio),foreground:t,background:r,backgroundColorParentElement:n},isLightFg:o.isLight(),isLightBg:a.isLight(),expectedRatio:h,tagName:e.tagName,xpath:w.xpath(e),fontSize:f})}}function y(e){var t=e.background,r=e.foreground,n=e.xpath;return __awaiter(this,void 0,void 0,function(){var e,i,o,a,u,l,c,s,d,f,m;return __generator(this,function(g){switch(g.label){case 0:return(e=S.recursiveXpathSearch(n))&&"boolean"!=typeof e?(i=p(e),[4,h(e)]):[2];case 1:return o=g.sent(),a=o.backgroundColor,u=o.targetElement,C(u)&&(u=e),l=window.getComputedStyle(e),c=l.getPropertyValue("font-size"),s=l.getPropertyValue("font-weight"),d=72*Number(c.substring(0,c.length-2))/96,f=d>=18||d>=14&&("bold"===s||parseInt(s)>=700),m=f?3:4.5,[2,{contrastData:{passRatio:m,ratio:m,foreground:i,background:a,backgroundColorParentElement:u},suggestion:{foreground:r,background:t},expectedRatio:m,tagName:e.tagName,xpath:n,fontSize:d}]}})})}function b(e){if(-1!==(e=String(e)).indexOf(".")){var t=e.split(".");return 1===t.length?Number(e):Number(t[0]+"."+t[1].charAt(0)+t[1].charAt(1))}return Number(e)}var v="REMEDIATION_COLOR_CONTRAST",A=UserWayWidgetApp.addLib(v),_=UserWayWidgetApp.getLib("remediation_helper_outcome"),E=UserWayWidgetApp.getLib("remediationConfig").contrast,w=UserWayWidgetApp.getLib("util"),x=UserWayWidgetApp.getLib("inlineStyling"),S=UserWayWidgetApp.getLib("xpath_search"),I="data-uw-rm-color-contrast",O={SMART_CONTRAST:"smc",AUTOFIX:"afix",PARSED:"prs",SET:"set"},L={color:"",background:""},N=!1,W=!1,R=!1,C=function(e){var t=getComputedStyle(e);return t.backgroundImage.indexOf("url")>-1||t.background.indexOf("url")>-1},T={},k=function(e){e.forEach(function(e){T[e.xpath]=e})},U=function(e){return Object.keys(T).filter(function(t){return!e||e.includes(t)}).map(function(e){return T[e]})},P=function(){T={}},M={foundedIssues:[],contrastIssues:[],acceptedFixes:[]},D=function(){return M.acceptedFixes.map(function(e){return e.xpath})},H=function(e){return e.hasAttribute(I)&&[O.AUTOFIX,O.SET].includes(e.getAttribute(I))};A.isSmartContrastEnabled=function(){return!!R},A.isEnabled=function(){return N},A.getScannerRuleId=function(){return"R_43"},A.enable=function(){N=!0},A.disable=function(){N=!1},A.enableSmartContrast=function(){n(),R=!0,A.enable()},A.disableSmartContrast=function(){n(),R=!1,A.disable()},A.filter=function(e,r){return N||E.autofix?(r.reset&&!A.isSmartContrastEnabled()&&i(),t()):[]},A.awaitForResources=function(t,r){return new Promise(function(n,i){e({resolve:n,reject:i,params:r,filteredElements:t})})},A.doRemediation=function(e,t){return new Promise(function(r,n){if(!t.length)return r(null);setTimeout(function(){return a({callbackAggregator:e,items:t,resolve:r,reject:n})},w.DELAYS.LONG)})},A.fixIssues=function(e,t){void 0===t&&(t=!0);var r=[];if(e.forEach(function(e){var t=e.xpath&&S.recursiveXpathSearch(e.xpath);if(t&&"boolean"!=typeof t){var n=e.childrenIssues,i=void 0===n?[]:n,o=__rest(e,["childrenIssues"]),a=i.map(function(e){return S.recursiveXpathSearch(e)}).filter(function(e){return!!e&&"boolean"!=typeof e});if(a.length)x.applyInlineStyles(t,I,{background:e.background}),t.setAttribute(I,O.SET),a.forEach(function(t,n){x.applyInlineStyles(t,I,{color:e.foreground}),t.setAttribute(I,O.SET),r.push(__assign(__assign({},o),{xpath:e.childrenIssues[n]}))});else{var u={color:e.foreground,background:e.background};x.applyInlineStyles(t,I,u),t.setAttribute(I,O.SET),r.push(e)}}}),t){M.acceptedFixes=M.acceptedFixes.concat(r);var n=D(),i=M.foundedIssues.filter(function(e){var t=e.xpath;return n.includes(t)});k(i),M.foundedIssues=M.foundedIssues.filter(function(e){var t=e.xpath;return!n.includes(t)})}},A.autofixAllIssues=function(){o().forEach(function(e){var t=e.xpath&&S.recursiveXpathSearch(e.xpath);if(t){var r=e.childrenIssues,n=void 0===r?[]:r,i=n.map(function(e){return S.recursiveXpathSearch(e)}).filter(Boolean);if(!H(t))if(i.length)x.applyInlineStyles(t,I,{background:e.suggestion.background}),t.setAttribute(I,O.AUTOFIX),i.forEach(function(t,r){x.applyInlineStyles(t,I,{color:e.suggestion.foreground}),t.setAttribute(I,O.AUTOFIX)});else{var o={color:e.suggestion.foreground,background:e.suggestion.background};x.applyInlineStyles(t,I,o),t.setAttribute(I,O.AUTOFIX)}}}),A.isSmartContrastEnabled()||(E.autofix=!0)},A.resetAutofixed=r,A.resetIssuesFixes=function(){i(),M.acceptedFixes=[],M.foundedIssues=M.foundedIssues.concat(U()),P()},A.run=u;var F=function(){function e(e){if(this.rgba=null,"transparent"===e)this.rgba=[0,0,0,0];else if("string"==typeof e){var t=e.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);if(!t)throw new Error("Invalid string: "+e);t.shift()}0===e[3]&&(e[3]=1),this.rgba=e.map(function(e){return q(e,3)})}return Object.defineProperty(e.prototype,"rgb",{get:function(){return this.rgba.slice(0,3)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.rgba[3]},set:function(e){this.rgba[3]=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"luminance",{get:function(){for(var e=this.rgba.slice(),t=0;t<3;t++){var r=e[t];r=(r/=255)<.03928?r/12.92:Math.pow((r+.055)/1.055,2.4),e[t]=r}return.2126*e[0]+.7152*e[1]+.0722*e[2]},enumerable:!1,configurable:!0}),e.prototype.clone=function(){return new e(this.rgba)},e.prototype.isLight=function(){var e=(this.luminance+.05)/.05;return 1.05/(this.luminance+.05)<e},e.prototype.overlayOn=function(e){var t=this.clone(),r=this.alpha;if(r>=1)return t;for(var n=0;n<3;n++)t.rgba[n]=t.rgba[n]*r+e.rgba[n]*e.rgba[3]*(1-r);return t.rgba[3]=r+e.rgba[3]*(1-r),t},e.prototype.contrast=function(e){var t={ratio:null};if(this.alpha<1)return t;e.alpha<1&&(e=e.overlayOn(this));var r=this.luminance+.05,n=e.luminance+.05,i=r/n;return t.ratio=n>r?1/i:i,t},e}(),q=function(e,t){var r=Math.pow(10,t||0);return Math.round(e*r)/r},j=function(){function e(){this.D65=[95.047,100,108.883]}return e.prototype.rgbToXyz=function(e){var t=__read(e.map(function(e){return e/255}).map(this.sRGBtoLinearRGB),3),r=t[0],n=t[1],i=t[2];return[.4124*r+.3576*n+.1805*i,.2126*r+.7152*n+.0722*i,.0193*r+.1192*n+.9505*i].map(function(e){return 100*e})},e.prototype.sRGBtoLinearRGB=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},e.prototype.xyzToLab=function(e){var t,r=this,n=__read(e,3),i=n[0],o=n[1],a=n[2];return t=__read([i,o,a].map(function(e,t){return e/=r.D65[t],e>.008856?Math.pow(e,1/3):7.787*e+16/116}),3),i=t[0],o=t[1],a=t[2],[116*o-16,500*(i-o),200*(o-a)]},e.prototype.findL=function(e){return 116*Math.pow(e,1/3)-16},e.prototype.labToRgb=function(e){var t,r,n,i=(e[0]+16)/116,o=e[1]/500+i,a=i-e[2]/200;return o=.95047*(o*o*o>.008856?o*o*o:(o-16/116)/7.787),i=1*(i*i*i>.008856?i*i*i:(i-16/116)/7.787),a=1.08883*(a*a*a>.008856?a*a*a:(a-16/116)/7.787),t=3.2406*o+-1.5372*i+-.4986*a,r=-.9689*o+1.8758*i+.0415*a,n=.0557*o+-.204*i+1.057*a,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*Math.max(0,Math.min(1,t)),255*Math.max(0,Math.min(1,r)),255*Math.max(0,Math.min(1,n))].map(function(e){return q(e)})},e}()}(),function(){function e(){var e=document.querySelector("["+u+"]");null===e||void 0===e||e.removeAttribute(u)}function t(){var e,t=document.querySelector("title");return!t||!(null===(e=t.innerHTML)||void 0===e?void 0:e.trim())&&!t.hasAttribute(u)}function r(){var e=function(e){return e.length>1?e.slice(0,-1):e},t=window.location,r=t.hostname,n=t.href,i=t.host,o=r.replace("www.","").split("."),a=e(o).join("-"),u=n.split(i).pop().split("/").join(" "),l=u.split("?"),c=e(l).join(" ").replace(/^\d+|\s\d+/g,"").trim();return(c+(c?" - ":" ")+a).trim()}function n(e){var t=e.callbackAggregator,n=e.resolve,o=e.reject,c=e.items;try{c.forEach(function(e){var t=r(),n=e.querySelector("title");if(n)n.innerHTML=t;else{var i=e.createElement("title");i.innerHTML=t,e.head.appendChild(i)}e.querySelector("title").setAttribute(u,t?l.GENERIC:l.UNKNOWN)}),t.onHelperRemediationCompleted(a.of(i,null,null,c.length,0)),n()}catch(e){o(e)}}var i="REMEDIATION_HEADER_TITLE",o=UserWayWidgetApp.addLib(i),a=UserWayWidgetApp.getLib("remediation_helper_outcome"),u="data-uw-rm-title",l={UNKNOWN:"un",GENERIC:"gn"};o.getScannerRuleId=function(){return"R_25"},o.filter=function(r,n){return n.reset&&e(),t()?[document]:[]},o.awaitForResources=function(){return Promise.resolve()},o.doRemediation=function(e,t){return new Promise(function(r,i){n({callbackAggregator:e,items:t,resolve:r,reject:i})})}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},__assign.apply(this,arguments)},__rest=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},__read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e,t){t.hidden&&e.setAttribute("aria-hidden","true"),t.correction&&(e.alt=t.correction),"heading"===t.role&&e.setAttribute("aria-label",e.alt)}function t(e,t){t.hidden&&e.setAttribute("aria-hidden","true"),t.correction&&e.setAttribute("aria-label",t.correction)}function r(e,t){window.location.hostname.includes("nuance")&&("link"!==t&&"button"!==t||e.addEventListener("keydown",I))}function n(e,t){var n=t.tabindex,i=t.role,o=t.ariaLevel;n&&e.setAttribute("tabindex",n),i&&(e.setAttribute("role",i),r(e,i)),o&&e.setAttribute("aria-level",o)}function i(e){var t=e.data.data,r=E.recursiveXpathSearch(t.xpath);r&&r.removeAttribute(S),x=x.filter(function(e){var r=e.xpath,n=e.page;return r!==t.xpath||n!==t.page}),x.push(e.data.data)}function o(r,i,o,a,u){var l=""+A.hashString(window.location.pathname);try{var c=[],s=[];x.forEach(function(e){null==e.page?c.push(e):e.page===l&&s.push(e)}),s.concat(c).forEach(function(r){var i=E.recursiveXpathSearch(r.xpath);if(i&&"function"==typeof i.setAttribute&&!i.hasAttribute(S)){i.tagName&&"img"===i.tagName.toLowerCase()?e(i,r):t(i,r),n(i,r),i.setAttribute(S,"")}}),i()}catch(e){o(e)}}function a(e){return e.querySelectorAll?Array.prototype.slice.call(e.querySelectorAll("a, input, button, select, textarea, *[tabindex]")).filter(function(e){return"function"==typeof e.getAttribute&&-1!=e.getAttribute("tabindex")}):[]}function u(e,t){function r(e){if(e&&e.nextElementSibling){var t=e.nextElementSibling;return-1===i.indexOf(t.tagName.toUpperCase())?t:r(t)}return null}function n(e){if(e&&e.previousElementSibling){var t=e.previousElementSibling;return-1===i.indexOf(t.tagName.toUpperCase())?t:n(t)}return null}void 0===t&&(t="");var i=["STYLE","SCRIPT"],o=!!a(e).length,u=[],h=0;u.push(e),u.push(e.parentElement);var g=(null===e||void 0===e?void 0:e.children)?[].slice.call(e.children).filter(function(e){return-1===i.indexOf(e.tagName.toUpperCase())}).reverse():[];g.length&&(u.splice.apply(u,__spreadArray([0,0],__read(g),!1)),h+=g.length);var y=r(e);y&&-1===u.indexOf(y)&&(u.splice(h,0,y),h++);var b=n(e);b&&-1===u.indexOf(b)&&u.splice(h+1,0,b);var v=function(e){if(!(null===e||void 0===e?void 0:e.parentElement))return null;var t=e.parentElement,r=l(t);return _.nodes.find(function(e){return e.id===r})?r:v(t)},E=u.map(function(t,r){var n,i=null===(n=t.tagName)||void 0===n?void 0:n.toLowerCase(),o=_.buildAccessibilityTreeNode(t,!0);if(!o)return null;var a=o.type,u=o.label,c=o.id,p=t.getAttribute?{label:("img"===i?t.getAttribute("alt"):t.getAttribute("aria-label"))||null,isHidden:"true"===t.getAttribute("aria-hidden")||"presentation"===t.getAttribute("role"),role:t.getAttribute("role")||null,ariaLevel:t.getAttribute("aria-level")||null,src:"img"===i?t.getAttribute("src"):null,isControl:s(t),focusable:f(t),tabindex:d(t)}:{};return __assign({tagName:i,text:[].slice.call(t.childNodes).filter(function(e){return 3===e.nodeType}).map(function(e){return e.textContent.trim()}).join(" ").trim(),id:c,xpath:A.xpath(t),selected:t===e,el:t,semanticType:a,textToRead:u,uwAtoId:l(t),closestParentUwAtoId:v(t),closestChildUwAtoId:function(e){var t,r,n=null===(t=[].find.call(e.childNodes,function(e){return e.uwAtoId}))||void 0===t?void 0:t.uwAtoId;if(n)return null===(r=_.nodes.find(function(e){return e.id===n}))||void 0===r?void 0:r.id}(t)},p)}).filter(Boolean).reverse(),w=c(E[0],E);w&&(p("elements-selected",{tree:w,hasInteractiveElements:o,source:t}),m=E)}function l(e){var t;return null!==(t=e.uwAtoId)&&void 0!==t?t:null}function c(e,t){if(e){var r=(e.tabindex,e.el,__rest(e,["tabindex","el"])),n=[].slice.call(e.el.children||[]),i=t.filter(function(e){return-1!==n.indexOf(e.el)});return i.length&&(r.children=i.map(function(e){return c(e,t)})),r}}function s(e){return-1!==["input","select","button","textarea","a"].indexOf(e.tagName.toLowerCase())||-1!==["button","checkbox","link","option"].indexOf((e.getAttribute("role")||"").toLowerCase())}function d(e){if(e.hasAttribute("tabindex"))try{return parseInt(e.getAttribute("tabindex"))}catch(e){return}}function f(e){if(s(e))return!0;var t=d(e);return!isNaN(t)&&t>=0}function p(e,t){h.contentWindow.postMessage({isUserWay:!0,action:"aria-editor",type:e,data:t},"*")}var h,m,g,y=UserWayWidgetApp.addLib("REMEDIATION_ARIA_EDITOR"),b=UserWayWidgetApp.getLib("remediationConfig").ariaEditor||{},v=UserWayWidgetApp.getLib("main"),A=UserWayWidgetApp.getLib("util"),_=UserWayWidgetApp.getLib("accessibility_tree_observer"),E=UserWayWidgetApp.getLib("xpath_search"),w=UserWayWidgetApp.getLib("remediation_util"),x=[],S="data-uw-rm-aria";y.getScannerRuleId=function(){return null},y.filter=function(e,t){return[]},y.awaitForResources=function(e,t){return new Promise(function(e,r){return b.enabled&&t.reset?UserWayWidgetApp.ContextHolder.remediationResources?(x=UserWayWidgetApp.ContextHolder.remediationResources.AriaEditorValues,e()):b.resources?void A.request({method:"GET",url:b.resources}).then(function(t){t&&t.response&&(x=JSON.parse(t.response).AriaEditorValues),e()}).catch(function(e){r(e)}):e():e()})},y.doRemediation=function(e,t,r){return new Promise(function(n,i){o(e,n,i,t,r)})};var I=function(e){var t=e.target;if(w.keys.isSpace(e)||w.keys.isEnter(e)){if(t.click)return void t.click();e.path[1].click()}};y.updateCorrections=i,y.apply=function(){},y.addEditorIframe=function(){var e=document.querySelector('iframe[name="uwAccessibilityEditor"]');e||(g=new Promise(function(t,r){e=document.createElement("iframe"),e.setAttribute("class","userway_iframe_aria_editor"),e.setAttribute("name","uwAccessibilityEditor"),e.setAttribute("title","Aria Editor"),e.setAttribute("style","z-index: 2147483647;position:fixed;left:0;top:0;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;visibility:hidden;opacity:0!important;border:none;"),e.setAttribute("src","https://cdn.userway.org/aria_editor/2022-09-26-10-20-19/index.html?rand="+ +new Date),e.onload=function(){t()},document.body.appendChild(e),h=e}))},y.onAriaEditorInit=function(e){var t=UserWayWidgetApp.ContextHolder.config.services,r=!(!t||!t.CUSTOM_BRANDING&&!t.WHITE_LABEL);p("open-aria-editor",{showTutorial:!0,hash:A.hashString(window.location.pathname),siteId:UserWayWidgetApp.ContextHolder.config.services.siteId,apiUrl:"https://api.userway.org/api",whiteLabel:r})},y.openAriaEditor=function(e){g.then(function(){v.closeWidget(),v.manageIconVisibility("hidden"),h.style.visibility="visible",h.style.opacity="1",p("aria-editor-open-request")})},y.closeAriaEditor=function(e){v.openWidget(),v.manageIconVisibility("visible"),h.style.visibility="hidden",h.style.opacity="0",p("aria-editor-closed")},y.selectElementsAtPoint=function(e){var t=e.data.data,r=t.position,n=document.elementsFromPoint(r.x,r.y),i=n.indexOf(h);-1!==i&&n.splice(i,1),n=n.filter(function(e){return-1===["HTML","BODY"].indexOf(e.tagName)}).slice(0,2),n.length&&u(n[0])},y.selectElementById=function(e){var t,r,n=null!=(null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.id)&&_.nodes&&_.nodes.find(function(t){return t.id===e.data.id});n&&u(n.el,null===(r=null===e||void 0===e?void 0:e.data)||void 0===r?void 0:r.source)},y.selectElementsByElementId=function(e){var t,r=e.data.id,n=m.find(function(e){return e.id===r});n&&u(n.el,null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.source)},y.updateAriaLabel=function(e){var t=e.data;if(null!=t.idx&&null!=t.label){var r=m.find(function(e){return e.id===t.idx});r&&r.el&&"function"==typeof r.el.setAttribute&&r.el.setAttribute("aria-label",t.label)}},y.updateAriaLevel=function(e){var t=e.data;if(null!=t.idx){var r=m.find(function(e){return e.id===t.idx});r&&r.el&&"function"==typeof r.el.setAttribute&&(t.ariaLevel?r.el.setAttribute("aria-level",t.ariaLevel):r.el.removeAttribute("aria-level"))}},y.updateRole=function(e){var t=e.data;if(null!=t.idx){var r=m.find(function(e){return e.id===t.idx});r&&r.el&&"function"==typeof r.el.setAttribute&&r.el["none"===t.role?"removeAttribute":"setAttribute"]("role",t.role)}},y.updateTabindex=function(e){var t=e.data;if(null!=t.idx){var r=m.find(function(e){return e.id===t.idx});r&&r.el&&"function"==typeof r.el.setAttribute&&(t.isControl?r.el[t.focusable?"removeAttribute":"setAttribute"]("tabindex",-1):r.el[t.focusable?"setAttribute":"removeAttribute"]("tabindex",0))}},y.updateAriaHidden=function(e){var t=e.data;if(null!=t.idx){var r=m.find(function(e){return e.id===t.idx});r&&r.el&&"function"==typeof r.el.setAttribute&&(t.hidden?r.el.setAttribute("aria-hidden","true"):r.el.removeAttribute("aria-hidden"))}}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(){[].slice.call(document.querySelectorAll("["+i+"]")).forEach(function(e){e.removeAttribute(i)})}function t(e,t,r,o,a){try{for(var u=0,l=0;l<t.length;l++){var c=t[l];if(!c.hasAttribute(i))if("IFRAME"===c.nodeName){var s=c.getAttribute("src");s&&(s.toLowerCase().indexOf("youtube.com")||s.toLowerCase().indexOf("vimeo.com"))&&(s.indexOf("autoplay=1")>-1||s.indexOf("autoplay=true"))&&(s.indexOf("mute=1")>-1||s.indexOf("mute=true")>-1)&&(c.setAttribute(i,"if"),u++)}else"VIDEO"===c.nodeName&&c.hasAttribute("autoplay")&&c.hasAttribute("muted")&&(c.setAttribute(i,"vi"),u++)}e.onHelperRemediationCompleted(n.of("REMEDIATION_AUTO_PLAY_VIDEO",null,null,u,0)),o()}catch(e){a(e)}}var r=UserWayWidgetApp.addLib("REMEDIATION_AUTO_PLAY_VIDEO"),n=UserWayWidgetApp.getLib("remediation_helper_outcome"),i="data-uw-rm-av";r.getScannerRuleId=function(){return"R_70"},r.filter=function(e){return[].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("iframe[src], video"))})),!1))},r.awaitForResources=function(t,r){return r.reset?(e(),Promise.resolve()):Promise.resolve()},r.doRemediation=function(e,r,n){return new Promise(function(i,o){t(e,r,n,i,o)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e){e.forEach(function(e){y[e.page+e.href]=e})}function t(){f=new Set,p=new Set,h=new Set,[].slice.call(document.querySelectorAll("["+g+"]")).forEach(function(e){e.removeAttribute(g)})}function r(e,t){var r=" - target website may not be available",n=e.hasAttribute("aria-label")?e.getAttribute("aria-label"):null;if(!(n&&n.indexOf(r)>-1)){var i=n||t,o=i?i+r:r;return e.setAttribute("aria-label",o),e.setAttribute(g,"true"),o}}function n(e){var t={originalHref:"",normalizedHref:""},r=e.href&&e.href.trim();return r.length?(t.originalHref=r,t.normalizedHref=r.split("?")[0].split("#")[0],t):t}function i(e){var t=e.href&&e.href.trim();return t.length?t=t.split("?")[0].split("#")[0]:""}function o(e){try{var t=e.hostname;return m.indexOf(t)>-1}catch(e){return!1}}function a(e){return e.filter(function(e){if(!e||e.nodeType!==Node.ELEMENT_NODE||"A"!==e.nodeName)return!1;if(e.hasAttribute(g))return!1;var t=n(e).originalHref;return t?/(^tel:|^mailto:)/.test(t)?(e.setAttribute(g,"exc"),!1):/^(http|https):/.test(t)?!/\.pdf/.test(t)&&(!/wp-admin/.test(t)&&(!o(e)||(e.setAttribute(g,"exc"),!1))):(e.setAttribute(g,"exc"),!1):(e.setAttribute(g,"na"),!1)})}
var u=UserWayWidgetApp.addLib("REMEDIATION_BROKEN_LINK"),l=UserWayWidgetApp.getLib("remediationConfig").brokenLinks||{},c=UserWayWidgetApp.getLib("remediation_utils"),s=UserWayWidgetApp.getLib("remediation_helper_outcome"),d=UserWayWidgetApp.getLib("util"),f=new Set,p=new Set,h=new Set,m=["localhost","userway.dev","linkedin.com","www.linkedin.com","youtube.com","www.youtube.com"],g="data-uw-rm-brl",y={};u.getScannerRuleId=function(){return"R_46"},u.filter=function(e,r){return r.reset&&t(),[].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("a[href]"))})),!1))},u.awaitForResources=function(t,r){return new Promise(function(r,n){if(!l.enabled)return r();var o=[];if(t=a(t),t.forEach(function(e){var t=i(e);f.has(t)||(f.add(t),o.push(t))}),!o.length)return r();c.sendBackEnd("/br-links/v0/links",null,{page:location.pathname,fullPage:location.href,links:o}).then(function(t){var n,i=t&&t.response&&JSON.parse(t.response);o.forEach(function(e,t){switch(i.statuses[t]){case 0:p.add(e);break;case 2:h.add(e)}}),(null===(n=UserWayWidgetApp.ContextHolder.remediationResources)||void 0===n?void 0:n.BrokenLink)&&e(UserWayWidgetApp.ContextHolder.remediationResources.BrokenLink),r()}).catch(function(e){return n(e)})})},u.doRemediation=function(e,t,n){t=a(t);var o=0;return new Promise(function(n,a){try{var u=[];t.forEach(function(e,t){var n=i(e),a=window.location.pathname,l=""+d.hashString(a),s=UserWayWidgetApp.ContextHolder.config.services.siteId;if(p.has(n)){var f=c.getElementAccessibleName(e),m=n,b=y[l+n];b?(b.text_correction&&(e.setAttribute("aria-label",b.text_correction),e.setAttribute("data-uw-rm-brl-text",""),f=b.text_correction),b.href_correction&&(e.setAttribute("href",b.href_correction),e.setAttribute("data-uw-rm-brl-href",""),m=b.href_correction),e.setAttribute(g,"true")):f=r(e,f),o++,u.push({href:m,text:f,pageHash:l,page:a,siteId:s})}else h.has(n)?e.setAttribute(g,"pending"):e.setAttribute(g,"false")}),e.onHelperRemediationCompleted(s.of("REMEDIATION_BROKEN_LINK",{items:u},null,o,o)),n()}catch(e){a(e)}})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e,t){if(UserWayWidgetApp.ContextHolder.remediationResources)return UserWayWidgetApp.ContextHolder.remediationResources.EmptyControls.forEach(function(e){m[l.hashString(e.xpath)]=e}),e();p.resources?l.request({method:"GET",url:p.resources}).then(function(t){t&&t.response&&(JSON.parse(t.response).EmptyControls.forEach(function(e){m[l.hashString(e.xpath)]=e}),e())},function(e){console.warn("Can't load resources."),t()}):p.enabled?e():t()}function t(){[].slice.call(document.querySelectorAll("["+g+"]")).forEach(function(e){e.removeAttribute(g)})}function r(e){return[].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll('a, [role="link"], button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]'))})),!1)).filter(function(e){return!e.hasAttribute(g)&&!c.getElementAccessibleName(e)})}function n(e,t,r,n,a){try{forPM=[],n.forEach(function(e){var t=m[l.hashString(l.xpath(e))];if(t)return o(e,t.correction,!0);if(!i(e)){var r=e.getAttribute("role");if(!Array.prototype.slice.call(e.childNodes).filter(function(e){return e.nodeType===Node.ELEMENT_NODE}).find(function(t){return i(e,t)})&&e.href&&0===e.href.indexOf("http"))return o(e,e.href.split("//")[1].split("/")[0]);if(("a"===e.tagName.toLowerCase()||"function"===e.getAttribute&&"link"===r)&&""===e.getAttribute("href")&&e.setAttribute("href","#"),"IMG"===e.tagName.toUpperCase()&&["link","button"].includes(r)){var n=e.getAttribute("alt"),a=e.getAttribute(y);return o(e,n||a)}if("BUTTON"===e.tagName.toUpperCase()||r&&"button"===r||"INPUT"===e.tagName.toUpperCase()&&"button"===e.type)return o(e,"button");if("INPUT"===e.tagName.toUpperCase()&&"submit"===e.type)return o(e,"submit");if("INPUT"===e.tagName.toUpperCase()&&"reset"===e.type)return o(e,"reset");o(e,"Open this option")}}),e.onHelperRemediationCompleted(d.of("REMEDIATION_EMPTY_CONTROLS",{items:forPM},null,n.length,forPM.filter(function(e){return!e.approved}).length)),t()}catch(e){r(e)}}function i(e,t){var r,n;t=t||e;var i=b.find(function(e){return!!t.href&&-1!==t.href.indexOf(e)});if(i)return o(e,i);var a=Array.prototype.slice.call(t.children);a.push(t);var u=[];try{for(var l=__values(a),c=l.next();!c.done;c=l.next()){var s=c.value;u=u.concat(Array.prototype.slice.call(s.classList).map(function(e){return e.toLowerCase()}))}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}var d=b.find(function(e){return u.find(function(t){return-1!==t.indexOf(e)})&&e});if(d||A.find(function(e){return u.find(function(t){var r=e.re.test(t)&&t.replace(e.re,e.replacer);if(r)return d=r,!0})}),d)return o(e,d);var f=/^url\("(.+)"\)$/.exec(window.getComputedStyle(t).backgroundImage);f=f&&f.length>1?f[1]:"";var p=b.find(function(e){return-1!==f.indexOf(e)});if(p)return o(e,p);var h=Object.keys(v).find(function(e){return u.find(function(t){return-1!==t.indexOf(e)})}),m=h?v[h]:null;return!!m&&o(e,m)}function o(e,t,r){(r||h)&&e.setAttribute("aria-label",t),e.setAttribute(g,"");e.querySelector("img");return forPM.push({correction:t,approved:!!r,xpath:l.xpath(e),name:a(e)}),!0}function a(e){var t=e.tagName.toLowerCase(),r=e.hasAttribute("type")?e.getAttribute("type"):"",n=e.hasAttribute("role")?e.getAttribute("role"):"";return-1!==["a","button"].indexOf(t)?"a"===t?"<link>":"<button>":"input"===t&&-1!==["button","submit","reset"].indexOf(r)?"<input>":"link"===n?"<link> (role)":"<button> (role)"}var u=UserWayWidgetApp.addLib("REMEDIATION_EMPTY_CONTROLS"),l=UserWayWidgetApp.getLib("util"),c=UserWayWidgetApp.getLib("remediation_utils"),s=UserWayWidgetApp.getLib("xpath_search"),d=UserWayWidgetApp.getLib("remediation_helper_outcome"),f=UserWayWidgetApp.getLib("remediationConfig"),p=f.emptyControls||{},h=!f.strategy||"AUTO"===f.strategy,m={},g="data-uw-rm-empty-ctrl",y="data-uw-rm-ima-original",b=["Facebook","YouTube","WhatsApp","Instagram","Twitter","Reddit","LinkedIn","Viber","Pinterest","Telegram","search","cart","home"].map(function(e){return e.toLowerCase()}),v={prev:"Get previous item",next:"Get next item",scroll:"Activate for scroll",top:"Move to top",bottom:"Move to bottom",expand:"Expand this block",collapse:"Collapse this block",close:"Close this option"},A=[{re:/(fa-)(.+)/,replacer:"$2"}];u.getScannerRuleId=function(){return"R_27"},u.filter=function(e,n){return n.reset&&t(),r(e)},u.awaitForResources=function(t,r){return r.reset?new Promise(function(t,r){e(t,r)}):Promise.resolve()},u.doRemediation=function(e,t,r){return new Promise(function(i,o){n(e,i,o,t,r)})},u.updateElement=function(e){m[l.hashString(e.xpath)]=e;var t=s.recursiveXpathSearch(e.xpath);t&&o(t,e.correction)}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e,r){var n;return(null===(n=UserWayWidgetApp.ContextHolder.remediationResources)||void 0===n?void 0:n.ExternalLink)&&t(UserWayWidgetApp.ContextHolder.remediationResources.ExternalLink),e()}function t(e){e.forEach(function(e){p[r(e.href,e.term)]=e})}function r(e,t){return(e+"$"+t).toLowerCase().replace(/ /g,"")}function n(){[].slice.call(document.querySelectorAll("["+f+"]")).forEach(function(e){e.removeAttribute(f)})}function i(e){return e.filter(function(e){var t=e.href;return!(!t||!/^http/.test(t))&&(!(!e.hasAttribute("target")||"_self"===e.getAttribute("target")||!e.getAttribute("target"))&&!e.hasAttribute(f))})}function o(e,t,n,i){try{for(var o=0,u=[],l=0;l<i.length;l++){var s=i[l],h=a(s),m=void 0;if(h)if(-1===h.indexOf("new window")&&-1===h.indexOf("new tab")){var g=r(s.href,h),y=void 0;if(p[g])m=p[g].correction,y=p[g].approved,u.push(Object.assign(p[g],{id:g}));else if(!m){y=!1;var b="_blank"===s.getAttribute("target")?" - opens in new tab":" - opens in new window",v=void 0;v=s.hasAttribute("aria-label")?s.getAttribute("aria-label"):h,m=v+b,u.push({href:s.href,term:h,correction:m,approved:y,id:g})}(y||c)&&s.setAttribute("aria-label",m),s.setAttribute(f,""),s.setAttribute("uw-rm-external-link-id",g),o++}else s.setAttribute(f,"na");else s.setAttribute(f,"na")}e.onHelperRemediationCompleted(d.of("REMEDIATION_EXTERNAL_LINK_TARGETS",{items:u},null,u.length,u.length)),t()}catch(e){n(e)}}function a(e){var t=e.hasAttribute("aria-label")?e.getAttribute("aria-label"):null,r=e.hasAttribute("aria-labelledby")?e.getAttribute("aria-labelledby"):null;return t||(r?s.getLabelledByElements(r):s.composeElementTextRepresentation(e))}var u=UserWayWidgetApp.addLib("REMEDIATION_EXTERNAL_LINK_TARGETS"),l=UserWayWidgetApp.getLib("remediationConfig"),c=!l.strategy||"AUTO"===l.strategy,s=UserWayWidgetApp.getLib("util"),d=UserWayWidgetApp.getLib("remediation_helper_outcome"),f="data-uw-rm-ext-link";u.getScannerRuleId=function(){return"R_44"};var p={};u.filter=function(e,t){return t.reset&&n(),i([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("a[href]"))})),!1)))},u.awaitForResources=function(t,r){return r.reset?new Promise(function(t,r){e(t,r)}):Promise.resolve()},u.doRemediation=function(e,t,r){return new Promise(function(r,n){o(e,r,n,t)})}}(),function(){function e(){var e=UserWayWidgetApp.ContextHolder.config,t=e._userway_config.hasOwnProperty("ai_custom_focus_style_enabled");return t?t&&(!0===e._userway_config.ai_custom_focus_style_enabled||"true"===e._userway_config.ai_custom_focus_style_enabled):c.enabled}function t(e){var t={outline:c.outlineWidth+" "+c.outlineStyle+" "+c.outlineColor};return t["outline-offset"]="-"+c.outlineWidth,t}function r(e){if(!e.hasAttribute(d.ignoreElementFromHelperProcessingAttr)){var r=window.getComputedStyle(e),n=t(r);s.applyInlineStyles(e,f,n),e.setAttribute(f,"")}}function n(e){if("function"==typeof e.hasAttribute&&e.hasAttribute(f)){var r=window.getComputedStyle(e),n=t(r);s.resetInlineStyles(e,f,n),e.removeAttribute(f)}}function i(e){e.target&&h&&r(e.target)}function o(e){var t=e?"addEventListener":"removeEventListener";document[t]("mousedown",a),document[t]("keydown",u),document[t]("focusin",i),document[t]("focusout",m)}function a(e){h=!1}function u(e){h=!0}var l=UserWayWidgetApp.addLib("REMEDIATION_FOCUS_STYLE"),c=UserWayWidgetApp.getLib("remediationConfig").customFocus,s=UserWayWidgetApp.getLib("inlineStyling"),d=UserWayWidgetApp.getLib("remediation_utils"),f="data-uw-rm-outline",p={width:"2px",color:" #0018FF",style:"solid"},h=!1;l.getScannerRuleId=function(){return null},l.apply=function(){var t,r,n;if(e()){var i=null===(n=null===(r=null===(t=UserWayWidgetApp.ContextHolder)||void 0===t?void 0:t.config)||void 0===r?void 0:r.tunings)||void 0===n?void 0:n.widget_color,a=UserWayWidgetApp.getLib("remediationConfig").customFocus.style?JSON.parse(UserWayWidgetApp.getLib("remediationConfig").customFocus.style):p;c.outlineWidth=a.width,c.outlineColor=a.color||i,c.outlineStyle=a.style,setTimeout(function(){o(!0)},500)}},l.getFocusStyle=function(){return{enabled:e(),outlineWidth:c.outlineWidth||p.width,outlineColor:c.outlineColor||p.color,outlineStyle:c.outlineStyle||p.style}},l.updateOutlineStyle=function(e){if(e.data&&(e.data.update||null!=e.data.enabled)){var t=e.data.update,r=e.data.enabled;c.outlineWidth=t.width,c.outlineStyle=t.style,c.outlineColor=t.color,c.enabled!==r&&(o(c.enabled),[].slice.call(document.querySelectorAll("["+f+"]")).forEach(function(e){n(e)}),c.enabled=r)}};var m=function(e){e.target&&n(e.target)}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){for(var t,r,n=e,i=!1;n&&"BODY"!==n.tagName.toUpperCase();){if("FORM"===n.tagName.toUpperCase()){try{for(var o=(t=void 0,__values(E)),a=o.next();!a.done;a=o.next()){var u=a.value;if(n.action.indexOf(u)>-1){i=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}if(i)break}n=n.parentElement}return i}function t(){w={},[].slice.call(document.querySelectorAll("["+_+"]")).forEach(function(e){e.removeAttribute(_)})}function r(e,t,r){if(!r.reset)return e();if(UserWayWidgetApp.ContextHolder.remediationResources)return UserWayWidgetApp.ContextHolder.remediationResources.Forms.forEach(function(e){w[e.xpath]=e}),e();if(m.resources){var n=m.resources+UserWayWidgetApp.ContextHolder.config.services.siteId+"/"+y.hashString(location.pathname);y.request({method:"GET",url:n}).then(function(t){t&&t.response&&JSON.parse(t.response).FormViolations.forEach(function(e){w[e.xpath]=e}),e()}).catch(function(e){console.warn("Can't load descriptions."),t(e)})}else m.enabled?e():t()}function n(e){return("string"==typeof e?e:e.textContent).replace(/\r\n|\r|\n|\t/g," ").replace(/( )+/g," ").trim()}function i(e){var t,r,n=e.split(" "),i="";try{for(var o=__values(n),a=o.next();!a.done;a=o.next()){var u=a.value,l=document.getElementById(u),c=l?l.textContent:null;c&&(i+=c+" ")}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return i}function o(e){function t(e){return e?"LABEL"===e.tagName?e:t(e.parentNode):null}if(e.hasAttribute("aria-label"))return[e.getAttribute("aria-label"),null];if(e.hasAttribute("aria-labelledby"))return[i(e.getAttribute("aria-labelledby")),null];var r=t(e.parentNode);if(r){var o=n(r);return o?[o,null]:[null,r]}if(e.id){var a=function(e){for(var t=document.querySelectorAll("LABEL"),r=0;r<t.length;r++)if(t[r].htmlFor===e)return t[r];return null}(e.id);if(a){var o=n(a);return o?[o,null]:[null,a]}}return[null,null]}function a(e){var t=e.getAttribute("class")||"";e.getAttribute("name")&&(t+=""+e.getAttribute("name"));var r=null;if(e.type){var n=e.type;if(n)switch(n){case"text":case"number":r="number"===n?"Number":null;var i=/(qua|qty|quantity)/,o=/(count|cnt)/;i.test(t)?r="Quantity":t.indexOf("age")>-1?r="Age":o.test(t)&&(r="Count");break;case"email":r="Please enter your email address";break;case"select-one":r="Select";/(search|srch)/.test(t)?r="Search":t.indexOf("name")>-1&&(r="Select name")}}return r}function u(e){var t,r=function(e){return!(!e||"LABEL"!==e.tagName||e.hasAttribute("for")&&e.getAttribute("for").trim())},n=Array.from(e.parentElement.querySelectorAll("label"));return 1===n.length&&r(n[0])?t=n[0]:r(e.previousElementSibling)?t=e.previousElementSibling:r(e.nextElementSibling)&&(t=e.nextElementSibling),t?t.innerText:null}function l(e){var t=__read(o(e),2),r=t[0],n=t[1],i=y.hashString(y.xpath(e)),l=null,c="",s=!1;if(w[i])l=w[i],c=l.correction,s=w[i].approved;else if(!r){var d=e.placeholder,f=e.title,p=a(e),h=u(e);d&&d.trim()?c=d:f&&f.trim()?c=f:h?c=h:p&&(c=p),c&&(c=c.trim().toLowerCase())}var m;l&&l.hasOwnProperty("required")&&(s||g)&&(m=l.required,m?(e.setAttribute("required","true"),e.setAttribute("aria-required","true")):(e.removeAttribute("required"),e.removeAttribute("aria-required"))),void 0===m&&(m=e.hasAttribute("required")||e.hasAttribute("aria-required")),c&&(n?y.addScreenRearedElement(n,c,"data-uw-rm-autofix-label"):(s||g)&&e.setAttribute("aria-label",c));var b={originalLabel:r,correctedLabel:c,required:m};return l&&(b.loaded=l),b}function c(e){var t=window.getComputedStyle(e);return"0"!==t.width&&"0"!==t.height&&"0"!==t.opacity&&"none"!==t.display&&"hidden"!==t.visibility}function s(e,t,r,n){try{var i=0,o=[];if(n&&n.length)for(var a=0;a<n.length;a++)if(c(n[a])){var u=l(n[a]),s=u.originalLabel,d=u.correctedLabel,f=y.xpath(n[a]),p=n[a].hasAttribute("type")?n[a].getAttribute("type"):"text";"TEXTAREA"===n[a].tagName&&(p="textarea"),"SELECT"===n[a].tagName&&(p="select");var h={type:p,xpath:f,xpathHash:y.hashString(f),label:s,required:u.required,correction:d,approved:!!s||!!u.loaded};s?n[a].setAttribute(_,"nfx"):(n[a].setAttribute(_,"fx"),i++),o.push(h)}e.onHelperRemediationCompleted(A.of("REMEDIATION_FORM_LABEL",{items:o},null,i,o.filter(function(e){return!e.approved}).length)),t()}catch(e){r(e)}}function d(e){Array.from(document.querySelectorAll("form")).filter(function(e){return c(e)&&Array.from(e.querySelectorAll("input, textarea, select")).length}).forEach(function(t){e&&f(t);var r=t.querySelector('button[type="submit"], input[type="submit"]');r&&!r.hasAttribute(_)&&(r.addEventListener("click",function(e){f(t)}),r.setAttribute(_,"submit"))})}function f(e){function t(t){for(var r=[],n=t.parentElement;n&&n!==e;)r.push(n),n=n.parentElement;return{element:t,parents:r}}var r=Array.from(e.querySelectorAll('[class*="error" i], [class*="message" i]')).filter(function(e){if(-1!==["DIV","SPAN","UL","LI","LABEL"].indexOf(e.nodeName)&&!e.querySelector(b.focusableElementsSelector)&&c(e)&&e.textContent)return!0});if(r.length){var n=Array.from(e.querySelectorAll("input, textarea, select")).filter(function(e){return c(e)}),i=[];n.forEach(function(e){i.push(t(e))}),r.forEach(function(e){var r,n,o,a,u=t(e).parents,l=null,c=u.length;try{for(var s=__values(i),d=s.next();!d.done;d=s.next())for(var f=d.value,p=f.element,h=f.parents,m=0;m<u.length;m++){var g=u[m];try{for(var y=(o=void 0,__values(h)),b=y.next();!b.done;b=y.next()){var v=b.value;g===v&&m<c&&(c=m,l=p)}}catch(e){o={error:e}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}if(l&&!l.hasAttribute("aria-describedby")){var A=e.id;A||(A="uwRmForms_"+(new Date).getTime(),e.id=A,e.setAttribute(_,"in-validation")),l.setAttribute("aria-describedby",""+A)}})}}var p=UserWayWidgetApp.addLib("REMEDIATION_FORM_LABEL"),h=UserWayWidgetApp.getLib("remediationConfig"),m=h.forms||{},g=!h.strategy||"AUTO"===h.strategy,y=UserWayWidgetApp.getLib("util"),b=UserWayWidgetApp.getLib("remediation_util"),v=UserWayWidgetApp.getLib("xpath_search"),A=UserWayWidgetApp.getLib("remediation_helper_outcome"),_="data-uw-rm-form",E=["facebook","google"],w={};p.getScannerRuleId=function(){return"R_34"},p.filter=function(r,n){n.reset&&t();var i=["INPUT","TEXTAREA","SELECT"],o=[].concat.apply([],__spreadArray([],__read(r.map(function(e){return[].slice.call(e.querySelectorAll(i.join().toLowerCase()))})),!1)),a=[];return o.forEach(function(t){e(t)&&t.setAttribute(_,"excluded"),t.hasAttribute(_)||t.type&&-1===["text","password","email","tel","number","textarea","select-one"].indexOf(t.type)||a.push(t)}),a},p.awaitForResources=function(e,t){return new Promise(function(e,n){r(e,n,t)})},p.doRemediation=function(e,t,r){return new Promise(function(n,i){s(e,n,i,t),d(r.reset)})},p.updateLabelInDom=function(e){var t=e.xpath&&v.recursiveXpathSearch(e.xpath);"boolean"!=typeof t&&(t.setAttribute("aria-label",e.correction),"boolean"!=typeof t&&e.required?(t.setAttribute("required","true"),t.setAttribute("aria-required","true")):(t.removeAttribute("required"),t.removeAttribute("aria-required")),t.setAttribute(_,"adm"))}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){var e=UserWayWidgetApp.getLib("remediation_util"),t=UserWayWidgetApp.getLib("event_emitter");UserWayWidgetApp.addLib("REMEDIATION_HAMBURGER_MENU").apply=function(){t.on("UW_CER_HAMBURGER_IN",function(t){var r=__read(t,2),n=r[0],i=r[1];n.setAttribute("tabindex","0"),n.addEventListener("keydown",function(t){e.keys.isEnter(t)&&(setTimeout(function(){var t,r,n,o,a=i.filter(function(t){return e.isElementVisible(t,{skipParentCheck:!0})});try{for(var u=__values(a),l=u.next();!l.done;l=u.next()){var c=l.value,s=c.querySelectorAll("a");try{for(var d=(n=void 0,__values(s)),f=d.next();!f.done;f=d.next())f.value.setAttribute("tabindex","0")}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}a.length&&a[0].querySelector("a").focus()},800),t.preventDefault(),n.click())})})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};!function(){function e(e){e.forEach(function(e){var t=null!=e.page?e.page:"$all";g[e.type]=g[e.type]||{},g[e.type][t]=g[e.type][t]||{},e.xpath?g[e.type][t][e.xpath]=e:g[e.type][t]=e})}function t(t,r,n){return d.enabled?UserWayWidgetApp.ContextHolder.remediationResources?(e(UserWayWidgetApp.ContextHolder.remediationResources.Headings),t()):void(d.resources&&n.reset?h.request({method:"GET",url:d.resources}).then(function(r){r&&r.response&&e(JSON.parse(r.response).Headings),t()},function(e){console.warn("Can't load descriptions."),r(e)}):r()):t()}function r(){return[].slice.call(document.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]'))}function n(){c&&c.disconnect();var e=document.querySelector("["+f+'="h1"]');e&&e.parentElement.removeChild(e),[].slice.call(document.querySelectorAll("["+f+'="level"]')).forEach(function(e){e.removeAttribute(f),e.removeAttribute("aria-level"),e.removeAttribute("role")});var t=[].slice.call(document.querySelectorAll("["+f+'="hide"]'));t.length&&t.forEach(function(e){e.removeAttribute(f),e.removeAttribute("aria-hidden"),e.removeAttribute("role");var t=e.querySelector(".uw-ai-autofix-hide");t&&e.removeChild(t)})}function i(e,t){e.setAttribute("role","heading"),e.setAttribute("aria-level",""+t),e.setAttribute(f,"level")}function o(e){function t(){n(),l(r())}var i={characterData:!1,attributes:!1,childList:!0,subtree:!1};c=new MutationObserver(t),e.forEach(function(e){c.observe(e,i)})}function a(e){var t=document.createElement("h1"),r=document.querySelector("main"),n=document.querySelector("[role=main]"),o=r||n;if(o){var a=g["ADD-H1"]&&g["ADD-H1"].$all,u=g["ADD-H1"]&&g["ADD-H1"][e],l=!!u,c=u||a,s=c&&c.correction?c.correction:document.title;return i(t,1),t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px)!important;height:1px!important;width:1px!important;overflow:hidden!important;position:absolute!important;top:0!important;left:0!important;z-index:-1!important;opacity:0!important"),t.setAttribute(f,"h1"),t.setAttribute("data-uw-rm-ignore",""),t.innerText=s,o.prepend(t),m.push({type:"ADD-H1",level:1,previousLevel:0,content:s,autofix:!0,approved:l,xpath:h.xpath(t)}),[t,!!c]}}function u(e){return/(h\d)/i.test(e.nodeName)?+e.nodeName.slice(1):+e.getAttribute("aria-level")}function l(e,t,r,n,l){var s=location.pathname;m=[],c&&c.disconnect(),c=null;var y=[];if(!n.length&&d.enabled&&a(s),n.length&&d.enabled){if(!("H1"===n[0].nodeName||n[0].hasAttribute("aria-level")&&"1"===n[0].getAttribute("aria-level"))){var b=__read(a(s),2),v=b[0];b[1];n.unshift(v)}for(var A=void 0,_=0,E=void 0,w=0,x=n.length;w<x;w++){var S=h.xpath(n[w]);A=u(n[w]);var I=h.composeElementTextRepresentation(n[w]);if(1===A&&n[w].hasAttribute(f))_=1;else if(E={type:"CONTENT",level:A,content:I,approved:!0,xpath:S,autofix:!0},I&&1===A&&0!==w&&(n[w].setAttribute("role","heading"),n[w].setAttribute("aria-level","2"),n[w].setAttribute(f,"level"),E.previousLevel=1,E.approved=!1,E.type="LEVEL",A=2,E.level=2),I&&I.trim())if(A>_+1){var O=(g.LEVEL&&g.LEVEL.$all&&g.LEVEL.$all[S]&&g.LEVEL.$all[S].correction,g.LEVEL&&g.LEVEL[s]&&g.LEVEL[s][S]&&g.LEVEL[s][S].correction),L=!!O&&g.LEVEL[s][S].approved;E.previousLevel=A,E.approved=!1;var N=_+1;E.type="LEVEL",n[w].setAttribute(f,"level"),E.level=N,i(n[w],N),_++,E.approved=L,m.push(E),y.push(n[w])}else _=A,m.push(E);else{n[w].setAttribute("role","presentation"),n[w].setAttribute("aria-hidden",!0),h.addScreenRearedElement(n[w],"Empty heading","data-uw-rm-autofix-hide"),E.type="HIDE",n[w].setAttribute(f,"hide");var W=g.HIDE&&g.HIDE.$all&&g.HIDE.$all[S],R=g.HIDE&&g.HIDE[s]&&g.HIDE[s][S],C=R||W;E.approved=!!C&&C.approved,m.push(E),y.push(n[w])}}y.length&&o(y)}e.onHelperRemediationCompleted(p.of("REMEDIATION_HEADING",{items:m},null,[].slice.call(document.querySelectorAll("["+f+"]")).length,0)),t()}var c,s=UserWayWidgetApp.addLib("REMEDIATION_HEADING"),d=UserWayWidgetApp.getLib("remediationConfig").headings||{},f="data-uw-rm-heading",p=UserWayWidgetApp.getLib("remediation_helper_outcome"),h=UserWayWidgetApp.getLib("util"),m=[],g={};s.getScannerRuleId=function(){return"R_31"},s.filter=function(e){return d.enabled?(n(),[].slice.call(document.querySelectorAll('h1, h2, h3, h4, h5, h6, [role="heading"]:not([data-uw-rm-aria])'))):[]},s.awaitForResources=function(e,r){return new Promise(function(e,n){t(e,n,r)})},s.doRemediation=function(e,t,r){return new Promise(function(n,i){l(e,n,i,t,r)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(){[].slice.call(document.querySelectorAll("["+f+"]")).forEach(function(e){e.removeAttribute(f)})}function t(e){var t=[],n=e.filter(function(e){return!e.hasAttribute(f)&&e.hasAttribute("title")});return r(n).length>0&&(t=r(n)),t.concat(e.filter(function(e){return!e.hasAttribute(f)&&!e.hasAttribute("title")}))}function r(e){var t={},r=[],i=[];return e.forEach(function(e,r){var n=e.getAttribute("src");t[n]?t[n].push(r):t[n]=[r]}),Object.keys(t).filter(function(e){return t[e].length>1}).forEach(function(r){i.push({src:r,elements:n(e,t[r])})}),i.forEach(function(e){e.elements.sort(function(e,t){return e.title.length-t.title.length});var t=e.elements[e.elements.length-1].title;e.elements.pop(),e.elements.forEach(function(e){e.setAttribute(p,t)}),r=r.length?r.concat(e.elements):e.elements}),r}function n(e,t){var r=[];return t.forEach(function(t){r.push(e[t])}),r}function i(e){var t="";try{t=new URL(e).hostname.replace("www.","").split(".").slice(0,-1).join("-")}catch(e){}return t}function o(e){var t={SRC:"src",CLASSNAME:"class",ID:"id"},r=e.getAttribute(t.SRC)||"",n=e.getAttribute(t.CLASSNAME)||"",o=e.getAttribute(t.ID)||"",a=i(r)||u(n)||o;a?(e.setAttribute("title",a),e.setAttribute(f,h.GENERIC)):e.setAttribute(f,h.UNKNOWN)}function a(e){var t=e.getAttribute(p);e.setAttribute("title",t),e.setAttribute(f,h.GENERIC),e.removeAttribute(p)}function u(e){return e.replace(/\./g,"").split(" ").join("___")}function l(e){var t=e.callbackAggregator,r=e.resolve,n=e.reject,i=e.items;try{i.forEach(function(e){e.hasAttribute(p)?a(e):o(e)}),t.onHelperRemediationCompleted(d.of(c,null,null,i.length,0)),r()}catch(e){n(e)}}var c="REMEDIATION_IFRAME_TITLE",s=UserWayWidgetApp.addLib(c),d=UserWayWidgetApp.getLib("remediation_helper_outcome"),f="data-uw-rm-iframe",p="data-correct-title",h={UPDATED_BY_ADMIN:"adm",UNKNOWN:"un",GENERIC:"gn"};s.getScannerRuleId=function(){return"R_23"},s.filter=function(r,n){return n.reset&&e(),t(__spreadArray([],__read(r),!1).reduce(function(e,t){return __spreadArray(__spreadArray([],__read(e),!1),__read(t.querySelectorAll("iframe")),!1)},[]))},s.awaitForResources=function(e,t){return Promise.resolve()},s.doRemediation=function(e,t){return new Promise(function(r,n){l({callbackAggregator:e,items:t,resolve:r,reject:n})})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e){for(var t=e,r=!1;t&&"BODY"!==t.tagName;)if(t=t.parentElement,"PICTURE"===t.tagName){r=!0;break}return r}function t(t){return t.filter(function(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE||"IMG"!==t.nodeName)&&(!t.hasAttribute(A.ignoreElementFromHelperProcessingAttr)&&(t.hasAttribute("src")||t.hasAttribute("srcset")||e(t)?!(1624236===E.services.siteId&&t.src&&t.src.indexOf(".aspx")>-1)&&!t.hasAttribute(w):(t.hasAttribute("alt")||t.setAttribute("alt",""),!1)))})}function r(e,t,r){return y.enabled&&r.reset?UserWayWidgetApp.ContextHolder.remediationResources?(o(UserWayWidgetApp.ContextHolder.remediationResources.MissingAlts),e()):(a(),void(y.resources?v.request({method:"GET",url:y.resources}).then(function(t){t&&t.response&&o(JSON.parse(t.response).MissingAlts),e()},function(e){console.warn("Can't load descriptions."),t(e)}):y.enabled&&e())):e()}function n(e){if(I.test(e))return e;e&&(e=e.replace(/^(http|https)(:\/\/)/,"").replace(/^(www\.)/,""));var t=e.match(O);return t&&t.length&&t.hasOwnProperty("index")?e.substring(0,t.index+t[0].length):e.split("?")[0]}function i(e){var t=n(e.src);e.src=t,C[t]=e}function o(e){e.forEach(i)}function a(){T=[],k=[],C={},[].slice.call(document.querySelectorAll("["+w+"]")).forEach(function(e){e.removeAttribute(w)})}function u(e,t,r,n,i){t&&t.length?Promise.all(t.map(function(e){return l(e)})).then(function(t){var r=[],i=[];t.forEach(function(e){p(r,e.sendBE),h(i,e.sendPM)}),e.onHelperRemediationCompleted(_.of("REMEDIATION_IMAGE_MISSING_ALT",{items:i
},{items:r,path:L,props:{page:location.pathname}},i.filter(function(e){return e.fixedByUserWay}).length,i.filter(function(e){return!e.approved}).length)),n()}):(e.onHelperRemediationCompleted(_.of("REMEDIATION_IMAGE_MISSING_ALT",{items:[]},{items:[],path:L},0,0)),n())}function l(t){function r(){try{var e=window.getComputedStyle(t),r=e.width,n=e.height;return parseInt(r)>50&&parseInt(n)>50}catch(e){return!1}}function i(e){e.setAttribute("alt",W),e.setAttribute(w,S.GENERIC)}function o(){return R.indexOf(E.services.userId)>-1}function a(e){return e.indexOf("automaticcoupons")>-1||e.indexOf("shopping.yahoo")>-1||e.indexOf("shopperapproved")>-1||e.indexOf("rakuten")>-1||e.indexOf("translate.google")>-1||e.indexOf("maps.googleapis.com")>-1||e.indexOf("s.w.org")>-1||e.indexOf("avatar")>-1||e.indexOf("favicon")>-1}function u(e){var t=e.getAttribute("srcset");try{return(t&&t.split(","))[0].split(" ")[0]}catch(e){return null}}function l(e,t){var r=/(\.tif|\.tiff|\.bmp|\.jpg|\.jpeg|\.gif|\.png|\.eps|\.raw|\.cr2|\.nef|\.orf|\.sr2)$/.test(t);return!/[A-Za-z]/.test(t)||/[0-9]{5,}/.test(t)||r}return new Promise(function(p,h){var m=s(t),g=!t.hasAttribute("alt"),y="true"===t.getAttribute("aria-hidden")||"presentation"===t.getAttribute("role"),A=t.src;if(!A){var _=null;t.hasAttribute("srcset")&&(_=u(t)),e(t)&&(_=t.currentSrc),_&&(A=_)}var O=n(A),L={};if(A&&A.toLowerCase().indexOf("/tfs-assets")>-1)return m||-1!==A.toLowerCase().indexOf("product-image")?void p({sendPM:f(t,{normalizedSrc:O,approved:!0,fixedByUserWay:!1})}):(c(t),t.setAttribute(w,S.EXCLUSION_CUSTOM),void p(L));if(m&&A.toLowerCase().indexOf("resellerratings.com")>-1&&A.toLowerCase().indexOf("star"))return void p(L);if(86894===E.services.siteId&&A&&-1===A.toLowerCase().indexOf("winix"))return m?void p({sendPM:f(t,{normalizedSrc:O,approved:!0,fixedByUserWay:!1})}):(c(t),t.setAttribute(w,S.EXCLUSION_CUSTOM),void p(L));if(a(A))return c(t),t.setAttribute(w,S.EXCLUSION),void p(L);if(m&&!t.hasAttribute(x)&&t.setAttribute(x,m),y)return g&&(c(t),t.setAttribute(w,S.HIDDEN)),L.sendPM=f(t,{approved:!g,decorative:!0,fixedByUserWay:!!g,normalizedSrc:O}),void p(L);var W=!(!g&&m);if(I.test(A))return W&&(c(t),t.setAttribute(w,S.BASE64)),void p(L);var R=C[O];if(!!R&&!!R.reverted)return t.setAttribute(w,S.REVERTED),L.sendPM=f(t,{approved:!0,decorative:W,fixedByUserWay:!1}),void p(L);if(R){var T=!0,k=!0,U=R.alt,P=R.approved;if(R.decorative&&(W?(c(t),t.setAttribute(w,S.AI)):R.originalAlt&&v.hashString(m)+""===R.originalAlt?(c(t),t.setAttribute(w,S.AI)):k=!1),R.alt){W||l(O,m)||(!R.originalAlt||R.originalAlt&&v.hashString(m)+""!==R.originalAlt)&&(U=m,P=!0,T=!1,k=!1);var M=!b&&!P;T&&!M&&(t.setAttribute("alt",R.alt),t.setAttribute(w,S.AI))}return void p({sendPM:d({src:A,normalizedSrc:O,alt:U,originalAlt:m,decorative:R.decorative,approved:P,fixedByUserWay:k,editedByUser:!!R.editedByUser})})}if(/.+\.svg$/.test(O))return W&&(c(t),t.setAttribute(w,S.SVG)),L.sendPM=f(t,{approved:!W,decorative:W,fixedByUserWay:!!W,normalizedSrc:O}),void p(L);if(!W)if(l(A,m)){t.setAttribute(w,S.AI_WAITING);var D=r(),H=!1;D&&(N?(c(t),H=!0,t.setAttribute(w,S.QUOTA)):o()?(i(t),t.setAttribute(w,S.GENERIC)):(L.sendBE={src:A,normalizedSrc:O},t.setAttribute(w,S.AI_WAITING))),L.sendPM=f(t,{normalizedSrc:O,approved:!1,fixedByUserWay:!0,decorative:H,loadingFromMS:!!L.sendBE&&!C[O]}),p(L)}else p({sendPM:f(t,{normalizedSrc:O,approved:!0,fixedByUserWay:!1})});if(W){var D=r(),H=!1;!D||N?(c(t),H=!0,t.setAttribute(w,S.UNKNOWN)):o()?(i(t),t.setAttribute(w,S.GENERIC)):(L.sendBE={src:A,normalizedSrc:O,fixed:!1},t.setAttribute(w,S.AI_WAITING)),L.sendPM=f(t,{normalizedSrc:O,approved:!1,decorative:H,fixedByUserWay:!0,loadingFromMS:!!L.sendBE}),p(L)}})}function c(e){e.setAttribute("role","presentation")}function s(e){var t=e.getAttribute("alt");return t?t.trim().toLowerCase():null}function d(e){return{src:e.src,normalizedSrc:e.normalizedSrc,alt:e.alt,originalAlt:e.originalAlt,approved:e.approved,decorative:e.decorative,fixedByUserWay:e.fixedByUserWay,loadingFromMS:e.loadingFromMS}}function f(e,t){return t=t||{},d({src:e.src||e.currentSrc,normalizedSrc:t.normalizedSrc,alt:e.alt||"",originalAlt:e.hasAttribute(x)?e.getAttribute(x):null,approved:null!=t.approved&&t.approved,decorative:null!=t.decorative&&t.decorative,fixedByUserWay:!!t.fixedByUserWay,loadingFromMS:t.loadingFromMS})}function p(e,t){null!=t&&-1===T.indexOf(t.normalizedSrc)&&(T.push(t.normalizedSrc),e.push(t))}function h(e,t){null!=t&&-1===k.indexOf(t.normalizedSrc)&&(k.push(t.normalizedSrc),e.push(t))}var m=UserWayWidgetApp.addLib("REMEDIATION_IMAGE_MISSING_ALT"),g=UserWayWidgetApp.getLib("remediationConfig"),y=g.alt,b=!g.strategy||"AUTO"===g.strategy,v=UserWayWidgetApp.getLib("util"),A=UserWayWidgetApp.getLib("remediation_utils"),_=UserWayWidgetApp.getLib("remediation_helper_outcome"),E=UserWayWidgetApp.ContextHolder.config,w="data-uw-rm-ima",x="data-uw-rm-ima-original",S={GENERIC:"gn",AI:"ai",AI_WAITING:"ai-w",NO_SRC:"ns",HIDDEN:"hd",EXCLUSION:"exc",EXCLUSION_CUSTOM:"excc",BASE64:"bs64",SVG:"svg",QUOTA:"qt",UPDATED_BY_ADMIN:"adm",ERROR:"err",UNKNOWN:"un",REVERTED:"rv"},I=new RegExp("^(data:)"),O=new RegExp("(.)(gif|jpe?g|tiff?|png|webp|bmp)","i"),L="missing-alt",N=y.quotaExceeded,W="Real estate photo",R=[52764,51686],C={},T=[],k=[];m.getScannerRuleId=function(){return"R_1"},m.filter=function(e){return y.enabled?t([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("img"))})),!1))):[]},m.awaitForResources=function(e,t){return new Promise(function(e,n){r(e,n,t)})},m.addMissingAltCorrection=i,m.doRemediation=function(e,t,r){return new Promise(function(n,i){u(e,t,r,n,i)})},m.updateImageInDom=function(e){var t=new URL(e.src),r=e.role;[].slice.call(document.querySelectorAll('[src*="'+t.pathname+'"]')).forEach(function(t){e.decorative?c(t):t.removeAttribute("aria-hidden"),t.setAttribute("alt",e.alt),["link","button","heading"].includes(r)&&t.setAttribute("aria-label",e.alt),t.removeAttribute(w)});var i=n(e.src);k=k.filter(function(e){return e!==i})},m.revertToOriginal=function(e){[].slice.call(document.querySelectorAll('[src="'+e.src+'"]')).forEach(function(e){var t=e.getAttribute(x);t&&(e.alt=t,e.setAttribute(w,S.REVERTED))})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t=__spreadArray(__spreadArray(["a"],__read(f),!1),__read(f.map(function(e){return'[role="'+e+'"]'})),!1).join(",");return e.querySelectorAll(t).length>0}function t(t){return t.filter(function(t){var n,o,a,u,y,b,v,A;if("function"==typeof t.hasAttribute&&t.hasAttribute(c)||e(t))return!1;if(t.classList&&t.classList.contains("betterbot_botInfoText"))return t.setAttribute(c,d.BETTERBOT_CHAT),!0;if("function"==typeof t.getAttribute&&f.indexOf(t.getAttribute("role"))>-1&&!t.hasAttribute("tabindex"))return t.setAttribute(c,d.HAS_ROLE_NO_TABINDEX),!0;var _=!1,E=!1;if("function"==typeof t.hasAttribute)try{for(var w=__values(p),x=w.next();!x.done;x=w.next()){var S=x.value;if(t.hasAttribute(S)&&!l.isElementEditable(t)){E=!1,_=!0;try{for(var I=(a=void 0,__values(h)),O=I.next();!O.done;O=I.next()){var L=O.value;t.hasAttribute(L)&&(E=!0)}}catch(e){a={error:e}}finally{try{O&&!O.done&&(u=I.return)&&u.call(I)}finally{if(a)throw a.error}}}}}catch(e){n={error:e}}finally{try{x&&!x.done&&(o=w.return)&&o.call(w)}finally{if(n)throw n.error}}if(_&&!E)return t.setAttribute(c,d.HAS_ONCLICK_NO_ONKEYPRESS),!0;var N=!1,W=!1,R=!1,C=["drag-and-drop"];if("function"==typeof t.hasAttribute){R=t.hasAttribute("tabindex");try{for(var T=__values(m),k=T.next();!k.done;k=T.next()){var S=k.value;if(C.indexOf(t.nodeName.toLowerCase())<0&&t.hasAttribute(S)&&!l.isElementEditable(t)){W=!1,N=!0;try{for(var U=(v=void 0,__values(g)),P=U.next();!P.done;P=U.next()){var L=P.value;t.hasAttribute(L)&&(W=!0)}}catch(e){v={error:e}}finally{try{P&&!P.done&&(A=U.return)&&A.call(U)}finally{if(v)throw v.error}}}}}catch(e){y={error:e}}finally{try{k&&!k.done&&(b=T.return)&&b.call(T)}finally{if(y)throw y.error}}}return!N||W||R?"A"!==t.tagName||t.href||t.hasAttribute("tabindex")||t.hasAttribute("role")?!(t.hasAttribute("role")||i(t)||!r(t))&&(t.setAttribute(c,d.BUTTON_LIKE_EL),t.setAttribute(s,""),!0):(t.setAttribute(c,d.ANCHOR_NO_HREF),!0):(t.setAttribute(c,d.HAS_NGCLICK_NO_NGKEYPRESS),!0)})}function r(e){var t=function(e){return!e.tagName||"svg"!==e.tagName.toLowerCase()},r=__spreadArray([],__read(e.childNodes),!1).filter(t);return("DIV"===e.nodeName||"SPAN"===e.nodeName)&&e.offsetWidth&&e.offsetWidth<=250&&e.offsetHeight&&e.offsetHeight<=50&&e.offsetParent&&1===r.length&&r[0].nodeType===Node.TEXT_NODE&&0===e.querySelectorAll(l.focusableElementsSelector).length&&!l.findAncestor(e,"button")&&!l.findAncestor(e,"a")&&!l.findAncestor(e,'[role="button"]')&&"pointer"===window.getComputedStyle(e).cursor}function n(e){e.setAttribute(c,d.BUTTON_LIKE_EL),e.setAttribute("tabindex","0"),e.setAttribute("role","button"),l.clickOnEnter(e)}function i(e){return!!["A","INPUT","BUTTON","SELECT","TEXTAREA"].includes(e.tagName)||!!e.hasAttribute("tabindex")}function o(e,t,i,o,a){try{var f=0;o.forEach(function(e){e.hasAttribute(c)&&e.getAttribute(o)===d.BETTERBOT_CHAT&&(e.setAttribute("tabindex","0"),e.setAttribute("role","button"),e.setAttribute("aria-label","Start chat with us"),l.clickOnEnter(e),f++),e.hasAttribute(c)&&e.getAttribute(c)===d.HAS_ROLE_NO_TABINDEX&&(e.setAttribute("tabindex","0"),f++),e.hasAttribute(c)&&e.getAttribute(c)===d.OVERFLOW_HELPER&&(e.setAttribute("tabindex","0"),f++),e.hasAttribute(c)&&e.getAttribute(c)===d.HAS_ONCLICK_NO_ONKEYPRESS&&(l.clickOnEnter(e),f++),e.hasAttribute(c)&&e.getAttribute(c)===d.HAS_NGCLICK_NO_NGKEYPRESS&&(e.setAttribute("role","button"),e.setAttribute("tabindex","0"),l.clickOnEnter(e),f++),e.hasAttribute(c)&&e.getAttribute(c)===d.ANCHOR_NO_HREF&&(e.setAttribute("tabindex","0"),"pointer"===window.getComputedStyle(e).cursor&&l.clickOnEnter(e),f++)});var p=[].slice.call(document.querySelectorAll("["+s+"]"));p.forEach(function(e){e.removeAttribute(s)});l.getRootNodes(p).forEach(function(e){r(e)&&(n(e),f++)}),e.onHelperRemediationCompleted(u.of("REMEDIATION_KEYBOARD_NAVIGATION",null,null,f,0)),t()}catch(e){i(e)}}var a=UserWayWidgetApp.addLib("REMEDIATION_KEYBOARD_NAVIGATION"),u=UserWayWidgetApp.getLib("remediation_helper_outcome"),l=UserWayWidgetApp.getLib("remediation_util"),c="data-uw-rm-kbnav",s="data-uw-rm-kbnav-ble",d={BETTERBOT_CHAT:"betterbot",HAS_ROLE_NO_TABINDEX:"role",HAS_ONCLICK_NO_ONKEYPRESS:"click",HAS_NGCLICK_NO_NGKEYPRESS:"ngclick",OVERFLOW_HELPER:"scrollTabIndex",ANCHOR_NO_HREF:"anohref",BUTTON_LIKE_EL:"ble"},f=["link","button","menuitem","checkbox"],p=["onclick"],h=["onkeydown","onkeyup","onkeypress"],m=["ng-click"],g=["ng-keypress","ng-keyup","ng-keydown"];a.getScannerRuleId=function(){return null},a.filter=function(e,r){return r.reset,t([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(l.findAllElements(e))})),!1)))},a.awaitForResources=function(e,t){return Promise.resolve()},a.doRemediation=function(e,t,r){return new Promise(function(n,i){o(e,n,i,t,r)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e,t){if(!a.enabled)return e();UserWayWidgetApp.ContextHolder.remediationResources&&(d=UserWayWidgetApp.ContextHolder.remediationResources.Language),e()}function t(){[].slice.call(document.querySelectorAll("["+s+"]")).forEach(function(e){e.removeAttribute(s)})}function r(e,t,r,i){var o=0,a=""+u.hashString(window.location.pathname),l=d.find(function(e){return e.page===a});try{l&&document.documentElement.setAttribute("lang",l.correction),i.forEach(function(e){var t=e.getAttribute("lang"),r=e.getAttribute("xml:lang"),i=!1;if(r&&!n(r)&&(e.removeAttribute("xml:lang"),r=null,i=!0),t&&!n(t)&&(e.removeAttribute("lang"),t=null,i=!0),e===document.documentElement&&!t){var a=UserWayWidgetApp.ContextHolder.config;t=a&&a.language||"en",e.setAttribute("lang",t),i=!0}t&&r&&t!==r&&(i=!0,e.setAttribute("xml:lang",t)),e.setAttribute(s,""+i),i&&o++}),r.onHelperRemediationCompleted(c.of("REMEDIATION_SITE_LANGUAGE",{items:[{count:o,lang:l}]},null,o,0)),e()}catch(e){t(e)}}function n(e){return!(!e||e.length>e.trim().length)&&(e.indexOf("-")>-1&&(e=e.split("-")[0]),e.indexOf("_")>-1&&(e=e.split("_")[0]),f.includes(e.toLowerCase()))}function i(e){return e.filter(function(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("lang");return!(!e.getAttribute("xml:lang")&&!t&&e!==document.documentElement||e.hasAttribute(s))})}var o=UserWayWidgetApp.addLib("REMEDIATION_SITE_LANGUAGE"),a=UserWayWidgetApp.getLib("remediationConfig").language||{},u=UserWayWidgetApp.getLib("util"),l=UserWayWidgetApp.getLib("remediation_util"),c=UserWayWidgetApp.getLib("remediation_helper_outcome"),s="data-uw-rm-lang",d=[],f=["aa","ab","af","am","ar","as","ay","az","ba","be","bg","bh","bi","bn","bo","br","ca","co","cs","cy","da","de","div","dz","el","en","eo","es","et","eu","fa","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","ha","he","hi","hr","hu","hy","ia","id","ie","ik","in","is","it","iw","ja","ji","jw","ka","kk","kl","km","kn","ko","kok","ks","ku","ky","kz","la","ln","lo","ls","lt","lv","mg","mi","mk","ml","mn","mo","mr","ms","mt","my","na","nb-no","ne","nl","nn-no","no","oc","om","or","pa","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sb","sd","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","sx","syr","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","uk","ur","us","uz","vi","vo","wo","xh","yi","yo","zh","zu"];o.getScannerRuleId=function(){return"R_37"},o.filter=function(e,r){if(!a.enabled)return[];r.reset&&t();var n=[].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(l.findAllElements(e))})),!1));return document.documentElement&&n.push(document.documentElement),i(n)},o.awaitForResources=function(t,r){return r.reset?new Promise(function(t,r){e(t,r)}):Promise.resolve()},o.doRemediation=function(e,t,n){return new Promise(function(n,i){r(n,i,e,t)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(){[].slice.call(document.querySelectorAll("["+i+"]")).forEach(function(e){e.removeAttribute(i)})}function t(e){return e.filter(function(e){return!e.hasAttribute(i)})}var r=UserWayWidgetApp.addLib("REMEDIATION_MARQUEE"),n=UserWayWidgetApp.getLib("remediation_helper_outcome"),i="data-uw-rm-mrq";r.getScannerRuleId=function(){return"R_22"},r.filter=function(r,n){return n.reset&&e(),t([].concat.apply([],__spreadArray([],__read(r.map(function(e){return[].slice.call(e.querySelectorAll("marquee"))})),!1)))},r.awaitForResources=function(){return Promise.resolve()},r.doRemediation=function(e,t,r){return new Promise(function(r,o){try{t.forEach(function(e){e.setAttribute(i,"")}),e.onHelperRemediationCompleted(n.of("REMEDIATION_MARQUEE",null,null,t.length,0)),r()}catch(e){o(e)}})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e,n,i){try{t(i),r(i),e()}catch(e){n(e)}}function t(e){[].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll(".flatpickr-calendar *"))})),!1)).filter(function(e){return"function"==typeof e.getAttribute&&e.getAttribute("tabindex")<0&&!e.hasAttribute(i)}).forEach(function(e){e.setAttribute("tabindex","0"),e.setAttribute(i,o.FLAT_PICKER_CALENDAR)})}function r(e){[].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll(".flatpickr-input"))})),!1)).forEach(function(e){!e.getAttribute("aria-label")&&e.getAttribute("placeholder")&&(e.setAttribute("aria-label",e.getAttribute("placeholder")),e.setAttribute(i,o.FLAT_PICKER_INPUT))})}var n=UserWayWidgetApp.addLib("REMEDIATION_MISC"),i="data-uw-rm-misc",o={FLAT_PICKER_CALENDAR:"fpc",FLAT_PICKER_INPUT:"fpi"};n.getScannerRuleId=function(){return null},n.filter=function(e){return e},n.awaitForResources=function(e,t){return Promise.resolve()},n.doRemediation=function(t,r,n){return new Promise(function(t,n){e(t,n,r)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){e.forEach(function(e){y[e.pdf_hash]=e})}function t(){[].slice.call(document.querySelectorAll("["+d+"]")).forEach(function(e){e.removeAttribute(d)})}function r(e){return o(e)}function n(e,t,r,n){try{var o=[],a=[],l=[];n.forEach(function(e,t){var r=e.href.split("?")[0],n=u.hashString(r),c=i(e.href),s=e.hasAttribute(f);if(y[n]){var m=y[n].rem_url;m&&!s&&(e.setAttribute(p,e.href),e.href=g+m),l.indexOf(r)<0&&(a.push(Object.assign({},y[n],{name:c,pdf_url:r,pdf_link:e.innerText,pdf_isDone:!!m||s})),l.push(r))}else{var b=e.hasAttribute(h)&&"1"===e.getAttribute(h),v=e.hasAttribute(h)&&"0"===e.getAttribute(h);b&&!s&&o.push({hash:n,url:r}),l.indexOf(r.toLowerCase())<0&&(a.push({pdf_url:e.href,pdf_hash:n,pdf_link:e.innerText,name:c,status:s?"DONE":null,validityCheckFailed:v,id:"not_created-"+t,pdf_isDone:s}),l.push(r.toLowerCase()))}e.setAttribute(d,"")}),e.onHelperRemediationCompleted(s.of("REMEDIATION_PDF_DOCUMENTS",{items:a},{items:o,path:m,props:{page:location.pathname}},a.length,a.length)),t()}catch(e){r(e)}}function i(e){return e.substring(e.lastIndexOf("/")+1)}function o(e){return e.filter(function(e){if(!e||e.nodeType!==Node.ELEMENT_NODE||"A"!==e.nodeName)return!1;if(e.hasAttribute(d))return!1;if(e.hasAttribute(p))return!1;var t=e.href?e.href.split("?")[0]:null;return!(!t||!/\.pdf/.test(t))})}var a=UserWayWidgetApp.addLib("REMEDIATION_PDF_DOCUMENTS"),u=UserWayWidgetApp.getLib("util"),l=UserWayWidgetApp.getLib("remediationConfig").pdf||{},c=UserWayWidgetApp.getLib("remediation_utils"),s=UserWayWidgetApp.getLib("remediation_helper_outcome"),d="data-uw-pdf-doc",f="data-uw-pdf-rem",p="data-uw-pdf-doc-original",h="data-uw-pdf-br",m="pdf",g="https://cdn.userway.org/",y={};a.getScannerRuleId=function(){return null},a.filter=function(e,n){return l.enabled?(n.reset&&t(),r([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("a[href]"))})),!1)))):[]},a.awaitForResources=function(t,r){return new Promise(function(r,n){var i,o;if(!l.enabled)return r();UserWayWidgetApp.ContextHolder.remediationResources&&UserWayWidgetApp.ContextHolder.remediationResources.Pdfs&&e(UserWayWidgetApp.ContextHolder.remediationResources.Pdfs);var a=[];try{for(var u=__values(t),s=u.next();!s.done;s=u.next()){var d=s.value;!d.hasAttribute(h)&&a.indexOf(d)<0&&a.push(d)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}return a.length?l.quotaExceeded?(a.forEach(function(e){e.setAttribute(h,"2")}),r()):void c.sendBackEnd("/br-links/v0/pdf-links",null,{page:location.pathname,fullPage:location.href,links:a.map(function(e){return e.href?e.href.split("?")[0]:null})}).then(function(e){var t=e&&e.response&&JSON.parse(e.response);a.forEach(function(e,r){var n=t.statuses[r];[0,1,2].indexOf(n)>-1&&e.setAttribute(h,""+n)}),r()}).catch(function(e){return n(e)}):r()})},a.doRemediation=function(e,t,r){return new Promise(function(r,i){n(e,r,i,t)})}}(),function(){var e=UserWayWidgetApp.addLib("REMEDIATION_PER_SITE"),t=UserWayWidgetApp.getLib("remediationConfig"),r=UserWayWidgetApp.getLib("util");e.getScannerRuleId=function(){return null},e.apply=function(){t.perSiteRemediation&&t.perSiteRemediation.enabled&&t.perSiteRemediation.resources&&r.execJs(t.perSiteRemediation.resources).finally(function(){r.fireUserWayLifeCycleEvent(r.LIFE_CYCLE_EVENT.REMEDIATION_CSR_LOADED)})}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){var e=UserWayWidgetApp.getLib("remediation_util"),t=UserWayWidgetApp.addLib("REMEDIATION_POPUP"),r=UserWayWidgetApp.getLib("event_emitter");t.apply=function(){r.on("UW_CER_POPUP_ON",function(t){var r=__read(t,2),n=r[0],i=r[1];!function(t,r){setTimeout(function(){var n,i;e.clickOnEnter(r);var o=Array.from(t.querySelectorAll(e.focusableElementsSelector)).filter(function(t){return r!==t&&e.isElementVisible(t,{skipParentCheck:!0})&&!t.hasAttribute("data-uw-rm-ignore")});try{for(var a=__values(o),u=a.next();!u.done;u=a.next()){var l=u.value;l.setAttribute("tabindex","0"),e.clickOnEnter(l)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}o.length?e.trapFocusBetweenElements(r||o[0],o[o.length-1],t):r&&(r.addEventListener("keydown",function(t){e.keys.isTab(t)&&t.preventDefault()}),r.focus()),t.addEventListener("keydown",function(t){e.keys.isEsc(t)&&r.click()})},1e3)}(n,i)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){var e=window.remediationUtil||UserWayWidgetApp.addLib("remediation_util"),t=UserWayWidgetApp.getLib("util");e.focusableElementsSelector="a[href]:not([tabindex='-1']), area[href]:not([tabindex='-1']), input:not([disabled]):not([type=hidden]):not([tabindex='-1']), select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']), iframe:not([tabindex='-1']), [tabindex]:not([tabindex='-1']), [contentEditable=true]:not([tabindex='-1'], [tabindex='0'])",e.keys={isRightShift:function(e){return 16===e.keyCode||"Shift"===e.key||"ShiftRight"===e.code},isLeftShift:function(e){return 16===e.keyCode||"Shift"===e.key||"ShiftLeft"===e.code},isSpace:function(e){return 32===e.keyCode||" "===e.key||"Space"===e.code},isEnter:function(e){return 13===e.keyCode||"Enter"===e.key||"Enter"===e.code},isEsc:function(e){return 27===e.keyCode||"Escape"===e.key||"Escape"===e.code},isTab:function(e){return 9===e.keyCode||"Tab"===e.key||"Tab"===e.code},isHome:function(e){return 36===e.keyCode||"Home"===e.key||"Home"===e.code},isEnd:function(e){return 35===e.keyCode||"End"===e.key||"End"===e.code},isPageUp:function(e){return 33===e.keyCode||"PageUp"===e.key||"PageUp"===e.code},isPageDown:function(e){return 34===e.keyCode||"PageDown"===e.key||"PageDown"===e.code},isArrowLeft:function(e){return 37===e.keyCode||"ArrowLeft"===e.key||"ArrowLeft"===e.code},isArrowUp:function(e){return 38===e.keyCode||"ArrowUp"===e.key||"ArrowUp"===e.code},isArrowRight:function(e){return 39===e.keyCode||"ArrowRight"===e.key||"ArrowRight"===e.code},isArrowDown:function(e){return 40===e.keyCode||"ArrowDown"===e.key||"ArrowDown"===e.code},isPrintableChar:function(e){return 1===e.key.length&&e.key.match(/\S/)}},e.isElementEditable=function(e){function t(e){var t=e.nodeName.toLowerCase();return!!e.hasAttribute("contenteditable")||1===e.nodeType&&("textarea"===t||"input"===t&&/^(?:text|email|number|search|tel|url|password)$/i.test(e.type))}var r,n,i=t(e);if(i)return!0;try{for(var o=__values(Array.from(e.querySelectorAll("*"))),a=o.next();!a.done;a=o.next()){if(i=t(a.value))break}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},e.waitUntil=function(e,t,r){r=r||{};var n={timeout:8e3,frequency:1e3};r.timeout=r.timeout||n.timeout,r.frequency=r.frequency||n.frequency;var i=Date.now();!function n(){var o=e();if(o)return t(o);setTimeout(function(){r.timeout&&Date.now()-i>r.timeout||n()},r.frequency)}()},e.trapFocusBetweenElements=function(t,r,n){void 0===n&&(n=null);var i=!1;window.addEventListener("keydown",function(t){e.keys.isLeftShift(t)&&(i=!0)}),window.addEventListener("keyup",function(t){e.keys.isLeftShift(t)&&(i=!1)}),t.setAttribute("tabindex","0"),document.activeElement&&n.contains(document.activeElement)||t.focus(),t.addEventListener("keydown",function(t){e.keys.isTab(t)&&i&&(t.preventDefault(),r.focus())}),r.setAttribute("tabindex","0"),r.addEventListener("keydown",function(r){e.keys.isTab(r)&&(i||(r.preventDefault(),t.focus()))})},e.trapFocusBetween=function(e){function t(e,t,n){if(9===n.keyCode)return r?t&&t.focus():e&&e.focus(),n.preventDefault();16===n.keyCode&&(r=!0)}for(var r=!1,n=[],i=0;i<e.length;i++){var o=document.querySelector(e[i]);if(o){o.setAttribute("tabindex",0);var a=document.querySelector(e[i+1])||document.querySelector(e[0]),u=document.querySelector(e[i-1])||document.querySelector(e[e.length-1]),l=t.bind(event,a,u);n.push(l),o.addEventListener("keydown",l,!1),o.addEventListener("keyup",function(e){16===e.keyCode&&(r=!1)})}}return setTimeout(function(){var t=document.querySelector(e[0]);t&&t.focus()},100),{terminate:function(){for(var t=0;t<e.length;t++){document.querySelector(e[t]).removeEventListener("keydown",n[t])}}}},e.trapFocus=function(r,n){var i,o,a,u,l,c,s;void 0===n&&(n=null);var d=[];try{for(var f=__values(r),p=f.next();!p.done;p=f.next()){var h=p.value,m=[];"string"==typeof h?m.push.apply(m,__spreadArray([],__read(Array.from((null!==n&&void 0!==n?n:document).querySelectorAll(h))),!1)):m.push(h);try{for(var g=(a=void 0,__values(m)),y=g.next();!y.done;y=g.next()){var b=y.value;b.originalTabindex=null!==(s=b.getAttribute("tabindex"))&&void 0!==s?s:null,b.setAttribute("tabindex",0),d.push(b)}}catch(e){a={error:e}}finally{try{y&&!y.done&&(u=g.return)&&u.call(g)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}d.sort(function(e,t){return e===t?0:2&e.compareDocumentPosition(t)?1:-1});var v=d[0],A=d[d.length-1],_=new Set,E=function(e){for(var t=e;t.parentNode&&t.parentNode!==document.body;)_.add(t.parentNode),t=t.parentNode};if(n)E(n);else try{for(var w=__values(d),x=w.next();!x.done;x=w.next()){var b=x.value;E(b)}}catch(e){l={error:e}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(l)throw l.error}}var S=["SCRIPT","STYLE"],I=[],O=function(t){var r,i;try{for(var o=__values(t.children),a=o.next();!a.done;a=o.next()){var u=a.value;u.nodeType!==Node.ELEMENT_NODE||S.includes(u.tagName)||(_.has(u)?u.children&&O(u):u===n||d.includes(u)||(e.setInert(u,!0),I.push(u)))}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}};O(document.body,0);var L=[];if(!t.isMobile()){var N=function(t){t.shiftKey&&e.keys.isTab(t)&&(t.preventDefault(),t.stopPropagation(),A.focus())};v.addEventListener("keydown",N),L.push({element:v,handler:N});var W=function(t){!t.shiftKey&&e.keys.isTab(t)&&(t.preventDefault(),t.stopPropagation(),v.focus())};A.addEventListener("keydown",W),L.push({element:A,handler:W})}return v.focus(),{terminate:function(){var r,n,i,o,a,u;try{for(var l=__values(d),c=l.next();!c.done;c=l.next()){var s=c.value;null!==s.originalTabindex?s.setAttribute("tabindex",s.originalTabindex):s.removeAttribute("tabindex"),delete s.originalTabindex}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}try{for(var f=__values(I),p=f.next();!p.done;p=f.next()){var h=p.value;e.setInert(h,!1)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}if(!t.isMobile())try{for(var m=__values(L),g=m.next();!g.done;g=m.next()){var y=g.value;y.element.removeEventListener("keydown",y.handler)}}catch(e){a={error:e}}finally{try{g&&!g.done&&(u=m.return)&&u.call(m)}finally{if(a)throw a.error}}}}},e.waitForDocumentReady=function(e){var t=setInterval(function(){"complete"===document.readyState&&(clearInterval(t),e())},10)},e.injectStylesheet=function(e){var t=document.createElement("style");return t.innerText=e,document.head.appendChild(t),t},e.isElementVisible=function(e,t){t=t||{},t.hasOwnProperty("skipParentCheck")||(t.skipParentCheck=!1),t.hasOwnProperty("shouldBeInViewport")||(t.shouldBeInViewport=!0);var r=function(e,t){if(!e)return!1;if(e===document)return!0
;var r=getComputedStyle(e),n=e.getBoundingClientRect(),i=n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=(window.innerWidth||document.documentElement.clientWidth),o=0===n.width||0===n.height;return(e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0)&&(!t.shouldBeInViewport||i)&&!o&&"0"!==r.opacity&&"hidden"!==r.visibility&&"collapse"!==r.visibility},n=r(e,t);if(!t.skipParentCheck)for(;n&&e.parentNode&&e.parentNode!==document;)r(e.parentNode,{shouldBeInViewport:!1})?e=e.parentNode:n=!1;return n},e.fireEvent=function(e,t){if(e.fireEvent)e.fireEvent("on"+t);else{var r=document.createEvent("Events");r.initEvent(t,!0,!1),e.dispatchEvent(r)}},e.addCustomPopupCloseButton=function(e,t,r){var n="userway__close--"+ +(new Date).getTime(),i="<button id="+n+' aria-label="Close this popup" type="button" style="border: 2px solid rgba(255, 255, 255, .29); background: #000; margin: 0; padding: 9px 12px; border-radius: 5px; display: flex; align-items: center; cursor: pointer; user-select: none;"><span style="padding: 4px 12px 4px 0; border-right: 2px solid rgba(216, 216, 216, .46);"><svg style="display:block;" alt="" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 11 11"><g stroke="#FFF" stroke-width="1.5" fill="none" fill-rule="evenodd" stroke-linecap="round"><path d="M1 1.077l8.673 8.674M9.673 1.077L1 9.751"/></g></svg></span><span style="padding-left: 14px; padding-right: 7px; color: #fff; font-size: 14px; line-height: 14px; font-family: \'Metropolis\', sans-serif;">Close</span><span style="display:block; padding-left: 10px;"><img style="display:block;" src="esc.svg" alt="" aria-hidden="true"><svg style="display:block;" alt="" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="28" height="15" viewBox="0 0 28 15"><g fill="#FFF" fill-rule="evenodd"><path d="M3 0h22a3 3 0 013 3v9a3 3 0 01-3 3H3a3 3 0 01-3-3V3a3 3 0 013-3z" fill-opacity=".199"/><path d="M9.8 5.07H5.77v1.96h3.64v.94H5.77v2.09H9.8V11H4.75V4.13H9.8v.94zm3.73 6.04c-1.15 0-2.1-.4-2.83-1.1l.61-.75c.61.58 1.33.96 2.26.96.95 0 1.44-.5 1.44-1.05 0-.65-.57-.9-1.72-1.16-1.4-.33-2.33-.75-2.33-1.99 0-1.15 1-2.02 2.38-2.02 1.06 0 1.85.39 2.51.97l-.58.76c-.58-.53-1.27-.84-1.97-.84-.77 0-1.31.49-1.31 1.04 0 .64.59.86 1.72 1.13 1.37.32 2.32.78 2.32 2.01 0 1.16-.88 2.04-2.5 2.04zm7.04.01c-1.93 0-3.57-1.63-3.57-3.56 0-1.93 1.64-3.55 3.57-3.55.98 0 1.88.41 2.53 1.08l-.71.68c-.46-.5-1.11-.83-1.82-.83-1.37 0-2.53 1.2-2.53 2.62 0 1.43 1.16 2.63 2.53 2.63.71 0 1.36-.33 1.82-.83l.71.68c-.65.66-1.55 1.08-2.53 1.08z"/></g></svg></span></button>';return t.insertAdjacentHTML(e,i),document.querySelector("#"+n).addEventListener("click",r),n},e.clickOnEnter=function(t){if(t&&!e.isElementEditable(t)){var r=function(r){e.keys.isEnter(r)&&(r.preventDefault(),t.click&&t.click())};t.addEventListener("keydown",r)}},e.execOnPage=function(e,t){var r=new RegExp(e).test(window.location.href);return r&&t(),r},e.getFocusableElement=function(t,r,n){t=t||"next",n=n||{},n.childrenOnly=n.childrenOnly||!1,n.canBeHidden=n.canBeHidden||!1;var i=Array.from((n.childrenOnly?r:document).querySelectorAll(e.focusableElementsSelector+(r?","+e.getCssPath(r):"")));n.canBeHidden||(i=i.filter(function(e){return!!e.offsetParent}));var o=i.findIndex(function(e){return!(!r||e!==r)||e===document.activeElement});return"next"===t?i[o+1]||i[0]:"prev"===t?i[o-1]||i[i.length-1]:void 0},e.getCssPath=function(e){for(var t=[];e.parentNode;){if(e.id){t.unshift("#"+e.id);break}if(e==e.ownerDocument.documentElement)t.unshift(e.tagName);else{for(var r=1,n=e;n.previousElementSibling;n=n.previousElementSibling,r++);t.unshift(e.tagName+":nth-child("+r+")")}e=e.parentNode}return t.join(" > ")},e.findAncestor=function(e,t){var r;return null===(r=e.parentElement)||void 0===r?void 0:r.closest(t)},e.getElementPosition=function(e){for(var t=0,r=0;e;){if("BODY"==e.tagName){var n=e.scrollLeft||document.documentElement.scrollLeft,i=e.scrollTop||document.documentElement.scrollTop;t+=e.offsetLeft-n+e.clientLeft,r+=e.offsetTop-i+e.clientTop}else t+=e.offsetLeft-e.scrollLeft+e.clientLeft,r+=e.offsetTop-e.scrollTop+e.clientTop;e=e.offsetParent}return{x:t,y:r}},e.onHistoryPushState=function(e){!function(e){var t=e.pushState;e.pushState=function(r){return"function"==typeof e.onpushstate&&e.onpushstate({state:r}),t.apply(e,arguments)}}(window.history),window.onpopstate=history.onpushstate=e},e.announce=function(e){var t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.style.width="0",t.style.height="0",t.style.overflow="hidden",document.body.insertAdjacentElement("afterbegin",t),setTimeout(function(){t.innerHTML=e},1e3),setTimeout(function(){t.remove()},1e4)},e.loopThroughElements=function(t,r){e.waitUntil(function(){var e=document.querySelectorAll(t);if(e.length)return e},function(e){e.forEach(r)})},e.findAllElements=function(e){var t=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","solidcolor","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","unknown","use","view","vkern"],r=__spreadArray([],__read(t.map(function(e){return"svg "+e})),!1);return e.querySelectorAll("*|*:not("+r.join(",")+")")},e.getRootNodes=function(e){var t=[];return Array.from(e).forEach(function(e){var r=t.find(function(t){return e.contains(t)||t.contains(e)});r?e.contains(r)&&(t=t.map(function(t){if(t==r)return e})):t.push(e)}),t},e.setInert=function(t,r){var n;if(t){if("inert"in t)return void(t.inert=r);if(r!==e.isInert(t)){if(!document.getElementById("style-inert-polyfill")){e.injectStylesheet("\n        [inert] {\n          pointer-events: none;\n          cursor: default;\n        }\n        [inert], [inert] * {\n          user-select: none;\n        }\n      ").id="style-inert-polyfill"}var i=function(e,t){var r;t?(e.setAttribute("inert",""),void 0===e.originalAriaHidden&&(e.originalAriaHidden=null!==(r=e.getAttribute("aria-hidden"))&&void 0!==r?r:null,e.setAttribute("aria-hidden","true"))):(e.removeAttribute("inert"),null!==e.originalAriaHidden?e.setAttribute("aria-hidden",e.originalAriaHidden):e.removeAttribute("aria-hidden"),delete e.originalAriaHidden)},o=function(t,r){var n=[t];do{var i=n.shift();if(i.nodeType==Node.ELEMENT_NODE){if(r(i),i.shadowRoot){n.push(i.shadowRoot);continue}if("content"==i.localName&&i.getDistributedNodes){var o=Array.from(i.getDistributedNodes());n.push.apply(n,__spreadArray([],__read(o),!1))}if("slot"==i.localName&&i.assignedNodes){var a=Array.from(i.assignedNodes({flatten:!0}));n.push.apply(n,__spreadArray([],__read(a),!1))}}!i.children||i!==t&&e.isInert(i)||n.push.apply(n,__spreadArray([],__read(Array.from(i.children)),!1))}while(n.length)},a=function(e,t){var r;t?(null!==e.originalTabindex?e.setAttribute("tabindex",e.originalTabindex):e.removeAttribute("tabindex"),delete e.originalTabindex,e.overrodeFocusMethod&&(delete e.focus,delete e.overrodeFocusMethod)):void 0===e.originalTabindex&&(e.originalTabindex=null!==(r=e.getAttribute("tabindex"))&&void 0!==r?r:null,e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},e.overrodeFocusMethod=!0))},u=function(t){t.matches(e.focusableElementsSelector)&&a(t,!1)},l=function(e){void 0!==e.originalTabindex&&a(e,!0)};if(r){i(t,!0),o(t,u),t.observer=new MutationObserver(function(e){var r,n;try{for(var i=__values(e),c=i.next();!c.done;c=i.next()){var s=c.value;if("childList"===s.type){var d=(s.addedNodes.length>0?s.addedNodes[0]:s.removedNodes[0]).closest("[inert]");if(t!==d)return;s.addedNodes.forEach(function(e){return o(e,u)}),s.removedNodes.forEach(function(e){return o(e,l)})}else if("attributes"===s.type&&"tabindex"===s.attributeName){var d=s.target.closest("[inert]");if(t!==d||-1==s.target.getAttribute("tabindex"))return;a(s.target,!1)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}),t.observer.observe(t,{attributes:!0,childList:!0,subtree:!0});var c=document.activeElement;if(t.contains(c)){if(c.shadowRoot)for(;null===(n=c.shadowRoot)||void 0===n?void 0:n.activeElement;)c=c.shadowRoot.activeElement}else c=null;c&&c.blur()}else{t.observer.disconnect(),delete t.observer,i(t,!1);t.closest("[inert]")||o(t,l)}}}},e.isInert=function(e){return!!e&&("inert"in e?e.inert:!(!e.hasAttribute||!e.hasAttribute("inert")))}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(){[].slice.call(document.querySelectorAll("["+u+"]")).forEach(function(e){e.removeAttribute(u)})}function t(e){for(var t=e,r=!1;t&&"BODY"!==t.tagName.toUpperCase();){if(t.hasAttribute("contenteditable")){r=!0;break}t=t.parentElement}return r}function r(e){return e.filter(function(e){return!e.hasAttribute("role")&&(!t(e)&&!e.hasAttribute(u))})}var n=UserWayWidgetApp.addLib("REMEDIATION_SCREEN_READER_BASIC"),i=UserWayWidgetApp.getLib("remediation_helper_outcome"),o=UserWayWidgetApp.getLib("util"),a=UserWayWidgetApp.getLib("helpers"),u="data-uw-rm-sr";n.getScannerRuleId=function(){return null},n.filter=function(t,n){return n.reset&&e(),r([].concat.apply([],__spreadArray([],__read(t.map(function(e){return[].slice.call(e.querySelectorAll("br,hr"))})),!1)))},n.awaitForResources=function(e,t){return Promise.resolve()},n.doRemediation=function(e,t,r){return new Promise(function(r,n){function l(e){var t=window.getComputedStyle(e);if(!!t.getPropertyValue("text-decoration")&&t.getPropertyValue("text-decoration").indexOf("line-through")>-1)return!0;var r=e.parentElement;return!(!r||"BODY"===r.tagName.toUpperCase())&&l(r)}var c,s;try{t.forEach(function(e){e.setAttribute("role","presentation"),e.setAttribute(u,"")});var d=0,f=a.ElementsWithText.getElementsWithText(document);try{for(var p=__values(f),h=p.next();!h.done;h=p.next()){var m=h.value;if(!m.hasAttribute(u)){var g=o.customTrim(m.innerText),y=g.match(/(?:[\$\xA2-\xA5\u058F\u060B\u09F2\u09F3\u09FB\u0AF1\u0BF9\u0E3F\u17DB\u20A0-\u20BD\uA838\uFDFC\uFE69\uFF04\uFFE0\uFFE1\uFFE5\uFFE6])(?:[^0-9.]*)([\d,.]+)/);g&&y&&y.length&&(m.setAttribute(u,""),l(m)&&(m.setAttribute("aria-label","Previous price was "+y[0]),m.setAttribute(u,"price"),d++))}}}catch(e){c={error:e}}finally{try{h&&!h.done&&(s=p.return)&&s.call(p)}finally{if(c)throw c.error}}e.onHelperRemediationCompleted(i.of("REMEDIATION_SCREEN_READER_BASIC",null,null,t.length+d,0)),r()}catch(e){n(e)}})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){return!!["A","INPUT","BUTTON","SELECT","TEXTAREA"].includes(e.tagName)||!!e.hasAttribute("tabindex")}function t(e){var t=e.getAttribute("aria-label")||e.textContent;return t&&t.trim()?t.trim().toLowerCase():null}function r(){var r,n,i=document.querySelector("main"),o=document.querySelector('[role="main"]'),a=document.querySelector("h1"),u=[].slice.call(document.querySelectorAll("h2, h3, h4, h5, h6")),l=u.length?u[0]:null,c=i||o||a||l;if(!c)return!0;var s=[].slice.call(document.querySelectorAll("body *")),d=0;try{for(var f=__values(s),p=f.next();!p.done;p=f.next()){var h=p.value;if(h===c)break;if(!h.id||"userwayAccessibilityIcon"!==h.id){if(e(h)&&++d<3){var m=t(h);if(m&&"uw-skip-to-main"!==h.id&&(m.toLowerCase().indexOf("skip")>-1||m.toLowerCase().indexOf("pass")>-1||m.toLowerCase().indexOf("jump")>-1))return!0}if(d>5)break}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}return d>0&&d<=5}function n(e,t,n,i){try{var o=location.pathname,c=0;-1!==a.indexOf(o)||r()||(a.push(o),document.body.setAttribute(l,""),c=1),e.onHelperRemediationCompleted(u.of("REMEDIATION_SKIP_NAVIGATION_LINK",null,null,c,0)),t()}catch(e){n(e)}}var i=UserWayWidgetApp.addLib("REMEDIATION_SKIP_NAVIGATION_LINK"),o=UserWayWidgetApp.getLib("remediationConfig").complex,a=[],u=UserWayWidgetApp.getLib("remediation_helper_outcome"),l="data-uw-rm-skl";i.getScannerRuleId=function(){return"R_50"},i.filter=function(e){return[]},i.awaitForResources=function(e,t){return Promise.resolve()},i.doRemediation=function(e,t,r){return new Promise(function(r,i){n(e,r,i,t)})},i.getSkipLinksConfig=function(){return{enabled:!(!o||o.skipLinks&&!o.skipLinks.enabled),selector:o&&o.skipLinks&&o.skipLinks.anchorSelector?o.skipLinks.anchorSelector:null}}}();var __read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e,t){var r=c.resources+UserWayWidgetApp.ContextHolder.config.services.siteId+"/"+d.hashString(p);d.request({method:"GET",url:r}).then(function(t){if(t&&t.response&&404!==JSON.parse(t.response).code){var r=JSON.parse(t.response);m=r.Dictionary,y=r.ContentModeration}e()},function(e){t(e)})}function t(){m={},y={},[].slice.call(document.querySelectorAll("["+h+"]")).forEach(function(e){e.removeAttribute(h)})}function r(e){return new RegExp("([^A-Za-z0-9_-]|^)"+e.replace(/(\s)/g,"\\s+")+"([^A-Za-z0-9_-]|$)","gi")}function n(e){for(var t=Object.keys(m).length;t--;){var r=Object.keys(m)[t],n=m[r],i=n.t;if(e.trim().toLowerCase()===i.trim().toLowerCase())return r}throw"Unexpected term: "+e}function i(e,t,r){for(var n=y.length;n--;){var i=y[n];if(i.phraseId+""===e&&i.type===t&&i.xpath===r&&!i.ignored)return i.correction}return null}function o(e,t,r){for(var n=y.length;n--;){var i=y[n];if(i.phraseId+""===e&&i.type===t&&i.xpath===r&&i.ignored)return!0}return!1}function a(e,t,a,l,c){try{l=l.filter(function(e){var t=e.parentNode;return t&&"function"!=typeof t.hasAttribute||!t.hasAttribute(h)});var f=0,p=[],y=Object.keys(m).map(function(e){return m[e].t});l.forEach(function(e){var t=" "+d.customTrim(e.textContent)+" ",a="INNER_TEXT",l=[];if(y.forEach(function(e){var n=t.match(r(e));n&&l.push.apply(l,__spreadArray([],__read(new Array(n.length).fill(e)),!1))}),l&&l.length){f+=l.length;for(var c=d.xpath(e.parentElement),s=0;s<l.length;s++){for(var m=l[s],b=0,v=0;v<s;v++){l[v].toLowerCase()===m.toLowerCase()&&b++}var A=d.hashString(c+m+b)+"",_=n(m),E=o(_,a,A),w=i(_,a,A),x=!!w||E;x&&g++,w&&!E&&u(e,m,w),e.parentElement.setAttribute(h,""),p.push({xpath:c,xpathHash:A,type:a,term:m,approved:x,ignored:E,phraseId:_,correction:x?w:null})}}}),e.onHelperRemediationCompleted(s.of("REMEDIATION_SOCIAL_SENSITIVITY",{items:p},null,f,p.filter(function(e){return!e.correction}).length)),t()}catch(e){a(e)}}function u(e,t,r){var n=new RegExp(t,"g"),i=e.textContent;e.textContent=i.replace(n,r)}var l=UserWayWidgetApp.addLib("REMEDIATION_SOCIAL_SENSITIVITY"),c=UserWayWidgetApp.getLib("remediationConfig").moderator,s=UserWayWidgetApp.getLib("remediation_helper_outcome"),d=UserWayWidgetApp.getLib("util"),f=UserWayWidgetApp.getLib("helpers"),p=location.pathname,h="data-uw-rm-mod",m={},g=0,y={};l.getScannerRuleId=function(){return null},l.filter=function(e,r){return c.enabled?(r.reset&&t(),f.ElementsWithText.getTextNodes(document)):[]},l.awaitForResources=function(t,r){return c.enabled&&c.resources&&t.length&&r.reset?new Promise(function(t,r){e(t,r)}):Promise.resolve()},l.doRemediation=function(e,t,r){return new Promise(function(n,i){a(e,n,i,t,r)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t=e.checked,r=e.readOnly,n=e.required,i=e.disabled,o=e.hidden,a=e.getAttribute("aria-checked"),u=e.getAttribute("aria-readonly"),l=e.getAttribute("aria-required"),c=e.getAttribute("aria-disabled"),s=e.getAttribute("aria-hidden");t&&"true"!==a&&(e.ariaChecked=!0),t||"false"===a||(e.ariaChecked=!1),r&&"true"!==u&&(e.ariaReadOnly=!0),r||"false"===u||(e.ariaReadOnly=!1),n&&"true"!==l&&(e.ariaRequired=!0),n||"false"===l||(e.ariaRequired=!1),i&&"true"!==c&&(e.ariaDisabled=!0),i||"false"===c||(e.ariaDisabled=!1),o&&"true"!==s&&(e.ariaHidden=!0),o||"false"===s||(e.ariaHidden=!1)}function t(t){var r=function(r){var n,i;try{for(var o=__values(r),a=o.next();!a.done;a=o.next()){"attributes"===a.value.type&&e(t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},n=new MutationObserver(r),i={attributes:!0,childList:!1,subtree:!1};n.observe(t,i)}var r=UserWayWidgetApp.addLib("REMEDIATION_ANGULAR_JS_ARIA");r.getScannerRuleId=function(){return null},r.filter=function(e,t){return[]},r.awaitForResources=function(e,t){return Promise.resolve()},r.doRemediation=function(e,t,r){return new Promise(function(n,i){processElements(e,n,i,t,r)})},r.doRemediation=function(r,n,i){var o=document.querySelectorAll("[ng-show], [ng-hide], [ng-value], [ng-checked], [ng-readonly], [ng-required], [ng-model], [ng-disabled]");return new Promise(function(r,n){var i,a;try{for(var u=__values(o),l=u.next();!l.done;l=u.next()){var c=l.value;e(c),t(c)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}r()})}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},__assign.apply(this,arguments)},__read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(e,t){return(e+"$"+t).toLowerCase()}function t(t){t.forEach(function(t){h[e(t.href,t.term)]=t})}function r(e,r){if(UserWayWidgetApp.ContextHolder.remediationResources)return t(UserWayWidgetApp.ContextHolder.remediationResources.VagueLinks),e();c.resources?d.request({method:"GET",url:c.resources}).then(function(r){r&&r.response&&(t(JSON.parse(r.response).VagueLinks),e())},function(e){console.warn("Can't load descriptions."),r()}):c.enabled?e():r()}function n(e){return e.filter(function(e){if(!e||e.nodeType!==Node.ELEMENT_NODE||"A"!==e.nodeName)return!1;var t=e.href;if(!t||!/(^http|^tel:|^mailto:)/.test(t))return!1;var r=e.hasAttribute("aria-label")?e.getAttribute("aria-label"):null;if(r&&r.trim())return!1;var n=e.hasAttribute("aria-labelledby")?e.getAttribute("aria-labelledby"):null;return(!n||!n.trim())&&!e.hasAttribute(p)})}function i(t,r,n,i){try{var u=[];i.forEach(function(t){var r,n=o(t);if(n){if(/^tel:|^mailto:/.test(t.getAttribute("href")))r=n;else if(-1===["here","click here","download","download now","click","click this","this","link","more","read more","please click here","continue reading","learn more →","learn more","more details"].indexOf(n))return;var i=e(t.href,n),l=!1,c={};h[i]?(r=h[i].correction,l=h[i].approved,c=Object.assign(h[i],{id:i}),u.push(c),m[i]=__assign(__assign({},c),{el:t})):r||(r=a(t),c={href:t.href,term:n,correction:r,approved:l,id:i},u.push(c),m[i]=__assign(__assign({},c),{el:t})),(l||s)&&t.setAttribute("aria-label",r),t.setAttribute("uw-rm-vague-link-id",i),t.setAttribute(p,"")}}),t.onHelperRemediationCompleted(f.of("REMEDIATION_VAGUE_LINK",{items:u},null,u.length,u.filter(function(e){return!e.approved}).length)),r()}catch(e){n(e)}}function o(e){var t=e.textContent?e.textContent:null,r=/tel:(.+)/,n=/mailto:(.+)/,i=e.hasAttribute("href")?e.getAttribute("href"):null;return r.test(i)?i.replace(r,"call $1"):n.test(i)?i.replace(n,"send an email to $1"):t&&t.trim()?d.customTrim(t).replace(/[^A-Za-z0-9\s]/g,"").replace(/\s{2,}/g," ").toLowerCase():null}function a(e){function t(e){if(!e)return null;if(-1!==["h1","h2","h3","h4","h5","h6"].indexOf(e.nodeName.toLowerCase()))return e.textContent;var t=[].slice.call(e.querySelectorAll("h1,h2,h3,h4,h5,h6"));return t.length?t[0].textContent:null}for(var r=e.parentElement,n=e;d.customTrim(d.customTextContent(r))===d.customTrim(e.textContent);)n=r,r=r.parentElement;for(var i=n.previousElementSibling,o=t(i);i&&i.parentElement===r&&!o;)i=i.previousElementSibling,o=i?t(i):null;if(o)return[e.textContent,o].join(" ");var a=function(e,t){for(var r,n=[],i=d.instantiateTreeWalker(e);r=i.nextNode();)n.push({node:r,target:r.parentElement===t});return n}(r,e).map(function(e){return{text:d.customTrim(e.node.textContent),target:e.target}}).filter(function(e){return!!e.text}),u="",l="",c="";l=a.find(function(e){return e.target});var s=a.indexOf(l);l=l?l.text:"";var f=[];if(s&&a[s-1]&&(f=a[s-1].text.split(/[.!?]+/),u=f.pop(),u=u?u.trim():""),s+1<a.length){c=a[s+1].text.split(/[.!?]+/).shift(),c=c?c.trim():""}return u||c||(u=f.length?f.pop():""),[u,l,c].filter(function(e){return!!e}).join(" ")}var u=UserWayWidgetApp.addLib("REMEDIATION_VAGUE_LINK"),l=UserWayWidgetApp.getLib("remediationConfig"),c=l.vagueLinks||{},s=!l.strategy||"AUTO"===l.strategy,d=UserWayWidgetApp.getLib("util"),f=UserWayWidgetApp.getLib("remediation_helper_outcome"),p="data-uw-rm-vglnk",h={},m={};u.getScannerRuleId=function(){return"R_47"},u.filter=function(e,t){if(t.reset){[].slice.call(document.querySelectorAll("["+p+"]")).forEach(function(e){e.removeAttribute(p)})}return n([].concat.apply([],__spreadArray([],__read(e.map(function(e){return[].slice.call(e.querySelectorAll("a[href]"))})),!1)))},u.awaitForResources=function(e,t){return t.reset?new Promise(function(e,t){r(e,t)}):Promise.resolve()},u.doRemediation=function(e,t,r){return new Promise(function(r,n){i(e,r,n,t)})},u.updateElement=function(e){var t=m[e.id];t&&t.el&&"function"==typeof t.el.setAttribute&&t.el.setAttribute("aria-label",e.correction)}}(),function(){function e(){var e=I.contrastIssues;I.contrastIssues=[],e.forEach(function(e){var t=e.element,r=e.contrastData,n=r[0],i=(r[1],r[2],e.isLightFg),o=e.isLightBg;1===n?(t.setAttribute("data-uw-contrast-bg-"+(i?"black":"white"),""),t.style.setProperty("background-color",i?"black":"white","important")):(t.setAttribute("data-uw-contrast-fg-"+(o?"black":"white"),""),t.style.setProperty("color",o?"black":"white","important"))})}function t(e){var t=!1;if(!e)return!1;for(var r=e.childNodes,n=0;n<r.length;n++)if(3===r[n].nodeType&&r[n].nodeValue.length>0&&-1===r[n].nodeValue.search(/^\s+$/i)){t=!0;break}return"INPUT"===e.tagName&&e.value.length>0&&["text","button","email","number","password","reset","submit","tel","url","button"].includes(e.type)&&(t=!0),"SELECT"===e.tagName&&e.options.length>0&&(t=!0),t}function r(e,o,a,u){e||(e=u||document.body,o=n(e,"fg"),"0"===(a=n(e,"bg"))[3]&&(a=["255","255","255","1","rgb(255, 255, 255)"]),t(e)&&i(e,o,a));for(var l=0;e.children&&l<e.children.length;l++)if(child=e.children[l],"SVG"!==child.tagName.toUpperCase()&&"SCRIPT"!==child.tagName&&"IMG"!==child.tagName&&"STYLE"!==child.tagName)if(0===child.offsetWidth||0===child.offsetHeight)child.childNodes&&r(child,o,a);else{var c=n(child,"fg"),s=n(child,"bg");"0"===c[3]&&(c=o),"0"===s[3]&&(s=a),t(child)&&1===parseFloat(s[3])?c!==o||s!==a?(i(child,c,s),r(child,c,s)):r(child,c,s):child.childNodes&&r(child,c,s)}}function n(e,t){var r=getComputedStyle(e);if("fg"===t){var n=r.color.replace(/[^\d,.]/g,"").split(",");return n[3]||(n[3]="1"),n[4]=r.color,n}var i=r.backgroundColor.replace(/[^\d,.]/g,"").split(",");return i[3]||(i[3]="1"),(r.background.indexOf("linear-gradient")>-1||r.opacity<1||"none"!==r.filter)&&(i[3]=".1"),i[4]=r.backgroundColor,i}function i(e,t,r){var n={},i=new O(t),u=new O(r),l=i.contrast(u),c=l.ratio;if(c){var s=c+":1";n.ratio=Number(c),n.contrastratio=s;var d=window.getComputedStyle(e),f=d.getPropertyValue("font-size"),p=d.getPropertyValue("font-weight"),h=72*Number(f.substring(0,f.length-2))/96,m=h>=18||h>=14&&("bold"===p||parseInt(p)>=700),g=void 0;if(c>=4.5)return;if(c>=3&&m)return;g=m?3:4.5;var y=a(t[4]),b=a(r[4]),v=[o(n.ratio),y,b,!1];I.contrastIssues.push({contrastData:v,isLightFg:i.isLight(),isLightBg:u.isLight(),expectedRatio:g,element:e})}}function o(e){if(-1!==(e=String(e)).indexOf(".")){var t=e.split(".");return 1===t.length?Number(e):Number(t[0]+"."+t[1].charAt(0)+t[1].charAt(1))}return Number(e)}function a(e){var t=e.indexOf(",")>-1?",":" ",r=(+(e=e.substr(4).split(")")[0].split(t))[0]).toString(16),n=(+e[1]).toString(16),i=(+e[2]).toString(16);return 1===r.length&&(r="0"+r),1===n.length&&(n="0"+n),1===i.length&&(i="0"+i),"#"+r+n+i}function u(){[].slice.call(document.querySelectorAll(R)).forEach(function(e){e.parentElement.removeChild(e)})}function l(){[].slice.call(document.querySelectorAll(".slick-dots")).forEach(function(e){e.parentElement.removeChild(e)})}function c(e){e.forEach(function(e){if(e&&e.getAttribute){["aria-labelledby","aria-describedby"].forEach(function(t){var r=e.getAttribute(t);if(!r)return void e.removeAttribute(t);var n=r.split(" "),i=null;n.forEach(function(e){var t=document.getElementById(e);t&&t.textContent&&(i=t.textContent.trim())});var o=n.filter(function(e){var t=document.getElementById(e);return!t||!t.textContent});if(o.length){var a=r;o.forEach(function(e){a=a.replace(e,"")}),a=a.trim(),a?e.setAttribute(t,a):e.removeAttribute(t),e.setAttribute("data-"+t,r)}e.textContent||S.addScreenRearedElement(e,i||".","data-uw-rm-wave")})}})}function s(e){e.forEach(function(e){if(e&&e.getAttribute&&e.hasAttribute("role")){var t=e.getAttribute("role");if(["menu","menubar"].includes(t)){0===[].slice.call(e.querySelectorAll('[role="menuitem"],[role="menuitemcheckbox"],[role="menuitemradio"]')).length&&(e.removeAttribute("role"),e.setAttribute("data-role",t))}}})}function d(){[].slice.call(document.querySelectorAll("a[href]")).forEach(function(e){var t=e.href&&-1!==e.href.indexOf("#")&&e.href.split("#").pop();t&&(document.getElementById(t)||e.removeAttribute("href"))})}function f(){[].slice.call(document.querySelectorAll("label")).forEach(function(e){if([].slice.call(e.querySelectorAll("label")).forEach(function(e){e.parentNode.removeChild(e)}),0===e.innerText.trim().length)e.parentNode.removeChild(e);else if(e.hasAttribute("for")){var t=e.getAttribute("for"),r=[].slice.call(document.querySelectorAll('label[for="'+t+'"]'));if(t&&(""+t).trim()&&r.length>1){var n=[];r.forEach(function(e){if(e.innerText.trim().length>0){var r="label_"+t+"_"+n.length;e.removeAttribute("for"),e.setAttribute("id",r),n.push(r)}});var i=[].slice.call(document.querySelectorAll("#"+t));i.forEach(function(e){e.setAttribute("aria-labelledby",n.join(" "))})}}})}function p(){[].slice.call(document.querySelectorAll("input,textarea,select")).forEach(function(e){if(e){var t=window.getComputedStyle(e);if("none"===t.display||"hidden"===t.visibility)e.parentNode.removeChild(e);else if(!e.hasAttribute("aria-label")){var r="Input control";if("file"===e.getAttribute("type"))r="File input";else if(e.hasAttribute("class")){var n=e.getAttribute("class");n&&-1!==n.toLowerCase().indexOf("captcha")&&(r="Captcha")}e.setAttribute("aria-label",r)}}})}function h(){[].slice.call(document.querySelectorAll("img")).forEach(function(e){if(!e.hasAttribute("alt")||!e.getAttribute("alt").trim()){var t=e.parentNode.getAttribute("aria-label")||e.parentNode.getAttribute("title")||e.parentNode.getAttribute("href")||"image";e.setAttribute("alt",t),e.setAttribute("aria-hidden","true")}})}function m(){[].slice.call(document.querySelectorAll("[usemap]")).forEach(function(e){e.removeAttribute("usemap")}),[].slice.call(document.querySelectorAll("area")).forEach(function(e){if(!e.hasAttribute("alt")||!e.getAttribute("alt").trim()){var t=e.hasAttribute("title")&&e.getAttribute("title").trim();t?e.setAttribute("alt",t):e.setAttribute("aria-hidden","true")}})}function g(){[].slice.call(document.querySelectorAll("a")).forEach(function(e){var t=e.querySelector("img");if(t&&!t.getAttribute("alt")){var r=e.getAttribute("aria-label")||e.getAttribute("title")||e.innerText;r||(r="Linked image"),t.setAttribute("alt",r)}})}function y(){[].slice.call(document.querySelectorAll("a")).forEach(function(e){e.innerText&&e.innerText.trim()||e.title||(e.title=e.getAttribute("aria-label")||e.getAttribute("href")||"link")})}function b(){if(!document.title.trim()){var e=document.querySelector("title");if(e)e.innerHTML=window.location;else{var t=document.createElement("title");t.innerHTML=window.location,document.head.appendChild(t)}}}function v(){[].slice.call(document.querySelectorAll("[longdesc]")).forEach(function(e){var t=e.getAttribute("longdesc").trim();t.length>0&&(0===t.indexOf("http://")||0===t.indexOf("https://"))&&t.indexOf(".jpg")!==t.length-4&&t.indexOf(".png")!==t.length-4&&t.indexOf(".pdf")!==t.length-4||e.removeAttribute("longdesc")})}function A(){[].slice.call(document.querySelectorAll("th")).forEach(function(e){Boolean(x.getElementAccessibleName(e))||S.addScreenRearedElement(e,"This cell left empty intentionally","data-uw-rm-wave")})}function _(){[].slice.call(document.querySelectorAll("title")).forEach(function(e){e.innerText&&e.innerText.trim()||e.remove()}),0===[].slice.call(document.querySelectorAll("title")).length&&document.head.insertAdjacentHTML("afterbegin","<title>"+window.location.hostname+"</title>")}function E(){var t=new MutationObserver(function(e){[].slice.call(e).forEach(function(e){c([e.target])})}),n=new MutationObserver(function(t){[].slice.call(t).forEach(function(t){r(void 0,void 0,void 0,t.target),e()})});new MutationObserver(function(i,o){window.wave&&window.wave.version&&(s([].slice.call(document.querySelectorAll('[role="menu"],[role="menubar"]'))),[].slice.call(i).forEach(function(i){var a=i.addedNodes;a=[].slice.call(a),a.forEach(function(i){
if(1===i.nodeType)if("SCRIPT"===i.tagName){var a=i.src||"";a.indexOf(L)}else i.id===N?i.style.visibility="hidden":i.id===W&&(o.disconnect(),u(),l(),d(),f(),p(),h(),m(),y(),g(),b(),v(),A(),_(),r(),e(),n.observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["class","style"]}),S.fireForceRemediationRerunEvent(),t.observe(document.documentElement,{attributes:!0,subtree:!0,attributeFilter:["aria-labelledby","aria-describedby"]}),c(document.querySelectorAll("[aria-labelledby],[aria-describedby]")),setTimeout(function(){window.wave&&window.wave.fn.newReport().then(function(e){var t=document.getElementById(N);t&&(t.style.visibility="visible")})},500))})}))}).observe(document.documentElement,{childList:!0,subtree:!0})}var w=UserWayWidgetApp.addLib("REMEDIATION_WAVE"),x=UserWayWidgetApp.getLib("remediation_utils"),S=UserWayWidgetApp.getLib("util"),I={};I.contrastIssues=[],w.apply=function(){UserWayWidgetApp.ContextHolder.config.isLH||("complete"===document.readyState?E():window.addEventListener("load",E))};var O=function(e){if("transparent"===e)e=[0,0,0,0];else if("string"==typeof e){var t=e;if(!(e=t.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/)))throw new Error("Invalid string: "+t);e.shift()}void 0===e[3]&&(e[3]=1),e=e.map(function(e){return Math.round1(e,3)}),this.rgba=e};O.prototype={get rgb(){return this.rgba.slice(0,3)},get alpha(){return this.rgba[3]},set alpha(e){this.rgba[3]=e},get luminance(){for(var e=this.rgba.slice(),t=0;t<3;t++){var r=e[t];r=(r/=255)<.03928?r/12.92:Math.pow((r+.055)/1.055,2.4),e[t]=r}return.2126*e[0]+.7152*e[1]+.0722*e[2]},clone:function(){return new O(this.rgba)},isLight:function(){var e=(this.luminance+.05)/.05;return 1.05/(this.luminance+.05)<e},overlayOn:function(e){var t=this.clone(),r=this.alpha;if(r>=1)return t;for(var n=0;n<3;n++)t.rgba[n]=t.rgba[n]*r+e.rgba[n]*e.rgba[3]*(1-r);return t.rgba[3]=r+e.rgba[3]*(1-r),t},contrast:function(e){if(this.alpha>=1){e.alpha<1&&(e=e.overlayOn(this));var t=this.luminance+.05,r=e.luminance+.05,n=t/r;return r>t&&(n=1/n),{ratio:n}}return!1}},Math.round1=function(){var e=Math.round;return function(t,r){r=+r||0;var n=Math.pow(10,r);return e(t*n)/n}}();var L="wave.min.js",N="wave_sidebar_container",W="wave5_iconbox",R=".wave5icon,.wave5text"}(),function(){function e(e,t,n){-1===u.indexOf(e)&&(u.push(e),r.execJs(o+t).then(function(){n&&window.postMessage({isUserWay:!0,action:"remediation",type:"add-dynamically",remediationHelperName:n},"*")}))}var t=UserWayWidgetApp.addLib("cpr_patterns_observer"),r=UserWayWidgetApp.getLib("util"),n=UserWayWidgetApp.getLib("remediation_util"),i=UserWayWidgetApp.ContextHolder.config,o="https://cdn.userway.org/",a="widgetapp/2022-09-26/remediation/nav_menu_helper1664187619569.js",u=[];t.apply=function(e){l.filter(function(e){return e.onPageLoad}).forEach(function(e){return e.observe()})},t.tick=function(e){l.filter(function(e){return e.onDomChanged}).forEach(function(e){return e.observe()})};var l=[{name:"DysonAccountSitesCommon",remediationHelperName:"",path:"widgetapp/2022-09-26/remediation/dyson_account_1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this;"twU6NPzWRR"===UserWayWidgetApp.ContextHolder.config.account&&function(){e(t.name,t.path,t.remediationHelperName)}()}},{name:"JQueryUiDatepicker",remediationHelperName:"",path:"widgetapp/2022-09-26/remediation/jqueryui_datepicker_1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){[].slice.call(document.querySelectorAll(".hasDatepicker")).filter(function(e){return!e.getAttribute("data-uw-rm-cpr-jqdp")}).length&&jQuery&&jQuery.ui&&jQuery.ui.datepicker&&"3bixbEugP2"!==UserWayWidgetApp.ContextHolder.config.account&&e(this.name,this.path,this.remediationHelperName)}},{name:"AngularJsAria",remediationHelperName:"ANGULAR_JS_ARIA",path:"widgetapp/2022-09-26/remediation/uw_aria_helper_1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=this,r=function(){e(t.name,t.path,t.remediationHelperName)};n.waitUntil(function(){return!!document.querySelector("[ng-app]")},r,{timeout:6e4})}},{name:"slickSlider",remediationHelperName:"",path:"widgetapp/2022-09-26/remediation/slick_slider_1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".slick-slider")&&i.services&&i.services.site&&-1===[12028].indexOf(i.services.site)&&e(this.name,this.path,this.remediationHelperName)}},{name:"NavMenu",remediationHelperName:"",path:"//",onPageLoad:!0,onDomChanged:!1,observe:function(){var t=function(){window.jQuery&&window.jQuery.ui&&window.jQuery.ui.version?(n.waitUntil(function(){return!!(window.jQuery&&window.jQuery.ui&&window.jQuery.ui.version&&window.jQuery.ui.menu)&&!!document.querySelector(".navigation .ui-menu-item")},function(){setTimeout(function(){e("JQueryUiMenu","widgetapp/2022-09-26/remediation/jqueryui_menu_helper_1664187619569.js","")},4e3)},{timeout:1e4}),setTimeout(function(){-1===u.indexOf("JQueryUiMenu")&&e("NavMenu",a,"")},14100)):document.querySelectorAll("ul [aria-haspopup], ul [aria-expanded], ul [class*='mega']").length>0?e("MegaMenu","widgetapp/2022-09-26/remediation/mega_menu_helper1664187619569.js",""):-1===u.indexOf("JQueryUiMenu")&&e("NavMenu",a,"")};"complete"===document.readyState?t():window.addEventListener("load",t,!1)}},{name:"OwlCarousel",remediationHelperName:"",path:"widgetapp/2022-09-26/remediation/owl_carousel1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".owl-carousel")&&e(this.name,this.path,this.remediationHelperName)}},{name:"yotpoWidget",remediationHelperName:"",path:"widgetapp/2022-09-26/remediation/yotpo_widget_1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".yotpo")&&e(this.name,this.path,this.remediationHelperName)}},{name:"judgeMe",remediationHelperName:"",path:"widgetapp/2022-09-26/remediation/judgeme_widget_1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".jdgm-star")&&e(this.name,this.path,this.remediationHelperName)}},{name:"cycleSliderHelper",remediationHelperName:"",path:"widgetapp/2022-09-26/remediation/cycle_slider_helper_1664187619569.js",onPageLoad:!0,onDomChanged:!1,observe:function(){document.querySelector(".cycle-slide")&&e(this.name,this.path,this.remediationHelperName)}}]}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var r=e.alt;if(r&&r.trim())return r.trim();var n=e.getAttribute("aria-label");if(n&&n.trim())return n.trim();var i=e.getAttribute("aria-describedby");if(i){var o=t(i);if(o)return o}var a=e.getAttribute("aria-labelledby");if(a){var o=t(a);if(o)return o}return null}function t(e){var t=e.split(" "),r="";return t.forEach(function(e){e=e.trim();var t=document.getElementById(e);r+=t&&t.textContent?t.textContent:""}),r}var r,n=UserWayWidgetApp.addLib("remediation_utils");n.ignoreElementFromHelperProcessingAttr="data-uw-rm-ignore";var i=UserWayWidgetApp.getLib("util"),o=UserWayWidgetApp.getLib("inlineStyling"),a=UserWayWidgetApp.getLib("xpath_search");n.PROCESS_ATTRIBUTES={CER:{popup:{wrapper:"data-uw-cer-popup-wrapper",close:"data-uw-cer-popup-close"},hamburger:{button:"data-uw-cer-hamburger-btn"}}};var u={attrMarker:"uw-remediation",className:"uw-remediation-highlighting",styles:(r={border:"dashed 2px #c00"},r["border-radius"]="3px",r["box-shadow"]="0 0 0 4px yellow, inset 0 0 0 4px yellow",r)};n.sendBackEnd=function(e,t,r){var n={method:"POST",url:"https://api.userway.org/api"+e,header:{"Content-Type":"application/json"},body:{userId:UserWayWidgetApp.ContextHolder.config.services.userId,siteId:UserWayWidgetApp.ContextHolder.config.services.siteId}};return t&&(n.body.elements=t),"object"==typeof r&&Object.keys(r).map(function(e){n.body[e]=r[e]}),i.request(n)},n.highlightElements=function(e,t,r){var n,i,l,c,s=document.querySelectorAll("."+u.className);s.length&&s.forEach(function(e){o.resetInlineStyles(e,u.attrMarker,u.styles),e.classList.remove(u.className)});var d=[];switch(e){case"xpath":var f=a.recursiveXpathSearch(t);d="boolean"!=typeof f?[f]:[];break;case"href":var p=Array.prototype.slice.call(document.querySelectorAll("[href]"));try{for(var h=__values(p),m=h.next();!m.done;m=h.next()){var g=m.value;g.href.toLowerCase().indexOf(t)>-1&&d.push(g)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}break;case"src":var y=Array.prototype.slice.call(document.querySelectorAll("[src]"));try{for(var b=__values(y),v=b.next();!v.done;v=b.next()){var A=v.value;A.src.toLowerCase().indexOf(t)>-1&&d.push(A)}}catch(e){l={error:e}}finally{try{v&&!v.done&&(c=b.return)&&c.call(b)}finally{if(l)throw l.error}}break;case"attr":if(r.attrName){var _=document.querySelectorAll("["+r.attrName+'="'+t+'"]');d=Array.prototype.slice.call(_)}}for(var E=0;E<d.length;E++){var w=d[E];if(w&&"function"==typeof w.setAttribute&&(w.classList.add(u.className),o.applyInlineStyles(w,u.attrMarker,u.styles),!E&&r.scroll)){var x=w.getBoundingClientRect(),S=x.top+window.pageYOffset-document.documentElement.clientTop-window.innerHeight/2+x.height;window.scrollTo({top:S,behavior:"smooth"})}}},n.getElementAccessibleName=function(r){var n=r.getAttribute("aria-label"),i=r.getAttribute("aria-describedby");if(i&&(n+=t(i)),n&&n.trim())return n.trim().toLowerCase();var o=r.getAttribute("aria-labelledby");if(o&&(n+=t(o)),n&&n.trim())return n.trim().toLowerCase();if((n=r.textContent?r.textContent:null)&&n.trim())return n.trim().toLowerCase();if((n=r.value||"")&&n.trim()&&"INPUT"===r.tagName.toUpperCase()&&r.type&&-1!==["button","submit","reset"].indexOf(r.type.toLowerCase()))return n.trim().toLowerCase();var a=r.querySelector('img, *[role="img"]');return a&&(n=e(a))&&n.trim()?n.trim().toLowerCase():null}}(),function(){var e=UserWayWidgetApp.addLib("remediation_helper_outcome"),t=UserWayWidgetApp.getLib("util");e.of=function(e,r,n,i,o){return r=r||{items:[]},n=n||{items:[],path:null},{helperName:e,postMessageAppData:r,backEndData:n,countFixed:i,countTodo:o,hash:t.hashString(e+JSON.stringify(r)+i+o)}}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},__assign.apply(this,arguments)};!function(){var e=UserWayWidgetApp.addLib("remediation_results_holder"),t=UserWayWidgetApp.getLib("util"),r=["REMEDIATION_HEADING","REMEDIATION_COLOR_CONTRAST"];e.instance=new function(){var e=this,n={};e.reset=function(){n={}},e.get=function(){return n},e.mergeHelperOutcomes=function(e,n){if(e.helperName!==n.helperName)throw"Inconsistent helpers! Unable to merge "+e.helperName+" with "+n.helperName;var i=e.postMessageAppData&&-1===r.indexOf(e.helperName),o=-1===r.indexOf(e.helperName);return e.postMessageAppData=i?{items:e.postMessageAppData.items.concat(n.postMessageAppData.items)}:__assign({},n.postMessageAppData),e.backEndData.items=n.backEndData.items,e.countFixed=o?e.countFixed+n.countFixed:n.countFixed,e.countTodo=e.countTodo+n.countTodo,e.hash=t.hashString(n.hash),e},e.put=function(t){var r=t.helperName,i=n[r]?e.mergeHelperOutcomes(n[r],t):t;n[r]=i},e.getCurrentHash=function(){var e="";return Object.keys(n).length?(Object.keys(n).forEach(function(t){e+=n[t].hash}),e):e},e.getHelperPostMessagePayload=function(e){var t=n[e];return t?t.postMessageAppData:{items:[]}},e.getHelpersOutcomeCounters=function(){var e={};return Object.keys(n).forEach(function(t){e[t]=n[t].countFixed}),e},e.getHelpersTodoOutcomeCounters=function(){var e={};return Object.keys(n).forEach(function(t){e[t]=n[t].countTodo}),e},e.toString=function(){return JSON.stringify(n)}}}(),function(){UserWayWidgetApp.addLib("remediation_changes_detector").instance=new function(){function e(){if(n.length!==r)return!1;var e=n.every(function(e){return e===n[0]});return t.reset(),e}var t=this,r=2,n=[];t.reset=function(){n=[]},t.anyChange=function(t){return n.length<r&&n.push(t),n.length>r&&(n=[t]),!e()},t.anyChangeOnIterationComplete=function(e){return t.anyChange(e)}}}(),function(){var e=UserWayWidgetApp.addLib("remediation_stopwatch"),t={};e.checkPointHelperStart=function(e,r){r.debugMode&&(t.hasOwnProperty(e)||(t[e]={start:[],"f-start":[],"f-end":[],"a-start":[],"a-end":[],"r-start":[],"r-end":[],end:[]}),t[e].start.push(performance.now()))},e.checkPointHelperEnd=function(e,r){r.debugMode&&t[e].end.push(performance.now())},e.checkPointHelperFilterStart=function(e,r){r.debugMode&&t[e]["f-start"].push(performance.now())},e.checkPointHelperFilterEnd=function(e,r){r.debugMode&&t[e]["f-end"].push(performance.now())},e.checkPointHelperAwaitForResourcesStart=function(e,r){r.debugMode&&t[e]["a-start"].push(performance.now())},e.checkPointHelperAwaitForResourcesEnd=function(e,r){r.debugMode&&t[e]["a-end"].push(performance.now())},e.checkPointHelperDoRemediationStart=function(e,r){r.debugMode&&t[e]["r-start"].push(performance.now())},e.checkPointHelperDoRemediationEnd=function(e,r){r.debugMode&&t[e]["r-end"].push(performance.now())},UserWayWidgetApp.getHelpersPerformance=function(){var e={};return Object.keys(t).forEach(function(r){var n=t[r];e[r]={"1_filter":[],"2_resources":[],"3_remediation":[],"4_total":[]};for(var i=0;i<n.start.length;i++)e[r]["1_filter"].push(n["f-end"][i]-n["f-start"][i]),e[r]["2_resources"].push(n["a-end"][i]-n["a-start"][i]),e[r]["3_remediation"].push(n["r-end"][i]-n["r-start"][i]),e[r]["4_total"].push(n.end[i]-n.start[i])}),t._aggregated=e,t}}(),function(){function e(e,t,n,i){return new Promise(function(o,a){var u=UserWayWidgetApp.getLib(e);r.checkPointHelperStart(u.name,i);var l=[];r.checkPointHelperFilterStart(u.name,i);try{l=u.filter?u.filter(t,i):null,r.checkPointHelperFilterEnd(u.name,i)}catch(e){return r.checkPointHelperFilterEnd(u.name,i),r.checkPointHelperEnd(u.name,i),i.debugMode&&console.error(e),o()}r.checkPointHelperAwaitForResourcesStart(u.name,i),u.awaitForResources(l,i).then(function(){r.checkPointHelperAwaitForResourcesEnd(u.name,i),r.checkPointHelperDoRemediationStart(u.name,i),u.doRemediation(n,l,i).then(function(){r.checkPointHelperDoRemediationEnd(u.name,i),r.checkPointHelperEnd(u.name,i),o()}).catch(function(e){r.checkPointHelperDoRemediationEnd(u.name,i),r.checkPointHelperEnd(u.name,i),i.debugMode&&console.error(e),o()})}).catch(function(e){r.checkPointHelperAwaitForResourcesEnd(u.name,i),r.checkPointHelperEnd(u.name,i),i.debugMode&&console.error(e),o()})})}var t=UserWayWidgetApp.addLib("remediation_processor"),r=UserWayWidgetApp.getLib("remediation_stopwatch");UserWayWidgetApp.getLib("remediation_utils");t.runHelper=function(t,r,n,i){return t.then?t:e(t,r,n,i)},t.parallel=function(e,t){return Promise.all(e.map(function(e){return t(e)}))},t.sequence=function(e,t){return e.reduce(function(e,r){return e.then(function(){return t(r)})},Promise.resolve())},t.series=function(e,r,n,i){return t.sequence(e,function(e){return t.parallel(e,function(e){return t.runHelper(e,r,n,i)})}).catch(function(e){return reject(e)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(e){var t,r,n=[].slice.call(d.findAllElements(e)),i=n.filter(function(e){var t,r,n=Array.from(e.attributes),i=!1;try{for(var o=__values(n),a=o.next();!a.done;a=o.next()){var u=a.value,l=u.value.toLowerCase();if(-1!==l.indexOf("close")||-1!==l.indexOf("dismiss")){i=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return i}),o=null,a=u().vw,l=Math.round(a/20);try{for(var c=__values(i),s=c.next();!s.done;s=c.next()){var f=s.value,p=f.offsetWidth,h=f.offsetHeight;if(p&&h&&p<=5*l){o=f;break}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return o}function t(e,t){var r,n,i=null;try{for(var o=__values(e[0]),u=o.next();!u.done;u=o.next()){var l=u.value,c=new Array(e.length).fill(0);c[0]=1;for(var s=1;s<e.length;s++){e[s].indexOf(l)>-1&&(c[s]=1)}if(c.every(function(e){return!!e})){i=l;break}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i&&0===e[0].indexOf(i)&&a(i.offsetWidth,t)<10&&(i=null),i}function r(e,t){return e.classList.contains("tt-dropdown-menu")||/datepicker/.test(e.getAttribute("class"))||!!Array.from(document.querySelectorAll("nav")).find(function(t){return e.contains(t)})||!!e.querySelector("[class*='search']")}function n(e){var t=window.getComputedStyle(e),n="none"===t.display,i="fixed"===t.position,o=parseFloat(t.width),a=parseFloat(t.height);return i&&!n&&o&&a&&!r(e,t)}function i(e){var t=null;if(!e)return t;for(;e&&"BODY"!==e.tagName;){if(n(e)){t=e;break}e=e.parentElement}return t}function o(){if(114355===f.services.siteId||990479===f.services.siteId)return null;var e=u(),r=e.vw,n=e.vh,o=Math.round(r/2),a=Math.round(n/2),l=Math.round(3*r/4),c=Math.round(n/4),s=a+Math.round(n/4),d=Math.round(r/20),p=Math.round(n/20),h=[{x:o,y:a-p},{x:o+d,y:a},{x:o,y:a+p},{x:o-d,y:a}],m=[{x:l,y:a-p},{x:l+d,y:a},{x:l,y:a+p},{x:l-d,y:a}],g=[{x:o,y:c},{x:o-d,y:c+p},{x:o+d,y:c+p}],y=[{x:o,y:s},{x:o-d,y:s-p},{x:o+d,y:s-p}],b=document.elementsFromPoint(h[0].x,h[0].y),v=document.elementsFromPoint(h[1].x,h[1].y),A=document.elementsFromPoint(h[2].x,h[2].y),_=document.elementsFromPoint(h[3].x,h[3].y),E=i(t([b,v,A,_],r));if(E)return E;var w=document.elementsFromPoint(g[0].x,g[0].y),x=document.elementsFromPoint(g[1].x,g[1].y),S=document.elementsFromPoint(g[2].x,g[2].y),I=i(t([w,x,S],r));if(I)return I;var O=document.elementsFromPoint(y[0].x,y[0].y),L=document.elementsFromPoint(y[1].x,y[1].y),N=document.elementsFromPoint(y[2].x,y[2].y),W=i(t([O,L,N],r));if(W)return W;var R=document.elementsFromPoint(m[0].x,m[0].y),C=document.elementsFromPoint(m[1].x,m[1].y),T=document.elementsFromPoint(m[2].x,m[2].y),k=document.elementsFromPoint(m[3].x,m[3].y),U=i(t([R,C,T,k],r));return U||null}function a(e,t){return Math.abs(e-t)/((e+t)/2)*100}function u(){return{vw:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),vh:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}var l=UserWayWidgetApp.addLib("cer_observer"),c=UserWayWidgetApp.getLib("event_emitter"),s=UserWayWidgetApp.getLib("remediation_utils"),d=UserWayWidgetApp.getLib("remediation_util"),f=UserWayWidgetApp.ContextHolder.config,p=[];l.apply=function(e){},l.tick=function(t){var r=t.processParameters;r.debugMode&&console.log("CER observer: tick");var n,i=null;r.debugMode&&(n=performance.now());var a=null;try{a=o()}catch(e){r.debugMode&&console.error(e)}if(a){a.setAttribute(s.PROCESS_ATTRIBUTES.CER.popup.wrapper,"");if(-1===p.indexOf(a)){p.push(a);var u=null;try{u=e(a)}catch(e){r.debugMode&&console.error(e)}u&&u.setAttribute(s.PROCESS_ATTRIBUTES.CER.popup.close,""),c.emitEvent("UW_CER_POPUP_ON",[[a,u]]),r.debugMode&&console.log("CER observer: POPUP found",a,u)}}else p.forEach(function(e){c.emitEvent("UW_CER_POPUP_OFF",[e]),r.debugMode&&console.log("CER observer: POPUP closed",e)}),p=[];r.debugMode&&(i=performance.now(),console.log("CER observer tick: execution took "+(i-n)+" milliseconds."))}}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},__assign.apply(this,arguments)},__read=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};!function(){function e(){if(!S.iterationInProgress){if(g.consolidated&&!UserWayWidgetApp.ContextHolder.remediationResources)return;S.iterationInProgress=!0,S.debugMode&&console.log("UserWay Remediation: tick started"),w&&(h.tick({processParameters:S}),m.tick({processParameters:S})),p.series(__spreadArray([I,O,L],__read(N.map(function(e){return[e]})),!1),[document.body],l.HelperCallbackAggregator,{reset:S.locationChanged,debugMode:x}).catch(function(e){}).finally(function(){S.debugMode&&console.log("UserWay Remediation: tick ended"),setTimeout(function(){var e=b.getCurrentHash();!v.anyChangeOnIterationComplete(e)&&A&&(S.debugMode&&console.log("UserWay Remediation: tick stopped"),f.fireUserWayRemediationCompletedEvent({enabled:!0,counters:b.getHelpersOutcomeCounters()}),v.reset(),clearInterval(A),A=null),S.iterationInProgress=!1,i(),o()},50)}),S.locationChanged&&a(),S.locationChanged=!1}}function t(){A||(A=setInterval(function(){e()},300),e())}function r(t){var r=t.data.remediationHelperName;r&&(L.push("REMEDIATION_"+r),R.push("REMEDIATION_"+r),e())}function n(e){var t=UserWayWidgetApp.getLib("REMEDIATION_NAVIGATION_MENU");t&&"function"==typeof t.apply&&t.apply(S)}function i(){u("remediation-count",b.getHelpersOutcomeCounters())}function o(){u("all-data",b.get())}function a(){u("get-site-info",{origin:location.origin,path:location.pathname})}function u(e,t){S.debugMode&&(console.log("UserWay Remediation PostMessage: %c[TYPE]: %c"+e,"color:Blue","color:Red"),console.group("%c[PAYLOAD]:","color:Blue"),console.log(t),console.groupEnd()),f.postMessage({action:"remediation",type:e,data:t})}var l=UserWayWidgetApp.addLib("remediation_manager"),c=UserWayWidgetApp.getLib("event_emitter"),s=UserWayWidgetApp.getLib("dom_observer"),d=UserWayWidgetApp.getLib("remediation_utils"),f=UserWayWidgetApp.getLib("util"),p=UserWayWidgetApp.getLib("remediation_processor"),h=UserWayWidgetApp.getLib("cer_observer"),m=UserWayWidgetApp.getLib("cpr_patterns_observer"),g=UserWayWidgetApp.getLib("remediationConfig"),y=UserWayWidgetApp.ContextHolder.config,b=UserWayWidgetApp.getLib("remediation_results_holder").instance,v=UserWayWidgetApp.getLib("remediation_changes_detector").instance;l.ResultsHolder=b;var A,_=s.DOM_OBSERVER_DOM_CHANGED_EVENT,E=y.isLH,w=!!y.remediation&&!function(){var e=UserWayWidgetApp.ContextHolder.config.services.siteId;return!!(location.pathname&&location.pathname.indexOf("wp-admin")>-1)||([1326055,461647,650822,461657].indexOf(e)>-1||UserWayWidgetApp.ContextHolder.config.isMobile&&[1523541].indexOf(e)>-1)}(),x=!1;try{UserWayWidgetApp.setDebugMode=function(e){e?(window.localStorage.setItem("userway-rm-debug","1"),console.log("UserWay Remediation: Debug mode enabled")):window.localStorage.removeItem("userway-rm-debug")},x=window.localStorage.getItem("userway-rm-debug")}catch(e){}var S={iterationInProgress:!1,locationChanged:!0,debugMode:x},I=w?["REMEDIATION_AUTO_PLAY_VIDEO","REMEDIATION_BROKEN_LINK","REMEDIATION_FORM_LABEL","REMEDIATION_IMAGE_MISSING_ALT","REMEDIATION_SITE_LANGUAGE","REMEDIATION_MARQUEE","REMEDIATION_SCREEN_READER_BASIC","REMEDIATION_SKIP_NAVIGATION_LINK","REMEDIATION_HEADER_TITLE"]:[],O=w?["REMEDIATION_EMPTY_CONTROLS","REMEDIATION_EXTERNAL_LINK_TARGETS","REMEDIATION_KEYBOARD_NAVIGATION","REMEDIATION_VAGUE_LINK","REMEDIATION_MISC","REMEDIATION_IFRAME_TITLE","REMEDIATION_PDF_DOCUMENTS"]:[],L=w?["REMEDIATION_SOCIAL_SENSITIVITY","REMEDIATION_HEADING","REMEDIATION_ARIA_EDITOR"]:[],N=["REMEDIATION_COLOR_CONTRAST"],W=w?["REMEDIATION_FOCUS_STYLE","REMEDIATION_WAVE","REMEDIATION_ARIA_EDITOR","REMEDIATION_PER_SITE","REMEDIATION_POPUP","REMEDIATION_HAMBURGER_MENU"]:[],R=[].concat(I,O,L,N),C=function(){function e(){}return e.prototype.onHelperRemediationCompleted=function(e){e.backEndData&&e.backEndData.items.length&&d.sendBackEnd("/remediation/"+e.backEndData.path,e.backEndData.items,e.backEndData.props),b.put(e),u(e.helperName,b.getHelperPostMessagePayload(e.helperName))},e}();l.HelperCallbackAggregator=new C,!E&&t(),!E&&w&&function(){W.forEach(function(e){var t=UserWayWidgetApp.getLib(e);S.debugMode&&console.log("UserWay Remediation: One-time helper applied %c"+e,"color:Red"),t.apply(S)}),h.apply({processParameters:S}),m.apply({processParameters:S})}(),window.addEventListener("popstate",function(){S.locationChanged=!0,b.reset(),v.reset(),S.debugMode&&console.log("UserWay Remediation: tick resumed; initiator: popstate"),t()},!1),c.on(_,function(e,r){!r||r&&!r.length||(S.debugMode&&console.log("UserWay Remediation: tick resumed; initiator: DOM change"),t())});var T={"get-site-info":a,"remediation-count":i,"all-data":o,"element-is-visible":function(e){var t=JSON.parse(e.data.data),r=t.elements.map(function(e){return[e,d.isElementVisible(e)]});u("element-is-visible",{key:t.key,elements:r})},"element-highlight":function(e){var t=e.data.data.type,r=e.data.data.value?e.data.data.value.toLowerCase():"",n=Object.assign({scroll:!0},e.data.data.options||{});d.highlightElements(t,r,n)},"app-key-nav-enabled":function(e){n(e)},remediation:function(e){var t=e.data.type;-1!==R.indexOf(t)&&u(t,b.getHelperPostMessagePayload(t))},"remediation-check":function(){e()},"add-dynamically":r},k=UserWayWidgetApp.getLib("REMEDIATION_ARIA_EDITOR"),U={"open-aria-editor":function(e){k.openAriaEditor(e)},"editor-init":function(e){k.onAriaEditorInit(e)},"close-aria-editor":function(e){k.closeAriaEditor(e)},"select-elements-by-id":function(e){k.selectElementById(e)},"select-elements-at-point":function(e){k.selectElementsAtPoint(e)},"select-elements-by-element-id":function(e){k.selectElementsByElementId(e)},"update-aria-label":function(e){k.updateAriaLabel(e)},"update-aria-level":function(e){k.updateAriaLevel(e)},"add-aria-editor":function(e){k.addEditorIframe(e)},"update-role":function(e){k.updateRole(e)},"update-tabindex":function(e){k.updateTabindex(e)},"update-aria-hidden":function(e){k.updateAriaHidden(e)},"update-corrections":function(e){k.updateCorrections(e)}},P=UserWayWidgetApp.getLib("REMEDIATION_FORM_LABEL"),M={"form-label-update":function(e){e.data&&e.data.data&&P.updateLabelInDom(e.data.data)}},D=UserWayWidgetApp.getLib("REMEDIATION_IMAGE_MISSING_ALT"),H={"image-alt-update":function(e){e.data&&e.data.data&&D.updateImageInDom(e.data.data)},"image-alt-revert":function(e){e.data&&e.data.data&&D.revertToOriginal(e.data.data)},"image-missing-alts-update":function(e){e.data&&e.data.data&&D.addMissingAltCorrection(__assign(__assign({},e.data.data),{approved:!0,editedByUser:!0}))}},F=UserWayWidgetApp.getLib("REMEDIATION_EMPTY_CONTROLS"),q={"empty-controls-update":function(e){e.data&&e.data.data&&F.updateElement(e.data.data)}},j=UserWayWidgetApp.getLib("REMEDIATION_FOCUS_STYLE"),B={"custom-focus-get":function(e){u("custom-focus-get",j.getFocusStyle())},"custom-focus-update":function(e){e.data&&e.data.data&&j.updateOutlineStyle(e.data)}},G=UserWayWidgetApp.getLib("REMEDIATION_SKIP_NAVIGATION_LINK"),V={"skip-links-get":function(e){u("skip-links-get",G.getSkipLinksConfig())},"skip-links-update":function(e){}},K=UserWayWidgetApp.getLib("REMEDIATION_COLOR_CONTRAST"),z={"enable-color-contrast":function(){K.isSmartContrastEnabled()&&K.disableSmartContrast(),K.isEnabled()||(K.enable(),e())},"fix-color-contrast":function(t){t.data&&t.data.data&&(K.fixIssues(t.data.data),e())},"fix-all-color-contrast":function(){K.autofixAllIssues(),e()},"reset-all":function(){K.resetIssuesFixes(),e()},"reset-autofixed":function(){K.resetAutofixed(),e()}},Y=UserWayWidgetApp.getLib("REMEDIATION_VAGUE_LINK"),X={"vague-link-update":function(e){e.data&&e.data.data&&Y.updateElement(e.data.data)}},J=Object.assign({},T,U,M,H,B,V,z,q,X),Q=function(e){var t=e.data||{};if(t.isUserWay&&("remediation"===t.action||"aria-editor"===t.action)){var r=e.data.type;if(-1!==Object.keys(J).indexOf(r)){(0,J[r])(e)}else J.remediation(e)}};f.registerPostMessageListener(Q)}();