e?1:t>=e?0:NaN}function vY(e){return e}function bY(e,t){return"function"==typeof e?e(t):e}const xY=[{seriesType:"bar",seriesFormatter:(e,t)=>{const{seriesOrder:r,series:n}=e,o=dY(e),i=t??[];r.forEach(e=>{const r=n[e].data;if(void 0!==r)r.forEach((t,r)=>{i.length<=r?i.push({[e]:t}):i[r][e]=t});else if(void 0===t)throw new Error([`MUI X: bar series with id='${e}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join("\n"))});const a={};return o.forEach(e=>{const{ids:r,stackingOffset:o,stackingOrder:s}=e,l=oY().keys(r.map(e=>{const t=n[e].dataKey;return void 0===n[e].data&&void 0!==t?t:e})).value((e,t)=>e[t]??0).order(s).offset(o)(i);r.forEach((e,r)=>{const o=n[e].dataKey;a[e]=(0,Yh.A)({layout:"vertical"},n[e],{data:o?t.map(e=>{const t=e[o];return"number"!=typeof t?0:t}):n[e].data,stackedData:l[r].map(([e,t])=>[e,t])})})}),{seriesOrder:r,stackingGroups:o,series:pY(a,e=>null==e?"":e.toLocaleString())}},colorProcessor:(e,t,r)=>{const n="vertical"===e.layout,o=n?t?.colorScale:r?.colorScale,i=n?r?.colorScale:t?.colorScale,a=n?t?.data:r?.data;return i?t=>{const r=e.data[t],n=null===r?e.color:i(r);return null===n?e.color:n}:o&&a?t=>{const r=a[t],n=null===r?e.color:o(r);return null===n?e.color:n}:()=>e.color},xExtremumGetter:e=>Object.keys(e.series).some(t=>"horizontal"===e.series[t].layout)?JG("x")(e):QG(e),yExtremumGetter:e=>Object.keys(e.series).some(t=>"horizontal"===e.series[t].layout)?QG(e):JG("y")(e)},fY,gY,{seriesType:"pie",colorProcessor:e=>t=>e.data[t].color,seriesFormatter:e=>{const{seriesOrder:t,series:r}=e,n={};return t.forEach(e=>{const t=function(){var e=vY,t=yY,r=null,n=kF(0),o=kF(KW),i=kF(0);function a(a){var s,l,c,u,d,p=(a=AF(a)).length,h=0,f=new Array(p),m=new Array(p),g=+n.apply(this,arguments),y=Math.min(KW,Math.max(-KW,o.apply(this,arguments)-g)),v=Math.min(Math.abs(y)/p,i.apply(this,arguments)),b=v*(y<0?-1:1);for(s=0;s0&&(h+=d);for(null!=t?f.sort(function(e,r){return t(m[e],m[r])}):null!=r&&f.sort(function(e,t){return r(a[e],a[t])}),s=0,c=h?(y-p*b)/h:0;s
0?d*c:0)+b,m[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:u,padAngle:v};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:kF(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,r=null,a):t},a.sort=function(e){return arguments.length?(r=e,t=null,a):r},a.startAngle=function(e){return arguments.length?(n="function"==typeof e?e:kF(+e),a):n},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:kF(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:kF(+e),a):i},a}().startAngle(2*Math.PI*(r[e].startAngle??0)/360).endAngle(2*Math.PI*(r[e].endAngle??360)/360).padAngle(2*Math.PI*(r[e].paddingAngle??0)/360).sortValues(((e="none")=>{if("function"==typeof e)return e;switch(e){case"none":default:return null;case"desc":return(e,t)=>t-e;case"asc":return(e,t)=>e-t}})(r[e].sortingValues??"none"))(r[e].data.map(e=>e.value));n[e]=(0,Yh.A)({valueFormatter:e=>e.value.toLocaleString()},r[e],{data:r[e].data.map((r,n)=>(0,Yh.A)({},r,{id:r.id??`auto-generated-pie-id-${e}-${n}`},t[n])).map((t,n)=>(0,Yh.A)({},t,{formattedValue:r[e].valueFormatter?.((0,Yh.A)({},t,{label:bY(t.label,"arc")}),{dataIndex:n})??t.value.toLocaleString()}))})}),{seriesOrder:t,series:n}}}];function wY(e){const t=e??xY,r={},n={},o={},i={},a={},s={};for(let e=0;e({isInitialized:!0,data:wY(r)}),[r]);return(0,i.jsx)(ZZ.Provider,{value:n,children:t})}const AY=(e,t,r)=>{const n="x"===r?kW:"DEFAULT_Y_AXIS_KEY";return[...e?.map((e,t)=>(0,Yh.A)({id:`defaultized-${r}-axis-${t}`},e))??[],...void 0===e||-1===e.findIndex(({id:e})=>e===n)?[{id:n,scaleType:"linear"}]:[]].map(e=>{const n=e.dataKey;if(void 0===n||void 0!==e.data)return e;if(void 0===t)throw new Error(`MUI X: ${r}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return(0,Yh.A)({},e,{data:t.map(e=>e[n])})})},kY=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"];function SY(e){const{children:t,skipAnimation:r}=e,n="undefined"==typeof window||!window?.matchMedia,[o,a]=Xh.useState(n||void 0);BH(()=>{if(n)return;const e=e=>{const t=e.matches||void 0;a(t),yB.assign({skipAnimation:t})},t=window.matchMedia("(prefers-reduced-motion)");return e(t),t?.addEventListener?.("change",e),()=>{t?.removeEventListener?.("change",e)}},[]);const s=Xh.useMemo(()=>({isInitialized:!0,data:{skipAnimation:r||o}}),[o,r]);return(0,i.jsx)(jZ.Provider,{value:s,children:t})}const _Y=Xh.forwardRef(function(e,t){const{children:r,drawingProviderProps:n,seriesProviderProps:o,cartesianProviderProps:a,zAxisContextProps:s,highlightedProviderProps:l,chartsSurfaceProps:c,pluginProviderProps:u,animationProviderProps:d}=((e,t)=>{const{width:r,height:n,series:o,margin:i,xAxis:a,yAxis:s,zAxis:l,colors:c,dataset:u,sx:d,title:p,desc:h,disableAxisListener:f,highlightedItem:m,onHighlightChange:g,plugins:y,children:v,skipAnimation:b}=e,x=(0,Kh.A)(e,kY),w=Xh.useRef(null),C=$x(t,w),[A,k]=((e,t,r)=>[Xh.useMemo(()=>AY(e,r,"x"),[e,r]),Xh.useMemo(()=>AY(t,r,"y"),[t,r])])(a,s,u),S={skipAnimation:b},_={plugins:y};return{children:v,drawingProviderProps:{width:r,height:n,margin:i,svgRef:w},seriesProviderProps:{series:o,colors:c,dataset:u},cartesianProviderProps:{xAxis:A,yAxis:k,dataset:u},zAxisContextProps:{zAxis:l,dataset:u},highlightedProviderProps:{highlightedItem:m,onHighlightChange:g},chartsSurfaceProps:(0,Yh.A)({},x,{width:r,height:n,ref:C,sx:d,title:p,desc:h,disableAxisListener:f}),pluginProviderProps:_,animationProviderProps:S,xAxis:A,yAxis:k}})(e,t);return(0,i.jsx)(jW,(0,Yh.A)({},n,{children:(0,i.jsx)(CY,(0,Yh.A)({},u,{children:(0,i.jsx)(UZ,(0,Yh.A)({},o,{children:(0,i.jsx)(WG,(0,Yh.A)({},a,{children:(0,i.jsx)(UG,(0,Yh.A)({},s,{children:(0,i.jsx)(XF,{children:(0,i.jsx)(YG,(0,Yh.A)({},l,{children:(0,i.jsxs)(KZ,(0,Yh.A)({},c,{children:[(0,i.jsx)(kZ,{}),(0,i.jsx)(SY,(0,Yh.A)({},d,{children:r}))]}))}))})}))}))}))}))}))}),MY=Wg("div",{name:"MuiResponsiveChart",slot:"Container"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}})),jY=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],RY=Xh.forwardRef(function(e,t){const{hasIntrinsicSize:r,chartContainerProps:n,resizableChartContainerProps:o}=((e,t)=>{const{width:r,height:n,resolveSizeBeforeRender:o,margin:i,children:a,series:s,colors:l,dataset:c,desc:u,disableAxisListener:d,highlightedItem:p,onHighlightChange:h,plugins:f,sx:m,title:g,viewBox:y,xAxis:v,yAxis:b,zAxis:x,skipAnimation:w}=e,C=(0,Kh.A)(e,jY),{containerRef:A,width:k,height:S}=((e,t,r)=>{const n=Xh.useRef({displayError:!1,initialCompute:!0,computeRun:0}),o=Xh.useRef(null),[i,a]=Xh.useState(0),[s,l]=Xh.useState(0),c=Xh.useCallback(()=>{const e=o?.current;if(!e)return{};const t=nw(e).getComputedStyle(e),r=Math.floor(parseFloat(t.height))||0,n=Math.floor(parseFloat(t.width))||0;return a(n),l(r),{width:n,height:r}},[]);return Xh.useEffect(()=>{n.current.displayError=!0},[]),ew(()=>{if(!r||!n.current.initialCompute||n.current.computeRun>20)return;const e=c();e.width!==i||e.height!==s?n.current.computeRun+=1:n.current.initialCompute&&(n.current.initialCompute=!1)},[i,s,c,r]),ew(()=>{if(void 0!==e&&void 0!==t)return()=>{};c();const r=o.current;if("undefined"==typeof ResizeObserver)return()=>{};let n;const i=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{c()})});return r&&i.observe(r),()=>{n&&cancelAnimationFrame(n),r&&i.unobserve(r)}},[c,t,e]),{containerRef:o,width:e??i,height:t??s}})(r,n,o);return{hasIntrinsicSize:k&&S,chartContainerProps:{margin:i,children:a,series:s,colors:l,dataset:c,desc:u,disableAxisListener:d,highlightedItem:p,onHighlightChange:h,plugins:f,sx:m,title:g,viewBox:y,xAxis:v,yAxis:b,zAxis:x,skipAnimation:w,width:k,height:S,ref:t},resizableChartContainerProps:(0,Yh.A)({},C,{ownerState:{width:r,height:n},ref:A})}})(e,t);return(0,i.jsx)(MY,(0,Yh.A)({},o,{children:r?(0,i.jsx)(_Y,(0,Yh.A)({},n)):null}))});function EY(e){return ZM("MuiMarkElement",e)}new Set,ZF("MuiMarkElement",["root","highlighted","faded"]);const IY=e=>{const{classes:t,id:r,isFaded:n,isHighlighted:o}=e;return HM({root:["root",`series-${r}`,o&&"highlighted",n&&"faded"]},EY,t)},LY=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function PY(e){const{x:t,y:r,id:n,classes:o,color:a,dataIndex:s,onClick:l,skipAnimation:c,shape:u}=e,d=(0,Kh.A)(e,LY);"circle"!==u&&[`MUI X: The mark element of your line chart have shape "${u}" which is not supported when using \`experimentalRendering=true\`.`,'Only "circle" are supported with `experimentalRendering`.'].join("\n");const p=Gg(),h=KF(),{isFaded:f,isHighlighted:m}=OW({seriesId:n}),{axis:g}=Xh.useContext(UF),y=h$({to:{x:t,y:r},immediate:c}),v={id:n,classes:o,isHighlighted:g.x?.index===s||m,isFaded:f,color:a},b=IY(v);return(0,i.jsx)(T$.circle,(0,Yh.A)({},d,{cx:y.x,cy:y.y,r:5,fill:(p.vars||p).palette.background.paper,stroke:a,strokeWidth:2,className:b.root,onClick:l,cursor:l?"pointer":"unset"},h({type:"line",seriesId:n,dataIndex:s})))}qW(3);const TY={draw(e,t){const r=qW(t/GW);e.moveTo(r,0),e.arc(0,0,r,0,KW)}},OY={draw(e,t){const r=qW(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},DY=qW(1/3),NY=2*DY,zY={draw(e,t){const r=qW(t/NY),n=r*DY;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},FY={draw(e,t){const r=qW(t),n=-r/2;e.rect(n,n,r,r)}},BY=UW(GW/10)/UW(7*GW/10),HY=UW(KW/10)*BY,VY=-$W(KW/10)*BY,$Y={draw(e,t){const r=qW(.8908130915292852*t),n=HY*r,o=VY*r;e.moveTo(0,-r),e.lineTo(n,o);for(let t=1;t<5;++t){const i=KW*t/5,a=$W(i),s=UW(i);e.lineTo(s*r,-a*r),e.lineTo(a*n-s*o,s*n+a*o)}e.closePath()}},WY=qW(3),ZY={draw(e,t){const r=-qW(t/(3*WY));e.moveTo(0,2*r),e.lineTo(-WY*r,-r),e.lineTo(WY*r,-r),e.closePath()}},UY=(qW(3),-.5),qY=qW(3)/2,XY=1/qW(12),GY=3*(XY/2+1),YY=[TY,OY,zY,FY,$Y,ZY,{draw(e,t){const r=qW(t/GY),n=r/2,o=r*XY,i=n,a=r*XY+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(UY*n-qY*o,qY*n+UY*o),e.lineTo(UY*i-qY*a,qY*i+UY*a),e.lineTo(UY*s-qY*l,qY*s+UY*l),e.lineTo(UY*n+qY*o,UY*o-qY*n),e.lineTo(UY*i+qY*a,UY*a-qY*i),e.lineTo(UY*s+qY*l,UY*l-qY*s),e.closePath()}}];function KY(e,t){let r=null,n=PF(o);function o(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"==typeof e?e:kF(e||TY),t="function"==typeof t?t:kF(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:kF(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:kF(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o}function QY(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const JY=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],eK=Wg(T$.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>({fill:(t.vars||t).palette.background.paper,stroke:e.color,strokeWidth:2}));function tK(e){const{x:t,y:r,id:n,classes:o,color:a,shape:s,dataIndex:l,onClick:c,skipAnimation:u}=e,d=(0,Kh.A)(e,JY),p=KF(),{isFaded:h,isHighlighted:f}=OW({seriesId:n}),{axis:m}=Xh.useContext(UF),g=h$({to:{x:t,y:r},immediate:u}),y={id:n,classes:o,isHighlighted:m.x?.index===l||f,isFaded:h,color:a},v=IY(y);return(0,i.jsx)(eK,(0,Yh.A)({},d,{style:{transform:x$([g.x,g.y],(e,t)=>`translate(${e}px, ${t}px)`),transformOrigin:x$([g.x,g.y],(e,t)=>`${e}px ${t}px`)},ownerState:y,className:v.root,d:KY(YY[QY(s)])(),onClick:c,cursor:c?"pointer":"unset"},p({type:"line",seriesId:n,dataIndex:l})))}const rK=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function nK(e){const{slots:t,slotProps:r,skipAnimation:n,onItemClick:o,experimentalRendering:a}=e,s=(0,Kh.A)(e,rK),l=RZ(n),c=MZ(),u=zF(),d=EW(),p=RW(),h=t?.mark??(a?PY:tK);if(void 0===c)return null;const{series:f,stackingGroups:m}=c,{xAxis:g,yAxis:y,xAxisIds:v,yAxisIds:b}=u,x=v[0],w=b[0];return(0,i.jsx)("g",(0,Yh.A)({},s,{children:m.flatMap(({ids:e})=>e.map(e=>{const{xAxisId:t,yAxisId:n,xAxisKey:a=x,yAxisKey:s=w,stackedData:c,data:u,showMark:m=!0}=f[e];if(!1===m)return null;const v=t??a,b=n??s,C=BW(g[v].scale),A=y[b].scale,k=g[v].data;if(void 0===k)throw new Error(`MUI X: ${v===kW?"The first `xAxis`":`The x-axis with id "${v}"`} should have data property to be able to display a line plot.`);const S=xW(`${d}-${e}-line-clip`),_=mY(f[e],g[v],y[b]);return(0,i.jsx)("g",{clipPath:`url(#${S})`,children:k?.map((e,t)=>{const r=null==u[t]?null:c[t][1];return{x:C(e),y:null===r?null:A(r),position:e,value:r,index:t}}).filter(({x:e,y:t,index:r,position:n,value:o})=>null!==o&&null!==t&&!!p.isPointInside({x:e,y:t})&&(!0===m||m({x:e,y:t,index:r,position:n,value:o}))).map(({x:t,y:n,index:a})=>(0,i.jsx)(h,(0,Yh.A)({id:e,dataIndex:a,shape:"circle",color:_(a),x:t,y:n,skipAnimation:l,onClick:o&&(t=>o(t,{type:"line",seriesId:e,dataIndex:a}))},r?.mark),`${e}-${a}`))},e)}))}))}function oK(e){return ZM("MuiChartsAxis",e)}const iK=ZF("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),aK=Wg("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${iK.tickLabel}`]:(0,Yh.A)({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${iK.label}`]:(0,Yh.A)({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${iK.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${iK.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),sK={widthCache:{},cacheCount:0},lK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},cK=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],uK="mui_measurement_span";function dK(e,t){return cK.indexOf(e)>=0&&t===+t?`${t}px`:t}function pK(e){const t=e.split("").reduce((e,t)=>t===t.toUpperCase()?[...e,"-",t.toLowerCase()]:[...e,t],[]);return t.join("")}let hK;function fK({style:e,needsComputation:t,text:r}){return r.split("\n").map(r=>(0,Yh.A)({text:r},t?((e,t={})=>{if(null==e||"undefined"==typeof window)return{width:0,height:0};const r=`${e}`,n=(e=>Object.keys(e).sort().reduce((t,r)=>`${t}${pK(r)}:${dK(r,e[r])};`,""))(t),o=`${r}-${n}`;if(sK.widthCache[o])return sK.widthCache[o];try{let e=document.getElementById(uK);null===e&&(e=document.createElement("span"),e.setAttribute("id",uK),e.setAttribute("aria-hidden","true"),document.body.appendChild(e));const n=(0,Yh.A)({},lK,t);Object.keys(n).map(t=>(e.style[pK(t)]=dK(t,n[t]),t)),e.textContent=r;const i=e.getBoundingClientRect(),a={width:i.width,height:i.height};return sK.widthCache[o]=a,sK.cacheCount+1>2e3?(sK.cacheCount=0,sK.widthCache={}):sK.cacheCount+=1,hK&&clearTimeout(hK),hK=setTimeout(()=>{e.textContent=""},0),a}catch{return{width:0,height:0}}})(r,e):{width:0,height:0}))}const mK=["x","y","style","text","ownerState"],gK=["angle","textAnchor","dominantBaseline"];function yK(e){const{x:t,y:r,style:n,text:o}=e,a=(0,Kh.A)(e,mK),s=n??{},{angle:l,textAnchor:c,dominantBaseline:u}=s,d=(0,Kh.A)(s,gK),p=Xh.useMemo(()=>fK({style:d,needsComputation:o.includes("\n"),text:o}),[d,o]);let h;switch(u){case"hanging":h=0;break;case"central":h=(p.length-1)/2*-p[0].height;break;default:h=(p.length-1)*-p[0].height}const f=[];return l&&f.push(`rotate(${l}, ${t}, ${r})`),(0,i.jsx)("text",(0,Yh.A)({},a,{transform:f.length>0?f.join(" "):void 0,x:t,y:r,textAnchor:c,dominantBaseline:u,style:d,children:p.map((e,r)=>(0,i.jsx)("tspan",{x:t,dy:`${0===r?h:p[0].height}px`,dominantBaseline:u,children:e.text},r))}))}const vK=["scale","tickNumber","reverse"];const bK=Wg(aK,{name:"MuiChartsXAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xK={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function wK(e){const{xAxisIds:t,xAxis:r}=zF(),n=r[e.axisId??t[0]],{scale:o,tickNumber:a,reverse:s}=n,l=(0,Kh.A)(n,vK),c=function(e=!1){const[t,r]=Xh.useState(!1);return ew(()=>{e||r(!0)},[e]),Xh.useEffect(()=>{e&&r(!0)},[e]),t}(),u=Xg({props:(0,Yh.A)({},l,e),name:"MuiChartsXAxis"}),d=(0,Yh.A)({},xK,u),{position:p,disableLine:h,disableTicks:f,tickLabelStyle:m,label:g,labelStyle:y,tickFontSize:v,labelFontSize:b,tickSize:x,valueFormatter:w,slots:C,slotProps:A,tickInterval:k,tickLabelInterval:S,tickPlacement:_,tickLabelPlacement:M,sx:j}=d,R=Gg(),E=(e=>{const{classes:t,position:r}=e;return HM({root:["root","directionX",r],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},oK,t)})((0,Yh.A)({},d,{theme:R})),{left:I,top:L,width:P,height:T,isPointInside:O}=RW(),D=f?4:x,N="bottom"===p?1:-1,z=C?.axisLine??"line",F=C?.axisTick??"line",B=C?.axisTickLabel??yK,H=C?.axisLabel??yK,V=WF({elementType:B,externalSlotProps:A?.axisTickLabel,additionalProps:{style:(0,Yh.A)({textAnchor:"middle",dominantBaseline:"bottom"===p?"hanging":"auto",fontSize:v??12},m)},className:E.tickLabel,ownerState:{}}),$=function(e,{tickLabelStyle:t,tickLabelInterval:r,reverse:n,isMounted:o}){const i=e.map(e=>{if(!o||void 0===e.formattedValue)return(0,Yh.A)({},e,{width:0,height:0});const r=fK({style:t,needsComputation:!0,text:e.formattedValue});return(0,Yh.A)({},e,{width:Math.max(...r.map(e=>e.width)),height:Math.max(r.length*r[0].height)})});if("function"==typeof r)return i.map((e,t)=>(0,Yh.A)({},e,{skipLabel:!r(e.value,t)}));let a=0,s=0;const l=n?-1:1;return i.map((e,r)=>{const{width:n,offset:o,labelOffset:i,height:c}=e,u=function(e,t,r=0){const n=Math.min(Math.abs(r)%180,Math.abs(Math.abs(r)%180-180)%180);if(n<5)return e;if(n>85)return t;const o=n*Math.PI/180;return o0&&l*a{const a=r??0,s=N*(D+3),l=O({x:t,y:-1},{direction:"x"}),c=O({x:t+a,y:-1},{direction:"x"});return(0,i.jsxs)("g",{transform:`translate(${t}, 0)`,className:E.tickContainer,children:[!f&&l&&(0,i.jsx)(F,(0,Yh.A)({y2:N*D,className:E.tick},A?.axisTick)),void 0!==e&&!n&&c&&(0,i.jsx)(B,(0,Yh.A)({x:a,y:s},V,{text:e.toString()}))]},o)}),g&&(0,i.jsx)("g",{className:E.label,children:(0,i.jsx)(H,(0,Yh.A)({},W,Z,{text:g}))})]})}const CK=Xh.createContext(),AK=()=>Xh.useContext(CK)??!1,kK=["scale","tickNumber"],SK=Wg(aK,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_K={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function MK(e){const{yAxisIds:t,yAxis:r}=zF(),n=r[e.axisId??t[0]],{scale:o,tickNumber:a}=n,s=(0,Kh.A)(n,kK),l=Xg({props:(0,Yh.A)({},s,e),name:"MuiChartsYAxis"}),c=(0,Yh.A)({},_K,l),{position:u,disableLine:d,disableTicks:p,tickFontSize:h,label:f,labelFontSize:m,labelStyle:g,tickLabelStyle:y,tickSize:v,valueFormatter:b,slots:x,slotProps:w,tickPlacement:C,tickLabelPlacement:A,tickInterval:k,tickLabelInterval:S,sx:_}=c,M=Gg(),j=AK(),R=(e=>{const{classes:t,position:r}=e;return HM({root:["root","directionY",r],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},oK,t)})((0,Yh.A)({},c,{theme:M})),{left:E,top:I,width:L,height:P,isPointInside:T}=RW(),O=p?4:v,D=MG({scale:o,tickNumber:a,valueFormatter:b,tickPlacement:C,tickLabelPlacement:A,tickInterval:k}),N="right"===u?1:-1,z={x:N*(h+O+10),y:I+P/2},F=x?.axisLine??"line",B=x?.axisTick??"line",H=x?.axisTickLabel??yK,V=x?.axisLabel??yK,$=!j&&"right"===u||j&&"right"!==u,W=WF({elementType:H,externalSlotProps:w?.axisTickLabel,additionalProps:{style:(0,Yh.A)({fontSize:h,textAnchor:$?"start":"end",dominantBaseline:"central"},y)},className:R.tickLabel,ownerState:{}}),Z=WF({elementType:V,externalSlotProps:w?.axisLabel,additionalProps:{style:(0,Yh.A)({fontSize:m,angle:90*N,textAnchor:"middle",dominantBaseline:"auto"},g)},ownerState:{}}),U=WF({elementType:F,externalSlotProps:w?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),q=o.domain(),X=FW(o);return X&&0===q.length||!X&&q.some(SG)?null:(0,i.jsxs)(SK,{transform:`translate(${"right"===u?E+L:E}, 0)`,className:R.root,sx:_,children:[!d&&(0,i.jsx)(F,(0,Yh.A)({y1:I,y2:I+P,className:R.line},U)),D.map(({formattedValue:e,offset:t,labelOffset:r,value:n},o)=>{const a=N*(O+2),s=r,l="function"==typeof S&&!S?.(n,o);return T({x:-1,y:t},{direction:"y"})?(0,i.jsxs)("g",{transform:`translate(0, ${t})`,className:R.tickContainer,children:[!p&&(0,i.jsx)(B,(0,Yh.A)({x2:N*O,className:R.tick},w?.axisTick)),void 0!==e&&!l&&(0,i.jsx)(H,(0,Yh.A)({x:a,y:s,text:e.toString()},W))]},o):null}),f&&(0,i.jsx)("g",{className:R.label,children:(0,i.jsx)(V,(0,Yh.A)({},z,Z,{text:f}))})]})}const jK=(e,t)=>null==e?null:"object"==typeof e?e.axisId??t??null:e,RK=(e,t,r)=>"object"==typeof e?(0,Yh.A)({},e,{slots:(0,Yh.A)({},t,e?.slots),slotProps:(0,Yh.A)({},r,e?.slotProps)}):{slots:t,slotProps:r};function EK(e){const{topAxis:t,leftAxis:r,rightAxis:n,bottomAxis:o,slots:a,slotProps:s}=e,{xAxis:l,xAxisIds:c,yAxis:u,yAxisIds:d}=zF(),p=jK(void 0===r?d[0]:r,d[0]),h=jK(void 0===o?c[0]:o,c[0]),f=jK(t,c[0]),m=jK(n,d[0]);if(null!==f&&!l[f])throw new Error([`MUI X: id used for top axis "${f}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join("\n"));if(null!==p&&!u[p])throw new Error([`MUI X: id used for left axis "${p}" is not defined.`,`Available ids are: ${d.join(", ")}.`].join("\n"));if(null!==m&&!u[m])throw new Error([`MUI X: id used for right axis "${m}" is not defined.`,`Available ids are: ${d.join(", ")}.`].join("\n"));if(null!==h&&!l[h])throw new Error([`MUI X: id used for bottom axis "${h}" is not defined.`,`Available ids are: ${c.join(", ")}.`].join("\n"));const g=RK(t,a,s),y=RK(o,a,s),v=RK(r,a,s),b=RK(n,a,s);return(0,i.jsxs)(Xh.Fragment,{children:[f&&(0,i.jsx)(wK,(0,Yh.A)({},g,{position:"top",axisId:f})),h&&(0,i.jsx)(wK,(0,Yh.A)({},y,{position:"bottom",axisId:h})),p&&(0,i.jsx)(MK,(0,Yh.A)({},v,{position:"left",axisId:p})),m&&(0,i.jsx)(MK,(0,Yh.A)({},b,{position:"right",axisId:m}))]})}function IK(e){const{children:t,defer:r=!1,fallback:n=null}=e,[o,a]=Xh.useState(!1);return ew(()=>{r||a(!0)},[r]),Xh.useEffect(()=>{r&&a(!0)},[r]),(0,i.jsx)(Xh.Fragment,{children:o?t:n})}function LK(e){if(null===e)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:r}=e,n={width:0,height:0,x:t,y:r,top:r,right:t,bottom:r,left:t};return{getBoundingClientRect:()=>(0,Yh.A)({},n,{toJSON:()=>JSON.stringify(n)})}}function PK(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t{t[r]=NK(e[r])}),t}function zK(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return DK(e)&&DK(t)&&Object.keys(t).forEach(o=>{Xh.isValidElement(t[o])||(0,OK.Hy)(t[o])?n[o]=t[o]:DK(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&DK(e[o])?n[o]=zK(e[o],t[o],r):r.clone?n[o]=DK(t[o])?NK(t[o]):t[o]:n[o]=t[o]}),n}function FK(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const r=/min-width:\s*([0-9.]+)/;return+(e.match(r)?.[1]||0)-+(t.match(r)?.[1]||0)});return r.length?r.reduce((e,r)=>{const n=t[r];return delete e[r],e[r]=n,e},{...t}):t}const BK={borderRadius:4},HK={xs:0,sm:600,md:900,lg:1200,xl:1536},VK={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${HK[e]}px)`},$K={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:HK[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function WK(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||VK;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||VK;return Object.keys(t).reduce((o,i)=>{if(function(e,t){return"@"===t||t.startsWith("@")&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}(e.keys,i)){const e=function(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r)return null;const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}(n.containerQueries?n:$K,i);e&&(o[e]=r(t[i],i))}else if(Object.keys(e.values||HK).includes(i))o[e.up(i)]=r(t[i],i);else{const e=i;o[e]=t[e]}return o},{})}return r(t)}function ZK(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function UK(e){if("string"!=typeof e)throw new Error(function(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>r.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${r} for the full message.`}(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qK(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function XK(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:qK(e,r)||n,t&&(o=t(o,n,e)),o}const GK=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=qK(e.theme,n)||{};return WK(e,i,e=>{let n=XK(a,o,e);return e===n&&"string"==typeof e&&(n=XK(a,o,`${t}${"default"===e?"":UK(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i},YK=function(e,t){return t?zK(e,t,{clone:!1}):e},KK={m:"margin",p:"padding"},QK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},JK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eQ=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!JK[e])return[e];e=JK[e]}const[t,r]=e.split(""),n=KK[t],o=QK[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]})(t)),e[t])}(),tQ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rQ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],nQ=[...tQ,...rQ];function oQ(e,t,r,n){const o=qK(e,t,!0)??r;return"number"==typeof o||"string"==typeof o?e=>"string"==typeof e?e:"string"==typeof o?o.startsWith("var(")&&0===e?0:o.startsWith("var(")&&1===e?o:`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),r=o[t];return e>=0?r:"number"==typeof r?-r:"string"==typeof r&&r.startsWith("var(")?`calc(-1 * ${r})`:`-${r}`}:"function"==typeof o?o:()=>{}}function iQ(e){return oQ(e,"spacing",8)}function aQ(e,t){return"string"==typeof t||null==t?t:e(t)}function sQ(e,t){const r=iQ(e.theme);return Object.keys(e).map(n=>function(e,t,r,n){if(!t.includes(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=aQ(t,r),e),{})}(eQ(r),n);return WK(e,e[r],o)}(e,t,n,r)).reduce(YK,{})}function lQ(e){return sQ(e,tQ)}function cQ(e){return sQ(e,rQ)}function uQ(e){return sQ(e,nQ)}lQ.propTypes={},lQ.filterProps=tQ,cQ.propTypes={},cQ.filterProps=rQ,uQ.propTypes={},uQ.filterProps=nQ;const dQ=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?YK(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};function pQ(e){return"number"!=typeof e?e:`${e}px solid`}function hQ(e,t){return GK({prop:e,themeKey:"borders",transform:t})}const fQ=hQ("border",pQ),mQ=hQ("borderTop",pQ),gQ=hQ("borderRight",pQ),yQ=hQ("borderBottom",pQ),vQ=hQ("borderLeft",pQ),bQ=hQ("borderColor"),xQ=hQ("borderTopColor"),wQ=hQ("borderRightColor"),CQ=hQ("borderBottomColor"),AQ=hQ("borderLeftColor"),kQ=hQ("outline",pQ),SQ=hQ("outlineColor"),_Q=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=oQ(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:aQ(t,e)});return WK(e,e.borderRadius,r)}return null};_Q.propTypes={},_Q.filterProps=["borderRadius"],dQ(fQ,mQ,gQ,yQ,vQ,bQ,xQ,wQ,CQ,AQ,_Q,kQ,SQ);const MQ=e=>{if(void 0!==e.gap&&null!==e.gap){const t=oQ(e.theme,"spacing",8),r=e=>({gap:aQ(t,e)});return WK(e,e.gap,r)}return null};MQ.propTypes={},MQ.filterProps=["gap"];const jQ=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=oQ(e.theme,"spacing",8),r=e=>({columnGap:aQ(t,e)});return WK(e,e.columnGap,r)}return null};jQ.propTypes={},jQ.filterProps=["columnGap"];const RQ=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=oQ(e.theme,"spacing",8),r=e=>({rowGap:aQ(t,e)});return WK(e,e.rowGap,r)}return null};function EQ(e,t){return"grey"===t?t:e}function IQ(e){return e<=1&&0!==e?100*e+"%":e}RQ.propTypes={},RQ.filterProps=["rowGap"],dQ(MQ,jQ,RQ,GK({prop:"gridColumn"}),GK({prop:"gridRow"}),GK({prop:"gridAutoFlow"}),GK({prop:"gridAutoColumns"}),GK({prop:"gridAutoRows"}),GK({prop:"gridTemplateColumns"}),GK({prop:"gridTemplateRows"}),GK({prop:"gridTemplateAreas"}),GK({prop:"gridArea"})),dQ(GK({prop:"color",themeKey:"palette",transform:EQ}),GK({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:EQ}),GK({prop:"backgroundColor",themeKey:"palette",transform:EQ}));const LQ=GK({prop:"width",transform:IQ}),PQ=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const r=e.theme?.breakpoints?.values?.[t]||HK[t];return r?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:IQ(t)}};return WK(e,e.maxWidth,t)}return null};PQ.filterProps=["maxWidth"];const TQ=GK({prop:"minWidth",transform:IQ}),OQ=GK({prop:"height",transform:IQ}),DQ=GK({prop:"maxHeight",transform:IQ}),NQ=GK({prop:"minHeight",transform:IQ}),zQ=(GK({prop:"size",cssProperty:"width",transform:IQ}),GK({prop:"size",cssProperty:"height",transform:IQ}),dQ(LQ,PQ,TQ,OQ,DQ,NQ,GK({prop:"boxSizing"})),{border:{themeKey:"borders",transform:pQ},borderTop:{themeKey:"borders",transform:pQ},borderRight:{themeKey:"borders",transform:pQ},borderBottom:{themeKey:"borders",transform:pQ},borderLeft:{themeKey:"borders",transform:pQ},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pQ},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_Q},color:{themeKey:"palette",transform:EQ},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:EQ},backgroundColor:{themeKey:"palette",transform:EQ},p:{style:cQ},pt:{style:cQ},pr:{style:cQ},pb:{style:cQ},pl:{style:cQ},px:{style:cQ},py:{style:cQ},padding:{style:cQ},paddingTop:{style:cQ},paddingRight:{style:cQ},paddingBottom:{style:cQ},paddingLeft:{style:cQ},paddingX:{style:cQ},paddingY:{style:cQ},paddingInline:{style:cQ},paddingInlineStart:{style:cQ},paddingInlineEnd:{style:cQ},paddingBlock:{style:cQ},paddingBlockStart:{style:cQ},paddingBlockEnd:{style:cQ},m:{style:lQ},mt:{style:lQ},mr:{style:lQ},mb:{style:lQ},ml:{style:lQ},mx:{style:lQ},my:{style:lQ},margin:{style:lQ},marginTop:{style:lQ},marginRight:{style:lQ},marginBottom:{style:lQ},marginLeft:{style:lQ},marginX:{style:lQ},marginY:{style:lQ},marginInline:{style:lQ},marginInlineStart:{style:lQ},marginInlineEnd:{style:lQ},marginBlock:{style:lQ},marginBlockStart:{style:lQ},marginBlockEnd:{style:lQ},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:MQ},rowGap:{style:RQ},columnGap:{style:jQ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:IQ},maxWidth:{style:PQ},minWidth:{transform:IQ},height:{transform:IQ},maxHeight:{transform:IQ},minHeight:{transform:IQ},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}),FQ=zQ,BQ=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=qK(r,s)||{};return c?c(o):WK(o,t,t=>{let r=XK(u,l,t);return t===r&&"string"==typeof t&&(r=XK(u,l,`${e}${"default"===t?"":UK(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const a=o.unstable_sxConfig??FQ;function s(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;const s=function(e={}){const t=e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{});return t||{}}(o.breakpoints),l=Object.keys(s);let c=s;return Object.keys(n).forEach(r=>{const i="function"==typeof(s=n[r])?s(o):s;var s;if(null!=i)if("object"==typeof i)if(a[r])c=YK(c,e(r,i,o,a));else{const e=WK({theme:o},i,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,i)?c=YK(c,e):c[r]=t({sx:i,theme:o,nested:!0})}else c=YK(c,e(r,i,o,a))}),!i&&o.modularCssLayers?{"@layer sx":FK(o,ZK(l,c))}:FK(o,ZK(l,c))}return Array.isArray(n)?n.map(s):s(n)}}();BQ.filterProps=["sx"];const HQ=BQ;function VQ(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||"function"!=typeof r.getColorSchemeSelector)return{};let n=r.getColorSchemeSelector(e);return"&"===n?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function $Q(e){return ZM("MuiChartsTooltip",e)}!function(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...a}=e,s=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return{keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let c=zK({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...BK,...i}},a);c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function r(r,n){r.up=(...r)=>t(e.breakpoints.up(...r),n),r.down=(...r)=>t(e.breakpoints.down(...r),n),r.between=(...r)=>t(e.breakpoints.between(...r),n),r.only=(...r)=>t(e.breakpoints.only(...r),n),r.not=(...r)=>{const o=t(e.breakpoints.not(...r),n);return o.includes("not all and")?o.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):o}}const n={},o=e=>(r(n,e),n);return r(o),{...e,containerQueries:o}}(c),c.applyStyles=VQ,c=t.reduce((e,t)=>zK(e,t),c),c.unstable_sxConfig={...FQ,...a?.unstable_sxConfig},c.unstable_sx=function(e){return HQ({sx:e,theme:this})}}();const WQ=ZF("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),ZQ=Wg("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),borderRadius:e.shape.borderRadius})),UQ=Wg("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(e,t)=>t.table})(({theme:e})=>({borderSpacing:0,"& thead td":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`}})),qQ=Wg("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(e,t)=>t.row})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(1)},"tr:last-of-type& td":{paddingBottom:e.spacing(1)}})),XQ=Wg("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${WQ.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${WQ.valueCell}`]:{paddingLeft:e.spacing(4),color:(e.vars||e).palette.text.primary},"td:first-of-type&":{paddingLeft:e.spacing(2)},"td:last-of-type&":{paddingRight:e.spacing(2)}})),GQ=Wg("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(e,t)=>t.mark,shouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"color"!==e})(({theme:e,color:t})=>({width:e.spacing(1),height:e.spacing(1),borderRadius:"50%",boxShadow:e.shadows[1],background:t,borderColor:(e.vars||e).palette.background.paper,border:`solid ${(e.vars||e).palette.background.paper} ${e.spacing(.25)}`,boxSizing:"content-box"}));function YQ(e){const{series:t,itemData:r,sx:n,classes:o,getColor:a}=e;if(void 0===r.dataIndex||!t.data[r.dataIndex])return null;const{displayedLabel:s,color:l}="pie"===t.type?{color:a(r.dataIndex),displayedLabel:bY(t.data[r.dataIndex].label,"tooltip")}:{color:a(r.dataIndex),displayedLabel:bY(t.label,"tooltip")},c="pie"===t.type?(0,Yh.A)({},t.data[r.dataIndex],{label:bY(t.data[r.dataIndex].label,"tooltip")}):t.data[r.dataIndex],u=t.valueFormatter?.(c,{dataIndex:r.dataIndex});return(0,i.jsx)(ZQ,{sx:n,className:o.paper,children:(0,i.jsx)(UQ,{className:o.table,children:(0,i.jsx)("tbody",{children:(0,i.jsxs)(qQ,{className:o.row,children:[(0,i.jsx)(XQ,{className:TK(o.markCell,o.cell),children:(0,i.jsx)(GQ,{color:l,className:o.mark})}),(0,i.jsx)(XQ,{className:TK(o.labelCell,o.cell),children:s}),(0,i.jsx)(XQ,{className:TK(o.valueCell,o.cell),children:u})]})})})})}function KQ(e){const{isInitialized:t,data:r}=Xh.useContext(ZZ);if(!t)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return e?r.colorProcessors[e]:r.colorProcessors}function QQ(e){const{content:t,itemData:r,sx:n,classes:o,contentProps:a}=e,s=_Z()[r.type].series[r.seriesId],{xAxis:l,yAxis:c,xAxisIds:u,yAxisIds:d}=zF(),{zAxis:p,zAxisIds:h}=Xh.useContext(ZG),f=KQ(),m=s.xAxisId??s.xAxisKey??u[0],g=s.yAxisId??s.yAxisKey??d[0],y=s.zAxisId??s.zAxisKey??h[0],v=f[s.type]?.(s,m&&l[m],g&&c[g],y&&p[y])??(()=>""),b=t??YQ,x=WF({elementType:b,externalSlotProps:a,additionalProps:{itemData:r,series:s,sx:n,classes:o,getColor:v},ownerState:{}});return(0,i.jsx)(b,(0,Yh.A)({},x))}let JQ;const eJ=new class{constructor(){if(this.types=new Set,JQ)throw new Error("You can only create one instance!");JQ=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}};function tJ(e){return eJ.getTypes().has(e)}function rJ(e){return tJ(e.type)}function nJ(e){const{series:t,axis:r,dataIndex:n,axisValue:o,sx:a,classes:s}=e;if(null==n)return null;const l=r.valueFormatter??(e=>"utc"===r.scaleType?function(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}(e):e.toLocaleString());return(0,i.jsx)(ZQ,{sx:a,className:s.paper,children:(0,i.jsxs)(UQ,{className:s.table,children:[null!=o&&!r.hideTooltip&&(0,i.jsx)("thead",{children:(0,i.jsx)(qQ,{children:(0,i.jsx)(XQ,{colSpan:3,children:(0,i.jsx)(Ox,{children:l(o,{location:"tooltip"})})})})}),(0,i.jsx)("tbody",{children:t.filter(rJ).map(({id:e,label:t,valueFormatter:r,data:o,getColor:a})=>{const l=r(o[n]??null,{dataIndex:n});if(null==l)return null;const c=bY(t,"tooltip"),u=a(n);return(0,i.jsxs)(qQ,{className:s.row,children:[(0,i.jsx)(XQ,{className:TK(s.markCell,s.cell),children:u&&(0,i.jsx)(GQ,{color:u,className:s.mark})}),(0,i.jsx)(XQ,{className:TK(s.labelCell,s.cell),children:c?(0,i.jsx)(Ox,{children:c}):null}),(0,i.jsx)(XQ,{className:TK(s.valueCell,s.cell),children:(0,i.jsx)(Ox,{children:l})})]},e)})})]})})}function oJ(e){const{content:t,contentProps:r,axisData:n,sx:o,classes:a}=e,s=n.x&&-1!==n.x.index,l=s?n.x&&n.x.index:n.y&&n.y.index,c=s?n.x&&n.x.value:n.y&&n.y.value,{xAxisIds:u,xAxis:d,yAxisIds:p,yAxis:h}=zF(),{zAxisIds:f,zAxis:m}=Xh.useContext(ZG),g=_Z(),y=KQ(),v=s?u[0]:p[0],b=Xh.useMemo(()=>{const e=[];return Object.keys(g).filter(tJ).forEach(t=>{g[t].seriesOrder.forEach(r=>{const n=g[t].series[r],o=n.xAxisId??n.xAxisKey,i=n.yAxisId??n.yAxisKey,a=s?o:i;if(void 0===a||a===v){const n=g[t].series[r],a=o??u[0],s=i??p[0],l=n.zAxisId??n.zAxisKey??f[0],c=y[t]?.(n,d[a],h[s],l&&m[l])??(()=>"");e.push((0,Yh.A)({},n,{getColor:c}))}})}),e},[v,y,s,g,d,u,h,p,m,f]),x=Xh.useMemo(()=>s?d[v]:h[v],[v,s,d,h]),w=t??nJ,C=WF({elementType:w,externalSlotProps:r,additionalProps:{axisData:n,series:b,axis:x,dataIndex:l,axisValue:c,sx:o,classes:a},ownerState:{}});return(0,i.jsx)(w,(0,Yh.A)({},C))}eJ.addType("bar"),eJ.addType("line"),eJ.addType("scatter");const iJ=Wg(lj,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function aJ(e){const t=Xg({props:e,name:"MuiChartsTooltip"}),{trigger:r="axis",itemContent:n,axisContent:o,slots:a,slotProps:s}=t,l=function(){const e=qZ(),[t,r]=Xh.useState(null);return Xh.useEffect(()=>{const t=e.current;if(null===t)return()=>{};const n=e=>{"mouse"!==e.pointerType&&r(null)},o=e=>{r({x:e.clientX,y:e.clientY,height:e.height,pointerType:e.pointerType})};return t.addEventListener("pointerdown",o),t.addEventListener("pointermove",o),t.addEventListener("pointerup",n),()=>{t.removeEventListener("pointerdown",o),t.removeEventListener("pointermove",o),t.removeEventListener("pointerup",n)}},[e]),t}(),{item:c,axis:u}=Xh.useContext(UF),d="item"===r?c:u,p=function(e,t){if("item"===e)return null!==t;const r=null!==t.x,n=null!==t.y;return r||n}(r,d),h=null!==l&&p,f=(e=>{const{classes:t}=e;return HM({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},$Q,t)})({classes:t.classes}),m=a?.popper??iJ,g=WF({elementType:m,externalSlotProps:s?.popper,additionalProps:{open:h,placement:"mouse"===l?.pointerType?"right-start":"top",anchorEl:LK(l),modifiers:[{name:"offset",options:{offset:[0,"touch"===l?.pointerType?40-l.height:0]}}]},ownerState:{}});return"none"===r?null:(0,i.jsx)(IK,{children:h&&(0,i.jsx)(m,(0,Yh.A)({},g,{className:f.root,children:"item"===r?(0,i.jsx)(QQ,{itemData:d,content:a?.itemContent??n,contentProps:s?.itemContent,sx:{mx:2},classes:f}):(0,i.jsx)(oJ,{axisData:d,content:a?.axisContent??o,contentProps:s?.axisContent,sx:{mx:2},classes:f})}))})}const sJ={bar:e=>{const{seriesOrder:t,series:r}=e;return t.reduce((e,t)=>{const n=bY(r[t].label,"legend");return void 0===n||e.push({id:t,seriesId:t,color:r[t].color,label:n}),e},[])},scatter:e=>{const{seriesOrder:t,series:r}=e;return t.reduce((e,t)=>{const n=bY(r[t].label,"legend");return void 0===n||e.push({id:t,seriesId:t,color:r[t].color,label:n}),e},[])},line:e=>{const{seriesOrder:t,series:r}=e;return t.reduce((e,t)=>{const n=bY(r[t].label,"legend");return void 0===n||e.push({id:t,seriesId:t,color:r[t].color,label:n}),e},[])},pie:e=>{const{seriesOrder:t,series:r}=e;return t.reduce((e,t)=>(r[t].data.forEach(r=>{const n=bY(r.label,"legend");void 0!==n&&e.push({id:r.id,seriesId:t,color:r.color,label:n,itemId:r.id})}),e),[])}};function lJ(e){return ZM("MuiChartsLegend",e)}const cJ=ZF("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]),uJ=["label"];function dJ(e){const t=AK(),{id:r,positionY:n,label:o,positionX:a,innerHeight:s,innerWidth:l,legendWidth:c,color:u,gapX:d,gapY:p,itemMarkHeight:h,itemMarkWidth:f,markGap:m,labelStyle:g,classes:y,onClick:v}=e;return(0,i.jsxs)("g",{className:TK(y?.series,`${y?.series}-${r}`),transform:`translate(${d+(t?c-a:a)} ${p+n})`,children:[(0,i.jsx)("rect",{x:t?-(l+2):-2,y:-h/2-2,width:l+4,height:s+4,fill:"transparent",className:y?.itemBackground,onClick:v,style:{pointerEvents:v?"all":"none",cursor:v?"pointer":"unset"}}),(0,i.jsx)("rect",{className:y?.mark,x:t?-f:0,y:-h/2,width:f,height:h,fill:u,style:{pointerEvents:"none"}}),(0,i.jsx)(yK,{style:(0,Yh.A)({pointerEvents:"none"},g),text:o,x:(t?-1:1)*(f+m),y:0})]})}const pJ=["rotate","dominantBaseline"],hJ=Wg("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({});function fJ(e){const{position:t,direction:r,itemsToDisplay:n,classes:o,itemMarkWidth:a=20,itemMarkHeight:s=20,markGap:l=5,itemGap:c=10,padding:u=10,labelStyle:d,onItemClick:p}=e,h=Gg(),f=RW(),m=Xh.useMemo(()=>(0,Yh.A)({},h.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(h.vars||h).palette.text.primary,lineHeight:1},d),[d,h]),g=Xh.useMemo(()=>(e=>"number"==typeof e?{left:e,right:e,top:e,bottom:e}:(0,Yh.A)({left:0,right:0,top:0,bottom:0},e))(u),[u]),y=Xh.useCallback((e,t={})=>{const r=fK({style:(0,Kh.A)(t,pJ),needsComputation:!0,text:e}),n={innerWidth:a+l+Math.max(...r.map(e=>e.width)),innerHeight:Math.max(s,r.length*r[0].height)};return(0,Yh.A)({},n,{outerWidth:n.innerWidth+c,outerHeight:n.innerHeight+c})},[c,s,a,l]),v=f.left+f.width+f.right,b=f.top+f.height+f.bottom,x=v-g.left-g.right,w=b-g.top-g.bottom,[C,A,k]=Xh.useMemo(()=>function(e,t,r,n,o,i,a){let s=0,l=0,c=0,u=0,d=0;const p=[0];return[e.map(e=>{let{label:h}=e,f=(0,Kh.A)(e,uJ);const m=t(h,r),g=(0,Yh.A)({},f,{label:h,positionX:s,positionY:l,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return"row"===n&&(s+m.innerWidth>o&&(s=0,l+=p[d],d+=1,p.length<=d&&p.push(0),g.positionX=s,g.positionY=l,g.rowIndex=d),c=Math.max(c,s+m.outerWidth),u=Math.max(u,l+m.outerHeight),p[d]=Math.max(p[d],m.outerHeight),s+=m.outerWidth),"column"===n&&(l+m.innerHeight>i&&(s=c+a,l=0,d=0,g.positionX=s,g.positionY=l,g.rowIndex=d),p.length<=d&&p.push(0),c=Math.max(c,s+m.outerWidth),u=Math.max(u,l+m.outerHeight),d+=1,l+=m.outerHeight),g}).map(e=>(0,Yh.A)({},e,{positionY:e.positionY+("row"===n?p[e.rowIndex]/2:e.outerHeight/2)})),c,u]}(n,y,m,r,x,w,c),[n,y,m,r,x,w,c]),S=Xh.useMemo(()=>{switch(t.horizontal){case"left":return g.left;case"right":return v-g.right-A;default:return(v-A)/2}},[t.horizontal,g.left,g.right,v,A]),_=Xh.useMemo(()=>{switch(t.vertical){case"top":return g.top;case"bottom":return b-g.bottom-k;default:return(b-k)/2}},[t.vertical,g.top,g.bottom,b,k]);return(0,i.jsx)(IK,{children:(0,i.jsx)(hJ,{className:o?.root,children:C.map((e,t)=>(0,Xh.createElement)(dJ,(0,Yh.A)({},e,{key:e.id,gapX:S,gapY:_,legendWidth:A,itemMarkHeight:s,itemMarkWidth:a,markGap:l,labelStyle:m,classes:o,onClick:p?e=>p(e,t):void 0})))})})}const mJ=["drawingArea","seriesToDisplay","hidden","onItemClick"];function gJ(e){const{seriesToDisplay:t,hidden:r,onItemClick:n}=e,o=(0,Kh.A)(e,mJ);return r?null:(0,i.jsx)(fJ,(0,Yh.A)({},o,{itemsToDisplay:t,onItemClick:n?(e,r)=>{return n(e,{type:"series",color:(o=t[r]).color,label:o.label,seriesId:o.seriesId,itemId:o.itemId},r);var o}:void 0}))}const yJ=["slots","slotProps"];function vJ(e){const t=Xg({props:e,name:"MuiChartsLegend"}),r=(0,Yh.A)({direction:"row"},t,{position:(0,Yh.A)({horizontal:"middle",vertical:"top"},t.position)}),{slots:n,slotProps:o}=r,a=(0,Kh.A)(r,yJ),s=Gg(),l=(e=>{const{classes:t,direction:r}=e;return HM({root:["root",r],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},lJ,t)})((0,Yh.A)({},r,{theme:s})),c=RW(),u=_Z(),d=function(e){return Object.keys(e).flatMap(t=>{const r=sJ[t];return void 0===r?[]:r(e[t])})}(u),p=n?.legend??gJ,h=WF({elementType:p,externalSlotProps:o?.legend,additionalProps:(0,Yh.A)({},a,{classes:l,drawingArea:c,series:u,seriesToDisplay:d}),ownerState:{}});return(0,i.jsx)(p,(0,Yh.A)({},h))}function bJ(e){return ZM("MuiChartsAxisHighlight",e)}ZF("MuiChartsAxisHighlight",["root"]);const xJ=Wg("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:(0,Yh.A)({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:(0,Yh.A)({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function wJ(e){const{x:t,y:r}=e,{xAxisIds:n,xAxis:o,yAxisIds:a,yAxis:s}=zF(),l=HM({root:["root"]},bJ),c=n[0],u=a[0],d=o[c].scale,p=s[u].scale,{axis:h}=Xh.useContext(UF),f=BW(d),m=BW(p),g=h.x,y=h.y,v="band"===t&&null!==g&&FW(d),b="band"===r&&null!==y&&FW(p);return(0,i.jsxs)(Xh.Fragment,{children:[v&&void 0!==d(g.value)&&(0,i.jsx)(xJ,{d:`M ${d(g.value)-(d.step()-d.bandwidth())/2} ${p.range()[0]} l ${d.step()} 0 l 0 ${p.range()[1]-p.range()[0]} l ${-d.step()} 0 Z`,className:l.root,ownerState:{axisHighlight:"band"}}),b&&void 0!==p(y.value)&&(0,i.jsx)(xJ,{d:`M ${d.range()[0]} ${p(y.value)-(p.step()-p.bandwidth())/2} l 0 ${p.step()} l ${d.range()[1]-d.range()[0]} 0 l 0 ${-p.step()} Z`,className:l.root,ownerState:{axisHighlight:"band"}}),"line"===t&&null!==h.x&&(0,i.jsx)(xJ,{d:`M ${f(h.x.value)} ${p.range()[0]} L ${f(h.x.value)} ${p.range()[1]}`,className:l.root,ownerState:{axisHighlight:"line"}}),"line"===r&&null!==h.y&&(0,i.jsx)(xJ,{d:`M ${d.range()[0]} ${m(h.y.value)} L ${d.range()[1]} ${m(h.y.value)}`,className:l.root,ownerState:{axisHighlight:"line"}})]})}function CJ(e){const{id:t,offset:r}=e,{left:n,top:o,width:a,height:s}=RW(),l=(0,Yh.A)({top:0,right:0,bottom:0,left:0},r);return(0,i.jsx)("clipPath",{id:t,children:(0,i.jsx)("rect",{x:n-l.left,y:o-l.top,width:a+l.left+l.right,height:s+l.top+l.bottom})})}const AJ=["x","y","id","classes","color"];function kJ(e){return ZM("MuiHighlightElement",e)}ZF("MuiHighlightElement",["root"]);const SJ=Wg("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({transform:`translate(${e.x}px, ${e.y}px)`,transformOrigin:`${e.x}px ${e.y}px`,fill:e.color}));function _J(e){const{x:t,y:r,id:n,classes:o,color:a}=e,s=(0,Kh.A)(e,AJ),l={id:n,classes:o,color:a,x:t,y:r},c=(e=>{const{classes:t,id:r}=e;return HM({root:["root",`series-${r}`]},kJ,t)})(l);return(0,i.jsx)(SJ,(0,Yh.A)({pointerEvents:"none",ownerState:l,className:c.root,cx:0,cy:0,r:void 0===s.r?5:s.r},s))}const MJ=["slots","slotProps"];function jJ(e){const{slots:t,slotProps:r}=e,n=(0,Kh.A)(e,MJ),o=MZ(),a=zF(),s=RW(),{axis:l}=Xh.useContext(UF),c=l.x?.index;if(void 0===c)return null;if(void 0===o)return null;const{series:u,stackingGroups:d}=o,{xAxis:p,yAxis:h,xAxisIds:f,yAxisIds:m}=a,g=f[0],y=m[0],v=t?.lineHighlight??_J;return(0,i.jsx)("g",(0,Yh.A)({},n,{children:d.flatMap(({ids:e})=>e.flatMap(e=>{const{xAxisId:t,yAxisId:n,xAxisKey:o=g,yAxisKey:a=y,stackedData:l,data:d,disableHighlight:f}=u[e],m=t??o,b=n??a;if(f||null==d[c])return null;const x=BW(p[m].scale),w=h[b].scale,C=p[m].data;if(void 0===C)throw new Error(`MUI X: ${m===kW?"The first `xAxis`":`The x-axis with id "${m}"`} should have data property to be able to display a line plot.`);const A=x(C[c]),k=w(l[c][1]);if(!s.isPointInside({x:A,y:k}))return null;const S=mY(u[e],p[m],h[b]);return(0,i.jsx)(v,(0,Yh.A)({id:e,color:S(c),x:A,y:k},r?.lineHighlight),`${e}`)}))}))}function RJ(e){return ZM("MuiChartsGrid",e)}const EJ=ZF("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),IJ=Wg("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${EJ.verticalLine}`]:t.verticalLine},{[`&.${EJ.horizontalLine}`]:t.horizontalLine},t.root]})({}),LJ=Wg("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function PJ(e){const{axis:t,drawingArea:r,classes:n}=e,{scale:o,tickNumber:a,tickInterval:s}=t,l=MG({scale:o,tickNumber:a,tickInterval:s});return(0,i.jsx)(Xh.Fragment,{children:l.map(({value:e,offset:t})=>(0,i.jsx)(LJ,{y1:r.top,y2:r.top+r.height,x1:t,x2:t,className:n.verticalLine},`vertical-${e}`))})}function TJ(e){const{axis:t,drawingArea:r,classes:n}=e,{scale:o,tickNumber:a,tickInterval:s}=t,l=MG({scale:o,tickNumber:a,tickInterval:s});return(0,i.jsx)(Xh.Fragment,{children:l.map(({value:e,offset:t})=>(0,i.jsx)(LJ,{y1:t,y2:t,x1:r.left,x2:r.left+r.width,className:n.horizontalLine},`horizontal-${e}`))})}const OJ=["vertical","horizontal"];function DJ(e){const t=Xg({props:e,name:"MuiChartsGrid"}),r=RW(),{vertical:n,horizontal:o}=t,a=(0,Kh.A)(t,OJ),{xAxis:s,xAxisIds:l,yAxis:c,yAxisIds:u}=zF(),d=(({classes:e})=>HM({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},RJ,e))(t),p=c[u[0]],h=s[l[0]];return(0,i.jsxs)(IJ,(0,Yh.A)({},a,{className:d.root,children:[n&&(0,i.jsx)(PJ,{axis:h,drawingArea:r,classes:d}),o&&(0,i.jsx)(TJ,{axis:p,drawingArea:r,classes:d})]}))}function NJ(e){const{onAxisClick:t}=e,r=qZ(),n=_Z(),{axis:o}=Xh.useContext(UF),{xAxisIds:a,xAxis:s,yAxisIds:l,yAxis:c}=zF();return Xh.useEffect(()=>{const e=r.current;if(null===e||!t)return()=>{};const i=e=>{e.preventDefault();const r=o.x&&-1!==o.x.index,i=r?a[0]:l[0],u=r?o.x&&o.x.index:o.y&&o.y.index;if(null==u)return;const d={};Object.keys(n).filter(e=>["bar","line"].includes(e)).forEach(e=>{n[e]?.seriesOrder.forEach(t=>{const o=n[e].series[t],a=o.xAxisId??o.xAxisKey,s=o.yAxisId??o.yAxisKey,l=r?a:s;void 0!==l&&l!==i||(d[t]=o.data[u])})});const p=(r?s:c)[i].data?.[u];t(e,{dataIndex:u,axisValue:p,seriesValues:d})};return e.addEventListener("click",i),()=>{e.removeEventListener("click",i)}},[o.x,o.y,t,n,r,s,a,c,l]),(0,i.jsx)(Xh.Fragment,{})}const zJ=["message"],FJ=Wg("text")(({theme:e})=>(0,Yh.A)({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function BJ(e){const{message:t}=e,r=(0,Kh.A)(e,zJ),{top:n,left:o,height:a,width:s}=RW();return(0,i.jsx)(FJ,(0,Yh.A)({x:o+s/2,y:n+a/2},r,{children:t??"Loading data…"}))}const HJ=["message"],VJ=Wg("text")(({theme:e})=>(0,Yh.A)({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function $J(e){const{message:t}=e,r=(0,Kh.A)(e,HJ),{top:n,left:o,height:a,width:s}=RW();return(0,i.jsx)(VJ,(0,Yh.A)({x:o+s/2,y:n+a/2},r,{children:t??"No data to display"}))}function WJ(e){const t=function(){const e=_Z();return Object.values(e).every(e=>{if(!e)return!0;const{series:t,seriesOrder:r}=e;return r.every(e=>0===t[e].data.length)})}();if(e.loading){const t=e.slots?.loadingOverlay??BJ;return(0,i.jsx)(t,(0,Yh.A)({},e.slotProps?.loadingOverlay))}if(t){const t=e.slots?.noDataOverlay??$J;return(0,i.jsx)(t,(0,Yh.A)({},e.slotProps?.noDataOverlay))}return null}const ZJ=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],UJ=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiLineChart"}),{chartContainerProps:n,axisClickHandlerProps:o,gridProps:a,clipPathProps:s,clipPathGroupProps:l,areaPlotProps:c,linePlotProps:u,markPlotProps:d,overlayProps:p,chartsAxisProps:h,axisHighlightProps:f,lineHighlightPlotProps:m,legendProps:g,tooltipProps:y,children:v}=(e=>{const{xAxis:t,yAxis:r,series:n,width:o,height:i,margin:a,colors:s,dataset:l,sx:c,tooltip:u,onAxisClick:d,onAreaClick:p,onLineClick:h,onMarkClick:f,axisHighlight:m,disableLineItemHighlight:g,legend:y,grid:v,topAxis:b,leftAxis:x,rightAxis:w,bottomAxis:C,children:A,slots:k,slotProps:S,skipAnimation:_,loading:M,highlightedItem:j,onHighlightChange:R,className:E,experimentalMarkRendering:I}=e,L=(0,Kh.A)(e,ZJ),P=`${AW()}-clip-path`,T=(0,Yh.A)({},L,{series:n.map(e=>(0,Yh.A)({disableHighlight:!!g,type:"line"},e)),width:o,height:i,margin:a,colors:s,dataset:l,xAxis:t??[{id:kW,scaleType:"point",data:Array.from({length:Math.max(...n.map(e=>(e.data??l??[]).length))},(e,t)=>t)}],yAxis:r,sx:c,highlightedItem:j,onHighlightChange:R,disableAxisListener:"axis"!==u?.trigger&&"none"===m?.x&&"none"===m?.y&&!d,className:E,skipAnimation:_});return{chartContainerProps:T,axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:v?.vertical,horizontal:v?.horizontal},clipPathProps:{id:P},clipPathGroupProps:{clipPath:`url(#${P})`},areaPlotProps:{slots:k,slotProps:S,onItemClick:p},linePlotProps:{slots:k,slotProps:S,onItemClick:h},markPlotProps:{slots:k,slotProps:S,onItemClick:f,skipAnimation:_,experimentalRendering:I},overlayProps:{slots:k,slotProps:S,loading:M},chartsAxisProps:{topAxis:b,leftAxis:x,rightAxis:w,bottomAxis:C,slots:k,slotProps:S},axisHighlightProps:(0,Yh.A)({x:"line"},m),lineHighlightPlotProps:{slots:k,slotProps:S},legendProps:(0,Yh.A)({},y,{slots:k,slotProps:S}),tooltipProps:(0,Yh.A)({},u,{slots:k,slotProps:S}),children:A}})(r);return(0,i.jsxs)(RY,(0,Yh.A)({ref:t},n,{children:[r.onAxisClick&&(0,i.jsx)(NJ,(0,Yh.A)({},o)),(0,i.jsx)(DJ,(0,Yh.A)({},a)),(0,i.jsxs)("g",(0,Yh.A)({},l,{children:[(0,i.jsx)(IZ,(0,Yh.A)({},c)),(0,i.jsx)(FZ,(0,Yh.A)({},u)),(0,i.jsx)(WJ,(0,Yh.A)({},p)),(0,i.jsx)(wJ,(0,Yh.A)({},f))]})),(0,i.jsx)(EK,(0,Yh.A)({},h)),(0,i.jsx)("g",{"data-drawing-container":!0,children:(0,i.jsx)(nK,(0,Yh.A)({},d))}),(0,i.jsx)(jJ,(0,Yh.A)({},m)),(0,i.jsx)(vJ,(0,Yh.A)({},g)),!r.loading&&(0,i.jsx)(aJ,(0,Yh.A)({},y)),(0,i.jsx)(CJ,(0,Yh.A)({},s)),v]}))}),qJ=()=>(0,i.jsxs)(Sm,{display:"flex",gap:1,children:[(0,i.jsx)(Vw,{variant:"subtitle1",children:(0,pA.__)("Widget opens","pojo-accessibility")}),(0,i.jsx)(xF,{content:(0,i.jsx)(Vw,{variant:"body1",sx:{p:2,maxWidth:"300px"},children:(0,pA.__)("Track how often visitors clicked your accessibility widget to open it so you see how many people are actively seeking accessibility features on your site.","pojo-accessibility")}),children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),XJ=window.wp.date,GJ=e=>{const{dataIndex:t,axis:r,series:n}=e;return n[0].data[t]?(0,i.jsxs)(IP,{sx:{p:2,pb:1},children:[(0,i.jsx)(Vw,{variant:"body2",color:"text.tertiary",children:(0,XJ.dateI18n)("d F",r.data[t],!1)}),(0,i.jsx)(Vw,{variant:"h6",children:n[0].data[t]})]}):null},YJ=()=>(0,i.jsx)(Sm,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",sx:{height:"250px"},children:(0,i.jsx)(Vw,{variant:"body2",color:"text.tertiary",children:(0,pA.__)("No data available","pojo-accessibility")})}),KJ=()=>{const e=Gg(),{stats:t}=Fh(),r=t.dates.reduce((e,t)=>e+Number(t.total),0),n=t.dates.length>0;return(0,i.jsxs)(MD,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)(HD,{title:(0,i.jsx)(qJ,{}),subheader:r>0?(0,i.jsx)(Vw,{variant:"h3",sx:{height:"50px"},children:r.toString()}):null,sx:{pb:0}}),n&&(0,i.jsx)(UJ,{series:[{type:"line",curve:"linear",data:t.dates.map(e=>e.total),color:e.palette.info.main}],xAxis:[{scaleType:"point",data:t.dates.map(e=>e.date),valueFormatter:(e,t)=>"tick"===t.location?(0,XJ.dateI18n)("d.m",e,!1):e}],slots:{axisContent:GJ},tooltip:{trigger:r?"axis":"none"},height:250}),0===t.dates.length&&(0,i.jsx)(YJ,{})]})};function QJ(e){return e.innerRadius}function JJ(e){return e.outerRadius}function e1(e){return e.startAngle}function t1(e){return e.endAngle}function r1(e){return e&&e.padAngle}function n1(e,t,r,n,o,i,a){var s=e-r,l=t-n,c=(a?i:-i)/qW(s*s+l*l),u=c*l,d=-c*s,p=e+u,h=t+d,f=r+u,m=n+d,g=(p+f)/2,y=(h+m)/2,v=f-p,b=m-h,x=v*v+b*b,w=o-i,C=p*m-f*h,A=(b<0?-1:1)*qW(WW(0,w*w*x-C*C)),k=(C*b-v*A)/x,S=(-C*v-b*A)/x,_=(C*b+v*A)/x,M=(-C*v+b*A)/x,j=k-g,R=S-y,E=_-g,I=M-y;return j*j+R*R>E*E+I*I&&(k=_,S=M),{cx:k,cy:S,x01:-u,y01:-d,x11:k*(o/w-1),y11:S*(o/w-1)}}function o1(){var e=QJ,t=JJ,r=kF(0),n=null,o=e1,i=t1,a=r1,s=null,l=PF(c);function c(){var c,u,d=+e.apply(this,arguments),p=+t.apply(this,arguments),h=o.apply(this,arguments)-YW,f=i.apply(this,arguments)-YW,m=HW(f-h),g=f>h;if(s||(s=c=l()),pXW)if(m>KW-XW)s.moveTo(p*$W(h),p*UW(h)),s.arc(0,0,p,h,f,!g),d>XW&&(s.moveTo(d*$W(f),d*UW(f)),s.arc(0,0,d,f,h,g));else{var y,v,b=h,x=f,w=h,C=f,A=m,k=m,S=a.apply(this,arguments)/2,_=S>XW&&(n?+n.apply(this,arguments):qW(d*d+p*p)),M=ZW(HW(p-d)/2,+r.apply(this,arguments)),j=M,R=M;if(_>XW){var E=QW(_/d*UW(S)),I=QW(_/p*UW(S));(A-=2*E)>XW?(w+=E*=g?1:-1,C-=E):(A=0,w=C=(h+f)/2),(k-=2*I)>XW?(b+=I*=g?1:-1,x-=I):(k=0,b=x=(h+f)/2)}var L=p*$W(b),P=p*UW(b),T=d*$W(C),O=d*UW(C);if(M>XW){var D,N=p*$W(x),z=p*UW(x),F=d*$W(w),B=d*UW(w);if(m1?0:e<-1?GW:Math.acos(e)}((H*$+V*W)/(qW(H*H+V*V)*qW($*$+W*W)))/2),U=qW(D[0]*D[0]+D[1]*D[1]);j=ZW(M,(d-U)/(Z-1)),R=ZW(M,(p-U)/(Z+1))}else j=R=0}k>XW?R>XW?(y=n1(F,B,L,P,p,R,g),v=n1(N,z,T,O,p,R,g),s.moveTo(y.cx+y.x01,y.cy+y.y01),RXW&&A>XW?j>XW?(y=n1(T,O,N,z,d,-j,g),v=n1(L,P,F,B,d,-j,g),s.lineTo(y.cx+y.x01,y.cy+y.y01),jt.arc})(({theme:e})=>({stroke:(e.vars||e).palette.background.paper,transition:"opacity 0.2s ease-in, fill 0.2s ease-in, filter 0.2s ease-in"}));function l1(e){const{classes:t,color:r,cornerRadius:n,dataIndex:o,endAngle:a,id:s,innerRadius:l,isFaded:c,isHighlighted:u,onClick:d,outerRadius:p,paddingAngle:h,startAngle:f}=e,m=(0,Kh.A)(e,i1),g={id:s,dataIndex:o,classes:t,color:r,isFaded:c,isHighlighted:u},y=(e=>{const{classes:t,id:r,isFaded:n,isHighlighted:o,dataIndex:i}=e;return HM({root:["root",`series-${r}`,`data-index-${i}`,o&&"highlighted",n&&"faded"]},a1,t)})(g),v=KF();return(0,i.jsx)(s1,(0,Yh.A)({d:x$([f,a,h,l,p,n],(e,t,r,n,o,i)=>o1().cornerRadius(i)({padAngle:r,startAngle:e,endAngle:t,innerRadius:n,outerRadius:o})),visibility:x$([f,a],(e,t)=>e===t?"hidden":"visible"),onClick:d,cursor:d?"pointer":"unset",ownerState:g,className:y.root,fill:g.color,opacity:g.isFaded?.3:1,filter:g.isHighlighted?"brightness(120%)":"none",strokeWidth:1,strokeLinejoin:"round"},m,v({type:"pie",seriesId:s,dataIndex:o})))}const c1={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,cornerRadius:r,startAngle:n,endAngle:o,paddingAngle:i,color:a,isFaded:s})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:r,startAngle:(n+o)/2,endAngle:(n+o)/2,paddingAngle:i,fill:a,opacity:s?.3:1}),leave:({innerRadius:e,startAngle:t,endAngle:r})=>({innerRadius:e,outerRadius:e,startAngle:(t+r)/2,endAngle:(t+r)/2}),enter:({innerRadius:e,outerRadius:t,startAngle:r,endAngle:n})=>({innerRadius:e,outerRadius:t,startAngle:r,endAngle:n}),update:({innerRadius:e,outerRadius:t,cornerRadius:r,startAngle:n,endAngle:o,paddingAngle:i,color:a,isFaded:s})=>({innerRadius:e,outerRadius:t,cornerRadius:r,startAngle:n,endAngle:o,paddingAngle:i,fill:a,opacity:s?.3:1}),config:{tension:120,friction:14,clamp:!0}},u1={keys:e=>e.id,from:({innerRadius:e,outerRadius:t,arcLabelRadius:r,cornerRadius:n,startAngle:o,endAngle:i,paddingAngle:a})=>({innerRadius:e,outerRadius:(e+t)/2,cornerRadius:n,arcLabelRadius:r,startAngle:(o+i)/2,endAngle:(o+i)/2,paddingAngle:a,opacity:0}),leave:({innerRadius:e,startAngle:t,endAngle:r})=>({innerRadius:e,outerRadius:e,arcLabelRadius:e,startAngle:(t+r)/2,endAngle:(t+r)/2,opacity:0}),enter:({innerRadius:e,outerRadius:t,startAngle:r,endAngle:n,arcLabelRadius:o})=>({innerRadius:e,outerRadius:t,startAngle:r,endAngle:n,arcLabelRadius:o,opacity:1}),update:({innerRadius:e,outerRadius:t,cornerRadius:r,startAngle:n,endAngle:o,paddingAngle:i,arcLabelRadius:a})=>({innerRadius:e,outerRadius:t,cornerRadius:r,startAngle:n,endAngle:o,paddingAngle:i,arcLabelRadius:a,opacity:1}),config:{tension:120,friction:14,clamp:!0}};function d1(e){const{id:t,data:r,faded:n,highlighted:o,paddingAngle:i=0,innerRadius:a=0,arcLabelRadius:s,outerRadius:l,cornerRadius:c=0}=e,{isFaded:u,isHighlighted:d}=YF();return Xh.useMemo(()=>r.map((e,r)=>{const p={seriesId:t,dataIndex:r},h=d(p),f=!h&&u(p),m=(0,Yh.A)({additionalRadius:0},f&&n||h&&o||{}),g=Math.max(0,Math.PI*(m.paddingAngle??i)/180),y=Math.max(0,m.innerRadius??a),v=Math.max(0,m.outerRadius??l+m.additionalRadius),b=m.cornerRadius??c,x=m.arcLabelRadius??s??(y+v)/2;return(0,Yh.A)({},e,m,{isFaded:f,isHighlighted:h,paddingAngle:g,innerRadius:y,outerRadius:v,cornerRadius:b,arcLabelRadius:x})}),[c,a,l,i,s,r,n,o,u,d,t])}const p1=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function h1(e){const{slots:t,slotProps:r,innerRadius:n=0,outerRadius:o,cornerRadius:a=0,paddingAngle:s=0,id:l,highlighted:c,faded:u={additionalRadius:-5},data:d,onItemClick:p,skipAnimation:h}=e,f=(0,Kh.A)(e,p1),m=f$(d1({innerRadius:n,outerRadius:o,cornerRadius:a,paddingAngle:s,id:l,highlighted:c,faded:u,data:d}),(0,Yh.A)({},c1,{immediate:h})),{highlightScope:g}=YF();if(0===d.length)return null;const y=t?.pieArc??l1;return(0,i.jsx)("g",(0,Yh.A)({},f,{children:m(({startAngle:e,endAngle:t,paddingAngle:n,innerRadius:o,outerRadius:a,cornerRadius:s},c,u,d)=>(0,i.jsx)(y,(0,Yh.A)({startAngle:e,endAngle:t,paddingAngle:n,innerRadius:o,outerRadius:a,cornerRadius:s,id:l,color:c.color,dataIndex:d,highlightScope:g,isFaded:c.isFaded,isHighlighted:c.isHighlighted,onClick:p&&(e=>{p(e,{type:"pie",seriesId:l,dataIndex:d},c)})},r?.pieArc)))}))}const f1=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function m1(e){return ZM("MuiPieArcLabel",e)}const g1=ZF("MuiPieArcLabel",["root","highlighted","faded"]),y1=Wg(T$.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fill:(e.vars||e).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"})),v1=(e,t)=>(r,n,o,i,a)=>{if(!e)return 0;const[s,l]=o1().cornerRadius(a).centroid({padAngle:o,startAngle:r,endAngle:n,innerRadius:i,outerRadius:i});return"x"===t?s:l};function b1(e){const{id:t,classes:r,color:n,startAngle:o,endAngle:a,paddingAngle:s,arcLabelRadius:l,cornerRadius:c,formattedArcLabel:u,isHighlighted:d,isFaded:p,style:h}=e,f=(0,Kh.A)(e,f1),m=(e=>{const{classes:t,id:r,isFaded:n,isHighlighted:o}=e;return HM({root:["root",`series-${r}`,o&&"highlighted",n&&"faded"]},m1,t)})({id:t,classes:r,color:n,isFaded:p,isHighlighted:d});return(0,i.jsx)(y1,(0,Yh.A)({className:m.root},f,{style:(0,Yh.A)({x:x$([o,a,s,l,c],v1(u,"x")),y:x$([o,a,s,l,c],v1(u,"y"))},h),children:u}))}const x1=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],w1=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],C1=180/Math.PI;function A1(e,t,r){if(!e)return null;if((r.endAngle-r.startAngle)*C1{let{startAngle:o,endAngle:a,paddingAngle:s,innerRadius:l,outerRadius:u,arcLabelRadius:d,cornerRadius:p}=e,h=(0,Kh.A)(e,w1);return(0,i.jsx)(v,(0,Yh.A)({startAngle:o,endAngle:a,paddingAngle:s,innerRadius:l,outerRadius:u,arcLabelRadius:d,cornerRadius:p,style:h,id:c,color:n.color,isFaded:n.isFaded,isHighlighted:n.isHighlighted,formattedArcLabel:A1(t,r,n)},f?.pieArcLabel))})}))}function S1(e,t){if("number"==typeof e)return e;if("100%"===e)return t;if(e.endsWith("%")){const r=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(r))return r*t/100}if(e.endsWith("px")){const t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw new Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function _1(e,t){const{height:r,width:n}=t,{cx:o,cy:i}=e,a=Math.min(n,r)/2;return{cx:S1(o??"50%",n),cy:S1(i??"50%",r),availableRadius:a}}function M1(e){const{skipAnimation:t,slots:r,slotProps:n,onItemClick:o}=e,a=function(){const e=_Z();return Xh.useMemo(()=>e.pie,[e.pie])}(),{left:s,top:l,width:c,height:u}=Xh.useContext(_W),d=RZ(t);if(void 0===a)return null;const{series:p,seriesOrder:h}=a;return(0,i.jsxs)("g",{children:[h.map(e=>{const{innerRadius:t,outerRadius:a,cornerRadius:h,paddingAngle:f,data:m,cx:g,cy:y,highlighted:v,faded:b}=p[e],{cx:x,cy:w,availableRadius:C}=_1({cx:g,cy:y},{width:c,height:u}),A=S1(a??C,C),k=S1(t??0,C);return(0,i.jsx)("g",{transform:`translate(${s+x}, ${l+w})`,children:(0,i.jsx)(h1,{innerRadius:k,outerRadius:A,cornerRadius:h,paddingAngle:f,id:e,data:m,skipAnimation:d,highlighted:v,faded:b,onItemClick:o,slots:r,slotProps:n})},e)}),h.map(e=>{const{innerRadius:t,outerRadius:o,arcLabelRadius:a,cornerRadius:h,paddingAngle:f,arcLabel:m,arcLabelMinAngle:g,data:y,cx:v,cy:b}=p[e],{cx:x,cy:w,availableRadius:C}=_1({cx:v,cy:b},{width:c,height:u}),A=S1(o??C,C),k=S1(t??0,C),S=void 0===a?(A+k)/2:S1(a,C);return(0,i.jsx)("g",{transform:`translate(${s+x}, ${l+w})`,children:(0,i.jsx)(k1,{innerRadius:k,outerRadius:A??C,arcLabelRadius:S,cornerRadius:h,paddingAngle:f,id:e,data:y,skipAnimation:d,arcLabel:m,arcLabelMinAngle:g,slots:r,slotProps:n})},e)})]})}const j1=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],R1={top:5,bottom:5,left:5,right:100},E1={top:5,bottom:5,left:100,right:5},I1=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiPieChart"}),{xAxis:n,yAxis:o,series:a,width:s,height:l,margin:c,colors:u,sx:d,tooltip:p={trigger:"item"},axisHighlight:h={x:"none",y:"none"},skipAnimation:f,legend:m,topAxis:g=null,leftAxis:y=null,rightAxis:v=null,bottomAxis:b=null,children:x,slots:w,slotProps:C,onItemClick:A,loading:k,highlightedItem:S,onHighlightChange:_,className:M}=r,j=(0,Kh.A)(r,j1),R=AK(),E=(0,Yh.A)({},R?E1:R1,c),I=(0,Yh.A)({direction:"column",position:{vertical:"middle",horizontal:R?"left":"right"}},m);return(0,i.jsxs)(RY,(0,Yh.A)({},j,{ref:t,series:a.map(e=>(0,Yh.A)({type:"pie"},e)),width:s,height:l,margin:E,xAxis:n??[{id:kW,scaleType:"point",data:[...new Array(Math.max(0,...a.map(e=>e.data.length)))].map((e,t)=>t)}],yAxis:o,colors:u,sx:d,disableAxisListener:"axis"!==p?.trigger&&"none"===h?.x&&"none"===h?.y,highlightedItem:S,onHighlightChange:_,className:M,skipAnimation:f,children:[(0,i.jsx)(EK,{topAxis:g,leftAxis:y,rightAxis:v,bottomAxis:b,slots:w,slotProps:C}),(0,i.jsx)(M1,{slots:w,slotProps:C,onItemClick:A}),(0,i.jsx)(WJ,{loading:k,slots:w,slotProps:C}),(0,i.jsx)(vJ,(0,Yh.A)({},I,{slots:w,slotProps:C})),(0,i.jsx)(wJ,(0,Yh.A)({},h)),!k&&(0,i.jsx)(aJ,(0,Yh.A)({},p,{slots:w,slotProps:C})),x]}))}),L1=()=>(0,i.jsxs)(Sm,{display:"flex",gap:1,children:[(0,i.jsx)(Vw,{variant:"subtitle1",children:(0,pA.__)("Feature usage","pojo-accessibility")}),(0,i.jsx)(xF,{content:(0,i.jsx)(Vw,{variant:"body1",sx:{p:2,maxWidth:"300px"},children:(0,pA.__)("Track which accessibility features visitors use most from your widget so you can better understand your audience's needs.","pojo-accessibility")}),children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),P1=e=>{const{itemData:t,series:r}=e;return(0,i.jsxs)(IP,{sx:{p:2,pb:1},children:[(0,i.jsx)(T1,{variant:"body2",color:"text.tertiary",itemColor:r.data[t.dataIndex].color,children:r.data[t.dataIndex].featureTitle}),(0,i.jsx)(Vw,{variant:"h6",children:`${r.data[t.dataIndex].featureClicks} (${r.data[t.dataIndex].value}%)`})]})},T1=cb(Vw)`
position: relative;
padding-left: 18px;
&:before {
content: '';
position: absolute;
left: 0;
top: calc(50% - 5px);
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: ${e=>e.itemColor};
}
`,O1=()=>{const{stats:e}=Fh(),t=(0,n.useRef)(null),[r,o]=(0,n.useState)(null),a=()=>o(Number(t.current.offsetWidth)/4-32);(0,n.useEffect)(()=>(window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),[]),(0,n.useEffect)(()=>{a()},[t]);const s=e.elements?.reduce((e,{event:t,total:r})=>(e[t]=(e[t]||0)+Number(r),e),{}),l=Object.entries(s).map(([e,t])=>({event:e,total:t})).sort((e,t)=>t.value-e.value),c=l.slice(0,4),u=l.slice(4).reduce((e,t)=>e+Number(t.total),0);u>0&&c.push({event:"other",total:u});const d=c.reduce((e,t)=>e+Number(t.total),0),p=c.map((e,t)=>{const r=parseFloat((e.total/d*100).toFixed(2));return{label:`${zk[e.event].chartsTitle}: ${r}%`,featureTitle:zk[e.event].chartsTitle,featureClicks:e.total,color:Fk[t],value:r}}),h=e.elements.length>0&&null!==r;return(0,i.jsxs)(MD,{variant:"outlined",sx:{height:"100%"},ref:t,children:[(0,i.jsx)(HD,{title:(0,i.jsx)(L1,{}),sx:{pb:0}}),h&&(0,i.jsx)(I1,{series:[{data:p,innerRadius:r<100?r-15:85,outerRadius:r<100?r:100,paddingAngle:0,cornerRadius:0,startAngle:0,endAngle:360,cx:r+48,cy:150}],sx:{[`& .${g1.root}`]:{fontSize:"2.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},[`& .${cJ.mark}`]:{ry:10}},slots:{itemContent:P1},slotProps:{legend:{itemMarkWidth:10,itemMarkHeight:10,markGap:8,itemGap:12,padding:32,labelStyle:{fontWeight:400,fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"}}},height:300}),0===e.elements.length&&(0,i.jsx)(YJ,{})]})},D1=Xh.createContext();function N1(e){return bm("MuiTable",e)}xm("MuiTable",["root","stickyHeader"]);const z1=["className","component","padding","size","stickyHeader"],F1=Wg("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,Yh.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,Yh.A)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),B1="table",H1=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTable"}),{className:n,component:o=B1,padding:a="normal",size:s="medium",stickyHeader:l=!1}=r,c=(0,Kh.A)(r,z1),u=(0,Yh.A)({},r,{component:o,padding:a,size:s,stickyHeader:l}),d=(e=>{const{classes:t,stickyHeader:r}=e;return Fg({root:["root",r&&"stickyHeader"]},N1,t)})(u),p=Xh.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return(0,i.jsx)(D1.Provider,{value:p,children:(0,i.jsx)(F1,(0,Yh.A)({as:o,role:o===B1?null:"table",ref:t,className:Jh(d.root,n),ownerState:u},c))})}),V1=H1;var $1=Gh().forwardRef((e,t)=>Gh().createElement(V1,{...e,ref:t}));const W1=Xh.createContext();function Z1(e){return bm("MuiTableBody",e)}xm("MuiTableBody",["root"]);const U1=["className","component"],q1=Wg("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),X1={variant:"body"},G1="tbody",Y1=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableBody"}),{className:n,component:o=G1}=r,a=(0,Kh.A)(r,U1),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},Z1,t)})(s);return(0,i.jsx)(W1.Provider,{value:X1,children:(0,i.jsx)(q1,(0,Yh.A)({className:Jh(l.root,n),as:o,ref:t,role:o===G1?null:"rowgroup",ownerState:s},a))})});var K1=Gh().forwardRef((e,t)=>Gh().createElement(Y1,{...e,ref:t}));function Q1(e){return bm("MuiTableCell",e)}const J1=xm("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),e0=["align","className","component","padding","scope","size","sortDirection","variant"],t0=Wg("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${jx(r.size)}`],"normal"!==r.padding&&t[`padding${jx(r.padding)}`],"inherit"!==r.align&&t[`align${jx(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,Yh.A)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?(0,gf.a)((0,gf.X4)(e.palette.divider,1),.88):(0,gf.e$)((0,gf.X4)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${J1.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),r0=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:u,variant:d}=r,p=(0,Kh.A)(r,e0),h=Xh.useContext(D1),f=Xh.useContext(W1),m=f&&"head"===f.variant;let g;g=a||(m?"th":"td");let y=l;"td"===g?y=void 0:!y&&m&&(y="col");const v=d||f&&f.variant,b=(0,Yh.A)({},r,{align:n,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&h&&h.stickyHeader,variant:v}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Fg({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${jx(n)}`,"normal"!==o&&`padding${jx(o)}`,`size${jx(i)}`]},Q1,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,i.jsx)(t0,(0,Yh.A)({as:g,ref:t,className:Jh(x.root,o),"aria-sort":w,scope:y,ownerState:b},p))}),n0=r0;var o0=Gh().forwardRef((e,t)=>Gh().createElement(n0,{...e,ref:t}));function i0(e){return bm("MuiTableHead",e)}xm("MuiTableHead",["root"]);const a0=["className","component"],s0=Wg("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),l0={variant:"head"},c0="thead",u0=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableHead"}),{className:n,component:o=c0}=r,a=(0,Kh.A)(r,a0),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},i0,t)})(s);return(0,i.jsx)(W1.Provider,{value:l0,children:(0,i.jsx)(s0,(0,Yh.A)({as:o,className:Jh(l.root,n),ref:t,role:o===c0?null:"rowgroup",ownerState:s},a))})});var d0=Gh().forwardRef((e,t)=>Gh().createElement(u0,{...e,ref:t}));const p0=$k((0,i.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),h0=$k((0,i.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),f0=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],m0=Xh.forwardRef(function(e,t){var r,n,o,a,s,l,c,u;const{backIconButtonProps:d,count:p,disabled:h=!1,getItemAriaLabel:f,nextIconButtonProps:m,onPageChange:g,page:y,rowsPerPage:v,showFirstButton:b,showLastButton:x,slots:w={},slotProps:C={}}=e,A=(0,Kh.A)(e,f0),k=fy(),S=null!=(r=w.firstButton)?r:ck,_=null!=(n=w.lastButton)?n:ck,M=null!=(o=w.nextButton)?o:ck,j=null!=(a=w.previousButton)?a:ck,R=null!=(s=w.firstButtonIcon)?s:h0,E=null!=(l=w.lastButtonIcon)?l:p0,I=null!=(c=w.nextButtonIcon)?c:JT,L=null!=(u=w.previousButtonIcon)?u:QT,P=k?_:S,T=k?M:j,O=k?j:M,D=k?S:_,N=k?C.lastButton:C.firstButton,z=k?C.nextButton:C.previousButton,F=k?C.previousButton:C.nextButton,B=k?C.firstButton:C.lastButton;return(0,i.jsxs)("div",(0,Yh.A)({ref:t},A,{children:[b&&(0,i.jsx)(P,(0,Yh.A)({onClick:e=>{g(e,0)},disabled:h||0===y,"aria-label":f("first",y),title:f("first",y)},N,{children:k?(0,i.jsx)(E,(0,Yh.A)({},C.lastButtonIcon)):(0,i.jsx)(R,(0,Yh.A)({},C.firstButtonIcon))})),(0,i.jsx)(T,(0,Yh.A)({onClick:e=>{g(e,y-1)},disabled:h||0===y,color:"inherit","aria-label":f("previous",y),title:f("previous",y)},null!=z?z:d,{children:k?(0,i.jsx)(I,(0,Yh.A)({},C.nextButtonIcon)):(0,i.jsx)(L,(0,Yh.A)({},C.previousButtonIcon))})),(0,i.jsx)(O,(0,Yh.A)({onClick:e=>{g(e,y+1)},disabled:h||-1!==p&&y>=Math.ceil(p/v)-1,color:"inherit","aria-label":f("next",y),title:f("next",y)},null!=F?F:m,{children:k?(0,i.jsx)(L,(0,Yh.A)({},C.previousButtonIcon)):(0,i.jsx)(I,(0,Yh.A)({},C.nextButtonIcon))})),x&&(0,i.jsx)(D,(0,Yh.A)({onClick:e=>{g(e,Math.max(0,Math.ceil(p/v)-1))},disabled:h||y>=Math.ceil(p/v)-1,"aria-label":f("last",y),title:f("last",y)},B,{children:k?(0,i.jsx)(R,(0,Yh.A)({},C.firstButtonIcon)):(0,i.jsx)(E,(0,Yh.A)({},C.lastButtonIcon))}))]}))}),g0=m0;function y0(e){return bm("MuiTablePagination",e)}const v0=xm("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var b0;const x0=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],w0=Wg(n0,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),C0=Wg(dz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,Yh.A)({[`& .${v0.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${v0.actions}`]:{flexShrink:0,marginLeft:20}})),A0=Wg("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),k0=Wg("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>(0,Yh.A)({},e.typography.body2,{flexShrink:0})),S0=Wg(oL,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,Yh.A)({[`& .${v0.selectIcon}`]:t.selectIcon,[`& .${v0.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${v0.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),_0=Wg(A_,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),M0=Wg("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>(0,Yh.A)({},e.typography.body2,{flexShrink:0}));function j0({from:e,to:t,count:r}){return`${e}–${t} of ${-1!==r?r:`more than ${t}`}`}function R0(e){return`Go to ${e} page`}const E0=Xh.forwardRef(function(e,t){var r;const n=Xg({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=g0,backIconButtonProps:a,className:s,colSpan:l,component:c=n0,count:u,disabled:d=!1,getItemAriaLabel:p=R0,labelDisplayedRows:h=j0,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:y,page:v,rowsPerPage:b,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:C=!1,showLastButton:A=!1,slotProps:k={},slots:S={}}=n,_=(0,Kh.A)(n,x0),M=n,j=(e=>{const{classes:t}=e;return Fg({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},y0,t)})(M),R=null!=(r=null==k?void 0:k.select)?r:w,E=R.native?"option":_0;let I;c!==n0&&"td"!==c||(I=l||1e3);const L=cj(R.id),P=cj(R.labelId);return(0,i.jsx)(w0,(0,Yh.A)({colSpan:I,ref:t,as:c,ownerState:M,className:Jh(j.root,s)},_,{children:(0,i.jsxs)(C0,{className:j.toolbar,children:[(0,i.jsx)(A0,{className:j.spacer}),x.length>1&&(0,i.jsx)(k0,{className:j.selectLabel,id:P,children:f}),x.length>1&&(0,i.jsx)(S0,(0,Yh.A)({variant:"standard"},!R.variant&&{input:b0||(b0=(0,i.jsx)(XE,{}))},{value:b,onChange:y,id:L,labelId:P},R,{classes:(0,Yh.A)({},R.classes,{root:Jh(j.input,j.selectRoot,(R.classes||{}).root),select:Jh(j.select,(R.classes||{}).select),icon:Jh(j.selectIcon,(R.classes||{}).icon)}),disabled:d,children:x.map(e=>(0,Xh.createElement)(E,(0,Yh.A)({},!gb(E)&&{ownerState:M},{className:j.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e))})),(0,i.jsx)(M0,{className:j.displayedRows,children:h({from:0===u?0:v*b+1,to:-1===u?(v+1)*b:-1===b?u:Math.min(u,(v+1)*b),count:-1===u?-1:u,page:v})}),(0,i.jsx)(o,{className:j.actions,backIconButtonProps:a,count:u,nextIconButtonProps:m,onPageChange:g,page:v,rowsPerPage:b,showFirstButton:C,showLastButton:A,slotProps:k.actions,slots:S.actions,getItemAriaLabel:p,disabled:d})]})}))}),I0=E0;var L0=Gh().forwardRef((e,t)=>Gh().createElement(I0,{...e,ref:t}));function P0(e){return bm("MuiTableRow",e)}const T0=xm("MuiTableRow",["root","selected","hover","head","footer"]),O0=["className","component","hover","selected"],D0=Wg("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${T0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${T0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,gf.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,gf.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),N0="tr",z0=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableRow"}),{className:n,component:o=N0,hover:a=!1,selected:s=!1}=r,l=(0,Kh.A)(r,O0),c=Xh.useContext(W1),u=(0,Yh.A)({},r,{component:o,hover:a,selected:s,head:c&&"head"===c.variant,footer:c&&"footer"===c.variant}),d=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Fg({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},P0,t)})(u);return(0,i.jsx)(D0,(0,Yh.A)({as:o,ref:t,className:Jh(d.root,n),role:o===N0?null:"row",ownerState:u},l))}),F0=["disableDivider"],B0=cb(z0,{shouldForwardProp:e=>!F0.includes(e)})(({disableDivider:e})=>e?{"& td, & th":{borderBottom:0}}:{});var H0=Gh().forwardRef((e,t)=>Gh().createElement(B0,{...e,ref:t}));const V0=()=>(0,i.jsxs)(Sm,{display:"flex",gap:1,children:[(0,i.jsx)(Vw,{variant:"subtitle1",children:(0,pA.__)("Most used features","pojo-accessibility")}),(0,i.jsx)(xF,{content:(0,i.jsx)(Vw,{variant:"body1",sx:{p:2,maxWidth:"300px"},children:(0,pA.__)("Track how often all your widget’s accessibility features are used.","pojo-accessibility")}),children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),$0=()=>{const{stats:e}=Fh(),[t,r]=(0,n.useState)(0),o=((e,t=10)=>{const r=[];for(let n=0;n{switch(e){case"text-align":return"left"===t?(0,pA.__)("Left align text","pojo-accessibility"):(0,pA.__)("Right align text","pojo-accessibility");case"contrast":switch(t){case"dark":return(0,pA.__)("Dark contrast","pojo-accessibility");case"light":return(0,pA.__)("Light contrast","pojo-accessibility");default:return(0,pA.__)("High contrast","pojo-accessibility")}case"screen-reader":switch(t){case"read-normal":return(0,pA.__)("Screen reader","pojo-accessibility");case"read-fast":return(0,pA.__)("Screen reader fast","pojo-accessibility");default:return(0,pA.__)("Screen reader slow","pojo-accessibility")}default:return`${zk[e].chartsTitle}${t?` ${t}`:""}`}};return(0,i.jsxs)(MD,{variant:"outlined",children:[(0,i.jsx)(HD,{title:(0,i.jsx)(V0,{})}),(0,i.jsxs)(bz,{sx:{minHeight:"450px"},children:[(0,i.jsxs)($1,{children:[(0,i.jsx)(d0,{children:(0,i.jsxs)(H0,{children:[(0,i.jsx)(o0,{variant:"head",width:"40%",sx:0===e.elements.length?{borderBottom:"none"}:null,children:(0,pA.__)("Features","pojo-accessibility")}),(0,i.jsx)(o0,{variant:"head",width:"60%",sx:0===e.elements.length?{borderBottom:"none"}:null,children:(0,pA.__)("Times used","pojo-accessibility")})]})}),(0,i.jsx)(K1,{children:o[t]?.map((e,t)=>(0,i.jsxs)(H0,{children:[(0,i.jsx)(o0,{children:(0,i.jsxs)(Sm,{display:"flex",alignItems:"center",gap:1,children:[zk[e.event].icon,(0,i.jsx)(Vw,{variant:"body2",children:a(e.event,e.value)})]})}),(0,i.jsx)(o0,{children:(0,i.jsx)(Vw,{variant:"body2",children:e.total})})]},`feature-${e.event}-${e.value}_${t}`))})]}),o.length>1&&(0,i.jsx)(Sm,{display:"flex",justifyContent:"end",children:(0,i.jsx)(L0,{disabled:!e.elements.length,count:e.elements.length,onPageChange:(e,t)=>r(t),page:t,rowsPerPage:10,rowsPerPageOptions:[],sx:{borderBottom:"none"}})}),0===e.elements.length&&(0,i.jsx)(YJ,{})]})]})},W0=e=>(0,i.jsxs)("svg",{viewBox:"0 0 489 194",fill:"transparent",...e,style:{maxWidth:"100%"},children:[(0,i.jsx)("path",{d:"M24 1V137",stroke:"#F3F3F4"}),(0,i.jsx)("path",{d:"M24 122.5L102.029 106.033L190.906 2.5L270.809 92.5L344.46 63.4543L407.885 21.2879L488 53.7291",stroke:"black",strokeOpacity:"0.12",strokeWidth:"2"}),(0,i.jsx)("path",{d:"M24 137L488 137",stroke:"#F3F3F4"})]}),Z0=({animated:e})=>(0,i.jsxs)(MD,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)(HD,{title:e?(0,i.jsx)(Vw,{variant:"subtitle1",children:(0,i.jsx)(PN,{width:150,sx:{p:2},animation:!!e&&"wave",variant:"text"})}):(0,i.jsx)(qJ,{}),subheader:e?null:(0,i.jsx)(Vw,{variant:"h3",sx:{height:"50px"},children:"--"}),sx:{height:e?"100px":"auto",alignItems:"start"}}),(0,i.jsx)(bz,{sx:{pt:3,pr:4},children:(0,i.jsx)(W0,{width:"489",height:"194"})})]}),U0=({animated:e})=>{const t=(0,n.useRef)(null),[r,o]=(0,n.useState)(null);return(0,n.useEffect)(()=>{(()=>{const e=Number(t.current.offsetWidth)/3;o(e>180?180:e)})()},[t]),(0,i.jsxs)(MD,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)(HD,{title:e?(0,i.jsx)(Vw,{variant:"subtitle1",children:(0,i.jsx)(PN,{width:150,sx:{p:2},animation:!!e&&"wave",variant:"text"})}):(0,i.jsx)(L1,{}),sx:{height:"60px",alignItems:"start"}}),(0,i.jsx)(bz,{ref:t,sx:{pt:5},children:(0,i.jsxs)(Kz,{direction:"row",spacing:6,alignItems:"center",justifyContent:"center",sx:{pb:4},children:[(0,i.jsx)(q0,{variant:"circular",width:r,height:r,animation:!!e&&"wave"}),(0,i.jsx)(Kz,{spacing:2,children:Array.from({length:5}).map((t,n)=>(0,i.jsxs)(Kz,{direction:"row",alignItems:"center",spacing:1,children:[(0,i.jsx)(PN,{variant:"circular",width:10,height:10,animation:!!e&&"wave"}),(0,i.jsx)(PN,{variant:"rounded",width:r,height:15,animation:!!e&&"wave"})]},n))})]})})]})},q0=cb(PN)`
position: relative;
&:before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: calc(100% - 30px);
height: calc(100% - 30px);
border-radius: 50%;
background: ${({theme:e})=>e.palette.background.default};
z-index: 1;
}
`,X0=({animated:e})=>(0,i.jsxs)(MD,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)(HD,{title:e?(0,i.jsx)(Vw,{variant:"subtitle1",children:(0,i.jsx)(PN,{width:150,sx:{p:2},animation:!!e&&"wave",variant:"text"})}):(0,i.jsx)(V0,{}),sx:{height:"60px",alignItems:"start"}}),(0,i.jsx)(bz,{sx:{pt:3},children:(0,i.jsx)(Kz,{spacing:1,children:Array.from({length:10}).map((t,r)=>(0,i.jsxs)(Kz,{direction:"row",alignItems:"center",spacing:8,children:[(0,i.jsx)(PN,{width:230,height:25,animation:!!e&&"wave",sx:{mr:6}}),(0,i.jsx)(PN,{width:120,height:25,animation:!!e&&"wave"})]},r))})})]}),G0=()=>{const{stats:e,isAnalyticsEnabled:t,isProVersion:r,loading:n,period:o,setPeriod:a,handleAnalyticsToggle:s}=Fh(),l=e.dates.at(-1)?.date&&new Date(e.dates.at(-1)?.date),c=l&&l.setDate(l.getDate()+30),u=!r||c&&t,d=n||!c;return(0,i.jsxs)(K0,{children:[!u&&(0,i.jsxs)(vD,{color:"info",icon:(0,i.jsx)(CF,{}),sx:{width:"100%"},action:!c&&!t&&(0,i.jsx)(wC,{variant:"outlined",color:"info",size:"small",onClick:()=>s(),children:(0,pA.__)("Enable tracking","pojo-accessibility")}),children:[c&&!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(XN,{sx:{width:"100%"},children:(0,pA.sprintf)(
// Translators: %s - date
// Translators: %s - date
(0,pA.__)("Data available till %s","pojo-accessibility"),(0,XJ.dateI18n)("Y/m/d",c,!1))}),(0,pA.__)("We are showing you data collected in the past","pojo-accessibility")]}),!c&&t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(XN,{sx:{width:"100%"},children:(0,pA.__)("Not enough data to show yet","pojo-accessibility")}),(0,pA.__)("Analytics appear once enough visitors interact with your accessibility widget.","pojo-accessibility")]}),!c&&!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(XN,{sx:{width:"100%"},children:(0,pA.__)("Analytics are off.","pojo-accessibility")}),(0,pA.__)("Switch on ״Track widget data״ to start collecting usage data for your widget.","pojo-accessibility")]})]}),(0,i.jsxs)(Sm,{display:"flex",alignItems:"center",gap:2,children:[(0,i.jsx)(Vw,{variant:"subtitle1",children:(0,pA.__)("Display data from","pojo-accessibility")}),(0,i.jsxs)(hL,{name:(0,pA.__)("Period","pojo-accessibility"),onChange:e=>{a(Number(e.target.value)),yh(kh,{selectedItem:e.target.value})},value:o,size:"small",IconComponent:()=>(0,i.jsx)(Y0,{children:(0,i.jsx)(Ej,{})}),color:"secondary",sx:{width:"270px",position:"relative"},variant:"outlined",children:[(0,i.jsx)(k_,{value:0,children:(0,pA.__)("Today","pojo-accessibility")}),(0,i.jsx)(k_,{value:1,children:(0,pA.__)("Yesterday","pojo-accessibility")}),(0,i.jsx)(k_,{value:7,children:(0,pA.__)("Last 7 days","pojo-accessibility")}),(0,i.jsx)(k_,{value:30,children:(0,pA.__)("Last 30 days","pojo-accessibility")})]})]}),(0,i.jsxs)(sy,{container:!0,spacing:4,children:[(0,i.jsx)(sy,{item:!0,xs:12,lg:6,children:d?(0,i.jsx)(Z0,{animated:n}):(0,i.jsx)(KJ,{})}),(0,i.jsx)(sy,{item:!0,xs:12,lg:6,children:d?(0,i.jsx)(U0,{animated:n}):(0,i.jsx)(O1,{})}),(0,i.jsx)(sy,{item:!0,xs:12,children:d?(0,i.jsx)(X0,{animated:n}):(0,i.jsx)($0,{})})]})]})},Y0=cb(IC)`
position: absolute;
top: 50%;
right: 8px;
cursor: pointer;
pointer-events: none;
transform: translateY(-50%);
`,K0=cb(Sm)`
display: flex;
flex-direction: column;
align-items: start;
gap: ${({theme:e})=>e.spacing(4)};
max-width: 1200px;
margin-left: auto;
margin-right: auto;
`,Q0=e=>(0,i.jsx)(IC,{viewBox:"0 0 21 15",fontSize:e.size,...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 0.785156C10.7508 0.785156 10.985 0.910482 11.1241 1.11913L14.6703 6.43847L19.0315 2.9495C19.2777 2.75258 19.6207 2.7306 19.89 2.89448C20.1592 3.05837 20.2973 3.37314 20.2355 3.68224L18.2355 13.6822C18.1654 14.0328 17.8576 14.2852 17.5 14.2852H3.50004C3.14253 14.2852 2.83472 14.0328 2.76461 13.6822L0.764605 3.68224C0.702784 3.37314 0.840845 3.05837 1.11012 2.89448C1.3794 2.7306 1.72241 2.75258 1.96856 2.9495L6.32977 6.43847L9.876 1.11913C10.0151 0.910482 10.2493 0.785156 10.5 0.785156Z"})}),J0=r.p+"images/upgrade.fdf64881.png",e2=cb(IP)`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 600px;
max-width: calc(100% - 48px);
padding: 16px;
`,t2=cb(Sm)`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 40px;
`,r2=()=>(0,i.jsx)(Hw,{open:!0,disablePortal:!0,hideBackdrop:!0,"aria-labelledby":"upgrade-modal-title","aria-describedby":"upgrade-modal-description",children:(0,i.jsx)(e2,{elevation:24,children:(0,i.jsx)(mz,{children:(0,i.jsxs)(t2,{children:[(0,i.jsx)("img",{src:J0,alt:(0,pA.__)("Upgrade image","pojo-accessibility")}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(Vw,{variant:"h5",id:"upgrade-modal-title",align:"center",sx:{mb:1},children:(0,pA.__)("Discover how visitors use your widget","pojo-accessibility")}),(0,i.jsx)(Vw,{variant:"body2",id:"upgrade-modal-description",align:"center",children:(0,pA.__)("Upgrade to a premium plan to access a clear view of your widget's analytics. Track key metrics, understand engagement, and gain insights for improvements.","pojo-accessibility")})]}),(0,i.jsx)(wC,{href:dA.ANALYTICS_POPUP,target:"_blank",size:"large",color:"promotion",startIcon:(0,i.jsx)(Q0,{}),variant:"contained",sx:{width:300},onClick:()=>{yh(Ch,{component:"Upgrade popup",feature:"Analytic"})},children:(0,pA.__)("Upgrade now","pojo-accessibility")})]})})})}),n2=cb(Sm)`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(5px);
z-index: 2;
`,o2=cb(Sm)`
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin-bottom: 40px;
margin-right: auto;
margin-left: auto;
`,i2=()=>{const{isProVersion:e}=Fh();return(0,n.useEffect)(()=>{yh(vh,{page:"Analytics"})},[]),(0,i.jsxs)(fz,{sx:{position:"relative"},children:[(0,i.jsxs)(gz,{children:[(0,i.jsxs)(o2,{children:[(0,i.jsx)(yz,{variant:"h4",color:"text.primary",sx:{mb:0,position:"relative",zIndex:3},children:(0,pA.__)("Analytics","pojo-accessibility")}),(0,i.jsx)(wF,{})]}),(0,i.jsx)(G0,{})]}),!e&&(0,i.jsx)(n2,{children:(0,i.jsx)(r2,{})})]})},a2=()=>((0,n.useEffect)(()=>{yh(vh,{page:"Button"})},[]),(0,i.jsxs)(fz,{children:[(0,i.jsxs)(gz,{children:[(0,i.jsx)(s2,{variant:"h4",color:"text.primary",children:(0,pA.__)("Design","pojo-accessibility")}),(0,i.jsx)(kT,{marginBottom:4}),(0,i.jsx)(SO,{})]}),(0,i.jsx)(t3,{})]})),s2=cb(Vw)`
max-width: 1200px;
// Spacing
margin-bottom: 16px;
margin-right: auto;
margin-left: auto;
// Typography
font-weight: 400;
letter-spacing: 0.25px;
`,l2=cb(MD)`
padding: ${({theme:e})=>e.spacing(2)};
margin-block: ${({theme:e})=>e.spacing(4)};
max-width: 1200px;
margin-left: auto;
margin-right: auto;
`,c2=cb(Sm)`
display: flex;
align-items: center;
justify-content: space-between;
`,u2=cb(NO)`
input {
height: 56px !important;
}
`,d2=cb(Sm)`
display: flex;
flex-direction: column;
gap: 16px;
align-items: flex-start;
justify-content: start;
padding-top: 16px;
`,p2=cb(hR)`
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
padding-top: 7px;
`,h2=cb(fL)`
width: 200px;
input {
height: 36px;
}
`,f2=cb(Vw)`
display: flex;
gap: 8px;
align-items: center;
`,m2=()=>{const{skipToContentSettings:e,setSkipToContentSettings:t,skipToContentHasChanges:r,setSkipToContentHasChanges:n,hasError:o,setHasError:a,setHasChanges:l}=s(),c=(0,pA.__)("This feature allows visitors with visual assistive tools to skip to the main content of each page they’re viewing.","pojo-accessibility"),u=(0,pA.__)("This is the HTML ID of the main content area on your pages. Changing this is only needed if your theme uses a custom ID instead of the default #main-content.","pojo-accessibility");return(0,i.jsxs)(l2,{variant:"outlined",children:[(0,i.jsxs)(c2,{children:[(0,i.jsxs)(f2,{variant:"subtitle1",id:"ea11y-skip-to-content-toggle","aria-description":c,children:[(0,pA.__)("Skip to main content","pojo-accessibility"),(0,i.jsx)(xF,{tabIndex:"0",content:(0,i.jsxs)(Sm,{sx:{p:2,maxWidth:"250px"},children:[(0,i.jsx)(Vw,{variant:"subtitle2",sx:{mb:1},children:(0,pA.__)("Skip to main content","pojo-accessibility")}),(0,i.jsx)(Vw,{variant:"body2",children:c})]}),placement:"right",arrow:!0,children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),(0,i.jsx)(u2,{size:"medium",color:"info",checked:e?.enabled||!1,onChange:()=>{t({...e,enabled:!e.enabled}),a({...o,sitemap:!e?.enabled&&!Hh(e?.anchor)}),n(!0),l(!0)},inputProps:{"area-labelledby":"ea11y-skip-to-content-toggle"}})]}),(0,i.jsx)(Vw,{variant:"body1",children:(0,pA.__)("Add skip to content link when using keyboard","pojo-accessibility")}),(0,i.jsxs)(d2,{children:[(0,i.jsxs)(p2,{htmlFor:"skip-to-content-anchor","aria-description":u,children:[(0,pA.__)("Main content ID","pojo-accessibility"),(0,i.jsx)(xF,{tabIndex:"0",content:(0,i.jsxs)(Sm,{sx:{p:2,maxWidth:"250px"},children:[(0,i.jsx)(Vw,{variant:"subtitle2",sx:{mb:1},children:(0,pA.__)("Skip to main content","pojo-accessibility")}),(0,i.jsx)(Vw,{variant:"body2",children:u})]}),placement:"right",arrow:!0,children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(h2,{id:"skip-to-content-anchor",type:"url",onChange:r=>{t({...e,anchor:r.target.value});const i=Hh(r.target.value);a({...o,skipToContent:!i}),n(i),l(i)},onBlur:()=>{r&&yh(wh,{fieldName:"skip-to-content-anchor",value:e.anchor})},value:e.anchor,error:o.skipToContent,size:"small",variant:"outlined"}),o.skipToContent&&(0,i.jsx)(Vw,{as:"p",variant:"caption",color:"error",sx:{marginTop:"4px"},children:(0,pA.__)("Please enter valid ID!","pojo-accessibility")})]})]})]})},g2=()=>((0,n.useEffect)(()=>{yh(vh,{page:"Capabilities"})},[]),(0,i.jsxs)(fz,{children:[(0,i.jsxs)(gz,{children:[(0,i.jsx)(v2,{variant:"h4",color:"text.primary",children:(0,pA.__)("Capabilities","pojo-accessibility")}),(0,i.jsxs)(y2,{children:[(0,i.jsx)(WD,{}),(0,i.jsx)(nN,{})]}),(0,i.jsx)(m2,{})]}),(0,i.jsx)(t3,{})]})),y2=cb(Sm)`
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: ${({theme:e})=>e.spacing(4)};
max-width: 1200px;
margin-left: auto;
margin-right: auto;
`,v2=cb(Vw)`
font-weight: 400;
letter-spacing: 0.25px;
margin-bottom: 16px;
max-width: 1200px;
margin-right: auto;
margin-left: auto;
`,b2=e=>(0,i.jsxs)(IC,{width:"25",height:"24",fill:"none",...e,children:[(0,i.jsx)("path",{fill:"#000",fillOpacity:".54",d:"M13.5 8a.75.75 0 0 0-1.28-.53l-2 2a.75.75 0 0 0 1.06 1.06l.72-.72V16a.75.75 0 0 0 1.5 0V8Z"}),(0,i.jsx)("path",{fill:"#000",fillOpacity:".54",fillRule:"evenodd",d:"M12.5 2.25a9.75 9.75 0 1 0 0 19.5 9.75 9.75 0 0 0 0-19.5ZM9.343 4.378a8.25 8.25 0 1 1 6.314 15.244A8.25 8.25 0 0 1 9.343 4.378Z",clipRule:"evenodd"})]}),x2=e=>(0,i.jsx)(IC,{width:"25",height:"24",fill:"none",...e,children:(0,i.jsx)("path",{fill:"#000",fillOpacity:".54",fillRule:"evenodd",d:"M12.5 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5ZM2.75 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.75 17.385 2.75 12Zm8.75-3.25a.25.25 0 0 0-.25.25.75.75 0 0 1-1.5 0 1.75 1.75 0 0 1 1.75-1.75h2A1.75 1.75 0 0 1 15.25 9v2c0 .36-.11.709-.314 1 .203.291.314.64.314 1v2a1.75 1.75 0 0 1-1.75 1.75h-2A1.75 1.75 0 0 1 9.75 15a.75.75 0 0 1 1.5 0 .25.25 0 0 0 .25.25h2a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25h-2a.75.75 0 0 1 0-1.5h2a.25.25 0 0 0 .25-.25V9a.25.25 0 0 0-.25-.25h-2Z",clipRule:"evenodd"})}),w2=e=>(0,i.jsx)(IC,{width:"24",height:"24",fill:"none",...e,children:(0,i.jsx)("path",{fill:"#000",fillOpacity:".54",fillRule:"evenodd",d:"M12 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5ZM2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm7-4a.75.75 0 0 1 .75-.75h3A1.75 1.75 0 0 1 14.75 9v2A1.75 1.75 0 0 1 13 12.75h-2a.25.25 0 0 0-.25.25v2a.25.25 0 0 0 .25.25h3a.75.75 0 0 1 0 1.5h-3A1.75 1.75 0 0 1 9.25 15v-2A1.75 1.75 0 0 1 11 11.25h2a.25.25 0 0 0 .25-.25V9a.25.25 0 0 0-.25-.25h-3A.75.75 0 0 1 9.25 8Z",clipRule:"evenodd"})}),C2=cb(Sm)`
margin-top: ${({theme:e})=>e.spacing(8)};
text-align: center;
`,A2=cb(Vw)`
margin-top: ${({theme:e})=>e.spacing(2)};
margin-bottom: ${({theme:e})=>e.spacing(1)};
font-size: 20px;
font-weight: 500;
line-height: 160%;
letter-spacing: 0.15px;
color: ${({theme:e})=>e.palette.text.primary};
`,k2=cb(Vw)`
color: ${({theme:e})=>e.palette.text.secondary};
margin-bottom: ${({theme:e})=>e.spacing(2)};
`,S2=cb(SC)`
font-size: 15px;
line-height: 24px;
letter-spacing: 0.4px;
`,_2=cb(Sm)`
margin-top: ${({theme:e})=>e.spacing(8)};
`,M2=cb(Vw)`
margin-bottom: ${({theme:e})=>e.spacing(2)};
color: ${({theme:e})=>e.palette.text.secondary};
font-size: 16px;
font-weight: 500;
line-height: 130%;
letter-spacing: 0.15px;
`,j2=cb(Sm)`
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: ${({theme:e})=>e.spacing(2)};
`,R2=cb(Sm)`
max-width: 204px;
min-height: 104px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: ${({theme:e})=>`${e.spacing(2)} ${e.spacing(3)}`};
border-radius: ${({theme:e})=>2*e.shape.borderRadius}px;
color: ${({theme:e})=>e.palette.text.secondary};
background: #f3f3f4;
`,E2=cb(Vw)`
display: flex;
justify-content: center;
align-items: center;
margin: 0;
margin-bottom: ${({theme:e})=>e.spacing(1)};
color: ${({theme:e})=>e.palette.text.secondary};
font-size: 14px;
font-weight: 500;
letter-spacing: 0.1px;
& svg {
margin-inline-end: ${({theme:e})=>e.spacing(1)};
}
`,I2=()=>{const e=window?.ea11ySettingsData?.homeUrl,t=(0,jh.addQueryArgs)(e,{"open-ea11y-assistant":"1","open-ea11y-assistant-src":"Ally_dashboard"});return(0,i.jsxs)(C2,{children:[(0,i.jsx)(sA,{}),(0,i.jsx)(A2,{variant:"h6",as:"h2",children:(0,pA.__)("Start by scanning your home page","pojo-accessibility")}),(0,i.jsx)(k2,{variant:"body1",children:(0,pA.__)("Find and resolve accessibility issues for a more inclusive website.","pojo-accessibility")}),(0,i.jsx)(S2,{size:"medium",color:"info",variant:"contained",href:t,onClick:()=>{yh(Sh,{cta_text:"scan_home_page",source:"empty_state"})},target:"_blank",children:(0,pA.__)("Scan home page","pojo-accessibility")}),(0,i.jsxs)(_2,{children:[(0,i.jsx)(M2,{variant:"subtitle1",as:"h2",children:(0,pA.__)("Here’s how it works","pojo-accessibility")}),(0,i.jsxs)(j2,{children:[(0,i.jsxs)(R2,{children:[(0,i.jsxs)(E2,{variant:"subtitle2",as:"h3",children:[(0,i.jsx)(b2,{}),(0,pA.__)("Scan a page","pojo-accessibility")]}),(0,i.jsx)(Vw,{variant:"body2",children:(0,pA.__)("Automatically find accessibility issues.","pojo-accessibility")})]}),(0,i.jsxs)(R2,{children:[(0,i.jsxs)(E2,{variant:"subtitle2",as:"h3",children:[(0,i.jsx)(w2,{}),(0,pA.__)("Resolve issues","pojo-accessibility")]}),(0,i.jsx)(Vw,{variant:"body2",children:(0,pA.__)("Resolve them with Ally, AI, or manually.","pojo-accessibility")})]}),(0,i.jsxs)(R2,{children:[(0,i.jsxs)(E2,{variant:"subtitle2",as:"h3",children:[(0,i.jsx)(x2,{}),(0,pA.__)("Track everything","pojo-accessibility")]}),(0,i.jsx)(Vw,{variant:"body2",children:(0,pA.__)("Monitor results, progress, and statuses.","pojo-accessibility")})]})]})]})]})},L2=({period:e,onPeriodChange:t,isEmpty:r,loading:n})=>{const o="ea11y-accessibility-wizard-time-range-select";return(0,i.jsxs)(T2,{children:[(0,i.jsxs)(P2,{variant:"h5",as:"h1",children:[(0,pA.__)("Accessibility scans","pojo-accessibility"),(0,i.jsx)(nS,{size:"small",variant:"filled",color:"default",label:(0,pA.__)("Beta","pojo-accessibility")})]}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(O2,{htmlFor:o,children:(0,pA.__)("Display data from","pojo-accessibility")}),(0,i.jsxs)(hL,{id:o,variant:"outlined",size:"small",color:"secondary",onChange:t,value:e,disabled:r||n,children:[(0,i.jsx)(k_,{value:0,children:(0,pA.__)("Today","pojo-accessibility")}),(0,i.jsx)(k_,{value:1,children:(0,pA.__)("Yesterday","pojo-accessibility")}),(0,i.jsx)(k_,{value:7,children:(0,pA.__)("Last 7 days","pojo-accessibility")}),(0,i.jsx)(k_,{value:30,children:(0,pA.__)("Last 30 days","pojo-accessibility")}),(0,i.jsx)(k_,{value:60,children:(0,pA.__)("Last 60 days","pojo-accessibility")})]})]})]})};L2.propTypes={period:PA().number.isRequired,onPeriodChange:PA().func.isRequired,isEmpty:PA().bool,loading:PA().bool};const P2=cb(Vw)`
color: ${({theme:e})=>e.palette.common.black};
font-size: 32px;
font-weight: 400;
letter-spacing: 0.25px;
margin: 0;
.MuiChip-root {
margin-inline-start: ${({theme:e})=>e.spacing(1)};
font-weight: 400;
}
`,T2=cb(Sm)`
display: flex;
justify-content: space-between;
align-items: center;
.MuiSelect-select {
min-width: 270px;
}
`,O2=cb(hR)`
margin-inline-end: ${({theme:e})=>e.spacing(1)};
color: ${({theme:e})=>e.palette.common.black};
font-weight: 500;
`,D2=L2,N2=window.wp.a11y,z2=(0,n.createContext)(null),F2=({children:e})=>{const[t,r]=(0,n.useState)(!0),[o,a]=(0,n.useState)(30),[s,l]=(0,n.useState)(""),[c,u]=(0,n.useState)([]),[d,p]=(0,n.useState)(0),[h,f]=(0,n.useState)(10),[m,g]=(0,n.useState)({scans:0,issues_total:0,issues_fixed:0,issue_levels:{a:0,aa:0,aaa:0}}),[y,v]=(0,n.useState)({});(0,n.useEffect)(()=>{r(!0),Promise.all([Dh.getScannerStats(o),Dh.getPostTypes(),Dh.getScannerResults()]).then(([e,t,r])=>{g(e),v(t),u(r)}).finally(()=>{r(!1)})},[]),(0,n.useEffect)(()=>{r(!0),Dh.getScannerStats(o).then(e=>{g(e),r(!1)})},[o]),(0,n.useEffect)(()=>{const e=b();e.length?(0,N2.speak)((0,pA.sprintf)(
// Translators: %s - count
// Translators: %s - count
(0,pA.__)("Found %s scanned URLs","pojo-accessibility"),e.length),"polite"):(0,N2.speak)((0,pA.__)("No scanned URLs found for the provided search query","pojo-accessibility"),"polite")},[s]);const b=(0,n.useCallback)(()=>{const e=new Date,t=new Date(e);t.setDate(e.getDate()-o),t.setHours(0),t.setMinutes(0),t.setSeconds(0);const r=c.filter(e=>new Date(e.last_scan)>=t),n=s.trim().toLowerCase(),i=r.filter(e=>e.page_title?.toLowerCase().includes(n)||e.page_url?.toLowerCase().includes(n)),a=d*h,l=a>=i.length?0:a,u=l+h;return i.slice(l,u)},[s,c,d,h,o]);return(0,i.jsx)(z2.Provider,{value:{period:o,onPeriodChange:e=>{a(parseInt(e.target.value,10)),yh(kh,{selectedItem:e.target.value})},stats:m,postTypes:y,scannerResults:c,getFilteredScannerResults:b,search:s,setSearch:l,page:d,setPage:p,rowsPerPage:h,setRowsPerPage:f,loading:t},children:e})},B2=()=>(0,n.useContext)(z2),H2=cb(Sm)`
margin-top: ${({theme:e})=>e.spacing(6)};
text-align: center;
`,V2=cb(Vw)`
margin-top: 0;
margin-bottom: ${({theme:e})=>e.spacing(1)};
font-size: 16px;
font-weight: 500;
line-height: 130%;
letter-spacing: 0.15px;
color: ${({theme:e})=>e.palette.text.secondary};
`,$2=cb(Vw)`
color: ${({theme:e})=>e.palette.text.secondary};
`,W2=()=>{const{search:e}=B2();return e?(0,i.jsxs)(H2,{children:[(0,i.jsx)(lA,{}),(0,i.jsx)(V2,{variant:"subtitle1",as:"h3",children:(0,pA.__)("No matching results found","pojo-accessibility")}),(0,i.jsx)($2,{variant:"body2",children:(0,pA.__)("Try entering something else or checking if the spelling is correct before trying again.","pojo-accessibility")})]}):(0,i.jsxs)(H2,{children:[(0,i.jsx)(lA,{}),(0,i.jsx)(V2,{variant:"subtitle1",as:"h3",children:(0,pA.__)("No data to display for this period","pojo-accessibility")}),(0,i.jsx)($2,{variant:"body2",children:(0,pA.__)("Try selecting a different timeframe to see your scan results.","pojo-accessibility")})]})};var Z2=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4697 8.46967C11.7626 8.17678 12.2374 8.17678 12.5303 8.46967L18.5303 14.4697C18.8232 14.7626 18.8232 15.2374 18.5303 15.5303C18.2374 15.8232 17.7626 15.8232 17.4697 15.5303L12 10.0607L6.53033 15.5303C6.23744 15.8232 5.76256 15.8232 5.46967 15.5303C5.17678 15.2374 5.17678 14.7626 5.46967 14.4697L11.4697 8.46967Z"})));const{slots:U2,classNames:q2}=zT("MenuItemIcon",["root"]),X2=cb(zC,U2.root)({});var G2=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:U2.root.name});return Gh().createElement(X2,{...r,ref:t,className:Ux([[q2.root,r.className]]),ownerState:r})});const{slots:Y2,classNames:K2}=zT("MenuItemText",["root"]),Q2=cb(Hx,Y2.root)({});var J2=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:Y2.root.name});return Gh().createElement(Q2,{...r,ref:t,className:Ux([[K2.root,r.className]]),ownerState:r})}),e5=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.75C6.54822 3.75 3.75 6.54822 3.75 10C3.75 13.4518 6.54822 16.25 10 16.25C13.4518 16.25 16.25 13.4518 16.25 10C16.25 6.54822 13.4518 3.75 10 3.75ZM2.25 10C2.25 5.71979 5.71979 2.25 10 2.25C14.2802 2.25 17.75 5.71979 17.75 10C17.75 11.87 17.0877 13.5853 15.9848 14.9242L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L14.9242 15.9848C13.5853 17.0877 11.87 17.75 10 17.75C5.71979 17.75 2.25 14.2802 2.25 10Z"})));const t5=cb(SC)`
margin-inline-end: ${({theme:e})=>e.spacing(2)};
`,r5=cb(fL)`
width: ${({expanded:e})=>e?"250px":"0"};
opacity: ${({expanded:e})=>e?1:0};
transition: all 300ms ease;
& input {
width: 250px;
height: 40px;
margin-inline-end: ${({theme:e})=>e.spacing(2)};
padding-inline-start: 40px;
border: 1px solid ${({theme:e})=>e.palette.secondary.main};
border-radius: ${({theme:e})=>e.shape.borderRadius}px;
::placeholder {
opacity: 1;
color: ${({theme:e})=>e.palette.secondary.main};
font-size: 14px;
font-style: normal;
font-weight: 500;
letter-spacing: 0.4px;
}
:focus {
border: 2px solid ${({theme:e})=>e.palette.secondary.main};
box-shadow: none;
}
}
& fieldset {
display: none;
}
.MuiInputAdornment-positionStart {
position: relative;
left: 40px;
}
`,n5=()=>{const{search:e,setSearch:t,loading:r}=B2(),[o,a]=(0,n.useState)(!1),s=(0,n.useRef)(null),l=KL(e=>{yh("search_triggered",{input_txt:e})},1e3);if(r)return!1;const c=o||""!==e;return(0,i.jsxs)("div",{style:{position:"relative",display:"inline-block"},children:[!c&&(0,i.jsx)(t5,{onClick:()=>{a(!0),s.current?.focus()},variant:"text",color:"secondary",size:"medium",startIcon:(0,i.jsx)(e5,{fontSize:"small",role:"presentation"}),children:(0,pA.__)("Search","pojo-accessibility")}),(0,i.jsx)(r5,{inputRef:s,variant:"outlined",size:"medium",type:"search","aria-hidden":!c,expanded:c,"aria-label":(0,pA.__)("Search scanned URLs","pojo-accessibility"),placeholder:(0,pA.__)("Page URL or name","pojo-accessibility"),onBlur:()=>a(!1),value:e,onChange:e=>{t(e.target.value),l(e.target.value)},inputProps:{tabIndex:c?"0":"-1"},InputProps:{startAdornment:(0,i.jsx)(ZR,{position:"start",children:(0,i.jsx)(e5,{fontSize:"small",role:"presentation"})})}})]})},o5=cb(v_)`
.MuiPaper-root {
min-width: 195px;
margin-top: ${({theme:e})=>e.spacing(1)};
}
.MuiList-root {
padding-top: ${({theme:e})=>e.spacing(1.25)};
padding-bottom: ${({theme:e})=>e.spacing(1.25)};
}
`,i5=cb(k_)`
padding-top: 0;
padding-bottom: 0;
padding-inline-start: ${({theme:e})=>e.spacing(1.25)};
padding-inline-end: ${({theme:e})=>e.spacing(.75)};
`,a5=cb(SC)`
width: 100%;
`,s5=cb(Sm)`
display: flex;
justify-content: space-between;
align-items: center;
`,l5=cb(Sm)`
display: flex;
align-items: center;
`,c5=()=>{const{postTypes:e,loading:t}=B2(),r=Hj({variant:"popover",popupId:"myAccountMenu"});return(0,i.jsxs)(s5,{children:[(0,i.jsx)(Vw,{variant:"h6",as:"h2",children:(0,pA.__)("Scanned URLs","pojo-accessibility")}),(0,i.jsxs)(l5,{children:[(0,i.jsx)(n5,{}),(0,i.jsx)(SC,{size:"medium",color:"info",variant:"contained",endIcon:r.isOpen?(0,i.jsx)(Z2,{fontSize:"small"}):(0,i.jsx)(Ej,{fontSize:"small"}),disabled:t||!e,...Dj(r),children:(0,pA.__)("New scan","pojo-accessibility")}),(0,i.jsx)(o5,{MenuListProps:{dense:!0},...Nj(r),onClose:r.close,children:Object.values(e).map(e=>(0,i.jsx)(i5,{shape:"rounded",onClick:t=>((e,t,r)=>{e.preventDefault(),window.open(t,"_blank"),yh(Sh,{cta_text:`new_scan_${r}`,source:"main_table_cta"})})(t,e.url,e.label),children:(0,i.jsxs)(a5,{href:e.url,target:"_blank",children:[(0,i.jsx)(J2,{primary:e.label,sx:{whiteSpace:"nowrap"}}),(0,i.jsx)(G2,{children:(0,i.jsx)(vS,{fontSize:"small",role:"presentation"})})]})},e.label))})]})]})};var u5=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.08961 4.0956C10.0932 3.02269 12.4216 2.72496 14.6307 3.25921C16.8397 3.79346 18.7748 5.1223 20.0667 6.99219C21.3585 8.86208 21.9168 11.1421 21.6349 13.3973C21.353 15.6525 20.2507 17.725 18.5383 19.2194C16.8259 20.7137 14.6233 21.5254 12.3506 21.4994C10.078 21.4734 7.89454 20.6117 6.21673 19.0786C4.53891 17.5456 3.48423 15.4484 3.25392 13.1874C3.21194 12.7753 3.51197 12.4072 3.92405 12.3652C4.33614 12.3233 4.70422 12.6233 4.7462 13.0354C4.93916 14.9298 5.82281 16.6868 7.22855 17.9713C8.63428 19.2558 10.4637 19.9777 12.3678 19.9995C14.2719 20.0212 16.1173 19.3412 17.552 18.0892C18.9867 16.8372 19.9103 15.1008 20.1464 13.2113C20.3826 11.3218 19.9149 9.41147 18.8325 7.84481C17.7502 6.27814 16.1289 5.16479 14.2781 4.71718C12.4272 4.26956 10.4764 4.51901 8.79772 5.41794C7.44561 6.14199 6.34633 7.24658 5.62839 8.58361H8.72228C9.13649 8.58361 9.47228 8.91939 9.47228 9.33361C9.47228 9.74782 9.13649 10.0836 8.72228 10.0836H4.48963C4.47805 10.0839 4.46644 10.0839 4.4548 10.0836H4.00006C3.58584 10.0836 3.25006 9.74782 3.25006 9.33361V4.61139C3.25006 4.19717 3.58584 3.86139 4.00006 3.86139C4.41427 3.86139 4.75006 4.19717 4.75006 4.61139V7.1337C5.58912 5.86995 6.73269 4.82222 8.08961 4.0956ZM12.4528 8.27753C12.867 8.27753 13.2028 8.61332 13.2028 9.02753V12.4946L14.872 14.1639C15.1649 14.4568 15.1649 14.9316 14.872 15.2245C14.5792 15.5174 14.1043 15.5174 13.8114 15.2245L11.9225 13.3356C11.7818 13.195 11.7028 13.0042 11.7028 12.8053V9.02753C11.7028 8.61332 12.0386 8.27753 12.4528 8.27753Z"})));function d5(e){return bm("MuiLinearProgress",e)}xm("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const p5=["className","color","value","valueBuffer","variant"];let h5,f5,m5,g5,y5,v5,b5=e=>e;const x5=(0,Hb.i7)(h5||(h5=b5`
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
`)),w5=(0,Hb.i7)(f5||(f5=b5`
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
`)),C5=(0,Hb.i7)(m5||(m5=b5`
0% {
opacity: 1;
background-position: 0 -23px;
}
60% {
opacity: 0;
background-position: 0 -23px;
}
100% {
opacity: 1;
background-position: -200px -23px;
}
`)),A5=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,gf.a)(e.palette[t].main,.62):(0,gf.e$)(e.palette[t].main,.5),k5=Wg("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${jx(r.color)}`],t[r.variant]]}})(({ownerState:e,theme:t})=>(0,Yh.A)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:A5(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"})),S5=Wg("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${jx(r.color)}`]]}})(({ownerState:e,theme:t})=>{const r=A5(t,e.color);return(0,Yh.A)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},(0,Hb.AH)(g5||(g5=b5`
animation: ${0} 3s infinite linear;
`),C5)),_5=Wg("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${jx(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>(0,Yh.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"}),({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,Hb.AH)(y5||(y5=b5`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
`),x5)),M5=Wg("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${jx(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>(0,Yh.A)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:A5(t,e.color),transition:"transform .4s linear"}),({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,Hb.AH)(v5||(v5=b5`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
`),w5)),j5=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiLinearProgress"}),{className:n,color:o="primary",value:a,valueBuffer:s,variant:l="indeterminate"}=r,c=(0,Kh.A)(r,p5),u=(0,Yh.A)({},r,{color:o,variant:l}),d=(e=>{const{classes:t,variant:r,color:n}=e;return Fg({root:["root",`color${jx(n)}`,r],dashed:["dashed",`dashedColor${jx(n)}`],bar1:["bar",`barColor${jx(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${jx(n)}`,"buffer"===r&&`color${jx(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]},d5,t)})(u),p=fy(),h={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){h["aria-valuenow"]=Math.round(a),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let e=a-100;p&&(e=-e),f.bar1.transform=`translateX(${e}%)`}if("buffer"===l&&void 0!==s){let e=(s||0)-100;p&&(e=-e),f.bar2.transform=`translateX(${e}%)`}return(0,i.jsxs)(k5,(0,Yh.A)({className:Jh(d.root,n),ownerState:u,role:"progressbar"},h,{ref:t},c,{children:["buffer"===l?(0,i.jsx)(S5,{className:d.dashed,ownerState:u}):null,(0,i.jsx)(_5,{className:d.bar1,ownerState:u,style:f.bar1}),"determinate"===l?null:(0,i.jsx)(M5,{className:d.bar2,ownerState:u,style:f.bar2})]}))}),R5=j5;var E5=Gh().forwardRef((e,t)=>Gh().createElement(R5,{...e,ref:t}));function I5(e){return bm("MuiTableContainer",e)}xm("MuiTableContainer",["root"]);const L5=["className","component"],P5=Wg("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),T5=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,a=(0,Kh.A)(r,L5),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},I5,t)})(s);return(0,i.jsx)(P5,(0,Yh.A)({ref:t,as:o,className:Jh(l.root,n),ownerState:s},a))});var O5=Gh().forwardRef((e,t)=>Gh().createElement(T5,{...e,ref:t}));function D5(e){return bm("MuiTableFooter",e)}xm("MuiTableFooter",["root"]);const N5=["className","component"],z5=Wg("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),F5={variant:"footer"},B5="tfoot",H5=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableFooter"}),{className:n,component:o=B5}=r,a=(0,Kh.A)(r,N5),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},D5,t)})(s);return(0,i.jsx)(W1.Provider,{value:F5,children:(0,i.jsx)(z5,(0,Yh.A)({as:o,className:Jh(l.root,n),ref:t,role:o===B5?null:"rowgroup",ownerState:s},a))})});var V5=Gh().forwardRef((e,t)=>Gh().createElement(H5,{...e,ref:t}));const $5={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",whiteSpace:"nowrap",clipPath:"inset(100%)",clip:"rect(0 0 0 0)",overflow:"hidden"},W5=({children:e})=>(0,n.isValidElement)(e)?(0,n.cloneElement)(e,{style:{...e.props.style||{},...$5}}):(console.warn("VisuallyHidden expects a single valid React element as a child."),null),Z5=(0,n.memo)(()=>(0,i.jsxs)(Ak,{speed:Pk.SPEED,foregroundColor:Pk.FOREGROUND_COLOR,height:501,width:1056,children:[(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"18",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"18",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"18",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"18",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 56.5h1056"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"78",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"78",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"78",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"78",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"50",height:"30",x:"861",y:"73",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"113",height:"30",x:"927",y:"73",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 119.5h1056"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"141",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"141",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"141",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"141",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"50",height:"30",x:"861",y:"136",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"113",height:"30",x:"927",y:"136",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 182.5h1056"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"204",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"204",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"204",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"204",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"50",height:"30",x:"861",y:"199",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"113",height:"30",x:"927",y:"199",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 245.5h1056"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"267",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"267",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"267",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"267",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"50",height:"30",x:"861",y:"262",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"113",height:"30",x:"927",y:"262",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 308.5h1056"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"330",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"330",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"330",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"330",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"50",height:"30",x:"861",y:"325",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"113",height:"30",x:"927",y:"325",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 371.5h1056"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"393",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"393",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"393",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"393",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"50",height:"30",x:"861",y:"388",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"113",height:"30",x:"927",y:"388",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 434.5h1056"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"16",y:"456",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"188",height:"20",x:"164",y:"456",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"116",height:"20",x:"384",y:"456",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"192",height:"20",x:"532",y:"456",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"50",height:"30",x:"861",y:"451",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("rect",{width:"113",height:"30",x:"927",y:"451",fill:"#E4E4E4",fillOpacity:".5",rx:"4"}),(0,i.jsx)("path",{stroke:"#000",strokeOpacity:".12",d:"M0 497.5h1056"})]})),U5=(0,n.memo)(()=>(0,i.jsx)(Sm,{children:(0,i.jsx)(Z5,{})}));var q5=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.55012 4.45178C9.23098 3.48072 11.1845 3.08925 13.1097 3.33767C15.035 3.58609 16.8251 4.46061 18.2045 5.82653C19.5838 7.19245 20.4757 8.97399 20.743 10.8967C20.8 11.307 20.5136 11.6858 20.1033 11.7428C19.6931 11.7998 19.3142 11.5135 19.2572 11.1032C19.0353 9.50635 18.2945 8.02677 17.149 6.89236C16.0035 5.75795 14.5167 5.03165 12.9178 4.82534C11.3189 4.61902 9.69644 4.94414 8.30047 5.75061C7.24361 6.36117 6.36093 7.22198 5.72541 8.24995H8.00009C8.41431 8.24995 8.75009 8.58574 8.75009 8.99995C8.75009 9.41417 8.41431 9.74995 8.00009 9.74995H4.51686C4.5055 9.75021 4.49412 9.75021 4.48272 9.74995H4.00009C3.58588 9.74995 3.25009 9.41417 3.25009 8.99995V4.99995C3.25009 4.58574 3.58588 4.24995 4.00009 4.24995C4.41431 4.24995 4.75009 4.58574 4.75009 4.99995V7.00691C5.48358 5.96916 6.43655 5.0951 7.55012 4.45178Z"}),Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.89686 12.2571C4.30713 12.2001 4.68594 12.4864 4.74295 12.8967C4.96487 14.4936 5.70565 15.9731 6.85119 17.1075C7.99673 18.242 9.48347 18.9683 11.0824 19.1746C12.6813 19.3809 14.3037 19.0558 15.6997 18.2493C16.7566 17.6387 17.6393 16.7779 18.2748 15.75H16.0001C15.5859 15.75 15.2501 15.4142 15.2501 15C15.2501 14.5857 15.5859 14.25 16.0001 14.25H19.4833C19.4947 14.2497 19.5061 14.2497 19.5175 14.25H20.0001C20.4143 14.25 20.7501 14.5857 20.7501 15V19C20.7501 19.4142 20.4143 19.75 20.0001 19.75C19.5859 19.75 19.2501 19.4142 19.2501 19V16.993C18.5166 18.0307 17.5636 18.9048 16.4501 19.5481C14.7692 20.5192 12.8157 20.9107 10.8904 20.6622C8.9652 20.4138 7.17504 19.5393 5.79572 18.1734C4.4164 16.8074 3.52443 15.0259 3.25723 13.1032C3.20022 12.6929 3.48658 12.3141 3.89686 12.2571Z"})));const X5=({percentage:e,pageUrl:t})=>{const r=(0,jh.addQueryArgs)(t,{"open-ea11y-assistant":"1","open-ea11y-assistant-src":"Ally_dashboard"}),n=e=>{yh(Sh,{cta_text:e,source:"history_logs_list"})};return 100===e?(0,i.jsx)(G5,{size:"small",color:"secondary",variant:"outlined",href:r,onClick:()=>n("rescan_url"),target:"_blank",rel:"noreferrer",endIcon:(0,i.jsx)(q5,{}),children:(0,pA.__)("New scan","pojo-accessibility")}):(0,i.jsx)(G5,{size:"small",color:"secondary",variant:"outlined",href:r,onClick:()=>n("fix_issues"),target:"_blank",rel:"noreferrer",children:(0,pA.__)("Resolve issues","pojo-accessibility")})};X5.propTypes={percentage:PA().number.isRequired,pageUrl:PA().string.isRequired};const G5=cb(SC)`
min-width: 115px;
`,Y5=X5;var K5=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{d:"M6.90002 11.75C6.90002 12.5784 6.22845 13.25 5.40002 13.25C4.5716 13.25 3.90002 12.5784 3.90002 11.75C3.90002 10.9216 4.5716 10.25 5.40002 10.25C6.22845 10.25 6.90002 10.9216 6.90002 11.75Z"}),Xh.createElement("path",{d:"M13.5 11.75C13.5 12.5784 12.8285 13.25 12 13.25C11.1716 13.25 10.5 12.5784 10.5 11.75C10.5 10.9216 11.1716 10.25 12 10.25C12.8285 10.25 13.5 10.9216 13.5 11.75Z"}),Xh.createElement("path",{d:"M20.1 11.75C20.1 12.5784 19.4285 13.25 18.6 13.25C17.7716 13.25 17.1 12.5784 17.1 11.75C17.1 10.9216 17.7716 10.25 18.6 10.25C19.4285 10.25 20.1 10.9216 20.1 11.75Z"}))),Q5=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66005 6.72071C4.46747 8.15133 3.75 9.99188 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C14.0081 20.25 15.8487 19.5325 17.2793 18.34L5.66005 6.72071ZM6.72071 5.66005L18.34 17.2793C19.5325 15.8487 20.25 14.0081 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75C9.99188 3.75 8.15133 4.46747 6.72071 5.66005ZM2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12Z"})));const J5=Hb.AH`
.react-colorful {
position: relative;
display: flex;
flex-direction: column;
width: 200px;
height: 200px;
user-select: none;
cursor: default;
}
.react-colorful__saturation {
position: relative;
flex-grow: 1;
border-color: transparent; /* Fixes https://github.com/omgovich/react-colorful/issues/139 */
border-bottom: 12px solid #000;
border-radius: 8px 8px 0 0;
background-image:
linear-gradient(to top, #000, rgba(0, 0, 0, 0)),
linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}
.react-colorful__pointer-fill,
.react-colorful__alpha-gradient {
content: '';
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
pointer-events: none;
border-radius: inherit;
}
/* Improve elements rendering on light backgrounds */
.react-colorful__alpha-gradient,
.react-colorful__saturation {
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.react-colorful__hue,
.react-colorful__alpha {
position: relative;
height: 24px;
}
.react-colorful__hue {
background: linear-gradient(
to right,
#f00 0%,
#ff0 17%,
#0f0 33%,
#0ff 50%,
#00f 67%,
#f0f 83%,
#f00 100%
);
}
/* Round bottom corners of the last element: \`Hue\` for \`ColorPicker\` or \`Alpha\` for \`AlphaColorPicker\` */
.react-colorful__last-control {
border-radius: 0 0 8px 8px;
}
.react-colorful__interactive {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
border-radius: inherit;
outline: none;
/* Don't trigger the default scrolling behavior when the event is originating from this element */
touch-action: none;
}
.react-colorful__pointer {
position: absolute;
z-index: 1;
box-sizing: border-box;
width: 28px;
height: 28px;
transform: translate(-50%, -50%);
background-color: #fff;
border: 2px solid #fff;
border-radius: 50%;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.react-colorful__interactive:focus .react-colorful__pointer {
transform: translate(-50%, -50%) scale(1.1);
}
/* Chessboard-like pattern for alpha related elements */
.react-colorful__alpha,
.react-colorful__alpha-pointer {
background-color: #fff;
background-image: url('data:image/svg+xml,');
}
/* Display the saturation pointer over the hue one */
.react-colorful__saturation-pointer {
z-index: 3;
}
/* Display the hue pointer over the alpha one */
.react-colorful__hue-pointer {
z-index: 2;
}
`,e4=(cb(IP)`
position: relative;
width: 425px;
min-height: 100vh;
height: fit-content;
pointer-events: auto;
// Include color picker styles to styled components for prevent problem with cache
${J5}
`,cb(CO)`
& .MuiTabs-indicator {
background-color: ${({theme:e})=>e.palette.info.main};
}
& .MuiTab-root.Mui-selected {
color: ${({theme:e})=>e.palette.info.main};
font-weight: 400;
}
`,cb(ZT)`
padding: 0;
`,cb(MD)`
margin: ${({theme:e})=>`${e.spacing(3)} ${e.spacing(2)}`};
padding: ${({theme:e})=>e.spacing(2)};
border-radius: ${({theme:e})=>e.shape.borderRadius}px;
box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
`,cb(Sm)`
display: flex;
gap: ${({theme:e})=>e.spacing(1)};
align-items: center;
`,cb(Vw)`
font-size: 16px;
font-weight: 500;
line-height: 130%;
letter-spacing: 0.15px;
margin: 0;
.MuiChip-root {
margin-inline-start: ${({theme:e})=>e.spacing(1)};
font-weight: 400;
}
`,cb(Sm)`
padding: ${({theme:e})=>`${e.spacing(1)} ${e.spacing(1.5)}`};
`,cb(Sm)`
padding: ${({theme:e})=>`${e.spacing(1)} ${e.spacing(1.5)}`};
`,cb(LD)`
padding: 0 ${({theme:e})=>e.spacing(2)};
`,cb(Sm)`
display: flex;
gap: ${({theme:e})=>e.spacing(1)};
flex-direction: column;
padding: 0 ${({theme:e})=>e.spacing(2)};
`,cb(PN)`
transform: scale(1);
`,cb(vD)`
align-items: center;
/* @noflip */
direction: ltr;
& .MuiAlert-icon,
& .MuiAlert-content {
padding-top: 0;
display: flex;
}
`,cb(vD)`
${({disabled:e})=>e?"\n\t\tcursor: not-allowed;\n\t\t& * {\n\t\t\tpointer-events: none;\n\t\t}\n\t":""}
${({disabled:e,theme:t})=>e?`\n\t\t\t& * {\n\t\t\t\tcolor: ${t.palette.text.disabled};\n\t\t\t}\n\t\t\t& svg {\n\t\t\t\tfill: ${t.palette.text.disabled};\n\t\t\t} \n\t`:""}
`,cb(Sm)`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: ${({theme:e})=>e.spacing(2)};
padding-top: ${({theme:e})=>e.spacing(12)};
padding-bottom: ${({theme:e})=>e.spacing(6)};
`,cb(Sm)`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: ${({theme:e})=>e.spacing(2)};
margin-bottom: ${({theme:e})=>e.spacing(2)};
padding-inline: ${({theme:e})=>e.spacing(2)};
`,cb(Vw)`
max-width: 250px;
text-align: center;
margin-bottom: ${({theme:e})=>e.spacing(2)};
`,cb(IP)`
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: ${({theme:e})=>e.spacing(1.5)};
&:hover {
background-color: ${({theme:e})=>e.palette.action.hover};
}
`,cb(wC)`
font-weight: 400;
justify-content: start;
padding: 0;
&:focus .MuiPaper-root,
&:focus-visible .MuiPaper-root {
background-color: ${({theme:e})=>e.palette.action.hover};
}
`,cb(Sm)`
display: flex;
align-items: center;
gap: ${({theme:e})=>e.spacing(1.5)};
border: 1px solid ${({theme:e})=>e.palette.action.focus};
border-radius: ${({theme:e})=>e.shape.borderRadius}px;
padding-right: ${({theme:e})=>e.spacing(1.5)};
&:hover,
&:focus .MuiPaper-root,
&:focus-visible .MuiPaper-root {
background-color: ${({theme:e})=>e.palette.action.hover};
}
`,cb(wC)`
font-weight: 400;
justify-content: start;
padding: ${({theme:e})=>e.spacing(1.5)};
&:hover,
&:focus,
&:focus-visible {
background-color: transparent;
}
`,cb(Sm)`
display: flex;
justify-content: space-between;
align-items: flex-start;
`,cb(Sm)`
display: flex;
justify-content: center;
width: 100%;
gap: ${({theme:e})=>e.spacing(1)};
`,cb(Sm)`
display: flex;
flex-direction: column;
gap: ${({theme:e})=>e.spacing(1)};
`,cb(J2)`
color: ${({theme:e})=>e.palette.text.disabled};
`),t4=(cb(Q5)`
transform: rotate(-45deg);
`,cb(Sm)`
display: flex;
flex-direction: column;
gap: ${({theme:e})=>e.spacing(3)};
`,cb(vD)`
padding: ${({theme:e})=>`${e.spacing(1)} ${e.spacing(1.5)};`};
& .MuiAlert-content {
padding-top: 0;
}
& .MuiAlert-content > div {
display: block;
}
`,cb(nS)`
margin-left: ${({theme:e})=>e.spacing(1)};
height: 26px;
width: 26px;
.MuiChip-label {
padding: 0;
}
`,({pageUrl:e,remediationCount:t})=>{const[r,o]=(0,n.useState)(!1),a=(0,n.useRef)(null),s=(0,jh.addQueryArgs)(e,{"open-ea11y-assistant":"1","open-ea11y-assistant-src":"Ally_dashboard"}),l=(0,jh.addQueryArgs)(e,{"open-ea11y-manage":"1","open-ea11y-assistant-src":"Ally_dashboard"}),c=()=>o(!1),u=e=>{yh("scan_log_actions_button_clicked",{action:e})};return(0,i.jsxs)(Sm,{children:[(0,i.jsx)(pk,{id:"menu-button","aria-controls":r?"assistant-menu":void 0,"aria-expanded":r?"true":void 0,"aria-haspopup":"true",onClick:()=>o(!0),ref:a,"aria-label":(0,pA.__)("Menu","pojo-accessibility"),children:(0,i.jsx)(K5,{})}),(0,i.jsxs)(v_,{open:r,id:"assistant-menu",anchorEl:a.current,container:a.current,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},MenuListProps:{"aria-labelledby":"menu-button"},PaperProps:{style:{overflow:"visible"}},disablePortal:!0,children:[(0,i.jsxs)(k_,{component:"a",href:s,target:"_blank",rel:"noreferrer",onClick:()=>{u("scan")},dense:!0,children:[(0,i.jsx)(G2,{children:(0,i.jsx)(q5,{})}),(0,i.jsx)(J2,{children:(0,pA.__)("Rescan","pojo-accessibility")})]}),t<1?(0,i.jsx)(kj,{arrow:!0,placement:"left",title:(0,pA.__)("You don’t have any fixes to manage just yet.","pojo-accessibility"),PopperProps:{disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,-16]}}]},children:(0,i.jsxs)(k_,{dense:!0,children:[(0,i.jsx)(G2,{children:(0,i.jsx)(cT,{color:"disabled"})}),(0,i.jsx)(e4,{children:(0,pA.__)("Manage fixes","pojo-accessibility")})]})}):(0,i.jsxs)(k_,{component:"a",href:l,target:"_blank",rel:"noreferrer",onClick:()=>{c(),u("manage fixes")},dense:!0,children:[(0,i.jsx)(G2,{children:(0,i.jsx)(cT,{})}),(0,i.jsx)(J2,{children:(0,pA.__)("Manage fixes","pojo-accessibility")})]})]})]})});t4.propTypes={pageUrl:PA().string.isRequired,remediationCount:PA().number.isRequired};const r4=cb(L0)``,n4=()=>{const{scannerResults:e,page:t,setPage:r,setRowsPerPage:n,rowsPerPage:o,loading:a}=B2();return a?null:(0,i.jsx)(r4,{count:e.length,page:t,onPageChange:(e,t)=>{r(t)},rowsPerPage:o,onRowsPerPageChange:e=>{n(e.target.value)},colspan:"6",align:"right"})},o4=({color:e,percentage:t})=>(0,i.jsx)(nS,{size:"tiny",color:e,variant:"standard",label:`${t}%`}),i4=({percentage:e})=>e<=25?(0,i.jsx)(o4,{color:"error",percentage:e}):e>25&&e<=60?(0,i.jsx)(o4,{color:"warning",percentage:e}):e>60&&e<100?(0,i.jsx)(o4,{color:"default",percentage:e}):(0,i.jsx)(LC,{fontSize:"small",color:"success"});i4.propTypes={percentage:PA().number.isRequired};const a4=i4,s4=({content:e,children:t})=>(0,i.jsx)(kj,{title:e,direction:"top",arrow:!0,children:t||(0,i.jsx)(Cz,{tabIndex:"0",fontSize:"tiny",sx:{cursor:"pointer"}})});s4.propTypes={content:PA().string.isRequired,children:PA().node};const l4=s4,c4=({scannerResults:e,loading:t})=>{const[r,o]=(0,n.useState)({}),a=e=>{const t=new Date(e);return(0,XJ.dateI18n)((0,pA.__)("d.m.Y, H:i","pojo-accessibility"),t,void 0)};return t?(0,i.jsx)(u4,{children:(0,i.jsx)(U5,{})}):(0,i.jsx)(u4,{children:(0,i.jsxs)($1,{"aria-label":(0,pA.__)("Scan results","pojo-accessibility"),children:[(0,i.jsx)(d0,{children:(0,i.jsxs)(H0,{children:[(0,i.jsx)(o0,{sx:{width:"148px"},children:(0,pA.__)("Page","pojo-accessibility")}),(0,i.jsx)(o0,{sx:{width:"220px"},children:(0,pA.__)("URL","pojo-accessibility")}),(0,i.jsx)(o0,{sx:{width:"148px"},children:(0,pA.__)("Last scan","pojo-accessibility")}),(0,i.jsx)(o0,{sx:{width:"220px"},children:(0,pA.__)("Issues resolved","pojo-accessibility")}),(0,i.jsx)(o0,{children:(0,i.jsx)(W5,{children:(0,i.jsx)(Vw,{as:"span",children:(0,pA.__)("Actions","pojo-accessibility")})})})]})}),(0,i.jsx)(K1,{children:e.map((e,t)=>{const s=e.issues_total?Math.round(e.issues_fixed/e.issues_total*100):0;return(0,i.jsxs)(n.Fragment,{children:[(0,i.jsxs)(H0,{children:[(0,i.jsx)(g4,{component:"th",scope:"row",children:e.page_title}),(0,i.jsx)(y4,{children:e.page_url}),(0,i.jsx)(g4,{children:a(e.last_scan)}),(0,i.jsx)(y4,{children:(0,i.jsxs)(d4,{children:[(0,i.jsx)(f4,{value:s,variant:"determinate",color:"secondary"}),e.issues_fixed,"/",e.issues_total,(0,i.jsx)(a4,{percentage:s})]})}),(0,i.jsx)(o0,{children:(0,i.jsxs)(p4,{children:[(0,i.jsx)(l4,{content:(0,pA.__)("View scan history","pojo-accessibility"),children:(0,i.jsx)("span",{role:"none",children:(0,i.jsx)(h4,{color:"secondary",size:"small",startIcon:(0,i.jsx)(u5,{}),endIcon:r[t]?(0,i.jsx)(Z2,{}):(0,i.jsx)(Ej,{}),"aria-label":(0,pA.__)("View scan history","pojo-accessibility"),disabled:!e.scans.length,onClick:()=>(e=>{const t=!r[e];o(r=>({...r,[e]:t})),yh("history_logs_button_clicked",{state:t?"open":"closed"})})(t)})})}),(0,i.jsx)(Y5,{percentage:s,pageUrl:e.page_url}),(0,i.jsx)(t4,{pageUrl:e.page_url,remediationCount:e.remediation_count})]})})]}),r[t]&&e.scans.map((t,r)=>{const n=t.issues_total?Math.round(t.issues_fixed/t.issues_total*100):0;return(0,i.jsxs)(m4,{children:[(0,i.jsx)(o0,{colSpan:2}),(0,i.jsx)(g4,{children:a(t.date)}),(0,i.jsx)(y4,{children:(0,i.jsxs)(d4,{children:[(0,i.jsx)(f4,{value:n,variant:"determinate",color:"secondary"}),t.issues_fixed,"/",t.issues_total,(0,i.jsx)(a4,{percentage:n})]})}),(0,i.jsx)(o0,{})]},`${e.page_title}-scan-${r}`)})]},e.id)})}),e.length>0&&(0,i.jsx)(V5,{children:(0,i.jsx)(H0,{disableDivider:!0,children:(0,i.jsx)(n4,{})})})]})})};c4.propTypes={scannerResults:PA().array.isRequired,loading:PA().bool.isRequired};const u4=cb(O5)`
margin-top: ${({theme:e})=>e.spacing(3)};
`,d4=cb(Sm)`
display: flex;
align-items: center;
gap: ${({theme:e})=>e.spacing(1)};
`,p4=cb(Sm)`
display: flex;
align-items: center;
justify-content: flex-end;
gap: ${({theme:e})=>e.spacing(2)};
`,h4=cb((0,n.forwardRef)((e,t)=>(0,i.jsx)(SC,{ref:t,...e})))`
min-width: 50px;
max-width: 50px;
span {
margin: 0;
}
span:first-of-type {
margin-inline-end: ${({theme:e})=>e.spacing(1)};
}
`,f4=cb(E5)`
width: 89px;
`,m4=cb(H0)`
background-color: #f9f9f9;
`,g4=cb(o0)`
max-width: 148px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`,y4=cb(o0)`
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`,v4=c4,b4=(0,n.memo)(()=>(0,i.jsx)(Ak,{speed:Pk.SPEED,foregroundColor:Pk.FOREGROUND_COLOR,height:40,width:72,children:(0,i.jsx)("rect",{width:"72",height:"40",fill:"none",rx:"4"})})),x4=(0,n.memo)(()=>(0,i.jsx)(Sm,{children:(0,i.jsx)(b4,{})})),w4=cb(Sm)`
display: flex;
justify-content: space-between;
align-items: center;
padding: ${({theme:e})=>`${e.spacing(2)} ${e.spacing(2.5)}`};
border-radius: ${({theme:e})=>2*e.shape.borderRadius}px;
background: ${({theme:e})=>e.palette.background.default};
:nth-of-type(1) {
grid-area: 1 / 1 / 2 / 2;
}
:nth-of-type(2) {
grid-area: 1 / 2 / 2 / 3;
}
:nth-of-type(3) {
grid-area: 2 / 1 / 3 / 3;
}
:nth-of-type(4) {
grid-area: 1 / 3 / 3 / 4;
}
@media screen and (max-width: 960px) {
:nth-of-type(1) {
grid-area: 1 / 1 / 2 / 2;
}
:nth-of-type(2) {
grid-area: 2 / 1 / 3 / 2;
}
:nth-of-type(3) {
grid-area: 3 / 1 / 4 / 2;
}
:nth-of-type(4) {
grid-area: 4 / 1 / 5 / 2;
}
}
`,C4=cb(Sm)`
min-width: 150px;
min-height: 50px;
height: 100%;
`,A4=cb(Sm)`
margin-inline-start: ${({theme:e})=>e.spacing(2)};
@media screen and (max-width: 1200px) {
& {
display: none;
}
}
`,k4=cb(Vw)`
display: flex;
justify-content: flex-start;
align-items: center;
margin: 0;
margin-bottom: ${({spacing:e,theme:t})=>t.spacing(e||2)};
color: ${({theme:e})=>e.palette.text.primary};
font-feature-settings:
'liga' off,
'clig' off;
font-size: 16px;
font-weight: 500;
line-height: 130%;
letter-spacing: 0.15px;
& svg {
margin-inline-start: ${({theme:e})=>e.spacing(1)};
}
`,S4=(Boolean(window.ea11yScannerData?.isRTL),window.ea11yScannerData?.planData?.plan?.name?.toLowerCase().includes("free"),window.ea11yScannerData,window.ea11yScannerData,window.ea11yScannerData,window.ea11yScannerData?.planData?.scannedPages?.allowed-window.ea11yScannerData?.planData?.scannedPages?.used>0||window,{altText:(0,pA.__)("Alternative text","pojo-accessibility"),dynamicContent:(0,pA.__)("Dynamic Content & ARIA","pojo-accessibility"),formsInputsError:(0,pA.__)("Forms & Input Errors","pojo-accessibility"),keyboardAssistiveTech:(0,pA.__)("Keyboard & Assistive Technologies","pojo-accessibility"),pageStructureNav:(0,pA.__)("Page Structure & Navigation","pojo-accessibility"),headingStructure:(0,pA.__)("Heading Structure","pojo-accessibility"),tables:(0,pA.__)("Tables","pojo-accessibility"),colorContrast:(0,pA.__)("Color contrast","pojo-accessibility"),other:(0,pA.__)("Other Accessibility Issues","pojo-accessibility")}),_4=((0,pA.__)("Clearly describe images so people using screen readers understand what's displayed.","pojo-accessibility"),(0,pA.__)("Label interactive content clearly, helping screen reader users navigate dynamic elements.","pojo-accessibility"),(0,pA.__)("Clearly label form fields and errors so people know exactly what's needed.","pojo-accessibility"),(0,pA.__)("Make sure people can fully use your site with only a keyboard, no mouse required.","pojo-accessibility"),(0,pA.__)("Use headings and clear structure to help people easily navigate your content.","pojo-accessibility"),(0,pA.__)("Headings help screen reader users and search engines read pages in the right order. The structure should be organized and each heading given a level.","pojo-accessibility"),(0,pA.__)("Give tables clear headers and captions so everyone can easily understand the data.","pojo-accessibility"),(0,pA.__)("Text and background lightness can hinder readability. Depending on text size, you may need to adjust the contrast level to improve accessibility.","pojo-accessibility"),(0,pA.__)("Find and resolve additional accessibility issues to ensure your site works for everyone.","pojo-accessibility"),{keyboardAssistiveTech:(0,pA.__)("Keyboard/Assistive","pojo-accessibility"),dynamicContent:(0,pA.__)("Dynamic/Aria","pojo-accessibility")}),M4=({issueByCategory:e})=>{const t=(()=>{const t=Object.entries(e||{}).map(([e,t])=>({key:e,title:_4[e]||S4[e]||e,count:t||0})).sort((e,t)=>t.count-e.count),r=t.reduce((e,t)=>e+t.count,0),n=t.slice(0,6),o=t.slice(6).reduce((e,t)=>e+t.count,0),i=[...n];return(o>0||t.length>6)&&i.push({key:"other",title:(0,pA.__)("Other","pojo-accessibility"),count:o}),i.map(e=>({...e,percentage:r>0?Math.round(e.count/r*100):0}))})();return(0,i.jsx)(i.Fragment,{children:t.map(({key:e,title:t,percentage:r},n)=>(0,i.jsxs)(j4,{colorIndex:n,children:[(0,i.jsx)(Vw,{variant:"body2",children:t}),(0,i.jsx)(R4,{variant:"subtitle2",as:"p",children:0===r?"-":`${r}%`})]},e))})};M4.propTypes={issueByCategory:PA().object.isRequired};const j4=cb(Sm)`
display: flex;
justify-content: flex-start;
align-items: center;
gap: ${({theme:e})=>e.spacing(1)};
margin-inline-start: ${({theme:e})=>e.spacing(.5)};
&:not(:last-of-type) {
margin-bottom: ${({theme:e})=>e.spacing(1)};
}
&::before {
content: '';
width: 10px;
height: 10px;
margin-inline-end: ${({theme:e})=>e.spacing(1)};
border-radius: 100%;
background-color: ${({colorIndex:e})=>{const t=[kk.ColorBlue900,kk.ColorBlue700,kk.ColorBlue500,kk.ColorBlue400,kk.ColorBlue300,kk.ColorBlue200,kk.ColorBlue100];return t[e%t.length]}};
}
`,R4=cb(Vw)`
margin: 0;
margin-inline-start: auto;
color: ${({theme:e})=>e.palette.text.primary};
font-size: 14px;
font-weight: 500;
line-height: 130%;
letter-spacing: 0.1px;
min-width: 50px;
text-align: left;
`,E4=M4,I4=e=>{const{itemData:t,series:r}=e,n=r.data[t.dataIndex];return(0,i.jsxs)(IP,{sx:{p:2,pb:1},children:[(0,i.jsx)(L4,{variant:"body2",color:"text.tertiary",itemColor:n.color,children:n.label}),(0,i.jsx)(Vw,{variant:"h6",children:`${n.value}%`})]})},L4=cb(Vw)`
position: relative;
padding-left: 18px;
&:before {
content: '';
position: absolute;
left: 0;
top: calc(50% - 5px);
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: ${e=>e.itemColor};
}
`,P4=({issueByCategory:e,loading:t,noResultsState:r})=>{const n=(()=>{const n=Object.entries(e||{}).map(([e,t])=>({key:e,title:S4[e]||e,count:t||0})).sort((e,t)=>t.count-e.count),o=n.reduce((e,t)=>e+t.count,0),i=n.slice(0,6),a=n.slice(6).reduce((e,t)=>e+t.count,0),s=[...i];return(a>0||n.length>6)&&s.push({key:"other",title:(0,pA.__)("Other","pojo-accessibility"),count:a}),t||0===o||r?[{label:"Loading...",value:100,color:"#f3f3f4"}]:s.map((e,t)=>{const r=o>0?parseFloat((e.count/o*100).toFixed(2)):0,n=[kk.ColorBlue900,kk.ColorBlue700,kk.ColorBlue500,kk.ColorBlue400,kk.ColorBlue300,kk.ColorBlue200,kk.ColorBlue100][t]||kk.ColorBlue100;return{label:`${e.title}: ${r}%`,value:r,color:n,categoryTitle:e.title,categoryCount:e.count}})})();return(0,i.jsx)(Sm,{sx:{width:200,height:200,display:"flex",justifyContent:"center",alignItems:"center",marginRight:1.5},children:(0,i.jsx)(I1,{series:[{data:n,innerRadius:66,outerRadius:80,paddingAngle:0,cornerRadius:0,startAngle:0,endAngle:360,cx:100,cy:100}],slots:{itemContent:I4},width:200,height:200,slotProps:{legend:{hidden:!0}},sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",[`& .${g1.root}`]:{display:"none"}}})})};P4.propTypes={issueByCategory:PA().shape({altText:PA().number,dynamicContent:PA().number,formsInputsError:PA().number,keyboardAssistiveTech:PA().number,pageStructureNav:PA().number,tables:PA().number,colorContrast:PA().number,other:PA().number}),loading:PA().bool.isRequired};const T4=P4,O4=({stats:e,loading:t,noResultsState:r})=>(0,i.jsxs)(w4,{className:"resolved-issues-by-category",children:[(0,i.jsxs)(C4,{children:[(0,i.jsxs)(k4,{variant:"subtitle1",as:"p",spacing:3,children:[(0,pA.__)("Resolved issues by category","pojo-accessibility"),(0,i.jsx)(l4,{content:(0,pA.__)("Track how many accessibility issues you've resolved in each category.","pojo-accessibility")})]}),t?(0,i.jsx)(x4,{}):(0,i.jsx)(E4,{issueByCategory:e.issue_by_category})]}),(0,i.jsx)(A4,{children:(0,i.jsx)(T4,{loading:t,issueByCategory:e.issue_by_category,noResultsState:r})})]}),D4=({issueLevels:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(N4,{children:[(0,i.jsx)(Vw,{variant:"body2",children:(0,pA.__)("Level A","pojo-accessibility")}),(0,i.jsx)(z4,{variant:"subtitle2",as:"p",children:(0,pA.sprintf)(
// Translators: %s count of issues
// Translators: %s count of issues
(0,pA.__)("%s issues","pojo-accessibility"),e.a)})]}),(0,i.jsxs)(N4,{children:[(0,i.jsx)(Vw,{variant:"body2",children:(0,pA.__)("Level AA","pojo-accessibility")}),(0,i.jsx)(z4,{variant:"subtitle2",as:"p",children:(0,pA.sprintf)(
// Translators: %s count of issues
// Translators: %s count of issues
(0,pA.__)("%s issues","pojo-accessibility"),e.aa)})]}),(0,i.jsxs)(N4,{children:[(0,i.jsx)(Vw,{variant:"body2",children:(0,pA.__)("Level AAA","pojo-accessibility")}),(0,i.jsx)(z4,{variant:"subtitle2",as:"p",children:(0,pA.sprintf)(
// Translators: %s count of issues
// Translators: %s count of issues
(0,pA.__)("%s issues","pojo-accessibility"),e.aaa)})]})]});D4.propTypes={issueLevels:PA().object.isRequired};const N4=cb(Sm)`
max-width: 160px;
display: flex;
justify-content: flex-start;
align-items: center;
margin-inline-start: ${({theme:e})=>e.spacing(.5)};
&:not(:last-of-type) {
margin-bottom: ${({theme:e})=>e.spacing(1)};
}
:first-of-type::before,
:nth-of-type(2)::before,
:last-of-type::before {
content: '';
width: 10px;
height: 10px;
margin-inline-end: ${({theme:e})=>e.spacing(1)};
border-radius: 100%;
}
:first-of-type::before {
background-color: #064e3b;
}
:nth-of-type(2)::before {
background-color: #10b981;
}
:last-of-type::before {
background-color: #a7f3d0;
}
`,z4=cb(Vw)`
margin: 0;
margin-inline-start: auto;
color: ${({theme:e})=>e.palette.text.primary};
font-size: 14px;
font-weight: 500;
line-height: 130%;
letter-spacing: 0.1px;
`,F4=D4,B4=({loading:e,value:t,firstSectorPercentage:r,secondSectorPercentage:n,thirdSectorPercentage:o,noResultsState:a})=>{const s=0===r&&0===n&&0===o;let l=[{label:"A",value:r,color:kk.ColorGreen900},{label:"AA",value:n,color:kk.ColorGreen500},{label:"AAA",value:o,color:kk.ColorGreen200}];return(e||a||s)&&(l=[{label:"No Issues",value:100,color:"#f3f3f4"}]),(0,i.jsxs)(Sm,{sx:{width:120,height:120,display:"flex",justifyContent:"center",alignItems:"center",marginRight:.5,position:"relative"},children:[(0,i.jsx)(I1,{series:[{data:l,innerRadius:40,outerRadius:52,cx:60,cy:60}],slots:{itemContent:I4},width:120,height:120,slotProps:{legend:{hidden:!0}},sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",[`& .${g1.root}`]:{display:"none"}}}),(0,i.jsx)(Sm,{sx:{position:"absolute",top:"55%",left:"53%",transform:"translate(-50%, -50%)",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,i.jsx)(Vw,{variant:"h4",as:"span",children:t})})]})};B4.propTypes={value:PA().oneOfType([PA().string,PA().node]).isRequired,firstSectorPercentage:PA().number.isRequired,secondSectorPercentage:PA().number,thirdSectorPercentage:PA().number,noResultsState:PA().bool};const H4=B4,V4=({stats:e,loading:t,noResultsState:r})=>{const n=e.issue_levels.a+e.issue_levels.aa+e.issue_levels.aaa,o=e.issue_levels.a?Math.round(e.issue_levels.a/n*100):0,a=e.issue_levels.aa?Math.round(e.issue_levels.aa/n*100):0,s=e.issue_levels.aaa?Math.round(e.issue_levels.aaa/n*100):0;return(0,i.jsxs)(w4,{className:"resolved-issues-by-level",children:[(0,i.jsxs)(C4,{children:[(0,i.jsxs)(k4,{variant:"subtitle1",as:"p",spacing:3,children:[(0,pA.__)("Resolved issues by level","pojo-accessibility"),(0,i.jsx)(l4,{content:(0,pA.__)("Track how many issues you've resolved for each WCAG level. Meeting these guidelines helps make your site more accessible and inclusive for all visitors.","pojo-accessibility")})]}),t?(0,i.jsx)(x4,{}):(0,i.jsx)(F4,{issueLevels:e.issue_levels})]}),(0,i.jsx)(A4,{children:(0,i.jsx)(H4,{loading:t,value:n.toString(),firstSectorPercentage:o,secondSectorPercentage:a,thirdSectorPercentage:s,noResultsState:r})})]})},$4=({stat:e,loading:t,title:r,tooltip:n})=>(0,i.jsx)(w4,{className:"scanned-urls",children:(0,i.jsxs)(C4,{children:[(0,i.jsxs)(k4,{variant:"subtitle1",as:"p",children:[r,(0,i.jsx)(l4,{content:n})]}),(0,i.jsx)(Vw,{variant:"h4",as:"p",children:t?(0,i.jsx)(x4,{}):e})]})}),W4=({stats:e,loading:t,noResultsState:r})=>{const n=e.issues_total-e.issues_fixed;return(0,i.jsxs)(Z4,{children:[(0,i.jsx)($4,{stat:e.scans,loading:t,title:(0,pA.__)("Scanned URLs","pojo-accessibility"),tooltip:(0,pA.__)("View how many URLs you've already scanned for accessibility issues. A URL can be any page on your site, like a blog post or product page.","pojo-accessibility")}),(0,i.jsx)($4,{stat:n,loading:t,title:(0,pA.__)("Open Issues","pojo-accessibility"),tooltip:(0,pA.__)("View the number of accessibility issues that still need to be resolved. These are issues found during your latest scans that haven't been fixed yet.","pojo-accessibility")}),(0,i.jsx)(V4,{stats:e,loading:t,noResultsState:r}),(0,i.jsx)(O4,{stats:e,loading:t,noResultsState:r})]})};W4.propTypes={stats:PA().object.isRequired,loading:PA().bool.isRequired,noResultsState:PA().bool};const Z4=cb(Sm)`
margin-top: ${({theme:e})=>e.spacing(3)};
display: grid;
grid-template-columns: 1fr 1fr 2fr;
grid-template-rows: 104px 206px;
grid-column-gap: ${({theme:e})=>e.spacing(2)};
grid-row-gap: ${({theme:e})=>e.spacing(2)};
@media screen and (max-width: 960px) {
grid-template-columns: 1fr;
grid-template-rows: repeat(4, 1fr);
}
`,U4=W4,q4=cb(Sm)`
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
max-height: 100%;
min-height: 50%;
overflow: auto;
`,X4=cb(Sm)`
background-color: #f3f3f4;
width: 100%;
`,G4=cb(KD)`
padding-top: ${({theme:e})=>e.spacing(4)};
padding-bottom: ${({theme:e})=>e.spacing(4)};
padding-left: ${({theme:e})=>e.spacing(4)};
padding-right: ${({theme:e})=>e.spacing(4)};
@media (min-width: ${({theme:e})=>e.breakpoints.values.xl}px) {
padding-left: 0;
padding-right: 0;
}
`,Y4=cb(KD)`
padding-top: ${({theme:e})=>e.spacing(4)};
padding-bottom: ${({theme:e})=>e.spacing(4)};
padding-left: ${({theme:e})=>e.spacing(4)};
padding-right: ${({theme:e})=>e.spacing(4)};
@media (min-width: ${({theme:e})=>e.breakpoints.values.xl}px) {
padding-left: 0;
padding-right: 0;
}
`,K4=()=>{const{stats:e,loading:t,period:r,scannerResults:o,getFilteredScannerResults:a,onPeriodChange:s}=B2();return(0,n.useEffect)(()=>{yh(vh,{page:"Dashboard"})},[]),t||o.length?t||!o.length||a().length?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(q4,{children:[(0,i.jsx)(X4,{children:(0,i.jsxs)(G4,{children:[(0,i.jsx)(D2,{period:r,onPeriodChange:s,loading:t}),(0,i.jsx)(U4,{stats:e,loading:t})]})}),(0,i.jsxs)(Y4,{children:[(0,i.jsx)(c5,{}),(0,i.jsx)(v4,{scannerResults:a(),loading:t})]})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(q4,{children:[(0,i.jsx)(X4,{children:(0,i.jsxs)(G4,{children:[(0,i.jsx)(D2,{period:r,onPeriodChange:s,loading:t}),(0,i.jsx)(U4,{stats:e,loading:t,noResultsState:!0})]})}),(0,i.jsxs)(Y4,{children:[(0,i.jsx)(c5,{}),(0,i.jsx)(v4,{scannerResults:a(),loading:t}),(0,i.jsx)(W2,{})]})]})}):(0,i.jsx)(q4,{children:(0,i.jsxs)(Y4,{children:[(0,i.jsx)(D2,{period:r,onPeriodChange:s,isEmpty:!0}),(0,i.jsx)(I2,{})]})})},Q4=()=>{const{selectedMenu:e,setSelectedMenu:t,accessibilityStatementData:r}=s();if(r?.link)return null;const n=(0,i.jsxs)(MD,{elevation:0,sx:{maxWidth:300},children:[(0,i.jsx)(HD,{title:(0,pA.__)("Accessibility statement generator","pojo-accessibility")}),(0,i.jsx)(LD,{children:(0,i.jsx)(Vw,{variant:"body2",color:"text.secondary",children:(0,pA.__)("Create your accessibility statement and page in seconds, reflecting your ongoing commitment to an accessible site.","pojo-accessibility")})}),(0,i.jsx)(pN,{children:(0,i.jsx)(wC,{size:"small",variant:"contained",color:"info",tabIndex:"0",onClick:()=>{"accessibility-statement"!==e&&t("accessibility-statement")},children:(0,pA.__)("Take me there","pojo-accessibility")})})]});return(0,i.jsx)(xF,{placement:"right",content:n,tabIndex:"0",children:(0,i.jsx)(Cz,{color:"info",sx:{ml:1}})})},J4=()=>{const{setSelectedMenu:e}=s(),{handleAnalyticsToggle:t,isAnalyticsEnabled:r}=Fh(),[o,a]=(0,n.useState)(!1);if(r)return null;const l=()=>{a(!0)},c=()=>{a(!1)},u=(0,i.jsxs)(MD,{elevation:0,sx:{maxWidth:300},children:[(0,i.jsx)(HD,{title:(0,pA.__)("Enable tracking to unlock analytics","pojo-accessibility")}),(0,i.jsx)(LD,{children:(0,i.jsx)(Vw,{variant:"body2",color:"text.secondary",children:(0,pA.__)("Get valuable insights into how visitors interact with your accessibility widget.","pojo-accessibility")})}),(0,i.jsx)(pN,{children:(0,i.jsx)(wC,{size:"small",variant:"contained",color:"info",tabIndex:"0",onClick:()=>{e("analytics"),t(),c()},children:(0,pA.__)("Enable tracking","pojo-accessibility")})})]});return(0,i.jsx)(xF,{placement:"right",content:u,tabIndex:"0",open:o,onClose:c,disableHoverListener:!1,disableFocusListener:!1,children:(0,i.jsx)(Cz,{color:"info",sx:{ml:1},onMouseEnter:l,onFocus:l})})},e3={scanner:{name:(0,pA.__)("Accessibility Assistant","pojo-accessibility"),key:"scanner",type:"heading"},scanOverview:{name:(0,pA.__)("Scans","pojo-accessibility"),key:"scan-overview",page:(0,i.jsx)(F2,{children:(0,i.jsx)(K4,{})}),icon:(0,i.jsx)(sT,{role:"img","aria-label":(0,pA.__)("Scan overview","pojo-accessibility"),"aria-hidden":!1,sx:{color:"common.black"}})},widget:{name:(0,pA.__)("Widget","pojo-accessibility"),key:"widget",type:"heading"},design:{name:(0,pA.__)("Design","pojo-accessibility"),key:"design",page:(0,i.jsx)(a2,{}),icon:(0,i.jsx)(HC,{role:"img","aria-label":(0,pA.__)("Design","pojo-accessibility"),"aria-hidden":!1})},capabilities:{name:(0,pA.__)("Capabilities","pojo-accessibility"),key:"capabilities",page:(0,i.jsx)(g2,{}),icon:(0,i.jsx)(cT,{role:"img","aria-label":(0,pA.__)("Capabilities","pojo-accessibility"),"aria-hidden":!1,size:"small",sx:{color:"common.black"}})},accessibilityStatement:{name:(0,pA.__)("Statement","pojo-accessibility"),key:"accessibility-statement",page:(0,i.jsx)(wz,{}),icon:(0,i.jsx)(lT,{role:"img","aria-label":(0,pA.__)("Statement","pojo-accessibility"),"aria-hidden":!1,size:"small",sx:{color:"common.black"}}),infotip:(0,i.jsx)(Q4,{})},analytics:{name:(0,pA.__)("Analytics","pojo-accessibility"),key:"analytics",page:(0,i.jsx)(i2,{}),proIcon:"analytics",icon:(0,i.jsx)(cA,{role:"img","aria-label":(0,pA.__)("Analytics","pojo-accessibility"),"aria-hidden":!1,size:"small",sx:{color:"common.black"}}),infotip:(0,i.jsx)(J4,{})}},t3=(cb(pz)`
justify-content: end;
align-items: center;
flex-direction: row;
background-color: ${({theme:e})=>e.palette.background.default};
gap: 10px;
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
`,()=>{const{selectedMenu:e,widgetMenuSettings:t,skipToContentSettings:r,iconDesign:n,iconPosition:o,hasChanges:a,hasError:l,setHasChanges:c}=s(),{save:u}=d(),{success:p,error:h}=m();return(0,i.jsx)(r3,{children:(0,i.jsx)(SC,{variant:"contained",color:"info",onClick:async()=>{let i={};"capabilities"===e.parent?i={ea11y_widget_menu_settings:t,ea11y_skip_to_content_settings:r}:"design"===e.parent&&(i={ea11y_widget_icon_settings:{style:n,position:o}});try{await u(i),p((0,pA.__)("Settings saved!","pojo-accessibility")),c(!1),yh("save_button_clicked",{savedData:i})}catch(e){h((0,pA.__)("Failed to save settings!","pojo-accessibility"))}},disabled:!a||Object.keys(l).some(e=>l[e]),children:(0,pA.__)("Save changes","pojo-accessibility")})})}),r3=cb(Sm)`
width: 100%;
display: flex;
justify-content: flex-end;
padding: ${({theme:e})=>e.spacing(2)};
border-top: 1px solid ${({theme:e})=>e.palette.divider};
`,n3=cb(sy)`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 600px;
max-width: 100%;
height: 530px;
background-color: ${({theme:e})=>e.palette.background.paper};
padding: 20px;
text-align: center;
border-radius: 4px;
`,o3=()=>{const{isOpen:e,close:t}=o(),{save:r}=d();(0,n.useEffect)(()=>{e&&yh("connect_success")},[e]);const a=async()=>{await r({ea11y_close_post_connect_modal:!0}),t()};return(0,i.jsx)(Hw,{open:e,onClose:a,children:(0,i.jsxs)(n3,{container:!0,sx:{boxShadow:24},role:"dialog","aria-modal":"true","aria-labelledby":"post-connect-modal-title","aria-describedby":"post-connect-modal-description",children:[(0,i.jsx)(rA,{}),(0,i.jsx)(Vw,{variant:"h5",color:"text.primary",marginTop:5,marginBottom:1,id:"post-connect-modal-title",children:(0,pA.__)("You're all set","pojo-accessibility")}),(0,i.jsx)(Vw,{variant:"body2",sx:{width:"500px",maxWidth:"100%"},color:"text.primary",marginBottom:5,id:"post-connect-modal-description",children:(0,pA.__)("Ally - Web Accessibility is now connected and ready to use on your site.","pojo-accessibility")}),(0,i.jsx)(SC,{variant:"contained",sx:{padding:"8px 22px",width:"300px"},onClick:a,color:"info",children:(0,pA.__)("Done","pojo-accessibility")})]})})};class i3 extends Xh.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}var a3=i3;const s3=`\n\x3c!-- wp:heading {"textAlign":"center","level":6} --\x3e\n${(0,pA.sprintf)((0,pA.__)("Accessibility Statement for %s","pojo-accessibility"),"{company_website}")}
\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.sprintf)((0,pA.__)("%s is committed to ensuring digital accessibility for people with disabilities. We are continually improving the user experience for everyone and applying the relevant accessibility standards.","pojo-accessibility"),"{company_name}")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:heading {"level":6} --\x3e\n${(0,pA.__)("Conformance status","pojo-accessibility")}
\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.__)("The Web Content Accessibility Guidelines (WCAG) defines requirements for designers and developers to improve accessibility for people with disabilities. It defines three levels of conformance: Level A, Level AA, and Level AAA.","pojo-accessibility")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.sprintf)((0,pA.__)("%s is making constant efforts to improve the accessibility of its site and services in the belief that it is our collective moral obligation to allow seamless, accessible, and unhindered use for those of us with disabilities.","pojo-accessibility"),"{company_name}")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.sprintf)((0,pA.__)("We aim to make all pages and content on %s accessible, but some content may not yet fully meet the highest accessibility standards. This could be due to challenges in identifying the most suitable technological solution.","pojo-accessibility"),"{company_website}")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.__)("We may revise this Statement periodically to reflect improvements or changes to our accessibility practices.","pojo-accessibility")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:heading {"level":6} --\x3e\n${(0,pA.__)("Feedback","pojo-accessibility")}
\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.sprintf)((0,pA.__)("We welcome your feedback on the accessibility of %s website. Please let us know if you encounter accessibility barriers on our website:","pojo-accessibility"),"{company_name}")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.sprintf)((0,pA.__)("E-mail: %s","pojo-accessibility"),"{company_email}")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.__)("We try to respond to feedback within 3–5 business days.","pojo-accessibility")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,pA.sprintf)((0,pA.__)("This statement was created on %s.","pojo-accessibility"),"{current_date}")}
\n\x3c!-- /wp:paragraph --\x3e`,l3=cb(fL)`
width: 100%;
.wp-admin & .MuiInputBase-input,
& .MuiInputBase-input:focus {
background-color: initial;
box-shadow: none;
border: 0;
color: inherit;
outline: 0;
padding: 16.5px 14px 16.5px 14px;
&.MuiInputBase-inputSizeSmall {
padding: 8.5px 14px 8.5px 14px;
}
height: 40px;
}
`,c3=({open:e,close:t})=>{const[r,o]=(0,n.useState)(!0),[a,l]=(0,n.useState)(!0),[c,u]=(0,n.useState)(!0),{success:p,error:h}=m(),{companyData:f,setCompanyData:g,setAccessibilityStatementData:y,setShowAccessibilityGeneratedInfotip:v}=s(),{save:b}=d(),x=f.company_name&&f.company_website&&f.company_email&&a&&r&&c,w=()=>{t()},C=(e,t)=>{const r={...f,[e]:t};g(r),((e,t)=>{switch(e){case"company_website":u(/^(https?:\/\/)?([a-zA-Z0-9\u00A1-\uFFFF-]+\.)+[a-zA-Z\u00A1-\uFFFF]{2,}\/?$/.test(t));break;case"company_name":o("string"==typeof(r=t)&&r.trim().length>0);break;case"company_email":l(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))}var r})(e,t)};return(0,i.jsx)(a3,{fallback:(0,i.jsx)(u3,{}),children:(0,i.jsxs)(Pz,{open:e,onClose:w,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",fullWidth:!0,maxWidth:"lg",sx:{zIndex:99999},children:[(0,i.jsx)(sF,{onClose:w,children:(0,i.jsx)(hF,{children:(0,pA.__)("Statement generator","pojo-accessibility")})}),(0,i.jsx)(Zz,{dividers:!0,children:(0,i.jsxs)(Sm,{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:8,children:[(0,i.jsxs)(Sm,{children:[(0,i.jsx)(Vw,{variant:"subtitle1",color:"text.primary",children:(0,pA.__)("Enter your company info","pojo-accessibility")}),(0,i.jsx)(Vw,{variant:"body2",color:"text.secondary",marginBottom:3,children:(0,pA.__)("This will generate an accessibility statement that you can preview on the right.","pojo-accessibility")}),(0,i.jsxs)(tR,{fullWidth:!0,children:[(0,i.jsx)(hR,{htmlFor:"ea11y-statement-generator-company-name",children:(0,pA.__)("Company name","pojo-accessibility")}),(0,i.jsx)(l3,{type:"text",id:"ea11y-statement-generator-company-name",variant:"outlined",size:"small",color:"secondary",margin:"normal",value:f.company_name,placeholder:"Acme Inc.",onChange:e=>C("company_name",e.currentTarget.value),error:!1===r}),!r&&(0,i.jsx)(hN,{children:(0,pA.__)("Company name cannot be empty","pojo-accessibility")})]}),(0,i.jsxs)(tR,{fullWidth:!0,children:[(0,i.jsx)(hR,{htmlFor:"ea11y-statement-generator-company-website",children:(0,pA.__)("Company website","pojo-accessibility")}),(0,i.jsx)(l3,{type:"text",id:"ea11y-statement-generator-company-website",variant:"outlined",size:"small",color:"secondary",margin:"normal",value:f.company_website,placeholder:"https://www.acme.com/",onChange:e=>C("company_website",e.currentTarget.value),error:!1===c}),!c&&(0,i.jsx)(hN,{children:(0,pA.__)("Please enter a valid domain","pojo-accessibility")})]}),(0,i.jsxs)(tR,{fullWidth:!0,children:[(0,i.jsx)(hR,{htmlFor:"ea11y-statement-generator-business-website",children:(0,pA.__)("Business email","pojo-accessibility")}),(0,i.jsx)(l3,{type:"text",id:"ea11y-statement-generator-business-website",variant:"outlined",size:"small",color:"secondary",margin:"normal",value:f.company_email,placeholder:"contact@acme.com",onChange:e=>C("company_email",e.currentTarget.value),error:!1===a}),!a&&(0,i.jsx)(hN,{children:(0,pA.__)("Please enter a valid email","pojo-accessibility")})]})]}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(Vw,{variant:"subtitle1",color:"text.primary",marginBottom:6,children:(0,pA.__)("Preview your accessibility statement","pojo-accessibility")}),(0,i.jsx)(Sm,{border:1,borderColor:"divider",borderRadius:1,padding:2,children:(0,i.jsx)(h3,{htmlString:s3,replacements:f})})]})]})}),(0,i.jsxs)(zz,{children:[(0,i.jsx)(SC,{onClick:w,color:"secondary",children:(0,pA.__)("Cancel","pojo-accessibility")}),(0,i.jsx)(SC,{onClick:async()=>{const e=((e,t)=>{let r=e;return Object.keys(t).forEach(e=>{const n=`{${e}}`,o=t[e];r=r.replace(new RegExp(n,"g"),o)}),r})(s3,f);try{const r=await Dh.addPage({title:"Accessibility statement",content:e,status:"publish"});await y({statement:e,pageId:r.id,id:r.id,label:"Accessibility statement",createdOn:r.date,link:r.link}),await v(!0),await b({ea11y_accessibility_statement_data:{statement:e,pageId:r.id,id:r.id,createdOn:r.date,link:r.link,label:"Accessibility statement"},ea11y_show_accessibility_generated_page_infotip:!0}),window?.ea11yWidget&&(window.ea11yWidget.accessibilityStatementURL=r.link),await t(),await p("Page created","pojo-accessibility"),yh("statement_page_created")}catch(e){h("Error while creating page","pojo-accessibility"),console.error(e)}},variant:"contained",color:"info",disabled:!x,children:(0,pA.__)("Create statement & page","pojo-accessibility")})]})]})})},u3=()=>(0,i.jsx)(vD,{severity:"error",children:(0,i.jsx)(XN,{children:(0,pA.__)("Something went wrong!","pojo-accessibility")})});var d3=r(442);const p3=d3.default||d3,h3=({htmlString:e,replacements:t})=>{const r=e=>{if("tag"===e.type){const t=e.name;if(["h1","h2","h3","h4","h5","h6","p","span","div","strong"].includes(t))return(0,i.jsx)(Vw,{variant:"p"===t?"body2":"subtitle2",component:t,marginBottom:1,sx:e.attribs.class?{textAlign:"center"}:{},color:"p"===t?"text.secondary":"text.primary",children:e.children&&e.children.map(e=>r(e))})}return"text"===e.type?(e=>{let r=e;return Object.keys(t).forEach(e=>{const n=`{${e}}`,o=t[e];if(""===t[e]){const t=`[${e?.split("_").join(" ")}]`;r=r.replace(new RegExp(n,"g"),t)}r=r.replace(new RegExp(n,"g"),o)}),r})(e.data):null};return(0,i.jsx)(i.Fragment,{children:p3(e,{replace:r})})},f3=({src:e,onLoad:t,onError:r})=>{const{planData:o}=s();return(0,n.useEffect)(()=>{if(document.querySelector(`script[src="${e}"]`))return void console.log(`Script with src "${e}" already loaded.`);const n=document.createElement("script");return n.src=e||`${window?.ea11ySettingsData?.widgetUrl}?api_key=${o?.public_api_key}`,n.async=!0,n.referrerPolicy="origin",n.onload=()=>{console.log(`Script loaded successfully: ${n.src}`),t?t():console.log("External script loaded!")},n.onerror=()=>{console.error(`Failed to load script: ${n.src}`),r?r():console.error("Failed to load the external script.")},document.head.appendChild(n),()=>{document.getElementById(Ok)&&document.getElementById(Ok).remove(),document.head.removeChild(n),console.log(`Script removed: ${n.src}`)}},[e,t,r]),null};var m3=r(6673),g3=r.n(m3);const y3=({content:e})=>{const[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1);return(0,i.jsx)(kj,{open:t,onClose:()=>{r(!1),setTimeout(()=>a(!1),200)},onOpen:()=>{r(!0)},placement:"top",title:o?(0,pA.__)("Copied!","pojo-accessibility"):(0,pA.__)("Copy link","pojo-accessibility"),arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-16]}},{name:"zIndex",enabled:!0,phase:"beforeWrite",fn:({state:e})=>{e.styles.popper.zIndex="99999"}}]},children:(0,i.jsx)(pk,{onClick:async()=>{await g3()(e),a(!0)},sx:{marginLeft:1},children:(0,i.jsx)(_k,{width:"1em",height:"1em"})})})};var v3=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9697 4.96967C14.6408 4.29858 15.5509 3.92157 16.5 3.92157C17.4491 3.92157 18.3592 4.29858 19.0303 4.96967C19.7014 5.64075 20.0784 6.55094 20.0784 7.5C20.0784 8.44905 19.7014 9.35924 19.0303 10.0303L8.53033 20.5303C8.38968 20.671 8.19891 20.75 8 20.75H4C3.58579 20.75 3.25 20.4142 3.25 20V16C3.25 15.8011 3.32902 15.6103 3.46967 15.4697L13.9697 4.96967ZM16.5 5.42157C15.9488 5.42157 15.4201 5.64055 15.0303 6.03033L4.75 16.3107V19.25H7.68934L17.9697 8.96967C18.3595 8.57989 18.5784 8.05123 18.5784 7.5C18.5784 6.94876 18.3595 6.42011 17.9697 6.03033C17.5799 5.64055 17.0512 5.42157 16.5 5.42157Z"}),Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9697 5.96967C13.2626 5.67677 13.7374 5.67677 14.0303 5.96967L18.0303 9.96967C18.3232 10.2626 18.3232 10.7374 18.0303 11.0303C17.7374 11.3232 17.2626 11.3232 16.9697 11.0303L12.9697 7.03033C12.6768 6.73743 12.6768 6.26256 12.9697 5.96967Z"})));const b3=()=>{const{accessibilityStatementData:e}=s();return(0,i.jsx)(kj,{placement:"top",title:(0,pA.__)("Edit page","pojo-accessibility"),arrow:!0,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,-16]}},{name:"zIndex",enabled:!0,phase:"beforeWrite",fn:({state:e})=>{e.styles.popper.zIndex="99999"}}]},children:(0,i.jsx)(pk,{onClick:()=>{const t=window?.ea11ySettingsData?.adminUrl,r=(0,jh.addQueryArgs)(`${t}post.php`,{post:e?.pageId,action:"edit"});Vh(r)},sx:{marginLeft:1},"aria-label":"Edit accessibility statement page",children:(0,i.jsx)(v3,{})})})},x3=()=>{const{setShowAccessibilityGeneratedInfotip:e}=s(),{save:t}=d();return(0,i.jsxs)(MD,{elevation:0,sx:{maxWidth:300},children:[(0,i.jsx)(HD,{title:""}),(0,i.jsx)(LD,{children:(0,i.jsx)(Vw,{variant:"body2",color:"text.secondary",children:(0,pA.__)("We went ahead and linked the accessibility statement page you just created to your widget.","pojo-accessibility")})}),(0,i.jsx)(pN,{children:(0,i.jsx)(wC,{size:"small",variant:"contained",color:"info",onClick:async()=>{e(!1),await t({ea11y_show_accessibility_generated_page_infotip:!1})},children:(0,pA.__)("Got it","pojo-accessibility")})})]})},w3=cb(Sm)`
display: grid;
justify-content: space-evenly;
gap: ${({theme:e})=>e.spacing(5)};
padding: ${({theme:e})=>e.spacing(2)};
grid-template-columns: repeat(2, 1fr);
${({theme:e})=>e.breakpoints.down("lg")} {
grid-template-columns: repeat(1, 1fr);
}
`,C3=({children:e})=>(0,i.jsx)(w3,{children:e});var A3=Gh().forwardRef((e,t)=>Gh().createElement(vx,{...e,ref:t}));function k3(e){return bm("MuiCollapse",e)}xm("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const S3=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],_3=Wg("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})(({theme:e,ownerState:t})=>(0,Yh.A)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&(0,Yh.A)({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"})),M3=Wg("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>(0,Yh.A)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),j3=Wg("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>(0,Yh.A)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})),R3=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiCollapse"}),{addEndListener:n,children:o,className:a,collapsedSize:s="0px",component:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:h,onExit:f,onExited:m,onExiting:g,orientation:y="vertical",style:v,timeout:b=um.standard,TransitionComponent:x=Aw}=r,w=(0,Kh.A)(r,S3),C=(0,Yh.A)({},r,{orientation:y,collapsedSize:s}),A=(e=>{const{orientation:t,classes:r}=e;return Fg({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},k3,r)})(C),k=Gg(),S=Ab(),_=Xh.useRef(null),M=Xh.useRef(),j="number"==typeof s?`${s}px`:s,R="horizontal"===y,E=R?"width":"height",I=Xh.useRef(null),L=vb(t,I),P=e=>t=>{if(e){const r=I.current;void 0===t?e(r):e(r,t)}},T=()=>_.current?_.current[R?"clientWidth":"clientHeight"]:0,O=P((e,t)=>{_.current&&R&&(_.current.style.position="absolute"),e.style[E]=j,d&&d(e,t)}),D=P((e,t)=>{const r=T();_.current&&R&&(_.current.style.position="");const{duration:n,easing:o}=Sw({style:v,timeout:b,easing:c},{mode:"enter"});if("auto"===b){const t=k.transitions.getAutoHeightDuration(r);e.style.transitionDuration=`${t}ms`,M.current=t}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[E]=`${r}px`,e.style.transitionTimingFunction=o,h&&h(e,t)}),N=P((e,t)=>{e.style[E]="auto",p&&p(e,t)}),z=P(e=>{e.style[E]=`${T()}px`,f&&f(e)}),F=P(m),B=P(e=>{const t=T(),{duration:r,easing:n}=Sw({style:v,timeout:b,easing:c},{mode:"exit"});if("auto"===b){const r=k.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${r}ms`,M.current=r}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[E]=j,e.style.transitionTimingFunction=n,g&&g(e)});return(0,i.jsx)(x,(0,Yh.A)({in:u,onEnter:O,onEntered:N,onEntering:D,onExit:z,onExited:F,onExiting:B,addEndListener:e=>{"auto"===b&&S.start(M.current||0,e),n&&n(I.current,e)},nodeRef:I,timeout:"auto"===b?null:b},w,{children:(e,t)=>(0,i.jsx)(_3,(0,Yh.A)({as:l,className:Jh(A.root,a,{entered:A.entered,exited:!u&&"0px"===j&&A.hidden}[e]),style:(0,Yh.A)({[R?"minWidth":"minHeight"]:j},v),ref:L},t,{ownerState:(0,Yh.A)({},C,{state:e}),children:(0,i.jsx)(M3,{ownerState:(0,Yh.A)({},C,{state:e}),className:A.wrapper,ref:_,children:(0,i.jsx)(j3,{ownerState:(0,Yh.A)({},C,{state:e}),className:A.wrapperInner,children:o})})}))}))});R3.muiSupportAuto=!0;const E3=R3,I3=Xh.createContext({});function L3(e){return bm("MuiAccordion",e)}const P3=xm("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),T3=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],O3=xS(),D3=Wg(UA,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${P3.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${P3.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${P3.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${P3.expanded}`]:{margin:"16px 0"}}}]})),N3=Xh.forwardRef(function(e,t){const r=O3({props:e,name:"MuiAccordion"}),{children:n,className:o,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:u,square:d=!1,slots:p={},slotProps:h={},TransitionComponent:f,TransitionProps:m}=r,g=(0,Kh.A)(r,T3),[y,v]=uj({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=Xh.useCallback(e=>{v(!y),u&&u(e,!y)},[y,u,v]),[x,...w]=Xh.Children.toArray(n),C=Xh.useMemo(()=>({expanded:y,disabled:s,disableGutters:l,toggle:b}),[y,s,l,b]),A=(0,Yh.A)({},r,{square:d,disabled:s,disableGutters:l,expanded:y}),k=(e=>{const{classes:t,square:r,expanded:n,disabled:o,disableGutters:i}=e;return Fg({root:["root",!r&&"rounded",n&&"expanded",o&&"disabled",!i&&"gutters"],region:["region"]},L3,t)})(A),S=(0,Yh.A)({transition:f},p),_=(0,Yh.A)({transition:m},h),[M,j]=_S("transition",{elementType:E3,externalForwardedProps:{slots:S,slotProps:_},ownerState:A});return(0,i.jsxs)(D3,(0,Yh.A)({className:Jh(k.root,o),ref:t,ownerState:A,square:d},g,{children:[(0,i.jsx)(I3.Provider,{value:C,children:x}),(0,i.jsx)(M,(0,Yh.A)({in:y,timeout:"auto"},j,{children:(0,i.jsx)("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:k.region,children:w})}))]}))}),z3=N3,F3={variant:"outlined"},B3=Gh().forwardRef((e,t)=>Gh().createElement(z3,{...F3,...e,ref:t}));B3.defaultProps=F3;var H3=B3;function V3(e){return bm("MuiAccordionDetails",e)}xm("MuiAccordionDetails",["root"]);const $3=["className"],W3=xS(),Z3=Wg("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),U3=Xh.forwardRef(function(e,t){const r=W3({props:e,name:"MuiAccordionDetails"}),{className:n}=r,o=(0,Kh.A)(r,$3),a=r,s=(e=>{const{classes:t}=e;return Fg({root:["root"]},V3,t)})(a);return(0,i.jsx)(Z3,(0,Yh.A)({className:Jh(s.root,n),ref:t,ownerState:a},o))});var q3=Gh().forwardRef((e,t)=>Gh().createElement(U3,{...e,ref:t}));function X3(e){return bm("MuiAccordionSummary",e)}const G3=xm("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Y3=["children","className","expandIcon","focusVisibleClassName","onClick"],K3=xS(),Q3=Wg(sx,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${G3.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${G3.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${G3.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${G3.expanded}`]:{minHeight:64}}}]}}),J3=Wg("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${G3.expanded}`]:{margin:"20px 0"}}}]})),e8=Wg("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${G3.expanded}`]:{transform:"rotate(180deg)"}})),t8=Xh.forwardRef(function(e,t){const r=K3({props:e,name:"MuiAccordionSummary"}),{children:n,className:o,expandIcon:a,focusVisibleClassName:s,onClick:l}=r,c=(0,Kh.A)(r,Y3),{disabled:u=!1,disableGutters:d,expanded:p,toggle:h}=Xh.useContext(I3),f=(0,Yh.A)({},r,{expanded:p,disabled:u,disableGutters:d}),m=(e=>{const{classes:t,expanded:r,disabled:n,disableGutters:o}=e;return Fg({root:["root",r&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},X3,t)})(f);return(0,i.jsxs)(Q3,(0,Yh.A)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":p,className:Jh(m.root,o),focusVisibleClassName:Jh(m.focusVisible,s),onClick:e=>{h&&h(e),l&&l(e)},ref:t,ownerState:f},c,{children:[(0,i.jsx)(J3,{className:m.content,ownerState:f,children:n}),a&&(0,i.jsx)(e8,{className:m.expandIconWrapper,ownerState:f,children:a})]}))}),r8=Gh().forwardRef((e,t)=>Gh().createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Gh().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L5.29289 10.7071C4.90237 10.3166 4.90237 9.68342 5.29289 9.29289C5.68342 8.90237 6.31658 8.90237 6.70711 9.29289L12 14.5858L17.2929 9.29289Z"}))),n8={expandIcon:Gh().createElement(r8,null)},o8=Gh().forwardRef((e,t)=>Gh().createElement(t8,{...n8,...e,ref:t}));o8.defaultProps=n8;var i8=o8;const{slots:a8,classNames:s8}=zT("AccordionSummaryIcon",["root","primaryButton","secondaryButton"]),l8=cb(zC,a8.root)({});var c8=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:a8.root.name});return Gh().createElement(l8,{...r,ref:t,className:Ux([[s8.root,r.className]]),ownerState:r})});const u8=cb(H3)`
border: none;
width: 100%;
`,d8=cb(i8)`
padding: 0;
min-height: auto;
justify-content: left;
&.Mui-expanded {
min-height: auto;
}
& .MuiAccordionSummary-content,
& .MuiAccordionSummary-content.Mui-expanded {
margin: 0 !important;
align-items: center;
flex-grow: 0;
}
`,p8=cb(Sm)`
display: flex;
gap: 16px;
align-items: flex-start;
`,h8=cb(hR)`
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
padding-top: 7px;
`,f8=cb(fL)`
width: 100%;
input {
height: 36px;
}
`,m8=cb(q3)`
padding: 5px 45px 5px 0;
`,g8=({sitemap:e})=>{const{widgetMenuSettings:t,setWidgetMenuSettings:r,hasChanges:n,setHasChanges:o,hasError:a,setHasError:l}=s();return(0,i.jsxs)(u8,{children:[(0,i.jsxs)(d8,{"aria-controls":"panel-content",id:"panel-header",children:[(0,i.jsx)(c8,{sx:{padding:0},children:e?.icon}),(0,i.jsx)(Hx,{primary:e?.title,sx:{flexGrow:0,marginRight:1},id:"ea11y-sitemap-toggle"})]}),(0,i.jsx)(m8,{children:(0,i.jsxs)(p8,{children:[(0,i.jsxs)(h8,{htmlFor:"sitemap-url",children:[(0,pA.__)("Sitemap URL","pojo-accessibility"),(0,i.jsx)(xF,{content:(0,i.jsx)(Vw,{variant:"body2",sx:{p:2},children:(0,pA.__)("You need to add a link to activate this","pojo-accessibility")}),placement:"right",arrow:!0,children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),(0,i.jsxs)(Sm,{sx:{flexGrow:1},children:[(0,i.jsx)(f8,{id:"sitemap-url",type:"url",onChange:e=>{r({...t,sitemap:{enabled:!0,url:e.target.value}});const n=Bh(e.target.value);l({...a,sitemap:!n}),o(n)},onBlur:()=>{n&&yh(wh,{fieldName:"sitemap-url",value:t.sitemap?.url})},value:t.sitemap?.url,error:a.sitemap,size:"small",variant:"outlined"}),a.sitemap&&(0,i.jsx)(Vw,{variant:"caption",color:"error",children:(0,pA.__)("Please enter valid URL!","pojo-accessibility")})]})]})})]})},y8=({childKey:e,childValue:t,parentKey:r,disableOptions:n})=>{const{widgetMenuSettings:o,setWidgetMenuSettings:a,setHasChanges:l,hasError:c,setHasError:u,planData:d}=s(),p=()=>{const t=d?.plan?.features;return t?.[e.replace("-","_")]};return(0,i.jsxs)(Sx,{as:"div",disableGutters:!0,sx:{p:"4px"},children:["sitemap"===e?(0,i.jsx)(g8,{sitemap:t}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(zC,{children:t.icon}),(0,i.jsxs)(Sm,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,i.jsx)(hR,{htmlFor:`ea11y-${e}-toggle`,children:(0,i.jsx)(Hx,{primary:t.title})}),t?.pro&&!p()&&(0,i.jsx)(b8,{source:"icon",childKey:e,childValue:t,enabled:p(),showIcon:!0})]})]}),(0,i.jsx)(A3,{sx:{top:"19px"},children:(0,i.jsx)(b8,{source:"toggle",childKey:e,childValue:t,enabled:p(),children:(0,i.jsx)(C8,{id:`ea11y-${e}-toggle`,checked:o[e]?.enabled||!1,onChange:()=>{return t=e,void a(e=>{const r={...e,[t]:{...e[t],enabled:!e[t]?.enabled}};return"sitemap"===t&&u({...c,sitemap:!e[t]?.enabled&&!Bh(e[t]?.url)}),l(!0),window?.ea11yWidget?.toolsSettings&&window?.ea11yWidget?.widget&&(window.ea11yWidget.toolsSettings=r,window?.ea11yWidget?.widget.updateState()),e[t]&&yh(bh,{state:e[t]?.enabled?"off":"on",type:t}),r});var t},disabled:!(!t?.pro||p())||!!o[e]?.enabled&&n})})})]},e)};var v8=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.25C12.2508 5.25 12.485 5.37533 12.6241 5.58397L16.1703 10.9033L20.5315 7.41435C20.7777 7.21743 21.1207 7.19544 21.39 7.35933C21.6592 7.52321 21.7973 7.83798 21.7355 8.14709L19.7355 18.1471C19.6654 18.4977 19.3576 18.75 19 18.75H5.00004C4.64253 18.75 4.33472 18.4977 4.26461 18.1471L2.2646 8.14709C2.20278 7.83798 2.34084 7.52321 2.61012 7.35933C2.8794 7.19544 3.22241 7.21743 3.46856 7.41435L7.82977 10.9033L11.376 5.58397C11.5151 5.37533 11.7493 5.25 12 5.25ZM12 7.35208L8.62408 12.416C8.50748 12.5909 8.32282 12.7089 8.1151 12.7411C7.90738 12.7734 7.69566 12.717 7.53152 12.5857L4.13926 9.87185L5.61489 17.25H18.3852L19.8608 9.87185L16.4686 12.5857C16.3044 12.717 16.0927 12.7734 15.885 12.7411C15.6773 12.7089 15.4926 12.5909 15.376 12.416L12 7.35208Z"})));const b8=({children:e,childKey:t,source:r,enabled:n,childValue:o,showIcon:a=!1})=>{const s=(0,i.jsxs)(MD,{elevation:0,sx:{maxWidth:300},children:[(0,i.jsx)(HD,{title:(0,pA.__)("Access more advanced features","pojo-accessibility")}),(0,i.jsx)(LD,{children:(0,i.jsx)(Vw,{variant:"body2",color:"text.secondary",children:(0,pA.__)("Upgrade to get more customization and other pro features to boost your site.","pojo-accessibility")})}),(0,i.jsx)(pN,{children:(0,i.jsx)(wC,{size:"medium",color:"promotion",variant:"contained",startIcon:(0,i.jsx)(v8,{}),onClick:()=>{"screen-reader"===t&&"icon"===r&&(Vh(dA.SCREEN_READER_ICON),yh(Ch,{feature:"screen reader",component:"pro icon"})),"screen-reader"===t&&"toggle"===r&&(Vh(dA.SCREEN_READER_TOGGLE),yh(Ch,{feature:"screen reader",component:"toggle"})),Dk.REMOVE_BRANDING===t&&"icon"===r&&(Vh(dA.ALLY_LABEL_ICON),yh(Ch,{feature:"ally label",component:"pro icon"})),Dk.REMOVE_BRANDING===t&&"toggle"===r&&(Vh(dA.ALLY_LABEL_TOGGLE),yh(Ch,{feature:"ally label",component:"toggle"}))},children:(0,pA.__)("Upgrade now","pojo-accessibility")})})]});return o?.pro||"pro"===o?(o?.pro||"pro"===o)&&n?e:(0,i.jsxs)(xF,{placement:"top",content:s,disableFocusListener:!0,PopperProps:{sx:{zIndex:9999999999}},onOpen:()=>{let e="",n="";"screen-reader"===t&&"toggle"===r?(e="screen reader",n="toggle"):"screen-reader"===t&&"icon"===r?(e="screen reader",n="icon"):Dk.REMOVE_BRANDING===t&&"icon"===r?(e="ally label",n="pro icon"):Dk.REMOVE_BRANDING===t&&"toggle"===r&&(e="ally label",n="toggle"),yh("upgrade_tooltip_triggered",{feature:e,component:n})},children:[a&&(0,i.jsx)(x8,{color:"promotion",variant:"standard",icon:(0,i.jsx)(aA,{}),size:"small"}),e]}):e},x8=cb(nS)`
margin-left: ${({theme:e})=>e.spacing(1)};
height: 26px;
width: 26px;
.MuiChip-label {
padding: 0;
}
`,w8=cb(NO)`
input {
height: 56px !important;
}
`,C8=e=>(0,i.jsx)(w8,{size:"medium",color:"info",...e});var A8=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9932 3C11.5018 3 11.0194 3.13134 10.596 3.38038C10.175 3.62805 9.82781 3.98314 9.59 4.40906L2.4909 16.6309C2.47341 16.661 2.45804 16.6923 2.44491 16.7246C2.27977 17.1303 2.21428 17.5695 2.25392 18.0056C2.29356 18.4416 2.43717 18.8619 2.67276 19.2313C2.90835 19.6008 3.22909 19.9086 3.6082 20.1291C3.98731 20.3496 4.41379 20.4764 4.85202 20.499C4.88374 20.5006 4.9151 20.5003 4.94598 20.498C4.96405 20.4993 4.98229 20.5 5.00069 20.5H19.0057L19.011 20.5C19.4598 20.4968 19.9011 20.3841 20.2962 20.1718C20.6914 19.9594 21.0285 19.6537 21.2781 19.2815C21.5277 18.9093 21.6822 18.4818 21.7282 18.0362C21.7742 17.5907 21.7102 17.1408 21.5419 16.7256C21.5287 16.693 21.5132 16.6613 21.4955 16.6309L14.3964 4.40904C14.1586 3.98312 13.8114 3.62805 13.3904 3.38038C12.9671 3.13134 12.4846 3 11.9932 3ZM12.7538 8.76945C12.7538 8.35599 12.4179 8.02081 12.0035 8.02081C11.5891 8.02081 11.2532 8.35599 11.2532 8.76945V12.7658C11.2532 13.1793 11.5891 13.5145 12.0035 13.5145C12.4179 13.5145 12.7538 13.1793 12.7538 12.7658V8.76945ZM12.7538 15.7586C12.7538 15.3451 12.4179 15.0099 12.0035 15.0099C11.5891 15.0099 11.2532 15.3451 11.2532 15.7586V15.7686C11.2532 16.182 11.5891 16.5172 12.0035 16.5172C12.4179 16.5172 12.7538 16.182 12.7538 15.7686V15.7586Z"})));const k8=({title:e,onCancel:t,onClose:r,onApprove:n,approveText:o=(0,pA.__)("Submit","pojo-accessibility"),cancelText:a=(0,pA.__)("Cancel","pojo-accessibility"),approveButtonColor:s="error",approveButtonSize:l="medium",children:c,logo:u=(0,i.jsx)(A8,{color:"error"}),showCancelButton:d=!0,showApproveButton:p=!0,approveButtonDisabled:h=!1,showCloseButton:f=!1,dividers:m=!1,open:g=!0,...y})=>(0,i.jsxs)(Pz,{open:g,onClose:r,...y,children:[(0,i.jsx)(sF,{logo:u,onClose:!!f&&r,children:(0,i.jsx)(Vw,{variant:"subtitle1",children:e})}),(0,i.jsx)(Zz,{dividers:m,sx:{py:1},children:c}),(0,i.jsxs)(zz,{children:[d&&(0,i.jsx)(wC,{onClick:t,color:"secondary",children:a}),p&&(0,i.jsx)(wC,{variant:"contained",disabled:h,color:s,size:l,onClick:n,children:o})]})]}),S8=()=>{const{open:e,close:t}=o(!0),{error:r}=m(),[a,s]=(0,n.useState)(!1),l=()=>s(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(P8,{open:e,onClose:t,logo:(0,i.jsx)(BC,{}),title:(0,pA.__)("Fix mismatched URL","pojo-accessibility"),showCancelButton:!1,showApproveButton:!1,maxWidth:"lg",fullWidth:!0,dividers:!0,children:(0,i.jsxs)(R8,{children:[(0,i.jsx)(I8,{variant:"h4",children:(0,pA.__)("Choose how to reconnect Ally to your site","pojo-accessibility")}),(0,i.jsx)(L8,{variant:"body1",children:(0,pA.__)("Your license key does not match your current domain, causing a mismatch. This is most likely due to a change in the domain URL of your site.","pojo-accessibility")}),(0,i.jsxs)(E8,{children:[(0,i.jsxs)(_8,{children:[(0,i.jsx)(M8,{variant:"h6",marginBottom:3,children:(0,pA.__)("Update the connected URL","pojo-accessibility")}),(0,i.jsx)(j8,{variant:"body1",marginBottom:3,children:(0,pA.__)("For cases where you’re moving the same site from staging to production or changing from HTTP to HTTPs.","pojo-accessibility")}),(0,i.jsx)(wC,{variant:"text",onClick:async()=>{try{const e=await Dh.initConnect("update");e?.success&&window.location.reload()}catch(e){r((0,pA.__)("An error occurred.","pojo-accessibility"))}t()},color:"info",children:(0,pA.__)("Update URL","pojo-accessibility")})]}),(0,i.jsxs)(_8,{children:[(0,i.jsx)(M8,{variant:"h6",marginBottom:3,children:(0,pA.__)("Connect the URL as a new site","pojo-accessibility")}),(0,i.jsx)(j8,{variant:"body1",marginBottom:3,children:(0,pA.__)("For when you want to connect the plugin to a new site entirely—deleting the previous history.","pojo-accessibility")}),(0,i.jsx)(wC,{variant:"text",onClick:()=>s(!0),color:"info",children:(0,pA.__)("Connect new site","pojo-accessibility")})]})]})]})}),a&&(0,i.jsx)(k8,{onClose:l,onCancel:l,title:(0,pA.__)("Are you sure you want to connect as a new site?","pojo-accessibility"),approveText:(0,pA.__)("Connect","pojo-accessibility"),onApprove:async()=>{try{s(!1),await Dh.clearSession(),window.location.href=(0,jh.addQueryArgs)(window.location.href,{action:"connect"})}catch(e){r((0,pA.__)("An error occurred.","pojo-accessibility"))}t()},children:(0,i.jsx)(Vw,{variant:"body1",children:(0,pA.__)("Connecting as a new site will delete data related to the current site.","pojo-accessibility")})})]})},_8=cb(Sm)`
display: flex;
flex-direction: column;
justify-content: space-between;
width: 38%;
padding: 40px;
border: 1px solid rgba(0, 0, 0, 0.12);
border-radius: 4px;
text-align: center;
@media screen and (max-width: 768px) {
width: 100%;
}
& span {
margin-right: 24px;
}
`,M8=cb(Vw)`
font-size: 16px;
color: ${({theme:e})=>e.palette.text.primary};
`,j8=cb(Vw)`
font-size: 14px;
color: ${({theme:e})=>e.palette.text.secondary};
`,R8=cb(sy)`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-left: ${({theme:e})=>e.spacing(8)};
padding-right: ${({theme:e})=>e.spacing(8)};
`,E8=cb(sy)`
justify-content: space-between;
display: flex;
margin-top: 80px;
margin-bottom: 80px;
`,I8=cb(Vw)`
color: ${({theme:e})=>e.palette.text.primary};
margin-top: ${({theme:e})=>e.spacing(5)};
margin-bottom: ${({theme:e})=>e.spacing(1)};
`,L8=cb(Vw)`
color: ${({theme:e})=>e.palette.text.secondary};
margin-bottom: ${({theme:e})=>e.spacing(1)};
text-align: center;
width: 70%;
`,P8=cb(k8)`
margin-left: 10%;
& .MuiDialogContent-dividers {
border-bottom: none;
}
`,T8=({icon:e,size:t,radius:r,control:o,type:a})=>{const{iconDesign:l}=s(),c=`lch(from ${l?.color||"#2563EB"} calc((50 - l) * 100) 0 0)`;let u=r||l?.cornerRadius?.radius+l?.cornerRadius?.unit,d=r||l?.cornerRadius?.radius-3+l?.cornerRadius?.unit,p=t,h=1,f=t,m=t;return"select"===o&&"text"===a&&(u=1,d=.5),"size"===o&&"text"===a&&(p=t>50?1.2*t:1*t),h=t>=64?2:t>=44&&t<64?1.5:1,64===t?(m=t-16,f=t-16,"text"===a&&(m=1.9*t-16,f=t-16)):44===t?(m=t-14,f=t-14,"text"===a&&(m=1.9*t-14,f=t-14)):(m=t-12,f=t-12,"text"===a&&(m=1.9*t-12,f=t-12)),(0,i.jsx)(O8,{sx:{backgroundColor:l?.color,borderRadius:u,width:"text"===a?1.9*t:t,height:t},children:(0,i.jsxs)(D8,{sx:{border:h,borderColor:c,borderRadius:d,padding:t>=50?"12px":1,width:m,height:f},children:["custom"!==a&&(0,n.cloneElement)(e,{size:p/2.5}),"custom"===a&&(0,i.jsx)(N8,{size:p/2.5})]})})},O8=cb(Sm)`
display: flex;
justify-content: center;
align-items: center;
padding: ${({theme:e})=>e.spacing(1)};
`,D8=cb(Sm)`
display: inline-flex;
justify-content: center;
align-items: center;
`,N8=({size:e})=>{const{iconDesign:t}=s(),r=`lch(from ${t?.color||"#fff"} calc((50 - l) * 100) 0 0)`;return(0,i.jsx)(z8,{className:"custom-icon",style:{display:"flex",alignItems:"center",justifyContent:"center"},dangerouslySetInnerHTML:{__html:t?.custom?.svg},size:e,strokeColor:r})},z8=cb("div")`
svg {
font-size: ${({size:e})=>e}px;
width: ${({size:e})=>e}px;
fill: ${({strokeColor:e})=>e};
path {
fill: ${({strokeColor:e})=>e};
}
}
`,F8=({iconType:e,option:t,clickHandler:r})=>{const{iconDesign:o}=qh(),[a,s]=(0,n.useState)(!1);(0,n.useEffect)(()=>{const r="custom"===t.value&&"select"===e;s(r)},[]);const l="select"===e?t.icon:jR(o.icon)?.icon,c="select"===e?44:t.fontSize,u="select"===e?100:null,d="select"===e?t.value:jR(o.icon)?.value;if("custom"===t.value&&!o.custom)return null;const p="select"===e?o.icon:o.size;return(0,i.jsxs)(B8,{variant:"outlined",onClick:r(t.value),sx:{borderColor:p===t.value?"info.main":"divider",borderWidth:p===t.value?2:1},children:[a&&(0,i.jsx)(H8,{label:(0,pA.__)("Custom","pojo-accessibility"),size:"small"}),(0,i.jsx)(T8,{icon:l,size:c,radius:u,color:o?.color,control:e,type:d}),(0,i.jsx)(JP,{value:t.value,inputProps:{"aria-label":t.label},sx:{opacity:0,position:"absolute"}})]},t.value)},B8=cb(IP)`
display: flex;
flex-direction: column;
flex-grow: 1;
gap: 12px;
align-items: center;
justify-content: center;
padding: 3px;
min-width: 10px;
width: 100px;
min-height: 100px;
border-radius: ${({theme:e})=>e.shape.borderRadius};
box-shadow: ${({theme:e})=>e.shadows[0]};
cursor: pointer;
position: relative;
:hover {
box-shadow: 0 0 15px 0 rgba(37, 99, 235, 0.15);
border-color: ${({theme:e})=>e.palette.info.main};
}
`,H8=cb(nS)`
position: absolute;
top: 5px;
left: 5px;
font-size: 10px;
height: 16px;
`;function V8(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function $8(e,t){for(let r=0;r{let c=a?s.trim():s;r&&(c=c.toLowerCase()),t&&(c=V8(c));const u=c?e.filter(e=>{let n=(i||l)(e);return r&&(n=n.toLowerCase()),t&&(n=V8(n)),"start"===o?0===n.indexOf(c):n.indexOf(c)>-1}):e;return"number"==typeof n?u.slice(0,n):u}}(),Z8=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function U8(e){const{unstable_isActiveElementInListbox:t=Z8,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=(e.multiple?[]:null),disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:f=!1,disableListWrap:m=!1,filterOptions:g=W8,filterSelectedOptions:y=!1,freeSolo:v=!1,getOptionDisabled:b,getOptionKey:x,getOptionLabel:w=e=>{var t;return null!=(t=e.label)?t:e},groupBy:C,handleHomeEndKeys:A=!e.freeSolo,id:k,includeInputInList:S=!1,inputValue:_,isOptionEqualToValue:M=(e,t)=>e===t,multiple:j=!1,onChange:R,onClose:E,onHighlightChange:I,onInputChange:L,onOpen:P,open:T,openOnFocus:O=!1,options:D,readOnly:N=!1,selectOnFocus:z=!e.freeSolo,value:F}=e,B=AW(k);let H=w;H=e=>{const t=w(e);return"string"!=typeof t?String(t):t};const V=Xh.useRef(!1),$=Xh.useRef(!0),W=Xh.useRef(null),Z=Xh.useRef(null),[U,q]=Xh.useState(null),[X,G]=Xh.useState(-1),Y=o?0:-1,K=Xh.useRef(Y),[Q,J]=UR({controlled:F,default:u,name:c}),[ee,te]=UR({controlled:_,default:"",name:c,state:"inputValue"}),[re,ne]=Xh.useState(!1),oe=Xh.useCallback((e,t)=>{if(!(j?Q.length!y||!(j?Q:[Q]).some(t=>null!==t&&M(e,t))),{inputValue:ce&&se?"":ee,getOptionLabel:H}):[],pe=(e=>{const t=Xh.useRef({});return Xh.useEffect(()=>{t.current=e}),t.current})({filteredOptions:de,value:Q,inputValue:ee});Xh.useEffect(()=>{const e=Q!==pe.value;re&&!e||v&&!e||oe(null,Q)},[Q,oe,re,pe.value,v]);const he=ie&&de.length>0&&!N,fe=tw(e=>{-1===e?W.current.focus():U.querySelector(`[data-tag-index="${e}"]`).focus()});Xh.useEffect(()=>{j&&X>Q.length-1&&(G(-1),fe(-1))},[Q,j,X,fe]);const me=tw(({event:e,index:t,reason:n="auto"})=>{if(K.current=t,-1===t?W.current.removeAttribute("aria-activedescendant"):W.current.setAttribute("aria-activedescendant",`${B}-option-${t}`),I&&I(e,-1===t?null:de[t],n),!Z.current)return;const o=Z.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let i=Z.current;if("listbox"!==Z.current.getAttribute("role")&&(i=Z.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const a=Z.current.querySelector(`[data-option-index="${t}"]`);if(a&&(a.classList.add(`${r}-focused`),"keyboard"===n&&a.classList.add(`${r}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n&&"touch"!==n)){const e=a,t=i.clientHeight+i.scrollTop,r=e.offsetTop+e.offsetHeight;r>t?i.scrollTop=r-i.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0){if(!ue)return;const i=function(e,t){if(!Z.current||e<0||e>=de.length)return-1;let r=e;for(;;){const n=Z.current.querySelector(`[data-option-index="${r}"]`),o=!f&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if(r="next"===t?(r+1)%de.length:(r-1+de.length)%de.length,r===e)return-1}}((()=>{const e=de.length-1;if("reset"===t)return Y;if("start"===t)return 0;if("end"===t)return e;const r=K.current+t;return r<0?-1===r&&S?-1:m&&-1!==K.current||Math.abs(t)>1?0:e:r>e?r===e+1&&S?-1:m||Math.abs(t)>1?e:0:r})(),r);if(me({index:i,reason:o,event:e}),n&&"reset"!==t)if(-1===i)W.current.value=ee;else{const e=H(de[i]);W.current.value=e,0===e.toLowerCase().indexOf(ee.toLowerCase())&&ee.length>0&&W.current.setSelectionRange(ee.length,e.length)}}),ye=Xh.useCallback(()=>{if(!ue)return;const e=(()=>{if(-1!==K.current&&pe.filteredOptions&&pe.filteredOptions.length!==de.length&&pe.inputValue===ee&&(j?Q.length===pe.value.length&&pe.value.every((e,t)=>H(Q[t])===H(e)):(e=pe.value,t=Q,(e?H(e):"")===(t?H(t):"")))){const e=pe.filteredOptions[K.current];if(e)return $8(de,t=>H(t)===H(e))}var e,t;return-1})();if(-1!==e)return void(K.current=e);const t=j?Q[0]:Q;if(0!==de.length&&null!=t){if(Z.current){if(null!=t){const e=de[K.current];if(j&&e&&-1!==$8(Q,t=>M(e,t)))return;const r=$8(de,e=>M(e,t));return void(-1===r?ge({diff:"reset"}):me({index:r}))}K.current>=de.length-1?me({index:de.length-1}):me({index:K.current})}}else ge({diff:"reset"})},[de.length,!j&&Q,y,ge,me,ue,ee,j]),ve=tw(e=>{Vx(Z,e),e&&ye()});Xh.useEffect(()=>{ye()},[ye]);const be=e=>{ie||(ae(!0),le(!0),P&&P(e))},xe=(e,t)=>{ie&&(ae(!1),E&&E(e,t))},we=(e,t,r,n)=>{if(j){if(Q.length===t.length&&Q.every((e,r)=>e===t[r]))return}else if(Q===t)return;R&&R(e,t,r,n),J(t)},Ce=Xh.useRef(!1),Ae=(e,t,r="selectOption",n="options")=>{let o=r,i=t;if(j){i=Array.isArray(Q)?Q.slice():[];const e=$8(i,e=>M(t,e));-1===e?i.push(t):"freeSolo"!==n&&(i.splice(e,1),o="removeOption")}oe(e,i),we(e,i,o,{option:t}),p||e&&(e.ctrlKey||e.metaKey)||xe(e,o),(!0===a||"touch"===a&&Ce.current||"mouse"===a&&!Ce.current)&&W.current.blur()},ke=(e,t)=>{if(!j)return;""===ee&&xe(e,"toggleInput");let r=X;-1===X?""===ee&&"previous"===t&&(r=Q.length-1):(r+="next"===t?1:-1,r<0&&(r=0),r===Q.length&&(r=-1)),r=function(e,t){if(-1===e)return-1;let r=e;for(;;){if("next"===t&&r===Q.length||"previous"===t&&-1===r)return-1;const e=U.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t),G(r),fe(r)},Se=e=>{V.current=!0,te(""),L&&L(e,"","clear"),we(e,j?[]:null,"clear")},_e=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==X&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(G(-1),fe(-1)),229!==t.which))switch(t.key){case"Home":ue&&A&&(t.preventDefault(),ge({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ue&&A&&(t.preventDefault(),ge({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ge({diff:-5,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"PageDown":t.preventDefault(),ge({diff:5,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowDown":t.preventDefault(),ge({diff:1,direction:"next",reason:"keyboard",event:t}),be(t);break;case"ArrowUp":t.preventDefault(),ge({diff:-1,direction:"previous",reason:"keyboard",event:t}),be(t);break;case"ArrowLeft":ke(t,"previous");break;case"ArrowRight":ke(t,"next");break;case"Enter":if(-1!==K.current&&ue){const e=de[K.current],r=!!b&&b(e);if(t.preventDefault(),r)return;Ae(t,e,"selectOption"),n&&W.current.setSelectionRange(W.current.value.length,W.current.value.length)}else v&&""!==ee&&!1===ce&&(j&&t.preventDefault(),Ae(t,ee,"createOption","freeSolo"));break;case"Escape":ue?(t.preventDefault(),t.stopPropagation(),xe(t,"escape")):l&&(""!==ee||j&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Se(t));break;case"Backspace":if(j&&!N&&""===ee&&Q.length>0){const e=-1===X?Q.length-1:X,r=Q.slice();r.splice(e,1),we(t,r,"removeOption",{option:Q[e]})}break;case"Delete":if(j&&!N&&""===ee&&Q.length>0&&-1!==X){const e=X,r=Q.slice();r.splice(e,1),we(t,r,"removeOption",{option:Q[e]})}}},Me=e=>{ne(!0),O&&!V.current&&be(e)},je=e=>{t(Z)?W.current.focus():(ne(!1),$.current=!0,V.current=!1,i&&-1!==K.current&&ue?Ae(e,de[K.current],"blur"):i&&v&&""!==ee?Ae(e,ee,"blur","freeSolo"):s&&oe(e,Q),xe(e,"blur"))},Re=e=>{const t=e.target.value;ee!==t&&(te(t),le(!1),L&&L(e,t,"input")),""===t?d||j||we(e,null,"clear"):be(e)},Ee=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));K.current!==t&&me({event:e,index:t,reason:"mouse"})},Ie=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},Le=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Ae(e,de[t],"selectOption"),Ce.current=!1},Pe=e=>t=>{const r=Q.slice();r.splice(e,1),we(t,r,"removeOption",{option:Q[e]})},Te=e=>{ie?xe(e,"toggleInput"):be(e)},Oe=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==B&&e.preventDefault()},De=e=>{e.currentTarget.contains(e.target)&&(W.current.focus(),z&&$.current&&W.current.selectionEnd-W.current.selectionStart===0&&W.current.select(),$.current=!1)},Ne=e=>{h||""!==ee&&ie||Te(e)};let ze=v&&ee.length>0;ze=ze||(j?Q.length>0:null!==Q);let Fe=de;return C&&(new Map,Fe=de.reduce((e,t,r)=>{const n=C(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])),h&&re&&je(),{getRootProps:(e={})=>(0,Yh.A)({"aria-owns":he?`${B}-listbox`:null},e,{onKeyDown:_e(e),onMouseDown:Oe,onClick:De}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ee,onBlur:je,onFocus:Me,onChange:Re,onMouseDown:Ne,"aria-activedescendant":ue?"":null,"aria-autocomplete":n?"both":"list","aria-controls":he?`${B}-listbox`:void 0,"aria-expanded":he,autoComplete:"off",ref:W,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Se}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Te}),getTagProps:({index:e})=>(0,Yh.A)({key:e,"data-tag-index":e,tabIndex:-1},!N&&{onDelete:Pe(e)}),getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:ve,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;const n=(j?Q:[Q]).some(e=>null!=e&&M(t,e)),o=!!b&&b(t);return{key:null!=(r=null==x?void 0:x(t))?r:H(t),tabIndex:-1,role:"option",id:`${B}-option-${e}`,onMouseMove:Ee,onClick:Le,onTouchStart:Ie,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:B,inputValue:ee,value:Q,dirty:ze,expanded:ue&&U,popupOpen:ue,focused:re||-1!==X,anchorEl:U,setAnchorEl:q,focusedTag:X,groupedOptions:Fe}}function q8(e){return bm("MuiListSubheader",e)}xm("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const X8=["className","color","component","disableGutters","disableSticky","inset"],G8=Wg("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${jx(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>(0,Yh.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Y8=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=r,u=(0,Kh.A)(r,X8),d=(0,Yh.A)({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:c}),p=(e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:i}=e;return Fg({root:["root","default"!==r&&`color${jx(r)}`,!n&&"gutters",o&&"inset",!i&&"sticky"]},q8,t)})(d);return(0,i.jsx)(G8,(0,Yh.A)({as:a,className:Jh(p.root,n),ref:t,ownerState:d},u))});Y8.muiSkipListHighlight=!0;const K8=Y8;function Q8(e){return bm("MuiAutocomplete",e)}const J8=xm("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var e7,t7;const r7=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],n7=["ref"],o7=xS(),i7=Wg("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=r;return[{[`& .${J8.tag}`]:t.tag},{[`& .${J8.tag}`]:t[`tagSize${jx(s)}`]},{[`& .${J8.inputRoot}`]:t.inputRoot},{[`& .${J8.input}`]:t.input},{[`& .${J8.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${J8.focused} .${J8.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${J8.clearIndicator}`]:{visibility:"visible"}},[`& .${J8.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${J8.inputRoot}`]:{flexWrap:"wrap",[`.${J8.hasPopupIcon}&, .${J8.hasClearIcon}&`]:{paddingRight:30},[`.${J8.hasPopupIcon}.${J8.hasClearIcon}&`]:{paddingRight:56},[`& .${J8.input}`]:{width:0,minWidth:30}},[`& .${YE.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${YE.root}.${BE.sizeSmall}`]:{[`& .${YE.input}`]:{padding:"2px 4px 3px 0"}},[`& .${fI.root}`]:{padding:9,[`.${J8.hasPopupIcon}&, .${J8.hasClearIcon}&`]:{paddingRight:39},[`.${J8.hasPopupIcon}.${J8.hasClearIcon}&`]:{paddingRight:65},[`& .${J8.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${J8.endAdornment}`]:{right:9}},[`& .${fI.root}.${BE.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${J8.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${nI.root}`]:{paddingTop:19,paddingLeft:8,[`.${J8.hasPopupIcon}&, .${J8.hasClearIcon}&`]:{paddingRight:39},[`.${J8.hasPopupIcon}.${J8.hasClearIcon}&`]:{paddingRight:65},[`& .${nI.input}`]:{padding:"7px 4px"},[`& .${J8.endAdornment}`]:{right:9}},[`& .${nI.root}.${BE.sizeSmall}`]:{paddingBottom:1,[`& .${nI.input}`]:{padding:"2.5px 4px"}},[`& .${BE.hiddenLabel}`]:{paddingTop:8},[`& .${nI.root}.${BE.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${J8.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${nI.root}.${BE.hiddenLabel}.${BE.sizeSmall}`]:{[`& .${J8.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${J8.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${J8.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${J8.input}`]:{opacity:1}}}]}),a7=Wg("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),s7=Wg(ck,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),l7=Wg(ck,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>(0,Yh.A)({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),c7=Wg(lj,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${J8.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),u7=Wg(UA,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,Yh.A)({},e.typography.body1,{overflow:"auto"})),d7=Wg("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),p7=Wg("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),h7=Wg("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${J8.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${J8.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${J8.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,gf.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${J8.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,gf.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${J8.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,gf.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),f7=Wg(K8,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),m7=Wg("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${J8.option}`]:{paddingLeft:24}}),g7=Xh.forwardRef(function(e,t){var r,n,o,a;const s=o7({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:f=e7||(e7=(0,i.jsx)(ZO,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:g=!1,clearText:y="Clear",closeText:v="Close",componentsProps:b={},defaultValue:x=(s.multiple?[]:null),disableClearable:w=!1,disableCloseOnSelect:C=!1,disabled:A=!1,disabledItemsFocusable:k=!1,disableListWrap:S=!1,disablePortal:_=!1,filterSelectedOptions:M=!1,forcePopupIcon:j="auto",freeSolo:R=!1,fullWidth:E=!1,getLimitTagsText:I=e=>`+${e}`,getOptionLabel:L,groupBy:P,handleHomeEndKeys:T=!s.freeSolo,includeInputInList:O=!1,limitTags:D=-1,ListboxComponent:N="ul",ListboxProps:z,loading:F=!1,loadingText:B="Loading…",multiple:H=!1,noOptionsText:V="No options",openOnFocus:$=!1,openText:W="Open",PaperComponent:Z=UA,PopperComponent:U=lj,popupIcon:q=t7||(t7=(0,i.jsx)(YI,{})),readOnly:X=!1,renderGroup:G,renderInput:Y,renderOption:K,renderTags:Q,selectOnFocus:J=!s.freeSolo,size:ee="medium",slotProps:te={}}=s,re=(0,Kh.A)(s,r7),{getRootProps:ne,getInputProps:oe,getInputLabelProps:ie,getPopupIndicatorProps:ae,getClearProps:se,getTagProps:le,getListboxProps:ce,getOptionProps:ue,value:de,dirty:pe,expanded:he,id:fe,popupOpen:me,focused:ge,focusedTag:ye,anchorEl:ve,setAnchorEl:be,inputValue:xe,groupedOptions:we}=U8((0,Yh.A)({},s,{componentName:"Autocomplete"})),Ce=!w&&!A&&pe&&!X,Ae=(!R||!0===j)&&!1!==j,{onMouseDown:ke}=oe(),{ref:Se}=null!=z?z:{},_e=ce(),{ref:Me}=_e,je=(0,Kh.A)(_e,n7),Re=vb(Me,Se),Ee=L||(e=>{var t;return null!=(t=e.label)?t:e}),Ie=(0,Yh.A)({},s,{disablePortal:_,expanded:he,focused:ge,fullWidth:E,getOptionLabel:Ee,hasClearIcon:Ce,hasPopupIcon:Ae,inputFocused:-1===ye,popupOpen:me,size:ee}),Le=(e=>{const{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e;return Fg({root:["root",n&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${jx(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]},Q8,t)})(Ie);let Pe;if(H&&de.length>0){const e=e=>(0,Yh.A)({className:Le.tag,disabled:A},le(e));Pe=Q?Q(de,e,Ie):de.map((t,r)=>(0,i.jsx)(Qk,(0,Yh.A)({label:Ee(t),size:ee},e({index:r}),p)))}if(D>-1&&Array.isArray(Pe)){const e=Pe.length-D;!ge&&e>0&&(Pe=Pe.splice(0,D),Pe.push((0,i.jsx)("span",{className:Le.tag,children:I(e)},Pe.length)))}const Te=G||(e=>(0,i.jsxs)("li",{children:[(0,i.jsx)(f7,{className:Le.groupLabel,ownerState:Ie,component:"div",children:e.group}),(0,i.jsx)(m7,{className:Le.groupUl,ownerState:Ie,children:e.children})]},e.key)),Oe=K||((e,t)=>(0,Xh.createElement)("li",(0,Yh.A)({},e,{key:e.key}),Ee(t))),De=(e,t)=>{const r=ue({option:e,index:t});return Oe((0,Yh.A)({},r,{className:Le.option}),e,{selected:r["aria-selected"],index:t,inputValue:xe},Ie)},Ne=null!=(r=te.clearIndicator)?r:b.clearIndicator,ze=null!=(n=te.paper)?n:b.paper,Fe=null!=(o=te.popper)?o:b.popper,Be=null!=(a=te.popupIndicator)?a:b.popupIndicator,He=e=>(0,i.jsx)(c7,(0,Yh.A)({as:U,disablePortal:_,style:{width:ve?ve.clientWidth:null},ownerState:Ie,role:"presentation",anchorEl:ve,open:me},Fe,{className:Jh(Le.popper,null==Fe?void 0:Fe.className),children:(0,i.jsx)(u7,(0,Yh.A)({ownerState:Ie,as:Z},ze,{className:Jh(Le.paper,null==ze?void 0:ze.className),children:e}))}));let Ve=null;return we.length>0?Ve=He((0,i.jsx)(h7,(0,Yh.A)({as:N,className:Le.listbox,ownerState:Ie},je,z,{ref:Re,children:we.map((e,t)=>P?Te({key:e.key,group:e.group,children:e.options.map((t,r)=>De(t,e.index+r))}):De(e,t))}))):F&&0===we.length?Ve=He((0,i.jsx)(d7,{className:Le.loading,ownerState:Ie,children:B})):0!==we.length||R||F||(Ve=He((0,i.jsx)(p7,{className:Le.noOptions,ownerState:Ie,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}))),(0,i.jsxs)(Xh.Fragment,{children:[(0,i.jsx)(i7,(0,Yh.A)({ref:t,className:Jh(Le.root,h),ownerState:Ie},ne(re),{children:Y({id:fe,disabled:A,fullWidth:!0,size:"small"===ee?"small":void 0,InputLabelProps:ie(),InputProps:(0,Yh.A)({ref:be,className:Le.inputRoot,startAdornment:Pe,onClick:e=>{e.target===e.currentTarget&&ke(e)}},(Ce||Ae)&&{endAdornment:(0,i.jsxs)(a7,{className:Le.endAdornment,ownerState:Ie,children:[Ce?(0,i.jsx)(s7,(0,Yh.A)({},se(),{"aria-label":y,title:y,ownerState:Ie},Ne,{className:Jh(Le.clearIndicator,null==Ne?void 0:Ne.className),children:f})):null,Ae?(0,i.jsx)(l7,(0,Yh.A)({},ae(),{disabled:A,"aria-label":me?v:W,title:me?v:W,ownerState:Ie},Be,{className:Jh(Le.popupIndicator,null==Be?void 0:Be.className),children:q})):null]})}),inputProps:(0,Yh.A)({className:Le.input,disabled:A,readOnly:X},oe())})})),ve?Ve:null]})}),y7=g7,v7="MuiAutocomplete-listbox";var b7=Gh().forwardRef((e,t)=>{const{renderInput:r,ListboxProps:n={},...o}=e;return Gh().createElement(y7,{...o,ListboxProps:{...n,className:Ux([v7,`${v7}Size${i=o.size||"medium",i?i[0].toUpperCase()+i.slice(1):""}`,n.className])},renderInput:t=>r?.(function(e,t){const r=e;return t.size&&(r.size=t.size),r}(t,e)),ref:t});var i});const x7=e=>{const[t,r]=(0,n.useState)(""),{accessibilityStatementData:o,setAccessibilityStatementData:a,showAccessibilityGeneratedInfotip:l}=s(),u=(0,c.useEntityRecords)("postType","page",{per_page:10}),d=(0,c.useEntityRecords)("postType","page",{per_page:-1,search:t}),p=t.length>0&&!d?.hasResolved,h=(0,n.useMemo)(()=>t?.length>0&&d?.records?d?.records:u?.records||[],[t,u?.records,d?.records]),f=(0,n.useMemo)(()=>h?h.map(e=>({label:e.title.rendered,id:e.id,link:e.link,pageId:e.id})):[],[h]);return(0,i.jsx)(xF,{placement:"right-start",content:(0,i.jsx)(x3,{}),disableHoverListener:!0,disableFocusListener:!0,PopperProps:{sx:{zIndex:99999999999}},open:l,children:(0,i.jsx)(b7,{...e,options:f,renderInput:e=>(e=>(0,i.jsx)(w7,{...e,placeholder:(0,pA.__)("Search for a page","pojo-accessibility"),onChange:e=>{const t=e.target.value;r(t)},color:"info"}))(e),sx:{width:300},onChange:(e,t)=>{(e=>{a({...o,pageId:e?.id,link:e?.link,id:e?.id,label:e?.label}),yh("statement_page_selected",{page:e?.link})})(t)},getOptionLabel:e=>e.label||"",loading:p,loadingText:(0,pA.__)("Searching…","pojo-accessibility"),noOptionsText:p?(0,pA.__)("Searching…","pojo-accessibility"):(0,pA.__)("No pages found","pojo-accessibility"),clearOnBlur:!1,value:o})})},w7=cb(fL)`
& .MuiAutocomplete-input,
& .MuiAutocomplete-input:focus,
& .MuiAutocomplete-input:focus-visible {
border: none;
outline: none;
box-shadow: none;
}
`;var C7=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 3.5C10.888 3.5 10.0614 3.84241 9.4519 4.4519C8.84241 5.0614 8.5 5.88805 8.5 6.75V10H15V6.75C15 5.88805 14.6576 5.0614 14.0481 4.4519C13.4386 3.84241 12.612 3.5 11.75 3.5ZM16.5 10V6.75C16.5 5.49022 15.9996 4.28204 15.1088 3.39124C14.218 2.50044 13.0098 2 11.75 2C10.4902 2 9.28204 2.50044 8.39124 3.39124C7.50044 4.28204 7 5.49022 7 6.75V10H6.75C6.02065 10 5.32118 10.2897 4.80546 10.8055C4.28973 11.3212 4 12.0207 4 12.75V18.75C4 19.4793 4.28973 20.1788 4.80546 20.6945C5.32118 21.2103 6.02065 21.5 6.75 21.5H16.75C17.4793 21.5 18.1788 21.2103 18.6945 20.6945C19.2103 20.1788 19.5 19.4793 19.5 18.75V12.75C19.5 12.0207 19.2103 11.3212 18.6945 10.8055C18.1788 10.2897 17.4793 10 16.75 10H16.5Z"})));const A7={visits:{title:(0,pA.__)("Widget loads","pojo-accessibility"),infotipDescription:(0,pA.__)("This is how many times your widget loads for each unique IP/device in a 24-hour span across your sites this month. Upgrade if you’re nearing your limit to keep all features available.","pojo-accessibility")},scanner:{title:(0,pA.__)("Pages scanned","pojo-accessibility"),infotipDescription:(0,pA.__)("This shows how many URLs you’ve scanned for accessibility in total. If you’re reaching your limit, consider upgrading to keep scanning new pages.","pojo-accessibility")},ai:{title:(0,pA.__)("AI credits","pojo-accessibility"),infotipDescription:(0,pA.__)("This is how many AI credits you’ve used to resolve issues or to generate content. Upgrade if you’re nearing your plan limit to keep full functionality.","pojo-accessibility"),lockedDescription:(0,pA.__)("Upgrade your plan to unlock AI credits for generating alt‑text, one‑click accessibility fixes, and more.","pojo-accessibility")}},k7=({type:e,quotaData:t})=>{const r=0===t?.allowed?0:Math.round(t?.used/t?.allowed*100),n=0===t?.allowed;return(0,i.jsxs)(S7,{children:[(0,i.jsxs)(Sm,{display:"flex",justifyContent:"space-between",children:[(0,i.jsxs)(Vw,{variant:"body2",color:n?"text.disabled":"text.secondary",display:"flex",alignItems:"center",sx:{fontSize:"12px"},children:[A7[e]?.title,(0,i.jsx)(xF,{placement:"right",PopperProps:{sx:{width:"300px",marginLeft:1},disablePortal:!0},content:(0,i.jsx)(Vw,{color:"text.secondary",variant:"body2",padding:2,children:n?A7[e]?.lockedDescription:A7[e]?.infotipDescription}),children:n?(0,i.jsx)(C7,{sx:{fontSize:"medium",color:"text.primary",opacity:.5}}):(0,i.jsx)(Cz,{sx:{fontSize:"medium"}})})]}),(0,i.jsx)(Sm,{display:"flex",flexDirection:"row",gap:.5,alignItems:"center",children:(0,i.jsx)(Vw,{variant:"body2",color:n?"text.disabled":"text.primary",sx:{fontSize:"12px"},children:n?"0/0":`${Wh(t?.used)} / ${Wh(t?.allowed)}`})})]}),(0,i.jsx)(E5,{sx:{"& .MuiLinearProgress-bar":{animation:"none",backgroundColor:n&&"text.disabled"},animation:"none"},value:r,variant:"buffer",valueBuffer:100,color:r<80?"info":r>=80&&r<95?"warning":"error"})]})},S7=cb(Sm)`
display: inline-flex;
flex-direction: column;
gap: ${({theme:e})=>e.spacing(1)};
width: 100%;
margin-bottom: ${({theme:e})=>e.spacing(1)};
`;var _7=Xh.forwardRef((e,t)=>Xh.createElement(IC,{viewBox:"0 0 24 24",...e,ref:t},Xh.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.7 2.25C8.46249 2.25 8.23103 2.29047 8.0079 2.38964C7.78802 2.48736 7.61395 2.62539 7.46967 2.76967L2.76967 7.46967C2.62539 7.61395 2.48736 7.78802 2.38964 8.0079C2.29047 8.23103 2.25 8.46249 2.25 8.7V15.3C2.25 15.5375 2.29047 15.769 2.38964 15.9921C2.48736 16.212 2.62539 16.3861 2.76967 16.5303L7.46967 21.2303C7.61395 21.3746 7.78802 21.5126 8.0079 21.6104C8.23103 21.7095 8.46249 21.75 8.7 21.75H15.3C15.5375 21.75 15.769 21.7095 15.9921 21.6104C16.212 21.5126 16.3861 21.3746 16.5303 21.2303L21.2303 16.5303C21.3746 16.3861 21.5126 16.212 21.6104 15.9921C21.7095 15.769 21.75 15.5375 21.75 15.3V8.7C21.75 8.46249 21.7095 8.23103 21.6104 8.0079C21.5126 7.78802 21.3746 7.61395 21.2303 7.46967L16.5303 2.76967C16.3861 2.62539 16.212 2.48736 15.9921 2.38964C15.769 2.29047 15.5375 2.25 15.3 2.25H8.7ZM12.75 8C12.75 7.58579 12.4142 7.25 12 7.25C11.5858 7.25 11.25 7.58579 11.25 8V12C11.25 12.4142 11.5858 12.75 12 12.75C12.4142 12.75 12.75 12.4142 12.75 12V8ZM12 15.25C11.5858 15.25 11.25 15.5858 11.25 16C11.25 16.4142 11.5858 16.75 12 16.75H12.01C12.4242 16.75 12.76 16.4142 12.76 16C12.76 15.5858 12.4242 15.25 12.01 15.25H12Z"})));const M7=()=>{const{planData:e,openSidebar:t}=s();if(!e?.scannedPages||!e?.aiCredits)return null;const{scannedPages:r,aiCredits:n}=e,o=Math.round(r.used/r.allowed*100),a=Math.round(n.used/n.allowed*100),l=o>=80&&o<100||a>=80&&a<100;return o>=100||a>=100?(0,i.jsx)(kj,{title:(0,pA.__)("You’re reached your plan’s limit","pojo-accessibility"),children:(0,i.jsx)(_7,{sx:{color:"error.dark"},fontSize:"16px"})}):l?(0,i.jsx)(kj,{title:(0,pA.__)("You’re nearing your plan’s limit","pojo-accessibility"),children:(0,i.jsx)(A8,{sx:{color:"warning.light",justifySelf:t?"auto":"right",alignSelf:t?"auto":"start",fontSize:t?"inherit":"16px",position:t?"relative":"absolute",top:"0",right:t?"auto":"10px"}})}):null},j7=Gh().forwardRef((e,t)=>Gh().createElement(K8,{...e,ref:t}));j7.muiSkipListHighlight=!0;var R7=j7;const E7=({keyName:e,item:t})=>{const{openSidebar:r,selectedMenu:o,setSelectedMenu:a,planData:l}=s(),[c,u]=(0,n.useState)({widget:!0}),d=e,p=l?.plan?.features?Object.keys(l.plan.features).filter(e=>Boolean(l.plan.features[e])&&"false"!==l.plan.features[e]):null,h=(e,t,r)=>{a(r?{parent:t,child:r}:{parent:t,child:null}),window.location.hash=t,yh(xh,{buttonName:r||t})},f=e=>p&&e.proIcon&&!p.includes(e.proIcon);return"heading"===t?.type&&r?(0,i.jsx)(R7,{sx:{whiteSpace:"nowrap"},children:t?.name}):"heading"!==t?.type||r?(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(Sx,{disableGutters:!0,disablePadding:!0,dense:!0,children:(0,i.jsxs)(AA,{onClick:()=>{return t?.children?(t.name,e=d,u(t=>({...t,[e]:!t[e]})),void yh(xh,{buttonName:e})):h(t.name,d);var e},sx:{justifyContent:"center",borderRadius:1},selected:!(d!==o?.parent||o?.child&&r),children:[(0,i.jsx)(kj,{title:t?.name,placement:"right",disableHoverListener:r,children:(0,i.jsx)(zC,{sx:{padding:r?"auto":.5,marginRight:r?1:"0 !important"},children:t.icon})}),(0,i.jsx)(Hx,{primary:t.name,hidden:!r}),r&&!f(t)&&t?.infotip,t?.children&&(0,i.jsx)(zC,{sx:{display:r?"default":"none",marginLeft:2},children:(0,i.jsx)(Ej,{fontSize:"small",sx:{rotate:c[d]?"180deg":"0"}})}),f(t)&&r&&(0,i.jsx)(zC,{children:(0,i.jsx)(I7,{color:"promotion",variant:"standard",icon:(0,i.jsx)(Q0,{size:"tiny"})})})]})}),t?.children&&c[d]&&r&&(0,i.jsx)(mb,{disablePadding:!0,children:Object.entries(t?.children).map(([e,t])=>(0,i.jsx)(Sx,{hidden:!r,sx:{p:0},dense:!0,children:(0,i.jsx)(AA,{sx:{paddingLeft:"44px",borderRadius:1},hidden:!r,selected:e===o?.child&&r,onClick:()=>h(t.name,d,e),children:(0,i.jsx)(Hx,{primary:t?.name,hidden:!r})})},e))})]},t?.key):null},I7=cb(nS)`
height: 26px;
width: 26px;
.MuiChip-label {
padding: 0;
}
`,L7=e=>(0,i.jsx)(v_,{...e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},autoFocus:!1,children:(0,i.jsx)(Q7,{collapsible:!1,popup:!0})});function P7(e){return bm("MuiCardActionArea",e)}const T7=xm("MuiCardActionArea",["root","focusVisible","focusHighlight"]),O7=["children","className","focusVisibleClassName"],D7=Wg(sx,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${T7.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${T7.focusVisible} .${T7.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),N7=Wg("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})})),z7=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiCardActionArea"}),{children:n,className:o,focusVisibleClassName:a}=r,s=(0,Kh.A)(r,O7),l=r,c=(e=>{const{classes:t}=e;return Fg({root:["root"],focusHighlight:["focusHighlight"]},P7,t)})(l);return(0,i.jsxs)(D7,(0,Yh.A)({className:Jh(c.root,o),focusVisibleClassName:Jh(a,c.focusVisible),ref:t,ownerState:l},s,{children:[n,(0,i.jsx)(N7,{className:c.focusHighlight,ownerState:l})]}))});var F7=Gh().forwardRef((e,t)=>Gh().createElement(z7,{...e,ref:t}));const{slots:B7,classNames:H7}=zT("CardGroup",["root"]),V7=cb("div",B7.root)({});var $7=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:B7.root.name});return Gh().createElement(V7,{...r,ref:t,className:Ux([[H7.root,r.className]]),ownerState:r})}),W7=Gh().forwardRef((e,t)=>Gh().createElement(E3,{...e,ref:t}));const{slots:Z7}=zT("Rotate",["root"]),U7={appear:!1,to:180},q7=Gh().forwardRef((e,t)=>{const r=Xg({props:{...U7,...e},name:Z7.root.name}),n=Gg(),o="rtl"===n.direction,i=(0,Xh.useRef)(""),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l,children:c,easing:u,in:d,onEnter:p,onEntered:h,onEntering:f,onExit:m,onExited:g,onExiting:y,style:v,timeout:b=a,TransitionComponent:x=Aw,from:w,to:C}=r,A=(0,Xh.useRef)(null),k=vb(A,(S=c,parseInt(Gh().version,10)>=19?S?.props?.ref||null:S?.ref||null),t);var S;if(Array.isArray(c)||!(0,Xh.isValidElement)(c))return console.error("Rotate: The children prop must be a single valid React element."),null;const _=e=>t=>{const r=A.current;r&&e&&r&&e(r,t)},M=_((e,t)=>{!function(e){e.scrollTop}(e);const r=G7({style:v,timeout:b,easing:u,mode:"enter"});i.current=e.style.transition,e.style.transition=n.transitions.create("rotate",r),p?.(e,t)}),j=_((e,t)=>{f?.(e,t)}),R=_((e,t)=>{e.style.transition=i.current,h?.(e,t)});return Gh().createElement(x,{appear:l,in:d,timeout:b,nodeRef:A,onEnter:M,onEntering:j,onEntered:R,onExit:()=>{const e=A.current;if(!e)return;const t=G7({style:v,timeout:b,easing:u,mode:"exit"});e.style.transition=n.transitions.create("rotate",t),m?.()},onExiting:y,onExited:()=>{const e=A.current;e&&(e.style.transition=i.current),g?.()},addEndListener:e=>{s&&A.current&&s(A.current,e)}},(e,t)=>(0,Xh.cloneElement)(c,{ref:k,...c.props||{},style:{rotate:K7(w,o),...Y7(e,K7(C,o)),...v,...c.props?.style||{}},...t}))});q7.defaultProps=U7;var X7=q7;function G7({timeout:e,easing:t,style:r={},mode:n}){return{duration:r.transitionDuration??("object"==typeof e?e[n]:e||0),easing:r.transitionTimingFunction??("object"==typeof t?t[n]:t),delay:r.transitionDelay}}function Y7(e,t="none"){return{entering:{rotate:t},entered:{rotate:t}}[e]}function K7(e,t=!1){if(e&&"number"==typeof e)return`${t?-1*e:e}deg`}const Q7=({collapsible:e=!0,popup:t=!1})=>{const{planData:r}=s(),[o,a]=(0,n.useState)(!1),l=()=>(0,i.jsxs)(Sm,{display:"flex",alignItems:"center",gap:1,whiteSpace:"nowrap",children:[(0,pA.__)("Current Plan","pojo-accessibility"),(0,i.jsx)(nS,{variant:"filled",label:r?.plan?.name,size:"tiny"}),(0,i.jsx)(M7,{})]}),c=()=>(0,i.jsxs)(r9,{children:[(0,i.jsx)(k7,{type:"scanner",quotaData:r?.scannedPages}),(0,i.jsx)(k7,{type:"ai",quotaData:r?.aiCredits})]});return(0,i.jsx)(J7,{popup:t,children:(0,i.jsxs)(e9,{children:[(0,i.jsxs)(MD,{elevation:0,sx:{overflow:"visible"},children:[(0,i.jsx)(o9,{onClick:()=>a(e=>!e),children:(0,i.jsx)(n9,{title:(0,i.jsx)(l,{}),action:e&&(0,i.jsx)(X7,{in:o,children:(0,i.jsx)(Z2,{})}),disableActionOffset:!0})}),e&&(0,i.jsx)(W7,{in:o,children:(0,i.jsx)(c,{})}),!e&&(0,i.jsx)(c,{})]}),(0,i.jsx)(MD,{elevation:0,children:(0,i.jsx)(t9,{children:(0,i.jsx)(wC,{variant:"outlined",startIcon:"Free"===r?.plan?.name?(0,i.jsx)(v8,{}):null,onClick:()=>{yh(Ch,{feature:"add visits",component:"quota counter"}),Vh(dA.ADD_VISITS)},size:"small",fullWidth:!0,color:"Free"===r?.plan?.name?"promotion":"info",children:"Free"===r?.plan?.name?(0,pA.__)("Upgrade plan","pojo-accessibility"):(0,pA.__)("View more plans","pojo-accessibility")})})})]})})},J7=cb(Sm,{shouldForwardProp:e=>"popup"!==e})`
display: flex;
flex-direction: row;
align-items: start;
justify-content: center;
max-width: 230px;
margin: ${({popup:e,theme:t})=>e?"0":t.spacing(2)};
padding: 0;
border-radius: ${({theme:e})=>2*e.shape.borderRadius}px;
:hover {
background-color: ${({popup:e,theme:t})=>e?t.palette.common.white:t.palette.action.hover};
}
`,e9=cb($7)`
border: none;
border-radius: ${({theme:e})=>2*e.shape.borderRadius}px;
padding: ${({theme:e})=>`${e.spacing(1.5)} ${e.spacing(2)}`};
width: 100%;
background-color: transparent;
& .MuiPaper-root {
background-color: transparent;
}
`,t9=cb(LD)`
padding: 0;
background-color: transparent;
:last-child {
padding-bottom: 0;
}
`,r9=cb(LD)`
padding: 0;
background-color: transparent;
padding-top: ${({theme:e})=>e.spacing(1)};
:last-child {
padding-bottom: ${({theme:e})=>e.spacing(2)};
}
`,n9=cb(HD)`
padding: 0;
background-color: transparent;
margin-bottom: ${({theme:e})=>e.spacing(1)};
`,o9=cb(F7)`
background-color: transparent;
button {
&:hover {
background-color: transparent;
}
}
`,i9=()=>{const{isOpen:e,close:t}=o(),{save:r}=d(),{homeUrl:a,isConnected:s,closePostConnectModal:l,closeOnboardingModal:c}=LR(),[u,p]=(0,n.useState)(!1);(0,n.useEffect)(()=>{const e=new URLSearchParams(window.location.search).get("source");p("admin_banner"===e)},[]);const h=e&&u&&s&&l&&!c;(0,n.useEffect)(()=>{h&&yh("banner_showed",{source:"page_view"})},[h]);const f=async()=>{await r({ea11y_close_onboarding_modal:!0}),await yh("banner_dismissed"),t()};return(0,i.jsxs)(Pz,{open:h,onClose:f,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[(0,i.jsx)(sF,{logo:(0,i.jsx)(BC,{}),onClose:f,children:(0,i.jsx)(hF,{children:(0,pA.__)("Ally","pojo-accessibility")})}),(0,i.jsxs)(Zz,{dividers:!0,children:[(0,i.jsx)("iframe",{width:"550",height:"300",src:"https://www.youtube.com/embed/4Ct_6HAsBr8?si=NZsWyvjBxvSs45lL&controls=0",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowfullscreen:!0}),(0,i.jsx)(Yz,{variant:"h5",color:"text.primary",marginTop:2,children:(0,pA.__)("See Ally’s new assistant in action","pojo-accessibility")}),(0,i.jsx)(Yz,{children:(0,pA.__)("Watch a quick demo to see how it works. Then launch your first scan to uncover issues and start improving your site.","pojo-accessibility")})]}),(0,i.jsxs)(zz,{children:[(0,i.jsx)(wC,{onClick:f,color:"secondary",children:(0,pA.__)("Got it","pojo-accessibility")}),(0,i.jsx)(wC,{href:`${a}?open-ea11y-assistant=1&open-ea11y-assistant-src=Ally_dashboard`,target:"_blank",variant:"contained",color:"info",onClick:()=>{yh("scan_triggered"),f()},children:(0,pA.__)("Scan my home page","pojo-accessibility")})]})]})},a9=()=>{const{save:e}=d(),{isGetStartedModalOpen:t,setIsGetStartedModalOpen:r}=s(),{isConnected:o,closePostConnectModal:a,isUrlMismatch:l,closeOnboardingModal:c,closeGetStartedModal:u}=LR();(0,n.useEffect)(()=>{o&&a&&!l&&c&&!u&&!t&&r(!0)},[o,a,l,c,u]);const p=()=>{r(!1),e({ea11y_close_get_started_modal:!0}).catch(e=>{console.error("Failed to save get started modal state:",e)}),yh(xh,{buttonName:"Get started with Ally - Modal Closed"}).catch(e=>{console.error("Failed to send mixpanel event:",e)})};return(0,i.jsxs)(Pz,{open:t,onClose:p,"aria-labelledby":"get-started-dialog-title","aria-describedby":"get-started-dialog-description",children:[(0,i.jsx)(sF,{logo:(0,i.jsx)(BC,{}),onClose:p,children:(0,i.jsx)(hF,{children:(0,pA.__)("Ally","pojo-accessibility")})}),(0,i.jsxs)(Zz,{dividers:!0,children:[(0,i.jsx)("iframe",{width:"550",height:"309",src:"https://www.youtube.com/embed/1D9UfHJD8cE?si=0txuUSHwaXlu22BZ&controls=0",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowfullscreen:!0}),(0,i.jsx)(Yz,{variant:"h5",color:"text.primary",marginTop:2,children:(0,pA.__)("Getting started with Ally","pojo-accessibility")}),(0,i.jsx)(Yz,{variant:"body1",children:(0,pA.__)("Watch this quick video to see how Ally helps you find, understand, and fix accessibility issues across your site with ease.","pojo-accessibility")})]}),(0,i.jsx)(zz,{children:(0,i.jsx)(wC,{onClick:p,color:"info",variant:"contained",children:(0,pA.__)("Got it","pojo-accessibility")})})]})};function s9(e){return e.substring(2).toLowerCase()}function l9(e){const{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=Xh.useRef(!1),l=Xh.useRef(null),c=Xh.useRef(!1),u=Xh.useRef(!1);Xh.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const d=$x(t.ref,l),p=tw(e=>{const t=u.current;u.current=!1;const n=Jx(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||l.current.contains(e.target),i||!r&&t||o(e)}),h=e=>r=>{u.current=!0;const n=t.props[e];n&&n(r)},f={ref:d};return!1!==a&&(f[a]=h(a)),Xh.useEffect(()=>{if(!1!==a){const e=s9(a),t=Jx(l.current),r=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",r)}}},[p,a]),!1!==n&&(f[n]=h(n)),Xh.useEffect(()=>{if(!1!==n){const e=s9(n),t=Jx(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}},[p,n]),(0,i.jsx)(Xh.Fragment,{children:Xh.cloneElement(t,f)})}function c9(e){return bm("MuiSnackbarContent",e)}xm("MuiSnackbarContent",["root","message","action"]);const u9=["action","className","message","role"],d9=Wg(UA,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t="light"===e.palette.mode?.8:.98,r=(0,gf.tL)(e.palette.background.default,t);return(0,Yh.A)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),p9=Wg("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),h9=Wg("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),f9=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:a,role:s="alert"}=r,l=(0,Kh.A)(r,u9),c=r,u=(e=>{const{classes:t}=e;return Fg({root:["root"],action:["action"],message:["message"]},c9,t)})(c);return(0,i.jsxs)(d9,(0,Yh.A)({role:s,square:!0,elevation:6,className:Jh(u.root,o),ownerState:c,ref:t},l,{children:[(0,i.jsx)(p9,{className:u.message,ownerState:c,children:a}),n?(0,i.jsx)(h9,{className:u.action,ownerState:c,children:n}):null]}))});function m9(e){return bm("MuiSnackbar",e)}xm("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const g9=["onEnter","onExited"],y9=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],v9=Wg("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`anchorOrigin${jx(r.anchorOrigin.vertical)}${jx(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,Yh.A)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,Yh.A)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),b9=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiSnackbar"}),n=Gg(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:s,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:p,ContentProps:h,disableWindowBlurListener:f=!1,message:m,open:g,TransitionComponent:y=XS,transitionDuration:v=o,TransitionProps:{onEnter:b,onExited:x}={}}=r,w=(0,Kh.A)(r.TransitionProps,g9),C=(0,Kh.A)(r,y9),A=(0,Yh.A)({},r,{anchorOrigin:{vertical:s,horizontal:l},autoHideDuration:c,disableWindowBlurListener:f,TransitionComponent:y,transitionDuration:v}),k=(e=>{const{classes:t,anchorOrigin:r}=e;return Fg({root:["root",`anchorOrigin${jx(r.vertical)}${jx(r.horizontal)}`]},m9,t)})(A),{getRootProps:S,onClickAway:_}=function(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:i}=e,a=function(){const e=function(e){const t=Xh.useRef(XR);return t.current===XR&&(t.current=e(void 0)),t}(YR.create).current;var t;return t=e.disposeEffect,Xh.useEffect(t,GR),e}();Xh.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}},[o,n]);const s=tw((e,t)=>{null==n||n(e,t)}),l=tw(e=>{n&&null!=e&&a.start(e,()=>{s(null,"timeout")})});Xh.useEffect(()=>(o&&l(t),a.clear),[o,t,l,a]);const c=a.clear,u=Xh.useCallback(()=>{null!=t&&l(null!=i?i:.5*t)},[t,i,l]),d=e=>t=>{const r=e.onFocus;null==r||r(t),c()},p=e=>t=>{const r=e.onMouseEnter;null==r||r(t),c()},h=e=>t=>{const r=e.onMouseLeave;null==r||r(t),u()};return Xh.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",u),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",u),window.removeEventListener("blur",c)}},[r,o,u,c]),{getRootProps:(t={})=>{const r=(0,Yh.A)({},qx(e),qx(t));return(0,Yh.A)({role:"presentation"},t,r,{onBlur:(n=r,e=>{const t=n.onBlur;null==t||t(e),u()}),onFocus:d(r),onMouseEnter:p(r),onMouseLeave:h(r)});var n},onClickAway:e=>{null==n||n(e,"clickaway")}}}((0,Yh.A)({},A)),[M,j]=Xh.useState(!0),R=Qx({elementType:v9,getSlotProps:S,externalForwardedProps:C,ownerState:A,additionalProps:{ref:t},className:[k.root,d]});return!g&&M?null:(0,i.jsx)(l9,(0,Yh.A)({onClickAway:_},p,{children:(0,i.jsx)(v9,(0,Yh.A)({},R,{children:(0,i.jsx)(y,(0,Yh.A)({appear:!0,in:g,timeout:v,direction:"top"===s?"down":"up",onEnter:(e,t)=>{j(!1),b&&b(e,t)},onExited:e=>{j(!0),x&&x(e)}},w,{children:u||(0,i.jsx)(f9,(0,Yh.A)({message:m,action:a},h))}))}))}))}),x9=b9;var w9=Gh().forwardRef((e,t)=>Gh().createElement(x9,{...e,ref:t}));const C9=({type:e,message:t})=>{const{showNotification:r,setShowNotification:n,setNotificationMessage:o,setNotificationType:a}=h();return(0,i.jsx)(w9,{open:r,autoHideDuration:"error"===e?1e4:2e3,onClose:()=>{n(!r),o(""),a("")},anchorOrigin:{vertical:"bottom",horizontal:"right"},sx:{zIndex:99999},children:(0,i.jsx)(vD,{onClose:()=>n(!r),severity:e,variant:"filled",children:t})})},A9=cb(KD)`
overflow: auto;
max-height: 100%;
padding: ${({theme:e})=>e.spacing(4)};
`,k9=(0,n.memo)(()=>(0,i.jsx)(Ak,{speed:Pk.SPEED,foregroundColor:Pk.FOREGROUND_COLOR,height:557,width:1040,children:(0,i.jsx)("path",{fill:"#D9D9D9",d:"M0 0h99v25H0zM15 81h52v19H15zM15 521h59v19H15zM15 106h494v11H15zM15 546h741v11H15zM31 160h26v9H31zM556 159h30v9h-30zM31 335h26v9H31zM31 180h107v108H31zM403 180h107v108H403zM279 180h107v108H279zM155 180h107v108H155zM31 357h148v104H31zM365 357h148v104H365zM198 357h148v104H198zM556 180h484v281H556z"})})),S9=(0,n.memo)(({children:e})=>(0,i.jsxs)(A9,{children:[(0,i.jsx)(k9,{}),e]}));S9.propTypes={children:PA().node};const _9=S9,M9=({isLoading:e,page:t})=>e?(0,i.jsx)(_9,{}):t,j9=()=>{const{hasFinishedResolution:e,loading:t}=Zh(),{isConnected:r,isRTL:o,closePostConnectModal:a,isUrlMismatch:l}=LR(),{notificationMessage:c,notificationType:u}=h(),{selectedMenu:d}=s();(0,n.useEffect)(()=>{window.ea11ySettingsData?.planData?.user?.id&&(async()=>{const{ea11ySettingsData:e,ea11yScannerData:t}=window,r=e?.planData||t?.planData,n=e?.planScope||t?.planScope,o=r?.plan;if(!r?.scopes?.includes(gh)&&!n?.includes(gh))return;const i=e?.pluginEnv||t?.pluginEnv,a=e?.pluginVersion||t?.pluginVersion;await mh.init("150605b3b9f979922f2ac5a52e2dcfe9",{debug:"dev"===i,track_pageview:!1,persistence:"localStorage"}),mh.register({productName:"app_access",appType:"Apps",version:a,environment:i,is_trial:Boolean(o?.name?.toLowerCase().includes("free")),plan_type:o?.name,subscription_id:o?.subscription_id}),mh.identify(r?.user?.id);const s={$email:r?.user?.email,$user_id:r?.user?.id,$subscription_type:o?.name,$subscription_id:o?.subscription_id,$subscription_status:o?.status,$scanned_urls:`${r?.scannedPages?.used||0}/${r?.scannedPages?.allowed||0}`};mh.people?.set_once(s)})().then(()=>{yh(vh,{page:"Button"})})},[window.ea11ySettingsData?.planData?.user?.id]);const p=e3[d?.parent],f=d?.child?p?.children[d?.child]:null;return(0,i.jsx)(Ng,{rtl:o,children:(0,i.jsxs)(ob,{colorScheme:"light",children:[void 0!==r&&!l&&!r&&(0,i.jsx)(gA,{}),r&&!a&&(0,i.jsx)(o3,{}),l&&!r&&(0,i.jsx)(S8,{}),(0,i.jsx)(i9,{}),(0,i.jsx)(a9,{}),(0,i.jsx)(hz,{}),(0,i.jsxs)(E9,{children:[(0,i.jsx)(oN,{}),(0,i.jsxs)(R9,{children:[(0,i.jsx)(GN,{}),(0,i.jsx)(M9,{isLoading:!e||t,page:f?f?.page:p?.page})]})]}),(0,i.jsx)(C9,{message:c,type:u})]})})},R9=cb(Sm)`
width: 100%;
display: flex;
flex-direction: column;
justify-content: start;
`,E9=cb(sy)`
height: calc(100% - 54.5px);
display: flex;
flex-direction: row;
`,I9=document.getElementById("ea11y-app"),L9=window?.ea11ySettingsData?.isDevelopment,P9=Boolean(L9)?n.StrictMode:n.Fragment;(0,n.createRoot)(I9).render((0,i.jsx)(P9,{children:(0,i.jsx)(f,{children:(0,i.jsx)(l,{children:(0,i.jsx)(IR,{children:(0,i.jsx)(zh,{children:(0,i.jsx)(j9,{})})})})})}))},9222:(e,t,r)=>{"use strict";r.d(t,{A:()=>T});var n=r(2350),o=r(7807),i=r(6446);const a=function(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.A)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};var s=r(1566);function l(e){return"number"!=typeof e?e:`${e}px solid`}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),p=c("borderRight",l),h=c("borderBottom",l),f=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),y=c("borderRightColor"),v=c("borderBottomColor"),b=c("borderLeftColor"),x=c("outline",l),w=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,n.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:(0,n._W)(t,e)});return(0,s.NI)(e,e.borderRadius,r)}return null};C.propTypes={},C.filterProps=["borderRadius"],a(u,d,p,h,f,m,g,y,v,b,C,x,w);const A=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,n.MA)(e.theme,"spacing",8,"gap"),r=e=>({gap:(0,n._W)(t,e)});return(0,s.NI)(e,e.gap,r)}return null};A.propTypes={},A.filterProps=["gap"];const k=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,n.MA)(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.columnGap,r)}return null};k.propTypes={},k.filterProps=["columnGap"];const S=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,n.MA)(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:(0,n._W)(t,e)});return(0,s.NI)(e,e.rowGap,r)}return null};function _(e,t){return"grey"===t?t:e}function M(e){return e<=1&&0!==e?100*e+"%":e}S.propTypes={},S.filterProps=["rowGap"],a(A,k,S,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"})),a((0,o.Ay)({prop:"color",themeKey:"palette",transform:_}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:_}));const j=(0,o.Ay)({prop:"width",transform:M}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||s.zu[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:M(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};R.filterProps=["maxWidth"];const E=(0,o.Ay)({prop:"minWidth",transform:M}),I=(0,o.Ay)({prop:"height",transform:M}),L=(0,o.Ay)({prop:"maxHeight",transform:M}),P=(0,o.Ay)({prop:"minHeight",transform:M}),T=((0,o.Ay)({prop:"size",cssProperty:"width",transform:M}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:M}),a(j,R,E,I,L,P,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_},backgroundColor:{themeKey:"palette",transform:_},p:{style:n.Ms},pt:{style:n.Ms},pr:{style:n.Ms},pb:{style:n.Ms},pl:{style:n.Ms},px:{style:n.Ms},py:{style:n.Ms},padding:{style:n.Ms},paddingTop:{style:n.Ms},paddingRight:{style:n.Ms},paddingBottom:{style:n.Ms},paddingLeft:{style:n.Ms},paddingX:{style:n.Ms},paddingY:{style:n.Ms},paddingInline:{style:n.Ms},paddingInlineStart:{style:n.Ms},paddingInlineEnd:{style:n.Ms},paddingBlock:{style:n.Ms},paddingBlockStart:{style:n.Ms},paddingBlockEnd:{style:n.Ms},m:{style:n.Lc},mt:{style:n.Lc},mr:{style:n.Lc},mb:{style:n.Lc},ml:{style:n.Lc},mx:{style:n.Lc},my:{style:n.Lc},margin:{style:n.Lc},marginTop:{style:n.Lc},marginRight:{style:n.Lc},marginBottom:{style:n.Lc},marginLeft:{style:n.Lc},marginX:{style:n.Lc},marginY:{style:n.Lc},marginInline:{style:n.Lc},marginInlineStart:{style:n.Lc},marginInlineEnd:{style:n.Lc},marginBlock:{style:n.Lc},marginBlockStart:{style:n.Lc},marginBlockEnd:{style:n.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:A},rowGap:{style:S},columnGap:{style:k},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:M},maxWidth:{style:R},minWidth:{transform:M},height:{transform:M},maxHeight:{transform:M},minHeight:{transform:M},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},9469:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,getFunctionName:()=>i});var n=r(211);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(o);return t&&t[1]||""}function a(e,t=""){return e.displayName||e.name||i(e)||t}function s(e,t,r){const n=a(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function l(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return a(e,"Component");if("object"==typeof e)switch(e.$$typeof){case n.vM:return s(e,e.render,"ForwardRef");case n.lD:return s(e,e.type,"memo");default:return}}}},9517:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(5048)},9558:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>n.k,unstable_defaultSxConfig:()=>i.A});var n=r(3168),o=r(9918),i=r(4229)},9569:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,extendSxProp:()=>u,unstable_createStyleFunctionSx:()=>n.k,unstable_defaultSxConfig:()=>s.A});var n=r(73),o=r(8168),i=r(8587),a=r(766),s=r(9222);const l=["sx"],c=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:s.A;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function u(e){const{sx:t}=e,r=(0,i.A)(e,l),{systemProps:n,otherProps:s}=c(r);let u;return u=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,a.Q)(r)?(0,o.A)({},n,r):n}:(0,o.A)({},n,t),(0,o.A)({},s,{sx:u})}},9640:(e,t)=>{"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal");var r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler");Symbol.for("react.provider");var i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=(Symbol.for("react.view_transition"),Symbol.for("react.client.reference"));t.Hy=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===n||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===p||void 0!==e.getModuleId)}},9667:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6032);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},9788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,p=1;function h(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");p=~n?e.length-n:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=l.source}m.prototype.content=e;var g=[];function y(t){var r=new Error(l.source+":"+d+":"+p+": "+t);if(r.reason=t,r.filename=l.source,r.line=d,r.column=p,r.source=e,!l.silent)throw r;g.push(r)}function v(t){var r=t.exec(e);if(r){var n=r[0];return h(n),e=e.slice(n.length),r}}function b(){v(n)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;c!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,c===e.charAt(r-1))return y("End of comment missing");var n=e.slice(2,r-2);return p+=2,h(n),e=e.slice(r),p+=2,t({type:"comment",comment:n})}}function C(){var e=f(),r=v(o);if(r){if(w(),!v(i))return y("property missing ':'");var n=v(a),l=e({type:"declaration",property:u(r[0].replace(t,c)),value:n?u(n[0].replace(t,c)):c});return v(s),l}}return b(),function(){var e,t=[];for(x(t);e=C();)!1!==e&&(t.push(e),x(t));return t}()}},9918:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(8168),o=r(8587),i=r(6032),a=r(4229);const s=["sx"],l=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function c(e){const{sx:t}=e,r=(0,o.A)(e,s),{systemProps:a,otherProps:c}=l(r);let u;return u=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return(0,i.Q)(r)?(0,n.A)({},a,r):a}:(0,n.A)({},a,t),(0,n.A)({},c,{sx:u})}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e].call(i.exports,i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var a=1/0;for(u=0;u=i)&&Object.keys(n.O).every(e=>n.O[e](r[l]))?r.splice(l--,1):(s=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[r,o,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={884:0,15:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[a,s,l]=r,c=0;if(a.some(t=>0!==e[t])){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)var u=l(n)}for(t&&t(r);cn(9074));o=n.O(o)})();