@picked/analytics 0.0.1-dev.1764634757151 → 0.0.1-dev.1764694362099

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.
@@ -1,13 +1,14 @@
1
- import { trackSelfDescribingEvent as wt, newTracker as Pt, addGlobalContexts as Vt, enableActivityTracking as St, enableActivityTrackingCallback as Yt } from "@snowplow/browser-tracker";
2
- import { ButtonClickTrackingPlugin as Bt, enableButtonClickTracking as Ht } from "@snowplow/browser-plugin-button-click-tracking";
3
- import { PerformanceNavigationTimingPlugin as qt } from "@snowplow/browser-plugin-performance-navigation-timing";
4
- import { ErrorTrackingPlugin as At, enableErrorTracking as Ot } from "@snowplow/browser-plugin-error-tracking";
5
- import { WebVitalsPlugin as Ft } from "@snowplow/browser-plugin-web-vitals";
6
- import { supportsDocument as X, supportsWindow as Rt, supportsCookies as jt } from "@picked/client";
1
+ import { trackSelfDescribingEvent as Nt, newTracker as wt, addGlobalContexts as Pt, enableActivityTracking as Vt, enableActivityTrackingCallback as St } from "@snowplow/browser-tracker";
2
+ import { ButtonClickTrackingPlugin as Yt, enableButtonClickTracking as Bt } from "@snowplow/browser-plugin-button-click-tracking";
3
+ import { PerformanceNavigationTimingPlugin as Ht } from "@snowplow/browser-plugin-performance-navigation-timing";
4
+ import { ErrorTrackingPlugin as qt, enableErrorTracking as Ft } from "@snowplow/browser-plugin-error-tracking";
5
+ import { WebVitalsPlugin as Ot } from "@snowplow/browser-plugin-web-vitals";
6
+ import { supportsDocument as X, supportsWindow as jt, supportsCookies as At } from "@picked/client";
7
+ import { getFingerprintVisitorId as Rt } from "@picked/fingerprintjs";
7
8
  function J(t, e) {
8
9
  return `iglu:dev.pckd/${t}/jsonschema/${e}`;
9
10
  }
10
- function $(t, ...e) {
11
+ function g(t, ...e) {
11
12
  }
12
13
  function L(t, ...e) {
13
14
  }
@@ -34,7 +35,7 @@ function n(t, e, s) {
34
35
  function u(t, e) {
35
36
  return (s, i) => {
36
37
  const a = e(s, i);
37
- wt(a);
38
+ Nt(a);
38
39
  };
39
40
  }
40
41
  function _(t, e, s = { passive: !0 }) {
@@ -65,7 +66,7 @@ function Wt(t, e) {
65
66
  function h(t, e) {
66
67
  const s = /* @__PURE__ */ new Set();
67
68
  return (i) => {
68
- if (s.has(t) || !Rt())
69
+ if (s.has(t) || !jt())
69
70
  return;
70
71
  function a(o) {
71
72
  const r = i();
@@ -85,13 +86,13 @@ function f(t) {
85
86
  }
86
87
  const D = "unknown";
87
88
  function d(t) {
88
- var i, a, o;
89
- const e = It(), s = {
89
+ var a, o, r;
90
+ const e = It(), s = Rt(), i = {
90
91
  id: t.sessionId || null
91
92
  };
92
- return t.isUser !== void 0 && (s.is_user = t.isUser), e && (s.gaid = e), (i = t.shopifySession) != null && i.clientId && (s.shopify_client_id = t.shopifySession.clientId), (a = t.shopifySession) != null && a.customerId && (s.shopify_customer_id = t.shopifySession.customerId), (o = t.shopifySession) != null && o.checkoutToken && (s.shopify_checkout_token = t.shopifySession.checkoutToken), s;
93
+ return t.isUser !== void 0 && (i.is_user = t.isUser), s && (i.fingerprintjs_visitor_id = s.text()), e && (i.gaid = e), (a = t.shopifySession) != null && a.clientId && (i.shopify_client_id = t.shopifySession.clientId), (o = t.shopifySession) != null && o.customerId && (i.shopify_customer_id = t.shopifySession.customerId), (r = t.shopifySession) != null && r.checkoutToken && (i.shopify_checkout_token = t.shopifySession.checkoutToken), i;
93
94
  }
94
- function j(t) {
95
+ function R(t) {
95
96
  if (t.fields)
96
97
  return {
97
98
  items: t.fields.map(({ id: e, type: s, label: i, options: a }) => ({
@@ -126,7 +127,7 @@ function x(t, e = !1) {
126
127
  title: D
127
128
  };
128
129
  }
129
- function An(t, e = !1) {
130
+ function Fn(t, e = !1) {
130
131
  const { productList: s } = t;
131
132
  if (s) {
132
133
  const i = {};
@@ -213,7 +214,7 @@ function w(t) {
213
214
  title: D
214
215
  });
215
216
  }
216
- function Fn(t) {
217
+ function jn(t) {
217
218
  const { modal: e } = t;
218
219
  return e ? {
219
220
  id: e.id,
@@ -239,7 +240,7 @@ function y(t) {
239
240
  return e;
240
241
  }
241
242
  function It() {
242
- if (!X() || !jt())
243
+ if (!X() || !At())
243
244
  return null;
244
245
  const t = "_ga=", e = document.cookie ? document.cookie.split(";") : [];
245
246
  for (const s of e) {
@@ -253,23 +254,23 @@ function It() {
253
254
  }
254
255
  function Mt(t) {
255
256
  const e = [];
256
- return t.trackErrors && ($(), e.push(At())), t.trackVitals && ($(), e.push(Ft())), t.trackPerformance && ($(), e.push(qt())), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && e.push(Bt()), e;
257
+ return t.trackErrors && (g(), e.push(qt())), t.trackVitals && (g(), e.push(Ot())), t.trackPerformance && (g(), e.push(Ht())), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && e.push(Yt()), e;
257
258
  }
258
259
  function Ut(t) {
259
- t.trackActivity && !t.trackActivityCallback && ($(), St({
260
+ t.trackActivity && !t.trackActivityCallback && (g(), Vt({
260
261
  minimumVisitLength: 30,
261
262
  heartbeatDelay: 10
262
- })), t.trackActivity && t.trackActivityCallback && ($(), Yt({
263
+ })), t.trackActivity && t.trackActivityCallback && (g(), St({
263
264
  minimumVisitLength: 30,
264
265
  heartbeatDelay: 10,
265
266
  callback: t.trackActivityCallback
266
- })), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && ($(), Ht({
267
+ })), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && (g(), Bt({
267
268
  filter: t.trackButtonClickAllowList ? {
268
269
  allowlist: t.trackButtonClickAllowList
269
270
  } : t.trackButtonClickFilter
270
- })), t.trackErrors && ($(), Ot());
271
+ })), t.trackErrors && (g(), Ft());
271
272
  }
272
- function Rn({
273
+ function An({
273
274
  organizationId: t,
274
275
  projectId: e,
275
276
  cvlyX: s,
@@ -280,20 +281,20 @@ function Rn({
280
281
  trackWebPage: c = !0,
281
282
  trackSessions: m = !0,
282
283
  trackBrowser: C = !0,
283
- trackActivity: $t = !0,
284
+ trackActivity: bt = !0,
284
285
  trackErrors: gt = !0,
285
- trackActivityCallback: Lt,
286
- trackButtonClickAllowList: ht
286
+ trackActivityCallback: $t,
287
+ trackButtonClickAllowList: Lt
287
288
  }) {
288
- $();
289
+ g();
289
290
  const W = {
290
291
  trackVitals: o,
291
292
  trackErrors: gt,
292
- trackActivity: $t,
293
+ trackActivity: bt,
293
294
  trackPerformance: r,
294
- trackActivityCallback: Lt,
295
- trackButtonClickAllowList: ht
296
- }, yt = {
295
+ trackActivityCallback: $t,
296
+ trackButtonClickAllowList: Lt
297
+ }, ht = {
297
298
  appId: a,
298
299
  platform: "web",
299
300
  contexts: {
@@ -302,14 +303,14 @@ function Rn({
302
303
  browser: C || !1
303
304
  },
304
305
  plugins: Mt(W)
305
- }, Nt = Pt(a, i, yt);
306
- return zt({
306
+ }, yt = wt(a, i, ht);
307
+ return Gt({
307
308
  organizationId: t,
308
309
  projectId: e,
309
310
  cvlyX: s
310
- }), Ut(W), Nt;
311
+ }), Ut(W), yt;
311
312
  }
312
- function zt({ organizationId: t, projectId: e, cvlyX: s }) {
313
+ function Gt({ organizationId: t, projectId: e, cvlyX: s }) {
313
314
  if (!t || !e)
314
315
  throw new Error("bindGlobalContext: Both organizationId and projectId are required");
315
316
  const i = [];
@@ -324,10 +325,10 @@ function zt({ organizationId: t, projectId: e, cvlyX: s }) {
324
325
  vercel_env: s.vercelEnv,
325
326
  vercel_url: s.vercelUrl
326
327
  })
327
- ), Vt(i);
328
+ ), Pt(i);
328
329
  }
329
330
  const tt = "app_close";
330
- function Gt(t, e) {
331
+ function zt(t, e) {
331
332
  const s = f(t), i = d(t), a = p(t), o = x(t);
332
333
  return l(
333
334
  tt,
@@ -340,7 +341,7 @@ function Gt(t, e) {
340
341
  e
341
342
  );
342
343
  }
343
- const jn = u(tt, Gt), et = "app_initialize";
344
+ const Rn = u(tt, zt), et = "app_load";
344
345
  function Kt(t, e) {
345
346
  const s = f(t), i = d(t), a = p(t), o = x(t);
346
347
  return l(
@@ -354,7 +355,7 @@ function Kt(t, e) {
354
355
  e
355
356
  );
356
357
  }
357
- const Wn = u(et, Kt), nt = "app_load";
358
+ const Wn = u(et, Kt), nt = "app_open";
358
359
  function Xt(t, e) {
359
360
  const s = f(t), i = d(t), a = p(t), o = x(t);
360
361
  return l(
@@ -368,25 +369,11 @@ function Xt(t, e) {
368
369
  e
369
370
  );
370
371
  }
371
- const In = u(nt, Xt), st = "app_open";
372
+ const In = u(nt, Xt), st = "experience_load";
372
373
  function Jt(t, e) {
373
- const s = f(t), i = d(t), a = p(t), o = x(t);
374
- return l(
375
- st,
376
- [
377
- n("feature_list", "2-0-0", s),
378
- n("session", "1-0-3", i),
379
- o ? n("step", "1-0-0", o) : void 0,
380
- a ? n("experience", "1-0-1", a) : void 0
381
- ],
382
- e
383
- );
384
- }
385
- const Mn = u(st, Jt), ot = "experience_load";
386
- function Qt(t, e) {
387
374
  const s = f(t), i = d(t), a = p(t, !0), o = x(t);
388
375
  return l(
389
- ot,
376
+ st,
390
377
  [
391
378
  n("feature_list", "2-0-0", s),
392
379
  n("session", "1-0-3", i),
@@ -396,11 +383,11 @@ function Qt(t, e) {
396
383
  e
397
384
  );
398
385
  }
399
- const Un = u(ot, Qt), at = "feature_decide";
400
- function Zt(t, e) {
386
+ const Mn = u(st, Jt), ot = "feature_decide";
387
+ function Qt(t, e) {
401
388
  const s = f(t), i = d(t), a = p(t), o = x(t);
402
389
  return l(
403
- at,
390
+ ot,
404
391
  [
405
392
  n("feature_list", "2-0-0", s),
406
393
  n("session", "1-0-3", i),
@@ -410,11 +397,11 @@ function Zt(t, e) {
410
397
  e
411
398
  );
412
399
  }
413
- const zn = u(at, Zt), it = "field_validation_error";
414
- function te(t, e) {
400
+ const Un = u(ot, Qt), at = "field_validation_error";
401
+ function Zt(t, e) {
415
402
  const s = f(t), i = d(t), a = w(t), o = Z(t, !0), r = p(t), c = x(t);
416
403
  return l(
417
- it,
404
+ at,
418
405
  [
419
406
  n("feature_list", "2-0-0", s),
420
407
  n("session", "1-0-3", i),
@@ -426,11 +413,11 @@ function te(t, e) {
426
413
  e
427
414
  );
428
415
  }
429
- const Gn = u(it, te), rt = "form_submit";
430
- function ee(t, e) {
416
+ const Gn = u(at, Zt), it = "form_submit";
417
+ function te(t, e) {
431
418
  const s = f(t), i = d(t), a = w(t), o = p(t), r = x(t);
432
419
  return l(
433
- rt,
420
+ it,
434
421
  [
435
422
  n("feature_list", "2-0-0", s),
436
423
  n("session", "1-0-3", i),
@@ -441,11 +428,11 @@ function ee(t, e) {
441
428
  e
442
429
  );
443
430
  }
444
- const Kn = u(rt, ee), ct = "form_submit_error";
445
- function ne(t, e) {
431
+ const zn = u(it, te), rt = "form_submit_error";
432
+ function ee(t, e) {
446
433
  const s = f(t), i = d(t), a = w(t), o = Z(t, !0), r = p(t), c = x(t);
447
434
  return l(
448
- ct,
435
+ rt,
449
436
  [
450
437
  n("feature_list", "2-0-0", s),
451
438
  n("session", "1-0-3", i),
@@ -457,11 +444,11 @@ function ne(t, e) {
457
444
  e
458
445
  );
459
446
  }
460
- const Xn = u(ct, ne), lt = "form_submit_success";
461
- function se(t, e) {
447
+ const Kn = u(rt, ee), ct = "form_submit_success";
448
+ function ne(t, e) {
462
449
  const s = f(t), i = d(t), a = w(t), o = p(t), r = x(t);
463
450
  return l(
464
- lt,
451
+ ct,
465
452
  [
466
453
  n("feature_list", "2-0-0", s),
467
454
  n("session", "1-0-3", i),
@@ -472,11 +459,11 @@ function se(t, e) {
472
459
  e
473
460
  );
474
461
  }
475
- const Jn = u(lt, se), ut = "step_enter";
476
- function oe(t, e) {
477
- const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = j(t);
462
+ const Xn = u(ct, ne), lt = "step_enter";
463
+ function se(t, e) {
464
+ const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = R(t);
478
465
  return l(
479
- ut,
466
+ lt,
480
467
  [
481
468
  n("feature_list", "2-0-0", s),
482
469
  n("session", "1-0-3", i),
@@ -487,11 +474,11 @@ function oe(t, e) {
487
474
  e
488
475
  );
489
476
  }
490
- const Qn = u(ut, oe), ft = "step_submit";
491
- function ae(t, e) {
492
- const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = Q(t), c = j(t);
477
+ const Jn = u(lt, se), ut = "step_submit";
478
+ function oe(t, e) {
479
+ const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = Q(t), c = R(t);
493
480
  return l(
494
- ft,
481
+ ut,
495
482
  [
496
483
  n("feature_list", "2-0-0", s),
497
484
  n("session", "1-0-3", i),
@@ -503,11 +490,11 @@ function ae(t, e) {
503
490
  e
504
491
  );
505
492
  }
506
- const Zn = u(ft, ae), dt = "step_submit_success";
507
- function ie(t, e) {
508
- const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = j(t), c = Q(t);
493
+ const Qn = u(ut, oe), ft = "step_submit_success";
494
+ function ae(t, e) {
495
+ const s = f(t), i = d(t), a = p(t), o = x(t, !0), r = R(t), c = Q(t);
509
496
  return l(
510
- dt,
497
+ ft,
511
498
  [
512
499
  n("feature_list", "2-0-0", s),
513
500
  n("session", "1-0-3", i),
@@ -519,7 +506,7 @@ function ie(t, e) {
519
506
  e
520
507
  );
521
508
  }
522
- const ts = u(dt, ie);
509
+ const Zn = u(ft, ae);
523
510
  function k(t) {
524
511
  return t instanceof Element;
525
512
  }
@@ -596,12 +583,12 @@ function b(t) {
596
583
  }
597
584
  return "placeholder" in t && typeof t.placeholder == "string" ? t.placeholder : null;
598
585
  }
599
- const re = 255;
586
+ const ie = 255;
600
587
  function E(t) {
601
- return t ? t.slice(0, re) : null;
588
+ return t ? t.slice(0, ie) : null;
602
589
  }
603
590
  const S = "rapid_scroll";
604
- function ce(t, e) {
591
+ function re(t, e) {
605
592
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
606
593
  if (!k(r)) {
607
594
  const C = {
@@ -637,23 +624,23 @@ function ce(t, e) {
637
624
  e
638
625
  );
639
626
  }
640
- const le = u(S, ce), ue = 100, fe = 100, de = 300;
627
+ const ce = u(S, re), le = 100, ue = 100, fe = 300;
641
628
  let I = 0, M = 0;
642
- const xe = P(
629
+ const de = P(
643
630
  (t, e) => {
644
- le(t, e);
631
+ ce(t, e);
645
632
  },
646
- de
633
+ fe
647
634
  );
648
- function pe(t, e) {
635
+ function xe(t, e) {
649
636
  const s = t.event.target || document.documentElement;
650
637
  if (!(s instanceof HTMLElement))
651
638
  return;
652
639
  const i = s.scrollTop, a = Date.now() - M;
653
- Math.abs(i - I) > ue && a < fe && xe(t.event, e), I = i, M = Date.now();
640
+ Math.abs(i - I) > le && a < ue && de(t.event, e), I = i, M = Date.now();
654
641
  }
655
- const me = _("scroll", pe, !0), Y = "rapid_click";
656
- function Ee(t, e) {
642
+ const pe = _("scroll", xe, !0), Y = "rapid_click";
643
+ function me(t, e) {
657
644
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
658
645
  if (!k(r)) {
659
646
  const C = {
@@ -689,15 +676,15 @@ function Ee(t, e) {
689
676
  e
690
677
  );
691
678
  }
692
- const Ce = u(Y, Ee);
679
+ const Ee = u(Y, me);
693
680
  let N = 0, U = 0;
694
- const ve = 3, De = 500;
695
- function _e(t, e) {
681
+ const Ce = 3, ve = 500;
682
+ function De(t, e) {
696
683
  const s = (/* @__PURE__ */ new Date()).getTime();
697
- s - U < De ? N++ : N = 1, U = s, N >= ve && (Ce(t, e), N = 0);
684
+ s - U < ve ? N++ : N = 1, U = s, N >= Ce && (Ee(t, e), N = 0);
698
685
  }
699
- const ke = _("click", _e), B = "right_click";
700
- function Te(t, e) {
686
+ const _e = _("click", De), B = "right_click";
687
+ function ke(t, e) {
701
688
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
702
689
  if (!k(r)) {
703
690
  const C = {
@@ -729,15 +716,15 @@ function Te(t, e) {
729
716
  e
730
717
  );
731
718
  }
732
- const be = u(B, Te);
733
- function $e(t, e) {
734
- be(t, e);
719
+ const Te = u(B, ke);
720
+ function be(t, e) {
721
+ Te(t, e);
735
722
  }
736
- const ge = _("contextmenu", $e), xt = "mouse_shake";
737
- function Le(t, e) {
723
+ const ge = _("contextmenu", be), dt = "mouse_shake";
724
+ function $e(t, e) {
738
725
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
739
726
  return l(
740
- xt,
727
+ dt,
741
728
  [
742
729
  n("feature_list", "2-0-0", s),
743
730
  n("session", "1-0-3", i),
@@ -747,23 +734,23 @@ function Le(t, e) {
747
734
  e
748
735
  );
749
736
  }
750
- const he = u(xt, Le), ye = 5, Ne = 500, we = 500;
751
- let z = { x: 0 }, g = [], G = 0;
752
- const Pe = P(
737
+ const Le = u(dt, $e), he = 5, ye = 500, Ne = 500;
738
+ let G = { x: 0 }, $ = [], z = 0;
739
+ const we = P(
753
740
  (t, e) => {
754
- he(t, e);
741
+ Le(t, e);
755
742
  },
756
- Ne
743
+ ye
757
744
  );
758
- function Ve(t, e) {
759
- const s = Date.now(), i = t.event.clientX - z.x, a = Math.sign(i);
760
- s - G > we && (g = []), a !== 0 && (g.length === 0 || g[g.length - 1] !== a) && g.push(a), z = { x: t.event.clientX, y: t.event.clientY }, g.length >= ye && (Pe(t, e), g = []), G = s;
745
+ function Pe(t, e) {
746
+ const s = Date.now(), i = t.event.clientX - G.x, a = Math.sign(i);
747
+ s - z > Ne && ($ = []), a !== 0 && ($.length === 0 || $[$.length - 1] !== a) && $.push(a), G = { x: t.event.clientX, y: t.event.clientY }, $.length >= he && (we(t, e), $ = []), z = s;
761
748
  }
762
- const Se = _("mousemove", Ve), pt = "page_visible";
763
- function Ye(t, e) {
749
+ const Ve = _("mousemove", Pe), xt = "page_visible";
750
+ function Se(t, e) {
764
751
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
765
752
  return l(
766
- pt,
753
+ xt,
767
754
  [
768
755
  n("feature_list", "2-0-0", s),
769
756
  n("session", "1-0-3", i),
@@ -773,11 +760,11 @@ function Ye(t, e) {
773
760
  e
774
761
  );
775
762
  }
776
- const Be = u(pt, Ye), mt = "page_hidden";
777
- function He(t, e) {
763
+ const Ye = u(xt, Se), pt = "page_hidden";
764
+ function Be(t, e) {
778
765
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
779
766
  return l(
780
- mt,
767
+ pt,
781
768
  [
782
769
  n("feature_list", "2-0-0", s),
783
770
  n("session", "1-0-3", i),
@@ -787,16 +774,16 @@ function He(t, e) {
787
774
  e
788
775
  );
789
776
  }
790
- const qe = u(mt, He);
791
- function Ae(t, e) {
777
+ const He = u(pt, Be);
778
+ function qe(t, e) {
792
779
  if (document.visibilityState === "visible") {
793
- Be(t, e);
780
+ Ye(t, e);
794
781
  return;
795
782
  }
796
- qe(t, e);
783
+ He(t, e);
797
784
  }
798
- const Oe = Wt("visibilitychange", Ae), H = "backspace";
799
- function Fe(t, e) {
785
+ const Fe = Wt("visibilitychange", qe), H = "backspace";
786
+ function Oe(t, e) {
800
787
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
801
788
  if (!k(r)) {
802
789
  const C = {
@@ -832,15 +819,15 @@ function Fe(t, e) {
832
819
  e
833
820
  );
834
821
  }
835
- const Re = u(H, Fe);
836
- function je(t, e) {
837
- t.event.key === "Backspace" && Re(t, e);
822
+ const je = u(H, Oe);
823
+ function Ae(t, e) {
824
+ t.event.key === "Backspace" && je(t, e);
838
825
  }
839
- const We = _("keydown", je), Et = "page_hide";
840
- function Ie(t, e) {
826
+ const Re = _("keydown", Ae), mt = "page_hide";
827
+ function We(t, e) {
841
828
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
842
829
  return l(
843
- Et,
830
+ mt,
844
831
  [
845
832
  n("feature_list", "2-0-0", s),
846
833
  n("session", "1-0-3", i),
@@ -850,15 +837,15 @@ function Ie(t, e) {
850
837
  e
851
838
  );
852
839
  }
853
- const Me = u(Et, Ie);
854
- function Ue(t, e) {
855
- Me(t, e);
840
+ const Ie = u(mt, We);
841
+ function Me(t, e) {
842
+ Ie(t, e);
856
843
  }
857
- const ze = h("pagehide", Ue), Ct = "page_show";
844
+ const Ue = h("pagehide", Me), Et = "page_show";
858
845
  function Ge(t, e) {
859
846
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
860
847
  return l(
861
- Ct,
848
+ Et,
862
849
  [
863
850
  n("feature_list", "2-0-0", s),
864
851
  n("session", "1-0-3", i),
@@ -868,15 +855,15 @@ function Ge(t, e) {
868
855
  e
869
856
  );
870
857
  }
871
- const Ke = u(Ct, Ge);
872
- function Xe(t, e) {
873
- Ke(t, e);
858
+ const ze = u(Et, Ge);
859
+ function Ke(t, e) {
860
+ ze(t, e);
874
861
  }
875
- const Je = h("pageshow", Xe), vt = "offline";
876
- function Qe(t, e) {
862
+ const Xe = h("pageshow", Ke), Ct = "offline";
863
+ function Je(t, e) {
877
864
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
878
865
  return l(
879
- vt,
866
+ Ct,
880
867
  [
881
868
  n("feature_list", "2-0-0", s),
882
869
  n("session", "1-0-3", i),
@@ -886,12 +873,12 @@ function Qe(t, e) {
886
873
  e
887
874
  );
888
875
  }
889
- const Ze = u(vt, Qe);
890
- function tn(t, e) {
891
- Ze(t, e);
876
+ const Qe = u(Ct, Je);
877
+ function Ze(t, e) {
878
+ Qe(t, e);
892
879
  }
893
- const en = h("offline", tn), q = "scroll";
894
- function nn(t, e) {
880
+ const tn = h("offline", Ze), q = "scroll";
881
+ function en(t, e) {
895
882
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
896
883
  if (!k(r))
897
884
  return l(
@@ -922,16 +909,16 @@ function nn(t, e) {
922
909
  e
923
910
  );
924
911
  }
925
- const sn = u(q, nn), on = P(
912
+ const nn = u(q, en), sn = P(
926
913
  (t, e) => {
927
- sn(t, e);
914
+ nn(t, e);
928
915
  },
929
916
  500
930
- ), an = _("scroll", on, !0), Dt = "online";
931
- function rn(t, e) {
917
+ ), on = _("scroll", sn, !0), vt = "online";
918
+ function an(t, e) {
932
919
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
933
920
  return l(
934
- Dt,
921
+ vt,
935
922
  [
936
923
  n("feature_list", "2-0-0", s),
937
924
  n("session", "1-0-3", i),
@@ -941,15 +928,15 @@ function rn(t, e) {
941
928
  e
942
929
  );
943
930
  }
944
- const cn = u(Dt, rn);
945
- function ln(t, e) {
946
- cn(t, e);
931
+ const rn = u(vt, an);
932
+ function cn(t, e) {
933
+ rn(t, e);
947
934
  }
948
- const un = h("online", ln), _t = "resize";
949
- function fn(t, e) {
935
+ const ln = h("online", cn), Dt = "resize";
936
+ function un(t, e) {
950
937
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
951
938
  return l(
952
- _t,
939
+ Dt,
953
940
  [
954
941
  n("feature_list", "2-0-0", s),
955
942
  n("session", "1-0-3", i),
@@ -959,19 +946,19 @@ function fn(t, e) {
959
946
  e
960
947
  );
961
948
  }
962
- const K = u(_t, fn);
949
+ const K = u(Dt, un);
963
950
  let V = 0;
964
- const dn = P(
951
+ const fn = P(
965
952
  (t, e) => {
966
953
  const s = window.innerWidth;
967
954
  s !== V ? (K(t, e), V = s) : "ontouchstart" in window || K(t, e), V = s;
968
955
  },
969
956
  300
970
- ), xn = h("resize", dn), kt = "unload";
971
- function pn(t, e) {
957
+ ), dn = h("resize", fn), _t = "unload";
958
+ function xn(t, e) {
972
959
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext);
973
960
  return l(
974
- kt,
961
+ _t,
975
962
  [
976
963
  n("feature_list", "2-0-0", s),
977
964
  n("session", "1-0-3", i),
@@ -981,19 +968,19 @@ function pn(t, e) {
981
968
  e
982
969
  );
983
970
  }
984
- const mn = u(kt, pn);
985
- function En(t, e) {
986
- mn(t, e);
971
+ const pn = u(_t, xn);
972
+ function mn(t, e) {
973
+ pn(t, e);
987
974
  }
988
- const Cn = h("unload", En), A = "click";
989
- function vn(t, e) {
975
+ const En = h("unload", mn), F = "click";
976
+ function Cn(t, e) {
990
977
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
991
978
  if (!k(r)) {
992
979
  const C = {
993
980
  node_type: "unknown"
994
981
  };
995
982
  return l(
996
- A,
983
+ F,
997
984
  [
998
985
  n("feature_list", "2-0-0", s),
999
986
  n("session", "1-0-3", i),
@@ -1011,7 +998,7 @@ function vn(t, e) {
1011
998
  text: E(v(c))
1012
999
  };
1013
1000
  return l(
1014
- A,
1001
+ F,
1015
1002
  [
1016
1003
  n("feature_list", "2-0-0", s),
1017
1004
  n("session", "1-0-3", i),
@@ -1022,12 +1009,12 @@ function vn(t, e) {
1022
1009
  e
1023
1010
  );
1024
1011
  }
1025
- const Dn = u(A, vn);
1026
- function _n(t, e) {
1027
- Dn(t, e);
1012
+ const vn = u(F, Cn);
1013
+ function Dn(t, e) {
1014
+ vn(t, e);
1028
1015
  }
1029
- const kn = _("click", _n), O = "paste";
1030
- function Tn(t, e) {
1016
+ const _n = _("click", Dn), O = "paste";
1017
+ function kn(t, e) {
1031
1018
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1032
1019
  if (!k(r))
1033
1020
  return l(
@@ -1058,16 +1045,16 @@ function Tn(t, e) {
1058
1045
  e
1059
1046
  );
1060
1047
  }
1061
- const bn = u(O, Tn);
1062
- function $n(t, e) {
1063
- bn(t, e);
1048
+ const Tn = u(O, kn);
1049
+ function bn(t, e) {
1050
+ Tn(t, e);
1064
1051
  }
1065
- const gn = _("paste", $n), F = "copy";
1066
- function Ln(t, e) {
1052
+ const gn = _("paste", bn), j = "copy";
1053
+ function $n(t, e) {
1067
1054
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1068
1055
  if (!k(r))
1069
1056
  return l(
1070
- F,
1057
+ j,
1071
1058
  [
1072
1059
  n("feature_list", "2-0-0", s),
1073
1060
  n("session", "1-0-3", i),
@@ -1083,7 +1070,7 @@ function Ln(t, e) {
1083
1070
  text: E(v(c))
1084
1071
  };
1085
1072
  return l(
1086
- F,
1073
+ j,
1087
1074
  [
1088
1075
  n("feature_list", "2-0-0", s),
1089
1076
  n("session", "1-0-3", i),
@@ -1094,16 +1081,16 @@ function Ln(t, e) {
1094
1081
  e
1095
1082
  );
1096
1083
  }
1097
- const hn = u(F, Ln);
1098
- function yn(t, e) {
1099
- hn(t, e);
1084
+ const Ln = u(j, $n);
1085
+ function hn(t, e) {
1086
+ Ln(t, e);
1100
1087
  }
1101
- const Nn = _("copy", yn), R = "drag";
1102
- function wn(t, e) {
1088
+ const yn = _("copy", hn), A = "drag";
1089
+ function Nn(t, e) {
1103
1090
  const s = f(t.analyticsContext), i = d(t.analyticsContext), a = p(t.analyticsContext), o = x(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1104
1091
  if (!k(r))
1105
1092
  return l(
1106
- R,
1093
+ A,
1107
1094
  [
1108
1095
  n("feature_list", "2-0-0", s),
1109
1096
  n("session", "1-0-3", i),
@@ -1119,7 +1106,7 @@ function wn(t, e) {
1119
1106
  text: E(v(c))
1120
1107
  };
1121
1108
  return l(
1122
- R,
1109
+ A,
1123
1110
  [
1124
1111
  n("feature_list", "2-0-0", s),
1125
1112
  n("session", "1-0-3", i),
@@ -1130,32 +1117,31 @@ function wn(t, e) {
1130
1117
  e
1131
1118
  );
1132
1119
  }
1133
- const Pn = u(R, wn);
1134
- function Tt(t, e) {
1120
+ const wn = u(A, Nn);
1121
+ function kt(t, e) {
1135
1122
  const s = t.event.currentTarget;
1136
1123
  if (!s || !(s instanceof HTMLElement))
1137
1124
  return;
1138
1125
  function i(a) {
1139
- Tt({ event: a, analyticsContext: t.analyticsContext });
1126
+ kt({ event: a, analyticsContext: t.analyticsContext });
1140
1127
  }
1141
1128
  s.removeEventListener("drag", i), s.addEventListener(
1142
1129
  "dragend",
1143
- () => bt(s, () => t.analyticsContext)
1144
- ), Pn(t, e);
1130
+ () => Tt(s, () => t.analyticsContext)
1131
+ ), wn(t, e);
1145
1132
  }
1146
- const bt = _("drag", Tt);
1147
- function es(t, e) {
1148
- e && (kn(e, t), ke(e, t), ge(e, t), Nn(e, t), gn(e, t), bt(e, t), We(e, t), an(e, t), me(e, t), Se(e, t));
1133
+ const Tt = _("drag", kt);
1134
+ function ts(t, e) {
1135
+ e && (_n(e, t), _e(e, t), ge(e, t), yn(e, t), gn(e, t), Tt(e, t), Re(e, t), on(e, t), pe(e, t), Ve(e, t));
1149
1136
  }
1150
- function ns(t) {
1151
- Oe(t), ze(t), Je(t), en(t), un(t), xn(t), Cn(t);
1137
+ function es(t) {
1138
+ Fe(t), Ue(t), Xe(t), tn(t), ln(t), dn(t), En(t);
1152
1139
  }
1153
1140
  export {
1154
1141
  Qn as A,
1155
1142
  Zn as B,
1156
- ts as C,
1157
1143
  d as a,
1158
- An as b,
1144
+ Fn as b,
1159
1145
  u as c,
1160
1146
  p as d,
1161
1147
  x as e,
@@ -1163,20 +1149,20 @@ export {
1163
1149
  l as g,
1164
1150
  n as h,
1165
1151
  On as i,
1166
- Fn as j,
1152
+ jn as j,
1167
1153
  Q as k,
1168
- j as l,
1154
+ R as l,
1169
1155
  Z as m,
1170
- Rn as n,
1171
- es as o,
1172
- ns as p,
1156
+ An as n,
1157
+ ts as o,
1158
+ es as p,
1173
1159
  Wn as q,
1174
1160
  In as r,
1175
1161
  Mn as s,
1176
- jn as t,
1162
+ Rn as t,
1177
1163
  Un as u,
1178
- zn as v,
1179
- Gn as w,
1164
+ Gn as v,
1165
+ zn as w,
1180
1166
  Kn as x,
1181
1167
  Xn as y,
1182
1168
  Jn as z