@joomla/joomla-a11y-checker
Version:
ooa11y is an accessibility and quality assurance tool that visually highlights common accessibility and usability issues.
1 lines • 93.4 kB
JavaScript
var e="top",t="bottom",n="right",o="left",r=[e,t,n,o],a=r.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),i=[].concat(r,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),s=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function l(e){return e?(e.nodeName||"").toLowerCase():null}function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function d(e){return e instanceof c(e).Element||e instanceof Element}function u(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function f(e){return"undefined"!=typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var p={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];u(r)&&l(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});u(o)&&l(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function h(e){return e.split("-")[0]}var g=Math.max,m=Math.min,y=Math.round;function b(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),o=1,r=1;if(u(e)&&t){var a=e.offsetHeight,i=e.offsetWidth;i>0&&(o=y(n.width)/i||1),a>0&&(r=y(n.height)/a||1)}return{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function A(e){var t=b(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function E(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&f(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function _(e){return c(e).getComputedStyle(e)}function v(e){return["table","td","th"].indexOf(l(e))>=0}function j(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function L(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||(f(e)?e.host:null)||j(e)}function I(e){return u(e)&&"fixed"!==_(e).position?e.offsetParent:null}function S(e){for(var t=c(e),n=I(e);n&&v(n)&&"static"===_(n).position;)n=I(n);return n&&("html"===l(n)||"body"===l(n)&&"static"===_(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&u(e)&&"fixed"===_(e).position)return null;for(var n=L(e);u(n)&&["html","body"].indexOf(l(n))<0;){var o=_(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function T(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function x(e,t,n){return g(e,m(t,n))}function O(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function N(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var w={name:"arrow",enabled:!0,phase:"main",fn:function(a){var i,s=a.state,l=a.name,c=a.options,d=s.elements.arrow,u=s.modifiersData.popperOffsets,f=h(s.placement),p=T(f),g=[o,n].indexOf(f)>=0?"height":"width";if(d&&u){var m=function(e,t){return O("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:N(e,r))}(c.padding,s),y=A(d),b="y"===p?e:o,E="y"===p?t:n,_=s.rects.reference[g]+s.rects.reference[p]-u[p]-s.rects.popper[g],v=u[p]-s.rects.reference[p],j=S(d),L=j?"y"===p?j.clientHeight||0:j.clientWidth||0:0,I=_/2-v/2,w=m[b],C=L-y[g]-m[E],R=L/2-y[g]/2+I,M=x(w,R,C),$=p;s.modifiersData[l]=((i={})[$]=M,i.centerOffset=M-R,i)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&E(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function C(e){return e.split("-")[1]}var R={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M(r){var a,i=r.popper,s=r.popperRect,l=r.placement,d=r.variation,u=r.offsets,f=r.position,p=r.gpuAcceleration,h=r.adaptive,g=r.roundOffsets,m=r.isFixed,b=u.x,A=void 0===b?0:b,E=u.y,v=void 0===E?0:E,L="function"==typeof g?g({x:A,y:v}):{x:A,y:v};A=L.x,v=L.y;var I=u.hasOwnProperty("x"),T=u.hasOwnProperty("y"),x=o,O=e,N=window;if(h){var w=S(i),C="clientHeight",M="clientWidth";if(w===c(i)&&"static"!==_(w=j(i)).position&&"absolute"===f&&(C="scrollHeight",M="scrollWidth"),w=w,l===e||(l===o||l===n)&&"end"===d)O=t,v-=(m&&N.visualViewport?N.visualViewport.height:w[C])-s.height,v*=p?1:-1;if(l===o||(l===e||l===t)&&"end"===d)x=n,A-=(m&&N.visualViewport?N.visualViewport.width:w[M])-s.width,A*=p?1:-1}var $,k=Object.assign({position:f},h&&R),H=!0===g?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:y(t*o)/o||0,y:y(n*o)/o||0}}({x:A,y:v}):{x:A,y:v};return A=H.x,v=H.y,p?Object.assign({},k,(($={})[O]=T?"0":"",$[x]=I?"0":"",$.transform=(N.devicePixelRatio||1)<=1?"translate("+A+"px, "+v+"px)":"translate3d("+A+"px, "+v+"px, 0)",$)):Object.assign({},k,((a={})[O]=T?v+"px":"",a[x]=I?A+"px":"",a.transform="",a))}var $={passive:!0};var k={left:"right",right:"left",bottom:"top",top:"bottom"};function H(e){return e.replace(/left|right|bottom|top/g,(function(e){return k[e]}))}var G={start:"end",end:"start"};function D(e){return e.replace(/start|end/g,(function(e){return G[e]}))}function B(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function W(e){return b(j(e)).left+B(e).scrollLeft}function q(e){var t=_(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function P(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:u(e)&&q(e)?e:P(L(e))}function F(e,t){var n;void 0===t&&(t=[]);var o=P(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=c(o),i=r?[a].concat(a.visualViewport||[],q(o)?o:[]):o,s=t.concat(i);return r?s:s.concat(F(L(i)))}function U(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K(e,t){return"viewport"===t?U(function(e){var t=c(e),n=j(e),o=t.visualViewport,r=n.clientWidth,a=n.clientHeight,i=0,s=0;return o&&(r=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=o.offsetLeft,s=o.offsetTop)),{width:r,height:a,x:i+W(e),y:s}}(e)):d(t)?function(e){var t=b(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):U(function(e){var t,n=j(e),o=B(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=g(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=g(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+W(e),l=-o.scrollTop;return"rtl"===_(r||n).direction&&(s+=g(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(j(e)))}function V(e,t,n){var o="clippingParents"===t?function(e){var t=F(L(e)),n=["absolute","fixed"].indexOf(_(e).position)>=0&&u(e)?S(e):e;return d(n)?t.filter((function(e){return d(e)&&E(e,n)&&"body"!==l(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),a=r[0],i=r.reduce((function(t,n){var o=K(e,n);return t.top=g(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=g(o.left,t.left),t}),K(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Y(r){var a,i=r.reference,s=r.element,l=r.placement,c=l?h(l):null,d=l?C(l):null,u=i.x+i.width/2-s.width/2,f=i.y+i.height/2-s.height/2;switch(c){case e:a={x:u,y:i.y-s.height};break;case t:a={x:u,y:i.y+i.height};break;case n:a={x:i.x+i.width,y:f};break;case o:a={x:i.x-s.width,y:f};break;default:a={x:i.x,y:i.y}}var p=c?T(c):null;if(null!=p){var g="y"===p?"height":"width";switch(d){case"start":a[p]=a[p]-(i[g]/2-s[g]/2);break;case"end":a[p]=a[p]+(i[g]/2-s[g]/2)}}return a}function z(o,a){void 0===a&&(a={});var i=a,s=i.placement,l=void 0===s?o.placement:s,c=i.boundary,u=void 0===c?"clippingParents":c,f=i.rootBoundary,p=void 0===f?"viewport":f,h=i.elementContext,g=void 0===h?"popper":h,m=i.altBoundary,y=void 0!==m&&m,A=i.padding,E=void 0===A?0:A,_=O("number"!=typeof E?E:N(E,r)),v="popper"===g?"reference":"popper",L=o.rects.popper,I=o.elements[y?v:g],S=V(d(I)?I:I.contextElement||j(o.elements.popper),u,p),T=b(o.elements.reference),x=Y({reference:T,element:L,strategy:"absolute",placement:l}),w=U(Object.assign({},L,x)),C="popper"===g?w:T,R={top:S.top-C.top+_.top,bottom:C.bottom-S.bottom+_.bottom,left:S.left-C.left+_.left,right:C.right-S.right+_.right},M=o.modifiersData.offset;if("popper"===g&&M){var $=M[l];Object.keys(R).forEach((function(o){var r=[n,t].indexOf(o)>=0?1:-1,a=[e,t].indexOf(o)>=0?"y":"x";R[o]+=$[a]*r}))}return R}function Q(e,t){void 0===t&&(t={});var n=t,o=n.placement,s=n.boundary,l=n.rootBoundary,c=n.padding,d=n.flipVariations,u=n.allowedAutoPlacements,f=void 0===u?i:u,p=C(o),g=p?d?a:a.filter((function(e){return C(e)===p})):r,m=g.filter((function(e){return f.indexOf(e)>=0}));0===m.length&&(m=g);var y=m.reduce((function(t,n){return t[n]=z(e,{placement:n,boundary:s,rootBoundary:l,padding:c})[h(n)],t}),{});return Object.keys(y).sort((function(e,t){return y[e]-y[t]}))}var X={name:"flip",enabled:!0,phase:"main",fn:function(r){var a=r.state,i=r.options,s=r.name;if(!a.modifiersData[s]._skip){for(var l=i.mainAxis,c=void 0===l||l,d=i.altAxis,u=void 0===d||d,f=i.fallbackPlacements,p=i.padding,g=i.boundary,m=i.rootBoundary,y=i.altBoundary,b=i.flipVariations,A=void 0===b||b,E=i.allowedAutoPlacements,_=a.options.placement,v=h(_),j=f||(v===_||!A?[H(_)]:function(e){if("auto"===h(e))return[];var t=H(e);return[D(e),t,D(t)]}(_)),L=[_].concat(j).reduce((function(e,t){return e.concat("auto"===h(t)?Q(a,{placement:t,boundary:g,rootBoundary:m,padding:p,flipVariations:A,allowedAutoPlacements:E}):t)}),[]),I=a.rects.reference,S=a.rects.popper,T=new Map,x=!0,O=L[0],N=0;N<L.length;N++){var w=L[N],R=h(w),M="start"===C(w),$=[e,t].indexOf(R)>=0,k=$?"width":"height",G=z(a,{placement:w,boundary:g,rootBoundary:m,altBoundary:y,padding:p}),B=$?M?n:o:M?t:e;I[k]>S[k]&&(B=H(B));var W=H(B),q=[];if(c&&q.push(G[R]<=0),u&&q.push(G[B]<=0,G[W]<=0),q.every((function(e){return e}))){O=w,x=!1;break}T.set(w,q)}if(x)for(var P=function(e){var t=L.find((function(t){var n=T.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},F=A?3:1;F>0;F--){if("break"===P(F))break}a.placement!==O&&(a.modifiersData[s]._skip=!0,a.placement=O,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function J(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Z(r){return[e,n,t,o].some((function(e){return r[e]>=0}))}var ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var r=t.state,a=t.options,s=t.name,l=a.offset,c=void 0===l?[0,0]:l,d=i.reduce((function(t,a){return t[a]=function(t,r,a){var i=h(t),s=[o,e].indexOf(i)>=0?-1:1,l="function"==typeof a?a(Object.assign({},r,{placement:t})):a,c=l[0],d=l[1];return c=c||0,d=(d||0)*s,[o,n].indexOf(i)>=0?{x:d,y:c}:{x:c,y:d}}(a,r.rects,c),t}),{}),u=d[r.placement],f=u.x,p=u.y;null!=r.modifiersData.popperOffsets&&(r.modifiersData.popperOffsets.x+=f,r.modifiersData.popperOffsets.y+=p),r.modifiersData[s]=d}};var te={name:"preventOverflow",enabled:!0,phase:"main",fn:function(r){var a=r.state,i=r.options,s=r.name,l=i.mainAxis,c=void 0===l||l,d=i.altAxis,u=void 0!==d&&d,f=i.boundary,p=i.rootBoundary,y=i.altBoundary,b=i.padding,E=i.tether,_=void 0===E||E,v=i.tetherOffset,j=void 0===v?0:v,L=z(a,{boundary:f,rootBoundary:p,padding:b,altBoundary:y}),I=h(a.placement),O=C(a.placement),N=!O,w=T(I),R="x"===w?"y":"x",M=a.modifiersData.popperOffsets,$=a.rects.reference,k=a.rects.popper,H="function"==typeof j?j(Object.assign({},a.rects,{placement:a.placement})):j,G="number"==typeof H?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),D=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,B={x:0,y:0};if(M){if(c){var W,q="y"===w?e:o,P="y"===w?t:n,F="y"===w?"height":"width",U=M[w],K=U+L[q],V=U-L[P],Y=_?-k[F]/2:0,Q="start"===O?$[F]:k[F],X="start"===O?-k[F]:-$[F],J=a.elements.arrow,Z=_&&J?A(J):{width:0,height:0},ee=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[q],ne=ee[P],oe=x(0,$[F],Z[F]),re=N?$[F]/2-Y-oe-te-G.mainAxis:Q-oe-te-G.mainAxis,ae=N?-$[F]/2+Y+oe+ne+G.mainAxis:X+oe+ne+G.mainAxis,ie=a.elements.arrow&&S(a.elements.arrow),se=ie?"y"===w?ie.clientTop||0:ie.clientLeft||0:0,le=null!=(W=null==D?void 0:D[w])?W:0,ce=U+ae-le,de=x(_?m(K,U+re-le-se):K,U,_?g(V,ce):V);M[w]=de,B[w]=de-U}if(u){var ue,fe="x"===w?e:o,pe="x"===w?t:n,he=M[R],ge="y"===R?"height":"width",me=he+L[fe],ye=he-L[pe],be=-1!==[e,o].indexOf(I),Ae=null!=(ue=null==D?void 0:D[R])?ue:0,Ee=be?me:he-$[ge]-k[ge]-Ae+G.altAxis,_e=be?he+$[ge]+k[ge]-Ae-G.altAxis:ye,ve=_&&be?function(e,t,n){var o=x(e,t,n);return o>n?n:o}(Ee,he,_e):x(_?Ee:me,he,_?_e:ye);M[R]=ve,B[R]=ve-he}a.modifiersData[s]=B}},requiresIfExists:["offset"]};function ne(e,t,n){void 0===n&&(n=!1);var o,r,a=u(t),i=u(t)&&function(e){var t=e.getBoundingClientRect(),n=y(t.width)/e.offsetWidth||1,o=y(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=j(t),d=b(e,i),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(a||!a&&!n)&&(("body"!==l(t)||q(s))&&(f=(o=t)!==c(o)&&u(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:B(o)),u(t)?((p=b(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=W(s))),{x:d.left+f.scrollLeft-p.x,y:d.top+f.scrollTop-p.y,width:d.width,height:d.height}}function oe(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var re={placement:"bottom",modifiers:[],strategy:"absolute"};function ae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ie(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?re:r;return function(e,t,n){void 0===n&&(n=a);var r,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},re,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,f={state:l,setOptions:function(n){var r="function"==typeof n?n(l.options):n;p(),l.options=Object.assign({},a,l.options,r),l.scrollParents={reference:d(e)?F(e):e.contextElement?F(e.contextElement):[],popper:F(t)};var i,u,h=function(e){var t=oe(e);return s.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(o,l.options.modifiers),u=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=h.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:l,name:t,instance:f,options:o}),i=function(){};c.push(a||i)}})),f.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(ae(t,n)){l.rects={reference:ne(t,S(n),"fixed"===l.options.strategy),popper:A(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<l.orderedModifiers.length;o++)if(!0!==l.reset){var r=l.orderedModifiers[o],a=r.fn,i=r.options,s=void 0===i?{}:i,c=r.name;"function"==typeof a&&(l=a({state:l,options:s,name:c,instance:f})||l)}else l.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){f.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(r())}))}))),i}),destroy:function(){p(),u=!0}};if(!ae(e,t))return f;function p(){c.forEach((function(e){return e()})),c=[]}return f.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var se=ie({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,i=o.resize,s=void 0===i||i,l=c(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,$)})),s&&l.addEventListener("resize",n.update,$),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,$)})),s&&l.removeEventListener("resize",n.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Y({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:h(t.placement),variation:C(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,M(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,M(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},p,ee,X,te,w,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,i=z(t,{elementContext:"reference"}),s=z(t,{altBoundary:!0}),l=J(i,o),c=J(s,r,a),d=Z(l),u=Z(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]}),le={passive:!0,capture:!0},ce=function(){return document.body};function de(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function fe(e,t){return"function"==typeof e?e.apply(void 0,t):e}function pe(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function he(e){return[].concat(e)}function ge(e,t){-1===e.indexOf(t)&&e.push(t)}function me(e){return[].slice.call(e)}function ye(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function be(){return document.createElement("div")}function Ae(e){return["Element","Fragment"].some((function(t){return ue(e,t)}))}function Ee(e){return Ae(e)?[e]:function(e){return ue(e,"NodeList")}(e)?me(e):Array.isArray(e)?e:me(document.querySelectorAll(e))}function _e(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function ve(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function je(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function Le(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Ie={isTouch:!1},Se=0;function Te(){Ie.isTouch||(Ie.isTouch=!0,window.performance&&document.addEventListener("mousemove",xe))}function xe(){var e=performance.now();e-Se<20&&(Ie.isTouch=!1,document.removeEventListener("mousemove",xe)),Se=e}function Oe(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Ne=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto,we=Object.assign({appendTo:ce,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ce=Object.keys(we);function Re(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name,a=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=we[r])?o:a);return t}),{});return Object.assign({},e,t)}function Me(e,t){var n=Object.assign({},t,{content:fe(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Re(Object.assign({},we,{plugins:t}))):Ce).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},we.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function $e(e,t){e.innerHTML=t}function ke(e){var t=be();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",Ae(e)?t.appendChild(e):$e(t,e)),t}function He(e,t){Ae(t.content)?($e(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?$e(e,t.content):e.textContent=t.content)}function Ge(e){var t=e.firstElementChild,n=me(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function De(e){var t=be(),n=be();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=be();function r(n,o){var r=Ge(t),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||He(i,e.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(ke(o.arrow))):a.appendChild(ke(o.arrow)):s&&a.removeChild(s)}return o.className="tippy-content",o.setAttribute("data-state","hidden"),He(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}De.$$tippy=!0;var Be=1,We=[],qe=[];function Pe(e,t){var n,o,r,a,i,s,l,c,d=Me(e,Object.assign({},we,Re(ye(t)))),u=!1,f=!1,p=!1,h=!1,g=[],m=pe(V,d.interactiveDebounce),y=Be++,b=(c=d.plugins).filter((function(e,t){return c.indexOf(e)===t})),A={id:y,reference:e,popper:be(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(A.state.isDestroyed)return;R("onBeforeUpdate",[A,t]),U();var n=A.props,o=Me(e,Object.assign({},n,ye(t),{ignoreAttributes:!0}));A.props=o,F(),n.interactiveDebounce!==o.interactiveDebounce&&(k(),m=pe(V,o.interactiveDebounce));n.triggerTarget&&!o.triggerTarget?he(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded");$(),C(),v&&v(n,o);A.popperInstance&&(X(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));R("onAfterUpdate",[A,t])},setContent:function(e){A.setProps({content:e})},show:function(){var e=A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=Ie.isTouch&&!A.props.touch,r=de(A.props.duration,0,we.duration);if(e||t||n||o)return;if(x().hasAttribute("disabled"))return;if(R("onShow",[A],!1),!1===A.props.onShow(A))return;A.state.isVisible=!0,T()&&(_.style.visibility="visible");C(),B(),A.state.isMounted||(_.style.transition="none");if(T()){var a=N(),i=a.box,l=a.content;_e([i,l],0)}s=function(){var e;if(A.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=A.props.moveTransition,T()&&A.props.animation){var t=N(),n=t.box,o=t.content;_e([n,o],r),ve([n,o],"visible")}M(),$(),ge(qe,A),null==(e=A.popperInstance)||e.forceUpdate(),R("onMount",[A]),A.props.animation&&T()&&function(e,t){q(e,t)}(r,(function(){A.state.isShown=!0,R("onShown",[A])}))}},function(){var e,t=A.props.appendTo,n=x();e=A.props.interactive&&t===ce||"parent"===t?n.parentNode:fe(t,[n]);e.contains(_)||e.appendChild(_);A.state.isMounted=!0,X()}()},hide:function(){var e=!A.state.isVisible,t=A.state.isDestroyed,n=!A.state.isEnabled,o=de(A.props.duration,1,we.duration);if(e||t||n)return;if(R("onHide",[A],!1),!1===A.props.onHide(A))return;A.state.isVisible=!1,A.state.isShown=!1,h=!1,u=!1,T()&&(_.style.visibility="hidden");if(k(),W(),C(!0),T()){var r=N(),a=r.box,i=r.content;A.props.animation&&(_e([a,i],o),ve([a,i],"hidden"))}M(),$(),A.props.animation?T()&&function(e,t){q(e,(function(){!A.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()}))}(o,A.unmount):A.unmount()},hideWithInteractivity:function(e){O().addEventListener("mousemove",m),ge(We,m),m(e)},enable:function(){A.state.isEnabled=!0},disable:function(){A.hide(),A.state.isEnabled=!1},unmount:function(){A.state.isVisible&&A.hide();if(!A.state.isMounted)return;J(),Z().forEach((function(e){e._tippy.unmount()})),_.parentNode&&_.parentNode.removeChild(_);qe=qe.filter((function(e){return e!==A})),A.state.isMounted=!1,R("onHidden",[A])},destroy:function(){if(A.state.isDestroyed)return;A.clearDelayTimeouts(),A.unmount(),U(),delete e._tippy,A.state.isDestroyed=!0,R("onDestroy",[A])}};if(!d.render)return A;var E=d.render(A),_=E.popper,v=E.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+A.id,A.popper=_,e._tippy=A,_._tippy=A;var j=b.map((function(e){return e.fn(A)})),L=e.hasAttribute("aria-expanded");return F(),$(),C(),R("onCreate",[A]),d.showOnCreate&&ee(),_.addEventListener("mouseenter",(function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()})),_.addEventListener("mouseleave",(function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",m)})),A;function I(){var e=A.props.touch;return Array.isArray(e)?e:[e,0]}function S(){return"hold"===I()[0]}function T(){var e;return!(null==(e=A.props.render)||!e.$$tippy)}function x(){return l||e}function O(){var e,t,n=x().parentNode;return n?null!=(t=he(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function N(){return Ge(_)}function w(e){return A.state.isMounted&&!A.state.isVisible||Ie.isTouch||a&&"focus"===a.type?0:de(A.props.delay,e?0:1,we.delay)}function C(e){void 0===e&&(e=!1),_.style.pointerEvents=A.props.interactive&&!e?"":"none",_.style.zIndex=""+A.props.zIndex}function R(e,t,n){var o;(void 0===n&&(n=!0),j.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(o=A.props)[e].apply(o,t)}function M(){var t=A.props.aria;if(t.content){var n="aria-"+t.content,o=_.id;he(A.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(A.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function $(){!L&&A.props.aria.expanded&&he(A.props.triggerTarget||e).forEach((function(e){A.props.interactive?e.setAttribute("aria-expanded",A.state.isVisible&&e===x()?"true":"false"):e.removeAttribute("aria-expanded")}))}function k(){O().removeEventListener("mousemove",m),We=We.filter((function(e){return e!==m}))}function H(t){if(!Ie.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!A.props.interactive||!Le(_,n)){if(he(A.props.triggerTarget||e).some((function(e){return Le(e,n)}))){if(Ie.isTouch)return;if(A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else R("onClickOutside",[A,t]);!0===A.props.hideOnClick&&(A.clearDelayTimeouts(),A.hide(),f=!0,setTimeout((function(){f=!1})),A.state.isMounted||W())}}}function G(){p=!0}function D(){p=!1}function B(){var e=O();e.addEventListener("mousedown",H,!0),e.addEventListener("touchend",H,le),e.addEventListener("touchstart",D,le),e.addEventListener("touchmove",G,le)}function W(){var e=O();e.removeEventListener("mousedown",H,!0),e.removeEventListener("touchend",H,le),e.removeEventListener("touchstart",D,le),e.removeEventListener("touchmove",G,le)}function q(e,t){var n=N().box;function o(e){e.target===n&&(je(n,"remove",o),t())}if(0===e)return t();je(n,"remove",i),je(n,"add",o),i=o}function P(t,n,o){void 0===o&&(o=!1),he(A.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),g.push({node:e,eventType:t,handler:n,options:o})}))}function F(){var e;S()&&(P("touchstart",K,{passive:!0}),P("touchend",Y,{passive:!0})),(e=A.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(P(e,K),e){case"mouseenter":P("mouseleave",Y);break;case"focus":P(Ne?"focusout":"blur",z);break;case"focusin":P("focusout",z)}}))}function U(){g.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),g=[]}function K(e){var t,n=!1;if(A.state.isEnabled&&!Q(e)&&!f){var o="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,$(),!A.state.isVisible&&ue(e,"MouseEvent")&&We.forEach((function(t){return t(e)})),"click"===e.type&&(A.props.trigger.indexOf("mouseenter")<0||u)&&!1!==A.props.hideOnClick&&A.state.isVisible?n=!0:ee(e),"click"===e.type&&(u=!n),n&&!o&&te(e)}}function V(e){var t=e.target,n=x().contains(t)||_.contains(t);if("mousemove"!==e.type||!n){var o=Z().concat(_).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,i=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,d="right"===i?s.left.x:0,u="left"===i?s.right.x:0,f=t.top-o+l>a,p=o-t.bottom-c>a,h=t.left-n+d>a,g=n-t.right-u>a;return f||p||h||g}))})(o,e)&&(k(),te(e))}}function Y(e){Q(e)||A.props.trigger.indexOf("click")>=0&&u||(A.props.interactive?A.hideWithInteractivity(e):te(e))}function z(e){A.props.trigger.indexOf("focusin")<0&&e.target!==x()||A.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function Q(e){return!!Ie.isTouch&&S()!==e.type.indexOf("touch")>=0}function X(){J();var t=A.props,n=t.popperOptions,o=t.placement,r=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,l=T()?Ge(_).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||x()}:e,d={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=N().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},d];T()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),A.popperInstance=se(c,_,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function J(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function Z(){return me(_.querySelectorAll("[data-tippy-root]"))}function ee(e){A.clearDelayTimeouts(),e&&R("onTrigger",[A,e]),B();var t=w(!0),o=I(),r=o[0],a=o[1];Ie.isTouch&&"hold"===r&&a&&(t=a),t?n=setTimeout((function(){A.show()}),t):A.show()}function te(e){if(A.clearDelayTimeouts(),R("onUntrigger",[A,e]),A.state.isVisible){if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&u)){var t=w(!1);t?o=setTimeout((function(){A.state.isVisible&&A.hide()}),t):r=requestAnimationFrame((function(){A.hide()}))}}else W()}}function Fe(e,t){void 0===t&&(t={});var n=we.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Te,le),window.addEventListener("blur",Oe);var o=Object.assign({},t,{plugins:n}),r=Ee(e).reduce((function(e,t){var n=t&&Pe(t,o);return n&&e.push(n),e}),[]);return Ae(e)?r[0]:r}Fe.defaultProps=we,Fe.setDefaultProps=function(e){Object.keys(e).forEach((function(t){we[t]=e[t]}))},Fe.currentInput=Ie,Object.assign({},p,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Fe.setDefaultProps({render:De});const Ue=e=>{const t=document.createElement("div");return t.textContent=e,t.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")},Ke={langStrings:{},addI18n:function(e){this.langStrings=e},_:function(e){return this.translate(e)},sprintf:function(e,...t){let n=this._(e);return t&&t.length&&t.forEach((e=>{n=n.replace(/%\([a-zA-z]+\)/,e)})),n},translate:function(e){return this.langStrings[e]||e}},Ve={langCode:"en",checkRoot:"main",readabilityRoot:"main",readabilityLang:"en",containerIgnore:".jooa11y-ignore",outlineIgnore:"",headerIgnore:"",imageIgnore:"",linkIgnore:"",linkIgnoreSpan:"noscript, span.sr-only-example",linksToFlag:"",videoContent:"video, [src*='youtube.com'], [src*='vimeo.com'], [src*='yuja.com'], [src*='panopto.com']",audioContent:"audio, [src*='soundcloud.com'], [src*='simplecast.com'], [src*='podbean.com'], [src*='buzzsprout.com'], [src*='blubrry.com'], [src*='transistor.fm'], [src*='fusebox.fm'], [src*='libsyn.com']",embeddedContent:"",suspiciousAltWords:["image","graphic","picture","photo"],placeholderAltStopWords:["alt","image","photo","decorative","photo","placeholder","placeholder image","spacer","."],partialAltStopWords:["click","click here","click here for more","click here to learn more","click here to learn more.","check out","download","download here","download here.","find out","find out more","find out more.","form","here","here.","info","information","link","learn","learn more","learn more.","learn to","more","page","paper","read more","read","read this","this","this page","this page.","this website","this website.","view","view our","website","."],warningAltWords:["< "," >","click here"],newWindowPhrases:["external","new tab","new window","pop-up","pop up"],fileTypePhrases:["document","pdf","doc","docx","word","mp3","ppt","text","pptx","powerpoint","txt","exe","dmg","rtf","install","windows","macos","spreadsheet","worksheet","csv","xls","xlsx","video","mp4","mov","avi"]};Ve.embeddedContent=`${Ve.videoContent}, ${Ve.audioContent}`;class Ye{constructor(e){this.containerIgnore="",this.imageIgnore="",this.headerIgnore="",this.linkIgnore="",this.options=((e,t)=>{const n=t?Object.assign(Ve,t):Ve;if(["langCode","checkRoot"].forEach((e=>{if(!n[e])throw new Error(`Option [${e}] is required`)})),n.readabilityRoot||(n.readabilityRoot=n.checkRoot),n.containerIgnore){let e=n.containerIgnore.split(",").map((e=>`${e} *, ${e}`));n.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *, '+e.join(", ")}else n.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *';return e.containerIgnore=n.containerIgnore,e.imageIgnore=e.containerIgnore+', [role="presentation"], [src^="https://trck.youvisit.com"]',n.imageIgnore&&(e.imageIgnore=n.imageIgnore+","+e.imageIgnore),e.headerIgnore=n.containerIgnore,n.headerIgnore&&(e.headerIgnore=n.headerIgnore+","+e.headerIgnore),e.linkIgnore=e.containerIgnore+', [aria-hidden="true"], .anchorjs-link',n.linkIgnore&&(e.linkIgnore=n.linkIgnore+","+e.linkIgnore),n})(this,e);const t=document.createElement("div");t.setAttribute("id","jooa11y-container"),t.setAttribute("role","region"),t.setAttribute("lang",this.options.langCode),t.setAttribute("aria-label",Ke._("CONTAINER_LABEL"));let n="On"===localStorage.getItem("jooa11y-remember-contrast"),o="On"===localStorage.getItem("jooa11y-remember-labels"),r="On"===localStorage.getItem("jooa11y-remember-links-advanced"),a="On"===localStorage.getItem("jooa11y-remember-readability");t.innerHTML=`<button type="button" aria-expanded="false" id="jooa11y-toggle" aria-describedby="jooa11y-notification-badge" aria-label="${Ke._("MAIN_TOGGLE_LABEL")}">\n <svg role='img' focusable='false' width='35px' height='35px' aria-hidden='true' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='#ffffff' d='M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z'/></svg>\n <div id="jooa11y-notification-badge">\n <span id="jooa11y-notification-count"></span>\n </div>\n </button><div id="jooa11y-panel"><div id="jooa11y-outline-panel" role="tabpanel" aria-labelledby="jooa11y-outline-header">\n <div id="jooa11y-outline-header" class="jooa11y-header-text">\n <h2 tabindex="-1">${Ke._("PAGE_OUTLINE")}</h2>\n </div>\n <div id="jooa11y-outline-content">\n <ul id="jooa11y-outline-list"></ul>\n </div><div id="jooa11y-readability-panel">\n <div id="jooa11y-readability-content">\n <h2 class="jooa11y-header-text-inline">${Ke._("READABILITY")}</h2>\n <p id="jooa11y-readability-info"></p>\n <ul id="jooa11y-readability-details"></ul>\n </div>\n </div>\n </div><div id="jooa11y-settings-panel" role="tabpanel" aria-labelledby="jooa11y-settings-header">\n <div id="jooa11y-settings-header" class="jooa11y-header-text">\n <h2 tabindex="-1">${Ke._("SETTINGS")}</h2>\n </div>\n <div id="jooa11y-settings-content">\n <ul id="jooa11y-settings-options">\n <li>\n <label id="check-contrast" for="jooa11y-contrast-toggle">${Ke._("CONTRAST")}</label>\n <button id="jooa11y-contrast-toggle"\n aria-labelledby="check-contrast"\n class="jooa11y-settings-switch"\n aria-pressed="${n?"true":"false"}">${n?Ke._("ON"):Ke._("OFF")}</button>\n </li>\n <li>\n <label id="check-labels" for="jooa11y-labels-toggle">${Ke._("FORM_LABELS")}</label>\n <button id="jooa11y-labels-toggle" aria-labelledby="check-labels" class="jooa11y-settings-switch"\n aria-pressed="${o?"true":"false"}">${o?Ke._("ON"):Ke._("OFF")}</button>\n </li>\n <li>\n <label id="check-changerequest" for="jooa11y-links-advanced-toggle">${Ke._("LINKS_ADVANCED")}<span class="jooa11y-badge">AAA</span></label>\n <button id="jooa11y-links-advanced-toggle" aria-labelledby="check-changerequest" class="jooa11y-settings-switch"\n aria-pressed="${r?"true":"false"}">${r?Ke._("ON"):Ke._("OFF")}</button>\n </li>\n <li>\n <label id="check-readability" for="jooa11y-readability-toggle">${Ke._("READABILITY")}<span class="jooa11y-badge">AAA</span></label>\n <button id="jooa11y-readability-toggle" aria-labelledby="check-readability" class="jooa11y-settings-switch"\n aria-pressed="${a?"true":"false"}">${a?Ke._("ON"):Ke._("OFF")}</button>\n </li>\n <li>\n <label id="dark-mode" for="jooa11y-theme-toggle">${Ke._("DARK_MODE")}</label>\n <button id="jooa11y-theme-toggle" aria-labelledby="dark-mode" class="jooa11y-settings-switch"></button>\n </li>\n </ul>\n </div>\n </div><div id="jooa11y-panel-alert">\n <div class="jooa11y-header-text">\n <button id="jooa11y-close-alert" class="jooa11y-close-btn" aria-label="${Ke._("ALERT_CLOSE")}" aria-describedby="jooa11y-alert-heading jooa11y-panel-alert-text"></button>\n <h2 id="jooa11y-alert-heading">${Ke._("ALERT_TEXT")}</h2>\n </div>\n <p id="jooa11y-panel-alert-text"></p>\n <div id="jooa11y-panel-alert-preview"></div>\n </div><div id="jooa11y-panel-content">\n <button id="jooa11y-cycle-toggle" type="button" aria-label="${Ke._("SHORTCUT_SR")}">\n <div class="jooa11y-panel-icon"></div>\n </button>\n <div id="jooa11y-panel-text"><p id="jooa11y-status" aria-live="polite"></p></div>\n </div><div id="jooa11y-panel-controls" role="tablist" aria-orientation="horizontal">\n <button type="button" role="tab" aria-expanded="false" id="jooa11y-outline-toggle" aria-controls="jooa11y-outline-panel">\n ${Ke._("SHOW_OUTLINE")}\n </button>\n <button type="button" role="tab" aria-expanded="false" id="jooa11y-settings-toggle" aria-controls="jooa11y-settings-panel">\n ${Ke._("SHOW_SETTINGS")}\n </button>\n <div style="width:35px"></div>\n </div></div>`,document.body.append(t),this.settingPanelToggles(),this.jooa11yMainToggle(),this.sanitizeHTMLandComputeARIA(),this.initializeJumpToIssueTooltip()}jooa11yMainToggle(){const e=document.getElementById("jooa11y-toggle");e.addEventListener("click",(t=>{"Opened"===localStorage.getItem("jooa11y-remember-panel")?(localStorage.setItem("jooa11y-remember-panel","Closed"),e.classList.remove("jooa11y-on"),e.setAttribute("aria-expanded","false"),this.resetAll(),this.updateBadge(),t.preventDefault()):(localStorage.setItem("jooa11y-remember-panel","Opened"),e.classList.add("jooa11y-on"),e.setAttribute("aria-expanded","true"),this.checkAll(),document.getElementById("jooa11y-notification-badge").style.display="none",t.preventDefault())})),"Opened"===localStorage.getItem("jooa11y-remember-panel")&&(e.classList.add("jooa11y-on"),e.setAttribute("aria-expanded","true")),e.classList.contains("jooa11y-on")&&(e.classList.toggle("loading-jooa11y"),e.setAttribute("aria-expanded","true"),setTimeout(this.checkAll,800)),document.onkeydown=t=>{if(("key"in(t=t||window.event)?"Escape"===t.key||"Esc"===t.key:27===t.keyCode)&&document.getElementById("jooa11y-panel").classList.contains("jooa11y-active")&&(e.setAttribute("aria-expanded","false"),e.classList.remove("jooa11y-on"),e.click(),this.resetAll()),t.altKey&&"KeyA"==t.code){const e=document.getElementById("jooa11y-toggle");e.click(),e.focus(),t.preventDefault()}}}sanitizeHTMLandComputeARIA(){this.computeTextNodeWithImage=function(e){const t=Array.from(e.querySelectorAll("img"));let n="";if(0===t.length&&e.textContent.trim().length>1)n=e.textContent.trim();else if(t.length&&0===e.textContent.trim().length){let e=t[0].getAttribute("alt");e&&" "!==e?void 0!==e&&(n=e):n=" "}else t.length&&e.textContent.trim().length&&(t.forEach((e=>{e.insertAdjacentHTML("afterend"," <span class='jooa11y-clone-image-text' aria-hidden='true'>"+t[0].getAttribute("alt")+"</span> ")})),n=e.textContent.trim());return n},this.computeAriaLabel=function(e){if(e.matches("[aria-label]"))return e.getAttribute("aria-label");if(e.matches("[aria-labelledby]")){let t=e.getAttribute("aria-labelledby").split(/\s+/);if(t.length>0){let e="";return t.forEach((t=>{null===document.querySelector("#"+t)?e+=" ":e+=document.querySelector("#"+t).firstChild.nodeValue+" "})),e}return""}if(Array.from(e.children).filter((e=>e.matches("[aria-label]"))).length>0)return Array.from(e.children)[0].getAttribute("aria-label");if(Array.from(e.children).filter((e=>e.matches("[title]"))).length>0)return Array.from(e.children)[0].getAttribute("title");if(Array.from(e.children).filter((e=>e.matches("[aria-labelledby]"))).length>0){let t=Array.from(e.children)[0].getAttribute("aria-labelledby").split(/\s+/);if(t.length>0){let e="";return t.forEach((t=>{null===document.querySelector("#"+t)?e+=" ":e+=document.querySelector("#"+t).firstChild.nodeValue+" "})),e}return""}return"noAria"}}settingPanelToggles(){const e=document.getElementById("jooa11y-contrast-toggle");e.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-contrast")?(localStorage.setItem("jooa11y-remember-contrast","Off"),e.textContent=Ke._("OFF"),e.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-contrast","On"),e.textContent=Ke._("ON"),e.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const t=document.getElementById("jooa11y-labels-toggle");t.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-labels")?(localStorage.setItem("jooa11y-remember-labels","Off"),t.textContent=Ke._("OFF"),t.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-labels","On"),t.textContent=Ke._("ON"),t.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const n=document.getElementById("jooa11y-links-advanced-toggle");n.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-links-advanced")?(localStorage.setItem("jooa11y-remember-links-advanced","Off"),n.textContent=Ke._("OFF"),n.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-links-advanced","On"),n.textContent=Ke._("ON"),n.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const o=document.getElementById("jooa11y-readability-toggle");o.onclick=async()=>{"On"===localStorage.getItem("jooa11y-remember-readability")?(localStorage.setItem("jooa11y-remember-readability","Off"),o.textContent=Ke._("OFF"),o.setAttribute("aria-pressed","false"),document.getElementById("jooa11y-readability-panel").classList.remove("jooa11y-active"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-readability","On"),o.textContent=Ke._("ON"),o.setAttribute("aria-pressed","true"),document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active"),this.resetAll(!1),await this.checkAll())},"On"===localStorage.getItem("jooa11y-remember-readability")&&document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active");let r=window.matchMedia("(prefers-color-scheme: dark)");const a=document.getElementById("jooa11y-theme-toggle"),i=document.querySelector("html"),s=localStorage.getItem("jooa11y-remember-theme");r.matches?(a.textContent=Ke._("ON"),a.setAttribute("aria-pressed","true")):(a.textContent=Ke._("OFF"),a.setAttribute("aria-pressed","false")),r.addEventListener("change",(function(e){e.matches?(i.setAttribute("data-jooa11y-theme","dark"),a.textContent=Ke._("ON"),a.setAttribute("aria-pressed","true"),localStorage.setItem("jooa11y-remember-theme","")):(i.setAttribute("data-jooa11y-theme","light"),a.textContent=Ke._("OFF"),a.setAttribute("aria-pressed","false"),l