function t(t,o=!0){const e=t.ownerDocument.defaultView,i=e===window.top;let n=t,r=n.getBoundingClientRect(),l=!1;for(;n.parentElement&&(!r.height||!r.width);)l=!0,n=n.parentElement,r=n.getBoundingClientRect();const a=e.getComputedStyle(n)||{};let s=e.frameElement,h=r,p=h.top+(i?e.pageYOffset:0),c=h.left+(i?e.pageXOffset:0),d=p,g=c;if(s)for(d=h.top,g=h.left,p=h.top,c=h.left;s&&o;){const{frameElement:t,pageYOffset:o,pageXOffset:e}=s.ownerDocument.defaultView,i=s.ownerDocument.defaultView===window.top,n=window.getComputedStyle(s),r=Math.max(parseFloat(n.borderLeftWidth),0),l=Math.max(parseFloat(n.borderTopWidth),0);h=s.getBoundingClientRect(),d+=h.top+l+(i?o:0),g+=h.left+r+(i?e:0),s=t}const m=e.frameElement?{top:d-window.pageYOffset,left:g-window.pageXOffset,height:r.height,width:r.width}:r,f=function(t,o=window.visualViewport||{width:window.innerWidth,height:window.innerWidth}){return{top:t.top+t.height<0,bottom:t.top>o.height,left:t.left+t.width<0,right:t.left>o.width}}(m),u=function(t,o={height:document.documentElement.scrollHeight,width:document.documentElement.scrollWidth}){return{top:t.top+t.height+(window.scrollY||window.pageYOffset)<0,bottom:t.top>o.height,left:t.left+t.width+(window.scrollX||window.pageXOffset)<0,right:t.left>o.width}}(m),b=t=>+t?.replace("px","")||0,{height:w,width:x}=e.visualViewport||{width:e.innerWidth,height:e.innerHeight};return{hidden:l,offViewport:f.top||f.bottom||f.left||f.right,offscreen:u.top||u.bottom||u.left||u.right,offscreenTop:u.top,offscreenBottom:u.bottom,offscreenLeft:u.left,offscreenRight:u.right,fullscreen:d<=0&&g<=0&&r.width>=x&&r.height>=w,top:d,left:g,offsetTop:p,offsetLeft:c,width:r.width,height:r.height,margin:{top:b(a.marginTop),right:b(a.marginRight),bottom:b(a.marginBottom),left:b(a.marginLeft)},border:{top:b(a.borderTopWidth),right:b(a.borderRightWidth),bottom:b(a.borderBottomWidth),left:b(a.borderLeftWidth)},padding:{top:b(a.paddingTop),right:b(a.paddingRight),bottom:b(a.paddingBottom),left:b(a.paddingLeft)}}}const o=new Map,e=t=>1===t.length?t[0]:t;var i={sanitize:t=>l().commons.text.sanitize(t),sanitizeContext:r,isValidLang(t){const o=l();return!!t&&o.utils.isValidLang(t)},hasContent(t){const o=l(t),e=f(o,t);return!!e&&o.commons.dom.hasContentVirtual(e)},getRequiredContext(t){const o=l();return t?o.commons.aria.requiredContext(t):[]},isOffscreen:(...t)=>e(t.map(h)),isHidden:(...t)=>e(t.map(p)),isVisible:(t,o=!1)=>!!t.ownerDocument.defaultView&&e(function(t,o){const e=l(t,o);o&&(e.teardown(),e.setup());return e.commons.dom.isVisible(t,!1,!0)}(t,o)),isSRVisible:(...t)=>e(t.map(c)),name:(...t)=>e(t.map(s)),isOpaque:(...t)=>e(t.map(u)),getRoleType:(...t)=>e(t.map(d)),getRole:(...t)=>e(t.map(g)),getContrast:(...t)=>e(t.map(m)),runContrastAnalysis:t=>async function(t){const o=l();w();try{const e=(await o.run(Array.isArray(t)?t.map(r):r(t),{runOnly:["color-contrast"],restoreScroll:!0,pingWaitTime:5e3,resultTypes:["violations"]}))?.violations?.[0]?.nodes;return e?.map?.((t=>{const o=t.any[0],e=["fgColor","bgColor","contrastRatio","expectedContrastRatio"],i=parseInt(o.data.fontSize.split(" ")[0]),n="bold"===o.data.fontWeight;return{data:{...Object.fromEntries(Object.entries(o.data).filter((([t])=>e.includes(t)))),fontSize:i,isBold:n},selector:t.target}}))||[]}catch(t){console.error(t)}finally{n(document.body)}return[]}(t),isWidgetRole:t=>l().commons.aria.lookupTable.rolesOfType.widget.includes(t),isFocusable:(...t)=>e(t.map(b)),getTabbableElements:t=>function(t){const o=l(t,!0),e=f(o,t);return o.commons.dom.getTabbableElements(e).map((({actualNode:t})=>t))}(t),getFlattenedTree:n,getSource:t=>new(l().utils.DqElement)(t).source,getSelector(t){const o=l();return o._selectorData||(o._selectorData=o.utils.getSelectorData(o.utils.getFlattenedTree())),o.utils.getSelector(t)},getElementStack(t,o=!0){const e=l();return o&&(e.teardown(),e.setup()),e.commons.dom.getElementStack(t)},idrefs:(t,o)=>l(t).commons.dom.idrefs(t,o),table:{isRowHeader:t=>l(t).commons.table.isRowHeader(t),isColumnHeader:t=>l(t).commons.table.isColumnHeader(t),toGrid(t){const o=l(t);return o.teardown(),o.setup(),o.commons.table.toGrid(t)},isDataTable:t=>l(t).commons.table.isDataTable(t),getCellPosition:(t,o)=>l(t).commons.table.getCellPosition(t,o),traverse(t,o,e,i){if(!e[0]?.[0])return;return l(e[0][0]).commons.table.traverse(t,o,e,i)}},setupTrees:function(){w(),o.clear()},cleanupTrees:w,isAxeSetUp:t=>!!l(t)._tree};function n(t){const e=l(),i=e.utils.getFlattenedTree(t.ownerDocument);return o.set(e,i),i}function r(t){if(!t.ownerDocument||t.ownerDocument===document)return t;const o=l();o._selectorData=o.utils.getSelectorData(o.utils.getFlattenedTree());const e=[o.utils.getSelector(t)];let i=t.ownerDocument.defaultView.frameElement;for(;i;)e.unshift(o.utils.getSelector(i)),i=i.contentWindow.parent.frameElement;return e.flat()}function l(t=document.documentElement,e=!1){const i=t.ownerDocument,n=i.defaultView;if(!n)throw new ReferenceError("no context was found for this node");const r=n.axe;if(!r)throw new ReferenceError("axe was not found in this context");const l=o.get(r)?.[0];return(e||!o.has(r)||l&&!r.utils.getNodeFromTree(l,t))&&o.set(r,r.utils.getFlattenedTree(i)),r}function a(t){return!!l(t).utils.getNodeFromTree(t)}function s(t){const o=l(t),e=f(o,t);return e?o.commons.text.accessibleTextVirtual(e):""}function h(t){return l(t).commons.dom.isOffscreen(t)}function p(t){return l(t).commons.utils.isHidden(t)}function c(t){return l(t).commons.dom.isVisible(t,!0,!1)}function d(t){const o=l(t),e=function(t){return l(t).commons.aria.implicitRole(t)}(t),i=o.commons.aria.lookupTable.role[e];return i&&i.type}function g(t){const o=l(t);return a(t)?o.commons.aria.getRole(t):null}function m(t){const o=l(t);let e;try{const i=o.commons.color.getForegroundColor(t),n=o.commons.color.getBackgroundColor(t);e=o.commons.color.getContrast(n,i)}catch(t){console.error(t)}return e}function f(t,e){let i=o.get(t);return i||(i=t.utils.getFlattenedTree(e.ownerDocument),o.set(t,i)),t.utils.getNodeFromTree(i[0],e)}function u(t){return l(t).commons.dom.isOpaque(t)}function b(t){const o=l(t);return a(t)?o.commons.dom.isFocusable(t):void 0}function w(){o.forEach(((t,e)=>{e.teardown(),o.delete(e)}))}const{getRole:x,getContrast:y,name:v,isHidden:M}=i;function L(t){const o=new Map;try{const e=function(t){const o=y(t);if(!o)return;return{name:"Contrast",value:`\n AA ${Math.floor(100*o)/100}\n ${o<4.5?'':''}\n `}}(t),i=function(t){const o=x(t);if(o)return{name:"Role",value:o}}(t),n=i&&function(t){const o=v(t);return{name:"Accessible Text",value:M(t)?"hidden":o||"empty"}}(t);[e,i,n].filter(Boolean).forEach((({name:t,value:e})=>{o.set(t,e)}))}catch(t){console.error(t)}return o}const T=document.createElement("template");T.innerHTML='\n \n \n