@microsoft/applicationinsights-debugplugin-js 2.8.0-beta.2203-15 → 2.8.0-nightly.2204-05

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 (54) hide show
  1. package/browser/{ai.dbg.2.8.0-beta.2203-15.cjs.js → ai.dbg.2.8.0-nightly.2204-05.cjs.js} +278 -363
  2. package/browser/ai.dbg.2.8.0-nightly.2204-05.cjs.js.map +1 -0
  3. package/browser/ai.dbg.2.8.0-nightly.2204-05.cjs.min.js +6 -0
  4. package/browser/ai.dbg.2.8.0-nightly.2204-05.cjs.min.js.map +1 -0
  5. package/browser/{ai.dbg.2.8.0-beta.2203-15.gbl.js → ai.dbg.2.8.0-nightly.2204-05.gbl.js} +278 -363
  6. package/browser/ai.dbg.2.8.0-nightly.2204-05.gbl.js.map +1 -0
  7. package/browser/ai.dbg.2.8.0-nightly.2204-05.gbl.min.js +6 -0
  8. package/browser/ai.dbg.2.8.0-nightly.2204-05.gbl.min.js.map +1 -0
  9. package/browser/ai.dbg.2.8.0-nightly.2204-05.integrity.json +66 -0
  10. package/browser/{ai.dbg.2.8.0-beta.2203-15.js → ai.dbg.2.8.0-nightly.2204-05.js} +278 -363
  11. package/browser/ai.dbg.2.8.0-nightly.2204-05.js.map +1 -0
  12. package/browser/ai.dbg.2.8.0-nightly.2204-05.min.js +6 -0
  13. package/browser/ai.dbg.2.8.0-nightly.2204-05.min.js.map +1 -0
  14. package/browser/ai.dbg.2.cjs.js +277 -362
  15. package/browser/ai.dbg.2.cjs.js.map +1 -1
  16. package/browser/ai.dbg.2.cjs.min.js +2 -2
  17. package/browser/ai.dbg.2.cjs.min.js.map +1 -1
  18. package/browser/ai.dbg.2.gbl.js +277 -362
  19. package/browser/ai.dbg.2.gbl.js.map +1 -1
  20. package/browser/ai.dbg.2.gbl.min.js +2 -2
  21. package/browser/ai.dbg.2.gbl.min.js.map +1 -1
  22. package/browser/ai.dbg.2.js +277 -362
  23. package/browser/ai.dbg.2.js.map +1 -1
  24. package/browser/ai.dbg.2.min.js +2 -2
  25. package/browser/ai.dbg.2.min.js.map +1 -1
  26. package/dist/applicationinsights-debugplugin-js.api.json +14 -8
  27. package/dist/applicationinsights-debugplugin-js.d.ts +1 -1
  28. package/dist/applicationinsights-debugplugin-js.js +277 -362
  29. package/dist/applicationinsights-debugplugin-js.js.map +1 -1
  30. package/dist/applicationinsights-debugplugin-js.min.js +2 -2
  31. package/dist/applicationinsights-debugplugin-js.min.js.map +1 -1
  32. package/dist/applicationinsights-debugplugin-js.rollup.d.ts +1 -1
  33. package/dist-esm/DebugPlugin.js +1 -1
  34. package/dist-esm/applicationinsights-debugplugin-js.js +1 -1
  35. package/dist-esm/components/Dashboard.js +1 -1
  36. package/dist-esm/components/LogEntry.js +1 -1
  37. package/dist-esm/components/debugBins.js +1 -1
  38. package/dist-esm/components/filterList.js +1 -1
  39. package/dist-esm/components/helpers.js +1 -1
  40. package/dist-esm/components/styleNodeSrc.js +1 -1
  41. package/dist-esm/interfaces/IDebugPluginConfig.js +1 -1
  42. package/package.json +4 -4
  43. package/src/DebugPlugin.ts +1 -1
  44. package/types/tsdoc-metadata.json +1 -1
  45. package/browser/ai.dbg.2.8.0-beta.2203-15.cjs.js.map +0 -1
  46. package/browser/ai.dbg.2.8.0-beta.2203-15.cjs.min.js +0 -6
  47. package/browser/ai.dbg.2.8.0-beta.2203-15.cjs.min.js.map +0 -1
  48. package/browser/ai.dbg.2.8.0-beta.2203-15.gbl.js.map +0 -1
  49. package/browser/ai.dbg.2.8.0-beta.2203-15.gbl.min.js +0 -6
  50. package/browser/ai.dbg.2.8.0-beta.2203-15.gbl.min.js.map +0 -1
  51. package/browser/ai.dbg.2.8.0-beta.2203-15.integrity.json +0 -66
  52. package/browser/ai.dbg.2.8.0-beta.2203-15.js.map +0 -1
  53. package/browser/ai.dbg.2.8.0-beta.2203-15.min.js +0 -6
  54. package/browser/ai.dbg.2.8.0-beta.2203-15.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Debug Plugin, 2.8.0-beta.2203-15
2
+ * Application Insights JavaScript SDK - Debug Plugin, 2.8.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -85,247 +85,6 @@
85
85
  d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
86
86
  }
87
87
 
88
- /*!
89
- * Microsoft Dynamic Proto Utility, 1.1.4
90
- * Copyright (c) Microsoft and contributors. All rights reserved.
91
- */
92
- var Constructor = 'constructor';
93
- var Prototype = 'prototype';
94
- var strFunction = 'function';
95
- var DynInstFuncTable = '_dynInstFuncs';
96
- var DynProxyTag = '_isDynProxy';
97
- var DynClassName = '_dynClass';
98
- var DynClassNamePrefix = '_dynCls$';
99
- var DynInstChkTag = '_dynInstChk';
100
- var DynAllowInstChkTag = DynInstChkTag;
101
- var DynProtoDefaultOptions = '_dfOpts';
102
- var UnknownValue = '_unknown_';
103
- var str__Proto$1 = "__proto__";
104
- var strUseBaseInst = 'useBaseInst';
105
- var strSetInstFuncs = 'setInstFuncs';
106
- var Obj = Object;
107
- var _objGetPrototypeOf$1 = Obj["getPrototypeOf"];
108
- var _dynamicNames = 0;
109
- function _hasOwnProperty(obj, prop) {
110
- return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
111
- }
112
- function _isObjectOrArrayPrototype(target) {
113
- return target && (target === Obj[Prototype] || target === Array[Prototype]);
114
- }
115
- function _isObjectArrayOrFunctionPrototype(target) {
116
- return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
117
- }
118
- function _getObjProto$1(target) {
119
- if (target) {
120
- if (_objGetPrototypeOf$1) {
121
- return _objGetPrototypeOf$1(target);
122
- }
123
- var newProto = target[str__Proto$1] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
124
- if (newProto) {
125
- return newProto;
126
- }
127
- }
128
- return null;
129
- }
130
- function _forEachProp(target, func) {
131
- var props = [];
132
- var getOwnProps = Obj["getOwnPropertyNames"];
133
- if (getOwnProps) {
134
- props = getOwnProps(target);
135
- }
136
- else {
137
- for (var name_1 in target) {
138
- if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
139
- props.push(name_1);
140
- }
141
- }
142
- }
143
- if (props && props.length > 0) {
144
- for (var lp = 0; lp < props.length; lp++) {
145
- func(props[lp]);
146
- }
147
- }
148
- }
149
- function _isDynamicCandidate(target, funcName, skipOwn) {
150
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
151
- }
152
- function _throwTypeError(message) {
153
- throw new TypeError("DynamicProto: " + message);
154
- }
155
- function _getInstanceFuncs(thisTarget) {
156
- var instFuncs = {};
157
- _forEachProp(thisTarget, function (name) {
158
- if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
159
- instFuncs[name] = thisTarget[name];
160
- }
161
- });
162
- return instFuncs;
163
- }
164
- function _hasVisited(values, value) {
165
- for (var lp = values.length - 1; lp >= 0; lp--) {
166
- if (values[lp] === value) {
167
- return true;
168
- }
169
- }
170
- return false;
171
- }
172
- function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
173
- function _instFuncProxy(target, funcHost, funcName) {
174
- var theFunc = funcHost[funcName];
175
- if (theFunc[DynProxyTag] && useBaseInst) {
176
- var instFuncTable = target[DynInstFuncTable] || {};
177
- if (instFuncTable[DynAllowInstChkTag] !== false) {
178
- theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
179
- }
180
- }
181
- return function () {
182
- return theFunc.apply(target, arguments);
183
- };
184
- }
185
- var baseFuncs = {};
186
- _forEachProp(instFuncs, function (name) {
187
- baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
188
- });
189
- var baseProto = _getObjProto$1(classProto);
190
- var visited = [];
191
- while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
192
- _forEachProp(baseProto, function (name) {
193
- if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf$1)) {
194
- baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
195
- }
196
- });
197
- visited.push(baseProto);
198
- baseProto = _getObjProto$1(baseProto);
199
- }
200
- return baseFuncs;
201
- }
202
- function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
203
- var instFunc = null;
204
- if (target && _hasOwnProperty(proto, DynClassName)) {
205
- var instFuncTable = target[DynInstFuncTable] || {};
206
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
207
- if (!instFunc) {
208
- _throwTypeError("Missing [" + funcName + "] " + strFunction);
209
- }
210
- if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
211
- var canAddInst = !_hasOwnProperty(target, funcName);
212
- var objProto = _getObjProto$1(target);
213
- var visited = [];
214
- while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
215
- var protoFunc = objProto[funcName];
216
- if (protoFunc) {
217
- canAddInst = (protoFunc === currentDynProtoProxy);
218
- break;
219
- }
220
- visited.push(objProto);
221
- objProto = _getObjProto$1(objProto);
222
- }
223
- try {
224
- if (canAddInst) {
225
- target[funcName] = instFunc;
226
- }
227
- instFunc[DynInstChkTag] = 1;
228
- }
229
- catch (e) {
230
- instFuncTable[DynAllowInstChkTag] = false;
231
- }
232
- }
233
- }
234
- return instFunc;
235
- }
236
- function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
237
- var protoFunc = proto[funcName];
238
- if (protoFunc === currentDynProtoProxy) {
239
- protoFunc = _getObjProto$1(proto)[funcName];
240
- }
241
- if (typeof protoFunc !== strFunction) {
242
- _throwTypeError("[" + funcName + "] is not a " + strFunction);
243
- }
244
- return protoFunc;
245
- }
246
- function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
247
- function _createDynamicPrototype(proto, funcName) {
248
- var dynProtoProxy = function () {
249
- var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
250
- return instFunc.apply(this, arguments);
251
- };
252
- dynProtoProxy[DynProxyTag] = 1;
253
- return dynProtoProxy;
254
- }
255
- if (!_isObjectOrArrayPrototype(proto)) {
256
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
257
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
258
- if (instFuncTable[DynAllowInstChkTag] !== false) {
259
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
260
- }
261
- _forEachProp(target, function (name) {
262
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
263
- instFuncs_1[name] = target[name];
264
- delete target[name];
265
- if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
266
- proto[name] = _createDynamicPrototype(proto, name);
267
- }
268
- }
269
- });
270
- }
271
- }
272
- function _checkPrototype(classProto, thisTarget) {
273
- if (_objGetPrototypeOf$1) {
274
- var visited = [];
275
- var thisProto = _getObjProto$1(thisTarget);
276
- while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
277
- if (thisProto === classProto) {
278
- return true;
279
- }
280
- visited.push(thisProto);
281
- thisProto = _getObjProto$1(thisProto);
282
- }
283
- }
284
- return false;
285
- }
286
- function _getObjName(target, unknownValue) {
287
- if (_hasOwnProperty(target, Prototype)) {
288
- return target.name || unknownValue || UnknownValue;
289
- }
290
- return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
291
- }
292
- function dynamicProto(theClass, target, delegateFunc, options) {
293
- if (!_hasOwnProperty(theClass, Prototype)) {
294
- _throwTypeError("theClass is an invalid class definition.");
295
- }
296
- var classProto = theClass[Prototype];
297
- if (!_checkPrototype(classProto, target)) {
298
- _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
299
- }
300
- var className = null;
301
- if (_hasOwnProperty(classProto, DynClassName)) {
302
- className = classProto[DynClassName];
303
- }
304
- else {
305
- className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
306
- _dynamicNames++;
307
- classProto[DynClassName] = className;
308
- }
309
- var perfOptions = dynamicProto[DynProtoDefaultOptions];
310
- var useBaseInst = !!perfOptions[strUseBaseInst];
311
- if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
312
- useBaseInst = !!options[strUseBaseInst];
313
- }
314
- var instFuncs = _getInstanceFuncs(target);
315
- var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
316
- delegateFunc(target, baseFuncs);
317
- var setInstanceFunc = !!_objGetPrototypeOf$1 && !!perfOptions[strSetInstFuncs];
318
- if (setInstanceFunc && options) {
319
- setInstanceFunc = !!options[strSetInstFuncs];
320
- }
321
- _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
322
- }
323
- var perfDefaults = {
324
- setInstFuncs: true,
325
- useBaseInst: true
326
- };
327
- dynamicProto[DynProtoDefaultOptions] = perfDefaults;
328
-
329
88
  var strEmpty$1 = "";
330
89
  var strSetNextPlugin = "setNextPlugin";
331
90
  var strIsInitialized = "isInitialized";
@@ -342,7 +101,7 @@
342
101
  var strReduce = "reduce";
343
102
  var cStrTrim = "trim";
344
103
  var strToString = "toString";
345
- var str__Proto = "__proto__";
104
+ var str__Proto$1 = "__proto__";
346
105
  var strConstructor$1 = "constructor";
347
106
  var _objDefineProperty$1 = ObjDefineProperty;
348
107
  var _objFreeze = ObjClass.freeze;
@@ -359,13 +118,13 @@
359
118
  var rCamelCase = /-([a-z])/g;
360
119
  var rNormalizeInvalid = /([^\w\d_$])/g;
361
120
  var rLeadingNumeric = /^(\d+[\w\d_$])/;
362
- var _objGetPrototypeOf = Object["getPrototypeOf"];
363
- function _getObjProto(target) {
121
+ var _objGetPrototypeOf$1 = Object["getPrototypeOf"];
122
+ function _getObjProto$1(target) {
364
123
  if (target) {
365
- if (_objGetPrototypeOf) {
366
- return _objGetPrototypeOf(target);
124
+ if (_objGetPrototypeOf$1) {
125
+ return _objGetPrototypeOf$1(target);
367
126
  }
368
- var newProto = target[str__Proto] || target[strShimPrototype] || target[strConstructor$1];
127
+ var newProto = target[str__Proto$1] || target[strShimPrototype] || target[strConstructor$1];
369
128
  if (newProto) {
370
129
  return newProto;
371
130
  }
@@ -472,7 +231,7 @@
472
231
  function isPlainObject(value) {
473
232
  var result = false;
474
233
  if (value && typeof value === "object") {
475
- var proto = _objGetPrototypeOf ? _objGetPrototypeOf(value) : _getObjProto(value);
234
+ var proto = _objGetPrototypeOf$1 ? _objGetPrototypeOf$1(value) : _getObjProto$1(value);
476
235
  if (!proto) {
477
236
  result = true;
478
237
  }
@@ -653,6 +412,16 @@
653
412
  function _doNothing(value) {
654
413
  return value;
655
414
  }
415
+ function deepFreeze(obj) {
416
+ if (_objFreeze) {
417
+ objForEachKey(obj, function (name, value) {
418
+ if (isArray(value) || isObject(value)) {
419
+ _objFreeze(value);
420
+ }
421
+ });
422
+ }
423
+ return objFreeze(obj);
424
+ }
656
425
  var objFreeze = _objFreeze || _doNothing;
657
426
  function dateNow() {
658
427
  var dt = Date;
@@ -678,9 +447,6 @@
678
447
  function isTruthy(value) {
679
448
  return !!value;
680
449
  }
681
- function throwError(message) {
682
- throw new Error(message);
683
- }
684
450
  function _createProxyFunction(source, funcName) {
685
451
  var srcFunc = null;
686
452
  var src = null;
@@ -701,24 +467,12 @@
701
467
  };
702
468
  }
703
469
  function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {
704
- if (overwriteTarget === void 0) { overwriteTarget = true; }
705
470
  if (target && name && source) {
706
- if (overwriteTarget || isUndefined(target[name])) {
471
+ if (overwriteTarget !== false || isUndefined(target[name])) {
707
472
  target[name] = _createProxyFunction(source, theFunc);
708
473
  }
709
474
  }
710
475
  }
711
- function createEnumStyle(values) {
712
- var enumClass = {};
713
- objForEachKey(values, function (field, value) {
714
- enumClass[field] = value;
715
- if (!isUndefined(enumClass[value])) {
716
- throwError("[" + value + "] exists for " + field);
717
- }
718
- enumClass[value] = field;
719
- });
720
- return objFreeze(enumClass);
721
- }
722
476
  function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
723
477
  var theArgs = arguments;
724
478
  var extended = theArgs[0] || {};
@@ -764,6 +518,256 @@
764
518
  return extended;
765
519
  }
766
520
 
521
+ function createEnumStyle(values) {
522
+ var enumClass = {};
523
+ objForEachKey(values, function (field, value) {
524
+ enumClass[field] = value;
525
+ enumClass[value] = field;
526
+ });
527
+ return deepFreeze(enumClass);
528
+ }
529
+
530
+ /*!
531
+ * Microsoft Dynamic Proto Utility, 1.1.4
532
+ * Copyright (c) Microsoft and contributors. All rights reserved.
533
+ */
534
+ var Constructor = 'constructor';
535
+ var Prototype = 'prototype';
536
+ var strFunction = 'function';
537
+ var DynInstFuncTable = '_dynInstFuncs';
538
+ var DynProxyTag = '_isDynProxy';
539
+ var DynClassName = '_dynClass';
540
+ var DynClassNamePrefix = '_dynCls$';
541
+ var DynInstChkTag = '_dynInstChk';
542
+ var DynAllowInstChkTag = DynInstChkTag;
543
+ var DynProtoDefaultOptions = '_dfOpts';
544
+ var UnknownValue = '_unknown_';
545
+ var str__Proto = "__proto__";
546
+ var strUseBaseInst = 'useBaseInst';
547
+ var strSetInstFuncs = 'setInstFuncs';
548
+ var Obj = Object;
549
+ var _objGetPrototypeOf = Obj["getPrototypeOf"];
550
+ var _dynamicNames = 0;
551
+ function _hasOwnProperty(obj, prop) {
552
+ return obj && Obj[Prototype].hasOwnProperty.call(obj, prop);
553
+ }
554
+ function _isObjectOrArrayPrototype(target) {
555
+ return target && (target === Obj[Prototype] || target === Array[Prototype]);
556
+ }
557
+ function _isObjectArrayOrFunctionPrototype(target) {
558
+ return _isObjectOrArrayPrototype(target) || target === Function[Prototype];
559
+ }
560
+ function _getObjProto(target) {
561
+ if (target) {
562
+ if (_objGetPrototypeOf) {
563
+ return _objGetPrototypeOf(target);
564
+ }
565
+ var newProto = target[str__Proto] || target[Prototype] || (target[Constructor] ? target[Constructor][Prototype] : null);
566
+ if (newProto) {
567
+ return newProto;
568
+ }
569
+ }
570
+ return null;
571
+ }
572
+ function _forEachProp(target, func) {
573
+ var props = [];
574
+ var getOwnProps = Obj["getOwnPropertyNames"];
575
+ if (getOwnProps) {
576
+ props = getOwnProps(target);
577
+ }
578
+ else {
579
+ for (var name_1 in target) {
580
+ if (typeof name_1 === "string" && _hasOwnProperty(target, name_1)) {
581
+ props.push(name_1);
582
+ }
583
+ }
584
+ }
585
+ if (props && props.length > 0) {
586
+ for (var lp = 0; lp < props.length; lp++) {
587
+ func(props[lp]);
588
+ }
589
+ }
590
+ }
591
+ function _isDynamicCandidate(target, funcName, skipOwn) {
592
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || _hasOwnProperty(target, funcName)));
593
+ }
594
+ function _throwTypeError(message) {
595
+ throw new TypeError("DynamicProto: " + message);
596
+ }
597
+ function _getInstanceFuncs(thisTarget) {
598
+ var instFuncs = {};
599
+ _forEachProp(thisTarget, function (name) {
600
+ if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
601
+ instFuncs[name] = thisTarget[name];
602
+ }
603
+ });
604
+ return instFuncs;
605
+ }
606
+ function _hasVisited(values, value) {
607
+ for (var lp = values.length - 1; lp >= 0; lp--) {
608
+ if (values[lp] === value) {
609
+ return true;
610
+ }
611
+ }
612
+ return false;
613
+ }
614
+ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
615
+ function _instFuncProxy(target, funcHost, funcName) {
616
+ var theFunc = funcHost[funcName];
617
+ if (theFunc[DynProxyTag] && useBaseInst) {
618
+ var instFuncTable = target[DynInstFuncTable] || {};
619
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
620
+ theFunc = (instFuncTable[funcHost[DynClassName]] || {})[funcName] || theFunc;
621
+ }
622
+ }
623
+ return function () {
624
+ return theFunc.apply(target, arguments);
625
+ };
626
+ }
627
+ var baseFuncs = {};
628
+ _forEachProp(instFuncs, function (name) {
629
+ baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
630
+ });
631
+ var baseProto = _getObjProto(classProto);
632
+ var visited = [];
633
+ while (baseProto && !_isObjectArrayOrFunctionPrototype(baseProto) && !_hasVisited(visited, baseProto)) {
634
+ _forEachProp(baseProto, function (name) {
635
+ if (!baseFuncs[name] && _isDynamicCandidate(baseProto, name, !_objGetPrototypeOf)) {
636
+ baseFuncs[name] = _instFuncProxy(thisTarget, baseProto, name);
637
+ }
638
+ });
639
+ visited.push(baseProto);
640
+ baseProto = _getObjProto(baseProto);
641
+ }
642
+ return baseFuncs;
643
+ }
644
+ function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
645
+ var instFunc = null;
646
+ if (target && _hasOwnProperty(proto, DynClassName)) {
647
+ var instFuncTable = target[DynInstFuncTable] || {};
648
+ instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
649
+ if (!instFunc) {
650
+ _throwTypeError("Missing [" + funcName + "] " + strFunction);
651
+ }
652
+ if (!instFunc[DynInstChkTag] && instFuncTable[DynAllowInstChkTag] !== false) {
653
+ var canAddInst = !_hasOwnProperty(target, funcName);
654
+ var objProto = _getObjProto(target);
655
+ var visited = [];
656
+ while (canAddInst && objProto && !_isObjectArrayOrFunctionPrototype(objProto) && !_hasVisited(visited, objProto)) {
657
+ var protoFunc = objProto[funcName];
658
+ if (protoFunc) {
659
+ canAddInst = (protoFunc === currentDynProtoProxy);
660
+ break;
661
+ }
662
+ visited.push(objProto);
663
+ objProto = _getObjProto(objProto);
664
+ }
665
+ try {
666
+ if (canAddInst) {
667
+ target[funcName] = instFunc;
668
+ }
669
+ instFunc[DynInstChkTag] = 1;
670
+ }
671
+ catch (e) {
672
+ instFuncTable[DynAllowInstChkTag] = false;
673
+ }
674
+ }
675
+ }
676
+ return instFunc;
677
+ }
678
+ function _getProtoFunc(funcName, proto, currentDynProtoProxy) {
679
+ var protoFunc = proto[funcName];
680
+ if (protoFunc === currentDynProtoProxy) {
681
+ protoFunc = _getObjProto(proto)[funcName];
682
+ }
683
+ if (typeof protoFunc !== strFunction) {
684
+ _throwTypeError("[" + funcName + "] is not a " + strFunction);
685
+ }
686
+ return protoFunc;
687
+ }
688
+ function _populatePrototype(proto, className, target, baseInstFuncs, setInstanceFunc) {
689
+ function _createDynamicPrototype(proto, funcName) {
690
+ var dynProtoProxy = function () {
691
+ var instFunc = _getInstFunc(this, funcName, proto, dynProtoProxy) || _getProtoFunc(funcName, proto, dynProtoProxy);
692
+ return instFunc.apply(this, arguments);
693
+ };
694
+ dynProtoProxy[DynProxyTag] = 1;
695
+ return dynProtoProxy;
696
+ }
697
+ if (!_isObjectOrArrayPrototype(proto)) {
698
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
699
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
700
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
701
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
702
+ }
703
+ _forEachProp(target, function (name) {
704
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
705
+ instFuncs_1[name] = target[name];
706
+ delete target[name];
707
+ if (!_hasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
708
+ proto[name] = _createDynamicPrototype(proto, name);
709
+ }
710
+ }
711
+ });
712
+ }
713
+ }
714
+ function _checkPrototype(classProto, thisTarget) {
715
+ if (_objGetPrototypeOf) {
716
+ var visited = [];
717
+ var thisProto = _getObjProto(thisTarget);
718
+ while (thisProto && !_isObjectArrayOrFunctionPrototype(thisProto) && !_hasVisited(visited, thisProto)) {
719
+ if (thisProto === classProto) {
720
+ return true;
721
+ }
722
+ visited.push(thisProto);
723
+ thisProto = _getObjProto(thisProto);
724
+ }
725
+ }
726
+ return false;
727
+ }
728
+ function _getObjName(target, unknownValue) {
729
+ if (_hasOwnProperty(target, Prototype)) {
730
+ return target.name || unknownValue || UnknownValue;
731
+ }
732
+ return (((target || {})[Constructor]) || {}).name || unknownValue || UnknownValue;
733
+ }
734
+ function dynamicProto(theClass, target, delegateFunc, options) {
735
+ if (!_hasOwnProperty(theClass, Prototype)) {
736
+ _throwTypeError("theClass is an invalid class definition.");
737
+ }
738
+ var classProto = theClass[Prototype];
739
+ if (!_checkPrototype(classProto, target)) {
740
+ _throwTypeError("[" + _getObjName(theClass) + "] is not in class hierarchy of [" + _getObjName(target) + "]");
741
+ }
742
+ var className = null;
743
+ if (_hasOwnProperty(classProto, DynClassName)) {
744
+ className = classProto[DynClassName];
745
+ }
746
+ else {
747
+ className = DynClassNamePrefix + _getObjName(theClass, "_") + "$" + _dynamicNames;
748
+ _dynamicNames++;
749
+ classProto[DynClassName] = className;
750
+ }
751
+ var perfOptions = dynamicProto[DynProtoDefaultOptions];
752
+ var useBaseInst = !!perfOptions[strUseBaseInst];
753
+ if (useBaseInst && options && options[strUseBaseInst] !== undefined) {
754
+ useBaseInst = !!options[strUseBaseInst];
755
+ }
756
+ var instFuncs = _getInstanceFuncs(target);
757
+ var baseFuncs = _getBaseFuncs(classProto, target, instFuncs, useBaseInst);
758
+ delegateFunc(target, baseFuncs);
759
+ var setInstanceFunc = !!_objGetPrototypeOf && !!perfOptions[strSetInstFuncs];
760
+ if (setInstanceFunc && options) {
761
+ setInstanceFunc = !!options[strSetInstFuncs];
762
+ }
763
+ _populatePrototype(classProto, className, target, instFuncs, setInstanceFunc !== false);
764
+ }
765
+ var perfDefaults = {
766
+ setInstFuncs: true,
767
+ useBaseInst: true
768
+ };
769
+ dynamicProto[DynProtoDefaultOptions] = perfDefaults;
770
+
767
771
  var strWindow = "window";
768
772
  var strDocument = "document";
769
773
  var strDocumentMode = "documentMode";
@@ -1266,7 +1270,7 @@
1266
1270
  }
1267
1271
 
1268
1272
  var _objDefineProperty = ObjDefineProperty;
1269
- var version = "2.8.0-beta.2203-15";
1273
+ var version = "2.8.0-nightly.2204-05";
1270
1274
  var instanceName = "." + newId(6);
1271
1275
  var _dataUid = 0;
1272
1276
  function _createAccessor(target, prop, value) {
@@ -2310,95 +2314,6 @@
2310
2314
  return _legacyCookieMgr(null, logger).del(name);
2311
2315
  }
2312
2316
 
2313
- createEnumStyle({
2314
- CRITICAL: 1 ,
2315
- WARNING: 2
2316
- });
2317
- var _InternalMessageId = createEnumStyle({
2318
- BrowserDoesNotSupportLocalStorage: 0 ,
2319
- BrowserCannotReadLocalStorage: 1 ,
2320
- BrowserCannotReadSessionStorage: 2 ,
2321
- BrowserCannotWriteLocalStorage: 3 ,
2322
- BrowserCannotWriteSessionStorage: 4 ,
2323
- BrowserFailedRemovalFromLocalStorage: 5 ,
2324
- BrowserFailedRemovalFromSessionStorage: 6 ,
2325
- CannotSendEmptyTelemetry: 7 ,
2326
- ClientPerformanceMathError: 8 ,
2327
- ErrorParsingAISessionCookie: 9 ,
2328
- ErrorPVCalc: 10 ,
2329
- ExceptionWhileLoggingError: 11 ,
2330
- FailedAddingTelemetryToBuffer: 12 ,
2331
- FailedMonitorAjaxAbort: 13 ,
2332
- FailedMonitorAjaxDur: 14 ,
2333
- FailedMonitorAjaxOpen: 15 ,
2334
- FailedMonitorAjaxRSC: 16 ,
2335
- FailedMonitorAjaxSend: 17 ,
2336
- FailedMonitorAjaxGetCorrelationHeader: 18 ,
2337
- FailedToAddHandlerForOnBeforeUnload: 19 ,
2338
- FailedToSendQueuedTelemetry: 20 ,
2339
- FailedToReportDataLoss: 21 ,
2340
- FlushFailed: 22 ,
2341
- MessageLimitPerPVExceeded: 23 ,
2342
- MissingRequiredFieldSpecification: 24 ,
2343
- NavigationTimingNotSupported: 25 ,
2344
- OnError: 26 ,
2345
- SessionRenewalDateIsZero: 27 ,
2346
- SenderNotInitialized: 28 ,
2347
- StartTrackEventFailed: 29 ,
2348
- StopTrackEventFailed: 30 ,
2349
- StartTrackFailed: 31 ,
2350
- StopTrackFailed: 32 ,
2351
- TelemetrySampledAndNotSent: 33 ,
2352
- TrackEventFailed: 34 ,
2353
- TrackExceptionFailed: 35 ,
2354
- TrackMetricFailed: 36 ,
2355
- TrackPVFailed: 37 ,
2356
- TrackPVFailedCalc: 38 ,
2357
- TrackTraceFailed: 39 ,
2358
- TransmissionFailed: 40 ,
2359
- FailedToSetStorageBuffer: 41 ,
2360
- FailedToRestoreStorageBuffer: 42 ,
2361
- InvalidBackendResponse: 43 ,
2362
- FailedToFixDepricatedValues: 44 ,
2363
- InvalidDurationValue: 45 ,
2364
- TelemetryEnvelopeInvalid: 46 ,
2365
- CreateEnvelopeError: 47 ,
2366
- CannotSerializeObject: 48 ,
2367
- CannotSerializeObjectNonSerializable: 49 ,
2368
- CircularReferenceDetected: 50 ,
2369
- ClearAuthContextFailed: 51 ,
2370
- ExceptionTruncated: 52 ,
2371
- IllegalCharsInName: 53 ,
2372
- ItemNotInArray: 54 ,
2373
- MaxAjaxPerPVExceeded: 55 ,
2374
- MessageTruncated: 56 ,
2375
- NameTooLong: 57 ,
2376
- SampleRateOutOfRange: 58 ,
2377
- SetAuthContextFailed: 59 ,
2378
- SetAuthContextFailedAccountName: 60 ,
2379
- StringValueTooLong: 61 ,
2380
- StartCalledMoreThanOnce: 62 ,
2381
- StopCalledWithoutStart: 63 ,
2382
- TelemetryInitializerFailed: 64 ,
2383
- TrackArgumentsNotSpecified: 65 ,
2384
- UrlTooLong: 66 ,
2385
- SessionStorageBufferFull: 67 ,
2386
- CannotAccessCookie: 68 ,
2387
- IdTooLong: 69 ,
2388
- InvalidEvent: 70 ,
2389
- FailedMonitorAjaxSetRequestHeader: 71 ,
2390
- SendBrowserInfoOnUserInit: 72 ,
2391
- PluginException: 73 ,
2392
- NotificationException: 74 ,
2393
- SnippetScriptLoadFailure: 99 ,
2394
- InvalidInstrumentationKey: 100 ,
2395
- CannotParseAiBlobValue: 101 ,
2396
- InvalidContentBlob: 102 ,
2397
- TrackPageActionEventFailed: 103 ,
2398
- FailedAddingCustomDefinedRequestContext: 104 ,
2399
- InMemoryStorageBufferFull: 105
2400
- });
2401
-
2402
2317
  var aiInstrumentHooks = "_aiHooks";
2403
2318
  var cbNames = [
2404
2319
  "req", "rsp", "hkErr", "fnErr"
@@ -2490,7 +2405,7 @@
2490
2405
  owner = target;
2491
2406
  }
2492
2407
  else if (checkPrototype) {
2493
- owner = _getOwner(_getObjProto(target), name, false);
2408
+ owner = _getOwner(_getObjProto$1(target), name, false);
2494
2409
  }
2495
2410
  }
2496
2411
  return owner;
@@ -2651,7 +2566,7 @@
2651
2566
  }
2652
2567
  catch (e) {
2653
2568
  _canUseLocalStorage = false;
2654
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotReadLocalStorage, "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2569
+ _throwInternal(logger, 2 , 1 , "Browser failed read of local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2655
2570
  }
2656
2571
  }
2657
2572
  return null;
@@ -2665,7 +2580,7 @@
2665
2580
  }
2666
2581
  catch (e) {
2667
2582
  _canUseLocalStorage = false;
2668
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotWriteLocalStorage, "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2583
+ _throwInternal(logger, 2 , 3 , "Browser failed write to local storage. " + getExceptionName(e), { exception: dumpObj(e) });
2669
2584
  }
2670
2585
  }
2671
2586
  return false;
@@ -2679,7 +2594,7 @@
2679
2594
  }
2680
2595
  catch (e) {
2681
2596
  _canUseLocalStorage = false;
2682
- _throwInternal(logger, 2 , _InternalMessageId.BrowserFailedRemovalFromLocalStorage, "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2597
+ _throwInternal(logger, 2 , 5 , "Browser failed removal of local storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2683
2598
  }
2684
2599
  }
2685
2600
  return false;
@@ -2707,7 +2622,7 @@
2707
2622
  }
2708
2623
  catch (e) {
2709
2624
  _canUseSessionStorage = false;
2710
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotReadSessionStorage, "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2625
+ _throwInternal(logger, 2 , 2 , "Browser failed read of session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2711
2626
  }
2712
2627
  }
2713
2628
  return null;
@@ -2721,7 +2636,7 @@
2721
2636
  }
2722
2637
  catch (e) {
2723
2638
  _canUseSessionStorage = false;
2724
- _throwInternal(logger, 2 , _InternalMessageId.BrowserCannotWriteSessionStorage, "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2639
+ _throwInternal(logger, 2 , 4 , "Browser failed write to session storage. " + getExceptionName(e), { exception: dumpObj(e) });
2725
2640
  }
2726
2641
  }
2727
2642
  return false;
@@ -2735,7 +2650,7 @@
2735
2650
  }
2736
2651
  catch (e) {
2737
2652
  _canUseSessionStorage = false;
2738
- _throwInternal(logger, 2 , _InternalMessageId.BrowserFailedRemovalFromSessionStorage, "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2653
+ _throwInternal(logger, 2 , 6 , "Browser failed removal of session storage item. " + getExceptionName(e), { exception: dumpObj(e) });
2739
2654
  }
2740
2655
  }
2741
2656
  return false;
@@ -3974,4 +3889,4 @@
3974
3889
  (function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
3975
3890
 
3976
3891
  }));
3977
- //# sourceMappingURL=ai.dbg.2.8.0-beta.2203-15.js.map
3892
+ //# sourceMappingURL=ai.dbg.2.8.0-nightly.2204-05.js.map