@microsoft/office-js
Version:
Office JavaScript APIs
721 lines (706 loc) • 148 kB
JavaScript
var oteljs_agave = function(modules) {
var installedModules = {};
function __webpack_require__(moduleId) {
if (installedModules[moduleId]) return installedModules[moduleId].exports;
var module = installedModules[moduleId] = {
i: moduleId,
l: !1,
exports: {}
};
return modules[moduleId].call(module.exports, module, module.exports, __webpack_require__),
module.l = !0, module.exports;
}
return __webpack_require__.m = modules, __webpack_require__.c = installedModules,
__webpack_require__.d = function(exports, name, getter) {
__webpack_require__.o(exports, name) || Object.defineProperty(exports, name, {
enumerable: !0,
get: getter
});
}, __webpack_require__.r = function(exports) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(exports, "__esModule", {
value: !0
});
}, __webpack_require__.t = function(value, mode) {
if (1 & mode && (value = __webpack_require__(value)), 8 & mode) return value;
if (4 & mode && "object" == typeof value && value && value.__esModule) return value;
var ns = Object.create(null);
if (__webpack_require__.r(ns), Object.defineProperty(ns, "default", {
enumerable: !0,
value: value
}), 2 & mode && "string" != typeof value) for (var key in value) __webpack_require__.d(ns, key, function(key) {
return value[key];
}.bind(null, key));
return ns;
}, __webpack_require__.n = function(module) {
var getter = module && module.__esModule ? function() {
return module.default;
} : function() {
return module;
};
return __webpack_require__.d(getter, "a", getter), getter;
}, __webpack_require__.o = function(object, property) {
return Object.prototype.hasOwnProperty.call(object, property);
}, __webpack_require__.p = "", __webpack_require__(__webpack_require__.s = 31);
}([ function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
}), function(AWTPropertyType) {
AWTPropertyType[AWTPropertyType.Unspecified = 0] = "Unspecified", AWTPropertyType[AWTPropertyType.String = 1] = "String",
AWTPropertyType[AWTPropertyType.Int64 = 2] = "Int64", AWTPropertyType[AWTPropertyType.Double = 3] = "Double",
AWTPropertyType[AWTPropertyType.Boolean = 4] = "Boolean", AWTPropertyType[AWTPropertyType.Date = 5] = "Date";
}(exports.AWTPropertyType || (exports.AWTPropertyType = {})), function(AWTPiiKind) {
AWTPiiKind[AWTPiiKind.NotSet = 0] = "NotSet", AWTPiiKind[AWTPiiKind.DistinguishedName = 1] = "DistinguishedName",
AWTPiiKind[AWTPiiKind.GenericData = 2] = "GenericData", AWTPiiKind[AWTPiiKind.IPV4Address = 3] = "IPV4Address",
AWTPiiKind[AWTPiiKind.IPv6Address = 4] = "IPv6Address", AWTPiiKind[AWTPiiKind.MailSubject = 5] = "MailSubject",
AWTPiiKind[AWTPiiKind.PhoneNumber = 6] = "PhoneNumber", AWTPiiKind[AWTPiiKind.QueryString = 7] = "QueryString",
AWTPiiKind[AWTPiiKind.SipAddress = 8] = "SipAddress", AWTPiiKind[AWTPiiKind.SmtpAddress = 9] = "SmtpAddress",
AWTPiiKind[AWTPiiKind.Identity = 10] = "Identity", AWTPiiKind[AWTPiiKind.Uri = 11] = "Uri",
AWTPiiKind[AWTPiiKind.Fqdn = 12] = "Fqdn", AWTPiiKind[AWTPiiKind.IPV4AddressLegacy = 13] = "IPV4AddressLegacy";
}(exports.AWTPiiKind || (exports.AWTPiiKind = {})), function(AWTCustomerContentKind) {
AWTCustomerContentKind[AWTCustomerContentKind.NotSet = 0] = "NotSet", AWTCustomerContentKind[AWTCustomerContentKind.GenericContent = 1] = "GenericContent";
}(exports.AWTCustomerContentKind || (exports.AWTCustomerContentKind = {})), function(AWTEventPriority) {
AWTEventPriority[AWTEventPriority.Low = 1] = "Low", AWTEventPriority[AWTEventPriority.Normal = 2] = "Normal",
AWTEventPriority[AWTEventPriority.High = 3] = "High", AWTEventPriority[AWTEventPriority.Immediate_sync = 5] = "Immediate_sync";
}(exports.AWTEventPriority || (exports.AWTEventPriority = {})), function(AWTEventsDroppedReason) {
AWTEventsDroppedReason[AWTEventsDroppedReason.NonRetryableStatus = 1] = "NonRetryableStatus",
AWTEventsDroppedReason[AWTEventsDroppedReason.QueueFull = 3] = "QueueFull", AWTEventsDroppedReason[AWTEventsDroppedReason.MaxRetryLimit = 4] = "MaxRetryLimit";
}(exports.AWTEventsDroppedReason || (exports.AWTEventsDroppedReason = {})), function(AWTEventsRejectedReason) {
AWTEventsRejectedReason[AWTEventsRejectedReason.InvalidEvent = 1] = "InvalidEvent",
AWTEventsRejectedReason[AWTEventsRejectedReason.SizeLimitExceeded = 2] = "SizeLimitExceeded",
AWTEventsRejectedReason[AWTEventsRejectedReason.KillSwitch = 3] = "KillSwitch";
}(exports.AWTEventsRejectedReason || (exports.AWTEventsRejectedReason = {}));
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var Enums_1 = __webpack_require__(0);
exports.AWTPropertyType = Enums_1.AWTPropertyType, exports.AWTPiiKind = Enums_1.AWTPiiKind,
exports.AWTEventPriority = Enums_1.AWTEventPriority, exports.AWTEventsDroppedReason = Enums_1.AWTEventsDroppedReason,
exports.AWTEventsRejectedReason = Enums_1.AWTEventsRejectedReason, exports.AWTCustomerContentKind = Enums_1.AWTCustomerContentKind;
var Enums_2 = __webpack_require__(6);
exports.AWTUserIdType = Enums_2.AWTUserIdType, exports.AWTSessionState = Enums_2.AWTSessionState;
var DataModels_1 = __webpack_require__(12);
exports.AWT_BEST_EFFORT = DataModels_1.AWT_BEST_EFFORT, exports.AWT_NEAR_REAL_TIME = DataModels_1.AWT_NEAR_REAL_TIME,
exports.AWT_REAL_TIME = DataModels_1.AWT_REAL_TIME;
var AWTEventProperties_1 = __webpack_require__(7);
exports.AWTEventProperties = AWTEventProperties_1.default;
var AWTLogger_1 = __webpack_require__(13);
exports.AWTLogger = AWTLogger_1.default;
var AWTLogManager_1 = __webpack_require__(17);
exports.AWTLogManager = AWTLogManager_1.default;
var AWTTransmissionManager_1 = __webpack_require__(30);
exports.AWTTransmissionManager = AWTTransmissionManager_1.default;
var AWTSerializer_1 = __webpack_require__(15);
exports.AWTSerializer = AWTSerializer_1.default;
var AWTSemanticContext_1 = __webpack_require__(9);
exports.AWTSemanticContext = AWTSemanticContext_1.default, exports.AWT_COLLECTOR_URL_UNITED_STATES = "https://us.pipe.aria.microsoft.com/Collector/3.0/",
exports.AWT_COLLECTOR_URL_GERMANY = "https://de.pipe.aria.microsoft.com/Collector/3.0/",
exports.AWT_COLLECTOR_URL_JAPAN = "https://jp.pipe.aria.microsoft.com/Collector/3.0/",
exports.AWT_COLLECTOR_URL_AUSTRALIA = "https://au.pipe.aria.microsoft.com/Collector/3.0/",
exports.AWT_COLLECTOR_URL_EUROPE = "https://eu.pipe.aria.microsoft.com/Collector/3.0/",
exports.AWT_COLLECTOR_URL_USGOV_DOD = "https://pf.pipe.aria.microsoft.com/Collector/3.0",
exports.AWT_COLLECTOR_URL_USGOV_DOJ = "https://tb.pipe.aria.microsoft.com/Collector/3.0";
}, , function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var microsoft_bond_primitives_1 = __webpack_require__(8), Enums_1 = __webpack_require__(0), GuidRegex = /[xy]/g;
exports.EventNameAndTypeRegex = /^[a-zA-Z]([a-zA-Z0-9]|_){2,98}[a-zA-Z0-9]$/, exports.EventNameDotRegex = /\./g,
exports.PropertyNameRegex = /^[a-zA-Z](([a-zA-Z0-9|_|\.]){0,98}[a-zA-Z0-9])?$/,
exports.StatsApiKey = "a387cfcf60114a43a7699f9fbb49289e-9bceb9fe-1c06-460f-96c5-6a0b247358bc-7238";
var beaconsSupported = null, uInt8ArraySupported = null, useXDR = null;
function isString(value) {
return "string" == typeof value;
}
function isNumber(value) {
return "number" == typeof value;
}
function isBoolean(value) {
return "boolean" == typeof value;
}
function isDate(value) {
return value instanceof Date;
}
function msToTicks(timeInMs) {
return 1e4 * (timeInMs + 621355968e5);
}
function isReactNative() {
return !("undefined" == typeof navigator || !navigator.product) && "ReactNative" === navigator.product;
}
function isServiceWorkerGlobalScope() {
return "object" == typeof self && "ServiceWorkerGlobalScope" === self.constructor.name;
}
function twoDigit(n) {
return n < 10 ? "0" + n : n.toString();
}
function isNotDefined(value) {
return null == value || "" === value;
}
exports.numberToBondInt64 = function(value) {
var bond_value = new microsoft_bond_primitives_1.Int64("0");
return bond_value.low = 4294967295 & value, bond_value.high = Math.floor(value / 4294967296),
bond_value;
}, exports.newGuid = function() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(GuidRegex, (function(c) {
var r = 16 * Math.random() | 0;
return ("x" === c ? r : 3 & r | 8).toString(16);
}));
}, exports.isString = isString, exports.isNumber = isNumber, exports.isBoolean = isBoolean,
exports.isDate = isDate, exports.msToTicks = msToTicks, exports.getTenantId = function(apiKey) {
var indexTenantId = apiKey.indexOf("-");
return indexTenantId > -1 ? apiKey.substring(0, indexTenantId) : "";
}, exports.isBeaconsSupported = function() {
return null === beaconsSupported && (beaconsSupported = "undefined" != typeof navigator && Boolean(navigator.sendBeacon)),
beaconsSupported;
}, exports.isUint8ArrayAvailable = function() {
return null === uInt8ArraySupported && (uInt8ArraySupported = "undefined" != typeof Uint8Array && !function() {
if ("undefined" != typeof navigator && navigator.userAgent) {
var ua = navigator.userAgent.toLowerCase();
if ((ua.indexOf("safari") >= 0 || ua.indexOf("firefox") >= 0) && ua.indexOf("chrome") < 0) return !0;
}
return !1;
}() && !isReactNative()), uInt8ArraySupported;
}, exports.isPriority = function(value) {
return !(!isNumber(value) || !(value >= 1 && value <= 3 || 5 === value));
}, exports.sanitizeProperty = function(name, property) {
return !exports.PropertyNameRegex.test(name) || isNotDefined(property) ? null : (isNotDefined(property.value) && (property = {
value: property,
type: Enums_1.AWTPropertyType.Unspecified
}), property.type = function(value, type) {
switch (type = function(value) {
if (isNumber(value) && value >= 0 && value <= 4) return !0;
return !1;
}(type) ? type : Enums_1.AWTPropertyType.Unspecified) {
case Enums_1.AWTPropertyType.Unspecified:
return function(value) {
switch (typeof value) {
case "string":
return Enums_1.AWTPropertyType.String;
case "boolean":
return Enums_1.AWTPropertyType.Boolean;
case "number":
return Enums_1.AWTPropertyType.Double;
case "object":
return isDate(value) ? Enums_1.AWTPropertyType.Date : null;
}
return null;
}(value);
case Enums_1.AWTPropertyType.String:
return isString(value) ? type : null;
case Enums_1.AWTPropertyType.Boolean:
return isBoolean(value) ? type : null;
case Enums_1.AWTPropertyType.Date:
return isDate(value) && NaN !== value.getTime() ? type : null;
case Enums_1.AWTPropertyType.Int64:
return isNumber(value) && value % 1 == 0 ? type : null;
case Enums_1.AWTPropertyType.Double:
return isNumber(value) ? type : null;
}
return null;
}(property.value, property.type), property.type ? (isDate(property.value) && (property.value = msToTicks(property.value.getTime())),
property.pii > 0 && property.cc > 0 ? null : property.pii ? function(value) {
if (isNumber(value) && value >= 0 && value <= 13) return !0;
return !1;
}(property.pii) ? property : null : property.cc ? function(value) {
if (isNumber(value) && value >= 0 && value <= 1) return !0;
return !1;
}(property.cc) ? property : null : property) : null);
}, exports.getISOString = function(date) {
return date.getUTCFullYear() + "-" + twoDigit(date.getUTCMonth() + 1) + "-" + twoDigit(date.getUTCDate()) + "T" + twoDigit(date.getUTCHours()) + ":" + twoDigit(date.getUTCMinutes()) + ":" + twoDigit(date.getUTCSeconds()) + "." + function(n) {
if (n < 10) return "00" + n;
if (n < 100) return "0" + n;
return n.toString();
}(date.getUTCMilliseconds()) + "Z";
}, exports.useXDomainRequest = function() {
if (null === useXDR) {
var conn = new XMLHttpRequest;
useXDR = "undefined" == typeof conn.withCredentials && "undefined" != typeof XDomainRequest;
}
return useXDR;
}, exports.useFetchRequest = function() {
return isReactNative() || isServiceWorkerGlobalScope();
}, exports.isReactNative = isReactNative, exports.isServiceWorkerGlobalScope = isServiceWorkerGlobalScope;
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var DataModels_1 = __webpack_require__(12), Enums_1 = __webpack_require__(0), AWTQueueManager_1 = __webpack_require__(11), AWTStatsManager_1 = __webpack_require__(14), AWTEventProperties_1 = __webpack_require__(7), AWTLogManager_1 = __webpack_require__(17), Utils = __webpack_require__(3), AWTTransmissionManagerCore = function() {
function AWTTransmissionManagerCore() {}
return AWTTransmissionManagerCore.setEventsHandler = function(eventsHandler) {
this._eventHandler = eventsHandler;
}, AWTTransmissionManagerCore.getEventsHandler = function() {
return this._eventHandler;
}, AWTTransmissionManagerCore.scheduleTimer = function() {
var _this = this, timer = this._profiles[this._currentProfile][2];
this._timeout < 0 && timer >= 0 && !this._paused && (this._eventHandler.hasEvents() ? (0 === timer && this._currentBackoffCount > 0 && (timer = 1),
this._timeout = setTimeout((function() {
return _this._batchAndSendEvents();
}), timer * (1 << this._currentBackoffCount) * 1e3)) : this._timerCount = 0);
}, AWTTransmissionManagerCore.initialize = function(config) {
var _this = this;
this._newEventsAllowed = !0, this._config = config, this._eventHandler = new AWTQueueManager_1.default(config.collectorUri, config.cacheMemorySizeLimitInNumberOfEvents, config.httpXHROverride, config.clockSkewRefreshDurationInMins),
this._initializeProfiles(), AWTStatsManager_1.default.initialize((function(stats, tenantId) {
if (_this._config.canSendStatEvent("awt_stats")) {
var event_1 = new AWTEventProperties_1.default("awt_stats");
for (var statKey in event_1.setEventPriority(Enums_1.AWTEventPriority.High), event_1.setProperty("TenantId", tenantId),
stats) stats.hasOwnProperty(statKey) && event_1.setProperty(statKey, stats[statKey].toString());
AWTLogManager_1.default.getLogger(Utils.StatsApiKey).logEvent(event_1);
}
}));
}, AWTTransmissionManagerCore.setTransmitProfile = function(profileName) {
this._currentProfile !== profileName && void 0 !== this._profiles[profileName] && (this.clearTimeout(),
this._currentProfile = profileName, this.scheduleTimer());
}, AWTTransmissionManagerCore.loadTransmitProfiles = function(profiles) {
for (var profileName in this._resetTransmitProfiles(), profiles) if (profiles.hasOwnProperty(profileName)) {
if (3 !== profiles[profileName].length) continue;
for (var i = 2; i >= 0; --i) if (profiles[profileName][i] < 0) {
for (var j = i; j >= 0; --j) profiles[profileName][j] = -1;
break;
}
for (i = 2; i > 0; --i) if (profiles[profileName][i] > 0 && profiles[profileName][i - 1] > 0) {
var timerMultiplier = profiles[profileName][i - 1] / profiles[profileName][i];
profiles[profileName][i - 1] = Math.ceil(timerMultiplier) * profiles[profileName][i];
}
this._profiles[profileName] = profiles[profileName];
}
}, AWTTransmissionManagerCore.sendEvent = function(event) {
this._newEventsAllowed && (this._currentBackoffCount > 0 && event.priority === Enums_1.AWTEventPriority.Immediate_sync && (event.priority = Enums_1.AWTEventPriority.High),
this._eventHandler.addEvent(event), this.scheduleTimer());
}, AWTTransmissionManagerCore.flush = function(callback) {
var currentTime = (new Date).getTime();
!this._paused && this._lastUploadNowCall + 3e4 < currentTime && (this._lastUploadNowCall = currentTime,
this._timeout > -1 && (clearTimeout(this._timeout), this._timeout = -1), this._eventHandler.uploadNow(callback));
}, AWTTransmissionManagerCore.pauseTransmission = function() {
this._paused || (this.clearTimeout(), this._eventHandler.pauseTransmission(), this._paused = !0);
}, AWTTransmissionManagerCore.resumeTransmision = function() {
this._paused && (this._paused = !1, this._eventHandler.resumeTransmission(), this.scheduleTimer());
}, AWTTransmissionManagerCore.flushAndTeardown = function() {
AWTStatsManager_1.default.teardown(), this._newEventsAllowed = !1, this.clearTimeout(),
this._eventHandler.teardown();
}, AWTTransmissionManagerCore.backOffTransmission = function() {
this._currentBackoffCount < 4 && (this._currentBackoffCount++, this.clearTimeout(),
this.scheduleTimer());
}, AWTTransmissionManagerCore.clearBackOff = function() {
this._currentBackoffCount > 0 && (this._currentBackoffCount = 0, this.clearTimeout(),
this.scheduleTimer());
}, AWTTransmissionManagerCore._resetTransmitProfiles = function() {
this.clearTimeout(), this._initializeProfiles(), this._currentProfile = DataModels_1.AWT_REAL_TIME,
this.scheduleTimer();
}, AWTTransmissionManagerCore.clearTimeout = function() {
this._timeout > 0 && (clearTimeout(this._timeout), this._timeout = -1, this._timerCount = 0);
}, AWTTransmissionManagerCore._batchAndSendEvents = function() {
var priority = Enums_1.AWTEventPriority.High;
this._timerCount++, this._timerCount * this._profiles[this._currentProfile][2] === this._profiles[this._currentProfile][0] ? (priority = Enums_1.AWTEventPriority.Low,
this._timerCount = 0) : this._timerCount * this._profiles[this._currentProfile][2] === this._profiles[this._currentProfile][1] && (priority = Enums_1.AWTEventPriority.Normal),
this._eventHandler.sendEventsForPriorityAndAbove(priority), this._timeout = -1,
this.scheduleTimer();
}, AWTTransmissionManagerCore._initializeProfiles = function() {
this._profiles = {}, this._profiles[DataModels_1.AWT_REAL_TIME] = [ 4, 2, 1 ], this._profiles[DataModels_1.AWT_NEAR_REAL_TIME] = [ 12, 6, 3 ],
this._profiles[DataModels_1.AWT_BEST_EFFORT] = [ 36, 18, 9 ];
}, AWTTransmissionManagerCore._newEventsAllowed = !1, AWTTransmissionManagerCore._currentProfile = DataModels_1.AWT_REAL_TIME,
AWTTransmissionManagerCore._timeout = -1, AWTTransmissionManagerCore._currentBackoffCount = 0,
AWTTransmissionManagerCore._paused = !1, AWTTransmissionManagerCore._timerCount = 0,
AWTTransmissionManagerCore._lastUploadNowCall = 0, AWTTransmissionManagerCore;
}();
exports.default = AWTTransmissionManagerCore;
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var AWTNotificationManager = function() {
function AWTNotificationManager() {}
return AWTNotificationManager.addNotificationListener = function(listener) {
this.listeners.push(listener);
}, AWTNotificationManager.removeNotificationListener = function(listener) {
for (var index = this.listeners.indexOf(listener); index > -1; ) this.listeners.splice(index, 1),
index = this.listeners.indexOf(listener);
}, AWTNotificationManager.eventsSent = function(events) {
for (var _this = this, _loop_1 = function(i) {
this_1.listeners[i].eventsSent && setTimeout((function() {
return _this.listeners[i].eventsSent(events);
}), 0);
}, this_1 = this, i = 0; i < this.listeners.length; ++i) _loop_1(i);
}, AWTNotificationManager.eventsDropped = function(events, reason) {
for (var _this = this, _loop_2 = function(i) {
this_2.listeners[i].eventsDropped && setTimeout((function() {
return _this.listeners[i].eventsDropped(events, reason);
}), 0);
}, this_2 = this, i = 0; i < this.listeners.length; ++i) _loop_2(i);
}, AWTNotificationManager.eventsRetrying = function(events) {
for (var _this = this, _loop_3 = function(i) {
this_3.listeners[i].eventsRetrying && setTimeout((function() {
return _this.listeners[i].eventsRetrying(events);
}), 0);
}, this_3 = this, i = 0; i < this.listeners.length; ++i) _loop_3(i);
}, AWTNotificationManager.eventsRejected = function(events, reason) {
for (var _this = this, _loop_4 = function(i) {
this_4.listeners[i].eventsRejected && setTimeout((function() {
return _this.listeners[i].eventsRejected(events, reason);
}), 0);
}, this_4 = this, i = 0; i < this.listeners.length; ++i) _loop_4(i);
}, AWTNotificationManager.listeners = [], AWTNotificationManager;
}();
exports.default = AWTNotificationManager;
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
}), function(AWTUserIdType) {
AWTUserIdType[AWTUserIdType.Unknown = 0] = "Unknown", AWTUserIdType[AWTUserIdType.MSACID = 1] = "MSACID",
AWTUserIdType[AWTUserIdType.MSAPUID = 2] = "MSAPUID", AWTUserIdType[AWTUserIdType.ANID = 3] = "ANID",
AWTUserIdType[AWTUserIdType.OrgIdCID = 4] = "OrgIdCID", AWTUserIdType[AWTUserIdType.OrgIdPUID = 5] = "OrgIdPUID",
AWTUserIdType[AWTUserIdType.UserObjectId = 6] = "UserObjectId", AWTUserIdType[AWTUserIdType.Skype = 7] = "Skype",
AWTUserIdType[AWTUserIdType.Yammer = 8] = "Yammer", AWTUserIdType[AWTUserIdType.EmailAddress = 9] = "EmailAddress",
AWTUserIdType[AWTUserIdType.PhoneNumber = 10] = "PhoneNumber", AWTUserIdType[AWTUserIdType.SipAddress = 11] = "SipAddress",
AWTUserIdType[AWTUserIdType.MUID = 12] = "MUID";
}(exports.AWTUserIdType || (exports.AWTUserIdType = {})), function(AWTSessionState) {
AWTSessionState[AWTSessionState.Started = 0] = "Started", AWTSessionState[AWTSessionState.Ended = 1] = "Ended";
}(exports.AWTSessionState || (exports.AWTSessionState = {}));
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var Utils = __webpack_require__(3), Enums_1 = __webpack_require__(0), AWTEventProperties = function() {
function AWTEventProperties(name) {
this._event = {
name: "",
properties: {}
}, name && this.setName(name);
}
return AWTEventProperties.prototype.setName = function(name) {
this._event.name = name;
}, AWTEventProperties.prototype.getName = function() {
return this._event.name;
}, AWTEventProperties.prototype.setType = function(type) {
this._event.type = type;
}, AWTEventProperties.prototype.getType = function() {
return this._event.type;
}, AWTEventProperties.prototype.setTimestamp = function(timestampInEpochMillis) {
this._event.timestamp = timestampInEpochMillis;
}, AWTEventProperties.prototype.getTimestamp = function() {
return this._event.timestamp;
}, AWTEventProperties.prototype.setEventPriority = function(priority) {
this._event.priority = priority;
}, AWTEventProperties.prototype.getEventPriority = function() {
return this._event.priority;
}, AWTEventProperties.prototype.setProperty = function(name, value, type) {
void 0 === type && (type = Enums_1.AWTPropertyType.Unspecified);
var property = {
value: value,
type: type,
pii: Enums_1.AWTPiiKind.NotSet,
cc: Enums_1.AWTCustomerContentKind.NotSet
};
null !== (property = Utils.sanitizeProperty(name, property)) ? this._event.properties[name] = property : delete this._event.properties[name];
}, AWTEventProperties.prototype.setPropertyWithPii = function(name, value, pii, type) {
void 0 === type && (type = Enums_1.AWTPropertyType.Unspecified);
var property = {
value: value,
type: type,
pii: pii,
cc: Enums_1.AWTCustomerContentKind.NotSet
};
null !== (property = Utils.sanitizeProperty(name, property)) ? this._event.properties[name] = property : delete this._event.properties[name];
}, AWTEventProperties.prototype.setPropertyWithCustomerContent = function(name, value, customerContent, type) {
void 0 === type && (type = Enums_1.AWTPropertyType.Unspecified);
var property = {
value: value,
type: type,
pii: Enums_1.AWTPiiKind.NotSet,
cc: customerContent
};
null !== (property = Utils.sanitizeProperty(name, property)) ? this._event.properties[name] = property : delete this._event.properties[name];
}, AWTEventProperties.prototype.getPropertyMap = function() {
return this._event.properties;
}, AWTEventProperties.prototype.getEvent = function() {
return this._event;
}, AWTEventProperties;
}();
exports.default = AWTEventProperties;
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var Int64 = function() {
function Int64(numberStr) {
this.low = 0, this.high = 0, this.low = parseInt(numberStr, 10), this.low < 0 && (this.high = -1);
}
return Int64.prototype._Equals = function(numberStr) {
var tmp = new Int64(numberStr);
return this.low === tmp.low && this.high === tmp.high;
}, Int64;
}();
exports.Int64 = Int64;
var UInt64 = function() {
function UInt64(numberStr) {
this.low = 0, this.high = 0, this.low = parseInt(numberStr, 10);
}
return UInt64.prototype._Equals = function(numberStr) {
var tmp = new UInt64(numberStr);
return this.low === tmp.low && this.high === tmp.high;
}, UInt64;
}();
exports.UInt64 = UInt64;
var Number = function() {
function Number() {}
return Number._ToByte = function(value) {
return this._ToUInt8(value);
}, Number._ToUInt8 = function(value) {
return 255 & value;
}, Number._ToInt32 = function(value) {
return 2147483647 & value | 2147483648 & value;
}, Number._ToUInt32 = function(value) {
return 4294967295 & value;
}, Number;
}();
exports.Number = Number;
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var AWTAutoCollection_1 = __webpack_require__(10), Enums_1 = __webpack_require__(0), Enums_2 = __webpack_require__(6), AWTSemanticContext = function() {
function AWTSemanticContext(_allowDeviceFields, _properties) {
this._allowDeviceFields = _allowDeviceFields, this._properties = _properties;
}
return AWTSemanticContext.prototype.setAppId = function(appId) {
this._addContext("AppInfo.Id", appId);
}, AWTSemanticContext.prototype.setAppVersion = function(appVersion) {
this._addContext("AppInfo.Version", appVersion);
}, AWTSemanticContext.prototype.setAppLanguage = function(appLanguage) {
this._addContext("AppInfo.Language", appLanguage);
}, AWTSemanticContext.prototype.setDeviceId = function(deviceId) {
this._allowDeviceFields && (AWTAutoCollection_1.default.checkAndSaveDeviceId(deviceId),
this._addContext("DeviceInfo.Id", deviceId));
}, AWTSemanticContext.prototype.setDeviceOsName = function(deviceOsName) {
this._allowDeviceFields && this._addContext("DeviceInfo.OsName", deviceOsName);
}, AWTSemanticContext.prototype.setDeviceOsVersion = function(deviceOsVersion) {
this._allowDeviceFields && this._addContext("DeviceInfo.OsVersion", deviceOsVersion);
}, AWTSemanticContext.prototype.setDeviceBrowserName = function(deviceBrowserName) {
this._allowDeviceFields && this._addContext("DeviceInfo.BrowserName", deviceBrowserName);
}, AWTSemanticContext.prototype.setDeviceBrowserVersion = function(deviceBrowserVersion) {
this._allowDeviceFields && this._addContext("DeviceInfo.BrowserVersion", deviceBrowserVersion);
}, AWTSemanticContext.prototype.setDeviceMake = function(deviceMake) {
this._allowDeviceFields && this._addContext("DeviceInfo.Make", deviceMake);
}, AWTSemanticContext.prototype.setDeviceModel = function(deviceModel) {
this._allowDeviceFields && this._addContext("DeviceInfo.Model", deviceModel);
}, AWTSemanticContext.prototype.setUserId = function(userId, pii, userIdType) {
if (!isNaN(userIdType) && null !== userIdType && userIdType >= 0 && userIdType <= 12) this._addContext("UserInfo.IdType", userIdType.toString()); else {
var inferredUserIdType = void 0;
switch (pii) {
case Enums_1.AWTPiiKind.SipAddress:
inferredUserIdType = Enums_2.AWTUserIdType.SipAddress;
break;
case Enums_1.AWTPiiKind.PhoneNumber:
inferredUserIdType = Enums_2.AWTUserIdType.PhoneNumber;
break;
case Enums_1.AWTPiiKind.SmtpAddress:
inferredUserIdType = Enums_2.AWTUserIdType.EmailAddress;
break;
default:
inferredUserIdType = Enums_2.AWTUserIdType.Unknown;
}
this._addContext("UserInfo.IdType", inferredUserIdType.toString());
}
if (isNaN(pii) || null === pii || pii === Enums_1.AWTPiiKind.NotSet || pii > 13) switch (userIdType) {
case Enums_2.AWTUserIdType.Skype:
pii = Enums_1.AWTPiiKind.Identity;
break;
case Enums_2.AWTUserIdType.EmailAddress:
pii = Enums_1.AWTPiiKind.SmtpAddress;
break;
case Enums_2.AWTUserIdType.PhoneNumber:
pii = Enums_1.AWTPiiKind.PhoneNumber;
break;
case Enums_2.AWTUserIdType.SipAddress:
pii = Enums_1.AWTPiiKind.SipAddress;
break;
default:
pii = Enums_1.AWTPiiKind.NotSet;
}
this._addContextWithPii("UserInfo.Id", userId, pii);
}, AWTSemanticContext.prototype.setUserAdvertisingId = function(userAdvertisingId) {
this._addContext("UserInfo.AdvertisingId", userAdvertisingId);
}, AWTSemanticContext.prototype.setUserTimeZone = function(userTimeZone) {
this._addContext("UserInfo.TimeZone", userTimeZone);
}, AWTSemanticContext.prototype.setUserLanguage = function(userLanguage) {
this._addContext("UserInfo.Language", userLanguage);
}, AWTSemanticContext.prototype._addContext = function(key, value) {
"string" == typeof value && this._properties.setProperty(key, value);
}, AWTSemanticContext.prototype._addContextWithPii = function(key, value, pii) {
"string" == typeof value && this._properties.setPropertyWithPii(key, value, pii);
}, AWTSemanticContext;
}();
exports.default = AWTSemanticContext;
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var Utils = __webpack_require__(3), DEVICE_ID_COOKIE = "MicrosoftApplicationsTelemetryDeviceId", FIRSTLAUNCHTIME_COOKIE = "MicrosoftApplicationsTelemetryFirstLaunchTime", BROWSERS_MSIE = "MSIE", BROWSERS_CHROME = "Chrome", BROWSERS_FIREFOX = "Firefox", BROWSERS_SAFARI = "Safari", BROWSERS_EDGE = "Edge", BROWSERS_ELECTRON = "Electron", BROWSERS_SKYPE_SHELL = "SkypeShell", BROWSERS_PHANTOMJS = "PhantomJS", BROWSERS_OPERA = "Opera", OPERATING_SYSTEMS_WINDOWS = "Windows", OPERATING_SYSTEMS_MACOSX = "Mac OS X", OPERATING_SYSTEMS_WINDOWS_PHONE = "Windows Phone", OPERATING_SYSTEMS_WINDOWS_RT = "Windows RT", OPERATING_SYSTEMS_IOS = "iOS", OPERATING_SYSTEMS_ANDROID = "Android", OPERATING_SYSTEMS_LINUX = "Linux", OPERATING_SYSTEMS_CROS = "Chrome OS", OSNAMEREGEX_WIN = /(windows|win32)/i, OSNAMEREGEX_WINRT = / arm;/i, OSNAMEREGEX_WINPHONE = /windows\sphone\s\d+\.\d+/i, OSNAMEREGEX_OSX = /(macintosh|mac os x)/i, OSNAMEREGEX_IOS = /(iPad|iPhone|iPod)(?=.*like Mac OS X)/i, OSNAMEREGEX_LINUX = /(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i, OSNAMEREGEX_ANDROID = /android/i, OSNAMEREGEX_CROS = /CrOS/i, VERSION_MAPPINGS = {
5.1: "XP",
"6.0": "Vista",
6.1: "7",
6.2: "8",
6.3: "8.1",
"10.0": "10"
}, AWTAutoCollection = function() {
function AWTAutoCollection() {}
return AWTAutoCollection.addPropertyStorageOverride = function(propertyStorage) {
return !!propertyStorage && (this._propertyStorage = propertyStorage, !0);
}, AWTAutoCollection.autoCollect = function(semanticContext, disableCookies, userAgent) {
if (this._semanticContext = semanticContext, this._disableCookies = disableCookies,
this._autoCollect(), userAgent || "undefined" == typeof navigator || (userAgent = navigator.userAgent || ""),
this._autoCollectFromUserAgent(userAgent), this._disableCookies && !this._propertyStorage) return this._deleteCookie(DEVICE_ID_COOKIE),
void this._deleteCookie(FIRSTLAUNCHTIME_COOKIE);
(this._propertyStorage || this._areCookiesAvailable && !this._disableCookies) && this._autoCollectDeviceId();
}, AWTAutoCollection.checkAndSaveDeviceId = function(deviceId) {
if (deviceId) {
var oldDeviceId = this._getData(DEVICE_ID_COOKIE), flt = this._getData(FIRSTLAUNCHTIME_COOKIE);
oldDeviceId !== deviceId && (flt = Utils.getISOString(new Date)), this._saveData(DEVICE_ID_COOKIE, deviceId),
this._saveData(FIRSTLAUNCHTIME_COOKIE, flt), this._setFirstLaunchTime(flt);
}
}, AWTAutoCollection._autoCollectDeviceId = function() {
var deviceId = this._getData(DEVICE_ID_COOKIE);
deviceId || (deviceId = Utils.newGuid()), this._semanticContext.setDeviceId(deviceId);
}, AWTAutoCollection._autoCollect = function() {
"undefined" != typeof document && document.documentElement && this._semanticContext.setAppLanguage(document.documentElement.lang),
"undefined" != typeof navigator && this._semanticContext.setUserLanguage(navigator.userLanguage || navigator.language);
var timeZone = (new Date).getTimezoneOffset(), minutes = timeZone % 60, hours = (timeZone - minutes) / 60, timeZonePrefix = "+";
hours > 0 && (timeZonePrefix = "-"), hours = Math.abs(hours), minutes = Math.abs(minutes),
this._semanticContext.setUserTimeZone(timeZonePrefix + (hours < 10 ? "0" + hours : hours.toString()) + ":" + (minutes < 10 ? "0" + minutes : minutes.toString()));
}, AWTAutoCollection._autoCollectFromUserAgent = function(userAgent) {
if (userAgent) {
var browserName = this._getBrowserName(userAgent);
this._semanticContext.setDeviceBrowserName(browserName), this._semanticContext.setDeviceBrowserVersion(this._getBrowserVersion(userAgent, browserName));
var osName = this._getOsName(userAgent);
this._semanticContext.setDeviceOsName(osName), this._semanticContext.setDeviceOsVersion(this._getOsVersion(userAgent, osName));
}
}, AWTAutoCollection._getBrowserName = function(userAgent) {
return this._userAgentContainsString("OPR/", userAgent) ? BROWSERS_OPERA : this._userAgentContainsString(BROWSERS_PHANTOMJS, userAgent) ? BROWSERS_PHANTOMJS : this._userAgentContainsString(BROWSERS_EDGE, userAgent) || this._userAgentContainsString("Edg", userAgent) ? BROWSERS_EDGE : this._userAgentContainsString(BROWSERS_ELECTRON, userAgent) ? BROWSERS_ELECTRON : this._userAgentContainsString(BROWSERS_CHROME, userAgent) ? BROWSERS_CHROME : this._userAgentContainsString("Trident", userAgent) ? BROWSERS_MSIE : this._userAgentContainsString(BROWSERS_FIREFOX, userAgent) ? BROWSERS_FIREFOX : this._userAgentContainsString(BROWSERS_SAFARI, userAgent) ? BROWSERS_SAFARI : this._userAgentContainsString(BROWSERS_SKYPE_SHELL, userAgent) ? BROWSERS_SKYPE_SHELL : "Unknown";
}, AWTAutoCollection._setFirstLaunchTime = function(flt) {
if (!isNaN(flt)) {
var fltDate = new Date;
fltDate.setTime(parseInt(flt, 10)), flt = Utils.getISOString(fltDate);
}
this.firstLaunchTime = flt;
}, AWTAutoCollection._userAgentContainsString = function(searchString, userAgent) {
return userAgent.indexOf(searchString) > -1;
}, AWTAutoCollection._getBrowserVersion = function(userAgent, browserName) {
if (browserName === BROWSERS_MSIE) return this._getIeVersion(userAgent);
if (browserName === BROWSERS_EDGE) {
var version = this._getOtherVersion(browserName, userAgent);
return "Unknown" === version ? this._getOtherVersion("Edg", userAgent) : version;
}
return this._getOtherVersion(browserName, userAgent);
}, AWTAutoCollection._getIeVersion = function(userAgent) {
var classicIeVersionMatches = userAgent.match(new RegExp(BROWSERS_MSIE + " ([\\d,.]+)"));
if (classicIeVersionMatches) return classicIeVersionMatches[1];
var ieVersionMatches = userAgent.match(new RegExp("rv:([\\d,.]+)"));
return ieVersionMatches ? ieVersionMatches[1] : void 0;
}, AWTAutoCollection._getOtherVersion = function(browserString, userAgent) {
browserString === BROWSERS_SAFARI && (browserString = "Version");
var matches = userAgent.match(new RegExp(browserString + "/([\\d,.]+)"));
return matches ? matches[1] : "Unknown";
}, AWTAutoCollection._getOsName = function(userAgent) {
return userAgent.match(OSNAMEREGEX_WINPHONE) ? OPERATING_SYSTEMS_WINDOWS_PHONE : userAgent.match(OSNAMEREGEX_WINRT) ? OPERATING_SYSTEMS_WINDOWS_RT : userAgent.match(OSNAMEREGEX_IOS) ? OPERATING_SYSTEMS_IOS : userAgent.match(OSNAMEREGEX_ANDROID) ? OPERATING_SYSTEMS_ANDROID : userAgent.match(OSNAMEREGEX_LINUX) ? OPERATING_SYSTEMS_LINUX : userAgent.match(OSNAMEREGEX_OSX) ? OPERATING_SYSTEMS_MACOSX : userAgent.match(OSNAMEREGEX_WIN) ? OPERATING_SYSTEMS_WINDOWS : userAgent.match(OSNAMEREGEX_CROS) ? OPERATING_SYSTEMS_CROS : "Unknown";
}, AWTAutoCollection._getOsVersion = function(userAgent, osName) {
return osName === OPERATING_SYSTEMS_WINDOWS ? this._getGenericOsVersion(userAgent, "Windows NT") : osName === OPERATING_SYSTEMS_ANDROID ? this._getGenericOsVersion(userAgent, osName) : osName === OPERATING_SYSTEMS_MACOSX ? this._getMacOsxVersion(userAgent) : "Unknown";
}, AWTAutoCollection._getGenericOsVersion = function(userAgent, osName) {
var ntVersionMatches = userAgent.match(new RegExp(osName + " ([\\d,.]+)"));
return ntVersionMatches ? VERSION_MAPPINGS[ntVersionMatches[1]] ? VERSION_MAPPINGS[ntVersionMatches[1]] : ntVersionMatches[1] : "Unknown";
}, AWTAutoCollection._getMacOsxVersion = function(userAgent) {
var macOsxVersionInUserAgentMatches = userAgent.match(new RegExp(OPERATING_SYSTEMS_MACOSX + " ([\\d,_,.]+)"));
if (macOsxVersionInUserAgentMatches) {
var versionString = macOsxVersionInUserAgentMatches[1].replace(/_/g, ".");
if (versionString) {
var delimiter = this._getDelimiter(versionString);
return delimiter ? versionString.split(delimiter)[0] : versionString;
}
}
return "Unknown";
}, AWTAutoCollection._getDelimiter = function(versionString) {
return versionString.indexOf(".") > -1 ? "." : versionString.indexOf("_") > -1 ? "_" : null;
}, AWTAutoCollection._saveData = function(name, value) {
if (this._propertyStorage) this._propertyStorage.setProperty(name, value); else if (this._areCookiesAvailable) {
var date = new Date;
date.setTime(date.getTime() + 31536e6);
var expires = "expires=" + date.toUTCString();
document.cookie = name + "=" + value + "; " + expires;
}
}, AWTAutoCollection._getData = function(name) {
if (this._propertyStorage) return this._propertyStorage.getProperty(name) || "";
if (this._areCookiesAvailable) {
name += "=";
for (var ca = document.cookie.split(";"), i = 0; i < ca.length; i++) {
for (var c = ca[i], j = 0; " " === c.charAt(j); ) j++;
if (0 === (c = c.substring(j)).indexOf(name)) return c.substring(name.length, c.length);
}
}
return "";
}, AWTAutoCollection._deleteCookie = function(name) {
this._areCookiesAvailable && (document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:01 GMT;");
}, AWTAutoCollection._disableCookies = !1, AWTAutoCollection._areCookiesAvailable = "undefined" != typeof document && "undefined" != typeof document.cookie,
AWTAutoCollection;
}();
exports.default = AWTAutoCollection;
}, function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var Enums_1 = __webpack_require__(0), AWTHttpManager_1 = __webpack_require__(19), AWTTransmissionManagerCore_1 = __webpack_require__(4), AWTRecordBatcher_1 = __webpack_require__(29), AWTNotificationManager_1 = __webpack_require__(5), Utils = __webpack_require__(3), AWTQueueManager = function() {
function AWTQueueManager(collectorUrl, _queueSizeLimit, xhrOverride, clockSkewRefreshDurationInMins) {
this._queueSizeLimit = _queueSizeLimit, this._isCurrentlyUploadingNow = !1, this._uploadNowQueue = [],
this._shouldDropEventsOnPause = !1, this._paused = !1, this._queueSize = 0, this._outboundQueue = [],
this._inboundQueues = {}, this._inboundQueues[Enums_1.AWTEventPriority.High] = [],
this._inboundQueues[Enums_1.AWTEventPriority.Normal] = [], this._inboundQueues[Enums_1.AWTEventPriority.Low] = [],
this._addEmptyQueues(), this._batcher = new AWTRecordBatcher_1.default(this._outboundQueue, 500),
this._httpManager = new AWTHttpManager_1.default(this._outboundQueue, collectorUrl, this, xhrOverride, clockSkewRefreshDurationInMins);
}
return AWTQueueManager.prototype.addEvent = function(event) {
Utils.isPriority(event.priority) || (event.priority = Enums_1.AWTEventPriority.Normal),
event.priority === Enums_1.AWTEventPriority.Immediate_sync ? this._httpManager.sendSynchronousRequest(this._batcher.addEventToBatch(event), event.apiKey) : this._queueSize < this._queueSizeLimit || this._dropEventWithPriorityOrLess(event.priority) ? this._addEventToProperQueue(event) : AWTNotificationManager_1.default.eventsDropped([ event ], Enums_1.AWTEventsDroppedReason.QueueFull);
}, AWTQueueManager.prototype.sendEventsForPriorityAndAbove = function(priority) {
this._batchEvents(priority), this._httpManager.sendQueuedRequests();
}, AWTQueueManager.prototype.hasEvents = function() {
return (this._inboundQueues[Enums_1.AWTEventPriority.High][0].length > 0 || this._inboundQueues[Enums_1.AWTEventPriority.Normal][0].length > 0 || this._inboundQueues[Enums_1.AWTEventPriority.Low][0].length > 0 || this._batcher.hasBatch()) && this._httpManager.hasIdleConnection();
}, AWTQueueManager.prototype.addBackRequest = function(request) {
if (!this._paused || !this._shouldDropEventsOnPause) {
for (var token in request) if (request.hasOwnProperty(token)) for (var i = 0; i < request[token].length; ++i) request[token][i].sendAttempt < 6 ? this.addEvent(request[token][i]) : AWTNotificationManager_1.default.eventsDropped([ request[token][i] ], Enums_1.AWTEventsDroppedReason.MaxRetryLimit);
AWTTransmissionManagerCore_1.default.scheduleTimer();
}
}, AWTQueueManager.prototype.teardown = function() {
this._paused || (this._batchEvents(Enums_1.AWTEventPriority.Low), this._httpManager.teardown());
}, AWTQueueManager.prototype.uploadNow = function(callback) {
var _this = this;
this._addEmptyQueues(), this._isCurrentlyUploadingNow ? this._uploadNowQueue.push(callback) : (this._isCurrentlyUploadingNow = !0,
setTimeout((function() {
return _this._uploadNow(callback);
}), 0));
}, AWTQueueManager.prototype.pauseTransmission = function() {
this._paused = !0, this._httpManager.pause(), this._shouldDropEventsOnPause && (this._queueSize -= this._inboundQueues[Enums_1.AWTEventPriority.High][0].length + this._inboundQueues[Enums_1.AWTEventPriority.Normal][0].length + this._inboundQueues[Enums_1.AWTEventPriority.Low][0].length,
this._inboundQueues[Enums_1.AWTEventPriority.High][0] = [], this._inboundQueues[Enums_1.AWTEventPriority.Normal][0] = [],
this._inboundQueues[Enums_1.AWTEventPriority.Low][0] = [], this._httpManager.removeQueuedRequests());
}, AWTQueueManager.prototype.resumeTransmission = function() {
this._paused = !1, this._httpManager.resume();
}, AWTQueueManager.prototype.shouldDropEventsOnPause = function(shouldDropEventsOnPause) {
this._shouldDropEventsOnPause = shouldDropEventsOnPause;
}, AWTQueueManager.prototype._removeFirstQueues = function() {
this._inboundQueues[Enums_1.AWTEventPriority.High].shift(), this._inboundQueues[Enums_1.AWTEventPriority.Normal].shift(),
this._inboundQueues[Enums_1.AWTEventPriority.Low].shift();
}, AWTQueueManager.prototype._addEmptyQueues = function() {
this._inboundQueues[Enums_1.AWTEventPriority.High].push([]), this._inboundQueues[Enums_1.AWTEventPriority.Normal].push([]),
this._inboundQueues[Enums_1.AWTEventPriority.Low].push([]);
}, AWTQueueManager.prototype._addEventToProperQueue = function(event) {
this._paused && this._shouldDropEventsOnPause || (this._queueSize++, this._inboundQueues[event.priority][this._inboundQueues[event.priority].length - 1].push(event));
}, AWTQueueManager.prototype._dropEventWithP