accessibility-comms
Version:
add accessibility to your website
1 lines • 78.4 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(self,(()=>(()=>{var e={696:e=>{var t=function(e){"use strict";var t,n=Object.prototype,s=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",r=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,s){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),c=new A(s||[]);return i(a,"_invoke",{value:k(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var h="suspendedStart",m="suspendedYield",p="executing",g="completed",y={};function f(){}function _(){}function b(){}var x={};l(x,a,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(I([])));w&&w!==n&&s.call(w,a)&&(x=w);var S=b.prototype=f.prototype=Object.create(x);function L(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,a,c){var r=d(e[i],e,o);if("throw"!==r.type){var l=r.arg,u=l.value;return u&&"object"==typeof u&&s.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(r.arg)}var o;i(this,"_invoke",{value:function(e,s){function i(){return new t((function(t,i){n(e,s,t,i)}))}return o=o?o.then(i,i):i()}})}function k(e,n,s){var i=h;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(s.method=o,s.arg=a;;){var c=s.delegate;if(c){var r=E(c,s);if(r){if(r===y)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(i===h)throw i=g,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);i=p;var l=d(e,n,s);if("normal"===l.type){if(i=s.done?g:m,l.arg===y)continue;return{value:l.arg,done:s.done}}"throw"===l.type&&(i=g,s.method="throw",s.arg=l.arg)}}}function E(e,n){var s=n.method,i=e.iterator[s];if(i===t)return n.delegate=null,"throw"===s&&e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method)||"return"!==s&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+s+"' method")),y;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(s.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return _.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:_,configurable:!0}),_.displayName=l(b,r,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,r,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},L(T.prototype),l(T.prototype,c,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,s,i,o){void 0===o&&(o=Promise);var a=new T(u(t,n,s,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(S),l(S,r,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var s in t)n.push(s);return n.reverse(),function e(){for(;n.length;){var s=n.pop();if(s in t)return e.value=s,e.done=!1,e}return e.done=!0,e}},e.values=I,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(s,i){return c.type="throw",c.arg=e,n.next=s,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var r=s.call(a,"catchLoc"),l=s.call(a,"finallyLoc");if(r&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(r){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var s=n.completion;if("throw"===s.type){var i=s.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,s){return this.delegate={iterator:I(e),resultName:n,nextLoc:s},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{Accessibility:()=>l}),n(696);var e;class t{constructor(){this.body=document.body||document.querySelector("body"),this.deployedMap=new Map}isIOS(){return"boolean"==typeof this._isIOS||(this._isIOS=(()=>{var e=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"];if(navigator.platform)for(;e.length;)if(navigator.platform===e.pop())return!0;return!1})()),this._isIOS}jsonToHtml(e){let t=document.createElement(e.type);for(let n in e.attrs)t.setAttribute(n,e.attrs[n]);for(let n in e.children){let s=null;s="#text"===e.children[n].type?document.createTextNode(e.children[n].text):this.jsonToHtml(e.children[n]),(s&&s.tagName&&"undefined"!==s.tagName.toLowerCase()||3===s.nodeType)&&t.appendChild(s)}return t}injectStyle(e,t={}){let n=document.createElement("style");return n.appendChild(document.createTextNode(e)),t.className&&n.classList.add(t.className),this.body.appendChild(n),n}getFormattedDim(e){if(!e)return null;let t=function(e,t){return{size:e.substring(0,e.indexOf(t)),suffix:t}};return(e=String(e)).indexOf("%")>-1?t(e,"%"):e.indexOf("px")>-1?t(e,"px"):e.indexOf("em")>-1?t(e,"em"):e.indexOf("rem")>-1?t(e,"rem"):e.indexOf("pt")>-1?t(e,"pt"):"auto"===e?t(e,""):void 0}extend(e,t){for(let n in e)"object"==typeof e[n]?t&&t[n]&&(t[n]instanceof Array?e[n]=t[n]:e[n]=this.extend(e[n],t[n])):"object"==typeof t&&void 0!==t[n]&&(e[n]=t[n]);return e}injectIconsFont(e,t){if(e&&e.length){let n=document.getElementsByTagName("head")[0],s=0,i=!1,o=e=>{i=i||""===e.type,--s||t(i)};e.forEach((e=>{let t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href=e,t.className="_access-font-icon-"+s++,t.onload=o,t.onerror=o,this.deployedObjects.set("."+t.className,!0),n.appendChild(t)}))}}getFixedFont(e){return this.isIOS()?e.replaceAll(" ","+"):e}getFixedPseudoFont(e){return this.isIOS()?e.replaceAll("+"," "):e}isFontLoaded(e,t){try{const n=()=>t(document.fonts.check(`1em ${e.replaceAll("+"," ")}`));document.fonts.ready.then((()=>{n()}),(()=>{n()}))}catch(e){return t(!0)}}warn(e){let t="Accessibility: ";console.warn?console.warn(t+e):console.log(t+e)}get deployedObjects(){return{get:e=>this.deployedMap.get(e),contains:e=>this.deployedMap.has(e),set:(e,t)=>{this.deployedMap.set(e,t)},remove:e=>{this.deployedMap.delete(e)},getAll:()=>this.deployedMap}}createScreenshot(e){return new Promise(((n,s)=>{this._canvas||(this._canvas=document.createElement("canvas"));const i=new Image;this._canvas.style.position="fixed",this._canvas.style.top="0",this._canvas.style.left="0",this._canvas.style.opacity="0.05",this._canvas.style.transform="scale(0.05)",i.crossOrigin="anonymous",i.onload=()=>{return e=this,s=void 0,a=function*(){document.body.appendChild(this._canvas);const e=this._canvas.getContext("2d");this._canvas.width=i.naturalWidth,this._canvas.height=i.naturalHeight,e.clearRect(0,0,this._canvas.width,this._canvas.height),e.drawImage(i,0,0);let s=t.DEFAULT_PIXEL;try{s=this._canvas.toDataURL("image/png")}catch(e){}n(s),this._canvas.remove()},new((o=void 0)||(o=Promise))((function(t,n){function i(e){try{r(a.next(e))}catch(e){n(e)}}function c(e){try{r(a.throw(e))}catch(e){n(e)}}function r(e){e.done?t(e.value):new o((function(t){t(e.value)})).then(i,c)}r((a=a.apply(e,s||[])).next())}));var e,s,o,a},i.onerror=()=>{n(t.DEFAULT_PIXEL)},i.src=e}))}getFileExtension(e){return e.substring(e.lastIndexOf(".")+1,e.length)||e}}t.DEFAULT_PIXEL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=",function(e){e[e.increaseText=1]="increaseText",e[e.decreaseText=2]="decreaseText",e[e.increaseTextSpacing=3]="increaseTextSpacing",e[e.decreaseTextSpacing=4]="decreaseTextSpacing",e[e.increaseLineHeight=5]="increaseLineHeight",e[e.decreaseLineHeight=6]="decreaseLineHeight",e[e.invertColors=7]="invertColors",e[e.grayHues=8]="grayHues",e[e.bigCursor=9]="bigCursor",e[e.readingGuide=10]="readingGuide",e[e.underlineLinks=11]="underlineLinks",e[e.textToSpeech=12]="textToSpeech",e[e.speechToText=13]="speechToText",e[e.disableAnimations=14]="disableAnimations",e[e.iframeModals=15]="iframeModals",e[e.customFunctions=16]="customFunctions"}(e||(e={}));var i=function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{r(s.next(e))}catch(e){o(e)}}function c(e){try{r(s.throw(e))}catch(e){o(e)}}function r(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,c)}r((s=s.apply(e,t||[])).next())}))};class o{constructor(e){this._acc=e,this.readBind=this._acc.read.bind(this._acc)}increaseText(){this._acc.alterTextSize(!0)}decreaseText(){this._acc.alterTextSize(!1)}increaseTextSpacing(){this._acc.alterTextSpace(!0)}decreaseTextSpacing(){this._acc.alterTextSpace(!1)}invertColors(e){if(void 0===this._acc.stateValues.html.backgroundColor&&(this._acc.stateValues.html.backgroundColor=getComputedStyle(this._acc.html).backgroundColor),void 0===this._acc.stateValues.html.color&&(this._acc.stateValues.html.color=getComputedStyle(this._acc.html).color),e)return this._acc.resetIfDefined(this._acc.stateValues.html.backgroundColor,this._acc.html.style,"backgroundColor"),this._acc.resetIfDefined(this._acc.stateValues.html.color,this._acc.html.style,"color"),document.querySelector('._access-menu [data-access-action="invertColors"]').classList.remove("active"),this._acc.stateValues.invertColors=!1,this._acc.sessionState.invertColors=this._acc.stateValues.invertColors,this._acc.onChange(!0),void(this._acc.html.style.filter="");this._acc.stateValues.invertColors&&this._acc.stateValues.textToSpeech&&this._acc.textToSpeech("Colors Set To Normal"),document.querySelector('._access-menu [data-access-action="invertColors"]').classList.toggle("active"),this._acc.stateValues.invertColors=!this._acc.stateValues.invertColors,this._acc.sessionState.invertColors=this._acc.stateValues.invertColors,this._acc.onChange(!0),this._acc.stateValues.invertColors?(this._acc.stateValues.grayHues&&this._acc.menuInterface.grayHues(!0),this._acc.html.style.filter="invert(1)",this._acc.stateValues.textToSpeech&&this._acc.textToSpeech("Colors Inverted")):this._acc.html.style.filter=""}grayHues(e){if(void 0===this._acc.stateValues.html.filter&&(this._acc.stateValues.html.filter=getComputedStyle(this._acc.html).filter),void 0===this._acc.stateValues.html.webkitFilter&&(this._acc.stateValues.html.webkitFilter=getComputedStyle(this._acc.html).webkitFilter),void 0===this._acc.stateValues.html.mozFilter&&(this._acc.stateValues.html.mozFilter=getComputedStyle(this._acc.html).mozFilter),void 0===this._acc.stateValues.html.msFilter&&(this._acc.stateValues.html.msFilter=getComputedStyle(this._acc.html).msFilter),e)return document.querySelector('._access-menu [data-access-action="grayHues"]').classList.remove("active"),this._acc.stateValues.grayHues=!1,this._acc.sessionState.grayHues=this._acc.stateValues.grayHues,this._acc.onChange(!0),this._acc.resetIfDefined(this._acc.stateValues.html.filter,this._acc.html.style,"filter"),this._acc.resetIfDefined(this._acc.stateValues.html.webkitFilter,this._acc.html.style,"webkitFilter"),this._acc.resetIfDefined(this._acc.stateValues.html.mozFilter,this._acc.html.style,"mozFilter"),void this._acc.resetIfDefined(this._acc.stateValues.html.msFilter,this._acc.html.style,"msFilter");let t;document.querySelector('._access-menu [data-access-action="grayHues"]').classList.toggle("active"),this._acc.stateValues.grayHues=!this._acc.stateValues.grayHues,this._acc.sessionState.grayHues=this._acc.stateValues.grayHues,this._acc.onChange(!0),this._acc.stateValues.textToSpeech&&!this._acc.stateValues.grayHues&&this._acc.textToSpeech("Gray Hues Disabled."),this._acc.stateValues.grayHues?(t="grayscale(1)",this._acc.stateValues.invertColors&&this.invertColors(!0),this._acc.stateValues.textToSpeech&&this._acc.textToSpeech("Gray Hues Enabled.")):t="",this._acc.html.style.webkitFilter=t,this._acc.html.style.mozFilter=t,this._acc.html.style.msFilter=t,this._acc.html.style.filter=t}underlineLinks(e){let t="_access-underline",n=()=>{let e=document.querySelector("."+t);e&&(e.parentElement.removeChild(e),this._acc.common.deployedObjects.remove("."+t))};if(e)return this._acc.stateValues.underlineLinks=!1,this._acc.sessionState.underlineLinks=this._acc.stateValues.underlineLinks,this._acc.onChange(!0),document.querySelector('._access-menu [data-access-action="underlineLinks"]').classList.remove("active"),n();if(document.querySelector('._access-menu [data-access-action="underlineLinks"]').classList.toggle("active"),this._acc.stateValues.underlineLinks=!this._acc.stateValues.underlineLinks,this._acc.sessionState.underlineLinks=this._acc.stateValues.underlineLinks,this._acc.onChange(!0),this._acc.stateValues.underlineLinks){let e="\n body a {\n text-decoration: underline !important;\n }\n ";this._acc.common.injectStyle(e,{className:t}),this._acc.common.deployedObjects.set("."+t,!0),this._acc.stateValues.textToSpeech&&this._acc.textToSpeech("Links UnderLined")}else this._acc.stateValues.textToSpeech&&this._acc.textToSpeech("Links UnderLine Removed"),n()}bigCursor(e){if(e)return this._acc.html.classList.remove("_access_cursor"),document.querySelector('._access-menu [data-access-action="bigCursor"]').classList.remove("active"),this._acc.stateValues.bigCursor=!1,this._acc.sessionState.bigCursor=!1,void this._acc.onChange(!0);document.querySelector('._access-menu [data-access-action="bigCursor"]').classList.toggle("active"),this._acc.stateValues.bigCursor=!this._acc.stateValues.bigCursor,this._acc.sessionState.bigCursor=this._acc.stateValues.bigCursor,this._acc.onChange(!0),this._acc.html.classList.toggle("_access_cursor"),this._acc.stateValues.textToSpeech&&this._acc.stateValues.bigCursor&&this._acc.textToSpeech("Big Cursor Enabled"),this._acc.stateValues.textToSpeech&&!this._acc.stateValues.bigCursor&&this._acc.textToSpeech("Big Cursor Disabled")}readingGuide(e){if(e)return document.getElementById("access_read_guide_bar")&&document.getElementById("access_read_guide_bar").remove(),document.querySelector('._access-menu [data-access-action="readingGuide"]').classList.remove("active"),this._acc.stateValues.readingGuide=!1,this._acc.sessionState.readingGuide=this._acc.stateValues.readingGuide,this._acc.onChange(!0),document.body.removeEventListener("touchmove",this._acc.updateReadGuide,!1),document.body.removeEventListener("mousemove",this._acc.updateReadGuide,!1),void(this._acc.stateValues.textToSpeech&&this._acc.textToSpeech("Reading Guide Enabled"));if(document.querySelector('._access-menu [data-access-action="readingGuide"]').classList.toggle("active"),this._acc.stateValues.readingGuide=!this._acc.stateValues.readingGuide,this._acc.sessionState.readingGuide=this._acc.stateValues.readingGuide,this._acc.onChange(!0),this._acc.stateValues.readingGuide){let e=document.createElement("div");e.id="access_read_guide_bar",e.classList.add("access_read_guide_bar"),document.body.append(e),document.body.addEventListener("touchmove",this._acc.updateReadGuide,!1),document.body.addEventListener("mousemove",this._acc.updateReadGuide,!1)}else void 0!==document.getElementById("access_read_guide_bar")&&document.getElementById("access_read_guide_bar").remove(),document.body.removeEventListener("touchmove",this._acc.updateReadGuide,!1),document.body.removeEventListener("mousemove",this._acc.updateReadGuide,!1),this._acc.stateValues.textToSpeech&&this._acc.textToSpeech("Reading Guide Disabled")}textToSpeech(e){const t=document.querySelector('._access-menu [data-access-action="textToSpeech"]');if(!t)return;let n=document.getElementsByClassName("screen-reader-wrapper-step-1"),s=document.getElementsByClassName("screen-reader-wrapper-step-2"),i=document.getElementsByClassName("screen-reader-wrapper-step-3");this._acc.onChange(!1);const o="_access-text-to-speech";let a=()=>{let e=document.querySelector("."+o);e&&(e.parentElement.removeChild(e),document.removeEventListener("click",this.readBind,!1),document.removeEventListener("keyup",this.readBind,!1),this._acc.common.deployedObjects.remove("."+o)),window.speechSynthesis&&window.speechSynthesis.cancel(),this._acc.isReading=!1};if(e)return t.classList.remove("active"),n[0].classList.remove("active"),s[0].classList.remove("active"),i[0].classList.remove("active"),this._acc.stateValues.textToSpeech=!1,window.speechSynthesis.cancel(),a();if(1!==this._acc.stateValues.speechRate||t.classList.contains("active"))if(1===this._acc.stateValues.speechRate&&t.classList.contains("active"))this._acc.stateValues.speechRate=1.5,this._acc.textToSpeech("Reading Pace - Fast"),n[0].classList.remove("active");else{if(1.5!==this._acc.stateValues.speechRate||!t.classList.contains("active")){this._acc.stateValues.speechRate=1,this._acc.textToSpeech("Screen Reader - Disabled"),t.classList.remove("active"),i[0].classList.remove("active");let e=setInterval((()=>{this._acc.isReading||(this._acc.stateValues.textToSpeech=!1,a(),clearTimeout(e))}),500);return}this._acc.stateValues.speechRate=.7,this._acc.textToSpeech("Reading Pace - Slow"),s[0].classList.remove("active")}else this._acc.stateValues.textToSpeech=!0,this._acc.textToSpeech("Screen Reader enabled. Reading Pace - Normal"),t.classList.add("active"),n[0].classList.add("active"),s[0].classList.add("active"),i[0].classList.add("active");t.classList.contains("active")&&1===this._acc.stateValues.speechRate&&(this._acc.common.injectStyle("\n *:hover {\n box-shadow: 2px 2px 2px rgba(180,180,180,0.7);\n }\n ",{className:o}),this._acc.common.deployedObjects.set("."+o,!0),document.addEventListener("click",this.readBind,!1),document.addEventListener("keyup",this.readBind,!1))}speechToText(e){const t=document.querySelector('._access-menu [data-access-action="speechToText"]');if(!t)return;this._acc.onChange(!1);let n="_access-speech-to-text",s=()=>{this._acc.recognition&&(this._acc.recognition.stop(),this._acc.body.classList.remove("_access-listening"));let e=document.querySelector("."+n);e&&(e.parentElement.removeChild(e),this._acc.common.deployedObjects.remove("."+n));let s=document.querySelectorAll("._access-mic");for(let e=0;e<s.length;e++)s[e].removeEventListener("focus",this._acc.listen.bind(this._acc),!1),s[e].classList.remove("_access-mic");t.classList.remove("active")};if(e)return this._acc.stateValues.speechToText=!1,s();if(this._acc.stateValues.speechToText=!this._acc.stateValues.speechToText,this._acc.stateValues.speechToText){let e=`\n body:after {\n content: ${this._acc.options.icon.useEmojis?'"🎤"':'"mic"'};\n ${this._acc.options.icon.useEmojis?"":"font-family: '"+this._acc.options.icon.fontFamily+"';"}\n position: fixed;\n z-index: 1100;\n top: 1vw;\n right: 1vw;\n width: 36px;\n height: 36px;\n font-size: 30px;\n line-height: 36px;\n border-radius: 50%;\n background: rgba(255,255,255,0.7);\n display: flex;\n justify-content: center;\n aling-items: center;\n }\n\n body._access-listening:after {\n animation: _access-listening-animation 2s infinite ease;\n }\n\n @keyframes _access-listening-animation {\n 0% {background-color: transparent;}\n 50% {background-color: #EF9A9A;}\n }\n `;this._acc.common.injectStyle(e,{className:n}),this._acc.common.deployedObjects.set("."+n,!0);let s=document.querySelectorAll('input[type="text"], input[type="search"], textarea, [contenteditable]');for(let e=0;e<s.length;e++)s[e].addEventListener("blur",(()=>{"object"==typeof this._acc.recognition&&"function"==typeof this._acc.recognition.stop&&this._acc.recognition.stop()}),!1),s[e].addEventListener("focus",this._acc.listen.bind(this._acc),!1),s[e].parentElement.classList.add("_access-mic");t.classList.add("active")}else s()}disableAnimations(e){const t="_access-disable-animations",n="data-autoplay-stopped",s=()=>{document.querySelector('._access-menu [data-access-action="disableAnimations"]').classList.remove("active"),this._acc.stateValues.disableAnimations=!1;let e=document.querySelector("."+t);e&&(e.parentElement.removeChild(e),this._acc.common.deployedObjects.remove("."+t)),document.querySelectorAll("[data-org-src]").forEach((e=>i(this,void 0,void 0,(function*(){const t=e.src;e.setAttribute("src",e.getAttribute("data-org-src")),e.setAttribute("data-org-src",t)})))),document.querySelectorAll(`video[${n}]`).forEach((e=>{e.setAttribute("autoplay",""),e.removeAttribute(n),e.play()}))};e?s():(this._acc.stateValues.disableAnimations=!this._acc.stateValues.disableAnimations,this._acc.stateValues.disableAnimations?(document.querySelector('._access-menu [data-access-action="disableAnimations"]').classList.add("active"),this._acc.common.injectStyle("\n body * {\n animation-duration: 0.0ms !important;\n transition-duration: 0.0ms !important;\n }\n ",{className:t}),this._acc.common.deployedObjects.set("."+t,!0),document.querySelectorAll("img").forEach((e=>i(this,void 0,void 0,(function*(){let t=this._acc.common.getFileExtension(e.src);if(t&&"gif"===t.toLowerCase()){let t=e.getAttribute("data-org-src");t||(t=yield this._acc.common.createScreenshot(e.src)),e.setAttribute("data-org-src",e.src),e.src=t}})))),document.querySelectorAll("video[autoplay]").forEach((e=>{e.setAttribute(n,""),e.removeAttribute("autoplay"),e.pause()}))):s())}iframeModals(e,t){t||(e=!0);const n=()=>{this._dialog&&(this._dialog.classList.add("closing"),setTimeout((()=>{this._dialog.classList.remove("closing"),this._dialog.close(),this._dialog.remove()}),350),i()),t&&t.classList.remove("active")},s=()=>{n()},i=()=>{this._dialog.querySelector("button").removeEventListener("click",s,!1),this._dialog.removeEventListener("close",s)};e?n():(t.classList.add("active"),this._dialog||(this._dialog=document.createElement("dialog")),this._dialog.classList.add("_access"),this._dialog.innerHTML="",this._dialog.appendChild(this._acc.common.jsonToHtml({type:"div",children:[{type:"div",children:[{type:"button",attrs:{role:"button",class:this._acc.options.icon.useEmojis?"":"material-icons",style:"position: absolute;\n top: 5px;\n cursor: pointer;\n font-size: 24px !important;\n font-weight: bold;\n background: transparent;\n border: none;\n left: 5px;\n color: #d63c3c;\n padding: 0;"},children:[{type:"#text",text:this._acc.options.icon.useEmojis?"X":"close"}]}]},{type:"div",children:[{type:"iframe",attrs:{src:t.getAttribute("data-access-url"),style:"width: 50vw;height: 50vh;padding: 30px;"}}]}]})),document.body.appendChild(this._dialog),this._dialog.querySelector("button").addEventListener("click",s,!1),this._dialog.addEventListener("close",s),this._dialog.showModal())}customFunctions(e,t){if(!t)return;const n=this._acc.options.customFunctions[parseInt(t.getAttribute("data-access-custom-index"))];n.toggle&&t.classList.contains("active")&&(e=!0),e?(n.toggle&&t.classList.remove("active"),n.method(n,!1)):(n.toggle&&t.classList.add("active"),n.method(n,!0))}increaseLineHeight(){this._acc.alterLineHeight(!0)}decreaseLineHeight(){this._acc.alterLineHeight(!1)}}class a{constructor(){}has(e){return window.localStorage.hasOwnProperty(e)}set(e,t){window.localStorage.setItem(e,JSON.stringify(t))}get(e){let t=window.localStorage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}clear(){window.localStorage.clear()}remove(e){window.localStorage.removeItem(e)}isSupported(){let e="_test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}}var c=function(e,t,n,s){return new(n||(n=Promise))((function(i,o){function a(e){try{r(s.next(e))}catch(e){o(e)}}function c(e){try{r(s.throw(e))}catch(e){o(e)}}function r(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,c)}r((s=s.apply(e,t||[])).next())}))};class r{constructor(e={}){this._common=new t,this._storage=new a,this._options=this.defaultOptions,e=this.deleteOppositesIfDefined(e),this.options=this._common.extend(this._options,e),this.addModuleOrderIfNotDefined(),this.disabledUnsupportedFeatures(),this._onKeyDownBind=this.onKeyDown.bind(this),this._sessionState={textSize:0,textSpace:0,lineHeight:0,invertColors:!1,grayHues:!1,underlineLinks:!1,bigCursor:!1,readingGuide:!1},this.options.icon.useEmojis?(this.fontFallback(),this.build()):this._common.injectIconsFont(this.options.icon.fontFaceSrc,(e=>{this.build(),this.options.icon.forceFont||setTimeout((()=>{this._common.isFontLoaded(this.options.icon.fontFamily,(t=>{t&&!e||(this._common.warn(`${this.options.icon.fontFamily} font was not loaded, using emojis instead`),this.fontFallback(),this.destroy(),this.build())}))}))})),this.options.modules.speechToText&&window.addEventListener("beforeunload",(()=>{this._isReading&&(window.speechSynthesis.cancel(),this._isReading=!1)}))}get stateValues(){return this._stateValues}set stateValues(e){this._stateValues=e}get html(){return this._html}get body(){return this._body}get sessionState(){return this._sessionState}set sessionState(e){this._sessionState=e}get common(){return this._common}get recognition(){return this._recognition}get isReading(){return this._isReading}set isReading(e){this._isReading=e}get defaultOptions(){const t={icon:{position:{bottom:{size:50,units:"px"},right:{size:10,units:"px"},type:"fixed"},dimensions:{width:{size:50,units:"px"},height:{size:50,units:"px"}},zIndex:"9999",backgroundColor:"#4054b2",color:"#fff",img:"accessibility",circular:!1,circularBorder:!1,fontFaceSrc:["https://fonts.googleapis.com/icon?family=Material+Icons"],fontFamily:this._common.getFixedFont("Material Icons"),fontClass:"material-icons",useEmojis:!1},hotkeys:{enabled:!1,helpTitles:!0,keys:{toggleMenu:["ctrlKey","altKey",65],invertColors:["ctrlKey","altKey",73],grayHues:["ctrlKey","altKey",71],underlineLinks:["ctrlKey","altKey",85],bigCursor:["ctrlKey","altKey",67],readingGuide:["ctrlKey","altKey",82],textToSpeech:["ctrlKey","altKey",84],speechToText:["ctrlKey","altKey",83],disableAnimations:["ctrlKey","altKey",81]}},buttons:{font:{size:18,units:"px"}},guide:{cBorder:"#20ff69",cBackground:"#000000",height:"12px"},menu:{dimensions:{width:{size:25,units:"vw"},height:{size:"auto",units:""}},fontFamily:"RobotoDraft, Roboto, sans-serif, Arial"},suppressCssInjection:!1,labels:{resetTitle:"Reset",closeTitle:"Close",menuTitle:"Accessibility Options",increaseText:"increase text size",decreaseText:"decrease text size",increaseTextSpacing:"increase text spacing",decreaseTextSpacing:"decrease text spacing",invertColors:"invert colors",grayHues:"gray hues",bigCursor:"big cursor",readingGuide:"reading guide",underlineLinks:"underline links",textToSpeech:"text to speech",speechToText:"speech to text",disableAnimations:"disable animations",increaseLineHeight:"increase line height",decreaseLineHeight:"decrease line height",hotkeyPrefix:"Hotkey: "},textPixelMode:!1,textEmlMode:!0,animations:{buttons:!0},modules:{increaseText:!0,decreaseText:!0,increaseTextSpacing:!0,decreaseTextSpacing:!0,increaseLineHeight:!0,decreaseLineHeight:!0,invertColors:!0,grayHues:!0,bigCursor:!0,readingGuide:!0,underlineLinks:!0,textToSpeech:!0,speechToText:!0,disableAnimations:!0,iframeModals:!0,customFunctions:!0},modulesOrder:[],session:{persistent:!0},iframeModals:[],customFunctions:[],statement:{url:""},feedback:{url:""},language:{textToSpeechLang:"",speechToTextLang:""}};return Object.keys(e).forEach(((e,n)=>{const s=parseInt(e);isNaN(s)||t.modulesOrder.push({type:s,order:s})})),t}initFontSize(){if(!this._htmlInitFS){let e=this._common.getFormattedDim(getComputedStyle(this._html).fontSize),t=this._common.getFormattedDim(getComputedStyle(this._body).fontSize);this._html.style.fontSize=e.size/16*100+"%",this._htmlOrgFontSize=this._html.style.fontSize,this._body.style.fontSize=t.size/e.size+"em"}}fontFallback(){this.options.icon.useEmojis=!0,this.options.icon.fontFamily=null,this.options.icon.img="♿",this.options.icon.fontClass=""}deleteOppositesIfDefined(e){return e.icon&&e.icon.position&&(e.icon.position.left&&(delete this._options.icon.position.right,this._options.icon.position.left=e.icon.position.left),e.icon.position.top&&(delete this._options.icon.position.bottom,this._options.icon.position.top=e.icon.position.top)),e}addModuleOrderIfNotDefined(){this.defaultOptions.modulesOrder.forEach((e=>{this.options.modulesOrder.find((t=>t.type===e.type))||this.options.modulesOrder.push(e)}))}disabledUnsupportedFeatures(){"webkitSpeechRecognition"in window&&"https:"===location.protocol||(this._common.warn("speech to text isn't supported in this browser or in http protocol (https required)"),this.options.modules.speechToText=!1);const e=window;e.SpeechSynthesisUtterance&&e.speechSynthesis||(this._common.warn("text to speech isn't supported in this browser"),this.options.modules.textToSpeech=!1)}injectCss(){const e="7px",t="5px";let n=`\n ._access-scrollbar::-webkit-scrollbar-track, .mat-autocomplete-panel::-webkit-scrollbar-track, .mat-tab-body-content::-webkit-scrollbar-track, .mat-select-panel:not([class*='mat-elevation-z'])::-webkit-scrollbar-track, .mat-menu-panel::-webkit-scrollbar-track {\n -webkit-box-shadow: var(--_access-scrollbar-track-box-shadow, inset 0 0 6px rgba(0,0,0,0.3));\n background-color: var(--_access-scrollbar-track-background-color, #F5F5F5);\n }\n ._access-scrollbar::-webkit-scrollbar, .mat-autocomplete-panel::-webkit-scrollbar, .mat-tab-body-content::-webkit-scrollbar, .mat-select-panel:not([class*='mat-elevation-z'])::-webkit-scrollbar, .mat-menu-panel::-webkit-scrollbar {\n width: var(--_access-scrollbar-width, 6px);\n background-color: var(--_access-scrollbar-background-color, #F5F5F5);\n }\n ._access-scrollbar::-webkit-scrollbar-thumb, .mat-autocomplete-panel::-webkit-scrollbar-thumb, .mat-tab-body-content::-webkit-scrollbar-thumb, .mat-select-panel:not([class*='mat-elevation-z'])::-webkit-scrollbar-thumb, .mat-menu-panel::-webkit-scrollbar-thumb {\n background-color: var(--_access-scrollbar-thumb-background-color, #999999);\n }\n ._access-icon {\n position: ${this.options.icon.position.type};\n background-repeat: no-repeat;\n background-size: contain;\n cursor: pointer;\n opacity: 0;\n transition-duration: .35s;\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n ${this.options.icon.useEmojis?"":"box-shadow: 1px 1px 5px rgba(0,0,0,.5);"}\n transform: ${this.options.icon.useEmojis?"skewX(14deg)":"scale(1)"};\n }\n ._access-icon:hover {\n `+(this.options.animations.buttons&&!this.options.icon.useEmojis?"\n box-shadow: 1px 1px 10px rgba(0,0,0,.9);\n transform: scale(1.1);\n ":"")+"\n }\n .circular._access-icon {\n border-radius: 50%;\n border: .5px solid white;\n }\n "+(this.options.animations.buttons&&this.options.icon.circularBorder?"\n .circular._access-icon:hover {\n border: 5px solid white;\n border-style: double;\n font-size: 35px!important;\n vertical-align: middle;\n padding-top: 2px;\n text-align: center;\n }\n ":"")+`\n .access_read_guide_bar {\n box-sizing: border-box;\n background: ${this.options.guide.cBackground};\n width: 100%!important;\n min-width: 100%!important;\n position: fixed!important;\n height: ${this.options.guide.height} !important;\n border: solid 3px ${this.options.guide.cBorder};\n border-radius: 5px;\n top: 15px;\n z-index: 2147483647;\n }\n .access-high-contrast * {\n background-color: #000 !important;\n background-image: none !important;\n border-color: #fff !important;\n -webkit-box-shadow: none !important;\n box-shadow: none !important;\n color: #fff !important;\n text-indent: 0 !important;\n text-shadow: none !important;\n }\n ._access-menu {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n user-select: none;\n position: fixed;\n width: ${this.options.menu.dimensions.width.size+this.options.menu.dimensions.width.units};\n height: ${this.options.menu.dimensions.height.size+this.options.menu.dimensions.height.units};\n transition-duration: var(--_access-menu-transition-duration, .35s);\n z-index: ${this.options.icon.zIndex+1};\n opacity: 1;\n background-color: var(--_access-menu-background-color, #fff);\n color: var(--_access-menu-color, #000);\n border-radius: var(--_access-menu-border-radius, 3px);\n border: var(--_access-menu-border, solid 1px #f1f0f1);\n font-family: ${this.options.menu.fontFamily};\n min-width: var(--_access-menu-min-width, 300px);\n box-shadow: var(--_access-menu-box-shadow, 0px 0px 1px #aaa);\n max-height: calc(100vh - 80px);\n ${"rtl"===getComputedStyle(this._body).direction?"text-indent: -5px":""}\n }\n ._access-menu.close {\n z-index: -1;\n width: 0;\n opacity: 0;\n background-color: transparent;\n }\n ._access-menu.bottom {\n bottom: 0;\n }\n ._access-menu.top {\n top: 0;\n }\n ._access-menu.left {\n left: 0;\n }\n ._access-menu.close.left {\n left: -${this.options.menu.dimensions.width.size+this.options.menu.dimensions.width.units};\n }\n ._access-menu.right {\n right: 0;\n }\n ._access-menu.close.right {\n right: -${this.options.menu.dimensions.width.size+this.options.menu.dimensions.width.units};\n }\n ._access-menu ._text-center {\n font-size: var(--_access-menu-header-font-size, 22px);\n font-weight: var(--_access-menu-header-font-weight, nornal);\n margin: var(--_access-menu-header-margin, 20px 0 10px);\n padding: 0;\n color: var(--_access-menu-header-color, rgba(0,0,0,.87));\n letter-spacing: var(--_access-menu-header-letter-spacing, initial);\n word-spacing: var(--_access-menu-header-word-spacing, initial);\n text-align: var(--_access-menu-header-text-align, center);\n }\n ._access-menu ._menu-close-btn {\n left: 5px;\n color: #d63c3c;\n transition: .3s ease;\n transform: rotate(0deg);\n font-style: normal !important;\n }\n ._access-menu ._menu-reset-btn:hover,._access-menu ._menu-close-btn:hover {\n ${this.options.animations.buttons?"transform: rotate(180deg);":""}\n }\n ._access-menu ._menu-reset-btn {\n right: 5px;\n color: #4054b2;\n transition: .3s ease;\n transform: rotate(0deg);\n font-style: normal !important;\n }\n ._access-menu ._menu-btn {\n position: absolute;\n top: 5px;\n cursor: pointer;\n font-size: 24px !important;\n font-weight: bold;\n background: transparent;\n border: none;\n }\n ._access-menu ul {\n padding: 0 0 5px;\n position: relative;\n font-size: var(--_access-menu-font-size, 18px);\n margin: 0;\n overflow: auto;\n max-height: var(--_access-menu-max-height, calc(100vh - 145px));\n display: flex;\n flex-flow: column;\n gap: 5px;\n }\n html._access_cursor * {\n cursor: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyOS4xODhweCIgaGVpZ2h0PSI0My42MjVweCIgdmlld0JveD0iMCAwIDI5LjE4OCA0My42MjUiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI5LjE4OCA0My42MjUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwb2x5Z29uIGZpbGw9IiNGRkZGRkYiIHN0cm9rZT0iI0Q5REFEOSIgc3Ryb2tlLXdpZHRoPSIxLjE0MDYiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgcG9pbnRzPSIyLjgsNC41NDkgMjYuODQ3LDE5LjkwMiAxNi45NjQsMjIuNzAxIDI0LjIzOSwzNy43NDkgMTguMjc4LDQyLjAxNyA5Ljc0MSwzMC43MjQgMS4xMzgsMzUuODA5ICIvPjxnPjxnPjxnPjxwYXRoIGZpbGw9IiMyMTI2MjciIGQ9Ik0yOS4xNzUsMjEuMTU1YzAuMDcxLTAuNjEzLTAuMTY1LTEuMjUzLTAuNjM1LTEuNTczTDIuMTY1LDAuMjU4Yy0wLjQyNC0wLjMyLTAuOTg4LTAuMzQ2LTEuNDM1LTAuMDUzQzAuMjgyLDAuNDk3LDAsMS4wMywwLDEuNjE3djM0LjE3MWMwLDAuNjEzLDAuMzA2LDEuMTQ2LDAuNzc2LDEuNDM5YzAuNDcxLDAuMjY3LDEuMDU5LDAuMjEzLDEuNDgyLTAuMTZsNy40ODItNi4zNDRsNi44NDcsMTIuMTU1YzAuMjU5LDAuNDgsMC43MjksMC43NDYsMS4yLDAuNzQ2YzAuMjM1LDAsMC40OTQtMC4wOCwwLjcwNi0wLjIxM2w2Ljk4OC00LjU4NWMwLjMyOS0wLjIxMywwLjU2NS0wLjU4NiwwLjY1OS0xLjAxM2MwLjA5NC0wLjQyNiwwLjAyNC0wLjg4LTAuMTg4LTEuMjI2bC02LjM3Ni0xMS4zODJsOC42MTEtMi43NDVDMjguNzA1LDIyLjI3NCwyOS4xMDUsMjEuNzY4LDI5LjE3NSwyMS4xNTV6IE0xNi45NjQsMjIuNzAxYy0wLjQyNCwwLjEzMy0wLjc3NiwwLjUwNi0wLjk0MSwwLjk2Yy0wLjE2NSwwLjQ4LTAuMTE4LDEuMDEzLDAuMTE4LDEuNDM5bDYuNTg4LDExLjc4MWwtNC41NDEsMi45ODVsLTYuODk0LTEyLjMxNWMtMC4yMTItMC4zNzMtMC41NDEtMC42NC0wLjk0MS0wLjcyYy0wLjA5NC0wLjAyNy0wLjE2NS0wLjAyNy0wLjI1OS0wLjAyN2MtMC4zMDYsMC0wLjU4OCwwLjEwNy0wLjg0NywwLjMyTDIuOCwzMi41OVY0LjU0OWwyMS41OTksMTUuODA2TDE2Ljk2NCwyMi43MDF6Ii8+PC9nPjwvZz48L2c+PC9nPjwvc3ZnPg==),auto!important;\n }\n .texting {\n height:50px;\n text-align: center;\n border: solid 2.4px #f1f0f1;\n border-radius: 4px;\n width: 100%;\n display: inline-block;\n }\n .screen-reader-wrapper {\n margin: 0;\n position: absolute;\n bottom: -4px;\n width: calc(100% - 2px);\n left: 1px;\n }\n .screen-reader-wrapper-step-1, .screen-reader-wrapper-step-2,.screen-reader-wrapper-step-3 {\n float: left;\n background: var(--_access-menu-background-color, #fff);\n width: 33.33%;\n height: 3px;\n border-radius: 10px;\n }\n .screen-reader-wrapper-step-1.active, .screen-reader-wrapper-step-2.active,.screen-reader-wrapper-step-3.active {\n background: var(--_access-menu-item-button-background, #f9f9f9);\n }\n ._access-menu ul li {\n position: relative;\n list-style-type: none;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n margin: 0 5px 0 8px;\n font-size: ${this.options.buttons.font.size+this.options.buttons.font.units} !important;\n line-height: ${this.options.buttons.font.size+this.options.buttons.font.units} !important;\n color: var(--_access-menu-item-color, rgba(0,0,0,.6));\n letter-spacing: var(--_access-menu-item-letter-spacing, initial);\n word-spacing: var(--_access-menu-item-word-spacing, initial);\n width: calc(100% - 17px);\n }\n ._access-menu ul li button {\n background: var(--_access-menu-item-button-background, #f9f9f9);\n padding: var(--_access-menu-item-button-padding, 10px 0);\n width: 100%;\n text-indent: var(--_access-menu-item-button-text-indent, 35px);\n text-align: start;\n position: relative;\n transition-duration: var(--_access-menu-item-button-transition-duration, .35s);\n transition-timing-function: var(--_access-menu-item-button-transition-timing-function, ease-in-out);\n border: var(--_access-menu-item-button-border, solid 1px #f1f0f1);\n border-radius: var(--_access-menu-item-button-border-radius, 4px);\n cursor: pointer;\n }\n ._access-menu ul li.position {\n display: inline-block;\n width: auto;\n }\n ._access-menu ul.before-collapse li button {\n opacity: 0.05;\n }\n ._access-menu ul li button.active, ._access-menu ul li button.active:hover {\n background-color: var(--_access-menu-item-button-active-background-color, #000);\n }\n ._access-menu div.active {\n color: var(--_access-menu-div-active-color, #fff);\n background-color: var(--_access-menu-div-active-background-color, #000);\n }\n ._access-menu ul li button.active, ._access-menu ul li button.active:hover, ._access-menu ul li button.active:before, ._access-menu ul li button.active:hover:before {\n color: var(--_access-menu-item-button-active-color, #fff);\n }\n ._access-menu ul li button:hover {\n color: var(--_access-menu-item-button-hover-color, rgba(0,0,0,.8));\n background-color: var(--_access-menu-item-button-hover-background-color, #eaeaea);\n }\n ._access-menu ul li.not-supported {\n display: none;\n }\n ._access-menu ul li button:before {\n content: ' ';\n ${this.options.icon.useEmojis?"":"font-family: "+this._common.getFixedPseudoFont(this.options.icon.fontFamily)+";"}\n text-rendering: optimizeLegibility;\n font-feature-settings: "liga" 1;\n font-style: normal;\n text-transform: none;\n line-height: ${this.options.icon.useEmojis?"1.1":"1"};\n font-size: ${this.options.icon.useEmojis?"20px":"24px"} !important;\n width: 30px;\n height: 30px;\n display: inline-block;\n overflow: hidden;\n -webkit-font-smoothing: antialiased;\n top: 7px;\n left: 5px;\n position: absolute;\n color: var(--_access-menu-item-icon-color, rgba(0,0,0,.6));\n direction: ltr;\n text-indent: 0;\n transition-duration: .35s;\n transition-timing-function: ease-in-out;\n }\n @keyframes _access-dialog-backdrop {\n 0% {\n background: var(--_access-menu-dialog-backdrop-background-start, rgba(0, 0, 0, 0.1))\n }\n 100% {\n background: var(--_access-menu-dialog-backdrop-background-end, rgba(0, 0, 0, 0.5))\n }\n }\n dialog._access::backdrop, dialog._access {\n transition-duration: var(--_access-menu-dialog-backdrop-transition-duration, 0.35s);\n transition-timing-function: var(--_access-menu-dialog-backdrop-transition-timing-function, ease-in-out);\n }\n dialog._access:modal {\n border-color: transparent;\n border-width: 0;\n padding: 0;\n }\n dialog._access[open]::backdrop {\n background: var(--_access-menu-dialog-backdrop-background-end, rgba(0, 0, 0, 0.5))\n animation: _access-dialog-backdrop var(--_access-menu-dialog-backdrop-transition-duration, 0.35s) ease-in-out;\n }\n dialog._access.closing[open]::backdrop {\n background: var(--_access-menu-dialog-backdrop-background-start, rgba(0, 0, 0, 0.1));\n }\n dialog._access.closing[open] {\n opacity: 0;\n }\n ._access-menu ul li button svg path {\n fill: var(--_access-menu-item-icon-color, rgba(0,0,0,.6));\n transition-duration: .35s;\n transition-timing-function: ease-in-out;\n }\n ._access-menu ul li button:hover svg path {\n fill: var(--_access-menu-item-hover-icon-color, rgba(0,0,0,.8));\n }\n ._access-menu ul li button.active svg path {\n fill: var(--_access-menu-item-active-icon-color, #fff);\n }\n ._access-menu ul li:hover button:before {\n color: var(--_access-menu-item-hover-icon-color, rgba(0,0,0,.8));\n }\n ._access-menu ul li button.active button:before {\n color: var(--_access-menu-item-active-icon-color, #fff);\n }\n ._access-menu ul li button[data-access-action="increaseText"]:before {\n content: var(--_access-menu-item-icon-increase-text, ${this.options.icon.useEmojis?'"🔼"':'"zoom_in"'});\n transform: var(--_access-menu-item-icon-increase-text-transform, unset);\n top: var(--_access-menu-item-icon-increase-text-top, ${e});\n left: var(--_access-menu-item-icon-increase-text-left, ${t});\n }\n ._access-menu ul li button[data-access-action="decreaseText"]:before {\n content: var(--_access-menu-item-icon-decrease-text, ${this.options.icon.useEmojis?'"🔽"':'"zoom_out"'});\n transform: var(--_access-menu-item-icon-decrease-text-spacing-transform, unset);\n top: var(--_access-menu-item-icon-decrease-text-spacing-top, ${e});\n left: var(--_access-menu-item-icon-decrease-text-spacing-left, ${t});\n }\n ._access-menu ul li button[data-access-action="increaseTextSpacing"]:before {\n content: var(--_access-menu-item-icon-increase-text-spacing, ${this.options.icon.useEmojis?'"🔼"':'"unfold_more"'});\n transform: var(--_access-menu-item-icon-increase-text-spacing-transform, rotate(90deg) translate(-7px, 2px));\n top: var(--_access-menu-item-icon-increase-text-spacing-top, 14px);\n left: var(--_access-menu-item-icon-increase-text-spacing-left, 0);\n }\n