@pendo/agent 2.280.1 → 2.282.0

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/dom.esm.js CHANGED
@@ -2085,372 +2085,777 @@ var underscore = {exports: {}};
2085
2085
  var underscoreExports = underscore.exports;
2086
2086
  var _ = /*@__PURE__*/getDefaultExportFromCjs(underscoreExports);
2087
2087
 
2088
- var policy;
2089
- var policyOptions = {
2090
- 'createScriptURL': function (str) { return str; },
2091
- 'createHTML': function (str) { return str; }
2092
- };
2093
- function getPolicy(pendo) {
2094
- if (!policy) {
2095
- if (pendo.trustedTypesPolicy) {
2096
- policy = pendo.trustedTypesPolicy;
2097
- }
2098
- else if (window.trustedTypes && typeof window.trustedTypes.createPolicy === 'function') {
2099
- policy = window.trustedTypes.createPolicy('pendo', policyOptions);
2100
- }
2101
- else {
2102
- policy = policyOptions;
2103
- }
2104
- pendo.trustedTypesPolicy = policy;
2088
+ /*
2089
+ * @license MIT - https://github.com/taylorhakes/promise-polyfill
2090
+ */
2091
+ // Modified to not affect global environment
2092
+ var Promise$1 = window.Promise;
2093
+
2094
+ Promise$1 = (function (global, factory) {
2095
+ var nativePromise = global.Promise;
2096
+ if (typeof nativePromise !== 'function' || !/native/.test(nativePromise)) {
2097
+ return factory();
2098
+ }
2099
+
2100
+ return nativePromise;
2101
+ }(window, (function () {
2102
+ /**
2103
+ * @this {Promise}
2104
+ */
2105
+ function finallyConstructor(callback) {
2106
+ var constructor = this.constructor;
2107
+ return this.then(
2108
+ function(value) {
2109
+ // @ts-ignore
2110
+ return constructor.resolve(callback()).then(function() {
2111
+ return value;
2112
+ });
2113
+ },
2114
+ function(reason) {
2115
+ // @ts-ignore
2116
+ return constructor.resolve(callback()).then(function() {
2117
+ // @ts-ignore
2118
+ return constructor.reject(reason);
2119
+ });
2105
2120
  }
2106
- return policy;
2121
+ );
2107
2122
  }
2108
2123
 
2109
- var sizzle = {exports: {}};
2110
-
2111
- (function (module) {
2112
- ( function( window ) {
2113
- var i,
2114
- support,
2115
- Expr,
2116
- getText,
2117
- isXML,
2118
- tokenize,
2119
- compile,
2120
- select,
2121
- outermostContext,
2122
- sortInput,
2123
- hasDuplicate,
2124
+ function allSettled(arr) {
2125
+ var P = this;
2126
+ return new P(function(resolve, reject) {
2127
+ if (!(arr && typeof arr.length !== 'undefined')) {
2128
+ return reject(
2129
+ new TypeError(
2130
+ typeof arr +
2131
+ ' ' +
2132
+ arr +
2133
+ ' is not iterable(cannot read property Symbol(Symbol.iterator))'
2134
+ )
2135
+ );
2136
+ }
2137
+ var args = Array.prototype.slice.call(arr);
2138
+ if (args.length === 0) return resolve([]);
2139
+ var remaining = args.length;
2124
2140
 
2125
- // Local document vars
2126
- setDocument,
2127
- document,
2128
- docElem,
2129
- documentIsHTML,
2130
- rbuggyQSA,
2131
- rbuggyMatches,
2132
- matches,
2133
- contains,
2141
+ function res(i, val) {
2142
+ if (val && (typeof val === 'object' || typeof val === 'function')) {
2143
+ var then = val.then;
2144
+ if (typeof then === 'function') {
2145
+ then.call(
2146
+ val,
2147
+ function(val) {
2148
+ res(i, val);
2149
+ },
2150
+ function(e) {
2151
+ args[i] = { status: 'rejected', reason: e };
2152
+ if (--remaining === 0) {
2153
+ resolve(args);
2154
+ }
2155
+ }
2156
+ );
2157
+ return;
2158
+ }
2159
+ }
2160
+ args[i] = { status: 'fulfilled', value: val };
2161
+ if (--remaining === 0) {
2162
+ resolve(args);
2163
+ }
2164
+ }
2134
2165
 
2135
- // Instance-specific data
2136
- expando = "sizzle" + 1 * new Date(),
2137
- preferredDoc = window.document,
2138
- dirruns = 0,
2139
- done = 0,
2140
- classCache = createCache(),
2141
- tokenCache = createCache(),
2142
- compilerCache = createCache(),
2143
- nonnativeSelectorCache = createCache(),
2144
- sortOrder = function( a, b ) {
2145
- if ( a === b ) {
2146
- hasDuplicate = true;
2147
- }
2148
- return 0;
2149
- },
2166
+ for (var i = 0; i < args.length; i++) {
2167
+ res(i, args[i]);
2168
+ }
2169
+ });
2170
+ }
2150
2171
 
2151
- // Instance methods
2152
- hasOwn = ( {} ).hasOwnProperty,
2153
- arr = [],
2154
- pop = arr.pop,
2155
- pushNative = arr.push,
2156
- push = arr.push,
2157
- slice = arr.slice,
2172
+ // Store setTimeout reference so promise-polyfill will be unaffected by
2173
+ // other code modifying setTimeout (like sinon.useFakeTimers())
2174
+ var setTimeoutFunc = setTimeout$1;
2158
2175
 
2159
- // Use a stripped-down indexOf as it's faster than native
2160
- // https://jsperf.com/thor-indexof-vs-for/5
2161
- indexOf = function( list, elem ) {
2162
- var i = 0,
2163
- len = list.length;
2164
- for ( ; i < len; i++ ) {
2165
- if ( list[ i ] === elem ) {
2166
- return i;
2167
- }
2168
- }
2169
- return -1;
2170
- },
2176
+ function isArray(x) {
2177
+ return Boolean(x && typeof x.length !== 'undefined');
2178
+ }
2171
2179
 
2172
- booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" +
2173
- "ismap|loop|multiple|open|readonly|required|scoped",
2180
+ function noop() {}
2174
2181
 
2175
- // Regular expressions
2182
+ // Polyfill for Function.prototype.bind
2183
+ function bind(fn, thisArg) {
2184
+ return function() {
2185
+ fn.apply(thisArg, arguments);
2186
+ };
2187
+ }
2176
2188
 
2177
- // http://www.w3.org/TR/css3-selectors/#whitespace
2178
- whitespace = "[\\x20\\t\\r\\n\\f]",
2189
+ /**
2190
+ * @constructor
2191
+ * @param {Function} fn
2192
+ */
2193
+ function Promise(fn) {
2194
+ if (!(this instanceof Promise))
2195
+ throw new TypeError('Promises must be constructed via new');
2196
+ if (typeof fn !== 'function') throw new TypeError('not a function');
2197
+ /** @type {!number} */
2198
+ this._state = 0;
2199
+ /** @type {!boolean} */
2200
+ this._handled = false;
2201
+ /** @type {Promise|undefined} */
2202
+ this._value = undefined;
2203
+ /** @type {!Array<!Function>} */
2204
+ this._deferreds = [];
2179
2205
 
2180
- // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
2181
- identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
2182
- "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
2206
+ doResolve(fn, this);
2207
+ }
2183
2208
 
2184
- // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
2185
- attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
2209
+ function handle(self, deferred) {
2210
+ while (self._state === 3) {
2211
+ self = self._value;
2212
+ }
2213
+ if (self._state === 0) {
2214
+ self._deferreds.push(deferred);
2215
+ return;
2216
+ }
2217
+ self._handled = true;
2218
+ Promise._immediateFn(function() {
2219
+ var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
2220
+ if (cb === null) {
2221
+ (self._state === 1 ? resolve : reject)(deferred.promise, self._value);
2222
+ return;
2223
+ }
2224
+ var ret;
2225
+ try {
2226
+ ret = cb(self._value);
2227
+ } catch (e) {
2228
+ reject(deferred.promise, e);
2229
+ return;
2230
+ }
2231
+ resolve(deferred.promise, ret);
2232
+ });
2233
+ }
2186
2234
 
2187
- // Operator (capture 2)
2188
- "*([*^$|!~]?=)" + whitespace +
2235
+ function resolve(self, newValue) {
2236
+ try {
2237
+ // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
2238
+ if (newValue === self)
2239
+ throw new TypeError('A promise cannot be resolved with itself.');
2240
+ if (
2241
+ newValue &&
2242
+ (typeof newValue === 'object' || typeof newValue === 'function')
2243
+ ) {
2244
+ var then = newValue.then;
2245
+ if (newValue instanceof Promise) {
2246
+ self._state = 3;
2247
+ self._value = newValue;
2248
+ finale(self);
2249
+ return;
2250
+ } else if (typeof then === 'function') {
2251
+ doResolve(bind(then, newValue), self);
2252
+ return;
2253
+ }
2254
+ }
2255
+ self._state = 1;
2256
+ self._value = newValue;
2257
+ finale(self);
2258
+ } catch (e) {
2259
+ reject(self, e);
2260
+ }
2261
+ }
2189
2262
 
2190
- // "Attribute values must be CSS identifiers [capture 5]
2191
- // or strings [capture 3 or capture 4]"
2192
- "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
2193
- whitespace + "*\\]",
2263
+ function reject(self, newValue) {
2264
+ self._state = 2;
2265
+ self._value = newValue;
2266
+ finale(self);
2267
+ }
2194
2268
 
2195
- pseudos = ":(" + identifier + ")(?:\\((" +
2196
-
2197
- // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
2198
- // 1. quoted (capture 3; capture 4 or capture 5)
2199
- "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
2200
-
2201
- // 2. simple (capture 6)
2202
- "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
2203
-
2204
- // 3. anything else (capture 2)
2205
- ".*" +
2206
- ")\\)|)",
2207
-
2208
- // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
2209
- rwhitespace = new RegExp( whitespace + "+", "g" ),
2210
- rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
2211
- whitespace + "+$", "g" ),
2212
-
2213
- rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
2214
- rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
2215
- "*" ),
2216
- rdescend = new RegExp( whitespace + "|>" ),
2269
+ function finale(self) {
2270
+ if (self._state === 2 && self._deferreds.length === 0) {
2271
+ Promise._immediateFn(function() {
2272
+ if (!self._handled) {
2273
+ Promise._unhandledRejectionFn(self._value);
2274
+ }
2275
+ });
2276
+ }
2217
2277
 
2218
- rpseudo = new RegExp( pseudos ),
2219
- ridentifier = new RegExp( "^" + identifier + "$" ),
2278
+ for (var i = 0, len = self._deferreds.length; i < len; i++) {
2279
+ handle(self, self._deferreds[i]);
2280
+ }
2281
+ self._deferreds = null;
2282
+ }
2220
2283
 
2221
- matchExpr = {
2222
- "ID": new RegExp( "^#(" + identifier + ")" ),
2223
- "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
2224
- "TAG": new RegExp( "^(" + identifier + "|[*])" ),
2225
- "ATTR": new RegExp( "^" + attributes ),
2226
- "PSEUDO": new RegExp( "^" + pseudos ),
2227
- "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
2228
- whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
2229
- whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
2230
- "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
2284
+ /**
2285
+ * @constructor
2286
+ */
2287
+ function Handler(onFulfilled, onRejected, promise) {
2288
+ this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
2289
+ this.onRejected = typeof onRejected === 'function' ? onRejected : null;
2290
+ this.promise = promise;
2291
+ }
2231
2292
 
2232
- // For use in libraries implementing .is()
2233
- // We use this for POS matching in `select`
2234
- "needsContext": new RegExp( "^" + whitespace +
2235
- "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
2236
- "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
2237
- },
2293
+ /**
2294
+ * Take a potentially misbehaving resolver function and make sure
2295
+ * onFulfilled and onRejected are only called once.
2296
+ *
2297
+ * Makes no guarantees about asynchrony.
2298
+ */
2299
+ function doResolve(fn, self) {
2300
+ var done = false;
2301
+ try {
2302
+ fn(
2303
+ function(value) {
2304
+ if (done) return;
2305
+ done = true;
2306
+ resolve(self, value);
2307
+ },
2308
+ function(reason) {
2309
+ if (done) return;
2310
+ done = true;
2311
+ reject(self, reason);
2312
+ }
2313
+ );
2314
+ } catch (ex) {
2315
+ if (done) return;
2316
+ done = true;
2317
+ reject(self, ex);
2318
+ }
2319
+ }
2238
2320
 
2239
- rhtml = /HTML$/i,
2240
- rinputs = /^(?:input|select|textarea|button)$/i,
2241
- rheader = /^h\d$/i,
2321
+ Promise.prototype['catch'] = function(onRejected) {
2322
+ return this.then(null, onRejected);
2323
+ };
2242
2324
 
2243
- rnative = /^[^{]+\{\s*\[native \w/,
2325
+ Promise.prototype.then = function(onFulfilled, onRejected) {
2326
+ // @ts-ignore
2327
+ var prom = new this.constructor(noop);
2244
2328
 
2245
- // Easily-parseable/retrievable ID or TAG or CLASS selectors
2246
- rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
2329
+ handle(this, new Handler(onFulfilled, onRejected, prom));
2330
+ return prom;
2331
+ };
2247
2332
 
2248
- rsibling = /[+~]/,
2333
+ Promise.prototype['finally'] = finallyConstructor;
2249
2334
 
2250
- // CSS escapes
2251
- // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
2252
- runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ),
2253
- funescape = function( escape, nonHex ) {
2254
- var high = "0x" + escape.slice( 1 ) - 0x10000;
2335
+ Promise.all = function(arr) {
2336
+ return new Promise(function(resolve, reject) {
2337
+ if (!isArray(arr)) {
2338
+ return reject(new TypeError('Promise.all accepts an array'));
2339
+ }
2255
2340
 
2256
- return nonHex ?
2341
+ var args = Array.prototype.slice.call(arr);
2342
+ if (args.length === 0) return resolve([]);
2343
+ var remaining = args.length;
2257
2344
 
2258
- // Strip the backslash prefix from a non-hex escape sequence
2259
- nonHex :
2345
+ function res(i, val) {
2346
+ try {
2347
+ if (val && (typeof val === 'object' || typeof val === 'function')) {
2348
+ var then = val.then;
2349
+ if (typeof then === 'function') {
2350
+ then.call(
2351
+ val,
2352
+ function(val) {
2353
+ res(i, val);
2354
+ },
2355
+ reject
2356
+ );
2357
+ return;
2358
+ }
2359
+ }
2360
+ args[i] = val;
2361
+ if (--remaining === 0) {
2362
+ resolve(args);
2363
+ }
2364
+ } catch (ex) {
2365
+ reject(ex);
2366
+ }
2367
+ }
2260
2368
 
2261
- // Replace a hexadecimal escape sequence with the encoded Unicode code point
2262
- // Support: IE <=11+
2263
- // For values outside the Basic Multilingual Plane (BMP), manually construct a
2264
- // surrogate pair
2265
- high < 0 ?
2266
- String.fromCharCode( high + 0x10000 ) :
2267
- String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
2268
- },
2369
+ for (var i = 0; i < args.length; i++) {
2370
+ res(i, args[i]);
2371
+ }
2372
+ });
2373
+ };
2269
2374
 
2270
- // CSS string/identifier serialization
2271
- // https://drafts.csswg.org/cssom/#common-serializing-idioms
2272
- rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
2273
- fcssescape = function( ch, asCodePoint ) {
2274
- if ( asCodePoint ) {
2375
+ Promise.allSettled = allSettled;
2275
2376
 
2276
- // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
2277
- if ( ch === "\0" ) {
2278
- return "\uFFFD";
2279
- }
2377
+ Promise.resolve = function(value) {
2378
+ if (value && typeof value === 'object' && value.constructor === Promise) {
2379
+ return value;
2380
+ }
2280
2381
 
2281
- // Control characters and (dependent upon position) numbers get escaped as code points
2282
- return ch.slice( 0, -1 ) + "\\" +
2283
- ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
2284
- }
2382
+ return new Promise(function(resolve) {
2383
+ resolve(value);
2384
+ });
2385
+ };
2285
2386
 
2286
- // Other potentially-special ASCII characters get backslash-escaped
2287
- return "\\" + ch;
2288
- },
2387
+ Promise.reject = function(value) {
2388
+ return new Promise(function(resolve, reject) {
2389
+ reject(value);
2390
+ });
2391
+ };
2289
2392
 
2290
- // Used for iframes
2291
- // See setDocument()
2292
- // Removing the function wrapper causes a "Permission Denied"
2293
- // error in IE
2294
- unloadHandler = function() {
2295
- setDocument();
2296
- },
2393
+ Promise.race = function(arr) {
2394
+ return new Promise(function(resolve, reject) {
2395
+ if (!isArray(arr)) {
2396
+ return reject(new TypeError('Promise.race accepts an array'));
2397
+ }
2297
2398
 
2298
- inDisabledFieldset = addCombinator(
2299
- function( elem ) {
2300
- return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
2301
- },
2302
- { dir: "parentNode", next: "legend" }
2303
- );
2399
+ for (var i = 0, len = arr.length; i < len; i++) {
2400
+ Promise.resolve(arr[i]).then(resolve, reject);
2401
+ }
2402
+ });
2403
+ };
2304
2404
 
2305
- // Optimize for push.apply( _, NodeList )
2306
- try {
2307
- push.apply(
2308
- ( arr = slice.call( preferredDoc.childNodes ) ),
2309
- preferredDoc.childNodes
2310
- );
2405
+ // Use polyfill for setImmediate for performance gains
2406
+ Promise._immediateFn =
2407
+ // @ts-ignore
2408
+ (typeof setImmediate === 'function' &&
2409
+ function(fn) {
2410
+ // @ts-ignore
2411
+ setImmediate(fn);
2412
+ }) ||
2413
+ function(fn) {
2414
+ setTimeoutFunc(fn, 0);
2415
+ };
2311
2416
 
2312
- // Support: Android<4.0
2313
- // Detect silently failing push.apply
2314
- // eslint-disable-next-line no-unused-expressions
2315
- arr[ preferredDoc.childNodes.length ].nodeType;
2316
- } catch ( e ) {
2317
- push = { apply: arr.length ?
2417
+ Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
2418
+ if (typeof console !== 'undefined' && console) {
2419
+ console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
2420
+ }
2421
+ };
2318
2422
 
2319
- // Leverage slice if possible
2320
- function( target, els ) {
2321
- pushNative.apply( target, slice.call( els ) );
2322
- } :
2423
+ return Promise;
2323
2424
 
2324
- // Support: IE<9
2325
- // Otherwise append directly
2326
- function( target, els ) {
2327
- var j = target.length,
2328
- i = 0;
2425
+ })));
2329
2426
 
2330
- // Can't trust NodeList.length
2331
- while ( ( target[ j++ ] = els[ i++ ] ) ) {}
2332
- target.length = j - 1;
2333
- }
2334
- };
2335
- }
2427
+ var Promise$2 = Promise$1;
2336
2428
 
2337
- function Sizzle( selector, context, results, seed ) {
2338
- var m, i, elem, nid, match, groups, newSelector,
2339
- newContext = context && context.ownerDocument,
2429
+ /******************************************************************************
2430
+ Copyright (c) Microsoft Corporation.
2431
+
2432
+ Permission to use, copy, modify, and/or distribute this software for any
2433
+ purpose with or without fee is hereby granted.
2434
+
2435
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2436
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2437
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2438
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2439
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2440
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2441
+ PERFORMANCE OF THIS SOFTWARE.
2442
+ ***************************************************************************** */
2443
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
2444
+
2445
+ var extendStatics = function(d, b) {
2446
+ extendStatics = Object.setPrototypeOf ||
2447
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2448
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2449
+ return extendStatics(d, b);
2450
+ };
2451
+
2452
+ function __extends(d, b) {
2453
+ if (typeof b !== "function" && b !== null)
2454
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2455
+ extendStatics(d, b);
2456
+ function __() { this.constructor = d; }
2457
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2458
+ }
2459
+
2460
+ function __generator(thisArg, body) {
2461
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
2462
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
2463
+ function verb(n) { return function (v) { return step([n, v]); }; }
2464
+ function step(op) {
2465
+ if (f) throw new TypeError("Generator is already executing.");
2466
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
2467
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
2468
+ if (y = 0, t) op = [op[0] & 2, t.value];
2469
+ switch (op[0]) {
2470
+ case 0: case 1: t = op; break;
2471
+ case 4: _.label++; return { value: op[1], done: false };
2472
+ case 5: _.label++; y = op[1]; op = [0]; continue;
2473
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
2474
+ default:
2475
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
2476
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
2477
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
2478
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
2479
+ if (t[2]) _.ops.pop();
2480
+ _.trys.pop(); continue;
2481
+ }
2482
+ op = body.call(thisArg, _);
2483
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
2484
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
2485
+ }
2486
+ }
2487
+
2488
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2489
+ var e = new Error(message);
2490
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2491
+ };
2340
2492
 
2341
- // nodeType defaults to 9, since context defaults to document
2342
- nodeType = context ? context.nodeType : 9;
2493
+ var policy;
2494
+ var policyOptions = {
2495
+ createScriptURL: function (str) { return str; },
2496
+ createHTML: function (str) { return str; }
2497
+ };
2498
+ function getPolicy(pendo) {
2499
+ if (!policy) {
2500
+ if (pendo.trustedTypesPolicy) {
2501
+ policy = pendo.trustedTypesPolicy;
2502
+ }
2503
+ else if (window.trustedTypes && typeof window.trustedTypes.createPolicy === 'function') {
2504
+ policy = window.trustedTypes.createPolicy('pendo', policyOptions);
2505
+ }
2506
+ else {
2507
+ policy = policyOptions;
2508
+ }
2509
+ pendo.trustedTypesPolicy = policy;
2510
+ }
2511
+ return policy;
2512
+ }
2343
2513
 
2344
- results = results || [];
2514
+ var sizzle = {exports: {}};
2345
2515
 
2346
- // Return early from calls with invalid selector or context
2347
- if ( typeof selector !== "string" || !selector ||
2348
- nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
2516
+ (function (module) {
2517
+ ( function( window ) {
2518
+ var i,
2519
+ support,
2520
+ Expr,
2521
+ getText,
2522
+ isXML,
2523
+ tokenize,
2524
+ compile,
2525
+ select,
2526
+ outermostContext,
2527
+ sortInput,
2528
+ hasDuplicate,
2349
2529
 
2350
- return results;
2351
- }
2530
+ // Local document vars
2531
+ setDocument,
2532
+ document,
2533
+ docElem,
2534
+ documentIsHTML,
2535
+ rbuggyQSA,
2536
+ rbuggyMatches,
2537
+ matches,
2538
+ contains,
2352
2539
 
2353
- // Try to shortcut find operations (as opposed to filters) in HTML documents
2354
- if ( !seed ) {
2355
- setDocument( context );
2356
- context = context || document;
2540
+ // Instance-specific data
2541
+ expando = "sizzle" + 1 * new Date(),
2542
+ preferredDoc = window.document,
2543
+ dirruns = 0,
2544
+ done = 0,
2545
+ classCache = createCache(),
2546
+ tokenCache = createCache(),
2547
+ compilerCache = createCache(),
2548
+ nonnativeSelectorCache = createCache(),
2549
+ sortOrder = function( a, b ) {
2550
+ if ( a === b ) {
2551
+ hasDuplicate = true;
2552
+ }
2553
+ return 0;
2554
+ },
2357
2555
 
2358
- if ( documentIsHTML ) {
2556
+ // Instance methods
2557
+ hasOwn = ( {} ).hasOwnProperty,
2558
+ arr = [],
2559
+ pop = arr.pop,
2560
+ pushNative = arr.push,
2561
+ push = arr.push,
2562
+ slice = arr.slice,
2359
2563
 
2360
- // If the selector is sufficiently simple, try using a "get*By*" DOM method
2361
- // (excepting DocumentFragment context, where the methods don't exist)
2362
- if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
2564
+ // Use a stripped-down indexOf as it's faster than native
2565
+ // https://jsperf.com/thor-indexof-vs-for/5
2566
+ indexOf = function( list, elem ) {
2567
+ var i = 0,
2568
+ len = list.length;
2569
+ for ( ; i < len; i++ ) {
2570
+ if ( list[ i ] === elem ) {
2571
+ return i;
2572
+ }
2573
+ }
2574
+ return -1;
2575
+ },
2363
2576
 
2364
- // ID selector
2365
- if ( ( m = match[ 1 ] ) ) {
2577
+ booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" +
2578
+ "ismap|loop|multiple|open|readonly|required|scoped",
2366
2579
 
2367
- // Document context
2368
- if ( nodeType === 9 ) {
2369
- if ( ( elem = context.getElementById( m ) ) ) {
2580
+ // Regular expressions
2370
2581
 
2371
- // Support: IE, Opera, Webkit
2372
- // TODO: identify versions
2373
- // getElementById can match elements by name instead of ID
2374
- if ( elem.id === m ) {
2375
- results.push( elem );
2376
- return results;
2377
- }
2378
- } else {
2379
- return results;
2380
- }
2582
+ // http://www.w3.org/TR/css3-selectors/#whitespace
2583
+ whitespace = "[\\x20\\t\\r\\n\\f]",
2381
2584
 
2382
- // Element context
2383
- } else {
2585
+ // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram
2586
+ identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace +
2587
+ "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
2384
2588
 
2385
- // Support: IE, Opera, Webkit
2386
- // TODO: identify versions
2387
- // getElementById can match elements by name instead of ID
2388
- if ( newContext && ( elem = newContext.getElementById( m ) ) &&
2389
- contains( context, elem ) &&
2390
- elem.id === m ) {
2589
+ // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
2590
+ attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
2391
2591
 
2392
- results.push( elem );
2393
- return results;
2394
- }
2395
- }
2592
+ // Operator (capture 2)
2593
+ "*([*^$|!~]?=)" + whitespace +
2396
2594
 
2397
- // Type selector
2398
- } else if ( match[ 2 ] ) {
2399
- push.apply( results, context.getElementsByTagName( selector ) );
2400
- return results;
2595
+ // "Attribute values must be CSS identifiers [capture 5]
2596
+ // or strings [capture 3 or capture 4]"
2597
+ "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" +
2598
+ whitespace + "*\\]",
2401
2599
 
2402
- // Class selector
2403
- } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
2404
- context.getElementsByClassName ) {
2600
+ pseudos = ":(" + identifier + ")(?:\\((" +
2405
2601
 
2406
- push.apply( results, context.getElementsByClassName( m ) );
2407
- return results;
2408
- }
2409
- }
2602
+ // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
2603
+ // 1. quoted (capture 3; capture 4 or capture 5)
2604
+ "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
2410
2605
 
2411
- // Take advantage of querySelectorAll
2412
- if ( support.qsa &&
2413
- !nonnativeSelectorCache[ selector + " " ] &&
2414
- ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
2606
+ // 2. simple (capture 6)
2607
+ "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
2415
2608
 
2416
- // Support: IE 8 only
2417
- // Exclude object elements
2418
- ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
2609
+ // 3. anything else (capture 2)
2610
+ ".*" +
2611
+ ")\\)|)",
2419
2612
 
2420
- newSelector = selector;
2421
- newContext = context;
2613
+ // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
2614
+ rwhitespace = new RegExp( whitespace + "+", "g" ),
2615
+ rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" +
2616
+ whitespace + "+$", "g" ),
2422
2617
 
2423
- // qSA considers elements outside a scoping root when evaluating child or
2424
- // descendant combinators, which is not what we want.
2425
- // In such cases, we work around the behavior by prefixing every selector in the
2426
- // list with an ID selector referencing the scope context.
2427
- // The technique has to be used as well when a leading combinator is used
2428
- // as such selectors are not recognized by querySelectorAll.
2429
- // Thanks to Andrew Dupont for this technique.
2430
- if ( nodeType === 1 &&
2431
- ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
2618
+ rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
2619
+ rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace +
2620
+ "*" ),
2621
+ rdescend = new RegExp( whitespace + "|>" ),
2432
2622
 
2433
- // Expand context for sibling selectors
2434
- newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
2435
- context;
2623
+ rpseudo = new RegExp( pseudos ),
2624
+ ridentifier = new RegExp( "^" + identifier + "$" ),
2436
2625
 
2437
- // We can use :scope instead of the ID hack if the browser
2438
- // supports it & if we're not changing the context.
2439
- if ( newContext !== context || !support.scope ) {
2626
+ matchExpr = {
2627
+ "ID": new RegExp( "^#(" + identifier + ")" ),
2628
+ "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
2629
+ "TAG": new RegExp( "^(" + identifier + "|[*])" ),
2630
+ "ATTR": new RegExp( "^" + attributes ),
2631
+ "PSEUDO": new RegExp( "^" + pseudos ),
2632
+ "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
2633
+ whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" +
2634
+ whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
2635
+ "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
2440
2636
 
2441
- // Capture the context ID, setting it first if necessary
2442
- if ( ( nid = context.getAttribute( "id" ) ) ) {
2443
- nid = nid.replace( rcssescape, fcssescape );
2444
- } else {
2445
- context.setAttribute( "id", ( nid = expando ) );
2446
- }
2447
- }
2637
+ // For use in libraries implementing .is()
2638
+ // We use this for POS matching in `select`
2639
+ "needsContext": new RegExp( "^" + whitespace +
2640
+ "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
2641
+ "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
2642
+ },
2448
2643
 
2449
- // Prefix every selector in the list
2450
- groups = tokenize( selector );
2451
- i = groups.length;
2452
- while ( i-- ) {
2453
- groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
2644
+ rhtml = /HTML$/i,
2645
+ rinputs = /^(?:input|select|textarea|button)$/i,
2646
+ rheader = /^h\d$/i,
2647
+
2648
+ rnative = /^[^{]+\{\s*\[native \w/,
2649
+
2650
+ // Easily-parseable/retrievable ID or TAG or CLASS selectors
2651
+ rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
2652
+
2653
+ rsibling = /[+~]/,
2654
+
2655
+ // CSS escapes
2656
+ // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
2657
+ runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ),
2658
+ funescape = function( escape, nonHex ) {
2659
+ var high = "0x" + escape.slice( 1 ) - 0x10000;
2660
+
2661
+ return nonHex ?
2662
+
2663
+ // Strip the backslash prefix from a non-hex escape sequence
2664
+ nonHex :
2665
+
2666
+ // Replace a hexadecimal escape sequence with the encoded Unicode code point
2667
+ // Support: IE <=11+
2668
+ // For values outside the Basic Multilingual Plane (BMP), manually construct a
2669
+ // surrogate pair
2670
+ high < 0 ?
2671
+ String.fromCharCode( high + 0x10000 ) :
2672
+ String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
2673
+ },
2674
+
2675
+ // CSS string/identifier serialization
2676
+ // https://drafts.csswg.org/cssom/#common-serializing-idioms
2677
+ rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
2678
+ fcssescape = function( ch, asCodePoint ) {
2679
+ if ( asCodePoint ) {
2680
+
2681
+ // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
2682
+ if ( ch === "\0" ) {
2683
+ return "\uFFFD";
2684
+ }
2685
+
2686
+ // Control characters and (dependent upon position) numbers get escaped as code points
2687
+ return ch.slice( 0, -1 ) + "\\" +
2688
+ ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
2689
+ }
2690
+
2691
+ // Other potentially-special ASCII characters get backslash-escaped
2692
+ return "\\" + ch;
2693
+ },
2694
+
2695
+ // Used for iframes
2696
+ // See setDocument()
2697
+ // Removing the function wrapper causes a "Permission Denied"
2698
+ // error in IE
2699
+ unloadHandler = function() {
2700
+ setDocument();
2701
+ },
2702
+
2703
+ inDisabledFieldset = addCombinator(
2704
+ function( elem ) {
2705
+ return elem.disabled === true && elem.nodeName.toLowerCase() === "fieldset";
2706
+ },
2707
+ { dir: "parentNode", next: "legend" }
2708
+ );
2709
+
2710
+ // Optimize for push.apply( _, NodeList )
2711
+ try {
2712
+ push.apply(
2713
+ ( arr = slice.call( preferredDoc.childNodes ) ),
2714
+ preferredDoc.childNodes
2715
+ );
2716
+
2717
+ // Support: Android<4.0
2718
+ // Detect silently failing push.apply
2719
+ // eslint-disable-next-line no-unused-expressions
2720
+ arr[ preferredDoc.childNodes.length ].nodeType;
2721
+ } catch ( e ) {
2722
+ push = { apply: arr.length ?
2723
+
2724
+ // Leverage slice if possible
2725
+ function( target, els ) {
2726
+ pushNative.apply( target, slice.call( els ) );
2727
+ } :
2728
+
2729
+ // Support: IE<9
2730
+ // Otherwise append directly
2731
+ function( target, els ) {
2732
+ var j = target.length,
2733
+ i = 0;
2734
+
2735
+ // Can't trust NodeList.length
2736
+ while ( ( target[ j++ ] = els[ i++ ] ) ) {}
2737
+ target.length = j - 1;
2738
+ }
2739
+ };
2740
+ }
2741
+
2742
+ function Sizzle( selector, context, results, seed ) {
2743
+ var m, i, elem, nid, match, groups, newSelector,
2744
+ newContext = context && context.ownerDocument,
2745
+
2746
+ // nodeType defaults to 9, since context defaults to document
2747
+ nodeType = context ? context.nodeType : 9;
2748
+
2749
+ results = results || [];
2750
+
2751
+ // Return early from calls with invalid selector or context
2752
+ if ( typeof selector !== "string" || !selector ||
2753
+ nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
2754
+
2755
+ return results;
2756
+ }
2757
+
2758
+ // Try to shortcut find operations (as opposed to filters) in HTML documents
2759
+ if ( !seed ) {
2760
+ setDocument( context );
2761
+ context = context || document;
2762
+
2763
+ if ( documentIsHTML ) {
2764
+
2765
+ // If the selector is sufficiently simple, try using a "get*By*" DOM method
2766
+ // (excepting DocumentFragment context, where the methods don't exist)
2767
+ if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {
2768
+
2769
+ // ID selector
2770
+ if ( ( m = match[ 1 ] ) ) {
2771
+
2772
+ // Document context
2773
+ if ( nodeType === 9 ) {
2774
+ if ( ( elem = context.getElementById( m ) ) ) {
2775
+
2776
+ // Support: IE, Opera, Webkit
2777
+ // TODO: identify versions
2778
+ // getElementById can match elements by name instead of ID
2779
+ if ( elem.id === m ) {
2780
+ results.push( elem );
2781
+ return results;
2782
+ }
2783
+ } else {
2784
+ return results;
2785
+ }
2786
+
2787
+ // Element context
2788
+ } else {
2789
+
2790
+ // Support: IE, Opera, Webkit
2791
+ // TODO: identify versions
2792
+ // getElementById can match elements by name instead of ID
2793
+ if ( newContext && ( elem = newContext.getElementById( m ) ) &&
2794
+ contains( context, elem ) &&
2795
+ elem.id === m ) {
2796
+
2797
+ results.push( elem );
2798
+ return results;
2799
+ }
2800
+ }
2801
+
2802
+ // Type selector
2803
+ } else if ( match[ 2 ] ) {
2804
+ push.apply( results, context.getElementsByTagName( selector ) );
2805
+ return results;
2806
+
2807
+ // Class selector
2808
+ } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName &&
2809
+ context.getElementsByClassName ) {
2810
+
2811
+ push.apply( results, context.getElementsByClassName( m ) );
2812
+ return results;
2813
+ }
2814
+ }
2815
+
2816
+ // Take advantage of querySelectorAll
2817
+ if ( support.qsa &&
2818
+ !nonnativeSelectorCache[ selector + " " ] &&
2819
+ ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) &&
2820
+
2821
+ // Support: IE 8 only
2822
+ // Exclude object elements
2823
+ ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) {
2824
+
2825
+ newSelector = selector;
2826
+ newContext = context;
2827
+
2828
+ // qSA considers elements outside a scoping root when evaluating child or
2829
+ // descendant combinators, which is not what we want.
2830
+ // In such cases, we work around the behavior by prefixing every selector in the
2831
+ // list with an ID selector referencing the scope context.
2832
+ // The technique has to be used as well when a leading combinator is used
2833
+ // as such selectors are not recognized by querySelectorAll.
2834
+ // Thanks to Andrew Dupont for this technique.
2835
+ if ( nodeType === 1 &&
2836
+ ( rdescend.test( selector ) || rcombinators.test( selector ) ) ) {
2837
+
2838
+ // Expand context for sibling selectors
2839
+ newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
2840
+ context;
2841
+
2842
+ // We can use :scope instead of the ID hack if the browser
2843
+ // supports it & if we're not changing the context.
2844
+ if ( newContext !== context || !support.scope ) {
2845
+
2846
+ // Capture the context ID, setting it first if necessary
2847
+ if ( ( nid = context.getAttribute( "id" ) ) ) {
2848
+ nid = nid.replace( rcssescape, fcssescape );
2849
+ } else {
2850
+ context.setAttribute( "id", ( nid = expando ) );
2851
+ }
2852
+ }
2853
+
2854
+ // Prefix every selector in the list
2855
+ groups = tokenize( selector );
2856
+ i = groups.length;
2857
+ while ( i-- ) {
2858
+ groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " +
2454
2859
  toSelector( groups[ i ] );
2455
2860
  }
2456
2861
  newSelector = groups.join( "," );
@@ -4546,764 +4951,410 @@ var sizzle = {exports: {}};
4546
4951
  addHandle( booleans, function( elem, name, isXML ) {
4547
4952
  var val;
4548
4953
  if ( !isXML ) {
4549
- return elem[ name ] === true ? name.toLowerCase() :
4550
- ( val = elem.getAttributeNode( name ) ) && val.specified ?
4551
- val.value :
4552
- null;
4553
- }
4554
- } );
4555
- }
4556
-
4557
- // EXPOSE
4558
- var _sizzle = window.Sizzle;
4559
-
4560
- Sizzle.noConflict = function() {
4561
- if ( window.Sizzle === Sizzle ) {
4562
- window.Sizzle = _sizzle;
4563
- }
4564
-
4565
- return Sizzle;
4566
- };
4567
-
4568
- if ( module.exports ) {
4569
- module.exports = Sizzle;
4570
- } else {
4571
- window.Sizzle = Sizzle;
4572
- }
4573
-
4574
- // EXPOSE
4575
-
4576
- } )( window );
4577
- } (sizzle));
4578
-
4579
- var sizzleExports = sizzle.exports;
4580
- var Sizzle = /*@__PURE__*/getDefaultExportFromCjs(sizzleExports);
4581
-
4582
- function wrapSizzle(Sizzle) {
4583
- var proxy = _.extend(function () {
4584
- return proxy.Sizzle.apply(this, arguments);
4585
- }, Sizzle);
4586
- proxy.reset = function () {
4587
- proxy.Sizzle = Sizzle;
4588
- proxy.matchesSelector = Sizzle.matchesSelector;
4589
- proxy.matches = Sizzle.matches;
4590
- };
4591
- proxy.intercept = function (fn, methodName) {
4592
- if (methodName === void 0) { methodName = 'Sizzle'; }
4593
- proxy[methodName] = _.wrap(proxy[methodName], fn);
4594
- };
4595
- proxy.reset();
4596
- return proxy;
4597
- }
4598
- var SizzleProxy = wrapSizzle(Sizzle);
4599
-
4600
- /**
4601
- * Find all Elements that match the CSS Selector.
4602
- *
4603
- * @param {string} cssSelector CSS selector used to search DOM
4604
- * @returns {DomQuery} array with the matching elements
4605
- * @access public
4606
- * @category DOM
4607
- * @example
4608
- * pendo.dom('h1')[0].remove()
4609
- * @example
4610
- * pendo.dom('.left').css({ 'text-align': 'center' })
4611
- */ /**
4612
- * Creates new DOM elements from HTML text.
4613
- *
4614
- * @param {string} htmlString HTML syntax used to produce new DOM elements
4615
- * @returns {DomQuery} array with the matching elements
4616
- * @access public
4617
- * @category DOM
4618
- * @example
4619
- * pendo.dom('<div><span>this should create an unattached DOM node</span></div>');
4620
- */
4621
- function dom(selection, context) {
4622
- var self = this;
4623
- var nodes;
4624
- var tag;
4625
- if (selection && selection instanceof dom) {
4626
- return selection;
4627
- }
4628
- if (!(self instanceof dom)) {
4629
- // eslint-disable-next-line new-cap
4630
- return new dom(selection, context);
4631
- }
4632
- if (!selection) {
4633
- nodes = [];
4634
- }
4635
- else if (selection.nodeType) {
4636
- nodes = [selection];
4637
- }
4638
- else if ((tag = /^<(\w+)\/?>$/.exec(selection))) {
4639
- nodes = [document.createElement(tag[1])];
4640
- }
4641
- else if (/^<[\w\W]+>$/.test(selection)) {
4642
- var container = document.createElement('div');
4643
- container.innerHTML = selection;
4644
- nodes = _.toArray(container.childNodes);
4645
- }
4646
- else if (_.isString(selection)) {
4647
- if (context instanceof dom) {
4648
- context = context.length > 0 ? context[0] : null;
4649
- }
4650
- // CSS selector
4651
- try {
4652
- nodes = SizzleProxy(selection, context);
4653
- }
4654
- catch (e) {
4655
- nodes = [];
4656
- }
4657
- }
4658
- else {
4659
- // handle case where selection is not sizzle-able (window, numbers, etc.)
4660
- nodes = [selection];
4661
- }
4662
- _.each(nodes, function (node, i) {
4663
- self[i] = node;
4664
- });
4665
- self.context = context;
4666
- self.length = nodes.length;
4667
- return self;
4668
- }
4669
-
4670
- /**
4671
- * Utility function to check if passed value exists. Returns false for `null` and `undefined`.
4672
- *
4673
- * @access public
4674
- * @category Utility
4675
- * @param {any} value argument to type check
4676
- * @returns {Boolean}
4677
- * @example
4678
- * pendo.doesExist(null) => false
4679
- * pendo.doesExist('foo') => true
4680
- */
4681
- function doesExist(arg) {
4682
- return !(typeof arg === 'undefined' || arg === null);
4683
- }
4684
-
4685
- var rtrim = /^\s+|\s+$/g;
4686
- var trim = String.prototype.trim;
4687
- if (!trim) {
4688
- trim = function () {
4689
- return this.replace(rtrim, '');
4690
- };
4691
- }
4692
-
4693
- var deflate_min = {exports: {}};
4694
-
4695
- /*
4696
- * @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
4697
- */
4698
-
4699
- (function (module) {
4700
- (function() {var n=void 0,w=!0,aa=this;function ba(f,d){var c=f.split("."),e=aa;!(c[0]in e)&&e.execScript&&e.execScript("var "+c[0]);for(var b;c.length&&(b=c.shift());)!c.length&&d!==n?e[b]=d:e=e[b]?e[b]:e[b]={};}var C="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function K(f,d){this.index="number"===typeof d?d:0;this.e=0;this.buffer=f instanceof(C?Uint8Array:Array)?f:new (C?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&ca(this);}function ca(f){var d=f.buffer,c,e=d.length,b=new (C?Uint8Array:Array)(e<<1);if(C)b.set(d);else for(c=0;c<e;++c)b[c]=d[c];return f.buffer=b}
4701
- K.prototype.b=function(f,d,c){var e=this.buffer,b=this.index,a=this.e,g=e[b],m;c&&1<d&&(f=8<d?(L[f&255]<<24|L[f>>>8&255]<<16|L[f>>>16&255]<<8|L[f>>>24&255])>>32-d:L[f]>>8-d);if(8>d+a)g=g<<d|f,a+=d;else for(m=0;m<d;++m)g=g<<1|f>>d-m-1&1,8===++a&&(a=0,e[b++]=L[g],g=0,b===e.length&&(e=ca(this)));e[b]=g;this.buffer=e;this.e=a;this.index=b;};K.prototype.finish=function(){var f=this.buffer,d=this.index,c;0<this.e&&(f[d]<<=8-this.e,f[d]=L[f[d]],d++);C?c=f.subarray(0,d):(f.length=d,c=f);return c};
4702
- var da=new (C?Uint8Array:Array)(256),M;for(M=0;256>M;++M){for(var N=M,S=N,ea=7,N=N>>>1;N;N>>>=1)S<<=1,S|=N&1,--ea;da[M]=(S<<ea&255)>>>0;}var L=da;function ia(f){this.buffer=new (C?Uint16Array:Array)(2*f);this.length=0;}ia.prototype.getParent=function(f){return 2*((f-2)/4|0)};ia.prototype.push=function(f,d){var c,e,b=this.buffer,a;c=this.length;b[this.length++]=d;for(b[this.length++]=f;0<c;)if(e=this.getParent(c),b[c]>b[e])a=b[c],b[c]=b[e],b[e]=a,a=b[c+1],b[c+1]=b[e+1],b[e+1]=a,c=e;else break;return this.length};
4703
- ia.prototype.pop=function(){var f,d,c=this.buffer,e,b,a;d=c[0];f=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(a=0;;){b=2*a+2;if(b>=this.length)break;b+2<this.length&&c[b+2]>c[b]&&(b+=2);if(c[b]>c[a])e=c[a],c[a]=c[b],c[b]=e,e=c[a+1],c[a+1]=c[b+1],c[b+1]=e;else break;a=b;}return {index:f,value:d,length:this.length}};function ka(f,d){this.d=la;this.i=0;this.input=C&&f instanceof Array?new Uint8Array(f):f;this.c=0;d&&(d.lazy&&(this.i=d.lazy),"number"===typeof d.compressionType&&(this.d=d.compressionType),d.outputBuffer&&(this.a=C&&d.outputBuffer instanceof Array?new Uint8Array(d.outputBuffer):d.outputBuffer),"number"===typeof d.outputIndex&&(this.c=d.outputIndex));this.a||(this.a=new (C?Uint8Array:Array)(32768));}var la=2,na={NONE:0,h:1,g:la,n:3},T=[],U;
4704
- for(U=0;288>U;U++)switch(w){case 143>=U:T.push([U+48,8]);break;case 255>=U:T.push([U-144+400,9]);break;case 279>=U:T.push([U-256+0,7]);break;case 287>=U:T.push([U-280+192,8]);break;default:throw "invalid literal: "+U;}
4705
- ka.prototype.f=function(){var f,d,c,e,b=this.input;switch(this.d){case 0:c=0;for(e=b.length;c<e;){d=C?b.subarray(c,c+65535):b.slice(c,c+65535);c+=d.length;var a=d,g=c===e,m=n,k=n,p=n,t=n,u=n,l=this.a,h=this.c;if(C){for(l=new Uint8Array(this.a.buffer);l.length<=h+a.length+5;)l=new Uint8Array(l.length<<1);l.set(this.a);}m=g?1:0;l[h++]=m|0;k=a.length;p=~k+65536&65535;l[h++]=k&255;l[h++]=k>>>8&255;l[h++]=p&255;l[h++]=p>>>8&255;if(C)l.set(a,h),h+=a.length,l=l.subarray(0,h);else {t=0;for(u=a.length;t<u;++t)l[h++]=
4706
- a[t];l.length=h;}this.c=h;this.a=l;}break;case 1:var q=new K(C?new Uint8Array(this.a.buffer):this.a,this.c);q.b(1,1,w);q.b(1,2,w);var s=oa(this,b),x,fa,z;x=0;for(fa=s.length;x<fa;x++)if(z=s[x],K.prototype.b.apply(q,T[z]),256<z)q.b(s[++x],s[++x],w),q.b(s[++x],5),q.b(s[++x],s[++x],w);else if(256===z)break;this.a=q.finish();this.c=this.a.length;break;case la:var B=new K(C?new Uint8Array(this.a.buffer):this.a,this.c),ta,J,O,P,Q,La=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X,ua,Y,va,ga,ja=Array(19),
4707
- wa,R,ha,y,xa;ta=la;B.b(1,1,w);B.b(ta,2,w);J=oa(this,b);X=pa(this.m,15);ua=qa(X);Y=pa(this.l,7);va=qa(Y);for(O=286;257<O&&0===X[O-1];O--);for(P=30;1<P&&0===Y[P-1];P--);var ya=O,za=P,F=new (C?Uint32Array:Array)(ya+za),r,G,v,Z,E=new (C?Uint32Array:Array)(316),D,A,H=new (C?Uint8Array:Array)(19);for(r=G=0;r<ya;r++)F[G++]=X[r];for(r=0;r<za;r++)F[G++]=Y[r];if(!C){r=0;for(Z=H.length;r<Z;++r)H[r]=0;}r=D=0;for(Z=F.length;r<Z;r+=G){for(G=1;r+G<Z&&F[r+G]===F[r];++G);v=G;if(0===F[r])if(3>v)for(;0<v--;)E[D++]=0,
4708
- H[0]++;else for(;0<v;)A=138>v?v:138,A>v-3&&A<v&&(A=v-3),10>=A?(E[D++]=17,E[D++]=A-3,H[17]++):(E[D++]=18,E[D++]=A-11,H[18]++),v-=A;else if(E[D++]=F[r],H[F[r]]++,v--,3>v)for(;0<v--;)E[D++]=F[r],H[F[r]]++;else for(;0<v;)A=6>v?v:6,A>v-3&&A<v&&(A=v-3),E[D++]=16,E[D++]=A-3,H[16]++,v-=A;}f=C?E.subarray(0,D):E.slice(0,D);ga=pa(H,7);for(y=0;19>y;y++)ja[y]=ga[La[y]];for(Q=19;4<Q&&0===ja[Q-1];Q--);wa=qa(ga);B.b(O-257,5,w);B.b(P-1,5,w);B.b(Q-4,4,w);for(y=0;y<Q;y++)B.b(ja[y],3,w);y=0;for(xa=f.length;y<xa;y++)if(R=
4709
- f[y],B.b(wa[R],ga[R],w),16<=R){y++;switch(R){case 16:ha=2;break;case 17:ha=3;break;case 18:ha=7;break;default:throw "invalid code: "+R;}B.b(f[y],ha,w);}var Aa=[ua,X],Ba=[va,Y],I,Ca,$,ma,Da,Ea,Fa,Ga;Da=Aa[0];Ea=Aa[1];Fa=Ba[0];Ga=Ba[1];I=0;for(Ca=J.length;I<Ca;++I)if($=J[I],B.b(Da[$],Ea[$],w),256<$)B.b(J[++I],J[++I],w),ma=J[++I],B.b(Fa[ma],Ga[ma],w),B.b(J[++I],J[++I],w);else if(256===$)break;this.a=B.finish();this.c=this.a.length;break;default:throw "invalid compression type";}return this.a};
4710
- function ra(f,d){this.length=f;this.k=d;}
4711
- var sa=function(){function f(b){switch(w){case 3===b:return [257,b-3,0];case 4===b:return [258,b-4,0];case 5===b:return [259,b-5,0];case 6===b:return [260,b-6,0];case 7===b:return [261,b-7,0];case 8===b:return [262,b-8,0];case 9===b:return [263,b-9,0];case 10===b:return [264,b-10,0];case 12>=b:return [265,b-11,1];case 14>=b:return [266,b-13,1];case 16>=b:return [267,b-15,1];case 18>=b:return [268,b-17,1];case 22>=b:return [269,b-19,2];case 26>=b:return [270,b-23,2];case 30>=b:return [271,b-27,2];case 34>=b:return [272,
4712
- b-31,2];case 42>=b:return [273,b-35,3];case 50>=b:return [274,b-43,3];case 58>=b:return [275,b-51,3];case 66>=b:return [276,b-59,3];case 82>=b:return [277,b-67,4];case 98>=b:return [278,b-83,4];case 114>=b:return [279,b-99,4];case 130>=b:return [280,b-115,4];case 162>=b:return [281,b-131,5];case 194>=b:return [282,b-163,5];case 226>=b:return [283,b-195,5];case 257>=b:return [284,b-227,5];case 258===b:return [285,b-258,0];default:throw "invalid length: "+b;}}var d=[],c,e;for(c=3;258>=c;c++)e=f(c),d[c]=e[2]<<24|
4713
- e[1]<<16|e[0];return d}(),Ha=C?new Uint32Array(sa):sa;
4714
- function oa(f,d){function c(b,c){var a=b.k,d=[],e=0,f;f=Ha[b.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(w){case 1===a:g=[0,a-1,0];break;case 2===a:g=[1,a-2,0];break;case 3===a:g=[2,a-3,0];break;case 4===a:g=[3,a-4,0];break;case 6>=a:g=[4,a-5,1];break;case 8>=a:g=[5,a-7,1];break;case 12>=a:g=[6,a-9,2];break;case 16>=a:g=[7,a-13,2];break;case 24>=a:g=[8,a-17,3];break;case 32>=a:g=[9,a-25,3];break;case 48>=a:g=[10,a-33,4];break;case 64>=a:g=[11,a-49,4];break;case 96>=a:g=[12,a-
4715
- 65,5];break;case 128>=a:g=[13,a-97,5];break;case 192>=a:g=[14,a-129,6];break;case 256>=a:g=[15,a-193,6];break;case 384>=a:g=[16,a-257,7];break;case 512>=a:g=[17,a-385,7];break;case 768>=a:g=[18,a-513,8];break;case 1024>=a:g=[19,a-769,8];break;case 1536>=a:g=[20,a-1025,9];break;case 2048>=a:g=[21,a-1537,9];break;case 3072>=a:g=[22,a-2049,10];break;case 4096>=a:g=[23,a-3073,10];break;case 6144>=a:g=[24,a-4097,11];break;case 8192>=a:g=[25,a-6145,11];break;case 12288>=a:g=[26,a-8193,12];break;case 16384>=
4716
- a:g=[27,a-12289,12];break;case 24576>=a:g=[28,a-16385,13];break;case 32768>=a:g=[29,a-24577,13];break;default:throw "invalid distance";}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var k,m;k=0;for(m=d.length;k<m;++k)l[h++]=d[k];s[d[0]]++;x[d[3]]++;q=b.length+c-1;u=null;}var e,b,a,g,m,k={},p,t,u,l=C?new Uint16Array(2*d.length):[],h=0,q=0,s=new (C?Uint32Array:Array)(286),x=new (C?Uint32Array:Array)(30),fa=f.i,z;if(!C){for(a=0;285>=a;)s[a++]=0;for(a=0;29>=a;)x[a++]=0;}s[256]=1;e=0;for(b=d.length;e<b;++e){a=
4717
- m=0;for(g=3;a<g&&e+a!==b;++a)m=m<<8|d[e+a];k[m]===n&&(k[m]=[]);p=k[m];if(!(0<q--)){for(;0<p.length&&32768<e-p[0];)p.shift();if(e+3>=b){u&&c(u,-1);a=0;for(g=b-e;a<g;++a)z=d[e+a],l[h++]=z,++s[z];break}0<p.length?(t=Ia(d,e,p),u?u.length<t.length?(z=d[e-1],l[h++]=z,++s[z],c(t,0)):c(u,-1):t.length<fa?u=t:c(t,0)):u?c(u,-1):(z=d[e],l[h++]=z,++s[z]);}p.push(e);}l[h++]=256;s[256]++;f.m=s;f.l=x;return C?l.subarray(0,h):l}
4718
- function Ia(f,d,c){var e,b,a=0,g,m,k,p,t=f.length;m=0;p=c.length;a:for(;m<p;m++){e=c[p-m-1];g=3;if(3<a){for(k=a;3<k;k--)if(f[e+k-1]!==f[d+k-1])continue a;g=a;}for(;258>g&&d+g<t&&f[e+g]===f[d+g];)++g;g>a&&(b=e,a=g);if(258===g)break}return new ra(a,d-b)}
4719
- function pa(f,d){var c=f.length,e=new ia(572),b=new (C?Uint8Array:Array)(c),a,g,m,k,p;if(!C)for(k=0;k<c;k++)b[k]=0;for(k=0;k<c;++k)0<f[k]&&e.push(k,f[k]);a=Array(e.length/2);g=new (C?Uint32Array:Array)(e.length/2);if(1===a.length)return b[e.pop().index]=1,b;k=0;for(p=e.length/2;k<p;++k)a[k]=e.pop(),g[k]=a[k].value;m=Ja(g,g.length,d);k=0;for(p=a.length;k<p;++k)b[a[k].index]=m[k];return b}
4720
- function Ja(f,d,c){function e(a){var b=k[a][p[a]];b===d?(e(a+1),e(a+1)):--g[b];++p[a];}var b=new (C?Uint16Array:Array)(c),a=new (C?Uint8Array:Array)(c),g=new (C?Uint8Array:Array)(d),m=Array(c),k=Array(c),p=Array(c),t=(1<<c)-d,u=1<<c-1,l,h,q,s,x;b[c-1]=d;for(h=0;h<c;++h)t<u?a[h]=0:(a[h]=1,t-=u),t<<=1,b[c-2-h]=(b[c-1-h]/2|0)+d;b[0]=a[0];m[0]=Array(b[0]);k[0]=Array(b[0]);for(h=1;h<c;++h)b[h]>2*b[h-1]+a[h]&&(b[h]=2*b[h-1]+a[h]),m[h]=Array(b[h]),k[h]=Array(b[h]);for(l=0;l<d;++l)g[l]=c;for(q=0;q<b[c-1];++q)m[c-
4721
- 1][q]=f[q],k[c-1][q]=q;for(l=0;l<c;++l)p[l]=0;1===a[c-1]&&(--g[0],++p[c-1]);for(h=c-2;0<=h;--h){s=l=0;x=p[h+1];for(q=0;q<b[h];q++)s=m[h+1][x]+m[h+1][x+1],s>f[l]?(m[h][q]=s,k[h][q]=d,x+=2):(m[h][q]=f[l],k[h][q]=l,++l);p[h]=0;1===a[h]&&e(h);}return g}
4722
- function qa(f){var d=new (C?Uint16Array:Array)(f.length),c=[],e=[],b=0,a,g,m,k;a=0;for(g=f.length;a<g;a++)c[f[a]]=(c[f[a]]|0)+1;a=1;for(g=16;a<=g;a++)e[a]=b,b+=c[a]|0,b<<=1;a=0;for(g=f.length;a<g;a++){b=e[f[a]];e[f[a]]+=1;m=d[a]=0;for(k=f[a];m<k;m++)d[a]=d[a]<<1|b&1,b>>>=1;}return d}function Ka(f,d){this.input=f;this.a=new (C?Uint8Array:Array)(32768);this.d=V.g;var c={},e;if((d||!(d={}))&&"number"===typeof d.compressionType)this.d=d.compressionType;for(e in d)c[e]=d[e];c.outputBuffer=this.a;this.j=new ka(this.input,c);}var V=na;
4723
- Ka.prototype.f=function(){var f,d,c,e,b,a,g=0;a=this.a;switch(8){case 8:f=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}d=f<<4|8;a[g++]=d;switch(8){case 8:switch(this.d){case V.NONE:e=0;break;case V.h:e=1;break;case V.g:e=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}c=e<<6|0;a[g++]=c|31-(256*d+c)%31;var m=this.input;if("string"===typeof m){var k=m.split(""),p,t;p=0;for(t=k.length;p<t;p++)k[p]=
4724
- (k[p].charCodeAt(0)&255)>>>0;m=k;}for(var u=1,l=0,h=m.length,q,s=0;0<h;){q=1024<h?1024:h;h-=q;do u+=m[s++],l+=u;while(--q);u%=65521;l%=65521;}b=(l<<16|u)>>>0;this.j.c=g;a=this.j.f();g=a.length;C&&(a=new Uint8Array(a.buffer),a.length<=g+4&&(this.a=new Uint8Array(a.length+4),this.a.set(a),a=this.a),a=a.subarray(0,g+4));a[g++]=b>>24&255;a[g++]=b>>16&255;a[g++]=b>>8&255;a[g++]=b&255;return a};ba("Zlib.Deflate",Ka);ba("Zlib.Deflate.compress",function(f,d){return (new Ka(f,d)).f()});ba("Zlib.Deflate.prototype.compress",Ka.prototype.f);var Ma={NONE:V.NONE,FIXED:V.h,DYNAMIC:V.g},Na,Oa,W,Pa;if(Object.keys)Na=Object.keys(Ma);else for(Oa in Na=[],W=0,Ma)Na[W++]=Oa;W=0;for(Pa=Na.length;W<Pa;++W)Oa=Na[W],ba("Zlib.Deflate.CompressionType."+Oa,Ma[Oa]);}).call(module.exports);
4725
- } (deflate_min));
4726
-
4727
- var deflate_minExports = deflate_min.exports;
4728
- var ZLibDeflate = /*@__PURE__*/getDefaultExportFromCjs(deflate_minExports);
4729
-
4730
- ({
4731
- 'Deflate': ZLibDeflate.Zlib.Deflate
4732
- });
4733
-
4734
- function getZoneSafeMethod$1(_, method, target) {
4735
- if (target === void 0) { target = window; }
4736
- var zoneSymbol = '__symbol__';
4737
- /* global Zone */
4738
- if (typeof Zone !== 'undefined' && _.isFunction(Zone[zoneSymbol])) {
4739
- var fn = target[Zone[zoneSymbol](method)];
4740
- if (_.isFunction(fn)) {
4741
- return fn;
4742
- }
4743
- }
4744
- return target[method];
4745
- }
4746
-
4747
- var crc32_min = {exports: {}};
4748
-
4749
- /*
4750
- * @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
4751
- */
4752
-
4753
- (function (module) {
4754
- (function() {var f=this;function h(c,a){var b=c.split("."),e=f;!(b[0]in e)&&e.execScript&&e.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)!b.length&&void 0!==a?e[d]=a:e=e[d]?e[d]:e[d]={};}var l={c:function(c,a,b){return l.update(c,0,a,b)},update:function(c,a,b,e){var d=l.a,g="number"===typeof b?b:b=0,k="number"===typeof e?e:c.length;a^=4294967295;for(g=k&7;g--;++b)a=a>>>8^d[(a^c[b])&255];for(g=k>>3;g--;b+=8)a=a>>>8^d[(a^c[b])&255],a=a>>>8^d[(a^c[b+1])&255],a=a>>>8^d[(a^c[b+2])&255],a=a>>>8^d[(a^c[b+3])&255],a=a>>>8^d[(a^c[b+4])&255],a=a>>>8^d[(a^c[b+5])&255],a=a>>>8^d[(a^c[b+6])&255],a=a>>>8^d[(a^c[b+7])&255];return (a^4294967295)>>>0},d:function(c,a){return (l.a[(c^a)&255]^c>>>8)>>>
4755
- 0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,
4756
- 2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,
4757
- 2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,
4758
- 2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,
4759
- 3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,
4760
- 936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};l.a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array?new Uint32Array(l.b):l.b;h("Zlib.CRC32",l);h("Zlib.CRC32.calc",l.c);h("Zlib.CRC32.update",l.update);}).call(module.exports);
4761
- } (crc32_min));
4762
-
4763
- var crc32_minExports = crc32_min.exports;
4764
- var ZlibCRC32 = /*@__PURE__*/getDefaultExportFromCjs(crc32_minExports);
4765
-
4766
- ({
4767
- 'CRC32': ZlibCRC32.Zlib.CRC32
4768
- });
4769
- function randomElement(array) {
4770
- return array[Math.floor(Math.random() * array.length)];
4771
- }
4772
- function randomString(length) {
4773
- var letters = 'abcdefghijklmnopqrstuvwxyz';
4774
- var charset = letters + letters.toUpperCase() + '1234567890';
4775
- var R = '';
4776
- var charsetArray = charset.split('');
4777
- for (var i = 0; i < length; i++) {
4778
- R += randomElement(charsetArray);
4779
- }
4780
- return R;
4781
- }
4782
- // Date.now() can be overridden by libraries to return a Date object instead of timestamp
4783
- // This is our now() function
4784
- function getNow() {
4785
- return new Date().getTime();
4786
- }
4787
- function getZoneSafeMethod(method, target) {
4788
- if (target === void 0) { target = window; }
4789
- return getZoneSafeMethod$1(_, method, target);
4790
- }
4791
- function getIsFiniteImpl(window) {
4792
- return _.isFunction(window.isFinite) ? window.isFinite
4793
- : (window.Number && _.isFunction(window.Number.isFinite)) ? window.Number.isFinite
4794
- : function (obj) {
4795
- return obj != Infinity && obj != -Infinity && !isNaN(obj);
4796
- };
4797
- }
4798
- getIsFiniteImpl(window);
4799
-
4800
- function DomData() {
4801
- this.ownerKey = '_pendo_' + randomString(8);
4802
- }
4803
- _.extend(DomData.prototype, {
4804
- 'cache': function (owner) {
4805
- if (!_.isObject(owner))
4806
- return {};
4807
- var cache = owner[this.ownerKey];
4808
- if (!cache) {
4809
- cache = {};
4810
- owner[this.ownerKey] = cache;
4811
- }
4812
- return cache;
4813
- },
4814
- 'set': function (owner, key, value) {
4815
- var cache = this.cache(owner);
4816
- cache[key] = value;
4817
- return cache;
4818
- },
4819
- 'get': function (owner, key) {
4820
- return key === undefined ? this.cache(owner) : owner[this.ownerKey] && owner[this.ownerKey][key];
4821
- },
4822
- 'remove': function (owner, key) {
4823
- var cache = this.cache(owner);
4824
- delete cache[key];
4825
- if (key === undefined || _.isEmpty(cache)) {
4826
- owner[this.ownerKey] = undefined;
4827
- }
4828
- }
4829
- });
4830
- var DomData$1 = new DomData();
4831
-
4832
- function hasComposedPath(evt) {
4833
- return evt && _.isFunction(evt.composedPath);
4834
- }
4835
- function getComposedPath(evt) {
4836
- if (hasComposedPath(evt)) {
4837
- try {
4838
- return evt.composedPath();
4839
- }
4840
- catch (e) {
4841
- return evt.path;
4842
- }
4843
- }
4844
- return null;
4845
- }
4846
- function getShadowRoot(elem) {
4847
- return elem.shadowRoot;
4848
- }
4849
- function isElementShadowRoot(elem, _win) {
4850
- if (!_win) {
4851
- _win = window;
4852
- }
4853
- return typeof _win.ShadowRoot !== 'undefined' && elem instanceof _win.ShadowRoot && elem.host;
4854
- }
4855
- function getParent(elem, _win) {
4856
- return isElementShadowRoot(elem, _win) ? elem.host : elem.parentNode;
4857
- }
4858
-
4859
- var shadowAPI = (function () {
4860
- function isShadowSelector(selector) {
4861
- return selector ? selector.indexOf(shadowAPI.PSEUDO_ELEMENT) > -1 : false;
4862
- }
4863
- function stringifyTokens(selector) {
4864
- return _.reduce(selector, function (string, selectorChunk) {
4865
- if (selectorChunk.value === shadowAPI.PSEUDO_SAFE) {
4866
- return string + shadowAPI.PSEUDO_ELEMENT;
4867
- }
4868
- return string + selectorChunk.value;
4869
- }, '');
4870
- }
4871
- function tokenizeSelectors(selection, Sizzle) {
4872
- var safeSelection = selection.replace(shadowAPI.PSEUDO_REGEX, shadowAPI.PSEUDO_SAFE);
4873
- return _.map(Sizzle.tokenize(safeSelection), stringifyTokens);
4874
- }
4875
- function parseShadowSelector(selector) {
4876
- var splitter = selector.split(shadowAPI.PSEUDO_ELEMENT);
4877
- var css = splitter.splice(0, 1)[0];
4878
- var shadowCss = splitter.join(shadowAPI.PSEUDO_ELEMENT);
4879
- return { 'baseCss': css, 'shadowCss': shadowCss };
4880
- }
4881
- return {
4882
- 'PSEUDO_ELEMENT': '::shadow',
4883
- 'PSEUDO_SAFE': ':shadow',
4884
- 'PSEUDO_REGEX': /::shadow/g,
4885
- 'getComposedPath': getComposedPath,
4886
- 'getShadowRoot': getShadowRoot,
4887
- 'isElementShadowRoot': isElementShadowRoot,
4888
- 'getParent': getParent,
4889
- 'isShadowSelector': isShadowSelector,
4890
- 'wrapSizzle': function (Sizzle) {
4891
- Sizzle.intercept(function (Sizzle, selection, context, results, seed) {
4892
- if (!isShadowSelector(selection)) {
4893
- return Sizzle(selection, context, results, seed);
4894
- }
4895
- if (!_.isFunction(document.documentElement.attachShadow)) {
4896
- return Sizzle(selection.replace(shadowAPI.PSEUDO_REGEX, ''), context, results, seed);
4897
- }
4898
- // We'll need to potentially be a Recursive Descent Parser if the Selector
4899
- // has Shadow Root piercing pseudo selector.
4900
- function shadowSizzleWrapper(query, context, results, seed) {
4901
- if (isShadowSelector(query)) {
4902
- var shadowQuery = parseShadowSelector(query);
4903
- var baseElem = shadowSizzleWrapper(shadowQuery.baseCss, context);
4904
- return _.reduce(baseElem, function (shadowResults, base) {
4905
- if (!shadowAPI.getShadowRoot(base))
4906
- return shadowResults;
4907
- return shadowResults.concat(shadowSizzleWrapper(shadowQuery.shadowCss, shadowAPI.getShadowRoot(base), results, seed));
4908
- }, []);
4909
- }
4910
- // base case
4911
- return Sizzle(query, context, results, seed);
4912
- }
4913
- var selectors = tokenizeSelectors(selection, Sizzle);
4914
- return _.reduce(selectors, function (nodes, query) {
4915
- return nodes.concat(shadowSizzleWrapper(query, context, results, seed));
4916
- }, []);
4917
- });
4918
- Sizzle.intercept(function (matchesSelector, element, selector) {
4919
- if (shadowAPI.isElementShadowRoot(element)) {
4920
- return false;
4921
- }
4922
- if (isShadowSelector(selector)) {
4923
- return Sizzle(selector, document, null, [element]).length > 0;
4924
- }
4925
- return matchesSelector(element, selector);
4926
- }, 'matchesSelector');
4927
- }
4928
- };
4929
- })();
4930
-
4931
- /*
4932
- * @license MIT - https://github.com/taylorhakes/promise-polyfill
4933
- */
4934
- // Modified to not affect global environment
4935
- var Promise$1 = window.Promise;
4936
-
4937
- Promise$1 = (function (global, factory) {
4938
- var nativePromise = global.Promise;
4939
- if (typeof nativePromise !== 'function' || !/native/.test(nativePromise)) {
4940
- return factory();
4941
- }
4942
-
4943
- return nativePromise;
4944
- }(window, (function () {
4945
- /**
4946
- * @this {Promise}
4947
- */
4948
- function finallyConstructor(callback) {
4949
- var constructor = this.constructor;
4950
- return this.then(
4951
- function(value) {
4952
- // @ts-ignore
4953
- return constructor.resolve(callback()).then(function() {
4954
- return value;
4955
- });
4956
- },
4957
- function(reason) {
4958
- // @ts-ignore
4959
- return constructor.resolve(callback()).then(function() {
4960
- // @ts-ignore
4961
- return constructor.reject(reason);
4962
- });
4963
- }
4964
- );
4965
- }
4966
-
4967
- function allSettled(arr) {
4968
- var P = this;
4969
- return new P(function(resolve, reject) {
4970
- if (!(arr && typeof arr.length !== 'undefined')) {
4971
- return reject(
4972
- new TypeError(
4973
- typeof arr +
4974
- ' ' +
4975
- arr +
4976
- ' is not iterable(cannot read property Symbol(Symbol.iterator))'
4977
- )
4978
- );
4979
- }
4980
- var args = Array.prototype.slice.call(arr);
4981
- if (args.length === 0) return resolve([]);
4982
- var remaining = args.length;
4983
-
4984
- function res(i, val) {
4985
- if (val && (typeof val === 'object' || typeof val === 'function')) {
4986
- var then = val.then;
4987
- if (typeof then === 'function') {
4988
- then.call(
4989
- val,
4990
- function(val) {
4991
- res(i, val);
4992
- },
4993
- function(e) {
4994
- args[i] = { status: 'rejected', reason: e };
4995
- if (--remaining === 0) {
4996
- resolve(args);
4997
- }
4998
- }
4999
- );
5000
- return;
5001
- }
5002
- }
5003
- args[i] = { status: 'fulfilled', value: val };
5004
- if (--remaining === 0) {
5005
- resolve(args);
5006
- }
5007
- }
5008
-
5009
- for (var i = 0; i < args.length; i++) {
5010
- res(i, args[i]);
5011
- }
5012
- });
5013
- }
5014
-
5015
- // Store setTimeout reference so promise-polyfill will be unaffected by
5016
- // other code modifying setTimeout (like sinon.useFakeTimers())
5017
- var setTimeoutFunc = setTimeout$1;
5018
-
5019
- function isArray(x) {
5020
- return Boolean(x && typeof x.length !== 'undefined');
5021
- }
5022
-
5023
- function noop() {}
5024
-
5025
- // Polyfill for Function.prototype.bind
5026
- function bind(fn, thisArg) {
5027
- return function() {
5028
- fn.apply(thisArg, arguments);
5029
- };
5030
- }
5031
-
5032
- /**
5033
- * @constructor
5034
- * @param {Function} fn
5035
- */
5036
- function Promise(fn) {
5037
- if (!(this instanceof Promise))
5038
- throw new TypeError('Promises must be constructed via new');
5039
- if (typeof fn !== 'function') throw new TypeError('not a function');
5040
- /** @type {!number} */
5041
- this._state = 0;
5042
- /** @type {!boolean} */
5043
- this._handled = false;
5044
- /** @type {Promise|undefined} */
5045
- this._value = undefined;
5046
- /** @type {!Array<!Function>} */
5047
- this._deferreds = [];
5048
-
5049
- doResolve(fn, this);
5050
- }
5051
-
5052
- function handle(self, deferred) {
5053
- while (self._state === 3) {
5054
- self = self._value;
5055
- }
5056
- if (self._state === 0) {
5057
- self._deferreds.push(deferred);
5058
- return;
5059
- }
5060
- self._handled = true;
5061
- Promise._immediateFn(function() {
5062
- var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
5063
- if (cb === null) {
5064
- (self._state === 1 ? resolve : reject)(deferred.promise, self._value);
5065
- return;
5066
- }
5067
- var ret;
5068
- try {
5069
- ret = cb(self._value);
5070
- } catch (e) {
5071
- reject(deferred.promise, e);
5072
- return;
5073
- }
5074
- resolve(deferred.promise, ret);
5075
- });
5076
- }
5077
-
5078
- function resolve(self, newValue) {
5079
- try {
5080
- // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
5081
- if (newValue === self)
5082
- throw new TypeError('A promise cannot be resolved with itself.');
5083
- if (
5084
- newValue &&
5085
- (typeof newValue === 'object' || typeof newValue === 'function')
5086
- ) {
5087
- var then = newValue.then;
5088
- if (newValue instanceof Promise) {
5089
- self._state = 3;
5090
- self._value = newValue;
5091
- finale(self);
5092
- return;
5093
- } else if (typeof then === 'function') {
5094
- doResolve(bind(then, newValue), self);
5095
- return;
5096
- }
5097
- }
5098
- self._state = 1;
5099
- self._value = newValue;
5100
- finale(self);
5101
- } catch (e) {
5102
- reject(self, e);
5103
- }
5104
- }
4954
+ return elem[ name ] === true ? name.toLowerCase() :
4955
+ ( val = elem.getAttributeNode( name ) ) && val.specified ?
4956
+ val.value :
4957
+ null;
4958
+ }
4959
+ } );
4960
+ }
5105
4961
 
5106
- function reject(self, newValue) {
5107
- self._state = 2;
5108
- self._value = newValue;
5109
- finale(self);
5110
- }
4962
+ // EXPOSE
4963
+ var _sizzle = window.Sizzle;
5111
4964
 
5112
- function finale(self) {
5113
- if (self._state === 2 && self._deferreds.length === 0) {
5114
- Promise._immediateFn(function() {
5115
- if (!self._handled) {
5116
- Promise._unhandledRejectionFn(self._value);
5117
- }
5118
- });
5119
- }
4965
+ Sizzle.noConflict = function() {
4966
+ if ( window.Sizzle === Sizzle ) {
4967
+ window.Sizzle = _sizzle;
4968
+ }
5120
4969
 
5121
- for (var i = 0, len = self._deferreds.length; i < len; i++) {
5122
- handle(self, self._deferreds[i]);
5123
- }
5124
- self._deferreds = null;
4970
+ return Sizzle;
4971
+ };
4972
+
4973
+ if ( module.exports ) {
4974
+ module.exports = Sizzle;
4975
+ } else {
4976
+ window.Sizzle = Sizzle;
4977
+ }
4978
+
4979
+ // EXPOSE
4980
+
4981
+ } )( window );
4982
+ } (sizzle));
4983
+
4984
+ var sizzleExports = sizzle.exports;
4985
+ var Sizzle = /*@__PURE__*/getDefaultExportFromCjs(sizzleExports);
4986
+
4987
+ function wrapSizzle(Sizzle) {
4988
+ var proxy = _.extend(function () {
4989
+ return proxy.Sizzle.apply(this, arguments);
4990
+ }, Sizzle);
4991
+ proxy.reset = function () {
4992
+ proxy.Sizzle = Sizzle;
4993
+ proxy.matchesSelector = Sizzle.matchesSelector;
4994
+ proxy.matches = Sizzle.matches;
4995
+ };
4996
+ proxy.intercept = function (fn, methodName) {
4997
+ if (methodName === void 0) { methodName = 'Sizzle'; }
4998
+ proxy[methodName] = _.wrap(proxy[methodName], fn);
4999
+ };
5000
+ proxy.reset();
5001
+ return proxy;
5125
5002
  }
5003
+ var SizzleProxy = wrapSizzle(Sizzle);
5126
5004
 
5127
5005
  /**
5128
- * @constructor
5129
- */
5130
- function Handler(onFulfilled, onRejected, promise) {
5131
- this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
5132
- this.onRejected = typeof onRejected === 'function' ? onRejected : null;
5133
- this.promise = promise;
5006
+ * Find all Elements that match the CSS Selector.
5007
+ *
5008
+ * @param {string} cssSelector CSS selector used to search DOM
5009
+ * @returns {DomQuery} array with the matching elements
5010
+ * @access public
5011
+ * @category DOM
5012
+ * @example
5013
+ * pendo.dom('h1')[0].remove()
5014
+ * @example
5015
+ * pendo.dom('.left').css({ 'text-align': 'center' })
5016
+ */ /**
5017
+ * Creates new DOM elements from HTML text.
5018
+ *
5019
+ * @param {string} htmlString HTML syntax used to produce new DOM elements
5020
+ * @returns {DomQuery} array with the matching elements
5021
+ * @access public
5022
+ * @category DOM
5023
+ * @example
5024
+ * pendo.dom('<div><span>this should create an unattached DOM node</span></div>');
5025
+ */
5026
+ function dom(selection, context) {
5027
+ var self = this;
5028
+ var nodes;
5029
+ var tag;
5030
+ if (selection && selection instanceof dom) {
5031
+ return selection;
5032
+ }
5033
+ if (!(self instanceof dom)) {
5034
+ // eslint-disable-next-line new-cap
5035
+ return new dom(selection, context);
5036
+ }
5037
+ if (!selection) {
5038
+ nodes = [];
5039
+ }
5040
+ else if (selection.nodeType) {
5041
+ nodes = [selection];
5042
+ }
5043
+ else if ((tag = /^<(\w+)\/?>$/.exec(selection))) {
5044
+ nodes = [document.createElement(tag[1])];
5045
+ }
5046
+ else if (/^<[\w\W]+>$/.test(selection)) {
5047
+ var container = document.createElement('div');
5048
+ container.innerHTML = selection;
5049
+ nodes = _.toArray(container.childNodes);
5050
+ }
5051
+ else if (_.isString(selection)) {
5052
+ if (context instanceof dom) {
5053
+ context = context.length > 0 ? context[0] : null;
5054
+ }
5055
+ // CSS selector
5056
+ try {
5057
+ nodes = SizzleProxy(selection, context);
5058
+ }
5059
+ catch (e) {
5060
+ nodes = [];
5061
+ }
5062
+ }
5063
+ else {
5064
+ // handle case where selection is not sizzle-able (window, numbers, etc.)
5065
+ nodes = [selection];
5066
+ }
5067
+ _.each(nodes, function (node, i) {
5068
+ self[i] = node;
5069
+ });
5070
+ self.context = context;
5071
+ self.length = nodes.length;
5072
+ if (typeof Symbol !== 'undefined' && Symbol.iterator) {
5073
+ self[Symbol.iterator] = function () {
5074
+ var _i, nodes_1, node;
5075
+ return __generator(this, function (_a) {
5076
+ switch (_a.label) {
5077
+ case 0:
5078
+ _i = 0, nodes_1 = nodes;
5079
+ _a.label = 1;
5080
+ case 1:
5081
+ if (!(_i < nodes_1.length)) return [3 /*break*/, 4];
5082
+ node = nodes_1[_i];
5083
+ return [4 /*yield*/, node];
5084
+ case 2:
5085
+ _a.sent();
5086
+ _a.label = 3;
5087
+ case 3:
5088
+ _i++;
5089
+ return [3 /*break*/, 1];
5090
+ case 4: return [2 /*return*/];
5091
+ }
5092
+ });
5093
+ };
5094
+ }
5095
+ return self;
5134
5096
  }
5135
5097
 
5136
5098
  /**
5137
- * Take a potentially misbehaving resolver function and make sure
5138
- * onFulfilled and onRejected are only called once.
5099
+ * Utility function to check if passed value exists. Returns false for `null` and `undefined`.
5139
5100
  *
5140
- * Makes no guarantees about asynchrony.
5101
+ * @access public
5102
+ * @category Utility
5103
+ * @param {any} value argument to type check
5104
+ * @returns {Boolean}
5105
+ * @example
5106
+ * pendo.doesExist(null) => false
5107
+ * pendo.doesExist('foo') => true
5141
5108
  */
5142
- function doResolve(fn, self) {
5143
- var done = false;
5144
- try {
5145
- fn(
5146
- function(value) {
5147
- if (done) return;
5148
- done = true;
5149
- resolve(self, value);
5150
- },
5151
- function(reason) {
5152
- if (done) return;
5153
- done = true;
5154
- reject(self, reason);
5155
- }
5156
- );
5157
- } catch (ex) {
5158
- if (done) return;
5159
- done = true;
5160
- reject(self, ex);
5161
- }
5109
+ function doesExist(arg) {
5110
+ return !(typeof arg === 'undefined' || arg === null);
5162
5111
  }
5163
5112
 
5164
- Promise.prototype['catch'] = function(onRejected) {
5165
- return this.then(null, onRejected);
5166
- };
5167
-
5168
- Promise.prototype.then = function(onFulfilled, onRejected) {
5169
- // @ts-ignore
5170
- var prom = new this.constructor(noop);
5113
+ var rtrim = /^\s+|\s+$/g;
5114
+ var trim = String.prototype.trim;
5115
+ if (!trim) {
5116
+ trim = function () {
5117
+ return this.replace(rtrim, '');
5118
+ };
5119
+ }
5171
5120
 
5172
- handle(this, new Handler(onFulfilled, onRejected, prom));
5173
- return prom;
5174
- };
5121
+ var deflate_min = {exports: {}};
5175
5122
 
5176
- Promise.prototype['finally'] = finallyConstructor;
5123
+ /*
5124
+ * @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
5125
+ */
5177
5126
 
5178
- Promise.all = function(arr) {
5179
- return new Promise(function(resolve, reject) {
5180
- if (!isArray(arr)) {
5181
- return reject(new TypeError('Promise.all accepts an array'));
5182
- }
5127
+ (function (module) {
5128
+ (function() {var n=void 0,w=!0,aa=this;function ba(f,d){var c=f.split("."),e=aa;!(c[0]in e)&&e.execScript&&e.execScript("var "+c[0]);for(var b;c.length&&(b=c.shift());)!c.length&&d!==n?e[b]=d:e=e[b]?e[b]:e[b]={};}var C="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;function K(f,d){this.index="number"===typeof d?d:0;this.e=0;this.buffer=f instanceof(C?Uint8Array:Array)?f:new (C?Uint8Array:Array)(32768);if(2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&ca(this);}function ca(f){var d=f.buffer,c,e=d.length,b=new (C?Uint8Array:Array)(e<<1);if(C)b.set(d);else for(c=0;c<e;++c)b[c]=d[c];return f.buffer=b}
5129
+ K.prototype.b=function(f,d,c){var e=this.buffer,b=this.index,a=this.e,g=e[b],m;c&&1<d&&(f=8<d?(L[f&255]<<24|L[f>>>8&255]<<16|L[f>>>16&255]<<8|L[f>>>24&255])>>32-d:L[f]>>8-d);if(8>d+a)g=g<<d|f,a+=d;else for(m=0;m<d;++m)g=g<<1|f>>d-m-1&1,8===++a&&(a=0,e[b++]=L[g],g=0,b===e.length&&(e=ca(this)));e[b]=g;this.buffer=e;this.e=a;this.index=b;};K.prototype.finish=function(){var f=this.buffer,d=this.index,c;0<this.e&&(f[d]<<=8-this.e,f[d]=L[f[d]],d++);C?c=f.subarray(0,d):(f.length=d,c=f);return c};
5130
+ var da=new (C?Uint8Array:Array)(256),M;for(M=0;256>M;++M){for(var N=M,S=N,ea=7,N=N>>>1;N;N>>>=1)S<<=1,S|=N&1,--ea;da[M]=(S<<ea&255)>>>0;}var L=da;function ia(f){this.buffer=new (C?Uint16Array:Array)(2*f);this.length=0;}ia.prototype.getParent=function(f){return 2*((f-2)/4|0)};ia.prototype.push=function(f,d){var c,e,b=this.buffer,a;c=this.length;b[this.length++]=d;for(b[this.length++]=f;0<c;)if(e=this.getParent(c),b[c]>b[e])a=b[c],b[c]=b[e],b[e]=a,a=b[c+1],b[c+1]=b[e+1],b[e+1]=a,c=e;else break;return this.length};
5131
+ ia.prototype.pop=function(){var f,d,c=this.buffer,e,b,a;d=c[0];f=c[1];this.length-=2;c[0]=c[this.length];c[1]=c[this.length+1];for(a=0;;){b=2*a+2;if(b>=this.length)break;b+2<this.length&&c[b+2]>c[b]&&(b+=2);if(c[b]>c[a])e=c[a],c[a]=c[b],c[b]=e,e=c[a+1],c[a+1]=c[b+1],c[b+1]=e;else break;a=b;}return {index:f,value:d,length:this.length}};function ka(f,d){this.d=la;this.i=0;this.input=C&&f instanceof Array?new Uint8Array(f):f;this.c=0;d&&(d.lazy&&(this.i=d.lazy),"number"===typeof d.compressionType&&(this.d=d.compressionType),d.outputBuffer&&(this.a=C&&d.outputBuffer instanceof Array?new Uint8Array(d.outputBuffer):d.outputBuffer),"number"===typeof d.outputIndex&&(this.c=d.outputIndex));this.a||(this.a=new (C?Uint8Array:Array)(32768));}var la=2,na={NONE:0,h:1,g:la,n:3},T=[],U;
5132
+ for(U=0;288>U;U++)switch(w){case 143>=U:T.push([U+48,8]);break;case 255>=U:T.push([U-144+400,9]);break;case 279>=U:T.push([U-256+0,7]);break;case 287>=U:T.push([U-280+192,8]);break;default:throw "invalid literal: "+U;}
5133
+ ka.prototype.f=function(){var f,d,c,e,b=this.input;switch(this.d){case 0:c=0;for(e=b.length;c<e;){d=C?b.subarray(c,c+65535):b.slice(c,c+65535);c+=d.length;var a=d,g=c===e,m=n,k=n,p=n,t=n,u=n,l=this.a,h=this.c;if(C){for(l=new Uint8Array(this.a.buffer);l.length<=h+a.length+5;)l=new Uint8Array(l.length<<1);l.set(this.a);}m=g?1:0;l[h++]=m|0;k=a.length;p=~k+65536&65535;l[h++]=k&255;l[h++]=k>>>8&255;l[h++]=p&255;l[h++]=p>>>8&255;if(C)l.set(a,h),h+=a.length,l=l.subarray(0,h);else {t=0;for(u=a.length;t<u;++t)l[h++]=
5134
+ a[t];l.length=h;}this.c=h;this.a=l;}break;case 1:var q=new K(C?new Uint8Array(this.a.buffer):this.a,this.c);q.b(1,1,w);q.b(1,2,w);var s=oa(this,b),x,fa,z;x=0;for(fa=s.length;x<fa;x++)if(z=s[x],K.prototype.b.apply(q,T[z]),256<z)q.b(s[++x],s[++x],w),q.b(s[++x],5),q.b(s[++x],s[++x],w);else if(256===z)break;this.a=q.finish();this.c=this.a.length;break;case la:var B=new K(C?new Uint8Array(this.a.buffer):this.a,this.c),ta,J,O,P,Q,La=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],X,ua,Y,va,ga,ja=Array(19),
5135
+ wa,R,ha,y,xa;ta=la;B.b(1,1,w);B.b(ta,2,w);J=oa(this,b);X=pa(this.m,15);ua=qa(X);Y=pa(this.l,7);va=qa(Y);for(O=286;257<O&&0===X[O-1];O--);for(P=30;1<P&&0===Y[P-1];P--);var ya=O,za=P,F=new (C?Uint32Array:Array)(ya+za),r,G,v,Z,E=new (C?Uint32Array:Array)(316),D,A,H=new (C?Uint8Array:Array)(19);for(r=G=0;r<ya;r++)F[G++]=X[r];for(r=0;r<za;r++)F[G++]=Y[r];if(!C){r=0;for(Z=H.length;r<Z;++r)H[r]=0;}r=D=0;for(Z=F.length;r<Z;r+=G){for(G=1;r+G<Z&&F[r+G]===F[r];++G);v=G;if(0===F[r])if(3>v)for(;0<v--;)E[D++]=0,
5136
+ H[0]++;else for(;0<v;)A=138>v?v:138,A>v-3&&A<v&&(A=v-3),10>=A?(E[D++]=17,E[D++]=A-3,H[17]++):(E[D++]=18,E[D++]=A-11,H[18]++),v-=A;else if(E[D++]=F[r],H[F[r]]++,v--,3>v)for(;0<v--;)E[D++]=F[r],H[F[r]]++;else for(;0<v;)A=6>v?v:6,A>v-3&&A<v&&(A=v-3),E[D++]=16,E[D++]=A-3,H[16]++,v-=A;}f=C?E.subarray(0,D):E.slice(0,D);ga=pa(H,7);for(y=0;19>y;y++)ja[y]=ga[La[y]];for(Q=19;4<Q&&0===ja[Q-1];Q--);wa=qa(ga);B.b(O-257,5,w);B.b(P-1,5,w);B.b(Q-4,4,w);for(y=0;y<Q;y++)B.b(ja[y],3,w);y=0;for(xa=f.length;y<xa;y++)if(R=
5137
+ f[y],B.b(wa[R],ga[R],w),16<=R){y++;switch(R){case 16:ha=2;break;case 17:ha=3;break;case 18:ha=7;break;default:throw "invalid code: "+R;}B.b(f[y],ha,w);}var Aa=[ua,X],Ba=[va,Y],I,Ca,$,ma,Da,Ea,Fa,Ga;Da=Aa[0];Ea=Aa[1];Fa=Ba[0];Ga=Ba[1];I=0;for(Ca=J.length;I<Ca;++I)if($=J[I],B.b(Da[$],Ea[$],w),256<$)B.b(J[++I],J[++I],w),ma=J[++I],B.b(Fa[ma],Ga[ma],w),B.b(J[++I],J[++I],w);else if(256===$)break;this.a=B.finish();this.c=this.a.length;break;default:throw "invalid compression type";}return this.a};
5138
+ function ra(f,d){this.length=f;this.k=d;}
5139
+ var sa=function(){function f(b){switch(w){case 3===b:return [257,b-3,0];case 4===b:return [258,b-4,0];case 5===b:return [259,b-5,0];case 6===b:return [260,b-6,0];case 7===b:return [261,b-7,0];case 8===b:return [262,b-8,0];case 9===b:return [263,b-9,0];case 10===b:return [264,b-10,0];case 12>=b:return [265,b-11,1];case 14>=b:return [266,b-13,1];case 16>=b:return [267,b-15,1];case 18>=b:return [268,b-17,1];case 22>=b:return [269,b-19,2];case 26>=b:return [270,b-23,2];case 30>=b:return [271,b-27,2];case 34>=b:return [272,
5140
+ b-31,2];case 42>=b:return [273,b-35,3];case 50>=b:return [274,b-43,3];case 58>=b:return [275,b-51,3];case 66>=b:return [276,b-59,3];case 82>=b:return [277,b-67,4];case 98>=b:return [278,b-83,4];case 114>=b:return [279,b-99,4];case 130>=b:return [280,b-115,4];case 162>=b:return [281,b-131,5];case 194>=b:return [282,b-163,5];case 226>=b:return [283,b-195,5];case 257>=b:return [284,b-227,5];case 258===b:return [285,b-258,0];default:throw "invalid length: "+b;}}var d=[],c,e;for(c=3;258>=c;c++)e=f(c),d[c]=e[2]<<24|
5141
+ e[1]<<16|e[0];return d}(),Ha=C?new Uint32Array(sa):sa;
5142
+ function oa(f,d){function c(b,c){var a=b.k,d=[],e=0,f;f=Ha[b.length];d[e++]=f&65535;d[e++]=f>>16&255;d[e++]=f>>24;var g;switch(w){case 1===a:g=[0,a-1,0];break;case 2===a:g=[1,a-2,0];break;case 3===a:g=[2,a-3,0];break;case 4===a:g=[3,a-4,0];break;case 6>=a:g=[4,a-5,1];break;case 8>=a:g=[5,a-7,1];break;case 12>=a:g=[6,a-9,2];break;case 16>=a:g=[7,a-13,2];break;case 24>=a:g=[8,a-17,3];break;case 32>=a:g=[9,a-25,3];break;case 48>=a:g=[10,a-33,4];break;case 64>=a:g=[11,a-49,4];break;case 96>=a:g=[12,a-
5143
+ 65,5];break;case 128>=a:g=[13,a-97,5];break;case 192>=a:g=[14,a-129,6];break;case 256>=a:g=[15,a-193,6];break;case 384>=a:g=[16,a-257,7];break;case 512>=a:g=[17,a-385,7];break;case 768>=a:g=[18,a-513,8];break;case 1024>=a:g=[19,a-769,8];break;case 1536>=a:g=[20,a-1025,9];break;case 2048>=a:g=[21,a-1537,9];break;case 3072>=a:g=[22,a-2049,10];break;case 4096>=a:g=[23,a-3073,10];break;case 6144>=a:g=[24,a-4097,11];break;case 8192>=a:g=[25,a-6145,11];break;case 12288>=a:g=[26,a-8193,12];break;case 16384>=
5144
+ a:g=[27,a-12289,12];break;case 24576>=a:g=[28,a-16385,13];break;case 32768>=a:g=[29,a-24577,13];break;default:throw "invalid distance";}f=g;d[e++]=f[0];d[e++]=f[1];d[e++]=f[2];var k,m;k=0;for(m=d.length;k<m;++k)l[h++]=d[k];s[d[0]]++;x[d[3]]++;q=b.length+c-1;u=null;}var e,b,a,g,m,k={},p,t,u,l=C?new Uint16Array(2*d.length):[],h=0,q=0,s=new (C?Uint32Array:Array)(286),x=new (C?Uint32Array:Array)(30),fa=f.i,z;if(!C){for(a=0;285>=a;)s[a++]=0;for(a=0;29>=a;)x[a++]=0;}s[256]=1;e=0;for(b=d.length;e<b;++e){a=
5145
+ m=0;for(g=3;a<g&&e+a!==b;++a)m=m<<8|d[e+a];k[m]===n&&(k[m]=[]);p=k[m];if(!(0<q--)){for(;0<p.length&&32768<e-p[0];)p.shift();if(e+3>=b){u&&c(u,-1);a=0;for(g=b-e;a<g;++a)z=d[e+a],l[h++]=z,++s[z];break}0<p.length?(t=Ia(d,e,p),u?u.length<t.length?(z=d[e-1],l[h++]=z,++s[z],c(t,0)):c(u,-1):t.length<fa?u=t:c(t,0)):u?c(u,-1):(z=d[e],l[h++]=z,++s[z]);}p.push(e);}l[h++]=256;s[256]++;f.m=s;f.l=x;return C?l.subarray(0,h):l}
5146
+ function Ia(f,d,c){var e,b,a=0,g,m,k,p,t=f.length;m=0;p=c.length;a:for(;m<p;m++){e=c[p-m-1];g=3;if(3<a){for(k=a;3<k;k--)if(f[e+k-1]!==f[d+k-1])continue a;g=a;}for(;258>g&&d+g<t&&f[e+g]===f[d+g];)++g;g>a&&(b=e,a=g);if(258===g)break}return new ra(a,d-b)}
5147
+ function pa(f,d){var c=f.length,e=new ia(572),b=new (C?Uint8Array:Array)(c),a,g,m,k,p;if(!C)for(k=0;k<c;k++)b[k]=0;for(k=0;k<c;++k)0<f[k]&&e.push(k,f[k]);a=Array(e.length/2);g=new (C?Uint32Array:Array)(e.length/2);if(1===a.length)return b[e.pop().index]=1,b;k=0;for(p=e.length/2;k<p;++k)a[k]=e.pop(),g[k]=a[k].value;m=Ja(g,g.length,d);k=0;for(p=a.length;k<p;++k)b[a[k].index]=m[k];return b}
5148
+ function Ja(f,d,c){function e(a){var b=k[a][p[a]];b===d?(e(a+1),e(a+1)):--g[b];++p[a];}var b=new (C?Uint16Array:Array)(c),a=new (C?Uint8Array:Array)(c),g=new (C?Uint8Array:Array)(d),m=Array(c),k=Array(c),p=Array(c),t=(1<<c)-d,u=1<<c-1,l,h,q,s,x;b[c-1]=d;for(h=0;h<c;++h)t<u?a[h]=0:(a[h]=1,t-=u),t<<=1,b[c-2-h]=(b[c-1-h]/2|0)+d;b[0]=a[0];m[0]=Array(b[0]);k[0]=Array(b[0]);for(h=1;h<c;++h)b[h]>2*b[h-1]+a[h]&&(b[h]=2*b[h-1]+a[h]),m[h]=Array(b[h]),k[h]=Array(b[h]);for(l=0;l<d;++l)g[l]=c;for(q=0;q<b[c-1];++q)m[c-
5149
+ 1][q]=f[q],k[c-1][q]=q;for(l=0;l<c;++l)p[l]=0;1===a[c-1]&&(--g[0],++p[c-1]);for(h=c-2;0<=h;--h){s=l=0;x=p[h+1];for(q=0;q<b[h];q++)s=m[h+1][x]+m[h+1][x+1],s>f[l]?(m[h][q]=s,k[h][q]=d,x+=2):(m[h][q]=f[l],k[h][q]=l,++l);p[h]=0;1===a[h]&&e(h);}return g}
5150
+ function qa(f){var d=new (C?Uint16Array:Array)(f.length),c=[],e=[],b=0,a,g,m,k;a=0;for(g=f.length;a<g;a++)c[f[a]]=(c[f[a]]|0)+1;a=1;for(g=16;a<=g;a++)e[a]=b,b+=c[a]|0,b<<=1;a=0;for(g=f.length;a<g;a++){b=e[f[a]];e[f[a]]+=1;m=d[a]=0;for(k=f[a];m<k;m++)d[a]=d[a]<<1|b&1,b>>>=1;}return d}function Ka(f,d){this.input=f;this.a=new (C?Uint8Array:Array)(32768);this.d=V.g;var c={},e;if((d||!(d={}))&&"number"===typeof d.compressionType)this.d=d.compressionType;for(e in d)c[e]=d[e];c.outputBuffer=this.a;this.j=new ka(this.input,c);}var V=na;
5151
+ Ka.prototype.f=function(){var f,d,c,e,b,a,g=0;a=this.a;switch(8){case 8:f=Math.LOG2E*Math.log(32768)-8;break;default:throw Error("invalid compression method");}d=f<<4|8;a[g++]=d;switch(8){case 8:switch(this.d){case V.NONE:e=0;break;case V.h:e=1;break;case V.g:e=2;break;default:throw Error("unsupported compression type");}break;default:throw Error("invalid compression method");}c=e<<6|0;a[g++]=c|31-(256*d+c)%31;var m=this.input;if("string"===typeof m){var k=m.split(""),p,t;p=0;for(t=k.length;p<t;p++)k[p]=
5152
+ (k[p].charCodeAt(0)&255)>>>0;m=k;}for(var u=1,l=0,h=m.length,q,s=0;0<h;){q=1024<h?1024:h;h-=q;do u+=m[s++],l+=u;while(--q);u%=65521;l%=65521;}b=(l<<16|u)>>>0;this.j.c=g;a=this.j.f();g=a.length;C&&(a=new Uint8Array(a.buffer),a.length<=g+4&&(this.a=new Uint8Array(a.length+4),this.a.set(a),a=this.a),a=a.subarray(0,g+4));a[g++]=b>>24&255;a[g++]=b>>16&255;a[g++]=b>>8&255;a[g++]=b&255;return a};ba("Zlib.Deflate",Ka);ba("Zlib.Deflate.compress",function(f,d){return (new Ka(f,d)).f()});ba("Zlib.Deflate.prototype.compress",Ka.prototype.f);var Ma={NONE:V.NONE,FIXED:V.h,DYNAMIC:V.g},Na,Oa,W,Pa;if(Object.keys)Na=Object.keys(Ma);else for(Oa in Na=[],W=0,Ma)Na[W++]=Oa;W=0;for(Pa=Na.length;W<Pa;++W)Oa=Na[W],ba("Zlib.Deflate.CompressionType."+Oa,Ma[Oa]);}).call(module.exports);
5153
+ } (deflate_min));
5183
5154
 
5184
- var args = Array.prototype.slice.call(arr);
5185
- if (args.length === 0) return resolve([]);
5186
- var remaining = args.length;
5155
+ var deflate_minExports = deflate_min.exports;
5156
+ var ZLibDeflate = /*@__PURE__*/getDefaultExportFromCjs(deflate_minExports);
5187
5157
 
5188
- function res(i, val) {
5189
- try {
5190
- if (val && (typeof val === 'object' || typeof val === 'function')) {
5191
- var then = val.then;
5192
- if (typeof then === 'function') {
5193
- then.call(
5194
- val,
5195
- function(val) {
5196
- res(i, val);
5197
- },
5198
- reject
5199
- );
5200
- return;
5201
- }
5202
- }
5203
- args[i] = val;
5204
- if (--remaining === 0) {
5205
- resolve(args);
5206
- }
5207
- } catch (ex) {
5208
- reject(ex);
5209
- }
5210
- }
5158
+ ({
5159
+ Deflate: ZLibDeflate.Zlib.Deflate
5160
+ });
5211
5161
 
5212
- for (var i = 0; i < args.length; i++) {
5213
- res(i, args[i]);
5162
+ function getZoneSafeMethod$1(_, method, target) {
5163
+ if (target === void 0) { target = window; }
5164
+ var zoneSymbol = '__symbol__';
5165
+ /* global Zone */
5166
+ if (typeof Zone !== 'undefined' && _.isFunction(Zone[zoneSymbol])) {
5167
+ var fn = target[Zone[zoneSymbol](method)];
5168
+ if (_.isFunction(fn)) {
5169
+ return fn;
5170
+ }
5214
5171
  }
5215
- });
5216
- };
5172
+ return target[method];
5173
+ }
5217
5174
 
5218
- Promise.allSettled = allSettled;
5175
+ var crc32_min = {exports: {}};
5219
5176
 
5220
- Promise.resolve = function(value) {
5221
- if (value && typeof value === 'object' && value.constructor === Promise) {
5222
- return value;
5223
- }
5177
+ /*
5178
+ * @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License
5179
+ */
5224
5180
 
5225
- return new Promise(function(resolve) {
5226
- resolve(value);
5227
- });
5228
- };
5181
+ (function (module) {
5182
+ (function() {var f=this;function h(c,a){var b=c.split("."),e=f;!(b[0]in e)&&e.execScript&&e.execScript("var "+b[0]);for(var d;b.length&&(d=b.shift());)!b.length&&void 0!==a?e[d]=a:e=e[d]?e[d]:e[d]={};}var l={c:function(c,a,b){return l.update(c,0,a,b)},update:function(c,a,b,e){var d=l.a,g="number"===typeof b?b:b=0,k="number"===typeof e?e:c.length;a^=4294967295;for(g=k&7;g--;++b)a=a>>>8^d[(a^c[b])&255];for(g=k>>3;g--;b+=8)a=a>>>8^d[(a^c[b])&255],a=a>>>8^d[(a^c[b+1])&255],a=a>>>8^d[(a^c[b+2])&255],a=a>>>8^d[(a^c[b+3])&255],a=a>>>8^d[(a^c[b+4])&255],a=a>>>8^d[(a^c[b+5])&255],a=a>>>8^d[(a^c[b+6])&255],a=a>>>8^d[(a^c[b+7])&255];return (a^4294967295)>>>0},d:function(c,a){return (l.a[(c^a)&255]^c>>>8)>>>
5183
+ 0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,
5184
+ 2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,
5185
+ 2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,
5186
+ 2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,
5187
+ 3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,
5188
+ 936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};l.a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array?new Uint32Array(l.b):l.b;h("Zlib.CRC32",l);h("Zlib.CRC32.calc",l.c);h("Zlib.CRC32.update",l.update);}).call(module.exports);
5189
+ } (crc32_min));
5229
5190
 
5230
- Promise.reject = function(value) {
5231
- return new Promise(function(resolve, reject) {
5232
- reject(value);
5233
- });
5234
- };
5191
+ var crc32_minExports = crc32_min.exports;
5192
+ var ZlibCRC32 = /*@__PURE__*/getDefaultExportFromCjs(crc32_minExports);
5235
5193
 
5236
- Promise.race = function(arr) {
5237
- return new Promise(function(resolve, reject) {
5238
- if (!isArray(arr)) {
5239
- return reject(new TypeError('Promise.race accepts an array'));
5194
+ ({
5195
+ CRC32: ZlibCRC32.Zlib.CRC32
5196
+ });
5197
+ function randomElement(array) {
5198
+ return array[Math.floor(Math.random() * array.length)];
5199
+ }
5200
+ function randomString(length) {
5201
+ var letters = 'abcdefghijklmnopqrstuvwxyz';
5202
+ var charset = letters + letters.toUpperCase() + '1234567890';
5203
+ var R = '';
5204
+ var charsetArray = charset.split('');
5205
+ for (var i = 0; i < length; i++) {
5206
+ R += randomElement(charsetArray);
5240
5207
  }
5208
+ return R;
5209
+ }
5210
+ // Date.now() can be overridden by libraries to return a Date object instead of timestamp
5211
+ // This is our now() function
5212
+ function getNow() {
5213
+ return new Date().getTime();
5214
+ }
5215
+ function getZoneSafeMethod(method, target) {
5216
+ if (target === void 0) { target = window; }
5217
+ return getZoneSafeMethod$1(_, method, target);
5218
+ }
5219
+ function getIsFiniteImpl(window) {
5220
+ return _.isFunction(window.isFinite) ? window.isFinite
5221
+ : (window.Number && _.isFunction(window.Number.isFinite)) ? window.Number.isFinite
5222
+ : function (obj) {
5223
+ return obj != Infinity && obj != -Infinity && !isNaN(obj);
5224
+ };
5225
+ }
5226
+ getIsFiniteImpl(window);
5241
5227
 
5242
- for (var i = 0, len = arr.length; i < len; i++) {
5243
- Promise.resolve(arr[i]).then(resolve, reject);
5228
+ function DomData() {
5229
+ this.ownerKey = '_pendo_' + randomString(8);
5230
+ }
5231
+ _.extend(DomData.prototype, {
5232
+ cache: function (owner) {
5233
+ if (!_.isObject(owner))
5234
+ return {};
5235
+ var cache = owner[this.ownerKey];
5236
+ if (!cache) {
5237
+ cache = {};
5238
+ owner[this.ownerKey] = cache;
5239
+ }
5240
+ return cache;
5241
+ },
5242
+ set: function (owner, key, value) {
5243
+ var cache = this.cache(owner);
5244
+ cache[key] = value;
5245
+ return cache;
5246
+ },
5247
+ get: function (owner, key) {
5248
+ return key === undefined ? this.cache(owner) : owner[this.ownerKey] && owner[this.ownerKey][key];
5249
+ },
5250
+ remove: function (owner, key) {
5251
+ var cache = this.cache(owner);
5252
+ delete cache[key];
5253
+ if (key === undefined || _.isEmpty(cache)) {
5254
+ owner[this.ownerKey] = undefined;
5255
+ }
5244
5256
  }
5245
- });
5246
- };
5247
-
5248
- // Use polyfill for setImmediate for performance gains
5249
- Promise._immediateFn =
5250
- // @ts-ignore
5251
- (typeof setImmediate === 'function' &&
5252
- function(fn) {
5253
- // @ts-ignore
5254
- setImmediate(fn);
5255
- }) ||
5256
- function(fn) {
5257
- setTimeoutFunc(fn, 0);
5258
- };
5259
-
5260
- Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
5261
- if (typeof console !== 'undefined' && console) {
5262
- console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console
5263
- }
5264
- };
5265
-
5266
- return Promise;
5267
-
5268
- })));
5257
+ });
5258
+ var DomData$1 = new DomData();
5269
5259
 
5270
- var Promise$2 = Promise$1;
5260
+ function hasComposedPath(evt) {
5261
+ return evt && _.isFunction(evt.composedPath);
5262
+ }
5263
+ function getComposedPath(evt) {
5264
+ if (hasComposedPath(evt)) {
5265
+ try {
5266
+ return evt.composedPath();
5267
+ }
5268
+ catch (e) {
5269
+ return evt.path;
5270
+ }
5271
+ }
5272
+ return null;
5273
+ }
5274
+ function getShadowRoot(elem) {
5275
+ return elem.shadowRoot;
5276
+ }
5277
+ function isElementShadowRoot(elem, _win) {
5278
+ if (!_win) {
5279
+ _win = window;
5280
+ }
5281
+ return typeof _win.ShadowRoot !== 'undefined' && elem instanceof _win.ShadowRoot && elem.host;
5282
+ }
5283
+ function getParent(elem, _win) {
5284
+ return isElementShadowRoot(elem, _win) ? elem.host : elem.parentNode;
5285
+ }
5271
5286
 
5272
- /******************************************************************************
5273
- Copyright (c) Microsoft Corporation.
5274
-
5275
- Permission to use, copy, modify, and/or distribute this software for any
5276
- purpose with or without fee is hereby granted.
5277
-
5278
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
5279
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
5280
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
5281
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
5282
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
5283
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5284
- PERFORMANCE OF THIS SOFTWARE.
5285
- ***************************************************************************** */
5286
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
5287
-
5288
- var extendStatics = function(d, b) {
5289
- extendStatics = Object.setPrototypeOf ||
5290
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5291
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
5292
- return extendStatics(d, b);
5293
- };
5294
-
5295
- function __extends(d, b) {
5296
- if (typeof b !== "function" && b !== null)
5297
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
5298
- extendStatics(d, b);
5299
- function __() { this.constructor = d; }
5300
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5301
- }
5302
-
5303
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
5304
- var e = new Error(message);
5305
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
5306
- };
5287
+ var shadowAPI = (function () {
5288
+ function isShadowSelector(selector) {
5289
+ return selector ? selector.indexOf(shadowAPI.PSEUDO_ELEMENT) > -1 : false;
5290
+ }
5291
+ function stringifyTokens(selector) {
5292
+ return _.reduce(selector, function (string, selectorChunk) {
5293
+ if (selectorChunk.value === shadowAPI.PSEUDO_SAFE) {
5294
+ return string + shadowAPI.PSEUDO_ELEMENT;
5295
+ }
5296
+ return string + selectorChunk.value;
5297
+ }, '');
5298
+ }
5299
+ function tokenizeSelectors(selection, Sizzle) {
5300
+ var safeSelection = selection.replace(shadowAPI.PSEUDO_REGEX, shadowAPI.PSEUDO_SAFE);
5301
+ return _.map(Sizzle.tokenize(safeSelection), stringifyTokens);
5302
+ }
5303
+ function parseShadowSelector(selector) {
5304
+ var splitter = selector.split(shadowAPI.PSEUDO_ELEMENT);
5305
+ var css = splitter.splice(0, 1)[0];
5306
+ var shadowCss = splitter.join(shadowAPI.PSEUDO_ELEMENT);
5307
+ return { baseCss: css, shadowCss: shadowCss };
5308
+ }
5309
+ return {
5310
+ PSEUDO_ELEMENT: '::shadow',
5311
+ PSEUDO_SAFE: ':shadow',
5312
+ PSEUDO_REGEX: /::shadow/g,
5313
+ getComposedPath: getComposedPath,
5314
+ getShadowRoot: getShadowRoot,
5315
+ isElementShadowRoot: isElementShadowRoot,
5316
+ getParent: getParent,
5317
+ isShadowSelector: isShadowSelector,
5318
+ wrapSizzle: function (Sizzle) {
5319
+ Sizzle.intercept(function (Sizzle, selection, context, results, seed) {
5320
+ if (!isShadowSelector(selection)) {
5321
+ return Sizzle(selection, context, results, seed);
5322
+ }
5323
+ if (!_.isFunction(document.documentElement.attachShadow)) {
5324
+ return Sizzle(selection.replace(shadowAPI.PSEUDO_REGEX, ''), context, results, seed);
5325
+ }
5326
+ // We'll need to potentially be a Recursive Descent Parser if the Selector
5327
+ // has Shadow Root piercing pseudo selector.
5328
+ function shadowSizzleWrapper(query, context, results, seed) {
5329
+ if (isShadowSelector(query)) {
5330
+ var shadowQuery = parseShadowSelector(query);
5331
+ var baseElem = shadowSizzleWrapper(shadowQuery.baseCss, context);
5332
+ return _.reduce(baseElem, function (shadowResults, base) {
5333
+ if (!shadowAPI.getShadowRoot(base))
5334
+ return shadowResults;
5335
+ return shadowResults.concat(shadowSizzleWrapper(shadowQuery.shadowCss, shadowAPI.getShadowRoot(base), results, seed));
5336
+ }, []);
5337
+ }
5338
+ // base case
5339
+ return Sizzle(query, context, results, seed);
5340
+ }
5341
+ var selectors = tokenizeSelectors(selection, Sizzle);
5342
+ return _.reduce(selectors, function (nodes, query) {
5343
+ return nodes.concat(shadowSizzleWrapper(query, context, results, seed));
5344
+ }, []);
5345
+ });
5346
+ Sizzle.intercept(function (matchesSelector, element, selector) {
5347
+ if (shadowAPI.isElementShadowRoot(element)) {
5348
+ return false;
5349
+ }
5350
+ if (isShadowSelector(selector)) {
5351
+ return Sizzle(selector, document, null, [element]).length > 0;
5352
+ }
5353
+ return matchesSelector(element, selector);
5354
+ }, 'matchesSelector');
5355
+ }
5356
+ };
5357
+ })();
5307
5358
 
5308
5359
  var EventTarget = /** @class */ (function () {
5309
5360
  function EventTarget() {
@@ -5468,7 +5519,7 @@ var getTarget = function (evt) {
5468
5519
  return evt.target || evt.srcElement;
5469
5520
  };
5470
5521
  var DomEvent = {
5471
- 'add': function (elem, handlerObj) {
5522
+ add: function (elem, handlerObj) {
5472
5523
  var elemData = DomData$1.get(elem);
5473
5524
  if (!elemData.handle) {
5474
5525
  elemData.handle = function handle(event) {
@@ -5487,7 +5538,7 @@ var DomEvent = {
5487
5538
  dom.event.remove(elem, handlerObj.type, handlerObj.handler, handlerObj.capture);
5488
5539
  };
5489
5540
  },
5490
- 'dispatch': function (elem, event) {
5541
+ dispatch: function (elem, event) {
5491
5542
  if (!elem)
5492
5543
  return;
5493
5544
  var captureHandlers = (DomData$1.get(elem, 'captureEvents') || {})[event.type] || [];
@@ -5525,7 +5576,7 @@ var DomEvent = {
5525
5576
  }
5526
5577
  });
5527
5578
  },
5528
- 'remove': function (elem, eventType, fn, useCapture) {
5579
+ remove: function (elem, eventType, fn, useCapture) {
5529
5580
  var elemData = DomData$1.get(elem);
5530
5581
  if (!elemData)
5531
5582
  return;
@@ -5563,7 +5614,7 @@ var DomEvent = {
5563
5614
  DomData$1.remove(elem, 'handle');
5564
5615
  }
5565
5616
  },
5566
- 'trigger': function (event) {
5617
+ trigger: function (event) {
5567
5618
  var eventData = DomData$1.get(event);
5568
5619
  if (eventData.pendoStopped)
5569
5620
  return;
@@ -5603,7 +5654,7 @@ var DomEvent = {
5603
5654
  DomEvent.dispatch(path[i], event);
5604
5655
  }
5605
5656
  },
5606
- 'clone': function (event) {
5657
+ clone: function (event) {
5607
5658
  var clone = _.pick(event, [
5608
5659
  'type',
5609
5660
  'target',
@@ -5626,7 +5677,7 @@ var DomEvent = {
5626
5677
  }
5627
5678
  };
5628
5679
  DomEvent.$ = {
5629
- 'on': function (eventNames, selector, fn, useCapture) {
5680
+ on: function (eventNames, selector, fn, useCapture) {
5630
5681
  if (_.isFunction(selector)) {
5631
5682
  useCapture = fn;
5632
5683
  fn = selector;
@@ -5636,10 +5687,10 @@ DomEvent.$ = {
5636
5687
  return this.each(function (elem) {
5637
5688
  _.each(eventNames, function (evtName) {
5638
5689
  DomEvent.add(elem, {
5639
- 'type': evtName,
5640
- 'selector': selector,
5641
- 'handler': fn,
5642
- 'capture': useCapture
5690
+ type: evtName,
5691
+ selector: selector,
5692
+ handler: fn,
5693
+ capture: useCapture
5643
5694
  });
5644
5695
  });
5645
5696
  });
@@ -6074,9 +6125,9 @@ var ConfigReader = (function () {
6074
6125
  if (optionMap[name])
6075
6126
  return;
6076
6127
  var opt = {
6077
- 'name': name,
6078
- 'defaultValue': defaultValue,
6079
- 'supportedSources': sources
6128
+ name: name,
6129
+ defaultValue: defaultValue,
6130
+ supportedSources: sources
6080
6131
  };
6081
6132
  if (anySource != null) {
6082
6133
  opt.useAnySource = anySource;
@@ -6782,6 +6833,7 @@ var ConfigReader = (function () {
6782
6833
  */
6783
6834
  addOption('preventCodeInjection', [PENDO_CONFIG_SRC, SNIPPET_SRC, GLOBAL_SRC], false);
6784
6835
  addOption('previewModeAssetPath');
6836
+ addOption('useAssetHostForDesigner', [SNIPPET_SRC, PENDO_CONFIG_SRC], false);
6785
6837
  addOption('storage.allowKeys', [SNIPPET_SRC], '*');
6786
6838
  // Feedback
6787
6839
  /**
@@ -6839,17 +6891,17 @@ var ConfigReader = (function () {
6839
6891
  initializeOptions();
6840
6892
  var sourceGetters = {};
6841
6893
  sourceGetters[SNIPPET_SRC] = function () {
6842
- return { 'lookup': originalOptions || window.pendo_options, 'name': SNIPPET_SRC };
6894
+ return { lookup: originalOptions || window.pendo_options, name: SNIPPET_SRC };
6843
6895
  };
6844
6896
  sourceGetters[PENDO_CONFIG_SRC] = function () {
6845
6897
  var lookup = getPendoConfig();
6846
- return { 'lookup': lookup, 'name': PENDO_CONFIG_SRC };
6898
+ return { lookup: lookup, name: PENDO_CONFIG_SRC };
6847
6899
  };
6848
6900
  sourceGetters[GLOBAL_SRC] = function () {
6849
- return { 'lookup': pendo, 'name': GLOBAL_SRC };
6901
+ return { lookup: pendo, name: GLOBAL_SRC };
6850
6902
  };
6851
6903
  function findOption(name) {
6852
- return optionMap[name] || { 'name': name };
6904
+ return optionMap[name] || { name: name };
6853
6905
  }
6854
6906
  function getSupportedSources(option) {
6855
6907
  return _.get(option, 'supportedSources', [SNIPPET_SRC, PENDO_CONFIG_SRC, GLOBAL_SRC]);
@@ -6915,41 +6967,41 @@ var ConfigReader = (function () {
6915
6967
  var results = [];
6916
6968
  each(optionMap, function (opt) {
6917
6969
  results.push({
6918
- 'name': opt.name,
6919
- 'active': findActive(opt.name),
6920
- 'conflicts': findConflicts(opt.name)
6970
+ name: opt.name,
6971
+ active: findActive(opt.name),
6972
+ conflicts: findConflicts(opt.name)
6921
6973
  });
6922
6974
  });
6923
6975
  return results;
6924
6976
  }
6925
6977
  /* eslint-disable no-console */
6926
6978
  return {
6927
- 'audit': audit,
6928
- 'get': function (optionName, defaultValue) {
6979
+ audit: audit,
6980
+ get: function (optionName, defaultValue) {
6929
6981
  var result = findActive(optionName, defaultValue);
6930
6982
  return result.value;
6931
6983
  },
6932
- 'getLocalConfig': function (optionName, defaultValue) {
6984
+ getLocalConfig: function (optionName, defaultValue) {
6933
6985
  if (!arguments.length) {
6934
6986
  return deepCopy(originalOptions);
6935
6987
  }
6936
6988
  return findActive(optionName, defaultValue, [SNIPPET_SRC]).value;
6937
6989
  },
6938
- 'getHostedConfig': function (optionName, defaultValue) {
6990
+ getHostedConfig: function (optionName, defaultValue) {
6939
6991
  return findActive(optionName, defaultValue, [PENDO_CONFIG_SRC]).value;
6940
6992
  },
6941
- 'addOption': addOption,
6942
- 'setLocalConfig': function (_originalOptions) {
6993
+ addOption: addOption,
6994
+ setLocalConfig: function (_originalOptions) {
6943
6995
  originalOptions = _originalOptions;
6944
6996
  },
6945
- 'options': function () { return pluck(optionMap, 'name'); },
6946
- 'sources': {
6997
+ options: function () { return pluck(optionMap, 'name'); },
6998
+ sources: {
6947
6999
  SNIPPET_SRC: SNIPPET_SRC,
6948
7000
  PENDO_CONFIG_SRC: PENDO_CONFIG_SRC,
6949
7001
  GLOBAL_SRC: GLOBAL_SRC,
6950
7002
  DEFAULT_SRC: DEFAULT_SRC
6951
7003
  },
6952
- 'validate': function (console) {
7004
+ validate: function (console) {
6953
7005
  console.groupCollapsed('Validate Config options');
6954
7006
  each(audit(), function (item) {
6955
7007
  console.log(String(item.active));
@@ -7078,10 +7130,10 @@ function isMobileUserAgent() {
7078
7130
  // exports
7079
7131
  var sniffer = {
7080
7132
  // jshint -W018
7081
- 'supportsHistoryApi': shouldWrapNativeHistory,
7133
+ supportsHistoryApi: shouldWrapNativeHistory,
7082
7134
  // jshint +W018
7083
- 'supportsHashChange': shouldWrapHashChange,
7084
- 'hasEvent': function (event) {
7135
+ supportsHashChange: shouldWrapHashChange,
7136
+ hasEvent: function (event) {
7085
7137
  // IE9 implements 'input' event it's so fubared that we rather pretend that it doesn't have
7086
7138
  // it. In particular the event is not fired when backspace or delete key are pressed or
7087
7139
  // when cut operation is performed.
@@ -7093,18 +7145,18 @@ var sniffer = {
7093
7145
  }
7094
7146
  return eventSupport[event];
7095
7147
  },
7096
- 'vendorPrefix': vendorPrefix,
7097
- 'transitions': transitions,
7098
- 'animations': animations,
7099
- 'android': android,
7100
- 'msie': msie,
7101
- 'msieDocumentMode': documentMode,
7102
- 'safari': /apple/i.test(navigator.vendor),
7103
- 'sri': ('integrity' in document.createElement('script')),
7104
- 'addEventListener': _.isFunction(window.addEventListener),
7105
- 'MutationObserver': isNativeCode(window.MutationObserver),
7106
- 'isMinimumIEVersion': isMinimumIEVersion,
7107
- 'isMobileUserAgent': _.memoize(isMobileUserAgent)
7148
+ vendorPrefix: vendorPrefix,
7149
+ transitions: transitions,
7150
+ animations: animations,
7151
+ android: android,
7152
+ msie: msie,
7153
+ msieDocumentMode: documentMode,
7154
+ safari: /apple/i.test(navigator.vendor),
7155
+ sri: ('integrity' in document.createElement('script')),
7156
+ addEventListener: _.isFunction(window.addEventListener),
7157
+ MutationObserver: isNativeCode(window.MutationObserver),
7158
+ isMinimumIEVersion: isMinimumIEVersion,
7159
+ isMobileUserAgent: _.memoize(isMobileUserAgent)
7108
7160
  };
7109
7161
 
7110
7162
  // other node types can be read about here:
@@ -7188,19 +7240,19 @@ function isOffsetParent(element) {
7188
7240
  }
7189
7241
  function getAbsolutePosition(element, parentElement, _win) {
7190
7242
  if (!element) {
7191
- return { 'width': 0, 'height': 0 };
7243
+ return { width: 0, height: 0 };
7192
7244
  }
7193
7245
  if (!_win) {
7194
7246
  _win = window;
7195
7247
  }
7196
7248
  var terminalParent = isOffsetParent(parentElement) ? parentElement : getOffsetParent(parentElement, _win);
7197
- var parentRect = terminalParent ? getScreenPosition(terminalParent) : { 'top': 0, 'left': 0 };
7249
+ var parentRect = terminalParent ? getScreenPosition(terminalParent) : { top: 0, left: 0 };
7198
7250
  var elemRect = getScreenPosition(element);
7199
7251
  var elementPosition = {
7200
- 'top': elemRect.top - parentRect.top,
7201
- 'left': elemRect.left - parentRect.left,
7202
- 'width': elemRect.width,
7203
- 'height': elemRect.height
7252
+ top: elemRect.top - parentRect.top,
7253
+ left: elemRect.left - parentRect.left,
7254
+ width: elemRect.width,
7255
+ height: elemRect.height
7204
7256
  };
7205
7257
  if (terminalParent) {
7206
7258
  if (terminalParent !== _win.document.scrollingElement) {
@@ -7220,30 +7272,30 @@ function getAbsolutePosition(element, parentElement, _win) {
7220
7272
  }
7221
7273
  function getScreenPosition(element) {
7222
7274
  if (!element) {
7223
- return { 'width': 0, 'height': 0 };
7275
+ return { width: 0, height: 0 };
7224
7276
  }
7225
7277
  if (!element.getBoundingClientRect) {
7226
7278
  return {
7227
- 'top': 0,
7228
- 'left': 0,
7229
- 'width': element.offsetWidth,
7230
- 'height': element.offsetHeight,
7231
- 'right': element.offsetWidth,
7232
- 'bottom': element.offsetHeight
7279
+ top: 0,
7280
+ left: 0,
7281
+ width: element.offsetWidth,
7282
+ height: element.offsetHeight,
7283
+ right: element.offsetWidth,
7284
+ bottom: element.offsetHeight
7233
7285
  };
7234
7286
  }
7235
7287
  var rect = element.getBoundingClientRect();
7236
7288
  return {
7237
- 'top': rect.top,
7238
- 'left': rect.left,
7239
- 'bottom': rect.bottom,
7240
- 'right': rect.right,
7241
- 'width': rect.width || Math.abs(rect.right - rect.left),
7242
- 'height': rect.height || Math.abs(rect.bottom - rect.top)
7289
+ top: rect.top,
7290
+ left: rect.left,
7291
+ bottom: rect.bottom,
7292
+ right: rect.right,
7293
+ width: rect.width || Math.abs(rect.right - rect.left),
7294
+ height: rect.height || Math.abs(rect.bottom - rect.top)
7243
7295
  };
7244
7296
  }
7245
7297
 
7246
- var VERSION = '2.280.1_';
7298
+ var VERSION = '2.282.0_';
7247
7299
  function isExtensionAgent() {
7248
7300
  var installType = getPendoConfigValue('installType') || getPendoConfigFromEnclosingScope().installType;
7249
7301
  return installType === EXTENSION_INSTALL_TYPE;
@@ -7293,19 +7345,19 @@ function clearPendoStorage(storage) {
7293
7345
  }
7294
7346
  function wrapStorageObject(storage) {
7295
7347
  return {
7296
- 'getItem': wrapStorageMethod(storage, storage.getItem, null),
7297
- 'setItem': wrapStorageMethod(storage, storage.setItem),
7298
- 'removeItem': wrapStorageMethod(storage, storage.removeItem),
7299
- 'clearPendo': _.partial(clearPendoStorage, storage)
7348
+ getItem: wrapStorageMethod(storage, storage.getItem, null),
7349
+ setItem: wrapStorageMethod(storage, storage.setItem),
7350
+ removeItem: wrapStorageMethod(storage, storage.removeItem),
7351
+ clearPendo: _.partial(clearPendoStorage, storage)
7300
7352
  };
7301
7353
  }
7302
7354
  function createStorageShim(storageAccessor) {
7303
7355
  var noop = _.noop;
7304
7356
  var fake = {
7305
- 'getItem': function () { return null; },
7306
- 'setItem': noop,
7307
- 'removeItem': noop,
7308
- 'clearPendo': noop
7357
+ getItem: function () { return null; },
7358
+ setItem: noop,
7359
+ removeItem: noop,
7360
+ clearPendo: noop
7309
7361
  };
7310
7362
  try {
7311
7363
  var storage = storageAccessor();
@@ -7531,8 +7583,8 @@ var agentStorage = (function () {
7531
7583
  }
7532
7584
  var ttl = new Date().getTime() + limitCookieTTL(duration);
7533
7585
  return JSON.stringify({
7534
- 'ttl': ttl,
7535
- 'value': value
7586
+ ttl: ttl,
7587
+ value: value
7536
7588
  });
7537
7589
  }
7538
7590
  function clear(name, isPlain, cookieSuffix) {
@@ -7547,12 +7599,12 @@ var agentStorage = (function () {
7547
7599
  var wrappedPendoLocalStorage = _.extend({}, pendoLocalStorage);
7548
7600
  wrappedPendoLocalStorage.setItem = wrapStorageWriteMethod(wrappedPendoLocalStorage.setItem, 'hasLocal');
7549
7601
  return {
7550
- 'read': read,
7551
- 'write': wrapStorageWriteMethod(write, 'hasLocal'),
7552
- 'clear': clear,
7553
- 'registry': registry,
7554
- 'getLocal': function () { return wrappedPendoLocalStorage; },
7555
- 'getSession': function () { return wrappedPendoSessionStorage; }
7602
+ read: read,
7603
+ write: wrapStorageWriteMethod(write, 'hasLocal'),
7604
+ clear: clear,
7605
+ registry: registry,
7606
+ getLocal: function () { return wrappedPendoLocalStorage; },
7607
+ getSession: function () { return wrappedPendoSessionStorage; }
7556
7608
  };
7557
7609
  })();
7558
7610
 
@@ -7814,10 +7866,10 @@ function createEventTracer(window) {
7814
7866
  var extend = _.extend;
7815
7867
  var omit = _.omit;
7816
7868
  var MemoryStorage = {
7817
- 'data': {},
7818
- 'getItem': function (key) { return MemoryStorage.data[key]; },
7819
- 'setItem': function (key, val) { MemoryStorage.data[key] = val; },
7820
- 'removeItem': function (key) {
7869
+ data: {},
7870
+ getItem: function (key) { return MemoryStorage.data[key]; },
7871
+ setItem: function (key, val) { MemoryStorage.data[key] = val; },
7872
+ removeItem: function (key) {
7821
7873
  MemoryStorage.data[key] = null;
7822
7874
  delete MemoryStorage.data[key];
7823
7875
  }
@@ -7889,18 +7941,18 @@ function createEventTracer(window) {
7889
7941
  };
7890
7942
  }
7891
7943
  return {
7892
- 'addTracerIds': function (obj) {
7944
+ addTracerIds: function (obj) {
7893
7945
  return omit(extend(obj, {
7894
- 'parentTabId': getParentTabId(),
7895
- 'tabId': getOrCreateTabId(),
7896
- 'frameId': getOrCreateFrameId()
7946
+ parentTabId: getParentTabId(),
7947
+ tabId: getOrCreateTabId(),
7948
+ frameId: getOrCreateFrameId()
7897
7949
  }), function (v) { return v === undefined; });
7898
7950
  },
7899
- 'setParentTabId': setParentTabId,
7900
- 'newTabId': newTabId,
7901
- 'getTabId': getOrCreateTabId,
7902
- 'getFrameId': getOrCreateFrameId,
7903
- 'tabIdChanged': tabIdChanged
7951
+ setParentTabId: setParentTabId,
7952
+ newTabId: newTabId,
7953
+ getTabId: getOrCreateTabId,
7954
+ getFrameId: getOrCreateFrameId,
7955
+ tabIdChanged: tabIdChanged
7904
7956
  };
7905
7957
  }
7906
7958
  var EventTracer = createEventTracer(window);
@@ -7998,10 +8050,10 @@ Eventable.clear = function (events) {
7998
8050
  var RUNTIME = 'runtime';
7999
8051
  var FRAMES = 'frames';
8000
8052
  var EVENT_GROUPS = {
8001
- 'DEBUG': DEBUG,
8002
- 'FRAMES': FRAMES,
8003
- 'LIFECYCLE': LIFECYCLE,
8004
- 'RUNTIME': RUNTIME
8053
+ DEBUG: DEBUG,
8054
+ FRAMES: FRAMES,
8055
+ LIFECYCLE: LIFECYCLE,
8056
+ RUNTIME: RUNTIME
8005
8057
  };
8006
8058
  var eventTypes = [
8007
8059
  // Events to be made public
@@ -8057,30 +8109,30 @@ Eventable.clear = function (events) {
8057
8109
  var events = Eventable.call({});
8058
8110
  // TODO: check that evtName is a supported Type (throw error if not)
8059
8111
  function packageEvent(evtName, data) {
8060
- var ev = { 'type': evtName, 'ts': getNow() };
8112
+ var ev = { type: evtName, ts: getNow() };
8061
8113
  if (doesExist(data) && _.isObject(data))
8062
8114
  ev.data = data;
8063
8115
  return ev;
8064
8116
  }
8065
8117
  // keys align with the members of EVENT_GROUPS
8066
8118
  var packageEventForGroup = {
8067
- 'debug': function () {
8119
+ debug: function () {
8068
8120
  return EventTracer.addTracerIds(packageEvent.apply(null, arguments));
8069
8121
  },
8070
- 'lifecycle': packageEvent,
8071
- 'runtime': packageEvent,
8072
- 'frames': packageEvent
8122
+ lifecycle: packageEvent,
8123
+ runtime: packageEvent,
8124
+ frames: packageEvent
8073
8125
  };
8074
8126
  function addEventGroup(group) {
8075
8127
  events[group] = {
8076
- 'on': _.partial(events.on, group),
8077
- 'one': _.partial(events.one, group),
8078
- 'off': _.partial(events.off, group)
8128
+ on: _.partial(events.on, group),
8129
+ one: _.partial(events.one, group),
8130
+ off: _.partial(events.off, group)
8079
8131
  };
8080
8132
  }
8081
8133
  var _trigger = events.trigger;
8082
8134
  function eventTrigger(eventName) {
8083
- var type = _.findWhere(eventTypes, { 'name': eventName });
8135
+ var type = _.findWhere(eventTypes, { name: eventName });
8084
8136
  var argsArr = _.toArray(arguments).slice(1); // minus name, groups
8085
8137
  var evt = {};
8086
8138
  _.each(type.groups, function (group) {
@@ -8099,10 +8151,10 @@ Eventable.clear = function (events) {
8099
8151
  function addEventType(type) {
8100
8152
  var eventName = type.name;
8101
8153
  events[eventName] = {
8102
- 'on': _.partial(events.on, eventName),
8103
- 'one': _.partial(events.one, eventName),
8104
- 'off': _.partial(events.off, eventName),
8105
- 'trigger': _.partial(eventTrigger, eventName)
8154
+ on: _.partial(events.on, eventName),
8155
+ one: _.partial(events.one, eventName),
8156
+ off: _.partial(events.off, eventName),
8157
+ trigger: _.partial(eventTrigger, eventName)
8106
8158
  };
8107
8159
  }
8108
8160
  _.each(_.values(EVENT_GROUPS), addEventGroup);
@@ -8116,13 +8168,13 @@ function flux(moduleDefinition) {
8116
8168
  var mutations = {};
8117
8169
  var actions = {};
8118
8170
  var store = {
8119
- 'state': {},
8120
- 'commit': commit,
8121
- 'dispatch': dispatch,
8122
- 'subscribe': _.partial(subscribe, mutationSubscribers),
8123
- 'subscribeAction': _.partial(subscribe, actionSubscribers),
8124
- 'registerModule': registerModule,
8125
- 'getters': {}
8171
+ state: {},
8172
+ commit: commit,
8173
+ dispatch: dispatch,
8174
+ subscribe: _.partial(subscribe, mutationSubscribers),
8175
+ subscribeAction: _.partial(subscribe, actionSubscribers),
8176
+ registerModule: registerModule,
8177
+ getters: {}
8126
8178
  };
8127
8179
  if (moduleDefinition) {
8128
8180
  store.registerModule([], moduleDefinition);
@@ -8136,8 +8188,8 @@ function flux(moduleDefinition) {
8136
8188
  mutation(payload);
8137
8189
  _.each(mutationSubscribers, function (subscriber) {
8138
8190
  subscriber({
8139
- 'type': mutationPath,
8140
- 'payload': payload
8191
+ type: mutationPath,
8192
+ payload: payload
8141
8193
  }, store.state);
8142
8194
  });
8143
8195
  }
@@ -8149,8 +8201,8 @@ function flux(moduleDefinition) {
8149
8201
  var returnValue = action(payload);
8150
8202
  _.each(actionSubscribers, function (subscriber) {
8151
8203
  subscriber({
8152
- 'type': actionPath,
8153
- 'payload': payload
8204
+ type: actionPath,
8205
+ payload: payload
8154
8206
  }, store.state);
8155
8207
  });
8156
8208
  return returnValue;
@@ -8207,12 +8259,12 @@ function flux(moduleDefinition) {
8207
8259
  function createActions(moduleDefinition, moduleState, store, path) {
8208
8260
  var actions = {};
8209
8261
  var context = {
8210
- 'state': moduleState,
8211
- 'rootState': store.state,
8212
- 'commit': commit,
8213
- 'dispatch': dispatch,
8214
- 'getters': filterGetters(store.getters, path),
8215
- 'rootGetters': store.getters
8262
+ state: moduleState,
8263
+ rootState: store.state,
8264
+ commit: commit,
8265
+ dispatch: dispatch,
8266
+ getters: filterGetters(store.getters, path),
8267
+ rootGetters: store.getters
8216
8268
  };
8217
8269
  _.each(moduleDefinition.actions, function (action, actionName) {
8218
8270
  actions[pathToStr(path, actionName)] = _.partial(action, context);
@@ -8267,7 +8319,7 @@ store.subscribe(function (mutation, state) {
8267
8319
  }
8268
8320
  function createResult(requestObject) {
8269
8321
  var result = {
8270
- 'status': requestObject.status
8322
+ status: requestObject.status
8271
8323
  };
8272
8324
  try {
8273
8325
  result.data = JSON.parse(requestObject.responseText);
@@ -8309,17 +8361,17 @@ store.subscribe(function (mutation, state) {
8309
8361
  }
8310
8362
  function get(url, headers) {
8311
8363
  return ajax({
8312
- 'method': 'GET',
8313
- 'url': url,
8314
- 'headers': headers
8364
+ method: 'GET',
8365
+ url: url,
8366
+ headers: headers
8315
8367
  });
8316
8368
  }
8317
8369
  function post(url, data, headers) {
8318
8370
  return ajax({
8319
- 'method': 'POST',
8320
- 'url': url,
8321
- 'data': data,
8322
- 'headers': headers
8371
+ method: 'POST',
8372
+ url: url,
8373
+ data: data,
8374
+ headers: headers
8323
8375
  });
8324
8376
  }
8325
8377
  function postJSON(url, data, headers) {
@@ -8374,11 +8426,11 @@ store.subscribe(function (mutation, state) {
8374
8426
  ].join('');
8375
8427
  }
8376
8428
  return _.extend(ajax, {
8377
- 'get': get,
8378
- 'post': post,
8379
- 'postJSON': postJSON,
8380
- 'urlFor': urlFor,
8381
- 'supported': function () {
8429
+ get: get,
8430
+ post: post,
8431
+ postJSON: postJSON,
8432
+ urlFor: urlFor,
8433
+ supported: function () {
8382
8434
  return typeof xhrImpl() !== 'undefined';
8383
8435
  }
8384
8436
  });
@@ -8408,8 +8460,8 @@ var buildBaseDataUrl = function (target, apiKey, qsMap) {
8408
8460
  var writeMessage = function (msg) {
8409
8461
  msg += 'v' + VERSION;
8410
8462
  var url = buildBaseDataUrl('log.gif', pendo.apiKey, {
8411
- 'msg': msg,
8412
- 'version': VERSION
8463
+ msg: msg,
8464
+ version: VERSION
8413
8465
  });
8414
8466
  return writeImgTag(url);
8415
8467
  };
@@ -8569,18 +8621,18 @@ var _getCss3Prop = function (cssprop) {
8569
8621
  // Do not auto-px these unit-less numbers,
8570
8622
  // this needs to stay camelCase to support the different cases send to the styles functions
8571
8623
  var cssNumber = {
8572
- 'columnCount': true,
8573
- 'fillOpacity': true,
8574
- 'flexGrow': true,
8575
- 'flexShrink': true,
8576
- 'fontWeight': true,
8577
- 'lineHeight': true,
8578
- 'opacity': true,
8579
- 'order': true,
8580
- 'orphans': true,
8581
- 'widows': true,
8582
- 'zIndex': true,
8583
- 'zoom': true
8624
+ columnCount: true,
8625
+ fillOpacity: true,
8626
+ flexGrow: true,
8627
+ flexShrink: true,
8628
+ fontWeight: true,
8629
+ lineHeight: true,
8630
+ opacity: true,
8631
+ order: true,
8632
+ orphans: true,
8633
+ widows: true,
8634
+ zIndex: true,
8635
+ zoom: true
8584
8636
  };
8585
8637
  var setStyle = function (element, style) {
8586
8638
  var styleObject = styleToObject(style);
@@ -8758,10 +8810,10 @@ var getClientRect = function (element) {
8758
8810
  }
8759
8811
  else if ((element === document || element === window)) {
8760
8812
  var viewport = {
8761
- 'left': window.pageXOffset || pbody.scrollLeft,
8762
- 'top': window.pageYOffset || pbody.scrollTop,
8763
- 'width': window.innerWidth,
8764
- 'height': window.innerHeight
8813
+ left: window.pageXOffset || pbody.scrollLeft,
8814
+ top: window.pageYOffset || pbody.scrollTop,
8815
+ width: window.innerWidth,
8816
+ height: window.innerHeight
8765
8817
  };
8766
8818
  viewport.right = viewport.left + viewport.width;
8767
8819
  viewport.bottom = viewport.top + viewport.height;
@@ -8936,10 +8988,10 @@ function getOverflowDirection(elem, overflowPattern) {
8936
8988
  * @enum {string}
8937
8989
  */
8938
8990
  var OverflowDirection = {
8939
- 'X': 'x',
8940
- 'Y': 'y',
8941
- 'BOTH': 'both',
8942
- 'NONE': 'none'
8991
+ X: 'x',
8992
+ Y: 'y',
8993
+ BOTH: 'both',
8994
+ NONE: 'none'
8943
8995
  };
8944
8996
  /**
8945
8997
  * Determines if the element is the boy
@@ -9159,12 +9211,12 @@ function scrollIntoView(element) {
9159
9211
  */
9160
9212
  var DomQuery = {};
9161
9213
  DomQuery.$ = {
9162
- 'findOrCreate': function (html) {
9214
+ findOrCreate: function (html) {
9163
9215
  if (this.length > 0)
9164
9216
  return this;
9165
9217
  return dom(html);
9166
9218
  },
9167
- 'find': function (selector) {
9219
+ find: function (selector) {
9168
9220
  var newDom = dom();
9169
9221
  newDom.context = this.context;
9170
9222
  this.each(function () {
@@ -9187,7 +9239,7 @@ DomQuery.$ = {
9187
9239
  * @example
9188
9240
  * pendo.dom('div.foo').each((elem) => console.log('elem.id is', elem.id))
9189
9241
  */
9190
- 'each': function (callback) {
9242
+ each: function (callback) {
9191
9243
  var self = this;
9192
9244
  for (var i = 0, ii = self.length; i < ii; ++i) {
9193
9245
  callback.call(self[i], self[i], i);
@@ -9205,7 +9257,7 @@ DomQuery.$ = {
9205
9257
  * @example
9206
9258
  * pendo.dom('div.foo').html('<span>hello there</span>');
9207
9259
  */
9208
- 'html': function (content) {
9260
+ html: function (content) {
9209
9261
  if (content === undefined) {
9210
9262
  return this.length ? this[0].innerHTML : this;
9211
9263
  }
@@ -9226,7 +9278,7 @@ DomQuery.$ = {
9226
9278
  * @example
9227
9279
  * pendo.dom('div.foo').text('hello there');
9228
9280
  */
9229
- 'text': function (content) {
9281
+ text: function (content) {
9230
9282
  var useInnerText = 'innerText' in document.body;
9231
9283
  if (content === undefined) {
9232
9284
  if (useInnerText) {
@@ -9256,7 +9308,7 @@ DomQuery.$ = {
9256
9308
  * @example
9257
9309
  * pendo.dom('div.foo').addClass('adds each word as a class')
9258
9310
  */
9259
- 'addClass': function (classNames) {
9311
+ addClass: function (classNames) {
9260
9312
  classNames = classNames.split(/\s+/);
9261
9313
  return this.each(function (elem) {
9262
9314
  _.each(classNames, function (className) {
@@ -9275,7 +9327,7 @@ DomQuery.$ = {
9275
9327
  * @example
9276
9328
  * pendo.dom('div.foo').removeClass('removes each word')
9277
9329
  */
9278
- 'removeClass': function (classNames) {
9330
+ removeClass: function (classNames) {
9279
9331
  classNames = classNames.split(/\s+/);
9280
9332
  return this.each(function (elem) {
9281
9333
  _.each(classNames, function (className) {
@@ -9294,7 +9346,7 @@ DomQuery.$ = {
9294
9346
  * @example
9295
9347
  * var allHaveClass = pendo.dom('div.foo').hasClass('check for classes')
9296
9348
  */
9297
- 'hasClass': function (classNames) {
9349
+ hasClass: function (classNames) {
9298
9350
  classNames = classNames.split(/\s+/);
9299
9351
  var allElemsHaveClass = true;
9300
9352
  if (this.length === 0)
@@ -9318,7 +9370,7 @@ DomQuery.$ = {
9318
9370
  * @example
9319
9371
  * pendo.dom('div.foo').toggleClass('adds or removes each class')
9320
9372
  */
9321
- 'toggleClass': function (classNames) {
9373
+ toggleClass: function (classNames) {
9322
9374
  classNames = classNames.split(/\s+/);
9323
9375
  return this.each(function (elem) {
9324
9376
  _.each(classNames, function (className) {
@@ -9342,7 +9394,7 @@ DomQuery.$ = {
9342
9394
  * @example
9343
9395
  * pendo.dom('div.foo').css({height: '100px', width: '50px'}
9344
9396
  */
9345
- 'css': function (styles) {
9397
+ css: function (styles) {
9346
9398
  this.each(function () {
9347
9399
  setStyle(this, styles);
9348
9400
  });
@@ -9360,7 +9412,7 @@ DomQuery.$ = {
9360
9412
  * @example
9361
9413
  * pendo.dom('div.foo').appendTo('div.parent')
9362
9414
  */
9363
- 'appendTo': function (selector) {
9415
+ appendTo: function (selector) {
9364
9416
  dom(selector).append(this);
9365
9417
  return this;
9366
9418
  },
@@ -9375,7 +9427,7 @@ DomQuery.$ = {
9375
9427
  * @example
9376
9428
  * pendo.dom('div.foo').append('span.bar')
9377
9429
  */
9378
- 'append': function (selector) {
9430
+ append: function (selector) {
9379
9431
  var self = this;
9380
9432
  dom(selector).each(function () {
9381
9433
  if (self.length) {
@@ -9399,7 +9451,7 @@ DomQuery.$ = {
9399
9451
  * @example
9400
9452
  * pendo.dom('div.foo').prependTo('div.parent')
9401
9453
  */
9402
- 'prependTo': function (selector) {
9454
+ prependTo: function (selector) {
9403
9455
  dom(selector).prepend(this);
9404
9456
  return this;
9405
9457
  },
@@ -9414,7 +9466,7 @@ DomQuery.$ = {
9414
9466
  * @example
9415
9467
  * pendo.dom('div.foo').prepend('div.new-first-child')
9416
9468
  */
9417
- 'prepend': function (selector) {
9469
+ prepend: function (selector) {
9418
9470
  var self = this;
9419
9471
  if (self.length) {
9420
9472
  var target = self[0];
@@ -9440,7 +9492,7 @@ DomQuery.$ = {
9440
9492
  * @example
9441
9493
  * var parent = pendo.dom('div.foo').getParent()
9442
9494
  */
9443
- 'getParent': function () {
9495
+ getParent: function () {
9444
9496
  var target = dom(this)[0];
9445
9497
  if (target && target.parentNode) {
9446
9498
  return dom(target.parentNode);
@@ -9458,7 +9510,7 @@ DomQuery.$ = {
9458
9510
  * @example
9459
9511
  * pendo.dom('div.foo').insertBefore('div.beforeFoo')
9460
9512
  */
9461
- 'insertBefore': function (selector) {
9513
+ insertBefore: function (selector) {
9462
9514
  var target = dom(selector)[0];
9463
9515
  if (target && target.parentNode) {
9464
9516
  target.parentNode.insertBefore(this[0], target);
@@ -9478,7 +9530,7 @@ DomQuery.$ = {
9478
9530
  * @example
9479
9531
  * pendo.dom('div.foo').remove()
9480
9532
  */
9481
- 'remove': function () {
9533
+ remove: function () {
9482
9534
  this.each(function () {
9483
9535
  if (this.parentNode) {
9484
9536
  this.parentNode.removeChild(this);
@@ -9498,7 +9550,7 @@ DomQuery.$ = {
9498
9550
  * @example
9499
9551
  * pendo.dom('div.foo').attr('data-foo', 'bar')
9500
9552
  */
9501
- 'attr': function (attrName, attrValue) {
9553
+ attr: function (attrName, attrValue) {
9502
9554
  if (_.isObject(attrName)) {
9503
9555
  this.each(function () {
9504
9556
  _.each(attrName, function (attrValue, attrName) {
@@ -9534,7 +9586,7 @@ DomQuery.$ = {
9534
9586
  * @example
9535
9587
  * dom('div.foo').closest('.bar', '.content-area')
9536
9588
  */
9537
- 'closest': function (selector, demarcation) {
9589
+ closest: function (selector, demarcation) {
9538
9590
  var elem = this[0];
9539
9591
  while (elem && !SizzleProxy.matchesSelector(elem, selector)) {
9540
9592
  elem = getParent(elem);
@@ -9544,7 +9596,7 @@ DomQuery.$ = {
9544
9596
  }
9545
9597
  return dom(elem);
9546
9598
  },
9547
- 'eq': function (index) {
9599
+ eq: function (index) {
9548
9600
  return dom(this[index]);
9549
9601
  },
9550
9602
  /**
@@ -9560,7 +9612,7 @@ DomQuery.$ = {
9560
9612
  * @example
9561
9613
  * pendo.dom('div.foo).height()
9562
9614
  */
9563
- 'height': function (height) {
9615
+ height: function (height) {
9564
9616
  if (this.length) {
9565
9617
  if (height === undefined) {
9566
9618
  return this[0].offsetHeight;
@@ -9584,7 +9636,7 @@ DomQuery.$ = {
9584
9636
  * @example
9585
9637
  * pendo.dom('div.foo).width()
9586
9638
  */
9587
- 'width': function (width) {
9639
+ width: function (width) {
9588
9640
  if (this.length) {
9589
9641
  if (width === undefined) {
9590
9642
  return this[0].offsetWidth;
@@ -9605,7 +9657,7 @@ DomQuery.$ = {
9605
9657
  * @example
9606
9658
  * pendo.dom('div.foo').focus()
9607
9659
  */
9608
- 'focus': function () {
9660
+ focus: function () {
9609
9661
  return this.each(function () {
9610
9662
  if (_.isFunction(this.focus)) {
9611
9663
  this.focus();
@@ -9624,7 +9676,7 @@ DomQuery.$ = {
9624
9676
  var DomObserver = /** @class */ (function () {
9625
9677
  function DomObserver(container, config) {
9626
9678
  if (container === void 0) { container = getBody(); }
9627
- if (config === void 0) { config = { 'attributes': true, 'childList': true, 'subtree': true }; }
9679
+ if (config === void 0) { config = { attributes: true, childList: true, subtree: true }; }
9628
9680
  var _this = this;
9629
9681
  this.listeners = [];
9630
9682
  this._teardown = function () { };
@@ -9798,6 +9850,7 @@ var ElementGetter = /** @class */ (function () {
9798
9850
  if (el && isInDoc)
9799
9851
  return el;
9800
9852
  if (el && !isInDoc) {
9853
+ this.teardown(el);
9801
9854
  return undefined;
9802
9855
  }
9803
9856
  el = dom(this.cssSelector)[0];
@@ -9824,16 +9877,16 @@ var ElementGetter = /** @class */ (function () {
9824
9877
  el.addEventListener(event, function (e) { return _this.onEvent(e); });
9825
9878
  }
9826
9879
  }
9827
- this.listeners[event] = this.listeners[event]
9828
- ? this.listeners[event].push(callback) : [].concat(callback);
9880
+ this.listeners[event] = this.listeners[event] || [];
9881
+ this.listeners[event].push(callback);
9829
9882
  };
9830
9883
  ElementGetter.prototype.onEvent = function (evt) {
9831
9884
  var type = evt.type;
9832
9885
  _.each(this.listeners[type], function (cb) { return cb(evt); });
9833
9886
  };
9834
- ElementGetter.prototype.teardown = function () {
9887
+ ElementGetter.prototype.teardown = function (el) {
9835
9888
  var _this = this;
9836
- var el = this.get();
9889
+ if (el === void 0) { el = this.get(); }
9837
9890
  if (el) {
9838
9891
  _.each(this.events, function (evtType) { return el.removeEventListener(evtType, _this.onEvent); });
9839
9892
  }
@@ -9842,23 +9895,23 @@ var ElementGetter = /** @class */ (function () {
9842
9895
  }());
9843
9896
 
9844
9897
  _.extend(dom, {
9845
- 'data': DomData$1,
9846
- 'event': DomEvent,
9847
- 'removeNode': removeNode,
9848
- 'getClass': _getClass,
9849
- 'hasClass': _hasClass,
9850
- 'addClass': addClass,
9851
- 'removeClass': removeClass,
9852
- 'getBody': getBody,
9853
- 'getComputedStyle': getComputedStyle_safe,
9854
- 'getClientRect': getClientRect,
9855
- 'intersectRect': intersectRect,
9856
- 'getScrollParent': getScrollParent,
9857
- 'isElementVisible': isElementVisible,
9858
- 'Observer': DomObserver,
9859
- 'Element': ElementGetter,
9860
- 'scrollIntoView': scrollIntoView,
9861
- 'getRootNode': getRootNode
9898
+ data: DomData$1,
9899
+ event: DomEvent,
9900
+ removeNode: removeNode,
9901
+ getClass: _getClass,
9902
+ hasClass: _hasClass,
9903
+ addClass: addClass,
9904
+ removeClass: removeClass,
9905
+ getBody: getBody,
9906
+ getComputedStyle: getComputedStyle_safe,
9907
+ getClientRect: getClientRect,
9908
+ intersectRect: intersectRect,
9909
+ getScrollParent: getScrollParent,
9910
+ isElementVisible: isElementVisible,
9911
+ Observer: DomObserver,
9912
+ Element: ElementGetter,
9913
+ scrollIntoView: scrollIntoView,
9914
+ getRootNode: getRootNode
9862
9915
  });
9863
9916
  _.extend(dom.prototype, DomEvent.$, DomQuery.$);
9864
9917