"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[943],{43411(t,e,o){var n=o(50539),r=o.n(n),a=o(57958),i=o(32091),c=o.n(i),s=o(45939);const l="DO_NAVIGATE_TO",u="SET_NAVIGATING_TO",g={initialState:{navigatingTo:void 0},actions:{navigateTo:(0,s.$C)(t=>{let e=!1;try{e=new URL(t)}catch{}c()(!!e,"url must be a valid URI.")},function*(t){const e={url:t};return yield{type:u,payload:e},yield{type:l,payload:e}})},controls:{[l]:({payload:t})=>{globalThis.location.assign(t.url)}},reducer:(0,n.createReducer)((t,{type:e,payload:o})=>{if(e===u)t.navigatingTo=o.url}),resolvers:{},selectors:{isNavigating:t=>!!t.navigatingTo,isNavigatingTo(t,e){const{navigatingTo:o}=t;return c()("string"==typeof e||e instanceof RegExp,"url must be either a string or a regular expression."),"string"==typeof e?o===e:e.test(o)},getNavigateURL:t=>t.navigatingTo||null}},p=(0,n.combineStores)(n.commonStore,g);p.initialState,p.actions,p.controls,p.reducer,p.resolvers,p.selectors;r().registerStore(a.M,p)},45939(t,e,o){o.d(e,{$C:()=>I,RF:()=>G,WI:()=>k,_5:()=>b,jU:()=>h,o3:()=>S,x0:()=>R});var n=o(32091),r=o.n(n),a=o(17243),i=o(50532),c=o.n(i),s=o(78913);const l="GET_REGISTRY",u="AWAIT";function g(...t){const e=t.reduce((t,e)=>({...t,...e}),{}),o=_(t.reduce((t,e)=>[...t,...Object.keys(e)],[]));return r()(0===o.length,`collect() cannot accept collections with duplicate keys. Your call to collect() contains the following duplicated functions: ${o.join(", ")}. Check your data stores for duplicates.`),e}const p=g,d=g;function f(...t){const e=[...t];let o;return"function"!=typeof e[0]&&(o=e.shift()),(t=o,n={})=>e.reduce((t,e)=>e(t,n),t)}const y=g,v=g,T=g;function m(t){return t}function S(...t){const e=T(...t.map(t=>t.initialState||{}));return{initialState:e,controls:d(...t.map(t=>t.controls||{})),actions:p(...t.map(t=>t.actions||{})),reducer:f(e,...t.map(t=>t.reducer||m)),resolvers:y(...t.map(t=>t.resolvers||{})),selectors:v(...t.map(t=>t.selectors||{}))}}const h={getRegistry:()=>({payload:{},type:l}),*await(t){return{payload:{value:t},type:u}}},b={[l]:(0,s.b)(t=>()=>t),[u]:({payload:t})=>t.value};function _(t){const e=[],o={};for(let n=0;n<t.length;n++){const r=t[n];o[r]=o[r]>=1?o[r]+1:1,o[r]>1&&e.push(r)}return e}const R={actions:h,controls:b,reducer:m};function k(t){return e=>N(t(e))}const N=c()(t=>(0,a.mapValues)(t,(t,e)=>(...o)=>{const n=t(...o);return r()(void 0!==n,`${e}(...) is not resolved`),n}));function G(t,{negate:e=!1}={}){return{safeSelector:(0,s.N)(o=>(n,...r)=>{const a=!e,i=!!e;try{return t(o,n,...r),a}catch{return i}}),dangerousSelector:(0,s.N)(e=>(o,...n)=>{t(e,o,...n)})}}function I(t,e){return r()("function"==typeof t,"a validator function is required."),r()("function"==typeof e,"an action creator function is required."),r()("Generator"!==t[Symbol.toStringTag]&&"GeneratorFunction"!==t[Symbol.toStringTag],"an action’s validator function must not be a generator."),(...o)=>(t(...o),e(...o))}},57958(t,e,o){o.d(e,{M:()=>n});const n="core/location"},50539(t){t.exports=googlesitekit.data}},t=>{t.O(0,[660],()=>{return e=43411,t(t.s=e);var e});t.O()}]);