var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(t,e){return t.concat([e+"-"+start,e+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(t,e){return t.concat([e,e+"-"+start,e+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(t){return t?(t.nodeName||"").toLowerCase():null}function getWindow(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function isElement$1(t){var e=getWindow(t).Element;return t instanceof e||t instanceof Element}function isHTMLElement(t){var e=getWindow(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function isShadowRoot(t){if(typeof ShadowRoot>"u")return!1;var e=getWindow(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function applyStyles(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},i=e.attributes[r]||{},o=e.elements[r];!isHTMLElement(o)||!getNodeName(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function effect$2(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],o=e.attributes[n]||{},a=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),s=a.reduce(function(l,d){return l[d]="",l},{});!isHTMLElement(i)||!getNodeName(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement$1(t){return t.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getBoundingClientRect(t,e){e===void 0&&(e=!1);var r=t.getBoundingClientRect(),n=1,i=1;if(isHTMLElement(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(n=round(r.width)/a||1),o>0&&(i=round(r.height)/o||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function getLayoutRect(t){var e=getBoundingClientRect(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function contains(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&isShadowRoot(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function isTableElement(t){return["table","td","th"].indexOf(getNodeName(t))>=0}function getDocumentElement(t){return((isElement$1(t)?t.ownerDocument:t.document)||window.document).documentElement}function getParentNode(t){return getNodeName(t)==="html"?t:t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){return!isHTMLElement(t)||getComputedStyle$1(t).position==="fixed"?null:t.offsetParent}function getContainingBlock(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(t)){var n=getComputedStyle$1(t);if(n.position==="fixed")return null}for(var i=getParentNode(t);isHTMLElement(i)&&["html","body"].indexOf(getNodeName(i))<0;){var o=getComputedStyle$1(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function getOffsetParent(t){for(var e=getWindow(t),r=getTrueOffsetParent(t);r&&isTableElement(r)&&getComputedStyle$1(r).position==="static";)r=getTrueOffsetParent(r);return r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle$1(r).position==="static")?e:r||getContainingBlock(t)||e}function getMainAxisFromPlacement(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function within(t,e,r){return max(t,min(e,r))}function withinMaxClamp(t,e,r){var n=within(t,e,r);return n>r?r:n}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(t){return Object.assign({},getFreshSideObject(),t)}function expandToHashMap(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var toPaddingObject=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,mergePaddingObject(typeof e!="number"?e:expandToHashMap(e,basePlacements))};function arrow(t){var e,r=t.state,n=t.name,i=t.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=getBasePlacement$1(r.placement),l=getMainAxisFromPlacement(s),d=[left,right].indexOf(s)>=0,f=d?"height":"width";if(!(!o||!a)){var y=toPaddingObject(i.padding,r),b=getLayoutRect(o),h=l==="y"?top:left,g=l==="y"?bottom:right,A=r.rects.reference[f]+r.rects.reference[l]-a[l]-r.rects.popper[f],_=a[l]-r.rects.reference[l],T=getOffsetParent(o),m=T?l==="y"?T.clientHeight||0:T.clientWidth||0:0,j=A/2-_/2,c=y[h],x=m-b[f]-y[g],u=m/2-b[f]/2+j,E=within(c,u,x),I=l;r.modifiersData[n]=(e={},e[I]=E,e.centerOffset=E-u,e)}}function effect$1(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||contains(e.elements.popper,i)&&(e.elements.arrow=i))}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(t){return t.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(t){var e=t.x,r=t.y,n=window,i=n.devicePixelRatio||1;return{x:round(e*i)/i||0,y:round(r*i)/i||0}}function mapToStyles(t){var e,r=t.popper,n=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,d=t.adaptive,f=t.roundOffsets,y=t.isFixed,b=a.x,h=b===void 0?0:b,g=a.y,A=g===void 0?0:g,_=typeof f=="function"?f({x:h,y:A}):{x:h,y:A};h=_.x,A=_.y;var T=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),j=left,c=top,x=window;if(d){var u=getOffsetParent(r),E="clientHeight",I="clientWidth";if(u===getWindow(r)&&(u=getDocumentElement(r),getComputedStyle$1(u).position!=="static"&&s==="absolute"&&(E="scrollHeight",I="scrollWidth")),u=u,i===top||(i===left||i===right)&&o===end){c=bottom;var S=y&&x.visualViewport?x.visualViewport.height:u[E];A-=S-n.height,A*=l?1:-1}if(i===left||(i===top||i===bottom)&&o===end){j=right;var N=y&&x.visualViewport?x.visualViewport.width:u[I];h-=N-n.width,h*=l?1:-1}}var C=Object.assign({position:s},d&&unsetSides),R=f===!0?roundOffsetsByDPR({x:h,y:A}):{x:h,y:A};if(h=R.x,A=R.y,l){var M;return Object.assign({},C,(M={},M[c]=m?"0":"",M[j]=T?"0":"",M.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+A+"px)":"translate3d("+h+"px, "+A+"px, 0)",M))}return Object.assign({},C,(e={},e[c]=m?A+"px":"",e[j]=T?h+"px":"",e.transform="",e))}function computeStyles(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,d={placement:getBasePlacement$1(e.placement),variation:getVariation(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,mapToStyles(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=getWindow(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(f){f.addEventListener("scroll",r.update,passive)}),s&&l.addEventListener("resize",r.update,passive),function(){o&&d.forEach(function(f){f.removeEventListener("scroll",r.update,passive)}),s&&l.removeEventListener("resize",r.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}},hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,function(e){return hash$1[e]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(t){return t.replace(/start|end/g,function(e){return hash[e]})}function getWindowScroll(t){var e=getWindow(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getWindowScroll(t).scrollLeft}function getViewportRect(t){var e=getWindow(t),r=getDocumentElement(t),n=e.visualViewport,i=r.clientWidth,o=r.clientHeight,a=0,s=0;return n&&(i=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,s=n.offsetTop)),{width:i,height:o,x:a+getWindowScrollBarX(t),y:s}}function getDocumentRect(t){var e,r=getDocumentElement(t),n=getWindowScroll(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=max(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=max(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+getWindowScrollBarX(t),l=-n.scrollTop;return getComputedStyle$1(i||r).direction==="rtl"&&(s+=max(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function isScrollParent(t){var e=getComputedStyle$1(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function getScrollParent(t){return["html","body","#document"].indexOf(getNodeName(t))>=0?t.ownerDocument.body:isHTMLElement(t)&&isScrollParent(t)?t:getScrollParent(getParentNode(t))}function listScrollParents(t,e){var r;e===void 0&&(e=[]);var n=getScrollParent(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),o=getWindow(n),a=i?[o].concat(o.visualViewport||[],isScrollParent(n)?n:[]):n,s=e.concat(a);return i?s:s.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function getInnerBoundingClientRect(t){var e=getBoundingClientRect(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function getClientRectFromMixedType(t,e){return e===viewport?rectToClientRect(getViewportRect(t)):isElement$1(e)?getInnerBoundingClientRect(e):rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingParents(t){var e=listScrollParents(getParentNode(t)),r=["absolute","fixed"].indexOf(getComputedStyle$1(t).position)>=0,n=r&&isHTMLElement(t)?getOffsetParent(t):t;return isElement$1(n)?e.filter(function(i){return isElement$1(i)&&contains(i,n)&&getNodeName(i)!=="body"}):[]}function getClippingRect(t,e,r){var n=e==="clippingParents"?getClippingParents(t):[].concat(e),i=[].concat(n,[r]),o=i[0],a=i.reduce(function(s,l){var d=getClientRectFromMixedType(t,l);return s.top=max(d.top,s.top),s.right=min(d.right,s.right),s.bottom=min(d.bottom,s.bottom),s.left=max(d.left,s.left),s},getClientRectFromMixedType(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function computeOffsets(t){var e=t.reference,r=t.element,n=t.placement,i=n?getBasePlacement$1(n):null,o=n?getVariation(n):null,a=e.x+e.width/2-r.width/2,s=e.y+e.height/2-r.height/2,l;switch(i){case top:l={x:a,y:e.y-r.height};break;case bottom:l={x:a,y:e.y+e.height};break;case right:l={x:e.x+e.width,y:s};break;case left:l={x:e.x-r.width,y:s};break;default:l={x:e.x,y:e.y}}var d=i?getMainAxisFromPlacement(i):null;if(d!=null){var f=d==="y"?"height":"width";switch(o){case start:l[d]=l[d]-(e[f]/2-r[f]/2);break;case end:l[d]=l[d]+(e[f]/2-r[f]/2);break}}return l}function detectOverflow(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,o=r.boundary,a=o===void 0?clippingParents:o,s=r.rootBoundary,l=s===void 0?viewport:s,d=r.elementContext,f=d===void 0?popper:d,y=r.altBoundary,b=y===void 0?!1:y,h=r.padding,g=h===void 0?0:h,A=mergePaddingObject(typeof g!="number"?g:expandToHashMap(g,basePlacements)),_=f===popper?reference:popper,T=t.rects.popper,m=t.elements[b?_:f],j=getClippingRect(isElement$1(m)?m:m.contextElement||getDocumentElement(t.elements.popper),a,l),c=getBoundingClientRect(t.elements.reference),x=computeOffsets({reference:c,element:T,strategy:"absolute",placement:i}),u=rectToClientRect(Object.assign({},T,x)),E=f===popper?u:c,I={top:j.top-E.top+A.top,bottom:E.bottom-j.bottom+A.bottom,left:j.left-E.left+A.left,right:E.right-j.right+A.right},S=t.modifiersData.offset;if(f===popper&&S){var N=S[i];Object.keys(I).forEach(function(C){var R=[right,bottom].indexOf(C)>=0?1:-1,M=[top,bottom].indexOf(C)>=0?"y":"x";I[C]+=N[M]*R})}return I}function computeAutoPlacement(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,d=l===void 0?placements:l,f=getVariation(n),y=f?s?variationPlacements:variationPlacements.filter(function(g){return getVariation(g)===f}):basePlacements,b=y.filter(function(g){return d.indexOf(g)>=0});b.length===0&&(b=y);var h=b.reduce(function(g,A){return g[A]=detectOverflow(t,{placement:A,boundary:i,rootBoundary:o,padding:a})[getBasePlacement$1(A)],g},{});return Object.keys(h).sort(function(g,A){return h[g]-h[A]})}function getExpandedFallbackPlacements(t){if(getBasePlacement$1(t)===auto)return[];var e=getOppositePlacement(t);return[getOppositeVariationPlacement(t),e,getOppositeVariationPlacement(e)]}function flip(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,d=r.padding,f=r.boundary,y=r.rootBoundary,b=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,A=r.allowedAutoPlacements,_=e.options.placement,T=getBasePlacement$1(_),m=T===_,j=l||(m||!g?[getOppositePlacement(_)]:getExpandedFallbackPlacements(_)),c=[_].concat(j).reduce(function(K,W){return K.concat(getBasePlacement$1(W)===auto?computeAutoPlacement(e,{placement:W,boundary:f,rootBoundary:y,padding:d,flipVariations:g,allowedAutoPlacements:A}):W)},[]),x=e.rects.reference,u=e.rects.popper,E=new Map,I=!0,S=c[0],N=0;N<c.length;N++){var C=c[N],R=getBasePlacement$1(C),M=getVariation(C)===start,G=[top,bottom].indexOf(R)>=0,P=G?"width":"height",k=detectOverflow(e,{placement:C,boundary:f,rootBoundary:y,altBoundary:b,padding:d}),$=G?M?right:left:M?bottom:top;x[P]>u[P]&&($=getOppositePlacement($));var D=getOppositePlacement($),q=[];if(o&&q.push(k[R]<=0),s&&q.push(k[$]<=0,k[D]<=0),q.every(function(K){return K})){S=C,I=!1;break}E.set(C,q)}if(I)for(var F=g?3:1,J=function(W){var V=c.find(function(re){var Y=E.get(re);if(Y)return Y.slice(0,W).every(function(ne){return ne})});if(V)return S=V,"break"},U=F;U>0;U--){var Z=J(U);if(Z==="break")break}e.placement!==S&&(e.modifiersData[n]._skip=!0,e.placement=S,e.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function isAnySideFullyClipped(t){return[top,right,bottom,left].some(function(e){return t[e]>=0})}function hide(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=detectOverflow(e,{elementContext:"reference"}),s=detectOverflow(e,{altBoundary:!0}),l=getSideOffsets(a,n),d=getSideOffsets(s,i,o),f=isAnySideFullyClipped(l),y=isAnySideFullyClipped(d);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:y},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":y})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(t,e,r){var n=getBasePlacement$1(t),i=[left,top].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[left,right].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function offset(t){var e=t.state,r=t.options,n=t.name,i=r.offset,o=i===void 0?[0,0]:i,a=placements.reduce(function(f,y){return f[y]=distanceAndSkiddingToXY(y,e.rects,o),f},{}),s=a[e.placement],l=s.x,d=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=a}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(t){var e=t.state,r=t.name;e.modifiersData[r]=computeOffsets({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(t){return t==="x"?"y":"x"}function preventOverflow(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,d=r.rootBoundary,f=r.altBoundary,y=r.padding,b=r.tether,h=b===void 0?!0:b,g=r.tetherOffset,A=g===void 0?0:g,_=detectOverflow(e,{boundary:l,rootBoundary:d,padding:y,altBoundary:f}),T=getBasePlacement$1(e.placement),m=getVariation(e.placement),j=!m,c=getMainAxisFromPlacement(T),x=getAltAxis(c),u=e.modifiersData.popperOffsets,E=e.rects.reference,I=e.rects.popper,S=typeof A=="function"?A(Object.assign({},e.rects,{placement:e.placement})):A,N=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(u){if(o){var M,G=c==="y"?top:left,P=c==="y"?bottom:right,k=c==="y"?"height":"width",$=u[c],D=$+_[G],q=$-_[P],F=h?-I[k]/2:0,J=m===start?E[k]:I[k],U=m===start?-I[k]:-E[k],Z=e.elements.arrow,K=h&&Z?getLayoutRect(Z):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:getFreshSideObject(),V=W[G],re=W[P],Y=within(0,E[k],K[k]),ne=j?E[k]/2-F-Y-V-N.mainAxis:J-Y-V-N.mainAxis,X=j?-E[k]/2+F+Y+re+N.mainAxis:U+Y+re+N.mainAxis,oe=e.elements.arrow&&getOffsetParent(e.elements.arrow),fe=oe?c==="y"?oe.clientTop||0:oe.clientLeft||0:0,se=(M=C?.[c])!=null?M:0,pe=$+ne-se-fe,he=$+X-se,le=within(h?min(D,pe):D,$,h?max(q,he):q);u[c]=le,R[c]=le-$}if(s){var ce,ge=c==="x"?top:left,me=c==="x"?bottom:right,z=u[x],Q=x==="y"?"height":"width",de=z+_[ge],ee=z-_[me],ue=[top,left].indexOf(T)!==-1,ye=(ce=C?.[x])!=null?ce:0,be=ue?de:z-E[Q]-I[Q]-ye+N.altAxis,ve=ue?z+E[Q]+I[Q]-ye-N.altAxis:ee,Ae=h&&ue?withinMaxClamp(be,z,ve):within(h?be:de,z,h?ve:ee);u[x]=Ae,R[x]=Ae-z}e.modifiersData[n]=R}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function getNodeScroll(t){return t===getWindow(t)||!isHTMLElement(t)?getWindowScroll(t):getHTMLElementScroll(t)}function isElementScaled(t){var e=t.getBoundingClientRect(),r=round(e.width)/t.offsetWidth||1,n=round(e.height)/t.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(t,e,r){r===void 0&&(r=!1);var n=isHTMLElement(e),i=isHTMLElement(e)&&isElementScaled(e),o=getDocumentElement(e),a=getBoundingClientRect(t,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((getNodeName(e)!=="body"||isScrollParent(o))&&(s=getNodeScroll(e)),isHTMLElement(e)?(l=getBoundingClientRect(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=getWindowScrollBarX(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function order(t){var e=new Map,r=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=e.get(s);l&&i(l)}}),n.push(o)}return t.forEach(function(o){r.has(o.name)||i(o)}),n}function orderModifiers(t){var e=order(t);return modifierPhases.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function debounce$1(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function mergeByName(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function popperGenerator(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,o=i===void 0?DEFAULT_OPTIONS:i;return function(s,l,d){d===void 0&&(d=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},y=[],b=!1,h={state:f,setOptions:function(T){var m=typeof T=="function"?T(f.options):T;A(),f.options=Object.assign({},o,f.options,m),f.scrollParents={reference:isElement$1(s)?listScrollParents(s):s.contextElement?listScrollParents(s.contextElement):[],popper:listScrollParents(l)};var j=orderModifiers(mergeByName([].concat(n,f.options.modifiers)));return f.orderedModifiers=j.filter(function(c){return c.enabled}),g(),h.update()},forceUpdate:function(){if(!b){var T=f.elements,m=T.reference,j=T.popper;if(areValidElements(m,j)){f.rects={reference:getCompositeRect(m,getOffsetParent(j),f.options.strategy==="fixed"),popper:getLayoutRect(j)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(N){return f.modifiersData[N.name]=Object.assign({},N.data)});for(var c=0;c<f.orderedModifiers.length;c++){if(f.reset===!0){f.reset=!1,c=-1;continue}var x=f.orderedModifiers[c],u=x.fn,E=x.options,I=E===void 0?{}:E,S=x.name;typeof u=="function"&&(f=u({state:f,options:I,name:S,instance:h})||f)}}}},update:debounce$1(function(){return new Promise(function(_){h.forceUpdate(),_(f)})}),destroy:function(){A(),b=!0}};if(!areValidElements(s,l))return h;h.setOptions(d).then(function(_){!b&&d.onFirstUpdate&&d.onFirstUpdate(_)});function g(){f.orderedModifiers.forEach(function(_){var T=_.name,m=_.options,j=m===void 0?{}:m,c=_.effect;if(typeof c=="function"){var x=c({state:f,name:T,instance:h,options:j}),u=function(){};y.push(x||u)}})}function A(){y.forEach(function(_){return _()}),y=[]}return h}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),BOX_CLASS="tippy-box",CONTENT_CLASS="tippy-content",BACKDROP_CLASS="tippy-backdrop",ARROW_CLASS="tippy-arrow",SVG_ARROW_CLASS="tippy-svg-arrow",TOUCH_OPTIONS={passive:!0,capture:!0},TIPPY_DEFAULT_APPEND_TO=function(){return document.body};function getValueAtIndexOrReturn(t,e,r){if(Array.isArray(t)){var n=t[e];return n??(Array.isArray(r)?r[e]:r)}return t}function isType(t,e){var r={}.toString.call(t);return r.indexOf("[object")===0&&r.indexOf(e+"]")>-1}function invokeWithArgsOrReturn(t,e){return typeof t=="function"?t.apply(void 0,e):t}function debounce(t,e){if(e===0)return t;var r;return function(n){clearTimeout(r),r=setTimeout(function(){t(n)},e)}}function splitBySpaces(t){return t.split(/\s+/).filter(Boolean)}function normalizeToArray(t){return[].concat(t)}function pushIfUnique(t,e){t.indexOf(e)===-1&&t.push(e)}function unique(t){return t.filter(function(e,r){return t.indexOf(e)===r})}function getBasePlacement(t){return t.split("-")[0]}function arrayFrom(t){return[].slice.call(t)}function removeUndefinedProps(t){return Object.keys(t).reduce(function(e,r){return t[r]!==void 0&&(e[r]=t[r]),e},{})}function div(){return document.createElement("div")}function isElement(t){return["Element","Fragment"].some(function(e){return isType(t,e)})}function isNodeList(t){return isType(t,"NodeList")}function isMouseEvent(t){return isType(t,"MouseEvent")}function isReferenceElement(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function getArrayOfElements(t){return isElement(t)?[t]:isNodeList(t)?arrayFrom(t):Array.isArray(t)?t:arrayFrom(document.querySelectorAll(t))}function setTransitionDuration(t,e){t.forEach(function(r){r&&(r.style.transitionDuration=e+"ms")})}function setVisibilityState(t,e){t.forEach(function(r){r&&r.setAttribute("data-state",e)})}function getOwnerDocument(t){var e,r=normalizeToArray(t),n=r[0];return n!=null&&(e=n.ownerDocument)!=null&&e.body?n.ownerDocument:document}function isCursorOutsideInteractiveBorder(t,e){var r=e.clientX,n=e.clientY;return t.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,d=getBasePlacement(a.placement),f=a.modifiersData.offset;if(!f)return!0;var y=d==="bottom"?f.top.y:0,b=d==="top"?f.bottom.y:0,h=d==="right"?f.left.x:0,g=d==="left"?f.right.x:0,A=o.top-n+y>l,_=n-o.bottom-b>l,T=o.left-r+h>l,m=r-o.right-g>l;return A||_||T||m})}function updateTransitionEndListener(t,e,r){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){t[n](i,r)})}function actualContains(t,e){for(var r=e;r;){var n;if(t.contains(r))return!0;r=r.getRootNode==null||(n=r.getRootNode())==null?void 0:n.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var t=performance.now();t-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=t}function onWindowBlur(){var t=document.activeElement;if(isReferenceElement(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",isIE11=isBrowser?!!window.msCrypto:!1,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,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},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function(e){var r=Object.keys(e);r.forEach(function(n){defaultProps[n]=e[n]})};function getExtendedPassedProps(t){var e=t.plugins||[],r=e.reduce(function(n,i){var o=i.name,a=i.defaultValue;if(o){var s;n[o]=t[o]!==void 0?t[o]:(s=defaultProps[o])!=null?s:a}return n},{});return Object.assign({},t,r)}function getDataAttributeProps(t,e){var r=e?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:e}))):defaultKeys,n=r.reduce(function(i,o){var a=(t.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return n}function evaluateProps(t,e){var r=Object.assign({},e,{content:invokeWithArgsOrReturn(e.content,[t])},e.ignoreAttributes?{}:getDataAttributeProps(t,e.plugins));return r.aria=Object.assign({},defaultProps.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?e.interactive:r.aria.expanded,content:r.aria.content==="auto"?e.interactive?null:"describedby":r.aria.content},r}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(t,e){t[innerHTML()]=e}function createArrowElement(t){var e=div();return t===!0?e.className=ARROW_CLASS:(e.className=SVG_ARROW_CLASS,isElement(t)?e.appendChild(t):dangerouslySetInnerHTML(e,t)),e}function setContent(t,e){isElement(e.content)?(dangerouslySetInnerHTML(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?dangerouslySetInnerHTML(t,e.content):t.textContent=e.content)}function getChildren(t){var e=t.firstElementChild,r=arrayFrom(e.children);return{box:e,content:r.find(function(n){return n.classList.contains(CONTENT_CLASS)}),arrow:r.find(function(n){return n.classList.contains(ARROW_CLASS)||n.classList.contains(SVG_ARROW_CLASS)}),backdrop:r.find(function(n){return n.classList.contains(BACKDROP_CLASS)})}}function render(t){var e=div(),r=div();r.className=BOX_CLASS,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=div();n.className=CONTENT_CLASS,n.setAttribute("data-state","hidden"),setContent(n,t.props),e.appendChild(r),r.appendChild(n),i(t.props,t.props);function i(o,a){var s=getChildren(e),l=s.box,d=s.content,f=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&setContent(d,t.props),a.arrow?f?o.arrow!==a.arrow&&(l.removeChild(f),l.appendChild(createArrowElement(a.arrow))):l.appendChild(createArrowElement(a.arrow)):f&&l.removeChild(f)}return{popper:e,onUpdate:i}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(t,e){var r=evaluateProps(t,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(e)))),n,i,o,a=!1,s=!1,l=!1,d=!1,f,y,b,h=[],g=debounce(pe,r.interactiveDebounce),A,_=idCounter++,T=null,m=unique(r.plugins),j={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},c={id:_,reference:t,popper:div(),popperInstance:T,props:r,state:j,plugins:m,clearDelayTimeouts:be,setProps:ve,setContent:Ae,show:Ie,hide:Se,hideWithInteractivity:Oe,enable:ue,disable:ye,unmount:xe,destroy:we};if(!r.render)return c;var x=r.render(c),u=x.popper,E=x.onUpdate;u.setAttribute("data-tippy-root",""),u.id="tippy-"+c.id,c.popper=u,t._tippy=c,u._tippy=c;var I=m.map(function(p){return p.fn(c)}),S=t.hasAttribute("aria-expanded");return oe(),F(),$(),D("onCreate",[c]),r.showOnCreate&&de(),u.addEventListener("mouseenter",function(){c.props.interactive&&c.state.isVisible&&c.clearDelayTimeouts()}),u.addEventListener("mouseleave",function(){c.props.interactive&&c.props.trigger.indexOf("mouseenter")>=0&&G().addEventListener("mousemove",g)}),c;function N(){var p=c.props.touch;return Array.isArray(p)?p:[p,0]}function C(){return N()[0]==="hold"}function R(){var p;return!!((p=c.props.render)!=null&&p.$$tippy)}function M(){return A||t}function G(){var p=M().parentNode;return p?getOwnerDocument(p):document}function P(){return getChildren(u)}function k(p){return c.state.isMounted&&!c.state.isVisible||currentInput.isTouch||f&&f.type==="focus"?0:getValueAtIndexOrReturn(c.props.delay,p?0:1,defaultProps.delay)}function $(p){p===void 0&&(p=!1),u.style.pointerEvents=c.props.interactive&&!p?"":"none",u.style.zIndex=""+c.props.zIndex}function D(p,v,L){if(L===void 0&&(L=!0),I.forEach(function(O){O[p]&&O[p].apply(O,v)}),L){var w;(w=c.props)[p].apply(w,v)}}function q(){var p=c.props.aria;if(p.content){var v="aria-"+p.content,L=u.id,w=normalizeToArray(c.props.triggerTarget||t);w.forEach(function(O){var H=O.getAttribute(v);if(c.state.isVisible)O.setAttribute(v,H?H+" "+L:L);else{var B=H&&H.replace(L,"").trim();B?O.setAttribute(v,B):O.removeAttribute(v)}})}}function F(){if(!(S||!c.props.aria.expanded)){var p=normalizeToArray(c.props.triggerTarget||t);p.forEach(function(v){c.props.interactive?v.setAttribute("aria-expanded",c.state.isVisible&&v===M()?"true":"false"):v.removeAttribute("aria-expanded")})}}function J(){G().removeEventListener("mousemove",g),mouseMoveListeners=mouseMoveListeners.filter(function(p){return p!==g})}function U(p){if(!(currentInput.isTouch&&(l||p.type==="mousedown"))){var v=p.composedPath&&p.composedPath()[0]||p.target;if(!(c.props.interactive&&actualContains(u,v))){if(normalizeToArray(c.props.triggerTarget||t).some(function(L){return actualContains(L,v)})){if(currentInput.isTouch||c.state.isVisible&&c.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[c,p]);c.props.hideOnClick===!0&&(c.clearDelayTimeouts(),c.hide(),s=!0,setTimeout(function(){s=!1}),c.state.isMounted||V())}}}function Z(){l=!0}function K(){l=!1}function W(){var p=G();p.addEventListener("mousedown",U,!0),p.addEventListener("touchend",U,TOUCH_OPTIONS),p.addEventListener("touchstart",K,TOUCH_OPTIONS),p.addEventListener("touchmove",Z,TOUCH_OPTIONS)}function V(){var p=G();p.removeEventListener("mousedown",U,!0),p.removeEventListener("touchend",U,TOUCH_OPTIONS),p.removeEventListener("touchstart",K,TOUCH_OPTIONS),p.removeEventListener("touchmove",Z,TOUCH_OPTIONS)}function re(p,v){ne(p,function(){!c.state.isVisible&&u.parentNode&&u.parentNode.contains(u)&&v()})}function Y(p,v){ne(p,v)}function ne(p,v){var L=P().box;function w(O){O.target===L&&(updateTransitionEndListener(L,"remove",w),v())}if(p===0)return v();updateTransitionEndListener(L,"remove",y),updateTransitionEndListener(L,"add",w),y=w}function X(p,v,L){L===void 0&&(L=!1);var w=normalizeToArray(c.props.triggerTarget||t);w.forEach(function(O){O.addEventListener(p,v,L),h.push({node:O,eventType:p,handler:v,options:L})})}function oe(){C()&&(X("touchstart",se,{passive:!0}),X("touchend",he,{passive:!0})),splitBySpaces(c.props.trigger).forEach(function(p){if(p!=="manual")switch(X(p,se),p){case"mouseenter":X("mouseleave",he);break;case"focus":X(isIE11?"focusout":"blur",le);break;case"focusin":X("focusout",le);break}})}function fe(){h.forEach(function(p){var v=p.node,L=p.eventType,w=p.handler,O=p.options;v.removeEventListener(L,w,O)}),h=[]}function se(p){var v,L=!1;if(!(!c.state.isEnabled||ce(p)||s)){var w=((v=f)==null?void 0:v.type)==="focus";f=p,A=p.currentTarget,F(),!c.state.isVisible&&isMouseEvent(p)&&mouseMoveListeners.forEach(function(O){return O(p)}),p.type==="click"&&(c.props.trigger.indexOf("mouseenter")<0||a)&&c.props.hideOnClick!==!1&&c.state.isVisible?L=!0:de(p),p.type==="click"&&(a=!L),L&&!w&&ee(p)}}function pe(p){var v=p.target,L=M().contains(v)||u.contains(v);if(!(p.type==="mousemove"&&L)){var w=Q().concat(u).map(function(O){var H,B=O._tippy,ae=(H=B.popperInstance)==null?void 0:H.state;return ae?{popperRect:O.getBoundingClientRect(),popperState:ae,props:r}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(w,p)&&(J(),ee(p))}}function he(p){var v=ce(p)||c.props.trigger.indexOf("click")>=0&&a;if(!v){if(c.props.interactive){c.hideWithInteractivity(p);return}ee(p)}}function le(p){c.props.trigger.indexOf("focusin")<0&&p.target!==M()||c.props.interactive&&p.relatedTarget&&u.contains(p.relatedTarget)||ee(p)}function ce(p){return currentInput.isTouch?C()!==p.type.indexOf("touch")>=0:!1}function ge(){me();var p=c.props,v=p.popperOptions,L=p.placement,w=p.offset,O=p.getReferenceClientRect,H=p.moveTransition,B=R()?getChildren(u).arrow:null,ae=O?{getBoundingClientRect:O,contextElement:O.contextElement||M()}:t,Te={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ee){var ie=Ee.state;if(R()){var Ne=P(),je=Ne.box;["placement","reference-hidden","escaped"].forEach(function(_e){_e==="placement"?je.setAttribute("data-placement",ie.placement):ie.attributes.popper["data-popper-"+_e]?je.setAttribute("data-"+_e,""):je.removeAttribute("data-"+_e)}),ie.attributes.popper={}}}},te=[{name:"offset",options:{offset:w}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!H}},Te];R()&&B&&te.push({name:"arrow",options:{element:B,padding:3}}),te.push.apply(te,v?.modifiers||[]),c.popperInstance=createPopper(ae,u,Object.assign({},v,{placement:L,onFirstUpdate:b,modifiers:te}))}function me(){c.popperInstance&&(c.popperInstance.destroy(),c.popperInstance=null)}function z(){var p=c.props.appendTo,v,L=M();c.props.interactive&&p===TIPPY_DEFAULT_APPEND_TO||p==="parent"?v=L.parentNode:v=invokeWithArgsOrReturn(p,[L]),v.contains(u)||v.appendChild(u),c.state.isMounted=!0,ge()}function Q(){return arrayFrom(u.querySelectorAll("[data-tippy-root]"))}function de(p){c.clearDelayTimeouts(),p&&D("onTrigger",[c,p]),W();var v=k(!0),L=N(),w=L[0],O=L[1];currentInput.isTouch&&w==="hold"&&O&&(v=O),v?n=setTimeout(function(){c.show()},v):c.show()}function ee(p){if(c.clearDelayTimeouts(),D("onUntrigger",[c,p]),!c.state.isVisible){V();return}if(!(c.props.trigger.indexOf("mouseenter")>=0&&c.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(p.type)>=0&&a)){var v=k(!1);v?i=setTimeout(function(){c.state.isVisible&&c.hide()},v):o=requestAnimationFrame(function(){c.hide()})}}function ue(){c.state.isEnabled=!0}function ye(){c.hide(),c.state.isEnabled=!1}function be(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(o)}function ve(p){if(!c.state.isDestroyed){D("onBeforeUpdate",[c,p]),fe();var v=c.props,L=evaluateProps(t,Object.assign({},v,removeUndefinedProps(p),{ignoreAttributes:!0}));c.props=L,oe(),v.interactiveDebounce!==L.interactiveDebounce&&(J(),g=debounce(pe,L.interactiveDebounce)),v.triggerTarget&&!L.triggerTarget?normalizeToArray(v.triggerTarget).forEach(function(w){w.removeAttribute("aria-expanded")}):L.triggerTarget&&t.removeAttribute("aria-expanded"),F(),$(),E&&E(v,L),c.popperInstance&&(ge(),Q().forEach(function(w){requestAnimationFrame(w._tippy.popperInstance.forceUpdate)})),D("onAfterUpdate",[c,p])}}function Ae(p){c.setProps({content:p})}function Ie(){var p=c.state.isVisible,v=c.state.isDestroyed,L=!c.state.isEnabled,w=currentInput.isTouch&&!c.props.touch,O=getValueAtIndexOrReturn(c.props.duration,0,defaultProps.duration);if(!(p||v||L||w)&&!M().hasAttribute("disabled")&&(D("onShow",[c],!1),c.props.onShow(c)!==!1)){if(c.state.isVisible=!0,R()&&(u.style.visibility="visible"),$(),W(),c.state.isMounted||(u.style.transition="none"),R()){var H=P(),B=H.box,ae=H.content;setTransitionDuration([B,ae],0)}b=function(){var te;if(!(!c.state.isVisible||d)){if(d=!0,u.offsetHeight,u.style.transition=c.props.moveTransition,R()&&c.props.animation){var Le=P(),Ee=Le.box,ie=Le.content;setTransitionDuration([Ee,ie],O),setVisibilityState([Ee,ie],"visible")}q(),F(),pushIfUnique(mountedInstances,c),(te=c.popperInstance)==null||te.forceUpdate(),D("onMount",[c]),c.props.animation&&R()&&Y(O,function(){c.state.isShown=!0,D("onShown",[c])})}},z()}}function Se(){var p=!c.state.isVisible,v=c.state.isDestroyed,L=!c.state.isEnabled,w=getValueAtIndexOrReturn(c.props.duration,1,defaultProps.duration);if(!(p||v||L)&&(D("onHide",[c],!1),c.props.onHide(c)!==!1)){if(c.state.isVisible=!1,c.state.isShown=!1,d=!1,a=!1,R()&&(u.style.visibility="hidden"),J(),V(),$(!0),R()){var O=P(),H=O.box,B=O.content;c.props.animation&&(setTransitionDuration([H,B],w),setVisibilityState([H,B],"hidden"))}q(),F(),c.props.animation?R()&&re(w,c.unmount):c.unmount()}}function Oe(p){G().addEventListener("mousemove",g),pushIfUnique(mouseMoveListeners,g),g(p)}function xe(){c.state.isVisible&&c.hide(),c.state.isMounted&&(me(),Q().forEach(function(p){p._tippy.unmount()}),u.parentNode&&u.parentNode.removeChild(u),mountedInstances=mountedInstances.filter(function(p){return p!==c}),c.state.isMounted=!1,D("onHidden",[c]))}function we(){c.state.isDestroyed||(c.clearDelayTimeouts(),c.unmount(),fe(),delete t._tippy,c.state.isDestroyed=!0,D("onDestroy",[c]))}}function tippy(t,e){e===void 0&&(e={});var r=defaultProps.plugins.concat(e.plugins||[]);bindGlobalEventListeners();var n=Object.assign({},e,{plugins:r}),i=getArrayOfElements(t),o=i.reduce(function(a,s){var l=s&&createTippy(s,n);return l&&a.push(l),a},[]);return isElement(t)?o[0]:o}tippy.defaultProps=defaultProps,tippy.setDefaultProps=setDefaultProps,tippy.currentInput=currentInput,Object.assign({},applyStyles$1,{effect:function(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow)}}),tippy.setDefaultProps({render});const isElementHidden=t=>t.getAttribute("hidden")||t.offsetWidth===0&&t.offsetHeight===0?!0:getComputedStyle(t).getPropertyValue("display")==="none",escapeHTML=t=>{const e=document.createElement("div");return e.textContent=t,e.innerHTML.replaceAll('"',""").replaceAll("'","'").replaceAll("`","`")},Lang={langStrings:{},addI18n:function(t){this.langStrings=t},_:function(t){return this.translate(t)},sprintf:function(t,...e){let r=this._(t);return e&&e.length&&e.forEach(n=>{r=r.replace(/%\([a-zA-z]+\)/,n)}),r},translate:function(t){return this.langStrings[t]||t}},defaultOptions={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"]};defaultOptions.embeddedContent=`${defaultOptions.videoContent}, ${defaultOptions.audioContent}`;const loadOptions=(t,e)=>{const r=e?Object.assign(defaultOptions,e):defaultOptions;if(["langCode","checkRoot"].forEach(n=>{if(!r[n])throw new Error(`Option [${n}] is required`)}),r.readabilityRoot||(r.readabilityRoot=r.checkRoot),r.containerIgnore){let n=r.containerIgnore.split(",").map(i=>`${i} *, ${i}`);r.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *, '+n.join(", ")}else r.containerIgnore='[aria-hidden="true"], #jooa11y-container *, .jooa11y-instance *';return t.containerIgnore=r.containerIgnore,t.imageIgnore=t.containerIgnore+', [role="presentation"], [src^="https://trck.youvisit.com"]',r.imageIgnore&&(t.imageIgnore=r.imageIgnore+","+t.imageIgnore),t.headerIgnore=r.containerIgnore,r.headerIgnore&&(t.headerIgnore=r.headerIgnore+","+t.headerIgnore),t.linkIgnore=t.containerIgnore+', [aria-hidden="true"], .anchorjs-link',r.linkIgnore&&(t.linkIgnore=r.linkIgnore+","+t.linkIgnore),r};class Jooa11y{constructor(e){this.containerIgnore="",this.imageIgnore="",this.headerIgnore="",this.linkIgnore="",this.options=loadOptions(this,e);const r="<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=document.createElement("div");n.setAttribute("id","jooa11y-container"),n.setAttribute("role","region"),n.setAttribute("lang",this.options.langCode),n.setAttribute("aria-label",Lang._("CONTAINER_LABEL"));let i=localStorage.getItem("jooa11y-remember-contrast")==="On",o=localStorage.getItem("jooa11y-remember-labels")==="On",a=localStorage.getItem("jooa11y-remember-links-advanced")==="On",s=localStorage.getItem("jooa11y-remember-readability")==="On";n.innerHTML=`<button type="button" aria-expanded="false" id="jooa11y-toggle" aria-describedby="jooa11y-notification-badge" aria-label="${Lang._("MAIN_TOGGLE_LABEL")}"> ${r} <div id="jooa11y-notification-badge"> <span id="jooa11y-notification-count"></span> </div> </button><div id="jooa11y-panel"><div id="jooa11y-outline-panel" role="tabpanel" aria-labelledby="jooa11y-outline-header"> <div id="jooa11y-outline-header" class="jooa11y-header-text"> <h2 tabindex="-1">${Lang._("PAGE_OUTLINE")}</h2> </div> <div id="jooa11y-outline-content"> <ul id="jooa11y-outline-list"></ul> </div><div id="jooa11y-readability-panel"> <div id="jooa11y-readability-content"> <h2 class="jooa11y-header-text-inline">${Lang._("READABILITY")}</h2> <p id="jooa11y-readability-info"></p> <ul id="jooa11y-readability-details"></ul> </div> </div> </div><div id="jooa11y-settings-panel" role="tabpanel" aria-labelledby="jooa11y-settings-header"> <div id="jooa11y-settings-header" class="jooa11y-header-text"> <h2 tabindex="-1">${Lang._("SETTINGS")}</h2> </div> <div id="jooa11y-settings-content"> <ul id="jooa11y-settings-options"> <li> <label id="check-contrast" for="jooa11y-contrast-toggle">${Lang._("CONTRAST")}</label> <button id="jooa11y-contrast-toggle" aria-labelledby="check-contrast" class="jooa11y-settings-switch" aria-pressed="${i?"true":"false"}">${i?Lang._("ON"):Lang._("OFF")}</button> </li> <li> <label id="check-labels" for="jooa11y-labels-toggle">${Lang._("FORM_LABELS")}</label> <button id="jooa11y-labels-toggle" aria-labelledby="check-labels" class="jooa11y-settings-switch" aria-pressed="${o?"true":"false"}">${o?Lang._("ON"):Lang._("OFF")}</button> </li> <li> <label id="check-changerequest" for="jooa11y-links-advanced-toggle">${Lang._("LINKS_ADVANCED")}<span class="jooa11y-badge">AAA</span></label> <button id="jooa11y-links-advanced-toggle" aria-labelledby="check-changerequest" class="jooa11y-settings-switch" aria-pressed="${a?"true":"false"}">${a?Lang._("ON"):Lang._("OFF")}</button> </li> <li> <label id="check-readability" for="jooa11y-readability-toggle">${Lang._("READABILITY")}<span class="jooa11y-badge">AAA</span></label> <button id="jooa11y-readability-toggle" aria-labelledby="check-readability" class="jooa11y-settings-switch" aria-pressed="${s?"true":"false"}">${s?Lang._("ON"):Lang._("OFF")}</button> </li> <li> <label id="dark-mode" for="jooa11y-theme-toggle">${Lang._("DARK_MODE")}</label> <button id="jooa11y-theme-toggle" aria-labelledby="dark-mode" class="jooa11y-settings-switch"></button> </li> </ul> </div> </div><div id="jooa11y-panel-alert"> <div class="jooa11y-header-text"> <button id="jooa11y-close-alert" class="jooa11y-close-btn" aria-label="${Lang._("ALERT_CLOSE")}" aria-describedby="jooa11y-alert-heading jooa11y-panel-alert-text"></button> <h2 id="jooa11y-alert-heading">${Lang._("ALERT_TEXT")}</h2> </div> <p id="jooa11y-panel-alert-text"></p> <div id="jooa11y-panel-alert-preview"></div> </div><div id="jooa11y-panel-content"> <button id="jooa11y-cycle-toggle" type="button" aria-label="${Lang._("SHORTCUT_SR")}"> <div class="jooa11y-panel-icon"></div> </button> <div id="jooa11y-panel-text"><p id="jooa11y-status" aria-live="polite"></p></div> </div><div id="jooa11y-panel-controls" role="tablist" aria-orientation="horizontal"> <button type="button" role="tab" aria-expanded="false" id="jooa11y-outline-toggle" aria-controls="jooa11y-outline-panel"> ${Lang._("SHOW_OUTLINE")} </button> <button type="button" role="tab" aria-expanded="false" id="jooa11y-settings-toggle" aria-controls="jooa11y-settings-panel"> ${Lang._("SHOW_SETTINGS")} </button> <div style="width:35px"></div> </div></div>`,document.body.append(n),this.settingPanelToggles(),this.jooa11yMainToggle(),this.sanitizeHTMLandComputeARIA(),this.initializeJumpToIssueTooltip()}jooa11yMainToggle(){const e=document.getElementById("jooa11y-toggle");e.addEventListener("click",r=>{localStorage.getItem("jooa11y-remember-panel")==="Opened"?(localStorage.setItem("jooa11y-remember-panel","Closed"),e.classList.remove("jooa11y-on"),e.setAttribute("aria-expanded","false"),this.resetAll(),this.updateBadge(),r.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",r.preventDefault())}),localStorage.getItem("jooa11y-remember-panel")==="Opened"&&(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=r=>{r=r||window.event;var n=!1;if("key"in r?n=r.key==="Escape"||r.key==="Esc":n=r.keyCode===27,n&&document.getElementById("jooa11y-panel").classList.contains("jooa11y-active")&&(e.setAttribute("aria-expanded","false"),e.classList.remove("jooa11y-on"),e.click(),this.resetAll()),r.altKey&&r.code=="KeyA"){const i=document.getElementById("jooa11y-toggle");i.click(),i.focus(),r.preventDefault()}}}sanitizeHTMLandComputeARIA(){this.computeTextNodeWithImage=function(e){const r=Array.from(e.querySelectorAll("img"));let n="";if(r.length===0&&e.textContent.trim().length>1)n=e.textContent.trim();else if(r.length&&e.textContent.trim().length===0){let i=r[0].getAttribute("alt");!i||i===" "?n=" ":i!==void 0&&(n=i)}else r.length&&e.textContent.trim().length&&(r.forEach(i=>{i.insertAdjacentHTML("afterend"," <span class='jooa11y-clone-image-text' aria-hidden='true'>"+r[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 r=e.getAttribute("aria-labelledby").split(/\s+/);if(r.length>0){let n="";return r.forEach(i=>{document.querySelector("#"+i)===null?n+=" ":n+=document.querySelector("#"+i).firstChild.nodeValue+" "}),n}else return""}else{if(Array.from(e.children).filter(r=>r.matches("[aria-label]")).length>0)return Array.from(e.children)[0].getAttribute("aria-label");if(Array.from(e.children).filter(r=>r.matches("[title]")).length>0)return Array.from(e.children)[0].getAttribute("title");if(Array.from(e.children).filter(r=>r.matches("[aria-labelledby]")).length>0){let r=Array.from(e.children)[0].getAttribute("aria-labelledby").split(/\s+/);if(r.length>0){let n="";return r.forEach(i=>{document.querySelector("#"+i)===null?n+=" ":n+=document.querySelector("#"+i).firstChild.nodeValue+" "}),n}else return""}else return"noAria"}}}settingPanelToggles(){const e=document.getElementById("jooa11y-contrast-toggle");e.onclick=async()=>{localStorage.getItem("jooa11y-remember-contrast")==="On"?(localStorage.setItem("jooa11y-remember-contrast","Off"),e.textContent=Lang._("OFF"),e.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-contrast","On"),e.textContent=Lang._("ON"),e.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const r=document.getElementById("jooa11y-labels-toggle");r.onclick=async()=>{localStorage.getItem("jooa11y-remember-labels")==="On"?(localStorage.setItem("jooa11y-remember-labels","Off"),r.textContent=Lang._("OFF"),r.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-labels","On"),r.textContent=Lang._("ON"),r.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const n=document.getElementById("jooa11y-links-advanced-toggle");n.onclick=async()=>{localStorage.getItem("jooa11y-remember-links-advanced")==="On"?(localStorage.setItem("jooa11y-remember-links-advanced","Off"),n.textContent=Lang._("OFF"),n.setAttribute("aria-pressed","false"),this.resetAll(!1),await this.checkAll()):(localStorage.setItem("jooa11y-remember-links-advanced","On"),n.textContent=Lang._("ON"),n.setAttribute("aria-pressed","true"),this.resetAll(!1),await this.checkAll())};const i=document.getElementById("jooa11y-readability-toggle");i.onclick=async()=>{localStorage.getItem("jooa11y-remember-readability")==="On"?(localStorage.setItem("jooa11y-remember-readability","Off"),i.textContent=Lang._("OFF"),i.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"),i.textContent=Lang._("ON"),i.setAttribute("aria-pressed","true"),document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active"),this.resetAll(!1),await this.checkAll())},localStorage.getItem("jooa11y-remember-readability")==="On"&&document.getElementById("jooa11y-readability-panel").classList.add("jooa11y-active");let o=window.matchMedia("(prefers-color-scheme: dark)");const a=document.getElementById("jooa11y-theme-toggle"),s=document.querySelector("html"),l=localStorage.getItem("jooa11y-remember-theme");o.matches?(a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true")):(a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false"));function d(f){f.matches?(s.setAttribute("data-jooa11y-theme","dark"),a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true"),localStorage.setItem("jooa11y-remember-theme","")):(s.setAttribute("data-jooa11y-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false"),localStorage.setItem("jooa11y-remember-theme",""))}o.addEventListener("change",d),a.onclick=async()=>{const f=localStorage.getItem("jooa11y-remember-theme");f==="dark"?(s.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false")):f==="light"?(s.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true")):o.matches?(s.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false")):(s.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","true"))},l==="dark"?(s.setAttribute("data-jooa11y-theme","dark"),localStorage.setItem("jooa11y-remember-theme","dark"),a.textContent=Lang._("ON"),a.setAttribute("aria-pressed","true")):l==="light"&&(s.setAttribute("data-jooa11y-theme","light"),localStorage.setItem("jooa11y-remember-theme","light"),a.textContent=Lang._("OFF"),a.setAttribute("aria-pressed","false"))}initializeJumpToIssueTooltip(){tippy("#jooa11y-cycle-toggle",{content:`<div style="text-align:center">${Lang._("SHORTCUT_TOOLTIP")} »<br><span class="jooa11y-shortcut-icon"></span></div>`,allowHTML:!0,delay:[900,0],trigger:"mouseenter focusin",arrow:!0,placement:"top",theme:"jooa11y-theme",aria:{content:null,expanded:!1},appendTo:document.body})}doInitialCheck(){(localStorage.getItem("jooa11y-remember-panel")==="Closed"||!localStorage.getItem("jooa11y-remember-panel"))&&(this.panelActive=!0,this.checkAll())}checkAll=async()=>{this.errorCount=0,this.warningCount=0,this.$root=document.querySelector(this.options.checkRoot),this.findElements(),this.checkHeaders(),this.checkLinkText(),this.checkUnderline(),this.checkAltText(),localStorage.getItem("jooa11y-remember-contrast")==="On"&&this.checkContrast(),localStorage.getItem("jooa11y-remember-labels")==="On"&&this.checkLabels(),localStorage.getItem("jooa11y-remember-links-advanced")==="On"&&this.checkLinksAdvanced(),localStorage.getItem("jooa11y-remember-readability")==="On"&&this.checkReadability(),this.checkEmbeddedContent(),this.checkQA(),this.panelActive?this.resetAll():this.updatePanel(),this.initializeTooltips(),this.detectOverflow(),this.nudge(),document.getElementsByClassName("jooa11y-on").length||this.updateBadge()};resetAll(e=!0){this.panelActive=!1,this.clearEverything();const r=document.getElementById("jooa11y-outline-toggle"),n=r.cloneNode(!0);r.parentNode.replaceChild(n,r);const i=document.getElementById("jooa11y-settings-toggle"),o=i.cloneNode(!0);i.parentNode.replaceChild(o,i),document.querySelectorAll(".jooa11y-error-border").forEach(d=>d.classList.remove("jooa11y-error-border")),document.querySelectorAll(".jooa11y-error-text").forEach(d=>d.classList.remove("jooa11y-error-text")),document.querySelectorAll(".jooa11y-warning-border").forEach(d=>d.classList.remove("jooa11y-warning-border")),document.querySelectorAll(".jooa11y-warning-text").forEach(d=>d.classList.remove("jooa11y-warning-text")),document.querySelectorAll("p").forEach(d=>d.classList.remove("jooa11y-fake-list")),document.querySelectorAll(".jooa11y-warning-uppercase").forEach(d=>d.outerHTML=d.innerHTML),document.querySelectorAll(".jooa11y-good-border").forEach(d=>d.classList.remove("jooa11y-good-border")),document.querySelectorAll(".jooa11y-good-text").forEach(d=>d.classList.remove("jooa11y-good-text")),document.querySelectorAll(` .jooa11y-instance, .jooa11y-instance-inline, .jooa11y-heading-label, #jooa11y-outline-list li, .jooa11y-readability-period, #jooa11y-readability-info span, #jooa11y-readability-details li, .jooa11y-clone-image-text `).forEach(d=>d.parentNode.removeChild(d)),document.querySelectorAll(".jooa11y-overflow").forEach(d=>d.classList.remove("jooa11y-overflow")),document.querySelectorAll(".jooa11y-fake-heading").forEach(d=>d.classList.remove("jooa11y-fake-heading")),document.querySelectorAll(".jooa11y-pulse-border").forEach(d=>d.classList.remove("jooa11y-pulse-border")),document.querySelector("#jooa11y-panel-alert").classList.remove("jooa11y-active");for(var s=document.querySelector("#jooa11y-panel-alert-text");s.firstChild;)s.removeChild(s.firstChild);for(var l=document.querySelector("#jooa11y-status");l.firstChild;)l.removeChild(l.firstChild);e&&document.querySelector("#jooa11y-panel").classList.remove("jooa11y-active")}clearEverything(){}initializeTooltips(){tippy(".jooa11y-btn",{interactive:!0,trigger:"mouseenter click focusin",arrow:!0,delay:[200,0],theme:"jooa11y-theme",placement:"bottom",allowHTML:!0,aria:{content:"describedby"},appendTo:document.body})}detectOverflow(){const e=(n,i,o)=>{for(;n!==null;){if(window.getComputedStyle(n).getPropertyValue(i)===o)return n;n=n.parentElement}return null};document.querySelectorAll(".jooa11y-btn").forEach(function(n){const i=e(n,"overflow","hidden");i!==null&&i.classList.add("jooa11y-overflow")})}nudge=()=>{document.querySelectorAll(".jooa11y-instance, .jooa11y-instance-inline").forEach(r=>{const n=r.nextElementSibling;n!==null&&(n.classList.contains("jooa11y-instance")||n.classList.contains("jooa11y-instance-inline"))&&n.querySelector("button").setAttribute("style","margin: -10px -20px !important;")})};updateBadge(){let e=this.errorCount+this.warningCount;const r=document.getElementById("jooa11y-notification-badge");e===0?r.style.display="none":(r.style.display="flex",document.getElementById("jooa11y-notification-count").innerHTML=Lang.sprintf("PANEL_STATUS_ICON",e))}updatePanel(){this.panelActive=!0,this.errorCount+this.warningCount,this.buildPanel(),this.skipToIssue();const e=document.getElementById("jooa11y-cycle-toggle");e.disabled=!1,e.setAttribute("style","cursor: pointer !important;"),document.getElementById("jooa11y-panel").classList.add("jooa11y-active");const n=document.getElementById("jooa11y-panel-content"),i=document.getElementById("jooa11y-status"),o=document.querySelectorAll(".jooa11y-btn");this.errorCount>0&&this.warningCount>0?(n.setAttribute("class","jooa11y-errors"),i.textContent=Lang.sprintf("PANEL_STATUS_BOTH",this.errorCount,this.warningCount)):this.errorCount>0?(n.setAttribute("class","jooa11y-errors"),i.textContent=Lang.sprintf("PANEL_STATUS_ERRORS",this.errorCount)):this.warningCount>0?(n.setAttribute("class","jooa11y-warnings"),i.textContent=Lang.sprintf("PANEL_STATUS_WARNINGS",this.warningCount)):(n.setAttribute("class","jooa11y-good"),i.textContent=Lang._("PANEL_STATUS_NONE"),o.length===0&&(e.disabled=!0,e.setAttribute("style","cursor: default !important;")))}buildPanel=()=>{const e=document.getElementById("jooa11y-outline-toggle"),r=document.getElementById("jooa11y-outline-panel"),n=document.getElementById("jooa11y-outline-list"),i=document.getElementById("jooa11y-settings-toggle"),o=document.getElementById("jooa11y-settings-panel"),a=document.getElementById("jooa11y-settings-content"),s=document.querySelectorAll(".jooa11y-heading-label");e.addEventListener("click",()=>{e.getAttribute("aria-expanded")==="true"?(e.classList.remove("jooa11y-outline-active"),r.classList.remove("jooa11y-active"),e.textContent=Lang._("SHOW_OUTLINE"),e.setAttribute("aria-expanded","false"),localStorage.setItem("jooa11y-remember-outline","Closed")):(e.classList.add("jooa11y-outline-active"),r.classList.add("jooa11y-active"),e.textContent=Lang._("HIDE_OUTLINE"),e.setAttribute("aria-expanded","true"),localStorage.setItem("jooa11y-remember-outline","Opened")),document.querySelector("#jooa11y-outline-header > h2").focus(),s.forEach(b=>b.classList.toggle("jooa11y-label-visible")),o.classList.remove("jooa11y-active"),i.classList.remove("jooa11y-settings-active"),i.setAttribute("aria-expanded","false"),i.textContent=Lang._("SHOW_SETTINGS"),n.clientHeight>250&&n.setAttribute("tabindex","0")}),localStorage.getItem("jooa11y-remember-outline")==="Opened"&&(e.classList.add("jooa11y-outline-active"),r.classList.add("jooa11y-active"),e.textContent=Lang._("HIDE_OUTLINE"),e.setAttribute("aria-expanded","true"),s.forEach(b=>b.classList.toggle("jooa11y-label-visible")),n.clientHeight>250&&n.setAttribute("tabindex","0")),i.addEventListener("click",()=>{i.getAttribute("aria-expanded")==="true"?(i.classList.remove("jooa11y-settings-active"),o.classList.remove("jooa11y-active"),i.textContent=Lang._("SHOW_SETTINGS"),i.setAttribute("aria-expanded","false")):(i.classList.add("jooa11y-settings-active"),o.classList.add("jooa11y-active"),i.textContent=Lang._("HIDE_SETTINGS"),i.setAttribute("aria-expanded","true")),document.querySelector("#jooa11y-settings-header > h2").focus(),r.classList.remove("jooa11y-active"),e.classList.remove("jooa11y-outline-active"),e.setAttribute("aria-expanded","false"),e.textContent=Lang._("SHOW_OUTLINE"),s.forEach(b=>b.classList.remove("jooa11y-label-visible")),localStorage.setItem("jooa11y-remember-outline","Closed"),a.clientHeight>350&&a.setAttribute("tabindex","0")}),document.getElementById("jooa11y-panel-controls").addEventListener("keydown",function(b){const h=document.querySelectorAll("#jooa11y-outline-toggle[role=tab], #jooa11y-settings-toggle[role=tab]");if(b.key==="ArrowRight"){for(let g=0;g<h.length;g++)if(h[g].getAttribute("aria-expanded")==="true"||h[g].getAttribute("aria-expanded")==="false"){h[g+1].focus(),b.preventDefault();break}}if(b.key==="ArrowDown"){for(let g=0;g<h.length;g++)if(h[g].getAttribute("aria-expanded")==="true"||h[g].getAttribute("aria-expanded")==="false"){h[g+1].focus(),b.preventDefault();break}}if(b.key==="ArrowLeft"){for(let g=h.length-1;g>0;g--)if(h[g].getAttribute("aria-expanded")==="true"||h[g].getAttribute("aria-expanded")==="false"){h[g-1].focus(),b.preventDefault();break}}if(b.key==="ArrowUp"){for(let g=h.length-1;g>0;g--)if(h[g].getAttribute("aria-expanded")==="true"||h[g].getAttribute("aria-expanded")==="false"){h[g-1].focus(),b.preventDefault();break}}});const l=document.getElementById("jooa11y-close-alert"),d=document.getElementById("jooa11y-panel-alert"),f=document.getElementById("jooa11y-panel-alert-text"),y=document.getElementById("jooa11y-cycle-toggle");l.addEventListener("click",()=>{for(d.classList.remove("jooa11y-active");f.firstChild;)f.removeChild(f.firstChild);document.querySelectorAll(".jooa11y-pulse-border").forEach(b=>b.classList.remove("jooa11y-pulse-border")),y.focus()})};skipToIssue=()=>{let e=0;const r=document.querySelectorAll(".jooa11y-btn").length;document.addEventListener("keyup",o=>{(o.altKey&&o.code==="Period"||o.code=="KeyS")&&(i(),o.preventDefault())}),document.getElementById("jooa11y-cycle-toggle").addEventListener("click",o=>{i(),o.preventDefault()});const i=function(){const o=document.querySelectorAll(".jooa11y-btn"),a=document.getElementById("jooa11y-panel-alert"),s=document.getElementById("jooa11y-panel-alert-text"),l=document.getElementById("jooa11y-panel-alert-preview"),d=(h,g,A)=>{for(;h!==null;){if(window.getComputedStyle(h).getPropertyValue(g)===A)return h;h=h.parentElement}return null},f=h=>{let g=h.getBoundingClientRect(),A=window.pageYOffset||document.documentElement.scrollTop;return{top:g.top+A}};let y,b=o[e].offsetTop;if(b===0){let h=d(o[e],"display","none");y=f(h.previousElementSibling).top-50}else y=f(o[e]).top-50;b>=0&&(setTimeout(function(){window.scrollTo({top:y,behavior:"smooth"})},1),o.forEach(function(h){const g=d(h,"display","none");g!==null&&g.previousElementSibling.classList.add("jooa11y-pulse-border")})),o[e].focus(),b===0?(a.classList.add("jooa11y-active"),s.textContent=`${Lang._("PANEL_STATUS_HIDDEN")}`,l.innerHTML=o[e].getAttribute("data-tippy-content")):b<1&&(a.classList.remove("jooa11y-active"),document.querySelectorAll(".jooa11y-pulse-border").forEach(h=>h.classList.remove("jooa11y-pulse-border"))),e+=1,e>=r&&(e=0)}};findElements(){const e=Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, [role='heading'][aria-level]")),r=Array.from(this.$root.querySelectorAll("p"));this.$containerExclusions=Array.from(document.querySelectorAll(this.containerIgnore)),this.$h=e.filter(n=>!this.$containerExclusions.includes(n)),this.$p=r.filter(n=>!this.$containerExclusions.includes(n))}checkHeaders(){let e;this.$h.forEach((n,i)=>{let o=this.computeTextNodeWithImage(n),a=escapeHTML(o),s;n.getAttribute("aria-level")?s=+n.getAttribute("aria-level"):s=+n.tagName.slice(1);let l=n.textContent.trim().length,d=null,f=null;if(s-e>1&&i!==0)d=Lang.sprintf("HEADING_NON_CONSECUTIVE_LEVEL",e,s);else if(n.textContent.trim().length===0)if(n.querySelectorAll("img").length){const A=n.querySelector("img").getAttribute("alt");(A===void 0||A===" "||A==="")&&(d=Lang.sprintf("HEADING_EMPTY_WITH_IMAGE",s),n.classList.add("jooa11y-error-text"))}else d=Lang.sprintf("HEADING_EMPTY",s),n.classList.add("jooa11y-error-text");else i===0&&s!==1&&s!==2?d=Lang._("HEADING_FIRST"):n.textContent.trim().length>170&&(f=`${Lang._("HEADING_LONG")} . ${Lang.sprintf("HEADING_LONG_INFO",l)}`);e=s;let y=`<li class='jooa11y-outline-${s}'> <span class='jooa11y-badge'>${s}</span> <span class='jooa11y-outline-list-item'>${a}</span> </li>`,b=`<li class='jooa11y-outline-${s}'> <span class='jooa11y-badge jooa11y-error-badge'> <span aria-hidden='true'>✗</span> <span class='jooa11y-visually-hidden'>${Lang._("ERROR")}</span> ${s}</span> <span class='jooa11y-outline-list-item jooa11y-red-text jooa11y-bold'>${a}</span> </li>`,h=`<li class='jooa11y-outline-${s}'> <span class='jooa11y-badge jooa11y-warning-badge'> <span aria-hidden='true'>?</span> <span class='jooa11y-visually-hidden'>${Lang._("WARNING")}</span> ${s}</span> <span class='jooa11y-outline-list-item jooa11y-yellow-text jooa11y-bold'>${a}</span> </li>`,g=[];this.options.outlineIgnore&&(g=Array.from(document.querySelectorAll(this.options.outlineIgnore))),g.includes(n)||(n.insertAdjacentHTML("beforeend",`<span class='jooa11y-heading-label'>H${s}</span>`),d!=null&&n.closest("a")?(this.errorCount++,n.classList.add("jooa11y-error-border"),n.closest("a").insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),d,!0)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",b)):d!=null?(this.errorCount++,n.classList.add("jooa11y-error-border"),n.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),d)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",b)):f!=null&&n.closest("a")?(this.warningCount++,n.closest("a").insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),f)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",h)):f!=null?(n.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),f)),document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",h)):(d==null||f==null)&&document.querySelector("#jooa11y-outline-list").insertAdjacentHTML("beforeend",y))}),Array.from(this.$root.querySelectorAll('h1, [role="heading"][aria-level="1"]')).filter(n=>!this.$containerExclusions.includes(n)).length===0&&(this.errorCount++,document.querySelector("#jooa11y-outline-header").insertAdjacentHTML("afterend",`<div class='jooa11y-instance jooa11y-missing-h1'> <span class='jooa11y-badge jooa11y-error-badge'><span aria-hidden='true'>✗</span><span class='jooa11y-visually-hidden'>${Lang._("ERROR")}</span></span> <span class='jooa11y-red-text jooa11y-bold'>${Lang._("PANEL_HEADING_MISSING_ONE")}</span> </div>`),document.querySelector("#jooa11y-container").insertAdjacentHTML("afterend",this.annotateBanner(Lang._("ERROR"),Lang._("HEADING_MISSING_ONE"))))}checkLinkText(){const e=o=>{let a=["http",".asp",".htm",".php",".edu/",".com/",".net/",".org/",".us/",".ca/",".de/",".icu/",".uk/",".ru/",".info/",".top/",".xyz/",".tk/",".cn/",".ga/",".cf/",".nl/",".io/"],s=[null,null,null];return this.options.partialAltStopWords.forEach(l=>{if(o.length===l.length&&o.toLowerCase().indexOf(l)>=0)return s[0]=l,!1}),this.options.warningAltWords.forEach(l=>{if(o.toLowerCase().indexOf(l)>=0)return s[1]=l,!1}),a.forEach(l=>{if(o.toLowerCase().indexOf(l)>=0)return s[2]=l,!1}),s},r=(o,a)=>{const s=o.cloneNode(!0);return Array.from(a?s.querySelectorAll(a):s.children).forEach(d=>{d.parentElement.removeChild(d)}),s},n=Array.from(this.$root.querySelectorAll(this.linkIgnore));Array.from(this.$root.querySelectorAll("a[href]")).filter(o=>!n.includes(o)).forEach(o=>{let a=this.computeAriaLabel(o),s=o.getAttribute("aria-labelledby"),l=o.getAttribute("aria-label"),d=o.getAttribute("title"),f=null,y=null,b=null;if(o.children.length){let g=o.children[0];f=g.getAttribute("aria-labelledby"),y=g.getAttribute("aria-label"),b=g.getAttribute("title")}let h=e(r(o,this.options.linkIgnoreSpan).textContent.trim());if(a==="noAria"&&(a=o.textContent),o.getAttribute("href")&&!o.textContent.trim()){if(!o.querySelectorAll("img").length)if(s||l)o.classList.add("jooa11y-good-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",a),!0));else if(d){let g=d;o.classList.add("jooa11y-good-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",g),!0))}else o.children.length?f||y||b?(o.classList.add("jooa11y-good-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",a),!0))):(this.errorCount++,o.classList.add("jooa11y-error-border"),o.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang.sprintf("LINK_EMPTY_LINK_NO_LABEL"),!0))):(this.errorCount++,o.classList.add("jooa11y-error-border"),o.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang._("LINK_EMPTY"),!0)))}else h[0]!==null?s?o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",a),!0)):l?o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang.sprintf("LINK_LABEL",l),!0)):o.getAttribute("aria-hidden")==="true"&&o.getAttribute("tabindex")==="-1"||(this.errorCount++,o.classList.add("jooa11y-error-text"),o.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),`${Lang.sprintf("LINK_STOPWORD",h[0])} <hr aria-hidden="true"> ${Lang._("LINK_STOPWORD_TIP")}`,!0))):h[1]!==null?(this.warningCount++,o.classList.add("jooa11y-warning-text"),o.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang.sprintf("LINK_BEST_PRACTICES",h[1])} <hr aria-hidden="true"> ${Lang._("LINK_BEST_PRACTICES_DETAILS")}`,!0))):h[2]!=null&&a.length>40&&(this.warningCount++,o.classList.add("jooa11y-warning-text"),o.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang._("LINK_URL")} <hr aria-hidden="true"> ${Lang._("LINK_URL_TIP")}`,!0)))})}checkLinksAdvanced(){const e=Array.from(this.$root.querySelectorAll(this.linkIgnore+", #jooa11y-container a, .jooa11y-exclude")),r=Array.from(this.$root.querySelectorAll("a[href]")).filter(i=>!e.includes(i));let n={};r.forEach(i=>{let o=this.computeAriaLabel(i);o==="noAria"&&(o=i.textContent);const a=i.matches(` a[href$='.pdf'], a[href$='.doc'], a[href$='.zip'], a[href$='.mp3'], a[href$='.txt'], a[href$='.exe'], a[href$='.dmg'], a[href$='.rtf'], a[href$='.pptx'], a[href$='.ppt'], a[href$='.xls'], a[href$='.xlsx'], a[href$='.csv'], a[href$='.mp4'], a[href$='.mov'], a[href$='.avi'] `),s=i.querySelector("img");let l=s&&s.getAttribute("alt")||"",d=o.trim().toLowerCase()+" "+l,f=i.getAttribute("href");o.length!==0&&(n[d]&&d.length!==0?n[f]||(this.warningCount++,i.classList.add("jooa11y-warning-text"),i.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang._("LINK_IDENTICAL_NAME")} <hr aria-hidden="true"> ${Lang.sprintf("LINK_IDENTICAL_NAME_TIP",o)}`,!0))):(n[d]=!0,n[f]=!0));const y=this.options.newWindowPhrases.some(function(h){return o.toLowerCase().indexOf(h)>=0}),b=this.options.fileTypePhrases.some(function(h){return o.toLowerCase().indexOf(h)>=0});i.getAttribute("target")==="_blank"&&!a&&!y&&(this.warningCount++,i.classList.add("jooa11y-warning-text"),i.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang._("NEW_TAB_WARNING")} <hr aria-hidden="true"> ${Lang._("NEW_TAB_WARNING_TIP")}`,!0))),a&&!b&&(this.warningCount++,i.classList.add("jooa11y-warning-text"),i.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang._("FILE_TYPE_WARNING")} <hr aria-hidden="true"> ${Lang._("FILE_TYPE_WARNING_TIP")}`,!0)))})}checkUnderline(){Array.from(this.$root.querySelectorAll("u")).forEach(n=>{this.warningCount++,n.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("TEXT_UNDERLINE_WARNING")} <hr aria-hidden="true"> ${Lang._("TEXT_UNDERLINE_WARNING_TIP")}`,!0))}),Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, p, div, span, li, blockquote")).forEach(n=>{getComputedStyle(n).textDecorationLine==="underline"&&(this.warningCount++,n.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("TEXT_UNDERLINE_WARNING")} <hr aria-hidden="true"> ${Lang._("TEXT_UNDERLINE_WARNING_TIP")}`,!0)))})}checkAltText(){const e=o=>{const a=[".png",".jpg",".jpeg",".gif",".tiff",".svg"];let s=[null,null,null];return a.forEach(l=>{o.toLowerCase().indexOf(l)>=0&&(s[0]=l)}),this.options.suspiciousAltWords.forEach(l=>{o.toLowerCase().indexOf(l)>=0&&(s[1]=l)}),this.options.placeholderAltStopWords.forEach(l=>{o.length===l.length&&o.toLowerCase().indexOf(l)>=0&&(s[2]=l)}),s},r=Array.from(this.$root.querySelectorAll("img")),n=Array.from(this.$root.querySelectorAll(this.imageIgnore));r.filter(o=>!n.includes(o)).forEach(o=>{let a=o.getAttribute("alt");if(a===null)o.closest("a[href]")?o.closest("a[href]").textContent.trim().length>1?(o.classList.add("jooa11y-error-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("MISSING_ALT_LINK_BUT_HAS_TEXT_MESSAGE"),!1,!0))):o.closest("a[href]").textContent.trim().length===0&&(o.classList.add("jooa11y-error-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("MISSING_ALT_LINK_MESSAGE"),!1,!0))):(o.classList.add("jooa11y-error-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("MISSING_ALT_MESSAGE"),!1,!0)));else{let s=escapeHTML(a),l=e(s),d=a.length;if(l[0]!=null&&o.closest("a[href]"))this.errorCount++,o.classList.add("jooa11y-error-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`${Lang.sprintf("LINK_IMAGE_BAD_ALT_MESSAGE",s,l[0])} <hr aria-hidden="true"> ${Lang._("LINK_IMAGE_BAD_ALT_MESSAGE_INFO")}`,!1));else if(l[2]!=null&&o.closest("a[href]"))this.errorCount++,o.classList.add("jooa11y-error-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang.sprintf("LINK_IMAGE_PLACEHOLDER_ALT_MESSAGE",s),!1,!0));else if(l[1]!=null&&o.closest("a[href]"))this.warningCount++,o.classList.add("jooa11y-warning-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang.sprintf("LINK_IMAGE_SUS_ALT_MESSAGE",s,l[1])} <hr aria-hidden="true"> ${Lang.sprintf("LINK_IMAGE_SUS_ALT_MESSAGE_INFO",s)}`,!1));else if(l[0]!=null)this.errorCount++,o.classList.add("jooa11y-error-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`${Lang._("LINK_ALT_HAS_BAD_WORD_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("LINK_ALT_HAS_BAD_WORD_MESSAGE_INFO",l[0],s)}`,!1));else if(l[2]!=null)this.errorCount++,o.classList.add("jooa11y-error-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang.sprintf("LINK_ALT_PLACEHOLDER_MESSAGE",s),!1));else if(l[1]!=null)this.warningCount++,o.classList.add("jooa11y-warning-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang.sprintf("LINK_ALT_HAS_SUS_WORD_MESSAGE",s,l[1])} <hr aria-hidden="true"> ${Lang.sprintf("LINK_ALT_HAS_SUS_WORD_MESSAGE_INFO",s)}`,!1));else if((a===""||a===" ")&&o.closest("a[href]"))o.closest("a[href]").getAttribute("tabindex")==="-1"&&o.closest("a[href]").getAttribute("aria-hidden")==="true"||(o.closest("a[href]").getAttribute("aria-hidden")==="true"?(this.errorCount++,o.classList.add("jooa11y-error-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("LINK_HYPERLINKED_IMAGE_ARIA_HIDDEN"),!1,!0))):o.closest("a[href]").textContent.trim().length===0?(this.errorCount++,o.classList.add("jooa11y-error-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("LINK_IMAGE_LINK_NULL_ALT_NO_TEXT_MESSAGE"),!1,!0))):o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),Lang._("LINK_LINK_HAS_ALT_MESSAGE"),!1,!0)));else if(a.length>250&&o.closest("a[href]"))this.warningCount++,o.classList.add("jooa11y-warning-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("HYPERLINK_ALT_LENGTH_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("HYPERLINK_ALT_LENGTH_MESSAGE_INFO",s,d)}`,!1));else if(a!==""&&o.closest("a[href]")&&o.closest("a[href]").textContent.trim().length===0)this.warningCount++,o.classList.add("jooa11y-warning-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("LINK_IMAGE_LINK_ALT_TEXT_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("LINK_IMAGE_LINK_ALT_TEXT_MESSAGE_INFO",s)}`,!1));else if(a!==""&&o.closest("a[href]")&&o.closest("a[href]").textContent.trim().length>1)this.warningCount++,o.classList.add("jooa11y-warning-border"),o.closest("a[href]").insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("LINK_ANCHOR_LINK_AND_ALT_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("LINK_ANCHOR_LINK_AND_ALT_MESSAGE_INFO",s)}`,!1));else if(a===""||a===" ")if(o.closest("figure")){const f=o.closest("figure").querySelector("figcaption");f!==null&&f.textContent.trim().length>=1&&(this.warningCount++,o.classList.add("jooa11y-warning-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("IMAGE_FIGURE_DECORATIVE")} <hr aria-hidden="true"> ${Lang._("IMAGE_FIGURE_DECORATIVE_INFO")}`,!1,!0)))}else this.warningCount++,o.classList.add("jooa11y-warning-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("LINK_DECORATIVE_MESSAGE"),!1,!0));else if(a.length>250)this.warningCount++,o.classList.add("jooa11y-warning-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("LINK_ALT_TOO_LONG_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("LINK_ALT_TOO_LONG_MESSAGE_INFO",s,d)}`,!1));else if(a!=="")if(o.closest("figure")){const f=o.closest("figure").querySelector("figcaption");f!==null&&f.textContent.trim().toLowerCase===s.trim().toLowerCase&&(this.warningCount++,o.classList.add("jooa11y-warning-border"),o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang.sprintf("IMAGE_FIGURE_DUPLICATE_ALT",s)} <hr aria-hidden="true"> ${Lang._("IMAGE_FIGURE_DECORATIVE_INFO")}`,!1,!0)))}else o.insertAdjacentHTML("beforebegin",this.annotate(Lang._("GOOD"),`${Lang.sprintf("LINK_PASS_ALT",s)}`,!1,!0))}})}checkLabels(){Array.from(this.$root.querySelectorAll("input, select, textarea")).filter(r=>!this.$containerExclusions.includes(r)&&!isElementHidden(r)).forEach(r=>{let n=this.computeAriaLabel(r);const i=r.getAttribute("type");if(!(i==="submit"||i==="button"||i==="hidden")){if(i==="image"){let o=r.getAttribute("alt");(!o||o===" ")&&(r.getAttribute("aria-label")||(this.errorCount++,r.classList.add("jooa11y-error-border"),r.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang._("LABELS_MISSING_IMAGE_INPUT_MESSAGE"),!0))))}else if(i==="reset")this.warningCount++,r.classList.add("jooa11y-warning-border"),r.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang._("LABELS_INPUT_RESET_MESSAGE")} <hr aria-hidden="true"> ${Lang._("LABELS_INPUT_RESET_MESSAGE_TIP")}`,!0));else if(r.getAttribute("aria-label")||r.getAttribute("aria-labelledby")||r.getAttribute("title"))if(r.getAttribute("title")){let o=r.getAttribute("title");this.warningCount++,r.classList.add("jooa11y-warning-border"),r.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang._("LABELS_ARIA_LABEL_INPUT_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("LABELS_ARIA_LABEL_INPUT_MESSAGE_INFO",o)}`,!0))}else this.warningCount++,r.classList.add("jooa11y-warning-border"),r.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang._("LABELS_ARIA_LABEL_INPUT_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("LABELS_ARIA_LABEL_INPUT_MESSAGE_INFO",n)}`,!0));else if(!(r.closest("label")&&r.closest("label").textContent.trim()))if(r.getAttribute("id")&&Array.from(r.parentElement.children).filter(o=>o.nodeName==="LABEL").length){const o=Array.from(r.parentElement.children).filter(s=>s.nodeName==="LABEL");let a=!1;o.forEach(s=>{a||s.getAttribute("for")===r.getAttribute("id")&&(a=!0)}),a||(this.errorCount++,r.classList.add("jooa11y-error-border"),r.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),`${Lang._("LABELS_NO_FOR_ATTRIBUTE_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("LABELS_NO_FOR_ATTRIBUTE_MESSAGE_INFO",r.getAttribute("id"))}`,!0)))}else this.errorCount++,r.classList.add("jooa11y-error-border"),r.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang._("LABELS_MISSING_LABEL_MESSAGE"),!0))}})}checkEmbeddedContent(){const r=Array.from(this.$root.querySelectorAll("iframe, audio, video")).filter(a=>!this.$containerExclusions.includes(a));r.filter(a=>a.matches(this.options.videoContent)).forEach(a=>{let s=a.getElementsByTagName("TRACK");a.tagName==="VIDEO"&&s.length||(this.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("EMBED_VIDEO"))))}),r.filter(a=>a.matches(this.options.audioContent)).forEach(a=>{this.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("EMBED_AUDIO")))}),r.forEach(a=>{a.tagName==="VIDEO"||a.tagName==="AUDIO"||a.getAttribute("aria-hidden")==="true"||a.getAttribute("hidden")!==null||a.style.display==="none"||a.getAttribute("role")==="presentation"||(a.getAttribute("title")===null||a.getAttribute("title")==="")&&(a.getAttribute("aria-label")===null||a.getAttribute("aria-label")==="")&&a.getAttribute("aria-labelledby")===null&&(a.classList.contains("jooa11y-warning-border")&&a.classList.remove("jooa11y-warning-border"),this.errorCount++,a.classList.add("jooa11y-error-border"),a.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("EMBED_MISSING_TITLE"))))}),r.filter(a=>!a.matches(this.options.embeddedContent)).forEach(a=>{a.tagName==="VIDEO"||a.tagName==="AUDIO"||a.getAttribute("aria-hidden")==="true"||a.getAttribute("hidden")!==null||a.style.display==="none"||a.getAttribute("role")==="presentation"||a.getAttribute("tabindex")==="-1"||(this.warningCount++,a.classList.add("jooa11y-warning-border"),a.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("EMBED_GENERAL_WARNING"))))})}checkQA(){(this.options.linksToFlag?Array.from(this.$root.querySelectorAll(this.options.linksToFlag)):[]).filter(u=>!this.$containerExclusions.includes(u)).forEach(u=>{this.errorCount++,u.classList.add("jooa11y-error-text"),u.insertAdjacentHTML("afterend",this.annotate(Lang._("ERROR"),Lang.sprintf("QA_BAD_LINK",u.getAttribute("href")),!0))});let n=Array.from(this.$root.querySelectorAll('a[href$=".pdf"]')).filter(u=>!this.$containerExclusions.includes(u)),i=n[0],o=n.length;n.length>0&&(this.warningCount++,n.forEach(u=>{u.classList.add("jooa11y-warning-text"),u.querySelector("img")&&u.classList.remove("jooa11y-warning-text")}),i.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),Lang.sprintf("QA_PDF_COUNT",o),!0))),Array.from(this.$root.querySelectorAll("h1, h2, h3, h4, h5, h6, p, li:not([class^='jooa11y']), blockquote")).filter(u=>!this.$containerExclusions.includes(u)).forEach(function(u){let E=/(?!<a[^>]*?>)(\b[A-Z][',!:A-Z\s]{15,}|\b[A-Z]{15,}\b)(?![^<]*?<\/a>)/g,I=u.innerHTML;u.innerHTML=I.replace(E,"<span class='jooa11y-warning-uppercase'>$1</span>")});const l=document.querySelectorAll(".jooa11y-warning-uppercase");l.forEach(u=>{u.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),Lang._("QA_UPPERCASE_WARNING"),!0))}),l.length>0&&this.warningCount++,Array.from(this.$root.querySelectorAll("table:not([role='presentation'])")).filter(u=>!this.$containerExclusions.includes(u)).forEach(u=>{let E=u.querySelectorAll("th"),I=u.querySelectorAll("h1, h2, h3, h4, h5, h6");E.length===0&&(this.errorCount++,u.classList.add("jooa11y-error-border"),u.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),Lang._("TABLES_MISSING_HEADINGS")))),I.length>0&&(this.errorCount++,I.forEach(S=>{S.classList.add("jooa11y-error-border"),S.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`${Lang._("TABLES_SEMANTIC_HEADING")} <hr aria-hidden="true"> ${Lang._("TABLES_SEMANTIC_HEADING_INFO")}`))})),E.forEach(S=>{S.textContent.trim().length===0&&(this.errorCount++,S.classList.add("jooa11y-error-border"),S.innerHTML=this.annotate(Lang._("ERROR"),`${Lang._("TABLES_EMPTY_HEADING")} <hr aria-hidden="true"> ${Lang._("TABLES_EMPTY_HEADING_INFO")}`))})});const y=document.querySelector("html").getAttribute("lang");(!y||y.length<2)&&(this.errorCount++,document.getElementById("jooa11y-container").insertAdjacentHTML("afterend",this.annotateBanner(Lang._("ERROR"),Lang._("QA_PAGE_LANGUAGE_MESSAGE")))),Array.from(this.$root.querySelectorAll("strong, em")).filter(u=>!this.$containerExclusions.includes(u)).forEach(u=>{u.textContent.trim().length>200&&(this.warningCount++,u.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),Lang._("QA_BAD_ITALICS"))))}),Array.from(this.$root.querySelectorAll("blockquote")).filter(u=>!this.$containerExclusions.includes(u)).forEach(u=>{let E=u.textContent;E.trim().length<25&&(this.warningCount++,u.classList.add("jooa11y-warning-border"),u.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang.sprintf("QA_BLOCKQUOTE_MESSAGE",E)} <hr aria-hidden="true"> ${Lang._("QA_BLOCKQUOTE_MESSAGE_TIP")}`)))}),this.$p.forEach(u=>{let E=u.innerHTML.indexOf("</strong><br>"),I=u.innerHTML.indexOf("<br></strong>");if(u&&u.textContent.trim().length>=300){let S=u.firstChild;if(S.tagName==="STRONG"&&(I!==-1||E!==-1)){let N=S.textContent;!u.closest("table")&&N.length<=120&&(S.classList.add("jooa11y-fake-heading","jooa11y-warning-border"),u.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang.sprintf("QA_FAKE_HEADING",N)} <hr aria-hidden="true"> ${Lang._("QA_FAKE_HEADING_INFO")}`)))}}if(/^<(strong)>.+<\/\1>$/.test(u.innerHTML.trim())){const S=u.previousElementSibling;let N="";if(S!==null&&(N=S.tagName),!u.closest("table")&&u.textContent.length<=120&&N.charAt(0)!=="H"){let C=u.textContent;u.classList.add("jooa11y-fake-heading","jooa11y-warning-border"),u.firstChild.insertAdjacentHTML("afterend",this.annotate(Lang._("WARNING"),`${Lang.sprintf("QA_FAKE_HEADING",C)} <hr aria-hidden="true"> ${Lang._("QA_FAKE_HEADING_INFO")}`))}}}),this.$root.querySelectorAll(".jooa11y-fake-heading").length>0&&this.warningCount++;const _=this.$root.querySelectorAll("[id]");let T={};_.forEach(u=>{let E=u.id;E&&(T[E]===void 0?T[E]=1:(u.classList.add("sa11y-error-border"),u.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("QA_DUPLICATE_ID")} <hr aria-hidden="true"> ${Lang.sprintf("QA_DUPLICATE_ID_TIP",E)}`,!0))))});let m="",j={b:"a",B:"A",2:"1"},c=/a\.|a\)|A\.|A\)|1\.|1\)|\*\s|-\s|--|•\s|→\s|✓\s|✔\s|✗\s|✖\s|✘\s|❯\s|›\s|»\s/,x=function(u){return u.replace(/^b|^B|^2/,function(E){return j[E]})};this.$p.forEach(u=>{let E=!1,I=u.textContent.substring(0,2);if(I.trim().length>0&&I!==m&&I.match(c)){let S=u.innerHTML.indexOf("<br>");if(S!==-1){let C=u.innerHTML.substring(S+4).trim().substring(0,2);I===x(C)&&(E=!0)}if(!E&&(u.nextElementSibling.nodeName==="P"?u.nextElementSibling:null)){let C=x(u.nextElementSibling.textContent.substring(0,2));I===C&&(E=!0)}E?(this.warningCount++,u.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang.sprintf("QA_SHOULD_BE_LIST",I)} <hr aria-hidden="true"> ${Lang._("QA_SHOULD_BE_LIST_TIP")}`)),u.classList.add("jooa11y-fake-list"),m=I):m=""}else m=""}),this.$root.querySelectorAll(".jooa11y-fake-list").length>0&&this.warningCount++}checkContrast(){const r=Array.from(this.$root.querySelectorAll("* > :not(.jooa11y-heading-label)")).filter(a=>!this.$containerExclusions.includes(a));var n={errors:[],warnings:[]};let i=r,o={parseRgb:function(a){let s,l,d,f,y;if(l=a.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(d=l.slice(1,4),s=f=0;f<=2;s=++f)d[s]=+d[s];d[3]=1}else if(l=a.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(d=l.slice(1,5),s=y=0;y<=3;s=++y)d[s]=+d[s];return d},relativeLuminance:function(a){let s=[];for(let l=0;l<3;l++){let d=a[l]/255;s.push(d<.03928?d/12.92:Math.pow((d+.055)/1.055,2.4))}return .2126*s[0]+.7152*s[1]+.0722*s[2]},contrastRatio:function(a,s){let l=o.relativeLuminance(o.parseRgb(a)),d=o.relativeLuminance(o.parseRgb(s));return(Math.max(l,d)+.05)/(Math.min(l,d)+.05)},getBackground:function(a){let s=getComputedStyle(a),l=s.backgroundColor,d=s.backgroundImage,f=o.parseRgb(l)+"",y=f.split(",");return y[3]<1&&y[3]>0?"alpha":l!=="rgba(0, 0, 0, 0)"&&l!=="transparent"&&d==="none"&&y[3]!=="0"?l:d!=="none"?"image":a.tagName==="HTML"?"rgb(255, 255, 255)":o.getBackground(a.parentNode)},check:function(){n={errors:[],warnings:[]};for(let a=0;a<i.length;a++)(function(s){if(o){let l=getComputedStyle(s),d=l.color,f=l.fill,y=parseInt(l.fontSize),b=y*3/4,h=l.fontWeight,g=s.tagName,A=o.getBackground(s),_=[].reduce.call(s.childNodes,function(x,u){return x+(u.nodeType===3?u.textContent:"")},""),T=_.trim(),m,j,c;g==="SVG"?(m=Math.round(o.contrastRatio(f,A)*100)/100,m<3&&(j={elem:s,ratio:m+":1"},n.errors.push(j))):(T.length||g==="INPUT"||g==="SELECT"||g==="TEXTAREA")&&(A==="image"?(c={elem:s},n.warnings.push(c)):A==="alpha"?(c={elem:s},n.warnings.push(c)):(m=Math.round(o.contrastRatio(d,A)*100)/100,b>=18||b>=14&&h>=700?m<3&&(j={elem:s,ratio:m+":1"},n.errors.push(j)):m<4.5&&(j={elem:s,ratio:m+":1"},n.errors.push(j))))}})(i[a]);return n}};o.check(),n.errors.forEach(a=>{let s=a.elem,l=a.ratio,d=s.cloneNode(!0),f=d.querySelectorAll(".jooa11y-heading-label");for(let b=0;b<f.length;b++)d.removeChild(f[b]);let y=d.textContent;this.errorCount++,s.tagName==="INPUT"?s.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`${Lang._("CONTRAST_ERROR_INPUT_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("CONTRAST_ERROR_INPUT_MESSAGE_INFO",l)}`,!0)):s.insertAdjacentHTML("beforebegin",this.annotate(Lang._("ERROR"),`${Lang.sprintf("CONTRAST_ERROR_MESSAGE",l,y)} <hr aria-hidden="true"> ${Lang.sprintf("CONTRAST_ERROR_MESSAGE_INFO",l,y)}`,!0))}),n.warnings.forEach(a=>{let s=a.elem,l=s.cloneNode(!0),d=l.querySelectorAll(".jooa11y-heading-label");for(let y=0;y<d.length;y++)l.removeChild(d[y]);let f=l.textContent;this.warningCount++,s.insertAdjacentHTML("beforebegin",this.annotate(Lang._("WARNING"),`${Lang._("CONTRAST_WARNING_MESSAGE")} <hr aria-hidden="true"> ${Lang.sprintf("CONTRAST_WARNING_MESSAGE_INFO",f)}`,!0))})}checkReadability(){const e=document.querySelector(this.options.readabilityRoot),n=Array.from(e.querySelectorAll("p, li")).filter(m=>!this.$containerExclusions.includes(m));n.forEach(m=>{let j=m.textContent;j.length>=120&&j.charAt(j.length-1)!=="."&&m.insertAdjacentHTML("beforeend","<span class='jooa11y-readability-period jooa11y-visually-hidden'>.</span>")});function i(m){if(m=m.toLowerCase().replace(".","").replace(` `,""),m.length<=3)return 1;m=m.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/,""),m=m.replace(/^y/,"");let j=m.match(/[aeiouy]{1,2}/g),c=0;return j&&(c=j.length),c}let o=[];for(let m=0;m<n.length;m++){var a=n[m];a.textContent.replace(/ |\n/g,"")!==""&&o.push(a.textContent)}let s=o.join(" ").trim().toString(),l=s.replace(/[.!?-]+/g," ").split(" "),d=0;for(let m=0;m<l.length;m++)l[m]!=0&&(d=d+1);let f=s.split(/[.!?]+/),y=0;for(let m=0;m<f.length;m++)f[m]!==""&&(y=y+1);let b=0,h=0,g=0;for(let m=0;m<l.length;m++)if(l[m]!=0){var A=i(l[m]);A===1&&(h=h+1),A===2&&(g=g+1),b=b+A}let _;this.options.readabilityLang==="en"?_=206.835-1.015*d/y-84.6*b/d:this.options.readabilityLang==="fr"?_=207-1.015*d/y-73.6*b/d:this.options.readabilityLang==="es"&&(_=206.84-1.02*d/y-.6*(100*b/d)),_>100?_=100:_<0&&(_=0);const T=document.getElementById("jooa11y-readability-info");if(s.length===0)T.innerHTML=Lang._("READABILITY_NO_P_OR_LI_MESSAGE");else if(d>30){let m=_.toFixed(1),j=(d/y).toFixed(1),c=Math.round(100*((d-(h+g))/d));m>=0&&m<30?T.innerHTML=`<span>${m}</span> <span class="jooa11y-readability-score">${Lang._("VERY_DIFFICULT_READABILITY")}</span>`:m>31&&m<49?T.innerHTML=`<span>${m}</span> <span class="jooa11y-readability-score">${Lang._("DIFFICULT_READABILITY")}</span>`:m>50&&m<60?T.innerHTML=`<span>${m}</span> <span class="jooa11y-readability-score">${Lang._("FAIRLY_DIFFICULT_READABILITY")}</span>`:T.innerHTML=`<span>${m}</span> <span class="jooa11y-readability-score">${Lang._("GOOD_READABILITY")}</span>`,document.getElementById("jooa11y-readability-details").innerHTML=`<li><span class='jooa11y-bold'>${Lang._("AVG_WORD_PER_SENTENCE")}</span> ${j}</li> <li><span class='jooa11y-bold'>${Lang._("COMPLEX_WORDS")}</span> ${c}%</li> <li><span class='jooa11y-bold'>${Lang._("TOTAL_WORDS")}</span> ${d}</li>`}else T.textContent=Lang._("READABILITY_NOT_ENOUGH_CONTENT_MESSAGE")}annotate(e,r,n=!1){const i=[Lang._("ERROR"),Lang._("WARNING"),Lang._("GOOD")];if(i.indexOf(e)===-1)throw Error(`Invalid type [${e}] for annotation`);const o={[i[0]]:"error",[i[1]]:"warning",[i[2]]:"good"};return r&&{}.toString.call(r)==="[object Function]"&&(r=r()),r=escapeHTML(r),` <div class=${n?"jooa11y-instance-inline":"jooa11y-instance"}> <button type="button" aria-label="${[e]}" class="jooa11y-btn jooa11y-${o[e]}-btn${n?"-text":""}" data-tippy-content="<div lang='${this.options.langCode}'> <div class='jooa11y-header-text'>${[e]}</div> ${r} </div> "> </button> </div>`}annotateBanner(e,r){const n=[Lang._("ERROR"),Lang._("WARNING"),Lang._("GOOD")];if(n.indexOf(e)===-1)throw Error(`Invalid type [${e}] for annotation`);const i={[n[0]]:"error",[n[1]]:"warning",[n[2]]:"good"};return r&&{}.toString.call(r)==="[object Function]"&&(r=r()),`<div class="jooa11y-instance jooa11y-${i[e]}-message-container"> <div role="region" aria-label="${[e]}" class="jooa11y-${i[e]}-message" lang="${this.options.langCode}"> ${r} </div> </div>`}}if(!Joomla)throw new Error("Joomla API is not properly initialised");const stringPrefix="PLG_SYSTEM_JOOA11Y_";Lang.translate=t=>Joomla.Text._(stringPrefix+t,t);const options=Joomla.getOptions("jooa11yOptions");window.addEventListener("load",()=>{new Jooa11y(options).doInitialCheck()});