@pendo/agent 2.320.1 → 2.320.2

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
@@ -7484,7 +7484,7 @@ function applyMatrix2dRect(matrix2d, rect) {
7484
7484
  return transformedRect;
7485
7485
  }
7486
7486
 
7487
- var VERSION = '2.320.1_';
7487
+ var VERSION = '2.320.2_';
7488
7488
 
7489
7489
  var decodeURIComponent = _.isFunction(window.decodeURIComponent) ? window.decodeURIComponent : _.identity;
7490
7490
 
@@ -3967,8 +3967,8 @@ let SERVER = '';
3967
3967
  let ASSET_HOST = '';
3968
3968
  let ASSET_PATH = '';
3969
3969
  let DESIGNER_SERVER = '';
3970
- let VERSION = '2.320.1_';
3971
- let PACKAGE_VERSION = '2.320.1';
3970
+ let VERSION = '2.320.2_';
3971
+ let PACKAGE_VERSION = '2.320.2';
3972
3972
  let LOADER = 'xhr';
3973
3973
  /* eslint-enable web-sdk-eslint-rules/no-gulp-env-references */
3974
3974
  /**
@@ -43243,24 +43243,20 @@ var NodeType$3 = /* @__PURE__ */ ((NodeType2) => {
43243
43243
  NodeType2[NodeType2["Comment"] = 5] = "Comment";
43244
43244
  return NodeType2;
43245
43245
  })(NodeType$3 || {});
43246
- const testableAccessors$2 = {
43246
+ const testableAccessors$1 = {
43247
43247
  Node: ["childNodes", "parentNode", "parentElement", "textContent"],
43248
43248
  ShadowRoot: ["host", "styleSheets"],
43249
43249
  Element: ["shadowRoot"],
43250
- MutationObserver: [],
43251
- EventTarget: [],
43252
- Window: []
43250
+ MutationObserver: []
43253
43251
  };
43254
- const testableMethods$2 = {
43252
+ const testableMethods$1 = {
43255
43253
  Node: ["contains", "getRootNode"],
43256
43254
  ShadowRoot: ["getSelection"],
43257
43255
  Element: ["querySelector", "querySelectorAll"],
43258
- MutationObserver: ["constructor"],
43259
- EventTarget: ["addEventListener", "removeEventListener"],
43260
- Window: ["setTimeout"]
43256
+ MutationObserver: ["constructor"]
43261
43257
  };
43262
- const untaintedBasePrototype$2 = {};
43263
- function angularZoneUnpatchedAlternative$2(key) {
43258
+ const untaintedBasePrototype$1 = {};
43259
+ function angularZoneUnpatchedAlternative$1(key) {
43264
43260
  var _a2, _b;
43265
43261
  const angularUnpatchedVersionSymbol = (_b = (_a2 = globalThis == null ? void 0 : globalThis.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, key);
43266
43262
  if (angularUnpatchedVersionSymbol && globalThis[angularUnpatchedVersionSymbol]) {
@@ -43269,12 +43265,12 @@ function angularZoneUnpatchedAlternative$2(key) {
43269
43265
  return void 0;
43270
43266
  }
43271
43267
  }
43272
- function getUntaintedPrototype$2(key) {
43273
- if (untaintedBasePrototype$2[key])
43274
- return untaintedBasePrototype$2[key];
43275
- const candidate = angularZoneUnpatchedAlternative$2(key) || globalThis[key];
43268
+ function getUntaintedPrototype$1(key) {
43269
+ if (untaintedBasePrototype$1[key])
43270
+ return untaintedBasePrototype$1[key];
43271
+ const candidate = angularZoneUnpatchedAlternative$1(key) || globalThis[key];
43276
43272
  const defaultPrototype = candidate.prototype;
43277
- const accessorNames = key in testableAccessors$2 ? testableAccessors$2[key] : void 0;
43273
+ const accessorNames = key in testableAccessors$1 ? testableAccessors$1[key] : void 0;
43278
43274
  const isUntaintedAccessors = Boolean(
43279
43275
  accessorNames && // @ts-expect-error 2345
43280
43276
  accessorNames.every(
@@ -43286,7 +43282,7 @@ function getUntaintedPrototype$2(key) {
43286
43282
  }
43287
43283
  )
43288
43284
  );
43289
- const methodNames = key in testableMethods$2 ? testableMethods$2[key] : void 0;
43285
+ const methodNames = key in testableMethods$1 ? testableMethods$1[key] : void 0;
43290
43286
  const isUntaintedMethods = Boolean(
43291
43287
  methodNames && methodNames.every(
43292
43288
  // @ts-expect-error 2345
@@ -43297,7 +43293,7 @@ function getUntaintedPrototype$2(key) {
43297
43293
  )
43298
43294
  );
43299
43295
  if (isUntaintedAccessors && isUntaintedMethods) {
43300
- untaintedBasePrototype$2[key] = candidate.prototype;
43296
+ untaintedBasePrototype$1[key] = candidate.prototype;
43301
43297
  return candidate.prototype;
43302
43298
  }
43303
43299
  try {
@@ -43308,7 +43304,7 @@ function getUntaintedPrototype$2(key) {
43308
43304
  const untaintedObject = win[key].prototype;
43309
43305
  document.body.removeChild(iframeEl);
43310
43306
  if (!untaintedObject) return defaultPrototype;
43311
- return untaintedBasePrototype$2[key] = untaintedObject;
43307
+ return untaintedBasePrototype$1[key] = untaintedObject;
43312
43308
  } catch {
43313
43309
  return defaultPrototype;
43314
43310
  }
@@ -43321,7 +43317,7 @@ function getUntaintedAccessor$1(key, instance, accessor) {
43321
43317
  return untaintedAccessorCache$1[cacheKey].call(
43322
43318
  instance
43323
43319
  );
43324
- const untaintedPrototype = getUntaintedPrototype$2(key);
43320
+ const untaintedPrototype = getUntaintedPrototype$1(key);
43325
43321
  const untaintedAccessor = (_a2 = Object.getOwnPropertyDescriptor(
43326
43322
  untaintedPrototype,
43327
43323
  accessor
@@ -43330,17 +43326,17 @@ function getUntaintedAccessor$1(key, instance, accessor) {
43330
43326
  untaintedAccessorCache$1[cacheKey] = untaintedAccessor;
43331
43327
  return untaintedAccessor.call(instance);
43332
43328
  }
43333
- const untaintedMethodCache$2 = {};
43334
- function getUntaintedMethod$2(key, instance, method) {
43329
+ const untaintedMethodCache$1 = {};
43330
+ function getUntaintedMethod$1(key, instance, method) {
43335
43331
  const cacheKey = `${key}.${String(method)}`;
43336
- if (untaintedMethodCache$2[cacheKey])
43337
- return untaintedMethodCache$2[cacheKey].bind(
43332
+ if (untaintedMethodCache$1[cacheKey])
43333
+ return untaintedMethodCache$1[cacheKey].bind(
43338
43334
  instance
43339
43335
  );
43340
- const untaintedPrototype = getUntaintedPrototype$2(key);
43336
+ const untaintedPrototype = getUntaintedPrototype$1(key);
43341
43337
  const untaintedMethod = untaintedPrototype[method];
43342
43338
  if (typeof untaintedMethod !== "function") return instance[method];
43343
- untaintedMethodCache$2[cacheKey] = untaintedMethod;
43339
+ untaintedMethodCache$1[cacheKey] = untaintedMethod;
43344
43340
  return untaintedMethod.bind(instance);
43345
43341
  }
43346
43342
  function childNodes$1(n2) {
@@ -43356,10 +43352,10 @@ function textContent$1(n2) {
43356
43352
  return getUntaintedAccessor$1("Node", n2, "textContent");
43357
43353
  }
43358
43354
  function contains$1(n2, other) {
43359
- return getUntaintedMethod$2("Node", n2, "contains")(other);
43355
+ return getUntaintedMethod$1("Node", n2, "contains")(other);
43360
43356
  }
43361
43357
  function getRootNode$1(n2) {
43362
- return getUntaintedMethod$2("Node", n2, "getRootNode")();
43358
+ return getUntaintedMethod$1("Node", n2, "getRootNode")();
43363
43359
  }
43364
43360
  function host$1(n2) {
43365
43361
  if (!n2 || !("host" in n2)) return null;
@@ -43373,13 +43369,13 @@ function shadowRoot$1(n2) {
43373
43369
  return getUntaintedAccessor$1("Element", n2, "shadowRoot");
43374
43370
  }
43375
43371
  function querySelector$1(n2, selectors) {
43376
- return getUntaintedMethod$2("Element", n2, "querySelector")(selectors);
43372
+ return getUntaintedMethod$1("Element", n2, "querySelector")(selectors);
43377
43373
  }
43378
43374
  function querySelectorAll$1(n2, selectors) {
43379
- return getUntaintedMethod$2("Element", n2, "querySelectorAll")(selectors);
43375
+ return getUntaintedMethod$1("Element", n2, "querySelectorAll")(selectors);
43380
43376
  }
43381
43377
  function mutationObserverCtor$1() {
43382
- return getUntaintedPrototype$2("MutationObserver").constructor;
43378
+ return getUntaintedPrototype$1("MutationObserver").constructor;
43383
43379
  }
43384
43380
  function patch$1(source, name, replacement) {
43385
43381
  try {
@@ -43438,7 +43434,19 @@ function isShadowRoot(n2) {
43438
43434
  function isNativeShadowDom(shadowRoot2) {
43439
43435
  return Object.prototype.toString.call(shadowRoot2) === "[object ShadowRoot]";
43440
43436
  }
43441
- const nativeSetTimeout = typeof window !== "undefined" ? getUntaintedMethod$2("Window", window, "setTimeout").bind(window) : global.setTimeout;
43437
+ function getNative$1(symbolName, windowObj = window) {
43438
+ var _a2, _b;
43439
+ const windowWithZone = windowObj;
43440
+ const angularZoneSymbol = (_b = (_a2 = windowWithZone == null ? void 0 : windowWithZone.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, symbolName);
43441
+ if (angularZoneSymbol) {
43442
+ const zonelessImpl = windowWithZone[angularZoneSymbol];
43443
+ if (zonelessImpl) {
43444
+ return zonelessImpl;
43445
+ }
43446
+ }
43447
+ return windowWithZone[symbolName];
43448
+ }
43449
+ const nativeSetTimeout = typeof window !== "undefined" ? getNative$1("setTimeout").bind(window) : global.setTimeout;
43442
43450
  function fixBrowserCompatibilityIssuesInCSS(cssText) {
43443
43451
  if (cssText.includes(" background-clip: text;") && !cssText.includes(" -webkit-background-clip: text;")) {
43444
43452
  cssText = cssText.replace(
@@ -44762,90 +44770,19 @@ function snapshot(n2, options) {
44762
44770
  var __defProp2 = Object.defineProperty;
44763
44771
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
44764
44772
  var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
44765
- const testableAccessors$1 = {
44766
- Node: ["childNodes", "parentNode", "parentElement", "textContent"],
44767
- ShadowRoot: ["host", "styleSheets"],
44768
- Element: ["shadowRoot"],
44769
- MutationObserver: [],
44770
- EventTarget: [],
44771
- Window: []
44772
- };
44773
- const testableMethods$1 = {
44774
- Node: ["contains", "getRootNode"],
44775
- ShadowRoot: ["getSelection"],
44776
- Element: ["querySelector", "querySelectorAll"],
44777
- MutationObserver: ["constructor"],
44778
- EventTarget: ["addEventListener", "removeEventListener"],
44779
- Window: ["setTimeout"]
44780
- };
44781
- const untaintedBasePrototype$1 = {};
44782
- function angularZoneUnpatchedAlternative$1(key) {
44773
+ function getNative(symbolName, windowObj = window) {
44783
44774
  var _a2, _b;
44784
- const angularUnpatchedVersionSymbol = (_b = (_a2 = globalThis == null ? void 0 : globalThis.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, key);
44785
- if (angularUnpatchedVersionSymbol && globalThis[angularUnpatchedVersionSymbol]) {
44786
- return globalThis[angularUnpatchedVersionSymbol];
44787
- } else {
44788
- return void 0;
44789
- }
44790
- }
44791
- function getUntaintedPrototype$1(key) {
44792
- if (untaintedBasePrototype$1[key])
44793
- return untaintedBasePrototype$1[key];
44794
- const candidate = angularZoneUnpatchedAlternative$1(key) || globalThis[key];
44795
- const defaultPrototype = candidate.prototype;
44796
- const accessorNames = key in testableAccessors$1 ? testableAccessors$1[key] : void 0;
44797
- const isUntaintedAccessors = Boolean(
44798
- accessorNames && // @ts-expect-error 2345
44799
- accessorNames.every(
44800
- (accessor) => {
44801
- var _a2, _b;
44802
- return Boolean(
44803
- (_b = (_a2 = Object.getOwnPropertyDescriptor(defaultPrototype, accessor)) == null ? void 0 : _a2.get) == null ? void 0 : _b.toString().includes("[native code]")
44804
- );
44805
- }
44806
- )
44807
- );
44808
- const methodNames = key in testableMethods$1 ? testableMethods$1[key] : void 0;
44809
- const isUntaintedMethods = Boolean(
44810
- methodNames && methodNames.every(
44811
- // @ts-expect-error 2345
44812
- (method) => {
44813
- var _a2;
44814
- return typeof defaultPrototype[method] === "function" && ((_a2 = defaultPrototype[method]) == null ? void 0 : _a2.toString().includes("[native code]"));
44815
- }
44816
- )
44817
- );
44818
- if (isUntaintedAccessors && isUntaintedMethods) {
44819
- untaintedBasePrototype$1[key] = candidate.prototype;
44820
- return candidate.prototype;
44821
- }
44822
- try {
44823
- const iframeEl = document.createElement("iframe");
44824
- document.body.appendChild(iframeEl);
44825
- const win = iframeEl.contentWindow;
44826
- if (!win) return candidate.prototype;
44827
- const untaintedObject = win[key].prototype;
44828
- document.body.removeChild(iframeEl);
44829
- if (!untaintedObject) return defaultPrototype;
44830
- return untaintedBasePrototype$1[key] = untaintedObject;
44831
- } catch {
44832
- return defaultPrototype;
44775
+ const windowWithZone = windowObj;
44776
+ const angularZoneSymbol = (_b = (_a2 = windowWithZone == null ? void 0 : windowWithZone.Zone) == null ? void 0 : _a2.__symbol__) == null ? void 0 : _b.call(_a2, symbolName);
44777
+ if (angularZoneSymbol) {
44778
+ const zonelessImpl = windowWithZone[angularZoneSymbol];
44779
+ if (zonelessImpl) {
44780
+ return zonelessImpl;
44781
+ }
44833
44782
  }
44783
+ return windowWithZone[symbolName];
44834
44784
  }
44835
- const untaintedMethodCache$1 = {};
44836
- function getUntaintedMethod$1(key, instance, method) {
44837
- const cacheKey = `${key}.${String(method)}`;
44838
- if (untaintedMethodCache$1[cacheKey])
44839
- return untaintedMethodCache$1[cacheKey].bind(
44840
- instance
44841
- );
44842
- const untaintedPrototype = getUntaintedPrototype$1(key);
44843
- const untaintedMethod = untaintedPrototype[method];
44844
- if (typeof untaintedMethod !== "function") return instance[method];
44845
- untaintedMethodCache$1[cacheKey] = untaintedMethod;
44846
- return untaintedMethod.bind(instance);
44847
- }
44848
- typeof window !== "undefined" ? getUntaintedMethod$1("Window", window, "setTimeout").bind(window) : global.setTimeout;
44785
+ typeof window !== "undefined" ? getNative("setTimeout").bind(window) : global.setTimeout;
44849
44786
  class BaseRRNode {
44850
44787
  // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any
44851
44788
  constructor(..._args) {
@@ -44907,17 +44844,13 @@ const testableAccessors = {
44907
44844
  Node: ["childNodes", "parentNode", "parentElement", "textContent"],
44908
44845
  ShadowRoot: ["host", "styleSheets"],
44909
44846
  Element: ["shadowRoot"],
44910
- MutationObserver: [],
44911
- EventTarget: [],
44912
- Window: []
44847
+ MutationObserver: []
44913
44848
  };
44914
44849
  const testableMethods = {
44915
44850
  Node: ["contains", "getRootNode"],
44916
44851
  ShadowRoot: ["getSelection"],
44917
44852
  Element: ["querySelector", "querySelectorAll"],
44918
- MutationObserver: ["constructor"],
44919
- EventTarget: ["addEventListener", "removeEventListener"],
44920
- Window: ["setTimeout"]
44853
+ MutationObserver: ["constructor"]
44921
44854
  };
44922
44855
  const untaintedBasePrototype = {};
44923
44856
  function angularZoneUnpatchedAlternative(key) {
@@ -45098,11 +45031,20 @@ const index = {
45098
45031
  mutationObserver: mutationObserverCtor,
45099
45032
  patch
45100
45033
  };
45034
+ function getWindow(documentOrWindow) {
45035
+ const defaultView = documentOrWindow.defaultView;
45036
+ return defaultView ? defaultView : documentOrWindow;
45037
+ }
45101
45038
  function on(type, fn, target = document) {
45039
+ const windowObj = getWindow(target);
45040
+ const nativeAddEventListener = getNative$1(
45041
+ "addEventListener",
45042
+ windowObj
45043
+ );
45044
+ const nativeRemoveEventListener = getNative$1("removeEventListener", windowObj);
45102
45045
  const options = { capture: true, passive: true };
45103
- const eventTarget = target;
45104
- getUntaintedMethod("EventTarget", eventTarget, "addEventListener")(type, fn, options);
45105
- return () => getUntaintedMethod("EventTarget", eventTarget, "removeEventListener")(type, fn, options);
45046
+ nativeAddEventListener.call(target, type, fn, options);
45047
+ return () => nativeRemoveEventListener.call(target, type, fn, options);
45106
45048
  }
45107
45049
  const DEPARTED_MIRROR_ACCESS_WARNING = "Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";
45108
45050
  let _mirror = {