@rudderstack/analytics-js 3.11.16 → 3.11.17

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.
@@ -465,7 +465,7 @@
465
465
  * @returns Instance of Error with message prepended with issue
466
466
  */const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
467
467
 
468
- const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.16';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
468
+ const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.17';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
469
469
 
470
470
  const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
471
471
 
@@ -965,170 +965,170 @@
965
965
  * @returns Destinations array filtered based on the integration options
966
966
  */const filterDestinations=(intgOpts,destinations)=>{const allOptVal=intgOpts.All??true;return destinations.filter(dest=>{const destDisplayName=dest.displayName;let isDestEnabled;if(allOptVal){isDestEnabled=true;if(isDestIntgConfigFalsy(intgOpts[destDisplayName])){isDestEnabled=false;}}else {isDestEnabled=false;if(isDestIntgConfigTruthy(intgOpts[destDisplayName])){isDestEnabled=true;}}return isDestEnabled;});};
967
967
 
968
- const DIR_NAME$1g='AdobeAnalytics';const DISPLAY_NAME$1g='Adobe Analytics';
968
+ const ACTIVE_CAMPAIGN_DISPLAY_NAME='ActiveCampaign';const ADOBE_ANALYTICS_DISPLAY_NAME='Adobe Analytics';const ADROLL_DISPLAY_NAME='Adroll';const AM_DISPLAY_NAME='Amplitude';const APPCUES_DISPLAY_NAME='Appcues';const AXEPTIO_DISPLAY_NAME='Axeptio';const BINGADS_DISPLAY_NAME='Bing Ads';const BRAZE_DISPLAY_NAME='Braze';const BUGSNAG_DISPLAY_NAME='Bugsnag';const CHARTBEAT_DISPLAY_NAME='Chartbeat';const CLEVERTAP_DISPLAY_NAME='CleverTap';const COMMANDBAR_DISPLAY_NAME='CommandBar';const CONVERTFLOW_DISPLAY_NAME='Convertflow';const CRITEO_DISPLAY_NAME='Criteo';const CUSTOMERIO_DISPLAY_NAME='Customer IO';const DCM_FLOODLIGHT_DISPLAY_NAME='DCM Floodlight';const DRIP_DISPLAY_NAME='Drip';const ENGAGE_DISPLAY_NAME='Engage';const FACEBOOK_PIXEL_DISPLAY_NAME='Facebook Pixel';const FULLSTORY_DISPLAY_NAME='Fullstory';const GA_DISPLAY_NAME='Google Analytics';const GA360_DISPLAY_NAME='Google Analytics 360';const GA4_DISPLAY_NAME='Google Analytics 4 (GA4)';const GA4_V2_DISPLAY_NAME='Google Analytics 4 (GA4) V2';const GAINSIGHT_PX_DISPLAY_NAME='Gainsight PX';const GOOGLE_OPTIMIZE_DISPLAY_NAME='Google Optimize';const GOOGLEADS_DISPLAY_NAME='Google Ads';const GTM_DISPLAY_NAME='Google Tag Manager';const HEAP_DISPLAY_NAME='Heap.io';const HOTJAR_DISPLAY_NAME='Hotjar';const HS_DISPLAY_NAME='HubSpot';const INTERCOM_DISPLAY_NAME='Intercom';const ITERABLE_DISPLAY_NAME='Iterable';const JUNE_DISPLAY_NAME='JUNE';const KEEN_DISPLAY_NAME='Keen';const KISSMETRICS_DISPLAY_NAME='Kiss Metrics';const KLAVIYO_DISPLAY_NAME='Klaviyo';const LAUNCHDARKLY_DISPLAY_NAME='LaunchDarkly';const LEMNISK_DISPLAY_NAME='Lemnisk Marketing Automation';const LINKEDIN_INSIGHT_TAG_DISPLAY_NAME='Linkedin Insight Tag';const LIVECHAT_DISPLAY_NAME='livechat';const LOTAME_DISPLAY_NAME='Lotame';const LYTICS_DISPLAY_NAME='Lytics';const MATOMO_DISPLAY_NAME='Matomo';const MICROSOFT_CLARITY_DISPLAY_NAME='Microsoft Clarity';const MOENGAGE_DISPLAY_NAME='MoEngage';const MOUSEFLOW_DISPLAY_NAME='Mouseflow';const MP_DISPLAY_NAME='Mixpanel';const NINETAILED_DISPLAY_NAME='Ninetailed';const OLARK_DISPLAY_NAME='Olark';const OPTIMIZELY_DISPLAY_NAME='Optimizely Web';const PENDO_DISPLAY_NAME='Pendo';const PINTEREST_TAG_DISPLAY_NAME='Pinterest Tag';const PODSIGHTS_DISPLAY_NAME='Podsights';const POST_AFFILIATE_PRO_DISPLAY_NAME='Post Affiliate Pro';const POSTHOG_DISPLAY_NAME='PostHog';const PROFITWELL_DISPLAY_NAME='ProfitWell';const QUALAROO_DISPLAY_NAME='Qualaroo';const QUALTRICS_DISPLAY_NAME='Qualtrics';const QUANTUMMETRIC_DISPLAY_NAME='Quantum Metric';const QUORA_PIXEL_DISPLAY_NAME='Quora Pixel';const REDDIT_PIXEL_DISPLAY_NAME='Reddit Pixel';const REFINER_DISPLAY_NAME='Refiner';const ROCKERBOX_DISPLAY_NAME='Rockerbox';const ROLLBAR_DISPLAY_NAME='rollbar';const SATISMETER_DISPLAY_NAME='SatisMeter';const SENDINBLUE_DISPLAY_NAME='Sendinblue';const SENTRY_DISPLAY_NAME='Sentry';const SHYNET_DISPLAY_NAME='Shynet';const SNAP_PIXEL_DISPLAY_NAME='Snap Pixel';const SNAPENGAGE_DISPLAY_NAME='SnapEngage';const SPOTIFYPIXEL_DISPLAY_NAME='Spotify Pixel';const SPRIG_DISPLAY_NAME='Sprig';const TIKTOK_ADS_DISPLAY_NAME='TikTok Ads';const TVSQUARED_DISPLAY_NAME='TVSquared';const VERO_DISPLAY_NAME='Vero';const VWO_DISPLAY_NAME='VWO';const WOOPRA_DISPLAY_NAME='WOOPRA';const XPIXEL_DISPLAY_NAME='XPixel';const YANDEX_METRICA_DISPLAY_NAME='Yandex.Metrica';
969
969
 
970
- const DIR_NAME$1f='Amplitude';const DISPLAY_NAME$1f='Amplitude';
970
+ const DIR_NAME$1f='AdobeAnalytics';
971
971
 
972
- const DIR_NAME$1e='Appcues';const DISPLAY_NAME$1e='Appcues';
972
+ const DIR_NAME$1e='Amplitude';
973
973
 
974
- const DIR_NAME$1d='BingAds';const DISPLAY_NAME$1d='Bing Ads';
974
+ const DIR_NAME$1d='Appcues';
975
975
 
976
- const DIR_NAME$1c='Braze';const DISPLAY_NAME$1c='Braze';
976
+ const DIR_NAME$1c='BingAds';
977
977
 
978
- const DIR_NAME$1b='Bugsnag';const DISPLAY_NAME$1b='Bugsnag';
978
+ const DIR_NAME$1b='Braze';
979
979
 
980
- const DIR_NAME$1a='Chartbeat';const DISPLAY_NAME$1a='Chartbeat';
980
+ const DIR_NAME$1a='Bugsnag';
981
981
 
982
- const DIR_NAME$19='Clevertap';const DISPLAY_NAME$19='CleverTap';
982
+ const DIR_NAME$19='Chartbeat';
983
983
 
984
- const DIR_NAME$18='Comscore';const DISPLAY_NAME$18='Comscore';
984
+ const DIR_NAME$18='Clevertap';
985
985
 
986
- const DIR_NAME$17='Criteo';const DISPLAY_NAME$17='Criteo';
986
+ const DIR_NAME$17='Criteo';
987
987
 
988
- const DIR_NAME$16='CustomerIO';const DISPLAY_NAME$16='Customer IO';
988
+ const DIR_NAME$16='CustomerIO';
989
989
 
990
- const DIR_NAME$15='Drip';const DISPLAY_NAME$15='Drip';
990
+ const DIR_NAME$15='Drip';
991
991
 
992
- const DIR_NAME$14='FacebookPixel';const DISPLAY_NAME$14='Facebook Pixel';
992
+ const DIR_NAME$14='FacebookPixel';
993
993
 
994
- const DIR_NAME$13='Fullstory';const DISPLAY_NAME$13='Fullstory';
994
+ const DIR_NAME$13='Fullstory';
995
995
 
996
- const DIR_NAME$12='GA';const DISPLAY_NAME$12='Google Analytics';
996
+ const DIR_NAME$12='GA';
997
997
 
998
- const DIR_NAME$11='GA4';const DISPLAY_NAME$11='Google Analytics 4 (GA4)';
998
+ const DIR_NAME$11='GA4';
999
999
 
1000
- const DIR_NAME$10='GA4_V2';const DISPLAY_NAME$10='Google Analytics 4 (GA4) V2';
1000
+ const DIR_NAME$10='GA4_V2';
1001
1001
 
1002
- const DIR_NAME$$='GoogleAds';const DISPLAY_NAME$$='Google Ads';
1002
+ const DIR_NAME$$='GoogleAds';
1003
1003
 
1004
- const DIR_NAME$_='GoogleOptimize';const DISPLAY_NAME$_='Google Optimize';
1004
+ const DIR_NAME$_='GoogleOptimize';
1005
1005
 
1006
- const DIR_NAME$Z='GoogleTagManager';const DISPLAY_NAME$Z='Google Tag Manager';
1006
+ const DIR_NAME$Z='GoogleTagManager';
1007
1007
 
1008
- const DIR_NAME$Y='Heap';const DISPLAY_NAME$Y='Heap.io';
1008
+ const DIR_NAME$Y='Heap';
1009
1009
 
1010
- const DIR_NAME$X='Hotjar';const DISPLAY_NAME$X='Hotjar';
1010
+ const DIR_NAME$X='Hotjar';
1011
1011
 
1012
- const DIR_NAME$W='HubSpot';const DISPLAY_NAME$W='HubSpot';
1012
+ const DIR_NAME$W='HubSpot';
1013
1013
 
1014
- const DIR_NAME$V='INTERCOM';const DISPLAY_NAME$V='Intercom';
1014
+ const DIR_NAME$V='INTERCOM';
1015
1015
 
1016
- const DIR_NAME$U='Keen';const DISPLAY_NAME$U='Keen';
1016
+ const DIR_NAME$U='Keen';
1017
1017
 
1018
- const DIR_NAME$T='Kissmetrics';const DISPLAY_NAME$T='Kiss Metrics';
1018
+ const DIR_NAME$T='Kissmetrics';
1019
1019
 
1020
- const DIR_NAME$S='Klaviyo';const DISPLAY_NAME$S='Klaviyo';
1020
+ const DIR_NAME$S='Klaviyo';
1021
1021
 
1022
- const DIR_NAME$R='LaunchDarkly';const DISPLAY_NAME$R='LaunchDarkly';
1022
+ const DIR_NAME$R='LaunchDarkly';
1023
1023
 
1024
- const DIR_NAME$Q='LinkedInInsightTag';const DISPLAY_NAME$Q='Linkedin Insight Tag';
1024
+ const DIR_NAME$Q='LinkedInInsightTag';
1025
1025
 
1026
- const DIR_NAME$P='Lotame';const DISPLAY_NAME$P='Lotame';
1026
+ const DIR_NAME$P='Lotame';
1027
1027
 
1028
- const DIR_NAME$O='Lytics';const DISPLAY_NAME$O='Lytics';
1028
+ const DIR_NAME$O='Lytics';
1029
1029
 
1030
- const DIR_NAME$N='Mixpanel';const DISPLAY_NAME$N='Mixpanel';
1030
+ const DIR_NAME$N='Mixpanel';
1031
1031
 
1032
- const DIR_NAME$M='MoEngage';const DISPLAY_NAME$M='MoEngage';
1032
+ const DIR_NAME$M='MoEngage';
1033
1033
 
1034
- const DIR_NAME$L='Optimizely';const DISPLAY_NAME$L='Optimizely Web';
1034
+ const DIR_NAME$L='Optimizely';
1035
1035
 
1036
- const DIR_NAME$K='Pendo';const DISPLAY_NAME$K='Pendo';
1036
+ const DIR_NAME$K='Pendo';
1037
1037
 
1038
- const DIR_NAME$J='PinterestTag';const DISPLAY_NAME$J='Pinterest Tag';
1038
+ const DIR_NAME$J='PinterestTag';
1039
1039
 
1040
- const DIR_NAME$I='PostAffiliatePro';const DISPLAY_NAME$I='Post Affiliate Pro';
1040
+ const DIR_NAME$I='PostAffiliatePro';
1041
1041
 
1042
- const DIR_NAME$H='Posthog';const DISPLAY_NAME$H='PostHog';
1042
+ const DIR_NAME$H='Posthog';
1043
1043
 
1044
- const DIR_NAME$G='ProfitWell';const DISPLAY_NAME$G='ProfitWell';
1044
+ const DIR_NAME$G='ProfitWell';
1045
1045
 
1046
- const DIR_NAME$F='Qualtrics';const DISPLAY_NAME$F='Qualtrics';
1046
+ const DIR_NAME$F='Qualtrics';
1047
1047
 
1048
- const DIR_NAME$E='QuantumMetric';const DISPLAY_NAME$E='Quantum Metric';
1048
+ const DIR_NAME$E='QuantumMetric';
1049
1049
 
1050
- const DIR_NAME$D='RedditPixel';const DISPLAY_NAME$D='Reddit Pixel';
1050
+ const DIR_NAME$D='RedditPixel';
1051
1051
 
1052
- const DIR_NAME$C='Sentry';const DISPLAY_NAME$C='Sentry';
1052
+ const DIR_NAME$C='Sentry';
1053
1053
 
1054
- const DIR_NAME$B='SnapPixel';const DISPLAY_NAME$B='Snap Pixel';
1054
+ const DIR_NAME$B='SnapPixel';
1055
1055
 
1056
- const DIR_NAME$A='TVSquared';const DISPLAY_NAME$A='TVSquared';
1056
+ const DIR_NAME$A='TVSquared';
1057
1057
 
1058
- const DIR_NAME$z='VWO';const DISPLAY_NAME$z='VWO';
1058
+ const DIR_NAME$z='VWO';
1059
1059
 
1060
- const DIR_NAME$y='GA360';const DISPLAY_NAME$y='Google Analytics 360';
1060
+ const DIR_NAME$y='GA360';
1061
1061
 
1062
- const DIR_NAME$x='Adroll';const DISPLAY_NAME$x='Adroll';
1062
+ const DIR_NAME$x='Adroll';
1063
1063
 
1064
- const DIR_NAME$w='DCMFloodlight';const DISPLAY_NAME$w='DCM Floodlight';
1064
+ const DIR_NAME$w='DCMFloodlight';
1065
1065
 
1066
- const DIR_NAME$v='Matomo';const DISPLAY_NAME$v='Matomo';
1066
+ const DIR_NAME$v='Matomo';
1067
1067
 
1068
- const DIR_NAME$u='Vero';const DISPLAY_NAME$u='Vero';
1068
+ const DIR_NAME$u='Vero';
1069
1069
 
1070
- const DIR_NAME$t='Mouseflow';const DISPLAY_NAME$t='Mouseflow';
1070
+ const DIR_NAME$t='Mouseflow';
1071
1071
 
1072
- const DIR_NAME$s='Rockerbox';const DISPLAY_NAME$s='Rockerbox';
1072
+ const DIR_NAME$s='Rockerbox';
1073
1073
 
1074
- const DIR_NAME$r='ConvertFlow';const DISPLAY_NAME$r='Convertflow';
1074
+ const DIR_NAME$r='ConvertFlow';
1075
1075
 
1076
- const DIR_NAME$q='SnapEngage';const DISPLAY_NAME$q='SnapEngage';
1076
+ const DIR_NAME$q='SnapEngage';
1077
1077
 
1078
- const DIR_NAME$p='LiveChat';const DISPLAY_NAME$p='livechat';
1078
+ const DIR_NAME$p='LiveChat';
1079
1079
 
1080
- const DIR_NAME$o='Shynet';const DISPLAY_NAME$o='Shynet';
1080
+ const DIR_NAME$o='Shynet';
1081
1081
 
1082
- const DIR_NAME$n='Woopra';const DISPLAY_NAME$n='Woopra';
1082
+ const DIR_NAME$n='Woopra';
1083
1083
 
1084
- const DIR_NAME$m='RollBar';const DISPLAY_NAME$m='RollBar';
1084
+ const DIR_NAME$m='RollBar';
1085
1085
 
1086
- const DIR_NAME$l='QuoraPixel';const DISPLAY_NAME$l='Quora Pixel';
1086
+ const DIR_NAME$l='QuoraPixel';
1087
1087
 
1088
- const DIR_NAME$k='June';const DISPLAY_NAME$k='JUNE';
1088
+ const DIR_NAME$k='June';
1089
1089
 
1090
- const DIR_NAME$j='Engage';const DISPLAY_NAME$j='Engage';
1090
+ const DIR_NAME$j='Engage';
1091
1091
 
1092
- const DIR_NAME$i='Iterable';const DISPLAY_NAME$i='Iterable';
1092
+ const DIR_NAME$i='Iterable';
1093
1093
 
1094
- const DIR_NAME$h='YandexMetrica';const DISPLAY_NAME$h='Yandex.Metrica';
1094
+ const DIR_NAME$h='YandexMetrica';
1095
1095
 
1096
- const DIR_NAME$g='Refiner';const DISPLAY_NAME$g='Refiner';
1096
+ const DIR_NAME$g='Refiner';
1097
1097
 
1098
- const DIR_NAME$f='Qualaroo';const DISPLAY_NAME$f='Qualaroo';
1098
+ const DIR_NAME$f='Qualaroo';
1099
1099
 
1100
- const DIR_NAME$e='Podsights';const DISPLAY_NAME$e='Podsights';
1100
+ const DIR_NAME$e='Podsights';
1101
1101
 
1102
- const DIR_NAME$d='Axeptio';const DISPLAY_NAME$d='Axeptio';
1102
+ const DIR_NAME$d='Axeptio';
1103
1103
 
1104
- const DIR_NAME$c='Satismeter';const DISPLAY_NAME$c='Satismeter';
1104
+ const DIR_NAME$c='Satismeter';
1105
1105
 
1106
- const DIR_NAME$b='MicrosoftClarity';const DISPLAY_NAME$b='Microsoft Clarity';
1106
+ const DIR_NAME$b='MicrosoftClarity';
1107
1107
 
1108
- const DIR_NAME$a='Sendinblue';const DISPLAY_NAME$a='Sendinblue';
1108
+ const DIR_NAME$a='Sendinblue';
1109
1109
 
1110
- const DIR_NAME$9='Olark';const DISPLAY_NAME$9='Olark';
1110
+ const DIR_NAME$9='Olark';
1111
1111
 
1112
- const DIR_NAME$8='Lemnisk';const DISPLAY_NAME$8='Lemnisk Marketing Automation';
1112
+ const DIR_NAME$8='Lemnisk';
1113
1113
 
1114
- const DIR_NAME$7='TiktokAds';const DISPLAY_NAME$7='TikTok Ads';
1114
+ const DIR_NAME$7='TiktokAds';
1115
1115
 
1116
- const DIR_NAME$6='ActiveCampaign';const DISPLAY_NAME$6='ActiveCampaign';
1116
+ const DIR_NAME$6='ActiveCampaign';
1117
1117
 
1118
- const DIR_NAME$5='Sprig';const DISPLAY_NAME$5='Sprig';
1118
+ const DIR_NAME$5='Sprig';
1119
1119
 
1120
- const DIR_NAME$4='SpotifyPixel';const DISPLAY_NAME$4='Spotify Pixel';
1120
+ const DIR_NAME$4='SpotifyPixel';
1121
1121
 
1122
- const DIR_NAME$3='CommandBar';const DISPLAY_NAME$3='CommandBar';
1122
+ const DIR_NAME$3='CommandBar';
1123
1123
 
1124
- const DIR_NAME$2='Ninetailed';const DISPLAY_NAME$2='Ninetailed';
1124
+ const DIR_NAME$2='Ninetailed';
1125
1125
 
1126
- const DIR_NAME$1='Gainsight_PX';const DISPLAY_NAME$1='Gainsight PX';
1126
+ const DIR_NAME$1='Gainsight_PX';
1127
1127
 
1128
- const DIR_NAME='XPixel';const DISPLAY_NAME='XPixel';
1128
+ const DIR_NAME='XPixel';
1129
1129
 
1130
1130
  // map of the destination display names to the destination directory names
1131
- const destDisplayNamesToFileNamesMap={[DISPLAY_NAME$W]:DIR_NAME$W,[DISPLAY_NAME$12]:DIR_NAME$12,[DISPLAY_NAME$X]:DIR_NAME$X,[DISPLAY_NAME$$]:DIR_NAME$$,[DISPLAY_NAME$z]:DIR_NAME$z,[DISPLAY_NAME$Z]:DIR_NAME$Z,[DISPLAY_NAME$1c]:DIR_NAME$1c,[DISPLAY_NAME$V]:DIR_NAME$V,[DISPLAY_NAME$U]:DIR_NAME$U,[DISPLAY_NAME$T]:DIR_NAME$T,[DISPLAY_NAME$16]:DIR_NAME$16,[DISPLAY_NAME$1a]:DIR_NAME$1a,[DISPLAY_NAME$18]:DIR_NAME$18,[DISPLAY_NAME$14]:DIR_NAME$14,[DISPLAY_NAME$P]:DIR_NAME$P,[DISPLAY_NAME$L]:DIR_NAME$L,[DISPLAY_NAME$1b]:DIR_NAME$1b,[DISPLAY_NAME$13]:DIR_NAME$13,[DISPLAY_NAME$A]:DIR_NAME$A,[DISPLAY_NAME$11]:DIR_NAME$11,[DISPLAY_NAME$10]:DIR_NAME$10,[DISPLAY_NAME$M]:DIR_NAME$M,[DISPLAY_NAME$1f]:DIR_NAME$1f,[DISPLAY_NAME$K]:DIR_NAME$K,[DISPLAY_NAME$O]:DIR_NAME$O,[DISPLAY_NAME$1e]:DIR_NAME$1e,[DISPLAY_NAME$H]:DIR_NAME$H,[DISPLAY_NAME$S]:DIR_NAME$S,[DISPLAY_NAME$19]:DIR_NAME$19,[DISPLAY_NAME$1d]:DIR_NAME$1d,[DISPLAY_NAME$J]:DIR_NAME$J,[DISPLAY_NAME$1g]:DIR_NAME$1g,[DISPLAY_NAME$Q]:DIR_NAME$Q,[DISPLAY_NAME$D]:DIR_NAME$D,[DISPLAY_NAME$15]:DIR_NAME$15,[DISPLAY_NAME$Y]:DIR_NAME$Y,[DISPLAY_NAME$17]:DIR_NAME$17,[DISPLAY_NAME$N]:DIR_NAME$N,[DISPLAY_NAME$F]:DIR_NAME$F,[DISPLAY_NAME$G]:DIR_NAME$G,[DISPLAY_NAME$C]:DIR_NAME$C,[DISPLAY_NAME$E]:DIR_NAME$E,[DISPLAY_NAME$B]:DIR_NAME$B,[DISPLAY_NAME$I]:DIR_NAME$I,[DISPLAY_NAME$_]:DIR_NAME$_,[DISPLAY_NAME$R]:DIR_NAME$R,[DISPLAY_NAME$y]:DIR_NAME$y,[DISPLAY_NAME$x]:DIR_NAME$x,[DISPLAY_NAME$w]:DIR_NAME$w,[DISPLAY_NAME$v]:DIR_NAME$v,[DISPLAY_NAME$u]:DIR_NAME$u,[DISPLAY_NAME$t]:DIR_NAME$t,[DISPLAY_NAME$s]:DIR_NAME$s,[DISPLAY_NAME$r]:DIR_NAME$r,[DISPLAY_NAME$q]:DIR_NAME$q,[DISPLAY_NAME$p]:DIR_NAME$p,[DISPLAY_NAME$o]:DIR_NAME$o,[DISPLAY_NAME$n]:DIR_NAME$n,[DISPLAY_NAME$m]:DIR_NAME$m,[DISPLAY_NAME$l]:DIR_NAME$l,[DISPLAY_NAME$k]:DIR_NAME$k,[DISPLAY_NAME$j]:DIR_NAME$j,[DISPLAY_NAME$i]:DIR_NAME$i,[DISPLAY_NAME$h]:DIR_NAME$h,[DISPLAY_NAME$g]:DIR_NAME$g,[DISPLAY_NAME$f]:DIR_NAME$f,[DISPLAY_NAME$e]:DIR_NAME$e,[DISPLAY_NAME$d]:DIR_NAME$d,[DISPLAY_NAME$c]:DIR_NAME$c,[DISPLAY_NAME$b]:DIR_NAME$b,[DISPLAY_NAME$a]:DIR_NAME$a,[DISPLAY_NAME$9]:DIR_NAME$9,[DISPLAY_NAME$8]:DIR_NAME$8,[DISPLAY_NAME$7]:DIR_NAME$7,[DISPLAY_NAME$6]:DIR_NAME$6,[DISPLAY_NAME$5]:DIR_NAME$5,[DISPLAY_NAME$4]:DIR_NAME$4,[DISPLAY_NAME$3]:DIR_NAME$3,[DISPLAY_NAME$2]:DIR_NAME$2,[DISPLAY_NAME$1]:DIR_NAME$1,[DISPLAY_NAME]:DIR_NAME};
1131
+ const destDisplayNamesToFileNamesMap={[HS_DISPLAY_NAME]:DIR_NAME$W,[GA_DISPLAY_NAME]:DIR_NAME$12,[HOTJAR_DISPLAY_NAME]:DIR_NAME$X,[GOOGLEADS_DISPLAY_NAME]:DIR_NAME$$,[VWO_DISPLAY_NAME]:DIR_NAME$z,[GTM_DISPLAY_NAME]:DIR_NAME$Z,[BRAZE_DISPLAY_NAME]:DIR_NAME$1b,[INTERCOM_DISPLAY_NAME]:DIR_NAME$V,[KEEN_DISPLAY_NAME]:DIR_NAME$U,[KISSMETRICS_DISPLAY_NAME]:DIR_NAME$T,[CUSTOMERIO_DISPLAY_NAME]:DIR_NAME$16,[CHARTBEAT_DISPLAY_NAME]:DIR_NAME$19,[FACEBOOK_PIXEL_DISPLAY_NAME]:DIR_NAME$14,[LOTAME_DISPLAY_NAME]:DIR_NAME$P,[OPTIMIZELY_DISPLAY_NAME]:DIR_NAME$L,[BUGSNAG_DISPLAY_NAME]:DIR_NAME$1a,[FULLSTORY_DISPLAY_NAME]:DIR_NAME$13,[TVSQUARED_DISPLAY_NAME]:DIR_NAME$A,[GA4_DISPLAY_NAME]:DIR_NAME$11,[GA4_V2_DISPLAY_NAME]:DIR_NAME$10,[MOENGAGE_DISPLAY_NAME]:DIR_NAME$M,[AM_DISPLAY_NAME]:DIR_NAME$1e,[PENDO_DISPLAY_NAME]:DIR_NAME$K,[LYTICS_DISPLAY_NAME]:DIR_NAME$O,[APPCUES_DISPLAY_NAME]:DIR_NAME$1d,[POSTHOG_DISPLAY_NAME]:DIR_NAME$H,[KLAVIYO_DISPLAY_NAME]:DIR_NAME$S,[CLEVERTAP_DISPLAY_NAME]:DIR_NAME$18,[BINGADS_DISPLAY_NAME]:DIR_NAME$1c,[PINTEREST_TAG_DISPLAY_NAME]:DIR_NAME$J,[ADOBE_ANALYTICS_DISPLAY_NAME]:DIR_NAME$1f,[LINKEDIN_INSIGHT_TAG_DISPLAY_NAME]:DIR_NAME$Q,[REDDIT_PIXEL_DISPLAY_NAME]:DIR_NAME$D,[DRIP_DISPLAY_NAME]:DIR_NAME$15,[HEAP_DISPLAY_NAME]:DIR_NAME$Y,[CRITEO_DISPLAY_NAME]:DIR_NAME$17,[MP_DISPLAY_NAME]:DIR_NAME$N,[QUALTRICS_DISPLAY_NAME]:DIR_NAME$F,[PROFITWELL_DISPLAY_NAME]:DIR_NAME$G,[SENTRY_DISPLAY_NAME]:DIR_NAME$C,[QUANTUMMETRIC_DISPLAY_NAME]:DIR_NAME$E,[SNAP_PIXEL_DISPLAY_NAME]:DIR_NAME$B,[POST_AFFILIATE_PRO_DISPLAY_NAME]:DIR_NAME$I,[GOOGLE_OPTIMIZE_DISPLAY_NAME]:DIR_NAME$_,[LAUNCHDARKLY_DISPLAY_NAME]:DIR_NAME$R,[GA360_DISPLAY_NAME]:DIR_NAME$y,[ADROLL_DISPLAY_NAME]:DIR_NAME$x,[DCM_FLOODLIGHT_DISPLAY_NAME]:DIR_NAME$w,[MATOMO_DISPLAY_NAME]:DIR_NAME$v,[VERO_DISPLAY_NAME]:DIR_NAME$u,[MOUSEFLOW_DISPLAY_NAME]:DIR_NAME$t,[ROCKERBOX_DISPLAY_NAME]:DIR_NAME$s,[CONVERTFLOW_DISPLAY_NAME]:DIR_NAME$r,[SNAPENGAGE_DISPLAY_NAME]:DIR_NAME$q,[LIVECHAT_DISPLAY_NAME]:DIR_NAME$p,[SHYNET_DISPLAY_NAME]:DIR_NAME$o,[WOOPRA_DISPLAY_NAME]:DIR_NAME$n,[ROLLBAR_DISPLAY_NAME]:DIR_NAME$m,[QUORA_PIXEL_DISPLAY_NAME]:DIR_NAME$l,[JUNE_DISPLAY_NAME]:DIR_NAME$k,[ENGAGE_DISPLAY_NAME]:DIR_NAME$j,[ITERABLE_DISPLAY_NAME]:DIR_NAME$i,[YANDEX_METRICA_DISPLAY_NAME]:DIR_NAME$h,[REFINER_DISPLAY_NAME]:DIR_NAME$g,[QUALAROO_DISPLAY_NAME]:DIR_NAME$f,[PODSIGHTS_DISPLAY_NAME]:DIR_NAME$e,[AXEPTIO_DISPLAY_NAME]:DIR_NAME$d,[SATISMETER_DISPLAY_NAME]:DIR_NAME$c,[MICROSOFT_CLARITY_DISPLAY_NAME]:DIR_NAME$b,[SENDINBLUE_DISPLAY_NAME]:DIR_NAME$a,[OLARK_DISPLAY_NAME]:DIR_NAME$9,[LEMNISK_DISPLAY_NAME]:DIR_NAME$8,[TIKTOK_ADS_DISPLAY_NAME]:DIR_NAME$7,[ACTIVE_CAMPAIGN_DISPLAY_NAME]:DIR_NAME$6,[SPRIG_DISPLAY_NAME]:DIR_NAME$5,[SPOTIFYPIXEL_DISPLAY_NAME]:DIR_NAME$4,[COMMANDBAR_DISPLAY_NAME]:DIR_NAME$3,[NINETAILED_DISPLAY_NAME]:DIR_NAME$2,[GAINSIGHT_PX_DISPLAY_NAME]:DIR_NAME$1,[XPIXEL_DISPLAY_NAME]:DIR_NAME};
1132
1132
 
1133
1133
  /**
1134
1134
  * Determines if the destination SDK code is evaluated
@@ -1136,7 +1136,7 @@
1136
1136
  * @param sdkTypeName The name of the destination SDK type
1137
1137
  * @param logger Logger instance
1138
1138
  * @returns true if the destination SDK code is evaluated, false otherwise
1139
- */const isDestinationSDKMounted=(destSDKIdentifier,sdkTypeName,logger)=>Boolean(globalThis[destSDKIdentifier]&&globalThis[destSDKIdentifier][sdkTypeName]&&globalThis[destSDKIdentifier][sdkTypeName].prototype&&typeof globalThis[destSDKIdentifier][sdkTypeName].prototype.constructor!=='undefined');const wait=time=>new Promise(resolve=>{globalThis.setTimeout(resolve,time);});const createDestinationInstance=(destSDKIdentifier,sdkTypeName,dest,state)=>{const rAnalytics=globalThis.rudderanalytics;const analytics=rAnalytics.getAnalyticsInstance(state.lifecycle.writeKey.value);const analyticsInstance={loadIntegration:state.nativeDestinations.loadIntegration.value,logLevel:state.lifecycle.logLevel.value,loadOnlyIntegrations:state.consents.postConsent.value?.integrations??state.nativeDestinations.loadOnlyIntegrations.value,page:(category,name,properties,options,callback)=>analytics.page(pageArgumentsToCallOptions(getSanitizedValue(category),getSanitizedValue(name),getSanitizedValue(properties),getSanitizedValue(options),getSanitizedValue(callback))),track:(event,properties,options,callback)=>analytics.track(trackArgumentsToCallOptions(getSanitizedValue(event),getSanitizedValue(properties),getSanitizedValue(options),getSanitizedValue(callback))),identify:(userId,traits,options,callback)=>analytics.identify(identifyArgumentsToCallOptions(getSanitizedValue(userId),getSanitizedValue(traits),getSanitizedValue(options),getSanitizedValue(callback))),alias:(to,from,options,callback)=>analytics.alias(aliasArgumentsToCallOptions(getSanitizedValue(to),getSanitizedValue(from),getSanitizedValue(options),getSanitizedValue(callback))),group:(groupId,traits,options,callback)=>analytics.group(groupArgumentsToCallOptions(getSanitizedValue(groupId),getSanitizedValue(traits),getSanitizedValue(options),getSanitizedValue(callback))),getAnonymousId:options=>analytics.getAnonymousId(getSanitizedValue(options)),getUserId:()=>analytics.getUserId(),getUserTraits:()=>analytics.getUserTraits(),getGroupId:()=>analytics.getGroupId(),getGroupTraits:()=>analytics.getGroupTraits(),getSessionId:()=>analytics.getSessionId()};const deviceModeDestination=new globalThis[destSDKIdentifier][sdkTypeName](clone(dest.config),analyticsInstance,{shouldApplyDeviceModeTransformation:dest.shouldApplyDeviceModeTransformation,propagateEventsUntransformedOnError:dest.propagateEventsUntransformedOnError,destinationId:dest.id});return deviceModeDestination;};const isDestinationReady=(dest,time=0)=>new Promise((resolve,reject)=>{const instance=dest.instance;if(instance.isLoaded()&&(!instance.isReady||instance.isReady())){resolve(true);}else if(time>=READY_CHECK_TIMEOUT_MS){reject(new Error(DESTINATION_READY_TIMEOUT_ERROR(READY_CHECK_TIMEOUT_MS,dest.userFriendlyId)));}else {const curTime=Date.now();wait(READY_CHECK_INTERVAL_MS).then(()=>{const elapsedTime=Date.now()-curTime;isDestinationReady(dest,time+elapsedTime).then(resolve).catch(err=>reject(err));}).catch(err=>reject(err));}});/**
1139
+ */const isDestinationSDKMounted=(destSDKIdentifier,sdkTypeName,logger)=>Boolean(globalThis[destSDKIdentifier]?.[sdkTypeName]?.prototype&&typeof globalThis[destSDKIdentifier][sdkTypeName].prototype.constructor!=='undefined');const wait=time=>new Promise(resolve=>{globalThis.setTimeout(resolve,time);});const createDestinationInstance=(destSDKIdentifier,sdkTypeName,dest,state)=>{const rAnalytics=globalThis.rudderanalytics;const analytics=rAnalytics.getAnalyticsInstance(state.lifecycle.writeKey.value);const analyticsInstance={loadIntegration:state.nativeDestinations.loadIntegration.value,logLevel:state.lifecycle.logLevel.value,loadOnlyIntegrations:state.consents.postConsent.value?.integrations??state.nativeDestinations.loadOnlyIntegrations.value,page:(category,name,properties,options,callback)=>analytics.page(pageArgumentsToCallOptions(getSanitizedValue(category),getSanitizedValue(name),getSanitizedValue(properties),getSanitizedValue(options),getSanitizedValue(callback))),track:(event,properties,options,callback)=>analytics.track(trackArgumentsToCallOptions(getSanitizedValue(event),getSanitizedValue(properties),getSanitizedValue(options),getSanitizedValue(callback))),identify:(userId,traits,options,callback)=>analytics.identify(identifyArgumentsToCallOptions(getSanitizedValue(userId),getSanitizedValue(traits),getSanitizedValue(options),getSanitizedValue(callback))),alias:(to,from,options,callback)=>analytics.alias(aliasArgumentsToCallOptions(getSanitizedValue(to),getSanitizedValue(from),getSanitizedValue(options),getSanitizedValue(callback))),group:(groupId,traits,options,callback)=>analytics.group(groupArgumentsToCallOptions(getSanitizedValue(groupId),getSanitizedValue(traits),getSanitizedValue(options),getSanitizedValue(callback))),getAnonymousId:options=>analytics.getAnonymousId(getSanitizedValue(options)),getUserId:()=>analytics.getUserId(),getUserTraits:()=>analytics.getUserTraits(),getGroupId:()=>analytics.getGroupId(),getGroupTraits:()=>analytics.getGroupTraits(),getSessionId:()=>analytics.getSessionId()};const deviceModeDestination=new globalThis[destSDKIdentifier][sdkTypeName](clone(dest.config),analyticsInstance,{shouldApplyDeviceModeTransformation:dest.shouldApplyDeviceModeTransformation,propagateEventsUntransformedOnError:dest.propagateEventsUntransformedOnError,destinationId:dest.id});return deviceModeDestination;};const isDestinationReady=(dest,time=0)=>new Promise((resolve,reject)=>{const instance=dest.instance;if(instance.isLoaded()&&(!instance.isReady||instance.isReady())){resolve(true);}else if(time>=READY_CHECK_TIMEOUT_MS){reject(new Error(DESTINATION_READY_TIMEOUT_ERROR(READY_CHECK_TIMEOUT_MS,dest.userFriendlyId)));}else {const curTime=Date.now();wait(READY_CHECK_INTERVAL_MS).then(()=>{const elapsedTime=Date.now()-curTime;isDestinationReady(dest,time+elapsedTime).then(resolve).catch(err=>reject(err));}).catch(err=>reject(err));}});/**
1140
1140
  * Extracts the integration config, if any, from the given destination
1141
1141
  * and merges it with the current integrations config
1142
1142
  * @param dest Destination object
@@ -2804,7 +2804,7 @@
2804
2804
  /**
2805
2805
  * Determines if the SDK is running inside a chrome extension
2806
2806
  * @returns boolean
2807
- */const isSDKRunningInChromeExtension=()=>!!(window.chrome&&window.chrome.runtime&&window.chrome.runtime.id);
2807
+ */const isSDKRunningInChromeExtension=()=>!!window.chrome?.runtime?.id;
2808
2808
 
2809
2809
  const DEFAULT_PRE_CONSENT_STORAGE_STRATEGY='none';const DEFAULT_PRE_CONSENT_EVENTS_DELIVERY_TYPE='immediate';
2810
2810
 
@@ -2915,7 +2915,9 @@
2915
2915
  * To get the timezone of the user
2916
2916
  *
2917
2917
  * @returns string
2918
- */const getTimezone=()=>{const timezone=new Date().toString().match(/([A-Z]+[+-]\d+)/);return timezone&&timezone[1]?timezone[1]:'NA';};
2918
+ */const getTimezone=()=>{// Not susceptible to super-linear backtracking
2919
+ // eslint-disable-next-line sonarjs/slow-regex
2920
+ const timezone=/([A-Z]+[+-]\d+)/.exec(new Date().toString());return timezone?.[1]?timezone[1]:'NA';};
2919
2921
 
2920
2922
  /**
2921
2923
  * Get the referrer URL
@@ -454,7 +454,7 @@ const MANUAL_ERROR_IDENTIFIER='[MANUAL ERROR]';/**
454
454
  * @returns Instance of Error with message prepended with issue
455
455
  */const getMutatedError=(err,issue)=>{let finalError=err;if(!isTypeOfError(err)){finalError=new Error(`${issue}: ${stringifyWithoutCircular(err)}`);}else {finalError.message=`${issue}: ${err.message}`;}return finalError;};const dispatchErrorEvent=error=>{if(isTypeOfError(error)){error.stack=`${error.stack??''}\n${MANUAL_ERROR_IDENTIFIER}`;}globalThis.dispatchEvent(new ErrorEvent('error',{error}));};
456
456
 
457
- const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.16';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
457
+ const APP_NAME='RudderLabs JavaScript SDK';const APP_VERSION='3.11.17';const APP_NAMESPACE='com.rudderlabs.javascript';const MODULE_TYPE='npm';const ADBLOCK_PAGE_CATEGORY='RudderJS-Initiated';const ADBLOCK_PAGE_NAME='ad-block page request';const ADBLOCK_PAGE_PATH='/ad-blocked';const GLOBAL_PRELOAD_BUFFER='preloadedEventsBuffer';const CONSENT_TRACK_EVENT_NAME='Consent Management Interaction';
458
458
 
459
459
  const QUERY_PARAM_TRAIT_PREFIX='ajs_trait_';const QUERY_PARAM_PROPERTY_PREFIX='ajs_prop_';const QUERY_PARAM_ANONYMOUS_ID_KEY='ajs_aid';const QUERY_PARAM_USER_ID_KEY='ajs_uid';const QUERY_PARAM_TRACK_EVENT_NAME_KEY='ajs_event';
460
460
 
@@ -1113,7 +1113,7 @@ new URL(url);}return URL_PATTERN.test(url);}catch(e){return false;}};
1113
1113
  /**
1114
1114
  * Determines if the SDK is running inside a chrome extension
1115
1115
  * @returns boolean
1116
- */const isSDKRunningInChromeExtension=()=>!!(window.chrome&&window.chrome.runtime&&window.chrome.runtime.id);
1116
+ */const isSDKRunningInChromeExtension=()=>!!window.chrome?.runtime?.id;
1117
1117
 
1118
1118
  const DEFAULT_PRE_CONSENT_STORAGE_STRATEGY='none';const DEFAULT_PRE_CONSENT_EVENTS_DELIVERY_TYPE='immediate';
1119
1119
 
@@ -1224,7 +1224,9 @@ this.httpClient.getAsyncData({url:state.lifecycle.sourceConfigUrl.value,options:
1224
1224
  * To get the timezone of the user
1225
1225
  *
1226
1226
  * @returns string
1227
- */const getTimezone=()=>{const timezone=new Date().toString().match(/([A-Z]+[+-]\d+)/);return timezone&&timezone[1]?timezone[1]:'NA';};
1227
+ */const getTimezone=()=>{// Not susceptible to super-linear backtracking
1228
+ // eslint-disable-next-line sonarjs/slow-regex
1229
+ const timezone=/([A-Z]+[+-]\d+)/.exec(new Date().toString());return timezone?.[1]?timezone[1]:'NA';};
1228
1230
 
1229
1231
  /**
1230
1232
  * Get the referrer URL