e?1:t>=e?0:NaN}function rY(e){return e}function nY(e,t){return"function"==typeof e?e(t):e}const oY=[{seriesType:"bar",seriesFormatter:(e,t)=>{const{seriesOrder:r,series:n}=e,o=GG(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=VG().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:YG(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)?DG("x")(e):NG(e),yExtremumGetter:e=>Object.keys(e.series).some(t=>"horizontal"===e.series[t].layout)?NG(e):DG("y")(e)},QG,eY,{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=rY,t=tY,r=null,n=lF(0),o=lF(TW),i=lF(0);function a(a){var s,l,c,u,d,p=(a=sF(a)).length,h=0,f=new Array(p),m=new Array(p),g=+n.apply(this,arguments),v=Math.min(TW,Math.max(-TW,o.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/p,i.apply(this,arguments)),b=y*(v<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?(v-p*b)/h:0;s
0?d*c:0)+b,m[l]={data:a[l],index:s,value:d,startAngle:g,endAngle:u,padAngle:y};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:lF(+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:lF(+e),a):n},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:lF(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:lF(+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:nY(t.label,"arc")}),{dataIndex:n})??t.value.toLocaleString()}))})}),{seriesOrder:t,series:n}}}];function iY(e){const t=e??oY,r={},n={},o={},i={},a={},s={};for(let e=0;e({isInitialized:!0,data:iY(r)}),[r]);return(0,i.jsx)(EZ.Provider,{value:n,children:t})}const sY=(e,t,r)=>{const n="x"===r?lW:"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])})})},lY=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"];function cY(e){const{children:t,skipAnimation:r}=e,n="undefined"==typeof window||!window?.matchMedia,[o,a]=Xh.useState(n||void 0);kH(()=>{if(n)return;const e=e=>{const t=e.matches||void 0;a(t),tB.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)(pZ.Provider,{value:s,children:t})}const uY=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:v,children:y,skipAnimation:b}=e,x=(0,Kh.A)(e,lY),w=Xh.useRef(null),C=Lx(t,w),[A,k]=((e,t,r)=>[Xh.useMemo(()=>sY(e,r,"x"),[e,r]),Xh.useMemo(()=>sY(t,r,"y"),[t,r])])(a,s,u),S={skipAnimation:b},_={plugins:v};return{children:y,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)(pW,(0,Yh.A)({},n,{children:(0,i.jsx)(aY,(0,Yh.A)({},u,{children:(0,i.jsx)(RZ,(0,Yh.A)({},o,{children:(0,i.jsx)(jG,(0,Yh.A)({},a,{children:(0,i.jsx)(RG,(0,Yh.A)({},s,{children:(0,i.jsx)(IF,{children:(0,i.jsx)(OG,(0,Yh.A)({},l,{children:(0,i.jsxs)(TZ,(0,Yh.A)({},c,{children:[(0,i.jsx)(lZ,{}),(0,i.jsx)(cY,(0,Yh.A)({},d,{children:r}))]}))}))})}))}))}))}))}))}),dY=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%"}})),pY=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],hY=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:v,xAxis:y,yAxis:b,zAxis:x,skipAnimation:w}=e,C=(0,Kh.A)(e,pY),{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=Zx(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},[]),Vx(()=>{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]),Vx(()=>{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:v,xAxis:y,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)(dY,(0,Yh.A)({},o,{children:r?(0,i.jsx)(uY,(0,Yh.A)({},n)):null}))});function fY(e){return Dj("MuiMarkElement",e)}new Set,EF("MuiMarkElement",["root","highlighted","faded"]);const mY=e=>{const{classes:t,id:r,isFaded:n,isHighlighted:o}=e;return Pj({root:["root",`series-${r}`,o&&"highlighted",n&&"faded"]},fY,t)},gY=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function vY(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,gY);"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=TF(),{isFaded:f,isHighlighted:m}=bW({seriesId:n}),{axis:g}=Xh.useContext(RF),v=KV({to:{x:t,y:r},immediate:c}),y={id:n,classes:o,isHighlighted:g.x?.index===s||m,isFaded:f,color:a},b=mY(y);return(0,i.jsx)(y$.circle,(0,Yh.A)({},d,{cx:v.x,cy:v.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})))}LW(3);const yY={draw(e,t){const r=LW(t/PW);e.moveTo(r,0),e.arc(0,0,r,0,TW)}},bY={draw(e,t){const r=LW(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()}},xY=LW(1/3),wY=2*xY,CY={draw(e,t){const r=LW(t/wY),n=r*xY;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},AY={draw(e,t){const r=LW(t),n=-r/2;e.rect(n,n,r,r)}},kY=RW(PW/10)/RW(7*PW/10),SY=RW(TW/10)*kY,_Y=-MW(TW/10)*kY,MY={draw(e,t){const r=LW(.8908130915292852*t),n=SY*r,o=_Y*r;e.moveTo(0,-r),e.lineTo(n,o);for(let t=1;t<5;++t){const i=TW*t/5,a=MW(i),s=RW(i);e.lineTo(s*r,-a*r),e.lineTo(a*n-s*o,s*n+a*o)}e.closePath()}},jY=LW(3),EY={draw(e,t){const r=-LW(t/(3*jY));e.moveTo(0,2*r),e.lineTo(-jY*r,-r),e.lineTo(jY*r,-r),e.closePath()}},RY=(LW(3),-.5),LY=LW(3)/2,IY=1/LW(12),PY=3*(IY/2+1),OY=[yY,bY,CY,AY,MY,EY,{draw(e,t){const r=LW(t/PY),n=r/2,o=r*IY,i=n,a=r*IY+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(RY*n-LY*o,LY*n+RY*o),e.lineTo(RY*i-LY*a,LY*i+RY*a),e.lineTo(RY*s-LY*l,LY*s+RY*l),e.lineTo(RY*n+LY*o,RY*o-LY*n),e.lineTo(RY*i+LY*a,RY*a-LY*i),e.lineTo(RY*s+LY*l,RY*l-LY*s),e.closePath()}}];function TY(e,t){let r=null,n=vF(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:lF(e||yY),t="function"==typeof t?t:lF(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:lF(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:lF(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o}function NY(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const DY=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],zY=Wg(y$.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 FY(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,DY),p=TF(),{isFaded:h,isHighlighted:f}=bW({seriesId:n}),{axis:m}=Xh.useContext(RF),g=KV({to:{x:t,y:r},immediate:u}),v={id:n,classes:o,isHighlighted:m.x?.index===l||f,isFaded:h,color:a},y=mY(v);return(0,i.jsx)(zY,(0,Yh.A)({},d,{style:{transform:o$([g.x,g.y],(e,t)=>`translate(${e}px, ${t}px)`),transformOrigin:o$([g.x,g.y],(e,t)=>`${e}px ${t}px`)},ownerState:v,className:y.root,d:TY(OY[NY(s)])(),onClick:c,cursor:c?"pointer":"unset"},p({type:"line",seriesId:n,dataIndex:l})))}const BY=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function HY(e){const{slots:t,slotProps:r,skipAnimation:n,onItemClick:o,experimentalRendering:a}=e,s=(0,Kh.A)(e,BY),l=hZ(n),c=dZ(),u=CF(),d=fW(),p=hW(),h=t?.mark??(a?vY:FY);if(void 0===c)return null;const{series:f,stackingGroups:m}=c,{xAxis:g,yAxis:v,xAxisIds:y,yAxisIds:b}=u,x=y[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 y=t??a,b=n??s,C=kW(g[y].scale),A=v[b].scale,k=g[y].data;if(void 0===k)throw new Error(`MUI X: ${y===lW?"The first `xAxis`":`The x-axis with id "${y}"`} should have data property to be able to display a line plot.`);const S=oW(`${d}-${e}-line-clip`),_=JG(f[e],g[y],v[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 VY(e){return Dj("MuiChartsAxis",e)}const $Y=EF("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),WY=Wg("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({[`& .${$Y.tickLabel}`]:(0,Yh.A)({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${$Y.label}`]:(0,Yh.A)({},e.typography.body1,{fill:(e.vars||e).palette.text.primary}),[`& .${$Y.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${$Y.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}})),ZY={widthCache:{},cacheCount:0},UY={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},qY=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],XY="mui_measurement_span";function GY(e,t){return qY.indexOf(e)>=0&&t===+t?`${t}px`:t}function YY(e){const t=e.split("").reduce((e,t)=>t===t.toUpperCase()?[...e,"-",t.toLowerCase()]:[...e,t],[]);return t.join("")}let KY;function QY({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}${YY(r)}:${GY(r,e[r])};`,""))(t),o=`${r}-${n}`;if(ZY.widthCache[o])return ZY.widthCache[o];try{let e=document.getElementById(XY);null===e&&(e=document.createElement("span"),e.setAttribute("id",XY),e.setAttribute("aria-hidden","true"),document.body.appendChild(e));const n=(0,Yh.A)({},UY,t);Object.keys(n).map(t=>(e.style[YY(t)]=GY(t,n[t]),t)),e.textContent=r;const i=e.getBoundingClientRect(),a={width:i.width,height:i.height};return ZY.widthCache[o]=a,ZY.cacheCount+1>2e3?(ZY.cacheCount=0,ZY.widthCache={}):ZY.cacheCount+=1,KY&&clearTimeout(KY),KY=setTimeout(()=>{e.textContent=""},0),a}catch{return{width:0,height:0}}})(r,e):{width:0,height:0}))}const JY=["x","y","style","text","ownerState"],eK=["angle","textAnchor","dominantBaseline"];function tK(e){const{x:t,y:r,style:n,text:o}=e,a=(0,Kh.A)(e,JY),s=n??{},{angle:l,textAnchor:c,dominantBaseline:u}=s,d=(0,Kh.A)(s,eK),p=Xh.useMemo(()=>QY({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 rK=["scale","tickNumber","reverse"];const nK=Wg(WY,{name:"MuiChartsXAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oK={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function iK(e){const{xAxisIds:t,xAxis:r}=CF(),n=r[e.axisId??t[0]],{scale:o,tickNumber:a,reverse:s}=n,l=(0,Kh.A)(n,rK),c=function(e=!1){const[t,r]=Xh.useState(!1);return Vx(()=>{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)({},oK,u),{position:p,disableLine:h,disableTicks:f,tickLabelStyle:m,label:g,labelStyle:v,tickFontSize:y,labelFontSize:b,tickSize:x,valueFormatter:w,slots:C,slotProps:A,tickInterval:k,tickLabelInterval:S,tickPlacement:_,tickLabelPlacement:M,sx:j}=d,E=Gg(),R=(e=>{const{classes:t,position:r}=e;return Pj({root:["root","directionX",r],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},VY,t)})((0,Yh.A)({},d,{theme:E})),{left:L,top:I,width:P,height:O,isPointInside:T}=hW(),N=f?4:x,D="bottom"===p?1:-1,z=C?.axisLine??"line",F=C?.axisTick??"line",B=C?.axisTickLabel??tK,H=C?.axisLabel??tK,V=jF({elementType:B,externalSlotProps:A?.axisTickLabel,additionalProps:{style:(0,Yh.A)({textAnchor:"middle",dominantBaseline:"bottom"===p?"hanging":"auto",fontSize:y??12},m)},className:R.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=QY({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=D*(N+3),l=T({x:t,y:-1},{direction:"x"}),c=T({x:t+a,y:-1},{direction:"x"});return(0,i.jsxs)("g",{transform:`translate(${t}, 0)`,className:R.tickContainer,children:[!f&&l&&(0,i.jsx)(F,(0,Yh.A)({y2:D*N,className:R.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:R.label,children:(0,i.jsx)(H,(0,Yh.A)({},W,Z,{text:g}))})]})}const aK=Xh.createContext(),sK=()=>Xh.useContext(aK)??!1,lK=["scale","tickNumber"],cK=Wg(WY,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uK={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function dK(e){const{yAxisIds:t,yAxis:r}=CF(),n=r[e.axisId??t[0]],{scale:o,tickNumber:a}=n,s=(0,Kh.A)(n,lK),l=Xg({props:(0,Yh.A)({},s,e),name:"MuiChartsYAxis"}),c=(0,Yh.A)({},uK,l),{position:u,disableLine:d,disableTicks:p,tickFontSize:h,label:f,labelFontSize:m,labelStyle:g,tickLabelStyle:v,tickSize:y,valueFormatter:b,slots:x,slotProps:w,tickPlacement:C,tickLabelPlacement:A,tickInterval:k,tickLabelInterval:S,sx:_}=c,M=Gg(),j=sK(),E=(e=>{const{classes:t,position:r}=e;return Pj({root:["root","directionY",r],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},VY,t)})((0,Yh.A)({},c,{theme:M})),{left:R,top:L,width:I,height:P,isPointInside:O}=hW(),T=p?4:y,N=dG({scale:o,tickNumber:a,valueFormatter:b,tickPlacement:C,tickLabelPlacement:A,tickInterval:k}),D="right"===u?1:-1,z={x:D*(h+T+10),y:L+P/2},F=x?.axisLine??"line",B=x?.axisTick??"line",H=x?.axisTickLabel??tK,V=x?.axisLabel??tK,$=!j&&"right"===u||j&&"right"!==u,W=jF({elementType:H,externalSlotProps:w?.axisTickLabel,additionalProps:{style:(0,Yh.A)({fontSize:h,textAnchor:$?"start":"end",dominantBaseline:"central"},v)},className:E.tickLabel,ownerState:{}}),Z=jF({elementType:V,externalSlotProps:w?.axisLabel,additionalProps:{style:(0,Yh.A)({fontSize:m,angle:90*D,textAnchor:"middle",dominantBaseline:"auto"},g)},ownerState:{}}),U=jF({elementType:F,externalSlotProps:w?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),q=o.domain(),X=AW(o);return X&&0===q.length||!X&&q.some(cG)?null:(0,i.jsxs)(cK,{transform:`translate(${"right"===u?R+I:R}, 0)`,className:E.root,sx:_,children:[!d&&(0,i.jsx)(F,(0,Yh.A)({y1:L,y2:L+P,className:E.line},U)),N.map(({formattedValue:e,offset:t,labelOffset:r,value:n},o)=>{const a=D*(T+2),s=r,l="function"==typeof S&&!S?.(n,o);return O({x:-1,y:t},{direction:"y"})?(0,i.jsxs)("g",{transform:`translate(0, ${t})`,className:E.tickContainer,children:[!p&&(0,i.jsx)(B,(0,Yh.A)({x2:D*T,className:E.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:E.label,children:(0,i.jsx)(V,(0,Yh.A)({},z,Z,{text:f}))})]})}const pK=(e,t)=>null==e?null:"object"==typeof e?e.axisId??t??null:e,hK=(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 fK(e){const{topAxis:t,leftAxis:r,rightAxis:n,bottomAxis:o,slots:a,slotProps:s}=e,{xAxis:l,xAxisIds:c,yAxis:u,yAxisIds:d}=CF(),p=pK(void 0===r?d[0]:r,d[0]),h=pK(void 0===o?c[0]:o,c[0]),f=pK(t,c[0]),m=pK(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=hK(t,a,s),v=hK(o,a,s),y=hK(r,a,s),b=hK(n,a,s);return(0,i.jsxs)(Xh.Fragment,{children:[f&&(0,i.jsx)(iK,(0,Yh.A)({},g,{position:"top",axisId:f})),h&&(0,i.jsx)(iK,(0,Yh.A)({},v,{position:"bottom",axisId:h})),p&&(0,i.jsx)(dK,(0,Yh.A)({},y,{position:"left",axisId:p})),m&&(0,i.jsx)(dK,(0,Yh.A)({},b,{position:"right",axisId:m}))]})}function mK(e){const{children:t,defer:r=!1,fallback:n=null}=e,[o,a]=Xh.useState(!1);return Vx(()=>{r||a(!0)},[r]),Xh.useEffect(()=>{r&&a(!0)},[r]),(0,i.jsx)(Xh.Fragment,{children:o?t:n})}function gK(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 vK(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]=wK(e[r])}),t}function CK(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return xK(e)&&xK(t)&&Object.keys(t).forEach(o=>{Xh.isValidElement(t[o])||(0,bK.Hy)(t[o])?n[o]=t[o]:xK(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&xK(e[o])?n[o]=CK(e[o],t[o],r):r.clone?n[o]=xK(t[o])?wK(t[o]):t[o]:n[o]=t[o]}),n}const AK={borderRadius:4},kK={xs:0,sm:600,md:900,lg:1200,xl:1536},SK={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${kK[e]}px)`},_K={containerQueries:e=>({up:t=>{let r="number"==typeof t?t:kK[t]||t;return"number"==typeof r&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function MK(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||SK;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||SK;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||kK).includes(i))o[e.up(i)]=r(t[i],i);else{const e=i;o[e]=t[e]}return o},{})}return r(t)}function jK(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 EK(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 RK(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:EK(e,r)||n,t&&(o=t(o,n,e)),o}const LK=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=EK(e.theme,n)||{};return MK(e,i,e=>{let n=RK(a,o,e);return e===n&&"string"==typeof e&&(n=RK(a,o,`${t}${"default"===e?"":jK(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i},IK=function(e,t){return t?CK(e,t,{clone:!1}):e},PK={m:"margin",p:"padding"},OK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},TK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NK=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!TK[e])return[e];e=TK[e]}const[t,r]=e.split(""),n=PK[t],o=OK[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]})(t)),e[t])}(),DK=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],FK=[...DK,...zK];function BK(e,t,r,n){const o=EK(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 HK(e){return BK(e,"spacing",8)}function VK(e,t){return"string"==typeof t||null==t?t:e(t)}function $K(e,t){const r=HK(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]=VK(t,r),e),{})}(NK(r),n);return MK(e,e[r],o)}(e,t,n,r)).reduce(IK,{})}function WK(e){return $K(e,DK)}function ZK(e){return $K(e,zK)}function UK(e){return $K(e,FK)}WK.propTypes={},WK.filterProps=DK,ZK.propTypes={},ZK.filterProps=zK,UK.propTypes={},UK.filterProps=FK;const qK=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]?IK(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r};function XK(e){return"number"!=typeof e?e:`${e}px solid`}function GK(e,t){return LK({prop:e,themeKey:"borders",transform:t})}const YK=GK("border",XK),KK=GK("borderTop",XK),QK=GK("borderRight",XK),JK=GK("borderBottom",XK),eQ=GK("borderLeft",XK),tQ=GK("borderColor"),rQ=GK("borderTopColor"),nQ=GK("borderRightColor"),oQ=GK("borderBottomColor"),iQ=GK("borderLeftColor"),aQ=GK("outline",XK),sQ=GK("outlineColor"),lQ=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=BK(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:VK(t,e)});return MK(e,e.borderRadius,r)}return null};lQ.propTypes={},lQ.filterProps=["borderRadius"],qK(YK,KK,QK,JK,eQ,tQ,rQ,nQ,oQ,iQ,lQ,aQ,sQ);const cQ=e=>{if(void 0!==e.gap&&null!==e.gap){const t=BK(e.theme,"spacing",8),r=e=>({gap:VK(t,e)});return MK(e,e.gap,r)}return null};cQ.propTypes={},cQ.filterProps=["gap"];const uQ=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=BK(e.theme,"spacing",8),r=e=>({columnGap:VK(t,e)});return MK(e,e.columnGap,r)}return null};uQ.propTypes={},uQ.filterProps=["columnGap"];const dQ=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=BK(e.theme,"spacing",8),r=e=>({rowGap:VK(t,e)});return MK(e,e.rowGap,r)}return null};function pQ(e,t){return"grey"===t?t:e}function hQ(e){return e<=1&&0!==e?100*e+"%":e}dQ.propTypes={},dQ.filterProps=["rowGap"],qK(cQ,uQ,dQ,LK({prop:"gridColumn"}),LK({prop:"gridRow"}),LK({prop:"gridAutoFlow"}),LK({prop:"gridAutoColumns"}),LK({prop:"gridAutoRows"}),LK({prop:"gridTemplateColumns"}),LK({prop:"gridTemplateRows"}),LK({prop:"gridTemplateAreas"}),LK({prop:"gridArea"})),qK(LK({prop:"color",themeKey:"palette",transform:pQ}),LK({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pQ}),LK({prop:"backgroundColor",themeKey:"palette",transform:pQ}));const fQ=LK({prop:"width",transform:hQ}),mQ=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const r=e.theme?.breakpoints?.values?.[t]||kK[t];return r?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:hQ(t)}};return MK(e,e.maxWidth,t)}return null};mQ.filterProps=["maxWidth"];const gQ=LK({prop:"minWidth",transform:hQ}),vQ=LK({prop:"height",transform:hQ}),yQ=LK({prop:"maxHeight",transform:hQ}),bQ=LK({prop:"minHeight",transform:hQ}),xQ=(LK({prop:"size",cssProperty:"width",transform:hQ}),LK({prop:"size",cssProperty:"height",transform:hQ}),qK(fQ,mQ,gQ,vQ,yQ,bQ,LK({prop:"boxSizing"})),{border:{themeKey:"borders",transform:XK},borderTop:{themeKey:"borders",transform:XK},borderRight:{themeKey:"borders",transform:XK},borderBottom:{themeKey:"borders",transform:XK},borderLeft:{themeKey:"borders",transform:XK},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:XK},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lQ},color:{themeKey:"palette",transform:pQ},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pQ},backgroundColor:{themeKey:"palette",transform:pQ},p:{style:ZK},pt:{style:ZK},pr:{style:ZK},pb:{style:ZK},pl:{style:ZK},px:{style:ZK},py:{style:ZK},padding:{style:ZK},paddingTop:{style:ZK},paddingRight:{style:ZK},paddingBottom:{style:ZK},paddingLeft:{style:ZK},paddingX:{style:ZK},paddingY:{style:ZK},paddingInline:{style:ZK},paddingInlineStart:{style:ZK},paddingInlineEnd:{style:ZK},paddingBlock:{style:ZK},paddingBlockStart:{style:ZK},paddingBlockEnd:{style:ZK},m:{style:WK},mt:{style:WK},mr:{style:WK},mb:{style:WK},ml:{style:WK},mx:{style:WK},my:{style:WK},margin:{style:WK},marginTop:{style:WK},marginRight:{style:WK},marginBottom:{style:WK},marginLeft:{style:WK},marginX:{style:WK},marginY:{style:WK},marginInline:{style:WK},marginInlineStart:{style:WK},marginInlineEnd:{style:WK},marginBlock:{style:WK},marginBlockStart:{style:WK},marginBlockEnd:{style:WK},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:cQ},rowGap:{style:dQ},columnGap:{style:uQ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hQ},maxWidth:{style:mQ},minWidth:{transform:hQ},height:{transform:hQ},maxHeight:{transform:hQ},minHeight:{transform:hQ},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"}}),wQ=xQ,CQ=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=EK(r,s)||{};return c?c(o):MK(o,t,t=>{let r=RK(u,l,t);return t===r&&"string"==typeof t&&(r=RK(u,l,`${e}${"default"===t?"":jK(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){const{sx:n,theme:o={}}=r||{};if(!n)return null;const i=o.unstable_sxConfig??wQ;function a(r){let n=r;if("function"==typeof r)n=r(o);else if("object"!=typeof r)return r;if(!n)return null;const a=function(e={}){const t=e.keys?.reduce((t,r)=>(t[e.up(r)]={},t),{});return t||{}}(o.breakpoints),s=Object.keys(a);let l=a;return Object.keys(n).forEach(r=>{const a="function"==typeof(s=n[r])?s(o):s;var s;if(null!=a)if("object"==typeof a)if(i[r])l=IK(l,e(r,a,o,i));else{const e=MK({theme:o},a,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,a)?l=IK(l,e):l[r]=t({sx:a,theme:o})}else l=IK(l,e(r,a,o,i))}),function(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}(o,function(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}(s,l))}return Array.isArray(n)?n.map(a):a(n)}}();CQ.filterProps=["sx"];const AQ=CQ;function kQ(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 SQ(e){return Dj("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=CK({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:l,shape:{...AK,...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=kQ,c=t.reduce((e,t)=>CK(e,t),c),c.unstable_sxConfig={...wQ,...a?.unstable_sxConfig},c.unstable_sx=function(e){return AQ({sx:e,theme:this})}}();const _Q=EF("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),MQ=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})),jQ=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`}})),EQ=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)}})),RQ=Wg("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,[`&.${_Q.labelCell}`]:{paddingLeft:e.spacing(1)},[`&.${_Q.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)}})),LQ=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 IQ(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:nY(t.data[r.dataIndex].label,"tooltip")}:{color:a(r.dataIndex),displayedLabel:nY(t.label,"tooltip")},c="pie"===t.type?(0,Yh.A)({},t.data[r.dataIndex],{label:nY(t.data[r.dataIndex].label,"tooltip")}):t.data[r.dataIndex],u=t.valueFormatter?.(c,{dataIndex:r.dataIndex});return(0,i.jsx)(MQ,{sx:n,className:o.paper,children:(0,i.jsx)(jQ,{className:o.table,children:(0,i.jsx)("tbody",{children:(0,i.jsxs)(EQ,{className:o.row,children:[(0,i.jsx)(RQ,{className:yK(o.markCell,o.cell),children:(0,i.jsx)(LQ,{color:l,className:o.mark})}),(0,i.jsx)(RQ,{className:yK(o.labelCell,o.cell),children:s}),(0,i.jsx)(RQ,{className:yK(o.valueCell,o.cell),children:u})]})})})})}function PQ(e){const{isInitialized:t,data:r}=Xh.useContext(EZ);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 OQ(e){const{content:t,itemData:r,sx:n,classes:o,contentProps:a}=e,s=uZ()[r.type].series[r.seriesId],{xAxis:l,yAxis:c,xAxisIds:u,yAxisIds:d}=CF(),{zAxis:p,zAxisIds:h}=Xh.useContext(EG),f=PQ(),m=s.xAxisId??s.xAxisKey??u[0],g=s.yAxisId??s.yAxisKey??d[0],v=s.zAxisId??s.zAxisKey??h[0],y=f[s.type]?.(s,m&&l[m],g&&c[g],v&&p[v])??(()=>""),b=t??IQ,x=jF({elementType:b,externalSlotProps:a,additionalProps:{itemData:r,series:s,sx:n,classes:o,getColor:y},ownerState:{}});return(0,i.jsx)(b,(0,Yh.A)({},x))}let TQ;const NQ=new class{constructor(){if(this.types=new Set,TQ)throw new Error("You can only create one instance!");TQ=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}};function DQ(e){return NQ.getTypes().has(e)}function zQ(e){return DQ(e.type)}function FQ(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)(MQ,{sx:a,className:s.paper,children:(0,i.jsxs)(jQ,{className:s.table,children:[null!=o&&!r.hideTooltip&&(0,i.jsx)("thead",{children:(0,i.jsx)(EQ,{children:(0,i.jsx)(RQ,{colSpan:3,children:(0,i.jsx)(Cx,{children:l(o,{location:"tooltip"})})})})}),(0,i.jsx)("tbody",{children:t.filter(zQ).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=nY(t,"tooltip"),u=a(n);return(0,i.jsxs)(EQ,{className:s.row,children:[(0,i.jsx)(RQ,{className:yK(s.markCell,s.cell),children:u&&(0,i.jsx)(LQ,{color:u,className:s.mark})}),(0,i.jsx)(RQ,{className:yK(s.labelCell,s.cell),children:c?(0,i.jsx)(Cx,{children:c}):null}),(0,i.jsx)(RQ,{className:yK(s.valueCell,s.cell),children:(0,i.jsx)(Cx,{children:l})})]},e)})})]})})}function BQ(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}=CF(),{zAxisIds:f,zAxis:m}=Xh.useContext(EG),g=uZ(),v=PQ(),y=s?u[0]:p[0],b=Xh.useMemo(()=>{const e=[];return Object.keys(g).filter(DQ).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===y){const n=g[t].series[r],a=o??u[0],s=i??p[0],l=n.zAxisId??n.zAxisKey??f[0],c=v[t]?.(n,d[a],h[s],l&&m[l])??(()=>"");e.push((0,Yh.A)({},n,{getColor:c}))}})}),e},[y,v,s,g,d,u,h,p,m,f]),x=Xh.useMemo(()=>s?d[y]:h[y],[y,s,d,h]),w=t??FQ,C=jF({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))}NQ.addType("bar"),NQ.addType("line"),NQ.addType("scatter");const HQ=Wg(eE,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function VQ(e){const t=Xg({props:e,name:"MuiChartsTooltip"}),{trigger:r="axis",itemContent:n,axisContent:o,slots:a,slotProps:s}=t,l=function(){const e=LZ(),[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(RF),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 Pj({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},SQ,t)})({classes:t.classes}),m=a?.popper??HQ,g=jF({elementType:m,externalSlotProps:s?.popper,additionalProps:{open:h,placement:"mouse"===l?.pointerType?"right-start":"top",anchorEl:gK(l),modifiers:[{name:"offset",options:{offset:[0,"touch"===l?.pointerType?40-l.height:0]}}]},ownerState:{}});return"none"===r?null:(0,i.jsx)(mK,{children:h&&(0,i.jsx)(m,(0,Yh.A)({},g,{className:f.root,children:"item"===r?(0,i.jsx)(OQ,{itemData:d,content:a?.itemContent??n,contentProps:s?.itemContent,sx:{mx:2},classes:f}):(0,i.jsx)(BQ,{axisData:d,content:a?.axisContent??o,contentProps:s?.axisContent,sx:{mx:2},classes:f})}))})}const $Q={bar:e=>{const{seriesOrder:t,series:r}=e;return t.reduce((e,t)=>{const n=nY(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=nY(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=nY(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=nY(r.label,"legend");void 0!==n&&e.push({id:r.id,seriesId:t,color:r.color,label:n,itemId:r.id})}),e),[])}};function WQ(e){return Dj("MuiChartsLegend",e)}const ZQ=EF("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]),UQ=["label"];function qQ(e){const t=sK(),{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:v,onClick:y}=e;return(0,i.jsxs)("g",{className:yK(v?.series,`${v?.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:v?.itemBackground,onClick:y,style:{pointerEvents:y?"all":"none",cursor:y?"pointer":"unset"}}),(0,i.jsx)("rect",{className:v?.mark,x:t?-f:0,y:-h/2,width:f,height:h,fill:u,style:{pointerEvents:"none"}}),(0,i.jsx)(tK,{style:(0,Yh.A)({pointerEvents:"none"},g),text:o,x:(t?-1:1)*(f+m),y:0})]})}const XQ=["rotate","dominantBaseline"],GQ=Wg("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({});function YQ(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=hW(),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]),v=Xh.useCallback((e,t={})=>{const r=QY({style:(0,Kh.A)(t,XQ),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]),y=f.left+f.width+f.right,b=f.top+f.height+f.bottom,x=y-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,UQ);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,v,m,r,x,w,c),[n,v,m,r,x,w,c]),S=Xh.useMemo(()=>{switch(t.horizontal){case"left":return g.left;case"right":return y-g.right-A;default:return(y-A)/2}},[t.horizontal,g.left,g.right,y,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)(mK,{children:(0,i.jsx)(GQ,{className:o?.root,children:C.map((e,t)=>(0,Xh.createElement)(qQ,(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 KQ=["drawingArea","seriesToDisplay","hidden","onItemClick"];function QQ(e){const{seriesToDisplay:t,hidden:r,onItemClick:n}=e,o=(0,Kh.A)(e,KQ);return r?null:(0,i.jsx)(YQ,(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 JQ=["slots","slotProps"];function eJ(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,JQ),s=Gg(),l=(e=>{const{classes:t,direction:r}=e;return Pj({root:["root",r],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},WQ,t)})((0,Yh.A)({},r,{theme:s})),c=hW(),u=uZ(),d=function(e){return Object.keys(e).flatMap(t=>{const r=$Q[t];return void 0===r?[]:r(e[t])})}(u),p=n?.legend??QQ,h=jF({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 tJ(e){return Dj("MuiChartsAxisHighlight",e)}EF("MuiChartsAxisHighlight",["root"]);const rJ=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 nJ(e){const{x:t,y:r}=e,{xAxisIds:n,xAxis:o,yAxisIds:a,yAxis:s}=CF(),l=Pj({root:["root"]},tJ),c=n[0],u=a[0],d=o[c].scale,p=s[u].scale,{axis:h}=Xh.useContext(RF),f=kW(d),m=kW(p),g=h.x,v=h.y,y="band"===t&&null!==g&&AW(d),b="band"===r&&null!==v&&AW(p);return(0,i.jsxs)(Xh.Fragment,{children:[y&&void 0!==d(g.value)&&(0,i.jsx)(rJ,{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(v.value)&&(0,i.jsx)(rJ,{d:`M ${d.range()[0]} ${p(v.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)(rJ,{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)(rJ,{d:`M ${d.range()[0]} ${m(h.y.value)} L ${d.range()[1]} ${m(h.y.value)}`,className:l.root,ownerState:{axisHighlight:"line"}})]})}function oJ(e){const{id:t,offset:r}=e,{left:n,top:o,width:a,height:s}=hW(),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 iJ=["x","y","id","classes","color"];function aJ(e){return Dj("MuiHighlightElement",e)}EF("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 lJ(e){const{x:t,y:r,id:n,classes:o,color:a}=e,s=(0,Kh.A)(e,iJ),l={id:n,classes:o,color:a,x:t,y:r},c=(e=>{const{classes:t,id:r}=e;return Pj({root:["root",`series-${r}`]},aJ,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 cJ=["slots","slotProps"];function uJ(e){const{slots:t,slotProps:r}=e,n=(0,Kh.A)(e,cJ),o=dZ(),a=CF(),s=hW(),{axis:l}=Xh.useContext(RF),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],v=m[0],y=t?.lineHighlight??lJ;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=v,stackedData:l,data:d,disableHighlight:f}=u[e],m=t??o,b=n??a;if(f||null==d[c])return null;const x=kW(p[m].scale),w=h[b].scale,C=p[m].data;if(void 0===C)throw new Error(`MUI X: ${m===lW?"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=JG(u[e],p[m],h[b]);return(0,i.jsx)(y,(0,Yh.A)({id:e,color:S(c),x:A,y:k},r?.lineHighlight),`${e}`)}))}))}function dJ(e){return Dj("MuiChartsGrid",e)}const pJ=EF("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),hJ=Wg("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${pJ.verticalLine}`]:t.verticalLine},{[`&.${pJ.horizontalLine}`]:t.horizontalLine},t.root]})({}),fJ=Wg("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function mJ(e){const{axis:t,drawingArea:r,classes:n}=e,{scale:o,tickNumber:a,tickInterval:s}=t,l=dG({scale:o,tickNumber:a,tickInterval:s});return(0,i.jsx)(Xh.Fragment,{children:l.map(({value:e,offset:t})=>(0,i.jsx)(fJ,{y1:r.top,y2:r.top+r.height,x1:t,x2:t,className:n.verticalLine},`vertical-${e}`))})}function gJ(e){const{axis:t,drawingArea:r,classes:n}=e,{scale:o,tickNumber:a,tickInterval:s}=t,l=dG({scale:o,tickNumber:a,tickInterval:s});return(0,i.jsx)(Xh.Fragment,{children:l.map(({value:e,offset:t})=>(0,i.jsx)(fJ,{y1:t,y2:t,x1:r.left,x2:r.left+r.width,className:n.horizontalLine},`horizontal-${e}`))})}const vJ=["vertical","horizontal"];function yJ(e){const t=Xg({props:e,name:"MuiChartsGrid"}),r=hW(),{vertical:n,horizontal:o}=t,a=(0,Kh.A)(t,vJ),{xAxis:s,xAxisIds:l,yAxis:c,yAxisIds:u}=CF(),d=(({classes:e})=>Pj({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},dJ,e))(t),p=c[u[0]],h=s[l[0]];return(0,i.jsxs)(hJ,(0,Yh.A)({},a,{className:d.root,children:[n&&(0,i.jsx)(mJ,{axis:h,drawingArea:r,classes:d}),o&&(0,i.jsx)(gJ,{axis:p,drawingArea:r,classes:d})]}))}function bJ(e){const{onAxisClick:t}=e,r=LZ(),n=uZ(),{axis:o}=Xh.useContext(RF),{xAxisIds:a,xAxis:s,yAxisIds:l,yAxis:c}=CF();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 xJ=["message"],wJ=Wg("text")(({theme:e})=>(0,Yh.A)({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function CJ(e){const{message:t}=e,r=(0,Kh.A)(e,xJ),{top:n,left:o,height:a,width:s}=hW();return(0,i.jsx)(wJ,(0,Yh.A)({x:o+s/2,y:n+a/2},r,{children:t??"Loading data…"}))}const AJ=["message"],kJ=Wg("text")(({theme:e})=>(0,Yh.A)({},e.typography.body2,{stroke:"none",fill:e.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function SJ(e){const{message:t}=e,r=(0,Kh.A)(e,AJ),{top:n,left:o,height:a,width:s}=hW();return(0,i.jsx)(kJ,(0,Yh.A)({x:o+s/2,y:n+a/2},r,{children:t??"No data to display"}))}function _J(e){const t=function(){const e=uZ();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??CJ;return(0,i.jsx)(t,(0,Yh.A)({},e.slotProps?.loadingOverlay))}if(t){const t=e.slots?.noDataOverlay??SJ;return(0,i.jsx)(t,(0,Yh.A)({},e.slotProps?.noDataOverlay))}return null}const MJ=["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"],jJ=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:v,children:y}=(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:v,grid:y,topAxis:b,leftAxis:x,rightAxis:w,bottomAxis:C,children:A,slots:k,slotProps:S,skipAnimation:_,loading:M,highlightedItem:j,onHighlightChange:E,className:R,experimentalMarkRendering:L}=e,I=(0,Kh.A)(e,MJ),P=`${sW()}-clip-path`,O=(0,Yh.A)({},I,{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:lW,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:E,disableAxisListener:"axis"!==u?.trigger&&"none"===m?.x&&"none"===m?.y&&!d,className:R,skipAnimation:_});return{chartContainerProps:O,axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:y?.vertical,horizontal:y?.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:L},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)({},v,{slots:k,slotProps:S}),tooltipProps:(0,Yh.A)({},u,{slots:k,slotProps:S}),children:A}})(r);return(0,i.jsxs)(hY,(0,Yh.A)({ref:t},n,{children:[r.onAxisClick&&(0,i.jsx)(bJ,(0,Yh.A)({},o)),(0,i.jsx)(yJ,(0,Yh.A)({},a)),(0,i.jsxs)("g",(0,Yh.A)({},l,{children:[(0,i.jsx)(mZ,(0,Yh.A)({},c)),(0,i.jsx)(AZ,(0,Yh.A)({},u)),(0,i.jsx)(_J,(0,Yh.A)({},p)),(0,i.jsx)(nJ,(0,Yh.A)({},f))]})),(0,i.jsx)(fK,(0,Yh.A)({},h)),(0,i.jsx)("g",{"data-drawing-container":!0,children:(0,i.jsx)(HY,(0,Yh.A)({},d))}),(0,i.jsx)(uJ,(0,Yh.A)({},m)),(0,i.jsx)(eJ,(0,Yh.A)({},g)),!r.loading&&(0,i.jsx)(VQ,(0,Yh.A)({},v)),(0,i.jsx)(oJ,(0,Yh.A)({},s)),y]}))}),EJ=()=>(0,i.jsxs)(Sm,{display:"flex",gap:1,children:[(0,i.jsx)(Rw,{variant:"subtitle1",children:(0,eA.__)("Widget opens","pojo-accessibility")}),(0,i.jsx)(nF,{content:(0,i.jsx)(Rw,{variant:"body1",sx:{p:2,maxWidth:"300px"},children:(0,eA.__)("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"})})]}),RJ=window.wp.date,LJ=e=>{const{dataIndex:t,axis:r,series:n}=e;return n[0].data[t]?(0,i.jsxs)(yO,{sx:{p:2,pb:1},children:[(0,i.jsx)(Rw,{variant:"body2",color:"text.tertiary",children:(0,RJ.dateI18n)("d F",r.data[t],!1)}),(0,i.jsx)(Rw,{variant:"h6",children:n[0].data[t]})]}):null},IJ=()=>(0,i.jsx)(Sm,{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",sx:{height:"250px"},children:(0,i.jsx)(Rw,{variant:"body2",color:"text.tertiary",children:(0,eA.__)("No data available","pojo-accessibility")})}),PJ=()=>{const e=Gg(),{stats:t}=E(),r=t.dates.reduce((e,t)=>e+Number(t.total),0),n=t.dates.length>0;return(0,i.jsxs)(EN,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)($N,{title:(0,i.jsx)(EJ,{}),subheader:r>0?(0,i.jsx)(Rw,{variant:"h3",sx:{height:"50px"},children:r.toString()}):null,sx:{pb:0}}),n&&(0,i.jsx)(jJ,{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,RJ.dateI18n)("d.m",e,!1):e}],slots:{axisContent:LJ},tooltip:{trigger:r?"axis":"none"},height:250}),0===t.dates.length&&(0,i.jsx)(IJ,{})]})};function OJ(e){return e.innerRadius}function TJ(e){return e.outerRadius}function NJ(e){return e.startAngle}function DJ(e){return e.endAngle}function zJ(e){return e&&e.padAngle}function FJ(e,t,r,n,o,i,a){var s=e-r,l=t-n,c=(a?i:-i)/LW(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,v=(h+m)/2,y=f-p,b=m-h,x=y*y+b*b,w=o-i,C=p*m-f*h,A=(b<0?-1:1)*LW(jW(0,w*w*x-C*C)),k=(C*b-y*A)/x,S=(-C*y-b*A)/x,_=(C*b+y*A)/x,M=(-C*y+b*A)/x,j=k-g,E=S-v,R=_-g,L=M-v;return j*j+E*E>R*R+L*L&&(k=_,S=M),{cx:k,cy:S,x01:-u,y01:-d,x11:k*(o/w-1),y11:S*(o/w-1)}}function BJ(){var e=OJ,t=TJ,r=lF(0),n=null,o=NJ,i=DJ,a=zJ,s=null,l=vF(c);function c(){var c,u,d=+e.apply(this,arguments),p=+t.apply(this,arguments),h=o.apply(this,arguments)-OW,f=i.apply(this,arguments)-OW,m=SW(f-h),g=f>h;if(s||(s=c=l()),pIW)if(m>TW-IW)s.moveTo(p*MW(h),p*RW(h)),s.arc(0,0,p,h,f,!g),d>IW&&(s.moveTo(d*MW(f),d*RW(f)),s.arc(0,0,d,f,h,g));else{var v,y,b=h,x=f,w=h,C=f,A=m,k=m,S=a.apply(this,arguments)/2,_=S>IW&&(n?+n.apply(this,arguments):LW(d*d+p*p)),M=EW(SW(p-d)/2,+r.apply(this,arguments)),j=M,E=M;if(_>IW){var R=NW(_/d*RW(S)),L=NW(_/p*RW(S));(A-=2*R)>IW?(w+=R*=g?1:-1,C-=R):(A=0,w=C=(h+f)/2),(k-=2*L)>IW?(b+=L*=g?1:-1,x-=L):(k=0,b=x=(h+f)/2)}var I=p*MW(b),P=p*RW(b),O=d*MW(C),T=d*RW(C);if(M>IW){var N,D=p*MW(x),z=p*RW(x),F=d*MW(w),B=d*RW(w);if(m1?0:e<-1?PW:Math.acos(e)}((H*$+V*W)/(LW(H*H+V*V)*LW($*$+W*W)))/2),U=LW(N[0]*N[0]+N[1]*N[1]);j=EW(M,(d-U)/(Z-1)),E=EW(M,(p-U)/(Z+1))}else j=E=0}k>IW?E>IW?(v=FJ(F,B,I,P,p,E,g),y=FJ(D,z,O,T,p,E,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),EIW&&A>IW?j>IW?(v=FJ(O,T,D,z,d,-j,g),y=FJ(I,P,F,B,d,-j,g),s.lineTo(v.cx+v.x01,v.cy+v.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 WJ(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,HJ),g={id:s,dataIndex:o,classes:t,color:r,isFaded:c,isHighlighted:u},v=(e=>{const{classes:t,id:r,isFaded:n,isHighlighted:o,dataIndex:i}=e;return Pj({root:["root",`series-${r}`,`data-index-${i}`,o&&"highlighted",n&&"faded"]},VJ,t)})(g),y=TF();return(0,i.jsx)($J,(0,Yh.A)({d:o$([f,a,h,l,p,n],(e,t,r,n,o,i)=>BJ().cornerRadius(i)({padAngle:r,startAngle:e,endAngle:t,innerRadius:n,outerRadius:o})),visibility:o$([f,a],(e,t)=>e===t?"hidden":"visible"),onClick:d,cursor:d?"pointer":"unset",ownerState:g,className:v.root,fill:g.color,opacity:g.isFaded?.3:1,filter:g.isHighlighted?"brightness(120%)":"none",strokeWidth:1,strokeLinejoin:"round"},m,y({type:"pie",seriesId:s,dataIndex:o})))}const ZJ={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}},UJ={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 qJ(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}=OF();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),v=Math.max(0,m.innerRadius??a),y=Math.max(0,m.outerRadius??l+m.additionalRadius),b=m.cornerRadius??c,x=m.arcLabelRadius??s??(v+y)/2;return(0,Yh.A)({},e,m,{isFaded:f,isHighlighted:h,paddingAngle:g,innerRadius:v,outerRadius:y,cornerRadius:b,arcLabelRadius:x})}),[c,a,l,i,s,r,n,o,u,d,t])}const XJ=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"];function GJ(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,XJ),m=QV(qJ({innerRadius:n,outerRadius:o,cornerRadius:a,paddingAngle:s,id:l,highlighted:c,faded:u,data:d}),(0,Yh.A)({},ZJ,{immediate:h})),{highlightScope:g}=OF();if(0===d.length)return null;const v=t?.pieArc??WJ;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)(v,(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 YJ=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function KJ(e){return Dj("MuiPieArcLabel",e)}const QJ=EF("MuiPieArcLabel",["root","highlighted","faded"]),JJ=Wg(y$.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"})),e1=(e,t)=>(r,n,o,i,a)=>{if(!e)return 0;const[s,l]=BJ().cornerRadius(a).centroid({padAngle:o,startAngle:r,endAngle:n,innerRadius:i,outerRadius:i});return"x"===t?s:l};function t1(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,YJ),m=(e=>{const{classes:t,id:r,isFaded:n,isHighlighted:o}=e;return Pj({root:["root",`series-${r}`,o&&"highlighted",n&&"faded"]},KJ,t)})({id:t,classes:r,color:n,isFaded:p,isHighlighted:d});return(0,i.jsx)(JJ,(0,Yh.A)({className:m.root},f,{style:(0,Yh.A)({x:o$([o,a,s,l,c],e1(u,"x")),y:o$([o,a,s,l,c],e1(u,"y"))},h),children:u}))}const r1=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],n1=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],o1=180/Math.PI;function i1(e,t,r){if(!e)return null;if((r.endAngle-r.startAngle)*o1{let{startAngle:o,endAngle:a,paddingAngle:s,innerRadius:l,outerRadius:u,arcLabelRadius:d,cornerRadius:p}=e,h=(0,Kh.A)(e,n1);return(0,i.jsx)(y,(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:i1(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 l1(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 c1(e){const{skipAnimation:t,slots:r,slotProps:n,onItemClick:o}=e,a=function(){const e=uZ();return Xh.useMemo(()=>e.pie,[e.pie])}(),{left:s,top:l,width:c,height:u}=Xh.useContext(uW),d=hZ(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:v,highlighted:y,faded:b}=p[e],{cx:x,cy:w,availableRadius:C}=l1({cx:g,cy:v},{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)(GJ,{innerRadius:k,outerRadius:A,cornerRadius:h,paddingAngle:f,id:e,data:m,skipAnimation:d,highlighted:y,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:v,cx:y,cy:b}=p[e],{cx:x,cy:w,availableRadius:C}=l1({cx:y,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)(a1,{innerRadius:k,outerRadius:A??C,arcLabelRadius:S,cornerRadius:h,paddingAngle:f,id:e,data:v,skipAnimation:d,arcLabel:m,arcLabelMinAngle:g,slots:r,slotProps:n})},e)})]})}const u1=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],d1={top:5,bottom:5,left:5,right:100},p1={top:5,bottom:5,left:100,right:5},h1=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:v=null,rightAxis:y=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,u1),E=sK(),R=(0,Yh.A)({},E?p1:d1,c),L=(0,Yh.A)({direction:"column",position:{vertical:"middle",horizontal:E?"left":"right"}},m);return(0,i.jsxs)(hY,(0,Yh.A)({},j,{ref:t,series:a.map(e=>(0,Yh.A)({type:"pie"},e)),width:s,height:l,margin:R,xAxis:n??[{id:lW,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)(fK,{topAxis:g,leftAxis:v,rightAxis:y,bottomAxis:b,slots:w,slotProps:C}),(0,i.jsx)(c1,{slots:w,slotProps:C,onItemClick:A}),(0,i.jsx)(_J,{loading:k,slots:w,slotProps:C}),(0,i.jsx)(eJ,(0,Yh.A)({},L,{slots:w,slotProps:C})),(0,i.jsx)(nJ,(0,Yh.A)({},h)),!k&&(0,i.jsx)(VQ,(0,Yh.A)({},p,{slots:w,slotProps:C})),x]}))}),f1=()=>(0,i.jsxs)(Sm,{display:"flex",gap:1,children:[(0,i.jsx)(Rw,{variant:"subtitle1",children:(0,eA.__)("Feature usage","pojo-accessibility")}),(0,i.jsx)(nF,{content:(0,i.jsx)(Rw,{variant:"body1",sx:{p:2,maxWidth:"300px"},children:(0,eA.__)("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"})})]}),m1=e=>{const{itemData:t,series:r}=e;return(0,i.jsxs)(yO,{sx:{p:2,pb:1},children:[(0,i.jsx)(g1,{variant:"body2",color:"text.tertiary",itemColor:r.data[t.dataIndex].color,children:r.data[t.dataIndex].featureTitle}),(0,i.jsx)(Rw,{variant:"h6",children:`${r.data[t.dataIndex].featureClicks} (${r.data[t.dataIndex].value}%)`})]})},g1=Ky(Rw)`
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};
}
`,v1=()=>{const{stats:e}=E(),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:`${VS[e.event].chartsTitle}: ${r}%`,featureTitle:VS[e.event].chartsTitle,featureClicks:e.total,color:$S[t],value:r}}),h=e.elements.length>0&&null!==r;return(0,i.jsxs)(EN,{variant:"outlined",sx:{height:"100%"},ref:t,children:[(0,i.jsx)($N,{title:(0,i.jsx)(f1,{}),sx:{pb:0}}),h&&(0,i.jsx)(h1,{series:[{data:p,innerRadius:r<100?r-20:80,outerRadius:r<100?r:100,paddingAngle:0,cornerRadius:0,startAngle:0,endAngle:360,cx:r+48,cy:150}],sx:{[`& .${QJ.root}`]:{fontSize:"2.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},[`& .${ZQ.mark}`]:{ry:10}},slots:{itemContent:m1},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)(IJ,{})]})},y1=Xh.createContext();function b1(e){return bm("MuiTable",e)}xm("MuiTable",["root","stickyHeader"]);const x1=["className","component","padding","size","stickyHeader"],w1=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"})),C1="table",A1=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTable"}),{className:n,component:o=C1,padding:a="normal",size:s="medium",stickyHeader:l=!1}=r,c=(0,Kh.A)(r,x1),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"]},b1,t)})(u),p=Xh.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return(0,i.jsx)(y1.Provider,{value:p,children:(0,i.jsx)(w1,(0,Yh.A)({as:o,role:o===C1?null:"table",ref:t,className:Jh(d.root,n),ownerState:u},c))})}),k1=A1;var S1=Gh().forwardRef((e,t)=>Gh().createElement(k1,{...e,ref:t}));const _1=Xh.createContext();function M1(e){return bm("MuiTableBody",e)}xm("MuiTableBody",["root"]);const j1=["className","component"],E1=Wg("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),R1={variant:"body"},L1="tbody",I1=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableBody"}),{className:n,component:o=L1}=r,a=(0,Kh.A)(r,j1),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},M1,t)})(s);return(0,i.jsx)(_1.Provider,{value:R1,children:(0,i.jsx)(E1,(0,Yh.A)({className:Jh(l.root,n),as:o,ref:t,role:o===L1?null:"rowgroup",ownerState:s},a))})});var P1=Gh().forwardRef((e,t)=>Gh().createElement(I1,{...e,ref:t}));function O1(e){return bm("MuiTableCell",e)}const T1=xm("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),N1=["align","className","component","padding","scope","size","sortDirection","variant"],D1=Wg("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${mx(r.size)}`],"normal"!==r.padding&&t[`padding${mx(r.padding)}`],"inherit"!==r.align&&t[`align${mx(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",[`&.${T1.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})),z1=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,N1),h=Xh.useContext(y1),f=Xh.useContext(_1),m=f&&"head"===f.variant;let g;g=a||(m?"th":"td");let v=l;"td"===g?v=void 0:!v&&m&&(v="col");const y=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"===y&&h&&h.stickyHeader,variant:y}),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${mx(n)}`,"normal"!==o&&`padding${mx(o)}`,`size${mx(i)}`]},O1,t)})(b);let w=null;return u&&(w="asc"===u?"ascending":"descending"),(0,i.jsx)(D1,(0,Yh.A)({as:g,ref:t,className:Jh(x.root,o),"aria-sort":w,scope:v,ownerState:b},p))}),F1=z1;var B1=Gh().forwardRef((e,t)=>Gh().createElement(F1,{...e,ref:t}));function H1(e){return bm("MuiTableHead",e)}xm("MuiTableHead",["root"]);const V1=["className","component"],$1=Wg("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),W1={variant:"head"},Z1="thead",U1=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableHead"}),{className:n,component:o=Z1}=r,a=(0,Kh.A)(r,V1),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},H1,t)})(s);return(0,i.jsx)(_1.Provider,{value:W1,children:(0,i.jsx)($1,(0,Yh.A)({as:o,className:Jh(l.root,n),ref:t,role:o===Z1?null:"rowgroup",ownerState:s},a))})});var q1=Gh().forwardRef((e,t)=>Gh().createElement(U1,{...e,ref:t}));const X1=kA((0,i.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),G1=kA((0,i.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Y1=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],K1=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:v,rowsPerPage:y,showFirstButton:b,showLastButton:x,slots:w={},slotProps:C={}}=e,A=(0,Kh.A)(e,Y1),k=fv(),S=null!=(r=w.firstButton)?r:AA,_=null!=(n=w.lastButton)?n:AA,M=null!=(o=w.nextButton)?o:AA,j=null!=(a=w.previousButton)?a:AA,E=null!=(s=w.firstButtonIcon)?s:G1,R=null!=(l=w.lastButtonIcon)?l:X1,L=null!=(c=w.nextButtonIcon)?c:FT,I=null!=(u=w.previousButtonIcon)?u:zT,P=k?_:S,O=k?M:j,T=k?j:M,N=k?S:_,D=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===v,"aria-label":f("first",v),title:f("first",v)},D,{children:k?(0,i.jsx)(R,(0,Yh.A)({},C.lastButtonIcon)):(0,i.jsx)(E,(0,Yh.A)({},C.firstButtonIcon))})),(0,i.jsx)(O,(0,Yh.A)({onClick:e=>{g(e,v-1)},disabled:h||0===v,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},null!=z?z:d,{children:k?(0,i.jsx)(L,(0,Yh.A)({},C.nextButtonIcon)):(0,i.jsx)(I,(0,Yh.A)({},C.previousButtonIcon))})),(0,i.jsx)(T,(0,Yh.A)({onClick:e=>{g(e,v+1)},disabled:h||-1!==p&&v>=Math.ceil(p/y)-1,color:"inherit","aria-label":f("next",v),title:f("next",v)},null!=F?F:m,{children:k?(0,i.jsx)(I,(0,Yh.A)({},C.previousButtonIcon)):(0,i.jsx)(L,(0,Yh.A)({},C.nextButtonIcon))})),x&&(0,i.jsx)(N,(0,Yh.A)({onClick:e=>{g(e,Math.max(0,Math.ceil(p/y)-1))},disabled:h||v>=Math.ceil(p/y)-1,"aria-label":f("last",v),title:f("last",v)},B,{children:k?(0,i.jsx)(E,(0,Yh.A)({},C.firstButtonIcon)):(0,i.jsx)(R,(0,Yh.A)({},C.lastButtonIcon))}))]}))}),Q1=K1;function J1(e){return bm("MuiTablePagination",e)}const e0=xm("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var t0;const r0=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],n0=Wg(F1,{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}})),o0=Wg(dz,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,Yh.A)({[`& .${e0.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},[`& .${e0.actions}`]:{flexShrink:0,marginLeft:20}})),i0=Wg("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),a0=Wg("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>(0,Yh.A)({},e.typography.body2,{flexShrink:0})),s0=Wg(NI,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,Yh.A)({[`& .${e0.selectIcon}`]:t.selectIcon,[`& .${e0.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${e0.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),l0=Wg(gM,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),c0=Wg("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>(0,Yh.A)({},e.typography.body2,{flexShrink:0}));function u0({from:e,to:t,count:r}){return`${e}–${t} of ${-1!==r?r:`more than ${t}`}`}function d0(e){return`Go to ${e} page`}const p0=Xh.forwardRef(function(e,t){var r;const n=Xg({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=Q1,backIconButtonProps:a,className:s,colSpan:l,component:c=F1,count:u,disabled:d=!1,getItemAriaLabel:p=d0,labelDisplayedRows:h=u0,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:v,page:y,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,r0),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"]},J1,t)})(M),E=null!=(r=null==k?void 0:k.select)?r:w,R=E.native?"option":l0;let L;c!==F1&&"td"!==c||(L=l||1e3);const I=oE(E.id),P=oE(E.labelId);return(0,i.jsx)(n0,(0,Yh.A)({colSpan:L,ref:t,as:c,ownerState:M,className:Jh(j.root,s)},_,{children:(0,i.jsxs)(o0,{className:j.toolbar,children:[(0,i.jsx)(i0,{className:j.spacer}),x.length>1&&(0,i.jsx)(a0,{className:j.selectLabel,id:P,children:f}),x.length>1&&(0,i.jsx)(s0,(0,Yh.A)({variant:"standard"},!E.variant&&{input:t0||(t0=(0,i.jsx)(_L,{}))},{value:b,onChange:v,id:I,labelId:P},E,{classes:(0,Yh.A)({},E.classes,{root:Jh(j.input,j.selectRoot,(E.classes||{}).root),select:Jh(j.select,(E.classes||{}).select),icon:Jh(j.selectIcon,(E.classes||{}).icon)}),disabled:d,children:x.map(e=>(0,Xh.createElement)(R,(0,Yh.A)({},!ob(R)&&{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)(c0,{className:j.displayedRows,children:h({from:0===u?0:y*b+1,to:-1===u?(y+1)*b:-1===b?u:Math.min(u,(y+1)*b),count:-1===u?-1:u,page:y})}),(0,i.jsx)(o,{className:j.actions,backIconButtonProps:a,count:u,nextIconButtonProps:m,onPageChange:g,page:y,rowsPerPage:b,showFirstButton:C,showLastButton:A,slotProps:k.actions,slots:S.actions,getItemAriaLabel:p,disabled:d})]})}))}),h0=p0;var f0=Gh().forwardRef((e,t)=>Gh().createElement(h0,{...e,ref:t}));function m0(e){return bm("MuiTableRow",e)}const g0=xm("MuiTableRow",["root","selected","hover","head","footer"]),v0=["className","component","hover","selected"],y0=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,[`&.${g0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${g0.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)}}})),b0="tr",x0=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableRow"}),{className:n,component:o=b0,hover:a=!1,selected:s=!1}=r,l=(0,Kh.A)(r,v0),c=Xh.useContext(_1),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"]},m0,t)})(u);return(0,i.jsx)(y0,(0,Yh.A)({as:o,ref:t,className:Jh(d.root,n),role:o===b0?null:"row",ownerState:u},l))}),w0=["disableDivider"],C0=Ky(x0,{shouldForwardProp:e=>!w0.includes(e)})(({disableDivider:e})=>e?{"& td, & th":{borderBottom:0}}:{});var A0=Gh().forwardRef((e,t)=>Gh().createElement(C0,{...e,ref:t}));const k0=()=>(0,i.jsxs)(Sm,{display:"flex",gap:1,children:[(0,i.jsx)(Rw,{variant:"subtitle1",children:(0,eA.__)("Most used features","pojo-accessibility")}),(0,i.jsx)(nF,{content:(0,i.jsx)(Rw,{variant:"body1",sx:{p:2,maxWidth:"300px"},children:(0,eA.__)("Track how often all your widget’s accessibility features are used.","pojo-accessibility")}),children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),S0=()=>{const{stats:e}=E(),[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,eA.__)("Left align text","pojo-accessibility"):(0,eA.__)("Right align text","pojo-accessibility");case"contrast":switch(t){case"dark":return(0,eA.__)("Dark contrast","pojo-accessibility");case"light":return(0,eA.__)("Light contrast","pojo-accessibility");default:return(0,eA.__)("High contrast","pojo-accessibility")}case"screen-reader":switch(t){case"read-normal":return(0,eA.__)("Screen reader","pojo-accessibility");case"read-fast":return(0,eA.__)("Screen reader fast","pojo-accessibility");default:return(0,eA.__)("Screen reader slow","pojo-accessibility")}default:return`${VS[e].chartsTitle}${t?` ${t}`:""}`}};return(0,i.jsxs)(EN,{variant:"outlined",children:[(0,i.jsx)($N,{title:(0,i.jsx)(k0,{})}),(0,i.jsxs)(xz,{sx:{minHeight:"450px"},children:[(0,i.jsxs)(S1,{children:[(0,i.jsx)(q1,{children:(0,i.jsxs)(A0,{children:[(0,i.jsx)(B1,{variant:"head",width:"40%",sx:0===e.elements.length?{borderBottom:"none"}:null,children:(0,eA.__)("Features","pojo-accessibility")}),(0,i.jsx)(B1,{variant:"head",width:"60%",sx:0===e.elements.length?{borderBottom:"none"}:null,children:(0,eA.__)("Times used","pojo-accessibility")})]})}),(0,i.jsx)(P1,{children:o[t]?.map((e,t)=>(0,i.jsxs)(A0,{children:[(0,i.jsx)(B1,{children:(0,i.jsxs)(Sm,{display:"flex",alignItems:"center",gap:1,children:[VS[e.event].icon,(0,i.jsx)(Rw,{variant:"body2",children:a(e.event,e.value)})]})}),(0,i.jsx)(B1,{children:(0,i.jsx)(Rw,{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)(f0,{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)(IJ,{})]})]})},_0=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"})]}),M0=({animated:e})=>(0,i.jsxs)(EN,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)($N,{title:e?(0,i.jsx)(Rw,{variant:"subtitle1",children:(0,i.jsx)(TD,{width:150,sx:{p:2},animation:!!e&&"wave",variant:"text"})}):(0,i.jsx)(EJ,{}),subheader:e?null:(0,i.jsx)(Rw,{variant:"h3",sx:{height:"50px"},children:"--"}),sx:{height:e?"100px":"auto",alignItems:"start"}}),(0,i.jsx)(xz,{sx:{pt:3,pr:4},children:(0,i.jsx)(_0,{width:"489",height:"194"})})]});var j0=Gh().forwardRef((e,t)=>Gh().createElement(sO,{...e,ref:t}));const E0=({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)(EN,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)($N,{title:e?(0,i.jsx)(Rw,{variant:"subtitle1",children:(0,i.jsx)(TD,{width:150,sx:{p:2},animation:!!e&&"wave",variant:"text"})}):(0,i.jsx)(f1,{}),sx:{height:"60px",alignItems:"start"}}),(0,i.jsx)(xz,{ref:t,sx:{pt:5},children:(0,i.jsxs)(j0,{direction:"row",spacing:6,alignItems:"center",justifyContent:"center",sx:{pb:4},children:[(0,i.jsx)(R0,{variant:"circular",width:r,height:r,animation:!!e&&"wave"}),(0,i.jsx)(j0,{spacing:2,children:Array.from({length:5}).map((t,n)=>(0,i.jsxs)(j0,{direction:"row",alignItems:"center",spacing:1,children:[(0,i.jsx)(TD,{variant:"circular",width:10,height:10,animation:!!e&&"wave"}),(0,i.jsx)(TD,{variant:"rounded",width:r,height:15,animation:!!e&&"wave"})]},n))})]})})]})},R0=Ky(TD)`
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;
}
`,L0=({animated:e})=>(0,i.jsxs)(EN,{variant:"outlined",sx:{height:"100%"},children:[(0,i.jsx)($N,{title:e?(0,i.jsx)(Rw,{variant:"subtitle1",children:(0,i.jsx)(TD,{width:150,sx:{p:2},animation:!!e&&"wave",variant:"text"})}):(0,i.jsx)(k0,{}),sx:{height:"60px",alignItems:"start"}}),(0,i.jsx)(xz,{sx:{pt:3},children:(0,i.jsx)(j0,{spacing:1,children:Array.from({length:10}).map((t,r)=>(0,i.jsxs)(j0,{direction:"row",alignItems:"center",spacing:8,children:[(0,i.jsx)(TD,{width:230,height:25,animation:!!e&&"wave",sx:{mr:6}}),(0,i.jsx)(TD,{width:120,height:25,animation:!!e&&"wave"})]},r))})})]}),I0=()=>{const{stats:e,isAnalyticsEnabled:t,isProVersion:r,loading:n,period:o,setPeriod:a}=E(),s=e.dates.at(-1)?.date&&new Date(e.dates.at(-1)?.date),l=s&&s.setDate(s.getDate()+30),c=!r||l&&t,u=n||!l;return(0,i.jsxs)(O0,{children:[!c&&(0,i.jsxs)(ak,{color:"info",icon:(0,i.jsx)(iF,{}),sx:{width:"100%"},children:[l&&!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(YD,{sx:{width:"100%"},children:(0,eA.sprintf)(
// Translators: %s - date
// Translators: %s - date
(0,eA.__)("Data available till %s","pojo-accessibility"),(0,RJ.dateI18n)("Y/m/d",l,!1))}),(0,eA.__)("We are showing you data collecting in the past","pojo-accessibility")]}),!l&&t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(YD,{sx:{width:"100%"},children:(0,eA.__)("Not enough data","pojo-accessibility")}),(0,eA.__)("We don't have enough data to show you for those days","pojo-accessibility")]}),!l&&!t&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(YD,{sx:{width:"100%"},children:(0,eA.__)("Need to switch on","pojo-accessibility")}),(0,eA.__)("We don't have enough data to show you for those days","pojo-accessibility")]})]}),(0,i.jsxs)(Sm,{display:"flex",alignItems:"center",gap:2,children:[(0,i.jsx)(Rw,{variant:"subtitle1",children:(0,eA.__)("Display data from","pojo-accessibility")}),(0,i.jsxs)(ZI,{name:(0,eA.__)("Period","pojo-accessibility"),onChange:e=>{a(Number(e.target.value)),Fh(Uh,{selectedItem:e.target.value})},value:o,size:"small",IconComponent:()=>(0,i.jsx)(P0,{children:(0,i.jsx)(aF,{})}),color:"secondary",sx:{width:"270px",position:"relative"},variant:"outlined",children:[(0,i.jsx)(vM,{value:0,children:(0,eA.__)("Today","pojo-accessibility")}),(0,i.jsx)(vM,{value:1,children:(0,eA.__)("Yesterday","pojo-accessibility")}),(0,i.jsx)(vM,{value:7,children:(0,eA.__)("Last 7 days","pojo-accessibility")}),(0,i.jsx)(vM,{value:30,children:(0,eA.__)("Last 30 days","pojo-accessibility")})]})]}),(0,i.jsxs)(sv,{container:!0,spacing:4,children:[(0,i.jsx)(sv,{item:!0,xs:12,lg:6,children:u?(0,i.jsx)(M0,{animated:n}):(0,i.jsx)(PJ,{})}),(0,i.jsx)(sv,{item:!0,xs:12,lg:6,children:u?(0,i.jsx)(E0,{animated:n}):(0,i.jsx)(v1,{})}),(0,i.jsx)(sv,{item:!0,xs:12,children:u?(0,i.jsx)(L0,{animated:n}):(0,i.jsx)(S0,{})})]})]})},P0=Ky(bC)`
position: absolute;
top: 50%;
right: 8px;
cursor: pointer;
pointer-events: none;
transform: translateY(-50%);
`,O0=Ky(Sm)`
display: flex;
flex-direction: column;
align-items: start;
gap: ${({theme:e})=>e.spacing(4)};
max-width: 1200px;
margin-left: auto;
margin-right: auto;
`,T0=e=>(0,i.jsx)(bC,{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"})}),N0=r.p+"images/upgrade.fdf64881.png",D0=Ky(yO)`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 600px;
max-width: calc(100% - 48px);
padding: 16px;
`,z0=Ky(Sm)`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 40px;
`,F0=()=>(0,i.jsx)(Ew,{open:!0,disablePortal:!0,hideBackdrop:!0,"aria-labelledby":"upgrade-modal-title","aria-describedby":"upgrade-modal-description",children:(0,i.jsx)(D0,{elevation:24,children:(0,i.jsx)(mz,{children:(0,i.jsxs)(z0,{children:[(0,i.jsx)("img",{src:N0,alt:(0,eA.__)("Upgrade image","pojo-accessibility")}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(Rw,{variant:"h5",id:"upgrade-modal-title",align:"center",sx:{mb:1},children:(0,eA.__)("Discover how visitors use your widget","pojo-accessibility")}),(0,i.jsx)(Rw,{variant:"body2",id:"upgrade-modal-description",align:"center",children:(0,eA.__)("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)(cC,{href:JC.ANALYTICS_POPUP,target:"_blank",size:"large",color:"accent",startIcon:(0,i.jsx)(T0,{}),variant:"contained",sx:{width:300},onClick:()=>{Fh(Wh,{component:"Upgrade popup",feature:"Analytic"})},children:(0,eA.__)("Upgrade now","pojo-accessibility")})]})})})}),B0=Ky(Sm)`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
backdrop-filter: blur(5px);
z-index: 2;
`,H0=Ky(Sm)`
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin-bottom: 40px;
margin-right: auto;
margin-left: auto;
`,V0=()=>{const{isProVersion:e}=E();return(0,n.useEffect)(()=>{Fh(Bh,{page:"Analytics"})},[]),(0,i.jsxs)(fz,{sx:{position:"relative"},children:[(0,i.jsxs)(gz,{children:[(0,i.jsxs)(H0,{children:[(0,i.jsx)(vz,{variant:"h4",color:"text.primary",sx:{mb:0,position:"relative",zIndex:3},children:(0,eA.__)("Analytics","pojo-accessibility")}),(0,i.jsx)(oF,{})]}),(0,i.jsx)(I0,{})]}),!e&&(0,i.jsx)(B0,{children:(0,i.jsx)(F0,{})})]})},$0=()=>((0,n.useEffect)(()=>{Fh(Bh,{page:"Button"})},[]),(0,i.jsxs)(fz,{children:[(0,i.jsxs)(gz,{children:[(0,i.jsx)(W0,{variant:"h4",color:"text.primary",children:(0,eA.__)("Design","pojo-accessibility")}),(0,i.jsx)(dT,{marginBottom:4}),(0,i.jsx)(dN,{})]}),(0,i.jsx)(M4,{})]})),W0=Ky(Rw)`
max-width: 1200px;
// Spacing
margin-bottom: 16px;
margin-right: auto;
margin-left: auto;
// Typography
font-weight: 400;
letter-spacing: 0.25px;
`,Z0=Ky(EN)`
padding: ${({theme:e})=>e.spacing(2)};
margin-block: ${({theme:e})=>e.spacing(4)};
max-width: 1200px;
margin-left: auto;
margin-right: auto;
`,U0=Ky(Sm)`
display: flex;
align-items: center;
justify-content: space-between;
`,q0=Ky(AN)`
input {
height: 56px !important;
}
`,X0=Ky(Sm)`
display: flex;
flex-direction: column;
gap: 16px;
align-items: flex-start;
justify-content: start;
padding-top: 16px;
`,G0=Ky(UE)`
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
padding-top: 7px;
`,Y0=Ky(UI)`
width: 200px;
input {
height: 36px;
}
`,K0=Ky(Rw)`
display: flex;
gap: 8px;
align-items: center;
`,Q0=()=>{const{skipToContentSettings:e,setSkipToContentSettings:t,skipToContentHasChanges:r,setSkipToContentHasChanges:n,hasError:o,setHasError:a,setHasChanges:l}=s(),c=(0,eA.__)("This feature allows visitors with visual assistive tools to skip to the main content of each page they’re viewing.","pojo-accessibility"),u=(0,eA.__)("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)(Z0,{variant:"outlined",children:[(0,i.jsxs)(U0,{children:[(0,i.jsxs)(K0,{variant:"subtitle1",id:"ea11y-skip-to-content-toggle","aria-description":c,children:[(0,eA.__)("Skip to main content","pojo-accessibility"),(0,i.jsx)(nF,{tabIndex:"0",content:(0,i.jsxs)(Sm,{sx:{p:2,maxWidth:"250px"},children:[(0,i.jsx)(Rw,{variant:"subtitle2",sx:{mb:1},children:(0,eA.__)("Skip to main content","pojo-accessibility")}),(0,i.jsx)(Rw,{variant:"body2",children:c})]}),placement:"right",arrow:!0,children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),(0,i.jsx)(q0,{size:"medium",color:"info",checked:e?.enabled||!1,onChange:()=>{t({...e,enabled:!e.enabled}),a({...o,sitemap:!e?.enabled&&!I(e?.anchor)}),n(!0),l(!0)},inputProps:{"area-labelledby":"ea11y-skip-to-content-toggle"}})]}),(0,i.jsx)(Rw,{variant:"body1",children:(0,eA.__)("Add skip to content link when using keyboard","pojo-accessibility")}),(0,i.jsxs)(X0,{children:[(0,i.jsxs)(G0,{htmlFor:"skip-to-content-anchor","aria-description":u,children:[(0,eA.__)("Main content ID","pojo-accessibility"),(0,i.jsx)(nF,{tabIndex:"0",content:(0,i.jsxs)(Sm,{sx:{p:2,maxWidth:"250px"},children:[(0,i.jsx)(Rw,{variant:"subtitle2",sx:{mb:1},children:(0,eA.__)("Skip to main content","pojo-accessibility")}),(0,i.jsx)(Rw,{variant:"body2",children:u})]}),placement:"right",arrow:!0,children:(0,i.jsx)(Cz,{fontSize:"small"})})]}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(Y0,{id:"skip-to-content-anchor",type:"url",onChange:r=>{t({...e,anchor:r.target.value});const i=I(r.target.value);a({...o,skipToContent:!i}),n(i),l(i)},onBlur:()=>{r&&Fh($h,{fieldName:"skip-to-content-anchor",value:e.anchor})},value:e.anchor,error:o.skipToContent,size:"small",variant:"outlined"}),o.skipToContent&&(0,i.jsx)(Rw,{as:"p",variant:"caption",color:"error",sx:{marginTop:"4px"},children:(0,eA.__)("Please enter valid ID!","pojo-accessibility")})]})]})]})},J0=()=>((0,n.useEffect)(()=>{Fh(Bh,{page:"Capabilities"})},[]),(0,i.jsxs)(fz,{children:[(0,i.jsxs)(gz,{children:[(0,i.jsx)(t2,{variant:"h4",color:"text.primary",children:(0,eA.__)("Capabilities","pojo-accessibility")}),(0,i.jsxs)(e2,{children:[(0,i.jsx)(UN,{}),(0,i.jsx)(iD,{})]}),(0,i.jsx)(Q0,{})]}),(0,i.jsx)(M4,{})]})),e2=Ky(Sm)`
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: ${({theme:e})=>e.spacing(4)};
max-width: 1200px;
margin-left: auto;
margin-right: auto;
`,t2=Ky(Rw)`
font-weight: 400;
letter-spacing: 0.25px;
margin-bottom: 16px;
max-width: 1200px;
margin-right: auto;
margin-left: auto;
`,r2=e=>(0,i.jsxs)(bC,{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"})]}),n2=e=>(0,i.jsx)(bC,{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"})}),o2=e=>(0,i.jsx)(bC,{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"})}),i2=Ky(Sm)`
margin-top: ${({theme:e})=>e.spacing(8)};
text-align: center;
`,a2=Ky(Rw)`
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};
`,s2=Ky(Rw)`
color: ${({theme:e})=>e.palette.text.secondary};
margin-bottom: ${({theme:e})=>e.spacing(2)};
`,l2=Ky(hC)`
font-size: 15px;
line-height: 24px;
letter-spacing: 0.4px;
`,c2=Ky(Sm)`
margin-top: ${({theme:e})=>e.spacing(8)};
`,u2=Ky(Rw)`
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;
`,d2=Ky(Sm)`
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: ${({theme:e})=>e.spacing(2)};
`,p2=Ky(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;
`,h2=Ky(Rw)`
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)};
}
`,f2=()=>{const e=window?.ea11ySettingsData?.homeUrl,t=(0,y.addQueryArgs)(e,{"open-ea11y-assistant":"1","open-ea11y-assistant-src":"Ally_dashboard"});return(0,i.jsxs)(i2,{children:[(0,i.jsx)(GC,{}),(0,i.jsx)(a2,{variant:"h6",as:"h2",children:(0,eA.__)("Start by scanning your home page","pojo-accessibility")}),(0,i.jsx)(s2,{variant:"body1",children:(0,eA.__)("Find and resolve accessibility issues for a more inclusive website.","pojo-accessibility")}),(0,i.jsx)(l2,{size:"medium",color:"info",variant:"contained",href:t,onClick:()=>{Fh(qh,{cta_text:"scan_home_page",source:"empty_state"})},target:"_blank",children:(0,eA.__)("Scan home page","pojo-accessibility")}),(0,i.jsxs)(c2,{children:[(0,i.jsx)(u2,{variant:"subtitle1",as:"h2",children:(0,eA.__)("Here’s how it works","pojo-accessibility")}),(0,i.jsxs)(d2,{children:[(0,i.jsxs)(p2,{children:[(0,i.jsxs)(h2,{variant:"subtitle2",as:"h3",children:[(0,i.jsx)(r2,{}),(0,eA.__)("Scan a page","pojo-accessibility")]}),(0,i.jsx)(Rw,{variant:"body2",children:(0,eA.__)("Automatically find accessibility issues.","pojo-accessibility")})]}),(0,i.jsxs)(p2,{children:[(0,i.jsxs)(h2,{variant:"subtitle2",as:"h3",children:[(0,i.jsx)(o2,{}),(0,eA.__)("Resolve issues","pojo-accessibility")]}),(0,i.jsx)(Rw,{variant:"body2",children:(0,eA.__)("Resolve them with Ally, AI, or manually.","pojo-accessibility")})]}),(0,i.jsxs)(p2,{children:[(0,i.jsxs)(h2,{variant:"subtitle2",as:"h3",children:[(0,i.jsx)(n2,{}),(0,eA.__)("Track everything","pojo-accessibility")]}),(0,i.jsx)(Rw,{variant:"body2",children:(0,eA.__)("Monitor results, progress, and statuses.","pojo-accessibility")})]})]})]})]})},m2=({period:e,onPeriodChange:t,isEmpty:r,loading:n})=>{const o="ea11y-accessibility-wizard-time-range-select";return(0,i.jsxs)(v2,{children:[(0,i.jsxs)(g2,{variant:"h5",as:"h1",children:[(0,eA.__)("Accessibility scans","pojo-accessibility"),(0,i.jsx)(a_,{size:"small",variant:"filled",color:"default",label:(0,eA.__)("Beta","pojo-accessibility")})]}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(y2,{htmlFor:o,children:(0,eA.__)("Display data from","pojo-accessibility")}),(0,i.jsxs)(ZI,{id:o,variant:"outlined",size:"small",color:"secondary",onChange:t,value:e,disabled:r||n,children:[(0,i.jsx)(vM,{value:0,children:(0,eA.__)("Today","pojo-accessibility")}),(0,i.jsx)(vM,{value:1,children:(0,eA.__)("Yesterday","pojo-accessibility")}),(0,i.jsx)(vM,{value:7,children:(0,eA.__)("Last 7 days","pojo-accessibility")}),(0,i.jsx)(vM,{value:30,children:(0,eA.__)("Last 30 days","pojo-accessibility")}),(0,i.jsx)(vM,{value:60,children:(0,eA.__)("Last 60 days","pojo-accessibility")})]})]})]})};m2.propTypes={period:Qk().number.isRequired,onPeriodChange:Qk().func.isRequired,isEmpty:Qk().bool,loading:Qk().bool};const g2=Ky(Rw)`
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;
}
`,v2=Ky(Sm)`
display: flex;
justify-content: space-between;
align-items: center;
.MuiSelect-select {
min-width: 270px;
}
`,y2=Ky(UE)`
margin-inline-end: ${({theme:e})=>e.spacing(1)};
color: ${({theme:e})=>e.palette.common.black};
font-weight: 500;
`,b2=m2,x2=window.wp.a11y,w2=(0,n.createContext)(null),C2=({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}}),[v,y]=(0,n.useState)({});(0,n.useEffect)(()=>{r(!0),Promise.all([_.getScannerStats(o),_.getPostTypes(),_.getScannerResults()]).then(([e,t,r])=>{g(e),y(t),u(r)}).finally(()=>{r(!1)})},[]),(0,n.useEffect)(()=>{r(!0),_.getScannerStats(o).then(e=>{g(e),r(!1)})},[o]),(0,n.useEffect)(()=>{const e=b();e.length?(0,x2.speak)((0,eA.sprintf)(
// Translators: %s - count
// Translators: %s - count
(0,eA.__)("Found %s scanned URLs","pojo-accessibility"),e.length),"polite"):(0,x2.speak)((0,eA.__)("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)(w2.Provider,{value:{period:o,onPeriodChange:e=>{a(parseInt(e.target.value,10)),Fh(Uh,{selectedItem:e.target.value})},stats:m,postTypes:v,scannerResults:c,getFilteredScannerResults:b,search:s,setSearch:l,page:d,setPage:p,rowsPerPage:h,setRowsPerPage:f,loading:t},children:e})},A2=()=>(0,n.useContext)(w2),k2=Ky(Sm)`
margin-top: ${({theme:e})=>e.spacing(6)};
text-align: center;
`,S2=Ky(Rw)`
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=Ky(Rw)`
color: ${({theme:e})=>e.palette.text.secondary};
`,M2=()=>{const{search:e}=A2();return e?(0,i.jsxs)(k2,{children:[(0,i.jsx)(YC,{}),(0,i.jsx)(S2,{variant:"subtitle1",as:"h3",children:(0,eA.__)("No matching results found","pojo-accessibility")}),(0,i.jsx)(_2,{variant:"body2",children:(0,eA.__)("Try entering something else or checking if the spelling is correct before trying again.","pojo-accessibility")})]}):(0,i.jsxs)(k2,{children:[(0,i.jsx)(YC,{}),(0,i.jsx)(S2,{variant:"subtitle1",as:"h3",children:(0,eA.__)("No data to display for this period","pojo-accessibility")}),(0,i.jsx)(_2,{variant:"body2",children:(0,eA.__)("Try selecting a different timeframe to see your scan results.","pojo-accessibility")})]})};var j2=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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:E2,classNames:R2}=VA("MenuItemIcon",["root"]),L2=Ky(_C,E2.root)({});var I2=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:E2.root.name});return Gh().createElement(L2,{...r,ref:t,className:Ox([[R2.root,r.className]]),ownerState:r})});const{slots:P2,classNames:O2}=VA("MenuItemText",["root"]),T2=Ky(Ex,P2.root)({});var N2=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:P2.root.name});return Gh().createElement(T2,{...r,ref:t,className:Ox([[O2.root,r.className]]),ownerState:r})}),D2=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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 z2=Ky(hC)`
margin-inline-end: ${({theme:e})=>e.spacing(2)};
`,F2=Ky(UI)`
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;
}
`,B2=()=>{const{search:e,setSearch:t,loading:r}=A2(),[o,a]=(0,n.useState)(!1),s=(0,n.useRef)(null),l=FP(e=>{Fh("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)(z2,{onClick:()=>{a(!0),s.current?.focus()},variant:"text",color:"secondary",size:"medium",startIcon:(0,i.jsx)(D2,{fontSize:"small",role:"presentation"}),children:(0,eA.__)("Search","pojo-accessibility")}),(0,i.jsx)(F2,{inputRef:s,variant:"outlined",size:"medium",type:"search","aria-hidden":!c,expanded:c,"aria-label":(0,eA.__)("Search scanned URLs","pojo-accessibility"),placeholder:(0,eA.__)("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)(kR,{position:"start",children:(0,i.jsx)(D2,{fontSize:"small",role:"presentation"})})}})]})},H2=Ky(dM)`
.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)};
}
`,V2=Ky(vM)`
padding-top: 0;
padding-bottom: 0;
padding-inline-start: ${({theme:e})=>e.spacing(1.25)};
padding-inline-end: ${({theme:e})=>e.spacing(.75)};
`,$2=Ky(hC)`
width: 100%;
`,W2=Ky(Sm)`
display: flex;
justify-content: space-between;
align-items: center;
`,Z2=Ky(Sm)`
display: flex;
align-items: center;
`,U2=()=>{const{postTypes:e,loading:t}=A2(),r=rP({variant:"popover",popupId:"myAccountMenu"});return(0,i.jsxs)(W2,{children:[(0,i.jsx)(Rw,{variant:"h6",as:"h2",children:(0,eA.__)("Scanned URLs","pojo-accessibility")}),(0,i.jsxs)(Z2,{children:[(0,i.jsx)(B2,{}),(0,i.jsx)(hC,{size:"medium",color:"info",variant:"contained",endIcon:r.isOpen?(0,i.jsx)(j2,{fontSize:"small"}):(0,i.jsx)(aF,{fontSize:"small"}),disabled:t||!e,...KI(r),children:(0,eA.__)("New scan","pojo-accessibility")}),(0,i.jsx)(H2,{MenuListProps:{dense:!0},...QI(r),onClose:r.close,children:Object.values(e).map(e=>(0,i.jsx)(V2,{shape:"rounded",onClick:t=>((e,t,r)=>{e.preventDefault(),window.open(t,"_blank"),Fh(qh,{cta_text:`new_scan_${r}`,source:"main_table_cta"})})(t,e.url,e.label),children:(0,i.jsxs)($2,{href:e.url,target:"_blank",children:[(0,i.jsx)(N2,{primary:e.label,sx:{whiteSpace:"nowrap"}}),(0,i.jsx)(I2,{children:(0,i.jsx)(C_,{fontSize:"small",role:"presentation"})})]})},e.label))})]})]})};var q2=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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 X2(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 G2=["className","color","value","valueBuffer","variant"];let Y2,K2,Q2,J2,e5,t5,r5=e=>e;const n5=(0,Eb.i7)(Y2||(Y2=r5`
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
`)),o5=(0,Eb.i7)(K2||(K2=r5`
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
`)),i5=(0,Eb.i7)(Q2||(Q2=r5`
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),s5=Wg("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${mx(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)"})),l5=Wg("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${mx(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,Eb.AH)(J2||(J2=r5`
animation: ${0} 3s infinite linear;
`),i5)),c5=Wg("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${mx(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,Eb.AH)(e5||(e5=r5`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
`),n5)),u5=Wg("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${mx(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,Eb.AH)(t5||(t5=r5`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
`),o5)),d5=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,G2),u=(0,Yh.A)({},r,{color:o,variant:l}),d=(e=>{const{classes:t,variant:r,color:n}=e;return Fg({root:["root",`color${mx(n)}`,r],dashed:["dashed",`dashedColor${mx(n)}`],bar1:["bar",`barColor${mx(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${mx(n)}`,"buffer"===r&&`color${mx(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]},X2,t)})(u),p=fv(),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)(s5,(0,Yh.A)({className:Jh(d.root,n),ownerState:u,role:"progressbar"},h,{ref:t},c,{children:["buffer"===l?(0,i.jsx)(l5,{className:d.dashed,ownerState:u}):null,(0,i.jsx)(c5,{className:d.bar1,ownerState:u,style:f.bar1}),"determinate"===l?null:(0,i.jsx)(u5,{className:d.bar2,ownerState:u,style:f.bar2})]}))}),p5=d5;var h5=Gh().forwardRef((e,t)=>Gh().createElement(p5,{...e,ref:t}));function f5(e){return bm("MuiTableContainer",e)}xm("MuiTableContainer",["root"]);const m5=["className","component"],g5=Wg("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),v5=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,a=(0,Kh.A)(r,m5),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},f5,t)})(s);return(0,i.jsx)(g5,(0,Yh.A)({ref:t,as:o,className:Jh(l.root,n),ownerState:s},a))});var y5=Gh().forwardRef((e,t)=>Gh().createElement(v5,{...e,ref:t}));function b5(e){return bm("MuiTableFooter",e)}xm("MuiTableFooter",["root"]);const x5=["className","component"],w5=Wg("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),C5={variant:"footer"},A5="tfoot",k5=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiTableFooter"}),{className:n,component:o=A5}=r,a=(0,Kh.A)(r,x5),s=(0,Yh.A)({},r,{component:o}),l=(e=>{const{classes:t}=e;return Fg({root:["root"]},b5,t)})(s);return(0,i.jsx)(_1.Provider,{value:C5,children:(0,i.jsx)(w5,(0,Yh.A)({as:o,className:Jh(l.root,n),ref:t,role:o===A5?null:"rowgroup",ownerState:s},a))})});var S5=Gh().forwardRef((e,t)=>Gh().createElement(k5,{...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"},M5=({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),j5=(0,n.memo)(()=>(0,i.jsxs)(MS,{speed:DS.SPEED,foregroundColor:DS.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"})]})),E5=(0,n.memo)(()=>(0,i.jsx)(Sm,{children:(0,i.jsx)(j5,{})}));var R5=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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 L5=({percentage:e,pageUrl:t})=>{const r=(0,y.addQueryArgs)(t,{"open-ea11y-assistant":"1","open-ea11y-assistant-src":"Ally_dashboard"}),n=e=>{Fh(qh,{cta_text:e,source:"history_logs_list"})};return 100===e?(0,i.jsx)(I5,{size:"small",color:"secondary",variant:"outlined",href:r,onClick:()=>n("rescan_url"),target:"_blank",rel:"noreferrer",endIcon:(0,i.jsx)(R5,{}),children:(0,eA.__)("New scan","pojo-accessibility")}):(0,i.jsx)(I5,{size:"small",color:"secondary",variant:"outlined",href:r,onClick:()=>n("fix_issues"),target:"_blank",rel:"noreferrer",children:(0,eA.__)("Resolve issues","pojo-accessibility")})};L5.propTypes={percentage:Qk().number.isRequired,pageUrl:Qk().string.isRequired};const I5=Ky(hC)`
min-width: 115px;
`,P5=L5;var O5=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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"})));Ky(yO)`
position: relative;
width: 425px;
min-height: 100vh;
height: fit-content;
`,Ky(EN)`
border-radius: 8px;
margin-bottom: ${({theme:e})=>e.spacing(2)};
box-shadow: 0 3px 14px 2px rgba(0, 0, 0, 0.12);
`,Ky(Sm)`
display: flex;
gap: ${({theme:e})=>e.spacing(1)};
align-items: center;
`,Ky(ON)`
&:last-child {
padding-bottom: ${({theme:e})=>e.spacing(2)};
}
`,Ky(ON)`
padding: 0 ${({theme:e})=>e.spacing(2)};
`,Ky(Sm)`
display: flex;
gap: ${({theme:e})=>e.spacing(1)};
flex-direction: column;
padding: 0 ${({theme:e})=>e.spacing(2)};
`,Ky(TD)`
transform: scale(1);
`,Ky(ak)`
align-items: center;
/* @noflip */
padding-right: ${({theme:e})=>e.spacing(.5)};
/* @noflip */
direction: ltr;
& .MuiAlert-icon,
& .MuiAlert-content {
padding-top: 0;
display: flex;
}
${({disabled:e})=>e?"\n\t\topacity: .7;\n\t\tcursor: not-allowed;\n\t\t& * {\n\t\t\tpointer-events: none;\n\t\t}\n\t":""}
`,Ky(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)};
`,Ky(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)};
`,Ky(Rw)`
max-width: 250px;
text-align: center;
margin-bottom: ${({theme:e})=>e.spacing(2)};
`,Ky(yO)`
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};
}
`,Ky(cC)`
font-weight: 400;
justify-content: start;
padding: 0;
`,Ky(Sm)`
display: flex;
justify-content: space-between;
align-items: flex-start;
`,Ky(Sm)`
display: flex;
justify-content: center;
width: 100%;
gap: ${({theme:e})=>e.spacing(1)};
`,Ky(Sm)`
display: flex;
flex-direction: column;
gap: ${({theme:e})=>e.spacing(1)};
`;const T5=Ky(N2)`
color: ${({theme:e})=>e.palette.text.disabled};
`,N5=({pageUrl:e,remediationCount:t})=>{const[r,o]=(0,n.useState)(!1),a=(0,n.useRef)(null),s=(0,y.addQueryArgs)(e,{"open-ea11y-assistant":"1","open-ea11y-assistant-src":"Ally_dashboard"}),l=(0,y.addQueryArgs)(e,{"open-ea11y-manage":"1","open-ea11y-assistant-src":"Ally_dashboard"}),c=()=>o(!1),u=e=>{Fh("scan_log_actions_button_clicked",{action:e})};return(0,i.jsxs)(Sm,{children:[(0,i.jsx)(HA,{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,eA.__)("Menu","pojo-accessibility"),children:(0,i.jsx)(O5,{})}),(0,i.jsxs)(dM,{open:r,id:"assistant-menu",anchorEl:a.current,container:a.current,onClose:c,MenuListProps:{"aria-labelledby":"menu-button"},PaperProps:{style:{overflow:"visible"}},disablePortal:!0,children:[(0,i.jsxs)(vM,{component:"a",href:s,target:"_blank",rel:"noreferrer",onClick:()=>{u("scan")},children:[(0,i.jsx)(I2,{children:(0,i.jsx)(R5,{})}),(0,i.jsx)(N2,{children:(0,eA.__)("New Scan","pojo-accessibility")})]}),t<1?(0,i.jsx)(bE,{arrow:!0,placement:"left",title:(0,eA.__)("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)(vM,{children:[(0,i.jsx)(I2,{children:(0,i.jsx)(GO,{color:"disabled"})}),(0,i.jsx)(T5,{children:(0,eA.__)("Manage AI fixes","pojo-accessibility")})]})}):(0,i.jsxs)(vM,{component:"a",href:l,target:"_blank",rel:"noreferrer",onClick:()=>{c(),u("manage fixes")},children:[(0,i.jsx)(I2,{children:(0,i.jsx)(GO,{})}),(0,i.jsx)(N2,{children:(0,eA.__)("Manage AI fixes","pojo-accessibility")})]})]})]})};N5.propTypes={pageUrl:Qk().string.isRequired,remediationCount:Qk().number.isRequired};const D5=Ky(f0)``,z5=()=>{const{scannerResults:e,page:t,setPage:r,setRowsPerPage:n,rowsPerPage:o,loading:a}=A2();return a?null:(0,i.jsx)(D5,{count:e.length,page:t,onPageChange:(e,t)=>{r(t)},rowsPerPage:o,onRowsPerPageChange:e=>{n(e.target.value)},colspan:"6",align:"right"})},F5=({color:e,percentage:t})=>(0,i.jsx)(a_,{size:"tiny",color:e,variant:"standard",label:`${t}%`}),B5=({percentage:e})=>e<=25?(0,i.jsx)(F5,{color:"error",percentage:e}):e>25&&e<=60?(0,i.jsx)(F5,{color:"warning",percentage:e}):e>60&&e<100?(0,i.jsx)(F5,{color:"default",percentage:e}):(0,i.jsx)(xC,{fontSize:"small",color:"success"});B5.propTypes={percentage:Qk().number.isRequired};const H5=B5,V5=({content:e,children:t})=>(0,i.jsx)(bE,{title:e,direction:"top",arrow:!0,children:t||(0,i.jsx)(Cz,{tabIndex:"0",fontSize:"tiny",sx:{cursor:"pointer"}})});V5.propTypes={content:Qk().string.isRequired,children:Qk().node};const $5=V5,W5=({scannerResults:e,loading:t})=>{const[r,o]=(0,n.useState)({}),a=e=>{const t=new Date(e);return(0,RJ.dateI18n)((0,eA.__)("d.m.Y, H:i","pojo-accessibility"),t,void 0)};return t?(0,i.jsx)(Z5,{children:(0,i.jsx)(E5,{})}):(0,i.jsx)(Z5,{children:(0,i.jsxs)(S1,{"aria-label":(0,eA.__)("Scan results","pojo-accessibility"),children:[(0,i.jsx)(q1,{children:(0,i.jsxs)(A0,{children:[(0,i.jsx)(B1,{sx:{width:"148px"},children:(0,eA.__)("Page","pojo-accessibility")}),(0,i.jsx)(B1,{sx:{width:"220px"},children:(0,eA.__)("URL","pojo-accessibility")}),(0,i.jsx)(B1,{sx:{width:"148px"},children:(0,eA.__)("Last scan","pojo-accessibility")}),(0,i.jsx)(B1,{sx:{width:"220px"},children:(0,eA.__)("Issues resolved","pojo-accessibility")}),(0,i.jsx)(B1,{children:(0,i.jsx)(M5,{children:(0,i.jsx)(Rw,{as:"span",children:(0,eA.__)("Actions","pojo-accessibility")})})})]})}),(0,i.jsx)(P1,{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)(A0,{children:[(0,i.jsx)(K5,{component:"th",scope:"row",children:e.page_title}),(0,i.jsx)(Q5,{children:e.page_url}),(0,i.jsx)(K5,{children:a(e.last_scan)}),(0,i.jsx)(Q5,{children:(0,i.jsxs)(U5,{children:[(0,i.jsx)(G5,{value:s,variant:"determinate",color:"secondary"}),e.issues_fixed,"/",e.issues_total,(0,i.jsx)(H5,{percentage:s})]})}),(0,i.jsx)(B1,{children:(0,i.jsxs)(q5,{children:[(0,i.jsx)($5,{content:(0,eA.__)("View scan history","pojo-accessibility"),children:(0,i.jsx)("span",{role:"none",children:(0,i.jsx)(X5,{color:"secondary",size:"small",startIcon:(0,i.jsx)(q2,{}),endIcon:r[t]?(0,i.jsx)(j2,{}):(0,i.jsx)(aF,{}),"aria-label":(0,eA.__)("View scan history","pojo-accessibility"),disabled:!e.scans.length,onClick:()=>(e=>{const t=!r[e];o(r=>({...r,[e]:t})),Fh("history_logs_button_clicked",{state:t?"open":"closed"})})(t)})})}),(0,i.jsx)(P5,{percentage:s,pageUrl:e.page_url}),(0,i.jsx)(N5,{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)(Y5,{children:[(0,i.jsx)(B1,{colSpan:2}),(0,i.jsx)(K5,{children:a(t.date)}),(0,i.jsx)(Q5,{children:(0,i.jsxs)(U5,{children:[(0,i.jsx)(G5,{value:n,variant:"determinate",color:"secondary"}),t.issues_fixed,"/",t.issues_total,(0,i.jsx)(H5,{percentage:n})]})}),(0,i.jsx)(B1,{})]},`${e.page_title}-scan-${r}`)})]},e.id)})}),e.length>0&&(0,i.jsx)(S5,{children:(0,i.jsx)(A0,{disableDivider:!0,children:(0,i.jsx)(z5,{})})})]})})};W5.propTypes={scannerResults:Qk().array.isRequired,loading:Qk().bool.isRequired};const Z5=Ky(y5)`
margin-top: ${({theme:e})=>e.spacing(3)};
`,U5=Ky(Sm)`
display: flex;
align-items: center;
gap: ${({theme:e})=>e.spacing(1)};
`,q5=Ky(Sm)`
display: flex;
align-items: center;
justify-content: flex-end;
gap: ${({theme:e})=>e.spacing(2)};
`,X5=Ky((0,n.forwardRef)((e,t)=>(0,i.jsx)(hC,{ref:t,...e})))`
min-width: 50px;
max-width: 50px;
span {
margin: 0;
}
span:first-of-type {
margin-inline-end: ${({theme:e})=>e.spacing(1)};
}
`,G5=Ky(h5)`
width: 89px;
`,Y5=Ky(A0)`
background-color: #f9f9f9;
`,K5=Ky(B1)`
max-width: 148px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`,Q5=Ky(B1)`
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
`,J5=W5,e4=(0,n.memo)(()=>(0,i.jsx)(MS,{speed:DS.SPEED,foregroundColor:DS.FOREGROUND_COLOR,height:104,width:104,children:(0,i.jsx)("circle",{cx:"52",cy:"52",r:"52",fill:"none"})})),t4=(0,n.memo)(()=>(0,i.jsx)(Sm,{children:(0,i.jsx)(e4,{})})),r4=(0,n.memo)(()=>(0,i.jsx)(MS,{speed:DS.SPEED,foregroundColor:DS.FOREGROUND_COLOR,height:40,width:72,children:(0,i.jsx)("rect",{width:"72",height:"40",fill:"none",rx:"4"})})),n4=(0,n.memo)(()=>(0,i.jsx)(Sm,{children:(0,i.jsx)(r4,{})})),o4=({issueLevels:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(i4,{children:[(0,i.jsx)(Rw,{variant:"body2",children:(0,eA.__)("Level A","pojo-accessibility")}),(0,i.jsx)(a4,{variant:"subtitle2",as:"p",children:(0,eA.sprintf)(
// Translators: %s count of issues
// Translators: %s count of issues
(0,eA.__)("%s issues","pojo-accessibility"),e.a)})]}),(0,i.jsxs)(i4,{children:[(0,i.jsx)(Rw,{variant:"body2",children:(0,eA.__)("Level AA","pojo-accessibility")}),(0,i.jsx)(a4,{variant:"subtitle2",as:"p",children:(0,eA.sprintf)(
// Translators: %s count of issues
// Translators: %s count of issues
(0,eA.__)("%s issues","pojo-accessibility"),e.aa)})]}),(0,i.jsxs)(i4,{children:[(0,i.jsx)(Rw,{variant:"body2",children:(0,eA.__)("Level AAA","pojo-accessibility")}),(0,i.jsx)(a4,{variant:"subtitle2",as:"p",children:(0,eA.sprintf)(
// Translators: %s count of issues
// Translators: %s count of issues
(0,eA.__)("%s issues","pojo-accessibility"),e.aaa)})]})]});o4.propTypes={issueLevels:Qk().object.isRequired};const i4=Ky(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;
}
`,a4=Ky(Rw)`
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;
`,s4=o4,l4=({value:e,firstSectorPercentage:t,secondSectorPercentage:r,noResultsState:n})=>{const o=(0,of.u)();if(n)return(0,i.jsx)(c4,{background:`\n\t\t\t\t\tradial-gradient(closest-side, white 79%, transparent 80% 100%),\n\t\t\t\t\tconic-gradient(${o.palette.success.light} 0%, #f3f3f4 0)\n\t\t\t\t`,children:(0,i.jsxs)(u4,{variant:"h4",as:"span",children:["0",(0,i.jsx)(d4,{variant:"body2",as:"span",children:(0,eA.__)("Issues","pojo-accessibility")})]})});if("string"!=typeof e){let r=o.palette.success.light;t<=25&&(r=o.palette.error.main),t>25&&t<=60&&(r=o.palette.warning.light);const n=`\n\t\t\tradial-gradient(closest-side, white 79%, transparent 80% 100%),\n\t\t\tconic-gradient(${r} ${t}%, #f3f3f4 0)\n\t\t`;return(0,i.jsx)(c4,{background:n,children:e})}return(0,i.jsx)(c4,{as:"div",background:`radial-gradient(closest-side, white 79%, transparent 80% 100%), conic-gradient(\n\t\t\t\t#064E3B 0% ${t}%,\n\t\t\t\t#10b981 ${t}% ${t+r}%,\n\t\t\t\t#a7f3d0 ${t+r}% 100%\n\t\t\t)`,children:(0,i.jsx)(Rw,{variant:"h4",as:"span",children:e})})};l4.propTypes={value:Qk().oneOfType([Qk().string,Qk().node]).isRequired,firstSectorPercentage:Qk().number.isRequired,secondSectorPercentage:Qk().number,thirdSectorPercentage:Qk().number,noResultsState:Qk().bool};const c4=Ky(Sm)`
width: 104px;
height: 104px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
background: ${({background:e})=>e};
`,u4=Ky(Rw)`
display: flex;
flex-direction: column;
align-items: center;
color: ${({theme:e})=>e.palette.text.secondary};
font-feature-settings:
'liga' off,
'clig' off;
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
font-size: 32px;
font-weight: 700;
line-height: 78%;
letter-spacing: 0.25px;
`,d4=Ky(Rw)`
color: ${({theme:e})=>e.palette.text.tertiary};
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 143%;
letter-spacing: 0.17px;
`,p4=l4,h4=({stats:e,loading:t,noResultsState:r})=>{const n=e.issues_total?Math.round(e.issues_fixed/e.issues_total*100):0,o=e.issue_levels.a+e.issue_levels.aa+e.issue_levels.aaa,a=e.issue_levels.a?Math.round(e.issue_levels.a/o*100):0,s=e.issue_levels.aa?Math.round(e.issue_levels.aa/o*100):0;return(0,i.jsxs)(f4,{children:[(0,i.jsx)(m4,{children:(0,i.jsxs)(g4,{children:[(0,i.jsxs)(y4,{variant:"subtitle1",as:"p",children:[(0,eA.__)("Scanned URLs","pojo-accessibility"),(0,i.jsx)($5,{content:(0,eA.__)("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)(Rw,{variant:"h4",as:"p",children:t?(0,i.jsx)(n4,{}):e.scans})]})}),(0,i.jsxs)(m4,{children:[(0,i.jsxs)(g4,{children:[(0,i.jsxs)(y4,{variant:"subtitle1",as:"p",children:[(0,eA.__)("Issues resolved","pojo-accessibility"),(0,i.jsx)($5,{content:(0,eA.__)("Monitor how many issues from your latest scans have been resolved. New scans reflect your latest changes, so these numbers update as you resolve more issues.","pojo-accessibility")})]}),(0,i.jsx)(Rw,{variant:"h4",as:"p",children:t?(0,i.jsx)(n4,{}):`${e.issues_fixed}/${e.issues_total}`})]}),(0,i.jsx)(v4,{children:t?(0,i.jsx)(t4,{}):(0,i.jsx)(p4,{value:(0,i.jsxs)(Rw,{variant:"h4",as:"span",children:[n,(0,i.jsx)(Rw,{variant:"h6",as:"span",children:"%"})]}),firstSectorPercentage:n})})]}),(0,i.jsxs)(m4,{children:[(0,i.jsxs)(g4,{children:[(0,i.jsxs)(y4,{variant:"subtitle1",as:"p",children:[(0,eA.__)("Resolved issues by level","pojo-accessibility"),(0,i.jsx)($5,{content:(0,eA.__)("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)(n4,{}):(0,i.jsx)(s4,{issueLevels:e.issue_levels})]}),(0,i.jsx)(v4,{children:t?(0,i.jsx)(t4,{}):(0,i.jsx)(p4,{value:o.toString(),firstSectorPercentage:a,secondSectorPercentage:s,noResultsState:r})})]})]})};h4.propTypes={stats:Qk().object.isRequired,loading:Qk().bool.isRequired,noResultsState:Qk().bool};const f4=Ky(Sm)`
margin-top: ${({theme:e})=>e.spacing(3)};
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1fr;
grid-column-gap: ${({theme:e})=>e.spacing(3)};
grid-row-gap: 0;
@media screen and (max-width: 960px) {
grid-template-rows: repeat(2, 1fr);
grid-row-gap: ${({theme:e})=>e.spacing(3)};
}
@media screen and (max-width: 705px) {
grid-template-rows: repeat(3, 1fr);
}
`,m4=Ky(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 / 4;
}
:nth-of-type(3) {
grid-area: 1 / 4 / 2 / 6;
}
@media screen and (max-width: 1200px) {
:nth-of-type(2) {
grid-area: 1 / 2 / 2 / 3;
}
:nth-of-type(3) {
grid-area: 1 / 3 / 2 / 4;
}
}
@media screen and (max-width: 960px) {
:nth-of-type(3) {
grid-area: 2 / 1 / 3 / 3;
}
}
@media screen and (max-width: 705px) {
: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;
}
}
`,g4=Ky(Sm)`
min-width: 150px;
min-height: 110px;
`,v4=Ky(Sm)`
margin-inline-start: ${({theme:e})=>e.spacing(2)};
@media screen and (max-width: 1200px) {
& {
display: none;
}
}
`,y4=Ky(Rw)`
display: flex;
justify-content: flex-start;
align-items: center;
margin: 0;
margin-bottom: ${({theme:e})=>e.spacing(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)};
}
`,b4=h4,x4=Ky(Sm)`
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
max-height: 100%;
min-height: 50%;
overflow: auto;
`,w4=Ky(Sm)`
background-color: #f3f3f4;
width: 100%;
`,C4=Ky(JN)`
padding: ${({theme:e})=>e.spacing(4.5)};
`,A4=Ky(JN)`
padding: ${({theme:e})=>e.spacing(4)};
`,k4=()=>{const{stats:e,loading:t,period:r,scannerResults:o,getFilteredScannerResults:a,onPeriodChange:s}=A2();return(0,n.useEffect)(()=>{Fh(Bh,{page:"Dashboard"})},[]),t||o.length?t||!o.length||a().length?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x4,{children:[(0,i.jsx)(w4,{children:(0,i.jsxs)(C4,{children:[(0,i.jsx)(b2,{period:r,onPeriodChange:s,loading:t}),(0,i.jsx)(b4,{stats:e,loading:t})]})}),(0,i.jsxs)(A4,{children:[(0,i.jsx)(U2,{}),(0,i.jsx)(J5,{scannerResults:a(),loading:t})]})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x4,{children:[(0,i.jsx)(w4,{children:(0,i.jsxs)(C4,{children:[(0,i.jsx)(b2,{period:r,onPeriodChange:s,loading:t}),(0,i.jsx)(b4,{stats:e,loading:t,noResultsState:!0})]})}),(0,i.jsxs)(A4,{children:[(0,i.jsx)(U2,{}),(0,i.jsx)(J5,{scannerResults:a(),loading:t}),(0,i.jsx)(M2,{})]})]})}):(0,i.jsx)(x4,{children:(0,i.jsxs)(A4,{children:[(0,i.jsx)(b2,{period:r,onPeriodChange:s,isEmpty:!0}),(0,i.jsx)(f2,{})]})})},S4=()=>{const{selectedMenu:e,setSelectedMenu:t,accessibilityStatementData:r}=s();if(r?.link)return null;const n=(0,i.jsxs)(EN,{elevation:0,sx:{maxWidth:300},children:[(0,i.jsx)($N,{title:(0,eA.__)("Accessibility statement generator","pojo-accessibility")}),(0,i.jsx)(ON,{children:(0,i.jsx)(Rw,{variant:"body2",color:"text.secondary",children:(0,eA.__)("Create your accessibility statement and page in seconds, reflecting your ongoing commitment to an accessible site.","pojo-accessibility")})}),(0,i.jsx)(fD,{children:(0,i.jsx)(cC,{size:"small",variant:"contained",color:"info",tabIndex:"0",onClick:()=>{"accessibility-statement"!==e&&t("accessibility-statement")},children:(0,eA.__)("Take me there","pojo-accessibility")})})]});return(0,i.jsx)(nF,{placement:"right",content:n,tabIndex:"0",children:(0,i.jsx)(Cz,{color:"info",sx:{ml:1}})})},_4={scanner:{name:(0,eA.__)("Accessibility scans","pojo-accessibility"),key:"scanner",type:"heading"},scanOverview:{name:(0,eA.__)("Scans","pojo-accessibility"),key:"scan-overview",page:(0,i.jsx)(C2,{children:(0,i.jsx)(k4,{})}),icon:(0,i.jsx)(XO,{role:"img","aria-label":(0,eA.__)("Scan overview","pojo-accessibility"),"aria-hidden":!1,sx:{color:"common.black"}})},widget:{name:(0,eA.__)("Widget","pojo-accessibility"),key:"widget",type:"heading"},design:{name:(0,eA.__)("Design","pojo-accessibility"),key:"design",page:(0,i.jsx)($0,{}),icon:(0,i.jsx)(EC,{role:"img","aria-label":(0,eA.__)("Design","pojo-accessibility"),"aria-hidden":!1})},capabilities:{name:(0,eA.__)("Capabilities","pojo-accessibility"),key:"capabilities",page:(0,i.jsx)(J0,{}),icon:(0,i.jsx)(GO,{role:"img","aria-label":(0,eA.__)("Capabilities","pojo-accessibility"),"aria-hidden":!1,size:"small",sx:{color:"common.black"}})},accessibilityStatement:{name:(0,eA.__)("Statement","pojo-accessibility"),key:"accessibility-statement",page:(0,i.jsx)(wz,{}),icon:(0,i.jsx)(YO,{role:"img","aria-label":(0,eA.__)("Statement","pojo-accessibility"),"aria-hidden":!1,size:"small",sx:{color:"common.black"}}),infotip:(0,i.jsx)(S4,{})},analytics:{name:(0,eA.__)("Analytics","pojo-accessibility"),key:"analytics",page:(0,i.jsx)(V0,{}),proIcon:"analytics",icon:(0,i.jsx)(KC,{role:"img","aria-label":(0,eA.__)("Analytics","pojo-accessibility"),"aria-hidden":!1,size:"small",sx:{color:"common.black"}})}},M4=(Ky(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)(j4,{children:(0,i.jsx)(hC,{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,eA.__)("Settings saved!","pojo-accessibility")),c(!1),Fh("save_button_clicked",{savedData:i})}catch(e){h((0,eA.__)("Failed to save settings!","pojo-accessibility"))}},disabled:!a||Object.keys(l).some(e=>l[e]),children:(0,eA.__)("Save changes","pojo-accessibility")})})}),j4=Ky(Sm)`
width: 100%;
display: flex;
justify-content: flex-end;
padding: ${({theme:e})=>e.spacing(2)};
border-top: 1px solid ${({theme:e})=>e.palette.divider};
`,E4=Ky(sv)`
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;
`,R4=()=>{const{isOpen:e,close:t}=o(),{save:r}=d();(0,n.useEffect)(()=>{e&&Fh("connect_success")},[e]);const a=async()=>{await r({ea11y_close_post_connect_modal:!0}),t()};return(0,i.jsx)(Ew,{open:e,onClose:a,children:(0,i.jsxs)(E4,{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)(WC,{}),(0,i.jsx)(Rw,{variant:"h5",color:"text.primary",marginTop:5,marginBottom:1,id:"post-connect-modal-title",children:(0,eA.__)("You're all set","pojo-accessibility")}),(0,i.jsx)(Rw,{variant:"body2",sx:{width:"500px",maxWidth:"100%"},color:"text.primary",marginBottom:5,id:"post-connect-modal-description",children:(0,eA.__)("Ally - Web Accessibility is now connected and ready to use on your site.","pojo-accessibility")}),(0,i.jsx)(hC,{variant:"contained",sx:{padding:"8px 22px",width:"300px"},onClick:a,color:"info",children:(0,eA.__)("Done","pojo-accessibility")})]})})},L4=Ky(e=>Gh().createElement(bC,{viewBox:"0 0 32 32",...e},Gh().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.69648 24.8891C0.938383 22.2579 0 19.1645 0 16C0 11.7566 1.68571 7.68687 4.68629 4.68629C7.68687 1.68571 11.7566 0 16 0C19.1645 0 22.2579 0.938383 24.8891 2.69648C27.5203 4.45459 29.5711 6.95344 30.7821 9.87706C31.9931 12.8007 32.3099 16.0177 31.6926 19.1214C31.0752 22.2251 29.5514 25.0761 27.3137 27.3137C25.0761 29.5514 22.2251 31.0752 19.1214 31.6926C16.0177 32.3099 12.8007 31.9931 9.87706 30.7821C6.95344 29.5711 4.45459 27.5203 2.69648 24.8891ZM12.0006 9.33281H9.33437V22.6665H12.0006V9.33281ZM22.6657 9.33281H14.6669V11.9991H22.6657V9.33281ZM22.6657 14.6654H14.6669V17.3316H22.6657V14.6654ZM22.6657 20.0003H14.6669V22.6665H22.6657V20.0003Z"})))(({theme:e})=>({width:e.spacing(3),height:e.spacing(3),"& path":{fill:e.palette.text.primary},marginRight:e.spacing(1)})),I4=Ky("span")(({theme:e})=>({marginRight:e.spacing(1)})),P4=({logo:e,...t})=>!1===e?null:e?Gh().createElement(I4,null,e):Gh().createElement(L4,{...t}),{slots:O4,classNames:T4}=VA("DialogHeader",["root","logo","toolbar"]),N4=Ky(sz,O4.root)({"& .MuiDialogTitle-root":{padding:0}}),D4=Ky(pz,O4.toolbar)({}),z4={color:"transparent",position:"relative"},F4=Gh().forwardRef((e,t)=>{const r=Xg({props:{...z4,...e},name:O4.root.name}),{slotProps:n={},logo:o,onClose:i,...a}=r;return Gh().createElement(N4,{...a,ref:t,className:Ox([[T4.root,a.className]]),ownerState:r},Gh().createElement(D4,{variant:"dense",...n.toolbar,className:Ox([T4.toolbar,n.toolbar?.className]),ownerState:r},Gh().createElement(P4,{logo:o,className:Ox([T4.logo,n.logo?.className])}),Gh().createElement(j0,{direction:"row",alignItems:"center",flex:1},r.children),i&&Gh().createElement(YA,{edge:"end",onClick:i,sx:{"&.MuiButtonBase-root":{ml:.5}}})))});F4.defaultProps=z4;var B4=F4;const H4=["className","id"],V4=Wg(Cx,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),$4=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiDialogTitle"}),{className:n,id:o}=r,a=(0,Kh.A)(r,H4),s=r,l=(e=>{const{classes:t}=e;return Fg({root:["root"]},Bz,t)})(s),{titleId:c=o}=Xh.useContext(Sz);return(0,i.jsx)(V4,(0,Yh.A)({component:"h2",className:Jh(l.root,n),ownerState:s,ref:t,variant:"h6",id:null!=o?o:c},a))}),W4={variant:"subtitle1"},Z4=Gh().forwardRef((e,t)=>Gh().createElement($4,{...W4,...e,ref:t}));Z4.defaultProps=W4;var U4=Z4;class q4 extends Xh.Component{state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?this.props.fallback:this.props.children}}var X4=q4;const G4=`\n\x3c!-- wp:heading {"textAlign":"center","level":6} --\x3e\n${(0,eA.sprintf)((0,eA.__)("Accessibility Statement for %s","pojo-accessibility"),"{company_website}")}
\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,eA.sprintf)((0,eA.__)("%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,eA.__)("Conformance status","pojo-accessibility")}
\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,eA.__)("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,eA.sprintf)((0,eA.__)("%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,eA.sprintf)((0,eA.__)("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,eA.__)("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,eA.__)("Feedback","pojo-accessibility")}
\n\x3c!-- /wp:heading --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,eA.sprintf)((0,eA.__)("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,eA.sprintf)((0,eA.__)("E-mail: %s","pojo-accessibility"),"{company_email}")}
\n\x3c!-- /wp:paragraph --\x3e\n\x3c!-- wp:paragraph --\x3e\n${(0,eA.__)("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,eA.sprintf)((0,eA.__)("This statement was created on %s.","pojo-accessibility"),"{current_date}")}
\n\x3c!-- /wp:paragraph --\x3e`,Y4=Ky(UI)`
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;
}
`,K4=({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:v,setShowAccessibilityGeneratedInfotip:y}=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)(X4,{fallback:(0,i.jsx)(Q4,{}),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)(B4,{onClose:w,children:(0,i.jsx)(U4,{children:(0,eA.__)("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)(Rw,{variant:"subtitle1",color:"text.primary",children:(0,eA.__)("Enter your company info","pojo-accessibility")}),(0,i.jsx)(Rw,{variant:"body2",color:"text.secondary",marginBottom:3,children:(0,eA.__)("This will generate an accessibility statement that you can preview on the right.","pojo-accessibility")}),(0,i.jsxs)(OE,{fullWidth:!0,children:[(0,i.jsx)(UE,{htmlFor:"ea11y-statement-generator-company-name",children:(0,eA.__)("Company name","pojo-accessibility")}),(0,i.jsx)(Y4,{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)(mD,{children:(0,eA.__)("Company name cannot be empty","pojo-accessibility")})]}),(0,i.jsxs)(OE,{fullWidth:!0,children:[(0,i.jsx)(UE,{htmlFor:"ea11y-statement-generator-company-website",children:(0,eA.__)("Company website","pojo-accessibility")}),(0,i.jsx)(Y4,{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)(mD,{children:(0,eA.__)("Please enter a valid domain","pojo-accessibility")})]}),(0,i.jsxs)(OE,{fullWidth:!0,children:[(0,i.jsx)(UE,{htmlFor:"ea11y-statement-generator-business-website",children:(0,eA.__)("Business email","pojo-accessibility")}),(0,i.jsx)(Y4,{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)(mD,{children:(0,eA.__)("Please enter a valid email","pojo-accessibility")})]})]}),(0,i.jsxs)(Sm,{children:[(0,i.jsx)(Rw,{variant:"subtitle1",color:"text.primary",marginBottom:6,children:(0,eA.__)("Preview your accessibility statement","pojo-accessibility")}),(0,i.jsx)(Sm,{border:1,borderColor:"divider",borderRadius:1,padding:2,children:(0,i.jsx)(t3,{htmlString:G4,replacements:f})})]})]})}),(0,i.jsxs)(zz,{children:[(0,i.jsx)(hC,{onClick:w,color:"secondary",children:(0,eA.__)("Cancel","pojo-accessibility")}),(0,i.jsx)(hC,{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})(G4,f);try{const r=await _.addPage({title:"Accessibility statement",content:e,status:"publish"});await v({statement:e,pageId:r.id,id:r.id,label:"Accessibility statement",createdOn:r.date,link:r.link}),await y(!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"),Fh("statement_page_created")}catch(e){h("Error while creating page","pojo-accessibility"),console.error(e)}},variant:"contained",color:"info",disabled:!x,children:(0,eA.__)("Create statement & page","pojo-accessibility")})]})]})})},Q4=()=>(0,i.jsx)(ak,{severity:"error",children:(0,i.jsx)(YD,{children:(0,eA.__)("Something went wrong!","pojo-accessibility")})});var J4=r(442);const e3=J4.default||J4,t3=({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)(Rw,{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:e3(e,{replace:r})})},r3=({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(FS)&&document.getElementById(FS).remove(),document.head.removeChild(n),console.log(`Script removed: ${n.src}`)}},[e,t,r]),null};var n3=r(6673),o3=r.n(n3);const i3=({content:e})=>{const[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1);return(0,i.jsx)(bE,{open:t,onClose:()=>{r(!1),setTimeout(()=>a(!1),200)},onOpen:()=>{r(!0)},placement:"top",title:o?(0,eA.__)("Copied!","pojo-accessibility"):(0,eA.__)("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)(HA,{onClick:async()=>{await o3()(e),a(!0)},sx:{marginLeft:1},children:(0,i.jsx)(RS,{width:"1em",height:"1em"})})})};var a3=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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 s3=()=>{const{accessibilityStatementData:e}=s();return(0,i.jsx)(bE,{placement:"top",title:(0,eA.__)("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)(HA,{onClick:()=>{const t=window?.ea11ySettingsData?.adminUrl,r=(0,y.addQueryArgs)(`${t}post.php`,{post:e?.pageId,action:"edit"});P(r)},sx:{marginLeft:1},"aria-label":"Edit accessibility statement page",children:(0,i.jsx)(a3,{})})})},l3=()=>{const{setShowAccessibilityGeneratedInfotip:e}=s(),{save:t}=d();return(0,i.jsxs)(EN,{elevation:0,sx:{maxWidth:300},children:[(0,i.jsx)($N,{title:""}),(0,i.jsx)(ON,{children:(0,i.jsx)(Rw,{variant:"body2",color:"text.secondary",children:(0,eA.__)("We went ahead and linked the accessibility statement page you just created to your widget.","pojo-accessibility")})}),(0,i.jsx)(fD,{children:(0,i.jsx)(cC,{size:"small",variant:"contained",color:"info",onClick:async()=>{e(!1),await t({ea11y_show_accessibility_generated_page_infotip:!1})},children:(0,eA.__)("Got it","pojo-accessibility")})})]})},c3=Ky(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);
}
`,u3=({children:e})=>(0,i.jsx)(c3,{children:e});var d3=Gh().forwardRef((e,t)=>Gh().createElement(ax,{...e,ref:t}));function p3(e){return bm("MuiCollapse",e)}xm("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const h3=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],f3=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%"})),g3=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%"})),v3=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:v="vertical",style:y,timeout:b=um.standard,TransitionComponent:x=dw}=r,w=(0,Kh.A)(r,h3),C=(0,Yh.A)({},r,{orientation:v,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}`]},p3,r)})(C),k=Gg(),S=db(),_=Xh.useRef(null),M=Xh.useRef(),j="number"==typeof s?`${s}px`:s,E="horizontal"===v,R=E?"width":"height",L=Xh.useRef(null),I=ab(t,L),P=e=>t=>{if(e){const r=L.current;void 0===t?e(r):e(r,t)}},O=()=>_.current?_.current[E?"clientWidth":"clientHeight"]:0,T=P((e,t)=>{_.current&&E&&(_.current.style.position="absolute"),e.style[R]=j,d&&d(e,t)}),N=P((e,t)=>{const r=O();_.current&&E&&(_.current.style.position="");const{duration:n,easing:o}=hw({style:y,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[R]=`${r}px`,e.style.transitionTimingFunction=o,h&&h(e,t)}),D=P((e,t)=>{e.style[R]="auto",p&&p(e,t)}),z=P(e=>{e.style[R]=`${O()}px`,f&&f(e)}),F=P(m),B=P(e=>{const t=O(),{duration:r,easing:n}=hw({style:y,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[R]=j,e.style.transitionTimingFunction=n,g&&g(e)});return(0,i.jsx)(x,(0,Yh.A)({in:u,onEnter:T,onEntered:D,onEntering:N,onExit:z,onExited:F,onExiting:B,addEndListener:e=>{"auto"===b&&S.start(M.current||0,e),n&&n(L.current,e)},nodeRef:L,timeout:"auto"===b?null:b},w,{children:(e,t)=>(0,i.jsx)(f3,(0,Yh.A)({as:l,className:Jh(A.root,a,{entered:A.entered,exited:!u&&"0px"===j&&A.hidden}[e]),style:(0,Yh.A)({[E?"minWidth":"minHeight"]:j},y),ref:I},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)(g3,{ownerState:(0,Yh.A)({},C,{state:e}),className:A.wrapperInner,children:o})})}))}))});v3.muiSupportAuto=!0;const y3=v3,b3=Xh.createContext({});function x3(e){return bm("MuiAccordion",e)}const w3=xm("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),C3=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],A3=iA(),k3=Wg(mA,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${w3.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"}},[`&.${w3.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${w3.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:{[`&.${w3.expanded}`]:{margin:"16px 0"}}}]})),S3=Xh.forwardRef(function(e,t){const r=A3({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,C3),[v,y]=iE({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=Xh.useCallback(e=>{y(!v),u&&u(e,!v)},[v,u,y]),[x,...w]=Xh.Children.toArray(n),C=Xh.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:b}),[v,s,l,b]),A=(0,Yh.A)({},r,{square:d,disabled:s,disableGutters:l,expanded:v}),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"]},x3,t)})(A),S=(0,Yh.A)({transition:f},p),_=(0,Yh.A)({transition:m},h),[M,j]=cA("transition",{elementType:y3,externalForwardedProps:{slots:S,slotProps:_},ownerState:A});return(0,i.jsxs)(k3,(0,Yh.A)({className:Jh(k.root,o),ref:t,ownerState:A,square:d},g,{children:[(0,i.jsx)(b3.Provider,{value:C,children:x}),(0,i.jsx)(M,(0,Yh.A)({in:v,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})}))]}))}),_3=S3,M3={variant:"outlined"},j3=Gh().forwardRef((e,t)=>Gh().createElement(_3,{...M3,...e,ref:t}));j3.defaultProps=M3;var E3=j3;function R3(e){return bm("MuiAccordionDetails",e)}xm("MuiAccordionDetails",["root"]);const L3=["className"],I3=iA(),P3=Wg("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),O3=Xh.forwardRef(function(e,t){const r=I3({props:e,name:"MuiAccordionDetails"}),{className:n}=r,o=(0,Kh.A)(r,L3),a=r,s=(e=>{const{classes:t}=e;return Fg({root:["root"]},R3,t)})(a);return(0,i.jsx)(P3,(0,Yh.A)({className:Jh(s.root,n),ref:t,ownerState:a},o))});var T3=Gh().forwardRef((e,t)=>Gh().createElement(O3,{...e,ref:t}));function N3(e){return bm("MuiAccordionSummary",e)}const D3=xm("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),z3=["children","className","expandIcon","focusVisibleClassName","onClick"],F3=iA(),B3=Wg(Gb,{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),[`&.${D3.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${D3.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${D3.disabled})`]:{cursor:"pointer"},variants:[{props:e=>!e.disableGutters,style:{[`&.${D3.expanded}`]:{minHeight:64}}}]}}),H3=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}),[`&.${D3.expanded}`]:{margin:"20px 0"}}}]})),V3=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}),[`&.${D3.expanded}`]:{transform:"rotate(180deg)"}})),$3=Xh.forwardRef(function(e,t){const r=F3({props:e,name:"MuiAccordionSummary"}),{children:n,className:o,expandIcon:a,focusVisibleClassName:s,onClick:l}=r,c=(0,Kh.A)(r,z3),{disabled:u=!1,disableGutters:d,expanded:p,toggle:h}=Xh.useContext(b3),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"]},N3,t)})(f);return(0,i.jsxs)(B3,(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)(H3,{className:m.content,ownerState:f,children:n}),a&&(0,i.jsx)(V3,{className:m.expandIconWrapper,ownerState:f,children:a})]}))}),W3=Gh().forwardRef((e,t)=>Gh().createElement(bC,{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"}))),Z3={expandIcon:Gh().createElement(W3,null)},U3=Gh().forwardRef((e,t)=>Gh().createElement($3,{...Z3,...e,ref:t}));U3.defaultProps=Z3;var q3=U3;const{slots:X3,classNames:G3}=VA("AccordionSummaryIcon",["root","primaryButton","secondaryButton"]),Y3=Ky(_C,X3.root)({});var K3=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:X3.root.name});return Gh().createElement(Y3,{...r,ref:t,className:Ox([[G3.root,r.className]]),ownerState:r})});const Q3=Ky(E3)`
border: none;
width: 100%;
`,J3=Ky(q3)`
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;
}
`,e8=Ky(Sm)`
display: flex;
gap: 16px;
align-items: flex-start;
`,t8=Ky(UE)`
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
padding-top: 7px;
`,r8=Ky(UI)`
width: 100%;
input {
height: 36px;
}
`,n8=Ky(T3)`
padding: 5px 45px 5px 0;
`,o8=({sitemap:e})=>{const{widgetMenuSettings:t,setWidgetMenuSettings:r,hasChanges:n,setHasChanges:o,hasError:a,setHasError:l}=s();return(0,i.jsxs)(Q3,{children:[(0,i.jsxs)(J3,{"aria-controls":"panel-content",id:"panel-header",children:[(0,i.jsx)(K3,{sx:{padding:0},children:e?.icon}),(0,i.jsx)(Ex,{primary:e?.title,sx:{flexGrow:0,marginRight:1},id:"ea11y-sitemap-toggle"})]}),(0,i.jsx)(n8,{children:(0,i.jsxs)(e8,{children:[(0,i.jsxs)(t8,{htmlFor:"sitemap-url",children:[(0,eA.__)("Sitemap URL"),(0,i.jsx)(nF,{content:(0,i.jsx)(Rw,{variant:"body2",sx:{p:2},children:(0,eA.__)("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)(r8,{id:"sitemap-url",type:"url",onChange:e=>{r({...t,sitemap:{enabled:!0,url:e.target.value}});const n=L(e.target.value);l({...a,sitemap:!n}),o(n)},onBlur:()=>{n&&Fh($h,{fieldName:"sitemap-url",value:t.sitemap?.url})},value:t.sitemap?.url,error:a.sitemap,size:"small",variant:"outlined"}),a.sitemap&&(0,i.jsx)(Rw,{variant:"caption",color:"error",children:(0,eA.__)("Please enter valid URL!","pojo-accessibility")})]})]})})]})},i8=({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)(hx,{as:"div",disableGutters:!0,sx:{p:"4px"},children:["sitemap"===e?(0,i.jsx)(o8,{sitemap:t}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_C,{children:t.icon}),(0,i.jsxs)(Sm,{display:"flex",flexDirection:"row",alignItems:"center",children:[(0,i.jsx)(UE,{htmlFor:`ea11y-${e}-toggle`,children:(0,i.jsx)(Ex,{primary:t.title})}),t?.pro&&!p()&&(0,i.jsx)(s8,{source:"icon",childKey:e,childValue:t,enabled:p(),showIcon:!0})]})]}),(0,i.jsx)(d3,{sx:{top:"19px"},children:(0,i.jsx)(s8,{source:"toggle",childKey:e,childValue:t,enabled:p(),children:(0,i.jsx)(u8,{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&&!L(e[t]?.url)}),l(!0),window?.ea11yWidget?.toolsSettings&&window?.ea11yWidget?.widget&&(window.ea11yWidget.toolsSettings=r,window?.ea11yWidget?.widget.updateState()),e[t]&&Fh(Hh,{state:e[t]?.enabled?"off":"on",type:t}),r});var t},disabled:!(!t?.pro||p())||!!o[e]?.enabled&&n})})})]},e)};var a8=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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 s8=({children:e,childKey:t,source:r,enabled:n,childValue:o,showIcon:a=!1})=>{const s=(0,i.jsxs)(EN,{elevation:0,sx:{maxWidth:300},children:[(0,i.jsx)($N,{title:(0,eA.__)("Access more advanced features","pojo-accessibility")}),(0,i.jsx)(ON,{children:(0,i.jsx)(Rw,{variant:"body2",color:"text.secondary",children:(0,eA.__)("Upgrade to get more customization and other pro features to boost your site.","pojo-accessibility")})}),(0,i.jsx)(fD,{children:(0,i.jsx)(cC,{size:"medium",color:"promotion",variant:"contained",startIcon:(0,i.jsx)(a8,{}),onClick:()=>{"screen-reader"===t&&"icon"===r&&(P(JC.SCREEN_READER_ICON),Fh(Wh,{feature:"screen reader",component:"pro icon"})),"screen-reader"===t&&"toggle"===r&&(P(JC.SCREEN_READER_TOGGLE),Fh(Wh,{feature:"screen reader",component:"toggle"})),BS.REMOVE_BRANDING===t&&"icon"===r&&(P(JC.ALLY_LABEL_ICON),Fh(Wh,{feature:"ally label",component:"pro icon"})),BS.REMOVE_BRANDING===t&&"toggle"===r&&(P(JC.ALLY_LABEL_TOGGLE),Fh(Wh,{feature:"ally label",component:"toggle"}))},children:(0,eA.__)("Upgrade now","pojo-accessibility")})})]});return o?.pro||"pro"===o?(o?.pro||"pro"===o)&&n?e:(0,i.jsxs)(nF,{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"):BS.REMOVE_BRANDING===t&&"icon"===r?(e="ally label",n="pro icon"):BS.REMOVE_BRANDING===t&&"toggle"===r&&(e="ally label",n="toggle"),Fh("upgrade_tooltip_triggered",{feature:e,component:n})},children:[a&&(0,i.jsx)(l8,{color:"promotion",variant:"standard",icon:(0,i.jsx)(XC,{}),size:"small"}),e]}):e},l8=Ky(a_)`
margin-left: ${({theme:e})=>e.spacing(1)};
height: 26px;
width: 26px;
.MuiChip-label {
padding: 0;
}
`,c8=Ky(AN)`
input {
height: 56px !important;
}
`,u8=e=>(0,i.jsx)(c8,{size:"medium",color:"info",...e});var d8=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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 p8=({title:e,onCancel:t,onClose:r,onApprove:n,approveText:o=(0,eA.__)("Submit","pojo-accessibility"),cancelText:a=(0,eA.__)("Cancel","pojo-accessibility"),approveButtonColor:s="error",approveButtonSize:l="medium",children:c,logo:u=(0,i.jsx)(d8,{color:"error"}),showCancelButton:d=!0,showApproveButton:p=!0,approveButtonDisabled:h=!1,showCloseButton:f=!1,dividers:m=!1,open:g=!0,...v})=>(0,i.jsxs)(Pz,{open:g,onClose:r,...v,children:[(0,i.jsx)(B4,{logo:u,onClose:!!f&&r,children:(0,i.jsx)(Rw,{variant:"subtitle1",children:e})}),(0,i.jsx)(Zz,{dividers:m,sx:{py:1},children:c}),(0,i.jsxs)(zz,{children:[d&&(0,i.jsx)(cC,{onClick:t,color:"secondary",children:a}),p&&(0,i.jsx)(cC,{variant:"contained",disabled:h,color:s,size:l,onClick:n,children:o})]})]}),h8=()=>{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)(w8,{open:e,onClose:t,logo:(0,i.jsx)(jC,{}),title:(0,eA.__)("Fix mismatched URL","pojo-accessibility"),showCancelButton:!1,showApproveButton:!1,maxWidth:"lg",fullWidth:!0,dividers:!0,children:(0,i.jsxs)(v8,{children:[(0,i.jsx)(b8,{variant:"h4",children:(0,eA.__)("Choose how to reconnect Ally to your site","pojo-accessibility")}),(0,i.jsx)(x8,{variant:"body1",children:(0,eA.__)("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)(y8,{children:[(0,i.jsxs)(f8,{children:[(0,i.jsx)(m8,{variant:"h6",marginBottom:3,children:(0,eA.__)("Update the connected URL","pojo-accessibility")}),(0,i.jsx)(g8,{variant:"body1",marginBottom:3,children:(0,eA.__)("For cases where you’re moving the same site from staging to production or changing from HTTP to HTTPs.","pojo-accessibility")}),(0,i.jsx)(cC,{variant:"text",onClick:async()=>{try{const e=await _.initConnect("update");e?.success&&window.location.reload()}catch(e){r((0,eA.__)("An error occurred.","pojo-accessibility"))}t()},color:"info",children:(0,eA.__)("Update URL","pojo-accessibility")})]}),(0,i.jsxs)(f8,{children:[(0,i.jsx)(m8,{variant:"h6",marginBottom:3,children:(0,eA.__)("Connect the URL as a new site","pojo-accessibility")}),(0,i.jsx)(g8,{variant:"body1",marginBottom:3,children:(0,eA.__)("For when you want to connect the plugin to a new site entirely—deleting the previous history.","pojo-accessibility")}),(0,i.jsx)(cC,{variant:"text",onClick:()=>s(!0),color:"info",children:(0,eA.__)("Connect new site","pojo-accessibility")})]})]})]})}),a&&(0,i.jsx)(p8,{onClose:l,onCancel:l,title:(0,eA.__)("Are you sure you want to connect as a new site?","pojo-accessibility"),approveText:(0,eA.__)("Connect","pojo-accessibility"),onApprove:async()=>{try{s(!1),await _.clearSession(),window.location.href=(0,y.addQueryArgs)(window.location.href,{action:"connect"})}catch(e){r((0,eA.__)("An error occurred.","pojo-accessibility"))}t()},children:(0,i.jsx)(Rw,{variant:"body1",children:(0,eA.__)("Connecting as a new site will delete data related to the current site.","pojo-accessibility")})})]})},f8=Ky(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=Ky(Rw)`
font-size: 16px;
color: ${({theme:e})=>e.palette.text.primary};
`,g8=Ky(Rw)`
font-size: 14px;
color: ${({theme:e})=>e.palette.text.secondary};
`,v8=Ky(sv)`
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)};
`,y8=Ky(sv)`
justify-content: space-between;
display: flex;
margin-top: 80px;
margin-bottom: 80px;
`,b8=Ky(Rw)`
color: ${({theme:e})=>e.palette.text.primary};
margin-top: ${({theme:e})=>e.spacing(5)};
margin-bottom: ${({theme:e})=>e.spacing(1)};
`,x8=Ky(Rw)`
color: ${({theme:e})=>e.palette.text.secondary};
margin-bottom: ${({theme:e})=>e.spacing(1)};
text-align: center;
width: 70%;
`,w8=Ky(p8)`
margin-left: 10%;
& .MuiDialogContent-dividers {
border-bottom: none;
}
`,C8=({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)(A8,{sx:{backgroundColor:l?.color,borderRadius:u,width:"text"===a?1.9*t:t,height:t},children:(0,i.jsxs)(k8,{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)(S8,{size:p/2.5})]})})},A8=Ky(Sm)`
display: flex;
justify-content: center;
align-items: center;
padding: ${({theme:e})=>e.spacing(1)};
`,k8=Ky(Sm)`
display: inline-flex;
justify-content: center;
align-items: center;
`,S8=({size:e})=>{const{iconDesign:t}=s(),r=`lch(from ${t?.color||"#fff"} calc((50 - l) * 100) 0 0)`;return(0,i.jsx)(_8,{className:"custom-icon",style:{display:"flex",alignItems:"center",justifyContent:"center"},dangerouslySetInnerHTML:{__html:t?.custom?.svg},size:e,strokeColor:r})},_8=Ky("div")`
svg {
font-size: ${({size:e})=>e}px;
width: ${({size:e})=>e}px;
fill: ${({strokeColor:e})=>e};
path {
fill: ${({strokeColor:e})=>e};
}
}
`,M8=({iconType:e,option:t,clickHandler:r})=>{const{iconDesign:o}=D(),[a,s]=(0,n.useState)(!1);(0,n.useEffect)(()=>{const r="custom"===t.value&&"select"===e;s(r)},[]);const l="select"===e?t.icon:sR(o.icon)?.icon,c="select"===e?44:t.fontSize,u="select"===e?100:null,d="select"===e?t.value:sR(o.icon)?.value;if("custom"===t.value&&!o.custom)return null;const p="select"===e?o.icon:o.size;return(0,i.jsxs)(j8,{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)(E8,{label:(0,eA.__)("Custom","pojo-accessibility"),size:"small"}),(0,i.jsx)(C8,{icon:l,size:c,radius:u,color:o?.color,control:e,type:d}),(0,i.jsx)(BO,{value:t.value,inputProps:{"aria-label":t.label},sx:{opacity:0,position:"absolute"}})]},t.value)},j8=Ky(yO)`
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};
}
`,E8=Ky(a_)`
position: absolute;
top: 5px;
left: 5px;
font-size: 10px;
height: 16px;
`;function R8(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function L8(e,t){for(let r=0;r{let c=a?s.trim():s;r&&(c=c.toLowerCase()),t&&(c=R8(c));const u=c?e.filter(e=>{let n=(i||l)(e);return r&&(n=n.toLowerCase()),t&&(n=R8(n)),"start"===o?0===n.indexOf(c):n.indexOf(c)>-1}):e;return"number"==typeof n?u.slice(0,n):u}}(),P8=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function O8(e){const{unstable_isActiveElementInListbox:t=P8,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=I8,filterSelectedOptions:v=!1,freeSolo:y=!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:E,onClose:R,onHighlightChange:L,onInputChange:I,onOpen:P,open:O,openOnFocus:T=!1,options:N,readOnly:D=!1,selectOnFocus:z=!e.freeSolo,value:F}=e,B=sW(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]=SR({controlled:F,default:u,name:c}),[ee,te]=SR({controlled:_,default:"",name:c,state:"inputValue"}),[re,ne]=Xh.useState(!1),oe=Xh.useCallback((e,t)=>{if(!(j?Q.length!v||!(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||y&&!e||oe(null,Q)},[Q,oe,re,pe.value,y]);const he=ie&&de.length>0&&!D,fe=$x(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=$x(({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}`),L&&L(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)}}),ve=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 L8(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)K.current>=de.length-1?me({index:de.length-1}):me({index:K.current});else{const e=de[K.current];if(j&&e&&-1!==L8(Q,t=>M(e,t)))return;const r=L8(de,e=>M(e,t));-1===r?ge({diff:"reset"}):me({index:r})}}else ge({diff:"reset"})},[de.length,!j&&Q,v,ge,me,ue,ee,j]),ye=$x(e=>{Rx(Z,e),e&&ve()});Xh.useEffect(()=>{ve()},[ve]);const be=e=>{ie||(ae(!0),le(!0),P&&P(e))},xe=(e,t)=>{ie&&(ae(!1),R&&R(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;E&&E(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=L8(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(""),I&&I(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 y&&""!==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&&!D&&""===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&&!D&&""===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),T&&!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&&y&&""!==ee?Ae(e,ee,"blur","freeSolo"):s&&oe(e,Q),xe(e,"blur"))},Ee=e=>{const t=e.target.value;ee!==t&&(te(t),le(!1),I&&I(e,t,"input")),""===t?d||j||we(e,null,"clear"):be(e)},Re=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));K.current!==t&&me({event:e,index:t,reason:"mouse"})},Le=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},Ie=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]})},Oe=e=>{ie?xe(e,"toggleInput"):be(e)},Te=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==B&&e.preventDefault()},Ne=e=>{e.currentTarget.contains(e.target)&&(W.current.focus(),z&&$.current&&W.current.selectionEnd-W.current.selectionStart===0&&W.current.select(),$.current=!1)},De=e=>{h||""!==ee&&ie||Oe(e)};let ze=y&&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:Te,onClick:Ne}),getInputLabelProps:()=>({id:`${B}-label`,htmlFor:B}),getInputProps:()=>({id:B,value:ee,onBlur:je,onFocus:Me,onChange:Ee,onMouseDown:De,"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:Oe}),getTagProps:({index:e})=>(0,Yh.A)({key:e,"data-tag-index":e,tabIndex:-1},!D&&{onDelete:Pe(e)}),getListboxProps:()=>({role:"listbox",id:`${B}-listbox`,"aria-labelledby":`${B}-label`,ref:ye,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:Re,onClick:Ie,onTouchStart:Le,"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 T8(e){return bm("MuiListSubheader",e)}xm("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const N8=["className","color","component","disableGutters","disableSticky","inset"],D8=Wg("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${mx(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})),z8=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,N8),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${mx(r)}`,!n&&"gutters",o&&"inset",!i&&"sticky"]},T8,t)})(d);return(0,i.jsx)(D8,(0,Yh.A)({as:a,className:Jh(p.root,n),ref:t,ownerState:d},u))});z8.muiSkipListHighlight=!0;const F8=z8;function B8(e){return bm("MuiAutocomplete",e)}const H8=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 V8,$8;const W8=["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"],Z8=["ref"],U8=iA(),q8=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[{[`& .${H8.tag}`]:t.tag},{[`& .${H8.tag}`]:t[`tagSize${mx(s)}`]},{[`& .${H8.inputRoot}`]:t.inputRoot},{[`& .${H8.input}`]:t.input},{[`& .${H8.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${H8.focused} .${H8.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${H8.clearIndicator}`]:{visibility:"visible"}},[`& .${H8.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${H8.inputRoot}`]:{flexWrap:"wrap",[`.${H8.hasPopupIcon}&, .${H8.hasClearIcon}&`]:{paddingRight:30},[`.${H8.hasPopupIcon}.${H8.hasClearIcon}&`]:{paddingRight:56},[`& .${H8.input}`]:{width:0,minWidth:30}},[`& .${jL.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${jL.root}.${yL.sizeSmall}`]:{[`& .${jL.input}`]:{padding:"2px 4px 3px 0"}},[`& .${UL.root}`]:{padding:9,[`.${H8.hasPopupIcon}&, .${H8.hasClearIcon}&`]:{paddingRight:39},[`.${H8.hasPopupIcon}.${H8.hasClearIcon}&`]:{paddingRight:65},[`& .${H8.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${H8.endAdornment}`]:{right:9}},[`& .${UL.root}.${yL.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${H8.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${TL.root}`]:{paddingTop:19,paddingLeft:8,[`.${H8.hasPopupIcon}&, .${H8.hasClearIcon}&`]:{paddingRight:39},[`.${H8.hasPopupIcon}.${H8.hasClearIcon}&`]:{paddingRight:65},[`& .${TL.input}`]:{padding:"7px 4px"},[`& .${H8.endAdornment}`]:{right:9}},[`& .${TL.root}.${yL.sizeSmall}`]:{paddingBottom:1,[`& .${TL.input}`]:{padding:"2.5px 4px"}},[`& .${yL.hiddenLabel}`]:{paddingTop:8},[`& .${TL.root}.${yL.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${H8.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${TL.root}.${yL.hiddenLabel}.${yL.sizeSmall}`]:{[`& .${H8.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${H8.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${H8.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${H8.input}`]:{opacity:1}}}]}),X8=Wg("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),G8=Wg(AA,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Y8=Wg(AA,{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)"}}]}),K8=Wg(eE,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${H8.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),Q8=Wg(mA,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>(0,Yh.A)({},e.typography.body1,{overflow:"auto"})),J8=Wg("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),e7=Wg("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),t7=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",[`& .${H8.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"},[`&.${H8.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"},[`&.${H8.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),[`&.${H8.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}},[`&.${H8.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)}}}})),r7=Wg(F8,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),n7=Wg("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${H8.option}`]:{paddingLeft:24}}),o7=Xh.forwardRef(function(e,t){var r,n,o,a;const s=U8({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:p,className:h,clearIcon:f=V8||(V8=(0,i.jsx)(EA,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:g=!1,clearText:v="Clear",closeText:y="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:E=!1,fullWidth:R=!1,getLimitTagsText:L=e=>`+${e}`,getOptionLabel:I,groupBy:P,handleHomeEndKeys:O=!s.freeSolo,includeInputInList:T=!1,limitTags:N=-1,ListboxComponent:D="ul",ListboxProps:z,loading:F=!1,loadingText:B="Loading…",multiple:H=!1,noOptionsText:V="No options",openOnFocus:$=!1,openText:W="Open",PaperComponent:Z=mA,PopperComponent:U=eE,popupIcon:q=$8||($8=(0,i.jsx)(jI,{})),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,W8),{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:ve,anchorEl:ye,setAnchorEl:be,inputValue:xe,groupedOptions:we}=O8((0,Yh.A)({},s,{componentName:"Autocomplete"})),Ce=!w&&!A&&pe&&!X,Ae=(!E||!0===j)&&!1!==j,{onMouseDown:ke}=oe(),{ref:Se}=null!=z?z:{},_e=ce(),{ref:Me}=_e,je=(0,Kh.A)(_e,Z8),Ee=ab(Me,Se),Re=I||(e=>{var t;return null!=(t=e.label)?t:e}),Le=(0,Yh.A)({},s,{disablePortal:_,expanded:he,focused:ge,fullWidth:R,getOptionLabel:Re,hasClearIcon:Ce,hasPopupIcon:Ae,inputFocused:-1===ve,popupOpen:me,size:ee}),Ie=(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${mx(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"]},B8,t)})(Le);let Pe;if(H&&de.length>0){const e=e=>(0,Yh.A)({className:Ie.tag,disabled:A},le(e));Pe=Q?Q(de,e,Le):de.map((t,r)=>(0,i.jsx)(t_,(0,Yh.A)({label:Re(t),size:ee},e({index:r}),p)))}if(N>-1&&Array.isArray(Pe)){const e=Pe.length-N;!ge&&e>0&&(Pe=Pe.splice(0,N),Pe.push((0,i.jsx)("span",{className:Ie.tag,children:L(e)},Pe.length)))}const Oe=G||(e=>(0,i.jsxs)("li",{children:[(0,i.jsx)(r7,{className:Ie.groupLabel,ownerState:Le,component:"div",children:e.group}),(0,i.jsx)(n7,{className:Ie.groupUl,ownerState:Le,children:e.children})]},e.key)),Te=K||((e,t)=>(0,Xh.createElement)("li",(0,Yh.A)({},e,{key:e.key}),Re(t))),Ne=(e,t)=>{const r=ue({option:e,index:t});return Te((0,Yh.A)({},r,{className:Ie.option}),e,{selected:r["aria-selected"],index:t,inputValue:xe},Le)},De=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)(K8,(0,Yh.A)({as:U,disablePortal:_,style:{width:ye?ye.clientWidth:null},ownerState:Le,role:"presentation",anchorEl:ye,open:me},Fe,{className:Jh(Ie.popper,null==Fe?void 0:Fe.className),children:(0,i.jsx)(Q8,(0,Yh.A)({ownerState:Le,as:Z},ze,{className:Jh(Ie.paper,null==ze?void 0:ze.className),children:e}))}));let Ve=null;return we.length>0?Ve=He((0,i.jsx)(t7,(0,Yh.A)({as:D,className:Ie.listbox,ownerState:Le},je,z,{ref:Ee,children:we.map((e,t)=>P?Oe({key:e.key,group:e.group,children:e.options.map((t,r)=>Ne(t,e.index+r))}):Ne(e,t))}))):F&&0===we.length?Ve=He((0,i.jsx)(J8,{className:Ie.loading,ownerState:Le,children:B})):0!==we.length||E||F||(Ve=He((0,i.jsx)(e7,{className:Ie.noOptions,ownerState:Le,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:V}))),(0,i.jsxs)(Xh.Fragment,{children:[(0,i.jsx)(q8,(0,Yh.A)({ref:t,className:Jh(Ie.root,h),ownerState:Le},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:Ie.inputRoot,startAdornment:Pe,onClick:e=>{e.target===e.currentTarget&&ke(e)}},(Ce||Ae)&&{endAdornment:(0,i.jsxs)(X8,{className:Ie.endAdornment,ownerState:Le,children:[Ce?(0,i.jsx)(G8,(0,Yh.A)({},se(),{"aria-label":v,title:v,ownerState:Le},De,{className:Jh(Ie.clearIndicator,null==De?void 0:De.className),children:f})):null,Ae?(0,i.jsx)(Y8,(0,Yh.A)({},ae(),{disabled:A,"aria-label":me?y:W,title:me?y:W,ownerState:Le},Be,{className:Jh(Ie.popupIndicator,null==Be?void 0:Be.className),children:q})):null]})}),inputProps:(0,Yh.A)({className:Ie.input,disabled:A,readOnly:X},oe())})})),ye?Ve:null]})}),i7=o7,a7="MuiAutocomplete-listbox";var s7=Gh().forwardRef((e,t)=>{const{renderInput:r,ListboxProps:n={},...o}=e;return Gh().createElement(i7,{...o,ListboxProps:{...n,className:Ox([a7,`${a7}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 l7=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)(nF,{placement:"right-start",content:(0,i.jsx)(l3,{}),disableHoverListener:!0,disableFocusListener:!0,PopperProps:{sx:{zIndex:99999999999}},open:l,children:(0,i.jsx)(s7,{...e,options:f,renderInput:e=>(e=>(0,i.jsx)(c7,{...e,placeholder:(0,eA.__)("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}),Fh("statement_page_selected",{page:e?.link})})(t)},getOptionLabel:e=>e.label||"",loading:p,loadingText:(0,eA.__)("Searching…","pojo-accessibility"),noOptionsText:p?(0,eA.__)("Searching…","pojo-accessibility"):(0,eA.__)("No pages found","pojo-accessibility"),clearOnBlur:!1,value:o})})},c7=Ky(UI)`
& .MuiAutocomplete-input,
& .MuiAutocomplete-input:focus,
& .MuiAutocomplete-input:focus-visible {
border: none;
outline: none;
box-shadow: none;
}
`;var u7=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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 d7={visits:{title:(0,eA.__)("Widget loads","pojo-accessibility"),infotipDescription:(0,eA.__)("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,eA.__)("Pages scanned","pojo-accessibility"),infotipDescription:(0,eA.__)("This is how many URLs (like site pages, blog posts, or product pages) you’ve scanned for accessibility this month. Upgrade if you’re nearing your limit to keep scanning more.","pojo-accessibility")},ai:{title:(0,eA.__)("AI credits","pojo-accessibility"),infotipDescription:(0,eA.__)("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,eA.__)("Upgrade your plan to unlock AI credits for generating alt‑text, one‑click accessibility fixes, and more.","pojo-accessibility")}},p7=({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)(h7,{children:[(0,i.jsxs)(Sm,{display:"flex",justifyContent:"space-between",children:[(0,i.jsxs)(Rw,{variant:"body2",color:n?"text.disabled":"text.secondary",display:"flex",alignItems:"center",sx:{fontSize:"12px"},children:[d7[e]?.title,(0,i.jsx)(nF,{placement:"right",PopperProps:{sx:{width:"300px",marginLeft:1},disablePortal:!0},content:(0,i.jsx)(Rw,{color:"text.secondary",variant:"body2",padding:2,children:n?d7[e]?.lockedDescription:d7[e]?.infotipDescription}),children:n?(0,i.jsx)(u7,{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)(Rw,{variant:"body2",color:n?"text.disabled":"text.primary",sx:{fontSize:"12px"},children:n?"0/0":`${O(t?.used)} / ${O(t?.allowed)}`})})]}),(0,i.jsx)(h5,{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"})]})},h7=Ky(Sm)`
display: inline-flex;
flex-direction: column;
gap: ${({theme:e})=>e.spacing(1)};
width: 100%;
margin-bottom: ${({theme:e})=>e.spacing(1)};
`;var f7=Xh.forwardRef((e,t)=>Xh.createElement(bC,{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?.visits||!e?.aiCredits)return null;const{scannedPages:r,visits:n,aiCredits:o}=e,a=Math.round(r.used/r.allowed*100),l=Math.round(n.used/n.allowed*100),c=Math.round(o.used/o.allowed*100),u=a>=80&&a<100||l>=80&&l<100||c>=80&&c<100;return a>=100||l>=100||c>=100?(0,i.jsx)(bE,{title:(0,eA.__)("You’re reached your plan’s limit","pojo-accessibility"),children:(0,i.jsx)(f7,{sx:{color:"error.dark"},fontSize:"16px"})}):u?(0,i.jsx)(bE,{title:(0,eA.__)("You’re nearing your plan’s limit","pojo-accessibility"),children:(0,i.jsx)(d8,{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},g7=Gh().forwardRef((e,t)=>Gh().createElement(F8,{...e,ref:t}));g7.muiSkipListHighlight=!0;var v7=g7;const y7=({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,Fh(Vh,{buttonName:e})};return"heading"===t?.type&&r?(0,i.jsx)(v7,{sx:{whiteSpace:"nowrap"},children:t?.name}):"heading"!==t?.type||r?(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(hx,{disableGutters:!0,disablePadding:!0,dense:!0,children:(0,i.jsxs)(Vk,{onClick:()=>{return t?.children?(e=t.name,r=d,u(e=>({...e,[r]:!e[r]})),void Fh(Vh,{buttonName:e})):h(t.name,d);var e,r},sx:{justifyContent:"center",borderRadius:1},selected:!(d!==o?.parent||o?.child&&r),children:[(0,i.jsx)(bE,{title:t?.name,placement:"right",disableHoverListener:r,children:(0,i.jsx)(_C,{sx:{padding:r?"auto":.5,marginRight:r?1:"0 !important"},children:t.icon})}),(0,i.jsx)(Ex,{primary:t.name,hidden:!r}),r&&t?.infotip,t?.children&&(0,i.jsx)(_C,{sx:{display:r?"default":"none",marginLeft:2},children:(0,i.jsx)(aF,{fontSize:"small",sx:{rotate:c[d]?"180deg":"0"}})}),(f=t,p&&f.proIcon&&!p.includes(f.proIcon)&&r&&(0,i.jsx)(_C,{children:(0,i.jsx)(b7,{color:"accent",variant:"standard",icon:(0,i.jsx)(T0,{size:"tiny"})})}))]})}),t?.children&&c[d]&&r&&(0,i.jsx)(nb,{disablePadding:!0,children:Object.entries(t?.children).map(([e,t])=>(0,i.jsx)(hx,{hidden:!r,sx:{p:0},dense:!0,children:(0,i.jsx)(Vk,{sx:{paddingLeft:"44px",borderRadius:1},hidden:!r,selected:e===o?.child&&r,onClick:()=>h(t.name,d,e),children:(0,i.jsx)(Ex,{primary:t?.name,hidden:!r})})},e))})]},t?.key):null;var f},b7=Ky(a_)`
height: 26px;
width: 26px;
.MuiChip-label {
padding: 0;
}
`,x7=e=>(0,i.jsx)(dM,{...e,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},autoFocus:!1,children:(0,i.jsx)(B7,{collapsible:!1,popup:!0})});function w7(e){return bm("MuiCardActionArea",e)}const C7=xm("MuiCardActionArea",["root","focusVisible","focusHighlight"]),A7=["children","className","focusVisibleClassName"],k7=Wg(Gb,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${C7.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${C7.focusVisible} .${C7.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),S7=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})})),_7=Xh.forwardRef(function(e,t){const r=Xg({props:e,name:"MuiCardActionArea"}),{children:n,className:o,focusVisibleClassName:a}=r,s=(0,Kh.A)(r,A7),l=r,c=(e=>{const{classes:t}=e;return Fg({root:["root"],focusHighlight:["focusHighlight"]},w7,t)})(l);return(0,i.jsxs)(k7,(0,Yh.A)({className:Jh(c.root,o),focusVisibleClassName:Jh(a,c.focusVisible),ref:t,ownerState:l},s,{children:[n,(0,i.jsx)(S7,{className:c.focusHighlight,ownerState:l})]}))});var M7=Gh().forwardRef((e,t)=>Gh().createElement(_7,{...e,ref:t}));const{slots:j7,classNames:E7}=VA("CardGroup",["root"]),R7=Ky("div",j7.root)({});var L7=Gh().forwardRef((e,t)=>{const r=Xg({props:e,name:j7.root.name});return Gh().createElement(R7,{...r,ref:t,className:Ox([[E7.root,r.className]]),ownerState:r})}),I7=Gh().forwardRef((e,t)=>Gh().createElement(y3,{...e,ref:t}));const{slots:P7}=VA("Rotate",["root"]),O7={appear:!1,to:180},T7=Gh().forwardRef((e,t)=>{const r=Xg({props:{...O7,...e},name:P7.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:v,style:y,timeout:b=a,TransitionComponent:x=dw,from:w,to:C}=r,A=(0,Xh.useRef)(null),k=ab(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=D7({style:y,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)}),E=_((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:E,onExit:()=>{const e=A.current;if(!e)return;const t=D7({style:y,timeout:b,easing:u,mode:"exit"});e.style.transition=n.transitions.create("rotate",t),m?.()},onExiting:v,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:F7(w,o),...z7(e,F7(C,o)),...y,...c.props?.style||{}},...t}))});T7.defaultProps=O7;var N7=T7;function D7({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 z7(e,t="none"){return{entering:{rotate:t},entered:{rotate:t}}[e]}function F7(e,t=!1){if(e&&"number"==typeof e)return`${t?-1*e:e}deg`}const B7=({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,eA.__)("Current Plan","pojo-accessibility"),(0,i.jsx)(a_,{variant:"filled",label:r?.plan?.name,size:"tiny"}),(0,i.jsx)(m7,{})]}),c=()=>(0,i.jsxs)(W7,{children:[(0,i.jsx)(p7,{type:"visits",quotaData:r?.visits}),(0,i.jsx)(p7,{type:"scanner",quotaData:r?.scannedPages}),(0,i.jsx)(p7,{type:"ai",quotaData:r?.aiCredits})]});return(0,i.jsx)(H7,{popup:t,children:(0,i.jsxs)(V7,{children:[(0,i.jsxs)(EN,{elevation:0,sx:{overflow:"visible"},children:[(0,i.jsx)(U7,{onClick:()=>a(e=>!e),children:(0,i.jsx)(Z7,{title:(0,i.jsx)(l,{}),action:e&&(0,i.jsx)(N7,{in:o,children:(0,i.jsx)(j2,{})}),disableActionOffset:!0})}),e&&(0,i.jsx)(I7,{in:o,children:(0,i.jsx)(c,{})}),!e&&(0,i.jsx)(c,{})]}),(0,i.jsx)(EN,{elevation:0,children:(0,i.jsx)($7,{children:(0,i.jsx)(cC,{variant:"outlined",startIcon:"Free"===r?.plan?.name?(0,i.jsx)(a8,{}):null,onClick:()=>{Fh(Wh,{feature:"add visits",component:"quota counter"}),P(JC.ADD_VISITS)},size:"small",fullWidth:!0,color:"Free"===r?.plan?.name?"promotion":"info",children:"Free"===r?.plan?.name?(0,eA.__)("Upgrade plan","pojo-accessibility"):(0,eA.__)("View more plans","pojo-accessibility")})})})]})})},H7=Ky(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};
}
`,V7=Ky(L7)`
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;
}
`,$7=Ky(ON)`
padding: 0;
background-color: transparent;
:last-child {
padding-bottom: 0;
}
`,W7=Ky(ON)`
padding: 0;
background-color: transparent;
padding-top: ${({theme:e})=>e.spacing(1)};
:last-child {
padding-bottom: ${({theme:e})=>e.spacing(2)};
}
`,Z7=Ky($N)`
padding: 0;
background-color: transparent;
margin-bottom: ${({theme:e})=>e.spacing(1)};
`,U7=Ky(M7)`
background-color: transparent;
button {
&:hover {
background-color: transparent;
}
}
`,q7=Ky(JN)`
overflow: auto;
max-height: 100%;
padding: ${({theme:e})=>e.spacing(4)};
`,X7=(0,n.memo)(()=>(0,i.jsx)(MS,{speed:DS.SPEED,foregroundColor:DS.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"})})),G7=(0,n.memo)(({children:e})=>(0,i.jsxs)(q7,{children:[(0,i.jsx)(X7,{}),e]}));G7.propTypes={children:Qk().node};const Y7=G7,K7=({isLoading:e,page:t})=>e?(0,i.jsx)(Y7,{}):t,Q7=()=>{const{hasFinishedResolution:e,loading:t}=T(),{isConnected:r,isRTL:o,closePostConnectModal:a,isUrlMismatch:l}=dR(),{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(zh)&&!n?.includes(zh))return;const i=e?.pluginEnv||t?.pluginEnv;await Dh.init("150605b3b9f979922f2ac5a52e2dcfe9",{debug:"dev"===i,track_pageview:!1,persistence:"localStorage"}),Dh.register({productName:"app_access",appType:"Apps",environment:i,is_trial:Boolean(o?.name?.toLowerCase().includes("free")),plan_type:o?.name,subscription_id:o?.subscription_id}),Dh.identify(r?.user?.id);const a={$email:r?.user?.email,$user_id:r?.user?.id,$subscription_type:o?.name,$subscription_id:o?.subscription_id,$subscription_status:o?.status};Dh.people?.set_once(a)})().then(()=>{Fh(Bh,{page:"Button"})})},[window.ea11ySettingsData?.planData?.user?.id]);const p=_4[d?.parent],f=d?.child?p?.children[d?.child]:null;return(0,i.jsx)(Dg,{rtl:o,children:(0,i.jsxs)(Uy,{colorScheme:"light",children:[void 0!==r&&!l&&!r&&(0,i.jsx)(oA,{}),r&&!a&&(0,i.jsx)(R4,{}),l&&!r&&(0,i.jsx)(h8,{}),(0,i.jsx)(hz,{}),(0,i.jsxs)(e9,{children:[(0,i.jsx)(aD,{}),(0,i.jsxs)(J7,{children:[(0,i.jsx)(KD,{}),(0,i.jsx)(K7,{isLoading:!e||t,page:f?f?.page:p?.page})]})]}),(0,i.jsx)(Tk,{message:c,type:u})]})})},J7=Ky(Sm)`
width: 100%;
display: flex;
flex-direction: column;
justify-content: start;
`,e9=Ky(sv)`
height: calc(100% - 54.5px);
display: flex;
flex-direction: row;
`,t9=document.getElementById("ea11y-app"),r9=window?.ea11ySettingsData?.isDevelopment,n9=Boolean(r9)?n.StrictMode:n.Fragment;(0,n.createRoot)(t9).render((0,i.jsx)(n9,{children:(0,i.jsx)(f,{children:(0,i.jsx)(l,{children:(0,i.jsx)(uR,{children:(0,i.jsx)(j,{children:(0,i.jsx)(Q7,{})})})})})}))},3072:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||w(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3168:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,k:()=>l});var n=r(3226),o=r(9667),i=r(4734),a=r(435),s=r(4229);function l(){function e(e,t,r,o){const s={[e]:t,theme:r},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:p}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,i.Yn)(r,u)||{};return p?p(s):(0,a.NI)(s,t,t=>{let r=(0,i.BO)(h,d,t);return t===r&&"string"==typeof t&&(r=(0,i.BO)(h,d,`${e}${"default"===t?"":(0,n.A)(t)}`,t)),!1===c?r:{[c]:r}})}return function t(r){var n;const{sx:i,theme:l={}}=r||{};if(!i)return null;const c=null!=(n=l.unstable_sxConfig)?n:s.A;function u(r){let n=r;if("function"==typeof r)n=r(l);else if("object"!=typeof r)return r;if(!n)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(n).forEach(r=>{const i="function"==typeof(s=n[r])?s(l):s;var s;if(null!=i)if("object"==typeof i)if(c[r])u=(0,o.A)(u,e(r,i,l,c));else{const e=(0,a.NI)({theme:l},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)?u=(0,o.A)(u,e):u[r]=t({sx:i,theme:l})}else u=(0,o.A)(u,e(r,i,l,c))}),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},3174:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=r(6289),i=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=(0,o.A)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return f={name:t,styles:r,next:f},t})}return 1===n[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"},p="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return f={name:o.name,styles:o.styles,next:f},o.name;var a=r;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)f={name:s.name,styles:s.styles,next:f},s=s.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:f}}},3226:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(5048);function o(e){if("string"!=typeof e)throw new Error((0,n.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},3404:(e,t,r)=>{"use strict";e.exports=r(3072)},4146:(e,t,r)=>{"use strict";var n=r(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var o=h(r);o&&o!==f&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g{"use strict";function n(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new n(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new n(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new n(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(e=>{o[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new n(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new n(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new n(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([a-z])/g,a=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)}),o.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=r(6811),u=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),d=Object.keys(c).reduce((e,t)=>{const r=c[t];return r===l?e[t]=t:r===s?e[t.toLowerCase()]=t:e[t]=r,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},4229:(e,t,r)=>{"use strict";r.d(t,{A:()=>O});var n=r(1069),o=r(4734),i=r(9667);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(435);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"),v=c("borderRightColor"),y=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,v,y,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}),E=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};E.filterProps=["maxWidth"];const R=(0,o.Ay)({prop:"minWidth",transform:M}),L=(0,o.Ay)({prop:"height",transform:M}),I=(0,o.Ay)({prop:"maxHeight",transform:M}),P=(0,o.Ay)({prop:"minHeight",transform:M}),O=((0,o.Ay)({prop:"size",cssProperty:"width",transform:M}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:M}),a(j,E,R,L,I,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:E},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"}})},4363:(e,t,r)=>{"use strict";r(2799)},4559:(e,t)=>{"use strict";Symbol.for("react.transitional.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler");Symbol.for("react.provider");Symbol.for("react.consumer"),Symbol.for("react.context");var r=Symbol.for("react.forward_ref"),n=(Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"));Symbol.for("react.lazy"),Symbol.for("react.view_transition"),Symbol.for("react.client.reference");t.vM=r,t.lD=n},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";r.d(t,{C:()=>c,E:()=>v,T:()=>d,c:()=>m,h:()=>h,u:()=>p,w:()=>u});var n=r(1609),o=r(1568),i=r(41),a=r(3174),s=r(1287),l=n.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null),c=l.Provider,u=function(e){return(0,n.forwardRef)(function(t,r){var o=(0,n.useContext)(l);return e(t,o,r)})},d=n.createContext({}),p=function(){return n.useContext(d)},h={}.hasOwnProperty,f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m=function(e,t){var r={};for(var n in t)h.call(t,n)&&(r[n]=t[n]);return r[f]=e,r},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,i.SF)(t,r,n),(0,s.s)(function(){return(0,i.sk)(t,r,n)}),null},v=u(function(e,t,r){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[f],l=[o],c="";"string"==typeof e.className?c=(0,i.Rk)(t.registered,l,e.className):null!=e.className&&(c=e.className+" ");var u=(0,a.J)(l,void 0,n.useContext(d));c+=t.key+"-"+u.name;var p={};for(var m in e)h.call(e,m)&&"css"!==m&&m!==f&&(p[m]=e[m]);return p.className=c,r&&(p.ref=r),n.createElement(n.Fragment,null,n.createElement(g,{cache:t,serialized:u,isStringTag:"string"==typeof s}),n.createElement(s,p))})},4734:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var n=r(3226),o=r(435);function i(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 a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}const s=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,e=>{let o=a(u,l,e);return e===o&&"string"==typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},4893:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},4958:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}};var o=r(1609),i=n(r(5229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5047:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t{"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;en})},5229:function(e,t,r){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(1133)),o=r(8917);function i(e,t){var r={};return e&&"string"==typeof e?((0,n.default)(e,function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)}),r):r}i.default=i,e.exports=i},5270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},5413:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},5496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r,p=(e=(0,n.escapeSpecialCharacters)(e)).match(s),h=p&&p[1]?p[1].toLowerCase():"";switch(h){case o:var f=d(e);return l.test(e)||null===(t=null==(v=f.querySelector(i))?void 0:v.parentNode)||void 0===t||t.removeChild(v),c.test(e)||null===(r=null==(v=f.querySelector(a))?void 0:v.parentNode)||void 0===r||r.removeChild(v),f.querySelectorAll(o);case i:case a:var g=u(e).querySelectorAll(h);return c.test(e)&&l.test(e)?g[0].parentNode.childNodes:g;default:return m?m(e):(v=u(e,a).querySelector(a)).childNodes;var v}};var n=r(7731),o="html",i="head",a="body",s=/<([a-zA-Z]+[0-9]?)/,l=//i,c=//i,u=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},p="object"==typeof window&&window.DOMParser;if("function"==typeof p){var h=new p;u=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"").concat(t,">")),h.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var f=document.implementation.createHTMLDocument();u=function(e,t){if(t){var r=f.documentElement.querySelector(t);return r&&(r.innerHTML=e),f}return f.documentElement.innerHTML=e,f}}var m,g="object"==typeof document&&document.createElement("template");g&&g.content&&(m=function(e){return g.innerHTML=e,g.content.childNodes})},5556:(e,t,r)=>{e.exports=r(2694)()},5888:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>m,private_createBreakpoints:()=>l,unstable_applyStyles:()=>h});var n=r(8168),o=r(8587),i=r(766);const a=["values","unit","step"],s=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)=>(0,n.A)({},e,{[t.key]:t.val}),{})};function l(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5}=e,l=(0,o.A)(e,a),c=s(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-i/100}${r})`}function h(e,n){const o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-i/100}${r})`}return(0,n.A)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.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}(s);let b=(0,i.A)({breakpoints:v,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},a),spacing:y,shape:(0,n.A)({},c,m)},g);return b.applyStyles=h,b=t.reduce((e,t)=>(0,i.A)(e,t),b),b.unstable_sxConfig=(0,n.A)({},p.A,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(e){return(0,d.A)({sx:e,theme:this})},b}},6032:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,Q:()=>i});var n=r(8168),o=r(1609);function i(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function a(e){if(o.isValidElement(e)||!i(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=a(e[r])}),t}function s(e,t,r={clone:!0}){const l=r.clone?(0,n.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach(n=>{o.isValidElement(t[n])?l[n]=t[n]:i(t[n])&&Object.prototype.hasOwnProperty.call(e,n)&&i(e[n])?l[n]=s(e[n],t[n],r):r.clone?l[n]=i(t[n])?a(t[n]):t[n]:l[n]=t[n]}),l}},6289:(e,t,r)=>{"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{A:()=>n})},6446:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(766);const o=function(e,t){return t?(0,n.A)(e,t,{clone:!1}):e}},6632:(e,t,r)=>{"use strict";r.d(t,{C:()=>a,T:()=>l,w:()=>s});var n=r(1609),o=r(6810),i=(r(3174),r(1287),n.createContext("undefined"!=typeof HTMLElement?(0,o.A)({key:"css"}):null)),a=i.Provider,s=function(e){return(0,n.forwardRef)(function(t,r){var o=(0,n.useContext)(i);return e(t,o,r)})},l=n.createContext({})},6655:(e,t,r)=>{"use strict";var n=r(4994);t.Ay=function(e={}){const{themeId:t,defaultTheme:r=m,rootShouldForwardProp:n=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:d,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:w=y(g(h))}=c,C=(0,i.default)(c,p),A=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,k=x||!1;let S=f;"Root"===h||"root"===h?S=n:h?S=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(S=void 0);const _=(0,a.default)(e,(0,o.default)({shouldForwardProp:S,label:void 0},C)),M=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?n=>b(e,(0,o.default)({},n,{theme:v({theme:n.theme,defaultTheme:r,themeId:t})})):e,j=(n,...i)=>{let a=M(n);const s=i?i.map(M):[];d&&w&&s.push(e=>{const n=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;const i=n.components[d].styleOverrides,a={};return Object.entries(i).forEach(([t,r])=>{a[t]=b(r,(0,o.default)({},e,{theme:n}))}),w(e,a)}),d&&!A&&s.push(e=>{var n;const i=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));return b({variants:null==i||null==(n=i.components)||null==(n=n[d])?void 0:n.variants},(0,o.default)({},e,{theme:i}))}),k||s.push(u);const l=s.length-i.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=_(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(j.withConfig=_.withConfig),j}};var o=n(r(4634)),i=n(r(4893)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(2833)),s=r(120),l=(n(r(1560)),n(r(7503)),n(r(5888))),c=n(r(9569));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function y(e){return e?(t,r)=>r[e]:null}function b(e,t){let{ownerState:r}=t,n=(0,i.default)(t,u);const a="function"==typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(e=>b(e,(0,o.default)({ownerState:r},n)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))}),t}return a}},6673:e=>{function t(){return new DOMException("The request is not allowed","NotAllowedError")}e.exports=async function(e){try{await async function(e){if(!navigator.clipboard)throw t();return navigator.clipboard.writeText(e)}(e)}catch(r){try{await async function(e){const r=document.createElement("span");r.textContent=e,r.style.whiteSpace="pre",r.style.webkitUserSelect="auto",r.style.userSelect="all",document.body.appendChild(r);const n=window.getSelection(),o=window.document.createRange();n.removeAllRanges(),o.selectNode(r),n.addRange(o);let i=!1;try{i=window.document.execCommand("copy")}finally{n.removeAllRanges(),window.document.body.removeChild(r)}if(!i)throw t()}(e)}catch(e){throw e||r||t()}}}},6810:(e,t,r)=>{"use strict";r.d(t,{A:()=>ne});var n=r(5047),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function p(e){return e.length}function h(e){return e.length}function f(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,x="";function w(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:m,column:g,length:a,return:""}}function C(e,t){return a(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return b=y>0?u(x,--y):0,g--,10===b&&(g=1,m--),b}function k(){return b=y2||j(b)>3?"":" "}function P(e,t){for(;--t&&k()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return M(e,_()+(t<6&&32==S()&&32==k()))}function O(e){for(;k();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&O(b);break;case 40:41===e&&O(e);break;case 92:k()}return y}function T(e,t){for(;k()&&e+b!==57&&(e+b!==84||47!==S()););return"/*"+M(t,y-1)+"*"+i(47===e?e:k())}function N(e){for(;!j(S());)k();return M(e,y)}var D="-ms-",z="-moz-",F="-webkit-",B="comm",H="rule",V="decl",$="@keyframes";function W(e,t){for(var r="",n=h(e),o=0;o0&&p(z)-v&&f(b>32?Y(z+";",n,r,v-1):Y(l(z," ","")+";",n,r,v-2),h);break;case 59:z+=";";default:if(f(D=X(z,t,r,m,g,o,d,E,R=[],O=[],v),a),123===j)if(0===g)q(z,t,D,D,R,a,v,d,O);else switch(99===y&&110===u(z,3)?100:y){case 100:case 108:case 109:case 115:q(e,D,D,n&&f(X(e,D,D,0,0,o,d,E,o,R=[],v),O),o,O,v,d,n?R:O);break;default:q(z,D,D,D,[""],O,0,d,O)}}m=g=b=0,w=M=1,E=z="",v=s;break;case 58:v=1+p(z),b=x;default:if(w<1)if(123==j)--w;else if(125==j&&0==w++&&125==A())continue;switch(z+=i(j),j*w){case 38:M=g>0?1:(z+="\f",-1);break;case 44:d[m++]=(p(z)-1)*M,M=1;break;case 64:45===S()&&(z+=L(k())),y=S(),g=v=p(E=z+=N(_())),j++;break;case 45:45===x&&2==p(z)&&(w=0)}}return a}function X(e,t,r,n,i,a,c,u,p,f,m){for(var g=i-1,v=0===i?a:[""],y=h(v),b=0,x=0,C=0;b0?v[A]+" "+k:l(k,/&\f/g,v[A])))&&(p[C++]=S);return w(e,t,r,0===i?H:u,p,f,m)}function G(e,t,r){return w(e,t,r,B,i(b),d(e,2,-2),0)}function Y(e,t,r,n){return w(e,t,r,V,d(e,0,n),d(e,n+1,-1),n)}var K=function(e,t,r){for(var n=0,o=0;n=o,o=S(),38===n&&12===o&&(t[r]=1),!j(o);)k();return M(e,y)},Q=new WeakMap,J=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(r))&&!n){Q.set(e,!0);for(var o=[],a=function(e,t){return R(function(e,t){var r=-1,n=44;do{switch(j(n)){case 0:38===n&&12===S()&&(t[r]=1),e[r]+=K(y-1,t,r);break;case 2:e[r]+=L(n);break;case 4:if(44===n){e[++r]=58===S()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}}while(n=k());return e}(E(e),t))}(t,o),s=r.props,l=0,c=0;l6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+z+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?te(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,p(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+F)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===u(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+D+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+D+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+D+e+e}return e}var re=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case V:e.return=te(e.value,e.length);break;case $:return W([C(e,{value:l(e.value,"@","@"+F)})],n);case H:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return W([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return W([C(e,{props:[l(t,/:(plac\w+)/,":"+F+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,D+"input-$1")]})],n)}return""})}}],ne=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},6920:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(8168),o=r(8587),i=r(6032),a=r(7673);const s={borderRadius:4};var l=r(1069),c=r(3168),u=r(4229),d=r(851);const p=["breakpoints","palette","spacing","shape"],h=function(e={},...t){const{breakpoints:r={},palette:h={},spacing:f,shape:m={}}=e,g=(0,o.A)(e,p),v=(0,a.A)(r),y=function(e=8){if(e.mui)return e;const t=(0,l.LX)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(f);let b=(0,i.A)({breakpoints:v,direction:"ltr",components:{},palette:(0,n.A)({mode:"light"},h),spacing:y,shape:(0,n.A)({},s,m)},g);return b.applyStyles=d.A,b=t.reduce((e,t)=>(0,i.A)(e,t),b),b.unstable_sxConfig=(0,n.A)({},u.A,null==g?void 0:g.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},b}},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6950:(e,t,r)=>{"use strict";var n=r(4994);t.X4=function(e,t){return e=s(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)},t.e$=u,t.tL=function(e,t=.15){return c(e)>.5?u(e,t):d(e,t)},t.eM=function(e,t){const r=c(e),n=c(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},t.a=d;var o=n(r(9517)),i=n(r(7783));function a(e,t=0,r=1){return(0,i.default)(e,t,r)}function s(e){if(e.type)return e;if("#"===e.charAt(0))return s(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,o.default)(9,e));let n,i=e.substring(t+1,e.length-1);if("color"===r){if(i=i.split(" "),n=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,o.default)(10,n))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:r,values:i,colorSpace:n}}function l(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function c(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(function(e){e=s(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function d(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}},6957:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,r,n,o){void 0===n&&(n=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,n)||this;return i.name=t,i.attribs=r,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,a.isTag)(e)}function v(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function b(e){return e.type===a.ElementType.Comment}function x(e){return e.type===a.ElementType.Directive}function w(e){return e.type===a.ElementType.Root}function C(e,t){var r;if(void 0===t&&(t=!1),y(e))r=new c(e.data);else if(b(e))r=new u(e.data);else if(g(e)){var n=t?A(e.children):[],o=new m(e.name,i({},e.attribs),n);n.forEach(function(e){return e.parent=o}),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),r=o}else if(v(e)){n=t?A(e.children):[];var a=new h(n);n.forEach(function(e){return e.parent=a}),r=a}else if(w(e)){n=t?A(e.children):[];var s=new f(n);n.forEach(function(e){return e.parent=s}),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function A(e){for(var t=e.map(function(e){return C(e,!0)}),r=1;r{"use strict";var n=r(4994);t.Ay=function(e={}){const{themeId:t,defaultTheme:r=m,rootShouldForwardProp:n=f,slotShouldForwardProp:l=f}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:r,themeId:t}))}));return u.__mui_systemSx=!0,(e,c={})=>{(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:d,slot:h,skipVariantsResolver:m,skipSx:x,overridesResolver:w=y(g(h))}=c,C=(0,i.default)(c,p),A=void 0!==m?m:h&&"Root"!==h&&"root"!==h||!1,k=x||!1;let S=f;"Root"===h||"root"===h?S=n:h?S=l:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(S=void 0);const _=(0,a.default)(e,(0,o.default)({shouldForwardProp:S,label:void 0},C)),M=e=>"function"==typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?n=>b(e,(0,o.default)({},n,{theme:v({theme:n.theme,defaultTheme:r,themeId:t})})):e,j=(n,...i)=>{let a=M(n);const s=i?i.map(M):[];d&&w&&s.push(e=>{const n=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[d]||!n.components[d].styleOverrides)return null;const i=n.components[d].styleOverrides,a={};return Object.entries(i).forEach(([t,r])=>{a[t]=b(r,(0,o.default)({},e,{theme:n}))}),w(e,a)}),d&&!A&&s.push(e=>{var n;const i=v((0,o.default)({},e,{defaultTheme:r,themeId:t}));return b({variants:null==i||null==(n=i.components)||null==(n=n[d])?void 0:n.variants},(0,o.default)({},e,{theme:i}))}),k||s.push(u);const l=s.length-i.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=_(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return _.withConfig&&(j.withConfig=_.withConfig),j}};var o=n(r(4634)),i=n(r(4893)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(1032)),s=r(2454),l=(n(r(834)),n(r(9469)),n(r(8705))),c=n(r(9558));const u=["ownerState"],d=["variants"],p=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function f(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function y(e){return e?(t,r)=>r[e]:null}function b(e,t){let{ownerState:r}=t,n=(0,i.default)(t,u);const a="function"==typeof e?e((0,o.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(e=>b(e,(0,o.default)({ownerState:r},n)));if(a&&"object"==typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props((0,o.default)({ownerState:r},n,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,o.default)({ownerState:r},n,r)):e.style))}),t}return a}},7437:(e,t,r)=>{"use strict";r.d(t,{AH:()=>p,i7:()=>h,mL:()=>d});var n,o,i=r(4684),a=r(1609),s=r(41),l=r(1287),c=r(3174),u=(r(1568),r(4146),function(e,t){var r=arguments;if(null==t||!i.h.call(t,"css"))return a.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=i.E,o[1]=(0,i.c)(e,t);for(var s=2;s{e.exports={BorderRadiusSm:"4px",BorderRadiusMd:"8px",BorderRadiusLg:"16px",BorderRadiusCircle:"50%",BorderSizeSm:"1px",BorderSizeMd:"2px",BorderSizeLg:"4px",BorderStyleSolid:"solid",BorderStyleDashed:"dashed",BreakpointXs:0,BreakpointSm:600,BreakpointMd:900,BreakpointLg:1200,BreakpointXl:1536,ColorCommonBlack:"#000000",ColorCommonWhite:"#FFFFFF",ColorGrey50:"#f1f3f3",ColorGrey100:"#d5d8dc",ColorGrey200:"#babfc5",ColorGrey300:"#9da5ae",ColorGrey400:"#818a96",ColorGrey500:"#69727d",ColorGrey600:"#515962",ColorGrey700:"#3f444b",ColorGrey800:"#1f2124",ColorGrey900:"#0c0d0e",ColorPink50:"#fae8ff",ColorPink100:"#f5d0fe",ColorPink200:"#f3bafd",ColorPink300:"#f0abfc",ColorPink400:"#eb8efb",ColorPink500:"#e879f9",ColorPink600:"#e73cf6",ColorPink700:"#e315f5",ColorPink800:"#d004d4",ColorPink900:"#c00bb9",ColorRed50:"#fef2f2",ColorRed100:"#fee2e2",ColorRed200:"#fecaca",ColorRed300:"#fca5a5",ColorRed400:"#f87171",ColorRed500:"#ef4444",ColorRed600:"#dc2626",ColorRed700:"#b91c1c",ColorRed800:"#991b1b",ColorRed900:"#7f1d1d",ColorYellow50:"#fffbeb",ColorYellow100:"#fef6d7",ColorYellow200:"#fde68a",ColorYellow300:"#fcd34d",ColorYellow400:"#fbbf24",ColorYellow500:"#f59e0b",ColorYellow600:"#d97706",ColorYellow700:"#bb5b1d",ColorYellow800:"#b15211",ColorYellow900:"#92400e",ColorBlue50:"#eff6ff",ColorBlue100:"#dbeafe",ColorBlue200:"#bfdbfe",ColorBlue300:"#93c5fd",ColorBlue400:"#60a5fa",ColorBlue500:"#3b82f6",ColorBlue600:"#2563eb",ColorBlue700:"#1d4ed8",ColorBlue800:"#1e40af",ColorBlue900:"#1e3a8a",ColorGreen50:"#ecfdf5",ColorGreen100:"#d1fae5",ColorGreen200:"#a7f3d0",ColorGreen300:"#6ee7b7",ColorGreen400:"#34d399",ColorGreen500:"#10b981",ColorGreen600:"#0a875a",ColorGreen700:"#047857",ColorGreen800:"#065f46",ColorGreen900:"#064e3b",ColorCyan50:"#f0fdfa",ColorCyan100:"#ccfbf1",ColorCyan200:"#aff8ea",ColorCyan300:"#99f6e4",ColorCyan400:"#5eead4",ColorCyan500:"#2adfcd",ColorCyan600:"#1ec8bf",ColorCyan700:"#1cbab5",ColorCyan800:"#1aadad",ColorCyan900:"#17929b",ColorBurgundy50:"#fce3e8",ColorBurgundy100:"#f6b8c5",ColorBurgundy200:"#f08a9f",ColorBurgundy300:"#e85c7b",ColorBurgundy400:"#e03b60",ColorBurgundy500:"#d91c48",ColorBurgundy600:"#ca1746",ColorBurgundy700:"#b51243",ColorBurgundy800:"#93003f",ColorBurgundy900:"#7e013b",Sizing300:"24px",Sizing400:"32px",Sizing500:"40px",Sizing600:"48px",Sizing700:"56px",Sizing800:"64px",Sizing900:"72px",Spacing0:"0px",Spacing25:"2px",Spacing50:"4px",Spacing100:"8px",Spacing150:"12px",Spacing200:"16px",Spacing250:"20px",Spacing300:"24px",Spacing400:"32px",Spacing500:"40px",Spacing600:"48px",Spacing650:"56px",Spacing700:"64px",Spacing750:"80px",Spacing800:"96px",Spacing850:"120px",Spacing900:"160px",Spacing950:"176px",FontFamilyHeading:"'DM Sans', 'Roboto'",FontFamilySubtitle:"'DM Sans', 'Roboto'",FontFamilyText:"'DM Sans', 'Roboto'",FontFamilyButton:"'DM Sans', 'Roboto'",FontSize50:"9px",FontSize75:"10px",FontSize100:"12px",FontSize150:"14px",FontSize200:"16px",FontSize250:"18px",FontSize300:"20px",FontSize350:"22px",FontSize400:"24px",FontSize450:"28px",FontSize500:"32px",FontSize600:"36px",FontSize700:"48px",FontWeightHeading:"700",FontWeightSubtitle:"400",FontWeightText:"400",FontWeightButton:"400",LetterSpacingHeading:"0",LetterSpacingSubtitle:"0.02em",LetterSpacingText:"-0.01em",LetterSpacingButton:"-0.01em",LineHeightHeading:"1.3",LineHeightSubtitle:"1.5",LineHeightText:"1.5",LineHeightButton:"1.5"}},7503:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>l,getFunctionName:()=>i});var n=r(4559);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}}}},7601:(e,t,r)=>{"use strict";r.d(t,{A:()=>i}),r(1609);var n=r(7437),o=r(790);function i(e){const{styles:t,defaultTheme:r={}}=e,i="function"==typeof t?e=>{return t(null==(n=e)||0===Object.keys(n).length?r:e);var n}:t;return(0,o.jsx)(n.mL,{styles:i})}},7673:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(8587),o=r(8168);const i=["values","unit","step"],a=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)=>(0,o.A)({},e,{[t.key]:t.val}),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,l=(0,n.A)(e,i),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-s/100}${r})`}function h(e,n){const o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-s/100}${r})`}return(0,o.A)({keys:u,values:c,up:d,down:p,between:h,only:function(e){return u.indexOf(e)+1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,r,o){void 0===r&&(r=null);for(var l,c=[],u=0,d=t.length;u{"use strict";r.r(t),r.d(t,{default:()=>n.A});var n=r(9056)},7807:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var n=r(773),o=r(1566);function i(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 a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}const s=function(e){const{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,e=>{let o=a(u,l,e);return e===o&&"string"==typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,n.A)(e)}`,e)),!1===r?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},7946:(e,t,r)=>{"use strict";t.A=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(1609)),o=r(1032);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}t.A=function(e=null){const t=n.useContext(o.ThemeContext);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}},8168:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;tn})},8587:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},8705:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var n=r(6920),o=r(7673),i=r(851)},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(n,s))}},9056:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}},9222:(e,t,r)=>{"use strict";r.d(t,{A:()=>O});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"),v=c("borderRightColor"),y=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,v,y,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}),E=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};E.filterProps=["maxWidth"];const R=(0,o.Ay)({prop:"minWidth",transform:M}),L=(0,o.Ay)({prop:"height",transform:M}),I=(0,o.Ay)({prop:"maxHeight",transform:M}),P=(0,o.Ay)({prop:"minHeight",transform:M}),O=((0,o.Ay)({prop:"size",cssProperty:"width",transform:M}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:M}),a(j,E,R,L,I,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:E},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 v(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 y(t){var r=t.exec(e);if(r){var n=r[0];return h(n),e=e.slice(n.length),r}}function b(){y(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 v("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=y(o);if(r){if(w(),!y(i))return v("property missing ':'");var n=y(a),l=e({type:"declaration",property:u(r[0].replace(t,c)),value:n?u(n[0].replace(t,c)):c});return y(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(2850));o=n.O(o)})();PK
4hZ$T T = pojo-accessibility/assets/build/ea11y-scanner-admin.asset.php array(), 'version' => '8016648ec1531f5d4bb1');
PK
4hZ~ͺ 7 pojo-accessibility/assets/build/ea11y-scanner-admin.css#accessibility_status,.accessibility_status{width:265px}.accessibility_status.column-accessibility_status{vertical-align:middle}.accessibility_status.column-accessibility_status .accessibility_status_content{align-items:center;display:flex;gap:16px;justify-content:space-between;width:265px}.accessibility_status.column-accessibility_status .accessibility_status_content__stats{display:flex;flex-direction:column;flex-grow:3;gap:6px}.accessibility_status.column-accessibility_status .accessibility_status_content__summary{align-items:center;display:flex;font-size:12px;justify-content:space-between}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage{border-radius:12px;padding:2px 6px}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage.red{background-color:#fdecec;color:#9a1a1a}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage.orange{background-color:#fbf1e6;color:#823f14}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage.grey{background-color:#e2e3e5;color:#000}.accessibility_status.column-accessibility_status .accessibility_status_content__bar{background-color:#e2e3e5;border-radius:3px;height:6px;overflow:hidden}.accessibility_status.column-accessibility_status .accessibility_status_content__bar-fill{background-color:#555;height:100%;transition:width .3s ease}.accessibility_status.column-accessibility_status .accessibility_status_content__actions .button{text-align:center;width:112px}PK
4hZ 6 pojo-accessibility/assets/build/ea11y-scanner-admin.jsPK
4hZ~ͺ ; pojo-accessibility/assets/build/ea11y-scanner-admin-rtl.css#accessibility_status,.accessibility_status{width:265px}.accessibility_status.column-accessibility_status{vertical-align:middle}.accessibility_status.column-accessibility_status .accessibility_status_content{align-items:center;display:flex;gap:16px;justify-content:space-between;width:265px}.accessibility_status.column-accessibility_status .accessibility_status_content__stats{display:flex;flex-direction:column;flex-grow:3;gap:6px}.accessibility_status.column-accessibility_status .accessibility_status_content__summary{align-items:center;display:flex;font-size:12px;justify-content:space-between}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage{border-radius:12px;padding:2px 6px}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage.red{background-color:#fdecec;color:#9a1a1a}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage.orange{background-color:#fbf1e6;color:#823f14}.accessibility_status.column-accessibility_status .accessibility_status_content__percentage.grey{background-color:#e2e3e5;color:#000}.accessibility_status.column-accessibility_status .accessibility_status_content__bar{background-color:#e2e3e5;border-radius:3px;height:6px;overflow:hidden}.accessibility_status.column-accessibility_status .accessibility_status_content__bar-fill{background-color:#555;height:100%;transition:width .3s ease}.accessibility_status.column-accessibility_status .accessibility_status_content__actions .button{text-align:center;width:112px}PK
4hZt>T T > pojo-accessibility/assets/build/ea11y-scanner-wizard.asset.php array(), 'version' => '03058c76b7d585ffbbf5');
PK
4hZuWO O 8 pojo-accessibility/assets/build/ea11y-scanner-wizard.css#wpadminbar #wp-admin-bar-ea11y-scanner-wizard a{align-items:center;display:flex;gap:6px}.ea11y-scanner-current-element{border:4px solid #2563eb;border-radius:4px}#ea11y-scanner-wizard-widget{display:flex;height:100vh;justify-content:flex-end;left:0;overflow-x:visible;overflow-y:scroll;position:fixed;top:0;width:100vw;z-index:999999}PK
4hZ 7 pojo-accessibility/assets/build/ea11y-scanner-wizard.jsPK
4hZP P <