@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,32 +1,7 @@
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
- (function (global, factory) {
6
- var undef = "undefined";
7
- typeof exports === "object" && typeof module !== undef ? factory(exports) :
8
- typeof define === "function" && define.amd ? define(["exports"], factory) :
9
- (function(global){
10
- var nsKey, key, nm, theExports = {}, modName = "es5_applicationinsights_channel_js_3_3_7_nightly3_2504_08", msMod="__ms$mod__";
11
- var mods={}, modDetail=mods[modName]={}, ver="3.3.7-nightly3.2504-08";
12
- var baseNs=global, nsKey="Microsoft", baseNs=baseNs[nsKey]=(baseNs[nsKey]||{});
13
- // Versioned namespace "Microsoft.ApplicationInsights3"
14
- var exportNs=baseNs, nsKey="ApplicationInsights3", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
- // Global namespace "Microsoft.ApplicationInsights"
16
- var destNs=baseNs, nsKey="ApplicationInsights", destNs=destNs[nsKey]=(destNs[nsKey]||{});
17
- var expNsDetail=(exportNs[msMod]=(exportNs[msMod] || {})), expNameVer=(expNsDetail["v"]=(expNsDetail["v"] || []));
18
- var destNsDetail=(destNs[msMod]=(destNs[msMod] || {})), destNameVer=(destNsDetail["v"]=(destNsDetail["v"] || []));
19
- (destNsDetail["o"]=(destNsDetail["o"] || [])).push(mods);
20
- factory(theExports);
21
- for(var key in theExports) {
22
- // Always set the imported value into the "export" versioned namespace (last-write wins)
23
- nm="x", exportNs[key]=theExports[key], expNameVer[key]=ver;
24
- // Copy over any named element that is not already present (first-write wins)
25
- typeof destNs[key]===undef ? (nm="n", destNs[key]=theExports[key]) && (destNameVer[key]=ver) : !destNameVer[key] && (destNameVer[key]="---");
26
- (modDetail[nm] = (modDetail[nm] || [])).push(key);
27
- }
28
- })(typeof globalThis !== undef ? globalThis : global || self);
29
- })(this, (function (exports) {
30
5
  'use strict';
31
6
 
32
7
 
@@ -37,7 +12,7 @@ var strShimPrototype = "prototype";
37
12
  var ObjClass$1 = Object;
38
13
  var ObjProto$1 = ObjClass$1[strShimPrototype];
39
14
 
40
- /*! https://github.com/nevware21/ts-utils v0.11.8 */
15
+ /*! https://github.com/nevware21/ts-utils v0.12.1 */
41
16
  /*#__NO_SIDE_EFFECTS__*/
42
17
  function _pureAssign(func1, func2) {
43
18
  return func1 || func2;
@@ -56,11 +31,12 @@ var __PROTO__ = "__proto__";
56
31
  var UNDEFINED = "undefined";
57
32
  var CONSTRUCTOR = "constructor";
58
33
  var SYMBOL = "Symbol";
59
- var POLYFILL_TAG = "_polyfill";
60
34
  var LENGTH = "length";
61
35
  var NAME = "name";
62
36
  var CALL = "call";
63
37
  var TO_STRING = "toString";
38
+ var GETTER_NAME = "__lookupGetter__";
39
+ var SETTER_NAME = "__lookupSetter__";
64
40
  var ObjClass = ( /*#__PURE__*/_pureAssign(Object));
65
41
  var ObjProto = ( /*#__PURE__*/_pureRef(ObjClass, PROTOTYPE));
66
42
  var StrCls = ( /*#__PURE__*/_pureAssign(String));
@@ -69,6 +45,8 @@ var MathCls = ( /*#__PURE__*/_pureAssign(Math));
69
45
  var ArrCls = ( /*#__PURE__*/_pureAssign(Array));
70
46
  var ArrProto = ( /*#__PURE__*/_pureRef(ArrCls, PROTOTYPE));
71
47
  var ArrSlice = ( /*#__PURE__*/_pureRef(ArrProto, "slice"));
48
+ var POLYFILL_TAG = "_polyfill";
49
+ var POLYFILL_TYPE_NAME = "__nw21$polytype__";
72
50
  function safe(func, argArray) {
73
51
  try {
74
52
  return {
@@ -107,7 +85,7 @@ function isUndefined(value) {
107
85
  }
108
86
  /*#__NO_SIDE_EFFECTS__*/
109
87
  function isStrictUndefined(arg) {
110
- return !isDefined(arg);
88
+ return arg === UNDEF_VALUE;
111
89
  }
112
90
  /*#__NO_SIDE_EFFECTS__*/
113
91
  function isNullOrUndefined(value) {
@@ -115,7 +93,7 @@ function isNullOrUndefined(value) {
115
93
  }
116
94
  /*#__NO_SIDE_EFFECTS__*/
117
95
  function isStrictNullOrUndefined(value) {
118
- return value === NULL_VALUE || !isDefined(value);
96
+ return value === NULL_VALUE || value === UNDEF_VALUE;
119
97
  }
120
98
  /*#__NO_SIDE_EFFECTS__*/
121
99
  function isDefined(arg) {
@@ -142,18 +120,119 @@ function isPromiseLike(value) {
142
120
  function isTruthy(value) {
143
121
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
144
122
  }
145
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
123
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
124
+ var ERROR_TYPE = "[object Error]";
125
+ /*#__NO_SIDE_EFFECTS__*/
126
+ function dumpObj(object, format) {
127
+ var propertyValueDump = EMPTY;
128
+ var objType = ObjProto[TO_STRING][CALL](object);
129
+ if (objType === ERROR_TYPE) {
130
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
131
+ }
132
+ try {
133
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
134
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
135
+ }
136
+ catch (e) {
137
+ propertyValueDump = " - " + dumpObj(e, format);
138
+ }
139
+ return objType + ": " + propertyValueDump;
140
+ }
141
+ function throwTypeError(message) {
142
+ throw new TypeError(message);
143
+ }
144
+ function _throwIfNullOrUndefined(obj) {
145
+ if (isStrictNullOrUndefined(obj)) {
146
+ throwTypeError("Cannot convert undefined or null to object");
147
+ }
148
+ }
146
149
  /*#__NO_SIDE_EFFECTS__*/
147
150
  function objHasOwnProperty(obj, prop) {
148
151
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
149
152
  }
150
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
153
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
154
+ /*#__NO_SIDE_EFFECTS__*/
155
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
156
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
157
+ return function (thisArg) {
158
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
159
+ if (theFunc || polyFunc) {
160
+ var theArgs = arguments;
161
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
162
+ }
163
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
164
+ };
165
+ }
166
+ function _objPropertyIsEnum(obj, propKey) {
167
+ var desc;
168
+ var fn = ObjClass.getOwnPropertyDescriptor;
169
+ if (!isStrictNullOrUndefined(obj) && fn) {
170
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
171
+ }
172
+ if (!desc) {
173
+ desc = safe(function () {
174
+ for (var key in obj) {
175
+ if (key === propKey) {
176
+ return { enumerable: true };
177
+ }
178
+ }
179
+ }).v;
180
+ }
181
+ return (desc && desc.enumerable) || false;
182
+ }
183
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
184
+ function _isPropertyWritable(obj, prop) {
185
+ var result = false;
186
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
187
+ var originalValue = obj[prop];
188
+ try {
189
+ obj[prop] = originalValue;
190
+ result = true;
191
+ }
192
+ catch (e) {
193
+ }
194
+ }
195
+ return result;
196
+ }
197
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
198
+ var descriptor;
199
+ _throwIfNullOrUndefined(obj);
200
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
201
+ if (isLength || objHasOwnProperty(obj, prop)) {
202
+ descriptor = {
203
+ configurable: !isLength,
204
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
205
+ };
206
+ var isData = true;
207
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
208
+ var getter = obj[GETTER_NAME](prop);
209
+ var setter = obj[SETTER_NAME](prop);
210
+ if (getter || setter) {
211
+ isData = false;
212
+ if (getter) {
213
+ descriptor.get = getter;
214
+ }
215
+ if (setter) {
216
+ descriptor.set = setter;
217
+ }
218
+ }
219
+ }
220
+ if (isData) {
221
+ descriptor.value = obj[prop];
222
+ descriptor.writable = _isPropertyWritable(obj, prop);
223
+ }
224
+ }
225
+ return descriptor;
226
+ }
227
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
151
228
  /*#__NO_SIDE_EFFECTS__*/
152
229
  function polyObjHasOwn(obj, prop) {
230
+ _throwIfNullOrUndefined(obj);
153
231
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
154
232
  }
233
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
155
234
  function objForEachKey(theObject, callbackfn, thisArg) {
156
- if (theObject && isObject(theObject)) {
235
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
157
236
  for (var prop in theObject) {
158
237
  if (objHasOwn(theObject, prop)) {
159
238
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -163,6 +242,18 @@ function objForEachKey(theObject, callbackfn, thisArg) {
163
242
  }
164
243
  }
165
244
  }
245
+ function arrForEach(theArray, callbackfn, thisArg) {
246
+ if (theArray) {
247
+ var len = theArray[LENGTH] >>> 0;
248
+ for (var idx = 0; idx < len; idx++) {
249
+ if (idx in theArray) {
250
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
251
+ break;
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
166
257
  var propMap = {
167
258
  e: "enumerable",
168
259
  c: "configurable",
@@ -191,6 +282,7 @@ function _createProp(value) {
191
282
  return prop;
192
283
  }
193
284
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
285
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
194
286
  function objDefine(target, key, propDesc) {
195
287
  return objDefineProp(target, key, _createProp(propDesc));
196
288
  }
@@ -210,46 +302,50 @@ function _assignMapValue(theMap, key, value, writable) {
210
302
  writable: false
211
303
  });
212
304
  }
213
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
214
- var ERROR_TYPE = "[object Error]";
215
- /*#__NO_SIDE_EFFECTS__*/
216
- function dumpObj(object, format) {
217
- var propertyValueDump = EMPTY;
218
- var objType = ObjProto[TO_STRING][CALL](object);
219
- if (objType === ERROR_TYPE) {
220
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
305
+ function polyObjIsFrozen(obj) {
306
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
307
+ return true;
221
308
  }
222
- try {
223
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
224
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
309
+ if (isFunction(obj)) {
310
+ return false;
225
311
  }
226
- catch (e) {
227
- propertyValueDump = " - " + dumpObj(e, format);
312
+ for (var prop in obj) {
313
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
314
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
315
+ return false;
316
+ }
228
317
  }
229
- return objType + ": " + propertyValueDump;
230
- }
231
- function throwTypeError(message) {
232
- throw new TypeError(message);
318
+ return true;
233
319
  }
320
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
234
321
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
235
322
  function _doNothing(value) {
236
323
  return value;
237
324
  }
238
325
  /*#__NO_SIDE_EFFECTS__*/
239
326
  function _getProto(value) {
327
+ _throwIfNullOrUndefined(value);
240
328
  return value[__PROTO__] || NULL_VALUE;
241
329
  }
242
330
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
243
331
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
244
- function objDeepFreeze(value) {
245
- if (_objFreeze) {
246
- objForEachKey(value, function (key, value) {
247
- if (isArray(value) || isObject(value)) {
248
- objDeepFreeze(value);
332
+ function _deepFreeze(val, visited) {
333
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
334
+ for (var lp = 0; lp < visited.length; lp++) {
335
+ if (visited[lp] === val) {
336
+ return val;
249
337
  }
338
+ }
339
+ visited.push(val);
340
+ objForEachKey(val, function (_key, propValue) {
341
+ _deepFreeze(propValue, visited);
250
342
  });
343
+ objFreeze(val);
251
344
  }
252
- return objFreeze(value);
345
+ return val;
346
+ }
347
+ function objDeepFreeze(value) {
348
+ return _objFreeze ? _deepFreeze(value, []) : value;
253
349
  }
254
350
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
255
351
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -316,19 +412,6 @@ function _getGlobalConfig() {
316
412
  }
317
413
  return _globalCfg;
318
414
  }
319
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
320
- /*#__NO_SIDE_EFFECTS__*/
321
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
322
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
323
- return function (thisArg) {
324
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
325
- if (theFunc || polyFunc) {
326
- var theArgs = arguments;
327
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
328
- }
329
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
330
- };
331
- }
332
415
  var mathMin = ( /*#__PURE__*/_pureRef(MathCls, "min"));
333
416
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
334
417
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
@@ -336,9 +419,7 @@ var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
336
419
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
337
420
  /*#__NO_SIDE_EFFECTS__*/
338
421
  function polyStrSubstr(value, start, length) {
339
- if (isNullOrUndefined(value)) {
340
- throwTypeError("Invalid " + dumpObj(value));
341
- }
422
+ _throwIfNullOrUndefined(value);
342
423
  if (length < 0) {
343
424
  return EMPTY;
344
425
  }
@@ -351,8 +432,109 @@ function polyStrSubstr(value, start, length) {
351
432
  }
352
433
  return strSlice(value, start, start + length);
353
434
  }
435
+ function _tagAsPolyfill(target, polyfillTypeName) {
436
+ if (target) {
437
+ safe(function () {
438
+ target[POLYFILL_TAG] = true;
439
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
440
+ });
441
+ safe(objDefine, [target, POLYFILL_TAG, {
442
+ v: true,
443
+ w: false,
444
+ e: false
445
+ }]);
446
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
447
+ v: polyfillTypeName,
448
+ w: false,
449
+ e: false
450
+ }]);
451
+ }
452
+ return target;
453
+ }
454
+ /*#__NO_SIDE_EFFECTS__*/
455
+ function createCachedValue(value) {
456
+ return objDefineProp({
457
+ toJSON: function () { return value; }
458
+ }, "v", { value: value });
459
+ }
460
+ var _isProtoArray;
461
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
462
+ function _polyObjSetPrototypeOf(obj, proto) {
463
+ var _a;
464
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
465
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
466
+ return obj;
467
+ }
468
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
469
+ /*#__NO_SIDE_EFFECTS__*/
470
+ function polyObjCreate(obj, properties) {
471
+ var newObj;
472
+ function tempFunc() { }
473
+ if (!isStrictNullOrUndefined(obj)) {
474
+ var type = typeof obj;
475
+ if (type !== OBJECT && type !== FUNCTION) {
476
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
477
+ }
478
+ tempFunc[PROTOTYPE] = obj;
479
+ safe(function () {
480
+ tempFunc[__PROTO__] = obj;
481
+ });
482
+ newObj = new tempFunc();
483
+ }
484
+ else {
485
+ newObj = {};
486
+ }
487
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
488
+ if (properties) {
489
+ safe(objDefineProperties, [newObj, properties]);
490
+ }
491
+ return newObj;
492
+ }
493
+ /*#__NO_SIDE_EFFECTS__*/
494
+ function utcNow() {
495
+ return (Date.now || polyUtcNow)();
496
+ }
497
+ /*#__NO_SIDE_EFFECTS__*/
498
+ function polyUtcNow() {
499
+ return new Date().getTime();
500
+ }
501
+ var _globalLazyTestHooks;
502
+ function _initTestHooks() {
503
+ _globalLazyTestHooks = _getGlobalConfig();
504
+ }
505
+ /*#__NO_SIDE_EFFECTS__*/
506
+ function getLazy(cb) {
507
+ var lazyValue = {};
508
+ !_globalLazyTestHooks && _initTestHooks();
509
+ lazyValue.b = _globalLazyTestHooks.lzy;
510
+ objDefineProp(lazyValue, "v", {
511
+ configurable: true,
512
+ get: function () {
513
+ var result = cb();
514
+ if (!_globalLazyTestHooks.lzy) {
515
+ objDefineProp(lazyValue, "v", {
516
+ value: result
517
+ });
518
+ }
519
+ lazyValue.b = _globalLazyTestHooks.lzy;
520
+ return result;
521
+ }
522
+ });
523
+ return lazyValue;
524
+ }
525
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
526
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
527
+ var value = (utcNow().toString(36).slice(2));
528
+ while (value.length < 16) {
529
+ value += mathRandom().toString(36).slice(2);
530
+ }
531
+ value = value.substring(0, 16);
532
+ return value;
533
+ }));
354
534
  var UNIQUE_REGISTRY_ID = "_urid";
535
+ var POLY_SYM = "$nw21sym";
355
536
  var _polySymbols;
537
+ var _polyId = 0;
356
538
  /*#__NO_SIDE_EFFECTS__*/
357
539
  function _globalSymbolRegistry() {
358
540
  if (!_polySymbols) {
@@ -364,12 +546,35 @@ function _globalSymbolRegistry() {
364
546
  var _wellKnownSymbolCache;
365
547
  /*#__NO_SIDE_EFFECTS__*/
366
548
  function polyNewSymbol(description) {
367
- var theSymbol = {
368
- description: asString(description),
369
- toString: function () { return SYMBOL + "(" + description + ")"; }
370
- };
371
- theSymbol[POLYFILL_TAG] = true;
372
- return theSymbol;
549
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
550
+ var symString = SYMBOL + "(" + description + ")";
551
+ var theSymbol = objCreate(null);
552
+ objDefine(theSymbol, "description", {
553
+ v: asString(description),
554
+ e: false,
555
+ w: false
556
+ });
557
+ objDefine(theSymbol, TO_STRING, {
558
+ v: function () { return symString + POLY_SYM + uniqueId; },
559
+ e: false,
560
+ w: false
561
+ });
562
+ objDefine(theSymbol, "valueOf", {
563
+ v: function () { return theSymbol; },
564
+ e: false,
565
+ w: false
566
+ });
567
+ objDefine(theSymbol, "v", {
568
+ v: symString,
569
+ e: false,
570
+ w: false
571
+ });
572
+ objDefine(theSymbol, "_uid", {
573
+ v: uniqueId,
574
+ e: false,
575
+ w: false
576
+ });
577
+ return _tagAsPolyfill(theSymbol, "symbol");
373
578
  }
374
579
  /*#__NO_SIDE_EFFECTS__*/
375
580
  function polySymbolFor(key) {
@@ -393,16 +598,6 @@ function polyGetKnownSymbol(name) {
393
598
  }
394
599
  return result;
395
600
  }
396
- var _globalLazyTestHooks;
397
- function _initTestHooks() {
398
- _globalLazyTestHooks = _getGlobalConfig();
399
- }
400
- /*#__NO_SIDE_EFFECTS__*/
401
- function createCachedValue(value) {
402
- return objDefineProp({
403
- toJSON: function () { return value; }
404
- }, "v", { value: value });
405
- }
406
601
  var WINDOW = "window";
407
602
  var _cachedGlobal;
408
603
  function _getGlobalInstFn(getFn, theArgs) {
@@ -564,47 +759,11 @@ function arrAppend(target, elms) {
564
759
  }
565
760
  return target;
566
761
  }
567
- function arrForEach(theArray, callbackfn, thisArg) {
568
- if (theArray) {
569
- var len = theArray[LENGTH] >>> 0;
570
- for (var idx = 0; idx < len; idx++) {
571
- if (idx in theArray) {
572
- if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
573
- break;
574
- }
575
- }
576
- }
577
- }
578
- }
579
762
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
580
763
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
581
764
  function arrSlice(theArray, start, end) {
582
765
  return ((theArray ? theArray["slice"] : NULL_VALUE) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
583
766
  }
584
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
585
- /*#__NO_SIDE_EFFECTS__*/
586
- function polyObjCreate(obj) {
587
- if (!obj) {
588
- return {};
589
- }
590
- var type = typeof obj;
591
- if (type !== OBJECT && type !== FUNCTION) {
592
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
593
- }
594
- function tempFunc() { }
595
- tempFunc[PROTOTYPE] = obj;
596
- return new tempFunc();
597
- }
598
- var _isProtoArray;
599
- function objSetPrototypeOf(obj, proto) {
600
- var fn = ObjClass["setPrototypeOf"] ||
601
- function (d, b) {
602
- var _a;
603
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
604
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
605
- };
606
- return fn(obj, proto);
607
- }
608
767
  /*#__NO_SIDE_EFFECTS__*/
609
768
  function _createCustomError(name, d, b) {
610
769
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -646,19 +805,9 @@ function createCustomError(name, constructCb, errorBase) {
646
805
  }, theBaseClass);
647
806
  }
648
807
  /*#__NO_SIDE_EFFECTS__*/
649
- function utcNow() {
650
- return (Date.now || polyUtcNow)();
651
- }
652
- /*#__NO_SIDE_EFFECTS__*/
653
- function polyUtcNow() {
654
- return new Date().getTime();
655
- }
656
- /*#__NO_SIDE_EFFECTS__*/
657
808
  function _createTrimFn(exp) {
658
809
  return function _doTrim(value) {
659
- if (isNullOrUndefined(value)) {
660
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
661
- }
810
+ _throwIfNullOrUndefined(value);
662
811
  if (value && value.replace) {
663
812
  value = value.replace(exp, EMPTY);
664
813
  }
@@ -1924,7 +2073,7 @@ function newId(maxLength) {
1924
2073
  return result;
1925
2074
  }
1926
2075
 
1927
- var version = '3.3.7-nightly3.2504-08';
2076
+ var version = '3.3.7-nightly3.2504-12';
1928
2077
  var instanceName = "." + newId(6);
1929
2078
  var _dataUid = 0;
1930
2079
  function _canAcceptData(target) {
@@ -5631,7 +5780,7 @@ function EnvelopeCreatorInit(logger, telemetryItem) {
5631
5780
  }
5632
5781
  }
5633
5782
  var EnvelopeCreator = {
5634
- Version: '3.3.7-nightly3.2504-08'
5783
+ Version: '3.3.7-nightly3.2504-12'
5635
5784
  };
5636
5785
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5637
5786
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -7218,6 +7367,4 @@ var Sender = /** @class */ (function (_super) {
7218
7367
  }(BaseTelemetryPlugin));
7219
7368
 
7220
7369
  exports.Sender = Sender;
7221
-
7222
- }));
7223
- //# sourceMappingURL=applicationinsights-channel-js.3.3.7-nightly3.2504-08.js.map
7370
+ //# sourceMappingURL=applicationinsights-channel-js.3.3.7-nightly3.2504-12.cjs.js.map