Site Kit by Google - Version 1.38.1

Version Description

Fixed

  • Fix fatal error that could be triggered by other plugins or themes using an unprefixed version of Composer. See #3830.
Download this release

Release Info

Developer flixos90
Plugin Icon 128x128 Site Kit by Google
Version 1.38.1
Comparing to
See all releases

Code changes from version 1.38.0 to 1.38.1

dist/assets/js/{googlesitekit-activation.78d4daefa88cf47b66b0.js → googlesitekit-activation.cb399a40c0d165234506.js} RENAMED
@@ -1,5 +1,5 @@
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[2],{100:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return r?e.createElement("span",a()({},i,{className:u()("screen-reader-text",n)}),r):null}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(1))},101:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(17),a=n.n(r),i=n(6),o=n.n(i),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,i=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,g=t.smSize,p=t.smStart,m=t.mdSize,h=t.mdStart,v=t.lgSize,b=t.lgStart,k=t.size,y=t.children,_=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",a()({},_,{className:f()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(k),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(g,"-phone"),4>=g&&g>0),o()(n,"mdc-layout-grid__cell--start-".concat(p,"-phone"),4>=p&&p>0),n))}),y)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(1))},102:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function Row(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid__inner",n)},i),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(1))},103:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function Grid(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid",n)},i),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(1))},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));var r="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},112:function(e,t,n){"use strict";var r=n(106);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(r.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,a){if(n)return a(e);setTimeout((function(){n=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var s,l=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",u=Object(r.getStablePath)(c);if(o&&"GET"===l&&t[u]){var d=Promise.resolve(t[u].body);return delete t[u],d}if("OPTIONS"===l&&t[l]&&t[l][u]){var f=Promise.resolve(t[l][u]);return delete t[l][u],f}}return a(e)}}},114:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(95),i=n(37),o=function(e){var t=Object(r.useContext)(a.a);return Object(i.b)(e,t)}},116:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(5),u=n.n(l),d=n(23),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,a()({width:r,height:r},i)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(1))},117:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(229),o=n.n(i),c=n(8),s=n.n(c),l=n(225),u=n(1),d=n(2),f=n(24),g=n(21),p=n(20),m=n(149),h=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,a=t.title,i=t.provides,c=t.handleConfirm,h=t.subtitle,v=t.confirmButton,b=t.dependentModules,k=t.danger,y=t.inProgress,_=void 0!==y&&y,E=Object(u.useCallback)((function(e){null!==e&&p.e.attachTo(e)}),[]),O=Object(l.a)(Dialog),j="googlesitekit-dialog-label-".concat(O),w="googlesitekit-dialog-description-".concat(O),S=!(!i||!i.length);return e.createElement("div",{ref:E,className:s()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":a?j:void 0,"aria-describedby":S?w:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},a&&e.createElement("h2",{id:j,className:"mdc-dialog__title"},a),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),S&&e.createElement("section",{id:w,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},i.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),b&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),b),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:k,disabled:_},v||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:_}),e.createElement(g.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:_},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,title:a.a.string,description:a.a.string,confirmButton:a.a.string,danger:a.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(1))},118:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(2),o=n(200),c=n(316),s=n(24),l=n(89),u=function SurveyHeader(t){var n=t.title,r=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__header"},e.createElement("div",{className:"googlesitekit-survey__header-logo"},e.createElement(l.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-survey__header-details"},e.createElement("h3",null,n),e.createElement(s.a,{"aria-label":Object(i.__)("Dismiss","google-site-kit"),icon:e.createElement(o.a,{icon:c.a,size:40}),onClick:r,className:"googlesitekit-survey__header-close"})))};u.propTypes={title:a.a.string.isRequired,dismissSurvey:a.a.func.isRequired},t.a=u}).call(this,n(1))},126:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(31),s=n(62),l=n(27),u=(Object(c.c)("googlesitekit.winCallbacks",{}),function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])});function d(){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function t(){var n,r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e._googlesitekitLegacyData.setup).isSiteKitConnected&&(n.isAuthenticated||n.isVerified)){t.next=3;break}return t.abrupt("return",0);case 3:return r=0,t.next=6,p();case 6:return(i=t.sent)&&i.total&&(r+=i.total),r=Object(c.c)("googlesitekit.TotalNotifications",r),r=Math.max(0,Math.abs(r)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",r),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var g=function(e){return e?e.length?e.filter((function(e){return!Object(l.c)("notification::dismissed::".concat(e.id))})):e:[]};function p(){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function e(){var t,n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,u();case 4:return r=e.sent,i=[],r.map(function(){var e=o()(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(a.a.mark((function e(n){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.identifier,e.t0=g,e.next=4,s.c.get(s.b,r,"notifications",{},!1);case 4:e.t1=e.sent,i=(0,e.t0)(e.t1),n({identifier:r,notifications:i});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),i.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(i).then((function(e){e.forEach((function(e){e.notifications.length&&(n+=e.notifications.length,t[e.identifier]=e.notifications)}))}));case 9:return e.abrupt("return",{results:t,total:n});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},v=function(t){var n=Math.max(0,Math.abs(t.count)-1);return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}}}).call(this,n(14))},131:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u}));var r="https://cdn.ampproject.org/v0.js",a="amp_cdn_restricted",i="check_api_unavailable",o="check_fetch_failed",c="google_api_connection_fail",s="invalid_hostname",l="setup_token_mismatch",u="wp_pre_v5"},134:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(11),s=n(166),l=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=l((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),a=l((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||a?null:e.createElement(s.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory,callback:r.callback})}FeatureTours.propTypes={viewContext:a.a.string}}).call(this,n(1))},138:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(9),s=["fetch_error"];function l(e){return u.apply(this,arguments)}function u(){return(u=o()(a.a.mark((function e(t){var n,r,i,o,l,u,d,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.method,o=t.type,l=t.identifier,u=t.datapoint,(d=t.error)&&!s.includes(null==d?void 0:d.code)){e.next=3;break}return e.abrupt("return");case 3:return f="code: ".concat(d.code),(null===(n=d.data)||void 0===n?void 0:n.reason)&&(f+=", reason: ".concat(d.data.reason)),e.next=7,Object(c.v)("api_error","".concat(i,":").concat(o,"/").concat(l,"/data/").concat(u),"".concat(d.message," (").concat(f,")"),(null===(r=d.data)||void 0===r?void 0:r.status)||d.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},141:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",a({viewBox:"0 0 14 14",fill:"none"},e),i)}},148:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(1))},149:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(1))},15:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r="core/site",a="primary",i="secondary"},154:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(62),s=n(40);function l(e,t){return u.apply(this,arguments)}function u(){return(u=o()(a.a.mark((function e(t,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.c.invalidateCacheGroup(c.a,"site","notifications"),e.next=3,Object(s.b)("site_notifications",n,t);case 3:return e.next=5,c.c.set(c.a,"site","mark-notification",{notificationID:t,notificationState:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return p.apply(this,arguments)}function p(){return(p=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},157:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",a({viewBox:"0 0 28 25"},e),i)}},158:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(1))},159:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(160),s=n(161),l=n(37),u=n(162),d=n(163),f=n(164),g=n(165),p=n(114),m=n(169);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,i=void 0===a?null:a,h=t.dataAPIContext,v=t.dataAPIModuleArgs,b=Object(p.a)("userFeedback");return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(s.a,{value:l.a},e.createElement(c.a,{viewContext:i},e.createElement(d.a,null,n,i&&e.createElement(g.a,{viewContext:i}),h&&e.createElement(f.a,{context:h,args:v}),b&&e.createElement(m.a,null)),e.createElement(u.a,null))))}Root.propTypes={children:a.a.node.isRequired,registry:a.a.object,viewContext:a.a.string,dataAPIContext:a.a.string,dataAPIModuleArgs:a.a.object},Root.defaultProps={registry:o.a}}).call(this,n(1))},160:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(55),l=n.n(s),u=n(43),d=n.n(u),f=n(44),g=n.n(f),p=n(29),m=n.n(p),h=n(228),v=n.n(h),b=n(0),k=n.n(b),y=n(1),_=n(2),E=n(200),O=n(314),j=n(315),w=n(39),S=n(21),D=n(24),x=n(9);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var C=function(t){d()(ErrorHandler,t);var n=N(ErrorHandler);function ErrorHandler(e){var t;return i()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(l()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,a=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(x.v)("react_error","handle_".concat(a,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;v()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,a=t.info,i=t.copied;if(!n)return e;var o=r.createElement(E.a,{className:"mdc-button__icon",icon:i?O.a:j.a});return r.createElement(w.a,{id:"googlesitekit-error",title:Object(_.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(y.Fragment,null,r.createElement(D.a,{trailingIcon:o,onClick:this.onErrorClick},Object(_.__)("Copy error to clipboard","google-site-kit")),r.createElement(S.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(_.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,a.componentStack))}}]),ErrorHandler}(y.Component);C.propTypes={children:k.a.node.isRequired},t.a=C}).call(this,n(14),n(1))},161:function(e,t,n){"use strict";var r=n(95),a=(r.a.Consumer,r.a.Provider);t.a=a},162:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(2),l=n(1),u=n(5),d=n.n(u),f=n(11),g=n(41),p=n(93),m=n(117),h=n(90),v=d.a.useSelect,b=d.a.useDispatch,k=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,a,o=k(),u=v((function(e){return e(f.a).getPermissionScopeError()})),d=v((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),y=b(f.a).clearPermissionScopeError,_=b(g.a).navigateTo,E=Object(l.useCallback)((function(){y()}),[y]),O=Object(l.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.c)(o);case 2:_(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,_]);return Object(l.useEffect)((function(){(function(){var e=c()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,O();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[O,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(a=u.data)||void 0===a?void 0:a.skipModal)?null:r.createElement(h.a,null,r.createElement(m.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:O,handleDialog:E})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(14),n(1))},163:function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(1),u=n(5),d=n.n(u),f=n(93),g=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=g(),r=Object(l.useState)(!1),i=s()(r,2),c=i[0],u=i[1];return Object(l.useEffect)((function(){c||o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},164:function(e,t,n){"use strict";n.d(t,"a",(function(){return CollectModuleData}));var r=n(1),a=n(31),i=(n(62),n(5)),o=n.n(i),c=n(11),s=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,i=s((function(e){return e(c.a).getDateRange()}));return Object(r.useEffect)((function(){return function(){return Object(a.d)("googlesitekit.moduleDataReset")}}),[i]),Object(r.useEffect)((function(){Object(a.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,i]),null}},165:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),a=n.n(r),i=n(150),o=n(134);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FeatureToursDesktop(t){return Object(i.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o.a.propTypes)}).call(this,n(1))},166:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var a=n(6),i=n.n(a),o=n(156),c=n(30),s=n(0),l=n.n(s),u=n(2),d=n(5),f=n.n(d),g=n(67),p=n(11),m=n(40),h=n(167);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=f.a.useSelect,k=f.a.useDispatch,y={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},_={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",j="feature_tooltip_advance",w="feature_tooltip_return",S="feature_tooltip_dismiss",D="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,a=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(a,"-step"),d="".concat(a,"-run"),f=k(g.a).setValue,x=k(p.a).dismissTour,N=b((function(e){return e(g.a).getValue(u)})),C=b((function(e){return e(g.a).getValue(d)&&!1===e(p.a).isTourDismissed(a)}));Object(o.a)((function(){f(d,!0)}));var M=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,a=e.size,i=e.status,o=e.type,l=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(s,O,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(s,S,l):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===l&&Object(m.b)(s,D,l),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(s,w,l),n===c.a.NEXT&&Object(m.b)(s,j,l))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,d=t.type,g=n===c.a.CLOSE,p=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),h=[c.d.FINISHED,c.d.SKIPPED].includes(i),v=g&&d===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===d){var k,y,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(k=_)||void 0===k||null===(y=k.scrollIntoView)||void 0===y||y.call(k,{block:"center"})}p?function(e,t){f(u,e+(t===c.a.PREV?-1:1))}(r,n):b&&x(a),l&&l(t)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:_,run:C,showProgress:!0,stepIndex:N,steps:M,styles:y,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.string.isRequired,callback:l.a.func}}).call(this,n(14),n(1))},167:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(17),a=n.n(r),i=n(155),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(168),f=n(141),g=n(24);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,p=t.step,m=t.tooltipProps,h=u>1?Object(d.a)(u):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",a()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},p.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},p.content)),e.createElement(i.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(g.a,a()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(1))},168:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},169:function(e,t,n){"use strict";(function(e){var r=n(5),a=n.n(r),i=n(15),o=n(11),c=n(170),s=n(90),l=a.a.useSelect;t.a=function CurrentSurveyPortal(){var t=l((function(e){return e(i.c).isUsingProxy()})),n=l((function(e){return e(o.a).getCurrentSurvey()}));return t&&n?e.createElement(s.a,{slug:"survey"},e.createElement(c.a,null)):null}}).call(this,n(1))},170:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CurrentSurvey}));var r=n(6),a=n.n(r),i=n(26),o=n.n(i),c=n(13),s=n.n(c),l=n(156),u=n(232),d=n(1),f=n(5),g=n.n(f),p=n(54),m=n(11),h=n(171),v=n(172),b=n(179);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=g.a.useDispatch,E=g.a.useSelect,O={rating:v.a};function CurrentSurvey(){var t=Object(d.useState)(!1),n=s()(t,2),r=n[0],i=n[1],c=Object(d.useState)(!1),f=s()(c,2),g=f[0],v=f[1],k=Object(d.useState)(!1),j=s()(k,2),w=j[0],S=j[1],D=Object(d.useState)(!1),x=s()(D,2),N=x[0],C=x[1],M=E((function(e){return e(m.a).getCurrentSurveyCompletions()})),T=E((function(e){return e(m.a).getCurrentSurveyQuestions()})),L=E((function(e){return e(m.a).getCurrentSurveySession()})),P=E((function(e){return e(m.a).isTrackingEnabled()})),A=L?"survey-".concat(L.session_id):null,R=E((function(e){return e(p.a).getValue(A,"hideSurvey")})),I=E((function(e){return e(p.a).getValue(A,"answers")})),F=_(p.a).setValues,z=_(m.a).sendSurveyEvent;Object(d.useEffect)((function(){(null==T?void 0:T.length)&&!r&&(i(!0),z("survey_shown"))}),[T,r,z]);var U,q=Math.max.apply(Math,[0].concat(o()((I||[]).map((function(e){return e.question_ordinal})))))+1,B=null==T?void 0:T.find((function(e){return e.question_ordinal===q})),H=Object(d.useCallback)((function(e){N||(C(!0),z("question_answered",{question_ordinal:null==B?void 0:B.question_ordinal,answer:e}),setTimeout((function(){F(A,{answers:[].concat(o()(I||[]),[{question_ordinal:null==B?void 0:B.question_ordinal,answer:e}])}),C(!1)}),300))}),[I,B,A,z,F,N]),W=(null==I?void 0:I.length)?I.reduce((function(e,t){return y(y({},e),{},a()({},t.question_ordinal,t.answer.answer.answer_ordinal))}),{}):[];(null==T?void 0:T.length)&&q>(null==T?void 0:T.length)&&(null==M||M.some((function(e){return e.trigger_condition.some((function(t){return!!t.answer_ordinal.includes(W[t.question_ordinal])&&(U=e,!0)})),!!U})),U||(U=M[0]));var G=Object(d.useCallback)((function(){var e;z("follow_up_link_clicked",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}),z("survey_closed"),F(A,{hideSurvey:!0})}),[A,z,F,U]),V=Object(d.useCallback)((function(){z("survey_closed"),S(!1)}),[z]),K=Object(d.useCallback)((function(){F(A,{hideSurvey:!0})}),[A,F]);if(Object(d.useEffect)((function(){var e;U&&!g&&(v(!0),z("completion_shown",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}))}),[g,z,U]),Object(l.a)((function(){S(!0)})),R||!T||!M||void 0===P)return null;if(U)return e.createElement(u.a,{direction:"up",in:w,onExited:K},e.createElement("div",{className:"googlesitekit-survey"},e.createElement(h.a,{dismissSurvey:V,ctaOnClick:G,ctaText:U.follow_up_text,ctaURL:U.follow_up_url,title:U.completion_title},U.completion_text)));var $=O[null==B?void 0:B.question_type];return $?e.createElement(u.a,{direction:"up",in:w,onExited:K},e.createElement("div",{className:"googlesitekit-survey"},e.createElement($,{key:B.question_text,answerQuestion:H,choices:B.question.answer_choice,dismissSurvey:V,question:B.question_text}),!1===P&&1===(null==B?void 0:B.question_ordinal)&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(b.a,null)))):null}}).call(this,n(1))},171:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(24),o=n(118),c=function SurveyCompletion(t){var n=t.title,r=t.children,a=t.ctaText,c=t.ctaURL,s=t.ctaOnClick,l=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__completion"},e.createElement(o.a,{title:n,dismissSurvey:l}),e.createElement("div",{className:"googlesitekit-survey__body"},r),c&&a&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(i.a,{href:c,onClick:s,target:"_blank"},a)))};c.propTypes={title:a.a.string.isRequired,children:a.a.node,ctaText:a.a.string,ctaURL:a.a.string,ctaOnClick:a.a.func,dismissSurvey:a.a.func.isRequired},c.defaultProps={title:"",children:null,ctaText:"",ctaURL:"",ctaOnClick:null},t.a=c}).call(this,n(1))},172:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(118),o=n(173),c=function SurveyQuestionRating(t){var n=t.question,r=t.choices,a=t.answerQuestion,c=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__question-rating"},e.createElement(i.a,{title:n,dismissSurvey:c}),e.createElement("div",{className:"googlesitekit-survey__body"},e.createElement("div",{className:"googlesitekit-survey__choices"},r.map((function(t,n){return e.createElement(o.a,{key:n,choice:t,answerQuestion:a})})))))};c.propTypes={question:a.a.string.isRequired,choices:a.a.arrayOf(a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string})).isRequired,answerQuestion:a.a.func.isRequired,dismissSurvey:a.a.func.isRequired},t.a=c}).call(this,n(1))},173:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(24),c=n(174),s=n(175),l=n(176),u=n(177),d=n(178),f={1:c.a,2:s.a,3:l.a,4:u.a,5:d.a},g=function SurveyQuestionRatingChoice(t){var n=t.choice,r=t.answerQuestion,a=Object(i.useCallback)((function(){"function"==typeof r&&r({answer:{answer_ordinal:n.answer_ordinal}})}),[r,n]),c=f[n.answer_ordinal];return c?e.createElement("div",{className:"googlesitekit-survey__choice"},e.createElement(o.a,{icon:e.createElement(c,{width:30,height:30}),"aria-label":n.text,onClick:a}),e.createElement("p",null,n.text)):null};g.propTypes={choice:a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string}).isRequired},t.a=g}).call(this,n(1))},174:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zm-2.415 9c1.2-3.06 4.17-5.25 7.665-5.25s6.465 2.19 7.665 5.25H7.335z",fill:"currentColor"});t.a=function SvgSurveyUnhappy(e){return r.createElement("svg",a({fill:"none"},e),i)}},175:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm-13.725 9c1.245-3.495 4.56-6 8.49-6 3.915 0 7.23 2.505 8.475 6h-3.315c-1.035-1.785-2.955-3-5.16-3-2.22 0-4.125 1.215-5.175 3H6.525zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyDissatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},176:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zM9.75 9A2.247 2.247 0 0112 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9zm10.5 0A2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25 2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9zM10.5 22.5v-3h9v3h-9zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyNeutral(e){return r.createElement("svg",a({fill:"none"},e),i)}},177:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm3.225 4.5c-1.245 3.495-4.56 6-8.49 6-3.915 0-7.23-2.505-8.475-6h3.315c1.035 1.785 2.955 3 5.16 3 2.22 0 4.125-1.215 5.175-3h3.315zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveySatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},178:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zM22.665 18c-1.2 3.06-4.17 5.25-7.665 5.25S8.535 21.06 7.335 18h15.33z",fill:"currentColor"});t.a=function SvgSurveyDelighted(e){return r.createElement("svg",a({fill:"none"},e),i)}},179:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(2),a=n(146),i=n(5),o=n.n(i),c=n(15),s=n(21),l=o.a.useSelect;function SurveyTerms(){var t=l((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=l((function(e){return e(c.c).getGoogleTermsURL()}));return e.createElement("p",{className:"googlesitekit-survey__terms"},Object(a.a)(Object(r.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:e.createElement(s.a,{href:t,inherit:!0,external:!0}),terms:e.createElement(s.a,{href:n,inherit:!0,external:!0})}))}}).call(this,n(1))},183:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(5),a=n.n(r),i=n(23),o=n(8),c=n.n(o),s=n(157),l=a.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=l((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(s.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(1))},193:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSettings}));var r=n(0),a=n.n(r),i=n(225),o=n(2),c=n(5),s=n.n(c),l=n(39),u=n(9),d=n(11),f=n(15),g=n(211),p=s.a.useSelect;function UserInputSettings(t){var n=t.onCTAClick,r=t.onDismiss,a=t.isDismissable,c=Object(i.a)(UserInputSettings),s=p((function(e){return e(f.c).getAdminURL("googlesitekit-user-input")}));return"completed"===p((function(e){return e(d.a).getUserInputState()}))?null:e.createElement(l.a,{id:"user-input-settings-notification-".concat(c),className:"googlesitekit-user-input__notification",title:Object(o.__)("Customize Site Kit to match your goals","google-site-kit"),description:Object(o.__)("Answer 5 questions and Site Kit will customize your dashboard with specific metrics and opportunities that match your site’s goals","google-site-kit"),format:"large",dismissExpires:3*Object(u.k)("hour"),ctaLink:s,ctaLabel:Object(o.__)("Let’s go","google-site-kit"),onCTAClick:n,dismiss:Object(o.__)("Remind me later","google-site-kit"),WinImageSVG:g.a,isDismissable:a,onDismiss:r})}UserInputSettings.propTypes={onCTAClick:a.a.func,onDismiss:a.a.func,isDismissable:a.a.bool}}).call(this,n(1))},2:function(e,t){e.exports=googlesitekit.i18n},20:function(e,t,n){"use strict";var r=n(86),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(186);n.d(t,"i",(function(){return i.a}));var o=n(246);n.d(t,"f",(function(){return o.a}));var c=n(247);n.d(t,"h",(function(){return c.a}));var s=n(107),l=n.n(s);n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return s.Option}));var u=n(248);n.d(t,"j",(function(){return u.a}));var d=n(245);n.d(t,"e",(function(){return d.a}));var f=n(244);n.d(t,"g",(function(){return f.a}));var g=n(92);n.d(t,"a",(function(){return g.a})),n.d(t,"b",(function(){return g.b})),n.d(t,"l",(function(){return g.c}))},202:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(2),u=n(1),d=n(5),f=n.n(d),g=n(15),p=n(11),m=n(39),h=n(154),v=f.a.useSelect;t.a=function DashboardCoreSiteAlerts(){var t=Object(u.useState)(!1),n=s()(t,2),r=n[0],i=n[1],c=Object(u.useState)(!1),d=s()(c,2),f=d[0],b=d[1],k=Object(u.useRef)(Date.now()),y=v((function(e){return e(p.a).getCurrentSurvey()})),_=v((function(e){return e(g.c).getNotifications()}));return Object(u.useEffect)((function(){var e=setTimeout((function(){f||i(!0)}),5e3);return function(){clearTimeout(e)}}),[f]),Object(u.useEffect)((function(){Math.floor((Date.now()-k.current)/1e3)<5&&y&&b(!0)}),[k,y,b]),Array.isArray(_)&&r&&!f?_.map((function(t){return e.createElement(m.a,{key:t.id,id:t.id,title:t.title||"",description:t.content||"",learnMoreURL:t.learnMoreURL||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",dismiss:t.dismissLabel||Object(l.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}).call(this,n(1))},203:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(43),l=n.n(s),u=n(44),d=n.n(u),f=n(29),g=n.n(f),p=n(1),m=n(2),h=n(31),v=n(9),b=n(39),k=n(204),y=n(205),_=n(206);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var O=function(t){l()(DashboardSetupAlerts,t);var n=E(DashboardSetupAlerts);function DashboardSetupAlerts(){return i()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(v.j)("notification");if(!t||""===t)return null;var n={id:"connected-successfully",setupTitle:Object(m.__)("Site Kit","google-site-kit"),description:Object(m.__)("Now you’ll be able to see how your site is doing in search. To get even more detailed stats, activate more modules. Here are our recommendations for what to include in your Site Kit:","google-site-kit"),learnMore:{label:"",url:"",description:""}},a=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!a)return null;var i=Object(v.i)(),o=Object(v.j)("slug");return o&&i[o]&&!i[o].active?null:(o&&i[o]&&(n.id="".concat(n.id,"-").concat(o),n.setupTitle=i[o].name,n.description=Object(m.__)("Here are some other services you can connect to see even more stats:","google-site-kit"),n=Object(h.c)("googlesitekit.SetupWinNotification-".concat(o),n)),r.createElement(p.Fragment,null,r.createElement(b.a,{id:n.id
2
- /* translators: %s: the name of a module that setup was completed for */,title:Object(m.sprintf)(Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},WinImageSVG:y.a,dismiss:Object(m.__)("OK, Got it!","google-site-kit"),format:"large",type:"win-success",learnMoreLabel:n.learnMore.label,learnMoreDescription:n.learnMore.description,learnMoreURL:n.learnMore.url,anchorLink:"pagespeed-insights"===o?"#googlesitekit-pagespeed-header":"",anchorLinkLabel:"pagespeed-insights"===o?Object(m.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"):""},r.createElement(k.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return r.createElement(p.Fragment,null,r.createElement(b.a,{id:"connection error",title:Object(m.__)("There was a problem connecting to Google!","google-site-kit"),description:"",handleDismiss:function(){},format:"small",type:"win-error"}));case"user_input_success":return r.createElement(_.a,null)}}}]),DashboardSetupAlerts}(p.Component);t.a=O}).call(this,n(14),n(1))},204:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(2),g=n(9),p=n(5),m=n.n(p),h=n(21),v=n(116),b=n(183),k=n(100),y=n(15),_=n(23),E=n(41);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=m.a.useSelect,S=m.a.useDispatch;t.a=function ModulesList(t){var n=t.moduleSlugs,r=S(_.a).activateModule,i=S(E.a).navigateTo,c=S(y.c).setInternalServerError,l=w((function(e){return e(_.a).getModules()})),p=Object(d.useCallback)(function(){var e=s()(o.a.mark((function e(t){var n,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(n=e.sent,a=n.response,!(s=n.error)){e.next=8;break}return c({id:"setup-module-error",description:s.message}),e.abrupt("return",null);case 8:return e.next=10,Object(g.v)("".concat(t,"_setup"),"module_activate",t);case 10:i(a.moduleReauthURL);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,i,c]);if(!l)return null;var m=Array.isArray(n)&&n.length?n.filter((function(e){return l.hasOwnProperty(e)})).reduce((function(e,t){return j(j({},e),{},a()({},t,l[t]))}),{}):l,O=Object.values(m).filter((function(e){return!e.internal&&0===e.dependencies.length})).sort((function(e,t){return e.order-t.order}));return e.createElement("div",{className:"googlesitekit-modules-list"},O.map((function(t){var n=t.slug,r=t.name,a=t.connected,i=t.active,o=a&&i;return e.createElement("div",{key:n,className:u()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(n))},e.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},e.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},e.createElement(v.a,{slug:n})),e.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},r)),e.createElement(b.a,{slug:n,context:"modules-list"}),o&&e.createElement("span",{className:"googlesitekit-settings-module__status"},e.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},e.createElement(k.a,null,Object(f.__)("Connected","google-site-kit"))),Object(f.__)("Connected","google-site-kit")),!o&&e.createElement(h.a,{onClick:function(){return p(n)},arrow:!0,small:!0,inherit:!0},Object(f.__)("Connect Service","google-site-kit")))})))}}).call(this,n(1))},205:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),f=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),g=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},206:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSuccessNotification}));var r=n(2),a=n(1),i=n(39),o=n(207),c=n(9);function UserInputSuccessNotification(){Object(a.useEffect)((function(){Object(c.v)("user_input","success_notification_view")}),[]);return e.createElement(i.a,{id:"user-input-success",title:Object(r.__)("Congrats! You set your site goals","google-site-kit"),description:Object(r.__)("Now Site Kit will begin suggesting metrics to add to your dashboard that are relevant specifically to you, based on the goals you shared","google-site-kit"),SmallImageSVG:o.a,dismiss:Object(r.__)("OK, got it!","google-site-kit"),format:"small",onDismiss:function(){Object(c.v)("user_input","success_notification_dismiss")}})}}).call(this,n(1))},207:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("path",{d:"M154.32 135.43c-10.56 8.65-20.59 16.68-30.15 23.63-5.07 3.7-14.21-1.31-15.28-8.16-1.86-12.85-3-26.17-3.63-39.8-12.15-7.93-24.13-15.53-35.44-22.35-6.11-3.63-4.22-12.48 3-15.39 13.28-5.23 26.64-10.44 40-15.38 4.23-13.83 8.45-27.77 12.11-41.4 2-7.39 10.41-8.93 14.89-2.73 8.25 11.45 17.13 23 26 34.42 14.22-.1 28.56 0 42.84.22 7.73.18 12.64 7.79 8.2 13.35-8.15 10.38-16.67 21.73-25.21 33.45 4.25 13 7.89 25.84 10.7 38.51 1.43 6.79-5.34 14.71-11.39 13-11.49-3.06-23.71-7.03-36.64-11.37z",fill:"#FBBC04"}),c=r.createElement("path",{d:"M205.44 73.7c10.67 26.59 20.64 47.74 16.58 76.8-4.67 33.43-33.31 70.54-68.1 75.46-17.34 2.45-35.57-2.42-47.85-15-12-12.26-18.78-29.18-21.81-45.85-3.25-17.94-2.2-36.87 3.91-54.11a77.26 77.26 0 014.71-10.76",stroke:"#4285F4",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:6}),s=r.createElement("g",{clipPath:"url(#milestone-blue_svg__clip0)",strokeLinejoin:"round",strokeWidth:6},r.createElement("path",{d:"M151.73 225.81L144 246.63a35.18 35.18 0 00.07 24.7l6.51 12.51h-8.34",stroke:"#1967D2"}),r.createElement("path",{stroke:"#185ABC",d:"M151.73 225.81l-5.6 15.04"}),r.createElement("path",{stroke:"#1967D2",d:"M164.04 231.67v52.17h7.76"}),r.createElement("path",{stroke:"#185ABC",d:"M164.04 221.67v20.1"})),l=r.createElement("path",{d:"M161.08 235.06a36.17 36.17 0 0026.08-44L117.07 209a36.17 36.17 0 0044.01 26.06z",fill:"#1A73E8"}),u=r.createElement("path",{d:"M142.64 217.51c5.53 7.83 16.11 10.61 24.45 1.64M145.07 215.59c-2.58.66-2.41 3.54-5.51 4.88",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:3}),d=r.createElement("path",{stroke:"#FEEFC3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6,d:"M101.3 47.04L75.8 22.68M60.45 68.72l-34.37-6.91M208.28 22.68l-18.86 17.87M265.17 73.7l-32.36 3.02M66.15 109.02l-49.01 15.36"}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"milestone-blue_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgMilestoneBlue(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f)}},208:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),g=n(18),p=n(1),m=n(2),h=n(9),v=n(39),b=n(126),k=n(209);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(DashboardModulesAlerts,t);var n=y(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return a()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(b.e)();t&&Object(b.b)(t).then((function(t){e.setState({data:t.results})}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=Object(h.i)(),r=[];return Object.keys(t).forEach((function(a){Object(g.each)(t[a],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],WinImageSVG:function WinImageSVG(){return e.createElement(k.a,{height:"136"})},format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",type:t.severity||"",dismiss:t.dismiss||Object(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:a,moduleName:n[a].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(p.Fragment,null,r)}}]),DashboardModulesAlerts}(p.Component);t.a=_}).call(this,n(1))},209:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),f=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),g=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},21:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(115),f=n(2);function Link(t){var n,r=t["aria-label"],i=t.arrow,c=t.back,s=t.caps,l=t.children,g=t.className,p=t.danger,m=t.disabled,h=t.external,v=t.hideExternalIndicator,b=t.href,k=t.inherit,y=t.inverse,_=t.onClick,E=t.small,O=t.to,j=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inherit","inverse","onClick","small","to"]),w=b||O||!_?O?"ROUTER_LINK":h?"EXTERNAL_LINK":"LINK":m?"BUTTON_DISABLED":"BUTTON",S="BUTTON"===w||"BUTTON_DISABLED"===w?"button":"ROUTER_LINK"===w?d.b:"a",D=("EXTERNAL_LINK"===w&&(n=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===w&&(n=Object(f._x)("(disabled)","screen reader text","google-site-kit")),n?r?"".concat(r," ").concat(n):"string"==typeof l?"".concat(l," ").concat(n):void 0:r);return e.createElement(S,a()({"aria-label":D,className:u()("googlesitekit-cta-link",g,{"googlesitekit-cta-link--arrow":i,"googlesitekit-cta-link--external":h&&!v,"googlesitekit-cta-link--inverse":y,"googlesitekit-cta-link--back":c,"googlesitekit-cta-link--small":E,"googlesitekit-cta-link--inherit":k,"googlesitekit-cta-link--caps":s,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),disabled:m,href:"LINK"===w||"EXTERNAL_LINK"===w?b:void 0,onClick:_,rel:"EXTERNAL_LINK"===w?"noopener noreferrer":void 0,target:"EXTERNAL_LINK"===w?"_blank":void 0,to:O},j),l)}Link.propTypes={arrow:s.a.bool,back:s.a.bool,caps:s.a.bool,children:s.a.node,className:s.a.string,danger:s.a.bool,disabled:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,href:s.a.string,inherit:s.a.bool,inverse:s.a.bool,onClick:s.a.func,small:s.a.bool,to:s.a.string},Link.defaultProps={arrow:!1,back:!1,caps:!1,className:"",danger:!1,disabled:!1,external:!1,hideExternalIndicator:!1,href:"",inherit:!1,inverse:!1,small:!1},t.a=Link}).call(this,n(1))},210:function(e,t,n){"use strict";(function(e){var r=n(1),a=n(9),i=n(193);t.a=function UserInputPromptNotification(){Object(r.useEffect)((function(){Object(a.v)("user_input","prompt_notification_view")}),[]);return e.createElement(i.a,{isDismissable:!0,onCTAClick:function(){Object(a.v)("user_input","prompt_notification_start")},onDismiss:function(){Object(a.v)("user_input","prompt_notification_dismiss")}})}}).call(this,n(1))},211:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M294.5 39.35h244.69v251.12a7.5 7.5 0 01-7.5 7.5H302a7.5 7.5 0 01-7.5-7.5V39.35z",fill:"#F1F3F4"}),o=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 68.28h45.25v45.25H314.5zM314.5 146.04h45.25v45.25H314.5z"}),c=r.createElement("path",{d:"M313.38 145.1c14.28 17.62 17.8 21.42 32.08 39",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5}),s=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 223.79h45.25v45.25H314.5z"}),l=r.createElement("ellipse",{cx:149.01,cy:322.24,rx:72.28,ry:7.51,fill:"#F1F3F4"}),u=r.createElement("path",{d:"M302 10h229.69a7.5 7.5 0 017.5 7.5v21.85H294.5V17.5A7.5 7.5 0 01302 10z",fill:"#80868B"}),d=r.createElement("circle",{cx:314.91,cy:24.68,r:5.32,fill:"#FFF"}),f=r.createElement("circle",{cx:336.18,cy:24.68,r:5.32,fill:"#FFF"}),g=r.createElement("path",{d:"M232.78 231.28c42.24.91 55.06-20.59 39.78-70.34",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),p=r.createElement("path",{d:"M158.93 241.76c-2.23 25.53-1.22 59.63 6.93 80.6H184M126.69 241.76c-2.29 25-.62 58.69 6.93 80.6H116.8",stroke:"#188038",strokeLinejoin:"round",strokeWidth:8.03}),m=r.createElement("path",{d:"M158.93 241.76a244.31 244.31 0 00-1 26.13M126.69 241.76c-.57 6.24-.9 17.52-1 23.59",stroke:"#137333",strokeLinejoin:"round",strokeWidth:8.03}),h=r.createElement("path",{d:"M36.83 277.33c-9.72-9.09-13.91-26.06-8.22-38.36 4.92-10.64 20.49-22.29 31.69-23.47",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),v=r.createElement("path",{fill:"#1E8E3E",d:"M151.1 160.94l93.85 6.87-6.87 93.85-93.85-6.87-93.85-6.87 6.87-93.85 93.85 6.87z"}),b=r.createElement("path",{d:"M181.25 219.25c-18.11 15.64-48.49 18.13-68.47-5",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5.74}),k=r.createElement("path",{stroke:"#DADCE0",strokeLinejoin:"round",strokeWidth:20,d:"M380.07 90.91h139.12M380.07 168.66h139.12M380.07 246.42h139.12"}),y=r.createElement("path",{fill:"#FBBC04",d:"M319.603 184.523l-155.3-70.055 8.98-19.908 155.3 70.055z"}),_=r.createElement("path",{fill:"#DADCE0",d:"M328.59 164.62l25.17 22.94-34.15-3.03 8.98-19.91z"}),E=r.createElement("path",{fill:"#5F6368",d:"M344.35 186.72l9.41.84-6.92-6.29-2.49 5.45z"}),O=r.createElement("path",{d:"M164.22 114.43h.09L175 119.3l9-19.91-10.7-4.84h-.09a10.92 10.92 0 00-9 19.91z",fill:"#EE675C"}),j=r.createElement("path",{fill:"#DADCE0",d:"M176.772 120.092l-4.557-2.056 8.984-19.917 4.558 2.056z"}),w=r.createElement("path",{stroke:"#F29900",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4,d:"M318.21 172.07l-130.15-58.71"}),S=r.createElement("path",{d:"M307.33 65.64a267 267 0 0064.05 58M312.39 117.93l40.77-54.45",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5});t.a=function SvgUserInputPrompt(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,g,p,m,h,v,b,k,y,_,E,O,j,w,S)}},212:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(2),s=n(1),l=n(5),u=n.n(l),d=n(23),f=n(11),g=n(41),p=n(15),m=n(51),h=n(39),v=n(213),b=u.a.useSelect,k=u.a.useDispatch;t.a=function IdeaHubModuleNotification(){var t=k(f.a).dismissItem,n=k(d.a).activateModule,r=k(g.a).navigateTo,i=k(p.c).setInternalServerError,l=b((function(e){return e(d.a).isModuleActive("idea-hub")})),u=b((function(e){return e(f.a).isItemDismissed("idea-hub-module-notification")})),y=b((function(e){var t;return null===(t=e(m.j))||void 0===t?void 0:t.getAdminReauthURL()})),_=Object(s.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("idea-hub-module-notification");case 2:case"end":return e.stop()}}),e)}))),[t]),E=Object(s.useCallback)(function(){var e=o()(a.a.mark((function e(t){var o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,n("idea-hub");case 3:o=e.sent,c=o.error,s=o.response,c?i({id:"idea-hub-setup-error",description:c.message}):r(s.moduleReauthURL);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,r,i]);return l||void 0===l||u||void 0===u?null:e.createElement(h.a,{id:"idea-hub-module-notification",title:Object(c.__)("Get new ideas to write about based on what people are searching for","google-site-kit"),description:Object(c.__)("Set up Idea Hub to get topic suggestions based on unanswered searches that match your site’s topic.","google-site-kit"),ctaLabel:Object(c.__)("Set up","google-site-kit"),ctaLink:y,SmallImageSVG:v.a,format:"small",type:"win-success",dismiss:Object(c.__)("Dismiss","google-site-kit"),onDismiss:_,onCTAClick:E})}}).call(this,n(1))},213:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:72,cy:72,r:72,fill:"#FDE9CC"}),o=r.createElement("g",{clipPath:"url(#idea-hub-notification_svg__clip0)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.755 64.393c1.844 1.18 2.421 3.625 1.33 5.519l-.073.12L67.567 83.6H79.02c3.314 0 5.194 3.82 3.254 6.5l-.076.103-14.014 18.223a3.993 3.993 0 01-5.657.709c-1.717-1.359-2.054-3.849-.784-5.623l.085-.115 8.936-11.62H60.256c-3.13 0-5.05-3.452-3.475-6.158l.067-.113 12.348-19.839a3.997 3.997 0 015.56-1.274zm16.02-18.441l.044.027.023.014a4.071 4.071 0 011.287 5.575l-4.313 7a3.995 3.995 0 01-5.498 1.306l-.043-.027-.023-.014a4.071 4.071 0 01-1.286-5.575l4.312-7a3.996 3.996 0 015.497-1.306zm-36.837 0a3.996 3.996 0 015.498 1.306l4.312 7a4.071 4.071 0 01-1.287 5.575l-.023.014-.043.027a3.995 3.995 0 01-5.497-1.306l-4.313-7a4.071 4.071 0 011.287-5.575l.023-.014.043-.027zM72.34 34c2.183 0 3.96 1.76 4.03 3.956l.001.132v14.138c0 2.258-1.804 4.088-4.03 4.088-2.183 0-3.96-1.76-4.029-3.956l-.002-.132V38.088c0-2.258 1.805-4.088 4.03-4.088z",fill:"url(#idea-hub-notification_svg__paint0_linear)"})),c=r.createElement("defs",null,r.createElement("linearGradient",{id:"idea-hub-notification_svg__paint0_linear",x1:76.563,y1:27.817,x2:53.123,y2:106.964,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FAA900"}),r.createElement("stop",{offset:1,stopColor:"#F57F00"})),r.createElement("clipPath",{id:"idea-hub-notification_svg__clip0"},r.createElement("path",{fill:"#fff",transform:"translate(52 34)",d:"M0 0h40.714v76H0z"})));t.a=function SvgIdeaHubNotification(e){return r.createElement("svg",a({viewBox:"0 0 144 144",fill:"none"},e),i,o,c)}},214:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(89),i=n(215),o=n(100);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(a.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(i.a,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),e.createElement(o.a,null,Object(r.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(1))},215:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1l8.04-9.415zM69.984 3.117c0 .454-.166.853-.487 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.599 1.599 0 01-.488-1.175c0-.466.166-.854.488-1.176.321-.322.71-.488 1.175-.488.455 0 .854.166 1.176.488.332.333.487.72.487 1.176zm-.476 4.313v12.498h-2.351V7.43h2.35zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943-.676-.632-1.02-1.508-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333zM2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974-.588-.521-1.62-1.042-3.094-1.564l-1.22-.432C4.025 10.224 2.928 9.57 2.04 8.716 1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673C2.018 1.852 2.75 1.209 3.693.72 4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676c-.61.455-.91 1.032-.91 1.742 0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6.01 6.01 0 01-2.495 1.919 8.014 8.014 0 01-3.116.621c-1.62 0-3.072-.466-4.358-1.408zM15.969 3.449a1.95 1.95 0 01-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0117.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 01-1.43.589c-.566-.012-1.043-.2-1.431-.588zm-.067 2.595h2.994v13.883h-2.994V6.044zM25.405 19.85c-.543-.2-.986-.466-1.33-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122.233-.077.488-.21.765-.399v2.917c-.599.277-1.32.41-2.173.41a5.01 5.01 0 01-1.753-.3zM33.623 19.407a6.63 6.63 0 01-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706 1.053-.666 2.251-1.01 3.593-1.01 1.397 0 2.606.311 3.637.921a6.123 6.123 0 012.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.162 4.162 0 002.817 1.043c.854 0 1.597-.189 2.218-.588a4.266 4.266 0 001.508-1.597l2.528 1.198c-.654 1.142-1.508 2.04-2.561 2.694-1.054.655-2.318.976-3.782.976-1.364.022-2.584-.288-3.66-.931zm7.23-8.051a3.332 3.332 0 00-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296h7.552z",fill:"#5F6368"});t.a=function SvgLogoSitekit(e){return r.createElement("svg",a({viewBox:"0 0 80 21",fill:"none"},e),i)}},23:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(120),f=n(271),g=n(1),p=n(2),m=n(20),h=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,l=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,k=t.trailingIcon,y=t["aria-label"],_=t.title,E=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),O=Object(g.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),j=Object(d.a)(n,O),w=i&&!h?"a":"button",S=e.createElement(w,a()({className:s()("mdc-button",l,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:j,disabled:!!h,"aria-label":function(){var e=y;if("_blank"!==v)return e;var t=Object(p._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===w?"button":void 0},E),b,r&&e.createElement("span",{className:"mdc-button__label"},r),k);return b&&(_||y)&&void 0===r?e.createElement(f.a,{title:_||y,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),s="googlesitekit_legacy_1.38.0_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},273:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function Checkbox(t){var n=t.onChange,r=t.id,i=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:a()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:i,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),s=n(203),l=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),p=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(s.a,null)),h=Object(i.a)(t.createElement(l.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==g&&"authentication_failure"!==g&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},288:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return m}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(38),s=n.n(c),l=n(15),u=n(131),d=function(){var t=o()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},g=function(){var e=o()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},301:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(146),g=n(2),p=n(5),m=n.n(p),h=n(11),v=n(40),b=n(273),k=n(21),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,i=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),p=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",i)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(g.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(g.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==p?void 0:p.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==p?void 0:p.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(1))},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},l=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=s("sessionStorage")?e.sessionStorage:s("localStorage")?e.localStorage:new l),r}}).call(this,n(14))},322:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(8),h=n.n(m),v=n(111),b=n(1),k=n(2),y=n(31),_=n(126),E=n(100);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name");if(!t)return null;var n=Object(k.sprintf)(
3
  /* translators: %d: the number of notifications */
4
  Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),r=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,n));return Object(v.createPortal)(r,t)}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(1))},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},38:function(e,t){e.exports=googlesitekit.api},383:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(16),a=n.n(r),i=n(2),o=n(0),c=n.n(o),s=n(5),l=n.n(s),u=n(148),d=n(71),f=n(384),g=n(385),p=n(15),m=n(288),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=a()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(p.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(i.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(g.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(i.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(1))},384:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(156),u=n(1);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),i=s()(r,2),c=i[0],f=i[1],g=Object(u.useState)(void 0),p=s()(g,2),m=p[0],h=p[1];return Object(l.a)((function(){c||function(){var e=o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return i=r.value,e.next=8,i();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},385:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(17),a=n.n(r),i=n(2),o=n(5),c=n.n(o),s=n(58),l=n(21),u=n(15),d=n(131),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(i.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,a()({},function(e){var t=e.installed,n=e.active,r=e.installURL,a=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(i.__)("Install the helper plugin","google-site-kit"),children:Object(i.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&a?{"aria-label":Object(i.__)("Activate the helper plugin","google-site-kit"),children:Object(i.__)("Activate","google-site-kit"),href:a,external:!1}:t&&n&&o?{"aria-label":Object(i.__)("Configure the helper plugin","google-site-kit"),children:Object(i.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(i.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(i.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(i.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
5
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
@@ -7,7 +7,7 @@ Object(i.__)('To get more help, ask a question on our <a href="%1$s">support for
7
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
8
  Object(i.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.h:return e.createElement("p",null,Object(i.__)("Looks like you’re using a version of WordPress that’s older than 5.0. You can still install and use Site Kit, but some of its features might not work (for example translations).","google-site-kit"))}}}).call(this,n(1))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),s=n.n(c),l=n(33),u=n.n(l),d=n(34),f=n.n(d),g=n(55),p=n.n(g),m=n(43),h=n.n(m),v=n(44),b=n.n(v),k=n(29),y=n.n(k),_=n(0),E=n.n(_),O=n(8),j=n.n(O),w=n(18),S=n(1),D=n(89),x=n(58),N=n(27),C=n(82),M=n(24),T=n(148),L=n(158),P=n(21),A=n(116);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=R(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=s()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=s()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(N.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,s=r.title,l=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,v=r.ctaLink,b=r.ctaLabel,k=r.ctaTarget,y=r.type,_=r.dismiss,E=r.isDismissable,O=r.logo,R=r.module,I=r.moduleName,F=r.pageIndex,z=r.anchorLink,U=r.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var q,B=n?"is-closed":"is-open",H="large"===g&&"win-stats-increase"===y,W="mdc-layout-grid__cell--span-12";"large"===g?(W="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(W="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(W="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),q="win-warning"===y?e.createElement(T.a,null):"win-error"===y?e.createElement(L.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(C.a,t)))})))),V=e.createElement(S.Fragment,null,s&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},s),z&&U&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(P.a,{href:z},U)),l&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(l)?l:e.createElement("span",{dangerouslySetInnerHTML:Object(x.a)(l,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(S.Fragment,null," ",e.createElement(P.a,{href:p,external:!0,inherit:!0},h),m),F&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},F))),i),K=R?e.createElement(A.a,{slug:R,size:19}):e.createElement(D.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(y),y),a()(t,"googlesitekit-publisher-win--".concat(B),B),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},O&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},K),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",W)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,V,G),v&&e.createElement(M.a,{className:"googlesitekit-notification__cta",href:v,target:k,onClick:this.handleCTAClick},b),E&&_&&e.createElement(P.a,{onClick:this.handleDismiss},_)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===y||"win-warning"===y)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},q)))))}}]),Notification}(S.Component);I.propTypes={id:E.a.string.isRequired,className:E.a.string,title:E.a.string.isRequired,description:E.a.node,learnMoreURL:E.a.string,learnMoreDescription:E.a.string,learnMoreLabel:E.a.string,blockData:E.a.array,WinImageSVG:E.a.elementType,SmallImageSVG:E.a.elementType,format:E.a.string,ctaLink:E.a.string,ctaLabel:E.a.string,type:E.a.string,dismiss:E.a.string,isDismissable:E.a.bool,logo:E.a.bool,module:E.a.string,moduleName:E.a.string,pageIndex:E.a.string,dismissExpires:E.a.number,showOnce:E.a.bool,onCTAClick:E.a.func,onDismiss:E.a.func,anchorLink:E.a.string,anchorLinkLabel:E.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},s=Object(r.a)(c),l=s.enableTracking,u=s.disableTracking,d=s.isTrackingEnabled,f=s.trackEvent;function g(e){e?l():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},51:function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f}));var r="modules/idea-hub",a="IDEA_HUB_BUTTON_CREATE",i="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",s="IDEA_HUB_BUTTON_DELETE",l=4,u="IDEA_HUB_ACTIVITY_CREATING_DRAFT",d="IDEA_HUB_ACTIVITY_DRAFT_CREATED",f="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),s=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},l=n(13),u=n.n(l),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),s(n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
9
  /* translators: %s: number of days */
10
- Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.38.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,s=i.value,l=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,s,l,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,s=i.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var s=document.createElement("span");return s.setAttribute("class","screen-reader-text"),s.textContent=Object(i.sprintf)(
11
  /* translators: %d is the number of notifications */
12
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(s),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},l=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var s=a()(r.value,2),l=s[0],d=s[1];i[l]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),s=n(31),l=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),p=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],p=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var v=10,b=g.slice(0,v),k=g.slice(v);if(k=k.concat(p),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(l.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],l=r[c],f=l.datapoint,g=l.type,p=l.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:p,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(p.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(d.d)(e,t,n,a);if(!i){var l=Object(d.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(s,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),s=n.n(c),l=n(16),u=n.n(l),d=n(18),f=n(64),g=n.n(f),p=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?O(a,h(h({},o),{},{unit:"second"})):Object(p.sprintf)(
13
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -20,6 +20,6 @@ Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?
20
  Object(p.__)("%sM","google-site-kit"),O(k(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
21
  Object(p.__)("%sK","google-site-kit"),O(k(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
22
  Object(p.__)("%sK","google-site-kit"),O(k(e),e%10==0?{}:t)):O(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?y(e):"duration"===i?v(e,t):O(e,n)},E=g()(console.warn),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),p=g[0],m=g[1];c[p]&&m===c[p]||(s.includes(p)||(l[p]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
23
- /* translators: used between list items, there is a space after the comma. */var l=Object(p.__)(", ","google-site-kit");return e.join(l)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},71:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,s=t.progress,l=void 0!==c?Math.round(c/2):void 0,u=s?"scaleX(".concat(s,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:l,marginBottom:l},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(1))},724:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ActivationApp}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(1),s=n(2),l=n(5),u=n.n(l),d=n(9),f=n(725),g=n(322),p=n(15),m=n(11),h=n(41),v=u.a.useSelect,b=u.a.useDispatch;function ActivationApp(){var t=b(h.a).navigateTo,n=v((function(e){return e(p.c).getProxySetupURL()})),r=v((function(e){return e(p.c).getAdminURL("googlesitekit-dashboard")})),i=v((function(e){return e(p.c).getAdminURL("googlesitekit-splash")})),l=v((function(e){return e(m.a).hasCapability(m.d)})),u=n||i,k=Object(s.__)("Start setup","google-site-kit");l&&(u=r,k=Object(s.__)("Go to Dashboard","google-site-kit"));var y=Object(c.useCallback)(function(){var e=o()(a.a.mark((function e(r){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),e.next=3,Object(d.v)("plugin_setup",n?"proxy_start_setup_banner":"goto_sitekit");case 3:t(u);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,u,t]);return u?e.createElement(c.Fragment,null,e.createElement(g.a,null),e.createElement(f.a,{buttonURL:u,buttonLabel:k,onButtonClick:y})):null}}).call(this,n(1))},725:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ActivationMain}));var r=n(1),a=n(2),i=n(0),o=n.n(i),c=n(24),s=n(214),l=n(301),u=n(383);function ActivationMain(t){var n=t.buttonURL,i=t.onButtonClick,o=t.buttonLabel;return e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(s.a,null),e.createElement("h3",{className:"googlesitekit-heading-3 googlesitekit-activation__title"},Object(a.__)("Congratulations, the Site Kit plugin is now activated.","google-site-kit")),e.createElement(u.a,null,(function(t){var a=t.complete,s=t.inProgressFeedback,u=t.ctaFeedback;return e.createElement(r.Fragment,null,u,e.createElement(l.a,{optinAction:"analytics_optin_setup_banner"}),e.createElement("div",{className:"googlesitekit-start-setup-wrap"},e.createElement(c.a,{id:"start-setup-link",className:"googlesitekit-start-setup",href:n,onClick:i,disabled:!a},o),s))})))))}ActivationMain.propTypes={buttonURL:o.a.string.isRequired,onButtonClick:o.a.func,buttonLabel:o.a.string.isRequired}}).call(this,n(1))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,l,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),s=n.n(c),l=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(l.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,l){var d,g,p,m,h,v,b,k;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:p?"true":"false",dimension3:b,dimension4:"1.38.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(0),h=n.n(m),v=n(8),b=n.n(v),k=n(1),y=n(2),_=n(59),E=n(97),O=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===s?"button":"",h=g;h&&p&&(h=Object(k.cloneElement)(g,{invertChangeColor:p}));var v=o;c&&(v="%"===c?Object(O.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.q)(o,c)),l&&(v=Object(y.sprintf)(l,v));var j=a&&Object(O.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(l),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},89:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},9:function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return j})),n.d(t,"a",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"x",(function(){return D})),n.d(t,"d",(function(){return x}));var r=n(6),a=n.n(r),i=n(19),o=n.n(i),c=n(108),s=n.n(c),l=n(104),u=n.n(l),d=n(40);n.d(t,"v",(function(){return d.b}));var f=n(58);n.d(t,"s",(function(){return f.a})),n.d(t,"w",(function(){return f.b}));var g=n(56);n.d(t,"u",(function(){return g.a}));var p=n(61);n.d(t,"b",(function(){return p.b})),n.d(t,"j",(function(){return p.c}));n(32);var m=n(68);n.d(t,"h",(function(){return m.a})),n.d(t,"n",(function(){return m.b})),n.d(t,"q",(function(){return m.c})),n.d(t,"r",(function(){return m.d}));var h=n(49);n.d(t,"e",(function(){return h.b}));var v=n(74);n.d(t,"o",(function(){return v.a}));var b=n(75);n.d(t,"c",(function(){return b.a}));var k=n(52);n.d(t,"t",(function(){return k.i}));var y=n(76);n.d(t,"f",(function(){return y.a})),n.d(t,"m",(function(){return y.b}));var _=n(65);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"g",(function(){return _.a})),n.d(t,"l",(function(){return _.b})),n.d(t,"p",(function(){return _.c}));var j=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},w=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!s()(n)?null:n},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,n=t.modules;return n?Object.keys(n).reduce((function(e,t){return"object"!==o()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:O(O({},e),{},a()({},t,n[t]))}),{}):{}},D=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},x=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return u()(t)}}).call(this,n(14))},90:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(243),o=n(0),c=n.n(o),s=n(1),l=n(111);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=a()(r,1)[0];return Object(i.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(l.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},92:function(e,t,n){"use strict";var r=n(101);n.d(t,"a",(function(){return r.a}));var a=n(102);n.d(t,"c",(function(){return a.a}));var i=n(103);n.d(t,"b",(function(){return i.a}))},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(16),a=n.n(r),i=n(6),o=n.n(i),c=n(3),s=n.n(c),l=n(7),u=n.n(l),d=n(5),f=n.n(d),g=n(60),p=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(g.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(g.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(g.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},95:function(e,t,n){"use strict";var r=n(1),a=n(37),i=Object(r.createContext)(a.a);t.a=i},953:function(e,t,n){"use strict";n.r(t),function(e){var t=n(219),r=n(111),a=n(9),i=(n(280),n(724)),o=n(159);Object(t.a)((function(){var t=document.getElementById("js-googlesitekit-activation");t&&(Object(a.v)("plugin_setup","plugin_activated"),Object(r.render)(e.createElement(o.a,{dataAPIContext:"Activation"},e.createElement(i.a,null)),t),t.classList.remove("googlesitekit-activation--loading"))}))}.call(this,n(1))},97:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(146),s=n(2),l=n(21);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return e.createElement("div",{className:o()("googlesitekit-source-link",a)},Object(c.a)(Object(s.sprintf)(
24
  /* translators: %s: source link */
25
  Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:i,inherit:!0})}))}SourceLink.propTypes={name:a.a.string,href:a.a.string,className:a.a.string,external:a.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(1))},99:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(32),a=n(27),i=function(t,n,i){var o=Object(a.d)(t,n,i);Object(a.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(a.a).concat(o,"::"))&&e!=="".concat(a.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(14))}},[[953,1,0]]]);
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[2],{100:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function VisuallyHidden(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return r?e.createElement("span",a()({},i,{className:u()("screen-reader-text",n)}),r):null}VisuallyHidden.propTypes={className:s.a.string,children:s.a.node},VisuallyHidden.defaultProps={className:""},t.a=VisuallyHidden}).call(this,n(1))},101:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Cell}));var r=n(17),a=n.n(r),i=n(6),o=n.n(i),c=n(16),s=n.n(c),l=n(0),u=n.n(l),d=n(8),f=n.n(d);function Cell(t){var n,r=t.className,i=t.alignTop,c=t.alignMiddle,l=t.alignBottom,u=t.alignRight,d=t.alignLeft,g=t.smSize,p=t.smStart,m=t.mdSize,h=t.mdStart,v=t.lgSize,b=t.lgStart,k=t.size,y=t.children,_=s()(t,["className","alignTop","alignMiddle","alignBottom","alignRight","alignLeft","smSize","smStart","mdSize","mdStart","lgSize","lgStart","size","children"]);return e.createElement("div",a()({},_,{className:f()(r,"mdc-layout-grid__cell",(n={"mdc-layout-grid__cell--align-top":i,"mdc-layout-grid__cell--align-middle":c,"mdc-layout-grid__cell--align-bottom":l,"mdc-layout-grid__cell--align-right":u,"mdc-layout-grid__cell--align-left":d},o()(n,"mdc-layout-grid__cell--span-".concat(k),12>=k&&k>0),o()(n,"mdc-layout-grid__cell--span-".concat(v,"-desktop"),12>=v&&v>0),o()(n,"mdc-layout-grid__cell--start-".concat(b,"-desktop"),12>=b&&b>0),o()(n,"mdc-layout-grid__cell--span-".concat(m,"-tablet"),8>=m&&m>0),o()(n,"mdc-layout-grid__cell--start-".concat(h,"-tablet"),8>=h&&h>0),o()(n,"mdc-layout-grid__cell--span-".concat(g,"-phone"),4>=g&&g>0),o()(n,"mdc-layout-grid__cell--start-".concat(p,"-phone"),4>=p&&p>0),n))}),y)}Cell.propTypes={smSize:u.a.number,smStart:u.a.number,mdSize:u.a.number,mdStart:u.a.number,lgSize:u.a.number,lgStart:u.a.number,size:u.a.number,alignTop:u.a.bool,alignMiddle:u.a.bool,alignBottom:u.a.bool,alignRight:u.a.bool,alignLeft:u.a.bool,className:u.a.string,children:u.a.node},Cell.defaultProps={className:"",size:0,smSize:0,smStart:0,mdSize:0,mdStart:0,lgSize:0,lgStart:0}}).call(this,n(1))},102:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Row}));var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function Row(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid__inner",n)},i),r)}Row.propTypes={className:s.a.string,children:s.a.node},Row.defaultProps={className:""}}).call(this,n(1))},103:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Grid}));var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l);function Grid(t){var n=t.className,r=t.children,i=o()(t,["className","children"]);return e.createElement("div",a()({className:u()("mdc-layout-grid",n)},i),r)}Grid.propTypes={className:s.a.string,children:s.a.node},Grid.defaultProps={className:""}}).call(this,n(1))},11:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o}));var r="core/user",a="connected_url_mismatch",i="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},112:function(e,t,n){"use strict";var r=n(106);t.a=function(e){var t=Object.keys(e).reduce((function(t,n){return t[Object(r.getStablePath)(n)]=e[n],t}),{}),n=!1;return function(e,a){if(n)return a(e);setTimeout((function(){n=!0}),1e3);var i=e.parse,o=void 0===i||i,c=e.path;if("string"==typeof e.path){var s,l=(null===(s=e.method)||void 0===s?void 0:s.toUpperCase())||"GET",u=Object(r.getStablePath)(c);if(o&&"GET"===l&&t[u]){var d=Promise.resolve(t[u].body);return delete t[u],d}if("OPTIONS"===l&&t[l]&&t[l][u]){var f=Promise.resolve(t[l][u]);return delete t[l][u],f}}return a(e)}}},114:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),a=n(95),i=n(37),o=function(e){var t=Object(r.useContext)(a.a);return Object(i.b)(e,t)}},116:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleIcon}));var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(5),u=n.n(l),d=n(23),f=u.a.useSelect;function ModuleIcon(t){var n=t.slug,r=t.size,i=o()(t,["slug","size"]),c=f((function(e){return e(d.a).getModuleIcon(n)}));return c?e.createElement(c,a()({width:r,height:r},i)):null}ModuleIcon.propTypes={slug:s.a.string.isRequired,size:s.a.number},ModuleIcon.defaultProps={size:33}}).call(this,n(1))},117:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(229),o=n.n(i),c=n(8),s=n.n(c),l=n(225),u=n(1),d=n(2),f=n(24),g=n(21),p=n(20),m=n(149),h=function Dialog(t){var n=t.dialogActive,r=t.handleDialog,a=t.title,i=t.provides,c=t.handleConfirm,h=t.subtitle,v=t.confirmButton,b=t.dependentModules,k=t.danger,y=t.inProgress,_=void 0!==y&&y,E=Object(u.useCallback)((function(e){null!==e&&p.e.attachTo(e)}),[]),O=Object(l.a)(Dialog),j="googlesitekit-dialog-label-".concat(O),w="googlesitekit-dialog-description-".concat(O),S=!(!i||!i.length);return e.createElement("div",{ref:E,className:s()("mdc-dialog",{"mdc-dialog--open":n}),role:"alertdialog","aria-modal":"true","aria-labelledby":a?j:void 0,"aria-describedby":S?w:void 0,"aria-hidden":n?"false":"true",tabIndex:"-1"},e.createElement("div",{className:"mdc-dialog__scrim"}," "),e.createElement(o.a,{active:n},e.createElement("div",null,e.createElement("div",{className:"mdc-dialog__container"},e.createElement("div",{className:"mdc-dialog__surface"},a&&e.createElement("h2",{id:j,className:"mdc-dialog__title"},a),h&&e.createElement("p",{className:"mdc-dialog__lead"},h),S&&e.createElement("section",{id:w,className:"mdc-dialog__content"},e.createElement("ul",{className:"mdc-list mdc-list--underlined mdc-list--non-interactive"},i.map((function(t){return e.createElement("li",{className:"mdc-list-item",key:t},e.createElement("span",{className:"mdc-list-item__text"},t))})))),b&&e.createElement("p",{className:"mdc-dialog__dependecies"},e.createElement("strong",null,Object(d.__)("Note: ","google-site-kit")),b),e.createElement("footer",{className:"mdc-dialog__actions"},e.createElement(f.a,{onClick:c,danger:k,disabled:_},v||Object(d.__)("Disconnect","google-site-kit")),e.createElement(m.a,{isSaving:_}),e.createElement(g.a,{className:"googlesitekit-margin-left-auto mdc-dialog__cancel-button",onClick:r,inherit:!0,disabled:_},Object(d.__)("Cancel","google-site-kit"))))))))};h.displayName="Dialog",h.propTypes={dialogActive:a.a.bool,handleDialog:a.a.func,handleConfirm:a.a.func.isRequired,title:a.a.string,description:a.a.string,confirmButton:a.a.string,danger:a.a.bool},h.defaultProps={dialogActive:!1,handleDialog:null,title:null,description:null,confirmButton:null,danger:!1},t.a=h}).call(this,n(1))},118:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(2),o=n(200),c=n(316),s=n(24),l=n(89),u=function SurveyHeader(t){var n=t.title,r=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__header"},e.createElement("div",{className:"googlesitekit-survey__header-logo"},e.createElement(l.a,{width:24,height:24})),e.createElement("div",{className:"googlesitekit-survey__header-details"},e.createElement("h3",null,n),e.createElement(s.a,{"aria-label":Object(i.__)("Dismiss","google-site-kit"),icon:e.createElement(o.a,{icon:c.a,size:40}),onClick:r,className:"googlesitekit-survey__header-close"})))};u.propTypes={title:a.a.string.isRequired,dismissSurvey:a.a.func.isRequired},t.a=u}).call(this,n(1))},126:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(31),s=n(62),l=n(27),u=(Object(c.c)("googlesitekit.winCallbacks",{}),function(){return Object(c.c)("googlesitekit.ModulesNotificationsRequest",[])});function d(){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function t(){var n,r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e._googlesitekitLegacyData.setup).isSiteKitConnected&&(n.isAuthenticated||n.isVerified)){t.next=3;break}return t.abrupt("return",0);case 3:return r=0,t.next=6,p();case 6:return(i=t.sent)&&i.total&&(r+=i.total),r=Object(c.c)("googlesitekit.TotalNotifications",r),r=Math.max(0,Math.abs(r)),e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",r),t.abrupt("return",r);case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var g=function(e){return e?e.length?e.filter((function(e){return!Object(l.c)("notification::dismissed::".concat(e.id))})):e:[]};function p(){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function e(){var t,n,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=0,e.next=4,u();case 4:return r=e.sent,i=[],r.map(function(){var e=o()(a.a.mark((function e(t){var n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new Promise(function(){var e=o()(a.a.mark((function e(n){var r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.identifier,e.t0=g,e.next=4,s.c.get(s.b,r,"notifications",{},!1);case 4:e.t1=e.sent,i=(0,e.t0)(e.t1),n({identifier:r,notifications:i});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),i.push(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(i).then((function(e){e.forEach((function(e){e.notifications.length&&(n+=e.notifications.length,t[e.identifier]=e.notifications)}))}));case 9:return e.abrupt("return",{results:t,total:n});case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var h=function(t){var n=Math.abs(t.count)+1;return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}},v=function(t){var n=Math.max(0,Math.abs(t.count)-1);return e.localStorage&&e.localStorage.setItem("googlesitekit::total-notifications",n),{count:n}}}).call(this,n(14))},131:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u}));var r="https://cdn.ampproject.org/v0.js",a="amp_cdn_restricted",i="check_api_unavailable",o="check_fetch_failed",c="google_api_connection_fail",s="invalid_hostname",l="setup_token_mismatch",u="wp_pre_v5"},134:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureTours}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(11),s=n(166),l=o.a.useSelect;function FeatureTours(t){var n=t.viewContext,r=l((function(e){var t;return null===(t=e(c.a).getFeatureToursForView(n))||void 0===t?void 0:t[0]})),a=l((function(e){return e(c.a).areFeatureToursOnCooldown()}));return!r||a?null:e.createElement(s.a,{tourID:r.slug,steps:r.steps,gaEventCategory:r.gaEventCategory,callback:r.callback})}FeatureTours.propTypes={viewContext:a.a.string}}).call(this,n(1))},138:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(9),s=["fetch_error"];function l(e){return u.apply(this,arguments)}function u(){return(u=o()(a.a.mark((function e(t){var n,r,i,o,l,u,d,f;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.method,o=t.type,l=t.identifier,u=t.datapoint,(d=t.error)&&!s.includes(null==d?void 0:d.code)){e.next=3;break}return e.abrupt("return");case 3:return f="code: ".concat(d.code),(null===(n=d.data)||void 0===n?void 0:n.reason)&&(f+=", reason: ".concat(d.data.reason)),e.next=7,Object(c.v)("api_error","".concat(i,":").concat(o,"/").concat(l,"/data/").concat(u),"".concat(d.message," (").concat(f,")"),(null===(r=d.data)||void 0===r?void 0:r.status)||d.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},141:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M14 1.41L12.59 0 7 5.59 1.41 0 0 1.41 5.59 7 0 12.59 1.41 14 7 8.41 12.59 14 14 12.59 8.41 7 14 1.41z",fill:"#fff"});t.a=function SvgClose(e){return r.createElement("svg",a({viewBox:"0 0 14 14",fill:"none"},e),i)}},148:function(e,t,n){"use strict";(function(e){t.a=function Warning(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#F9BB2D",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"warning-title warning-desc"},e.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),e.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}}).call(this,n(1))},149:function(e,t,n){"use strict";(function(e){t.a=function Spinner(t){var n=t.isSaving;return e.createElement("span",{className:"spinner",style:{display:n?"inline-block":"none",float:"none",marginTop:"0",visibility:"visible"}})}}).call(this,n(1))},15:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));var r="core/site",a="primary",i="secondary"},154:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(62),s=n(40);function l(e,t){return u.apply(this,arguments)}function u(){return(u=o()(a.a.mark((function e(t,n){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c.c.invalidateCacheGroup(c.a,"site","notifications"),e.next=3,Object(s.b)("site_notifications",n,t);case 3:return e.next=5,c.c.set(c.a,"site","mark-notification",{notificationID:t,notificationState:n});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(t,"accepted");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return p.apply(this,arguments)}function p(){return(p=o()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l(t,"dismissed");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},157:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M3.332 24.75h21.335c2.182 0 3.542-2.366 2.451-4.25L16.451 2.07C15.36.184 12.64.184 11.549 2.07L.882 20.5c-1.091 1.884.269 4.25 2.45 4.25zM14 14.833a1.42 1.42 0 01-1.417-1.416v-2.834c0-.779.638-1.416 1.417-1.416.78 0 1.417.637 1.417 1.416v2.834A1.42 1.42 0 0114 14.833zm1.417 5.667h-2.834v-2.833h2.834V20.5z",fill:"#EA4336",fillRule:"nonzero"});t.a=function SvgError(e){return r.createElement("svg",a({viewBox:"0 0 28 25"},e),i)}},158:function(e,t,n){"use strict";(function(e){t.a=function Error(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"#EA4336",width:"34",height:"34",viewBox:"0 0 24 24","aria-labelledby":"error-title error-desc"},e.createElement("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}))}}).call(this,n(1))},159:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Root}));var r=n(0),a=n.n(r),i=n(5),o=n.n(i),c=n(160),s=n(161),l=n(37),u=n(162),d=n(163),f=n(164),g=n(165),p=n(114),m=n(169);function Root(t){var n=t.children,r=t.registry,a=t.viewContext,i=void 0===a?null:a,h=t.dataAPIContext,v=t.dataAPIModuleArgs,b=Object(p.a)("userFeedback");return e.createElement(o.a.RegistryProvider,{value:r},e.createElement(s.a,{value:l.a},e.createElement(c.a,{viewContext:i},e.createElement(d.a,null,n,i&&e.createElement(g.a,{viewContext:i}),h&&e.createElement(f.a,{context:h,args:v}),b&&e.createElement(m.a,null)),e.createElement(u.a,null))))}Root.propTypes={children:a.a.node.isRequired,registry:a.a.object,viewContext:a.a.string,dataAPIContext:a.a.string,dataAPIModuleArgs:a.a.object},Root.defaultProps={registry:o.a}}).call(this,n(1))},160:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(55),l=n.n(s),u=n(43),d=n.n(u),f=n(44),g=n.n(f),p=n(29),m=n.n(p),h=n(228),v=n.n(h),b=n(0),k=n.n(b),y=n(1),_=n(2),E=n(200),O=n(314),j=n(315),w=n(39),S=n(21),D=n(24),x=n(9);function N(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var C=function(t){d()(ErrorHandler,t);var n=N(ErrorHandler);function ErrorHandler(e){var t;return i()(this,ErrorHandler),(t=n.call(this,e)).state={error:null,info:null,copied:!1},t.onErrorClick=t.onErrorClick.bind(l()(t)),t}return c()(ErrorHandler,[{key:"componentDidCatch",value:function(t,n){var r=this.props.viewContext,a=void 0===r?"unknown":r;e.console.error("Caught an error:",t,n),this.setState({error:t,info:n}),Object(x.v)("react_error","handle_".concat(a,"_error"),"".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack).slice(0,500))}},{key:"onErrorClick",value:function(){var e=this.state,t=e.error,n=e.info;v()("`".concat(null==t?void 0:t.message,"\n").concat(null==n?void 0:n.componentStack,"`")),this.setState({copied:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.error,a=t.info,i=t.copied;if(!n)return e;var o=r.createElement(E.a,{className:"mdc-button__icon",icon:i?O.a:j.a});return r.createElement(w.a,{id:"googlesitekit-error",title:Object(_.__)("Site Kit encountered an error","google-site-kit"),description:r.createElement(y.Fragment,null,r.createElement(D.a,{trailingIcon:o,onClick:this.onErrorClick},Object(_.__)("Copy error to clipboard","google-site-kit")),r.createElement(S.a,{href:"https://wordpress.org/support/plugin/google-site-kit/",external:!0},Object(_.__)("Report this problem","google-site-kit"))),isDismissable:!1,format:"small",type:"win-error"},r.createElement("pre",{className:"googlesitekit-overflow-auto"},n.message,a.componentStack))}}]),ErrorHandler}(y.Component);C.propTypes={children:k.a.node.isRequired},t.a=C}).call(this,n(14),n(1))},161:function(e,t,n){"use strict";var r=n(95),a=(r.a.Consumer,r.a.Provider);t.a=a},162:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(2),l=n(1),u=n(5),d=n.n(u),f=n(11),g=n(41),p=n(93),m=n(117),h=n(90),v=d.a.useSelect,b=d.a.useDispatch,k=d.a.useRegistry;t.a=function PermissionsModal(){var t,n,a,o=k(),u=v((function(e){return e(f.a).getPermissionScopeError()})),d=v((function(t){var n;return t(f.a).getConnectURL({additionalScopes:null==u||null===(n=u.data)||void 0===n?void 0:n.scopes,redirectURL:e.location.href})})),y=b(f.a).clearPermissionScopeError,_=b(g.a).navigateTo,E=Object(l.useCallback)((function(){y()}),[y]),O=Object(l.useCallback)(c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.c)(o);case 2:_(d);case 3:case"end":return e.stop()}}),e)}))),[o,d,_]);return Object(l.useEffect)((function(){(function(){var e=c()(i.a.mark((function e(){var t,n,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null==u||null===(t=u.data)||void 0===t?void 0:t.skipModal)||!(null==u||null===(n=u.data)||void 0===n||null===(r=n.scopes)||void 0===r?void 0:r.length)){e.next=3;break}return e.next=3,O();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[O,u]),u?(null==u||null===(t=u.data)||void 0===t||null===(n=t.scopes)||void 0===n?void 0:n.length)?(null==u||null===(a=u.data)||void 0===a?void 0:a.skipModal)?null:r.createElement(h.a,null,r.createElement(m.a,{title:Object(s.__)("Additional Permissions Required","google-site-kit"),subtitle:u.message,confirmButton:Object(s.__)("Proceed","google-site-kit"),dialogActive:!0,handleConfirm:O,handleDialog:E})):(e.console.warn("permissionsError lacks scopes array to use for redirect, so not showing the PermissionsModal. permissionsError was:",u),null):null}}).call(this,n(14),n(1))},163:function(e,t,n){"use strict";var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(1),u=n(5),d=n.n(u),f=n(93),g=d.a.useRegistry;t.a=function RestoreSnapshots(e){var t=e.children,n=g(),r=Object(l.useState)(!1),i=s()(r,2),c=i[0],u=i[1];return Object(l.useEffect)((function(){c||o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(f.b)(n);case 2:u(!0);case 3:case"end":return e.stop()}}),e)})))()}),[n,c]),c?t:null}},164:function(e,t,n){"use strict";n.d(t,"a",(function(){return CollectModuleData}));var r=n(1),a=n(31),i=(n(62),n(5)),o=n.n(i),c=n(11),s=o.a.useSelect;function CollectModuleData(e){var t=e.context,n=e.args,i=s((function(e){return e(c.a).getDateRange()}));return Object(r.useEffect)((function(){return function(){return Object(a.d)("googlesitekit.moduleDataReset")}}),[i]),Object(r.useEffect)((function(){Object(a.d)("googlesitekit.moduleLoaded",t,n)}),[t,n,i]),null}},165:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return FeatureToursDesktop}));var r=n(6),a=n.n(r),i=n(150),o=n(134);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FeatureToursDesktop(t){return Object(i.a)()<783?null:e.createElement(o.a,t)}FeatureToursDesktop.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o.a.propTypes)}).call(this,n(1))},166:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return TourTooltips}));var a=n(6),i=n.n(a),o=n(156),c=n(30),s=n(0),l=n.n(s),u=n(2),d=n(5),f=n.n(d),g=n(67),p=n(11),m=n(40),h=n(167);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=f.a.useSelect,k=f.a.useDispatch,y={options:{arrowColor:"#1A73E8",backgroundColor:"#1A73E8",overlayColor:"rgba(0, 0, 0, 0.6)",textColor:"#ffffff"}},_={back:Object(u.__)("Back","google-site-kit"),close:Object(u.__)("Close","google-site-kit"),last:Object(u.__)("Got it","google-site-kit"),next:Object(u.__)("Next","google-site-kit")},E={disableAnimation:!0,styles:{arrow:{length:8,margin:56,spread:16},floater:{filter:"drop-shadow(rgba(60, 64, 67, 0.3) 0px 1px 2px) drop-shadow(rgba(60, 64, 67, 0.15) 0px 2px 6px)"}}},O="feature_tooltip_view",j="feature_tooltip_advance",w="feature_tooltip_return",S="feature_tooltip_dismiss",D="feature_tooltip_complete";function TourTooltips(t){var n=t.steps,a=t.tourID,s=t.gaEventCategory,l=t.callback,u="".concat(a,"-step"),d="".concat(a,"-run"),f=k(g.a).setValue,x=k(p.a).dismissTour,N=b((function(e){return e(g.a).getValue(u)})),C=b((function(e){return e(g.a).getValue(d)&&!1===e(p.a).isTourDismissed(a)}));Object(o.a)((function(){f(d,!0)}));var M=n.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({disableBeacon:!0,isFixed:!0,placement:"auto"},e)}));return r.createElement(c.e,{callback:function(t){!function(e){var t=e.index,n=e.action,r=e.lifecycle,a=e.size,i=e.status,o=e.type,l=t+1;o===c.b.TOOLTIP&&r===c.c.TOOLTIP?Object(m.b)(s,O,l):n===c.a.CLOSE&&r===c.c.COMPLETE?Object(m.b)(s,S,l):n===c.a.NEXT&&i===c.d.FINISHED&&o===c.b.TOUR_END&&a===l&&Object(m.b)(s,D,l),r===c.c.COMPLETE&&i!==c.d.FINISHED&&(n===c.a.PREV&&Object(m.b)(s,w,l),n===c.a.NEXT&&Object(m.b)(s,j,l))}(t);var n=t.action,r=t.index,i=t.status,o=t.step,d=t.type,g=n===c.a.CLOSE,p=!g&&[c.b.STEP_AFTER,c.b.TARGET_NOT_FOUND].includes(d),h=[c.d.FINISHED,c.d.SKIPPED].includes(i),v=g&&d===c.b.STEP_AFTER,b=h||v;if(c.b.STEP_BEFORE===d){var k,y,_=o.target;"string"==typeof o.target&&(_=e.document.querySelector(o.target)),null===(k=_)||void 0===k||null===(y=k.scrollIntoView)||void 0===y||y.call(k,{block:"center"})}p?function(e,t){f(u,e+(t===c.a.PREV?-1:1))}(r,n):b&&x(a),l&&l(t)},continuous:!0,disableOverlayClose:!0,disableScrolling:!0,floaterProps:E,locale:_,run:C,showProgress:!0,stepIndex:N,steps:M,styles:y,tooltipComponent:h.a})}TourTooltips.propTypes={steps:l.a.arrayOf(l.a.object).isRequired,tourID:l.a.string.isRequired,gaEventCategory:l.a.string.isRequired,callback:l.a.func}}).call(this,n(14),n(1))},167:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return TourTooltip}));var r=n(17),a=n.n(r),i=n(155),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(168),f=n(141),g=n(24);function TourTooltip(t){var n=t.backProps,r=t.closeProps,c=t.index,l=t.primaryProps,u=t.size,p=t.step,m=t.tooltipProps,h=u>1?Object(d.a)(u):[],v=function(e){return s()("googlesitekit-tooltip-indicator",{active:e===c})};return e.createElement("div",a()({className:"googlesitekit-tour-tooltip"},m),e.createElement(o.a,{className:"googlesitekit-tooltip-card"},e.createElement("div",{className:"googlesitekit-tooltip-body"},e.createElement("h2",{className:"googlesitekit-tooltip-title"},p.title),e.createElement("div",{className:"googlesitekit-tooltip-content"},p.content)),e.createElement(i.CardActions,{className:"googlesitekit-tooltip-actions"},e.createElement("ul",{className:"googlesitekit-tooltip-indicators"},h.map((function(t){return e.createElement("li",{key:"indicator-".concat(t),className:v(t)})}))),e.createElement("div",{className:"googlesitekit-tooltip-buttons"},0!==c&&e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},n),n.title),e.createElement(g.a,a()({className:"googlesitekit-tooltip-button",text:!0},l),l.title))),e.createElement(g.a,a()({className:"googlesitekit-tooltip-close",text:!0,icon:e.createElement(f.a,{width:"14",height:"14"})},r))))}TourTooltip.propTypes={backProps:u.a.object.isRequired,closeProps:u.a.object.isRequired,index:u.a.number.isRequired,isLastStep:u.a.bool.isRequired,primaryProps:u.a.object.isRequired,size:u.a.number.isRequired,step:u.a.shape({content:u.a.node.isRequired,title:u.a.node.isRequired}).isRequired,tooltipProps:u.a.object.isRequired}}).call(this,n(1))},168:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return new Array(null!=e?e:0).fill().map((function(e,t){return t}))}},169:function(e,t,n){"use strict";(function(e){var r=n(5),a=n.n(r),i=n(15),o=n(11),c=n(170),s=n(90),l=a.a.useSelect;t.a=function CurrentSurveyPortal(){var t=l((function(e){return e(i.c).isUsingProxy()})),n=l((function(e){return e(o.a).getCurrentSurvey()}));return t&&n?e.createElement(s.a,{slug:"survey"},e.createElement(c.a,null)):null}}).call(this,n(1))},170:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CurrentSurvey}));var r=n(6),a=n.n(r),i=n(26),o=n.n(i),c=n(13),s=n.n(c),l=n(156),u=n(232),d=n(1),f=n(5),g=n.n(f),p=n(54),m=n(11),h=n(171),v=n(172),b=n(179);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _=g.a.useDispatch,E=g.a.useSelect,O={rating:v.a};function CurrentSurvey(){var t=Object(d.useState)(!1),n=s()(t,2),r=n[0],i=n[1],c=Object(d.useState)(!1),f=s()(c,2),g=f[0],v=f[1],k=Object(d.useState)(!1),j=s()(k,2),w=j[0],S=j[1],D=Object(d.useState)(!1),x=s()(D,2),N=x[0],C=x[1],M=E((function(e){return e(m.a).getCurrentSurveyCompletions()})),T=E((function(e){return e(m.a).getCurrentSurveyQuestions()})),L=E((function(e){return e(m.a).getCurrentSurveySession()})),P=E((function(e){return e(m.a).isTrackingEnabled()})),A=L?"survey-".concat(L.session_id):null,R=E((function(e){return e(p.a).getValue(A,"hideSurvey")})),I=E((function(e){return e(p.a).getValue(A,"answers")})),F=_(p.a).setValues,z=_(m.a).sendSurveyEvent;Object(d.useEffect)((function(){(null==T?void 0:T.length)&&!r&&(i(!0),z("survey_shown"))}),[T,r,z]);var U,q=Math.max.apply(Math,[0].concat(o()((I||[]).map((function(e){return e.question_ordinal})))))+1,B=null==T?void 0:T.find((function(e){return e.question_ordinal===q})),H=Object(d.useCallback)((function(e){N||(C(!0),z("question_answered",{question_ordinal:null==B?void 0:B.question_ordinal,answer:e}),setTimeout((function(){F(A,{answers:[].concat(o()(I||[]),[{question_ordinal:null==B?void 0:B.question_ordinal,answer:e}])}),C(!1)}),300))}),[I,B,A,z,F,N]),W=(null==I?void 0:I.length)?I.reduce((function(e,t){return y(y({},e),{},a()({},t.question_ordinal,t.answer.answer.answer_ordinal))}),{}):[];(null==T?void 0:T.length)&&q>(null==T?void 0:T.length)&&(null==M||M.some((function(e){return e.trigger_condition.some((function(t){return!!t.answer_ordinal.includes(W[t.question_ordinal])&&(U=e,!0)})),!!U})),U||(U=M[0]));var G=Object(d.useCallback)((function(){var e;z("follow_up_link_clicked",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}),z("survey_closed"),F(A,{hideSurvey:!0})}),[A,z,F,U]),V=Object(d.useCallback)((function(){z("survey_closed"),S(!1)}),[z]),K=Object(d.useCallback)((function(){F(A,{hideSurvey:!0})}),[A,F]);if(Object(d.useEffect)((function(){var e;U&&!g&&(v(!0),z("completion_shown",{completion_ordinal:null===(e=U)||void 0===e?void 0:e.completion_ordinal}))}),[g,z,U]),Object(l.a)((function(){S(!0)})),R||!T||!M||void 0===P)return null;if(U)return e.createElement(u.a,{direction:"up",in:w,onExited:K},e.createElement("div",{className:"googlesitekit-survey"},e.createElement(h.a,{dismissSurvey:V,ctaOnClick:G,ctaText:U.follow_up_text,ctaURL:U.follow_up_url,title:U.completion_title},U.completion_text)));var $=O[null==B?void 0:B.question_type];return $?e.createElement(u.a,{direction:"up",in:w,onExited:K},e.createElement("div",{className:"googlesitekit-survey"},e.createElement($,{key:B.question_text,answerQuestion:H,choices:B.question.answer_choice,dismissSurvey:V,question:B.question_text}),!1===P&&1===(null==B?void 0:B.question_ordinal)&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(b.a,null)))):null}}).call(this,n(1))},171:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(24),o=n(118),c=function SurveyCompletion(t){var n=t.title,r=t.children,a=t.ctaText,c=t.ctaURL,s=t.ctaOnClick,l=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__completion"},e.createElement(o.a,{title:n,dismissSurvey:l}),e.createElement("div",{className:"googlesitekit-survey__body"},r),c&&a&&e.createElement("div",{className:"googlesitekit-survey__footer"},e.createElement(i.a,{href:c,onClick:s,target:"_blank"},a)))};c.propTypes={title:a.a.string.isRequired,children:a.a.node,ctaText:a.a.string,ctaURL:a.a.string,ctaOnClick:a.a.func,dismissSurvey:a.a.func.isRequired},c.defaultProps={title:"",children:null,ctaText:"",ctaURL:"",ctaOnClick:null},t.a=c}).call(this,n(1))},172:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(118),o=n(173),c=function SurveyQuestionRating(t){var n=t.question,r=t.choices,a=t.answerQuestion,c=t.dismissSurvey;return e.createElement("div",{className:"googlesitekit-survey__question-rating"},e.createElement(i.a,{title:n,dismissSurvey:c}),e.createElement("div",{className:"googlesitekit-survey__body"},e.createElement("div",{className:"googlesitekit-survey__choices"},r.map((function(t,n){return e.createElement(o.a,{key:n,choice:t,answerQuestion:a})})))))};c.propTypes={question:a.a.string.isRequired,choices:a.a.arrayOf(a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string})).isRequired,answerQuestion:a.a.func.isRequired,dismissSurvey:a.a.func.isRequired},t.a=c}).call(this,n(1))},173:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(24),c=n(174),s=n(175),l=n(176),u=n(177),d=n(178),f={1:c.a,2:s.a,3:l.a,4:u.a,5:d.a},g=function SurveyQuestionRatingChoice(t){var n=t.choice,r=t.answerQuestion,a=Object(i.useCallback)((function(){"function"==typeof r&&r({answer:{answer_ordinal:n.answer_ordinal}})}),[r,n]),c=f[n.answer_ordinal];return c?e.createElement("div",{className:"googlesitekit-survey__choice"},e.createElement(o.a,{icon:e.createElement(c,{width:30,height:30}),"aria-label":n.text,onClick:a}),e.createElement("p",null,n.text)):null};g.propTypes={choice:a.a.shape({answer_ordinal:a.a.oneOfType([a.a.string,a.a.number]),text:a.a.string}).isRequired},t.a=g}).call(this,n(1))},174:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zm-2.415 9c1.2-3.06 4.17-5.25 7.665-5.25s6.465 2.19 7.665 5.25H7.335z",fill:"currentColor"});t.a=function SvgSurveyUnhappy(e){return r.createElement("svg",a({fill:"none"},e),i)}},175:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm-13.725 9c1.245-3.495 4.56-6 8.49-6 3.915 0 7.23 2.505 8.475 6h-3.315c-1.035-1.785-2.955-3-5.16-3-2.22 0-4.125 1.215-5.175 3H6.525zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyDissatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},176:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zM9.75 9A2.247 2.247 0 0112 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9zm10.5 0A2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25 2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9zM10.5 22.5v-3h9v3h-9zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveyNeutral(e){return r.createElement("svg",a({fill:"none"},e),i)}},177:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30 15c0 8.28-6.72 15-15.015 15C6.705 30 0 23.28 0 15 0 6.72 6.705 0 14.985 0 23.28 0 30 6.72 30 15zm-9.75-1.5a2.247 2.247 0 002.25-2.25A2.247 2.247 0 0020.25 9 2.247 2.247 0 0018 11.25a2.247 2.247 0 002.25 2.25zm3.225 4.5c-1.245 3.495-4.56 6-8.49 6-3.915 0-7.23-2.505-8.475-6h3.315c1.035 1.785 2.955 3 5.16 3 2.22 0 4.125-1.215 5.175-3h3.315zM12 11.25a2.247 2.247 0 01-2.25 2.25 2.247 2.247 0 01-2.25-2.25A2.247 2.247 0 019.75 9 2.247 2.247 0 0112 11.25zM15 3c6.63 0 12 5.37 12 12s-5.37 12-12 12S3 21.63 3 15 8.37 3 15 3z",fill:"currentColor"});t.a=function SvgSurveySatisfied(e){return r.createElement("svg",a({fill:"none"},e),i)}},178:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.985 0C6.705 0 0 6.72 0 15c0 8.28 6.705 15 14.985 15C23.28 30 30 23.28 30 15c0-8.28-6.72-15-15.015-15zM15 27C8.37 27 3 21.63 3 15S8.37 3 15 3s12 5.37 12 12-5.37 12-12 12zm7.5-15.75a2.247 2.247 0 01-2.25 2.25A2.247 2.247 0 0118 11.25 2.247 2.247 0 0120.25 9a2.247 2.247 0 012.25 2.25zM9.75 13.5A2.247 2.247 0 0012 11.25 2.247 2.247 0 009.75 9a2.247 2.247 0 00-2.25 2.25 2.247 2.247 0 002.25 2.25zM22.665 18c-1.2 3.06-4.17 5.25-7.665 5.25S8.535 21.06 7.335 18h15.33z",fill:"currentColor"});t.a=function SvgSurveyDelighted(e){return r.createElement("svg",a({fill:"none"},e),i)}},179:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return SurveyTerms}));var r=n(2),a=n(146),i=n(5),o=n.n(i),c=n(15),s=n(21),l=o.a.useSelect;function SurveyTerms(){var t=l((function(e){return e(c.c).getGooglePrivacyPolicyURL()})),n=l((function(e){return e(c.c).getGoogleTermsURL()}));return e.createElement("p",{className:"googlesitekit-survey__terms"},Object(a.a)(Object(r.__)("By continuing, you agree to allow Google to use your answers and account info to improve services, per our <privacy>Privacy</privacy> & <terms>Terms</terms>.","google-site-kit"),{privacy:e.createElement(s.a,{href:t,inherit:!0,external:!0}),terms:e.createElement(s.a,{href:n,inherit:!0,external:!0})}))}}).call(this,n(1))},183:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSettingsWarning}));var r=n(5),a=n.n(r),i=n(23),o=n(8),c=n.n(o),s=n(157),l=a.a.useSelect;function ModuleSettingsWarning(t){var n=t.slug,r=l((function(e){var t;return null===(t=e(i.a))||void 0===t?void 0:t.getCheckRequirementsError(n)}));return r?e.createElement("div",{className:c()("googlesitekit-settings-module-warning","googlesitekit-settings-module-warning--modules-list")},e.createElement(s.a,{height:"20",width:"23"})," ",r.message):null}}).call(this,n(1))},193:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSettings}));var r=n(0),a=n.n(r),i=n(225),o=n(2),c=n(5),s=n.n(c),l=n(39),u=n(9),d=n(11),f=n(15),g=n(211),p=s.a.useSelect;function UserInputSettings(t){var n=t.onCTAClick,r=t.onDismiss,a=t.isDismissable,c=Object(i.a)(UserInputSettings),s=p((function(e){return e(f.c).getAdminURL("googlesitekit-user-input")}));return"completed"===p((function(e){return e(d.a).getUserInputState()}))?null:e.createElement(l.a,{id:"user-input-settings-notification-".concat(c),className:"googlesitekit-user-input__notification",title:Object(o.__)("Customize Site Kit to match your goals","google-site-kit"),description:Object(o.__)("Answer 5 questions and Site Kit will customize your dashboard with specific metrics and opportunities that match your site’s goals","google-site-kit"),format:"large",dismissExpires:3*Object(u.k)("hour"),ctaLink:s,ctaLabel:Object(o.__)("Let’s go","google-site-kit"),onCTAClick:n,dismiss:Object(o.__)("Remind me later","google-site-kit"),WinImageSVG:g.a,isDismissable:a,onDismiss:r})}UserInputSettings.propTypes={onCTAClick:a.a.func,onDismiss:a.a.func,isDismissable:a.a.bool}}).call(this,n(1))},2:function(e,t){e.exports=googlesitekit.i18n},20:function(e,t,n){"use strict";var r=n(86),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(186);n.d(t,"i",(function(){return i.a}));var o=n(246);n.d(t,"f",(function(){return o.a}));var c=n(247);n.d(t,"h",(function(){return c.a}));var s=n(107),l=n.n(s);n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return s.Option}));var u=n(248);n.d(t,"j",(function(){return u.a}));var d=n(245);n.d(t,"e",(function(){return d.a}));var f=n(244);n.d(t,"g",(function(){return f.a}));var g=n(92);n.d(t,"a",(function(){return g.a})),n.d(t,"b",(function(){return g.b})),n.d(t,"l",(function(){return g.c}))},202:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(2),u=n(1),d=n(5),f=n.n(d),g=n(15),p=n(11),m=n(39),h=n(154),v=f.a.useSelect;t.a=function DashboardCoreSiteAlerts(){var t=Object(u.useState)(!1),n=s()(t,2),r=n[0],i=n[1],c=Object(u.useState)(!1),d=s()(c,2),f=d[0],b=d[1],k=Object(u.useRef)(Date.now()),y=v((function(e){return e(p.a).getCurrentSurvey()})),_=v((function(e){return e(g.c).getNotifications()}));return Object(u.useEffect)((function(){var e=setTimeout((function(){f||i(!0)}),5e3);return function(){clearTimeout(e)}}),[f]),Object(u.useEffect)((function(){Math.floor((Date.now()-k.current)/1e3)<5&&y&&b(!0)}),[k,y,b]),Array.isArray(_)&&r&&!f?_.map((function(t){return e.createElement(m.a,{key:t.id,id:t.id,title:t.title||"",description:t.content||"",learnMoreURL:t.learnMoreURL||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",dismiss:t.dismissLabel||Object(l.__)("OK, Got it!","google-site-kit"),isDismissable:t.dismissible,onCTAClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.a)(t.id);case 2:case"end":return e.stop()}}),e)}))),onDismiss:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(h.b)(t.id);case 2:case"end":return e.stop()}}),e)})))})})):null}}).call(this,n(1))},203:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(43),l=n.n(s),u=n(44),d=n.n(u),f=n(29),g=n.n(f),p=n(1),m=n(2),h=n(31),v=n(9),b=n(39),k=n(204),y=n(205),_=n(206);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var O=function(t){l()(DashboardSetupAlerts,t);var n=E(DashboardSetupAlerts);function DashboardSetupAlerts(){return i()(this,DashboardSetupAlerts),n.apply(this,arguments)}return c()(DashboardSetupAlerts,[{key:"render",value:function(){var t=Object(v.j)("notification");if(!t||""===t)return null;var n={id:"connected-successfully",setupTitle:Object(m.__)("Site Kit","google-site-kit"),description:Object(m.__)("Now you’ll be able to see how your site is doing in search. To get even more detailed stats, activate more modules. Here are our recommendations for what to include in your Site Kit:","google-site-kit"),learnMore:{label:"",url:"",description:""}},a=e._googlesitekitLegacyData.permissions.canManageOptions;switch(t){case"authentication_success":if(!a)return null;var i=Object(v.i)(),o=Object(v.j)("slug");return o&&i[o]&&!i[o].active?null:(o&&i[o]&&(n.id="".concat(n.id,"-").concat(o),n.setupTitle=i[o].name,n.description=Object(m.__)("Here are some other services you can connect to see even more stats:","google-site-kit"),n=Object(h.c)("googlesitekit.SetupWinNotification-".concat(o),n)),r.createElement(p.Fragment,null,r.createElement(b.a,{id:n.id
2
+ /* translators: %s: the name of a module that setup was completed for */,title:Object(m.sprintf)(Object(m.__)("Congrats on completing the setup for %s!","google-site-kit"),n.setupTitle),description:n.description,handleDismiss:function(){},WinImageSVG:y.a,dismiss:Object(m.__)("OK, Got it!","google-site-kit"),format:"large",type:"win-success",learnMoreLabel:n.learnMore.label,learnMoreDescription:n.learnMore.description,learnMoreURL:n.learnMore.url,anchorLink:"pagespeed-insights"===o?"#googlesitekit-pagespeed-header":"",anchorLinkLabel:"pagespeed-insights"===o?Object(m.__)("Jump to the bottom of the dashboard to see how fast your home page is","google-site-kit"):""},r.createElement(k.a,{moduleSlugs:["search-console","adsense","analytics","pagespeed-insights"]}))));case"authentication_failure":return r.createElement(p.Fragment,null,r.createElement(b.a,{id:"connection error",title:Object(m.__)("There was a problem connecting to Google!","google-site-kit"),description:"",handleDismiss:function(){},format:"small",type:"win-error"}));case"user_input_success":return r.createElement(_.a,null)}}}]),DashboardSetupAlerts}(p.Component);t.a=O}).call(this,n(14),n(1))},204:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(2),g=n(9),p=n(5),m=n.n(p),h=n(21),v=n(116),b=n(183),k=n(100),y=n(15),_=n(23),E=n(41);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=m.a.useSelect,S=m.a.useDispatch;t.a=function ModulesList(t){var n=t.moduleSlugs,r=S(_.a).activateModule,i=S(E.a).navigateTo,c=S(y.c).setInternalServerError,l=w((function(e){return e(_.a).getModules()})),p=Object(d.useCallback)(function(){var e=s()(o.a.mark((function e(t){var n,a,s;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(t);case 2:if(n=e.sent,a=n.response,!(s=n.error)){e.next=8;break}return c({id:"setup-module-error",description:s.message}),e.abrupt("return",null);case 8:return e.next=10,Object(g.v)("".concat(t,"_setup"),"module_activate",t);case 10:i(a.moduleReauthURL);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,i,c]);if(!l)return null;var m=Array.isArray(n)&&n.length?n.filter((function(e){return l.hasOwnProperty(e)})).reduce((function(e,t){return j(j({},e),{},a()({},t,l[t]))}),{}):l,O=Object.values(m).filter((function(e){return!e.internal&&0===e.dependencies.length})).sort((function(e,t){return e.order-t.order}));return e.createElement("div",{className:"googlesitekit-modules-list"},O.map((function(t){var n=t.slug,r=t.name,a=t.connected,i=t.active,o=a&&i;return e.createElement("div",{key:n,className:u()("googlesitekit-modules-list__module","googlesitekit-modules-list__module--".concat(n))},e.createElement("div",{className:"googlesitekit-settings-connect-module__wrapper"},e.createElement("div",{className:"googlesitekit-settings-connect-module__logo"},e.createElement(v.a,{slug:n})),e.createElement("h3",{className:"googlesitekit-settings-connect-module__title"},r)),e.createElement(b.a,{slug:n,context:"modules-list"}),o&&e.createElement("span",{className:"googlesitekit-settings-module__status"},e.createElement("span",{className:"googlesitekit-settings-module__status-icon googlesitekit-settings-module__status-icon--connected"},e.createElement(k.a,null,Object(f.__)("Connected","google-site-kit"))),Object(f.__)("Connected","google-site-kit")),!o&&e.createElement(h.a,{onClick:function(){return p(n)},arrow:!0,small:!0,inherit:!0},Object(f.__)("Connect Service","google-site-kit")))})))}}).call(this,n(1))},205:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{stroke:"#E8EAED",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:6,d:"M200 10v31.42M105 35.46l15.71 27.2M35.46 105l27.2 15.71M10 200h31.42M35.46 295l27.2-15.71M364.54 295l-27.2-15.71M390 200h-31.42M364.54 105l-27.2 15.71M295 35.46l-15.71 27.2"}),o=r.createElement("path",{d:"M251.2 51.21c-.67-1 10.33-9.56 11.16-10.16 5.81-4.22 12.64-8 19.94-8.46 7.91-.53 15.45 2.58 23 4.58 10.31 2.77 21.44 3.8 32.09 1.69 9.59-1.9 20.83-5.9 27.87-12.93-.24.24.3 2.83.33 3.18a65.31 65.31 0 010 8.51 59.1 59.1 0 01-7 25.06 43.41 43.41 0 01-18.94 18.13C329.14 86 317.78 88.93 307 93.41c-6.7 2.79-18.11 7.23-18.11 16.07z",fill:"#F439A0"}),c=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M248.83 47.55l93.63 144.69"}),s=r.createElement("path",{d:"M279.89 172.88c18.52 6.68 53.35 9.87 64.53-10.87 14.77-27.39-23.47-38.52-43.87-34.53M88.94 145C13 233.15 70 296.93 119 267.62",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:9}),l=r.createElement("path",{d:"M234.54 260.65c59.23 111 7.37 98-23.53 93.23l2 20.19M186.58 274.6c31.93 144.76-28.4 65.93-35.58 53.33l-12.25 14.36",stroke:"#188038",strokeLinejoin:"round",strokeWidth:9}),u=r.createElement("path",{d:"M234.54 260.65q3.92 7.32 7.19 14M186.58 274.6q2.19 9.88 3.81 18.42",stroke:"#137333",strokeLinejoin:"round",strokeWidth:9}),d=r.createElement("path",{fill:"#1E8E3E",d:"M170.71 172.85l-98 39.35 39.35 98 98-39.35 98-39.35-39.35-98-98 39.35z"}),f=r.createElement("path",{d:"M158.45 268.63c-16.25 2.37-32.52-5.2-43.75-18.63l83.92-22.8",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:6}),g=r.createElement("path",{stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:7,d:"M316.62 152.31l25.84 39.93"});t.a=function SvgSuccessGreen(e){return r.createElement("svg",a({viewBox:"0 0 400 400",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},206:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return UserInputSuccessNotification}));var r=n(2),a=n(1),i=n(39),o=n(207),c=n(9);function UserInputSuccessNotification(){Object(a.useEffect)((function(){Object(c.v)("user_input","success_notification_view")}),[]);return e.createElement(i.a,{id:"user-input-success",title:Object(r.__)("Congrats! You set your site goals","google-site-kit"),description:Object(r.__)("Now Site Kit will begin suggesting metrics to add to your dashboard that are relevant specifically to you, based on the goals you shared","google-site-kit"),SmallImageSVG:o.a,dismiss:Object(r.__)("OK, got it!","google-site-kit"),format:"small",onDismiss:function(){Object(c.v)("user_input","success_notification_dismiss")}})}}).call(this,n(1))},207:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("path",{d:"M154.32 135.43c-10.56 8.65-20.59 16.68-30.15 23.63-5.07 3.7-14.21-1.31-15.28-8.16-1.86-12.85-3-26.17-3.63-39.8-12.15-7.93-24.13-15.53-35.44-22.35-6.11-3.63-4.22-12.48 3-15.39 13.28-5.23 26.64-10.44 40-15.38 4.23-13.83 8.45-27.77 12.11-41.4 2-7.39 10.41-8.93 14.89-2.73 8.25 11.45 17.13 23 26 34.42 14.22-.1 28.56 0 42.84.22 7.73.18 12.64 7.79 8.2 13.35-8.15 10.38-16.67 21.73-25.21 33.45 4.25 13 7.89 25.84 10.7 38.51 1.43 6.79-5.34 14.71-11.39 13-11.49-3.06-23.71-7.03-36.64-11.37z",fill:"#FBBC04"}),c=r.createElement("path",{d:"M205.44 73.7c10.67 26.59 20.64 47.74 16.58 76.8-4.67 33.43-33.31 70.54-68.1 75.46-17.34 2.45-35.57-2.42-47.85-15-12-12.26-18.78-29.18-21.81-45.85-3.25-17.94-2.2-36.87 3.91-54.11a77.26 77.26 0 014.71-10.76",stroke:"#4285F4",strokeLinecap:"square",strokeLinejoin:"round",strokeWidth:6}),s=r.createElement("g",{clipPath:"url(#milestone-blue_svg__clip0)",strokeLinejoin:"round",strokeWidth:6},r.createElement("path",{d:"M151.73 225.81L144 246.63a35.18 35.18 0 00.07 24.7l6.51 12.51h-8.34",stroke:"#1967D2"}),r.createElement("path",{stroke:"#185ABC",d:"M151.73 225.81l-5.6 15.04"}),r.createElement("path",{stroke:"#1967D2",d:"M164.04 231.67v52.17h7.76"}),r.createElement("path",{stroke:"#185ABC",d:"M164.04 221.67v20.1"})),l=r.createElement("path",{d:"M161.08 235.06a36.17 36.17 0 0026.08-44L117.07 209a36.17 36.17 0 0044.01 26.06z",fill:"#1A73E8"}),u=r.createElement("path",{d:"M142.64 217.51c5.53 7.83 16.11 10.61 24.45 1.64M145.07 215.59c-2.58.66-2.41 3.54-5.51 4.88",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:3}),d=r.createElement("path",{stroke:"#FEEFC3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:6,d:"M101.3 47.04L75.8 22.68M60.45 68.72l-34.37-6.91M208.28 22.68l-18.86 17.87M265.17 73.7l-32.36 3.02M66.15 109.02l-49.01 15.36"}),f=r.createElement("defs",null,r.createElement("clipPath",{id:"milestone-blue_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgMilestoneBlue(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f)}},208:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),g=n(18),p=n(1),m=n(2),h=n(9),v=n(39),b=n(126),k=n(209);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var _=function(t){s()(DashboardModulesAlerts,t);var n=y(DashboardModulesAlerts);function DashboardModulesAlerts(e){var t;return a()(this,DashboardModulesAlerts),(t=n.call(this,e)).state={data:!1},t}return o()(DashboardModulesAlerts,[{key:"componentDidMount",value:function(){var e=this,t=Object(b.e)();t&&Object(b.b)(t).then((function(t){e.setState({data:t.results})}))}},{key:"render",value:function(){var t=this.state.data;if(0===Object.keys(t).length)return null;var n=Object(h.i)(),r=[];return Object.keys(t).forEach((function(a){Object(g.each)(t[a],(function(t){r.push(e.createElement(v.a,{key:t.id,id:t.id,title:t.title||"",description:t.description||"",blockData:t.blockData||[],WinImageSVG:function WinImageSVG(){return e.createElement(k.a,{height:"136"})},format:t.format||"small",learnMoreURL:t.learnMoreURL||"",learnMoreDescription:t.learnMoreDescription||"",learnMoreLabel:t.learnMoreLabel||"",ctaLink:t.ctaURL||"",ctaLabel:t.ctaLabel||"",ctaTarget:t.ctaTarget||"",type:t.severity||"",dismiss:t.dismiss||Object(m.__)("OK, Got it!","google-site-kit"),isDismissable:t.isDismissable||!0,logo:t.logo||!0,module:a,moduleName:n[a].name,pageIndex:t.pageIndex||"",dismissExpires:t.dismissExpires||0,showOnce:t.showOnce||!1}))}))})),e.createElement(p.Fragment,null,r)}}]),DashboardModulesAlerts}(p.Component);t.a=_}).call(this,n(1))},209:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:150,cy:150,r:100,fill:"#D2E3FC"}),o=r.createElement("g",{clipPath:"url(#notification-alert_svg__clip0)",strokeMiterlimit:10,strokeWidth:15},r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15s44.18-11.1 65.14-20.18c9.91-4.3 20.07-8.62 30.85-9.31s22.46 2.9 28.7 11.71a24 24 0 013.78 17.65",stroke:"#4285F4"}),r.createElement("path",{d:"M9.05 157.71c13.32 18.56 38.17 25.89 61 24.15",stroke:"#1A73E8"})),c=r.createElement("path",{stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33l-67.86 256.23"}),s=r.createElement("path",{stroke:"#A50E0E",strokeMiterlimit:10,strokeWidth:10,d:"M225.13 32.33L193.97 150"}),l=r.createElement("path",{d:"M221.3 13l-94.69 95.2a10 10 0 004.53 16.72L261 159.3a10 10 0 0012.18-12.3L238 17.39A10 10 0 00221.3 13z",fill:"#D93025"}),u=r.createElement("path",{d:"M137.37 111.56l87.36-87.87a3 3 0 015 1.33l32.42 119.6a3 3 0 01-3.66 3.68l-119.76-31.72a3 3 0 01-1.36-5.02z",stroke:"#C5221F",strokeMiterlimit:10,strokeWidth:2}),d=r.createElement("path",{d:"M196.78 118.35a7.38 7.38 0 01-.78-5.84 7.25 7.25 0 013.56-4.64 7.46 7.46 0 015.83-.73 7.51 7.51 0 015.4 9.29 7.51 7.51 0 01-3.52 4.7 7.27 7.27 0 01-5.8.8 7.44 7.44 0 01-4.69-3.58zm12.05-46.1l5.56-21 10.82 2.87-5.55 21-8 25.41-8.6-2.28z",fill:"#FFF"}),f=r.createElement("path",{d:"M198.47 181.73a23.18 23.18 0 01-8.2 14.28c-9.2 7.58-24.24 6.67-32.46-2",stroke:"#4285F4",strokeMiterlimit:10,strokeWidth:15}),g=r.createElement("defs",null,r.createElement("clipPath",{id:"notification-alert_svg__clip0"},r.createElement("circle",{cx:150,cy:150,r:100})));t.a=function SvgNotificationAlert(e){return r.createElement("svg",a({viewBox:"0 0 300 300",fill:"none"},e),i,o,c,s,l,u,d,f,g)}},21:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(115),f=n(2);function Link(t){var n,r=t["aria-label"],i=t.arrow,c=t.back,s=t.caps,l=t.children,g=t.className,p=t.danger,m=t.disabled,h=t.external,v=t.hideExternalIndicator,b=t.href,k=t.inherit,y=t.inverse,_=t.onClick,E=t.small,O=t.to,j=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inherit","inverse","onClick","small","to"]),w=b||O||!_?O?"ROUTER_LINK":h?"EXTERNAL_LINK":"LINK":m?"BUTTON_DISABLED":"BUTTON",S="BUTTON"===w||"BUTTON_DISABLED"===w?"button":"ROUTER_LINK"===w?d.b:"a",D=("EXTERNAL_LINK"===w&&(n=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===w&&(n=Object(f._x)("(disabled)","screen reader text","google-site-kit")),n?r?"".concat(r," ").concat(n):"string"==typeof l?"".concat(l," ").concat(n):void 0:r);return e.createElement(S,a()({"aria-label":D,className:u()("googlesitekit-cta-link",g,{"googlesitekit-cta-link--arrow":i,"googlesitekit-cta-link--external":h&&!v,"googlesitekit-cta-link--inverse":y,"googlesitekit-cta-link--back":c,"googlesitekit-cta-link--small":E,"googlesitekit-cta-link--inherit":k,"googlesitekit-cta-link--caps":s,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),disabled:m,href:"LINK"===w||"EXTERNAL_LINK"===w?b:void 0,onClick:_,rel:"EXTERNAL_LINK"===w?"noopener noreferrer":void 0,target:"EXTERNAL_LINK"===w?"_blank":void 0,to:O},j),l)}Link.propTypes={arrow:s.a.bool,back:s.a.bool,caps:s.a.bool,children:s.a.node,className:s.a.string,danger:s.a.bool,disabled:s.a.bool,external:s.a.bool,hideExternalIndicator:s.a.bool,href:s.a.string,inherit:s.a.bool,inverse:s.a.bool,onClick:s.a.func,small:s.a.bool,to:s.a.string},Link.defaultProps={arrow:!1,back:!1,caps:!1,className:"",danger:!1,disabled:!1,external:!1,hideExternalIndicator:!1,href:"",inherit:!1,inverse:!1,small:!1},t.a=Link}).call(this,n(1))},210:function(e,t,n){"use strict";(function(e){var r=n(1),a=n(9),i=n(193);t.a=function UserInputPromptNotification(){Object(r.useEffect)((function(){Object(a.v)("user_input","prompt_notification_view")}),[]);return e.createElement(i.a,{isDismissable:!0,onCTAClick:function(){Object(a.v)("user_input","prompt_notification_start")},onDismiss:function(){Object(a.v)("user_input","prompt_notification_dismiss")}})}}).call(this,n(1))},211:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M294.5 39.35h244.69v251.12a7.5 7.5 0 01-7.5 7.5H302a7.5 7.5 0 01-7.5-7.5V39.35z",fill:"#F1F3F4"}),o=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 68.28h45.25v45.25H314.5zM314.5 146.04h45.25v45.25H314.5z"}),c=r.createElement("path",{d:"M313.38 145.1c14.28 17.62 17.8 21.42 32.08 39",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5}),s=r.createElement("path",{fill:"#FFF",stroke:"#DADCE0",strokeMiterlimit:10,strokeWidth:1.5,d:"M314.5 223.79h45.25v45.25H314.5z"}),l=r.createElement("ellipse",{cx:149.01,cy:322.24,rx:72.28,ry:7.51,fill:"#F1F3F4"}),u=r.createElement("path",{d:"M302 10h229.69a7.5 7.5 0 017.5 7.5v21.85H294.5V17.5A7.5 7.5 0 01302 10z",fill:"#80868B"}),d=r.createElement("circle",{cx:314.91,cy:24.68,r:5.32,fill:"#FFF"}),f=r.createElement("circle",{cx:336.18,cy:24.68,r:5.32,fill:"#FFF"}),g=r.createElement("path",{d:"M232.78 231.28c42.24.91 55.06-20.59 39.78-70.34",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),p=r.createElement("path",{d:"M158.93 241.76c-2.23 25.53-1.22 59.63 6.93 80.6H184M126.69 241.76c-2.29 25-.62 58.69 6.93 80.6H116.8",stroke:"#188038",strokeLinejoin:"round",strokeWidth:8.03}),m=r.createElement("path",{d:"M158.93 241.76a244.31 244.31 0 00-1 26.13M126.69 241.76c-.57 6.24-.9 17.52-1 23.59",stroke:"#137333",strokeLinejoin:"round",strokeWidth:8.03}),h=r.createElement("path",{d:"M36.83 277.33c-9.72-9.09-13.91-26.06-8.22-38.36 4.92-10.64 20.49-22.29 31.69-23.47",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:8.03}),v=r.createElement("path",{fill:"#1E8E3E",d:"M151.1 160.94l93.85 6.87-6.87 93.85-93.85-6.87-93.85-6.87 6.87-93.85 93.85 6.87z"}),b=r.createElement("path",{d:"M181.25 219.25c-18.11 15.64-48.49 18.13-68.47-5",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5.74}),k=r.createElement("path",{stroke:"#DADCE0",strokeLinejoin:"round",strokeWidth:20,d:"M380.07 90.91h139.12M380.07 168.66h139.12M380.07 246.42h139.12"}),y=r.createElement("path",{fill:"#FBBC04",d:"M319.603 184.523l-155.3-70.055 8.98-19.908 155.3 70.055z"}),_=r.createElement("path",{fill:"#DADCE0",d:"M328.59 164.62l25.17 22.94-34.15-3.03 8.98-19.91z"}),E=r.createElement("path",{fill:"#5F6368",d:"M344.35 186.72l9.41.84-6.92-6.29-2.49 5.45z"}),O=r.createElement("path",{d:"M164.22 114.43h.09L175 119.3l9-19.91-10.7-4.84h-.09a10.92 10.92 0 00-9 19.91z",fill:"#EE675C"}),j=r.createElement("path",{fill:"#DADCE0",d:"M176.772 120.092l-4.557-2.056 8.984-19.917 4.558 2.056z"}),w=r.createElement("path",{stroke:"#F29900",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4,d:"M318.21 172.07l-130.15-58.71"}),S=r.createElement("path",{d:"M307.33 65.64a267 267 0 0064.05 58M312.39 117.93l40.77-54.45",stroke:"#9AA0A6",strokeLinejoin:"round",strokeWidth:5});t.a=function SvgUserInputPrompt(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,g,p,m,h,v,b,k,y,_,E,O,j,w,S)}},212:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(2),s=n(1),l=n(5),u=n.n(l),d=n(23),f=n(11),g=n(41),p=n(15),m=n(51),h=n(39),v=n(213),b=u.a.useSelect,k=u.a.useDispatch;t.a=function IdeaHubModuleNotification(){var t=k(f.a).dismissItem,n=k(d.a).activateModule,r=k(g.a).navigateTo,i=k(p.c).setInternalServerError,l=b((function(e){return e(d.a).isModuleActive("idea-hub")})),u=b((function(e){return e(f.a).isItemDismissed("idea-hub-module-notification")})),y=b((function(e){var t;return null===(t=e(m.j))||void 0===t?void 0:t.getAdminReauthURL()})),_=Object(s.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("idea-hub-module-notification");case 2:case"end":return e.stop()}}),e)}))),[t]),E=Object(s.useCallback)(function(){var e=o()(a.a.mark((function e(t){var o,c,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,n("idea-hub");case 3:o=e.sent,c=o.error,s=o.response,c?i({id:"idea-hub-setup-error",description:c.message}):r(s.moduleReauthURL);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,r,i]);return l||void 0===l||u||void 0===u?null:e.createElement(h.a,{id:"idea-hub-module-notification",title:Object(c.__)("Get new ideas to write about based on what people are searching for","google-site-kit"),description:Object(c.__)("Set up Idea Hub to get topic suggestions based on unanswered searches that match your site’s topic.","google-site-kit"),ctaLabel:Object(c.__)("Set up","google-site-kit"),ctaLink:y,SmallImageSVG:v.a,format:"small",type:"win-success",dismiss:Object(c.__)("Dismiss","google-site-kit"),onDismiss:_,onCTAClick:E})}}).call(this,n(1))},213:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("circle",{cx:72,cy:72,r:72,fill:"#FDE9CC"}),o=r.createElement("g",{clipPath:"url(#idea-hub-notification_svg__clip0)"},r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M74.755 64.393c1.844 1.18 2.421 3.625 1.33 5.519l-.073.12L67.567 83.6H79.02c3.314 0 5.194 3.82 3.254 6.5l-.076.103-14.014 18.223a3.993 3.993 0 01-5.657.709c-1.717-1.359-2.054-3.849-.784-5.623l.085-.115 8.936-11.62H60.256c-3.13 0-5.05-3.452-3.475-6.158l.067-.113 12.348-19.839a3.997 3.997 0 015.56-1.274zm16.02-18.441l.044.027.023.014a4.071 4.071 0 011.287 5.575l-4.313 7a3.995 3.995 0 01-5.498 1.306l-.043-.027-.023-.014a4.071 4.071 0 01-1.286-5.575l4.312-7a3.996 3.996 0 015.497-1.306zm-36.837 0a3.996 3.996 0 015.498 1.306l4.312 7a4.071 4.071 0 01-1.287 5.575l-.023.014-.043.027a3.995 3.995 0 01-5.497-1.306l-4.313-7a4.071 4.071 0 011.287-5.575l.023-.014.043-.027zM72.34 34c2.183 0 3.96 1.76 4.03 3.956l.001.132v14.138c0 2.258-1.804 4.088-4.03 4.088-2.183 0-3.96-1.76-4.029-3.956l-.002-.132V38.088c0-2.258 1.805-4.088 4.03-4.088z",fill:"url(#idea-hub-notification_svg__paint0_linear)"})),c=r.createElement("defs",null,r.createElement("linearGradient",{id:"idea-hub-notification_svg__paint0_linear",x1:76.563,y1:27.817,x2:53.123,y2:106.964,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#FAA900"}),r.createElement("stop",{offset:1,stopColor:"#F57F00"})),r.createElement("clipPath",{id:"idea-hub-notification_svg__clip0"},r.createElement("path",{fill:"#fff",transform:"translate(52 34)",d:"M0 0h40.714v76H0z"})));t.a=function SvgIdeaHubNotification(e){return r.createElement("svg",a({viewBox:"0 0 144 144",fill:"none"},e),i,o,c)}},214:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(89),i=n(215),o=n(100);t.a=function Logo(){return e.createElement("div",{className:"googlesitekit-logo","aria-hidden":"true"},e.createElement(a.a,{className:"googlesitekit-logo__logo-g",height:"34",width:"32"}),e.createElement(i.a,{className:"googlesitekit-logo__logo-sitekit",height:"26",width:"99"}),e.createElement(o.a,null,Object(r.__)("Site Kit by Google Logo","google-site-kit")))}}).call(this,n(1))},215:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M62.09 1.664h3.038v.1L58.34 9.593l7.241 10.224v.1H62.7L56.755 11.4 53.95 14.64v5.278h-2.351V1.664h2.35v9.415h.1l8.04-9.415zM69.984 3.117c0 .454-.166.853-.487 1.175-.322.322-.71.488-1.176.488-.455 0-.854-.166-1.175-.488a1.599 1.599 0 01-.488-1.175c0-.466.166-.854.488-1.176.321-.322.71-.488 1.175-.488.455 0 .854.166 1.176.488.332.333.487.72.487 1.176zm-.476 4.313v12.498h-2.351V7.43h2.35zM77.016 20.128c-1.02 0-1.864-.31-2.54-.943-.676-.632-1.02-1.508-1.031-2.628V9.57h-2.196V7.43h2.196V3.603h2.35V7.43h3.061v2.14h-3.06v6.222c0 .831.166 1.397.488 1.696.321.3.687.444 1.097.444.189 0 .366-.022.555-.067.188-.044.344-.1.499-.166l.743 2.096c-.632.222-1.342.333-2.162.333zM2.673 18.952C1.375 18.009.488 16.678 0 14.97l2.883-1.176c.289 1.076.799 1.94 1.542 2.628.732.677 1.619 1.02 2.65 1.02.965 0 1.774-.244 2.45-.742.677-.5 1.01-1.187 1.01-2.052 0-.798-.3-1.453-.887-1.974-.588-.521-1.62-1.042-3.094-1.564l-1.22-.432C4.025 10.224 2.928 9.57 2.04 8.716 1.153 7.862.71 6.742.71 5.346c0-.966.266-1.853.787-2.673C2.018 1.852 2.75 1.209 3.693.72 4.624.244 5.678 0 6.864 0c1.708 0 3.072.41 4.081 1.242 1.02.832 1.697 1.752 2.04 2.795L10.236 5.2c-.2-.621-.576-1.164-1.142-1.63-.565-.477-1.286-.71-2.173-.71s-1.641.222-2.251.676c-.61.455-.91 1.032-.91 1.742 0 .676.278 1.22.82 1.663.544.432 1.398.854 2.563 1.253l1.22.41c1.674.577 2.96 1.342 3.88 2.274.921.931 1.376 2.184 1.376 3.748 0 1.275-.322 2.34-.976 3.193a6.01 6.01 0 01-2.495 1.919 8.014 8.014 0 01-3.116.621c-1.62 0-3.072-.466-4.358-1.408zM15.969 3.449a1.95 1.95 0 01-.588-1.43c0-.566.2-1.043.588-1.431A1.95 1.95 0 0117.399 0c.566 0 1.043.2 1.43.588.389.388.588.865.588 1.43 0 .566-.2 1.043-.587 1.43a1.95 1.95 0 01-1.43.589c-.566-.012-1.043-.2-1.431-.588zm-.067 2.595h2.994v13.883h-2.994V6.044zM25.405 19.85c-.543-.2-.986-.466-1.33-.788-.776-.776-1.176-1.84-1.176-3.182V8.683h-2.428v-2.64h2.428V2.13h2.994v3.926h3.372v2.639h-3.372v6.531c0 .743.145 1.276.433 1.575.277.366.743.543 1.42.543.31 0 .576-.044.82-.122.233-.077.488-.21.765-.399v2.917c-.599.277-1.32.41-2.173.41a5.01 5.01 0 01-1.753-.3zM33.623 19.407a6.63 6.63 0 01-2.529-2.628c-.61-1.12-.909-2.373-.909-3.77 0-1.332.3-2.551.887-3.693.588-1.132 1.409-2.04 2.462-2.706 1.053-.666 2.251-1.01 3.593-1.01 1.397 0 2.606.311 3.637.921a6.123 6.123 0 012.34 2.528c.532 1.076.799 2.274.799 3.627 0 .255-.023.576-.078.953H33.179c.111 1.287.566 2.285 1.375 2.983a4.162 4.162 0 002.817 1.043c.854 0 1.597-.189 2.218-.588a4.266 4.266 0 001.508-1.597l2.528 1.198c-.654 1.142-1.508 2.04-2.561 2.694-1.054.655-2.318.976-3.782.976-1.364.022-2.584-.288-3.66-.931zm7.23-8.051a3.332 3.332 0 00-.466-1.453c-.277-.477-.687-.887-1.242-1.208-.554-.322-1.23-.488-2.03-.488-.964 0-1.773.288-2.439.853-.665.566-1.12 1.342-1.375 2.296h7.552z",fill:"#5F6368"});t.a=function SvgLogoSitekit(e){return r.createElement("svg",a({viewBox:"0 0 80 21",fill:"none"},e),i)}},23:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(120),f=n(271),g=n(1),p=n(2),m=n(20),h=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,l=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,k=t.trailingIcon,y=t["aria-label"],_=t.title,E=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),O=Object(g.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),j=Object(d.a)(n,O),w=i&&!h?"a":"button",S=e.createElement(w,a()({className:s()("mdc-button",l,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:j,disabled:!!h,"aria-label":function(){var e=y;if("_blank"!==v)return e;var t=Object(p._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===w?"button":void 0},E),b,r&&e.createElement("span",{className:"mdc-button__label"},r),k);return b&&(_||y)&&void 0===r?e.createElement(f.a,{title:_||y,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),s="googlesitekit_legacy_1.38.1_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},273:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function Checkbox(t){var n=t.onChange,r=t.id,i=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:a()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:i,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),s=n(203),l=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),p=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(s.a,null)),h=Object(i.a)(t.createElement(l.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==g&&"authentication_failure"!==g&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},288:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return m}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(38),s=n.n(c),l=n(15),u=n(131),d=function(){var t=o()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},g=function(){var e=o()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},301:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(146),g=n(2),p=n(5),m=n.n(p),h=n(11),v=n(40),b=n(273),k=n(21),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,i=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),p=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",i)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(g.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(g.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==p?void 0:p.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==p?void 0:p.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(1))},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},l=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=s("sessionStorage")?e.sessionStorage:s("localStorage")?e.localStorage:new l),r}}).call(this,n(14))},322:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(8),h=n.n(m),v=n(111),b=n(1),k=n(2),y=n(31),_=n(126),E=n(100);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name");if(!t)return null;var n=Object(k.sprintf)(
3
  /* translators: %d: the number of notifications */
4
  Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),r=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,n));return Object(v.createPortal)(r,t)}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(1))},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},38:function(e,t){e.exports=googlesitekit.api},383:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(16),a=n.n(r),i=n(2),o=n(0),c=n.n(o),s=n(5),l=n.n(s),u=n(148),d=n(71),f=n(384),g=n(385),p=n(15),m=n(288),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=a()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(p.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(i.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(g.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(i.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(1))},384:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(156),u=n(1);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),i=s()(r,2),c=i[0],f=i[1],g=Object(u.useState)(void 0),p=s()(g,2),m=p[0],h=p[1];return Object(l.a)((function(){c||function(){var e=o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return i=r.value,e.next=8,i();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},385:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(17),a=n.n(r),i=n(2),o=n(5),c=n.n(o),s=n(58),l=n(21),u=n(15),d=n(131),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(i.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,a()({},function(e){var t=e.installed,n=e.active,r=e.installURL,a=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(i.__)("Install the helper plugin","google-site-kit"),children:Object(i.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&a?{"aria-label":Object(i.__)("Activate the helper plugin","google-site-kit"),children:Object(i.__)("Activate","google-site-kit"),href:a,external:!1}:t&&n&&o?{"aria-label":Object(i.__)("Configure the helper plugin","google-site-kit"),children:Object(i.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(i.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(i.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(i.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
5
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
7
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
8
  Object(i.__)('To get more help, ask a question on our <a href="%1$s">support forum</a> and include the text of the original error message: %2$s',"google-site-kit"),"https://wordpress.org/support/plugin/google-site-kit/","<br/>".concat(n)),"\n\t\t\t\t\t\t"),{ALLOWED_TAGS:["a","br"],ALLOWED_ATTR:["href"]})});case d.h:return e.createElement("p",null,Object(i.__)("Looks like you’re using a version of WordPress that’s older than 5.0. You can still install and use Site Kit, but some of its features might not work (for example translations).","google-site-kit"))}}}).call(this,n(1))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),s=n.n(c),l=n(33),u=n.n(l),d=n(34),f=n.n(d),g=n(55),p=n.n(g),m=n(43),h=n.n(m),v=n(44),b=n.n(v),k=n(29),y=n.n(k),_=n(0),E=n.n(_),O=n(8),j=n.n(O),w=n(18),S=n(1),D=n(89),x=n(58),N=n(27),C=n(82),M=n(24),T=n(148),L=n(158),P=n(21),A=n(116);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var a=y()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=R(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(N.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=s()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(N.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=s()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(N.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(N.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,s=r.title,l=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,v=r.ctaLink,b=r.ctaLabel,k=r.ctaTarget,y=r.type,_=r.dismiss,E=r.isDismissable,O=r.logo,R=r.module,I=r.moduleName,F=r.pageIndex,z=r.anchorLink,U=r.anchorLinkLabel;if(Object(N.c)("notification::dismissed::".concat(o)))return null;var q,B=n?"is-closed":"is-open",H="large"===g&&"win-stats-increase"===y,W="mdc-layout-grid__cell--span-12";"large"===g?(W="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(W="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(W="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),q="win-warning"===y?e.createElement(T.a,null):"win-error"===y?e.createElement(L.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(C.a,t)))})))),V=e.createElement(S.Fragment,null,s&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},s),z&&U&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(P.a,{href:z},U)),l&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(l)?l:e.createElement("span",{dangerouslySetInnerHTML:Object(x.a)(l,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(S.Fragment,null," ",e.createElement(P.a,{href:p,external:!0,inherit:!0},h),m),F&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},F))),i),K=R?e.createElement(A.a,{slug:R,size:19}):e.createElement(D.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(y),y),a()(t,"googlesitekit-publisher-win--".concat(B),B),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},O&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},K),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",W)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,V,G),v&&e.createElement(M.a,{className:"googlesitekit-notification__cta",href:v,target:k,onClick:this.handleCTAClick},b),E&&_&&e.createElement(P.a,{onClick:this.handleDismiss},_)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===y||"win-warning"===y)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},q)))))}}]),Notification}(S.Component);I.propTypes={id:E.a.string.isRequired,className:E.a.string,title:E.a.string.isRequired,description:E.a.node,learnMoreURL:E.a.string,learnMoreDescription:E.a.string,learnMoreLabel:E.a.string,blockData:E.a.array,WinImageSVG:E.a.elementType,SmallImageSVG:E.a.elementType,format:E.a.string,ctaLink:E.a.string,ctaLabel:E.a.string,type:E.a.string,dismiss:E.a.string,isDismissable:E.a.bool,logo:E.a.bool,module:E.a.string,moduleName:E.a.string,pageIndex:E.a.string,dismissExpires:E.a.number,showOnce:E.a.bool,onCTAClick:E.a.func,onDismiss:E.a.func,anchorLink:E.a.string,anchorLinkLabel:E.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},s=Object(r.a)(c),l=s.enableTracking,u=s.disableTracking,d=s.isTrackingEnabled,f=s.trackEvent;function g(e){e?l():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},51:function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return s})),n.d(t,"i",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f}));var r="modules/idea-hub",a="IDEA_HUB_BUTTON_CREATE",i="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",s="IDEA_HUB_BUTTON_DELETE",l=4,u="IDEA_HUB_ACTIVITY_CREATING_DRAFT",d="IDEA_HUB_ACTIVITY_DRAFT_CREATED",f="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),s=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},l=n(13),u=n.n(l),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),s(n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
9
  /* translators: %s: number of days */
10
+ Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.38.1","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,s=i.value,l=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,s,l,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,s=i.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var s=document.createElement("span");return s.setAttribute("class","screen-reader-text"),s.textContent=Object(i.sprintf)(
11
  /* translators: %d is the number of notifications */
12
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(s),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},l=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var s=a()(r.value,2),l=s[0],d=s[1];i[l]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),s=n(31),l=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),p=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],p=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var v=10,b=g.slice(0,v),k=g.slice(v);if(k=k.concat(p),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(l.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],l=r[c],f=l.datapoint,g=l.type,p=l.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:p,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(p.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(d.d)(e,t,n,a);if(!i){var l=Object(d.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(s,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),s=n.n(c),l=n(16),u=n.n(l),d=n(18),f=n(64),g=n.n(f),p=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?O(a,h(h({},o),{},{unit:"second"})):Object(p.sprintf)(
13
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
20
  Object(p.__)("%sM","google-site-kit"),O(k(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
21
  Object(p.__)("%sK","google-site-kit"),O(k(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
22
  Object(p.__)("%sK","google-site-kit"),O(k(e),e%10==0?{}:t)):O(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?y(e):"duration"===i?v(e,t):O(e,n)},E=g()(console.warn),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),p=g[0],m=g[1];c[p]&&m===c[p]||(s.includes(p)||(l[p]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
23
+ /* translators: used between list items, there is a space after the comma. */var l=Object(p.__)(", ","google-site-kit");return e.join(l)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},71:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,s=t.progress,l=void 0!==c?Math.round(c/2):void 0,u=s?"scaleX(".concat(s,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:l,marginBottom:l},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(1))},724:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ActivationApp}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(1),s=n(2),l=n(5),u=n.n(l),d=n(9),f=n(725),g=n(322),p=n(15),m=n(11),h=n(41),v=u.a.useSelect,b=u.a.useDispatch;function ActivationApp(){var t=b(h.a).navigateTo,n=v((function(e){return e(p.c).getProxySetupURL()})),r=v((function(e){return e(p.c).getAdminURL("googlesitekit-dashboard")})),i=v((function(e){return e(p.c).getAdminURL("googlesitekit-splash")})),l=v((function(e){return e(m.a).hasCapability(m.d)})),u=n||i,k=Object(s.__)("Start setup","google-site-kit");l&&(u=r,k=Object(s.__)("Go to Dashboard","google-site-kit"));var y=Object(c.useCallback)(function(){var e=o()(a.a.mark((function e(r){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.preventDefault(),e.next=3,Object(d.v)("plugin_setup",n?"proxy_start_setup_banner":"goto_sitekit");case 3:t(u);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,u,t]);return u?e.createElement(c.Fragment,null,e.createElement(g.a,null),e.createElement(f.a,{buttonURL:u,buttonLabel:k,onButtonClick:y})):null}}).call(this,n(1))},725:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ActivationMain}));var r=n(1),a=n(2),i=n(0),o=n.n(i),c=n(24),s=n(214),l=n(301),u=n(383);function ActivationMain(t){var n=t.buttonURL,i=t.onButtonClick,o=t.buttonLabel;return e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(s.a,null),e.createElement("h3",{className:"googlesitekit-heading-3 googlesitekit-activation__title"},Object(a.__)("Congratulations, the Site Kit plugin is now activated.","google-site-kit")),e.createElement(u.a,null,(function(t){var a=t.complete,s=t.inProgressFeedback,u=t.ctaFeedback;return e.createElement(r.Fragment,null,u,e.createElement(l.a,{optinAction:"analytics_optin_setup_banner"}),e.createElement("div",{className:"googlesitekit-start-setup-wrap"},e.createElement(c.a,{id:"start-setup-link",className:"googlesitekit-start-setup",href:n,onClick:i,disabled:!a},o),s))})))))}ActivationMain.propTypes={buttonURL:o.a.string.isRequired,onButtonClick:o.a.func,buttonLabel:o.a.string.isRequired}}).call(this,n(1))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,l,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),s=n.n(c),l=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(l.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,l){var d,g,p,m,h,v,b,k;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:p?"true":"false",dimension3:b,dimension4:"1.38.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(0),h=n.n(m),v=n(8),b=n.n(v),k=n(1),y=n(2),_=n(59),E=n(97),O=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===s?"button":"",h=g;h&&p&&(h=Object(k.cloneElement)(g,{invertChangeColor:p}));var v=o;c&&(v="%"===c?Object(O.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.q)(o,c)),l&&(v=Object(y.sprintf)(l,v));var j=a&&Object(O.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(l),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},89:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},9:function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return j})),n.d(t,"a",(function(){return w})),n.d(t,"i",(function(){return S})),n.d(t,"x",(function(){return D})),n.d(t,"d",(function(){return x}));var r=n(6),a=n.n(r),i=n(19),o=n.n(i),c=n(108),s=n.n(c),l=n(104),u=n.n(l),d=n(40);n.d(t,"v",(function(){return d.b}));var f=n(58);n.d(t,"s",(function(){return f.a})),n.d(t,"w",(function(){return f.b}));var g=n(56);n.d(t,"u",(function(){return g.a}));var p=n(61);n.d(t,"b",(function(){return p.b})),n.d(t,"j",(function(){return p.c}));n(32);var m=n(68);n.d(t,"h",(function(){return m.a})),n.d(t,"n",(function(){return m.b})),n.d(t,"q",(function(){return m.c})),n.d(t,"r",(function(){return m.d}));var h=n(49);n.d(t,"e",(function(){return h.b}));var v=n(74);n.d(t,"o",(function(){return v.a}));var b=n(75);n.d(t,"c",(function(){return b.a}));var k=n(52);n.d(t,"t",(function(){return k.i}));var y=n(76);n.d(t,"f",(function(){return y.a})),n.d(t,"m",(function(){return y.b}));var _=n(65);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"g",(function(){return _.a})),n.d(t,"l",(function(){return _.b})),n.d(t,"p",(function(){return _.c}));var j=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},w=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!s()(n)?null:n},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,n=t.modules;return n?Object.keys(n).reduce((function(e,t){return"object"!==o()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:O(O({},e),{},a()({},t,n[t]))}),{}):{}},D=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},x=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return u()(t)}}).call(this,n(14))},90:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(243),o=n(0),c=n.n(o),s=n(1),l=n(111);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=a()(r,1)[0];return Object(i.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(l.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},92:function(e,t,n){"use strict";var r=n(101);n.d(t,"a",(function(){return r.a}));var a=n(102);n.d(t,"c",(function(){return a.a}));var i=n(103);n.d(t,"b",(function(){return i.a}))},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(16),a=n.n(r),i=n(6),o=n.n(i),c=n(3),s=n.n(c),l=n(7),u=n.n(l),d=n(5),f=n.n(d),g=n(60),p=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(g.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",p((function(t){return function(){return Object(g.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(g.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},95:function(e,t,n){"use strict";var r=n(1),a=n(37),i=Object(r.createContext)(a.a);t.a=i},953:function(e,t,n){"use strict";n.r(t),function(e){var t=n(219),r=n(111),a=n(9),i=(n(280),n(724)),o=n(159);Object(t.a)((function(){var t=document.getElementById("js-googlesitekit-activation");t&&(Object(a.v)("plugin_setup","plugin_activated"),Object(r.render)(e.createElement(o.a,{dataAPIContext:"Activation"},e.createElement(i.a,null)),t),t.classList.remove("googlesitekit-activation--loading"))}))}.call(this,n(1))},97:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(146),s=n(2),l=n(21);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return e.createElement("div",{className:o()("googlesitekit-source-link",a)},Object(c.a)(Object(s.sprintf)(
24
  /* translators: %s: source link */
25
  Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:i,inherit:!0})}))}SourceLink.propTypes={name:a.a.string,href:a.a.string,className:a.a.string,external:a.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(1))},99:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(32),a=n(27),i=function(t,n,i){var o=Object(a.d)(t,n,i);Object(a.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(a.a).concat(o,"::"))&&e!=="".concat(a.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(14))}},[[953,1,0]]]);
dist/assets/js/{googlesitekit-adminbar.d5e7fc5b9478046ee6c1.js → googlesitekit-adminbar.f309fd7bc1712429b6eb.js} RENAMED
@@ -24,9 +24,9 @@ Object(f._x)("%1$s vs %2$s","Date range for chart tooltip","google-site-kit"),Ob
24
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage, %%: percent symbol */
25
  Object(f._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),n,Math.abs(m).toFixed(2).replace(/(.00|0)$/,""),_,Object(c.q)(O));i.push([Object(g.i)(v),'<div class="'.concat(d()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":k>0,"googlesitekit-visualization-tooltip--down":k<0}),'">\n\t\t\t\t<p>').concat(y,"</p>\n\t\t\t\t<p>").concat(E,"</p>\n\t\t\t</div>"),m,b])})),i},m=n(196);function v(e){return"string"==typeof e&&e.length>0}function b(e){var t=[[{type:"string",label:"Day"},{type:"number",label:"Clicks"},{type:"number",label:"Impressions"},{type:"number",label:"CTR"},{type:"number",label:"Position"}]],n=0,r=0,i=0,c=0,l=e.length;return a()(e,(function(e){var a=new Date(e.keys[0]);t.push([a.getMonth()+1+"/"+a.getUTCDate(),e.clicks,e.impressions,o()(e.ctr,3),o()(e.position,3)]),n+=e.clicks,r+=e.impressions,i+=e.ctr,c+=e.position})),{dataMap:t,totalClicks:n,totalImpressions:r,averageCTR:l>0?i/l:0,averagePosition:l>0?c/l:0}}var h=function(e,t){var n=Object(l.a)(e,{dateRangeLength:t}),r=n.compareRange,a=b(n.currentRange),i=b(r);return{dataMap:a.dataMap,totalClicks:a.totalClicks,totalImpressions:a.totalImpressions,averageCTR:a.averageCTR,averagePosition:a.averagePosition,totalClicksChange:Object(c.a)(i.totalClicks,a.totalClicks),totalImpressionsChange:Object(c.a)(i.totalImpressions,a.totalImpressions),averageCTRChange:Object(c.a)(i.averageCTR,a.averageCTR),averagePositionChange:Object(c.a)(i.averagePosition,a.averagePosition)}}},182:function(e,t,n){"use strict";function r(e){var t,n,r,a,i,o,c,l;if(void 0!==e)return!(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||!(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.totals)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.values)||void 0===l?void 0:l.length)||!e[0].data.totals.some((function(e){return e.values.some((function(e){return e>0}))}))}n.d(t,"a",(function(){return r}))},187:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(0),a=n.n(r),i=n(2),o=n(5),c=n.n(o),l=n(23),s=n(66),u=n(140),d=n(88),f=n(91),g=c.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,a=t.error,o=g((function(e){return e(l.a).getModule(r)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=a.message;Object(s.b)(a)&&(
26
  /* translators: %s: module name */
27
- c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==a||null===(n=a.data)||void 0===n?void 0:n.reconnectURL,v=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(f.a,{title:c,description:v,error:!0})}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.object.isRequired}}).call(this,n(1))},196:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7),a=n.n(r),i=n(42),o=function(e){var t=e.startDate,n=e.endDate;return a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},197:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n(17),a=n.n(r),i=n(64),o=n.n(i),c=n(216),l=n(274),s=n(275),u=n(276),d=n(277),f=n(278),g=o()((function(e){return{Widget:p(e)(c.a),WidgetReportZero:p(e)(l.a),WidgetReportError:p(e)(s.a),WidgetActivateModuleCTA:p(e)(u.a),WidgetCompleteModuleActivationCTA:p(e)(d.a),WidgetNull:p(e)(f.a)}}));function p(t){return function(n){var r=function WithWidgetSlug(r){return e.createElement(n,a()({},r,{widgetSlug:t}))};return r.displayName="WithWidgetSlug",(n.displayName||n.name)&&(r.displayName+="(".concat(n.displayName||n.name,")")),r}}var m=function(t){var n=g(t);return function(t){var r=function DecoratedComponent(r){return e.createElement(t,a()({},r,n))};return r.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(r.displayName+="(".concat(t.displayName||t.name,")")),r}}}).call(this,n(1))},2:function(e,t){e.exports=googlesitekit.i18n},20:function(e,t,n){"use strict";var r=n(86),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(186);n.d(t,"i",(function(){return i.a}));var o=n(246);n.d(t,"f",(function(){return o.a}));var c=n(247);n.d(t,"h",(function(){return c.a}));var l=n(107),s=n.n(l);n.d(t,"m",(function(){return s.a})),n.d(t,"k",(function(){return l.Option}));var u=n(248);n.d(t,"j",(function(){return u.a}));var d=n(245);n.d(t,"e",(function(){return d.a}));var f=n(244);n.d(t,"g",(function(){return f.a}));var g=n(92);n.d(t,"a",(function(){return g.a})),n.d(t,"b",(function(){return g.b})),n.d(t,"l",(function(){return g.c}))},21:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(8),u=n.n(s),d=n(115),f=n(2);function Link(t){var n,r=t["aria-label"],i=t.arrow,c=t.back,l=t.caps,s=t.children,g=t.className,p=t.danger,m=t.disabled,v=t.external,b=t.hideExternalIndicator,h=t.href,y=t.inherit,O=t.inverse,k=t.onClick,_=t.small,E=t.to,j=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inherit","inverse","onClick","small","to"]),w=h||E||!k?E?"ROUTER_LINK":v?"EXTERNAL_LINK":"LINK":m?"BUTTON_DISABLED":"BUTTON",S="BUTTON"===w||"BUTTON_DISABLED"===w?"button":"ROUTER_LINK"===w?d.b:"a",D=("EXTERNAL_LINK"===w&&(n=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===w&&(n=Object(f._x)("(disabled)","screen reader text","google-site-kit")),n?r?"".concat(r," ").concat(n):"string"==typeof s?"".concat(s," ").concat(n):void 0:r);return e.createElement(S,a()({"aria-label":D,className:u()("googlesitekit-cta-link",g,{"googlesitekit-cta-link--arrow":i,"googlesitekit-cta-link--external":v&&!b,"googlesitekit-cta-link--inverse":O,"googlesitekit-cta-link--back":c,"googlesitekit-cta-link--small":_,"googlesitekit-cta-link--inherit":y,"googlesitekit-cta-link--caps":l,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),disabled:m,href:"LINK"===w||"EXTERNAL_LINK"===w?h:void 0,onClick:k,rel:"EXTERNAL_LINK"===w?"noopener noreferrer":void 0,target:"EXTERNAL_LINK"===w?"_blank":void 0,to:E},j),s)}Link.propTypes={arrow:l.a.bool,back:l.a.bool,caps:l.a.bool,children:l.a.node,className:l.a.string,danger:l.a.bool,disabled:l.a.bool,external:l.a.bool,hideExternalIndicator:l.a.bool,href:l.a.string,inherit:l.a.bool,inverse:l.a.bool,onClick:l.a.func,small:l.a.bool,to:l.a.string},Link.defaultProps={arrow:!1,back:!1,caps:!1,className:"",danger:!1,disabled:!1,external:!1,hideExternalIndicator:!1,href:"",inherit:!1,inverse:!1,small:!1},t.a=Link}).call(this,n(1))},216:function(e,t,n){"use strict";(function(e){var r=n(8),a=n.n(r),i=n(0),o=n.n(i),c=function Widget(t){var n=t.children,r=t.className,i=t.widgetSlug,o=t.noPadding,c=t.Header,l=t.Footer;return e.createElement("div",{className:a()("googlesitekit-widget","googlesitekit-widget--".concat(i),{"googlesitekit-widget--no-padding":o},r)},c&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(c,null)),e.createElement("div",{className:"googlesitekit-widget__body"},n),l&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(l,null)))};c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:o.a.node,widgetSlug:o.a.string.isRequired,noPadding:o.a.bool,Header:o.a.elementType,Footer:o.a.elementType},t.a=c}).call(this,n(1))},220:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(369),a=n.n(r);function i(e,t){return a()(e,t)||0}},23:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},233:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(150),a=function(){var e=Object(r.a)();return e>1280?"xlarge":e>960?"desktop":e>600?"tablet":"small"}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),l=n.n(c),s=n(0),u=n.n(s),d=n(120),f=n(271),g=n(1),p=n(2),m=n(20),v=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,v=t.disabled,b=t.target,h=t.icon,y=t.trailingIcon,O=t["aria-label"],k=t.title,_=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(g.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),j=Object(d.a)(n,E),w=i&&!v?"a":"button",S=e.createElement(w,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:v?void 0:i,ref:j,disabled:!!v,"aria-label":function(){var e=O;if("_blank"!==b)return e;var t=Object(p._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:b||"_self",role:"a"===w?"button":void 0},_),h,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return h&&(k||O)&&void 0===r?e.createElement(f.a,{title:k||O,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));v.displayName="Button",v.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},v.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=v}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),l="googlesitekit_legacy_1.38.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},274:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(121);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},275:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(187);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},276:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(125);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetActivateModuleCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetActivateModuleCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},277:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(124);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetCompleteModuleActivationCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},278:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(119),l=n(123);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,l.a,u),e.createElement(l.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:o.a.string.isRequired},l.a.propTypes)}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},300:function(e,t,n){"use strict";function r(e){if(void 0!==e)return!Array.isArray(e)||!e.length||!e.some((function(e){return e.clicks>0||e.ctr>0||e.impressions>0||e.position>0}))}n.d(t,"a",(function(){return r}))},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(14))},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),l=n.n(c),s=n(33),u=n.n(s),d=n(34),f=n.n(d),g=n(55),p=n.n(g),m=n(43),v=n.n(m),b=n(44),h=n.n(b),y=n(29),O=n.n(y),k=n(0),_=n.n(k),E=n(8),j=n.n(E),w=n(18),S=n(1),D=n(89),N=n(58),P=n(27),C=n(82),R=n(24),T=n(148),x=n(158),A=n(21),L=n(116);function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O()(e);if(t){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var M=function(t){v()(Notification,t);var n,r,i=I(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(P.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(P.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(P.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(P.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,v=r.learnMoreLabel,b=r.ctaLink,h=r.ctaLabel,y=r.ctaTarget,O=r.type,k=r.dismiss,_=r.isDismissable,E=r.logo,I=r.module,M=r.moduleName,q=r.pageIndex,U=r.anchorLink,z=r.anchorLinkLabel;if(Object(P.c)("notification::dismissed::".concat(o)))return null;var F,W=n?"is-closed":"is-open",B="large"===g&&"win-stats-increase"===O,H="mdc-layout-grid__cell--span-12";"large"===g?(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",B&&(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(H="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===O?e.createElement(T.a,null):"win-error"===O?e.createElement(x.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":B,"mdc-layout-grid__cell--span-4-desktop":!B})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(C.a,t)))})))),K=e.createElement(S.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),U&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(A.a,{href:U},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(N.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),v&&e.createElement(S.Fragment,null," ",e.createElement(A.a,{href:p,external:!0,inherit:!0},v),m),q&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},q))),i),V=I?e.createElement(L.a,{slug:I,size:19}):e.createElement(D.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(O),O),a()(t,"googlesitekit-publisher-win--".concat(W),W),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},E&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":B,"mdc-layout-grid__cell--order-1-tablet":B})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},V),M&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},M)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",H)},B?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},K),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,K,G),b&&e.createElement(R.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},h),_&&k&&e.createElement(A.a,{onClick:this.handleDismiss},k)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===O||"win-warning"===O)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(S.Component);M.propTypes={id:_.a.string.isRequired,className:_.a.string,title:_.a.string.isRequired,description:_.a.node,learnMoreURL:_.a.string,learnMoreDescription:_.a.string,learnMoreLabel:_.a.string,blockData:_.a.array,WinImageSVG:_.a.elementType,SmallImageSVG:_.a.elementType,format:_.a.string,ctaLink:_.a.string,ctaLabel:_.a.string,type:_.a.string,dismiss:_.a.string,isDismissable:_.a.bool,logo:_.a.bool,module:_.a.string,moduleName:_.a.string,pageIndex:_.a.string,dismissExpires:_.a.number,showOnce:_.a.bool,onCTAClick:_.a.func,onDismiss:_.a.func,anchorLink:_.a.string,anchorLinkLabel:_.a.string},M.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=M}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,f=l.trackEvent;function g(e){e?s():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},46:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),l=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),u=n.n(s),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),l(n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var v=n(2);function b(){var e=function(e){return Object(v.sprintf)(
28
  /* translators: %s: number of days */
29
- Object(v._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return h}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.38.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.textContent=Object(i.sprintf)(
30
  /* translators: %d is the number of notifications */
31
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(l),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var l=a()(r.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),l=n(31),s=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),p=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],p=[],m={},v=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&v?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,h=g.slice(0,b),y=g.slice(b);if(y=y.concat(p),0!==h.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var O=null!==Object(s.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:O||void 0}),data:{request:h},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],s=r[c],f=s.datapoint,g=s.type,p=s.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:p,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(p.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(d.d)(e,t,n,a);if(!i){var s=Object(d.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},63:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=1},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),l=n.n(c),s=n(16),u=n.n(s),d=n(18),f=n(64),g=n.n(f),p=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=v(v({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,v(v({},o),{},{unit:"second"})):Object(p.sprintf)(
32
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -41,7 +41,7 @@ Object(p.__)("%sK","google-site-kit"),E(y(e))):1e3<=e?Object(p.sprintf)(// trans
41
  Object(p.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return b(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=v({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?O(e):"duration"===i?b(e,t):E(e,n)},_=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){_("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),p=g[0],m=g[1];c[p]&&m===c[p]||(l.includes(p)||(s[p]=m))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
42
  /* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},727:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarApp}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(1),l=n(2),s=n(5),u=n.n(s),d=n(21),f=n(15),g=n(11),p=n(9),m=n(728),v=u.a.useSelect;function AdminBarApp(){var t=v((function(e){return e(f.c).getCurrentEntityURL()})),n=v((function(e){return e(f.c).getCurrentEntityTitle()})),r=v((function(e){return e(f.c).getAdminURL("googlesitekit-dashboard",{permaLink:t})})),i=v((function(e){return e(g.a).getDateRangeNumberOfDays()})),s=Object(c.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.v)("admin_bar","post_details_click");case 2:document.location.assign(r);case 3:case"end":return e.stop()}}),e)}))),[r]);return r&&t?e.createElement(c.Fragment,null,e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--align-middle "},e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(l.__)("Stats for","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__title"},n?Object(p.d)(n):t,e.createElement("p",{className:"googlesitekit-adminbar__title--date-range"},Object(l.sprintf)(
43
  /* translators: %s: number of days */
44
- Object(l._n)("over the last %s day","over the last %s days",i,"google-site-kit"),i)))),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--align-middle "},e.createElement(m.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2 mdc-layout-grid__cell--align-middle "},e.createElement(d.a,{className:"googlesitekit-adminbar__link",href:"#",onClick:s},Object(l.__)("More details","google-site-kit"))))),e.createElement(d.a,{className:"googlesitekit-adminbar__link googlesitekit-adminbar__link--mobile",href:"#",onClick:s},Object(l.__)("More details","google-site-kit"))):null}}).call(this,n(1))},728:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarWidgets}));var r=n(6),a=n.n(r),i=n(8),o=n.n(i),c=n(1),l=n(5),s=n.n(l),u=n(729),d=n(730),f=n(731),g=n(732),p=n(125),m=n(124),v=n(733),b=n(23),h=n(20),y=n(46),O=n(98),k=n(121),_=n(197),E=s.a.useSelect,j=Object(_.b)("adminBarImpressions")(u.a),w=Object(_.b)("adminBarClicks")(d.a),S=Object(_.b)("adminBarUniqueVisitors")(f.a),D=Object(_.b)("adminBarSessions")(g.a);function AdminBarWidgets(){var t=E((function(e){return e(b.c).isModuleConnected("analytics")})),n=E((function(e){return e(b.c).isModuleActive("analytics")})),r=E((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarImpressions"))||void 0===t?void 0:t.Component)===k.a&&(null===(n=e(y.a).getWidgetState("adminBarClicks"))||void 0===n?void 0:n.Component)===k.a})),i=E((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarUniqueVisitors"))||void 0===t?void 0:t.Component)===k.a&&(null===(n=e(y.a).getWidgetState("adminBarSessions"))||void 0===n?void 0:n.Component)===k.a})),l=r&&i||r&&!t;return e.createElement(c.Fragment,null,l&&e.createElement(v.a,null),e.createElement(h.l,{className:o()(a()({},O.a,l))},e.createElement(h.a,{lgSize:r?6:3,mdSize:r?4:2},e.createElement(j,null)),e.createElement(h.a,{lgSize:3,mdSize:2,className:o()(a()({},O.a,r))},e.createElement(w,null)),t&&n&&e.createElement(c.Fragment,null,e.createElement(h.a,{lgSize:3,mdSize:2},e.createElement(S,null)),e.createElement(h.a,{lgSize:3,mdSize:2},e.createElement(D,null))),(!t||!n)&&e.createElement(h.a,{lgSize:6,mdSize:4},!n&&e.createElement(p.a,{moduleSlug:"analytics"}),n&&!t&&e.createElement(m.a,{moduleSlug:"analytics"}))))}}).call(this,n(1))},729:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n.n(a),o=n(82),c=n(83),l=n(11),s=n(15),u=n(63),d=n(9),f=n(181),g=n(220),p=n(136),m=i.a.useSelect;t.a=function AdminBarImpressions(t){var n=t.WidgetReportZero,a=t.WidgetReportError,i=m((function(e){return e(s.c).getCurrentEntityURL()})),v=m((function(e){return e(l.a).getDateRangeDates({compare:!0,offsetDays:u.a})})),b=v.compareStartDate,h=v.endDate,y=m((function(e){return e(l.a).getDateRangeNumberOfDays()})),O={startDate:b,endDate:h,dimensions:"date",url:i},k=m((function(e){return e(u.b).getReport(O)})),_=m((function(e){return e(u.b).hasFinishedResolution("getReport",[O])})),E=m((function(e){return e(u.b).getErrorForSelector("getReport",[O])}));if(!_)return e.createElement(c.a,{width:"auto",height:"59px"});if(E)return e.createElement(a,{moduleSlug:"search-console",error:E});if(Object(f.e)(k))return e.createElement(n,{moduleSlug:"search-console"});var j=Object(p.a)(k,{dateRangeLength:y}),w=j.compareRange,S=j.currentRange,D=Object(g.a)(S,"impressions"),N=Object(g.a)(w,"impressions"),P=Object(d.a)(N,D);return e.createElement(o.a,{className:"overview-total-impressions",title:Object(r.__)("Total Impressions","google-site-kit"),datapoint:D,change:P,changeDataUnit:"%"})}}).call(this,n(1))},730:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n.n(a),o=n(11),c=n(15),l=n(63),s=n(9),u=n(181),d=n(83),f=n(82),g=n(220),p=n(136),m=i.a.useSelect;t.a=function AdminBarClicks(t){var n=t.WidgetReportZero,a=t.WidgetReportError,i=m((function(e){return e(c.c).getCurrentEntityURL()})),v=m((function(e){return e(o.a).getDateRangeDates({compare:!0,offsetDays:l.a})})),b=v.compareStartDate,h=v.endDate,y=m((function(e){return e(o.a).getDateRangeNumberOfDays()})),O={startDate:b,endDate:h,dimensions:"date",url:i},k=m((function(e){return e(l.b).getReport(O)})),_=m((function(e){return e(l.b).hasFinishedResolution("getReport",[O])})),E=m((function(e){return e(l.b).getErrorForSelector("getReport",[O])}));if(!_)return e.createElement(d.a,{width:"auto",height:"59px"});if(E)return e.createElement(a,{moduleSlug:"search-console",error:E});if(Object(u.e)(k))return e.createElement(n,{moduleSlug:"search-console"});var j=Object(p.a)(k,{dateRangeLength:y}),w=j.compareRange,S=j.currentRange,D=Object(g.a)(S,"clicks"),N=Object(g.a)(w,"clicks"),P=Object(s.a)(N,D);return e.createElement(f.a,{className:"overview-total-clicks",title:Object(r.__)("Total Clicks","google-site-kit"),datapoint:D,change:P,changeDataUnit:"%"})}}).call(this,n(1))},731:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(2),o=n(82),c=n(5),l=n.n(c),s=n(83),u=n(11),d=n(15),f=n(12),g=n(9),p=n(182);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=l.a.useSelect;t.a=function AdminBarUniqueVisitors(t){var n=t.WidgetReportZero,r=t.WidgetReportError,a=b((function(e){return e(d.c).getCurrentEntityURL()})),c=v(v({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:f.b})}))),{},{metrics:[{expression:"ga:users",alias:"Total Users"}],url:a}),l=b((function(e){return e(f.f).getReport(c)})),m=b((function(e){return e(f.f).hasFinishedResolution("getReport",[c])})),h=b((function(e){return e(f.f).getErrorForSelector("getReport",[c])}));if(!m)return e.createElement(s.a,{width:"auto",height:"59px"});if(h)return e.createElement(r,{moduleSlug:"analytics",error:h});if(Object(p.a)(l))return e.createElement(n,{moduleSlug:"analytics"});var y=l[0].data.totals,O=y[0].values,k=y[1].values,_=O[0],E=k[0];return e.createElement(o.a,{className:"overview-total-users",title:Object(i.__)("Total Users","google-site-kit"),datapoint:_,change:Object(g.a)(E,_),changeDataUnit:"%"})}}).call(this,n(1))},732:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(2),o=n(5),c=n.n(o),l=n(82),s=n(83),u=n(11),d=n(15),f=n(12),g=n(9),p=n(182);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=c.a.useSelect;t.a=function AdminBarSessions(t){var n=t.WidgetReportZero,r=t.WidgetReportError,a=b((function(e){return e(d.c).getCurrentEntityURL()})),o=v(v({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:f.b})}))),{},{dimensions:"ga:date",limit:10,metrics:[{expression:"ga:sessions",alias:"Sessions"}],url:a}),c=b((function(e){return e(f.f).getReport(o)})),m=b((function(e){return e(f.f).hasFinishedResolution("getReport",[o])})),h=b((function(e){return e(f.f).getErrorForSelector("getReport",[o])}));if(!m)return e.createElement(s.a,{width:"auto",height:"59px"});if(h)return e.createElement(r,{moduleSlug:"analytics",error:h});if(Object(p.a)(c))return e.createElement(n,{moduleSlug:"analytics"});var y=c[0].data.totals,O=y[0].values,k=y[1].values,_=O[0],E=Object(g.a)(k[0],O[0]);return e.createElement(l.a,{className:"overview-total-sessions",title:Object(i.__)("Total Sessions","google-site-kit"),datapoint:_,change:E,changeDataUnit:"%"})}}).call(this,n(1))},733:function(e,t,n){"use strict";(function(e){var r=n(2);t.a=function AdminBarZeroData(){return e.createElement("div",null,e.createElement("div",{className:"googlesitekit-adminbar__subtitle googlesitekit-font-weight-bold"},Object(r.__)("No data available yet","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(r.__)("There is no data available for this content yet. This could be because it was recently created or because nobody has accessed it so far.","google-site-kit")))}}).call(this,n(1))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),l=n.n(c),s=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,g,p,m,v,b,h,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,v=t.trackingEnabled,b=t.trackingID,h=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(v){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:b,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:h,dimension4:"1.38.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(0),v=n.n(m),b=n(8),h=n.n(b),y=n(1),O=n(2),k=n(59),_=n(97),E=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",v=g;v&&p&&(v=Object(y.cloneElement)(g,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),s&&(b=Object(O.sprintf)(s,b));var j=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:h()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),v&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},v),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:h()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(k.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),f&&e.createElement(_.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(y.Component);w.propTypes={stat:v.a.number,onClick:v.a.func,className:v.a.string,title:v.a.string,datapoint:v.a.oneOfType([v.a.string,v.a.number]),datapointUnit:v.a.string,change:v.a.oneOfType([v.a.string,v.a.number]),changeDataUnit:v.a.oneOfType([v.a.string,v.a.bool]),context:v.a.string,period:v.a.string,selected:v.a.bool,handleStatSelection:v.a.func,invertChangeColor:v.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},83:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(233);function PreviewBlock(t){var n=t.className,r=t.width,a=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,f=t.tabletHeight,g=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),v=r,b=a;return"small"===m&&s&&u&&(v=s,b=u),"tablet"===m&&d&&f&&(v=d,b=f),("xlarge"===m||"desktop"===m)&&g&&p&&(v=g,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:v,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.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},t.a=PreviewBlock}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},88:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(199),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL;if(!n)return null;var a=Object(o.sprintf)(
45
  /* translators: %s: Error message */
46
  Object(o.__)("Error: %s","google-site-kit"),n);r&&Object(i.a)(r)&&(a=a+" "+Object(o.sprintf)(
47
  /* translators: %s: Reconnect URL */
24
  /* translators: 1: selected stat label, 2: numeric value of selected stat, 3: up or down arrow , 4: different change in percentage, %%: percent symbol */
25
  Object(f._x)("%1$s: <strong>%2$s</strong> <em>%3$s %4$s%%</em>","Stat information for chart tooltip","google-site-kit"),n,Math.abs(m).toFixed(2).replace(/(.00|0)$/,""),_,Object(c.q)(O));i.push([Object(g.i)(v),'<div class="'.concat(d()("googlesitekit-visualization-tooltip",{"googlesitekit-visualization-tooltip--up":k>0,"googlesitekit-visualization-tooltip--down":k<0}),'">\n\t\t\t\t<p>').concat(y,"</p>\n\t\t\t\t<p>").concat(E,"</p>\n\t\t\t</div>"),m,b])})),i},m=n(196);function v(e){return"string"==typeof e&&e.length>0}function b(e){var t=[[{type:"string",label:"Day"},{type:"number",label:"Clicks"},{type:"number",label:"Impressions"},{type:"number",label:"CTR"},{type:"number",label:"Position"}]],n=0,r=0,i=0,c=0,l=e.length;return a()(e,(function(e){var a=new Date(e.keys[0]);t.push([a.getMonth()+1+"/"+a.getUTCDate(),e.clicks,e.impressions,o()(e.ctr,3),o()(e.position,3)]),n+=e.clicks,r+=e.impressions,i+=e.ctr,c+=e.position})),{dataMap:t,totalClicks:n,totalImpressions:r,averageCTR:l>0?i/l:0,averagePosition:l>0?c/l:0}}var h=function(e,t){var n=Object(l.a)(e,{dateRangeLength:t}),r=n.compareRange,a=b(n.currentRange),i=b(r);return{dataMap:a.dataMap,totalClicks:a.totalClicks,totalImpressions:a.totalImpressions,averageCTR:a.averageCTR,averagePosition:a.averagePosition,totalClicksChange:Object(c.a)(i.totalClicks,a.totalClicks),totalImpressionsChange:Object(c.a)(i.totalImpressions,a.totalImpressions),averageCTRChange:Object(c.a)(i.averageCTR,a.averageCTR),averagePositionChange:Object(c.a)(i.averagePosition,a.averagePosition)}}},182:function(e,t,n){"use strict";function r(e){var t,n,r,a,i,o,c,l;if(void 0!==e)return!(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||!(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.totals)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.values)||void 0===l?void 0:l.length)||!e[0].data.totals.some((function(e){return e.values.some((function(e){return e>0}))}))}n.d(t,"a",(function(){return r}))},187:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ReportError}));var r=n(0),a=n.n(r),i=n(2),o=n(5),c=n.n(o),l=n(23),s=n(66),u=n(140),d=n(88),f=n(91),g=c.a.useSelect;function ReportError(t){var n,r=t.moduleSlug,a=t.error,o=g((function(e){return e(l.a).getModule(r)})),c=Object(i.sprintf)(Object(i.__)("Data error in %s","google-site-kit"),null==o?void 0:o.name),p=a.message;Object(s.b)(a)&&(
26
  /* translators: %s: module name */
27
+ c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-kit"),null==o?void 0:o.name),p=Object(u.a)(p,o));var m=null==a||null===(n=a.data)||void 0===n?void 0:n.reconnectURL,v=m?e.createElement(d.a,{message:p,reconnectURL:m}):p;return e.createElement(f.a,{title:c,description:v,error:!0})}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.object.isRequired}}).call(this,n(1))},196:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(7),a=n.n(r),i=n(42),o=function(e){var t=e.startDate,n=e.endDate;return a()(Object(i.a)(t),"A valid startDate is required."),a()(Object(i.a)(n),"A valid endDate is required."),{start_date:t.replace(/-/g,""),end_date:n.replace(/-/g,"")}}},197:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n(17),a=n.n(r),i=n(64),o=n.n(i),c=n(216),l=n(274),s=n(275),u=n(276),d=n(277),f=n(278),g=o()((function(e){return{Widget:p(e)(c.a),WidgetReportZero:p(e)(l.a),WidgetReportError:p(e)(s.a),WidgetActivateModuleCTA:p(e)(u.a),WidgetCompleteModuleActivationCTA:p(e)(d.a),WidgetNull:p(e)(f.a)}}));function p(t){return function(n){var r=function WithWidgetSlug(r){return e.createElement(n,a()({},r,{widgetSlug:t}))};return r.displayName="WithWidgetSlug",(n.displayName||n.name)&&(r.displayName+="(".concat(n.displayName||n.name,")")),r}}var m=function(t){var n=g(t);return function(t){var r=function DecoratedComponent(r){return e.createElement(t,a()({},r,n))};return r.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(r.displayName+="(".concat(t.displayName||t.name,")")),r}}}).call(this,n(1))},2:function(e,t){e.exports=googlesitekit.i18n},20:function(e,t,n){"use strict";var r=n(86),a=n.n(r);n.d(t,"n",(function(){return a.a})),n.d(t,"c",(function(){return r.HelperText})),n.d(t,"d",(function(){return r.Input}));var i=n(186);n.d(t,"i",(function(){return i.a}));var o=n(246);n.d(t,"f",(function(){return o.a}));var c=n(247);n.d(t,"h",(function(){return c.a}));var l=n(107),s=n.n(l);n.d(t,"m",(function(){return s.a})),n.d(t,"k",(function(){return l.Option}));var u=n(248);n.d(t,"j",(function(){return u.a}));var d=n(245);n.d(t,"e",(function(){return d.a}));var f=n(244);n.d(t,"g",(function(){return f.a}));var g=n(92);n.d(t,"a",(function(){return g.a})),n.d(t,"b",(function(){return g.b})),n.d(t,"l",(function(){return g.c}))},21:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(8),u=n.n(s),d=n(115),f=n(2);function Link(t){var n,r=t["aria-label"],i=t.arrow,c=t.back,l=t.caps,s=t.children,g=t.className,p=t.danger,m=t.disabled,v=t.external,b=t.hideExternalIndicator,h=t.href,y=t.inherit,O=t.inverse,k=t.onClick,_=t.small,E=t.to,j=o()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inherit","inverse","onClick","small","to"]),w=h||E||!k?E?"ROUTER_LINK":v?"EXTERNAL_LINK":"LINK":m?"BUTTON_DISABLED":"BUTTON",S="BUTTON"===w||"BUTTON_DISABLED"===w?"button":"ROUTER_LINK"===w?d.b:"a",D=("EXTERNAL_LINK"===w&&(n=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===w&&(n=Object(f._x)("(disabled)","screen reader text","google-site-kit")),n?r?"".concat(r," ").concat(n):"string"==typeof s?"".concat(s," ").concat(n):void 0:r);return e.createElement(S,a()({"aria-label":D,className:u()("googlesitekit-cta-link",g,{"googlesitekit-cta-link--arrow":i,"googlesitekit-cta-link--external":v&&!b,"googlesitekit-cta-link--inverse":O,"googlesitekit-cta-link--back":c,"googlesitekit-cta-link--small":_,"googlesitekit-cta-link--inherit":y,"googlesitekit-cta-link--caps":l,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),disabled:m,href:"LINK"===w||"EXTERNAL_LINK"===w?h:void 0,onClick:k,rel:"EXTERNAL_LINK"===w?"noopener noreferrer":void 0,target:"EXTERNAL_LINK"===w?"_blank":void 0,to:E},j),s)}Link.propTypes={arrow:l.a.bool,back:l.a.bool,caps:l.a.bool,children:l.a.node,className:l.a.string,danger:l.a.bool,disabled:l.a.bool,external:l.a.bool,hideExternalIndicator:l.a.bool,href:l.a.string,inherit:l.a.bool,inverse:l.a.bool,onClick:l.a.func,small:l.a.bool,to:l.a.string},Link.defaultProps={arrow:!1,back:!1,caps:!1,className:"",danger:!1,disabled:!1,external:!1,hideExternalIndicator:!1,href:"",inherit:!1,inverse:!1,small:!1},t.a=Link}).call(this,n(1))},216:function(e,t,n){"use strict";(function(e){var r=n(8),a=n.n(r),i=n(0),o=n.n(i),c=function Widget(t){var n=t.children,r=t.className,i=t.widgetSlug,o=t.noPadding,c=t.Header,l=t.Footer;return e.createElement("div",{className:a()("googlesitekit-widget","googlesitekit-widget--".concat(i),{"googlesitekit-widget--no-padding":o},r)},c&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(c,null)),e.createElement("div",{className:"googlesitekit-widget__body"},n),l&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(l,null)))};c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:o.a.node,widgetSlug:o.a.string.isRequired,noPadding:o.a.bool,Header:o.a.elementType,Footer:o.a.elementType},t.a=c}).call(this,n(1))},220:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(369),a=n.n(r);function i(e,t){return a()(e,t)||0}},23:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core/modules",a="insufficient_module_dependencies"},233:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(150),a=function(){var e=Object(r.a)();return e>1280?"xlarge":e>960?"desktop":e>600?"tablet":"small"}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),l=n.n(c),s=n(0),u=n.n(s),d=n(120),f=n(271),g=n(1),p=n(2),m=n(20),v=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,v=t.disabled,b=t.target,h=t.icon,y=t.trailingIcon,O=t["aria-label"],k=t.title,_=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(g.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),j=Object(d.a)(n,E),w=i&&!v?"a":"button",S=e.createElement(w,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:v?void 0:i,ref:j,disabled:!!v,"aria-label":function(){var e=O;if("_blank"!==b)return e;var t=Object(p._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:b||"_self",role:"a"===w?"button":void 0},_),h,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return h&&(k||O)&&void 0===r?e.createElement(f.a,{title:k||O,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));v.displayName="Button",v.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},v.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=v}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),l="googlesitekit_legacy_1.38.1_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},274:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(121);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},275:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(187);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},276:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(125);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetActivateModuleCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetActivateModuleCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},277:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(124);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetCompleteModuleActivationCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},278:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(119),l=n(123);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,l.a,u),e.createElement(l.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:o.a.string.isRequired},l.a.propTypes)}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},300:function(e,t,n){"use strict";function r(e){if(void 0!==e)return!Array.isArray(e)||!e.length||!e.some((function(e){return e.clicks>0||e.ctr>0||e.impressions>0||e.position>0}))}n.d(t,"a",(function(){return r}))},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(14))},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),l=n.n(c),s=n(33),u=n.n(s),d=n(34),f=n.n(d),g=n(55),p=n.n(g),m=n(43),v=n.n(m),b=n(44),h=n.n(b),y=n(29),O=n.n(y),k=n(0),_=n.n(k),E=n(8),j=n.n(E),w=n(18),S=n(1),D=n(89),N=n(58),P=n(27),C=n(82),R=n(24),T=n(148),x=n(158),A=n(21),L=n(116);function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O()(e);if(t){var a=O()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h()(this,n)}}var M=function(t){v()(Notification,t);var n,r,i=I(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(P.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(P.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(P.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(P.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,v=r.learnMoreLabel,b=r.ctaLink,h=r.ctaLabel,y=r.ctaTarget,O=r.type,k=r.dismiss,_=r.isDismissable,E=r.logo,I=r.module,M=r.moduleName,q=r.pageIndex,U=r.anchorLink,z=r.anchorLinkLabel;if(Object(P.c)("notification::dismissed::".concat(o)))return null;var F,W=n?"is-closed":"is-open",B="large"===g&&"win-stats-increase"===O,H="mdc-layout-grid__cell--span-12";"large"===g?(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",B&&(H="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(H="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),F="win-warning"===O?e.createElement(T.a,null):"win-error"===O?e.createElement(x.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":B,"mdc-layout-grid__cell--span-4-desktop":!B})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(C.a,t)))})))),K=e.createElement(S.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),U&&z&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(A.a,{href:U},z)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(N.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),v&&e.createElement(S.Fragment,null," ",e.createElement(A.a,{href:p,external:!0,inherit:!0},v),m),q&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},q))),i),V=I?e.createElement(L.a,{slug:I,size:19}):e.createElement(D.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(O),O),a()(t,"googlesitekit-publisher-win--".concat(W),W),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},E&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":B,"mdc-layout-grid__cell--order-1-tablet":B})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},V),M&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},M)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",H)},B?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},K),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,K,G),b&&e.createElement(R.a,{className:"googlesitekit-notification__cta",href:b,target:y,onClick:this.handleCTAClick},h),_&&k&&e.createElement(A.a,{onClick:this.handleDismiss},k)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===O||"win-warning"===O)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},F)))))}}]),Notification}(S.Component);M.propTypes={id:_.a.string.isRequired,className:_.a.string,title:_.a.string.isRequired,description:_.a.node,learnMoreURL:_.a.string,learnMoreDescription:_.a.string,learnMoreLabel:_.a.string,blockData:_.a.array,WinImageSVG:_.a.elementType,SmallImageSVG:_.a.elementType,format:_.a.string,ctaLink:_.a.string,ctaLabel:_.a.string,type:_.a.string,dismiss:_.a.string,isDismissable:_.a.bool,logo:_.a.bool,module:_.a.string,moduleName:_.a.string,pageIndex:_.a.string,dismissExpires:_.a.number,showOnce:_.a.bool,onCTAClick:_.a.func,onDismiss:_.a.func,anchorLink:_.a.string,anchorLinkLabel:_.a.string},M.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=M}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,f=l.trackEvent;function g(e){e?s():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},46:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),l=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),u=n.n(s),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),l(n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var v=n(2);function b(){var e=function(e){return Object(v.sprintf)(
28
  /* translators: %s: number of days */
29
+ Object(v._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return b})),n.d(t,"c",(function(){return h}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.38.1","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.textContent=Object(i.sprintf)(
30
  /* translators: %d is the number of notifications */
31
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(l),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var l=a()(r.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),l=n(31),s=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),p=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],p=[],m={},v=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&v?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var b=10,h=g.slice(0,b),y=g.slice(b);if(y=y.concat(p),0!==h.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var O=null!==Object(s.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:O||void 0}),data:{request:h},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],s=r[c],f=s.datapoint,g=s.type,p=s.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:p,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(p.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(d.d)(e,t,n,a);if(!i){var s=Object(d.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},63:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var r="modules/search-console",a=1},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),l=n.n(c),s=n(16),u=n.n(s),d=n(18),f=n(64),g=n.n(f),p=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=v(v({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,v(v({},o),{},{unit:"second"})):Object(p.sprintf)(
32
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
41
  Object(p.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return b(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=v({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?O(e):"duration"===i?b(e,t):E(e,n)},_=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){_("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),p=g[0],m=g[1];c[p]&&m===c[p]||(l.includes(p)||(s[p]=m))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
42
  /* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},727:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarApp}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(1),l=n(2),s=n(5),u=n.n(s),d=n(21),f=n(15),g=n(11),p=n(9),m=n(728),v=u.a.useSelect;function AdminBarApp(){var t=v((function(e){return e(f.c).getCurrentEntityURL()})),n=v((function(e){return e(f.c).getCurrentEntityTitle()})),r=v((function(e){return e(f.c).getAdminURL("googlesitekit-dashboard",{permaLink:t})})),i=v((function(e){return e(g.a).getDateRangeNumberOfDays()})),s=Object(c.useCallback)(o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.v)("admin_bar","post_details_click");case 2:document.location.assign(r);case 3:case"end":return e.stop()}}),e)}))),[r]);return r&&t?e.createElement(c.Fragment,null,e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-3 mdc-layout-grid__cell--align-middle "},e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(l.__)("Stats for","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__title"},n?Object(p.d)(n):t,e.createElement("p",{className:"googlesitekit-adminbar__title--date-range"},Object(l.sprintf)(
43
  /* translators: %s: number of days */
44
+ Object(l._n)("over the last %s day","over the last %s days",i,"google-site-kit"),i)))),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--align-middle "},e.createElement(m.a,null)),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2 mdc-layout-grid__cell--align-middle "},e.createElement(d.a,{className:"googlesitekit-adminbar__link",href:"#",onClick:s},Object(l.__)("More details","google-site-kit"))))),e.createElement(d.a,{className:"googlesitekit-adminbar__link googlesitekit-adminbar__link--mobile",href:"#",onClick:s},Object(l.__)("More details","google-site-kit"))):null}}).call(this,n(1))},728:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return AdminBarWidgets}));var r=n(6),a=n.n(r),i=n(8),o=n.n(i),c=n(1),l=n(5),s=n.n(l),u=n(729),d=n(730),f=n(731),g=n(732),p=n(125),m=n(124),v=n(733),b=n(23),h=n(20),y=n(46),O=n(98),k=n(121),_=n(197),E=s.a.useSelect,j=Object(_.b)("adminBarImpressions")(u.a),w=Object(_.b)("adminBarClicks")(d.a),S=Object(_.b)("adminBarUniqueVisitors")(f.a),D=Object(_.b)("adminBarSessions")(g.a);function AdminBarWidgets(){var t=E((function(e){return e(b.c).isModuleConnected("analytics")})),n=E((function(e){return e(b.c).isModuleActive("analytics")})),r=E((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarImpressions"))||void 0===t?void 0:t.Component)===k.a&&(null===(n=e(y.a).getWidgetState("adminBarClicks"))||void 0===n?void 0:n.Component)===k.a})),i=E((function(e){var t,n;return(null===(t=e(y.a).getWidgetState("adminBarUniqueVisitors"))||void 0===t?void 0:t.Component)===k.a&&(null===(n=e(y.a).getWidgetState("adminBarSessions"))||void 0===n?void 0:n.Component)===k.a})),l=r&&i||r&&!t;return e.createElement(c.Fragment,null,l&&e.createElement(v.a,null),e.createElement(h.l,{className:o()(a()({},O.a,l))},e.createElement(h.a,{lgSize:r?6:3,mdSize:r?4:2},e.createElement(j,null)),e.createElement(h.a,{lgSize:3,mdSize:2,className:o()(a()({},O.a,r))},e.createElement(w,null)),t&&n&&e.createElement(c.Fragment,null,e.createElement(h.a,{lgSize:3,mdSize:2},e.createElement(S,null)),e.createElement(h.a,{lgSize:3,mdSize:2},e.createElement(D,null))),(!t||!n)&&e.createElement(h.a,{lgSize:6,mdSize:4},!n&&e.createElement(p.a,{moduleSlug:"analytics"}),n&&!t&&e.createElement(m.a,{moduleSlug:"analytics"}))))}}).call(this,n(1))},729:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n.n(a),o=n(82),c=n(83),l=n(11),s=n(15),u=n(63),d=n(9),f=n(181),g=n(220),p=n(136),m=i.a.useSelect;t.a=function AdminBarImpressions(t){var n=t.WidgetReportZero,a=t.WidgetReportError,i=m((function(e){return e(s.c).getCurrentEntityURL()})),v=m((function(e){return e(l.a).getDateRangeDates({compare:!0,offsetDays:u.a})})),b=v.compareStartDate,h=v.endDate,y=m((function(e){return e(l.a).getDateRangeNumberOfDays()})),O={startDate:b,endDate:h,dimensions:"date",url:i},k=m((function(e){return e(u.b).getReport(O)})),_=m((function(e){return e(u.b).hasFinishedResolution("getReport",[O])})),E=m((function(e){return e(u.b).getErrorForSelector("getReport",[O])}));if(!_)return e.createElement(c.a,{width:"auto",height:"59px"});if(E)return e.createElement(a,{moduleSlug:"search-console",error:E});if(Object(f.e)(k))return e.createElement(n,{moduleSlug:"search-console"});var j=Object(p.a)(k,{dateRangeLength:y}),w=j.compareRange,S=j.currentRange,D=Object(g.a)(S,"impressions"),N=Object(g.a)(w,"impressions"),P=Object(d.a)(N,D);return e.createElement(o.a,{className:"overview-total-impressions",title:Object(r.__)("Total Impressions","google-site-kit"),datapoint:D,change:P,changeDataUnit:"%"})}}).call(this,n(1))},730:function(e,t,n){"use strict";(function(e){var r=n(2),a=n(5),i=n.n(a),o=n(11),c=n(15),l=n(63),s=n(9),u=n(181),d=n(83),f=n(82),g=n(220),p=n(136),m=i.a.useSelect;t.a=function AdminBarClicks(t){var n=t.WidgetReportZero,a=t.WidgetReportError,i=m((function(e){return e(c.c).getCurrentEntityURL()})),v=m((function(e){return e(o.a).getDateRangeDates({compare:!0,offsetDays:l.a})})),b=v.compareStartDate,h=v.endDate,y=m((function(e){return e(o.a).getDateRangeNumberOfDays()})),O={startDate:b,endDate:h,dimensions:"date",url:i},k=m((function(e){return e(l.b).getReport(O)})),_=m((function(e){return e(l.b).hasFinishedResolution("getReport",[O])})),E=m((function(e){return e(l.b).getErrorForSelector("getReport",[O])}));if(!_)return e.createElement(d.a,{width:"auto",height:"59px"});if(E)return e.createElement(a,{moduleSlug:"search-console",error:E});if(Object(u.e)(k))return e.createElement(n,{moduleSlug:"search-console"});var j=Object(p.a)(k,{dateRangeLength:y}),w=j.compareRange,S=j.currentRange,D=Object(g.a)(S,"clicks"),N=Object(g.a)(w,"clicks"),P=Object(s.a)(N,D);return e.createElement(f.a,{className:"overview-total-clicks",title:Object(r.__)("Total Clicks","google-site-kit"),datapoint:D,change:P,changeDataUnit:"%"})}}).call(this,n(1))},731:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(2),o=n(82),c=n(5),l=n.n(c),s=n(83),u=n(11),d=n(15),f=n(12),g=n(9),p=n(182);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=l.a.useSelect;t.a=function AdminBarUniqueVisitors(t){var n=t.WidgetReportZero,r=t.WidgetReportError,a=b((function(e){return e(d.c).getCurrentEntityURL()})),c=v(v({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:f.b})}))),{},{metrics:[{expression:"ga:users",alias:"Total Users"}],url:a}),l=b((function(e){return e(f.f).getReport(c)})),m=b((function(e){return e(f.f).hasFinishedResolution("getReport",[c])})),h=b((function(e){return e(f.f).getErrorForSelector("getReport",[c])}));if(!m)return e.createElement(s.a,{width:"auto",height:"59px"});if(h)return e.createElement(r,{moduleSlug:"analytics",error:h});if(Object(p.a)(l))return e.createElement(n,{moduleSlug:"analytics"});var y=l[0].data.totals,O=y[0].values,k=y[1].values,_=O[0],E=k[0];return e.createElement(o.a,{className:"overview-total-users",title:Object(i.__)("Total Users","google-site-kit"),datapoint:_,change:Object(g.a)(E,_),changeDataUnit:"%"})}}).call(this,n(1))},732:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(2),o=n(5),c=n.n(o),l=n(82),s=n(83),u=n(11),d=n(15),f=n(12),g=n(9),p=n(182);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=c.a.useSelect;t.a=function AdminBarSessions(t){var n=t.WidgetReportZero,r=t.WidgetReportError,a=b((function(e){return e(d.c).getCurrentEntityURL()})),o=v(v({},b((function(e){return e(u.a).getDateRangeDates({compare:!0,offsetDays:f.b})}))),{},{dimensions:"ga:date",limit:10,metrics:[{expression:"ga:sessions",alias:"Sessions"}],url:a}),c=b((function(e){return e(f.f).getReport(o)})),m=b((function(e){return e(f.f).hasFinishedResolution("getReport",[o])})),h=b((function(e){return e(f.f).getErrorForSelector("getReport",[o])}));if(!m)return e.createElement(s.a,{width:"auto",height:"59px"});if(h)return e.createElement(r,{moduleSlug:"analytics",error:h});if(Object(p.a)(c))return e.createElement(n,{moduleSlug:"analytics"});var y=c[0].data.totals,O=y[0].values,k=y[1].values,_=O[0],E=Object(g.a)(k[0],O[0]);return e.createElement(l.a,{className:"overview-total-sessions",title:Object(i.__)("Total Sessions","google-site-kit"),datapoint:_,change:E,changeDataUnit:"%"})}}).call(this,n(1))},733:function(e,t,n){"use strict";(function(e){var r=n(2);t.a=function AdminBarZeroData(){return e.createElement("div",null,e.createElement("div",{className:"googlesitekit-adminbar__subtitle googlesitekit-font-weight-bold"},Object(r.__)("No data available yet","google-site-kit")),e.createElement("div",{className:"googlesitekit-adminbar__subtitle"},Object(r.__)("There is no data available for this content yet. This could be because it was recently created or because nobody has accessed it so far.","google-site-kit")))}}).call(this,n(1))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),l=n.n(c),s=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,g,p,m,v,b,h,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,v=t.trackingEnabled,b=t.trackingID,h=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(v){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:b,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:h,dimension4:"1.38.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(0),v=n.n(m),b=n(8),h=n.n(b),y=n(1),O=n(2),k=n(59),_=n(97),E=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",v=g;v&&p&&(v=Object(y.cloneElement)(g,{invertChangeColor:p}));var b=o;c&&(b="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),s&&(b=Object(O.sprintf)(s,b));var j=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:h()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),v&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},v),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:h()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(k.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},b))),f&&e.createElement(_.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(y.Component);w.propTypes={stat:v.a.number,onClick:v.a.func,className:v.a.string,title:v.a.string,datapoint:v.a.oneOfType([v.a.string,v.a.number]),datapointUnit:v.a.string,change:v.a.oneOfType([v.a.string,v.a.number]),changeDataUnit:v.a.oneOfType([v.a.string,v.a.bool]),context:v.a.string,period:v.a.string,selected:v.a.bool,handleStatSelection:v.a.func,invertChangeColor:v.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},83:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(233);function PreviewBlock(t){var n=t.className,r=t.width,a=t.height,i=t.shape,l=t.padding,s=t.smallWidth,u=t.smallHeight,d=t.tabletWidth,f=t.tabletHeight,g=t.desktopWidth,p=t.desktopHeight,m=Object(c.a)(),v=r,b=a;return"small"===m&&s&&u&&(v=s,b=u),"tablet"===m&&d&&f&&(v=d,b=f),("xlarge"===m||"desktop"===m)&&g&&p&&(v=g,b=p),e.createElement("div",{className:o()("googlesitekit-preview-block",n,{"googlesitekit-preview-block--padding":l}),style:{width:v,height:b}},e.createElement("div",{className:o()("googlesitekit-preview-block__wrapper",{"googlesitekit-preview-block__wrapper--circle":"circular"===i})}))}PreviewBlock.propTypes={className:a.a.string,width:a.a.string,height:a.a.string,shape:a.a.string,padding:a.a.bool,smallWidth:a.a.string,smallHeight:a.a.string,tabletWidth:a.a.string,tabletHeight:a.a.string,desktopWidth:a.a.string,desktopHeight:a.a.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},t.a=PreviewBlock}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},88:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(199),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL;if(!n)return null;var a=Object(o.sprintf)(
45
  /* translators: %s: Error message */
46
  Object(o.__)("Error: %s","google-site-kit"),n);r&&Object(i.a)(r)&&(a=a+" "+Object(o.sprintf)(
47
  /* translators: %s: Reconnect URL */
dist/assets/js/{googlesitekit-api.3d45775cfc2dc95a166b.js → googlesitekit-api.d52df6282ec901a8a99d.js} RENAMED
@@ -1,6 +1,6 @@
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[4],{11:function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return i}));var r="core/user",a="connected_url_mismatch",o="googlesitekit_view_dashboard",i="googlesitekit_manage_options"},112:function(t,e,n){"use strict";var r=n(106);e.a=function(t){var e=Object.keys(t).reduce((function(e,n){return e[Object(r.getStablePath)(n)]=t[n],e}),{}),n=!1;return function(t,a){if(n)return a(t);setTimeout((function(){n=!0}),1e3);var o=t.parse,i=void 0===o||o,c=t.path;if("string"==typeof t.path){var u,s=(null===(u=t.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(r.getStablePath)(c);if(i&&"GET"===s&&e[l]){var f=Promise.resolve(e[l].body);return delete e[l],f}if("OPTIONS"===s&&e[s]&&e[s][l]){var d=Promise.resolve(e[s][l]);return delete e[s][l],d}}return a(t)}}},138:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),a=n.n(r),o=n(10),i=n.n(o),c=n(9),u=["fetch_error"];function s(t){return l.apply(this,arguments)}function l(){return(l=i()(a.a.mark((function t(e){var n,r,o,i,s,l,f,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.method,i=e.type,s=e.identifier,l=e.datapoint,(f=e.error)&&!u.includes(null==f?void 0:f.code)){t.next=3;break}return t.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(n=f.data)||void 0===n?void 0:n.reason)&&(d+=", reason: ".concat(f.data.reason)),t.next=7,Object(c.v)("api_error","".concat(o,":").concat(i,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(r=f.data)||void 0===r?void 0:r.status)||f.code);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},2:function(t,e){t.exports=googlesitekit.i18n},28:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},32:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r,a=n(33),o=n.n(a),i=n(34),c=n.n(i),u=function(e){var n=t[e];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},s=function(){function NullStorage(){o()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return r||(r=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),r}}).call(this,n(14))},36:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t instanceof Date&&!isNaN(t)}},361:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(3),a=n.n(r),o=n(10),i=n.n(o),c=n(7),u=n.n(c),s=n(85),l=n(147),f=n(60),d=n(9),v=n(66),p=n(138),g=n(11),b=!0,h=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=[t,e,n].filter((function(t){return!!t&&t.length}));return 3===a.length&&r&&r.constructor===Object&&Object.keys(r).length&&a.push(Object(d.u)(r)),a.join("::")},m=function(e){var n,r,a,o,i=null===(n=t.googlesitekit)||void 0===n||null===(r=n.data)||void 0===r||null===(a=r.dispatch)||void 0===a?void 0:a.call(r,g.a);i&&(e.code===v.a?i.setPermissionScopeError(e):(null===(o=e.data)||void 0===o?void 0:o.reconnectURL)&&i.setAuthError(e))},y=function(){var e=i()(a.a.mark((function e(n,r,o){var i,c,d,v,g,b,y,O,w,j,_,x,S,D,E,P,I=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=I.length>3&&void 0!==I[3]?I[3]:{},c=i.bodyParams,d=i.cacheTTL,v=void 0===d?3600:d,g=i.method,b=void 0===g?"GET":g,y=i.queryParams,O=i.useCache,w=void 0===O?void 0:O,u()(n,"`type` argument for requests is required."),u()(r,"`identifier` argument for requests is required."),u()(o,"`datapoint` argument for requests is required."),j="GET"===b&&(void 0!==w?w:k()),_=h(n,r,o,y),!j){e.next=18;break}return e.next=9,Object(f.b)(_);case 9:if(x=e.sent,S=x.cacheHit,D=x.value,!x.isError){e.next=16;break}throw m(D),D;case 16:if(!S){e.next=18;break}return e.abrupt("return",D);case 18:return e.prev=18,e.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(n,"/").concat(r,"/data/").concat(o),y)});case 21:if(E=e.sent,!j){e.next=25;break}return e.next=25,Object(f.d)(_,E,{ttl:v});case 25:return e.abrupt("return",E);case 28:if(e.prev=28,e.t0=e.catch(18),!(null===e.t0||void 0===e.t0||null===(P=e.t0.data)||void 0===P?void 0:P.cacheTTL)){e.next=33;break}return e.next=33,Object(f.d)(_,e.t0,{ttl:e.t0.data.cacheTTL,isError:!0});case 33:throw Object(p.a)({method:b,datapoint:o,type:n,identifier:r,error:e.t0}),m(e.t0),t.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(o),"type:".concat(n),"identifier:".concat(r),'error:"'.concat(e.t0.message,'"')),e.t0;case 37:case"end":return e.stop()}}),e,null,[[18,28]])})));return function(t,n,r){return e.apply(this,arguments)}}(),O=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=f.length>4&&void 0!==f[4]?f[4]:{},c=i.cacheTTL,u=void 0===c?3600:c,s=i.useCache,l=void 0===s?void 0:s,t.abrupt("return",y(e,n,r,{cacheTTL:u,queryParams:o,useCache:l}));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),w=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f,d=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=d.length>4&&void 0!==d[4]?d[4]:{},c=i.method,u=void 0===c?"POST":c,s=i.queryParams,l=void 0===s?{}:s,t.next=3,y(e,n,r,{bodyParams:{data:o},method:u,queryParams:l,useCache:!1});case 3:return f=t.sent,t.next=6,j(e,n,r);case 6:return t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),k=function(){return b},j=function(){var t=i()(a.a.mark((function t(e,n,r){var o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=h(e,n,r),t.next=3,Object(f.c)();case 3:t.sent.forEach((function(t){0===t.indexOf(o)&&Object(f.a)(t)}));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),_={invalidateCache:j,get:O,set:w,setUsingCache:function(t){return b=!!t},usingCache:k};e.b=_}).call(this,n(14))},37:function(t,e,n){"use strict";(function(t){var r,a;n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=new Set((null===(r=t)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return e instanceof Set&&e.has(t)}}).call(this,n(14))},40:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return d}));var r=n(78),a=t._googlesitekitBaseData||{},o=a.isFirstAdmin,i=a.trackingAllowed,c={isFirstAdmin:o,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},u=Object(r.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,n(14))},42:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(36),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="string"==typeof t;if(!e)return!1;var n=t.split("-");return 3===n.length&&Object(r.a)(new Date(t))}},48:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(28);function a(t){return function(){t[r.a]=t[r.a]||[],t[r.a].push(arguments)}}},49:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(17),a=n.n(r),o=n(1),i=function(t){return function(e){return function FilteredComponent(n){return Object(o.createElement)(o.Fragment,{},"",Object(o.createElement)(e,n),t)}}},c=function(e,n){return function(r){return function InnerComponent(o){return t.createElement(e,a()({},o,n,{OriginalComponent:r}))}}}}).call(this,n(1))},52:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return p})),n.d(e,"h",(function(){return f.a})),n.d(e,"d",(function(){return g})),n.d(e,"c",(function(){return h})),n.d(e,"i",(function(){return d}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',o=n(7),i=n.n(o),c=n(36),u=function(t){var e=new Date(t);i()(Object(c.a)(e),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(e.getMonth()+1),r="".concat(e.getDate());return[e.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),l=n.n(s),f=n(42),d=function(t){i()(Object(f.a)(t),r);var e=t.split("-"),n=l()(e,3),a=n[0],o=n[1],c=n[2];return new Date(a,o-1,c)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=d(t);return n.setDate(n.getDate()-e),u(n)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]};function g(t){var e=t.match(/last-(\d+)-days/);if(e&&e[1])return parseInt(e[1],10);throw new Error("Unrecognized date range slug.")}var b=n(2);function h(){var t=function(t){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
- Object(b._n)("Last %s day","Last %s days",t,"google-site-kit"),t)};return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}},56:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(19),a=n.n(r),o=n(70),i=n.n(o),c=function(t){return i()(JSON.stringify(function t(e){var n={};return Object.keys(e).sort().forEach((function(r){var o=e[r];o&&"object"===a()(o)&&!Array.isArray(o)&&(o=t(o)),n[r]=o})),n}(t)))}},58:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(19),a=n.n(r),o=n(81),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(t,e)}};function c(t){var e,n="object"===a()(t)?t.toString():t;return null==n||null===(e=n.replace)||void 0===e?void 0:e.call(n,/\/+$/,"")}},59:function(t,e,n){"use strict";(function(t){var r=n(0),a=n.n(r),o=n(8),i=n.n(o);function ChangeArrow(e){var n=e.direction,r=e.invertColor,a=e.width,o=e.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},e.a=ChangeArrow}).call(this,n(1))},60:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return m}));var r=n(3),a=n.n(r),o=n(10),i=n.n(o);n(26);function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){c=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s,l="googlesitekit_".concat("1.38.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var e=i()(a.a.mark((function e(n){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t[n]){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,o="__storage_test__",r.setItem(o,o),r.removeItem(o),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0 instanceof DOMException&&(22===e.t0.code||1014===e.t0.code||"QuotaExceededError"===e.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t0.name)&&0!==r.length);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=i()(a.a.mark((function e(){var n,r,o,i,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===(n=t._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){e.next=2;break}return e.abrupt("return",null);case 2:if(void 0!==s){e.next=25;break}o=c(d),e.prev=4,o.s();case 6:if((i=o.n()).done){e.next=16;break}if(u=i.value,!s){e.next=10;break}return e.abrupt("continue",14);case 10:return e.next=12,v(u);case 12:if(!e.sent){e.next=14;break}s=t[u];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),o.e(e.t0);case 21:return e.prev=21,o.f(),e.finish(21);case 24:void 0===s&&(s=null);case 25:return e.abrupt("return",s);case 26:case"end":return e.stop()}}),e,null,[[4,18,21,24]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var t=i()(a.a.mark((function t(e){var n,r,o,i,c,u,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=10;break}if(!(r=n.getItem("".concat(l).concat(e)))){t.next=10;break}if(o=JSON.parse(r),i=o.timestamp,c=o.ttl,u=o.value,s=o.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),b=function(){var e=i()(a.a.mark((function e(n,r){var o,i,c,u,s,f,d,v,g=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=g.length>2&&void 0!==g[2]?g[2]:{},i=o.ttl,c=void 0===i?3600:i,u=o.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=o.isError,d=void 0!==f&&f,e.next=3,p();case 3:if(!(v=e.sent)){e.next=14;break}return e.prev=5,v.setItem("".concat(l).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:d})),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(5),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=i()(a.a.mark((function e(n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(r=e.sent)){e.next=13;break}return e.prev=4,r.removeItem("".concat(l).concat(n)),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=i()(a.a.mark((function e(){var n,r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=14;break}for(e.prev=4,r=[],o=0;o<n.length;o++)0===(i=n.key(o)).indexOf(l)&&r.push(i.substring(l.length));return e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",[]);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}()}).call(this,n(14))},61:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return f}));var r=n(13),a=n.n(r),o=n(2);function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(e=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===e&&null===n)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(o.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(o._n)("%d notification","%d notifications",t,"google-site-kit"),t),i.appendChild(c),i.appendChild(u),e&&null===r&&e.appendChild(i),n&&null===a&&n.appendChild(i),i},s=function(){t.localStorage&&t.localStorage.clear(),t.sessionStorage&&t.sessionStorage.clear()},l=function(t){for(var e=location.search.substr(1).split("&"),n={},r=0;r<e.length;r++)n[e[r].split("=")[0]]=decodeURIComponent(e[r].split("=")[1]);return t?n.hasOwnProperty(t)?decodeURIComponent(n[t].replace(/\+/g," ")):"":n},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(e.href);if(t)return n.searchParams&&n.searchParams.get?n.searchParams.get(t):l(t);var r,o={},c=i(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var u=a()(r.value,2),s=u[0],f=u[1];o[s]=f}}catch(t){c.e(t)}finally{c.f()}return o}}).call(this,n(14))},65:function(t,e,n){"use strict";function r(t){return new URL(t).pathname}function a(t,e){return new URL(e,t).href}function o(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return o}))},66:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n(53),a=n.n(r),o="missing_required_scopes";function i(t){return a()(t)&&t.hasOwnProperty("code")&&("string"==typeof t.code||"number"==typeof t.code)&&t.hasOwnProperty("message")&&"string"==typeof t.message&&t.hasOwnProperty("data")}function c(t){return(null==t?void 0:t.code)===o}function u(t){var e;return"insufficientPermissions"===(null==t||null===(e=t.data)||void 0===e?void 0:e.reason)}},68:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return j})),n.d(e,"b",(function(){return _})),n.d(e,"a",(function(){return x}));var r=n(13),a=n.n(r),o=n(19),i=n.n(o),c=n(6),u=n.n(c),s=n(16),l=n.n(s),f=n(18),d=n(64),v=n.n(d),p=n(2);function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(t,e),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(t){return a()}},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=parseInt(t,10),Number.isNaN(t)&&(t=0);var n=Math.floor(t/60/60),r=Math.floor(t/60%60),a=Math.floor(t%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var o=e.unitDisplay,i=b(b({unitDisplay:void 0===o?"short":o},l()(e,["unitDisplay"])),{},{style:"unit"});return 0===t?j(a,b(b({},i),{},{unit:"second"})):Object(p.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -13,4 +13,4 @@ Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?
13
  Object(p.__)("%sM","google-site-kit"),j(y(t),t%10==0?{}:e)):1e4<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(p.__)("%sK","google-site-kit"),j(y(t))):1e3<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(p.__)("%sK","google-site-kit"),j(y(t),t%10==0?{}:e)):j(t,{signDisplay:"never",maximumFractionDigits:1})},w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(f.isFinite)(t)?t:Number(t),Object(f.isFinite)(t)||(console.warn("Invalid number",t,i()(t)),t=0);var n={};if("%"===e)n={style:"percent",maximumFractionDigits:2};else{if("s"===e)return h(t,{unitDisplay:"narrow"});e&&"string"==typeof e?n={style:"currency",currency:e}:Object(f.isPlainObject)(e)&&(n=b({},e))}var r=n,a=r.style,o=void 0===a?"metric":a;return"metric"===o?O(t):"duration"===o?h(t,e):j(t,n)},k=v()(console.warn),j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?x():n,o=l()(e,["locale"]);try{return new Intl.NumberFormat(r,o).format(t)}catch(e){k("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(o)," ).format( ").concat(i()(t)," )"),e.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(o);f<d.length;f++){var v=a()(d[f],2),p=v[0],g=v[1];c[p]&&g===c[p]||(u.includes(p)||(s[p]=g))}try{return new Intl.NumberFormat(r,s).format(t)}catch(e){return new Intl.NumberFormat(r).format(t)}},_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?x():n,a=e.style,o=void 0===a?"long":a,i=e.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(r,{style:o,type:c});return u.format(t)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return t.join(s)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=Object(f.get)(e,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return e.navigator.language}}).call(this,n(14))},74:function(t,e,n){"use strict";function r(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function o(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var e=t,n=0,i=[r,a,o];n<i.length;n++){e=(0,i[n])(e)}return e}n.d(e,"a",(function(){return i}))},75:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}},76:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(189),a=n(59),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(e)))return"";var o=n.invertColor,i=void 0!==o&&o;return Object(r.a)(t.createElement(a.a,{direction:e>0?"up":"down",invertColor:i}))},i=function(t){var e,n,r,a,o,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(e=t[0])||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==t||null===(a=t[0])||void 0===a||null===(o=a.data)||void 0===o||null===(i=o.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,n(1))},78:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(6),a=n.n(r),o=n(79),i=n(80);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=u(u({},s),e);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(o.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(i.a)(a,n,r)}}}).call(this,n(14))},783:function(t,e,n){"use strict";n.r(e),function(t){var r=n(361);void 0===t.googlesitekit&&(t.googlesitekit={}),void 0===t.googlesitekit.api&&(t.googlesitekit.api=r.b),e.default=r.b}.call(this,n(14))},79:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=n(48),a=n(28);function o(e,n){var o=Object(r.a)(n);return function(){e.trackingEnabled=!0;var n=t.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(e.trackingID,"&l=").concat(a.a),n.head.appendChild(r),o("js",new Date),o("config",e.trackingID)}}}}).call(this,n(14))},80:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v}));var r=n(3),a=n.n(r),o=n(6),i=n.n(o),c=n(10),u=n.n(c),s=n(48),l=n(37);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(e,n,r){var o=Object(s.a)(n);return function(){var n=u()(a.a.mark((function n(i,c,u,s){var f,v,p,g,b,h,m,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=e.isFirstAdmin,g=e.referenceSiteURL,b=e.trackingEnabled,h=e.trackingID,m=e.userIDHash,!(null===(f=r._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:m,dimension4:"1.38.0",dimension5:Array.from(l.a).join(", ")},n.abrupt("return",new Promise((function(e){var n=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),e()}),1e3);o("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(n),e()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(t,e,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(109),a=n.n(r)()(t)}).call(this,n(14))},85:function(t,e,n){"use strict";(function(t){var r=n(22),a=n.n(r),o=n(112),i=t._googlesitekitAPIFetchData||{},c=i.nonce,u=i.nonceEndpoint,s=i.preloadedData,l=i.rootURL;a.a.nonceEndpoint=u,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(l),a.a.preloadingMiddleware=Object(o.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),e.default=a.a}).call(this,n(14))},9:function(t,e,n){"use strict";(function(t){n.d(e,"k",(function(){return _})),n.d(e,"a",(function(){return x})),n.d(e,"i",(function(){return S})),n.d(e,"x",(function(){return D})),n.d(e,"d",(function(){return E}));var r=n(6),a=n.n(r),o=n(19),i=n.n(o),c=n(108),u=n.n(c),s=n(104),l=n.n(s),f=n(40);n.d(e,"v",(function(){return f.b}));var d=n(58);n.d(e,"s",(function(){return d.a})),n.d(e,"w",(function(){return d.b}));var v=n(56);n.d(e,"u",(function(){return v.a}));var p=n(61);n.d(e,"b",(function(){return p.b})),n.d(e,"j",(function(){return p.c}));n(32);var g=n(68);n.d(e,"h",(function(){return g.a})),n.d(e,"n",(function(){return g.b})),n.d(e,"q",(function(){return g.c})),n.d(e,"r",(function(){return g.d}));var b=n(49);n.d(e,"e",(function(){return b.b}));var h=n(74);n.d(e,"o",(function(){return h.a}));var m=n(75);n.d(e,"c",(function(){return m.a}));var y=n(52);n.d(e,"t",(function(){return y.i}));var O=n(76);n.d(e,"f",(function(){return O.a})),n.d(e,"m",(function(){return O.b}));var w=n(65);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,"g",(function(){return w.a})),n.d(e,"l",(function(){return w.b})),n.d(e,"p",(function(){return w.c}));var _=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},x=function(t,e){if("0"===t||0===t||isNaN(t))return null;var n=(e-t)/t;return isNaN(n)||!u()(n)?null:n},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,n=e.modules;return n?Object.keys(n).reduce((function(t,e){return"object"!==i()(n[e])||void 0===n[e].slug||void 0===n[e].name||n[e].slug!==e?t:j(j({},t),{},a()({},e,n[e]))}),{}):{}},D=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},E=function(t){if(!t)return"";var e=t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/(\\)/g,"");return l()(e)}}).call(this,n(14))}},[[783,1,0]]]);
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[4],{11:function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return i}));var r="core/user",a="connected_url_mismatch",o="googlesitekit_view_dashboard",i="googlesitekit_manage_options"},112:function(t,e,n){"use strict";var r=n(106);e.a=function(t){var e=Object.keys(t).reduce((function(e,n){return e[Object(r.getStablePath)(n)]=t[n],e}),{}),n=!1;return function(t,a){if(n)return a(t);setTimeout((function(){n=!0}),1e3);var o=t.parse,i=void 0===o||o,c=t.path;if("string"==typeof t.path){var u,s=(null===(u=t.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(r.getStablePath)(c);if(i&&"GET"===s&&e[l]){var f=Promise.resolve(e[l].body);return delete e[l],f}if("OPTIONS"===s&&e[s]&&e[s][l]){var d=Promise.resolve(e[s][l]);return delete e[s][l],d}}return a(t)}}},138:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(3),a=n.n(r),o=n(10),i=n.n(o),c=n(9),u=["fetch_error"];function s(t){return l.apply(this,arguments)}function l(){return(l=i()(a.a.mark((function t(e){var n,r,o,i,s,l,f,d;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.method,i=e.type,s=e.identifier,l=e.datapoint,(f=e.error)&&!u.includes(null==f?void 0:f.code)){t.next=3;break}return t.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(n=f.data)||void 0===n?void 0:n.reason)&&(d+=", reason: ".concat(f.data.reason)),t.next=7,Object(c.v)("api_error","".concat(o,":").concat(i,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(r=f.data)||void 0===r?void 0:r.status)||f.code);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},2:function(t,e){t.exports=googlesitekit.i18n},28:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},32:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r,a=n(33),o=n.n(a),i=n(34),c=n.n(i),u=function(e){var n=t[e];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},s=function(){function NullStorage(){o()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return r||(r=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),r}}).call(this,n(14))},36:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t instanceof Date&&!isNaN(t)}},361:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=n(3),a=n.n(r),o=n(10),i=n.n(o),c=n(7),u=n.n(c),s=n(85),l=n(147),f=n(60),d=n(9),v=n(66),p=n(138),g=n(11),b=!0,h=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=[t,e,n].filter((function(t){return!!t&&t.length}));return 3===a.length&&r&&r.constructor===Object&&Object.keys(r).length&&a.push(Object(d.u)(r)),a.join("::")},m=function(e){var n,r,a,o,i=null===(n=t.googlesitekit)||void 0===n||null===(r=n.data)||void 0===r||null===(a=r.dispatch)||void 0===a?void 0:a.call(r,g.a);i&&(e.code===v.a?i.setPermissionScopeError(e):(null===(o=e.data)||void 0===o?void 0:o.reconnectURL)&&i.setAuthError(e))},y=function(){var e=i()(a.a.mark((function e(n,r,o){var i,c,d,v,g,b,y,O,w,j,_,x,S,D,E,P,I=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=I.length>3&&void 0!==I[3]?I[3]:{},c=i.bodyParams,d=i.cacheTTL,v=void 0===d?3600:d,g=i.method,b=void 0===g?"GET":g,y=i.queryParams,O=i.useCache,w=void 0===O?void 0:O,u()(n,"`type` argument for requests is required."),u()(r,"`identifier` argument for requests is required."),u()(o,"`datapoint` argument for requests is required."),j="GET"===b&&(void 0!==w?w:k()),_=h(n,r,o,y),!j){e.next=18;break}return e.next=9,Object(f.b)(_);case 9:if(x=e.sent,S=x.cacheHit,D=x.value,!x.isError){e.next=16;break}throw m(D),D;case 16:if(!S){e.next=18;break}return e.abrupt("return",D);case 18:return e.prev=18,e.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(n,"/").concat(r,"/data/").concat(o),y)});case 21:if(E=e.sent,!j){e.next=25;break}return e.next=25,Object(f.d)(_,E,{ttl:v});case 25:return e.abrupt("return",E);case 28:if(e.prev=28,e.t0=e.catch(18),!(null===e.t0||void 0===e.t0||null===(P=e.t0.data)||void 0===P?void 0:P.cacheTTL)){e.next=33;break}return e.next=33,Object(f.d)(_,e.t0,{ttl:e.t0.data.cacheTTL,isError:!0});case 33:throw Object(p.a)({method:b,datapoint:o,type:n,identifier:r,error:e.t0}),m(e.t0),t.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(o),"type:".concat(n),"identifier:".concat(r),'error:"'.concat(e.t0.message,'"')),e.t0;case 37:case"end":return e.stop()}}),e,null,[[18,28]])})));return function(t,n,r){return e.apply(this,arguments)}}(),O=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=f.length>4&&void 0!==f[4]?f[4]:{},c=i.cacheTTL,u=void 0===c?3600:c,s=i.useCache,l=void 0===s?void 0:s,t.abrupt("return",y(e,n,r,{cacheTTL:u,queryParams:o,useCache:l}));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),w=function(){var t=i()(a.a.mark((function t(e,n,r,o){var i,c,u,s,l,f,d=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=d.length>4&&void 0!==d[4]?d[4]:{},c=i.method,u=void 0===c?"POST":c,s=i.queryParams,l=void 0===s?{}:s,t.next=3,y(e,n,r,{bodyParams:{data:o},method:u,queryParams:l,useCache:!1});case 3:return f=t.sent,t.next=6,j(e,n,r);case 6:return t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,a){return t.apply(this,arguments)}}(),k=function(){return b},j=function(){var t=i()(a.a.mark((function t(e,n,r){var o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=h(e,n,r),t.next=3,Object(f.c)();case 3:t.sent.forEach((function(t){0===t.indexOf(o)&&Object(f.a)(t)}));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),_={invalidateCache:j,get:O,set:w,setUsingCache:function(t){return b=!!t},usingCache:k};e.b=_}).call(this,n(14))},37:function(t,e,n){"use strict";(function(t){var r,a;n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=new Set((null===(r=t)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return e instanceof Set&&e.has(t)}}).call(this,n(14))},40:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return d}));var r=n(78),a=t._googlesitekitBaseData||{},o=a.isFirstAdmin,i=a.trackingAllowed,c={isFirstAdmin:o,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},u=Object(r.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function v(t){t?s():l()}!0===i&&v(f())}).call(this,n(14))},42:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(36),a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e="string"==typeof t;if(!e)return!1;var n=t.split("-");return 3===n.length&&Object(r.a)(new Date(t))}},48:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(28);function a(t){return function(){t[r.a]=t[r.a]||[],t[r.a].push(arguments)}}},49:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(17),a=n.n(r),o=n(1),i=function(t){return function(e){return function FilteredComponent(n){return Object(o.createElement)(o.Fragment,{},"",Object(o.createElement)(e,n),t)}}},c=function(e,n){return function(r){return function InnerComponent(o){return t.createElement(e,a()({},o,n,{OriginalComponent:r}))}}}}).call(this,n(1))},52:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return v})),n.d(e,"g",(function(){return p})),n.d(e,"h",(function(){return f.a})),n.d(e,"d",(function(){return g})),n.d(e,"c",(function(){return h})),n.d(e,"i",(function(){return d}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',o=n(7),i=n.n(o),c=n(36),u=function(t){var e=new Date(t);i()(Object(c.a)(e),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(e.getMonth()+1),r="".concat(e.getDate());return[e.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),l=n.n(s),f=n(42),d=function(t){i()(Object(f.a)(t),r);var e=t.split("-"),n=l()(e,3),a=n[0],o=n[1],c=n[2];return new Date(a,o-1,c)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,n=d(t);return n.setDate(n.getDate()-e),u(n)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]};function g(t){var e=t.match(/last-(\d+)-days/);if(e&&e[1])return parseInt(e[1],10);throw new Error("Unrecognized date range slug.")}var b=n(2);function h(){var t=function(t){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
+ Object(b._n)("Last %s day","Last %s days",t,"google-site-kit"),t)};return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}},56:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(19),a=n.n(r),o=n(70),i=n.n(o),c=function(t){return i()(JSON.stringify(function t(e){var n={};return Object.keys(e).sort().forEach((function(r){var o=e[r];o&&"object"===a()(o)&&!Array.isArray(o)&&(o=t(o)),n[r]=o})),n}(t)))}},58:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(19),a=n.n(r),o=n(81),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(t,e)}};function c(t){var e,n="object"===a()(t)?t.toString():t;return null==n||null===(e=n.replace)||void 0===e?void 0:e.call(n,/\/+$/,"")}},59:function(t,e,n){"use strict";(function(t){var r=n(0),a=n.n(r),o=n(8),i=n.n(o);function ChangeArrow(e){var n=e.direction,r=e.invertColor,a=e.width,o=e.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},e.a=ChangeArrow}).call(this,n(1))},60:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return m}));var r=n(3),a=n.n(r),o=n(10),i=n.n(o);n(26);function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){c=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s,l="googlesitekit_".concat("1.38.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),v=function(){var e=i()(a.a.mark((function e(n){var r,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t[n]){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,o="__storage_test__",r.setItem(o,o),r.removeItem(o),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0 instanceof DOMException&&(22===e.t0.code||1014===e.t0.code||"QuotaExceededError"===e.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t0.name)&&0!==r.length);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),p=function(){var e=i()(a.a.mark((function e(){var n,r,o,i,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===(n=t._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){e.next=2;break}return e.abrupt("return",null);case 2:if(void 0!==s){e.next=25;break}o=c(d),e.prev=4,o.s();case 6:if((i=o.n()).done){e.next=16;break}if(u=i.value,!s){e.next=10;break}return e.abrupt("continue",14);case 10:return e.next=12,v(u);case 12:if(!e.sent){e.next=14;break}s=t[u];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),o.e(e.t0);case 21:return e.prev=21,o.f(),e.finish(21);case 24:void 0===s&&(s=null);case 25:return e.abrupt("return",s);case 26:case"end":return e.stop()}}),e,null,[[4,18,21,24]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var t=i()(a.a.mark((function t(e){var n,r,o,i,c,u,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=10;break}if(!(r=n.getItem("".concat(l).concat(e)))){t.next=10;break}if(o=JSON.parse(r),i=o.timestamp,c=o.ttl,u=o.value,s=o.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),b=function(){var e=i()(a.a.mark((function e(n,r){var o,i,c,u,s,f,d,v,g=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=g.length>2&&void 0!==g[2]?g[2]:{},i=o.ttl,c=void 0===i?3600:i,u=o.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=o.isError,d=void 0!==f&&f,e.next=3,p();case 3:if(!(v=e.sent)){e.next=14;break}return e.prev=5,v.setItem("".concat(l).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:d})),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(5),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=i()(a.a.mark((function e(n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(r=e.sent)){e.next=13;break}return e.prev=4,r.removeItem("".concat(l).concat(n)),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=i()(a.a.mark((function e(){var n,r,o,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=14;break}for(e.prev=4,r=[],o=0;o<n.length;o++)0===(i=n.key(o)).indexOf(l)&&r.push(i.substring(l.length));return e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",[]);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}()}).call(this,n(14))},61:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return f}));var r=n(13),a=n.n(r),o=n(2);function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(e=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===e&&null===n)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(o.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(o._n)("%d notification","%d notifications",t,"google-site-kit"),t),i.appendChild(c),i.appendChild(u),e&&null===r&&e.appendChild(i),n&&null===a&&n.appendChild(i),i},s=function(){t.localStorage&&t.localStorage.clear(),t.sessionStorage&&t.sessionStorage.clear()},l=function(t){for(var e=location.search.substr(1).split("&"),n={},r=0;r<e.length;r++)n[e[r].split("=")[0]]=decodeURIComponent(e[r].split("=")[1]);return t?n.hasOwnProperty(t)?decodeURIComponent(n[t].replace(/\+/g," ")):"":n},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(e.href);if(t)return n.searchParams&&n.searchParams.get?n.searchParams.get(t):l(t);var r,o={},c=i(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var u=a()(r.value,2),s=u[0],f=u[1];o[s]=f}}catch(t){c.e(t)}finally{c.f()}return o}}).call(this,n(14))},65:function(t,e,n){"use strict";function r(t){return new URL(t).pathname}function a(t,e){return new URL(e,t).href}function o(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return o}))},66:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n(53),a=n.n(r),o="missing_required_scopes";function i(t){return a()(t)&&t.hasOwnProperty("code")&&("string"==typeof t.code||"number"==typeof t.code)&&t.hasOwnProperty("message")&&"string"==typeof t.message&&t.hasOwnProperty("data")}function c(t){return(null==t?void 0:t.code)===o}function u(t){var e;return"insufficientPermissions"===(null==t||null===(e=t.data)||void 0===e?void 0:e.reason)}},68:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return j})),n.d(e,"b",(function(){return _})),n.d(e,"a",(function(){return x}));var r=n(13),a=n.n(r),o=n(19),i=n.n(o),c=n(6),u=n.n(c),s=n(16),l=n.n(s),f=n(18),d=n(64),v=n.n(d),p=n(2);function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(t,e),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(t){return a()}},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=parseInt(t,10),Number.isNaN(t)&&(t=0);var n=Math.floor(t/60/60),r=Math.floor(t/60%60),a=Math.floor(t%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var o=e.unitDisplay,i=b(b({unitDisplay:void 0===o?"short":o},l()(e,["unitDisplay"])),{},{style:"unit"});return 0===t?j(a,b(b({},i),{},{unit:"second"})):Object(p.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
13
  Object(p.__)("%sM","google-site-kit"),j(y(t),t%10==0?{}:e)):1e4<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(p.__)("%sK","google-site-kit"),j(y(t))):1e3<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(p.__)("%sK","google-site-kit"),j(y(t),t%10==0?{}:e)):j(t,{signDisplay:"never",maximumFractionDigits:1})},w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(f.isFinite)(t)?t:Number(t),Object(f.isFinite)(t)||(console.warn("Invalid number",t,i()(t)),t=0);var n={};if("%"===e)n={style:"percent",maximumFractionDigits:2};else{if("s"===e)return h(t,{unitDisplay:"narrow"});e&&"string"==typeof e?n={style:"currency",currency:e}:Object(f.isPlainObject)(e)&&(n=b({},e))}var r=n,a=r.style,o=void 0===a?"metric":a;return"metric"===o?O(t):"duration"===o?h(t,e):j(t,n)},k=v()(console.warn),j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?x():n,o=l()(e,["locale"]);try{return new Intl.NumberFormat(r,o).format(t)}catch(e){k("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(o)," ).format( ").concat(i()(t)," )"),e.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(o);f<d.length;f++){var v=a()(d[f],2),p=v[0],g=v[1];c[p]&&g===c[p]||(u.includes(p)||(s[p]=g))}try{return new Intl.NumberFormat(r,s).format(t)}catch(e){return new Intl.NumberFormat(r).format(t)}},_=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?x():n,a=e.style,o=void 0===a?"long":a,i=e.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(r,{style:o,type:c});return u.format(t)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return t.join(s)},x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=Object(f.get)(e,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return e.navigator.language}}).call(this,n(14))},74:function(t,e,n){"use strict";function r(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function o(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var e=t,n=0,i=[r,a,o];n<i.length;n++){e=(0,i[n])(e)}return e}n.d(e,"a",(function(){return i}))},75:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}},76:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(189),a=n(59),o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(e)))return"";var o=n.invertColor,i=void 0!==o&&o;return Object(r.a)(t.createElement(a.a,{direction:e>0?"up":"down",invertColor:i}))},i=function(t){var e,n,r,a,o,i,c,u,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(e=t[0])||void 0===e||null===(n=e.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==t||null===(a=t[0])||void 0===a||null===(o=a.data)||void 0===o||null===(i=o.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null===(p=v[0])||void 0===p||null===(g=p.values)||void 0===g?void 0:g[0])}}).call(this,n(1))},78:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(6),a=n.n(r),o=n(79),i=n(80);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=u(u({},s),e);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(o.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(i.a)(a,n,r)}}}).call(this,n(14))},783:function(t,e,n){"use strict";n.r(e),function(t){var r=n(361);void 0===t.googlesitekit&&(t.googlesitekit={}),void 0===t.googlesitekit.api&&(t.googlesitekit.api=r.b),e.default=r.b}.call(this,n(14))},79:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=n(48),a=n(28);function o(e,n){var o=Object(r.a)(n);return function(){e.trackingEnabled=!0;var n=t.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(e.trackingID,"&l=").concat(a.a),n.head.appendChild(r),o("js",new Date),o("config",e.trackingID)}}}}).call(this,n(14))},80:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return v}));var r=n(3),a=n.n(r),o=n(6),i=n.n(o),c=n(10),u=n.n(c),s=n(48),l=n(37);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(e,n,r){var o=Object(s.a)(n);return function(){var n=u()(a.a.mark((function n(i,c,u,s){var f,v,p,g,b,h,m,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=e.isFirstAdmin,g=e.referenceSiteURL,b=e.trackingEnabled,h=e.trackingID,m=e.userIDHash,!(null===(f=r._gaUserPrefs)||void 0===f||null===(v=f.ioo)||void 0===v?void 0:v.call(f))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:p?"true":"false",dimension3:m,dimension4:"1.38.1",dimension5:Array.from(l.a).join(", ")},n.abrupt("return",new Promise((function(e){var n=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),e()}),1e3);o("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(n),e()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(t,e,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(109),a=n.n(r)()(t)}).call(this,n(14))},85:function(t,e,n){"use strict";(function(t){var r=n(22),a=n.n(r),o=n(112),i=t._googlesitekitAPIFetchData||{},c=i.nonce,u=i.nonceEndpoint,s=i.preloadedData,l=i.rootURL;a.a.nonceEndpoint=u,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(l),a.a.preloadingMiddleware=Object(o.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),e.default=a.a}).call(this,n(14))},9:function(t,e,n){"use strict";(function(t){n.d(e,"k",(function(){return _})),n.d(e,"a",(function(){return x})),n.d(e,"i",(function(){return S})),n.d(e,"x",(function(){return D})),n.d(e,"d",(function(){return E}));var r=n(6),a=n.n(r),o=n(19),i=n.n(o),c=n(108),u=n.n(c),s=n(104),l=n.n(s),f=n(40);n.d(e,"v",(function(){return f.b}));var d=n(58);n.d(e,"s",(function(){return d.a})),n.d(e,"w",(function(){return d.b}));var v=n(56);n.d(e,"u",(function(){return v.a}));var p=n(61);n.d(e,"b",(function(){return p.b})),n.d(e,"j",(function(){return p.c}));n(32);var g=n(68);n.d(e,"h",(function(){return g.a})),n.d(e,"n",(function(){return g.b})),n.d(e,"q",(function(){return g.c})),n.d(e,"r",(function(){return g.d}));var b=n(49);n.d(e,"e",(function(){return b.b}));var h=n(74);n.d(e,"o",(function(){return h.a}));var m=n(75);n.d(e,"c",(function(){return m.a}));var y=n(52);n.d(e,"t",(function(){return y.i}));var O=n(76);n.d(e,"f",(function(){return O.a})),n.d(e,"m",(function(){return O.b}));var w=n(65);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?k(Object(n),!0).forEach((function(e){a()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,"g",(function(){return w.a})),n.d(e,"l",(function(){return w.b})),n.d(e,"p",(function(){return w.c}));var _=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},x=function(t,e){if("0"===t||0===t||isNaN(t))return null;var n=(e-t)/t;return isNaN(n)||!u()(n)?null:n},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,n=e.modules;return n?Object.keys(n).reduce((function(t,e){return"object"!==i()(n[e])||void 0===n[e].slug||void 0===n[e].name||n[e].slug!==e?t:j(j({},t),{},a()({},e,n[e]))}),{}):{}},D=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},E=function(t){if(!t)return"";var e=t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/(\\)/g,"");return l()(e)}}).call(this,n(14))}},[[783,1,0]]]);
dist/assets/js/{googlesitekit-dashboard-details.44f4fad460c7c55e9ffc.js → googlesitekit-dashboard-details.15b7a2091dd464a52247.js} RENAMED
@@ -25,9 +25,9 @@ c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-k
25
  /* translators: %s: List of product names */
26
  Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.n)(n));break;case"single":s=Object(l.sprintf)(
27
  /* translators: %1$s: Product name */
28
- Object(l.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":s=Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(l.__)("Site Kit can’t access necessary data","google-site-kit"),description:s,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(l.__)("Redo setup","google-site-kit")})}}).call(this,n(14),n(1))},238:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(5),a=n.n(r),i=n(15),o=n(39),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.a,t):null}}).call(this,n(1))},239:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),l=n.n(c),s=n(0),u=n.n(s),d=n(120),f=n(271),g=n(1),p=n(2),m=n(20),h=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,y=t.trailingIcon,k=t["aria-label"],_=t.title,O=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(g.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),j=Object(d.a)(n,E),w=i&&!h?"a":"button",S=e.createElement(w,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:j,disabled:!!h,"aria-label":function(){var e=k;if("_blank"!==v)return e;var t=Object(p._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===w?"button":void 0},O),b,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return b&&(_||k)&&void 0===r?e.createElement(f.a,{title:_||k,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},241:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(123);function a(e){return!!e&&e.Component===r.a}},242:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m.a}));var r=n(13),a=n.n(r),i=n(26),o=n.n(i),c=n(98),l=n(241);function s(e,t){if(9!==t)return[e,t];for(var n=(e=o()(e)).length-1;0!==t&&n>=0;)3===e[n]?(t-=3,e[n]=4):6===e[n]&&(t-=6,e[n]=8),n--;return[e,t]}function u(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+c.c[t],width:t}}))}function d(e,t){var n=0,r=0,i=[],o=[],d=function(e,t){return e.counter-t.counter},f=function(e,t){var n=e.counter;return t.counter-n},g=function(e){return e.counter<=12};if(e.forEach((function(p,m){if(Object(l.a)(t[p.slug]))return i.push(0),void o.push(r);var h=u(n,p),v=function(e,t,n){for(;++e<t.length;)if(!Object(l.a)(n[t[e].slug]))return t[e];return null}(m,e,t);null!==v&&0!==u(h.sort(d)[0].counter,v).filter(g).length||h.some(g)&&(h=(h=h.sort(f)).filter(g));var b=h[0].width;if(o.push(r),(n+=c.c[b])>12){if(n-=c.c[b],o[m]++,9===n){var y=s(i,n),k=a()(y,2);i=k[0],n=k[1]}n=c.c[b],r++}else 12===n&&(n=0,r++);i.push(c.c[b])})),9===n){var p=s(i,n),m=a()(p,2);i=m[0],n=m[1]}return{columnWidths:i,rowIndexes:o}}var f=n(218),g=n.n(f);function p(e,t,n){var r=n.columnWidths,a=n.rowIndexes,i=[],l=o()(r),s=null,u=-1,d=[];if(function(e,t){for(var n={},r=0;r<e.length;r++){var a,i=e[r],o=null==t?void 0:t[i.slug],l=null==o?void 0:o.Component,s=null==o||null===(a=o.metadata)||void 0===a?void 0:a.moduleSlug,u=c.b.includes(l);if(!l||!s||!u)return!1;if(n[s]){if(n[s]!==l)return!1}else n[s]=l}return!(Object.keys(n).length>1)}(e,t)){var f=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12].concat(o()(f))}}return e.forEach((function(n,o){var c,f,p,m,h;if(i.push(null),s=t[n.slug],u=a[o],s)if(f=s,p=t[null===(c=e[o+1])||void 0===c?void 0:c.slug],m=u,h=a[o+1],m===h&&g()(f,p))d.push(r[o]),l[o]=0;else if(d.length>0){d.push(r[o]);var v=d.reduce((function(e,t){return e+t}),0);i[o]=s,l[o]=v,d=[]}})),{gridColumnWidths:l,overrideComponents:i}}var m=n(197)},265:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function PageHeader(t){var n=t.title,r=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},r,e.createElement("h1",{className:a()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:a()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),l="googlesitekit_legacy_1.38.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},274:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(121);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},275:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(187);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},276:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(125);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetActivateModuleCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetActivateModuleCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},277:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(124);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetCompleteModuleActivationCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},278:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(119),l=n(123);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,l.a,u),e.createElement(l.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:o.a.string.isRequired},l.a.propTypes)}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),l=n(203),s=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),p=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(l.a,null)),h=Object(i.a)(t.createElement(s.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==g&&"authentication_failure"!==g&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},281:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="dashboard",a="pageDashboard"},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(14))},323:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),l=n.n(c),s=n(44),u=n.n(s),d=n(29),f=n.n(d),g=n(0),p=n.n(g),m=n(8),h=n.n(m),v=n(1),b=n(21);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var k=function(t){l()(LayoutHeader,t);var n=y(LayoutHeader);function LayoutHeader(){return a()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.ctaLabel,a=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a,"mdc-layout-grid__cell--span-8-tablet":!a})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),a&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-tablet "},e.createElement(b.a,{href:a,external:!0,inherit:!0},r)))))}}]),LayoutHeader}(v.Component);k.propTypes={title:p.a.string,ctaLabel:p.a.string,ctaLink:p.a.string},k.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=k}).call(this,n(1))},324:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),l=n.n(c),s=n(44),u=n.n(s),d=n(29),f=n.n(d),g=n(0),p=n.n(g),m=n(1),h=n(97);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){l()(LayoutFooter,t);var n=v(LayoutFooter);function LayoutFooter(){return a()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,r=t.ctaLink,a=t.footerContent;return e.createElement("footer",{className:"googlesitekit-layout__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),a))))}}]),LayoutFooter}(m.Component);b.propTypes={ctaLabel:p.a.string,ctaLink:p.a.string},t.a=b}).call(this,n(1))},325:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(326),u=n(46),d=n(20),f=l.a.useSelect,g=function WidgetContextRenderer(t){var n=t.slug,r=t.className,a=t.Header,i=t.Footer,c=f((function(e){return n?e(u.b).getWidgetAreas(n):null}));return e.createElement("div",{className:o()("googlesitekit-widget-context",r)},a&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(a,null)))),c&&c.map((function(t){return e.createElement(s.a,{key:t.slug,slug:t.slug,totalAreas:c.length})})),i&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(i,null)))))};g.propTypes={slug:a.a.string,className:a.a.string,Header:a.a.elementType,Footer:a.a.elementType},t.a=g}).call(this,n(1))},326:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetAreaRenderer}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(98),u=n(46),d=n(327),f=n(242),g=n(20),p=n(328),m=n(241),h=l.a.useSelect;function WidgetAreaRenderer(t){var n=t.slug,r=t.totalAreas,a=h((function(e){return e(u.b).getWidgetArea(n)})),i=h((function(e){return e(u.b).getWidgets(n)})),c=h((function(e){return e(u.b).getWidgetStates()})),l=i.filter((function(e){return!(c[e.slug]&&Object(m.a)(c[e.slug]))})),v=Object(f.c)(i,c),b=v.columnWidths,y=v.rowIndexes,k=Object(f.a)(i,c,{columnWidths:b,rowIndexes:y}),_=k.gridColumnWidths,O=k.overrideComponents,E=i.map((function(t,n){return e.createElement(p.a,{key:"".concat(t.slug,"-wrapper"),gridColumnWidth:_[n]},e.createElement(d.a,{OverrideComponent:O[n]?function(){var t=O[n],r=t.Component,a=t.metadata;return e.createElement(r,a)}:void 0,slug:t.slug}))}));if(!l.length)return e.createElement(g.b,{className:o()(s.a,"googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},E);var j=a.Icon,w=a.title,S=a.style,N=a.subtitle;return e.createElement(g.b,{className:o()("googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},r>1&&e.createElement(g.l,null,e.createElement(g.a,{className:"googlesitekit-widget-area-header",size:12},j&&e.createElement(j,{width:33,height:33}),w&&e.createElement("h3",{className:"googlesitekit-widget-area-header__title googlesitekit-heading-3"},w),N&&e.createElement("h4",{className:"googlesitekit-widget-area-header__subtitle"},N))),e.createElement("div",{className:"googlesitekit-widget-area-widgets"},e.createElement(g.l,null,S===u.c.BOXES&&E,S===u.c.COMPOSITE&&e.createElement(g.a,{size:12},e.createElement(g.b,null,e.createElement(g.l,null,E))))))}WidgetAreaRenderer.propTypes={slug:a.a.string.isRequired}}).call(this,n(1))},327:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(5),c=n.n(o),l=n(46),s=n(216),u=n(242),d=n(98),f=c.a.useSelect,g=function WidgetRenderer(t){var n=t.slug,r=t.OverrideComponent,a=f((function(e){return e(l.b).getWidget(n)})),o=Object(u.b)(n),c=o.Widget,g=o.WidgetNull;if(!a)return e.createElement(g,null);var p=a.Component,m=a.wrapWidget,h=e.createElement(p,o);return r?h=e.createElement(i.Fragment,null,e.createElement(s.a,{widgetSlug:"overridden"},e.createElement(r,null)),e.createElement("div",{className:d.a},h)):m&&(h=e.createElement(c,null,h)),h};g.propTypes={slug:a.a.string.isRequired,OverrideComponent:a.a.elementType},t.a=g}).call(this,n(1))},328:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(98),o=n(20),c=function WidgetCellWrapper(t){var n=t.gridColumnWidth,r=t.children;return 0===n?e.createElement("div",{className:i.a},r):n<6?e.createElement(o.a,{lgSize:n,mdSize:4,smSize:2},r):n<8?e.createElement(o.a,{lgSize:n,mdSize:8},r):e.createElement(o.a,{size:n},r)};c.propTypes={gridColumnWidth:a.a.number.isRequired,children:a.a.element.isRequired},t.a=c}).call(this,n(1))},329:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(270),o=n(1),c=n(84),l=n(5),s=n.n(l),u=n(330),d=n(132),f=n(52),g=n(11),p=n(133),m=n(24),h=s.a.useSelect,v=s.a.useDispatch;t.a=function DateRangeSelector(){var t,n=Object(f.c)(),r=h((function(e){return e(g.a).getDateRange()})),l=v(g.a).setDateRange,s=Object(o.useState)(!1),b=a()(s,2),y=b[0],k=b[1],_=Object(o.useRef)();Object(i.a)(_,(function(){return k(!1)})),Object(p.a)([c.c,c.d],_,(function(){return k(!1)}));var O=Object(o.useCallback)((function(){k(!y)}),[y]),E=Object(o.useCallback)((function(e){l(Object.values(n)[e].slug),k(!1)}),[n,l]),j=null===(t=n[r])||void 0===t?void 0:t.label,w=Object.values(n).map((function(e){return e.label}));return e.createElement("div",{ref:_,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor"},e.createElement(m.a,{className:"googlesitekit-header__date-range-selector-menu mdc-button--dropdown googlesitekit-header__dropdown",text:!0,onClick:O,icon:e.createElement(u.a,{width:"18",height:"20"}),"aria-haspopup":"menu","aria-expanded":y,"aria-controls":"date-range-selector-menu"},j),e.createElement(d.a,{menuOpen:y,menuItems:w,onSelected:E,id:"date-range-selector-menu",className:"googlesitekit-width-auto"}))}}).call(this,n(1))},330:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M6 9H4v2h2V9zm4 0H8v2h2V9zm4 0h-2v2h2V9zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 002 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 16H2V7h14v11z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgDateRange(e){return r.createElement("svg",a({viewBox:"0 0 18 20"},e),i)}},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),l=n.n(c),s=n(33),u=n.n(s),d=n(34),f=n.n(d),g=n(55),p=n.n(g),m=n(43),h=n.n(m),v=n(44),b=n.n(v),y=n(29),k=n.n(y),_=n(0),O=n.n(_),E=n(8),j=n.n(E),w=n(18),S=n(1),N=n(89),D=n(58),C=n(27),L=n(82),T=n(24),x=n(148),R=n(158),P=n(21),M=n(116);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=A(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(C.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(C.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(C.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(C.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,v=r.ctaLink,b=r.ctaLabel,y=r.ctaTarget,k=r.type,_=r.dismiss,O=r.isDismissable,E=r.logo,A=r.module,I=r.moduleName,F=r.pageIndex,z=r.anchorLink,U=r.anchorLinkLabel;if(Object(C.c)("notification::dismissed::".concat(o)))return null;var W,H=n?"is-closed":"is-open",q="large"===g&&"win-stats-increase"===k,B="mdc-layout-grid__cell--span-12";"large"===g?(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",q&&(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(B="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),W="win-warning"===k?e.createElement(x.a,null):"win-error"===k?e.createElement(R.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":q,"mdc-layout-grid__cell--span-4-desktop":!q})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(L.a,t)))})))),V=e.createElement(S.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),z&&U&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(P.a,{href:z},U)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(D.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(S.Fragment,null," ",e.createElement(P.a,{href:p,external:!0,inherit:!0},h),m),F&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},F))),i),K=A?e.createElement(M.a,{slug:A,size:19}):e.createElement(N.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(k),k),a()(t,"googlesitekit-publisher-win--".concat(H),H),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},E&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":q,"mdc-layout-grid__cell--order-1-tablet":q})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},K),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",B)},q?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,V,G),v&&e.createElement(T.a,{className:"googlesitekit-notification__cta",href:v,target:y,onClick:this.handleCTAClick},b),O&&_&&e.createElement(P.a,{onClick:this.handleDismiss},_)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===k||"win-warning"===k)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},W)))))}}]),Notification}(S.Component);I.propTypes={id:O.a.string.isRequired,className:O.a.string,title:O.a.string.isRequired,description:O.a.node,learnMoreURL:O.a.string,learnMoreDescription:O.a.string,learnMoreLabel:O.a.string,blockData:O.a.array,WinImageSVG:O.a.elementType,SmallImageSVG:O.a.elementType,format:O.a.string,ctaLink:O.a.string,ctaLabel:O.a.string,type:O.a.string,dismiss:O.a.string,isDismissable:O.a.bool,logo:O.a.bool,module:O.a.string,moduleName:O.a.string,pageIndex:O.a.string,dismissExpires:O.a.number,showOnce:O.a.bool,onCTAClick:O.a.func,onDismiss:O.a.func,anchorLink:O.a.string,anchorLinkLabel:O.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,f=l.trackEvent;function g(e){e?s():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},46:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},51:function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f}));var r="modules/idea-hub",a="IDEA_HUB_BUTTON_CREATE",i="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",l="IDEA_HUB_BUTTON_DELETE",s=4,u="IDEA_HUB_ACTIVITY_CREATING_DRAFT",d="IDEA_HUB_ACTIVITY_DRAFT_CREATED",f="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),l=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),u=n.n(s),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),l(n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
29
  /* translators: %s: number of days */
30
- Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.38.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.textContent=Object(i.sprintf)(
31
  /* translators: %d is the number of notifications */
32
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(l),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var l=a()(r.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),l=n(31),s=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),p=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],p=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var v=10,b=g.slice(0,v),y=g.slice(v);if(y=y.concat(p),0!==b.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var k=null!==Object(s.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:k||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],s=r[c],f=s.datapoint,g=s.type,p=s.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:p,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(p.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(d.d)(e,t,n,a);if(!i){var s=Object(d.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),l=n.n(c),s=n(16),u=n.n(s),d=n(18),f=n(64),g=n.n(f),p=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,h(h({},o),{},{unit:"second"})):Object(p.sprintf)(
33
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -42,7 +42,7 @@ Object(p.__)("%sK","google-site-kit"),E(y(e))):1e3<=e?Object(p.sprintf)(// trans
42
  Object(p.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?k(e):"duration"===i?v(e,t):E(e,n)},O=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){O("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),p=g[0],m=g[1];c[p]&&m===c[p]||(l.includes(p)||(s[p]=m))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
43
  /* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},753:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsApp}));var r=n(1),a=n(5),i=n.n(a),o=n(325),c=n(754),l=n(190),s=n(329),u=n(15),d=n(191),f=i.a.useSelect;function DashboardDetailsApp(){var t=f((function(e){return e(u.c).getAdminURL("googlesitekit-dashboard")})),n=f((function(e){return e(u.c).getCurrentEntityURL()}));return t?e.createElement(r.Fragment,null,e.createElement(l.a,null,e.createElement(d.a,null),n&&e.createElement(s.a,null)),e.createElement(o.a,{slug:n?"pageDashboard":"pageDashboardNotFound",className:"googlesitekit-module-page googlesitekit-dashboard-single-url",Header:c.a})):null}}).call(this,n(1))},754:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsHeader}));var r=n(1),a=n(2),i=n(5),o=n.n(i),c=n(9),l=n(21),s=n(265),u=n(230),d=n(92),f=n(15),g=o.a.useSelect;function DashboardDetailsHeader(){var t=g((function(e){return e(f.c).getAdminURL("googlesitekit-dashboard")})),n=g((function(e){return e(f.c).getCurrentEntityURL()})),i=g((function(e){return e(f.c).getCurrentEntityTitle()})),o=g((function(e){return e(f.c).getPermaLinkParam()}));return e.createElement(r.Fragment,null,e.createElement(l.a,{href:t,inherit:!0,back:!0,small:!0},Object(a.__)("Back to the Site Kit Dashboard","google-site-kit")),e.createElement(s.a,{title:Object(a.__)("Detailed Page Stats","google-site-kit"),className:" googlesitekit-heading-2 googlesitekit-dashboard-single-url__heading ",fullWidth:!0}),e.createElement(u.a,{className:"googlesitekit-dashboard-single-url__entity-header"},e.createElement(d.b,null,e.createElement(d.c,null,e.createElement(d.a,{size:12},n&&e.createElement(r.Fragment,null,e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-single-url__title "},i&&Object(c.d)(i)),e.createElement(l.a,{href:n,inherit:!0,external:!0},n)),!n&&e.createElement("p",{dangerouslySetInnerHTML:Object(c.s)(Object(a.sprintf)(
44
  /* translators: %s: current entity URL */
45
- Object(a.__)("It looks like the URL %s is not part of this site, therefore there is no data available to display.","google-site-kit"),"<strong>".concat(o,"</strong>")),{ALLOWED_TAGS:["strong"],ALLOWED_ATTR:[]})}))))))}}).call(this,n(1))},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),l=n.n(c),s=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,g,p,m,h,v,b,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:v,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:b,dimension4:"1.38.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(0),h=n.n(m),v=n(8),b=n.n(v),y=n(1),k=n(2),_=n(59),O=n(97),E=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=g;h&&p&&(h=Object(y.cloneElement)(g,{invertChangeColor:p}));var v=o;c&&(v="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),s&&(v=Object(k.sprintf)(s,v));var j=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(O.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(y.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},88:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(199),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL;if(!n)return null;var a=Object(o.sprintf)(
46
  /* translators: %s: Error message */
47
  Object(o.__)("Error: %s","google-site-kit"),n);r&&Object(i.a)(r)&&(a=a+" "+Object(o.sprintf)(
48
  /* translators: %s: Reconnect URL */
25
  /* translators: %s: List of product names */
26
  Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.n)(n));break;case"single":s=Object(l.sprintf)(
27
  /* translators: %1$s: Product name */
28
+ Object(l.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":s=Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(l.__)("Site Kit can’t access necessary data","google-site-kit"),description:s,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(l.__)("Redo setup","google-site-kit")})}}).call(this,n(14),n(1))},238:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(5),a=n.n(r),i=n(15),o=n(39),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.a,t):null}}).call(this,n(1))},239:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),l=n.n(c),s=n(0),u=n.n(s),d=n(120),f=n(271),g=n(1),p=n(2),m=n(20),h=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,y=t.trailingIcon,k=t["aria-label"],_=t.title,O=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(g.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),j=Object(d.a)(n,E),w=i&&!h?"a":"button",S=e.createElement(w,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:j,disabled:!!h,"aria-label":function(){var e=k;if("_blank"!==v)return e;var t=Object(p._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===w?"button":void 0},O),b,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return b&&(_||k)&&void 0===r?e.createElement(f.a,{title:_||k,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},241:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(123);function a(e){return!!e&&e.Component===r.a}},242:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m.a}));var r=n(13),a=n.n(r),i=n(26),o=n.n(i),c=n(98),l=n(241);function s(e,t){if(9!==t)return[e,t];for(var n=(e=o()(e)).length-1;0!==t&&n>=0;)3===e[n]?(t-=3,e[n]=4):6===e[n]&&(t-=6,e[n]=8),n--;return[e,t]}function u(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+c.c[t],width:t}}))}function d(e,t){var n=0,r=0,i=[],o=[],d=function(e,t){return e.counter-t.counter},f=function(e,t){var n=e.counter;return t.counter-n},g=function(e){return e.counter<=12};if(e.forEach((function(p,m){if(Object(l.a)(t[p.slug]))return i.push(0),void o.push(r);var h=u(n,p),v=function(e,t,n){for(;++e<t.length;)if(!Object(l.a)(n[t[e].slug]))return t[e];return null}(m,e,t);null!==v&&0!==u(h.sort(d)[0].counter,v).filter(g).length||h.some(g)&&(h=(h=h.sort(f)).filter(g));var b=h[0].width;if(o.push(r),(n+=c.c[b])>12){if(n-=c.c[b],o[m]++,9===n){var y=s(i,n),k=a()(y,2);i=k[0],n=k[1]}n=c.c[b],r++}else 12===n&&(n=0,r++);i.push(c.c[b])})),9===n){var p=s(i,n),m=a()(p,2);i=m[0],n=m[1]}return{columnWidths:i,rowIndexes:o}}var f=n(218),g=n.n(f);function p(e,t,n){var r=n.columnWidths,a=n.rowIndexes,i=[],l=o()(r),s=null,u=-1,d=[];if(function(e,t){for(var n={},r=0;r<e.length;r++){var a,i=e[r],o=null==t?void 0:t[i.slug],l=null==o?void 0:o.Component,s=null==o||null===(a=o.metadata)||void 0===a?void 0:a.moduleSlug,u=c.b.includes(l);if(!l||!s||!u)return!1;if(n[s]){if(n[s]!==l)return!1}else n[s]=l}return!(Object.keys(n).length>1)}(e,t)){var f=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12].concat(o()(f))}}return e.forEach((function(n,o){var c,f,p,m,h;if(i.push(null),s=t[n.slug],u=a[o],s)if(f=s,p=t[null===(c=e[o+1])||void 0===c?void 0:c.slug],m=u,h=a[o+1],m===h&&g()(f,p))d.push(r[o]),l[o]=0;else if(d.length>0){d.push(r[o]);var v=d.reduce((function(e,t){return e+t}),0);i[o]=s,l[o]=v,d=[]}})),{gridColumnWidths:l,overrideComponents:i}}var m=n(197)},265:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function PageHeader(t){var n=t.title,r=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},r,e.createElement("h1",{className:a()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:a()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),l="googlesitekit_legacy_1.38.1_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},274:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(121);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},275:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(187);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},276:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(125);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetActivateModuleCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetActivateModuleCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},277:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(124);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetCompleteModuleActivationCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},278:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(119),l=n(123);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,l.a,u),e.createElement(l.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:o.a.string.isRequired},l.a.propTypes)}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),l=n(203),s=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),p=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(l.a,null)),h=Object(i.a)(t.createElement(s.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==g&&"authentication_failure"!==g&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},281:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="dashboard",a="pageDashboard"},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(14))},323:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),l=n.n(c),s=n(44),u=n.n(s),d=n(29),f=n.n(d),g=n(0),p=n.n(g),m=n(8),h=n.n(m),v=n(1),b=n(21);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var k=function(t){l()(LayoutHeader,t);var n=y(LayoutHeader);function LayoutHeader(){return a()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.ctaLabel,a=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a,"mdc-layout-grid__cell--span-8-tablet":!a})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),a&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-tablet "},e.createElement(b.a,{href:a,external:!0,inherit:!0},r)))))}}]),LayoutHeader}(v.Component);k.propTypes={title:p.a.string,ctaLabel:p.a.string,ctaLink:p.a.string},k.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=k}).call(this,n(1))},324:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),l=n.n(c),s=n(44),u=n.n(s),d=n(29),f=n.n(d),g=n(0),p=n.n(g),m=n(1),h=n(97);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){l()(LayoutFooter,t);var n=v(LayoutFooter);function LayoutFooter(){return a()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,r=t.ctaLink,a=t.footerContent;return e.createElement("footer",{className:"googlesitekit-layout__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),a))))}}]),LayoutFooter}(m.Component);b.propTypes={ctaLabel:p.a.string,ctaLink:p.a.string},t.a=b}).call(this,n(1))},325:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(326),u=n(46),d=n(20),f=l.a.useSelect,g=function WidgetContextRenderer(t){var n=t.slug,r=t.className,a=t.Header,i=t.Footer,c=f((function(e){return n?e(u.b).getWidgetAreas(n):null}));return e.createElement("div",{className:o()("googlesitekit-widget-context",r)},a&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(a,null)))),c&&c.map((function(t){return e.createElement(s.a,{key:t.slug,slug:t.slug,totalAreas:c.length})})),i&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(i,null)))))};g.propTypes={slug:a.a.string,className:a.a.string,Header:a.a.elementType,Footer:a.a.elementType},t.a=g}).call(this,n(1))},326:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetAreaRenderer}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(98),u=n(46),d=n(327),f=n(242),g=n(20),p=n(328),m=n(241),h=l.a.useSelect;function WidgetAreaRenderer(t){var n=t.slug,r=t.totalAreas,a=h((function(e){return e(u.b).getWidgetArea(n)})),i=h((function(e){return e(u.b).getWidgets(n)})),c=h((function(e){return e(u.b).getWidgetStates()})),l=i.filter((function(e){return!(c[e.slug]&&Object(m.a)(c[e.slug]))})),v=Object(f.c)(i,c),b=v.columnWidths,y=v.rowIndexes,k=Object(f.a)(i,c,{columnWidths:b,rowIndexes:y}),_=k.gridColumnWidths,O=k.overrideComponents,E=i.map((function(t,n){return e.createElement(p.a,{key:"".concat(t.slug,"-wrapper"),gridColumnWidth:_[n]},e.createElement(d.a,{OverrideComponent:O[n]?function(){var t=O[n],r=t.Component,a=t.metadata;return e.createElement(r,a)}:void 0,slug:t.slug}))}));if(!l.length)return e.createElement(g.b,{className:o()(s.a,"googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},E);var j=a.Icon,w=a.title,S=a.style,N=a.subtitle;return e.createElement(g.b,{className:o()("googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},r>1&&e.createElement(g.l,null,e.createElement(g.a,{className:"googlesitekit-widget-area-header",size:12},j&&e.createElement(j,{width:33,height:33}),w&&e.createElement("h3",{className:"googlesitekit-widget-area-header__title googlesitekit-heading-3"},w),N&&e.createElement("h4",{className:"googlesitekit-widget-area-header__subtitle"},N))),e.createElement("div",{className:"googlesitekit-widget-area-widgets"},e.createElement(g.l,null,S===u.c.BOXES&&E,S===u.c.COMPOSITE&&e.createElement(g.a,{size:12},e.createElement(g.b,null,e.createElement(g.l,null,E))))))}WidgetAreaRenderer.propTypes={slug:a.a.string.isRequired}}).call(this,n(1))},327:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(5),c=n.n(o),l=n(46),s=n(216),u=n(242),d=n(98),f=c.a.useSelect,g=function WidgetRenderer(t){var n=t.slug,r=t.OverrideComponent,a=f((function(e){return e(l.b).getWidget(n)})),o=Object(u.b)(n),c=o.Widget,g=o.WidgetNull;if(!a)return e.createElement(g,null);var p=a.Component,m=a.wrapWidget,h=e.createElement(p,o);return r?h=e.createElement(i.Fragment,null,e.createElement(s.a,{widgetSlug:"overridden"},e.createElement(r,null)),e.createElement("div",{className:d.a},h)):m&&(h=e.createElement(c,null,h)),h};g.propTypes={slug:a.a.string.isRequired,OverrideComponent:a.a.elementType},t.a=g}).call(this,n(1))},328:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(98),o=n(20),c=function WidgetCellWrapper(t){var n=t.gridColumnWidth,r=t.children;return 0===n?e.createElement("div",{className:i.a},r):n<6?e.createElement(o.a,{lgSize:n,mdSize:4,smSize:2},r):n<8?e.createElement(o.a,{lgSize:n,mdSize:8},r):e.createElement(o.a,{size:n},r)};c.propTypes={gridColumnWidth:a.a.number.isRequired,children:a.a.element.isRequired},t.a=c}).call(this,n(1))},329:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(270),o=n(1),c=n(84),l=n(5),s=n.n(l),u=n(330),d=n(132),f=n(52),g=n(11),p=n(133),m=n(24),h=s.a.useSelect,v=s.a.useDispatch;t.a=function DateRangeSelector(){var t,n=Object(f.c)(),r=h((function(e){return e(g.a).getDateRange()})),l=v(g.a).setDateRange,s=Object(o.useState)(!1),b=a()(s,2),y=b[0],k=b[1],_=Object(o.useRef)();Object(i.a)(_,(function(){return k(!1)})),Object(p.a)([c.c,c.d],_,(function(){return k(!1)}));var O=Object(o.useCallback)((function(){k(!y)}),[y]),E=Object(o.useCallback)((function(e){l(Object.values(n)[e].slug),k(!1)}),[n,l]),j=null===(t=n[r])||void 0===t?void 0:t.label,w=Object.values(n).map((function(e){return e.label}));return e.createElement("div",{ref:_,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor"},e.createElement(m.a,{className:"googlesitekit-header__date-range-selector-menu mdc-button--dropdown googlesitekit-header__dropdown",text:!0,onClick:O,icon:e.createElement(u.a,{width:"18",height:"20"}),"aria-haspopup":"menu","aria-expanded":y,"aria-controls":"date-range-selector-menu"},j),e.createElement(d.a,{menuOpen:y,menuItems:w,onSelected:E,id:"date-range-selector-menu",className:"googlesitekit-width-auto"}))}}).call(this,n(1))},330:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M6 9H4v2h2V9zm4 0H8v2h2V9zm4 0h-2v2h2V9zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 002 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 16H2V7h14v11z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgDateRange(e){return r.createElement("svg",a({viewBox:"0 0 18 20"},e),i)}},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),l=n.n(c),s=n(33),u=n.n(s),d=n(34),f=n.n(d),g=n(55),p=n.n(g),m=n(43),h=n.n(m),v=n(44),b=n.n(v),y=n(29),k=n.n(y),_=n(0),O=n.n(_),E=n(8),j=n.n(E),w=n(18),S=n(1),N=n(89),D=n(58),C=n(27),L=n(82),T=n(24),x=n(148),R=n(158),P=n(21),M=n(116);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=A(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(C.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(C.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(C.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(C.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,p=r.learnMoreURL,m=r.learnMoreDescription,h=r.learnMoreLabel,v=r.ctaLink,b=r.ctaLabel,y=r.ctaTarget,k=r.type,_=r.dismiss,O=r.isDismissable,E=r.logo,A=r.module,I=r.moduleName,F=r.pageIndex,z=r.anchorLink,U=r.anchorLinkLabel;if(Object(C.c)("notification::dismissed::".concat(o)))return null;var W,H=n?"is-closed":"is-open",q="large"===g&&"win-stats-increase"===k,B="mdc-layout-grid__cell--span-12";"large"===g?(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",q&&(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(B="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),W="win-warning"===k?e.createElement(x.a,null):"win-error"===k?e.createElement(R.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":q,"mdc-layout-grid__cell--span-4-desktop":!q})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(L.a,t)))})))),V=e.createElement(S.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),z&&U&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(P.a,{href:z},U)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(D.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(S.Fragment,null," ",e.createElement(P.a,{href:p,external:!0,inherit:!0},h),m),F&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},F))),i),K=A?e.createElement(M.a,{slug:A,size:19}):e.createElement(N.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(k),k),a()(t,"googlesitekit-publisher-win--".concat(H),H),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},E&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":q,"mdc-layout-grid__cell--order-1-tablet":q})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},K),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",B)},q?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,V,G),v&&e.createElement(T.a,{className:"googlesitekit-notification__cta",href:v,target:y,onClick:this.handleCTAClick},b),O&&_&&e.createElement(P.a,{onClick:this.handleDismiss},_)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===k||"win-warning"===k)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},W)))))}}]),Notification}(S.Component);I.propTypes={id:O.a.string.isRequired,className:O.a.string,title:O.a.string.isRequired,description:O.a.node,learnMoreURL:O.a.string,learnMoreDescription:O.a.string,learnMoreLabel:O.a.string,blockData:O.a.array,WinImageSVG:O.a.elementType,SmallImageSVG:O.a.elementType,format:O.a.string,ctaLink:O.a.string,ctaLabel:O.a.string,type:O.a.string,dismiss:O.a.string,isDismissable:O.a.bool,logo:O.a.bool,module:O.a.string,moduleName:O.a.string,pageIndex:O.a.string,dismissExpires:O.a.number,showOnce:O.a.bool,onCTAClick:O.a.func,onDismiss:O.a.func,anchorLink:O.a.string,anchorLinkLabel:O.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,f=l.trackEvent;function g(e){e?s():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},46:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},51:function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f}));var r="modules/idea-hub",a="IDEA_HUB_BUTTON_CREATE",i="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",l="IDEA_HUB_BUTTON_DELETE",s=4,u="IDEA_HUB_ACTIVITY_CREATING_DRAFT",d="IDEA_HUB_ACTIVITY_DRAFT_CREATED",f="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),l=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),u=n.n(s),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),l(n)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
29
  /* translators: %s: number of days */
30
+ Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.38.1","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),p=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,f,g,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,p();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.textContent=Object(i.sprintf)(
31
  /* translators: %d is the number of notifications */
32
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(l),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var l=a()(r.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),l=n(31),s=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),p=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],p=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?p.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],g.push(e))}));var v=10,b=g.slice(0,v),y=g.slice(v);if(y=y.concat(p),0!==b.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var k=null!==Object(s.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:k||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],s=r[c],f=s.datapoint,g=s.type,p=s.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:p,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(p.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(d.d)(e,t,n,a);if(!i){var s=Object(d.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),l=n.n(c),s=n(16),u=n.n(s),d=n(18),f=n(64),g=n.n(f),p=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,h(h({},o),{},{unit:"second"})):Object(p.sprintf)(
33
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
42
  Object(p.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?k(e):"duration"===i?v(e,t):E(e,n)},O=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){O("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),p=g[0],m=g[1];c[p]&&m===c[p]||(l.includes(p)||(s[p]=m))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
43
  /* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},753:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsApp}));var r=n(1),a=n(5),i=n.n(a),o=n(325),c=n(754),l=n(190),s=n(329),u=n(15),d=n(191),f=i.a.useSelect;function DashboardDetailsApp(){var t=f((function(e){return e(u.c).getAdminURL("googlesitekit-dashboard")})),n=f((function(e){return e(u.c).getCurrentEntityURL()}));return t?e.createElement(r.Fragment,null,e.createElement(l.a,null,e.createElement(d.a,null),n&&e.createElement(s.a,null)),e.createElement(o.a,{slug:n?"pageDashboard":"pageDashboardNotFound",className:"googlesitekit-module-page googlesitekit-dashboard-single-url",Header:c.a})):null}}).call(this,n(1))},754:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardDetailsHeader}));var r=n(1),a=n(2),i=n(5),o=n.n(i),c=n(9),l=n(21),s=n(265),u=n(230),d=n(92),f=n(15),g=o.a.useSelect;function DashboardDetailsHeader(){var t=g((function(e){return e(f.c).getAdminURL("googlesitekit-dashboard")})),n=g((function(e){return e(f.c).getCurrentEntityURL()})),i=g((function(e){return e(f.c).getCurrentEntityTitle()})),o=g((function(e){return e(f.c).getPermaLinkParam()}));return e.createElement(r.Fragment,null,e.createElement(l.a,{href:t,inherit:!0,back:!0,small:!0},Object(a.__)("Back to the Site Kit Dashboard","google-site-kit")),e.createElement(s.a,{title:Object(a.__)("Detailed Page Stats","google-site-kit"),className:" googlesitekit-heading-2 googlesitekit-dashboard-single-url__heading ",fullWidth:!0}),e.createElement(u.a,{className:"googlesitekit-dashboard-single-url__entity-header"},e.createElement(d.b,null,e.createElement(d.c,null,e.createElement(d.a,{size:12},n&&e.createElement(r.Fragment,null,e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-single-url__title "},i&&Object(c.d)(i)),e.createElement(l.a,{href:n,inherit:!0,external:!0},n)),!n&&e.createElement("p",{dangerouslySetInnerHTML:Object(c.s)(Object(a.sprintf)(
44
  /* translators: %s: current entity URL */
45
+ Object(a.__)("It looks like the URL %s is not part of this site, therefore there is no data available to display.","google-site-kit"),"<strong>".concat(o,"</strong>")),{ALLOWED_TAGS:["strong"],ALLOWED_ATTR:[]})}))))))}}).call(this,n(1))},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,f,g,p,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(m=p.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),l=n.n(c),s=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,g,p,m,h,v,b,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(p=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:v,event_category:o,event_label:l,value:s,dimension1:m,dimension2:p?"true":"false",dimension3:b,dimension4:"1.38.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),p=n.n(g),m=n(0),h=n.n(m),v=n(8),b=n.n(v),y=n(1),k=n(2),_=n(59),O=n(97),E=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,p=t.invertChangeColor,m="button"===l?"button":"",h=g;h&&p&&(h=Object(y.cloneElement)(g,{invertChangeColor:p}));var v=o;c&&(v="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),s&&(v=Object(k.sprintf)(s,v));var j=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:p})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(O.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(y.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},88:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(199),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL;if(!n)return null;var a=Object(o.sprintf)(
46
  /* translators: %s: Error message */
47
  Object(o.__)("Error: %s","google-site-kit"),n);r&&Object(i.a)(r)&&(a=a+" "+Object(o.sprintf)(
48
  /* translators: %s: Reconnect URL */
dist/assets/js/{googlesitekit-dashboard-splash.41d3b182a6aadaba2291.js → googlesitekit-dashboard-splash.1723fef9743a8af2eaa5.js} RENAMED
@@ -3,7 +3,7 @@
3
  /* translators: %s: List of product names */
4
  Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.n)(n));break;case"single":l=Object(s.sprintf)(
5
  /* translators: %1$s: Product name */
6
- Object(s.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":l=Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),description:l,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(s.__)("Redo setup","google-site-kit")})}}).call(this,n(14),n(1))},238:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(5),a=n.n(r),i=n(15),o=n(39),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.a,t):null}}).call(this,n(1))},239:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(120),f=n(271),p=n(1),g=n(2),m=n(20),h=Object(p.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,l=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,k=t.trailingIcon,y=t["aria-label"],_=t.title,E=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),O=Object(p.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),S=Object(d.a)(n,O),j=i&&!h?"a":"button",w=e.createElement(j,a()({className:s()("mdc-button",l,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:S,disabled:!!h,"aria-label":function(){var e=y;if("_blank"!==v)return e;var t=Object(g._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===j?"button":void 0},E),b,r&&e.createElement("span",{className:"mdc-button__label"},r),k);return b&&(_||y)&&void 0===r?e.createElement(f.a,{title:_||y,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},w):w}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return p}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),s="googlesitekit_legacy_1.38.0_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},p=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},273:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function Checkbox(t){var n=t.onChange,r=t.id,i=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:a()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:i,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),s=n(203),l=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,p=Object(o.j)("notification"),g=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(s.a,null)),h=Object(i.a)(t.createElement(l.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",g,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==p&&"authentication_failure"!==p&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===p||"authentication_failure"===p||"user_input_success"===p?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},288:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return m}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(38),s=n.n(c),l=n(15),u=n(131),d=function(){var t=o()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},p=function(){var e=o()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},301:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(146),p=n(2),g=n(5),m=n.n(g),h=n(11),v=n(40),b=n(273),k=n(21),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,i=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),g=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",i)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(p.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(p.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==g?void 0:g.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==g?void 0:g.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(1))},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},l=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=s("sessionStorage")?e.sessionStorage:s("localStorage")?e.localStorage:new l),r}}).call(this,n(14))},322:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(8),h=n.n(m),v=n(111),b=n(1),k=n(2),y=n(31),_=n(126),E=n(100);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var S=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name");if(!t)return null;var n=Object(k.sprintf)(
7
  /* translators: %d: the number of notifications */
8
  Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),r=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,n));return Object(v.createPortal)(r,t)}}]),NotificationCounter}(b.Component);t.a=S}).call(this,n(1))},323:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),p=n(0),g=n.n(p),m=n(8),h=n.n(m),v=n(1),b=n(21);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(LayoutHeader,t);var n=k(LayoutHeader);function LayoutHeader(){return a()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.ctaLabel,a=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a,"mdc-layout-grid__cell--span-8-tablet":!a})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),a&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-tablet "},e.createElement(b.a,{href:a,external:!0,inherit:!0},r)))))}}]),LayoutHeader}(v.Component);y.propTypes={title:g.a.string,ctaLabel:g.a.string,ctaLink:g.a.string},y.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=y}).call(this,n(1))},324:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),p=n(0),g=n.n(p),m=n(1),h=n(97);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){s()(LayoutFooter,t);var n=v(LayoutFooter);function LayoutFooter(){return a()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,r=t.ctaLink,a=t.footerContent;return e.createElement("footer",{className:"googlesitekit-layout__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),a))))}}]),LayoutFooter}(m.Component);b.propTypes={ctaLabel:g.a.string,ctaLink:g.a.string},t.a=b}).call(this,n(1))},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},38:function(e,t){e.exports=googlesitekit.api},383:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(16),a=n.n(r),i=n(2),o=n(0),c=n.n(o),s=n(5),l=n.n(s),u=n(148),d=n(71),f=n(384),p=n(385),g=n(15),m=n(288),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=a()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(g.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(i.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(p.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(i.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(1))},384:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(156),u=n(1);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),i=s()(r,2),c=i[0],f=i[1],p=Object(u.useState)(void 0),g=s()(p,2),m=g[0],h=g[1];return Object(l.a)((function(){c||function(){var e=o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return i=r.value,e.next=8,i();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},385:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(17),a=n.n(r),i=n(2),o=n(5),c=n.n(o),s=n(58),l=n(21),u=n(15),d=n(131),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(i.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,a()({},function(e){var t=e.installed,n=e.active,r=e.installURL,a=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(i.__)("Install the helper plugin","google-site-kit"),children:Object(i.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&a?{"aria-label":Object(i.__)("Activate the helper plugin","google-site-kit"),children:Object(i.__)("Activate","google-site-kit"),href:a,external:!1}:t&&n&&o?{"aria-label":Object(i.__)("Configure the helper plugin","google-site-kit"),children:Object(i.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(i.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(i.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(i.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
9
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
@@ -15,7 +15,7 @@ Object(E.__)("We found %d existing accounts. Please choose which one to use belo
15
  /* translators: %s: Search Console property domain name */
16
  t=Object(E.sprintf)(Object(E.__)("%s (domain property)","google-site-kit"),t.replace(/^sc-domain:/,""))),{label:t,value:e.siteURL}}));return r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-setup-module__inputs"},r.createElement(C.m,{enhanced:!0,name:"siteProperty",label:Object(E.__)("Choose URL","google-site-kit"),outlined:!0,onEnhancedChange:this.handleURLSelect,options:a,value:n})),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(N.a,{onClick:this.submitPropertyEventHandler},Object(E.__)("Continue","google-site-kit"))))}},{key:"noSiteForm",value:function(){var e=this.state.siteURL;return r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-setup-module__inputs"},r.createElement(C.n,{label:Object(E.__)("Website Address","google-site-kit"),name:"siteProperty",floatingLabelClassName:"mdc-floating-label--float-above",outlined:!0,disabled:!0},r.createElement(C.d,{value:e}))),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(N.a,{onClick:this.submitPropertyEventHandler},Object(E.__)("Continue","google-site-kit"))))}},{key:"renderForm",value:function(){var e=this.state,t=e.loading,n=e.sites;return t?r.createElement(O.Fragment,null,r.createElement("p",null,Object(E.__)("We’re locating your Search Console account.","google-site-kit")),r.createElement(w.a,null)):0===n.length?this.noSiteForm():this.matchedForm()}},{key:"render",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup,a=this.state,i=a.errorMsg,o=a.connected;return!n||o?SearchConsole.connected():r.createElement("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console"},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-setup-module__title "},Object(E._x)("Search Console","Service name","google-site-kit")),i&&0<i.length&&r.createElement("p",{className:"googlesitekit-error-text"},i),t&&n&&this.renderForm())}}],[{key:"connected",value:function(){return r.createElement("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console"},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-setup-module__title "},Object(E._x)("Search Console","Service name","google-site-kit")),r.createElement("p",{className:"googlesitekit-setup-module__text--no-margin"},Object(E.__)("Your Search Console is set up with Site Kit.","google-site-kit")))}}]),SearchConsole}(O.Component);D.propTypes={isAuthenticated:_.a.bool.isRequired,shouldSetup:_.a.bool.isRequired,searchConsoleSetup:_.a.func.isRequired,setErrorMessage:_.a.func.isRequired},t.a=D}).call(this,n(14),n(1))},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),s=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},l=n(13),u=n.n(l),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),s(n)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
17
  /* translators: %s: number of days */
18
- Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.38.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),p=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),g=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,s=i.value,l=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,s,l,d,f,p,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,s=i.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=i.isError,f=void 0!==d&&d,t.next=3,g();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var s=document.createElement("span");return s.setAttribute("class","screen-reader-text"),s.textContent=Object(i.sprintf)(
19
  /* translators: %d is the number of notifications */
20
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(s),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},l=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var s=a()(r.value,2),l=s[0],d=s[1];i[l]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),s=n(31),l=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var p=n(99),g=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var p=[],g=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?g.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],p.push(e))}));var v=10,b=p.slice(0,v),k=p.slice(v);if(k=k.concat(g),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(l.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],l=r[c],f=l.datapoint,p=l.type,g=l.identifier;t.handleWPError({method:"GET",datapoint:f,type:p,identifier:g,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(g.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:p.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(d.d)(e,t,n,a);if(!i){var l=Object(d.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(s,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return j}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),s=n.n(c),l=n(16),u=n.n(l),d=n(18),f=n(64),p=n.n(f),g=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?O(a,h(h({},o),{},{unit:"second"})):Object(g.sprintf)(
21
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -30,6 +30,6 @@ Object(g.__)("%sK","google-site-kit"),O(k(e))):1e3<=e?Object(g.sprintf)(// trans
30
  Object(g.__)("%sK","google-site-kit"),O(k(e),e%10==0?{}:t)):O(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?y(e):"duration"===i?v(e,t):O(e,n)},E=p()(console.warn),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,f=Object.entries(i);d<f.length;d++){var p=a()(f[d],2),g=p[0],m=p[1];c[g]&&m===c[g]||(s.includes(g)||(l[g]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
31
  /* translators: used between list items, there is a space after the comma. */var l=Object(g.__)(", ","google-site-kit");return e.join(l)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},71:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,s=t.progress,l=void 0!==c?Math.round(c/2):void 0,u=s?"scaleX(".concat(s,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:l,marginBottom:l},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(1))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},755:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSplashApp}));var r=n(5),a=n.n(r),i=n(15),o=n(756),c=n(758),s=a.a.useSelect;function DashboardSplashApp(){var t=s((function(e){return e(i.c).isUsingProxy()}));return!0===t?e.createElement(o.a,null):!1===t?e.createElement(c.a,null):null}}).call(this,n(1))},756:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(504),l=n.n(s),u=n(8),d=n.n(u),f=n(1),p=n(2),g=n(403),m=n(5),h=n.n(m),v=n(757),b=n(9),k=n(190),y=n(24),_=n(386),E=n(230),O=n(39),S=n(301),j=n(383),w=n(15),C=n(11),N=n(41),x=n(114),D=n(191),L=h.a.useSelect,R=h.a.useDispatch;t.a=function SetupUsingProxy(){var t,n,a=Object(x.a)("serviceSetupV2"),o=L((function(e){var t=e(w.c),n=e(C.a);return{isSecondAdmin:t.hasConnectedAdmins(),isResettable:t.isResettable(),siteURL:t.getReferenceSiteURL(),proxySetupURL:t.getProxySetupURL(),disconnectedReason:n.getDisconnectedReason()}})),s=o.isSecondAdmin,u=o.isResettable,m=o.siteURL,h=o.proxySetupURL,M=o.disconnectedReason,P=R(N.a).navigateTo,A=Object(f.useCallback)(function(){var e=c()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,Object(b.v)("plugin_setup","proxy_start_setup_landing_page");case 3:P(h);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[h,P]),T=e._googlesitekitLegacyData.setup.errorMessage;return"revoked"===Object(g.a)(location.href,"googlesitekit_context")?(t=Object(p.sprintf)(
32
  /* translators: %s is the site's hostname. (e.g. example.com) */
33
- Object(p.__)("You revoked access to Site Kit for %s","google-site-kit"),l.a.toUnicode(new URL(m).hostname)),n=Object(p.__)('Site Kit will no longer have access to your account. If you’d like to reconnect Site Kit, click "Sign in with Google" below to generate new credentials.',"google-site-kit")):s?(t=Object(p.__)("Connect your Google account to Site Kit","google-site-kit"),n=Object(p.__)("Site Kit has already been configured by another admin of this site. To use Site Kit as well, sign in with your Google account which has access to Google services for this site (e.g. Google Analytics). Once you complete the 3 setup steps, you’ll see stats from all activated Google products.","google-site-kit")):C.b===M?(t=Object(p.__)("Reconnect Site Kit","google-site-kit"),n=Object(p.__)("Looks like the URL of your site has changed. In order to continue using Site Kit, you'll need to reconnect, so that your plugin settings are updated with the new URL.","google-site-kit")):(t=Object(p.__)("Set up Site Kit","google-site-kit"),n=Object(p.__)("Get insights on how people find your site, as well as how to improve and monetize your site’s content, directly in your WordPress dashboard.","google-site-kit")),r.createElement(f.Fragment,null,r.createElement(k.a,null,r.createElement(D.a,null)),T&&r.createElement(O.a,{id:"setup_error",type:"win-error",title:Object(p.__)("Oops! There was a problem during set up. Please try again.","google-site-kit"),description:T,isDismissable:!1}),"reset_success"===Object(g.a)(location.href,"notification")&&r.createElement(O.a,{id:"reset_success",title:Object(p.__)("Site Kit by Google was successfully reset.","google-site-kit"),isDismissable:!1}),r.createElement("div",{className:"googlesitekit-setup"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r.createElement(E.a,null,r.createElement("section",{className:"googlesitekit-setup__splash"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:d()("mdc-layout-grid__inner",{"googlesitekit-setup__content":a})},a&&r.createElement("div",{className:" googlesitekit-setup__icon mdc-layout-grid__cell mdc-layout-grid__cell--span-12-tablet mdc-layout-grid__cell--span-6-desktop "},r.createElement(v.a,{width:"570",height:"336"})),r.createElement("div",{className:d()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12-tablet",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a})},r.createElement("h1",{className:"googlesitekit-setup__title"},t),r.createElement("p",{className:"googlesitekit-setup__description"},n),r.createElement(j.a,null,(function(e){var t=e.complete,n=e.inProgressFeedback,a=e.ctaFeedback;return r.createElement(f.Fragment,null,a,r.createElement(S.a,{optinAction:"analytics_optin_setup_fallback"}),r.createElement("div",{className:"googlesitekit-start-setup-wrap"},r.createElement(y.a,{className:"googlesitekit-start-setup",href:h,onClick:A,disabled:!t},Object(p.__)("Sign in with Google","google-site-kit")),n,!s&&u&&t&&r.createElement(_.a,null)))}))))))))))))}}).call(this,n(14),n(1))},757:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M170.78 167.21c11.36-5.5 21.2 1.59 22.73 7",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7}),o=r.createElement("ellipse",{cx:292.73,cy:307.44,rx:252.51,ry:10.01,fill:"#F1F3F4"}),c=r.createElement("path",{d:"M93.23 212.44c-6 6.78-17 9.12-25.62 8.24-14.77-1.52-23-11-28.38-24",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7}),s=r.createElement("path",{d:"M93.23 212.44a24.66 24.66 0 01-11.81 7",stroke:"#1A73E8",strokeLinejoin:"round",strokeWidth:7}),l=r.createElement("path",{d:"M125.33 206.44L112.12 242a60 60 0 00.12 42.15l11.09 21.34h-14.22M125.33 206.44l-9.55 25.67M146.34 216.44v89h13.23M125.33 206.44a72.1 72.1 0 00-5.25 13.5M146.34 216.44v7",stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:7}),u=r.createElement("path",{d:"M142.65 219.64a61.5 61.5 0 01-80.49-33l113.46-47.52a61.51 61.51 0 01-32.97 80.52z",fill:"#1A73E8"}),d=r.createElement("path",{d:"M146.93 202c7.74-4.34 12.25-12.92 12.66-22.39l-43.54 17.79",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),f=r.createElement("path",{d:"M385.07 137.93c18 7.48 43.08 2.83 56-12.14 11.22-13 11.51-31.12 6.34-46.75M322.39 152.05c-24.41 12-41.12 72.46-24.79 98M365.34 177.13c2.77 13.29 5.23 29.83 9.9 45.42",stroke:"#FBBC04",strokeLinejoin:"round",strokeWidth:7}),p=r.createElement("path",{d:"M366 239.9l3.21 28.92a29.93 29.93 0 01-3.14 17L356 305.44h14.22M341.55 234.9v70.54h-13.23",stroke:"#F29900",strokeLinejoin:"round",strokeWidth:7}),g=r.createElement("path",{stroke:"#EA8600",strokeLinejoin:"round",strokeWidth:7,d:"M366.02 239.9l1.16 10.44M341.55 234.9v15.44"}),m=r.createElement("path",{fill:"#F9AB00",d:"M396.25 159.92l3.18-81.94-81.94-3.17-3.18 81.94-3.18 81.94 81.95 3.18 3.17-81.95z"}),h=r.createElement("path",{d:"M335.08 118.92c5 15.13 20.44 24.7 38.06 14.51M340 115c-2.94 3.32-5.56 4.45-11.13 5.07",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),v=r.createElement("path",{d:"M326.51 226.26c9.21 1.09 46.63 9.81 36.62-24",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7}),b=r.createElement("path",{d:"M255.19 243.91c-1.95 22.25-1.06 43.25 6 61.53H277M227.09 243.91c-2 21.75-.54 42.43 6 61.53h-14.62",stroke:"#188038",strokeLinejoin:"round",strokeWidth:7}),k=r.createElement("path",{d:"M255.19 243.91a212.54 212.54 0 00-.86 22.78M227.09 243.91q-.75 8.16-.82 16.11",stroke:"#137333",strokeLinejoin:"round",strokeWidth:7}),y=r.createElement("path",{d:"M193.58 180c-2.07 8.2-14.68 10.84-20.68 15.6-1.52 1.21-3.64 2.28-4.66 4a5 5 0 00-.6 1.84",stroke:"#4285F4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:7}),_=r.createElement("path",{d:"M163.46 270.46c-9.77-6.25-16-20.14-13.11-31.58 2.53-9.9 14-22.34 23.45-25.13",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7}),E=r.createElement("path",{fill:"#1E8E3E",d:"M256.35 176.56l-81.51-8.96-8.96 81.52 81.51 8.96 81.52 8.96 8.96-81.51-81.52-8.97z"}),O=r.createElement("path",{d:"M221.29 221.77C234.34 238 260 245 280.76 228.31",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),S=r.createElement("path",{d:"M486.65 220.21c17.35 10.79 35.85 29.69 49.2-6.29",stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7}),j=r.createElement("path",{d:"M486.65 220.21c4.33 2.7 8.74 5.9 13.12 8.63",stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7}),w=r.createElement("path",{d:"M392.08 212.43c2.38 17.25 3.91 37.24 0 54.26",stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7}),C=r.createElement("path",{d:"M392.08 212.43c1 7.16 1.82 14.78 2.19 22.47",stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7}),N=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39l-8.54 87.05h-22.3M469.93 218.39l-8.54 87.05h20.74"}),x=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39l-3.67 37.38M469.93 218.39l-3.33 33.95"}),D=r.createElement("circle",{cx:444.5,cy:188.84,r:61.5,fill:"#D93025"}),L=r.createElement("path",{d:"M464.88 219.51c-9.5 12.78-27.2 17-40.68 1.74M430.17 219.55c-4.42-.27-7.08.79-11.45 4.29",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),R=r.createElement("path",{d:"M167.64 201.39a8.07 8.07 0 002.46 7.06c3.38 3 10.33 1.86 12-2.55"}),M=r.createElement("path",{d:"M517.93 197.07l-.44 2.26a3 3 0 00.93 2.81l4.27 3.85a6 6 0 011.53 6.75l-4.56 11.07a20.08 20.08 0 00-1.5 8.14l.31 12.64a2 2 0 001.62 1.91l2.75.54a2 2 0 002.22-1.16l5.06-11.58a20 20 0 001.68-8.11v-12a6 6 0 014-5.68l5.4-1.95a3 3 0 001.93-2.25l.44-2.26z",fill:"#80868B"}),P=r.createElement("path",{fill:"#DADCE0",d:"M520.641 183.266l25.565 5.006-2.697 13.769-25.564-5.007z"}),A=r.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M520.05 186.25l25.56 5.01M518.51 194.12l25.56 5.01"}),T=r.createElement("path",{d:"M525.462 161.77l24.446 4.787a.59.59 0 01.465.693l-4.114 21.01-25.604-5.013 4.12-21.04a.59.59 0 01.693-.466z",fill:"#5F6368"}),z=r.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M523.58 183.88l4.23-21.63M527.51 184.65l4.24-21.63M531.44 185.42l4.24-21.63M535.37 186.19l4.24-21.63M539.31 186.96l4.24-21.63M543.24 187.73l4.24-21.63"}),I=r.createElement("path",{d:"M549.45 166.49l-23.6-4.63a1 1 0 00-1.18.79l-1.35 6.89 2.56 9.24a3 3 0 004.38 1.82l8.63-4.89a6 6 0 017.33 1.1l1.84 1.95 2.18-11.1a1 1 0 00-.79-1.17z",fill:"#24C1E0"}),F=r.createElement("path",{d:"M91.3 137.33l-14.21-11.47-57 70.65a9.12 9.12 0 001.38 12.84A9.12 9.12 0 0034.33 208zm-60.91 61a5 5 0 11-7.09.76 5 5 0 017.09-.78z",fill:"#BDC1C6"}),U=r.createElement("path",{d:"M83.68 117.3l15.58 9.54 10-16.37a22.82 22.82 0 11-15.38-9.85z",fill:"#DADCE0"}),W=r.createElement("path",{fill:"#DADCE0",d:"M81.24 122.25l-6.01 5.62 16.25 9.95 5.94-5.65-16.18-9.92z"}),q=r.createElement("path",{fill:"#F8F9FA",d:"M95.68 131.1l-6.01 5.61 1.75 1.07 6-5.61-1.74-1.07zM92.07 128.89l-6.01 5.61 1.75 1.07 6-5.61-1.74-1.07zM88.46 126.67l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07zM84.85 124.46l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07zM81.24 122.25l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07z"}),B=r.createElement("path",{fill:"#BDC1C6",d:"M466.08 97.09l-4.91 2.54-33.57-70.67 4.91-2.54 33.57 70.67z"}),H=r.createElement("path",{fill:"#DADCE0",d:"M437.63 33.71l-7.57 3.92-5.62-15.68 4.63-2.4 8.56 14.16z"}),V=r.createElement("path",{d:"M466.83 105.11a7.34 7.34 0 01-10.14-3.11l-15.25-32.1 13.88-7.18 15.24 32.1a8 8 0 01-3.73 10.29z"}),K=r.createElement("path",{d:"M464.56 100.33A4 4 0 01459 98.6l-14.41-30.38 7.58-3.92 14.43 30.38a4.35 4.35 0 01-2.04 5.65z",fill:"#5F6368"}),G=r.createElement("path",{fill:"#BDC1C6",d:"M145.57 277.902l47.608-38.744 8.01 9.842-47.607 38.745z"}),$=r.createElement("path",{fill:"#9AA0A6",d:"M189.085 242.485l4.087-3.326 8.01 9.842-4.087 3.327z"}),J=r.createElement("path",{fill:"#BDC1C6",d:"M211.607 241.354l8.143 10.005-7.415 6.035-8.143-10.006z"}),Y=r.createElement("rect",{x:209.99,y:252.12,width:16.52,height:9.9,rx:1.53,transform:"rotate(140.86 218.257 257.06)",fill:"#DADCE0"}),Q=r.createElement("path",{d:"M175.87 220.73c4.56-.39 13.4-.24 24.73 4.4a14.61 14.61 0 015.8 4.3l9 11.11a1.53 1.53 0 01-.22 2.16l-10.44 8.5a1.53 1.53 0 01-2.15-.23l-8-9.81a44.24 44.24 0 01-4.69-7.16c-1.21-2.28-4.66-6.23-14.42-11.22a1.06 1.06 0 01.39-2.05z",fill:"#DADCE0"}),X=r.createElement("rect",{x:158.98,y:236.29,width:3.47,height:74.9,rx:1.73,transform:"rotate(50.86 160.713 273.711)",fill:"#BDC1C6"}),Z=r.createElement("path",{d:"M166.85 260.56l-38.79 31.57a6.34 6.34 0 008 9.84l38.79-31.57z",fill:"#5F6368"}),ee=r.createElement("path",{d:"M163.46 270.46c-9.77-6.25-16-20.14-13.11-31.58",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7});t.a=function SvgWelcome(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,p,g,m,h,v,b,k,y,_,E,O,S,j,w,C,N,x,D,L,R,M,P,A,T,z,I,F,U,W,q,B,H,V,K,G,$,J,Y,Q,X,Z,ee)}},758:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(33),l=n.n(s),u=n(34),d=n.n(u),f=n(55),p=n.n(f),g=n(43),m=n.n(g),h=n(44),v=n.n(h),b=n(29),k=n.n(b),y=n(18),_=n(2),E=n(1),O=n(778),S=n(5),j=n.n(S),w=n(15),C=n(190),N=n(24),x=n(230),D=n(62),L=n(9),R=n(759),M=n(776),P=n(191);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var T=j.a.withSelect,z=function(t){m()(SetupUsingGCP,t);var n,a=A(SetupUsingGCP);function SetupUsingGCP(t){var n;l()(this,SetupUsingGCP),n=a.call(this,t);var r=e._googlesitekitLegacyData.admin.connectURL,i=e._googlesitekitLegacyData.setup,o=i.isAuthenticated,c=i.hasSearchConsoleProperty,s=i.isSiteKitConnected,u=i.isVerified,d=i.needReauthenticate,f=e._googlesitekitLegacyData.permissions.canSetup;return n.state={canSetup:f,isAuthenticated:o,isVerified:u,needReauthenticate:d,hasSearchConsoleProperty:c,hasSearchConsolePropertyFromTheStart:c,connectURL:r,errorMsg:"",isSiteKitConnected:s,completeSetup:!1},n.siteConnectedSetup=n.siteConnectedSetup.bind(p()(n)),n.siteVerificationSetup=n.siteVerificationSetup.bind(p()(n)),n.searchConsoleSetup=n.searchConsoleSetup.bind(p()(n)),n.resetAndRestart=n.resetAndRestart.bind(p()(n)),n.completeSetup=n.completeSetup.bind(p()(n)),n.setErrorMessage=n.setErrorMessage.bind(p()(n)),n}return d()(SetupUsingGCP,[{key:"resetAndRestart",value:(n=c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.c.set(D.a,"site","reset");case 2:Object(L.b)(),this.setState({isSiteKitConnected:!1,isAuthenticated:!1,isVerified:!1,hasSearchConsoleProperty:!1,completeSetup:!1,errorMsg:""});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"completeSetup",value:function(){this.setState({completeSetup:!0})}},{key:"siteConnectedSetup",value:function(e){this.setState({isSiteKitConnected:e})}},{key:"siteVerificationSetup",value:function(e){this.setState({isVerified:e})}},{key:"searchConsoleSetup",value:function(e){this.setState({hasSearchConsoleProperty:e})}},{key:"isSetupFinished",value:function(){var e=this.state,t=e.isSiteKitConnected,n=e.isAuthenticated,r=e.isVerified,a=e.hasSearchConsoleProperty,i=e.completeSetup;return t&&n&&r&&a&&i}},{key:"setErrorMessage",value:function(e){this.setState({errorMsg:e})}},{key:"getApplicableSteps",value:function(){var e,t=R.a,n=Object.keys(t);for(e=0;e<n.length;e++)t[n[e]].isApplicable(this.state)||delete t[n[e]];return t}},{key:"currentStep",value:function(e){var t,n=Object.keys(e);for(t=0;t<n.length-1;t++)if(!e[n[t]].isCompleted(this.state))return n[t];return n[t]}},{key:"stepStatus",value:function(e,t){return e[t].isCompleted(this.state)?"completed":t===this.currentStep(e)?"inprogress":""}},{key:"render",value:function(){var t=this,n=this.state,a=n.canSetup,o=n.isAuthenticated,s=n.isVerified,l=n.needReauthenticate,u=n.hasSearchConsoleProperty,d=n.connectURL,f=n.isSiteKitConnected,p=this.props.redirectURL;this.isSetupFinished()&&Object(y.delay)((function(){e.location.replace(p)}),500,"later");var g=this.getApplicableSteps(),m=this.currentStep(g),h=g[m].Component,v=r.createElement(h,{siteConnectedSetup:this.siteConnectedSetup,connectURL:d,siteVerificationSetup:this.siteVerificationSetup,searchConsoleSetup:this.searchConsoleSetup,completeSetup:this.completeSetup,isSiteKitConnected:f,isAuthenticated:o,isVerified:s,needReauthenticate:l,hasSearchConsoleProperty:u,setErrorMessage:this.setErrorMessage,resetAndRestart:g.clientCredentials?this.resetAndRestart:void 0}),b=a,k=!b&&!o;return r.createElement(E.Fragment,null,r.createElement(C.a,null,r.createElement(P.a,null)),r.createElement("div",{className:"googlesitekit-wizard"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement(x.a,null,r.createElement("section",{className:"googlesitekit-wizard-progress"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},b&&r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("div",{className:"googlesitekit-wizard-progress__steps"},Object.keys(g).map((function(e,n){return r.createElement(M.a,{key:g[e].title,currentStep:m===e,title:g[e].title,step:n+1,status:t.stepStatus(g,e),warning:g[e].warning,error:g[e].error,stepKey:e})})))))),k&&r.createElement("div",{className:"googlesitekit-setup__footer"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("h1",{className:"googlesitekit-setup__title"},Object(_.__)("Authenticate Site Kit","google-site-kit")),r.createElement("p",{className:"googlesitekit-setup__description"},Object(_.__)("Please sign into your Google account to begin.","google-site-kit")),r.createElement(N.a,{href:"#",onClick:c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.v)("plugin_setup","signin_with_google");case 2:document.location=d;case 3:case"end":return e.stop()}}),e)})))},Object(_.__)("Sign in with Google","google-site-kit"))))))),b&&v))))))}}]),SetupUsingGCP}(E.Component);t.a=Object(O.a)(T((function(e){return{redirectURL:e(w.c).getAdminURL("googlesitekit-dashboard",{notification:"authentication_success"})}})))(z)}).call(this,n(14),n(1))},759:function(e,t,n){"use strict";var r=n(2),a=n(760),i=n(761),o=n(763),c=n(764),s={authentication:{title:Object(r.__)("Authenticate","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&!e.needReauthenticate},Component:a.a},verification:{title:Object(r.__)("Verify URL","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified},Component:i.a},seachConsoleProperty:{title:Object(r.__)("Connect Search Console","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty},Component:o.a},completeSetup:{title:Object(r._x)("Finish","complete module setup","google-site-kit"),required:!1,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty},Component:c.a}};t.a=s},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,l,u,d,f,p,g,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(p=f.totals)||void 0===p||null===(g=p[0])||void 0===g||null===(m=g.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},760:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(33),s=n.n(c),l=n(34),u=n.n(l),d=n(43),f=n.n(d),p=n(44),g=n.n(p),m=n(29),h=n.n(m),v=n(0),b=n.n(v),k=n(2),y=n(1),_=n(9),E=n(24),O=n(21),S=n(301);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var a=h()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var w=function(t){f()(WizardStepAuthentication,t);var n=j(WizardStepAuthentication);function WizardStepAuthentication(){return s()(this,WizardStepAuthentication),n.apply(this,arguments)}return u()(WizardStepAuthentication,[{key:"render",value:function(){var t=this.props,n=t.connectURL,r=t.needReauthenticate,i=t.resetAndRestart;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--two"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(k.__)("Authenticate with Google","google-site-kit")),e.createElement("p",null,Object(k.__)("Please sign into your Google account to begin.","google-site-kit")),r&&e.createElement("p",{className:"googlesitekit-error-text"},Object(k.__)("You did not grant access to one or more of the requested scopes. Please grant all scopes that you are prompted for.","google-site-kit")),e.createElement("p",null,e.createElement(E.a,{onClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.v)("plugin_setup","signin_with_google");case 2:document.location=n;case 3:case"end":return e.stop()}}),e)})))},Object(k.__)("Sign in with Google","google-site-kit")),i&&e.createElement(O.a,{className:"googlesitekit-wizard-step__back",onClick:i},Object(k.__)("Back","google-site-kit"))),e.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},e.createElement(S.a,{optinAction:"analytics_optin_setup_fallback"}))))))}}]),WizardStepAuthentication}(y.Component);w.propTypes={connectURL:b.a.string.isRequired,resetAndRestart:b.a.func},t.a=w}).call(this,n(1))},761:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(33),o=n.n(i),c=n(34),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(0),h=n.n(m),v=n(1),b=n(762);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var y=function(t){u()(WizardStepVerification,t);var n=k(WizardStepVerification);function WizardStepVerification(){return o()(this,WizardStepVerification),n.apply(this,arguments)}return s()(WizardStepVerification,[{key:"render",value:function(){var t=!this.props.isVerified;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--three"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(b.a,a()({shouldSetup:t},this.props))))))}}]),WizardStepVerification}(v.Component);y.propTypes={siteVerificationSetup:h.a.func.isRequired},t.a=y}).call(this,n(1))},762:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(33),l=n.n(s),u=n(34),d=n.n(u),f=n(55),p=n.n(f),g=n(43),m=n.n(g),h=n(44),v=n.n(h),b=n(29),k=n.n(b),y=n(0),_=n.n(y),E=n(2),O=n(1),S=n(9),j=n(20),w=n(62),C=n(24),N=n(71);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var D=function(t){m()(SiteVerification,t);var n,a,o=x(SiteVerification);function SiteVerification(e){var t;l()(this,SiteVerification);var n=(t=o.call(this,e)).props,r=n.isAuthenticated,a=n.shouldSetup;return t.state={loading:r&&a,loadingMsg:Object(E.__)("Getting your verified sites…","google-site-kit"),siteURL:" ",selectedURL:"",errorCode:!1,errorMsg:""},t.onProceed=t.onProceed.bind(p()(t)),t}return d()(SiteVerification,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup;t&&n&&this.requestSitePropertyList()}},{key:"requestSitePropertyList",value:function(){var t=this,n=this.props.setErrorMessage;c()(i.a.mark((function r(){var a,o,c,s,l;return i.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,w.c.get(w.b,"site-verification","verification");case 3:if(a=r.sent,o=a.verified,c=a.identifier,!o){r.next=17;break}return r.next=9,Object(S.v)("verification_setup","verification_check_true");case 9:return r.next=11,t.insertSiteVerification(c);case 11:if(!0!==r.sent.verified){r.next=15;break}return t.props.siteVerificationSetup(!0),r.abrupt("return",!0);case 15:r.next=19;break;case 17:return r.next=19,Object(S.v)("verification_setup","verification_check_false");case 19:t.setState({loading:!1,siteURL:c}),r.next=28;break;case 22:r.prev=22,r.t0=r.catch(0),s=r.t0.message,Object(S.x)(r.t0.message)&&(l=JSON.parse(r.t0.message),s=l.error.message||r.t0.message),n(s),t.setState({loading:!1,errorCode:r.t0.code,errorMsg:s,siteURL:e._googlesitekitLegacyData.admin.siteURL});case 28:case"end":return r.stop()}}),r,null,[[0,22]])})))()}},{key:"insertSiteVerification",value:(a=c()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w.c.set(w.b,"site-verification","verification",{siteURL:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"onProceed",value:(n=c()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.props.setErrorMessage,r=this.state.siteURL?this.state.siteURL:e._googlesitekitLegacyData.admin.siteURL,n(""),this.setState({loading:!0,loadingMsg:Object(E.__)("Verifying…","google-site-kit"),errorCode:!1,errorMsg:""}),t.prev=4,t.next=7,this.insertSiteVerification(r);case 7:!0===t.sent.verified&&(Object(S.v)("verification_setup","verification_insert_tag"),this.props.siteVerificationSetup(!0)),t.next=17;break;case 11:t.prev=11,t.t0=t.catch(4),a=t.t0.message,Object(S.x)(t.t0.message)&&(o=JSON.parse(t.t0.message),a=o.error.message||t.t0.message),n(a),this.setState({loading:!1,errorCode:t.t0.code,errorMsg:a});case 17:case"end":return t.stop()}}),t,this,[[4,11]])}))),function(){return n.apply(this,arguments)})},{key:"renderForm",value:function(){var e=this.state,t=e.loading,n=e.loadingMsg,a=e.siteURL,i=r.createElement(O.Fragment,null,n&&r.createElement("p",null,n),r.createElement(N.a,null));return t?i:r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-wizard-step__inputs"},r.createElement(j.n,{label:Object(E.__)("Website Address","google-site-kit"),name:"siteProperty",floatingLabelClassName:"mdc-floating-label--float-above",outlined:!0,disabled:!0},r.createElement(j.d,{value:a}))),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(C.a,{onClick:this.onProceed},Object(E.__)("Continue","google-site-kit"))))}},{key:"render",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup,a=this.state.errorMsg;return n?r.createElement(O.Fragment,null,r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(E.__)("Verify URL","google-site-kit")),r.createElement("p",{className:"googlesitekit-wizard-step__text"},Object(E.__)("We will need to verify your URL for Site Kit.","google-site-kit")),a&&0<a.length&&r.createElement("p",{className:"googlesitekit-error-text"},a),t&&this.renderForm()):SiteVerification.renderSetupDone()}}],[{key:"renderSetupDone",value:function(){return r.createElement(O.Fragment,null,r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(E.__)("Verify URL","google-site-kit")),r.createElement("p",{className:"googlesitekit-wizard-step__text"},Object(E.__)("Congratulations, your site has been verified!","google-site-kit")))}}]),SiteVerification}(O.Component);D.propTypes={isAuthenticated:_.a.bool.isRequired,shouldSetup:_.a.bool.isRequired,siteVerificationSetup:_.a.func.isRequired,completeSetup:_.a.func,setErrorMessage:_.a.func.isRequired},t.a=D}).call(this,n(14),n(1))},763:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(33),o=n.n(i),c=n(34),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(0),h=n.n(m),v=n(1),b=n(513);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var y=function(t){u()(WizardStepSearchConsoleProperty,t);var n=k(WizardStepSearchConsoleProperty);function WizardStepSearchConsoleProperty(){return o()(this,WizardStepSearchConsoleProperty),n.apply(this,arguments)}return s()(WizardStepSearchConsoleProperty,[{key:"render",value:function(){var t=this.props,n=t.isVerified,r=t.hasSearchConsoleProperty,i=n&&!r;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--four"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},i?e.createElement(b.a,a()({shouldSetup:i},this.props)):b.a.connected()))))}}]),WizardStepSearchConsoleProperty}(v.Component);y.propTypes={searchConsoleSetup:h.a.func.isRequired},t.a=y}).call(this,n(1))},764:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(43),l=n.n(s),u=n(44),d=n.n(u),f=n(29),p=n.n(f),g=n(0),m=n.n(g),h=n(2),v=n(1),b=n(9),k=n(24);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var _=function(t){l()(WizardStepCompleteSetup,t);var n=y(WizardStepCompleteSetup);function WizardStepCompleteSetup(t){var r;return i()(this,WizardStepCompleteSetup),r=n.call(this,t),e._googlesitekitLegacyData.setup.hasSearchConsoleProperty?Object(b.v)("plugin_setup","user_verified"):Object(b.v)("plugin_setup","site_verified"),r}return c()(WizardStepCompleteSetup,[{key:"render",value:function(){return r.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--five"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(h.__)("Congratulations!","google-site-kit")),r.createElement("p",null,Object(h.__)("You successfully completed the Site Kit setup and connected Search Console. Check the dashboard for more services to connect.","google-site-kit")),r.createElement("div",{className:"googlesitekit-wizard-step__action"},r.createElement(k.a,{id:"wizard-step-five-proceed",onClick:this.props.completeSetup},Object(h.__)("Go to Dashboard","google-site-kit")))))))}}]),WizardStepCompleteSetup}(v.Component);_.propTypes={completeSetup:m.a.func.isRequired},t.a=_}).call(this,n(14),n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},776:function(e,t,n){"use strict";var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),p=n(0),g=n.n(p),m=n(1),h=n.n(m),v=n(8),b=n.n(v);function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var y=m.createElement("g",{fill:"#FFF",fillRule:"evenodd"},m.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}));var _=function SvgExclamation(e){return m.createElement("svg",k({viewBox:"0 0 2 12"},e),y)};function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var O=m.createElement("g",{fill:"#FFF",fillRule:"evenodd"},m.createElement("path",{d:"M0 6.414L1.415 5l5.292 5.292-1.414 1.415z"}),m.createElement("path",{d:"M14.146.146l1.415 1.414L5.414 11.707 4 10.292z"}));var S=function SvgCheck(e){return m.createElement("svg",E({viewBox:"0 0 16 12"},e),O)};function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var w=function(e){s()(WizardProgressStep,e);var t=j(WizardProgressStep);function WizardProgressStep(){return a()(this,WizardProgressStep),t.apply(this,arguments)}return o()(WizardProgressStep,[{key:"render",value:function(){var e=this.props,t=e.currentStep,n=e.step,r=e.title,a=e.status,i=e.warning,o=e.error,c=e.stepKey,s=a;i?s="warning":o&&(s="error");var l=!1;switch(s){case"warning":case"error":l=h.a.createElement(_,{height:"12",width:"2"});break;case"completed":l=h.a.createElement(S,{height:"12",width:"16"})}return h.a.createElement("div",{className:b()("googlesitekit-wizard-progress-step","googlesitekit-wizard-progress-step--".concat(n),"googlesitekit-wizard-progress-step--".concat(c),{"googlesitekit-wizard-progress-step--current":t})},h.a.createElement("div",{className:"googlesitekit-wizard-progress-step__number-wrapper"},h.a.createElement("div",{className:b()("googlesitekit-wizard-progress-step__number","googlesitekit-wizard-progress-step__number--".concat(s))},h.a.createElement("span",{className:b()("googlesitekit-wizard-progress-step__number-text","googlesitekit-wizard-progress-step__number-text--".concat(s))},n),l&&h.a.createElement("span",{className:b()("googlesitekit-wizard-progress-step__number-icon","googlesitekit-wizard-progress-step__number-icon--".concat(s))},l))),h.a.createElement("p",{className:"googlesitekit-wizard-progress-step__text"},r))}}]),WizardProgressStep}(m.Component);w.propTypes={currentStep:g.a.bool.isRequired,step:g.a.number.isRequired,title:g.a.string,status:g.a.string,warning:g.a.bool,error:g.a.bool},w.defaultProps={title:"",status:"",warning:!1,error:!1,removeFirstStep:!1};t.a=w},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),s=n.n(c),l=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(t,n,r){var i=Object(l.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,l){var d,p,g,m,h,v,b,k;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(g=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(p=d.ioo)||void 0===p?void 0:p.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:g?"true":"false",dimension3:b,dimension4:"1.38.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(0),h=n.n(m),v=n(8),b=n.n(v),k=n(1),y=n(2),_=n(59),E=n(97),O=n(9);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(DataBlock,t);var n=S(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,p=t.sparkline,g=t.invertChangeColor,m="button"===s?"button":"",h=p;h&&g&&(h=Object(k.cloneElement)(p,{invertChangeColor:g}));var v=o;c&&(v="%"===c?Object(O.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.q)(o,c)),l&&(v=Object(y.sprintf)(l,v));var S=a&&Object(O.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},S)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:g})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);j.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},j.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=j}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(l),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},89:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},9:function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return S})),n.d(t,"a",(function(){return j})),n.d(t,"i",(function(){return w})),n.d(t,"x",(function(){return C})),n.d(t,"d",(function(){return N}));var r=n(6),a=n.n(r),i=n(19),o=n.n(i),c=n(108),s=n.n(c),l=n(104),u=n.n(l),d=n(40);n.d(t,"v",(function(){return d.b}));var f=n(58);n.d(t,"s",(function(){return f.a})),n.d(t,"w",(function(){return f.b}));var p=n(56);n.d(t,"u",(function(){return p.a}));var g=n(61);n.d(t,"b",(function(){return g.b})),n.d(t,"j",(function(){return g.c}));n(32);var m=n(68);n.d(t,"h",(function(){return m.a})),n.d(t,"n",(function(){return m.b})),n.d(t,"q",(function(){return m.c})),n.d(t,"r",(function(){return m.d}));var h=n(49);n.d(t,"e",(function(){return h.b}));var v=n(74);n.d(t,"o",(function(){return v.a}));var b=n(75);n.d(t,"c",(function(){return b.a}));var k=n(52);n.d(t,"t",(function(){return k.i}));var y=n(76);n.d(t,"f",(function(){return y.a})),n.d(t,"m",(function(){return y.b}));var _=n(65);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"g",(function(){return _.a})),n.d(t,"l",(function(){return _.b})),n.d(t,"p",(function(){return _.c}));var S=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},j=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!s()(n)?null:n},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,n=t.modules;return n?Object.keys(n).reduce((function(e,t){return"object"!==o()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:O(O({},e),{},a()({},t,n[t]))}),{}):{}},C=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},N=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return u()(t)}}).call(this,n(14))},90:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(243),o=n(0),c=n.n(o),s=n(1),l=n(111);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=a()(r,1)[0];return Object(i.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(l.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},92:function(e,t,n){"use strict";var r=n(101);n.d(t,"a",(function(){return r.a}));var a=n(102);n.d(t,"c",(function(){return a.a}));var i=n(103);n.d(t,"b",(function(){return i.a}))},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(16),a=n.n(r),i=n(6),o=n.n(i),c=n(3),s=n.n(c),l=n(7),u=n.n(l),d=n(5),f=n.n(d),p=n(60),g=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",g((function(t){return function(){return Object(p.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},95:function(e,t,n){"use strict";var r=n(1),a=n(37),i=Object(r.createContext)(a.a);t.a=i},959:function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(219),a=n(111),i=n(9),o=(n(280),n(159)),c=n(755),s=n(322);Object(r.a)((function(){e._googlesitekitLegacyData.admin.resetSession&&Object(i.b)();var n=document.getElementById("js-googlesitekit-dashboard-splash");n&&Object(a.render)(t.createElement(o.a,{dataAPIContext:"Splash"},t.createElement(s.a,null),t.createElement(c.a,null)),n)}))}.call(this,n(14),n(1))},97:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(146),s=n(2),l=n(21);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return e.createElement("div",{className:o()("googlesitekit-source-link",a)},Object(c.a)(Object(s.sprintf)(
34
  /* translators: %s: source link */
35
  Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:i,inherit:!0})}))}SourceLink.propTypes={name:a.a.string,href:a.a.string,className:a.a.string,external:a.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(1))},99:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(32),a=n(27),i=function(t,n,i){var o=Object(a.d)(t,n,i);Object(a.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(a.a).concat(o,"::"))&&e!=="".concat(a.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(14))}},[[959,1,0]]]);
3
  /* translators: %s: List of product names */
4
  Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.n)(n));break;case"single":l=Object(s.sprintf)(
5
  /* translators: %1$s: Product name */
6
+ Object(s.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":l=Object(s.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(s.__)("Site Kit can’t access necessary data","google-site-kit"),description:l,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(s.__)("Redo setup","google-site-kit")})}}).call(this,n(14),n(1))},238:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(5),a=n.n(r),i=n(15),o=n(39),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.a,t):null}}).call(this,n(1))},239:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),s=n.n(c),l=n(0),u=n.n(l),d=n(120),f=n(271),p=n(1),g=n(2),m=n(20),h=Object(p.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,l=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,k=t.trailingIcon,y=t["aria-label"],_=t.title,E=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),O=Object(p.useCallback)((function(e){null!==e&&m.i.attachTo(e)}),[]),S=Object(d.a)(n,O),j=i&&!h?"a":"button",w=e.createElement(j,a()({className:s()("mdc-button",l,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:S,disabled:!!h,"aria-label":function(){var e=y;if("_blank"!==v)return e;var t=Object(g._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===j?"button":void 0},E),b,r&&e.createElement("span",{className:"mdc-button__label"},r),k);return b&&(_||y)&&void 0===r?e.createElement(f.a,{title:_||y,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},w):w}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return p}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),s="googlesitekit_legacy_1.38.1_",l=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){l(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(s+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(l(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(s+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){l(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(s+t)},p=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],s=0,l=o;s<l.length;s++){var u=l[s];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},273:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Checkbox}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function Checkbox(t){var n=t.onChange,r=t.id,i=t.name,o=t.value,c=t.checked,s=t.disabled,l=t.children,u=t.tabIndex,d=t.onKeyDown;return e.createElement("div",{className:"mdc-form-field"},e.createElement("div",{className:a()("mdc-checkbox",{"mdc-checkbox--disabled":s})},e.createElement("input",{className:"mdc-checkbox__native-control",type:"checkbox",id:r,name:i,value:o,checked:c,disabled:s,onChange:n,tabIndex:u,onKeyDown:d}),e.createElement("div",{className:"mdc-checkbox__background"},e.createElement("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},e.createElement("path",{className:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),e.createElement("div",{className:"mdc-checkbox__mixedmark"}))),e.createElement("label",{htmlFor:r},l))}Checkbox.propTypes={onChange:o.a.func.isRequired,onKeyDown:o.a.func,id:o.a.string.isRequired,name:o.a.string.isRequired,value:o.a.string.isRequired,checked:o.a.bool,disabled:o.a.bool,children:o.a.node.isRequired,tabIndex:o.a.oneOfType([o.a.number,o.a.string])},Checkbox.defaultProps={checked:!1,disabled:!1,tabIndex:void 0,onKeyDown:null}}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),s=n(203),l=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,p=Object(o.j)("notification"),g=Object(i.a)(t.createElement(c.a,null)),m=Object(i.a)(t.createElement(s.a,null)),h=Object(i.a)(t.createElement(l.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",g,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==p&&"authentication_failure"!==p&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===p||"authentication_failure"===p||"user_input_success"===p?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},288:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return m}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(38),s=n.n(c),l=n(15),u=n(131),d=function(){var t=o()(a.a.mark((function t(){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.location.hostname,!["localhost","127.0.0.1"].includes(n)&&!n.match(/\.(example|invalid|localhost|test)$/)){t.next=3;break}throw u.f;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=function(e){return o()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.dispatch(l.c).checkForSetupTag();case 2:if(!t.sent.error){t.next=5;break}throw u.g;case 5:case"end":return t.stop()}}),t)})))},p=function(){var e=o()(a.a.mark((function e(){var t,n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.a.get("core","site","health-checks",void 0,{useCache:!1}).catch((function(e){if("fetch_error"===e.code)throw u.d;throw u.c}));case 2:if(null==(r=e.sent)||null===(t=r.checks)||void 0===t||null===(n=t.googleAPI)||void 0===n?void 0:n.pass){e.next=5;break}throw u.e;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(u.a).catch((function(){throw u.b}));case 2:if(e.sent.ok){e.next=5;break}throw u.b;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e._googlesitekitBaseData||{},!((r=n.wpVersion)&&r.major<5)){t.next=3;break}throw u.h;case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},301:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return OptIn}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(0),s=n.n(c),l=n(8),u=n.n(l),d=n(1),f=n(146),p=n(2),g=n(5),m=n.n(g),h=n(11),v=n(40),b=n(273),k=n(21),y=m.a.useSelect,_=m.a.useDispatch;function OptIn(t){var n=t.id,r=t.name,i=t.className,c=t.optinAction,s=y((function(e){return e(h.a).isTrackingEnabled()})),l=y((function(e){return e(h.a).isSavingTrackingEnabled()})),g=y((function(e){return e(h.a).getErrorForAction("setTrackingEnabled",[!s])})),m=_(h.a).setTrackingEnabled,E=Object(d.useCallback)(function(){var e=o()(a.a.mark((function e(t){var n,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m(!!t.target.checked);case 2:n=e.sent,r=n.response,n.error||(Object(v.a)(r.enabled),r.enabled&&Object(v.b)("tracking_plugin",c));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[c,m]);return void 0===s?null:e.createElement("div",{className:u()("googlesitekit-opt-in",i)},e.createElement(b.a,{id:n,name:r,value:"1",checked:s,disabled:l,onChange:E},e.createElement("span",null,Object(p.__)("Help us improve Site Kit by sharing anonymous usage data.","google-site-kit")," "),e.createElement("span",null,Object(f.a)(Object(p.__)("All collected data is treated in accordance with the <a>Google Privacy Policy.</a>","google-site-kit"),{a:e.createElement(k.a,{key:"link",href:"https://policies.google.com/privacy",external:!0,inherit:!0})}))),(null==g?void 0:g.message)&&e.createElement("div",{className:"googlesitekit-error-text"},null==g?void 0:g.message))}OptIn.propTypes={id:s.a.string,name:s.a.string,className:s.a.string,optinAction:s.a.string},OptIn.defaultProps={id:"googlesitekit-opt-in",name:"optIn"}}).call(this,n(1))},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},l=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=s("sessionStorage")?e.sessionStorage:s("localStorage")?e.localStorage:new l),r}}).call(this,n(14))},322:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(8),h=n.n(m),v=n(111),b=n(1),k=n(2),y=n(31),_=n(126),E=n(100);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var S=function(t){u()(NotificationCounter,t);var n=O(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(s()(t)),t.handleDecrement=t.handleDecrement.bind(s()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(y.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(y.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name");if(!t)return null;var n=Object(k.sprintf)(
7
  /* translators: %d: the number of notifications */
8
  Object(k._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),r=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(E.a,null,n));return Object(v.createPortal)(r,t)}}]),NotificationCounter}(b.Component);t.a=S}).call(this,n(1))},323:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),p=n(0),g=n.n(p),m=n(8),h=n.n(m),v=n(1),b=n(21);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(t){s()(LayoutHeader,t);var n=k(LayoutHeader);function LayoutHeader(){return a()(this,LayoutHeader),n.apply(this,arguments)}return o()(LayoutHeader,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.ctaLabel,a=t.ctaLink;return e.createElement("header",{className:"googlesitekit-layout__header"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:h()("mdc-layout-grid__cell","mdc-layout-grid__cell--align-middle","mdc-layout-grid__cell--span-4-phone",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a,"mdc-layout-grid__cell--span-8-tablet":!a})},e.createElement("h3",{className:"googlesitekit-subheading-1 googlesitekit-layout__header-title"},n)),a&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-6-desktop mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--align-middle mdc-layout-grid__cell--align-right-tablet "},e.createElement(b.a,{href:a,external:!0,inherit:!0},r)))))}}]),LayoutHeader}(v.Component);y.propTypes={title:g.a.string,ctaLabel:g.a.string,ctaLink:g.a.string},y.defaultProps={title:"",ctaLabel:"",ctaLink:""},t.a=y}).call(this,n(1))},324:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),p=n(0),g=n.n(p),m=n(1),h=n(97);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var b=function(t){s()(LayoutFooter,t);var n=v(LayoutFooter);function LayoutFooter(){return a()(this,LayoutFooter),n.apply(this,arguments)}return o()(LayoutFooter,[{key:"render",value:function(){var t=this.props,n=t.ctaLabel,r=t.ctaLink,a=t.footerContent;return e.createElement("footer",{className:"googlesitekit-layout__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r&&n&&e.createElement(h.a,{className:"googlesitekit-data-block__source",name:n,href:r,external:!0}),a))))}}]),LayoutFooter}(m.Component);b.propTypes={ctaLabel:g.a.string,ctaLink:g.a.string},t.a=b}).call(this,n(1))},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},38:function(e,t){e.exports=googlesitekit.api},383:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityChecks}));var r=n(16),a=n.n(r),i=n(2),o=n(0),c=n.n(o),s=n(5),l=n.n(s),u=n(148),d=n(71),f=n(384),p=n(385),g=n(15),m=n(288),h=l.a.useRegistry;function CompatibilityChecks(t){var n=t.children,r=a()(t,["children"]),o=h(),c=Object(f.a)(function(e){return e.select(g.c).isConnected()?[]:[m.c,m.b,Object(m.e)(e),m.a,m.d]}(o)),s=c.complete,l=c.error,v=l&&e.createElement("div",{className:"googlesitekit-setup-compat mdc-layout-grid mdc-layout-grid--align-left"},e.createElement("div",{className:"googlesitekit-setup__warning"},e.createElement(u.a,null),e.createElement("div",{className:"googlesitekit-heading-4"},Object(i.__)("Your site may not be ready for Site Kit","google-site-kit"))),e.createElement(p.a,{error:l}));return n({props:r,complete:s,error:l,inProgressFeedback:!s&&e.createElement("div",{className:"googlesitekit-margin-left-1rem googlesitekit-align-self-center"},e.createElement("small",null,Object(i.__)("Checking Compatibility…","google-site-kit")),e.createElement(d.a,{small:!0,compress:!0})),ctaFeedback:v})}CompatibilityChecks.propTypes={children:c.a.func.isRequired}}).call(this,n(1))},384:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(13),s=n.n(c),l=n(156),u=n(1);function d(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){var t=Object(u.useState)(e),n=s()(t,1)[0],r=Object(u.useState)(!(null==n?void 0:n.length)),i=s()(r,2),c=i[0],f=i[1],p=Object(u.useState)(void 0),g=s()(p,2),m=g[0],h=g[1];return Object(l.a)((function(){c||function(){var e=o()(a.a.mark((function e(){var t,r,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=d(n),e.prev=2,t.s();case 4:if((r=t.n()).done){e.next=10;break}return i=r.value,e.next=8,i();case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:e.next=23;break;case 20:e.prev=20,e.t1=e.catch(0),h(e.t1);case 23:f(!0);case 24:case"end":return e.stop()}}),e,null,[[0,20],[2,12,15,18]])})));return function(){return e.apply(this,arguments)}}()()})),{complete:c,error:m}}},385:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return CompatibilityErrorNotice}));var r=n(17),a=n.n(r),i=n(2),o=n(5),c=n.n(o),s=n(58),l=n(21),u=n(15),d=n(131),f=c.a.useSelect;function CompatibilityErrorNotice(t){var n=t.error,r=f((function(e){return e(u.c).getDeveloperPluginState()}))||{},o=r.installed;switch(n){case d.c:return e.createElement("p",null,Object(i.__)("Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.","google-site-kit"));case d.f:case d.d:return e.createElement("p",null,!o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment. If so, you’ll need to install a helper plugin and verify your production site in Search Console.","google-site-kit")),o&&e.createElement("span",null,Object(i.__)("Looks like this may be a staging environment and you already have the helper plugin. Before you can use Site Kit, please make sure you’ve provided the necessary credentials in the Authentication section and verified your production site in Search Console.","google-site-kit"))," ",e.createElement(l.a,a()({},function(e){var t=e.installed,n=e.active,r=e.installURL,a=e.activateURL,o=e.configureURL;return!t&&r?{"aria-label":Object(i.__)("Install the helper plugin","google-site-kit"),children:Object(i.__)("Install","google-site-kit"),href:r,external:!1}:t&&!n&&a?{"aria-label":Object(i.__)("Activate the helper plugin","google-site-kit"),children:Object(i.__)("Activate","google-site-kit"),href:a,external:!1}:t&&n&&o?{"aria-label":Object(i.__)("Configure the helper plugin","google-site-kit"),children:Object(i.__)("Configure","google-site-kit"),href:o,external:!1}:{"aria-label":Object(i.__)("Learn how to install and use the helper plugin","google-site-kit"),children:Object(i.__)("Learn how","google-site-kit"),href:"https://sitekit.withgoogle.com/documentation/using-site-kit-on-a-staging-environment/",external:!0}}(r),{inherit:!0})));case d.g:return e.createElement("p",null,Object(i.__)("Looks like you may be using a caching plugin which could interfere with setup. Please deactivate any caching plugins before setting up Site Kit. You may reactivate them once setup has been completed.","google-site-kit"));case d.e:return e.createElement("p",{dangerouslySetInnerHTML:Object(s.a)("\n\t\t\t\t\t\t".concat(Object(i.__)("Looks like your site is having a technical issue with requesting data from Google services.","google-site-kit"),"\n\t\t\t\t\t\t<br/>\n\t\t\t\t\t\t").concat(Object(i.sprintf)(
9
  /* translators: %1$s: Support Forum URL, %2$s: Error message */
15
  /* translators: %s: Search Console property domain name */
16
  t=Object(E.sprintf)(Object(E.__)("%s (domain property)","google-site-kit"),t.replace(/^sc-domain:/,""))),{label:t,value:e.siteURL}}));return r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-setup-module__inputs"},r.createElement(C.m,{enhanced:!0,name:"siteProperty",label:Object(E.__)("Choose URL","google-site-kit"),outlined:!0,onEnhancedChange:this.handleURLSelect,options:a,value:n})),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(N.a,{onClick:this.submitPropertyEventHandler},Object(E.__)("Continue","google-site-kit"))))}},{key:"noSiteForm",value:function(){var e=this.state.siteURL;return r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-setup-module__inputs"},r.createElement(C.n,{label:Object(E.__)("Website Address","google-site-kit"),name:"siteProperty",floatingLabelClassName:"mdc-floating-label--float-above",outlined:!0,disabled:!0},r.createElement(C.d,{value:e}))),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(N.a,{onClick:this.submitPropertyEventHandler},Object(E.__)("Continue","google-site-kit"))))}},{key:"renderForm",value:function(){var e=this.state,t=e.loading,n=e.sites;return t?r.createElement(O.Fragment,null,r.createElement("p",null,Object(E.__)("We’re locating your Search Console account.","google-site-kit")),r.createElement(w.a,null)):0===n.length?this.noSiteForm():this.matchedForm()}},{key:"render",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup,a=this.state,i=a.errorMsg,o=a.connected;return!n||o?SearchConsole.connected():r.createElement("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console"},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-setup-module__title "},Object(E._x)("Search Console","Service name","google-site-kit")),i&&0<i.length&&r.createElement("p",{className:"googlesitekit-error-text"},i),t&&n&&this.renderForm())}}],[{key:"connected",value:function(){return r.createElement("section",{className:"googlesitekit-setup-module googlesitekit-setup-module--search-console"},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-setup-module__title "},Object(E._x)("Search Console","Service name","google-site-kit")),r.createElement("p",{className:"googlesitekit-setup-module__text--no-margin"},Object(E.__)("Your Search Console is set up with Site Kit.","google-site-kit")))}}]),SearchConsole}(O.Component);D.propTypes={isAuthenticated:_.a.bool.isRequired,shouldSetup:_.a.bool.isRequired,searchConsoleSetup:_.a.func.isRequired,setErrorMessage:_.a.func.isRequired},t.a=D}).call(this,n(14),n(1))},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),s=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},l=n(13),u=n.n(l),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),s(n)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function m(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
17
  /* translators: %s: number of days */
18
+ Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l,u="googlesitekit_".concat("1.38.1","_"),d=["sessionStorage","localStorage"],f=[].concat(d),p=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),g=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,s;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==l){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(s=o.value,!l){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(s);case 12:if(!t.sent){t.next=14;break}l=e[s];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===l&&(l=null);case 25:return t.abrupt("return",l);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),m=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,s=i.value,l=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:s,isError:l});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,s,l,d,f,p,m=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m.length>2&&void 0!==m[2]?m[2]:{},o=i.ttl,c=void 0===o?3600:o,s=i.timestamp,l=void 0===s?Math.round(Date.now()/1e3):s,d=i.isError,f=void 0!==d&&d,t.next=3,g();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(u).concat(n),JSON.stringify({timestamp:l,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var s=document.createElement("span");return s.setAttribute("class","screen-reader-text"),s.textContent=Object(i.sprintf)(
19
  /* translators: %d is the number of notifications */
20
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(s),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},l=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var s=a()(r.value,2),l=s[0],d=s[1];i[l]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),s=n(31),l=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var p=n(99),g=n(138),m={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var p=[],g=[],m={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?g.push(e):m[e.key]?m[e.key].push(t):(m[e.key]=[t],p.push(e))}));var v=10,b=p.slice(0,v),k=p.slice(v);if(k=k.concat(g),0!==b.length||0!==k.length){0<k.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(k,!0)}),50):this.maxRequests=10;var y=null!==Object(l.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:y||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(m[i]){if(Object(u.d)(o)){var c=m[i][0],l=r[c],f=l.datapoint,p=l.type,g=l.identifier;t.handleWPError({method:"GET",datapoint:f,type:p,identifier:g,error:o})}else Object(d.f)(i,o);m[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===k.length&&Object(s.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(s.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(g.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:p.a,collectModuleData:function(e,t){var n=Object(s.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(d.d)(e,t,n,a);if(!i){var l=Object(d.c)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(s,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return m.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",m.collectModuleData.bind(m)),t.c=m},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return O})),n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return j}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),s=n.n(c),l=n(16),u=n.n(l),d=n(18),f=n(64),p=n.n(f),g=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?O(a,h(h({},o),{},{unit:"second"})):Object(g.sprintf)(
21
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
30
  Object(g.__)("%sK","google-site-kit"),O(k(e),e%10==0?{}:t)):O(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?y(e):"duration"===i?v(e,t):O(e,n)},E=p()(console.warn),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},s=["signDisplay","compactDisplay"],l={},d=0,f=Object.entries(i);d<f.length;d++){var p=a()(f[d],2),g=p[0],m=p[1];c[g]&&m===c[g]||(s.includes(g)||(l[g]=m))}try{return new Intl.NumberFormat(r,l).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?j():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(r,{style:i,type:c});return s.format(e)}
31
  /* translators: used between list items, there is a space after the comma. */var l=Object(g.__)(", ","google-site-kit");return e.join(l)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},71:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ProgressBar}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ProgressBar(t){var n=t.className,r=t.small,a=t.compress,i=t.indeterminate,c=t.height,s=t.progress,l=void 0!==c?Math.round(c/2):void 0,u=s?"scaleX(".concat(s,")"):void 0;return e.createElement("div",{role:"progressbar",style:{marginTop:l,marginBottom:l},className:o()("mdc-linear-progress",n,{"mdc-linear-progress--indeterminate":i,"mdc-linear-progress--small":r,"mdc-linear-progress--compress":a})},e.createElement("div",{className:"mdc-linear-progress__buffering-dots"}),e.createElement("div",{className:"mdc-linear-progress__buffer"}),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar",style:{transform:u}},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})),e.createElement("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},e.createElement("span",{className:"mdc-linear-progress__bar-inner"})))}ProgressBar.propTypes={className:a.a.string,small:a.a.bool,compress:a.a.bool,indeterminate:a.a.bool,progress:a.a.number,height:a.a.number},ProgressBar.defaultProps={className:"",small:!1,compress:!1,indeterminate:!0,progress:0}}).call(this,n(1))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},755:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardSplashApp}));var r=n(5),a=n.n(r),i=n(15),o=n(756),c=n(758),s=a.a.useSelect;function DashboardSplashApp(){var t=s((function(e){return e(i.c).isUsingProxy()}));return!0===t?e.createElement(o.a,null):!1===t?e.createElement(c.a,null):null}}).call(this,n(1))},756:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(504),l=n.n(s),u=n(8),d=n.n(u),f=n(1),p=n(2),g=n(403),m=n(5),h=n.n(m),v=n(757),b=n(9),k=n(190),y=n(24),_=n(386),E=n(230),O=n(39),S=n(301),j=n(383),w=n(15),C=n(11),N=n(41),x=n(114),D=n(191),L=h.a.useSelect,R=h.a.useDispatch;t.a=function SetupUsingProxy(){var t,n,a=Object(x.a)("serviceSetupV2"),o=L((function(e){var t=e(w.c),n=e(C.a);return{isSecondAdmin:t.hasConnectedAdmins(),isResettable:t.isResettable(),siteURL:t.getReferenceSiteURL(),proxySetupURL:t.getProxySetupURL(),disconnectedReason:n.getDisconnectedReason()}})),s=o.isSecondAdmin,u=o.isResettable,m=o.siteURL,h=o.proxySetupURL,M=o.disconnectedReason,P=R(N.a).navigateTo,A=Object(f.useCallback)(function(){var e=c()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,Object(b.v)("plugin_setup","proxy_start_setup_landing_page");case 3:P(h);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[h,P]),T=e._googlesitekitLegacyData.setup.errorMessage;return"revoked"===Object(g.a)(location.href,"googlesitekit_context")?(t=Object(p.sprintf)(
32
  /* translators: %s is the site's hostname. (e.g. example.com) */
33
+ Object(p.__)("You revoked access to Site Kit for %s","google-site-kit"),l.a.toUnicode(new URL(m).hostname)),n=Object(p.__)('Site Kit will no longer have access to your account. If you’d like to reconnect Site Kit, click "Sign in with Google" below to generate new credentials.',"google-site-kit")):s?(t=Object(p.__)("Connect your Google account to Site Kit","google-site-kit"),n=Object(p.__)("Site Kit has already been configured by another admin of this site. To use Site Kit as well, sign in with your Google account which has access to Google services for this site (e.g. Google Analytics). Once you complete the 3 setup steps, you’ll see stats from all activated Google products.","google-site-kit")):C.b===M?(t=Object(p.__)("Reconnect Site Kit","google-site-kit"),n=Object(p.__)("Looks like the URL of your site has changed. In order to continue using Site Kit, you'll need to reconnect, so that your plugin settings are updated with the new URL.","google-site-kit")):(t=Object(p.__)("Set up Site Kit","google-site-kit"),n=Object(p.__)("Get insights on how people find your site, as well as how to improve and monetize your site’s content, directly in your WordPress dashboard.","google-site-kit")),r.createElement(f.Fragment,null,r.createElement(k.a,null,r.createElement(D.a,null)),T&&r.createElement(O.a,{id:"setup_error",type:"win-error",title:Object(p.__)("Oops! There was a problem during set up. Please try again.","google-site-kit"),description:T,isDismissable:!1}),"reset_success"===Object(g.a)(location.href,"notification")&&r.createElement(O.a,{id:"reset_success",title:Object(p.__)("Site Kit by Google was successfully reset.","google-site-kit"),isDismissable:!1}),r.createElement("div",{className:"googlesitekit-setup"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-12"},r.createElement(E.a,null,r.createElement("section",{className:"googlesitekit-setup__splash"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:d()("mdc-layout-grid__inner",{"googlesitekit-setup__content":a})},a&&r.createElement("div",{className:" googlesitekit-setup__icon mdc-layout-grid__cell mdc-layout-grid__cell--span-12-tablet mdc-layout-grid__cell--span-6-desktop "},r.createElement(v.a,{width:"570",height:"336"})),r.createElement("div",{className:d()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12-tablet",{"mdc-layout-grid__cell--span-6-desktop":a,"mdc-layout-grid__cell--span-12-desktop":!a})},r.createElement("h1",{className:"googlesitekit-setup__title"},t),r.createElement("p",{className:"googlesitekit-setup__description"},n),r.createElement(j.a,null,(function(e){var t=e.complete,n=e.inProgressFeedback,a=e.ctaFeedback;return r.createElement(f.Fragment,null,a,r.createElement(S.a,{optinAction:"analytics_optin_setup_fallback"}),r.createElement("div",{className:"googlesitekit-start-setup-wrap"},r.createElement(y.a,{className:"googlesitekit-start-setup",href:h,onClick:A,disabled:!t},Object(p.__)("Sign in with Google","google-site-kit")),n,!s&&u&&t&&r.createElement(_.a,null)))}))))))))))))}}).call(this,n(14),n(1))},757:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M170.78 167.21c11.36-5.5 21.2 1.59 22.73 7",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7}),o=r.createElement("ellipse",{cx:292.73,cy:307.44,rx:252.51,ry:10.01,fill:"#F1F3F4"}),c=r.createElement("path",{d:"M93.23 212.44c-6 6.78-17 9.12-25.62 8.24-14.77-1.52-23-11-28.38-24",stroke:"#4285F4",strokeLinejoin:"round",strokeWidth:7}),s=r.createElement("path",{d:"M93.23 212.44a24.66 24.66 0 01-11.81 7",stroke:"#1A73E8",strokeLinejoin:"round",strokeWidth:7}),l=r.createElement("path",{d:"M125.33 206.44L112.12 242a60 60 0 00.12 42.15l11.09 21.34h-14.22M125.33 206.44l-9.55 25.67M146.34 216.44v89h13.23M125.33 206.44a72.1 72.1 0 00-5.25 13.5M146.34 216.44v7",stroke:"#1967D2",strokeLinejoin:"round",strokeWidth:7}),u=r.createElement("path",{d:"M142.65 219.64a61.5 61.5 0 01-80.49-33l113.46-47.52a61.51 61.51 0 01-32.97 80.52z",fill:"#1A73E8"}),d=r.createElement("path",{d:"M146.93 202c7.74-4.34 12.25-12.92 12.66-22.39l-43.54 17.79",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),f=r.createElement("path",{d:"M385.07 137.93c18 7.48 43.08 2.83 56-12.14 11.22-13 11.51-31.12 6.34-46.75M322.39 152.05c-24.41 12-41.12 72.46-24.79 98M365.34 177.13c2.77 13.29 5.23 29.83 9.9 45.42",stroke:"#FBBC04",strokeLinejoin:"round",strokeWidth:7}),p=r.createElement("path",{d:"M366 239.9l3.21 28.92a29.93 29.93 0 01-3.14 17L356 305.44h14.22M341.55 234.9v70.54h-13.23",stroke:"#F29900",strokeLinejoin:"round",strokeWidth:7}),g=r.createElement("path",{stroke:"#EA8600",strokeLinejoin:"round",strokeWidth:7,d:"M366.02 239.9l1.16 10.44M341.55 234.9v15.44"}),m=r.createElement("path",{fill:"#F9AB00",d:"M396.25 159.92l3.18-81.94-81.94-3.17-3.18 81.94-3.18 81.94 81.95 3.18 3.17-81.95z"}),h=r.createElement("path",{d:"M335.08 118.92c5 15.13 20.44 24.7 38.06 14.51M340 115c-2.94 3.32-5.56 4.45-11.13 5.07",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),v=r.createElement("path",{d:"M326.51 226.26c9.21 1.09 46.63 9.81 36.62-24",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7}),b=r.createElement("path",{d:"M255.19 243.91c-1.95 22.25-1.06 43.25 6 61.53H277M227.09 243.91c-2 21.75-.54 42.43 6 61.53h-14.62",stroke:"#188038",strokeLinejoin:"round",strokeWidth:7}),k=r.createElement("path",{d:"M255.19 243.91a212.54 212.54 0 00-.86 22.78M227.09 243.91q-.75 8.16-.82 16.11",stroke:"#137333",strokeLinejoin:"round",strokeWidth:7}),y=r.createElement("path",{d:"M193.58 180c-2.07 8.2-14.68 10.84-20.68 15.6-1.52 1.21-3.64 2.28-4.66 4a5 5 0 00-.6 1.84",stroke:"#4285F4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:7}),_=r.createElement("path",{d:"M163.46 270.46c-9.77-6.25-16-20.14-13.11-31.58 2.53-9.9 14-22.34 23.45-25.13",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7}),E=r.createElement("path",{fill:"#1E8E3E",d:"M256.35 176.56l-81.51-8.96-8.96 81.52 81.51 8.96 81.52 8.96 8.96-81.51-81.52-8.97z"}),O=r.createElement("path",{d:"M221.29 221.77C234.34 238 260 245 280.76 228.31",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),S=r.createElement("path",{d:"M486.65 220.21c17.35 10.79 35.85 29.69 49.2-6.29",stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7}),j=r.createElement("path",{d:"M486.65 220.21c4.33 2.7 8.74 5.9 13.12 8.63",stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7}),w=r.createElement("path",{d:"M392.08 212.43c2.38 17.25 3.91 37.24 0 54.26",stroke:"#E94235",strokeLinejoin:"round",strokeWidth:7}),C=r.createElement("path",{d:"M392.08 212.43c1 7.16 1.82 14.78 2.19 22.47",stroke:"#D93025",strokeLinejoin:"round",strokeWidth:7}),N=r.createElement("path",{stroke:"#C5221F",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39l-8.54 87.05h-22.3M469.93 218.39l-8.54 87.05h20.74"}),x=r.createElement("path",{stroke:"#B31412",strokeLinejoin:"round",strokeWidth:7,d:"M430.17 218.39l-3.67 37.38M469.93 218.39l-3.33 33.95"}),D=r.createElement("circle",{cx:444.5,cy:188.84,r:61.5,fill:"#D93025"}),L=r.createElement("path",{d:"M464.88 219.51c-9.5 12.78-27.2 17-40.68 1.74M430.17 219.55c-4.42-.27-7.08.79-11.45 4.29",stroke:"#FFF",strokeMiterlimit:10,strokeWidth:5}),R=r.createElement("path",{d:"M167.64 201.39a8.07 8.07 0 002.46 7.06c3.38 3 10.33 1.86 12-2.55"}),M=r.createElement("path",{d:"M517.93 197.07l-.44 2.26a3 3 0 00.93 2.81l4.27 3.85a6 6 0 011.53 6.75l-4.56 11.07a20.08 20.08 0 00-1.5 8.14l.31 12.64a2 2 0 001.62 1.91l2.75.54a2 2 0 002.22-1.16l5.06-11.58a20 20 0 001.68-8.11v-12a6 6 0 014-5.68l5.4-1.95a3 3 0 001.93-2.25l.44-2.26z",fill:"#80868B"}),P=r.createElement("path",{fill:"#DADCE0",d:"M520.641 183.266l25.565 5.006-2.697 13.769-25.564-5.007z"}),A=r.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M520.05 186.25l25.56 5.01M518.51 194.12l25.56 5.01"}),T=r.createElement("path",{d:"M525.462 161.77l24.446 4.787a.59.59 0 01.465.693l-4.114 21.01-25.604-5.013 4.12-21.04a.59.59 0 01.693-.466z",fill:"#5F6368"}),z=r.createElement("path",{stroke:"#BDC1C6",strokeMiterlimit:10,strokeWidth:.44,d:"M523.58 183.88l4.23-21.63M527.51 184.65l4.24-21.63M531.44 185.42l4.24-21.63M535.37 186.19l4.24-21.63M539.31 186.96l4.24-21.63M543.24 187.73l4.24-21.63"}),I=r.createElement("path",{d:"M549.45 166.49l-23.6-4.63a1 1 0 00-1.18.79l-1.35 6.89 2.56 9.24a3 3 0 004.38 1.82l8.63-4.89a6 6 0 017.33 1.1l1.84 1.95 2.18-11.1a1 1 0 00-.79-1.17z",fill:"#24C1E0"}),F=r.createElement("path",{d:"M91.3 137.33l-14.21-11.47-57 70.65a9.12 9.12 0 001.38 12.84A9.12 9.12 0 0034.33 208zm-60.91 61a5 5 0 11-7.09.76 5 5 0 017.09-.78z",fill:"#BDC1C6"}),U=r.createElement("path",{d:"M83.68 117.3l15.58 9.54 10-16.37a22.82 22.82 0 11-15.38-9.85z",fill:"#DADCE0"}),W=r.createElement("path",{fill:"#DADCE0",d:"M81.24 122.25l-6.01 5.62 16.25 9.95 5.94-5.65-16.18-9.92z"}),q=r.createElement("path",{fill:"#F8F9FA",d:"M95.68 131.1l-6.01 5.61 1.75 1.07 6-5.61-1.74-1.07zM92.07 128.89l-6.01 5.61 1.75 1.07 6-5.61-1.74-1.07zM88.46 126.67l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07zM84.85 124.46l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07zM81.24 122.25l-6.01 5.62 1.75 1.07 6-5.62-1.74-1.07z"}),B=r.createElement("path",{fill:"#BDC1C6",d:"M466.08 97.09l-4.91 2.54-33.57-70.67 4.91-2.54 33.57 70.67z"}),H=r.createElement("path",{fill:"#DADCE0",d:"M437.63 33.71l-7.57 3.92-5.62-15.68 4.63-2.4 8.56 14.16z"}),V=r.createElement("path",{d:"M466.83 105.11a7.34 7.34 0 01-10.14-3.11l-15.25-32.1 13.88-7.18 15.24 32.1a8 8 0 01-3.73 10.29z"}),K=r.createElement("path",{d:"M464.56 100.33A4 4 0 01459 98.6l-14.41-30.38 7.58-3.92 14.43 30.38a4.35 4.35 0 01-2.04 5.65z",fill:"#5F6368"}),G=r.createElement("path",{fill:"#BDC1C6",d:"M145.57 277.902l47.608-38.744 8.01 9.842-47.607 38.745z"}),$=r.createElement("path",{fill:"#9AA0A6",d:"M189.085 242.485l4.087-3.326 8.01 9.842-4.087 3.327z"}),J=r.createElement("path",{fill:"#BDC1C6",d:"M211.607 241.354l8.143 10.005-7.415 6.035-8.143-10.006z"}),Y=r.createElement("rect",{x:209.99,y:252.12,width:16.52,height:9.9,rx:1.53,transform:"rotate(140.86 218.257 257.06)",fill:"#DADCE0"}),Q=r.createElement("path",{d:"M175.87 220.73c4.56-.39 13.4-.24 24.73 4.4a14.61 14.61 0 015.8 4.3l9 11.11a1.53 1.53 0 01-.22 2.16l-10.44 8.5a1.53 1.53 0 01-2.15-.23l-8-9.81a44.24 44.24 0 01-4.69-7.16c-1.21-2.28-4.66-6.23-14.42-11.22a1.06 1.06 0 01.39-2.05z",fill:"#DADCE0"}),X=r.createElement("rect",{x:158.98,y:236.29,width:3.47,height:74.9,rx:1.73,transform:"rotate(50.86 160.713 273.711)",fill:"#BDC1C6"}),Z=r.createElement("path",{d:"M166.85 260.56l-38.79 31.57a6.34 6.34 0 008 9.84l38.79-31.57z",fill:"#5F6368"}),ee=r.createElement("path",{d:"M163.46 270.46c-9.77-6.25-16-20.14-13.11-31.58",stroke:"#34A853",strokeLinejoin:"round",strokeWidth:7});t.a=function SvgWelcome(e){return r.createElement("svg",a({viewBox:"0 0 570 336",fill:"none"},e),i,o,c,s,l,u,d,f,p,g,m,h,v,b,k,y,_,E,O,S,j,w,C,N,x,D,L,R,M,P,A,T,z,I,F,U,W,q,B,H,V,K,G,$,J,Y,Q,X,Z,ee)}},758:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(33),l=n.n(s),u=n(34),d=n.n(u),f=n(55),p=n.n(f),g=n(43),m=n.n(g),h=n(44),v=n.n(h),b=n(29),k=n.n(b),y=n(18),_=n(2),E=n(1),O=n(778),S=n(5),j=n.n(S),w=n(15),C=n(190),N=n(24),x=n(230),D=n(62),L=n(9),R=n(759),M=n(776),P=n(191);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var T=j.a.withSelect,z=function(t){m()(SetupUsingGCP,t);var n,a=A(SetupUsingGCP);function SetupUsingGCP(t){var n;l()(this,SetupUsingGCP),n=a.call(this,t);var r=e._googlesitekitLegacyData.admin.connectURL,i=e._googlesitekitLegacyData.setup,o=i.isAuthenticated,c=i.hasSearchConsoleProperty,s=i.isSiteKitConnected,u=i.isVerified,d=i.needReauthenticate,f=e._googlesitekitLegacyData.permissions.canSetup;return n.state={canSetup:f,isAuthenticated:o,isVerified:u,needReauthenticate:d,hasSearchConsoleProperty:c,hasSearchConsolePropertyFromTheStart:c,connectURL:r,errorMsg:"",isSiteKitConnected:s,completeSetup:!1},n.siteConnectedSetup=n.siteConnectedSetup.bind(p()(n)),n.siteVerificationSetup=n.siteVerificationSetup.bind(p()(n)),n.searchConsoleSetup=n.searchConsoleSetup.bind(p()(n)),n.resetAndRestart=n.resetAndRestart.bind(p()(n)),n.completeSetup=n.completeSetup.bind(p()(n)),n.setErrorMessage=n.setErrorMessage.bind(p()(n)),n}return d()(SetupUsingGCP,[{key:"resetAndRestart",value:(n=c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.c.set(D.a,"site","reset");case 2:Object(L.b)(),this.setState({isSiteKitConnected:!1,isAuthenticated:!1,isVerified:!1,hasSearchConsoleProperty:!1,completeSetup:!1,errorMsg:""});case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"completeSetup",value:function(){this.setState({completeSetup:!0})}},{key:"siteConnectedSetup",value:function(e){this.setState({isSiteKitConnected:e})}},{key:"siteVerificationSetup",value:function(e){this.setState({isVerified:e})}},{key:"searchConsoleSetup",value:function(e){this.setState({hasSearchConsoleProperty:e})}},{key:"isSetupFinished",value:function(){var e=this.state,t=e.isSiteKitConnected,n=e.isAuthenticated,r=e.isVerified,a=e.hasSearchConsoleProperty,i=e.completeSetup;return t&&n&&r&&a&&i}},{key:"setErrorMessage",value:function(e){this.setState({errorMsg:e})}},{key:"getApplicableSteps",value:function(){var e,t=R.a,n=Object.keys(t);for(e=0;e<n.length;e++)t[n[e]].isApplicable(this.state)||delete t[n[e]];return t}},{key:"currentStep",value:function(e){var t,n=Object.keys(e);for(t=0;t<n.length-1;t++)if(!e[n[t]].isCompleted(this.state))return n[t];return n[t]}},{key:"stepStatus",value:function(e,t){return e[t].isCompleted(this.state)?"completed":t===this.currentStep(e)?"inprogress":""}},{key:"render",value:function(){var t=this,n=this.state,a=n.canSetup,o=n.isAuthenticated,s=n.isVerified,l=n.needReauthenticate,u=n.hasSearchConsoleProperty,d=n.connectURL,f=n.isSiteKitConnected,p=this.props.redirectURL;this.isSetupFinished()&&Object(y.delay)((function(){e.location.replace(p)}),500,"later");var g=this.getApplicableSteps(),m=this.currentStep(g),h=g[m].Component,v=r.createElement(h,{siteConnectedSetup:this.siteConnectedSetup,connectURL:d,siteVerificationSetup:this.siteVerificationSetup,searchConsoleSetup:this.searchConsoleSetup,completeSetup:this.completeSetup,isSiteKitConnected:f,isAuthenticated:o,isVerified:s,needReauthenticate:l,hasSearchConsoleProperty:u,setErrorMessage:this.setErrorMessage,resetAndRestart:g.clientCredentials?this.resetAndRestart:void 0}),b=a,k=!b&&!o;return r.createElement(E.Fragment,null,r.createElement(C.a,null,r.createElement(P.a,null)),r.createElement("div",{className:"googlesitekit-wizard"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement(x.a,null,r.createElement("section",{className:"googlesitekit-wizard-progress"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},b&&r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("div",{className:"googlesitekit-wizard-progress__steps"},Object.keys(g).map((function(e,n){return r.createElement(M.a,{key:g[e].title,currentStep:m===e,title:g[e].title,step:n+1,status:t.stepStatus(g,e),warning:g[e].warning,error:g[e].error,stepKey:e})})))))),k&&r.createElement("div",{className:"googlesitekit-setup__footer"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("h1",{className:"googlesitekit-setup__title"},Object(_.__)("Authenticate Site Kit","google-site-kit")),r.createElement("p",{className:"googlesitekit-setup__description"},Object(_.__)("Please sign into your Google account to begin.","google-site-kit")),r.createElement(N.a,{href:"#",onClick:c()(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.v)("plugin_setup","signin_with_google");case 2:document.location=d;case 3:case"end":return e.stop()}}),e)})))},Object(_.__)("Sign in with Google","google-site-kit"))))))),b&&v))))))}}]),SetupUsingGCP}(E.Component);t.a=Object(O.a)(T((function(e){return{redirectURL:e(w.c).getAdminURL("googlesitekit-dashboard",{notification:"authentication_success"})}})))(z)}).call(this,n(14),n(1))},759:function(e,t,n){"use strict";var r=n(2),a=n(760),i=n(761),o=n(763),c=n(764),s={authentication:{title:Object(r.__)("Authenticate","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&!e.needReauthenticate},Component:a.a},verification:{title:Object(r.__)("Verify URL","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified},Component:i.a},seachConsoleProperty:{title:Object(r.__)("Connect Search Console","google-site-kit"),required:!0,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty},Component:o.a},completeSetup:{title:Object(r._x)("Finish","complete module setup","google-site-kit"),required:!1,isApplicable:function(){return!0},isCompleted:function(e){return e.isSiteKitConnected&&e.isAuthenticated&&e.isVerified&&e.hasSearchConsoleProperty},Component:c.a}};t.a=s},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,s,l,u,d,f,p,g,m;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(s=c.metrics)||void 0===s||null===(l=s[0])||void 0===l||null===(u=l.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(p=f.totals)||void 0===p||null===(g=p[0])||void 0===g||null===(m=g.values)||void 0===m?void 0:m[0])}}).call(this,n(1))},760:function(e,t,n){"use strict";(function(e){var r=n(3),a=n.n(r),i=n(10),o=n.n(i),c=n(33),s=n.n(c),l=n(34),u=n.n(l),d=n(43),f=n.n(d),p=n(44),g=n.n(p),m=n(29),h=n.n(m),v=n(0),b=n.n(v),k=n(2),y=n(1),_=n(9),E=n(24),O=n(21),S=n(301);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var a=h()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g()(this,n)}}var w=function(t){f()(WizardStepAuthentication,t);var n=j(WizardStepAuthentication);function WizardStepAuthentication(){return s()(this,WizardStepAuthentication),n.apply(this,arguments)}return u()(WizardStepAuthentication,[{key:"render",value:function(){var t=this.props,n=t.connectURL,r=t.needReauthenticate,i=t.resetAndRestart;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--two"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(k.__)("Authenticate with Google","google-site-kit")),e.createElement("p",null,Object(k.__)("Please sign into your Google account to begin.","google-site-kit")),r&&e.createElement("p",{className:"googlesitekit-error-text"},Object(k.__)("You did not grant access to one or more of the requested scopes. Please grant all scopes that you are prompted for.","google-site-kit")),e.createElement("p",null,e.createElement(E.a,{onClick:o()(a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(_.v)("plugin_setup","signin_with_google");case 2:document.location=n;case 3:case"end":return e.stop()}}),e)})))},Object(k.__)("Sign in with Google","google-site-kit")),i&&e.createElement(O.a,{className:"googlesitekit-wizard-step__back",onClick:i},Object(k.__)("Back","google-site-kit"))),e.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},e.createElement(S.a,{optinAction:"analytics_optin_setup_fallback"}))))))}}]),WizardStepAuthentication}(y.Component);w.propTypes={connectURL:b.a.string.isRequired,resetAndRestart:b.a.func},t.a=w}).call(this,n(1))},761:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(33),o=n.n(i),c=n(34),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(0),h=n.n(m),v=n(1),b=n(762);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var y=function(t){u()(WizardStepVerification,t);var n=k(WizardStepVerification);function WizardStepVerification(){return o()(this,WizardStepVerification),n.apply(this,arguments)}return s()(WizardStepVerification,[{key:"render",value:function(){var t=!this.props.isVerified;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--three"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(b.a,a()({shouldSetup:t},this.props))))))}}]),WizardStepVerification}(v.Component);y.propTypes={siteVerificationSetup:h.a.func.isRequired},t.a=y}).call(this,n(1))},762:function(e,t,n){"use strict";(function(e,r){var a=n(3),i=n.n(a),o=n(10),c=n.n(o),s=n(33),l=n.n(s),u=n(34),d=n.n(u),f=n(55),p=n.n(f),g=n(43),m=n.n(g),h=n(44),v=n.n(h),b=n(29),k=n.n(b),y=n(0),_=n.n(y),E=n(2),O=n(1),S=n(9),j=n(20),w=n(62),C=n(24),N=n(71);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v()(this,n)}}var D=function(t){m()(SiteVerification,t);var n,a,o=x(SiteVerification);function SiteVerification(e){var t;l()(this,SiteVerification);var n=(t=o.call(this,e)).props,r=n.isAuthenticated,a=n.shouldSetup;return t.state={loading:r&&a,loadingMsg:Object(E.__)("Getting your verified sites…","google-site-kit"),siteURL:" ",selectedURL:"",errorCode:!1,errorMsg:""},t.onProceed=t.onProceed.bind(p()(t)),t}return d()(SiteVerification,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup;t&&n&&this.requestSitePropertyList()}},{key:"requestSitePropertyList",value:function(){var t=this,n=this.props.setErrorMessage;c()(i.a.mark((function r(){var a,o,c,s,l;return i.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,w.c.get(w.b,"site-verification","verification");case 3:if(a=r.sent,o=a.verified,c=a.identifier,!o){r.next=17;break}return r.next=9,Object(S.v)("verification_setup","verification_check_true");case 9:return r.next=11,t.insertSiteVerification(c);case 11:if(!0!==r.sent.verified){r.next=15;break}return t.props.siteVerificationSetup(!0),r.abrupt("return",!0);case 15:r.next=19;break;case 17:return r.next=19,Object(S.v)("verification_setup","verification_check_false");case 19:t.setState({loading:!1,siteURL:c}),r.next=28;break;case 22:r.prev=22,r.t0=r.catch(0),s=r.t0.message,Object(S.x)(r.t0.message)&&(l=JSON.parse(r.t0.message),s=l.error.message||r.t0.message),n(s),t.setState({loading:!1,errorCode:r.t0.code,errorMsg:s,siteURL:e._googlesitekitLegacyData.admin.siteURL});case 28:case"end":return r.stop()}}),r,null,[[0,22]])})))()}},{key:"insertSiteVerification",value:(a=c()(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w.c.set(w.b,"site-verification","verification",{siteURL:t});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"onProceed",value:(n=c()(i.a.mark((function t(){var n,r,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.props.setErrorMessage,r=this.state.siteURL?this.state.siteURL:e._googlesitekitLegacyData.admin.siteURL,n(""),this.setState({loading:!0,loadingMsg:Object(E.__)("Verifying…","google-site-kit"),errorCode:!1,errorMsg:""}),t.prev=4,t.next=7,this.insertSiteVerification(r);case 7:!0===t.sent.verified&&(Object(S.v)("verification_setup","verification_insert_tag"),this.props.siteVerificationSetup(!0)),t.next=17;break;case 11:t.prev=11,t.t0=t.catch(4),a=t.t0.message,Object(S.x)(t.t0.message)&&(o=JSON.parse(t.t0.message),a=o.error.message||t.t0.message),n(a),this.setState({loading:!1,errorCode:t.t0.code,errorMsg:a});case 17:case"end":return t.stop()}}),t,this,[[4,11]])}))),function(){return n.apply(this,arguments)})},{key:"renderForm",value:function(){var e=this.state,t=e.loading,n=e.loadingMsg,a=e.siteURL,i=r.createElement(O.Fragment,null,n&&r.createElement("p",null,n),r.createElement(N.a,null));return t?i:r.createElement(O.Fragment,null,r.createElement("div",{className:"googlesitekit-wizard-step__inputs"},r.createElement(j.n,{label:Object(E.__)("Website Address","google-site-kit"),name:"siteProperty",floatingLabelClassName:"mdc-floating-label--float-above",outlined:!0,disabled:!0},r.createElement(j.d,{value:a}))),r.createElement("div",{className:"googlesitekit-wizard-step__action googlesitekit-wizard-step__action--justify"},r.createElement(C.a,{onClick:this.onProceed},Object(E.__)("Continue","google-site-kit"))))}},{key:"render",value:function(){var e=this.props,t=e.isAuthenticated,n=e.shouldSetup,a=this.state.errorMsg;return n?r.createElement(O.Fragment,null,r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(E.__)("Verify URL","google-site-kit")),r.createElement("p",{className:"googlesitekit-wizard-step__text"},Object(E.__)("We will need to verify your URL for Site Kit.","google-site-kit")),a&&0<a.length&&r.createElement("p",{className:"googlesitekit-error-text"},a),t&&this.renderForm()):SiteVerification.renderSetupDone()}}],[{key:"renderSetupDone",value:function(){return r.createElement(O.Fragment,null,r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(E.__)("Verify URL","google-site-kit")),r.createElement("p",{className:"googlesitekit-wizard-step__text"},Object(E.__)("Congratulations, your site has been verified!","google-site-kit")))}}]),SiteVerification}(O.Component);D.propTypes={isAuthenticated:_.a.bool.isRequired,shouldSetup:_.a.bool.isRequired,siteVerificationSetup:_.a.func.isRequired,completeSetup:_.a.func,setErrorMessage:_.a.func.isRequired},t.a=D}).call(this,n(14),n(1))},763:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(33),o=n.n(i),c=n(34),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(0),h=n.n(m),v=n(1),b=n(513);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var y=function(t){u()(WizardStepSearchConsoleProperty,t);var n=k(WizardStepSearchConsoleProperty);function WizardStepSearchConsoleProperty(){return o()(this,WizardStepSearchConsoleProperty),n.apply(this,arguments)}return s()(WizardStepSearchConsoleProperty,[{key:"render",value:function(){var t=this.props,n=t.isVerified,r=t.hasSearchConsoleProperty,i=n&&!r;return e.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--four"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},i?e.createElement(b.a,a()({shouldSetup:i},this.props)):b.a.connected()))))}}]),WizardStepSearchConsoleProperty}(v.Component);y.propTypes={searchConsoleSetup:h.a.func.isRequired},t.a=y}).call(this,n(1))},764:function(e,t,n){"use strict";(function(e,r){var a=n(33),i=n.n(a),o=n(34),c=n.n(o),s=n(43),l=n.n(s),u=n(44),d=n.n(u),f=n(29),p=n.n(f),g=n(0),m=n.n(g),h=n(2),v=n(1),b=n(9),k=n(24);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var a=p()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d()(this,n)}}var _=function(t){l()(WizardStepCompleteSetup,t);var n=y(WizardStepCompleteSetup);function WizardStepCompleteSetup(t){var r;return i()(this,WizardStepCompleteSetup),r=n.call(this,t),e._googlesitekitLegacyData.setup.hasSearchConsoleProperty?Object(b.v)("plugin_setup","user_verified"):Object(b.v)("plugin_setup","site_verified"),r}return c()(WizardStepCompleteSetup,[{key:"render",value:function(){return r.createElement("section",{className:"googlesitekit-wizard-step googlesitekit-wizard-step--five"},r.createElement("div",{className:"mdc-layout-grid"},r.createElement("div",{className:"mdc-layout-grid__inner"},r.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},r.createElement("h2",{className:" googlesitekit-heading-3 googlesitekit-wizard-step__title "},Object(h.__)("Congratulations!","google-site-kit")),r.createElement("p",null,Object(h.__)("You successfully completed the Site Kit setup and connected Search Console. Check the dashboard for more services to connect.","google-site-kit")),r.createElement("div",{className:"googlesitekit-wizard-step__action"},r.createElement(k.a,{id:"wizard-step-five-proceed",onClick:this.props.completeSetup},Object(h.__)("Go to Dashboard","google-site-kit")))))))}}]),WizardStepCompleteSetup}(v.Component);_.propTypes={completeSetup:m.a.func.isRequired},t.a=_}).call(this,n(14),n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},776:function(e,t,n){"use strict";var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),s=n.n(c),l=n(44),u=n.n(l),d=n(29),f=n.n(d),p=n(0),g=n.n(p),m=n(1),h=n.n(m),v=n(8),b=n.n(v);function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var y=m.createElement("g",{fill:"#FFF",fillRule:"evenodd"},m.createElement("path",{d:"M0 0h2v7H0zM0 10h2v2H0z"}));var _=function SvgExclamation(e){return m.createElement("svg",k({viewBox:"0 0 2 12"},e),y)};function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var O=m.createElement("g",{fill:"#FFF",fillRule:"evenodd"},m.createElement("path",{d:"M0 6.414L1.415 5l5.292 5.292-1.414 1.415z"}),m.createElement("path",{d:"M14.146.146l1.415 1.414L5.414 11.707 4 10.292z"}));var S=function SvgCheck(e){return m.createElement("svg",E({viewBox:"0 0 16 12"},e),O)};function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var w=function(e){s()(WizardProgressStep,e);var t=j(WizardProgressStep);function WizardProgressStep(){return a()(this,WizardProgressStep),t.apply(this,arguments)}return o()(WizardProgressStep,[{key:"render",value:function(){var e=this.props,t=e.currentStep,n=e.step,r=e.title,a=e.status,i=e.warning,o=e.error,c=e.stepKey,s=a;i?s="warning":o&&(s="error");var l=!1;switch(s){case"warning":case"error":l=h.a.createElement(_,{height:"12",width:"2"});break;case"completed":l=h.a.createElement(S,{height:"12",width:"16"})}return h.a.createElement("div",{className:b()("googlesitekit-wizard-progress-step","googlesitekit-wizard-progress-step--".concat(n),"googlesitekit-wizard-progress-step--".concat(c),{"googlesitekit-wizard-progress-step--current":t})},h.a.createElement("div",{className:"googlesitekit-wizard-progress-step__number-wrapper"},h.a.createElement("div",{className:b()("googlesitekit-wizard-progress-step__number","googlesitekit-wizard-progress-step__number--".concat(s))},h.a.createElement("span",{className:b()("googlesitekit-wizard-progress-step__number-text","googlesitekit-wizard-progress-step__number-text--".concat(s))},n),l&&h.a.createElement("span",{className:b()("googlesitekit-wizard-progress-step__number-icon","googlesitekit-wizard-progress-step__number-icon--".concat(s))},l))),h.a.createElement("p",{className:"googlesitekit-wizard-progress-step__text"},r))}}]),WizardProgressStep}(m.Component);w.propTypes={currentStep:g.a.bool.isRequired,step:g.a.number.isRequired,title:g.a.string,status:g.a.string,warning:g.a.bool,error:g.a.bool},w.defaultProps={title:"",status:"",warning:!1,error:!1,removeFirstStep:!1};t.a=w},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),s=n.n(c),l=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(t,n,r){var i=Object(l.a)(n);return function(){var n=s()(a.a.mark((function n(o,c,s,l){var d,p,g,m,h,v,b,k;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(g=t.isFirstAdmin,m=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(p=d.ioo)||void 0===p?void 0:p.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return k={send_to:v,event_category:o,event_label:s,value:l,dimension1:m,dimension2:g?"true":"false",dimension3:b,dimension4:"1.38.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},k),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),s=n.n(c),l=n(43),u=n.n(l),d=n(44),f=n.n(d),p=n(29),g=n.n(p),m=n(0),h=n.n(m),v=n(8),b=n.n(v),k=n(1),y=n(2),_=n(59),E=n(97),O=n(9);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g()(e);if(t){var a=g()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(DataBlock,t);var n=S(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,p=t.sparkline,g=t.invertChangeColor,m="button"===s?"button":"",h=p;h&&g&&(h=Object(k.cloneElement)(p,{invertChangeColor:g}));var v=o;c&&(v="%"===c?Object(O.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(O.q)(o,c)),l&&(v=Object(y.sprintf)(l,v));var S=a&&Object(O.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&m,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},S)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(k.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:g})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(E.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(k.Component);j.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},j.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=j}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(l),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},89:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{d:"M2.253 12.252l7.399 5.658A13.055 13.055 0 009 22c0 1.43.229 2.805.652 4.09l-7.4 5.658A22.02 22.02 0 010 22c0-3.506.81-6.814 2.253-9.748z",fill:"#FBBC05"}),r.createElement("path",{d:"M9.652 17.91l-7.4-5.658A21.935 21.935 0 0122 0c5.6 0 10.6 2.1 14.5 5.5l-6.4 6.4C27.9 10.1 25.1 9 22 9c-5.77 0-10.64 3.725-12.348 8.91z",fill:"#EA4335"}),r.createElement("path",{d:"M2.25 31.742l7.396-5.67A12.975 12.975 0 0022 35c6.1 0 10.7-3.1 11.8-8.5H22V18h20.5c.3 1.3.5 2.7.5 4 0 14-10 22-21 22A21.935 21.935 0 012.25 31.742z",fill:"#34A853"}),r.createElement("path",{d:"M36.34 38.52l-7.025-5.437c2.297-1.45 3.895-3.685 4.485-6.583H22V18h20.5c.3 1.3.5 2.7.5 4 0 7.17-2.623 12.767-6.66 16.52z",fill:"#4285F4"}));t.a=function SvgLogoG(e){return r.createElement("svg",a({viewBox:"0 0 43 44"},e),i)}},9:function(e,t,n){"use strict";(function(e){n.d(t,"k",(function(){return S})),n.d(t,"a",(function(){return j})),n.d(t,"i",(function(){return w})),n.d(t,"x",(function(){return C})),n.d(t,"d",(function(){return N}));var r=n(6),a=n.n(r),i=n(19),o=n.n(i),c=n(108),s=n.n(c),l=n(104),u=n.n(l),d=n(40);n.d(t,"v",(function(){return d.b}));var f=n(58);n.d(t,"s",(function(){return f.a})),n.d(t,"w",(function(){return f.b}));var p=n(56);n.d(t,"u",(function(){return p.a}));var g=n(61);n.d(t,"b",(function(){return g.b})),n.d(t,"j",(function(){return g.c}));n(32);var m=n(68);n.d(t,"h",(function(){return m.a})),n.d(t,"n",(function(){return m.b})),n.d(t,"q",(function(){return m.c})),n.d(t,"r",(function(){return m.d}));var h=n(49);n.d(t,"e",(function(){return h.b}));var v=n(74);n.d(t,"o",(function(){return v.a}));var b=n(75);n.d(t,"c",(function(){return b.a}));var k=n(52);n.d(t,"t",(function(){return k.i}));var y=n(76);n.d(t,"f",(function(){return y.a})),n.d(t,"m",(function(){return y.b}));var _=n(65);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"g",(function(){return _.a})),n.d(t,"l",(function(){return _.b})),n.d(t,"p",(function(){return _.c}));var S=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},j=function(e,t){if("0"===e||0===e||isNaN(e))return null;var n=(t-e)/e;return isNaN(n)||!s()(n)?null:n},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,n=t.modules;return n?Object.keys(n).reduce((function(e,t){return"object"!==o()(n[t])||void 0===n[t].slug||void 0===n[t].name||n[t].slug!==t?e:O(O({},e),{},a()({},t,n[t]))}),{}):{}},C=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},N=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return u()(t)}}).call(this,n(14))},90:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(243),o=n(0),c=n.n(o),s=n(1),l=n(111);function Portal(e){var t=e.children,n=e.slug,r=Object(s.useState)(document.createElement("div")),o=a()(r,1)[0];return Object(i.a)((function(){n&&o.classList.add("googlesitekit-portal-".concat(n));var e=document.querySelector(".googlesitekit-plugin")||document.body;return e.appendChild(o),function(){return e.removeChild(o)}})),Object(l.createPortal)(t,o)}Portal.propTypes={slug:c.a.string,children:c.a.node},Portal.defaultProps={slug:"",children:null},t.a=Portal},92:function(e,t,n){"use strict";var r=n(101);n.d(t,"a",(function(){return r.a}));var a=n(102);n.d(t,"c",(function(){return a.a}));var i=n(103);n.d(t,"b",(function(){return i.a}))},93:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return b}));var r=n(16),a=n.n(r),i=n(6),o=n.n(i),c=n(3),s=n.n(c),l=n(7),u=n.n(l),d=n(5),f=n.n(d),p=n(60),g=f.a.createRegistryControl,m=function(e){var t;u()(e,"storeName is required to create a snapshot store.");var n={},r={deleteSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})),restoreSnapshot:s.a.mark((function e(){var t,n,r,a,i,o,c=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.clearAfterRestore,r=void 0===n||n,e.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(a=e.sent,i=a.cacheHit,o=a.value,!i){e.next=13;break}return e.next=10,{payload:{snapshot:o},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!r){e.next=13;break}return e.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})),createSnapshot:s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))},i=(t={},o()(t,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(e))})),o()(t,"CREATE_SNAPSHOT",g((function(t){return function(){return Object(p.d)("datastore::cache::".concat(e),t.stores[e].store.getState())}}))),o()(t,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(e),3600)})),t);return{initialState:n,actions:r,controls:i,reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0,r=t.type,i=t.payload;switch(r){case"SET_STATE_FROM_SNAPSHOT":var o=i.snapshot,c=(o.error,a()(o,["error"]));return c;default:return e}}}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Object.values(e.stores).filter((function(e){return Object.keys(e.getActions()).includes("restoreSnapshot")}))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().createSnapshot()})))},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.a;return Promise.all(h(e).map((function(e){return e.getActions().restoreSnapshot()})))}},95:function(e,t,n){"use strict";var r=n(1),a=n(37),i=Object(r.createContext)(a.a);t.a=i},959:function(e,t,n){"use strict";n.r(t),function(e,t){var r=n(219),a=n(111),i=n(9),o=(n(280),n(159)),c=n(755),s=n(322);Object(r.a)((function(){e._googlesitekitLegacyData.admin.resetSession&&Object(i.b)();var n=document.getElementById("js-googlesitekit-dashboard-splash");n&&Object(a.render)(t.createElement(o.a,{dataAPIContext:"Splash"},t.createElement(s.a,null),t.createElement(c.a,null)),n)}))}.call(this,n(14),n(1))},97:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(146),s=n(2),l=n(21);function SourceLink(t){var n=t.name,r=t.href,a=t.className,i=t.external;return e.createElement("div",{className:o()("googlesitekit-source-link",a)},Object(c.a)(Object(s.sprintf)(
34
  /* translators: %s: source link */
35
  Object(s.__)("Source: %s","google-site-kit"),"<a>".concat(n,"</a>")),{a:e.createElement(l.a,{key:"link",href:r,external:i,inherit:!0})}))}SourceLink.propTypes={name:a.a.string,href:a.a.string,className:a.a.string,external:a.a.bool},SourceLink.defaultProps={name:"",href:"",className:"",external:!1},t.a=SourceLink}).call(this,n(1))},99:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(32),a=n(27),i=function(t,n,i){var o=Object(a.d)(t,n,i);Object(a.e)(),Object.keys(e._googlesitekitLegacyData.admin.datacache).forEach((function(t){0!==t.indexOf(o+"::")&&t!==o||delete e._googlesitekitLegacyData.admin.datacache[t]})),Object.keys(Object(r.a)()).forEach((function(e){0!==e.indexOf("".concat(a.a).concat(o,"::"))&&e!=="".concat(a.a).concat(o)||Object(r.a)().removeItem(e)}))}}).call(this,n(14))}},[[959,1,0]]]);
dist/assets/js/{googlesitekit-dashboard.a412fac6bb0ef76ae001.js → googlesitekit-dashboard.48daa8c40a525b65ef56.js} RENAMED
@@ -25,11 +25,11 @@ c=Object(i.sprintf)(Object(i.__)("Insufficient permissions in %s","google-site-k
25
  /* translators: %s: List of product names */
26
  Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.n)(n));break;case"single":s=Object(l.sprintf)(
27
  /* translators: %1$s: Product name */
28
- Object(l.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":s=Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(l.__)("Site Kit can’t access necessary data","google-site-kit"),description:s,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(l.__)("Redo setup","google-site-kit")})}}).call(this,n(14),n(1))},238:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(5),a=n.n(r),i=n(15),o=n(39),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.a,t):null}}).call(this,n(1))},239:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),l=n.n(c),s=n(0),u=n.n(s),d=n(120),f=n(271),g=n(1),m=n(2),p=n(20),h=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,y=t.trailingIcon,k=t["aria-label"],_=t.title,O=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(g.useCallback)((function(e){null!==e&&p.i.attachTo(e)}),[]),j=Object(d.a)(n,E),w=i&&!h?"a":"button",S=e.createElement(w,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:j,disabled:!!h,"aria-label":function(){var e=k;if("_blank"!==v)return e;var t=Object(m._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===w?"button":void 0},O),b,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return b&&(_||k)&&void 0===r?e.createElement(f.a,{title:_||k,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},241:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(123);function a(e){return!!e&&e.Component===r.a}},242:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return p.a}));var r=n(13),a=n.n(r),i=n(26),o=n.n(i),c=n(98),l=n(241);function s(e,t){if(9!==t)return[e,t];for(var n=(e=o()(e)).length-1;0!==t&&n>=0;)3===e[n]?(t-=3,e[n]=4):6===e[n]&&(t-=6,e[n]=8),n--;return[e,t]}function u(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+c.c[t],width:t}}))}function d(e,t){var n=0,r=0,i=[],o=[],d=function(e,t){return e.counter-t.counter},f=function(e,t){var n=e.counter;return t.counter-n},g=function(e){return e.counter<=12};if(e.forEach((function(m,p){if(Object(l.a)(t[m.slug]))return i.push(0),void o.push(r);var h=u(n,m),v=function(e,t,n){for(;++e<t.length;)if(!Object(l.a)(n[t[e].slug]))return t[e];return null}(p,e,t);null!==v&&0!==u(h.sort(d)[0].counter,v).filter(g).length||h.some(g)&&(h=(h=h.sort(f)).filter(g));var b=h[0].width;if(o.push(r),(n+=c.c[b])>12){if(n-=c.c[b],o[p]++,9===n){var y=s(i,n),k=a()(y,2);i=k[0],n=k[1]}n=c.c[b],r++}else 12===n&&(n=0,r++);i.push(c.c[b])})),9===n){var m=s(i,n),p=a()(m,2);i=p[0],n=p[1]}return{columnWidths:i,rowIndexes:o}}var f=n(218),g=n.n(f);function m(e,t,n){var r=n.columnWidths,a=n.rowIndexes,i=[],l=o()(r),s=null,u=-1,d=[];if(function(e,t){for(var n={},r=0;r<e.length;r++){var a,i=e[r],o=null==t?void 0:t[i.slug],l=null==o?void 0:o.Component,s=null==o||null===(a=o.metadata)||void 0===a?void 0:a.moduleSlug,u=c.b.includes(l);if(!l||!s||!u)return!1;if(n[s]){if(n[s]!==l)return!1}else n[s]=l}return!(Object.keys(n).length>1)}(e,t)){var f=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12].concat(o()(f))}}return e.forEach((function(n,o){var c,f,m,p,h;if(i.push(null),s=t[n.slug],u=a[o],s)if(f=s,m=t[null===(c=e[o+1])||void 0===c?void 0:c.slug],p=u,h=a[o+1],p===h&&g()(f,m))d.push(r[o]),l[o]=0;else if(d.length>0){d.push(r[o]);var v=d.reduce((function(e,t){return e+t}),0);i[o]=s,l[o]=v,d=[]}})),{gridColumnWidths:l,overrideComponents:i}}var p=n(197)},265:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function PageHeader(t){var n=t.title,r=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},r,e.createElement("h1",{className:a()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:a()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),l="googlesitekit_legacy_1.38.0_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},274:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(121);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},275:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(187);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},276:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(125);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetActivateModuleCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetActivateModuleCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},277:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(124);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetCompleteModuleActivationCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},278:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(119),l=n(123);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,l.a,u),e.createElement(l.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:o.a.string.isRequired},l.a.propTypes)}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),l=n(203),s=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),m=Object(i.a)(t.createElement(c.a,null)),p=Object(i.a)(t.createElement(l.a,null)),h=Object(i.a)(t.createElement(s.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==g&&"authentication_failure"!==g&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},281:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="dashboard",a="pageDashboard"},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(14))},322:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),m=n.n(g),p=n(8),h=n.n(p),v=n(111),b=n(1),y=n(2),k=n(31),_=n(126),O=n(100);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=E(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(l()(t)),t.handleDecrement=t.handleDecrement.bind(l()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(k.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(k.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name");if(!t)return null;var n=Object(y.sprintf)(
29
  /* translators: %d: the number of notifications */
30
  Object(y._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),r=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(O.a,null,n));return Object(v.createPortal)(r,t)}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(1))},325:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(326),u=n(46),d=n(20),f=l.a.useSelect,g=function WidgetContextRenderer(t){var n=t.slug,r=t.className,a=t.Header,i=t.Footer,c=f((function(e){return n?e(u.b).getWidgetAreas(n):null}));return e.createElement("div",{className:o()("googlesitekit-widget-context",r)},a&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(a,null)))),c&&c.map((function(t){return e.createElement(s.a,{key:t.slug,slug:t.slug,totalAreas:c.length})})),i&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(i,null)))))};g.propTypes={slug:a.a.string,className:a.a.string,Header:a.a.elementType,Footer:a.a.elementType},t.a=g}).call(this,n(1))},326:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetAreaRenderer}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(98),u=n(46),d=n(327),f=n(242),g=n(20),m=n(328),p=n(241),h=l.a.useSelect;function WidgetAreaRenderer(t){var n=t.slug,r=t.totalAreas,a=h((function(e){return e(u.b).getWidgetArea(n)})),i=h((function(e){return e(u.b).getWidgets(n)})),c=h((function(e){return e(u.b).getWidgetStates()})),l=i.filter((function(e){return!(c[e.slug]&&Object(p.a)(c[e.slug]))})),v=Object(f.c)(i,c),b=v.columnWidths,y=v.rowIndexes,k=Object(f.a)(i,c,{columnWidths:b,rowIndexes:y}),_=k.gridColumnWidths,O=k.overrideComponents,E=i.map((function(t,n){return e.createElement(m.a,{key:"".concat(t.slug,"-wrapper"),gridColumnWidth:_[n]},e.createElement(d.a,{OverrideComponent:O[n]?function(){var t=O[n],r=t.Component,a=t.metadata;return e.createElement(r,a)}:void 0,slug:t.slug}))}));if(!l.length)return e.createElement(g.b,{className:o()(s.a,"googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},E);var j=a.Icon,w=a.title,S=a.style,N=a.subtitle;return e.createElement(g.b,{className:o()("googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},r>1&&e.createElement(g.l,null,e.createElement(g.a,{className:"googlesitekit-widget-area-header",size:12},j&&e.createElement(j,{width:33,height:33}),w&&e.createElement("h3",{className:"googlesitekit-widget-area-header__title googlesitekit-heading-3"},w),N&&e.createElement("h4",{className:"googlesitekit-widget-area-header__subtitle"},N))),e.createElement("div",{className:"googlesitekit-widget-area-widgets"},e.createElement(g.l,null,S===u.c.BOXES&&E,S===u.c.COMPOSITE&&e.createElement(g.a,{size:12},e.createElement(g.b,null,e.createElement(g.l,null,E))))))}WidgetAreaRenderer.propTypes={slug:a.a.string.isRequired}}).call(this,n(1))},327:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(5),c=n.n(o),l=n(46),s=n(216),u=n(242),d=n(98),f=c.a.useSelect,g=function WidgetRenderer(t){var n=t.slug,r=t.OverrideComponent,a=f((function(e){return e(l.b).getWidget(n)})),o=Object(u.b)(n),c=o.Widget,g=o.WidgetNull;if(!a)return e.createElement(g,null);var m=a.Component,p=a.wrapWidget,h=e.createElement(m,o);return r?h=e.createElement(i.Fragment,null,e.createElement(s.a,{widgetSlug:"overridden"},e.createElement(r,null)),e.createElement("div",{className:d.a},h)):p&&(h=e.createElement(c,null,h)),h};g.propTypes={slug:a.a.string.isRequired,OverrideComponent:a.a.elementType},t.a=g}).call(this,n(1))},328:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(98),o=n(20),c=function WidgetCellWrapper(t){var n=t.gridColumnWidth,r=t.children;return 0===n?e.createElement("div",{className:i.a},r):n<6?e.createElement(o.a,{lgSize:n,mdSize:4,smSize:2},r):n<8?e.createElement(o.a,{lgSize:n,mdSize:8},r):e.createElement(o.a,{size:n},r)};c.propTypes={gridColumnWidth:a.a.number.isRequired,children:a.a.element.isRequired},t.a=c}).call(this,n(1))},329:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(270),o=n(1),c=n(84),l=n(5),s=n.n(l),u=n(330),d=n(132),f=n(52),g=n(11),m=n(133),p=n(24),h=s.a.useSelect,v=s.a.useDispatch;t.a=function DateRangeSelector(){var t,n=Object(f.c)(),r=h((function(e){return e(g.a).getDateRange()})),l=v(g.a).setDateRange,s=Object(o.useState)(!1),b=a()(s,2),y=b[0],k=b[1],_=Object(o.useRef)();Object(i.a)(_,(function(){return k(!1)})),Object(m.a)([c.c,c.d],_,(function(){return k(!1)}));var O=Object(o.useCallback)((function(){k(!y)}),[y]),E=Object(o.useCallback)((function(e){l(Object.values(n)[e].slug),k(!1)}),[n,l]),j=null===(t=n[r])||void 0===t?void 0:t.label,w=Object.values(n).map((function(e){return e.label}));return e.createElement("div",{ref:_,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor"},e.createElement(p.a,{className:"googlesitekit-header__date-range-selector-menu mdc-button--dropdown googlesitekit-header__dropdown",text:!0,onClick:O,icon:e.createElement(u.a,{width:"18",height:"20"}),"aria-haspopup":"menu","aria-expanded":y,"aria-controls":"date-range-selector-menu"},j),e.createElement(d.a,{menuOpen:y,menuItems:w,onSelected:E,id:"date-range-selector-menu",className:"googlesitekit-width-auto"}))}}).call(this,n(1))},330:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M6 9H4v2h2V9zm4 0H8v2h2V9zm4 0h-2v2h2V9zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 002 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 16H2V7h14v11z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgDateRange(e){return r.createElement("svg",a({viewBox:"0 0 18 20"},e),i)}},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},388:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetup}));var r=n(0),a=n.n(r),i=n(1),o=n(2),c=n(5),l=n.n(c),s=n(190),u=n(21),d=n(15),f=n(23),g=n(41),m=n(191),p=n(135),h=l.a.useSelect,v=l.a.useDispatch;function ModuleSetup(t){var n=t.moduleSlug,r=v(g.a).navigateTo,a=h((function(e){return e(d.c).getAdminURL("googlesitekit-settings")})),c=h((function(e){return e(f.a).getModule(n)})),l={notification:"authentication_success"};n&&(l.slug=n);var b=h((function(e){return e(d.c).getAdminURL("googlesitekit-dashboard",l)})),y=Object(i.useCallback)((function(e){r(e||b)}),[b,r]);if(!(null==c?void 0:c.SetupComponent))return null;var k=c.SetupComponent;return e.createElement(i.Fragment,null,e.createElement(s.a,null,e.createElement(m.a,null,"adsense"===n&&e.createElement(p.a,{href:"https://support.google.com/adsense/"},Object(o.__)("Get help with AdSense","google-site-kit")))),e.createElement("div",{className:"googlesitekit-setup"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement("section",{className:"googlesitekit-setup__wrapper"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement("p",{className:" googlesitekit-setup__intro-title googlesitekit-overline "},Object(o.__)("Connect Service","google-site-kit")),e.createElement(k,{module:c,finishSetup:y})))),e.createElement("div",{className:"googlesitekit-setup__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement(u.a,{id:"setup-".concat(c.slug,"-cancel"),href:a},Object(o.__)("Cancel","google-site-kit"))))))))))))}ModuleSetup.propTypes={moduleSlug:a.a.string.isRequired}}).call(this,n(1))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),l=n.n(c),s=n(33),u=n.n(s),d=n(34),f=n.n(d),g=n(55),m=n.n(g),p=n(43),h=n.n(p),v=n(44),b=n.n(v),y=n(29),k=n.n(y),_=n(0),O=n.n(_),E=n(8),j=n.n(E),w=n(18),S=n(1),N=n(89),D=n(58),C=n(27),x=n(82),T=n(24),P=n(148),M=n(158),R=n(21),A=n(116);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=L(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(m()(t)),t.handleCTAClick=t.handleCTAClick.bind(m()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(C.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(C.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(C.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(C.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,m=r.learnMoreURL,p=r.learnMoreDescription,h=r.learnMoreLabel,v=r.ctaLink,b=r.ctaLabel,y=r.ctaTarget,k=r.type,_=r.dismiss,O=r.isDismissable,E=r.logo,L=r.module,I=r.moduleName,F=r.pageIndex,z=r.anchorLink,U=r.anchorLinkLabel;if(Object(C.c)("notification::dismissed::".concat(o)))return null;var W,q=n?"is-closed":"is-open",H="large"===g&&"win-stats-increase"===k,B="mdc-layout-grid__cell--span-12";"large"===g?(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(B="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),W="win-warning"===k?e.createElement(P.a,null):"win-error"===k?e.createElement(M.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(x.a,t)))})))),V=e.createElement(S.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),z&&U&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(R.a,{href:z},U)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(D.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(S.Fragment,null," ",e.createElement(R.a,{href:m,external:!0,inherit:!0},h),p),F&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},F))),i),K=L?e.createElement(A.a,{slug:L,size:19}):e.createElement(N.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(k),k),a()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},E&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},K),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",B)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,V,G),v&&e.createElement(T.a,{className:"googlesitekit-notification__cta",href:v,target:y,onClick:this.handleCTAClick},b),O&&_&&e.createElement(R.a,{onClick:this.handleDismiss},_)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===k||"win-warning"===k)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},W)))))}}]),Notification}(S.Component);I.propTypes={id:O.a.string.isRequired,className:O.a.string,title:O.a.string.isRequired,description:O.a.node,learnMoreURL:O.a.string,learnMoreDescription:O.a.string,learnMoreLabel:O.a.string,blockData:O.a.array,WinImageSVG:O.a.elementType,SmallImageSVG:O.a.elementType,format:O.a.string,ctaLink:O.a.string,ctaLabel:O.a.string,type:O.a.string,dismiss:O.a.string,isDismissable:O.a.bool,logo:O.a.bool,module:O.a.string,moduleName:O.a.string,pageIndex:O.a.string,dismissExpires:O.a.number,showOnce:O.a.bool,onCTAClick:O.a.func,onDismiss:O.a.func,anchorLink:O.a.string,anchorLinkLabel:O.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,f=l.trackEvent;function g(e){e?s():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},46:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},51:function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f}));var r="modules/idea-hub",a="IDEA_HUB_BUTTON_CREATE",i="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",l="IDEA_HUB_BUTTON_DELETE",s=4,u="IDEA_HUB_ACTIVITY_CREATING_DRAFT",d="IDEA_HUB_ACTIVITY_DRAFT_CREATED",f="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),l=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),u=n.n(s),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),l(n)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function p(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
31
  /* translators: %s: number of days */
32
- Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.38.0","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),p=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,f,g,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=p.length>2&&void 0!==p[2]?p[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,m();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.textContent=Object(i.sprintf)(
33
  /* translators: %d is the number of notifications */
34
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(l),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var l=a()(r.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),l=n(31),s=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),m=n(138),p={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],m=[],p={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?m.push(e):p[e.key]?p[e.key].push(t):(p[e.key]=[t],g.push(e))}));var v=10,b=g.slice(0,v),y=g.slice(v);if(y=y.concat(m),0!==b.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var k=null!==Object(s.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:k||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(p[i]){if(Object(u.d)(o)){var c=p[i][0],s=r[c],f=s.datapoint,g=s.type,m=s.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:m,error:o})}else Object(d.f)(i,o);p[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(m.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(d.d)(e,t,n,a);if(!i){var s=Object(d.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return p.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",p.collectModuleData.bind(p)),t.c=p},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),l=n.n(c),s=n(16),u=n.n(s),d=n(18),f=n(64),g=n.n(f),m=n(2);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,h(h({},o),{},{unit:"second"})):Object(m.sprintf)(
35
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -42,7 +42,7 @@ Object(m._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),a?
42
  Object(m.__)("%sM","google-site-kit"),E(y(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
43
  Object(m.__)("%sK","google-site-kit"),E(y(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
44
  Object(m.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?k(e):"duration"===i?v(e,t):E(e,n)},O=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){O("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),m=g[0],p=g[1];c[m]&&p===c[m]||(l.includes(m)||(s[m]=p))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
45
- /* translators: used between list items, there is a space after the comma. */var s=Object(m.__)(", ","google-site-kit");return e.join(s)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},749:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardApp}));var r=n(1),a=n(325),i=n(750),o=n(751),c=n(190),l=n(329),s=n(191),u=n(114),d=n(752);function DashboardApp(){var t=Object(u.a)("userFeedback");return e.createElement(r.Fragment,null,e.createElement(c.a,null,e.createElement(s.a,null),e.createElement(l.a,null)),e.createElement(o.a,null),e.createElement(a.a,{slug:"dashboard",className:"googlesitekit-module-page googlesitekit-dashboard",Header:i.a}),t&&e.createElement(d.a,{triggerID:"view_dashboard",ttl:3600}))}}).call(this,n(1))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},750:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardHeader}));var r=n(2),a=n(265);function DashboardHeader(){return e.createElement(a.a,{className:"googlesitekit-heading-2 googlesitekit-dashboard__heading",title:Object(r.__)("Site Overview","google-site-kit")})}}).call(this,n(1))},751:function(e,t,n){"use strict";var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),l=n.n(c),s=n(44),u=n.n(s),d=n(29),f=n.n(d),g=n(976),m=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){l()(DashboardNotifications,e);var t=p(DashboardNotifications);function DashboardNotifications(){return a()(this,DashboardNotifications),t.apply(this,arguments)}return o()(DashboardNotifications,[{key:"render",value:function(){return null}}]),DashboardNotifications}(m.Component);t.a=Object(g.a)("googlesitekit.DashboardNotifications")(h)},752:function(e,t,n){"use strict";var r=n(156),a=n(0),i=n.n(a),o=n(5),c=n.n(o),l=n(15),s=n(11),u=c.a.useSelect,d=c.a.useDispatch,f=function SurveyViewTrigger(e){var t=e.triggerID,n=e.ttl,a=u((function(e){return e(l.c).isUsingProxy()})),i=d(s.a).triggerSurvey;return Object(r.a)((function(){a&&i(t,{ttl:n})})),null};f.propTypes={triggerID:i.a.string.isRequired,ttl:i.a.number},f.defaultProps={ttl:0},t.a=f},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,f,g,m,p;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(m=g[0])||void 0===m||null===(p=m.values)||void 0===p?void 0:p[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),l=n.n(c),s=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,g,m,p,h,v,b,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(m=t.isFirstAdmin,p=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:v,event_category:o,event_label:l,value:s,dimension1:p,dimension2:m?"true":"false",dimension3:b,dimension4:"1.38.0",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),m=n.n(g),p=n(0),h=n.n(p),v=n(8),b=n.n(v),y=n(1),k=n(2),_=n(59),O=n(97),E=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,m=t.invertChangeColor,p="button"===l?"button":"",h=g;h&&m&&(h=Object(y.cloneElement)(g,{invertChangeColor:m}));var v=o;c&&(v="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),s&&(v=Object(k.sprintf)(s,v));var j=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&p,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:m})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(O.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(y.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},88:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(199),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL;if(!n)return null;var a=Object(o.sprintf)(
46
  /* translators: %s: Error message */
47
  Object(o.__)("Error: %s","google-site-kit"),n);r&&Object(i.a)(r)&&(a=a+" "+Object(o.sprintf)(
48
  /* translators: %s: Reconnect URL */
25
  /* translators: %s: List of product names */
26
  Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for: %s – make sure to approve all permissions at the authentication stage.","google-site-kit"),Object(f.n)(n));break;case"single":s=Object(l.sprintf)(
27
  /* translators: %1$s: Product name */
28
+ Object(l.__)("Site Kit can’t access the relevant data from %1$s because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup for %1$s – make sure to approve all permissions at the authentication stage.","google-site-kit"),n[0]);break;case"generic":s=Object(l.__)("Site Kit can’t access all relevant data because you haven’t granted all permissions requested during setup. To use Site Kit, you’ll need to redo the setup – make sure to approve all permissions at the authentication stage.","google-site-kit")}return r.createElement(d.a,{id:"authentication error",title:Object(l.__)("Site Kit can’t access necessary data","google-site-kit"),description:s,format:"small",type:"win-error",isDismissable:!1,ctaLink:b,ctaLabel:Object(l.__)("Redo setup","google-site-kit")})}}).call(this,n(14),n(1))},238:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return InternalServerError}));var r=n(5),a=n.n(r),i=n(15),o=n(39),c=a.a.useSelect;function InternalServerError(){var t=c((function(e){return e(i.c).getInternalServerError()}));return t?e.createElement(o.a,t):null}}).call(this,n(1))},239:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M9 16h2v-2H9v2zm1-16C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14C7.79 4 6 5.79 6 8h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z",fill:"currentColor"});t.a=function SvgHelp(e){return r.createElement("svg",a({viewBox:"0 0 20 20",fill:"none"},e),i)}},24:function(e,t,n){"use strict";(function(e){var r=n(17),a=n.n(r),i=n(16),o=n.n(i),c=n(8),l=n.n(c),s=n(0),u=n.n(s),d=n(120),f=n(271),g=n(1),m=n(2),p=n(20),h=Object(g.forwardRef)((function(t,n){var r=t.children,i=t.href,c=t.text,s=t.className,u=t.danger,h=t.disabled,v=t.target,b=t.icon,y=t.trailingIcon,k=t["aria-label"],_=t.title,O=o()(t,["children","href","text","className","danger","disabled","target","icon","trailingIcon","aria-label","title"]),E=Object(g.useCallback)((function(e){null!==e&&p.i.attachTo(e)}),[]),j=Object(d.a)(n,E),w=i&&!h?"a":"button",S=e.createElement(w,a()({className:l()("mdc-button",s,{"mdc-button--raised":!c,"mdc-button--danger":u}),href:h?void 0:i,ref:j,disabled:!!h,"aria-label":function(){var e=k;if("_blank"!==v)return e;var t=Object(m._x)("(opens in a new tab)","screen reader text","google-site-kit");return"string"==typeof r&&(e=e||r),e?"".concat(e," ").concat(t):t}(),target:v||"_self",role:"a"===w?"button":void 0},O),b,r&&e.createElement("span",{className:"mdc-button__label"},r),y);return b&&(_||k)&&void 0===r?e.createElement(f.a,{title:_||k,classes:{popper:"googlesitekit-tooltip-popper",tooltip:"googlesitekit-tooltip"}},S):S}));h.displayName="Button",h.propTypes={onClick:u.a.func,children:u.a.node,href:u.a.string,text:u.a.bool,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,icon:u.a.element,trailingIcon:u.a.element,title:u.a.string},h.defaultProps={onClick:null,href:null,text:!1,className:"",danger:!1,disabled:!1,icon:null,trailingIcon:null,title:null},t.a=h}).call(this,n(1))},241:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(123);function a(e){return!!e&&e.Component===r.a}},242:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return p.a}));var r=n(13),a=n.n(r),i=n(26),o=n.n(i),c=n(98),l=n(241);function s(e,t){if(9!==t)return[e,t];for(var n=(e=o()(e)).length-1;0!==t&&n>=0;)3===e[n]?(t-=3,e[n]=4):6===e[n]&&(t-=6,e[n]=8),n--;return[e,t]}function u(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+c.c[t],width:t}}))}function d(e,t){var n=0,r=0,i=[],o=[],d=function(e,t){return e.counter-t.counter},f=function(e,t){var n=e.counter;return t.counter-n},g=function(e){return e.counter<=12};if(e.forEach((function(m,p){if(Object(l.a)(t[m.slug]))return i.push(0),void o.push(r);var h=u(n,m),v=function(e,t,n){for(;++e<t.length;)if(!Object(l.a)(n[t[e].slug]))return t[e];return null}(p,e,t);null!==v&&0!==u(h.sort(d)[0].counter,v).filter(g).length||h.some(g)&&(h=(h=h.sort(f)).filter(g));var b=h[0].width;if(o.push(r),(n+=c.c[b])>12){if(n-=c.c[b],o[p]++,9===n){var y=s(i,n),k=a()(y,2);i=k[0],n=k[1]}n=c.c[b],r++}else 12===n&&(n=0,r++);i.push(c.c[b])})),9===n){var m=s(i,n),p=a()(m,2);i=p[0],n=p[1]}return{columnWidths:i,rowIndexes:o}}var f=n(218),g=n.n(f);function m(e,t,n){var r=n.columnWidths,a=n.rowIndexes,i=[],l=o()(r),s=null,u=-1,d=[];if(function(e,t){for(var n={},r=0;r<e.length;r++){var a,i=e[r],o=null==t?void 0:t[i.slug],l=null==o?void 0:o.Component,s=null==o||null===(a=o.metadata)||void 0===a?void 0:a.moduleSlug,u=c.b.includes(l);if(!l||!s||!u)return!1;if(n[s]){if(n[s]!==l)return!1}else n[s]=l}return!(Object.keys(n).length>1)}(e,t)){var f=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12].concat(o()(f))}}return e.forEach((function(n,o){var c,f,m,p,h;if(i.push(null),s=t[n.slug],u=a[o],s)if(f=s,m=t[null===(c=e[o+1])||void 0===c?void 0:c.slug],p=u,h=a[o+1],p===h&&g()(f,m))d.push(r[o]),l[o]=0;else if(d.length>0){d.push(r[o]);var v=d.reduce((function(e,t){return e+t}),0);i[o]=s,l[o]=v,d=[]}})),{gridColumnWidths:l,overrideComponents:i}}var p=n(197)},265:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return PageHeader}));var r=n(8),a=n.n(r),i=n(0),o=n.n(i);function PageHeader(t){var n=t.title,r=t.icon,i=t.className,o=t.status,c=t.statusText,l=t.fullWidth,s=t.children,u=l?"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-12\n\t\t":"\n\t\tmdc-layout-grid__cell\n\t\tmdc-layout-grid__cell--span-4-phone\n\t\tmdc-layout-grid__cell--span-4-tablet\n\t\tmdc-layout-grid__cell--span-6-desktop\n\t\t",d=""!==o||Boolean(s);return e.createElement("header",{className:"googlesitekit-page-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},n&&e.createElement("div",{className:u},r,e.createElement("h1",{className:a()("googlesitekit-page-header__title",i)},n)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--align-bottom mdc-layout-grid__cell--align-right-tablet mdc-layout-grid__cell--span-4-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement("div",{className:"googlesitekit-page-header__details"},o&&e.createElement("span",{className:a()("googlesitekit-page-header__status","googlesitekit-page-header__status--".concat(o))},c),s))))}PageHeader.propTypes={title:o.a.string,icon:o.a.node,className:o.a.string,status:o.a.string,statusText:o.a.string,fullWidth:o.a.bool},PageHeader.defaultProps={title:"",icon:null,className:"googlesitekit-heading-3",status:"",statusText:"",fullWidth:!1}}).call(this,n(1))},27:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return g}));var r=n(19),a=n.n(r),i=n(18),o=n(32),c=n(56),l="googlesitekit_legacy_1.38.1_",s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},u=function(t,n){if(void 0!==n&&(!n||"object"!==a()(n)||!n.error&&!n.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(n);var r={value:n,date:Date.now()/1e3};Object(o.a)().setItem(l+t,JSON.stringify(r))}},d=function(t,n){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var r=JSON.parse(Object(o.a)().getItem(l+t));return r&&"object"===a()(r)&&r.date&&(!n||Date.now()/1e3-r.date<n)?(e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r.value),Object(i.cloneDeep)(e._googlesitekitLegacyData.admin.datacache[t])):void 0}},f=function(t){s(),delete e._googlesitekitLegacyData.admin.datacache[t],Object(o.a)().removeItem(l+t)},g=function(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,n],l=0,s=o;l<s.length;l++){var u=s[l];if(!u||!u.length)break;i.push(u)}return 3===i.length&&r&&"object"===a()(r)&&Object.keys(r).length&&i.push(Object(c.a)(r)),i.join("::")}}).call(this,n(14))},274:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportZero}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(121);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportZero(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},275:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetReportError}));var r=n(6),a=n.n(r),i=n(16),o=n.n(i),c=n(0),l=n.n(c),s=n(187);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetReportError(t){t.widgetSlug;var n=o()(t,["widgetSlug"]);return e.createElement(s.a,n)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:l.a.string.isRequired},s.a.propTypes)}).call(this,n(1))},276:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetActivateModuleCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(125);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetActivateModuleCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetActivateModuleCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},277:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetCompleteModuleActivationCTA}));var r=n(6),a=n.n(r),i=n(17),o=n.n(i),c=n(16),l=n.n(c),s=n(0),u=n.n(s),d=n(1),f=n(119),g=n(124);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WidgetCompleteModuleActivationCTA(t){var n=t.widgetSlug,r=t.moduleSlug,a=l()(t,["widgetSlug","moduleSlug"]),i=Object(d.useMemo)((function(){return{moduleSlug:r}}),[r]);return Object(f.a)(n,g.a,i),e.createElement(g.a,o()({moduleSlug:r},a))}WidgetCompleteModuleActivationCTA.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:u.a.string.isRequired},g.a.propTypes)}).call(this,n(1))},278:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetNull}));var r=n(6),a=n.n(r),i=n(0),o=n.n(i),c=n(119),l=n(123);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={};function WidgetNull(t){var n=t.widgetSlug;return Object(c.a)(n,l.a,u),e.createElement(l.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({widgetSlug:o.a.string.isRequired},l.a.propTypes)}).call(this,n(1))},28:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},280:function(e,t,n){"use strict";(function(e,t){var r=n(31),a=n(37),i=n(49),o=n(9),c=n(202),l=n(203),s=n(208),u=n(210),d=n(212),f=e._googlesitekitLegacyData.setup,g=Object(o.j)("notification"),m=Object(i.a)(t.createElement(c.a,null)),p=Object(i.a)(t.createElement(l.a,null)),h=Object(i.a)(t.createElement(s.a,null)),v=Object(i.a)(t.createElement(u.a,null)),b=Object(i.a)(t.createElement(d.a,null));Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",m,10),Object(a.b)("userInput")&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.UserInputSettings",v,1),Object(a.b)("ideaHubModule")&&"authentication_success"!==g&&"authentication_failure"!==g&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.IdeaHubModule",b,1),"authentication_success"===g||"authentication_failure"===g||"user_input_success"===g?Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.SetupNotification",p,1):f.isAuthenticated&&f.isVerified&&Object(r.b)("googlesitekit.DashboardNotifications","googlesitekit.ModulesNotification",h,1)}).call(this,n(14),n(1))},281:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="dashboard",a="pageDashboard"},32:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,a=n(33),i=n.n(a),o=n(34),c=n.n(o),l=function(t){var n=e[t];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==n.length}},s=function(){function NullStorage(){i()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),u=function(){return r||(r=l("sessionStorage")?e.sessionStorage:l("localStorage")?e.localStorage:new s),r}}).call(this,n(14))},322:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),m=n.n(g),p=n(8),h=n.n(p),v=n(111),b=n(1),y=n(2),k=n(31),_=n(126),O=n(100);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(t){u()(NotificationCounter,t);var n=E(NotificationCounter);function NotificationCounter(e){var t;return a()(this,NotificationCounter),(t=n.call(this,e)).state={count:0},t.handleIncrement=t.handleIncrement.bind(l()(t)),t.handleDecrement=t.handleDecrement.bind(l()(t)),t}return o()(NotificationCounter,[{key:"componentDidMount",value:function(){var e=this;Object(k.a)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications",(function(){Object(k.f)("googlesitekit.dataLoaded","googlesitekit.dataLoadedGetTotalNotifications"),Object(_.c)().then((function(t){e.setState({count:t})}))})),document.addEventListener("notificationDismissed",this.handleDecrement,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("notificationDismissed",this.handleDecrement)}},{key:"handleIncrement",value:function(){this.setState(_.d)}},{key:"handleDecrement",value:function(){this.setState(_.a)}},{key:"render",value:function(){var t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name");if(!t)return null;var n=Object(y.sprintf)(
29
  /* translators: %d: the number of notifications */
30
  Object(y._n)("%d notification","%d notifications",this.state.count,"google-site-kit"),this.state.count),r=e.createElement("span",{className:h()("googlesitekit-notifications-counter","update-plugins","count-".concat(this.state.count))},e.createElement("span",{className:"plugin-count","aria-hidden":"true"},this.state.count),e.createElement(O.a,null,n));return Object(v.createPortal)(r,t)}}]),NotificationCounter}(b.Component);t.a=j}).call(this,n(1))},325:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(326),u=n(46),d=n(20),f=l.a.useSelect,g=function WidgetContextRenderer(t){var n=t.slug,r=t.className,a=t.Header,i=t.Footer,c=f((function(e){return n?e(u.b).getWidgetAreas(n):null}));return e.createElement("div",{className:o()("googlesitekit-widget-context",r)},a&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(a,null)))),c&&c.map((function(t){return e.createElement(s.a,{key:t.slug,slug:t.slug,totalAreas:c.length})})),i&&e.createElement(d.b,null,e.createElement(d.l,null,e.createElement(d.a,{size:12},e.createElement(i,null)))))};g.propTypes={slug:a.a.string,className:a.a.string,Header:a.a.elementType,Footer:a.a.elementType},t.a=g}).call(this,n(1))},326:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return WidgetAreaRenderer}));var r=n(0),a=n.n(r),i=n(8),o=n.n(i),c=n(5),l=n.n(c),s=n(98),u=n(46),d=n(327),f=n(242),g=n(20),m=n(328),p=n(241),h=l.a.useSelect;function WidgetAreaRenderer(t){var n=t.slug,r=t.totalAreas,a=h((function(e){return e(u.b).getWidgetArea(n)})),i=h((function(e){return e(u.b).getWidgets(n)})),c=h((function(e){return e(u.b).getWidgetStates()})),l=i.filter((function(e){return!(c[e.slug]&&Object(p.a)(c[e.slug]))})),v=Object(f.c)(i,c),b=v.columnWidths,y=v.rowIndexes,k=Object(f.a)(i,c,{columnWidths:b,rowIndexes:y}),_=k.gridColumnWidths,O=k.overrideComponents,E=i.map((function(t,n){return e.createElement(m.a,{key:"".concat(t.slug,"-wrapper"),gridColumnWidth:_[n]},e.createElement(d.a,{OverrideComponent:O[n]?function(){var t=O[n],r=t.Component,a=t.metadata;return e.createElement(r,a)}:void 0,slug:t.slug}))}));if(!l.length)return e.createElement(g.b,{className:o()(s.a,"googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},E);var j=a.Icon,w=a.title,S=a.style,N=a.subtitle;return e.createElement(g.b,{className:o()("googlesitekit-widget-area","googlesitekit-widget-area--".concat(n),"googlesitekit-widget-area--".concat(S))},r>1&&e.createElement(g.l,null,e.createElement(g.a,{className:"googlesitekit-widget-area-header",size:12},j&&e.createElement(j,{width:33,height:33}),w&&e.createElement("h3",{className:"googlesitekit-widget-area-header__title googlesitekit-heading-3"},w),N&&e.createElement("h4",{className:"googlesitekit-widget-area-header__subtitle"},N))),e.createElement("div",{className:"googlesitekit-widget-area-widgets"},e.createElement(g.l,null,S===u.c.BOXES&&E,S===u.c.COMPOSITE&&e.createElement(g.a,{size:12},e.createElement(g.b,null,e.createElement(g.l,null,E))))))}WidgetAreaRenderer.propTypes={slug:a.a.string.isRequired}}).call(this,n(1))},327:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(1),o=n(5),c=n.n(o),l=n(46),s=n(216),u=n(242),d=n(98),f=c.a.useSelect,g=function WidgetRenderer(t){var n=t.slug,r=t.OverrideComponent,a=f((function(e){return e(l.b).getWidget(n)})),o=Object(u.b)(n),c=o.Widget,g=o.WidgetNull;if(!a)return e.createElement(g,null);var m=a.Component,p=a.wrapWidget,h=e.createElement(m,o);return r?h=e.createElement(i.Fragment,null,e.createElement(s.a,{widgetSlug:"overridden"},e.createElement(r,null)),e.createElement("div",{className:d.a},h)):p&&(h=e.createElement(c,null,h)),h};g.propTypes={slug:a.a.string.isRequired,OverrideComponent:a.a.elementType},t.a=g}).call(this,n(1))},328:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(98),o=n(20),c=function WidgetCellWrapper(t){var n=t.gridColumnWidth,r=t.children;return 0===n?e.createElement("div",{className:i.a},r):n<6?e.createElement(o.a,{lgSize:n,mdSize:4,smSize:2},r):n<8?e.createElement(o.a,{lgSize:n,mdSize:8},r):e.createElement(o.a,{size:n},r)};c.propTypes={gridColumnWidth:a.a.number.isRequired,children:a.a.element.isRequired},t.a=c}).call(this,n(1))},329:function(e,t,n){"use strict";(function(e){var r=n(13),a=n.n(r),i=n(270),o=n(1),c=n(84),l=n(5),s=n.n(l),u=n(330),d=n(132),f=n(52),g=n(11),m=n(133),p=n(24),h=s.a.useSelect,v=s.a.useDispatch;t.a=function DateRangeSelector(){var t,n=Object(f.c)(),r=h((function(e){return e(g.a).getDateRange()})),l=v(g.a).setDateRange,s=Object(o.useState)(!1),b=a()(s,2),y=b[0],k=b[1],_=Object(o.useRef)();Object(i.a)(_,(function(){return k(!1)})),Object(m.a)([c.c,c.d],_,(function(){return k(!1)}));var O=Object(o.useCallback)((function(){k(!y)}),[y]),E=Object(o.useCallback)((function(e){l(Object.values(n)[e].slug),k(!1)}),[n,l]),j=null===(t=n[r])||void 0===t?void 0:t.label,w=Object.values(n).map((function(e){return e.label}));return e.createElement("div",{ref:_,className:"googlesitekit-date-range-selector googlesitekit-dropdown-menu mdc-menu-surface--anchor"},e.createElement(p.a,{className:"googlesitekit-header__date-range-selector-menu mdc-button--dropdown googlesitekit-header__dropdown",text:!0,onClick:O,icon:e.createElement(u.a,{width:"18",height:"20"}),"aria-haspopup":"menu","aria-expanded":y,"aria-controls":"date-range-selector-menu"},j),e.createElement(d.a,{menuOpen:y,menuItems:w,onSelected:E,id:"date-range-selector-menu",className:"googlesitekit-width-auto"}))}}).call(this,n(1))},330:function(e,t,n){"use strict";var r=n(1);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=r.createElement("path",{d:"M6 9H4v2h2V9zm4 0H8v2h2V9zm4 0h-2v2h2V9zm2-7h-1V0h-2v2H5V0H3v2H2C.89 2 .01 2.9.01 4L0 18a2 2 0 002 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 16H2V7h14v11z",fill:"currentColor",fillRule:"evenodd"});t.a=function SvgDateRange(e){return r.createElement("svg",a({viewBox:"0 0 18 20"},e),i)}},36:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return e instanceof Date&&!isNaN(e)}},37:function(e,t,n){"use strict";(function(e){var r,a;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var i=new Set((null===(r=e)||void 0===r||null===(a=r._googlesitekitBaseData)||void 0===a?void 0:a.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,n(14))},388:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ModuleSetup}));var r=n(0),a=n.n(r),i=n(1),o=n(2),c=n(5),l=n.n(c),s=n(190),u=n(21),d=n(15),f=n(23),g=n(41),m=n(191),p=n(135),h=l.a.useSelect,v=l.a.useDispatch;function ModuleSetup(t){var n=t.moduleSlug,r=v(g.a).navigateTo,a=h((function(e){return e(d.c).getAdminURL("googlesitekit-settings")})),c=h((function(e){return e(f.a).getModule(n)})),l={notification:"authentication_success"};n&&(l.slug=n);var b=h((function(e){return e(d.c).getAdminURL("googlesitekit-dashboard",l)})),y=Object(i.useCallback)((function(e){r(e||b)}),[b,r]);if(!(null==c?void 0:c.SetupComponent))return null;var k=c.SetupComponent;return e.createElement(i.Fragment,null,e.createElement(s.a,null,e.createElement(m.a,null,"adsense"===n&&e.createElement(p.a,{href:"https://support.google.com/adsense/"},Object(o.__)("Get help with AdSense","google-site-kit")))),e.createElement("div",{className:"googlesitekit-setup"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement("section",{className:"googlesitekit-setup__wrapper"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement("p",{className:" googlesitekit-setup__intro-title googlesitekit-overline "},Object(o.__)("Connect Service","google-site-kit")),e.createElement(k,{module:c,finishSetup:y})))),e.createElement("div",{className:"googlesitekit-setup__footer"},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-2-phone mdc-layout-grid__cell--span-4-tablet mdc-layout-grid__cell--span-6-desktop "},e.createElement(u.a,{id:"setup-".concat(c.slug,"-cancel"),href:a},Object(o.__)("Cancel","google-site-kit"))))))))))))}ModuleSetup.propTypes={moduleSlug:a.a.string.isRequired}}).call(this,n(1))},39:function(e,t,n){"use strict";(function(e){var r=n(6),a=n.n(r),i=n(3),o=n.n(i),c=n(10),l=n.n(c),s=n(33),u=n.n(s),d=n(34),f=n.n(d),g=n(55),m=n.n(g),p=n(43),h=n.n(p),v=n(44),b=n.n(v),y=n(29),k=n.n(y),_=n(0),O=n.n(_),E=n(8),j=n.n(E),w=n(18),S=n(1),N=n(89),D=n(58),C=n(27),x=n(82),T=n(24),P=n(148),M=n(158),R=n(21),A=n(116);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var a=k()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b()(this,n)}}var I=function(t){h()(Notification,t);var n,r,i=L(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(S.createRef)(),t.handleDismiss=t.handleDismiss.bind(m()(t)),t.handleCTAClick=t.handleCTAClick.bind(m()(t)),0<t.props.dismissExpires&&t.expireDismiss(),t.props.showOnce&&Object(C.f)("notification::displayed::".concat(t.props.id),new Date),t}return f()(Notification,[{key:"handleDismiss",value:(r=l()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),t.preventDefault(),!(n=this.props.onDismiss)){e.next=6;break}return e.next=6,n(t);case 6:this.dismiss();case 7:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"dismiss",value:function(){var e=this,t=this.cardRef.current;this.setState({isClosed:!0}),setTimeout((function(){Object(C.f)("notification::dismissed::".concat(e.props.id),new Date),(null==t?void 0:t.style)&&(t.style.display="none");var n=new Event("notificationDismissed");document.dispatchEvent(n)}),350)}},{key:"handleCTAClick",value:(n=l()(o.a.mark((function e(t){var n,r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.persist(),n=this.props,r=n.isDismissable,!(a=n.onCTAClick)){e.next=5;break}return e.next=5,a(t);case 5:r&&this.dismiss();case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"expireDismiss",value:function(){var e=this.props,t=e.id,n=e.dismissExpires,r=Object(C.c)("notification::dismissed::".concat(t));if(r){var a=new Date(r);a.setSeconds(a.getSeconds()+parseInt(n,10)),a<new Date&&Object(C.b)("notification::dismissed::".concat(t))}}},{key:"render",value:function(){var t,n=this.state.isClosed,r=this.props,i=r.children,o=r.id,c=r.className,l=r.title,s=r.description,u=r.blockData,d=r.WinImageSVG,f=r.SmallImageSVG,g=r.format,m=r.learnMoreURL,p=r.learnMoreDescription,h=r.learnMoreLabel,v=r.ctaLink,b=r.ctaLabel,y=r.ctaTarget,k=r.type,_=r.dismiss,O=r.isDismissable,E=r.logo,L=r.module,I=r.moduleName,F=r.pageIndex,z=r.anchorLink,U=r.anchorLinkLabel;if(Object(C.c)("notification::dismissed::".concat(o)))return null;var W,q=n?"is-closed":"is-open",H="large"===g&&"win-stats-increase"===k,B="mdc-layout-grid__cell--span-12";"large"===g?(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-6-tablet mdc-layout-grid__cell--span-8-desktop ",H&&(B="mdc-layout-grid__cell--order-2-phone mdc-layout-grid__cell--order-1-tablet mdc-layout-grid__cell--span-5-tablet mdc-layout-grid__cell--span-8-desktop ")):"small"===g&&(B="mdc-layout-grid__cell--span-11-desktop mdc-layout-grid__cell--span-7-tablet mdc-layout-grid__cell--span-3-phone"),W="win-warning"===k?e.createElement(P.a,null):"win-error"===k?e.createElement(M.a,null):"";var G=e.createElement(S.Fragment,null,u&&e.createElement("div",{className:"mdc-layout-grid__inner"},Object(w.map)(u,(function(t,n){return e.createElement("div",{key:n,className:j()("mdc-layout-grid__cell",{"mdc-layout-grid__cell--span-5-desktop":H,"mdc-layout-grid__cell--span-4-desktop":!H})},e.createElement("div",{className:"googlesitekit-publisher-win__stats"},e.createElement(x.a,t)))})))),V=e.createElement(S.Fragment,null,l&&e.createElement("h3",{className:"googlesitekit-heading-2 googlesitekit-publisher-win__title"},l),z&&U&&e.createElement("p",{className:"googlesitekit-publisher-win__link"},e.createElement(R.a,{href:z},U)),s&&e.createElement("div",{className:"googlesitekit-publisher-win__desc"},e.createElement("p",null,Object(S.isValidElement)(s)?s:e.createElement("span",{dangerouslySetInnerHTML:Object(D.a)(s,{ALLOWED_TAGS:["strong","em","br","a"],ALLOWED_ATTR:["href"]})}),h&&e.createElement(S.Fragment,null," ",e.createElement(R.a,{href:m,external:!0,inherit:!0},h),p),F&&e.createElement("span",{className:"googlesitekit-publisher-win__detect"},F))),i),K=L?e.createElement(A.a,{slug:L,size:19}):e.createElement(N.a,{height:"34",width:"32"});return e.createElement("section",{id:o,ref:this.cardRef,className:j()(c,"googlesitekit-publisher-win",(t={},a()(t,"googlesitekit-publisher-win--".concat(g),g),a()(t,"googlesitekit-publisher-win--".concat(k),k),a()(t,"googlesitekit-publisher-win--".concat(q),q),t))},e.createElement("div",{className:"mdc-layout-grid"},e.createElement("div",{className:"mdc-layout-grid__inner"},E&&e.createElement("div",{className:j()("mdc-layout-grid__cell","mdc-layout-grid__cell--span-12",{"mdc-layout-grid__cell--order-2-phone":H,"mdc-layout-grid__cell--order-1-tablet":H})},e.createElement("div",{className:"googlesitekit-publisher-win__logo"},K),I&&e.createElement("div",{className:"googlesitekit-publisher-win__module-name"},I)),f&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 googlesitekit-publisher-win__small-media "},e.createElement(f,null)),e.createElement("div",{className:j()("mdc-layout-grid__cell",B)},H?e.createElement("div",{className:"mdc-layout-grid__inner"},e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-5-desktop mdc-layout-grid__cell--span-8-tablet"},V),e.createElement("div",{className:"mdc-layout-grid__cell mdc-layout-grid__cell--span-7-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--align-bottom"},G)):e.createElement(S.Fragment,null,V,G),v&&e.createElement(T.a,{className:"googlesitekit-notification__cta",href:v,target:y,onClick:this.handleCTAClick},b),O&&_&&e.createElement(R.a,{onClick:this.handleDismiss},_)),d&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--order-1-phone mdc-layout-grid__cell--order-2-tablet mdc-layout-grid__cell--span-2-tablet mdc-layout-grid__cell--span-4-desktop "},e.createElement("div",{className:"googlesitekit-publisher-win__image-large"},e.createElement(d,null))),("win-error"===k||"win-warning"===k)&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-1 "},e.createElement("div",{className:"googlesitekit-publisher-win__icons"},W)))))}}]),Notification}(S.Component);I.propTypes={id:O.a.string.isRequired,className:O.a.string,title:O.a.string.isRequired,description:O.a.node,learnMoreURL:O.a.string,learnMoreDescription:O.a.string,learnMoreLabel:O.a.string,blockData:O.a.array,WinImageSVG:O.a.elementType,SmallImageSVG:O.a.elementType,format:O.a.string,ctaLink:O.a.string,ctaLabel:O.a.string,type:O.a.string,dismiss:O.a.string,isDismissable:O.a.bool,logo:O.a.bool,module:O.a.string,moduleName:O.a.string,pageIndex:O.a.string,dismissExpires:O.a.number,showOnce:O.a.bool,onCTAClick:O.a.func,onDismiss:O.a.func,anchorLink:O.a.string,anchorLinkLabel:O.a.string},I.defaultProps={isDismissable:!0,className:"",dismissExpires:0,showOnce:!1},t.a=I}).call(this,n(1))},40:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var r=n(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},l=Object(r.a)(c),s=l.enableTracking,u=l.disableTracking,d=l.isTrackingEnabled,f=l.trackEvent;function g(e){e?s():u()}!0===o&&g(d())}).call(this,n(14))},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/location"},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(36),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var n=e.split("-");return 3===n.length&&Object(r.a)(new Date(e))}},46:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return i}));var r={BOXES:"boxes",COMPOSITE:"composite"},a={QUARTER:"quarter",HALF:"half",FULL:"full"},i="core/widgets"},48:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28);function a(e){return function(){e[r.a]=e[r.a]||[],e[r.a].push(arguments)}}},49:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(17),a=n.n(r),i=n(1),o=function(e){return function(t){return function FilteredComponent(n){return Object(i.createElement)(i.Fragment,{},"",Object(i.createElement)(t,n),e)}}},c=function(t,n){return function(r){return function InnerComponent(i){return e.createElement(t,a()({},i,n,{OriginalComponent:r}))}}}}).call(this,n(1))},5:function(e,t){e.exports=googlesitekit.data},51:function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"i",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return f}));var r="modules/idea-hub",a="IDEA_HUB_BUTTON_CREATE",i="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",l="IDEA_HUB_BUTTON_DELETE",s=4,u="IDEA_HUB_ACTIVITY_CREATING_DRAFT",d="IDEA_HUB_ACTIVITY_DRAFT_CREATED",f="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return d.a})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return f}));var r="Invalid dateString parameter, it must be a string.",a='Invalid date range, it must be a string with the format "last-x-days".',i=n(7),o=n.n(i),c=n(36),l=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var n="".concat(t.getMonth()+1),r="".concat(t.getDate());return[t.getFullYear(),n.length<2?"0".concat(n):n,r.length<2?"0".concat(r):r].join("-")},s=n(13),u=n.n(s),d=n(42),f=function(e){o()(Object(d.a)(e),r);var t=e.split("-"),n=u()(t,3),a=n[0],i=n[1],c=n[2];return new Date(a,i-1,c)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=f(e);return n.setDate(n.getDate()-t),l(n)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function p(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var h=n(2);function v(){var e=function(e){return Object(h.sprintf)(
31
  /* translators: %s: number of days */
32
+ Object(h._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}}}},54:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/forms"},56:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(19),a=n.n(r),i=n(70),o=n.n(i),c=function(e){return o()(JSON.stringify(function e(t){var n={};return Object.keys(t).sort().forEach((function(r){var i=t[r];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),n[r]=i})),n}(e)))}},58:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(19),a=n.n(r),i=n(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,n="object"===a()(e)?e.toString():e;return null==n||null===(t=n.replace)||void 0===t?void 0:t.call(n,/\/+$/,"")}},59:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(8),o=n.n(i);function ChangeArrow(t){var n=t.direction,r=t.invertColor,a=t.width,i=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(n),{"googlesitekit-change-arrow--inverted-color":r}),width:a,height:i,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:a.a.string,invertColor:a.a.bool,width:a.a.number,height:a.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,n(1))},60:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return b}));var r=n(3),a=n.n(r),i=n(10),o=n.n(i);n(26);function c(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,u="googlesitekit_".concat("1.38.1","_"),d=["sessionStorage","localStorage"],f=[].concat(d),g=function(){var t=o()(a.a.mark((function t(n){var r,i;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e[n]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,i="__storage_test__",r.setItem(i,i),r.removeItem(i),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==r.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=o()(a.a.mark((function t(){var n,r,i,o,l;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(n=e._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}i=c(f),t.prev=4,i.s();case 6:if((o=i.n()).done){t.next=16;break}if(l=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,g(l);case 12:if(!t.sent){t.next=14;break}s=e[l];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),i.e(t.t0);case 21:return t.prev=21,i.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),p=function(){var e=o()(a.a.mark((function e(t){var n,r,i,o,c,l,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m();case 2:if(!(n=e.sent)){e.next=10;break}if(!(r=n.getItem("".concat(u).concat(t)))){e.next=10;break}if(i=JSON.parse(r),o=i.timestamp,c=i.ttl,l=i.value,s=i.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:l,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function(){var t=o()(a.a.mark((function t(n,r){var i,o,c,l,s,d,f,g,p=arguments;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=p.length>2&&void 0!==p[2]?p[2]:{},o=i.ttl,c=void 0===o?3600:o,l=i.timestamp,s=void 0===l?Math.round(Date.now()/1e3):l,d=i.isError,f=void 0!==d&&d,t.next=3,m();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(u).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:f})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,n){return t.apply(this,arguments)}}(),v=function(){var t=o()(a.a.mark((function t(n){var r;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m();case 2:if(!(r=t.sent)){t.next=13;break}return t.prev=4,r.removeItem("".concat(u).concat(n)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),b=function(){var t=o()(a.a.mark((function t(){var n,r,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m();case 2:if(!(n=t.sent)){t.next=14;break}for(t.prev=4,r=[],i=0;i<n.length;i++)0===(o=n.key(i)).indexOf(u)&&r.push(o.substring(u.length));return t.abrupt("return",r);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,n(14))},61:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return d}));var r=n(13),a=n.n(r),i=n(2);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===n)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var l=document.createElement("span");return l.setAttribute("class","screen-reader-text"),l.textContent=Object(i.sprintf)(
33
  /* translators: %d is the number of notifications */
34
  Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(l),t&&null===r&&t.appendChild(o),n&&null===a&&n.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),n={},r=0;r<t.length;r++)n[t[r].split("=")[0]]=decodeURIComponent(t[r].split("=")[1]);return e?n.hasOwnProperty(e)?decodeURIComponent(n[e].replace(/\+/g," ")):"":n},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(t.href);if(e)return n.searchParams&&n.searchParams.get?n.searchParams.get(e):u(e);var r,i={},c=o(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var l=a()(r.value,2),s=l[0],d=l[1];i[s]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,n(14))},62:function(e,t,n){"use strict";var r=n(13),a=n.n(r),i=n(18),o=n(85),c=n(147),l=n(31),s=n(61),u=n(66),d=n(27),f=n(77);n.d(t,"a",(function(){return f.a})),n.d(t,"b",(function(){return f.b}));var g=n(99),m=n(138),p={maxRequests:10,combinedGet:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],f=25;Object(i.each)(e,(function(e){e.key=Object(d.d)(e.type,e.identifier,e.datapoint,e.data);var n=Object(d.c)(e.key,e.maxAge);void 0!==n?(setTimeout((function(){t.resolve(e,n)}),f),f+=25):r.push(e)})),r=Object(i.sortBy)(r,"priority");var g=[],m=[],p={},h=!!r.find((function(e){return e.priority<10}));Object(i.each)(r,(function(e,t){!n&&10<=e.priority&&h?m.push(e):p[e.key]?p[e.key].push(t):(p[e.key]=[t],g.push(e))}));var v=10,b=g.slice(0,v),y=g.slice(v);if(y=y.concat(m),0!==b.length||0!==y.length){0<y.length&&0<this.maxRequests--?setTimeout((function(){t.combinedGet(y,!0)}),50):this.maxRequests=10;var k=null!==Object(s.c)("datacache");return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/data/",{datacache:k||void 0}),data:{request:b},method:"POST"}).then((function(e){Object.entries(e).forEach((function(e){var n=a()(e,2),i=n[0],o=n[1];if(p[i]){if(Object(u.d)(o)){var c=p[i][0],s=r[c],f=s.datapoint,g=s.type,m=s.identifier;t.handleWPError({method:"GET",datapoint:f,type:g,identifier:m,error:o})}else Object(d.f)(i,o);p[i].forEach((function(e){var n=r[e];t.resolve(n,o)})),0===y.length&&Object(l.d)("googlesitekit.dataLoaded","api")}else console.debug("data_error","unknown response key "+i)}))})).catch((function(e){console.warn("Error caught during combinedGet","code:".concat(e.code),'error:"'.concat(e.message,'"'))}))}Object(l.d)("googlesitekit.dataLoaded","cache")},handleWPError:function(e){var t=e.method,n=e.datapoint,r=e.type,a=e.identifier,i=e.error;console.warn("WP Error in data response","method:".concat(t),"type:".concat(r),"identifier:".concat(a),"datapoint:".concat(n),'error:"'.concat(i.message,'"')),Object(m.a)({method:t,datapoint:n,type:r,identifier:a,error:i})},resolve:function(e,t){e&&"function"==typeof e.callback&&e.callback(t,e.datapoint)},invalidateCacheGroup:g.a,collectModuleData:function(e,t){var n=Object(l.c)("googlesitekit.module"+e+"DataRequest",[],t);0!==n.length&&this.combinedGet(n)},get:function(e,t,n){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=Object(d.d)(e,t,n,a);if(!i){var s=Object(d.c)(l,3600);if(void 0!==s)return new Promise((function(e){e(s)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),a)}).then((function(e){return i||Object(d.f)(l,e),Promise.resolve(e)})).catch((function(a){return r.handleWPError({method:"GET",datapoint:n,type:e,identifier:t,error:a}),Promise.reject(a)}))},set:function(e,t,n,r){var a=this,i={};return i.data=r,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(n),data:i,method:"POST"}).then((function(r){return p.invalidateCacheGroup(e,t,n),new Promise((function(e){e(r)}))})).catch((function(r){return a.handleWPError({method:"POST",datapoint:n,type:e,identifier:t,error:r}),Promise.reject(r)}))},setModuleActive:function(e,t){return this.set(f.a,"modules","activation",{slug:e,active:t})}};Object(l.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(l.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",p.collectModuleData.bind(p)),t.c=p},65:function(e,t,n){"use strict";function r(e){return new URL(e).pathname}function a(e,t){return new URL(t,e).href}function i(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i}))},66:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(53),a=n.n(r),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function l(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return r}));var r="core/ui"},68:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return E})),n.d(t,"b",(function(){return j})),n.d(t,"a",(function(){return w}));var r=n(13),a=n.n(r),i=n(19),o=n.n(i),c=n(6),l=n.n(c),s=n(16),u=n.n(s),d=n(18),f=n(64),g=n.n(f),m=n(2);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=b(e,t),r=n.formatUnit,a=n.formatDecimal;try{return r()}catch(e){return a()}},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var n=Math.floor(e/60/60),r=Math.floor(e/60%60),a=Math.floor(e%60);return{hours:n,minutes:r,seconds:a,formatUnit:function(){var i=t.unitDisplay,o=h(h({unitDisplay:void 0===i?"short":i},u()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(a,h(h({},o),{},{unit:"second"})):Object(m.sprintf)(
35
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
42
  Object(m.__)("%sM","google-site-kit"),E(y(e),e%10==0?{}:t)):1e4<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
43
  Object(m.__)("%sK","google-site-kit"),E(y(e))):1e3<=e?Object(m.sprintf)(// translators: %s: an abbreviated number in thousands.
44
  Object(m.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var n={};if("%"===t)n={style:"percent",maximumFractionDigits:2};else{if("s"===t)return v(e,{unitDisplay:"narrow"});t&&"string"==typeof t?n={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(n=h({},t))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?k(e):"duration"===i?v(e,t):E(e,n)},O=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,i=u()(t,["locale"]);try{return new Intl.NumberFormat(r,i).format(e)}catch(t){O("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(i)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},l=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(i);d<f.length;d++){var g=a()(f[d],2),m=g[0],p=g[1];c[m]&&p===c[m]||(l.includes(m)||(s[m]=p))}try{return new Intl.NumberFormat(r,s).format(e)}catch(t){return new Intl.NumberFormat(r).format(e)}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.locale,r=void 0===n?w():n,a=t.style,i=void 0===a?"long":a,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var l=new Intl.ListFormat(r,{style:i,type:c});return l.format(e)}
45
+ /* translators: used between list items, there is a space after the comma. */var s=Object(m.__)(", ","google-site-kit");return e.join(s)},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,n(14))},74:function(e,t,n){"use strict";function r(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function a(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,n=0,o=[r,a,i];n<o.length;n++){t=(0,o[n])(t)}return t}n.d(t,"a",(function(){return o}))},749:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardApp}));var r=n(1),a=n(325),i=n(750),o=n(751),c=n(190),l=n(329),s=n(191),u=n(114),d=n(752);function DashboardApp(){var t=Object(u.a)("userFeedback");return e.createElement(r.Fragment,null,e.createElement(c.a,null,e.createElement(s.a,null),e.createElement(l.a,null)),e.createElement(o.a,null),e.createElement(a.a,{slug:"dashboard",className:"googlesitekit-module-page googlesitekit-dashboard",Header:i.a}),t&&e.createElement(d.a,{triggerID:"view_dashboard",ttl:3600}))}}).call(this,n(1))},75:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(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)]}},750:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return DashboardHeader}));var r=n(2),a=n(265);function DashboardHeader(){return e.createElement(a.a,{className:"googlesitekit-heading-2 googlesitekit-dashboard__heading",title:Object(r.__)("Site Overview","google-site-kit")})}}).call(this,n(1))},751:function(e,t,n){"use strict";var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(43),l=n.n(c),s=n(44),u=n.n(s),d=n(29),f=n.n(d),g=n(976),m=n(1);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var a=f()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u()(this,n)}}var h=function(e){l()(DashboardNotifications,e);var t=p(DashboardNotifications);function DashboardNotifications(){return a()(this,DashboardNotifications),t.apply(this,arguments)}return o()(DashboardNotifications,[{key:"render",value:function(){return null}}]),DashboardNotifications}(m.Component);t.a=Object(g.a)("googlesitekit.DashboardNotifications")(h)},752:function(e,t,n){"use strict";var r=n(156),a=n(0),i=n.n(a),o=n(5),c=n.n(o),l=n(15),s=n(11),u=c.a.useSelect,d=c.a.useDispatch,f=function SurveyViewTrigger(e){var t=e.triggerID,n=e.ttl,a=u((function(e){return e(l.c).isUsingProxy()})),i=d(s.a).triggerSurvey;return Object(r.a)((function(){a&&i(t,{ttl:n})})),null};f.propTypes={triggerID:i.a.string.isRequired,ttl:i.a.number},f.defaultProps={ttl:0},t.a=f},76:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(189),a=n(59),i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=n.invertColor,o=void 0!==i&&i;return Object(r.a)(e.createElement(a.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,n,r,a,i,o,c,l,s,u,d,f,g,m,p;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.rows)||void 0===r?void 0:r.length)||(null==e||null===(a=e[0])||void 0===a||null===(i=a.data)||void 0===i||null===(o=i.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(l=c.metrics)||void 0===l||null===(s=l[0])||void 0===s||null===(u=s.values)||void 0===u?void 0:u[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(m=g[0])||void 0===m||null===(p=m.values)||void 0===p?void 0:p[0])}}).call(this,n(1))},77:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r="core",a="modules"},78:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r=n(6),a=n.n(r),i=n(79),o=n(80);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=l(l({},s),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,n),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,n,r)}}}).call(this,n(14))},79:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(48),a=n(28);function i(t,n){var i=Object(r.a)(n);return function(){t.trackingEnabled=!0;var n=e.document;if(!n.querySelector("script[".concat(a.b,"]"))){var r=n.createElement("script");r.setAttribute(a.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),n.head.appendChild(r),i("js",new Date),i("config",t.trackingID)}}}}).call(this,n(14))},80:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var r=n(3),a=n.n(r),i=n(6),o=n.n(i),c=n(10),l=n.n(c),s=n(48),u=n(37);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(t,n,r){var i=Object(s.a)(n);return function(){var n=l()(a.a.mark((function n(o,c,l,s){var d,g,m,p,h,v,b,y;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(m=t.isFirstAdmin,p=t.referenceSiteURL,h=t.trackingEnabled,v=t.trackingID,b=t.userIDHash,!(null===(d=r._gaUserPrefs)||void 0===d||null===(g=d.ioo)||void 0===g?void 0:g.call(d))){n.next=3;break}return n.abrupt("return");case 3:if(h){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:v,event_category:o,event_label:l,value:s,dimension1:p,dimension2:m?"true":"false",dimension3:b,dimension4:"1.38.1",dimension5:Array.from(u.a).join(", ")},n.abrupt("return",new Promise((function(t){var n=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,f(f({},y),{},{event_callback:function(){clearTimeout(n),t()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(e,t,r,a){return n.apply(this,arguments)}}()}}).call(this,n(14))},81:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(109),a=n.n(r)()(e)}).call(this,n(14))},82:function(e,t,n){"use strict";(function(e){var r=n(33),a=n.n(r),i=n(34),o=n.n(i),c=n(55),l=n.n(c),s=n(43),u=n.n(s),d=n(44),f=n.n(d),g=n(29),m=n.n(g),p=n(0),h=n.n(p),v=n(8),b=n.n(v),y=n(1),k=n(2),_=n(59),O=n(97),E=n(9);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var a=m()(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return f()(this,n)}}var w=function(t){u()(DataBlock,t);var n=j(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=n.call(this,e)).handleClick=t.handleClick.bind(l()(t)),t.handleKeyPress=t.handleKeyPress.bind(l()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,n=t.stat,r=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||r(n)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,l=t.context,s=t.period,u=t.selected,d=t.handleStatSelection,f=t.source,g=t.sparkline,m=t.invertChangeColor,p="button"===l?"button":"",h=g;h&&m&&(h=Object(y.cloneElement)(g,{invertChangeColor:m}));var v=o;c&&(v="%"===c?Object(E.q)(o,{style:"percent",signDisplay:"never",maximumFractionDigits:1}):Object(E.q)(o,c)),s&&(v=Object(k.sprintf)(s,v));var j=a&&Object(E.q)(a,i||void 0);return e.createElement("div",{className:b()("googlesitekit-data-block",n,"googlesitekit-data-block--".concat(l),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===l?"0":"-1",role:d&&p,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&r,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},r),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},j)),h&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},h),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:b()("googlesitekit-data-block__change",{"googlesitekit-data-block__change--no-change":!o})},e.createElement(y.Fragment,null,!!o&&e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(_.a,{direction:0<parseFloat(o)?"up":"down",invertColor:m})),e.createElement("span",{className:"googlesitekit-data-block__value"},v))),f&&e.createElement(O.a,{className:"googlesitekit-data-block__source",name:f.name,href:f.link,external:null==f?void 0:f.external})))}}]),DataBlock}(y.Component);w.propTypes={stat:h.a.number,onClick:h.a.func,className:h.a.string,title:h.a.string,datapoint:h.a.oneOfType([h.a.string,h.a.number]),datapointUnit:h.a.string,change:h.a.oneOfType([h.a.string,h.a.number]),changeDataUnit:h.a.oneOfType([h.a.string,h.a.bool]),context:h.a.string,period:h.a.string,selected:h.a.bool,handleStatSelection:h.a.func,invertChangeColor:h.a.bool},w.defaultProps={stat:null,onClick:null,className:"",title:"",datapoint:null,datapointUnit:"",change:null,changeDataUnit:"",context:"default",period:"",selected:!1,handleStatSelection:null,invertChangeColor:!1},t.a=w}).call(this,n(1))},85:function(e,t,n){"use strict";(function(e){var r=n(22),a=n.n(r),i=n(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,l=o.nonceEndpoint,s=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=l,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(s),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,n(14))},88:function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),i=n(199),o=n(2),c=n(9);function ErrorText(t){var n=t.message,r=t.reconnectURL;if(!n)return null;var a=Object(o.sprintf)(
46
  /* translators: %s: Error message */
47
  Object(o.__)("Error: %s","google-site-kit"),n);r&&Object(i.a)(r)&&(a=a+" "+Object(o.sprintf)(
48
  /* translators: %s: Reconnect URL */
dist/assets/js/{googlesitekit-datastore-forms.192033e840e2d098c435.js → googlesitekit-datastore-forms.c763a4d9e0e59b852809.js} RENAMED
@@ -1,6 +1,6 @@
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[10],{2:function(t,r){t.exports=googlesitekit.i18n},28:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},32:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n,o=e(33),a=e.n(o),i=e(34),c=e.n(i),u=function(r){var e=t[r];if(!e)return!1;try{var n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,e(14))},36:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},37:function(t,r,e){"use strict";(function(t){var n,o;e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return r instanceof Set&&r.has(t)}}).call(this,e(14))},40:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p})),e.d(r,"b",(function(){return d}));var n=e(78),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(t){t?s():l()}!0===i&&p(f())}).call(this,e(14))},42:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(36),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="string"==typeof t;if(!r)return!1;var e=t.split("-");return 3===e.length&&Object(n.a)(new Date(t))}},48:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(28);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},49:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(17),o=e.n(n),a=e(1),i=function(t){return function(r){return function FilteredComponent(e){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(r,e),t)}}},c=function(r,e){return function(n){return function InnerComponent(a){return t.createElement(r,o()({},a,e,{OriginalComponent:n}))}}}}).call(this,e(1))},5:function(t,r){t.exports=googlesitekit.data},50:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"b",(function(){return b}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(7),u=e.n(c),s=e(70),l=e.n(s),f=e(9);function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(t,r){if(r&&Array.isArray(r)){var e=r.map((function(t){return"object"===i()(t)?Object(f.u)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(e)))}return t}var g={receiveError:function(t,r,e){return u()(t,"error is required."),r&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:r,args:e}}},clearError:function(t,r){return t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:r}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"selectorName is required."),t.getError(r,e,n)},getErrorForAction:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"actionName is required."),t.getError(r,e,n)},getError:function(t,r,e){var n=t.error,o=t.errors;return r||e?(u()(r,"baseName is required."),o[v(r,e)]):n},getErrors:function(t){var r=new Set(Object.values(t.errors));return void 0!==t.error&&r.add(t.error),Array.from(r)},hasErrors:function(r){return t.getErrors(r).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return p(p({},t),{},a?{errors:p(p({},t.errors||{}),{},o()({},v(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},t);if(u){var f=v(u,s);l.errors=p({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},t);if(d)for(var b in g.errors=p({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},52:function(t,r,e){"use strict";e.d(r,"a",(function(){return o})),e.d(r,"b",(function(){return n})),e.d(r,"e",(function(){return u})),e.d(r,"f",(function(){return p})),e.d(r,"g",(function(){return v})),e.d(r,"h",(function(){return f.a})),e.d(r,"d",(function(){return g})),e.d(r,"c",(function(){return m})),e.d(r,"i",(function(){return d}));var n="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".',a=e(7),i=e.n(a),c=e(36),u=function(t){var r=new Date(t);i()(Object(c.a)(r),"Date param must construct to a valid date instance or be a valid date instance itself.");var e="".concat(r.getMonth()+1),n="".concat(r.getDate());return[r.getFullYear(),e.length<2?"0".concat(e):e,n.length<2?"0".concat(n):n].join("-")},s=e(13),l=e.n(s),f=e(42),d=function(t){i()(Object(f.a)(t),n);var r=t.split("-"),e=l()(r,3),o=e[0],a=e[1],c=e[2];return new Date(o,a-1,c)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,e=d(t);return e.setDate(e.getDate()-r),u(e)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.split("-");return 3===r.length&&"last"===r[0]&&!Number.isNaN(r[1])&&!Number.isNaN(parseFloat(r[1]))&&"days"===r[2]};function g(t){var r=t.match(/last-(\d+)-days/);if(r&&r[1])return parseInt(r[1],10);throw new Error("Unrecognized date range slug.")}var b=e(2);function m(){var t=function(t){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
- Object(b._n)("Last %s day","Last %s days",t,"google-site-kit"),t)};return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}},54:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return n}));var n="core/forms"},56:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(19),o=e.n(n),a=e(70),i=e.n(a),c=function(t){return i()(JSON.stringify(function t(r){var e={};return Object.keys(r).sort().forEach((function(n){var a=r[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),e[n]=a})),e}(t)))}},58:function(t,r,e){"use strict";e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(19),o=e.n(n),a=e(81),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,r)}};function c(t){var r,e="object"===o()(t)?t.toString():t;return null==e||null===(r=e.replace)||void 0===r?void 0:r.call(e,/\/+$/,"")}},59:function(t,r,e){"use strict";(function(t){var n=e(0),o=e.n(n),a=e(8),i=e.n(a);function ChangeArrow(r){var e=r.direction,n=r.invertColor,o=r.width,a=r.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:o.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},r.a=ChangeArrow}).call(this,e(1))},60:function(t,r,e){"use strict";(function(t){e.d(r,"b",(function(){return g})),e.d(r,"d",(function(){return b})),e.d(r,"a",(function(){return m})),e.d(r,"c",(function(){return h}));var n=e(3),o=e.n(n),a=e(10),i=e.n(a);e(26);function c(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var s,l="googlesitekit_".concat("1.38.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var r=i()(o.a.mark((function r(e){var n,a;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t[e]){r.next=3;break}return r.abrupt("return",!1);case 3:return r.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(3),r.abrupt("return",r.t0 instanceof DOMException&&(22===r.t0.code||1014===r.t0.code||"QuotaExceededError"===r.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.t0.name)&&0!==n.length);case 13:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(t){return r.apply(this,arguments)}}(),v=function(){var r=i()(o.a.mark((function r(){var e,n,a,i,u;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(e=t._googlesitekitLegacyData)||void 0===e||null===(n=e.admin)||void 0===n?void 0:n.nojscache)){r.next=2;break}return r.abrupt("return",null);case 2:if(void 0!==s){r.next=25;break}a=c(d),r.prev=4,a.s();case 6:if((i=a.n()).done){r.next=16;break}if(u=i.value,!s){r.next=10;break}return r.abrupt("continue",14);case 10:return r.next=12,p(u);case 12:if(!r.sent){r.next=14;break}s=t[u];case 14:r.next=6;break;case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(4),a.e(r.t0);case 21:return r.prev=21,a.f(),r.finish(21);case 24:void 0===s&&(s=null);case 25:return r.abrupt("return",s);case 26:case"end":return r.stop()}}),r,null,[[4,18,21,24]])})));return function(){return r.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(r){var e,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(e=t.sent)){t.next=10;break}if(!(n=e.getItem("".concat(l).concat(r)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),b=function(){var r=i()(o.a.mark((function r(e,n){var a,i,c,u,s,f,d,p,g=arguments;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,r.next=3,v();case 3:if(!(p=r.sent)){r.next=14;break}return r.prev=5,p.setItem("".concat(l).concat(e),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(5),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 14:return r.abrupt("return",!1);case 15:case"end":return r.stop()}}),r,null,[[5,10]])})));return function(t,e){return r.apply(this,arguments)}}(),m=function(){var r=i()(o.a.mark((function r(e){var n;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(n=r.sent)){r.next=13;break}return r.prev=4,n.removeItem("".concat(l).concat(e)),r.abrupt("return",!0);case 9:return r.prev=9,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 13:return r.abrupt("return",!1);case 14:case"end":return r.stop()}}),r,null,[[4,9]])})));return function(t){return r.apply(this,arguments)}}(),h=function(){var r=i()(o.a.mark((function r(){var e,n,a,i;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(e=r.sent)){r.next=14;break}for(r.prev=4,n=[],a=0;a<e.length;a++)0===(i=e.key(a)).indexOf(l)&&n.push(i.substring(l.length));return r.abrupt("return",n);case 10:return r.prev=10,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",[]);case 14:return r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,10]])})));return function(){return r.apply(this,arguments)}}()}).call(this,e(14))},61:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return u})),e.d(r,"b",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(13),o=e.n(n),a=e(2);function i(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=null,e=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(r=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),e=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===r&&null===e)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(a._n)("%d notification","%d notifications",t,"google-site-kit"),t),i.appendChild(c),i.appendChild(u),r&&null===n&&r.appendChild(i),e&&null===o&&e.appendChild(i),i},s=function(){t.localStorage&&t.localStorage.clear(),t.sessionStorage&&t.sessionStorage.clear()},l=function(t){for(var r=location.search.substr(1).split("&"),e={},n=0;n<r.length;n++)e[r[n].split("=")[0]]=decodeURIComponent(r[n].split("=")[1]);return t?e.hasOwnProperty(t)?decodeURIComponent(e[t].replace(/\+/g," ")):"":e},f=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,e=new URL(r.href);if(t)return e.searchParams&&e.searchParams.get?e.searchParams.get(t):l(t);var n,a={},c=i(e.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=o()(n.value,2),s=u[0],f=u[1];a[s]=f}}catch(t){c.e(t)}finally{c.f()}return a}}).call(this,e(14))},65:function(t,r,e){"use strict";function n(t){return new URL(t).pathname}function o(t,r){return new URL(r,t).href}function a(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return o})),e.d(r,"c",(function(){return a}))},68:function(t,r,e){"use strict";(function(t){e.d(r,"c",(function(){return w})),e.d(r,"d",(function(){return S})),e.d(r,"b",(function(){return k})),e.d(r,"a",(function(){return E}));var n=e(13),o=e.n(n),a=e(19),i=e.n(a),c=e(6),u=e.n(c),s=e(16),l=e.n(s),f=e(18),d=e(64),p=e.n(d),v=e(2);function g(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function b(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?g(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var m=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=h(t,r),n=e.formatUnit,o=e.formatDecimal;try{return n()}catch(t){return o()}},h=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=parseInt(t,10),Number.isNaN(t)&&(t=0);var e=Math.floor(t/60/60),n=Math.floor(t/60%60),o=Math.floor(t%60);return{hours:e,minutes:n,seconds:o,formatUnit:function(){var a=r.unitDisplay,i=b(b({unitDisplay:void 0===a?"short":a},l()(r,["unitDisplay"])),{},{style:"unit"});return 0===t?S(o,b(b({},i),{},{unit:"second"})):Object(v.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -13,4 +13,4 @@ Object(v._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?
13
  Object(v.__)("%sM","google-site-kit"),S(y(t),t%10==0?{}:r)):1e4<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(v.__)("%sK","google-site-kit"),S(y(t))):1e3<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(v.__)("%sK","google-site-kit"),S(y(t),t%10==0?{}:r)):S(t,{signDisplay:"never",maximumFractionDigits:1})},w=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(f.isFinite)(t)?t:Number(t),Object(f.isFinite)(t)||(console.warn("Invalid number",t,i()(t)),t=0);var e={};if("%"===r)e={style:"percent",maximumFractionDigits:2};else{if("s"===r)return m(t,{unitDisplay:"narrow"});r&&"string"==typeof r?e={style:"currency",currency:r}:Object(f.isPlainObject)(r)&&(e=b({},r))}var n=e,o=n.style,a=void 0===o?"metric":o;return"metric"===a?O(t):"duration"===a?m(t,r):S(t,e)},j=p()(console.warn),S=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?E():e,a=l()(r,["locale"]);try{return new Intl.NumberFormat(n,a).format(t)}catch(r){j("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(i()(t)," )"),r.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var p=o()(d[f],2),v=p[0],g=p[1];c[v]&&g===c[v]||(u.includes(v)||(s[v]=g))}try{return new Intl.NumberFormat(n,s).format(t)}catch(r){return new Intl.NumberFormat(n).format(t)}},k=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?E():e,o=r.style,a=void 0===o?"long":o,i=r.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(v.__)(", ","google-site-kit");return t.join(s)},E=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(f.get)(r,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return r.navigator.language}}).call(this,e(14))},74:function(t,r,e){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var r=t,e=0,i=[n,o,a];e<i.length;e++){r=(0,i[e])(r)}return r}e.d(r,"a",(function(){return i}))},75:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}},76:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var n=e(189),o=e(59),a=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(r)))return"";var a=e.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:r>0?"up":"down",invertColor:i}))},i=function(t){var r,e,n,o,a,i,c,u,s,l,f,d,p,v,g;if(void 0!==t)return 1===(null==t||null===(r=t[0])||void 0===r||null===(e=r.data)||void 0===e||null===(n=e.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,e(1))},78:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n=e(6),o=e.n(n),a=e(79),i=e(80);function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),r);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,e),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,e,n)}}}).call(this,e(14))},79:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a}));var n=e(48),o=e(28);function a(r,e){var a=Object(n.a)(e);return function(){r.trackingEnabled=!0;var e=t.document;if(!e.querySelector("script[".concat(o.b,"]"))){var n=e.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID,"&l=").concat(o.a),e.head.appendChild(n),a("js",new Date),a("config",r.trackingID)}}}}).call(this,e(14))},80:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p}));var n=e(3),o=e.n(n),a=e(6),i=e.n(a),c=e(10),u=e.n(c),s=e(48),l=e(37);function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){i()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function p(r,e,n){var a=Object(s.a)(e);return function(){var e=u()(o.a.mark((function e(i,c,u,s){var f,p,v,g,b,m,h,y;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=r.isFirstAdmin,g=r.referenceSiteURL,b=r.trackingEnabled,m=r.trackingID,h=r.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){e.next=3;break}return e.abrupt("return");case 3:if(b){e.next=5;break}return e.abrupt("return");case 5:return y={send_to:m,event_category:i,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:h,dimension4:"1.38.0",dimension5:Array.from(l.a).join(", ")},e.abrupt("return",new Promise((function(r){var e=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),r()}),1e3);a("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(e),r()}}))})));case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}()}}).call(this,e(14))},81:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return o}));var n=e(109),o=e.n(n)()(t)}).call(this,e(14))},9:function(t,r,e){"use strict";(function(t){e.d(r,"k",(function(){return k})),e.d(r,"a",(function(){return E})),e.d(r,"i",(function(){return _})),e.d(r,"x",(function(){return D})),e.d(r,"d",(function(){return P}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(108),u=e.n(c),s=e(104),l=e.n(s),f=e(40);e.d(r,"v",(function(){return f.b}));var d=e(58);e.d(r,"s",(function(){return d.a})),e.d(r,"w",(function(){return d.b}));var p=e(56);e.d(r,"u",(function(){return p.a}));var v=e(61);e.d(r,"b",(function(){return v.b})),e.d(r,"j",(function(){return v.c}));e(32);var g=e(68);e.d(r,"h",(function(){return g.a})),e.d(r,"n",(function(){return g.b})),e.d(r,"q",(function(){return g.c})),e.d(r,"r",(function(){return g.d}));var b=e(49);e.d(r,"e",(function(){return b.b}));var m=e(74);e.d(r,"o",(function(){return m.a}));var h=e(75);e.d(r,"c",(function(){return h.a}));var y=e(52);e.d(r,"t",(function(){return y.i}));var O=e(76);e.d(r,"f",(function(){return O.a})),e.d(r,"m",(function(){return O.b}));var w=e(65);function j(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function S(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?j(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):j(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}e.d(r,"g",(function(){return w.a})),e.d(r,"l",(function(){return w.b})),e.d(r,"p",(function(){return w.c}));var k=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},E=function(t,r){if("0"===t||0===t||isNaN(t))return null;var e=(r-t)/t;return isNaN(e)||!u()(e)?null:e},_=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,e=r.modules;return e?Object.keys(e).reduce((function(t,r){return"object"!==i()(e[r])||void 0===e[r].slug||void 0===e[r].name||e[r].slug!==r?t:S(S({},t),{},o()({},r,e[r]))}),{}):{}},D=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},P=function(t){if(!t)return"";var r=t.replace(/&#(\d+);/g,(function(t,r){return String.fromCharCode(r)})).replace(/(\\)/g,"");return l()(r)}}).call(this,e(14))},93:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"c",(function(){return m})),e.d(r,"b",(function(){return h}));var n=e(16),o=e.n(n),a=e(6),i=e.n(a),c=e(3),u=e.n(c),s=e(7),l=e.n(s),f=e(5),d=e.n(f),p=e(60),v=d.a.createRegistryControl,g=function(t){var r;l()(t,"storeName is required to create a snapshot store.");var e={},n={deleteSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var r,e,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>0&&void 0!==c[0]?c[0]:{},e=r.clearAfterRestore,n=void 0===e||e,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))},a=(r={},i()(r,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(t))})),i()(r,"CREATE_SNAPSHOT",v((function(r){return function(){return Object(p.d)("datastore::cache::".concat(t),r.stores[t].store.getState())}}))),i()(r,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(t),3600)})),r);return{initialState:e,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},973:function(t,r,e){"use strict";e.r(r);var n=e(5),o=e.n(n),a=e(50),i=e(93),c=e(6),u=e.n(c),s=e(7),l=e.n(s),f=e(53),d=e.n(f);function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?p(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var g={initialState:{},actions:{setValues:function(t,r){return l()(t&&"string"==typeof t,"a valid formName is required for setting values."),l()(d()(r),"formData must be an object."),{payload:{formName:t,formData:r},type:"SET_FORM_VALUES"}}},controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"SET_FORM_VALUES":var o=n.formName,a=n.formData;return v(v({},t),{},u()({},o,v(v({},t[o]||{}),a)));default:return t}},resolvers:{},selectors:{getValue:function(t,r,e){return(t[r]||{})[e]},hasForm:function(t,r){return!!t[r]}}},b=e(54),m=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());m.initialState,m.actions,m.controls,m.reducer,m.resolvers,m.selectors;o.a.registerStore(b.b,m)}},[[973,1,0]]]);
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[10],{2:function(t,r){t.exports=googlesitekit.i18n},28:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},32:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n,o=e(33),a=e.n(o),i=e(34),c=e.n(i),u=function(r){var e=t[r];if(!e)return!1;try{var n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,e(14))},36:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},37:function(t,r,e){"use strict";(function(t){var n,o;e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return r instanceof Set&&r.has(t)}}).call(this,e(14))},40:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p})),e.d(r,"b",(function(){return d}));var n=e(78),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(t){t?s():l()}!0===i&&p(f())}).call(this,e(14))},42:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(36),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="string"==typeof t;if(!r)return!1;var e=t.split("-");return 3===e.length&&Object(n.a)(new Date(t))}},48:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(28);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},49:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(17),o=e.n(n),a=e(1),i=function(t){return function(r){return function FilteredComponent(e){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(r,e),t)}}},c=function(r,e){return function(n){return function InnerComponent(a){return t.createElement(r,o()({},a,e,{OriginalComponent:n}))}}}}).call(this,e(1))},5:function(t,r){t.exports=googlesitekit.data},50:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"b",(function(){return b}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(7),u=e.n(c),s=e(70),l=e.n(s),f=e(9);function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(t,r){if(r&&Array.isArray(r)){var e=r.map((function(t){return"object"===i()(t)?Object(f.u)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(e)))}return t}var g={receiveError:function(t,r,e){return u()(t,"error is required."),r&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:r,args:e}}},clearError:function(t,r){return t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:r}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"selectorName is required."),t.getError(r,e,n)},getErrorForAction:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"actionName is required."),t.getError(r,e,n)},getError:function(t,r,e){var n=t.error,o=t.errors;return r||e?(u()(r,"baseName is required."),o[v(r,e)]):n},getErrors:function(t){var r=new Set(Object.values(t.errors));return void 0!==t.error&&r.add(t.error),Array.from(r)},hasErrors:function(r){return t.getErrors(r).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return p(p({},t),{},a?{errors:p(p({},t.errors||{}),{},o()({},v(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},t);if(u){var f=v(u,s);l.errors=p({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},t);if(d)for(var b in g.errors=p({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},52:function(t,r,e){"use strict";e.d(r,"a",(function(){return o})),e.d(r,"b",(function(){return n})),e.d(r,"e",(function(){return u})),e.d(r,"f",(function(){return p})),e.d(r,"g",(function(){return v})),e.d(r,"h",(function(){return f.a})),e.d(r,"d",(function(){return g})),e.d(r,"c",(function(){return m})),e.d(r,"i",(function(){return d}));var n="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".',a=e(7),i=e.n(a),c=e(36),u=function(t){var r=new Date(t);i()(Object(c.a)(r),"Date param must construct to a valid date instance or be a valid date instance itself.");var e="".concat(r.getMonth()+1),n="".concat(r.getDate());return[r.getFullYear(),e.length<2?"0".concat(e):e,n.length<2?"0".concat(n):n].join("-")},s=e(13),l=e.n(s),f=e(42),d=function(t){i()(Object(f.a)(t),n);var r=t.split("-"),e=l()(r,3),o=e[0],a=e[1],c=e[2];return new Date(o,a-1,c)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,e=d(t);return e.setDate(e.getDate()-r),u(e)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.split("-");return 3===r.length&&"last"===r[0]&&!Number.isNaN(r[1])&&!Number.isNaN(parseFloat(r[1]))&&"days"===r[2]};function g(t){var r=t.match(/last-(\d+)-days/);if(r&&r[1])return parseInt(r[1],10);throw new Error("Unrecognized date range slug.")}var b=e(2);function m(){var t=function(t){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
+ Object(b._n)("Last %s day","Last %s days",t,"google-site-kit"),t)};return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}},54:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return n}));var n="core/forms"},56:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(19),o=e.n(n),a=e(70),i=e.n(a),c=function(t){return i()(JSON.stringify(function t(r){var e={};return Object.keys(r).sort().forEach((function(n){var a=r[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),e[n]=a})),e}(t)))}},58:function(t,r,e){"use strict";e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(19),o=e.n(n),a=e(81),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,r)}};function c(t){var r,e="object"===o()(t)?t.toString():t;return null==e||null===(r=e.replace)||void 0===r?void 0:r.call(e,/\/+$/,"")}},59:function(t,r,e){"use strict";(function(t){var n=e(0),o=e.n(n),a=e(8),i=e.n(a);function ChangeArrow(r){var e=r.direction,n=r.invertColor,o=r.width,a=r.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:o.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},r.a=ChangeArrow}).call(this,e(1))},60:function(t,r,e){"use strict";(function(t){e.d(r,"b",(function(){return g})),e.d(r,"d",(function(){return b})),e.d(r,"a",(function(){return m})),e.d(r,"c",(function(){return h}));var n=e(3),o=e.n(n),a=e(10),i=e.n(a);e(26);function c(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var s,l="googlesitekit_".concat("1.38.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var r=i()(o.a.mark((function r(e){var n,a;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t[e]){r.next=3;break}return r.abrupt("return",!1);case 3:return r.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(3),r.abrupt("return",r.t0 instanceof DOMException&&(22===r.t0.code||1014===r.t0.code||"QuotaExceededError"===r.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.t0.name)&&0!==n.length);case 13:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(t){return r.apply(this,arguments)}}(),v=function(){var r=i()(o.a.mark((function r(){var e,n,a,i,u;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(e=t._googlesitekitLegacyData)||void 0===e||null===(n=e.admin)||void 0===n?void 0:n.nojscache)){r.next=2;break}return r.abrupt("return",null);case 2:if(void 0!==s){r.next=25;break}a=c(d),r.prev=4,a.s();case 6:if((i=a.n()).done){r.next=16;break}if(u=i.value,!s){r.next=10;break}return r.abrupt("continue",14);case 10:return r.next=12,p(u);case 12:if(!r.sent){r.next=14;break}s=t[u];case 14:r.next=6;break;case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(4),a.e(r.t0);case 21:return r.prev=21,a.f(),r.finish(21);case 24:void 0===s&&(s=null);case 25:return r.abrupt("return",s);case 26:case"end":return r.stop()}}),r,null,[[4,18,21,24]])})));return function(){return r.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(r){var e,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(e=t.sent)){t.next=10;break}if(!(n=e.getItem("".concat(l).concat(r)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),b=function(){var r=i()(o.a.mark((function r(e,n){var a,i,c,u,s,f,d,p,g=arguments;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,r.next=3,v();case 3:if(!(p=r.sent)){r.next=14;break}return r.prev=5,p.setItem("".concat(l).concat(e),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(5),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 14:return r.abrupt("return",!1);case 15:case"end":return r.stop()}}),r,null,[[5,10]])})));return function(t,e){return r.apply(this,arguments)}}(),m=function(){var r=i()(o.a.mark((function r(e){var n;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(n=r.sent)){r.next=13;break}return r.prev=4,n.removeItem("".concat(l).concat(e)),r.abrupt("return",!0);case 9:return r.prev=9,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 13:return r.abrupt("return",!1);case 14:case"end":return r.stop()}}),r,null,[[4,9]])})));return function(t){return r.apply(this,arguments)}}(),h=function(){var r=i()(o.a.mark((function r(){var e,n,a,i;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(e=r.sent)){r.next=14;break}for(r.prev=4,n=[],a=0;a<e.length;a++)0===(i=e.key(a)).indexOf(l)&&n.push(i.substring(l.length));return r.abrupt("return",n);case 10:return r.prev=10,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",[]);case 14:return r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,10]])})));return function(){return r.apply(this,arguments)}}()}).call(this,e(14))},61:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return u})),e.d(r,"b",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(13),o=e.n(n),a=e(2);function i(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=null,e=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(r=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),e=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===r&&null===e)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(a._n)("%d notification","%d notifications",t,"google-site-kit"),t),i.appendChild(c),i.appendChild(u),r&&null===n&&r.appendChild(i),e&&null===o&&e.appendChild(i),i},s=function(){t.localStorage&&t.localStorage.clear(),t.sessionStorage&&t.sessionStorage.clear()},l=function(t){for(var r=location.search.substr(1).split("&"),e={},n=0;n<r.length;n++)e[r[n].split("=")[0]]=decodeURIComponent(r[n].split("=")[1]);return t?e.hasOwnProperty(t)?decodeURIComponent(e[t].replace(/\+/g," ")):"":e},f=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,e=new URL(r.href);if(t)return e.searchParams&&e.searchParams.get?e.searchParams.get(t):l(t);var n,a={},c=i(e.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=o()(n.value,2),s=u[0],f=u[1];a[s]=f}}catch(t){c.e(t)}finally{c.f()}return a}}).call(this,e(14))},65:function(t,r,e){"use strict";function n(t){return new URL(t).pathname}function o(t,r){return new URL(r,t).href}function a(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return o})),e.d(r,"c",(function(){return a}))},68:function(t,r,e){"use strict";(function(t){e.d(r,"c",(function(){return w})),e.d(r,"d",(function(){return S})),e.d(r,"b",(function(){return k})),e.d(r,"a",(function(){return E}));var n=e(13),o=e.n(n),a=e(19),i=e.n(a),c=e(6),u=e.n(c),s=e(16),l=e.n(s),f=e(18),d=e(64),p=e.n(d),v=e(2);function g(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function b(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?g(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var m=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=h(t,r),n=e.formatUnit,o=e.formatDecimal;try{return n()}catch(t){return o()}},h=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=parseInt(t,10),Number.isNaN(t)&&(t=0);var e=Math.floor(t/60/60),n=Math.floor(t/60%60),o=Math.floor(t%60);return{hours:e,minutes:n,seconds:o,formatUnit:function(){var a=r.unitDisplay,i=b(b({unitDisplay:void 0===a?"short":a},l()(r,["unitDisplay"])),{},{style:"unit"});return 0===t?S(o,b(b({},i),{},{unit:"second"})):Object(v.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
13
  Object(v.__)("%sM","google-site-kit"),S(y(t),t%10==0?{}:r)):1e4<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(v.__)("%sK","google-site-kit"),S(y(t))):1e3<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(v.__)("%sK","google-site-kit"),S(y(t),t%10==0?{}:r)):S(t,{signDisplay:"never",maximumFractionDigits:1})},w=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(f.isFinite)(t)?t:Number(t),Object(f.isFinite)(t)||(console.warn("Invalid number",t,i()(t)),t=0);var e={};if("%"===r)e={style:"percent",maximumFractionDigits:2};else{if("s"===r)return m(t,{unitDisplay:"narrow"});r&&"string"==typeof r?e={style:"currency",currency:r}:Object(f.isPlainObject)(r)&&(e=b({},r))}var n=e,o=n.style,a=void 0===o?"metric":o;return"metric"===a?O(t):"duration"===a?m(t,r):S(t,e)},j=p()(console.warn),S=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?E():e,a=l()(r,["locale"]);try{return new Intl.NumberFormat(n,a).format(t)}catch(r){j("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(i()(t)," )"),r.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var p=o()(d[f],2),v=p[0],g=p[1];c[v]&&g===c[v]||(u.includes(v)||(s[v]=g))}try{return new Intl.NumberFormat(n,s).format(t)}catch(r){return new Intl.NumberFormat(n).format(t)}},k=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?E():e,o=r.style,a=void 0===o?"long":o,i=r.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(v.__)(", ","google-site-kit");return t.join(s)},E=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(f.get)(r,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return r.navigator.language}}).call(this,e(14))},74:function(t,r,e){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var r=t,e=0,i=[n,o,a];e<i.length;e++){r=(0,i[e])(r)}return r}e.d(r,"a",(function(){return i}))},75:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}},76:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var n=e(189),o=e(59),a=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(r)))return"";var a=e.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:r>0?"up":"down",invertColor:i}))},i=function(t){var r,e,n,o,a,i,c,u,s,l,f,d,p,v,g;if(void 0!==t)return 1===(null==t||null===(r=t[0])||void 0===r||null===(e=r.data)||void 0===e||null===(n=e.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,e(1))},78:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n=e(6),o=e.n(n),a=e(79),i=e(80);function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),r);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,e),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,e,n)}}}).call(this,e(14))},79:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a}));var n=e(48),o=e(28);function a(r,e){var a=Object(n.a)(e);return function(){r.trackingEnabled=!0;var e=t.document;if(!e.querySelector("script[".concat(o.b,"]"))){var n=e.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID,"&l=").concat(o.a),e.head.appendChild(n),a("js",new Date),a("config",r.trackingID)}}}}).call(this,e(14))},80:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p}));var n=e(3),o=e.n(n),a=e(6),i=e.n(a),c=e(10),u=e.n(c),s=e(48),l=e(37);function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){i()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function p(r,e,n){var a=Object(s.a)(e);return function(){var e=u()(o.a.mark((function e(i,c,u,s){var f,p,v,g,b,m,h,y;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=r.isFirstAdmin,g=r.referenceSiteURL,b=r.trackingEnabled,m=r.trackingID,h=r.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){e.next=3;break}return e.abrupt("return");case 3:if(b){e.next=5;break}return e.abrupt("return");case 5:return y={send_to:m,event_category:i,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:h,dimension4:"1.38.1",dimension5:Array.from(l.a).join(", ")},e.abrupt("return",new Promise((function(r){var e=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),r()}),1e3);a("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(e),r()}}))})));case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}()}}).call(this,e(14))},81:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return o}));var n=e(109),o=e.n(n)()(t)}).call(this,e(14))},9:function(t,r,e){"use strict";(function(t){e.d(r,"k",(function(){return k})),e.d(r,"a",(function(){return E})),e.d(r,"i",(function(){return _})),e.d(r,"x",(function(){return D})),e.d(r,"d",(function(){return P}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(108),u=e.n(c),s=e(104),l=e.n(s),f=e(40);e.d(r,"v",(function(){return f.b}));var d=e(58);e.d(r,"s",(function(){return d.a})),e.d(r,"w",(function(){return d.b}));var p=e(56);e.d(r,"u",(function(){return p.a}));var v=e(61);e.d(r,"b",(function(){return v.b})),e.d(r,"j",(function(){return v.c}));e(32);var g=e(68);e.d(r,"h",(function(){return g.a})),e.d(r,"n",(function(){return g.b})),e.d(r,"q",(function(){return g.c})),e.d(r,"r",(function(){return g.d}));var b=e(49);e.d(r,"e",(function(){return b.b}));var m=e(74);e.d(r,"o",(function(){return m.a}));var h=e(75);e.d(r,"c",(function(){return h.a}));var y=e(52);e.d(r,"t",(function(){return y.i}));var O=e(76);e.d(r,"f",(function(){return O.a})),e.d(r,"m",(function(){return O.b}));var w=e(65);function j(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function S(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?j(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):j(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}e.d(r,"g",(function(){return w.a})),e.d(r,"l",(function(){return w.b})),e.d(r,"p",(function(){return w.c}));var k=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},E=function(t,r){if("0"===t||0===t||isNaN(t))return null;var e=(r-t)/t;return isNaN(e)||!u()(e)?null:e},_=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,e=r.modules;return e?Object.keys(e).reduce((function(t,r){return"object"!==i()(e[r])||void 0===e[r].slug||void 0===e[r].name||e[r].slug!==r?t:S(S({},t),{},o()({},r,e[r]))}),{}):{}},D=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},P=function(t){if(!t)return"";var r=t.replace(/&#(\d+);/g,(function(t,r){return String.fromCharCode(r)})).replace(/(\\)/g,"");return l()(r)}}).call(this,e(14))},93:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"c",(function(){return m})),e.d(r,"b",(function(){return h}));var n=e(16),o=e.n(n),a=e(6),i=e.n(a),c=e(3),u=e.n(c),s=e(7),l=e.n(s),f=e(5),d=e.n(f),p=e(60),v=d.a.createRegistryControl,g=function(t){var r;l()(t,"storeName is required to create a snapshot store.");var e={},n={deleteSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var r,e,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>0&&void 0!==c[0]?c[0]:{},e=r.clearAfterRestore,n=void 0===e||e,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))},a=(r={},i()(r,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(t))})),i()(r,"CREATE_SNAPSHOT",v((function(r){return function(){return Object(p.d)("datastore::cache::".concat(t),r.stores[t].store.getState())}}))),i()(r,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(t),3600)})),r);return{initialState:e,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},973:function(t,r,e){"use strict";e.r(r);var n=e(5),o=e.n(n),a=e(50),i=e(93),c=e(6),u=e.n(c),s=e(7),l=e.n(s),f=e(53),d=e.n(f);function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?p(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var g={initialState:{},actions:{setValues:function(t,r){return l()(t&&"string"==typeof t,"a valid formName is required for setting values."),l()(d()(r),"formData must be an object."),{payload:{formName:t,formData:r},type:"SET_FORM_VALUES"}}},controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"SET_FORM_VALUES":var o=n.formName,a=n.formData;return v(v({},t),{},u()({},o,v(v({},t[o]||{}),a)));default:return t}},resolvers:{},selectors:{getValue:function(t,r,e){return(t[r]||{})[e]},hasForm:function(t,r){return!!t[r]}}},b=e(54),m=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());m.initialState,m.actions,m.controls,m.reducer,m.resolvers,m.selectors;o.a.registerStore(b.b,m)}},[[973,1,0]]]);
dist/assets/js/{googlesitekit-datastore-site.fc3576480ed5d0c8e511.js → googlesitekit-datastore-site.8b265cff0a206e219e71.js} RENAMED
@@ -13,4 +13,4 @@ Object(v._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?
13
  Object(v.__)("%sM","google-site-kit"),R(O(e),e%10==0?{}:t)):1e4<=e?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(v.__)("%sK","google-site-kit"),R(O(e))):1e3<=e?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(v.__)("%sK","google-site-kit"),R(O(e),e%10==0?{}:t)):R(e,{signDisplay:"never",maximumFractionDigits:1})},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(f.isFinite)(e)?e:Number(e),Object(f.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return y(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(f.isPlainObject)(t)&&(r=b({},t))}var n=r,o=n.style,i=void 0===o?"metric":o;return"metric"===i?h(e):"duration"===i?y(e,t):R(e,r)},w=d()(console.warn),R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?S():r,i=l()(t,["locale"]);try{return new Intl.NumberFormat(n,i).format(e)}catch(t){w("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(i)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,p=Object.entries(i);f<p.length;f++){var d=o()(p[f],2),v=d[0],g=d[1];c[v]&&g===c[v]||(u.includes(v)||(s[v]=g))}try{return new Intl.NumberFormat(n,s).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?S():r,o=t.style,i=void 0===o?"long":o,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:i,type:c});return u.format(e)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(v.__)(", ","google-site-kit");return e.join(s)},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(f.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(14))},72:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},o=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},74:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function a(e){for(var t=e,r=0,a=[n,o,i];r<a.length;r++){t=(0,a[r])(t)}return t}r.d(t,"a",(function(){return a}))},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},76:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r(189),o=r(59),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,a=void 0!==i&&i;return Object(n.a)(e.createElement(o.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e){var t,r,n,o,i,a,c,u,s,l,f,p,d,v,g;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(o=e[0])||void 0===o||null===(i=o.data)||void 0===i||null===(a=i.rows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(p=f.data)||void 0===p||null===(d=p.totals)||void 0===d||null===(v=d[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,r(1))},78:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),o=r.n(n),i=r(79),a=r(80);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=u(u({},s),t);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(o,r),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(a.a)(o,r,n)}}}).call(this,r(14))},79:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(48),o=r(28);function i(t,r){var i=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(o.b,"]"))){var n=r.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(o.a),r.head.appendChild(n),i("js",new Date),i("config",t.trackingID)}}}}).call(this,r(14))},80:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return d}));var n=r(3),o=r.n(n),i=r(6),a=r.n(i),c=r(10),u=r.n(c),s=r(48),l=r(37);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(t,r,n){var i=Object(s.a)(r);return function(){var r=u()(o.a.mark((function r(a,c,u,s){var f,d,v,g,b,y,m,O;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(v=t.isFirstAdmin,g=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(d=f.ioo)||void 0===d?void 0:d.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return O={send_to:y,event_category:a,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:m,dimension4:"1.38.0",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(a,'") took too long to fire.')),t()}),1e3);i("event",c,p(p({},O),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,o){return r.apply(this,arguments)}}()}}).call(this,r(14))},81:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(109),o=r.n(n)()(e)}).call(this,r(14))},85:function(e,t,r){"use strict";(function(e){var n=r(22),o=r.n(n),i=r(112),a=e._googlesitekitAPIFetchData||{},c=a.nonce,u=a.nonceEndpoint,s=a.preloadedData,l=a.rootURL;o.a.nonceEndpoint=u,o.a.nonceMiddleware=o.a.createNonceMiddleware(c),o.a.rootURLMiddleware=o.a.createRootURLMiddleware(l),o.a.preloadingMiddleware=Object(i.a)(s),o.a.use(o.a.nonceMiddleware),o.a.use(o.a.mediaUploadMiddleware),o.a.use(o.a.rootURLMiddleware),o.a.use(o.a.preloadingMiddleware),t.default=o.a}).call(this,r(14))},9:function(e,t,r){"use strict";(function(e){r.d(t,"k",(function(){return E})),r.d(t,"a",(function(){return S})),r.d(t,"i",(function(){return P})),r.d(t,"x",(function(){return k})),r.d(t,"d",(function(){return L}));var n=r(6),o=r.n(n),i=r(19),a=r.n(i),c=r(108),u=r.n(c),s=r(104),l=r.n(s),f=r(40);r.d(t,"v",(function(){return f.b}));var p=r(58);r.d(t,"s",(function(){return p.a})),r.d(t,"w",(function(){return p.b}));var d=r(56);r.d(t,"u",(function(){return d.a}));var v=r(61);r.d(t,"b",(function(){return v.b})),r.d(t,"j",(function(){return v.c}));r(32);var g=r(68);r.d(t,"h",(function(){return g.a})),r.d(t,"n",(function(){return g.b})),r.d(t,"q",(function(){return g.c})),r.d(t,"r",(function(){return g.d}));var b=r(49);r.d(t,"e",(function(){return b.b}));var y=r(74);r.d(t,"o",(function(){return y.a}));var m=r(75);r.d(t,"c",(function(){return m.a}));var O=r(52);r.d(t,"t",(function(){return O.i}));var h=r(76);r.d(t,"f",(function(){return h.a})),r.d(t,"m",(function(){return h.b}));var j=r(65);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return j.a})),r.d(t,"l",(function(){return j.b})),r.d(t,"p",(function(){return j.c}));var E=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},S=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==a()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:R(R({},e),{},o()({},t,r[t]))}),{}):{}},k=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},L=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(14))},969:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r.n(n),i=r(3),a=r.n(i),c=r(6),u=r.n(c),s=r(38),l=r.n(s),f=r(15),p=r(45);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=o.a.createRegistrySelector,b=Object(p.a)({baseName:"getConnection",controlCallback:function(){return l.a.get("core","site","connection",void 0,{useCache:!1})},reducerCallback:function(e,t){return v(v({},e),{},{connection:t})}}),y={connection:void 0},m={getConnection:a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(t=e.sent,t.select(f.d).getConnection()){e.next=7;break}return e.next=7,b.actions.fetchGetConnection();case 7:case"end":return e.stop()}}),e)}))},O={getConnection:function(e){return e.connection},getOwnerID:g((function(e){return function(){return(e(f.d).getConnection()||{}).ownerID}})),hasConnectedAdmins:g((function(e){return function(){return(e(f.d).getConnection()||{}).hasConnectedAdmins}})),isConnected:g((function(e){return function(){var t=e(f.d).getConnection();return void 0!==t?t.connected:t}})),isResettable:g((function(e){return function(){var t=e(f.d).getConnection();return void 0!==t?t.resettable:t}})),isSetupCompleted:g((function(e){return function(){var t=e(f.d).getConnection();return void 0!==t?t.setupCompleted:t}})),hasMultipleAdmins:g((function(e){return function(){var t;return null===(t=e(f.d).getConnection())||void 0===t?void 0:t.hasMultipleAdmins}}))},h=o.a.combineStores(b,{initialState:y,resolvers:m,selectors:O}),j=(h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors,h),w=r(16),R=r.n(w),E=r(7),S=r.n(E),P=r(53),k=r.n(P),L=r(2);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U,N={internalServerError:void 0},x={setInternalServerError:function(e){S()(k()(e),"internalServerError must be a plain object.");var t=e.title,r=void 0===t?Object(L.__)("Internal Server Error","google-site-kit"):t,n=e.format,o=void 0===n?"small":n,i=e.type;return{type:"SET_SERVER_ERROR",payload:{internalServerError:D({title:r,format:o,type:void 0===i?"win-error":i},R()(e,["title","format","type"]))}}},clearInternalServerError:function(){return{type:"CLEAR_SERVER_ERROR"}}},A=o.a.combineStores({initialState:N,actions:x,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_SERVER_ERROR":return D(D({},e),{},{internalServerError:n.internalServerError});case"CLEAR_SERVER_ERROR":return D(D({},e),{},{internalServerError:void 0});default:return e}},resolvers:{},selectors:{getInternalServerError:function(e){return e.internalServerError}}}),C=(A.initialState,A.actions,A.controls,A.reducer,A.resolvers,A.selectors,A),I=r(10),T=r.n(I),M=r(199),F=r(147),H=r(226);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var G,$=o.a.createRegistryControl,V=Object(p.a)({baseName:"getHTMLForURL",argsToParams:function(e){return{url:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;S()(Object(M.a)(t),"a valid url is required to fetch HTML.")},controlCallback:(G=T()(a.a.mark((function e(t){var r,n,o,i,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n={credentials:"omit"},o={tagverify:1,timestamp:Date.now()},e.next=5,fetch(Object(F.a)(r,o),n);case 5:return i=e.sent,e.prev=6,e.next=9,i.text();case 9:return c=e.sent,e.abrupt("return",void 0!==c?c:null);case 13:return e.prev=13,e.t0=e.catch(6),e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,null,[[6,13]])}))),function(e){return G.apply(this,arguments)}),reducerCallback:function(e,t,r){var n=r.url;return K(K({},e),{},{htmlForURL:K(K({},e.htmlForURL),{},u()({},n,t))})}}),z={resetHTMLForURL:a.a.mark((function e(t){var r,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:return r=e.sent,n=r.dispatch,e.next=6,{payload:{url:t},type:"RESET_HTML_FOR_URL"};case 6:return e.abrupt("return",n(f.d).invalidateResolutionForStoreSelector("getHTMLForURL"));case 7:case"end":return e.stop()}}),e)})),checkForSetupTag:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CHECK_FOR_SETUP_TAG"};case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),waitForHTMLForURL:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{url:t},type:"WAIT_FOR_HTML_FOR_URL"};case 2:case"end":return e.stop()}}),e)}))},J=(U={},u()(U,"WAIT_FOR_HTML_FOR_URL",$((function(e){return function(t){var r=t.payload.url;return e.__experimentalResolveSelect(f.d).getHTMLForURL(r)}}))),u()(U,"CHECK_FOR_SETUP_TAG",$((function(e){return T()(a.a.mark((function t(){var r,n,o,i,c,u,s,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=!1,t.prev=1,t.next=4,l.a.set("core","site","setup-tag");case 4:return c=t.sent,o=c.token,t.next=8,e.select(f.d).getHomeURL();case 8:return u=t.sent,t.next=11,e.dispatch(f.d).fetchGetHTMLForURL(u);case 11:s=t.sent,n=s.response,r=s.error,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),r="check_fetch_failed";case 19:return r||(p=Object(H.a)(n,[/<meta name="googlesitekit-setup" content="([a-z0-9-]+)"/]),(i=o===p)||(r="setup_token_mismatch")),t.abrupt("return",{response:i,error:r});case 21:case"end":return t.stop()}}),t,null,[[1,16]])})))}))),U),B={getHTMLForURL:a.a.mark((function e(t){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(r=e.sent,void 0!==r.select(f.d).getHTMLForURL(t)){e.next=7;break}return e.next=7,V.actions.fetchGetHTMLForURL(t);case 7:case"end":return e.stop()}}),e)}))},Y=o.a.combineStores(V,{initialState:{htmlForURL:{}},actions:z,controls:J,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RESET_HTML_FOR_URL":var o=n.url;return K(K({},e),{},{htmlForURL:K(K({},e.htmlForURL),{},u()({},o,void 0))});default:return e}},resolvers:B,selectors:{getHTMLForURL:function(e,t){return e.htmlForURL[t]}}}),W=(Y.initialState,Y.actions,Y.controls,Y.reducer,Y.resolvers,Y.selectors,Y),Z=r(626),Q=o.a.createRegistrySelector,X=Object(p.a)({baseName:"reset",controlCallback:function(){return l.a.set("core","site","reset")}}),ee={reset:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X.actions.fetchReset();case 2:case"end":return e.stop()}}),e)}))},te={isDoingReset:Q((function(e){return function(){return e(f.d).isFetchingReset()}}))},re=o.a.combineStores(X,{initialState:{},actions:ee,selectors:te}),ne=(re.initialState,re.actions,re.controls,re.reducer,re.resolvers,re.selectors,re),oe=r(9);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ce=o.a.createRegistrySelector,ue={selectors:{getGoogleLocaleAwareURL:function(e,t){var r,n=Object(oe.h)(),o=t||{},i=o.website,a=o.path,c=o.query,u=o.hash,s=o.locale,l=void 0===s?(null===(r=n.match(/^([a-zA-Z]+[-_]?[a-zA-Z]*)/))||void 0===r?void 0:r[0])||n:s;if(!a)return null;var f=new URL(i);f.pathname=a,f.hash=u||"";var p=ae(ae({},c),{},{hl:l});for(var d in p)f.searchParams.set(d,p[d]);return f.toString()},getGoogleSupportURL:ce((function(e){return function(t,r){return e(f.d).getGoogleLocaleAwareURL(ae(ae({},r),{},{website:"https://support.google.com"}))}})),getGooglePrivacyPolicyURL:ce((function(e){return function(){return e(f.d).getGoogleLocaleAwareURL({website:"https://myaccount.google.com",path:"/privacypolicy"})}})),getGoogleTermsURL:ce((function(e){return function(){return e(f.d).getGoogleLocaleAwareURL({website:"https://policies.google.com",path:"/terms"})}}))}};function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var fe=Object(p.a)({baseName:"getDeveloperPluginState",controlCallback:function(){return l.a.get("core","site","developer-plugin",void 0,{useCache:!1})},reducerCallback:function(e,t){return le(le({},e),{},{developerPluginState:t})}}),pe={developerPluginState:void 0},de={getDeveloperPluginState:a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(t=e.sent,t.select(f.d).getDeveloperPluginState()){e.next=7;break}return e.next=7,fe.actions.fetchGetDeveloperPluginState();case 7:case"end":return e.stop()}}),e)}))},ve=o.a.combineStores(fe,{initialState:pe,resolvers:de,selectors:{getDeveloperPluginState:function(e){return e.developerPluginState}}}),ge=(ve.initialState,ve.actions,ve.controls,ve.reducer,ve.resolvers,ve.selectors,ve),be=r(318),ye=Object(be.a)("core","site","notifications",{storeName:f.d}),me=r(996);function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var je={initialState:{registryKey:void 0},actions:{setRegistryKey:function(e){return S()(e,"registryKey is required."),{payload:{registryKey:e},type:"SET_REGISTRY_KEY"}}},resolvers:{getRegistryKey:a.a.mark((function e(){var t,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(t=e.sent,r=t.select(f.d).getRegistryKey()){e.next=8;break}return r=Object(me.a)(),e.next=8,t.dispatch(f.d).setRegistryKey(r);case 8:case"end":return e.stop()}}),e)}))},reducer:function(e,t){var r=t.payload;switch(t.type){case"SET_REGISTRY_KEY":var n=r.registryKey;return he(he({},e),{},{registryKey:n});default:return e}},selectors:{getRegistryKey:function(e){return e.registryKey}}},we=r(50),Re=o.a.combineStores(o.a.commonStore,j,C,W,Z.a,ge,ne,ue,ye,je,Object(we.b)());Re.initialState,Re.actions,Re.controls,Re.reducer,Re.resolvers,Re.selectors;o.a.registerStore(f.d,Re)}},[[969,1,0]]]);
13
  Object(v.__)("%sM","google-site-kit"),R(O(e),e%10==0?{}:t)):1e4<=e?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(v.__)("%sK","google-site-kit"),R(O(e))):1e3<=e?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(v.__)("%sK","google-site-kit"),R(O(e),e%10==0?{}:t)):R(e,{signDisplay:"never",maximumFractionDigits:1})},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(f.isFinite)(e)?e:Number(e),Object(f.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return y(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(f.isPlainObject)(t)&&(r=b({},t))}var n=r,o=n.style,i=void 0===o?"metric":o;return"metric"===i?h(e):"duration"===i?y(e,t):R(e,r)},w=d()(console.warn),R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?S():r,i=l()(t,["locale"]);try{return new Intl.NumberFormat(n,i).format(e)}catch(t){w("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(i)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,p=Object.entries(i);f<p.length;f++){var d=o()(p[f],2),v=d[0],g=d[1];c[v]&&g===c[v]||(u.includes(v)||(s[v]=g))}try{return new Intl.NumberFormat(n,s).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?S():r,o=t.style,i=void 0===o?"long":o,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:i,type:c});return u.format(e)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(v.__)(", ","google-site-kit");return e.join(s)},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(f.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(14))},72:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},o=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},74:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function i(e){return e.replace(/\n/gi,"<br>")}function a(e){for(var t=e,r=0,a=[n,o,i];r<a.length;r++){t=(0,a[r])(t)}return t}r.d(t,"a",(function(){return a}))},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},76:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return a}));var n=r(189),o=r(59),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,a=void 0!==i&&i;return Object(n.a)(e.createElement(o.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e){var t,r,n,o,i,a,c,u,s,l,f,p,d,v,g;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(o=e[0])||void 0===o||null===(i=o.data)||void 0===i||null===(a=i.rows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(p=f.data)||void 0===p||null===(d=p.totals)||void 0===d||null===(v=d[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,r(1))},78:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),o=r.n(n),i=r(79),a=r(80);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=u(u({},s),t);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(o,r),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(a.a)(o,r,n)}}}).call(this,r(14))},79:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(48),o=r(28);function i(t,r){var i=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(o.b,"]"))){var n=r.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(o.a),r.head.appendChild(n),i("js",new Date),i("config",t.trackingID)}}}}).call(this,r(14))},80:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return d}));var n=r(3),o=r.n(n),i=r(6),a=r.n(i),c=r(10),u=r.n(c),s=r(48),l=r(37);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(t,r,n){var i=Object(s.a)(r);return function(){var r=u()(o.a.mark((function r(a,c,u,s){var f,d,v,g,b,y,m,O;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(v=t.isFirstAdmin,g=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(d=f.ioo)||void 0===d?void 0:d.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return O={send_to:y,event_category:a,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:m,dimension4:"1.38.1",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(a,'") took too long to fire.')),t()}),1e3);i("event",c,p(p({},O),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,o){return r.apply(this,arguments)}}()}}).call(this,r(14))},81:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(109),o=r.n(n)()(e)}).call(this,r(14))},85:function(e,t,r){"use strict";(function(e){var n=r(22),o=r.n(n),i=r(112),a=e._googlesitekitAPIFetchData||{},c=a.nonce,u=a.nonceEndpoint,s=a.preloadedData,l=a.rootURL;o.a.nonceEndpoint=u,o.a.nonceMiddleware=o.a.createNonceMiddleware(c),o.a.rootURLMiddleware=o.a.createRootURLMiddleware(l),o.a.preloadingMiddleware=Object(i.a)(s),o.a.use(o.a.nonceMiddleware),o.a.use(o.a.mediaUploadMiddleware),o.a.use(o.a.rootURLMiddleware),o.a.use(o.a.preloadingMiddleware),t.default=o.a}).call(this,r(14))},9:function(e,t,r){"use strict";(function(e){r.d(t,"k",(function(){return E})),r.d(t,"a",(function(){return S})),r.d(t,"i",(function(){return P})),r.d(t,"x",(function(){return k})),r.d(t,"d",(function(){return L}));var n=r(6),o=r.n(n),i=r(19),a=r.n(i),c=r(108),u=r.n(c),s=r(104),l=r.n(s),f=r(40);r.d(t,"v",(function(){return f.b}));var p=r(58);r.d(t,"s",(function(){return p.a})),r.d(t,"w",(function(){return p.b}));var d=r(56);r.d(t,"u",(function(){return d.a}));var v=r(61);r.d(t,"b",(function(){return v.b})),r.d(t,"j",(function(){return v.c}));r(32);var g=r(68);r.d(t,"h",(function(){return g.a})),r.d(t,"n",(function(){return g.b})),r.d(t,"q",(function(){return g.c})),r.d(t,"r",(function(){return g.d}));var b=r(49);r.d(t,"e",(function(){return b.b}));var y=r(74);r.d(t,"o",(function(){return y.a}));var m=r(75);r.d(t,"c",(function(){return m.a}));var O=r(52);r.d(t,"t",(function(){return O.i}));var h=r(76);r.d(t,"f",(function(){return h.a})),r.d(t,"m",(function(){return h.b}));var j=r(65);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return j.a})),r.d(t,"l",(function(){return j.b})),r.d(t,"p",(function(){return j.c}));var E=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},S=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==a()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:R(R({},e),{},o()({},t,r[t]))}),{}):{}},k=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},L=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(14))},969:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r.n(n),i=r(3),a=r.n(i),c=r(6),u=r.n(c),s=r(38),l=r.n(s),f=r(15),p=r(45);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=o.a.createRegistrySelector,b=Object(p.a)({baseName:"getConnection",controlCallback:function(){return l.a.get("core","site","connection",void 0,{useCache:!1})},reducerCallback:function(e,t){return v(v({},e),{},{connection:t})}}),y={connection:void 0},m={getConnection:a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(t=e.sent,t.select(f.d).getConnection()){e.next=7;break}return e.next=7,b.actions.fetchGetConnection();case 7:case"end":return e.stop()}}),e)}))},O={getConnection:function(e){return e.connection},getOwnerID:g((function(e){return function(){return(e(f.d).getConnection()||{}).ownerID}})),hasConnectedAdmins:g((function(e){return function(){return(e(f.d).getConnection()||{}).hasConnectedAdmins}})),isConnected:g((function(e){return function(){var t=e(f.d).getConnection();return void 0!==t?t.connected:t}})),isResettable:g((function(e){return function(){var t=e(f.d).getConnection();return void 0!==t?t.resettable:t}})),isSetupCompleted:g((function(e){return function(){var t=e(f.d).getConnection();return void 0!==t?t.setupCompleted:t}})),hasMultipleAdmins:g((function(e){return function(){var t;return null===(t=e(f.d).getConnection())||void 0===t?void 0:t.hasMultipleAdmins}}))},h=o.a.combineStores(b,{initialState:y,resolvers:m,selectors:O}),j=(h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors,h),w=r(16),R=r.n(w),E=r(7),S=r.n(E),P=r(53),k=r.n(P),L=r(2);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U,N={internalServerError:void 0},x={setInternalServerError:function(e){S()(k()(e),"internalServerError must be a plain object.");var t=e.title,r=void 0===t?Object(L.__)("Internal Server Error","google-site-kit"):t,n=e.format,o=void 0===n?"small":n,i=e.type;return{type:"SET_SERVER_ERROR",payload:{internalServerError:D({title:r,format:o,type:void 0===i?"win-error":i},R()(e,["title","format","type"]))}}},clearInternalServerError:function(){return{type:"CLEAR_SERVER_ERROR"}}},A=o.a.combineStores({initialState:N,actions:x,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_SERVER_ERROR":return D(D({},e),{},{internalServerError:n.internalServerError});case"CLEAR_SERVER_ERROR":return D(D({},e),{},{internalServerError:void 0});default:return e}},resolvers:{},selectors:{getInternalServerError:function(e){return e.internalServerError}}}),C=(A.initialState,A.actions,A.controls,A.reducer,A.resolvers,A.selectors,A),I=r(10),T=r.n(I),M=r(199),F=r(147),H=r(226);function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var G,$=o.a.createRegistryControl,V=Object(p.a)({baseName:"getHTMLForURL",argsToParams:function(e){return{url:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;S()(Object(M.a)(t),"a valid url is required to fetch HTML.")},controlCallback:(G=T()(a.a.mark((function e(t){var r,n,o,i,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n={credentials:"omit"},o={tagverify:1,timestamp:Date.now()},e.next=5,fetch(Object(F.a)(r,o),n);case 5:return i=e.sent,e.prev=6,e.next=9,i.text();case 9:return c=e.sent,e.abrupt("return",void 0!==c?c:null);case 13:return e.prev=13,e.t0=e.catch(6),e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,null,[[6,13]])}))),function(e){return G.apply(this,arguments)}),reducerCallback:function(e,t,r){var n=r.url;return K(K({},e),{},{htmlForURL:K(K({},e.htmlForURL),{},u()({},n,t))})}}),z={resetHTMLForURL:a.a.mark((function e(t){var r,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:return r=e.sent,n=r.dispatch,e.next=6,{payload:{url:t},type:"RESET_HTML_FOR_URL"};case 6:return e.abrupt("return",n(f.d).invalidateResolutionForStoreSelector("getHTMLForURL"));case 7:case"end":return e.stop()}}),e)})),checkForSetupTag:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CHECK_FOR_SETUP_TAG"};case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),waitForHTMLForURL:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{url:t},type:"WAIT_FOR_HTML_FOR_URL"};case 2:case"end":return e.stop()}}),e)}))},J=(U={},u()(U,"WAIT_FOR_HTML_FOR_URL",$((function(e){return function(t){var r=t.payload.url;return e.__experimentalResolveSelect(f.d).getHTMLForURL(r)}}))),u()(U,"CHECK_FOR_SETUP_TAG",$((function(e){return T()(a.a.mark((function t(){var r,n,o,i,c,u,s,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=!1,t.prev=1,t.next=4,l.a.set("core","site","setup-tag");case 4:return c=t.sent,o=c.token,t.next=8,e.select(f.d).getHomeURL();case 8:return u=t.sent,t.next=11,e.dispatch(f.d).fetchGetHTMLForURL(u);case 11:s=t.sent,n=s.response,r=s.error,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),r="check_fetch_failed";case 19:return r||(p=Object(H.a)(n,[/<meta name="googlesitekit-setup" content="([a-z0-9-]+)"/]),(i=o===p)||(r="setup_token_mismatch")),t.abrupt("return",{response:i,error:r});case 21:case"end":return t.stop()}}),t,null,[[1,16]])})))}))),U),B={getHTMLForURL:a.a.mark((function e(t){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(r=e.sent,void 0!==r.select(f.d).getHTMLForURL(t)){e.next=7;break}return e.next=7,V.actions.fetchGetHTMLForURL(t);case 7:case"end":return e.stop()}}),e)}))},Y=o.a.combineStores(V,{initialState:{htmlForURL:{}},actions:z,controls:J,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RESET_HTML_FOR_URL":var o=n.url;return K(K({},e),{},{htmlForURL:K(K({},e.htmlForURL),{},u()({},o,void 0))});default:return e}},resolvers:B,selectors:{getHTMLForURL:function(e,t){return e.htmlForURL[t]}}}),W=(Y.initialState,Y.actions,Y.controls,Y.reducer,Y.resolvers,Y.selectors,Y),Z=r(626),Q=o.a.createRegistrySelector,X=Object(p.a)({baseName:"reset",controlCallback:function(){return l.a.set("core","site","reset")}}),ee={reset:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X.actions.fetchReset();case 2:case"end":return e.stop()}}),e)}))},te={isDoingReset:Q((function(e){return function(){return e(f.d).isFetchingReset()}}))},re=o.a.combineStores(X,{initialState:{},actions:ee,selectors:te}),ne=(re.initialState,re.actions,re.controls,re.reducer,re.resolvers,re.selectors,re),oe=r(9);function ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ce=o.a.createRegistrySelector,ue={selectors:{getGoogleLocaleAwareURL:function(e,t){var r,n=Object(oe.h)(),o=t||{},i=o.website,a=o.path,c=o.query,u=o.hash,s=o.locale,l=void 0===s?(null===(r=n.match(/^([a-zA-Z]+[-_]?[a-zA-Z]*)/))||void 0===r?void 0:r[0])||n:s;if(!a)return null;var f=new URL(i);f.pathname=a,f.hash=u||"";var p=ae(ae({},c),{},{hl:l});for(var d in p)f.searchParams.set(d,p[d]);return f.toString()},getGoogleSupportURL:ce((function(e){return function(t,r){return e(f.d).getGoogleLocaleAwareURL(ae(ae({},r),{},{website:"https://support.google.com"}))}})),getGooglePrivacyPolicyURL:ce((function(e){return function(){return e(f.d).getGoogleLocaleAwareURL({website:"https://myaccount.google.com",path:"/privacypolicy"})}})),getGoogleTermsURL:ce((function(e){return function(){return e(f.d).getGoogleLocaleAwareURL({website:"https://policies.google.com",path:"/terms"})}}))}};function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var fe=Object(p.a)({baseName:"getDeveloperPluginState",controlCallback:function(){return l.a.get("core","site","developer-plugin",void 0,{useCache:!1})},reducerCallback:function(e,t){return le(le({},e),{},{developerPluginState:t})}}),pe={developerPluginState:void 0},de={getDeveloperPluginState:a.a.mark((function e(){var t;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(t=e.sent,t.select(f.d).getDeveloperPluginState()){e.next=7;break}return e.next=7,fe.actions.fetchGetDeveloperPluginState();case 7:case"end":return e.stop()}}),e)}))},ve=o.a.combineStores(fe,{initialState:pe,resolvers:de,selectors:{getDeveloperPluginState:function(e){return e.developerPluginState}}}),ge=(ve.initialState,ve.actions,ve.controls,ve.reducer,ve.resolvers,ve.selectors,ve),be=r(318),ye=Object(be.a)("core","site","notifications",{storeName:f.d}),me=r(996);function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var je={initialState:{registryKey:void 0},actions:{setRegistryKey:function(e){return S()(e,"registryKey is required."),{payload:{registryKey:e},type:"SET_REGISTRY_KEY"}}},resolvers:{getRegistryKey:a.a.mark((function e(){var t,r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:if(t=e.sent,r=t.select(f.d).getRegistryKey()){e.next=8;break}return r=Object(me.a)(),e.next=8,t.dispatch(f.d).setRegistryKey(r);case 8:case"end":return e.stop()}}),e)}))},reducer:function(e,t){var r=t.payload;switch(t.type){case"SET_REGISTRY_KEY":var n=r.registryKey;return he(he({},e),{},{registryKey:n});default:return e}},selectors:{getRegistryKey:function(e){return e.registryKey}}},we=r(50),Re=o.a.combineStores(o.a.commonStore,j,C,W,Z.a,ge,ne,ue,ye,je,Object(we.b)());Re.initialState,Re.actions,Re.controls,Re.reducer,Re.resolvers,Re.selectors;o.a.registerStore(f.d,Re)}},[[969,1,0]]]);
dist/assets/js/{googlesitekit-datastore-ui.1b86369b8ddf615cd081.js → googlesitekit-datastore-ui.938571522d0d7067f2c5.js} RENAMED
@@ -1,6 +1,6 @@
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[13],{2:function(t,r){t.exports=googlesitekit.i18n},28:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},32:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n,o=e(33),a=e.n(o),i=e(34),c=e.n(i),u=function(r){var e=t[r];if(!e)return!1;try{var n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,e(14))},36:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},37:function(t,r,e){"use strict";(function(t){var n,o;e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return r instanceof Set&&r.has(t)}}).call(this,e(14))},40:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p})),e.d(r,"b",(function(){return d}));var n=e(78),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(t){t?s():l()}!0===i&&p(f())}).call(this,e(14))},42:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(36),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="string"==typeof t;if(!r)return!1;var e=t.split("-");return 3===e.length&&Object(n.a)(new Date(t))}},48:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(28);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},49:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(17),o=e.n(n),a=e(1),i=function(t){return function(r){return function FilteredComponent(e){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(r,e),t)}}},c=function(r,e){return function(n){return function InnerComponent(a){return t.createElement(r,o()({},a,e,{OriginalComponent:n}))}}}}).call(this,e(1))},5:function(t,r){t.exports=googlesitekit.data},50:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"b",(function(){return b}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(7),u=e.n(c),s=e(70),l=e.n(s),f=e(9);function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(t,r){if(r&&Array.isArray(r)){var e=r.map((function(t){return"object"===i()(t)?Object(f.u)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(e)))}return t}var g={receiveError:function(t,r,e){return u()(t,"error is required."),r&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:r,args:e}}},clearError:function(t,r){return t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:r}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"selectorName is required."),t.getError(r,e,n)},getErrorForAction:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"actionName is required."),t.getError(r,e,n)},getError:function(t,r,e){var n=t.error,o=t.errors;return r||e?(u()(r,"baseName is required."),o[v(r,e)]):n},getErrors:function(t){var r=new Set(Object.values(t.errors));return void 0!==t.error&&r.add(t.error),Array.from(r)},hasErrors:function(r){return t.getErrors(r).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return p(p({},t),{},a?{errors:p(p({},t.errors||{}),{},o()({},v(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},t);if(u){var f=v(u,s);l.errors=p({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},t);if(d)for(var b in g.errors=p({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},52:function(t,r,e){"use strict";e.d(r,"a",(function(){return o})),e.d(r,"b",(function(){return n})),e.d(r,"e",(function(){return u})),e.d(r,"f",(function(){return p})),e.d(r,"g",(function(){return v})),e.d(r,"h",(function(){return f.a})),e.d(r,"d",(function(){return g})),e.d(r,"c",(function(){return h})),e.d(r,"i",(function(){return d}));var n="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".',a=e(7),i=e.n(a),c=e(36),u=function(t){var r=new Date(t);i()(Object(c.a)(r),"Date param must construct to a valid date instance or be a valid date instance itself.");var e="".concat(r.getMonth()+1),n="".concat(r.getDate());return[r.getFullYear(),e.length<2?"0".concat(e):e,n.length<2?"0".concat(n):n].join("-")},s=e(13),l=e.n(s),f=e(42),d=function(t){i()(Object(f.a)(t),n);var r=t.split("-"),e=l()(r,3),o=e[0],a=e[1],c=e[2];return new Date(o,a-1,c)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,e=d(t);return e.setDate(e.getDate()-r),u(e)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.split("-");return 3===r.length&&"last"===r[0]&&!Number.isNaN(r[1])&&!Number.isNaN(parseFloat(r[1]))&&"days"===r[2]};function g(t){var r=t.match(/last-(\d+)-days/);if(r&&r[1])return parseInt(r[1],10);throw new Error("Unrecognized date range slug.")}var b=e(2);function h(){var t=function(t){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
- Object(b._n)("Last %s day","Last %s days",t,"google-site-kit"),t)};return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}},56:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(19),o=e.n(n),a=e(70),i=e.n(a),c=function(t){return i()(JSON.stringify(function t(r){var e={};return Object.keys(r).sort().forEach((function(n){var a=r[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),e[n]=a})),e}(t)))}},58:function(t,r,e){"use strict";e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(19),o=e.n(n),a=e(81),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,r)}};function c(t){var r,e="object"===o()(t)?t.toString():t;return null==e||null===(r=e.replace)||void 0===r?void 0:r.call(e,/\/+$/,"")}},59:function(t,r,e){"use strict";(function(t){var n=e(0),o=e.n(n),a=e(8),i=e.n(a);function ChangeArrow(r){var e=r.direction,n=r.invertColor,o=r.width,a=r.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:o.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},r.a=ChangeArrow}).call(this,e(1))},60:function(t,r,e){"use strict";(function(t){e.d(r,"b",(function(){return g})),e.d(r,"d",(function(){return b})),e.d(r,"a",(function(){return h})),e.d(r,"c",(function(){return y}));var n=e(3),o=e.n(n),a=e(10),i=e.n(a);e(26);function c(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var s,l="googlesitekit_".concat("1.38.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var r=i()(o.a.mark((function r(e){var n,a;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t[e]){r.next=3;break}return r.abrupt("return",!1);case 3:return r.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(3),r.abrupt("return",r.t0 instanceof DOMException&&(22===r.t0.code||1014===r.t0.code||"QuotaExceededError"===r.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.t0.name)&&0!==n.length);case 13:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(t){return r.apply(this,arguments)}}(),v=function(){var r=i()(o.a.mark((function r(){var e,n,a,i,u;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(e=t._googlesitekitLegacyData)||void 0===e||null===(n=e.admin)||void 0===n?void 0:n.nojscache)){r.next=2;break}return r.abrupt("return",null);case 2:if(void 0!==s){r.next=25;break}a=c(d),r.prev=4,a.s();case 6:if((i=a.n()).done){r.next=16;break}if(u=i.value,!s){r.next=10;break}return r.abrupt("continue",14);case 10:return r.next=12,p(u);case 12:if(!r.sent){r.next=14;break}s=t[u];case 14:r.next=6;break;case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(4),a.e(r.t0);case 21:return r.prev=21,a.f(),r.finish(21);case 24:void 0===s&&(s=null);case 25:return r.abrupt("return",s);case 26:case"end":return r.stop()}}),r,null,[[4,18,21,24]])})));return function(){return r.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(r){var e,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(e=t.sent)){t.next=10;break}if(!(n=e.getItem("".concat(l).concat(r)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),b=function(){var r=i()(o.a.mark((function r(e,n){var a,i,c,u,s,f,d,p,g=arguments;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,r.next=3,v();case 3:if(!(p=r.sent)){r.next=14;break}return r.prev=5,p.setItem("".concat(l).concat(e),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(5),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 14:return r.abrupt("return",!1);case 15:case"end":return r.stop()}}),r,null,[[5,10]])})));return function(t,e){return r.apply(this,arguments)}}(),h=function(){var r=i()(o.a.mark((function r(e){var n;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(n=r.sent)){r.next=13;break}return r.prev=4,n.removeItem("".concat(l).concat(e)),r.abrupt("return",!0);case 9:return r.prev=9,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 13:return r.abrupt("return",!1);case 14:case"end":return r.stop()}}),r,null,[[4,9]])})));return function(t){return r.apply(this,arguments)}}(),y=function(){var r=i()(o.a.mark((function r(){var e,n,a,i;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(e=r.sent)){r.next=14;break}for(r.prev=4,n=[],a=0;a<e.length;a++)0===(i=e.key(a)).indexOf(l)&&n.push(i.substring(l.length));return r.abrupt("return",n);case 10:return r.prev=10,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",[]);case 14:return r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,10]])})));return function(){return r.apply(this,arguments)}}()}).call(this,e(14))},61:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return u})),e.d(r,"b",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(13),o=e.n(n),a=e(2);function i(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=null,e=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(r=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),e=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===r&&null===e)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(a._n)("%d notification","%d notifications",t,"google-site-kit"),t),i.appendChild(c),i.appendChild(u),r&&null===n&&r.appendChild(i),e&&null===o&&e.appendChild(i),i},s=function(){t.localStorage&&t.localStorage.clear(),t.sessionStorage&&t.sessionStorage.clear()},l=function(t){for(var r=location.search.substr(1).split("&"),e={},n=0;n<r.length;n++)e[r[n].split("=")[0]]=decodeURIComponent(r[n].split("=")[1]);return t?e.hasOwnProperty(t)?decodeURIComponent(e[t].replace(/\+/g," ")):"":e},f=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,e=new URL(r.href);if(t)return e.searchParams&&e.searchParams.get?e.searchParams.get(t):l(t);var n,a={},c=i(e.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=o()(n.value,2),s=u[0],f=u[1];a[s]=f}}catch(t){c.e(t)}finally{c.f()}return a}}).call(this,e(14))},65:function(t,r,e){"use strict";function n(t){return new URL(t).pathname}function o(t,r){return new URL(r,t).href}function a(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return o})),e.d(r,"c",(function(){return a}))},67:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return n}));var n="core/ui"},68:function(t,r,e){"use strict";(function(t){e.d(r,"c",(function(){return w})),e.d(r,"d",(function(){return S})),e.d(r,"b",(function(){return E})),e.d(r,"a",(function(){return k}));var n=e(13),o=e.n(n),a=e(19),i=e.n(a),c=e(6),u=e.n(c),s=e(16),l=e.n(s),f=e(18),d=e(64),p=e.n(d),v=e(2);function g(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function b(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?g(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var h=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=y(t,r),n=e.formatUnit,o=e.formatDecimal;try{return n()}catch(t){return o()}},y=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=parseInt(t,10),Number.isNaN(t)&&(t=0);var e=Math.floor(t/60/60),n=Math.floor(t/60%60),o=Math.floor(t%60);return{hours:e,minutes:n,seconds:o,formatUnit:function(){var a=r.unitDisplay,i=b(b({unitDisplay:void 0===a?"short":a},l()(r,["unitDisplay"])),{},{style:"unit"});return 0===t?S(o,b(b({},i),{},{unit:"second"})):Object(v.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -13,4 +13,4 @@ Object(v._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?
13
  Object(v.__)("%sM","google-site-kit"),S(m(t),t%10==0?{}:r)):1e4<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(v.__)("%sK","google-site-kit"),S(m(t))):1e3<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(v.__)("%sK","google-site-kit"),S(m(t),t%10==0?{}:r)):S(t,{signDisplay:"never",maximumFractionDigits:1})},w=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(f.isFinite)(t)?t:Number(t),Object(f.isFinite)(t)||(console.warn("Invalid number",t,i()(t)),t=0);var e={};if("%"===r)e={style:"percent",maximumFractionDigits:2};else{if("s"===r)return h(t,{unitDisplay:"narrow"});r&&"string"==typeof r?e={style:"currency",currency:r}:Object(f.isPlainObject)(r)&&(e=b({},r))}var n=e,o=n.style,a=void 0===o?"metric":o;return"metric"===a?O(t):"duration"===a?h(t,r):S(t,e)},j=p()(console.warn),S=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?k():e,a=l()(r,["locale"]);try{return new Intl.NumberFormat(n,a).format(t)}catch(r){j("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(i()(t)," )"),r.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var p=o()(d[f],2),v=p[0],g=p[1];c[v]&&g===c[v]||(u.includes(v)||(s[v]=g))}try{return new Intl.NumberFormat(n,s).format(t)}catch(r){return new Intl.NumberFormat(n).format(t)}},E=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?k():e,o=r.style,a=void 0===o?"long":o,i=r.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(v.__)(", ","google-site-kit");return t.join(s)},k=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(f.get)(r,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return r.navigator.language}}).call(this,e(14))},74:function(t,r,e){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var r=t,e=0,i=[n,o,a];e<i.length;e++){r=(0,i[e])(r)}return r}e.d(r,"a",(function(){return i}))},75:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}},76:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var n=e(189),o=e(59),a=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(r)))return"";var a=e.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:r>0?"up":"down",invertColor:i}))},i=function(t){var r,e,n,o,a,i,c,u,s,l,f,d,p,v,g;if(void 0!==t)return 1===(null==t||null===(r=t[0])||void 0===r||null===(e=r.data)||void 0===e||null===(n=e.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,e(1))},78:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n=e(6),o=e.n(n),a=e(79),i=e(80);function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),r);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,e),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,e,n)}}}).call(this,e(14))},79:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a}));var n=e(48),o=e(28);function a(r,e){var a=Object(n.a)(e);return function(){r.trackingEnabled=!0;var e=t.document;if(!e.querySelector("script[".concat(o.b,"]"))){var n=e.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID,"&l=").concat(o.a),e.head.appendChild(n),a("js",new Date),a("config",r.trackingID)}}}}).call(this,e(14))},80:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p}));var n=e(3),o=e.n(n),a=e(6),i=e.n(a),c=e(10),u=e.n(c),s=e(48),l=e(37);function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){i()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function p(r,e,n){var a=Object(s.a)(e);return function(){var e=u()(o.a.mark((function e(i,c,u,s){var f,p,v,g,b,h,y,m;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=r.isFirstAdmin,g=r.referenceSiteURL,b=r.trackingEnabled,h=r.trackingID,y=r.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){e.next=3;break}return e.abrupt("return");case 3:if(b){e.next=5;break}return e.abrupt("return");case 5:return m={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:y,dimension4:"1.38.0",dimension5:Array.from(l.a).join(", ")},e.abrupt("return",new Promise((function(r){var e=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),r()}),1e3);a("event",c,d(d({},m),{},{event_callback:function(){clearTimeout(e),r()}}))})));case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}()}}).call(this,e(14))},81:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return o}));var n=e(109),o=e.n(n)()(t)}).call(this,e(14))},9:function(t,r,e){"use strict";(function(t){e.d(r,"k",(function(){return E})),e.d(r,"a",(function(){return k})),e.d(r,"i",(function(){return _})),e.d(r,"x",(function(){return D})),e.d(r,"d",(function(){return P}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(108),u=e.n(c),s=e(104),l=e.n(s),f=e(40);e.d(r,"v",(function(){return f.b}));var d=e(58);e.d(r,"s",(function(){return d.a})),e.d(r,"w",(function(){return d.b}));var p=e(56);e.d(r,"u",(function(){return p.a}));var v=e(61);e.d(r,"b",(function(){return v.b})),e.d(r,"j",(function(){return v.c}));e(32);var g=e(68);e.d(r,"h",(function(){return g.a})),e.d(r,"n",(function(){return g.b})),e.d(r,"q",(function(){return g.c})),e.d(r,"r",(function(){return g.d}));var b=e(49);e.d(r,"e",(function(){return b.b}));var h=e(74);e.d(r,"o",(function(){return h.a}));var y=e(75);e.d(r,"c",(function(){return y.a}));var m=e(52);e.d(r,"t",(function(){return m.i}));var O=e(76);e.d(r,"f",(function(){return O.a})),e.d(r,"m",(function(){return O.b}));var w=e(65);function j(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function S(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?j(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):j(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}e.d(r,"g",(function(){return w.a})),e.d(r,"l",(function(){return w.b})),e.d(r,"p",(function(){return w.c}));var E=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},k=function(t,r){if("0"===t||0===t||isNaN(t))return null;var e=(r-t)/t;return isNaN(e)||!u()(e)?null:e},_=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,e=r.modules;return e?Object.keys(e).reduce((function(t,r){return"object"!==i()(e[r])||void 0===e[r].slug||void 0===e[r].name||e[r].slug!==r?t:S(S({},t),{},o()({},r,e[r]))}),{}):{}},D=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},P=function(t){if(!t)return"";var r=t.replace(/&#(\d+);/g,(function(t,r){return String.fromCharCode(r)})).replace(/(\\)/g,"");return l()(r)}}).call(this,e(14))},93:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"c",(function(){return h})),e.d(r,"b",(function(){return y}));var n=e(16),o=e.n(n),a=e(6),i=e.n(a),c=e(3),u=e.n(c),s=e(7),l=e.n(s),f=e(5),d=e.n(f),p=e(60),v=d.a.createRegistryControl,g=function(t){var r;l()(t,"storeName is required to create a snapshot store.");var e={},n={deleteSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var r,e,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>0&&void 0!==c[0]?c[0]:{},e=r.clearAfterRestore,n=void 0===e||e,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))},a=(r={},i()(r,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(t))})),i()(r,"CREATE_SNAPSHOT",v((function(r){return function(){return Object(p.d)("datastore::cache::".concat(t),r.stores[t].store.getState())}}))),i()(r,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(t),3600)})),r);return{initialState:e,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},974:function(t,r,e){"use strict";e.r(r);var n=e(5),o=e.n(n),a=e(50),i=e(93),c=e(6),u=e.n(c),s=e(7),l=e.n(s),f=e(53),d=e.n(f);function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?p(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var g={initialState:{},actions:{setValues:function(t){return l()(d()(t),"values must be an object."),{payload:{values:t},type:"SET_VALUES"}},setValue:function(t,r){return l()(t,"key is required."),{payload:{key:t,value:r},type:"SET_VALUE"}}},controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"SET_VALUES":var o=n.values;return v(v({},t),o);case"SET_VALUE":var a=n.key,i=n.value;return v(v({},t),{},u()({},a,i));default:return t}},resolvers:{},selectors:{getValue:function(t,r){return t[r]}}},b=e(67),h=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors;o.a.registerStore(b.b,h)}},[[974,1,0]]]);
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[13],{2:function(t,r){t.exports=googlesitekit.i18n},28:function(t,r,e){"use strict";e.d(r,"a",(function(){return n})),e.d(r,"b",(function(){return o}));var n="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},32:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n,o=e(33),a=e.n(o),i=e(34),c=e.n(i),u=function(r){var e=t[r];if(!e)return!1;try{var n="__storage_test__";return e.setItem(n,n),e.removeItem(n),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),n}}).call(this,e(14))},36:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t instanceof Date&&!isNaN(t)}},37:function(t,r,e){"use strict";(function(t){var n,o;e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var a=new Set((null===(n=t)||void 0===n||null===(o=n._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[]),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return r instanceof Set&&r.has(t)}}).call(this,e(14))},40:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p})),e.d(r,"b",(function(){return d}));var n=e(78),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(t){t?s():l()}!0===i&&p(f())}).call(this,e(14))},42:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(36),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r="string"==typeof t;if(!r)return!1;var e=t.split("-");return 3===e.length&&Object(n.a)(new Date(t))}},48:function(t,r,e){"use strict";e.d(r,"a",(function(){return o}));var n=e(28);function o(t){return function(){t[n.a]=t[n.a]||[],t[n.a].push(arguments)}}},49:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(17),o=e.n(n),a=e(1),i=function(t){return function(r){return function FilteredComponent(e){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(r,e),t)}}},c=function(r,e){return function(n){return function InnerComponent(a){return t.createElement(r,o()({},a,e,{OriginalComponent:n}))}}}}).call(this,e(1))},5:function(t,r){t.exports=googlesitekit.data},50:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"b",(function(){return b}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(7),u=e.n(c),s=e(70),l=e.n(s),f=e(9);function d(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?d(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(t,r){if(r&&Array.isArray(r)){var e=r.map((function(t){return"object"===i()(t)?Object(f.u)(t):t}));return"".concat(t,"::").concat(l()(JSON.stringify(e)))}return t}var g={receiveError:function(t,r,e){return u()(t,"error is required."),r&&u()(e&&Array.isArray(e),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:t,baseName:r,args:e}}},clearError:function(t,r){return t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:t,args:r}}},clearErrors:function(t){return{type:"CLEAR_ERRORS",payload:{baseName:t}}}};function b(){var t={getErrorForSelector:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"selectorName is required."),t.getError(r,e,n)},getErrorForAction:function(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(e,"actionName is required."),t.getError(r,e,n)},getError:function(t,r,e){var n=t.error,o=t.errors;return r||e?(u()(r,"baseName is required."),o[v(r,e)]):n},getErrors:function(t){var r=new Set(Object.values(t.errors));return void 0!==t.error&&r.add(t.error),Array.from(r)},hasErrors:function(r){return t.getErrors(r).length>0}};return{initialState:{errors:{},error:void 0},actions:g,controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"RECEIVE_ERROR":var a=n.baseName,i=n.args,c=n.error;return p(p({},t),{},a?{errors:p(p({},t.errors||{}),{},o()({},v(a,i),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},t);if(u){var f=v(u,s);l.errors=p({},t.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,g=p({},t);if(d)for(var b in g.errors=p({},t.errors||{}),g.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete g.errors[b];else g.errors={},g.error=void 0;return g;default:return t}},resolvers:{},selectors:t}}},52:function(t,r,e){"use strict";e.d(r,"a",(function(){return o})),e.d(r,"b",(function(){return n})),e.d(r,"e",(function(){return u})),e.d(r,"f",(function(){return p})),e.d(r,"g",(function(){return v})),e.d(r,"h",(function(){return f.a})),e.d(r,"d",(function(){return g})),e.d(r,"c",(function(){return h})),e.d(r,"i",(function(){return d}));var n="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".',a=e(7),i=e.n(a),c=e(36),u=function(t){var r=new Date(t);i()(Object(c.a)(r),"Date param must construct to a valid date instance or be a valid date instance itself.");var e="".concat(r.getMonth()+1),n="".concat(r.getDate());return[r.getFullYear(),e.length<2?"0".concat(e):e,n.length<2?"0".concat(n):n].join("-")},s=e(13),l=e.n(s),f=e(42),d=function(t){i()(Object(f.a)(t),n);var r=t.split("-"),e=l()(r,3),o=e[0],a=e[1],c=e[2];return new Date(o,a-1,c)},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,e=d(t);return e.setDate(e.getDate()-r),u(e)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=t.split("-");return 3===r.length&&"last"===r[0]&&!Number.isNaN(r[1])&&!Number.isNaN(parseFloat(r[1]))&&"days"===r[2]};function g(t){var r=t.match(/last-(\d+)-days/);if(r&&r[1])return parseInt(r[1],10);throw new Error("Unrecognized date range slug.")}var b=e(2);function h(){var t=function(t){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
+ Object(b._n)("Last %s day","Last %s days",t,"google-site-kit"),t)};return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}},56:function(t,r,e){"use strict";e.d(r,"a",(function(){return c}));var n=e(19),o=e.n(n),a=e(70),i=e.n(a),c=function(t){return i()(JSON.stringify(function t(r){var e={};return Object.keys(r).sort().forEach((function(n){var a=r[n];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),e[n]=a})),e}(t)))}},58:function(t,r,e){"use strict";e.d(r,"a",(function(){return i})),e.d(r,"b",(function(){return c}));var n=e(19),o=e.n(n),a=e(81),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(t,r)}};function c(t){var r,e="object"===o()(t)?t.toString():t;return null==e||null===(r=e.replace)||void 0===r?void 0:r.call(e,/\/+$/,"")}},59:function(t,r,e){"use strict";(function(t){var n=e(0),o=e.n(n),a=e(8),i=e.n(a);function ChangeArrow(r){var e=r.direction,n=r.invertColor,o=r.width,a=r.height;return t.createElement("svg",{className:i()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("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:o.a.string,invertColor:o.a.bool,width:o.a.number,height:o.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},r.a=ChangeArrow}).call(this,e(1))},60:function(t,r,e){"use strict";(function(t){e.d(r,"b",(function(){return g})),e.d(r,"d",(function(){return b})),e.d(r,"a",(function(){return h})),e.d(r,"c",(function(){return y}));var n=e(3),o=e.n(n),a=e(10),i=e.n(a);e(26);function c(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return u(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return u(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function u(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var s,l="googlesitekit_".concat("1.38.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var r=i()(o.a.mark((function r(e){var n,a;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t[e]){r.next=3;break}return r.abrupt("return",!1);case 3:return r.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(3),r.abrupt("return",r.t0 instanceof DOMException&&(22===r.t0.code||1014===r.t0.code||"QuotaExceededError"===r.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===r.t0.name)&&0!==n.length);case 13:case"end":return r.stop()}}),r,null,[[3,10]])})));return function(t){return r.apply(this,arguments)}}(),v=function(){var r=i()(o.a.mark((function r(){var e,n,a,i,u;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null===(e=t._googlesitekitLegacyData)||void 0===e||null===(n=e.admin)||void 0===n?void 0:n.nojscache)){r.next=2;break}return r.abrupt("return",null);case 2:if(void 0!==s){r.next=25;break}a=c(d),r.prev=4,a.s();case 6:if((i=a.n()).done){r.next=16;break}if(u=i.value,!s){r.next=10;break}return r.abrupt("continue",14);case 10:return r.next=12,p(u);case 12:if(!r.sent){r.next=14;break}s=t[u];case 14:r.next=6;break;case 16:r.next=21;break;case 18:r.prev=18,r.t0=r.catch(4),a.e(r.t0);case 21:return r.prev=21,a.f(),r.finish(21);case 24:void 0===s&&(s=null);case 25:return r.abrupt("return",s);case 26:case"end":return r.stop()}}),r,null,[[4,18,21,24]])})));return function(){return r.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(r){var e,n,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(e=t.sent)){t.next=10;break}if(!(n=e.getItem("".concat(l).concat(r)))){t.next=10;break}if(a=JSON.parse(n),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),b=function(){var r=i()(o.a.mark((function r(e,n){var a,i,c,u,s,f,d,p,g=arguments;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,r.next=3,v();case 3:if(!(p=r.sent)){r.next=14;break}return r.prev=5,p.setItem("".concat(l).concat(e),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(5),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 14:return r.abrupt("return",!1);case 15:case"end":return r.stop()}}),r,null,[[5,10]])})));return function(t,e){return r.apply(this,arguments)}}(),h=function(){var r=i()(o.a.mark((function r(e){var n;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(n=r.sent)){r.next=13;break}return r.prev=4,n.removeItem("".concat(l).concat(e)),r.abrupt("return",!0);case 9:return r.prev=9,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",!1);case 13:return r.abrupt("return",!1);case 14:case"end":return r.stop()}}),r,null,[[4,9]])})));return function(t){return r.apply(this,arguments)}}(),y=function(){var r=i()(o.a.mark((function r(){var e,n,a,i;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,v();case 2:if(!(e=r.sent)){r.next=14;break}for(r.prev=4,n=[],a=0;a<e.length;a++)0===(i=e.key(a)).indexOf(l)&&n.push(i.substring(l.length));return r.abrupt("return",n);case 10:return r.prev=10,r.t0=r.catch(4),t.console.warn("Encountered an unexpected storage error:",r.t0),r.abrupt("return",[]);case 14:return r.abrupt("return",[]);case 15:case"end":return r.stop()}}),r,null,[[4,10]])})));return function(){return r.apply(this,arguments)}}()}).call(this,e(14))},61:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return u})),e.d(r,"b",(function(){return s})),e.d(r,"c",(function(){return f}));var n=e(13),o=e.n(n),a=e(2);function i(t,r){var e;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"==typeof t)return c(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,r)}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=null,e=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&o)return!1;if(r=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),e=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===r&&null===e)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(a._n)("%d notification","%d notifications",t,"google-site-kit"),t),i.appendChild(c),i.appendChild(u),r&&null===n&&r.appendChild(i),e&&null===o&&e.appendChild(i),i},s=function(){t.localStorage&&t.localStorage.clear(),t.sessionStorage&&t.sessionStorage.clear()},l=function(t){for(var r=location.search.substr(1).split("&"),e={},n=0;n<r.length;n++)e[r[n].split("=")[0]]=decodeURIComponent(r[n].split("=")[1]);return t?e.hasOwnProperty(t)?decodeURIComponent(e[t].replace(/\+/g," ")):"":e},f=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,e=new URL(r.href);if(t)return e.searchParams&&e.searchParams.get?e.searchParams.get(t):l(t);var n,a={},c=i(e.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=o()(n.value,2),s=u[0],f=u[1];a[s]=f}}catch(t){c.e(t)}finally{c.f()}return a}}).call(this,e(14))},65:function(t,r,e){"use strict";function n(t){return new URL(t).pathname}function o(t,r){return new URL(r,t).href}function a(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return o})),e.d(r,"c",(function(){return a}))},67:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"a",(function(){return n}));var n="core/ui"},68:function(t,r,e){"use strict";(function(t){e.d(r,"c",(function(){return w})),e.d(r,"d",(function(){return S})),e.d(r,"b",(function(){return E})),e.d(r,"a",(function(){return k}));var n=e(13),o=e.n(n),a=e(19),i=e.n(a),c=e(6),u=e.n(c),s=e(16),l=e.n(s),f=e(18),d=e(64),p=e.n(d),v=e(2);function g(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function b(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?g(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var h=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=y(t,r),n=e.formatUnit,o=e.formatDecimal;try{return n()}catch(t){return o()}},y=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=parseInt(t,10),Number.isNaN(t)&&(t=0);var e=Math.floor(t/60/60),n=Math.floor(t/60%60),o=Math.floor(t%60);return{hours:e,minutes:n,seconds:o,formatUnit:function(){var a=r.unitDisplay,i=b(b({unitDisplay:void 0===a?"short":a},l()(r,["unitDisplay"])),{},{style:"unit"});return 0===t?S(o,b(b({},i),{},{unit:"second"})):Object(v.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
13
  Object(v.__)("%sM","google-site-kit"),S(m(t),t%10==0?{}:r)):1e4<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(v.__)("%sK","google-site-kit"),S(m(t))):1e3<=t?Object(v.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(v.__)("%sK","google-site-kit"),S(m(t),t%10==0?{}:r)):S(t,{signDisplay:"never",maximumFractionDigits:1})},w=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(f.isFinite)(t)?t:Number(t),Object(f.isFinite)(t)||(console.warn("Invalid number",t,i()(t)),t=0);var e={};if("%"===r)e={style:"percent",maximumFractionDigits:2};else{if("s"===r)return h(t,{unitDisplay:"narrow"});r&&"string"==typeof r?e={style:"currency",currency:r}:Object(f.isPlainObject)(r)&&(e=b({},r))}var n=e,o=n.style,a=void 0===o?"metric":o;return"metric"===a?O(t):"duration"===a?h(t,r):S(t,e)},j=p()(console.warn),S=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?k():e,a=l()(r,["locale"]);try{return new Intl.NumberFormat(n,a).format(t)}catch(r){j("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(i()(t)," )"),r.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var p=o()(d[f],2),v=p[0],g=p[1];c[v]&&g===c[v]||(u.includes(v)||(s[v]=g))}try{return new Intl.NumberFormat(n,s).format(t)}catch(r){return new Intl.NumberFormat(n).format(t)}},E=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=r.locale,n=void 0===e?k():e,o=r.style,a=void 0===o?"long":o,i=r.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(t)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(v.__)(", ","google-site-kit");return t.join(s)},k=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(f.get)(r,["_googlesitekitLegacyData","locale"]);if(e){var n=e.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return r.navigator.language}}).call(this,e(14))},74:function(t,r,e){"use strict";function n(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var r=t,e=0,i=[n,o,a];e<i.length;e++){r=(0,i[e])(r)}return r}e.d(r,"a",(function(){return i}))},75:function(t,r,e){"use strict";e.d(r,"a",(function(){return n}));var n=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}},76:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a})),e.d(r,"b",(function(){return i}));var n=e(189),o=e(59),a=function(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(r)))return"";var a=e.invertColor,i=void 0!==a&&a;return Object(n.a)(t.createElement(o.a,{direction:r>0?"up":"down",invertColor:i}))},i=function(t){var r,e,n,o,a,i,c,u,s,l,f,d,p,v,g;if(void 0!==t)return 1===(null==t||null===(r=t[0])||void 0===r||null===(e=r.data)||void 0===e||null===(n=e.rows)||void 0===n?void 0:n.length)||(null==t||null===(o=t[0])||void 0===o||null===(a=o.data)||void 0===a||null===(i=a.rows)||void 0===i||null===(c=i[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(v=p[0])||void 0===v||null===(g=v.values)||void 0===g?void 0:g[0])}}).call(this,e(1))},78:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return l}));var n=e(6),o=e.n(n),a=e(79),i=e(80);function c(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),r);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,e),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,e,n)}}}).call(this,e(14))},79:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return a}));var n=e(48),o=e(28);function a(r,e){var a=Object(n.a)(e);return function(){r.trackingEnabled=!0;var e=t.document;if(!e.querySelector("script[".concat(o.b,"]"))){var n=e.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(r.trackingID,"&l=").concat(o.a),e.head.appendChild(n),a("js",new Date),a("config",r.trackingID)}}}}).call(this,e(14))},80:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return p}));var n=e(3),o=e.n(n),a=e(6),i=e.n(a),c=e(10),u=e.n(c),s=e(48),l=e(37);function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function d(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){i()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function p(r,e,n){var a=Object(s.a)(e);return function(){var e=u()(o.a.mark((function e(i,c,u,s){var f,p,v,g,b,h,y,m;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v=r.isFirstAdmin,g=r.referenceSiteURL,b=r.trackingEnabled,h=r.trackingID,y=r.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){e.next=3;break}return e.abrupt("return");case 3:if(b){e.next=5;break}return e.abrupt("return");case 5:return m={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:y,dimension4:"1.38.1",dimension5:Array.from(l.a).join(", ")},e.abrupt("return",new Promise((function(r){var e=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),r()}),1e3);a("event",c,d(d({},m),{},{event_callback:function(){clearTimeout(e),r()}}))})));case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,o){return e.apply(this,arguments)}}()}}).call(this,e(14))},81:function(t,r,e){"use strict";(function(t){e.d(r,"a",(function(){return o}));var n=e(109),o=e.n(n)()(t)}).call(this,e(14))},9:function(t,r,e){"use strict";(function(t){e.d(r,"k",(function(){return E})),e.d(r,"a",(function(){return k})),e.d(r,"i",(function(){return _})),e.d(r,"x",(function(){return D})),e.d(r,"d",(function(){return P}));var n=e(6),o=e.n(n),a=e(19),i=e.n(a),c=e(108),u=e.n(c),s=e(104),l=e.n(s),f=e(40);e.d(r,"v",(function(){return f.b}));var d=e(58);e.d(r,"s",(function(){return d.a})),e.d(r,"w",(function(){return d.b}));var p=e(56);e.d(r,"u",(function(){return p.a}));var v=e(61);e.d(r,"b",(function(){return v.b})),e.d(r,"j",(function(){return v.c}));e(32);var g=e(68);e.d(r,"h",(function(){return g.a})),e.d(r,"n",(function(){return g.b})),e.d(r,"q",(function(){return g.c})),e.d(r,"r",(function(){return g.d}));var b=e(49);e.d(r,"e",(function(){return b.b}));var h=e(74);e.d(r,"o",(function(){return h.a}));var y=e(75);e.d(r,"c",(function(){return y.a}));var m=e(52);e.d(r,"t",(function(){return m.i}));var O=e(76);e.d(r,"f",(function(){return O.a})),e.d(r,"m",(function(){return O.b}));var w=e(65);function j(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function S(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?j(Object(e),!0).forEach((function(r){o()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):j(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}e.d(r,"g",(function(){return w.a})),e.d(r,"l",(function(){return w.b})),e.d(r,"p",(function(){return w.c}));var E=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},k=function(t,r){if("0"===t||0===t||isNaN(t))return null;var e=(r-t)/t;return isNaN(e)||!u()(e)?null:e},_=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,e=r.modules;return e?Object.keys(e).reduce((function(t,r){return"object"!==i()(e[r])||void 0===e[r].slug||void 0===e[r].name||e[r].slug!==r?t:S(S({},t),{},o()({},r,e[r]))}),{}):{}},D=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},P=function(t){if(!t)return"";var r=t.replace(/&#(\d+);/g,(function(t,r){return String.fromCharCode(r)})).replace(/(\\)/g,"");return l()(r)}}).call(this,e(14))},93:function(t,r,e){"use strict";e.d(r,"a",(function(){return g})),e.d(r,"c",(function(){return h})),e.d(r,"b",(function(){return y}));var n=e(16),o=e.n(n),a=e(6),i=e.n(a),c=e(3),u=e.n(c),s=e(7),l=e.n(s),f=e(5),d=e.n(f),p=e(60),v=d.a.createRegistryControl,g=function(t){var r;l()(t,"storeName is required to create a snapshot store.");var e={},n={deleteSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"DELETE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})),restoreSnapshot:u.a.mark((function t(){var r,e,n,o,a,i,c=arguments;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>0&&void 0!==c[0]?c[0]:{},e=r.clearAfterRestore,n=void 0===e||e,t.next=4,{payload:{},type:"RESTORE_SNAPSHOT"};case 4:if(o=t.sent,a=o.cacheHit,i=o.value,!a){t.next=13;break}return t.next=10,{payload:{snapshot:i},type:"SET_STATE_FROM_SNAPSHOT"};case 10:if(!n){t.next=13;break}return t.next=13,{payload:{},type:"DELETE_SNAPSHOT"};case 13:return t.abrupt("return",a);case 14:case"end":return t.stop()}}),t)})),createSnapshot:u.a.mark((function t(){var r;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{payload:{},type:"CREATE_SNAPSHOT"};case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))},a=(r={},i()(r,"DELETE_SNAPSHOT",(function(){return Object(p.a)("datastore::cache::".concat(t))})),i()(r,"CREATE_SNAPSHOT",v((function(r){return function(){return Object(p.d)("datastore::cache::".concat(t),r.stores[t].store.getState())}}))),i()(r,"RESTORE_SNAPSHOT",(function(){return Object(p.b)("datastore::cache::".concat(t),3600)})),r);return{initialState:e,actions:n,controls:a,reducer:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,n=r.type,a=r.payload;switch(n){case"SET_STATE_FROM_SNAPSHOT":var i=a.snapshot,c=(i.error,o()(i,["error"]));return c;default:return t}}}},b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Object.values(t.stores).filter((function(t){return Object.keys(t.getActions()).includes("restoreSnapshot")}))},h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().createSnapshot()})))},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a;return Promise.all(b(t).map((function(t){return t.getActions().restoreSnapshot()})))}},974:function(t,r,e){"use strict";e.r(r);var n=e(5),o=e.n(n),a=e(50),i=e(93),c=e(6),u=e.n(c),s=e(7),l=e.n(s),f=e(53),d=e.n(f);function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?p(Object(e),!0).forEach((function(r){u()(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}var g={initialState:{},actions:{setValues:function(t){return l()(d()(t),"values must be an object."),{payload:{values:t},type:"SET_VALUES"}},setValue:function(t,r){return l()(t,"key is required."),{payload:{key:t,value:r},type:"SET_VALUE"}}},controls:{},reducer:function(t,r){var e=r.type,n=r.payload;switch(e){case"SET_VALUES":var o=n.values;return v(v({},t),o);case"SET_VALUE":var a=n.key,i=n.value;return v(v({},t),{},u()({},a,i));default:return t}},resolvers:{},selectors:{getValue:function(t,r){return t[r]}}},b=e(67),h=o.a.combineStores(o.a.commonStore,g,Object(i.a)(b.b),Object(a.b)());h.initialState,h.actions,h.controls,h.reducer,h.resolvers,h.selectors;o.a.registerStore(b.b,h)}},[[974,1,0]]]);
dist/assets/js/{googlesitekit-datastore-user.7636d399f6fb53ede037.js → googlesitekit-datastore-user.0da5474f19453689db33.js} RENAMED
@@ -1,6 +1,6 @@
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[14],{11:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return o}));var n="core/user",i="connected_url_mismatch",a="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},112:function(e,t,r){"use strict";var n=r(106);t.a=function(e){var t=Object.keys(e).reduce((function(t,r){return t[Object(n.getStablePath)(r)]=e[r],t}),{}),r=!1;return function(e,i){if(r)return i(e);setTimeout((function(){r=!0}),1e3);var a=e.parse,o=void 0===a||a,c=e.path;if("string"==typeof e.path){var u,s=(null===(u=e.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(n.getStablePath)(c);if(o&&"GET"===s&&t[l]){var f=Promise.resolve(t[l].body);return delete t[l],f}if("OPTIONS"===s&&t[s]&&t[s][l]){var d=Promise.resolve(t[s][l]);return delete t[s][l],d}}return i(e)}}},12:function(e,t,r){"use strict";r.d(t,"p",(function(){return n})),r.d(t,"f",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"h",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"k",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"t",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"u",(function(){return g})),r.d(t,"q",(function(){return v})),r.d(t,"r",(function(){return b})),r.d(t,"n",(function(){return y})),r.d(t,"o",(function(){return m})),r.d(t,"l",(function(){return h})),r.d(t,"m",(function(){return O})),r.d(t,"j",(function(){return S})),r.d(t,"i",(function(){return E}));var n="modules/analytics",i="account_create",a="property_create",o="profile_create",c="analyticsAccountCreate",u="analyticsSetup",s="https://www.googleapis.com/auth/analytics.provision",l="https://www.googleapis.com/auth/analytics.edit",f=1,d="dashboardAllTrafficWidgetDimensionName",p="dashboardAllTrafficWidgetDimensionColor",g="dashboardAllTrafficWidgetDimensionValue",v="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",y="legacy",m="ua",h="ga4",O="ga4-transitional",S="ua",E="ga4"},138:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(3),i=r.n(n),a=r(10),o=r.n(a),c=r(9),u=["fetch_error"];function s(e){return l.apply(this,arguments)}function l(){return(l=o()(i.a.mark((function e(t){var r,n,a,o,s,l,f,d;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.method,o=t.type,s=t.identifier,l=t.datapoint,(f=t.error)&&!u.includes(null==f?void 0:f.code)){e.next=3;break}return e.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(r=f.data)||void 0===r?void 0:r.reason)&&(d+=", reason: ".concat(f.data.reason)),e.next=7,Object(c.v)("api_error","".concat(a,":").concat(o,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(n=f.data)||void 0===n?void 0:n.status)||f.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},2:function(e,t){e.exports=googlesitekit.i18n},23:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="core/modules",i="insufficient_module_dependencies"},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="_googlesitekitDataLayer",i="data-googlesitekit-gtag"},281:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="dashboard",i="pageDashboard"},318:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(38),l=r.n(s),f=r(5),d=r.n(f),p=r(45);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=a.client,s=void 0===c||c,f=a.server,g=void 0===f||f,b=a.storeName,y=void 0===b?void 0:b;u()(t,"type is required."),u()(r,"identifier is required."),u()(n,"datapoint is required.");var m=y||"".concat(t,"/").concat(r),h={serverNotifications:g?void 0:{},clientNotifications:s?void 0:{}},O=Object(p.a)({baseName:"getNotifications",controlCallback:function(){return l.a.get(t,r,n)},reducerCallback:function(e,t){return v(v({},e),{},{serverNotifications:t.reduce((function(e,t){return v(v({},e),{},o()({},t.id,t))}),{})})}}),S={addNotification:function(e){return u()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return u()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},E={},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.type,i=r.payload;switch(n){case"ADD_NOTIFICATION":var a=i.notification;return v(v({},t),{},{clientNotifications:v(v({},t.clientNotifications||{}),{},o()({},a.id,a))});case"REMOVE_NOTIFICATION":var c=i.id;if(void 0===t.clientNotifications||void 0===t.clientNotifications[c])return void 0!==t.serverNotifications&&void 0!==t.serverNotifications[c]&&e.console.warn('Cannot remove server-side notification with ID "'.concat(c,'"; this may be changed in a future release.')),t;var u=v({},t.clientNotifications);return delete u[c],v(v({},t),{},{clientNotifications:u});default:return t}},_={getNotifications:i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.actions.fetchGetNotifications();case 2:case"end":return e.stop()}}),e)}))};g||delete _.getNotifications;var j={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(v(v({},t||{}),r||{}))}},k=d.a.combineStores(O,{initialState:h,actions:S,controls:E,reducer:w,resolvers:_,selectors:j});return v(v({},k),{},{STORE_NAME:m})}}).call(this,r(14))},32:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n,i=r(33),a=r.n(i),o=r(34),c=r.n(o),u=function(t){var r=e[t];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==r.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?e.sessionStorage:u("localStorage")?e.localStorage:new s),n}}).call(this,r(14))},36:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},361:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y}));var n=r(3),i=r.n(n),a=r(10),o=r.n(a),c=r(7),u=r.n(c),s=r(85),l=r(147),f=r(60),d=r(9),p=r(66),g=r(138),v=r(11),b=!0,y=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[e,t,r].filter((function(e){return!!e&&e.length}));return 3===i.length&&n&&n.constructor===Object&&Object.keys(n).length&&i.push(Object(d.u)(n)),i.join("::")},m=function(t){var r,n,i,a,o=null===(r=e.googlesitekit)||void 0===r||null===(n=r.data)||void 0===n||null===(i=n.dispatch)||void 0===i?void 0:i.call(n,v.a);o&&(t.code===p.a?o.setPermissionScopeError(t):(null===(a=t.data)||void 0===a?void 0:a.reconnectURL)&&o.setAuthError(t))},h=function(){var t=o()(i.a.mark((function t(r,n,a){var o,c,d,p,v,b,h,O,S,w,_,j,k,I,D,T,x=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=x.length>3&&void 0!==x[3]?x[3]:{},c=o.bodyParams,d=o.cacheTTL,p=void 0===d?3600:d,v=o.method,b=void 0===v?"GET":v,h=o.queryParams,O=o.useCache,S=void 0===O?void 0:O,u()(r,"`type` argument for requests is required."),u()(n,"`identifier` argument for requests is required."),u()(a,"`datapoint` argument for requests is required."),w="GET"===b&&(void 0!==S?S:E()),_=y(r,n,a,h),!w){t.next=18;break}return t.next=9,Object(f.b)(_);case 9:if(j=t.sent,k=j.cacheHit,I=j.value,!j.isError){t.next=16;break}throw m(I),I;case 16:if(!k){t.next=18;break}return t.abrupt("return",I);case 18:return t.prev=18,t.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(r,"/").concat(n,"/data/").concat(a),h)});case 21:if(D=t.sent,!w){t.next=25;break}return t.next=25,Object(f.d)(_,D,{ttl:p});case 25:return t.abrupt("return",D);case 28:if(t.prev=28,t.t0=t.catch(18),!(null===t.t0||void 0===t.t0||null===(T=t.t0.data)||void 0===T?void 0:T.cacheTTL)){t.next=33;break}return t.next=33,Object(f.d)(_,t.t0,{ttl:t.t0.data.cacheTTL,isError:!0});case 33:throw Object(g.a)({method:b,datapoint:a,type:r,identifier:n,error:t.t0}),m(t.t0),e.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(a),"type:".concat(r),"identifier:".concat(n),'error:"'.concat(t.t0.message,'"')),t.t0;case 37:case"end":return t.stop()}}),t,null,[[18,28]])})));return function(e,r,n){return t.apply(this,arguments)}}(),O=function(){var e=o()(i.a.mark((function e(t,r,n,a){var o,c,u,s,l,f=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>4&&void 0!==f[4]?f[4]:{},c=o.cacheTTL,u=void 0===c?3600:c,s=o.useCache,l=void 0===s?void 0:s,e.abrupt("return",h(t,r,n,{cacheTTL:u,queryParams:a,useCache:l}));case 2:case"end":return e.stop()}}),e)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),S=function(){var e=o()(i.a.mark((function e(t,r,n,a){var o,c,u,s,l,f,d=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>4&&void 0!==d[4]?d[4]:{},c=o.method,u=void 0===c?"POST":c,s=o.queryParams,l=void 0===s?{}:s,e.next=3,h(t,r,n,{bodyParams:{data:a},method:u,queryParams:l,useCache:!1});case 3:return f=e.sent,e.next=6,w(t,r,n);case 6:return e.abrupt("return",f);case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),E=function(){return b},w=function(){var e=o()(i.a.mark((function e(t,r,n){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=y(t,r,n),e.next=3,Object(f.c)();case 3:e.sent.forEach((function(e){0===e.indexOf(a)&&Object(f.a)(e)}));case 5:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),_={invalidateCache:w,get:O,set:S,setUsingCache:function(e){return b=!!e},usingCache:E};t.b=_}).call(this,r(14))},37:function(e,t,r){"use strict";(function(e){var n,i;r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));var a=new Set((null===(n=e)||void 0===n||null===(i=n._googlesitekitBaseData)||void 0===i?void 0:i.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return t instanceof Set&&t.has(e)}}).call(this,r(14))},38:function(e,t){e.exports=googlesitekit.api},40:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(78),i=e._googlesitekitBaseData||{},a=i.isFirstAdmin,o=i.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:i.trackingEnabled,trackingID:i.trackingID,referenceSiteURL:i.referenceSiteURL,userIDHash:i.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(e){e?s():l()}!0===o&&p(f())}).call(this,r(14))},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(36),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(53),l=r.n(s),f=r(50),d=r(72),p=r(9);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(e){return e},y=function(){return{}},m=function(){},h=f.a.clearError,O=f.a.receiveError,S=function(e){var t,r,n=i.a.mark(N),a=e.baseName,c=e.controlCallback,s=e.reducerCallback,f=void 0===s?b:s,g=e.argsToParams,S=void 0===g?y:g,E=e.validateParams,w=void 0===E?m:E;u()(a,"baseName is required."),u()("function"==typeof c,"controlCallback is required and must be a function."),u()("function"==typeof f,"reducerCallback must be a function."),u()("function"==typeof S,"argsToParams must be a function."),u()("function"==typeof w,"validateParams must be a function.");try{w(S()),r=!1}catch(e){r=!0}var _=Object(d.b)(a),j=Object(d.a)(a),k="FETCH_".concat(j),I="START_".concat(k),D="FINISH_".concat(k),T="CATCH_".concat(k),x="RECEIVE_".concat(j),R="fetch".concat(_),P="receive".concat(_),A="isFetching".concat(_),C=o()({},A,{});function N(e,t){var r,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{payload:{params:e},type:I};case 2:return n.next=4,h(a,t);case 4:return n.prev=4,n.next=7,{payload:{params:e},type:k};case 7:return r=n.sent,n.next=10,U[P](r,e);case 10:return n.next=12,{payload:{params:e},type:D};case 12:n.next=23;break;case 14:return n.prev=14,n.t0=n.catch(4),o=n.t0,n.next=19,O(o,a,t);case 19:return n.next=21,O(o);case 21:return n.next=23,{payload:{params:e},type:T};case 23:return n.abrupt("return",{response:r,error:o});case 24:case"end":return n.stop()}}),n,null,[[4,14]])}var U=(t={},o()(t,R,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=S.apply(void 0,t);return w(n),N(n,t)})),o()(t,P,(function(e,t){return u()(void 0!==e,"response is required."),r?(u()(l()(t),"params is required."),w(t)):t={},{payload:{response:e,params:t},type:x}})),t),L=o()({},k,(function(e){var t=e.payload;return c(t.params)})),F=o()({},A,(function(e){if(void 0===e[A])return!1;var t;try{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t=S.apply(void 0,n),w(t)}catch(e){return!1}return!!e[A][Object(p.u)(t)]}));return{initialState:C,actions:U,controls:L,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case I:var i=n.params;return v(v({},e),{},o()({},A,v(v({},e[A]),{},o()({},Object(p.u)(i),!0))));case x:var a=n.response,c=n.params;return f(e,a,c);case D:var u=n.params;return v(v({},e),{},o()({},A,v(v({},e[A]),{},o()({},Object(p.u)(u),!1))));case T:var s=n.params;return v(v({},e),{},o()({},A,v(v({},e[A]),{},o()({},Object(p.u)(s),!1))));default:return e}},resolvers:{},selectors:F}}},48:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(28);function i(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},49:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(17),i=r.n(n),a=r(1),o=function(e){return function(t){return function FilteredComponent(r){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(t,r),e)}}},c=function(t,r){return function(n){return function InnerComponent(a){return e.createElement(t,i()({},a,r,{OriginalComponent:n}))}}}}).call(this,r(1))},5:function(e,t){e.exports=googlesitekit.data},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return b}));var n=r(6),i=r.n(n),a=r(19),o=r.n(a),c=r(7),u=r.n(c),s=r(70),l=r.n(s),f=r(9);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t){if(t&&Array.isArray(t)){var r=t.map((function(e){return"object"===o()(e)?Object(f.u)(e):e}));return"".concat(e,"::").concat(l()(JSON.stringify(r)))}return e}var v={receiveError:function(e,t,r){return u()(e,"error is required."),t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:r}}},clearError:function(e,t){return e&&u()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(){var e={getErrorForSelector:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),e.getError(t,r,n)},getErrorForAction:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),e.getError(t,r,n)},getError:function(e,t,r){var n=e.error,i=e.errors;return t||r?(u()(t,"baseName is required."),i[g(t,r)]):n},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},hasErrors:function(t){return e.getErrors(t).length>0}};return{initialState:{errors:{},error:void 0},actions:v,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var a=n.baseName,o=n.args,c=n.error;return p(p({},e),{},a?{errors:p(p({},e.errors||{}),{},i()({},g(a,o),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},e);if(u){var f=g(u,s);l.errors=p({},e.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,v=p({},e);if(d)for(var b in v.errors=p({},e.errors||{}),v.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete v.errors[b];else v.errors={},v.error=void 0;return v;default:return e}},resolvers:{},selectors:e}}},51:function(e,t,r){"use strict";r.d(t,"k",(function(){return n})),r.d(t,"j",(function(){return n})),r.d(t,"d",(function(){return i})),r.d(t,"h",(function(){return a})),r.d(t,"f",(function(){return o})),r.d(t,"g",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"i",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return d}));var n="modules/idea-hub",i="IDEA_HUB_BUTTON_CREATE",a="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",u="IDEA_HUB_BUTTON_DELETE",s=4,l="IDEA_HUB_ACTIVITY_CREATING_DRAFT",f="IDEA_HUB_ACTIVITY_DRAFT_CREATED",d="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return n})),r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return p})),r.d(t,"g",(function(){return g})),r.d(t,"h",(function(){return f.a})),r.d(t,"d",(function(){return v})),r.d(t,"c",(function(){return y})),r.d(t,"i",(function(){return d}));var n="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".',a=r(7),o=r.n(a),c=r(36),u=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var r="".concat(t.getMonth()+1),n="".concat(t.getDate());return[t.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")},s=r(13),l=r.n(s),f=r(42),d=function(e){o()(Object(f.a)(e),n);var t=e.split("-"),r=l()(t,3),i=r[0],a=r[1],c=r[2];return new Date(i,a-1,c)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=d(e);return r.setDate(r.getDate()-t),u(r)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function v(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var b=r(2);function y(){var e=function(e){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
- Object(b._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}}}},56:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(19),i=r.n(n),a=r(70),o=r.n(a),c=function(e){return o()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var a=t[n];a&&"object"===i()(a)&&!Array.isArray(a)&&(a=e(a)),r[n]=a})),r}(e)))}},58:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(19),i=r.n(n),a=r(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(e,t)}};function c(e){var t,r="object"===i()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},59:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),a=r(8),o=r.n(a);function ChangeArrow(t){var r=t.direction,n=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(1))},60:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return v})),r.d(t,"d",(function(){return b})),r.d(t,"a",(function(){return y})),r.d(t,"c",(function(){return m}));var n=r(3),i=r.n(n),a=r(10),o=r.n(a);r(26);function c(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s,l="googlesitekit_".concat("1.38.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var t=o()(i.a.mark((function t(r){var n,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e[r]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==n.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),g=function(){var t=o()(i.a.mark((function t(){var r,n,a,o,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(r=e._googlesitekitLegacyData)||void 0===r||null===(n=r.admin)||void 0===n?void 0:n.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}a=c(d),t.prev=4,a.s();case 6:if((o=a.n()).done){t.next=16;break}if(u=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(u);case 12:if(!t.sent){t.next=14;break}s=e[u];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),a.e(t.t0);case 21:return t.prev=21,a.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),v=function(){var e=o()(i.a.mark((function e(t){var r,n,a,o,c,u,s;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:if(!(r=e.sent)){e.next=10;break}if(!(n=r.getItem("".concat(l).concat(t)))){e.next=10;break}if(a=JSON.parse(n),o=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=o()(i.a.mark((function t(r,n){var a,o,c,u,s,f,d,p,v=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=v.length>2&&void 0!==v[2]?v[2]:{},o=a.ttl,c=void 0===o?3600:o,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,t.next=3,g();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(l).concat(r),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,r){return t.apply(this,arguments)}}(),y=function(){var t=o()(i.a.mark((function t(r){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(n=t.sent)){t.next=13;break}return t.prev=4,n.removeItem("".concat(l).concat(r)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=o()(i.a.mark((function t(){var r,n,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(r=t.sent)){t.next=14;break}for(t.prev=4,n=[],a=0;a<r.length;a++)0===(o=r.key(a)).indexOf(l)&&n.push(o.substring(l.length));return t.abrupt("return",n);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,r(14))},61:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(13),i=r.n(n),a=r(2);function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),i=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&i)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===r)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(a._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(u),t&&null===n&&t.appendChild(o),r&&null===i&&r.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},l=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):l(e);var n,a={},c=o(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=i()(n.value,2),s=u[0],f=u[1];a[s]=f}}catch(e){c.e(e)}finally{c.f()}return a}}).call(this,r(14))},629:function(e,t,r){"use strict";(function(e){var n,i=r(3),a=r.n(i),o=r(10),c=r.n(o),u=r(30),s=r(2),l=r(281),f=r(23),d=r(51),p={slug:"ideaHubModule",contexts:[l.a],version:"3.6.0",checkRequirements:(n=c()(a.a.mark((function e(t){var r,n,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.__experimentalResolveSelect(f.a).getModules();case 2:if(r=t.select(f.a).isModuleActive("idea-hub"),n=t.select(f.a).isModuleConnected("idea-hub"),r&&n){e.next=6;break}return e.abrupt("return",!1);case 6:return i=t.select(d.j).getNewIdeas()||[],e.abrupt("return",!!i.length);case 8:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)}),steps:[{target:".googlesitekit-idea-hub__title",title:Object(s.__)("Get inspiration for new topics to write about!","google-site-kit"),content:Object(s.__)("These ideas are based on unanswered searches related to the content of your site. They are organised by topics and will refresh every 2-3 days.","google-site-kit")},{target:".googlesitekit-idea-hub__actions--create",title:Object(s.__)("Start a draft","google-site-kit"),content:Object(s.__)("Found an interesting idea you want to write about? Create a draft! You can always get back to it later on the Posts page.","google-site-kit")},{target:".googlesitekit-idea-hub__idea--single",title:Object(s.__)("Save for later or dismiss","google-site-kit"),content:Object(s.__)('If you’re not ready to create a draft about an idea just yet, add it to your "Saved" list and revisit later. If you don’t like an idea, you can dismiss it from your list.',"google-site-kit"),placement:"top"}],gaEventCategory:"idea_hub_module",callback:function(t){var r=t.type,n=t.index;if([u.b.STEP_BEFORE,u.b.STEP_AFTER].includes(r)&&2===n){var i="googlesitekit-idea-hub__actions--unhide",a=e.document.querySelector(".googlesitekit-idea-hub__actions--pin"),o=e.document.querySelector(".googlesitekit-idea-hub__actions--delete");a&&o&&(r===u.b.STEP_BEFORE&&(a.classList.add(i),o.classList.add(i)),r===u.b.STEP_AFTER&&(a.classList.remove(i),o.classList.remove(i)))}}};t.a=p}).call(this,r(14))},633:function(e,t,r){"use strict";(function(e){var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(5),l=r.n(s),f=r(11);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=l.a.createRegistrySelector,v={permissionError:null,capabilities:void 0},b={clearPermissionScopeError:function(){return{payload:{},type:"CLEAR_PERMISSION_SCOPE_ERROR"}},setPermissionScopeError:function(e){return u()(e,"permissionError is required."),{payload:{permissionError:e},type:"SET_PERMISSION_SCOPE_ERROR"}},receiveCapabilities:function(e){return{type:"RECEIVE_CAPABILITIES",payload:{capabilities:e}}}},y={getCapabilities:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.commonActions.getRegistry();case 2:if(!t.sent.select(f.e).getCapabilities()){t.next=5;break}return t.abrupt("return");case 5:return(null===(r=e._googlesitekitUserData)||void 0===r?void 0:r.permissions)||e.console.error("Could not load core/user permissions."),t.next=8,b.receiveCapabilities(null===(n=e._googlesitekitUserData)||void 0===n?void 0:n.permissions);case 8:case"end":return t.stop()}}),t)}))},m={getPermissionScopeError:function(e){return e.permissionError},getCapabilities:function(e){return e.capabilities},hasCapability:g((function(e){return function(t,r){var n=e(f.e).getCapabilities();if(n)return!!n[r]}}))};t.a={initialState:v,actions:b,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"CLEAR_PERMISSION_SCOPE_ERROR":return p(p({},e),{},{permissionError:null});case"SET_PERMISSION_SCOPE_ERROR":var i=n.permissionError;return p(p({},e),{},{permissionError:i});case"RECEIVE_CAPABILITIES":var a=n.capabilities;return p(p({},e),{},{capabilities:a});default:return e}},resolvers:y,selectors:m}}).call(this,r(14))},634:function(e,t,r){"use strict";(function(e){var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(147),l=r(5),f=r.n(l),d=r(11);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=f.a.createRegistrySelector,b={connectURL:void 0,initialVersion:void 0,user:void 0,verified:void 0},y={receiveConnectURL:function(e){return u()(e,"connectURL is required."),{payload:{connectURL:e},type:"RECEIVE_CONNECT_URL"}},receiveUserInfo:function(e){return u()(e,"userInfo is required."),{payload:{user:e},type:"RECEIVE_USER_INFO"}},receiveInitialSiteKitVersion:function(e){return u()(e,"initialVersion is required."),{payload:{initialVersion:e},type:"RECEIVE_USER_INITIAL_SITE_KIT_VERSION"}},receiveUserIsVerified:function(e){return u()(void 0!==e,"userIsVerified is required."),{payload:{verified:e},type:"RECEIVE_USER_IS_VERIFIED"}},receiveUserInputState:function(e){return u()(e,"userInputState is required."),{payload:{userInputState:e},type:"RECEIVE_USER_INPUT_STATE"}}},m={getConnectURL:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getConnectURL()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.connectURL,t.next=12,y.receiveConnectURL(n);case 12:case"end":return t.stop()}}),t)})),getUser:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getUser()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.user,t.next=12,y.receiveUserInfo(n);case 12:case"end":return t.stop()}}),t)})),getInitialSiteKitVersion:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getInitialSiteKitVersion()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:if(!(n=e._googlesitekitUserData.initialVersion)){t.next=13;break}return t.next=13,y.receiveInitialSiteKitVersion(n);case 13:case"end":return t.stop()}}),t)})),isVerified:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).isVerified()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.verified,t.next=12,y.receiveUserIsVerified(n);case 12:case"end":return t.stop()}}),t)})),getUserInputState:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getUserInputState()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.userInputState,t.next=12,y.receiveUserInputState(n);case 12:case"end":return t.stop()}}),t)}))},h={getUser:function(e){return e.user},getConnectURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.additionalScopes,n=void 0===r?[]:r,i=t.redirectURL,a=void 0===i?void 0:i,o=e.connectURL,c={redirect:a};if(void 0!==o){if(null==n?void 0:n.length){var u=n.map((function(e){return e.replace(/^http(s)?:/,"gttp$1:")}));return Object(s.a)(o,g(g({},c),{},{additional_scopes:u}))}return Object(s.a)(o,c)}},getID:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.id:t}})),getName:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.name:t}})),getEmail:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.email:t}})),getPicture:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.picture:t}})),getInitialSiteKitVersion:function(e){return e.initialVersion},isVerified:function(e){return e.verified},getUserInputState:function(e){return e.userInputState}};t.a={initialState:b,actions:y,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_CONNECT_URL":var i=n.connectURL;return g(g({},e),{},{connectURL:i});case"RECEIVE_USER_INFO":var a=n.user;return g(g({},e),{},{user:a});case"RECEIVE_USER_INITIAL_SITE_KIT_VERSION":var o=n.initialVersion;return g(g({},e),{},{initialVersion:o});case"RECEIVE_USER_IS_VERIFIED":var c=n.verified;return g(g({},e),{},{verified:c});case"RECEIVE_USER_INPUT_STATE":var u=n.userInputState;return g(g({},e),{},{userInputState:u});default:return e}},resolvers:m,selectors:h}}).call(this,r(14))},65:function(e,t,r){"use strict";function n(e){return new URL(e).pathname}function i(e,t){return new URL(t,e).href}function a(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return a}))},66:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return u}));var n=r(53),i=r.n(n),a="missing_required_scopes";function o(e){return i()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===a}function u(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return n}));var n="core/ui"},68:function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return S})),r.d(t,"d",(function(){return w})),r.d(t,"b",(function(){return _})),r.d(t,"a",(function(){return j}));var n=r(13),i=r.n(n),a=r(19),o=r.n(a),c=r(6),u=r.n(c),s=r(16),l=r.n(s),f=r(18),d=r(64),p=r.n(d),g=r(2);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=m(e,t),n=r.formatUnit,i=r.formatDecimal;try{return n()}catch(e){return i()}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var r=Math.floor(e/60/60),n=Math.floor(e/60%60),i=Math.floor(e%60);return{hours:r,minutes:n,seconds:i,formatUnit:function(){var a=t.unitDisplay,o=b(b({unitDisplay:void 0===a?"short":a},l()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?w(i,b(b({},o),{},{unit:"second"})):Object(g.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
@@ -13,4 +13,4 @@ Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?
13
  Object(g.__)("%sM","google-site-kit"),w(h(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(g.__)("%sK","google-site-kit"),w(h(e))):1e3<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(g.__)("%sK","google-site-kit"),w(h(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(f.isFinite)(e)?e:Number(e),Object(f.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return y(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(f.isPlainObject)(t)&&(r=b({},t))}var n=r,i=n.style,a=void 0===i?"metric":i;return"metric"===a?O(e):"duration"===a?y(e,t):w(e,r)},E=p()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,a=l()(t,["locale"]);try{return new Intl.NumberFormat(n,a).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var p=i()(d[f],2),g=p[0],v=p[1];c[g]&&v===c[g]||(u.includes(g)||(s[g]=v))}try{return new Intl.NumberFormat(n,s).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(e)}
16
- /* translators: used between list items, there is a space after the comma. */var s=Object(g.__)(", ","google-site-kit");return e.join(s)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(f.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(14))},72:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return a}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function a(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},73:function(e,t,r){"use strict";r.d(t,"a",(function(){return I})),r.d(t,"b",(function(){return D})),r.d(t,"c",(function(){return T})),r.d(t,"d",(function(){return R})),r.d(t,"e",(function(){return P})),r.d(t,"g",(function(){return C})),r.d(t,"f",(function(){return N}));var n,i=r(3),a=r.n(i),o=r(26),c=r.n(o),u=r(6),s=r.n(u),l=r(7),f=r.n(l),d=r(217),p=r.n(d),g=r(64),v=r.n(g),b=r(105);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return m(m({},e),t)}),{}),i=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),a=x(i);return f()(0===a.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(a.join(", "),". Check your data stores for duplicates.")),n},O=h,S=h,E=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=[].concat(t);return"function"!=typeof i[0]&&(n=i.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.reduce((function(e,r){return r(e,t)}),e)}},w=h,_=h,j=h,k=function(e){return e},I=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=j.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:n,controls:S.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:O.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:E.apply(void 0,[n].concat(c()(t.map((function(e){return e.reducer||k}))))),resolvers:w.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:_.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},D={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},T=(n={},s()(n,"GET_REGISTRY",Object(b.d)((function(e){return function(){return e}}))),s()(n,"AWAIT",(function(e){return e.payload.value})),n),x=function(e){for(var t=[],r={},n=0;n<e.length;n++){var i=e[n];r[i]=r[i]>=1?r[i]+1:1,r[i]>1&&t.push(i)}return t},R={actions:D,controls:T,reducer:k},P=function(e){return function(t){return A(e(t))}},A=v()((function(e){return p()(e,(function(e,t){return function(){var r=e.apply(void 0,arguments);return f()(void 0!==r,"".concat(t,"(...) is not resolved")),r}}))}));function C(e){return{safeSelector:Object(b.e)((function(t){return function(r){try{for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return e.apply(void 0,[t,r].concat(i)),!0}catch(e){return!1}}})),dangerousSelector:Object(b.e)((function(t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.apply(void 0,[t,r].concat(i))}}))}}function N(e,t){return f()("function"==typeof e,"a validator function is required."),f()("function"==typeof t,"an action creator function is required."),f()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),function(){return e.apply(void 0,arguments),t.apply(void 0,arguments)}}},74:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function i(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,r=0,o=[n,i,a];r<o.length;r++){t=(0,o[r])(t)}return t}r.d(t,"a",(function(){return o}))},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},76:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));var n=r(189),i=r(59),a=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var a=r.invertColor,o=void 0!==a&&a;return Object(n.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,r,n,i,a,o,c,u,s,l,f,d,p,g,v;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(i=e[0])||void 0===i||null===(a=i.data)||void 0===a||null===(o=a.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(g=p[0])||void 0===g||null===(v=g.values)||void 0===v?void 0:v[0])}}).call(this,r(1))},78:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),i=r.n(n),a=r(79),o=r(80);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=u(u({},s),t);return i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(i,r),disableTracking:function(){i.trackingEnabled=!1},isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:Object(o.a)(i,r,n)}}}).call(this,r(14))},79:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(48),i=r(28);function a(t,r){var a=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(i.b,"]"))){var n=r.createElement("script");n.setAttribute(i.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a),r.head.appendChild(n),a("js",new Date),a("config",t.trackingID)}}}}).call(this,r(14))},80:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(10),u=r.n(c),s=r(48),l=r(37);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(t,r,n){var a=Object(s.a)(r);return function(){var r=u()(i.a.mark((function r(o,c,u,s){var f,p,g,v,b,y,m,h;return i.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(g=t.isFirstAdmin,v=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return h={send_to:y,event_category:o,event_label:u,value:s,dimension1:v,dimension2:g?"true":"false",dimension3:m,dimension4:"1.38.0",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);a("event",c,d(d({},h),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,i){return r.apply(this,arguments)}}()}}).call(this,r(14))},81:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(109),i=r.n(n)()(e)}).call(this,r(14))},85:function(e,t,r){"use strict";(function(e){var n=r(22),i=r.n(n),a=r(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,u=o.nonceEndpoint,s=o.preloadedData,l=o.rootURL;i.a.nonceEndpoint=u,i.a.nonceMiddleware=i.a.createNonceMiddleware(c),i.a.rootURLMiddleware=i.a.createRootURLMiddleware(l),i.a.preloadingMiddleware=Object(a.a)(s),i.a.use(i.a.nonceMiddleware),i.a.use(i.a.mediaUploadMiddleware),i.a.use(i.a.rootURLMiddleware),i.a.use(i.a.preloadingMiddleware),t.default=i.a}).call(this,r(14))},9:function(e,t,r){"use strict";(function(e){r.d(t,"k",(function(){return _})),r.d(t,"a",(function(){return j})),r.d(t,"i",(function(){return k})),r.d(t,"x",(function(){return I})),r.d(t,"d",(function(){return D}));var n=r(6),i=r.n(n),a=r(19),o=r.n(a),c=r(108),u=r.n(c),s=r(104),l=r.n(s),f=r(40);r.d(t,"v",(function(){return f.b}));var d=r(58);r.d(t,"s",(function(){return d.a})),r.d(t,"w",(function(){return d.b}));var p=r(56);r.d(t,"u",(function(){return p.a}));var g=r(61);r.d(t,"b",(function(){return g.b})),r.d(t,"j",(function(){return g.c}));r(32);var v=r(68);r.d(t,"h",(function(){return v.a})),r.d(t,"n",(function(){return v.b})),r.d(t,"q",(function(){return v.c})),r.d(t,"r",(function(){return v.d}));var b=r(49);r.d(t,"e",(function(){return b.b}));var y=r(74);r.d(t,"o",(function(){return y.a}));var m=r(75);r.d(t,"c",(function(){return m.a}));var h=r(52);r.d(t,"t",(function(){return h.i}));var O=r(76);r.d(t,"f",(function(){return O.a})),r.d(t,"m",(function(){return O.b}));var S=r(65);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return S.a})),r.d(t,"l",(function(){return S.b})),r.d(t,"p",(function(){return S.c}));var _=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},j=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==o()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:w(w({},e),{},i()({},t,r[t]))}),{}):{}},I=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},D=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(14))},965:function(e,t,r){"use strict";r.r(t);var n=r(5),i=r.n(n),a=r(50),o=r(3),c=r.n(o),u=r(6),s=r.n(u),l=r(38),f=r.n(l),d=r(11),p=r(45);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=i.a.createRegistrySelector;function y(e){return b((function(t){return function(){return(t(d.e).getAuthentication()||{})[e]}}))}var m=Object(p.a)({baseName:"getAuthentication",controlCallback:function(){return f.a.get("core","user","authentication",void 0,{useCache:!1})},reducerCallback:function(e,t){return v(v({},e),{},{authentication:t})}}),h={authentication:void 0,authError:null},O={setAuthError:function(e){return{payload:{error:e},type:"SET_AUTH_ERROR"}},clearAuthError:function(){return{payload:{},type:"CLEAR_AUTH_ERROR"}}},S={getAuthentication:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:if(t=e.sent,(0,t.select)(d.e).getAuthentication()){e.next=7;break}return e.next=7,m.actions.fetchGetAuthentication();case 7:case"end":return e.stop()}}),e)}))},E={getAuthentication:function(e){return e.authentication},hasScope:b((function(e){return function(t,r){var n=e(d.e).getGrantedScopes(t);if(void 0!==n)return n.includes(r)}})),isAuthenticated:y("authenticated"),getGrantedScopes:y("grantedScopes"),getRequiredScopes:y("requiredScopes"),getUnsatisfiedScopes:y("unsatisfiedScopes"),needsReauthentication:y("needsReauthentication"),getDisconnectedReason:y("disconnectedReason"),getAuthError:function(e){return e.authError}},w=i.a.combineStores(m,{initialState:h,actions:O,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_AUTH_ERROR":return v(v({},e),{},{authError:n.error});case"CLEAR_AUTH_ERROR":return v(v({},e),{},{authError:null});default:return e}},resolvers:S,selectors:E}),_=(w.initialState,w.actions,w.controls,w.reducer,w.resolvers,w.selectors,w),j=r(7),k=r.n(j),I=r(52);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x={dateRange:"last-28-days",referenceDate:Object(I.e)(new Date)};var R={getDateRange:function(e){return e.dateRange},getDateRangeDates:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.compare,n=void 0!==r&&r,i=t.offsetDays,a=void 0===i?0:i,o=t.referenceDate,c=void 0===o?e.referenceDate:o,u=R.getDateRange(e),s=Object(I.f)(c,a),l=u.match("-(.*)-"),f=Number(l?l[1]:28),d=Object(I.f)(s,f-1),p={startDate:d,endDate:s};if(n){var g=Object(I.f)(d,1),v=Object(I.f)(g,f-1);p.compareStartDate=v,p.compareEndDate=g}return p},getDateRangeNumberOfDays:function(e){var t=R.getDateRange(e).match(/-(\d+)-/);return parseInt(t?t[1]:28,10)},getReferenceDate:function(e){return e.referenceDate}},P={initialState:x,actions:{setDateRange:function(e){return k()(e,"Date range slug is required."),k()(Object(I.g)(e),I.a),{type:"SET_DATE_RANGE",payload:{slug:e}}},setReferenceDate:function(e){return k()(e,"Date string is required."),k()(Object(I.h)(e),I.b),{type:"SET_REFERENCE_DATE",payload:{dateString:e}}}},controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_DATE_RANGE":return T(T({},e),{},{dateRange:n.slug});case"SET_REFERENCE_DATE":return T(T({},e),{},{referenceDate:n.dateString});default:return e}},resolvers:{},selectors:R};function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N=i.a.createRegistrySelector,U=Object(p.a)({baseName:"disconnect",controlCallback:function(){return f.a.set("core","user","disconnect")},reducerCallback:function(e,t){return C(C({},e),{},{disconnected:t})}}),L={disconnected:void 0},F={disconnect:c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U.actions.fetchDisconnect();case 2:case"end":return e.stop()}}),e)}))},q={isDoingDisconnect:N((function(e){return function(){return e(d.e).isFetchingDisconnect()}}))},V=i.a.combineStores(U,{initialState:L,actions:F,selectors:q}),M=(V.initialState,V.actions,V.controls,V.reducer,V.resolvers,V.selectors,V),G=r(73);function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var K=i.a.createRegistrySelector,$=i.a.commonActions.getRegistry;function W(e,t){return B(B({},e),{},{dismissedItems:Array.isArray(t)?t:[]})}var Y,J,Q=Object(p.a)({baseName:"getDismissedItems",controlCallback:function(){return f.a.get("core","user","dismissed-items",{},{useCache:!1})},reducerCallback:W}),z=Object(p.a)({baseName:"dismissItem",controlCallback:function(e){var t=e.slug,r=e.expiresInSeconds;return f.a.set("core","user","dismiss-item",{slug:t,expiration:r})},reducerCallback:W,argsToParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{slug:e,expiresInSeconds:t}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug,r=e.expiresInSeconds;k()(t,"slug is required."),k()(Number.isInteger(r),"expiresInSeconds must be an integer.")}}),Z={dismissedItems:void 0},X={dismissItem:Object(G.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.expiresInSeconds,n=void 0===r?0:r;k()(e,"A tour slug is required to dismiss a tour."),k()(Number.isInteger(n),"expiresInSeconds must be an integer.")}),c.a.mark((function e(t){var r,n,i,a=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},n=r.expiresInSeconds,i=void 0===n?0:n,e.next=4,z.actions.fetchDismissItem(t,i);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))},ee={getDismissedItems:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$();case 2:if(t=e.sent,r=t.select,void 0!==r(d.e).getDismissedItems()){e.next=8;break}return e.next=8,Q.actions.fetchGetDismissedItems();case 8:case"end":return e.stop()}}),e)}))},te={getDismissedItems:function(e){return e.dismissedItems},isItemDismissed:K((function(e){return function(t,r){var n;return null===(n=e(d.e).getDismissedItems())||void 0===n?void 0:n.includes(r)}}))},re=i.a.combineStores({initialState:Z,actions:X,resolvers:ee,selectors:te},z,Q),ne={actions:re.actions,controls:re.controls,initialState:re.initialState,reducer:re.reducer,resolvers:re.resolvers,selectors:re.selectors},ie=r(10),ae=r.n(ie),oe=r(628),ce=r.n(oe),ue=r(2),se=r(281),le=r(67),fe=r(23),de=r(12),pe=r(37),ge={slug:"helpVisibility",contexts:[se.a,se.b],version:"1.29.0",gaEventCategory:"global_help_menu",checkRequirements:(Y=ae()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(pe.b)("helpVisibility"));case 1:case"end":return e.stop()}}),e)}))),function(){return Y.apply(this,arguments)}),steps:[{target:".googlesitekit-help-menu",title:Object(ue.__)("Need help?","google-site-kit"),content:Object(ue.__)("Access the Site Kit docs or ask a question in our support forum from here.","google-site-kit"),placement:"bottom-start"}]},ve=r(629),be=[{slug:"allTrafficWidget",contexts:[se.a],version:"1.25.0",gaEventCategory:"all_traffic_widget",checkRequirements:function(){var e=ae()(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.__experimentalResolveSelect(fe.a).getModules();case 2:if(t.select(fe.a).isModuleConnected("analytics")){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,new Promise((function(e){setTimeout((function r(){t.select(le.a).getValue(de.r)?e():setTimeout(r,250)}),250)}));case 6:return e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),steps:[{target:".googlesitekit-widget--analyticsAllTraffic__totals",title:Object(ue.__)("It’s now easier to see your site’s traffic at a glance","google-site-kit"),content:Object(ue.__)("Check the trend graph to see how your traffic changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-widget--analyticsAllTraffic__dimensions",title:Object(ue.__)("See where your visitors come from","google-site-kit"),content:Object(ue.__)("Click on the chart slices to see how each segment has changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-header__date-range-selector-menu",title:Object(ue.__)("Check how your traffic changed since you last looked","google-site-kit"),content:Object(ue.__)("Select a time frame to see the comparison with the previous time period","google-site-kit")}]},ge,ve.a],ye=r(60);function me(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw a}}}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ee,we=i.a.createRegistrySelector,_e=i.a.createRegistryControl,je=i.a.commonActions.getRegistry,ke=Object(p.a)({baseName:"getDismissedTours",controlCallback:function(){return f.a.get("core","user","dismissed-tours",{},{useCache:!1})},reducerCallback:function(e,t){return Se(Se({},e),{},{dismissedTourSlugs:t})}}),Ie=Object(p.a)({baseName:"dismissTour",controlCallback:function(e){var t=e.slug;return f.a.set("core","user","dismiss-tour",{slug:t})},reducerCallback:function(e,t){return Se(Se({},e),{},{dismissedTourSlugs:t})},argsToParams:function(e){return{slug:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug;k()(t,"slug is required.")}}),De={lastDismissedAt:void 0,dismissedTourSlugs:void 0,tours:be,viewTours:{}},Te={dismissTour:Object(G.f)((function(e){k()(e,"A tour slug is required to dismiss a tour.")}),c.a.mark((function e(t){var r,n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,je();case 2:if(r=e.sent,!(n=r.select)(d.e).isFetchingDismissTour(t)){e.next=7;break}return i=n(d.e).getDismissedFeatureTourSlugs(),e.abrupt("return",{response:i,error:void 0});case 7:return e.next=9,{type:"DISMISS_TOUR",payload:{slug:t}};case 9:return e.next=11,Ce.setLastDismissedAt(Date.now());case 11:return e.next=13,Ie.actions.fetchDismissTour(t);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)}))),receiveFeatureToursForView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.viewContext;return k()(Array.isArray(e),"viewTours must be an array."),k()(r,"viewContext is required."),{payload:{viewTours:e,viewContext:r},type:"RECEIVE_READY_TOURS"}},receiveAllFeatureTours:function(e){return k()(Array.isArray(e),"tours must be an array."),{payload:{tours:e},type:"RECEIVE_TOURS"}},receiveLastDismissedAt:function(e){return k()(void 0!==e,"A timestamp is required."),{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:e}}},setLastDismissedAt:Object(G.f)((function(e){k()(e,"A timestamp is required.")}),c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"CACHE_LAST_DISMISSED_AT",payload:{timestamp:t}};case 2:return e.next=4,{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:t}};case 4:case"end":return e.stop()}}),e)})))},xe=(J={},s()(J,"CHECK_TOUR_REQUIREMENTS",_e((function(e){return function(){var t=ae()(c.a.mark((function t(r){var n,i,a,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.payload,i=n.tour,a=n.viewContext,i.contexts.includes(a)){t.next=4;break}return t.abrupt("return",!1);case 4:if(o=e.select(d.e).getInitialSiteKitVersion()){t.next=9;break}return t.abrupt("return",!1);case 9:if(!ce.a.compare(o,i.version,">=")){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,e.__experimentalResolveSelect(d.e).getDismissedFeatureTourSlugs();case 13:if(!e.select(d.e).isTourDismissed(i.slug)){t.next=15;break}return t.abrupt("return",!1);case 15:if(!i.checkRequirements){t.next=19;break}return t.next=18,i.checkRequirements(e);case 18:return t.abrupt("return",!!t.sent);case 19:return t.abrupt("return",!0);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),s()(J,"CACHE_LAST_DISMISSED_AT",(Ee=ae()(c.a.mark((function e(t){var r,n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.payload,n=r.timestamp,e.next=4,Object(ye.d)("feature_tour_last_dismissed_at",n,{ttl:7200});case 4:case"end":return e.stop()}}),e)}))),function(e){return Ee.apply(this,arguments)})),J),Re={getDismissedFeatureTourSlugs:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,je();case 2:if(t=e.sent,r=t.select,void 0!==r(d.e).getDismissedFeatureTourSlugs()){e.next=8;break}return e.next=8,ke.actions.fetchGetDismissedTours();case 8:case"end":return e.stop()}}),e)})),getFeatureToursForView:c.a.mark((function e(t){var r,n,i,a,o,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,je();case 2:r=e.sent,n=r.select(d.e).getAllFeatureTours(),i=[],a=me(n),e.prev=6,a.s();case 8:if((o=a.n()).done){e.next=16;break}return u=o.value,e.next=12,{payload:{tour:u,viewContext:t},type:"CHECK_TOUR_REQUIREMENTS"};case 12:e.sent&&i.push(u);case 14:e.next=8;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:return e.next=26,Ce.receiveFeatureToursForView(i,{viewContext:t});case 26:case"end":return e.stop()}}),e,null,[[6,18,21,24]])})),getLastDismissedAt:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.await(Object(ye.b)("feature_tour_last_dismissed_at"));case 2:return t=e.sent,r=t.value,e.next=6,Ce.receiveLastDismissedAt(r||null);case 6:case"end":return e.stop()}}),e)}))},Pe={getDismissedFeatureTourSlugs:function(e){return e.dismissedTourSlugs},getFeatureToursForView:function(e,t){return e.viewTours[t]},getAllFeatureTours:function(e){return e.tours},isTourDismissed:we((function(e){return function(t,r){var n=e(d.e).getDismissedFeatureTourSlugs();if(void 0!==n)return n.includes(r)}})),getLastDismissedAt:function(e){return e.lastDismissedAt},areFeatureToursOnCooldown:we((function(e){return function(){var t=e(d.e).getLastDismissedAt();if(void 0!==t){if(null===t)return!1;var r=t+72e5;return Date.now()<r}}}))},Ae=i.a.combineStores({initialState:De,actions:Te,controls:xe,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"DISMISS_TOUR":var i=n.slug,a=e.dismissedTourSlugs,o=void 0===a?[]:a;return o.includes(i)?e:Se(Se({},e),{},{dismissedTourSlugs:o.concat(i)});case"RECEIVE_READY_TOURS":var c=n.viewContext,u=n.viewTours;return Se(Se({},e),{},{viewTours:Se(Se({},e.viewTours),{},s()({},c,u))});case"RECEIVE_TOURS":return Se(Se({},e),{},{tours:n.tours});case"RECEIVE_LAST_DISMISSED_AT":return Se(Se({},e),{},{lastDismissedAt:n.timestamp});default:return e}},resolvers:Re,selectors:Pe},Ie,ke),Ce=Ae.actions,Ne=Ae.controls,Ue=Ae.initialState,Le=Ae.reducer,Fe=Ae.resolvers,qe=Ae.selectors,Ve={actions:Ce,controls:Ne,initialState:Ue,reducer:Le,resolvers:Fe,selectors:qe},Me=r(318),Ge=Object(Me.a)("core","user","notifications",{server:!1}),He=r(633),Be=r(53),Ke=r.n(Be),$e=r(361);function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Je=i.a.createRegistrySelector,Qe=Object(p.a)({baseName:"triggerSurvey",controlCallback:function(e){var t=e.triggerID;return f.a.set("core","user","survey-trigger",{triggerID:t})},argsToParams:function(e){return{triggerID:e}},reducerCallback:function(e,t){var r=t.survey_payload,n=t.session;return Xe.getCurrentSurvey(e)?e:Ye(Ye({},e),{},{currentSurvey:r,currentSurveySession:n})},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerID;k()("string"==typeof t&&t.length,"triggerID is required and must be a string")}}),ze=Object(p.a)({baseName:"sendSurveyEvent",controlCallback:function(e){var t=e.event,r=e.session;return f.a.set("core","user","survey-event",{event:t,session:r})},argsToParams:function(e,t){return{event:e,session:t}}}),Ze={triggerSurvey:Object(G.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ttl,n=void 0===r?0:r;k()("string"==typeof e&&e.length,"triggerID is required and must be a string"),k()(Ke()(t),"options must be an object"),k()("number"==typeof n,"options.ttl must be a number")}),c.a.mark((function e(t){var r,n,a,o,u,s,l,f,p,g=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=g.length>1&&void 0!==g[1]?g[1]:{},n=r.ttl,a=void 0===n?0:n,e.next=4,i.a.commonActions.getRegistry();case 4:if(o=e.sent,!(0,o.select)(d.a).getCurrentSurvey()){e.next=8;break}return e.abrupt("return",{});case 8:return u=Object($e.a)("core","user","survey-trigger",{triggerID:t}),e.next=11,i.a.commonActions.await(Object(ye.b)(u));case 11:if(s=e.sent,!1!==s.cacheHit){e.next=22;break}return e.next=16,Qe.actions.fetchTriggerSurvey(t);case 16:if(l=e.sent,f=l.response,!(p=l.error)){e.next=21;break}return e.abrupt("return",{response:f,error:p});case 21:a>0&&setTimeout(ae()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ye.d)(u,{},{ttl:a});case 2:case"end":return e.stop()}}),e)}))),3e4);case 22:return e.abrupt("return",{response:{},error:!1});case 23:case"end":return e.stop()}}),e)}))),sendSurveyEvent:Object(G.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()("string"==typeof e&&e.length,"eventID is required and must be a string"),k()(Ke()(t),"eventData must be an object")}),c.a.mark((function e(t){var r,n,a,o,u,l,f,p,g=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=g.length>1&&void 0!==g[1]?g[1]:{},n=s()({},t,r),e.next=4,i.a.commonActions.getRegistry();case 4:if(a=e.sent,o=a.select,!(u=o(d.a).getCurrentSurveySession())){e.next=14;break}return e.next=10,ze.actions.fetchSendSurveyEvent(n,u);case 10:return l=e.sent,f=l.response,p=l.error,e.abrupt("return",{response:f,error:p});case 14:case"end":return e.stop()}}),e)})))},Xe={getCurrentSurvey:function(e){return e.currentSurvey},getCurrentSurveySession:function(e){return e.currentSurveySession},getCurrentSurveyCompletions:Je((function(e){return function(){var t=e(d.a).getCurrentSurvey();return(null==t?void 0:t.completion)||null}})),getCurrentSurveyQuestions:Je((function(e){return function(){var t=e(d.a).getCurrentSurvey();return(null==t?void 0:t.question)||null}}))},et=i.a.combineStores(Qe,ze,{initialState:{currentSurvey:null,currentSurveySession:null},actions:Ze,selectors:Xe}),tt=(et.initialState,et.actions,et.selectors,et);function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var it,at=a.a.receiveError,ot=a.a.clearError,ct=function(e,t){return nt(nt({},e),{},{tracking:t})},ut=Object(p.a)({baseName:"getTracking",controlCallback:function(){return f.a.get("core","user","tracking")},reducerCallback:ct}),st=Object(p.a)({baseName:"setTracking",controlCallback:function(e){return f.a.set("core","user","tracking",{enabled:!!e})},reducerCallback:ct,argsToParams:function(e){return e}}),lt={tracking:void 0,isSavingTrackingEnabled:!1},ft={setTrackingEnabled:c.a.mark((function e(t){var r,n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ot("setTrackingEnabled",[t]);case 2:return e.next=4,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!0}};case 4:return e.next=6,st.actions.fetchSetTracking(t);case 6:if(r=e.sent,n=r.response,!(i=r.error)){e.next=12;break}return e.next=12,at(i,"setTrackingEnabled",[t]);case 12:return e.next=14,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!1}};case 14:return e.abrupt("return",{response:n,error:i});case 15:case"end":return e.stop()}}),e)}))},dt={isTrackingEnabled:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:if(t=e.sent,void 0!==(0,t.select)(d.e).isTrackingEnabled()){e.next=7;break}return e.next=7,ut.actions.fetchGetTracking();case 7:case"end":return e.stop()}}),e)}))},pt=i.a.combineStores(ut,st,{initialState:lt,actions:ft,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_TRACKING_ENABLED_SAVING_ACTION":return nt(nt({},e),{},{isSavingTrackingEnabled:n.isSaving});default:return e}},resolvers:dt,selectors:{isSavingTrackingEnabled:function(e){return!!(null==e?void 0:e.isSavingTrackingEnabled)},isTrackingEnabled:function(e){var t=e.tracking;return null==t?void 0:t.enabled}}}),gt=(pt.initialState,pt.actions,pt.controls,pt.reducer,pt.resolvers,pt.selectors,pt),vt=r(634);function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mt=i.a.commonActions,ht=i.a.createRegistryControl,Ot=i.a.createRegistrySelector,St=a.a.receiveError,Et=a.a.clearError;function wt(e,t){return yt(yt({},e),{},{inputSettings:t})}var _t,jt=Object(p.a)({baseName:"getUserInputSettings",controlCallback:(_t=ae()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.a.get("core","user","user-input-settings",void 0,{useCache:!1}));case 1:case"end":return e.stop()}}),e)}))),function(){return _t.apply(this,arguments)}),reducerCallback:wt}),kt=Object(p.a)({baseName:"saveUserInputSettings",controlCallback:function(e){return f.a.set("core","user","user-input-settings",{settings:e})},reducerCallback:wt,argsToParams:function(e){return e},validateParams:function(e){k()(Ke()(e),"valid settings are required.")}}),It={inputSettings:void 0,isSavingInputSettings:!1},Dt={setUserInputSettingsFromCache:c.a.mark((function e(){var t,r,n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"GET_CACHED_USER_INPUT_SETTINGS",payload:{}};case 2:if(!(t=e.sent).cacheHit){e.next=12;break}r=0,n=Object.keys(t.value);case 5:if(!(r<n.length)){e.next=12;break}return i=n[r],e.next=9,Dt.setUserInputSetting(i,t.value[i].values);case 9:r++,e.next=5;break;case 12:return e.abrupt("return",t.cacheHit?t.value:{});case 13:case"end":return e.stop()}}),e)})),setUserInputSetting:c.a.mark((function e(t,r){var n,a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:if(n=e.sent,a=r.map((function(e){return e.trim()})),"completed"===n.select(d.e).getUserInputState()){e.next=7;break}return e.next=7,{type:"SET_CACHED_USER_INPUT_SETTING",payload:{settingID:t,values:a}};case 7:return e.abrupt("return",{type:"SET_USER_INPUT_SETTING",payload:{settingID:t,values:a}});case 8:case"end":return e.stop()}}),e)})),saveUserInputSettings:c.a.mark((function e(){var t,r,n,a,o,u,l,f;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:return t=e.sent,e.next=5,Et("saveUserInputSettings",[]);case 5:return r=function(e){return e.trim()},n=function(e){return e.length>0},a=t.select(d.e).getUserInputSettings(),o=Object.keys(a).reduce((function(e,t){var i;return yt(yt({},e),{},s()({},t,((null===(i=a[t])||void 0===i?void 0:i.values)||[]).map(r).filter(n)))}),{}),e.next=11,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!0}};case 11:return e.next=13,kt.actions.fetchSaveUserInputSettings(o);case 13:if(u=e.sent,l=u.response,!(f=u.error)){e.next=19;break}return e.next=19,St(f,"saveUserInputSettings",[]);case 19:return e.next=21,{type:"DELETE_CACHED_USER_INPUT_SETTINGS",payload:{}};case 21:return e.next=23,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!1}};case 23:return e.abrupt("return",{response:l,error:f});case 24:case"end":return e.stop()}}),e)}))},Tt=(it={},s()(it,"DELETE_CACHED_USER_INPUT_SETTINGS",(function(){return Object(ye.a)("userInputSettings")})),s()(it,"GET_CACHED_USER_INPUT_SETTINGS",(function(){return Object(ye.b)("userInputSettings")})),s()(it,"SET_CACHED_USER_INPUT_SETTING",ht((function(e){return function(){var t=ae()(c.a.mark((function t(r){var n,i,a,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.payload,i=n.settingID,a=n.values,(o=e.select(d.e).getUserInputSettings()||{})[i]={values:a},t.abrupt("return",Object(ye.d)("userInputSettings",o));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),it),xt={getUserInputSettings:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mt.getRegistry();case 2:if(t=e.sent,(r=t.select)(d.e).getUserInputSettings()){e.next=7;break}return e.next=7,jt.actions.fetchGetUserInputSettings();case 7:if("completed"===r(d.e).getUserInputState()){e.next=10;break}return e.next=10,Dt.setUserInputSettingsFromCache();case 10:case"end":return e.stop()}}),e)}))},Rt={isSavingUserInputSettings:function(e){return!!(null==e?void 0:e.isSavingInputSettings)},getUserInputSettings:function(e){return e.inputSettings},getUserInputSetting:Ot((function(e){return function(t,r){var n,i=null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.values;return Array.isArray(i)?i:[]}})),getUserInputSettingScope:Ot((function(e){return function(t,r){var n;return null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.scope}})),getUserInputSettingAuthor:Ot((function(e){return function(t,r){var n;return null===(n=(e(d.e).getUserInputSettings()||{})[r])||void 0===n?void 0:n.author}}))},Pt=i.a.combineStores(jt,kt,{initialState:It,actions:Dt,controls:Tt,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_USER_INPUT_SETTING":return yt(yt({},e),{},{inputSettings:yt(yt({},e.inputSettings),{},s()({},n.settingID,yt(yt({},(e.inputSettings||{})[n.settingID]||{}),{},{values:n.values})))});case"SET_USER_INPUT_SETTINGS_SAVING_FLAG":return yt(yt({},e),{},{isSavingInputSettings:n.isSaving});default:return e}},resolvers:xt,selectors:Rt}),At=(Pt.initialState,Pt.actions,Pt.controls,Pt.reducer,Pt.resolvers,Pt.selectors,Pt),Ct=i.a.combineStores(i.a.commonStore,Object(a.b)(),_,P,M,ne,Ve,Ge,He.a,tt,gt,vt.a,At);Ct.initialState,Ct.actions,Ct.controls,Ct.reducer,Ct.resolvers,Ct.selectors;i.a.registerStore(d.e,Ct)}},[[965,1,0]]]);
1
  (window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[14],{11:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return o}));var n="core/user",i="connected_url_mismatch",a="googlesitekit_view_dashboard",o="googlesitekit_manage_options"},112:function(e,t,r){"use strict";var n=r(106);t.a=function(e){var t=Object.keys(e).reduce((function(t,r){return t[Object(n.getStablePath)(r)]=e[r],t}),{}),r=!1;return function(e,i){if(r)return i(e);setTimeout((function(){r=!0}),1e3);var a=e.parse,o=void 0===a||a,c=e.path;if("string"==typeof e.path){var u,s=(null===(u=e.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(n.getStablePath)(c);if(o&&"GET"===s&&t[l]){var f=Promise.resolve(t[l].body);return delete t[l],f}if("OPTIONS"===s&&t[s]&&t[s][l]){var d=Promise.resolve(t[s][l]);return delete t[s][l],d}}return i(e)}}},12:function(e,t,r){"use strict";r.d(t,"p",(function(){return n})),r.d(t,"f",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"h",(function(){return a})),r.d(t,"g",(function(){return o})),r.d(t,"d",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"k",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"t",(function(){return d})),r.d(t,"s",(function(){return p})),r.d(t,"u",(function(){return g})),r.d(t,"q",(function(){return v})),r.d(t,"r",(function(){return b})),r.d(t,"n",(function(){return y})),r.d(t,"o",(function(){return m})),r.d(t,"l",(function(){return h})),r.d(t,"m",(function(){return O})),r.d(t,"j",(function(){return S})),r.d(t,"i",(function(){return E}));var n="modules/analytics",i="account_create",a="property_create",o="profile_create",c="analyticsAccountCreate",u="analyticsSetup",s="https://www.googleapis.com/auth/analytics.provision",l="https://www.googleapis.com/auth/analytics.edit",f=1,d="dashboardAllTrafficWidgetDimensionName",p="dashboardAllTrafficWidgetDimensionColor",g="dashboardAllTrafficWidgetDimensionValue",v="dashboardAllTrafficWidgetActiveRowIndex",b="dashboardAllTrafficWidgetLoaded",y="legacy",m="ua",h="ga4",O="ga4-transitional",S="ua",E="ga4"},138:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(3),i=r.n(n),a=r(10),o=r.n(a),c=r(9),u=["fetch_error"];function s(e){return l.apply(this,arguments)}function l(){return(l=o()(i.a.mark((function e(t){var r,n,a,o,s,l,f,d;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.method,o=t.type,s=t.identifier,l=t.datapoint,(f=t.error)&&!u.includes(null==f?void 0:f.code)){e.next=3;break}return e.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(r=f.data)||void 0===r?void 0:r.reason)&&(d+=", reason: ".concat(f.data.reason)),e.next=7,Object(c.v)("api_error","".concat(a,":").concat(o,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(n=f.data)||void 0===n?void 0:n.status)||f.code);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},2:function(e,t){e.exports=googlesitekit.i18n},23:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="core/modules",i="insufficient_module_dependencies"},28:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="_googlesitekitDataLayer",i="data-googlesitekit-gtag"},281:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="dashboard",i="pageDashboard"},318:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(38),l=r.n(s),f=r(5),d=r.n(f),p=r(45);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(t,r,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=a.client,s=void 0===c||c,f=a.server,g=void 0===f||f,b=a.storeName,y=void 0===b?void 0:b;u()(t,"type is required."),u()(r,"identifier is required."),u()(n,"datapoint is required.");var m=y||"".concat(t,"/").concat(r),h={serverNotifications:g?void 0:{},clientNotifications:s?void 0:{}},O=Object(p.a)({baseName:"getNotifications",controlCallback:function(){return l.a.get(t,r,n)},reducerCallback:function(e,t){return v(v({},e),{},{serverNotifications:t.reduce((function(e,t){return v(v({},e),{},o()({},t.id,t))}),{})})}}),S={addNotification:function(e){return u()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return u()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},E={},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,r=arguments.length>1?arguments[1]:void 0,n=r.type,i=r.payload;switch(n){case"ADD_NOTIFICATION":var a=i.notification;return v(v({},t),{},{clientNotifications:v(v({},t.clientNotifications||{}),{},o()({},a.id,a))});case"REMOVE_NOTIFICATION":var c=i.id;if(void 0===t.clientNotifications||void 0===t.clientNotifications[c])return void 0!==t.serverNotifications&&void 0!==t.serverNotifications[c]&&e.console.warn('Cannot remove server-side notification with ID "'.concat(c,'"; this may be changed in a future release.')),t;var u=v({},t.clientNotifications);return delete u[c],v(v({},t),{},{clientNotifications:u});default:return t}},_={getNotifications:i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.actions.fetchGetNotifications();case 2:case"end":return e.stop()}}),e)}))};g||delete _.getNotifications;var j={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(v(v({},t||{}),r||{}))}},k=d.a.combineStores(O,{initialState:h,actions:S,controls:E,reducer:w,resolvers:_,selectors:j});return v(v({},k),{},{STORE_NAME:m})}}).call(this,r(14))},32:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n,i=r(33),a=r.n(i),o=r(34),c=r.n(o),u=function(t){var r=e[t];if(!r)return!1;try{var n="__storage_test__";return r.setItem(n,n),r.removeItem(n),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==r.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return n||(n=u("sessionStorage")?e.sessionStorage:u("localStorage")?e.localStorage:new s),n}}).call(this,r(14))},36:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},361:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y}));var n=r(3),i=r.n(n),a=r(10),o=r.n(a),c=r(7),u=r.n(c),s=r(85),l=r(147),f=r(60),d=r(9),p=r(66),g=r(138),v=r(11),b=!0,y=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[e,t,r].filter((function(e){return!!e&&e.length}));return 3===i.length&&n&&n.constructor===Object&&Object.keys(n).length&&i.push(Object(d.u)(n)),i.join("::")},m=function(t){var r,n,i,a,o=null===(r=e.googlesitekit)||void 0===r||null===(n=r.data)||void 0===n||null===(i=n.dispatch)||void 0===i?void 0:i.call(n,v.a);o&&(t.code===p.a?o.setPermissionScopeError(t):(null===(a=t.data)||void 0===a?void 0:a.reconnectURL)&&o.setAuthError(t))},h=function(){var t=o()(i.a.mark((function t(r,n,a){var o,c,d,p,v,b,h,O,S,w,_,j,k,I,D,T,x=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=x.length>3&&void 0!==x[3]?x[3]:{},c=o.bodyParams,d=o.cacheTTL,p=void 0===d?3600:d,v=o.method,b=void 0===v?"GET":v,h=o.queryParams,O=o.useCache,S=void 0===O?void 0:O,u()(r,"`type` argument for requests is required."),u()(n,"`identifier` argument for requests is required."),u()(a,"`datapoint` argument for requests is required."),w="GET"===b&&(void 0!==S?S:E()),_=y(r,n,a,h),!w){t.next=18;break}return t.next=9,Object(f.b)(_);case 9:if(j=t.sent,k=j.cacheHit,I=j.value,!j.isError){t.next=16;break}throw m(I),I;case 16:if(!k){t.next=18;break}return t.abrupt("return",I);case 18:return t.prev=18,t.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(r,"/").concat(n,"/data/").concat(a),h)});case 21:if(D=t.sent,!w){t.next=25;break}return t.next=25,Object(f.d)(_,D,{ttl:p});case 25:return t.abrupt("return",D);case 28:if(t.prev=28,t.t0=t.catch(18),!(null===t.t0||void 0===t.t0||null===(T=t.t0.data)||void 0===T?void 0:T.cacheTTL)){t.next=33;break}return t.next=33,Object(f.d)(_,t.t0,{ttl:t.t0.data.cacheTTL,isError:!0});case 33:throw Object(g.a)({method:b,datapoint:a,type:r,identifier:n,error:t.t0}),m(t.t0),e.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(a),"type:".concat(r),"identifier:".concat(n),'error:"'.concat(t.t0.message,'"')),t.t0;case 37:case"end":return t.stop()}}),t,null,[[18,28]])})));return function(e,r,n){return t.apply(this,arguments)}}(),O=function(){var e=o()(i.a.mark((function e(t,r,n,a){var o,c,u,s,l,f=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>4&&void 0!==f[4]?f[4]:{},c=o.cacheTTL,u=void 0===c?3600:c,s=o.useCache,l=void 0===s?void 0:s,e.abrupt("return",h(t,r,n,{cacheTTL:u,queryParams:a,useCache:l}));case 2:case"end":return e.stop()}}),e)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),S=function(){var e=o()(i.a.mark((function e(t,r,n,a){var o,c,u,s,l,f,d=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>4&&void 0!==d[4]?d[4]:{},c=o.method,u=void 0===c?"POST":c,s=o.queryParams,l=void 0===s?{}:s,e.next=3,h(t,r,n,{bodyParams:{data:a},method:u,queryParams:l,useCache:!1});case 3:return f=e.sent,e.next=6,w(t,r,n);case 6:return e.abrupt("return",f);case 7:case"end":return e.stop()}}),e)})));return function(t,r,n,i){return e.apply(this,arguments)}}(),E=function(){return b},w=function(){var e=o()(i.a.mark((function e(t,r,n){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=y(t,r,n),e.next=3,Object(f.c)();case 3:e.sent.forEach((function(e){0===e.indexOf(a)&&Object(f.a)(e)}));case 5:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),_={invalidateCache:w,get:O,set:S,setUsingCache:function(e){return b=!!e},usingCache:E};t.b=_}).call(this,r(14))},37:function(e,t,r){"use strict";(function(e){var n,i;r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));var a=new Set((null===(n=e)||void 0===n||null===(i=n._googlesitekitBaseData)||void 0===i?void 0:i.enabledFeatures)||[]),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return t instanceof Set&&t.has(e)}}).call(this,r(14))},38:function(e,t){e.exports=googlesitekit.api},40:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return d}));var n=r(78),i=e._googlesitekitBaseData||{},a=i.isFirstAdmin,o=i.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:i.trackingEnabled,trackingID:i.trackingID,referenceSiteURL:i.referenceSiteURL,userIDHash:i.userIDHash},u=Object(n.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(e){e?s():l()}!0===o&&p(f())}).call(this,r(14))},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(36),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return S}));var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(53),l=r.n(s),f=r(50),d=r(72),p=r(9);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=function(e){return e},y=function(){return{}},m=function(){},h=f.a.clearError,O=f.a.receiveError,S=function(e){var t,r,n=i.a.mark(N),a=e.baseName,c=e.controlCallback,s=e.reducerCallback,f=void 0===s?b:s,g=e.argsToParams,S=void 0===g?y:g,E=e.validateParams,w=void 0===E?m:E;u()(a,"baseName is required."),u()("function"==typeof c,"controlCallback is required and must be a function."),u()("function"==typeof f,"reducerCallback must be a function."),u()("function"==typeof S,"argsToParams must be a function."),u()("function"==typeof w,"validateParams must be a function.");try{w(S()),r=!1}catch(e){r=!0}var _=Object(d.b)(a),j=Object(d.a)(a),k="FETCH_".concat(j),I="START_".concat(k),D="FINISH_".concat(k),T="CATCH_".concat(k),x="RECEIVE_".concat(j),R="fetch".concat(_),P="receive".concat(_),A="isFetching".concat(_),C=o()({},A,{});function N(e,t){var r,o;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,{payload:{params:e},type:I};case 2:return n.next=4,h(a,t);case 4:return n.prev=4,n.next=7,{payload:{params:e},type:k};case 7:return r=n.sent,n.next=10,U[P](r,e);case 10:return n.next=12,{payload:{params:e},type:D};case 12:n.next=23;break;case 14:return n.prev=14,n.t0=n.catch(4),o=n.t0,n.next=19,O(o,a,t);case 19:return n.next=21,O(o);case 21:return n.next=23,{payload:{params:e},type:T};case 23:return n.abrupt("return",{response:r,error:o});case 24:case"end":return n.stop()}}),n,null,[[4,14]])}var U=(t={},o()(t,R,(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=S.apply(void 0,t);return w(n),N(n,t)})),o()(t,P,(function(e,t){return u()(void 0!==e,"response is required."),r?(u()(l()(t),"params is required."),w(t)):t={},{payload:{response:e,params:t},type:x}})),t),L=o()({},k,(function(e){var t=e.payload;return c(t.params)})),F=o()({},A,(function(e){if(void 0===e[A])return!1;var t;try{for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];t=S.apply(void 0,n),w(t)}catch(e){return!1}return!!e[A][Object(p.u)(t)]}));return{initialState:C,actions:U,controls:L,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case I:var i=n.params;return v(v({},e),{},o()({},A,v(v({},e[A]),{},o()({},Object(p.u)(i),!0))));case x:var a=n.response,c=n.params;return f(e,a,c);case D:var u=n.params;return v(v({},e),{},o()({},A,v(v({},e[A]),{},o()({},Object(p.u)(u),!1))));case T:var s=n.params;return v(v({},e),{},o()({},A,v(v({},e[A]),{},o()({},Object(p.u)(s),!1))));default:return e}},resolvers:{},selectors:F}}},48:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(28);function i(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},49:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(17),i=r.n(n),a=r(1),o=function(e){return function(t){return function FilteredComponent(r){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(t,r),e)}}},c=function(t,r){return function(n){return function InnerComponent(a){return e.createElement(t,i()({},a,r,{OriginalComponent:n}))}}}}).call(this,r(1))},5:function(e,t){e.exports=googlesitekit.data},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return b}));var n=r(6),i=r.n(n),a=r(19),o=r.n(a),c=r(7),u=r.n(c),s=r(70),l=r.n(s),f=r(9);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t){if(t&&Array.isArray(t)){var r=t.map((function(e){return"object"===o()(e)?Object(f.u)(e):e}));return"".concat(e,"::").concat(l()(JSON.stringify(r)))}return e}var v={receiveError:function(e,t,r){return u()(e,"error is required."),t&&u()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:r}}},clearError:function(e,t){return e&&u()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function b(){var e={getErrorForSelector:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"selectorName is required."),e.getError(t,r,n)},getErrorForAction:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(r,"actionName is required."),e.getError(t,r,n)},getError:function(e,t,r){var n=e.error,i=e.errors;return t||r?(u()(t,"baseName is required."),i[g(t,r)]):n},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},hasErrors:function(t){return e.getErrors(t).length>0}};return{initialState:{errors:{},error:void 0},actions:v,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var a=n.baseName,o=n.args,c=n.error;return p(p({},e),{},a?{errors:p(p({},e.errors||{}),{},i()({},g(a,o),c))}:{error:c});case"CLEAR_ERROR":var u=n.baseName,s=n.args,l=p({},e);if(u){var f=g(u,s);l.errors=p({},e.errors||{}),delete l.errors[f]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,v=p({},e);if(d)for(var b in v.errors=p({},e.errors||{}),v.errors)(b===d||b.startsWith("".concat(d,"::")))&&delete v.errors[b];else v.errors={},v.error=void 0;return v;default:return e}},resolvers:{},selectors:e}}},51:function(e,t,r){"use strict";r.d(t,"k",(function(){return n})),r.d(t,"j",(function(){return n})),r.d(t,"d",(function(){return i})),r.d(t,"h",(function(){return a})),r.d(t,"f",(function(){return o})),r.d(t,"g",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"i",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return d}));var n="modules/idea-hub",i="IDEA_HUB_BUTTON_CREATE",a="IDEA_HUB_BUTTON_VIEW",o="IDEA_HUB_BUTTON_PIN",c="IDEA_HUB_BUTTON_UNPIN",u="IDEA_HUB_BUTTON_DELETE",s=4,l="IDEA_HUB_ACTIVITY_CREATING_DRAFT",f="IDEA_HUB_ACTIVITY_DRAFT_CREATED",d="IDEA_HUB_ACTIVITY_IS_PROCESSING"},52:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return n})),r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return p})),r.d(t,"g",(function(){return g})),r.d(t,"h",(function(){return f.a})),r.d(t,"d",(function(){return v})),r.d(t,"c",(function(){return y})),r.d(t,"i",(function(){return d}));var n="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".',a=r(7),o=r.n(a),c=r(36),u=function(e){var t=new Date(e);o()(Object(c.a)(t),"Date param must construct to a valid date instance or be a valid date instance itself.");var r="".concat(t.getMonth()+1),n="".concat(t.getDate());return[t.getFullYear(),r.length<2?"0".concat(r):r,n.length<2?"0".concat(n):n].join("-")},s=r(13),l=r.n(s),f=r(42),d=function(e){o()(Object(f.a)(e),n);var t=e.split("-"),r=l()(t,3),i=r[0],a=r[1],c=r[2];return new Date(i,a-1,c)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=d(e);return r.setDate(r.getDate()-t),u(r)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]};function v(e){var t=e.match(/last-(\d+)-days/);if(t&&t[1])return parseInt(t[1],10);throw new Error("Unrecognized date range slug.")}var b=r(2);function y(){var e=function(e){return Object(b.sprintf)(
2
  /* translators: %s: number of days */
3
+ Object(b._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}}}},56:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(19),i=r.n(n),a=r(70),o=r.n(a),c=function(e){return o()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var a=t[n];a&&"object"===i()(a)&&!Array.isArray(a)&&(a=e(a)),r[n]=a})),r}(e)))}},58:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(19),i=r.n(n),a=r(81),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:a.a.sanitize(e,t)}};function c(e){var t,r="object"===i()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},59:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),a=r(8),o=r.n(a);function ChangeArrow(t){var r=t.direction,n=t.invertColor,i=t.width,a=t.height;return e.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("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:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(1))},60:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return v})),r.d(t,"d",(function(){return b})),r.d(t,"a",(function(){return y})),r.d(t,"c",(function(){return m}));var n=r(3),i=r.n(n),a=r(10),o=r.n(a);r(26);function c(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var s,l="googlesitekit_".concat("1.38.1","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var t=o()(i.a.mark((function t(r){var n,a;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e[r]){t.next=3;break}return t.abrupt("return",!1);case 3:return t.prev=3,a="__storage_test__",n.setItem(a,a),n.removeItem(a),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(3),t.abrupt("return",t.t0 instanceof DOMException&&(22===t.t0.code||1014===t.t0.code||"QuotaExceededError"===t.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.t0.name)&&0!==n.length);case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return t.apply(this,arguments)}}(),g=function(){var t=o()(i.a.mark((function t(){var r,n,a,o,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(null===(r=e._googlesitekitLegacyData)||void 0===r||null===(n=r.admin)||void 0===n?void 0:n.nojscache)){t.next=2;break}return t.abrupt("return",null);case 2:if(void 0!==s){t.next=25;break}a=c(d),t.prev=4,a.s();case 6:if((o=a.n()).done){t.next=16;break}if(u=o.value,!s){t.next=10;break}return t.abrupt("continue",14);case 10:return t.next=12,p(u);case 12:if(!t.sent){t.next=14;break}s=e[u];case 14:t.next=6;break;case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(4),a.e(t.t0);case 21:return t.prev=21,a.f(),t.finish(21);case 24:void 0===s&&(s=null);case 25:return t.abrupt("return",s);case 26:case"end":return t.stop()}}),t,null,[[4,18,21,24]])})));return function(){return t.apply(this,arguments)}}(),v=function(){var e=o()(i.a.mark((function e(t){var r,n,a,o,c,u,s;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:if(!(r=e.sent)){e.next=10;break}if(!(n=r.getItem("".concat(l).concat(t)))){e.next=10;break}if(a=JSON.parse(n),o=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!o||c&&!(Math.round(Date.now()/1e3)-o<c)){e.next=10;break}return e.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return e.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var t=o()(i.a.mark((function t(r,n){var a,o,c,u,s,f,d,p,v=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=v.length>2&&void 0!==v[2]?v[2]:{},o=a.ttl,c=void 0===o?3600:o,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,t.next=3,g();case 3:if(!(p=t.sent)){t.next=14;break}return t.prev=5,p.setItem("".concat(l).concat(r),JSON.stringify({timestamp:s,ttl:c,value:n,isError:d})),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(5),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!1);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e,r){return t.apply(this,arguments)}}(),y=function(){var t=o()(i.a.mark((function t(r){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(n=t.sent)){t.next=13;break}return t.prev=4,n.removeItem("".concat(l).concat(r)),t.abrupt("return",!0);case 9:return t.prev=9,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",!1);case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[4,9]])})));return function(e){return t.apply(this,arguments)}}(),m=function(){var t=o()(i.a.mark((function t(){var r,n,a,o;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g();case 2:if(!(r=t.sent)){t.next=14;break}for(t.prev=4,n=[],a=0;a<r.length;a++)0===(o=r.key(a)).indexOf(l)&&n.push(o.substring(l.length));return t.abrupt("return",n);case 10:return t.prev=10,t.t0=t.catch(4),e.console.warn("Encountered an unexpected storage error:",t.t0),t.abrupt("return",[]);case 14:return t.abrupt("return",[]);case 15:case"end":return t.stop()}}),t,null,[[4,10]])})));return function(){return t.apply(this,arguments)}}()}).call(this,r(14))},61:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return f}));var n=r(13),i=r.n(n),a=r(2);function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw a}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),i=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&i)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===r)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
4
  /* translators: %d is the number of notifications */
5
  Object(a._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(u),t&&null===n&&t.appendChild(o),r&&null===i&&r.appendChild(o),o},s=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},l=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):l(e);var n,a={},c=o(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var u=i()(n.value,2),s=u[0],f=u[1];a[s]=f}}catch(e){c.e(e)}finally{c.f()}return a}}).call(this,r(14))},629:function(e,t,r){"use strict";(function(e){var n,i=r(3),a=r.n(i),o=r(10),c=r.n(o),u=r(30),s=r(2),l=r(281),f=r(23),d=r(51),p={slug:"ideaHubModule",contexts:[l.a],version:"3.6.0",checkRequirements:(n=c()(a.a.mark((function e(t){var r,n,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.__experimentalResolveSelect(f.a).getModules();case 2:if(r=t.select(f.a).isModuleActive("idea-hub"),n=t.select(f.a).isModuleConnected("idea-hub"),r&&n){e.next=6;break}return e.abrupt("return",!1);case 6:return i=t.select(d.j).getNewIdeas()||[],e.abrupt("return",!!i.length);case 8:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)}),steps:[{target:".googlesitekit-idea-hub__title",title:Object(s.__)("Get inspiration for new topics to write about!","google-site-kit"),content:Object(s.__)("These ideas are based on unanswered searches related to the content of your site. They are organised by topics and will refresh every 2-3 days.","google-site-kit")},{target:".googlesitekit-idea-hub__actions--create",title:Object(s.__)("Start a draft","google-site-kit"),content:Object(s.__)("Found an interesting idea you want to write about? Create a draft! You can always get back to it later on the Posts page.","google-site-kit")},{target:".googlesitekit-idea-hub__idea--single",title:Object(s.__)("Save for later or dismiss","google-site-kit"),content:Object(s.__)('If you’re not ready to create a draft about an idea just yet, add it to your "Saved" list and revisit later. If you don’t like an idea, you can dismiss it from your list.',"google-site-kit"),placement:"top"}],gaEventCategory:"idea_hub_module",callback:function(t){var r=t.type,n=t.index;if([u.b.STEP_BEFORE,u.b.STEP_AFTER].includes(r)&&2===n){var i="googlesitekit-idea-hub__actions--unhide",a=e.document.querySelector(".googlesitekit-idea-hub__actions--pin"),o=e.document.querySelector(".googlesitekit-idea-hub__actions--delete");a&&o&&(r===u.b.STEP_BEFORE&&(a.classList.add(i),o.classList.add(i)),r===u.b.STEP_AFTER&&(a.classList.remove(i),o.classList.remove(i)))}}};t.a=p}).call(this,r(14))},633:function(e,t,r){"use strict";(function(e){var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(5),l=r.n(s),f=r(11);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g=l.a.createRegistrySelector,v={permissionError:null,capabilities:void 0},b={clearPermissionScopeError:function(){return{payload:{},type:"CLEAR_PERMISSION_SCOPE_ERROR"}},setPermissionScopeError:function(e){return u()(e,"permissionError is required."),{payload:{permissionError:e},type:"SET_PERMISSION_SCOPE_ERROR"}},receiveCapabilities:function(e){return{type:"RECEIVE_CAPABILITIES",payload:{capabilities:e}}}},y={getCapabilities:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.commonActions.getRegistry();case 2:if(!t.sent.select(f.e).getCapabilities()){t.next=5;break}return t.abrupt("return");case 5:return(null===(r=e._googlesitekitUserData)||void 0===r?void 0:r.permissions)||e.console.error("Could not load core/user permissions."),t.next=8,b.receiveCapabilities(null===(n=e._googlesitekitUserData)||void 0===n?void 0:n.permissions);case 8:case"end":return t.stop()}}),t)}))},m={getPermissionScopeError:function(e){return e.permissionError},getCapabilities:function(e){return e.capabilities},hasCapability:g((function(e){return function(t,r){var n=e(f.e).getCapabilities();if(n)return!!n[r]}}))};t.a={initialState:v,actions:b,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"CLEAR_PERMISSION_SCOPE_ERROR":return p(p({},e),{},{permissionError:null});case"SET_PERMISSION_SCOPE_ERROR":var i=n.permissionError;return p(p({},e),{},{permissionError:i});case"RECEIVE_CAPABILITIES":var a=n.capabilities;return p(p({},e),{},{capabilities:a});default:return e}},resolvers:y,selectors:m}}).call(this,r(14))},634:function(e,t,r){"use strict";(function(e){var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(7),u=r.n(c),s=r(147),l=r(5),f=r.n(l),d=r(11);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=f.a.createRegistrySelector,b={connectURL:void 0,initialVersion:void 0,user:void 0,verified:void 0},y={receiveConnectURL:function(e){return u()(e,"connectURL is required."),{payload:{connectURL:e},type:"RECEIVE_CONNECT_URL"}},receiveUserInfo:function(e){return u()(e,"userInfo is required."),{payload:{user:e},type:"RECEIVE_USER_INFO"}},receiveInitialSiteKitVersion:function(e){return u()(e,"initialVersion is required."),{payload:{initialVersion:e},type:"RECEIVE_USER_INITIAL_SITE_KIT_VERSION"}},receiveUserIsVerified:function(e){return u()(void 0!==e,"userIsVerified is required."),{payload:{verified:e},type:"RECEIVE_USER_IS_VERIFIED"}},receiveUserInputState:function(e){return u()(e,"userInputState is required."),{payload:{userInputState:e},type:"RECEIVE_USER_INPUT_STATE"}}},m={getConnectURL:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getConnectURL()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.connectURL,t.next=12,y.receiveConnectURL(n);case 12:case"end":return t.stop()}}),t)})),getUser:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getUser()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.user,t.next=12,y.receiveUserInfo(n);case 12:case"end":return t.stop()}}),t)})),getInitialSiteKitVersion:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).getInitialSiteKitVersion()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:if(!(n=e._googlesitekitUserData.initialVersion)){t.next=13;break}return t.next=13,y.receiveInitialSiteKitVersion(n);case 13:case"end":return t.stop()}}),t)})),isVerified:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,void 0===(0,r.select)(d.e).isVerified()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.verified,t.next=12,y.receiveUserIsVerified(n);case 12:case"end":return t.stop()}}),t)})),getUserInputState:i.a.mark((function t(){var r,n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f.a.commonActions.getRegistry();case 2:if(r=t.sent,!(0,r.select)(d.e).getUserInputState()){t.next=6;break}return t.abrupt("return");case 6:if(e._googlesitekitUserData){t.next=9;break}return e.console.error("Could not load core/user info."),t.abrupt("return");case 9:return n=e._googlesitekitUserData.userInputState,t.next=12,y.receiveUserInputState(n);case 12:case"end":return t.stop()}}),t)}))},h={getUser:function(e){return e.user},getConnectURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.additionalScopes,n=void 0===r?[]:r,i=t.redirectURL,a=void 0===i?void 0:i,o=e.connectURL,c={redirect:a};if(void 0!==o){if(null==n?void 0:n.length){var u=n.map((function(e){return e.replace(/^http(s)?:/,"gttp$1:")}));return Object(s.a)(o,g(g({},c),{},{additional_scopes:u}))}return Object(s.a)(o,c)}},getID:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.id:t}})),getName:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.name:t}})),getEmail:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.email:t}})),getPicture:v((function(e){return function(){var t=e(d.e).getUser();return void 0!==t?t.picture:t}})),getInitialSiteKitVersion:function(e){return e.initialVersion},isVerified:function(e){return e.verified},getUserInputState:function(e){return e.userInputState}};t.a={initialState:b,actions:y,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_CONNECT_URL":var i=n.connectURL;return g(g({},e),{},{connectURL:i});case"RECEIVE_USER_INFO":var a=n.user;return g(g({},e),{},{user:a});case"RECEIVE_USER_INITIAL_SITE_KIT_VERSION":var o=n.initialVersion;return g(g({},e),{},{initialVersion:o});case"RECEIVE_USER_IS_VERIFIED":var c=n.verified;return g(g({},e),{},{verified:c});case"RECEIVE_USER_INPUT_STATE":var u=n.userInputState;return g(g({},e),{},{userInputState:u});default:return e}},resolvers:m,selectors:h}}).call(this,r(14))},65:function(e,t,r){"use strict";function n(e){return new URL(e).pathname}function i(e,t){return new URL(t,e).href}function a(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return a}))},66:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return u}));var n=r(53),i=r.n(n),a="missing_required_scopes";function o(e){return i()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===a}function u(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},67:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return n}));var n="core/ui"},68:function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return S})),r.d(t,"d",(function(){return w})),r.d(t,"b",(function(){return _})),r.d(t,"a",(function(){return j}));var n=r(13),i=r.n(n),a=r(19),o=r.n(a),c=r(6),u=r.n(c),s=r(16),l=r.n(s),f=r(18),d=r(64),p=r.n(d),g=r(2);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=m(e,t),n=r.formatUnit,i=r.formatDecimal;try{return n()}catch(e){return i()}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var r=Math.floor(e/60/60),n=Math.floor(e/60%60),i=Math.floor(e%60);return{hours:r,minutes:n,seconds:i,formatUnit:function(){var a=t.unitDisplay,o=b(b({unitDisplay:void 0===a?"short":a},l()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?w(i,b(b({},o),{},{unit:"second"})):Object(g.sprintf)(
6
  /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
13
  Object(g.__)("%sM","google-site-kit"),w(h(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
14
  Object(g.__)("%sK","google-site-kit"),w(h(e))):1e3<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands.
15
  Object(g.__)("%sK","google-site-kit"),w(h(e),e%10==0?{}:t)):w(e,{signDisplay:"never",maximumFractionDigits:1})},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(f.isFinite)(e)?e:Number(e),Object(f.isFinite)(e)||(console.warn("Invalid number",e,o()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return y(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(f.isPlainObject)(t)&&(r=b({},t))}var n=r,i=n.style,a=void 0===i?"metric":i;return"metric"===a?O(e):"duration"===a?y(e,t):w(e,r)},E=p()(console.warn),w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,a=l()(t,["locale"]);try{return new Intl.NumberFormat(n,a).format(e)}catch(t){E("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var p=i()(d[f],2),g=p[0],v=p[1];c[g]&&v===c[g]||(u.includes(g)||(s[g]=v))}try{return new Intl.NumberFormat(n,s).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:a,type:c});return u.format(e)}
16
+ /* translators: used between list items, there is a space after the comma. */var s=Object(g.__)(", ","google-site-kit");return e.join(s)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(f.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(14))},72:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return a}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},i=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function a(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},73:function(e,t,r){"use strict";r.d(t,"a",(function(){return I})),r.d(t,"b",(function(){return D})),r.d(t,"c",(function(){return T})),r.d(t,"d",(function(){return R})),r.d(t,"e",(function(){return P})),r.d(t,"g",(function(){return C})),r.d(t,"f",(function(){return N}));var n,i=r(3),a=r.n(i),o=r(26),c=r.n(o),u=r(6),s=r.n(u),l=r(7),f=r.n(l),d=r(217),p=r.n(d),g=r(64),v=r.n(g),b=r(105);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return m(m({},e),t)}),{}),i=t.reduce((function(e,t){return[].concat(c()(e),c()(Object.keys(t)))}),[]),a=x(i);return f()(0===a.length,"collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ".concat(a.join(", "),". Check your data stores for duplicates.")),n},O=h,S=h,E=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=[].concat(t);return"function"!=typeof i[0]&&(n=i.shift()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.reduce((function(e,r){return r(e,t)}),e)}},w=h,_=h,j=h,k=function(e){return e},I=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=j.apply(void 0,c()(t.map((function(e){return e.initialState||{}}))));return{initialState:n,controls:S.apply(void 0,c()(t.map((function(e){return e.controls||{}})))),actions:O.apply(void 0,c()(t.map((function(e){return e.actions||{}})))),reducer:E.apply(void 0,[n].concat(c()(t.map((function(e){return e.reducer||k}))))),resolvers:w.apply(void 0,c()(t.map((function(e){return e.resolvers||{}})))),selectors:_.apply(void 0,c()(t.map((function(e){return e.selectors||{}}))))}},D={getRegistry:function(){return{payload:{},type:"GET_REGISTRY"}},await:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{payload:{value:t},type:"AWAIT"});case 1:case"end":return e.stop()}}),e)}))},T=(n={},s()(n,"GET_REGISTRY",Object(b.d)((function(e){return function(){return e}}))),s()(n,"AWAIT",(function(e){return e.payload.value})),n),x=function(e){for(var t=[],r={},n=0;n<e.length;n++){var i=e[n];r[i]=r[i]>=1?r[i]+1:1,r[i]>1&&t.push(i)}return t},R={actions:D,controls:T,reducer:k},P=function(e){return function(t){return A(e(t))}},A=v()((function(e){return p()(e,(function(e,t){return function(){var r=e.apply(void 0,arguments);return f()(void 0!==r,"".concat(t,"(...) is not resolved")),r}}))}));function C(e){return{safeSelector:Object(b.e)((function(t){return function(r){try{for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return e.apply(void 0,[t,r].concat(i)),!0}catch(e){return!1}}})),dangerousSelector:Object(b.e)((function(t){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];e.apply(void 0,[t,r].concat(i))}}))}}function N(e,t){return f()("function"==typeof e,"a validator function is required."),f()("function"==typeof t,"an action creator function is required."),f()("Generator"!==e[Symbol.toStringTag]&&"GeneratorFunction"!==e[Symbol.toStringTag],"an action’s validator function must not be a generator."),function(){return e.apply(void 0,arguments),t.apply(void 0,arguments)}}},74:function(e,t,r){"use strict";function n(e){return e.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function i(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(e){return e.replace(/\n/gi,"<br>")}function o(e){for(var t=e,r=0,o=[n,i,a];r<o.length;r++){t=(0,o[r])(t)}return t}r.d(t,"a",(function(){return o}))},75:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(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)]}},76:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return o}));var n=r(189),i=r(59),a=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var a=r.invertColor,o=void 0!==a&&a;return Object(n.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:o}))},o=function(e){var t,r,n,i,a,o,c,u,s,l,f,d,p,g,v;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(i=e[0])||void 0===i||null===(a=i.data)||void 0===a||null===(o=a.rows)||void 0===o||null===(c=o[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(f=e[0])||void 0===f||null===(d=f.data)||void 0===d||null===(p=d.totals)||void 0===p||null===(g=p[0])||void 0===g||null===(v=g.values)||void 0===v?void 0:v[0])}}).call(this,r(1))},78:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),i=r.n(n),a=r(79),o=r(80);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=u(u({},s),t);return i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(i,r),disableTracking:function(){i.trackingEnabled=!1},isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:Object(o.a)(i,r,n)}}}).call(this,r(14))},79:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(48),i=r(28);function a(t,r){var a=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(i.b,"]"))){var n=r.createElement("script");n.setAttribute(i.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a),r.head.appendChild(n),a("js",new Date),a("config",t.trackingID)}}}}).call(this,r(14))},80:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return p}));var n=r(3),i=r.n(n),a=r(6),o=r.n(a),c=r(10),u=r.n(c),s=r(48),l=r(37);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(t,r,n){var a=Object(s.a)(r);return function(){var r=u()(i.a.mark((function r(o,c,u,s){var f,p,g,v,b,y,m,h;return i.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(g=t.isFirstAdmin,v=t.referenceSiteURL,b=t.trackingEnabled,y=t.trackingID,m=t.userIDHash,!(null===(f=n._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){r.next=3;break}return r.abrupt("return");case 3:if(b){r.next=5;break}return r.abrupt("return");case 5:return h={send_to:y,event_category:o,event_label:u,value:s,dimension1:v,dimension2:g?"true":"false",dimension3:m,dimension4:"1.38.1",dimension5:Array.from(l.a).join(", ")},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);a("event",c,d(d({},h),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t,n,i){return r.apply(this,arguments)}}()}}).call(this,r(14))},81:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(109),i=r.n(n)()(e)}).call(this,r(14))},85:function(e,t,r){"use strict";(function(e){var n=r(22),i=r.n(n),a=r(112),o=e._googlesitekitAPIFetchData||{},c=o.nonce,u=o.nonceEndpoint,s=o.preloadedData,l=o.rootURL;i.a.nonceEndpoint=u,i.a.nonceMiddleware=i.a.createNonceMiddleware(c),i.a.rootURLMiddleware=i.a.createRootURLMiddleware(l),i.a.preloadingMiddleware=Object(a.a)(s),i.a.use(i.a.nonceMiddleware),i.a.use(i.a.mediaUploadMiddleware),i.a.use(i.a.rootURLMiddleware),i.a.use(i.a.preloadingMiddleware),t.default=i.a}).call(this,r(14))},9:function(e,t,r){"use strict";(function(e){r.d(t,"k",(function(){return _})),r.d(t,"a",(function(){return j})),r.d(t,"i",(function(){return k})),r.d(t,"x",(function(){return I})),r.d(t,"d",(function(){return D}));var n=r(6),i=r.n(n),a=r(19),o=r.n(a),c=r(108),u=r.n(c),s=r(104),l=r.n(s),f=r(40);r.d(t,"v",(function(){return f.b}));var d=r(58);r.d(t,"s",(function(){return d.a})),r.d(t,"w",(function(){return d.b}));var p=r(56);r.d(t,"u",(function(){return p.a}));var g=r(61);r.d(t,"b",(function(){return g.b})),r.d(t,"j",(function(){return g.c}));r(32);var v=r(68);r.d(t,"h",(function(){return v.a})),r.d(t,"n",(function(){return v.b})),r.d(t,"q",(function(){return v.c})),r.d(t,"r",(function(){return v.d}));var b=r(49);r.d(t,"e",(function(){return b.b}));var y=r(74);r.d(t,"o",(function(){return y.a}));var m=r(75);r.d(t,"c",(function(){return m.a}));var h=r(52);r.d(t,"t",(function(){return h.i}));var O=r(76);r.d(t,"f",(function(){return O.a})),r.d(t,"m",(function(){return O.b}));var S=r(65);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,"g",(function(){return S.a})),r.d(t,"l",(function(){return S.b})),r.d(t,"p",(function(){return S.c}));var _=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},j=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!u()(r)?null:r},k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==o()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:w(w({},e),{},i()({},t,r[t]))}),{}):{}},I=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},D=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return l()(t)}}).call(this,r(14))},965:function(e,t,r){"use strict";r.r(t);var n=r(5),i=r.n(n),a=r(50),o=r(3),c=r.n(o),u=r(6),s=r.n(u),l=r(38),f=r.n(l),d=r(11),p=r(45);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=i.a.createRegistrySelector;function y(e){return b((function(t){return function(){return(t(d.e).getAuthentication()||{})[e]}}))}var m=Object(p.a)({baseName:"getAuthentication",controlCallback:function(){return f.a.get("core","user","authentication",void 0,{useCache:!1})},reducerCallback:function(e,t){return v(v({},e),{},{authentication:t})}}),h={authentication:void 0,authError:null},O={setAuthError:function(e){return{payload:{error:e},type:"SET_AUTH_ERROR"}},clearAuthError:function(){return{payload:{},type:"CLEAR_AUTH_ERROR"}}},S={getAuthentication:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:if(t=e.sent,(0,t.select)(d.e).getAuthentication()){e.next=7;break}return e.next=7,m.actions.fetchGetAuthentication();case 7:case"end":return e.stop()}}),e)}))},E={getAuthentication:function(e){return e.authentication},hasScope:b((function(e){return function(t,r){var n=e(d.e).getGrantedScopes(t);if(void 0!==n)return n.includes(r)}})),isAuthenticated:y("authenticated"),getGrantedScopes:y("grantedScopes"),getRequiredScopes:y("requiredScopes"),getUnsatisfiedScopes:y("unsatisfiedScopes"),needsReauthentication:y("needsReauthentication"),getDisconnectedReason:y("disconnectedReason"),getAuthError:function(e){return e.authError}},w=i.a.combineStores(m,{initialState:h,actions:O,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_AUTH_ERROR":return v(v({},e),{},{authError:n.error});case"CLEAR_AUTH_ERROR":return v(v({},e),{},{authError:null});default:return e}},resolvers:S,selectors:E}),_=(w.initialState,w.actions,w.controls,w.reducer,w.resolvers,w.selectors,w),j=r(7),k=r.n(j),I=r(52);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?D(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x={dateRange:"last-28-days",referenceDate:Object(I.e)(new Date)};var R={getDateRange:function(e){return e.dateRange},getDateRangeDates:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.compare,n=void 0!==r&&r,i=t.offsetDays,a=void 0===i?0:i,o=t.referenceDate,c=void 0===o?e.referenceDate:o,u=R.getDateRange(e),s=Object(I.f)(c,a),l=u.match("-(.*)-"),f=Number(l?l[1]:28),d=Object(I.f)(s,f-1),p={startDate:d,endDate:s};if(n){var g=Object(I.f)(d,1),v=Object(I.f)(g,f-1);p.compareStartDate=v,p.compareEndDate=g}return p},getDateRangeNumberOfDays:function(e){var t=R.getDateRange(e).match(/-(\d+)-/);return parseInt(t?t[1]:28,10)},getReferenceDate:function(e){return e.referenceDate}},P={initialState:x,actions:{setDateRange:function(e){return k()(e,"Date range slug is required."),k()(Object(I.g)(e),I.a),{type:"SET_DATE_RANGE",payload:{slug:e}}},setReferenceDate:function(e){return k()(e,"Date string is required."),k()(Object(I.h)(e),I.b),{type:"SET_REFERENCE_DATE",payload:{dateString:e}}}},controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_DATE_RANGE":return T(T({},e),{},{dateRange:n.slug});case"SET_REFERENCE_DATE":return T(T({},e),{},{referenceDate:n.dateString});default:return e}},resolvers:{},selectors:R};function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var N=i.a.createRegistrySelector,U=Object(p.a)({baseName:"disconnect",controlCallback:function(){return f.a.set("core","user","disconnect")},reducerCallback:function(e,t){return C(C({},e),{},{disconnected:t})}}),L={disconnected:void 0},F={disconnect:c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U.actions.fetchDisconnect();case 2:case"end":return e.stop()}}),e)}))},q={isDoingDisconnect:N((function(e){return function(){return e(d.e).isFetchingDisconnect()}}))},V=i.a.combineStores(U,{initialState:L,actions:F,selectors:q}),M=(V.initialState,V.actions,V.controls,V.reducer,V.resolvers,V.selectors,V),G=r(73);function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?H(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var K=i.a.createRegistrySelector,$=i.a.commonActions.getRegistry;function W(e,t){return B(B({},e),{},{dismissedItems:Array.isArray(t)?t:[]})}var Y,J,Q=Object(p.a)({baseName:"getDismissedItems",controlCallback:function(){return f.a.get("core","user","dismissed-items",{},{useCache:!1})},reducerCallback:W}),z=Object(p.a)({baseName:"dismissItem",controlCallback:function(e){var t=e.slug,r=e.expiresInSeconds;return f.a.set("core","user","dismiss-item",{slug:t,expiration:r})},reducerCallback:W,argsToParams:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{slug:e,expiresInSeconds:t}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug,r=e.expiresInSeconds;k()(t,"slug is required."),k()(Number.isInteger(r),"expiresInSeconds must be an integer.")}}),Z={dismissedItems:void 0},X={dismissItem:Object(G.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.expiresInSeconds,n=void 0===r?0:r;k()(e,"A tour slug is required to dismiss a tour."),k()(Number.isInteger(n),"expiresInSeconds must be an integer.")}),c.a.mark((function e(t){var r,n,i,a=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},n=r.expiresInSeconds,i=void 0===n?0:n,e.next=4,z.actions.fetchDismissItem(t,i);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))},ee={getDismissedItems:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$();case 2:if(t=e.sent,r=t.select,void 0!==r(d.e).getDismissedItems()){e.next=8;break}return e.next=8,Q.actions.fetchGetDismissedItems();case 8:case"end":return e.stop()}}),e)}))},te={getDismissedItems:function(e){return e.dismissedItems},isItemDismissed:K((function(e){return function(t,r){var n;return null===(n=e(d.e).getDismissedItems())||void 0===n?void 0:n.includes(r)}}))},re=i.a.combineStores({initialState:Z,actions:X,resolvers:ee,selectors:te},z,Q),ne={actions:re.actions,controls:re.controls,initialState:re.initialState,reducer:re.reducer,resolvers:re.resolvers,selectors:re.selectors},ie=r(10),ae=r.n(ie),oe=r(628),ce=r.n(oe),ue=r(2),se=r(281),le=r(67),fe=r(23),de=r(12),pe=r(37),ge={slug:"helpVisibility",contexts:[se.a,se.b],version:"1.29.0",gaEventCategory:"global_help_menu",checkRequirements:(Y=ae()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(pe.b)("helpVisibility"));case 1:case"end":return e.stop()}}),e)}))),function(){return Y.apply(this,arguments)}),steps:[{target:".googlesitekit-help-menu",title:Object(ue.__)("Need help?","google-site-kit"),content:Object(ue.__)("Access the Site Kit docs or ask a question in our support forum from here.","google-site-kit"),placement:"bottom-start"}]},ve=r(629),be=[{slug:"allTrafficWidget",contexts:[se.a],version:"1.25.0",gaEventCategory:"all_traffic_widget",checkRequirements:function(){var e=ae()(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.__experimentalResolveSelect(fe.a).getModules();case 2:if(t.select(fe.a).isModuleConnected("analytics")){e.next=4;break}return e.abrupt("return",!1);case 4:return e.next=6,new Promise((function(e){setTimeout((function r(){t.select(le.a).getValue(de.r)?e():setTimeout(r,250)}),250)}));case 6:return e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),steps:[{target:".googlesitekit-widget--analyticsAllTraffic__totals",title:Object(ue.__)("It’s now easier to see your site’s traffic at a glance","google-site-kit"),content:Object(ue.__)("Check the trend graph to see how your traffic changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-widget--analyticsAllTraffic__dimensions",title:Object(ue.__)("See where your visitors come from","google-site-kit"),content:Object(ue.__)("Click on the chart slices to see how each segment has changed over time","google-site-kit"),placement:"top"},{target:".googlesitekit-header__date-range-selector-menu",title:Object(ue.__)("Check how your traffic changed since you last looked","google-site-kit"),content:Object(ue.__)("Select a time frame to see the comparison with the previous time period","google-site-kit")}]},ge,ve.a],ye=r(60);function me(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw a}}}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ee,we=i.a.createRegistrySelector,_e=i.a.createRegistryControl,je=i.a.commonActions.getRegistry,ke=Object(p.a)({baseName:"getDismissedTours",controlCallback:function(){return f.a.get("core","user","dismissed-tours",{},{useCache:!1})},reducerCallback:function(e,t){return Se(Se({},e),{},{dismissedTourSlugs:t})}}),Ie=Object(p.a)({baseName:"dismissTour",controlCallback:function(e){var t=e.slug;return f.a.set("core","user","dismiss-tour",{slug:t})},reducerCallback:function(e,t){return Se(Se({},e),{},{dismissedTourSlugs:t})},argsToParams:function(e){return{slug:e}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug;k()(t,"slug is required.")}}),De={lastDismissedAt:void 0,dismissedTourSlugs:void 0,tours:be,viewTours:{}},Te={dismissTour:Object(G.f)((function(e){k()(e,"A tour slug is required to dismiss a tour.")}),c.a.mark((function e(t){var r,n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,je();case 2:if(r=e.sent,!(n=r.select)(d.e).isFetchingDismissTour(t)){e.next=7;break}return i=n(d.e).getDismissedFeatureTourSlugs(),e.abrupt("return",{response:i,error:void 0});case 7:return e.next=9,{type:"DISMISS_TOUR",payload:{slug:t}};case 9:return e.next=11,Ce.setLastDismissedAt(Date.now());case 11:return e.next=13,Ie.actions.fetchDismissTour(t);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)}))),receiveFeatureToursForView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.viewContext;return k()(Array.isArray(e),"viewTours must be an array."),k()(r,"viewContext is required."),{payload:{viewTours:e,viewContext:r},type:"RECEIVE_READY_TOURS"}},receiveAllFeatureTours:function(e){return k()(Array.isArray(e),"tours must be an array."),{payload:{tours:e},type:"RECEIVE_TOURS"}},receiveLastDismissedAt:function(e){return k()(void 0!==e,"A timestamp is required."),{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:e}}},setLastDismissedAt:Object(G.f)((function(e){k()(e,"A timestamp is required.")}),c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"CACHE_LAST_DISMISSED_AT",payload:{timestamp:t}};case 2:return e.next=4,{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:t}};case 4:case"end":return e.stop()}}),e)})))},xe=(J={},s()(J,"CHECK_TOUR_REQUIREMENTS",_e((function(e){return function(){var t=ae()(c.a.mark((function t(r){var n,i,a,o;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.payload,i=n.tour,a=n.viewContext,i.contexts.includes(a)){t.next=4;break}return t.abrupt("return",!1);case 4:if(o=e.select(d.e).getInitialSiteKitVersion()){t.next=9;break}return t.abrupt("return",!1);case 9:if(!ce.a.compare(o,i.version,">=")){t.next=11;break}return t.abrupt("return",!1);case 11:return t.next=13,e.__experimentalResolveSelect(d.e).getDismissedFeatureTourSlugs();case 13:if(!e.select(d.e).isTourDismissed(i.slug)){t.next=15;break}return t.abrupt("return",!1);case 15:if(!i.checkRequirements){t.next=19;break}return t.next=18,i.checkRequirements(e);case 18:return t.abrupt("return",!!t.sent);case 19:return t.abrupt("return",!0);case 20:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),s()(J,"CACHE_LAST_DISMISSED_AT",(Ee=ae()(c.a.mark((function e(t){var r,n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.payload,n=r.timestamp,e.next=4,Object(ye.d)("feature_tour_last_dismissed_at",n,{ttl:7200});case 4:case"end":return e.stop()}}),e)}))),function(e){return Ee.apply(this,arguments)})),J),Re={getDismissedFeatureTourSlugs:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,je();case 2:if(t=e.sent,r=t.select,void 0!==r(d.e).getDismissedFeatureTourSlugs()){e.next=8;break}return e.next=8,ke.actions.fetchGetDismissedTours();case 8:case"end":return e.stop()}}),e)})),getFeatureToursForView:c.a.mark((function e(t){var r,n,i,a,o,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,je();case 2:r=e.sent,n=r.select(d.e).getAllFeatureTours(),i=[],a=me(n),e.prev=6,a.s();case 8:if((o=a.n()).done){e.next=16;break}return u=o.value,e.next=12,{payload:{tour:u,viewContext:t},type:"CHECK_TOUR_REQUIREMENTS"};case 12:e.sent&&i.push(u);case 14:e.next=8;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(6),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:return e.next=26,Ce.receiveFeatureToursForView(i,{viewContext:t});case 26:case"end":return e.stop()}}),e,null,[[6,18,21,24]])})),getLastDismissedAt:c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.await(Object(ye.b)("feature_tour_last_dismissed_at"));case 2:return t=e.sent,r=t.value,e.next=6,Ce.receiveLastDismissedAt(r||null);case 6:case"end":return e.stop()}}),e)}))},Pe={getDismissedFeatureTourSlugs:function(e){return e.dismissedTourSlugs},getFeatureToursForView:function(e,t){return e.viewTours[t]},getAllFeatureTours:function(e){return e.tours},isTourDismissed:we((function(e){return function(t,r){var n=e(d.e).getDismissedFeatureTourSlugs();if(void 0!==n)return n.includes(r)}})),getLastDismissedAt:function(e){return e.lastDismissedAt},areFeatureToursOnCooldown:we((function(e){return function(){var t=e(d.e).getLastDismissedAt();if(void 0!==t){if(null===t)return!1;var r=t+72e5;return Date.now()<r}}}))},Ae=i.a.combineStores({initialState:De,actions:Te,controls:xe,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"DISMISS_TOUR":var i=n.slug,a=e.dismissedTourSlugs,o=void 0===a?[]:a;return o.includes(i)?e:Se(Se({},e),{},{dismissedTourSlugs:o.concat(i)});case"RECEIVE_READY_TOURS":var c=n.viewContext,u=n.viewTours;return Se(Se({},e),{},{viewTours:Se(Se({},e.viewTours),{},s()({},c,u))});case"RECEIVE_TOURS":return Se(Se({},e),{},{tours:n.tours});case"RECEIVE_LAST_DISMISSED_AT":return Se(Se({},e),{},{lastDismissedAt:n.timestamp});default:return e}},resolvers:Re,selectors:Pe},Ie,ke),Ce=Ae.actions,Ne=Ae.controls,Ue=Ae.initialState,Le=Ae.reducer,Fe=Ae.resolvers,qe=Ae.selectors,Ve={actions:Ce,controls:Ne,initialState:Ue,reducer:Le,resolvers:Fe,selectors:qe},Me=r(318),Ge=Object(Me.a)("core","user","notifications",{server:!1}),He=r(633),Be=r(53),Ke=r.n(Be),$e=r(361);function We(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?We(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):We(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Je=i.a.createRegistrySelector,Qe=Object(p.a)({baseName:"triggerSurvey",controlCallback:function(e){var t=e.triggerID;return f.a.set("core","user","survey-trigger",{triggerID:t})},argsToParams:function(e){return{triggerID:e}},reducerCallback:function(e,t){var r=t.survey_payload,n=t.session;return Xe.getCurrentSurvey(e)?e:Ye(Ye({},e),{},{currentSurvey:r,currentSurveySession:n})},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerID;k()("string"==typeof t&&t.length,"triggerID is required and must be a string")}}),ze=Object(p.a)({baseName:"sendSurveyEvent",controlCallback:function(e){var t=e.event,r=e.session;return f.a.set("core","user","survey-event",{event:t,session:r})},argsToParams:function(e,t){return{event:e,session:t}}}),Ze={triggerSurvey:Object(G.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ttl,n=void 0===r?0:r;k()("string"==typeof e&&e.length,"triggerID is required and must be a string"),k()(Ke()(t),"options must be an object"),k()("number"==typeof n,"options.ttl must be a number")}),c.a.mark((function e(t){var r,n,a,o,u,s,l,f,p,g=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=g.length>1&&void 0!==g[1]?g[1]:{},n=r.ttl,a=void 0===n?0:n,e.next=4,i.a.commonActions.getRegistry();case 4:if(o=e.sent,!(0,o.select)(d.a).getCurrentSurvey()){e.next=8;break}return e.abrupt("return",{});case 8:return u=Object($e.a)("core","user","survey-trigger",{triggerID:t}),e.next=11,i.a.commonActions.await(Object(ye.b)(u));case 11:if(s=e.sent,!1!==s.cacheHit){e.next=22;break}return e.next=16,Qe.actions.fetchTriggerSurvey(t);case 16:if(l=e.sent,f=l.response,!(p=l.error)){e.next=21;break}return e.abrupt("return",{response:f,error:p});case 21:a>0&&setTimeout(ae()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ye.d)(u,{},{ttl:a});case 2:case"end":return e.stop()}}),e)}))),3e4);case 22:return e.abrupt("return",{response:{},error:!1});case 23:case"end":return e.stop()}}),e)}))),sendSurveyEvent:Object(G.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k()("string"==typeof e&&e.length,"eventID is required and must be a string"),k()(Ke()(t),"eventData must be an object")}),c.a.mark((function e(t){var r,n,a,o,u,l,f,p,g=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=g.length>1&&void 0!==g[1]?g[1]:{},n=s()({},t,r),e.next=4,i.a.commonActions.getRegistry();case 4:if(a=e.sent,o=a.select,!(u=o(d.a).getCurrentSurveySession())){e.next=14;break}return e.next=10,ze.actions.fetchSendSurveyEvent(n,u);case 10:return l=e.sent,f=l.response,p=l.error,e.abrupt("return",{response:f,error:p});case 14:case"end":return e.stop()}}),e)})))},Xe={getCurrentSurvey:function(e){return e.currentSurvey},getCurrentSurveySession:function(e){return e.currentSurveySession},getCurrentSurveyCompletions:Je((function(e){return function(){var t=e(d.a).getCurrentSurvey();return(null==t?void 0:t.completion)||null}})),getCurrentSurveyQuestions:Je((function(e){return function(){var t=e(d.a).getCurrentSurvey();return(null==t?void 0:t.question)||null}}))},et=i.a.combineStores(Qe,ze,{initialState:{currentSurvey:null,currentSurveySession:null},actions:Ze,selectors:Xe}),tt=(et.initialState,et.actions,et.selectors,et);function rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rt(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var it,at=a.a.receiveError,ot=a.a.clearError,ct=function(e,t){return nt(nt({},e),{},{tracking:t})},ut=Object(p.a)({baseName:"getTracking",controlCallback:function(){return f.a.get("core","user","tracking")},reducerCallback:ct}),st=Object(p.a)({baseName:"setTracking",controlCallback:function(e){return f.a.set("core","user","tracking",{enabled:!!e})},reducerCallback:ct,argsToParams:function(e){return e}}),lt={tracking:void 0,isSavingTrackingEnabled:!1},ft={setTrackingEnabled:c.a.mark((function e(t){var r,n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ot("setTrackingEnabled",[t]);case 2:return e.next=4,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!0}};case 4:return e.next=6,st.actions.fetchSetTracking(t);case 6:if(r=e.sent,n=r.response,!(i=r.error)){e.next=12;break}return e.next=12,at(i,"setTrackingEnabled",[t]);case 12:return e.next=14,{type:"SET_TRACKING_ENABLED_SAVING_ACTION",payload:{isSaving:!1}};case 14:return e.abrupt("return",{response:n,error:i});case 15:case"end":return e.stop()}}),e)}))},dt={isTrackingEnabled:c.a.mark((function e(){var t;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:if(t=e.sent,void 0!==(0,t.select)(d.e).isTrackingEnabled()){e.next=7;break}return e.next=7,ut.actions.fetchGetTracking();case 7:case"end":return e.stop()}}),e)}))},pt=i.a.combineStores(ut,st,{initialState:lt,actions:ft,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_TRACKING_ENABLED_SAVING_ACTION":return nt(nt({},e),{},{isSavingTrackingEnabled:n.isSaving});default:return e}},resolvers:dt,selectors:{isSavingTrackingEnabled:function(e){return!!(null==e?void 0:e.isSavingTrackingEnabled)},isTrackingEnabled:function(e){var t=e.tracking;return null==t?void 0:t.enabled}}}),gt=(pt.initialState,pt.actions,pt.controls,pt.reducer,pt.resolvers,pt.selectors,pt),vt=r(634);function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(r),!0).forEach((function(t){s()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var mt=i.a.commonActions,ht=i.a.createRegistryControl,Ot=i.a.createRegistrySelector,St=a.a.receiveError,Et=a.a.clearError;function wt(e,t){return yt(yt({},e),{},{inputSettings:t})}var _t,jt=Object(p.a)({baseName:"getUserInputSettings",controlCallback:(_t=ae()(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",f.a.get("core","user","user-input-settings",void 0,{useCache:!1}));case 1:case"end":return e.stop()}}),e)}))),function(){return _t.apply(this,arguments)}),reducerCallback:wt}),kt=Object(p.a)({baseName:"saveUserInputSettings",controlCallback:function(e){return f.a.set("core","user","user-input-settings",{settings:e})},reducerCallback:wt,argsToParams:function(e){return e},validateParams:function(e){k()(Ke()(e),"valid settings are required.")}}),It={inputSettings:void 0,isSavingInputSettings:!1},Dt={setUserInputSettingsFromCache:c.a.mark((function e(){var t,r,n,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{type:"GET_CACHED_USER_INPUT_SETTINGS",payload:{}};case 2:if(!(t=e.sent).cacheHit){e.next=12;break}r=0,n=Object.keys(t.value);case 5:if(!(r<n.length)){e.next=12;break}return i=n[r],e.next=9,Dt.setUserInputSetting(i,t.value[i].values);case 9:r++,e.next=5;break;case 12:return e.abrupt("return",t.cacheHit?t.value:{});case 13:case"end":return e.stop()}}),e)})),setUserInputSetting:c.a.mark((function e(t,r){var n,a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:if(n=e.sent,a=r.map((function(e){return e.trim()})),"completed"===n.select(d.e).getUserInputState()){e.next=7;break}return e.next=7,{type:"SET_CACHED_USER_INPUT_SETTING",payload:{settingID:t,values:a}};case 7:return e.abrupt("return",{type:"SET_USER_INPUT_SETTING",payload:{settingID:t,values:a}});case 8:case"end":return e.stop()}}),e)})),saveUserInputSettings:c.a.mark((function e(){var t,r,n,a,o,u,l,f;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.a.commonActions.getRegistry();case 2:return t=e.sent,e.next=5,Et("saveUserInputSettings",[]);case 5:return r=function(e){return e.trim()},n=function(e){return e.length>0},a=t.select(d.e).getUserInputSettings(),o=Object.keys(a).reduce((function(e,t){var i;return yt(yt({},e),{},s()({},t,((null===(i=a[t])||void 0===i?void 0:i.values)||[]).map(r).filter(n)))}),{}),e.next=11,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!0}};case 11:return e.next=13,kt.actions.fetchSaveUserInputSettings(o);case 13:if(u=e.sent,l=u.response,!(f=u.error)){e.next=19;break}return e.next=19,St(f,"saveUserInputSettings",[]);case 19:return e.next=21,{type:"DELETE_CACHED_USER_INPUT_SETTINGS",payload:{}};case 21:return e.next=23,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!1}};case 23:return e.abrupt("return",{response:l,error:f});case 24:case"end":return e.stop()}}),e)}))},Tt=(it={},s()(it,"DELETE_CACHED_USER_INPUT_SETTINGS",(function(){return Object(ye.a)("userInputSettings")})),s()(it,"GET_CACHED_USER_INPUT_SETTINGS",(function(){return Object(ye.b)("userInputSettings")})),s()(it,"SET_CACHED_USER_INPUT_SETTING",ht((function(e){return function(){var t=ae()(c.a.mark((function t(r){var n,i,a,o;return c.a.wrap((funct