@microsoft/applicationinsights-channel-js 3.3.7-nightly3.2504-08 → 3.3.7-nightly3.2504-12

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 (55) hide show
  1. package/browser/es5/{applicationinsights-channel-js.3.3.7-nightly3.2504-08.js → applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.js} +287 -140
  2. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.js → applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.js} +289 -115
  6. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.js → applicationinsights-channel-js.3.3.7-nightly3.2504-12.js} +314 -113
  11. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.js.map +1 -0
  12. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.min.js +6 -0
  13. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-12.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-channel-js.3.cjs.js +286 -112
  15. package/browser/es5/applicationinsights-channel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-channel-js.3.gbl.js +288 -114
  19. package/browser/es5/applicationinsights-channel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-channel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-channel-js.3.js +288 -114
  24. package/browser/es5/applicationinsights-channel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-channel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-channel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-channel-js.js +286 -112
  28. package/dist/es5/applicationinsights-channel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-channel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-channel-js.min.js.map +1 -1
  31. package/dist-es5/EnvelopeCreator.js +2 -2
  32. package/dist-es5/EnvelopeCreator.js.map +1 -1
  33. package/dist-es5/Interfaces.js +1 -1
  34. package/dist-es5/InternalConstants.js +1 -1
  35. package/dist-es5/SendBuffer.js +1 -1
  36. package/dist-es5/Sender.js +1 -1
  37. package/dist-es5/Serializer.js +1 -1
  38. package/dist-es5/TelemetryProcessors/Sample.js +1 -1
  39. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  40. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  41. package/dist-es5/__DynamicConstants.js +1 -1
  42. package/dist-es5/applicationinsights-channel-js.js +1 -1
  43. package/package.json +3 -3
  44. package/types/applicationinsights-channel-js.d.ts +1 -1
  45. package/types/applicationinsights-channel-js.namespaced.d.ts +1 -1
  46. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.js.map +0 -1
  47. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.min.js +0 -6
  48. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.cjs.min.js.map +0 -1
  49. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.js.map +0 -1
  50. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.min.js +0 -6
  51. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.gbl.min.js.map +0 -1
  52. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.integrity.json +0 -66
  53. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.js.map +0 -1
  54. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.min.js +0 -6
  55. package/browser/es5/applicationinsights-channel-js.3.3.7-nightly3.2504-08.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Channel, 3.3.7-nightly3.2504-08
2
+ * Application Insights JavaScript SDK - Channel, 3.3.7-nightly3.2504-12
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -15,7 +15,7 @@
15
15
  var ObjClass$1 = Object;
16
16
  var ObjProto$1 = ObjClass$1[strShimPrototype];
17
17
 
18
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
18
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
19
19
  /*#__NO_SIDE_EFFECTS__*/
20
20
  function _pureAssign(func1, func2) {
21
21
  return func1 || func2;
@@ -34,11 +34,12 @@
34
34
  var UNDEFINED = "undefined";
35
35
  var CONSTRUCTOR = "constructor";
36
36
  var SYMBOL = "Symbol";
37
- var POLYFILL_TAG = "_polyfill";
38
37
  var LENGTH = "length";
39
38
  var NAME = "name";
40
39
  var CALL = "call";
41
40
  var TO_STRING = "toString";
41
+ var GETTER_NAME = "__lookupGetter__";
42
+ var SETTER_NAME = "__lookupSetter__";
42
43
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
43
44
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
44
45
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -47,6 +48,8 @@
47
48
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
48
49
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
49
50
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
51
+ var POLYFILL_TAG = "_polyfill";
52
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
50
53
  function safe(func, argArray) {
51
54
  try {
52
55
  return {
@@ -85,7 +88,7 @@
85
88
  }
86
89
  /*#__NO_SIDE_EFFECTS__*/
87
90
  function isStrictUndefined(arg) {
88
- return !isDefined(arg);
91
+ return arg === UNDEF_VALUE;
89
92
  }
90
93
  /*#__NO_SIDE_EFFECTS__*/
91
94
  function isNullOrUndefined(value) {
@@ -93,7 +96,7 @@
93
96
  }
94
97
  /*#__NO_SIDE_EFFECTS__*/
95
98
  function isStrictNullOrUndefined(value) {
96
- return value === NULL_VALUE || !isDefined(value);
99
+ return value === NULL_VALUE || value === UNDEF_VALUE;
97
100
  }
98
101
  /*#__NO_SIDE_EFFECTS__*/
99
102
  function isDefined(arg) {
@@ -120,18 +123,119 @@
120
123
  function isTruthy(value) {
121
124
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
122
125
  }
123
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
126
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
127
+ var ERROR_TYPE = "[object Error]";
128
+ /*#__NO_SIDE_EFFECTS__*/
129
+ function dumpObj(object, format) {
130
+ var propertyValueDump = EMPTY;
131
+ var objType = ObjProto[TO_STRING][CALL](object);
132
+ if (objType === ERROR_TYPE) {
133
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
134
+ }
135
+ try {
136
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
137
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
138
+ }
139
+ catch (e) {
140
+ propertyValueDump = " - " + dumpObj(e, format);
141
+ }
142
+ return objType + ": " + propertyValueDump;
143
+ }
144
+ function throwTypeError(message) {
145
+ throw new TypeError(message);
146
+ }
147
+ function _throwIfNullOrUndefined(obj) {
148
+ if (isStrictNullOrUndefined(obj)) {
149
+ throwTypeError("Cannot convert undefined or null to object");
150
+ }
151
+ }
124
152
  /*#__NO_SIDE_EFFECTS__*/
125
153
  function objHasOwnProperty(obj, prop) {
126
154
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
127
155
  }
128
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
156
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
157
+ /*#__NO_SIDE_EFFECTS__*/
158
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
159
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
160
+ return function (thisArg) {
161
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
162
+ if (theFunc || polyFunc) {
163
+ var theArgs = arguments;
164
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
165
+ }
166
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
167
+ };
168
+ }
169
+ function _objPropertyIsEnum(obj, propKey) {
170
+ var desc;
171
+ var fn = ObjClass.getOwnPropertyDescriptor;
172
+ if (!isStrictNullOrUndefined(obj) && fn) {
173
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
174
+ }
175
+ if (!desc) {
176
+ desc = safe(function () {
177
+ for (var key in obj) {
178
+ if (key === propKey) {
179
+ return { enumerable: true };
180
+ }
181
+ }
182
+ }).v;
183
+ }
184
+ return (desc && desc.enumerable) || false;
185
+ }
186
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
187
+ function _isPropertyWritable(obj, prop) {
188
+ var result = false;
189
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
190
+ var originalValue = obj[prop];
191
+ try {
192
+ obj[prop] = originalValue;
193
+ result = true;
194
+ }
195
+ catch (e) {
196
+ }
197
+ }
198
+ return result;
199
+ }
200
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
201
+ var descriptor;
202
+ _throwIfNullOrUndefined(obj);
203
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
204
+ if (isLength || objHasOwnProperty(obj, prop)) {
205
+ descriptor = {
206
+ configurable: !isLength,
207
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
208
+ };
209
+ var isData = true;
210
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
211
+ var getter = obj[GETTER_NAME](prop);
212
+ var setter = obj[SETTER_NAME](prop);
213
+ if (getter || setter) {
214
+ isData = false;
215
+ if (getter) {
216
+ descriptor.get = getter;
217
+ }
218
+ if (setter) {
219
+ descriptor.set = setter;
220
+ }
221
+ }
222
+ }
223
+ if (isData) {
224
+ descriptor.value = obj[prop];
225
+ descriptor.writable = _isPropertyWritable(obj, prop);
226
+ }
227
+ }
228
+ return descriptor;
229
+ }
230
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
129
231
  /*#__NO_SIDE_EFFECTS__*/
130
232
  function polyObjHasOwn(obj, prop) {
233
+ _throwIfNullOrUndefined(obj);
131
234
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
132
235
  }
236
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
133
237
  function objForEachKey(theObject, callbackfn, thisArg) {
134
- if (theObject && isObject(theObject)) {
238
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
135
239
  for (var prop in theObject) {
136
240
  if (objHasOwn(theObject, prop)) {
137
241
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -141,6 +245,18 @@
141
245
  }
142
246
  }
143
247
  }
248
+ function arrForEach(theArray, callbackfn, thisArg) {
249
+ if (theArray) {
250
+ var len = theArray[LENGTH] >>> 0;
251
+ for (var idx = 0; idx < len; idx++) {
252
+ if (idx in theArray) {
253
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
254
+ break;
255
+ }
256
+ }
257
+ }
258
+ }
259
+ }
144
260
  var propMap = {
145
261
  e: "enumerable",
146
262
  c: "configurable",
@@ -169,6 +285,7 @@
169
285
  return prop;
170
286
  }
171
287
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
288
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
172
289
  function objDefine(target, key, propDesc) {
173
290
  return objDefineProp(target, key, _createProp(propDesc));
174
291
  }
@@ -188,46 +305,50 @@
188
305
  writable: false
189
306
  });
190
307
  }
191
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
192
- var ERROR_TYPE = "[object Error]";
193
- /*#__NO_SIDE_EFFECTS__*/
194
- function dumpObj(object, format) {
195
- var propertyValueDump = EMPTY;
196
- var objType = ObjProto[TO_STRING][CALL](object);
197
- if (objType === ERROR_TYPE) {
198
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
308
+ function polyObjIsFrozen(obj) {
309
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
310
+ return true;
199
311
  }
200
- try {
201
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
202
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
312
+ if (isFunction(obj)) {
313
+ return false;
203
314
  }
204
- catch (e) {
205
- propertyValueDump = " - " + dumpObj(e, format);
315
+ for (var prop in obj) {
316
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
317
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
318
+ return false;
319
+ }
206
320
  }
207
- return objType + ": " + propertyValueDump;
208
- }
209
- function throwTypeError(message) {
210
- throw new TypeError(message);
321
+ return true;
211
322
  }
323
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
212
324
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
213
325
  function _doNothing(value) {
214
326
  return value;
215
327
  }
216
328
  /*#__NO_SIDE_EFFECTS__*/
217
329
  function _getProto(value) {
330
+ _throwIfNullOrUndefined(value);
218
331
  return value[__PROTO__] || NULL_VALUE;
219
332
  }
220
333
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
221
334
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
222
- function objDeepFreeze(value) {
223
- if (_objFreeze) {
224
- objForEachKey(value, function (key, value) {
225
- if (isArray(value) || isObject(value)) {
226
- objDeepFreeze(value);
335
+ function _deepFreeze(val, visited) {
336
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
337
+ for (var lp = 0; lp < visited.length; lp++) {
338
+ if (visited[lp] === val) {
339
+ return val;
227
340
  }
341
+ }
342
+ visited.push(val);
343
+ objForEachKey(val, function (_key, propValue) {
344
+ _deepFreeze(propValue, visited);
228
345
  });
346
+ objFreeze(val);
229
347
  }
230
- return objFreeze(value);
348
+ return val;
349
+ }
350
+ function objDeepFreeze(value) {
351
+ return _objFreeze ? _deepFreeze(value, []) : value;
231
352
  }
232
353
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
233
354
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -294,19 +415,6 @@
294
415
  }
295
416
  return _globalCfg;
296
417
  }
297
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
298
- /*#__NO_SIDE_EFFECTS__*/
299
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
300
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
301
- return function (thisArg) {
302
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
303
- if (theFunc || polyFunc) {
304
- var theArgs = arguments;
305
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
306
- }
307
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
308
- };
309
- }
310
418
  var mathMin = ( /*#__PURE__*/_pureRef(MathCls, "min"));
311
419
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
312
420
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
@@ -314,9 +422,7 @@
314
422
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
315
423
  /*#__NO_SIDE_EFFECTS__*/
316
424
  function polyStrSubstr(value, start, length) {
317
- if (isNullOrUndefined(value)) {
318
- throwTypeError("Invalid " + dumpObj(value));
319
- }
425
+ _throwIfNullOrUndefined(value);
320
426
  if (length < 0) {
321
427
  return EMPTY;
322
428
  }
@@ -329,8 +435,109 @@
329
435
  }
330
436
  return strSlice(value, start, start + length);
331
437
  }
438
+ function _tagAsPolyfill(target, polyfillTypeName) {
439
+ if (target) {
440
+ safe(function () {
441
+ target[POLYFILL_TAG] = true;
442
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
443
+ });
444
+ safe(objDefine, [target, POLYFILL_TAG, {
445
+ v: true,
446
+ w: false,
447
+ e: false
448
+ }]);
449
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
450
+ v: polyfillTypeName,
451
+ w: false,
452
+ e: false
453
+ }]);
454
+ }
455
+ return target;
456
+ }
457
+ /*#__NO_SIDE_EFFECTS__*/
458
+ function createCachedValue(value) {
459
+ return objDefineProp({
460
+ toJSON: function () { return value; }
461
+ }, "v", { value: value });
462
+ }
463
+ var _isProtoArray;
464
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
465
+ function _polyObjSetPrototypeOf(obj, proto) {
466
+ var _a;
467
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
468
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
469
+ return obj;
470
+ }
471
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
472
+ /*#__NO_SIDE_EFFECTS__*/
473
+ function polyObjCreate(obj, properties) {
474
+ var newObj;
475
+ function tempFunc() { }
476
+ if (!isStrictNullOrUndefined(obj)) {
477
+ var type = typeof obj;
478
+ if (type !== OBJECT && type !== FUNCTION) {
479
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
480
+ }
481
+ tempFunc[PROTOTYPE] = obj;
482
+ safe(function () {
483
+ tempFunc[__PROTO__] = obj;
484
+ });
485
+ newObj = new tempFunc();
486
+ }
487
+ else {
488
+ newObj = {};
489
+ }
490
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
491
+ if (properties) {
492
+ safe(objDefineProperties, [newObj, properties]);
493
+ }
494
+ return newObj;
495
+ }
496
+ /*#__NO_SIDE_EFFECTS__*/
497
+ function utcNow() {
498
+ return (Date.now || polyUtcNow)();
499
+ }
500
+ /*#__NO_SIDE_EFFECTS__*/
501
+ function polyUtcNow() {
502
+ return new Date().getTime();
503
+ }
504
+ var _globalLazyTestHooks;
505
+ function _initTestHooks() {
506
+ _globalLazyTestHooks = _getGlobalConfig();
507
+ }
508
+ /*#__NO_SIDE_EFFECTS__*/
509
+ function getLazy(cb) {
510
+ var lazyValue = {};
511
+ !_globalLazyTestHooks && _initTestHooks();
512
+ lazyValue.b = _globalLazyTestHooks.lzy;
513
+ objDefineProp(lazyValue, "v", {
514
+ configurable: true,
515
+ get: function () {
516
+ var result = cb();
517
+ if (!_globalLazyTestHooks.lzy) {
518
+ objDefineProp(lazyValue, "v", {
519
+ value: result
520
+ });
521
+ }
522
+ lazyValue.b = _globalLazyTestHooks.lzy;
523
+ return result;
524
+ }
525
+ });
526
+ return lazyValue;
527
+ }
528
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
529
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
530
+ var value = (utcNow().toString(36).slice(2));
531
+ while (value.length < 16) {
532
+ value += mathRandom().toString(36).slice(2);
533
+ }
534
+ value = value.substring(0, 16);
535
+ return value;
536
+ }));
332
537
  var UNIQUE_REGISTRY_ID = "_urid";
538
+ var POLY_SYM = "$nw21sym";
333
539
  var _polySymbols;
540
+ var _polyId = 0;
334
541
  /*#__NO_SIDE_EFFECTS__*/
335
542
  function _globalSymbolRegistry() {
336
543
  if (!_polySymbols) {
@@ -342,12 +549,35 @@
342
549
  var _wellKnownSymbolCache;
343
550
  /*#__NO_SIDE_EFFECTS__*/
344
551
  function polyNewSymbol(description) {
345
- var theSymbol = {
346
- description: asString(description),
347
- toString: function () { return SYMBOL + "(" + description + ")"; }
348
- };
349
- theSymbol[POLYFILL_TAG] = true;
350
- return theSymbol;
552
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
553
+ var symString = SYMBOL + "(" + description + ")";
554
+ var theSymbol = objCreate(null);
555
+ objDefine(theSymbol, "description", {
556
+ v: asString(description),
557
+ e: false,
558
+ w: false
559
+ });
560
+ objDefine(theSymbol, TO_STRING, {
561
+ v: function () { return symString + POLY_SYM + uniqueId; },
562
+ e: false,
563
+ w: false
564
+ });
565
+ objDefine(theSymbol, "valueOf", {
566
+ v: function () { return theSymbol; },
567
+ e: false,
568
+ w: false
569
+ });
570
+ objDefine(theSymbol, "v", {
571
+ v: symString,
572
+ e: false,
573
+ w: false
574
+ });
575
+ objDefine(theSymbol, "_uid", {
576
+ v: uniqueId,
577
+ e: false,
578
+ w: false
579
+ });
580
+ return _tagAsPolyfill(theSymbol, "symbol");
351
581
  }
352
582
  /*#__NO_SIDE_EFFECTS__*/
353
583
  function polySymbolFor(key) {
@@ -371,16 +601,6 @@
371
601
  }
372
602
  return result;
373
603
  }
374
- var _globalLazyTestHooks;
375
- function _initTestHooks() {
376
- _globalLazyTestHooks = _getGlobalConfig();
377
- }
378
- /*#__NO_SIDE_EFFECTS__*/
379
- function createCachedValue(value) {
380
- return objDefineProp({
381
- toJSON: function () { return value; }
382
- }, "v", { value: value });
383
- }
384
604
  var WINDOW = "window";
385
605
  var _cachedGlobal;
386
606
  function _getGlobalInstFn(getFn, theArgs) {
@@ -542,47 +762,11 @@
542
762
  }
543
763
  return target;
544
764
  }
545
- function arrForEach(theArray, callbackfn, thisArg) {
546
- if (theArray) {
547
- var len = theArray[LENGTH] >>> 0;
548
- for (var idx = 0; idx < len; idx++) {
549
- if (idx in theArray) {
550
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
551
- break;
552
- }
553
- }
554
- }
555
- }
556
- }
557
765
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
558
766
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
559
767
  function arrSlice(theArray, start, end) {
560
768
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
561
769
  }
562
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
563
- /*#__NO_SIDE_EFFECTS__*/
564
- function polyObjCreate(obj) {
565
- if (!obj) {
566
- return {};
567
- }
568
- var type = typeof obj;
569
- if (type !== OBJECT && type !== FUNCTION) {
570
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
571
- }
572
- function tempFunc() { }
573
- tempFunc[PROTOTYPE] = obj;
574
- return new tempFunc();
575
- }
576
- var _isProtoArray;
577
- function objSetPrototypeOf(obj, proto) {
578
- var fn = ObjClass["setPrototypeOf"] ||
579
- function (d, b) {
580
- var _a;
581
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
582
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
583
- };
584
- return fn(obj, proto);
585
- }
586
770
  /*#__NO_SIDE_EFFECTS__*/
587
771
  function _createCustomError(name, d, b) {
588
772
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -624,19 +808,9 @@
624
808
  }, theBaseClass);
625
809
  }
626
810
  /*#__NO_SIDE_EFFECTS__*/
627
- function utcNow() {
628
- return (Date.now || polyUtcNow)();
629
- }
630
- /*#__NO_SIDE_EFFECTS__*/
631
- function polyUtcNow() {
632
- return new Date().getTime();
633
- }
634
- /*#__NO_SIDE_EFFECTS__*/
635
811
  function _createTrimFn(exp) {
636
812
  return function _doTrim(value) {
637
- if (isNullOrUndefined(value)) {
638
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
639
- }
813
+ _throwIfNullOrUndefined(value);
640
814
  if (value && value.replace) {
641
815
  value = value.replace(exp, EMPTY);
642
816
  }
@@ -1902,7 +2076,7 @@
1902
2076
  return result;
1903
2077
  }
1904
2078
 
1905
- var version = '3.3.7-nightly3.2504-08';
2079
+ var version = '3.3.7-nightly3.2504-12';
1906
2080
  var instanceName = "." + newId(6);
1907
2081
  var _dataUid = 0;
1908
2082
  function _canAcceptData(target) {
@@ -5609,7 +5783,7 @@
5609
5783
  }
5610
5784
  }
5611
5785
  var EnvelopeCreator = {
5612
- Version: '3.3.7-nightly3.2504-08'
5786
+ Version: '3.3.7-nightly3.2504-12'
5613
5787
  };
5614
5788
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5615
5789
  EnvelopeCreatorInit(logger, telemetryItem);