(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[474],{72524(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),r||(r=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM16.8059 9.592L17.3979 8.78606L15.7861 7.60206L15.1941 8.408L11.3039 13.704C11.1378 13.9302 10.944 14 10.7919 14C10.6399 14 10.4461 13.9302 10.28 13.704L8.80594 11.6973L8.21394 10.8914L6.60206 12.0754L7.19406 12.8813L8.66808 14.888C9.19137 15.6004 9.9708 16 10.7919 16C11.6131 16 12.3925 15.6005 12.9158 14.888L16.8059 9.592Z",clipRule:"evenodd"})))},39017(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 8"},e),r||(r=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.6.6L12 2 6 8 0 2 1.4.6 6 5.2z"})))},54399(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),r||(r=n.createElement("path",{d:"M5 21C4.45 21 3.975 20.8083 3.575 20.425C3.19167 20.025 3 19.55 3 19V5C3 4.45 3.19167 3.98333 3.575 3.6C3.975 3.2 4.45 3 5 3H12V5H5V19H19V12H21V19C21 19.55 20.8 20.025 20.4 20.425C20.0167 20.8083 19.55 21 19 21H5ZM9.7 15.7L8.3 14.3L17.6 5H14V3H21V10H19V6.4L9.7 15.7Z"})))},84543(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 23 22"},e),r||(r=n.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.5 22C9.97833 22 8.54833 21.7158 7.21 21.1475C5.87167 20.5608 4.7075 19.7725 3.7175 18.7825C2.7275 17.7925 1.93917 16.6283 1.3525 15.29C0.784167 13.9517 0.5 12.5217 0.5 11C0.5 9.47833 0.784167 8.04833 1.3525 6.71C1.93917 5.37167 2.7275 4.2075 3.7175 3.2175C4.7075 2.2275 5.87167 1.44833 7.21 0.879999C8.54833 0.293333 9.97833 0 11.5 0C13.0217 0 14.4517 0.293333 15.79 0.879999C17.1283 1.44833 18.2925 2.2275 19.2825 3.2175C20.2725 4.2075 21.0517 5.37167 21.62 6.71C22.2067 8.04833 22.5 9.47833 22.5 11C22.5 12.5217 22.2067 13.9517 21.62 15.29C21.0517 16.6283 20.2725 17.7925 19.2825 18.7825C18.2925 19.7725 17.1283 20.5608 15.79 21.1475C14.4517 21.7158 13.0217 22 11.5 22ZM11.5004 7.7C11.8121 7.7 12.0687 7.59917 12.2704 7.3975C12.4904 7.1775 12.6004 6.91167 12.6004 6.6C12.6004 6.28833 12.4904 6.03167 12.2704 5.83C12.0687 5.61 11.8121 5.5 11.5004 5.5C11.1887 5.5 10.9229 5.61 10.7029 5.83C10.5012 6.03167 10.4004 6.28833 10.4004 6.6C10.4004 6.91167 10.5012 7.1775 10.7029 7.3975C10.9229 7.59917 11.1887 7.7 11.5004 7.7ZM10.4004 16.5V9.9H12.6004V16.5H10.4004Z",clipRule:"evenodd"})))},49500(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r,n=i(63696);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),r||(r=n.createElement("path",{fill:"currentColor",d:"M5.825 22L8.15 14.4L2 10H9.6L12 2L14.4 10H22L15.85 14.4L18.175 22L12 17.3L5.825 22Z"})))},62925(e,t,i){"use strict";i.d(t,{A:()=>d});var r,n=i(4452),o=i.n(n),s=i(49383),a=i(63696);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),r||(r=a.createElement("path",{fill:"currentColor",d:"M7.33398 11.333H8.66732V7.33301H7.33398V11.333ZM8.00065 5.99967C8.18954 5.99967 8.3451 5.93856 8.46732 5.81634C8.60065 5.68301 8.66732 5.5219 8.66732 5.33301C8.66732 5.14412 8.60065 4.98856 8.46732 4.86634C8.3451 4.73301 8.18954 4.66634 8.00065 4.66634C7.81176 4.66634 7.65065 4.73301 7.51732 4.86634C7.3951 4.98856 7.33398 5.14412 7.33398 5.33301C7.33398 5.5219 7.3951 5.68301 7.51732 5.81634C7.65065 5.93856 7.81176 5.99967 8.00065 5.99967ZM8.00065 14.6663C7.07843 14.6663 6.21176 14.4941 5.40065 14.1497C4.58954 13.7941 3.88398 13.3163 3.28398 12.7163C2.68398 12.1163 2.20621 11.4108 1.85065 10.5997C1.50621 9.78856 1.33398 8.9219 1.33398 7.99967C1.33398 7.07745 1.50621 6.21078 1.85065 5.39967C2.20621 4.58856 2.68398 3.88301 3.28398 3.28301C3.88398 2.68301 4.58954 2.21078 5.40065 1.86634C6.21176 1.51079 7.07843 1.33301 8.00065 1.33301C8.92287 1.33301 9.78954 1.51079 10.6007 1.86634C11.4118 2.21078 12.1173 2.68301 12.7173 3.28301C13.3173 3.88301 13.7895 4.58856 14.134 5.39967C14.4895 6.21078 14.6673 7.07745 14.6673 7.99967C14.6673 8.9219 14.4895 9.78856 14.134 10.5997C13.7895 11.4108 13.3173 12.1163 12.7173 12.7163C12.1173 13.3163 11.4118 13.7941 10.6007 14.1497C9.78954 14.4941 8.92287 14.6663 8.00065 14.6663ZM8.00065 13.333C9.48954 13.333 10.7507 12.8163 11.784 11.783C12.8173 10.7497 13.334 9.48856 13.334 7.99967C13.334 6.51079 12.8173 5.24967 11.784 4.21634C10.7507 3.18301 9.48954 2.66634 8.00065 2.66634C6.51176 2.66634 5.25065 3.18301 4.21732 4.21634C3.18398 5.24967 2.66732 6.51079 2.66732 7.99967C2.66732 9.48856 3.18398 10.7497 4.21732 11.783C5.25065 12.8163 6.51176 13.333 8.00065 13.333Z"})));var g=i(97015);const d=({onOpen:e,title:t,tooltipClassName:i})=>t?g.createElement(s.Tooltip,{className:"googlesitekit-info-tooltip",tooltipClassName:o()("googlesitekit-info-tooltip__content",i),title:t,placement:"top",enterTouchDelay:0,leaveTouchDelay:5e3,onOpen:e,interactive:!0},g.createElement("span",{tabIndex:0,role:"tooltip"},g.createElement(c,{width:"16",height:"16"}))):null},12187(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r=i(4452),n=i.n(r),o=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({as:e="p",className:t,children:i})=>{const r=e;return o.createElement(r,{className:n()("googlesitekit-notice__description",t)},i)}},57814(e,t,i){"use strict";i.d(t,{L:()=>r});let r=function(e){return e.NEW="new",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.INFO_CIRCLE="info-circle",e.INFO_ALT="info-alt",e.INFO_ALT_2="info-alt-2",e.ERROR="error",e}({})},56848(e,t,i){"use strict";i.d(t,{A:()=>R});var r=i(4452),n=i.n(r),o=i(63696),s=i(57814),a=i(62688),l=i.n(a),c=i(49383),g=i(54399),d=i(62540);function CTAButton({label:e,disabled:t,inProgress:i,onClick:r,href:o,external:s=!1,hideExternalIndicator:a=!1,tertiary:l=!1}){let u;return s&&!a&&(u=(0,d.jsx)(g.A,{width:14,height:14})),(0,d.jsx)(c.SpinnerButton,{className:n()("googlesitekit-notice__cta",{"googlesitekit-notice__cta--spinner__running":i}),disabled:t,isSaving:i,onClick:r,href:o,target:s?"_blank":void 0,trailingIcon:u,tertiary:l,children:e})}CTAButton.propTypes={label:l().string.isRequired,disabled:l().bool,inProgress:l().bool,onClick:l().func,href:l().string,external:l().bool,hideExternalIndicator:l().bool,tertiary:l().bool};var u=i(12187),p=i(82871),m=i(97015);const Notice_DismissButton=({label:e=(0,p.__)("Got it","google-site-kit"),onClick:t,disabled:i,href:r,external:o=!1,variant:s="text",icon:a,ariaLabel:l})=>m.createElement(c.Button,{className:n()({"googlesitekit-notice__dismiss":"icon"===s,"googlesitekit-notice__dismiss--icon":"icon"===s}),onClick:t,disabled:i,href:r,target:o?"_blank":void 0,tertiary:"icon"!==s,icon:"icon"===s?a:void 0,"aria-label":"icon"===s?l:void 0,hideTooltipTitle:"icon"===s},"icon"!==s?e:void 0);var h,f=i(72524),_=i(84543),b=i(49500);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",y({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),h||(h=o.createElement("path",{fill:"currentColor",d:"M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM12 15C11.1716 15 10.5 15.6716 10.5 16.5C10.5 17.3284 11.1716 18 12 18C12.8284 18 13.5 17.3284 13.5 16.5C13.5 15.6716 12.8284 15 12 15ZM11 13H13V6H11V13Z"}))),v={[s.L.NEW]:b.A,[s.L.SUCCESS]:f.A,[s.L.INFO]:warning_notice,[s.L.INFO_CIRCLE]:_.A,[s.L.WARNING]:warning_notice,[s.L.ERROR]:warning_notice};function Icon({type:e}){const t=v[e]||warning_notice;return(0,d.jsx)(t,{width:24,height:24})}Icon.propTypes={type:l().oneOf(Object.values(s.L))};var k=i(97015);const Notice_Title=({className:e,children:t})=>k.createElement("p",{className:n()("googlesitekit-notice__title",e)},t);var A=i(97015);const R=(0,o.forwardRef)(({actionContent:e,className:t,title:i,description:r,dismissButton:o,ctaButton:a,type:l=s.L.INFO,children:c,hideIcon:g},d)=>{const p=function(e){return"icon"===e?.variant?!!e.icon&&!!e.ariaLabel&&(e.onClick||e.href):!!e?.label||!!e?.onClick||!!e?.href}(o),m=!!a?.label&&(a?.onClick||a?.href),h=!!e||p||m;return A.createElement("div",{className:"googlesitekit-notice-container",ref:d},A.createElement("div",{className:n()("googlesitekit-notice",`googlesitekit-notice--${l}`,t),role:"status"},!g&&A.createElement("div",{className:"googlesitekit-notice__icon"},A.createElement(Icon,{type:l})),A.createElement("div",{className:"googlesitekit-notice__content"},i&&A.createElement(Notice_Title,null,i),r&&A.createElement(u.A,null,r),c),h&&A.createElement("div",{className:"googlesitekit-notice__action"},e,p&&A.createElement(Notice_DismissButton,o||{}),m&&A.createElement(CTAButton,{label:a.label,onClick:a.onClick,inProgress:a.inProgress,disabled:a.disabled,href:a.href,external:a.external,hideExternalIndicator:a.hideExternalIndicator,tertiary:a.tertiary}))))})},57349(e,t,i){"use strict";i.d(t,{QM:()=>n,RR:()=>o,bM:()=>c,mP:()=>l});var r=i(9397);const n=612,o=24,s=(n-2*o)/1133,a=new Set(["fontSize","letterSpacing","margin","marginHorizontal","marginVertical","marginTop","marginRight","marginBottom","marginLeft","padding","paddingHorizontal","paddingVertical","paddingTop","paddingRight","paddingBottom","paddingLeft","width","height","minWidth","maxWidth","minHeight","maxHeight","top","right","bottom","left","gap","rowGap","columnGap","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","flexBasis"]);function l(e){return e*s}function c(e){const t={};for(const[i,r]of Object.entries(e)){const e={};for(const[t,i]of Object.entries(r))e[t]=a.has(t)&&"number"==typeof i?i*s:i;t[i]=e}return r.vv.create(t)}},37254(e,t,i){"use strict";i.d(t,{L8:()=>a,QS:()=>s,T8:()=>c,Vu:()=>n,yp:()=>o});var r=i(57349);const n="GoogleSansDisplay",o="GoogleSansText",s={SURFACES_ON_SURFACE:"#161b18",SURFACES_ON_SURFACE_VARIANT:"#6c726e",CONTENT_SECONDARY:"#108080",SURFACES_SURFACE_1:"#ebeef0",SURFACES_BACKGROUND:"#f3f5f7",SURFACES_SURFACE:"#ffffff",GREEN_G_50:"#d8ffc0",UTILITY_ON_SUCCESS_CONTAINER:"#1f4c04",UTILITY_ERROR_CONTAINER:"#ffded3",UTILITY_ON_ERROR_CONTAINER:"#7a1e00",VIOLET_V_50:"#e3d1ff",VIOLET_V_600:"#462083",YELLOW_Y_50:"#ffe4b1",YELLOW_Y_500:"#895a00",BLUE_B_400:"#6380b8",TEAL_T_300:"#4bbbbb",SITE_KIT_SK_500:"#3c7251",VIOLET_V_300:"#8e68cb",YELLOW_Y_100:"#fece72",VIOLET_V_200:"#a983e6",BLUE_B_100:"#bed4ff",PINK_P_200:"#ee92da",RED_R_200:"#ff9b7a"},a=[s.YELLOW_Y_100,s.VIOLET_V_200,s.BLUE_B_100,s.PINK_P_200,s.RED_R_200],l={display:{small:{fontFamily:n,fontSize:38,fontWeight:400,letterSpacing:0,lineHeight:1.158},medium:{fontFamily:n,fontSize:46,fontWeight:400,letterSpacing:0,lineHeight:1.13},large:{fontFamily:n,fontSize:58,fontWeight:400,letterSpacing:-.25,lineHeight:1.1}},headline:{small:{fontFamily:n,fontSize:22,fontWeight:400,letterSpacing:0,lineHeight:1.27},medium:{fontFamily:n,fontSize:28,fontWeight:400,letterSpacing:0,lineHeight:1.286},large:{fontFamily:n,fontSize:32,fontWeight:400,letterSpacing:0,lineHeight:1.25}},title:{small:{fontFamily:o,fontSize:14,fontWeight:500,letterSpacing:-.1,lineHeight:1.14},medium:{fontFamily:o,fontSize:16,fontWeight:500,letterSpacing:.1,lineHeight:1.25},large:{fontFamily:o,fontSize:18,fontWeight:500,letterSpacing:0,lineHeight:1.33}},body:{small:{fontFamily:o,fontSize:12,fontWeight:400,letterSpacing:.2,lineHeight:1.33},medium:{fontFamily:o,fontSize:14,fontWeight:400,letterSpacing:.25,lineHeight:1.43},large:{fontFamily:o,fontSize:16,fontWeight:400,letterSpacing:.5,lineHeight:1.5}},label:{small:{fontFamily:o,fontSize:12,fontWeight:500,letterSpacing:.2,lineHeight:1.33},medium:{fontFamily:o,fontSize:14,fontWeight:500,letterSpacing:0,lineHeight:1.43},large:{fontFamily:o,fontSize:16,fontWeight:500,letterSpacing:0,lineHeight:1.5}}},c={display:(0,r.bM)(l.display),headline:(0,r.bM)(l.headline),title:(0,r.bM)(l.title),body:(0,r.bM)(l.body),label:(0,r.bM)(l.label)}},89184(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r=i(9397),n=i(57349),o=i(37254),s=i(97015);const a=(0,n.bM)({card:{backgroundColor:o.QS.SURFACES_SURFACE,borderRadius:16,paddingVertical:18,paddingHorizontal:24}}),__WEBPACK_DEFAULT_EXPORT__=({style:e,children:t})=>{const i=[a.card];return s.createElement(r.Ss,{style:e?i.concat(e):a.card},t)}},7465(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r=i(9397),n=i(37254),o=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({type:e="body",size:t="medium",style:i,children:s})=>{const a=[n.T8[e][t],{color:n.QS.SURFACES_ON_SURFACE}];return o.createElement(r.EY,{style:i?a.concat(i):a},s)}},23334(e,t,i){"use strict";var r,n,o,s,a,l,c,g,d,u,p,m,h,f=i(50539),_=i.n(f),b=i(13620),y=i.n(b),v=i(46935),k=i.n(v),A=i(88176),R=i.n(A),E=i(82871),S=i(63696);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;tS.createElement("svg",w({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 183.95 158.81"},e),r||(r=S.createElement("defs",null,S.createElement("radialGradient",{id:"pagespeed-insights_svg__b",cx:1360.51,cy:10958.05,r:458.83,gradientTransform:"matrix(.5 0 0 .5 -675.69 -5476.24)",gradientUnits:"userSpaceOnUse"},S.createElement("stop",{offset:0,stopColor:"#fff",stopOpacity:.1}),S.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),S.createElement("linearGradient",{id:"pagespeed-insights_svg__a",x1:1572.36,x2:1691.74,y1:11164.11,y2:11283.49,gradientTransform:"matrix(.5 0 0 .5 -675.69 -5476.24)",gradientUnits:"userSpaceOnUse"},S.createElement("stop",{offset:0,stopColor:"#212121",stopOpacity:.2}),S.createElement("stop",{offset:1,stopColor:"#212121",stopOpacity:0})))),n||(n=S.createElement("path",{fill:"#e1e1e1",d:"M183.93 25.08v121.19a12.53 12.53 0 01-12.54 12.54H12.58A12.53 12.53 0 010 146.27V25.08z"})),o||(o=S.createElement("path",{fill:"#c2c2c2",d:"M12.58 0h158.81a12.53 12.53 0 0112.54 12.54v12.54H0V12.54A12.53 12.53 0 0112.58 0z"})),s||(s=S.createElement("path",{fill:"#fff",fillOpacity:.2,d:"M171.39 0H12.58A12.57 12.57 0 000 12.54v1A12.58 12.58 0 0112.58 1h158.81a12.59 12.59 0 0112.54 12.54v-1A12.58 12.58 0 00171.39 0z"})),a||(a=S.createElement("path",{fill:"#212121",fillOpacity:.1,d:"M0 25.08h183.93v1H0z"})),l||(l=S.createElement("path",{fill:"#4285f4",d:"M91.91 62.69a66.76 66.76 0 00-66.76 66.86c0 1.4-.09 3.14 0 4.18h29.13a36.26 36.26 0 010-4.18 37.64 37.64 0 0157.36-32l21-21a66.62 66.62 0 00-40.73-13.86z"})),c||(c=S.createElement("path",{fill:"#f44336",d:"M132.64 76.52l-21 21a37.59 37.59 0 0117.9 32 36.26 36.26 0 010 4.18h29.27c.08-1 0-2.78 0-4.18a66.73 66.73 0 00-26.17-53z"})),g||(g=S.createElement("circle",{cx:16.76,cy:12.54,r:4.18,fill:"#eee"})),d||(d=S.createElement("circle",{cx:33.48,cy:12.54,r:4.18,fill:"#eee"})),u||(u=S.createElement("path",{fill:"#212121",fillOpacity:.1,d:"M171.41 157.76H12.54A12.57 12.57 0 010 145.23v1a12.57 12.57 0 0012.54 12.54h158.87a12.58 12.58 0 0012.59-12.5v-1a12.58 12.58 0 01-12.54 12.53z"})),p||(p=S.createElement("path",{fill:"#9e9e9e",d:"M132.86 79.06a2.06 2.06 0 00.39-1.22 2.1 2.1 0 00-2.09-2.09 2 2 0 00-1.28.46l-45.57 35.07a12.53 12.53 0 1018.37 16.41l30.17-48.65z"})),S.createElement("path",{fill:"#fff",d:"M84.31 112.33l45.57-35.09a2.06 2.06 0 011.28-.46 2.09 2.09 0 012 1.55 2 2 0 00-2-2.59 2 2 0 00-1.28.46l-45.57 35.07a12.5 12.5 0 00-4.87 9.92v.56a12.49 12.49 0 014.87-9.42z",opacity:.2,style:{isolation:"isolate"}}),S.createElement("path",{fill:"#212121",d:"M132.86 79.06l-30.17 48.65a12.51 12.51 0 01-23.21-5.93v.48a12.52 12.52 0 0023.24 6.5l30.14-48.66a2 2 0 00.39-1.22 1.91 1.91 0 00-.08-.54 2.31 2.31 0 01-.31.72z",opacity:.2,style:{isolation:"isolate"}}),m||(m=S.createElement("path",{fill:"url(#pagespeed-insights_svg__a)",d:"M132.82 76.58a2 2 0 01.43 1.26 2.06 2.06 0 01-.39 1.22l-30.17 48.65a12.53 12.53 0 01-18.84 3.05l28.08 28.07h59.47a12.53 12.53 0 0012.54-12.54v-18.61z"})),h||(h=S.createElement("path",{fill:"url(#pagespeed-insights_svg__b)",d:"M183.93 12.54A12.53 12.53 0 00171.39 0H12.58A12.53 12.53 0 000 12.54v133.73a12.53 12.53 0 0012.54 12.54h158.85a12.53 12.53 0 0012.54-12.54z"}))),N="modules/pagespeed-insights",C="mobile",T="desktop",L="data_lab",O="data_field",I="data_recommendations",j="dashboardPageSpeedWidgetStrategy",M="dashboardPageSpeedWidgetDataSource";var D=i(75865),H=i(62540);function SettingsView(){const e=(0,f.useSelect)(e=>e(N).getAdminScreenURL()),t=(0,E.sprintf)(/* translators: %s: is the URL to the Site Kit dashboard. */ /* translators: %s: is the URL to the Site Kit dashboard. */
(0,E.__)('To view insights, visit the dashboard',"google-site-kit"),`${e}#speed`);return(0,H.jsx)("p",{dangerouslySetInnerHTML:(0,D.p9)(t,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})})}const P="pagespeed-insights",F=y().createModuleStore(P,{storeName:N,requiresSetup:!1,settingSlugs:["ownerID"]});var B=i(32091),U=i.n(B),V=i(84024),$=i(54419);const W=(0,i(12205).U)({baseName:"getReport",controlCallback:({strategy:e,url:t},{signal:i}={})=>(0,$.get)("modules",P,"pagespeed",{strategy:e,url:t},{signal:i}),reducerCallback:(0,f.createReducer)((e,t,{strategy:i,url:r})=>{e.reports=e.reports||{},e.reports[`${i}::${r}`]=t}),argsToParams:(e,t)=>({strategy:t,url:e}),validateParams:({strategy:e,url:t}={})=>{U()((0,V.m)(t),"a valid url is required to fetch a report."),U()("string"==typeof e,"a valid strategy is required to fetch a report.")}}),z={*getReport(e,t,i){e&&t&&(yield W.actions.fetchGetReport(e,t,i))}},Y={getReport(e,t,i,r){const{reports:n}=e;return n[`${i}::${t}`]},getAudits:(0,f.createRegistrySelector)(e=>(t,i,r)=>{const n=e(N).getReport(i,r);if(void 0===n)return;const{lighthouseResult:o}=n||{},{audits:s}=o||{};return s||{}}),getAuditsWithStackPack:(0,f.createRegistrySelector)(e=>(t,i,r,n)=>{const o=e(N).getAudits(i,r);if(!o)return{};const s={};return Object.keys(o).forEach(t=>{e(N).getStackPackDescription(i,r,t,n)&&(s[t]=o[t])}),s}),getStackPackDescription:(0,f.createRegistrySelector)(e=>(t,i,r,n,o)=>{const s=e(N).getReport(i,r);if(void 0===s)return;const{lighthouseResult:a}=s||{},{stackPacks:l}=a||[];if(!Array.isArray(l))return null;const c=l.find(({id:e,descriptions:t})=>e===o&&!!t[n]);return c?{id:c.id,icon:c.iconDataURL,title:c.title,description:c.descriptions[n]}:null})},q=(0,f.combineStores)(W,{initialState:{reports:{}},resolvers:z,selectors:Y}),G=(q.initialState,q.actions,q.controls,q.reducer,q.resolvers,q.selectors,q);var Z=i(51568);const K={selectors:{getServiceURL:(e,{path:t,query:i}={})=>{let r="https://pagespeed.web.dev";if(t){r=`${r}${t.match(/^\//)?t:`/${t}`}`}return(0,Z.F)(r,{...i,utm_source:"sitekit"})}}},Q=(0,f.combineStores)(F,G,K);var J=i(5205),X=i(4452),ee=i.n(X),te=i(63560),ie=i(49383),re=i(55258),ne=i(20295),oe=i(32200),se=i(39494),ae=i(62688),le=i.n(ae),ce=i(13606),ge=i(97269),de=i(14232),ue=i(17417),pe=i(13057);const me="fast",he="average",fe="slow";var _e=i(59376),be=i(22994);function INPLearnMoreLink(){return(0,H.jsx)(be.A,{href:"https://web.dev/inp-cwv/","aria-label":(0,E.__)("Learn more about INP replacing FID.","google-site-kit"),external:!0,children:(0,E.__)("Learn more","google-site-kit")})}function MetricsLearnMoreLink(){return(0,H.jsx)(be.A,{href:"https://web.dev/user-centric-performance-metrics/#how-metrics-are-measured","aria-label":(0,E.__)("Learn more how metrics are measured.","google-site-kit"),external:!0,children:(0,E.__)("Learn more","google-site-kit")})}var ye=i(56804),ve=i(62925);function ReportMetric({title:e,description:t,displayValue:i,category:r,experimental:n,isLast:o,isHidden:s,isUnavailable:a,hintText:l}){return r=r?.toLowerCase(),(0,H.jsxs)("tr",{className:ee()("googlesitekit-pagespeed-report__row","googlesitekit-pagespeed-report-metric",{"googlesitekit-pagespeed-report__row--last":o,"googlesitekit-pagespeed-report__row--hidden":s,"googlesitekit-pagespeed-report__row--unavailable":a}),children:[(0,H.jsxs)("td",{children:[(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-report-metric__title",children:[e,!!n&&(0,H.jsx)(ye.A,{label:(0,E.__)("Experimental","google-site-kit"),className:"googlesitekit-pagespeed-report-metric__badge"}),a&&(0,H.jsx)(ve.A,{title:(0,E.__)("Field data is still being gathered for this metric and will become available once your site gets sufficient traffic","google-site-kit")})]}),(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report-metric__description",children:t}),l&&(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report-metric__hint-text",children:l})]}),(0,H.jsx)("td",{className:ee()("googlesitekit-pagespeed-report-metric-value",{[`googlesitekit-pagespeed-report-metric--${r}`]:!!r}),children:(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-report-metric-value-container",children:[(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report-metric-value__display-value",children:a?"—":i}),(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-report-metric-value__rating",children:[a&&(0,H.jsx)("span",{children:(0,E.__)("gathering data","google-site-kit")}),!a&&r===me&&(0,H.jsx)("span",{children:(0,E._x)("Good","Performance rating","google-site-kit")}),!a&&r===he&&(0,H.jsx)("span",{children:(0,E._x)("Needs improvement","Performance rating","google-site-kit")}),!a&&r===fe&&(0,H.jsx)("span",{children:(0,E._x)("Poor","Performance rating","google-site-kit")})]})]})})]})}function ke(e){return.9<=e?me:.5<=e?he:fe}function Ae(e){const t=e?.lighthouseResult?.audits,i=t?.["largest-contentful-paint"],r=t?.["cumulative-layout-shift"],n=t?.["total-blocking-time"];return{largestContentfulPaint:{displayValue:i?.displayValue??"0",score:i?.score??0,category:ke(i?.score??0)},cumulativeLayoutShift:{displayValue:r?.displayValue??"0",score:r?.score??0,category:ke(r?.score??0)},totalBlockingTime:{displayValue:n?.displayValue??"0",score:n?.score??0,category:ke(n?.score??0)}}}function Re(e){const t=e?.loadingExperience?.metrics;if(!t)return null;const i=t.LARGEST_CONTENTFUL_PAINT_MS,r=t.CUMULATIVE_LAYOUT_SHIFT_SCORE,n=t.INTERACTION_TO_NEXT_PAINT;return{largestContentfulPaint:i?{displayValue:(0,E.sprintf)(/* translators: %s: number of seconds */ /* translators: %s: number of seconds */
(0,E._x)("%s s","duration","google-site-kit"),(Math.round(i.percentile/100)/10).toFixed(1)),category:i.category?.toLowerCase()??""}:null,cumulativeLayoutShift:r?{displayValue:(r.percentile/100).toFixed(2),category:r.category?.toLowerCase()??""}:null,interactionToNextPaint:n?{displayValue:(0,E.sprintf)(/* translators: %s: number of milliseconds */ /* translators: %s: number of milliseconds */
(0,E._x)("%s ms","duration","google-site-kit"),String(n.percentile)),category:n.category?.toLowerCase()??""}:null}}function FieldReportMetrics({data:e,error:t}){const{INTERACTION_TO_NEXT_PAINT:i}=e?.loadingExperience?.metrics||{},r=Re(e),n=r?.largestContentfulPaint,o=r?.cumulativeLayoutShift;if(t){const e=(0,_e.e4)(t);return(0,H.jsx)("div",{className:"googlesitekit-pagespeed-insights-web-vitals-metrics",children:(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-report__row googlesitekit-pagespeed-report__row--error",children:[(0,H.jsx)(ge.A,{message:e}),(0,H.jsx)(de.A,{moduleSlug:"pagespeed-insights",error:t})]})})}return n||o||i?(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-insights-web-vitals-metrics",children:[(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report__row googlesitekit-pagespeed-report__row--first",children:(0,H.jsx)(pe.A,{children:(0,ce.A)((0,E.__)("Field data shows how real users actually loaded and interacted with your page over time. ","google-site-kit"),{LearnMoreLink:(0,H.jsx)(MetricsLearnMoreLink,{})})})}),(0,H.jsxs)("table",{className:ee()("googlesitekit-table","googlesitekit-table--with-list"),children:[(0,H.jsx)("thead",{children:(0,H.jsxs)("tr",{children:[(0,H.jsx)("th",{children:(0,E.__)("Metric Name","google-site-kit")}),(0,H.jsx)("th",{children:(0,E.__)("Metric Value","google-site-kit")})]})}),(0,H.jsxs)("tbody",{children:[(0,H.jsx)(ReportMetric,{title:(0,E._x)("Largest Contentful Paint","core web vitals name","google-site-kit"),description:(0,E.__)("Time it takes for the page to load","google-site-kit"),displayValue:n?.displayValue,category:n?.category,isUnavailable:!n}),(0,H.jsx)(ReportMetric,{title:(0,E._x)("Cumulative Layout Shift","core web vitals name","google-site-kit"),description:(0,E.__)("How stable the elements on the page are","google-site-kit"),displayValue:o?.displayValue,category:o?.category,isUnavailable:!o}),(0,H.jsx)(ReportMetric,{title:(0,E._x)("Interaction to Next Paint","core web vitals name","google-site-kit"),description:(0,E.__)("How quickly your page responds when people interact with it","google-site-kit"),displayValue:(0,E.sprintf)(/* translators: %s: number of milliseconds */ /* translators: %s: number of milliseconds */
(0,E._x)("%s ms","duration","google-site-kit"),i?.percentile),category:i?.category||he,isUnavailable:!i,hintText:(0,ce.A)((0,E.__)("INP is a new Core Web Vital that replaced FID in March 2024. ","google-site-kit"),{LearnMoreLink:(0,H.jsx)(INPLearnMoreLink,{})}),isLast:!0})]})]})]}):(0,H.jsx)("div",{className:"googlesitekit-pagespeed-insights-web-vitals-metrics googlesitekit-pagespeed-insights-web-vitals-metrics--field-data-unavailable",children:(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-insights-web-vitals-metrics__field-data-unavailable-content",children:[(0,H.jsx)(ue.A,{as:"h3",type:"headline",size:"small",children:(0,E.__)("Field data unavailable","google-site-kit")}),(0,H.jsx)(pe.A,{children:(0,E.__)("Field data shows how real users actually loaded and interacted with your page. We don’t have enough real-world experience and speed data for this page. It may be new, or not enough users with Chrome browsers have visited it yet.","google-site-kit")})]})})}function LabReportMetrics({data:e,error:t}){const{largestContentfulPaint:i,cumulativeLayoutShift:r,totalBlockingTime:n}=Ae(e);if(t){const e=(0,_e.e4)(t);return(0,H.jsx)("div",{className:"googlesitekit-pagespeed-insights-web-vitals-metrics",children:(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-report__row googlesitekit-pagespeed-report__row--error",children:[(0,H.jsx)(ge.A,{error:t,message:e,hasButton:!0}),(0,H.jsx)(de.A,{moduleSlug:"pagespeed-insights",error:t})]})})}return(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-insights-web-vitals-metrics",children:[(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report__row googlesitekit-pagespeed-report__row--first",children:(0,H.jsx)(pe.A,{children:(0,ce.A)((0,E.__)("Lab data is a snapshot of how your page performs right now, measured in tests we run in a controlled environment. ","google-site-kit"),{LearnMoreLink:(0,H.jsx)(MetricsLearnMoreLink,{})})})}),(0,H.jsxs)("table",{className:"googlesitekit-table googlesitekit-table--with-list",children:[(0,H.jsx)("thead",{children:(0,H.jsxs)("tr",{children:[(0,H.jsx)("th",{children:(0,E.__)("Metric Name","google-site-kit")}),(0,H.jsx)("th",{children:(0,E.__)("Metric Value","google-site-kit")})]})}),(0,H.jsxs)("tbody",{children:[(0,H.jsx)(ReportMetric,{title:(0,E._x)("Largest Contentful Paint","core web vitals name","google-site-kit"),description:(0,E.__)("Time it takes for the page to load","google-site-kit"),displayValue:i.displayValue,category:i.category}),(0,H.jsx)(ReportMetric,{title:(0,E._x)("Cumulative Layout Shift","core web vitals name","google-site-kit"),description:(0,E.__)("How stable the elements on the page are","google-site-kit"),displayValue:r.displayValue,category:r.category}),(0,H.jsx)(ReportMetric,{title:(0,E.__)("Total Blocking Time","google-site-kit"),description:(0,E.__)("How long people had to wait after the page loaded before they could click something","google-site-kit"),displayValue:n.displayValue,category:n.category,hintText:(0,H.jsx)("br",{}),isLast:!0})]})]})]})}ReportMetric.propTypes={title:le().string.isRequired,description:le().string.isRequired,displayValue:le().string.isRequired,category:le().string,experimental:le().bool,isLast:le().bool,isHidden:le().bool,hintText:le().node},FieldReportMetrics.propTypes={data:le().object,error:le().object},LabReportMetrics.propTypes={data:le().object,error:le().object};var Ee=i(53328),Se=i(39017),we=i(29547);function Accordion({title:e,children:t,initialOpen:i,onOpen:r,onClose:n,disabled:o}){const[s,a]=(0,S.useState)(!!i);(0,S.useEffect)(()=>{s&&r&&"function"==typeof r?r():!s&&n&&"function"==typeof n&&n()},[s,n,r]),(0,S.useEffect)(()=>{o&&s&&a(!1)},[o,s]);const l=(0,S.useCallback)(e=>{("keydown"!==e.type||[Ee.Fm,Ee.t6].includes(e.keyCode))&&(e.preventDefault(),a(!s))},[s]);return(0,H.jsxs)("div",{className:ee()("googlesitekit-accordion",{"googlesitekit-accordion--disabled":o}),children:[(0,H.jsxs)("div",{className:ee()("googlesitekit-accordion__header",{"is-active":s}),onClick:l,onKeyDown:l,tabIndex:o?-1:0,role:"button",children:[e,(0,H.jsx)(we.A,{children:(0,H.jsx)(Se.A,{width:12,height:12})})]}),(0,H.jsx)("div",{className:ee()("googlesitekit-accordion__content",{"is-active":s}),children:t})]})}function Recommendation(e){const{auditID:t,title:i,referenceURL:r,strategy:n}=e,o=(0,oe.A)(),s=(0,S.useCallback)(()=>{(0,D.sx)(`${o}_pagespeed-widget`,"stack_pack_expand",t)},[t,o]),a=(0,f.useSelect)(e=>e(N).getStackPackDescription(r,n,t,"wordpress"));if(!a)return null;const l=(0,D.S_)(a.description);return(0,H.jsx)(Accordion,{id:t,title:i,onOpen:s,children:(0,H.jsx)("div",{dangerouslySetInnerHTML:(0,D.p9)(l,{ALLOWED_TAGS:["a","p"],ALLOWED_ATTR:["href","rel","target"]})})})}function Recommendations({className:e,recommendations:t,referenceURL:i,strategy:r}){return(0,H.jsxs)("div",{className:ee()("googlesitekit-pagespeed--recommendations",e),children:[(0,H.jsx)("div",{className:"googlesitekit-pagespeed-recommendations__title",children:(0,E.__)("Recommendations on how to improve your site","google-site-kit")}),t.map(({id:e,title:t})=>(0,H.jsx)(Recommendation,{auditID:e,title:t,referenceURL:i,strategy:r},e))]})}function Content({isFetching:e,recommendations:t,reportData:i,reportError:r}){const n=(0,f.useSelect)(e=>e(re.O4).getCurrentReferenceURL()),o=(0,f.useSelect)(e=>e(ne.nX).getValue(j))||C,s=(0,f.useSelect)(e=>e(ne.nX).getValue(M))||L;return(0,H.jsxs)("section",{className:ee()({"googlesitekit-pagespeed-widget__refreshing":e}),children:[s===L&&(0,H.jsx)(LabReportMetrics,{data:i,error:r}),s===O&&(0,H.jsx)(FieldReportMetrics,{data:i,error:r}),s===I&&t.length>0&&(0,H.jsx)(Recommendations,{className:ee()({"googlesitekit-pagespeed-widget__refreshing":e}),recommendations:t,referenceURL:n,strategy:o})]})}Accordion.propTypes={title:le().node.isRequired,children:le().node.isRequired,initialOpen:le().bool,onOpen:le().func,onClose:le().func,disabled:le().bool},Recommendation.propTypes={auditID:le().string.isRequired,title:le().string.isRequired,referenceURL:le().string.isRequired,strategy:le().oneOf([C,T]).isRequired},Recommendations.propTypes={className:le().string,recommendations:le().arrayOf(le().object),referenceURL:le().string.isRequired,strategy:le().oneOf([C,T]).isRequired},Recommendations.defaultProps={className:""};var xe,Ne,Ce=i(25898);function ReportDetailsLink(){const e=(0,f.useSelect)(e=>e(re.O4).getCurrentReferenceURL()),t=(0,f.useSelect)(t=>t(N).getServiceURL({path:"report",query:{url:e}}));return(0,H.jsx)(pe.A,{size:"small",type:"label",children:(0,ce.A)((0,E.sprintf)(/* translators: %s: link with translated service name */ /* translators: %s: link with translated service name */
(0,E.__)("View details at %s","google-site-kit"),`${(0,E._x)("PageSpeed Insights","Service name","google-site-kit")}`),{a:(0,H.jsx)(be.A,{href:t,external:!0})})})}function Footer({isFetching:e}){const t=(0,f.useSelect)(e=>e(re.O4).getCurrentReferenceURL()),i=(0,f.useSelect)(e=>e(ne.nX).getValue(M))||L,{invalidateResolution:r}=(0,f.useDispatch)(N),n=(0,S.useCallback)(async e=>{e.preventDefault(),await(0,$.invalidateCache)("modules",P,"pagespeed"),r("getReport",[t,T]),r("getReport",[t,C])},[r,t]);return(0,H.jsxs)("div",{className:ee()("googlesitekit-pagespeed-report__footer",{"googlesitekit-pagespeed-report__footer--with-action":i===L}),children:[i===L&&(0,H.jsxs)("div",{children:[(0,H.jsx)(be.A,{onClick:n,disabled:e,children:(0,E.__)("Run test again","google-site-kit")}),(0,H.jsx)(Ce.A,{isSaving:e})]}),(0,H.jsx)(ReportDetailsLink,{})]})}function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var t=1;tS.createElement("svg",Te({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 4 24 16"},e),xe||(xe=S.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),Ne||(Ne=S.createElement("path",{fill:"currentColor",d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"})));var Oe,Ie;function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;tS.createElement("svg",je({xmlns:"http://www.w3.org/2000/svg",viewBox:"5 1 14 22"},e),Oe||(Oe=S.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})),Ie||(Ie=S.createElement("path",{fill:"currentColor",d:"M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"})));function DeviceSizeTabBar({activeTab:e,disabled:t=!1,handleDeviceSizeUpdate:i,deviceSizes:r=[{slug:"mobile",label:(0,E.__)("Mobile","google-site-kit"),icon:(0,H.jsx)(Me,{width:"15",height:"22"})},{slug:"desktop",label:(0,E.__)("Desktop","google-site-kit"),icon:(0,H.jsx)(Le,{width:"23",height:"17"})}]}){const n=(0,S.useCallback)(e=>{const t=r[e];i(t,e)},[r,i]);if(!r?.length)return null;const o=r.findIndex(({slug:t})=>t===e);return(0,H.jsx)(ie.TabBar,{className:"googlesitekit-device-size-tab-bar",activeIndex:o,handleActiveIndexUpdate:n,children:r.map(({icon:e,label:i},r)=>(0,H.jsx)(ie.Tab,{"aria-label":i,disabled:t,focusOnActivate:!1,children:e},`google-sitekit-device-size-tab-key-${r}`))})}DeviceSizeTabBar.propTypes={activeTab:le().string,disabled:le().bool,deviceSizes:le().arrayOf(le().shape({label:le().string,slug:le().string,icon:le().node})),handleDeviceSizeUpdate:le().func},DeviceSizeTabBar.defaultProps={handleDeviceSizeUpdate:()=>{}};const De=DeviceSizeTabBar,He=(0,S.forwardRef)(({isFetching:e,updateActiveTab:t,recommendations:i=[]},r)=>{const n=(0,f.useSelect)(e=>e(ne.nX).getValue(j))||C,o=(0,f.useSelect)(e=>e(ne.nX).getValue(M))||L,{setValues:s}=(0,f.useDispatch)(ne.nX),a=[{name:L,label:(0,E.__)("In the Lab","google-site-kit"),ariaLabelledby:`googlesitekit-pagespeed-widget__data-src-tab-${L}`,id:`googlesitekit-pagespeed-widget__data-src-tab-${L}`},{name:O,label:(0,E.__)("In the Field","google-site-kit"),ariaLabelledby:`googlesitekit-pagespeed-widget__data-src-tab-${O}`,id:`googlesitekit-pagespeed-widget__data-src-tab-${O}`}];i.length>0&&a.push({name:I,label:(0,E.__)("How to improve","google-site-kit"),ariaLabelledby:`googlesitekit-pagespeed-widget__data-src-tab-${I}`,id:`googlesitekit-pagespeed-widget__data-src-tab-${I}`});const l=a.map(({name:e})=>e),c=(0,S.useCallback)(({slug:e})=>{s(e===T?{[j]:T}:{[j]:C})},[s]);return(0,H.jsxs)("header",{className:"googlesitekit-pagespeed-widget__header",ref:r,children:[(0,H.jsx)("div",{className:"googlesitekit-pagespeed-widget__data-src-tabs",children:(0,H.jsx)(ie.TabBar,{activeIndex:l.indexOf(o),handleActiveIndexUpdate:t,children:a.map(t=>(0,H.jsx)(ie.Tab,{focusOnActivate:!1,"aria-labelledby":t.ariaLabelledby,disabled:e,children:(0,H.jsx)("span",{id:t.id,className:"mdc-tab__text-label",children:t.label})},t.name))})}),(0,H.jsx)("div",{className:"googlesitekit-pagespeed-widget__device-size-tab-bar-wrapper",children:(0,H.jsx)(De,{activeTab:n,disabled:e,handleDeviceSizeUpdate:c})})]})});var Pe=i(63074),Fe=i(14145);function Loading(){return(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-widget__content",children:[(0,H.jsxs)("header",{className:"googlesitekit-pagespeed-widget__header",children:[(0,H.jsx)("div",{className:"googlesitekit-pagespeed-widget__data-src-tabs",children:(0,H.jsx)(Fe.A,{count:3,smallWidth:"70px",smallHeight:"48px",width:"120px",height:"48px"})}),(0,H.jsx)("div",{className:"googlesitekit-pagespeed-widget__device-size-tab-bar-wrapper",children:(0,H.jsx)(Fe.A,{count:2,width:"56px",height:"32px"})})]}),(0,H.jsx)("section",{className:"googlesitekit-pagespeed-widget__values",children:(0,H.jsx)(Fe.A,{count:5,smallWidth:"100%",smallHeight:"90px",width:"100%",height:"78px"})}),(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report__row",children:(0,H.jsx)(Pe.A,{width:"130px",height:"40px"})}),(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report__footer",children:(0,H.jsx)(Pe.A,{width:"224px",height:"40px"})})]})}function DashboardPageSpeed(){const e=(0,S.useRef)(),[t,i]=(0,S.useState)(!1),r=(0,oe.A)(),n=(0,f.useSelect)(e=>e(re.O4).getCurrentReferenceURL()),o=(0,f.useSelect)(e=>e(ne.nX).getValue(j))||C,s=(0,f.useSelect)(e=>e(ne.nX).getValue(M)),a=s??L,{isFetchingMobile:l,isFetchingDesktop:c,errorMobile:g,errorDesktop:d}=(0,f.useSelect)(e=>{const t=e(N);return{isFetchingMobile:!t.hasFinishedResolution("getReport",[n,C]),errorMobile:t.getErrorForSelector("getReport",[n,C]),isFetchingDesktop:!t.hasFinishedResolution("getReport",[n,T]),errorDesktop:t.getErrorForSelector("getReport",[n,T])}}),u=(0,f.useInViewSelect)(e=>e(N).getReport(n,C),[n]),p=(0,f.useInViewSelect)(e=>e(N).getReport(n,T),[n]),{setValues:m}=(0,f.useDispatch)(ne.nX),h=(0,te.A)(e,{threshold:.25}),_=!!h?.intersectionRatio,b=o===C?l:c;(0,S.useEffect)(()=>{_&&!t&&((0,se.sx)(`${r}_pagespeed-widget`,"widget_view"),(0,se.sx)(`${r}_pagespeed-widget`,"default_tab_view",a.replace("data_","")),i(!0))},[_,a,r,t]);const y=(0,S.useCallback)(e=>{let t;switch(e){case 0:m({[M]:L}),t="lab";break;case 1:m({[M]:O}),t="field";break;case 2:m({[M]:I}),t="recommendations"}(0,se.sx)(`${r}_pagespeed-widget`,"tab_select",t)},[m,r]),v=o===C?u:p,k=o===C?g:d,A=(0,f.useSelect)(e=>e(N).hasFinishedResolution("getReport",[n,o])),R=(0,f.useInViewSelect)(e=>{if(k)return[];const t=e(N).getAuditsWithStackPack(n,o,"wordpress");return t&&Object.keys(t).length?Object.values(t).filter(({scoreDisplayMode:e,score:t})=>"metricSavings"===e&&t<1).sort((e,t)=>e.score===t.score?e.id({id:e,title:t})):[]},[n,o,A]);(0,S.useEffect)(()=>{void 0===s&&v?.loadingExperience?.metrics&&m({[M]:O})},[v,s,m]);const w=!n||b&&!v||!a,x=a===O&&["LARGEST_CONTENTFUL_PAINT_MS","CUMULATIVE_LAYOUT_SHIFT_SCORE","FIRST_INPUT_DELAY_MS"].every(e=>v?.loadingExperience?.metrics?.[e]);return w?(0,H.jsx)("div",{id:"googlesitekit-pagespeed-header",className:"googlesitekit-pagespeed-widget__content-wrapper googlesitekit-pagespeed-widget__content-wrapper--loading",children:(0,H.jsx)(Loading,{})}):(0,H.jsx)("div",{id:"googlesitekit-pagespeed-header",className:"googlesitekit-pagespeed-widget__content-wrapper",children:(0,H.jsxs)("div",{className:"googlesitekit-pagespeed-widget__content",children:[(0,H.jsx)(He,{ref:e,isFetching:b,updateActiveTab:y,recommendations:R}),b&&(0,H.jsx)("div",{className:"googlesitekit-pagespeed-widget__refreshing-progress-bar-wrapper",children:(0,H.jsx)(ie.ProgressBar,{compress:!0})}),(0,H.jsx)(Content,{isFetching:b,recommendations:R,reportData:v,reportError:k}),(a===L||x)&&(0,H.jsx)("div",{className:"googlesitekit-pagespeed-report__row",children:(0,H.jsx)(ie.Button,{className:ee()({"googlesitekit-pagespeed__recommendations-cta--hidden":!R?.length}),disabled:b,onClick:()=>y(2),children:(0,E.__)("How to improve","google-site-kit")})}),(0,H.jsx)(Footer,{isFetching:b})]})})}const Be=(0,i(83470).A)({moduleName:P})(function DashboardPageSpeedWidget({Widget:e}){return(0,H.jsx)(e,{className:"googlesitekit-pagespeed-widget",noPadding:!0,children:(0,H.jsx)(DashboardPageSpeed,{})})}),Ue=[C,T];async function Ve({registry:e,signal:t}){if(t.aborted)return{data:null};const i=await e.resolveSelect(re.O4).getCurrentReferenceURL(),{invalidateResolution:r}=e.dispatch(N);r("getReport",[i,C,{signal:t}]),r("getReport",[i,T,{signal:t}]);const n=e.select(N),[o,s]=await Promise.all(Ue.map(r=>{const o=n.getReport(i,r);return void 0!==o?Promise.resolve(o):e.resolveSelect(N).getReport(i,r,{signal:t}).catch(()=>null)}));if(t.aborted)return{data:null};const a=o?{lab:Ae(o),field:Re(o)}:null,l=s?{lab:Ae(s),field:Re(s)}:null;if(!a&&!l)throw new Error("Site Kit: PageSpeed Insights reports failed for both strategies.");return{data:{mobile:a,desktop:l}}}var $e=i(9397),We=i(57349),ze=i(7465),Ye=i(89184),qe=i(37254),Ge=i(97015);const Ze={fast:{background:qe.QS.GREEN_G_50,text:qe.QS.UTILITY_ON_SUCCESS_CONTAINER},average:{background:qe.QS.YELLOW_Y_50,text:qe.QS.YELLOW_Y_500},slow:{background:qe.QS.UTILITY_ERROR_CONTAINER,text:qe.QS.UTILITY_ON_ERROR_CONTAINER}},Ke=(0,We.bM)({valueCell:{width:253,alignItems:"flex-start"},badge:{marginTop:6,borderRadius:100,paddingVertical:3,paddingHorizontal:10}});function MetricValueCell({metric:e}){if(!e)return Ge.createElement($e.Ss,{style:Ke.valueCell});const t=function(e){switch(e){case me:return Ze.fast;case fe:return Ze.slow;default:return Ze.average}}(e.category);return Ge.createElement($e.Ss,{style:Ke.valueCell},Ge.createElement(ze.A,{type:"title"},e.displayValue),Ge.createElement($e.Ss,{style:[Ke.badge,{backgroundColor:t.background}]},Ge.createElement(ze.A,{type:"label",size:"small",style:{color:t.text}},function(e){switch(e){case me:return(0,E.__)("Good","google-site-kit");case fe:return(0,E.__)("Poor","google-site-kit");default:return(0,E.__)("Needs improvement","google-site-kit")}}(e.category))))}var Qe=i(97015);const Je=(0,We.bM)({metricRow:{flexDirection:"row",alignItems:"center",columnGap:24,paddingVertical:12,borderBottomWidth:1,borderBottomColor:qe.QS.SURFACES_SURFACE_1},metricRowLast:{borderBottomWidth:0},metricLabelGroup:{flex:1},metricDescription:{color:qe.QS.SURFACES_ON_SURFACE_VARIANT,marginTop:6}});function MetricRow({title:e,description:t,mobileMetric:i,desktopMetric:r,isLast:n}){return Qe.createElement($e.Ss,{style:n?[Je.metricRow,Je.metricRowLast]:Je.metricRow},Qe.createElement($e.Ss,{style:Je.metricLabelGroup},Qe.createElement(ze.A,{type:"title"},e),Qe.createElement(ze.A,{size:"small",style:Je.metricDescription},t)),Qe.createElement(MetricValueCell,{metric:i}),Qe.createElement(MetricValueCell,{metric:r}))}var Xe=i(97015);const et=(0,We.bM)({headerRow:{flexDirection:"row",alignItems:"center",columnGap:24,padding:24,borderBottomWidth:1,borderBottomColor:qe.QS.SURFACES_SURFACE_1},headerTitleCell:{flex:1},headerStrategyCell:{width:253,alignItems:"flex-start"},list:{paddingHorizontal:24,paddingBottom:16}});function MetricSection({title:e,children:t}){return Xe.createElement(S.Fragment,null,Xe.createElement($e.Ss,{style:et.headerRow},Xe.createElement($e.Ss,{style:et.headerTitleCell},Xe.createElement(ze.A,{type:"title",size:"small"},e)),Xe.createElement($e.Ss,{style:et.headerStrategyCell},Xe.createElement(ze.A,{type:"title",size:"small"},(0,E.__)("Mobile","google-site-kit"))),Xe.createElement($e.Ss,{style:et.headerStrategyCell},Xe.createElement(ze.A,{type:"title",size:"small"},(0,E.__)("Desktop","google-site-kit")))),Xe.createElement($e.Ss,{style:et.list},t))}var tt=i(97015);const it=(0,We.bM)({card:{padding:0},secondCard:{padding:0,marginTop:15}});function SpeedMetricSections({mobile:e,desktop:t}){const i=null!=e?.field||null!=t?.field;return tt.createElement(S.Fragment,null,tt.createElement(Ye.A,{style:it.card},tt.createElement(MetricSection,{title:(0,E.__)("Lab data","google-site-kit")},tt.createElement(MetricRow,{title:(0,E._x)("Largest Contentful Paint","core web vitals name","google-site-kit"),description:(0,E.__)("Time it takes for the page to load","google-site-kit"),mobileMetric:e?.lab.largestContentfulPaint,desktopMetric:t?.lab.largestContentfulPaint}),tt.createElement(MetricRow,{title:(0,E._x)("Cumulative Layout Shift","core web vitals name","google-site-kit"),description:(0,E.__)("How stable the elements on the page are","google-site-kit"),mobileMetric:e?.lab.cumulativeLayoutShift,desktopMetric:t?.lab.cumulativeLayoutShift}),tt.createElement(MetricRow,{title:(0,E.__)("Total Blocking Time","google-site-kit"),description:(0,E.__)("How long people had to wait after the page loaded before they could click something","google-site-kit"),mobileMetric:e?.lab.totalBlockingTime,desktopMetric:t?.lab.totalBlockingTime,isLast:!0}))),i&&tt.createElement(Ye.A,{style:it.secondCard},tt.createElement(MetricSection,{title:(0,E.__)("Real user data","google-site-kit")},tt.createElement(MetricRow,{title:(0,E._x)("Largest Contentful Paint","core web vitals name","google-site-kit"),description:(0,E.__)("Time it takes for the page to load","google-site-kit"),mobileMetric:e?.field?.largestContentfulPaint,desktopMetric:t?.field?.largestContentfulPaint}),tt.createElement(MetricRow,{title:(0,E._x)("Cumulative Layout Shift","core web vitals name","google-site-kit"),description:(0,E.__)("How stable the elements on the page are","google-site-kit"),mobileMetric:e?.field?.cumulativeLayoutShift,desktopMetric:t?.field?.cumulativeLayoutShift}),tt.createElement(MetricRow,{title:(0,E._x)("Interaction to Next Paint","core web vitals name","google-site-kit"),description:(0,E.__)("How quickly your page responds when people interact with it","google-site-kit"),mobileMetric:e?.field?.interactionToNextPaint,desktopMetric:t?.field?.interactionToNextPaint,isLast:!0}))))}var rt=i(97015);const nt=(0,We.bM)({heading:{marginBottom:15}}),ot=({data:e})=>{const t=e;return t&&(t.mobile||t.desktop)?rt.createElement($e.Ss,null,rt.createElement(ze.A,{size:"large",style:nt.heading},(0,E.__)("Your site performance","google-site-kit")),rt.createElement(SpeedMetricSections,{mobile:t.mobile,desktop:t.desktop})):null};var st=i(82286),at=i(25084),lt=i(92255),ct=i(38796),gt=i(57814),dt=i(44250),ut=i(7029),pt=i(64510),mt=i(65538),ht=i(65589);function SetupSuccessNotification({id:e,Notification:t}){const i=(0,pt.dv)(),[,r]=(0,mt.A)("notification"),[,n]=(0,mt.A)("slug"),{dismissNotification:o}=(0,f.useDispatch)(ut.D);function s(){r(void 0),n(void 0)}const a=`#${at.Ej}`;return(0,H.jsx)(t,{children:(0,H.jsx)(dt.A,{notificationID:e,type:gt.L.SUCCESS,title:(0,E.__)("Congrats on completing the setup for PageSpeed Insights!","google-site-kit"),description:(0,E.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"),dismissButton:{onClick:s},ctaButton:{label:(0,E.__)("Show me","google-site-kit"),onClick:function(t){t.preventDefault(),o(e),s(),globalThis.history.replaceState({},"",a),globalThis.scrollTo({top:(0,ht.YJ)(a,i),behavior:"smooth"})}}})})}SetupSuccessNotification.propTypes={id:le().string.isRequired,Notification:le().elementType.isRequired};const ft={"setup-success-notification-psi":{Component:SetupSuccessNotification,areaSlug:lt.bI.DASHBOARD_TOP,viewContexts:[at.jU],checkRequirements:()=>{const e=(0,st.d)(location.href,"notification"),t=(0,st.d)(location.href,"slug");return"authentication_success"===e&&t===P}}};var _t,bt;_().registerStore(N,Q),y().registerModule(P,{storeName:N,SettingsViewComponent:SettingsView,Icon:x,features:[(0,E.__)("Website performance reports for mobile and desktop will be disabled","google-site-kit")],overrideSetupSuccessNotification:!0}),(_t=R()).registerWidget("pagespeedInsightsWebVitals",{Component:Be,width:_t.WIDGET_WIDTHS.FULL,wrapWidget:!1,modules:[P],pdf:{Component:ot,getData:Ve}},[J.AREA_MAIN_DASHBOARD_SPEED_PRIMARY,J.AREA_ENTITY_DASHBOARD_SPEED_PRIMARY]),bt=k(),(0,ct.U)(bt,ft)},44250(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r=i(68102),n=i(50539),o=i(56848),s=i(7029),a=i(57112),l=i(25533),c=i(97015);const __WEBPACK_DEFAULT_EXPORT__=({notificationID:e,dismissButton:t,ctaButton:i,gaTrackingEventArgs:g,...d})=>{const u=(0,a.A)(e,g?.category),{dismissNotification:p}=(0,n.useDispatch)(s.D);return c.createElement(l.xA,null,c.createElement(l.fI,null,c.createElement(l.fh,{size:12,alignMiddle:!0},c.createElement(o.A,(0,r.A)({dismissButton:{...t,onClick:async function(i){await(t?.onClick?.(i)),u.dismiss(g?.label,g?.value),p(e,{...t?.dismissOptions||{}})}},ctaButton:{...i,onClick:async function(t){u.confirm(g?.label,g?.value),await(i?.onClick?.(t)),i?.dismissOnClick&&p(e,{...i?.dismissOptions})}}},d)))))}},64510(e,t,i){"use strict";i.d(t,{Fo:()=>o,Lg:()=>s,Qb:()=>n,dv:()=>l,mp:()=>a});var r=i(11004);const n="xlarge",o="desktop",s="tablet",a="small";function l(){const e=(0,r.SO)();return e>1280?n:e>960?o:e>600?s:a}},11004(e,t,i){"use strict";i.d(t,{SO:()=>a});var r=i(99123),n=i(55620);function o(){return[globalThis.innerWidth,globalThis.innerHeight]}function s({fps:e=60,leading:t=!1,initialWidth:i=0,initialHeight:s=0}={}){const[a,l]=(0,n._)("undefined"==typeof document?[i,s]:o,e,t);function c(){return l(o)}return(0,r.A)(window,"resize",c),(0,r.A)(window,"orientationchange",c),a}function a(e={}){return s(e)[0]}},23479(e,t,i){"use strict";i.d(t,{fh:()=>a,xA:()=>u,fI:()=>g});var r=i(68102),n=i(4452),o=i.n(n),s=i(97015);const a=({className:e="",alignTop:t=!1,alignMiddle:i=!1,alignBottom:n=!1,alignRight:a=!1,alignLeft:l=!1,smAlignRight:c=!1,mdAlignRight:g=!1,lgAlignRight:d=!1,smSize:u=0,smStart:p=0,smOrder:m=0,mdSize:h=0,mdStart:f=0,mdOrder:_=0,lgSize:b=0,lgStart:y=0,lgOrder:v=0,size:k=0,children:A,...R})=>s.createElement("div",(0,r.A)({},R,{className:o()(e,"mdc-layout-grid__cell",{"mdc-layout-grid__cell--align-top":t,"mdc-layout-grid__cell--align-middle":i,"mdc-layout-grid__cell--align-bottom":n,"mdc-layout-grid__cell--align-right":a,"mdc-layout-grid__cell--align-left":l,"mdc-layout-grid__cell--align-right-phone":c,"mdc-layout-grid__cell--align-right-tablet":g,"mdc-layout-grid__cell--align-right-desktop":d,[`mdc-layout-grid__cell--span-${k}`]:12>=k&&k>0,[`mdc-layout-grid__cell--span-${b}-desktop`]:12>=b&&b>0,[`mdc-layout-grid__cell--start-${y}-desktop`]:12>=y&&y>0,[`mdc-layout-grid__cell--order-${v}-desktop`]:12>=v&&v>0,[`mdc-layout-grid__cell--span-${h}-tablet`]:8>=h&&h>0,[`mdc-layout-grid__cell--start-${f}-tablet`]:8>=f&&f>0,[`mdc-layout-grid__cell--order-${_}-tablet`]:8>=_&&_>0,[`mdc-layout-grid__cell--span-${u}-phone`]:4>=u&&u>0,[`mdc-layout-grid__cell--start-${p}-phone`]:4>=p&&p>0,[`mdc-layout-grid__cell--order-${m}-phone`]:4>=m&&m>0})}),A);var l=i(63696),c=i(97015);const g=(0,l.forwardRef)(({className:e="",children:t,...i},n)=>c.createElement("div",(0,r.A)({ref:n,className:o()("mdc-layout-grid__inner",e)},i),t));var d=i(97015);const u=(0,l.forwardRef)(({alignLeft:e=!1,fill:t=!1,className:i="",children:n,collapsed:s=!1,...a},l)=>d.createElement("div",(0,r.A)({className:o()("mdc-layout-grid",i,{"mdc-layout-grid--align-left":e,"mdc-layout-grid--collapsed":s,"mdc-layout-grid--fill":t})},a,{ref:l}),n))},56804(e,t,i){"use strict";i.d(t,{A:()=>g});var r=i(4452),n=i.n(r),o=i(62688),s=i.n(o),a=i(63696),l=i(62540);const c=(0,a.forwardRef)(({label:e,className:t,hasLeftSpacing:i=!1,...r},o)=>(0,l.jsx)("span",{ref:o,...r,className:n()("googlesitekit-badge",t,{"googlesitekit-badge--has-left-spacing":i}),children:e}));c.displayName="Badge",c.propTypes={label:s().string.isRequired,hasLeftSpacing:s().bool};const g=c},72558(e,t,i){"use strict";i.d(t,{A:()=>l});var r=i(4452),n=i.n(r),o=i(62688),s=i.n(o),a=i(62540);function ChangeArrow({direction:e,invertColor:t,width:i,height:r}){return(0,a.jsx)("svg",{className:n()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${e}`,{"googlesitekit-change-arrow--inverted-color":t}),width:i,height:r,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"})})}ChangeArrow.propTypes={direction:s().string,invertColor:s().bool,width:s().number,height:s().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const l=ChangeArrow},97269(e,t,i){"use strict";i.d(t,{A:()=>ErrorNotice});var r=i(62688),n=i.n(r),o=i(63696),s=i(82871),a=i(84024),l=i(50539),c=i(57814),g=i(75865),d=i(59376),u=i(56848),p=i(62540);function ErrorNotice({className:e,error:t,hasButton:i=!1,storeName:r,message:n=t.message,noPrefix:m=!1,skipRetryMessage:h,hideIcon:f=!1}){const _=(0,l.useDispatch)(),b=(0,l.useSelect)(e=>r?e(r).getSelectorDataForError(t):null),y=(0,o.useCallback)(()=>{_(b.storeName).invalidateResolution(b.name,b.args)},[_,b]);if(!n||(0,d.G)(t))return null;const v=i&&(0,d.vl)(t,b);let k=n;i||h||(k=(0,s.sprintf)(/* translators: %s: Error message from Google API. */ /* translators: %s: Error message from Google API. */
(0,s.__)("%s (Please try again.)","google-site-kit"),k)),m||(k=(0,s.sprintf)(/* translators: $%s: Error message */ /* translators: $%s: Error message */
(0,s.__)("Error: %s","google-site-kit"),k));const A=t?.data?.reconnectURL;A&&(0,a.m)(A)&&(k=(0,s.sprintf)(/* translators: 1: Original error message 2: Reconnect URL */ /* translators: 1: Original error message 2: Reconnect URL */
(0,s.__)('%1$s To fix this, redo the plugin setup.',"google-site-kit"),k,A));return(0,p.jsx)(u.A,{className:e,type:c.L.ERROR,description:(0,p.jsx)("span",{dangerouslySetInnerHTML:(0,g.p9)(k,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}),ctaButton:v?{label:(0,s.__)("Retry","google-site-kit"),onClick:y}:void 0,hideIcon:f})}ErrorNotice.propTypes={className:n().string,error:n().shape({message:n().string}),hasButton:n().bool,storeName:n().string,message:n().string,noPrefix:n().bool,skipRetryMessage:n().bool,hideIcon:n().bool}},29547(e,t,i){"use strict";i.d(t,{A:()=>IconWrapper});var r=i(62688),n=i.n(r),o=i(62540);function IconWrapper({children:e,marginLeft:t,marginRight:i}){return(0,o.jsx)("span",{className:"googlesitekit-icon-wrapper",style:{marginLeft:t,marginRight:i},children:e})}IconWrapper.propTypes={children:n().node.isRequired,marginLeft:n().number,marginRight:n().number}},22994(e,t,i){"use strict";i.d(t,{A:()=>N});var r,n=i(4452),o=i.n(n),s=i(62688),a=i.n(s),l=i(39941),c=i(63696),g=i(82871);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),r||(r=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"#FFF"}),c.createElement("path",{fill:"currentColor",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.459.459 0 0 0 .325-.135l3.037-3.038a.459.459 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.462.462 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var p;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 13"},e),p||(p=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("circle",{cx:6.5,cy:6.5,r:6.5,fill:"currentColor"}),c.createElement("path",{fill:"#FFF",d:"M3.461 6.96h5.15L6.36 9.21a.464.464 0 0 0 .325.79.459.459 0 0 0 .325-.135l3.037-3.038a.459.459 0 0 0 0-.65L7.015 3.135a.46.46 0 0 0-.65.65L8.61 6.039H3.461a.462.462 0 0 0-.461.46c0 .254.207.462.461.462z"}),".")));var f;function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;tc.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),f||(f=c.createElement("path",{d:"M12 20L4 12L12 4L13.425 5.4L7.825 11H20V13H7.825L13.425 18.6L12 20Z"})));var y=i(54399),v=i(29547),k=i(62540);const A="BUTTON",R="BUTTON_DISABLED",E="EXTERNAL_LINK",S="LINK",w="ROUTER_LINK",x=(0,c.forwardRef)((e,t)=>{const{"aria-label":i,secondary:r=!1,arrow:n=!1,back:s=!1,caps:a=!1,children:c,className:d="",danger:p=!1,disabled:m=!1,external:f=!1,hideExternalIndicator:_=!1,href:x="",inverse:N=!1,noFlex:C=!1,onClick:T,small:L=!1,standalone:O=!1,linkButton:I=!1,to:j,leadingIcon:M,trailingIcon:D,...H}=e;const P=x||j||!T?j?w:f?E:S:m?R:A;const F=P===A||P===R?"button":P===w?l.N_:"a",B=function(){let e;return P===E&&(e=(0,g._x)("(opens in a new tab)","screen reader text","google-site-kit")),P===R&&(e=(0,g._x)("(disabled)","screen reader text","google-site-kit")),e?i?`${i} ${e}`:"string"==typeof c?`${c} ${e}`:void 0:i}();let U=M,V=D;return s&&(U=(0,k.jsx)(b,{width:14,height:14})),f&&!_&&(V=(0,k.jsx)(y.A,{width:14,height:14})),n&&!N&&(V=(0,k.jsx)(h,{width:14,height:14})),n&&N&&(V=(0,k.jsx)(u,{width:14,height:14})),(0,k.jsxs)(F,{"aria-label":B,className:o()("googlesitekit-cta-link",d,{"googlesitekit-cta-link--secondary":r,"googlesitekit-cta-link--inverse":N,"googlesitekit-cta-link--small":L,"googlesitekit-cta-link--caps":a,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m,"googlesitekit-cta-link--standalone":O,"googlesitekit-cta-link--link-button":I,"googlesitekit-cta-link--no-flex":!!C}),disabled:m,href:P!==S&&P!==E||m?void 0:x,onClick:T,rel:P===E?"noopener noreferrer":void 0,ref:t,target:P===E?"_blank":void 0,to:j,...H,children:[!!U&&(0,k.jsx)(v.A,{marginRight:5,children:U}),(0,k.jsx)("span",{className:"googlesitekit-cta-link__contents",children:c}),!!V&&(0,k.jsx)(v.A,{marginLeft:5,children:V})]})});x.propTypes={arrow:a().bool,back:a().bool,caps:a().bool,children:a().node,className:a().string,danger:a().bool,disabled:a().bool,external:a().bool,hideExternalIndicator:a().bool,href:a().string,inverse:a().bool,leadingIcon:a().node,linkButton:a().bool,noFlex:a().bool,onClick:a().func,small:a().bool,standalone:a().bool,to:a().string,trailingIcon:a().node};const N=x},63074(e,t,i){"use strict";i.d(t,{A:()=>c});var r=i(4452),n=i.n(r),o=i(62688),s=i.n(o),a=i(64510),l=i(62540);function PreviewBlock({className:e,width:t,height:i,shape:r,padding:o,smallWidth:s,smallHeight:c,tabletWidth:g,tabletHeight:d,desktopWidth:u,desktopHeight:p}){const m=(0,a.dv)(),h={width:{[a.mp]:s,[a.Lg]:g,[a.Fo]:u,[a.Qb]:u},height:{[a.mp]:c,[a.Lg]:d,[a.Fo]:p,[a.Qb]:u}};return(0,l.jsx)("div",{className:n()("googlesitekit-preview-block",e,{"googlesitekit-preview-block--padding":o}),style:{width:h.width[m]||t,height:h.height[m]||i},children:(0,l.jsx)("div",{className:n()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===r})})})}PreviewBlock.propTypes={className:s().string,width:s().string,height:s().string,shape:s().string,padding:s().bool,smallWidth:s().string,smallHeight:s().string,tabletWidth:s().string,tabletHeight:s().string,desktopWidth:s().string,desktopHeight:s().string},PreviewBlock.defaultProps={className:void 0,width:"100px",height:"100px",shape:"square",padding:!1,smallWidth:void 0,smallHeight:void 0,tabletWidth:void 0,tabletHeight:void 0,desktopWidth:void 0,desktopHeight:void 0};const c=PreviewBlock},14145(e,t,i){"use strict";i.d(t,{A:()=>a});var r=i(62688),n=i.n(r),o=i(63074),s=i(62540);function PreviewBlocks({width:e,height:t,shape:i,count:r,smallWidth:n,smallHeight:a,tabletWidth:l,tabletHeight:c,desktopWidth:g,desktopHeight:d}){const u=[];let p=0;for(;p++ReportErrorActions});var r=i(62688),n=i.n(r),o=i(63696),s=i(13606),a=i(82871),l=i(49383),c=i(50539),g=i(55258),d=i(71764),u=i(50509),p=i(59376),m=i(22994),h=i(62540);function ReportErrorActions(e){const{moduleSlug:t,error:i,GetHelpLink:r,hideGetHelpLink:n,buttonVariant:f,onRetry:_,onRequestAccess:b,getHelpClassName:y,RequestAccessButton:v,RetryButton:k}=e,A=(0,u.A)(),R=(0,c.useSelect)(e=>e(d.i).getModuleStoreName(t)),E=(0,c.useSelect)(e=>"function"==typeof e(R)?.getServiceEntityAccessURL?e(R).getServiceEntityAccessURL():null),S=Array.isArray(i)?i:[i],w=(0,c.useSelect)(e=>S.map(t=>{const i=e(R)?.getSelectorDataForError(t);return{...t,selectorData:i}})),x=w?.filter(e=>(0,p.vl)(e,e.selectorData)&&"getReport"===e.selectorData.name),N=!!x.length,C=(0,c.useSelect)(e=>{const i={...N?x[0]:S[0]};return(0,p.SG)(i)&&(i.code=`${t}_insufficient_permissions`),e(g.O4).getErrorTroubleshootingLinkURL(i)}),T=(0,c.useDispatch)(),L=S.some(e=>(0,p.SG)(e)),O=(0,o.useCallback)(()=>{x.forEach(e=>{const{selectorData:t}=e;T(t.storeName).invalidateResolution(t.name,t.args)}),_?.()},[T,x,_]),I=E&&L&&!A;return(0,h.jsxs)("div",{className:"googlesitekit-report-error-actions",children:[I&&("function"==typeof v?(0,h.jsx)(v,{requestAccessURL:E}):(0,h.jsx)(l.Button,{onClick:b,href:E,target:"_blank",danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Request access","google-site-kit")})),N&&(0,h.jsxs)(o.Fragment,{children:["function"==typeof k?(0,h.jsx)(k,{handleRetry:O}):(0,h.jsx)(l.Button,{onClick:O,danger:"danger"===f,tertiary:"tertiary"===f,children:(0,a.__)("Retry","google-site-kit")}),!n&&(0,h.jsx)("span",{className:"googlesitekit-error-retry-text",children:(0,s.A)((0,a.__)("Retry didn’t work? ","google-site-kit"),{HelpLink:(0,h.jsx)(m.A,{href:C,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})})]}),!N&&!n&&(0,h.jsx)("div",{className:y,children:"function"==typeof r?(0,h.jsx)(r,{linkURL:C}):(0,h.jsx)(m.A,{href:C,external:!0,hideExternalIndicator:!0,children:(0,a.__)("Get help","google-site-kit")})})]})}ReportErrorActions.propTypes={moduleSlug:n().string.isRequired,error:n().oneOfType([n().arrayOf(n().object),n().object]).isRequired,GetHelpLink:n().elementType,hideGetHelpLink:n().bool,buttonVariant:n().string,onRetry:n().func,onRequestAccess:n().func,getHelpClassName:n().string,RequestAccessButton:n().elementType,RetryButton:n().elementType}},74585(e,t,i){"use strict";i.d(t,{Ay:()=>s,Kq:()=>o});const r=(0,i(63696).createContext)(""),{Consumer:n,Provider:o}=r,s=r},25898(e,t,i){"use strict";i.d(t,{A:()=>s});var r=i(62688),n=i.n(r),o=i(62540);function Spinner({isSaving:e,style:t={}}){return(0,o.jsx)("span",{className:"spinner",style:{display:e?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible",...t}})}Spinner.propTypes={isSaving:n().bool,style:n().object};const s=Spinner},13057(e,t,i){"use strict";i.d(t,{A:()=>c});var r=i(62688),n=i.n(r),o=i(64510),s=i(41680),a=i(17417),l=i(62540);function c({type:e=s.SZ,size:t,children:i,...r}){const n=(0,o.dv)();return(0,l.jsx)(a.A,{as:"p",type:e,size:t||(n===o.mp?s.Kk:s.Yw),...r,children:i})}c.propTypes={type:n().oneOf(s.tT),size:n().oneOf(s.oJ)}},41680(e,t,i){"use strict";i.d(t,{Kk:()=>s,SZ:()=>r,Yw:()=>a,oJ:()=>l,s7:()=>n,tT:()=>o});const r="body",n="label",o=[r,"display","headline",n,"title"],s="small",a="medium",l=[s,a,"large"]},17417(e,t,i){"use strict";i.d(t,{A:()=>Typography});var r=i(4452),n=i.n(r),o=i(62688),s=i.n(o),a=i(41680),l=i(62540);function Typography({className:e,type:t,size:i,as:r="span",children:o,...s}){return(0,l.jsx)(r,{className:n()("googlesitekit-typography",e,{[`googlesitekit-typography--${t}`]:t&&a.tT.includes(t),[`googlesitekit-typography--${i}`]:i&&a.oJ.includes(i)}),...s,children:o})}Typography.propTypes={className:s().string,type:s().oneOf(a.tT),size:s().oneOf(a.oJ),as:s().oneOfType([s().string,s().elementType])}},67608(e,t,i){"use strict";i.d(t,{G:()=>n,t:()=>r});const r=new Set(globalThis?._googlesitekitBaseData?.enabledFeatures||[]);function n(e,t=r){return t instanceof Set&&t.has(e)}},25084(e,t,i){"use strict";i.d(t,{Ax:()=>o,CZ:()=>g,Ej:()=>E,Gw:()=>S,Is:()=>s,KK:()=>u,Nn:()=>x,OT:()=>k,SH:()=>v,Y$:()=>p,ZS:()=>a,bg:()=>f,en:()=>R,ep:()=>h,f7:()=>n,hi:()=>m,jU:()=>r,k$:()=>b,kz:()=>w,ly:()=>l,mo:()=>_,s3:()=>y,uR:()=>c,x2:()=>A,zx:()=>d});const r="mainDashboard",n="entityDashboard",o="mainDashboardViewOnly",s="entityDashboardViewOnly",a="userInput",l="activation",c="splash",g="adminBar",d="adminBarViewOnly",u="settings",p="adBlockingRecovery",m="wpDashboard",h="wpDashboardViewOnly",f="moduleSetup",_="metricSelection",b="wpBlockEditor",y="keyMetricsSetup",v="key-metrics",k="traffic",A="site-goals",R="content",E="speed",S="monetization",w=[r,n,o,s,a,c,u,f,_],x=[o,s,d,h]},96499(e,t,i){"use strict";i.d(t,{g4:()=>b,o1:()=>_});var r=i(32091),n=i.n(r),o=i(10523),s=i.n(o),a=i(78913),l=i(50539),c=i(75865);const g="SET_ERROR_FOR_SELECTOR",d="SET_ERROR_FOR_ACTION",u="CLEAR_SELECTOR_ERROR",p="CLEAR_SELECTOR_ERRORS",m="CLEAR_ACTION_ERROR",h="CLEAR_ACTION_ERRORS";function f(e,t){if(t&&Array.isArray(t)){const i=t.map(e=>"object"==typeof e?(0,c.Zm)(e):e);return`${e}::${s()(JSON.stringify(i))}`}return e}const _={setErrorForSelector:(e,t,i=[])=>(n()(e,"error is required."),n()(t,"selectorName is required."),n()(i&&Array.isArray(i),"args must be an array."),{type:g,payload:{error:e,baseName:t,args:i}}),setErrorForAction:(e,t,i=[])=>(n()(e,"error is required."),n()(t,"actionName is required."),n()(i&&Array.isArray(i),"args must be an array."),{type:d,payload:{error:e,baseName:t,args:i}}),clearSelectorError:(e,t=[])=>(n()(e,"selectorName is required."),n()(t&&Array.isArray(t),"args must be an array."),{type:u,payload:{baseName:e,args:t}}),clearSelectorErrors:e=>({type:p,payload:{baseName:e}}),clearActionError:(e,t=[])=>(n()(e,"actionName is required."),n()(t&&Array.isArray(t),"args must be an array."),{type:m,payload:{baseName:e,args:t}}),clearActionErrors:e=>({type:h,payload:{baseName:e}})};function b(e){n()(e,"storeName must be defined.");function t(e,t,i,r){const{baseName:n,args:o,error:s}=r,a=f(n,o);e[t]=e[t]||{},e[i]=e[i]||{},e[t][a]=s,e[i][a]=o}function i(e,t,i,r,n){const o=f(r,n);e[t]=e[t]||{},e[i]=e[i]||{},delete e[t][o],delete e[i][o]}function r(e,t,i,r){if(r){e[t]=e[t]||{},e[i]=e[i]||{};for(const n in e[t])(n===r||n.startsWith(`${r}::`))&&(delete e[t][n],delete e[i][n])}else e[t]={},e[i]={}}const o=(0,l.createReducer)((e,{type:n,payload:o})=>{switch(n){case g:t(e,"selectorErrors","selectorErrorArgs",o);break;case d:t(e,"actionErrors","actionErrorArgs",o);break;case u:{const{baseName:t,args:r}=o;i(e,"selectorErrors","selectorErrorArgs",t,r);break}case p:{const{baseName:t}=o;r(e,"selectorErrors","selectorErrorArgs",t);break}case m:{const{baseName:t,args:r}=o;i(e,"actionErrors","actionErrorArgs",t,r);break}case h:{const{baseName:t}=o;r(e,"actionErrors","actionErrorArgs",t);break}}}),s={getErrorForSelector(e,t,i=[]){n()(t,"selectorName is required.");const{selectorErrors:r}=e;return r[f(t,i)]},getErrorForAction(e,t,i=[]){n()(t,"actionName is required.");const{actionErrors:r}=e;return r[f(t,i)]},getErrors(e){const t=new Set([...Object.values(e.selectorErrors),...Object.values(e.actionErrors)]);return Array.from(t)},getMetaDataForSelectorError(e,t){const i=Object.keys(e.selectorErrors).find(i=>e.selectorErrors[i]===t);if(i){return{baseName:i.substring(0,i.indexOf("::")),args:e.selectorErrorArgs[i]}}return null},getSelectorDataForError:(0,a.N)(t=>function(i,r){const n=t(e).getMetaDataForSelectorError(r);if(n){const{baseName:i,args:r}=n;if(!!t(e)[i])return{storeName:e,name:i,args:r}}return null}),hasErrors:e=>s.getErrors(e).length>0};return{initialState:{selectorErrors:{},selectorErrorArgs:{},actionErrors:{},actionErrorArgs:{}},actions:_,controls:{},reducer:o,resolvers:{},selectors:s}}},12205(e,t,i){"use strict";i.d(t,{U:()=>_});var r=i(32091),n=i.n(r),o=i(17243),s=i(50539),a=i(75865),l=i(96499),c=i(4627);function g(e){return e}function d(){return{}}function u(){}const{clearSelectorError:p,clearActionError:m,setErrorForSelector:h,setErrorForAction:f}=l.o1;function _({baseName:e,controlCallback:t,reducerCallback:i=g,argsToParams:r=d,validateParams:l=u,isAction:_=!1}){let b;n()(e,"baseName is required."),n()("function"==typeof t,"controlCallback is required and must be a function."),n()("function"==typeof i,"reducerCallback must be a function."),n()("function"==typeof r,"argsToParams must be a function."),n()("function"==typeof l,"validateParams must be a function.");try{l(r()),b=!1}catch(e){b=!0}const y=(0,c.m2)(e),v=(0,c.sP)(e),k=`FETCH_${v}`,A=`START_${k}`,R=`FINISH_${k}`,E=`CATCH_${k}`,S=`RECEIVE_${v}`,w=`fetch${y}`,x=`receive${y}`,N=`isFetching${y}`,C={[N]:{}};const T={[w](...t){const{fetchArgs:i,fetchOptions:n}=function(e){const t=e[e.length-1];return(0,o.isPlainObject)(t)&&"signal"in t?{fetchArgs:e.slice(0,-1),fetchOptions:t}:e.length&&void 0===t?{fetchArgs:e.slice(0,-1),fetchOptions:void 0}:{fetchArgs:e,fetchOptions:void 0}}(t),s=r(...i);return l(s),function*(t,i,r){let n,o;yield{payload:{params:t},type:A};const s=_?m:p;yield s(e,i);try{n=yield{payload:{params:t,fetchOptions:r},type:k},yield T[x](n,t),yield{payload:{params:t},type:R}}catch(r){o=r;const n=_?f:h;yield n(o,e,i),yield{payload:{params:t},type:E}}return{response:n,error:o}}(s,i,n)},[x]:(e,t)=>(n()(void 0!==e,"response is required."),b?(n()((0,o.isPlainObject)(t),"params is required."),l(t)):t={},{payload:{response:e,params:t},type:S})},L={[k]:({payload:e})=>t(e.params,e.fetchOptions)},O=(0,s.createReducer)((e,{type:t,payload:r})=>{switch(t){case A:{const{params:t}=r;return e[N]=e[N]||{},e[N][(0,a.Zm)(t)]=!0,e}case S:{const{response:t,params:n}=r;return i(e,t,n)}case R:{const{params:t}=r;return e[N]=e[N]||{},e[N][(0,a.Zm)(t)]=!1,e}case E:{const{params:t}=r;return e[N]=e[N]||{},e[N][(0,a.Zm)(t)]=!1,e}default:return e}});return{initialState:C,actions:T,controls:L,reducer:O,resolvers:{},selectors:{[N]:(e,...t)=>{if(void 0===e[N])return!1;let i;try{i=r(...t),l(i)}catch(e){return!1}return!!e[N][(0,a.Zm)(i)]}}}}},4627(e,t,i){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()}function o(e){return e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")}i.d(t,{Uf:()=>o,m2:()=>r,sP:()=>n})},55258(e,t,i){"use strict";i.d(t,{O4:()=>r,OQ:()=>o,qc:()=>n});const r="core/site",n="primary",o="secondary"},20295(e,t,i){"use strict";i.d(t,{Fc:()=>n,Yg:()=>o,nX:()=>r});const r="core/ui",n="activeContextID",o="forced-in-view-widget-areas"},71764(e,t,i){"use strict";i.d(t,{U:()=>n,i:()=>r});const r="core/modules",n="insufficient_module_dependencies"},92255(e,t,i){"use strict";i.d(t,{Bp:()=>o,FQ:()=>s,He:()=>l,bI:()=>a,rq:()=>n,ui:()=>r});const r="warning-notification-gtg",n="gtg-setup-cta",o="setup-success-notification-site-kit",s={ERROR_HIGH:30,ERROR_LOW:60,WARNING:100,INFO:150,SETUP_CTA_WELCOME_MODAL:130,SETUP_CTA_SITE_GOALS_INTRO_MODAL:140,SETUP_CTA_HIGH:150,SETUP_CTA_LOW:200},a={HEADER:"notification-area-header",DASHBOARD_TOP:"notification-area-dashboard-top",OVERLAYS:"notification-area-overlays",SPLASH_CONTENT:"notification-area-splash-content"},l={DEFAULT:"default",SETUP_CTAS:"setup-ctas",SETUP_MODALS:"setup-modals"}},7029(e,t,i){"use strict";i.d(t,{$:()=>o,D:()=>n});var r=i(25084);const n="core/notifications",o=[r.uR,r.jU,r.f7,r.Ax,r.Is]},57112(e,t,i){"use strict";i.d(t,{A:()=>s});var r=i(63696),n=i(32200),o=i(75865);function s(e,t,{viewAction:i="view_notification",confirmAction:s="confirm_notification",dismissAction:a="dismiss_notification",clickLearnMoreAction:l="click_learn_more_link"}={}){const c=(0,n.A)(),g=t??`${c}_${e}`;return{view:(0,r.useCallback)((...e)=>(0,o.sx)(g,i,...e),[g,i]),confirm:(0,r.useCallback)((...e)=>(0,o.sx)(g,s,...e),[g,s]),dismiss:(0,r.useCallback)((...e)=>(0,o.sx)(g,a,...e),[g,a]),clickLearnMore:(0,r.useCallback)((...e)=>(0,o.sx)(g,l,...e),[g,l])}}},38796(e,t,i){"use strict";function r(e,t){for(const[i,r]of Object.entries(t))e.registerNotification(i,r)}i.d(t,{U:()=>r})},5205(e,t,i){"use strict";i.r(t),i.d(t,{AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:()=>d,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:()=>p,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:()=>u,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:()=>g,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:()=>a,AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:()=>r,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:()=>c,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:()=>n,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:()=>l,AREA_MAIN_DASHBOARD_TRAFFIC_AUDIENCE_SEGMENTATION:()=>s,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:()=>o,default:()=>m});const r="mainDashboardKeyMetricsPrimary",n="mainDashboardSiteGoalsPrimary",o="mainDashboardTrafficPrimary",s="mainDashboardTrafficAudienceSegmentation",a="mainDashboardContentPrimary",l="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",g="entityDashboardTrafficPrimary",d="entityDashboardContentPrimary",u="entityDashboardSpeedPrimary",p="entityDashboardMonetizationPrimary",m={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:r,AREA_MAIN_DASHBOARD_SITE_GOALS_PRIMARY:n,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:o,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:a,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:l,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:c,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:g,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:d,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:u,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:p}},65538(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r=i(63696),n=i(51568),o=i(82286);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,i=globalThis){const[s,a]=(0,r.useState)((0,o.d)(i.location.href,e)||t);return[s,function(t){a(t);const r=new URL(i.location.href),{hash:o}=r;r.hash="";const s=(0,n.F)(r.href,{[e]:t})+o;i.history.replaceState(null,"",s)}]}},32200(e,t,i){"use strict";i.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var r=i(63696),n=i(74585);const __WEBPACK_DEFAULT_EXPORT__=function(){return(0,r.useContext)(n.Ay)}},50509(e,t,i){"use strict";i.d(t,{A:()=>o});var r=i(25084),n=i(32200);function o(){const e=(0,n.A)();return r.Nn.includes(e)}},25533(e,t,i){"use strict";i.d(t,{$z:()=>r.$,CR:()=>n.C,Cf:()=>s.DialogContent,Es:()=>s.DialogFooter,Nv:()=>l.N,P3:()=>c.P,Si:()=>o.S,fI:()=>g.fI,fh:()=>g.fh,lG:()=>a.a,xA:()=>g.xA});var r=i(3412),n=i(56655),o=i(30454),s=i(12786),a=i.n(s),l=i(91046),c=i(26569),g=i(23479)},54218(e,t,i){"use strict";i.d(t,{Du:()=>u,GH:()=>a,Gp:()=>l,IS:()=>_,Jg:()=>g,N_:()=>y,O5:()=>b,Ql:()=>p,Qr:()=>m,XH:()=>f,r0:()=>c,sq:()=>h,tt:()=>d});var r=i(32091),n=i.n(r),o=i(17243),s=i(82871);const a="Invalid dateString parameter, it must be a string.",l='Invalid date range, it must be a string with the format "last-x-days".',c=60,g=60*c,d=24*g,u=7*d;function p(){function e(e){return(0,s.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,s._n)("Last %s day","Last %s days",e,"google-site-kit"),e)}return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}function m(e=""){if(!(0,o.isString)(e))return!1;if(3!==e.split("-").length)return!1;const t=new Date(e);return(0,o.isDate)(t)&&!isNaN(t)}function h(e){n()((0,o.isDate)(e)&&!isNaN(e),"Date param must construct to a valid date instance or be a valid date instance itself.");const t=`${e.getMonth()+1}`,i=`${e.getDate()}`;return[e.getFullYear(),t.length<2?`0${t}`:t,i.length<2?`0${i}`:i].join("-")}function f(e){n()(m(e),a);const[t,i,r]=e.split("-");return new Date(t,i-1,r)}function _(e,t){return h(y(e,t*d))}function b(e){const t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]}function y(e,t){n()(m(e)||(0,o.isDate)(e)&&!isNaN(e),a);const i=m(e)?f(e).getTime():e.getTime();return new Date(i-1e3*t)}},59376(e,t,i){"use strict";i.d(t,{G:()=>a,HY:()=>c,SG:()=>l,db:()=>n,e4:()=>d,vl:()=>g});i(17243);var r=i(82871);const n="missing_required_scopes",o="insufficientPermissions",s="forbidden";function a(e){return e?.code===n}function l(e){return[o,s].includes(e?.data?.reason)}function c(e){return!!e?.data?.reconnectURL}function g(e,t){return!(!t?.storeName||l(e)||a(e)||c(e))}function d(e){return"internal_server_error"===e?.code?(0,r.__)("There was a critical error on this website while fetching data","google-site-kit"):"invalid_json"===e?.code?(0,r.__)("The server provided an invalid response","google-site-kit"):e?.message}},26703(e,t,i){"use strict";i.d(t,{Eo:()=>d,JK:()=>h,K5:()=>m,jq:()=>p,mK:()=>g});var r=i(17243),n=i(50532),o=i.n(n),s=i(82871);function a(e,t={}){const{formatUnit:i,formatDecimal:r}=function(e,t={}){const{hours:i,minutes:r,seconds:n}=l(e);return{hours:i,minutes:r,seconds:n,formatUnit(){const{unitDisplay:o="short",...a}=t,l={unitDisplay:o,...a,style:"unit"};return 0===e?p(n,{...l,unit:"second"}):(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?p(n,{...l,unit:"second"}):"",r?p(r,{...l,unit:"minute"}):"",i?p(i,{...l,unit:"hour"}):"").trim()},formatDecimal(){const t=(0,s.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,s.__)("%ds","google-site-kit"),n);if(0===e)return t;const o=(0,s.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,s.__)("%dm","google-site-kit"),r),a=(0,s.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,s.__)("%dh","google-site-kit"),i);return(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),n?t:"",r?o:"",i?a:"").trim()}}}(e,t);try{return i()}catch{return r()}}function l(e){e=parseInt(e,10),Number.isNaN(e)&&(e=0);return{hours:Math.floor(e/60/60),minutes:Math.floor(e/60%60),seconds:Math.floor(e%60)}}function c(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e}function g(e){let t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:(0,r.isPlainObject)(e)&&(t={...e}),t}function d(e,t={}){e=(0,r.isFinite)(e)?e:Number(e),(0,r.isFinite)(e)||(console.warn("Invalid number",e,typeof e),e=0);const i=g(t),{style:n="metric"}=i;return"metric"===n?function(e){const t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,s.__)("%sM","google-site-kit"),p(c(e),e%10==0?{}:t)):1e4<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),p(c(e))):1e3<=e?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),p(c(e),e%10==0?{}:t)):p(e,{signDisplay:"never",maximumFractionDigits:1})}(e):"duration"===n?a(e,i):"durationISO"===n?function(e){let{hours:t,minutes:i,seconds:r}=l(e);return r=("0"+r).slice(-2),i=("0"+i).slice(-2),t=("0"+t).slice(-2),"00"===t?`${i}:${r}`:`${t}:${i}:${r}`}(e):p(e,i)}const u=o()(console.warn);function p(e,t={}){const{locale:i=h(),...r}=t;try{return new Intl.NumberFormat(i,r).format(e)}catch(t){u(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(i)}, ${JSON.stringify(r)} ).format( ${typeof e} )`,t.message)}const n={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],s={};for(const[e,t]of Object.entries(r))n[e]&&t===n[e]||o.includes(e)||(s[e]=t);try{return new Intl.NumberFormat(i,s).format(e)}catch{return new Intl.NumberFormat(i).format(e)}}function m(e,t={}){const{locale:i=h(),style:r="long",type:n="conjunction"}=t;if(Intl.ListFormat){return new Intl.ListFormat(i,{style:r,type:n}).format(e)}
/* translators: used between list items, there is a space after the comma. */const o=(0,s.__)(", ","google-site-kit");return e.join(o)}function h(e=globalThis){const t=(0,r.get)(e,["_googlesitekitLegacyData","locale"]);if(t){const e=t.match(/^(\w{2})?(_)?(\w{2})/);if(e&&e[0])return e[0].replace(/_/g,"-")}return e.navigator.language}},75865(e,t,i){"use strict";i.d(t,{tt:()=>m.tt,Jg:()=>m.Jg,Gp:()=>m.Gp,GH:()=>m.GH,r0:()=>m.r0,Du:()=>m.Du,Zf:()=>S,Cn:()=>y,G7:()=>p,vH:()=>u,N_:()=>m.N_,zh:()=>x,mK:()=>a.mK,Ql:()=>m.Ql,vY:()=>b,sq:()=>m.sq,VZ:()=>v.VZ,JK:()=>a.JK,IS:()=>m.IS,pH:()=>v.pH,kf:()=>A,O5:()=>m.O5,Qr:()=>m.Qr,x6:()=>k,K5:()=>a.K5,S_:()=>d,dc:()=>v.dc,Eo:()=>a.Eo,jq:()=>a.jq,DK:()=>E.D,N9:()=>R,p9:()=>o.p,XH:()=>m.XH,Zm:()=>s.Z,sx:()=>n.sx,BI:()=>n.BI,CZ:()=>o.C,BG:()=>w});var r=i(17243),n=i(39494),o=i(12968),s=i(65294),a=i(26703);function l(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function c(e){return`${e.replace(/\n{2,}/g,"
")}
`}function g(e){return e.replace(/\n/gi,"
")}function d(e){const t=[l,c,g];let i=e;for(const e of t)i=e(i);return i}function u(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]}function p(e){const t=e&&!Number.isInteger(e)?new Date(e).getTime():e;return isNaN(t)||!t?0:t}var m=i(54218),h=i(30908),f=i(72558),_=i(62540);function b(e,t={}){if(Number.isNaN(Number(e)))return"";const{invertColor:i=!1}=t;return(0,h.Ay)((0,_.jsx)(f.A,{direction:e>0?"up":"down",invertColor:i}))}function y(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}var v=i(28085);function k(e){const t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function A(e){if("number"==typeof e)return!0;const t=(e||"").toString();return!!t&&!isNaN(t)}function R(e){return Array.isArray(e)?[...e].sort():e}var E=i(86416);function S(e,t){function i(e){return"0"===e||0===e}if(i(e)&&i(t))return 0;if(i(e)||Number.isNaN(e))return null;const r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}function w(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}function x(e){if(!e)return"";const t=e.replace(/(\d+);/g,(e,t)=>String.fromCharCode(t)).replace(/(\\)/g,"");return(0,r.unescape)(t)}},86416(e,t,i){"use strict";i.d(t,{D:()=>o});var r=i(32091),n=i.n(r);function o(e,{dateRangeLength:t}){n()(Array.isArray(e),"report must be an array to partition."),n()(Number.isInteger(t)&&t>0,"dateRangeLength must be a positive integer.");const i=-1*t;return{currentRange:e.slice(i),compareRange:e.slice(2*i,i)}}},81480(e,t,i){"use strict";i.d(t,{O:()=>n});var r=i(31234);const n=i.n(r)()(globalThis)},12968(e,t,i){"use strict";i.d(t,{C:()=>o,p:()=>n});var r=i(81480);function n(e,t={}){return{__html:r.O.sanitize(e,t)}}function o(e){const t="object"==typeof e?e.toString():e;return t?.replace?.(/\/+$/,"")}},65589(e,t,i){"use strict";i.d(t,{YJ:()=>o,Eq:()=>s,Jc:()=>a});var r=i(64510),n=i(17243);function o(e,t){const i=document.querySelector(e);if(!i)return 0;const r=i.getBoundingClientRect().top,n=s(t);return r+globalThis.scrollY-n}function s(e){let t=function(e){let t=0;const i=document.querySelector(".googlesitekit-header");t=i&&"sticky"===globalThis.getComputedStyle(i).position?function(e){const t=document.querySelector(".googlesitekit-header");if(t){if(e===r.mp)return t.offsetHeight;const i=t.getBoundingClientRect().bottom;return i<0?0:i}return 0}(e):a(e);return t=function(e){return(0,n.isFinite)(e)?e:0}(t),t<0?0:t}(e);const i=document.querySelectorAll(".googlesitekit-navigation, .googlesitekit-entity-header");return t+=Array.from(i).reduce((e,t)=>e+t.offsetHeight,0),t}function a(e){const t=document.querySelector("#wpadminbar");return t&&e!==r.mp?t.offsetHeight:0}},65294(e,t,i){"use strict";i.d(t,{Z:()=>o});var r=i(10523),n=i.n(r);function o(e){return n()(JSON.stringify(s(e)))}function s(e){const t={};return Object.keys(e).sort().forEach(i=>{let r=e[i];r&&"object"==typeof r&&!Array.isArray(r)&&(r=s(r)),t[i]=r}),t}},39494(e,t,i){"use strict";i.d(t,{M9:()=>E,sx:()=>A,BI:()=>R});var r=i(17243),n=i(67608);const o="_googlesitekitDataLayer",s="data-googlesitekit-gtag";function a(e){return function(){e[o]=e[o]||[],e[o].push(arguments)}}const l={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:c=[],isSiteKitScreen:g,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:m,isAuthenticated:h,userRoles:f}=globalThis._googlesitekitTrackingData||{},_={activeModules:c,trackingEnabled:d,trackingID:u,referenceSiteURL:p,userIDHash:m,isSiteKitScreen:g,userRoles:f,isAuthenticated:h,pluginVersion:"1.184.0"},{enableTracking:b,disableTracking:y,isTrackingEnabled:v,initializeSnippet:k,trackEvent:A,trackEventOnce:R}=function(e,t=globalThis,i=globalThis){const c={...l,...e};c.referenceSiteURL&&(c.referenceSiteURL=c.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(e,t){const i=a(t);let r;const{activeModules:l,referenceSiteURL:c,userIDHash:g,userRoles:d=[],isAuthenticated:u,pluginVersion:p}=e;return function(){const{document:t}=globalThis;if(void 0===r&&(r=!!t.querySelector(`script[${s}]`)),r)return!1;r=!0;const a=d?.length?d.join(","):"";i("js",new Date),i("config",e.trackingID,{groups:"site_kit",send_page_view:e.isSiteKitScreen,domain:c,plugin_version:p||"",enabled_features:Array.from(n.t).join(","),active_modules:l.join(","),authenticated:u?"1":"0",user_properties:{user_roles:a,user_identifier:g}});const m=t.createElement("script");return m.setAttribute(s,""),m.async=!0,m.src=`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`,t.head.appendChild(m),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${e.trackingID}&l=${o}`}}}(c,t),d=function(e,t,i,r){const n=a(t);return async function(t,o,s,a){const{trackingEnabled:l}=e;if(!l)return null;i();const c={send_to:"site_kit",event_category:t,event_label:s,value:a};return new Promise(e=>{const i=setTimeout(function(){r.console.warn(`Tracking event "${o}" (category "${t}") took too long to fire.`),e()},1e3);function s(){clearTimeout(i),e()}n("event",o,{...c,event_callback:s}),r._gaUserPrefs?.ioo?.()&&s()})}}(c,t,g,i),u={};return{enableTracking:function(){c.trackingEnabled=!0},disableTracking:function(){c.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!c.trackingEnabled},trackEvent:d,trackEventOnce:function(...e){const t=JSON.stringify(e);u[t]||(u[t]=(0,r.once)(d)),u[t](...e)}}}(_);function E(e){e?b():y()}g&&d&&k()},28085(e,t,i){"use strict";i.d(t,{VZ:()=>o,dc:()=>s,pH:()=>n,r0:()=>a});var r=i(84024);function n(e){try{return new URL(e).pathname}catch{}return null}function o(e,t){try{return new URL(t,e).href}catch{}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function s(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(e,t){if(!(0,r.m)(e))return e;if(e.length<=t)return e;const i=new URL(e),n=e.replace(i.origin,"");if(n.lengtha});var r=i(50539),n=i(4627),o=i(71764),s=i(62540);function a({moduleName:e,FallbackComponent:t,IncompleteComponent:i}){return a=>{function WhenActiveComponent(n){const l=(0,r.useSelect)(t=>t(o.i).getModule(e),[e]);if(!l)return null;const c=t||n.WidgetNull||null;if(!1===l.active)return c&&(0,s.jsx)(c,{...n});if(!1===l.connected){const e=i||c;return e&&(0,s.jsx)(e,{...n})}return(0,s.jsx)(a,{...n})}return WhenActiveComponent.displayName=`When${(0,n.Uf)(e)}Active`,(a.displayName||a.name)&&(WhenActiveComponent.displayName+=`(${a.displayName||a.name})`),WhenActiveComponent}}},54419(e){"use strict";e.exports=googlesitekit.api},49383(e){"use strict";e.exports=googlesitekit.components},50539(e){"use strict";e.exports=googlesitekit.data},82871(e){"use strict";e.exports=googlesitekit.i18n},13620(e){"use strict";e.exports=googlesitekit.modules},46935(e){"use strict";e.exports=googlesitekit.notifications},88176(e){"use strict";e.exports=googlesitekit.widgets},12078(){},59203(){}},e=>{e.O(0,[660],()=>{return t=23334,e(e.s=t);var t});e.O()}]);