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lB,EAAcmB,GAAAA,EAAKhB,EAASiB,OAAO,CAAE,CAAEC,GAAI,iBAAkBC,wBAAyB,CAC/IC,OAAQ,CAAC;;;;QAIrB,EAAEmB,EAAY,CAAC,UAAU,EAAEI,KAAKC,SAAS,CAACL,GAAW,CAAC,CAAC,CAAG,GAAG;iBACpD,EAAEjC,EAAc,GAAG,CAAC,CACnB,GAAK,GAAGT,EAAcmB,GAAAA,EAAKhB,EAASiB,OAAO,CAAE,CAAEC,GAAI,YAAa,YAAa,MAAOG,IAAK,CAAC,2CAA2C,EAAEe,EAAAA,EAAQI,EAAAA,EAAWC,EAAAA,EAAUC,EAAAA,CAAY,GAAI,EACtM,EAcA9C,EAAAA,YAAoB,CAZC,EAYEiD,EAXnB,QAA0BnD,IAAtBF,EAAiC,CACjCgC,QAAQC,IAAI,CAAC,CAAC,iDAAiD,CAAC,EAChE,MACJ,CACIC,MAAM,CAAClC,EAAkB,CACzBkC,CAD2B,KACrB,CAAClC,EAAkB,CAACmC,IAAI,CAACmB,GAG/BtB,QAAQC,IAAI,CAAC,CAAC,mCAAmC,EAAEjC,EAAkB,eAAe,CAAC,CAE7F","sources":["webpack://_N_E/./node_modules/third-party-capital/lib/cjs/third-parties/google-analytics/index.js","webpack://_N_E/./node_modules/@next/third-parties/dist/google/ga.js","webpack://_N_E/./node_modules/next/dist/api/navigation.js","webpack://_N_E/./node_modules/@next/third-parties/dist/google/youtube-embed.js","webpack://_N_E/./node_modules/third-party-capital/lib/cjs/index.js","webpack://_N_E/./node_modules/third-party-capital/lib/cjs/third-parties/google-maps-embed/index.js","webpack://_N_E/./node_modules/@next/third-parties/dist/ThirdPartyScriptEmbed.js","webpack://_N_E/./node_modules/next/dist/api/script.js","webpack://_N_E/./node_modules/@next/third-parties/dist/google/index.js","webpack://_N_E/./node_modules/third-party-capital/lib/cjs/utils/index.js","webpack://_N_E/./node_modules/third-party-capital/lib/cjs/third-parties/youtube-embed/index.js","webpack://_N_E/./node_modules/@next/third-parties/dist/google/google-maps-embed.js","webpack://_N_E/./node_modules/@next/third-parties/dist/google/gtm.js"],"sourcesContent":["\"use strict\";\n// Copyright 2023 Google LLC\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GoogleAnalytics = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nconst data_json_1 = __importDefault(require(\"./data.json\"));\nconst utils_1 = require(\"../../utils\");\nconst GoogleAnalytics = (_a) => {\n var args = __rest(_a, []);\n return (0, utils_1.formatData)(data_json_1.default, args);\n};\nexports.GoogleAnalytics = GoogleAnalytics;\n","\"use strict\";\n'use client';\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sendGAEvent = exports.GoogleAnalytics = void 0;\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\n// TODO: Evaluate import 'client only'\nconst react_1 = require(\"react\");\nconst script_1 = __importDefault(require(\"next/script\"));\nlet currDataLayerName = undefined;\nfunction GoogleAnalytics(props) {\n const { gaId, dataLayerName = 'dataLayer' } = props;\n if (currDataLayerName === undefined) {\n currDataLayerName = dataLayerName;\n }\n (0, react_1.useEffect)(() => {\n // performance.mark is being used as a feature use signal. While it is traditionally used for performance\n // benchmarking it is low overhead and thus considered safe to use in production and it is a widely available\n // existing API.\n // The performance measurement will be handled by Chrome Aurora\n performance.mark('mark_feature_usage', {\n detail: {\n feature: 'next-third-parties-ga',\n },\n });\n }, []);\n return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-ga-init\", dangerouslySetInnerHTML: {\n __html: `\n window['${dataLayerName}'] = window['${dataLayerName}'] || [];\n function gtag(){window['${dataLayerName}'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '${gaId}');`,\n } }), (0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-ga\", src: `https://www.googletagmanager.com/gtag/js?id=${gaId}` })] }));\n}\nexports.GoogleAnalytics = GoogleAnalytics;\nfunction sendGAEvent(..._args) {\n if (currDataLayerName === undefined) {\n console.warn(`@next/third-parties: GA has not been initialized`);\n return;\n }\n if (window[currDataLayerName]) {\n window[currDataLayerName].push(arguments);\n }\n else {\n console.warn(`@next/third-parties: GA dataLayer ${currDataLayerName} does not exist`);\n }\n}\nexports.sendGAEvent = sendGAEvent;\n","export * from '../client/components/navigation';\n\n//# sourceMappingURL=navigation.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\nconst script_1 = __importDefault(require(\"next/script\"));\nconst third_party_capital_1 = require(\"third-party-capital\");\nconst ThirdPartyScriptEmbed_1 = __importDefault(require(\"../ThirdPartyScriptEmbed\"));\nconst scriptStrategy = {\n server: 'beforeInteractive',\n client: 'afterInteractive',\n idle: 'lazyOnload',\n worker: 'worker',\n};\nfunction YouTubeEmbed(props) {\n const { html, scripts, stylesheets } = (0, third_party_capital_1.YouTubeEmbed)(props);\n return ((0, jsx_runtime_1.jsx)(ThirdPartyScriptEmbed_1.default, { height: props.height || null, width: props.width || null, html: html, dataNtpc: \"YouTubeEmbed\", children: scripts === null || scripts === void 0 ? void 0 : scripts.map((script) => ((0, jsx_runtime_1.jsx)(script_1.default, { src: script.url, strategy: scriptStrategy[script.strategy], stylesheets: stylesheets }, script.url))) }));\n}\nexports.default = YouTubeEmbed;\n","\"use strict\";\n// Copyright 2023 Google LLC\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.YouTubeEmbed = exports.GoogleMapsEmbed = exports.GoogleAnalytics = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nvar google_analytics_1 = require(\"./third-parties/google-analytics\");\nObject.defineProperty(exports, \"GoogleAnalytics\", { enumerable: true, get: function () { return google_analytics_1.GoogleAnalytics; } });\nvar google_maps_embed_1 = require(\"./third-parties/google-maps-embed\");\nObject.defineProperty(exports, \"GoogleMapsEmbed\", { enumerable: true, get: function () { return google_maps_embed_1.GoogleMapsEmbed; } });\nvar youtube_embed_1 = require(\"./third-parties/youtube-embed\");\nObject.defineProperty(exports, \"YouTubeEmbed\", { enumerable: true, get: function () { return youtube_embed_1.YouTubeEmbed; } });\n","\"use strict\";\n// Copyright 2023 Google LLC\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.GoogleMapsEmbed = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nconst data_json_1 = __importDefault(require(\"./data.json\"));\nconst utils_1 = require(\"../../utils\");\nconst GoogleMapsEmbed = (_a) => {\n var args = __rest(_a, []);\n return (0, utils_1.formatData)(data_json_1.default, args);\n};\nexports.GoogleMapsEmbed = GoogleMapsEmbed;\n","\"use strict\";\n'use client';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\nconst react_1 = require(\"react\");\nfunction ThirdPartyScriptEmbed({ html, height = null, width = null, children, dataNtpc = '', }) {\n (0, react_1.useEffect)(() => {\n if (dataNtpc) {\n // performance.mark is being used as a feature use signal. While it is traditionally used for performance\n // benchmarking it is low overhead and thus considered safe to use in production and it is a widely available\n // existing API.\n performance.mark('mark_feature_usage', {\n detail: {\n feature: `next-third-parties-${dataNtpc}`,\n },\n });\n }\n }, [dataNtpc]);\n return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [children, html ? ((0, jsx_runtime_1.jsx)(\"div\", { style: {\n height: height != null ? `${height}px` : 'auto',\n width: width != null ? `${width}px` : 'auto',\n }, \"data-ntpc\": dataNtpc, dangerouslySetInnerHTML: { __html: html } })) : null] }));\n}\nexports.default = ThirdPartyScriptEmbed;\n","export { default } from '../client/script';\nexport * from '../client/script';\n\n//# sourceMappingURL=script.js.map","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sendGAEvent = exports.GoogleAnalytics = exports.sendGTMEvent = exports.GoogleTagManager = exports.YouTubeEmbed = exports.GoogleMapsEmbed = void 0;\nvar google_maps_embed_1 = require(\"./google-maps-embed\");\nObject.defineProperty(exports, \"GoogleMapsEmbed\", { enumerable: true, get: function () { return __importDefault(google_maps_embed_1).default; } });\nvar youtube_embed_1 = require(\"./youtube-embed\");\nObject.defineProperty(exports, \"YouTubeEmbed\", { enumerable: true, get: function () { return __importDefault(youtube_embed_1).default; } });\nvar gtm_1 = require(\"./gtm\");\nObject.defineProperty(exports, \"GoogleTagManager\", { enumerable: true, get: function () { return gtm_1.GoogleTagManager; } });\nObject.defineProperty(exports, \"sendGTMEvent\", { enumerable: true, get: function () { return gtm_1.sendGTMEvent; } });\nvar ga_1 = require(\"./ga\");\nObject.defineProperty(exports, \"GoogleAnalytics\", { enumerable: true, get: function () { return ga_1.GoogleAnalytics; } });\nObject.defineProperty(exports, \"sendGAEvent\", { enumerable: true, get: function () { return ga_1.sendGAEvent; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.formatData = exports.createHtml = exports.formatUrl = void 0;\nfunction filterArgs(args, selectedArgs, inverse = false) {\n if (!selectedArgs)\n return {};\n return Object.keys(args)\n .filter((key) => inverse ? !selectedArgs.includes(key) : selectedArgs.includes(key))\n .reduce((obj, key) => {\n obj[key] = args[key];\n return obj;\n }, {});\n}\n// Add all required search params with user inputs as values\nfunction formatUrl(url, params, args, slug) {\n const newUrl = slug && Object.keys(slug).length > 0\n ? new URL(Object.values(slug)[0], url) // If there's a user inputted param for the URL slug, replace the default existing slug or include it\n : new URL(url);\n if (params && args) {\n params.forEach((param) => {\n if (args[param])\n newUrl.searchParams.set(param, args[param]);\n });\n }\n return newUrl.toString();\n}\nexports.formatUrl = formatUrl;\n// Construct HTML element and include all default attributes and user-inputted attributes\nfunction createHtml(element, attributes, htmlAttrArgs, urlQueryParamArgs, slugParamArg) {\n var _a;\n if (!attributes)\n return `<${element}>`;\n const formattedAttributes = ((_a = attributes.src) === null || _a === void 0 ? void 0 : _a.url)\n ? Object.assign(Object.assign({}, attributes), { src: formatUrl(attributes.src.url, attributes.src.params, urlQueryParamArgs, slugParamArg) }) : attributes;\n const htmlAttributes = Object.keys(Object.assign(Object.assign({}, formattedAttributes), htmlAttrArgs)).reduce((acc, name) => {\n const userVal = htmlAttrArgs === null || htmlAttrArgs === void 0 ? void 0 : htmlAttrArgs[name];\n const defaultVal = formattedAttributes[name];\n const finalVal = userVal !== null && userVal !== void 0 ? userVal : defaultVal; // overwrite\n const attrString = finalVal === true ? name : `${name}=\"${finalVal}\"`;\n return finalVal ? acc + ` ${attrString}` : acc;\n }, '');\n return `<${element}${htmlAttributes}>`;\n}\nexports.createHtml = createHtml;\n// Format JSON by including all default and user-required parameters\nfunction formatData(data, args) {\n var _a, _b, _c, _d, _e;\n const allScriptParams = (_a = data.scripts) === null || _a === void 0 ? void 0 : _a.reduce((acc, script) => [\n ...acc,\n ...(Array.isArray(script.params) ? script.params : []),\n ], []);\n // First, find all input arguments that map to parameters passed to script URLs\n const scriptUrlParamInputs = filterArgs(args, allScriptParams);\n // Second, find all input arguments that map to parameters passed to the HTML src attribute\n const htmlUrlParamInputs = filterArgs(args, (_c = (_b = data.html) === null || _b === void 0 ? void 0 : _b.attributes.src) === null || _c === void 0 ? void 0 : _c.params);\n // Third, find the input argument that maps to the slug parameter passed to the HTML src attribute if present\n const htmlSlugParamInput = filterArgs(args, [\n (_e = (_d = data.html) === null || _d === void 0 ? void 0 : _d.attributes.src) === null || _e === void 0 ? void 0 : _e.slugParam,\n ]);\n // Lastly, all remaining arguments are forwarded as separate HTML attributes\n const htmlAttrInputs = filterArgs(args, [\n ...Object.keys(scriptUrlParamInputs),\n ...Object.keys(htmlUrlParamInputs),\n ...Object.keys(htmlSlugParamInput),\n ], true);\n return Object.assign(Object.assign({}, data), { \n // Pass any custom attributes to HTML content\n html: data.html\n ? createHtml(data.html.element, data.html.attributes, htmlAttrInputs, htmlUrlParamInputs, htmlSlugParamInput)\n : null, \n // Pass any required query params with user values for relevant scripts\n scripts: data.scripts\n ? data.scripts.map((script) => (Object.assign(Object.assign({}, script), { url: formatUrl(script.url, script.params, scriptUrlParamInputs) })))\n : null });\n}\nexports.formatData = formatData;\n","\"use strict\";\n// Copyright 2023 Google LLC\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.YouTubeEmbed = void 0;\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// https://www.apache.org/licenses/LICENSE-2.0\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\nconst data_json_1 = __importDefault(require(\"./data.json\"));\nconst utils_1 = require(\"../../utils\");\nconst YouTubeEmbed = (_a) => {\n var args = __rest(_a, []);\n return (0, utils_1.formatData)(data_json_1.default, args);\n};\nexports.YouTubeEmbed = YouTubeEmbed;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\nconst third_party_capital_1 = require(\"third-party-capital\");\nconst ThirdPartyScriptEmbed_1 = __importDefault(require(\"../ThirdPartyScriptEmbed\"));\nfunction GoogleMapsEmbed(props) {\n const { apiKey, ...restProps } = props;\n const formattedProps = { ...restProps, key: apiKey };\n const { html } = (0, third_party_capital_1.GoogleMapsEmbed)(formattedProps);\n return ((0, jsx_runtime_1.jsx)(ThirdPartyScriptEmbed_1.default, { height: formattedProps.height || null, width: formattedProps.width || null, html: html, dataNtpc: \"GoogleMapsEmbed\" }));\n}\nexports.default = GoogleMapsEmbed;\n","\"use strict\";\n'use client';\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sendGTMEvent = exports.GoogleTagManager = void 0;\nconst jsx_runtime_1 = require(\"react/jsx-runtime\");\n// TODO: Evaluate import 'client only'\nconst react_1 = require(\"react\");\nconst script_1 = __importDefault(require(\"next/script\"));\nlet currDataLayerName = undefined;\nfunction GoogleTagManager(props) {\n const { gtmId, dataLayerName = 'dataLayer', auth, preview, dataLayer } = props;\n if (currDataLayerName === undefined) {\n currDataLayerName = dataLayerName;\n }\n const gtmLayer = dataLayerName !== 'dataLayer' ? `&l=${dataLayerName}` : '';\n const gtmAuth = auth ? `>m_auth=${auth}` : '';\n const gtmPreview = preview ? `>m_preview=${preview}>m_cookies_win=x` : '';\n (0, react_1.useEffect)(() => {\n // performance.mark is being used as a feature use signal. While it is traditionally used for performance\n // benchmarking it is low overhead and thus considered safe to use in production and it is a widely available\n // existing API.\n // The performance measurement will be handled by Chrome Aurora\n performance.mark('mark_feature_usage', {\n detail: {\n feature: 'next-third-parties-gtm',\n },\n });\n }, []);\n return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-gtm-init\", dangerouslySetInnerHTML: {\n __html: `\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ${dataLayer ? `w[l].push(${JSON.stringify(dataLayer)})` : ''}\n })(window,'${dataLayerName}');`,\n } }), (0, jsx_runtime_1.jsx)(script_1.default, { id: \"_next-gtm\", \"data-ntpc\": \"GTM\", src: `https://www.googletagmanager.com/gtm.js?id=${gtmId}${gtmLayer}${gtmAuth}${gtmPreview}` })] }));\n}\nexports.GoogleTagManager = GoogleTagManager;\nconst sendGTMEvent = (data) => {\n if (currDataLayerName === undefined) {\n console.warn(`@next/third-parties: GTM has not been initialized`);\n return;\n }\n if (window[currDataLayerName]) {\n window[currDataLayerName].push(data);\n }\n else {\n console.warn(`@next/third-parties: GTM dataLayer ${currDataLayerName} does not exist`);\n }\n};\nexports.sendGTMEvent = sendGTMEvent;\n"],"names":["currDataLayerName","Object","undefined","value","exports","jsx_runtime_1","require","react_1","script_1","__importDefault","mod","__esModule","GoogleAnalytics","gaId","dataLayerName","props","useEffect","performance","mark","detail","feature","jsxs","Fragment","children","jsx","default","id","dangerouslySetInnerHTML","__html","src","sendGAEvent","_args","console","warn","window","push","arguments","ThirdPartyScriptEmbed","html","height","width","dataNtpc","style","GoogleTagManager","gtmId","auth","preview","dataLayer","gtmLayer","gtmAuth","gtmPreview","JSON","stringify","sendGTMEvent","data"],"sourceRoot":"","ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12]}