@adobe/alloy 2.27.0 → 2.28.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1961) hide show
  1. package/dist/alloy.cjs +18138 -0
  2. package/dist/alloy.js +18128 -0
  3. package/dist/alloy.standalone.js +18122 -0
  4. package/dist/alloy.standalone.min.js +3 -0
  5. package/dist/baseCode.js +76 -0
  6. package/dist/baseCode.min.js +1 -0
  7. package/dist/types/baseCode/index.d.ts.map +1 -0
  8. package/dist/types/baseCode.d.ts.map +1 -0
  9. package/dist/types/components/ActivityCollector/attachClickActivityCollector.d.ts.map +1 -0
  10. package/dist/types/components/ActivityCollector/configValidators.d.ts.map +1 -0
  11. package/dist/types/components/ActivityCollector/createClickActivityStorage.d.ts.map +1 -0
  12. package/dist/types/components/ActivityCollector/createClickedElementProperties.d.ts.map +1 -0
  13. package/dist/types/components/ActivityCollector/createGetClickedElementProperties.d.ts.map +1 -0
  14. package/dist/types/components/ActivityCollector/createInjectClickedElementProperties.d.ts.map +1 -0
  15. package/dist/types/components/ActivityCollector/createRecallAndInjectClickedElementProperties.d.ts.map +1 -0
  16. package/dist/types/components/ActivityCollector/createStorePageViewProperties.d.ts.map +1 -0
  17. package/dist/types/components/ActivityCollector/getLinkName.d.ts.map +1 -0
  18. package/dist/types/components/ActivityCollector/getLinkRegion.d.ts.map +1 -0
  19. package/dist/types/components/ActivityCollector/index.d.ts.map +1 -0
  20. package/dist/types/components/ActivityCollector/utils/activityMapExtensionEnabled.d.ts.map +1 -0
  21. package/dist/types/components/ActivityCollector/utils/createTransientStorage.d.ts.map +1 -0
  22. package/dist/types/components/ActivityCollector/utils/determineLinkType.d.ts.map +1 -0
  23. package/dist/types/components/ActivityCollector/utils/dom/elementHasClickHandler.d.ts.map +1 -0
  24. package/dist/types/components/ActivityCollector/utils/dom/extractDomain.d.ts.map +1 -0
  25. package/dist/types/components/ActivityCollector/utils/dom/findClickableElement.d.ts.map +1 -0
  26. package/dist/types/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.d.ts.map +1 -0
  27. package/dist/types/components/ActivityCollector/utils/dom/isButtonSubmitElement.d.ts.map +1 -0
  28. package/dist/types/components/ActivityCollector/utils/dom/isDownloadLink.d.ts.map +1 -0
  29. package/dist/types/components/ActivityCollector/utils/dom/isExitLink.d.ts.map +1 -0
  30. package/dist/types/components/ActivityCollector/utils/dom/isInputSubmitElement.d.ts.map +1 -0
  31. package/dist/types/components/ActivityCollector/utils/dom/isSupportedAnchorElement.d.ts.map +1 -0
  32. package/dist/types/components/ActivityCollector/utils/dom/isSupportedTextNode.d.ts.map +1 -0
  33. package/dist/types/components/ActivityCollector/utils/hasPageName.d.ts.map +1 -0
  34. package/dist/types/components/ActivityCollector/utils/isDifferentDomains.d.ts.map +1 -0
  35. package/dist/types/components/ActivityCollector/utils/trimQueryFromUrl.d.ts.map +1 -0
  36. package/dist/types/components/ActivityCollector/utils/truncateWhiteSpace.d.ts.map +1 -0
  37. package/dist/types/components/ActivityCollector/validateClickCollectionConfig.d.ts.map +1 -0
  38. package/dist/types/components/Audiences/index.d.ts.map +1 -0
  39. package/dist/types/components/Audiences/injectProcessDestinations.d.ts.map +1 -0
  40. package/dist/types/components/Audiences/injectProcessResponse.d.ts.map +1 -0
  41. package/dist/types/components/Consent/computeConsentHash.d.ts.map +1 -0
  42. package/dist/types/components/Consent/configValidators.d.ts.map +1 -0
  43. package/dist/types/components/Consent/createComponent.d.ts.map +1 -0
  44. package/dist/types/components/Consent/createConsentHashStore.d.ts.map +1 -0
  45. package/dist/types/components/Consent/createConsentRequest.d.ts.map +1 -0
  46. package/dist/types/components/Consent/createConsentRequestPayload.d.ts.map +1 -0
  47. package/dist/types/components/Consent/createStoredConsent.d.ts.map +1 -0
  48. package/dist/types/components/Consent/index.d.ts.map +1 -0
  49. package/dist/types/components/Consent/injectSendSetConsentRequest.d.ts.map +1 -0
  50. package/dist/types/components/Consent/parseConsentCookie.d.ts.map +1 -0
  51. package/dist/types/components/Consent/validateSetConsentOptions.d.ts.map +1 -0
  52. package/dist/types/components/Context/createComponent.d.ts.map +1 -0
  53. package/dist/types/components/Context/implementationDetails.d.ts.map +1 -0
  54. package/dist/types/components/Context/index.d.ts.map +1 -0
  55. package/dist/types/components/Context/injectDevice.d.ts.map +1 -0
  56. package/dist/types/components/Context/injectEnvironment.d.ts.map +1 -0
  57. package/dist/types/components/Context/injectHighEntropyUserAgentHints.d.ts.map +1 -0
  58. package/dist/types/components/Context/injectPlaceContext.d.ts.map +1 -0
  59. package/dist/types/components/Context/injectTimestamp.d.ts.map +1 -0
  60. package/dist/types/components/Context/injectWeb.d.ts.map +1 -0
  61. package/dist/types/components/DataCollector/index.d.ts.map +1 -0
  62. package/dist/types/components/DataCollector/validateApplyResponse.d.ts.map +1 -0
  63. package/dist/types/components/DataCollector/validateUserEventOptions.d.ts.map +1 -0
  64. package/dist/types/components/EventMerge/createComponent.d.ts.map +1 -0
  65. package/dist/types/components/EventMerge/index.d.ts.map +1 -0
  66. package/dist/types/components/Identity/addEcidToPayload.d.ts.map +1 -0
  67. package/dist/types/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.d.ts.map +1 -0
  68. package/dist/types/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.d.ts.map +1 -0
  69. package/dist/types/components/Identity/configValidators.d.ts.map +1 -0
  70. package/dist/types/components/Identity/constants/authState.d.ts.map +1 -0
  71. package/dist/types/components/Identity/constants/defaultIdSyncTtlMinutes.d.ts.map +1 -0
  72. package/dist/types/components/Identity/createComponent.d.ts.map +1 -0
  73. package/dist/types/components/Identity/createDecodeKndctrCookie.d.ts.map +1 -0
  74. package/dist/types/components/Identity/createLegacyIdentity.d.ts.map +1 -0
  75. package/dist/types/components/Identity/getIdentity/createGetIdentity.d.ts.map +1 -0
  76. package/dist/types/components/Identity/getIdentity/createGetIdentityOptionsValidator.d.ts.map +1 -0
  77. package/dist/types/components/Identity/getIdentity/createIdentityRequest.d.ts.map +1 -0
  78. package/dist/types/components/Identity/getIdentity/createIdentityRequestPayload.d.ts.map +1 -0
  79. package/dist/types/components/Identity/getNamespacesFromResponse.d.ts.map +1 -0
  80. package/dist/types/components/Identity/index.d.ts.map +1 -0
  81. package/dist/types/components/Identity/injectAddEcidQueryToPayload.d.ts.map +1 -0
  82. package/dist/types/components/Identity/injectAddLegacyEcidToPayload.d.ts.map +1 -0
  83. package/dist/types/components/Identity/injectAddQueryStringIdentityToPayload.d.ts.map +1 -0
  84. package/dist/types/components/Identity/injectAwaitIdentityCookie.d.ts.map +1 -0
  85. package/dist/types/components/Identity/injectEnsureSingleIdentity.d.ts.map +1 -0
  86. package/dist/types/components/Identity/injectHandleResponseForIdSyncs.d.ts.map +1 -0
  87. package/dist/types/components/Identity/injectProcessIdSyncs.d.ts.map +1 -0
  88. package/dist/types/components/Identity/injectSetDomainForInitialIdentityPayload.d.ts.map +1 -0
  89. package/dist/types/components/Identity/visitorService/awaitVisitorOptIn.d.ts.map +1 -0
  90. package/dist/types/components/Identity/visitorService/getVisitor.d.ts.map +1 -0
  91. package/dist/types/components/Identity/visitorService/injectGetEcidFromVisitor.d.ts.map +1 -0
  92. package/dist/types/components/LibraryInfo/index.d.ts +22 -0
  93. package/dist/types/components/LibraryInfo/index.d.ts.map +1 -0
  94. package/dist/types/components/MediaAnalyticsBridge/constants/constants.d.ts.map +1 -0
  95. package/dist/types/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.d.ts.map +1 -0
  96. package/dist/types/components/MediaAnalyticsBridge/createGetInstance.d.ts.map +1 -0
  97. package/dist/types/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.d.ts.map +1 -0
  98. package/dist/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts +62 -0
  99. package/dist/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts.map +1 -0
  100. package/dist/types/components/MediaAnalyticsBridge/index.d.ts.map +1 -0
  101. package/dist/types/components/Personalization/constants/loggerMessage.d.ts.map +1 -0
  102. package/dist/types/components/Personalization/constants/scopeType.d.ts.map +1 -0
  103. package/dist/types/components/Personalization/constants/surface.d.ts.map +1 -0
  104. package/dist/types/components/Personalization/createApplyPropositions.d.ts.map +1 -0
  105. package/dist/types/components/Personalization/createClickStorage.d.ts.map +1 -0
  106. package/dist/types/components/Personalization/createComponent.d.ts.map +1 -0
  107. package/dist/types/components/Personalization/createFetchDataHandler.d.ts.map +1 -0
  108. package/dist/types/components/Personalization/createGetPageLocation.d.ts.map +1 -0
  109. package/dist/types/components/Personalization/createHandleConsentFlicker.d.ts.map +1 -0
  110. package/dist/types/components/Personalization/createInteractionStorage.d.ts.map +1 -0
  111. package/dist/types/components/Personalization/createNotificationHandler.d.ts.map +1 -0
  112. package/dist/types/components/Personalization/createOnClickHandler.d.ts.map +1 -0
  113. package/dist/types/components/Personalization/createOnDecisionHandler.d.ts.map +1 -0
  114. package/dist/types/components/Personalization/createPersonalizationDetails.d.ts.map +1 -0
  115. package/dist/types/components/Personalization/createSetTargetMigration.d.ts.map +1 -0
  116. package/dist/types/components/Personalization/createViewCacheManager.d.ts.map +1 -0
  117. package/dist/types/components/Personalization/createViewChangeHandler.d.ts.map +1 -0
  118. package/dist/types/components/Personalization/dom-actions/action.d.ts.map +1 -0
  119. package/dist/types/components/Personalization/dom-actions/addNonceToInlineStyleElements.d.ts.map +1 -0
  120. package/dist/types/components/Personalization/dom-actions/appendHtml.d.ts.map +1 -0
  121. package/dist/types/components/Personalization/dom-actions/clicks/collectClicks.d.ts.map +1 -0
  122. package/dist/types/components/Personalization/dom-actions/clicks/collectInteractions.d.ts.map +1 -0
  123. package/dist/types/components/Personalization/dom-actions/collectInteractions.d.ts.map +1 -0
  124. package/dist/types/components/Personalization/dom-actions/createPreprocess.d.ts.map +1 -0
  125. package/dist/types/components/Personalization/dom-actions/createRedirect.d.ts.map +1 -0
  126. package/dist/types/components/Personalization/dom-actions/dom/createFragment.d.ts.map +1 -0
  127. package/dist/types/components/Personalization/dom-actions/dom/getAttribute.d.ts.map +1 -0
  128. package/dist/types/components/Personalization/dom-actions/dom/getChildNodes.d.ts.map +1 -0
  129. package/dist/types/components/Personalization/dom-actions/dom/getChildren.d.ts.map +1 -0
  130. package/dist/types/components/Personalization/dom-actions/dom/getElementById.d.ts.map +1 -0
  131. package/dist/types/components/Personalization/dom-actions/dom/getFirstChild.d.ts.map +1 -0
  132. package/dist/types/components/Personalization/dom-actions/dom/getNextSibling.d.ts.map +1 -0
  133. package/dist/types/components/Personalization/dom-actions/dom/getNonce.d.ts.map +1 -0
  134. package/dist/types/components/Personalization/dom-actions/dom/getParent.d.ts.map +1 -0
  135. package/dist/types/components/Personalization/dom-actions/dom/helperForEq.d.ts.map +1 -0
  136. package/dist/types/components/Personalization/dom-actions/dom/index.d.ts.map +1 -0
  137. package/dist/types/components/Personalization/dom-actions/dom/insertAfter.d.ts.map +1 -0
  138. package/dist/types/components/Personalization/dom-actions/dom/insertBefore.d.ts.map +1 -0
  139. package/dist/types/components/Personalization/dom-actions/dom/isDomElement.d.ts.map +1 -0
  140. package/dist/types/components/Personalization/dom-actions/dom/matchesSelectorWithEq.d.ts.map +1 -0
  141. package/dist/types/components/Personalization/dom-actions/dom/removeAttribute.d.ts.map +1 -0
  142. package/dist/types/components/Personalization/dom-actions/dom/selectNodesWithEq.d.ts.map +1 -0
  143. package/dist/types/components/Personalization/dom-actions/dom/setAttribute.d.ts.map +1 -0
  144. package/dist/types/components/Personalization/dom-actions/dom/setStyle.d.ts.map +1 -0
  145. package/dist/types/components/Personalization/dom-actions/dom/util.d.ts.map +1 -0
  146. package/dist/types/components/Personalization/dom-actions/images.d.ts.map +1 -0
  147. package/dist/types/components/Personalization/dom-actions/index.d.ts.map +1 -0
  148. package/dist/types/components/Personalization/dom-actions/initDomActionsModules.d.ts.map +1 -0
  149. package/dist/types/components/Personalization/dom-actions/insertHtmlAfter.d.ts.map +1 -0
  150. package/dist/types/components/Personalization/dom-actions/insertHtmlBefore.d.ts.map +1 -0
  151. package/dist/types/components/Personalization/dom-actions/move.d.ts.map +1 -0
  152. package/dist/types/components/Personalization/dom-actions/prependHtml.d.ts.map +1 -0
  153. package/dist/types/components/Personalization/dom-actions/rearrangeChildren.d.ts.map +1 -0
  154. package/dist/types/components/Personalization/dom-actions/remapCustomCodeOffers.d.ts.map +1 -0
  155. package/dist/types/components/Personalization/dom-actions/remapHeadOffers.d.ts.map +1 -0
  156. package/dist/types/components/Personalization/dom-actions/replaceHtml.d.ts.map +1 -0
  157. package/dist/types/components/Personalization/dom-actions/resize.d.ts.map +1 -0
  158. package/dist/types/components/Personalization/dom-actions/scripts.d.ts.map +1 -0
  159. package/dist/types/components/Personalization/dom-actions/setAttributes.d.ts.map +1 -0
  160. package/dist/types/components/Personalization/dom-actions/setHtml.d.ts.map +1 -0
  161. package/dist/types/components/Personalization/dom-actions/setStyles.d.ts.map +1 -0
  162. package/dist/types/components/Personalization/dom-actions/setText.d.ts.map +1 -0
  163. package/dist/types/components/Personalization/dom-actions/swapImage.d.ts.map +1 -0
  164. package/dist/types/components/Personalization/flicker/index.d.ts.map +1 -0
  165. package/dist/types/components/Personalization/handlers/createDecorateProposition.d.ts.map +1 -0
  166. package/dist/types/components/Personalization/handlers/createProcessDomAction.d.ts.map +1 -0
  167. package/dist/types/components/Personalization/handlers/createProcessHtmlContent.d.ts.map +1 -0
  168. package/dist/types/components/Personalization/handlers/createProcessInAppMessage.d.ts.map +1 -0
  169. package/dist/types/components/Personalization/handlers/createProcessPropositions.d.ts.map +1 -0
  170. package/dist/types/components/Personalization/handlers/createProcessRedirect.d.ts.map +1 -0
  171. package/dist/types/components/Personalization/handlers/createRenderStatusHandler.d.ts.map +1 -0
  172. package/dist/types/components/Personalization/handlers/injectCreateProposition.d.ts.map +1 -0
  173. package/dist/types/components/Personalization/handlers/processDefaultContent.d.ts.map +1 -0
  174. package/dist/types/components/Personalization/in-app-message-actions/actions/displayIframeContent.d.ts.map +1 -0
  175. package/dist/types/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.d.ts.map +1 -0
  176. package/dist/types/components/Personalization/in-app-message-actions/utils.d.ts.map +1 -0
  177. package/dist/types/components/Personalization/index.d.ts.map +1 -0
  178. package/dist/types/components/Personalization/utils/addRenderAttemptedToDecisions.d.ts.map +1 -0
  179. package/dist/types/components/Personalization/utils/createAsyncArray.d.ts.map +1 -0
  180. package/dist/types/components/Personalization/utils/isAuthoringModeEnabled.d.ts.map +1 -0
  181. package/dist/types/components/Personalization/utils/metaUtils.d.ts.map +1 -0
  182. package/dist/types/components/Personalization/utils/surfaceUtils.d.ts.map +1 -0
  183. package/dist/types/components/Personalization/validateApplyPropositionsOptions.d.ts.map +1 -0
  184. package/dist/types/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.d.ts.map +1 -0
  185. package/dist/types/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.d.ts.map +1 -0
  186. package/dist/types/components/RulesEngine/constants/index.d.ts +23 -0
  187. package/dist/types/components/RulesEngine/constants/index.d.ts.map +1 -0
  188. package/dist/types/components/RulesEngine/createApplyResponse.d.ts +13 -0
  189. package/dist/types/components/RulesEngine/createApplyResponse.d.ts.map +1 -0
  190. package/dist/types/components/RulesEngine/createConsequenceAdapter.d.ts.map +1 -0
  191. package/dist/types/components/RulesEngine/createContextProvider.d.ts.map +1 -0
  192. package/dist/types/components/RulesEngine/createDecisionProvider.d.ts.map +1 -0
  193. package/dist/types/components/RulesEngine/createEvaluableRulesetPayload.d.ts.map +1 -0
  194. package/dist/types/components/RulesEngine/createEvaluateRulesetsCommand.d.ts.map +1 -0
  195. package/dist/types/components/RulesEngine/createEventRegistry.d.ts +6 -0
  196. package/dist/types/components/RulesEngine/createEventRegistry.d.ts.map +1 -0
  197. package/dist/types/components/RulesEngine/createOnResponseHandler.d.ts.map +1 -0
  198. package/dist/types/components/RulesEngine/createSubscribeRulesetItems.d.ts.map +1 -0
  199. package/dist/types/components/RulesEngine/index.d.ts.map +1 -0
  200. package/dist/types/components/RulesEngine/types.d.ts +107 -0
  201. package/dist/types/components/RulesEngine/types.d.ts.map +1 -0
  202. package/dist/types/components/RulesEngine/utils/createEventPruner.d.ts.map +1 -0
  203. package/dist/types/components/RulesEngine/utils/extractPayloadsFromEventHistoryOperations.d.ts +5 -0
  204. package/dist/types/components/RulesEngine/utils/extractPayloadsFromEventHistoryOperations.d.ts.map +1 -0
  205. package/dist/types/components/RulesEngine/utils/generateEventHash.d.ts.map +1 -0
  206. package/dist/types/components/RulesEngine/utils/getExpirationDate.d.ts.map +1 -0
  207. package/dist/types/components/RulesEngine/utils/getPropositionData.d.ts.map +1 -0
  208. package/dist/types/components/RulesEngine/utils/hasExperienceData.d.ts.map +1 -0
  209. package/dist/types/components/RulesEngine/utils/index.d.ts.map +1 -0
  210. package/dist/types/components/RulesEngine/utils/storage.d.ts +8 -0
  211. package/dist/types/components/RulesEngine/utils/storage.d.ts.map +1 -0
  212. package/dist/types/components/StreamingMedia/configValidators.d.ts.map +1 -0
  213. package/dist/types/components/StreamingMedia/constants/eventTypes.d.ts.map +1 -0
  214. package/dist/types/components/StreamingMedia/constants/playbackState.d.ts.map +1 -0
  215. package/dist/types/components/StreamingMedia/createMediaEventManager.d.ts.map +1 -0
  216. package/dist/types/components/StreamingMedia/createMediaRequest.d.ts.map +1 -0
  217. package/dist/types/components/StreamingMedia/createMediaResponseHandler.d.ts.map +1 -0
  218. package/dist/types/components/StreamingMedia/createMediaSessionCacheManager.d.ts.map +1 -0
  219. package/dist/types/components/StreamingMedia/createStreamingMediaComponent.d.ts.map +1 -0
  220. package/dist/types/components/StreamingMedia/createTrackMediaEvent.d.ts.map +1 -0
  221. package/dist/types/components/StreamingMedia/createTrackMediaSession.d.ts.map +1 -0
  222. package/dist/types/components/StreamingMedia/index.d.ts.map +1 -0
  223. package/dist/types/components/StreamingMedia/validateMediaEventOptions.d.ts.map +1 -0
  224. package/dist/types/components/StreamingMedia/validateMediaSessionOptions.d.ts.map +1 -0
  225. package/dist/types/constants/apiVersion.d.ts.map +1 -0
  226. package/dist/types/constants/browser.d.ts.map +1 -0
  227. package/dist/types/constants/consentPurpose.d.ts.map +1 -0
  228. package/dist/types/constants/consentStatus.d.ts.map +1 -0
  229. package/dist/types/constants/contentType.d.ts.map +1 -0
  230. package/dist/types/constants/cookieNameKey.d.ts.map +1 -0
  231. package/dist/types/constants/cookieNamePrefix.d.ts.map +1 -0
  232. package/dist/types/constants/coreCommands.d.ts.map +1 -0
  233. package/dist/types/constants/coreNamespace.d.ts.map +1 -0
  234. package/dist/types/constants/debugQueryParam.d.ts.map +1 -0
  235. package/dist/types/constants/decisionProvider.d.ts.map +1 -0
  236. package/dist/types/constants/domain.d.ts.map +1 -0
  237. package/dist/types/constants/ecidNamespace.d.ts.map +1 -0
  238. package/dist/types/constants/edgeBasePath.d.ts.map +1 -0
  239. package/dist/types/constants/elementAttribute.d.ts.map +1 -0
  240. package/dist/types/constants/eventType.d.ts.map +1 -0
  241. package/dist/types/constants/highEntropyUserAgentClientHints.d.ts.map +1 -0
  242. package/dist/types/constants/httpHeaderNames.d.ts.map +1 -0
  243. package/dist/types/constants/httpStatusCode.d.ts.map +1 -0
  244. package/dist/types/constants/identityMapAuthenticatedState.d.ts.map +1 -0
  245. package/dist/types/constants/legacyCookies.d.ts.map +1 -0
  246. package/dist/types/constants/libraryName.d.ts.map +1 -0
  247. package/dist/types/constants/libraryVersion.d.ts +2 -0
  248. package/dist/types/constants/libraryVersion.d.ts.map +1 -0
  249. package/dist/types/constants/namespace.d.ts.map +1 -0
  250. package/dist/types/constants/pageWideScope.d.ts.map +1 -0
  251. package/dist/types/constants/propositionEventType.d.ts.map +1 -0
  252. package/dist/types/constants/propositionInteractionType.d.ts.map +1 -0
  253. package/dist/types/constants/queryStringIdentityParam.d.ts.map +1 -0
  254. package/dist/types/constants/schema.d.ts +12 -0
  255. package/dist/types/constants/schema.d.ts.map +1 -0
  256. package/dist/types/constants/sessionDataKeys.d.ts.map +1 -0
  257. package/dist/types/constants/shadowSeparator.d.ts.map +1 -0
  258. package/dist/types/constants/tagName.d.ts.map +1 -0
  259. package/dist/types/core/buildAndValidateConfig.d.ts.map +1 -0
  260. package/dist/types/core/componentCreators.d.ts.map +1 -0
  261. package/dist/types/core/config/createConfig.d.ts.map +1 -0
  262. package/dist/types/core/config/createCoreConfigs.d.ts.map +1 -0
  263. package/dist/types/core/consent/createConsent.d.ts.map +1 -0
  264. package/dist/types/core/consent/createConsentStateMachine.d.ts.map +1 -0
  265. package/dist/types/core/createComponentRegistry.d.ts.map +1 -0
  266. package/dist/types/core/createCookieTransfer.d.ts.map +1 -0
  267. package/dist/types/core/createEvent.d.ts.map +1 -0
  268. package/dist/types/core/createEventManager.d.ts.map +1 -0
  269. package/dist/types/core/createInstanceFunction.d.ts.map +1 -0
  270. package/dist/types/core/createLifecycle.d.ts.map +1 -0
  271. package/dist/types/core/createLogController.d.ts.map +1 -0
  272. package/dist/types/core/createLogger.d.ts.map +1 -0
  273. package/dist/types/core/edgeNetwork/handleRequestFailure.d.ts.map +1 -0
  274. package/dist/types/core/edgeNetwork/injectApplyResponse.d.ts.map +1 -0
  275. package/dist/types/core/edgeNetwork/injectExtractEdgeInfo.d.ts.map +1 -0
  276. package/dist/types/core/edgeNetwork/injectGetLocationHint.d.ts.map +1 -0
  277. package/dist/types/core/edgeNetwork/injectProcessWarningsAndErrors.d.ts.map +1 -0
  278. package/dist/types/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts.map +1 -0
  279. package/dist/types/core/edgeNetwork/mergeLifecycleResponses.d.ts.map +1 -0
  280. package/dist/types/core/getMonitors.d.ts.map +1 -0
  281. package/dist/types/core/index.d.ts.map +1 -0
  282. package/dist/types/core/initializeComponents.d.ts.map +1 -0
  283. package/dist/types/core/injectCreateResponse.d.ts.map +1 -0
  284. package/dist/types/core/injectExecuteCommand.d.ts.map +1 -0
  285. package/dist/types/core/injectHandleError.d.ts.map +1 -0
  286. package/dist/types/core/injectShouldTransferCookie.d.ts.map +1 -0
  287. package/dist/types/core/network/getRequestRetryDelay.d.ts.map +1 -0
  288. package/dist/types/core/network/injectSendNetworkRequest.d.ts.map +1 -0
  289. package/dist/types/core/network/isRequestRetryable.d.ts.map +1 -0
  290. package/dist/types/core/network/requestMethods/injectSendBeaconRequest.d.ts.map +1 -0
  291. package/dist/types/core/network/requestMethods/injectSendFetchRequest.d.ts.map +1 -0
  292. package/dist/types/core/requiredComponentCreators.d.ts.map +1 -0
  293. package/dist/types/core/types.d.ts.map +1 -0
  294. package/dist/types/core/validateCommandOptions.d.ts.map +1 -0
  295. package/dist/types/index.d.ts.map +1 -0
  296. package/dist/types/standalone.d.ts.map +1 -0
  297. package/dist/types/utils/assignConcatArrayValues.d.ts.map +1 -0
  298. package/dist/types/utils/clone.d.ts.map +1 -0
  299. package/dist/types/utils/cookieJar.d.ts.map +1 -0
  300. package/dist/types/utils/createCallbackAggregator.d.ts.map +1 -0
  301. package/dist/types/utils/createCollect.d.ts.map +1 -0
  302. package/dist/types/utils/createEventMergeId.d.ts.map +1 -0
  303. package/dist/types/utils/createLoggingCookieJar.d.ts.map +1 -0
  304. package/dist/types/utils/createMerger.d.ts.map +1 -0
  305. package/dist/types/utils/createSubscription.d.ts.map +1 -0
  306. package/dist/types/utils/createTaskQueue.d.ts.map +1 -0
  307. package/dist/types/utils/decodeUriComponentSafely.d.ts.map +1 -0
  308. package/dist/types/utils/deduplicateArray.d.ts.map +1 -0
  309. package/dist/types/utils/deepAssign.d.ts.map +1 -0
  310. package/dist/types/utils/defer.d.ts.map +1 -0
  311. package/dist/types/utils/dom/appendNode.d.ts.map +1 -0
  312. package/dist/types/utils/dom/awaitSelector.d.ts.map +1 -0
  313. package/dist/types/utils/dom/createNode.d.ts.map +1 -0
  314. package/dist/types/utils/dom/index.d.ts.map +1 -0
  315. package/dist/types/utils/dom/isShadowSelector.d.ts.map +1 -0
  316. package/dist/types/utils/dom/matchesSelector.d.ts.map +1 -0
  317. package/dist/types/utils/dom/querySelectorAll.d.ts.map +1 -0
  318. package/dist/types/utils/dom/removeNode.d.ts.map +1 -0
  319. package/dist/types/utils/dom/selectNodes.d.ts.map +1 -0
  320. package/dist/types/utils/dom/selectNodesWithShadow.d.ts.map +1 -0
  321. package/dist/types/utils/event.d.ts.map +1 -0
  322. package/dist/types/utils/filterObject.d.ts.map +1 -0
  323. package/dist/types/utils/fireImage.d.ts.map +1 -0
  324. package/dist/types/utils/flattenArray.d.ts.map +1 -0
  325. package/dist/types/utils/flattenObject.d.ts.map +1 -0
  326. package/dist/types/utils/fnv1a32Hex.d.ts.map +1 -0
  327. package/dist/types/utils/getApexDomain.d.ts.map +1 -0
  328. package/dist/types/utils/getLastArrayItems.d.ts.map +1 -0
  329. package/dist/types/utils/getNamespacedCookieName.d.ts.map +1 -0
  330. package/dist/types/utils/groupBy.d.ts.map +1 -0
  331. package/dist/types/utils/index.d.ts +52 -0
  332. package/dist/types/utils/index.d.ts.map +1 -0
  333. package/dist/types/utils/injectAreThirdPartyCookiesSupportedByDefault.d.ts.map +1 -0
  334. package/dist/types/utils/injectDoesIdentityCookieExist.d.ts.map +1 -0
  335. package/dist/types/utils/injectFireReferrerHideableImage.d.ts.map +1 -0
  336. package/dist/types/utils/injectGetBrowser.d.ts.map +1 -0
  337. package/dist/types/utils/injectStorage.d.ts.map +1 -0
  338. package/dist/types/utils/intersection.d.ts.map +1 -0
  339. package/dist/types/utils/isBlankString.d.ts.map +1 -0
  340. package/dist/types/utils/isBoolean.d.ts.map +1 -0
  341. package/dist/types/utils/isEmptyObject.d.ts.map +1 -0
  342. package/dist/types/utils/isFunction.d.ts.map +1 -0
  343. package/dist/types/utils/isInteger.d.ts.map +1 -0
  344. package/dist/types/utils/isNamespacedCookieName.d.ts.map +1 -0
  345. package/dist/types/utils/isNil.d.ts.map +1 -0
  346. package/dist/types/utils/isNonEmptyArray.d.ts.map +1 -0
  347. package/dist/types/utils/isNonEmptyString.d.ts.map +1 -0
  348. package/dist/types/utils/isNumber.d.ts.map +1 -0
  349. package/dist/types/utils/isObject.d.ts.map +1 -0
  350. package/dist/types/utils/isString.d.ts.map +1 -0
  351. package/dist/types/utils/isUnique.d.ts.map +1 -0
  352. package/dist/types/utils/isValidRegExp.d.ts.map +1 -0
  353. package/dist/types/utils/lazy.d.ts.map +1 -0
  354. package/dist/types/utils/networkErrors.d.ts.map +1 -0
  355. package/dist/types/utils/noop.d.ts.map +1 -0
  356. package/dist/types/utils/parseUrl.d.ts.map +1 -0
  357. package/dist/types/utils/prepareConfigOverridesForEdge.d.ts.map +1 -0
  358. package/dist/types/utils/querystring.d.ts.map +1 -0
  359. package/dist/types/utils/request/createAddIdentity.d.ts.map +1 -0
  360. package/dist/types/utils/request/createDataCollectionRequest.d.ts.map +1 -0
  361. package/dist/types/utils/request/createDataCollectionRequestPayload.d.ts.map +1 -0
  362. package/dist/types/utils/request/createGetAssuranceValidationTokenParams.d.ts.map +1 -0
  363. package/dist/types/utils/request/createHasIdentity.d.ts.map +1 -0
  364. package/dist/types/utils/request/createRequest.d.ts.map +1 -0
  365. package/dist/types/utils/request/createRequestParams.d.ts.map +1 -0
  366. package/dist/types/utils/request/createRequestPayload.d.ts.map +1 -0
  367. package/dist/types/utils/request/index.d.ts.map +1 -0
  368. package/dist/types/utils/sanitizeOrgIdForCookieName.d.ts.map +1 -0
  369. package/dist/types/utils/sortObjectKeysRecursively.d.ts.map +1 -0
  370. package/dist/types/utils/stackError.d.ts.map +1 -0
  371. package/dist/types/utils/stringToBoolean.d.ts.map +1 -0
  372. package/dist/types/utils/toArray.d.ts.map +1 -0
  373. package/dist/types/utils/toError.d.ts.map +1 -0
  374. package/dist/types/utils/toISOStringLocal.d.ts.map +1 -0
  375. package/dist/types/utils/toInteger.d.ts.map +1 -0
  376. package/dist/types/utils/updateErrorMessage.d.ts.map +1 -0
  377. package/dist/types/utils/uuid.d.ts.map +1 -0
  378. package/dist/types/utils/validateConfigOverride.d.ts.map +1 -0
  379. package/dist/types/utils/validateIdentityMap.d.ts.map +1 -0
  380. package/dist/types/utils/validation/booleanValidator.d.ts.map +1 -0
  381. package/dist/types/utils/validation/callbackValidator.d.ts.map +1 -0
  382. package/dist/types/utils/validation/createAnyOfValidator.d.ts.map +1 -0
  383. package/dist/types/utils/validation/createArrayOfValidator.d.ts.map +1 -0
  384. package/dist/types/utils/validation/createDefaultValidator.d.ts.map +1 -0
  385. package/dist/types/utils/validation/createDeprecatedValidator.d.ts.map +1 -0
  386. package/dist/types/utils/validation/createLiteralValidator.d.ts.map +1 -0
  387. package/dist/types/utils/validation/createMapOfValuesValidator.d.ts.map +1 -0
  388. package/dist/types/utils/validation/createMaximumValidator.d.ts.map +1 -0
  389. package/dist/types/utils/validation/createMinimumValidator.d.ts.map +1 -0
  390. package/dist/types/utils/validation/createNoUnknownFieldsValidator.d.ts.map +1 -0
  391. package/dist/types/utils/validation/createNonEmptyValidator.d.ts.map +1 -0
  392. package/dist/types/utils/validation/createObjectOfValidator.d.ts.map +1 -0
  393. package/dist/types/utils/validation/createRenamedValidator.d.ts.map +1 -0
  394. package/dist/types/utils/validation/createUniqueItemsValidator.d.ts.map +1 -0
  395. package/dist/types/utils/validation/createUniqueValidator.d.ts.map +1 -0
  396. package/dist/types/utils/validation/domainValidator.d.ts.map +1 -0
  397. package/dist/types/utils/validation/index.d.ts.map +1 -0
  398. package/dist/types/utils/validation/integerValidator.d.ts.map +1 -0
  399. package/dist/types/utils/validation/matchesRegexpValidator.d.ts.map +1 -0
  400. package/dist/types/utils/validation/numberValidator.d.ts.map +1 -0
  401. package/dist/types/utils/validation/regexpValidator.d.ts.map +1 -0
  402. package/dist/types/utils/validation/requiredValidator.d.ts.map +1 -0
  403. package/dist/types/utils/validation/stringValidator.d.ts.map +1 -0
  404. package/dist/types/utils/validation/utils.d.ts.map +1 -0
  405. package/dist/utils.cjs +3258 -0
  406. package/dist/utils.js +3206 -0
  407. package/package.json +57 -59
  408. package/rollup.config.js +143 -235
  409. package/scripts/alloyBuilder.js +7 -8
  410. package/babel.config.js +0 -76
  411. package/libEs5/baseCode/index.js +0 -62
  412. package/libEs5/components/ActivityCollector/attachClickActivityCollector.js +0 -62
  413. package/libEs5/components/ActivityCollector/configValidators.js +0 -41
  414. package/libEs5/components/ActivityCollector/createClickActivityStorage.js +0 -38
  415. package/libEs5/components/ActivityCollector/createClickedElementProperties.js +0 -222
  416. package/libEs5/components/ActivityCollector/createGetClickedElementProperties.js +0 -74
  417. package/libEs5/components/ActivityCollector/createInjectClickedElementProperties.js +0 -75
  418. package/libEs5/components/ActivityCollector/createRecallAndInjectClickedElementProperties.js +0 -49
  419. package/libEs5/components/ActivityCollector/createStorePageViewProperties.js +0 -26
  420. package/libEs5/components/ActivityCollector/getLinkName.js +0 -125
  421. package/libEs5/components/ActivityCollector/getLinkRegion.js +0 -62
  422. package/libEs5/components/ActivityCollector/index.js +0 -135
  423. package/libEs5/components/ActivityCollector/utils/activityMapExtensionEnabled.js +0 -20
  424. package/libEs5/components/ActivityCollector/utils/createTransientStorage.js +0 -29
  425. package/libEs5/components/ActivityCollector/utils/determineLinkType.js +0 -29
  426. package/libEs5/components/ActivityCollector/utils/dom/elementHasClickHandler.js +0 -18
  427. package/libEs5/components/ActivityCollector/utils/dom/extractDomain.js +0 -23
  428. package/libEs5/components/ActivityCollector/utils/dom/findClickableElement.js +0 -29
  429. package/libEs5/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.js +0 -45
  430. package/libEs5/components/ActivityCollector/utils/dom/isButtonSubmitElement.js +0 -18
  431. package/libEs5/components/ActivityCollector/utils/dom/isDownloadLink.js +0 -29
  432. package/libEs5/components/ActivityCollector/utils/dom/isExitLink.js +0 -26
  433. package/libEs5/components/ActivityCollector/utils/dom/isInputSubmitElement.js +0 -29
  434. package/libEs5/components/ActivityCollector/utils/dom/isSupportedAnchorElement.js +0 -21
  435. package/libEs5/components/ActivityCollector/utils/dom/isSupportedTextNode.js +0 -31
  436. package/libEs5/components/ActivityCollector/utils/hasPageName.js +0 -22
  437. package/libEs5/components/ActivityCollector/utils/isDifferentDomains.js +0 -21
  438. package/libEs5/components/ActivityCollector/utils/trimQueryFromUrl.js +0 -31
  439. package/libEs5/components/ActivityCollector/utils/truncateWhiteSpace.js +0 -25
  440. package/libEs5/components/ActivityCollector/utils/urlStartsWithScheme.js +0 -18
  441. package/libEs5/components/ActivityCollector/validateClickCollectionConfig.js +0 -43
  442. package/libEs5/components/Audiences/index.js +0 -51
  443. package/libEs5/components/Audiences/injectProcessDestinations.js +0 -65
  444. package/libEs5/components/Audiences/injectProcessResponse.js +0 -45
  445. package/libEs5/components/Consent/computeConsentHash.js +0 -17
  446. package/libEs5/components/Consent/configValidators.js +0 -19
  447. package/libEs5/components/Consent/createComponent.js +0 -90
  448. package/libEs5/components/Consent/createConsentHashStore.js +0 -64
  449. package/libEs5/components/Consent/createConsentRequest.js +0 -32
  450. package/libEs5/components/Consent/createConsentRequestPayload.js +0 -34
  451. package/libEs5/components/Consent/createStoredConsent.js +0 -34
  452. package/libEs5/components/Consent/index.js +0 -69
  453. package/libEs5/components/Consent/injectSendSetConsentRequest.js +0 -52
  454. package/libEs5/components/Consent/parseConsentCookie.js +0 -29
  455. package/libEs5/components/Consent/validateSetConsentOptions.js +0 -21
  456. package/libEs5/components/Context/createComponent.js +0 -37
  457. package/libEs5/components/Context/implementationDetails.js +0 -28
  458. package/libEs5/components/Context/index.js +0 -56
  459. package/libEs5/components/Context/injectDevice.js +0 -74
  460. package/libEs5/components/Context/injectEnvironment.js +0 -45
  461. package/libEs5/components/Context/injectHighEntropyUserAgentHints.js +0 -51
  462. package/libEs5/components/Context/injectPlaceContext.js +0 -33
  463. package/libEs5/components/Context/injectTimestamp.js +0 -24
  464. package/libEs5/components/Context/injectWeb.js +0 -31
  465. package/libEs5/components/DataCollector/index.js +0 -110
  466. package/libEs5/components/DataCollector/validateApplyResponse.js +0 -38
  467. package/libEs5/components/DataCollector/validateUserEventOptions.js +0 -52
  468. package/libEs5/components/EventMerge/createComponent.js +0 -27
  469. package/libEs5/components/EventMerge/createEventMergeId.js +0 -21
  470. package/libEs5/components/EventMerge/index.js +0 -24
  471. package/libEs5/components/Identity/addEcidToPayload.js +0 -21
  472. package/libEs5/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -25
  473. package/libEs5/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -38
  474. package/libEs5/components/Identity/configValidators.js +0 -21
  475. package/libEs5/components/Identity/constants/authState.js +0 -18
  476. package/libEs5/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -15
  477. package/libEs5/components/Identity/createComponent.js +0 -141
  478. package/libEs5/components/Identity/createDecodeKndctrCookie.js +0 -268
  479. package/libEs5/components/Identity/createLegacyIdentity.js +0 -73
  480. package/libEs5/components/Identity/getIdentity/createGetIdentity.js +0 -39
  481. package/libEs5/components/Identity/getIdentity/createGetIdentityOptionsValidator.js +0 -44
  482. package/libEs5/components/Identity/getIdentity/createIdentityRequest.js +0 -32
  483. package/libEs5/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -30
  484. package/libEs5/components/Identity/getNamespacesFromResponse.js +0 -24
  485. package/libEs5/components/Identity/index.js +0 -149
  486. package/libEs5/components/Identity/injectAddEcidQueryToPayload.js +0 -34
  487. package/libEs5/components/Identity/injectAddLegacyEcidToPayload.js +0 -34
  488. package/libEs5/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -67
  489. package/libEs5/components/Identity/injectAwaitIdentityCookie.js +0 -57
  490. package/libEs5/components/Identity/injectEnsureSingleIdentity.js +0 -103
  491. package/libEs5/components/Identity/injectHandleResponseForIdSyncs.js +0 -23
  492. package/libEs5/components/Identity/injectProcessIdSyncs.js +0 -42
  493. package/libEs5/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -35
  494. package/libEs5/components/Identity/visitorService/awaitVisitorOptIn.js +0 -37
  495. package/libEs5/components/Identity/visitorService/getVisitor.js +0 -20
  496. package/libEs5/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -52
  497. package/libEs5/components/LibraryInfo/index.js +0 -63
  498. package/libEs5/components/MediaAnalyticsBridge/constants/constants.js +0 -144
  499. package/libEs5/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.js +0 -49
  500. package/libEs5/components/MediaAnalyticsBridge/createGetInstance.js +0 -247
  501. package/libEs5/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js +0 -91
  502. package/libEs5/components/MediaAnalyticsBridge/createMediaHelper.js +0 -184
  503. package/libEs5/components/MediaAnalyticsBridge/index.js +0 -71
  504. package/libEs5/components/Personalization/constants/loggerMessage.js +0 -16
  505. package/libEs5/components/Personalization/constants/scopeType.js +0 -18
  506. package/libEs5/components/Personalization/constants/surface.js +0 -19
  507. package/libEs5/components/Personalization/createApplyPropositions.js +0 -127
  508. package/libEs5/components/Personalization/createClickStorage.js +0 -63
  509. package/libEs5/components/Personalization/createComponent.js +0 -139
  510. package/libEs5/components/Personalization/createFetchDataHandler.js +0 -126
  511. package/libEs5/components/Personalization/createGetPageLocation.js +0 -23
  512. package/libEs5/components/Personalization/createHandleConsentFlicker.js +0 -33
  513. package/libEs5/components/Personalization/createInteractionStorage.js +0 -90
  514. package/libEs5/components/Personalization/createNotificationHandler.js +0 -51
  515. package/libEs5/components/Personalization/createOnClickHandler.js +0 -86
  516. package/libEs5/components/Personalization/createOnDecisionHandler.js +0 -75
  517. package/libEs5/components/Personalization/createPersonalizationDetails.js +0 -99
  518. package/libEs5/components/Personalization/createSetTargetMigration.js +0 -31
  519. package/libEs5/components/Personalization/createViewCacheManager.js +0 -88
  520. package/libEs5/components/Personalization/createViewChangeHandler.js +0 -62
  521. package/libEs5/components/Personalization/dom-actions/action.js +0 -155
  522. package/libEs5/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -40
  523. package/libEs5/components/Personalization/dom-actions/appendHtml.js +0 -34
  524. package/libEs5/components/Personalization/dom-actions/clicks/collectClicks.js +0 -85
  525. package/libEs5/components/Personalization/dom-actions/clicks/collectInteractions.js +0 -78
  526. package/libEs5/components/Personalization/dom-actions/collectInteractions.js +0 -18
  527. package/libEs5/components/Personalization/dom-actions/createPreprocess.js +0 -24
  528. package/libEs5/components/Personalization/dom-actions/createRedirect.js +0 -26
  529. package/libEs5/components/Personalization/dom-actions/dom/createFragment.js +0 -22
  530. package/libEs5/components/Personalization/dom-actions/dom/getAttribute.js +0 -18
  531. package/libEs5/components/Personalization/dom-actions/dom/getChildNodes.js +0 -25
  532. package/libEs5/components/Personalization/dom-actions/dom/getChildren.js +0 -25
  533. package/libEs5/components/Personalization/dom-actions/dom/getElementById.js +0 -24
  534. package/libEs5/components/Personalization/dom-actions/dom/getFirstChild.js +0 -18
  535. package/libEs5/components/Personalization/dom-actions/dom/getNextSibling.js +0 -18
  536. package/libEs5/components/Personalization/dom-actions/dom/getNonce.js +0 -36
  537. package/libEs5/components/Personalization/dom-actions/dom/getParent.js +0 -18
  538. package/libEs5/components/Personalization/dom-actions/dom/helperForEq.js +0 -24
  539. package/libEs5/components/Personalization/dom-actions/dom/index.js +0 -100
  540. package/libEs5/components/Personalization/dom-actions/dom/insertAfter.js +0 -26
  541. package/libEs5/components/Personalization/dom-actions/dom/insertBefore.js +0 -25
  542. package/libEs5/components/Personalization/dom-actions/dom/isDomElement.js +0 -16
  543. package/libEs5/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -38
  544. package/libEs5/components/Personalization/dom-actions/dom/removeAttribute.js +0 -18
  545. package/libEs5/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -105
  546. package/libEs5/components/Personalization/dom-actions/dom/setAttribute.js +0 -18
  547. package/libEs5/components/Personalization/dom-actions/dom/setStyle.js +0 -24
  548. package/libEs5/components/Personalization/dom-actions/dom/util.js +0 -20
  549. package/libEs5/components/Personalization/dom-actions/images.js +0 -37
  550. package/libEs5/components/Personalization/dom-actions/index.js +0 -9
  551. package/libEs5/components/Personalization/dom-actions/initDomActionsModules.js +0 -69
  552. package/libEs5/components/Personalization/dom-actions/insertHtmlAfter.js +0 -35
  553. package/libEs5/components/Personalization/dom-actions/insertHtmlBefore.js +0 -33
  554. package/libEs5/components/Personalization/dom-actions/move.js +0 -31
  555. package/libEs5/components/Personalization/dom-actions/prependHtml.js +0 -49
  556. package/libEs5/components/Personalization/dom-actions/rearrangeChildren.js +0 -37
  557. package/libEs5/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -41
  558. package/libEs5/components/Personalization/dom-actions/remapHeadOffers.js +0 -56
  559. package/libEs5/components/Personalization/dom-actions/replaceHtml.js +0 -22
  560. package/libEs5/components/Personalization/dom-actions/resize.js +0 -31
  561. package/libEs5/components/Personalization/dom-actions/scripts.js +0 -110
  562. package/libEs5/components/Personalization/dom-actions/setAttributes.js +0 -22
  563. package/libEs5/components/Personalization/dom-actions/setHtml.js +0 -28
  564. package/libEs5/components/Personalization/dom-actions/setStyles.js +0 -26
  565. package/libEs5/components/Personalization/dom-actions/setText.js +0 -19
  566. package/libEs5/components/Personalization/dom-actions/swapImage.js +0 -33
  567. package/libEs5/components/Personalization/flicker/index.js +0 -103
  568. package/libEs5/components/Personalization/handlers/createDecorateProposition.js +0 -63
  569. package/libEs5/components/Personalization/handlers/createProcessDomAction.js +0 -75
  570. package/libEs5/components/Personalization/handlers/createProcessHtmlContent.js +0 -51
  571. package/libEs5/components/Personalization/handlers/createProcessInAppMessage.js +0 -85
  572. package/libEs5/components/Personalization/handlers/createProcessPropositions.js +0 -220
  573. package/libEs5/components/Personalization/handlers/createProcessRedirect.js +0 -64
  574. package/libEs5/components/Personalization/handlers/createRenderStatusHandler.js +0 -59
  575. package/libEs5/components/Personalization/handlers/injectCreateProposition.js +0 -127
  576. package/libEs5/components/Personalization/handlers/processDefaultContent.js +0 -23
  577. package/libEs5/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -306
  578. package/libEs5/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -21
  579. package/libEs5/components/Personalization/in-app-message-actions/utils.js +0 -56
  580. package/libEs5/components/Personalization/index.js +0 -199
  581. package/libEs5/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -25
  582. package/libEs5/components/Personalization/utils/createAsyncArray.js +0 -39
  583. package/libEs5/components/Personalization/utils/isAuthoringModeEnabled.js +0 -18
  584. package/libEs5/components/Personalization/utils/metaUtils.js +0 -28
  585. package/libEs5/components/Personalization/utils/surfaceUtils.js +0 -88
  586. package/libEs5/components/Personalization/validateApplyPropositionsOptions.js +0 -48
  587. package/libEs5/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -34
  588. package/libEs5/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -27
  589. package/libEs5/components/RulesEngine/constants/index.js +0 -18
  590. package/libEs5/components/RulesEngine/constants.js +0 -28
  591. package/libEs5/components/RulesEngine/createApplyResponse.js +0 -36
  592. package/libEs5/components/RulesEngine/createConsequenceAdapter.js +0 -34
  593. package/libEs5/components/RulesEngine/createContextProvider.js +0 -101
  594. package/libEs5/components/RulesEngine/createDecisionProvider.js +0 -54
  595. package/libEs5/components/RulesEngine/createEvaluableRulesetPayload.js +0 -90
  596. package/libEs5/components/RulesEngine/createEvaluateRulesetsCommand.js +0 -53
  597. package/libEs5/components/RulesEngine/createEventRegistry.js +0 -112
  598. package/libEs5/components/RulesEngine/createOnResponseHandler.js +0 -51
  599. package/libEs5/components/RulesEngine/createSubscribeRulesetItems.js +0 -138
  600. package/libEs5/components/RulesEngine/index.js +0 -157
  601. package/libEs5/components/RulesEngine/utils/createEventPruner.js +0 -65
  602. package/libEs5/components/RulesEngine/utils/generateEventHash.js +0 -36
  603. package/libEs5/components/RulesEngine/utils/getExpirationDate.js +0 -20
  604. package/libEs5/components/RulesEngine/utils/getPropositionData.js +0 -19
  605. package/libEs5/components/RulesEngine/utils/hasExperienceData.js +0 -21
  606. package/libEs5/components/RulesEngine/utils/index.js +0 -68
  607. package/libEs5/components/RulesEngine/utils/storage.js +0 -50
  608. package/libEs5/components/StreamingMedia/configValidators.js +0 -24
  609. package/libEs5/components/StreamingMedia/constants/eventTypes.js +0 -34
  610. package/libEs5/components/StreamingMedia/constants/playbackState.js +0 -19
  611. package/libEs5/components/StreamingMedia/createMediaEventManager.js +0 -134
  612. package/libEs5/components/StreamingMedia/createMediaRequest.js +0 -32
  613. package/libEs5/components/StreamingMedia/createMediaResponseHandler.js +0 -64
  614. package/libEs5/components/StreamingMedia/createMediaSessionCacheManager.js +0 -65
  615. package/libEs5/components/StreamingMedia/createStreamingMediaComponent.js +0 -76
  616. package/libEs5/components/StreamingMedia/createTrackMediaEvent.js +0 -99
  617. package/libEs5/components/StreamingMedia/createTrackMediaSession.js +0 -58
  618. package/libEs5/components/StreamingMedia/index.js +0 -69
  619. package/libEs5/components/StreamingMedia/validateMediaEventOptions.js +0 -38
  620. package/libEs5/components/StreamingMedia/validateMediaSessionOptions.js +0 -40
  621. package/libEs5/constants/apiVersion.js +0 -15
  622. package/libEs5/constants/browser.js +0 -22
  623. package/libEs5/constants/consentPurpose.js +0 -16
  624. package/libEs5/constants/consentStatus.js +0 -18
  625. package/libEs5/constants/contentType.js +0 -16
  626. package/libEs5/constants/cookieNameKey.js +0 -18
  627. package/libEs5/constants/cookieNamePrefix.js +0 -16
  628. package/libEs5/constants/coreCommands.js +0 -17
  629. package/libEs5/constants/coreNamespace.js +0 -15
  630. package/libEs5/constants/debugQueryParam.js +0 -15
  631. package/libEs5/constants/decisionProvider.js +0 -17
  632. package/libEs5/constants/domain.js +0 -17
  633. package/libEs5/constants/ecidNamespace.js +0 -15
  634. package/libEs5/constants/edgeBasePath.js +0 -15
  635. package/libEs5/constants/elementAttribute.js +0 -16
  636. package/libEs5/constants/eventType.js +0 -21
  637. package/libEs5/constants/handle.js +0 -15
  638. package/libEs5/constants/highEntropyUserAgentClientHints.js +0 -15
  639. package/libEs5/constants/httpHeaderNames.js +0 -17
  640. package/libEs5/constants/httpStatusCode.js +0 -20
  641. package/libEs5/constants/identityMapAuthenticatedState.js +0 -17
  642. package/libEs5/constants/legacyCookies.js +0 -18
  643. package/libEs5/constants/libraryName.js +0 -15
  644. package/libEs5/constants/libraryVersion.js +0 -17
  645. package/libEs5/constants/namespace.js +0 -15
  646. package/libEs5/constants/pageWideScope.js +0 -15
  647. package/libEs5/constants/propositionEventType.js +0 -41
  648. package/libEs5/constants/propositionInteractionType.js +0 -18
  649. package/libEs5/constants/queryStringIdentityParam.js +0 -15
  650. package/libEs5/constants/schema.js +0 -25
  651. package/libEs5/constants/sessionDataKeys.js +0 -15
  652. package/libEs5/constants/shadowSeparator.js +0 -15
  653. package/libEs5/constants/tagName.js +0 -22
  654. package/libEs5/core/buildAndValidateConfig.js +0 -112
  655. package/libEs5/core/componentCreators.js +0 -58
  656. package/libEs5/core/config/createConfig.js +0 -21
  657. package/libEs5/core/config/createCoreConfigs.js +0 -28
  658. package/libEs5/core/consent/createConsent.js +0 -64
  659. package/libEs5/core/consent/createConsentStateMachine.js +0 -130
  660. package/libEs5/core/createComponentRegistry.js +0 -89
  661. package/libEs5/core/createCookieTransfer.js +0 -83
  662. package/libEs5/core/createEvent.js +0 -165
  663. package/libEs5/core/createEventManager.js +0 -142
  664. package/libEs5/core/createInstanceFunction.js +0 -21
  665. package/libEs5/core/createLifecycle.js +0 -75
  666. package/libEs5/core/createLogController.js +0 -73
  667. package/libEs5/core/createLogger.js +0 -121
  668. package/libEs5/core/edgeNetwork/handleRequestFailure.js +0 -28
  669. package/libEs5/core/edgeNetwork/injectApplyResponse.js +0 -65
  670. package/libEs5/core/edgeNetwork/injectExtractEdgeInfo.js +0 -39
  671. package/libEs5/core/edgeNetwork/injectGetLocationHint.js +0 -36
  672. package/libEs5/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -47
  673. package/libEs5/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -130
  674. package/libEs5/core/edgeNetwork/mergeLifecycleResponses.js +0 -24
  675. package/libEs5/core/getMonitors.js +0 -32
  676. package/libEs5/core/index.js +0 -245
  677. package/libEs5/core/initializeComponents.js +0 -44
  678. package/libEs5/core/injectCreateResponse.js +0 -75
  679. package/libEs5/core/injectExecuteCommand.js +0 -118
  680. package/libEs5/core/injectHandleError.js +0 -39
  681. package/libEs5/core/injectShouldTransferCookie.js +0 -31
  682. package/libEs5/core/network/getRequestRetryDelay.js +0 -76
  683. package/libEs5/core/network/injectSendNetworkRequest.js +0 -102
  684. package/libEs5/core/network/isRequestRetryable.js +0 -29
  685. package/libEs5/core/network/requestMethods/injectSendBeaconRequest.js +0 -42
  686. package/libEs5/core/network/requestMethods/injectSendFetchRequest.js +0 -44
  687. package/libEs5/core/requiredComponentCreators.js +0 -30
  688. package/libEs5/core/types.js +0 -19
  689. package/libEs5/core/validateCommandOptions.js +0 -38
  690. package/libEs5/index.js +0 -110
  691. package/libEs5/standalone.js +0 -23
  692. package/libEs5/utils/assignConcatArrayValues.js +0 -41
  693. package/libEs5/utils/clone.js +0 -21
  694. package/libEs5/utils/cookieJar.js +0 -21
  695. package/libEs5/utils/createCallbackAggregator.js +0 -37
  696. package/libEs5/utils/createCollect.js +0 -54
  697. package/libEs5/utils/createLoggingCookieJar.js +0 -32
  698. package/libEs5/utils/createMerger.js +0 -32
  699. package/libEs5/utils/createSubscription.js +0 -103
  700. package/libEs5/utils/createTaskQueue.js +0 -51
  701. package/libEs5/utils/decodeUriComponentSafely.js +0 -22
  702. package/libEs5/utils/deduplicateArray.js +0 -27
  703. package/libEs5/utils/deepAssign.js +0 -46
  704. package/libEs5/utils/defer.js +0 -27
  705. package/libEs5/utils/dom/appendNode.js +0 -18
  706. package/libEs5/utils/dom/awaitSelector.js +0 -114
  707. package/libEs5/utils/dom/createNode.js +0 -45
  708. package/libEs5/utils/dom/index.js +0 -58
  709. package/libEs5/utils/dom/isShadowSelector.js +0 -17
  710. package/libEs5/utils/dom/matchesSelector.js +0 -29
  711. package/libEs5/utils/dom/querySelectorAll.js +0 -24
  712. package/libEs5/utils/dom/removeNode.js +0 -22
  713. package/libEs5/utils/dom/selectNodes.js +0 -30
  714. package/libEs5/utils/dom/selectNodesWithShadow.js +0 -57
  715. package/libEs5/utils/event.js +0 -49
  716. package/libEs5/utils/filterObject.js +0 -57
  717. package/libEs5/utils/fireImage.js +0 -40
  718. package/libEs5/utils/flattenArray.js +0 -18
  719. package/libEs5/utils/flattenObject.js +0 -34
  720. package/libEs5/utils/fnv1a32Hex.js +0 -51
  721. package/libEs5/utils/getApexDomain.js +0 -46
  722. package/libEs5/utils/getLastArrayItems.js +0 -22
  723. package/libEs5/utils/getNamespacedCookieName.js +0 -18
  724. package/libEs5/utils/groupBy.js +0 -32
  725. package/libEs5/utils/index.js +0 -352
  726. package/libEs5/utils/injectAreThirdPartyCookiesSupportedByDefault.js +0 -28
  727. package/libEs5/utils/injectDoesIdentityCookieExist.js +0 -28
  728. package/libEs5/utils/injectFireReferrerHideableImage.js +0 -71
  729. package/libEs5/utils/injectGetBrowser.js +0 -70
  730. package/libEs5/utils/injectStorage.js +0 -72
  731. package/libEs5/utils/intersection.js +0 -22
  732. package/libEs5/utils/isBlankString.js +0 -22
  733. package/libEs5/utils/isBoolean.js +0 -21
  734. package/libEs5/utils/isEmptyObject.js +0 -22
  735. package/libEs5/utils/isFunction.js +0 -21
  736. package/libEs5/utils/isInteger.js +0 -25
  737. package/libEs5/utils/isNamespacedCookieName.js +0 -25
  738. package/libEs5/utils/isNil.js +0 -21
  739. package/libEs5/utils/isNonEmptyArray.js +0 -21
  740. package/libEs5/utils/isNonEmptyString.js +0 -22
  741. package/libEs5/utils/isNumber.js +0 -21
  742. package/libEs5/utils/isObject.js +0 -22
  743. package/libEs5/utils/isString.js +0 -21
  744. package/libEs5/utils/isUnique.js +0 -31
  745. package/libEs5/utils/isValidRegExp.js +0 -27
  746. package/libEs5/utils/lazy.js +0 -26
  747. package/libEs5/utils/networkErrors.js +0 -26
  748. package/libEs5/utils/noop.js +0 -19
  749. package/libEs5/utils/parseUrl.js +0 -98
  750. package/libEs5/utils/prepareConfigOverridesForEdge.js +0 -53
  751. package/libEs5/utils/querystring.js +0 -16
  752. package/libEs5/utils/request/createAddIdentity.js +0 -23
  753. package/libEs5/utils/request/createDataCollectionRequest.js +0 -75
  754. package/libEs5/utils/request/createDataCollectionRequestPayload.js +0 -34
  755. package/libEs5/utils/request/createGetAssuranceValidationTokenParams.js +0 -47
  756. package/libEs5/utils/request/createHasIdentity.js +0 -18
  757. package/libEs5/utils/request/createRequest.js +0 -65
  758. package/libEs5/utils/request/createRequestParams.js +0 -50
  759. package/libEs5/utils/request/createRequestPayload.js +0 -37
  760. package/libEs5/utils/request/index.js +0 -58
  761. package/libEs5/utils/sanitizeOrgIdForCookieName.js +0 -16
  762. package/libEs5/utils/sortObjectKeysRecursively.js +0 -42
  763. package/libEs5/utils/stackError.js +0 -38
  764. package/libEs5/utils/stringToBoolean.js +0 -19
  765. package/libEs5/utils/toArray.js +0 -24
  766. package/libEs5/utils/toError.js +0 -24
  767. package/libEs5/utils/toISOStringLocal.js +0 -54
  768. package/libEs5/utils/toInteger.js +0 -31
  769. package/libEs5/utils/updateErrorMessage.js +0 -27
  770. package/libEs5/utils/uuid.js +0 -16
  771. package/libEs5/utils/validateConfigOverride.js +0 -16
  772. package/libEs5/utils/validateIdentityMap.js +0 -25
  773. package/libEs5/utils/validation/booleanValidator.js +0 -21
  774. package/libEs5/utils/validation/callbackValidator.js +0 -21
  775. package/libEs5/utils/validation/createAnyOfValidator.js +0 -29
  776. package/libEs5/utils/validation/createArrayOfValidator.js +0 -32
  777. package/libEs5/utils/validation/createDefaultValidator.js +0 -21
  778. package/libEs5/utils/validation/createDeprecatedValidator.js +0 -29
  779. package/libEs5/utils/validation/createLiteralValidator.js +0 -20
  780. package/libEs5/utils/validation/createMapOfValuesValidator.js +0 -38
  781. package/libEs5/utils/validation/createMaximumValidator.js +0 -20
  782. package/libEs5/utils/validation/createMinimumValidator.js +0 -20
  783. package/libEs5/utils/validation/createNoUnknownFieldsValidator.js +0 -28
  784. package/libEs5/utils/validation/createNonEmptyValidator.js +0 -26
  785. package/libEs5/utils/validation/createObjectOfValidator.js +0 -46
  786. package/libEs5/utils/validation/createRenamedValidator.js +0 -41
  787. package/libEs5/utils/validation/createUniqueItemsValidator.js +0 -23
  788. package/libEs5/utils/validation/createUniqueValidator.js +0 -24
  789. package/libEs5/utils/validation/domainValidator.js +0 -22
  790. package/libEs5/utils/validation/index.js +0 -240
  791. package/libEs5/utils/validation/integerValidator.js +0 -21
  792. package/libEs5/utils/validation/matchesRegexpValidator.js +0 -20
  793. package/libEs5/utils/validation/numberValidator.js +0 -21
  794. package/libEs5/utils/validation/regexpValidator.js +0 -21
  795. package/libEs5/utils/validation/requiredValidator.js +0 -21
  796. package/libEs5/utils/validation/stringValidator.js +0 -21
  797. package/libEs5/utils/validation/utils.js +0 -131
  798. package/libEs6/baseCode/index.js +0 -61
  799. package/libEs6/components/ActivityCollector/attachClickActivityCollector.js +0 -56
  800. package/libEs6/components/ActivityCollector/configValidators.js +0 -39
  801. package/libEs6/components/ActivityCollector/createClickActivityStorage.js +0 -34
  802. package/libEs6/components/ActivityCollector/createClickedElementProperties.js +0 -218
  803. package/libEs6/components/ActivityCollector/createGetClickedElementProperties.js +0 -69
  804. package/libEs6/components/ActivityCollector/createInjectClickedElementProperties.js +0 -69
  805. package/libEs6/components/ActivityCollector/createRecallAndInjectClickedElementProperties.js +0 -45
  806. package/libEs6/components/ActivityCollector/createStorePageViewProperties.js +0 -22
  807. package/libEs6/components/ActivityCollector/getLinkName.js +0 -122
  808. package/libEs6/components/ActivityCollector/getLinkRegion.js +0 -58
  809. package/libEs6/components/ActivityCollector/index.js +0 -128
  810. package/libEs6/components/ActivityCollector/utils/activityMapExtensionEnabled.js +0 -14
  811. package/libEs6/components/ActivityCollector/utils/createTransientStorage.js +0 -26
  812. package/libEs6/components/ActivityCollector/utils/determineLinkType.js +0 -26
  813. package/libEs6/components/ActivityCollector/utils/dom/elementHasClickHandler.js +0 -15
  814. package/libEs6/components/ActivityCollector/utils/dom/extractDomain.js +0 -20
  815. package/libEs6/components/ActivityCollector/utils/dom/findClickableElement.js +0 -26
  816. package/libEs6/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.js +0 -42
  817. package/libEs6/components/ActivityCollector/utils/dom/isButtonSubmitElement.js +0 -15
  818. package/libEs6/components/ActivityCollector/utils/dom/isDownloadLink.js +0 -26
  819. package/libEs6/components/ActivityCollector/utils/dom/isExitLink.js +0 -23
  820. package/libEs6/components/ActivityCollector/utils/dom/isInputSubmitElement.js +0 -26
  821. package/libEs6/components/ActivityCollector/utils/dom/isSupportedAnchorElement.js +0 -18
  822. package/libEs6/components/ActivityCollector/utils/dom/isSupportedTextNode.js +0 -27
  823. package/libEs6/components/ActivityCollector/utils/hasPageName.js +0 -19
  824. package/libEs6/components/ActivityCollector/utils/isDifferentDomains.js +0 -18
  825. package/libEs6/components/ActivityCollector/utils/trimQueryFromUrl.js +0 -28
  826. package/libEs6/components/ActivityCollector/utils/truncateWhiteSpace.js +0 -22
  827. package/libEs6/components/ActivityCollector/utils/urlStartsWithScheme.js +0 -15
  828. package/libEs6/components/ActivityCollector/validateClickCollectionConfig.js +0 -40
  829. package/libEs6/components/Audiences/index.js +0 -47
  830. package/libEs6/components/Audiences/injectProcessDestinations.js +0 -60
  831. package/libEs6/components/Audiences/injectProcessResponse.js +0 -38
  832. package/libEs6/components/Consent/computeConsentHash.js +0 -14
  833. package/libEs6/components/Consent/configValidators.js +0 -16
  834. package/libEs6/components/Consent/createComponent.js +0 -85
  835. package/libEs6/components/Consent/createConsentHashStore.js +0 -57
  836. package/libEs6/components/Consent/createConsentRequest.js +0 -28
  837. package/libEs6/components/Consent/createConsentRequestPayload.js +0 -31
  838. package/libEs6/components/Consent/createStoredConsent.js +0 -30
  839. package/libEs6/components/Consent/index.js +0 -65
  840. package/libEs6/components/Consent/injectSendSetConsentRequest.js +0 -45
  841. package/libEs6/components/Consent/parseConsentCookie.js +0 -26
  842. package/libEs6/components/Consent/validateSetConsentOptions.js +0 -18
  843. package/libEs6/components/Context/createComponent.js +0 -32
  844. package/libEs6/components/Context/implementationDetails.js +0 -24
  845. package/libEs6/components/Context/index.js +0 -52
  846. package/libEs6/components/Context/injectDevice.js +0 -70
  847. package/libEs6/components/Context/injectEnvironment.js +0 -42
  848. package/libEs6/components/Context/injectHighEntropyUserAgentHints.js +0 -46
  849. package/libEs6/components/Context/injectPlaceContext.js +0 -29
  850. package/libEs6/components/Context/injectTimestamp.js +0 -21
  851. package/libEs6/components/Context/injectWeb.js +0 -28
  852. package/libEs6/components/DataCollector/index.js +0 -106
  853. package/libEs6/components/DataCollector/validateApplyResponse.js +0 -33
  854. package/libEs6/components/DataCollector/validateUserEventOptions.js +0 -48
  855. package/libEs6/components/EventMerge/createComponent.js +0 -23
  856. package/libEs6/components/EventMerge/createEventMergeId.js +0 -18
  857. package/libEs6/components/EventMerge/index.js +0 -21
  858. package/libEs6/components/Identity/addEcidToPayload.js +0 -18
  859. package/libEs6/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.js +0 -23
  860. package/libEs6/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.js +0 -31
  861. package/libEs6/components/Identity/configValidators.js +0 -18
  862. package/libEs6/components/Identity/constants/authState.js +0 -15
  863. package/libEs6/components/Identity/constants/defaultIdSyncTtlMinutes.js +0 -13
  864. package/libEs6/components/Identity/createComponent.js +0 -134
  865. package/libEs6/components/Identity/createDecodeKndctrCookie.js +0 -263
  866. package/libEs6/components/Identity/createLegacyIdentity.js +0 -69
  867. package/libEs6/components/Identity/getIdentity/createGetIdentity.js +0 -34
  868. package/libEs6/components/Identity/getIdentity/createGetIdentityOptionsValidator.js +0 -40
  869. package/libEs6/components/Identity/getIdentity/createIdentityRequest.js +0 -28
  870. package/libEs6/components/Identity/getIdentity/createIdentityRequestPayload.js +0 -27
  871. package/libEs6/components/Identity/getNamespacesFromResponse.js +0 -20
  872. package/libEs6/components/Identity/index.js +0 -145
  873. package/libEs6/components/Identity/injectAddEcidQueryToPayload.js +0 -30
  874. package/libEs6/components/Identity/injectAddLegacyEcidToPayload.js +0 -30
  875. package/libEs6/components/Identity/injectAddQueryStringIdentityToPayload.js +0 -61
  876. package/libEs6/components/Identity/injectAwaitIdentityCookie.js +0 -52
  877. package/libEs6/components/Identity/injectEnsureSingleIdentity.js +0 -98
  878. package/libEs6/components/Identity/injectHandleResponseForIdSyncs.js +0 -19
  879. package/libEs6/components/Identity/injectProcessIdSyncs.js +0 -34
  880. package/libEs6/components/Identity/injectSetDomainForInitialIdentityPayload.js +0 -31
  881. package/libEs6/components/Identity/visitorService/awaitVisitorOptIn.js +0 -33
  882. package/libEs6/components/Identity/visitorService/getVisitor.js +0 -17
  883. package/libEs6/components/Identity/visitorService/injectGetEcidFromVisitor.js +0 -48
  884. package/libEs6/components/LibraryInfo/index.js +0 -58
  885. package/libEs6/components/MediaAnalyticsBridge/constants/constants.js +0 -141
  886. package/libEs6/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.js +0 -46
  887. package/libEs6/components/MediaAnalyticsBridge/createGetInstance.js +0 -239
  888. package/libEs6/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.js +0 -85
  889. package/libEs6/components/MediaAnalyticsBridge/createMediaHelper.js +0 -180
  890. package/libEs6/components/MediaAnalyticsBridge/index.js +0 -67
  891. package/libEs6/components/Personalization/constants/loggerMessage.js +0 -13
  892. package/libEs6/components/Personalization/constants/scopeType.js +0 -15
  893. package/libEs6/components/Personalization/constants/surface.js +0 -16
  894. package/libEs6/components/Personalization/createApplyPropositions.js +0 -119
  895. package/libEs6/components/Personalization/createClickStorage.js +0 -58
  896. package/libEs6/components/Personalization/createComponent.js +0 -132
  897. package/libEs6/components/Personalization/createFetchDataHandler.js +0 -118
  898. package/libEs6/components/Personalization/createGetPageLocation.js +0 -17
  899. package/libEs6/components/Personalization/createHandleConsentFlicker.js +0 -26
  900. package/libEs6/components/Personalization/createInteractionStorage.js +0 -84
  901. package/libEs6/components/Personalization/createNotificationHandler.js +0 -45
  902. package/libEs6/components/Personalization/createOnClickHandler.js +0 -79
  903. package/libEs6/components/Personalization/createOnDecisionHandler.js +0 -70
  904. package/libEs6/components/Personalization/createPersonalizationDetails.js +0 -94
  905. package/libEs6/components/Personalization/createSetTargetMigration.js +0 -27
  906. package/libEs6/components/Personalization/createViewCacheManager.js +0 -84
  907. package/libEs6/components/Personalization/createViewChangeHandler.js +0 -57
  908. package/libEs6/components/Personalization/dom-actions/action.js +0 -85
  909. package/libEs6/components/Personalization/dom-actions/addNonceToInlineStyleElements.js +0 -36
  910. package/libEs6/components/Personalization/dom-actions/appendHtml.js +0 -31
  911. package/libEs6/components/Personalization/dom-actions/clicks/collectClicks.js +0 -81
  912. package/libEs6/components/Personalization/dom-actions/clicks/collectInteractions.js +0 -74
  913. package/libEs6/components/Personalization/dom-actions/collectInteractions.js +0 -15
  914. package/libEs6/components/Personalization/dom-actions/createPreprocess.js +0 -21
  915. package/libEs6/components/Personalization/dom-actions/createRedirect.js +0 -22
  916. package/libEs6/components/Personalization/dom-actions/dom/createFragment.js +0 -19
  917. package/libEs6/components/Personalization/dom-actions/dom/getAttribute.js +0 -15
  918. package/libEs6/components/Personalization/dom-actions/dom/getChildNodes.js +0 -22
  919. package/libEs6/components/Personalization/dom-actions/dom/getChildren.js +0 -22
  920. package/libEs6/components/Personalization/dom-actions/dom/getElementById.js +0 -21
  921. package/libEs6/components/Personalization/dom-actions/dom/getFirstChild.js +0 -15
  922. package/libEs6/components/Personalization/dom-actions/dom/getNextSibling.js +0 -15
  923. package/libEs6/components/Personalization/dom-actions/dom/getNonce.js +0 -33
  924. package/libEs6/components/Personalization/dom-actions/dom/getParent.js +0 -15
  925. package/libEs6/components/Personalization/dom-actions/dom/helperForEq.js +0 -19
  926. package/libEs6/components/Personalization/dom-actions/dom/index.js +0 -26
  927. package/libEs6/components/Personalization/dom-actions/dom/insertAfter.js +0 -23
  928. package/libEs6/components/Personalization/dom-actions/dom/insertBefore.js +0 -22
  929. package/libEs6/components/Personalization/dom-actions/dom/isDomElement.js +0 -12
  930. package/libEs6/components/Personalization/dom-actions/dom/matchesSelectorWithEq.js +0 -35
  931. package/libEs6/components/Personalization/dom-actions/dom/removeAttribute.js +0 -15
  932. package/libEs6/components/Personalization/dom-actions/dom/selectNodesWithEq.js +0 -100
  933. package/libEs6/components/Personalization/dom-actions/dom/setAttribute.js +0 -15
  934. package/libEs6/components/Personalization/dom-actions/dom/setStyle.js +0 -21
  935. package/libEs6/components/Personalization/dom-actions/dom/util.js +0 -16
  936. package/libEs6/components/Personalization/dom-actions/images.js +0 -31
  937. package/libEs6/components/Personalization/dom-actions/index.js +0 -13
  938. package/libEs6/components/Personalization/dom-actions/initDomActionsModules.js +0 -65
  939. package/libEs6/components/Personalization/dom-actions/insertHtmlAfter.js +0 -32
  940. package/libEs6/components/Personalization/dom-actions/insertHtmlBefore.js +0 -30
  941. package/libEs6/components/Personalization/dom-actions/move.js +0 -28
  942. package/libEs6/components/Personalization/dom-actions/prependHtml.js +0 -46
  943. package/libEs6/components/Personalization/dom-actions/rearrangeChildren.js +0 -33
  944. package/libEs6/components/Personalization/dom-actions/remapCustomCodeOffers.js +0 -36
  945. package/libEs6/components/Personalization/dom-actions/remapHeadOffers.js +0 -52
  946. package/libEs6/components/Personalization/dom-actions/replaceHtml.js +0 -19
  947. package/libEs6/components/Personalization/dom-actions/resize.js +0 -28
  948. package/libEs6/components/Personalization/dom-actions/scripts.js +0 -101
  949. package/libEs6/components/Personalization/dom-actions/setAttributes.js +0 -19
  950. package/libEs6/components/Personalization/dom-actions/setHtml.js +0 -24
  951. package/libEs6/components/Personalization/dom-actions/setStyles.js +0 -23
  952. package/libEs6/components/Personalization/dom-actions/setText.js +0 -16
  953. package/libEs6/components/Personalization/dom-actions/swapImage.js +0 -30
  954. package/libEs6/components/Personalization/flicker/index.js +0 -96
  955. package/libEs6/components/Personalization/handlers/createDecorateProposition.js +0 -59
  956. package/libEs6/components/Personalization/handlers/createProcessDomAction.js +0 -69
  957. package/libEs6/components/Personalization/handlers/createProcessHtmlContent.js +0 -44
  958. package/libEs6/components/Personalization/handlers/createProcessInAppMessage.js +0 -79
  959. package/libEs6/components/Personalization/handlers/createProcessPropositions.js +0 -214
  960. package/libEs6/components/Personalization/handlers/createProcessRedirect.js +0 -56
  961. package/libEs6/components/Personalization/handlers/createRenderStatusHandler.js +0 -56
  962. package/libEs6/components/Personalization/handlers/injectCreateProposition.js +0 -121
  963. package/libEs6/components/Personalization/handlers/processDefaultContent.js +0 -19
  964. package/libEs6/components/Personalization/in-app-message-actions/actions/displayIframeContent.js +0 -293
  965. package/libEs6/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.js +0 -17
  966. package/libEs6/components/Personalization/in-app-message-actions/utils.js +0 -50
  967. package/libEs6/components/Personalization/index.js +0 -195
  968. package/libEs6/components/Personalization/utils/addRenderAttemptedToDecisions.js +0 -21
  969. package/libEs6/components/Personalization/utils/createAsyncArray.js +0 -35
  970. package/libEs6/components/Personalization/utils/isAuthoringModeEnabled.js +0 -15
  971. package/libEs6/components/Personalization/utils/metaUtils.js +0 -23
  972. package/libEs6/components/Personalization/utils/surfaceUtils.js +0 -76
  973. package/libEs6/components/Personalization/validateApplyPropositionsOptions.js +0 -42
  974. package/libEs6/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.js +0 -30
  975. package/libEs6/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.js +0 -24
  976. package/libEs6/components/RulesEngine/constants/index.js +0 -15
  977. package/libEs6/components/RulesEngine/constants.js +0 -25
  978. package/libEs6/components/RulesEngine/createApplyResponse.js +0 -31
  979. package/libEs6/components/RulesEngine/createConsequenceAdapter.js +0 -29
  980. package/libEs6/components/RulesEngine/createContextProvider.js +0 -95
  981. package/libEs6/components/RulesEngine/createDecisionProvider.js +0 -44
  982. package/libEs6/components/RulesEngine/createEvaluableRulesetPayload.js +0 -85
  983. package/libEs6/components/RulesEngine/createEvaluateRulesetsCommand.js +0 -45
  984. package/libEs6/components/RulesEngine/createEventRegistry.js +0 -106
  985. package/libEs6/components/RulesEngine/createOnResponseHandler.js +0 -45
  986. package/libEs6/components/RulesEngine/createSubscribeRulesetItems.js +0 -129
  987. package/libEs6/components/RulesEngine/index.js +0 -148
  988. package/libEs6/components/RulesEngine/utils/createEventPruner.js +0 -54
  989. package/libEs6/components/RulesEngine/utils/generateEventHash.js +0 -33
  990. package/libEs6/components/RulesEngine/utils/getExpirationDate.js +0 -16
  991. package/libEs6/components/RulesEngine/utils/getPropositionData.js +0 -14
  992. package/libEs6/components/RulesEngine/utils/hasExperienceData.js +0 -17
  993. package/libEs6/components/RulesEngine/utils/index.js +0 -18
  994. package/libEs6/components/RulesEngine/utils/storage.js +0 -40
  995. package/libEs6/components/StreamingMedia/configValidators.js +0 -22
  996. package/libEs6/components/StreamingMedia/constants/eventTypes.js +0 -31
  997. package/libEs6/components/StreamingMedia/constants/playbackState.js +0 -16
  998. package/libEs6/components/StreamingMedia/createMediaEventManager.js +0 -125
  999. package/libEs6/components/StreamingMedia/createMediaRequest.js +0 -28
  1000. package/libEs6/components/StreamingMedia/createMediaResponseHandler.js +0 -58
  1001. package/libEs6/components/StreamingMedia/createMediaSessionCacheManager.js +0 -59
  1002. package/libEs6/components/StreamingMedia/createStreamingMediaComponent.js +0 -69
  1003. package/libEs6/components/StreamingMedia/createTrackMediaEvent.js +0 -93
  1004. package/libEs6/components/StreamingMedia/createTrackMediaSession.js +0 -53
  1005. package/libEs6/components/StreamingMedia/index.js +0 -64
  1006. package/libEs6/components/StreamingMedia/validateMediaEventOptions.js +0 -33
  1007. package/libEs6/components/StreamingMedia/validateMediaSessionOptions.js +0 -36
  1008. package/libEs6/constants/apiVersion.js +0 -12
  1009. package/libEs6/constants/browser.js +0 -19
  1010. package/libEs6/constants/consentPurpose.js +0 -13
  1011. package/libEs6/constants/consentStatus.js +0 -15
  1012. package/libEs6/constants/contentType.js +0 -13
  1013. package/libEs6/constants/cookieNameKey.js +0 -15
  1014. package/libEs6/constants/cookieNamePrefix.js +0 -14
  1015. package/libEs6/constants/coreCommands.js +0 -14
  1016. package/libEs6/constants/coreNamespace.js +0 -13
  1017. package/libEs6/constants/debugQueryParam.js +0 -13
  1018. package/libEs6/constants/decisionProvider.js +0 -14
  1019. package/libEs6/constants/domain.js +0 -14
  1020. package/libEs6/constants/ecidNamespace.js +0 -13
  1021. package/libEs6/constants/edgeBasePath.js +0 -12
  1022. package/libEs6/constants/elementAttribute.js +0 -13
  1023. package/libEs6/constants/eventType.js +0 -18
  1024. package/libEs6/constants/handle.js +0 -12
  1025. package/libEs6/constants/highEntropyUserAgentClientHints.js +0 -13
  1026. package/libEs6/constants/httpHeaderNames.js +0 -14
  1027. package/libEs6/constants/httpStatusCode.js +0 -17
  1028. package/libEs6/constants/identityMapAuthenticatedState.js +0 -14
  1029. package/libEs6/constants/legacyCookies.js +0 -15
  1030. package/libEs6/constants/libraryName.js +0 -13
  1031. package/libEs6/constants/libraryVersion.js +0 -16
  1032. package/libEs6/constants/namespace.js +0 -13
  1033. package/libEs6/constants/pageWideScope.js +0 -13
  1034. package/libEs6/constants/propositionEventType.js +0 -36
  1035. package/libEs6/constants/propositionInteractionType.js +0 -15
  1036. package/libEs6/constants/queryStringIdentityParam.js +0 -13
  1037. package/libEs6/constants/schema.js +0 -22
  1038. package/libEs6/constants/sessionDataKeys.js +0 -12
  1039. package/libEs6/constants/shadowSeparator.js +0 -13
  1040. package/libEs6/constants/tagName.js +0 -19
  1041. package/libEs6/core/buildAndValidateConfig.js +0 -96
  1042. package/libEs6/core/componentCreators.js +0 -24
  1043. package/libEs6/core/config/createConfig.js +0 -18
  1044. package/libEs6/core/config/createCoreConfigs.js +0 -25
  1045. package/libEs6/core/consent/createConsent.js +0 -60
  1046. package/libEs6/core/consent/createConsentStateMachine.js +0 -125
  1047. package/libEs6/core/createComponentRegistry.js +0 -83
  1048. package/libEs6/core/createCookieTransfer.js +0 -78
  1049. package/libEs6/core/createEvent.js +0 -161
  1050. package/libEs6/core/createEventManager.js +0 -135
  1051. package/libEs6/core/createInstanceFunction.js +0 -17
  1052. package/libEs6/core/createLifecycle.js +0 -65
  1053. package/libEs6/core/createLogController.js +0 -68
  1054. package/libEs6/core/createLogger.js +0 -114
  1055. package/libEs6/core/edgeNetwork/handleRequestFailure.js +0 -24
  1056. package/libEs6/core/edgeNetwork/injectApplyResponse.js +0 -58
  1057. package/libEs6/core/edgeNetwork/injectExtractEdgeInfo.js +0 -33
  1058. package/libEs6/core/edgeNetwork/injectGetLocationHint.js +0 -32
  1059. package/libEs6/core/edgeNetwork/injectProcessWarningsAndErrors.js +0 -42
  1060. package/libEs6/core/edgeNetwork/injectSendEdgeNetworkRequest.js +0 -123
  1061. package/libEs6/core/edgeNetwork/mergeLifecycleResponses.js +0 -21
  1062. package/libEs6/core/getMonitors.js +0 -31
  1063. package/libEs6/core/index.js +0 -238
  1064. package/libEs6/core/initializeComponents.js +0 -40
  1065. package/libEs6/core/injectCreateResponse.js +0 -68
  1066. package/libEs6/core/injectExecuteCommand.js +0 -113
  1067. package/libEs6/core/injectHandleError.js +0 -33
  1068. package/libEs6/core/injectShouldTransferCookie.js +0 -25
  1069. package/libEs6/core/network/getRequestRetryDelay.js +0 -72
  1070. package/libEs6/core/network/injectSendNetworkRequest.js +0 -96
  1071. package/libEs6/core/network/isRequestRetryable.js +0 -24
  1072. package/libEs6/core/network/requestMethods/injectSendBeaconRequest.js +0 -38
  1073. package/libEs6/core/network/requestMethods/injectSendFetchRequest.js +0 -40
  1074. package/libEs6/core/requiredComponentCreators.js +0 -16
  1075. package/libEs6/core/types.js +0 -16
  1076. package/libEs6/core/validateCommandOptions.js +0 -33
  1077. package/libEs6/index.js +0 -103
  1078. package/libEs6/standalone.js +0 -22
  1079. package/libEs6/utils/assignConcatArrayValues.js +0 -35
  1080. package/libEs6/utils/clone.js +0 -18
  1081. package/libEs6/utils/cookieJar.js +0 -19
  1082. package/libEs6/utils/createCallbackAggregator.js +0 -31
  1083. package/libEs6/utils/createCollect.js +0 -48
  1084. package/libEs6/utils/createLoggingCookieJar.js +0 -28
  1085. package/libEs6/utils/createMerger.js +0 -30
  1086. package/libEs6/utils/createSubscription.js +0 -87
  1087. package/libEs6/utils/createTaskQueue.js +0 -48
  1088. package/libEs6/utils/decodeUriComponentSafely.js +0 -19
  1089. package/libEs6/utils/deduplicateArray.js +0 -23
  1090. package/libEs6/utils/deepAssign.js +0 -40
  1091. package/libEs6/utils/defer.js +0 -24
  1092. package/libEs6/utils/dom/appendNode.js +0 -15
  1093. package/libEs6/utils/dom/awaitSelector.js +0 -102
  1094. package/libEs6/utils/dom/createNode.js +0 -38
  1095. package/libEs6/utils/dom/index.js +0 -20
  1096. package/libEs6/utils/dom/isShadowSelector.js +0 -14
  1097. package/libEs6/utils/dom/matchesSelector.js +0 -26
  1098. package/libEs6/utils/dom/querySelectorAll.js +0 -20
  1099. package/libEs6/utils/dom/removeNode.js +0 -19
  1100. package/libEs6/utils/dom/selectNodes.js +0 -28
  1101. package/libEs6/utils/dom/selectNodesWithShadow.js +0 -53
  1102. package/libEs6/utils/event.js +0 -45
  1103. package/libEs6/utils/filterObject.js +0 -55
  1104. package/libEs6/utils/fireImage.js +0 -37
  1105. package/libEs6/utils/flattenArray.js +0 -13
  1106. package/libEs6/utils/flattenObject.js +0 -28
  1107. package/libEs6/utils/fnv1a32Hex.js +0 -48
  1108. package/libEs6/utils/getApexDomain.js +0 -42
  1109. package/libEs6/utils/getLastArrayItems.js +0 -19
  1110. package/libEs6/utils/getNamespacedCookieName.js +0 -15
  1111. package/libEs6/utils/groupBy.js +0 -29
  1112. package/libEs6/utils/index.js +0 -63
  1113. package/libEs6/utils/injectAreThirdPartyCookiesSupportedByDefault.js +0 -22
  1114. package/libEs6/utils/injectDoesIdentityCookieExist.js +0 -24
  1115. package/libEs6/utils/injectFireReferrerHideableImage.js +0 -65
  1116. package/libEs6/utils/injectGetBrowser.js +0 -65
  1117. package/libEs6/utils/injectStorage.js +0 -68
  1118. package/libEs6/utils/intersection.js +0 -18
  1119. package/libEs6/utils/isBlankString.js +0 -20
  1120. package/libEs6/utils/isBoolean.js +0 -18
  1121. package/libEs6/utils/isEmptyObject.js +0 -20
  1122. package/libEs6/utils/isFunction.js +0 -18
  1123. package/libEs6/utils/isInteger.js +0 -23
  1124. package/libEs6/utils/isNamespacedCookieName.js +0 -23
  1125. package/libEs6/utils/isNil.js +0 -18
  1126. package/libEs6/utils/isNonEmptyArray.js +0 -18
  1127. package/libEs6/utils/isNonEmptyString.js +0 -20
  1128. package/libEs6/utils/isNumber.js +0 -18
  1129. package/libEs6/utils/isObject.js +0 -20
  1130. package/libEs6/utils/isString.js +0 -18
  1131. package/libEs6/utils/isUnique.js +0 -27
  1132. package/libEs6/utils/isValidRegExp.js +0 -24
  1133. package/libEs6/utils/lazy.js +0 -22
  1134. package/libEs6/utils/networkErrors.js +0 -22
  1135. package/libEs6/utils/noop.js +0 -16
  1136. package/libEs6/utils/parseUrl.js +0 -93
  1137. package/libEs6/utils/prepareConfigOverridesForEdge.js +0 -50
  1138. package/libEs6/utils/querystring.js +0 -14
  1139. package/libEs6/utils/request/createAddIdentity.js +0 -19
  1140. package/libEs6/utils/request/createDataCollectionRequest.js +0 -69
  1141. package/libEs6/utils/request/createDataCollectionRequestPayload.js +0 -30
  1142. package/libEs6/utils/request/createGetAssuranceValidationTokenParams.js +0 -42
  1143. package/libEs6/utils/request/createHasIdentity.js +0 -15
  1144. package/libEs6/utils/request/createRequest.js +0 -63
  1145. package/libEs6/utils/request/createRequestParams.js +0 -46
  1146. package/libEs6/utils/request/createRequestPayload.js +0 -35
  1147. package/libEs6/utils/request/index.js +0 -20
  1148. package/libEs6/utils/sanitizeOrgIdForCookieName.js +0 -13
  1149. package/libEs6/utils/sortObjectKeysRecursively.js +0 -38
  1150. package/libEs6/utils/stackError.js +0 -35
  1151. package/libEs6/utils/stringToBoolean.js +0 -15
  1152. package/libEs6/utils/toArray.js +0 -21
  1153. package/libEs6/utils/toError.js +0 -21
  1154. package/libEs6/utils/toISOStringLocal.js +0 -50
  1155. package/libEs6/utils/toInteger.js +0 -29
  1156. package/libEs6/utils/updateErrorMessage.js +0 -23
  1157. package/libEs6/utils/uuid.js +0 -14
  1158. package/libEs6/utils/validateConfigOverride.js +0 -14
  1159. package/libEs6/utils/validateIdentityMap.js +0 -23
  1160. package/libEs6/utils/validation/booleanValidator.js +0 -18
  1161. package/libEs6/utils/validation/callbackValidator.js +0 -17
  1162. package/libEs6/utils/validation/createAnyOfValidator.js +0 -25
  1163. package/libEs6/utils/validation/createArrayOfValidator.js +0 -28
  1164. package/libEs6/utils/validation/createDefaultValidator.js +0 -18
  1165. package/libEs6/utils/validation/createDeprecatedValidator.js +0 -24
  1166. package/libEs6/utils/validation/createLiteralValidator.js +0 -16
  1167. package/libEs6/utils/validation/createMapOfValuesValidator.js +0 -35
  1168. package/libEs6/utils/validation/createMaximumValidator.js +0 -16
  1169. package/libEs6/utils/validation/createMinimumValidator.js +0 -16
  1170. package/libEs6/utils/validation/createNoUnknownFieldsValidator.js +0 -25
  1171. package/libEs6/utils/validation/createNonEmptyValidator.js +0 -23
  1172. package/libEs6/utils/validation/createObjectOfValidator.js +0 -43
  1173. package/libEs6/utils/validation/createRenamedValidator.js +0 -37
  1174. package/libEs6/utils/validation/createUniqueItemsValidator.js +0 -19
  1175. package/libEs6/utils/validation/createUniqueValidator.js +0 -21
  1176. package/libEs6/utils/validation/domainValidator.js +0 -17
  1177. package/libEs6/utils/validation/index.js +0 -236
  1178. package/libEs6/utils/validation/integerValidator.js +0 -18
  1179. package/libEs6/utils/validation/matchesRegexpValidator.js +0 -17
  1180. package/libEs6/utils/validation/numberValidator.js +0 -18
  1181. package/libEs6/utils/validation/regexpValidator.js +0 -18
  1182. package/libEs6/utils/validation/requiredValidator.js +0 -18
  1183. package/libEs6/utils/validation/stringValidator.js +0 -17
  1184. package/libEs6/utils/validation/utils.js +0 -124
  1185. package/scripts/helpers/versionBabelPlugin.js +0 -43
  1186. package/types/baseCode/index.d.ts.map +0 -1
  1187. package/types/baseCode.d.ts.map +0 -1
  1188. package/types/components/ActivityCollector/attachClickActivityCollector.d.ts.map +0 -1
  1189. package/types/components/ActivityCollector/configValidators.d.ts.map +0 -1
  1190. package/types/components/ActivityCollector/createClickActivityStorage.d.ts.map +0 -1
  1191. package/types/components/ActivityCollector/createClickedElementProperties.d.ts.map +0 -1
  1192. package/types/components/ActivityCollector/createGetClickedElementProperties.d.ts.map +0 -1
  1193. package/types/components/ActivityCollector/createInjectClickedElementProperties.d.ts.map +0 -1
  1194. package/types/components/ActivityCollector/createRecallAndInjectClickedElementProperties.d.ts.map +0 -1
  1195. package/types/components/ActivityCollector/createStorePageViewProperties.d.ts.map +0 -1
  1196. package/types/components/ActivityCollector/getLinkName.d.ts.map +0 -1
  1197. package/types/components/ActivityCollector/getLinkRegion.d.ts.map +0 -1
  1198. package/types/components/ActivityCollector/index.d.ts.map +0 -1
  1199. package/types/components/ActivityCollector/utils/activityMapExtensionEnabled.d.ts.map +0 -1
  1200. package/types/components/ActivityCollector/utils/createTransientStorage.d.ts.map +0 -1
  1201. package/types/components/ActivityCollector/utils/determineLinkType.d.ts.map +0 -1
  1202. package/types/components/ActivityCollector/utils/dom/elementHasClickHandler.d.ts.map +0 -1
  1203. package/types/components/ActivityCollector/utils/dom/extractDomain.d.ts.map +0 -1
  1204. package/types/components/ActivityCollector/utils/dom/findClickableElement.d.ts.map +0 -1
  1205. package/types/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.d.ts.map +0 -1
  1206. package/types/components/ActivityCollector/utils/dom/isButtonSubmitElement.d.ts.map +0 -1
  1207. package/types/components/ActivityCollector/utils/dom/isDownloadLink.d.ts.map +0 -1
  1208. package/types/components/ActivityCollector/utils/dom/isExitLink.d.ts.map +0 -1
  1209. package/types/components/ActivityCollector/utils/dom/isInputSubmitElement.d.ts.map +0 -1
  1210. package/types/components/ActivityCollector/utils/dom/isSupportedAnchorElement.d.ts.map +0 -1
  1211. package/types/components/ActivityCollector/utils/dom/isSupportedTextNode.d.ts.map +0 -1
  1212. package/types/components/ActivityCollector/utils/hasPageName.d.ts.map +0 -1
  1213. package/types/components/ActivityCollector/utils/isDifferentDomains.d.ts.map +0 -1
  1214. package/types/components/ActivityCollector/utils/trimQueryFromUrl.d.ts.map +0 -1
  1215. package/types/components/ActivityCollector/utils/truncateWhiteSpace.d.ts.map +0 -1
  1216. package/types/components/ActivityCollector/utils/urlStartsWithScheme.d.ts +0 -3
  1217. package/types/components/ActivityCollector/utils/urlStartsWithScheme.d.ts.map +0 -1
  1218. package/types/components/ActivityCollector/validateClickCollectionConfig.d.ts.map +0 -1
  1219. package/types/components/Audiences/index.d.ts.map +0 -1
  1220. package/types/components/Audiences/injectProcessDestinations.d.ts.map +0 -1
  1221. package/types/components/Audiences/injectProcessResponse.d.ts.map +0 -1
  1222. package/types/components/Consent/computeConsentHash.d.ts.map +0 -1
  1223. package/types/components/Consent/configValidators.d.ts.map +0 -1
  1224. package/types/components/Consent/createComponent.d.ts.map +0 -1
  1225. package/types/components/Consent/createConsentHashStore.d.ts.map +0 -1
  1226. package/types/components/Consent/createConsentRequest.d.ts.map +0 -1
  1227. package/types/components/Consent/createConsentRequestPayload.d.ts.map +0 -1
  1228. package/types/components/Consent/createStoredConsent.d.ts.map +0 -1
  1229. package/types/components/Consent/index.d.ts.map +0 -1
  1230. package/types/components/Consent/injectSendSetConsentRequest.d.ts.map +0 -1
  1231. package/types/components/Consent/parseConsentCookie.d.ts.map +0 -1
  1232. package/types/components/Consent/validateSetConsentOptions.d.ts.map +0 -1
  1233. package/types/components/Context/createComponent.d.ts.map +0 -1
  1234. package/types/components/Context/implementationDetails.d.ts.map +0 -1
  1235. package/types/components/Context/index.d.ts.map +0 -1
  1236. package/types/components/Context/injectDevice.d.ts.map +0 -1
  1237. package/types/components/Context/injectEnvironment.d.ts.map +0 -1
  1238. package/types/components/Context/injectHighEntropyUserAgentHints.d.ts.map +0 -1
  1239. package/types/components/Context/injectPlaceContext.d.ts.map +0 -1
  1240. package/types/components/Context/injectTimestamp.d.ts.map +0 -1
  1241. package/types/components/Context/injectWeb.d.ts.map +0 -1
  1242. package/types/components/DataCollector/index.d.ts.map +0 -1
  1243. package/types/components/DataCollector/validateApplyResponse.d.ts.map +0 -1
  1244. package/types/components/DataCollector/validateUserEventOptions.d.ts.map +0 -1
  1245. package/types/components/EventMerge/createComponent.d.ts.map +0 -1
  1246. package/types/components/EventMerge/createEventMergeId.d.ts.map +0 -1
  1247. package/types/components/EventMerge/index.d.ts.map +0 -1
  1248. package/types/components/Identity/addEcidToPayload.d.ts.map +0 -1
  1249. package/types/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.d.ts.map +0 -1
  1250. package/types/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.d.ts.map +0 -1
  1251. package/types/components/Identity/configValidators.d.ts.map +0 -1
  1252. package/types/components/Identity/constants/authState.d.ts.map +0 -1
  1253. package/types/components/Identity/constants/defaultIdSyncTtlMinutes.d.ts.map +0 -1
  1254. package/types/components/Identity/createComponent.d.ts.map +0 -1
  1255. package/types/components/Identity/createDecodeKndctrCookie.d.ts.map +0 -1
  1256. package/types/components/Identity/createLegacyIdentity.d.ts.map +0 -1
  1257. package/types/components/Identity/getIdentity/createGetIdentity.d.ts.map +0 -1
  1258. package/types/components/Identity/getIdentity/createGetIdentityOptionsValidator.d.ts.map +0 -1
  1259. package/types/components/Identity/getIdentity/createIdentityRequest.d.ts.map +0 -1
  1260. package/types/components/Identity/getIdentity/createIdentityRequestPayload.d.ts.map +0 -1
  1261. package/types/components/Identity/getNamespacesFromResponse.d.ts.map +0 -1
  1262. package/types/components/Identity/index.d.ts.map +0 -1
  1263. package/types/components/Identity/injectAddEcidQueryToPayload.d.ts.map +0 -1
  1264. package/types/components/Identity/injectAddLegacyEcidToPayload.d.ts.map +0 -1
  1265. package/types/components/Identity/injectAddQueryStringIdentityToPayload.d.ts.map +0 -1
  1266. package/types/components/Identity/injectAwaitIdentityCookie.d.ts.map +0 -1
  1267. package/types/components/Identity/injectEnsureSingleIdentity.d.ts.map +0 -1
  1268. package/types/components/Identity/injectHandleResponseForIdSyncs.d.ts.map +0 -1
  1269. package/types/components/Identity/injectProcessIdSyncs.d.ts.map +0 -1
  1270. package/types/components/Identity/injectSetDomainForInitialIdentityPayload.d.ts.map +0 -1
  1271. package/types/components/Identity/visitorService/awaitVisitorOptIn.d.ts.map +0 -1
  1272. package/types/components/Identity/visitorService/getVisitor.d.ts.map +0 -1
  1273. package/types/components/Identity/visitorService/injectGetEcidFromVisitor.d.ts.map +0 -1
  1274. package/types/components/LibraryInfo/index.d.ts +0 -22
  1275. package/types/components/LibraryInfo/index.d.ts.map +0 -1
  1276. package/types/components/MediaAnalyticsBridge/constants/constants.d.ts.map +0 -1
  1277. package/types/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.d.ts.map +0 -1
  1278. package/types/components/MediaAnalyticsBridge/createGetInstance.d.ts.map +0 -1
  1279. package/types/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.d.ts.map +0 -1
  1280. package/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts +0 -62
  1281. package/types/components/MediaAnalyticsBridge/createMediaHelper.d.ts.map +0 -1
  1282. package/types/components/MediaAnalyticsBridge/index.d.ts.map +0 -1
  1283. package/types/components/Personalization/constants/loggerMessage.d.ts.map +0 -1
  1284. package/types/components/Personalization/constants/scopeType.d.ts.map +0 -1
  1285. package/types/components/Personalization/constants/surface.d.ts.map +0 -1
  1286. package/types/components/Personalization/createApplyPropositions.d.ts.map +0 -1
  1287. package/types/components/Personalization/createClickStorage.d.ts.map +0 -1
  1288. package/types/components/Personalization/createComponent.d.ts.map +0 -1
  1289. package/types/components/Personalization/createFetchDataHandler.d.ts.map +0 -1
  1290. package/types/components/Personalization/createGetPageLocation.d.ts.map +0 -1
  1291. package/types/components/Personalization/createHandleConsentFlicker.d.ts.map +0 -1
  1292. package/types/components/Personalization/createInteractionStorage.d.ts.map +0 -1
  1293. package/types/components/Personalization/createNotificationHandler.d.ts.map +0 -1
  1294. package/types/components/Personalization/createOnClickHandler.d.ts.map +0 -1
  1295. package/types/components/Personalization/createOnDecisionHandler.d.ts.map +0 -1
  1296. package/types/components/Personalization/createPersonalizationDetails.d.ts.map +0 -1
  1297. package/types/components/Personalization/createSetTargetMigration.d.ts.map +0 -1
  1298. package/types/components/Personalization/createViewCacheManager.d.ts.map +0 -1
  1299. package/types/components/Personalization/createViewChangeHandler.d.ts.map +0 -1
  1300. package/types/components/Personalization/dom-actions/action.d.ts.map +0 -1
  1301. package/types/components/Personalization/dom-actions/addNonceToInlineStyleElements.d.ts.map +0 -1
  1302. package/types/components/Personalization/dom-actions/appendHtml.d.ts.map +0 -1
  1303. package/types/components/Personalization/dom-actions/clicks/collectClicks.d.ts.map +0 -1
  1304. package/types/components/Personalization/dom-actions/clicks/collectInteractions.d.ts.map +0 -1
  1305. package/types/components/Personalization/dom-actions/collectInteractions.d.ts.map +0 -1
  1306. package/types/components/Personalization/dom-actions/createPreprocess.d.ts.map +0 -1
  1307. package/types/components/Personalization/dom-actions/createRedirect.d.ts.map +0 -1
  1308. package/types/components/Personalization/dom-actions/dom/createFragment.d.ts.map +0 -1
  1309. package/types/components/Personalization/dom-actions/dom/getAttribute.d.ts.map +0 -1
  1310. package/types/components/Personalization/dom-actions/dom/getChildNodes.d.ts.map +0 -1
  1311. package/types/components/Personalization/dom-actions/dom/getChildren.d.ts.map +0 -1
  1312. package/types/components/Personalization/dom-actions/dom/getElementById.d.ts.map +0 -1
  1313. package/types/components/Personalization/dom-actions/dom/getFirstChild.d.ts.map +0 -1
  1314. package/types/components/Personalization/dom-actions/dom/getNextSibling.d.ts.map +0 -1
  1315. package/types/components/Personalization/dom-actions/dom/getNonce.d.ts.map +0 -1
  1316. package/types/components/Personalization/dom-actions/dom/getParent.d.ts.map +0 -1
  1317. package/types/components/Personalization/dom-actions/dom/helperForEq.d.ts.map +0 -1
  1318. package/types/components/Personalization/dom-actions/dom/index.d.ts.map +0 -1
  1319. package/types/components/Personalization/dom-actions/dom/insertAfter.d.ts.map +0 -1
  1320. package/types/components/Personalization/dom-actions/dom/insertBefore.d.ts.map +0 -1
  1321. package/types/components/Personalization/dom-actions/dom/isDomElement.d.ts.map +0 -1
  1322. package/types/components/Personalization/dom-actions/dom/matchesSelectorWithEq.d.ts.map +0 -1
  1323. package/types/components/Personalization/dom-actions/dom/removeAttribute.d.ts.map +0 -1
  1324. package/types/components/Personalization/dom-actions/dom/selectNodesWithEq.d.ts.map +0 -1
  1325. package/types/components/Personalization/dom-actions/dom/setAttribute.d.ts.map +0 -1
  1326. package/types/components/Personalization/dom-actions/dom/setStyle.d.ts.map +0 -1
  1327. package/types/components/Personalization/dom-actions/dom/util.d.ts.map +0 -1
  1328. package/types/components/Personalization/dom-actions/images.d.ts.map +0 -1
  1329. package/types/components/Personalization/dom-actions/index.d.ts.map +0 -1
  1330. package/types/components/Personalization/dom-actions/initDomActionsModules.d.ts.map +0 -1
  1331. package/types/components/Personalization/dom-actions/insertHtmlAfter.d.ts.map +0 -1
  1332. package/types/components/Personalization/dom-actions/insertHtmlBefore.d.ts.map +0 -1
  1333. package/types/components/Personalization/dom-actions/move.d.ts.map +0 -1
  1334. package/types/components/Personalization/dom-actions/prependHtml.d.ts.map +0 -1
  1335. package/types/components/Personalization/dom-actions/rearrangeChildren.d.ts.map +0 -1
  1336. package/types/components/Personalization/dom-actions/remapCustomCodeOffers.d.ts.map +0 -1
  1337. package/types/components/Personalization/dom-actions/remapHeadOffers.d.ts.map +0 -1
  1338. package/types/components/Personalization/dom-actions/replaceHtml.d.ts.map +0 -1
  1339. package/types/components/Personalization/dom-actions/resize.d.ts.map +0 -1
  1340. package/types/components/Personalization/dom-actions/scripts.d.ts.map +0 -1
  1341. package/types/components/Personalization/dom-actions/setAttributes.d.ts.map +0 -1
  1342. package/types/components/Personalization/dom-actions/setHtml.d.ts.map +0 -1
  1343. package/types/components/Personalization/dom-actions/setStyles.d.ts.map +0 -1
  1344. package/types/components/Personalization/dom-actions/setText.d.ts.map +0 -1
  1345. package/types/components/Personalization/dom-actions/swapImage.d.ts.map +0 -1
  1346. package/types/components/Personalization/flicker/index.d.ts.map +0 -1
  1347. package/types/components/Personalization/handlers/createDecorateProposition.d.ts.map +0 -1
  1348. package/types/components/Personalization/handlers/createProcessDomAction.d.ts.map +0 -1
  1349. package/types/components/Personalization/handlers/createProcessHtmlContent.d.ts.map +0 -1
  1350. package/types/components/Personalization/handlers/createProcessInAppMessage.d.ts.map +0 -1
  1351. package/types/components/Personalization/handlers/createProcessPropositions.d.ts.map +0 -1
  1352. package/types/components/Personalization/handlers/createProcessRedirect.d.ts.map +0 -1
  1353. package/types/components/Personalization/handlers/createRenderStatusHandler.d.ts.map +0 -1
  1354. package/types/components/Personalization/handlers/injectCreateProposition.d.ts.map +0 -1
  1355. package/types/components/Personalization/handlers/processDefaultContent.d.ts.map +0 -1
  1356. package/types/components/Personalization/in-app-message-actions/actions/displayIframeContent.d.ts.map +0 -1
  1357. package/types/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.d.ts.map +0 -1
  1358. package/types/components/Personalization/in-app-message-actions/utils.d.ts.map +0 -1
  1359. package/types/components/Personalization/index.d.ts.map +0 -1
  1360. package/types/components/Personalization/utils/addRenderAttemptedToDecisions.d.ts.map +0 -1
  1361. package/types/components/Personalization/utils/createAsyncArray.d.ts.map +0 -1
  1362. package/types/components/Personalization/utils/isAuthoringModeEnabled.d.ts.map +0 -1
  1363. package/types/components/Personalization/utils/metaUtils.d.ts.map +0 -1
  1364. package/types/components/Personalization/utils/surfaceUtils.d.ts.map +0 -1
  1365. package/types/components/Personalization/validateApplyPropositionsOptions.d.ts.map +0 -1
  1366. package/types/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.d.ts.map +0 -1
  1367. package/types/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.d.ts.map +0 -1
  1368. package/types/components/RulesEngine/constants/index.d.ts +0 -5
  1369. package/types/components/RulesEngine/constants/index.d.ts.map +0 -1
  1370. package/types/components/RulesEngine/constants.d.ts +0 -15
  1371. package/types/components/RulesEngine/constants.d.ts.map +0 -1
  1372. package/types/components/RulesEngine/createApplyResponse.d.ts +0 -10
  1373. package/types/components/RulesEngine/createApplyResponse.d.ts.map +0 -1
  1374. package/types/components/RulesEngine/createConsequenceAdapter.d.ts.map +0 -1
  1375. package/types/components/RulesEngine/createContextProvider.d.ts.map +0 -1
  1376. package/types/components/RulesEngine/createDecisionProvider.d.ts.map +0 -1
  1377. package/types/components/RulesEngine/createEvaluableRulesetPayload.d.ts.map +0 -1
  1378. package/types/components/RulesEngine/createEvaluateRulesetsCommand.d.ts.map +0 -1
  1379. package/types/components/RulesEngine/createEventRegistry.d.ts +0 -12
  1380. package/types/components/RulesEngine/createEventRegistry.d.ts.map +0 -1
  1381. package/types/components/RulesEngine/createOnResponseHandler.d.ts.map +0 -1
  1382. package/types/components/RulesEngine/createSubscribeRulesetItems.d.ts.map +0 -1
  1383. package/types/components/RulesEngine/index.d.ts.map +0 -1
  1384. package/types/components/RulesEngine/utils/createEventPruner.d.ts.map +0 -1
  1385. package/types/components/RulesEngine/utils/generateEventHash.d.ts.map +0 -1
  1386. package/types/components/RulesEngine/utils/getExpirationDate.d.ts.map +0 -1
  1387. package/types/components/RulesEngine/utils/getPropositionData.d.ts.map +0 -1
  1388. package/types/components/RulesEngine/utils/hasExperienceData.d.ts.map +0 -1
  1389. package/types/components/RulesEngine/utils/index.d.ts.map +0 -1
  1390. package/types/components/RulesEngine/utils/storage.d.ts +0 -8
  1391. package/types/components/RulesEngine/utils/storage.d.ts.map +0 -1
  1392. package/types/components/StreamingMedia/configValidators.d.ts.map +0 -1
  1393. package/types/components/StreamingMedia/constants/eventTypes.d.ts.map +0 -1
  1394. package/types/components/StreamingMedia/constants/playbackState.d.ts.map +0 -1
  1395. package/types/components/StreamingMedia/createMediaEventManager.d.ts.map +0 -1
  1396. package/types/components/StreamingMedia/createMediaRequest.d.ts.map +0 -1
  1397. package/types/components/StreamingMedia/createMediaResponseHandler.d.ts.map +0 -1
  1398. package/types/components/StreamingMedia/createMediaSessionCacheManager.d.ts.map +0 -1
  1399. package/types/components/StreamingMedia/createStreamingMediaComponent.d.ts.map +0 -1
  1400. package/types/components/StreamingMedia/createTrackMediaEvent.d.ts.map +0 -1
  1401. package/types/components/StreamingMedia/createTrackMediaSession.d.ts.map +0 -1
  1402. package/types/components/StreamingMedia/index.d.ts.map +0 -1
  1403. package/types/components/StreamingMedia/validateMediaEventOptions.d.ts.map +0 -1
  1404. package/types/components/StreamingMedia/validateMediaSessionOptions.d.ts.map +0 -1
  1405. package/types/constants/apiVersion.d.ts.map +0 -1
  1406. package/types/constants/browser.d.ts.map +0 -1
  1407. package/types/constants/consentPurpose.d.ts.map +0 -1
  1408. package/types/constants/consentStatus.d.ts.map +0 -1
  1409. package/types/constants/contentType.d.ts.map +0 -1
  1410. package/types/constants/cookieNameKey.d.ts.map +0 -1
  1411. package/types/constants/cookieNamePrefix.d.ts.map +0 -1
  1412. package/types/constants/coreCommands.d.ts.map +0 -1
  1413. package/types/constants/coreNamespace.d.ts.map +0 -1
  1414. package/types/constants/debugQueryParam.d.ts.map +0 -1
  1415. package/types/constants/decisionProvider.d.ts.map +0 -1
  1416. package/types/constants/domain.d.ts.map +0 -1
  1417. package/types/constants/ecidNamespace.d.ts.map +0 -1
  1418. package/types/constants/edgeBasePath.d.ts.map +0 -1
  1419. package/types/constants/elementAttribute.d.ts.map +0 -1
  1420. package/types/constants/eventType.d.ts.map +0 -1
  1421. package/types/constants/handle.d.ts +0 -2
  1422. package/types/constants/handle.d.ts.map +0 -1
  1423. package/types/constants/highEntropyUserAgentClientHints.d.ts.map +0 -1
  1424. package/types/constants/httpHeaderNames.d.ts.map +0 -1
  1425. package/types/constants/httpStatusCode.d.ts.map +0 -1
  1426. package/types/constants/identityMapAuthenticatedState.d.ts.map +0 -1
  1427. package/types/constants/legacyCookies.d.ts.map +0 -1
  1428. package/types/constants/libraryName.d.ts.map +0 -1
  1429. package/types/constants/libraryVersion.d.ts +0 -3
  1430. package/types/constants/libraryVersion.d.ts.map +0 -1
  1431. package/types/constants/namespace.d.ts.map +0 -1
  1432. package/types/constants/pageWideScope.d.ts.map +0 -1
  1433. package/types/constants/propositionEventType.d.ts.map +0 -1
  1434. package/types/constants/propositionInteractionType.d.ts.map +0 -1
  1435. package/types/constants/queryStringIdentityParam.d.ts.map +0 -1
  1436. package/types/constants/schema.d.ts +0 -11
  1437. package/types/constants/schema.d.ts.map +0 -1
  1438. package/types/constants/sessionDataKeys.d.ts.map +0 -1
  1439. package/types/constants/shadowSeparator.d.ts.map +0 -1
  1440. package/types/constants/tagName.d.ts.map +0 -1
  1441. package/types/core/buildAndValidateConfig.d.ts.map +0 -1
  1442. package/types/core/componentCreators.d.ts.map +0 -1
  1443. package/types/core/config/createConfig.d.ts.map +0 -1
  1444. package/types/core/config/createCoreConfigs.d.ts.map +0 -1
  1445. package/types/core/consent/createConsent.d.ts.map +0 -1
  1446. package/types/core/consent/createConsentStateMachine.d.ts.map +0 -1
  1447. package/types/core/createComponentRegistry.d.ts.map +0 -1
  1448. package/types/core/createCookieTransfer.d.ts.map +0 -1
  1449. package/types/core/createEvent.d.ts.map +0 -1
  1450. package/types/core/createEventManager.d.ts.map +0 -1
  1451. package/types/core/createInstanceFunction.d.ts.map +0 -1
  1452. package/types/core/createLifecycle.d.ts.map +0 -1
  1453. package/types/core/createLogController.d.ts.map +0 -1
  1454. package/types/core/createLogger.d.ts.map +0 -1
  1455. package/types/core/edgeNetwork/handleRequestFailure.d.ts.map +0 -1
  1456. package/types/core/edgeNetwork/injectApplyResponse.d.ts.map +0 -1
  1457. package/types/core/edgeNetwork/injectExtractEdgeInfo.d.ts.map +0 -1
  1458. package/types/core/edgeNetwork/injectGetLocationHint.d.ts.map +0 -1
  1459. package/types/core/edgeNetwork/injectProcessWarningsAndErrors.d.ts.map +0 -1
  1460. package/types/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts.map +0 -1
  1461. package/types/core/edgeNetwork/mergeLifecycleResponses.d.ts.map +0 -1
  1462. package/types/core/getMonitors.d.ts.map +0 -1
  1463. package/types/core/index.d.ts.map +0 -1
  1464. package/types/core/initializeComponents.d.ts.map +0 -1
  1465. package/types/core/injectCreateResponse.d.ts.map +0 -1
  1466. package/types/core/injectExecuteCommand.d.ts.map +0 -1
  1467. package/types/core/injectHandleError.d.ts.map +0 -1
  1468. package/types/core/injectShouldTransferCookie.d.ts.map +0 -1
  1469. package/types/core/network/getRequestRetryDelay.d.ts.map +0 -1
  1470. package/types/core/network/injectSendNetworkRequest.d.ts.map +0 -1
  1471. package/types/core/network/isRequestRetryable.d.ts.map +0 -1
  1472. package/types/core/network/requestMethods/injectSendBeaconRequest.d.ts.map +0 -1
  1473. package/types/core/network/requestMethods/injectSendFetchRequest.d.ts.map +0 -1
  1474. package/types/core/requiredComponentCreators.d.ts.map +0 -1
  1475. package/types/core/types.d.ts.map +0 -1
  1476. package/types/core/validateCommandOptions.d.ts.map +0 -1
  1477. package/types/index.d.ts.map +0 -1
  1478. package/types/standalone.d.ts.map +0 -1
  1479. package/types/utils/assignConcatArrayValues.d.ts.map +0 -1
  1480. package/types/utils/clone.d.ts.map +0 -1
  1481. package/types/utils/cookieJar.d.ts.map +0 -1
  1482. package/types/utils/createCallbackAggregator.d.ts.map +0 -1
  1483. package/types/utils/createCollect.d.ts.map +0 -1
  1484. package/types/utils/createLoggingCookieJar.d.ts.map +0 -1
  1485. package/types/utils/createMerger.d.ts.map +0 -1
  1486. package/types/utils/createSubscription.d.ts.map +0 -1
  1487. package/types/utils/createTaskQueue.d.ts.map +0 -1
  1488. package/types/utils/decodeUriComponentSafely.d.ts.map +0 -1
  1489. package/types/utils/deduplicateArray.d.ts.map +0 -1
  1490. package/types/utils/deepAssign.d.ts.map +0 -1
  1491. package/types/utils/defer.d.ts.map +0 -1
  1492. package/types/utils/dom/appendNode.d.ts.map +0 -1
  1493. package/types/utils/dom/awaitSelector.d.ts.map +0 -1
  1494. package/types/utils/dom/createNode.d.ts.map +0 -1
  1495. package/types/utils/dom/index.d.ts.map +0 -1
  1496. package/types/utils/dom/isShadowSelector.d.ts.map +0 -1
  1497. package/types/utils/dom/matchesSelector.d.ts.map +0 -1
  1498. package/types/utils/dom/querySelectorAll.d.ts.map +0 -1
  1499. package/types/utils/dom/removeNode.d.ts.map +0 -1
  1500. package/types/utils/dom/selectNodes.d.ts.map +0 -1
  1501. package/types/utils/dom/selectNodesWithShadow.d.ts.map +0 -1
  1502. package/types/utils/event.d.ts.map +0 -1
  1503. package/types/utils/filterObject.d.ts.map +0 -1
  1504. package/types/utils/fireImage.d.ts.map +0 -1
  1505. package/types/utils/flattenArray.d.ts.map +0 -1
  1506. package/types/utils/flattenObject.d.ts.map +0 -1
  1507. package/types/utils/fnv1a32Hex.d.ts.map +0 -1
  1508. package/types/utils/getApexDomain.d.ts.map +0 -1
  1509. package/types/utils/getLastArrayItems.d.ts.map +0 -1
  1510. package/types/utils/getNamespacedCookieName.d.ts.map +0 -1
  1511. package/types/utils/groupBy.d.ts.map +0 -1
  1512. package/types/utils/index.d.ts +0 -51
  1513. package/types/utils/index.d.ts.map +0 -1
  1514. package/types/utils/injectAreThirdPartyCookiesSupportedByDefault.d.ts.map +0 -1
  1515. package/types/utils/injectDoesIdentityCookieExist.d.ts.map +0 -1
  1516. package/types/utils/injectFireReferrerHideableImage.d.ts.map +0 -1
  1517. package/types/utils/injectGetBrowser.d.ts.map +0 -1
  1518. package/types/utils/injectStorage.d.ts.map +0 -1
  1519. package/types/utils/intersection.d.ts.map +0 -1
  1520. package/types/utils/isBlankString.d.ts.map +0 -1
  1521. package/types/utils/isBoolean.d.ts.map +0 -1
  1522. package/types/utils/isEmptyObject.d.ts.map +0 -1
  1523. package/types/utils/isFunction.d.ts.map +0 -1
  1524. package/types/utils/isInteger.d.ts.map +0 -1
  1525. package/types/utils/isNamespacedCookieName.d.ts.map +0 -1
  1526. package/types/utils/isNil.d.ts.map +0 -1
  1527. package/types/utils/isNonEmptyArray.d.ts.map +0 -1
  1528. package/types/utils/isNonEmptyString.d.ts.map +0 -1
  1529. package/types/utils/isNumber.d.ts.map +0 -1
  1530. package/types/utils/isObject.d.ts.map +0 -1
  1531. package/types/utils/isString.d.ts.map +0 -1
  1532. package/types/utils/isUnique.d.ts.map +0 -1
  1533. package/types/utils/isValidRegExp.d.ts.map +0 -1
  1534. package/types/utils/lazy.d.ts.map +0 -1
  1535. package/types/utils/networkErrors.d.ts.map +0 -1
  1536. package/types/utils/noop.d.ts.map +0 -1
  1537. package/types/utils/parseUrl.d.ts.map +0 -1
  1538. package/types/utils/prepareConfigOverridesForEdge.d.ts.map +0 -1
  1539. package/types/utils/querystring.d.ts.map +0 -1
  1540. package/types/utils/request/createAddIdentity.d.ts.map +0 -1
  1541. package/types/utils/request/createDataCollectionRequest.d.ts.map +0 -1
  1542. package/types/utils/request/createDataCollectionRequestPayload.d.ts.map +0 -1
  1543. package/types/utils/request/createGetAssuranceValidationTokenParams.d.ts.map +0 -1
  1544. package/types/utils/request/createHasIdentity.d.ts.map +0 -1
  1545. package/types/utils/request/createRequest.d.ts.map +0 -1
  1546. package/types/utils/request/createRequestParams.d.ts.map +0 -1
  1547. package/types/utils/request/createRequestPayload.d.ts.map +0 -1
  1548. package/types/utils/request/index.d.ts.map +0 -1
  1549. package/types/utils/sanitizeOrgIdForCookieName.d.ts.map +0 -1
  1550. package/types/utils/sortObjectKeysRecursively.d.ts.map +0 -1
  1551. package/types/utils/stackError.d.ts.map +0 -1
  1552. package/types/utils/stringToBoolean.d.ts.map +0 -1
  1553. package/types/utils/toArray.d.ts.map +0 -1
  1554. package/types/utils/toError.d.ts.map +0 -1
  1555. package/types/utils/toISOStringLocal.d.ts.map +0 -1
  1556. package/types/utils/toInteger.d.ts.map +0 -1
  1557. package/types/utils/updateErrorMessage.d.ts.map +0 -1
  1558. package/types/utils/uuid.d.ts.map +0 -1
  1559. package/types/utils/validateConfigOverride.d.ts.map +0 -1
  1560. package/types/utils/validateIdentityMap.d.ts.map +0 -1
  1561. package/types/utils/validation/booleanValidator.d.ts.map +0 -1
  1562. package/types/utils/validation/callbackValidator.d.ts.map +0 -1
  1563. package/types/utils/validation/createAnyOfValidator.d.ts.map +0 -1
  1564. package/types/utils/validation/createArrayOfValidator.d.ts.map +0 -1
  1565. package/types/utils/validation/createDefaultValidator.d.ts.map +0 -1
  1566. package/types/utils/validation/createDeprecatedValidator.d.ts.map +0 -1
  1567. package/types/utils/validation/createLiteralValidator.d.ts.map +0 -1
  1568. package/types/utils/validation/createMapOfValuesValidator.d.ts.map +0 -1
  1569. package/types/utils/validation/createMaximumValidator.d.ts.map +0 -1
  1570. package/types/utils/validation/createMinimumValidator.d.ts.map +0 -1
  1571. package/types/utils/validation/createNoUnknownFieldsValidator.d.ts.map +0 -1
  1572. package/types/utils/validation/createNonEmptyValidator.d.ts.map +0 -1
  1573. package/types/utils/validation/createObjectOfValidator.d.ts.map +0 -1
  1574. package/types/utils/validation/createRenamedValidator.d.ts.map +0 -1
  1575. package/types/utils/validation/createUniqueItemsValidator.d.ts.map +0 -1
  1576. package/types/utils/validation/createUniqueValidator.d.ts.map +0 -1
  1577. package/types/utils/validation/domainValidator.d.ts.map +0 -1
  1578. package/types/utils/validation/index.d.ts.map +0 -1
  1579. package/types/utils/validation/integerValidator.d.ts.map +0 -1
  1580. package/types/utils/validation/matchesRegexpValidator.d.ts.map +0 -1
  1581. package/types/utils/validation/numberValidator.d.ts.map +0 -1
  1582. package/types/utils/validation/regexpValidator.d.ts.map +0 -1
  1583. package/types/utils/validation/requiredValidator.d.ts.map +0 -1
  1584. package/types/utils/validation/stringValidator.d.ts.map +0 -1
  1585. package/types/utils/validation/utils.d.ts.map +0 -1
  1586. /package/{types → dist/types}/baseCode/index.d.ts +0 -0
  1587. /package/{types → dist/types}/baseCode.d.ts +0 -0
  1588. /package/{types → dist/types}/components/ActivityCollector/attachClickActivityCollector.d.ts +0 -0
  1589. /package/{types → dist/types}/components/ActivityCollector/configValidators.d.ts +0 -0
  1590. /package/{types → dist/types}/components/ActivityCollector/createClickActivityStorage.d.ts +0 -0
  1591. /package/{types → dist/types}/components/ActivityCollector/createClickedElementProperties.d.ts +0 -0
  1592. /package/{types → dist/types}/components/ActivityCollector/createGetClickedElementProperties.d.ts +0 -0
  1593. /package/{types → dist/types}/components/ActivityCollector/createInjectClickedElementProperties.d.ts +0 -0
  1594. /package/{types → dist/types}/components/ActivityCollector/createRecallAndInjectClickedElementProperties.d.ts +0 -0
  1595. /package/{types → dist/types}/components/ActivityCollector/createStorePageViewProperties.d.ts +0 -0
  1596. /package/{types → dist/types}/components/ActivityCollector/getLinkName.d.ts +0 -0
  1597. /package/{types → dist/types}/components/ActivityCollector/getLinkRegion.d.ts +0 -0
  1598. /package/{types → dist/types}/components/ActivityCollector/index.d.ts +0 -0
  1599. /package/{types → dist/types}/components/ActivityCollector/utils/activityMapExtensionEnabled.d.ts +0 -0
  1600. /package/{types → dist/types}/components/ActivityCollector/utils/createTransientStorage.d.ts +0 -0
  1601. /package/{types → dist/types}/components/ActivityCollector/utils/determineLinkType.d.ts +0 -0
  1602. /package/{types → dist/types}/components/ActivityCollector/utils/dom/elementHasClickHandler.d.ts +0 -0
  1603. /package/{types → dist/types}/components/ActivityCollector/utils/dom/extractDomain.d.ts +0 -0
  1604. /package/{types → dist/types}/components/ActivityCollector/utils/dom/findClickableElement.d.ts +0 -0
  1605. /package/{types → dist/types}/components/ActivityCollector/utils/dom/getAbsoluteUrlFromAnchorElement.d.ts +0 -0
  1606. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isButtonSubmitElement.d.ts +0 -0
  1607. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isDownloadLink.d.ts +0 -0
  1608. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isExitLink.d.ts +0 -0
  1609. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isInputSubmitElement.d.ts +0 -0
  1610. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isSupportedAnchorElement.d.ts +0 -0
  1611. /package/{types → dist/types}/components/ActivityCollector/utils/dom/isSupportedTextNode.d.ts +0 -0
  1612. /package/{types → dist/types}/components/ActivityCollector/utils/hasPageName.d.ts +0 -0
  1613. /package/{types → dist/types}/components/ActivityCollector/utils/isDifferentDomains.d.ts +0 -0
  1614. /package/{types → dist/types}/components/ActivityCollector/utils/trimQueryFromUrl.d.ts +0 -0
  1615. /package/{types → dist/types}/components/ActivityCollector/utils/truncateWhiteSpace.d.ts +0 -0
  1616. /package/{types → dist/types}/components/ActivityCollector/validateClickCollectionConfig.d.ts +0 -0
  1617. /package/{types → dist/types}/components/Audiences/index.d.ts +0 -0
  1618. /package/{types → dist/types}/components/Audiences/injectProcessDestinations.d.ts +0 -0
  1619. /package/{types → dist/types}/components/Audiences/injectProcessResponse.d.ts +0 -0
  1620. /package/{types → dist/types}/components/Consent/computeConsentHash.d.ts +0 -0
  1621. /package/{types → dist/types}/components/Consent/configValidators.d.ts +0 -0
  1622. /package/{types → dist/types}/components/Consent/createComponent.d.ts +0 -0
  1623. /package/{types → dist/types}/components/Consent/createConsentHashStore.d.ts +0 -0
  1624. /package/{types → dist/types}/components/Consent/createConsentRequest.d.ts +0 -0
  1625. /package/{types → dist/types}/components/Consent/createConsentRequestPayload.d.ts +0 -0
  1626. /package/{types → dist/types}/components/Consent/createStoredConsent.d.ts +0 -0
  1627. /package/{types → dist/types}/components/Consent/index.d.ts +0 -0
  1628. /package/{types → dist/types}/components/Consent/injectSendSetConsentRequest.d.ts +0 -0
  1629. /package/{types → dist/types}/components/Consent/parseConsentCookie.d.ts +0 -0
  1630. /package/{types → dist/types}/components/Consent/validateSetConsentOptions.d.ts +0 -0
  1631. /package/{types → dist/types}/components/Context/createComponent.d.ts +0 -0
  1632. /package/{types → dist/types}/components/Context/implementationDetails.d.ts +0 -0
  1633. /package/{types → dist/types}/components/Context/index.d.ts +0 -0
  1634. /package/{types → dist/types}/components/Context/injectDevice.d.ts +0 -0
  1635. /package/{types → dist/types}/components/Context/injectEnvironment.d.ts +0 -0
  1636. /package/{types → dist/types}/components/Context/injectHighEntropyUserAgentHints.d.ts +0 -0
  1637. /package/{types → dist/types}/components/Context/injectPlaceContext.d.ts +0 -0
  1638. /package/{types → dist/types}/components/Context/injectTimestamp.d.ts +0 -0
  1639. /package/{types → dist/types}/components/Context/injectWeb.d.ts +0 -0
  1640. /package/{types → dist/types}/components/DataCollector/index.d.ts +0 -0
  1641. /package/{types → dist/types}/components/DataCollector/validateApplyResponse.d.ts +0 -0
  1642. /package/{types → dist/types}/components/DataCollector/validateUserEventOptions.d.ts +0 -0
  1643. /package/{types → dist/types}/components/EventMerge/createComponent.d.ts +0 -0
  1644. /package/{types → dist/types}/components/EventMerge/index.d.ts +0 -0
  1645. /package/{types → dist/types}/components/Identity/addEcidToPayload.d.ts +0 -0
  1646. /package/{types → dist/types}/components/Identity/appendIdentityToUrl/appendIdentityToUrlOptionsValidator.d.ts +0 -0
  1647. /package/{types → dist/types}/components/Identity/appendIdentityToUrl/injectAppendIdentityToUrl.d.ts +0 -0
  1648. /package/{types → dist/types}/components/Identity/configValidators.d.ts +0 -0
  1649. /package/{types → dist/types}/components/Identity/constants/authState.d.ts +0 -0
  1650. /package/{types → dist/types}/components/Identity/constants/defaultIdSyncTtlMinutes.d.ts +0 -0
  1651. /package/{types → dist/types}/components/Identity/createComponent.d.ts +0 -0
  1652. /package/{types → dist/types}/components/Identity/createDecodeKndctrCookie.d.ts +0 -0
  1653. /package/{types → dist/types}/components/Identity/createLegacyIdentity.d.ts +0 -0
  1654. /package/{types → dist/types}/components/Identity/getIdentity/createGetIdentity.d.ts +0 -0
  1655. /package/{types → dist/types}/components/Identity/getIdentity/createGetIdentityOptionsValidator.d.ts +0 -0
  1656. /package/{types → dist/types}/components/Identity/getIdentity/createIdentityRequest.d.ts +0 -0
  1657. /package/{types → dist/types}/components/Identity/getIdentity/createIdentityRequestPayload.d.ts +0 -0
  1658. /package/{types → dist/types}/components/Identity/getNamespacesFromResponse.d.ts +0 -0
  1659. /package/{types → dist/types}/components/Identity/index.d.ts +0 -0
  1660. /package/{types → dist/types}/components/Identity/injectAddEcidQueryToPayload.d.ts +0 -0
  1661. /package/{types → dist/types}/components/Identity/injectAddLegacyEcidToPayload.d.ts +0 -0
  1662. /package/{types → dist/types}/components/Identity/injectAddQueryStringIdentityToPayload.d.ts +0 -0
  1663. /package/{types → dist/types}/components/Identity/injectAwaitIdentityCookie.d.ts +0 -0
  1664. /package/{types → dist/types}/components/Identity/injectEnsureSingleIdentity.d.ts +0 -0
  1665. /package/{types → dist/types}/components/Identity/injectHandleResponseForIdSyncs.d.ts +0 -0
  1666. /package/{types → dist/types}/components/Identity/injectProcessIdSyncs.d.ts +0 -0
  1667. /package/{types → dist/types}/components/Identity/injectSetDomainForInitialIdentityPayload.d.ts +0 -0
  1668. /package/{types → dist/types}/components/Identity/visitorService/awaitVisitorOptIn.d.ts +0 -0
  1669. /package/{types → dist/types}/components/Identity/visitorService/getVisitor.d.ts +0 -0
  1670. /package/{types → dist/types}/components/Identity/visitorService/injectGetEcidFromVisitor.d.ts +0 -0
  1671. /package/{types → dist/types}/components/MediaAnalyticsBridge/constants/constants.d.ts +0 -0
  1672. /package/{types → dist/types}/components/MediaAnalyticsBridge/constants/mediaKeysToXdmConverter.d.ts +0 -0
  1673. /package/{types → dist/types}/components/MediaAnalyticsBridge/createGetInstance.d.ts +0 -0
  1674. /package/{types → dist/types}/components/MediaAnalyticsBridge/createMediaAnalyticsBridgeComponent.d.ts +0 -0
  1675. /package/{types → dist/types}/components/MediaAnalyticsBridge/index.d.ts +0 -0
  1676. /package/{types → dist/types}/components/Personalization/constants/loggerMessage.d.ts +0 -0
  1677. /package/{types → dist/types}/components/Personalization/constants/scopeType.d.ts +0 -0
  1678. /package/{types → dist/types}/components/Personalization/constants/surface.d.ts +0 -0
  1679. /package/{types → dist/types}/components/Personalization/createApplyPropositions.d.ts +0 -0
  1680. /package/{types → dist/types}/components/Personalization/createClickStorage.d.ts +0 -0
  1681. /package/{types → dist/types}/components/Personalization/createComponent.d.ts +0 -0
  1682. /package/{types → dist/types}/components/Personalization/createFetchDataHandler.d.ts +0 -0
  1683. /package/{types → dist/types}/components/Personalization/createGetPageLocation.d.ts +0 -0
  1684. /package/{types → dist/types}/components/Personalization/createHandleConsentFlicker.d.ts +0 -0
  1685. /package/{types → dist/types}/components/Personalization/createInteractionStorage.d.ts +0 -0
  1686. /package/{types → dist/types}/components/Personalization/createNotificationHandler.d.ts +0 -0
  1687. /package/{types → dist/types}/components/Personalization/createOnClickHandler.d.ts +0 -0
  1688. /package/{types → dist/types}/components/Personalization/createOnDecisionHandler.d.ts +0 -0
  1689. /package/{types → dist/types}/components/Personalization/createPersonalizationDetails.d.ts +0 -0
  1690. /package/{types → dist/types}/components/Personalization/createSetTargetMigration.d.ts +0 -0
  1691. /package/{types → dist/types}/components/Personalization/createViewCacheManager.d.ts +0 -0
  1692. /package/{types → dist/types}/components/Personalization/createViewChangeHandler.d.ts +0 -0
  1693. /package/{types → dist/types}/components/Personalization/dom-actions/action.d.ts +0 -0
  1694. /package/{types → dist/types}/components/Personalization/dom-actions/addNonceToInlineStyleElements.d.ts +0 -0
  1695. /package/{types → dist/types}/components/Personalization/dom-actions/appendHtml.d.ts +0 -0
  1696. /package/{types → dist/types}/components/Personalization/dom-actions/clicks/collectClicks.d.ts +0 -0
  1697. /package/{types → dist/types}/components/Personalization/dom-actions/clicks/collectInteractions.d.ts +0 -0
  1698. /package/{types → dist/types}/components/Personalization/dom-actions/collectInteractions.d.ts +0 -0
  1699. /package/{types → dist/types}/components/Personalization/dom-actions/createPreprocess.d.ts +0 -0
  1700. /package/{types → dist/types}/components/Personalization/dom-actions/createRedirect.d.ts +0 -0
  1701. /package/{types → dist/types}/components/Personalization/dom-actions/dom/createFragment.d.ts +0 -0
  1702. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getAttribute.d.ts +0 -0
  1703. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getChildNodes.d.ts +0 -0
  1704. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getChildren.d.ts +0 -0
  1705. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getElementById.d.ts +0 -0
  1706. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getFirstChild.d.ts +0 -0
  1707. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getNextSibling.d.ts +0 -0
  1708. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getNonce.d.ts +0 -0
  1709. /package/{types → dist/types}/components/Personalization/dom-actions/dom/getParent.d.ts +0 -0
  1710. /package/{types → dist/types}/components/Personalization/dom-actions/dom/helperForEq.d.ts +0 -0
  1711. /package/{types → dist/types}/components/Personalization/dom-actions/dom/index.d.ts +0 -0
  1712. /package/{types → dist/types}/components/Personalization/dom-actions/dom/insertAfter.d.ts +0 -0
  1713. /package/{types → dist/types}/components/Personalization/dom-actions/dom/insertBefore.d.ts +0 -0
  1714. /package/{types → dist/types}/components/Personalization/dom-actions/dom/isDomElement.d.ts +0 -0
  1715. /package/{types → dist/types}/components/Personalization/dom-actions/dom/matchesSelectorWithEq.d.ts +0 -0
  1716. /package/{types → dist/types}/components/Personalization/dom-actions/dom/removeAttribute.d.ts +0 -0
  1717. /package/{types → dist/types}/components/Personalization/dom-actions/dom/selectNodesWithEq.d.ts +0 -0
  1718. /package/{types → dist/types}/components/Personalization/dom-actions/dom/setAttribute.d.ts +0 -0
  1719. /package/{types → dist/types}/components/Personalization/dom-actions/dom/setStyle.d.ts +0 -0
  1720. /package/{types → dist/types}/components/Personalization/dom-actions/dom/util.d.ts +0 -0
  1721. /package/{types → dist/types}/components/Personalization/dom-actions/images.d.ts +0 -0
  1722. /package/{types → dist/types}/components/Personalization/dom-actions/index.d.ts +0 -0
  1723. /package/{types → dist/types}/components/Personalization/dom-actions/initDomActionsModules.d.ts +0 -0
  1724. /package/{types → dist/types}/components/Personalization/dom-actions/insertHtmlAfter.d.ts +0 -0
  1725. /package/{types → dist/types}/components/Personalization/dom-actions/insertHtmlBefore.d.ts +0 -0
  1726. /package/{types → dist/types}/components/Personalization/dom-actions/move.d.ts +0 -0
  1727. /package/{types → dist/types}/components/Personalization/dom-actions/prependHtml.d.ts +0 -0
  1728. /package/{types → dist/types}/components/Personalization/dom-actions/rearrangeChildren.d.ts +0 -0
  1729. /package/{types → dist/types}/components/Personalization/dom-actions/remapCustomCodeOffers.d.ts +0 -0
  1730. /package/{types → dist/types}/components/Personalization/dom-actions/remapHeadOffers.d.ts +0 -0
  1731. /package/{types → dist/types}/components/Personalization/dom-actions/replaceHtml.d.ts +0 -0
  1732. /package/{types → dist/types}/components/Personalization/dom-actions/resize.d.ts +0 -0
  1733. /package/{types → dist/types}/components/Personalization/dom-actions/scripts.d.ts +0 -0
  1734. /package/{types → dist/types}/components/Personalization/dom-actions/setAttributes.d.ts +0 -0
  1735. /package/{types → dist/types}/components/Personalization/dom-actions/setHtml.d.ts +0 -0
  1736. /package/{types → dist/types}/components/Personalization/dom-actions/setStyles.d.ts +0 -0
  1737. /package/{types → dist/types}/components/Personalization/dom-actions/setText.d.ts +0 -0
  1738. /package/{types → dist/types}/components/Personalization/dom-actions/swapImage.d.ts +0 -0
  1739. /package/{types → dist/types}/components/Personalization/flicker/index.d.ts +0 -0
  1740. /package/{types → dist/types}/components/Personalization/handlers/createDecorateProposition.d.ts +0 -0
  1741. /package/{types → dist/types}/components/Personalization/handlers/createProcessDomAction.d.ts +0 -0
  1742. /package/{types → dist/types}/components/Personalization/handlers/createProcessHtmlContent.d.ts +0 -0
  1743. /package/{types → dist/types}/components/Personalization/handlers/createProcessInAppMessage.d.ts +0 -0
  1744. /package/{types → dist/types}/components/Personalization/handlers/createProcessPropositions.d.ts +0 -0
  1745. /package/{types → dist/types}/components/Personalization/handlers/createProcessRedirect.d.ts +0 -0
  1746. /package/{types → dist/types}/components/Personalization/handlers/createRenderStatusHandler.d.ts +0 -0
  1747. /package/{types → dist/types}/components/Personalization/handlers/injectCreateProposition.d.ts +0 -0
  1748. /package/{types → dist/types}/components/Personalization/handlers/processDefaultContent.d.ts +0 -0
  1749. /package/{types → dist/types}/components/Personalization/in-app-message-actions/actions/displayIframeContent.d.ts +0 -0
  1750. /package/{types → dist/types}/components/Personalization/in-app-message-actions/initInAppMessageActionsModules.d.ts +0 -0
  1751. /package/{types → dist/types}/components/Personalization/in-app-message-actions/utils.d.ts +0 -0
  1752. /package/{types → dist/types}/components/Personalization/index.d.ts +0 -0
  1753. /package/{types → dist/types}/components/Personalization/utils/addRenderAttemptedToDecisions.d.ts +0 -0
  1754. /package/{types → dist/types}/components/Personalization/utils/createAsyncArray.d.ts +0 -0
  1755. /package/{types → dist/types}/components/Personalization/utils/isAuthoringModeEnabled.d.ts +0 -0
  1756. /package/{types → dist/types}/components/Personalization/utils/metaUtils.d.ts +0 -0
  1757. /package/{types → dist/types}/components/Personalization/utils/surfaceUtils.d.ts +0 -0
  1758. /package/{types → dist/types}/components/Personalization/validateApplyPropositionsOptions.d.ts +0 -0
  1759. /package/{types → dist/types}/components/RulesEngine/consequenceAdapters/inAppMessageConsequenceAdapter.d.ts +0 -0
  1760. /package/{types → dist/types}/components/RulesEngine/consequenceAdapters/schemaTypeConsequenceAdapter.d.ts +0 -0
  1761. /package/{types → dist/types}/components/RulesEngine/createConsequenceAdapter.d.ts +0 -0
  1762. /package/{types → dist/types}/components/RulesEngine/createContextProvider.d.ts +0 -0
  1763. /package/{types → dist/types}/components/RulesEngine/createDecisionProvider.d.ts +0 -0
  1764. /package/{types → dist/types}/components/RulesEngine/createEvaluableRulesetPayload.d.ts +0 -0
  1765. /package/{types → dist/types}/components/RulesEngine/createEvaluateRulesetsCommand.d.ts +0 -0
  1766. /package/{types → dist/types}/components/RulesEngine/createOnResponseHandler.d.ts +0 -0
  1767. /package/{types → dist/types}/components/RulesEngine/createSubscribeRulesetItems.d.ts +0 -0
  1768. /package/{types → dist/types}/components/RulesEngine/index.d.ts +0 -0
  1769. /package/{types → dist/types}/components/RulesEngine/utils/createEventPruner.d.ts +0 -0
  1770. /package/{types → dist/types}/components/RulesEngine/utils/generateEventHash.d.ts +0 -0
  1771. /package/{types → dist/types}/components/RulesEngine/utils/getExpirationDate.d.ts +0 -0
  1772. /package/{types → dist/types}/components/RulesEngine/utils/getPropositionData.d.ts +0 -0
  1773. /package/{types → dist/types}/components/RulesEngine/utils/hasExperienceData.d.ts +0 -0
  1774. /package/{types → dist/types}/components/RulesEngine/utils/index.d.ts +0 -0
  1775. /package/{types → dist/types}/components/StreamingMedia/configValidators.d.ts +0 -0
  1776. /package/{types → dist/types}/components/StreamingMedia/constants/eventTypes.d.ts +0 -0
  1777. /package/{types → dist/types}/components/StreamingMedia/constants/playbackState.d.ts +0 -0
  1778. /package/{types → dist/types}/components/StreamingMedia/createMediaEventManager.d.ts +0 -0
  1779. /package/{types → dist/types}/components/StreamingMedia/createMediaRequest.d.ts +0 -0
  1780. /package/{types → dist/types}/components/StreamingMedia/createMediaResponseHandler.d.ts +0 -0
  1781. /package/{types → dist/types}/components/StreamingMedia/createMediaSessionCacheManager.d.ts +0 -0
  1782. /package/{types → dist/types}/components/StreamingMedia/createStreamingMediaComponent.d.ts +0 -0
  1783. /package/{types → dist/types}/components/StreamingMedia/createTrackMediaEvent.d.ts +0 -0
  1784. /package/{types → dist/types}/components/StreamingMedia/createTrackMediaSession.d.ts +0 -0
  1785. /package/{types → dist/types}/components/StreamingMedia/index.d.ts +0 -0
  1786. /package/{types → dist/types}/components/StreamingMedia/validateMediaEventOptions.d.ts +0 -0
  1787. /package/{types → dist/types}/components/StreamingMedia/validateMediaSessionOptions.d.ts +0 -0
  1788. /package/{types → dist/types}/constants/apiVersion.d.ts +0 -0
  1789. /package/{types → dist/types}/constants/browser.d.ts +0 -0
  1790. /package/{types → dist/types}/constants/consentPurpose.d.ts +0 -0
  1791. /package/{types → dist/types}/constants/consentStatus.d.ts +0 -0
  1792. /package/{types → dist/types}/constants/contentType.d.ts +0 -0
  1793. /package/{types → dist/types}/constants/cookieNameKey.d.ts +0 -0
  1794. /package/{types → dist/types}/constants/cookieNamePrefix.d.ts +0 -0
  1795. /package/{types → dist/types}/constants/coreCommands.d.ts +0 -0
  1796. /package/{types → dist/types}/constants/coreNamespace.d.ts +0 -0
  1797. /package/{types → dist/types}/constants/debugQueryParam.d.ts +0 -0
  1798. /package/{types → dist/types}/constants/decisionProvider.d.ts +0 -0
  1799. /package/{types → dist/types}/constants/domain.d.ts +0 -0
  1800. /package/{types → dist/types}/constants/ecidNamespace.d.ts +0 -0
  1801. /package/{types → dist/types}/constants/edgeBasePath.d.ts +0 -0
  1802. /package/{types → dist/types}/constants/elementAttribute.d.ts +0 -0
  1803. /package/{types → dist/types}/constants/eventType.d.ts +0 -0
  1804. /package/{types → dist/types}/constants/highEntropyUserAgentClientHints.d.ts +0 -0
  1805. /package/{types → dist/types}/constants/httpHeaderNames.d.ts +0 -0
  1806. /package/{types → dist/types}/constants/httpStatusCode.d.ts +0 -0
  1807. /package/{types → dist/types}/constants/identityMapAuthenticatedState.d.ts +0 -0
  1808. /package/{types → dist/types}/constants/legacyCookies.d.ts +0 -0
  1809. /package/{types → dist/types}/constants/libraryName.d.ts +0 -0
  1810. /package/{types → dist/types}/constants/namespace.d.ts +0 -0
  1811. /package/{types → dist/types}/constants/pageWideScope.d.ts +0 -0
  1812. /package/{types → dist/types}/constants/propositionEventType.d.ts +0 -0
  1813. /package/{types → dist/types}/constants/propositionInteractionType.d.ts +0 -0
  1814. /package/{types → dist/types}/constants/queryStringIdentityParam.d.ts +0 -0
  1815. /package/{types → dist/types}/constants/sessionDataKeys.d.ts +0 -0
  1816. /package/{types → dist/types}/constants/shadowSeparator.d.ts +0 -0
  1817. /package/{types → dist/types}/constants/tagName.d.ts +0 -0
  1818. /package/{types → dist/types}/core/buildAndValidateConfig.d.ts +0 -0
  1819. /package/{types → dist/types}/core/componentCreators.d.ts +0 -0
  1820. /package/{types → dist/types}/core/config/createConfig.d.ts +0 -0
  1821. /package/{types → dist/types}/core/config/createCoreConfigs.d.ts +0 -0
  1822. /package/{types → dist/types}/core/consent/createConsent.d.ts +0 -0
  1823. /package/{types → dist/types}/core/consent/createConsentStateMachine.d.ts +0 -0
  1824. /package/{types → dist/types}/core/createComponentRegistry.d.ts +0 -0
  1825. /package/{types → dist/types}/core/createCookieTransfer.d.ts +0 -0
  1826. /package/{types → dist/types}/core/createEvent.d.ts +0 -0
  1827. /package/{types → dist/types}/core/createEventManager.d.ts +0 -0
  1828. /package/{types → dist/types}/core/createInstanceFunction.d.ts +0 -0
  1829. /package/{types → dist/types}/core/createLifecycle.d.ts +0 -0
  1830. /package/{types → dist/types}/core/createLogController.d.ts +0 -0
  1831. /package/{types → dist/types}/core/createLogger.d.ts +0 -0
  1832. /package/{types → dist/types}/core/edgeNetwork/handleRequestFailure.d.ts +0 -0
  1833. /package/{types → dist/types}/core/edgeNetwork/injectApplyResponse.d.ts +0 -0
  1834. /package/{types → dist/types}/core/edgeNetwork/injectExtractEdgeInfo.d.ts +0 -0
  1835. /package/{types → dist/types}/core/edgeNetwork/injectGetLocationHint.d.ts +0 -0
  1836. /package/{types → dist/types}/core/edgeNetwork/injectProcessWarningsAndErrors.d.ts +0 -0
  1837. /package/{types → dist/types}/core/edgeNetwork/injectSendEdgeNetworkRequest.d.ts +0 -0
  1838. /package/{types → dist/types}/core/edgeNetwork/mergeLifecycleResponses.d.ts +0 -0
  1839. /package/{types → dist/types}/core/getMonitors.d.ts +0 -0
  1840. /package/{types → dist/types}/core/index.d.ts +0 -0
  1841. /package/{types → dist/types}/core/initializeComponents.d.ts +0 -0
  1842. /package/{types → dist/types}/core/injectCreateResponse.d.ts +0 -0
  1843. /package/{types → dist/types}/core/injectExecuteCommand.d.ts +0 -0
  1844. /package/{types → dist/types}/core/injectHandleError.d.ts +0 -0
  1845. /package/{types → dist/types}/core/injectShouldTransferCookie.d.ts +0 -0
  1846. /package/{types → dist/types}/core/network/getRequestRetryDelay.d.ts +0 -0
  1847. /package/{types → dist/types}/core/network/injectSendNetworkRequest.d.ts +0 -0
  1848. /package/{types → dist/types}/core/network/isRequestRetryable.d.ts +0 -0
  1849. /package/{types → dist/types}/core/network/requestMethods/injectSendBeaconRequest.d.ts +0 -0
  1850. /package/{types → dist/types}/core/network/requestMethods/injectSendFetchRequest.d.ts +0 -0
  1851. /package/{types → dist/types}/core/requiredComponentCreators.d.ts +0 -0
  1852. /package/{types → dist/types}/core/types.d.ts +0 -0
  1853. /package/{types → dist/types}/core/validateCommandOptions.d.ts +0 -0
  1854. /package/{types → dist/types}/index.d.ts +0 -0
  1855. /package/{types → dist/types}/standalone.d.ts +0 -0
  1856. /package/{types → dist/types}/utils/assignConcatArrayValues.d.ts +0 -0
  1857. /package/{types → dist/types}/utils/clone.d.ts +0 -0
  1858. /package/{types → dist/types}/utils/cookieJar.d.ts +0 -0
  1859. /package/{types → dist/types}/utils/createCallbackAggregator.d.ts +0 -0
  1860. /package/{types → dist/types}/utils/createCollect.d.ts +0 -0
  1861. /package/{types/components/EventMerge → dist/types/utils}/createEventMergeId.d.ts +0 -0
  1862. /package/{types → dist/types}/utils/createLoggingCookieJar.d.ts +0 -0
  1863. /package/{types → dist/types}/utils/createMerger.d.ts +0 -0
  1864. /package/{types → dist/types}/utils/createSubscription.d.ts +0 -0
  1865. /package/{types → dist/types}/utils/createTaskQueue.d.ts +0 -0
  1866. /package/{types → dist/types}/utils/decodeUriComponentSafely.d.ts +0 -0
  1867. /package/{types → dist/types}/utils/deduplicateArray.d.ts +0 -0
  1868. /package/{types → dist/types}/utils/deepAssign.d.ts +0 -0
  1869. /package/{types → dist/types}/utils/defer.d.ts +0 -0
  1870. /package/{types → dist/types}/utils/dom/appendNode.d.ts +0 -0
  1871. /package/{types → dist/types}/utils/dom/awaitSelector.d.ts +0 -0
  1872. /package/{types → dist/types}/utils/dom/createNode.d.ts +0 -0
  1873. /package/{types → dist/types}/utils/dom/index.d.ts +0 -0
  1874. /package/{types → dist/types}/utils/dom/isShadowSelector.d.ts +0 -0
  1875. /package/{types → dist/types}/utils/dom/matchesSelector.d.ts +0 -0
  1876. /package/{types → dist/types}/utils/dom/querySelectorAll.d.ts +0 -0
  1877. /package/{types → dist/types}/utils/dom/removeNode.d.ts +0 -0
  1878. /package/{types → dist/types}/utils/dom/selectNodes.d.ts +0 -0
  1879. /package/{types → dist/types}/utils/dom/selectNodesWithShadow.d.ts +0 -0
  1880. /package/{types → dist/types}/utils/event.d.ts +0 -0
  1881. /package/{types → dist/types}/utils/filterObject.d.ts +0 -0
  1882. /package/{types → dist/types}/utils/fireImage.d.ts +0 -0
  1883. /package/{types → dist/types}/utils/flattenArray.d.ts +0 -0
  1884. /package/{types → dist/types}/utils/flattenObject.d.ts +0 -0
  1885. /package/{types → dist/types}/utils/fnv1a32Hex.d.ts +0 -0
  1886. /package/{types → dist/types}/utils/getApexDomain.d.ts +0 -0
  1887. /package/{types → dist/types}/utils/getLastArrayItems.d.ts +0 -0
  1888. /package/{types → dist/types}/utils/getNamespacedCookieName.d.ts +0 -0
  1889. /package/{types → dist/types}/utils/groupBy.d.ts +0 -0
  1890. /package/{types → dist/types}/utils/injectAreThirdPartyCookiesSupportedByDefault.d.ts +0 -0
  1891. /package/{types → dist/types}/utils/injectDoesIdentityCookieExist.d.ts +0 -0
  1892. /package/{types → dist/types}/utils/injectFireReferrerHideableImage.d.ts +0 -0
  1893. /package/{types → dist/types}/utils/injectGetBrowser.d.ts +0 -0
  1894. /package/{types → dist/types}/utils/injectStorage.d.ts +0 -0
  1895. /package/{types → dist/types}/utils/intersection.d.ts +0 -0
  1896. /package/{types → dist/types}/utils/isBlankString.d.ts +0 -0
  1897. /package/{types → dist/types}/utils/isBoolean.d.ts +0 -0
  1898. /package/{types → dist/types}/utils/isEmptyObject.d.ts +0 -0
  1899. /package/{types → dist/types}/utils/isFunction.d.ts +0 -0
  1900. /package/{types → dist/types}/utils/isInteger.d.ts +0 -0
  1901. /package/{types → dist/types}/utils/isNamespacedCookieName.d.ts +0 -0
  1902. /package/{types → dist/types}/utils/isNil.d.ts +0 -0
  1903. /package/{types → dist/types}/utils/isNonEmptyArray.d.ts +0 -0
  1904. /package/{types → dist/types}/utils/isNonEmptyString.d.ts +0 -0
  1905. /package/{types → dist/types}/utils/isNumber.d.ts +0 -0
  1906. /package/{types → dist/types}/utils/isObject.d.ts +0 -0
  1907. /package/{types → dist/types}/utils/isString.d.ts +0 -0
  1908. /package/{types → dist/types}/utils/isUnique.d.ts +0 -0
  1909. /package/{types → dist/types}/utils/isValidRegExp.d.ts +0 -0
  1910. /package/{types → dist/types}/utils/lazy.d.ts +0 -0
  1911. /package/{types → dist/types}/utils/networkErrors.d.ts +0 -0
  1912. /package/{types → dist/types}/utils/noop.d.ts +0 -0
  1913. /package/{types → dist/types}/utils/parseUrl.d.ts +0 -0
  1914. /package/{types → dist/types}/utils/prepareConfigOverridesForEdge.d.ts +0 -0
  1915. /package/{types → dist/types}/utils/querystring.d.ts +0 -0
  1916. /package/{types → dist/types}/utils/request/createAddIdentity.d.ts +0 -0
  1917. /package/{types → dist/types}/utils/request/createDataCollectionRequest.d.ts +0 -0
  1918. /package/{types → dist/types}/utils/request/createDataCollectionRequestPayload.d.ts +0 -0
  1919. /package/{types → dist/types}/utils/request/createGetAssuranceValidationTokenParams.d.ts +0 -0
  1920. /package/{types → dist/types}/utils/request/createHasIdentity.d.ts +0 -0
  1921. /package/{types → dist/types}/utils/request/createRequest.d.ts +0 -0
  1922. /package/{types → dist/types}/utils/request/createRequestParams.d.ts +0 -0
  1923. /package/{types → dist/types}/utils/request/createRequestPayload.d.ts +0 -0
  1924. /package/{types → dist/types}/utils/request/index.d.ts +0 -0
  1925. /package/{types → dist/types}/utils/sanitizeOrgIdForCookieName.d.ts +0 -0
  1926. /package/{types → dist/types}/utils/sortObjectKeysRecursively.d.ts +0 -0
  1927. /package/{types → dist/types}/utils/stackError.d.ts +0 -0
  1928. /package/{types → dist/types}/utils/stringToBoolean.d.ts +0 -0
  1929. /package/{types → dist/types}/utils/toArray.d.ts +0 -0
  1930. /package/{types → dist/types}/utils/toError.d.ts +0 -0
  1931. /package/{types → dist/types}/utils/toISOStringLocal.d.ts +0 -0
  1932. /package/{types → dist/types}/utils/toInteger.d.ts +0 -0
  1933. /package/{types → dist/types}/utils/updateErrorMessage.d.ts +0 -0
  1934. /package/{types → dist/types}/utils/uuid.d.ts +0 -0
  1935. /package/{types → dist/types}/utils/validateConfigOverride.d.ts +0 -0
  1936. /package/{types → dist/types}/utils/validateIdentityMap.d.ts +0 -0
  1937. /package/{types → dist/types}/utils/validation/booleanValidator.d.ts +0 -0
  1938. /package/{types → dist/types}/utils/validation/callbackValidator.d.ts +0 -0
  1939. /package/{types → dist/types}/utils/validation/createAnyOfValidator.d.ts +0 -0
  1940. /package/{types → dist/types}/utils/validation/createArrayOfValidator.d.ts +0 -0
  1941. /package/{types → dist/types}/utils/validation/createDefaultValidator.d.ts +0 -0
  1942. /package/{types → dist/types}/utils/validation/createDeprecatedValidator.d.ts +0 -0
  1943. /package/{types → dist/types}/utils/validation/createLiteralValidator.d.ts +0 -0
  1944. /package/{types → dist/types}/utils/validation/createMapOfValuesValidator.d.ts +0 -0
  1945. /package/{types → dist/types}/utils/validation/createMaximumValidator.d.ts +0 -0
  1946. /package/{types → dist/types}/utils/validation/createMinimumValidator.d.ts +0 -0
  1947. /package/{types → dist/types}/utils/validation/createNoUnknownFieldsValidator.d.ts +0 -0
  1948. /package/{types → dist/types}/utils/validation/createNonEmptyValidator.d.ts +0 -0
  1949. /package/{types → dist/types}/utils/validation/createObjectOfValidator.d.ts +0 -0
  1950. /package/{types → dist/types}/utils/validation/createRenamedValidator.d.ts +0 -0
  1951. /package/{types → dist/types}/utils/validation/createUniqueItemsValidator.d.ts +0 -0
  1952. /package/{types → dist/types}/utils/validation/createUniqueValidator.d.ts +0 -0
  1953. /package/{types → dist/types}/utils/validation/domainValidator.d.ts +0 -0
  1954. /package/{types → dist/types}/utils/validation/index.d.ts +0 -0
  1955. /package/{types → dist/types}/utils/validation/integerValidator.d.ts +0 -0
  1956. /package/{types → dist/types}/utils/validation/matchesRegexpValidator.d.ts +0 -0
  1957. /package/{types → dist/types}/utils/validation/numberValidator.d.ts +0 -0
  1958. /package/{types → dist/types}/utils/validation/regexpValidator.d.ts +0 -0
  1959. /package/{types → dist/types}/utils/validation/requiredValidator.d.ts +0 -0
  1960. /package/{types → dist/types}/utils/validation/stringValidator.d.ts +0 -0
  1961. /package/{types → dist/types}/utils/validation/utils.d.ts +0 -0
package/dist/utils.js ADDED
@@ -0,0 +1,3206 @@
1
+ /*
2
+ Copyright 2019 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+
13
+ /**
14
+ * Returns true when the value is null.
15
+ * @param {*} value
16
+ * @returns {boolean}
17
+ */
18
+ var isNil = (value) => value == null;
19
+
20
+ /*
21
+ Copyright 2019 Adobe. All rights reserved.
22
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
23
+ you may not use this file except in compliance with the License. You may obtain a copy
24
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
25
+
26
+ Unless required by applicable law or agreed to in writing, software distributed under
27
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
28
+ OF ANY KIND, either express or implied. See the License for the specific language
29
+ governing permissions and limitations under the License.
30
+ */
31
+
32
+
33
+ /**
34
+ * Returns whether the value is an object.
35
+ * @param {*} value
36
+ * @returns {boolean}
37
+ */
38
+ var isObject = (value) =>
39
+ !isNil(value) && !Array.isArray(value) && typeof value === "object";
40
+
41
+ /*
42
+ Copyright 2023 Adobe. All rights reserved.
43
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
44
+ you may not use this file except in compliance with the License. You may obtain a copy
45
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
46
+
47
+ Unless required by applicable law or agreed to in writing, software distributed under
48
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
49
+ OF ANY KIND, either express or implied. See the License for the specific language
50
+ governing permissions and limitations under the License.
51
+ */
52
+
53
+ var assignConcatArrayValues = (...values) => {
54
+ if (values.length < 2) {
55
+ // if the number of args is 0 or 1, just use the default behavior from Object.assign
56
+ return Object.assign(...values);
57
+ }
58
+ return values.reduce((accumulator, currentValue) => {
59
+ if (isObject(currentValue)) {
60
+ Object.keys(currentValue).forEach((key) => {
61
+ if (Array.isArray(currentValue[key])) {
62
+ if (Array.isArray(accumulator[key])) {
63
+ accumulator[key].push(...currentValue[key]);
64
+ } else {
65
+ // clone the array so the original isn't modified.
66
+ accumulator[key] = [...currentValue[key]];
67
+ }
68
+ } else {
69
+ accumulator[key] = currentValue[key];
70
+ }
71
+ });
72
+ }
73
+ return accumulator;
74
+ }); // no default value to pass into reduce because we want to skip the first value
75
+ };
76
+
77
+ /*
78
+ Copyright 2019 Adobe. All rights reserved.
79
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
80
+ you may not use this file except in compliance with the License. You may obtain a copy
81
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
82
+
83
+ Unless required by applicable law or agreed to in writing, software distributed under
84
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
85
+ OF ANY KIND, either express or implied. See the License for the specific language
86
+ governing permissions and limitations under the License.
87
+ */
88
+
89
+ /**
90
+ * Clones a value by serializing then deserializing the value.
91
+ * @param {*} value
92
+ * @returns {any}
93
+ */
94
+ var clone = (value) => JSON.parse(JSON.stringify(value));
95
+
96
+ /*! js-cookie v3.0.5 | MIT */
97
+ /* eslint-disable no-var */
98
+ function assign (target) {
99
+ for (var i = 1; i < arguments.length; i++) {
100
+ var source = arguments[i];
101
+ for (var key in source) {
102
+ target[key] = source[key];
103
+ }
104
+ }
105
+ return target
106
+ }
107
+ /* eslint-enable no-var */
108
+
109
+ /* eslint-disable no-var */
110
+ var defaultConverter = {
111
+ read: function (value) {
112
+ if (value[0] === '"') {
113
+ value = value.slice(1, -1);
114
+ }
115
+ return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
116
+ },
117
+ write: function (value) {
118
+ return encodeURIComponent(value).replace(
119
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
120
+ decodeURIComponent
121
+ )
122
+ }
123
+ };
124
+ /* eslint-enable no-var */
125
+
126
+ /* eslint-disable no-var */
127
+
128
+ function init (converter, defaultAttributes) {
129
+ function set (name, value, attributes) {
130
+ if (typeof document === 'undefined') {
131
+ return
132
+ }
133
+
134
+ attributes = assign({}, defaultAttributes, attributes);
135
+
136
+ if (typeof attributes.expires === 'number') {
137
+ attributes.expires = new Date(Date.now() + attributes.expires * 864e5);
138
+ }
139
+ if (attributes.expires) {
140
+ attributes.expires = attributes.expires.toUTCString();
141
+ }
142
+
143
+ name = encodeURIComponent(name)
144
+ .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
145
+ .replace(/[()]/g, escape);
146
+
147
+ var stringifiedAttributes = '';
148
+ for (var attributeName in attributes) {
149
+ if (!attributes[attributeName]) {
150
+ continue
151
+ }
152
+
153
+ stringifiedAttributes += '; ' + attributeName;
154
+
155
+ if (attributes[attributeName] === true) {
156
+ continue
157
+ }
158
+
159
+ // Considers RFC 6265 section 5.2:
160
+ // ...
161
+ // 3. If the remaining unparsed-attributes contains a %x3B (";")
162
+ // character:
163
+ // Consume the characters of the unparsed-attributes up to,
164
+ // not including, the first %x3B (";") character.
165
+ // ...
166
+ stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];
167
+ }
168
+
169
+ return (document.cookie =
170
+ name + '=' + converter.write(value, name) + stringifiedAttributes)
171
+ }
172
+
173
+ function get (name) {
174
+ if (typeof document === 'undefined' || (arguments.length && !name)) {
175
+ return
176
+ }
177
+
178
+ // To prevent the for loop in the first place assign an empty array
179
+ // in case there are no cookies at all.
180
+ var cookies = document.cookie ? document.cookie.split('; ') : [];
181
+ var jar = {};
182
+ for (var i = 0; i < cookies.length; i++) {
183
+ var parts = cookies[i].split('=');
184
+ var value = parts.slice(1).join('=');
185
+
186
+ try {
187
+ var found = decodeURIComponent(parts[0]);
188
+ jar[found] = converter.read(value, found);
189
+
190
+ if (name === found) {
191
+ break
192
+ }
193
+ } catch (e) {}
194
+ }
195
+
196
+ return name ? jar[name] : jar
197
+ }
198
+
199
+ return Object.create(
200
+ {
201
+ set,
202
+ get,
203
+ remove: function (name, attributes) {
204
+ set(
205
+ name,
206
+ '',
207
+ assign({}, attributes, {
208
+ expires: -1
209
+ })
210
+ );
211
+ },
212
+ withAttributes: function (attributes) {
213
+ return init(this.converter, assign({}, this.attributes, attributes))
214
+ },
215
+ withConverter: function (converter) {
216
+ return init(assign({}, this.converter, converter), this.attributes)
217
+ }
218
+ },
219
+ {
220
+ attributes: { value: Object.freeze(defaultAttributes) },
221
+ converter: { value: Object.freeze(converter) }
222
+ }
223
+ )
224
+ }
225
+
226
+ var api = init(defaultConverter, { path: '/' });
227
+
228
+ /*
229
+ Copyright 2019 Adobe. All rights reserved.
230
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
231
+ you may not use this file except in compliance with the License. You may obtain a copy
232
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
233
+
234
+ Unless required by applicable law or agreed to in writing, software distributed under
235
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
236
+ OF ANY KIND, either express or implied. See the License for the specific language
237
+ governing permissions and limitations under the License.
238
+ */
239
+
240
+
241
+
242
+ var cookieJar = {
243
+ get: api.get.bind(api),
244
+ set: api.set.bind(api),
245
+ remove: api.remove.bind(api),
246
+ withConverter: api.withConverter.bind(api)
247
+ };
248
+
249
+ /*
250
+ Copyright 2019 Adobe. All rights reserved.
251
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
252
+ you may not use this file except in compliance with the License. You may obtain a copy
253
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
254
+
255
+ Unless required by applicable law or agreed to in writing, software distributed under
256
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
257
+ OF ANY KIND, either express or implied. See the License for the specific language
258
+ governing permissions and limitations under the License.
259
+ */
260
+
261
+
262
+ const deepAssignObject = (target, source) => {
263
+ Object.keys(source).forEach((key) => {
264
+ if (isObject(target[key]) && isObject(source[key])) {
265
+ deepAssignObject(target[key], source[key]);
266
+ return;
267
+ }
268
+
269
+ target[key] = source[key];
270
+ });
271
+ };
272
+
273
+ /**
274
+ * Recursively copy the values of all enumerable own properties from a source item to a target item if the both items are objects
275
+ * @param {Object} target - a target object
276
+ * @param {...Object} source - an array of source objects
277
+ * @example
278
+ * deepAssign({ a: 'a', b: 'b' }, { b: 'B', c: 'c' });
279
+ * // { a: 'a', b: 'B', c: 'c' }
280
+ */
281
+ var deepAssign = (target, ...sources) => {
282
+ if (isNil(target)) {
283
+ throw new TypeError('deepAssign "target" cannot be null or undefined');
284
+ }
285
+
286
+ const result = Object(target);
287
+
288
+ sources.forEach((source) => deepAssignObject(result, Object(source)));
289
+
290
+ return result;
291
+ };
292
+
293
+ /*
294
+ Copyright 2019 Adobe. All rights reserved.
295
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
296
+ you may not use this file except in compliance with the License. You may obtain a copy
297
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
298
+
299
+ Unless required by applicable law or agreed to in writing, software distributed under
300
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
301
+ OF ANY KIND, either express or implied. See the License for the specific language
302
+ governing permissions and limitations under the License.
303
+ */
304
+
305
+
306
+ /**
307
+ * Creates a function that, when passed an object of updates, will merge
308
+ * the updates onto the current value of a payload property.
309
+ * @param {Object} content The base object to modify
310
+ * @param {String } key The property to merge updates into. This
311
+ * can be a dot-notation property path.
312
+ * @returns {Function}
313
+ */
314
+ var createMerger = (content, key) => (updates) => {
315
+ const propertyPath = key.split(".");
316
+ const hostObjectForUpdates = propertyPath.reduce((obj, propertyName) => {
317
+ obj[propertyName] = obj[propertyName] || {};
318
+ return obj[propertyName];
319
+ }, content);
320
+ deepAssign(hostObjectForUpdates, updates);
321
+ };
322
+
323
+ /*
324
+ Copyright 2020 Adobe. All rights reserved.
325
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
326
+ you may not use this file except in compliance with the License. You may obtain a copy
327
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
328
+
329
+ Unless required by applicable law or agreed to in writing, software distributed under
330
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
331
+ OF ANY KIND, either express or implied. See the License for the specific language
332
+ governing permissions and limitations under the License.
333
+ */
334
+
335
+ /**
336
+ * Allows callbacks to be registered and then later called. When the
337
+ * callbacks are called, their responses are combined into a single promise.
338
+ */
339
+ var createCallbackAggregator = () => {
340
+ const callbacks = [];
341
+ return {
342
+ add(callback) {
343
+ callbacks.push(callback);
344
+ },
345
+ call(...args) {
346
+ // While this utility doesn't necessarily need to be doing the
347
+ // Promise.all, it's currently useful everywhere this is used and
348
+ // reduces repetitive code. We can factor it out later if we want
349
+ // to make this utility more "pure".
350
+ return Promise.all(callbacks.map((callback) => callback(...args)));
351
+ },
352
+ };
353
+ };
354
+
355
+ const byteToHex = [];
356
+ for (let i = 0; i < 256; ++i) {
357
+ byteToHex.push((i + 0x100).toString(16).slice(1));
358
+ }
359
+ function unsafeStringify(arr, offset = 0) {
360
+ return (byteToHex[arr[offset + 0]] +
361
+ byteToHex[arr[offset + 1]] +
362
+ byteToHex[arr[offset + 2]] +
363
+ byteToHex[arr[offset + 3]] +
364
+ '-' +
365
+ byteToHex[arr[offset + 4]] +
366
+ byteToHex[arr[offset + 5]] +
367
+ '-' +
368
+ byteToHex[arr[offset + 6]] +
369
+ byteToHex[arr[offset + 7]] +
370
+ '-' +
371
+ byteToHex[arr[offset + 8]] +
372
+ byteToHex[arr[offset + 9]] +
373
+ '-' +
374
+ byteToHex[arr[offset + 10]] +
375
+ byteToHex[arr[offset + 11]] +
376
+ byteToHex[arr[offset + 12]] +
377
+ byteToHex[arr[offset + 13]] +
378
+ byteToHex[arr[offset + 14]] +
379
+ byteToHex[arr[offset + 15]]).toLowerCase();
380
+ }
381
+
382
+ let getRandomValues;
383
+ const rnds8 = new Uint8Array(16);
384
+ function rng() {
385
+ if (!getRandomValues) {
386
+ if (typeof crypto === 'undefined' || !crypto.getRandomValues) {
387
+ throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
388
+ }
389
+ getRandomValues = crypto.getRandomValues.bind(crypto);
390
+ }
391
+ return getRandomValues(rnds8);
392
+ }
393
+
394
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
395
+ var native = { randomUUID };
396
+
397
+ function v4(options, buf, offset) {
398
+ if (native.randomUUID && !buf && !options) {
399
+ return native.randomUUID();
400
+ }
401
+ options = options || {};
402
+ const rnds = options.random ?? options.rng?.() ?? rng();
403
+ if (rnds.length < 16) {
404
+ throw new Error('Random bytes length must be >= 16');
405
+ }
406
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
407
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
408
+ if (buf) {
409
+ offset = offset || 0;
410
+ if (offset < 0 || offset + 16 > buf.length) {
411
+ throw new RangeError(`UUID byte range ${offset}:${offset + 15} is out of buffer bounds`);
412
+ }
413
+ for (let i = 0; i < 16; ++i) {
414
+ buf[offset + i] = rnds[i];
415
+ }
416
+ return buf;
417
+ }
418
+ return unsafeStringify(rnds);
419
+ }
420
+
421
+ /*
422
+ Copyright 20219 Adobe. All rights reserved.
423
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
424
+ you may not use this file except in compliance with the License. You may obtain a copy
425
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
426
+
427
+ Unless required by applicable law or agreed to in writing, software distributed under
428
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
429
+ OF ANY KIND, either express or implied. See the License for the specific language
430
+ governing permissions and limitations under the License.
431
+ */
432
+
433
+
434
+ var createEventMergeId = () => {
435
+ return {
436
+ eventMergeId: v4(),
437
+ };
438
+ };
439
+
440
+ /*
441
+ Copyright 2022 Adobe. All rights reserved.
442
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
443
+ you may not use this file except in compliance with the License. You may obtain a copy
444
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
445
+
446
+ Unless required by applicable law or agreed to in writing, software distributed under
447
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
448
+ OF ANY KIND, either express or implied. See the License for the specific language
449
+ governing permissions and limitations under the License.
450
+ */
451
+
452
+ var createLoggingCookieJar = ({ logger, cookieJar }) => {
453
+ return {
454
+ ...cookieJar,
455
+ set(key, value, options) {
456
+ logger.info("Setting cookie", { name: key, value, ...options });
457
+ cookieJar.set(key, value, options);
458
+ },
459
+ };
460
+ };
461
+
462
+ /*
463
+ Copyright 2020 Adobe. All rights reserved.
464
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
465
+ you may not use this file except in compliance with the License. You may obtain a copy
466
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
467
+
468
+ Unless required by applicable law or agreed to in writing, software distributed under
469
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
470
+ OF ANY KIND, either express or implied. See the License for the specific language
471
+ governing permissions and limitations under the License.
472
+ */
473
+
474
+ /**
475
+ * Sequences tasks.
476
+ */
477
+ var createTaskQueue = () => {
478
+ let queueLength = 0;
479
+ let lastPromiseInQueue = Promise.resolve();
480
+ return {
481
+ /**
482
+ * Add a task to the queue. If no task is currenty running,
483
+ * the task will begin immediately.
484
+ * @param {Function} task A function that will be called when
485
+ * the task should be run. If the task it asynchronous, it should
486
+ * return a promise.
487
+ * @returns {Promise} A promise that will be resolved or rejected
488
+ * with whatever value the task resolved or rejects its promise.
489
+ */
490
+ addTask(task) {
491
+ queueLength += 1;
492
+
493
+ const lastPromiseFulfilledHandler = () => {
494
+ return task().finally(() => {
495
+ queueLength -= 1;
496
+ });
497
+ };
498
+
499
+ lastPromiseInQueue = lastPromiseInQueue.then(
500
+ lastPromiseFulfilledHandler,
501
+ lastPromiseFulfilledHandler,
502
+ );
503
+ return lastPromiseInQueue;
504
+ },
505
+ /**
506
+ * How many tasks are in the queue. This includes the task
507
+ * that's currently running.
508
+ * @returns {number}
509
+ */
510
+ get length() {
511
+ return queueLength;
512
+ },
513
+ };
514
+ };
515
+
516
+ /*
517
+ Copyright 2019 Adobe. All rights reserved.
518
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
519
+ you may not use this file except in compliance with the License. You may obtain a copy
520
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
521
+
522
+ Unless required by applicable law or agreed to in writing, software distributed under
523
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
524
+ OF ANY KIND, either express or implied. See the License for the specific language
525
+ governing permissions and limitations under the License.
526
+ */
527
+
528
+ /**
529
+ * A simple utility for managing a promise's state outside of
530
+ * the promise's "executor" (the function passed into the constructor).
531
+ */
532
+ var defer = () => {
533
+ const deferred = {};
534
+
535
+ deferred.promise = new Promise((resolve, reject) => {
536
+ deferred.resolve = resolve;
537
+ deferred.reject = reject;
538
+ });
539
+
540
+ return deferred;
541
+ };
542
+
543
+ /*
544
+ Copyright 2023 Adobe. All rights reserved.
545
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
546
+ you may not use this file except in compliance with the License. You may obtain a copy
547
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
548
+
549
+ Unless required by applicable law or agreed to in writing, software distributed under
550
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
551
+ OF ANY KIND, either express or implied. See the License for the specific language
552
+ governing permissions and limitations under the License.
553
+ */
554
+ const REFERENCE_EQUALITY = (a, b) => a === b;
555
+
556
+ const findIndex = (array, item, isEqual) => {
557
+ for (let i = 0; i < array.length; i += 1) {
558
+ if (isEqual(array[i], item)) {
559
+ return i;
560
+ }
561
+ }
562
+ return -1;
563
+ };
564
+
565
+ var deduplicateArray = (array, isEqual = REFERENCE_EQUALITY) => {
566
+ return array.filter(
567
+ (item, index) => findIndex(array, item, isEqual) === index,
568
+ );
569
+ };
570
+
571
+ /*
572
+ Copyright 2019 Adobe. All rights reserved.
573
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
574
+ you may not use this file except in compliance with the License. You may obtain a copy
575
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
576
+
577
+ Unless required by applicable law or agreed to in writing, software distributed under
578
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
579
+ OF ANY KIND, either express or implied. See the License for the specific language
580
+ governing permissions and limitations under the License.
581
+ */
582
+
583
+ var appendNodeToDocument = (parent, node) => {
584
+ return parent.appendChild(node);
585
+ };
586
+
587
+ /*
588
+ Copyright 2019 Adobe. All rights reserved.
589
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
590
+ you may not use this file except in compliance with the License. You may obtain a copy
591
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
592
+
593
+ Unless required by applicable law or agreed to in writing, software distributed under
594
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
595
+ OF ANY KIND, either express or implied. See the License for the specific language
596
+ governing permissions and limitations under the License.
597
+ */
598
+
599
+
600
+ const populateElementProperties = (element, props) => {
601
+ Object.keys(props).forEach((key) => {
602
+ // The following is to support setting style properties to avoid CSP errors.
603
+ if (key === "style" && isObject(props[key])) {
604
+ const styleProps = props[key];
605
+ Object.keys(styleProps).forEach((styleKey) => {
606
+ element.style[styleKey] = styleProps[styleKey];
607
+ });
608
+ } else {
609
+ element[key] = props[key];
610
+ }
611
+ });
612
+ };
613
+
614
+ var createNodeInDocument = (tag, attrs = {}, props = {}, children = [], doc = document) => {
615
+ const result = doc.createElement(tag);
616
+ Object.keys(attrs).forEach((key) => {
617
+ // TODO: To highlight CSP problems consider throwing a descriptive error
618
+ // if nonce is available and key is style.
619
+ result.setAttribute(key, attrs[key]);
620
+ });
621
+ populateElementProperties(result, props);
622
+ children.forEach((child) => appendNodeToDocument(result, child));
623
+ return result;
624
+ };
625
+
626
+ /*
627
+ Copyright 2019 Adobe. All rights reserved.
628
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
629
+ you may not use this file except in compliance with the License. You may obtain a copy
630
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
631
+
632
+ Unless required by applicable law or agreed to in writing, software distributed under
633
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
634
+ OF ANY KIND, either express or implied. See the License for the specific language
635
+ governing permissions and limitations under the License.
636
+ */
637
+
638
+ const BODY = "BODY";
639
+ const IFRAME = "IFRAME";
640
+ const IMG = "IMG";
641
+
642
+ /*
643
+ Copyright 2019 Adobe. All rights reserved.
644
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
645
+ you may not use this file except in compliance with the License. You may obtain a copy
646
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
647
+
648
+ Unless required by applicable law or agreed to in writing, software distributed under
649
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
650
+ OF ANY KIND, either express or implied. See the License for the specific language
651
+ governing permissions and limitations under the License.
652
+ */
653
+
654
+
655
+ /**
656
+ * Fires an image pixel from the current document's window.
657
+ * @param {object} currentDocument
658
+ * @param {string} src
659
+ * @returns {Promise}
660
+ */
661
+ var fireImageInDocument = ({ src, currentDocument = document }) => {
662
+ return new Promise((resolve, reject) => {
663
+ const attrs = { src };
664
+ const props = {
665
+ onload: resolve,
666
+ onerror: reject,
667
+ onabort: reject,
668
+ };
669
+
670
+ createNodeInDocument(IMG, attrs, props, [], currentDocument);
671
+ });
672
+ };
673
+
674
+ /*
675
+ Copyright 2019 Adobe. All rights reserved.
676
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
677
+ you may not use this file except in compliance with the License. You may obtain a copy
678
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
679
+
680
+ Unless required by applicable law or agreed to in writing, software distributed under
681
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
682
+ OF ANY KIND, either express or implied. See the License for the specific language
683
+ governing permissions and limitations under the License.
684
+ */
685
+
686
+ /**
687
+ * Returns whether the value is a function.
688
+ * @param {*} value
689
+ * @returns {boolean}
690
+ */
691
+ var isFunction = (value) => typeof value === "function";
692
+
693
+ /*
694
+ Copyright 2019 Adobe. All rights reserved.
695
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
696
+ you may not use this file except in compliance with the License. You may obtain a copy
697
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
698
+
699
+ Unless required by applicable law or agreed to in writing, software distributed under
700
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
701
+ OF ANY KIND, either express or implied. See the License for the specific language
702
+ governing permissions and limitations under the License.
703
+ */
704
+
705
+ /**
706
+ * Returns whether the value is a non-empty array.
707
+ * @param {*} value
708
+ * @returns {boolean}
709
+ */
710
+ var isNonEmptyArray = (value) => Array.isArray(value) && value.length > 0;
711
+
712
+ /*
713
+ Copyright 2019 Adobe. All rights reserved.
714
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
715
+ you may not use this file except in compliance with the License. You may obtain a copy
716
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
717
+
718
+ Unless required by applicable law or agreed to in writing, software distributed under
719
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
720
+ OF ANY KIND, either express or implied. See the License for the specific language
721
+ governing permissions and limitations under the License.
722
+ */
723
+
724
+ var toArray = (value) => {
725
+ if (Array.isArray(value)) {
726
+ return value;
727
+ }
728
+
729
+ if (value == null) {
730
+ return [];
731
+ }
732
+
733
+ return [].slice.call(value);
734
+ };
735
+
736
+ /*
737
+ Copyright 2021 Adobe. All rights reserved.
738
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
739
+ you may not use this file except in compliance with the License. You may obtain a copy
740
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
741
+
742
+ Unless required by applicable law or agreed to in writing, software distributed under
743
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
744
+ OF ANY KIND, either express or implied. See the License for the specific language
745
+ governing permissions and limitations under the License.
746
+ */
747
+
748
+
749
+ const SIBLING_PATTERN = /^\s*>/;
750
+
751
+ var querySelectorAll = (context, selector) => {
752
+ if (!SIBLING_PATTERN.test(selector)) {
753
+ return toArray(context.querySelectorAll(selector));
754
+ }
755
+ return toArray(context.querySelectorAll(`:scope ${selector}`));
756
+ };
757
+
758
+ /*
759
+ Copyright 2022 Adobe. All rights reserved.
760
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
761
+ you may not use this file except in compliance with the License. You may obtain a copy
762
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
763
+
764
+ Unless required by applicable law or agreed to in writing, software distributed under
765
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
766
+ OF ANY KIND, either express or implied. See the License for the specific language
767
+ governing permissions and limitations under the License.
768
+ */
769
+
770
+ var SHADOW_SEPARATOR = ":shadow";
771
+
772
+ /*
773
+ Copyright 2021 Adobe. All rights reserved.
774
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
775
+ you may not use this file except in compliance with the License. You may obtain a copy
776
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
777
+
778
+ Unless required by applicable law or agreed to in writing, software distributed under
779
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
780
+ OF ANY KIND, either express or implied. See the License for the specific language
781
+ governing permissions and limitations under the License.
782
+ */
783
+
784
+
785
+ const splitWithShadow = (selector) => {
786
+ return selector.split(SHADOW_SEPARATOR);
787
+ };
788
+
789
+ const transformPrefix = (parent, selector) => {
790
+ const result = selector;
791
+ const hasChildCombinatorPrefix = result.startsWith(">");
792
+ if (!hasChildCombinatorPrefix) {
793
+ return result;
794
+ }
795
+
796
+ const prefix =
797
+ parent instanceof Element || parent instanceof Document
798
+ ? ":scope"
799
+ : ":host"; // see https://bugs.webkit.org/show_bug.cgi?id=233380
800
+
801
+ return `${prefix} ${result}`;
802
+ };
803
+
804
+ var selectNodesWithShadow = (context, selector) => {
805
+ const parts = splitWithShadow(selector);
806
+
807
+ if (parts.length < 2) {
808
+ return querySelectorAll(context, selector);
809
+ }
810
+
811
+ // split the selector into parts separated by :shadow pseudo-selectors
812
+ // find each subselector element based on the previously selected node's shadowRoot
813
+ let parent = context;
814
+ for (let i = 0; i < parts.length; i += 1) {
815
+ const part = parts[i].trim();
816
+ // if part is empty, it means there's a chained :eq:shadow selector
817
+ if (part === "" && parent.shadowRoot) {
818
+ parent = parent.shadowRoot;
819
+
820
+ continue;
821
+ }
822
+ const prefixed = transformPrefix(parent, part);
823
+ const partNode = querySelectorAll(parent, prefixed);
824
+
825
+ if (partNode.length === 0 || !partNode[0] || !partNode[0].shadowRoot) {
826
+ return partNode;
827
+ }
828
+
829
+ parent = partNode[0].shadowRoot;
830
+ }
831
+ return undefined;
832
+ };
833
+
834
+ /*
835
+ Copyright 2022 Adobe. All rights reserved.
836
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
837
+ you may not use this file except in compliance with the License. You may obtain a copy
838
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
839
+
840
+ Unless required by applicable law or agreed to in writing, software distributed under
841
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
842
+ OF ANY KIND, either express or implied. See the License for the specific language
843
+ governing permissions and limitations under the License.
844
+ */
845
+
846
+
847
+ var isShadowSelector = (str) => str.indexOf(SHADOW_SEPARATOR) !== -1;
848
+
849
+ /*
850
+ Copyright 2019 Adobe. All rights reserved.
851
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
852
+ you may not use this file except in compliance with the License. You may obtain a copy
853
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
854
+
855
+ Unless required by applicable law or agreed to in writing, software distributed under
856
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
857
+ OF ANY KIND, either express or implied. See the License for the specific language
858
+ governing permissions and limitations under the License.
859
+ */
860
+
861
+
862
+ /**
863
+ * Returns an array of matched DOM nodes.
864
+ * @param {String} selector
865
+ * @param {Node} [context=document] defaults to document
866
+ * @returns {Array} an array of DOM nodes
867
+ */
868
+ var selectNodes = (selector, context = document) => {
869
+ if (!isShadowSelector(selector)) {
870
+ return querySelectorAll(context, selector);
871
+ }
872
+
873
+ return selectNodesWithShadow(context, selector);
874
+ };
875
+
876
+ /*
877
+ Copyright 2019 Adobe. All rights reserved.
878
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
879
+ you may not use this file except in compliance with the License. You may obtain a copy
880
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
881
+
882
+ Unless required by applicable law or agreed to in writing, software distributed under
883
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
884
+ OF ANY KIND, either express or implied. See the License for the specific language
885
+ governing permissions and limitations under the License.
886
+ */
887
+
888
+
889
+ const MUTATION_OBSERVER = "MutationObserver";
890
+ const RAF = "requestAnimationFrame";
891
+ const MUTATION_OBSERVER_CONFIG = { childList: true, subtree: true };
892
+ const VISIBILITY_STATE = "visibilityState";
893
+ const VISIBLE = "visible";
894
+ const DELAY = 100;
895
+ const MAX_POLLING_TIMEOUT = 5000;
896
+
897
+ const createError = (selector) => {
898
+ return new Error(`Could not find: ${selector}`);
899
+ };
900
+
901
+ const createPromise = (executor) => {
902
+ return new Promise(executor);
903
+ };
904
+
905
+ const canUseMutationObserver = (win) => {
906
+ return isFunction(win[MUTATION_OBSERVER]);
907
+ };
908
+
909
+ const awaitUsingMutationObserver = (
910
+ win,
911
+ doc,
912
+ selector,
913
+ timeout,
914
+ selectFunc,
915
+ ) => {
916
+ return createPromise((resolve, reject) => {
917
+ let timer;
918
+
919
+ const mutationObserver = new win[MUTATION_OBSERVER](() => {
920
+ const nodes = selectFunc(selector);
921
+
922
+ if (isNonEmptyArray(nodes)) {
923
+ mutationObserver.disconnect();
924
+ if (timer) {
925
+ clearTimeout(timer);
926
+ }
927
+ resolve(nodes);
928
+ }
929
+ });
930
+
931
+ timer = setTimeout(() => {
932
+ mutationObserver.disconnect();
933
+ reject(createError(selector));
934
+ }, timeout);
935
+
936
+ mutationObserver.observe(doc, MUTATION_OBSERVER_CONFIG);
937
+ });
938
+ };
939
+
940
+ const canUseRequestAnimationFrame = (doc) => {
941
+ return doc[VISIBILITY_STATE] === VISIBLE;
942
+ };
943
+
944
+ const awaitUsingRequestAnimation = (
945
+ win,
946
+ selector,
947
+ timeout,
948
+ selectFunc,
949
+ ) => {
950
+ return createPromise((resolve, reject) => {
951
+ const execute = () => {
952
+ const nodes = selectFunc(selector);
953
+
954
+ if (isNonEmptyArray(nodes)) {
955
+ resolve(nodes);
956
+ return;
957
+ }
958
+
959
+ win[RAF](execute);
960
+ };
961
+
962
+ execute();
963
+
964
+ setTimeout(() => {
965
+ reject(createError(selector));
966
+ }, timeout);
967
+ });
968
+ };
969
+
970
+ const awaitUsingTimer = (selector, timeout, selectFunc) => {
971
+ return createPromise((resolve, reject) => {
972
+ const execute = () => {
973
+ const nodes = selectFunc(selector);
974
+
975
+ if (isNonEmptyArray(nodes)) {
976
+ resolve(nodes);
977
+ return;
978
+ }
979
+
980
+ setTimeout(execute, DELAY);
981
+ };
982
+
983
+ execute();
984
+
985
+ setTimeout(() => {
986
+ reject(createError(selector));
987
+ }, timeout);
988
+ });
989
+ };
990
+
991
+ var awaitSelectorInDocument = (
992
+ selector,
993
+ selectFunc = selectNodes,
994
+ timeout = MAX_POLLING_TIMEOUT,
995
+ win = window,
996
+ doc = document,
997
+ ) => {
998
+ const nodes = selectFunc(selector);
999
+
1000
+ if (isNonEmptyArray(nodes)) {
1001
+ return Promise.resolve(nodes);
1002
+ }
1003
+
1004
+ if (canUseMutationObserver(win)) {
1005
+ return awaitUsingMutationObserver(win, doc, selector, timeout, selectFunc);
1006
+ }
1007
+
1008
+ if (canUseRequestAnimationFrame(doc)) {
1009
+ return awaitUsingRequestAnimation(win, selector, timeout, selectFunc);
1010
+ }
1011
+
1012
+ return awaitUsingTimer(selector, timeout, selectFunc);
1013
+ };
1014
+
1015
+ /*
1016
+ Copyright 2019 Adobe. All rights reserved.
1017
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1018
+ you may not use this file except in compliance with the License. You may obtain a copy
1019
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1020
+
1021
+ Unless required by applicable law or agreed to in writing, software distributed under
1022
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1023
+ OF ANY KIND, either express or implied. See the License for the specific language
1024
+ governing permissions and limitations under the License.
1025
+ */
1026
+
1027
+
1028
+ const IFRAME_ATTRS = {
1029
+ name: "Adobe Alloy",
1030
+ };
1031
+
1032
+ const IFRAME_PROPS = {
1033
+ style: {
1034
+ display: "none",
1035
+ width: 0,
1036
+ height: 0,
1037
+ },
1038
+ };
1039
+
1040
+ var injectFireReferrerHideableImage = ({
1041
+ appendNode = appendNodeToDocument,
1042
+ awaitSelector = awaitSelectorInDocument,
1043
+ createNode = createNodeInDocument,
1044
+ fireImage = fireImageInDocument,
1045
+ } = {}) => {
1046
+ const fireOnPage = fireImage;
1047
+
1048
+ let hiddenIframe;
1049
+
1050
+ const createIframe = () => {
1051
+ return awaitSelector(BODY).then(([body]) => {
1052
+ if (hiddenIframe) {
1053
+ return hiddenIframe;
1054
+ }
1055
+ hiddenIframe = createNode(IFRAME, IFRAME_ATTRS, IFRAME_PROPS);
1056
+ return appendNode(body, hiddenIframe);
1057
+ });
1058
+ };
1059
+
1060
+ const fireInIframe = ({ src }) => {
1061
+ return createIframe().then((iframe) => {
1062
+ const currentDocument = iframe.contentWindow.document;
1063
+ return fireImage({ src, currentDocument });
1064
+ });
1065
+ };
1066
+
1067
+ return (request) => {
1068
+ const { hideReferrer, url } = request;
1069
+ return hideReferrer ? fireInIframe({ src: url }) : fireOnPage({ src: url });
1070
+ };
1071
+ };
1072
+
1073
+ /*
1074
+ Copyright 2019 Adobe. All rights reserved.
1075
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1076
+ you may not use this file except in compliance with the License. You may obtain a copy
1077
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1078
+
1079
+ Unless required by applicable law or agreed to in writing, software distributed under
1080
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1081
+ OF ANY KIND, either express or implied. See the License for the specific language
1082
+ governing permissions and limitations under the License.
1083
+ */
1084
+
1085
+
1086
+ /**
1087
+ * Returns whether the value is an empty object.
1088
+ * @param {*} value
1089
+ * @returns {boolean}
1090
+ */
1091
+ var isEmptyObject = (value) => isObject(value) && Object.keys(value).length === 0;
1092
+
1093
+ /*
1094
+ Copyright 2022 Adobe. All rights reserved.
1095
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1096
+ you may not use this file except in compliance with the License. You may obtain a copy
1097
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1098
+
1099
+ Unless required by applicable law or agreed to in writing, software distributed under
1100
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1101
+ OF ANY KIND, either express or implied. See the License for the specific language
1102
+ governing permissions and limitations under the License.
1103
+ */
1104
+
1105
+
1106
+ /**
1107
+ * Given an object and a function that takes a value and returns a predicate, filter out
1108
+ * all non-object deeply nested values that do not pass the predicate.
1109
+ *
1110
+ * Example: filterObject({ a: 2, b: { c: 6 } }, (val) => val > 5) returns { b { c: 6 } }
1111
+ *
1112
+ * @param {*} obj
1113
+ * @param {* => boolean} predicate a function that takes a value and return a boolean,
1114
+ * representing if it should be included in the result object or not.
1115
+ * @returns A copy of the original object with the values that fail the predicate, filtered out.
1116
+ */
1117
+ const filterObject = (obj, predicate) => {
1118
+ if (isNil(obj) || !isObject(obj)) {
1119
+ return obj;
1120
+ }
1121
+ return Object.keys(obj).reduce((result, key) => {
1122
+ const value = obj[key];
1123
+ if (isObject(value)) {
1124
+ // value is object, go deeper
1125
+ const filteredValue = filterObject(value, predicate);
1126
+ if (isEmptyObject(filteredValue)) {
1127
+ return result;
1128
+ }
1129
+ return { ...result, [key]: filteredValue };
1130
+ }
1131
+ // value is not an object, test predicate
1132
+ if (predicate(value)) {
1133
+ return { ...result, [key]: value };
1134
+ }
1135
+ return result;
1136
+ }, {});
1137
+ };
1138
+
1139
+ /*
1140
+ Copyright 2025 Adobe. All rights reserved.
1141
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1142
+ you may not use this file except in compliance with the License. You may obtain a copy
1143
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1144
+
1145
+ Unless required by applicable law or agreed to in writing, software distributed under
1146
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1147
+ OF ANY KIND, either express or implied. See the License for the specific language
1148
+ governing permissions and limitations under the License.
1149
+ */
1150
+
1151
+ /* eslint-disable no-bitwise */
1152
+
1153
+ /**
1154
+ * Generates an FNV1A32 hash for the given input string.
1155
+ * @param {string} str - The string to hash
1156
+ * @returns {number} - The 32-bit FNV1A hash as a number
1157
+ */
1158
+ const fnv1a32 = (str) => {
1159
+ // FNV_offset_basis for 32-bit hash
1160
+ let hash = 0x811c9dc5;
1161
+
1162
+ // FNV_prime for 32-bit hash
1163
+ const prime = 0x01000193;
1164
+
1165
+ // Convert the string to a properly encoded UTF-8 byte array
1166
+ const utf8Encoder = new TextEncoder();
1167
+ const bytes = utf8Encoder.encode(str);
1168
+
1169
+ // Process each byte in the UTF-8 encoded array
1170
+ for (let i = 0; i < bytes.length; i += 1) {
1171
+ // XOR the hash with the byte value, then multiply by prime
1172
+ hash ^= bytes[i];
1173
+ hash = Math.imul(hash, prime);
1174
+ }
1175
+
1176
+ // Return the final hash value (unsigned 32-bit integer)
1177
+ return hash >>> 0;
1178
+ };
1179
+
1180
+ /**
1181
+ * Generates an FNV1A32 hash and returns it as a hexadecimal string.
1182
+ * @param {string} str - The string to hash
1183
+ * @returns {string} - The 32-bit FNV1A hash as a hexadecimal string
1184
+ */
1185
+ const fnv1a32Hex = (str) => fnv1a32(str).toString(16).padStart(8, "0");
1186
+
1187
+ /*
1188
+ Copyright 2019 Adobe. All rights reserved.
1189
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1190
+ you may not use this file except in compliance with the License. You may obtain a copy
1191
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1192
+
1193
+ Unless required by applicable law or agreed to in writing, software distributed under
1194
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1195
+ OF ANY KIND, either express or implied. See the License for the specific language
1196
+ governing permissions and limitations under the License.
1197
+ */
1198
+
1199
+ var baseNamespace = "com.adobe.alloy.";
1200
+
1201
+ /*
1202
+ Copyright 2019 Adobe. All rights reserved.
1203
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1204
+ you may not use this file except in compliance with the License. You may obtain a copy
1205
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1206
+
1207
+ Unless required by applicable law or agreed to in writing, software distributed under
1208
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1209
+ OF ANY KIND, either express or implied. See the License for the specific language
1210
+ governing permissions and limitations under the License.
1211
+ */
1212
+
1213
+ /**
1214
+ * Returns the last N number of items from an array.
1215
+ * @param {Array} arr
1216
+ * @param {number} itemCount
1217
+ * @returns {Array}
1218
+ */
1219
+ var getLastArrayItems = (arr, itemCount) => arr.slice(-itemCount);
1220
+
1221
+ /*
1222
+ Copyright 2019 Adobe. All rights reserved.
1223
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1224
+ you may not use this file except in compliance with the License. You may obtain a copy
1225
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1226
+
1227
+ Unless required by applicable law or agreed to in writing, software distributed under
1228
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1229
+ OF ANY KIND, either express or implied. See the License for the specific language
1230
+ governing permissions and limitations under the License.
1231
+ */
1232
+
1233
+
1234
+ const cookieName = `${baseNamespace}getTld`;
1235
+
1236
+ /**
1237
+ * Of the current web page's hostname, this is the top-most domain that is
1238
+ * not a "public suffix" as outlined in https://publicsuffix.org/. In other
1239
+ * words, this is top-most domain that is able to accept cookies.
1240
+ * @param {Object} window
1241
+ * @param {Object} cookieJar
1242
+ * @returns {string}
1243
+ */
1244
+ var getApexDomain = (window, cookieJar) => {
1245
+ let topLevelCookieDomain = "";
1246
+
1247
+ // If hostParts.length === 1, we may be on localhost.
1248
+ const hostParts = window.location.hostname.toLowerCase().split(".");
1249
+ let i = 1;
1250
+
1251
+ while (i < hostParts.length && !cookieJar.get(cookieName)) {
1252
+ i += 1;
1253
+ topLevelCookieDomain = getLastArrayItems(hostParts, i).join(".");
1254
+ cookieJar.set(cookieName, cookieName, { domain: topLevelCookieDomain });
1255
+ }
1256
+
1257
+ cookieJar.remove(cookieName, { domain: topLevelCookieDomain });
1258
+
1259
+ return topLevelCookieDomain;
1260
+ };
1261
+
1262
+ /*
1263
+ Copyright 2019 Adobe. All rights reserved.
1264
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1265
+ you may not use this file except in compliance with the License. You may obtain a copy
1266
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1267
+
1268
+ Unless required by applicable law or agreed to in writing, software distributed under
1269
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1270
+ OF ANY KIND, either express or implied. See the License for the specific language
1271
+ governing permissions and limitations under the License.
1272
+ */
1273
+
1274
+ // Remember to also incorporate the org ID wherever cookies are read or written.
1275
+ var COOKIE_NAME_PREFIX = "kndctr";
1276
+
1277
+ /*
1278
+ Copyright 2019 Adobe. All rights reserved.
1279
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1280
+ you may not use this file except in compliance with the License. You may obtain a copy
1281
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1282
+
1283
+ Unless required by applicable law or agreed to in writing, software distributed under
1284
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1285
+ OF ANY KIND, either express or implied. See the License for the specific language
1286
+ governing permissions and limitations under the License.
1287
+ */
1288
+
1289
+ var sanitizeOrgIdForCookieName = (orgId) => orgId.replace("@", "_");
1290
+
1291
+ /*
1292
+ Copyright 2019 Adobe. All rights reserved.
1293
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1294
+ you may not use this file except in compliance with the License. You may obtain a copy
1295
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1296
+
1297
+ Unless required by applicable law or agreed to in writing, software distributed under
1298
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1299
+ OF ANY KIND, either express or implied. See the License for the specific language
1300
+ governing permissions and limitations under the License.
1301
+ */
1302
+
1303
+
1304
+ var getNamespacedCookieName = (orgId, key) =>
1305
+ `${COOKIE_NAME_PREFIX}_${sanitizeOrgIdForCookieName(orgId)}_${key}`;
1306
+
1307
+ /*
1308
+ Copyright 2019 Adobe. All rights reserved.
1309
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1310
+ you may not use this file except in compliance with the License. You may obtain a copy
1311
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1312
+
1313
+ Unless required by applicable law or agreed to in writing, software distributed under
1314
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1315
+ OF ANY KIND, either express or implied. See the License for the specific language
1316
+ governing permissions and limitations under the License.
1317
+ */
1318
+
1319
+ /**
1320
+ * Group an array by a key getter provided
1321
+ * @param {Array} arr Array to iterate over.
1322
+ * @param {Function} keyGetter The key getter by which to group.
1323
+ * @returns {Object}
1324
+ */
1325
+ var groupBy = (arr, keyGetter) => {
1326
+ const result = {};
1327
+
1328
+ arr.forEach((item) => {
1329
+ const key = keyGetter(item);
1330
+
1331
+ if (!result[key]) {
1332
+ result[key] = [];
1333
+ }
1334
+
1335
+ result[key].push(item);
1336
+ });
1337
+
1338
+ return result;
1339
+ };
1340
+
1341
+ /*
1342
+ Copyright 2019 Adobe. All rights reserved.
1343
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1344
+ you may not use this file except in compliance with the License. You may obtain a copy
1345
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1346
+
1347
+ Unless required by applicable law or agreed to in writing, software distributed under
1348
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1349
+ OF ANY KIND, either express or implied. See the License for the specific language
1350
+ governing permissions and limitations under the License.
1351
+ */
1352
+
1353
+ const CHROME = "Chrome";
1354
+ const EDGE = "Edge";
1355
+ const EDGE_CHROMIUM = "EdgeChromium";
1356
+ const FIREFOX = "Firefox";
1357
+ const IE = "IE";
1358
+ const SAFARI = "Safari";
1359
+ const UNKNOWN = "Unknown";
1360
+
1361
+ /*
1362
+ Copyright 2024 Adobe. All rights reserved.
1363
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1364
+ you may not use this file except in compliance with the License. You may obtain a copy
1365
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1366
+
1367
+ Unless required by applicable law or agreed to in writing, software distributed under
1368
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1369
+ OF ANY KIND, either express or implied. See the License for the specific language
1370
+ governing permissions and limitations under the License.
1371
+ */
1372
+ var lazy = (fn) => {
1373
+ let called = false;
1374
+ let result;
1375
+ return () => {
1376
+ if (!called) {
1377
+ called = true;
1378
+ result = fn();
1379
+ }
1380
+ return result;
1381
+ };
1382
+ };
1383
+
1384
+ /*
1385
+ Copyright 2019 Adobe. All rights reserved.
1386
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1387
+ you may not use this file except in compliance with the License. You may obtain a copy
1388
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1389
+
1390
+ Unless required by applicable law or agreed to in writing, software distributed under
1391
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1392
+ OF ANY KIND, either express or implied. See the License for the specific language
1393
+ governing permissions and limitations under the License.
1394
+ */
1395
+
1396
+
1397
+ // Users could have also disabled third-party cookies within these browsers, but
1398
+ // we don't know. We also assume "unknown" browsers support third-party cookies,
1399
+ // though we don't really know that either. We're making best guesses.
1400
+ const browsersSupportingThirdPartyCookie = [
1401
+ CHROME,
1402
+ EDGE,
1403
+ EDGE_CHROMIUM,
1404
+ IE,
1405
+ UNKNOWN,
1406
+ ];
1407
+
1408
+ var injectAreThirdPartyCookiesSupportedByDefault = ({ getBrowser }) =>
1409
+ lazy(() => browsersSupportingThirdPartyCookie.includes(getBrowser()));
1410
+
1411
+ /*
1412
+ Copyright 2019 Adobe. All rights reserved.
1413
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1414
+ you may not use this file except in compliance with the License. You may obtain a copy
1415
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1416
+
1417
+ Unless required by applicable law or agreed to in writing, software distributed under
1418
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1419
+ OF ANY KIND, either express or implied. See the License for the specific language
1420
+ governing permissions and limitations under the License.
1421
+ */
1422
+
1423
+ const IDENTITY = "identity";
1424
+
1425
+ /*
1426
+ Copyright 2020 Adobe. All rights reserved.
1427
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1428
+ you may not use this file except in compliance with the License. You may obtain a copy
1429
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1430
+
1431
+ Unless required by applicable law or agreed to in writing, software distributed under
1432
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1433
+ OF ANY KIND, either express or implied. See the License for the specific language
1434
+ governing permissions and limitations under the License.
1435
+ */
1436
+
1437
+
1438
+ var injectDoesIdentityCookieExist = ({ orgId }) => {
1439
+ const identityCookieName = getNamespacedCookieName(orgId, IDENTITY);
1440
+ /**
1441
+ * Returns whether the identity cookie exists.
1442
+ */
1443
+ return () => Boolean(cookieJar.get(identityCookieName));
1444
+ };
1445
+
1446
+ /*
1447
+ Copyright 2019 Adobe. All rights reserved.
1448
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1449
+ you may not use this file except in compliance with the License. You may obtain a copy
1450
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1451
+
1452
+ Unless required by applicable law or agreed to in writing, software distributed under
1453
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1454
+ OF ANY KIND, either express or implied. See the License for the specific language
1455
+ governing permissions and limitations under the License.
1456
+ */
1457
+
1458
+
1459
+ const matchUserAgent = (regexs, userAgent) => {
1460
+ const keys = Object.keys(regexs);
1461
+ for (let i = 0; i < keys.length; i += 1) {
1462
+ const key = keys[i];
1463
+ const regex = regexs[key];
1464
+ if (regex.test(userAgent)) {
1465
+ return key;
1466
+ }
1467
+ }
1468
+ return UNKNOWN;
1469
+ };
1470
+
1471
+ var injectGetBrowser = ({ userAgent }) => {
1472
+ return lazy(() =>
1473
+ matchUserAgent(
1474
+ {
1475
+ /*
1476
+ The MIT License (MIT)
1477
+
1478
+ Copyright (c) 2019 Damon Oehlman damon.oehlman@gmail.com
1479
+
1480
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1481
+ of this software and associated documentation files (the "Software"), to
1482
+ deal in the Software without restriction, including without limitation the
1483
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1484
+ sell copies of the Software, and to permit persons to whom the Software is
1485
+ furnished to do so, subject to the following conditions:
1486
+
1487
+ The above copyright notice and this permission notice shall be included in
1488
+ all copies or substantial portions of the Software.
1489
+
1490
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1491
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1492
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1493
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1494
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1495
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1496
+ DEALINGS IN THE SOFTWARE.
1497
+ */
1498
+ // Regular expression patterns were copied from
1499
+ // https://github.com/DamonOehlman/detect-browser
1500
+ // These are only the browsers that Alloy officially supports.
1501
+ /* eslint-disable */
1502
+ [EDGE]: /Edge\/([0-9\._]+)/,
1503
+ // Edge Chromium can dynamically change its user agent string based
1504
+ // on the host site:
1505
+ // https://winaero.com/blog/microsoft-edge-chromium-dynamically-changes-its-user-agent/
1506
+ [EDGE_CHROMIUM]: /Edg\/([0-9\.]+)/,
1507
+ [CHROME]: /(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/,
1508
+ [FIREFOX]: /Firefox\/([0-9\.]+)(?:\s|$)/,
1509
+ // This only covers version 11 of IE, but that's all we support.
1510
+ [IE]: /Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/,
1511
+ [SAFARI]: /Version\/([0-9\._]+).*Safari/,
1512
+ /* eslint-enable */
1513
+ },
1514
+ userAgent,
1515
+ ),
1516
+ );
1517
+ };
1518
+
1519
+ /*
1520
+ Copyright 2019 Adobe. All rights reserved.
1521
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1522
+ you may not use this file except in compliance with the License. You may obtain a copy
1523
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1524
+
1525
+ Unless required by applicable law or agreed to in writing, software distributed under
1526
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1527
+ OF ANY KIND, either express or implied. See the License for the specific language
1528
+ governing permissions and limitations under the License.
1529
+ */
1530
+
1531
+
1532
+ const getStorageByType = (context, storageType, namespace) => {
1533
+ // When storage is disabled on Safari, the mere act of referencing
1534
+ // window.localStorage or window.sessionStorage throws an error.
1535
+ // For this reason, we wrap in a try-catch.
1536
+ return {
1537
+ /**
1538
+ * Reads a value from storage.
1539
+ * @param {string} name The name of the item to be read.
1540
+ * @returns {string}
1541
+ */
1542
+ getItem(name) {
1543
+ try {
1544
+ return context[storageType].getItem(namespace + name);
1545
+ } catch {
1546
+ return null;
1547
+ }
1548
+ },
1549
+ /**
1550
+ * Saves a value to storage.
1551
+ * @param {string} name The name of the item to be saved.
1552
+ * @param {string} value The value of the item to be saved.
1553
+ * @returns {boolean} Whether the item was successfully saved to storage.
1554
+ */
1555
+ setItem(name, value) {
1556
+ try {
1557
+ context[storageType].setItem(namespace + name, value);
1558
+ return true;
1559
+ } catch {
1560
+ return false;
1561
+ }
1562
+ },
1563
+ /**
1564
+ * Clear all values in storage that match the namespace.
1565
+ */
1566
+ clear() {
1567
+ try {
1568
+ Object.keys(context[storageType]).forEach((key) => {
1569
+ if (key.startsWith(namespace)) {
1570
+ context[storageType].removeItem(key);
1571
+ }
1572
+ });
1573
+ return true;
1574
+ } catch {
1575
+ return false;
1576
+ }
1577
+ },
1578
+ };
1579
+ };
1580
+
1581
+ var injectStorage = (context) => (additionalNamespace) => {
1582
+ const finalNamespace = baseNamespace + additionalNamespace;
1583
+ return {
1584
+ session: getStorageByType(context, "sessionStorage", finalNamespace),
1585
+ persistent: getStorageByType(context, "localStorage", finalNamespace),
1586
+ };
1587
+ };
1588
+
1589
+ /*
1590
+ Copyright 2019 Adobe. All rights reserved.
1591
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1592
+ you may not use this file except in compliance with the License. You may obtain a copy
1593
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1594
+
1595
+ Unless required by applicable law or agreed to in writing, software distributed under
1596
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1597
+ OF ANY KIND, either express or implied. See the License for the specific language
1598
+ governing permissions and limitations under the License.
1599
+ */
1600
+ /**
1601
+ * Returns items that are found within both arrays.
1602
+ * @param {Array} a
1603
+ * @param {Array} b
1604
+ * @returns {Array}
1605
+ */
1606
+ var intersection = (a, b) => a.filter((x) => b.includes(x));
1607
+
1608
+ /*
1609
+ Copyright 2019 Adobe. All rights reserved.
1610
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1611
+ you may not use this file except in compliance with the License. You may obtain a copy
1612
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1613
+
1614
+ Unless required by applicable law or agreed to in writing, software distributed under
1615
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1616
+ OF ANY KIND, either express or implied. See the License for the specific language
1617
+ governing permissions and limitations under the License.
1618
+ */
1619
+
1620
+ /**
1621
+ * Returns whether the value is a boolean.
1622
+ * @param {*} value
1623
+ * @returns {boolean}
1624
+ */
1625
+ var isBoolean = (value) => typeof value === "boolean";
1626
+
1627
+ /*
1628
+ Copyright 2019 Adobe. All rights reserved.
1629
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1630
+ you may not use this file except in compliance with the License. You may obtain a copy
1631
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1632
+
1633
+ Unless required by applicable law or agreed to in writing, software distributed under
1634
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1635
+ OF ANY KIND, either express or implied. See the License for the specific language
1636
+ governing permissions and limitations under the License.
1637
+ */
1638
+
1639
+ /**
1640
+ * Returns whether the value is a number.
1641
+ * @param {*} value
1642
+ * @returns {boolean}
1643
+ */
1644
+ var isNumber = (value) => typeof value === "number" && !Number.isNaN(value);
1645
+
1646
+ /*
1647
+ Copyright 2019 Adobe. All rights reserved.
1648
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1649
+ you may not use this file except in compliance with the License. You may obtain a copy
1650
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1651
+
1652
+ Unless required by applicable law or agreed to in writing, software distributed under
1653
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1654
+ OF ANY KIND, either express or implied. See the License for the specific language
1655
+ governing permissions and limitations under the License.
1656
+ */
1657
+
1658
+
1659
+ /**
1660
+ * Returns whether the value is an integer.
1661
+ * @param {*} value
1662
+ * @returns {boolean}
1663
+ */
1664
+ var isInteger = (value) => {
1665
+ const parsed = parseInt(value, 10);
1666
+
1667
+ return isNumber(parsed) && value === parsed;
1668
+ };
1669
+
1670
+ /*
1671
+ Copyright 2019 Adobe. All rights reserved.
1672
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1673
+ you may not use this file except in compliance with the License. You may obtain a copy
1674
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1675
+
1676
+ Unless required by applicable law or agreed to in writing, software distributed under
1677
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1678
+ OF ANY KIND, either express or implied. See the License for the specific language
1679
+ governing permissions and limitations under the License.
1680
+ */
1681
+
1682
+
1683
+ /**
1684
+ * Determines whether a cookie name is namespaced according to the contract
1685
+ * defined by the server.
1686
+ * @param {String} orgId The org ID configured for the Alloy instance.
1687
+ * @param {String} name The cookie name.
1688
+ * @returns {boolean}
1689
+ */
1690
+ var isNamespacedCookieName = (orgId, name) =>
1691
+ name.indexOf(
1692
+ `${COOKIE_NAME_PREFIX}_${sanitizeOrgIdForCookieName(orgId)}_`,
1693
+ ) === 0;
1694
+
1695
+ /*
1696
+ Copyright 2019 Adobe. All rights reserved.
1697
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1698
+ you may not use this file except in compliance with the License. You may obtain a copy
1699
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1700
+
1701
+ Unless required by applicable law or agreed to in writing, software distributed under
1702
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1703
+ OF ANY KIND, either express or implied. See the License for the specific language
1704
+ governing permissions and limitations under the License.
1705
+ */
1706
+
1707
+ /**
1708
+ * Returns whether the value is a string.
1709
+ * @param {*} value
1710
+ * @returns {boolean}
1711
+ */
1712
+ var isString = (value) => typeof value === "string";
1713
+
1714
+ /*
1715
+ Copyright 2019 Adobe. All rights reserved.
1716
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1717
+ you may not use this file except in compliance with the License. You may obtain a copy
1718
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1719
+
1720
+ Unless required by applicable law or agreed to in writing, software distributed under
1721
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1722
+ OF ANY KIND, either express or implied. See the License for the specific language
1723
+ governing permissions and limitations under the License.
1724
+ */
1725
+
1726
+
1727
+ /**
1728
+ * Returns whether the value is a populated string.
1729
+ * @param {*} value
1730
+ * @returns {boolean}
1731
+ */
1732
+ var isNonEmptyString = (value) => isString(value) && value.length > 0;
1733
+
1734
+ /*
1735
+ Copyright 2019 Adobe. All rights reserved.
1736
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1737
+ you may not use this file except in compliance with the License. You may obtain a copy
1738
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1739
+
1740
+ Unless required by applicable law or agreed to in writing, software distributed under
1741
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1742
+ OF ANY KIND, either express or implied. See the License for the specific language
1743
+ governing permissions and limitations under the License.
1744
+ */
1745
+
1746
+ /**
1747
+ * A function that performs no operations.
1748
+ */
1749
+ var noop = () => {};
1750
+
1751
+ /*
1752
+ Copyright 2023 Adobe. All rights reserved.
1753
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1754
+ you may not use this file except in compliance with the License. You may obtain a copy
1755
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1756
+
1757
+ Unless required by applicable law or agreed to in writing, software distributed under
1758
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1759
+ OF ANY KIND, either express or implied. See the License for the specific language
1760
+ governing permissions and limitations under the License.
1761
+ */
1762
+
1763
+ const parseDomainBasic = (host) => {
1764
+ const result = {};
1765
+ const domainParts = host.split(".");
1766
+
1767
+ switch (domainParts.length) {
1768
+ case 1:
1769
+ result.subdomain = "";
1770
+ result.domain = host;
1771
+ result.topLevelDomain = "";
1772
+ break;
1773
+ case 2:
1774
+ result.subdomain = "";
1775
+ result.domain = host;
1776
+ result.topLevelDomain = domainParts[1];
1777
+ break;
1778
+ case 3:
1779
+ result.subdomain = domainParts[0] === "www" ? "" : domainParts[0];
1780
+ result.domain = host;
1781
+ result.topLevelDomain = domainParts[2];
1782
+ break;
1783
+ case 4:
1784
+ result.subdomain = domainParts[0] === "www" ? "" : domainParts[0];
1785
+ result.domain = host;
1786
+ result.topLevelDomain = `${domainParts[2]}.${domainParts[3]}`;
1787
+ break;
1788
+ }
1789
+
1790
+ return result;
1791
+ };
1792
+
1793
+ /**
1794
+ * @typedef {Object} ParseUriResult
1795
+ * @property {string} host
1796
+ * @property {string} path
1797
+ * @property {string} query
1798
+ * @property {string} anchor
1799
+ *
1800
+ * @param {string} url
1801
+ * @returns {ParseUriResult}
1802
+ */
1803
+ const parseUri = (url) => {
1804
+ try {
1805
+ const parsed = new URL(url);
1806
+ let path = parsed.pathname;
1807
+ if (!url.endsWith("/") && path === "/") {
1808
+ path = "";
1809
+ }
1810
+ return {
1811
+ host: parsed.hostname,
1812
+ path,
1813
+ query: parsed.search.replace(/^\?/, ""),
1814
+ anchor: parsed.hash.replace(/^#/, ""),
1815
+ };
1816
+ } catch {
1817
+ return {
1818
+ host: "",
1819
+ path: "",
1820
+ query: "",
1821
+ anchor: "",
1822
+ };
1823
+ }
1824
+ };
1825
+
1826
+ const parseUrl = (url, parseDomain = parseDomainBasic) => {
1827
+ if (!isString(url)) {
1828
+ url = "";
1829
+ }
1830
+
1831
+ const parsed = parseUri(url);
1832
+ const { host, path, query, anchor } = parsed;
1833
+
1834
+ return {
1835
+ path,
1836
+ query,
1837
+ fragment: anchor,
1838
+ ...parseDomain(host),
1839
+ };
1840
+ };
1841
+
1842
+ /*
1843
+ Copyright 2022 Adobe. All rights reserved.
1844
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
1845
+ you may not use this file except in compliance with the License. You may obtain a copy
1846
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
1847
+
1848
+ Unless required by applicable law or agreed to in writing, software distributed under
1849
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1850
+ OF ANY KIND, either express or implied. See the License for the specific language
1851
+ governing permissions and limitations under the License.
1852
+ */
1853
+
1854
+ // We want to avoid mapping between specific keys because we want Konductor
1855
+ // to be able to add overrides in the future without us needing to make
1856
+ // any changes to the Web SDK
1857
+ var prepareConfigOverridesForEdge = (configuration) => {
1858
+ if (isNil(configuration) || typeof configuration !== "object") {
1859
+ return null;
1860
+ }
1861
+ // remove entries that are empty strings or arrays
1862
+ const configOverrides = filterObject(configuration, (value) => {
1863
+ if (isNil(value)) {
1864
+ return false;
1865
+ }
1866
+ if (isBoolean(value)) {
1867
+ return true;
1868
+ }
1869
+ if (isNumber(value)) {
1870
+ return true;
1871
+ }
1872
+ if (isNonEmptyString(value)) {
1873
+ return true;
1874
+ }
1875
+ if (isNonEmptyArray(value)) {
1876
+ return true;
1877
+ }
1878
+ return false;
1879
+ });
1880
+ if (isEmptyObject(configOverrides)) {
1881
+ return null;
1882
+ }
1883
+
1884
+ return configOverrides;
1885
+ };
1886
+
1887
+ function getDefaultExportFromCjs (x) {
1888
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1889
+ }
1890
+
1891
+ /***************************************************************************************
1892
+ * (c) 2017 Adobe. All rights reserved.
1893
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
1894
+ * you may not use this file except in compliance with the License. You may obtain a copy
1895
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
1896
+ *
1897
+ * Unless required by applicable law or agreed to in writing, software distributed under
1898
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
1899
+ * OF ANY KIND, either express or implied. See the License for the specific language
1900
+ * governing permissions and limitations under the License.
1901
+ ****************************************************************************************/
1902
+
1903
+ var reactorQueryString;
1904
+ var hasRequiredReactorQueryString;
1905
+
1906
+ function requireReactorQueryString () {
1907
+ if (hasRequiredReactorQueryString) return reactorQueryString;
1908
+ hasRequiredReactorQueryString = 1;
1909
+
1910
+ /**
1911
+ * Parse a query string into an object. Leading `?` or `#` are ignored, so you
1912
+ * can pass `location.search` or `location.hash` directly.
1913
+ *
1914
+ * URL components are decoded with decode-uri-component.
1915
+ *
1916
+ * Parse arrays with elements using duplicate keys, e.g. ?a=1&a=2 becomes
1917
+ * {a: ['1', '2']}.
1918
+ *
1919
+ * Query keys are sorted alphabetically.
1920
+ *
1921
+ * Numbers and booleans are NOT parsed; they are left as strings.
1922
+ * @param {string} query the query part of a url
1923
+ * @returns {{ [key: string]: string | string[] | undefined }} the parsed query string
1924
+ */
1925
+ var parseQueryString = function (query) {
1926
+ /** @type {{[key: string]: string | string[] | undefined }} */
1927
+ var result = {};
1928
+
1929
+ if (!query || typeof query !== 'string') {
1930
+ return result;
1931
+ }
1932
+
1933
+ var cleanQuery = query.trim().replace(/^[?#&]/, '');
1934
+ var params = new URLSearchParams(cleanQuery);
1935
+
1936
+ var iter = params.keys();
1937
+ do {
1938
+ var v = iter.next();
1939
+ var key = v.value;
1940
+
1941
+ if (key) {
1942
+ var values = params.getAll(key);
1943
+ if (values.length === 1) {
1944
+ result[key] = values[0];
1945
+ } else {
1946
+ result[key] = values;
1947
+ }
1948
+ }
1949
+ } while (v.done === false);
1950
+
1951
+ return result;
1952
+ };
1953
+
1954
+ /**
1955
+ * Transform an object into a query string.
1956
+ *
1957
+ * Keys having object values are ignored.
1958
+ *
1959
+ * @param {object} the object to transform into a query string
1960
+ * @returns {string} the parsed query string
1961
+ */
1962
+
1963
+ var stringifyObject = function (object) {
1964
+ var spaceToken = '{{space}}';
1965
+ var params = new URLSearchParams();
1966
+
1967
+ Object.keys(object).forEach(function (key) {
1968
+ var value = object[key];
1969
+
1970
+ if (typeof object[key] === 'string') {
1971
+ value = value.replace(/ /g, spaceToken);
1972
+ } else if (
1973
+ ['object', 'undefined'].includes(typeof value) &&
1974
+ !Array.isArray(value)
1975
+ ) {
1976
+ value = '';
1977
+ }
1978
+
1979
+ if (Array.isArray(value)) {
1980
+ value.forEach(function (arrayValue) {
1981
+ params.append(key, arrayValue);
1982
+ });
1983
+ } else {
1984
+ params.append(key, value);
1985
+ }
1986
+ });
1987
+
1988
+ return params
1989
+ .toString()
1990
+ .replace(new RegExp(encodeURIComponent(spaceToken), 'g'), '%20');
1991
+ };
1992
+
1993
+ // We proxy the underlying querystring module so we can limit the API we expose.
1994
+ // This allows us to more easily make changes to the underlying implementation later without
1995
+ // having to worry about breaking extensions. If extensions demand additional functionality, we
1996
+ // can make adjustments as needed.
1997
+ reactorQueryString = {
1998
+ parse: function (string) {
1999
+ return parseQueryString(string);
2000
+ },
2001
+ stringify: function (object) {
2002
+ return stringifyObject(object);
2003
+ }
2004
+ };
2005
+ return reactorQueryString;
2006
+ }
2007
+
2008
+ var reactorQueryStringExports = requireReactorQueryString();
2009
+ var queryString = /*@__PURE__*/getDefaultExportFromCjs(reactorQueryStringExports);
2010
+
2011
+ /*
2012
+ Copyright 2025 Adobe. All rights reserved.
2013
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2014
+ you may not use this file except in compliance with the License. You may obtain a copy
2015
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2016
+
2017
+ Unless required by applicable law or agreed to in writing, software distributed under
2018
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2019
+ OF ANY KIND, either express or implied. See the License for the specific language
2020
+ governing permissions and limitations under the License.
2021
+ */
2022
+
2023
+ /**
2024
+ * Recursively sorts the properties of all objects within the provided data structure.
2025
+ * @param {Object|Array} data - The data structure to serialize. It can be an object or an array.
2026
+ * @returns {Object|Array} - A new object or array with allo the container object having properties sorted.
2027
+ */
2028
+ const sortObjectPropertiesDeep = (data) => {
2029
+ if (Array.isArray(data)) {
2030
+ return data.map((value) => sortObjectPropertiesDeep(value));
2031
+ }
2032
+
2033
+ if (typeof data === "object" && data !== null) {
2034
+ return Object.keys(data)
2035
+ .sort()
2036
+ .reduce((memo, key) => {
2037
+ memo[key] = sortObjectPropertiesDeep(data[key]);
2038
+ return memo;
2039
+ }, {});
2040
+ }
2041
+
2042
+ return data;
2043
+ };
2044
+
2045
+ /**
2046
+ * This utility helps create consistent serialized representations of objects
2047
+ * by eliminating variations caused by property order. This is useful for creating
2048
+ * reliable hashes or checksums containing these objects.
2049
+ * @param {Object|Array} data - The data structure to serialize. It can be an object or an array.
2050
+ * @returns {Object|Array} - A new object or array with allo the container object having properties sorted.
2051
+ */
2052
+ var sortObjectKeysRecursively = (data) => sortObjectPropertiesDeep(data);
2053
+
2054
+ /*
2055
+ Copyright 2019 Adobe. All rights reserved.
2056
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2057
+ you may not use this file except in compliance with the License. You may obtain a copy
2058
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2059
+
2060
+ Unless required by applicable law or agreed to in writing, software distributed under
2061
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2062
+ OF ANY KIND, either express or implied. See the License for the specific language
2063
+ governing permissions and limitations under the License.
2064
+ */
2065
+
2066
+ /**
2067
+ * Creates and returns a new error using the provided value as a message.
2068
+ * If the provided value is already an Error, it will be returned unmodified.
2069
+ * @param {*} value
2070
+ * @returns {Error}
2071
+ */
2072
+ var toError = (value) => {
2073
+ return value instanceof Error ? value : new Error(value);
2074
+ };
2075
+
2076
+ /*
2077
+ Copyright 2020 Adobe. All rights reserved.
2078
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2079
+ you may not use this file except in compliance with the License. You may obtain a copy
2080
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2081
+
2082
+ Unless required by applicable law or agreed to in writing, software distributed under
2083
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2084
+ OF ANY KIND, either express or implied. See the License for the specific language
2085
+ governing permissions and limitations under the License.
2086
+ */
2087
+
2088
+ var updateErrorMessage = ({ error, message }) => {
2089
+ try {
2090
+ error.message = message;
2091
+ } catch {
2092
+ // We'll set a new message when we can, but some errors, like DOMException,
2093
+ // have a read-only message property, which limits our options.
2094
+ }
2095
+ };
2096
+
2097
+ /*
2098
+ Copyright 2019 Adobe. All rights reserved.
2099
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2100
+ you may not use this file except in compliance with the License. You may obtain a copy
2101
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2102
+
2103
+ Unless required by applicable law or agreed to in writing, software distributed under
2104
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2105
+ OF ANY KIND, either express or implied. See the License for the specific language
2106
+ governing permissions and limitations under the License.
2107
+ */
2108
+
2109
+
2110
+ /**
2111
+ * Augments an error's message with additional context as it bubbles up the call stack.
2112
+ * @param {Object} options
2113
+ * @param {String} options.message The message to be added to the error.
2114
+ * @param {Error} options.error Optimally, this is an instance of Error. If it is not,
2115
+ * this is used as the basis for the message of a newly created Error instance.
2116
+ * @returns {*}
2117
+ */
2118
+ var stackError = ({ error, message }) => {
2119
+ const errorToStack = toError(error);
2120
+ const newMessage = `${message}\nCaused by: ${errorToStack.message}`;
2121
+ updateErrorMessage({
2122
+ error: errorToStack,
2123
+ message: newMessage,
2124
+ });
2125
+ return errorToStack;
2126
+ };
2127
+
2128
+ /*
2129
+ Copyright 2023 Adobe. All rights reserved.
2130
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2131
+ you may not use this file except in compliance with the License. You may obtain a copy
2132
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2133
+
2134
+ Unless required by applicable law or agreed to in writing, software distributed under
2135
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2136
+ OF ANY KIND, either express or implied. See the License for the specific language
2137
+ governing permissions and limitations under the License.
2138
+ */
2139
+
2140
+ var stringToBoolean = (str) => {
2141
+ return isString(str) && str.toLowerCase() === "true";
2142
+ };
2143
+
2144
+ /*
2145
+ Copyright 2022 Adobe. All rights reserved.
2146
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2147
+ you may not use this file except in compliance with the License. You may obtain a copy
2148
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2149
+
2150
+ Unless required by applicable law or agreed to in writing, software distributed under
2151
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2152
+ OF ANY KIND, either express or implied. See the License for the specific language
2153
+ governing permissions and limitations under the License.
2154
+ */
2155
+
2156
+
2157
+ /*
2158
+ * coerce `value` to a number or return `defaultValue` if it cannot be.
2159
+ *
2160
+ * The coersion is attempted if value is a number or string.
2161
+ */
2162
+ var toInteger = (value, defaultValue) => {
2163
+ if (isNumber(value) || isString(value)) {
2164
+ const n = Math.round(Number(value));
2165
+ if (!Number.isNaN(n)) {
2166
+ return n;
2167
+ }
2168
+ }
2169
+ return defaultValue;
2170
+ };
2171
+
2172
+ /*
2173
+ Copyright 2019 Adobe. All rights reserved.
2174
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2175
+ you may not use this file except in compliance with the License. You may obtain a copy
2176
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2177
+
2178
+ Unless required by applicable law or agreed to in writing, software distributed under
2179
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2180
+ OF ANY KIND, either express or implied. See the License for the specific language
2181
+ governing permissions and limitations under the License.
2182
+ */
2183
+
2184
+ /**
2185
+ * Add padString to the start of the string until it reaches the target length
2186
+ *
2187
+ * Different from String.prototype.padStart because this function coerces the
2188
+ * input to a string before padding.
2189
+ * @param {any} string
2190
+ * @param {number} targetLength
2191
+ * @param {string} padString
2192
+ * @returns {string}
2193
+ */
2194
+ const padStart = (string, targetLength, padString) => {
2195
+ return `${string}`.padStart(targetLength, padString);
2196
+ };
2197
+
2198
+ /**
2199
+ * Formats the date into an ISO date-time string in the local timezone
2200
+ * @param {Date} date
2201
+ * @returns {string}
2202
+ */
2203
+ var toISOStringLocal = (date) => {
2204
+ const YYYY = date.getFullYear();
2205
+ const MM = padStart(date.getMonth() + 1, 2, "0");
2206
+ const DD = padStart(date.getDate(), 2, "0");
2207
+
2208
+ const hh = padStart(date.getHours(), 2, "0");
2209
+ const mm = padStart(date.getMinutes(), 2, "0");
2210
+ const ss = padStart(date.getSeconds(), 2, "0");
2211
+ const mmm = padStart(date.getMilliseconds(), 3, "0");
2212
+
2213
+ // The time-zone offset is the difference, in minutes, from local time to UTC. Note that this
2214
+ // means that the offset is positive if the local timezone is behind UTC and negative if it is
2215
+ // ahead. For example, for time zone UTC+10:00, -600 will be returned.
2216
+ const timezoneOffset = toInteger(date.getTimezoneOffset(), 0);
2217
+ const ts = timezoneOffset > 0 ? "-" : "+";
2218
+ const th = padStart(Math.floor(Math.abs(timezoneOffset) / 60), 2, "0");
2219
+ const tm = padStart(Math.abs(timezoneOffset) % 60, 2, "0");
2220
+
2221
+ return `${YYYY}-${MM}-${DD}T${hh}:${mm}:${ss}.${mmm}${ts}${th}:${tm}`;
2222
+ };
2223
+
2224
+ /*
2225
+ Copyright 2023 Adobe. All rights reserved.
2226
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2227
+ you may not use this file except in compliance with the License. You may obtain a copy
2228
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2229
+
2230
+ Unless required by applicable law or agreed to in writing, software distributed under
2231
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2232
+ OF ANY KIND, either express or implied. See the License for the specific language
2233
+ governing permissions and limitations under the License.
2234
+ */
2235
+
2236
+ /**
2237
+ * Wraps a validator returning the value if it is null or undefined, otherwise
2238
+ * it will call the original validator and return the result.
2239
+ *
2240
+ * @param {function} validator - the validator to call if the value is not null
2241
+ */
2242
+ const skipIfNull = (validator) =>
2243
+ function skipIfNullValidator(value, path) {
2244
+ return value == null ? value : validator.call(this, value, path);
2245
+ };
2246
+
2247
+ /**
2248
+ * Returns a new validator that calls the first validator and then calls the second
2249
+ * validator with the result of the first validator. The result of the second validator
2250
+ * is returned.
2251
+ *
2252
+ * @param {function} firstValidator - validator to call first
2253
+ * @param {function} secondValidator - validator to call second
2254
+ * @returns {function} - a new validator that calls the first and second validators
2255
+ */
2256
+ const callSequentially = (firstValidator, secondValidator) =>
2257
+ function callSequentiallyValidator(value, path) {
2258
+ return secondValidator.call(
2259
+ this,
2260
+ firstValidator.call(this, value, path),
2261
+ path,
2262
+ );
2263
+ };
2264
+
2265
+ /**
2266
+ * Just like callSequentially, but if either validator throws an error, the errors
2267
+ * are collected and thrown at the end.
2268
+ *
2269
+ * @param {function} firstValidator
2270
+ * @param {function} secondValidator
2271
+ * @returns {function}
2272
+ */
2273
+ const callSequentiallyJoinErrors = (firstValidator, secondValidator) =>
2274
+ function callSequentiallyJoinErrorsValidator(value, path) {
2275
+ const errors = [];
2276
+ const newValue = [firstValidator, secondValidator].reduce(
2277
+ (memo, validator) => {
2278
+ try {
2279
+ return validator.call(this, memo, path);
2280
+ } catch (e) {
2281
+ errors.push(e);
2282
+ return memo;
2283
+ }
2284
+ },
2285
+ value,
2286
+ );
2287
+ if (errors.length) {
2288
+ throw new Error(errors.join("\n"));
2289
+ }
2290
+ return newValue;
2291
+ };
2292
+
2293
+ /**
2294
+ * Chains two validators together. In addition to calling the validators in
2295
+ * sequence, this will also copy over methods from the base validator to the
2296
+ * resulting validator and include any additional methods.
2297
+ *
2298
+ * @param {function} baseValidator - This validator will be called first, and its
2299
+ * methods will be copied over to the returned validator.
2300
+ * @param {function} newValidator - This validator will be called second.
2301
+ * @param {object} additionalMethods - Additional methods to include on the returned
2302
+ * validator.
2303
+ * @returns {function}
2304
+ */
2305
+ const chain = (baseValidator, newValidator, additionalMethods) => {
2306
+ return Object.assign(
2307
+ callSequentially(baseValidator, newValidator),
2308
+ baseValidator,
2309
+ additionalMethods,
2310
+ );
2311
+ };
2312
+
2313
+ /**
2314
+ * Chains two validators together, but skips the second validator if the value
2315
+ * is null. In addition to calling the validators in sequence, this will also
2316
+ * copy over methods from the base validator to the resulting validator and
2317
+ * include any additional methods.
2318
+ *
2319
+ * @param {function} baseValidator - This validator will be called first, and its
2320
+ * methods will be copied over to the returned validator.
2321
+ * @param {function} newValidator - This validator will be called second. If the value
2322
+ * is null after the first validator is called, this validator will not be
2323
+ * called.
2324
+ * @param {object} additionalMethods - Additional methods to include on the returned
2325
+ * validator.
2326
+ * @returns {function}
2327
+ */
2328
+ const nullSafeChain = (
2329
+ baseValidator,
2330
+ newValidator,
2331
+ additionalMethods,
2332
+ ) => {
2333
+ return Object.assign(
2334
+ callSequentially(baseValidator, skipIfNull(newValidator)),
2335
+ baseValidator,
2336
+ additionalMethods,
2337
+ );
2338
+ };
2339
+
2340
+ /**
2341
+ * Same as nullSafeChain, but calls the new validator first.
2342
+ *
2343
+ * @param {function} baseValidator - This validator will be called second, and its
2344
+ * methods will be copied over to the returned validator.
2345
+ * @param {function} newValidator - This validator will be called first. If the value
2346
+ * is null, this validator will not be called.
2347
+ * @param {function} additionalMethods - Additional methods to include on the returned
2348
+ * validator.
2349
+ * @returns {function}
2350
+ */
2351
+ const reverseNullSafeChainJoinErrors = (
2352
+ baseValidator,
2353
+ newValidator,
2354
+ additionalMethods,
2355
+ ) => {
2356
+ return Object.assign(
2357
+ callSequentiallyJoinErrors(skipIfNull(newValidator), baseValidator),
2358
+ baseValidator,
2359
+ additionalMethods,
2360
+ );
2361
+ };
2362
+
2363
+ /**
2364
+ * Throws an error if the value is not valid.
2365
+ *
2366
+ * @param {boolean} isValid - Whether or not the value is valid.
2367
+ * @param {*} value - The value to validate.
2368
+ * @param {string} path - The path to the value.
2369
+ * @param {string} message - The expected part of the error message.
2370
+ * @throws {Error} - Throws an error if the value is not valid.
2371
+ * @returns {void}
2372
+ */
2373
+ const assertValid = (isValid, value, path, message) => {
2374
+ if (!isValid) {
2375
+ throw new Error(
2376
+ `'${path}': Expected ${message}, but got ${JSON.stringify(value)}.`,
2377
+ );
2378
+ }
2379
+ };
2380
+
2381
+ /*
2382
+ Copyright 2019 Adobe. All rights reserved.
2383
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2384
+ you may not use this file except in compliance with the License. You may obtain a copy
2385
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2386
+
2387
+ Unless required by applicable law or agreed to in writing, software distributed under
2388
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2389
+ OF ANY KIND, either express or implied. See the License for the specific language
2390
+ governing permissions and limitations under the License.
2391
+ */
2392
+
2393
+
2394
+ var booleanValidator = (value, path) => {
2395
+ assertValid(isBoolean(value), value, path, "true or false");
2396
+ return value;
2397
+ };
2398
+
2399
+ /*
2400
+ Copyright 2019 Adobe. All rights reserved.
2401
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2402
+ you may not use this file except in compliance with the License. You may obtain a copy
2403
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2404
+
2405
+ Unless required by applicable law or agreed to in writing, software distributed under
2406
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2407
+ OF ANY KIND, either express or implied. See the License for the specific language
2408
+ governing permissions and limitations under the License.
2409
+ */
2410
+
2411
+ var callbackValidator = (value, path) => {
2412
+ assertValid(isFunction(value), value, path, "a function");
2413
+ return value;
2414
+ };
2415
+
2416
+ /*
2417
+ Copyright 2019 Adobe. All rights reserved.
2418
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2419
+ you may not use this file except in compliance with the License. You may obtain a copy
2420
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2421
+
2422
+ Unless required by applicable law or agreed to in writing, software distributed under
2423
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2424
+ OF ANY KIND, either express or implied. See the License for the specific language
2425
+ governing permissions and limitations under the License.
2426
+ */
2427
+
2428
+ var createAnyOfValidator = (validators, message) =>
2429
+ function anyOf(value, path) {
2430
+ let newValue;
2431
+ const valid = validators.find((validator) => {
2432
+ try {
2433
+ newValue = validator.call(this, value, path);
2434
+ return true;
2435
+ } catch {
2436
+ return false;
2437
+ }
2438
+ });
2439
+ assertValid(valid, value, path, message);
2440
+ return newValue;
2441
+ };
2442
+
2443
+ /*
2444
+ Copyright 2019 Adobe. All rights reserved.
2445
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2446
+ you may not use this file except in compliance with the License. You may obtain a copy
2447
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2448
+
2449
+ Unless required by applicable law or agreed to in writing, software distributed under
2450
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2451
+ OF ANY KIND, either express or implied. See the License for the specific language
2452
+ governing permissions and limitations under the License.
2453
+ */
2454
+
2455
+ var createArrayOfValidator = (elementValidator) =>
2456
+ function arrayOf(value, path) {
2457
+ assertValid(Array.isArray(value), value, path, "an array");
2458
+ const errors = [];
2459
+ const validatedArray = value.map((subValue, i) => {
2460
+ try {
2461
+ return elementValidator.call(this, subValue, `${path}[${i}]`, value);
2462
+ } catch (e) {
2463
+ errors.push(e.message);
2464
+ return undefined;
2465
+ }
2466
+ });
2467
+ if (errors.length) {
2468
+ throw new Error(errors.join("\n"));
2469
+ }
2470
+ return validatedArray;
2471
+ };
2472
+
2473
+ /*
2474
+ Copyright 2020 Adobe. All rights reserved.
2475
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2476
+ you may not use this file except in compliance with the License. You may obtain a copy
2477
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2478
+
2479
+ Unless required by applicable law or agreed to in writing, software distributed under
2480
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2481
+ OF ANY KIND, either express or implied. See the License for the specific language
2482
+ governing permissions and limitations under the License.
2483
+ */
2484
+
2485
+ var createDefaultValidator = (defaultValue) => (value) => {
2486
+ if (value == null) {
2487
+ return defaultValue;
2488
+ }
2489
+ return value;
2490
+ };
2491
+
2492
+ /*
2493
+ Copyright 2024 Adobe. All rights reserved.
2494
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2495
+ you may not use this file except in compliance with the License. You may obtain a copy
2496
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2497
+
2498
+ Unless required by applicable law or agreed to in writing, software distributed under
2499
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2500
+ OF ANY KIND, either express or implied. See the License for the specific language
2501
+ governing permissions and limitations under the License.
2502
+ */
2503
+
2504
+ var createDeprecatedValidator = (warning = "This field has been deprecated") =>
2505
+ function deprecated(value, path) {
2506
+ let message = warning;
2507
+ if (value !== undefined) {
2508
+ if (path) {
2509
+ message = `'${path}': ${message}`;
2510
+ }
2511
+ if (this && this.logger) {
2512
+ this.logger.warn(message);
2513
+ }
2514
+ }
2515
+ return value;
2516
+ };
2517
+
2518
+ /*
2519
+ Copyright 2020 Adobe. All rights reserved.
2520
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2521
+ you may not use this file except in compliance with the License. You may obtain a copy
2522
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2523
+
2524
+ Unless required by applicable law or agreed to in writing, software distributed under
2525
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2526
+ OF ANY KIND, either express or implied. See the License for the specific language
2527
+ governing permissions and limitations under the License.
2528
+ */
2529
+
2530
+ var createLiteralValidator = (literalValue) => (value, path) => {
2531
+ assertValid(value === literalValue, value, path, `${literalValue}`);
2532
+ return value;
2533
+ };
2534
+
2535
+ /*
2536
+ Copyright 2020 Adobe. All rights reserved.
2537
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2538
+ you may not use this file except in compliance with the License. You may obtain a copy
2539
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2540
+
2541
+ Unless required by applicable law or agreed to in writing, software distributed under
2542
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2543
+ OF ANY KIND, either express or implied. See the License for the specific language
2544
+ governing permissions and limitations under the License.
2545
+ */
2546
+
2547
+
2548
+ var createMapOfValuesValidator = (valueValidator) =>
2549
+ function mapOfValues(value, path) {
2550
+ assertValid(isObject(value), value, path, "an object");
2551
+
2552
+ const errors = [];
2553
+ const validatedObject = {};
2554
+ Object.keys(value).forEach((subKey) => {
2555
+ const subValue = value[subKey];
2556
+ const subPath = path ? `${path}.${subKey}` : subKey;
2557
+ try {
2558
+ const validatedValue = valueValidator.call(this, subValue, subPath);
2559
+ if (validatedValue !== undefined) {
2560
+ validatedObject[subKey] = validatedValue;
2561
+ }
2562
+ } catch (e) {
2563
+ errors.push(e.message);
2564
+ }
2565
+ });
2566
+
2567
+ if (errors.length) {
2568
+ throw new Error(errors.join("\n"));
2569
+ }
2570
+
2571
+ return validatedObject;
2572
+ };
2573
+
2574
+ /*
2575
+ Copyright 2019 Adobe. All rights reserved.
2576
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2577
+ you may not use this file except in compliance with the License. You may obtain a copy
2578
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2579
+
2580
+ Unless required by applicable law or agreed to in writing, software distributed under
2581
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2582
+ OF ANY KIND, either express or implied. See the License for the specific language
2583
+ governing permissions and limitations under the License.
2584
+ */
2585
+
2586
+ var createMinimumValidator = (typeName, minimum) => (value, path) => {
2587
+ assertValid(
2588
+ value >= minimum,
2589
+ value,
2590
+ path,
2591
+ `${typeName} greater than or equal to ${minimum}`,
2592
+ );
2593
+ return value;
2594
+ };
2595
+
2596
+ /*
2597
+ Copyright 2023 Adobe. All rights reserved.
2598
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2599
+ you may not use this file except in compliance with the License. You may obtain a copy
2600
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2601
+
2602
+ Unless required by applicable law or agreed to in writing, software distributed under
2603
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2604
+ OF ANY KIND, either express or implied. See the License for the specific language
2605
+ governing permissions and limitations under the License.
2606
+ */
2607
+
2608
+ var createMaximumValidator = (typeName, maximum) => (value, path) => {
2609
+ assertValid(
2610
+ value <= maximum,
2611
+ value,
2612
+ path,
2613
+ `${typeName} less than or equal to ${maximum}`,
2614
+ );
2615
+ return value;
2616
+ };
2617
+
2618
+ /*
2619
+ Copyright 2020 Adobe. All rights reserved.
2620
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2621
+ you may not use this file except in compliance with the License. You may obtain a copy
2622
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2623
+
2624
+ Unless required by applicable law or agreed to in writing, software distributed under
2625
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2626
+ OF ANY KIND, either express or implied. See the License for the specific language
2627
+ governing permissions and limitations under the License.
2628
+ */
2629
+
2630
+ var createNoUnknownFieldsValidator = (schema) => (value, path) => {
2631
+ const errors = [];
2632
+ Object.keys(value).forEach((subKey) => {
2633
+ if (!schema[subKey]) {
2634
+ const subPath = path ? `${path}.${subKey}` : subKey;
2635
+ errors.push(`'${subPath}': Unknown field.`);
2636
+ }
2637
+ });
2638
+
2639
+ if (errors.length) {
2640
+ throw new Error(errors.join("\n"));
2641
+ }
2642
+
2643
+ return value;
2644
+ };
2645
+
2646
+ /*
2647
+ Copyright 2019 Adobe. All rights reserved.
2648
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2649
+ you may not use this file except in compliance with the License. You may obtain a copy
2650
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2651
+
2652
+ Unless required by applicable law or agreed to in writing, software distributed under
2653
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2654
+ OF ANY KIND, either express or implied. See the License for the specific language
2655
+ governing permissions and limitations under the License.
2656
+ */
2657
+
2658
+
2659
+ var createNonEmptyValidator = (message) => (value, path) => {
2660
+ if (isObject(value)) {
2661
+ assertValid(!isEmptyObject(value), value, path, message);
2662
+ } else {
2663
+ assertValid(value.length > 0, value, path, message);
2664
+ }
2665
+ return value;
2666
+ };
2667
+
2668
+ /*
2669
+ Copyright 2020 Adobe. All rights reserved.
2670
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2671
+ you may not use this file except in compliance with the License. You may obtain a copy
2672
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2673
+
2674
+ Unless required by applicable law or agreed to in writing, software distributed under
2675
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2676
+ OF ANY KIND, either express or implied. See the License for the specific language
2677
+ governing permissions and limitations under the License.
2678
+ */
2679
+
2680
+
2681
+ var createObjectOfValidator = (schema) =>
2682
+ function objectOf(value, path) {
2683
+ assertValid(isObject(value), value, path, "an object");
2684
+
2685
+ const errors = [];
2686
+ const validatedObject = {};
2687
+ Object.keys(schema).forEach((subKey) => {
2688
+ const subValue = value[subKey];
2689
+ const subSchema = schema[subKey];
2690
+ const subPath = path ? `${path}.${subKey}` : subKey;
2691
+ try {
2692
+ const validatedValue = subSchema.call(this, subValue, subPath);
2693
+ if (validatedValue !== undefined) {
2694
+ validatedObject[subKey] = validatedValue;
2695
+ }
2696
+ } catch (e) {
2697
+ errors.push(e.message);
2698
+ }
2699
+ });
2700
+
2701
+ // copy over unknown properties
2702
+ Object.keys(value).forEach((subKey) => {
2703
+ if (!Object.prototype.hasOwnProperty.call(validatedObject, subKey)) {
2704
+ validatedObject[subKey] = value[subKey];
2705
+ }
2706
+ });
2707
+
2708
+ if (errors.length) {
2709
+ throw new Error(errors.join("\n"));
2710
+ }
2711
+ return validatedObject;
2712
+ };
2713
+
2714
+ /*
2715
+ Copyright 2023 Adobe. All rights reserved.
2716
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2717
+ you may not use this file except in compliance with the License. You may obtain a copy
2718
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2719
+
2720
+ Unless required by applicable law or agreed to in writing, software distributed under
2721
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2722
+ OF ANY KIND, either express or implied. See the License for the specific language
2723
+ governing permissions and limitations under the License.
2724
+ */
2725
+
2726
+ var createRenamedValidator = (oldField, oldSchema, newField) =>
2727
+ function deprecated(value, path) {
2728
+ assertValid(isObject(value), value, path, "an object");
2729
+
2730
+ const {
2731
+ [oldField]: oldValue,
2732
+ [newField]: newValue,
2733
+ ...otherValues
2734
+ } = value;
2735
+ const validatedOldValue = oldSchema(oldValue, path);
2736
+
2737
+ if (validatedOldValue !== undefined) {
2738
+ let message = `The field '${oldField}' is deprecated. Use '${newField}' instead.`;
2739
+ if (path) {
2740
+ message = `'${path}': ${message}`;
2741
+ }
2742
+ if (newValue !== undefined && newValue !== validatedOldValue) {
2743
+ throw new Error(message);
2744
+ } else if (this && this.logger) {
2745
+ this.logger.warn(message);
2746
+ }
2747
+ }
2748
+ return {
2749
+ [newField]: newValue || validatedOldValue,
2750
+ ...otherValues,
2751
+ };
2752
+ };
2753
+
2754
+ /*
2755
+ Copyright 2019 Adobe. All rights reserved.
2756
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2757
+ you may not use this file except in compliance with the License. You may obtain a copy
2758
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2759
+
2760
+ Unless required by applicable law or agreed to in writing, software distributed under
2761
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2762
+ OF ANY KIND, either express or implied. See the License for the specific language
2763
+ governing permissions and limitations under the License.
2764
+ */
2765
+
2766
+
2767
+ var createUniqueValidator = () => {
2768
+ const values = [];
2769
+ return (value, path) => {
2770
+ assertValid(
2771
+ values.indexOf(value) === -1,
2772
+ value,
2773
+ path,
2774
+ "a unique value across instances",
2775
+ );
2776
+ values.push(value);
2777
+ return value;
2778
+ };
2779
+ };
2780
+
2781
+ /*
2782
+ Copyright 2022 Adobe. All rights reserved.
2783
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2784
+ you may not use this file except in compliance with the License. You may obtain a copy
2785
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2786
+
2787
+ Unless required by applicable law or agreed to in writing, software distributed under
2788
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2789
+ OF ANY KIND, either express or implied. See the License for the specific language
2790
+ governing permissions and limitations under the License.
2791
+ */
2792
+ /**
2793
+ * Returns whether an array contains unique values.
2794
+ * @param {*} value
2795
+ * @returns {boolean}
2796
+ */
2797
+ var isUnique = (values) => {
2798
+ const storedVals = Object.create(null);
2799
+ for (let i = 0; i < values.length; i += 1) {
2800
+ const item = values[i];
2801
+ if (item in storedVals) {
2802
+ return false;
2803
+ }
2804
+ storedVals[item] = true;
2805
+ }
2806
+ return true;
2807
+ };
2808
+
2809
+ /*
2810
+ Copyright 2022 Adobe. All rights reserved.
2811
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2812
+ you may not use this file except in compliance with the License. You may obtain a copy
2813
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2814
+
2815
+ Unless required by applicable law or agreed to in writing, software distributed under
2816
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2817
+ OF ANY KIND, either express or implied. See the License for the specific language
2818
+ governing permissions and limitations under the License.
2819
+ */
2820
+
2821
+ var createUniqueItemsValidator = () => {
2822
+ return (value, path) => {
2823
+ assertValid(isUnique(value), value, path, "array values to be unique");
2824
+ return value;
2825
+ };
2826
+ };
2827
+
2828
+ /*
2829
+ Copyright 2019 Adobe. All rights reserved.
2830
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2831
+ you may not use this file except in compliance with the License. You may obtain a copy
2832
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2833
+
2834
+ Unless required by applicable law or agreed to in writing, software distributed under
2835
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2836
+ OF ANY KIND, either express or implied. See the License for the specific language
2837
+ governing permissions and limitations under the License.
2838
+ */
2839
+
2840
+ const DOMAIN_REGEX = /^[a-z0-9.-]{1,}$/i;
2841
+
2842
+ var domainValidator = (value, path) => {
2843
+ assertValid(DOMAIN_REGEX.test(value), value, path, "a valid domain");
2844
+ return value;
2845
+ };
2846
+
2847
+ /*
2848
+ Copyright 2019 Adobe. All rights reserved.
2849
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2850
+ you may not use this file except in compliance with the License. You may obtain a copy
2851
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2852
+
2853
+ Unless required by applicable law or agreed to in writing, software distributed under
2854
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2855
+ OF ANY KIND, either express or implied. See the License for the specific language
2856
+ governing permissions and limitations under the License.
2857
+ */
2858
+
2859
+
2860
+ var integerValidator = (value, path) => {
2861
+ assertValid(isInteger(value), value, path, "an integer");
2862
+ return value;
2863
+ };
2864
+
2865
+ /*
2866
+ Copyright 2019 Adobe. All rights reserved.
2867
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2868
+ you may not use this file except in compliance with the License. You may obtain a copy
2869
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2870
+
2871
+ Unless required by applicable law or agreed to in writing, software distributed under
2872
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2873
+ OF ANY KIND, either express or implied. See the License for the specific language
2874
+ governing permissions and limitations under the License.
2875
+ */
2876
+
2877
+
2878
+ var numberValidator = (value, path) => {
2879
+ assertValid(isNumber(value), value, path, "a number");
2880
+ return value;
2881
+ };
2882
+
2883
+ /*
2884
+ Copyright 2019 Adobe. All rights reserved.
2885
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2886
+ you may not use this file except in compliance with the License. You may obtain a copy
2887
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2888
+
2889
+ Unless required by applicable law or agreed to in writing, software distributed under
2890
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2891
+ OF ANY KIND, either express or implied. See the License for the specific language
2892
+ governing permissions and limitations under the License.
2893
+ */
2894
+
2895
+ /**
2896
+ * Determines whether the value is a valid regular expression.
2897
+ * @param {*} value
2898
+ * @returns {boolean}
2899
+ */
2900
+ var isValidRegExp = (value) => {
2901
+ try {
2902
+ return RegExp(value) !== null;
2903
+ } catch {
2904
+ return false;
2905
+ }
2906
+ };
2907
+
2908
+ /*
2909
+ Copyright 2019 Adobe. All rights reserved.
2910
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2911
+ you may not use this file except in compliance with the License. You may obtain a copy
2912
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2913
+
2914
+ Unless required by applicable law or agreed to in writing, software distributed under
2915
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2916
+ OF ANY KIND, either express or implied. See the License for the specific language
2917
+ governing permissions and limitations under the License.
2918
+ */
2919
+
2920
+
2921
+ var regexpValidator = (value, path) => {
2922
+ assertValid(isValidRegExp(value), value, path, "a regular expression");
2923
+ return value;
2924
+ };
2925
+
2926
+ /*
2927
+ Copyright 2020 Adobe. All rights reserved.
2928
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2929
+ you may not use this file except in compliance with the License. You may obtain a copy
2930
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2931
+
2932
+ Unless required by applicable law or agreed to in writing, software distributed under
2933
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2934
+ OF ANY KIND, either express or implied. See the License for the specific language
2935
+ governing permissions and limitations under the License.
2936
+ */
2937
+
2938
+ var requiredValidator = (value, path) => {
2939
+ if (value == null) {
2940
+ throw new Error(`'${path}' is a required option`);
2941
+ }
2942
+ return value;
2943
+ };
2944
+
2945
+ /*
2946
+ Copyright 2019 Adobe. All rights reserved.
2947
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2948
+ you may not use this file except in compliance with the License. You may obtain a copy
2949
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2950
+
2951
+ Unless required by applicable law or agreed to in writing, software distributed under
2952
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2953
+ OF ANY KIND, either express or implied. See the License for the specific language
2954
+ governing permissions and limitations under the License.
2955
+ */
2956
+
2957
+ var stringValidator = (value, path) => {
2958
+ assertValid(isString(value), value, path, "a string");
2959
+ return value;
2960
+ };
2961
+
2962
+ /*
2963
+ Copyright 2023 Adobe. All rights reserved.
2964
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2965
+ you may not use this file except in compliance with the License. You may obtain a copy
2966
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2967
+
2968
+ Unless required by applicable law or agreed to in writing, software distributed under
2969
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2970
+ OF ANY KIND, either express or implied. See the License for the specific language
2971
+ governing permissions and limitations under the License.
2972
+ */
2973
+
2974
+
2975
+ var matchesRegexpValidator = (regexp) => (value, path) => {
2976
+ assertValid(
2977
+ regexp.test(value),
2978
+ value,
2979
+ path,
2980
+ `does not match the ${regexp.toString()}`,
2981
+ );
2982
+ return value;
2983
+ };
2984
+
2985
+ /*
2986
+ Copyright 2020 Adobe. All rights reserved.
2987
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
2988
+ you may not use this file except in compliance with the License. You may obtain a copy
2989
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
2990
+
2991
+ Unless required by applicable law or agreed to in writing, software distributed under
2992
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
2993
+ OF ANY KIND, either express or implied. See the License for the specific language
2994
+ governing permissions and limitations under the License.
2995
+ */
2996
+
2997
+
2998
+ // The base validator does no validation and just returns the value unchanged
2999
+ const base = (value) => value;
3000
+
3001
+ // The 'default', 'required', and 'deprecated' methods are available after any
3002
+ // data-type method. Don't use the nullSafeChain on 'default' or 'required'
3003
+ // because they need to handle the null or undefined case
3004
+ base.default = function _default(defaultValue) {
3005
+ return chain(this, createDefaultValidator(defaultValue));
3006
+ };
3007
+ base.required = function required() {
3008
+ return chain(this, requiredValidator);
3009
+ };
3010
+ base.deprecated = function deprecated(message) {
3011
+ return chain(this, createDeprecatedValidator(message));
3012
+ };
3013
+
3014
+ // helper validators
3015
+ const domain = function domain() {
3016
+ return nullSafeChain(this, domainValidator);
3017
+ };
3018
+ const minimumInteger = function minimumInteger(minValue) {
3019
+ return nullSafeChain(this, createMinimumValidator("an integer", minValue));
3020
+ };
3021
+ const minimumNumber = function minimumNumber(minValue) {
3022
+ return nullSafeChain(this, createMinimumValidator("a number", minValue));
3023
+ };
3024
+ const maximumNumber = function maximumNumber(maxValue) {
3025
+ return nullSafeChain(this, createMaximumValidator("a number", maxValue));
3026
+ };
3027
+ const integer = function integer() {
3028
+ return nullSafeChain(this, integerValidator, { minimum: minimumInteger });
3029
+ };
3030
+ const nonEmptyString = function nonEmptyString() {
3031
+ return nullSafeChain(this, createNonEmptyValidator("a non-empty string"));
3032
+ };
3033
+ const nonEmptyArray = function nonEmptyArray() {
3034
+ return nullSafeChain(this, createNonEmptyValidator("a non-empty array"));
3035
+ };
3036
+ const nonEmptyObject = function nonEmptyObject() {
3037
+ return nullSafeChain(this, createNonEmptyValidator("a non-empty object"));
3038
+ };
3039
+ const regexp = function regexp() {
3040
+ return nullSafeChain(this, regexpValidator);
3041
+ };
3042
+ const matches = function matches(regexpPattern) {
3043
+ return nullSafeChain(this, matchesRegexpValidator(regexpPattern));
3044
+ };
3045
+ const unique = function createUnique() {
3046
+ return nullSafeChain(this, createUniqueValidator());
3047
+ };
3048
+ const uniqueItems = function createUniqueItems() {
3049
+ return nullSafeChain(this, createUniqueItemsValidator());
3050
+ };
3051
+
3052
+ // top-level validators. These are the first functions that are called to create a validator.
3053
+ const anyOf = function anyOf(validators, message) {
3054
+ // use chain here because we don't want to accept null or undefined unless at least
3055
+ // one of the validators accept null or undefined.
3056
+ return chain(this, createAnyOfValidator(validators, message));
3057
+ };
3058
+ const anything = function anything() {
3059
+ return this;
3060
+ };
3061
+ const arrayOf = function arrayOf(elementValidator) {
3062
+ return nullSafeChain(this, createArrayOfValidator(elementValidator), {
3063
+ nonEmpty: nonEmptyArray,
3064
+ uniqueItems,
3065
+ });
3066
+ };
3067
+ const boolean = function boolean() {
3068
+ return nullSafeChain(this, booleanValidator);
3069
+ };
3070
+ const callback = function callback() {
3071
+ return nullSafeChain(this, callbackValidator);
3072
+ };
3073
+ const literal = function literal(literalValue) {
3074
+ return nullSafeChain(this, createLiteralValidator(literalValue));
3075
+ };
3076
+ const number = function number() {
3077
+ return nullSafeChain(this, numberValidator, {
3078
+ minimum: minimumNumber,
3079
+ maximum: maximumNumber,
3080
+ integer,
3081
+ unique,
3082
+ });
3083
+ };
3084
+ const mapOfValues = function mapOfValues(valuesValidator) {
3085
+ return nullSafeChain(this, createMapOfValuesValidator(valuesValidator), {
3086
+ nonEmpty: nonEmptyObject,
3087
+ });
3088
+ };
3089
+ const createObjectOfAdditionalProperties = (schema) => ({
3090
+ noUnknownFields: function noUnknownFields() {
3091
+ return nullSafeChain(this, createNoUnknownFieldsValidator(schema));
3092
+ },
3093
+ nonEmpty: nonEmptyObject,
3094
+ concat: function concat(otherObjectOfValidator) {
3095
+ // combine the schema so that noUnknownFields, and concat have the combined schema
3096
+ const newSchema = { ...schema, ...otherObjectOfValidator.schema };
3097
+ return nullSafeChain(
3098
+ this,
3099
+ otherObjectOfValidator,
3100
+ createObjectOfAdditionalProperties(newSchema),
3101
+ );
3102
+ },
3103
+ renamed: function renamed(oldField, oldSchema, newField) {
3104
+ // Run the deprecated validator first so that the deprecated field is removed
3105
+ // before the objectOf validator runs.
3106
+ return reverseNullSafeChainJoinErrors(
3107
+ this,
3108
+ createRenamedValidator(oldField, oldSchema, newField),
3109
+ );
3110
+ },
3111
+ schema,
3112
+ });
3113
+ const objectOf = function objectOf(schema) {
3114
+ return nullSafeChain(
3115
+ this,
3116
+ createObjectOfValidator(schema),
3117
+ createObjectOfAdditionalProperties(schema),
3118
+ );
3119
+ };
3120
+ const string = function string() {
3121
+ return nullSafeChain(this, stringValidator, {
3122
+ regexp,
3123
+ domain,
3124
+ nonEmpty: nonEmptyString,
3125
+ unique,
3126
+ matches,
3127
+ });
3128
+ };
3129
+
3130
+ const boundAnyOf = anyOf.bind(base);
3131
+ anything.bind(base);
3132
+ const boundArrayOf = arrayOf.bind(base);
3133
+ const boundBoolean = boolean.bind(base);
3134
+ callback.bind(base);
3135
+ const boundLiteral = literal.bind(base);
3136
+ number.bind(base);
3137
+ const boundMapOfValues = mapOfValues.bind(base);
3138
+ const boundObjectOf = objectOf.bind(base);
3139
+ const boundString = string.bind(base);
3140
+
3141
+ // compound validators
3142
+ const boundEnumOf = function boundEnumOf(...values) {
3143
+ return boundAnyOf(
3144
+ values.map(boundLiteral),
3145
+ `one of these values: ${JSON.stringify(values)}`,
3146
+ );
3147
+ };
3148
+
3149
+ /*
3150
+ Copyright 2023 Adobe. All rights reserved.
3151
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
3152
+ you may not use this file except in compliance with the License. You may obtain a copy
3153
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
3154
+
3155
+ Unless required by applicable law or agreed to in writing, software distributed under
3156
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
3157
+ OF ANY KIND, either express or implied. See the License for the specific language
3158
+ governing permissions and limitations under the License.
3159
+ */
3160
+ const AMBIGUOUS = "ambiguous";
3161
+ const AUTHENTICATED = "authenticated";
3162
+ const LOGGED_OUT = "loggedOut";
3163
+
3164
+ /*
3165
+ Copyright 2020 Adobe. All rights reserved.
3166
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
3167
+ you may not use this file except in compliance with the License. You may obtain a copy
3168
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
3169
+
3170
+ Unless required by applicable law or agreed to in writing, software distributed under
3171
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
3172
+ OF ANY KIND, either express or implied. See the License for the specific language
3173
+ governing permissions and limitations under the License.
3174
+ */
3175
+
3176
+
3177
+ var validateIdentityMap = boundMapOfValues(
3178
+ boundArrayOf(
3179
+ boundObjectOf({
3180
+ authenticatedState: boundEnumOf(AMBIGUOUS, AUTHENTICATED, LOGGED_OUT),
3181
+ id: boundString(),
3182
+ namespace: boundObjectOf({
3183
+ code: boundString(),
3184
+ }).noUnknownFields(),
3185
+ primary: boundBoolean(),
3186
+ xid: boundString(),
3187
+ }).noUnknownFields(),
3188
+ ).required(),
3189
+ );
3190
+
3191
+ /*
3192
+ Copyright 2022 Adobe. All rights reserved.
3193
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
3194
+ you may not use this file except in compliance with the License. You may obtain a copy
3195
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
3196
+
3197
+ Unless required by applicable law or agreed to in writing, software distributed under
3198
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
3199
+ OF ANY KIND, either express or implied. See the License for the specific language
3200
+ governing permissions and limitations under the License.
3201
+ */
3202
+
3203
+
3204
+ var validateConfigOverride = boundObjectOf({});
3205
+
3206
+ export { assignConcatArrayValues, clone, cookieJar, createCallbackAggregator, createEventMergeId, createLoggingCookieJar, createMerger, createTaskQueue, deduplicateArray, deepAssign, defer, filterObject, fireImageInDocument as fireImage, fnv1a32Hex, getApexDomain, getLastArrayItems, getNamespacedCookieName, groupBy, injectAreThirdPartyCookiesSupportedByDefault, injectDoesIdentityCookieExist, injectFireReferrerHideableImage, injectGetBrowser, injectStorage, intersection, isBoolean, isEmptyObject, isFunction, isInteger, isNamespacedCookieName, isNil, isNonEmptyArray, isNonEmptyString, isNumber, isObject, isString, noop, parseUrl, prepareConfigOverridesForEdge, queryString, sanitizeOrgIdForCookieName, sortObjectKeysRecursively, stackError, stringToBoolean, toArray, toError, toISOStringLocal, toInteger, updateErrorMessage, v4 as uuid, validateConfigOverride, validateIdentityMap };