@jumio/websdk 0.3.2 → 0.3.3
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/dac.DVnCFTbP.js +5 -0
- package/dac_simd.B_kkhIDp.js +5 -0
- package/i18n/{ar.B5v-nzb0.js → ar.CVtc08CP.js} +267 -265
- package/i18n/{bg.f8dANnfL.js → bg.Ds2e2Kvl.js} +268 -265
- package/i18n/{cs.DKwBkw3X.js → cs.MA39qtrj.js} +267 -264
- package/i18n/{da.BQkZX9jF.js → da.UT4VIBo5.js} +255 -252
- package/i18n/{de.DYOLncd1.js → de.DrOgwXx1.js} +255 -252
- package/i18n/{el.raXOcOJw.js → el.B_0YUw_b.js} +267 -264
- package/i18n/{en.DhlJfylH.js → en.nvt_A7Ca.js} +255 -250
- package/i18n/{en_GB.BSP2p1O8.js → en_GB.mNh3SyT6.js} +231 -226
- package/i18n/{es.Ckls1eyO.js → es.B2IQp6um.js} +243 -240
- package/i18n/{es_MX.DIrzK_s-.js → es_MX.D8KUkwJE.js} +249 -261
- package/i18n/{et.D44UHjCs.js → et.BuUUrZsD.js} +255 -252
- package/i18n/{fi.oSGv1Rlj.js → fi.ClZfVmfJ.js} +267 -264
- package/i18n/{fr.vzh79Vv5.js → fr.uu5bQCKC.js} +247 -244
- package/i18n/{he.BrIB9Dml.js → he.C1PgRksV.js} +255 -264
- package/i18n/{hr.COvjFh-D.js → hr.DpC0FykX.js} +255 -252
- package/i18n/{hu.D4RuJNEh.js → hu.6ZVgsJu8.js} +259 -256
- package/i18n/{hy.Br_Tnv1F.js → hy.D45Shusk.js} +243 -250
- package/i18n/{id.EGjTml-d.js → id.CA-O_20D.js} +237 -236
- package/i18n/{it.B4MNwqAC.js → it.B1RNJxaF.js} +239 -236
- package/i18n/{ja.m07sF4Z5.js → ja.1ir7Tabb.js} +243 -242
- package/i18n/{ka_GE.CMTyCS05.js → ka_GE.KAIf1J95.js} +257 -264
- package/i18n/{km_KH.ClOtvwtJ.js → km_KH.V0gyuP4R.js} +267 -264
- package/i18n/{ko.UW8lo2rh.js → ko.DuA7mI08.js} +243 -242
- package/i18n/{lt.Cqx3mqip.js → lt.5VoyVP_J.js} +251 -248
- package/i18n/{ms.46dckKl9.js → ms.CDvob17O.js} +229 -234
- package/i18n/{nl.tkzp4rni.js → nl.CeKf6B0T.js} +247 -244
- package/i18n/{no.B_CoFr75.js → no.BXDMDcm7.js} +255 -252
- package/i18n/{pl.BdYvycQi.js → pl.GyOKjtfJ.js} +247 -244
- package/i18n/{pt.CpqxzJk6.js → pt.BJByQwSz.js} +231 -228
- package/i18n/{pt_BR.CPdKsknZ.js → pt_BR.Enps-Q3E.js} +62 -63
- package/i18n/{ro.CH1Zq2-8.js → ro.B7HQrbVr.js} +239 -237
- package/i18n/{ru.CZV0yFwC.js → ru.DZggUXG2.js} +267 -264
- package/i18n/{sk.BpkoICfL.js → sk.2TuzfWdS.js} +247 -244
- package/i18n/{sr_Cyrl.BmLmS38i.js → sr_Cyrl.iOK5BxTG.js} +263 -307
- package/i18n/{sr_Latn.B7L5t3Nr.js → sr_Latn.DhVvgzdO.js} +259 -303
- package/i18n/{sv.RoEeuy1i.js → sv.DFnnWQc4.js} +263 -260
- package/i18n/{sw.DjsmgoBA.js → sw.tFd-sAFG.js} +233 -242
- package/i18n/{th.DxR1Ndnr.js → th.DPFAV9DX.js} +271 -268
- package/i18n/{tr.CRhAJQTo.js → tr.nfFR4XRq.js} +237 -236
- package/i18n/{uk.C13KHs05.js → uk.Dzavklny.js} +277 -276
- package/i18n/{vi.CqmYDNk4.js → vi.DPPEUqvd.js} +134 -135
- package/i18n/{zh_CN.Dt6xc1C7.js → zh_CN.KG_H1Qj1.js} +267 -264
- package/i18n/{zh_HK.BOgKHxnF.js → zh_HK.D7hYXrXr.js} +199 -217
- package/{iProovMe.DzGWiLZD.js → iProovMe.WzN9s5mB.js} +2 -2
- package/{index.Bua1o1Ys.js → index.B5HUelf8.js} +20864 -19846
- package/index.d.ts +336 -186
- package/index.js +258 -253
- package/package.json +1 -1
- package/pdfjs/{pdf-DxeL3Pew.js → pdf-BappGl9h.js} +3102 -2929
- package/pdfjs/{pdf.worker.min-D0t7fbDu.js → pdf.worker.min-BJ9oGy-p.js} +2 -2
- package/profiler.C_OyDaPu.js +227 -0
- package/{startRecording.Bxx3Dh3F.js → startRecording.9HOm2aS0.js} +127 -127
- package/third-party-licenses.txt +136 -134
- package/dac.qT7PEl8J.js +0 -5
- package/dac_simd.C6bfdWfM.js +0 -5
- package/profiler.BYPEj3o_.js +0 -227
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as O, C, o as ft, p as Y, q as V, N as h, P as X, S as pt, t as B, u as ht, v as mt, w as q, x as St, y as gt, z as Et, A as yt, B as K, D as j, E as b, F as D, G as M, a as J, H as N, I as Z, J as Q, e as Tt, K as Nt, L as _, M as x, R as vt, O as wt, Q as R, T as Mt, U as It, V as Rt, W as Ct, X as _t, Y as bt, Z as Lt, _ as xt, $ as Dt, a0 as At, j as Ot, i as Vt, a1 as Pt, a2 as kt, a3 as zt, a4 as Ft } from "./index.B5HUelf8.js";
|
|
2
2
|
const P = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
function T(t) {
|
|
4
4
|
return P.has(t);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Bt(t) {
|
|
7
7
|
let e = t;
|
|
8
8
|
for (; e; ) {
|
|
9
9
|
if (!T(e) && !Y(e))
|
|
@@ -15,7 +15,7 @@ function zt(t) {
|
|
|
15
15
|
function m(t) {
|
|
16
16
|
return P.get(t);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ut(t, e) {
|
|
19
19
|
P.set(t, e);
|
|
20
20
|
}
|
|
21
21
|
function k(t, e) {
|
|
@@ -29,27 +29,27 @@ function k(t, e) {
|
|
|
29
29
|
if (!(n !== "INPUT" && n !== "TEXTAREA"))
|
|
30
30
|
return o;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
function
|
|
34
|
-
return t.replace(
|
|
32
|
+
const Ht = /url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm, Gt = /^[A-Za-z]+:|^\/\//, Wt = /^["']?data:.*,/i;
|
|
33
|
+
function $t(t, e) {
|
|
34
|
+
return t.replace(Ht, (n, o, s, r, u, i) => {
|
|
35
35
|
const a = s || u || i;
|
|
36
|
-
if (!e || !a ||
|
|
36
|
+
if (!e || !a || Gt.test(a) || Wt.test(a))
|
|
37
37
|
return n;
|
|
38
38
|
const d = o || r || "";
|
|
39
|
-
return `url(${d}${
|
|
39
|
+
return `url(${d}${Yt(a, e)}${d})`;
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Yt(t, e) {
|
|
43
43
|
try {
|
|
44
44
|
return ft(t, e).href;
|
|
45
45
|
} catch {
|
|
46
46
|
return t;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const Xt = /[^a-z1-6-_]/;
|
|
50
50
|
function tt(t) {
|
|
51
51
|
const e = t.toLowerCase().trim();
|
|
52
|
-
return
|
|
52
|
+
return Xt.test(e) ? "div" : e;
|
|
53
53
|
}
|
|
54
54
|
function U(t, e) {
|
|
55
55
|
return `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${e}' style='background-color:silver'%3E%3C/svg%3E`;
|
|
@@ -106,7 +106,7 @@ function et(t) {
|
|
|
106
106
|
};
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const qt = 1e6;
|
|
110
110
|
function nt(t, e, n, o) {
|
|
111
111
|
if (e === h.HIDDEN)
|
|
112
112
|
return null;
|
|
@@ -136,9 +136,9 @@ function nt(t, e, n, o) {
|
|
|
136
136
|
if (r === "IFRAME" && n === "srcdoc")
|
|
137
137
|
return C;
|
|
138
138
|
}
|
|
139
|
-
return !s || typeof s != "string" ? s : ht(s,
|
|
139
|
+
return !s || typeof s != "string" ? s : ht(s, qt);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function Kt(t, e, n) {
|
|
142
142
|
if (e === h.HIDDEN)
|
|
143
143
|
return {};
|
|
144
144
|
const o = {}, s = tt(t.tagName), r = t.ownerDocument;
|
|
@@ -189,11 +189,11 @@ function A(t) {
|
|
|
189
189
|
}
|
|
190
190
|
if (!e)
|
|
191
191
|
return null;
|
|
192
|
-
const n = Array.from(e, mt() ?
|
|
193
|
-
return
|
|
192
|
+
const n = Array.from(e, mt() ? jt : st).join("");
|
|
193
|
+
return $t(n, t.href);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
if (
|
|
195
|
+
function jt(t) {
|
|
196
|
+
if (Zt(t) && t.selectorText.includes(":")) {
|
|
197
197
|
const e = /(\[[\w-]+[^\\])(:[^\]]+\])/g;
|
|
198
198
|
return t.cssText.replace(e, "$1\\$2");
|
|
199
199
|
}
|
|
@@ -205,51 +205,51 @@ function st(t) {
|
|
|
205
205
|
function Jt(t) {
|
|
206
206
|
return "styleSheet" in t;
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Zt(t) {
|
|
209
209
|
return "selectorText" in t;
|
|
210
210
|
}
|
|
211
211
|
function z(t, e) {
|
|
212
|
-
const n =
|
|
212
|
+
const n = ee(t, e);
|
|
213
213
|
if (!n)
|
|
214
214
|
return null;
|
|
215
|
-
const o = m(t) ||
|
|
216
|
-
return s.id = o,
|
|
215
|
+
const o = m(t) || te(), s = n;
|
|
216
|
+
return s.id = o, Ut(t, o), e.serializedNodeIds && e.serializedNodeIds.add(o), s;
|
|
217
217
|
}
|
|
218
|
-
let
|
|
219
|
-
function
|
|
220
|
-
return
|
|
218
|
+
let Qt = 1;
|
|
219
|
+
function te() {
|
|
220
|
+
return Qt++;
|
|
221
221
|
}
|
|
222
222
|
function F(t, e) {
|
|
223
223
|
const n = [];
|
|
224
|
-
return
|
|
224
|
+
return K(t, (o) => {
|
|
225
225
|
const s = z(o, e);
|
|
226
226
|
s && n.push(s);
|
|
227
227
|
}), n;
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function ee(t, e) {
|
|
230
230
|
switch (t.nodeType) {
|
|
231
231
|
case t.DOCUMENT_NODE:
|
|
232
|
-
return
|
|
232
|
+
return ne(t, e);
|
|
233
233
|
case t.DOCUMENT_FRAGMENT_NODE:
|
|
234
|
-
return
|
|
234
|
+
return se(t, e);
|
|
235
235
|
case t.DOCUMENT_TYPE_NODE:
|
|
236
|
-
return
|
|
236
|
+
return oe(t);
|
|
237
237
|
case t.ELEMENT_NODE:
|
|
238
|
-
return se(t, e);
|
|
239
|
-
case t.TEXT_NODE:
|
|
240
238
|
return re(t, e);
|
|
239
|
+
case t.TEXT_NODE:
|
|
240
|
+
return ae(t, e);
|
|
241
241
|
case t.CDATA_SECTION_NODE:
|
|
242
|
-
return
|
|
242
|
+
return ue();
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function ne(t, e) {
|
|
246
246
|
return {
|
|
247
247
|
type: w.Document,
|
|
248
248
|
childNodes: F(t, e),
|
|
249
249
|
adoptedStyleSheets: et(t.adoptedStyleSheets)
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function se(t, e) {
|
|
253
253
|
const n = Y(t);
|
|
254
254
|
return n && e.serializationContext.shadowRootsController.addShadowRoot(t), {
|
|
255
255
|
type: w.DocumentFragment,
|
|
@@ -258,7 +258,7 @@ function ee(t, e) {
|
|
|
258
258
|
adoptedStyleSheets: n ? et(t.adoptedStyleSheets) : void 0
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function oe(t) {
|
|
262
262
|
return {
|
|
263
263
|
type: w.DocumentType,
|
|
264
264
|
name: t.name,
|
|
@@ -266,8 +266,8 @@ function ne(t) {
|
|
|
266
266
|
systemId: t.systemId
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const n = tt(t.tagName), o =
|
|
269
|
+
function re(t, e) {
|
|
270
|
+
const n = tt(t.tagName), o = ie(t) || void 0, s = St(gt(t), e.parentNodePrivacyLevel);
|
|
271
271
|
if (s === h.HIDDEN) {
|
|
272
272
|
const { width: i, height: a } = t.getBoundingClientRect();
|
|
273
273
|
return {
|
|
@@ -284,7 +284,7 @@ function se(t, e) {
|
|
|
284
284
|
}
|
|
285
285
|
if (s === h.IGNORE)
|
|
286
286
|
return;
|
|
287
|
-
const r =
|
|
287
|
+
const r = Kt(t, s, e);
|
|
288
288
|
let u = [];
|
|
289
289
|
if (yt(t) && // Do not serialize style children as the css rules are already in the _cssText attribute
|
|
290
290
|
n !== "style") {
|
|
@@ -303,10 +303,10 @@ function se(t, e) {
|
|
|
303
303
|
isSVG: o
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function ie(t) {
|
|
307
307
|
return t.tagName === "svg" || t instanceof SVGElement;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function ae(t, e) {
|
|
310
310
|
const n = q(t, e.ignoreWhiteSpace || !1, e.parentNodePrivacyLevel);
|
|
311
311
|
if (n !== void 0)
|
|
312
312
|
return {
|
|
@@ -314,13 +314,13 @@ function re(t, e) {
|
|
|
314
314
|
textContent: n
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function ue() {
|
|
318
318
|
return {
|
|
319
319
|
type: w.CDATA,
|
|
320
320
|
textContent: ""
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function ce(t, e, n) {
|
|
324
324
|
return z(t, {
|
|
325
325
|
serializationContext: n,
|
|
326
326
|
parentNodePrivacyLevel: e.defaultPrivacyLevel,
|
|
@@ -331,13 +331,13 @@ function ot(t) {
|
|
|
331
331
|
return !!t.changedTouches;
|
|
332
332
|
}
|
|
333
333
|
function L(t) {
|
|
334
|
-
return t.composed === !0 &&
|
|
334
|
+
return t.composed === !0 && j(t.target) ? t.composedPath()[0] : t.target;
|
|
335
335
|
}
|
|
336
336
|
const G = 25;
|
|
337
|
-
function
|
|
337
|
+
function le(t) {
|
|
338
338
|
return Math.abs(t.pageTop - t.offsetTop - window.scrollY) > G || Math.abs(t.pageLeft - t.offsetLeft - window.scrollX) > G;
|
|
339
339
|
}
|
|
340
|
-
const
|
|
340
|
+
const de = (t, e) => {
|
|
341
341
|
const n = window.visualViewport, o = {
|
|
342
342
|
layoutViewportX: t,
|
|
343
343
|
layoutViewportY: e,
|
|
@@ -345,7 +345,7 @@ const ce = (t, e) => {
|
|
|
345
345
|
visualViewportY: e
|
|
346
346
|
};
|
|
347
347
|
if (n)
|
|
348
|
-
|
|
348
|
+
le(n) ? (o.layoutViewportX = Math.round(t + n.offsetLeft), o.layoutViewportY = Math.round(e + n.offsetTop)) : (o.visualViewportX = Math.round(t - n.offsetLeft), o.visualViewportY = Math.round(e - n.offsetTop));
|
|
349
349
|
else return o;
|
|
350
350
|
return o;
|
|
351
351
|
}, rt = (t) => ({
|
|
@@ -367,8 +367,8 @@ function E(t, e) {
|
|
|
367
367
|
timestamp: b()
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
const
|
|
371
|
-
function
|
|
370
|
+
const fe = 50;
|
|
371
|
+
function pe(t, e) {
|
|
372
372
|
const { throttled: n, cancel: o } = D((r) => {
|
|
373
373
|
const u = L(r);
|
|
374
374
|
if (T(u)) {
|
|
@@ -383,7 +383,7 @@ function de(t, e) {
|
|
|
383
383
|
};
|
|
384
384
|
e(E(ot(r) ? S.TouchMove : S.MouseMove, { positions: [a] }));
|
|
385
385
|
}
|
|
386
|
-
},
|
|
386
|
+
}, fe, {
|
|
387
387
|
trailing: !1
|
|
388
388
|
}), { stop: s } = M(t, document, [
|
|
389
389
|
"mousemove",
|
|
@@ -402,11 +402,11 @@ function de(t, e) {
|
|
|
402
402
|
function it(t) {
|
|
403
403
|
let { clientX: e, clientY: n } = ot(t) ? t.changedTouches[0] : t;
|
|
404
404
|
if (window.visualViewport) {
|
|
405
|
-
const { visualViewportX: o, visualViewportY: s } =
|
|
405
|
+
const { visualViewportX: o, visualViewportY: s } = de(e, n);
|
|
406
406
|
e = o, n = s;
|
|
407
407
|
}
|
|
408
408
|
if (!Number.isFinite(e) || !Number.isFinite(n)) {
|
|
409
|
-
t.isTrusted &&
|
|
409
|
+
t.isTrusted && J("mouse/touch event without x/y");
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
return { x: e, y: n };
|
|
@@ -430,7 +430,7 @@ const W = {
|
|
|
430
430
|
touchstart: g.TouchStart,
|
|
431
431
|
touchend: g.TouchEnd
|
|
432
432
|
};
|
|
433
|
-
function
|
|
433
|
+
function he(t, e, n) {
|
|
434
434
|
const o = (s) => {
|
|
435
435
|
const r = L(s);
|
|
436
436
|
if (N(r, t.defaultPrivacyLevel) === h.HIDDEN || !T(r))
|
|
@@ -455,7 +455,7 @@ function fe(t, e, n) {
|
|
|
455
455
|
passive: !0
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const me = 100;
|
|
459
459
|
function at(t, e, n, o = document) {
|
|
460
460
|
const { throttled: s, cancel: r } = D((i) => {
|
|
461
461
|
const a = L(i);
|
|
@@ -473,7 +473,7 @@ function at(t, e, n, o = document) {
|
|
|
473
473
|
x: c.scrollLeft,
|
|
474
474
|
y: c.scrollTop
|
|
475
475
|
}));
|
|
476
|
-
},
|
|
476
|
+
}, me), { stop: u } = Tt(t, o, "scroll", s, {
|
|
477
477
|
capture: !0,
|
|
478
478
|
passive: !0
|
|
479
479
|
});
|
|
@@ -483,8 +483,8 @@ function at(t, e, n, o = document) {
|
|
|
483
483
|
}
|
|
484
484
|
};
|
|
485
485
|
}
|
|
486
|
-
const
|
|
487
|
-
function
|
|
486
|
+
const Se = 200;
|
|
487
|
+
function ge(t, e) {
|
|
488
488
|
const n = Nt(t).subscribe((o) => {
|
|
489
489
|
e(E(S.ViewportResize, o));
|
|
490
490
|
});
|
|
@@ -494,7 +494,7 @@ function me(t, e) {
|
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Ee(t, e) {
|
|
498
498
|
const n = window.visualViewport;
|
|
499
499
|
if (!n)
|
|
500
500
|
return { stop: _ };
|
|
@@ -504,7 +504,7 @@ function Se(t, e) {
|
|
|
504
504
|
type: y.VisualViewport,
|
|
505
505
|
timestamp: b()
|
|
506
506
|
});
|
|
507
|
-
},
|
|
507
|
+
}, Se, {
|
|
508
508
|
trailing: !1
|
|
509
509
|
}), { stop: r } = M(t, n, [
|
|
510
510
|
"resize",
|
|
@@ -520,7 +520,7 @@ function Se(t, e) {
|
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function ye(t, e) {
|
|
524
524
|
return M(t, document, [
|
|
525
525
|
"play",
|
|
526
526
|
"pause"
|
|
@@ -536,7 +536,7 @@ function ge(t, e) {
|
|
|
536
536
|
passive: !0
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Te(t) {
|
|
540
540
|
function e(s, r) {
|
|
541
541
|
s && T(s.ownerNode) && r(m(s.ownerNode));
|
|
542
542
|
}
|
|
@@ -592,7 +592,7 @@ function $(t) {
|
|
|
592
592
|
const s = Array.from(n.parentStyleSheet.cssRules).indexOf(n);
|
|
593
593
|
return e.unshift(s), e;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Ne(t, e) {
|
|
596
596
|
return M(t, window, [
|
|
597
597
|
"focus",
|
|
598
598
|
"blur"
|
|
@@ -605,10 +605,10 @@ function ye(t, e) {
|
|
|
605
605
|
});
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function ve(t, e, n) {
|
|
609
609
|
const o = t.subscribe(12, (s) => {
|
|
610
610
|
var r, u;
|
|
611
|
-
s.rawRumEvent.type ===
|
|
611
|
+
s.rawRumEvent.type === vt.ACTION && s.rawRumEvent.action.type === wt.CLICK && (!((u = (r = s.rawRumEvent.action.frustration) === null || r === void 0 ? void 0 : r.type) === null || u === void 0) && u.length) && "events" in s.domainContext && s.domainContext.events && s.domainContext.events.length && e({
|
|
612
612
|
timestamp: s.rawRumEvent.date,
|
|
613
613
|
type: y.FrustrationRecord,
|
|
614
614
|
data: {
|
|
@@ -623,7 +623,7 @@ function Te(t, e, n) {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function we(t, e) {
|
|
627
627
|
const n = t.subscribe(5, () => {
|
|
628
628
|
e({
|
|
629
629
|
timestamp: b(),
|
|
@@ -712,18 +712,18 @@ function ut(t, e, n = document) {
|
|
|
712
712
|
})));
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
|
-
const
|
|
716
|
-
function
|
|
715
|
+
const Me = 100, Ie = 16;
|
|
716
|
+
function Re(t) {
|
|
717
717
|
let e = _, n = [];
|
|
718
718
|
function o() {
|
|
719
719
|
e(), t(n), n = [];
|
|
720
720
|
}
|
|
721
|
-
const { throttled: s, cancel: r } = D(o,
|
|
721
|
+
const { throttled: s, cancel: r } = D(o, Ie, {
|
|
722
722
|
leading: !1
|
|
723
723
|
});
|
|
724
724
|
return {
|
|
725
725
|
addMutations: (u) => {
|
|
726
|
-
n.length === 0 && (e =
|
|
726
|
+
n.length === 0 && (e = Mt(s, { timeout: Me })), n.push(...u);
|
|
727
727
|
},
|
|
728
728
|
flush: o,
|
|
729
729
|
stop: () => {
|
|
@@ -732,12 +732,12 @@ function Me(t) {
|
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
function ct(t, e, n, o) {
|
|
735
|
-
const s =
|
|
735
|
+
const s = It();
|
|
736
736
|
if (!s)
|
|
737
737
|
return { stop: _, flush: _ };
|
|
738
|
-
const r =
|
|
739
|
-
|
|
740
|
-
}), u = new s(
|
|
738
|
+
const r = Re((i) => {
|
|
739
|
+
Ce(i.concat(u.takeRecords()), t, e, n);
|
|
740
|
+
}), u = new s(Rt(r.addMutations));
|
|
741
741
|
return u.observe(o, {
|
|
742
742
|
attributeOldValue: !0,
|
|
743
743
|
attributes: !0,
|
|
@@ -754,17 +754,17 @@ function ct(t, e, n, o) {
|
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function Ce(t, e, n, o) {
|
|
758
758
|
const s = /* @__PURE__ */ new Map();
|
|
759
759
|
t.filter((l) => l.type === "childList").forEach((l) => {
|
|
760
760
|
l.removedNodes.forEach((f) => {
|
|
761
761
|
lt(f, o.removeShadowRoot);
|
|
762
762
|
});
|
|
763
763
|
});
|
|
764
|
-
const r = t.filter((l) => l.target.isConnected &&
|
|
764
|
+
const r = t.filter((l) => l.target.isConnected && Bt(l.target) && N(l.target, n.defaultPrivacyLevel, s) !== h.HIDDEN), { adds: u, removes: i, hasBeenSerialized: a } = _e(r.filter((l) => l.type === "childList"), n, o, s), d = be(r.filter((l) => l.type === "characterData" && !a(l.target)), n, s), c = Le(r.filter((l) => l.type === "attributes" && !a(l.target)), n, s);
|
|
765
765
|
!d.length && !c.length && !i.length && !u.length || e(E(S.Mutation, { adds: u, removes: i, texts: d, attributes: c }));
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function _e(t, e, n, o) {
|
|
768
768
|
const s = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
|
|
769
769
|
for (const f of t)
|
|
770
770
|
f.addedNodes.forEach((p) => {
|
|
@@ -773,7 +773,7 @@ function Re(t, e, n, o) {
|
|
|
773
773
|
s.has(p) || r.set(p, f.target), s.delete(p);
|
|
774
774
|
});
|
|
775
775
|
const u = Array.from(s);
|
|
776
|
-
|
|
776
|
+
xe(u);
|
|
777
777
|
const i = /* @__PURE__ */ new Set(), a = [];
|
|
778
778
|
for (const f of u) {
|
|
779
779
|
if (c(f))
|
|
@@ -816,7 +816,7 @@ function Re(t, e, n, o) {
|
|
|
816
816
|
return null;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function be(t, e, n) {
|
|
820
820
|
var o;
|
|
821
821
|
const s = [], r = /* @__PURE__ */ new Set(), u = t.filter((i) => r.has(i.target) ? !1 : (r.add(i.target), !0));
|
|
822
822
|
for (const i of u) {
|
|
@@ -831,7 +831,7 @@ function Ce(t, e, n) {
|
|
|
831
831
|
}
|
|
832
832
|
return s;
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Le(t, e, n) {
|
|
835
835
|
const o = [], s = /* @__PURE__ */ new Map(), r = t.filter((i) => {
|
|
836
836
|
const a = s.get(i.target);
|
|
837
837
|
return a && a.has(i.attributeName) ? !1 : (a ? a.add(i.attributeName) : s.set(i.target, /* @__PURE__ */ new Set([i.attributeName])), !0);
|
|
@@ -855,16 +855,16 @@ function _e(t, e, n) {
|
|
|
855
855
|
}
|
|
856
856
|
return o;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function xe(t) {
|
|
859
859
|
t.sort((e, n) => {
|
|
860
860
|
const o = e.compareDocumentPosition(n);
|
|
861
861
|
return o & Node.DOCUMENT_POSITION_CONTAINED_BY ? -1 : o & Node.DOCUMENT_POSITION_CONTAINS || o & Node.DOCUMENT_POSITION_FOLLOWING ? 1 : o & Node.DOCUMENT_POSITION_PRECEDING ? -1 : 0;
|
|
862
862
|
});
|
|
863
863
|
}
|
|
864
864
|
function lt(t, e) {
|
|
865
|
-
|
|
865
|
+
j(t) && e(t.shadowRoot), K(t, (n) => lt(n, e));
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function De() {
|
|
868
868
|
const t = /* @__PURE__ */ new WeakMap();
|
|
869
869
|
return {
|
|
870
870
|
set(e, n) {
|
|
@@ -878,7 +878,7 @@ function Le() {
|
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
const
|
|
881
|
+
const Ae = (t, e, n) => {
|
|
882
882
|
const o = /* @__PURE__ */ new Map(), s = {
|
|
883
883
|
addShadowRoot: (r) => {
|
|
884
884
|
if (o.has(r))
|
|
@@ -904,13 +904,13 @@ const xe = (t, e, n) => {
|
|
|
904
904
|
};
|
|
905
905
|
return s;
|
|
906
906
|
};
|
|
907
|
-
function
|
|
907
|
+
function Oe(t, e, n, o, s, r) {
|
|
908
908
|
const u = (a = b(), d = {
|
|
909
909
|
status: 0,
|
|
910
910
|
elementsScrollPositions: t,
|
|
911
911
|
shadowRootsController: e
|
|
912
912
|
}) => {
|
|
913
|
-
const { width: c, height: l } =
|
|
913
|
+
const { width: c, height: l } = Ct(), f = [
|
|
914
914
|
{
|
|
915
915
|
data: {
|
|
916
916
|
height: l,
|
|
@@ -929,7 +929,7 @@ function De(t, e, n, o, s, r) {
|
|
|
929
929
|
},
|
|
930
930
|
{
|
|
931
931
|
data: {
|
|
932
|
-
node:
|
|
932
|
+
node: ce(document, o, d),
|
|
933
933
|
initialOffset: {
|
|
934
934
|
left: Q(),
|
|
935
935
|
top: Z()
|
|
@@ -957,7 +957,7 @@ function De(t, e, n, o, s, r) {
|
|
|
957
957
|
stop: i
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function Ve() {
|
|
961
961
|
const t = /* @__PURE__ */ new WeakMap();
|
|
962
962
|
let e = 1;
|
|
963
963
|
return {
|
|
@@ -966,31 +966,31 @@ function Ae() {
|
|
|
966
966
|
}
|
|
967
967
|
};
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function Pe(t) {
|
|
970
970
|
const { emit: e, configuration: n, lifeCycle: o } = t;
|
|
971
971
|
if (!e)
|
|
972
972
|
throw new Error("emit function is required");
|
|
973
973
|
const s = (f) => {
|
|
974
|
-
e(f),
|
|
974
|
+
e(f), _t("record", { record: f });
|
|
975
975
|
const p = t.viewHistory.findView();
|
|
976
|
-
|
|
977
|
-
}, r =
|
|
976
|
+
bt(p.id);
|
|
977
|
+
}, r = De(), u = Ae(n, s, r), { stop: i } = Oe(r, u, o, n, a, (f) => f.forEach((p) => s(p)));
|
|
978
978
|
function a() {
|
|
979
979
|
u.flush(), c.flush();
|
|
980
980
|
}
|
|
981
|
-
const d =
|
|
981
|
+
const d = Ve(), c = ct(s, n, u, document), l = [
|
|
982
982
|
c,
|
|
983
|
-
|
|
984
|
-
|
|
983
|
+
pe(n, s),
|
|
984
|
+
he(n, s, d),
|
|
985
985
|
at(n, s, r, document),
|
|
986
|
-
me(n, s),
|
|
987
|
-
ut(n, s),
|
|
988
986
|
ge(n, s),
|
|
989
|
-
|
|
987
|
+
ut(n, s),
|
|
990
988
|
ye(n, s),
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
989
|
+
Te(s),
|
|
990
|
+
Ne(n, s),
|
|
991
|
+
Ee(n, s),
|
|
992
|
+
ve(o, s, d),
|
|
993
|
+
we(o, (f) => {
|
|
994
994
|
a(), s(f);
|
|
995
995
|
})
|
|
996
996
|
];
|
|
@@ -1002,7 +1002,7 @@ function Oe(t) {
|
|
|
1002
1002
|
shadowRootsController: u
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function ke(t, e, n) {
|
|
1006
1006
|
const o = new FormData();
|
|
1007
1007
|
o.append("segment", new Blob([t], {
|
|
1008
1008
|
type: "application/octet-stream"
|
|
@@ -1014,7 +1014,7 @@ function Ve(t, e, n) {
|
|
|
1014
1014
|
}, r = JSON.stringify(s);
|
|
1015
1015
|
return o.append("event", new Blob([r], { type: "application/json" })), { data: o, bytesCount: t.byteLength };
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function ze({ context: t, creationReason: e, encoder: n }) {
|
|
1018
1018
|
let o = 0;
|
|
1019
1019
|
const s = t.view.id, r = {
|
|
1020
1020
|
start: 1 / 0,
|
|
@@ -1022,11 +1022,11 @@ function Pe({ context: t, creationReason: e, encoder: n }) {
|
|
|
1022
1022
|
creation_reason: e,
|
|
1023
1023
|
records_count: 0,
|
|
1024
1024
|
has_full_snapshot: !1,
|
|
1025
|
-
index_in_view:
|
|
1025
|
+
index_in_view: Lt(s),
|
|
1026
1026
|
source: "browser",
|
|
1027
1027
|
...t
|
|
1028
1028
|
};
|
|
1029
|
-
|
|
1029
|
+
xt(s);
|
|
1030
1030
|
function u(a, d) {
|
|
1031
1031
|
r.start = Math.min(r.start, a.timestamp), r.end = Math.max(r.end, a.timestamp), r.records_count += 1, r.has_full_snapshot || (r.has_full_snapshot = a.type === y.FullSnapshot);
|
|
1032
1032
|
const c = n.isEmpty ? '{"records":[' : ",";
|
|
@@ -1039,17 +1039,17 @@ function Pe({ context: t, creationReason: e, encoder: n }) {
|
|
|
1039
1039
|
throw new Error("Empty segment flushed");
|
|
1040
1040
|
n.write(`],${JSON.stringify(r).slice(1)}
|
|
1041
1041
|
`), n.finish((d) => {
|
|
1042
|
-
|
|
1042
|
+
Dt(r.view.id, d.rawBytesCount), a(r, d);
|
|
1043
1043
|
});
|
|
1044
1044
|
}
|
|
1045
1045
|
return { addRecord: u, flush: i };
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1047
|
+
const Fe = 5 * Pt;
|
|
1048
1048
|
let dt = 6e4;
|
|
1049
|
-
function
|
|
1050
|
-
return
|
|
1049
|
+
function Be(t, e, n, o, s, r) {
|
|
1050
|
+
return Ue(t, () => He(e.applicationId, n, o), s, r);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function Ue(t, e, n, o) {
|
|
1053
1053
|
let s = {
|
|
1054
1054
|
status: 0,
|
|
1055
1055
|
nextSegmentCreationReason: "init"
|
|
@@ -1061,9 +1061,9 @@ function Fe(t, e, n, o) {
|
|
|
1061
1061
|
});
|
|
1062
1062
|
function i(a) {
|
|
1063
1063
|
s.status === 1 && (s.segment.flush((d, c) => {
|
|
1064
|
-
const l =
|
|
1065
|
-
|
|
1066
|
-
}),
|
|
1064
|
+
const l = ke(c.output, d, c.rawBytesCount);
|
|
1065
|
+
At(a) ? n.sendOnExit(l) : n.send(l);
|
|
1066
|
+
}), Ot(s.expirationTimeoutId)), a !== "stop" ? s = {
|
|
1067
1067
|
status: 0,
|
|
1068
1068
|
nextSegmentCreationReason: a
|
|
1069
1069
|
} : s = {
|
|
@@ -1079,10 +1079,10 @@ function Fe(t, e, n, o) {
|
|
|
1079
1079
|
return;
|
|
1080
1080
|
s = {
|
|
1081
1081
|
status: 1,
|
|
1082
|
-
segment:
|
|
1083
|
-
expirationTimeoutId:
|
|
1082
|
+
segment: ze({ encoder: o, context: d, creationReason: s.nextSegmentCreationReason }),
|
|
1083
|
+
expirationTimeoutId: Vt(() => {
|
|
1084
1084
|
i("segment_duration_limit");
|
|
1085
|
-
},
|
|
1085
|
+
}, Fe)
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
1088
|
s.segment.addRecord(a, (d) => {
|
|
@@ -1095,7 +1095,7 @@ function Fe(t, e, n, o) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function He(t, e, n) {
|
|
1099
1099
|
const o = e.findTrackedSession(), s = n.findView();
|
|
1100
1100
|
if (!(!o || !s))
|
|
1101
1101
|
return {
|
|
@@ -1110,8 +1110,8 @@ function Be(t, e, n) {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
const e =
|
|
1113
|
+
function Ge(t) {
|
|
1114
|
+
const e = kt();
|
|
1115
1115
|
return {
|
|
1116
1116
|
addRecord: (n) => {
|
|
1117
1117
|
const o = t.findView();
|
|
@@ -1119,18 +1119,18 @@ function Ue(t) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function $e(t, e, n, o, s, r) {
|
|
1123
1123
|
const u = [], i = (l) => {
|
|
1124
|
-
t.notify(14, { error: l }),
|
|
1125
|
-
}, a = r ||
|
|
1124
|
+
t.notify(14, { error: l }), J("Error reported to customer", { "error.message": l.message });
|
|
1125
|
+
}, a = r || zt(e.sessionReplayEndpointBuilder, dt, i);
|
|
1126
1126
|
let d;
|
|
1127
|
-
if (
|
|
1128
|
-
({ addRecord: d } =
|
|
1127
|
+
if (Ft())
|
|
1128
|
+
({ addRecord: d } = Ge(o));
|
|
1129
1129
|
else {
|
|
1130
|
-
const l =
|
|
1130
|
+
const l = Be(t, e, n, o, a, s);
|
|
1131
1131
|
d = l.addRecord, u.push(l.stop);
|
|
1132
1132
|
}
|
|
1133
|
-
const { stop: c } =
|
|
1133
|
+
const { stop: c } = Pe({
|
|
1134
1134
|
emit: d,
|
|
1135
1135
|
configuration: e,
|
|
1136
1136
|
lifeCycle: t,
|
|
@@ -1143,6 +1143,6 @@ function Ge(t, e, n, o, s, r) {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
}
|
|
1145
1145
|
export {
|
|
1146
|
-
|
|
1146
|
+
$e as startRecording
|
|
1147
1147
|
};
|
|
1148
|
-
//# sourceMappingURL=startRecording.
|
|
1148
|
+
//# sourceMappingURL=startRecording.9HOm2aS0.js.map
|