aibox-web-tracing 0.0.1 → 0.0.2

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