@microsoft/applicationinsights-properties-js 3.0.0-beta.2210-14 → 3.0.0-beta.2210-16
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/browser/applicationinsights-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +223 -155
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.api.json +8 -8
- package/dist/applicationinsights-properties-js.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +223 -155
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/IPropertiesConfig.js +1 -1
- package/dist-esm/PropertiesPlugin.js +1 -1
- package/dist-esm/TelemetryContext.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +4 -4
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applicationinsights-properties-js",
|
|
3
|
-
"version": "3.0.0-beta.2210-
|
|
3
|
+
"version": "3.0.0-beta.2210-16",
|
|
4
4
|
"ext": {
|
|
5
5
|
"@js": {
|
|
6
6
|
"file": "applicationinsights-properties-js.js",
|
|
7
7
|
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-
|
|
8
|
+
"integrity": "sha256-dNVB2UbARBqyBpvQk4VDbc9lNQfTqo5UgcMhS/83DVE= sha384-xz7c/qwR/GHjrEROLfqijX2Qzd9DCZbbLCqPdc21AhUmLEfQswDwlebCGWymfUmC sha512-HbpS6kDiJsLf9BXdnnUIaGwvOvm8bUfkcvBBSGeNCVISfUXjW/7VqiRbWBAU7+wfAsTsBXjNBIfekUuwF0RoDA==",
|
|
9
9
|
"hashes": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"sha384": "
|
|
12
|
-
"sha512": "
|
|
10
|
+
"sha256": "dNVB2UbARBqyBpvQk4VDbc9lNQfTqo5UgcMhS/83DVE=",
|
|
11
|
+
"sha384": "xz7c/qwR/GHjrEROLfqijX2Qzd9DCZbbLCqPdc21AhUmLEfQswDwlebCGWymfUmC",
|
|
12
|
+
"sha512": "HbpS6kDiJsLf9BXdnnUIaGwvOvm8bUfkcvBBSGeNCVISfUXjW/7VqiRbWBAU7+wfAsTsBXjNBIfekUuwF0RoDA=="
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"@min.js": {
|
|
16
16
|
"file": "applicationinsights-properties-js.min.js",
|
|
17
17
|
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-
|
|
18
|
+
"integrity": "sha256-RCzvIRaxd3oNX17Hogne1VgzVZeAKLJdMEWXpnS1bZQ= sha384-uoMr8kd3G3suD0uIP6/kl970imCujDbscVMWpj27seVs6OaPpR7M5xpKY602E3v1 sha512-mSy1kaMTe1KDhbYN7Y/Dst6QiuY6OgKpuNzZ8+xYPTgIeyZwpwN7nkOdmohk0JQjKD3NEQxdI6sgIRM1TdeufA==",
|
|
19
19
|
"hashes": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"sha384": "
|
|
22
|
-
"sha512": "
|
|
20
|
+
"sha256": "RCzvIRaxd3oNX17Hogne1VgzVZeAKLJdMEWXpnS1bZQ=",
|
|
21
|
+
"sha384": "uoMr8kd3G3suD0uIP6/kl970imCujDbscVMWpj27seVs6OaPpR7M5xpKY602E3v1",
|
|
22
|
+
"sha512": "mSy1kaMTe1KDhbYN7Y/Dst6QiuY6OgKpuNzZ8+xYPTgIeyZwpwN7nkOdmohk0JQjKD3NEQxdI6sgIRM1TdeufA=="
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.0-beta.2210-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.0-beta.2210-16
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
var MathCls = Math;
|
|
378
378
|
var ArrCls = Array;
|
|
379
379
|
|
|
380
|
-
function
|
|
380
|
+
function _safeGet(cb, defValue) {
|
|
381
381
|
var result = defValue;
|
|
382
382
|
try {
|
|
383
383
|
result = cb();
|
|
@@ -421,59 +421,7 @@
|
|
|
421
421
|
var isNumber = _createIs(NUMBER);
|
|
422
422
|
var isError = _createObjIs("[object Error]");
|
|
423
423
|
function isTruthy(value) {
|
|
424
|
-
return !(!value ||
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
var DOCUMENT = "document";
|
|
428
|
-
var NAVIGATOR = "navigator";
|
|
429
|
-
var WINDOW = "window";
|
|
430
|
-
var _cachedGlobal = null;
|
|
431
|
-
var _hasWindow = _safeCheck(function () { return isDefined(window); }, false);
|
|
432
|
-
var _hasDocument = _safeCheck(function () { return isDefined(document); }, false);
|
|
433
|
-
var _hasNavigator = _safeCheck(function () { return isDefined(navigator); }, false);
|
|
434
|
-
_safeCheck(function () { return isDefined(history); }, false);
|
|
435
|
-
_safeCheck(function () { return !!(self && self instanceof WorkerGlobalScope); }, false);
|
|
436
|
-
_safeCheck(function () { return !!(process && (process.versions || {}).node); }, false);
|
|
437
|
-
function getGlobal(useCached) {
|
|
438
|
-
var result = useCached === false ? null : _cachedGlobal;
|
|
439
|
-
if (!result) {
|
|
440
|
-
if (!result && typeof globalThis !== UNDEFINED) {
|
|
441
|
-
result = globalThis;
|
|
442
|
-
}
|
|
443
|
-
if (!result && typeof self !== UNDEFINED) {
|
|
444
|
-
result = self;
|
|
445
|
-
}
|
|
446
|
-
if (!result && typeof window !== UNDEFINED) {
|
|
447
|
-
result = window;
|
|
448
|
-
}
|
|
449
|
-
if (!result && typeof global !== UNDEFINED) {
|
|
450
|
-
result = global;
|
|
451
|
-
}
|
|
452
|
-
_cachedGlobal = result;
|
|
453
|
-
}
|
|
454
|
-
return result;
|
|
455
|
-
}
|
|
456
|
-
function getInst(name, useCached) {
|
|
457
|
-
var gbl = getGlobal(useCached);
|
|
458
|
-
if (gbl && gbl[name]) {
|
|
459
|
-
return gbl[name];
|
|
460
|
-
}
|
|
461
|
-
if (name === WINDOW && _hasWindow) {
|
|
462
|
-
return window;
|
|
463
|
-
}
|
|
464
|
-
return null;
|
|
465
|
-
}
|
|
466
|
-
function getDocument() {
|
|
467
|
-
return _hasDocument ? document : getInst(DOCUMENT);
|
|
468
|
-
}
|
|
469
|
-
function hasWindow() {
|
|
470
|
-
return !!getWindow();
|
|
471
|
-
}
|
|
472
|
-
function getWindow() {
|
|
473
|
-
return _hasWindow ? window : getInst(WINDOW);
|
|
474
|
-
}
|
|
475
|
-
function getNavigator() {
|
|
476
|
-
return _hasNavigator ? navigator : getInst(NAVIGATOR);
|
|
424
|
+
return !(!value || _safeGet(function () { return !(value && (0 + value)); }, !value));
|
|
477
425
|
}
|
|
478
426
|
|
|
479
427
|
var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
|
|
@@ -537,18 +485,45 @@
|
|
|
537
485
|
return objDeepFreeze(theEnum);
|
|
538
486
|
}
|
|
539
487
|
|
|
540
|
-
var
|
|
488
|
+
var asString = StrCls;
|
|
489
|
+
|
|
490
|
+
var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
|
|
491
|
+
var _globalCfg;
|
|
492
|
+
function _getGlobalValue() {
|
|
493
|
+
var result;
|
|
494
|
+
if (typeof globalThis !== UNDEFINED) {
|
|
495
|
+
result = globalThis;
|
|
496
|
+
}
|
|
497
|
+
if (!result && typeof self !== UNDEFINED) {
|
|
498
|
+
result = self;
|
|
499
|
+
}
|
|
500
|
+
if (!result && typeof window !== UNDEFINED) {
|
|
501
|
+
result = window;
|
|
502
|
+
}
|
|
503
|
+
if (!result && typeof global !== UNDEFINED) {
|
|
504
|
+
result = global;
|
|
505
|
+
}
|
|
506
|
+
return result;
|
|
507
|
+
}
|
|
508
|
+
function _getGlobalConfig() {
|
|
509
|
+
if (!_globalCfg) {
|
|
510
|
+
var gbl = _getGlobalValue() || {};
|
|
511
|
+
_globalCfg = gbl[GLOBAL_CONFIG_KEY] = gbl[GLOBAL_CONFIG_KEY] || {};
|
|
512
|
+
}
|
|
513
|
+
return _globalCfg;
|
|
514
|
+
}
|
|
515
|
+
|
|
541
516
|
var _polySymbols;
|
|
542
517
|
function _globalSymbolRegistry() {
|
|
543
518
|
if (!_polySymbols) {
|
|
544
|
-
var
|
|
545
|
-
_polySymbols =
|
|
519
|
+
var gblCfg = _getGlobalConfig();
|
|
520
|
+
_polySymbols = gblCfg.gblSym = gblCfg.gblSym || { k: {}, s: {} };
|
|
546
521
|
}
|
|
547
522
|
return _polySymbols;
|
|
548
523
|
}
|
|
549
524
|
function polyNewSymbol(description) {
|
|
550
525
|
var theSymbol = {
|
|
551
|
-
description:
|
|
526
|
+
description: asString(description),
|
|
552
527
|
toString: function () { return SYMBOL + "(" + description + ")"; }
|
|
553
528
|
};
|
|
554
529
|
theSymbol[POLYFILL_TAG] = true;
|
|
@@ -559,96 +534,11 @@
|
|
|
559
534
|
if (!objHasOwn(registry, key)) {
|
|
560
535
|
var newSymbol = polyNewSymbol(key);
|
|
561
536
|
registry.k[key] = newSymbol;
|
|
562
|
-
registry.s[newSymbol] =
|
|
537
|
+
registry.s[newSymbol] = asString(key);
|
|
563
538
|
}
|
|
564
539
|
return registry.k[key];
|
|
565
540
|
}
|
|
566
541
|
|
|
567
|
-
var _hasSymbol = _safeCheck(function () { return isDefined(Symbol); }, false);
|
|
568
|
-
var _symbol = getInst(SYMBOL);
|
|
569
|
-
var _symbolFor = _symbol && _safeCheck(function () { return _symbol["for"]; }, null);
|
|
570
|
-
_symbol && _safeCheck(function () { return _symbol["keyFor"]; }, null);
|
|
571
|
-
function newSymbol(description, noPoly) {
|
|
572
|
-
return _hasSymbol ? Symbol(description) : (!noPoly ? polyNewSymbol(description) : null);
|
|
573
|
-
}
|
|
574
|
-
var symbolFor = _symbolFor || polySymbolFor;
|
|
575
|
-
|
|
576
|
-
function isIterator(value) {
|
|
577
|
-
return !!value && isFunction(value.next);
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
function arrAppend(target, elms) {
|
|
581
|
-
if (!isUndefined(elms) && target) {
|
|
582
|
-
if (isArray(elms)) {
|
|
583
|
-
target.push.apply(target, elms);
|
|
584
|
-
}
|
|
585
|
-
else if (isIterator(elms)) {
|
|
586
|
-
var value = elms.next();
|
|
587
|
-
while (!value[DONE]) {
|
|
588
|
-
target.push(value[VALUE]);
|
|
589
|
-
value = elms.next();
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
target.push(elms);
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
return target;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
function arrForEach(arr, callbackfn, thisArg) {
|
|
600
|
-
if (arr) {
|
|
601
|
-
var len = arr[LENGTH];
|
|
602
|
-
for (var idx = 0; idx < len; idx++) {
|
|
603
|
-
if (idx in arr) {
|
|
604
|
-
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
605
|
-
break;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
function dumpObj(object, format) {
|
|
613
|
-
var objectTypeDump = objToString(object);
|
|
614
|
-
var propertyValueDump = "";
|
|
615
|
-
if (objectTypeDump === "[object Error]") {
|
|
616
|
-
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
try {
|
|
620
|
-
if (format) {
|
|
621
|
-
if (isNumber(format)) {
|
|
622
|
-
propertyValueDump = JSON.stringify(object, null, format);
|
|
623
|
-
}
|
|
624
|
-
else {
|
|
625
|
-
propertyValueDump = JSON.stringify(object, null, 4);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
else {
|
|
629
|
-
propertyValueDump = JSON.stringify(object);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
catch (e) {
|
|
633
|
-
propertyValueDump = objToString(object) + " - " + dumpObj(e, format);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return objectTypeDump + ": " + propertyValueDump;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
function _unwrapFunction(funcName) {
|
|
640
|
-
return function (thisArg) {
|
|
641
|
-
var args = [];
|
|
642
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
643
|
-
args[_i - 1] = arguments[_i];
|
|
644
|
-
}
|
|
645
|
-
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
646
|
-
return thisArg[funcName].apply(thisArg, args);
|
|
647
|
-
}
|
|
648
|
-
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
|
|
652
542
|
function objSetPrototypeOf(obj, proto) {
|
|
653
543
|
var fn = ObjClass["setPrototypeOf"] ||
|
|
654
544
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
@@ -690,6 +580,33 @@
|
|
|
690
580
|
throw new _unsupportedError(message);
|
|
691
581
|
}
|
|
692
582
|
|
|
583
|
+
function dumpObj(object, format) {
|
|
584
|
+
var objectTypeDump = objToString(object);
|
|
585
|
+
var propertyValueDump = "";
|
|
586
|
+
if (objectTypeDump === "[object Error]") {
|
|
587
|
+
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
try {
|
|
591
|
+
if (format) {
|
|
592
|
+
if (isNumber(format)) {
|
|
593
|
+
propertyValueDump = JSON.stringify(object, null, format);
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
propertyValueDump = JSON.stringify(object, null, 4);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
propertyValueDump = JSON.stringify(object);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
catch (e) {
|
|
604
|
+
propertyValueDump = objToString(object) + " - " + dumpObj(e, format);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return objectTypeDump + ": " + propertyValueDump;
|
|
608
|
+
}
|
|
609
|
+
|
|
693
610
|
var _objDefineProperty$1 = ObjClass["defineProperty"];
|
|
694
611
|
function objDefineProp(target, key, descriptor) {
|
|
695
612
|
if (_objDefineProperty$1) {
|
|
@@ -698,6 +615,19 @@
|
|
|
698
615
|
}
|
|
699
616
|
throwUnsupported("Unable to define property [" + objToString(key) + "] on " + dumpObj(target));
|
|
700
617
|
}
|
|
618
|
+
function objDefineGet(target, key, value, configurable) {
|
|
619
|
+
var desc = {
|
|
620
|
+
enumerable: true,
|
|
621
|
+
configurable: isUndefined(configurable) ? true : configurable
|
|
622
|
+
};
|
|
623
|
+
if (isFunction(value)) {
|
|
624
|
+
desc.get = value;
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
desc[VALUE] = value;
|
|
628
|
+
}
|
|
629
|
+
return objDefineProp(target, key, desc);
|
|
630
|
+
}
|
|
701
631
|
function objDefineAccessors(target, prop, getProp, setProp, configurable) {
|
|
702
632
|
if (_objDefineProperty$1) {
|
|
703
633
|
try {
|
|
@@ -719,6 +649,145 @@
|
|
|
719
649
|
}
|
|
720
650
|
}
|
|
721
651
|
|
|
652
|
+
var _globalLazyTestHooks;
|
|
653
|
+
var _fetchLazyTestHooks = function () {
|
|
654
|
+
_globalLazyTestHooks = _getGlobalConfig();
|
|
655
|
+
_fetchLazyTestHooks = null;
|
|
656
|
+
};
|
|
657
|
+
function getLazy(cb) {
|
|
658
|
+
var lazyValue = {};
|
|
659
|
+
_fetchLazyTestHooks && _fetchLazyTestHooks();
|
|
660
|
+
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
661
|
+
objDefineGet(lazyValue, "v", function () {
|
|
662
|
+
var result = cb();
|
|
663
|
+
if (!_globalLazyTestHooks.lzy) {
|
|
664
|
+
objDefineProp(lazyValue, "v", {
|
|
665
|
+
enumerable: true,
|
|
666
|
+
configurable: true,
|
|
667
|
+
writable: false,
|
|
668
|
+
value: result
|
|
669
|
+
});
|
|
670
|
+
if (lazyValue.b) {
|
|
671
|
+
delete lazyValue.b;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
if (_globalLazyTestHooks.lzy && lazyValue.b !== _globalLazyTestHooks.lzy) {
|
|
675
|
+
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
676
|
+
}
|
|
677
|
+
return result;
|
|
678
|
+
}, true);
|
|
679
|
+
return lazyValue;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
function _lazySafeGet(cb, defValue) {
|
|
683
|
+
return getLazy(function () { return _safeGet(cb, defValue); });
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
var DOCUMENT = "document";
|
|
687
|
+
var NAVIGATOR = "navigator";
|
|
688
|
+
var WINDOW = "window";
|
|
689
|
+
var _cachedGlobal;
|
|
690
|
+
var _cachedWindow;
|
|
691
|
+
var _cachedDocument;
|
|
692
|
+
var _cachedNavigator;
|
|
693
|
+
function getGlobal(useCached) {
|
|
694
|
+
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = _lazySafeGet(_getGlobalValue, null));
|
|
695
|
+
return _cachedGlobal.v;
|
|
696
|
+
}
|
|
697
|
+
function getInst(name, useCached) {
|
|
698
|
+
var gbl = getGlobal(useCached);
|
|
699
|
+
if (gbl && gbl[name]) {
|
|
700
|
+
return gbl[name];
|
|
701
|
+
}
|
|
702
|
+
if (name === WINDOW && _cachedWindow) {
|
|
703
|
+
return _cachedWindow.v;
|
|
704
|
+
}
|
|
705
|
+
return null;
|
|
706
|
+
}
|
|
707
|
+
function getDocument() {
|
|
708
|
+
(!_cachedDocument || (_globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = _lazySafeGet(function () { return getInst(DOCUMENT); }, UNDEF_VALUE));
|
|
709
|
+
return _cachedDocument.v;
|
|
710
|
+
}
|
|
711
|
+
function hasWindow() {
|
|
712
|
+
return !!getWindow();
|
|
713
|
+
}
|
|
714
|
+
function getWindow() {
|
|
715
|
+
(!_cachedWindow || (_globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = _lazySafeGet(function () { return getInst(WINDOW); }, UNDEF_VALUE));
|
|
716
|
+
return _cachedWindow.v;
|
|
717
|
+
}
|
|
718
|
+
function getNavigator() {
|
|
719
|
+
(!_cachedNavigator || (_globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = _lazySafeGet(function () { return getInst(NAVIGATOR); }, UNDEF_VALUE));
|
|
720
|
+
return _cachedNavigator.v;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
var _symbol;
|
|
724
|
+
var _symbolFor;
|
|
725
|
+
var _symbolKeyFor;
|
|
726
|
+
function getSymbol() {
|
|
727
|
+
var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b);
|
|
728
|
+
resetCache && (_symbol = _lazySafeGet(function () { return isDefined(Symbol) ? getInst(SYMBOL) : UNDEF_VALUE; }, UNDEF_VALUE));
|
|
729
|
+
(!_symbolFor || resetCache) && (_symbolFor = _lazySafeGet(function () { return _symbol.v ? _symbol["for"] : UNDEF_VALUE; }, UNDEF_VALUE));
|
|
730
|
+
(!_symbolKeyFor || resetCache) && (_symbolKeyFor = _lazySafeGet(function () { return _symbol.v ? _symbol["keyFor"] : UNDEF_VALUE; }, UNDEF_VALUE));
|
|
731
|
+
return _symbol.v;
|
|
732
|
+
}
|
|
733
|
+
function newSymbol(description, noPoly) {
|
|
734
|
+
(!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
735
|
+
return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : null);
|
|
736
|
+
}
|
|
737
|
+
function symbolFor(key) {
|
|
738
|
+
(!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
739
|
+
return (_symbolFor.v || polySymbolFor)(key);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
function isIterator(value) {
|
|
743
|
+
return !!value && isFunction(value.next);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
function arrAppend(target, elms) {
|
|
747
|
+
if (!isUndefined(elms) && target) {
|
|
748
|
+
if (isArray(elms)) {
|
|
749
|
+
target.push.apply(target, elms);
|
|
750
|
+
}
|
|
751
|
+
else if (isIterator(elms)) {
|
|
752
|
+
var value = elms.next();
|
|
753
|
+
while (!value[DONE]) {
|
|
754
|
+
target.push(value[VALUE]);
|
|
755
|
+
value = elms.next();
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
else {
|
|
759
|
+
target.push(elms);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return target;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
function arrForEach(arr, callbackfn, thisArg) {
|
|
766
|
+
if (arr) {
|
|
767
|
+
var len = arr[LENGTH];
|
|
768
|
+
for (var idx = 0; idx < len; idx++) {
|
|
769
|
+
if (idx in arr) {
|
|
770
|
+
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
771
|
+
break;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
function _unwrapFunction(funcName) {
|
|
779
|
+
return function (thisArg) {
|
|
780
|
+
var args = [];
|
|
781
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
782
|
+
args[_i - 1] = arguments[_i];
|
|
783
|
+
}
|
|
784
|
+
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
785
|
+
return thisArg[funcName].apply(thisArg, args);
|
|
786
|
+
}
|
|
787
|
+
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
|
|
722
791
|
var mathMax = MathCls.max;
|
|
723
792
|
|
|
724
793
|
var strSlice = _unwrapFunction("slice");
|
|
@@ -749,7 +818,7 @@
|
|
|
749
818
|
if (!isString(value)) {
|
|
750
819
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
751
820
|
}
|
|
752
|
-
var searchValue = isString(searchString) ? searchString :
|
|
821
|
+
var searchValue = isString(searchString) ? searchString : asString(searchString);
|
|
753
822
|
var chkLen = searchValue[LENGTH];
|
|
754
823
|
var len = value[LENGTH];
|
|
755
824
|
var end = !isUndefined(length) && length < len ? length : len;
|
|
@@ -758,8 +827,6 @@
|
|
|
758
827
|
|
|
759
828
|
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
760
829
|
|
|
761
|
-
var asString = StrCls;
|
|
762
|
-
|
|
763
830
|
function _createTrimFn(exp) {
|
|
764
831
|
return function _doTrim(value) {
|
|
765
832
|
if (isNullOrUndefined(value)) {
|
|
@@ -784,21 +851,22 @@
|
|
|
784
851
|
return theArgs;
|
|
785
852
|
}
|
|
786
853
|
|
|
787
|
-
function _scheduleTimeoutWith(self,
|
|
788
|
-
var timeoutId =
|
|
854
|
+
function _scheduleTimeoutWith(self, setTimeoutFn, clearTimeoutFn, theArgs) {
|
|
855
|
+
var timeoutId = setTimeoutFn.apply(self, theArgs);
|
|
789
856
|
return {
|
|
790
857
|
cancel: function () {
|
|
791
|
-
|
|
858
|
+
timeoutId && clearTimeoutFn.call(self, timeoutId);
|
|
859
|
+
timeoutId = null;
|
|
792
860
|
},
|
|
793
861
|
refresh: function () {
|
|
794
|
-
|
|
795
|
-
timeoutId =
|
|
862
|
+
timeoutId && clearTimeoutFn.call(self, timeoutId);
|
|
863
|
+
timeoutId = setTimeoutFn.apply(self, theArgs);
|
|
796
864
|
return this;
|
|
797
865
|
}
|
|
798
866
|
};
|
|
799
867
|
}
|
|
800
868
|
function scheduleTimeout(callback, timeout) {
|
|
801
|
-
return _scheduleTimeoutWith(this, setTimeout, _extractArgs(arguments, 0));
|
|
869
|
+
return _scheduleTimeoutWith(this, setTimeout, clearTimeout, _extractArgs(arguments, 0));
|
|
802
870
|
}
|
|
803
871
|
|
|
804
872
|
var createEnumStyle = createEnum;
|
|
@@ -1126,7 +1194,7 @@
|
|
|
1126
1194
|
}
|
|
1127
1195
|
|
|
1128
1196
|
var _objDefineProperty = ObjDefineProperty;
|
|
1129
|
-
var version = "3.0.0-beta.2210-
|
|
1197
|
+
var version = "3.0.0-beta.2210-16";
|
|
1130
1198
|
var instanceName = "." + newId(6);
|
|
1131
1199
|
var _dataUid = 0;
|
|
1132
1200
|
function _createAccessor(target, prop, value) {
|