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C,UAAUyC,WAI/B,oBAAX3jB,QACa,oBAAb6M,SAEX,EAgIE/L,QAASA,EACT8b,MAvEF,SAASA,IACP,IAAIhV,EAAS,CAAC,EACd,SAASgc,EAAY3L,EAAKlX,GACpB6c,EAAchW,EAAO7G,KAAS6c,EAAc3F,GAC9CrQ,EAAO7G,GAAO6b,EAAMhV,EAAO7G,GAAMkX,GACxB2F,EAAc3F,GACvBrQ,EAAO7G,GAAO6b,EAAM,CAAC,EAAG3E,GACfnO,EAAQmO,GACjBrQ,EAAO7G,GAAOkX,EAAI4F,QAElBjW,EAAO7G,GAAOkX,CAElB,CAEA,IAAK,IAAIhW,EAAI,EAAGohB,EAAI5I,UAAU1a,OAAQkC,EAAIohB,EAAGphB,IAC3CnB,EAAQ2Z,UAAUxY,GAAI2hB,GAExB,OAAOhc,CACT,EAsDEqR,OA5CF,SAAgB4K,EAAGC,EAAGpE,GAQpB,OAPA5e,EAAQgjB,GAAG,SAAqB7L,EAAKlX,GAEjC8iB,EAAE9iB,GADA2e,GAA0B,mBAARzH,EACX1Q,EAAK0Q,EAAKyH,GAEVzH,CAEb,IACO4L,CACT,EAoCExE,KAhKF,SAAc9S,GACZ,OAAOA,EAAI8S,KAAO9S,EAAI8S,OAAS9S,EAAIlL,QAAQ,aAAc,GAC3D,EA+JE0iB,SA7BF,SAAkB7W,GAIhB,OAH8B,QAA1BA,EAAQ8W,WAAW,KACrB9W,EAAUA,EAAQ2Q,MAAM,IAEnB3Q,CACT,E","sources":["webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/media-api.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/Image.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/Link.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/MissingComponent.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/PlaceholderCommon.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/Placeholder.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/enhancers/withComponentFactory.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/SitecoreContext.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/Text.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/components/VisitorIdentification.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/enhancers/withSitecoreContext.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss-react/dist/esm/utils.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/layout/layout-service.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/debug.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/axios-fetcher.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/utils/resolve-url.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/data-fetcher.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/layout/rest-layout-service.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/utils/editing.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/dist/esm/utils/is-server.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/index.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/adapters/xhr.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/axios.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/cancel/Cancel.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/cancel/CancelToken.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/cancel/isCancel.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/Axios.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/InterceptorManager.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/buildFullPath.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/createError.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/dispatchRequest.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/enhanceError.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/mergeConfig.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/settle.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/core/transformData.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/defaults.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/bind.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/buildURL.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/combineURLs.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/cookies.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/isAxiosError.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/parseHeaders.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/spread.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/helpers/validator.js","webpack://acura/./node_modules/@sitecore-jss/sitecore-jss/node_modules/axios/lib/utils.js"],"sourcesContent":["import unescape from 'lodash.unescape';\nimport URL from 'url-parse';\n// finds an img tag with HTML attributes\nconst imgTagRegex = /]+)\\/>/i;\n// finds all the HTML attributes in a string\nconst htmlAttrsRegex = /([^=\\s]+)(=\"([^\"]*)\")?/gi;\n// finds the Sitecore media URL prefix\nconst mediaUrlPrefixRegex = /\\/([-~]{1})\\/media\\//i;\n/**\n * Makes a request to Sitecore Content Service for the specified item path.\n * @param {string} editorMarkup\n * @returns {Object | null} found image tag\n */\nexport const findEditorImageTag = (editorMarkup) => {\n // match the tag\n const tagMatch = editorMarkup.match(imgTagRegex);\n if (!tagMatch || tagMatch.length < 2) {\n return null;\n }\n // find the attrs and turn them into a Map\n const attrs = {};\n let match = htmlAttrsRegex.exec(tagMatch[1]);\n while (match !== null) {\n attrs[match[1]] = unescape(match[3]);\n match = htmlAttrsRegex.exec(tagMatch[1]);\n }\n return {\n imgTag: tagMatch[0],\n attrs,\n };\n};\n/**\n * Get required query string params which should be merged with user params\n * @param {object} qs layout service parsed query string\n * @returns {object} requiredParams\n */\nexport const getRequiredParams = (qs) => {\n const { rev, db, la, vs, ts } = qs;\n return { rev, db, la, vs, ts };\n};\n/**\n * Prepares a Sitecore media URL with `params` for use by the JSS media handler.\n * This is done by replacing `/~/media` or `/-/media` with `/~/jssmedia` or `/-/jssmedia`, respectively.\n * Provided `params` are used as the querystring parameters for the media URL.\n * Can use `mediaUrlPrefix` in order to use a custom prefix.\n * If no `params` are sent, the original media URL is returned.\n * @param {string} url\n * @param {Object} [params]\n * @param {RegExp} [mediaUrlPrefix=mediaUrlPrefixRegex]\n * @returns {string} url\n */\nexport const updateImageUrl = (url, params, mediaUrlPrefix = mediaUrlPrefixRegex) => {\n if (!params || Object.keys(params).length === 0) {\n // if params aren't supplied, no need to run it through JSS media handler\n return url;\n }\n // polyfill node `global` in browser to workaround https://github.com/unshiftio/url-parse/issues/150\n if (typeof window !== 'undefined' && !window.global) {\n window.global = {};\n }\n const parsed = URL(url, {}, true);\n const requiredParams = getRequiredParams(parsed.query);\n const query = Object.assign({}, params);\n Object.entries(requiredParams).forEach(([key, param]) => {\n if (param) {\n query[key] = param;\n }\n });\n parsed.set('query', query);\n const match = mediaUrlPrefix.exec(parsed.pathname);\n if (match && match.length > 1) {\n // regex will provide us with /-/ or /~/ type\n parsed.set('pathname', parsed.pathname.replace(mediaUrlPrefix, `/${match[1]}/jssmedia/`));\n }\n return parsed.toString();\n};\n/**\n * Receives an array of `srcSet` parameters that are iterated and used as parameters to generate\n * a corresponding set of updated Sitecore media URLs via @see updateImageUrl. The result is a comma-delimited\n * list of media URLs with respective dimension parameters.\n *\n * @example\n * // returns '/ipsum.jpg?h=1000&w=1000 1000w, /ipsum.jpg?mh=250&mw=250 250w'\n * getSrcSet('/ipsum.jpg', [{ h: 1000, w: 1000 }, { mh: 250, mw: 250 } ])\n *\n * More information about `srcSet`: {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img}\n *\n * @param {string} url\n * @param {Array} srcSet\n * @param {Object} [imageParams]\n * @param {RegExp} [mediaUrlPrefix]\n * @returns {string} src set\n */\nexport const getSrcSet = (url, srcSet, imageParams, mediaUrlPrefix) => {\n return srcSet\n .map((params) => {\n const newParams = Object.assign(Object.assign({}, imageParams), params);\n const imageWidth = newParams.w || newParams.mw;\n if (!imageWidth) {\n return null;\n }\n return `${updateImageUrl(url, newParams, mediaUrlPrefix)} ${imageWidth}w`;\n })\n .filter((value) => value)\n .join(', ');\n};\n","var __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};\nimport { mediaApi } from '@sitecore-jss/sitecore-jss';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOMServer from 'react-dom/server';\nimport { convertAttributesToReactProps } from '../utils';\nconst getEditableWrapper = (editableMarkup, ...otherProps) => (\n// create an inline wrapper and use dangerouslySetInnerHTML.\n// if we try to parse the EE value, the parser will strip invalid or disallowed attributes from html elements - and EE uses several\nReact.createElement(\"span\", Object.assign({ className: \"sc-image-wrapper\" }, otherProps, { dangerouslySetInnerHTML: { __html: editableMarkup } })));\nconst getImageAttrs = (_a, imageParams, mediaUrlPrefix) => {\n var { src, srcSet } = _a, otherAttrs = __rest(_a, [\"src\", \"srcSet\"]);\n if (!src) {\n return null;\n }\n const newAttrs = Object.assign({}, otherAttrs);\n // update image URL for jss handler and image rendering params\n const resolvedSrc = mediaApi.updateImageUrl(src, imageParams, mediaUrlPrefix);\n if (srcSet) {\n // replace with HTML-formatted srcset, including updated image URLs\n newAttrs.srcSet = mediaApi.getSrcSet(resolvedSrc, srcSet, imageParams, mediaUrlPrefix);\n }\n // always output original src as fallback for older browsers\n newAttrs.src = resolvedSrc;\n return newAttrs;\n};\nexport const Image = (_a) => {\n var { media, editable, imageParams, field, mediaUrlPrefix } = _a, otherProps = __rest(_a, [\"media\", \"editable\", \"imageParams\", \"field\", \"mediaUrlPrefix\"]);\n // allows the mistake of using 'field' prop instead of 'media' (consistent with other helpers)\n if (field && !media) {\n media = field;\n }\n const dynamicMedia = media;\n if (!media ||\n (!dynamicMedia.editable && !dynamicMedia.value && !dynamicMedia.src)) {\n return null;\n }\n const imageField = dynamicMedia;\n // we likely have an experience editor value, should be a string\n if (editable && imageField.editable) {\n const foundImg = mediaApi.findEditorImageTag(imageField.editable);\n if (!foundImg) {\n return getEditableWrapper(imageField.editable);\n }\n const foundImgProps = convertAttributesToReactProps(foundImg.attrs);\n // Note: otherProps may override values from foundImgProps, e.g. `style`, `className` prop\n // We do not attempt to merge.\n const imgAttrs = getImageAttrs(Object.assign(Object.assign({}, foundImgProps), otherProps), imageParams, mediaUrlPrefix);\n if (!imgAttrs) {\n return getEditableWrapper(imageField.editable);\n }\n const imgHtml = ReactDOMServer.renderToStaticMarkup(React.createElement(\"img\", Object.assign({}, imgAttrs)));\n const editableMarkup = imageField.editable.replace(foundImg.imgTag, imgHtml);\n return getEditableWrapper(editableMarkup);\n }\n // some wise-guy/gal is passing in a 'raw' image object value\n const img = dynamicMedia.src\n ? media\n : dynamicMedia.value;\n if (!img) {\n return null;\n }\n const attrs = getImageAttrs(Object.assign(Object.assign({}, img), otherProps), imageParams, mediaUrlPrefix);\n if (attrs) {\n return React.createElement(\"img\", Object.assign({}, attrs));\n }\n return null; // we can't handle the truth\n};\nImage.propTypes = {\n media: PropTypes.oneOfType([\n PropTypes.shape({\n src: PropTypes.string,\n }),\n PropTypes.shape({\n value: PropTypes.object,\n editable: PropTypes.string,\n }),\n ]),\n field: PropTypes.oneOfType([\n PropTypes.shape({\n src: PropTypes.string,\n }),\n PropTypes.shape({\n value: PropTypes.object,\n editable: PropTypes.string,\n }),\n ]),\n editable: PropTypes.bool,\n mediaUrlPrefix: PropTypes.instanceOf(RegExp),\n imageParams: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.number.isRequired, PropTypes.string.isRequired]).isRequired),\n};\nImage.defaultProps = {\n editable: true,\n};\nImage.displayName = 'Image';\n","var __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};\nimport React from 'react';\nimport PropTypes from 'prop-types';\nexport const Link = (_a) => {\n var { field, editable, children, showLinkTextWithChildrenPresent } = _a, otherProps = __rest(_a, [\"field\", \"editable\", \"children\", \"showLinkTextWithChildrenPresent\"]);\n const dynamicField = field;\n if (!field ||\n (!dynamicField.editableFirstPart &&\n !dynamicField.value &&\n !dynamicField.href)) {\n return null;\n }\n const resultTags = [];\n // EXPERIENCE EDITOR RENDERING\n if (editable && dynamicField.editableFirstPart) {\n const markup = dynamicField.editableFirstPart + dynamicField.editableLastPart;\n // in an ideal world, we'd pre-render React children here and inject them between editableFirstPart and editableLastPart.\n // However, we cannot combine arbitrary unparsed HTML (innerHTML) based components with actual vDOM components (the children)\n // because the innerHTML is not parsed - it'd make a discontinuous vDOM. So, we'll go for the next best compromise of rendering the link field and children separately\n // as siblings. Should be \"good enough\" for most cases - and write your own helper if it isn't. Or bring xEditor out of 2006.\n const htmlProps = Object.assign(Object.assign({ className: 'sc-link-wrapper', dangerouslySetInnerHTML: {\n __html: markup,\n } }, otherProps), { key: 'editable' });\n resultTags.push(React.createElement(\"span\", Object.assign({}, htmlProps)));\n // don't render normal link tag when editing, if no children exist\n // this preserves normal-ish behavior if not using a link body (no hacks required)\n if (!children) {\n return resultTags[0];\n }\n }\n // handle link directly on field for forgetful devs\n const link = dynamicField.href\n ? field\n : dynamicField.value;\n if (!link) {\n return null;\n }\n const anchor = link.linktype !== 'anchor' && link.anchor ? `#${link.anchor}` : '';\n const querystring = link.querystring ? `?${link.querystring}` : '';\n const anchorAttrs = {\n href: `${link.href}${querystring}${anchor}`,\n className: link.class,\n title: link.title,\n target: link.target,\n };\n if (anchorAttrs.target === '_blank' && !anchorAttrs.rel) {\n // information disclosure attack prevention keeps target blank site from getting ref to window.opener\n anchorAttrs.rel = 'noopener noreferrer';\n }\n const linkText = showLinkTextWithChildrenPresent || !children ? link.text || link.href : null;\n resultTags.push(React.createElement('a', Object.assign(Object.assign(Object.assign({}, anchorAttrs), otherProps), { key: 'link' }), linkText, children));\n return React.createElement(React.Fragment, null, resultTags);\n};\nexport const LinkPropTypes = {\n field: PropTypes.oneOfType([\n PropTypes.shape({\n href: PropTypes.string,\n }),\n PropTypes.shape({\n value: PropTypes.object,\n editableFirstPart: PropTypes.string,\n editableLastPart: PropTypes.string,\n }),\n ]).isRequired,\n editable: PropTypes.bool,\n children: PropTypes.node,\n showLinkTextWithChildrenPresent: PropTypes.bool,\n};\nLink.propTypes = LinkPropTypes;\nLink.defaultProps = {\n editable: true,\n};\nLink.displayName = 'Link';\n","import PropTypes from 'prop-types';\nimport React from 'react';\nexport const MissingComponent = (props) => {\n const componentName = props.rendering && props.rendering.componentName\n ? props.rendering.componentName\n : 'Unnamed Component';\n console.log(`Component props for unimplemented '${componentName}' component`, props);\n return (React.createElement(\"div\", { style: {\n background: 'darkorange',\n outline: '5px solid orange',\n padding: '10px',\n color: 'white',\n maxWidth: '500px',\n } },\n React.createElement(\"h2\", null, componentName),\n React.createElement(\"p\", null, \"JSS component is missing React implementation. See the developer console for more information.\")));\n};\nMissingComponent.propTypes = {\n rendering: PropTypes.shape({\n componentName: PropTypes.string,\n }),\n};\nMissingComponent.displayName = 'MissingComponent';\n","var __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};\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { MissingComponent } from '../components/MissingComponent';\nimport { convertAttributesToReactProps } from '../utils';\nexport class PlaceholderCommon extends React.Component {\n constructor(props) {\n super(props);\n this.nodeRefs = [];\n this.state = {};\n this.addRef = this.addRef.bind(this);\n this.updateKeyAttributes = this.updateKeyAttributes.bind(this);\n this.createRawElement = this.createRawElement.bind(this);\n }\n static getPlaceholderDataFromRenderingData(rendering, name) {\n let result;\n if (rendering && rendering.placeholders && Object.keys(rendering.placeholders).length > 0) {\n result = rendering.placeholders[name];\n }\n else {\n result = null;\n }\n if (!result) {\n console.warn(`Placeholder '${name}' was not found in the current rendering data`, JSON.stringify(rendering, null, 2));\n return [];\n }\n return result;\n }\n componentDidMount() {\n this.updateKeyAttributes();\n }\n componentDidUpdate() {\n this.updateKeyAttributes();\n }\n componentDidCatch(error) {\n this.setState({ error });\n }\n getComponentsForRenderingData(placeholderData) {\n const _a = this.props, { name, fields: placeholderFields, params: placeholderParams, missingComponentComponent } = _a, placeholderProps = __rest(_a, [\"name\", \"fields\", \"params\", \"missingComponentComponent\"]);\n return placeholderData\n .map((rendering, index) => {\n const key = rendering.uid\n ? rendering.uid\n : `component-${index}`;\n const commonProps = { key };\n // if the element is not a 'component rendering', render it 'raw'\n if (!rendering.componentName &&\n rendering.name) {\n return this.createRawElement(rendering, commonProps);\n }\n const componentRendering = rendering;\n let component = this.getComponentForRendering(componentRendering);\n if (!component) {\n console.error(`Placeholder ${name} contains unknown component ${componentRendering.componentName}. Ensure that a React component exists for it, and that it is registered in your componentFactory.js.`);\n component = missingComponentComponent !== null && missingComponentComponent !== void 0 ? missingComponentComponent : MissingComponent;\n }\n const finalProps = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, commonProps), placeholderProps), ((placeholderFields || componentRendering.fields) && {\n fields: Object.assign(Object.assign({}, placeholderFields), componentRendering.fields),\n })), ((placeholderParams || componentRendering.params) && {\n params: Object.assign(Object.assign({}, placeholderParams), componentRendering.params),\n })), { rendering: componentRendering });\n return React.createElement(component, finalProps);\n })\n .filter((element) => element); // remove nulls\n }\n getComponentForRendering(renderingDefinition) {\n const componentFactory = this.props.componentFactory;\n if (!componentFactory || typeof componentFactory !== 'function') {\n console.warn(`No componentFactory was available to service request for component ${renderingDefinition}`);\n return null;\n }\n return componentFactory(renderingDefinition.componentName);\n }\n addRef(nodeRef) {\n this.nodeRefs.push(nodeRef);\n }\n createRawElement(elem, baseProps) {\n if (!elem.name) {\n console.error('\"elem.name\" is undefined in \"createRawElement\". Something is likely wrong with your component data. Ensure that your components have a name.');\n return null;\n }\n const attributes = convertAttributesToReactProps(elem.attributes);\n const props = Object.assign(Object.assign(Object.assign({}, baseProps), attributes), { dangerouslySetInnerHTML: elem.contents ? { __html: elem.contents } : undefined });\n /* Since we can't set the \"key\" attribute via React, stash it\n * so we can set in the DOM after render.\n */\n if (!Array.isArray(attributes) && attributes && attributes.chrometype === 'placeholder') {\n props.phkey = elem.attributes.key; // props that get rendered as dom attribute names need to be lowercase, otherwise React complains.\n props.ref = this.addRef; // only need ref for placeholder containers, trying to add it to other components (e.g. stateless components) may result in a warning.\n }\n return React.createElement(elem.name, props);\n }\n updateKeyAttributes() {\n if (!this.nodeRefs) {\n return;\n }\n this.nodeRefs.forEach((ref) => {\n if (ref && ref.getAttribute) {\n // ref might be a wrapped component, so check for existence of getAttribute method\n const key = ref.getAttribute('phkey');\n if (key) {\n // need to manually set the 'key' attribute after component mount because\n // 'key' is a reserved attribute/prop in React. so it will never be rendered\n // as an html attribute.\n ref.setAttribute('key', key);\n }\n }\n });\n }\n}\nPlaceholderCommon.propTypes = {\n rendering: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.object,\n ]).isRequired,\n fields: PropTypes.objectOf(PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.object,\n ]).isRequired),\n params: PropTypes.objectOf(PropTypes.string.isRequired),\n missingComponentComponent: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n ]),\n errorComponent: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n ]),\n};\n","import React from 'react';\nimport { PlaceholderCommon } from './PlaceholderCommon';\nimport { withComponentFactory } from '../enhancers/withComponentFactory';\nimport { HorizonEditor, } from '@sitecore-jss/sitecore-jss';\n/**\n * @param {HtmlElementRendering | ComponentRendering} rendering\n */\nfunction isRawRendering(rendering) {\n return (!rendering.componentName &&\n rendering.name !== undefined);\n}\nclass PlaceholderComponent extends PlaceholderCommon {\n constructor(props) {\n super(props);\n this.isEmpty = false;\n }\n componentDidMount() {\n if (this.isEmpty && HorizonEditor.isActive()) {\n HorizonEditor.resetChromes();\n }\n }\n render() {\n const childProps = Object.assign({}, this.props);\n delete childProps.componentFactory;\n if (this.state.error) {\n if (childProps.errorComponent) {\n return React.createElement(childProps.errorComponent, { error: this.state.error });\n }\n return (React.createElement(\"div\", { className: \"sc-jss-placeholder-error\" },\n \"A rendering error occurred: \",\n this.state.error.message,\n \".\"));\n }\n const renderingData = childProps.rendering;\n const placeholderData = PlaceholderCommon.getPlaceholderDataFromRenderingData(renderingData, this.props.name);\n const components = this.getComponentsForRenderingData(placeholderData);\n this.isEmpty = placeholderData.every((rendering) => isRawRendering(rendering));\n if (this.props.renderEmpty && this.isEmpty) {\n return this.props.renderEmpty(components);\n }\n else if (this.props.render) {\n return this.props.render(components, placeholderData, childProps);\n }\n else if (this.props.renderEach) {\n const renderEach = this.props.renderEach;\n return components.map((component, index) => {\n if (component && component.props && component.props.type === 'text/sitecore') {\n return component;\n }\n return renderEach(component, index);\n });\n }\n else {\n return components;\n }\n }\n}\nPlaceholderComponent.propTypes = PlaceholderCommon.propTypes;\nexport const Placeholder = withComponentFactory(PlaceholderComponent);\n","import React from 'react';\nimport { ComponentFactoryReactContext } from '../components/SitecoreContext';\n/**\n * @param {React.ComponentClass | React.SFC} Component\n */\nexport function withComponentFactory(Component) {\n return function WithComponentFactory(props) {\n return (React.createElement(ComponentFactoryReactContext.Consumer, null, (context) => React.createElement(Component, Object.assign({}, props, { componentFactory: props.componentFactory || context }))));\n };\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport deepEqual from 'deep-equal';\nexport const SitecoreContextReactContext = React.createContext({});\nexport const ComponentFactoryReactContext = React.createContext({});\nexport class SitecoreContext extends React.Component {\n constructor(props) {\n super(props);\n this.setContext = (value) => {\n if (deepEqual(value, this.state.context))\n return;\n this.setState({\n context: value,\n });\n };\n let context = {\n pageEditing: false,\n };\n if (props.context) {\n context = props.context;\n }\n if (props.context === null) {\n context = null;\n }\n this.state = {\n context,\n setContext: this.setContext,\n };\n }\n componentDidUpdate(prevProps) {\n if (!deepEqual(prevProps.context, this.props.context)) {\n this.setState({\n context: this.props.context,\n });\n return;\n }\n }\n render() {\n return (React.createElement(ComponentFactoryReactContext.Provider, { value: this.props.componentFactory },\n React.createElement(SitecoreContextReactContext.Provider, { value: this.state }, this.props.children)));\n }\n}\nSitecoreContext.propTypes = {\n children: PropTypes.any.isRequired,\n componentFactory: PropTypes.func,\n context: PropTypes.any,\n};\nSitecoreContext.displayName = 'SitecoreContext';\n","var __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};\nimport React from 'react';\nimport PropTypes from 'prop-types';\nexport const Text = (_a) => {\n var { field, tag, editable, encode } = _a, otherProps = __rest(_a, [\"field\", \"tag\", \"editable\", \"encode\"]);\n if (!field || (!field.editable && (field.value === undefined || field.value === ''))) {\n return null;\n }\n // can't use editable value if we want to output unencoded\n if (!encode) {\n // eslint-disable-next-line no-param-reassign\n editable = false;\n }\n const isEditable = field.editable && editable;\n let output = isEditable\n ? field.editable || ''\n : field.value === undefined\n ? ''\n : field.value;\n // when string value isn't formatted, we should format line breaks\n if (!field.editable && typeof output === 'string') {\n const splitted = String(output).split('\\n');\n if (splitted.length) {\n const formatted = [];\n splitted.forEach((str, i) => {\n const isLast = i === splitted.length - 1;\n formatted.push(str);\n if (!isLast) {\n formatted.push(React.createElement(\"br\", { key: i }));\n }\n });\n output = formatted;\n }\n }\n const setDangerously = isEditable || !encode;\n let children = null;\n const htmlProps = Object.assign({}, otherProps);\n if (setDangerously) {\n htmlProps.dangerouslySetInnerHTML = {\n __html: output,\n };\n }\n else {\n children = output;\n }\n if (tag || setDangerously) {\n return React.createElement(tag || 'span', htmlProps, children);\n }\n else {\n return React.createElement(React.Fragment, null, children);\n }\n};\nText.propTypes = {\n field: PropTypes.shape({\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n editable: PropTypes.string,\n }),\n tag: PropTypes.string,\n editable: PropTypes.bool,\n encode: PropTypes.bool,\n};\nText.defaultProps = {\n editable: true,\n encode: true,\n};\nText.displayName = 'Text';\n","import { withSitecoreContext } from '../enhancers/withSitecoreContext';\nlet emittedVI = false;\nconst VIComponent = ({ sitecoreContext }) => {\n if (emittedVI ||\n typeof document === 'undefined' ||\n !sitecoreContext.visitorIdentificationTimestamp) {\n // Don't emit VI script and meta tag if we've already done so,\n // aren't rendering client-side, or don't have a VI timestamp.\n return null;\n }\n emittedVI = true;\n const script = document.createElement('script');\n script.src = '/layouts/system/VisitorIdentification.js';\n script.type = 'text/javascript';\n const meta = document.createElement('meta');\n meta.name = 'VIcurrentDateTime';\n meta.content = sitecoreContext.visitorIdentificationTimestamp;\n const head = document.querySelector('head');\n head && head.appendChild(script);\n head && head.appendChild(meta);\n return null;\n};\nVIComponent.displayName = 'VisitorIdentification';\nexport const VisitorIdentification = withSitecoreContext()(VIComponent);\n","import React from 'react';\nimport { SitecoreContextReactContext } from '../components/SitecoreContext';\n/**\n * @param {WithSitecoreContextOptions} [options]\n */\nexport function withSitecoreContext(options) {\n return function withSitecoreContextHoc(Component) {\n return function WithSitecoreContext(props) {\n return (React.createElement(SitecoreContextReactContext.Consumer, null, (context) => (React.createElement(Component, Object.assign({}, props, { sitecoreContext: context.context, updateSitecoreContext: options && options.updatable && context.setContext })))));\n };\n };\n}\n/**\n * This hook grants acсess to the current SiteCore page context\n * by default JSS includes the following properties in this context:\n * - pageEditing - Provided by Layout Service, a boolean indicating whether the route is being accessed via the Experience Editor.\n * - pageState - Like pageEditing, but a string: normal, preview or edit.\n * - site - Provided by Layout Service, an object containing the name of the current Sitecore site context.\n *\n * @see https://jss.sitecore.com/docs/techniques/extending-layout-service/layoutservice-extending-context\n *\n * @param {WithSitecoreContextOptions} [options] hook options\n *\n * @example\n * const EditMode = () => {\n * const { sitecoreContext } = useSitecoreContext();\n * return Edit Mode is {sitecoreContext.pageEditing ? 'active' : 'inactive'}\n * }\n *\n * @example\n * const EditMode = () => {\n * const { sitecoreContext, updateSitecoreContext } = useSitecoreContext({ updatable: true });\n * const onClick = () => updateSitecoreContext({ pageEditing: true });\n * return Edit Mode is {sitecoreContext.pageEditing ? 'active' : 'inactive'}\n * }\n * @returns {Object} { sitecoreContext, updateSitecoreContext }\n */\nexport function useSitecoreContext(options) {\n const reactContext = React.useContext(SitecoreContextReactContext);\n const updatable = options === null || options === void 0 ? void 0 : options.updatable;\n return {\n sitecoreContext: reactContext.context,\n updateSitecoreContext: updatable ? reactContext.setContext : undefined,\n };\n}\n","import { parse as styleParse } from 'style-attr';\n// https://stackoverflow.com/a/10426674/9324\nexport const convertKebabCasetoCamelCase = (str) => str.replace(/^.|-./g, (letter, index) => index === 0 ? letter.toLowerCase() : letter.substr(1).toUpperCase());\n/**\n * https://facebook.github.io/react/docs/dom-elements.html\n * We are only concerned with style at the moment, which needs to be converted from string to object to satisfy React.\n * We don't need to convert any other attributes (that we know of), because the placeholder renders them \"as-is\" by using the special \"is\" React prop.\n * For whatever reason though, the \"style\" prop is still validated as needing to be an object when using the \"is\" prop, which is why we need to convert from string to object.\n * @param {string} [style] style\n * @returns {Array} converted attributes\n */\nexport const convertStyleAttribute = (style = '') => {\n // styleParse converts a style attribute string into an object format\n const parsedStyle = styleParse(style, { preserveNumbers: true });\n return Object.keys(parsedStyle).reduce((initialResult, styleKey) => {\n const result = initialResult;\n const convertedKey = convertKebabCasetoCamelCase(styleKey);\n result[convertedKey] = parsedStyle[styleKey];\n return result;\n }, {});\n};\nexport const convertAttributesToReactProps = (attributes) => {\n if (!attributes) {\n return [];\n }\n return Object.keys(attributes).reduce((initialResult, attrName) => {\n const result = initialResult;\n switch (attrName) {\n case 'class': {\n result.className = attributes.class;\n break;\n }\n case 'style': {\n result.style = convertStyleAttribute(attributes.style);\n break;\n }\n default: {\n result[attrName] = attributes[attrName];\n break;\n }\n }\n return result;\n }, {});\n};\n","export class LayoutServiceBase {\n}\n","var _a;\nimport debug from 'debug';\nimport isServer from './utils/is-server';\nconst rootNamespace = 'sitecore-jss';\n// On server/node side, allow switching from the built-in\n// `%o` (pretty-print single line) and `%O` (pretty-print multiple line)\n// with a `DEBUG_MULTILINE` environment variable.\nif (isServer() &&\n ((_a = process === null || process === void 0 ? void 0 : process.env) === null || _a === void 0 ? void 0 : _a.DEBUG_MULTILINE) === 'true' &&\n debug.formatters.o &&\n debug.formatters.O) {\n debug.formatters.o = debug.formatters.O;\n}\n/**\n * Default Sitecore JSS 'debug' module debuggers. Uses namespace prefix 'sitecore-jss:'.\n * See {@link https://www.npmjs.com/package/debug} for details.\n */\nexport default Object.freeze({\n http: debug(`${rootNamespace}:http`),\n layout: debug(`${rootNamespace}:layout`),\n dictionary: debug(`${rootNamespace}:dictionary`),\n experienceEditor: debug(`${rootNamespace}:editing`),\n sitemap: debug(`${rootNamespace}:sitemap`),\n});\n","var __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};\nimport axios from 'axios';\nimport debuggers from './debug';\n/**\n * Determines whether error is AxiosError\n * @param {unknown} error\n */\nconst isAxiosError = (error) => {\n return error.isAxiosError !== undefined;\n};\nexport class AxiosDataFetcher {\n /**\n * @param {AxiosDataFetcherConfig} dataFetcherConfig Axios data fetcher configuration.\n * Note `withCredentials` is set to `true` by default in order for Sitecore cookies to\n * be included in CORS requests (which is necessary for analytics and such).\n */\n constructor(dataFetcherConfig = {}) {\n const { onReq, onRes, onReqError, onResError } = dataFetcherConfig, axiosConfig = __rest(dataFetcherConfig, [\"onReq\", \"onRes\", \"onReqError\", \"onResError\"]);\n if (axiosConfig.withCredentials === undefined) {\n axiosConfig.withCredentials = true;\n }\n this.instance = axios.create(axiosConfig);\n const debug = dataFetcherConfig.debugger || debuggers.http;\n // Note Axios response interceptors are applied in registered order;\n // however, request interceptors are REVERSED (https://github.com/axios/axios/issues/1663).\n // Hence, we're adding our request debug logging first (since we want that performed after any onReq)\n // and our response debug logging second (since we want that performed after any onRes).\n if (debug.enabled) {\n this.instance.interceptors.request.use((config) => {\n debug('request: %o', config);\n return config;\n }, (error) => {\n debug('request error: %o', isAxiosError(error) ? error.toJSON() : error);\n return Promise.reject(error);\n });\n }\n if (onReq) {\n this.instance.interceptors.request.use(onReq, onReqError);\n }\n if (onRes) {\n this.instance.interceptors.response.use(onRes, onResError);\n }\n if (debug.enabled) {\n this.instance.interceptors.response.use((response) => {\n // Note we're removing redundant properties (already part of request log above) to trim down log entry\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { request, config } = response, rest = __rest(response, [\"request\", \"config\"]);\n debug('response: %o', rest);\n return response;\n }, (error) => {\n debug('response error: %o', isAxiosError(error) ? error.toJSON() : error);\n return Promise.reject(error);\n });\n }\n }\n /**\n * Implements a data fetcher. @see HttpDataFetcher type for implementation details/notes.\n * @param {string} url The URL to request; may include query string\n * @param {unknown} [data] Optional data to POST with the request.\n * @returns {Promise>} response\n */\n fetch(url, data) {\n return this.instance.request({\n url,\n method: data ? 'POST' : 'GET',\n data,\n });\n }\n /**\n * Perform a GET request\n * @param {string} url The URL to request; may include query string\n * @param {AxiosRequestConfig} [config] Axios config\n * @returns {Promise>} response\n */\n get(url, config) {\n return this.instance.get(url, config);\n }\n /**\n * Perform a HEAD request\n * @param {string} url The URL to request; may include query string\n * @param {AxiosRequestConfig} [config] Axios config\n * @returns {Promise} response\n */\n head(url, config) {\n return this.instance.head(url, config);\n }\n /**\n * Perform a POST request\n * @param {string} url The URL to request; may include query string\n * @param {unknown} [data] Data to POST with the request.\n * @param {AxiosRequestConfig} [config] Axios config\n * @returns {Promise} response\n */\n post(url, data, config) {\n return this.instance.post(url, data, config);\n }\n /**\n * Perform a PUT request\n * @param {string} url The URL to request; may include query string\n * @param {unknown} [data] Data to PUT with the request.\n * @param {AxiosRequestConfig} [config] Axios config\n * @returns {Promise} response\n */\n put(url, data, config) {\n return this.instance.put(url, data, config);\n }\n /**\n * Perform a DELETE request\n * @param {string} url The URL to request; may include query string\n * @param {AxiosRequestConfig} [config] Axios config\n * @returns {Promise} response\n */\n delete(url, config) {\n return this.instance.delete(url, config);\n }\n}\n","import isServer from './is-server';\n/**\n * note: encodeURIComponent is available via browser (window) or natively in node.js\n * if you use another js engine for server-side rendering you may not have native encodeURIComponent\n * and would then need to install a package for that functionality\n * @param {Object} params\n */\nfunction getQueryString(params) {\n return Object.keys(params)\n .map((k) => `${encodeURIComponent(k)}=${encodeURIComponent(String(params[k]))}`)\n .join('&');\n}\n/**\n * Resolves a base URL that may contain query string parameters and an additional set of query\n * string parameters into a unified string representation.\n * @param {string} urlBase the base URL that may contain query string parameters\n * @param {Object} params query string parameters\n * @returns a URL string\n * @throws {RangeError} if the provided url is an empty string\n */\nfunction resolveUrl(urlBase, params = {}) {\n if (!urlBase) {\n throw new RangeError('url must be a non-empty string');\n }\n // This is a better way to work with URLs since it handles different user input\n // edge cases. This works in Node and all browser except IE11.\n // https://developer.mozilla.org/en-US/docs/Web/API/URL\n // TODO: Verify our browser support requirements.\n if (isServer()) {\n const url = new URL(urlBase);\n for (const key in params) {\n if ({}.hasOwnProperty.call(params, key)) {\n url.searchParams.append(key, String(params[key]));\n }\n }\n const result = url.toString();\n return result;\n }\n const qs = getQueryString(params);\n const result = urlBase.indexOf('?') !== -1 ? `${urlBase}&${qs}` : `${urlBase}?${qs}`;\n return result;\n}\nexport default resolveUrl;\n","import resolveUrl from './utils/resolve-url';\nclass ResponseError extends Error {\n constructor(message, response) {\n super(message);\n Object.setPrototypeOf(this, ResponseError.prototype);\n this.response = response;\n }\n}\n/**\n * @param {HttpResponse} response\n * @throws {ResponseError} if response code is not ok\n */\nfunction checkStatus(response) {\n if (response.status >= 200 && response.status < 300) {\n return response;\n }\n const error = new ResponseError(response.statusText, response);\n throw error;\n}\n/**\n * @param {string} url\n * @param {HttpDataFetcher} fetcher\n * @param {Object} params\n */\nexport function fetchData(url, fetcher, params = {}) {\n return fetcher(resolveUrl(url, params))\n .then(checkStatus)\n .then((response) => {\n // axios auto-parses JSON responses, don't need to JSON.parse\n return response.data;\n });\n}\n","import { LayoutServiceBase } from './layout-service';\nimport { AxiosDataFetcher } from '../axios-fetcher';\nimport { fetchData } from '../data-fetcher';\nimport debug from '../debug';\n/**\n * Fetch layout data using the Sitecore Layout Service REST API.\n * Uses Axios as the default data fetcher (@see AxiosDataFetcher).\n */\nexport class RestLayoutService extends LayoutServiceBase {\n constructor(serviceConfig) {\n super();\n this.serviceConfig = serviceConfig;\n /**\n * Provides fetch options in order to fetch data\n * @param {string} [language] language will be applied to `sc_lang` param\n * @returns {FetchOptions} fetch options\n */\n this.getFetchParams = (language) => {\n var _a;\n return {\n sc_apikey: this.serviceConfig.apiKey,\n sc_site: this.serviceConfig.siteName,\n sc_lang: language || '',\n tracking: (_a = this.serviceConfig.tracking) !== null && _a !== void 0 ? _a : true,\n };\n };\n /**\n * Provides default @see AxiosDataFetcher data fetcher\n * @param {IncomingMessage} [req] Request instance\n * @param {ServerResponse} [res] Response instance\n * @returns default fetcher\n */\n this.getDefaultFetcher = (req, res) => {\n const config = {\n debugger: debug.layout,\n };\n if (req && res) {\n config.onReq = this.setupReqHeaders(req);\n config.onRes = this.setupResHeaders(res);\n }\n const axiosFetcher = new AxiosDataFetcher(config);\n const fetcher = (url, data) => {\n return axiosFetcher.fetch(url, data);\n };\n return fetcher;\n };\n }\n /**\n * Fetch layout data for an item.\n * @param {string} itemPath\n * @param {string} [language]\n * @param {IncomingMessage} [req] Request instance\n * @param {ServerResponse} [res] Response instance\n * @returns {Promise} layout service data\n */\n fetchLayoutData(itemPath, language, req, res) {\n const querystringParams = this.getFetchParams(language);\n debug.layout('fetching layout data for %s %s %s', itemPath, language, this.serviceConfig.siteName);\n const fetcher = this.serviceConfig.dataFetcherResolver\n ? this.serviceConfig.dataFetcherResolver(req, res)\n : this.getDefaultFetcher(req, res);\n const fetchUrl = this.resolveLayoutServiceUrl('render');\n return fetchData(fetchUrl, fetcher, Object.assign({ item: itemPath }, querystringParams)).catch((error) => {\n var _a;\n if (((_a = error.response) === null || _a === void 0 ? void 0 : _a.status) === 404) {\n // Aligned with response of GraphQL Layout Service in case if layout is not found.\n // When 404 Rest Layout Service returns\n // {\n // sitecore: {\n // context: {\n // pageEditing: false,\n // language\n // },\n // route: null\n // },\n // }\n //\n return error.response.data;\n }\n throw error;\n });\n }\n /**\n * Fetch layout data for a particular placeholder.\n * Makes a request to Sitecore Layout Service for the specified placeholder in\n * a specific route item. Allows you to retrieve rendered data for individual placeholders instead of entire routes.\n * @param {string} placeholderName\n * @param {string} itemPath\n * @param {string} [language]\n * @param {IncomingMessage} [req] Request instance\n * @param {ServerResponse} [res] Response instance\n * @returns {Promise} placeholder data\n */\n fetchPlaceholderData(placeholderName, itemPath, language, req, res) {\n const querystringParams = this.getFetchParams(language);\n debug.layout('fetching placeholder data for %s %s %s %s', placeholderName, itemPath, language, this.serviceConfig.siteName);\n const fetcher = this.serviceConfig.dataFetcherResolver\n ? this.serviceConfig.dataFetcherResolver(req, res)\n : this.getDefaultFetcher(req, res);\n const fetchUrl = this.resolveLayoutServiceUrl('placeholder');\n return fetchData(fetchUrl, fetcher, Object.assign({ placeholderName, item: itemPath }, querystringParams));\n }\n /**\n * Resolves layout service url\n * @param {string} apiType which layout service API to call ('render' or 'placeholder')\n * @returns the layout service url\n */\n resolveLayoutServiceUrl(apiType) {\n const { apiHost = '', configurationName = 'jss' } = this.serviceConfig;\n return `${apiHost}/sitecore/api/layout/${apiType}/${configurationName}`;\n }\n /**\n * Setup request headers\n * @param {IncomingMessage} req\n * @returns {AxiosRequestConfig} axios request config\n */\n setupReqHeaders(req) {\n return (reqConfig) => {\n debug.layout('performing request header passing');\n reqConfig.headers.common = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, reqConfig.headers.common), (req.headers.cookie && { cookie: req.headers.cookie })), (req.headers.referer && { referer: req.headers.referer })), (req.headers['user-agent'] && { 'user-agent': req.headers['user-agent'] })), (req.connection.remoteAddress && { 'X-Forwarded-For': req.connection.remoteAddress }));\n return reqConfig;\n };\n }\n /**\n * Setup response headers based on response from layout service\n * @param {ServerResponse} res\n * @returns {AxiosResponse} response\n */\n setupResHeaders(res) {\n return (serverRes) => {\n debug.layout('performing response header passing');\n serverRes.headers['set-cookie'] &&\n res.setHeader('set-cookie', serverRes.headers['set-cookie']);\n return serverRes;\n };\n }\n}\n","import isServer from './is-server';\n/**\n * Static utility class for Sitecore Experience Editor\n */\nexport class ExperienceEditor {\n static isActive() {\n if (isServer()) {\n return false;\n }\n // eslint-disable-next-line\n const sc = window.Sitecore;\n return Boolean(sc && sc.PageModes && sc.PageModes.ChromeManager);\n }\n static resetChromes() {\n if (isServer()) {\n return;\n }\n window.Sitecore.PageModes.ChromeManager.resetChromes();\n }\n}\n/**\n * Copy of chrome rediscovery contract from Horizon (chrome-rediscovery.contract.ts)\n */\nexport const ChromeRediscoveryGlobalFunctionName = {\n name: 'Sitecore.Horizon.ResetChromes',\n};\n/**\n * Static utility class for Sitecore Horizon Editor\n */\nexport class HorizonEditor {\n static isActive() {\n if (isServer()) {\n return false;\n }\n // Horizon will add \"sc_horizon=editor\" query string parameter for the editor and \"sc_horizon=simulator\" for the preview\n return window.location.search.indexOf('sc_horizon=editor') > -1;\n }\n static resetChromes() {\n if (isServer()) {\n return;\n }\n // Reset chromes in Horizon\n window[ChromeRediscoveryGlobalFunctionName.name] &&\n window[ChromeRediscoveryGlobalFunctionName.name]();\n }\n}\n/**\n * Determines whether the current execution context is within a Sitecore editor\n * @returns true if executing within a Sitecore editor\n */\nexport const isEditorActive = () => {\n return ExperienceEditor.isActive() || HorizonEditor.isActive();\n};\n/**\n * Resets Sitecore editor \"chromes\"\n */\nexport const resetEditorChromes = () => {\n if (ExperienceEditor.isActive()) {\n ExperienceEditor.resetChromes();\n }\n else if (HorizonEditor.isActive()) {\n HorizonEditor.resetChromes();\n }\n};\n/**\n * Determines whether the current execution context is within the Sitecore Experience Editor\n * @deprecated Will be removed in a future release. Please use isEditorActive instead.\n * @returns true if executing within the Sitecore Experience Editor\n */\nexport const isExperienceEditorActive = isEditorActive;\n/**\n * Resets Sitecore Experience Editor \"chromes\"\n * @deprecated Will be removed in a future release. Please use resetEditorChromes instead.\n */\nexport const resetExperienceEditorChromes = resetEditorChromes;\n","/**\n * Determines whether the current execution context is server-side\n * @returns true if executing server-side\n */\nfunction isServer() {\n return !(typeof window !== 'undefined' && window.document);\n}\nexport default isServer;\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n"],"names":["imgTagRegex","htmlAttrsRegex","mediaUrlPrefixRegex","updateImageUrl","url","params","mediaUrlPrefix","Object","keys","length","window","global","parsed","requiredParams","qs","rev","db","la","vs","ts","getRequiredParams","query","assign","entries","forEach","key","param","set","match","exec","pathname","replace","toString","__rest","s","e","t","p","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","propertyIsEnumerable","getEditableWrapper","editableMarkup","otherProps","className","dangerouslySetInnerHTML","__html","getImageAttrs","_a","imageParams","src","srcSet","otherAttrs","newAttrs","resolvedSrc","map","newParams","imageWidth","w","mw","filter","value","join","Image","media","editable","field","dynamicMedia","imageField","foundImg","editorMarkup","tagMatch","attrs","imgTag","foundImgProps","imgAttrs","imgHtml","img","propTypes","RegExp","isRequired","defaultProps","displayName","Link","children","showLinkTextWithChildrenPresent","dynamicField","editableFirstPart","href","resultTags","markup","editableLastPart","htmlProps","push","link","anchor","linktype","querystring","anchorAttrs","class","title","target","rel","linkText","text","LinkPropTypes","MissingComponent","props","componentName","rendering","console","log","style","background","outline","padding","color","maxWidth","PlaceholderCommon","constructor","super","this","nodeRefs","state","addRef","bind","updateKeyAttributes","createRawElement","getPlaceholderDataFromRenderingData","name","result","placeholders","warn","JSON","stringify","componentDidMount","componentDidUpdate","componentDidCatch","error","setState","getComponentsForRenderingData","placeholderData","fields","placeholderFields","placeholderParams","missingComponentComponent","placeholderProps","index","commonProps","uid","componentRendering","component","getComponentForRendering","finalProps","element","renderingDefinition","componentFactory","nodeRef","elem","baseProps","attributes","contents","undefined","Array","isArray","chrometype","phkey","ref","getAttribute","setAttribute","errorComponent","PlaceholderComponent","isEmpty","isActive","resetChromes","render","childProps","message","renderingData","components","every","isRawRendering","renderEmpty","renderEach","type","Placeholder","Component","Consumer","context","SitecoreContextReactContext","ComponentFactoryReactContext","SitecoreContext","setContext","pageEditing","prevProps","Provider","Text","tag","encode","isEditable","output","splitted","String","split","formatted","str","isLast","setDangerously","emittedVI","VIComponent","sitecoreContext","document","visitorIdentificationTimestamp","script","createElement","meta","content","head","querySelector","appendChild","VisitorIdentification","withSitecoreContext","options","updateSitecoreContext","updatable","useSitecoreContext","reactContext","convertAttributesToReactProps","reduce","initialResult","attrName","parsedStyle","preserveNumbers","styleKey","letter","toLowerCase","substr","toUpperCase","convertStyleAttribute","LayoutServiceBase","rootNamespace","process","DEBUG_MULTILINE","o","O","freeze","http","layout","dictionary","experienceEditor","sitemap","isAxiosError","AxiosDataFetcher","dataFetcherConfig","onReq","onRes","onReqError","onResError","axiosConfig","withCredentials","instance","debug","debugger","enabled","interceptors","request","use","config","toJSON","Promise","reject","response","rest","fetch","data","method","get","post","put","delete","urlBase","RangeError","URL","searchParams","append","k","encodeURIComponent","getQueryString","ResponseError","Error","setPrototypeOf","checkStatus","status","statusText","fetchData","fetcher","then","RestLayoutService","serviceConfig","getFetchParams","language","sc_apikey","apiKey","sc_site","siteName","sc_lang","tracking","getDefaultFetcher","req","res","setupReqHeaders","setupResHeaders","axiosFetcher","fetchLayoutData","itemPath","querystringParams","dataFetcherResolver","resolveLayoutServiceUrl","item","catch","fetchPlaceholderData","placeholderName","apiType","apiHost","configurationName","reqConfig","headers","common","cookie","referer","connection","remoteAddress","serverRes","setHeader","ExperienceEditor","sc","Sitecore","Boolean","PageModes","ChromeManager","ChromeRediscoveryGlobalFunctionName","HorizonEditor","location","search","isEditorActive","module","exports","utils","settle","cookies","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","createError","resolve","requestData","requestHeaders","responseType","isFormData","XMLHttpRequest","auth","username","password","unescape","Authorization","btoa","fullPath","baseURL","onloadend","responseHeaders","getAllResponseHeaders","responseText","open","paramsSerializer","timeout","onreadystatechange","readyState","responseURL","setTimeout","onabort","onerror","ontimeout","timeoutErrorMessage","transitional","clarifyTimeoutError","isStandardBrowserEnv","xsrfValue","xsrfCookieName","read","xsrfHeaderName","val","setRequestHeader","isUndefined","onDownloadProgress","addEventListener","onUploadProgress","upload","cancelToken","promise","cancel","abort","send","Axios","mergeConfig","createInstance","defaultConfig","extend","axios","create","instanceConfig","defaults","Cancel","CancelToken","isCancel","all","promises","spread","__CANCEL__","executor","TypeError","resolvePromise","token","reason","throwIfRequested","source","c","InterceptorManager","dispatchRequest","validator","validators","arguments","assertOptions","silentJSONParsing","boolean","forcedJSONParsing","requestInterceptorChain","synchronousRequestInterceptors","interceptor","runWhen","synchronous","unshift","fulfilled","rejected","responseInterceptorChain","chain","apply","concat","shift","newConfig","onFulfilled","onRejected","getUri","handlers","eject","id","fn","h","isAbsoluteURL","combineURLs","requestedURL","enhanceError","code","transformData","throwIfCancellationRequested","transformRequest","merge","adapter","transformResponse","description","number","fileName","lineNumber","columnNumber","stack","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","directMergeKeys","getMergedValue","isPlainObject","slice","mergeDeepProperties","prop","axiosKeys","otherKeys","validateStatus","fns","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","isArrayBuffer","isBuffer","isStream","isFile","isBlob","isArrayBufferView","buffer","isURLSearchParams","isObject","rawValue","parser","encoder","isString","parse","trim","stringifySafely","strictJSONParsing","maxContentLength","maxBodyLength","thisArg","args","serializedParams","parts","v","isDate","toISOString","hashmarkIndex","relativeURL","write","expires","path","domain","secure","isNumber","Date","toGMTString","decodeURIComponent","remove","now","test","payload","originURL","msie","navigator","userAgent","urlParsingNode","resolveURL","protocol","host","hash","hostname","port","charAt","requestURL","normalizedName","ignoreDuplicateOf","line","callback","arr","pkg","thing","deprecatedWarnings","currentVerArr","version","isOlderVersion","thanVersion","pkgVersionArr","destVer","isDeprecated","formatMessage","opt","desc","opts","schema","allowUnknown","getPrototypeOf","isFunction","obj","l","FormData","ArrayBuffer","isView","pipe","URLSearchParams","product","assignValue","a","b","stripBOM","charCodeAt"],"sourceRoot":""}