azure-maps-control 3.1.0 → 3.1.1

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.
package/dist/atlas.js CHANGED
@@ -51096,7 +51096,7 @@ uniform ${precision} ${type} u_${name};
51096
51096
  return Url;
51097
51097
  }());
51098
51098
 
51099
- var version$3 = "3.1.0";
51099
+ var version$3 = "3.1.1";
51100
51100
 
51101
51101
  /**
51102
51102
  * A helper class that provides methods for getting various forms of the map controls current version.
@@ -68176,12 +68176,12 @@ uniform ${precision} ${type} u_${name};
68176
68176
  var SYMBOL = "Symbol";
68177
68177
  var POLYFILL_TAG = "_polyfill";
68178
68178
  var INDEX_OF = "indexOf";
68179
- var LAST_INDEX_OF = "lastIndexOf";
68180
68179
  var LENGTH = "length";
68181
68180
  var DONE = "done";
68182
68181
  var VALUE = "value";
68183
68182
  var NAME = "name";
68184
68183
  var SLICE = "slice";
68184
+ var CALL = "call";
68185
68185
  /**
68186
68186
  * @ignore
68187
68187
  */
@@ -68265,6 +68265,7 @@ uniform ${precision} ${type} u_${name};
68265
68265
  * @param theType - The type to match against the `typeof value`
68266
68266
  * @returns A function which takes a single argument and returns a boolean
68267
68267
  */
68268
+ /*#__NO_SIDE_EFFECTS__*/
68268
68269
  function _createIs(theType) {
68269
68270
  return function (value) {
68270
68271
  return typeof value === theType;
@@ -68278,6 +68279,7 @@ uniform ${precision} ${type} u_${name};
68278
68279
  * @param - The object name to match for the `objToString(value)`
68279
68280
  * @returns A function which takes a single argument and returns a boolean
68280
68281
  */
68282
+ /*#__NO_SIDE_EFFECTS__*/
68281
68283
  function _createObjIs(theName) {
68282
68284
  var theType = "[object " + theName + "]";
68283
68285
  return function (value) {
@@ -68307,8 +68309,9 @@ uniform ${precision} ${type} u_${name};
68307
68309
  * objToString(null); // [object Null]
68308
68310
  * ```
68309
68311
  */
68312
+ /*#__NO_SIDE_EFFECTS__*/
68310
68313
  function objToString(value) {
68311
- return ObjProto$1.toString.call(value);
68314
+ return ObjProto$1.toString[CALL](value);
68312
68315
  }
68313
68316
  /**
68314
68317
  * Checks if the provided value is undefined or contains the string value "undefined",
@@ -68359,6 +68362,7 @@ uniform ${precision} ${type} u_${name};
68359
68362
  * isUndefined(polyObjCreate(null)); // false
68360
68363
  * ```
68361
68364
  */
68365
+ /*#__NO_SIDE_EFFECTS__*/
68362
68366
  function isUndefined(value) {
68363
68367
  return typeof value === UNDEFINED || value === UNDEFINED;
68364
68368
  }
@@ -68386,6 +68390,7 @@ uniform ${precision} ${type} u_${name};
68386
68390
  * isNullOrUndefined(false); // false
68387
68391
  * ```
68388
68392
  */
68393
+ /*#__NO_SIDE_EFFECTS__*/
68389
68394
  function isNullOrUndefined(value) {
68390
68395
  return value === NULL_VALUE || isUndefined(value);
68391
68396
  }
@@ -68414,6 +68419,7 @@ uniform ${precision} ${type} u_${name};
68414
68419
  * isStrictNullOrUndefined(false); // false
68415
68420
  * ```
68416
68421
  */
68422
+ /*#__NO_SIDE_EFFECTS__*/
68417
68423
  function isStrictNullOrUndefined(value) {
68418
68424
  return value === NULL_VALUE || !isDefined(value);
68419
68425
  }
@@ -68441,6 +68447,7 @@ uniform ${precision} ${type} u_${name};
68441
68447
  * isDefined(false); // true
68442
68448
  * ```
68443
68449
  */
68450
+ /*#__NO_SIDE_EFFECTS__*/
68444
68451
  function isDefined(arg) {
68445
68452
  return !!arg || arg !== UNDEF_VALUE;
68446
68453
  }
@@ -68491,9 +68498,10 @@ uniform ${precision} ${type} u_${name};
68491
68498
  * isPrimitiveType("bigint"); // true
68492
68499
  * ```
68493
68500
  */
68494
- var isPrimitiveType = function (theType) {
68501
+ /*#__NO_SIDE_EFFECTS__*/
68502
+ function isPrimitiveType(theType) {
68495
68503
  return theType !== OBJECT && PRIMITIVE_TYPES.indexOf(theType) !== -1;
68496
- };
68504
+ }
68497
68505
  /**
68498
68506
  * Checks to see if the past value is a string value
68499
68507
  * @group Type Identity
@@ -68512,7 +68520,7 @@ uniform ${precision} ${type} u_${name};
68512
68520
  * isString(0); // false
68513
68521
  * ```
68514
68522
  */
68515
- var isString = _createIs(STRING);
68523
+ var isString = ( /*#__PURE__*/_createIs(STRING));
68516
68524
  /**
68517
68525
  * Checks to see if the past value is a function value
68518
68526
  * @group Type Identity
@@ -68535,7 +68543,7 @@ uniform ${precision} ${type} u_${name};
68535
68543
  * isFunction(new Array(1)); // false
68536
68544
  * ```
68537
68545
  */
68538
- var isFunction = _createIs(FUNCTION);
68546
+ var isFunction = ( /*#__PURE__*/_createIs(FUNCTION));
68539
68547
  /**
68540
68548
  * Checks to see if the past value is an object value
68541
68549
  * @group Type Identity
@@ -68544,6 +68552,7 @@ uniform ${precision} ${type} u_${name};
68544
68552
  * @param value - The value to check
68545
68553
  * @returns
68546
68554
  */
68555
+ /*#__NO_SIDE_EFFECTS__*/
68547
68556
  function isObject(value) {
68548
68557
  if (!value && isNullOrUndefined(value)) {
68549
68558
  return false;
@@ -68587,21 +68596,21 @@ uniform ${precision} ${type} u_${name};
68587
68596
  * }
68588
68597
  * ```
68589
68598
  */
68590
- var isDate = _createObjIs("Date");
68599
+ var isDate = ( /*#__PURE__*/_createObjIs("Date"));
68591
68600
  /**
68592
68601
  * Checks if the type of value is a number.
68593
68602
  * @group Type Identity
68594
68603
  * @param {any} value - Value to be checked.
68595
68604
  * @return {boolean} True if the value is a number, false otherwise.
68596
68605
  */
68597
- var isNumber = _createIs(NUMBER);
68606
+ var isNumber = ( /*#__PURE__*/_createIs(NUMBER));
68598
68607
  /**
68599
68608
  * Checks if the type of value is a boolean.
68600
68609
  * @group Type Identity
68601
68610
  * @param {any} value - Value to be checked.
68602
68611
  * @return {boolean} True if the value is a boolean, false otherwise.
68603
68612
  */
68604
- var isBoolean = _createIs(BOOLEAN);
68613
+ var isBoolean = ( /*#__PURE__*/_createIs(BOOLEAN));
68605
68614
  /**
68606
68615
  * Checks if the type of value is a Error object.
68607
68616
  * @group Type Identity
@@ -68609,15 +68618,16 @@ uniform ${precision} ${type} u_${name};
68609
68618
  * @param {any} value - Value to be checked.
68610
68619
  * @return {boolean} True if the value is a Error, false otherwise.
68611
68620
  */
68612
- var isError = _createObjIs("Error");
68621
+ var isError = ( /*#__PURE__*/_createObjIs("Error"));
68613
68622
  /**
68614
68623
  * Checks if the type of value is a PromiseLike instance (contains a then function).
68615
68624
  * @group Type Identity
68616
68625
  * @param {any} value - Value to be checked.
68617
68626
  * @return {boolean} True if the value is a PromiseLike, false otherwise.
68618
68627
  */
68628
+ /*#__NO_SIDE_EFFECTS__*/
68619
68629
  function isPromiseLike(value) {
68620
- return !!value && isFunction(value.then);
68630
+ return !!(value && value.then && isFunction(value.then));
68621
68631
  }
68622
68632
  /**
68623
68633
  * Checks if the type of value evaluates to true value, handling some special
@@ -68626,6 +68636,7 @@ uniform ${precision} ${type} u_${name};
68626
68636
  * @param {any} value - Value to be checked.
68627
68637
  * @return {boolean} True if the value is not truthy, false otherwise.
68628
68638
  */
68639
+ /*#__NO_SIDE_EFFECTS__*/
68629
68640
  function isTruthy(value) {
68630
68641
  // Objects created with no prototype (Object.create(null)) cannot be converted to primitives
68631
68642
  // Which causes this code to throw, additionally just using !! also fails for Boolean objects
@@ -68721,8 +68732,9 @@ uniform ${precision} ${type} u_${name};
68721
68732
  * objHasOwnProperty(example, 'prop'); // true - own property exists with value of undefined
68722
68733
  * ```
68723
68734
  */
68735
+ /*#__NO_SIDE_EFFECTS__*/
68724
68736
  function objHasOwnProperty(obj, prop) {
68725
- return obj && ObjProto$1.hasOwnProperty.call(obj, prop);
68737
+ return obj && ObjProto$1.hasOwnProperty[CALL](obj, prop);
68726
68738
  }
68727
68739
 
68728
68740
  /*
@@ -68806,6 +68818,7 @@ uniform ${precision} ${type} u_${name};
68806
68818
  * polyObjHasOwn(example, 'prop'); // true - own property exists with value of undefined
68807
68819
  * ```
68808
68820
  */
68821
+ /*#__NO_SIDE_EFFECTS__*/
68809
68822
  function polyObjHasOwn(obj, prop) {
68810
68823
  return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
68811
68824
  }
@@ -68844,7 +68857,7 @@ uniform ${precision} ${type} u_${name};
68844
68857
  if (theObject && isObject(theObject)) {
68845
68858
  for (var prop in theObject) {
68846
68859
  if (objHasOwn(theObject, prop)) {
68847
- if (callbackfn.call(thisArg || theObject, prop, theObject[prop]) === -1) {
68860
+ if (callbackfn[CALL](thisArg || theObject, prop, theObject[prop]) === -1) {
68848
68861
  break;
68849
68862
  }
68850
68863
  }
@@ -68869,6 +68882,7 @@ uniform ${precision} ${type} u_${name};
68869
68882
  * @param completeFn - The function to call to complete the map (used to freeze the instance)
68870
68883
  * @returns
68871
68884
  */
68885
+ /*#__NO_SIDE_EFFECTS__*/
68872
68886
  function _createKeyValueMap(values, keyType, valueType, completeFn) {
68873
68887
  var theMap = {};
68874
68888
  objForEachKey(values, function (key, value) {
@@ -68910,8 +68924,13 @@ uniform ${precision} ${type} u_${name};
68910
68924
  * Licensed under the MIT license.
68911
68925
  */
68912
68926
  var _objFreeze = ObjClass$1["freeze"];
68913
- var _doNothing = function (value) { return value; };
68914
- var _getProto = function (value) { return value[__PROTO__] || NULL_VALUE; };
68927
+ function _doNothing(value) {
68928
+ return value;
68929
+ }
68930
+ /*#__NO_SIDE_EFFECTS__*/
68931
+ function _getProto(value) {
68932
+ return value[__PROTO__] || NULL_VALUE;
68933
+ }
68915
68934
  /**
68916
68935
  * The `objAssign()` method copies all enumerable own properties from one or more source objects
68917
68936
  * to a target object. It returns the modified target object.
@@ -68984,6 +69003,7 @@ uniform ${precision} ${type} u_${name};
68984
69003
  * console.log(objKeys(myObj)); // console: ['foo']
68985
69004
  * ```
68986
69005
  */
69006
+ /*#__NO_SIDE_EFFECTS__*/
68987
69007
  function objKeys(value) {
68988
69008
  if (!isObject(value) || value === NULL_VALUE) {
68989
69009
  throwTypeError("objKeys called on non-object");
@@ -69076,6 +69096,7 @@ uniform ${precision} ${type} u_${name};
69076
69096
  * @typeParam E - Identifies the const enum type being mapped
69077
69097
  * @returns A new frozen (immutable) object which looks and acts like a TypeScript Enum class.
69078
69098
  */
69099
+ /*#__NO_SIDE_EFFECTS__*/
69079
69100
  function createEnum(values) {
69080
69101
  return _createKeyValueMap(values, 1 /* eMapValues.Value */, 0 /* eMapValues.Key */, objDeepFreeze);
69081
69102
  }
@@ -69113,6 +69134,7 @@ uniform ${precision} ${type} u_${name};
69113
69134
  * @typeParam E - Identifies the const enum type being mapped
69114
69135
  * @returns A new frozen (immutable) object which contains a property for each key and value that returns the value.
69115
69136
  */
69137
+ /*#__NO_SIDE_EFFECTS__*/
69116
69138
  function createEnumKeyMap(values) {
69117
69139
  return _createKeyValueMap(values, 0 /* eMapValues.Key */, 0 /* eMapValues.Key */, objDeepFreeze);
69118
69140
  }
@@ -69148,6 +69170,7 @@ uniform ${precision} ${type} u_${name};
69148
69170
  * @typeParam V - Identifies the type of the mapping `string`; `number`; etc is not restructed to primitive types.
69149
69171
  * @returns A new frozen (immutable) object which contains a property for each key and value that returns the defiend mapped value.
69150
69172
  */
69173
+ /*#__NO_SIDE_EFFECTS__*/
69151
69174
  function createSimpleMap(values) {
69152
69175
  var mapClass = {};
69153
69176
  objForEachKey(values, function (key, value) {
@@ -69228,6 +69251,7 @@ uniform ${precision} ${type} u_${name};
69228
69251
  * @typeParam T - Identifies the return type that is being created via the mapping.
69229
69252
  * @returns A new frozen (immutable) object which contains a property for each key and value that returns the defined mapped value.
69230
69253
  */
69254
+ /*#__NO_SIDE_EFFECTS__*/
69231
69255
  function createTypeMap(values) {
69232
69256
  return createSimpleMap(values);
69233
69257
  }
@@ -69243,7 +69267,7 @@ uniform ${precision} ${type} u_${name};
69243
69267
  * @ignore
69244
69268
  * @internal
69245
69269
  */
69246
- var _wellKnownSymbolMap = createEnumKeyMap({
69270
+ var _wellKnownSymbolMap = /*#__PURE__*/ createEnumKeyMap({
69247
69271
  asyncIterator: 0 /* WellKnownSymbols.asyncIterator */,
69248
69272
  hasInstance: 1 /* WellKnownSymbols.hasInstance */,
69249
69273
  isConcatSpreadable: 2 /* WellKnownSymbols.isConcatSpreadable */,
@@ -69302,6 +69326,7 @@ uniform ${precision} ${type} u_${name};
69302
69326
  * Helper to get the current global value
69303
69327
  * @returns
69304
69328
  */
69329
+ /*#__NO_SIDE_EFFECTS__*/
69305
69330
  function _getGlobalValue() {
69306
69331
  var result;
69307
69332
  if (typeof globalThis !== UNDEFINED) {
@@ -69325,6 +69350,7 @@ uniform ${precision} ${type} u_${name};
69325
69350
  * multiple modules. Primarily used for poly symbol and test hooks.
69326
69351
  * @returns The globally registered value.
69327
69352
  */
69353
+ /*#__NO_SIDE_EFFECTS__*/
69328
69354
  function _getGlobalConfig() {
69329
69355
  if (!_globalCfg) {
69330
69356
  var gbl = _getGlobalValue() || {};
@@ -69350,6 +69376,7 @@ uniform ${precision} ${type} u_${name};
69350
69376
  * - 'number' - The number of spaces to format with
69351
69377
  * - `false` (or not Truthy) - Do not format
69352
69378
  */
69379
+ /*#__NO_SIDE_EFFECTS__*/
69353
69380
  function dumpObj(object, format) {
69354
69381
  var propertyValueDump = EMPTY;
69355
69382
  if (isError(object)) {
@@ -69374,10 +69401,10 @@ uniform ${precision} ${type} u_${name};
69374
69401
  * Copyright (c) 2022 Nevware21
69375
69402
  * Licensed under the MIT license.
69376
69403
  */
69377
- var _arrSlice = ArrProto[SLICE];
69378
- var _throwMissingFunction = function (funcName, thisArg) {
69404
+ var _slice;
69405
+ function _throwMissingFunction(funcName, thisArg) {
69379
69406
  throwTypeError("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
69380
- };
69407
+ }
69381
69408
  /**
69382
69409
  * @internal
69383
69410
  * @ignore
@@ -69388,11 +69415,13 @@ uniform ${precision} ${type} u_${name};
69388
69415
  * @param funcName - The function name to call on the first argument passed to the wrapped function
69389
69416
  * @returns A function which will call the funcName against the first passed argument and pass on the remaining arguments
69390
69417
  */
69391
- var _unwrapInstFunction = function (funcName) {
69418
+ /*#__NO_SIDE_EFFECTS__*/
69419
+ function _unwrapInstFunction(funcName) {
69420
+ _slice = _slice || ArrProto[SLICE];
69392
69421
  return function (thisArg) {
69393
- return thisArg[funcName].apply(thisArg, _arrSlice.call(arguments, 1));
69422
+ return thisArg[funcName].apply(thisArg, _slice[CALL](arguments, 1));
69394
69423
  };
69395
- };
69424
+ }
69396
69425
  /**
69397
69426
  * @internal
69398
69427
  * @ignore
@@ -69401,16 +69430,18 @@ uniform ${precision} ${type} u_${name};
69401
69430
  * @param clsProto - The Class or class prototype to fallback to if the instance doesn't have the function.
69402
69431
  * @returns A function which will call the funcName against the first passed argument and pass on the remaining arguments
69403
69432
  */
69404
- var _unwrapFunction = function (funcName, clsProto) {
69433
+ /*#__NO_SIDE_EFFECTS__*/
69434
+ function _unwrapFunction(funcName, clsProto) {
69435
+ _slice = _slice || ArrProto[SLICE];
69405
69436
  var clsFn = clsProto && clsProto[funcName];
69406
69437
  return function (thisArg) {
69407
69438
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
69408
69439
  if (theFunc) {
69409
- return theFunc.apply(thisArg, _arrSlice.call(arguments, 1));
69440
+ return theFunc.apply(thisArg, _slice[CALL](arguments, 1));
69410
69441
  }
69411
69442
  _throwMissingFunction(funcName, thisArg);
69412
69443
  };
69413
- };
69444
+ }
69414
69445
  /**
69415
69446
  * @internal
69416
69447
  * @ignore
@@ -69420,17 +69451,19 @@ uniform ${precision} ${type} u_${name};
69420
69451
  * @param polyFunc - The function to call if not available on the thisArg, act like the polyfill
69421
69452
  * @returns A function which will call the funcName against the first passed argument and pass on the remaining arguments
69422
69453
  */
69423
- var _unwrapFunctionWithPoly = function (funcName, clsProto, polyFunc) {
69454
+ /*#__NO_SIDE_EFFECTS__*/
69455
+ function _unwrapFunctionWithPoly(funcName, clsProto, polyFunc) {
69456
+ _slice = _slice || ArrProto[SLICE];
69424
69457
  var clsFn = clsProto && clsProto[funcName];
69425
69458
  return function (thisArg) {
69426
69459
  var theFunc = (thisArg && thisArg[funcName]) || clsFn;
69427
69460
  if (theFunc || polyFunc) {
69428
69461
  var theArgs = arguments;
69429
- return (theFunc || polyFunc).apply(thisArg, theFunc ? _arrSlice.call(theArgs, 1) : theArgs);
69462
+ return (theFunc || polyFunc).apply(thisArg, theFunc ? _slice[CALL](theArgs, 1) : theArgs);
69430
69463
  }
69431
69464
  _throwMissingFunction(funcName, thisArg);
69432
69465
  };
69433
- };
69466
+ }
69434
69467
  /**
69435
69468
  * @internal
69436
69469
  * @ignore
@@ -69441,6 +69474,7 @@ uniform ${precision} ${type} u_${name};
69441
69474
  * @param propName - The property name
69442
69475
  * @returns The value of the property
69443
69476
  */
69477
+ /*#__NO_SIDE_EFFECTS__*/
69444
69478
  function _unwrapProp(propName) {
69445
69479
  return function (thisArg) {
69446
69480
  return thisArg[propName];
@@ -69512,7 +69546,7 @@ uniform ${precision} ${type} u_${name};
69512
69546
  * returns "". (E.g `strSlice("test", 2, -10)`, strSlice("test", -1, -2)` or `strSlice("test", 3, 2)`).
69513
69547
  * @returns A new string containing the extracted section of the string.
69514
69548
  */
69515
- var strSlice = _unwrapFunction(SLICE, StrProto);
69549
+ var strSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, StrProto));
69516
69550
 
69517
69551
  /*
69518
69552
  * @nevware21/ts-utils
@@ -69563,7 +69597,7 @@ uniform ${precision} ${type} u_${name};
69563
69597
  * console.log(strSubstring(anyString, 0, 10));
69564
69598
  * ```
69565
69599
  */
69566
- var strSubstring = _unwrapFunction("substring", StrProto);
69600
+ var strSubstring = ( /*#__PURE__*/_unwrapFunction("substring", StrProto));
69567
69601
  /**
69568
69602
  * The strSubstr() method returns a portion of the string, starting at the specified index and extending for a given
69569
69603
  * number of characters afterwards.
@@ -69575,7 +69609,7 @@ uniform ${precision} ${type} u_${name};
69575
69609
  * @param length - The number of characters to extract.
69576
69610
  * @returns A new string containing the specified part of the given string.
69577
69611
  */
69578
- var strSubstr = _unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr);
69612
+ var strSubstr = ( /*#__PURE__*/_unwrapFunctionWithPoly("substr", StrProto, polyStrSubstr));
69579
69613
  /**
69580
69614
  * The polyStrSubstr() method returns a portion of the string, starting at the specified index and extending for a given
69581
69615
  * number of characters afterwards.
@@ -69588,6 +69622,7 @@ uniform ${precision} ${type} u_${name};
69588
69622
  * @param length - The number of characters to extract.
69589
69623
  * @returns A new string containing the specified part of the given string.
69590
69624
  */
69625
+ /*#__NO_SIDE_EFFECTS__*/
69591
69626
  function polyStrSubstr(value, start, length) {
69592
69627
  if (isNullOrUndefined(value)) {
69593
69628
  throwTypeError("'polyStrSubstr called with invalid " + dumpObj(value));
@@ -69629,6 +69664,7 @@ uniform ${precision} ${type} u_${name};
69629
69664
  * strLeft("Nevware21", 21); // "Nevware21"
69630
69665
  * ```
69631
69666
  */
69667
+ /*#__NO_SIDE_EFFECTS__*/
69632
69668
  function strLeft(value, count) {
69633
69669
  return strSubstring(value, 0, count);
69634
69670
  }
@@ -69642,6 +69678,7 @@ uniform ${precision} ${type} u_${name};
69642
69678
  */
69643
69679
  var UNIQUE_REGISTRY_ID = "_urid";
69644
69680
  var _polySymbols;
69681
+ /*#__NO_SIDE_EFFECTS__*/
69645
69682
  function _globalSymbolRegistry() {
69646
69683
  if (!_polySymbols) {
69647
69684
  var gblCfg = _getGlobalConfig();
@@ -69649,7 +69686,7 @@ uniform ${precision} ${type} u_${name};
69649
69686
  }
69650
69687
  return _polySymbols;
69651
69688
  }
69652
- var _wellKnownSymbolCache = {};
69689
+ var _wellKnownSymbolCache;
69653
69690
  /**
69654
69691
  * Returns a new (polyfill) Symbol object for the provided description that's guaranteed to be unique.
69655
69692
  * Symbols are often used to add unique property keys to an object that won't collide with keys any
@@ -69661,6 +69698,7 @@ uniform ${precision} ${type} u_${name};
69661
69698
  * @param description - The description of the symbol
69662
69699
  * @returns A new polyfill version of a Symbol object
69663
69700
  */
69701
+ /*#__NO_SIDE_EFFECTS__*/
69664
69702
  function polyNewSymbol(description) {
69665
69703
  var theSymbol = {
69666
69704
  description: asString(description),
@@ -69677,6 +69715,7 @@ uniform ${precision} ${type} u_${name};
69677
69715
  * @group Symbol
69678
69716
  * @param key key to search for.
69679
69717
  */
69718
+ /*#__NO_SIDE_EFFECTS__*/
69680
69719
  function polySymbolFor(key) {
69681
69720
  var registry = _globalSymbolRegistry();
69682
69721
  if (!objHasOwn(registry.k, key)) {
@@ -69708,7 +69747,9 @@ uniform ${precision} ${type} u_${name};
69708
69747
  * @param name - The property name to return (if it exists) for Symbol
69709
69748
  * @returns The value of the property if present
69710
69749
  */
69750
+ /*#__NO_SIDE_EFFECTS__*/
69711
69751
  function polyGetKnownSymbol(name) {
69752
+ !_wellKnownSymbolCache && (_wellKnownSymbolCache = {});
69712
69753
  var result;
69713
69754
  var knownName = _wellKnownSymbolMap[name];
69714
69755
  if (knownName) {
@@ -69744,6 +69785,7 @@ uniform ${precision} ${type} u_${name};
69744
69785
  * @param value - The prop descriptor to convert
69745
69786
  * @returns
69746
69787
  */
69788
+ /*#__NO_SIDE_EFFECTS__*/
69747
69789
  function _createProp(value) {
69748
69790
  var prop = {};
69749
69791
  prop[propMap["c"]] = true;
@@ -69935,7 +69977,7 @@ uniform ${precision} ${type} u_${name};
69935
69977
  * @group Environment
69936
69978
  * @group Lazy
69937
69979
  * @group Safe
69938
- * @param name The name of the global object to get.
69980
+ * @param name The name of the global object to get, may be any valid PropertyKey (string, number or symbol)
69939
69981
  * @returns A new readonly {@link ILazyValue} instance which will lazily attempt to return the globally
69940
69982
  * available named instance.
69941
69983
  * @example
@@ -69953,7 +69995,10 @@ uniform ${precision} ${type} u_${name};
69953
69995
  * // otherwise the Promise class.
69954
69996
  * ```
69955
69997
  */
69956
- var lazySafeGetInst = function (name) { return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE); };
69998
+ /*#__NO_SIDE_EFFECTS__*/
69999
+ function lazySafeGetInst(name) {
70000
+ return safeGetLazy(function () { return getInst(name) || UNDEF_VALUE; }, UNDEF_VALUE);
70001
+ }
69957
70002
  /**
69958
70003
  * Returns the current global scope object, for a normal web page this will be the current
69959
70004
  * window, for a Web Worker this will be current worker global scope via "self". The internal
@@ -69970,14 +70015,15 @@ uniform ${precision} ${type} u_${name};
69970
70015
  * @param useCached - [Optional] used for testing to bypass the cached lookup, when `true` this will
69971
70016
  * cause the cached global to be reset.
69972
70017
  */
69973
- var getGlobal = function (useCached) {
70018
+ /*#__NO_SIDE_EFFECTS__*/
70019
+ function getGlobal(useCached) {
69974
70020
  (!_cachedGlobal || useCached === false || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = safeGetLazy(_getGlobalValue, NULL_VALUE));
69975
70021
  return _cachedGlobal.v;
69976
- };
70022
+ }
69977
70023
  /**
69978
70024
  * Return the named global object if available, will return null if the object is not available.
69979
70025
  * @group Environment
69980
- * @param name The globally named object
70026
+ * @param name The globally named object, may be any valid property key (string, number or symbol)
69981
70027
  * @param useCached - [Optional] used for testing to bypass the cached lookup, when `true` this will
69982
70028
  * cause the cached global to be reset.
69983
70029
  * @example
@@ -69995,7 +70041,8 @@ uniform ${precision} ${type} u_${name};
69995
70041
  * // otherwise the Promise class.
69996
70042
  * ```
69997
70043
  */
69998
- var getInst = function (name, useCached) {
70044
+ /*#__NO_SIDE_EFFECTS__*/
70045
+ function getInst(name, useCached) {
69999
70046
  var gbl = (!_cachedGlobal || useCached === false) ? getGlobal(useCached) : _cachedGlobal.v;
70000
70047
  if (gbl && gbl[name]) {
70001
70048
  return gbl[name];
@@ -70006,85 +70053,101 @@ uniform ${precision} ${type} u_${name};
70006
70053
  return _cachedWindow.v;
70007
70054
  }
70008
70055
  return NULL_VALUE;
70009
- };
70056
+ }
70010
70057
  /**
70011
70058
  * Identify whether the runtime contains a `document` object
70012
70059
  * @group Environment
70013
70060
  * @returns - True if a `document` exists
70014
70061
  */
70015
- var hasDocument = function () { return !!getDocument(); };
70062
+ /*#__NO_SIDE_EFFECTS__*/
70063
+ function hasDocument() {
70064
+ return !!getDocument();
70065
+ }
70016
70066
  /**
70017
70067
  * Return the global `document` instance.
70018
70068
  * @group Environment
70019
70069
  * @returns
70020
70070
  */
70021
- var getDocument = function () {
70071
+ /*#__NO_SIDE_EFFECTS__*/
70072
+ function getDocument() {
70022
70073
  (!_cachedDocument || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = lazySafeGetInst("document"));
70023
70074
  return _cachedDocument.v;
70024
- };
70075
+ }
70025
70076
  /**
70026
70077
  * Identify whether the runtime contains a `window` object
70027
70078
  * @group Environment
70028
70079
  * @returns
70029
70080
  */
70030
- var hasWindow = function () { return !!getWindow(); };
70081
+ /*#__NO_SIDE_EFFECTS__*/
70082
+ function hasWindow() {
70083
+ return !!getWindow();
70084
+ }
70031
70085
  /**
70032
70086
  * Return the global `window` instance.
70033
70087
  * @group Environment
70034
70088
  * @returns
70035
70089
  */
70036
- var getWindow = function () {
70090
+ /*#__NO_SIDE_EFFECTS__*/
70091
+ function getWindow() {
70037
70092
  (!_cachedWindow || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = lazySafeGetInst(WINDOW));
70038
70093
  return _cachedWindow.v;
70039
- };
70094
+ }
70040
70095
  /**
70041
70096
  * Identify whether the runtimne contains a `navigator` object
70042
70097
  * @group Environment
70043
70098
  * @returns
70044
70099
  */
70045
- var hasNavigator = function () { return !!getNavigator(); };
70100
+ /*#__NO_SIDE_EFFECTS__*/
70101
+ function hasNavigator() {
70102
+ return !!getNavigator();
70103
+ }
70046
70104
  /**
70047
70105
  * Returns the global `navigator` instance
70048
70106
  * @group Environment
70049
70107
  * @returns
70050
70108
  */
70051
- var getNavigator = function () {
70109
+ /*#__NO_SIDE_EFFECTS__*/
70110
+ function getNavigator() {
70052
70111
  (!_cachedNavigator || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = lazySafeGetInst("navigator"));
70053
70112
  return _cachedNavigator.v;
70054
- };
70113
+ }
70055
70114
  /**
70056
70115
  * Identifies whether the runtime contains a `history` object
70057
70116
  * @group Environment
70058
70117
  * @returns
70059
70118
  */
70060
- var hasHistory = function () { return !!getHistory(); };
70119
+ /*#__NO_SIDE_EFFECTS__*/
70120
+ function hasHistory() {
70121
+ return !!getHistory();
70122
+ }
70061
70123
  /**
70062
70124
  * Returns the global `history` instance
70063
70125
  * @group Environment
70064
70126
  * @returns
70065
70127
  */
70066
- var getHistory = function () {
70128
+ /*#__NO_SIDE_EFFECTS__*/
70129
+ function getHistory() {
70067
70130
  (!_cachedHistory || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = lazySafeGetInst("history"));
70068
70131
  return _cachedHistory.v;
70069
- };
70132
+ }
70070
70133
  /**
70071
70134
  * Simple method to determine if we are running in a node environment
70072
70135
  * @group Environment
70073
70136
  * @returns True if you are
70074
70137
  */
70075
- var isNode = function () {
70138
+ function isNode() {
70076
70139
  !_isNode && (_isNode = safeGetLazy(function () { return !!(process && (process.versions || {}).node); }, false));
70077
70140
  return _isNode.v;
70078
- };
70141
+ }
70079
70142
  /**
70080
70143
  * Helper to identify if you are running as a Dedicated, Shared or Service worker
70081
70144
  * @group Environment
70082
70145
  * @returns True if the environment you are in looks like a Web Worker
70083
70146
  */
70084
- var isWebWorker = function () {
70147
+ function isWebWorker() {
70085
70148
  !_isWebWorker && (_isWebWorker = safeGetLazy(function () { return !!(self && self instanceof WorkerGlobalScope); }, false));
70086
70149
  return _isWebWorker.v;
70087
- };
70150
+ }
70088
70151
 
70089
70152
  /*
70090
70153
  * @nevware21/ts-utils
@@ -70095,7 +70158,7 @@ uniform ${precision} ${type} u_${name};
70095
70158
  */
70096
70159
  var _symbol;
70097
70160
  var _symbolFor;
70098
- var _symbolKeyFor;
70161
+ /*#__NO_SIDE_EFFECTS__*/
70099
70162
  function _getSymbolValue(name) {
70100
70163
  return safeGetLazy(function () {
70101
70164
  return (_symbol.v ? _symbol.v[name] : UNDEF_VALUE);
@@ -70106,6 +70169,7 @@ uniform ${precision} ${type} u_${name};
70106
70169
  * @group Symbol
70107
70170
  * @returns true if Symbol's are support otherwise false
70108
70171
  */
70172
+ /*#__NO_SIDE_EFFECTS__*/
70109
70173
  function hasSymbol() {
70110
70174
  return !!getSymbol();
70111
70175
  }
@@ -70118,7 +70182,6 @@ uniform ${precision} ${type} u_${name};
70118
70182
  var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b);
70119
70183
  resetCache && (_symbol = lazySafeGetInst(SYMBOL));
70120
70184
  (!_symbolFor || resetCache) && (_symbolFor = _getSymbolValue("for"));
70121
- (!_symbolKeyFor || resetCache) && (_symbolKeyFor = _getSymbolValue("keyFor"));
70122
70185
  return _symbol.v;
70123
70186
  }
70124
70187
  /**
@@ -70135,6 +70198,7 @@ uniform ${precision} ${type} u_${name};
70135
70198
  * getKnownSymbol(WellKnownSymbols.toStringTag) === Symbol.toStringTag; // true
70136
70199
  * ```
70137
70200
  */
70201
+ /*#__NO_SIDE_EFFECTS__*/
70138
70202
  function getKnownSymbol(name, noPoly) {
70139
70203
  var knownName = _wellKnownSymbolMap[name];
70140
70204
  // Cause lazy symbol to get initialized
@@ -70149,6 +70213,7 @@ uniform ${precision} ${type} u_${name};
70149
70213
  * @param noPoly - Flag indicating whether to return a polyfil if symbols are not supported.
70150
70214
  * @returns The new symbol
70151
70215
  */
70216
+ /*#__NO_SIDE_EFFECTS__*/
70152
70217
  function newSymbol(description, noPoly) {
70153
70218
  // Cause lazy _symbol to get initialized
70154
70219
  (!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
@@ -70161,6 +70226,7 @@ uniform ${precision} ${type} u_${name};
70161
70226
  * @group Symbol
70162
70227
  * @param key key to search for.
70163
70228
  */
70229
+ /*#__NO_SIDE_EFFECTS__*/
70164
70230
  function symbolFor(key) {
70165
70231
  // Cause lazy symbol to get initialized
70166
70232
  (!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
@@ -70194,6 +70260,7 @@ uniform ${precision} ${type} u_${name};
70194
70260
  * }); // true, iterators must contain a "next" function
70195
70261
  * ```
70196
70262
  */
70263
+ /*#__NO_SIDE_EFFECTS__*/
70197
70264
  function isIterator(value) {
70198
70265
  return !!value && isFunction(value.next);
70199
70266
  }
@@ -70214,6 +70281,7 @@ uniform ${precision} ${type} u_${name};
70214
70281
  * isIterable([]); // true (Arrays are iterable)
70215
70282
  * ```
70216
70283
  */
70284
+ /*#__NO_SIDE_EFFECTS__*/
70217
70285
  function isIterable(value) {
70218
70286
  return !isStrictNullOrUndefined(value) && isFunction(value[getKnownSymbol(3 /* WellKnownSymbols.iterator */)]);
70219
70287
  }
@@ -70279,7 +70347,7 @@ uniform ${precision} ${type} u_${name};
70279
70347
  try {
70280
70348
  var count = 0;
70281
70349
  while (!(iterResult = iter.next())[DONE]) {
70282
- if (callbackfn.call(thisArg || iter, iterResult[VALUE], count, iter) === -1) {
70350
+ if (callbackfn[CALL](thisArg || iter, iterResult[VALUE], count, iter) === -1) {
70283
70351
  break;
70284
70352
  }
70285
70353
  count++;
@@ -70374,7 +70442,7 @@ uniform ${precision} ${type} u_${name};
70374
70442
  * fnApply(module1.log, module2, [ "friend" ]); // my friend : 42
70375
70443
  * ```
70376
70444
  */
70377
- var fnApply = _unwrapInstFunction("apply");
70445
+ var fnApply = ( /*#__PURE__*/_unwrapInstFunction("apply"));
70378
70446
 
70379
70447
  /*
70380
70448
  * @nevware21/ts-utils
@@ -70492,7 +70560,7 @@ uniform ${precision} ${type} u_${name};
70492
70560
  var len = theArray[LENGTH] >>> 0;
70493
70561
  for (var idx = 0; idx < len; idx++) {
70494
70562
  if (idx in theArray) {
70495
- if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
70563
+ if (callbackfn[CALL](thisArg || theArray, theArray[idx], idx, theArray) === -1) {
70496
70564
  break;
70497
70565
  }
70498
70566
  }
@@ -70574,85 +70642,7 @@ uniform ${precision} ${type} u_${name};
70574
70642
  * arrIndexOf(arrayLike, "green-pepper"); // -1
70575
70643
  * ```
70576
70644
  */
70577
- var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
70578
- /**
70579
- * The arrLastIndexOf() method returns the last index at which a given element can be found in the array,
70580
- * or -1 if it is not present.
70581
- * `arrLastIndexOf()` compares searchElement to elements of the Array using strict equality (the same
70582
- * method used by the === or triple-equals operator). [NaN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN)
70583
- * values are never compared as equal, so arrLastIndexOf() always returns -1 when searchElement is NaN.
70584
- *
70585
- * The arrLastIndexOf() method skips empty slots in sparse arrays.
70586
- *
70587
- * The arrLastIndexOf() method is generic. It only expects the this value to have a length property and integer-keyed properties.
70588
- *
70589
- * @since 0.8.0
70590
- * @group Array
70591
- * @group ArrayLike
70592
- * @typeParam T - Identifies the type of array elements
70593
- * @param theArray - The array or array like object of elements to be searched.
70594
- * @param searchElement - The element to locate in the array.
70595
- * @param fromIndex - Zero-based index at which to start searching backwards, converted to an integer.
70596
- * - Negative index counts back from the end of the array — if fromIndex < 0, fromIndex + array.length is used.
70597
- * - If fromIndex < -array.length, the array is not searched and -1 is returned. You can think of it conceptually
70598
- * as starting at a nonexistent position before the beginning of the array and going backwards from there. There
70599
- * are no array elements on the way, so searchElement is never found.
70600
- * - If fromIndex >= array.length or fromIndex is omitted, array.length - 1 is used, causing the entire array to
70601
- * be searched. You can think of it conceptually as starting at a nonexistent position beyond the end of the array and going backwards from there. It eventually reaches the real end position of the array, at which point it starts searching backwards through the actual array elements.
70602
- * @return The first index of the element in the array; -1 if not found.
70603
- * @example
70604
- * ```ts
70605
- * const numbers = [2, 5, 9, 2];
70606
- * arrLastIndexOf(numbers, 2); // 3
70607
- * arrLastIndexOf(numbers, 7); // -1
70608
- * arrLastIndexOf(numbers, 2, 3); // 3
70609
- * arrLastIndexOf(numbers, 2, 2); // 0
70610
- * arrLastIndexOf(numbers, 2, -2); // 0
70611
- * arrLastIndexOf(numbers, 2, -1); // 3
70612
- *
70613
- * let indices: number[] = [];
70614
- * const array = ["a", "b", "a", "c", "a", "d"];
70615
- * const element = "a";
70616
- * let idx = arrLastIndexOf(array, element);
70617
- * while (idx !== -1) {
70618
- * indices.push(idx);
70619
- * idx = arrLastIndexOf(array, element, idx ? idx - 1 : -(array.length + 1));
70620
- * }
70621
- * console.log(indices);
70622
- * // [4, 2, 0]
70623
- *
70624
- * function updateVegetablesCollection (veggies, veggie) {
70625
- * if (arrLastIndexOf(veggies, veggie) === -1) {
70626
- * veggies.push(veggie);
70627
- * console.log('New veggies collection is : ' + veggies);
70628
- * } else {
70629
- * console.log(veggie + ' already exists in the veggies collection.');
70630
- * }
70631
- * }
70632
- *
70633
- * let veggies = ['potato', 'tomato', 'chillies', 'green-pepper'];
70634
- *
70635
- * updateVegetablesCollection(veggies, 'spinach');
70636
- * // New veggies collection is : potato,tomato,chillies,green-pepper,spinach
70637
- * updateVegetablesCollection(veggies, 'spinach');
70638
- * // spinach already exists in the veggies collection.
70639
- *
70640
- * // Array Like
70641
- * let arrayLike = {
70642
- * length: 3,
70643
- * 0: "potato",
70644
- * 1: "tomato",
70645
- * 2: "chillies",
70646
- * 3: "green-pepper" // Not checked as index is > length
70647
- * };
70648
- *
70649
- * arrLastIndexOf(arrayLike, "potato"); // 0
70650
- * arrLastIndexOf(arrayLike, "tomato"); // 1
70651
- * arrLastIndexOf(arrayLike, "chillies"); 2
70652
- * arrLastIndexOf(arrayLike, "green-pepper"); // -1
70653
- * ```
70654
- */
70655
- _unwrapFunction(LAST_INDEX_OF, ArrProto);
70645
+ var arrIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, ArrProto));
70656
70646
 
70657
70647
  /*
70658
70648
  * @nevware21/ts-utils
@@ -70711,7 +70701,7 @@ uniform ${precision} ${type} u_${name};
70711
70701
  * };
70712
70702
  * ```
70713
70703
  */
70714
- var arrMap = _unwrapFunction("map", ArrProto);
70704
+ var arrMap = ( /*#__PURE__*/_unwrapFunction("map", ArrProto));
70715
70705
 
70716
70706
  /*
70717
70707
  * @nevware21/ts-utils
@@ -70763,71 +70753,7 @@ uniform ${precision} ${type} u_${name};
70763
70753
  * arrSlice(lyrics, 2, -1); // [ "my", "old", "friend.", "I've", "come", "to" ]
70764
70754
  * ```
70765
70755
  */
70766
- var arrSlice = _unwrapFunction(SLICE, ArrProto);
70767
-
70768
- /*
70769
- * @nevware21/ts-utils
70770
- * https://github.com/nevware21/ts-utils
70771
- *
70772
- * Copyright (c) 2023 Nevware21
70773
- * Licensed under the MIT license.
70774
- */
70775
- /**
70776
- * The `fnCall` function calls the function with the given `thisArg` as the `this` value and with
70777
- * al of the `_args` provided as it's `arguments.
70778
- *
70779
- * > This is almost identical to `fnApply`, except that the function arguments are passed to `fnCall`
70780
- * individually as a list, while with `fnApply` that are combined into a single array argument.
70781
- *
70782
- * Normally, when calling a function, the value of `this` inside the function is the object that the
70783
- * function was accessed on. With `fnCall()`, you can pass an arbitrary value as the `this` when calling an
70784
- * existing function, without first attaching the function to the object as a property. This allows you
70785
- * to use methods of one object as generic utility functions.
70786
- *
70787
- * @since 0.9.8
70788
- * @group Function
70789
- *
70790
- * @param fn - The function to be called
70791
- * @param thisArg - The value of `this` provided for the call to `fn`. If the function is not in strict mode,
70792
- * `null` and `undefined` will be replaced with the global object, and primitive values will be converted to objects.
70793
- * @param _args - The zero or more arguments to be passed to the `fn` function.
70794
- * @returns The result of calling the function with the specified `this` value and arguments.
70795
- * @example
70796
- * ```ts
70797
- * // min / max number in an array
70798
- * let max = fnCall(Math.max, null, 21, 42, 84, 168, 7, 3);
70799
- * // 168
70800
- *
70801
- * let min = fnCall(Math.min, null, 21, 42, 84, 168, 7, 3);
70802
- * // 3
70803
- *
70804
- * const module1 = {
70805
- * prefix: "Hello",
70806
- * x: 21,
70807
- * getX() {
70808
- * return this.x;
70809
- * },
70810
- * log(value: string) {
70811
- * return this.prefix + " " + value + " : " + this.x
70812
- * }
70813
- * };
70814
- *
70815
- * // The 'this' parameter of 'getX' is bound to 'module'.
70816
- * module1.getX(); // 21
70817
- * module1.log("Darkness"); // Hello Darkness : 21
70818
- *
70819
- * // Create a new function 'boundGetX' with the 'this' parameter bound to 'module'.
70820
- * let module2 = {
70821
- * prefix: "my",
70822
- * x: 42
70823
- * };
70824
- *
70825
- * // Call the function of module1 with module2 as it's this
70826
- * fnCall(module1.getX, module2); // 42
70827
- * fnCall(module1.log, module2, "friend"); // my friend : 42
70828
- * ```
70829
- */
70830
- var fnCall = _unwrapInstFunction("call");
70756
+ var arrSlice = ( /*#__PURE__*/_unwrapFunction(SLICE, ArrProto));
70831
70757
 
70832
70758
  /*
70833
70759
  * @nevware21/ts-utils
@@ -70880,7 +70806,7 @@ uniform ${precision} ${type} u_${name};
70880
70806
  * arrReduce({ length: 0 }, getMax, 1); // 1
70881
70807
  * ```
70882
70808
  */
70883
- var arrReduce = _unwrapFunction("reduce", ArrProto);
70809
+ var arrReduce = ( /*#__PURE__*/_unwrapFunction("reduce", ArrProto));
70884
70810
 
70885
70811
  /*
70886
70812
  * @nevware21/ts-utils
@@ -70889,7 +70815,6 @@ uniform ${precision} ${type} u_${name};
70889
70815
  * Copyright (c) 2022 Nevware21
70890
70816
  * Licensed under the MIT license.
70891
70817
  */
70892
- var _objCreate = ObjClass$1["create"];
70893
70818
  /**
70894
70819
  * Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
70895
70820
  * for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
@@ -70897,7 +70822,7 @@ uniform ${precision} ${type} u_${name};
70897
70822
  * @group Object
70898
70823
  * @param obj Object to use as a prototype. May be null
70899
70824
  */
70900
- var objCreate = _objCreate || polyObjCreate;
70825
+ var objCreate = ObjClass$1["create"] || polyObjCreate;
70901
70826
  /**
70902
70827
  * Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
70903
70828
  * for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
@@ -70906,6 +70831,7 @@ uniform ${precision} ${type} u_${name};
70906
70831
  * @group Object
70907
70832
  * @param obj Object to use as a prototype. May be null
70908
70833
  */
70834
+ /*#__NO_SIDE_EFFECTS__*/
70909
70835
  function polyObjCreate(obj) {
70910
70836
  if (!obj) {
70911
70837
  return {};
@@ -70959,7 +70885,7 @@ uniform ${precision} ${type} u_${name};
70959
70885
  * @internal
70960
70886
  * @ignore
70961
70887
  */
70962
- var _createCustomError = function (name, d, b) {
70888
+ function _createCustomError(name, d, b) {
70963
70889
  _safeDefineName(d, name);
70964
70890
  d = objSetPrototypeOf(d, b);
70965
70891
  function __() {
@@ -70968,8 +70894,8 @@ uniform ${precision} ${type} u_${name};
70968
70894
  }
70969
70895
  d[PROTOTYPE] = b === NULL_VALUE ? objCreate(b) : (__[PROTOTYPE] = b[PROTOTYPE], new __());
70970
70896
  return d;
70971
- };
70972
- var _safeSetName = function (baseClass, name) {
70897
+ }
70898
+ function _safeSetName(baseClass, name) {
70973
70899
  try {
70974
70900
  name && (baseClass[NAME] = name);
70975
70901
  //name && (baseClass[PROTOTYPE][NAME] = name);
@@ -70977,15 +70903,15 @@ uniform ${precision} ${type} u_${name};
70977
70903
  catch (e) {
70978
70904
  // Do nothing
70979
70905
  }
70980
- };
70981
- var _safeDefineName = function (target, name) {
70906
+ }
70907
+ function _safeDefineName(target, name) {
70982
70908
  try {
70983
70909
  objDefine(target, NAME, { v: name, c: true, e: false });
70984
70910
  }
70985
70911
  catch (e) {
70986
70912
  // Do nothing
70987
70913
  }
70988
- };
70914
+ }
70989
70915
  /**
70990
70916
  * Create a Custom Error class which may be used to throw custom errors.
70991
70917
  * @group Error
@@ -71055,6 +70981,7 @@ uniform ${precision} ${type} u_${name};
71055
70981
  * theStartupError instanceof StartupError; // true
71056
70982
  * ```
71057
70983
  */
70984
+ /*#__NO_SIDE_EFFECTS__*/
71058
70985
  function createCustomError(name, constructCb, errorBase) {
71059
70986
  var theBaseClass = errorBase || Error;
71060
70987
  var orgName = theBaseClass[PROTOTYPE][NAME];
@@ -71118,7 +71045,7 @@ uniform ${precision} ${type} u_${name};
71118
71045
  /**
71119
71046
  * Return the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
71120
71047
  *
71121
- * To offer protection against timing attacks and fingerprinting, the precision of dateNow()
71048
+ * To offer protection against timing attacks and fingerprinting, the precision of utcNow()
71122
71049
  * might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision
71123
71050
  * preference is enabled by default and defaults to 20µs in Firefox 59; in 60 it will be 2ms.
71124
71051
  *
@@ -71131,13 +71058,14 @@ uniform ${precision} ${type} u_${name};
71131
71058
  * let now = utcNow();
71132
71059
  * ```
71133
71060
  */
71061
+ /*#__NO_SIDE_EFFECTS__*/
71134
71062
  function utcNow() {
71135
71063
  return (Date.now || polyUtcNow)();
71136
71064
  }
71137
71065
  /**
71138
71066
  * Polyfill fallback to return the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC.
71139
71067
  *
71140
- * To offer protection against timing attacks and fingerprinting, the precision of dateNow()
71068
+ * To offer protection against timing attacks and fingerprinting, the precision of utcNow()
71141
71069
  * might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision
71142
71070
  * preference is enabled by default and defaults to 20µs in Firefox 59; in 60 it will be 2ms.
71143
71071
  *
@@ -71151,6 +71079,7 @@ uniform ${precision} ${type} u_${name};
71151
71079
  * let now = polyUtcNow();
71152
71080
  * ```
71153
71081
  */
71082
+ /*#__NO_SIDE_EFFECTS__*/
71154
71083
  function polyUtcNow() {
71155
71084
  return new Date().getTime();
71156
71085
  }
@@ -71162,6 +71091,7 @@ uniform ${precision} ${type} u_${name};
71162
71091
  * Copyright (c) 2022 Nevware21
71163
71092
  * Licensed under the MIT license.
71164
71093
  */
71094
+ /*#__NO_SIDE_EFFECTS__*/
71165
71095
  function _createTrimFn(exp) {
71166
71096
  return function _doTrim(value) {
71167
71097
  if (isNullOrUndefined(value)) {
@@ -71186,27 +71116,7 @@ uniform ${precision} ${type} u_${name};
71186
71116
  * a copy of str), with no exception being thrown.
71187
71117
  * To return a new string with whitespace trimmed from just one end, use `strTrimStart()` or `strTrimEnd()`.
71188
71118
  */
71189
- var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
71190
- /**
71191
- * The `polyStrTrimStart()` method removes whitespace from the beginning of a string.
71192
- * @group Polyfill
71193
- * @group String
71194
- * @param value - The value to be trimmed.
71195
- * @returns A new string representing str stripped of whitespace from its beginning (left side).
71196
- * If the beginning of str has no whitespace, a new string is still returned (essentially a copy of str),
71197
- * with no exception being thrown.
71198
- */
71199
- var polyStrTrimStart = _createTrimFn(/^\s+/g);
71200
- /**
71201
- * The `polyStrTrimEnd()` method removes whitespace from the end of a string.
71202
- * @group Polyfill
71203
- * @group String
71204
- * @param value - The value to be trimmed.
71205
- * @returns A new string representing str stripped of whitespace from its end (right side).
71206
- * If the end of str has no whitespace, a new string is still returned (essentially a copy of str),
71207
- * with no exception being thrown.
71208
- */
71209
- var polyStrTrimEnd = _createTrimFn(/(?=\s)\s+$/g);
71119
+ var polyStrTrim = ( /*#__PURE__*/_createTrimFn(/^\s+|(?=\s)\s+$/g));
71210
71120
 
71211
71121
  /*
71212
71122
  * @nevware21/ts-utils
@@ -71227,25 +71137,7 @@ uniform ${precision} ${type} u_${name};
71227
71137
  * a copy of str), with no exception being thrown.
71228
71138
  * To return a new string with whitespace trimmed from just one end, use `strTrimStart()` or `strTrimEnd()`.
71229
71139
  */
71230
- var strTrim = _unwrapFunctionWithPoly("trim", StrProto, polyStrTrim);
71231
- /**
71232
- * The `strTrimStart()` method removes whitespace from the beginning of a string.
71233
- * @group String
71234
- * @param value - The value to be trimmed.
71235
- * @returns A new string representing str stripped of whitespace from its beginning (left side).
71236
- * If the beginning of str has no whitespace, a new string is still returned (essentially a copy of str),
71237
- * with no exception being thrown.
71238
- */
71239
- _unwrapFunctionWithPoly("trimStart", StrProto, polyStrTrimStart);
71240
- /**
71241
- * The `strTrimEnd()` method removes whitespace from the end of a string.
71242
- * @group String
71243
- * @param value - The value to be trimmed.
71244
- * @returns A new string representing str stripped of whitespace from its end (right side).
71245
- * If the end of str has no whitespace, a new string is still returned (essentially a copy of str),
71246
- * with no exception being thrown.
71247
- */
71248
- _unwrapFunctionWithPoly("trimEnd", StrProto, polyStrTrimEnd);
71140
+ var strTrim = ( /*#__PURE__*/_unwrapFunctionWithPoly("trim", StrProto, polyStrTrim));
71249
71141
 
71250
71142
  /*
71251
71143
  * @nevware21/ts-utils
@@ -71292,6 +71184,7 @@ uniform ${precision} ${type} u_${name};
71292
71184
  * console.log(isPlainObject("aa")); // false
71293
71185
  * ```
71294
71186
  */
71187
+ /*#__NO_SIDE_EFFECTS__*/
71295
71188
  function isPlainObject(value) {
71296
71189
  if (!value || typeof value !== OBJECT) {
71297
71190
  return false;
@@ -71306,7 +71199,7 @@ uniform ${precision} ${type} u_${name};
71306
71199
  // Lazily caching what the runtime reports as the object function constructor (as a string)
71307
71200
  // Using an current function lookup to find what this runtime calls a "native" function
71308
71201
  _fnToString = Function[PROTOTYPE].toString;
71309
- _objCtrFnString = fnCall(_fnToString, ObjClass$1);
71202
+ _objCtrFnString = _fnToString[CALL](ObjClass$1);
71310
71203
  }
71311
71204
  try {
71312
71205
  var proto = objGetPrototypeOf(value);
@@ -71316,7 +71209,7 @@ uniform ${precision} ${type} u_${name};
71316
71209
  if (objHasOwnProperty(proto, CONSTRUCTOR)) {
71317
71210
  proto = proto[CONSTRUCTOR];
71318
71211
  }
71319
- result = proto && typeof proto === FUNCTION && _fnToString.call(proto) === _objCtrFnString;
71212
+ result = proto && typeof proto === FUNCTION && _fnToString[CALL](proto) === _objCtrFnString;
71320
71213
  }
71321
71214
  }
71322
71215
  catch (ex) {
@@ -71441,13 +71334,13 @@ uniform ${precision} ${type} u_${name};
71441
71334
  });
71442
71335
  var idx = 0;
71443
71336
  var handler = userHandler;
71444
- while (!fnCall(handler || (idx < defaultDeepCopyHandlers.length ? defaultDeepCopyHandlers[idx++] : _defaultDeepCopyHandler), ctx, details)) {
71337
+ while (!(handler || (idx < defaultDeepCopyHandlers.length ? defaultDeepCopyHandlers[idx++] : _defaultDeepCopyHandler))[CALL](ctx, details)) {
71445
71338
  handler = NULL_VALUE;
71446
71339
  }
71447
71340
  });
71448
71341
  }
71449
71342
  // Allow the user handler to override the provided value
71450
- if (userHandler && fnCall(userHandler, ctx, details)) {
71343
+ if (userHandler && userHandler[CALL](ctx, details)) {
71451
71344
  return details.result;
71452
71345
  }
71453
71346
  return value;
@@ -71577,6 +71470,7 @@ uniform ${precision} ${type} u_${name};
71577
71470
  * assert.equal(42, c.b.e.value, "Expect that the local property was copied");
71578
71471
  * ```
71579
71472
  */
71473
+ /*#__NO_SIDE_EFFECTS__*/
71580
71474
  function objDeepCopy(source, handler) {
71581
71475
  var ctx = {
71582
71476
  handler: handler,
@@ -71667,9 +71561,24 @@ uniform ${precision} ${type} u_${name};
71667
71561
  });
71668
71562
  return target;
71669
71563
  }
71564
+ /**
71565
+ * Create a new object by merging the passed arguments, this is effectively the same as calling `objExtend({}, ...theArgs)` where
71566
+ * all of the arguments are added to a new object that is returned.
71567
+ * @group Object
71568
+ * @param target - The original object to be extended.
71569
+ * @param objN - The optional number of arguments to be copied
71570
+ * @returns - A new object or the original
71571
+ */
71670
71572
  function deepExtend(target, obj1, obj2, obj3, obj4, obj5, obj6) {
71671
71573
  return _doExtend(objDeepCopy(target) || {}, arrSlice(arguments));
71672
71574
  }
71575
+ /**
71576
+ * Extend the target object by merging the passed arguments into it
71577
+ * @group Object
71578
+ * @param target - The object to be extended or overwritten
71579
+ * @param objN - The optional number of arguments to be copied
71580
+ * @returns - A new object or the original
71581
+ */
71673
71582
  function objExtend$1(target, obj1, obj2, obj3, obj4, obj5, obj6) {
71674
71583
  return _doExtend(target || {}, arrSlice(arguments));
71675
71584
  }
@@ -71702,7 +71611,7 @@ uniform ${precision} ${type} u_${name};
71702
71611
  * getLength({ length: () => 53; }); // returns the function that if called would return 53
71703
71612
  * ```
71704
71613
  */
71705
- var getLength = _unwrapProp(LENGTH);
71614
+ var getLength = ( /*#__PURE__*/_unwrapProp(LENGTH));
71706
71615
 
71707
71616
  /*
71708
71617
  * @nevware21/ts-utils
@@ -71722,67 +71631,12 @@ uniform ${precision} ${type} u_${name};
71722
71631
  * @group Environment
71723
71632
  * @returns The global performance object if available.
71724
71633
  */
71634
+ /*#__NO_SIDE_EFFECTS__*/
71725
71635
  function getPerformance() {
71726
71636
  (!_perf || (!_perf.b && _globalLazyTestHooks && _globalLazyTestHooks.lzy)) && (_perf = lazySafeGetInst("performance"));
71727
71637
  return _perf.v;
71728
71638
  }
71729
71639
 
71730
- /*
71731
- * @nevware21/ts-utils
71732
- * https://github.com/nevware21/ts-utils
71733
- *
71734
- * Copyright (c) 2023 Nevware21
71735
- * Licensed under the MIT license.
71736
- */
71737
- /**
71738
- * The `polyStrSymSplit()` splits a string into substrings using the [`Symbol.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/split)
71739
- * method from the splitter object to provide custom behavior. It uses {@link getKnownSymbol}
71740
- * to get the {@link WellKnownSymbols.split} symbol which will return the polyfill symbol value.
71741
- * @since 0.9.1
71742
- * @group Polyfill
71743
- * @group String
71744
- * @param value - The string value to be split into substrings.
71745
- * @param splitter - The object which contains a Symbol.split method, Omitting splitter or passing
71746
- * an object that doesn't contain a Symbol.split causes it to return an array with the calling
71747
- * string as a single element.
71748
- * @param limit - A non-negative integer specifying a limit on the number of substrings to be
71749
- * included in the array. If provided, splits the string at each occurrence of the specified
71750
- * separator, but stops when limit entries have been placed in the array. Any leftover text is
71751
- * not included in the array at all.
71752
- * - The array may contain fewer entries than limit if the end of the string is reached before
71753
- * the limit is reached.
71754
- * - If limit is 0, [] is returned.
71755
- * @return An Array of strings, split at each point where the separator occurs in the given string.
71756
- * @example
71757
- * ```ts
71758
- * const splitByNumber = {
71759
- * [getKnownSymbol<typeof Symbol.split>(WellKnownSymbols.split)]: (str: string) => {
71760
- * let num = 1;
71761
- * let pos = 0;
71762
- * const result = [];
71763
- * while (pos < str.length) {
71764
- * const matchPos = strIndexOf(str, asString(num), pos);
71765
- * if (matchPos === -1) {
71766
- * result.push(strSubstring(str, pos));
71767
- * break;
71768
- * }
71769
- * result.push(strSubstring(str, pos, matchPos));
71770
- * pos = matchPos + asString(num).length;
71771
- * num++;
71772
- * }
71773
- * return result;
71774
- * }
71775
- * };
71776
- *
71777
- * const myString = "a1bc2c5d3e4f";
71778
- * console.log(polyStrSymSplit(myString, splitByNumber)); // [ "a", "bc", "c5d", "e", "f" ]
71779
- * ```
71780
- */
71781
- function polyStrSymSplit(value, splitter, limit) {
71782
- var splitFn = splitter && splitter[getKnownSymbol(9 /* WellKnownSymbols.split */)];
71783
- return splitFn ? splitFn(value, limit) : [value];
71784
- }
71785
-
71786
71640
  /*
71787
71641
  * @nevware21/ts-utils
71788
71642
  * https://github.com/nevware21/ts-utils
@@ -71819,53 +71673,7 @@ uniform ${precision} ${type} u_${name};
71819
71673
  * // [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]
71820
71674
  * ```
71821
71675
  */
71822
- var strSplit = _unwrapFunction("split", StrProto);
71823
- /**
71824
- * The `strSymSplit()` splits a string into substrings using the [`Symbol.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/split)
71825
- * method from the splitter object to provide custom behavior. If the runtime supports symbols
71826
- * then the default runtime `split` method will be called, It will use {@link getKnownSymbol}
71827
- * to get the {@link WellKnownSymbols.split} symbol which will return the runtime symbol or the
71828
- * polyfill symbol when not supported by the runtime.
71829
- * @since 0.9.1
71830
- * @group String
71831
- * @param value - The string value to be split into substrings.
71832
- * @param splitter - The object which contains a Symbol.split method, Omitting splitter or passing
71833
- * an object that doesn't contain a Symbol.split causes it to return an array with the calling
71834
- * string as a single element.
71835
- * @param limit - A non-negative integer specifying a limit on the number of substrings to be
71836
- * included in the array. If provided, splits the string at each occurrence of the specified
71837
- * separator, but stops when limit entries have been placed in the array. Any leftover text is
71838
- * not included in the array at all.
71839
- * - The array may contain fewer entries than limit if the end of the string is reached before
71840
- * the limit is reached.
71841
- * - If limit is 0, [] is returned.
71842
- * @return An Array of strings, split at each point where the separator occurs in the given string.
71843
- * @example
71844
- * ```ts
71845
- * const splitByNumber = {
71846
- * [Symbol.split]: (str: string) => {
71847
- * let num = 1;
71848
- * let pos = 0;
71849
- * const result = [];
71850
- * while (pos < str.length) {
71851
- * const matchPos = strIndexOf(str, asString(num), pos);
71852
- * if (matchPos === -1) {
71853
- * result.push(strSubstring(str, pos));
71854
- * break;
71855
- * }
71856
- * result.push(strSubstring(str, pos, matchPos));
71857
- * pos = matchPos + asString(num).length;
71858
- * num++;
71859
- * }
71860
- * return result;
71861
- * }
71862
- * };
71863
- *
71864
- * const myString = "a1bc2c5d3e4f";
71865
- * console.log(strSymSplit(myString, splitByNumber)); // [ "a", "bc", "c5d", "e", "f" ]
71866
- * ```
71867
- */
71868
- hasSymbol() ? _unwrapFunction("split", StrProto) : polyStrSymSplit;
71676
+ var strSplit = ( /*#__PURE__*/_unwrapFunction("split", StrProto));
71869
71677
 
71870
71678
  /*
71871
71679
  * @nevware21/ts-utils
@@ -71922,7 +71730,7 @@ uniform ${precision} ${type} u_${name};
71922
71730
  * @param searchString - The characters to be searched for at the end of `value` string.
71923
71731
  * @param length - If provided, it is used as the length of `value`. Defaults to value.length.
71924
71732
  */
71925
- var strEndsWith = _unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith);
71733
+ var strEndsWith = ( /*#__PURE__*/_unwrapFunctionWithPoly("endsWith", StrProto, polyStrEndsWith));
71926
71734
  /**
71927
71735
  * This method lets you determine whether or not a string ends with another string. This method is case-sensitive.
71928
71736
  * @group Polyfill
@@ -71931,6 +71739,7 @@ uniform ${precision} ${type} u_${name};
71931
71739
  * @param searchString - The characters to be searched for at the end of `value` string.
71932
71740
  * @param length - If provided, it is used as the length of `value`. Defaults to value.length.
71933
71741
  */
71742
+ /*#__NO_SIDE_EFFECTS__*/
71934
71743
  function polyStrEndsWith(value, searchString, length) {
71935
71744
  if (!isString(value)) {
71936
71745
  throwTypeError("'" + dumpObj(value) + "' is not a string");
@@ -71981,29 +71790,7 @@ uniform ${precision} ${type} u_${name};
71981
71790
  * strIndexOf('Blue Whale', '', 11) // returns 10
71982
71791
  * ```
71983
71792
  */
71984
- var strIndexOf = _unwrapFunction(INDEX_OF, StrProto);
71985
- /**
71986
- * The `strLastIndexOf()` method, given two arguments: the string and a substring to search for, searches
71987
- * the entire calling string, and returns the index of the last occurrence of the specified substring.
71988
- * Given a third argument: a number, the method returns the last occurrence of the specified substring
71989
- * at an index less than or equal to the specified number.
71990
- * @group String
71991
- * @param value - The value to be checked for the seeach string
71992
- * @param searchString - The substring to search for in the value
71993
- * @param position - The starting position to search from
71994
- * @example
71995
- * ```ts
71996
- * strLastIndexOf('canal', 'a'); // returns 3
71997
- * strLastIndexOf('canal', 'a', 2); // returns 1
71998
- * strLastIndexOf('canal', 'a', 0); // returns -1
71999
- * strLastIndexOf('canal', 'x'); // returns -1
72000
- * strLastIndexOf('canal', 'c', -5); // returns 0
72001
- * strLastIndexOf('canal', 'c', 0); // returns 0
72002
- * strLastIndexOf('canal', ''); // returns 5
72003
- * strLastIndexOf('canal', '', 2); // returns 2
72004
- * ```
72005
- */
72006
- _unwrapFunction(LAST_INDEX_OF, StrProto);
71793
+ var strIndexOf = ( /*#__PURE__*/_unwrapFunction(INDEX_OF, StrProto));
72007
71794
 
72008
71795
  /*
72009
71796
  * @nevware21/ts-utils
@@ -72114,15 +71901,84 @@ uniform ${precision} ${type} u_${name};
72114
71901
  });
72115
71902
  return handler.h;
72116
71903
  }
71904
+ /**
71905
+ * Creates and starts a timer which executes a function or specified piece of code once the timer expires, this is simular
71906
+ * to using `setTimeout` but provides a return object for cancelling and restarting (refresh) the timer.
71907
+ *
71908
+ * The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or
71909
+ * you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler}
71910
+ * instance
71911
+ *
71912
+ * @since 0.4.4
71913
+ * @group Timer
71914
+ *
71915
+ * @param callback - The function to be executed after the timer expires.
71916
+ * @param timeout - The time, in milliseconds that the timer should wait before the specified
71917
+ * function or code is executed. If this parameter is omitted, a value of 0 is used, meaning
71918
+ * execute "immediately", or more accurately, the next event cycle.
71919
+ * @param args - Additional arguments which are passed through to the function specified by `callback`.
71920
+ * @returns A {@link ITimerHandler} instance which can be used to cancel the timeout.
71921
+ * @example
71922
+ * ```ts
71923
+ * let timeoutCalled = false;
71924
+ * let theTimeout = scheduleTimeout(() => {
71925
+ * // This callback will be called after 100ms as this uses setTimeout()
71926
+ * timeoutCalled = true;
71927
+ * }, 100);
71928
+ *
71929
+ * // Instead of calling clearTimeout() with the returned value from setTimeout() the returned
71930
+ * // handler instance can be used instead to cancel the timer
71931
+ * theTimeout.cancel();
71932
+ * theTimeout.enabled; // false
71933
+ *
71934
+ * // You can start the timer via enabled
71935
+ * theTimeout.enabled = true;
71936
+ *
71937
+ * // You can also "restart" the timer, whether it has previously triggered not not via the `refresh()`
71938
+ * theTimeout.refresh();
71939
+ * ```
71940
+ */
72117
71941
  function scheduleTimeout(callback, timeout) {
72118
71942
  return _createTimeoutWith(this, true, UNDEF_VALUE, arrSlice(arguments));
72119
71943
  }
71944
+ /**
71945
+ * Creates a non-running (paused) timer which will execute a function or specified piece of code when enabled and the timer expires,
71946
+ * this is simular to using `scheduleTimeout` but the timer is not enabled (running) and you MUST call `refresh` to start the timer.
71947
+ *
71948
+ * The timer may be cancelled (cleared) by calling the `cancel()` function on the returned {@link ITimerHandler}, or
71949
+ * you can "reschedule" and/or "restart" the timer by calling the `refresh()` function on the returned {@link ITimerHandler}
71950
+ * instance
71951
+ *
71952
+ * @since 0.7.0
71953
+ * @group Timer
71954
+ *
71955
+ * @param callback - The function to be executed after the timer expires.
71956
+ * @param timeout - The time, in milliseconds that the timer should wait before the specified
71957
+ * function or code is executed. If this parameter is omitted, a value of 0 is used, meaning
71958
+ * execute "immediately", or more accurately, the next event cycle.
71959
+ * @param args - Additional arguments which are passed through to the function specified by `callback`.
71960
+ * @returns A {@link ITimerHandler} instance which can be used to cancel the timeout.
71961
+ * @example
71962
+ * ```ts
71963
+ * let timeoutCalled = false;
71964
+ * let theTimeout = createTimeout(() => {
71965
+ * // This callback will be called after 100ms as this uses setTimeout()
71966
+ * timeoutCalled = true;
71967
+ * }, 100);
71968
+ *
71969
+ * // As the timer is not started you will need to call "refresh" to start the timer
71970
+ * theTimeout.refresh();
71971
+ *
71972
+ * // or set enabled to true
71973
+ * theTimeout.enabled = true;
71974
+ * ```
71975
+ */
72120
71976
  function createTimeout(callback, timeout) {
72121
71977
  return _createTimeoutWith(this, false, UNDEF_VALUE, arrSlice(arguments));
72122
71978
  }
72123
71979
 
72124
71980
  /*
72125
- * Application Insights JavaScript SDK - Core, 3.0.5
71981
+ * Application Insights JavaScript SDK - Core, 3.0.7
72126
71982
  * Copyright (c) Microsoft and contributors. All rights reserved.
72127
71983
  */
72128
71984
 
@@ -72144,7 +72000,7 @@ uniform ${precision} ${type} u_${name};
72144
72000
  var createValueMap = createTypeMap;
72145
72001
 
72146
72002
  /*
72147
- * Application Insights JavaScript SDK - Core, 3.0.5
72003
+ * Application Insights JavaScript SDK - Core, 3.0.7
72148
72004
  * Copyright (c) Microsoft and contributors. All rights reserved.
72149
72005
  */
72150
72006
 
@@ -72215,7 +72071,7 @@ uniform ${precision} ${type} u_${name};
72215
72071
  var _DYN_TRACE_FLAGS$1 = "traceFlags"; // Count: 6
72216
72072
 
72217
72073
  /*
72218
- * Application Insights JavaScript SDK - Core, 3.0.5
72074
+ * Application Insights JavaScript SDK - Core, 3.0.7
72219
72075
  * Copyright (c) Microsoft and contributors. All rights reserved.
72220
72076
  */
72221
72077
 
@@ -72482,7 +72338,7 @@ uniform ${precision} ${type} u_${name};
72482
72338
  * @ignore
72483
72339
  */
72484
72340
  function _isDynamicCandidate(target, funcName, skipOwn) {
72485
- return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)));
72341
+ return (funcName !== Constructor && typeof target[funcName] === strFunction && (skipOwn || objHasOwnProperty(target, funcName)) && funcName !== str__Proto && funcName !== Prototype);
72486
72342
  }
72487
72343
  /**
72488
72344
  * Helper to throw a TypeError exception
@@ -72500,7 +72356,7 @@ uniform ${precision} ${type} u_${name};
72500
72356
  */
72501
72357
  function _getInstanceFuncs(thisTarget) {
72502
72358
  // Get the base proto
72503
- var instFuncs = {};
72359
+ var instFuncs = objCreate(null);
72504
72360
  // Save any existing instance functions
72505
72361
  _forEachProp(thisTarget, function (name) {
72506
72362
  // Don't include any dynamic prototype instances - as we only want the real functions
@@ -72546,7 +72402,7 @@ uniform ${precision} ${type} u_${name};
72546
72402
  };
72547
72403
  }
72548
72404
  // Start creating a new baseFuncs by creating proxies for the instance functions (as they may get replaced)
72549
- var baseFuncs = {};
72405
+ var baseFuncs = objCreate(null);
72550
72406
  _forEachProp(instFuncs, function (name) {
72551
72407
  // Create an instance callback for passing the base function to the caller
72552
72408
  baseFuncs[name] = _instFuncProxy(thisTarget, instFuncs, name);
@@ -72580,8 +72436,8 @@ uniform ${precision} ${type} u_${name};
72580
72436
  // We need to check whether the class name is defined directly on this prototype otherwise
72581
72437
  // it will walk the proto chain and return any parent proto classname.
72582
72438
  if (target && objHasOwnProperty(proto, DynClassName)) {
72583
- var instFuncTable = target[DynInstFuncTable] || {};
72584
- instFunc = (instFuncTable[proto[DynClassName]] || {})[funcName];
72439
+ var instFuncTable = target[DynInstFuncTable] || objCreate(null);
72440
+ instFunc = (instFuncTable[proto[DynClassName]] || objCreate(null))[funcName];
72585
72441
  if (!instFunc) {
72586
72442
  // Avoid stack overflow from recursive calling the same function
72587
72443
  _throwTypeError("Missing [" + funcName + "] " + strFunction);
@@ -72659,24 +72515,28 @@ uniform ${precision} ${type} u_${name};
72659
72515
  return dynProtoProxy;
72660
72516
  }
72661
72517
  if (!_isObjectOrArrayPrototype(proto)) {
72662
- var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || {};
72663
- var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || {}); // fetch and assign if as it may not exist yet
72664
- // Set whether we are allow to lookup instances, if someone has set to false then do not re-enable
72665
- if (instFuncTable[DynAllowInstChkTag] !== false) {
72666
- instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
72667
- }
72668
- _forEachProp(target, function (name) {
72669
- // Only add overridden functions
72670
- if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
72671
- // Save the instance Function to the lookup table and remove it from the instance as it's not a dynamic proto function
72672
- instFuncs_1[name] = target[name];
72673
- delete target[name];
72674
- // Add a dynamic proto if one doesn't exist or if a prototype function exists and it's not a dynamic one
72675
- if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
72676
- proto[name] = _createDynamicPrototype(proto, name);
72677
- }
72518
+ var instFuncTable = target[DynInstFuncTable] = target[DynInstFuncTable] || objCreate(null);
72519
+ if (!_isObjectOrArrayPrototype(instFuncTable)) {
72520
+ var instFuncs_1 = instFuncTable[className] = (instFuncTable[className] || objCreate(null)); // fetch and assign if as it may not exist yet
72521
+ // Set whether we are allow to lookup instances, if someone has set to false then do not re-enable
72522
+ if (instFuncTable[DynAllowInstChkTag] !== false) {
72523
+ instFuncTable[DynAllowInstChkTag] = !!setInstanceFunc;
72678
72524
  }
72679
- });
72525
+ if (!_isObjectOrArrayPrototype(instFuncs_1)) {
72526
+ _forEachProp(target, function (name) {
72527
+ // Only add overridden functions
72528
+ if (_isDynamicCandidate(target, name, false) && target[name] !== baseInstFuncs[name]) {
72529
+ // Save the instance Function to the lookup table and remove it from the instance as it's not a dynamic proto function
72530
+ instFuncs_1[name] = target[name];
72531
+ delete target[name];
72532
+ // Add a dynamic proto if one doesn't exist or if a prototype function exists and it's not a dynamic one
72533
+ if (!objHasOwnProperty(proto, name) || (proto[name] && !proto[name][DynProxyTag])) {
72534
+ proto[name] = _createDynamicPrototype(proto, name);
72535
+ }
72536
+ }
72537
+ });
72538
+ }
72539
+ }
72680
72540
  }
72681
72541
  }
72682
72542
  /**
@@ -72828,17 +72688,53 @@ uniform ${precision} ${type} u_${name};
72828
72688
  * Copyright (c) 2022 Nevware21
72829
72689
  * Licensed under the MIT license.
72830
72690
  */
72691
+ /**
72692
+ * Helper to coallesce the promise resolved / reject into a single callback to simplify error handling.
72693
+ * @group Await Helper
72694
+ * @param value - The value or promise like value to wait to be resolved or rejected.
72695
+ * @param cb - The callback function to call with the resulting value, if the value is not a
72696
+ * promise like value then the callback is called synchronously, if the value is a promise then
72697
+ * the callback will be called once the promise completes the resulting value will be passed as an
72698
+ * IAwaitResponse instance, it will be called whether any promise resolves or rejects.
72699
+ * @returns The value returned by the `cb` callback function, if the value is a promise then the return value
72700
+ * of the callback will be returned as a promise whether the callback returns a promise or not.
72701
+ * @example
72702
+ * ```ts
72703
+ * let promise = createPromise<number>((resolve, reject) => {
72704
+ * resolve(42);
72705
+ * });
72706
+ *
72707
+ * // Handle via doAwaitResponse
72708
+ * doAwaitResponse(promise, (value) => {
72709
+ * if (!value.rejected) {
72710
+ * // Do something with the value
72711
+ * } else {
72712
+ * // Do something with the reason
72713
+ * }
72714
+ * });
72715
+ *
72716
+ * // It can also handle the raw value, so you could process the result of either a
72717
+ * // synchrounous return of the value or a Promise
72718
+ * doAwaitResponse(42, (value) => {
72719
+ * if (!value.rejected) {
72720
+ * // Do something with the value
72721
+ * } else {
72722
+ * // This will never be true as the value is not a promise
72723
+ * }
72724
+ * });
72725
+ * ```
72726
+ */
72831
72727
  function doAwaitResponse(value, cb) {
72832
72728
  return doAwait(value, function (value) {
72833
- cb && cb({
72729
+ return cb ? cb({
72834
72730
  value: value,
72835
72731
  rejected: false
72836
- });
72732
+ }) : value;
72837
72733
  }, function (reason) {
72838
- cb && cb({
72734
+ return cb ? cb({
72839
72735
  rejected: true,
72840
72736
  reason: reason
72841
- });
72737
+ }) : reason;
72842
72738
  });
72843
72739
  }
72844
72740
  /**
@@ -72883,10 +72779,12 @@ uniform ${precision} ${type} u_${name};
72883
72779
  }
72884
72780
  }
72885
72781
  else {
72886
- resolveFn && resolveFn(value);
72782
+ if (resolveFn) {
72783
+ result = resolveFn(value);
72784
+ }
72887
72785
  }
72888
72786
  if (finallyFn) {
72889
- result = doFinally(result, finallyFn);
72787
+ doFinally(result, finallyFn);
72890
72788
  }
72891
72789
  return result;
72892
72790
  }
@@ -73401,7 +73299,7 @@ uniform ${precision} ${type} u_${name};
73401
73299
  var createAllPromise = _createAllPromise(createPromise);
73402
73300
 
73403
73301
  /*
73404
- * Application Insights JavaScript SDK - Core, 3.0.5
73302
+ * Application Insights JavaScript SDK - Core, 3.0.7
73405
73303
  * Copyright (c) Microsoft and contributors. All rights reserved.
73406
73304
  */
73407
73305
 
@@ -73429,7 +73327,7 @@ uniform ${precision} ${type} u_${name};
73429
73327
  var STR_NOT_DYNAMIC_ERROR = "Not dynamic - ";
73430
73328
 
73431
73329
  /*
73432
- * Application Insights JavaScript SDK - Core, 3.0.5
73330
+ * Application Insights JavaScript SDK - Core, 3.0.7
73433
73331
  * Copyright (c) Microsoft and contributors. All rights reserved.
73434
73332
  */
73435
73333
 
@@ -73735,7 +73633,7 @@ uniform ${precision} ${type} u_${name};
73735
73633
  }
73736
73634
 
73737
73635
  /*
73738
- * Application Insights JavaScript SDK - Core, 3.0.5
73636
+ * Application Insights JavaScript SDK - Core, 3.0.7
73739
73637
  * Copyright (c) Microsoft and contributors. All rights reserved.
73740
73638
  */
73741
73639
 
@@ -73990,7 +73888,7 @@ uniform ${precision} ${type} u_${name};
73990
73888
  }
73991
73889
 
73992
73890
  /*
73993
- * Application Insights JavaScript SDK - Core, 3.0.5
73891
+ * Application Insights JavaScript SDK - Core, 3.0.7
73994
73892
  * Copyright (c) Microsoft and contributors. All rights reserved.
73995
73893
  */
73996
73894
 
@@ -74108,11 +74006,11 @@ uniform ${precision} ${type} u_${name};
74108
74006
  }
74109
74007
 
74110
74008
  /*
74111
- * Application Insights JavaScript SDK - Core, 3.0.5
74009
+ * Application Insights JavaScript SDK - Core, 3.0.7
74112
74010
  * Copyright (c) Microsoft and contributors. All rights reserved.
74113
74011
  */
74114
74012
 
74115
- var version$2 = '3.0.5';
74013
+ var version$2 = '3.0.7';
74116
74014
  var instanceName = "." + newId(6);
74117
74015
  var _dataUid = 0;
74118
74016
  // Accepts only:
@@ -74179,7 +74077,7 @@ uniform ${precision} ${type} u_${name};
74179
74077
  }
74180
74078
 
74181
74079
  /*
74182
- * Application Insights JavaScript SDK - Core, 3.0.5
74080
+ * Application Insights JavaScript SDK - Core, 3.0.7
74183
74081
  * Copyright (c) Microsoft and contributors. All rights reserved.
74184
74082
  */
74185
74083
 
@@ -74348,7 +74246,7 @@ uniform ${precision} ${type} u_${name};
74348
74246
  }
74349
74247
 
74350
74248
  /*
74351
- * Application Insights JavaScript SDK - Core, 3.0.5
74249
+ * Application Insights JavaScript SDK - Core, 3.0.7
74352
74250
  * Copyright (c) Microsoft and contributors. All rights reserved.
74353
74251
  */
74354
74252
 
@@ -74488,7 +74386,7 @@ uniform ${precision} ${type} u_${name};
74488
74386
  }
74489
74387
 
74490
74388
  /*
74491
- * Application Insights JavaScript SDK - Core, 3.0.5
74389
+ * Application Insights JavaScript SDK - Core, 3.0.7
74492
74390
  * Copyright (c) Microsoft and contributors. All rights reserved.
74493
74391
  */
74494
74392
 
@@ -74718,7 +74616,7 @@ uniform ${precision} ${type} u_${name};
74718
74616
  }
74719
74617
 
74720
74618
  /*
74721
- * Application Insights JavaScript SDK - Core, 3.0.5
74619
+ * Application Insights JavaScript SDK - Core, 3.0.7
74722
74620
  * Copyright (c) Microsoft and contributors. All rights reserved.
74723
74621
  */
74724
74622
 
@@ -74856,7 +74754,7 @@ uniform ${precision} ${type} u_${name};
74856
74754
  }
74857
74755
 
74858
74756
  /*
74859
- * Application Insights JavaScript SDK - Core, 3.0.5
74757
+ * Application Insights JavaScript SDK - Core, 3.0.7
74860
74758
  * Copyright (c) Microsoft and contributors. All rights reserved.
74861
74759
  */
74862
74760
 
@@ -75023,7 +74921,7 @@ uniform ${precision} ${type} u_${name};
75023
74921
  }
75024
74922
 
75025
74923
  /*
75026
- * Application Insights JavaScript SDK - Core, 3.0.5
74924
+ * Application Insights JavaScript SDK - Core, 3.0.7
75027
74925
  * Copyright (c) Microsoft and contributors. All rights reserved.
75028
74926
  */
75029
74927
 
@@ -75068,7 +74966,7 @@ uniform ${precision} ${type} u_${name};
75068
74966
  }
75069
74967
 
75070
74968
  /*
75071
- * Application Insights JavaScript SDK - Core, 3.0.5
74969
+ * Application Insights JavaScript SDK - Core, 3.0.7
75072
74970
  * Copyright (c) Microsoft and contributors. All rights reserved.
75073
74971
  */
75074
74972
 
@@ -75076,7 +74974,7 @@ uniform ${precision} ${type} u_${name};
75076
74974
  var ChannelControllerPriority = 500;
75077
74975
 
75078
74976
  /*
75079
- * Application Insights JavaScript SDK - Core, 3.0.5
74977
+ * Application Insights JavaScript SDK - Core, 3.0.7
75080
74978
  * Copyright (c) Microsoft and contributors. All rights reserved.
75081
74979
  */
75082
74980
 
@@ -75162,7 +75060,7 @@ uniform ${precision} ${type} u_${name};
75162
75060
  }
75163
75061
 
75164
75062
  /*
75165
- * Application Insights JavaScript SDK - Core, 3.0.5
75063
+ * Application Insights JavaScript SDK - Core, 3.0.7
75166
75064
  * Copyright (c) Microsoft and contributors. All rights reserved.
75167
75065
  */
75168
75066
 
@@ -75207,7 +75105,7 @@ uniform ${precision} ${type} u_${name};
75207
75105
  }
75208
75106
 
75209
75107
  /*
75210
- * Application Insights JavaScript SDK - Core, 3.0.5
75108
+ * Application Insights JavaScript SDK - Core, 3.0.7
75211
75109
  * Copyright (c) Microsoft and contributors. All rights reserved.
75212
75110
  */
75213
75111
 
@@ -75462,7 +75360,7 @@ uniform ${precision} ${type} u_${name};
75462
75360
  }
75463
75361
 
75464
75362
  /*
75465
- * Application Insights JavaScript SDK - Core, 3.0.5
75363
+ * Application Insights JavaScript SDK - Core, 3.0.7
75466
75364
  * Copyright (c) Microsoft and contributors. All rights reserved.
75467
75365
  */
75468
75366
  var _a$8, _b$2;
@@ -75849,7 +75747,7 @@ uniform ${precision} ${type} u_${name};
75849
75747
  }
75850
75748
 
75851
75749
  /*
75852
- * Application Insights JavaScript SDK - Core, 3.0.5
75750
+ * Application Insights JavaScript SDK - Core, 3.0.7
75853
75751
  * Copyright (c) Microsoft and contributors. All rights reserved.
75854
75752
  */
75855
75753
 
@@ -75994,7 +75892,7 @@ uniform ${precision} ${type} u_${name};
75994
75892
  }());
75995
75893
 
75996
75894
  /*
75997
- * Application Insights JavaScript SDK - Core, 3.0.5
75895
+ * Application Insights JavaScript SDK - Core, 3.0.7
75998
75896
  * Copyright (c) Microsoft and contributors. All rights reserved.
75999
75897
  */
76000
75898
 
@@ -76179,7 +76077,7 @@ uniform ${precision} ${type} u_${name};
76179
76077
  }
76180
76078
 
76181
76079
  /*
76182
- * Application Insights JavaScript SDK - Core, 3.0.5
76080
+ * Application Insights JavaScript SDK - Core, 3.0.7
76183
76081
  * Copyright (c) Microsoft and contributors. All rights reserved.
76184
76082
  */
76185
76083
 
@@ -76208,7 +76106,7 @@ uniform ${precision} ${type} u_${name};
76208
76106
  }
76209
76107
 
76210
76108
  /*
76211
- * Application Insights JavaScript SDK - Core, 3.0.5
76109
+ * Application Insights JavaScript SDK - Core, 3.0.7
76212
76110
  * Copyright (c) Microsoft and contributors. All rights reserved.
76213
76111
  */
76214
76112
  var DEFAULT_VERSION = "00";
@@ -76302,7 +76200,7 @@ uniform ${precision} ${type} u_${name};
76302
76200
  }
76303
76201
 
76304
76202
  /*
76305
- * Application Insights JavaScript SDK - Core, 3.0.5
76203
+ * Application Insights JavaScript SDK - Core, 3.0.7
76306
76204
  * Copyright (c) Microsoft and contributors. All rights reserved.
76307
76205
  */
76308
76206
 
@@ -76419,7 +76317,7 @@ uniform ${precision} ${type} u_${name};
76419
76317
  }
76420
76318
 
76421
76319
  /*
76422
- * Application Insights JavaScript SDK - Core, 3.0.5
76320
+ * Application Insights JavaScript SDK - Core, 3.0.7
76423
76321
  * Copyright (c) Microsoft and contributors. All rights reserved.
76424
76322
  */
76425
76323
 
@@ -76876,7 +76774,7 @@ uniform ${precision} ${type} u_${name};
76876
76774
  }
76877
76775
 
76878
76776
  /*
76879
- * Application Insights JavaScript SDK - Core, 3.0.5
76777
+ * Application Insights JavaScript SDK - Core, 3.0.7
76880
76778
  * Copyright (c) Microsoft and contributors. All rights reserved.
76881
76779
  */
76882
76780
 
@@ -76905,7 +76803,7 @@ uniform ${precision} ${type} u_${name};
76905
76803
  }
76906
76804
 
76907
76805
  /*
76908
- * Application Insights JavaScript SDK - Core, 3.0.5
76806
+ * Application Insights JavaScript SDK - Core, 3.0.7
76909
76807
  * Copyright (c) Microsoft and contributors. All rights reserved.
76910
76808
  */
76911
76809
 
@@ -76942,7 +76840,7 @@ uniform ${precision} ${type} u_${name};
76942
76840
  }
76943
76841
 
76944
76842
  /*
76945
- * Application Insights JavaScript SDK - Core, 3.0.5
76843
+ * Application Insights JavaScript SDK - Core, 3.0.7
76946
76844
  * Copyright (c) Microsoft and contributors. All rights reserved.
76947
76845
  */
76948
76846
 
@@ -77123,7 +77021,7 @@ uniform ${precision} ${type} u_${name};
77123
77021
  }());
77124
77022
 
77125
77023
  /*
77126
- * Application Insights JavaScript SDK - Core, 3.0.5
77024
+ * Application Insights JavaScript SDK - Core, 3.0.7
77127
77025
  * Copyright (c) Microsoft and contributors. All rights reserved.
77128
77026
  */
77129
77027
  //
@@ -77206,7 +77104,7 @@ uniform ${precision} ${type} u_${name};
77206
77104
  }(BaseTelemetryPlugin));
77207
77105
 
77208
77106
  /*
77209
- * Application Insights JavaScript SDK - Core, 3.0.5
77107
+ * Application Insights JavaScript SDK - Core, 3.0.7
77210
77108
  * Copyright (c) Microsoft and contributors. All rights reserved.
77211
77109
  */
77212
77110
 
@@ -78170,7 +78068,7 @@ uniform ${precision} ${type} u_${name};
78170
78068
  }());
78171
78069
 
78172
78070
  /*
78173
- * Application Insights JavaScript SDK - Core, 3.0.5
78071
+ * Application Insights JavaScript SDK - Core, 3.0.7
78174
78072
  * Copyright (c) Microsoft and contributors. All rights reserved.
78175
78073
  */
78176
78074
 
@@ -78552,7 +78450,7 @@ uniform ${precision} ${type} u_${name};
78552
78450
  }
78553
78451
 
78554
78452
  /*
78555
- * Application Insights JavaScript SDK - Core, 3.0.5
78453
+ * Application Insights JavaScript SDK - Core, 3.0.7
78556
78454
  * Copyright (c) Microsoft and contributors. All rights reserved.
78557
78455
  */
78558
78456
 
@@ -78759,7 +78657,7 @@ uniform ${precision} ${type} u_${name};
78759
78657
  }
78760
78658
 
78761
78659
  /*
78762
- * Application Insights JavaScript SDK - Common, 3.0.5
78660
+ * Application Insights JavaScript SDK - Common, 3.0.7
78763
78661
  * Copyright (c) Microsoft and contributors. All rights reserved.
78764
78662
  */
78765
78663
 
@@ -78781,7 +78679,7 @@ uniform ${precision} ${type} u_${name};
78781
78679
  var strIkey = "iKey";
78782
78680
 
78783
78681
  /*
78784
- * Application Insights JavaScript SDK - Common, 3.0.5
78682
+ * Application Insights JavaScript SDK - Common, 3.0.7
78785
78683
  * Copyright (c) Microsoft and contributors. All rights reserved.
78786
78684
  */
78787
78685
 
@@ -78798,7 +78696,7 @@ uniform ${precision} ${type} u_${name};
78798
78696
  });
78799
78697
 
78800
78698
  /*
78801
- * Application Insights JavaScript SDK - Common, 3.0.5
78699
+ * Application Insights JavaScript SDK - Common, 3.0.7
78802
78700
  * Copyright (c) Microsoft and contributors. All rights reserved.
78803
78701
  */
78804
78702
 
@@ -78848,7 +78746,7 @@ uniform ${precision} ${type} u_${name};
78848
78746
  var _DYN_RECEIVED_RESPONSE = "receivedResponse"; // Count: 2
78849
78747
 
78850
78748
  /*
78851
- * Application Insights JavaScript SDK - Common, 3.0.5
78749
+ * Application Insights JavaScript SDK - Common, 3.0.7
78852
78750
  * Copyright (c) Microsoft and contributors. All rights reserved.
78853
78751
  */
78854
78752
 
@@ -78970,7 +78868,7 @@ uniform ${precision} ${type} u_${name};
78970
78868
  }
78971
78869
 
78972
78870
  /*
78973
- * Application Insights JavaScript SDK - Common, 3.0.5
78871
+ * Application Insights JavaScript SDK - Common, 3.0.7
78974
78872
  * Copyright (c) Microsoft and contributors. All rights reserved.
78975
78873
  */
78976
78874
 
@@ -79049,7 +78947,7 @@ uniform ${precision} ${type} u_${name};
79049
78947
  }
79050
78948
 
79051
78949
  /*
79052
- * Application Insights JavaScript SDK - Common, 3.0.5
78950
+ * Application Insights JavaScript SDK - Common, 3.0.7
79053
78951
  * Copyright (c) Microsoft and contributors. All rights reserved.
79054
78952
  */
79055
78953
 
@@ -79233,22 +79131,17 @@ uniform ${precision} ${type} u_${name};
79233
79131
  }
79234
79132
 
79235
79133
  /*
79236
- * Application Insights JavaScript SDK - Common, 3.0.5
79134
+ * Application Insights JavaScript SDK - Common, 3.0.7
79237
79135
  * Copyright (c) Microsoft and contributors. All rights reserved.
79238
79136
  */
79239
79137
 
79240
79138
  var StorageType = createEnumStyle({
79241
79139
  LocalStorage: 0 /* eStorageType.LocalStorage */,
79242
79140
  SessionStorage: 1 /* eStorageType.SessionStorage */
79243
- });
79244
- createEnumStyle({
79245
- AI: 0 /* eDistributedTracingModes.AI */,
79246
- AI_AND_W3C: 1 /* eDistributedTracingModes.AI_AND_W3C */,
79247
- W3C: 2 /* eDistributedTracingModes.W3C */
79248
79141
  });
79249
79142
 
79250
79143
  /*
79251
- * Application Insights JavaScript SDK - Common, 3.0.5
79144
+ * Application Insights JavaScript SDK - Common, 3.0.7
79252
79145
  * Copyright (c) Microsoft and contributors. All rights reserved.
79253
79146
  */
79254
79147
 
@@ -79419,7 +79312,7 @@ uniform ${precision} ${type} u_${name};
79419
79312
  }
79420
79313
 
79421
79314
  /*
79422
- * Application Insights JavaScript SDK - Common, 3.0.5
79315
+ * Application Insights JavaScript SDK - Common, 3.0.7
79423
79316
  * Copyright (c) Microsoft and contributors. All rights reserved.
79424
79317
  */
79425
79318
  var THROTTLE_STORAGE_PREFIX = "appInsightsThrottle";
@@ -79802,7 +79695,7 @@ uniform ${precision} ${type} u_${name};
79802
79695
  }());
79803
79696
 
79804
79697
  /*
79805
- * Application Insights JavaScript SDK - Common, 3.0.5
79698
+ * Application Insights JavaScript SDK - Common, 3.0.7
79806
79699
  * Copyright (c) Microsoft and contributors. All rights reserved.
79807
79700
  */
79808
79701
 
@@ -79839,7 +79732,7 @@ uniform ${precision} ${type} u_${name};
79839
79732
  }
79840
79733
 
79841
79734
  /*
79842
- * Application Insights JavaScript SDK - Common, 3.0.5
79735
+ * Application Insights JavaScript SDK - Common, 3.0.7
79843
79736
  * Copyright (c) Microsoft and contributors. All rights reserved.
79844
79737
  */
79845
79738
 
@@ -79871,7 +79764,7 @@ uniform ${precision} ${type} u_${name};
79871
79764
  }());
79872
79765
 
79873
79766
  /*
79874
- * Application Insights JavaScript SDK - Common, 3.0.5
79767
+ * Application Insights JavaScript SDK - Common, 3.0.7
79875
79768
  * Copyright (c) Microsoft and contributors. All rights reserved.
79876
79769
  */
79877
79770
 
@@ -79898,7 +79791,7 @@ uniform ${precision} ${type} u_${name};
79898
79791
  }());
79899
79792
 
79900
79793
  /*
79901
- * Application Insights JavaScript SDK - Common, 3.0.5
79794
+ * Application Insights JavaScript SDK - Common, 3.0.7
79902
79795
  * Copyright (c) Microsoft and contributors. All rights reserved.
79903
79796
  */
79904
79797
 
@@ -80414,7 +80307,7 @@ uniform ${precision} ${type} u_${name};
80414
80307
  }());
80415
80308
 
80416
80309
  /*
80417
- * Application Insights JavaScript SDK - Common, 3.0.5
80310
+ * Application Insights JavaScript SDK - Common, 3.0.7
80418
80311
  * Copyright (c) Microsoft and contributors. All rights reserved.
80419
80312
  */
80420
80313
 
@@ -80442,7 +80335,7 @@ uniform ${precision} ${type} u_${name};
80442
80335
  }());
80443
80336
 
80444
80337
  /*
80445
- * Application Insights JavaScript SDK - Common, 3.0.5
80338
+ * Application Insights JavaScript SDK - Common, 3.0.7
80446
80339
  * Copyright (c) Microsoft and contributors. All rights reserved.
80447
80340
  */
80448
80341
 
@@ -80475,7 +80368,7 @@ uniform ${precision} ${type} u_${name};
80475
80368
  }());
80476
80369
 
80477
80370
  /*
80478
- * Application Insights JavaScript SDK - Common, 3.0.5
80371
+ * Application Insights JavaScript SDK - Common, 3.0.7
80479
80372
  * Copyright (c) Microsoft and contributors. All rights reserved.
80480
80373
  */
80481
80374
 
@@ -80504,7 +80397,7 @@ uniform ${precision} ${type} u_${name};
80504
80397
  }
80505
80398
 
80506
80399
  /*
80507
- * Application Insights JavaScript SDK - Common, 3.0.5
80400
+ * Application Insights JavaScript SDK - Common, 3.0.7
80508
80401
  * Copyright (c) Microsoft and contributors. All rights reserved.
80509
80402
  */
80510
80403
 
@@ -80539,7 +80432,7 @@ uniform ${precision} ${type} u_${name};
80539
80432
  }());
80540
80433
 
80541
80434
  /*
80542
- * Application Insights JavaScript SDK - Common, 3.0.5
80435
+ * Application Insights JavaScript SDK - Common, 3.0.7
80543
80436
  * Copyright (c) Microsoft and contributors. All rights reserved.
80544
80437
  */
80545
80438
 
@@ -80595,7 +80488,7 @@ uniform ${precision} ${type} u_${name};
80595
80488
  }());
80596
80489
 
80597
80490
  /*
80598
- * Application Insights JavaScript SDK - Common, 3.0.5
80491
+ * Application Insights JavaScript SDK - Common, 3.0.7
80599
80492
  * Copyright (c) Microsoft and contributors. All rights reserved.
80600
80493
  */
80601
80494
 
@@ -80626,7 +80519,7 @@ uniform ${precision} ${type} u_${name};
80626
80519
  }());
80627
80520
 
80628
80521
  /*
80629
- * Application Insights JavaScript SDK - Common, 3.0.5
80522
+ * Application Insights JavaScript SDK - Common, 3.0.7
80630
80523
  * Copyright (c) Microsoft and contributors. All rights reserved.
80631
80524
  */
80632
80525
 
@@ -80669,7 +80562,7 @@ uniform ${precision} ${type} u_${name};
80669
80562
  }());
80670
80563
 
80671
80564
  /*
80672
- * Application Insights JavaScript SDK - Common, 3.0.5
80565
+ * Application Insights JavaScript SDK - Common, 3.0.7
80673
80566
  * Copyright (c) Microsoft and contributors. All rights reserved.
80674
80567
  */
80675
80568
 
@@ -80693,7 +80586,7 @@ uniform ${precision} ${type} u_${name};
80693
80586
  }());
80694
80587
 
80695
80588
  /*
80696
- * Application Insights JavaScript SDK - Common, 3.0.5
80589
+ * Application Insights JavaScript SDK - Common, 3.0.7
80697
80590
  * Copyright (c) Microsoft and contributors. All rights reserved.
80698
80591
  */
80699
80592
 
@@ -80778,7 +80671,7 @@ uniform ${precision} ${type} u_${name};
80778
80671
  })));
80779
80672
 
80780
80673
  /*
80781
- * Application Insights JavaScript SDK - Common, 3.0.5
80674
+ * Application Insights JavaScript SDK - Common, 3.0.7
80782
80675
  * Copyright (c) Microsoft and contributors. All rights reserved.
80783
80676
  */
80784
80677
 
@@ -80825,7 +80718,7 @@ uniform ${precision} ${type} u_${name};
80825
80718
  }
80826
80719
 
80827
80720
  /*
80828
- * Application Insights JavaScript SDK - Common, 3.0.5
80721
+ * Application Insights JavaScript SDK - Common, 3.0.7
80829
80722
  * Copyright (c) Microsoft and contributors. All rights reserved.
80830
80723
  */
80831
80724
  var Extensions = {
@@ -80841,7 +80734,7 @@ uniform ${precision} ${type} u_${name};
80841
80734
  var CtxTagKeys = new ContextTagKeys();
80842
80735
 
80843
80736
  /*
80844
- * Application Insights JavaScript SDK - Common, 3.0.5
80737
+ * Application Insights JavaScript SDK - Common, 3.0.7
80845
80738
  * Copyright (c) Microsoft and contributors. All rights reserved.
80846
80739
  */
80847
80740
 
@@ -80861,7 +80754,7 @@ uniform ${precision} ${type} u_${name};
80861
80754
  }
80862
80755
 
80863
80756
  /*
80864
- * Application Insights JavaScript SDK - Common, 3.0.5
80757
+ * Application Insights JavaScript SDK - Common, 3.0.7
80865
80758
  * Copyright (c) Microsoft and contributors. All rights reserved.
80866
80759
  */
80867
80760
 
@@ -80870,7 +80763,7 @@ uniform ${precision} ${type} u_${name};
80870
80763
  var AnalyticsPluginIdentifier = "ApplicationInsightsAnalytics";
80871
80764
 
80872
80765
  /*
80873
- * Application Insights JavaScript SDK - Web Analytics, 3.0.5
80766
+ * Application Insights JavaScript SDK - Web Analytics, 3.0.7
80874
80767
  * Copyright (c) Microsoft and contributors. All rights reserved.
80875
80768
  */
80876
80769
 
@@ -80930,7 +80823,7 @@ uniform ${precision} ${type} u_${name};
80930
80823
  var _DYN_PAGE_VISIT_START_TIM18 = "pageVisitStartTime"; // Count: 2
80931
80824
 
80932
80825
  /*
80933
- * Application Insights JavaScript SDK - Web Analytics, 3.0.5
80826
+ * Application Insights JavaScript SDK - Web Analytics, 3.0.7
80934
80827
  * Copyright (c) Microsoft and contributors. All rights reserved.
80935
80828
  */
80936
80829
 
@@ -81127,7 +81020,7 @@ uniform ${precision} ${type} u_${name};
81127
81020
  }());
81128
81021
 
81129
81022
  /*
81130
- * Application Insights JavaScript SDK - Web Analytics, 3.0.5
81023
+ * Application Insights JavaScript SDK - Web Analytics, 3.0.7
81131
81024
  * Copyright (c) Microsoft and contributors. All rights reserved.
81132
81025
  */
81133
81026
 
@@ -81295,7 +81188,7 @@ uniform ${precision} ${type} u_${name};
81295
81188
  }());
81296
81189
 
81297
81190
  /*
81298
- * Application Insights JavaScript SDK - Web Analytics, 3.0.5
81191
+ * Application Insights JavaScript SDK - Web Analytics, 3.0.7
81299
81192
  * Copyright (c) Microsoft and contributors. All rights reserved.
81300
81193
  */
81301
81194
 
@@ -81396,7 +81289,7 @@ uniform ${precision} ${type} u_${name};
81396
81289
  }());
81397
81290
 
81398
81291
  /*
81399
- * Application Insights JavaScript SDK - Web Analytics, 3.0.5
81292
+ * Application Insights JavaScript SDK - Web Analytics, 3.0.7
81400
81293
  * Copyright (c) Microsoft and contributors. All rights reserved.
81401
81294
  */
81402
81295
 
@@ -81431,7 +81324,7 @@ uniform ${precision} ${type} u_${name};
81431
81324
  }());
81432
81325
 
81433
81326
  /*
81434
- * Application Insights JavaScript SDK - Web Analytics, 3.0.5
81327
+ * Application Insights JavaScript SDK - Web Analytics, 3.0.7
81435
81328
  * Copyright (c) Microsoft and contributors. All rights reserved.
81436
81329
  */
81437
81330
  /**
@@ -82116,12 +82009,12 @@ uniform ${precision} ${type} u_${name};
82116
82009
  // Removed Stub for AnalyticsPlugin.prototype._onerror.
82117
82010
  // Removed Stub for AnalyticsPlugin.prototype.addTelemetryInitializer.
82118
82011
  // Removed Stub for AnalyticsPlugin.prototype.initialize.
82119
- AnalyticsPlugin.Version = '3.0.5'; // Not currently used anywhere
82012
+ AnalyticsPlugin.Version = '3.0.7'; // Not currently used anywhere
82120
82013
  return AnalyticsPlugin;
82121
82014
  }(BaseTelemetryPlugin));
82122
82015
 
82123
82016
  /*
82124
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
82017
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
82125
82018
  * Copyright (c) Microsoft and contributors. All rights reserved.
82126
82019
  */
82127
82020
 
@@ -82139,7 +82032,7 @@ uniform ${precision} ${type} u_${name};
82139
82032
  var _DYN_SCHEDULE_FETCH_TIMEO1 = "scheduleFetchTimeout"; // Count: 2
82140
82033
 
82141
82034
  /*
82142
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
82035
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
82143
82036
  * Copyright (c) Microsoft and contributors. All rights reserved.
82144
82037
  */
82145
82038
  /**
@@ -82307,7 +82200,7 @@ uniform ${precision} ${type} u_${name};
82307
82200
  }
82308
82201
 
82309
82202
  /*
82310
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
82203
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
82311
82204
  * Copyright (c) Microsoft and contributors. All rights reserved.
82312
82205
  */
82313
82206
  /**
@@ -82684,7 +82577,7 @@ uniform ${precision} ${type} u_${name};
82684
82577
  }(BaseTelemetryPlugin));
82685
82578
 
82686
82579
  /*
82687
- * Application Insights JavaScript SDK - Channel, 3.0.5
82580
+ * Application Insights JavaScript SDK - Channel, 3.0.7
82688
82581
  * Copyright (c) Microsoft and contributors. All rights reserved.
82689
82582
  */
82690
82583
 
@@ -82697,7 +82590,7 @@ uniform ${precision} ${type} u_${name};
82697
82590
  var STR_DURATION$1 = "duration";
82698
82591
 
82699
82592
  /*
82700
- * Application Insights JavaScript SDK - Channel, 3.0.5
82593
+ * Application Insights JavaScript SDK - Channel, 3.0.7
82701
82594
  * Copyright (c) Microsoft and contributors. All rights reserved.
82702
82595
  */
82703
82596
 
@@ -82711,7 +82604,7 @@ uniform ${precision} ${type} u_${name};
82711
82604
  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
82712
82605
  var _DYN_TAGS = "tags"; // Count: 17
82713
82606
  var _DYN_DEVICE_TYPE = "deviceType"; // Count: 3
82714
- var _DYN_DATA = "data"; // Count: 18
82607
+ var _DYN_DATA = "data"; // Count: 17
82715
82608
  var _DYN_NAME$1 = "name"; // Count: 8
82716
82609
  var _DYN_TRACE_ID$1 = "traceID"; // Count: 5
82717
82610
  var _DYN_LENGTH$2 = "length"; // Count: 38
@@ -82731,7 +82624,7 @@ uniform ${precision} ${type} u_${name};
82731
82624
  var _DYN_CLEAR = "clear"; // Count: 7
82732
82625
  var _DYN_BATCH_PAYLOADS = "batchPayloads"; // Count: 3
82733
82626
  var _DYN_CREATE_NEW = "createNew"; // Count: 3
82734
- var _DYN_MARK_AS_SENT = "markAsSent"; // Count: 4
82627
+ var _DYN_MARK_AS_SENT = "markAsSent"; // Count: 5
82735
82628
  var _DYN_CLEAR_SENT = "clearSent"; // Count: 5
82736
82629
  var _DYN_BUFFER_OVERRIDE = "bufferOverride"; // Count: 3
82737
82630
  var _DYN__BUFFER__KEY = "BUFFER_KEY"; // Count: 5
@@ -82739,7 +82632,7 @@ uniform ${precision} ${type} u_${name};
82739
82632
  var _DYN__MAX__BUFFER__SIZE = "MAX_BUFFER_SIZE"; // Count: 5
82740
82633
  var _DYN_SEND_POST = "sendPOST"; // Count: 3
82741
82634
  var _DYN_TRIGGER_SEND = "triggerSend"; // Count: 5
82742
- var _DYN_DIAG_LOG = "diagLog"; // Count: 16
82635
+ var _DYN_DIAG_LOG = "diagLog"; // Count: 17
82743
82636
  var _DYN__SENDER = "_sender"; // Count: 5
82744
82637
  var _DYN_CUSTOM_HEADERS = "customHeaders"; // Count: 3
82745
82638
  var _DYN_MAX_BATCH_SIZE_IN_BY1 = "maxBatchSizeInBytes"; // Count: 2
@@ -82747,17 +82640,18 @@ uniform ${precision} ${type} u_${name};
82747
82640
  var _DYN_IS_BEACON_API_DISABL3 = "isBeaconApiDisabled"; // Count: 3
82748
82641
  var _DYN_ALWAYS_USE_XHR_OVERR4 = "alwaysUseXhrOverride"; // Count: 2
82749
82642
  var _DYN_ENABLE_SESSION_STORA5 = "enableSessionStorageBuffer"; // Count: 2
82750
- var _DYN__BUFFER = "_buffer"; // Count: 9
82643
+ var _DYN__BUFFER = "_buffer"; // Count: 10
82751
82644
  var _DYN_ONUNLOAD_DISABLE_FET6 = "onunloadDisableFetch"; // Count: 2
82645
+ var _DYN_DISABLE_SEND_BEACON_7 = "disableSendBeaconSplit"; // Count: 2
82752
82646
  var _DYN_INSTRUMENTATION_KEY$1 = "instrumentationKey"; // Count: 2
82753
82647
  var _DYN_CONVERT_UNDEFINED = "convertUndefined"; // Count: 2
82754
82648
  var _DYN_MAX_BATCH_INTERVAL = "maxBatchInterval"; // Count: 2
82755
82649
  var _DYN_BASE_TYPE = "baseType"; // Count: 4
82756
82650
  var _DYN_SAMPLE_RATE = "sampleRate"; // Count: 4
82757
- var _DYN__XHR_READY_STATE_CHA7 = "_xhrReadyStateChange"; // Count: 2
82651
+ var _DYN__XHR_READY_STATE_CHA8 = "_xhrReadyStateChange"; // Count: 2
82758
82652
  var _DYN__ON_ERROR = "_onError"; // Count: 7
82759
82653
  var _DYN__ON_PARTIAL_SUCCESS = "_onPartialSuccess"; // Count: 3
82760
- var _DYN__ON_SUCCESS = "_onSuccess"; // Count: 5
82654
+ var _DYN__ON_SUCCESS = "_onSuccess"; // Count: 6
82761
82655
  var _DYN_ITEMS_ACCEPTED = "itemsAccepted"; // Count: 5
82762
82656
  var _DYN_ITEMS_RECEIVED = "itemsReceived"; // Count: 6
82763
82657
  var _DYN_ORI_PAYLOAD = "oriPayload"; // Count: 5
@@ -82767,7 +82661,7 @@ uniform ${precision} ${type} u_${name};
82767
82661
  var _DYN_GET_HASH_CODE_SCORE = "getHashCodeScore"; // Count: 4
82768
82662
 
82769
82663
  /*
82770
- * Application Insights JavaScript SDK - Channel, 3.0.5
82664
+ * Application Insights JavaScript SDK - Channel, 3.0.7
82771
82665
  * Copyright (c) Microsoft and contributors. All rights reserved.
82772
82666
  */
82773
82667
  // these two constants are used to filter out properties not needed when trying to extract custom properties and measurements from the incoming payload
@@ -82908,7 +82802,7 @@ uniform ${precision} ${type} u_${name};
82908
82802
  }
82909
82803
  }
82910
82804
  var EnvelopeCreator = {
82911
- Version: '3.0.5'
82805
+ Version: '3.0.7'
82912
82806
  };
82913
82807
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
82914
82808
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -83066,7 +82960,7 @@ uniform ${precision} ${type} u_${name};
83066
82960
  }
83067
82961
 
83068
82962
  /*
83069
- * Application Insights JavaScript SDK - Channel, 3.0.5
82963
+ * Application Insights JavaScript SDK - Channel, 3.0.7
83070
82964
  * Copyright (c) Microsoft and contributors. All rights reserved.
83071
82965
  */
83072
82966
  function _disableEvents(target, evtNamespace) {
@@ -83155,7 +83049,7 @@ uniform ${precision} ${type} u_${name};
83155
83049
  }
83156
83050
 
83157
83051
  /*
83158
- * Application Insights JavaScript SDK - Channel, 3.0.5
83052
+ * Application Insights JavaScript SDK - Channel, 3.0.7
83159
83053
  * Copyright (c) Microsoft and contributors. All rights reserved.
83160
83054
  */
83161
83055
  var BaseSendBuffer = /** @class */ (function () {
@@ -83396,7 +83290,7 @@ uniform ${precision} ${type} u_${name};
83396
83290
  }(BaseSendBuffer));
83397
83291
 
83398
83292
  /*
83399
- * Application Insights JavaScript SDK - Channel, 3.0.5
83293
+ * Application Insights JavaScript SDK - Channel, 3.0.7
83400
83294
  * Copyright (c) Microsoft and contributors. All rights reserved.
83401
83295
  */
83402
83296
  var Serializer = /** @class */ (function () {
@@ -83562,7 +83456,7 @@ uniform ${precision} ${type} u_${name};
83562
83456
  }());
83563
83457
 
83564
83458
  /*
83565
- * Application Insights JavaScript SDK - Channel, 3.0.5
83459
+ * Application Insights JavaScript SDK - Channel, 3.0.7
83566
83460
  * Copyright (c) Microsoft and contributors. All rights reserved.
83567
83461
  */
83568
83462
 
@@ -83598,7 +83492,7 @@ uniform ${precision} ${type} u_${name};
83598
83492
  }());
83599
83493
 
83600
83494
  /*
83601
- * Application Insights JavaScript SDK - Channel, 3.0.5
83495
+ * Application Insights JavaScript SDK - Channel, 3.0.7
83602
83496
  * Copyright (c) Microsoft and contributors. All rights reserved.
83603
83497
  */
83604
83498
 
@@ -83632,7 +83526,7 @@ uniform ${precision} ${type} u_${name};
83632
83526
  }());
83633
83527
 
83634
83528
  /*
83635
- * Application Insights JavaScript SDK - Channel, 3.0.5
83529
+ * Application Insights JavaScript SDK - Channel, 3.0.7
83636
83530
  * Copyright (c) Microsoft and contributors. All rights reserved.
83637
83531
  */
83638
83532
 
@@ -83668,7 +83562,7 @@ uniform ${precision} ${type} u_${name};
83668
83562
  }());
83669
83563
 
83670
83564
  /*
83671
- * Application Insights JavaScript SDK - Channel, 3.0.5
83565
+ * Application Insights JavaScript SDK - Channel, 3.0.7
83672
83566
  * Copyright (c) Microsoft and contributors. All rights reserved.
83673
83567
  */
83674
83568
  var _a$3, _b$1;
@@ -83697,6 +83591,7 @@ uniform ${precision} ${type} u_${name};
83697
83591
  _a$3[_DYN_ENABLE_SESSION_STORA5 /* @min:enableSessionStorageBuffer */] = cfgDfBoolean(true),
83698
83592
  _a$3.isRetryDisabled = cfgDfBoolean(),
83699
83593
  _a$3[_DYN_IS_BEACON_API_DISABL3 /* @min:isBeaconApiDisabled */] = cfgDfBoolean(true),
83594
+ _a$3[_DYN_DISABLE_SEND_BEACON_7 /* @min:disableSendBeaconSplit */] = cfgDfBoolean(),
83700
83595
  _a$3.disableXhr = cfgDfBoolean(),
83701
83596
  _a$3[_DYN_ONUNLOAD_DISABLE_FET6 /* @min:onunloadDisableFetch */] = cfgDfBoolean(),
83702
83597
  _a$3[_DYN_ONUNLOAD_DISABLE_BEA2 /* @min:onunloadDisableBeacon */] = cfgDfBoolean(),
@@ -83758,6 +83653,8 @@ uniform ${precision} ${type} u_${name};
83758
83653
  var _disableXhr;
83759
83654
  var _fetchKeepAlive;
83760
83655
  var _xhrSend;
83656
+ var _fallbackSend;
83657
+ var _disableBeaconSplit;
83761
83658
  dynamicProto(Sender, _this, function (_self, _base) {
83762
83659
  _initDefaults();
83763
83660
  _self.pause = function () {
@@ -83879,6 +83776,7 @@ uniform ${precision} ${type} u_${name};
83879
83776
  _sessionStorageUsed = canUseSessionStorage;
83880
83777
  _bufferOverrideUsed = bufferOverride;
83881
83778
  _fetchKeepAlive = !senderConfig[_DYN_ONUNLOAD_DISABLE_FET6 /* @min:%2eonunloadDisableFetch */] && isFetchSupported(true);
83779
+ _disableBeaconSplit = !!senderConfig[_DYN_DISABLE_SEND_BEACON_7 /* @min:%2edisableSendBeaconSplit */];
83882
83780
  _self._sample = new Sample(senderConfig.samplingPercentage, diagLog);
83883
83781
  _instrumentationKey = senderConfig[_DYN_INSTRUMENTATION_KEY$1 /* @min:%2einstrumentationKey */];
83884
83782
  if (!_validateInstrumentationKey(_instrumentationKey, config)) {
@@ -83902,6 +83800,9 @@ uniform ${precision} ${type} u_${name};
83902
83800
  _xhrSend = function (payload, isAsync) {
83903
83801
  return _doSend(xhrInterface, payload, isAsync);
83904
83802
  };
83803
+ _fallbackSend = function (payload, isAsync) {
83804
+ return _doSend(xhrInterface, payload, isAsync, false);
83805
+ };
83905
83806
  if (!senderConfig[_DYN_IS_BEACON_API_DISABL3 /* @min:%2eisBeaconApiDisabled */] && isBeaconsSupported()) {
83906
83807
  // Config is set to always used beacon sending
83907
83808
  httpInterface = _getSenderInterface([3 /* TransportType.Beacon */], false);
@@ -84014,7 +83915,7 @@ uniform ${precision} ${type} u_${name};
84014
83915
  /**
84015
83916
  * xhr state changes
84016
83917
  */
84017
- _self[_DYN__XHR_READY_STATE_CHA7 /* @min:%2e_xhrReadyStateChange */] = function (xhr, payload, countOfItemsInPayload) {
83918
+ _self[_DYN__XHR_READY_STATE_CHA8 /* @min:%2e_xhrReadyStateChange */] = function (xhr, payload, countOfItemsInPayload) {
84018
83919
  if (xhr.readyState === 4) {
84019
83920
  _checkResponsStatus(xhr.status, payload, xhr.responseURL, countOfItemsInPayload, _formatErrorMessageXhr(xhr), _getResponseText(xhr) || xhr.response);
84020
83921
  }
@@ -84169,9 +84070,12 @@ uniform ${precision} ${type} u_${name};
84169
84070
  if (status === 200 && payload) {
84170
84071
  _self._onSuccess(payload, payload[_DYN_LENGTH$2 /* @min:%2elength */]);
84171
84072
  }
84172
- response && _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, response);
84073
+ else {
84074
+ response && _self[_DYN__ON_ERROR /* @min:%2e_onError */](payload, response);
84075
+ }
84173
84076
  }
84174
- function _doSend(sendInterface, payload, isAsync) {
84077
+ function _doSend(sendInterface, payload, isAsync, markAsSent) {
84078
+ if (markAsSent === void 0) { markAsSent = true; }
84175
84079
  var onComplete = function (status, headers, response) {
84176
84080
  return _getOnComplete(payload, status, headers, response);
84177
84081
  };
@@ -84180,7 +84084,9 @@ uniform ${precision} ${type} u_${name};
84180
84084
  if (sendPostFunc && payloadData) {
84181
84085
  // ***********************************************************************************************
84182
84086
  // mark payload as sent at the beginning of calling each send function
84183
- _self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);
84087
+ if (markAsSent) {
84088
+ _self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);
84089
+ }
84184
84090
  return sendPostFunc(payloadData, onComplete, !isAsync);
84185
84091
  }
84186
84092
  return null;
@@ -84300,9 +84206,6 @@ uniform ${precision} ${type} u_${name};
84300
84206
  }
84301
84207
  }
84302
84208
  function _doUnloadSend(payload, isAsync) {
84303
- var onComplete = function (status, headers, response) {
84304
- return _getOnComplete(payload, status, headers, response);
84305
- };
84306
84209
  if (_syncUnloadSender) {
84307
84210
  // We are unloading so always call the sender with sync set to false
84308
84211
  _syncUnloadSender(payload, false);
@@ -84310,19 +84213,26 @@ uniform ${precision} ${type} u_${name};
84310
84213
  else {
84311
84214
  // Fallback to the previous beacon Sender (which causes a CORB warning on chrome now)
84312
84215
  var payloadData = _getPayload(payload);
84313
- _beaconSender(payloadData, onComplete);
84216
+ _beaconSender(payloadData);
84314
84217
  }
84315
84218
  }
84316
84219
  function _doBeaconSend(payload, oncomplete) {
84317
84220
  var nav = getNavigator();
84318
84221
  var url = _endpointUrl;
84222
+ var buffer = _self[_DYN__BUFFER /* @min:%2e_buffer */];
84319
84223
  // Chrome only allows CORS-safelisted values for the sendBeacon data argument
84320
84224
  // see: https://bugs.chromium.org/p/chromium/issues/detail?id=720283
84321
- var plainTextBatch = new Blob([payload], { type: "text/plain;charset=UTF-8" });
84225
+ var batch = buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](payload);
84226
+ // Chrome only allows CORS-safelisted values for the sendBeacon data argument
84227
+ // see: https://bugs.chromium.org/p/chromium/issues/detail?id=720283
84228
+ var plainTextBatch = new Blob([batch], { type: "text/plain;charset=UTF-8" });
84322
84229
  // The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.
84323
84230
  var queued = nav.sendBeacon(url, plainTextBatch);
84324
84231
  if (queued) {
84325
- oncomplete(200, {}, payload);
84232
+ // Should NOT pass onComplete directly since onComplete will always be called at full batch level
84233
+ //buffer.markAsSent(payload);
84234
+ // no response from beaconSender, clear buffer
84235
+ _self._onSuccess(payload, payload[_DYN_LENGTH$2 /* @min:%2elength */]);
84326
84236
  }
84327
84237
  return queued;
84328
84238
  }
@@ -84335,25 +84245,27 @@ uniform ${precision} ${type} u_${name};
84335
84245
  */
84336
84246
  function _beaconSender(payload, oncomplete, sync) {
84337
84247
  var internalPayload = payload;
84338
- var data = internalPayload && internalPayload[_DYN_DATA /* @min:%2edata */];
84339
- if (isString(data) && data[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
84248
+ var data = internalPayload && internalPayload[_DYN_ORI_PAYLOAD /* @min:%2eoriPayload */];
84249
+ if (isArray(data) && data[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
84340
84250
  // The sendBeacon method returns true if the user agent is able to successfully queue the data for transfer. Otherwise it returns false.
84341
- if (!_doBeaconSend(data, oncomplete)) {
84342
- // Failed to send entire payload so try and split data and try to send as much events as possible
84343
- var droppedPayload = [];
84344
- var oriPayload = internalPayload[_DYN_ORI_PAYLOAD /* @min:%2eoriPayload */];
84345
- if (oriPayload[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
84251
+ if (!_doBeaconSend(data)) {
84252
+ if (!_disableBeaconSplit) {
84253
+ // Failed to send entire payload so try and split data and try to send as much events as possible
84254
+ var droppedPayload = [];
84346
84255
  for (var lp = 0; lp < data[_DYN_LENGTH$2 /* @min:%2elength */]; lp++) {
84347
- var thePayload = payload[lp];
84348
- var batch = _self._buffer[_DYN_BATCH_PAYLOADS /* @min:%2ebatchPayloads */](thePayload);
84349
- if (!_doBeaconSend(batch, oncomplete)) {
84256
+ var thePayload = data[lp];
84257
+ if (!_doBeaconSend([thePayload])) {
84350
84258
  // Can't send anymore, so split the batch and drop the rest
84351
84259
  droppedPayload[_DYN_PUSH /* @min:%2epush */](thePayload);
84352
84260
  }
84353
84261
  }
84262
+ if (droppedPayload[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
84263
+ _fallbackSend && _fallbackSend(droppedPayload, true);
84264
+ _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, ". " + "Failed to send telemetry with Beacon API, retried with normal sender.");
84265
+ }
84354
84266
  }
84355
- if (droppedPayload[_DYN_LENGTH$2 /* @min:%2elength */] > 0) {
84356
- _xhrSend && _xhrSend(droppedPayload, true);
84267
+ else {
84268
+ _fallbackSend && _fallbackSend(data, true);
84357
84269
  _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, ". " + "Failed to send telemetry with Beacon API, retried with normal sender.");
84358
84270
  }
84359
84271
  }
@@ -84417,16 +84329,17 @@ uniform ${precision} ${type} u_${name};
84417
84329
  payloadSize += payload[lp][_DYN_LENGTH$2 /* @min:%2elength */];
84418
84330
  }
84419
84331
  var payloadData = _getPayload(payload);
84332
+ _self._buffer[_DYN_MARK_AS_SENT /* @min:%2emarkAsSent */](payload);
84420
84333
  if ((_syncFetchPayload + payloadSize) <= FetchSyncRequestSizeLimitBytes) {
84421
84334
  _doFetchSender(payloadData, onComplete, true);
84422
84335
  }
84423
84336
  else if (isBeaconsSupported()) {
84424
84337
  // Fallback to beacon sender as we at least get told which events can't be scheduled
84425
- _beaconSender(payloadData, onComplete);
84338
+ _beaconSender(payloadData);
84426
84339
  }
84427
84340
  else {
84428
84341
  // Payload is going to be too big so just try and send via XHR
84429
- _xhrSend && _xhrSend(payload, true);
84342
+ _fallbackSend && _fallbackSend(payload, true);
84430
84343
  _throwInternal(_self[_DYN_DIAG_LOG /* @min:%2ediagLog */](), 2 /* eLoggingSeverity.WARNING */, 40 /* _eInternalMessageId.TransmissionFailed */, ". " + "Failed to send telemetry with Beacon API, retried with xhrSender.");
84431
84344
  }
84432
84345
  }
@@ -84741,7 +84654,9 @@ uniform ${precision} ${type} u_${name};
84741
84654
  _namePrefix = UNDEFINED_VALUE$1;
84742
84655
  _disableXhr = false;
84743
84656
  _fetchKeepAlive = false;
84657
+ _disableBeaconSplit = false;
84744
84658
  _xhrSend = null;
84659
+ _fallbackSend = null;
84745
84660
  objDefine(_self, "_senderConfig", {
84746
84661
  g: function () {
84747
84662
  return objExtend({}, defaultAppInsightsChannelConfig);
@@ -84779,7 +84694,7 @@ uniform ${precision} ${type} u_${name};
84779
84694
  }(BaseTelemetryPlugin));
84780
84695
 
84781
84696
  /*
84782
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.5
84697
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
84783
84698
  * Copyright (c) Microsoft and contributors. All rights reserved.
84784
84699
  */
84785
84700
 
@@ -84793,7 +84708,7 @@ uniform ${precision} ${type} u_${name};
84793
84708
  var STR_PROPERTIES = "properties";
84794
84709
 
84795
84710
  /*
84796
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.5
84711
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
84797
84712
  * Copyright (c) Microsoft and contributors. All rights reserved.
84798
84713
  */
84799
84714
 
@@ -84863,7 +84778,7 @@ uniform ${precision} ${type} u_${name};
84863
84778
  var _DYN_EVENT_TRACE_CTX = "eventTraceCtx"; // Count: 3
84864
84779
 
84865
84780
  /*
84866
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.5
84781
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
84867
84782
  * Copyright (c) Microsoft and contributors. All rights reserved.
84868
84783
  */
84869
84784
 
@@ -85157,7 +85072,7 @@ uniform ${precision} ${type} u_${name};
85157
85072
  }());
85158
85073
 
85159
85074
  /*
85160
- * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.5
85075
+ * Application Insights JavaScript SDK - Dependencies Plugin, 3.0.7
85161
85076
  * Copyright (c) Microsoft and contributors. All rights reserved.
85162
85077
  */
85163
85078
 
@@ -86305,7 +86220,7 @@ uniform ${precision} ${type} u_${name};
86305
86220
  }(BaseTelemetryPlugin));
86306
86221
 
86307
86222
  /*
86308
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86223
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86309
86224
  * Copyright (c) Microsoft and contributors. All rights reserved.
86310
86225
  */
86311
86226
 
@@ -86317,7 +86232,7 @@ uniform ${precision} ${type} u_${name};
86317
86232
  }());
86318
86233
 
86319
86234
  /*
86320
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86235
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86321
86236
  * Copyright (c) Microsoft and contributors. All rights reserved.
86322
86237
  */
86323
86238
 
@@ -86337,11 +86252,11 @@ uniform ${precision} ${type} u_${name};
86337
86252
  }());
86338
86253
 
86339
86254
  /*
86340
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86255
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86341
86256
  * Copyright (c) Microsoft and contributors. All rights reserved.
86342
86257
  */
86343
86258
 
86344
- var Version = '3.0.5';
86259
+ var Version = '3.0.7';
86345
86260
  var Internal = /** @class */ (function () {
86346
86261
  /**
86347
86262
  * Constructs a new instance of the internal telemetry data class.
@@ -86358,7 +86273,7 @@ uniform ${precision} ${type} u_${name};
86358
86273
  }());
86359
86274
 
86360
86275
  /*
86361
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86276
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86362
86277
  * Copyright (c) Microsoft and contributors. All rights reserved.
86363
86278
  */
86364
86279
 
@@ -86370,7 +86285,7 @@ uniform ${precision} ${type} u_${name};
86370
86285
  }());
86371
86286
 
86372
86287
  /*
86373
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86288
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86374
86289
  * Copyright (c) Microsoft and contributors. All rights reserved.
86375
86290
  */
86376
86291
 
@@ -86413,7 +86328,7 @@ uniform ${precision} ${type} u_${name};
86413
86328
  var _DYN_AUTH_USER_COOKIE_NAM7 = "authUserCookieName"; // Count: 3
86414
86329
 
86415
86330
  /*
86416
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86331
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86417
86332
  * Copyright (c) Microsoft and contributors. All rights reserved.
86418
86333
  */
86419
86334
 
@@ -86593,7 +86508,7 @@ uniform ${precision} ${type} u_${name};
86593
86508
  }());
86594
86509
 
86595
86510
  /*
86596
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86511
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86597
86512
  * Copyright (c) Microsoft and contributors. All rights reserved.
86598
86513
  */
86599
86514
 
@@ -86612,7 +86527,7 @@ uniform ${precision} ${type} u_${name};
86612
86527
  }());
86613
86528
 
86614
86529
  /*
86615
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86530
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86616
86531
  * Copyright (c) Microsoft and contributors. All rights reserved.
86617
86532
  */
86618
86533
 
@@ -86757,7 +86672,7 @@ uniform ${precision} ${type} u_${name};
86757
86672
  }());
86758
86673
 
86759
86674
  /*
86760
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86675
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86761
86676
  * Copyright (c) Microsoft and contributors. All rights reserved.
86762
86677
  */
86763
86678
  /**
@@ -86915,7 +86830,7 @@ uniform ${precision} ${type} u_${name};
86915
86830
  }());
86916
86831
 
86917
86832
  /*
86918
- * Application Insights JavaScript SDK - Properties Plugin, 3.0.5
86833
+ * Application Insights JavaScript SDK - Properties Plugin, 3.0.7
86919
86834
  * Copyright (c) Microsoft and contributors. All rights reserved.
86920
86835
  */
86921
86836
  /**
@@ -87062,7 +86977,7 @@ uniform ${precision} ${type} u_${name};
87062
86977
  var PropertiesPlugin$1 = PropertiesPlugin;
87063
86978
 
87064
86979
  /*
87065
- * Application Insights JavaScript SDK - Web, 3.0.5
86980
+ * Application Insights JavaScript SDK - Web, 3.0.7
87066
86981
  * Copyright (c) Microsoft and contributors. All rights reserved.
87067
86982
  */
87068
86983
 
@@ -87095,7 +87010,7 @@ uniform ${precision} ${type} u_${name};
87095
87010
  var STR_CLEAR_AUTHENTICATED_USER_CONTEXT = "clear" + _AUTHENTICATED_USER_CONTEXT;
87096
87011
 
87097
87012
  /*
87098
- * Application Insights JavaScript SDK - Web, 3.0.5
87013
+ * Application Insights JavaScript SDK - Web, 3.0.7
87099
87014
  * Copyright (c) Microsoft and contributors. All rights reserved.
87100
87015
  */
87101
87016
 
@@ -87119,7 +87034,7 @@ uniform ${precision} ${type} u_${name};
87119
87034
  var _DYN_UPDATE_SNIPPET_DEFIN1 = "updateSnippetDefinitions"; // Count: 2
87120
87035
 
87121
87036
  /*
87122
- * Application Insights JavaScript SDK - Web, 3.0.5
87037
+ * Application Insights JavaScript SDK - Web, 3.0.7
87123
87038
  * Copyright (c) Microsoft and contributors. All rights reserved.
87124
87039
  */
87125
87040
 
@@ -115339,10 +115254,10 @@ uniform ${precision} ${type} u_${name};
115339
115254
  */
115340
115255
  _this["enable-accessibility"] = _this.enableAccessibility;
115341
115256
  /**
115342
- * Enable fallback to geocoder for accessibility location, if failed to extract location from vector data.
115257
+ * Enable the fallback to the REST API geocoder for detecting location accessibility if extracting location from vector data fails.
115258
+ * Disabling this option will prevent the generation of geocode API requests but may lead to a lack of location information for screen readers.
115343
115259
  * default: true
115344
115260
  * @default true
115345
- * @internal
115346
115261
  */
115347
115262
  _this.enableAccessibilityLocationFallback = true;
115348
115263
  /**