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

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