@microsoft/1ds-core-js 4.4.0-nightlybeta3.2602-27 → 4.4.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 (53) hide show
  1. package/README.md +56 -0
  2. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-27.gbl.js → ms.core-4.4.1.gbl.js} +498 -511
  3. package/bundle/es5/ms.core-4.4.1.gbl.js.map +1 -0
  4. package/bundle/es5/ms.core-4.4.1.gbl.min.js +7 -0
  5. package/bundle/es5/ms.core-4.4.1.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.core-4.4.1.integrity.json +46 -0
  7. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-27.js → ms.core-4.4.1.js} +498 -511
  8. package/bundle/es5/ms.core-4.4.1.js.map +1 -0
  9. package/bundle/es5/ms.core-4.4.1.min.js +7 -0
  10. package/bundle/es5/ms.core-4.4.1.min.js.map +1 -0
  11. package/bundle/es5/ms.core.gbl.js +497 -510
  12. package/bundle/es5/ms.core.gbl.js.map +1 -1
  13. package/bundle/es5/ms.core.gbl.min.js +2 -2
  14. package/bundle/es5/ms.core.gbl.min.js.map +1 -1
  15. package/bundle/es5/ms.core.integrity.json +17 -17
  16. package/bundle/es5/ms.core.js +497 -510
  17. package/bundle/es5/ms.core.js.map +1 -1
  18. package/bundle/es5/ms.core.min.js +2 -2
  19. package/bundle/es5/ms.core.min.js.map +1 -1
  20. package/dist/es5/ms.core.js +495 -508
  21. package/dist/es5/ms.core.js.map +1 -1
  22. package/dist/es5/ms.core.min.js +2 -2
  23. package/dist/es5/ms.core.min.js.map +1 -1
  24. package/dist-es5/Index.js +9 -22
  25. package/dist-es5/Index.js.map +1 -1
  26. package/package.json +69 -72
  27. package/types/1ds-core-js.d.ts +110 -691
  28. package/types/1ds-core-js.namespaced.d.ts +54 -5
  29. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.js.map +0 -1
  30. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.min.js +0 -7
  31. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.gbl.min.js.map +0 -1
  32. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.integrity.json +0 -46
  33. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.js.map +0 -1
  34. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.min.js +0 -7
  35. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-27.min.js.map +0 -1
  36. package/dist-es5/AppInsightsCore.js +0 -96
  37. package/dist-es5/AppInsightsCore.js.map +0 -1
  38. package/dist-es5/BaseCore.js +0 -67
  39. package/dist-es5/BaseCore.js.map +0 -1
  40. package/dist-es5/DataModels.js +0 -7
  41. package/dist-es5/DataModels.js.map +0 -1
  42. package/dist-es5/Enums.js +0 -92
  43. package/dist-es5/Enums.js.map +0 -1
  44. package/dist-es5/InternalConstants.js +0 -19
  45. package/dist-es5/InternalConstants.js.map +0 -1
  46. package/dist-es5/Utils.js +0 -397
  47. package/dist-es5/Utils.js.map +0 -1
  48. package/dist-es5/ValueSanitizer.js +0 -262
  49. package/dist-es5/ValueSanitizer.js.map +0 -1
  50. package/dist-es5/__DynamicConstants.js +0 -28
  51. package/dist-es5/__DynamicConstants.js.map +0 -1
  52. package/dist-es5/extSpanUtils.js +0 -308
  53. package/dist-es5/extSpanUtils.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK Core, 4.4.0-nightlybeta3.2602-27
2
+ * 1DS JS SDK Core, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -8,8 +8,8 @@
8
8
  typeof exports === "object" && typeof module !== undef ? factory(exports) :
9
9
  typeof define === "function" && define.amd ? define(["exports"], factory) :
10
10
  (function(global){
11
- var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_4_0_nightlybeta3_2602_27", msMod="__ms$mod__";
12
- var mods={}, modDetail=mods[modName]={}, ver="4.4.0-nightlybeta3.2602-27";
11
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_core_4_4_1", msMod="__ms$mod__";
12
+ var mods={}, modDetail=mods[modName]={}, ver="4.4.1";
13
13
  // Versioned namespace "oneDS4"
14
14
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
15
  // Global namespace "oneDS"
@@ -30,14 +30,9 @@
30
30
  'use strict';
31
31
 
32
32
 
33
- var strShimFunction = "function";
34
- var strShimObject = "object";
35
- var strShimUndefined = "undefined";
36
- var strShimPrototype = "prototype";
37
- var ObjClass$1 = Object;
38
- var ObjProto$1 = ObjClass$1[strShimPrototype];
33
+ var MinChannelPriorty = 100;
39
34
 
40
- /*! https://github.com/nevware21/ts-utils v0.12.6 */
35
+ /*! https://github.com/nevware21/ts-utils v0.13.0 */
41
36
  /*#__NO_SIDE_EFFECTS__*/
42
37
  function _pureAssign(func1, func2) {
43
38
  return func1 || func2;
@@ -62,8 +57,8 @@ var CALL = "call";
62
57
  var TO_STRING = "toString";
63
58
  var GET_OWN_PROPERTY_DESCRIPTOR = "getOwnPropertyDescriptor";
64
59
  var GET_OWN_PROPERTY_SYMBOLS = "getOwnPropertySymbols";
65
- var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
66
- var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
60
+ var ObjClass$1 = ( /*#__PURE__*/_pureAssign(Object));
61
+ var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass$1, PROTOTYPE));
67
62
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
68
63
  var StrProto = ( /*#__PURE__*/_pureRef(StrCls, PROTOTYPE));
69
64
  var MathCls = ( /*#__PURE__*/_pureAssign(Math));
@@ -207,8 +202,8 @@ function _throwIfNotString(value) {
207
202
  function objHasOwnProperty(obj, prop) {
208
203
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
209
204
  }
210
- var _objGetOwnPropertyDescriptor$2 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
211
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
205
+ var _objGetOwnPropertyDescriptor$2 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
206
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "hasOwn")), polyObjHasOwn));
212
207
  /*#__NO_SIDE_EFFECTS__*/
213
208
  function polyObjHasOwn(obj, prop) {
214
209
  _throwIfNullOrUndefined(obj);
@@ -258,7 +253,7 @@ function _unwrapProp(propName) {
258
253
  }
259
254
  function _objPropertyIsEnum(obj, propKey) {
260
255
  var desc;
261
- var fn = ObjClass.getOwnPropertyDescriptor;
256
+ var fn = ObjClass$1.getOwnPropertyDescriptor;
262
257
  if (!isStrictNullOrUndefined(obj) && fn) {
263
258
  desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
264
259
  }
@@ -274,8 +269,8 @@ function _objPropertyIsEnum(obj, propKey) {
274
269
  return (desc && desc.enumerable) || false;
275
270
  }
276
271
  var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
277
- var _objGetOwnPropertyDescriptor$1 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
278
- var _objGetOwnPropertySymbols = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_SYMBOLS)), _returnEmptyArray));
272
+ var _objGetOwnPropertyDescriptor$1 = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
273
+ var _objGetOwnPropertySymbols = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_SYMBOLS)), _returnEmptyArray));
279
274
  var propMap = {
280
275
  e: "enumerable",
281
276
  c: "configurable",
@@ -303,8 +298,8 @@ function _createProp(value) {
303
298
  });
304
299
  return prop;
305
300
  }
306
- var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
307
- var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
301
+ var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass$1, "defineProperty"));
302
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass$1, "defineProperties"));
308
303
  function objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {
309
304
  var desc = {
310
305
  e: enumerable,
@@ -358,8 +353,8 @@ function polyObjIs(value1, value2) {
358
353
  }
359
354
  return value1 === value2;
360
355
  }
361
- var objIsFrozen = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "isFrozen")), _returnFalse));
362
- var _objFreeze = ( /*#__PURE__*/_pureRef(ObjClass, "freeze"));
356
+ var objIsFrozen = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "isFrozen")), _returnFalse));
357
+ var _objFreeze = ( /*#__PURE__*/_pureRef(ObjClass$1, "freeze"));
363
358
  function _doNothing(value) {
364
359
  return value;
365
360
  }
@@ -368,8 +363,8 @@ function _getProto(value) {
368
363
  _throwIfNullOrUndefined(value);
369
364
  return value[__PROTO__] || NULL_VALUE;
370
365
  }
371
- var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
372
- var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
366
+ var objAssign = ( /*#__PURE__*/_pureRef(ObjClass$1, "assign"));
367
+ var objKeys = ( /*#__PURE__*/_pureRef(ObjClass$1, "keys"));
373
368
  function _deepFreeze(val, visited) {
374
369
  if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
375
370
  for (var lp = 0; lp < visited.length; lp++) {
@@ -389,9 +384,9 @@ function objDeepFreeze(value) {
389
384
  return _objFreeze ? _deepFreeze(value, []) : value;
390
385
  }
391
386
  var objFreeze = ( /*#__PURE__*/_pureAssign(_objFreeze, _doNothing));
392
- var objSeal = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "seal")), _doNothing));
393
- var objGetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
394
- var objIs = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "is")), polyObjIs));
387
+ var objSeal = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "seal")), _doNothing));
388
+ var objGetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "getPrototypeOf")), _getProto));
389
+ var objIs = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "is")), polyObjIs));
395
390
  /*#__NO_SIDE_EFFECTS__*/
396
391
  function createEnum(values) {
397
392
  return _createKeyValueMap(values, 1 , 0 , objFreeze);
@@ -484,7 +479,7 @@ function _tagAsPolyfill(target, polyfillTypeName) {
484
479
  }
485
480
  return target;
486
481
  }
487
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
482
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass$1, "create")), polyObjCreate));
488
483
  /*#__NO_SIDE_EFFECTS__*/
489
484
  function polyObjCreate(obj, properties) {
490
485
  var newObj = null;
@@ -806,7 +801,7 @@ function polyArrIncludes(theArray, searchElement, fromIndex) {
806
801
  var arrIncludes = ( /*#__PURE__*/_unwrapFunctionWithPoly("includes", ArrProto, polyArrIncludes));
807
802
  var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
808
803
  var _isProtoArray;
809
- var objSetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
804
+ var objSetPrototypeOf = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, "setPrototypeOf")), _polyObjSetPrototypeOf));
810
805
  function _polyObjSetPrototypeOf(obj, proto) {
811
806
  var _a;
812
807
  !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
@@ -828,7 +823,7 @@ function _setName(baseClass, name) {
828
823
  name && (baseClass[NAME] = name);
829
824
  }
830
825
  /*#__NO_SIDE_EFFECTS__*/
831
- function createCustomError(name, constructCb, errorBase) {
826
+ function createCustomError(name, constructCb, errorBase, superArgsFn) {
832
827
  var theBaseClass = errorBase || Error;
833
828
  var orgName = theBaseClass[PROTOTYPE][NAME];
834
829
  var captureFn = Error.captureStackTrace;
@@ -837,7 +832,7 @@ function createCustomError(name, constructCb, errorBase) {
837
832
  var theArgs = arguments;
838
833
  try {
839
834
  safe(_setName, [theBaseClass, name]);
840
- var _self = fnApply(theBaseClass, _this, ArrSlice[CALL](theArgs)) || _this;
835
+ var _self = fnApply(theBaseClass, _this, superArgsFn ? superArgsFn(theArgs) : ArrSlice[CALL](theArgs)) || _this;
841
836
  if (_self !== _this) {
842
837
  var orgProto = objGetPrototypeOf(_this);
843
838
  if (orgProto !== objGetPrototypeOf(_self)) {
@@ -867,6 +862,13 @@ var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
867
862
  var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
868
863
  var strLower = ( /*#__PURE__*/_unwrapFunction("toLowerCase", StrProto));
869
864
  var mathFloor = ( /*#__PURE__*/_pureRef(MathCls, "floor"));
865
+ /*#__NO_SIDE_EFFECTS__*/
866
+ function safeGetDeferred(cb, defValue, argArray) {
867
+ return getDeferred(function () {
868
+ var result = safe(cb, argArray);
869
+ return result.e ? defValue : result.v;
870
+ });
871
+ }
870
872
  var _fnToString;
871
873
  var _objCtrFnString;
872
874
  var _gblWindow;
@@ -882,7 +884,7 @@ function isPlainObject(value) {
882
884
  if (value !== _gblWindow) {
883
885
  if (!_objCtrFnString) {
884
886
  _fnToString = Function[PROTOTYPE][TO_STRING];
885
- _objCtrFnString = _fnToString[CALL](ObjClass);
887
+ _objCtrFnString = _fnToString[CALL](ObjClass$1);
886
888
  }
887
889
  try {
888
890
  var proto = objGetPrototypeOf(value);
@@ -1068,13 +1070,6 @@ function perfNow() {
1068
1070
  return utcNow();
1069
1071
  }
1070
1072
  /*#__NO_SIDE_EFFECTS__*/
1071
- function safeGetDeferred(cb, defValue, argArray) {
1072
- return getDeferred(function () {
1073
- var result = safe(cb, argArray);
1074
- return result.e ? defValue : result.v;
1075
- });
1076
- }
1077
- /*#__NO_SIDE_EFFECTS__*/
1078
1073
  function createIterator(ctx) {
1079
1074
  var isDone = false;
1080
1075
  function _value() {
@@ -1117,7 +1112,7 @@ function createIterator(ctx) {
1117
1112
  }
1118
1113
  return theIterator;
1119
1114
  }
1120
- var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
1115
+ var objGetOwnPropertyDescriptor = ( /*#__PURE__*/_pureAssign(( /*#__PURE__*/_pureRef(ObjClass$1, GET_OWN_PROPERTY_DESCRIPTOR)), _returnNothing));
1121
1116
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
1122
1117
  /*#__NO_SIDE_EFFECTS__*/
1123
1118
  function polyStrEndsWith(value, searchString, length) {
@@ -1244,11 +1239,151 @@ function createTimeout(callback, timeout) {
1244
1239
  return _createTimeoutWith(false, UNDEF_VALUE, ArrSlice[CALL](arguments));
1245
1240
  }
1246
1241
 
1242
+ var createEnumStyle = createEnum;
1243
+
1244
+ var EventsDiscardedReason = ( /* @__PURE__ */createEnumStyle({
1245
+ Unknown: 0 ,
1246
+ NonRetryableStatus: 1 ,
1247
+ InvalidEvent: 2 ,
1248
+ SizeLimitExceeded: 3 ,
1249
+ KillSwitch: 4 ,
1250
+ QueueFull: 5 ,
1251
+ BeaconSendFailure: 6
1252
+ }));
1253
+
1254
+ var ActiveStatus = ( /* @__PURE__ */createEnumStyle({
1255
+ NONE: 0 ,
1256
+ PENDING: 3 ,
1257
+ INACTIVE: 1 ,
1258
+ ACTIVE: 2
1259
+ }));
1260
+
1261
+ var _DYN_TO_LOWER_CASE = "toLowerCase";
1262
+ var _DYN_LENGTH = "length";
1263
+ var _DYN_WARN_TO_CONSOLE = "warnToConsole";
1264
+ var _DYN_THROW_INTERNAL = "throwInternal";
1265
+ var _DYN_WATCH = "watch";
1266
+ var _DYN_APPLY = "apply";
1267
+ var _DYN_PUSH = "push";
1268
+ var _DYN_SPLICE = "splice";
1269
+ var _DYN_LOGGER = "logger";
1270
+ var _DYN_CANCEL = "cancel";
1271
+ var _DYN_INITIALIZE = "initialize";
1272
+ var _DYN_IDENTIFIER = "identifier";
1273
+ var _DYN_REMOVE_NOTIFICATION_0 = "removeNotificationListener";
1274
+ var _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
1275
+ var _DYN_STRINGIFY = "stringify";
1276
+ var _DYN_TRACE_ID = "traceId";
1277
+ var _DYN_SPAN_ID = "spanId";
1278
+ var _DYN_TRACE_FLAGS = "traceFlags";
1279
+ var _DYN_IS_INITIALIZED = "isInitialized";
1280
+ var _DYN_TRACE_HDR_MODE = "traceHdrMode";
1281
+ var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
1282
+ var _DYN_GET_PLUGIN = "getPlugin";
1283
+ var _DYN_TRACK = "track";
1284
+ var _DYN_NAME = "name";
1285
+ var _DYN_I_KEY = "iKey";
1286
+ var _DYN_TIME = "time";
1287
+ var _DYN_PROCESS_NEXT = "processNext";
1288
+ var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
1289
+ var _DYN_POLL_INTERNAL_LOGS = "pollInternalLogs";
1290
+ var _DYN_VALUE = "value";
1291
+ var _DYN_ENABLED = "enabled";
1292
+ var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
1293
+ var _DYN_UNLOAD = "unload";
1294
+ var _DYN_ON_COMPLETE = "onComplete";
1295
+ var _DYN_REASON = "reason";
1296
+ var _DYN_FLUSH = "flush";
1297
+ var _DYN_GET_TRACE_CTX = "getTraceCtx";
1298
+ var _DYN_SET_TRACE_CTX = "setTraceCtx";
1299
+ var _DYN_GET_ACTIVE_SPAN = "getActiveSpan";
1300
+ var _DYN_SET_ACTIVE_SPAN = "setActiveSpan";
1301
+ var _DYN_SPAN_CONTEXT = "spanContext";
1302
+ var _DYN_PARENT_SPAN_CONTEXT = "parentSpanContext";
1303
+ var _DYN_PARENT_SPAN_ID = "parentSpanId";
1304
+ var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1305
+ var _DYN_JOIN = "join";
1306
+ var _DYN_CREATE_NEW = "createNew";
1307
+ var _DYN_TEARDOWN = "teardown";
1308
+ var _DYN_MESSAGE_ID = "messageId";
1309
+ var _DYN_MESSAGE = "message";
1310
+ var _DYN_ATTRIBUTE_COUNT_LIMI5 = "attributeCountLimit";
1311
+ var _DYN_SUPPRESS_TRACING = "suppressTracing";
1312
+ var _DYN_NOT_IMPLEMENTED = "notImplemented";
1313
+ var _DYN_DIAG_LOG = "diagLog";
1314
+ var _DYN__DO_TEARDOWN = "_doTeardown";
1315
+ var _DYN_UPDATE = "update";
1316
+ var _DYN_GET_NEXT = "getNext";
1317
+ var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
1318
+ var _DYN_SPLIT = "split";
1319
+ var _DYN_IS_CHILD_EVT = "isChildEvt";
1320
+ var _DYN_DATA = "data";
1321
+ var _DYN_GET_CTX = "getCtx";
1322
+ var _DYN_SET_CTX = "setCtx";
1323
+ var _DYN_CONFIG = "config";
1324
+ var _DYN_CALL = "call";
1325
+ var _DYN_ITEMS_RECEIVED = "itemsReceived";
1326
+ var _DYN_HEADERS = "headers";
1327
+ var _DYN_URL_STRING = "urlString";
1328
+ var _DYN_TIMEOUT = "timeout";
1329
+ var _DYN_STATUS = "status";
1330
+ var _DYN_REPLACE = "replace";
1331
+ var _DYN_HAS_OWN_PROPERTY = "hasOwnProperty";
1332
+ var _DYN_INDEX_OF = "indexOf";
1333
+ var _DYN_TYPE = "type";
1334
+ var _DYN_SET_TRACE_FLAGS = "setTraceFlags";
1335
+ var _DYN_PATHNAME = "pathname";
1336
+ var _DYN_TRACE_STATE = "traceState";
1337
+ var _DYN_TIMINGS = "timings";
1338
+ var _DYN_BASE_DATA = "baseData";
1339
+ var _DYN_PROPERTIES = "properties";
1340
+ var _DYN_USER_AGENT = "userAgent";
1341
+ var _DYN_ATTRIBUTES = "attributes";
1342
+ var _DYN_KIND = "kind";
1343
+ var _DYN_START_TIME = "startTime";
1344
+ var _DYN_DURATION = "duration";
1345
+ var _DYN_TO_STRING = "toString";
1346
+ var _DYN_PROCESS_TELEMETRY_ST6 = "processTelemetryStart";
1347
+ var _DYN_HANDLE_FIELD = "handleField";
1348
+ var _DYN_RM_SANITIZER = "rmSanitizer";
1349
+ var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
1350
+ var _DYN_CAN_HANDLE = "canHandle";
1351
+ var _DYN_HANDLER = "handler";
1352
+ var _DYN_ERROR_HANDLERS = "errorHandlers";
1353
+ var _DYN_EVT_NAME = "evtName";
1354
+ var _DYN_CONCAT = "concat";
1355
+ var _DYN_SUBSTRING = "substring";
1356
+ var _DYN_GET_ALL_RESPONSE_HEA7 = "getAllResponseHeaders";
1357
+ var _DYN_ENTRIES = "entries";
1358
+ var _DYN_TRACE_CFG = "traceCfg";
1359
+
1360
+ var aggregationErrorType;
1361
+ function throwAggregationError(message, sourceErrors) {
1362
+ if (!aggregationErrorType) {
1363
+ aggregationErrorType = createCustomError("AggregationError", function (self, args) {
1364
+ if (args[_DYN_LENGTH ] > 1) {
1365
+ self.errors = args[1];
1366
+ }
1367
+ });
1368
+ }
1369
+ var theMessage = message || "One or more errors occurred.";
1370
+ arrForEach(sourceErrors, function (srcError, idx) {
1371
+ theMessage += "\n".concat(idx, " > ").concat(dumpObj(srcError));
1372
+ });
1373
+ throw new aggregationErrorType(theMessage, sourceErrors || []);
1374
+ }
1375
+
1376
+ var strShimFunction = "function";
1377
+ var strShimObject = "object";
1378
+ var strShimUndefined = "undefined";
1379
+ var strShimPrototype = "prototype";
1380
+ var ObjClass = Object;
1381
+
1247
1382
  (getGlobal() || {})["Symbol"];
1248
1383
  (getGlobal() || {})["Reflect"];
1249
1384
  var strHasOwnProperty = "hasOwnProperty";
1250
1385
  var extendStaticsFn = function (d, b) {
1251
- extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
1386
+ extendStaticsFn = ObjClass["setPrototypeOf"] ||
1252
1387
  ({ __proto__: [] } instanceof Array && function (d, b) {
1253
1388
  d.__proto__ = b;
1254
1389
  }) ||
@@ -1528,122 +1663,6 @@ function dynamicProto(theClass, target, delegateFunc, options) {
1528
1663
  }
1529
1664
  dynamicProto[DynProtoDefaultOptions] = _gblInst.o;
1530
1665
 
1531
- var MinChannelPriorty = 100;
1532
-
1533
- var createEnumStyle = createEnum;
1534
-
1535
- var EventsDiscardedReason = ( /* @__PURE__ */createEnumStyle({
1536
- Unknown: 0 ,
1537
- NonRetryableStatus: 1 ,
1538
- InvalidEvent: 2 ,
1539
- SizeLimitExceeded: 3 ,
1540
- KillSwitch: 4 ,
1541
- QueueFull: 5 ,
1542
- BeaconSendFailure: 6
1543
- }));
1544
-
1545
- var ActiveStatus = ( /* @__PURE__ */createEnumStyle({
1546
- NONE: 0 ,
1547
- PENDING: 3 ,
1548
- INACTIVE: 1 ,
1549
- ACTIVE: 2
1550
- }));
1551
-
1552
- var _DYN_TO_LOWER_CASE = "toLowerCase";
1553
- var _DYN_LENGTH$1 = "length";
1554
- var _DYN_WARN_TO_CONSOLE = "warnToConsole";
1555
- var _DYN_THROW_INTERNAL = "throwInternal";
1556
- var _DYN_WATCH = "watch";
1557
- var _DYN_APPLY = "apply";
1558
- var _DYN_PUSH = "push";
1559
- var _DYN_SPLICE = "splice";
1560
- var _DYN_LOGGER = "logger";
1561
- var _DYN_CANCEL = "cancel";
1562
- var _DYN_INITIALIZE$1 = "initialize";
1563
- var _DYN_IDENTIFIER = "identifier";
1564
- var _DYN_REMOVE_NOTIFICATION_0 = "removeNotificationListener";
1565
- var _DYN_ADD_NOTIFICATION_LIS1 = "addNotificationListener";
1566
- var _DYN_STRINGIFY = "stringify";
1567
- var _DYN_TRACE_ID = "traceId";
1568
- var _DYN_SPAN_ID = "spanId";
1569
- var _DYN_TRACE_FLAGS = "traceFlags";
1570
- var _DYN_IS_INITIALIZED = "isInitialized";
1571
- var _DYN_TRACE_HDR_MODE = "traceHdrMode";
1572
- var _DYN_GET_NOTIFY_MGR = "getNotifyMgr";
1573
- var _DYN_GET_PLUGIN = "getPlugin";
1574
- var _DYN_NAME = "name";
1575
- var _DYN_TIME = "time";
1576
- var _DYN_PROCESS_NEXT = "processNext";
1577
- var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
1578
- var _DYN_VALUE$1 = "value";
1579
- var _DYN_ENABLED = "enabled";
1580
- var _DYN_STOP_POLLING_INTERNA3 = "stopPollingInternalLogs";
1581
- var _DYN_UNLOAD = "unload";
1582
- var _DYN_ON_COMPLETE = "onComplete";
1583
- var _DYN_REASON = "reason";
1584
- var _DYN_FLUSH = "flush";
1585
- var _DYN_GET_TRACE_CTX = "getTraceCtx";
1586
- var _DYN_SET_TRACE_CTX = "setTraceCtx";
1587
- var _DYN_GET_ACTIVE_SPAN = "getActiveSpan";
1588
- var _DYN_SET_ACTIVE_SPAN = "setActiveSpan";
1589
- var _DYN_SPAN_CONTEXT = "spanContext";
1590
- var _DYN_PARENT_SPAN_CONTEXT = "parentSpanContext";
1591
- var _DYN_VERSION = "version";
1592
- var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1593
- var _DYN_JOIN = "join";
1594
- var _DYN_CREATE_NEW = "createNew";
1595
- var _DYN_TEARDOWN = "teardown";
1596
- var _DYN_MESSAGE_ID = "messageId";
1597
- var _DYN_MESSAGE = "message";
1598
- var _DYN_ATTRIBUTE_COUNT_LIMI5 = "attributeCountLimit";
1599
- var _DYN_SUPPRESS_TRACING = "suppressTracing";
1600
- var _DYN_NOT_IMPLEMENTED = "notImplemented";
1601
- var _DYN_DIAG_LOG = "diagLog";
1602
- var _DYN__DO_TEARDOWN = "_doTeardown";
1603
- var _DYN_UPDATE = "update";
1604
- var _DYN_GET_NEXT = "getNext";
1605
- var _DYN_SET_NEXT_PLUGIN = "setNextPlugin";
1606
- var _DYN_SPLIT = "split";
1607
- var _DYN_IS_CHILD_EVT = "isChildEvt";
1608
- var _DYN_DATA = "data";
1609
- var _DYN_GET_CTX = "getCtx";
1610
- var _DYN_SET_CTX = "setCtx";
1611
- var _DYN_CONFIG = "config";
1612
- var _DYN_ITEMS_RECEIVED = "itemsReceived";
1613
- var _DYN_HEADERS = "headers";
1614
- var _DYN_URL_STRING = "urlString";
1615
- var _DYN_TIMEOUT = "timeout";
1616
- var _DYN_STATUS = "status";
1617
- var _DYN_REPLACE = "replace";
1618
- var _DYN_TYPE = "type";
1619
- var _DYN_SET_TRACE_FLAGS = "setTraceFlags";
1620
- var _DYN_PATHNAME = "pathname";
1621
- var _DYN_TRACE_STATE = "traceState";
1622
- var _DYN_ERROR_HANDLERS = "errorHandlers";
1623
- var _DYN_TO_STRING = "toString";
1624
- var _DYN_EVT_NAME = "evtName";
1625
- var _DYN_CONCAT = "concat";
1626
- var _DYN_SUBSTRING = "substring";
1627
- var _DYN_GET_ALL_RESPONSE_HEA6 = "getAllResponseHeaders";
1628
- var _DYN_ENTRIES = "entries";
1629
- var _DYN_TRACE_CFG = "traceCfg";
1630
-
1631
- var aggregationErrorType;
1632
- function throwAggregationError(message, sourceErrors) {
1633
- if (!aggregationErrorType) {
1634
- aggregationErrorType = createCustomError("AggregationError", function (self, args) {
1635
- if (args[_DYN_LENGTH$1 ] > 1) {
1636
- self.errors = args[1];
1637
- }
1638
- });
1639
- }
1640
- var theMessage = message || "One or more errors occurred.";
1641
- arrForEach(sourceErrors, function (srcError, idx) {
1642
- theMessage += "\n".concat(idx, " > ").concat(dumpObj(srcError));
1643
- });
1644
- throw new aggregationErrorType(theMessage, sourceErrors || []);
1645
- }
1646
-
1647
1666
  /*!
1648
1667
  * NevWare21 Solutions LLC - ts-async, 0.5.5
1649
1668
  * https://github.com/nevware21/ts-async
@@ -2049,7 +2068,7 @@ function createPromise(executor, timeout) {
2049
2068
  var createAllPromise = ( /*#__PURE__*/_createAllPromise(createPromise));
2050
2069
 
2051
2070
  var UNDEFINED_VALUE = undefined;
2052
- var STR_EMPTY$1 = "";
2071
+ var STR_EMPTY = "";
2053
2072
  var STR_CHANNELS = "channels";
2054
2073
  var STR_CORE = "core";
2055
2074
  var STR_CREATE_PERF_MGR = "createPerfMgr";
@@ -2071,6 +2090,9 @@ var STR_PATH = "path";
2071
2090
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
2072
2091
  var STR_REDACTED = "REDACTED";
2073
2092
  var DEFAULT_SENSITIVE_PARAMS = ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"];
2093
+ var STR_DEFAULT_ENDPOINT_URL = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
2094
+ var STR_VERSION = "version";
2095
+ var STR_NOT_SPECIFIED = "not_specified";
2074
2096
 
2075
2097
  function cfgDfMerge(defaultValue) {
2076
2098
  return {
@@ -2112,14 +2134,14 @@ function strContains(value, search) {
2112
2134
  }
2113
2135
  /*#__NO_SIDE_EFFECTS__*/
2114
2136
  function toISOString(date) {
2115
- return date && date.toISOString() || STR_EMPTY$1;
2137
+ return date && date.toISOString() || STR_EMPTY;
2116
2138
  }
2117
2139
  /*#__NO_SIDE_EFFECTS__*/
2118
2140
  function getExceptionName(object) {
2119
2141
  if (isError(object)) {
2120
2142
  return object[_DYN_NAME ];
2121
2143
  }
2122
- return STR_EMPTY$1;
2144
+ return STR_EMPTY;
2123
2145
  }
2124
2146
  function setValue(target, field, value, valChk, srcChk) {
2125
2147
  var theValue = value;
@@ -2245,7 +2267,7 @@ function setProtoTypeName(target, name) {
2245
2267
  /*#__NO_SIDE_EFFECTS__*/
2246
2268
  function optimizeObject(theObject) {
2247
2269
  if (theObject && objAssign) {
2248
- theObject = ObjClass$1(objAssign({}, theObject));
2270
+ theObject = ObjClass(objAssign({}, theObject));
2249
2271
  }
2250
2272
  return theObject;
2251
2273
  }
@@ -2275,14 +2297,14 @@ function getResponseText(xhr) {
2275
2297
  /*#__NO_SIDE_EFFECTS__*/
2276
2298
  function formatErrorMessageXdr(xdr, message) {
2277
2299
  if (xdr) {
2278
- return "XDomainRequest,Response:" + getResponseText(xdr) || STR_EMPTY$1;
2300
+ return "XDomainRequest,Response:" + getResponseText(xdr) || STR_EMPTY;
2279
2301
  }
2280
2302
  return message;
2281
2303
  }
2282
2304
  /*#__NO_SIDE_EFFECTS__*/
2283
2305
  function formatErrorMessageXhr(xhr, message) {
2284
2306
  if (xhr) {
2285
- return "XMLHttpRequest,Status:" + xhr[_DYN_STATUS ] + ",Response:" + getResponseText(xhr) || xhr.response || STR_EMPTY$1;
2307
+ return "XMLHttpRequest,Status:" + xhr[_DYN_STATUS ] + ",Response:" + getResponseText(xhr) || xhr.response || STR_EMPTY;
2286
2308
  }
2287
2309
  return message;
2288
2310
  }
@@ -2298,10 +2320,10 @@ function prependTransports(theTransports, newTransports) {
2298
2320
  }
2299
2321
  return theTransports;
2300
2322
  }
2301
- var strDisabledPropertyName$1 = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
2302
- var strWithCredentials$1 = "withCredentials";
2303
- var strTimeout$1 = "timeout";
2304
- function openXhr$1(method, urlString, withCredentials, disabled, isSync, timeout) {
2323
+ var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
2324
+ var strWithCredentials = "withCredentials";
2325
+ var strTimeout = "timeout";
2326
+ function openXhr(method, urlString, withCredentials, disabled, isSync, timeout) {
2305
2327
  if (disabled === void 0) { disabled = false; }
2306
2328
  if (isSync === void 0) { isSync = false; }
2307
2329
  function _wrapSetXhrProp(xhr, prop, value) {
@@ -2313,17 +2335,17 @@ function openXhr$1(method, urlString, withCredentials, disabled, isSync, timeout
2313
2335
  }
2314
2336
  var xhr = new XMLHttpRequest();
2315
2337
  if (disabled) {
2316
- _wrapSetXhrProp(xhr, strDisabledPropertyName$1, disabled);
2338
+ _wrapSetXhrProp(xhr, strDisabledPropertyName, disabled);
2317
2339
  }
2318
2340
  if (withCredentials) {
2319
- _wrapSetXhrProp(xhr, strWithCredentials$1, withCredentials);
2341
+ _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
2320
2342
  }
2321
2343
  xhr.open(method, urlString, !isSync);
2322
2344
  if (withCredentials) {
2323
- _wrapSetXhrProp(xhr, strWithCredentials$1, withCredentials);
2345
+ _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
2324
2346
  }
2325
2347
  if (!isSync && timeout) {
2326
- _wrapSetXhrProp(xhr, strTimeout$1, timeout);
2348
+ _wrapSetXhrProp(xhr, strTimeout, timeout);
2327
2349
  }
2328
2350
  return xhr;
2329
2351
  }
@@ -2362,7 +2384,7 @@ var STR_KILL_DURATION_SECONDS_HEADER = "kill-duration-seconds";
2362
2384
  var STR_TIME_DELTA_HEADER = "time-delta-millis";
2363
2385
  function _getAllResponseHeaders(xhr, isOneDs) {
2364
2386
  var theHeaders = {};
2365
- if (!xhr[_DYN_GET_ALL_RESPONSE_HEA6 ]) {
2387
+ if (!xhr[_DYN_GET_ALL_RESPONSE_HEA7 ]) {
2366
2388
  if (!!isOneDs) {
2367
2389
  theHeaders = _appendHeader(theHeaders, xhr, STR_TIME_DELTA_HEADER);
2368
2390
  theHeaders = _appendHeader(theHeaders, xhr, STR_KILL_DURATION_HEADER);
@@ -2370,7 +2392,7 @@ function _getAllResponseHeaders(xhr, isOneDs) {
2370
2392
  }
2371
2393
  }
2372
2394
  else {
2373
- theHeaders = convertAllHeadersToMap(xhr[_DYN_GET_ALL_RESPONSE_HEA6 ]());
2395
+ theHeaders = convertAllHeadersToMap(xhr[_DYN_GET_ALL_RESPONSE_HEA7 ]());
2374
2396
  }
2375
2397
  return theHeaders;
2376
2398
  }
@@ -2421,7 +2443,7 @@ function getUserAgentString() {
2421
2443
  if (!_userAgent) {
2422
2444
  _userAgent = getLazy(function () {
2423
2445
  var nav = getNavigator() || {};
2424
- return nav.userAgent || STR_EMPTY$1;
2446
+ return nav[_DYN_USER_AGENT ] || STR_EMPTY;
2425
2447
  });
2426
2448
  }
2427
2449
  return _userAgent.v;
@@ -2492,7 +2514,7 @@ function getIEVersion(userAgentStr) {
2492
2514
  if (!userAgentStr) {
2493
2515
  userAgentStr = getUserAgentString();
2494
2516
  }
2495
- var ua = (userAgentStr || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ]();
2517
+ var ua = (userAgentStr || STR_EMPTY)[_DYN_TO_LOWER_CASE ]();
2496
2518
  if (strContains(ua, strMsie)) {
2497
2519
  var doc = getDocument() || {};
2498
2520
  return mathMax(parseInt(ua[_DYN_SPLIT ](strMsie)[1]), (doc[strDocumentMode] || 0));
@@ -2566,7 +2588,7 @@ function _getNamedValue(values, name) {
2566
2588
  /*#__NO_SIDE_EFFECTS__*/
2567
2589
  function findMetaTag(name) {
2568
2590
  var tags = findMetaTags(name);
2569
- if (tags[_DYN_LENGTH$1 ] > 0) {
2591
+ if (tags[_DYN_LENGTH ] > 0) {
2570
2592
  return tags[0];
2571
2593
  }
2572
2594
  return null;
@@ -2586,7 +2608,7 @@ function findMetaTags(name) {
2586
2608
  function findNamedServerTiming(name) {
2587
2609
  var value;
2588
2610
  var serverTimings = findNamedServerTimings(name);
2589
- if (serverTimings[_DYN_LENGTH$1 ] > 0) {
2611
+ if (serverTimings[_DYN_LENGTH ] > 0) {
2590
2612
  value = serverTimings[0];
2591
2613
  }
2592
2614
  return value;
@@ -2618,22 +2640,26 @@ function redactQueryParameters(url, config) {
2618
2640
  if (questionMarkIndex === -1) {
2619
2641
  return url;
2620
2642
  }
2621
- if (config && config.redactQueryParams) {
2643
+ var option = config ? config.redactUrls : undefined;
2644
+ if (option === 3 ) {
2622
2645
  sensitiveParams = DEFAULT_SENSITIVE_PARAMS[_DYN_CONCAT ](config.redactQueryParams);
2623
2646
  }
2647
+ else if (option === 4 ) {
2648
+ sensitiveParams = config.redactQueryParams;
2649
+ }
2624
2650
  else {
2625
2651
  sensitiveParams = DEFAULT_SENSITIVE_PARAMS;
2626
2652
  }
2627
2653
  var baseUrl = strSubstring(url, 0, questionMarkIndex + 1);
2628
2654
  var queryString = strSubstring(url, questionMarkIndex + 1);
2629
- var fragment = STR_EMPTY$1;
2655
+ var fragment = STR_EMPTY;
2630
2656
  var hashIndex = strIndexOf(queryString, "#");
2631
2657
  if (hashIndex !== -1) {
2632
2658
  fragment = strSubstring(queryString, hashIndex);
2633
2659
  queryString = strSubstring(queryString, 0, hashIndex);
2634
2660
  }
2635
2661
  var hasPotentialSensitiveParam = false;
2636
- for (var i = 0; i < sensitiveParams[_DYN_LENGTH$1 ]; i++) {
2662
+ for (var i = 0; i < sensitiveParams[_DYN_LENGTH ]; i++) {
2637
2663
  var paramCheck = sensitiveParams[i] + "=";
2638
2664
  if (strIndexOf(queryString, paramCheck) !== -1) {
2639
2665
  hasPotentialSensitiveParam = true;
@@ -2645,9 +2671,9 @@ function redactQueryParameters(url, config) {
2645
2671
  }
2646
2672
  var resultParts = [];
2647
2673
  var anyParamRedacted = false;
2648
- if (queryString && queryString[_DYN_LENGTH$1 ]) {
2674
+ if (queryString && queryString[_DYN_LENGTH ]) {
2649
2675
  var pairs = queryString[_DYN_SPLIT ]("&");
2650
- for (var i = 0; i < pairs[_DYN_LENGTH$1 ]; i++) {
2676
+ for (var i = 0; i < pairs[_DYN_LENGTH ]; i++) {
2651
2677
  var pair = pairs[i];
2652
2678
  if (!pair) {
2653
2679
  continue;
@@ -2659,12 +2685,12 @@ function redactQueryParameters(url, config) {
2659
2685
  else {
2660
2686
  var paramName = pair[_DYN_SUBSTRING ](0, equalsIndex);
2661
2687
  var paramValue = pair[_DYN_SUBSTRING ](equalsIndex + 1);
2662
- if (paramValue === STR_EMPTY$1) {
2688
+ if (paramValue === STR_EMPTY) {
2663
2689
  resultParts[_DYN_PUSH ](pair);
2664
2690
  }
2665
2691
  else {
2666
2692
  var shouldRedact = false;
2667
- for (var j = 0; j < sensitiveParams[_DYN_LENGTH$1 ]; j++) {
2693
+ for (var j = 0; j < sensitiveParams[_DYN_LENGTH ]; j++) {
2668
2694
  if (paramName === sensitiveParams[j]) {
2669
2695
  shouldRedact = true;
2670
2696
  anyParamRedacted = true;
@@ -2691,7 +2717,8 @@ function fieldRedaction(input, config) {
2691
2717
  if (!input || !isString(input) || strIndexOf(input, " ") !== -1) {
2692
2718
  return input;
2693
2719
  }
2694
- var isRedactionDisabled = config && config.redactUrls === false;
2720
+ var option = config ? config.redactUrls : undefined;
2721
+ var isRedactionDisabled = option === false || option === 2 ;
2695
2722
  if (isRedactionDisabled) {
2696
2723
  return input;
2697
2724
  }
@@ -2700,6 +2727,12 @@ function fieldRedaction(input, config) {
2700
2727
  if (!hasCredentials && !hasQueryParams) {
2701
2728
  return input;
2702
2729
  }
2730
+ if (option === 5 ) {
2731
+ hasQueryParams = false;
2732
+ }
2733
+ if (option === 6 ) {
2734
+ hasCredentials = false;
2735
+ }
2703
2736
  try {
2704
2737
  var result = input;
2705
2738
  if (hasCredentials) {
@@ -2778,8 +2811,8 @@ function newId(maxLength) {
2778
2811
  var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
2779
2812
  var number = random32() >>> 0;
2780
2813
  var chars = 0;
2781
- var result = STR_EMPTY$1;
2782
- while (result[_DYN_LENGTH$1 ] < maxLength) {
2814
+ var result = STR_EMPTY;
2815
+ while (result[_DYN_LENGTH ] < maxLength) {
2783
2816
  chars++;
2784
2817
  result += base64chars.charAt(number & 0x3F);
2785
2818
  number >>>= 6;
@@ -2791,7 +2824,7 @@ function newId(maxLength) {
2791
2824
  return result;
2792
2825
  }
2793
2826
 
2794
- var version = '3.4.0-nightlybeta3.2602-27';
2827
+ var version = '3.4.1';
2795
2828
  var instanceName = "." + newId(6);
2796
2829
  var _dataUid = 0;
2797
2830
  function _canAcceptData(target) {
@@ -2816,11 +2849,11 @@ function _getCache(data, target) {
2816
2849
  }
2817
2850
  function createUniqueNamespace(name, includeVersion) {
2818
2851
  if (includeVersion === void 0) { includeVersion = false; }
2819
- return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY$1) + instanceName);
2852
+ return normalizeJsName(name + (_dataUid++) + (includeVersion ? "." + version : STR_EMPTY) + instanceName);
2820
2853
  }
2821
2854
  function createElmNodeData(name) {
2822
2855
  var data = {
2823
- id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY$1) + "." + version),
2856
+ id: createUniqueNamespace("_aiData-" + (name || STR_EMPTY) + "." + version),
2824
2857
  accept: function (target) {
2825
2858
  return _canAcceptData(target);
2826
2859
  },
@@ -2859,7 +2892,7 @@ function _getDefault(dynamicHandler, theConfig, cfgDefaults) {
2859
2892
  if (!isArray(fallbacks)) {
2860
2893
  fallbacks = [fallbacks];
2861
2894
  }
2862
- for (var lp = 0; lp < fallbacks[_DYN_LENGTH$1 ]; lp++) {
2895
+ for (var lp = 0; lp < fallbacks[_DYN_LENGTH ]; lp++) {
2863
2896
  var fallback = fallbacks[lp];
2864
2897
  var fbValue = theConfig[fallback];
2865
2898
  if (isDefaultValid(fbValue)) {
@@ -2894,7 +2927,7 @@ function _resolveDefaultValue(dynamicHandler, theConfig, cfgDefaults) {
2894
2927
  var newValue_1;
2895
2928
  if (isArray(theValue)) {
2896
2929
  newValue_1 = [];
2897
- newValue_1[_DYN_LENGTH$1 ] = theValue[_DYN_LENGTH$1 ];
2930
+ newValue_1[_DYN_LENGTH ] = theValue[_DYN_LENGTH ];
2898
2931
  }
2899
2932
  else if (isPlainObject(theValue)) {
2900
2933
  newValue_1 = {};
@@ -2985,7 +3018,7 @@ function _cfgDeepCopy(source) {
2985
3018
  var target_1;
2986
3019
  if (isArray(source)) {
2987
3020
  target_1 = [];
2988
- target_1[_DYN_LENGTH$1 ] = source[_DYN_LENGTH$1 ];
3021
+ target_1[_DYN_LENGTH ] = source[_DYN_LENGTH ];
2989
3022
  }
2990
3023
  else if (isPlainObject(source)) {
2991
3024
  target_1 = {};
@@ -3303,13 +3336,13 @@ function _createState(cfgHandler) {
3303
3336
  watcherFailures_1[_DYN_PUSH ](e);
3304
3337
  }
3305
3338
  }
3306
- if (watcherFailures_1[_DYN_LENGTH$1 ] > 0) {
3339
+ if (watcherFailures_1[_DYN_LENGTH ] > 0) {
3307
3340
  throwAggregationError("Watcher error(s): ", watcherFailures_1);
3308
3341
  }
3309
3342
  }
3310
3343
  }
3311
3344
  function _addWatcher(detail) {
3312
- if (detail && detail.h[_DYN_LENGTH$1 ] > 0) {
3345
+ if (detail && detail.h[_DYN_LENGTH ] > 0) {
3313
3346
  if (!_waitingHandlers) {
3314
3347
  _waitingHandlers = [];
3315
3348
  }
@@ -3319,7 +3352,7 @@ function _createState(cfgHandler) {
3319
3352
  _notifyWatchers();
3320
3353
  }, 0);
3321
3354
  }
3322
- for (var idx = 0; idx < detail.h[_DYN_LENGTH$1 ]; idx++) {
3355
+ for (var idx = 0; idx < detail.h[_DYN_LENGTH ]; idx++) {
3323
3356
  var handler = detail.h[idx];
3324
3357
  if (handler && arrIndexOf(_waitingHandlers, handler) === -1) {
3325
3358
  _waitingHandlers[_DYN_PUSH ](handler);
@@ -3358,7 +3391,7 @@ function _createAndUseHandler(state, configHandler) {
3358
3391
  configHandler = null;
3359
3392
  }
3360
3393
  };
3361
- objDefine(handler, "toJSON", { v: function () { return "WatcherHandler" + (handler.fn ? STR_EMPTY$1 : "[X]"); } });
3394
+ objDefine(handler, "toJSON", { v: function () { return "WatcherHandler" + (handler.fn ? STR_EMPTY : "[X]"); } });
3362
3395
  state.use(handler, configHandler);
3363
3396
  return handler;
3364
3397
  }
@@ -3502,7 +3535,7 @@ function getDebugExt(config) {
3502
3535
  function getDebugListener(config) {
3503
3536
  if (!_debugListener) {
3504
3537
  _debugListener = {};
3505
- for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH$1 ]; lp++) {
3538
+ for (var lp = 0; lp < listenerFuncs[_DYN_LENGTH ]; lp++) {
3506
3539
  _debugListener[listenerFuncs[lp]] = _listenerProxyFunc(listenerFuncs[lp], config);
3507
3540
  }
3508
3541
  }
@@ -3528,9 +3561,9 @@ var _logFuncs = (_a$4 = {},
3528
3561
  _a$4);
3529
3562
  function _sanitizeDiagnosticText(text) {
3530
3563
  if (text) {
3531
- return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY$1) + "\"";
3564
+ return "\"" + text[_DYN_REPLACE ](/\"/g, STR_EMPTY) + "\"";
3532
3565
  }
3533
- return STR_EMPTY$1;
3566
+ return STR_EMPTY;
3534
3567
  }
3535
3568
  function _logToConsole(func, message) {
3536
3569
  var theConsole = getConsole();
@@ -3552,12 +3585,12 @@ var _InternalLogMessage = /** @class */ (function () {
3552
3585
  _self[_DYN_MESSAGE ] =
3553
3586
  (isUserAct ? AiUserActionablePrefix : AiNonUserActionablePrefix) +
3554
3587
  msgId;
3555
- var strProps = STR_EMPTY$1;
3588
+ var strProps = STR_EMPTY;
3556
3589
  if (hasJSON()) {
3557
3590
  strProps = getJSON()[_DYN_STRINGIFY ](properties);
3558
3591
  }
3559
- var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY$1) +
3560
- (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY$1);
3592
+ var diagnosticText = (msg ? " message:" + _sanitizeDiagnosticText(msg) : STR_EMPTY) +
3593
+ (properties ? " props:" + _sanitizeDiagnosticText(strProps) : STR_EMPTY);
3561
3594
  _self[_DYN_MESSAGE ] += diagnosticText;
3562
3595
  }
3563
3596
  _InternalLogMessage.dataType = "MessageData";
@@ -3565,7 +3598,7 @@ var _InternalLogMessage = /** @class */ (function () {
3565
3598
  }());
3566
3599
  /*#__NO_SIDE_EFFECTS__*/
3567
3600
  function safeGetLogger(core, config) {
3568
- return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config);
3601
+ return (core || {})[_DYN_LOGGER ] || new DiagnosticLogger(config || (core || {})[_DYN_CONFIG ]);
3569
3602
  }
3570
3603
  var DiagnosticLogger = /** @class */ (function () {
3571
3604
  function DiagnosticLogger(config) {
@@ -3720,7 +3753,7 @@ function _parseListMember(value) {
3720
3753
  if (value) {
3721
3754
  TRACESTATE_KVP_REGEX.lastIndex = 0;
3722
3755
  var match = TRACESTATE_KVP_REGEX.exec(value);
3723
- if (match && match[_DYN_LENGTH$1 ] >= 7 && match[1] && match[6]) {
3756
+ if (match && match[_DYN_LENGTH ] >= 7 && match[1] && match[6]) {
3724
3757
  var type = match[3] ? 1 : 0 ;
3725
3758
  var multiTenant = null;
3726
3759
  if (type === 1 ) {
@@ -3750,7 +3783,7 @@ function _parseTraceStateList(value) {
3750
3783
  if (arrIndexOf(addedKeys_1, parts.key) === -1) {
3751
3784
  items[_DYN_PUSH ](parts);
3752
3785
  addedKeys_1[_DYN_PUSH ](parts.key);
3753
- if (items[_DYN_LENGTH$1 ] >= MAX_TRACE_STATE_MEMBERS) {
3786
+ if (items[_DYN_LENGTH ] >= MAX_TRACE_STATE_MEMBERS) {
3754
3787
  return -1;
3755
3788
  }
3756
3789
  }
@@ -3760,7 +3793,7 @@ function _parseTraceStateList(value) {
3760
3793
  return items;
3761
3794
  }
3762
3795
  function _indexOf(items, key) {
3763
- for (var lp = 0; lp < items[_DYN_LENGTH$1 ]; lp++) {
3796
+ for (var lp = 0; lp < items[_DYN_LENGTH ]; lp++) {
3764
3797
  if (items[lp].key === key) {
3765
3798
  return lp;
3766
3799
  }
@@ -3771,7 +3804,7 @@ function _keys(items, parent) {
3771
3804
  var keys = [];
3772
3805
  var delKeys = [];
3773
3806
  arrForEach(items, function (member) {
3774
- if (member[_DYN_VALUE$1 ] != null) {
3807
+ if (member[_DYN_VALUE ] != null) {
3775
3808
  keys[_DYN_PUSH ](member.key);
3776
3809
  }
3777
3810
  else {
@@ -3791,9 +3824,9 @@ function _keys(items, parent) {
3791
3824
  function _isEmpty(items, parent) {
3792
3825
  var delKeys;
3793
3826
  var isEmpty = true;
3794
- if (items && items[_DYN_LENGTH$1 ] > 0) {
3827
+ if (items && items[_DYN_LENGTH ] > 0) {
3795
3828
  arrForEach(items, function (member) {
3796
- if (member[_DYN_VALUE$1 ] != null) {
3829
+ if (member[_DYN_VALUE ] != null) {
3797
3830
  isEmpty = false;
3798
3831
  }
3799
3832
  else {
@@ -3806,7 +3839,7 @@ function _isEmpty(items, parent) {
3806
3839
  }
3807
3840
  if (isEmpty && parent) {
3808
3841
  isEmpty = parent.isEmpty;
3809
- if (!isEmpty && delKeys && delKeys[_DYN_LENGTH$1 ] > 0) {
3842
+ if (!isEmpty && delKeys && delKeys[_DYN_LENGTH ] > 0) {
3810
3843
  isEmpty = true;
3811
3844
  arrForEach(parent.keys, function (key) {
3812
3845
  if (arrIndexOf(delKeys, key) === -1) {
@@ -3824,13 +3857,13 @@ function isW3cTraceState(value) {
3824
3857
  }
3825
3858
  /*#__NO_SIDE_EFFECTS__*/
3826
3859
  function createW3cTraceState(value, parent) {
3827
- var cachedItems = safeGetDeferred(_parseTraceStateList, [], [value || STR_EMPTY$1]);
3860
+ var cachedItems = safeGetDeferred(_parseTraceStateList, [], [value || STR_EMPTY]);
3828
3861
  function _get(key) {
3829
3862
  var value;
3830
3863
  var theItems = cachedItems.v;
3831
3864
  var idx = _indexOf(theItems, key);
3832
3865
  if (idx !== -1) {
3833
- var itmValue = theItems[idx][_DYN_VALUE$1 ];
3866
+ var itmValue = theItems[idx][_DYN_VALUE ];
3834
3867
  if (itmValue != null) {
3835
3868
  value = itmValue;
3836
3869
  }
@@ -3868,7 +3901,7 @@ function createW3cTraceState(value, parent) {
3868
3901
  }
3869
3902
  function _headers(maxHeaders, maxKeys, maxLen) {
3870
3903
  var results = [];
3871
- var result = STR_EMPTY$1;
3904
+ var result = STR_EMPTY;
3872
3905
  var numKeys = 0;
3873
3906
  var len = 0;
3874
3907
  maxKeys = maxKeys || MAX_TRACE_STATE_MEMBERS;
@@ -3879,16 +3912,16 @@ function createW3cTraceState(value, parent) {
3879
3912
  if (!isNullOrUndefined(value) && isString(value)) {
3880
3913
  numKeys++;
3881
3914
  var val = key + "=" + value;
3882
- var valLen = val[_DYN_LENGTH$1 ];
3915
+ var valLen = val[_DYN_LENGTH ];
3883
3916
  if (len + 1 + valLen >= maxLen) {
3884
3917
  results[_DYN_PUSH ](result);
3885
- if (maxHeaders && results[_DYN_LENGTH$1 ] <= maxHeaders) {
3918
+ if (maxHeaders && results[_DYN_LENGTH ] <= maxHeaders) {
3886
3919
  return -1;
3887
3920
  }
3888
- result = STR_EMPTY$1;
3921
+ result = STR_EMPTY;
3889
3922
  len = 0;
3890
3923
  }
3891
- if (result[_DYN_LENGTH$1 ] > 0) {
3924
+ if (result[_DYN_LENGTH ] > 0) {
3892
3925
  result += ",";
3893
3926
  len++;
3894
3927
  }
@@ -3915,7 +3948,7 @@ function createW3cTraceState(value, parent) {
3915
3948
  };
3916
3949
  function _toString() {
3917
3950
  var headers = traceStateList.hdrs(1);
3918
- return headers[_DYN_LENGTH$1 ] > 0 ? headers[0] : STR_EMPTY$1;
3951
+ return headers[_DYN_LENGTH ] > 0 ? headers[0] : STR_EMPTY;
3919
3952
  }
3920
3953
  objDefineProps(traceStateList, {
3921
3954
  "keys": {
@@ -3941,12 +3974,12 @@ function findW3cTraceState() {
3941
3974
  var name = "tracestate";
3942
3975
  var traceState = null;
3943
3976
  var metaTags = findMetaTags(name);
3944
- if (metaTags[_DYN_LENGTH$1 ] > 0) {
3977
+ if (metaTags[_DYN_LENGTH ] > 0) {
3945
3978
  traceState = createW3cTraceState(metaTags[_DYN_JOIN ](","));
3946
3979
  }
3947
3980
  if (!traceState) {
3948
3981
  var serverTimings = findNamedServerTimings(name);
3949
- if (serverTimings[_DYN_LENGTH$1 ] > 0) {
3982
+ if (serverTimings[_DYN_LENGTH ] > 0) {
3950
3983
  traceState = createW3cTraceState(serverTimings[_DYN_JOIN ](","));
3951
3984
  }
3952
3985
  }
@@ -3959,7 +3992,7 @@ function newGuid() {
3959
3992
  }
3960
3993
  function generateW3CId() {
3961
3994
  var hexValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
3962
- var oct = STR_EMPTY$1, tmp;
3995
+ var oct = STR_EMPTY, tmp;
3963
3996
  for (var a = 0; a < 4; a++) {
3964
3997
  tmp = random32();
3965
3998
  oct +=
@@ -3983,7 +4016,7 @@ var INVALID_TRACE_ID = "00000000000000000000000000000000";
3983
4016
  var INVALID_SPAN_ID = "0000000000000000";
3984
4017
  var SAMPLED_FLAG = 0x01;
3985
4018
  function _isValid(value, len, invalidValue) {
3986
- if (value && value[_DYN_LENGTH$1 ] === len && value !== invalidValue) {
4019
+ if (value && value[_DYN_LENGTH ] === len && value !== invalidValue) {
3987
4020
  return !!value.match(/^[\da-f]*$/i);
3988
4021
  }
3989
4022
  return false;
@@ -3999,7 +4032,7 @@ function _formatFlags(value) {
3999
4032
  value = 0x01;
4000
4033
  }
4001
4034
  var result = value[_DYN_TO_STRING ](16);
4002
- while (result[_DYN_LENGTH$1 ] < 2) {
4035
+ while (result[_DYN_LENGTH ] < 2) {
4003
4036
  result = "0" + result;
4004
4037
  }
4005
4038
  return result;
@@ -4019,14 +4052,14 @@ function parseTraceParent(value, selectIdx) {
4019
4052
  return null;
4020
4053
  }
4021
4054
  if (isArray(value)) {
4022
- value = value[0] || STR_EMPTY$1;
4055
+ value = value[0] || STR_EMPTY;
4023
4056
  }
4024
- if (!value || !isString(value) || value[_DYN_LENGTH$1 ] > 8192) {
4057
+ if (!value || !isString(value) || value[_DYN_LENGTH ] > 8192) {
4025
4058
  return null;
4026
4059
  }
4027
4060
  if (strIndexOf(value, ",") !== -1) {
4028
4061
  var values = value[_DYN_SPLIT ](",");
4029
- value = values[selectIdx > 0 && values[_DYN_LENGTH$1 ] > selectIdx ? selectIdx : 0];
4062
+ value = values[selectIdx > 0 && values[_DYN_LENGTH ] > selectIdx ? selectIdx : 0];
4030
4063
  }
4031
4064
  TRACE_PARENT_REGEX.lastIndex = 0;
4032
4065
  var match = TRACE_PARENT_REGEX.exec(strTrim(value));
@@ -4037,9 +4070,9 @@ function parseTraceParent(value, selectIdx) {
4037
4070
  return null;
4038
4071
  }
4039
4072
  return {
4040
- version: (match[1] || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ](),
4041
- traceId: (match[2] || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ](),
4042
- spanId: (match[3] || STR_EMPTY$1)[_DYN_TO_LOWER_CASE ](),
4073
+ version: (match[1] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
4074
+ traceId: (match[2] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
4075
+ spanId: (match[3] || STR_EMPTY)[_DYN_TO_LOWER_CASE ](),
4043
4076
  traceFlags: parseInt(match[4], 16)
4044
4077
  };
4045
4078
  }
@@ -4054,7 +4087,7 @@ function isValidSpanId(value) {
4054
4087
  /*#__NO_SIDE_EFFECTS__*/
4055
4088
  function isValidTraceParent(value) {
4056
4089
  if (!value ||
4057
- !_isValid(value[_DYN_VERSION ], 2, INVALID_VERSION) ||
4090
+ !_isValid(value[STR_VERSION ], 2, INVALID_VERSION) ||
4058
4091
  !_isValid(value[_DYN_TRACE_ID ], 32, INVALID_TRACE_ID) ||
4059
4092
  !_isValid(value[_DYN_SPAN_ID ], 16, INVALID_SPAN_ID) ||
4060
4093
  !_isValid(_formatFlags(value[_DYN_TRACE_FLAGS ]), 2)) {
@@ -4076,13 +4109,13 @@ function formatTraceParent(value) {
4076
4109
  if (!_isValid(flags, 2)) {
4077
4110
  flags = "01";
4078
4111
  }
4079
- var version = value[_DYN_VERSION ] || DEFAULT_VERSION;
4112
+ var version = value[STR_VERSION ] || DEFAULT_VERSION;
4080
4113
  if (version !== "00" && version !== "ff") {
4081
4114
  version = DEFAULT_VERSION;
4082
4115
  }
4083
4116
  return "".concat(version.toLowerCase(), "-").concat(_formatValue(value.traceId, 32, INVALID_TRACE_ID).toLowerCase(), "-").concat(_formatValue(value.spanId, 16, INVALID_SPAN_ID).toLowerCase(), "-").concat(flags.toLowerCase());
4084
4117
  }
4085
- return STR_EMPTY$1;
4118
+ return STR_EMPTY;
4086
4119
  }
4087
4120
  function findW3cTraceParent(selectIdx) {
4088
4121
  var name = "traceparent";
@@ -4227,11 +4260,11 @@ function createCookieMgr(rootConfig, logger) {
4227
4260
  if (!isIE()) {
4228
4261
  values["max-age"] = "0";
4229
4262
  }
4230
- return _formatCookieValue(STR_EMPTY$1, values);
4263
+ return _formatCookieValue(STR_EMPTY, values);
4231
4264
  }
4232
4265
  function _formatSetCookieValue(value, maxAgeSec, domain, path) {
4233
4266
  var values = {};
4234
- var theValue = strTrim(value || STR_EMPTY$1);
4267
+ var theValue = strTrim(value || STR_EMPTY);
4235
4268
  var idx = strIndexOf(theValue, ";");
4236
4269
  if (idx !== -1) {
4237
4270
  theValue = strTrim(strLeft(value, idx));
@@ -4246,11 +4279,11 @@ function createCookieMgr(rootConfig, logger) {
4246
4279
  if (expireMs > 0) {
4247
4280
  var expiry = new Date();
4248
4281
  expiry.setTime(expireMs);
4249
- setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY$1, isTruthy);
4282
+ setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY, isTruthy);
4250
4283
  }
4251
4284
  }
4252
4285
  if (!_isIE) {
4253
- setValue(values, "max-age", STR_EMPTY$1 + maxAgeSec, null, isUndefined);
4286
+ setValue(values, "max-age", STR_EMPTY + maxAgeSec, null, isUndefined);
4254
4287
  }
4255
4288
  }
4256
4289
  var location = getLocation();
@@ -4268,7 +4301,7 @@ function createCookieMgr(rootConfig, logger) {
4268
4301
  }
4269
4302
  function _removePendingCookie(name) {
4270
4303
  if (_pendingCookies) {
4271
- for (var i = _pendingCookies[_DYN_LENGTH$1 ] - 1; i >= 0; i--) {
4304
+ for (var i = _pendingCookies[_DYN_LENGTH ] - 1; i >= 0; i--) {
4272
4305
  if (_pendingCookies[i].n === name) {
4273
4306
  _pendingCookies[_DYN_SPLICE ](i, 1);
4274
4307
  }
@@ -4348,14 +4381,14 @@ function createCookieMgr(rootConfig, logger) {
4348
4381
  return result;
4349
4382
  },
4350
4383
  get: function (name) {
4351
- var value = STR_EMPTY$1;
4384
+ var value = STR_EMPTY;
4352
4385
  var isIgnored = _isIgnoredCookie(cookieMgrConfig, name);
4353
4386
  if (!isIgnored) {
4354
4387
  if (_isMgrEnabled(cookieMgr)) {
4355
4388
  value = _getCookieFn(name);
4356
4389
  }
4357
4390
  else if (_pendingCookies) {
4358
- for (var i = _pendingCookies[_DYN_LENGTH$1 ] - 1; i >= 0; i--) {
4391
+ for (var i = _pendingCookies[_DYN_LENGTH ] - 1; i >= 0; i--) {
4359
4392
  var pendingData = _pendingCookies[i];
4360
4393
  if (pendingData.n === name) {
4361
4394
  if (pendingData.o === 0 ) {
@@ -4419,10 +4452,10 @@ function areCookiesSupported(logger) {
4419
4452
  }
4420
4453
  function _extractParts(theValue) {
4421
4454
  var values = {};
4422
- if (theValue && theValue[_DYN_LENGTH$1 ]) {
4455
+ if (theValue && theValue[_DYN_LENGTH ]) {
4423
4456
  var parts = strTrim(theValue)[_DYN_SPLIT ](";");
4424
4457
  arrForEach(parts, function (thePart) {
4425
- thePart = strTrim(thePart || STR_EMPTY$1);
4458
+ thePart = strTrim(thePart || STR_EMPTY);
4426
4459
  if (thePart) {
4427
4460
  var idx = strIndexOf(thePart, "=");
4428
4461
  if (idx === -1) {
@@ -4443,22 +4476,22 @@ function _formatDate(theDate, func) {
4443
4476
  return null;
4444
4477
  }
4445
4478
  function _formatCookieValue(value, values) {
4446
- var cookieValue = value || STR_EMPTY$1;
4479
+ var cookieValue = value || STR_EMPTY;
4447
4480
  objForEachKey(values, function (name, theValue) {
4448
- cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY$1);
4481
+ cookieValue += "; " + name + (!isNullOrUndefined(theValue) ? "=" + theValue : STR_EMPTY);
4449
4482
  });
4450
4483
  return cookieValue;
4451
4484
  }
4452
4485
  function _getCookieValue(name) {
4453
- var cookieValue = STR_EMPTY$1;
4486
+ var cookieValue = STR_EMPTY;
4454
4487
  !_doc && _getDoc();
4455
4488
  if (_doc.v) {
4456
- var theCookie = _doc.v[strCookie] || STR_EMPTY$1;
4489
+ var theCookie = _doc.v[strCookie] || STR_EMPTY;
4457
4490
  if (_parsedCookieValue !== theCookie) {
4458
4491
  _cookieCache = _extractParts(theCookie);
4459
4492
  _parsedCookieValue = theCookie;
4460
4493
  }
4461
- cookieValue = strTrim(_cookieCache[name] || STR_EMPTY$1);
4494
+ cookieValue = strTrim(_cookieCache[name] || STR_EMPTY);
4462
4495
  }
4463
4496
  return cookieValue;
4464
4497
  }
@@ -4578,7 +4611,7 @@ var NotificationManager = /** @class */ (function () {
4578
4611
  }
4579
4612
  };
4580
4613
  _self[STR_OFFLINE_STORE ] = function (events) {
4581
- if (events && events[_DYN_LENGTH$1 ]) {
4614
+ if (events && events[_DYN_LENGTH ]) {
4582
4615
  _runListeners(_listeners, STR_OFFLINE_STORE, _asyncNotifications, function (listener) {
4583
4616
  listener[STR_OFFLINE_STORE ](events);
4584
4617
  });
@@ -4689,7 +4722,7 @@ var PerfEvent = /** @class */ (function () {
4689
4722
  var childTime = 0;
4690
4723
  var childEvts = _self[_DYN_GET_CTX ](PerfEvent[strChildrenContextKey]);
4691
4724
  if (isArray(childEvts)) {
4692
- for (var lp = 0; lp < childEvts[_DYN_LENGTH$1 ]; lp++) {
4725
+ for (var lp = 0; lp < childEvts[_DYN_LENGTH ]; lp++) {
4693
4726
  var childEvt = childEvts[lp];
4694
4727
  if (childEvt) {
4695
4728
  childTime += childEvt[_DYN_TIME ];
@@ -4795,12 +4828,12 @@ function _createOTelTraceState(traceState) {
4795
4828
  }
4796
4829
  var otTraceState = {
4797
4830
  set: function (key, value) {
4798
- var newState = createW3cTraceState(STR_EMPTY$1, traceState);
4831
+ var newState = createW3cTraceState(STR_EMPTY, traceState);
4799
4832
  newState.set(key, value);
4800
4833
  return _createOTelTraceState(newState);
4801
4834
  },
4802
4835
  unset: function (key) {
4803
- var newState = createW3cTraceState(STR_EMPTY$1, traceState);
4836
+ var newState = createW3cTraceState(STR_EMPTY, traceState);
4804
4837
  newState.del(key);
4805
4838
  return _createOTelTraceState(newState);
4806
4839
  },
@@ -4809,10 +4842,10 @@ function _createOTelTraceState(traceState) {
4809
4842
  },
4810
4843
  serialize: function () {
4811
4844
  var headers = traceState.hdrs(1);
4812
- if (headers[_DYN_LENGTH$1 ] > 0) {
4845
+ if (headers[_DYN_LENGTH ] > 0) {
4813
4846
  return headers[0];
4814
4847
  }
4815
- return STR_EMPTY$1;
4848
+ return STR_EMPTY;
4816
4849
  }
4817
4850
  };
4818
4851
  objDefine(otTraceState, _otelTraceState.v, { g: function () { return traceState; } });
@@ -4837,7 +4870,7 @@ function createOTelTraceState(value) {
4837
4870
  parentTraceState = value[_otelTraceState.v];
4838
4871
  }
4839
4872
  if (parentTraceState) {
4840
- traceState = createW3cTraceState(STR_EMPTY$1, parentTraceState);
4873
+ traceState = createW3cTraceState(STR_EMPTY, parentTraceState);
4841
4874
  }
4842
4875
  else {
4843
4876
  traceState = createW3cTraceState(value.serialize());
@@ -4847,7 +4880,7 @@ function createOTelTraceState(value) {
4847
4880
  traceState = value;
4848
4881
  }
4849
4882
  else {
4850
- traceState = createW3cTraceState(isString(value) ? value : STR_EMPTY$1);
4883
+ traceState = createW3cTraceState(isString(value) ? value : STR_EMPTY);
4851
4884
  }
4852
4885
  return _createOTelTraceState(traceState);
4853
4886
  }
@@ -4922,7 +4955,7 @@ function initializePlugins(processContext, extensions) {
4922
4955
  }
4923
4956
  arrForEach(initPlugins, function (thePlugin) {
4924
4957
  var core = processContext[STR_CORE ]();
4925
- thePlugin[_DYN_INITIALIZE$1 ](processContext.getCfg(), core, extensions, processContext[_DYN_GET_NEXT ]());
4958
+ thePlugin[_DYN_INITIALIZE ](processContext.getCfg(), core, extensions, processContext[_DYN_GET_NEXT ]());
4926
4959
  pluginState = _getPluginState(thePlugin);
4927
4960
  if (!thePlugin[STR_CORE] && !pluginState[STR_CORE]) {
4928
4961
  pluginState[STR_CORE] = core;
@@ -4967,10 +5000,10 @@ function createDistributedTraceContext(parent) {
4967
5000
  var parentCtx = null;
4968
5001
  var initCtx = null;
4969
5002
  var traceId = (parent && isValidTraceId(parent[_DYN_TRACE_ID ])) ? parent[_DYN_TRACE_ID ] : generateW3CId();
4970
- var spanId = (parent && isValidSpanId(parent[_DYN_SPAN_ID ])) ? parent[_DYN_SPAN_ID ] : STR_EMPTY$1;
5003
+ var spanId = (parent && isValidSpanId(parent[_DYN_SPAN_ID ])) ? parent[_DYN_SPAN_ID ] : STR_EMPTY;
4971
5004
  var traceFlags = parent ? parent[_DYN_TRACE_FLAGS ] : UNDEFINED_VALUE;
4972
5005
  var isRemote = parent ? parent.isRemote : false;
4973
- var pageName = STR_EMPTY$1;
5006
+ var pageName = STR_EMPTY;
4974
5007
  var traceState = null;
4975
5008
  if (parent) {
4976
5009
  if (isDistributedTraceContext(parent)) {
@@ -5041,15 +5074,15 @@ function createDistributedTraceContext(parent) {
5041
5074
  if (!parentCtx) {
5042
5075
  if (initCtx) {
5043
5076
  if (isOTelTraceState(initCtx[_DYN_TRACE_STATE ])) {
5044
- traceState = createW3cTraceState(initCtx[_DYN_TRACE_STATE ].serialize() || STR_EMPTY$1, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5077
+ traceState = createW3cTraceState(initCtx[_DYN_TRACE_STATE ].serialize() || STR_EMPTY, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5045
5078
  }
5046
5079
  else {
5047
- traceState = createW3cTraceState(STR_EMPTY$1, initCtx[_DYN_TRACE_STATE ] || (parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined));
5080
+ traceState = createW3cTraceState(STR_EMPTY, initCtx[_DYN_TRACE_STATE ] || (parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined));
5048
5081
  }
5049
5082
  }
5050
5083
  }
5051
5084
  if (!traceState) {
5052
- traceState = createW3cTraceState(STR_EMPTY$1, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5085
+ traceState = createW3cTraceState(STR_EMPTY, parentCtx ? parentCtx[_DYN_TRACE_STATE ] : undefined);
5053
5086
  }
5054
5087
  }
5055
5088
  return traceState;
@@ -5193,10 +5226,10 @@ function _createInternalContext(telemetryChain, dynamicHandler, core, startAt) {
5193
5226
  _nextProxy = nextProxy ? nextProxy[_DYN_GET_NEXT ]() : null;
5194
5227
  if (!nextProxy) {
5195
5228
  var onComplete = _onComplete;
5196
- if (onComplete && onComplete[_DYN_LENGTH$1 ] > 0) {
5229
+ if (onComplete && onComplete[_DYN_LENGTH ] > 0) {
5197
5230
  arrForEach(onComplete, function (completeDetails) {
5198
5231
  try {
5199
- completeDetails.func.call(completeDetails.self, completeDetails.args);
5232
+ completeDetails.func[_DYN_CALL ](completeDetails.self, completeDetails.args);
5200
5233
  }
5201
5234
  catch (e) {
5202
5235
  _throwInternal(core[_DYN_LOGGER ], 2 , 73 , "Unexpected Exception during onComplete - " + dumpObj(e));
@@ -5333,7 +5366,7 @@ function createProcessTelemetryUpdateContext(telemetryChain, core, startAt) {
5333
5366
  function createTelemetryProxyChain(plugins, config, core, startAt) {
5334
5367
  var firstProxy = null;
5335
5368
  var add = startAt ? false : true;
5336
- if (isArray(plugins) && plugins[_DYN_LENGTH$1 ] > 0) {
5369
+ if (isArray(plugins) && plugins[_DYN_LENGTH ] > 0) {
5337
5370
  var lastProxy_1 = null;
5338
5371
  arrForEach(plugins, function (thePlugin) {
5339
5372
  if (!add && startAt === thePlugin) {
@@ -5406,7 +5439,7 @@ function createTelemetryPluginProxy(plugin, config, core) {
5406
5439
  doPerf(itemCtx[STR_CORE ](), function () { return identifier + ":" + name; }, function () {
5407
5440
  hasRunContext[chainId] = true;
5408
5441
  try {
5409
- var nextId = nextProxy ? nextProxy._id : STR_EMPTY$1;
5442
+ var nextId = nextProxy ? nextProxy._id : STR_EMPTY;
5410
5443
  if (nextId) {
5411
5444
  hasRunContext[nextId] = false;
5412
5445
  }
@@ -5525,20 +5558,20 @@ function createUnloadHookContainer() {
5525
5558
  _hooks = [];
5526
5559
  arrForEach(oldHooks, function (fn) {
5527
5560
  try {
5528
- (fn.rm || fn.remove).call(fn);
5561
+ (fn.rm || fn.remove)[_DYN_CALL ](fn);
5529
5562
  }
5530
5563
  catch (e) {
5531
5564
  _throwInternal(logger, 2 , 73 , "Unloading:" + dumpObj(e));
5532
5565
  }
5533
5566
  });
5534
- if (_maxHooks && oldHooks[_DYN_LENGTH$1 ] > _maxHooks) {
5567
+ if (_maxHooks && oldHooks[_DYN_LENGTH ] > _maxHooks) {
5535
5568
  _hookAddMonitor ? _hookAddMonitor("doUnload", oldHooks) : _throwInternal(null, 1 , 48 , "Max unload hooks exceeded. An excessive number of unload hooks has been detected.");
5536
5569
  }
5537
5570
  }
5538
5571
  function _addHook(hooks) {
5539
5572
  if (hooks) {
5540
5573
  arrAppend(_hooks, hooks);
5541
- if (_maxHooks && _hooks[_DYN_LENGTH$1 ] > _maxHooks) {
5574
+ if (_maxHooks && _hooks[_DYN_LENGTH ] > _maxHooks) {
5542
5575
  _hookAddMonitor ? _hookAddMonitor("Add", _hooks) : _throwInternal(null, 1 , 48 , "Max unload hooks exceeded. An excessive number of unload hooks has been detected.");
5543
5576
  }
5544
5577
  }
@@ -5564,7 +5597,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
5564
5597
  var _hookContainer;
5565
5598
  _initDefaults();
5566
5599
  dynamicProto(BaseTelemetryPlugin, _self, function (_self) {
5567
- _self[_DYN_INITIALIZE$1 ] = function (config, core, extensions, pluginChain) {
5600
+ _self[_DYN_INITIALIZE ] = function (config, core, extensions, pluginChain) {
5568
5601
  _setDefaults(config, core, pluginChain);
5569
5602
  _isinitialized = true;
5570
5603
  };
@@ -5708,7 +5741,7 @@ function _addInitializer(_initializers, id, telemetryInitializer) {
5708
5741
  }
5709
5742
  function _runInitializers(_initializers, item, logger) {
5710
5743
  var doNotSendItem = false;
5711
- var telemetryInitializersCount = _initializers[_DYN_LENGTH$1 ];
5744
+ var telemetryInitializersCount = _initializers[_DYN_LENGTH ];
5712
5745
  for (var i = 0; i < telemetryInitializersCount; ++i) {
5713
5746
  var telemetryInitializer = _initializers[i];
5714
5747
  if (telemetryInitializer) {
@@ -5828,7 +5861,7 @@ function _validateExtensions(logger, channelPriority, allExtensions) {
5828
5861
  var channels = [];
5829
5862
  var extPriorities = {};
5830
5863
  arrForEach(allExtensions, function (ext) {
5831
- if (isNullOrUndefined(ext) || isNullOrUndefined(ext[_DYN_INITIALIZE$1 ])) {
5864
+ if (isNullOrUndefined(ext) || isNullOrUndefined(ext[_DYN_INITIALIZE ])) {
5832
5865
  throwError(strValidationError);
5833
5866
  }
5834
5867
  var extPriority = ext[STR_PRIORITY ];
@@ -5957,7 +5990,7 @@ function _getParentTraceCtx(mode) {
5957
5990
  }
5958
5991
  return spanContext;
5959
5992
  }
5960
- var AppInsightsCore$1 = /** @class */ (function () {
5993
+ var AppInsightsCore = /** @class */ (function () {
5961
5994
  function AppInsightsCore() {
5962
5995
  var _configHandler;
5963
5996
  var _isInitialized;
@@ -6006,7 +6039,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6006
6039
  _self._setPendingStatus = function () {
6007
6040
  _activeStatus = 3 ;
6008
6041
  };
6009
- _self[_DYN_INITIALIZE$1 ] = function (config, extensions, logger, notificationManager) {
6042
+ _self[_DYN_INITIALIZE ] = function (config, extensions, logger, notificationManager) {
6010
6043
  if (_isUnloading) {
6011
6044
  throwError(strSdkUnloadingError);
6012
6045
  }
@@ -6037,10 +6070,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6037
6070
  _configExtensions[_DYN_PUSH ].apply(_configExtensions, __spreadArrayFn(__spreadArrayFn([], extensions, false), cfgExtensions));
6038
6071
  _channelConfig = config[STR_CHANNELS ];
6039
6072
  _initPluginChain(null);
6040
- if (!_channels || _channels[_DYN_LENGTH$1 ] === 0) {
6073
+ if (!_channels || _channels[_DYN_LENGTH ] === 0) {
6041
6074
  throwError("No " + STR_CHANNELS + " available");
6042
6075
  }
6043
- if (_channelConfig && _channelConfig[_DYN_LENGTH$1 ] > 1) {
6076
+ if (_channelConfig && _channelConfig[_DYN_LENGTH ] > 1) {
6044
6077
  var teeController = _self[_DYN_GET_PLUGIN ]("TeeChannelController");
6045
6078
  if (!teeController || !teeController.plugin) {
6046
6079
  _throwInternal(_logger, 1 , 28 , "TeeChannel required");
@@ -6062,7 +6095,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6062
6095
  }
6063
6096
  return objFreeze(controls);
6064
6097
  };
6065
- _self.track = function (telemetryItem) {
6098
+ _self[_DYN_TRACK ] = function (telemetryItem) {
6066
6099
  doPerf(_self[STR_GET_PERF_MGR ](), function () { return "AppInsightsCore:track"; }, function () {
6067
6100
  if (telemetryItem === null) {
6068
6101
  _notifyInvalidEvent(telemetryItem);
@@ -6072,14 +6105,14 @@ var AppInsightsCore$1 = /** @class */ (function () {
6072
6105
  _notifyInvalidEvent(telemetryItem);
6073
6106
  throwError("telemetry name required");
6074
6107
  }
6075
- telemetryItem.iKey = telemetryItem.iKey || _instrumentationKey;
6108
+ telemetryItem[_DYN_I_KEY ] = telemetryItem[_DYN_I_KEY ] || _instrumentationKey;
6076
6109
  telemetryItem[_DYN_TIME ] = telemetryItem[_DYN_TIME ] || toISOString(new Date());
6077
6110
  telemetryItem.ver = telemetryItem.ver || "4.0";
6078
6111
  if (!_isUnloading && _self[_DYN_IS_INITIALIZED ]() && _activeStatus === ActiveStatus.ACTIVE) {
6079
6112
  _createTelCtx()[_DYN_PROCESS_NEXT ](telemetryItem);
6080
6113
  }
6081
6114
  else if (_activeStatus !== ActiveStatus.INACTIVE) {
6082
- if (_eventQueue[_DYN_LENGTH$1 ] <= _initInMemoMaxSize) {
6115
+ if (_eventQueue[_DYN_LENGTH ] <= _initInMemoMaxSize) {
6083
6116
  _eventQueue[_DYN_PUSH ](telemetryItem);
6084
6117
  }
6085
6118
  }
@@ -6120,15 +6153,15 @@ var AppInsightsCore$1 = /** @class */ (function () {
6120
6153
  _perfManager = perfMgr;
6121
6154
  };
6122
6155
  _self.eventCnt = function () {
6123
- return _eventQueue[_DYN_LENGTH$1 ];
6156
+ return _eventQueue[_DYN_LENGTH ];
6124
6157
  };
6125
6158
  _self.releaseQueue = function () {
6126
- if (_isInitialized && _eventQueue[_DYN_LENGTH$1 ] > 0) {
6159
+ if (_isInitialized && _eventQueue[_DYN_LENGTH ] > 0) {
6127
6160
  var eventQueue = _eventQueue;
6128
6161
  _eventQueue = [];
6129
6162
  if (_activeStatus === 2 ) {
6130
6163
  arrForEach(eventQueue, function (event) {
6131
- event.iKey = event.iKey || _instrumentationKey;
6164
+ event[_DYN_I_KEY ] = event[_DYN_I_KEY ] || _instrumentationKey;
6132
6165
  _createTelCtx()[_DYN_PROCESS_NEXT ](event);
6133
6166
  });
6134
6167
  }
@@ -6137,7 +6170,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6137
6170
  }
6138
6171
  }
6139
6172
  };
6140
- _self.pollInternalLogs = function (eventName) {
6173
+ _self[_DYN_POLL_INTERNAL_LOGS ] = function (eventName) {
6141
6174
  _internalLogsEventName = eventName || null;
6142
6175
  _forceStopInternalLogPoller = false;
6143
6176
  _internalLogPoller && _internalLogPoller[_DYN_CANCEL ]();
@@ -6175,7 +6208,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6175
6208
  else {
6176
6209
  _endpoint = endpointUrl;
6177
6210
  }
6178
- if (promises[_DYN_LENGTH$1 ]) {
6211
+ if (promises[_DYN_LENGTH ]) {
6179
6212
  _waitForInitPromises(theConfig, promises);
6180
6213
  }
6181
6214
  else {
@@ -6203,13 +6236,13 @@ var AppInsightsCore$1 = /** @class */ (function () {
6203
6236
  return;
6204
6237
  }
6205
6238
  if (!response.rejected) {
6206
- var values = response[_DYN_VALUE$1 ];
6207
- if (values && values[_DYN_LENGTH$1 ]) {
6239
+ var values = response[_DYN_VALUE ];
6240
+ if (values && values[_DYN_LENGTH ]) {
6208
6241
  var ikeyRes = values[0];
6209
- _instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE$1 ];
6210
- if (values[_DYN_LENGTH$1 ] > 1) {
6242
+ _instrumentationKey = ikeyRes && ikeyRes[_DYN_VALUE ];
6243
+ if (values[_DYN_LENGTH ] > 1) {
6211
6244
  var endpointRes = values[1];
6212
- _endpoint = endpointRes && endpointRes[_DYN_VALUE$1 ];
6245
+ _endpoint = endpointRes && endpointRes[_DYN_VALUE ];
6213
6246
  }
6214
6247
  }
6215
6248
  if (_instrumentationKey) {
@@ -6240,12 +6273,12 @@ var AppInsightsCore$1 = /** @class */ (function () {
6240
6273
  function _releaseQueues() {
6241
6274
  if (_isInitialized) {
6242
6275
  _self.releaseQueue();
6243
- _self.pollInternalLogs();
6276
+ _self[_DYN_POLL_INTERNAL_LOGS ]();
6244
6277
  }
6245
6278
  }
6246
6279
  function _startLogPoller(alwaysStart) {
6247
6280
  if ((!_internalLogPoller || !_internalLogPoller[_DYN_ENABLED ]) && !_forceStopInternalLogPoller) {
6248
- var shouldStart = alwaysStart || (_logger && _logger.queue[_DYN_LENGTH$1 ] > 0);
6281
+ var shouldStart = alwaysStart || (_logger && _logger.queue[_DYN_LENGTH ] > 0);
6249
6282
  if (shouldStart) {
6250
6283
  if (!_internalLogPollerListening) {
6251
6284
  _internalLogPollerListening = true;
@@ -6438,10 +6471,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6438
6471
  theSpanContext = createDistributedTraceContext(currentCtx);
6439
6472
  var parentContext = span[_DYN_PARENT_SPAN_CONTEXT ];
6440
6473
  if (!parentContext) {
6441
- if (span.parentSpanId) {
6474
+ if (span[_DYN_PARENT_SPAN_ID ]) {
6442
6475
  parentContext = {
6443
6476
  traceId: otelSpanContext[_DYN_TRACE_ID ],
6444
- spanId: span.parentSpanId
6477
+ spanId: span[_DYN_PARENT_SPAN_ID ]
6445
6478
  };
6446
6479
  }
6447
6480
  }
@@ -6507,8 +6540,8 @@ var AppInsightsCore$1 = /** @class */ (function () {
6507
6540
  var _addPluginVersions = function (plugins) {
6508
6541
  if (plugins) {
6509
6542
  arrForEach(plugins, function (plugin) {
6510
- if (plugin[_DYN_IDENTIFIER ] && plugin[_DYN_VERSION ] && !thePlugins[plugin.identifier]) {
6511
- var ver = plugin[_DYN_IDENTIFIER ] + "=" + plugin[_DYN_VERSION ];
6543
+ if (plugin[_DYN_IDENTIFIER ] && plugin[STR_VERSION ] && !thePlugins[plugin.identifier]) {
6544
+ var ver = plugin[_DYN_IDENTIFIER ] + "=" + plugin[STR_VERSION ];
6512
6545
  _pluginVersionStringArr[_DYN_PUSH ](ver);
6513
6546
  thePlugins[plugin.identifier] = plugin;
6514
6547
  }
@@ -6549,7 +6582,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6549
6582
  }
6550
6583
  _pluginVersionString = _pluginVersionStringArr[_DYN_JOIN ](";");
6551
6584
  }
6552
- return _pluginVersionString || STR_EMPTY$1;
6585
+ return _pluginVersionString || STR_EMPTY;
6553
6586
  }
6554
6587
  });
6555
6588
  objDefine(_self, "logger", {
@@ -6571,7 +6604,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6571
6604
  _self[_DYN_LOGGER ] = new DiagnosticLogger(_configHandler.cfg);
6572
6605
  _extensions = [];
6573
6606
  var cfgExtensions = _self[_DYN_CONFIG ][STR_EXTENSIONS ] || [];
6574
- cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH$1 ]);
6607
+ cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH ]);
6575
6608
  arrAppend(cfgExtensions, _extensions);
6576
6609
  _telemetryInitializerPlugin = new TelemetryInitializerPlugin();
6577
6610
  _serverOTelCtx = null;
@@ -6622,10 +6655,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6622
6655
  var allExtensions = arrAppend(sortPlugins(theExtensions[STR_CORE ]), _channels);
6623
6656
  _extensions = objFreeze(allExtensions);
6624
6657
  var cfgExtensions = _self[_DYN_CONFIG ][STR_EXTENSIONS ] || [];
6625
- cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH$1 ]);
6658
+ cfgExtensions.splice(0, cfgExtensions[_DYN_LENGTH ]);
6626
6659
  arrAppend(cfgExtensions, _extensions);
6627
6660
  var rootCtx = _createTelCtx();
6628
- if (_channels && _channels[_DYN_LENGTH$1 ] > 0) {
6661
+ if (_channels && _channels[_DYN_LENGTH ] > 0) {
6629
6662
  initializePlugins(rootCtx[_DYN_CREATE_NEW ](_channels), allExtensions);
6630
6663
  }
6631
6664
  initializePlugins(rootCtx, allExtensions);
@@ -6646,7 +6679,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6646
6679
  channelHosts[_DYN_PUSH ](ext);
6647
6680
  }
6648
6681
  });
6649
- if (!thePlugin && channelHosts[_DYN_LENGTH$1 ] > 0) {
6682
+ if (!thePlugin && channelHosts[_DYN_LENGTH ] > 0) {
6650
6683
  arrForEach(channelHosts, function (host) {
6651
6684
  thePlugin = host.getChannel(pluginIdentifier);
6652
6685
  if (!thePlugin) {
@@ -6696,7 +6729,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6696
6729
  return _pluginChain;
6697
6730
  }
6698
6731
  function _removePlugins(thePlugins, unloadState, removeComplete) {
6699
- if (thePlugins && thePlugins[_DYN_LENGTH$1 ] > 0) {
6732
+ if (thePlugins && thePlugins[_DYN_LENGTH ] > 0) {
6700
6733
  var unloadChain = createTelemetryProxyChain(thePlugins, _configHandler.cfg, _self);
6701
6734
  var unloadCtx = createProcessTelemetryUnloadContext(unloadChain, _self);
6702
6735
  unloadCtx[_DYN_ON_COMPLETE ](function () {
@@ -6741,7 +6774,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6741
6774
  function _flushInternalLogs() {
6742
6775
  if (_logger && _logger.queue) {
6743
6776
  var queue = _logger.queue.slice(0);
6744
- _logger.queue[_DYN_LENGTH$1 ] = 0;
6777
+ _logger.queue[_DYN_LENGTH ] = 0;
6745
6778
  arrForEach(queue, function (logMessage) {
6746
6779
  var item = {
6747
6780
  name: _internalLogsEventName ? _internalLogsEventName : "InternalMessageId: " + logMessage[_DYN_MESSAGE_ID ],
@@ -6750,7 +6783,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6750
6783
  baseType: _InternalLogMessage.dataType,
6751
6784
  baseData: { message: logMessage[_DYN_MESSAGE ] }
6752
6785
  };
6753
- _self.track(item);
6786
+ _self[_DYN_TRACK ](item);
6754
6787
  });
6755
6788
  }
6756
6789
  }
@@ -6768,7 +6801,7 @@ var AppInsightsCore$1 = /** @class */ (function () {
6768
6801
  callBack = null;
6769
6802
  }
6770
6803
  }
6771
- if (_channels && _channels[_DYN_LENGTH$1 ] > 0) {
6804
+ if (_channels && _channels[_DYN_LENGTH ] > 0) {
6772
6805
  var flushCtx = _createTelCtx()[_DYN_CREATE_NEW ](_channels);
6773
6806
  flushCtx.iterate(function (plugin) {
6774
6807
  if (plugin[_DYN_FLUSH ]) {
@@ -6855,10 +6888,10 @@ var AppInsightsCore$1 = /** @class */ (function () {
6855
6888
 
6856
6889
  function parseResponse(response, diagLog) {
6857
6890
  try {
6858
- if (response && response !== STR_EMPTY$1) {
6891
+ if (response && response !== STR_EMPTY) {
6859
6892
  var result = getJSON().parse(response);
6860
6893
  if (result && result[_DYN_ITEMS_RECEIVED ] && result[_DYN_ITEMS_RECEIVED ] >= result.itemsAccepted &&
6861
- result.itemsReceived - result.itemsAccepted === result.errors[_DYN_LENGTH$1 ]) {
6894
+ result.itemsReceived - result.itemsAccepted === result.errors[_DYN_LENGTH ]) {
6862
6895
  return result;
6863
6896
  }
6864
6897
  }
@@ -6894,7 +6927,7 @@ var SenderPostManager = /** @class */ (function () {
6894
6927
  dynamicProto(SenderPostManager, this, function (_self, _base) {
6895
6928
  var _sendCredentials = true;
6896
6929
  _initDefaults();
6897
- _self[_DYN_INITIALIZE$1 ] = function (config, diagLog) {
6930
+ _self[_DYN_INITIALIZE ] = function (config, diagLog) {
6898
6931
  _diagLog = diagLog;
6899
6932
  if (_isInitialized) {
6900
6933
  _throwInternal(_diagLog, 1 , 28 , "Sender is already initialized");
@@ -6938,7 +6971,7 @@ var SenderPostManager = /** @class */ (function () {
6938
6971
  return _syncFetchPayload;
6939
6972
  };
6940
6973
  _self.getSenderInst = function (transports, sync) {
6941
- if (transports && transports[_DYN_LENGTH$1 ]) {
6974
+ if (transports && transports[_DYN_LENGTH ]) {
6942
6975
  return _getSenderInterface(transports, sync);
6943
6976
  }
6944
6977
  return null;
@@ -6973,10 +7006,10 @@ var SenderPostManager = /** @class */ (function () {
6973
7006
  var callbackCalled_1 = false;
6974
7007
  doAwaitResponse(reader_1.read(), function processChunk(response) {
6975
7008
  if (!callbackCalled_1 && !response.rejected) {
6976
- var result = response[_DYN_VALUE$1 ];
7009
+ var result = response[_DYN_VALUE ];
6977
7010
  if (!result.done) {
6978
- chunks_1[_DYN_PUSH ](result[_DYN_VALUE$1 ]);
6979
- totalLength_1 += result.value[_DYN_LENGTH$1 ];
7011
+ chunks_1[_DYN_PUSH ](result[_DYN_VALUE ]);
7012
+ totalLength_1 += result.value[_DYN_LENGTH ];
6980
7013
  return doAwaitResponse(reader_1.read(), processChunk);
6981
7014
  }
6982
7015
  var combined = new Uint8Array(totalLength_1);
@@ -6984,11 +7017,11 @@ var SenderPostManager = /** @class */ (function () {
6984
7017
  for (var _i = 0, chunks_2 = chunks_1; _i < chunks_2.length; _i++) {
6985
7018
  var chunk = chunks_2[_i];
6986
7019
  combined.set(chunk, offset);
6987
- offset += chunk[_DYN_LENGTH$1 ];
7020
+ offset += chunk[_DYN_LENGTH ];
6988
7021
  }
6989
7022
  payload[_DYN_DATA ] = combined;
6990
7023
  payload[_DYN_HEADERS ]["Content-Encoding"] = "gzip";
6991
- payload._chunkCount = chunks_1[_DYN_LENGTH$1 ];
7024
+ payload._chunkCount = chunks_1[_DYN_LENGTH ];
6992
7025
  }
6993
7026
  if (!callbackCalled_1) {
6994
7027
  callbackCalled_1 = true;
@@ -7016,7 +7049,7 @@ var SenderPostManager = /** @class */ (function () {
7016
7049
  var transportType = 0 ;
7017
7050
  var sendPostFunc = null;
7018
7051
  var lp = 0;
7019
- while (sendPostFunc == null && lp < transports[_DYN_LENGTH$1 ]) {
7052
+ while (sendPostFunc == null && lp < transports[_DYN_LENGTH ]) {
7020
7053
  transportType = transports[lp];
7021
7054
  if (!_disableXhr && transportType === 1 ) {
7022
7055
  if (useXDomainRequest()) {
@@ -7057,7 +7090,7 @@ var SenderPostManager = /** @class */ (function () {
7057
7090
  _onNoPayloadUrl(oncomplete);
7058
7091
  return true;
7059
7092
  }
7060
- url = payload[_DYN_URL_STRING ] + (_addNoResponse ? _noResponseQs : STR_EMPTY$1);
7093
+ url = payload[_DYN_URL_STRING ] + (_addNoResponse ? _noResponseQs : STR_EMPTY);
7061
7094
  var data = payload[_DYN_DATA ];
7062
7095
  var plainTextBatch = _isOneDs ? data : new Blob([data], { type: "text/plain;charset=UTF-8" });
7063
7096
  var queued = nav.sendBeacon(url, plainTextBatch);
@@ -7078,13 +7111,13 @@ var SenderPostManager = /** @class */ (function () {
7078
7111
  }
7079
7112
  }
7080
7113
  else {
7081
- _onSuccess(STR_EMPTY$1, oncomplete);
7114
+ _onSuccess(STR_EMPTY, oncomplete);
7082
7115
  }
7083
7116
  }
7084
7117
  }
7085
7118
  catch (e) {
7086
7119
  _isOneDs && _warnToConsole(_diagLog, "Failed to send telemetry using sendBeacon API. Ex:" + dumpObj(e));
7087
- _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, STR_EMPTY$1);
7120
+ _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, STR_EMPTY);
7088
7121
  }
7089
7122
  return;
7090
7123
  }
@@ -7108,7 +7141,7 @@ var SenderPostManager = /** @class */ (function () {
7108
7141
  resolveFunc && resolveFunc(false);
7109
7142
  return;
7110
7143
  }
7111
- var xhr = openXhr$1(STR_POST_METHOD, endPointUrl, _sendCredentials, true, sync, payload[_DYN_TIMEOUT ]);
7144
+ var xhr = openXhr(STR_POST_METHOD, endPointUrl, _sendCredentials, true, sync, payload[_DYN_TIMEOUT ]);
7112
7145
  if (!_isOneDs) {
7113
7146
  xhr.setRequestHeader("Content-type", "application/json");
7114
7147
  }
@@ -7140,11 +7173,11 @@ var SenderPostManager = /** @class */ (function () {
7140
7173
  }
7141
7174
  }
7142
7175
  xhr.onerror = function (event) {
7143
- _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 400, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY$1 : formatErrorMessageXhr(xhr));
7176
+ _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 400, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY : formatErrorMessageXhr(xhr));
7144
7177
  rejectFunc && rejectFunc(event);
7145
7178
  };
7146
7179
  xhr.ontimeout = function () {
7147
- _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 500, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY$1 : formatErrorMessageXhr(xhr));
7180
+ _doOnComplete(oncomplete, _isOneDs ? xhr[_DYN_STATUS ] : 500, _getAllResponseHeaders(xhr, _isOneDs), _isOneDs ? STR_EMPTY : formatErrorMessageXhr(xhr));
7148
7181
  resolveFunc && resolveFunc(false);
7149
7182
  };
7150
7183
  xhr.send(payload[_DYN_DATA ]);
@@ -7159,7 +7192,7 @@ var SenderPostManager = /** @class */ (function () {
7159
7192
  var resolveFunc;
7160
7193
  var rejectFunc;
7161
7194
  var requestHeaders = new Headers();
7162
- var batchLength = batch[_DYN_LENGTH$1 ];
7195
+ var batchLength = batch[_DYN_LENGTH ];
7163
7196
  var ignoreResponse = false;
7164
7197
  var responseHandled = false;
7165
7198
  var headers = payload[_DYN_HEADERS ] || {};
@@ -7170,7 +7203,7 @@ var SenderPostManager = /** @class */ (function () {
7170
7203
  _a[DisabledPropertyName] = true
7171
7204
  ,
7172
7205
  _a);
7173
- if (payload.headers && objKeys(payload.headers)[_DYN_LENGTH$1 ] > 0) {
7206
+ if (payload.headers && objKeys(payload.headers)[_DYN_LENGTH ] > 0) {
7174
7207
  arrForEach(objKeys(headers), function (headerName) {
7175
7208
  requestHeaders.append(headerName, headers[headerName]);
7176
7209
  });
@@ -7216,20 +7249,20 @@ var SenderPostManager = /** @class */ (function () {
7216
7249
  }
7217
7250
  function _handleError(res, statusCode) {
7218
7251
  if (statusCode) {
7219
- _doOnComplete(oncomplete, _isOneDs ? 0 : statusCode, {}, _isOneDs ? STR_EMPTY$1 : res);
7252
+ _doOnComplete(oncomplete, _isOneDs ? 0 : statusCode, {}, _isOneDs ? STR_EMPTY : res);
7220
7253
  }
7221
7254
  else {
7222
- _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, _isOneDs ? STR_EMPTY$1 : res);
7255
+ _doOnComplete(oncomplete, _isOneDs ? 0 : 400, {}, _isOneDs ? STR_EMPTY : res);
7223
7256
  }
7224
7257
  }
7225
7258
  function _onFetchComplete(response, payload, value) {
7226
7259
  var status = response[_DYN_STATUS ];
7227
7260
  var onCompleteFunc = _onCompleteFuncs.fetchOnComplete;
7228
7261
  if (onCompleteFunc && isFunction(onCompleteFunc)) {
7229
- onCompleteFunc(response, oncomplete, value || STR_EMPTY$1, payload);
7262
+ onCompleteFunc(response, oncomplete, value || STR_EMPTY, payload);
7230
7263
  }
7231
7264
  else {
7232
- _doOnComplete(oncomplete, status, {}, value || STR_EMPTY$1);
7265
+ _doOnComplete(oncomplete, status, {}, value || STR_EMPTY);
7233
7266
  }
7234
7267
  }
7235
7268
  try {
@@ -7241,7 +7274,7 @@ var SenderPostManager = /** @class */ (function () {
7241
7274
  if (!responseHandled) {
7242
7275
  responseHandled = true;
7243
7276
  if (!result.rejected) {
7244
- var response_1 = result[_DYN_VALUE$1 ];
7277
+ var response_1 = result[_DYN_VALUE ];
7245
7278
  try {
7246
7279
  if (!_isOneDs && !response_1.ok) {
7247
7280
  if (response_1[_DYN_STATUS ]) {
@@ -7254,12 +7287,12 @@ var SenderPostManager = /** @class */ (function () {
7254
7287
  }
7255
7288
  else {
7256
7289
  if (_isOneDs && !response_1.body) {
7257
- _onFetchComplete(response_1, null, STR_EMPTY$1);
7290
+ _onFetchComplete(response_1, null, STR_EMPTY);
7258
7291
  resolveFunc && resolveFunc(true);
7259
7292
  }
7260
7293
  else {
7261
7294
  doAwaitResponse(response_1.text(), function (resp) {
7262
- _onFetchComplete(response_1, payload, resp[_DYN_VALUE$1 ]);
7295
+ _onFetchComplete(response_1, payload, resp[_DYN_VALUE ]);
7263
7296
  resolveFunc && resolveFunc(true);
7264
7297
  });
7265
7298
  }
@@ -7319,13 +7352,13 @@ var SenderPostManager = /** @class */ (function () {
7319
7352
  }
7320
7353
  };
7321
7354
  xdr.onerror = function () {
7322
- _doOnComplete(oncomplete, 400, {}, _isOneDs ? STR_EMPTY$1 : formatErrorMessageXdr(xdr));
7355
+ _doOnComplete(oncomplete, 400, {}, _isOneDs ? STR_EMPTY : formatErrorMessageXdr(xdr));
7323
7356
  };
7324
7357
  xdr.ontimeout = function () {
7325
7358
  _doOnComplete(oncomplete, 500, {});
7326
7359
  };
7327
7360
  xdr.onprogress = _noopVoid;
7328
- var hostingProtocol = _window && _window.location && _window.location.protocol || STR_EMPTY$1;
7361
+ var hostingProtocol = _window && _window.location && _window.location.protocol || STR_EMPTY;
7329
7362
  var endpoint = payload[_DYN_URL_STRING ];
7330
7363
  if (!endpoint) {
7331
7364
  _onNoPayloadUrl(oncomplete);
@@ -7337,7 +7370,7 @@ var SenderPostManager = /** @class */ (function () {
7337
7370
  _onError(msg, oncomplete);
7338
7371
  return;
7339
7372
  }
7340
- var endpointUrl = _isOneDs ? endpoint : endpoint[_DYN_REPLACE ](/^(https?:)/, STR_EMPTY$1);
7373
+ var endpointUrl = _isOneDs ? endpoint : endpoint[_DYN_REPLACE ](/^(https?:)/, STR_EMPTY);
7341
7374
  xdr.open(STR_POST_METHOD, endpointUrl);
7342
7375
  if (payload[_DYN_TIMEOUT ]) {
7343
7376
  xdr[_DYN_TIMEOUT ] = payload[_DYN_TIMEOUT ];
@@ -7411,16 +7444,16 @@ var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
7411
7444
  /*#__NO_SIDE_EFFECTS__*/
7412
7445
  function _normalizeNamespace(name) {
7413
7446
  if (name && name[_DYN_REPLACE ]) {
7414
- return name[_DYN_REPLACE ](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g, STR_EMPTY$1);
7447
+ return name[_DYN_REPLACE ](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g, STR_EMPTY);
7415
7448
  }
7416
7449
  return name;
7417
7450
  }
7418
7451
  /*#__NO_SIDE_EFFECTS__*/
7419
7452
  function _getEvtNamespace(eventName, evtNamespace) {
7420
7453
  if (evtNamespace) {
7421
- var theNamespace_1 = STR_EMPTY$1;
7454
+ var theNamespace_1 = STR_EMPTY;
7422
7455
  if (isArray(evtNamespace)) {
7423
- theNamespace_1 = STR_EMPTY$1;
7456
+ theNamespace_1 = STR_EMPTY;
7424
7457
  arrForEach(evtNamespace, function (name) {
7425
7458
  name = _normalizeNamespace(name);
7426
7459
  if (name) {
@@ -7438,13 +7471,13 @@ function _getEvtNamespace(eventName, evtNamespace) {
7438
7471
  if (theNamespace_1[0] !== ".") {
7439
7472
  theNamespace_1 = "." + theNamespace_1;
7440
7473
  }
7441
- eventName = (eventName || STR_EMPTY$1) + theNamespace_1;
7474
+ eventName = (eventName || STR_EMPTY) + theNamespace_1;
7442
7475
  }
7443
7476
  }
7444
- var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY$1) || []);
7477
+ var parsedEvent = (eventNamespace.exec(eventName || STR_EMPTY) || []);
7445
7478
  return {
7446
7479
  type: parsedEvent[1],
7447
- ns: ((parsedEvent[2] || STR_EMPTY$1).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY$1).split(".").sort())[_DYN_JOIN ](".")
7480
+ ns: ((parsedEvent[2] || STR_EMPTY).replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, STR_EMPTY).split(".").sort())[_DYN_JOIN ](".")
7448
7481
  };
7449
7482
  }
7450
7483
  /*#__NO_SIDE_EFFECTS__*/
@@ -7457,8 +7490,8 @@ function __getRegisteredEvents(target, eventName, evtNamespace) {
7457
7490
  if (!evtName[_DYN_TYPE ] || evtName[_DYN_TYPE ] === value[_DYN_EVT_NAME ][_DYN_TYPE ]) {
7458
7491
  if (!evtName.ns || evtName.ns === evtName.ns) {
7459
7492
  theEvents[_DYN_PUSH ]({
7460
- name: value.evtName[_DYN_TYPE ] + (value[_DYN_EVT_NAME ].ns ? "." + value[_DYN_EVT_NAME ].ns : STR_EMPTY$1),
7461
- handler: value.handler
7493
+ name: value.evtName[_DYN_TYPE ] + (value[_DYN_EVT_NAME ].ns ? "." + value[_DYN_EVT_NAME ].ns : STR_EMPTY),
7494
+ handler: value[_DYN_HANDLER ]
7462
7495
  });
7463
7496
  }
7464
7497
  }
@@ -7501,13 +7534,13 @@ function _doAttach(obj, evtName, handlerRef, useCapture) {
7501
7534
  return result;
7502
7535
  }
7503
7536
  function _doUnregister(target, events, evtName, unRegFn) {
7504
- var idx = events[_DYN_LENGTH$1 ];
7537
+ var idx = events[_DYN_LENGTH ];
7505
7538
  while (idx--) {
7506
7539
  var theEvent = events[idx];
7507
7540
  if (theEvent) {
7508
7541
  if (!evtName.ns || evtName.ns === theEvent[_DYN_EVT_NAME ].ns) {
7509
7542
  if (!unRegFn || unRegFn(theEvent)) {
7510
- _doDetach(target, theEvent[_DYN_EVT_NAME ], theEvent.handler, theEvent.capture);
7543
+ _doDetach(target, theEvent.evtName, theEvent[_DYN_HANDLER ], theEvent.capture);
7511
7544
  events[_DYN_SPLICE ](idx, 1);
7512
7545
  }
7513
7546
  }
@@ -7523,7 +7556,7 @@ function _unregisterEvents(target, evtName, unRegFn) {
7523
7556
  objForEachKey(eventCache, function (evtType, events) {
7524
7557
  _doUnregister(target, events, evtName, unRegFn);
7525
7558
  });
7526
- if (objKeys(eventCache)[_DYN_LENGTH$1 ] === 0) {
7559
+ if (objKeys(eventCache)[_DYN_LENGTH ] === 0) {
7527
7560
  _getElmNodeData().kill(target, strEvents);
7528
7561
  }
7529
7562
  }
@@ -7574,7 +7607,7 @@ function eventOff(target, eventName, handlerRef, evtNamespace, useCapture) {
7574
7607
  var evtName_1 = _getEvtNamespace(eventName, evtNamespace);
7575
7608
  var found_1 = false;
7576
7609
  _unregisterEvents(target, evtName_1, function (regEvent) {
7577
- if ((evtName_1.ns && !handlerRef) || regEvent.handler === handlerRef) {
7610
+ if ((evtName_1.ns && !handlerRef) || regEvent[_DYN_HANDLER ] === handlerRef) {
7578
7611
  found_1 = true;
7579
7612
  return true;
7580
7613
  }
@@ -7622,7 +7655,7 @@ function removeEventHandler(eventName, callback, evtNamespace) {
7622
7655
  }
7623
7656
  function _addEventListeners(events, listener, excludeEvents, evtNamespace) {
7624
7657
  var added = false;
7625
- if (listener && events && events[_DYN_LENGTH$1 ] > 0) {
7658
+ if (listener && events && events[_DYN_LENGTH ] > 0) {
7626
7659
  arrForEach(events, function (name) {
7627
7660
  if (name) {
7628
7661
  if (!excludeEvents || arrIndexOf(excludeEvents, name) === -1) {
@@ -7637,7 +7670,7 @@ function addEventListeners(events, listener, excludeEvents, evtNamespace) {
7637
7670
  var added = false;
7638
7671
  if (listener && events && isArray(events)) {
7639
7672
  added = _addEventListeners(events, listener, excludeEvents, evtNamespace);
7640
- if (!added && excludeEvents && excludeEvents[_DYN_LENGTH$1 ] > 0) {
7673
+ if (!added && excludeEvents && excludeEvents[_DYN_LENGTH ] > 0) {
7641
7674
  added = _addEventListeners(events, listener, null, evtNamespace);
7642
7675
  }
7643
7676
  }
@@ -7882,7 +7915,7 @@ function _iterator(target, cb, otelCfg, parentAttribs, inclDeleted) {
7882
7915
  var visitedKeys = parentAttribs ? [] : UNDEFINED_VALUE;
7883
7916
  var inheritState;
7884
7917
  var inheritContainerIter;
7885
- var current = _getStackEntry(target, STR_EMPTY$1);
7918
+ var current = _getStackEntry(target, STR_EMPTY);
7886
7919
  var inheritContainer;
7887
7920
  var inheritAttribs;
7888
7921
  var ctx = {
@@ -7898,7 +7931,7 @@ function _iterator(target, cb, otelCfg, parentAttribs, inclDeleted) {
7898
7931
  }
7899
7932
  }
7900
7933
  function _moveNext() {
7901
- var thePrefix = STR_EMPTY$1;
7934
+ var thePrefix = STR_EMPTY;
7902
7935
  var theKey;
7903
7936
  var theNode;
7904
7937
  var theSource = 0 ;
@@ -7937,7 +7970,7 @@ function _iterator(target, cb, otelCfg, parentAttribs, inclDeleted) {
7937
7970
  if (!theNode && inheritAttribs) {
7938
7971
  if (!inheritState) {
7939
7972
  inheritState = {
7940
- p: STR_EMPTY$1,
7973
+ p: STR_EMPTY,
7941
7974
  n: UNDEFINED_VALUE,
7942
7975
  k: objKeys(inheritAttribs),
7943
7976
  i: -1
@@ -8074,7 +8107,7 @@ function createAttributeContainer(otelCfg, name, inheritAttrib, attribLimits) {
8074
8107
  var inheritAttribObj = null;
8075
8108
  var listeners = null;
8076
8109
  var parentListenerHook = null;
8077
- var containerName = name || STR_EMPTY$1;
8110
+ var containerName = name || STR_EMPTY;
8078
8111
  if (attribLimits) {
8079
8112
  maxAttribs = attribLimits[_DYN_ATTRIBUTE_COUNT_LIMI5 ] || maxAttribs;
8080
8113
  }
@@ -8087,7 +8120,7 @@ function createAttributeContainer(otelCfg, name, inheritAttrib, attribLimits) {
8087
8120
  inheritAttrib = null;
8088
8121
  var inheritSrc = inheritAttribObj || inheritContainer;
8089
8122
  var container = {
8090
- id: (containerName || STR_EMPTY$1) + "." + (_containerId++),
8123
+ id: (containerName || STR_EMPTY) + "." + (_containerId++),
8091
8124
  size: 0,
8092
8125
  droppedAttributes: 0,
8093
8126
  attributes: UNDEFINED_VALUE,
@@ -8462,33 +8495,61 @@ function getHttpHost(container) {
8462
8495
  }
8463
8496
  }
8464
8497
 
8465
- var STR_EMPTY = "";
8466
- var STR_DEFAULT_ENDPOINT_URL = "https://browser.events.data.microsoft.com/OneCollector/1.0/";
8467
- var STR_VERSION = "version";
8468
- var STR_PROPERTIES = "properties";
8469
- var STR_NOT_SPECIFIED = "not_specified";
8498
+ var EventPersistence = ( /* @__PURE__ */createEnumStyle({
8499
+ Normal: 1 ,
8500
+ Critical: 2
8501
+ }));
8470
8502
 
8471
- var _DYN_INITIALIZE = "initialize";
8472
- var _DYN_INDEX_OF = "indexOf";
8473
- var _DYN_TIMINGS = "timings";
8474
- var _DYN_BASE_DATA = "baseData";
8475
- var _DYN_POLL_INTERNAL_LOGS = "pollInternalLogs";
8476
- var _DYN_KIND = "kind";
8477
- var _DYN_VALUE = "value";
8478
- var _DYN_LENGTH = "length";
8479
- var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
8480
- var _DYN_HANDLE_FIELD = "handleField";
8481
- var _DYN_RM_SANITIZER = "rmSanitizer";
8482
- var _DYN_RM_FIELD_SANITIZER = "rmFieldSanitizer";
8483
- var _DYN_CAN_HANDLE = "canHandle";
8503
+ var ValueKind = ( /* @__PURE__ */createEnumStyle({
8504
+ NotSet: 0 ,
8505
+ Pii_DistinguishedName: 1 ,
8506
+ Pii_GenericData: 2 ,
8507
+ Pii_IPV4Address: 3 ,
8508
+ Pii_IPv6Address: 4 ,
8509
+ Pii_MailSubject: 5 ,
8510
+ Pii_PhoneNumber: 6 ,
8511
+ Pii_QueryString: 7 ,
8512
+ Pii_SipAddress: 8 ,
8513
+ Pii_SmtpAddress: 9 ,
8514
+ Pii_Identity: 10 ,
8515
+ Pii_Uri: 11 ,
8516
+ Pii_Fqdn: 12 ,
8517
+ Pii_IPV4AddressLegacy: 13 ,
8518
+ Pii_IPv6ScrubLastHextets: 14 ,
8519
+ Pii_DropValue: 15 ,
8520
+ CustomerContent_GenericContent: 32
8521
+ }));
8522
+ var EventLatency = ( /* @__PURE__ */createEnumStyle({
8523
+ Normal: 1 ,
8524
+ CostDeferred: 2 ,
8525
+ RealTime: 3 ,
8526
+ Immediate: 4
8527
+ }));
8528
+ var EventPropertyType = ( /* @__PURE__ */createEnumStyle({
8529
+ Unspecified: 0 ,
8530
+ String: 1 ,
8531
+ Int32: 2 ,
8532
+ UInt32: 3 ,
8533
+ Int64: 4 ,
8534
+ UInt64: 5 ,
8535
+ Double: 6 ,
8536
+ Bool: 7 ,
8537
+ Guid: 8 ,
8538
+ DateTime: 9
8539
+ }));
8540
+ var TraceLevel = ( /* @__PURE__ */createEnumStyle({
8541
+ NONE: 0 ,
8542
+ ERROR: 1 ,
8543
+ WARNING: 2 ,
8544
+ INFORMATION: 3
8545
+ }));
8484
8546
 
8485
8547
  var _a;
8486
- var Version = '4.4.0-nightlybeta3.2602-27';
8487
- var FullVersionString = "1DS-Web-JS-" + Version;
8488
- var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
8489
- var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
8490
- var strWithCredentials = "withCredentials";
8491
- var strTimeout = "timeout";
8548
+ var ExtVersion = '4.4.1';
8549
+ var ExtFullVersionString = "1DS-Web-JS-" + ExtVersion;
8550
+ var Version = ExtVersion;
8551
+ var FullVersionString = ExtFullVersionString;
8552
+ var ObjHasOwnProperty = Object.prototype[_DYN_HAS_OWN_PROPERTY ];
8492
8553
  var _fieldTypeEventPropMap = (_a = {},
8493
8554
  _a[0 ] = 0 ,
8494
8555
  _a[2 ] = 6 ,
@@ -8498,9 +8559,9 @@ var _fieldTypeEventPropMap = (_a = {},
8498
8559
  _a[4096 | 1 ] = 1 ,
8499
8560
  _a[4096 | 3 ] = 7 ,
8500
8561
  _a);
8501
- var uInt8ArraySupported = null;
8502
- var isDocumentObjectAvailable = hasDocument();
8503
- var isWindowObjectAvailable = hasWindow();
8562
+ var uInt8ArraySupported = ( null);
8563
+ var isDocumentObjectAvailable = ( /* #__PURE__*/hasDocument());
8564
+ var isWindowObjectAvailable = ( /* #__PURE__*/hasWindow());
8504
8565
  function isValueAssigned(value) {
8505
8566
  return !(value === STR_EMPTY || isNullOrUndefined(value));
8506
8567
  }
@@ -8533,8 +8594,8 @@ function sanitizeProperty(name, property, stringifyObjects) {
8533
8594
  if (propType === "string" || propType === "number" || propType === "boolean" || isArray(property)) {
8534
8595
  property = { value: property };
8535
8596
  }
8536
- else if (propType === "object" && !ObjHasOwnProperty.call(property, "value")) {
8537
- property = { value: stringifyObjects ? JSON.stringify(property) : property };
8597
+ else if (propType === "object" && !ObjHasOwnProperty[_DYN_CALL ](property, "value")) {
8598
+ property = { value: stringifyObjects ? JSON[_DYN_STRINGIFY ](property) : property };
8538
8599
  }
8539
8600
  else if (isNullOrUndefined(property[_DYN_VALUE ])
8540
8601
  || property[_DYN_VALUE ] === STR_EMPTY || (!isString(property[_DYN_VALUE ])
@@ -8547,10 +8608,10 @@ function sanitizeProperty(name, property, stringifyObjects) {
8547
8608
  return null;
8548
8609
  }
8549
8610
  if (!isNullOrUndefined(property[_DYN_KIND ])) {
8550
- if (isArray(property.value) || !isValueKind(property[_DYN_KIND ])) {
8611
+ if (isArray(property[_DYN_VALUE ]) || !isValueKind(property[_DYN_KIND ])) {
8551
8612
  return null;
8552
8613
  }
8553
- property[_DYN_VALUE ] = property[_DYN_VALUE ].toString();
8614
+ property[_DYN_VALUE ] = property[_DYN_VALUE ][_DYN_TO_STRING ]();
8554
8615
  }
8555
8616
  return property;
8556
8617
  }
@@ -8604,7 +8665,7 @@ function createGuid(style) {
8604
8665
  theGuid = "(" + theGuid + ")";
8605
8666
  }
8606
8667
  else if (style === "N" ) {
8607
- theGuid = theGuid.replace(/-/g, STR_EMPTY);
8668
+ theGuid = theGuid[_DYN_REPLACE ](/-/g, STR_EMPTY);
8608
8669
  }
8609
8670
  return theGuid;
8610
8671
  }
@@ -8659,8 +8720,8 @@ function isDataType(value) {
8659
8720
  }
8660
8721
  function isSafariOrFirefox() {
8661
8722
  var nav = getNavigator();
8662
- if (!isUndefined(nav) && nav.userAgent) {
8663
- var ua = nav.userAgent.toLowerCase();
8723
+ if (!isUndefined(nav) && nav[_DYN_USER_AGENT ]) {
8724
+ var ua = nav.userAgent[_DYN_TO_LOWER_CASE ]();
8664
8725
  if ((ua[_DYN_INDEX_OF ]("safari") >= 0 || ua[_DYN_INDEX_OF ]("firefox") >= 0) && ua[_DYN_INDEX_OF ]("chrome") < 0) {
8665
8726
  return true;
8666
8727
  }
@@ -8673,8 +8734,8 @@ function isArrayValid(value) {
8673
8734
  function setProcessTelemetryTimings(event, identifier) {
8674
8735
  var evt = event;
8675
8736
  evt[_DYN_TIMINGS ] = evt[_DYN_TIMINGS ] || {};
8676
- evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST0 ] = evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST0 ] || {};
8677
- evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST0 ][identifier] = getTime();
8737
+ evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST6 ] = evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST6 ] || {};
8738
+ evt[_DYN_TIMINGS ][_DYN_PROCESS_TELEMETRY_ST6 ][identifier] = getTime();
8678
8739
  }
8679
8740
  function getFieldValueType(value) {
8680
8741
  var theType = 0 ;
@@ -8689,7 +8750,7 @@ function getFieldValueType(value) {
8689
8750
  else if (objType === "boolean") {
8690
8751
  theType = 3 ;
8691
8752
  }
8692
- else if (objType === strShimObject) {
8753
+ else if (objType === "object") {
8693
8754
  theType = 4 ;
8694
8755
  if (isArray(value)) {
8695
8756
  theType = 4096 ;
@@ -8697,7 +8758,7 @@ function getFieldValueType(value) {
8697
8758
  theType |= getFieldValueType(value[0]);
8698
8759
  }
8699
8760
  }
8700
- else if (ObjHasOwnProperty.call(value, "value")) {
8761
+ else if (ObjHasOwnProperty[_DYN_CALL ](value, "value")) {
8701
8762
  theType = 8192 | getFieldValueType(value[_DYN_VALUE ]);
8702
8763
  }
8703
8764
  }
@@ -8707,32 +8768,6 @@ function getFieldValueType(value) {
8707
8768
  function isChromium() {
8708
8769
  return !!getInst("chrome");
8709
8770
  }
8710
- function openXhr(method, urlString, withCredentials, disabled, isSync, timeout) {
8711
- if (disabled === void 0) { disabled = false; }
8712
- if (isSync === void 0) { isSync = false; }
8713
- function _wrapSetXhrProp(xhr, prop, value) {
8714
- try {
8715
- xhr[prop] = value;
8716
- }
8717
- catch (e) {
8718
- }
8719
- }
8720
- var xhr = new XMLHttpRequest();
8721
- if (disabled) {
8722
- _wrapSetXhrProp(xhr, strDisabledPropertyName, disabled);
8723
- }
8724
- if (withCredentials) {
8725
- _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
8726
- }
8727
- xhr.open(method, urlString, !isSync);
8728
- if (withCredentials) {
8729
- _wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
8730
- }
8731
- if (!isSync && timeout) {
8732
- _wrapSetXhrProp(xhr, strTimeout, timeout);
8733
- }
8734
- return xhr;
8735
- }
8736
8771
  function isGreaterThanZero(value) {
8737
8772
  return value > 0;
8738
8773
  }
@@ -8748,18 +8783,18 @@ function _chkPropOverride(propertyStorageOverride) {
8748
8783
  }
8749
8784
  return true;
8750
8785
  }
8751
- var AppInsightsCore = /** @class */ (function (_super) {
8752
- __extendsFn(AppInsightsCore, _super);
8753
- function AppInsightsCore() {
8786
+ var AppInsightsExtCore = /** @class */ (function (_super) {
8787
+ __extendsFn(AppInsightsExtCore, _super);
8788
+ function AppInsightsExtCore() {
8754
8789
  var _this = _super.call(this) || this;
8755
- dynamicProto(AppInsightsCore, _this, function (_self, _base) {
8790
+ dynamicProto(AppInsightsExtCore, _this, function (_self, _base) {
8756
8791
  _self[_DYN_INITIALIZE ] = function (config, extensions, logger, notificationManager) {
8757
8792
  doPerf(_self, function () { return "AppInsightsCore.initialize"; }, function () {
8758
8793
  try {
8759
- _base[_DYN_INITIALIZE ](createDynamicConfig(config, defaultConfig, logger || _self.logger, false).cfg, extensions, logger, notificationManager);
8794
+ _base.initialize(createDynamicConfig(config, defaultConfig, logger || _self[_DYN_LOGGER ], false).cfg, extensions, logger, notificationManager);
8760
8795
  }
8761
8796
  catch (e) {
8762
- var logger_1 = _self.logger;
8797
+ var logger_1 = _self[_DYN_LOGGER ];
8763
8798
  var message = dumpObj(e);
8764
8799
  if (message[_DYN_INDEX_OF ]("channels") !== -1) {
8765
8800
  message += "\n - Channels must be provided through config.channels only!";
@@ -8768,7 +8803,7 @@ var AppInsightsCore = /** @class */ (function (_super) {
8768
8803
  }
8769
8804
  }, function () { return ({ config: config, extensions: extensions, logger: logger, notificationManager: notificationManager }); });
8770
8805
  };
8771
- _self.track = function (item) {
8806
+ _self[_DYN_TRACK ] = function (item) {
8772
8807
  doPerf(_self, function () { return "AppInsightsCore.track"; }, function () {
8773
8808
  var telemetryItem = item;
8774
8809
  if (telemetryItem) {
@@ -8779,13 +8814,13 @@ var AppInsightsCore = /** @class */ (function (_super) {
8779
8814
  }
8780
8815
  var itemExt = telemetryItem.ext = telemetryItem.ext || {};
8781
8816
  itemExt.sdk = itemExt.sdk || {};
8782
- itemExt.sdk.ver = FullVersionString;
8817
+ itemExt.sdk.ver = ExtFullVersionString;
8783
8818
  var baseData = telemetryItem[_DYN_BASE_DATA ] = telemetryItem[_DYN_BASE_DATA ] || {};
8784
- baseData[STR_PROPERTIES ] = baseData[STR_PROPERTIES ] || {};
8785
- var itemProperties = baseData[STR_PROPERTIES ];
8819
+ baseData[_DYN_PROPERTIES ] = baseData[_DYN_PROPERTIES ] || {};
8820
+ var itemProperties = baseData[_DYN_PROPERTIES ];
8786
8821
  itemProperties[STR_VERSION] = itemProperties[STR_VERSION] || _self.pluginVersionString || STR_EMPTY;
8787
8822
  }
8788
- _base.track(telemetryItem);
8823
+ _base[_DYN_TRACK ](telemetryItem);
8789
8824
  }, function () { return ({ item: item }); }, !(item.sync));
8790
8825
  };
8791
8826
  _self[_DYN_POLL_INTERNAL_LOGS ] = function (eventName) {
@@ -8794,57 +8829,9 @@ var AppInsightsCore = /** @class */ (function (_super) {
8794
8829
  });
8795
8830
  return _this;
8796
8831
  }
8797
- AppInsightsCore.__ieDyn=1;
8798
- return AppInsightsCore;
8799
- }(AppInsightsCore$1));
8800
-
8801
- var ValueKind = ( /* @__PURE__ */createEnumStyle({
8802
- NotSet: 0 ,
8803
- Pii_DistinguishedName: 1 ,
8804
- Pii_GenericData: 2 ,
8805
- Pii_IPV4Address: 3 ,
8806
- Pii_IPv6Address: 4 ,
8807
- Pii_MailSubject: 5 ,
8808
- Pii_PhoneNumber: 6 ,
8809
- Pii_QueryString: 7 ,
8810
- Pii_SipAddress: 8 ,
8811
- Pii_SmtpAddress: 9 ,
8812
- Pii_Identity: 10 ,
8813
- Pii_Uri: 11 ,
8814
- Pii_Fqdn: 12 ,
8815
- Pii_IPV4AddressLegacy: 13 ,
8816
- Pii_IPv6ScrubLastHextets: 14 ,
8817
- Pii_DropValue: 15 ,
8818
- CustomerContent_GenericContent: 32
8819
- }));
8820
- var EventLatency = ( /* @__PURE__ */createEnumStyle({
8821
- Normal: 1 ,
8822
- CostDeferred: 2 ,
8823
- RealTime: 3 ,
8824
- Immediate: 4
8825
- }));
8826
- var EventPropertyType = ( /* @__PURE__ */createEnumStyle({
8827
- Unspecified: 0 ,
8828
- String: 1 ,
8829
- Int32: 2 ,
8830
- UInt32: 3 ,
8831
- Int64: 4 ,
8832
- UInt64: 5 ,
8833
- Double: 6 ,
8834
- Bool: 7 ,
8835
- Guid: 8 ,
8836
- DateTime: 9
8837
- }));
8838
- var EventPersistence = ( /* @__PURE__ */createEnumStyle({
8839
- Normal: 1 ,
8840
- Critical: 2
8841
- }));
8842
- var TraceLevel = ( /* @__PURE__ */createEnumStyle({
8843
- NONE: 0 ,
8844
- ERROR: 1 ,
8845
- WARNING: 2 ,
8846
- INFORMATION: 3
8847
- }));
8832
+ AppInsightsExtCore.__ieDyn=1;
8833
+ return AppInsightsExtCore;
8834
+ }(AppInsightsCore));
8848
8835
 
8849
8836
  function _isSpecialName(name) {
8850
8837
  return (name == "__proto__" || name == "constructor" || name == "prototype");
@@ -8856,7 +8843,7 @@ var ValueSanitizer = /** @class */ (function () {
8856
8843
  var _sanitizers = [];
8857
8844
  var _fieldSanitizers = [];
8858
8845
  if (fieldSanitizerProvider) {
8859
- _fieldSanitizers.push(fieldSanitizerProvider);
8846
+ _fieldSanitizers[_DYN_PUSH ](fieldSanitizerProvider);
8860
8847
  }
8861
8848
  function _getFieldSanitizer(path, name) {
8862
8849
  var result;
@@ -8915,7 +8902,7 @@ var ValueSanitizer = /** @class */ (function () {
8915
8902
  _self.addSanitizer = function (newSanitizer) {
8916
8903
  if (newSanitizer) {
8917
8904
  if (!arrIncludes(_sanitizers, newSanitizer)) {
8918
- _sanitizers.push(newSanitizer);
8905
+ _sanitizers[_DYN_PUSH ](newSanitizer);
8919
8906
  }
8920
8907
  _sanitizerMap = {};
8921
8908
  }
@@ -8923,7 +8910,7 @@ var ValueSanitizer = /** @class */ (function () {
8923
8910
  _self.addFieldSanitizer = function (fieldSanitizer) {
8924
8911
  if (fieldSanitizer) {
8925
8912
  if (!arrIncludes(_fieldSanitizers, fieldSanitizer)) {
8926
- _fieldSanitizers.push(fieldSanitizer);
8913
+ _fieldSanitizers[_DYN_PUSH ](fieldSanitizer);
8927
8914
  }
8928
8915
  _sanitizerMap = {};
8929
8916
  }
@@ -8932,7 +8919,7 @@ var ValueSanitizer = /** @class */ (function () {
8932
8919
  if (theSanitizer) {
8933
8920
  var idx = arrIndexOf(_sanitizers, theSanitizer);
8934
8921
  if (idx !== -1) {
8935
- _sanitizers.splice(idx, 1);
8922
+ _sanitizers[_DYN_SPLICE ](idx, 1);
8936
8923
  _sanitizerMap = {};
8937
8924
  }
8938
8925
  arrForEach(_sanitizers, function (sanitizer) {
@@ -8944,7 +8931,7 @@ var ValueSanitizer = /** @class */ (function () {
8944
8931
  if (theFieldSanitizer) {
8945
8932
  var idx = arrIndexOf(_fieldSanitizers, theFieldSanitizer);
8946
8933
  if (idx !== -1) {
8947
- _fieldSanitizers.splice(idx, 1);
8934
+ _fieldSanitizers[_DYN_SPLICE ](idx, 1);
8948
8935
  _sanitizerMap = {};
8949
8936
  }
8950
8937
  arrForEach(_sanitizers, function (sanitizer) {
@@ -8965,7 +8952,7 @@ var ValueSanitizer = /** @class */ (function () {
8965
8952
  if (!mapValue[_DYN_CAN_HANDLE ]) {
8966
8953
  return null;
8967
8954
  }
8968
- if (mapValue.handler) {
8955
+ if (mapValue[_DYN_HANDLER ]) {
8969
8956
  return mapValue.handler[_DYN_VALUE ](path, name, value, stringifyObjects);
8970
8957
  }
8971
8958
  if (!isString(name) || isNullOrUndefined(value) || value === STR_EMPTY) {
@@ -8991,7 +8978,7 @@ var ValueSanitizer = /** @class */ (function () {
8991
8978
  property = _convertToProperty(path, name, value);
8992
8979
  }
8993
8980
  else if (fieldType === 4 ) {
8994
- property = _convertToProperty(path, name, !!stringifyObjects ? JSON.stringify(value) : value);
8981
+ property = _convertToProperty(path, name, !!stringifyObjects ? JSON[_DYN_STRINGIFY ](value) : value);
8995
8982
  }
8996
8983
  if (property) {
8997
8984
  return _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects);
@@ -9014,14 +9001,14 @@ var ValueSanitizer = /** @class */ (function () {
9014
9001
  return _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects);
9015
9002
  };
9016
9003
  function _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects) {
9017
- if (mapValue.handler) {
9018
- return mapValue.handler.property(path, name, property, stringifyObjects);
9004
+ if (mapValue[_DYN_HANDLER ]) {
9005
+ return mapValue[_DYN_HANDLER ].property(path, name, property, stringifyObjects);
9019
9006
  }
9020
9007
  if (!isNullOrUndefined(property[_DYN_KIND ])) {
9021
9008
  if ((fieldType & 4096 ) === 4096 || !isValueKind(property[_DYN_KIND ])) {
9022
9009
  return null;
9023
9010
  }
9024
- property[_DYN_VALUE ] = property[_DYN_VALUE ].toString();
9011
+ property[_DYN_VALUE ] = property[_DYN_VALUE ][_DYN_TO_STRING ]();
9025
9012
  }
9026
9013
  return _callFieldSanitizer(mapValue.fieldHandler, path, name, fieldType, property);
9027
9014
  }
@@ -9058,7 +9045,7 @@ var ValueSanitizer = /** @class */ (function () {
9058
9045
  prop: property,
9059
9046
  sanitizer: _self
9060
9047
  };
9061
- property = sanitizer.call(_self, details);
9048
+ property = sanitizer[_DYN_CALL ](_self, details);
9062
9049
  }
9063
9050
  }
9064
9051
  }
@@ -9182,7 +9169,7 @@ function _isIgnorePartCKey(key) {
9182
9169
  }
9183
9170
  function _populatePartC(item, container) {
9184
9171
  if (container) {
9185
- var partC_1 = item.data = (item.data || {});
9172
+ var partC_1 = item[_DYN_DATA ] = (item[_DYN_DATA ] || {});
9186
9173
  _applyValue(partC_1, "httpHost", getHttpHost(container), false);
9187
9174
  _applyValue(partC_1, "httpScheme", getHttpScheme(container), false);
9188
9175
  _applyValue(partC_1, "httpClientIp", getHttpClientIp(container), false);
@@ -9197,8 +9184,8 @@ function _populatePartC(item, container) {
9197
9184
  _applyValue(partC_1, "userAgentSyntheticType", syntheticSource, false);
9198
9185
  }
9199
9186
  var nav = getNavigator();
9200
- if (nav && nav.userAgent) {
9201
- _applyValue(partC_1, "userAgentOriginal", nav.userAgent, false);
9187
+ if (nav && nav[_DYN_USER_AGENT ]) {
9188
+ _applyValue(partC_1, "userAgentOriginal", nav[_DYN_USER_AGENT ], false);
9202
9189
  }
9203
9190
  _applyValue(partC_1, "azureClientRequestId", container.get("azure.client.id") || container.get("az.client_request_id"), false);
9204
9191
  _applyValue(partC_1, "azureServiceRequestId", container.get("azure.service.request.id") || container.get("az.service_request_id"), false);
@@ -9253,25 +9240,25 @@ function _populateRpcDependencyProperties(otelSpanTelemetry, container, rpcSyste
9253
9240
  }
9254
9241
  }
9255
9242
  function _createOTelSpanTelemetryItem(core, span) {
9256
- var container = span.attribContainer || createAttributeContainer(span.attributes);
9257
- var spanCtx = span.spanContext();
9258
- var statusCode = span.status ? span.status.code : 0 ;
9243
+ var container = span.attribContainer || createAttributeContainer(span[_DYN_ATTRIBUTES ]);
9244
+ var spanCtx = span[_DYN_SPAN_CONTEXT ]();
9245
+ var statusCode = span[_DYN_STATUS ] ? span[_DYN_STATUS ].code : 0 ;
9259
9246
  var spanTelemetry = {
9260
- name: span.name,
9247
+ name: span[_DYN_NAME ],
9261
9248
  kind: span[_DYN_KIND ],
9262
- startTime: toISOString(new Date(hrTimeToMilliseconds(span.startTime))),
9249
+ startTime: toISOString(new Date(hrTimeToMilliseconds(span[_DYN_START_TIME ]))),
9263
9250
  success: statusCode !== 0 ? statusCode !== 2 : (Number(getHttpStatusCode(container)) || 0) < 400,
9264
- duration: hrTimeToMilliseconds(span.duration)
9251
+ duration: hrTimeToMilliseconds(span[_DYN_DURATION ])
9265
9252
  };
9266
- var parentCtx = span.parentSpanContext || (spanCtx ? spanCtx.parentCtx : null);
9267
- _applyValue(spanTelemetry, "parentId", span.parentSpanId || (parentCtx ? parentCtx.spanId : null), false);
9253
+ var parentCtx = span[_DYN_PARENT_SPAN_CONTEXT ] || (spanCtx ? spanCtx.parentCtx : null);
9254
+ _applyValue(spanTelemetry, "parentId", span.parentSpanId || (parentCtx ? parentCtx[_DYN_SPAN_ID ] : null), false);
9268
9255
  if (spanCtx) {
9269
- var traceState = spanCtx.traceState;
9256
+ var traceState = spanCtx[_DYN_TRACE_STATE ];
9270
9257
  if (traceState && !traceState.isEmpty) {
9271
9258
  _applyValue(spanTelemetry, "traceState", traceState.hdrs(1)[0], false);
9272
9259
  }
9273
9260
  }
9274
- _populateHttpProperties(spanTelemetry, container, getHttpMethod(container), core.config);
9261
+ _populateHttpProperties(spanTelemetry, container, getHttpMethod(container), core[_DYN_CONFIG ]);
9275
9262
  _populateDbProperties(spanTelemetry, container, container.get(SEMATTRS_DB_SYSTEM));
9276
9263
  _populateRpcDependencyProperties(spanTelemetry, container, container.get(SEMATTRS_RPC_SYSTEM));
9277
9264
  _applyValue(spanTelemetry, "azureResourceProvider", container.get(AzResourceNamespace) || container.get(AzNamespace), false);
@@ -9285,9 +9272,9 @@ function _createTelemetryItem(item, span, baseType, eventName) {
9285
9272
  throwError("Input doesn't contain all required fields");
9286
9273
  }
9287
9274
  var iKey = "";
9288
- if (item.iKey) {
9289
- iKey = item.iKey;
9290
- delete item.iKey;
9275
+ if (item[_DYN_I_KEY ]) {
9276
+ iKey = item[_DYN_I_KEY ];
9277
+ delete item[_DYN_I_KEY ];
9291
9278
  }
9292
9279
  var telemetryItem = {
9293
9280
  name: eventName,
@@ -9302,17 +9289,17 @@ function _createTelemetryItem(item, span, baseType, eventName) {
9302
9289
  }
9303
9290
  function createExtendedTelemetryItemFromSpan(core, span) {
9304
9291
  var telemetryItem = _createOTelSpanTelemetryItem(core, span);
9305
- var container = span.attribContainer || createAttributeContainer(span.attributes);
9292
+ var container = span.attribContainer || createAttributeContainer(span[_DYN_ATTRIBUTES ]);
9306
9293
  if (telemetryItem) {
9307
9294
  var partB = telemetryItem[_DYN_BASE_DATA ] = telemetryItem[_DYN_BASE_DATA ] || {};
9308
- partB.startTime = new Date(hrTimeToMilliseconds(span.startTime));
9309
- var spanContext = span.spanContext();
9295
+ partB[_DYN_START_TIME ] = new Date(hrTimeToMilliseconds(span[_DYN_START_TIME ]));
9296
+ var spanContext = span[_DYN_SPAN_CONTEXT ]();
9310
9297
  if (spanContext) {
9311
9298
  var ext = telemetryItem.ext = telemetryItem.ext || {};
9312
9299
  var dt = ext["dt"] = ext["dt"] || {};
9313
- _applyValue(dt, "spanId", spanContext.spanId, false);
9314
- _applyValue(dt, "traceId", spanContext.traceId, false);
9315
- _applyValue(dt, "traceFlags", spanContext.traceFlags, false);
9300
+ _applyValue(dt, "spanId", spanContext[_DYN_SPAN_ID ], false);
9301
+ _applyValue(dt, "traceId", spanContext[_DYN_TRACE_ID ], false);
9302
+ _applyValue(dt, "traceFlags", spanContext[_DYN_TRACE_FLAGS ], false);
9316
9303
  }
9317
9304
  _populateExtensionsFromSpan(telemetryItem, span, container);
9318
9305
  _populatePartC(telemetryItem, container);
@@ -9321,7 +9308,7 @@ function createExtendedTelemetryItemFromSpan(core, span) {
9321
9308
  }
9322
9309
 
9323
9310
  exports.ActiveStatus = ActiveStatus;
9324
- exports.AppInsightsCore = AppInsightsCore;
9311
+ exports.AppInsightsCore = AppInsightsExtCore;
9325
9312
  exports.BaseTelemetryPlugin = BaseTelemetryPlugin;
9326
9313
  exports.DiagnosticLogger = DiagnosticLogger;
9327
9314
  exports.EventLatency = EventLatency;
@@ -9329,7 +9316,7 @@ exports.EventPersistence = EventPersistence;
9329
9316
  exports.EventPropertyType = EventPropertyType;
9330
9317
  exports.EventsDiscardedReason = EventsDiscardedReason;
9331
9318
  exports.FullVersionString = FullVersionString;
9332
- exports.InternalAppInsightsCore = AppInsightsCore$1;
9319
+ exports.InternalAppInsightsCore = AppInsightsCore;
9333
9320
  exports.LoggingSeverity = LoggingSeverity;
9334
9321
  exports.MinChannelPriorty = MinChannelPriorty;
9335
9322
  exports.NotificationManager = NotificationManager;
@@ -9492,4 +9479,4 @@ exports.toISOString = toISOString;
9492
9479
  exports.useXDomainRequest = useXDomainRequest;
9493
9480
 
9494
9481
  }));
9495
- //# sourceMappingURL=ms.core-4.4.0-nightlybeta3.2602-27.js.map
9482
+ //# sourceMappingURL=ms.core-4.4.1.js.map