(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[13],{1:function(e,t){e.exports=googlesitekit.i18n},100:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(17),s=r.n(c),u=r(60),l=r(38);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;t1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:a;return t instanceof Set&&t.has(e)}}).call(this,r(26))},39:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(16),i=r.n(n),a=r(10),o=r.n(a),c=r(43),s=r(51),u=function(e){o()(Object(s.a)(e),c.e);var t=e.split("-"),r=i()(t,3),n=r[0],a=r[1],u=r[2];return new Date(n,a-1,u)}},391:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return b}));var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(10),s=r.n(c),u=r(36),l=r.n(u),f=r(4),d=r.n(f),p=r(46);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;t3&&void 0!==arguments[3]?arguments[3]:{},c=a.client,u=void 0===c||c,f=a.server,g=void 0===f||f,b=a.storeName,m=void 0===b?void 0:b;s()(t,"type is required."),s()(r,"identifier is required."),s()(n,"datapoint is required.");var y=m||"".concat(t,"/").concat(r),h={serverNotifications:g?void 0:{},clientNotifications:u?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 s()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return s()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},w={},j=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 s=v({},t.clientNotifications);return delete s[c],v(v({},t),{},{clientNotifications:s});default:return t}},E={getNotifications:i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d.a.commonActions.getRegistry();case 2:if(t=e.sent,t.select(y).getNotifications()){e.next=7;break}return e.next=7,O.actions.fetchGetNotifications();case 7:case"end":return e.stop()}}),e)}))};g||delete E.getNotifications;var k={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(v(v({},t||{}),r||{}))}},_=d.a.combineStores(O,{initialState:h,actions:S,controls:w,reducer:j,resolvers:E,selectors:k});return v(v({},_),{},{STORE_NAME:y})}}).call(this,r(26))},4:function(e,t){e.exports=googlesitekit.data},40:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return f})),r.d(t,"d",(function(){return y})),r.d(t,"f",(function(){return h})),r.d(t,"c",(function(){return O})),r.d(t,"e",(function(){return S})),r.d(t,"b",(function(){return w}));var n=r(5),i=r.n(n),a=r(17),o=r.n(a),c=(r(27),r(8));function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){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=r.call(e)},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);r2&&void 0!==v[2]?v[2]:{},o=a.ttl,s=void 0===o?c.b:o,u=a.timestamp,l=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,p=void 0!==f&&f,t.next=3,b();case 3:if(!(g=t.sent)){t.next=14;break}return t.prev=5,g.setItem("".concat(d).concat(r),JSON.stringify({timestamp:l,ttl:s,value:n,isError:p})),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)}}(),O=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:return t.next=2,b();case 2:if(!(n=t.sent)){t.next=14;break}return t.prev=4,a=r.startsWith(f)?r:"".concat(d).concat(r),n.removeItem(a),t.abrupt("return",!0);case 10:return t.prev=10,t.t0=t.catch(4),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,[[4,10]])})));return function(e){return t.apply(this,arguments)}}(),S=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,b();case 2:if(!(r=t.sent)){t.next=14;break}for(t.prev=4,n=[],a=0;a1?r-1:0),i=1;i0&&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))}},56:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return a})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return s}));var n=r(92);function i(e){try{return new URL(e).pathname}catch(e){}return null}function a(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function o(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e){return/^#\w[A-Za-z0-9-_]*$/.test(e)}function s(e,t){if(!Object(n.a)(e))return e;if(e.length<=t)return e;var r=new URL(e),i=e.replace(r.origin,"");if(i.length2&&void 0!==arguments[2]?arguments[2]:{},n=r.clearMatchingLegacyError,i=void 0!==n&&n;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,clearMatchingLegacyError:i}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function m(e){u()(e,"storeName must be defined.");var t={errors:{},errorArgs:{},error:void 0};var r={getErrorForSelector:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];u()(n,"selectorName is required.");var a=r.getError(t,n,i);if(a)return g(g({},a),{},{selectorData:{storeName:e,name:n,args:i}})},getErrorForAction:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return u()(t,"actionName is required."),r.getError(e,t,n)},getError:function(e,t,r){var n=e.error,i=e.errors;return t||r?(u()(t,"baseName is required."),i[v(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)},getMetaDataForError:function(e,t){var r=Object.keys(e.errors).find((function(r){return e.errors[r]===t}));return r?{baseName:r.substring(0,r.indexOf("::")),args:e.errorArgs[r]}:null},getSelectorDataForError:Object(c.b)((function(t){return function(r,n){var i=t(e).getMetaDataForError(n);if(i){var a=i.baseName,o=i.args;if(!!t(e)[a])return{storeName:e,name:a,args:o}}return null}})),hasErrors:function(e){return r.getErrors(e).length>0}};return{initialState:t,actions:b,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;if(a){var s=v(a,o);return g(g({},e),{},{errors:g(g({},e.errors||{}),{},i()({},s,c)),errorArgs:g(g({},e.errorArgs||{}),{},i()({},s,o))})}return g(g({},e),{},{error:c});case"CLEAR_ERROR":var u=n.baseName,l=n.args,f=g({},e);if(u){var d=v(u,l);f.errors=g({},e.errors||{}),f.errorArgs=g({},e.errorArgs||{}),n.clearMatchingLegacyError&&f.error===f.errors[d]&&delete f.error,delete f.errors[d],delete f.errorArgs[d]}else f.error=void 0;return f;case"CLEAR_ERRORS":var p=n.baseName,b=g({},e);if(p)for(var m in b.errors=g({},e.errors||{}),b.errorArgs=g({},e.errorArgs||{}),b.errors)(m===p||m.startsWith("".concat(p,"::")))&&(delete b.errors[m],delete b.errorArgs[m]);else b.errors={},b.errorArgs={},b.error=void 0;return b;default:return e}},resolvers:{},selectors:r}}},60:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(34);function i(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},64:function(e,t,r){"use strict";r.d(t,"d",(function(){return n.e})),r.d(t,"c",(function(){return n.d})),r.d(t,"b",(function(){return n.b})),r.d(t,"a",(function(){return n.a})),r.d(t,"e",(function(){return n.f})),r.d(t,"g",(function(){return c})),r.d(t,"h",(function(){return u})),r.d(t,"i",(function(){return l})),r.d(t,"j",(function(){return f.a})),r.d(t,"f",(function(){return p})),r.d(t,"k",(function(){return s.a}));var n=r(43),i=r(10),a=r.n(i),o=r(44),c=function(e){a()(Object(o.a)(e),n.c);var t="".concat(e.getMonth()+1),r="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,r.length<2?"0".concat(r):r].join("-")},s=r(39),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=Object(s.a)(e);return r.setDate(r.getDate()-t),c(r)},l=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]},f=r(51);var d=r(1);function p(){var e=function(e){return Object(d.sprintf)( /* translators: %s: number of days */ Object(d._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}}}},7:function(e,t,r){"use strict";r.d(t,"i",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"k",(function(){return a})),r.d(t,"j",(function(){return o})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return s})),r.d(t,"n",(function(){return u})),r.d(t,"e",(function(){return l})),r.d(t,"d",(function(){return f})),r.d(t,"v",(function(){return d})),r.d(t,"u",(function(){return p})),r.d(t,"w",(function(){return g})),r.d(t,"s",(function(){return v})),r.d(t,"t",(function(){return b})),r.d(t,"r",(function(){return m})),r.d(t,"o",(function(){return y})),r.d(t,"p",(function(){return h})),r.d(t,"q",(function(){return O})),r.d(t,"m",(function(){return S})),r.d(t,"l",(function(){return w})),r.d(t,"b",(function(){return j})),r.d(t,"c",(function(){return E})),r.d(t,"h",(function(){return k}));var n="modules/analytics",i="account_create",a="property_create",o="profile_create",c="analyticsAccountCreate",s="analyticsSetup",u="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",m="ua",y="ga4",h="ga4-legacy",O="ga4-transitional",S="ua",w="ga4",j="google-analytics-4",E="universal-analytics",k="switch-ga4-dashboard-view"},70:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),a=r(12),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(3))},705:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return S}));var n=r(4),i=r.n(n),a=r(58),o=r(706),c=r(9),s=r(707),u=r(708),l=r(709),f=r(915),d=r(714),p=r(715),g=r(716),v=r(717),b=r(719),m=r(720),y=r(721),h=r(722),O=i.a.combineStores(i.a.commonStore,Object(a.b)(c.a),o.a,s.a,u.a,l.a,f.a,d.a,p.a,v.a,g.a,b.a,m.a,y.a,h.a),S=(O.initialState,O.actions,O.controls,O.reducer,O.resolvers,O.selectors,function(t){var r;t.registerStore(c.a,O),(null===(r=e._googlesitekitBaseData)||void 0===r?void 0:r.referenceDate)&&t.dispatch(c.a).setReferenceDate(e._googlesitekitBaseData.referenceDate)})}).call(this,r(26))},706:function(e,t,r){"use strict";var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(36),s=r.n(c),u=r(4),l=r.n(u),f=r(9),d=r(46);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;t1&&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,s=void 0===o?e.referenceDate:o,u=d.getDateRange(e),l=Object(c.h)(s,a),f=u.match("-(.*)-"),p=Number(f?f[1]:28),g=Object(c.h)(l,p-1),v={startDate:g,endDate:l};if(n){var b=Object(c.h)(g,1),m=Object(c.h)(b,p-1);v.compareStartDate=m,v.compareEndDate=b}return v},getDateRangeNumberOfDays:function(e){var t=d.getDateRange(e).match(/-(\d+)-/);return parseInt(t?t[1]:28,10)},getReferenceDate:function(e){return e.referenceDate}};t.a={initialState:l,actions:f,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_DATE_RANGE":return u(u({},e),{},{dateRange:n.slug});case"SET_REFERENCE_DATE":return u(u({},e),{},{referenceDate:n.dateString});default:return e}},resolvers:{},selectors:d}},708:function(e,t,r){"use strict";var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(36),s=r.n(c),u=r(4),l=r.n(u),f=r(9),d=r(46);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;t1&&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;s()(t,"slug is required."),s()(Number.isInteger(r),"expiresInSeconds must be an integer.")}}),j={dismissedItems:void 0},E={dismissItem:Object(v.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.expiresInSeconds,n=void 0===r?0:r;s()(e,"A tour slug is required to dismiss a tour."),s()(Number.isInteger(n),"expiresInSeconds must be an integer.")}),i.a.mark((function e(t){var r,n,a,o=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},n=r.expiresInSeconds,a=void 0===n?0:n,e.next=4,w.actions.fetchDismissItem(t,a);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))},k={getDismissedItems:i.a.mark((function e(){var t,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:if(t=e.sent,r=t.select,void 0!==r(p.a).getDismissedItems()){e.next=8;break}return e.next=8,S.actions.fetchGetDismissedItems();case 8:case"end":return e.stop()}}),e)}))},_={getDismissedItems:function(e){return e.dismissedItems},isItemDismissed:y((function(e){return function(t,r){var n;return null===(n=e(p.a).getDismissedItems())||void 0===n?void 0:n.includes(r)}})),isDismissingItem:y((function(e){return function(t,r){return e(p.a).isFetchingDismissItem(r)}}))},x=d.a.combineStores({initialState:j,actions:E,resolvers:k,selectors:_},w,S),I=x.actions,T=x.controls,D=x.initialState,R=x.reducer,C=x.resolvers,A=x.selectors;t.a={actions:I,controls:T,initialState:D,reducer:R,resolvers:C,selectors:A}},711:function(e,t,r){"use strict";(function(e){var n=r(29),i=r(1),a=r(22),o={slug:"unifiedDashboard",contexts:[a.l,a.m],version:"1.68.0",gaEventCategory:function(e){return"".concat(e,"_unified-dashboard")},steps:[{target:".googlesitekit-navigation",title:Object(i.__)("New! Navigate your dashboard easily","google-site-kit"),content:Object(i.__)("Jump straight to the relevant section in your dashboard with just one click - no more scrolling.","google-site-kit"),placement:"bottom"},{target:".googlesitekit-entity-search",title:Object(i.__)("Check stats for a specific post","google-site-kit"),content:Object(i.__)("Search by URL or by post title and your dashboard will be filtered to show stats just for that URL.","google-site-kit"),placement:"bottom"},{target:".googlesitekit-widget--searchFunnel",title:Object(i.__)("See trends over time for your site’s Search metrics","google-site-kit"),content:Object(i.__)("The updated Search Funnel shows you a more comprehensive view of how traffic from Search is changing.","google-site-kit"),placement:"top-end"}],callback:function(t){var r=t.type,i=t.index;n.b.TOOLTIP===r&&2===i&&setTimeout((function(){var t=e.document.querySelector(".googlesitekit-tour-tooltip"),r=e.document.querySelector("#wpadminbar");t&&r&&e.scrollTo({top:e.scrollY+t.getBoundingClientRect().top-r.offsetHeight,behavior:"smooth"})}),50)}};t.a=o}).call(this,r(26))},714:function(e,t,r){"use strict";var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(10),s=r.n(c),u=r(14),l=r(36),f=r.n(l),d=r(4),p=r.n(d),g=r(9),v=r(15),b=r(46),m=r(58);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 h(e){for(var t=1;t2?i-2:0),o=2;o0&&(r=m.a.apply(void 0,[r].concat(a))),n)return!!n[r]}})),canViewSharedModule:w((function(e){return function(t,r){var n=e(b.a).getModule(r);if(void 0!==n)return!(null===n||!n.shareable)&&e(v.a).hasCapability(v.s,n.slug)}}))},I=g.a.combineStores(j,{initialState:E,actions:k,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"CLEAR_PERMISSION_SCOPE_ERROR":return S(S({},e),{},{permissionError:null});case"SET_PERMISSION_SCOPE_ERROR":var i=n.permissionError;return S(S({},e),{},{permissionError:i});case"RECEIVE_CAPABILITIES":var a=n.capabilities;return S(S({},e),{},{capabilities:a});default:return e}},resolvers:_,selectors:x});I.initialState,I.actions,I.controls,I.reducer,I.resolvers,I.selectors;t.a=I}).call(this,r(26))},718:function(e,t,r){"use strict";function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.triggerID;s()("string"==typeof t&&t.length,"triggerID is required and must be a string")}}),S=Object(v.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}}}),w=Object(v.a)({baseName:"getSurveyTimeouts",controlCallback:function(){return f.a.get("core","user","survey-timeouts",{},{useCache:!1})},reducerCallback:function(e,t){return y(y({},e),{},{surveyTimeouts:Array.isArray(t)?t:[]})}}),j=Object(v.a)({baseName:"setSurveyTimeout",controlCallback:function(e){var t=e.slug,r=e.timeout;return f.a.set("core","user","survey-timeout",{slug:t,timeout:r})},reducerCallback:function(e,t){return y(y({},e),{},{surveyTimeouts:Array.isArray(t)?t:[]})},argsToParams:function(e,t){return{slug:e,timeout:t}},validateParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug,r=e.timeout;s()(t,"slug is required."),s()(Number.isInteger(r),"timeout must be an integer.")}}),E=Object(v.a)({baseName:"getSurvey",controlCallback:function(){return f.a.get("core","user","survey",{})},reducerCallback:function(e,t){var r=t.survey,n=r||{},i=n.survey_payload,a=void 0===i?null:i,o=n.session,c=void 0===o?null:o;return y(y({},e),{},{currentSurvey:a,currentSurveySession:c})}}),k={currentSurvey:void 0,currentSurveySession:void 0,surveyTimeouts:void 0},_={setSurveyTimeout:Object(b.f)((function(e,t){s()("string"==typeof e&&e.length,"triggerID is required and must be a string"),s()("number"==typeof t,"timeout must be a number")}),i.a.mark((function e(t,r){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j.actions.fetchSetSurveyTimeout(t,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),triggerSurvey:Object(b.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.ttl,n=void 0===r?0:r;s()("string"==typeof e&&e.length,"triggerID is required and must be a string"),s()(Object(u.isPlainObject)(t),"options must be an object"),s()("number"==typeof n,"options.ttl must be a number")}),i.a.mark((function e(t){var r,n,a,o,c,s,u,l,f,d,v,b,m=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m.length>1&&void 0!==m[1]?m[1]:{},n=r.ttl,a=void 0===n?0:n,e.next=4,p.a.commonActions.getRegistry();case 4:return o=e.sent,c=o.select,s=o.dispatch,u=o.__experimentalResolveSelect,e.next=10,p.a.commonActions.await(u(g.a).getAuthentication());case 10:if(c(g.a).isAuthenticated()){e.next=12;break}return e.abrupt("return",{});case 12:return e.next=14,p.a.commonActions.await(u(g.a).getSurveyTimeouts());case 14:if(l=c(g.a).isSurveyTimedOut(t),f=c(g.a).isTimingOutSurvey(t,a),l||f){e.next=29;break}return e.next=19,O.actions.fetchTriggerSurvey(t);case 19:if(d=e.sent,v=d.response,!(b=d.error)){e.next=24;break}return e.abrupt("return",{response:v,error:b});case 24:if(!(a>0)){e.next=29;break}return e.next=27,new Promise((function(e){setTimeout(e,3e4)}));case 27:return e.next=29,p.a.commonActions.await(s(g.a).setSurveyTimeout(t,a));case 29:return e.abrupt("return",{response:{},error:!1});case 30:case"end":return e.stop()}}),e)}))),sendSurveyEvent:Object(b.f)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s()("string"==typeof e&&e.length,"eventID is required and must be a string"),s()(Object(u.isPlainObject)(t),"eventData must be an object")}),i.a.mark((function e(t){var r,n,a,c,s,u,l,f,d=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>1&&void 0!==d[1]?d[1]:{},n=o()({},t,r),e.next=4,p.a.commonActions.getRegistry();case 4:if(a=e.sent,c=a.select,!(s=c(g.a).getCurrentSurveySession())){e.next=14;break}return e.next=10,S.actions.fetchSendSurveyEvent(n,s);case 10:return u=e.sent,l=u.response,f=u.error,e.abrupt("return",{response:l,error:f});case 14:case"end":return e.stop()}}),e)})))},x={getCurrentSurvey:i.a.mark((function e(){var t,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.a.commonActions.getRegistry();case 2:if(t=e.sent,r=t.select,void 0!==r(g.a).getCurrentSurvey()){e.next=8;break}return e.next=8,E.actions.fetchGetSurvey();case 8:case"end":return e.stop()}}),e)})),getSurveyTimeouts:i.a.mark((function e(){var t,r;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.a.commonActions.getRegistry();case 2:if(t=e.sent,r=t.select,void 0!==r(g.a).getSurveyTimeouts()){e.next=8;break}return e.next=8,w.actions.fetchGetSurveyTimeouts();case 8:case"end":return e.stop()}}),e)}))},I={getCurrentSurvey:function(e){return e.currentSurvey},getCurrentSurveySession:function(e){return e.currentSurveySession},getCurrentSurveyCompletions:h((function(e){return function(){var t=e(g.a).getCurrentSurvey();return(null==t?void 0:t.completion)||null}})),getCurrentSurveyQuestions:h((function(e){return function(){var t=e(g.a).getCurrentSurvey();return(null==t?void 0:t.question)||null}})),getSurveyTimeouts:function(e){return e.surveyTimeouts},isSurveyTimedOut:h((function(e){return function(t,r){var n=e(g.a).getSurveyTimeouts();return void 0===n?void 0:n.includes(r)}})),isTimingOutSurvey:h((function(e){return function(t,r,n){return e(g.a).isFetchingSetSurveyTimeout(r,n)}})),areSurveysOnCooldown:h((function(e){return function(){return e(g.a).isSurveyTimedOut(g.c)}}))},T=p.a.combineStores(O,S,w,j,E,{initialState:k,actions:_,resolvers:x,selectors:I});T.initialState,T.actions,T.resolvers,T.selectors;t.a=T},720:function(e,t,r){"use strict";var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(36),s=r.n(c),u=r(4),l=r.n(u),f=r(9),d=r(46),p=r(58);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;t1&&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 s=n.map((function(e){return e.replace(/^http(s)?:/,"gttp$1:")}));return Object(f.a)(o,y(y({},c),{},{additional_scopes:s}))}return Object(f.a)(o,c)}},getID:h((function(e){return function(){var t=e(g.a).getUser();return void 0!==t?t.id:t}})),getName:h((function(e){return function(){var t=e(g.a).getUser();return void 0!==t?t.name:t}})),getEmail:h((function(e){return function(){var t=e(g.a).getUser();return void 0!==t?t.email:t}})),getPicture:h((function(e){return function(){var t=e(g.a).getUser();return void 0!==t?t.picture:t}})),getFullName:h((function(e){return function(){var t=e(g.a).getUser();if(void 0!==t)return t.full_name}})),getAccountChooserURL:h((function(e){return function(t,r){l()(r,"destinationURL is required");var n=e(g.a).getEmail();if(void 0!==n)return Object(v.a)(b(),r,n)}})),getInitialSiteKitVersion:function(e){return e.initialVersion},isVerified:function(e){return e.verified},isUserInputCompleted:function(e){var t=e.isUserInputCompleted;return t}};t.a={initialState:O,actions:S,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_CONNECT_URL":var i=n.connectURL;return y(y({},e),{},{connectURL:i});case"RECEIVE_USER_INFO":var a=n.user;return y(y({},e),{},{user:a});case"RECEIVE_USER_INITIAL_SITE_KIT_VERSION":var o=n.initialVersion;return y(y({},e),{},{initialVersion:o});case"RECEIVE_USER_IS_VERIFIED":var c=n.verified;return y(y({},e),{},{verified:c});case"RECEIVE_IS_USER_INPUT_COMPLETED":var s=n.isUserInputCompleted;return y(y({},e),{},{isUserInputCompleted:s});default:return e}},resolvers:w,selectors:j}}).call(this,r(26))},722:function(e,t,r){"use strict";var n=r(5),i=r.n(n),a=r(6),o=r.n(a),c=r(10),s=r.n(c),u=r(14),l=r(36),f=r.n(l),d=r(4),p=r.n(d),g=r(9),v=r(46),b=r(58);function m(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 y(e){for(var t=1;t0},a=t.select(g.a).getUserInputSettings(),c=Object.keys(a).reduce((function(e,t){var i;return y(y({},e),{},o()({},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,k.actions.fetchSaveUserInputSettings(c);case 13:if(s=e.sent,u=s.response,!(l=s.error)){e.next=19;break}return e.next=19,S(l,"saveUserInputSettings",[]);case 19:if(l){e.next=22;break}return e.next=22,x.maybeTriggerUserInputSurvey();case 22:return e.next=24,{type:"SET_USER_INPUT_SETTINGS_SAVING_FLAG",payload:{isSaving:!1}};case 24:return e.abrupt("return",{response:u,error:l});case 25:case"end":return e.stop()}}),e)})),resetUserInputSettings:i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{type:"RESET_USER_INPUT_SETTINGS",payload:{}});case 1:case"end":return e.stop()}}),e)})),maybeTriggerUserInputSurvey:i.a.mark((function e(){var t,r,n,a,o,c,s,u,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.getRegistry();case 2:return t=e.sent,r=t.__experimentalResolveSelect,n=t.dispatch,e.next=7,h.await(r(g.a).getUserInputSettings());case 7:if(a=e.sent,!(!(o=Object.keys(a).filter((function(e){return a[e].values.includes("other")}))).length>0)){e.next=11;break}return e.abrupt("return");case 11:return c="userInput_answered_other__".concat(o.join("_")),e.next=14,h.await(n(g.a).triggerSurvey(c));case 14:return s=e.sent,u=s.response,l=s.error,e.abrupt("return",{response:u,error:l});case 18:case"end":return e.stop()}}),e)}))},I={getUserInputSettings:i.a.mark((function e(){var t;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.getRegistry();case 2:if(t=e.sent,(0,t.select)(g.a).getUserInputSettings()){e.next=7;break}return e.next=7,E.actions.fetchGetUserInputSettings();case 7:case"end":return e.stop()}}),e)}))},T={isSavingUserInputSettings:function(e){return!!(null==e?void 0:e.isSavingInputSettings)},getUserInputSettings:function(e){return e.inputSettings},getUserInputSetting:O((function(e){return function(t,r){var n,i=null===(n=(e(g.a).getUserInputSettings()||{})[r])||void 0===n?void 0:n.values;return Array.isArray(i)?i:[]}})),getUserInputSettingScope:O((function(e){return function(t,r){var n;return null===(n=(e(g.a).getUserInputSettings()||{})[r])||void 0===n?void 0:n.scope}})),getUserInputSettingAuthor:O((function(e){return function(t,r){var n;return null===(n=(e(g.a).getUserInputSettings()||{})[r])||void 0===n?void 0:n.author}})),haveUserInputSettingsChanged:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.inputSettings,n=e.savedInputSettings;return t?!Object(u.isEqual)(Object(u.pick)(r,t),Object(u.pick)(n,t)):!Object(u.isEqual)(r,n)},hasUserInputSettingChanged:function(e,t){return s()(t,"setting is required."),T.haveUserInputSettingsChanged(e,[t])}},D=p.a.combineStores(E,k,{initialState:_,actions:x,reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"SET_USER_INPUT_SETTING":return y(y({},e),{},{inputSettings:y(y({},e.inputSettings),{},o()({},n.settingID,y(y({},(e.inputSettings||{})[n.settingID]||{}),{},{values:n.values})))});case"SET_USER_INPUT_SETTINGS_SAVING_FLAG":return y(y({},e),{},{isSavingInputSettings:n.isSaving});case"RESET_USER_INPUT_SETTINGS":return y(y({},e),{},{inputSettings:e.savedInputSettings});default:return e}},resolvers:I,selectors:T});D.initialState,D.actions,D.controls,D.reducer,D.resolvers,D.selectors;t.a=D},73:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(33),i=r.n(n),a=r(83),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,/\/+$/,"")}},76:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return S})),r.d(t,"d",(function(){return w})),r.d(t,"e",(function(){return E})),r.d(t,"c",(function(){return k})),r.d(t,"b",(function(){return _}));var n=r(16),i=r.n(n),a=r(33),o=r.n(a),c=r(6),s=r.n(c),u=r(24),l=r.n(u),f=r(14),d=r(77),p=r.n(d),g=r(1);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;t1&&void 0!==arguments[1]?arguments[1]:{},r=y(e,t),n=r.formatUnit,i=r.formatDecimal;try{return n()}catch(e){return i()}},y=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?E(i,b(b({},o),{},{unit:"second"})):Object(g.sprintf)( /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?E(i,b(b({},o),{},{unit:"second"})):"",n?E(n,b(b({},o),{},{unit:"minute"})):"",r?E(r,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(g.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit. Object(g.__)("%ds","google-site-kit"),i);if(0===e)return t;var a=Object(g.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit. Object(g.__)("%dm","google-site-kit"),n),o=Object(g.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit. Object(g.__)("%dh","google-site-kit"),r);return Object(g.sprintf)( /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",n?a:"",r?o:"").trim()}}},h=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},O=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in millions. Object(g.__)("%sM","google-site-kit"),E(h(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands. Object(g.__)("%sK","google-site-kit"),E(h(e))):1e3<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands. Object(g.__)("%sK","google-site-kit"),E(h(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})};function S(e){var t={};return"%"===e?t={style:"percent",maximumFractionDigits:2}:"s"===e?t={style:"duration",unitDisplay:"narrow"}:e&&"string"==typeof e?t={style:"currency",currency:e}:Object(f.isPlainObject)(e)&&(t=b({},e)),t}function w(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=S(t),n=r.style,i=void 0===n?"metric":n;return"metric"===i?O(e):"duration"===i?m(e,r):E(e,r)}var j=p()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?_():r,a=l()(t,["locale"]);try{return new Intl.NumberFormat(n,a).format(e)}catch(t){j("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"},s=["signDisplay","compactDisplay"],u={},f=0,d=Object.entries(a);f1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?_():r,i=t.style,a=void 0===i?"long":i,o=t.type,c=void 0===o?"conjunction":o;if(Intl.ListFormat){var s=new Intl.ListFormat(n,{style:a,type:c});return s.format(e)} /* translators: used between list items, there is a space after the comma. */var u=Object(g.__)(", ","google-site-kit");return e.join(u)},_=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(26))},8:function(e,t,r){"use strict";r.d(t,"B",(function(){return i.b})),r.d(t,"y",(function(){return a.a})),r.d(t,"C",(function(){return a.b})),r.d(t,"A",(function(){return l})),r.d(t,"n",(function(){return b})),r.d(t,"h",(function(){return m.a})),r.d(t,"w",(function(){return m.d})),r.d(t,"x",(function(){return m.e})),r.d(t,"t",(function(){return m.c})),r.d(t,"m",(function(){return m.b})),r.d(t,"u",(function(){return S})),r.d(t,"f",(function(){return w})),r.d(t,"b",(function(){return j.b})),r.d(t,"a",(function(){return j.a})),r.d(t,"c",(function(){return j.e})),r.d(t,"k",(function(){return j.g})),r.d(t,"i",(function(){return j.f})),r.d(t,"z",(function(){return j.k})),r.d(t,"j",(function(){return E.b})),r.d(t,"r",(function(){return E.c})),r.d(t,"e",(function(){return E.a})),r.d(t,"p",(function(){return k.b})),r.d(t,"l",(function(){return k.a})),r.d(t,"v",(function(){return k.d})),r.d(t,"s",(function(){return _})),r.d(t,"q",(function(){return x})),r.d(t,"o",(function(){return I})),r.d(t,"d",(function(){return T})),r.d(t,"D",(function(){return D})),r.d(t,"g",(function(){return R}));var n=r(14),i=r(35),a=r(73),o=r(33),c=r.n(o),s=r(90),u=r.n(s),l=function(e){return u()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))};var f=r(16),d=r.n(f);function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return g(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 g(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=r.call(e)},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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):v(e);var n,i={},a=p(r.searchParams.entries());try{for(a.s();!(n=a.n()).done;){var o=d()(n.value,2),c=o[0],s=o[1];i[c]=s}}catch(e){a.e(e)}finally{a.f()}return i},m=(r(96),r(76));function y(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function h(e){return"

".concat(e.replace(/\n{2,}/g,"

"),"

")}function O(e){return e.replace(/\n/gi,"
")}function S(e){for(var t=e,r=0,n=[y,h,O];r0}function x(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var I=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}};function T(e,t){if("0"===e||0===e||Number.isNaN(e))return null;var r=(t-e)/e;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var D=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},R=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(n.unescape)(t)}},80:function(e,t,r){"use strict";r.d(t,"a",(function(){return _})),r.d(t,"b",(function(){return x})),r.d(t,"c",(function(){return I})),r.d(t,"d",(function(){return D})),r.d(t,"e",(function(){return R})),r.d(t,"g",(function(){return A})),r.d(t,"f",(function(){return P}));var n,i=r(5),a=r.n(i),o=r(27),c=r.n(o),s=r(6),u=r.n(s),l=r(10),f=r.n(l),d=r(77),p=r.n(d),g=r(14),v=r(127);function b(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;t0&&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=y,j=y,E=y,k=function(e){return e},_=function(){for(var e=arguments.length,t=new Array(e),r=0;r=1?r[i]+1:1,r[i]>1&&t.push(i)}return t},D={actions:x,controls:I,reducer:k},R=function(e){return function(t){return C(e(t))}},C=p()((function(e){return Object(g.mapValues)(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 A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.negate,n=void 0!==r&&r,i=Object(v.b)((function(t){return function(r){var i=!n,a=!!n;try{for(var o=arguments.length,c=new Array(o>1?o-1:0),s=1;s1?n-1:0),a=1;a=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=r.call(e)},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 q(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=e.slug;v()(t,"slug is required.")}}),Y={lastDismissedAt:void 0,dismissedTourSlugs:void 0,tours:L,currentTour:void 0,shownTour:void 0},Q={dismissTour:Object(V.f)((function(e){v()(e,"A tour slug is required to dismiss a tour.")}),u.a.mark((function e(t){var r,n,i;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:if(r=e.sent,!(n=r.select)(w.a).isFetchingDismissTour(t)){e.next=7;break}return i=n(w.a).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,re.setLastDismissedAt(Date.now());case 11:return e.next=13,z.actions.fetchDismissTour(t);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}}),e)}))),receiveCurrentTour:function(e){return v()(Object(b.isPlainObject)(e)||Object(b.isNull)(e),"tour must be a plain object or null."),{payload:{tour:e},type:"RECEIVE_CURRENT_TOUR"}},receiveFeatureToursForView:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.viewContext;return v()(Array.isArray(e),"viewTours must be an array."),v()(r,"viewContext is required."),{payload:{viewTours:e,viewContext:r},type:"RECEIVE_READY_TOURS"}},receiveAllFeatureTours:function(e){return v()(Array.isArray(e),"tours must be an array."),{payload:{tours:e},type:"RECEIVE_TOURS"}},receiveLastDismissedAt:function(e){return v()(void 0!==e,"A timestamp is required."),{type:"RECEIVE_LAST_DISMISSED_AT",payload:{timestamp:e}}},setLastDismissedAt:Object(V.f)((function(e){v()(e,"A timestamp is required.")}),u.a.mark((function e(t){return u.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)}))),triggerTour:u.a.mark((function e(t){var r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:if(r=e.sent,(0,r.select)(w.a).getCurrentTour()){e.next=7;break}return e.next=7,Q.receiveCurrentTour(t);case 7:case"end":return e.stop()}}),e)})),triggerOnDemandTour:u.a.mark((function e(t){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{tour:t},type:"CHECK_ON_DEMAND_TOUR_REQUIREMENTS"};case 2:if(!e.sent){e.next=6;break}return e.next=6,Q.triggerTour(t);case 6:case"end":return e.stop()}}),e)})),triggerTourForView:u.a.mark((function e(t){var r,n,i,a,o,c,s;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:return r=e.sent,n=r.select,i=r.__experimentalResolveSelect,e.next=7,O.a.commonActions.await(i(w.a).getLastDismissedAt());case 7:if(!n(w.a).areFeatureToursOnCooldown()){e.next=9;break}return e.abrupt("return",{});case 9:a=n(w.a).getAllFeatureTours(),o=F(a),e.prev=11,o.s();case 13:if((c=o.n()).done){e.next=24;break}return s=c.value,e.next=17,{payload:{tour:s,viewContext:t},type:"CHECK_TOUR_REQUIREMENTS"};case 17:if(!e.sent){e.next=22;break}return e.next=21,Q.triggerTour(s);case 21:return e.abrupt("return",s);case 22:e.next=13;break;case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(11),o.e(e.t0);case 29:return e.prev=29,o.f(),e.finish(29);case 32:return e.next=34,Q.receiveCurrentTour(null);case 34:return e.abrupt("return",null);case 35:case"end":return e.stop()}}),e,null,[[11,26,29,32]])}))},Z=(a={},f()(a,"CHECK_TOUR_REQUIREMENTS",B((function(e){return function(){var t=c()(u.a.mark((function t(r){var n,i,a,o;return u.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:return t.next=6,e.__experimentalResolveSelect(w.a).getInitialSiteKitVersion();case 6:if(o=t.sent){t.next=11;break}return t.abrupt("return",!1);case 11:if(!p.a.compare(o,i.version,">=")){t.next=13;break}return t.abrupt("return",!1);case 13:return t.next=15,e.__experimentalResolveSelect(w.a).getDismissedFeatureTourSlugs();case 15:if(!e.select(w.a).isTourDismissed(i.slug)){t.next=17;break}return t.abrupt("return",!1);case 17:if(!i.checkRequirements){t.next=21;break}return t.next=20,i.checkRequirements(e);case 20:return t.abrupt("return",!!t.sent);case 21:return t.abrupt("return",!0);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),f()(a,"CHECK_ON_DEMAND_TOUR_REQUIREMENTS",B((function(e){return function(){var t=c()(u.a.mark((function t(r){var n,i;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.payload,i=n.tour,t.next=4,e.__experimentalResolveSelect(w.a).getDismissedFeatureTourSlugs();case 4:if(!e.select(w.a).isTourDismissed(i.slug)){t.next=6;break}return t.abrupt("return",!1);case 6:if(!i.checkRequirements){t.next=10;break}return t.next=9,i.checkRequirements(e);case 9:return t.abrupt("return",!!t.sent);case 10:return t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))),f()(a,"CACHE_LAST_DISMISSED_AT",(H=c()(u.a.mark((function e(t){var r,n;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.payload,n=r.timestamp,e.next=4,Object(M.f)("feature_tour_last_dismissed_at",n,{ttl:7200});case 4:case"end":return e.stop()}}),e)}))),function(e){return H.apply(this,arguments)})),a),X={getDismissedFeatureTourSlugs:u.a.mark((function e(){var t,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:if(t=e.sent,r=t.select,void 0!==r(w.a).getDismissedFeatureTourSlugs()){e.next=8;break}return e.next=8,J.actions.fetchGetDismissedTours();case 8:case"end":return e.stop()}}),e)})),getLastDismissedAt:u.a.mark((function e(){var t,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O.a.commonActions.await(Object(M.d)("feature_tour_last_dismissed_at"));case 2:return t=e.sent,r=t.value,e.next=6,re.receiveLastDismissedAt(r||null);case 6:case"end":return e.stop()}}),e)}))},ee={getCurrentTour:function(e){return e.currentTour},getShownTour:function(e){return e.shownTour},getDismissedFeatureTourSlugs:function(e){return e.dismissedTourSlugs},getAllFeatureTours:function(e){return e.tours},isTourDismissed:$((function(e){return function(t,r){var n=e(w.a).getDismissedFeatureTourSlugs();if(void 0!==n)return n.includes(r)}})),getLastDismissedAt:function(e){return e.lastDismissedAt},areFeatureToursOnCooldown:$((function(e){return function(){var t=e(w.a).getLastDismissedAt();if(void 0!==t){if(null===t)return!1;var r=t+72e5;return Date.now()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,s,u,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===(s=c.metrics)||void 0===s||null===(u=s[0])||void 0===u||null===(l=u.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])},c=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,r(3))},98: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(99),o=r(100);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 s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=s(s({},u),t);i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,""));var c=Object(a.a)(i,r);return{enableTracking:function(){i.trackingEnabled=!0},disableTracking:function(){i.trackingEnabled=!1},initializeSnippet:c,isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:Object(o.a)(i,r,c,n)}}}).call(this,r(26))},99:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(60),i=r(34);function a(t,r){var a,o=Object(n.a)(r);return function(){var r=e.document;if(void 0===a&&(a=!!r.querySelector("script[".concat(i.b,"]"))),!a){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),o("js",new Date),o("config",t.trackingID,{send_page_view:t.isSiteKitScreen}),a=!0}}}}).call(this,r(26))}},[[968,1,0]]]);CSS.AllowTricky TYPE: bool DEFAULT: false VERSION: 3.1.0 --DESCRIPTION-- This parameter determines whether or not to allow "tricky" CSS properties and values. Tricky CSS properties/values can drastically modify page layout or be used for deceptive practices but do not directly constitute a security risk. For example, display:none; is considered a tricky property that will only be allowed if this directive is set to true. --# vim: et sw=4 sts=4 {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}