@microsoft/applicationinsights-analytics-js 3.3.7-nightly3.2504-10 → 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 (28) hide show
  1. package/browser/es5/applicationinsights-analytics-js.cjs.js +296 -138
  2. package/browser/es5/applicationinsights-analytics-js.cjs.js.map +1 -1
  3. package/browser/es5/applicationinsights-analytics-js.cjs.min.js +2 -2
  4. package/browser/es5/applicationinsights-analytics-js.cjs.min.js.map +1 -1
  5. package/browser/es5/applicationinsights-analytics-js.gbl.js +298 -140
  6. package/browser/es5/applicationinsights-analytics-js.gbl.js.map +1 -1
  7. package/browser/es5/applicationinsights-analytics-js.gbl.min.js +2 -2
  8. package/browser/es5/applicationinsights-analytics-js.gbl.min.js.map +1 -1
  9. package/browser/es5/applicationinsights-analytics-js.integrity.json +25 -25
  10. package/browser/es5/applicationinsights-analytics-js.js +298 -140
  11. package/browser/es5/applicationinsights-analytics-js.js.map +1 -1
  12. package/browser/es5/applicationinsights-analytics-js.min.js +2 -2
  13. package/browser/es5/applicationinsights-analytics-js.min.js.map +1 -1
  14. package/dist/es5/applicationinsights-analytics-js.js +296 -138
  15. package/dist/es5/applicationinsights-analytics-js.js.map +1 -1
  16. package/dist/es5/applicationinsights-analytics-js.min.js +2 -2
  17. package/dist/es5/applicationinsights-analytics-js.min.js.map +1 -1
  18. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js +2 -2
  19. package/dist-es5/JavaScriptSDK/AnalyticsPlugin.js.map +1 -1
  20. package/dist-es5/JavaScriptSDK/Telemetry/PageViewManager.js +1 -1
  21. package/dist-es5/JavaScriptSDK/Telemetry/PageViewPerformanceManager.js +1 -1
  22. package/dist-es5/JavaScriptSDK/Telemetry/PageVisitTimeManager.js +1 -1
  23. package/dist-es5/JavaScriptSDK/Timing.js +1 -1
  24. package/dist-es5/__DynamicConstants.js +1 -1
  25. package/dist-es5/applicationinsights-analytics-js.js +1 -1
  26. package/package.json +5 -5
  27. package/types/applicationinsights-analytics-js.d.ts +1 -1
  28. package/types/applicationinsights-analytics-js.namespaced.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Web Analytics, 3.3.7-nightly3.2504-10
2
+ * Application Insights JavaScript SDK - Web Analytics, 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) {
@@ -109,24 +112,134 @@
109
112
  return !!value && typeof value === OBJECT;
110
113
  }
111
114
  var isArray = ( /* #__PURE__*/_pureRef(ArrCls, "isArray"));
115
+ var isNumber = ( /*#__PURE__*/_createIs("number"));
112
116
  var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
113
117
  var isError = ( /*#__PURE__*/_createObjIs("Error"));
114
118
  /*#__NO_SIDE_EFFECTS__*/
115
119
  function isTruthy(value) {
116
120
  return !(!value || safeGet(function () { return !(value && (0 + value)); }, !value));
117
121
  }
118
- var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor"));
122
+ var asString = ( /* #__PURE__ */_pureAssign(StrCls));
123
+ var ERROR_TYPE = "[object Error]";
124
+ /*#__NO_SIDE_EFFECTS__*/
125
+ function dumpObj(object, format) {
126
+ var propertyValueDump = EMPTY;
127
+ var objType = ObjProto[TO_STRING][CALL](object);
128
+ if (objType === ERROR_TYPE) {
129
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
130
+ }
131
+ try {
132
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
133
+ propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
134
+ }
135
+ catch (e) {
136
+ propertyValueDump = " - " + dumpObj(e, format);
137
+ }
138
+ return objType + ": " + propertyValueDump;
139
+ }
140
+ function throwError(message) {
141
+ throw new Error(message);
142
+ }
143
+ function throwTypeError(message) {
144
+ throw new TypeError(message);
145
+ }
146
+ function _throwIfNullOrUndefined(obj) {
147
+ if (isStrictNullOrUndefined(obj)) {
148
+ throwTypeError("Cannot convert undefined or null to object");
149
+ }
150
+ }
151
+ function _throwIfNotString(value) {
152
+ if (!isString(value)) {
153
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
154
+ }
155
+ }
119
156
  /*#__NO_SIDE_EFFECTS__*/
120
157
  function objHasOwnProperty(obj, prop) {
121
158
  return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
122
159
  }
123
- var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
160
+ var _unwrapFunction = ( _unwrapFunctionWithPoly);
161
+ /*#__NO_SIDE_EFFECTS__*/
162
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
163
+ var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
164
+ return function (thisArg) {
165
+ var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
166
+ if (theFunc || polyFunc) {
167
+ var theArgs = arguments;
168
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
169
+ }
170
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
171
+ };
172
+ }
173
+ function _objPropertyIsEnum(obj, propKey) {
174
+ var desc;
175
+ var fn = ObjClass.getOwnPropertyDescriptor;
176
+ if (!isStrictNullOrUndefined(obj) && fn) {
177
+ desc = safe(fn, [obj, propKey]).v || NULL_VALUE;
178
+ }
179
+ if (!desc) {
180
+ desc = safe(function () {
181
+ for (var key in obj) {
182
+ if (key === propKey) {
183
+ return { enumerable: true };
184
+ }
185
+ }
186
+ }).v;
187
+ }
188
+ return (desc && desc.enumerable) || false;
189
+ }
190
+ var objPropertyIsEnumerable = ( /*#__PURE__*/_unwrapFunctionWithPoly("propertyIsEnumerable", NULL_VALUE, _objPropertyIsEnum));
191
+ function _isPropertyWritable(obj, prop) {
192
+ var result = false;
193
+ if (!(isString(obj) && (prop === LENGTH || isNumber(prop) || (isString(prop) && !isNaN(Number(prop)))))) {
194
+ var originalValue = obj[prop];
195
+ try {
196
+ obj[prop] = originalValue;
197
+ result = true;
198
+ }
199
+ catch (e) {
200
+ }
201
+ }
202
+ return result;
203
+ }
204
+ function polyObjGetOwnPropertyDescriptor(obj, prop) {
205
+ var descriptor;
206
+ _throwIfNullOrUndefined(obj);
207
+ var isLength = (prop === LENGTH && (isArray(obj) || isString(obj)));
208
+ if (isLength || objHasOwnProperty(obj, prop)) {
209
+ descriptor = {
210
+ configurable: !isLength,
211
+ enumerable: !isLength ? objPropertyIsEnumerable(obj, prop) : false
212
+ };
213
+ var isData = true;
214
+ if (GETTER_NAME in ObjProto && SETTER_NAME in ObjProto) {
215
+ var getter = obj[GETTER_NAME](prop);
216
+ var setter = obj[SETTER_NAME](prop);
217
+ if (getter || setter) {
218
+ isData = false;
219
+ if (getter) {
220
+ descriptor.get = getter;
221
+ }
222
+ if (setter) {
223
+ descriptor.set = setter;
224
+ }
225
+ }
226
+ }
227
+ if (isData) {
228
+ descriptor.value = obj[prop];
229
+ descriptor.writable = _isPropertyWritable(obj, prop);
230
+ }
231
+ }
232
+ return descriptor;
233
+ }
234
+ var objGetOwnPropertyDescriptor = ( /* #__PURE__ */_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "getOwnPropertyDescriptor")), polyObjGetOwnPropertyDescriptor));
124
235
  /*#__NO_SIDE_EFFECTS__*/
125
236
  function polyObjHasOwn(obj, prop) {
237
+ _throwIfNullOrUndefined(obj);
126
238
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
127
239
  }
240
+ var objHasOwn = ( /*#__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "hasOwn")), polyObjHasOwn));
128
241
  function objForEachKey(theObject, callbackfn, thisArg) {
129
- if (theObject && isObject(theObject)) {
242
+ if (theObject && (isObject(theObject) || isFunction(theObject))) {
130
243
  for (var prop in theObject) {
131
244
  if (objHasOwn(theObject, prop)) {
132
245
  if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
@@ -136,6 +249,18 @@
136
249
  }
137
250
  }
138
251
  }
252
+ function arrForEach(theArray, callbackfn, thisArg) {
253
+ if (theArray) {
254
+ var len = theArray[LENGTH] >>> 0;
255
+ for (var idx = 0; idx < len; idx++) {
256
+ if (idx in theArray) {
257
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
258
+ break;
259
+ }
260
+ }
261
+ }
262
+ }
263
+ }
139
264
  var propMap = {
140
265
  e: "enumerable",
141
266
  c: "configurable",
@@ -164,6 +289,7 @@
164
289
  return prop;
165
290
  }
166
291
  var objDefineProp = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperty"));
292
+ var objDefineProperties = ( /*#__PURE__*/_pureRef(ObjClass, "defineProperties"));
167
293
  function objDefine(target, key, propDesc) {
168
294
  return objDefineProp(target, key, _createProp(propDesc));
169
295
  }
@@ -183,49 +309,50 @@
183
309
  writable: false
184
310
  });
185
311
  }
186
- var asString = ( /* #__PURE__ */_pureAssign(StrCls));
187
- var ERROR_TYPE = "[object Error]";
188
- /*#__NO_SIDE_EFFECTS__*/
189
- function dumpObj(object, format) {
190
- var propertyValueDump = EMPTY;
191
- var objType = ObjProto[TO_STRING][CALL](object);
192
- if (objType === ERROR_TYPE) {
193
- object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
312
+ function polyObjIsFrozen(obj) {
313
+ if (isStrictNullOrUndefined(obj) || (!isObject(obj) && !isFunction(obj))) {
314
+ return true;
194
315
  }
195
- try {
196
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
197
- propertyValueDump = (propertyValueDump ? propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ") : NULL_VALUE) || asString(object);
316
+ if (isFunction(obj)) {
317
+ return false;
198
318
  }
199
- catch (e) {
200
- propertyValueDump = " - " + dumpObj(e, format);
319
+ for (var prop in obj) {
320
+ var desc = objGetOwnPropertyDescriptor(obj, prop);
321
+ if (desc && (desc.configurable || (desc.writable !== false && "value" in desc))) {
322
+ return false;
323
+ }
201
324
  }
202
- return objType + ": " + propertyValueDump;
203
- }
204
- function throwError(message) {
205
- throw new Error(message);
206
- }
207
- function throwTypeError(message) {
208
- throw new TypeError(message);
325
+ return true;
209
326
  }
327
+ var objIsFrozen = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "isFrozen")), polyObjIsFrozen));
210
328
  var _objFreeze = ( /* #__PURE__ */_pureRef(ObjClass, "freeze"));
211
329
  function _doNothing(value) {
212
330
  return value;
213
331
  }
214
332
  /*#__NO_SIDE_EFFECTS__*/
215
333
  function _getProto(value) {
334
+ _throwIfNullOrUndefined(value);
216
335
  return value[__PROTO__] || NULL_VALUE;
217
336
  }
218
337
  var objAssign = ( /*#__PURE__*/_pureRef(ObjClass, "assign"));
219
338
  var objKeys = ( /*#__PURE__*/_pureRef(ObjClass, "keys"));
220
- function objDeepFreeze(value) {
221
- if (_objFreeze) {
222
- objForEachKey(value, function (key, value) {
223
- if (isArray(value) || isObject(value)) {
224
- objDeepFreeze(value);
339
+ function _deepFreeze(val, visited) {
340
+ if ((isArray(val) || isObject(val) || isFunction(val)) && !objIsFrozen(val)) {
341
+ for (var lp = 0; lp < visited.length; lp++) {
342
+ if (visited[lp] === val) {
343
+ return val;
225
344
  }
345
+ }
346
+ visited.push(val);
347
+ objForEachKey(val, function (_key, propValue) {
348
+ _deepFreeze(propValue, visited);
226
349
  });
350
+ objFreeze(val);
227
351
  }
228
- return objFreeze(value);
352
+ return val;
353
+ }
354
+ function objDeepFreeze(value) {
355
+ return _objFreeze ? _deepFreeze(value, []) : value;
229
356
  }
230
357
  var objFreeze = ( /* #__PURE__*/_pureAssign(_objFreeze, _doNothing));
231
358
  var objGetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "getPrototypeOf")), _getProto));
@@ -279,28 +406,13 @@
279
406
  }
280
407
  return _globalCfg;
281
408
  }
282
- var _unwrapFunction = ( _unwrapFunctionWithPoly);
283
- /*#__NO_SIDE_EFFECTS__*/
284
- function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
285
- var clsFn = clsProto ? clsProto[funcName] : NULL_VALUE;
286
- return function (thisArg) {
287
- var theFunc = (thisArg ? thisArg[funcName] : NULL_VALUE) || clsFn;
288
- if (theFunc || polyFunc) {
289
- var theArgs = arguments;
290
- return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
291
- }
292
- throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
293
- };
294
- }
295
409
  var mathMax = ( /*#__PURE__*/_pureRef(MathCls, "max"));
296
410
  var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
297
411
  var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
298
412
  var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
299
413
  /*#__NO_SIDE_EFFECTS__*/
300
414
  function polyStrSubstr(value, start, length) {
301
- if (isNullOrUndefined(value)) {
302
- throwTypeError("Invalid " + dumpObj(value));
303
- }
415
+ _throwIfNullOrUndefined(value);
304
416
  if (length < 0) {
305
417
  return EMPTY;
306
418
  }
@@ -317,8 +429,109 @@
317
429
  function strLeft(value, count) {
318
430
  return strSubstring(value, 0, count);
319
431
  }
432
+ function _tagAsPolyfill(target, polyfillTypeName) {
433
+ if (target) {
434
+ safe(function () {
435
+ target[POLYFILL_TAG] = true;
436
+ target[POLYFILL_TYPE_NAME] = polyfillTypeName;
437
+ });
438
+ safe(objDefine, [target, POLYFILL_TAG, {
439
+ v: true,
440
+ w: false,
441
+ e: false
442
+ }]);
443
+ safe(objDefine, [target, POLYFILL_TYPE_NAME, {
444
+ v: polyfillTypeName,
445
+ w: false,
446
+ e: false
447
+ }]);
448
+ }
449
+ return target;
450
+ }
451
+ /*#__NO_SIDE_EFFECTS__*/
452
+ function createCachedValue(value) {
453
+ return objDefineProp({
454
+ toJSON: function () { return value; }
455
+ }, "v", { value: value });
456
+ }
457
+ var _isProtoArray;
458
+ var objSetPrototypeOf = ( /* #__PURE__*/_pureAssign(( /* #__PURE__ */_pureRef(ObjClass, "setPrototypeOf")), _polyObjSetPrototypeOf));
459
+ function _polyObjSetPrototypeOf(obj, proto) {
460
+ var _a;
461
+ !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
462
+ _isProtoArray.v ? obj[__PROTO__] = proto : objForEachKey(proto, function (key, value) { return obj[key] = value; });
463
+ return obj;
464
+ }
465
+ var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
466
+ /*#__NO_SIDE_EFFECTS__*/
467
+ function polyObjCreate(obj, properties) {
468
+ var newObj;
469
+ function tempFunc() { }
470
+ if (!isStrictNullOrUndefined(obj)) {
471
+ var type = typeof obj;
472
+ if (type !== OBJECT && type !== FUNCTION) {
473
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
474
+ }
475
+ tempFunc[PROTOTYPE] = obj;
476
+ safe(function () {
477
+ tempFunc[__PROTO__] = obj;
478
+ });
479
+ newObj = new tempFunc();
480
+ }
481
+ else {
482
+ newObj = {};
483
+ }
484
+ safe(_polyObjSetPrototypeOf, [newObj, obj]);
485
+ if (properties) {
486
+ safe(objDefineProperties, [newObj, properties]);
487
+ }
488
+ return newObj;
489
+ }
490
+ /*#__NO_SIDE_EFFECTS__*/
491
+ function utcNow() {
492
+ return (Date.now || polyUtcNow)();
493
+ }
494
+ /*#__NO_SIDE_EFFECTS__*/
495
+ function polyUtcNow() {
496
+ return new Date().getTime();
497
+ }
498
+ var _globalLazyTestHooks;
499
+ function _initTestHooks() {
500
+ _globalLazyTestHooks = _getGlobalConfig();
501
+ }
502
+ /*#__NO_SIDE_EFFECTS__*/
503
+ function getLazy(cb) {
504
+ var lazyValue = {};
505
+ !_globalLazyTestHooks && _initTestHooks();
506
+ lazyValue.b = _globalLazyTestHooks.lzy;
507
+ objDefineProp(lazyValue, "v", {
508
+ configurable: true,
509
+ get: function () {
510
+ var result = cb();
511
+ if (!_globalLazyTestHooks.lzy) {
512
+ objDefineProp(lazyValue, "v", {
513
+ value: result
514
+ });
515
+ }
516
+ lazyValue.b = _globalLazyTestHooks.lzy;
517
+ return result;
518
+ }
519
+ });
520
+ return lazyValue;
521
+ }
522
+ var mathRandom = ( /*#__PURE__*/_pureRef(MathCls, "random"));
523
+ var _uniqueInstanceId = ( /*#__PURE__*/getLazy(function () {
524
+ var value = (utcNow().toString(36).slice(2));
525
+ while (value.length < 16) {
526
+ value += mathRandom().toString(36).slice(2);
527
+ }
528
+ value = value.substring(0, 16);
529
+ return value;
530
+ }));
320
531
  var UNIQUE_REGISTRY_ID = "_urid";
532
+ var POLY_SYM = "$nw21sym";
321
533
  var _polySymbols;
534
+ var _polyId = 0;
322
535
  /*#__NO_SIDE_EFFECTS__*/
323
536
  function _globalSymbolRegistry() {
324
537
  if (!_polySymbols) {
@@ -330,12 +543,35 @@
330
543
  var _wellKnownSymbolCache;
331
544
  /*#__NO_SIDE_EFFECTS__*/
332
545
  function polyNewSymbol(description) {
333
- var theSymbol = {
334
- description: asString(description),
335
- toString: function () { return SYMBOL + "(" + description + ")"; }
336
- };
337
- theSymbol[POLYFILL_TAG] = true;
338
- return theSymbol;
546
+ var uniqueId = "_" + _polyId++ + "_" + _uniqueInstanceId.v;
547
+ var symString = SYMBOL + "(" + description + ")";
548
+ var theSymbol = objCreate(null);
549
+ objDefine(theSymbol, "description", {
550
+ v: asString(description),
551
+ e: false,
552
+ w: false
553
+ });
554
+ objDefine(theSymbol, TO_STRING, {
555
+ v: function () { return symString + POLY_SYM + uniqueId; },
556
+ e: false,
557
+ w: false
558
+ });
559
+ objDefine(theSymbol, "valueOf", {
560
+ v: function () { return theSymbol; },
561
+ e: false,
562
+ w: false
563
+ });
564
+ objDefine(theSymbol, "v", {
565
+ v: symString,
566
+ e: false,
567
+ w: false
568
+ });
569
+ objDefine(theSymbol, "_uid", {
570
+ v: uniqueId,
571
+ e: false,
572
+ w: false
573
+ });
574
+ return _tagAsPolyfill(theSymbol, "symbol");
339
575
  }
340
576
  /*#__NO_SIDE_EFFECTS__*/
341
577
  function polySymbolFor(key) {
@@ -359,36 +595,6 @@
359
595
  }
360
596
  return result;
361
597
  }
362
- var _globalLazyTestHooks;
363
- function _initTestHooks() {
364
- _globalLazyTestHooks = _getGlobalConfig();
365
- }
366
- /*#__NO_SIDE_EFFECTS__*/
367
- function getLazy(cb) {
368
- var lazyValue = {};
369
- !_globalLazyTestHooks && _initTestHooks();
370
- lazyValue.b = _globalLazyTestHooks.lzy;
371
- objDefineProp(lazyValue, "v", {
372
- configurable: true,
373
- get: function () {
374
- var result = cb();
375
- if (!_globalLazyTestHooks.lzy) {
376
- objDefineProp(lazyValue, "v", {
377
- value: result
378
- });
379
- }
380
- lazyValue.b = _globalLazyTestHooks.lzy;
381
- return result;
382
- }
383
- });
384
- return lazyValue;
385
- }
386
- /*#__NO_SIDE_EFFECTS__*/
387
- function createCachedValue(value) {
388
- return objDefineProp({
389
- toJSON: function () { return value; }
390
- }, "v", { value: value });
391
- }
392
598
  var WINDOW = "window";
393
599
  var _cachedGlobal;
394
600
  function _getGlobalInstFn(getFn, theArgs) {
@@ -542,44 +748,8 @@
542
748
  }
543
749
  return target;
544
750
  }
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
751
  var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
558
752
  var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
559
- var objCreate = ( /* #__PURE__*/_pureAssign(( /* #__PURE__*/_pureRef(ObjClass, "create")), polyObjCreate));
560
- /*#__NO_SIDE_EFFECTS__*/
561
- function polyObjCreate(obj) {
562
- if (!obj) {
563
- return {};
564
- }
565
- var type = typeof obj;
566
- if (type !== OBJECT && type !== FUNCTION) {
567
- throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
568
- }
569
- function tempFunc() { }
570
- tempFunc[PROTOTYPE] = obj;
571
- return new tempFunc();
572
- }
573
- var _isProtoArray;
574
- function objSetPrototypeOf(obj, proto) {
575
- var fn = ObjClass["setPrototypeOf"] ||
576
- function (d, b) {
577
- var _a;
578
- !_isProtoArray && (_isProtoArray = createCachedValue((_a = {}, _a[__PROTO__] = [], _a) instanceof Array));
579
- _isProtoArray.v ? d[__PROTO__] = b : objForEachKey(b, function (key, value) { return d[key] = value; });
580
- };
581
- return fn(obj, proto);
582
- }
583
753
  /*#__NO_SIDE_EFFECTS__*/
584
754
  function _createCustomError(name, d, b) {
585
755
  safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
@@ -621,19 +791,9 @@
621
791
  }, theBaseClass);
622
792
  }
623
793
  /*#__NO_SIDE_EFFECTS__*/
624
- function utcNow() {
625
- return (Date.now || polyUtcNow)();
626
- }
627
- /*#__NO_SIDE_EFFECTS__*/
628
- function polyUtcNow() {
629
- return new Date().getTime();
630
- }
631
- /*#__NO_SIDE_EFFECTS__*/
632
794
  function _createTrimFn(exp) {
633
795
  return function _doTrim(value) {
634
- if (isNullOrUndefined(value)) {
635
- throwTypeError("strTrim called [" + dumpObj(value) + "]");
636
- }
796
+ _throwIfNullOrUndefined(value);
637
797
  if (value && value.replace) {
638
798
  value = value.replace(exp, EMPTY);
639
799
  }
@@ -688,9 +848,7 @@
688
848
  var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
689
849
  /*#__NO_SIDE_EFFECTS__*/
690
850
  function polyStrEndsWith(value, searchString, length) {
691
- if (!isString(value)) {
692
- throwTypeError("'" + dumpObj(value) + "' is not a string");
693
- }
851
+ _throwIfNotString(value);
694
852
  var searchValue = isString(searchString) ? searchString : asString(searchString);
695
853
  var end = (!isUndefined(length) && length < value[LENGTH]) ? length : value[LENGTH];
696
854
  return strSubstring(value, end - searchValue[LENGTH], end) === searchValue;
@@ -1336,7 +1494,7 @@
1336
1494
  return result;
1337
1495
  }
1338
1496
 
1339
- var version = '3.3.7-nightly3.2504-10';
1497
+ var version = '3.3.7-nightly3.2504-12';
1340
1498
  var instanceName = "." + newId(6);
1341
1499
  var _dataUid = 0;
1342
1500
  function _canAcceptData(target) {
@@ -5754,7 +5912,7 @@
5754
5912
  });
5755
5913
  return _this;
5756
5914
  }
5757
- AnalyticsPlugin.Version = '3.3.7-nightly3.2504-10';
5915
+ AnalyticsPlugin.Version = '3.3.7-nightly3.2504-12';
5758
5916
  return AnalyticsPlugin;
5759
5917
  }(BaseTelemetryPlugin));
5760
5918