@microsoft/1ds-post-js 4.0.6-nightly3.2312-05 → 4.0.7

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 (47) hide show
  1. package/bundle/es5/{ms.post-4.0.6-nightly3.2312-05.gbl.js → ms.post-4.0.7.gbl.js} +261 -261
  2. package/bundle/es5/ms.post-4.0.7.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.0.7.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.0.7.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.0.7.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.0.6-nightly3.2312-05.js → ms.post-4.0.7.js} +261 -261
  7. package/bundle/es5/ms.post-4.0.7.js.map +1 -0
  8. package/bundle/es5/ms.post-4.0.7.min.js +7 -0
  9. package/bundle/es5/ms.post-4.0.7.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +260 -260
  11. package/bundle/es5/ms.post.gbl.js.map +1 -1
  12. package/bundle/es5/ms.post.gbl.min.js +2 -2
  13. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.post.integrity.json +17 -17
  15. package/bundle/es5/ms.post.js +260 -260
  16. package/bundle/es5/ms.post.js.map +1 -1
  17. package/bundle/es5/ms.post.min.js +2 -2
  18. package/bundle/es5/ms.post.min.js.map +1 -1
  19. package/dist/es5/ms.post.js +258 -258
  20. package/dist/es5/ms.post.js.map +1 -1
  21. package/dist/es5/ms.post.min.js +2 -2
  22. package/dist/es5/ms.post.min.js.map +1 -1
  23. package/dist-es5/BatchNotificationActions.js +1 -1
  24. package/dist-es5/ClockSkewManager.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/EventBatch.js +1 -1
  27. package/dist-es5/HttpManager.js +1 -1
  28. package/dist-es5/Index.js +1 -1
  29. package/dist-es5/InternalConstants.js +1 -1
  30. package/dist-es5/KillSwitch.js +1 -1
  31. package/dist-es5/PostChannel.js +2 -2
  32. package/dist-es5/PostChannel.js.map +1 -1
  33. package/dist-es5/RetryPolicy.js +1 -1
  34. package/dist-es5/Serializer.js +1 -1
  35. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  36. package/dist-es5/__DynamicConstants.js +1 -1
  37. package/dist-es5/typings/XDomainRequest.js +1 -1
  38. package/package.json +6 -6
  39. package/types/1ds-post-js.d.ts +6 -2
  40. package/types/1ds-post-js.namespaced.d.ts +2247 -100
  41. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.gbl.js.map +0 -1
  42. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.gbl.min.js +0 -7
  43. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.gbl.min.js.map +0 -1
  44. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.integrity.json +0 -46
  45. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.js.map +0 -1
  46. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.min.js +0 -7
  47. package/bundle/es5/ms.post-4.0.6-nightly3.2312-05.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * 1DS JS SDK POST plugin, 4.0.6-nightly3.2312-05
2
+ * 1DS JS SDK POST plugin, 4.0.7
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  * (Microsoft Internal Only)
5
5
  */
@@ -8,8 +8,8 @@
8
8
  typeof exports === "object" && typeof module !== undef ? factory(exports) :
9
9
  typeof define === "function" && define.amd ? define(["exports"], factory) :
10
10
  (function(global){
11
- var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_0_6_nightly3_2312_05", msMod="__ms$mod__";
12
- var mods={}, modDetail=mods[modName]={}, ver="4.0.6-nightly3.2312-05";
11
+ var nsKey, key, nm, theExports = {}, modName = "es5_ms_post_4_0_7", msMod="__ms$mod__";
12
+ var mods={}, modDetail=mods[modName]={}, ver="4.0.7";
13
13
  // Versioned namespace "oneDS4"
14
14
  var exportNs=global, nsKey="oneDS4", exportNs=exportNs[nsKey]=(exportNs[nsKey]||{});
15
15
  // Global namespace "oneDS"
@@ -44,23 +44,18 @@ var ObjProto$1 = ObjClass$1[strShimPrototype];
44
44
  var UNDEF_VALUE = undefined;
45
45
  var NULL_VALUE = null;
46
46
  var EMPTY = "";
47
- var BOOLEAN = "boolean";
48
47
  var FUNCTION = "function";
49
- var NUMBER = "number";
50
48
  var OBJECT = "object";
51
49
  var PROTOTYPE = "prototype";
52
50
  var __PROTO__ = "__proto__";
53
- var STRING = "string";
54
51
  var UNDEFINED = "undefined";
55
52
  var CONSTRUCTOR = "constructor";
56
53
  var SYMBOL = "Symbol";
57
54
  var POLYFILL_TAG = "_polyfill";
58
- var INDEX_OF = "indexOf";
59
55
  var LENGTH = "length";
60
- var DONE = "done";
61
- var VALUE = "value";
62
56
  var NAME = "name";
63
- var SLICE = "slice";
57
+ var CALL = "call";
58
+ var TO_STRING = "toString";
64
59
  var ObjClass = Object;
65
60
  var ObjProto = ObjClass[PROTOTYPE];
66
61
  var StrCls = String;
@@ -68,45 +63,44 @@ var StrProto = StrCls[PROTOTYPE];
68
63
  var MathCls = Math;
69
64
  var ArrCls = Array;
70
65
  var ArrProto = ArrCls[PROTOTYPE];
66
+ var ArrSlice = ArrProto["slice"];
71
67
 
72
- function safeGet(cb, defValue) {
73
- var result = defValue;
68
+ function safe(func, argArray) {
74
69
  try {
75
- result = cb();
70
+ return {
71
+ v: func.apply(this, argArray)
72
+ };
76
73
  }
77
74
  catch (e) {
75
+ return { e: e };
78
76
  }
79
- return result;
80
77
  }
81
78
 
79
+ /*#__NO_SIDE_EFFECTS__*/
82
80
  function _createIs(theType) {
83
81
  return function (value) {
84
82
  return typeof value === theType;
85
83
  };
86
84
  }
87
- function _createObjIs(theName) {
88
- var theType = "[object " + theName + "]";
89
- return function (value) {
90
- return !!(value && objToString(value) === theType);
91
- };
92
- }
93
- function objToString(value) {
94
- return ObjProto.toString.call(value);
95
- }
85
+ /*#__NO_SIDE_EFFECTS__*/
96
86
  function isUndefined(value) {
97
87
  return typeof value === UNDEFINED || value === UNDEFINED;
98
88
  }
89
+ /*#__NO_SIDE_EFFECTS__*/
99
90
  function isNullOrUndefined(value) {
100
91
  return value === NULL_VALUE || isUndefined(value);
101
92
  }
93
+ /*#__NO_SIDE_EFFECTS__*/
102
94
  function isStrictNullOrUndefined(value) {
103
95
  return value === NULL_VALUE || !isDefined(value);
104
96
  }
97
+ /*#__NO_SIDE_EFFECTS__*/
105
98
  function isDefined(arg) {
106
99
  return !!arg || arg !== UNDEF_VALUE;
107
100
  }
108
- var isString = _createIs(STRING);
109
- var isFunction = _createIs(FUNCTION);
101
+ var isString = ( /*#__PURE__*/_createIs("string"));
102
+ var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
103
+ /*#__NO_SIDE_EFFECTS__*/
110
104
  function isObject(value) {
111
105
  if (!value && isNullOrUndefined(value)) {
112
106
  return false;
@@ -114,20 +108,22 @@ function isObject(value) {
114
108
  return !!value && typeof value === OBJECT;
115
109
  }
116
110
  var isArray = ArrCls.isArray;
117
- var isNumber = _createIs(NUMBER);
118
- var isBoolean = _createIs(BOOLEAN);
119
- var isError = _createObjIs("Error");
111
+ var isNumber = ( /*#__PURE__*/_createIs("number"));
112
+ var isBoolean = ( /*#__PURE__*/_createIs("boolean"));
113
+ /*#__NO_SIDE_EFFECTS__*/
120
114
  function isPromiseLike(value) {
121
- return !!value && isFunction(value.then);
115
+ return !!(value && value.then && isFunction(value.then));
122
116
  }
123
117
 
124
118
  var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
125
119
 
120
+ /*#__NO_SIDE_EFFECTS__*/
126
121
  function objHasOwnProperty(obj, prop) {
127
- return obj && ObjProto.hasOwnProperty.call(obj, prop);
122
+ return !!obj && ObjProto.hasOwnProperty[CALL](obj, prop);
128
123
  }
129
124
 
130
125
  var objHasOwn = ObjClass["hasOwn"] || polyObjHasOwn;
126
+ /*#__NO_SIDE_EFFECTS__*/
131
127
  function polyObjHasOwn(obj, prop) {
132
128
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
133
129
  }
@@ -136,7 +132,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
136
132
  if (theObject && isObject(theObject)) {
137
133
  for (var prop in theObject) {
138
134
  if (objHasOwn(theObject, prop)) {
139
- if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
135
+ if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
140
136
  break;
141
137
  }
142
138
  }
@@ -144,6 +140,7 @@ function objForEachKey(theObject, callbackfn, thisArg) {
144
140
  }
145
141
  }
146
142
 
143
+ /*#__NO_SIDE_EFFECTS__*/
147
144
  function _createKeyValueMap(values, keyType, valueType, completeFn) {
148
145
  var theMap = {};
149
146
  objForEachKey(values, function (key, value) {
@@ -158,15 +155,15 @@ function throwTypeError(message) {
158
155
  }
159
156
 
160
157
  var _objFreeze = ObjClass["freeze"];
161
- var _doNothing = function (value) { return value; };
162
- var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
163
- var objAssign = ObjClass["assign"];
164
- function objKeys(value) {
165
- if (!isObject(value) || value === NULL_VALUE) {
166
- throwTypeError("objKeys called on non-object");
167
- }
168
- return ObjClass.keys(value);
158
+ function _doNothing(value) {
159
+ return value;
160
+ }
161
+ /*#__NO_SIDE_EFFECTS__*/
162
+ function _getProto(value) {
163
+ return value[__PROTO__] || NULL_VALUE;
169
164
  }
165
+ var objAssign = ObjClass["assign"];
166
+ var objKeys = ObjClass.keys;
170
167
  function objDeepFreeze(value) {
171
168
  if (_objFreeze) {
172
169
  objForEachKey(value, function (key, value) {
@@ -180,14 +177,16 @@ function objDeepFreeze(value) {
180
177
  var objFreeze = _objFreeze || _doNothing;
181
178
  var objGetPrototypeOf = ObjClass["getPrototypeOf"] || _getProto;
182
179
 
180
+ /*#__NO_SIDE_EFFECTS__*/
183
181
  function createEnum(values) {
184
182
  return _createKeyValueMap(values, 1 , 0 , objDeepFreeze);
185
183
  }
184
+ /*#__NO_SIDE_EFFECTS__*/
186
185
  function createEnumKeyMap(values) {
187
186
  return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
188
187
  }
189
188
 
190
- var _wellKnownSymbolMap = createEnumKeyMap({
189
+ var _wellKnownSymbolMap = /*#__PURE__*/ createEnumKeyMap({
191
190
  asyncIterator: 0 ,
192
191
  hasInstance: 1 ,
193
192
  isConcatSpreadable: 2 ,
@@ -207,6 +206,7 @@ var asString = StrCls;
207
206
 
208
207
  var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
209
208
  var _globalCfg;
209
+ /*#__NO_SIDE_EFFECTS__*/
210
210
  function _getGlobalValue() {
211
211
  var result;
212
212
  if (typeof globalThis !== UNDEFINED) {
@@ -223,67 +223,54 @@ function _getGlobalValue() {
223
223
  }
224
224
  return result;
225
225
  }
226
+ /*#__NO_SIDE_EFFECTS__*/
226
227
  function _getGlobalConfig() {
227
228
  if (!_globalCfg) {
228
- var gbl = _getGlobalValue() || {};
229
+ var gbl = safe(_getGlobalValue).v || {};
229
230
  _globalCfg = gbl[GLOBAL_CONFIG_KEY] = gbl[GLOBAL_CONFIG_KEY] || {};
230
231
  }
231
232
  return _globalCfg;
232
233
  }
233
234
 
235
+ var ERROR_TYPE = "[object Error]";
236
+ /*#__NO_SIDE_EFFECTS__*/
234
237
  function dumpObj(object, format) {
235
238
  var propertyValueDump = EMPTY;
236
- if (isError(object)) {
237
- propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
239
+ var objType = ObjProto[TO_STRING][CALL](object);
240
+ if (objType === ERROR_TYPE) {
241
+ object = { stack: asString(object.stack), message: asString(object.message), name: asString(object.name) };
238
242
  }
239
- else {
240
- try {
241
- propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? (isNumber(format) ? format : 4) : UNDEF_VALUE);
242
- }
243
- catch (e) {
244
- propertyValueDump = " - " + dumpObj(e, format);
245
- }
243
+ try {
244
+ propertyValueDump = JSON.stringify(object, NULL_VALUE, format ? ((typeof format === "number") ? format : 4) : UNDEF_VALUE);
245
+ propertyValueDump = (propertyValueDump && propertyValueDump.replace(/"(\w+)"\s*:\s{0,1}/g, "$1: ")) || asString(object);
246
+ }
247
+ catch (e) {
248
+ propertyValueDump = " - " + dumpObj(e, format);
246
249
  }
247
- return objToString(object) + ": " + propertyValueDump;
250
+ return objType + ": " + propertyValueDump;
248
251
  }
249
252
 
250
- var _arrSlice = ArrProto[SLICE];
251
- var _throwMissingFunction = function (funcName, thisArg) {
252
- throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
253
- };
254
- var _unwrapInstFunction = function (funcName) {
255
- return function (thisArg) {
256
- return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
257
- };
258
- };
259
- var _unwrapFunction = function (funcName, clsProto) {
260
- var clsFn = clsProto && clsProto[funcName];
261
- return function (thisArg) {
262
- var theFunc = (thisArg && thisArg[funcName]) || clsFn;
263
- if (theFunc) {
264
- return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
265
- }
266
- _throwMissingFunction(funcName, thisArg);
267
- };
268
- };
269
- var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
253
+ var _unwrapFunction = _unwrapFunctionWithPoly;
254
+ /*#__NO_SIDE_EFFECTS__*/
255
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
270
256
  var clsFn = clsProto && clsProto[funcName];
271
257
  return function (thisArg) {
272
258
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
273
259
  if (theFunc || polyFunc) {
274
260
  var theArgs = arguments;
275
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _arrSlice.call(theArgs, 1) : theArgs);
261
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? ArrSlice[CALL](theArgs, 1) : theArgs);
276
262
  }
277
- _throwMissingFunction(funcName, thisArg);
263
+ throwTypeError("\"" + asString(funcName) + "\" not defined for " + dumpObj(thisArg));
278
264
  };
279
- };
265
+ }
280
266
 
281
267
  var mathMax = MathCls.max;
282
268
 
283
- var strSlice = _unwrapFunction(SLICE, StrProto);
269
+ var strSlice = ( /*#__PURE__*/_unwrapFunction("slice", StrProto));
284
270
 
285
- var strSubstring = _unwrapFunction("substring", StrProto);
286
- var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
271
+ var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
272
+ var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
273
+ /*#__NO_SIDE_EFFECTS__*/
287
274
  function polyStrSubstr(value, start, length) {
288
275
  if (isNullOrUndefined(value)) {
289
276
  throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
@@ -300,23 +287,14 @@ function polyStrSubstr(value, start, length) {
300
287
  }
301
288
  return strSlice(value, start, start + length);
302
289
  }
290
+ /*#__NO_SIDE_EFFECTS__*/
303
291
  function strLeft(value, count) {
304
292
  return strSubstring(value, 0, count);
305
293
  }
306
294
 
307
- var strStartsWith = _unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith);
308
- function polyStrStartsWith(value, searchString, position) {
309
- if (!isString(value)) {
310
- throwTypeError("'" + dumpObj(value) + "' is not a string");
311
- }
312
- var searchValue = isString(searchString) ? searchString : asString(searchString);
313
- var chkLen = searchValue[LENGTH];
314
- var pos = position > 0 ? position : 0;
315
- return strSubstring(value, pos, pos + chkLen) === searchValue;
316
- }
317
-
318
295
  var UNIQUE_REGISTRY_ID = "_urid";
319
296
  var _polySymbols;
297
+ /*#__NO_SIDE_EFFECTS__*/
320
298
  function _globalSymbolRegistry() {
321
299
  if (!_polySymbols) {
322
300
  var gblCfg = _getGlobalConfig();
@@ -324,7 +302,8 @@ function _globalSymbolRegistry() {
324
302
  }
325
303
  return _polySymbols;
326
304
  }
327
- var _wellKnownSymbolCache = {};
305
+ var _wellKnownSymbolCache;
306
+ /*#__NO_SIDE_EFFECTS__*/
328
307
  function polyNewSymbol(description) {
329
308
  var theSymbol = {
330
309
  description: asString(description),
@@ -333,18 +312,21 @@ function polyNewSymbol(description) {
333
312
  theSymbol[POLYFILL_TAG] = true;
334
313
  return theSymbol;
335
314
  }
315
+ /*#__NO_SIDE_EFFECTS__*/
336
316
  function polySymbolFor(key) {
337
317
  var registry = _globalSymbolRegistry();
338
318
  if (!objHasOwn(registry.k, key)) {
339
319
  var newSymbol_1 = polyNewSymbol(key);
340
320
  var regId_1 = objKeys(registry.s).length;
341
- newSymbol_1[UNIQUE_REGISTRY_ID] = function () { return regId_1 + "_" + newSymbol_1.toString(); };
321
+ newSymbol_1[UNIQUE_REGISTRY_ID] = function () { return regId_1 + "_" + newSymbol_1[TO_STRING](); };
342
322
  registry.k[key] = newSymbol_1;
343
323
  registry.s[newSymbol_1[UNIQUE_REGISTRY_ID]()] = asString(key);
344
324
  }
345
325
  return registry.k[key];
346
326
  }
327
+ /*#__NO_SIDE_EFFECTS__*/
347
328
  function polyGetKnownSymbol(name) {
329
+ !_wellKnownSymbolCache && (_wellKnownSymbolCache = {});
348
330
  var result;
349
331
  var knownName = _wellKnownSymbolMap[name];
350
332
  if (knownName) {
@@ -356,11 +338,12 @@ function polyGetKnownSymbol(name) {
356
338
  var propMap = {
357
339
  e: "enumerable",
358
340
  c: "configurable",
359
- v: VALUE,
341
+ v: "value",
360
342
  w: "writable",
361
343
  g: "get",
362
344
  s: "set"
363
345
  };
346
+ /*#__NO_SIDE_EFFECTS__*/
364
347
  function _createProp(value) {
365
348
  var prop = {};
366
349
  prop[propMap["c"]] = true;
@@ -385,13 +368,13 @@ function objDefine(target, key, propDesc) {
385
368
  }
386
369
 
387
370
  var _globalLazyTestHooks;
388
- var _fetchLazyTestHooks = function () {
371
+ function _initTestHooks() {
389
372
  _globalLazyTestHooks = _getGlobalConfig();
390
- _fetchLazyTestHooks = NULL_VALUE;
391
- };
373
+ }
374
+ /*#__NO_SIDE_EFFECTS__*/
392
375
  function getLazy(cb) {
393
376
  var lazyValue = {};
394
- _fetchLazyTestHooks && _fetchLazyTestHooks();
377
+ !_globalLazyTestHooks && _initTestHooks();
395
378
  lazyValue.b = _globalLazyTestHooks.lzy;
396
379
  objDefineProp(lazyValue, "v", {
397
380
  configurable: true,
@@ -401,99 +384,118 @@ function getLazy(cb) {
401
384
  objDefineProp(lazyValue, "v", {
402
385
  value: result
403
386
  });
404
- if (lazyValue.b) {
405
- delete lazyValue.b;
406
- }
407
- }
408
- if (_globalLazyTestHooks.lzy && lazyValue.b !== _globalLazyTestHooks.lzy) {
409
- lazyValue.b = _globalLazyTestHooks.lzy;
410
387
  }
388
+ lazyValue.b = _globalLazyTestHooks.lzy;
411
389
  return result;
412
390
  }
413
391
  });
414
392
  return lazyValue;
415
393
  }
416
394
 
395
+ /*#__NO_SIDE_EFFECTS__*/
417
396
  function safeGetLazy(cb, defValue) {
418
- return getLazy(function () { return safeGet(cb, defValue); });
397
+ return getLazy(function () {
398
+ var result = safe(cb);
399
+ return result.e ? defValue : result.v;
400
+ });
401
+ }
402
+
403
+ /*#__NO_SIDE_EFFECTS__*/
404
+ function createCachedValue(value) {
405
+ return objDefineProp({
406
+ toJSON: function () { return value; }
407
+ }, "v", { value: value });
419
408
  }
420
409
 
421
410
  var WINDOW = "window";
422
411
  var _cachedGlobal;
423
- var _cachedWindow;
424
- var _cachedDocument;
425
- var _cachedNavigator;
426
- var _isNode;
427
- var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
428
- var getGlobal = function (useCached) {
429
- (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
412
+ function _getGlobalInstFn(getFn, theArgs) {
413
+ var cachedValue;
414
+ return function () {
415
+ !_globalLazyTestHooks && _initTestHooks();
416
+ (!cachedValue || _globalLazyTestHooks.lzy) && (cachedValue = createCachedValue(safe(getFn, theArgs).v));
417
+ return cachedValue.v;
418
+ };
419
+ }
420
+ /*#__NO_SIDE_EFFECTS__*/
421
+ function lazySafeGetInst(name) {
422
+ return getLazy(function () { return safe((getInst), [name]).v || UNDEF_VALUE; });
423
+ }
424
+ /*#__NO_SIDE_EFFECTS__*/
425
+ function getGlobal(useCached) {
426
+ !_globalLazyTestHooks && _initTestHooks();
427
+ (!_cachedGlobal || useCached === false || _globalLazyTestHooks.lzy) && (_cachedGlobal = createCachedValue(safe(_getGlobalValue).v || NULL_VALUE));
430
428
  return _cachedGlobal.v;
431
- };
432
- var getInst = function (name, useCached) {
429
+ }
430
+ /*#__NO_SIDE_EFFECTS__*/
431
+ function getInst(name, useCached) {
433
432
  var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
434
433
  if (gbl && gbl[name]) {
435
434
  return gbl[name];
436
435
  }
437
- if (name === WINDOW && _cachedWindow) {
438
- return _cachedWindow.v;
436
+ if (name === WINDOW) {
437
+ return getWindow();
439
438
  }
440
439
  return NULL_VALUE;
441
- };
442
- var hasDocument = function () { return !!getDocument(); };
443
- var getDocument = function () {
444
- (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
445
- return _cachedDocument.v;
446
- };
447
- var hasWindow = function () { return !!getWindow(); };
448
- var getWindow = function () {
449
- (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
450
- return _cachedWindow.v;
451
- };
452
- var hasNavigator = function () { return !!getNavigator(); };
453
- var getNavigator = function () {
454
- (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
455
- return _cachedNavigator.v;
456
- };
457
- var isNode = function () {
458
- !_isNode && (_isNode = safeGetLazy(function () { return !!(process && (process.versions || {}).node); }, false));
459
- return _isNode.v;
460
- };
440
+ }
441
+ var getDocument = ( /*#__PURE__*/_getGlobalInstFn(getInst, ["document"]));
442
+ /*#__NO_SIDE_EFFECTS__*/
443
+ function hasWindow() {
444
+ return !!getWindow();
445
+ }
446
+ var getWindow = ( /*#__PURE__*/_getGlobalInstFn(getInst, [WINDOW]));
447
+ /*#__NO_SIDE_EFFECTS__*/
448
+ function hasNavigator() {
449
+ return !!getNavigator();
450
+ }
451
+ var getNavigator = ( /*#__PURE__*/_getGlobalInstFn(getInst, ["navigator"]));
452
+ var isNode = ( /*#__PURE__*/_getGlobalInstFn(function () {
453
+ return !!safe(function () { return (process && (process.versions || {}).node); }).v;
454
+ }));
461
455
 
462
456
  var _symbol;
463
457
  var _symbolFor;
464
- var _symbolKeyFor;
465
- function _getSymbolValue(name) {
466
- return safeGetLazy(function () {
467
- return (_symbol.v ? _symbol.v[name] : UNDEF_VALUE);
468
- }, UNDEF_VALUE);
458
+ function _initSymbol() {
459
+ if (!_symbol || !_symbol.b) {
460
+ _symbol = lazySafeGetInst(SYMBOL);
461
+ _symbolFor = safeGetLazy(function () { return (_symbol.v ? _symbol.v["for"] : UNDEF_VALUE); }, UNDEF_VALUE);
462
+ }
469
463
  }
464
+ /*#__NO_SIDE_EFFECTS__*/
470
465
  function hasSymbol() {
471
466
  return !!getSymbol();
472
467
  }
468
+ /*#__NO_SIDE_EFFECTS__*/
473
469
  function getSymbol() {
474
- var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b);
475
- resetCache && (_symbol = lazySafeGetInst(SYMBOL));
476
- (!_symbolFor || resetCache) && (_symbolFor = _getSymbolValue("for"));
477
- (!_symbolKeyFor || resetCache) && (_symbolKeyFor = _getSymbolValue("keyFor"));
470
+ !_globalLazyTestHooks && _initTestHooks();
471
+ (!_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
478
472
  return _symbol.v;
479
473
  }
474
+ /*#__NO_SIDE_EFFECTS__*/
480
475
  function getKnownSymbol(name, noPoly) {
481
476
  var knownName = _wellKnownSymbolMap[name];
482
- (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
477
+ !_globalLazyTestHooks && _initTestHooks();
478
+ (!_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
483
479
  return _symbol.v ? _symbol.v[knownName || name] : (!noPoly ? polyGetKnownSymbol(name) : UNDEF_VALUE);
484
480
  }
481
+ /*#__NO_SIDE_EFFECTS__*/
485
482
  function newSymbol(description, noPoly) {
486
- (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
483
+ !_globalLazyTestHooks && _initTestHooks();
484
+ (!_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
487
485
  return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : NULL_VALUE);
488
486
  }
487
+ /*#__NO_SIDE_EFFECTS__*/
489
488
  function symbolFor(key) {
490
- (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
489
+ !_globalLazyTestHooks && _initTestHooks();
490
+ (!_symbolFor || !_symbol || _globalLazyTestHooks.lzy) && _initSymbol();
491
491
  return (_symbolFor.v || polySymbolFor)(key);
492
492
  }
493
493
 
494
+ /*#__NO_SIDE_EFFECTS__*/
494
495
  function isIterator(value) {
495
496
  return !!value && isFunction(value.next);
496
497
  }
498
+ /*#__NO_SIDE_EFFECTS__*/
497
499
  function isIterable(value) {
498
500
  return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 )]);
499
501
  }
@@ -502,7 +504,7 @@ var _iterSymbol;
502
504
  function iterForOf(iter, callbackfn, thisArg) {
503
505
  if (iter) {
504
506
  if (!isIterator(iter)) {
505
- !_iterSymbol && (_iterSymbol = getLazy(function () { return getKnownSymbol(3 ); }));
507
+ !_iterSymbol && (_iterSymbol = createCachedValue(getKnownSymbol(3 )));
506
508
  iter = iter[_iterSymbol.v] ? iter[_iterSymbol.v]() : null;
507
509
  }
508
510
  if (isIterator(iter)) {
@@ -510,8 +512,8 @@ function iterForOf(iter, callbackfn, thisArg) {
510
512
  var iterResult = void 0;
511
513
  try {
512
514
  var count = 0;
513
- while (!(iterResult = iter.next())[DONE]) {
514
- if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
515
+ while (!(iterResult = iter.next()).done) {
516
+ if (callbackfn[CALL](thisArg || iter, iterResult.value, count, iter) === -1) {
515
517
  break;
516
518
  }
517
519
  count++;
@@ -526,7 +528,7 @@ function iterForOf(iter, callbackfn, thisArg) {
526
528
  }
527
529
  finally {
528
530
  try {
529
- if (iterResult && !iterResult[DONE]) {
531
+ if (iterResult && !iterResult.done) {
530
532
  iter.return && iter.return(iterResult);
531
533
  }
532
534
  }
@@ -540,7 +542,9 @@ function iterForOf(iter, callbackfn, thisArg) {
540
542
  }
541
543
  }
542
544
 
543
- var fnApply = _unwrapInstFunction("apply");
545
+ function fnApply(fn, thisArg, argArray) {
546
+ return fn.apply(thisArg, argArray);
547
+ }
544
548
 
545
549
  function arrAppend(target, elms) {
546
550
  if (!isUndefined(elms) && target) {
@@ -564,7 +568,7 @@ function arrForEach(theArray, callbackfn, thisArg) {
564
568
  var len = theArray[LENGTH] >>> 0;
565
569
  for (var idx = 0; idx < len; idx++) {
566
570
  if (idx in theArray) {
567
- if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
571
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
568
572
  break;
569
573
  }
570
574
  }
@@ -572,21 +576,21 @@ function arrForEach(theArray, callbackfn, thisArg) {
572
576
  }
573
577
  }
574
578
 
575
- var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
579
+ var arrIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", ArrProto));
576
580
 
577
- var arrSlice = _unwrapFunction(SLICE, ArrProto);
578
-
579
- var fnCall = _unwrapInstFunction("call");
581
+ function arrSlice(theArray, start, end) {
582
+ return ((theArray && theArray["slice"]) || ArrSlice).apply(theArray, ArrSlice[CALL](arguments, 1));
583
+ }
580
584
 
581
- var _objCreate = ObjClass["create"];
582
- var objCreate = _objCreate || polyObjCreate;
585
+ var objCreate = ObjClass["create"] || polyObjCreate;
586
+ /*#__NO_SIDE_EFFECTS__*/
583
587
  function polyObjCreate(obj) {
584
588
  if (!obj) {
585
589
  return {};
586
590
  }
587
591
  var type = typeof obj;
588
592
  if (type !== OBJECT && type !== FUNCTION) {
589
- throw new TypeError("Prototype must be an Object or function: " + dumpObj(obj));
593
+ throwTypeError("Prototype must be an Object or function: " + dumpObj(obj));
590
594
  }
591
595
  function tempFunc() { }
592
596
  tempFunc[PROTOTYPE] = obj;
@@ -606,39 +610,31 @@ function objSetPrototypeOf(obj, proto) {
606
610
  return fn(obj, proto);
607
611
  }
608
612
 
609
- var _createCustomError = function (name, d, b) {
610
- _safeDefineName(d, name);
613
+ /*#__NO_SIDE_EFFECTS__*/
614
+ function _createCustomError(name, d, b) {
615
+ safe(objDefine, [d, NAME, { v: name, c: true, e: false }]);
611
616
  d = objSetPrototypeOf(d, b);
612
617
  function __() {
613
618
  this.constructor = d;
614
- _safeDefineName(this, name);
619
+ safe(objDefine, [this, NAME, { v: name, c: true, e: false }]);
615
620
  }
616
621
  d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
617
622
  return d;
618
- };
619
- var _safeSetName = function (baseClass, name) {
620
- try {
621
- name && (baseClass[NAME] = name);
622
- }
623
- catch (e) {
624
- }
625
- };
626
- var _safeDefineName = function (target, name) {
627
- try {
628
- objDefine(target, NAME, { v: name, c: true, e: false });
629
- }
630
- catch (e) {
631
- }
632
- };
623
+ }
624
+ function _setName(baseClass, name) {
625
+ name && (baseClass[NAME] = name);
626
+ }
627
+ /*#__NO_SIDE_EFFECTS__*/
633
628
  function createCustomError(name, constructCb, errorBase) {
634
629
  var theBaseClass = errorBase || Error;
635
630
  var orgName = theBaseClass[PROTOTYPE][NAME];
636
631
  var captureFn = Error.captureStackTrace;
637
632
  return _createCustomError(name, function () {
638
633
  var _this = this;
634
+ var theArgs = arguments;
639
635
  try {
640
- _safeSetName(theBaseClass, name);
641
- var _self = fnApply(theBaseClass, _this, arrSlice(arguments)) || _this;
636
+ safe(_setName, [theBaseClass, name]);
637
+ var _self = fnApply(theBaseClass, _this, ArrSlice[CALL](theArgs)) || _this;
642
638
  if (_self !== _this) {
643
639
  var orgProto = objGetPrototypeOf(_this);
644
640
  if (orgProto !== objGetPrototypeOf(_self)) {
@@ -646,22 +642,25 @@ function createCustomError(name, constructCb, errorBase) {
646
642
  }
647
643
  }
648
644
  captureFn && captureFn(_self, _this[CONSTRUCTOR]);
649
- constructCb && constructCb(_self, arguments);
645
+ constructCb && constructCb(_self, theArgs);
650
646
  return _self;
651
647
  }
652
648
  finally {
653
- _safeSetName(theBaseClass, orgName);
649
+ safe(_setName, [theBaseClass, orgName]);
654
650
  }
655
651
  }, theBaseClass);
656
652
  }
657
653
 
654
+ /*#__NO_SIDE_EFFECTS__*/
658
655
  function utcNow() {
659
656
  return (Date.now || polyUtcNow)();
660
657
  }
658
+ /*#__NO_SIDE_EFFECTS__*/
661
659
  function polyUtcNow() {
662
660
  return new Date().getTime();
663
661
  }
664
662
 
663
+ /*#__NO_SIDE_EFFECTS__*/
665
664
  function _createTrimFn(exp) {
666
665
  return function _doTrim(value) {
667
666
  if (isNullOrUndefined(value)) {
@@ -673,13 +672,14 @@ function _createTrimFn(exp) {
673
672
  return value;
674
673
  };
675
674
  }
676
- var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
675
+ var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
677
676
 
678
- var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
677
+ var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
679
678
 
680
679
  var _fnToString;
681
680
  var _objCtrFnString;
682
681
  var _gblWindow;
682
+ /*#__NO_SIDE_EFFECTS__*/
683
683
  function isPlainObject(value) {
684
684
  if (!value || typeof value !== OBJECT) {
685
685
  return false;
@@ -690,8 +690,8 @@ function isPlainObject(value) {
690
690
  var result = false;
691
691
  if (value !== _gblWindow) {
692
692
  if (!_objCtrFnString) {
693
- _fnToString = Function[PROTOTYPE].toString;
694
- _objCtrFnString = fnCall(_fnToString, ObjClass);
693
+ _fnToString = Function[PROTOTYPE][TO_STRING];
694
+ _objCtrFnString = _fnToString[CALL](ObjClass);
695
695
  }
696
696
  try {
697
697
  var proto = objGetPrototypeOf(value);
@@ -700,7 +700,7 @@ function isPlainObject(value) {
700
700
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
701
701
  proto = proto[CONSTRUCTOR];
702
702
  }
703
- result = proto && typeof proto === FUNCTION && _fnToString.call(proto) === _objCtrFnString;
703
+ result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
704
704
  }
705
705
  }
706
706
  catch (ex) {
@@ -709,71 +709,70 @@ function isPlainObject(value) {
709
709
  return result;
710
710
  }
711
711
 
712
- var _perf;
713
- function getPerformance() {
714
- (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance"));
715
- return _perf.v;
716
- }
712
+ /*#__NO_SIDE_EFFECTS__*/
717
713
  function perfNow() {
718
- var perf = getPerformance();
719
- if (perf && perf.now) {
720
- return perf.now();
721
- }
722
714
  return utcNow();
723
715
  }
724
716
 
725
- var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
717
+ var strIndexOf = ( /*#__PURE__*/_unwrapFunction("indexOf", StrProto));
718
+
719
+ var strStartsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("startsWith", StrProto, polyStrStartsWith));
720
+ /*#__NO_SIDE_EFFECTS__*/
721
+ function polyStrStartsWith(value, searchString, position) {
722
+ if (!isString(value)) {
723
+ throwTypeError("'" + dumpObj(value) + "' is not a string");
724
+ }
725
+ var searchValue = isString(searchString) ? searchString : asString(searchString);
726
+ var pos = position > 0 ? position : 0;
727
+ return strSubstring(value, pos, pos + searchValue[LENGTH]) === searchValue;
728
+ }
726
729
 
727
730
  var REF = "ref";
728
- var UNREF = "un" + REF;
731
+ var UNREF = "unref";
729
732
  var HAS_REF = "hasRef";
730
733
  var ENABLED = "enabled";
734
+ /*#__NO_SIDE_EFFECTS__*/
731
735
  function _createTimerHandler(startTimer, refreshFn, cancelFn) {
732
- var _a;
733
736
  var ref = true;
734
737
  var timerId = startTimer ? refreshFn(NULL_VALUE) : NULL_VALUE;
735
738
  var theTimerHandler;
736
- var _unref = function () {
739
+ function _unref() {
737
740
  ref = false;
738
741
  timerId && timerId[UNREF] && timerId[UNREF]();
739
742
  return theTimerHandler;
740
- };
741
- var _ref = function () {
742
- ref = true;
743
- timerId && timerId[REF] && timerId[REF]();
743
+ }
744
+ function _cancel() {
745
+ timerId && cancelFn(timerId);
746
+ timerId = NULL_VALUE;
747
+ }
748
+ function _refresh() {
749
+ timerId = refreshFn(timerId);
750
+ if (!ref) {
751
+ _unref();
752
+ }
744
753
  return theTimerHandler;
754
+ }
755
+ function _setEnabled(value) {
756
+ !value && timerId && _cancel();
757
+ value && !timerId && _refresh();
758
+ }
759
+ theTimerHandler = {
760
+ cancel: _cancel,
761
+ refresh: _refresh
745
762
  };
746
- var _hasRef = function () {
763
+ theTimerHandler[HAS_REF] = function () {
747
764
  if (timerId && timerId[HAS_REF]) {
748
765
  return timerId[HAS_REF]();
749
766
  }
750
767
  return ref;
751
768
  };
752
- var _refresh = function () {
753
- timerId = refreshFn(timerId);
754
- if (!ref) {
755
- _unref();
756
- }
769
+ theTimerHandler[REF] = function () {
770
+ ref = true;
771
+ timerId && timerId[REF] && timerId[REF]();
757
772
  return theTimerHandler;
758
773
  };
759
- var _cancel = function () {
760
- timerId && cancelFn(timerId);
761
- timerId = NULL_VALUE;
762
- };
763
- var _setEnabled = function (value) {
764
- !value && timerId && _cancel();
765
- value && !timerId && _refresh();
766
- };
767
- theTimerHandler = (_a = {
768
- cancel: _cancel,
769
- refresh: _refresh
770
- },
771
- _a[HAS_REF] = _hasRef,
772
- _a[REF] = _ref,
773
- _a[UNREF] = _unref,
774
- _a[ENABLED] = false,
775
- _a);
776
- objDefineProp(theTimerHandler, ENABLED, {
774
+ theTimerHandler[UNREF] = _unref;
775
+ theTimerHandler = objDefineProp(theTimerHandler, ENABLED, {
777
776
  get: function () { return !!timerId; },
778
777
  set: _setEnabled
779
778
  });
@@ -785,7 +784,7 @@ function _createTimerHandler(startTimer, refreshFn, cancelFn) {
785
784
  };
786
785
  }
787
786
 
788
- function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
787
+ function _createTimeoutWith(startTimer, overrideFn, theArgs) {
789
788
  var isArr = isArray(overrideFn);
790
789
  var len = isArr ? overrideFn.length : 0;
791
790
  var setFn = (len > 0 ? overrideFn[0] : (!isArr ? overrideFn : UNDEF_VALUE)) || setTimeout;
@@ -793,7 +792,7 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
793
792
  var timerFn = theArgs[0];
794
793
  theArgs[0] = function () {
795
794
  handler.dn();
796
- fnApply(timerFn, self, arrSlice(arguments));
795
+ fnApply(timerFn, UNDEF_VALUE, ArrSlice[CALL](arguments));
797
796
  };
798
797
  var handler = _createTimerHandler(startTimer, function (timerId) {
799
798
  if (timerId) {
@@ -801,23 +800,21 @@ function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
801
800
  timerId.refresh();
802
801
  return timerId;
803
802
  }
804
- fnApply(clearFn, self, [timerId]);
803
+ fnApply(clearFn, UNDEF_VALUE, [timerId]);
805
804
  }
806
- return fnApply(setFn, self, theArgs);
805
+ return fnApply(setFn, UNDEF_VALUE, theArgs);
807
806
  }, function (timerId) {
808
- fnApply(clearFn, self, [timerId]);
807
+ fnApply(clearFn, UNDEF_VALUE, [timerId]);
809
808
  });
810
809
  return handler.h;
811
810
  }
812
811
  function scheduleTimeout(callback, timeout) {
813
- return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments));
812
+ return _createTimeoutWith(true, UNDEF_VALUE, ArrSlice[CALL](arguments));
814
813
  }
815
814
  function scheduleTimeoutWith(overrideFn, callback, timeout) {
816
- return _createTimeoutWith(this, true, overrideFn, arrSlice(arguments, 1));
815
+ return _createTimeoutWith(true, overrideFn, ArrSlice[CALL](arguments, 1));
817
816
  }
818
817
 
819
- (getGlobal() || {})["Symbol"];
820
- (getGlobal() || {})["Reflect"];
821
818
  var strHasOwnProperty = "hasOwnProperty";
822
819
  var extendStaticsFn = function (d, b) {
823
820
  extendStaticsFn = ObjClass$1["setPrototypeOf"] ||
@@ -914,13 +911,13 @@ function _forEachProp(target, func) {
914
911
  }
915
912
  }
916
913
  function _isDynamicCandidate(target, funcName, skipOwn) {
917
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)));
914
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype);
918
915
  }
919
916
  function _throwTypeError(message) {
920
917
  throwTypeError("DynamicProto: " + message);
921
918
  }
922
919
  function _getInstanceFuncs(thisTarget) {
923
- var instFuncs = {};
920
+ var instFuncs = objCreate(null);
924
921
  _forEachProp(thisTarget, function (name) {
925
922
  if (!instFuncs[name] && _isDynamicCandidate(thisTarget, name, false)) {
926
923
  instFuncs[name] = thisTarget[name];
@@ -949,7 +946,7 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
949
946
  return theFunc.apply(target, arguments);
950
947
  };
951
948
  }
952
- var baseFuncs = {};
949
+ var baseFuncs = objCreate(null);
953
950
  _forEachProp(instFuncs, function (name) {
954
951
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
955
952
  });
@@ -969,8 +966,8 @@ function _getBaseFuncs(classProto, thisTarget, instFuncs, useBaseInst) {
969
966
  function _getInstFunc(target, funcName, proto, currentDynProtoProxy) {
970
967
  var instFunc = null;
971
968
  if (target && objHasOwnProperty(proto, DynClassName)) {
972
- var instFuncTable = target[DynInstFuncTable] || {};
973
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
969
+ var instFuncTable = target[DynInstFuncTable] || objCreate(null);
970
+ instFunc = (instFuncTable[proto[DynClassName]] || objCreate(null))[funcName];
974
971
  if (!instFunc) {
975
972
  _throwTypeError("Missing [" + funcName + "] " + strFunction);
976
973
  }
@@ -1020,20 +1017,24 @@ function _populatePrototype(proto, className, target, baseInstFuncs, setInstance
1020
1017
  return dynProtoProxy;
1021
1018
  }
1022
1019
  if (!_isObjectOrArrayPrototype(proto)) {
1023
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
1024
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {});
1025
- if (instFuncTable[DynAllowInstChkTag] !== false) {
1026
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
1027
- }
1028
- _forEachProp(target, function (name) {
1029
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
1030
- instFuncs_1[name] = target[name];
1031
- delete target[name];
1032
- if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
1033
- proto[name] = _createDynamicPrototype(proto, name);
1034
- }
1020
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
1021
+ if (!_isObjectOrArrayPrototype(instFuncTable)) {
1022
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null));
1023
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
1024
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
1025
+ }
1026
+ if (!_isObjectOrArrayPrototype(instFuncs_1)) {
1027
+ _forEachProp(target, function (name) {
1028
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
1029
+ instFuncs_1[name] = target[name];
1030
+ delete target[name];
1031
+ if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
1032
+ proto[name] = _createDynamicPrototype(proto, name);
1033
+ }
1034
+ }
1035
+ });
1035
1036
  }
1036
- });
1037
+ }
1037
1038
  }
1038
1039
  }
1039
1040
  function _checkPrototype(classProto, thisTarget) {
@@ -1123,7 +1124,7 @@ var _DYN_GET_PLUGIN = "getPlugin";
1123
1124
  var _DYN_NAME = "name";
1124
1125
  var _DYN_TIME = "time";
1125
1126
  var _DYN_PROCESS_NEXT = "processNext";
1126
- var _DYN_GET_PROCESS_TEL_CONT0 = "getProcessTelContext";
1127
+ var _DYN_GET_PROCESS_TEL_CONT2 = "getProcessTelContext";
1127
1128
  var _DYN_UNLOAD = "unload";
1128
1129
  var _DYN_LOGGING_LEVEL_CONSOL4 = "loggingLevelConsole";
1129
1130
  var _DYN_CREATE_NEW = "createNew";
@@ -1685,7 +1686,7 @@ function newId(maxLength) {
1685
1686
  return result;
1686
1687
  }
1687
1688
 
1688
- var version = '3.0.7-nightly3.2312-05';
1689
+ var version = '3.0.9';
1689
1690
  var instanceName = "." + newId(6);
1690
1691
  var _dataUid = 0;
1691
1692
  function _canAcceptData(target) {
@@ -2244,6 +2245,7 @@ function _createAndUseHandler(state, configHandler) {
2244
2245
  configHandler = null;
2245
2246
  }
2246
2247
  };
2248
+ objDefine(handler, "toJSON", { v: function () { return "WatcherHandler" + (handler.fn ? "" : "[X]"); } });
2247
2249
  state.use(handler, configHandler);
2248
2250
  return handler;
2249
2251
  }
@@ -3200,7 +3202,7 @@ var BaseTelemetryPlugin = /** @class */ (function () {
3200
3202
  function _setDefaults(config, core, pluginChain) {
3201
3203
  createDynamicConfig(config, defaultValues, safeGetLogger(core));
3202
3204
  if (!pluginChain && core) {
3203
- pluginChain = core[_DYN_GET_PROCESS_TEL_CONT0 ]()[_DYN_GET_NEXT ]();
3205
+ pluginChain = core[_DYN_GET_PROCESS_TEL_CONT2 ]()[_DYN_GET_NEXT ]();
3204
3206
  }
3205
3207
  var nextPlugin = _nextPlugin;
3206
3208
  if (_nextPlugin && _nextPlugin[strGetPlugin]) {
@@ -3514,7 +3516,7 @@ var _DYN_LENGTH$1 = "length";
3514
3516
  var _DYN_PROCESS_TELEMETRY_ST0 = "processTelemetryStart";
3515
3517
 
3516
3518
  var _a$1;
3517
- var Version = '4.0.6-nightly3.2312-05';
3519
+ var Version = '4.0.7';
3518
3520
  var FullVersionString = "1DS-Web-JS-" + Version;
3519
3521
  var ObjHasOwnProperty = ObjProto$1.hasOwnProperty;
3520
3522
  var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
@@ -3529,8 +3531,6 @@ var _fieldTypeEventPropMap = (_a$1 = {},
3529
3531
  _a$1[4096 | 1 ] = 1 ,
3530
3532
  _a$1[4096 | 3 ] = 7 ,
3531
3533
  _a$1);
3532
- hasDocument();
3533
- hasWindow();
3534
3534
  function isValueAssigned(value) {
3535
3535
  return !(value === STR_EMPTY$1 || isNullOrUndefined(value));
3536
3536
  }
@@ -5308,7 +5308,7 @@ var PostChannel = /** @class */ (function (_super) {
5308
5308
  var _this = _super.call(this) || this;
5309
5309
  _this.identifier = "PostChannel";
5310
5310
  _this.priority = 1011;
5311
- _this.version = '4.0.6-nightly3.2312-05';
5311
+ _this.version = '4.0.7';
5312
5312
  var _postConfig;
5313
5313
  var _isTeardownCalled = false;
5314
5314
  var _flushCallbackQueue = [];
@@ -6025,4 +6025,4 @@ exports.PostChannel = PostChannel;
6025
6025
  exports.RT_PROFILE = RT_PROFILE;
6026
6026
 
6027
6027
  }));
6028
- //# sourceMappingURL=ms.post-4.0.6-nightly3.2312-05.js.map
6028
+ //# sourceMappingURL=ms.post-4.0.7.js.map