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AO,GAAG,CAACgH,EAAEoJ,EAAEghB,IAAIhf,GAAE,KAAK,IAAKhC,GAAa,IAAVmsB,KAAK1L,GAAQ,MAAM,KAAK,IAAIrjB,EAAExN,QAAQ,OAAO,IAAI8wB,EAAEtjB,EAAExN,QAAQ0xB,GAAGZ,IAAIA,EAAEsnC,oBAAoB5qD,EAAExN,QAAQ0xB,GAAE,CAAC,GAAG,CAACthB,IAK10D,gBAAgB,WAAW,KAAK,gBAAgB6iB,EAAE,IAAIrC,EAAE,UAAU/Q,EAAE,WAAWuR,EAAEvxB,IAAI2N,EAAE6L,MAAM,CAAC2nD,QAAQ,eAAeC,cAAc,MAAMC,eAAe,UAAUC,SAAS/wD,EAAE,UAAU,WAAWwwD,0BAAyB,GAAI55D,GAAGs4B,EAAEj4B,EAAEy5D,YAAY7hE,EAAE,QAAQkzB,MAAMtS,MAAMuR,MAAK","sources":["webpack://strategy_in_transit-gatsby/./node_modules/gatsby-page-utils/dist/apply-trailing-slash-option.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-react-router-scroll/index.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-react-router-scroll/scroll-handler.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-react-router-scroll/session-storage.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-react-router-scroll/use-scroll-restoration.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby/dist/internal-plugins/partytown/gatsby-browser.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby/dist/internal-plugins/partytown/utils/get-forwards.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby/dist/internal-plugins/partytown/utils/inject-partytown-snippet.js","webpack://strategy_in_transit-gatsby/./.cache/_this_is_virtual_fs_path_/$virtual/async-requires.js","webpack://strategy_in_transit-gatsby/./.cache/api-runner-browser-plugins.js","webpack://strategy_in_transit-gatsby/./.cache/api-runner-browser.js","webpack://strategy_in_transit-gatsby/./.cache/create-content-digest-browser-shim.js","webpack://strategy_in_transit-gatsby/./.cache/emitter.js","webpack://strategy_in_transit-gatsby/./node_modules/mitt/dist/mitt.es.js","webpack://strategy_in_transit-gatsby/./.cache/normalize-page-path.js","webpack://strategy_in_transit-gatsby/./.cache/find-path.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/isNativeFunction.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/construct.js","webpack://strategy_in_transit-gatsby/./.cache/slice/server-slice-renderer.js","webpack://strategy_in_transit-gatsby/./.cache/slice/server-slice.js","webpack://strategy_in_transit-gatsby/./.cache/slice/inline-slice.js","webpack://strategy_in_transit-gatsby/./.cache/slice.js","webpack://strategy_in_transit-gatsby/./.cache/gatsby-browser-entry.js","webpack://strategy_in_transit-gatsby/./.cache/prefetch.js","webpack://strategy_in_transit-gatsby/./.cache/loader.js","webpack://strategy_in_transit-gatsby/./.cache/head/components/fire-callback-in-effect.js","webpack://strategy_in_transit-gatsby/./.cache/head/constants.js","webpack://strategy_in_transit-gatsby/./.cache/head/utils.js","webpack://strategy_in_transit-gatsby/./.cache/head/head-export-handler-for-browser.js","webpack://strategy_in_transit-gatsby/./.cache/page-renderer.js","webpack://strategy_in_transit-gatsby/./.cache/route-announcer-props.js","webpack://strategy_in_transit-gatsby/./.cache/navigation.js","webpack://strategy_in_transit-gatsby/./node_modules/shallow-compare/es/index.js","webpack://strategy_in_transit-gatsby/./.cache/ensure-resources.js","webpack://strategy_in_transit-gatsby/./.cache/production-app.js","webpack://strategy_in_transit-gatsby/./.cache/public-page-renderer-prod.js","webpack://strategy_in_transit-gatsby/./.cache/public-page-renderer.js","webpack://strategy_in_transit-gatsby/./.cache/react-dom-utils.js","webpack://strategy_in_transit-gatsby/./.cache/redirect-utils.js","webpack://strategy_in_transit-gatsby/./.cache/register-service-worker.js","webpack://strategy_in_transit-gatsby/./.cache/slice/context.js","webpack://strategy_in_transit-gatsby/./.cache/static-query.js","webpack://strategy_in_transit-gatsby/./.cache/context-utils.js","webpack://strategy_in_transit-gatsby/./.cache/strip-prefix.js","webpack://strategy_in_transit-gatsby/./src/slices/searchSlice.ts","webpack://strategy_in_transit-gatsby/./store.ts","webpack://strategy_in_transit-gatsby/./src/components/providers/gatsbyadaptor.ts","webpack://strategy_in_transit-gatsby/./gatsby-browser.js","webpack://strategy_in_transit-gatsby/./src/components/providers/Redux.tsx","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-plugin-manifest/gatsby-browser.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-plugin-manifest/get-manifest-pathname.js","webpack://strategy_in_transit-gatsby/./src/components/ui/consent/ConsentHelpers.tsx","webpack://strategy_in_transit-gatsby/./src/slices/consentSlice.ts","webpack://strategy_in_transit-gatsby/./src/slices/contactSlice.ts","webpack://strategy_in_transit-gatsby/./src/slices/uiSlice.ts","webpack://strategy_in_transit-gatsby/./src/utils/Helpers.tsx","webpack://strategy_in_transit-gatsby/./node_modules/invariant/browser.js","webpack://strategy_in_transit-gatsby/./node_modules/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js","webpack://strategy_in_transit-gatsby/./node_modules/react-server-dom-webpack/index.js","webpack://strategy_in_transit-gatsby/./node_modules/serialize-query-params/dist/serialize.js","webpack://strategy_in_transit-gatsby/./node_modules/serialize-query-params/dist/params.js","webpack://strategy_in_transit-gatsby/./node_modules/serialize-query-params/dist/updateLocation.js","webpack://strategy_in_transit-gatsby/./node_modules/serialize-query-params/dist/encodeQueryParams.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/decodedParamCache.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/inheritedParams.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/shallowEqual.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/latestValues.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/memoSearchStringToObject.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/urlName.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/options.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/QueryParamProvider.js","webpack://strategy_in_transit-gatsby/./node_modules/serialize-query-params/dist/searchStringToObject.js","webpack://strategy_in_transit-gatsby/./node_modules/serialize-query-params/dist/objectToSearchString.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/updateSearchString.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/removeDefaults.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/useQueryParams.js","webpack://strategy_in_transit-gatsby/./node_modules/use-query-params/dist/useQueryParam.js","webpack://strategy_in_transit-gatsby/./node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.min.js","webpack://strategy_in_transit-gatsby/./node_modules/use-sync-external-store/with-selector.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/assertThisInitialized.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/inheritsLoose.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/setPrototypeOf.js","webpack://strategy_in_transit-gatsby/./node_modules/@builder.io/partytown/integration/index.cjs","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://strategy_in_transit-gatsby/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://strategy_in_transit-gatsby/./node_modules/@gatsbyjs/reach-router/dist/index.modern.mjs","webpack://strategy_in_transit-gatsby/./node_modules/@reduxjs/toolkit/node_modules/immer/dist/immer.mjs","webpack://strategy_in_transit-gatsby/./node_modules/reselect/dist/reselect.mjs","webpack://strategy_in_transit-gatsby/./node_modules/redux/dist/redux.mjs","webpack://strategy_in_transit-gatsby/./node_modules/@reduxjs/toolkit/node_modules/redux-thunk/dist/redux-thunk.mjs","webpack://strategy_in_transit-gatsby/./node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.mjs","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/bind.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/utils.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/AxiosError.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/toFormData.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/buildURL.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/InterceptorManager.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/defaults/transitional.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/platform/browser/index.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/platform/common/utils.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/platform/index.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/defaults/index.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/transformData.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/cancel/isCancel.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/cancel/CanceledError.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/cookies.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/buildFullPath.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/combineURLs.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/speedometer.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/adapters/xhr.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/adapters/adapters.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/null.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/settle.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/dispatchRequest.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/mergeConfig.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/env/data.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/validator.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/core/Axios.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/cancel/CancelToken.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/axios.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/spread.js","webpack://strategy_in_transit-gatsby/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-link/dist/index.modern.mjs","webpack://strategy_in_transit-gatsby/./node_modules/gatsby-script/dist/index.modern.mjs","webpack://strategy_in_transit-gatsby/./node_modules/decode-uri-component/index.js","webpack://strategy_in_transit-gatsby/./node_modules/split-on-first/index.js","webpack://strategy_in_transit-gatsby/./node_modules/filter-obj/index.js","webpack://strategy_in_transit-gatsby/./node_modules/query-string/base.js","webpack://strategy_in_transit-gatsby/./node_modules/query-string/index.js","webpack://strategy_in_transit-gatsby/./node_modules/react-redux/dist/react-redux.mjs","webpack://strategy_in_transit-gatsby/./node_modules/react-wrap-balancer/dist/index.mjs"],"sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\nexports.applyTrailingSlashOption = void 0;\nconst endsWithSuffixes = (suffixes, input) => {\n for (const suffix of suffixes) {\n if (input.endsWith(suffix)) return true;\n }\n return false;\n};\nconst suffixes = [`.html`, `.json`, `.js`, `.map`, `.txt`, `.xml`, `.pdf`];\nconst applyTrailingSlashOption = (input, option = `always`) => {\n if (input === `/`) return input;\n const hasTrailingSlash = input.endsWith(`/`);\n if (endsWithSuffixes(suffixes, input)) {\n return input;\n }\n if (option === `always`) {\n return hasTrailingSlash ? input : `${input}/`;\n }\n if (option === `never`) {\n return hasTrailingSlash ? input.slice(0, -1) : input;\n }\n return input;\n};\nexports.applyTrailingSlashOption = applyTrailingSlashOption;","\"use strict\";\n\nexports.__esModule = true;\nexports.useScrollRestoration = exports.ScrollContext = void 0;\nvar _scrollHandler = require(\"./scroll-handler\");\nexports.ScrollContext = _scrollHandler.ScrollHandler;\nvar _useScrollRestoration = require(\"./use-scroll-restoration\");\nexports.useScrollRestoration = _useScrollRestoration.useScrollRestoration;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nexports.__esModule = true;\nexports.ScrollHandler = exports.ScrollContext = void 0;\nvar _assertThisInitialized2 = _interopRequireDefault(require(\"@babel/runtime/helpers/assertThisInitialized\"));\nvar _inheritsLoose2 = _interopRequireDefault(require(\"@babel/runtime/helpers/inheritsLoose\"));\nvar React = _interopRequireWildcard(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _sessionStorage = require(\"./session-storage\");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nvar ScrollContext = /*#__PURE__*/React.createContext(new _sessionStorage.SessionStorage());\nexports.ScrollContext = ScrollContext;\nScrollContext.displayName = \"GatsbyScrollContext\";\nvar ScrollHandler = /*#__PURE__*/function (_React$Component) {\n (0, _inheritsLoose2.default)(ScrollHandler, _React$Component);\n function ScrollHandler() {\n var _this;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this._stateStorage = new _sessionStorage.SessionStorage();\n _this._isTicking = false;\n _this._latestKnownScrollY = 0;\n _this.scrollListener = function () {\n _this._latestKnownScrollY = window.scrollY;\n if (!_this._isTicking) {\n _this._isTicking = true;\n requestAnimationFrame(_this._saveScroll.bind((0, _assertThisInitialized2.default)(_this)));\n }\n };\n _this.windowScroll = function (position, prevProps) {\n if (_this.shouldUpdateScroll(prevProps, _this.props)) {\n window.scrollTo(0, position);\n }\n };\n _this.scrollToHash = function (hash, prevProps) {\n var node = document.getElementById(hash.substring(1));\n if (node && _this.shouldUpdateScroll(prevProps, _this.props)) {\n node.scrollIntoView();\n }\n };\n _this.shouldUpdateScroll = function (prevRouterProps, routerProps) {\n var shouldUpdateScroll = _this.props.shouldUpdateScroll;\n if (!shouldUpdateScroll) {\n return true;\n }\n\n // Hack to allow accessing this._stateStorage.\n return shouldUpdateScroll.call((0, _assertThisInitialized2.default)(_this), prevRouterProps, routerProps);\n };\n return _this;\n }\n var _proto = ScrollHandler.prototype;\n _proto._saveScroll = function _saveScroll() {\n var key = this.props.location.key || null;\n if (key) {\n this._stateStorage.save(this.props.location, key, this._latestKnownScrollY);\n }\n this._isTicking = false;\n };\n _proto.componentDidMount = function componentDidMount() {\n window.addEventListener(\"scroll\", this.scrollListener);\n var scrollPosition;\n var _this$props$location = this.props.location,\n key = _this$props$location.key,\n hash = _this$props$location.hash;\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n\n /** If a hash is present in the browser url as the component mounts (i.e. the user is navigating\n * from an external website) then scroll to the hash instead of any previously stored scroll\n * position. */\n if (hash) {\n this.scrollToHash(decodeURI(hash), undefined);\n } else if (scrollPosition) {\n this.windowScroll(scrollPosition, undefined);\n }\n };\n _proto.componentWillUnmount = function componentWillUnmount() {\n window.removeEventListener(\"scroll\", this.scrollListener);\n };\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _this$props$location2 = this.props.location,\n hash = _this$props$location2.hash,\n key = _this$props$location2.key;\n var scrollPosition;\n if (key) {\n scrollPosition = this._stateStorage.read(this.props.location, key);\n }\n\n /** There are two pieces of state: the browser url and\n * history state which keeps track of scroll position\n * Native behaviour prescribes that we ought to restore scroll position\n * when a user navigates back in their browser (this is the `POP` action)\n * Currently, reach router has a bug that prevents this at https://github.com/reach/router/issues/228\n * So we _always_ stick to the url as a source of truth — if the url\n * contains a hash, we scroll to it\n */\n\n if (hash) {\n this.scrollToHash(decodeURI(hash), prevProps);\n } else {\n this.windowScroll(scrollPosition, prevProps);\n }\n };\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(ScrollContext.Provider, {\n value: this._stateStorage\n }, this.props.children);\n };\n return ScrollHandler;\n}(React.Component);\nexports.ScrollHandler = ScrollHandler;\nScrollHandler.propTypes = {\n shouldUpdateScroll: _propTypes.default.func,\n children: _propTypes.default.element.isRequired,\n location: _propTypes.default.object.isRequired\n};","\"use strict\";\n\nexports.__esModule = true;\nexports.SessionStorage = void 0;\nvar STATE_KEY_PREFIX = \"@@scroll|\";\nvar GATSBY_ROUTER_SCROLL_STATE = \"___GATSBY_REACT_ROUTER_SCROLL\";\nvar SessionStorage = /*#__PURE__*/function () {\n function SessionStorage() {}\n var _proto = SessionStorage.prototype;\n _proto.read = function read(location, key) {\n var stateKey = this.getStateKey(location, key);\n try {\n var value = window.sessionStorage.getItem(stateKey);\n return value ? JSON.parse(value) : 0;\n } catch (e) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"[gatsby-react-router-scroll] Unable to access sessionStorage; sessionStorage is not available.\");\n }\n if (window && window[GATSBY_ROUTER_SCROLL_STATE] && window[GATSBY_ROUTER_SCROLL_STATE][stateKey]) {\n return window[GATSBY_ROUTER_SCROLL_STATE][stateKey];\n }\n return 0;\n }\n };\n _proto.save = function save(location, key, value) {\n var stateKey = this.getStateKey(location, key);\n var storedValue = JSON.stringify(value);\n try {\n window.sessionStorage.setItem(stateKey, storedValue);\n } catch (e) {\n if (window && window[GATSBY_ROUTER_SCROLL_STATE]) {\n window[GATSBY_ROUTER_SCROLL_STATE][stateKey] = JSON.parse(storedValue);\n } else {\n window[GATSBY_ROUTER_SCROLL_STATE] = {};\n window[GATSBY_ROUTER_SCROLL_STATE][stateKey] = JSON.parse(storedValue);\n }\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"[gatsby-react-router-scroll] Unable to save state in sessionStorage; sessionStorage is not available.\");\n }\n }\n };\n _proto.getStateKey = function getStateKey(location, key) {\n var stateKeyBase = \"\" + STATE_KEY_PREFIX + location.pathname;\n return key === null || typeof key === \"undefined\" ? stateKeyBase : stateKeyBase + \"|\" + key;\n };\n return SessionStorage;\n}();\nexports.SessionStorage = SessionStorage;","\"use strict\";\n\nexports.__esModule = true;\nexports.useScrollRestoration = useScrollRestoration;\nvar _scrollHandler = require(\"./scroll-handler\");\nvar _react = require(\"react\");\nvar _reachRouter = require(\"@gatsbyjs/reach-router\");\nfunction useScrollRestoration(identifier) {\n var location = (0, _reachRouter.useLocation)();\n var state = (0, _react.useContext)(_scrollHandler.ScrollContext);\n var ref = (0, _react.useRef)(null);\n (0, _react.useLayoutEffect)(function () {\n if (ref.current) {\n var position = state.read(location, identifier);\n ref.current.scrollTo(0, position || 0);\n }\n }, [location.key]);\n return {\n ref: ref,\n onScroll: function onScroll() {\n if (ref.current) {\n state.save(location, identifier, ref.current.scrollTop);\n }\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.onInitialClientRender = void 0;\nvar _gatsbyScript = require(\"gatsby-script\");\nvar _injectPartytownSnippet = require(\"./utils/inject-partytown-snippet\");\n// Makes sure off-main-thread scripts are loaded in `gatsby develop`\nconst onInitialClientRender = () => {\n if (process.env.NODE_ENV !== `development`) {\n return;\n }\n (0, _injectPartytownSnippet.injectPartytownSnippet)(_gatsbyScript.collectedScriptsByPage.get(window.location.pathname));\n\n // Clear scripts after we've used them to avoid leaky behavior\n _gatsbyScript.collectedScriptsByPage.delete(window.location.pathname);\n};\n\n// Client-side navigation (CSR, e.g. Gatsby Link navigations) are broken upstream in Partytown.\n// We need an official API from Partytown for handling re-configuration and on-demand script loading.\n// Until then, `off-main-thread` scripts load only on server-side navigation (SSR).\n// See https://github.com/BuilderIO/partytown/issues/74 for more details.\nexports.onInitialClientRender = onInitialClientRender;\n//# sourceMappingURL=gatsby-browser.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.getForwards = getForwards;\nfunction getForwards(collectedScripts) {\n return collectedScripts === null || collectedScripts === void 0 ? void 0 : collectedScripts.flatMap(script => (script === null || script === void 0 ? void 0 : script.forward) || []);\n}\n//# sourceMappingURL=get-forwards.js.map","\"use strict\";\n\nexports.__esModule = true;\nexports.injectPartytownSnippet = injectPartytownSnippet;\nvar _integration = require(\"@builder.io/partytown/integration\");\nvar _getForwards = require(\"./get-forwards\");\n// Adapted from https://github.com/BuilderIO/partytown/blob/main/src/react/snippet.tsx to only include CSR logic\nfunction injectPartytownSnippet(collectedScripts) {\n if (!collectedScripts.length) {\n return;\n }\n const existingSnippet = document.querySelector(`script[data-partytown]`);\n const existingSandbox = document.querySelector(`iframe[src*=\"~partytown/partytown-sandbox-sw\"]`);\n if (existingSnippet) {\n existingSnippet.remove();\n }\n if (existingSandbox) {\n existingSandbox.remove();\n }\n const forwards = (0, _getForwards.getForwards)(collectedScripts);\n const snippet = document.createElement(`script`);\n snippet.dataset.partytown = ``;\n snippet.innerHTML = (0, _integration.partytownSnippet)({\n forward: forwards\n });\n document.head.appendChild(snippet);\n}\n//# sourceMappingURL=inject-partytown-snippet.js.map","exports.components = {\n \"component---src-pages-404-tsx\": () => import(\"./../../../src/pages/404.tsx\" /* webpackChunkName: \"component---src-pages-404-tsx\" */),\n \"component---src-pages-contact-tsx\": () => import(\"./../../../src/pages/contact.tsx\" /* webpackChunkName: \"component---src-pages-contact-tsx\" */),\n \"component---src-pages-index-tsx\": () => import(\"./../../../src/pages/index.tsx\" /* webpackChunkName: \"component---src-pages-index-tsx\" */),\n \"component---src-pages-search-tsx\": () => import(\"./../../../src/pages/search.tsx\" /* webpackChunkName: \"component---src-pages-search-tsx\" */),\n \"component---src-templates-article-tsx\": () => import(\"./../../../src/templates/article.tsx\" /* webpackChunkName: \"component---src-templates-article-tsx\" */),\n \"component---src-templates-city-tsx\": () => import(\"./../../../src/templates/city.tsx\" /* webpackChunkName: \"component---src-templates-city-tsx\" */),\n \"component---src-templates-roundtable-tsx\": () => import(\"./../../../src/templates/roundtable.tsx\" /* webpackChunkName: \"component---src-templates-roundtable-tsx\" */)\n}\n\n","module.exports = [{\n plugin: require('../node_modules/gatsby-plugin-manifest/gatsby-browser.js'),\n options: {\"plugins\":[],\"name\":\"Strategy in Transit\",\"short_name\":\"Strategy in Transit\",\"description\":\"Strategy in Transit\",\"start_url\":\"/\",\"background_color\":\"#fff\",\"theme_color\":\"#000000\",\"display\":\"standalone\",\"icons\":[{\"src\":\"/android-chrome-192x192.png\",\"sizes\":\"192x192\",\"type\":\"image/png\"},{\"src\":\"/android-chrome-512x512.png\",\"sizes\":\"512x512\",\"type\":\"image/png\"}],\"legacy\":true,\"theme_color_in_head\":true,\"cache_busting_mode\":\"query\",\"crossOrigin\":\"anonymous\",\"include_favicon\":true,\"cacheDigest\":null},\n },{\n plugin: require('../gatsby-browser.js'),\n options: {\"plugins\":[]},\n },{\n plugin: require('../node_modules/gatsby/dist/internal-plugins/partytown/gatsby-browser.js'),\n options: {\"plugins\":[]},\n }]\n","const plugins = require(`./api-runner-browser-plugins`)\nconst { getResourceURLsForPathname, loadPage, loadPageSync } =\n require(`./loader`).publicLoader\n\nexports.apiRunner = (api, args = {}, defaultReturn, argTransform) => {\n // Hooks for gatsby-cypress's API handler\n if (process.env.CYPRESS_SUPPORT) {\n if (window.___apiHandler) {\n window.___apiHandler(api)\n } else if (window.___resolvedAPIs) {\n window.___resolvedAPIs.push(api)\n } else {\n window.___resolvedAPIs = [api]\n }\n }\n\n let results = plugins.map(plugin => {\n if (!plugin.plugin[api]) {\n return undefined\n }\n\n args.getResourceURLsForPathname = getResourceURLsForPathname\n args.loadPage = loadPage\n args.loadPageSync = loadPageSync\n\n const result = plugin.plugin[api](args, plugin.options)\n if (result && argTransform) {\n args = argTransform({ args, result, plugin })\n }\n return result\n })\n\n // Filter out undefined results.\n results = results.filter(result => typeof result !== `undefined`)\n\n if (results.length > 0) {\n return results\n } else if (defaultReturn) {\n return [defaultReturn]\n } else {\n return []\n }\n}\n\nexports.apiRunnerAsync = (api, args, defaultReturn) =>\n plugins.reduce(\n (previous, next) =>\n next.plugin[api]\n ? previous.then(() => next.plugin[api](args, next.options))\n : previous,\n Promise.resolve()\n )\n","exports.createContentDigest = () => ``\n","import mitt from \"mitt\"\n\nconst emitter = mitt()\nexport default emitter\n","// \n// An event handler can take an optional event argument\n// and should not return a value\n \n \n\n// An array of all currently registered event handlers for a type\n \n \n// A map of event types and their corresponding event handlers.\n \n \n \n \n\n/** Mitt: Tiny (~200b) functional event emitter / pubsub.\n * @name mitt\n * @returns {Mitt}\n */\nfunction mitt(all ) {\n\tall = all || Object.create(null);\n\n\treturn {\n\t\t/**\n\t\t * Register an event handler for the given type.\n\t\t *\n\t\t * @param {String} type\tType of event to listen for, or `\"*\"` for all events\n\t\t * @param {Function} handler Function to call in response to given event\n\t\t * @memberOf mitt\n\t\t */\n\t\ton: function on(type , handler ) {\n\t\t\t(all[type] || (all[type] = [])).push(handler);\n\t\t},\n\n\t\t/**\n\t\t * Remove an event handler for the given type.\n\t\t *\n\t\t * @param {String} type\tType of event to unregister `handler` from, or `\"*\"`\n\t\t * @param {Function} handler Handler function to remove\n\t\t * @memberOf mitt\n\t\t */\n\t\toff: function off(type , handler ) {\n\t\t\tif (all[type]) {\n\t\t\t\tall[type].splice(all[type].indexOf(handler) >>> 0, 1);\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Invoke all handlers for the given type.\n\t\t * If present, `\"*\"` handlers are invoked after type-matched handlers.\n\t\t *\n\t\t * @param {String} type The event type to invoke\n\t\t * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler\n\t\t * @memberOf mitt\n\t\t */\n\t\temit: function emit(type , evt ) {\n\t\t\t(all[type] || []).slice().map(function (handler) { handler(evt); });\n\t\t\t(all['*'] || []).slice().map(function (handler) { handler(type, evt); });\n\t\t}\n\t};\n}\n\nexport default mitt;\n//# sourceMappingURL=mitt.es.js.map\n","export default pathAndSearch => {\n if (pathAndSearch === undefined) {\n return pathAndSearch\n }\n let [path, search = ``] = pathAndSearch.split(`?`)\n if (search) {\n search = `?` + search\n }\n\n if (path === `/`) {\n return `/` + search\n }\n if (path.charAt(path.length - 1) === `/`) {\n return path.slice(0, -1) + search\n }\n return path + search\n}\n","import { pick } from \"@gatsbyjs/reach-router\"\nimport stripPrefix from \"./strip-prefix\"\nimport normalizePagePath from \"./normalize-page-path\"\nimport { maybeGetBrowserRedirect } from \"./redirect-utils.js\"\n\nconst pathCache = new Map()\nlet matchPaths = []\n\nconst trimPathname = rawPathname => {\n let newRawPathname = rawPathname\n const queryIndex = rawPathname.indexOf(`?`)\n\n if (queryIndex !== -1) {\n const [path, qs] = rawPathname.split(`?`)\n newRawPathname = `${path}?${encodeURIComponent(qs)}`\n }\n\n const pathname = decodeURIComponent(newRawPathname)\n\n // Remove the pathPrefix from the pathname.\n const trimmedPathname = stripPrefix(\n pathname,\n decodeURIComponent(__BASE_PATH__)\n )\n // Remove any hashfragment\n .split(`#`)[0]\n\n return trimmedPathname\n}\n\nfunction absolutify(path) {\n // If it's already absolute, return as-is\n if (\n path.startsWith(`/`) ||\n path.startsWith(`https://`) ||\n path.startsWith(`http://`)\n ) {\n return path\n }\n // Calculate path relative to current location, adding a trailing slash to\n // match behavior of @reach/router\n return new URL(\n path,\n window.location.href + (window.location.href.endsWith(`/`) ? `` : `/`)\n ).pathname\n}\n\n/**\n * Set list of matchPaths\n *\n * @param {Array<{path: string, matchPath: string}>} value collection of matchPaths\n */\nexport const setMatchPaths = value => {\n matchPaths = value\n}\n\n/**\n * Return a matchpath url\n * if `match-paths.json` contains `{ \"/foo*\": \"/page1\", ...}`, then\n * `/foo?bar=far` => `/page1`\n *\n * @param {string} rawPathname A raw pathname\n * @return {string|null}\n */\nexport const findMatchPath = rawPathname => {\n const trimmedPathname = cleanPath(rawPathname)\n\n const pickPaths = matchPaths.map(({ path, matchPath }) => {\n return {\n path: matchPath,\n originalPath: path,\n }\n })\n\n const path = pick(pickPaths, trimmedPathname)\n\n if (path) {\n return normalizePagePath(path.route.originalPath)\n }\n\n return null\n}\n\n/**\n * Return a matchpath params from reach/router rules\n * if `match-paths.json` contains `{ \":bar/*foo\" }`, and the path is /baz/zaz/zoo\n * then it returns\n * { bar: baz, foo: zaz/zoo }\n *\n * @param {string} rawPathname A raw pathname\n * @return {object}\n */\nexport const grabMatchParams = rawPathname => {\n const trimmedPathname = cleanPath(rawPathname)\n\n const pickPaths = matchPaths.map(({ path, matchPath }) => {\n return {\n path: matchPath,\n originalPath: path,\n }\n })\n\n const path = pick(pickPaths, trimmedPathname)\n\n if (path) {\n return path.params\n }\n\n return {}\n}\n\n// Given a raw URL path, returns the cleaned version of it (trim off\n// `#` and query params), or if it matches an entry in\n// `match-paths.json`, its matched path is returned\n//\n// E.g. `/foo?bar=far` => `/foo`\n//\n// Or if `match-paths.json` contains `{ \"/foo*\": \"/page1\", ...}`, then\n// `/foo?bar=far` => `/page1`\nexport const findPath = rawPathname => {\n const trimmedPathname = trimPathname(absolutify(rawPathname))\n if (pathCache.has(trimmedPathname)) {\n return pathCache.get(trimmedPathname)\n }\n\n const redirect = maybeGetBrowserRedirect(rawPathname)\n if (redirect) {\n return findPath(redirect.toPath)\n }\n\n let foundPath = findMatchPath(trimmedPathname)\n\n if (!foundPath) {\n foundPath = cleanPath(rawPathname)\n }\n\n pathCache.set(trimmedPathname, foundPath)\n\n return foundPath\n}\n\n/**\n * Clean a url and converts /index.html => /\n * E.g. `/foo?bar=far` => `/foo`\n *\n * @param {string} rawPathname A raw pathname\n * @return {string}\n */\nexport const cleanPath = rawPathname => {\n const trimmedPathname = trimPathname(absolutify(rawPathname))\n\n let foundPath = trimmedPathname\n if (foundPath === `/index.html`) {\n foundPath = `/`\n }\n\n foundPath = normalizePagePath(foundPath)\n\n return foundPath\n}\n","import getPrototypeOf from \"./getPrototypeOf.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeFunction from \"./isNativeFunction.js\";\nimport construct from \"./construct.js\";\nexport default function _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n return _wrapNativeSuper(Class);\n}","export default function _isNativeFunction(fn) {\n try {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n } catch (e) {\n return typeof fn === \"function\";\n }\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nexport default function _construct(t, e, r) {\n if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);\n var o = [null];\n o.push.apply(o, e);\n var p = new (t.bind.apply(t, o))();\n return r && setPrototypeOf(p, r.prototype), p;\n}","import React from \"react\"\n\nexport const ServerSliceRenderer = ({ sliceId, children }) => {\n const contents = [\n React.createElement(`slice-start`, {\n id: `${sliceId}-1`,\n }),\n React.createElement(`slice-end`, {\n id: `${sliceId}-1`,\n }),\n ]\n\n if (children) {\n // if children exist, we split the slice into a before and after piece\n // see renderSlices in render-html\n contents.push(children)\n contents.push(\n React.createElement(`slice-start`, {\n id: `${sliceId}-2`,\n }),\n React.createElement(`slice-end`, {\n id: `${sliceId}-2`,\n })\n )\n }\n\n return contents\n}\n","import React, { useContext } from \"react\"\nimport { createContentDigest } from \"gatsby-core-utils/create-content-digest\"\nimport { SlicesMapContext, SlicesPropsContext } from \"./context\"\nimport { ServerSliceRenderer } from \"./server-slice-renderer\"\n\nconst getSliceId = (sliceName, sliceProps) => {\n if (!Object.keys(sliceProps).length) {\n return sliceName\n }\n\n const propsString = createContentDigest(sliceProps)\n return `${sliceName}-${propsString}`\n}\n\nexport const ServerSlice = ({\n sliceName,\n allowEmpty,\n children,\n ...sliceProps\n}) => {\n const slicesMap = useContext(SlicesMapContext)\n const slicesProps = useContext(SlicesPropsContext)\n const concreteSliceName = slicesMap[sliceName]\n\n if (!concreteSliceName) {\n if (allowEmpty) {\n return null\n } else {\n throw new Error(\n `Slice \"${concreteSliceName}\" for \"${sliceName}\" slot not found`\n )\n }\n }\n\n const sliceId = getSliceId(concreteSliceName, sliceProps)\n\n // set props on context object for static-entry to return\n let sliceUsage = slicesProps[sliceId]\n if (!sliceUsage) {\n slicesProps[sliceId] = sliceUsage = {\n props: sliceProps,\n sliceName: concreteSliceName,\n hasChildren: !!children,\n }\n } else {\n if (children) {\n sliceUsage.hasChildren = true\n }\n }\n\n return {children}\n}\n","import React, { useContext } from \"react\"\nimport { SlicesMapContext, SlicesResultsContext } from \"./context\"\n\nexport const InlineSlice = ({\n sliceName,\n allowEmpty,\n children,\n ...sliceProps\n}) => {\n const slicesMap = useContext(SlicesMapContext)\n const slicesResultsMap = useContext(SlicesResultsContext)\n const concreteSliceName = slicesMap[sliceName]\n const slice = slicesResultsMap.get(concreteSliceName)\n\n if (!slice) {\n if (allowEmpty) {\n return null\n } else {\n throw new Error(\n `Slice \"${concreteSliceName}\" for \"${sliceName}\" slot not found`\n )\n }\n }\n\n return (\n \n {children}\n \n )\n}\n","\"use client\"\n\nimport React, { useContext } from \"react\"\nimport { ServerSlice } from \"./slice/server-slice\"\nimport { InlineSlice } from \"./slice/inline-slice\"\nimport { SlicesContext } from \"./slice/context\"\n\nexport function Slice(props) {\n if (process.env.GATSBY_SLICES) {\n // we use sliceName internally, so remap alias to sliceName\n const internalProps = {\n ...props,\n sliceName: props.alias,\n }\n delete internalProps.alias\n delete internalProps.__renderedByLocation\n\n const slicesContext = useContext(SlicesContext)\n\n // validate props\n const propErrors = validateSliceProps(props)\n if (Object.keys(propErrors).length) {\n throw new SlicePropsError(\n slicesContext.renderEnvironment === `browser`,\n internalProps.sliceName,\n propErrors,\n props.__renderedByLocation\n )\n }\n\n if (slicesContext.renderEnvironment === `server`) {\n return \n } else if (slicesContext.renderEnvironment === `browser`) {\n // in the browser, we'll just render the component as is\n return \n } else if (\n slicesContext.renderEnvironment === `engines` ||\n slicesContext.renderEnvironment === `dev-ssr`\n ) {\n // if we're in SSR, we'll just render the component as is\n return \n } else if (slicesContext.renderEnvironment === `slices`) {\n // we are not yet supporting nested slices\n\n let additionalContextMessage = ``\n\n // just in case generating additional contextual information fails, we still want the base message to show\n // and not show another cryptic error message\n try {\n additionalContextMessage = `\\n\\nSlice component \"${slicesContext.sliceRoot.name}\" (${slicesContext.sliceRoot.componentPath}) tried to render `\n } catch {\n // don't need to handle it, we will just skip the additional context message if we fail to generate it\n }\n\n throw new Error(\n `Nested slices are not supported.${additionalContextMessage}\\n\\nSee https://gatsbyjs.com/docs/reference/built-in-components/gatsby-slice#nested-slices`\n )\n } else {\n throw new Error(\n `Slice context \"${slicesContext.renderEnvironment}\" is not supported.`\n )\n }\n } else {\n throw new Error(`Slices are disabled.`)\n }\n}\n\nclass SlicePropsError extends Error {\n constructor(inBrowser, sliceName, propErrors, renderedByLocation) {\n const errors = Object.entries(propErrors)\n .map(\n ([key, value]) =>\n `not serializable \"${value}\" type passed to \"${key}\" prop`\n )\n .join(`, `)\n\n const name = `SlicePropsError`\n let stack = ``\n let message = ``\n\n if (inBrowser) {\n // They're just (kinda) kidding, I promise... You can still work here <3\n // https://www.gatsbyjs.com/careers/\n const fullStack =\n React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactDebugCurrentFrame.getCurrentStack()\n\n // remove the first line of the stack trace\n const stackLines = fullStack.trim().split(`\\n`).slice(1)\n stackLines[0] = stackLines[0].trim()\n stack = `\\n` + stackLines.join(`\\n`)\n\n message = `Slice \"${sliceName}\" was passed props that are not serializable (${errors}).`\n } else {\n // we can't really grab any extra info outside of the browser, so just print what we can\n message = `${name}: Slice \"${sliceName}\" was passed props that are not serializable (${errors}).`\n const stackLines = new Error().stack.trim().split(`\\n`).slice(2)\n stack = `${message}\\n${stackLines.join(`\\n`)}`\n }\n\n super(message)\n this.name = name\n if (stack) {\n this.stack = stack\n } else {\n Error.captureStackTrace(this, SlicePropsError)\n }\n\n if (renderedByLocation) {\n this.forcedLocation = { ...renderedByLocation, functionName: `Slice` }\n }\n }\n}\n\nconst validateSliceProps = (\n props,\n errors = {},\n seenObjects = [],\n path = null\n) => {\n // recursively validate all props\n for (const [name, value] of Object.entries(props)) {\n if (\n value === undefined ||\n value === null ||\n (!path && name === `children`)\n ) {\n continue\n }\n\n const propPath = path ? `${path}.${name}` : name\n\n if (typeof value === `function`) {\n errors[propPath] = typeof value\n } else if (typeof value === `object` && seenObjects.indexOf(value) <= 0) {\n seenObjects.push(value)\n validateSliceProps(value, errors, seenObjects, propPath)\n }\n }\n\n return errors\n}\n","import loader from \"./loader\"\n\nconst prefetchPathname = loader.enqueue\n\nfunction graphql() {\n throw new Error(\n `It appears like Gatsby is misconfigured. Gatsby related \\`graphql\\` calls ` +\n `are supposed to only be evaluated at compile time, and then compiled away. ` +\n `Unfortunately, something went wrong and the query was left in the compiled code.\\n\\n` +\n `Unless your site has a complex or custom babel/Gatsby configuration this is likely a bug in Gatsby.`\n )\n}\n\nexport { default as PageRenderer } from \"./public-page-renderer\"\nexport { useScrollRestoration } from \"gatsby-react-router-scroll\"\nexport {\n Link,\n withPrefix,\n withAssetPrefix,\n navigate,\n parsePath,\n} from \"gatsby-link\"\n\nexport { graphql, prefetchPathname }\nexport { StaticQuery, StaticQueryContext, useStaticQuery } from \"./static-query\"\nexport { Slice } from \"./slice\"\nexport * from \"gatsby-script\"\n","const support = function (feature) {\n if (typeof document === `undefined`) {\n return false\n }\n const fakeLink = document.createElement(`link`)\n try {\n if (fakeLink.relList && typeof fakeLink.relList.supports === `function`) {\n return fakeLink.relList.supports(feature)\n }\n } catch (err) {\n return false\n }\n return false\n}\n\nconst linkPrefetchStrategy = function (url, options) {\n return new Promise((resolve, reject) => {\n if (typeof document === `undefined`) {\n reject()\n return\n }\n\n const link = document.createElement(`link`)\n link.setAttribute(`rel`, `prefetch`)\n link.setAttribute(`href`, url)\n\n Object.keys(options).forEach(key => {\n link.setAttribute(key, options[key])\n })\n\n link.onload = resolve\n link.onerror = reject\n\n const parentElement =\n document.getElementsByTagName(`head`)[0] ||\n document.getElementsByName(`script`)[0].parentNode\n parentElement.appendChild(link)\n })\n}\n\nconst xhrPrefetchStrategy = function (url) {\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest()\n req.open(`GET`, url, true)\n\n req.onload = () => {\n if (req.status === 200) {\n resolve()\n } else {\n reject()\n }\n }\n\n req.send(null)\n })\n}\n\nconst supportedPrefetchStrategy = support(`prefetch`)\n ? linkPrefetchStrategy\n : xhrPrefetchStrategy\n\nconst preFetched = {}\n\nconst prefetch = function (url, options) {\n return new Promise(resolve => {\n if (preFetched[url]) {\n resolve()\n return\n }\n\n supportedPrefetchStrategy(url, options)\n .then(() => {\n resolve()\n preFetched[url] = true\n })\n .catch(() => {}) // 404s are logged to the console anyway\n })\n}\n\nexport default prefetch\n","import { createFromReadableStream } from \"react-server-dom-webpack\"\nimport prefetchHelper from \"./prefetch\"\nimport emitter from \"./emitter\"\nimport { setMatchPaths, findPath, findMatchPath } from \"./find-path\"\n\n/**\n * Available resource loading statuses\n */\nexport const PageResourceStatus = {\n /**\n * At least one of critical resources failed to load\n */\n Error: `error`,\n /**\n * Resources loaded successfully\n */\n Success: `success`,\n}\n\nconst preferDefault = m => (m && m.default) || m\n\nconst stripSurroundingSlashes = s => {\n s = s[0] === `/` ? s.slice(1) : s\n s = s.endsWith(`/`) ? s.slice(0, -1) : s\n return s\n}\n\nconst createPageDataUrl = rawPath => {\n const [path, maybeSearch] = rawPath.split(`?`)\n const fixedPath = path === `/` ? `index` : stripSurroundingSlashes(path)\n return `${__PATH_PREFIX__}/page-data/${fixedPath}/page-data.json${\n maybeSearch ? `?${maybeSearch}` : ``\n }`\n}\n\n/**\n * Utility to check the path that goes into doFetch for e.g. potential malicious intentions.\n * It checks for \"//\" because with this you could do a fetch request to a different domain.\n */\nconst shouldAbortFetch = rawPath => rawPath.startsWith(`//`)\n\nfunction doFetch(url, method = `GET`) {\n return new Promise(resolve => {\n const req = new XMLHttpRequest()\n req.open(method, url, true)\n req.onreadystatechange = () => {\n if (req.readyState == 4) {\n resolve(req)\n }\n }\n req.send(null)\n })\n}\n\nconst doesConnectionSupportPrefetch = () => {\n if (\n `connection` in navigator &&\n typeof navigator.connection !== `undefined`\n ) {\n if ((navigator.connection.effectiveType || ``).includes(`2g`)) {\n return false\n }\n if (navigator.connection.saveData) {\n return false\n }\n }\n return true\n}\n\n// Regex that matches common search crawlers\nconst BOT_REGEX = /bot|crawler|spider|crawling/i\n\nconst toPageResources = (pageData, component = null, head) => {\n const page = {\n componentChunkName: pageData.componentChunkName,\n path: pageData.path,\n webpackCompilationHash: pageData.webpackCompilationHash,\n matchPath: pageData.matchPath,\n staticQueryHashes: pageData.staticQueryHashes,\n getServerDataError: pageData.getServerDataError,\n slicesMap: pageData.slicesMap ?? {},\n }\n\n return {\n component,\n head,\n json: pageData.result,\n page,\n }\n}\n\nfunction waitForResponse(response) {\n return new Promise(resolve => {\n try {\n const result = response.readRoot()\n resolve(result)\n } catch (err) {\n if (\n Object.hasOwnProperty.call(err, `_response`) &&\n Object.hasOwnProperty.call(err, `_status`)\n ) {\n setTimeout(() => {\n waitForResponse(response).then(resolve)\n }, 200)\n } else {\n throw err\n }\n }\n })\n}\n\nexport class BaseLoader {\n constructor(loadComponent, matchPaths) {\n // Map of pagePath -> Page. Where Page is an object with: {\n // status: PageResourceStatus.Success || PageResourceStatus.Error,\n // payload: PageResources, // undefined if PageResourceStatus.Error\n // }\n // PageResources is {\n // component,\n // json: pageData.result,\n // page: {\n // componentChunkName,\n // path,\n // webpackCompilationHash,\n // staticQueryHashes\n // },\n // staticQueryResults\n // }\n this.pageDb = new Map()\n this.inFlightDb = new Map()\n this.staticQueryDb = {}\n this.pageDataDb = new Map()\n this.partialHydrationDb = new Map()\n this.slicesDataDb = new Map()\n this.sliceInflightDb = new Map()\n this.slicesDb = new Map()\n this.isPrefetchQueueRunning = false\n this.prefetchQueued = []\n this.prefetchTriggered = new Set()\n this.prefetchCompleted = new Set()\n this.loadComponent = loadComponent\n setMatchPaths(matchPaths)\n }\n\n inFlightNetworkRequests = new Map()\n\n memoizedGet(url) {\n let inFlightPromise = this.inFlightNetworkRequests.get(url)\n\n if (!inFlightPromise) {\n inFlightPromise = doFetch(url, `GET`)\n this.inFlightNetworkRequests.set(url, inFlightPromise)\n }\n\n // Prefer duplication with then + catch over .finally to prevent problems in ie11 + firefox\n return inFlightPromise\n .then(response => {\n this.inFlightNetworkRequests.delete(url)\n return response\n })\n .catch(err => {\n this.inFlightNetworkRequests.delete(url)\n throw err\n })\n }\n\n setApiRunner(apiRunner) {\n this.apiRunner = apiRunner\n this.prefetchDisabled = apiRunner(`disableCorePrefetching`).some(a => a)\n }\n\n fetchPageDataJson(loadObj) {\n const { pagePath, retries = 0 } = loadObj\n const url = createPageDataUrl(pagePath)\n return this.memoizedGet(url).then(req => {\n const { status, responseText } = req\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.path === undefined) {\n throw new Error(`not a valid pageData response`)\n }\n\n const maybeSearch = pagePath.split(`?`)[1]\n if (maybeSearch && !jsonPayload.path.includes(maybeSearch)) {\n jsonPayload.path += `?${maybeSearch}`\n }\n\n return Object.assign(loadObj, {\n status: PageResourceStatus.Success,\n payload: jsonPayload,\n })\n } catch (err) {\n // continue regardless of error\n }\n }\n\n // Handle 404\n if (status === 404 || status === 200) {\n // If the request was for a 404/500 page and it doesn't exist, we're done\n if (pagePath === `/404.html` || pagePath === `/500.html`) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Need some code here to cache the 404 request. In case\n // multiple loadPageDataJsons result in 404s\n return this.fetchPageDataJson(\n Object.assign(loadObj, { pagePath: `/404.html`, notFound: true })\n )\n }\n\n // handle 500 response (Unrecoverable)\n if (status === 500) {\n return this.fetchPageDataJson(\n Object.assign(loadObj, {\n pagePath: `/500.html`,\n internalServerError: true,\n })\n )\n }\n\n // Handle everything else, including status === 0, and 503s. Should retry\n if (retries < 3) {\n return this.fetchPageDataJson(\n Object.assign(loadObj, { retries: retries + 1 })\n )\n }\n\n // Retried 3 times already, result is an error.\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n })\n }\n\n fetchPartialHydrationJson(loadObj) {\n const { pagePath, retries = 0 } = loadObj\n const url = createPageDataUrl(pagePath).replace(`.json`, `-rsc.json`)\n return this.memoizedGet(url).then(req => {\n const { status, responseText } = req\n\n // Handle 200\n if (status === 200) {\n try {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Success,\n payload: responseText,\n })\n } catch (err) {\n // continue regardless of error\n }\n }\n\n // Handle 404\n if (status === 404 || status === 200) {\n // If the request was for a 404/500 page and it doesn't exist, we're done\n if (pagePath === `/404.html` || pagePath === `/500.html`) {\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n }\n\n // Need some code here to cache the 404 request. In case\n // multiple loadPageDataJsons result in 404s\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, { pagePath: `/404.html`, notFound: true })\n )\n }\n\n // handle 500 response (Unrecoverable)\n if (status === 500) {\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, {\n pagePath: `/500.html`,\n internalServerError: true,\n })\n )\n }\n\n // Handle everything else, including status === 0, and 503s. Should retry\n if (retries < 3) {\n return this.fetchPartialHydrationJson(\n Object.assign(loadObj, { retries: retries + 1 })\n )\n }\n\n // Retried 3 times already, result is an error.\n return Object.assign(loadObj, {\n status: PageResourceStatus.Error,\n })\n })\n }\n\n loadPageDataJson(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDataDb.has(pagePath)) {\n const pageData = this.pageDataDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !pageData.stale) {\n return Promise.resolve(pageData)\n }\n }\n\n return this.fetchPageDataJson({ pagePath }).then(pageData => {\n this.pageDataDb.set(pagePath, pageData)\n\n return pageData\n })\n }\n\n loadPartialHydrationJson(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.partialHydrationDb.has(pagePath)) {\n const pageData = this.partialHydrationDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !pageData.stale) {\n return Promise.resolve(pageData)\n }\n }\n\n return this.fetchPartialHydrationJson({ pagePath }).then(pageData => {\n this.partialHydrationDb.set(pagePath, pageData)\n\n return pageData\n })\n }\n\n loadSliceDataJson(sliceName) {\n if (this.slicesDataDb.has(sliceName)) {\n const jsonPayload = this.slicesDataDb.get(sliceName)\n return Promise.resolve({ sliceName, jsonPayload })\n }\n\n const url = `${__PATH_PREFIX__}/slice-data/${sliceName}.json`\n return doFetch(url, `GET`).then(res => {\n const jsonPayload = JSON.parse(res.responseText)\n\n this.slicesDataDb.set(sliceName, jsonPayload)\n return { sliceName, jsonPayload }\n })\n }\n\n findMatchPath(rawPath) {\n return findMatchPath(rawPath)\n }\n\n // TODO check all uses of this and whether they use undefined for page resources not exist\n loadPage(rawPath) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const page = this.pageDb.get(pagePath)\n if (process.env.BUILD_STAGE !== `develop` || !page.payload.stale) {\n if (page.error) {\n return Promise.resolve({\n error: page.error,\n status: page.status,\n })\n }\n\n return Promise.resolve(page.payload)\n }\n }\n\n if (this.inFlightDb.has(pagePath)) {\n return this.inFlightDb.get(pagePath)\n }\n\n const loadDataPromises = [\n this.loadAppData(),\n this.loadPageDataJson(pagePath),\n ]\n\n if (global.hasPartialHydration) {\n loadDataPromises.push(this.loadPartialHydrationJson(pagePath))\n }\n\n const inFlightPromise = Promise.all(loadDataPromises).then(allData => {\n const [appDataResponse, pageDataResponse, rscDataResponse] = allData\n\n if (\n pageDataResponse.status === PageResourceStatus.Error ||\n rscDataResponse?.status === PageResourceStatus.Error\n ) {\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n let pageData = pageDataResponse.payload\n\n const {\n componentChunkName,\n staticQueryHashes: pageStaticQueryHashes = [],\n slicesMap = {},\n } = pageData\n\n const finalResult = {}\n\n const dedupedSliceNames = Array.from(new Set(Object.values(slicesMap)))\n\n const loadSlice = slice => {\n if (this.slicesDb.has(slice.name)) {\n return this.slicesDb.get(slice.name)\n } else if (this.sliceInflightDb.has(slice.name)) {\n return this.sliceInflightDb.get(slice.name)\n }\n\n const inFlight = this.loadComponent(slice.componentChunkName).then(\n component => {\n return {\n component: preferDefault(component),\n sliceContext: slice.result.sliceContext,\n data: slice.result.data,\n }\n }\n )\n\n this.sliceInflightDb.set(slice.name, inFlight)\n inFlight.then(results => {\n this.slicesDb.set(slice.name, results)\n this.sliceInflightDb.delete(slice.name)\n })\n\n return inFlight\n }\n\n return Promise.all(\n dedupedSliceNames.map(sliceName => this.loadSliceDataJson(sliceName))\n ).then(slicesData => {\n const slices = []\n const dedupedStaticQueryHashes = [...pageStaticQueryHashes]\n\n for (const { jsonPayload, sliceName } of Object.values(slicesData)) {\n slices.push({ name: sliceName, ...jsonPayload })\n for (const staticQueryHash of jsonPayload.staticQueryHashes) {\n if (!dedupedStaticQueryHashes.includes(staticQueryHash)) {\n dedupedStaticQueryHashes.push(staticQueryHash)\n }\n }\n }\n\n const loadChunkPromises = [\n Promise.all(slices.map(loadSlice)),\n this.loadComponent(componentChunkName, `head`),\n ]\n\n if (!global.hasPartialHydration) {\n loadChunkPromises.push(this.loadComponent(componentChunkName))\n }\n\n // In develop we have separate chunks for template and Head components\n // to enable HMR (fast refresh requires single exports).\n // In production we have shared chunk with both exports. Double loadComponent here\n // will be deduped by webpack runtime resulting in single request and single module\n // being loaded for both `component` and `head`.\n // get list of components to get\n const componentChunkPromises = Promise.all(loadChunkPromises).then(\n components => {\n const [sliceComponents, headComponent, pageComponent] = components\n\n finalResult.createdAt = new Date()\n\n for (const sliceComponent of sliceComponents) {\n if (!sliceComponent || sliceComponent instanceof Error) {\n finalResult.status = PageResourceStatus.Error\n finalResult.error = sliceComponent\n }\n }\n\n if (\n !global.hasPartialHydration &&\n (!pageComponent || pageComponent instanceof Error)\n ) {\n finalResult.status = PageResourceStatus.Error\n finalResult.error = pageComponent\n }\n\n let pageResources\n\n if (finalResult.status !== PageResourceStatus.Error) {\n finalResult.status = PageResourceStatus.Success\n if (\n pageDataResponse.notFound === true ||\n rscDataResponse?.notFound === true\n ) {\n finalResult.notFound = true\n }\n pageData = Object.assign(pageData, {\n webpackCompilationHash: appDataResponse\n ? appDataResponse.webpackCompilationHash\n : ``,\n })\n\n if (typeof rscDataResponse?.payload === `string`) {\n pageResources = toPageResources(pageData, null, headComponent)\n\n pageResources.partialHydration = rscDataResponse.payload\n\n const readableStream = new ReadableStream({\n start(controller) {\n const te = new TextEncoder()\n controller.enqueue(te.encode(rscDataResponse.payload))\n },\n pull(controller) {\n // close on next read when queue is empty\n controller.close()\n },\n cancel() {},\n })\n\n return waitForResponse(\n createFromReadableStream(readableStream)\n ).then(result => {\n pageResources.partialHydration = result\n\n return pageResources\n })\n } else {\n pageResources = toPageResources(\n pageData,\n pageComponent,\n headComponent\n )\n }\n }\n\n // undefined if final result is an error\n return pageResources\n }\n )\n\n // get list of static queries to get\n const staticQueryBatchPromise = Promise.all(\n dedupedStaticQueryHashes.map(staticQueryHash => {\n // Check for cache in case this static query result has already been loaded\n if (this.staticQueryDb[staticQueryHash]) {\n const jsonPayload = this.staticQueryDb[staticQueryHash]\n return { staticQueryHash, jsonPayload }\n }\n\n return this.memoizedGet(\n `${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json`\n )\n .then(req => {\n const jsonPayload = JSON.parse(req.responseText)\n return { staticQueryHash, jsonPayload }\n })\n .catch(() => {\n throw new Error(\n `We couldn't load \"${__PATH_PREFIX__}/page-data/sq/d/${staticQueryHash}.json\"`\n )\n })\n })\n ).then(staticQueryResults => {\n const staticQueryResultsMap = {}\n\n staticQueryResults.forEach(({ staticQueryHash, jsonPayload }) => {\n staticQueryResultsMap[staticQueryHash] = jsonPayload\n this.staticQueryDb[staticQueryHash] = jsonPayload\n })\n\n return staticQueryResultsMap\n })\n\n return (\n Promise.all([componentChunkPromises, staticQueryBatchPromise])\n .then(([pageResources, staticQueryResults]) => {\n let payload\n if (pageResources) {\n payload = { ...pageResources, staticQueryResults }\n finalResult.payload = payload\n emitter.emit(`onPostLoadPageResources`, {\n page: payload,\n pageResources: payload,\n })\n }\n\n this.pageDb.set(pagePath, finalResult)\n\n if (finalResult.error) {\n return {\n error: finalResult.error,\n status: finalResult.status,\n }\n }\n\n return payload\n })\n // when static-query fail to load we throw a better error\n .catch(err => {\n return {\n error: err,\n status: PageResourceStatus.Error,\n }\n })\n )\n })\n })\n\n inFlightPromise\n .then(() => {\n this.inFlightDb.delete(pagePath)\n })\n .catch(error => {\n this.inFlightDb.delete(pagePath)\n throw error\n })\n\n this.inFlightDb.set(pagePath, inFlightPromise)\n\n return inFlightPromise\n }\n\n // returns undefined if the page does not exists in cache\n loadPageSync(rawPath, options = {}) {\n const pagePath = findPath(rawPath)\n if (this.pageDb.has(pagePath)) {\n const pageData = this.pageDb.get(pagePath)\n\n if (pageData.payload) {\n return pageData.payload\n }\n\n if (options?.withErrorDetails) {\n return {\n error: pageData.error,\n status: pageData.status,\n }\n }\n }\n return undefined\n }\n\n shouldPrefetch(pagePath) {\n // Skip prefetching if we know user is on slow or constrained connection\n if (!doesConnectionSupportPrefetch()) {\n return false\n }\n\n // Don't prefetch if this is a crawler bot\n if (navigator.userAgent && BOT_REGEX.test(navigator.userAgent)) {\n return false\n }\n\n // Check if the page exists.\n if (this.pageDb.has(pagePath)) {\n return false\n }\n\n return true\n }\n\n prefetch(pagePath) {\n if (!this.shouldPrefetch(pagePath)) {\n return {\n then: resolve => resolve(false),\n abort: () => {},\n }\n }\n if (this.prefetchTriggered.has(pagePath)) {\n return {\n then: resolve => resolve(true),\n abort: () => {},\n }\n }\n\n const defer = {\n resolve: null,\n reject: null,\n promise: null,\n }\n defer.promise = new Promise((resolve, reject) => {\n defer.resolve = resolve\n defer.reject = reject\n })\n this.prefetchQueued.push([pagePath, defer])\n const abortC = new AbortController()\n abortC.signal.addEventListener(`abort`, () => {\n const index = this.prefetchQueued.findIndex(([p]) => p === pagePath)\n // remove from the queue\n if (index !== -1) {\n this.prefetchQueued.splice(index, 1)\n }\n })\n\n if (!this.isPrefetchQueueRunning) {\n this.isPrefetchQueueRunning = true\n setTimeout(() => {\n this._processNextPrefetchBatch()\n }, 3000)\n }\n\n return {\n then: (resolve, reject) => defer.promise.then(resolve, reject),\n abort: abortC.abort.bind(abortC),\n }\n }\n\n _processNextPrefetchBatch() {\n const idleCallback = window.requestIdleCallback || (cb => setTimeout(cb, 0))\n\n idleCallback(() => {\n const toPrefetch = this.prefetchQueued.splice(0, 4)\n const prefetches = Promise.all(\n toPrefetch.map(([pagePath, dPromise]) => {\n // Tell plugins with custom prefetching logic that they should start\n // prefetching this path.\n if (!this.prefetchTriggered.has(pagePath)) {\n this.apiRunner(`onPrefetchPathname`, { pathname: pagePath })\n this.prefetchTriggered.add(pagePath)\n }\n\n // If a plugin has disabled core prefetching, stop now.\n if (this.prefetchDisabled) {\n return dPromise.resolve(false)\n }\n\n return this.doPrefetch(findPath(pagePath)).then(() => {\n if (!this.prefetchCompleted.has(pagePath)) {\n this.apiRunner(`onPostPrefetchPathname`, { pathname: pagePath })\n this.prefetchCompleted.add(pagePath)\n }\n\n dPromise.resolve(true)\n })\n })\n )\n\n if (this.prefetchQueued.length) {\n prefetches.then(() => {\n setTimeout(() => {\n this._processNextPrefetchBatch()\n }, 3000)\n })\n } else {\n this.isPrefetchQueueRunning = false\n }\n })\n }\n\n doPrefetch(pagePath) {\n const pageDataUrl = createPageDataUrl(pagePath)\n\n if (global.hasPartialHydration) {\n return Promise.all([\n prefetchHelper(pageDataUrl, {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPageDataJson(pagePath)\n ),\n prefetchHelper(pageDataUrl.replace(`.json`, `-rsc.json`), {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPartialHydrationJson(pagePath)\n ),\n ])\n } else {\n return prefetchHelper(pageDataUrl, {\n crossOrigin: `anonymous`,\n as: `fetch`,\n }).then(() =>\n // This was just prefetched, so will return a response from\n // the cache instead of making another request to the server\n this.loadPageDataJson(pagePath)\n )\n }\n }\n\n hovering(rawPath) {\n this.loadPage(rawPath)\n }\n\n getResourceURLsForPathname(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDataDb.get(pagePath)\n if (page) {\n const pageResources = toPageResources(page.payload)\n\n return [\n ...createComponentUrls(pageResources.page.componentChunkName),\n createPageDataUrl(pagePath),\n ]\n } else {\n return null\n }\n }\n\n isPageNotFound(rawPath) {\n const pagePath = findPath(rawPath)\n const page = this.pageDb.get(pagePath)\n return !page || page.notFound\n }\n\n loadAppData(retries = 0) {\n return this.memoizedGet(`${__PATH_PREFIX__}/page-data/app-data.json`).then(\n req => {\n const { status, responseText } = req\n\n let appData\n\n if (status !== 200 && retries < 3) {\n // Retry 3 times incase of non-200 responses\n return this.loadAppData(retries + 1)\n }\n\n // Handle 200\n if (status === 200) {\n try {\n const jsonPayload = JSON.parse(responseText)\n if (jsonPayload.webpackCompilationHash === undefined) {\n throw new Error(`not a valid app-data response`)\n }\n\n appData = jsonPayload\n } catch (err) {\n // continue regardless of error\n }\n }\n\n return appData\n }\n )\n }\n}\n\nconst createComponentUrls = componentChunkName =>\n (window.___chunkMapping[componentChunkName] || []).map(\n chunk => __PATH_PREFIX__ + chunk\n )\n\nexport class ProdLoader extends BaseLoader {\n constructor(asyncRequires, matchPaths, pageData) {\n const loadComponent = (chunkName, exportType = `components`) => {\n if (!global.hasPartialHydration) {\n exportType = `components`\n }\n\n if (!asyncRequires[exportType][chunkName]) {\n throw new Error(\n `We couldn't find the correct component chunk with the name \"${chunkName}\"`\n )\n }\n\n return (\n asyncRequires[exportType][chunkName]()\n // loader will handle the case when component is error\n .catch(err => err)\n )\n }\n\n super(loadComponent, matchPaths)\n\n if (pageData) {\n this.pageDataDb.set(findPath(pageData.path), {\n pagePath: pageData.path,\n payload: pageData,\n status: `success`,\n })\n }\n }\n\n doPrefetch(pagePath) {\n return super.doPrefetch(pagePath).then(result => {\n if (result.status !== PageResourceStatus.Success) {\n return Promise.resolve()\n }\n const pageData = result.payload\n const chunkName = pageData.componentChunkName\n const componentUrls = createComponentUrls(chunkName)\n return Promise.all(componentUrls.map(prefetchHelper)).then(() => pageData)\n })\n }\n\n loadPageDataJson(rawPath) {\n return super.loadPageDataJson(rawPath).then(data => {\n if (data.notFound) {\n if (shouldAbortFetch(rawPath)) {\n return data\n }\n // check if html file exist using HEAD request:\n // if it does we should navigate to it instead of showing 404\n return doFetch(rawPath, `HEAD`).then(req => {\n if (req.status === 200) {\n // page (.html file) actually exist (or we asked for 404 )\n // returning page resources status as errored to trigger\n // regular browser navigation to given page\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n // if HEAD request wasn't 200, return notFound result\n // and show 404 page\n return data\n })\n }\n return data\n })\n }\n\n loadPartialHydrationJson(rawPath) {\n return super.loadPartialHydrationJson(rawPath).then(data => {\n if (data.notFound) {\n if (shouldAbortFetch(rawPath)) {\n return data\n }\n // check if html file exist using HEAD request:\n // if it does we should navigate to it instead of showing 404\n return doFetch(rawPath, `HEAD`).then(req => {\n if (req.status === 200) {\n // page (.html file) actually exist (or we asked for 404 )\n // returning page resources status as errored to trigger\n // regular browser navigation to given page\n return {\n status: PageResourceStatus.Error,\n }\n }\n\n // if HEAD request wasn't 200, return notFound result\n // and show 404 page\n return data\n })\n }\n return data\n })\n }\n}\n\nlet instance\n\nexport const setLoader = _loader => {\n instance = _loader\n}\n\nexport const publicLoader = {\n enqueue: rawPath => instance.prefetch(rawPath),\n\n // Real methods\n getResourceURLsForPathname: rawPath =>\n instance.getResourceURLsForPathname(rawPath),\n loadPage: rawPath => instance.loadPage(rawPath),\n // TODO add deprecation to v4 so people use withErrorDetails and then we can remove in v5 and change default behaviour\n loadPageSync: (rawPath, options = {}) =>\n instance.loadPageSync(rawPath, options),\n prefetch: rawPath => instance.prefetch(rawPath),\n isPageNotFound: rawPath => instance.isPageNotFound(rawPath),\n hovering: rawPath => instance.hovering(rawPath),\n loadAppData: () => instance.loadAppData(),\n}\n\nexport default publicLoader\n\nexport function getStaticQueryResults() {\n if (instance) {\n return instance.staticQueryDb\n } else {\n return {}\n }\n}\n\nexport function getSliceResults() {\n if (instance) {\n return instance.slicesDb\n } else {\n return {}\n }\n}\n","import { useEffect } from \"react\"\n\n/*\n * Calls callback in an effect and renders children\n */\nexport function FireCallbackInEffect({ children, callback }) {\n useEffect(() => {\n callback()\n })\n\n return children\n}\n","export const VALID_NODE_NAMES = [\n `link`,\n `meta`,\n `style`,\n `title`,\n `base`,\n `noscript`,\n `script`,\n `html`,\n `body`,\n]\n","import { VALID_NODE_NAMES } from \"./constants\"\n\n/**\n * Filter the props coming from a page down to just the ones that are relevant for head.\n * This e.g. filters out properties that are undefined during SSR.\n */\nexport function filterHeadProps(input) {\n return {\n location: {\n pathname: input.location.pathname,\n },\n params: input.params,\n data: input.data || {},\n serverData: input.serverData,\n pageContext: input.pageContext,\n }\n}\n\n/**\n * Throw error if Head export is not a valid function\n */\nexport function headExportValidator(head) {\n if (typeof head !== `function`)\n throw new Error(\n `Expected \"Head\" export to be a function got \"${typeof head}\".`\n )\n}\n\n/**\n * Warn once for same messsage\n */\nlet warnOnce = _ => {}\nif (process.env.NODE_ENV !== `production`) {\n const warnings = new Set()\n warnOnce = msg => {\n if (!warnings.has(msg)) {\n console.warn(msg)\n }\n warnings.add(msg)\n }\n}\n\n/**\n * Warn for invalid tags in Head which may have been directly added or introduced by `wrapRootElement`\n * @param {string} tagName\n */\nexport function warnForInvalidTag(tagName) {\n if (process.env.NODE_ENV !== `production`) {\n const warning = createWarningForInvalidTag(tagName)\n warnOnce(warning)\n }\n}\n\nfunction createWarningForInvalidTag(tagName) {\n return `<${tagName}> is not a valid head element. Please use one of the following: ${VALID_NODE_NAMES.join(\n `, `\n )}.\\n\\nAlso make sure that wrapRootElement in gatsby-ssr/gatsby-browser doesn't contain UI elements: https://gatsby.dev/invalid-head-elements`\n}\n\n/**\n * When a `nonce` is present on an element, browsers such as Chrome and Firefox strip it out of the\n * actual HTML attributes for security reasons *when the element is added to the document*. Thus,\n * given two equivalent elements that have nonces, `Element,isEqualNode()` will return false if one\n * of those elements gets added to the document. Although the `element.nonce` property will be the\n * same for both elements, the one that was added to the document will return an empty string for\n * its nonce HTML attribute value.\n *\n * This custom `isEqualNode()` function therefore removes the nonce value from the `newTag` before\n * comparing it to `oldTag`, restoring it afterwards.\n *\n * For more information, see:\n * https://bugs.chromium.org/p/chromium/issues/detail?id=1211471#c12\n */\nexport function isEqualNode(oldTag, newTag) {\n if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) {\n const nonce = newTag.getAttribute(`nonce`)\n // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not\n // be stripped if there is no content security policy response header that includes a nonce.\n if (nonce && !oldTag.getAttribute(`nonce`)) {\n const cloneTag = newTag.cloneNode(true)\n cloneTag.setAttribute(`nonce`, ``)\n cloneTag.nonce = nonce\n return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag)\n }\n }\n\n return oldTag.isEqualNode(newTag)\n}\n\nexport function diffNodes({ oldNodes, newNodes, onStale, onNew }) {\n for (const existingHeadElement of oldNodes) {\n const indexInNewNodes = newNodes.findIndex(e =>\n isEqualNode(e, existingHeadElement)\n )\n\n if (indexInNewNodes === -1) {\n onStale(existingHeadElement)\n } else {\n // this node is re-created as-is, so we keep old node, and remove it from list of new nodes (as we handled it already here)\n newNodes.splice(indexInNewNodes, 1)\n }\n }\n\n // remaing new nodes didn't have matching old node, so need to be added\n for (const newNode of newNodes) {\n onNew(newNode)\n }\n}\n\nexport function getValidHeadNodesAndAttributes(\n rootNode,\n htmlAndBodyAttributes = {\n html: {},\n body: {},\n }\n) {\n const seenIds = new Map()\n const validHeadNodes = []\n\n // Filter out non-element nodes before looping since we don't care about them\n for (const node of rootNode.childNodes) {\n const nodeName = node.nodeName.toLowerCase()\n const id = node.attributes?.id?.value\n\n if (!isElementType(node)) continue\n\n if (isValidNodeName(nodeName)) {\n // and tags are treated differently, in that we don't render them, we only extract the attributes and apply them separetely\n if (nodeName === `html` || nodeName === `body`) {\n for (const attribute of node.attributes) {\n const isStyleAttribute = attribute.name === `style`\n\n // Merge attributes for same nodeName from previous loop iteration\n htmlAndBodyAttributes[nodeName] = {\n ...htmlAndBodyAttributes[nodeName],\n }\n\n if (!isStyleAttribute) {\n htmlAndBodyAttributes[nodeName][attribute.name] = attribute.value\n }\n\n // If there is already a style attribute, we need to merge them as otherwise the last one will \"win\"\n if (isStyleAttribute) {\n htmlAndBodyAttributes[nodeName].style = `${\n htmlAndBodyAttributes[nodeName]?.style\n ? htmlAndBodyAttributes[nodeName].style\n : ``\n }${attribute.value} `\n }\n }\n } else {\n let clonedNode = node.cloneNode(true)\n clonedNode.setAttribute(`data-gatsby-head`, true)\n\n // // This is hack to make script tags work\n if (clonedNode.nodeName.toLowerCase() === `script`) {\n clonedNode = massageScript(clonedNode)\n }\n // Duplicate ids are not allowed in the head, so we need to dedupe them\n if (id) {\n if (!seenIds.has(id)) {\n validHeadNodes.push(clonedNode)\n seenIds.set(id, validHeadNodes.length - 1)\n } else {\n const indexOfPreviouslyInsertedNode = seenIds.get(id)\n validHeadNodes[\n indexOfPreviouslyInsertedNode\n ].parentNode?.removeChild(\n validHeadNodes[indexOfPreviouslyInsertedNode]\n )\n validHeadNodes[indexOfPreviouslyInsertedNode] = clonedNode\n }\n } else {\n validHeadNodes.push(clonedNode)\n }\n }\n } else {\n warnForInvalidTag(nodeName)\n }\n\n if (node.childNodes.length) {\n validHeadNodes.push(\n ...getValidHeadNodesAndAttributes(node, htmlAndBodyAttributes)\n .validHeadNodes\n )\n }\n }\n\n return { validHeadNodes, htmlAndBodyAttributes }\n}\n\nfunction massageScript(node) {\n const script = document.createElement(`script`)\n for (const attr of node.attributes) {\n script.setAttribute(attr.name, attr.value)\n }\n script.innerHTML = node.innerHTML\n\n return script\n}\n\nexport function isValidNodeName(nodeName) {\n return VALID_NODE_NAMES.includes(nodeName)\n}\n/*\n * For Head, we only care about element nodes(type = 1), so this util is used to skip over non-element nodes\n * For Node type, see https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType\n */\nexport function isElementType(node) {\n return node.nodeType === 1\n}\n\n/**\n * Removes all the head elements that were added by `Head`\n */\nexport function removePrevHeadElements() {\n const prevHeadNodes = document.querySelectorAll(`[data-gatsby-head]`)\n for (const node of prevHeadNodes) {\n node.parentNode.removeChild(node)\n }\n}\n\nexport function applyHtmlAndBodyAttributes(htmlAndBodyAttributes) {\n if (!htmlAndBodyAttributes) return\n\n const { html, body } = htmlAndBodyAttributes\n\n const htmlElement = document.querySelector(`html`)\n if (htmlElement) {\n Object.entries(html).forEach(([attributeName, attributeValue]) => {\n htmlElement.setAttribute(attributeName, attributeValue)\n })\n }\n\n const bodyElement = document.querySelector(`body`)\n if (bodyElement) {\n Object.entries(body).forEach(([attributeName, attributeValue]) => {\n bodyElement.setAttribute(attributeName, attributeValue)\n })\n }\n}\n\nexport function removeHtmlAndBodyAttributes(htmlAndBodyattributeList) {\n if (!htmlAndBodyattributeList) return\n\n const { html, body } = htmlAndBodyattributeList\n\n if (html) {\n const htmlElement = document.querySelector(`html`)\n html.forEach(attributeName => {\n if (htmlElement) {\n htmlElement.removeAttribute(attributeName)\n }\n })\n }\n\n if (body) {\n const bodyElement = document.querySelector(`body`)\n body.forEach(attributeName => {\n if (bodyElement) {\n bodyElement.removeAttribute(attributeName)\n }\n })\n }\n}\n","import React from \"react\"\nimport { useEffect } from \"react\"\nimport { StaticQueryContext } from \"gatsby\"\nimport { LocationProvider } from \"@gatsbyjs/reach-router\"\nimport { reactDOMUtils } from \"../react-dom-utils\"\nimport { FireCallbackInEffect } from \"./components/fire-callback-in-effect\"\nimport {\n headExportValidator,\n filterHeadProps,\n diffNodes,\n getValidHeadNodesAndAttributes,\n removePrevHeadElements,\n applyHtmlAndBodyAttributes,\n removeHtmlAndBodyAttributes,\n} from \"./utils\"\nimport { apiRunner } from \"../api-runner-browser\"\n\nconst hiddenRoot = document.createElement(`div`)\nconst keysOfHtmlAndBodyAttributes = {\n html: [],\n body: [],\n}\n\nconst onHeadRendered = () => {\n const { validHeadNodes, htmlAndBodyAttributes } =\n getValidHeadNodesAndAttributes(hiddenRoot)\n\n keysOfHtmlAndBodyAttributes.html = Object.keys(htmlAndBodyAttributes.html)\n keysOfHtmlAndBodyAttributes.body = Object.keys(htmlAndBodyAttributes.body)\n\n applyHtmlAndBodyAttributes(htmlAndBodyAttributes)\n\n /**\n * The rest of the code block below is a diffing mechanism to ensure that\n * the head elements aren't duplicted on every re-render.\n */\n const existingHeadElements = document.querySelectorAll(`[data-gatsby-head]`)\n\n if (existingHeadElements.length === 0) {\n document.head.append(...validHeadNodes)\n return\n }\n\n const newHeadNodes = []\n diffNodes({\n oldNodes: existingHeadElements,\n newNodes: validHeadNodes,\n onStale: node => node.parentNode.removeChild(node),\n onNew: node => newHeadNodes.push(node),\n })\n\n document.head.append(...newHeadNodes)\n}\n\nif (process.env.BUILD_STAGE === `develop`) {\n // sigh ... and elements are not valid descedents of
(our hidden element)\n // react-dom in dev mode will warn about this. There doesn't seem to be a way to render arbitrary\n // user Head without hitting this issue (our hidden element could be just \"new Document()\", but\n // this can only have 1 child, and we don't control what is being rendered so that's not an option)\n // instead we continue to render to
, and just silence warnings for and elements\n // https://github.com/facebook/react/blob/e2424f33b3ad727321fc12e75c5e94838e84c2b5/packages/react-dom-bindings/src/client/validateDOMNesting.js#L498-L520\n const originalConsoleError = console.error.bind(console)\n console.error = (...args) => {\n if (\n Array.isArray(args) &&\n args.length >= 2 &&\n args[0]?.includes?.(`validateDOMNesting(...): %s cannot appear as`) &&\n (args[1] === `` || args[1] === ``)\n ) {\n return undefined\n }\n return originalConsoleError(...args)\n }\n\n /* We set up observer to be able to regenerate after react-refresh\n updates our hidden element.\n */\n const observer = new MutationObserver(onHeadRendered)\n observer.observe(hiddenRoot, {\n attributes: true,\n childList: true,\n characterData: true,\n subtree: true,\n })\n}\n\nexport function headHandlerForBrowser({\n pageComponent,\n staticQueryResults,\n pageComponentProps,\n}) {\n useEffect(() => {\n if (pageComponent?.Head) {\n headExportValidator(pageComponent.Head)\n\n const { render } = reactDOMUtils()\n\n const HeadElement = (\n \n )\n\n const WrapHeadElement = apiRunner(\n `wrapRootElement`,\n { element: HeadElement },\n HeadElement,\n ({ result }) => {\n return { element: result }\n }\n ).pop()\n\n render(\n // just a hack to call the callback after react has done first render\n // Note: In dev, we call onHeadRendered twice( in FireCallbackInEffect and after mutualution observer dectects initail render into hiddenRoot) this is for hot reloading\n // In Prod we only call onHeadRendered in FireCallbackInEffect to render to head\n \n \n {WrapHeadElement}\n \n ,\n hiddenRoot\n )\n }\n\n return () => {\n removePrevHeadElements()\n removeHtmlAndBodyAttributes(keysOfHtmlAndBodyAttributes)\n }\n })\n}\n","import React, { Suspense, createElement } from \"react\"\nimport PropTypes from \"prop-types\"\nimport { apiRunner } from \"./api-runner-browser\"\nimport { grabMatchParams } from \"./find-path\"\nimport { headHandlerForBrowser } from \"./head/head-export-handler-for-browser\"\n\n// Renders page\nfunction PageRenderer(props) {\n const pageComponentProps = {\n ...props,\n params: {\n ...grabMatchParams(props.location.pathname),\n ...props.pageResources.json.pageContext.__params,\n },\n }\n\n const preferDefault = m => (m && m.default) || m\n\n let pageElement\n if (props.pageResources.partialHydration) {\n pageElement = props.pageResources.partialHydration\n } else {\n pageElement = createElement(preferDefault(props.pageResources.component), {\n ...pageComponentProps,\n key: props.path || props.pageResources.page.path,\n })\n }\n\n const pageComponent = props.pageResources.head\n\n headHandlerForBrowser({\n pageComponent,\n staticQueryResults: props.pageResources.staticQueryResults,\n pageComponentProps,\n })\n\n const wrappedPage = apiRunner(\n `wrapPageElement`,\n {\n element: pageElement,\n props: pageComponentProps,\n },\n pageElement,\n ({ result }) => {\n return { element: result, props: pageComponentProps }\n }\n ).pop()\n\n return wrappedPage\n}\n\nPageRenderer.propTypes = {\n location: PropTypes.object.isRequired,\n pageResources: PropTypes.object.isRequired,\n data: PropTypes.object,\n pageContext: PropTypes.object.isRequired,\n}\n\nexport default PageRenderer\n","// This is extracted to separate module because it's shared\n// between browser and SSR code\nexport const RouteAnnouncerProps = {\n id: `gatsby-announcer`,\n style: {\n position: `absolute`,\n top: 0,\n width: 1,\n height: 1,\n padding: 0,\n overflow: `hidden`,\n clip: `rect(0, 0, 0, 0)`,\n whiteSpace: `nowrap`,\n border: 0,\n },\n \"aria-live\": `assertive`,\n \"aria-atomic\": `true`,\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport loader, { PageResourceStatus } from \"./loader\"\nimport { maybeGetBrowserRedirect } from \"./redirect-utils.js\"\nimport { apiRunner } from \"./api-runner-browser\"\nimport emitter from \"./emitter\"\nimport { RouteAnnouncerProps } from \"./route-announcer-props\"\nimport {\n navigate as reachNavigate,\n globalHistory,\n} from \"@gatsbyjs/reach-router\"\nimport { parsePath } from \"gatsby-link\"\n\nfunction maybeRedirect(pathname) {\n const redirect = maybeGetBrowserRedirect(pathname)\n const { hash, search } = window.location\n\n if (redirect != null) {\n window.___replace(redirect.toPath + search + hash)\n return true\n } else {\n return false\n }\n}\n\n// Catch unhandled chunk loading errors and force a restart of the app.\nlet nextRoute = ``\n\nwindow.addEventListener(`unhandledrejection`, event => {\n if (/loading chunk \\d* failed./i.test(event.reason)) {\n if (nextRoute) {\n window.location.pathname = nextRoute\n }\n }\n})\n\nconst onPreRouteUpdate = (location, prevLocation) => {\n if (!maybeRedirect(location.pathname)) {\n nextRoute = location.pathname\n apiRunner(`onPreRouteUpdate`, { location, prevLocation })\n }\n}\n\nconst onRouteUpdate = (location, prevLocation) => {\n if (!maybeRedirect(location.pathname)) {\n apiRunner(`onRouteUpdate`, { location, prevLocation })\n if (\n process.env.GATSBY_QUERY_ON_DEMAND &&\n process.env.GATSBY_QUERY_ON_DEMAND_LOADING_INDICATOR === `true`\n ) {\n emitter.emit(`onRouteUpdate`, { location, prevLocation })\n }\n }\n}\n\nconst navigate = (to, options = {}) => {\n // Support forward/backward navigation with numbers\n // navigate(-2) (jumps back 2 history steps)\n // navigate(2) (jumps forward 2 history steps)\n if (typeof to === `number`) {\n globalHistory.navigate(to)\n return\n }\n\n const { pathname, search, hash } = parsePath(to)\n const redirect = maybeGetBrowserRedirect(pathname)\n\n // If we're redirecting, just replace the passed in pathname\n // to the one we want to redirect to.\n if (redirect) {\n to = redirect.toPath + search + hash\n }\n\n // If we had a service worker update, no matter the path, reload window and\n // reset the pathname whitelist\n if (window.___swUpdated) {\n window.location = pathname + search + hash\n return\n }\n\n // Start a timer to wait for a second before transitioning and showing a\n // loader in case resources aren't around yet.\n const timeoutId = setTimeout(() => {\n emitter.emit(`onDelayedLoadPageResources`, { pathname })\n apiRunner(`onRouteUpdateDelayed`, {\n location: window.location,\n })\n }, 1000)\n\n loader.loadPage(pathname + search).then(pageResources => {\n // If no page resources, then refresh the page\n // Do this, rather than simply `window.location.reload()`, so that\n // pressing the back/forward buttons work - otherwise when pressing\n // back, the browser will just change the URL and expect JS to handle\n // the change, which won't always work since it might not be a Gatsby\n // page.\n if (!pageResources || pageResources.status === PageResourceStatus.Error) {\n window.history.replaceState({}, ``, location.href)\n window.location = pathname\n clearTimeout(timeoutId)\n return\n }\n\n // If the loaded page has a different compilation hash to the\n // window, then a rebuild has occurred on the server. Reload.\n if (process.env.NODE_ENV === `production` && pageResources) {\n if (\n pageResources.page.webpackCompilationHash !==\n window.___webpackCompilationHash\n ) {\n // Purge plugin-offline cache\n if (\n `serviceWorker` in navigator &&\n navigator.serviceWorker.controller !== null &&\n navigator.serviceWorker.controller.state === `activated`\n ) {\n navigator.serviceWorker.controller.postMessage({\n gatsbyApi: `clearPathResources`,\n })\n }\n\n window.location = pathname + search + hash\n }\n }\n reachNavigate(to, options)\n clearTimeout(timeoutId)\n })\n}\n\nfunction shouldUpdateScroll(prevRouterProps, { location }) {\n const { pathname, hash } = location\n const results = apiRunner(`shouldUpdateScroll`, {\n prevRouterProps,\n // `pathname` for backwards compatibility\n pathname,\n routerProps: { location },\n getSavedScrollPosition: args => [\n 0,\n // FIXME this is actually a big code smell, we should fix this\n // eslint-disable-next-line @babel/no-invalid-this\n this._stateStorage.read(args, args.key),\n ],\n })\n if (results.length > 0) {\n // Use the latest registered shouldUpdateScroll result, this allows users to override plugin's configuration\n // @see https://github.com/gatsbyjs/gatsby/issues/12038\n return results[results.length - 1]\n }\n\n if (prevRouterProps) {\n const {\n location: { pathname: oldPathname },\n } = prevRouterProps\n if (oldPathname === pathname) {\n // Scroll to element if it exists, if it doesn't, or no hash is provided,\n // scroll to top.\n return hash ? decodeURI(hash.slice(1)) : [0, 0]\n }\n }\n return true\n}\n\nfunction init() {\n // The \"scroll-behavior\" package expects the \"action\" to be on the location\n // object so let's copy it over.\n globalHistory.listen(args => {\n args.location.action = args.action\n })\n\n window.___push = to => navigate(to, { replace: false })\n window.___replace = to => navigate(to, { replace: true })\n window.___navigate = (to, options) => navigate(to, options)\n}\n\nclass RouteAnnouncer extends React.Component {\n constructor(props) {\n super(props)\n this.announcementRef = React.createRef()\n }\n\n componentDidUpdate(prevProps, nextProps) {\n requestAnimationFrame(() => {\n let pageName = `new page at ${this.props.location.pathname}`\n if (document.title) {\n pageName = document.title\n }\n const pageHeadings = document.querySelectorAll(`#gatsby-focus-wrapper h1`)\n if (pageHeadings && pageHeadings.length) {\n pageName = pageHeadings[0].textContent\n }\n const newAnnouncement = `Navigated to ${pageName}`\n if (this.announcementRef.current) {\n const oldAnnouncement = this.announcementRef.current.innerText\n if (oldAnnouncement !== newAnnouncement) {\n this.announcementRef.current.innerText = newAnnouncement\n }\n }\n })\n }\n\n render() {\n return
\n }\n}\n\nconst compareLocationProps = (prevLocation, nextLocation) => {\n if (prevLocation.href !== nextLocation.href) {\n return true\n }\n\n if (prevLocation?.state?.key !== nextLocation?.state?.key) {\n return true\n }\n\n return false\n}\n\n// Fire on(Pre)RouteUpdate APIs\nclass RouteUpdates extends React.Component {\n constructor(props) {\n super(props)\n onPreRouteUpdate(props.location, null)\n }\n\n componentDidMount() {\n onRouteUpdate(this.props.location, null)\n }\n\n shouldComponentUpdate(nextProps) {\n if (compareLocationProps(this.props.location, nextProps.location)) {\n onPreRouteUpdate(nextProps.location, this.props.location)\n return true\n }\n return false\n }\n\n componentDidUpdate(prevProps) {\n if (compareLocationProps(prevProps.location, this.props.location)) {\n onRouteUpdate(this.props.location, prevProps.location)\n }\n }\n\n render() {\n return (\n \n {this.props.children}\n \n \n )\n }\n}\n\nRouteUpdates.propTypes = {\n location: PropTypes.object.isRequired,\n}\n\nexport { init, shouldUpdateScroll, RouteUpdates, maybeGetBrowserRedirect }\n","// Pulled from react-compat\n// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349\nfunction shallowDiffers(a, b) {\n for (var i in a) {\n if (!(i in b)) return true;\n }for (var _i in b) {\n if (a[_i] !== b[_i]) return true;\n }return false;\n}\n\nexport default (function (instance, nextProps, nextState) {\n return shallowDiffers(instance.props, nextProps) || shallowDiffers(instance.state, nextState);\n});","import React from \"react\"\nimport loader, { PageResourceStatus } from \"./loader\"\nimport shallowCompare from \"shallow-compare\"\n\nclass EnsureResources extends React.Component {\n constructor(props) {\n super()\n const { location, pageResources } = props\n this.state = {\n location: { ...location },\n pageResources:\n pageResources ||\n loader.loadPageSync(location.pathname + location.search, {\n withErrorDetails: true,\n }),\n }\n }\n\n static getDerivedStateFromProps({ location }, prevState) {\n if (prevState.location.href !== location.href) {\n const pageResources = loader.loadPageSync(\n location.pathname + location.search,\n {\n withErrorDetails: true,\n }\n )\n\n return {\n pageResources,\n location: { ...location },\n }\n }\n\n return {\n location: { ...location },\n }\n }\n\n loadResources(rawPath) {\n loader.loadPage(rawPath).then(pageResources => {\n if (pageResources && pageResources.status !== PageResourceStatus.Error) {\n this.setState({\n location: { ...window.location },\n pageResources,\n })\n } else {\n window.history.replaceState({}, ``, location.href)\n window.location = rawPath\n }\n })\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n // Always return false if we're missing resources.\n if (!nextState.pageResources) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n if (\n process.env.BUILD_STAGE === `develop` &&\n nextState.pageResources.stale\n ) {\n this.loadResources(\n nextProps.location.pathname + nextProps.location.search\n )\n return false\n }\n\n // Check if the component or json have changed.\n if (this.state.pageResources !== nextState.pageResources) {\n return true\n }\n if (\n this.state.pageResources.component !== nextState.pageResources.component\n ) {\n return true\n }\n\n if (this.state.pageResources.json !== nextState.pageResources.json) {\n return true\n }\n // Check if location has changed on a page using internal routing\n // via matchPath configuration.\n if (\n this.state.location.key !== nextState.location.key &&\n nextState.pageResources.page &&\n (nextState.pageResources.page.matchPath ||\n nextState.pageResources.page.path)\n ) {\n return true\n }\n return shallowCompare(this, nextProps, nextState)\n }\n\n render() {\n if (\n process.env.NODE_ENV !== `production` &&\n (!this.state.pageResources ||\n this.state.pageResources.status === PageResourceStatus.Error)\n ) {\n const message = `EnsureResources was not able to find resources for path: \"${this.props.location.pathname}\"\nThis typically means that an issue occurred building components for that path.\nRun \\`gatsby clean\\` to remove any cached elements.`\n if (this.state.pageResources?.error) {\n console.error(message)\n throw this.state.pageResources.error\n }\n\n throw new Error(message)\n }\n\n return this.props.children(this.state)\n }\n}\n\nexport default EnsureResources\n","import { apiRunner, apiRunnerAsync } from \"./api-runner-browser\"\nimport React from \"react\"\nimport { Router, navigate, Location, BaseContext } from \"@gatsbyjs/reach-router\"\nimport { ScrollContext } from \"gatsby-react-router-scroll\"\nimport { StaticQueryContext } from \"./static-query\"\nimport {\n SlicesMapContext,\n SlicesContext,\n SlicesResultsContext,\n} from \"./slice/context\"\nimport {\n shouldUpdateScroll,\n init as navigationInit,\n RouteUpdates,\n} from \"./navigation\"\nimport emitter from \"./emitter\"\nimport PageRenderer from \"./page-renderer\"\nimport asyncRequires from \"$virtual/async-requires\"\nimport {\n setLoader,\n ProdLoader,\n publicLoader,\n PageResourceStatus,\n getStaticQueryResults,\n getSliceResults,\n} from \"./loader\"\nimport EnsureResources from \"./ensure-resources\"\nimport stripPrefix from \"./strip-prefix\"\n\n// Generated during bootstrap\nimport matchPaths from \"$virtual/match-paths.json\"\nimport { reactDOMUtils } from \"./react-dom-utils\"\n\nconst loader = new ProdLoader(asyncRequires, matchPaths, window.pageData)\nsetLoader(loader)\nloader.setApiRunner(apiRunner)\n\nconst { render, hydrate } = reactDOMUtils()\n\nwindow.asyncRequires = asyncRequires\nwindow.___emitter = emitter\nwindow.___loader = publicLoader\n\nnavigationInit()\n\nconst reloadStorageKey = `gatsby-reload-compilation-hash-match`\n\napiRunnerAsync(`onClientEntry`).then(() => {\n // Let plugins register a service worker. The plugin just needs\n // to return true.\n if (apiRunner(`registerServiceWorker`).filter(Boolean).length > 0) {\n require(`./register-service-worker`)\n }\n\n // In gatsby v2 if Router is used in page using matchPaths\n // paths need to contain full path.\n // For example:\n // - page have `/app/*` matchPath\n // - inside template user needs to use `/app/xyz` as path\n // Resetting `basepath`/`baseuri` keeps current behaviour\n // to not introduce breaking change.\n // Remove this in v3\n const RouteHandler = props => (\n \n \n \n )\n\n const DataContext = React.createContext({})\n\n const slicesContext = {\n renderEnvironment: `browser`,\n }\n\n class GatsbyRoot extends React.Component {\n render() {\n const { children } = this.props\n return (\n \n {({ location }) => (\n \n {({ pageResources, location }) => {\n const staticQueryResults = getStaticQueryResults()\n const sliceResults = getSliceResults()\n\n return (\n \n \n \n \n \n {children}\n \n \n \n \n \n )\n }}\n \n )}\n \n )\n }\n }\n\n class LocationHandler extends React.Component {\n render() {\n return (\n \n {({ pageResources, location }) => (\n \n \n \n \n \n \n \n )}\n \n )\n }\n }\n\n const { pagePath, location: browserLoc } = window\n\n // Explicitly call navigate if the canonical path (window.pagePath)\n // is different to the browser path (window.location.pathname). SSR\n // page paths might include search params, while SSG and DSG won't.\n // If page path include search params we also compare query params.\n // But only if NONE of the following conditions hold:\n //\n // - The url matches a client side route (page.matchPath)\n // - it's a 404 page\n // - it's the offline plugin shell (/offline-plugin-app-shell-fallback/)\n if (\n pagePath &&\n __BASE_PATH__ + pagePath !==\n browserLoc.pathname + (pagePath.includes(`?`) ? browserLoc.search : ``) &&\n !(\n loader.findMatchPath(stripPrefix(browserLoc.pathname, __BASE_PATH__)) ||\n pagePath.match(/^\\/(404|500)(\\/?|.html)$/) ||\n pagePath.match(/^\\/offline-plugin-app-shell-fallback\\/?$/)\n )\n ) {\n navigate(\n __BASE_PATH__ +\n pagePath +\n (!pagePath.includes(`?`) ? browserLoc.search : ``) +\n browserLoc.hash,\n {\n replace: true,\n }\n )\n }\n\n // It's possible that sessionStorage can throw an exception if access is not granted, see https://github.com/gatsbyjs/gatsby/issues/34512\n const getSessionStorage = () => {\n try {\n return sessionStorage\n } catch {\n return null\n }\n }\n\n publicLoader.loadPage(browserLoc.pathname + browserLoc.search).then(page => {\n const sessionStorage = getSessionStorage()\n\n if (\n page?.page?.webpackCompilationHash &&\n page.page.webpackCompilationHash !== window.___webpackCompilationHash\n ) {\n // Purge plugin-offline cache\n if (\n `serviceWorker` in navigator &&\n navigator.serviceWorker.controller !== null &&\n navigator.serviceWorker.controller.state === `activated`\n ) {\n navigator.serviceWorker.controller.postMessage({\n gatsbyApi: `clearPathResources`,\n })\n }\n\n // We have not matching html + js (inlined `window.___webpackCompilationHash`)\n // with our data (coming from `app-data.json` file). This can cause issues such as\n // errors trying to load static queries (as list of static queries is inside `page-data`\n // which might not match to currently loaded `.js` scripts).\n // We are making attempt to reload if hashes don't match, but we also have to handle case\n // when reload doesn't fix it (possibly broken deploy) so we don't end up in infinite reload loop\n if (sessionStorage) {\n const isReloaded = sessionStorage.getItem(reloadStorageKey) === `1`\n\n if (!isReloaded) {\n sessionStorage.setItem(reloadStorageKey, `1`)\n window.location.reload(true)\n return\n }\n }\n }\n\n if (sessionStorage) {\n sessionStorage.removeItem(reloadStorageKey)\n }\n\n if (!page || page.status === PageResourceStatus.Error) {\n const message = `page resources for ${browserLoc.pathname} not found. Not rendering React`\n\n // if the chunk throws an error we want to capture the real error\n // This should help with https://github.com/gatsbyjs/gatsby/issues/19618\n if (page && page.error) {\n console.error(message)\n throw page.error\n }\n\n throw new Error(message)\n }\n\n const SiteRoot = apiRunner(\n `wrapRootElement`,\n { element: },\n ,\n ({ result }) => {\n return { element: result }\n }\n ).pop()\n\n const App = function App() {\n const onClientEntryRanRef = React.useRef(false)\n\n React.useEffect(() => {\n if (!onClientEntryRanRef.current) {\n onClientEntryRanRef.current = true\n if (performance.mark) {\n performance.mark(`onInitialClientRender`)\n }\n\n apiRunner(`onInitialClientRender`)\n }\n }, [])\n\n return {SiteRoot}\n }\n\n const focusEl = document.getElementById(`gatsby-focus-wrapper`)\n\n // Client only pages have any empty body so we just do a normal\n // render to avoid React complaining about hydration mis-matches.\n let defaultRenderer = render\n if (focusEl && focusEl.children.length) {\n defaultRenderer = hydrate\n }\n\n const renderer = apiRunner(\n `replaceHydrateFunction`,\n undefined,\n defaultRenderer\n )[0]\n\n function runRender() {\n const rootElement =\n typeof window !== `undefined`\n ? document.getElementById(`___gatsby`)\n : null\n\n renderer(, rootElement)\n }\n\n // https://github.com/madrobby/zepto/blob/b5ed8d607f67724788ec9ff492be297f64d47dfc/src/zepto.js#L439-L450\n // TODO remove IE 10 support\n const doc = document\n if (\n doc.readyState === `complete` ||\n (doc.readyState !== `loading` && !doc.documentElement.doScroll)\n ) {\n setTimeout(function () {\n runRender()\n }, 0)\n } else {\n const handler = function () {\n doc.removeEventListener(`DOMContentLoaded`, handler, false)\n window.removeEventListener(`load`, handler, false)\n\n runRender()\n }\n\n doc.addEventListener(`DOMContentLoaded`, handler, false)\n window.addEventListener(`load`, handler, false)\n }\n\n return\n })\n})\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nimport loader from \"./loader\"\nimport InternalPageRenderer from \"./page-renderer\"\n\nconst ProdPageRenderer = ({ location }) => {\n const pageResources = loader.loadPageSync(location.pathname)\n if (!pageResources) {\n return null\n }\n return React.createElement(InternalPageRenderer, {\n location,\n pageResources,\n ...pageResources.json,\n })\n}\n\nProdPageRenderer.propTypes = {\n location: PropTypes.shape({\n pathname: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nexport default ProdPageRenderer\n","const preferDefault = m => (m && m.default) || m\n\nif (process.env.BUILD_STAGE === `develop`) {\n module.exports = preferDefault(require(`./public-page-renderer-dev`))\n} else if (process.env.BUILD_STAGE === `build-javascript`) {\n module.exports = preferDefault(require(`./public-page-renderer-prod`))\n} else {\n module.exports = () => null\n}\n","const map = new WeakMap()\n\nexport function reactDOMUtils() {\n const reactDomClient = require(`react-dom/client`)\n\n const render = (Component, el) => {\n let root = map.get(el)\n if (!root) {\n map.set(el, (root = reactDomClient.createRoot(el)))\n }\n root.render(Component)\n }\n\n const hydrate = (Component, el) => reactDomClient.hydrateRoot(el, Component)\n\n return { render, hydrate }\n}\n","import redirects from \"./redirects.json\"\n\n// Convert to a map for faster lookup in maybeRedirect()\n\nconst redirectMap = new Map()\nconst redirectIgnoreCaseMap = new Map()\n\nredirects.forEach(redirect => {\n if (redirect.ignoreCase) {\n redirectIgnoreCaseMap.set(redirect.fromPath, redirect)\n } else {\n redirectMap.set(redirect.fromPath, redirect)\n }\n})\n\nexport function maybeGetBrowserRedirect(pathname) {\n let redirect = redirectMap.get(pathname)\n if (!redirect) {\n redirect = redirectIgnoreCaseMap.get(pathname.toLowerCase())\n }\n return redirect\n}\n","import { apiRunner } from \"./api-runner-browser\"\n\nif (\n window.location.protocol !== `https:` &&\n window.location.hostname !== `localhost`\n) {\n console.error(\n `Service workers can only be used over HTTPS, or on localhost for development`\n )\n} else if (`serviceWorker` in navigator) {\n navigator.serviceWorker\n .register(`${__BASE_PATH__}/sw.js`)\n .then(function (reg) {\n reg.addEventListener(`updatefound`, () => {\n apiRunner(`onServiceWorkerUpdateFound`, { serviceWorker: reg })\n // The updatefound event implies that reg.installing is set; see\n // https://w3c.github.io/ServiceWorker/#service-worker-registration-updatefound-event\n const installingWorker = reg.installing\n console.log(`installingWorker`, installingWorker)\n installingWorker.addEventListener(`statechange`, () => {\n switch (installingWorker.state) {\n case `installed`:\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and the fresh content will\n // have been added to the cache.\n\n // We set a flag so Gatsby Link knows to refresh the page on next navigation attempt\n window.___swUpdated = true\n // We call the onServiceWorkerUpdateReady API so users can show update prompts.\n apiRunner(`onServiceWorkerUpdateReady`, { serviceWorker: reg })\n\n // If resources failed for the current page, reload.\n if (window.___failedResources) {\n console.log(`resources failed, SW updated - reloading`)\n window.location.reload()\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a \"Content is cached for offline use.\" message.\n console.log(`Content is now available offline!`)\n\n // Post to service worker that install is complete.\n // Delay to allow time for the event listener to be added --\n // otherwise fetch is called too soon and resources aren't cached.\n apiRunner(`onServiceWorkerInstalled`, { serviceWorker: reg })\n }\n break\n\n case `redundant`:\n console.error(`The installing service worker became redundant.`)\n apiRunner(`onServiceWorkerRedundant`, { serviceWorker: reg })\n break\n\n case `activated`:\n apiRunner(`onServiceWorkerActive`, { serviceWorker: reg })\n break\n }\n })\n })\n })\n .catch(function (e) {\n console.error(`Error during service worker registration:`, e)\n })\n}\n","import React from \"react\"\n\nconst SlicesResultsContext = React.createContext({})\nconst SlicesContext = React.createContext({})\nconst SlicesMapContext = React.createContext({})\nconst SlicesPropsContext = React.createContext({})\n\nexport {\n SlicesResultsContext,\n SlicesContext,\n SlicesMapContext,\n SlicesPropsContext,\n}\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { createServerOrClientContext } from \"./context-utils\"\n\nconst StaticQueryContext = createServerOrClientContext(`StaticQuery`, {})\n\nfunction StaticQueryDataRenderer({ staticQueryData, data, query, render }) {\n const finalData = data\n ? data.data\n : staticQueryData[query] && staticQueryData[query].data\n\n return (\n \n {finalData && render(finalData)}\n {!finalData &&
Loading (StaticQuery)
}\n
\n )\n}\n\nlet warnedAboutStaticQuery = false\n\n// TODO(v6): Remove completely\nconst StaticQuery = props => {\n const { data, query, render, children } = props\n\n if (process.env.NODE_ENV === `development` && !warnedAboutStaticQuery) {\n console.warn(\n `The component is deprecated and will be removed in Gatsby v6. Use useStaticQuery instead. Refer to the migration guide for more information: https://gatsby.dev/migrating-4-to-5/#staticquery--is-deprecated`\n )\n warnedAboutStaticQuery = true\n }\n\n return (\n \n {staticQueryData => (\n \n )}\n \n )\n}\n\nStaticQuery.propTypes = {\n data: PropTypes.object,\n query: PropTypes.string.isRequired,\n render: PropTypes.func,\n children: PropTypes.func,\n}\n\nconst useStaticQuery = query => {\n if (\n typeof React.useContext !== `function` &&\n process.env.NODE_ENV === `development`\n ) {\n // TODO(v5): Remove since we require React >= 18\n throw new Error(\n `You're likely using a version of React that doesn't support Hooks\\n` +\n `Please update React and ReactDOM to 16.8.0 or later to use the useStaticQuery hook.`\n )\n }\n\n const context = React.useContext(StaticQueryContext)\n\n // query is a stringified number like `3303882` when wrapped with graphql, If a user forgets\n // to wrap the query in a grqphql, then casting it to a Number results in `NaN` allowing us to\n // catch the misuse of the API and give proper direction\n if (isNaN(Number(query))) {\n throw new Error(`useStaticQuery was called with a string but expects to be called using \\`graphql\\`. Try this:\n\nimport { useStaticQuery, graphql } from 'gatsby';\n\nuseStaticQuery(graphql\\`${query}\\`);\n`)\n }\n\n if (context[query]?.data) {\n return context[query].data\n } else {\n throw new Error(\n `The result of this StaticQuery could not be fetched.\\n\\n` +\n `This is likely a bug in Gatsby and if refreshing the page does not fix it, ` +\n `please open an issue in https://github.com/gatsbyjs/gatsby/issues`\n )\n }\n}\n\nexport { StaticQuery, StaticQueryContext, useStaticQuery }\n","import React from \"react\"\n\n// Ensure serverContext is not created more than once as React will throw when creating it more than once\n// https://github.com/facebook/react/blob/dd2d6522754f52c70d02c51db25eb7cbd5d1c8eb/packages/react/src/ReactServerContext.js#L101\nconst createServerContext = (name, defaultValue = null) => {\n /* eslint-disable no-undef */\n if (!globalThis.__SERVER_CONTEXT) {\n globalThis.__SERVER_CONTEXT = {}\n }\n\n if (!globalThis.__SERVER_CONTEXT[name]) {\n globalThis.__SERVER_CONTEXT[name] = React.createServerContext(\n name,\n defaultValue\n )\n }\n\n return globalThis.__SERVER_CONTEXT[name]\n}\n\nfunction createServerOrClientContext(name, defaultValue) {\n if (React.createServerContext) {\n return createServerContext(name, defaultValue)\n }\n\n return React.createContext(defaultValue)\n}\n\nexport { createServerOrClientContext }\n","/**\n * Remove a prefix from a string. Return the input string if the given prefix\n * isn't found.\n */\n\nexport default function stripPrefix(str, prefix = ``) {\n if (!prefix) {\n return str\n }\n\n if (str === prefix) {\n return `/`\n }\n\n if (str.startsWith(`${prefix}/`)) {\n return str.slice(prefix.length)\n }\n\n return str\n}\n","import { createSlice } from \"@reduxjs/toolkit\";\nimport { RootState } from \"../../store\";\n\nexport interface searchState {\n search: {\n query: string;\n results: any[];\n loading: boolean;\n error: string;\n };\n}\n\nconst initialState: searchState = {\n search: {\n query: \"\",\n results: [],\n loading: false,\n error: \"\",\n },\n};\n\nexport const searchSlice = createSlice({\n name: \"search\",\n initialState,\n reducers: {\n setQuery: (state: any, action: any) => {\n state.search.query = action.payload;\n },\n resetSearch: (state: any) => {\n state.search.query = \"\";\n state.search.results = [];\n state.search.loading = false;\n state.search.error = \"\";\n },\n setResults: (state: any, action: any) => {\n state.search.results = action.payload;\n },\n },\n extraReducers: (builder: any) => {},\n});\n\n// Selectors\n\nexport const selectQuery = (state: RootState) => state.search.search.query;\nexport const selectResults = (state: RootState) => state.search.search.results;\nexport const selectLoading = (state: RootState) => state.search.search.loading;\nexport const selectError = (state: RootState) => state.search.search.error;\n\n// Actions\nexport const { setQuery, resetSearch, setResults } = searchSlice.actions;\n\nexport default searchSlice.reducer;\n","import { configureStore } from \"@reduxjs/toolkit\";\nimport consentSlice from \"@slices/consentSlice\";\nimport contactSlice from \"@slices/contactSlice\";\nimport searchSlice from \"@slices/searchSlice\";\nimport uiSlice from \"@slices/uiSlice\";\n\nexport const store = configureStore({\n reducer: {\n ui: uiSlice,\n search: searchSlice,\n contact: contactSlice,\n consent: consentSlice,\n },\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n serializableCheck: {\n // Ignore these field paths in all actions\n ignoredActionPaths: [\"meta.arg\", \"payload.timestamp\"],\n // Ignore these paths in the state\n ignoredPaths: [\"items.dates\"],\n },\n }),\n});\n\nexport type RootState = ReturnType;\n\nexport type AppDispatch = typeof store.dispatch;\n","import { globalHistory } from \"@reach/router\";\nimport { useState } from \"react\";\nimport {\n PartialLocation,\n QueryParamAdapterComponent,\n QueryParamAdapter,\n} from \"use-query-params\";\nimport { navigate } from \"gatsby\";\n\nexport const GatsbyAdapter: QueryParamAdapterComponent = ({ children }) => {\n const [adapter] = useState(() => ({\n get location() {\n return globalHistory.location;\n },\n push(location: PartialLocation) {\n navigate(location.search || \"?\", { replace: false });\n },\n replace(location: PartialLocation) {\n navigate(location.search || \"?\", { replace: true });\n },\n }));\n\n return children(adapter);\n};\n","import \"./src/styles/global.css\";\nimport Redux from \"@components/providers/Redux\";\nimport { pushToDataLayer, isSSR } from \"@utils/Helpers\";\n\nexport const wrapRootElement = Redux;\n\n!isSSR &&\n window.gtag !== undefined &&\n window.gtag(\"consent\", \"default\", {\n ad_storage: \"denied\",\n analytics_storage: \"denied\",\n functionality_storage: \"denied\",\n personalization_storage: \"denied\",\n security_storage: \"denied\",\n });\nexport const onRouteUpdate = () => {\n setTimeout(() => {\n pushToDataLayer({ event: \"aecom_route_change\" });\n }, 500);\n};\n","import React from \"react\";\nimport { Provider } from \"react-redux\";\nimport { store } from \"../../../store\";\nimport { Provider as WrapProvider } from \"react-wrap-balancer\";\nimport { QueryParamProvider } from \"use-query-params\";\nimport queryString from \"query-string\";\nimport { GatsbyAdapter } from \"./gatsbyadaptor\";\ntype Props = {\n element?: React.ReactNode;\n location: {\n pathname: string;\n };\n};\nexport default ({ element }: Props) => {\n // Instantiating store in `wrapRootElement` handler ensures:\n // - there is fresh store for each SSR page\n // - it will be called only once in browser, when React mounts\n return (\n \n \n {element}\n \n \n );\n};\n","/* global __MANIFEST_PLUGIN_HAS_LOCALISATION__ */\nimport { withPrefix } from \"gatsby\";\nimport getManifestForPathname from \"./get-manifest-pathname\";\n\n// when we don't have localisation in our manifest, we tree shake everything away\nexport const onRouteUpdate = function onRouteUpdate({\n location\n}, pluginOptions) {\n if (__MANIFEST_PLUGIN_HAS_LOCALISATION__) {\n const {\n localize\n } = pluginOptions;\n const manifestFilename = getManifestForPathname(location.pathname, localize, true);\n const manifestEl = document.head.querySelector(`link[rel=\"manifest\"]`);\n if (manifestEl) {\n manifestEl.setAttribute(`href`, withPrefix(manifestFilename));\n }\n }\n};","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\nvar _gatsby = require(\"gatsby\");\n/**\n * Get a manifest filename depending on localized pathname\n *\n * @param {string} pathname\n * @param {Array<{start_url: string, lang: string}>} localizedManifests\n * @param {boolean} shouldPrependPathPrefix\n * @return string\n */\nvar _default = (pathname, localizedManifests, shouldPrependPathPrefix = false) => {\n const defaultFilename = `manifest.webmanifest`;\n if (!Array.isArray(localizedManifests)) {\n return defaultFilename;\n }\n const localizedManifest = localizedManifests.find(app => {\n let startUrl = app.start_url;\n if (shouldPrependPathPrefix) {\n startUrl = (0, _gatsby.withPrefix)(startUrl);\n }\n return pathname.startsWith(startUrl);\n });\n if (!localizedManifest) {\n return defaultFilename;\n }\n return `manifest_${localizedManifest.lang}.webmanifest`;\n};\nexports.default = _default;","import { isSSR } from \"@utils/Helpers\";\n\ninterface WindowDataLayer {\n push: (data: any) => void;\n}\ninterface Wistia {\n consent: (data: boolean) => void;\n [key: string]: any;\n}\n\ndeclare global {\n interface Window {\n dataLayer: WindowDataLayer;\n _wq: Wistia;\n clarity: (data: string) => void;\n }\n}\n\nexport const setDefaults = () => {\n if (!isSSR) {\n window._wq = window._wq || [];\n window._wq.push(function (W: any) {\n W.consent(false);\n });\n }\n};\n\nexport const setConsent = () => {\n if (!isSSR) {\n if (localStorage.getItem(\"SITAECOMConsent\") !== null) {\n const Settings = JSON.parse(\n localStorage.getItem(\"SITAECOMConsent\") || \"{}\"\n );\n try {\n function gtag(...args: any[]) {\n window.dataLayer.push(arguments);\n }\n gtag(\"consent\", \"update\", {\n functionality_storage: Settings.required ? \"granted\" : \"denied\",\n analytics_storage: Settings.general ? \"granted\" : \"denied\",\n personalization_storage: Settings.content ? \"granted\" : \"denied\",\n ad_storage: Settings.content ? \"granted\" : \"denied\",\n security_storage: Settings.security ? \"granted\" : \"denied\",\n });\n } catch (e) {\n console.log(e);\n }\n\n // setWistia(Settings.content);\n setClarity(Settings.general);\n }\n }\n};\n\nexport const checkConsent = (consent: any) => {\n if (typeof window !== \"undefined\") {\n if (localStorage.getItem(\"SITAECOMConsent\") !== null) {\n const Settings = JSON.parse(\n localStorage.getItem(\"SITAECOMConsent\") || \"{}\"\n );\n return Settings[consent];\n } else {\n return false;\n }\n }\n};\n\nexport const setClarity = (consent: any) => {\n if (consent) {\n typeof window !== \"undefined\" &&\n window.clarity !== undefined &&\n window.clarity(\"consent\");\n } else {\n }\n};\n\n// export function deleteCookie(cookie_name: any) {\n// document.cookie.split(\";\").forEach(function (cookie) {\n// var cookieName = cookie.trim().split(\"=\")[0];\n// // If the prefix of the cookie's name matches the one specified, remove it\n// if (cookieName !== null) {\n// if (cookieName.indexOf(cookie_name) === 0) {\n// document.cookie =\n// cookieName + \"=;expires=Thu, 01 Jan 1970 00:00:00 GMT\";\n// }\n// }\n// });\n// }\n","import { checkConsent } from \"@components/ui/consent/ConsentHelpers\";\nimport { createAsyncThunk, createSlice } from \"@reduxjs/toolkit\";\nimport { isSSR } from \"@utils/Helpers\";\n\nexport interface consentState {\n ManageCookies: {\n open: boolean;\n };\n}\n\nconst initialState: consentState = {\n ManageCookies: { open: false },\n};\n\nexport const consentSlice = createSlice({\n name: \"consent\",\n initialState,\n reducers: {\n setManageCookies: (state, action) => {\n state.ManageCookies.open = action.payload;\n },\n },\n extraReducers: (builder: any) => {\n builder.addCase(\n setCustomConsent.fulfilled,\n (state: any, action: any) => {}\n );\n builder.addCase(setConsent.fulfilled, (state: any, action: any) => {\n state.ManageCookies.open = action.payload;\n });\n },\n});\n\n// Async Thunks\n\nexport const setCustomConsent = createAsyncThunk(\n \"contact/setCustomConsent\",\n async (_, thunkAPI: any) => {\n if (typeof window !== \"undefined\") {\n if (\n thunkAPI.getState().contact.geo !== null &&\n localStorage.getItem(\"DigitalAECOM\") === null\n ) {\n checkConsent(\"general\") &&\n localStorage.setItem(\n \"DigitalAECOM\",\n JSON.stringify(thunkAPI.getState().contact.geo)\n );\n }\n }\n }\n) as any;\n\nexport const setConsent = createAsyncThunk(\n \"contact/setConsent\",\n async (_, { dispatch, getState }: any) => {\n if (typeof window !== \"undefined\") {\n if (localStorage.getItem(\"SITAECOMConsent\") !== null) {\n const Settings = JSON.parse(\n localStorage.getItem(\"SITAECOMConsent\") || \"{}\"\n );\n try {\n function gtag() {\n // @ts-ignore\n window.dataLayer.push(arguments);\n } // @ts-ignore\n gtag(\"consent\", \"default\", {\n analytics_storage: Settings.general ? \"granted\" : \"denied\",\n personalization_storage: Settings.content ? \"granted\" : \"denied\",\n ad_storage: Settings.content ? \"granted\" : \"denied\",\n security_storage: Settings.security ? \"granted\" : \"denied\",\n });\n } catch (error) {\n console.log(error);\n }\n } else {\n localStorage.setItem(\n \"SITAECOMConsent\",\n JSON.stringify({\n required: true,\n general: true,\n content: true,\n security: true,\n })\n );\n\n function gtag() {\n // @ts-ignore\n window.dataLayer.push(arguments);\n } // @ts-ignore\n gtag(\"consent\", \"default\", {\n analytics_storage: \"granted\",\n personalization_storage: \"granted\",\n ad_storage: \"granted\",\n security_storage: \"granted\",\n });\n return false;\n }\n }\n }\n) as any;\n\n// Selectors\n\nexport const selectManageCookies = (state: any) => state.consent.ManageCookies;\n\n// Actions\nexport const { setManageCookies } = consentSlice.actions;\n\nexport default consentSlice.reducer;\n","import { createAsyncThunk, createSlice } from \"@reduxjs/toolkit\";\nimport { consoleLog, isSSR, pushToDataLayer } from \"@utils/Helpers\";\nimport axios from \"axios\";\nlet LanguageCodes = require(\"@utils/languages/languageCodes.json\");\nlet Regions = require(\"@utils/languages/regions.json\");\nlet SubRegions = require(\"@utils/languages/sub_regions.json\");\n\nexport interface contactState {\n error: string;\n loading: string;\n geo: null | any;\n languageCodes: any;\n currentlocale: string;\n pageLocales: string;\n AECOMregions: any;\n Subregions: any;\n AECOMregion: null | any;\n id: null | any;\n countries: null | any;\n SiteName: null | any;\n source: any;\n AECOMContact: null | any;\n videoReady: boolean;\n aecom_meta_data: null | any;\n contacts: null | any;\n}\n\nconst initialState: contactState = {\n error: \"\",\n loading: \"\",\n geo: null,\n languageCodes: LanguageCodes,\n currentlocale: \"en\",\n pageLocales: \"\",\n AECOMregions: Regions,\n Subregions: SubRegions,\n AECOMregion: null,\n countries: null,\n id: null,\n SiteName: null,\n source: {},\n AECOMContact: null,\n videoReady: false,\n aecom_meta_data: null,\n contacts: null,\n};\n\nexport const contactSlice = createSlice({\n name: \"contact\",\n initialState,\n reducers: {\n setError: (state, action) => {\n state.error = action.payload;\n },\n setLoading: (state, action) => {\n state.loading = action.payload;\n },\n setGeo: (state, action) => {\n state.geo = action.payload;\n },\n setLanguageCodes: (state, action) => {\n state.languageCodes = action.payload;\n },\n setCurrentlocale: (state, action) => {\n state.currentlocale = action.payload;\n },\n setPageLocales: (state, action) => {\n state.pageLocales = action.payload;\n },\n setAECOMregions: (state, action) => {\n state.AECOMregions = action.payload;\n },\n setSubregions: (state, action) => {\n state.Subregions = action.payload;\n },\n setAECOMregion: (state, action) => {\n state.AECOMregion = action.payload;\n },\n setCountries: (state, action) => {\n state.countries = action.payload;\n },\n setId: (state, action) => {\n state.id = action.payload;\n },\n setSiteName: (state, action) => {\n state.SiteName = action.payload;\n },\n setSource: (state, action) => {\n state.source = action.payload;\n },\n setAECOMContact: (state, action) => {\n state.AECOMContact = action.payload;\n },\n setAecomMetaData: (state, action) => {\n state.aecom_meta_data = action.payload;\n },\n setContacts: (state, action) => {\n state.contacts = action.payload;\n },\n },\n extraReducers: (builder: any) => {\n builder.addCase(setTracking.pending, (state: any, action: any) => {\n state.loading = \"pending\";\n });\n builder.addCase(setTracking.rejected, (state: any, action: any) => {\n state.loading = \"rejected\";\n state.error = action.error.message;\n });\n builder.addCase(setTracking.fulfilled, (state: any, action: any) => {\n state.loading = \"fulfilled\";\n state.aecom_meta_data = action.payload;\n });\n builder.addCase(getLocation.pending, (state: any, action: any) => {\n state.loading = \"pending\";\n });\n builder.addCase(getLocation.rejected, (state: any, action: any) => {\n state.loading = \"rejected\";\n state.error = action.error.message;\n });\n builder.addCase(getLocation.fulfilled, (state: any, action: any) => {\n state.loading = \"fulfilled\";\n state.geo = action.payload;\n });\n builder.addCase(setPageData.pending, (state: any, action: any) => {\n state.loading = \"pending\";\n });\n builder.addCase(setPageData.rejected, (state: any, action: any) => {\n state.loading = \"rejected\";\n state.error = action.error.message;\n });\n builder.addCase(setPageData.fulfilled, (state: any, action: any) => {\n state.loading = \"fulfilled\";\n });\n },\n});\n\n// Async Thunks\n\ninterface PageData {\n contacts: [\n {\n name: string;\n Social: string[];\n email: string;\n position: string;\n image: string;\n }\n ];\n\n countries: [\n {\n Name: string;\n }\n ];\n\n site: {\n title: string;\n };\n}\n\ninterface Countries {\n title: string;\n}\ninterface Contacts {\n name: string;\n Social: string[];\n email: string;\n position: string;\n image: string;\n}\n\nexport const setPageData = createAsyncThunk(\n \"contact/setPageData\",\n async (pageData: PageData, { dispatch }: any) => {\n consoleLog(\"pageData\", pageData);\n let Contacts = [] as Contacts[];\n pageData.contacts.forEach((value, key) => {\n Contacts.push({\n name: value.name,\n Social: value.Social,\n email: value.email,\n position: value.position,\n image: value.image,\n });\n });\n\n dispatch(setContacts(Contacts));\n\n let Countries = [] as Countries[];\n pageData.countries.forEach((value, key) => {\n Countries.push({\n title: value.Name,\n });\n });\n dispatch(setCountries(Countries));\n\n dispatch(setSiteName(pageData.site.title));\n }\n) as any;\n\nexport const setTracking = createAsyncThunk(\n \"contact/setTracking\",\n async ({ data, markets, services, campaigns, products }: any, thunkAPI) => {\n // console.log(\"data\", data);\n\n //reset the object to send to GTM so anything missing is not included\n let MetaData = {\n aecom_meta_data: {\n campaigns: undefined,\n markets: undefined,\n services: undefined,\n products: undefined,\n all: [],\n },\n } as any;\n //check if page level market is set\n if (markets !== null && markets !== undefined) {\n //check if page level market is array\n if (Array.isArray(markets)) {\n //if it is push titles to an array\n let Markets = [];\n for (let market of markets) {\n Markets.push(market.short_title);\n }\n // set GTM object with values\n MetaData.aecom_meta_data.markets = Markets;\n MetaData.aecom_meta_data.all.push(Markets);\n } else {\n //if object is not an array just use the basic object - assuming this is just an title not an object\n MetaData.aecom_meta_data.markets = [markets];\n MetaData.aecom_meta_data.all.push(markets);\n }\n //if original metadata has not been set as 'null' for the purpose of graphql then use the original metadata\n } else if (data.market !== \"null\") {\n MetaData.aecom_meta_data.markets = [data.market];\n MetaData.aecom_meta_data.all.push(data.market);\n }\n\n //check if page level service is set\n if (services !== null && services !== undefined) {\n //check if page level service is array\n if (Array.isArray(services)) {\n //if it is push titles to an array\n let Services = [];\n for (let service of services) {\n Services.push(service.short_title);\n }\n // set GTM object with values\n MetaData.aecom_meta_data.services = Services;\n MetaData.aecom_meta_data.all.push(Services);\n } else {\n //if object is not an array just use the basic object - assuming this is just an title not an object\n MetaData.aecom_meta_data.services = [services];\n MetaData.aecom_meta_data.all.push(services);\n }\n } else if (data.service !== \"null\") {\n //if original metadata has not been set as 'null' for the purpose of graphql then use the original metadata\n MetaData.aecom_meta_data.services = [data.service];\n MetaData.aecom_meta_data.all.push(data.service);\n }\n\n if (campaigns !== null && campaigns !== undefined) {\n if (Array.isArray(campaigns)) {\n let Campaigns = [];\n for (let campaign of campaigns) {\n Campaigns.push(campaign);\n }\n MetaData.aecom_meta_data.campaigns = Campaigns;\n MetaData.aecom_meta_data.all = Campaigns;\n MetaData.aecom_meta_data.all.push(Campaigns);\n } else {\n MetaData.aecom_meta_data.campaigns = [campaigns];\n MetaData.aecom_meta_data.all.push(campaigns);\n }\n } else if (data.campaign !== \"null\") {\n MetaData.aecom_meta_data.campaigns = [data.campaign];\n MetaData.aecom_meta_data.all.push(data.campaign);\n }\n\n if (products !== null && products !== undefined) {\n if (Array.isArray(products)) {\n let Products = [];\n for (let product of products) {\n Products.push(product);\n }\n MetaData.aecom_meta_data.products = Products;\n MetaData.aecom_meta_data.all = Products;\n MetaData.aecom_meta_data.all.push(Products);\n } else {\n MetaData.aecom_meta_data.products = [products];\n MetaData.aecom_meta_data.all.push(products);\n }\n } else if (data.product !== \"null\") {\n MetaData.aecom_meta_data.products = [data.product];\n MetaData.aecom_meta_data.all.push(data.product);\n }\n\n return MetaData.aecom_meta_data;\n }\n) as any;\n\nexport const getLocation = createAsyncThunk(\n \"contact/getLocation\",\n async (_, { getState, dispatch }: any) => {\n const setAECOMregionHandler = async (region: string) => {\n consoleLog(\"setAECOMregionHandler\", region);\n\n try {\n await dispatch(setAECOMregion(region));\n } catch (error) {\n console.log(\"error\", error);\n }\n };\n if (!isSSR) {\n if (localStorage.getItem(\"DigitalAECOM\") === null) {\n // dispatch({ type: \"GEO_LOADING\" });\n return axios\n .get(\n `https://api.ipstack.com/check?access_key=ed812e03f23c3e8cef4c2a73b93992a7&hostname=1`\n )\n .then((response) => {\n if (response.data.success !== false) {\n consoleLog(\"ipstack response\", response.data);\n //set the aecom region\n let Regions = getState().contact.AECOMregions;\n let countryName = response.data.country_name;\n Regions.Region.forEach((value: any, key: any) => {\n if (value.data !== undefined) {\n value.data.forEach((country: any, key: any) => {\n consoleLog(country);\n if (country.name === countryName) {\n consoleLog(\"country\", country);\n setAECOMregionHandler(value.region);\n }\n });\n }\n });\n\n return response.data;\n }\n })\n .catch((error) => {\n // dispatch({ type: \"GEO_ERROR\", payload: error });\n return \"there was a problem loading the data - \" + error;\n });\n } else {\n //set the aecom region\n let Regions = getState().contact.AECOMregions;\n let countryName = JSON.parse(\n localStorage.getItem(\"DigitalAECOM\") || \"{}\"\n ).country_name;\n Regions.Region.forEach((value: any, key: any) => {\n value.data.forEach((country: any, key: any) => {\n if (country.name === countryName)\n dispatch(setAECOMregion(value.region));\n });\n });\n const data = JSON.parse(localStorage.getItem(\"DigitalAECOM\") || \"{}\");\n return {\n ...data,\n };\n }\n }\n }\n) as any;\n\n// Selectors\n\nexport const selectError = (state: any) => state.contact.error;\nexport const selectLoading = (state: any) => state.contact.loading;\nexport const selectGeo = (state: any) => state.contact.geo;\nexport const selectLanguageCodes = (state: any) => state.contact.languageCodes;\nexport const selectCurrentlocale = (state: any) => state.contact.currentlocale;\nexport const selectPageLocales = (state: any) => state.contact.pageLocales;\nexport const selectAECOMregions = (state: any) => state.contact.AECOMregions;\nexport const selectSubregions = (state: any) => state.contact.Subregions;\nexport const selectAECOMregion = (state: any) => state.contact.AECOMregion;\nexport const selectInApp = (state: any) => state.contact.inApp;\nexport const selectId = (state: any) => state.contact.id;\nexport const selectSiteName = (state: any) => state.contact.SiteName;\nexport const selectSource = (state: any) => state.contact.source;\nexport const selectAECOMContact = (state: any) => state.contact.AECOMContact;\nexport const selectVideoReady = (state: any) => state.contact.videoReady;\nexport const selectAecomMetaData = (state: any) =>\n state.contact.aecom_meta_data;\nexport const selectPopups = (state: any) => state.contact.popups;\nexport const selectPopupsShown = (state: any) => state.contact.popupsShown;\nexport const selectContacts = (state: any) => state.contact.contacts;\n\n// Actions\nexport const {\n setError,\n setLoading,\n setGeo,\n setLanguageCodes,\n setCurrentlocale,\n setPageLocales,\n setAECOMregions,\n setSubregions,\n setAECOMregion,\n setCountries,\n setId,\n setSiteName,\n setSource,\n setAECOMContact,\n setAecomMetaData,\n setContacts,\n} = contactSlice.actions;\n\nexport default contactSlice.reducer;\n","import { createSlice } from \"@reduxjs/toolkit\";\nimport { RootState } from \"../../store\";\n\nexport interface uiState {\n drawer: {\n open: boolean;\n };\n header: {\n subtitle: string;\n };\n article: {\n contentHeight: number;\n contentWidth?: number;\n };\n video: {\n gated: boolean;\n modalOpen: boolean;\n currentVideoId: string;\n ready: boolean;\n };\n}\n\nconst initialState: uiState = {\n drawer: {\n open: false,\n },\n header: {\n subtitle: \"\",\n },\n article: {\n contentHeight: 0,\n contentWidth: 0,\n },\n video: {\n gated: false,\n modalOpen: false,\n currentVideoId: \"\",\n ready: false,\n },\n};\n\nexport const uiSlice = createSlice({\n name: \"ui\",\n initialState,\n reducers: {\n toggleDrawer: (state) => {\n state.drawer.open = !state.drawer.open;\n },\n openDrawer: (state) => {\n state.drawer.open = true;\n },\n closeDrawer: (state) => {\n state.drawer.open = false;\n },\n setSubtitle: (state, action) => {\n state.header.subtitle = action.payload;\n },\n setContentHeight: (state, action) => {\n state.article.contentHeight = action.payload;\n },\n setContentWidth: (state, action) => {\n state.article.contentWidth = action.payload;\n },\n setGated: (state, action) => {\n state.video.gated = action.payload;\n },\n setModalOpen: (state, action) => {\n state.video.modalOpen = action.payload;\n },\n setCurrentVideoId: (state, action) => {\n state.video.currentVideoId = action.payload;\n },\n },\n});\n\n// Selectors\nexport const selectDrawer = (state: RootState) => state.ui.drawer.open;\nexport const selectSubtitle = (state: RootState) => state.ui.header.subtitle;\nexport const selectContentHeight = (state: RootState) =>\n state.ui.article.contentHeight;\nexport const selectContentWidth = (state: RootState) =>\n state.ui.article.contentWidth;\nexport const selectGated = (state: RootState) => state.ui.video.gated;\nexport const selectModalOpen = (state: RootState) => state.ui.video.modalOpen;\nexport const selectCurrentVideoId = (state: RootState) =>\n state.ui.video.currentVideoId;\nexport const selectVideoReady = (state: RootState) => state.ui.video.ready;\n// Actions\nexport const {\n closeDrawer,\n openDrawer,\n setSubtitle,\n setContentHeight,\n setContentWidth,\n setGated,\n setModalOpen,\n setCurrentVideoId,\n} = uiSlice.actions;\n\nexport default uiSlice.reducer;\n","import axios from \"axios\";\n\nexport const convertToTimeString = (time: number) => {\n const minutes = Math.floor(time / 60);\n const seconds = time - minutes * 60;\n\n const formattedTime = `${minutes}m${seconds}s`;\n return formattedTime;\n};\n\ninterface WindowDataLayer {\n push: (data: any) => void;\n}\ninterface Clarity {\n consent: (data: boolean) => void;\n [key: string]: any;\n}\n\ndeclare global {\n interface Window {\n dataLayer: WindowDataLayer;\n _wq: Clarity;\n }\n}\n\nexport const developement = process.env.NODE_ENV === \"development\";\nexport const isSSR = typeof window === \"undefined\";\nexport const isMobile = !isSSR && window.innerWidth < 768;\nexport const consoleLog = (title: string, data?: any) => {\n if (developement) {\n console.log(\n `%c ${title} is ${typeof data}`,\n \"color: #499167; font-size: 16px; font-weight: bold; text-transform: uppercase;\",\n \"\\n\",\n \"\\n\",\n data,\n \"\\n\",\n \"\\n\"\n );\n if (Array.isArray(data)) {\n if (data.length < 10) {\n console.table(title, data);\n }\n }\n if (typeof data === \"object\") {\n if (data !== null) {\n console.log(\n `%c \n \\n\n ${title} Object keys are:\n `,\n \"color: #a072b4; font-size: 12px; font-weight: bold;\"\n );\n console.log(\n `%c \n ${Object.keys(data)}\n `,\n \"color: #d49dec; font-size: 12px; font-weight: bold;\"\n );\n }\n }\n if (data instanceof Error) {\n console.error(data);\n }\n }\n};\n\n// accept an object of data to push to the dataLayer\nexport const pushToDataLayer = (data: any) => {\n if (developement) {\n consoleLog(\"pushToDataLayer data: \", data);\n }\n if (!isSSR) {\n if (\n window.dataLayer &&\n Array.isArray(window.dataLayer) &&\n window.dataLayer !== undefined\n ) {\n const dataLayer = window.dataLayer;\n dataLayer.push(data);\n } else {\n console.error(\"window.dataLayer not found\", data);\n }\n } else {\n console.error(\"window not found\");\n }\n};\n\nexport const WhatsCausingOverflow = () => {\n const allElements = document.querySelectorAll(\"*\");\n const allElementsArray = Array.from(allElements);\n\n const elementsCausingOverflow = allElementsArray.filter((element) => {\n const computedStyle = window.getComputedStyle(element);\n const overflow = computedStyle.overflow;\n const overflowX = computedStyle.overflowX;\n const overflowY = computedStyle.overflowY;\n const isOverflowing =\n overflow === \"hidden\" && overflowX === \"hidden\" && overflowY === \"hidden\";\n return isOverflowing;\n });\n\n consoleLog(\"elementsCausingOverflow\", elementsCausingOverflow);\n\n return elementsCausingOverflow;\n};\n\n// Salesforce Marketing Cloud\n\nexport function getAccountName(ACID: string) {\n consoleLog(\"getAccountName ACID\", ACID);\n axios({\n method: \"get\",\n url:\n \"https://sf.api.withoutlimit.net/sc/sobjects/Account/\" +\n ACID +\n \"?fields=Name\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n }).then((response) => {\n consoleLog(\"Account Name\", response.data.Name);\n let ACCOUNTID = response.data.Name;\n !isSSR && localStorage.setItem(\"AECOMID\", JSON.stringify(ACID));\n !isSSR && localStorage.setItem(\"ACCOUNTNAME\", JSON.stringify(ACCOUNTID));\n !isSSR &&\n pushToDataLayer({\n event: \"setAccountID\",\n accountID: ACID,\n accountName: response.data.Name,\n });\n });\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","/**\n * @license React\n * react-server-dom-webpack.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var k=require(\"react\"),l={stream:!0},n=new Map,p=Symbol.for(\"react.element\"),q=Symbol.for(\"react.lazy\"),r=Symbol.for(\"react.default_value\"),t=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function u(a){t[a]||(t[a]=k.createServerContext(a,r));return t[a]}function v(a,b,c){this._status=a;this._value=b;this._response=c}v.prototype.then=function(a){0===this._status?(null===this._value&&(this._value=[]),this._value.push(a)):a()};\nfunction w(a){switch(a._status){case 3:return a._value;case 1:var b=JSON.parse(a._value,a._response._fromJSON);a._status=3;return a._value=b;case 2:b=a._value;for(var c=b.chunks,d=0;d str != null && enumValues.includes(str)) ? arr : void 0;\n}\nfunction decodeDelimitedArrayEnum(input, enumValues, entrySeparator = \"_\") {\n if (input != null && Array.isArray(input) && !input.length)\n return void 0;\n const arr = decodeDelimitedArray(input, entrySeparator);\n return decodeArrayEnum(arr, enumValues);\n}\nfunction encodeJson(any) {\n if (any == null) {\n return any;\n }\n return JSON.stringify(any);\n}\nfunction decodeJson(input) {\n const jsonStr = getEncodedValue(input);\n if (jsonStr == null)\n return jsonStr;\n let result = null;\n try {\n result = JSON.parse(jsonStr);\n } catch (e) {\n }\n return result;\n}\nfunction encodeArray(array) {\n if (array == null) {\n return array;\n }\n return array;\n}\nfunction decodeArray(input) {\n const arr = getEncodedValueArray(input);\n if (arr == null)\n return arr;\n return arr;\n}\nfunction encodeNumericArray(array) {\n if (array == null) {\n return array;\n }\n return array.map(String);\n}\nfunction decodeNumericArray(input) {\n const arr = decodeArray(input);\n if (arr == null)\n return arr;\n return arr.map((d) => d === \"\" || d == null ? null : +d);\n}\nfunction encodeDelimitedArray(array, entrySeparator = \"_\") {\n if (array == null) {\n return array;\n }\n return array.join(entrySeparator);\n}\nfunction decodeDelimitedArray(input, entrySeparator = \"_\") {\n const arrayStr = getEncodedValue(input, true);\n if (arrayStr == null)\n return arrayStr;\n if (arrayStr === \"\")\n return [];\n return arrayStr.split(entrySeparator);\n}\nconst encodeDelimitedNumericArray = encodeDelimitedArray;\nfunction decodeDelimitedNumericArray(arrayStr, entrySeparator = \"_\") {\n const decoded = decodeDelimitedArray(arrayStr, entrySeparator);\n if (decoded == null)\n return decoded;\n return decoded.map((d) => d === \"\" || d == null ? null : +d);\n}\nfunction encodeObject(obj, keyValSeparator = \"-\", entrySeparator = \"_\") {\n if (obj == null)\n return obj;\n if (!Object.keys(obj).length)\n return \"\";\n return Object.keys(obj).map((key) => `${key}${keyValSeparator}${obj[key]}`).join(entrySeparator);\n}\nfunction decodeObject(input, keyValSeparator = \"-\", entrySeparator = \"_\") {\n const objStr = getEncodedValue(input, true);\n if (objStr == null)\n return objStr;\n if (objStr === \"\")\n return {};\n const obj = {};\n const keyValSeparatorRegExp = new RegExp(`${keyValSeparator}(.*)`);\n objStr.split(entrySeparator).forEach((entryStr) => {\n const [key, value] = entryStr.split(keyValSeparatorRegExp);\n obj[key] = value;\n });\n return obj;\n}\nconst encodeNumericObject = encodeObject;\nfunction decodeNumericObject(input, keyValSeparator = \"-\", entrySeparator = \"_\") {\n const decoded = decodeObject(\n input,\n keyValSeparator,\n entrySeparator\n );\n if (decoded == null)\n return decoded;\n const decodedNumberObj = {};\n for (const key of Object.keys(decoded)) {\n decodedNumberObj[key] = decodeNumber(decoded[key]);\n }\n return decodedNumberObj;\n}\nexport {\n decodeArray,\n decodeArrayEnum,\n decodeBoolean,\n decodeDate,\n decodeDateTime,\n decodeDelimitedArray,\n decodeDelimitedArrayEnum,\n decodeDelimitedNumericArray,\n decodeEnum,\n decodeJson,\n decodeNumber,\n decodeNumericArray,\n decodeNumericObject,\n decodeObject,\n decodeString,\n encodeArray,\n encodeBoolean,\n encodeDate,\n encodeDateTime,\n encodeDelimitedArray,\n encodeDelimitedNumericArray,\n encodeJson,\n encodeNumber,\n encodeNumericArray,\n encodeNumericObject,\n encodeObject,\n encodeString\n};\n//# sourceMappingURL=serialize.js.map\n","import * as Serialize from \"./serialize\";\nconst StringParam = {\n encode: Serialize.encodeString,\n decode: Serialize.decodeString\n};\nconst createEnumParam = (enumValues) => ({\n encode: Serialize.encodeString,\n decode: (input) => Serialize.decodeEnum(input, enumValues)\n});\nconst createEnumArrayParam = (enumValues) => ({\n encode: (text) => Serialize.encodeArray(text == null || Array.isArray(text) ? text : [text]),\n decode: (input) => Serialize.decodeArrayEnum(input, enumValues)\n});\nconst createEnumDelimitedArrayParam = (enumValues, entrySeparator = \"_\") => ({\n encode: (text) => Serialize.encodeDelimitedArray(\n text == null || Array.isArray(text) ? text : [text],\n entrySeparator\n ),\n decode: (input) => Serialize.decodeDelimitedArrayEnum(input, enumValues, entrySeparator)\n});\nconst NumberParam = {\n encode: Serialize.encodeNumber,\n decode: Serialize.decodeNumber\n};\nconst ObjectParam = {\n encode: Serialize.encodeObject,\n decode: Serialize.decodeObject\n};\nconst ArrayParam = {\n encode: Serialize.encodeArray,\n decode: Serialize.decodeArray\n};\nconst NumericArrayParam = {\n encode: Serialize.encodeNumericArray,\n decode: Serialize.decodeNumericArray\n};\nconst JsonParam = {\n encode: Serialize.encodeJson,\n decode: Serialize.decodeJson\n};\nconst DateParam = {\n encode: Serialize.encodeDate,\n decode: Serialize.decodeDate,\n equals: (valueA, valueB) => {\n if (valueA === valueB)\n return true;\n if (valueA == null || valueB == null)\n return valueA === valueB;\n return valueA.getFullYear() === valueB.getFullYear() && valueA.getMonth() === valueB.getMonth() && valueA.getDate() === valueB.getDate();\n }\n};\nconst DateTimeParam = {\n encode: Serialize.encodeDateTime,\n decode: Serialize.decodeDateTime,\n equals: (valueA, valueB) => {\n if (valueA === valueB)\n return true;\n if (valueA == null || valueB == null)\n return valueA === valueB;\n return valueA.valueOf() === valueB.valueOf();\n }\n};\nconst BooleanParam = {\n encode: Serialize.encodeBoolean,\n decode: Serialize.decodeBoolean\n};\nconst NumericObjectParam = {\n encode: Serialize.encodeNumericObject,\n decode: Serialize.decodeNumericObject\n};\nconst DelimitedArrayParam = {\n encode: Serialize.encodeDelimitedArray,\n decode: Serialize.decodeDelimitedArray\n};\nconst DelimitedNumericArrayParam = {\n encode: Serialize.encodeDelimitedNumericArray,\n decode: Serialize.decodeDelimitedNumericArray\n};\nexport {\n ArrayParam,\n BooleanParam,\n DateParam,\n DateTimeParam,\n DelimitedArrayParam,\n DelimitedNumericArrayParam,\n JsonParam,\n NumberParam,\n NumericArrayParam,\n NumericObjectParam,\n ObjectParam,\n StringParam,\n createEnumArrayParam,\n createEnumDelimitedArrayParam,\n createEnumParam\n};\n//# sourceMappingURL=params.js.map\n","import { objectToSearchString } from \"./objectToSearchString\";\nimport { searchStringToObject } from \".\";\nconst JSON_SAFE_CHARS = `{}[],\":`.split(\"\").map((d) => [d, encodeURIComponent(d)]);\nfunction getHrefFromLocation(location, search) {\n let href = search;\n if (location.href) {\n try {\n const url = new URL(location.href);\n href = `${url.origin}${url.pathname}${search}`;\n } catch (e) {\n href = \"\";\n }\n }\n return href;\n}\nfunction transformSearchStringJsonSafe(searchString) {\n let str = searchString;\n for (let [char, code] of JSON_SAFE_CHARS) {\n str = str.replace(new RegExp(\"\\\\\" + code, \"g\"), char);\n }\n return str;\n}\nfunction updateLocation(encodedQuery, location, objectToSearchStringFn = objectToSearchString) {\n let encodedSearchString = objectToSearchStringFn(encodedQuery);\n const search = encodedSearchString.length ? `?${encodedSearchString}` : \"\";\n const newLocation = {\n ...location,\n key: `${Date.now()}`,\n href: getHrefFromLocation(location, search),\n search,\n query: encodedQuery\n };\n return newLocation;\n}\nfunction updateInLocation(encodedQueryReplacements, location, objectToSearchStringFn = objectToSearchString, searchStringToObjectFn = searchStringToObject) {\n const currQuery = searchStringToObjectFn(location.search);\n const newQuery = {\n ...currQuery,\n ...encodedQueryReplacements\n };\n return updateLocation(newQuery, location, objectToSearchStringFn);\n}\nexport {\n transformSearchStringJsonSafe,\n updateInLocation,\n updateLocation\n};\n//# sourceMappingURL=updateLocation.js.map\n","function encodeQueryParams(paramConfigMap, query) {\n const encodedQuery = {};\n const paramNames = Object.keys(query);\n for (const paramName of paramNames) {\n const decodedValue = query[paramName];\n if (!paramConfigMap[paramName]) {\n encodedQuery[paramName] = decodedValue == null ? decodedValue : String(decodedValue);\n } else {\n encodedQuery[paramName] = paramConfigMap[paramName].encode(query[paramName]);\n }\n }\n return encodedQuery;\n}\nvar encodeQueryParams_default = encodeQueryParams;\nexport {\n encodeQueryParams_default as default,\n encodeQueryParams\n};\n//# sourceMappingURL=encodeQueryParams.js.map\n","class DecodedParamCache {\n constructor() {\n this.paramsMap = /* @__PURE__ */ new Map();\n this.registeredParams = /* @__PURE__ */ new Map();\n }\n set(param, stringifiedValue, decodedValue, decode) {\n this.paramsMap.set(param, {\n stringified: stringifiedValue,\n decoded: decodedValue,\n decode\n });\n }\n has(param, stringifiedValue, decode) {\n if (!this.paramsMap.has(param))\n return false;\n const cachedParam = this.paramsMap.get(param);\n if (!cachedParam)\n return false;\n return cachedParam.stringified === stringifiedValue && (decode == null || cachedParam.decode === decode);\n }\n get(param) {\n var _a;\n if (this.paramsMap.has(param))\n return (_a = this.paramsMap.get(param)) == null ? void 0 : _a.decoded;\n return void 0;\n }\n registerParams(paramNames) {\n for (const param of paramNames) {\n const currValue = this.registeredParams.get(param) || 0;\n this.registeredParams.set(param, currValue + 1);\n }\n }\n unregisterParams(paramNames) {\n for (const param of paramNames) {\n const value = (this.registeredParams.get(param) || 0) - 1;\n if (value <= 0) {\n this.registeredParams.delete(param);\n if (this.paramsMap.has(param)) {\n this.paramsMap.delete(param);\n }\n } else {\n this.registeredParams.set(param, value);\n }\n }\n }\n clear() {\n this.paramsMap.clear();\n this.registeredParams.clear();\n }\n}\nconst decodedParamCache = new DecodedParamCache();\nexport {\n DecodedParamCache,\n decodedParamCache\n};\n//# sourceMappingURL=decodedParamCache.js.map\n","import {\n StringParam\n} from \"serialize-query-params\";\nfunction convertInheritedParamStringsToParams(paramConfigMapWithInherit, options) {\n var _a, _b, _c;\n const paramConfigMap = {};\n let hasInherit = false;\n const hookKeys = Object.keys(paramConfigMapWithInherit);\n let paramKeys = hookKeys;\n const includeKnownParams = options.includeKnownParams || options.includeKnownParams !== false && hookKeys.length === 0;\n if (includeKnownParams) {\n const knownKeys = Object.keys((_a = options.params) != null ? _a : {});\n paramKeys.push(...knownKeys);\n }\n for (const key of paramKeys) {\n const param = paramConfigMapWithInherit[key];\n if (param != null && typeof param === \"object\") {\n paramConfigMap[key] = param;\n continue;\n }\n hasInherit = true;\n paramConfigMap[key] = (_c = (_b = options.params) == null ? void 0 : _b[key]) != null ? _c : StringParam;\n }\n if (!hasInherit)\n return paramConfigMapWithInherit;\n return paramConfigMap;\n}\nfunction extendParamConfigForKeys(baseParamConfigMap, paramKeys, inheritedParams, defaultParam) {\n var _a;\n if (!inheritedParams || !paramKeys.length)\n return baseParamConfigMap;\n let paramConfigMap = { ...baseParamConfigMap };\n let hasInherit = false;\n for (const paramKey of paramKeys) {\n if (!Object.prototype.hasOwnProperty.call(paramConfigMap, paramKey)) {\n paramConfigMap[paramKey] = (_a = inheritedParams[paramKey]) != null ? _a : defaultParam;\n hasInherit = true;\n }\n }\n if (!hasInherit)\n return baseParamConfigMap;\n return paramConfigMap;\n}\nexport {\n convertInheritedParamStringsToParams,\n extendParamConfigForKeys\n};\n//# sourceMappingURL=inheritedParams.js.map\n","const hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction is(x, y) {\n if (x === y) {\n return x !== 0 || y !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\nfunction shallowEqual(objA, objB, equalMap) {\n var _a, _b;\n if (is(objA, objB)) {\n return true;\n }\n if (typeof objA !== \"object\" || objA === null || typeof objB !== \"object\" || objB === null) {\n return false;\n }\n const keysA = Object.keys(objA);\n const keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) {\n return false;\n }\n for (let i = 0; i < keysA.length; i++) {\n const isEqual = (_b = (_a = equalMap == null ? void 0 : equalMap[keysA[i]]) == null ? void 0 : _a.equals) != null ? _b : is;\n if (!hasOwnProperty.call(objB, keysA[i]) || !isEqual(objA[keysA[i]], objB[keysA[i]])) {\n return false;\n }\n }\n return true;\n}\nexport {\n shallowEqual as default\n};\n//# sourceMappingURL=shallowEqual.js.map\n","import shallowEqual from \"./shallowEqual\";\nfunction getLatestDecodedValues(parsedParams, paramConfigMap, decodedParamCache) {\n const decodedValues = {};\n const paramNames = Object.keys(paramConfigMap);\n for (const paramName of paramNames) {\n const paramConfig = paramConfigMap[paramName];\n const encodedValue = parsedParams[paramName];\n let decodedValue;\n if (decodedParamCache.has(paramName, encodedValue, paramConfig.decode)) {\n decodedValue = decodedParamCache.get(paramName);\n } else {\n decodedValue = paramConfig.decode(encodedValue);\n if (paramConfig.equals && decodedParamCache.has(paramName, encodedValue)) {\n const oldDecodedValue = decodedParamCache.get(paramName);\n if (paramConfig.equals(decodedValue, oldDecodedValue)) {\n decodedValue = oldDecodedValue;\n }\n }\n if (decodedValue !== void 0) {\n decodedParamCache.set(\n paramName,\n encodedValue,\n decodedValue,\n paramConfig.decode\n );\n }\n }\n if (decodedValue === void 0 && paramConfig.default !== void 0) {\n decodedValue = paramConfig.default;\n }\n decodedValues[paramName] = decodedValue;\n }\n return decodedValues;\n}\nfunction makeStableGetLatestDecodedValues() {\n let prevDecodedValues;\n function stableGetLatest(parsedParams, paramConfigMap, decodedParamCache) {\n const decodedValues = getLatestDecodedValues(\n parsedParams,\n paramConfigMap,\n decodedParamCache\n );\n if (prevDecodedValues != null && shallowEqual(prevDecodedValues, decodedValues)) {\n return prevDecodedValues;\n }\n prevDecodedValues = decodedValues;\n return decodedValues;\n }\n return stableGetLatest;\n}\nexport {\n getLatestDecodedValues,\n makeStableGetLatestDecodedValues\n};\n//# sourceMappingURL=latestValues.js.map\n","import shallowEqual from \"./shallowEqual\";\nimport { deserializeUrlNameMap } from \"./urlName\";\nlet cachedSearchString;\nlet cachedUrlNameMapString;\nlet cachedSearchStringToObjectFn;\nlet cachedParsedQuery = {};\nconst memoSearchStringToObject = (searchStringToObject, searchString, urlNameMapStr) => {\n if (cachedSearchString === searchString && cachedSearchStringToObjectFn === searchStringToObject && cachedUrlNameMapString === urlNameMapStr) {\n return cachedParsedQuery;\n }\n cachedSearchString = searchString;\n cachedSearchStringToObjectFn = searchStringToObject;\n const newParsedQuery = searchStringToObject(searchString != null ? searchString : \"\");\n cachedUrlNameMapString = urlNameMapStr;\n const urlNameMap = deserializeUrlNameMap(urlNameMapStr);\n for (let [key, value] of Object.entries(newParsedQuery)) {\n if (urlNameMap == null ? void 0 : urlNameMap[key]) {\n delete newParsedQuery[key];\n key = urlNameMap[key];\n newParsedQuery[key] = value;\n }\n const oldValue = cachedParsedQuery[key];\n if (shallowEqual(value, oldValue)) {\n newParsedQuery[key] = oldValue;\n }\n }\n cachedParsedQuery = newParsedQuery;\n return newParsedQuery;\n};\nexport {\n memoSearchStringToObject\n};\n//# sourceMappingURL=memoSearchStringToObject.js.map\n","function serializeUrlNameMap(paramConfigMap) {\n let urlNameMapParts;\n for (const paramName in paramConfigMap) {\n if (paramConfigMap[paramName].urlName) {\n const urlName = paramConfigMap[paramName].urlName;\n const part = `${urlName}\\0${paramName}`;\n if (!urlNameMapParts)\n urlNameMapParts = [part];\n else\n urlNameMapParts.push(part);\n }\n }\n return urlNameMapParts ? urlNameMapParts.join(\"\\n\") : void 0;\n}\nfunction deserializeUrlNameMap(urlNameMapStr) {\n if (!urlNameMapStr)\n return void 0;\n return Object.fromEntries(\n urlNameMapStr.split(\"\\n\").map((part) => part.split(\"\\0\"))\n );\n}\nfunction applyUrlNames(encodedValues, paramConfigMap) {\n var _a;\n let newEncodedValues = {};\n for (const paramName in encodedValues) {\n if (((_a = paramConfigMap[paramName]) == null ? void 0 : _a.urlName) != null) {\n newEncodedValues[paramConfigMap[paramName].urlName] = encodedValues[paramName];\n } else {\n newEncodedValues[paramName] = encodedValues[paramName];\n }\n }\n return newEncodedValues;\n}\nexport {\n applyUrlNames,\n deserializeUrlNameMap,\n serializeUrlNameMap\n};\n//# sourceMappingURL=urlName.js.map\n","import {\n searchStringToObject,\n objectToSearchString\n} from \"serialize-query-params\";\nconst defaultOptions = {\n searchStringToObject,\n objectToSearchString,\n updateType: \"pushIn\",\n includeKnownParams: void 0,\n includeAllParams: false,\n removeDefaultsFromUrl: false,\n enableBatching: false,\n skipUpdateWhenNoChange: true\n};\nfunction mergeOptions(parentOptions, currOptions) {\n if (currOptions == null) {\n currOptions = {};\n }\n const merged = { ...parentOptions, ...currOptions };\n if (currOptions.params && parentOptions.params) {\n merged.params = { ...parentOptions.params, ...currOptions.params };\n }\n return merged;\n}\nexport {\n defaultOptions,\n mergeOptions\n};\n//# sourceMappingURL=options.js.map\n","import * as React from \"react\";\nimport {\n mergeOptions,\n defaultOptions\n} from \"./options\";\nconst providerlessContextValue = {\n adapter: {},\n options: defaultOptions\n};\nconst QueryParamContext = React.createContext(\n providerlessContextValue\n);\nfunction useQueryParamContext() {\n const value = React.useContext(QueryParamContext);\n if (value === void 0 || value === providerlessContextValue) {\n throw new Error(\"useQueryParams must be used within a QueryParamProvider\");\n }\n return value;\n}\nfunction QueryParamProviderInner({\n children,\n adapter,\n options\n}) {\n const { adapter: parentAdapter, options: parentOptions } = React.useContext(QueryParamContext);\n const value = React.useMemo(() => {\n return {\n adapter: adapter != null ? adapter : parentAdapter,\n options: mergeOptions(\n parentOptions,\n options\n )\n };\n }, [adapter, options, parentAdapter, parentOptions]);\n return /* @__PURE__ */ React.createElement(QueryParamContext.Provider, {\n value\n }, children);\n}\nfunction QueryParamProvider({\n children,\n adapter,\n options\n}) {\n const Adapter = adapter;\n return Adapter ? /* @__PURE__ */ React.createElement(Adapter, null, (adapter2) => /* @__PURE__ */ React.createElement(QueryParamProviderInner, {\n adapter: adapter2,\n options\n }, children)) : /* @__PURE__ */ React.createElement(QueryParamProviderInner, {\n options\n }, children);\n}\nvar QueryParamProvider_default = QueryParamProvider;\nexport {\n QueryParamContext,\n QueryParamProvider,\n QueryParamProvider_default as default,\n useQueryParamContext\n};\n//# sourceMappingURL=QueryParamProvider.js.map\n","function searchStringToObject(searchString) {\n const params = new URLSearchParams(searchString);\n const parsed = {};\n for (let [key, value] of params) {\n if (Object.prototype.hasOwnProperty.call(parsed, key)) {\n if (Array.isArray(parsed[key])) {\n parsed[key].push(value);\n } else {\n parsed[key] = [parsed[key], value];\n }\n } else {\n parsed[key] = value;\n }\n }\n return parsed;\n}\nexport {\n searchStringToObject\n};\n//# sourceMappingURL=searchStringToObject.js.map\n","function objectToSearchString(encodedParams) {\n const params = new URLSearchParams();\n const entries = Object.entries(encodedParams);\n for (const [key, value] of entries) {\n if (value === void 0)\n continue;\n if (value === null)\n continue;\n if (Array.isArray(value)) {\n for (const item of value) {\n params.append(key, item != null ? item : \"\");\n }\n } else {\n params.append(key, value);\n }\n }\n return params.toString();\n}\nexport {\n objectToSearchString\n};\n//# sourceMappingURL=objectToSearchString.js.map\n","import {\n encodeQueryParams\n} from \"serialize-query-params\";\nimport { decodedParamCache } from \"./decodedParamCache\";\nimport { extendParamConfigForKeys } from \"./inheritedParams\";\nimport { getLatestDecodedValues } from \"./latestValues\";\nimport { memoSearchStringToObject } from \"./memoSearchStringToObject\";\nimport { removeDefaults } from \"./removeDefaults\";\nimport { applyUrlNames } from \"./urlName\";\nfunction getUpdatedSearchString({\n changes,\n updateType,\n currentSearchString,\n paramConfigMap: baseParamConfigMap,\n options\n}) {\n const { searchStringToObject, objectToSearchString } = options;\n if (updateType == null)\n updateType = options.updateType;\n let encodedChanges;\n const parsedParams = memoSearchStringToObject(\n searchStringToObject,\n currentSearchString\n );\n const paramConfigMap = extendParamConfigForKeys(\n baseParamConfigMap,\n Object.keys(changes),\n options.params\n );\n let changesToUse;\n if (typeof changes === \"function\") {\n const latestValues = getLatestDecodedValues(\n parsedParams,\n paramConfigMap,\n decodedParamCache\n );\n changesToUse = changes(latestValues);\n } else {\n changesToUse = changes;\n }\n encodedChanges = encodeQueryParams(paramConfigMap, changesToUse);\n if (options.removeDefaultsFromUrl) {\n removeDefaults(encodedChanges, paramConfigMap);\n }\n encodedChanges = applyUrlNames(encodedChanges, paramConfigMap);\n let newSearchString;\n if (updateType === \"push\" || updateType === \"replace\") {\n newSearchString = objectToSearchString(encodedChanges);\n } else {\n newSearchString = objectToSearchString({\n ...parsedParams,\n ...encodedChanges\n });\n }\n if ((newSearchString == null ? void 0 : newSearchString.length) && newSearchString[0] !== \"?\") {\n newSearchString = `?${newSearchString}`;\n }\n return newSearchString != null ? newSearchString : \"\";\n}\nfunction updateSearchString({\n searchString,\n adapter,\n navigate,\n updateType\n}) {\n const currentLocation = adapter.location;\n const newLocation = {\n ...currentLocation,\n search: searchString\n };\n if (navigate) {\n if (typeof updateType === \"string\" && updateType.startsWith(\"replace\")) {\n adapter.replace(newLocation);\n } else {\n adapter.push(newLocation);\n }\n }\n}\nconst immediateTask = (task) => task();\nconst timeoutTask = (task) => setTimeout(() => task(), 0);\nconst updateQueue = [];\nfunction enqueueUpdate(args, { immediate } = {}) {\n updateQueue.push(args);\n let scheduleTask = immediate ? immediateTask : timeoutTask;\n if (updateQueue.length === 1) {\n scheduleTask(() => {\n const updates = updateQueue.slice();\n updateQueue.length = 0;\n const initialSearchString = updates[0].currentSearchString;\n let searchString;\n for (let i = 0; i < updates.length; ++i) {\n const modifiedUpdate = i === 0 ? updates[i] : { ...updates[i], currentSearchString: searchString };\n searchString = getUpdatedSearchString(modifiedUpdate);\n }\n if (args.options.skipUpdateWhenNoChange && searchString === initialSearchString) {\n return;\n }\n updateSearchString({\n searchString: searchString != null ? searchString : \"\",\n adapter: updates[updates.length - 1].adapter,\n navigate: true,\n updateType: updates[updates.length - 1].updateType\n });\n });\n }\n}\nexport {\n enqueueUpdate,\n getUpdatedSearchString,\n updateSearchString\n};\n//# sourceMappingURL=updateSearchString.js.map\n","function removeDefaults(encodedValues, paramConfigMap) {\n var _a;\n for (const paramName in encodedValues) {\n if (((_a = paramConfigMap[paramName]) == null ? void 0 : _a.default) !== void 0 && encodedValues[paramName] !== void 0) {\n const encodedDefault = paramConfigMap[paramName].encode(\n paramConfigMap[paramName].default\n );\n if (encodedDefault === encodedValues[paramName]) {\n encodedValues[paramName] = void 0;\n }\n }\n }\n}\nexport {\n removeDefaults\n};\n//# sourceMappingURL=removeDefaults.js.map\n","import { useEffect, useMemo, useRef, useState } from \"react\";\nimport {\n StringParam\n} from \"serialize-query-params\";\nimport { decodedParamCache } from \"./decodedParamCache\";\nimport {\n extendParamConfigForKeys,\n convertInheritedParamStringsToParams\n} from \"./inheritedParams\";\nimport { makeStableGetLatestDecodedValues } from \"./latestValues\";\nimport { memoSearchStringToObject } from \"./memoSearchStringToObject\";\nimport { mergeOptions } from \"./options\";\nimport { useQueryParamContext } from \"./QueryParamProvider\";\nimport { enqueueUpdate } from \"./updateSearchString\";\nimport { serializeUrlNameMap } from \"./urlName\";\nfunction useQueryParams(arg1, arg2) {\n const { adapter, options: contextOptions } = useQueryParamContext();\n const [stableGetLatest] = useState(makeStableGetLatestDecodedValues);\n const { paramConfigMap: paramConfigMapWithInherit, options } = parseArguments(\n arg1,\n arg2\n );\n const mergedOptions = useMemo(() => {\n return mergeOptions(contextOptions, options);\n }, [contextOptions, options]);\n let paramConfigMap = convertInheritedParamStringsToParams(\n paramConfigMapWithInherit,\n mergedOptions\n );\n const parsedParams = memoSearchStringToObject(\n mergedOptions.searchStringToObject,\n adapter.location.search,\n serializeUrlNameMap(paramConfigMap)\n );\n if (mergedOptions.includeAllParams) {\n paramConfigMap = extendParamConfigForKeys(\n paramConfigMap,\n Object.keys(parsedParams),\n mergedOptions.params,\n StringParam\n );\n }\n const decodedValues = stableGetLatest(\n parsedParams,\n paramConfigMap,\n decodedParamCache\n );\n const paramKeyString = Object.keys(paramConfigMap).join(\"\\0\");\n useEffect(() => {\n const paramNames = paramKeyString.split(\"\\0\");\n decodedParamCache.registerParams(paramNames);\n return () => {\n decodedParamCache.unregisterParams(paramNames);\n };\n }, [paramKeyString]);\n const callbackDependencies = {\n adapter,\n paramConfigMap,\n options: mergedOptions\n };\n const callbackDependenciesRef = useRef(callbackDependencies);\n if (callbackDependenciesRef.current == null) {\n callbackDependenciesRef.current = callbackDependencies;\n }\n useEffect(() => {\n callbackDependenciesRef.current.adapter = adapter;\n callbackDependenciesRef.current.paramConfigMap = paramConfigMap;\n callbackDependenciesRef.current.options = mergedOptions;\n }, [adapter, paramConfigMap, mergedOptions]);\n const [setQuery] = useState(() => {\n const setQuery2 = (changes, updateType) => {\n const { adapter: adapter2, paramConfigMap: paramConfigMap2, options: options2 } = callbackDependenciesRef.current;\n if (updateType == null)\n updateType = options2.updateType;\n enqueueUpdate(\n {\n changes,\n updateType,\n currentSearchString: adapter2.location.search,\n paramConfigMap: paramConfigMap2,\n options: options2,\n adapter: adapter2\n },\n { immediate: !options2.enableBatching }\n );\n };\n return setQuery2;\n });\n return [decodedValues, setQuery];\n}\nvar useQueryParams_default = useQueryParams;\nfunction parseArguments(arg1, arg2) {\n let paramConfigMap;\n let options;\n if (arg1 === void 0) {\n paramConfigMap = {};\n options = arg2;\n } else if (Array.isArray(arg1)) {\n paramConfigMap = Object.fromEntries(\n arg1.map((key) => [key, \"inherit\"])\n );\n options = arg2;\n } else {\n paramConfigMap = arg1;\n options = arg2;\n }\n return { paramConfigMap, options };\n}\nexport {\n useQueryParams_default as default,\n useQueryParams\n};\n//# sourceMappingURL=useQueryParams.js.map\n","import { useCallback, useMemo } from \"react\";\nimport useQueryParams from \"./useQueryParams\";\nconst useQueryParam = (name, paramConfig, options) => {\n const paramConfigMap = useMemo(\n () => ({ [name]: paramConfig != null ? paramConfig : \"inherit\" }),\n [name, paramConfig]\n );\n const [query, setQuery] = useQueryParams(paramConfigMap, options);\n const decodedValue = query[name];\n const setValue = useCallback(\n (newValue, updateType) => {\n if (typeof newValue === \"function\") {\n return setQuery((latestValues) => {\n const newValueFromLatest = newValue(latestValues[name]);\n return { [name]: newValueFromLatest };\n }, updateType);\n }\n return setQuery({ [name]: newValue }, updateType);\n },\n [name, setQuery]\n );\n return [decodedValue, setValue];\n};\nexport {\n useQueryParam\n};\n//# sourceMappingURL=useQueryParam.js.map\n","/**\n * @license React\n * use-sync-external-store-with-selector.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var g=require(\"react\");function n(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var p=\"function\"===typeof Object.is?Object.is:n,q=g.useSyncExternalStore,r=g.useRef,t=g.useEffect,u=g.useMemo,v=g.useDebugValue;\nexports.useSyncExternalStoreWithSelector=function(a,b,e,l,h){var c=r(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;c=u(function(){function a(a){if(!c){c=!0;d=a;a=l(a);if(void 0!==h&&f.hasValue){var b=f.value;if(h(b,a))return k=b}return k=a}b=k;if(p(d,a))return b;var e=l(a);if(void 0!==h&&h(b,e))return b;d=a;return k=e}var c=!1,d,k,m=void 0===e?null:e;return[function(){return a(b())},null===m?void 0:function(){return a(m())}]},[b,e,l,h]);var d=q(a,c[0],c[1]);\nt(function(){f.hasValue=!0;f.value=d},[d]);v(d);return d};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/use-sync-external-store-with-selector.production.min.js');\n} else {\n module.exports = require('./cjs/use-sync-external-store-with-selector.development.js');\n}\n","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n return self;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}\nmodule.exports = _inheritsLoose, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n return _setPrototypeOf(o, p);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nconst PartytownSnippet = \"/* Partytown 0.7.6 - MIT builder.io */\\n!function(t,e,n,i,r,o,a,d,s,c,p,l){function u(){l||(l=1,\\\"/\\\"==(a=(o.lib||\\\"/~partytown/\\\")+(o.debug?\\\"debug/\\\":\\\"\\\"))[0]&&(s=e.querySelectorAll('script[type=\\\"text/partytown\\\"]'),i!=t?i.dispatchEvent(new CustomEvent(\\\"pt1\\\",{detail:t})):(d=setTimeout(f,1e4),e.addEventListener(\\\"pt0\\\",w),r?h(1):n.serviceWorker?n.serviceWorker.register(a+(o.swPath||\\\"partytown-sw.js\\\"),{scope:a}).then((function(t){t.active?h():t.installing&&t.installing.addEventListener(\\\"statechange\\\",(function(t){\\\"activated\\\"==t.target.state&&h()}))}),console.error):f())))}function h(t){c=e.createElement(t?\\\"script\\\":\\\"iframe\\\"),t||(c.setAttribute(\\\"style\\\",\\\"display:block;width:0;height:0;border:0;visibility:hidden\\\"),c.setAttribute(\\\"aria-hidden\\\",!0)),c.src=a+\\\"partytown-\\\"+(t?\\\"atomics.js?v=0.7.6\\\":\\\"sandbox-sw.html?\\\"+Date.now()),e.body.appendChild(c)}function f(n,r){for(w(),i==t&&(o.forward||[]).map((function(e){delete t[e.split(\\\".\\\")[0]]})),n=0;n {\n const { forward = [], ...filteredConfig } = config || {};\n const configStr = JSON.stringify(filteredConfig, (k, v) => {\n if (typeof v === 'function') {\n v = String(v);\n if (v.startsWith(k + '(')) {\n v = 'function ' + v;\n }\n }\n return v;\n });\n return [\n `!(function(w,p,f,c){`,\n Object.keys(filteredConfig).length > 0\n ? `c=w[p]=Object.assign(w[p]||{},${configStr});`\n : `c=w[p]=w[p]||{};`,\n `c[f]=(c[f]||[])`,\n forward.length > 0 ? `.concat(${JSON.stringify(forward)})` : ``,\n `})(window,'partytown','forward');`,\n snippetCode,\n ].join('');\n};\n\n/**\n * The `type` attribute for Partytown scripts, which does two things:\n *\n * 1. Prevents the `