aibox-web-tracing 0.0.1 → 0.0.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.
Files changed (3) hide show
  1. package/es/index.mjs +715 -722
  2. package/lib/index.js +8 -8
  3. package/package.json +6 -6
package/es/index.mjs CHANGED
@@ -3,17 +3,17 @@ import { record as Qt } from "rrweb";
3
3
  import xt from "pako";
4
4
  import { Base64 as Ae } from "js-base64";
5
5
  function ee(e) {
6
- return function(t) {
7
- return Object.prototype.toString.call(t) === `[object ${e}]`;
6
+ return function(n) {
7
+ return Object.prototype.toString.call(n) === `[object ${e}]`;
8
8
  };
9
9
  }
10
10
  const et = ee("RegExp"), Kt = ee("Number"), en = ee("String"), tn = ee("Boolean"), nn = ee("Function"), Te = ee("Array"), rn = ee("Window"), Ce = (e) => tn(e) && String(e) === "false";
11
11
  function on(e) {
12
12
  return en(e) && e.trim() === "" || e === void 0 || e === null;
13
13
  }
14
- const an = rn(typeof window < "u" ? window : 0), sn = !!window?.process?.versions?.electron, je = typeof navigator < "u" && navigator.userAgent.includes("jsdom") || typeof window < "u" && window.jsdom;
14
+ const an = rn(typeof window < "u" ? window : 0), sn = !!window?.process?.versions?.electron, Ue = typeof navigator < "u" && navigator.userAgent.includes("jsdom") || typeof window < "u" && window.jsdom;
15
15
  function Nt() {
16
- return an || sn || je ? window : {};
16
+ return an || sn || Ue ? window : {};
17
17
  }
18
18
  function cn() {
19
19
  return p.__webTracing__ = p.__webTracing__ || {}, p.__webTracing__;
@@ -28,19 +28,19 @@ function ae(...e) {
28
28
  function se(...e) {
29
29
  console.error("@web-tracing: ", ...e);
30
30
  }
31
- function D(e, t, n, r = !1) {
32
- e.addEventListener(t, n, r);
31
+ function D(e, n, t, r = !1) {
32
+ e.addEventListener(n, t, r);
33
33
  }
34
- function de(e, t, n, r = !1) {
35
- if (e !== void 0 && (t in e || r)) {
36
- const o = e[t], a = n(o);
37
- nn(a) && (e[t] = a);
34
+ function de(e, n, t, r = !1) {
35
+ if (e !== void 0 && (n in e || r)) {
36
+ const o = e[n], a = t(o);
37
+ nn(a) && (e[n] = a);
38
38
  }
39
39
  }
40
40
  function ce(e) {
41
- return Object.keys(e).forEach((t) => {
42
- const n = e[t];
43
- Kt(n) && (e[t] = n === 0 ? void 0 : parseFloat(n.toFixed(2)));
41
+ return Object.keys(e).forEach((n) => {
42
+ const t = e[n];
43
+ Kt(t) && (e[n] = t === 0 ? void 0 : parseFloat(t.toFixed(2)));
44
44
  }), e;
45
45
  }
46
46
  function F() {
@@ -49,37 +49,37 @@ function F() {
49
49
  function R() {
50
50
  return Date.now();
51
51
  }
52
- function Ft(e, t, n = !1) {
52
+ function Ft(e, n, t = !1) {
53
53
  let r = null, o;
54
- return function(a, ...s) {
55
- o = s, r === null && (n && e.apply(this, o), r = setTimeout(() => {
54
+ return function(...a) {
55
+ o = a, r === null && (t && e.apply(this, o), r = setTimeout(() => {
56
56
  r = null, e.apply(this, o);
57
- }, t));
57
+ }, n));
58
58
  };
59
59
  }
60
- function ln(e, t, n = !1) {
60
+ function ln(e, n, t = !1) {
61
61
  let r = null;
62
- return function(o, ...a) {
63
- n && (e.call(this, ...a), n = !1), r && clearTimeout(r), r = setTimeout(() => {
64
- e.call(this, ...a);
65
- }, t);
62
+ return function(...o) {
63
+ t && (e.call(this, ...o), t = !1), r && clearTimeout(r), r = setTimeout(() => {
64
+ e.call(this, ...o);
65
+ }, n);
66
66
  };
67
67
  }
68
- function Oe(e, ...t) {
69
- const n = /* @__PURE__ */ new Map();
68
+ function Oe(e, ...n) {
69
+ const t = /* @__PURE__ */ new Map();
70
70
  for (const r of e) {
71
- const o = t.filter((a) => r[a]).map((a) => r[a]).join(":");
72
- n.has(o) || n.set(o, []), n.get(o).push(r);
73
- }
74
- return Array.from(n.values());
75
- }
76
- function Ie(e, ...t) {
77
- return t.forEach((n) => {
78
- for (const r in n)
79
- n[r] !== null && et(n[r]) ? e[r] = n[r] : n[r] !== null && typeof n[r] == "object" ? e[r] = Ie(
80
- e[r] || (Te(n[r]) ? [] : {}),
81
- n[r]
82
- ) : e[r] = n[r];
71
+ const o = n.filter((a) => r[a]).map((a) => r[a]).join(":");
72
+ t.has(o) || t.set(o, []), t.get(o).push(r);
73
+ }
74
+ return Array.from(t.values());
75
+ }
76
+ function Ie(e, ...n) {
77
+ return n.forEach((t) => {
78
+ for (const r in t)
79
+ t[r] !== null && et(t[r]) ? e[r] = t[r] : t[r] !== null && typeof t[r] == "object" ? e[r] = Ie(
80
+ e[r] || (Te(t[r]) ? [] : {}),
81
+ t[r]
82
+ ) : e[r] = t[r];
83
83
  }), e;
84
84
  }
85
85
  function P(e) {
@@ -88,18 +88,18 @@ function P(e) {
88
88
  function ue(e) {
89
89
  return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
90
90
  }
91
- function fe(e, t) {
92
- return e in t;
91
+ function fe(e, n) {
92
+ return e in n;
93
93
  }
94
94
  function dn(e) {
95
95
  return Math.random() <= e;
96
96
  }
97
- function te(e, t, n = "0") {
97
+ function te(e, n, t = "0") {
98
98
  const r = String(e);
99
- if (r.length < t) {
99
+ if (r.length < n) {
100
100
  let o = r;
101
- for (let a = 0; a < t - r.length; a += 1)
102
- o = n + o;
101
+ for (let a = 0; a < n - r.length; a += 1)
102
+ o = t + o;
103
103
  return o;
104
104
  }
105
105
  return r;
@@ -108,46 +108,47 @@ function fn(e) {
108
108
  return e.split("?")[0];
109
109
  }
110
110
  function We() {
111
- const e = /* @__PURE__ */ new Date(), t = parseInt(
111
+ const e = /* @__PURE__ */ new Date(), n = parseInt(
112
112
  `${e.getFullYear()}${te(e.getMonth() + 1, 2)}${te(
113
113
  e.getDate(),
114
114
  2
115
115
  )}`,
116
116
  10
117
- ).toString(16), n = parseInt(
117
+ ).toString(16), t = parseInt(
118
118
  `${te(e.getHours(), 2)}${te(e.getMinutes(), 2)}${te(
119
119
  e.getSeconds(),
120
120
  2
121
121
  )}${te(e.getMilliseconds(), 3)}`,
122
122
  10
123
123
  ).toString(16);
124
- let r = t + n.length + n;
124
+ let r = n + t.length + t;
125
125
  for (; r.length < 32; )
126
126
  r += Math.floor(Math.random() * 16).toString(16);
127
127
  return `${r.slice(0, 8)}-${r.slice(8, 16)}-${r.slice(16)}`;
128
128
  }
129
129
  function tt(e) {
130
- const t = document.cookie.match(new RegExp(`${e}=([^;]+)(;|$)`));
131
- return t ? t[1] : void 0;
130
+ const n = document.cookie.match(new RegExp(`${e}=([^;]+)(;|$)`));
131
+ return n ? n[1] : void 0;
132
132
  }
133
- function hn(e, t) {
134
- return navigator.sendBeacon(e, JSON.stringify(t));
133
+ function hn(e, n) {
134
+ const t = new Blob([JSON.stringify(n)], { type: "application/json" });
135
+ return navigator.sendBeacon(e, t);
135
136
  }
136
137
  const we = [];
137
- function mn(e, t) {
138
- return new Promise((n) => {
138
+ function mn(e, n) {
139
+ return new Promise((t) => {
139
140
  const r = new Image();
140
- r.src = `${e}?v=${encodeURIComponent(JSON.stringify(t))}`, we.push(r), r.onload = () => {
141
- n();
141
+ r.src = `${e}?v=${encodeURIComponent(JSON.stringify(n))}`, we.push(r), r.onload = () => {
142
+ t();
142
143
  }, r.onerror = function() {
143
- n();
144
+ t();
144
145
  };
145
146
  });
146
147
  }
147
- function st(e, t, n = 5e3) {
148
+ function st(e, n, t = 5e3) {
148
149
  return new Promise((r, o) => {
149
150
  const a = new XMLHttpRequest();
150
- a.open("post", e), a.setRequestHeader("content-type", "application/json"), a.timeout = n, a.send(JSON.stringify(t)), a.onreadystatechange = function() {
151
+ a.open("post", e), a.setRequestHeader("content-type", "application/json"), a.timeout = t, a.send(JSON.stringify(n)), a.onreadystatechange = function() {
151
152
  a.readyState === 4 && (a.status >= 200 && a.status < 300 ? r() : o(new Error("@web-tracing XMLHttpRequest error: " + a.status)));
152
153
  }, a.ontimeout = function() {
153
154
  o(new Error("@web-tracing XMLHttpRequest timeout"));
@@ -156,66 +157,66 @@ function st(e, t, n = 5e3) {
156
157
  };
157
158
  });
158
159
  }
159
- function Ee(e, t, n) {
160
- if (e.length === 0) return n;
160
+ function Ee(e, n, t) {
161
+ if (e.length === 0) return t;
161
162
  let r;
162
163
  for (let o = 0; o < e.length; o++) {
163
164
  const a = e[o];
164
- o === 0 || t ? r = a(n) : r = a(r);
165
+ o === 0 || n ? r = a(t) : r = a(r);
165
166
  }
166
167
  return r;
167
168
  }
168
169
  function Pe(e) {
169
170
  return Te(e) ? e : [e];
170
171
  }
171
- const pn = Array.prototype.map || function(t) {
172
- const n = [];
172
+ const pn = Array.prototype.map || function(n) {
173
+ const t = [];
173
174
  for (let r = 0; r < this.length; r += 1)
174
- n.push(t(this[r], r, this));
175
- return n;
175
+ t.push(n(this[r], r, this));
176
+ return t;
176
177
  };
177
- function Mt(e, t) {
178
- return pn.call(e, t);
178
+ function Mt(e, n) {
179
+ return pn.call(e, n);
179
180
  }
180
- const vn = Array.prototype.filter || function(t, n) {
181
- const r = [];
182
- for (let o = 0; o < this.length; o += 1)
183
- n(this[o], o, this) && r.push(this[o]);
184
- return r;
181
+ const vn = Array.prototype.filter || function(n) {
182
+ const t = [];
183
+ for (let r = 0; r < this.length; r += 1)
184
+ n(this[r], r, this) && t.push(this[r]);
185
+ return t;
185
186
  };
186
- function gn(e, t) {
187
- return vn.call(e, t);
187
+ function gn(e, n) {
188
+ return vn.call(e, n);
188
189
  }
189
190
  const bn = window.requestIdleCallback || window.requestAnimationFrame || ((e) => setTimeout(e, 17));
190
- function ct(e, t) {
191
- const n = JSON.stringify(e);
192
- return new TextEncoder().encode(n).length / 1024 > t;
191
+ function ct(e, n) {
192
+ const t = JSON.stringify(e);
193
+ return new TextEncoder().encode(t).length / 1024 > n;
193
194
  }
194
195
  function Be(e) {
195
196
  if (!e) return {};
196
- const t = {}, n = e.split("?")[1];
197
- if (n) {
198
- const r = n.split("&");
197
+ const n = {}, t = e.split("?")[1];
198
+ if (t) {
199
+ const r = t.split("&");
199
200
  for (const o of r) {
200
201
  const [a, s] = o.split("=");
201
- t[decodeURIComponent(a)] = decodeURIComponent(s);
202
+ n[decodeURIComponent(a)] = decodeURIComponent(s);
202
203
  }
203
204
  }
204
- return t;
205
+ return n;
205
206
  }
206
- function Ze(e, t = /* @__PURE__ */ new Map()) {
207
+ function Ze(e, n = /* @__PURE__ */ new Map()) {
207
208
  if (e !== null && typeof e == "object") {
208
- let n = t.get(e);
209
- return n || (e instanceof Array ? (n = [], t.set(e, n), e.forEach((r, o) => {
210
- n[o] = Ze(r, t);
211
- })) : (n = {}, t.set(e, n), Object.keys(e).forEach((r) => {
212
- fe(r, e) && (n[r] = Ze(e[r], t));
213
- })), n);
209
+ let t = n.get(e);
210
+ return t || (e instanceof Array ? (t = [], n.set(e, t), e.forEach((r, o) => {
211
+ t[o] = Ze(r, n);
212
+ })) : (t = {}, n.set(e, t), Object.keys(e).forEach((r) => {
213
+ fe(r, e) && (t[r] = Ze(e[r], n));
214
+ })), t);
214
215
  }
215
216
  return e;
216
217
  }
217
- function B(e, t, n, r = !1) {
218
- e.removeEventListener(t, n, r);
218
+ function B(e, n, t, r = !1) {
219
+ e.removeEventListener(n, t, r);
219
220
  }
220
221
  class yn {
221
222
  dsn = "";
@@ -290,33 +291,33 @@ class yn {
290
291
  // 本地化存储溢出后的回调
291
292
  localizationOverFlow = () => {
292
293
  };
293
- constructor(t) {
294
- const n = this.transitionOptions(t);
295
- n.ignoreRequest.push(new RegExp(n.dsn)), Ie(this, n);
294
+ constructor(n) {
295
+ const t = this.transitionOptions(n);
296
+ t.ignoreRequest.push(new RegExp(t.dsn)), Ie(this, t);
296
297
  }
297
298
  /**
298
299
  * 对入参配置项进行转换
299
300
  */
300
- transitionOptions(t) {
301
- const n = Ie({}, this, t), { beforePushEventList: r, beforeSendData: o, afterSendData: a } = t, { pv: s, performance: c, error: i, event: u } = n;
302
- return typeof s == "boolean" && (n.pv = {
301
+ transitionOptions(n) {
302
+ const t = Ie({}, this, n), { beforePushEventList: r, beforeSendData: o, afterSendData: a } = n, { pv: s, performance: c, error: i, event: u } = t;
303
+ return typeof s == "boolean" && (t.pv = {
303
304
  core: s
304
- }), typeof c == "boolean" && (n.performance = {
305
+ }), typeof c == "boolean" && (t.performance = {
305
306
  core: c,
306
307
  firstResource: c,
307
308
  server: c
308
- }), typeof i == "boolean" && (n.error = {
309
+ }), typeof i == "boolean" && (t.error = {
309
310
  core: i,
310
311
  server: i
311
- }), typeof u == "boolean" && (n.event = {
312
+ }), typeof u == "boolean" && (t.event = {
312
313
  core: u
313
- }), r && (n.beforePushEventList = [r]), o && (n.beforeSendData = [o]), a && (n.afterSendData = [a]), t.timeout !== void 0 && (n.timeout = t.timeout), t.maxQueueLength !== void 0 && (n.maxQueueLength = t.maxQueueLength), t.checkRecoverInterval !== void 0 && (n.checkRecoverInterval = t.checkRecoverInterval), n;
314
+ }), r && (t.beforePushEventList = [r]), o && (t.beforeSendData = [o]), a && (t.afterSendData = [a]), n.timeout !== void 0 && (t.timeout = n.timeout), n.maxQueueLength !== void 0 && (t.maxQueueLength = n.maxQueueLength), n.checkRecoverInterval !== void 0 && (t.checkRecoverInterval = n.checkRecoverInterval), t;
314
315
  }
315
316
  }
316
317
  function En(e) {
317
318
  const {
318
- dsn: t,
319
- appName: n,
319
+ dsn: n,
320
+ appName: t,
320
321
  appCode: r,
321
322
  appVersion: o,
322
323
  userUuid: a,
@@ -333,7 +334,7 @@ function En(e) {
333
334
  ignoreErrors: m,
334
335
  ignoreRequest: k,
335
336
  scopeError: x,
336
- localization: j,
337
+ localization: U,
337
338
  sendTypeByXmlBody: q,
338
339
  // whiteScreen,
339
340
  beforePushEventList: ye,
@@ -355,8 +356,8 @@ function En(e) {
355
356
  E(l.core, "error.core", "boolean"),
356
357
  E(l.server, "error.server", "boolean")
357
358
  ) : z.push(E(l, "error", "boolean")), h && typeof h == "object" ? z.push(E(h.core, "event.core", "boolean")) : z.push(E(h, "event", "boolean")), [
358
- E(t, "dsn", "string"),
359
- E(n, "appName", "string"),
359
+ E(n, "dsn", "string"),
360
+ E(t, "appName", "string"),
360
361
  E(r, "appCode", "string"),
361
362
  E(o, "appVersion", "string"),
362
363
  E(a, "userUuid", "string"),
@@ -371,7 +372,7 @@ function En(e) {
371
372
  E(k, "ignoreRequest", "array"),
372
373
  lt(k, "ignoreRequest", ["string", "regexp"]),
373
374
  E(x, "scopeError", "boolean"),
374
- E(j, "localization", "boolean"),
375
+ E(U, "localization", "boolean"),
375
376
  E(q, "sendTypeByXmlBody", "boolean"),
376
377
  // validateOption(whiteScreen, 'whiteScreen', 'boolean'),
377
378
  E(ye, "beforePushEventList", "function"),
@@ -386,24 +387,24 @@ function Sn(e) {
386
387
  return [
387
388
  ut(e.appName, "appName"),
388
389
  ut(e.dsn, "dsn")
389
- ].every((n) => !!n);
390
+ ].every((t) => !!t);
390
391
  }
391
- function ut(e, t) {
392
- return on(e) ? (se(`【${t}】参数必填`), !1) : !0;
392
+ function ut(e, n) {
393
+ return on(e) ? (se(`【${n}】参数必填`), !1) : !0;
393
394
  }
394
- function E(e, t, n) {
395
- return !e || ue(e) === n ? !0 : (se(
396
- `TypeError:【${t}】期望传入${n}类型,目前是${ue(
395
+ function E(e, n, t) {
396
+ return !e || ue(e) === t ? !0 : (se(
397
+ `TypeError:【${n}】期望传入${t}类型,目前是${ue(
397
398
  e
398
399
  )}类型`
399
400
  ), !1);
400
401
  }
401
- function lt(e, t, n) {
402
+ function lt(e, n, t) {
402
403
  if (!e) return !0;
403
404
  let r = !0;
404
405
  return e.forEach((o) => {
405
- n.includes(ue(o)) || (se(
406
- `TypeError:【${t}】数组内的值期望传入${n.join(
406
+ t.includes(ue(o)) || (se(
407
+ `TypeError:【${n}】数组内的值期望传入${t.join(
407
408
  "|"
408
409
  )}类型,目前值${o}是${ue(o)}类型`
409
410
  ), r = !1);
@@ -413,7 +414,7 @@ let d;
413
414
  function Ln(e) {
414
415
  return !Sn(e) || !En(e) ? !1 : (d = qt(new yn(e)), C.options = d, !0);
415
416
  }
416
- const wn = "0.0.1", dt = "_webtracing_device_id", Ye = "_webtracing_session_id", Rn = 18e5, Ge = "_webtracing_localization_key", An = wn, f = {
417
+ const wn = "0.0.3", dt = "_webtracing_device_id", Ye = "_webtracing_session_id", Rn = 18e5, Ge = "_webtracing_localization_key", An = wn, f = {
417
418
  ERROR: "error",
418
419
  CONSOLEERROR: "consoleError",
419
420
  UNHANDLEDREJECTION: "unhandledrejection",
@@ -479,50 +480,50 @@ class kn {
479
480
  * 为目标类型事件添加回调
480
481
  * @param handler 需要被添加的类型以及回调函数
481
482
  */
482
- addEvent(t) {
483
- !this.handlers[t.type] && (this.handlers[t.type] = []), this._getCallbackIndex(t) === -1 && this.handlers[t.type]?.push(t.callback);
483
+ addEvent(n) {
484
+ !this.handlers[n.type] && (this.handlers[n.type] = []), this._getCallbackIndex(n) === -1 && this.handlers[n.type]?.push(n.callback);
484
485
  }
485
486
  /**
486
487
  * 为目标类型事件删除回调
487
488
  * @param handler 需要被删除的类型以及回调函数
488
489
  */
489
- delEvent(t) {
490
- const n = this._getCallbackIndex(t);
491
- n !== -1 && this.handlers[t.type]?.splice(n, 1);
490
+ delEvent(n) {
491
+ const t = this._getCallbackIndex(n);
492
+ t !== -1 && this.handlers[n.type]?.splice(t, 1);
492
493
  }
493
494
  /**
494
495
  * 为目标类型事件更改回调
495
496
  * @param handler 需要被更改的类型以及回调函数
496
497
  * @param newCallback 新的回调函数
497
498
  */
498
- changeEvent(t, n) {
499
- const r = this._getCallbackIndex(t);
500
- r !== -1 && this.handlers[t.type]?.splice(r, 1, n);
499
+ changeEvent(n, t) {
500
+ const r = this._getCallbackIndex(n);
501
+ r !== -1 && this.handlers[n.type]?.splice(r, 1, t);
501
502
  }
502
503
  /**
503
504
  * 获取目标类型事件所有的回调
504
505
  * @param type 事件类型
505
506
  */
506
- getEvent(t) {
507
- return this.handlers[t] || [];
507
+ getEvent(n) {
508
+ return this.handlers[n] || [];
508
509
  }
509
510
  /**
510
511
  * 执行目标类型事件所有的回调
511
512
  * @param type 事件类型
512
513
  * @param args 额外参数
513
514
  */
514
- runEvent(t, ...n) {
515
- this.getEvent(t).forEach((o) => {
516
- o(...n);
515
+ runEvent(n, ...t) {
516
+ this.getEvent(n).forEach((o) => {
517
+ o(...t);
517
518
  });
518
519
  }
519
520
  /**
520
521
  * 获取函数在 callback 列表中的位置
521
522
  */
522
- _getCallbackIndex(t) {
523
- if (this.handlers[t.type]) {
524
- const n = this.handlers[t.type];
525
- return n ? n.findIndex((r) => r === t.callback) : -1;
523
+ _getCallbackIndex(n) {
524
+ if (this.handlers[n.type]) {
525
+ const t = this.handlers[n.type];
526
+ return t ? t.findIndex((r) => r === n.callback) : -1;
526
527
  } else
527
528
  return -1;
528
529
  }
@@ -530,9 +531,9 @@ class kn {
530
531
  * 移除多个指定类型的事件监听
531
532
  * @param types 事件类型数组
532
533
  */
533
- removeEvents(t) {
534
- t.forEach((n) => {
535
- delete this.handlers[n];
534
+ removeEvents(n) {
535
+ n.forEach((t) => {
536
+ delete this.handlers[t];
536
537
  });
537
538
  }
538
539
  }
@@ -592,10 +593,10 @@ function Cn(e) {
592
593
  Xn(f.HASHCHANGE);
593
594
  break;
594
595
  case f.HISTORYPUSHSTATE:
595
- jn(f.HISTORYPUSHSTATE);
596
+ Un(f.HISTORYPUSHSTATE);
596
597
  break;
597
598
  case f.HISTORYREPLACESTATE:
598
- Un(f.HISTORYREPLACESTATE);
599
+ jn(f.HISTORYREPLACESTATE);
599
600
  break;
600
601
  case f.POPSTATE:
601
602
  Wn(f.POPSTATE);
@@ -609,90 +610,90 @@ function Cn(e) {
609
610
  }
610
611
  }
611
612
  function On(e) {
612
- const t = function(n) {
613
- b.runEvent(e, n);
613
+ const n = function(t) {
614
+ b.runEvent(e, t);
614
615
  };
615
- w.error = t, D(p, "error", t, !0);
616
+ w.error = n, D(p, "error", n, !0);
616
617
  }
617
618
  function Pn(e) {
618
- const t = function(n) {
619
- b.runEvent(e, n);
619
+ const n = function(t) {
620
+ b.runEvent(e, t);
620
621
  };
621
- w.unhandledrejection = t, D(p, "unhandledrejection", t);
622
+ w.unhandledrejection = n, D(p, "unhandledrejection", n);
622
623
  }
623
624
  function xn(e) {
624
- A.consoleError = console.error, de(console, "error", (t) => function(n, ...r) {
625
- r[0] && r[0].slice && r[0].slice(0, 12) === "@web-tracing" || b.runEvent(e, r), t.apply(this, r);
625
+ A.consoleError = console.error, de(console, "error", (n) => function(...t) {
626
+ t[0] && t[0].slice && t[0].slice(0, 12) === "@web-tracing" || b.runEvent(e, t), n.apply(this, t);
626
627
  });
627
628
  }
628
629
  function Nn(e) {
629
630
  if (!("document" in p)) return;
630
- const t = Ft(b.runEvent, 100, !0), n = function(r, o) {
631
- t.call(b, e, o);
631
+ const n = Ft(b.runEvent, 100, !0), t = function(r) {
632
+ n.call(b, e, r);
632
633
  };
633
- w.click = n, D(p.document, "click", n, !0);
634
+ w.click = t, D(p.document, "click", t, !0);
634
635
  }
635
636
  function Fn(e) {
636
- const t = function(n) {
637
- b.runEvent(e, n);
637
+ const n = function(t) {
638
+ b.runEvent(e, t);
638
639
  };
639
- w.load = t, D(p, "load", t, !0);
640
+ w.load = n, D(p, "load", n, !0);
640
641
  }
641
642
  function Mn(e) {
642
- const t = function(n) {
643
- b.runEvent(e, n);
643
+ const n = function(t) {
644
+ b.runEvent(e, t);
644
645
  };
645
- w.beforeunload = t, D(p, "beforeunload", t, !1);
646
+ w.beforeunload = n, D(p, "beforeunload", n, !1);
646
647
  }
647
648
  function Vn(e) {
648
- "XMLHttpRequest" in p && (A.xhrOpen = XMLHttpRequest.prototype.open, de(XMLHttpRequest.prototype, "open", (t) => function(n, ...r) {
649
- b.runEvent(e, ...r), t.apply(this, r);
649
+ "XMLHttpRequest" in p && (A.xhrOpen = XMLHttpRequest.prototype.open, de(XMLHttpRequest.prototype, "open", (n) => function(...t) {
650
+ b.runEvent(e, ...t), n.apply(this, t);
650
651
  }));
651
652
  }
652
653
  function Hn(e) {
653
- "XMLHttpRequest" in p && (A.xhrSend = XMLHttpRequest.prototype.send, de(XMLHttpRequest.prototype, "send", (t) => function(n, ...r) {
654
- b.runEvent(e, this, ...r), t.apply(this, r);
654
+ "XMLHttpRequest" in p && (A.xhrSend = XMLHttpRequest.prototype.send, de(XMLHttpRequest.prototype, "send", (n) => function(...t) {
655
+ b.runEvent(e, this, ...t), n.apply(this, t);
655
656
  }));
656
657
  }
657
658
  function Dn(e) {
658
- "fetch" in p && (A.fetch = p.fetch, de(p, "fetch", (t) => function(n, ...r) {
659
- const o = R(), a = {};
660
- return t.apply(p, r).then((s) => (b.runEvent(e, r[0], r[1], s, o, a), s));
659
+ "fetch" in p && (A.fetch = p.fetch, de(p, "fetch", (n) => function(...t) {
660
+ const r = R(), o = {};
661
+ return n.apply(p, t).then((a) => (b.runEvent(e, t[0], t[1], a, r, o), a));
661
662
  }));
662
663
  }
663
664
  function Xn(e) {
664
- const t = function(n) {
665
- b.runEvent(e, n);
665
+ const n = function(t) {
666
+ b.runEvent(e, t);
666
667
  };
667
- w.hashchange = t, D(p, "hashchange", t);
668
+ w.hashchange = n, D(p, "hashchange", n);
668
669
  }
669
- function Un(e) {
670
- A.historyReplaceState = history.replaceState, de(history, "replaceState", (t) => function(n, ...r) {
671
- b.runEvent(e, ...r), t.apply(this, r);
670
+ function jn(e) {
671
+ A.historyReplaceState = history.replaceState, de(history, "replaceState", (n) => function(...t) {
672
+ b.runEvent(e, ...t), n.apply(this, t);
672
673
  });
673
674
  }
674
- function jn(e) {
675
- A.historyPushState = history.pushState, de(history, "pushState", (t) => function(n, ...r) {
676
- b.runEvent(e, ...r), t.apply(this, r);
675
+ function Un(e) {
676
+ A.historyPushState = history.pushState, de(history, "pushState", (n) => function(...t) {
677
+ b.runEvent(e, ...t), n.apply(this, t);
677
678
  });
678
679
  }
679
680
  function Wn(e) {
680
- const t = function(n) {
681
- b.runEvent(e, n);
681
+ const n = function(t) {
682
+ b.runEvent(e, t);
682
683
  };
683
- w.popstate = t, D(p, "popstate", t);
684
+ w.popstate = n, D(p, "popstate", n);
684
685
  }
685
686
  function Bn(e) {
686
- const t = function(n) {
687
- b.runEvent(e, n);
687
+ const n = function(t) {
688
+ b.runEvent(e, t);
688
689
  };
689
- w.offline = t, D(p, "offline", t);
690
+ w.offline = n, D(p, "offline", n);
690
691
  }
691
692
  function Zn(e) {
692
- const t = function(n) {
693
- b.runEvent(e, n);
693
+ const n = function(t) {
694
+ b.runEvent(e, t);
694
695
  };
695
- w.offline = t, D(p, "offline", t);
696
+ w.offline = n, D(p, "offline", n);
696
697
  }
697
698
  function Yn() {
698
699
  A.consoleError && console.error !== A.consoleError && (console.error = A.consoleError), A.xhrOpen && XMLHttpRequest.prototype.open !== A.xhrOpen && (XMLHttpRequest.prototype.open = A.xhrOpen), A.xhrSend && XMLHttpRequest.prototype.send !== A.xhrSend && (XMLHttpRequest.prototype.send = A.xhrSend), A.fetch && p.fetch !== A.fetch && (p.fetch = A.fetch), A.historyPushState && history.pushState !== A.historyPushState && (history.pushState = A.historyPushState), A.historyReplaceState && history.replaceState !== A.historyReplaceState && (history.replaceState = A.historyReplaceState), w.error && B(p, "error", w.error, !0), w.unhandledrejection && B(p, "unhandledrejection", w.unhandledrejection), w.click && B(p.document, "click", w.click, !0), w.load && B(p, "load", w.load, !0), w.beforeunload && B(p, "beforeunload", w.beforeunload, !1), w.hashchange && B(p, "hashchange", w.hashchange), w.popstate && B(p, "popstate", w.popstate), w.offline && B(p, "offline", w.offline), w.online && B(p, "online", w.online), Object.keys(A).forEach((e) => {
@@ -703,14 +704,14 @@ function Yn() {
703
704
  }
704
705
  let _e = function() {
705
706
  return _e = Object.assign || function(e) {
706
- for (var t, n = 1, r = arguments.length; n < r; n++)
707
- for (const o in t = arguments[n])
708
- Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
707
+ for (var n, t = 1, r = arguments.length; t < r; t++)
708
+ for (const o in n = arguments[t])
709
+ Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
709
710
  return e;
710
711
  }, _e.apply(this, arguments);
711
712
  };
712
- function G(e, t, n, r) {
713
- return new (n || (n = Promise))(function(o, a) {
713
+ function G(e, n, t, r) {
714
+ return new (t || (t = Promise))(function(o, a) {
714
715
  function s(u) {
715
716
  try {
716
717
  i(r.next(u));
@@ -727,15 +728,15 @@ function G(e, t, n, r) {
727
728
  }
728
729
  function i(u) {
729
730
  let l;
730
- u.done ? o(u.value) : (l = u.value, l instanceof n ? l : new n(function(h) {
731
+ u.done ? o(u.value) : (l = u.value, l instanceof t ? l : new t(function(h) {
731
732
  h(l);
732
733
  })).then(s, c);
733
734
  }
734
735
  i((r = r.apply(e, [])).next());
735
736
  });
736
737
  }
737
- function W(e, t) {
738
- let n, r, o, a, s = {
738
+ function W(e, n) {
739
+ let t, r, o, a, s = {
739
740
  label: 0,
740
741
  sent: function() {
741
742
  if (1 & o[0]) throw o[1];
@@ -750,10 +751,10 @@ function W(e, t) {
750
751
  function c(i) {
751
752
  return function(u) {
752
753
  return (function(l) {
753
- if (n) throw new TypeError("Generator is already executing.");
754
+ if (t) throw new TypeError("Generator is already executing.");
754
755
  for (; a && (a = 0, l[0] && (s = 0)), s; )
755
756
  try {
756
- if (n = 1, r && (o = 2 & l[0] ? r.return : l[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, l[1])).done)
757
+ if (t = 1, r && (o = 2 & l[0] ? r.return : l[0] ? r.throw || ((o = r.return) && o.call(r), 0) : r.next) && !(o = o.call(r, l[1])).done)
757
758
  return o;
758
759
  switch (r = 0, o && (l = [2 & l[0], o.value]), l[0]) {
759
760
  case 0:
@@ -788,11 +789,11 @@ function W(e, t) {
788
789
  o[2] && s.ops.pop(), s.trys.pop();
789
790
  continue;
790
791
  }
791
- l = t.call(e, s);
792
+ l = n.call(e, s);
792
793
  } catch (h) {
793
794
  l = [6, h], r = 0;
794
795
  } finally {
795
- n = o = 0;
796
+ t = o = 0;
796
797
  }
797
798
  if (5 & l[0]) throw l[1];
798
799
  return { value: l[0] ? l[1] : void 0, done: !0 };
@@ -800,44 +801,44 @@ function W(e, t) {
800
801
  };
801
802
  }
802
803
  }
803
- function ie(e, t, n) {
804
- if (n || arguments.length === 2)
805
- for (var r, o = 0, a = t.length; o < a; o++)
806
- !r && o in t || (r || (r = Array.prototype.slice.call(t, 0, o)), r[o] = t[o]);
807
- return e.concat(r || Array.prototype.slice.call(t));
804
+ function ie(e, n, t) {
805
+ if (t || arguments.length === 2)
806
+ for (var r, o = 0, a = n.length; o < a; o++)
807
+ !r && o in n || (r || (r = Array.prototype.slice.call(n, 0, o)), r[o] = n[o]);
808
+ return e.concat(r || Array.prototype.slice.call(n));
808
809
  }
809
- function Y(e, t) {
810
- return new Promise(function(n) {
811
- return setTimeout(n, e, t);
810
+ function Y(e, n) {
811
+ return new Promise(function(t) {
812
+ return setTimeout(t, e, n);
812
813
  });
813
814
  }
814
815
  function Vt(e) {
815
816
  return !!e && typeof e.then == "function";
816
817
  }
817
- function ft(e, t) {
818
+ function ft(e, n) {
818
819
  try {
819
- const n = e();
820
- Vt(n) ? n.then(
820
+ const t = e();
821
+ Vt(t) ? t.then(
821
822
  function(r) {
822
- return t(!0, r);
823
+ return n(!0, r);
823
824
  },
824
825
  function(r) {
825
- return t(!1, r);
826
+ return n(!1, r);
826
827
  }
827
- ) : t(!0, n);
828
- } catch (n) {
829
- t(!1, n);
828
+ ) : n(!0, t);
829
+ } catch (t) {
830
+ n(!1, t);
830
831
  }
831
832
  }
832
- function ht(e, t, n) {
833
- return n === void 0 && (n = 16), G(this, void 0, void 0, function() {
833
+ function ht(e, n, t) {
834
+ return t === void 0 && (t = 16), G(this, void 0, void 0, function() {
834
835
  let r, o, a;
835
836
  return W(this, function(s) {
836
837
  switch (s.label) {
837
838
  case 0:
838
839
  r = Date.now(), o = 0, s.label = 1;
839
840
  case 1:
840
- return o < e.length ? (t(e[o], o), (a = Date.now()) >= r + n ? (r = a, [4, Y(0)]) : [3, 3]) : [3, 4];
841
+ return o < e.length ? (n(e[o], o), (a = Date.now()) >= r + t ? (r = a, [4, Y(0)]) : [3, 3]) : [3, 4];
841
842
  case 2:
842
843
  s.sent(), s.label = 3;
843
844
  case 3:
@@ -852,70 +853,70 @@ function ke(e) {
852
853
  e.then(void 0, function() {
853
854
  });
854
855
  }
855
- function J(e, t) {
856
- e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]], t = [t[0] >>> 16, 65535 & t[0], t[1] >>> 16, 65535 & t[1]];
857
- const n = [0, 0, 0, 0];
858
- return n[3] += e[3] + t[3], n[2] += n[3] >>> 16, n[3] &= 65535, n[2] += e[2] + t[2], n[1] += n[2] >>> 16, n[2] &= 65535, n[1] += e[1] + t[1], n[0] += n[1] >>> 16, n[1] &= 65535, n[0] += e[0] + t[0], n[0] &= 65535, [n[0] << 16 | n[1], n[2] << 16 | n[3]];
856
+ function J(e, n) {
857
+ e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]], n = [n[0] >>> 16, 65535 & n[0], n[1] >>> 16, 65535 & n[1]];
858
+ const t = [0, 0, 0, 0];
859
+ return t[3] += e[3] + n[3], t[2] += t[3] >>> 16, t[3] &= 65535, t[2] += e[2] + n[2], t[1] += t[2] >>> 16, t[2] &= 65535, t[1] += e[1] + n[1], t[0] += t[1] >>> 16, t[1] &= 65535, t[0] += e[0] + n[0], t[0] &= 65535, [t[0] << 16 | t[1], t[2] << 16 | t[3]];
859
860
  }
860
- function H(e, t) {
861
- e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]], t = [t[0] >>> 16, 65535 & t[0], t[1] >>> 16, 65535 & t[1]];
862
- const n = [0, 0, 0, 0];
863
- return n[3] += e[3] * t[3], n[2] += n[3] >>> 16, n[3] &= 65535, n[2] += e[2] * t[3], n[1] += n[2] >>> 16, n[2] &= 65535, n[2] += e[3] * t[2], n[1] += n[2] >>> 16, n[2] &= 65535, n[1] += e[1] * t[3], n[0] += n[1] >>> 16, n[1] &= 65535, n[1] += e[2] * t[2], n[0] += n[1] >>> 16, n[1] &= 65535, n[1] += e[3] * t[1], n[0] += n[1] >>> 16, n[1] &= 65535, n[0] += e[0] * t[3] + e[1] * t[2] + e[2] * t[1] + e[3] * t[0], n[0] &= 65535, [n[0] << 16 | n[1], n[2] << 16 | n[3]];
861
+ function H(e, n) {
862
+ e = [e[0] >>> 16, 65535 & e[0], e[1] >>> 16, 65535 & e[1]], n = [n[0] >>> 16, 65535 & n[0], n[1] >>> 16, 65535 & n[1]];
863
+ const t = [0, 0, 0, 0];
864
+ return t[3] += e[3] * n[3], t[2] += t[3] >>> 16, t[3] &= 65535, t[2] += e[2] * n[3], t[1] += t[2] >>> 16, t[2] &= 65535, t[2] += e[3] * n[2], t[1] += t[2] >>> 16, t[2] &= 65535, t[1] += e[1] * n[3], t[0] += t[1] >>> 16, t[1] &= 65535, t[1] += e[2] * n[2], t[0] += t[1] >>> 16, t[1] &= 65535, t[1] += e[3] * n[1], t[0] += t[1] >>> 16, t[1] &= 65535, t[0] += e[0] * n[3] + e[1] * n[2] + e[2] * n[1] + e[3] * n[0], t[0] &= 65535, [t[0] << 16 | t[1], t[2] << 16 | t[3]];
864
865
  }
865
- function ne(e, t) {
866
- return (t %= 64) === 32 ? [e[1], e[0]] : t < 32 ? [e[0] << t | e[1] >>> 32 - t, e[1] << t | e[0] >>> 32 - t] : (t -= 32, [e[1] << t | e[0] >>> 32 - t, e[0] << t | e[1] >>> 32 - t]);
866
+ function ne(e, n) {
867
+ return (n %= 64) === 32 ? [e[1], e[0]] : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n | e[0] >>> 32 - n] : (n -= 32, [e[1] << n | e[0] >>> 32 - n, e[0] << n | e[1] >>> 32 - n]);
867
868
  }
868
- function M(e, t) {
869
- return (t %= 64) === 0 ? e : t < 32 ? [e[0] << t | e[1] >>> 32 - t, e[1] << t] : [e[1] << t - 32, 0];
869
+ function M(e, n) {
870
+ return (n %= 64) === 0 ? e : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n] : [e[1] << n - 32, 0];
870
871
  }
871
- function I(e, t) {
872
- return [e[0] ^ t[0], e[1] ^ t[1]];
872
+ function I(e, n) {
873
+ return [e[0] ^ n[0], e[1] ^ n[1]];
873
874
  }
874
875
  function mt(e) {
875
876
  return e = I(e, [0, e[0] >>> 1]), e = I(e = H(e, [4283543511, 3981806797]), [0, e[0] >>> 1]), e = I(e = H(e, [3301882366, 444984403]), [0, e[0] >>> 1]);
876
877
  }
877
- function Gn(e, t) {
878
- t = t || 0;
879
- let n, r = (e = e || "").length % 16, o = e.length - r, a = [0, t], s = [0, t], c = [0, 0], i = [0, 0], u = [2277735313, 289559509], l = [1291169091, 658871167];
880
- for (n = 0; n < o; n += 16)
878
+ function Gn(e, n) {
879
+ n = n || 0;
880
+ let t, r = (e = e || "").length % 16, o = e.length - r, a = [0, n], s = [0, n], c = [0, 0], i = [0, 0], u = [2277735313, 289559509], l = [1291169091, 658871167];
881
+ for (t = 0; t < o; t += 16)
881
882
  c = [
882
- 255 & e.charCodeAt(n + 4) | (255 & e.charCodeAt(n + 5)) << 8 | (255 & e.charCodeAt(n + 6)) << 16 | (255 & e.charCodeAt(n + 7)) << 24,
883
- 255 & e.charCodeAt(n) | (255 & e.charCodeAt(n + 1)) << 8 | (255 & e.charCodeAt(n + 2)) << 16 | (255 & e.charCodeAt(n + 3)) << 24
883
+ 255 & e.charCodeAt(t + 4) | (255 & e.charCodeAt(t + 5)) << 8 | (255 & e.charCodeAt(t + 6)) << 16 | (255 & e.charCodeAt(t + 7)) << 24,
884
+ 255 & e.charCodeAt(t) | (255 & e.charCodeAt(t + 1)) << 8 | (255 & e.charCodeAt(t + 2)) << 16 | (255 & e.charCodeAt(t + 3)) << 24
884
885
  ], i = [
885
- 255 & e.charCodeAt(n + 12) | (255 & e.charCodeAt(n + 13)) << 8 | (255 & e.charCodeAt(n + 14)) << 16 | (255 & e.charCodeAt(n + 15)) << 24,
886
- 255 & e.charCodeAt(n + 8) | (255 & e.charCodeAt(n + 9)) << 8 | (255 & e.charCodeAt(n + 10)) << 16 | (255 & e.charCodeAt(n + 11)) << 24
886
+ 255 & e.charCodeAt(t + 12) | (255 & e.charCodeAt(t + 13)) << 8 | (255 & e.charCodeAt(t + 14)) << 16 | (255 & e.charCodeAt(t + 15)) << 24,
887
+ 255 & e.charCodeAt(t + 8) | (255 & e.charCodeAt(t + 9)) << 8 | (255 & e.charCodeAt(t + 10)) << 16 | (255 & e.charCodeAt(t + 11)) << 24
887
888
  ], c = ne(c = H(c, u), 31), a = J(a = ne(a = I(a, c = H(c, l)), 27), s), a = J(H(a, [0, 5]), [0, 1390208809]), i = ne(i = H(i, l), 33), s = J(s = ne(s = I(s, i = H(i, u)), 31), a), s = J(H(s, [0, 5]), [0, 944331445]);
888
889
  switch (c = [0, 0], i = [0, 0], r) {
889
890
  case 15:
890
- i = I(i, M([0, e.charCodeAt(n + 14)], 48));
891
+ i = I(i, M([0, e.charCodeAt(t + 14)], 48));
891
892
  case 14:
892
- i = I(i, M([0, e.charCodeAt(n + 13)], 40));
893
+ i = I(i, M([0, e.charCodeAt(t + 13)], 40));
893
894
  case 13:
894
- i = I(i, M([0, e.charCodeAt(n + 12)], 32));
895
+ i = I(i, M([0, e.charCodeAt(t + 12)], 32));
895
896
  case 12:
896
- i = I(i, M([0, e.charCodeAt(n + 11)], 24));
897
+ i = I(i, M([0, e.charCodeAt(t + 11)], 24));
897
898
  case 11:
898
- i = I(i, M([0, e.charCodeAt(n + 10)], 16));
899
+ i = I(i, M([0, e.charCodeAt(t + 10)], 16));
899
900
  case 10:
900
- i = I(i, M([0, e.charCodeAt(n + 9)], 8));
901
+ i = I(i, M([0, e.charCodeAt(t + 9)], 8));
901
902
  case 9:
902
- i = H(i = I(i, [0, e.charCodeAt(n + 8)]), l), s = I(s, i = H(i = ne(i, 33), u));
903
+ i = H(i = I(i, [0, e.charCodeAt(t + 8)]), l), s = I(s, i = H(i = ne(i, 33), u));
903
904
  case 8:
904
- c = I(c, M([0, e.charCodeAt(n + 7)], 56));
905
+ c = I(c, M([0, e.charCodeAt(t + 7)], 56));
905
906
  case 7:
906
- c = I(c, M([0, e.charCodeAt(n + 6)], 48));
907
+ c = I(c, M([0, e.charCodeAt(t + 6)], 48));
907
908
  case 6:
908
- c = I(c, M([0, e.charCodeAt(n + 5)], 40));
909
+ c = I(c, M([0, e.charCodeAt(t + 5)], 40));
909
910
  case 5:
910
- c = I(c, M([0, e.charCodeAt(n + 4)], 32));
911
+ c = I(c, M([0, e.charCodeAt(t + 4)], 32));
911
912
  case 4:
912
- c = I(c, M([0, e.charCodeAt(n + 3)], 24));
913
+ c = I(c, M([0, e.charCodeAt(t + 3)], 24));
913
914
  case 3:
914
- c = I(c, M([0, e.charCodeAt(n + 2)], 16));
915
+ c = I(c, M([0, e.charCodeAt(t + 2)], 16));
915
916
  case 2:
916
- c = I(c, M([0, e.charCodeAt(n + 1)], 8));
917
+ c = I(c, M([0, e.charCodeAt(t + 1)], 8));
917
918
  case 1:
918
- c = H(c = I(c, [0, e.charCodeAt(n)]), u), a = I(a, c = H(c = ne(c, 31), l));
919
+ c = H(c = I(c, [0, e.charCodeAt(t)]), u), a = I(a, c = H(c = ne(c, 31), l));
919
920
  }
920
921
  return a = J(a = I(a, [0, e.length]), s = I(s, [0, e.length])), s = J(s, a), a = J(a = mt(a), s = mt(s)), s = J(s, a), ("00000000" + (a[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (a[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (s[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (s[1] >>> 0).toString(16)).slice(-8);
921
922
  }
@@ -925,18 +926,18 @@ function xe(e) {
925
926
  function X(e) {
926
927
  return parseFloat(e);
927
928
  }
928
- function Z(e, t) {
929
- return typeof e == "number" && isNaN(e) ? t : e;
929
+ function Z(e, n) {
930
+ return typeof e == "number" && isNaN(e) ? n : e;
930
931
  }
931
- function U(e) {
932
- return e.reduce(function(t, n) {
933
- return t + (n ? 1 : 0);
932
+ function j(e) {
933
+ return e.reduce(function(n, t) {
934
+ return n + (t ? 1 : 0);
934
935
  }, 0);
935
936
  }
936
- function Ht(e, t) {
937
- if (t === void 0 && (t = 1), Math.abs(t) >= 1) return Math.round(e / t) * t;
938
- const n = 1 / t;
939
- return Math.round(e * n) / n;
937
+ function Ht(e, n) {
938
+ if (n === void 0 && (n = 1), Math.abs(n) >= 1) return Math.round(e / n) * n;
939
+ const t = 1 / n;
940
+ return Math.round(e * t) / t;
940
941
  }
941
942
  function pt(e) {
942
943
  return e && typeof e == "object" && "message" in e ? e : { message: e };
@@ -944,12 +945,12 @@ function pt(e) {
944
945
  function _n(e) {
945
946
  return typeof e != "function";
946
947
  }
947
- function zn(e, t, n) {
948
+ function zn(e, n, t) {
948
949
  const r = Object.keys(e).filter(function(a) {
949
950
  return !(function(s, c) {
950
951
  for (let i = 0, u = s.length; i < u; ++i) if (s[i] === c) return !0;
951
952
  return !1;
952
- })(n, a);
953
+ })(t, a);
953
954
  }), o = Array(r.length);
954
955
  return ht(r, function(a, s) {
955
956
  o[s] = (function(c, i) {
@@ -972,8 +973,8 @@ function zn(e, t, n) {
972
973
  return new Promise(function(m) {
973
974
  const k = Date.now();
974
975
  ft(y, function() {
975
- for (var x = [], j = 0; j < arguments.length; j++)
976
- x[j] = arguments[j];
976
+ for (var x = [], U = 0; U < arguments.length; U++)
977
+ x[U] = arguments[U];
977
978
  const q = S + Date.now() - k;
978
979
  if (!x[0]) return m({ error: pt(x[1]), duration: q });
979
980
  m({ value: x[1], duration: q });
@@ -987,7 +988,7 @@ function zn(e, t, n) {
987
988
  return l();
988
989
  });
989
990
  };
990
- })(e[a], t);
991
+ })(e[a], n);
991
992
  }), function() {
992
993
  return G(this, void 0, void 0, function() {
993
994
  let a, s, c, i, u, l;
@@ -1037,30 +1038,30 @@ function zn(e, t, n) {
1037
1038
  };
1038
1039
  }
1039
1040
  function Dt() {
1040
- const e = window, t = navigator;
1041
- return U([
1041
+ const e = window, n = navigator;
1042
+ return j([
1042
1043
  "MSCSSMatrix" in e,
1043
1044
  "msSetImmediate" in e,
1044
1045
  "msIndexedDB" in e,
1045
- "msMaxTouchPoints" in t,
1046
- "msPointerEnabled" in t
1046
+ "msMaxTouchPoints" in n,
1047
+ "msPointerEnabled" in n
1047
1048
  ]) >= 4;
1048
1049
  }
1049
1050
  function Jn() {
1050
- const e = window, t = navigator;
1051
- return U([
1051
+ const e = window, n = navigator;
1052
+ return j([
1052
1053
  "msWriteProfilerMark" in e,
1053
1054
  "MSStream" in e,
1054
- "msLaunchUri" in t,
1055
- "msSaveBlob" in t
1055
+ "msLaunchUri" in n,
1056
+ "msSaveBlob" in n
1056
1057
  ]) >= 3 && !Dt();
1057
1058
  }
1058
1059
  function ze() {
1059
- const e = window, t = navigator;
1060
- return U([
1061
- "webkitPersistentStorage" in t,
1062
- "webkitTemporaryStorage" in t,
1063
- t.vendor.indexOf("Google") === 0,
1060
+ const e = window, n = navigator;
1061
+ return j([
1062
+ "webkitPersistentStorage" in n,
1063
+ "webkitTemporaryStorage" in n,
1064
+ n.vendor.indexOf("Google") === 0,
1064
1065
  "webkitResolveLocalFileSystemURL" in e,
1065
1066
  "BatteryManager" in e,
1066
1067
  "webkitMediaStream" in e,
@@ -1068,19 +1069,19 @@ function ze() {
1068
1069
  ]) >= 5;
1069
1070
  }
1070
1071
  function me() {
1071
- const e = window, t = navigator;
1072
- return U([
1072
+ const e = window, n = navigator;
1073
+ return j([
1073
1074
  "ApplePayError" in e,
1074
1075
  "CSSPrimitiveValue" in e,
1075
1076
  "Counter" in e,
1076
- t.vendor.indexOf("Apple") === 0,
1077
- "getStorageUpdates" in t,
1077
+ n.vendor.indexOf("Apple") === 0,
1078
+ "getStorageUpdates" in n,
1078
1079
  "WebKitMediaKeys" in e
1079
1080
  ]) >= 4;
1080
1081
  }
1081
1082
  function Je() {
1082
1083
  const e = window;
1083
- return U([
1084
+ return j([
1084
1085
  "safari" in e,
1085
1086
  !("DeviceMotionEvent" in e),
1086
1087
  !("ongestureend" in e),
@@ -1088,14 +1089,14 @@ function Je() {
1088
1089
  ]) >= 3;
1089
1090
  }
1090
1091
  function qn() {
1091
- let e, t, n = window;
1092
- return U([
1092
+ let e, n, t = window;
1093
+ return j([
1093
1094
  "buildID" in navigator,
1094
- "MozAppearance" in ((t = (e = document.documentElement) === null || e === void 0 ? void 0 : e.style) !== null && t !== void 0 ? t : {}),
1095
- "onmozfullscreenchange" in n,
1096
- "mozInnerScreenX" in n,
1097
- "CSSMozDocumentRule" in n,
1098
- "CanvasCaptureMediaStream" in n
1095
+ "MozAppearance" in ((n = (e = document.documentElement) === null || e === void 0 ? void 0 : e.style) !== null && n !== void 0 ? n : {}),
1096
+ "onmozfullscreenchange" in t,
1097
+ "mozInnerScreenX" in t,
1098
+ "CSSMozDocumentRule" in t,
1099
+ "CanvasCaptureMediaStream" in t
1099
1100
  ]) >= 4;
1100
1101
  }
1101
1102
  function $n() {
@@ -1103,30 +1104,30 @@ function $n() {
1103
1104
  return e.fullscreenElement || e.msFullscreenElement || e.mozFullScreenElement || e.webkitFullscreenElement || null;
1104
1105
  }
1105
1106
  function Xt() {
1106
- const e = ze(), t = qn();
1107
- if (!e && !t) return !1;
1108
- const n = window;
1109
- return U([
1110
- "onorientationchange" in n,
1111
- "orientation" in n,
1112
- e && !("SharedWorker" in n),
1113
- t && /android/i.test(navigator.appVersion)
1107
+ const e = ze(), n = qn();
1108
+ if (!e && !n) return !1;
1109
+ const t = window;
1110
+ return j([
1111
+ "onorientationchange" in t,
1112
+ "orientation" in t,
1113
+ e && !("SharedWorker" in t),
1114
+ n && /android/i.test(navigator.appVersion)
1114
1115
  ]) >= 2;
1115
1116
  }
1116
1117
  function vt(e) {
1117
- const t = new Error(e);
1118
- return t.name = e, t;
1118
+ const n = new Error(e);
1119
+ return n.name = e, n;
1119
1120
  }
1120
- function gt(e, t, n) {
1121
+ function gt(e, n, t) {
1121
1122
  let r, o, a;
1122
- return n === void 0 && (n = 50), G(this, void 0, void 0, function() {
1123
+ return t === void 0 && (t = 50), G(this, void 0, void 0, function() {
1123
1124
  let s, c;
1124
1125
  return W(this, function(i) {
1125
1126
  switch (i.label) {
1126
1127
  case 0:
1127
1128
  s = document, i.label = 1;
1128
1129
  case 1:
1129
- return s.body ? [3, 3] : [4, Y(n)];
1130
+ return s.body ? [3, 3] : [4, Y(t)];
1130
1131
  case 2:
1131
1132
  return i.sent(), [3, 1];
1132
1133
  case 3:
@@ -1153,7 +1154,7 @@ function gt(e, t, n) {
1153
1154
  case 5:
1154
1155
  i.sent(), i.label = 6;
1155
1156
  case 6:
1156
- return !((o = (r = c.contentWindow) === null || r === void 0 ? void 0 : r.document) === null || o === void 0) && o.body ? [3, 8] : [4, Y(n)];
1157
+ return !((o = (r = c.contentWindow) === null || r === void 0 ? void 0 : r.document) === null || o === void 0) && o.body ? [3, 8] : [4, Y(t)];
1157
1158
  case 7:
1158
1159
  return i.sent(), [3, 6];
1159
1160
  case 8:
@@ -1169,7 +1170,7 @@ function gt(e, t, n) {
1169
1170
  });
1170
1171
  }
1171
1172
  function Qn(e) {
1172
- for (var t = (function(c) {
1173
+ for (var n = (function(c) {
1173
1174
  for (var i, u, l = "Unexpected syntax '".concat(c, "'"), h = /^\s*([a-z-]*)(.*)$/i.exec(c), v = h[1] || void 0, g = {}, S = /([.:#][\w-]+|\[.+?\])/gi, y = function(k, x) {
1174
1175
  g[k] = g[k] || [], g[k].push(x);
1175
1176
  }; ; ) {
@@ -1196,15 +1197,15 @@ function Qn(e) {
1196
1197
  }
1197
1198
  }
1198
1199
  return [v, g];
1199
- })(e), n = t[0], r = t[1], o = document.createElement(n ?? "div"), a = 0, s = Object.keys(r); a < s.length; a++) {
1200
+ })(e), t = n[0], r = n[1], o = document.createElement(t ?? "div"), a = 0, s = Object.keys(r); a < s.length; a++) {
1200
1201
  const c = s[a], i = r[c].join(" ");
1201
1202
  c === "style" ? Kn(o.style, i) : o.setAttribute(c, i);
1202
1203
  }
1203
1204
  return o;
1204
1205
  }
1205
- function Kn(e, t) {
1206
- for (let n = 0, r = t.split(";"); n < r.length; n++) {
1207
- const o = r[n], a = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);
1206
+ function Kn(e, n) {
1207
+ for (let t = 0, r = n.split(";"); t < r.length; t++) {
1208
+ const o = r[t], a = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);
1208
1209
  if (a) {
1209
1210
  const s = a[1], c = a[2], i = a[4];
1210
1211
  e.setProperty(s, c, i || "");
@@ -1273,26 +1274,26 @@ function er() {
1273
1274
  const e = this;
1274
1275
  return (function() {
1275
1276
  if (Fe === void 0) {
1276
- const t = function() {
1277
- const n = Me();
1278
- Ve(n) ? Fe = setTimeout(t, 2500) : (Se = n, Fe = void 0);
1277
+ const n = function() {
1278
+ const t = Me();
1279
+ Ve(t) ? Fe = setTimeout(n, 2500) : (Se = t, Fe = void 0);
1279
1280
  };
1280
- t();
1281
+ n();
1281
1282
  }
1282
1283
  })(), function() {
1283
1284
  return G(e, void 0, void 0, function() {
1284
- let t;
1285
- return W(this, function(n) {
1286
- switch (n.label) {
1285
+ let n;
1286
+ return W(this, function(t) {
1287
+ switch (t.label) {
1287
1288
  case 0:
1288
- return Ve(t = Me()) ? Se ? [2, ie([], Se, !0)] : $n() ? [
1289
+ return Ve(n = Me()) ? Se ? [2, ie([], Se, !0)] : $n() ? [
1289
1290
  4,
1290
1291
  (r = document, (r.exitFullscreen || r.msExitFullscreen || r.mozCancelFullScreen || r.webkitExitFullscreen).call(r))
1291
1292
  ] : [3, 2] : [3, 2];
1292
1293
  case 1:
1293
- n.sent(), t = Me(), n.label = 2;
1294
+ t.sent(), n = Me(), t.label = 2;
1294
1295
  case 2:
1295
- return Ve(t) || (Se = t), [2, t];
1296
+ return Ve(n) || (Se = n), [2, n];
1296
1297
  }
1297
1298
  let r;
1298
1299
  });
@@ -1309,29 +1310,29 @@ function Me() {
1309
1310
  ];
1310
1311
  }
1311
1312
  function Ve(e) {
1312
- for (let t = 0; t < 4; ++t) if (e[t]) return !1;
1313
+ for (let n = 0; n < 4; ++n) if (e[n]) return !1;
1313
1314
  return !0;
1314
1315
  }
1315
1316
  function tr(e) {
1316
- let t;
1317
+ let n;
1317
1318
  return G(this, void 0, void 0, function() {
1318
- let n, r, o, a, s, c, i;
1319
+ let t, r, o, a, s, c, i;
1319
1320
  return W(this, function(u) {
1320
1321
  switch (u.label) {
1321
1322
  case 0:
1322
- for (n = document, r = n.createElement("div"), o = new Array(e.length), a = {}, yt(r), i = 0; i < e.length; ++i)
1323
- s = Qn(e[i]), yt(c = n.createElement("div")), c.appendChild(s), r.appendChild(c), o[i] = s;
1323
+ for (t = document, r = t.createElement("div"), o = new Array(e.length), a = {}, yt(r), i = 0; i < e.length; ++i)
1324
+ s = Qn(e[i]), yt(c = t.createElement("div")), c.appendChild(s), r.appendChild(c), o[i] = s;
1324
1325
  u.label = 1;
1325
1326
  case 1:
1326
- return n.body ? [3, 3] : [4, Y(50)];
1327
+ return t.body ? [3, 3] : [4, Y(50)];
1327
1328
  case 2:
1328
1329
  return u.sent(), [3, 1];
1329
1330
  case 3:
1330
- n.body.appendChild(r);
1331
+ t.body.appendChild(r);
1331
1332
  try {
1332
1333
  for (i = 0; i < e.length; ++i) o[i].offsetParent || (a[e[i]] = !0);
1333
1334
  } finally {
1334
- (t = r.parentNode) === null || t === void 0 || t.removeChild(r);
1335
+ (n = r.parentNode) === null || n === void 0 || n.removeChild(r);
1335
1336
  }
1336
1337
  return [2, a];
1337
1338
  }
@@ -1368,11 +1369,11 @@ const L = Math, N = function() {
1368
1369
  system: [{ fontFamily: "system-ui" }]
1369
1370
  }, nr = {
1370
1371
  fonts: function() {
1371
- return gt(function(e, t) {
1372
- const n = t.document, r = n.body;
1372
+ return gt(function(e, n) {
1373
+ const t = n.document, r = t.body;
1373
1374
  r.style.fontSize = "48px";
1374
- const o = n.createElement("div"), a = {}, s = {}, c = function(l) {
1375
- const h = n.createElement("span"), v = h.style;
1375
+ const o = t.createElement("div"), a = {}, s = {}, c = function(l) {
1376
+ const h = t.createElement("span"), v = h.style;
1376
1377
  return v.position = "absolute", v.top = "0", v.left = "0", v.fontFamily = l, h.textContent = "mmMwWLliI0O&1", o.appendChild(h), h;
1377
1378
  }, i = re.map(c), u = (function() {
1378
1379
  for (var l = {}, h = function(S) {
@@ -1389,20 +1390,20 @@ const L = Math, N = function() {
1389
1390
  for (let l = 0; l < re.length; l++)
1390
1391
  a[re[l]] = i[l].offsetWidth, s[re[l]] = i[l].offsetHeight;
1391
1392
  return bt.filter(function(l) {
1392
- return t = u[l], re.some(function(h, v) {
1393
- return t[v].offsetWidth !== a[h] || t[v].offsetHeight !== s[h];
1393
+ return n = u[l], re.some(function(h, v) {
1394
+ return n[v].offsetWidth !== a[h] || n[v].offsetHeight !== s[h];
1394
1395
  });
1395
1396
  });
1396
1397
  });
1397
1398
  },
1398
1399
  domBlockers: function(e) {
1399
- const t = (e === void 0 ? {} : e).debug;
1400
+ const n = (e === void 0 ? {} : e).debug;
1400
1401
  return G(this, void 0, void 0, function() {
1401
- let n, r, o, a, s;
1402
+ let t, r, o, a, s;
1402
1403
  return W(this, function(c) {
1403
1404
  switch (c.label) {
1404
1405
  case 0:
1405
- return me() || Xt() ? (i = atob, n = {
1406
+ return me() || Xt() ? (i = atob, t = {
1406
1407
  abpIndo: [
1407
1408
  "#Iklan-Melayang",
1408
1409
  "#Kolom-Iklan-728",
@@ -1739,19 +1740,19 @@ const L = Math, N = function() {
1739
1740
  ".zergnet-recommend",
1740
1741
  ".yt.btn-link.btn-md.btn"
1741
1742
  ]
1742
- }, r = Object.keys(n), [
1743
+ }, r = Object.keys(t), [
1743
1744
  4,
1744
1745
  tr(
1745
1746
  (s = []).concat.apply(
1746
1747
  s,
1747
1748
  r.map(function(u) {
1748
- return n[u];
1749
+ return t[u];
1749
1750
  })
1750
1751
  )
1751
1752
  )
1752
1753
  ]) : [2, void 0];
1753
1754
  case 1:
1754
- return o = c.sent(), t && (function(u, l) {
1755
+ return o = c.sent(), n && (function(u, l) {
1755
1756
  for (var h = "DOM blockers debug:\n```", v = 0, g = Object.keys(u); v < g.length; v++) {
1756
1757
  const S = g[v];
1757
1758
  h += `
@@ -1763,9 +1764,9 @@ const L = Math, N = function() {
1763
1764
  }
1764
1765
  }
1765
1766
  console.log("".concat(h, "\n```"));
1766
- })(n, o), (a = r.filter(function(u) {
1767
- const l = n[u];
1768
- return U(
1767
+ })(t, o), (a = r.filter(function(u) {
1768
+ const l = t[u];
1769
+ return j(
1769
1770
  l.map(function(h) {
1770
1771
  return o[h];
1771
1772
  })
@@ -1777,36 +1778,36 @@ const L = Math, N = function() {
1777
1778
  });
1778
1779
  },
1779
1780
  fontPreferences: function() {
1780
- return (function(e, t) {
1781
- return t === void 0 && (t = 4e3), gt(function(n, r) {
1781
+ return (function(e, n) {
1782
+ return n === void 0 && (n = 4e3), gt(function(t, r) {
1782
1783
  const o = r.document, a = o.body, s = a.style;
1783
- s.width = "".concat(t, "px"), s.webkitTextSizeAdjust = s.textSizeAdjust = "none", ze() ? a.style.zoom = "".concat(1 / r.devicePixelRatio) : me() && (a.style.zoom = "reset");
1784
+ s.width = "".concat(n, "px"), s.webkitTextSizeAdjust = s.textSizeAdjust = "none", ze() ? a.style.zoom = "".concat(1 / r.devicePixelRatio) : me() && (a.style.zoom = "reset");
1784
1785
  const c = o.createElement("div");
1785
- return c.textContent = ie([], Array(t / 20 << 0), !0).map(function() {
1786
+ return c.textContent = ie([], Array(n / 20 << 0), !0).map(function() {
1786
1787
  return "word";
1787
1788
  }).join(" "), a.appendChild(c), e(o, a);
1788
1789
  });
1789
- })(function(e, t) {
1790
- for (var n = {}, r = {}, o = 0, a = Object.keys(He); o < a.length; o++) {
1790
+ })(function(e, n) {
1791
+ for (var t = {}, r = {}, o = 0, a = Object.keys(He); o < a.length; o++) {
1791
1792
  var s = a[o], c = He[s], i = c[0], u = i === void 0 ? {} : i, l = c[1], h = l === void 0 ? "mmMwWLliI0fiflO&1" : l, v = e.createElement("span");
1792
1793
  v.textContent = h, v.style.whiteSpace = "nowrap";
1793
1794
  for (let g = 0, S = Object.keys(u); g < S.length; g++) {
1794
1795
  const y = S[g], m = u[y];
1795
1796
  m !== void 0 && (v.style[y] = m);
1796
1797
  }
1797
- n[s] = v, t.appendChild(e.createElement("br")), t.appendChild(v);
1798
+ t[s] = v, n.appendChild(e.createElement("br")), n.appendChild(v);
1798
1799
  }
1799
1800
  for (let g = 0, S = Object.keys(He); g < S.length; g++)
1800
- r[s = S[g]] = n[s].getBoundingClientRect().width;
1801
+ r[s = S[g]] = t[s].getBoundingClientRect().width;
1801
1802
  return r;
1802
1803
  });
1803
1804
  },
1804
1805
  audio: function() {
1805
- const e = window, t = e.OfflineAudioContext || e.webkitOfflineAudioContext;
1806
- if (!t) return -2;
1806
+ const e = window, n = e.OfflineAudioContext || e.webkitOfflineAudioContext;
1807
+ if (!n) return -2;
1807
1808
  if (me() && !Je() && !(function() {
1808
1809
  const u = window;
1809
- return U([
1810
+ return j([
1810
1811
  "DOMRectList" in u,
1811
1812
  "RTCPeerConnectionIceEvent" in u,
1812
1813
  "SVGGeometryElement" in u,
@@ -1814,29 +1815,29 @@ const L = Math, N = function() {
1814
1815
  ]) >= 3;
1815
1816
  })())
1816
1817
  return -1;
1817
- const n = new t(1, 5e3, 44100), r = n.createOscillator();
1818
+ const t = new n(1, 5e3, 44100), r = t.createOscillator();
1818
1819
  r.type = "triangle", r.frequency.value = 1e4;
1819
- const o = n.createDynamicsCompressor();
1820
- o.threshold.value = -50, o.knee.value = 40, o.ratio.value = 12, o.attack.value = 0, o.release.value = 0.25, r.connect(o), o.connect(n.destination), r.start(0);
1820
+ const o = t.createDynamicsCompressor();
1821
+ o.threshold.value = -50, o.knee.value = 40, o.ratio.value = 12, o.attack.value = 0, o.release.value = 0.25, r.connect(o), o.connect(t.destination), r.start(0);
1821
1822
  const a = (function(u) {
1822
1823
  let l = 3, h = 500, v = 500, g = 5e3, S = function() {
1823
1824
  };
1824
1825
  return [
1825
1826
  new Promise(function(y, m) {
1826
- let k = !1, x = 0, j = 0;
1827
+ let k = !1, x = 0, U = 0;
1827
1828
  u.oncomplete = function(_) {
1828
1829
  return y(_.renderedBuffer);
1829
1830
  };
1830
1831
  const q = function() {
1831
1832
  setTimeout(function() {
1832
1833
  return m(vt("timeout"));
1833
- }, Math.min(v, j + g - Date.now()));
1834
+ }, Math.min(v, U + g - Date.now()));
1834
1835
  }, ye = function() {
1835
1836
  try {
1836
1837
  const _ = u.startRendering();
1837
1838
  switch (Vt(_) && ke(_), u.state) {
1838
1839
  case "running":
1839
- j = Date.now(), k && q();
1840
+ U = Date.now(), k && q();
1840
1841
  break;
1841
1842
  case "suspended":
1842
1843
  document.hidden || x++, k && x >= l ? m(vt("suspended")) : setTimeout(ye, h);
@@ -1846,12 +1847,12 @@ const L = Math, N = function() {
1846
1847
  }
1847
1848
  };
1848
1849
  ye(), S = function() {
1849
- k || (k = !0, j > 0 && q());
1850
+ k || (k = !0, U > 0 && q());
1850
1851
  };
1851
1852
  }),
1852
1853
  S
1853
1854
  ];
1854
- })(n), s = a[0], c = a[1], i = s.then(
1855
+ })(t), s = a[0], c = a[1], i = s.then(
1855
1856
  function(u) {
1856
1857
  return (function(l) {
1857
1858
  for (var h = 0, v = 0; v < l.length; ++v) h += Math.abs(l[v]);
@@ -1868,24 +1869,24 @@ const L = Math, N = function() {
1868
1869
  };
1869
1870
  },
1870
1871
  screenFrame: function() {
1871
- const e = this, t = er();
1872
+ const e = this, n = er();
1872
1873
  return function() {
1873
1874
  return G(e, void 0, void 0, function() {
1874
- let n, r;
1875
+ let t, r;
1875
1876
  return W(this, function(o) {
1876
1877
  switch (o.label) {
1877
1878
  case 0:
1878
- return [4, t()];
1879
+ return [4, n()];
1879
1880
  case 1:
1880
- return n = o.sent(), [
1881
+ return t = o.sent(), [
1881
1882
  2,
1882
1883
  [
1883
1884
  (r = function(a) {
1884
1885
  return a === null ? null : Ht(a, 10);
1885
- })(n[0]),
1886
- r(n[1]),
1887
- r(n[2]),
1888
- r(n[3])
1886
+ })(t[0]),
1887
+ r(t[1]),
1888
+ r(t[2]),
1889
+ r(t[3])
1889
1890
  ]
1890
1891
  ];
1891
1892
  }
@@ -1897,19 +1898,19 @@ const L = Math, N = function() {
1897
1898
  return navigator.oscpu;
1898
1899
  },
1899
1900
  languages: function() {
1900
- let e, t = navigator, n = [], r = t.language || t.userLanguage || t.browserLanguage || t.systemLanguage;
1901
- if (r !== void 0 && n.push([r]), Array.isArray(t.languages))
1902
- ze() && U([
1901
+ let e, n = navigator, t = [], r = n.language || n.userLanguage || n.browserLanguage || n.systemLanguage;
1902
+ if (r !== void 0 && t.push([r]), Array.isArray(n.languages))
1903
+ ze() && j([
1903
1904
  !("MediaSettingsRange" in (e = window)),
1904
1905
  "RTCEncodedAudioFrame" in e,
1905
1906
  "" + e.Intl == "[object Intl]",
1906
1907
  "" + e.Reflect == "[object Reflect]"
1907
- ]) >= 3 || n.push(t.languages);
1908
- else if (typeof t.languages == "string") {
1909
- const o = t.languages;
1910
- o && n.push(o.split(","));
1908
+ ]) >= 3 || t.push(n.languages);
1909
+ else if (typeof n.languages == "string") {
1910
+ const o = n.languages;
1911
+ o && t.push(o.split(","));
1911
1912
  }
1912
- return n;
1913
+ return t;
1913
1914
  },
1914
1915
  colorDepth: function() {
1915
1916
  return window.screen.colorDepth;
@@ -1918,23 +1919,23 @@ const L = Math, N = function() {
1918
1919
  return Z(X(navigator.deviceMemory), void 0);
1919
1920
  },
1920
1921
  screenResolution: function() {
1921
- const e = screen, t = function(r) {
1922
+ const e = screen, n = function(r) {
1922
1923
  return Z(xe(r), null);
1923
- }, n = [t(e.width), t(e.height)];
1924
- return n.sort().reverse(), n;
1924
+ }, t = [n(e.width), n(e.height)];
1925
+ return t.sort().reverse(), t;
1925
1926
  },
1926
1927
  hardwareConcurrency: function() {
1927
1928
  return Z(xe(navigator.hardwareConcurrency), void 0);
1928
1929
  },
1929
1930
  timezone: function() {
1930
- let e, t = (e = window.Intl) === null || e === void 0 ? void 0 : e.DateTimeFormat;
1931
- if (t) {
1932
- const o = new t().resolvedOptions().timeZone;
1931
+ let e, n = (e = window.Intl) === null || e === void 0 ? void 0 : e.DateTimeFormat;
1932
+ if (n) {
1933
+ const o = new n().resolvedOptions().timeZone;
1933
1934
  if (o) return o;
1934
1935
  }
1935
- let n, r = (n = (/* @__PURE__ */ new Date()).getFullYear(), -Math.max(
1936
- X(new Date(n, 0, 1).getTimezoneOffset()),
1937
- X(new Date(n, 6, 1).getTimezoneOffset())
1936
+ let t, r = (t = (/* @__PURE__ */ new Date()).getFullYear(), -Math.max(
1937
+ X(new Date(t, 0, 1).getTimezoneOffset()),
1938
+ X(new Date(t, 6, 1).getTimezoneOffset())
1938
1939
  ));
1939
1940
  return "UTC".concat(r >= 0 ? "+" : "").concat(Math.abs(r));
1940
1941
  },
@@ -1970,39 +1971,39 @@ const L = Math, N = function() {
1970
1971
  const e = navigator.platform;
1971
1972
  return e === "MacIntel" && me() && !Je() ? (function() {
1972
1973
  if (navigator.platform === "iPad") return !0;
1973
- const t = screen, n = t.width / t.height;
1974
- return U([
1974
+ const n = screen, t = n.width / n.height;
1975
+ return j([
1975
1976
  "MediaSource" in window,
1976
1977
  !!Element.prototype.webkitRequestFullscreen,
1977
- n > 0.65 && n < 1.53
1978
+ t > 0.65 && t < 1.53
1978
1979
  ]) >= 2;
1979
1980
  })() ? "iPad" : "iPhone" : e;
1980
1981
  },
1981
1982
  plugins: function() {
1982
1983
  const e = navigator.plugins;
1983
1984
  if (e) {
1984
- for (var t = [], n = 0; n < e.length; ++n) {
1985
- const a = e[n];
1985
+ for (var n = [], t = 0; t < e.length; ++t) {
1986
+ const a = e[t];
1986
1987
  if (a) {
1987
1988
  for (var r = [], o = 0; o < a.length; ++o) {
1988
1989
  const s = a[o];
1989
1990
  r.push({ type: s.type, suffixes: s.suffixes });
1990
1991
  }
1991
- t.push({ name: a.name, description: a.description, mimeTypes: r });
1992
+ n.push({ name: a.name, description: a.description, mimeTypes: r });
1992
1993
  }
1993
1994
  }
1994
- return t;
1995
+ return n;
1995
1996
  }
1996
1997
  },
1997
1998
  canvas: function() {
1998
- let e, t, n = !1, r = (function() {
1999
+ let e, n, t = !1, r = (function() {
1999
2000
  const s = document.createElement("canvas");
2000
2001
  return s.width = 1, s.height = 1, [s, s.getContext("2d")];
2001
2002
  })(), o = r[0], a = r[1];
2002
2003
  if ((function(s, c) {
2003
2004
  return !(!c || !s.toDataURL);
2004
2005
  })(o, a)) {
2005
- n = (function(c) {
2006
+ t = (function(c) {
2006
2007
  return c.rect(0, 0, 10, 10), c.rect(2, 2, 6, 6), !c.isPointInPath(5, 5, "evenodd");
2007
2008
  })(a), (function(c, i) {
2008
2009
  c.width = 240, c.height = 60, i.textBaseline = "alphabetic", i.fillStyle = "#f60", i.fillRect(100, 1, 62, 20), i.fillStyle = "#069", i.font = '11pt "Times New Roman"';
@@ -2012,7 +2013,7 @@ const L = Math, N = function() {
2012
2013
  i.fillText(u, 2, 15), i.fillStyle = "rgba(102, 204, 0, 0.2)", i.font = "18pt Arial", i.fillText(u, 4, 45);
2013
2014
  })(o, a);
2014
2015
  const s = Ne(o);
2015
- s !== Ne(o) ? e = t = "unstable" : (t = s, (function(c, i) {
2016
+ s !== Ne(o) ? e = n = "unstable" : (n = s, (function(c, i) {
2016
2017
  c.width = 122, c.height = 110, i.globalCompositeOperation = "multiply";
2017
2018
  for (let u = 0, l = [
2018
2019
  ["#f2f", 40, 40],
@@ -2024,19 +2025,19 @@ const L = Math, N = function() {
2024
2025
  }
2025
2026
  i.fillStyle = "#f9c", i.arc(60, 60, 60, 0, 2 * Math.PI, !0), i.arc(60, 60, 20, 0, 2 * Math.PI, !0), i.fill("evenodd");
2026
2027
  })(o, a), e = Ne(o));
2027
- } else e = t = "";
2028
- return { winding: n, geometry: e, text: t };
2028
+ } else e = n = "";
2029
+ return { winding: t, geometry: e, text: n };
2029
2030
  },
2030
2031
  touchSupport: function() {
2031
- let e, t = navigator, n = 0;
2032
- t.maxTouchPoints !== void 0 ? n = xe(t.maxTouchPoints) : t.msMaxTouchPoints !== void 0 && (n = t.msMaxTouchPoints);
2032
+ let e, n = navigator, t = 0;
2033
+ n.maxTouchPoints !== void 0 ? t = xe(n.maxTouchPoints) : n.msMaxTouchPoints !== void 0 && (t = n.msMaxTouchPoints);
2033
2034
  try {
2034
2035
  document.createEvent("TouchEvent"), e = !0;
2035
2036
  } catch {
2036
2037
  e = !1;
2037
2038
  }
2038
2039
  return {
2039
- maxTouchPoints: n,
2040
+ maxTouchPoints: t,
2040
2041
  touchEvent: e,
2041
2042
  touchStart: "ontouchstart" in window
2042
2043
  };
@@ -2045,7 +2046,7 @@ const L = Math, N = function() {
2045
2046
  return navigator.vendor || "";
2046
2047
  },
2047
2048
  vendorFlavors: function() {
2048
- for (var e = [], t = 0, n = [
2049
+ for (var e = [], n = 0, t = [
2049
2050
  "chrome",
2050
2051
  "safari",
2051
2052
  "__crWeb",
@@ -2061,8 +2062,8 @@ const L = Math, N = function() {
2061
2062
  "ucweb",
2062
2063
  "UCShellJava",
2063
2064
  "puffinDevice"
2064
- ]; t < n.length; t++) {
2065
- const r = n[t], o = window[r];
2065
+ ]; n < t.length; n++) {
2066
+ const r = t[n], o = window[r];
2066
2067
  o && typeof o == "object" && e.push(r);
2067
2068
  }
2068
2069
  return e.sort();
@@ -2071,16 +2072,16 @@ const L = Math, N = function() {
2071
2072
  const e = document;
2072
2073
  try {
2073
2074
  e.cookie = "cookietest=1; SameSite=Strict;";
2074
- const t = e.cookie.indexOf("cookietest=") !== -1;
2075
- return e.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT", t;
2075
+ const n = e.cookie.indexOf("cookietest=") !== -1;
2076
+ return e.cookie = "cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT", n;
2076
2077
  } catch {
2077
2078
  return !1;
2078
2079
  }
2079
2080
  },
2080
2081
  colorGamut: function() {
2081
- for (let e = 0, t = ["rec2020", "p3", "srgb"]; e < t.length; e++) {
2082
- const n = t[e];
2083
- if (matchMedia("(color-gamut: ".concat(n, ")")).matches) return n;
2082
+ for (let e = 0, n = ["rec2020", "p3", "srgb"]; e < n.length; e++) {
2083
+ const t = n[e];
2084
+ if (matchMedia("(color-gamut: ".concat(t, ")")).matches) return t;
2084
2085
  }
2085
2086
  },
2086
2087
  invertedColors: function() {
@@ -2106,10 +2107,10 @@ const L = Math, N = function() {
2106
2107
  return !!wt("high") || !wt("standard") && void 0;
2107
2108
  },
2108
2109
  math: function() {
2109
- let e, t = L.acos || N, n = L.acosh || N, r = L.asin || N, o = L.asinh || N, a = L.atanh || N, s = L.atan || N, c = L.sin || N, i = L.sinh || N, u = L.cos || N, l = L.cosh || N, h = L.tan || N, v = L.tanh || N, g = L.exp || N, S = L.expm1 || N, y = L.log1p || N;
2110
+ let e, n = L.acos || N, t = L.acosh || N, r = L.asin || N, o = L.asinh || N, a = L.atanh || N, s = L.atan || N, c = L.sin || N, i = L.sinh || N, u = L.cos || N, l = L.cosh || N, h = L.tan || N, v = L.tanh || N, g = L.exp || N, S = L.expm1 || N, y = L.log1p || N;
2110
2111
  return {
2111
- acos: t(0.12312423423423424),
2112
- acosh: n(1e308),
2112
+ acos: n(0.12312423423423424),
2113
+ acosh: t(1e308),
2113
2114
  acoshPf: (e = 1e154, L.log(e + L.sqrt(e * e - 1))),
2114
2115
  asin: r(0.12312423423423424),
2115
2116
  asinh: o(1),
@@ -2151,13 +2152,13 @@ const L = Math, N = function() {
2151
2152
  };
2152
2153
  },
2153
2154
  videoCard: function() {
2154
- let e, t = document.createElement("canvas"), n = (e = t.getContext("webgl")) !== null && e !== void 0 ? e : t.getContext("experimental-webgl");
2155
- if (n && "getExtension" in n) {
2156
- const r = n.getExtension("WEBGL_debug_renderer_info");
2155
+ let e, n = document.createElement("canvas"), t = (e = n.getContext("webgl")) !== null && e !== void 0 ? e : n.getContext("experimental-webgl");
2156
+ if (t && "getExtension" in t) {
2157
+ const r = t.getExtension("WEBGL_debug_renderer_info");
2157
2158
  if (r)
2158
2159
  return {
2159
- vendor: (n.getParameter(r.UNMASKED_VENDOR_WEBGL) || "").toString(),
2160
- renderer: (n.getParameter(r.UNMASKED_RENDERER_WEBGL) || "").toString()
2160
+ vendor: (t.getParameter(r.UNMASKED_VENDOR_WEBGL) || "").toString(),
2161
+ renderer: (t.getParameter(r.UNMASKED_RENDERER_WEBGL) || "").toString()
2161
2162
  };
2162
2163
  }
2163
2164
  },
@@ -2165,58 +2166,58 @@ const L = Math, N = function() {
2165
2166
  return navigator.pdfViewerEnabled;
2166
2167
  },
2167
2168
  architecture: function() {
2168
- const e = new Float32Array(1), t = new Uint8Array(e.buffer);
2169
- return e[0] = 1 / 0, e[0] = e[0] - e[0], t[3];
2169
+ const e = new Float32Array(1), n = new Uint8Array(e.buffer);
2170
+ return e[0] = 1 / 0, e[0] = e[0] - e[0], n[3];
2170
2171
  }
2171
2172
  };
2172
2173
  function rr(e) {
2173
- const t = (function(r) {
2174
+ const n = (function(r) {
2174
2175
  if (Xt()) return 0.4;
2175
2176
  if (me()) return Je() ? 0.5 : 0.3;
2176
2177
  const o = r.platform.value || "";
2177
2178
  return /^Win/.test(o) ? 0.6 : /^Mac/.test(o) ? 0.5 : 0.7;
2178
- })(e), n = (function(r) {
2179
+ })(e), t = (function(r) {
2179
2180
  return Ht(0.99 + 0.01 * r, 1e-4);
2180
- })(t);
2181
+ })(n);
2181
2182
  return {
2182
- score: t,
2183
+ score: n,
2183
2184
  comment: "$ if upgrade to Pro: https://fpjs.dev/pro".replace(
2184
2185
  /\$/g,
2185
- "".concat(n)
2186
+ "".concat(t)
2186
2187
  )
2187
2188
  };
2188
2189
  }
2189
2190
  function or(e) {
2190
2191
  return JSON.stringify(
2191
2192
  e,
2192
- function(t, n) {
2193
- return n instanceof Error ? _e(
2193
+ function(n, t) {
2194
+ return t instanceof Error ? _e(
2194
2195
  {
2195
- name: (ie = n).name,
2196
+ name: (ie = t).name,
2196
2197
  message: ie.message,
2197
2198
  stack: (Y = ie.stack) === null || Y === void 0 ? void 0 : Y.split(`
2198
2199
  `)
2199
2200
  },
2200
2201
  ie
2201
- ) : n;
2202
+ ) : t;
2202
2203
  },
2203
2204
  2
2204
2205
  );
2205
2206
  }
2206
2207
  function ir(e) {
2207
2208
  return Gn(
2208
- (function(t) {
2209
- for (var n = "", r = 0, o = Object.keys(t).sort(); r < o.length; r++) {
2210
- const a = o[r], s = t[a], c = s.error ? "error" : JSON.stringify(s.value);
2211
- n += "".concat(n ? "|" : "").concat(a.replace(/([:|\\])/g, "\\$1"), ":").concat(c);
2209
+ (function(n) {
2210
+ for (var t = "", r = 0, o = Object.keys(n).sort(); r < o.length; r++) {
2211
+ const a = o[r], s = n[a], c = s.error ? "error" : JSON.stringify(s.value);
2212
+ t += "".concat(t ? "|" : "").concat(a.replace(/([:|\\])/g, "\\$1"), ":").concat(c);
2212
2213
  }
2213
- return n;
2214
+ return t;
2214
2215
  })(e)
2215
2216
  );
2216
2217
  }
2217
2218
  function ar(e) {
2218
- return e === void 0 && (e = 50), (function(t, n) {
2219
- n === void 0 && (n = 1 / 0);
2219
+ return e === void 0 && (e = 50), (function(n, t) {
2220
+ t === void 0 && (t = 1 / 0);
2220
2221
  const r = window.requestIdleCallback;
2221
2222
  return r ? new Promise(function(o) {
2222
2223
  return r.call(
@@ -2224,13 +2225,13 @@ function ar(e) {
2224
2225
  function() {
2225
2226
  return o();
2226
2227
  },
2227
- { timeout: n }
2228
+ { timeout: t }
2228
2229
  );
2229
- }) : Y(Math.min(t, n));
2230
+ }) : Y(Math.min(n, t));
2230
2231
  })(e, 2 * e);
2231
2232
  }
2232
- function sr(e, t) {
2233
- const n = Date.now();
2233
+ function sr(e, n) {
2234
+ const t = Date.now();
2234
2235
  return {
2235
2236
  get: function(r) {
2236
2237
  return G(this, void 0, void 0, function() {
@@ -2253,10 +2254,10 @@ function sr(e, t) {
2253
2254
  components: i,
2254
2255
  version: "3.4.1"
2255
2256
  };
2256
- })(a), (t || r?.debug) && console.log(
2257
+ })(a), (n || r?.debug) && console.log(
2257
2258
  "Copy the text below to get the debug data:\n\n```\nversion: ".concat(s.version, `
2258
2259
  userAgent: `).concat(navigator.userAgent, `
2259
- timeBetweenLoadAndGet: `).concat(o - n, `
2260
+ timeBetweenLoadAndGet: `).concat(o - t, `
2260
2261
  visitorId: `).concat(s.visitorId, `
2261
2262
  components: `).concat(or(a), "\n```")
2262
2263
  ), [2, s];
@@ -2267,12 +2268,12 @@ components: `).concat(or(a), "\n```")
2267
2268
  };
2268
2269
  }
2269
2270
  function cr(e) {
2270
- const t = e === void 0 ? {} : e, n = t.delayFallback, r = t.debug;
2271
- return t.monitoring, G(this, void 0, void 0, function() {
2271
+ const n = e === void 0 ? {} : e, t = n.delayFallback, r = n.debug;
2272
+ return n.monitoring, G(this, void 0, void 0, function() {
2272
2273
  return W(this, function(o) {
2273
2274
  switch (o.label) {
2274
2275
  case 0:
2275
- return [4, ar(n)];
2276
+ return [4, ar(t)];
2276
2277
  case 1:
2277
2278
  return o.sent(), [2, sr(zn(nr, { debug: r }, []), r)];
2278
2279
  }
@@ -2280,29 +2281,29 @@ function cr(e) {
2280
2281
  });
2281
2282
  }
2282
2283
  function nt() {
2283
- const e = tt(Ye) || `s_${We()}`, t = new Date(R() + Rn);
2284
- return document.cookie = `${Ye}=${e};path=/;max-age=1800;expires=${t.toUTCString()}`, e;
2284
+ const e = tt(Ye) || `s_${We()}`, n = new Date(R() + Rn);
2285
+ return document.cookie = `${Ye}=${e};path=/;max-age=1800;expires=${n.toUTCString()}`, e;
2285
2286
  }
2286
2287
  function ur() {
2287
2288
  return tt(Ye) || nt();
2288
2289
  }
2289
2290
  nt();
2290
2291
  function lr(e) {
2291
- return Ut.test(e);
2292
+ return jt.test(e);
2292
2293
  }
2293
2294
  function dr(e) {
2294
- return jt.test(e);
2295
+ return Ut.test(e);
2295
2296
  }
2296
- const Ut = /((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])/, jt = /((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/, fr = [jt, Ut];
2297
+ const jt = /((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])/, Ut = /((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/, fr = [Ut, jt];
2297
2298
  function hr(e) {
2298
- let t, n = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
2299
+ let n, t = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
2299
2300
  function r() {
2300
- (t = new n({
2301
+ (n = new t({
2301
2302
  iceServers: [{ urls: "stun:stun.l.google.com:19302" }]
2302
- })).onicecandidate = (s) => a(s), t.createDataChannel("fake_data_channel");
2303
+ })).onicecandidate = (s) => a(s), n.createDataChannel("fake_data_channel");
2303
2304
  }
2304
2305
  function o() {
2305
- return t.createOffer().then((s) => t.setLocalDescription(s));
2306
+ return n.createOffer().then((s) => n.setLocalDescription(s));
2306
2307
  }
2307
2308
  function a(s) {
2308
2309
  s && s.candidate && s.candidate.candidate && e(s && s.candidate && s.candidate.candidate);
@@ -2312,12 +2313,12 @@ function hr(e) {
2312
2313
  r(), o();
2313
2314
  },
2314
2315
  stop: function() {
2315
- if (t)
2316
+ if (n)
2316
2317
  try {
2317
- t.close();
2318
+ n.close();
2318
2319
  } finally {
2319
- t.onicecandidate = () => {
2320
- }, t = null;
2320
+ n.onicecandidate = () => {
2321
+ }, n = null;
2321
2322
  }
2322
2323
  },
2323
2324
  createConnection: r,
@@ -2328,7 +2329,7 @@ function hr(e) {
2328
2329
  function qe(e) {
2329
2330
  if (e && e < 100)
2330
2331
  throw new Error("Custom timeout cannot be under 100 milliseconds.");
2331
- const t = [], n = hr(function(o) {
2332
+ const n = [], t = hr(function(o) {
2332
2333
  const a = [];
2333
2334
  for (const s of fr) {
2334
2335
  const c = [], i = s.exec(o);
@@ -2339,42 +2340,42 @@ function qe(e) {
2339
2340
  }
2340
2341
  }
2341
2342
  (function(s) {
2342
- t.includes(s) || t.push(r(s.flat(1 / 0)));
2343
+ n.includes(s) || n.push(r(s.flat(1 / 0)));
2343
2344
  })(a.flat(1 / 0));
2344
2345
  });
2345
2346
  function r(o) {
2346
2347
  return Array.from(new Set(o));
2347
2348
  }
2348
2349
  return new Promise(function(o, a) {
2349
- n.start(), setTimeout(() => {
2350
- t && t !== [] ? o(r(t.flat(1 / 0))) : a("No IP addresses were found."), n.stop();
2350
+ t.start(), setTimeout(() => {
2351
+ n && n !== [] ? o(r(n.flat(1 / 0))) : a("No IP addresses were found."), t.stop();
2351
2352
  }, e || 500);
2352
2353
  });
2353
2354
  }
2354
2355
  function rt(e) {
2355
- return new Promise(function(t, n) {
2356
+ return new Promise(function(n, t) {
2356
2357
  const r = [];
2357
2358
  qe(e).then((o) => {
2358
2359
  o.forEach((a) => {
2359
2360
  a.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/) ? r.push({ ip: a, type: "private", IPv4: !0 }) : a.match(
2360
2361
  /((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))/
2361
2362
  ) ? r.push({ ip: a, type: "IPv6", IPv4: !1 }) : r.push({ ip: a, type: "public", IPv4: !0 });
2362
- }), t(r);
2363
- }).catch(n);
2363
+ }), n(r);
2364
+ }).catch(t);
2364
2365
  });
2365
2366
  }
2366
2367
  function mr(e) {
2367
- return rt(e).then((t) => {
2368
- const n = t.filter((r) => r.IPv4);
2369
- for (let r = 0; r < n.length; r++) n[r] = n[r].ip;
2370
- return n || "";
2368
+ return rt(e).then((n) => {
2369
+ const t = n.filter((r) => r.IPv4);
2370
+ for (let r = 0; r < t.length; r++) t[r] = t[r].ip;
2371
+ return t || "";
2371
2372
  });
2372
2373
  }
2373
2374
  function pr(e) {
2374
- return rt(e).then((t) => {
2375
- const n = t.filter((r) => r.type === "IPv6");
2376
- for (let r = 0; r < n.length; r++) n[r] = n[r].ip;
2377
- return n ? n.ip : "";
2375
+ return rt(e).then((n) => {
2376
+ const t = n.filter((r) => r.type === "IPv6");
2377
+ for (let r = 0; r < t.length; r++) t[r] = t[r].ip;
2378
+ return t ? t.ip : "";
2378
2379
  });
2379
2380
  }
2380
2381
  function Wt(e) {
@@ -2388,26 +2389,26 @@ function Wt(e) {
2388
2389
  class $e {
2389
2390
  static maxSize = 0.01 * 1024 * 1e3;
2390
2391
  // 5Mb
2391
- static getItem(t) {
2392
- const n = localStorage.getItem(t);
2393
- return n ? JSON.parse(n) : null;
2392
+ static getItem(n) {
2393
+ const t = localStorage.getItem(n);
2394
+ return t ? JSON.parse(t) : null;
2394
2395
  }
2395
- static setItem(t, n) {
2396
- localStorage.setItem(t, JSON.stringify(n));
2396
+ static setItem(n, t) {
2397
+ localStorage.setItem(n, JSON.stringify(t));
2397
2398
  }
2398
- static removeItem(t) {
2399
- localStorage.removeItem(t);
2399
+ static removeItem(n) {
2400
+ localStorage.removeItem(n);
2400
2401
  }
2401
2402
  static getSize() {
2402
- let t = 0;
2403
- for (let n = 0; n < localStorage.length; n++) {
2404
- const r = localStorage.key(n);
2403
+ let n = 0;
2404
+ for (let t = 0; t < localStorage.length; t++) {
2405
+ const r = localStorage.key(t);
2405
2406
  if (r) {
2406
2407
  const o = localStorage.getItem(r);
2407
- o && (t += this.getBytes(o));
2408
+ o && (n += this.getBytes(o));
2408
2409
  }
2409
2410
  }
2410
- return t;
2411
+ return n;
2411
2412
  }
2412
2413
  /**
2413
2414
  * sendData专属存储
@@ -2417,19 +2418,19 @@ class $e {
2417
2418
  *
2418
2419
  * 注意:刷新页面测试会加入卸载事件,这在控制台是看不到的
2419
2420
  */
2420
- static setSendDataItem(t, n) {
2421
+ static setSendDataItem(n, t) {
2421
2422
  if (this.getSize() >= this.maxSize) return !1;
2422
- const r = this.getItem(t) || {
2423
+ const r = this.getItem(n) || {
2423
2424
  baseInfo: {},
2424
2425
  eventInfo: []
2425
2426
  }, o = {
2426
- baseInfo: Ie(r.baseInfo, n.baseInfo),
2427
- eventInfo: r.eventInfo.concat(n.eventInfo)
2427
+ baseInfo: Ie(r.baseInfo, t.baseInfo),
2428
+ eventInfo: r.eventInfo.concat(t.eventInfo)
2428
2429
  };
2429
- return this.setItem(t, o), !0;
2430
+ return this.setItem(n, o), !0;
2430
2431
  }
2431
- static getBytes(t) {
2432
- return new Blob([t]).size;
2432
+ static getBytes(n) {
2433
+ return new Blob([n]).size;
2433
2434
  }
2434
2435
  }
2435
2436
  class vr {
@@ -2446,15 +2447,15 @@ class vr {
2446
2447
  */
2447
2448
  send() {
2448
2449
  if (!this.events.length || !this.isServerAvailable) return;
2449
- const t = this.events.slice(0, d.value.cacheMaxLength);
2450
+ const n = this.events.slice(0, d.value.cacheMaxLength);
2450
2451
  this.events = this.events.slice(d.value.cacheMaxLength);
2451
- const n = R(), r = Pt(() => ({
2452
+ const t = R(), r = Pt(() => ({
2452
2453
  baseInfo: {
2453
2454
  ...le.base?.value,
2454
- sendTime: n,
2455
+ sendTime: t,
2455
2456
  userUuid: d.value.userUuid
2456
2457
  },
2457
- eventInfo: Mt(t, (s) => (s.sendTime = n, s))
2458
+ eventInfo: Mt(n, (s) => (s.sendTime = t, s))
2458
2459
  })), o = d.value.transformSendParams ? d.value.transformSendParams(r.value) : null;
2459
2460
  if (d.value.localization) {
2460
2461
  $e.setSendDataItem(
@@ -2477,10 +2478,10 @@ class vr {
2477
2478
  }
2478
2479
  handleServerError() {
2479
2480
  if (this.isServerAvailable = !1, this.retryTimer && clearTimeout(this.retryTimer), d.value.checkRecoverInterval === -1) return;
2480
- const t = (d.value.checkRecoverInterval ?? 1) * 60 * 1e3;
2481
+ const n = (d.value.checkRecoverInterval ?? 1) * 60 * 1e3;
2481
2482
  this.retryTimer = setTimeout(() => {
2482
2483
  this.testServerAvailable();
2483
- }, t);
2484
+ }, n);
2484
2485
  }
2485
2486
  testServerAvailable() {
2486
2487
  st(d.value.dsn, { ping: 1 }, d.value.timeout).then(() => {
@@ -2493,11 +2494,11 @@ class vr {
2493
2494
  * 发送本地事件列表
2494
2495
  * @param e 需要发送的事件信息
2495
2496
  */
2496
- sendLocal(t) {
2497
- const n = d.value.transformSendParams ? d.value.transformSendParams(t) : null, r = Ee(
2497
+ sendLocal(n) {
2498
+ const t = d.value.transformSendParams ? d.value.transformSendParams(n) : null, r = Ee(
2498
2499
  d.value.beforeSendData,
2499
2500
  !1,
2500
- n ?? t
2501
+ t ?? n
2501
2502
  );
2502
2503
  Ce(r) || this.validateObject(r, "beforeSendData") && (ae("send events", r), this.executeSend(d.value.dsn, r));
2503
2504
  }
@@ -2506,20 +2507,20 @@ class vr {
2506
2507
  * @param e 需要发送的事件信息
2507
2508
  * @param flush 是否立即发送
2508
2509
  */
2509
- emit(t, n = !1) {
2510
- if (!t || !C.lineStatus.onLine || !n && !dn(d.value.tracesSampleRate)) return;
2511
- Te(t) || (t = [t]);
2510
+ emit(n, t = !1) {
2511
+ if (!n || !C.lineStatus.onLine || !t && !dn(d.value.tracesSampleRate)) return;
2512
+ Te(n) || (n = [n]);
2512
2513
  const r = d.value.maxQueueLength ?? 200;
2513
2514
  if (!this.isServerAvailable && this.events.length >= r) {
2514
- this.events = this.events.slice(this.events.length - r + t.length).concat(t);
2515
+ this.events = this.events.slice(this.events.length - r + n.length).concat(n);
2515
2516
  return;
2516
2517
  }
2517
2518
  const o = Ee(
2518
2519
  d.value.beforePushEventList,
2519
2520
  !1,
2520
- t
2521
+ n
2521
2522
  );
2522
- Ce(o) || this.validateObject(o, "beforePushEventList") && (this.events = this.events.concat(o), nt(), this.timeoutID && clearTimeout(this.timeoutID), le._initSuccess && (this.events.length >= d.value.cacheMaxLength || n ? this.send() : this.timeoutID = setTimeout(
2523
+ Ce(o) || this.validateObject(o, "beforePushEventList") && (this.events = this.events.concat(o), nt(), this.timeoutID && clearTimeout(this.timeoutID), le._initSuccess && (this.events.length >= d.value.cacheMaxLength || t ? this.send() : this.timeoutID = setTimeout(
2523
2524
  this.send.bind(this),
2524
2525
  d.value.cacheWatingTime
2525
2526
  )));
@@ -2529,22 +2530,22 @@ class vr {
2529
2530
  * @param url 目标地址
2530
2531
  * @param data 附带参数
2531
2532
  */
2532
- executeSend(t, n) {
2533
+ executeSend(n, t) {
2533
2534
  let r = 1;
2534
- return d.value.sendTypeByXmlBody ? r = 3 : p.navigator ? r = ct(n, 60) ? 3 : 1 : r = ct(n, 2) ? 3 : 2, new Promise((o) => {
2535
+ return d.value.sendTypeByXmlBody ? r = 3 : p.navigator ? r = ct(t, 60) ? 3 : 1 : r = ct(t, 2) ? 3 : 2, new Promise((o) => {
2535
2536
  switch (r) {
2536
2537
  case 1:
2537
- o({ sendType: "sendBeacon", success: hn(t, n) });
2538
+ o({ sendType: "sendBeacon", success: hn(n, t) });
2538
2539
  break;
2539
2540
  case 2:
2540
- mn(t, n).then(() => {
2541
+ mn(n, t).then(() => {
2541
2542
  o({ sendType: "image", success: !0 });
2542
2543
  }).catch(() => {
2543
2544
  o({ sendType: "image", success: !1 });
2544
2545
  });
2545
2546
  break;
2546
2547
  case 3:
2547
- st(t, n, d.value.timeout).then(() => {
2548
+ st(n, t, d.value.timeout).then(() => {
2548
2549
  o({ sendType: "xml", success: !0 });
2549
2550
  }).catch(() => {
2550
2551
  o({ sendType: "xml", success: !1 });
@@ -2557,12 +2558,12 @@ class vr {
2557
2558
  * 验证选项的类型 - 只验证是否为 {} []
2558
2559
  * 返回 false意思是取消放入队列 / 取消发送
2559
2560
  */
2560
- validateObject(t, n) {
2561
- return t === !1 ? !1 : t ? ["object", "array"].includes(ue(t)) ? !0 : (se(
2562
- `TypeError: ${n}期望返回 {} 或者 [] 类型,目前是${ue(
2563
- t
2561
+ validateObject(n, t) {
2562
+ return n === !1 ? !1 : n ? ["object", "array"].includes(ue(n)) ? !0 : (se(
2563
+ `TypeError: ${t}期望返回 {} 或者 [] 类型,目前是${ue(
2564
+ n
2564
2565
  )}类型`
2565
- ), !1) : (se(`NullError: ${n}期望返回 {} 或者 [] 类型,目前无返回值`), !1);
2566
+ ), !1) : (se(`NullError: ${t}期望返回 {} 或者 [] 类型,目前无返回值`), !1);
2566
2567
  }
2567
2568
  /**
2568
2569
  * 销毁定时器和队列
@@ -2590,12 +2591,12 @@ class br {
2590
2591
  });
2591
2592
  }
2592
2593
  initDevice() {
2593
- const { screen: t } = Nt(), { clientWidth: n, clientHeight: r } = document.documentElement, { width: o, height: a, colorDepth: s, pixelDepth: c } = t;
2594
+ const { screen: n } = Nt(), { clientWidth: t, clientHeight: r } = document.documentElement, { width: o, height: a, colorDepth: s, pixelDepth: c } = n;
2594
2595
  let i = tt(dt);
2595
2596
  i || (i = `t_${We()}`, document.cookie = `${dt}=${i};path=/;`), this.device = {
2596
2597
  clientHeight: r,
2597
2598
  // 网页可见区高度
2598
- clientWidth: n,
2599
+ clientWidth: t,
2599
2600
  // 网页可见区宽度
2600
2601
  colorDepth: s,
2601
2602
  // 显示屏幕调色板的比特深度
@@ -2617,8 +2618,8 @@ class br {
2617
2618
  * 初始化 base 数据
2618
2619
  */
2619
2620
  initBase() {
2620
- const t = ur();
2621
- let n = "";
2621
+ const n = ur();
2622
+ let t = "";
2622
2623
  this.base = Pt(() => ({
2623
2624
  ...this.device,
2624
2625
  userUuid: d.value.userUuid,
@@ -2627,22 +2628,22 @@ class br {
2627
2628
  appName: d.value.appName,
2628
2629
  appCode: d.value.appCode,
2629
2630
  pageId: this.pageId,
2630
- sessionId: t,
2631
+ sessionId: n,
2631
2632
  sdkVersion: An,
2632
- ip: n
2633
- })), !je && Wt().then((r) => {
2634
- this.base.value.ip = r[0], n = r[0];
2633
+ ip: t
2634
+ })), !Ue && Wt().then((r) => {
2635
+ this.base.value.ip = r[0], t = r[0];
2635
2636
  });
2636
2637
  }
2637
2638
  /**
2638
2639
  * 初始化sdk中给用户的唯一标识
2639
2640
  */
2640
2641
  initSdkUserUuid() {
2641
- return je ? Promise.resolve().then(() => {
2642
+ return Ue ? Promise.resolve().then(() => {
2642
2643
  this.sdkUserUuid = "unit-test-id", d.value.sdkUserUuid = "unit-test-id";
2643
- }) : cr({}).then((t) => t.get()).then((t) => {
2644
- const n = t.visitorId;
2645
- this.sdkUserUuid = n, d.value.sdkUserUuid = n;
2644
+ }) : cr({}).then((n) => n.get()).then((n) => {
2645
+ const t = n.visitorId;
2646
+ this.sdkUserUuid = t, d.value.sdkUserUuid = t;
2646
2647
  });
2647
2648
  }
2648
2649
  }
@@ -2658,13 +2659,13 @@ class Er {
2658
2659
  init() {
2659
2660
  b.addEvent({
2660
2661
  type: f.OFFLINE,
2661
- callback: (t) => {
2662
- t.type === "offline" && (ae("网络断开"), this.onLine = !1);
2662
+ callback: (n) => {
2663
+ n.type === "offline" && (ae("网络断开"), this.onLine = !1);
2663
2664
  }
2664
2665
  }), b.addEvent({
2665
2666
  type: f.ONLINE,
2666
- callback: (t) => {
2667
- t.type === "online" && (ae("网络连接"), this.onLine = !0);
2667
+ callback: (n) => {
2668
+ n.type === "online" && (ae("网络连接"), this.onLine = !0);
2668
2669
  }
2669
2670
  });
2670
2671
  }
@@ -2684,9 +2685,9 @@ class Rt {
2684
2685
  }
2685
2686
  init() {
2686
2687
  this.closeCallback = Qt({
2687
- emit: (t, n) => {
2688
+ emit: (n, t) => {
2688
2689
  const r = this.eventList[this.eventList.length - 1];
2689
- r.eventList.push(t), n && (this.eventList.length > 0 && (this.eventList[this.eventList.length - 1].scope = r.scope + R()), this.eventList.length > wr && this.eventList.shift(), this.eventList.push({ scope: `${R()}-`, eventList: [] }));
2690
+ r.eventList.push(n), t && (this.eventList.length > 0 && (this.eventList[this.eventList.length - 1].scope = r.scope + R()), this.eventList.length > wr && this.eventList.shift(), this.eventList.push({ scope: `${R()}-`, eventList: [] }));
2690
2691
  },
2691
2692
  recordCanvas: !0,
2692
2693
  checkoutEveryNms: Lr
@@ -2698,8 +2699,8 @@ class Rt {
2698
2699
  }
2699
2700
  }
2700
2701
  function Rr() {
2701
- $t(d, (e, t) => {
2702
- e.recordScreen !== t.recordScreen && (e.recordScreen ? $ = new Rt() : ($?.close(), $ = void 0));
2702
+ $t(d, (e, n) => {
2703
+ e.recordScreen !== n.recordScreen && (e.recordScreen ? $ = new Rt() : ($?.close(), $ = void 0));
2703
2704
  }), $ = d.value.recordScreen ? new Rt() : void 0;
2704
2705
  }
2705
2706
  function Ar() {
@@ -2707,16 +2708,16 @@ function Ar() {
2707
2708
  }
2708
2709
  function Ir(e) {
2709
2710
  if (!e) return e;
2710
- const t = typeof e != "string" && typeof e != "number" ? JSON.stringify(e) : e, n = Ae.encode(t), r = xt.gzip(n), o = Array.from(r);
2711
+ const n = typeof e != "string" && typeof e != "number" ? JSON.stringify(e) : e, t = Ae.encode(n), r = xt.gzip(t), o = Array.from(r);
2711
2712
  let a = "";
2712
2713
  return o.forEach((s) => {
2713
2714
  a += String.fromCharCode(s);
2714
2715
  }), Ae.btoa(a);
2715
2716
  }
2716
2717
  function kr(e) {
2717
- const n = Ae.atob(e).split("").map(function(l) {
2718
+ const t = Ae.atob(e).split("").map(function(l) {
2718
2719
  return l.charCodeAt(0);
2719
- }), r = new Uint8Array(n), o = xt.ungzip(r);
2720
+ }), r = new Uint8Array(t), o = xt.ungzip(r);
2720
2721
  let a = "";
2721
2722
  const s = 8 * 1024;
2722
2723
  let c;
@@ -2754,9 +2755,9 @@ class Pr {
2754
2755
  );
2755
2756
  }
2756
2757
  proxyAddCacheErrorA() {
2757
- let t = this.cacheErrorA.length;
2758
- if (!t) return;
2759
- const n = Oe(this.cacheErrorA, ...De), r = n.filter((a) => a.length < Le), o = n.filter((a) => a.length >= Le);
2758
+ let n = this.cacheErrorA.length;
2759
+ if (!n) return;
2760
+ const t = Oe(this.cacheErrorA, ...De), r = t.filter((a) => a.length < Le), o = t.filter((a) => a.length >= Le);
2760
2761
  if (r.length && T.emit(r.flat(1 / 0)), o.length) {
2761
2762
  const a = [];
2762
2763
  o.forEach((s) => {
@@ -2764,17 +2765,17 @@ class Pr {
2764
2765
  c.batchError = !0, c.batchErrorLength = s.length, c.batchErrorLastHappenTime = s[s.length - 1].triggerTime, a.push(c);
2765
2766
  }), this.cacheErrorB.push(...a), this.throttleProxyAddCacheErrorB();
2766
2767
  }
2767
- for (; t--; )
2768
+ for (; n--; )
2768
2769
  this.cacheErrorA.shift();
2769
2770
  }
2770
2771
  proxyAddCacheErrorB() {
2771
- let t = this.cacheErrorB.length;
2772
- if (!t) return;
2773
- const n = Oe(this.cacheErrorB, ...De);
2774
- for (; t--; )
2772
+ let n = this.cacheErrorB.length;
2773
+ if (!n) return;
2774
+ const t = Oe(this.cacheErrorB, ...De);
2775
+ for (; n--; )
2775
2776
  this.cacheErrorB.shift();
2776
2777
  const r = [];
2777
- n.forEach((o) => {
2778
+ t.forEach((o) => {
2778
2779
  const a = o[0];
2779
2780
  o.length > 1 && (a.batchErrorLength = o.reduce(
2780
2781
  (s, c) => s += c.batchErrorLength,
@@ -2787,7 +2788,7 @@ class Pr {
2787
2788
  * 用户突然关闭页面时调用此方法集成错误
2788
2789
  */
2789
2790
  sendAllCacheError() {
2790
- const t = this.cacheErrorA.concat(this.cacheErrorB), n = Oe(t, ...De), r = n.filter((a) => a.length < Le), o = n.filter((a) => a.length >= Le);
2791
+ const n = this.cacheErrorA.concat(this.cacheErrorB), t = Oe(n, ...De), r = t.filter((a) => a.length < Le), o = t.filter((a) => a.length >= Le);
2791
2792
  if (r.length && T.emit(r.flat(1 / 0), !0), o.length) {
2792
2793
  const a = [];
2793
2794
  o.forEach((s) => {
@@ -2796,8 +2797,8 @@ class Pr {
2796
2797
  }), T.emit(a, !0);
2797
2798
  }
2798
2799
  }
2799
- pushCacheErrorA(t) {
2800
- this.cacheErrorA.push(t), this.throttleProxyAddCacheErrorA(), this.cacheErrorA.length >= 50 && (this.proxyAddCacheErrorA(), this.proxyAddCacheErrorB());
2800
+ pushCacheErrorA(n) {
2801
+ this.cacheErrorA.push(n), this.throttleProxyAddCacheErrorA(), this.cacheErrorA.length >= 50 && (this.proxyAddCacheErrorA(), this.proxyAddCacheErrorB());
2801
2802
  }
2802
2803
  }
2803
2804
  let ot;
@@ -2805,30 +2806,30 @@ function xr() {
2805
2806
  ot = new Pr();
2806
2807
  }
2807
2808
  function Nr(e) {
2808
- return e.map((n) => {
2809
- if (n === null) return "null";
2810
- if (n === void 0) return "undefined";
2811
- if (typeof n == "string") return n;
2812
- if (typeof n == "number" || typeof n == "boolean") return String(n);
2813
- if (typeof n == "function")
2814
- return `[Function: ${n.name || "anonymous"}]`;
2815
- if (n instanceof Error)
2816
- return `${n.name}: ${n.message}${n.stack ? `
2817
- ` + n.stack : ""}`;
2818
- if (typeof n == "object")
2809
+ return e.map((t) => {
2810
+ if (t === null) return "null";
2811
+ if (t === void 0) return "undefined";
2812
+ if (typeof t == "string") return t;
2813
+ if (typeof t == "number" || typeof t == "boolean") return String(t);
2814
+ if (typeof t == "function")
2815
+ return `[Function: ${t.name || "anonymous"}]`;
2816
+ if (t instanceof Error)
2817
+ return `${t.name}: ${t.message}${t.stack ? `
2818
+ ` + t.stack : ""}`;
2819
+ if (typeof t == "object")
2819
2820
  try {
2820
- return JSON.stringify(n, null, 2);
2821
+ return JSON.stringify(t, null, 2);
2821
2822
  } catch {
2822
- return n.toString();
2823
+ return t.toString();
2823
2824
  }
2824
- return String(n);
2825
+ return String(t);
2825
2826
  }).join(" | ");
2826
2827
  }
2827
2828
  function At(e) {
2828
- const { stack: t = "", message: n = "" } = e, r = { eventId: O.CODE, errMessage: n, errStack: t };
2829
- if (t) {
2830
- const o = /^\s*at\s*([^(]+)\s*\((.+?):(\d+):(\d+)\)$/, a = /^\s*([^@]*)@(.+?):(\d+):(\d+)$/, s = t.replace(
2831
- new RegExp(`^[\\w\\s:]*${n}
2829
+ const { stack: n = "", message: t = "" } = e, r = { eventId: O.CODE, errMessage: t, errStack: n };
2830
+ if (n) {
2831
+ const o = /^\s*at\s*([^(]+)\s*\((.+?):(\d+):(\d+)\)$/, a = /^\s*([^@]*)@(.+?):(\d+):(\d+)$/, s = n.replace(
2832
+ new RegExp(`^[\\w\\s:]*${t}
2832
2833
  `),
2833
2834
  ""
2834
2835
  ), i = Mt(
@@ -2858,10 +2859,10 @@ function At(e) {
2858
2859
  }
2859
2860
  function Qe(e) {
2860
2861
  if (e instanceof Error) {
2861
- const { message: t, stack: n, lineNumber: r, fileName: o, columnNumber: a } = e;
2862
+ const { message: n, stack: t, lineNumber: r, fileName: o, columnNumber: a } = e;
2862
2863
  return o ? {
2863
- errMessage: t,
2864
- errStack: n,
2864
+ errMessage: n,
2865
+ errStack: t,
2865
2866
  eventId: O.CODE,
2866
2867
  line: r,
2867
2868
  // 不稳定属性 - 在某些浏览器可能是undefined,被废弃了
@@ -2879,25 +2880,18 @@ function Fr(e) {
2879
2880
  function It(e) {
2880
2881
  if (Fr(e))
2881
2882
  return { eventId: O.CODE, ...Qe(e.reason) };
2882
- const { target: t } = e;
2883
- if (t instanceof HTMLElement && t.nodeType === 1) {
2884
- const n = {
2885
- initiatorType: t.nodeName.toLowerCase(),
2883
+ const { target: n } = e;
2884
+ if (n instanceof HTMLElement && n.nodeType === 1) {
2885
+ const t = {
2886
+ initiatorType: n.nodeName.toLowerCase(),
2886
2887
  eventId: O.RESOURCE,
2887
2888
  requestUrl: ""
2888
2889
  };
2889
- switch (t.nodeName.toLowerCase()) {
2890
- case "link":
2891
- n.requestUrl = t.href;
2892
- break;
2893
- default:
2894
- n.requestUrl = t.currentSrc || t.src;
2895
- }
2896
- return n;
2890
+ return n.nodeName.toLowerCase() === "link" ? t.requestUrl = n.href : t.requestUrl = n.currentSrc || n.src, t;
2897
2891
  }
2898
2892
  if (e.error) {
2899
- const n = e.error;
2900
- return n.fileName = n.filename || e.filename, n.columnNumber = n.colno || e.colno, n.lineNumber = n.lineno || e.lineno, { eventId: O.CODE, ...Qe(n) };
2893
+ const t = e.error;
2894
+ return t.fileName = t.filename || e.filename, t.columnNumber = t.colno || e.colno, t.lineNumber = t.lineno || e.lineno, { eventId: O.CODE, ...Qe(t) };
2901
2895
  }
2902
2896
  return {
2903
2897
  eventId: O.CODE,
@@ -2909,23 +2903,23 @@ function It(e) {
2909
2903
  }
2910
2904
  function Xe(e) {
2911
2905
  if (!d.value.ignoreErrors.length) return !1;
2912
- let t = e.errMessage || e.message;
2913
- return t ? (t = String(t), d.value.ignoreErrors.some((n) => et(n) ? n.test(t) ? (ae(`ignoreErrors拦截成功 - 截条件:${n} 错误信息:${t}`), !0) : !1 : t === n ? (ae(`ignoreErrors拦截成功 - 截条件:${n} 错误信息:${t}`), !0) : !1)) : !1;
2906
+ let n = e.errMessage || e.message;
2907
+ return n ? (n = String(n), d.value.ignoreErrors.some((t) => et(t) ? t.test(n) ? (ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`), !0) : !1 : n === t ? (ae(`ignoreErrors拦截成功 - 截条件:${t} 错误信息:${n}`), !0) : !1)) : !1;
2914
2908
  }
2915
2909
  function Mr() {
2916
2910
  return JSON.parse(
2917
2911
  JSON.stringify(Ar())
2918
- ).slice(-2).map((t) => t.eventList).flat();
2912
+ ).slice(-2).map((n) => n.eventList).flat();
2919
2913
  }
2920
- function Re(e, t = !1) {
2921
- const n = {
2914
+ function Re(e, n = !1) {
2915
+ const t = {
2922
2916
  ...e,
2923
2917
  eventType: V.ERROR,
2924
2918
  recordscreen: d.value.recordScreen ? Ir(Mr()) : null,
2925
2919
  triggerPageUrl: F(),
2926
2920
  triggerTime: R()
2927
2921
  };
2928
- d.value.scopeError ? ot.pushCacheErrorA(n) : T.emit(n, t);
2922
+ d.value.scopeError ? ot.pushCacheErrorA(t) : T.emit(t, n);
2929
2923
  }
2930
2924
  function Vr() {
2931
2925
  d.value.error.core && (d.value.scopeError && (xr(), b.addEvent({
@@ -2936,25 +2930,25 @@ function Vr() {
2936
2930
  })), b.addEvent({
2937
2931
  type: f.ERROR,
2938
2932
  callback: (e) => {
2939
- const t = It(e);
2940
- Xe(t) || Re(t);
2933
+ const n = It(e);
2934
+ Xe(n) || Re(n);
2941
2935
  }
2942
2936
  }), b.addEvent({
2943
2937
  type: f.UNHANDLEDREJECTION,
2944
2938
  callback: (e) => {
2945
- const t = It(e);
2946
- Xe(t) || Re(t);
2939
+ const n = It(e);
2940
+ Xe(n) || Re(n);
2947
2941
  }
2948
2942
  }), b.addEvent({
2949
2943
  type: f.CONSOLEERROR,
2950
2944
  callback: (e) => {
2951
- const t = Qe(e);
2952
- Xe(t) || Re({ eventId: O.CODE, ...t });
2945
+ const n = Qe(e);
2946
+ Xe(n) || Re({ eventId: O.CODE, ...n });
2953
2947
  }
2954
2948
  }));
2955
2949
  }
2956
- function it(e = {}, t = !1) {
2957
- Re(e, t);
2950
+ function it(e = {}, n = !1) {
2951
+ Re(e, n);
2958
2952
  }
2959
2953
  function Hr() {
2960
2954
  b.removeEvents([
@@ -2963,22 +2957,22 @@ function Hr() {
2963
2957
  f.CONSOLEERROR
2964
2958
  ]);
2965
2959
  }
2966
- function Ue(e, t) {
2967
- return e.find((n) => n.hasAttribute && n.hasAttribute(t));
2960
+ function je(e, n) {
2961
+ return e.find((t) => t.hasAttribute && t.hasAttribute(n));
2968
2962
  }
2969
2963
  function kt(e) {
2970
2964
  if (e.length > 0) {
2971
- const t = ["em", "b", "strong", "span", "img", "i", "code"];
2965
+ const n = ["em", "b", "strong", "span", "img", "i", "code"];
2972
2966
  return e.filter(
2973
- ({ tagName: r }) => t.indexOf(r.toLowerCase()) >= 0
2967
+ ({ tagName: r }) => n.indexOf(r.toLowerCase()) >= 0
2974
2968
  ).length === e.length;
2975
2969
  }
2976
2970
  return !0;
2977
2971
  }
2978
- function Bt(e, t = "") {
2979
- if (!e) return t;
2980
- const n = e.parentElement, { id: r } = e, o = e.tagName.toLowerCase(), a = t ? `>${t}` : "";
2981
- return !n || n === document.documentElement || n === document.body ? `${o}${a}` : r ? `#${r}${a}` : Bt(n, `${o}${a}`);
2972
+ function Bt(e, n = "") {
2973
+ if (!e) return n;
2974
+ const t = e.parentElement, { id: r } = e, o = e.tagName.toLowerCase(), a = n ? `>${n}` : "";
2975
+ return !t || t === document.documentElement || t === document.body ? `${o}${a}` : r ? `#${r}${a}` : Bt(t, `${o}${a}`);
2982
2976
  }
2983
2977
  class Dr {
2984
2978
  eventId = "";
@@ -2999,9 +2993,9 @@ class Dr {
2999
2993
  // 被点击元素的层级
3000
2994
  triggerTime = -1;
3001
2995
  // 事件发生时间
3002
- constructor(t = {}) {
3003
- Object.keys(t).forEach((n) => {
3004
- fe(n, t) && (this[n] = t[n] || null);
2996
+ constructor(n = {}) {
2997
+ Object.keys(n).forEach((t) => {
2998
+ fe(t, n) && (this[t] = n[t] || null);
3005
2999
  });
3006
3000
  }
3007
3001
  }
@@ -3009,32 +3003,32 @@ function Xr() {
3009
3003
  b.addEvent({
3010
3004
  type: f.CLICK,
3011
3005
  callback: (e) => {
3012
- const t = new Dr({
3006
+ const n = new Dr({
3013
3007
  eventType: V.CLICK
3014
- }), n = e.composedPath() ? e.composedPath() : e.target ? Ur(e.target) : [], r = n.find(
3008
+ }), t = e.composedPath() ? e.composedPath() : e.target ? jr(e.target) : [], r = t.find(
3015
3009
  (i) => i.hasAttribute && (i.hasAttribute("data-warden-container") || i.hasAttribute("data-warden-event-id") || i.hasAttribute("data-warden-title"))
3016
3010
  );
3017
3011
  if (!r) return;
3018
3012
  const { scrollTop: o, scrollLeft: a } = document.documentElement, { top: s, left: c } = e.target.getBoundingClientRect();
3019
- t.x = c + a, t.y = s + o, t.triggerTime = R(), t.triggerPageUrl = F(), t.title = jr(r), t.eventId = Zr(n), t.params = Yr(n), t.elementPath = Bt(r).slice(-128), T.emit(t);
3013
+ n.x = c + a, n.y = s + o, n.triggerTime = R(), n.triggerPageUrl = F(), n.title = Ur(r), n.eventId = Zr(t), n.params = Yr(t), n.elementPath = Bt(r).slice(-128), T.emit(n);
3020
3014
  }
3021
3015
  });
3022
3016
  }
3023
- function Ur(e, t = { includeSelf: !0, order: "asc" }) {
3017
+ function jr(e, n = { includeSelf: !0, order: "asc" }) {
3024
3018
  if (!e) return [];
3025
- const { includeSelf: n, order: r } = t;
3026
- let o = n ? e : e.parentElement, a = [];
3019
+ const { includeSelf: t, order: r } = n;
3020
+ let o = t ? e : e.parentElement, a = [];
3027
3021
  for (; o; )
3028
3022
  a = r === "asc" ? a.concat(o) : [o].concat(a), o = o.parentElement;
3029
3023
  return a;
3030
3024
  }
3031
- function jr(e) {
3032
- const t = Tt(e);
3033
- if (t) return t;
3034
- let n = e.parentElement;
3035
- for (; n && n !== document.body && !n.hasAttribute("data-warden-container"); )
3036
- n = n.parentElement;
3037
- const r = Tt(n);
3025
+ function Ur(e) {
3026
+ const n = Tt(e);
3027
+ if (n) return n;
3028
+ let t = e.parentElement;
3029
+ for (; t && t !== document.body && !t.hasAttribute("data-warden-container"); )
3030
+ t = t.parentElement;
3031
+ const r = Tt(t);
3038
3032
  if (r) return r;
3039
3033
  const { tagName: o } = e;
3040
3034
  return !e.hasChildNodes() || o.toLowerCase() === "svg" ? Wr(e) : Br(e);
@@ -3043,33 +3037,33 @@ function Tt(e) {
3043
3037
  return e ? e.hasAttribute("data-warden-title") ? e.getAttribute("data-warden-title") : e.title : "";
3044
3038
  }
3045
3039
  function Wr(e) {
3046
- const { tagName: t, textContent: n } = e;
3047
- if (t === "IMG") return e.getAttribute("alt") || null;
3048
- if (t === "svg") {
3040
+ const { tagName: n, textContent: t } = e;
3041
+ if (n === "IMG") return e.getAttribute("alt") || null;
3042
+ if (n === "svg") {
3049
3043
  const r = [...Array(e.children)].find((o) => o.tagName === "use");
3050
3044
  if (r) return r.getAttribute("xlink:href") || null;
3051
3045
  }
3052
- return n;
3046
+ return t;
3053
3047
  }
3054
3048
  function Br(e) {
3055
- const { tagName: t, textContent: n } = e;
3056
- if (t === "A")
3057
- return kt([...Array.from(e.children)]) ? n : e.getAttribute("href") || null;
3058
- if (t === "BUTTON") {
3049
+ const { tagName: n, textContent: t } = e;
3050
+ if (n === "A")
3051
+ return kt([...Array.from(e.children)]) ? t : e.getAttribute("href") || null;
3052
+ if (n === "BUTTON") {
3059
3053
  const o = e.getAttribute("name"), a = kt([...Array.from(e.children)]);
3060
- return o || a ? n : e.getAttribute("href") || null;
3054
+ return o || a ? t : e.getAttribute("href") || null;
3061
3055
  }
3062
3056
  const { length: r } = [...Array.from(e.children)].filter(
3063
3057
  () => e.hasChildNodes()
3064
3058
  );
3065
- return r > 0 ? null : n;
3059
+ return r > 0 ? null : t;
3066
3060
  }
3067
3061
  function Zr(e = []) {
3068
- const t = Ue(e, "data-warden-event-id");
3069
- if (t) return t.getAttribute("data-warden-event-id");
3070
- const n = Ue(e, "title");
3071
- if (n) return n.getAttribute("title");
3072
- const r = Ue(e, "data-warden-container");
3062
+ const n = je(e, "data-warden-event-id");
3063
+ if (n) return n.getAttribute("data-warden-event-id");
3064
+ const t = je(e, "title");
3065
+ if (t) return t.getAttribute("title");
3066
+ const r = je(e, "data-warden-container");
3073
3067
  if (r) {
3074
3068
  if (r.getAttribute("data-warden-event-id"))
3075
3069
  return r.getAttribute("data-warden-event-id");
@@ -3081,13 +3075,13 @@ function Zr(e = []) {
3081
3075
  return e[0].tagName.toLowerCase();
3082
3076
  }
3083
3077
  function Yr(e = []) {
3084
- const t = /^data-warden-/;
3085
- let n, r = -1;
3078
+ const n = /^data-warden-/;
3079
+ let t, r = -1;
3086
3080
  for (let i = 0; i < e.length; i++) {
3087
3081
  const u = e[i];
3088
- if (n = (u && u.attributes && Array.from(u.attributes) || []).find(
3089
- (h) => h.nodeName.match(t) ? h.nodeName.match(t) : h.nodeName.indexOf("data-warden-container") !== -1
3090
- ), n) {
3082
+ if (t = (u && u.attributes && Array.from(u.attributes) || []).find(
3083
+ (h) => h.nodeName.match(n) ? h.nodeName.match(n) : h.nodeName.indexOf("data-warden-container") !== -1
3084
+ ), t) {
3091
3085
  r = i;
3092
3086
  break;
3093
3087
  }
@@ -3096,14 +3090,14 @@ function Yr(e = []) {
3096
3090
  const o = e[r], a = Array.from(o.attributes) || [], s = {}, c = ["container", "title", "event-id"];
3097
3091
  return a.forEach((i) => {
3098
3092
  if (i.nodeName.indexOf("data-warden") < 0) return;
3099
- const u = i.nodeName.replace(t, "");
3093
+ const u = i.nodeName.replace(n, "");
3100
3094
  c.includes(u) || (s[u] = i.nodeValue);
3101
3095
  }), s;
3102
3096
  }
3103
3097
  function Gr() {
3104
3098
  d.value.event.core && Xr();
3105
3099
  }
3106
- function _r(e = {}, t = !1) {
3100
+ function _r(e = {}, n = !1) {
3107
3101
  T.emit(
3108
3102
  {
3109
3103
  ...e,
@@ -3111,7 +3105,7 @@ function _r(e = {}, t = !1) {
3111
3105
  triggerTime: R(),
3112
3106
  triggerPageUrl: F()
3113
3107
  },
3114
- t
3108
+ n
3115
3109
  );
3116
3110
  }
3117
3111
  function zr() {
@@ -3143,12 +3137,12 @@ const Q = {
3143
3137
  workerStart: 0
3144
3138
  };
3145
3139
  function Ct(e) {
3146
- const t = ["img", "script", "link", "audio", "video", "css"], n = e.getEntriesByType(
3140
+ const n = ["img", "script", "link", "audio", "video", "css"], t = e.getEntriesByType(
3147
3141
  "resource"
3148
3142
  ), r = [];
3149
- return n.forEach((o) => {
3143
+ return t.forEach((o) => {
3150
3144
  const { initiatorType: a = "" } = o;
3151
- if (t.indexOf(a.toLowerCase()) < 0) return;
3145
+ if (n.indexOf(a.toLowerCase()) < 0) return;
3152
3146
  if (we.length) {
3153
3147
  const c = we.findIndex(
3154
3148
  (i) => i.src === o.name
@@ -3176,9 +3170,9 @@ function Ct(e) {
3176
3170
  let pe = null, ve = null;
3177
3171
  function qr() {
3178
3172
  const e = ["img", "script", "link"];
3179
- pe = new MutationObserver((t) => {
3180
- for (let n = 0; n < t.length; n += 1) {
3181
- const r = R(), { addedNodes: o = [] } = t[n];
3173
+ pe = new MutationObserver((n) => {
3174
+ for (let t = 0; t < n.length; t += 1) {
3175
+ const r = R(), { addedNodes: o = [] } = n[t];
3182
3176
  o.forEach((a) => {
3183
3177
  const { nodeName: s } = a;
3184
3178
  e.indexOf(s.toLowerCase()) !== -1 && (D(a, f.LOAD, function() {
@@ -3217,35 +3211,35 @@ function qr() {
3217
3211
  });
3218
3212
  }
3219
3213
  function $r() {
3220
- const e = (t) => {
3221
- const n = { ...t, triggerPageUrl: F() };
3222
- C.firstScreen ? C.firstScreen.push({ ...n }) : C.firstScreen = [{ ...n }], T.emit(
3214
+ const e = (n) => {
3215
+ const t = { ...n, triggerPageUrl: F() };
3216
+ C.firstScreen ? C.firstScreen.push({ ...t }) : C.firstScreen = [{ ...t }], T.emit(
3223
3217
  ce({
3224
- ...n,
3218
+ ...t,
3225
3219
  eventType: V.PERFORMANCE,
3226
3220
  eventId: O.PAGE
3227
3221
  })
3228
3222
  );
3229
3223
  };
3230
- new PerformanceObserver((t, n) => {
3231
- const r = t.getEntriesByName("first-contentful-paint")[0];
3232
- r && (n.disconnect(), e({ fcp: r.startTime }));
3233
- }).observe({ type: "paint", buffered: !0 }), new PerformanceObserver((t, n) => {
3234
- const r = t.getEntriesByType("largest-contentful-paint").at(-1);
3235
- r && (n.disconnect(), e({ lcp: r.startTime }));
3224
+ new PerformanceObserver((n, t) => {
3225
+ const r = n.getEntriesByName("first-contentful-paint")[0];
3226
+ r && (t.disconnect(), e({ fcp: r.startTime }));
3227
+ }).observe({ type: "paint", buffered: !0 }), new PerformanceObserver((n, t) => {
3228
+ const r = n.getEntriesByType("largest-contentful-paint").at(-1);
3229
+ r && (t.disconnect(), e({ lcp: r.startTime }));
3236
3230
  }).observe({ type: "largest-contentful-paint", buffered: !0 });
3237
3231
  }
3238
3232
  function Qr() {
3239
- const e = {}, { performance: t } = p;
3240
- let n = t.timing;
3233
+ const e = {}, { performance: n } = p;
3234
+ let t = n.timing;
3241
3235
  if (e.fmp = 0, Q.getEntriesByType) {
3242
- const o = t.getEntriesByType("paint");
3236
+ const o = n.getEntriesByType("paint");
3243
3237
  if (o.length && (e.fmp = o[o.length - 1].startTime), Q.PerformanceNavigationTiming) {
3244
- const a = t.getEntriesByType("navigation")[0];
3245
- a && (n = a);
3238
+ const a = n.getEntriesByType("navigation")[0];
3239
+ a && (t = a);
3246
3240
  }
3247
3241
  }
3248
- e.fmp && Q.PerformanceNavigationTiming && (e.fmp -= n.fetchStart), e.whiteScreenTime = n.responseEnd - n.fetchStart, e.tti = n.domInteractive - n.fetchStart, e.ready = n.domContentLoadedEventEnd - n.fetchStart, e.loadTime = n.loadEventStart - n.fetchStart, e.firstByte = n.responseStart - n.domainLookupStart, e.dns = n.domainLookupEnd - n.domainLookupStart, e.dnsCache = n.domainLookupStart - n.fetchStart, e.tcp = n.connectEnd - n.connectStart, e.ttfb = n.responseStart - n.requestStart, e.trans = n.responseEnd - n.responseStart, e.dom = n.domInteractive - n.responseEnd, e.res = n.loadEventStart - n.domContentLoadedEventEnd, e.ssllink = n.connectEnd - n.secureConnectionStart, e.redirect = n.redirectEnd - n.redirectStart, e.unloadTime = n.unloadEventEnd - n.unloadEventStart;
3242
+ e.fmp && Q.PerformanceNavigationTiming && (e.fmp -= t.fetchStart), e.whiteScreenTime = t.responseEnd - t.fetchStart, e.tti = t.domInteractive - t.fetchStart, e.ready = t.domContentLoadedEventEnd - t.fetchStart, e.loadTime = t.loadEventStart - t.fetchStart, e.firstByte = t.responseStart - t.domainLookupStart, e.dns = t.domainLookupEnd - t.domainLookupStart, e.dnsCache = t.domainLookupStart - t.fetchStart, e.tcp = t.connectEnd - t.connectStart, e.ttfb = t.responseStart - t.requestStart, e.trans = t.responseEnd - t.responseStart, e.dom = t.domInteractive - t.responseEnd, e.res = t.loadEventStart - t.domContentLoadedEventEnd, e.ssllink = t.connectEnd - t.secureConnectionStart, e.redirect = t.redirectEnd - t.redirectStart, e.unloadTime = t.unloadEventEnd - t.unloadEventStart;
3249
3243
  const r = { ...e, triggerPageUrl: F() };
3250
3244
  C.firstScreen ? C.firstScreen.push({ ...r }) : C.firstScreen = [{ ...r }], T.emit(
3251
3245
  ce({
@@ -3266,14 +3260,14 @@ function Kr() {
3266
3260
  }
3267
3261
  }));
3268
3262
  }
3269
- function at(e = {}, t = !1) {
3270
- const n = {
3263
+ function at(e = {}, n = !1) {
3264
+ const t = {
3271
3265
  ...e,
3272
3266
  triggerTime: R(),
3273
3267
  triggerPageUrl: F(),
3274
3268
  eventType: V.PERFORMANCE
3275
3269
  };
3276
- T.emit(ce(n), t);
3270
+ T.emit(ce(t), n);
3277
3271
  }
3278
3272
  function eo() {
3279
3273
  pe && (pe.disconnect(), pe = null), ve && (ve.disconnect(), ve = null);
@@ -3281,8 +3275,8 @@ function eo() {
3281
3275
  function to() {
3282
3276
  b.addEvent({
3283
3277
  type: f.FETCH,
3284
- callback: async (e, t = {}, n, r, o = {}) => {
3285
- const { method: a = "GET", body: s = {} } = t, { url: c, status: i, statusText: u } = n, l = String(a).toLocaleLowerCase();
3278
+ callback: async (e, n = {}, t, r, o = {}) => {
3279
+ const { method: a = "GET", body: s = {} } = n, { url: c, status: i, statusText: u } = t, l = String(a).toLocaleLowerCase();
3286
3280
  Zt(c) || (i === 200 || i === 304 ? d.value.performance.server && at({
3287
3281
  eventId: O.SERVER,
3288
3282
  requestUrl: c,
@@ -3317,9 +3311,9 @@ class no {
3317
3311
  // get请求的参数
3318
3312
  triggerTime = -1;
3319
3313
  // 请求发生时间
3320
- constructor(t = {}) {
3321
- Object.keys(t).forEach((n) => {
3322
- fe(n, t) && (this[n] = t[n] || null);
3314
+ constructor(n = {}) {
3315
+ Object.keys(n).forEach((t) => {
3316
+ fe(t, n) && (this[t] = n[t] || null);
3323
3317
  });
3324
3318
  }
3325
3319
  }
@@ -3327,14 +3321,14 @@ function ro() {
3327
3321
  const e = new no();
3328
3322
  b.addEvent({
3329
3323
  type: f.XHROPEN,
3330
- callback: (t, n) => {
3331
- e.requestMethod = String(t).toLocaleLowerCase(), e.requestUrl = n, e.requestParams = Be(n);
3324
+ callback: (n, t) => {
3325
+ e.requestMethod = String(n).toLocaleLowerCase(), e.requestUrl = t, e.requestParams = Be(t);
3332
3326
  }
3333
3327
  }), b.addEvent({
3334
3328
  type: f.XHRSEND,
3335
- callback: (t, n) => {
3336
- D(t, f.READYSTATECHANGE, function() {
3337
- const { readyState: r, status: o, responseURL: a, statusText: s } = t, c = t.responseType === "" || t.responseType === "text" ? t.responseText : "";
3329
+ callback: (n, t) => {
3330
+ D(n, f.READYSTATECHANGE, function() {
3331
+ const { readyState: r, status: o, responseURL: a, statusText: s } = n, c = n.responseType === "" || n.responseType === "text" ? n.responseText : "";
3338
3332
  if (r === 4) {
3339
3333
  const i = a || e.requestUrl;
3340
3334
  if (Zt(i)) return;
@@ -3345,7 +3339,7 @@ function ro() {
3345
3339
  requestType: "xhr",
3346
3340
  responseStatus: o,
3347
3341
  duration: R() - e.triggerTime,
3348
- params: e.requestMethod === "post" ? n : e.requestParams
3342
+ params: e.requestMethod === "post" ? t : e.requestParams
3349
3343
  }) : d.value.error.server && it({
3350
3344
  eventId: O.SERVER,
3351
3345
  errMessage: s || c,
@@ -3353,7 +3347,7 @@ function ro() {
3353
3347
  requestMethod: e.requestMethod,
3354
3348
  requestType: "xhr",
3355
3349
  responseStatus: o,
3356
- params: e.requestMethod === "post" ? n : e.requestParams
3350
+ params: e.requestMethod === "post" ? t : e.requestParams
3357
3351
  });
3358
3352
  }
3359
3353
  }), e.triggerTime = R();
@@ -3361,7 +3355,7 @@ function ro() {
3361
3355
  });
3362
3356
  }
3363
3357
  function Zt(e) {
3364
- return !d.value.ignoreRequest.length || !e ? !1 : d.value.ignoreRequest.some((t) => et(t) ? !!t.test(e) : e === t);
3358
+ return !d.value.ignoreRequest.length || !e ? !1 : d.value.ignoreRequest.some((n) => et(n) ? !!n.test(e) : e === n);
3365
3359
  }
3366
3360
  function oo() {
3367
3361
  !d.value.performance.server && !d.value.error.server || (ro(), to());
@@ -3376,31 +3370,31 @@ function io() {
3376
3370
  let K = F();
3377
3371
  function ao() {
3378
3372
  if (!d.value.pv.core) return;
3379
- let e = !1, t = !1;
3373
+ let e = !1, n = !1;
3380
3374
  he({ referer: document.referrer }), b.addEvent({
3381
3375
  type: f.HISTORYPUSHSTATE,
3382
3376
  callback: () => {
3383
- t || (e = !1, he({ action: "navigation" }));
3377
+ n || (e = !1, he({ action: "navigation" }));
3384
3378
  }
3385
3379
  }), b.addEvent({
3386
3380
  type: f.HISTORYREPLACESTATE,
3387
3381
  callback: () => {
3388
- t = !0, e = !1, he({ action: "navigation" }), setTimeout(() => {
3389
- t = !1;
3382
+ n = !0, e = !1, he({ action: "navigation" }), setTimeout(() => {
3383
+ n = !1;
3390
3384
  }, 100);
3391
3385
  }
3392
3386
  }), b.addEvent({
3393
3387
  type: f.HASHCHANGE,
3394
3388
  callback: () => {
3395
- t || (e || he(), e = !1);
3389
+ n || (e || he(), e = !1);
3396
3390
  }
3397
3391
  }), b.addEvent({
3398
3392
  type: f.POPSTATE,
3399
3393
  callback: () => {
3400
- if (!t) {
3394
+ if (!n) {
3401
3395
  if (p.location.hash !== "") {
3402
- const n = K.indexOf("#") > 0 ? K.slice(0, K.indexOf("#")) : K;
3403
- if (p.location.href.slice(0, p.location.href.indexOf("#")) === n)
3396
+ const t = K.indexOf("#") > 0 ? K.slice(0, K.indexOf("#")) : K;
3397
+ if (p.location.href.slice(0, p.location.href.indexOf("#")) === t)
3404
3398
  return;
3405
3399
  }
3406
3400
  e = !0, he();
@@ -3409,15 +3403,15 @@ function ao() {
3409
3403
  }), b.addEvent({
3410
3404
  type: f.BEFOREUNLOAD,
3411
3405
  callback: () => {
3412
- const n = R() - Ke;
3413
- Object.values(ge).length > 0 && n > 100 && T.emit({ ...ge, durationTime: n }, !0);
3406
+ const t = R() - Ke;
3407
+ Object.values(ge).length > 0 && t > 100 && T.emit({ ...ge, durationTime: t }, !0);
3414
3408
  }
3415
3409
  });
3416
3410
  }
3417
3411
  let Ke = R(), ge = {};
3418
3412
  function he(e = {}) {
3419
- const { referer: t = K, action: n, params: r, title: o } = e;
3420
- let a = n;
3413
+ const { referer: n = K, action: t, params: r, title: o } = e;
3414
+ let a = t;
3421
3415
  a || (a = In[performance.navigation.type] || ""), setTimeout(
3422
3416
  () => {
3423
3417
  K = F();
@@ -3425,7 +3419,7 @@ function he(e = {}) {
3425
3419
  eventType: V.PV,
3426
3420
  eventId: le.pageId,
3427
3421
  triggerPageUrl: F(),
3428
- referer: t,
3422
+ referer: n,
3429
3423
  params: r,
3430
3424
  title: o || document.title,
3431
3425
  action: a,
@@ -3441,7 +3435,7 @@ function he(e = {}) {
3441
3435
  o ? 0 : 17
3442
3436
  );
3443
3437
  }
3444
- function so(e = {}, t = !1) {
3438
+ function so(e = {}, n = !1) {
3445
3439
  T.emit(
3446
3440
  {
3447
3441
  referer: K,
@@ -3452,7 +3446,7 @@ function so(e = {}, t = !1) {
3452
3446
  triggerPageUrl: F(),
3453
3447
  triggerTime: R()
3454
3448
  },
3455
- t
3449
+ n
3456
3450
  );
3457
3451
  }
3458
3452
  function co() {
@@ -3477,10 +3471,10 @@ class uo {
3477
3471
  * 针对 threshold 生成不同监听对象 (不允许同一个dom被两个监听对象监听)
3478
3472
  * @param threshold 阈值
3479
3473
  */
3480
- initObserver(t) {
3474
+ initObserver(n) {
3481
3475
  return new IntersectionObserver(
3482
- (n) => {
3483
- n.forEach((r) => {
3476
+ (t) => {
3477
+ t.forEach((r) => {
3484
3478
  if (r.isIntersecting) {
3485
3479
  const o = this.targetMap.find(
3486
3480
  (a) => a.target === r.target
@@ -3499,18 +3493,18 @@ class uo {
3499
3493
  },
3500
3494
  {
3501
3495
  ...this.options,
3502
- threshold: t
3496
+ threshold: n
3503
3497
  }
3504
3498
  );
3505
3499
  }
3506
3500
  /**
3507
3501
  * 发送事件
3508
3502
  */
3509
- sendEvent(t) {
3503
+ sendEvent(n) {
3510
3504
  T.emit({
3511
3505
  eventType: V.INTERSECTION,
3512
3506
  triggerPageUrl: F(),
3513
- ...t
3507
+ ...n
3514
3508
  });
3515
3509
  }
3516
3510
  /**
@@ -3518,8 +3512,8 @@ class uo {
3518
3512
  * 分为初始加载和过程中加载
3519
3513
  * @param params 附带的额外参数
3520
3514
  */
3521
- observe(t) {
3522
- Pe(t).forEach((r) => {
3515
+ observe(n) {
3516
+ Pe(n).forEach((r) => {
3523
3517
  const o = Pe(r.target);
3524
3518
  Object.prototype.hasOwnProperty.call(this.ioMap, r.threshold) || (this.ioMap[r.threshold] = this.initObserver(r.threshold || 0.5)), o.forEach((a) => {
3525
3519
  this.targetMap.findIndex(
@@ -3537,8 +3531,8 @@ class uo {
3537
3531
  /**
3538
3532
  * 对元素停止观察
3539
3533
  */
3540
- unobserve(t) {
3541
- Pe(t).forEach((r) => {
3534
+ unobserve(n) {
3535
+ Pe(n).forEach((r) => {
3542
3536
  const o = this.targetMap.findIndex(
3543
3537
  (s) => s.target === r
3544
3538
  );
@@ -3551,8 +3545,8 @@ class uo {
3551
3545
  * 对所有元素停止观察
3552
3546
  */
3553
3547
  disconnect() {
3554
- for (const t in this.ioMap)
3555
- Object.prototype.hasOwnProperty.call(this.ioMap, t) && this.ioMap[t].disconnect();
3548
+ for (const n in this.ioMap)
3549
+ Object.prototype.hasOwnProperty.call(this.ioMap, n) && this.ioMap[n].disconnect();
3556
3550
  this.targetMap = [], this.ioMap = {};
3557
3551
  }
3558
3552
  }
@@ -3597,21 +3591,21 @@ function So() {
3597
3591
  if (P("getFirstScreen"))
3598
3592
  return { ...C.firstScreen };
3599
3593
  }
3600
- function Lo(e = {}, t = !1) {
3594
+ function Lo(e = {}, n = !1) {
3601
3595
  if (P("traceError"))
3602
- return it(e, t);
3596
+ return it(e, n);
3603
3597
  }
3604
- function wo(e = {}, t = !1) {
3598
+ function wo(e = {}, n = !1) {
3605
3599
  if (P("tracePerformance"))
3606
- return at(e, t);
3600
+ return at(e, n);
3607
3601
  }
3608
- function Ro(e = {}, t = !1) {
3602
+ function Ro(e = {}, n = !1) {
3609
3603
  if (P("traceCustomEvent"))
3610
- return _r(e, t);
3604
+ return _r(e, n);
3611
3605
  }
3612
- function Ao(e = {}, t = !1) {
3606
+ function Ao(e = {}, n = !1) {
3613
3607
  if (P("tracePageView"))
3614
- return so(e, t);
3608
+ return so(e, n);
3615
3609
  }
3616
3610
  function Io() {
3617
3611
  return Wt().then((e) => e[0]);
@@ -3636,7 +3630,7 @@ function Po(e) {
3636
3630
  function xo() {
3637
3631
  return Ze(d.value);
3638
3632
  }
3639
- const Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3633
+ const Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3640
3634
  __proto__: null,
3641
3635
  afterSendData: vo,
3642
3636
  beforePushEventList: mo,
@@ -3665,10 +3659,9 @@ function No(e) {
3665
3659
  function jo() {
3666
3660
  zr(), Hr(), io(), eo(), fo(), Tr(), co(), Yn(), T && T.destroy(), p.__webTracingInit__ = !1;
3667
3661
  }
3668
- function Fo(e, t) {
3669
- No(t);
3662
+ function Uo(e, n) {
3663
+ No(n);
3670
3664
  }
3671
- const Wo = { install: Fo };
3672
3665
  export {
3673
3666
  V as SEDNEVENTTYPES,
3674
3667
  O as SENDID,
@@ -3676,9 +3669,8 @@ export {
3676
3669
  vo as afterSendData,
3677
3670
  mo as beforePushEventList,
3678
3671
  po as beforeSendData,
3679
- Wo as default,
3680
3672
  jo as destroyTracing,
3681
- Uo as exportMethods,
3673
+ Xo as exportMethods,
3682
3674
  Eo as getBaseInfo,
3683
3675
  So as getFirstScreen,
3684
3676
  Io as getIPs,
@@ -3686,6 +3678,7 @@ export {
3686
3678
  yo as getSDKUserUuid,
3687
3679
  bo as getUserUuid,
3688
3680
  No as init,
3681
+ Uo as install,
3689
3682
  Co as intersectionDisconnect,
3690
3683
  ko as intersectionObserver,
3691
3684
  To as intersectionUnobserve,