@picked/analytics 0.0.1-dev.1773368658489 → 0.0.1-dev.1773719715758

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,10 +1,10 @@
1
- import { trackSelfDescribingEvent as Q, newTracker as Ht, addGlobalContexts as Ot, enableActivityTracking as jt, enableActivityTrackingCallback as qt } from "@snowplow/browser-tracker";
2
- import { ButtonClickTrackingPlugin as Ft, enableButtonClickTracking as It } from "@snowplow/browser-plugin-button-click-tracking";
3
- import { PerformanceNavigationTimingPlugin as Wt } from "@snowplow/browser-plugin-performance-navigation-timing";
4
- import { ErrorTrackingPlugin as Rt, enableErrorTracking as zt } from "@snowplow/browser-plugin-error-tracking";
5
- import { WebVitalsPlugin as Ut } from "@snowplow/browser-plugin-web-vitals";
6
- import { supportsDocument as it, supportsWindow as Gt, supportsCookies as Kt } from "@picked/client";
7
- function rt(t, n) {
1
+ import { trackSelfDescribingEvent as Q, newTracker as At, addGlobalContexts as Ht, enableActivityTracking as Ot, enableActivityTrackingCallback as jt } from "@snowplow/browser-tracker";
2
+ import { ButtonClickTrackingPlugin as qt, enableButtonClickTracking as Ft } from "@snowplow/browser-plugin-button-click-tracking";
3
+ import { PerformanceNavigationTimingPlugin as It } from "@snowplow/browser-plugin-performance-navigation-timing";
4
+ import { ErrorTrackingPlugin as Rt, enableErrorTracking as Wt } from "@snowplow/browser-plugin-error-tracking";
5
+ import { WebVitalsPlugin as zt } from "@snowplow/browser-plugin-web-vitals";
6
+ import { supportsDocument as at, supportsWindow as Ut, supportsCookies as Gt } from "@picked/client";
7
+ function it(t, n) {
8
8
  return `iglu:dev.pckd/${t}/jsonschema/${n}`;
9
9
  }
10
10
  function L(t, ...n) {
@@ -14,7 +14,7 @@ function h(t, ...n) {
14
14
  function l(t, n, o = {}) {
15
15
  return {
16
16
  event: {
17
- schema: rt("event", "1-0-0"),
17
+ schema: it("event", "1-0-0"),
18
18
  data: {
19
19
  type: t,
20
20
  meta: o
@@ -27,59 +27,64 @@ function l(t, n, o = {}) {
27
27
  }
28
28
  function e(t, n, o) {
29
29
  return {
30
- schema: rt(t, n),
30
+ schema: it(t, n),
31
31
  data: o
32
32
  };
33
33
  }
34
34
  function p(t, n) {
35
35
  return (o, i) => {
36
- const s = n(o, i);
37
- Q(s);
38
- };
39
- }
40
- function Z(t, n) {
41
- return function(i) {
42
- const s = {
43
- event: i,
44
- analyticsContext: n()
45
- };
46
- t(s);
36
+ const a = n(o, i);
37
+ Q(a);
47
38
  };
48
39
  }
49
40
  function k(t, n, o = { passive: !0 }) {
50
41
  const i = /* @__PURE__ */ new WeakMap();
51
- return (s, a) => {
52
- let r = i.get(s);
53
- r || (r = /* @__PURE__ */ new Set(), i.set(s, r)), !r.has(t) && (s.addEventListener(t, Z(n, a), o), r.add(t));
42
+ return (a, s) => {
43
+ let r = i.get(a);
44
+ if (r || (r = /* @__PURE__ */ new Set(), i.set(a, r)), r.has(t))
45
+ return;
46
+ function c(m) {
47
+ const E = s();
48
+ n({ event: m, analyticsContext: E });
49
+ }
50
+ a.addEventListener(t, c, o), r.add(t);
54
51
  };
55
52
  }
56
- function Mt(t, n) {
53
+ function Kt(t, n) {
57
54
  const o = /* @__PURE__ */ new Set();
58
55
  return (i) => {
59
- o.has(t) || it() && (document.addEventListener(t, Z(n, i), {
60
- passive: !0
61
- }), o.add(t));
56
+ if (o.has(t) || !at())
57
+ return;
58
+ function a(s) {
59
+ const r = i();
60
+ n({ event: s, analyticsContext: r });
61
+ }
62
+ document.addEventListener(t, a, { passive: !0 }), o.add(t);
62
63
  };
63
64
  }
64
65
  function S(t, n) {
65
66
  const o = /* @__PURE__ */ new Set();
66
67
  return (i) => {
67
- o.has(t) || Gt() && (window.addEventListener(t, Z(n, i), {
68
- passive: !0
69
- }), o.add(t));
68
+ if (o.has(t) || !Ut())
69
+ return;
70
+ function a(s) {
71
+ const r = i();
72
+ n({ event: s, analyticsContext: r });
73
+ }
74
+ window.addEventListener(t, a, { passive: !0 }), o.add(t);
70
75
  };
71
76
  }
72
77
  function u(t) {
73
- return { items: t.features?.map(({ feature: o, name: i, key: s, bucket: a }) => ({
78
+ return { items: t.features?.map(({ feature: o, name: i, key: a, bucket: s }) => ({
74
79
  ab_feature: o,
75
80
  ab_name: i,
76
- ab_key: s,
77
- ab_bucket: a
81
+ ab_key: a,
82
+ ab_bucket: s
78
83
  })) || [] };
79
84
  }
80
85
  const _ = "unknown";
81
- function f(t) {
82
- const n = Xt(), o = {
86
+ function d(t) {
87
+ const n = Mt(), o = {
83
88
  id: t.sessionId || null
84
89
  };
85
90
  return t.isUser !== void 0 && (o.is_user = t.isUser), t.identifiers && Object.assign(o, t.identifiers), n && (o.gaid = n), t.shopifySession?.clientId && (o.shopify_client_id = t.shopifySession.clientId), t.shopifySession?.customerId && (o.shopify_customer_id = t.shopifySession.customerId), t.shopifySession?.checkoutToken && (o.shopify_checkout_token = t.shopifySession.checkoutToken), o;
@@ -87,29 +92,31 @@ function f(t) {
87
92
  function B(t) {
88
93
  if (t.fields)
89
94
  return {
90
- items: t.fields.map(({ id: n, type: o, label: i, options: s }) => ({
95
+ items: t.fields.map(({ id: n, type: o, label: i, options: a }) => ({
91
96
  id: n,
92
97
  type: o,
93
98
  label: i,
94
- options: Array.isArray(s) ? s : void 0
99
+ options: Array.isArray(a) ? a.map(({ id: s, label: r, value: c }) => ({ id: s, label: r, value: c })) : void 0
95
100
  }))
96
101
  };
97
102
  }
98
103
  function j(t) {
99
104
  if (t.responses)
100
105
  return {
101
- items: t.responses.map(({ fieldId: n, value: o }) => ({
102
- field_id: n,
103
- values: Array.isArray(o) ? o.map((i) => ({ value: i })) : [{ value: o }]
104
- }))
106
+ items: t.responses.map(
107
+ ({ fieldId: n, value: o }) => ({
108
+ field_id: n,
109
+ values: Array.isArray(o) ? o.map((i) => ({ value: i })) : [{ value: o }]
110
+ })
111
+ )
105
112
  };
106
113
  }
107
- function d(t, n = !1) {
114
+ function f(t, n = !1) {
108
115
  const { step: o } = t;
109
116
  if (o)
110
117
  return {
111
118
  id: o.id,
112
- title: o.name
119
+ title: o.label
113
120
  };
114
121
  if (n)
115
122
  return h('"step" is required for this event', t), {
@@ -117,38 +124,38 @@ function d(t, n = !1) {
117
124
  title: _
118
125
  };
119
126
  }
120
- function ct(t, n = !1) {
127
+ function rt(t, n = !1) {
121
128
  const { productList: o } = t;
122
129
  if (o) {
123
130
  const i = {};
124
131
  "title" in o && o.title && Object.assign(i, { title: o.title });
125
- const s = "items" in o ? o.items : o;
132
+ const a = "items" in o ? o.items : o;
126
133
  return Object.assign(i, {
127
- items: s.map((a) => ({
128
- item_id: a.itemId,
129
- item_name: a.itemName,
130
- affiliation: a.affiliation,
131
- coupon: a.coupon,
132
- currency: a.currency,
133
- creative_name: a.creativeName,
134
- creative_slot: a.creativeSlot,
135
- discount: H(a.discount),
136
- index: H(a.index),
137
- item_brand: a.itemBrand,
138
- item_category: a.itemCategory,
139
- item_category2: a.itemCategory2,
140
- item_category3: a.itemCategory3,
141
- item_category4: a.itemCategory4,
142
- item_category5: a.itemCategory5,
143
- item_list_id: a.itemListId,
144
- item_list_name: a.itemListName,
145
- item_variant: a.itemVariant,
146
- location_id: a.locationId,
147
- price: H(a.price),
148
- promotion_id: a.promotionId,
149
- promotion_name: a.promotionName,
150
- quantity: H(a.quantity),
151
- in_stock: a.inStock
134
+ items: a.map((s) => ({
135
+ item_id: s.itemId,
136
+ item_name: s.itemName,
137
+ affiliation: s.affiliation,
138
+ coupon: s.coupon,
139
+ currency: s.currency,
140
+ creative_name: s.creativeName,
141
+ creative_slot: s.creativeSlot,
142
+ discount: H(s.discount),
143
+ index: H(s.index),
144
+ item_brand: s.itemBrand,
145
+ item_category: s.itemCategory,
146
+ item_category2: s.itemCategory2,
147
+ item_category3: s.itemCategory3,
148
+ item_category4: s.itemCategory4,
149
+ item_category5: s.itemCategory5,
150
+ item_list_id: s.itemListId,
151
+ item_list_name: s.itemListName,
152
+ item_variant: s.itemVariant,
153
+ location_id: s.locationId,
154
+ price: H(s.price),
155
+ promotion_id: s.promotionId,
156
+ promotion_name: s.promotionName,
157
+ quantity: H(s.quantity),
158
+ in_stock: s.inStock
152
159
  }))
153
160
  }), i;
154
161
  }
@@ -157,7 +164,7 @@ function ct(t, n = !1) {
157
164
  items: []
158
165
  };
159
166
  }
160
- function lt(t, n = !1) {
167
+ function ct(t, n = !1) {
161
168
  const { order: o } = t;
162
169
  if (o) {
163
170
  const i = {
@@ -204,7 +211,7 @@ function Y(t) {
204
211
  title: _
205
212
  });
206
213
  }
207
- function ut(t) {
214
+ function lt(t) {
208
215
  const { modal: n } = t;
209
216
  return n ? {
210
217
  id: n.id,
@@ -216,8 +223,8 @@ function ut(t) {
216
223
  }
217
224
  function F(t, n = 300) {
218
225
  let o;
219
- return function(...s) {
220
- clearTimeout(o), o = setTimeout(() => t.apply(this, s), n);
226
+ return function(...i) {
227
+ clearTimeout(o), o = setTimeout(() => t.apply(this, i), n);
221
228
  };
222
229
  }
223
230
  function H(t) {
@@ -229,44 +236,44 @@ function H(t) {
229
236
  if (!isNaN(n))
230
237
  return n;
231
238
  }
232
- function Xt() {
233
- if (!it() || !Kt())
239
+ function Mt() {
240
+ if (!at() || !Gt())
234
241
  return null;
235
242
  const t = "_ga=", n = document.cookie ? document.cookie.split(";") : [];
236
243
  for (const o of n) {
237
244
  const i = o.trim();
238
245
  if (i.startsWith(t)) {
239
- const a = i.substring(t.length).split(".");
240
- if (a.length > 2)
241
- return a.slice(2).join(".");
246
+ const s = i.substring(t.length).split(".");
247
+ if (s.length > 2)
248
+ return s.slice(2).join(".");
242
249
  }
243
250
  }
244
251
  }
245
- function Jt(t) {
252
+ function Xt(t) {
246
253
  const n = [];
247
- return t.trackErrors && (L(), n.push(Rt())), t.trackVitals && (L(), n.push(Ut())), t.trackPerformance && (L(), n.push(Wt())), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && n.push(Ft()), n;
254
+ return t.trackErrors && (L(), n.push(Rt())), t.trackVitals && (L(), n.push(zt())), t.trackPerformance && (L(), n.push(It())), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && n.push(qt()), n;
248
255
  }
249
- function Qt(t) {
250
- t.trackActivity && !t.trackActivityCallback && (L(), jt({
256
+ function Jt(t) {
257
+ t.trackActivity && !t.trackActivityCallback && (L(), Ot({
251
258
  minimumVisitLength: 30,
252
259
  heartbeatDelay: 10
253
- })), t.trackActivity && t.trackActivityCallback && (L(), qt({
260
+ })), t.trackActivity && t.trackActivityCallback && (L(), jt({
254
261
  minimumVisitLength: 30,
255
262
  heartbeatDelay: 10,
256
263
  callback: t.trackActivityCallback
257
- })), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && (L(), It({
264
+ })), (t.trackButtonClickAllowList || t.trackButtonClickFilter) && (L(), Ft({
258
265
  filter: t.trackButtonClickAllowList ? {
259
266
  allowlist: t.trackButtonClickAllowList
260
267
  } : t.trackButtonClickFilter
261
- })), t.trackErrors && (L(), zt());
268
+ })), t.trackErrors && (L(), Wt());
262
269
  }
263
- function Gn({
270
+ function Un({
264
271
  organizationId: t,
265
272
  projectId: n,
266
273
  cvlyX: o,
267
274
  deployment: i,
268
- collectorUrl: s = "evnts.pckd.dev",
269
- appId: a = "picked-analytics",
275
+ collectorUrl: a = "evnts.pckd.dev",
276
+ appId: s = "picked-analytics",
270
277
  trackVitals: r = !1,
271
278
  trackPerformance: c = !1,
272
279
  trackWebPage: m = !0,
@@ -285,8 +292,8 @@ function Gn({
285
292
  trackPerformance: c,
286
293
  trackActivityCallback: w,
287
294
  trackButtonClickAllowList: P
288
- }, Bt = {
289
- appId: a,
295
+ }, Yt = {
296
+ appId: s,
290
297
  platform: "web",
291
298
  keepalive: !0,
292
299
  contexts: {
@@ -294,20 +301,20 @@ function Gn({
294
301
  session: E,
295
302
  browser: $ || !1
296
303
  },
297
- plugins: Jt(A)
298
- }, At = Ht(a, s, Bt);
299
- return Zt({
304
+ plugins: Xt(A)
305
+ }, Bt = At(s, a, Yt);
306
+ return Qt({
300
307
  organizationId: t,
301
308
  projectId: n,
302
309
  cvlyX: o,
303
310
  deployment: i
304
- }), Qt(A), At;
311
+ }), Jt(A), Bt;
305
312
  }
306
- function Zt({ organizationId: t, projectId: n, cvlyX: o, deployment: i }) {
313
+ function Qt({ organizationId: t, projectId: n, cvlyX: o, deployment: i }) {
307
314
  if (!t || !n)
308
315
  throw new Error("bindGlobalContext: Both organizationId and projectId are required");
309
- const s = [];
310
- s.push(
316
+ const a = [];
317
+ a.push(
311
318
  e("app", "1-0-0", {
312
319
  organization_id: t,
313
320
  project_id: n
@@ -318,212 +325,212 @@ function Zt({ organizationId: t, projectId: n, cvlyX: o, deployment: i }) {
318
325
  env: i.env,
319
326
  host: i.host
320
327
  })
321
- ), o && s.push(
328
+ ), o && a.push(
322
329
  e("cvly_x", "1-0-1", {
323
330
  vercel_deployment_id: o.vercelDeploymentId,
324
331
  vercel_env: o.vercelEnv,
325
332
  vercel_url: o.vercelUrl
326
333
  })
327
- ), Ot(s);
334
+ ), Ht(a);
335
+ }
336
+ const ut = "app_close";
337
+ function Zt(t, n) {
338
+ const o = u(t), i = d(t), a = x(t), s = f(t);
339
+ return l(
340
+ ut,
341
+ [
342
+ e("feature_list", "2-0-0", o),
343
+ e("session", "1-0-4", i),
344
+ s ? e("step", "1-0-0", s) : void 0,
345
+ a ? e("experience", "1-0-1", a) : void 0
346
+ ],
347
+ n
348
+ );
328
349
  }
329
- const ft = "app_close";
350
+ const Gn = p(ut, Zt), dt = "app_initialize";
330
351
  function te(t, n) {
331
- const o = u(t), i = f(t), s = x(t), a = d(t);
352
+ const o = u(t), i = d(t), a = x(t), s = f(t);
332
353
  return l(
333
- ft,
354
+ dt,
334
355
  [
335
356
  e("feature_list", "2-0-0", o),
336
357
  e("session", "1-0-4", i),
337
- a ? e("step", "1-0-0", a) : void 0,
338
- s ? e("experience", "1-0-1", s) : void 0
358
+ s ? e("step", "1-0-0", s) : void 0,
359
+ a ? e("experience", "1-0-1", a) : void 0
339
360
  ],
340
361
  n
341
362
  );
342
363
  }
343
- const Kn = p(ft, te), dt = "app_initialize";
364
+ const Kn = p(dt, te), ft = "app_load";
344
365
  function ee(t, n) {
345
- const o = u(t), i = f(t), s = x(t), a = d(t);
366
+ const o = u(t), i = d(t), a = x(t), s = f(t);
346
367
  return l(
347
- dt,
368
+ ft,
348
369
  [
349
370
  e("feature_list", "2-0-0", o),
350
371
  e("session", "1-0-4", i),
351
- a ? e("step", "1-0-0", a) : void 0,
352
- s ? e("experience", "1-0-1", s) : void 0
372
+ s ? e("step", "1-0-0", s) : void 0,
373
+ a ? e("experience", "1-0-1", a) : void 0
353
374
  ],
354
375
  n
355
376
  );
356
377
  }
357
- const Mn = p(dt, ee), xt = "app_load";
378
+ const Mn = p(ft, ee), xt = "app_open";
358
379
  function ne(t, n) {
359
- const o = u(t), i = f(t), s = x(t), a = d(t);
380
+ const o = u(t), i = d(t), a = x(t), s = f(t);
360
381
  return l(
361
382
  xt,
362
383
  [
363
384
  e("feature_list", "2-0-0", o),
364
385
  e("session", "1-0-4", i),
365
- a ? e("step", "1-0-0", a) : void 0,
366
- s ? e("experience", "1-0-1", s) : void 0
386
+ s ? e("step", "1-0-0", s) : void 0,
387
+ a ? e("experience", "1-0-1", a) : void 0
367
388
  ],
368
389
  n
369
390
  );
370
391
  }
371
- const Xn = p(xt, ne), pt = "app_open";
392
+ const Xn = p(xt, ne), pt = "experience_load";
372
393
  function oe(t, n) {
373
- const o = u(t), i = f(t), s = x(t), a = d(t);
394
+ const o = u(t), i = d(t), a = x(t, !0), s = f(t);
374
395
  return l(
375
396
  pt,
376
397
  [
377
398
  e("feature_list", "2-0-0", o),
378
399
  e("session", "1-0-4", i),
379
- a ? e("step", "1-0-0", a) : void 0,
380
- s ? e("experience", "1-0-1", s) : void 0
400
+ e("experience", "1-0-1", a),
401
+ s ? e("step", "1-0-0", s) : void 0
381
402
  ],
382
403
  n
383
404
  );
384
405
  }
385
- const Jn = p(pt, oe), mt = "experience_load";
406
+ const Jn = p(pt, oe), mt = "feature_decide";
386
407
  function se(t, n) {
387
- const o = u(t), i = f(t), s = x(t, !0), a = d(t);
408
+ const o = u(t), i = d(t), a = x(t), s = f(t);
388
409
  return l(
389
410
  mt,
390
411
  [
391
412
  e("feature_list", "2-0-0", o),
392
413
  e("session", "1-0-4", i),
393
- e("experience", "1-0-1", s),
394
- a ? e("step", "1-0-0", a) : void 0
414
+ s ? e("step", "1-0-0", s) : void 0,
415
+ a ? e("experience", "1-0-1", a) : void 0
395
416
  ],
396
417
  n
397
418
  );
398
419
  }
399
- const Qn = p(mt, se), Ct = "feature_decide";
420
+ const Qn = p(mt, se), Ct = "step_enter";
400
421
  function ae(t, n) {
401
- const o = u(t), i = f(t), s = x(t), a = d(t);
422
+ const o = u(t), i = d(t), a = x(t), s = f(t, !0), r = B(t);
402
423
  return l(
403
424
  Ct,
404
425
  [
405
426
  e("feature_list", "2-0-0", o),
406
427
  e("session", "1-0-4", i),
407
- a ? e("step", "1-0-0", a) : void 0,
408
- s ? e("experience", "1-0-1", s) : void 0
428
+ e("step", "1-0-0", s),
429
+ r && e("field_list", "1-0-0", r),
430
+ a && e("experience", "1-0-1", a)
409
431
  ],
410
432
  n
411
433
  );
412
434
  }
413
- const Zn = p(Ct, ae), Et = "step_enter";
435
+ const Zn = p(Ct, ae), Et = "step_submit";
414
436
  function ie(t, n) {
415
- const o = u(t), i = f(t), s = x(t), a = d(t, !0), r = B(t);
437
+ const o = u(t), i = d(t), a = x(t), s = f(t, !0), r = j(t), c = B(t);
416
438
  return l(
417
439
  Et,
418
440
  [
419
441
  e("feature_list", "2-0-0", o),
420
442
  e("session", "1-0-4", i),
421
- e("step", "1-0-0", a),
422
- r && e("field_list", "1-0-0", r),
423
- s && e("experience", "1-0-1", s)
443
+ e("step", "1-0-0", s),
444
+ c && e("field_list", "1-0-0", c),
445
+ r && e("response_list", "1-0-0", r),
446
+ a && e("experience", "1-0-1", a)
424
447
  ],
425
448
  n
426
449
  );
427
450
  }
428
- const to = p(Et, ie), vt = "step_submit";
451
+ const to = p(Et, ie), vt = "step_submit_success";
429
452
  function re(t, n) {
430
- const o = u(t), i = f(t), s = x(t), a = d(t, !0), r = j(t), c = B(t);
453
+ const o = u(t), i = d(t), a = x(t), s = f(t, !0), r = B(t), c = j(t);
431
454
  return l(
432
455
  vt,
433
456
  [
434
457
  e("feature_list", "2-0-0", o),
435
458
  e("session", "1-0-4", i),
436
- e("step", "1-0-0", a),
437
- c && e("field_list", "1-0-0", c),
438
- r && e("response_list", "1-0-0", r),
439
- s && e("experience", "1-0-1", s)
459
+ e("step", "1-0-0", s),
460
+ r && e("field_list", "1-0-0", r),
461
+ c && e("response_list", "1-0-0", c),
462
+ a && e("experience", "1-0-1", a)
440
463
  ],
441
464
  n
442
465
  );
443
466
  }
444
- const eo = p(vt, re), Dt = "step_submit_success";
467
+ const eo = p(vt, re), Dt = "field_validation_error";
445
468
  function ce(t, n) {
446
- const o = u(t), i = f(t), s = x(t), a = d(t, !0), r = B(t), c = j(t);
469
+ const o = u(t), i = d(t), a = Y(t), s = q(t, !0), r = x(t), c = f(t);
447
470
  return l(
448
471
  Dt,
449
472
  [
450
473
  e("feature_list", "2-0-0", o),
451
474
  e("session", "1-0-4", i),
452
- e("step", "1-0-0", a),
453
- r && e("field_list", "1-0-0", r),
454
- c && e("response_list", "1-0-0", c),
455
- s && e("experience", "1-0-1", s)
475
+ e("exception", "1-0-0", s),
476
+ e("form", "1-0-0", a),
477
+ r && e("experience", "1-0-1", r),
478
+ c && e("step", "1-0-0", c)
456
479
  ],
457
480
  n
458
481
  );
459
482
  }
460
- const no = p(Dt, ce), _t = "field_validation_error";
483
+ const no = p(Dt, ce), _t = "form_submit";
461
484
  function le(t, n) {
462
- const o = u(t), i = f(t), s = Y(t), a = q(t, !0), r = x(t), c = d(t);
485
+ const o = u(t), i = d(t), a = Y(t), s = x(t), r = f(t);
463
486
  return l(
464
487
  _t,
465
488
  [
466
489
  e("feature_list", "2-0-0", o),
467
490
  e("session", "1-0-4", i),
468
- e("exception", "1-0-0", a),
469
- e("form", "1-0-0", s),
470
- r && e("experience", "1-0-1", r),
471
- c && e("step", "1-0-0", c)
491
+ e("form", "1-0-0", a),
492
+ s && e("experience", "1-0-1", s),
493
+ r && e("step", "1-0-0", r)
472
494
  ],
473
495
  n
474
496
  );
475
497
  }
476
- const oo = p(_t, le), kt = "form_submit";
498
+ const oo = p(_t, le), kt = "form_submit_error";
477
499
  function ue(t, n) {
478
- const o = u(t), i = f(t), s = Y(t), a = x(t), r = d(t);
500
+ const o = u(t), i = d(t), a = Y(t), s = q(t, !0), r = x(t), c = f(t);
479
501
  return l(
480
502
  kt,
481
503
  [
482
504
  e("feature_list", "2-0-0", o),
483
505
  e("session", "1-0-4", i),
484
- e("form", "1-0-0", s),
485
- a && e("experience", "1-0-1", a),
486
- r && e("step", "1-0-0", r)
487
- ],
488
- n
489
- );
490
- }
491
- const so = p(kt, ue), bt = "form_submit_error";
492
- function fe(t, n) {
493
- const o = u(t), i = f(t), s = Y(t), a = q(t, !0), r = x(t), c = d(t);
494
- return l(
495
- bt,
496
- [
497
- e("feature_list", "2-0-0", o),
498
- e("session", "1-0-4", i),
499
- e("form", "1-0-0", s),
500
- e("exception", "1-0-0", a),
506
+ e("form", "1-0-0", a),
507
+ e("exception", "1-0-0", s),
501
508
  r && e("experience", "1-0-1", r),
502
509
  c && e("step", "1-0-0", c)
503
510
  ],
504
511
  n
505
512
  );
506
513
  }
507
- const ao = p(bt, fe), Tt = "form_submit_success";
514
+ const so = p(kt, ue), bt = "form_submit_success";
508
515
  function de(t, n) {
509
- const o = u(t), i = f(t), s = Y(t), a = x(t), r = d(t);
516
+ const o = u(t), i = d(t), a = Y(t), s = x(t), r = f(t);
510
517
  return l(
511
- Tt,
518
+ bt,
512
519
  [
513
520
  e("feature_list", "2-0-0", o),
514
521
  e("session", "1-0-4", i),
515
- e("form", "1-0-0", s),
516
- a && e("experience", "1-0-1", a),
522
+ e("form", "1-0-0", a),
523
+ s && e("experience", "1-0-1", s),
517
524
  r && e("step", "1-0-0", r)
518
525
  ],
519
526
  n
520
527
  );
521
528
  }
522
- const io = p(Tt, de);
529
+ const ao = p(bt, de);
523
530
  function D(t) {
524
531
  return t instanceof Element;
525
532
  }
526
- function xe(t) {
533
+ function fe(t) {
527
534
  return `data-picked-${t.replaceAll("_", "-")}`;
528
535
  }
529
536
  function T(t) {
@@ -568,65 +575,65 @@ function b(t) {
568
575
  return n;
569
576
  const o = t.getAttribute("aria-labelledby");
570
577
  if (o) {
571
- const s = document.getElementById(o);
572
- if (s) {
573
- const a = v(s);
574
- if (a)
575
- return a;
578
+ const a = document.getElementById(o);
579
+ if (a) {
580
+ const s = v(a);
581
+ if (s)
582
+ return s;
576
583
  }
577
584
  }
578
585
  if ("id" in t && t.id) {
579
- const s = document.querySelector(`label[for="${t.id}"]`);
580
- if (s) {
581
- const a = v(s);
582
- if (a)
583
- return a;
586
+ const a = document.querySelector(`label[for="${t.id}"]`);
587
+ if (a) {
588
+ const s = v(a);
589
+ if (s)
590
+ return s;
584
591
  }
585
592
  }
586
593
  let i = t.parentElement;
587
594
  for (; i; ) {
588
595
  if (i.tagName.toLowerCase() === "label") {
589
- const s = v(i);
590
- if (s)
591
- return s;
596
+ const a = v(i);
597
+ if (a)
598
+ return a;
592
599
  }
593
600
  i = i.parentElement;
594
601
  }
595
602
  if (t instanceof HTMLInputElement && "labels" in t && t.labels) {
596
- const s = Array.from(t.labels).map((a) => v(a)).filter(Boolean).join(" ");
597
- if (s)
598
- return s;
603
+ const a = Array.from(t.labels).map((s) => v(s)).filter(Boolean).join(" ");
604
+ if (a)
605
+ return a;
599
606
  }
600
607
  return "placeholder" in t && typeof t.placeholder == "string" ? t.placeholder : null;
601
608
  }
602
- function pe(t, n) {
609
+ function xe(t, n) {
603
610
  if (!D(t))
604
611
  return null;
605
- const o = xe(n), i = t.closest(`[${o}]`);
612
+ const o = fe(n), i = t.closest(`[${o}]`);
606
613
  if (!i)
607
614
  return null;
608
- const s = i.getAttribute(o);
609
- return s ? { element: i, customEventName: s } : null;
615
+ const a = i.getAttribute(o);
616
+ return a ? { element: i, customEventName: a } : null;
610
617
  }
611
- const me = 255;
618
+ const pe = 255;
612
619
  function C(t) {
613
- return t ? t.slice(0, me) : null;
620
+ return t ? t.slice(0, pe) : null;
614
621
  }
615
- const W = "click";
616
- function Ce(t, n) {
617
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
622
+ const R = "click";
623
+ function me(t, n) {
624
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
618
625
  if (!D(r)) {
619
626
  const E = {
620
627
  node_type: "unknown"
621
628
  };
622
629
  return l(
623
- W,
630
+ R,
624
631
  [
625
632
  e("feature_list", "2-0-0", o),
626
633
  e("session", "1-0-4", i),
627
634
  e("element", "1-0-0", E),
628
- a ? e("step", "1-0-0", a) : void 0,
629
- s ? e("experience", "1-0-1", s) : void 0
635
+ s ? e("step", "1-0-0", s) : void 0,
636
+ a ? e("experience", "1-0-1", a) : void 0
630
637
  ],
631
638
  n
632
639
  );
@@ -638,20 +645,20 @@ function Ce(t, n) {
638
645
  text: C(v(c))
639
646
  };
640
647
  return l(
641
- W,
648
+ R,
642
649
  [
643
650
  e("feature_list", "2-0-0", o),
644
651
  e("session", "1-0-4", i),
645
652
  e("element", "1-0-0", m),
646
- a ? e("step", "1-0-0", a) : void 0,
647
- s ? e("experience", "1-0-1", s) : void 0
653
+ s ? e("step", "1-0-0", s) : void 0,
654
+ a ? e("experience", "1-0-1", a) : void 0
648
655
  ],
649
656
  n
650
657
  );
651
658
  }
652
- const Ee = p(W, Ce);
653
- function ve(t, n, o, i) {
654
- const s = q(o.analyticsContext), a = x(o.analyticsContext), r = u(o.analyticsContext), c = B(o.analyticsContext), m = Y(o.analyticsContext), E = ut(o.analyticsContext), $ = lt(o.analyticsContext), g = ct(o.analyticsContext), N = j(o.analyticsContext), w = f(o.analyticsContext), P = d(o.analyticsContext), A = {
659
+ const Ce = p(R, me);
660
+ function Ee(t, n, o, i) {
661
+ const a = q(o.analyticsContext), s = x(o.analyticsContext), r = u(o.analyticsContext), c = B(o.analyticsContext), m = Y(o.analyticsContext), E = lt(o.analyticsContext), $ = ct(o.analyticsContext), g = rt(o.analyticsContext), N = j(o.analyticsContext), w = d(o.analyticsContext), P = f(o.analyticsContext), A = {
655
662
  id: n.id || null,
656
663
  node_type: n.nodeName.toLowerCase(),
657
664
  label: C(b(n)),
@@ -666,8 +673,8 @@ function ve(t, n, o, i) {
666
673
  }),
667
674
  e("session", "1-0-4", w),
668
675
  e("element", "1-0-0", A),
669
- s ? e("exception", "1-0-0", s) : void 0,
670
- a ? e("experience", "1-0-1", a) : void 0,
676
+ a ? e("exception", "1-0-0", a) : void 0,
677
+ s ? e("experience", "1-0-1", s) : void 0,
671
678
  r ? e("feature_list", "2-0-0", r) : void 0,
672
679
  c ? e("field_list", "1-0-0", c) : void 0,
673
680
  m ? e("form", "1-0-0", m) : void 0,
@@ -681,14 +688,14 @@ function ve(t, n, o, i) {
681
688
  );
682
689
  }
683
690
  function y(t, n, o) {
684
- const i = pe(n.event.target, t);
691
+ const i = xe(n.event.target, t);
685
692
  if (!i)
686
693
  return;
687
- const { element: s, customEventName: a } = i, r = ve(a, s, n, o);
694
+ const { element: a, customEventName: s } = i, r = Ee(s, a, n, o);
688
695
  Q(r);
689
696
  }
690
- function ro(t, n, o) {
691
- const i = q(t), s = x(t), a = u(t), r = B(t), c = t.form ? Y(t) : void 0, m = t.modal ? ut(t) : void 0, E = lt(t), $ = ct(t), g = j(t), N = f(t), w = d(t), P = l(
697
+ function io(t, n, o) {
698
+ const i = q(t), a = x(t), s = u(t), r = B(t), c = t.form ? Y(t) : void 0, m = t.modal ? lt(t) : void 0, E = ct(t), $ = rt(t), g = j(t), N = d(t), w = f(t), P = l(
692
699
  n,
693
700
  [
694
701
  e("app", "1-0-0", {
@@ -697,8 +704,8 @@ function ro(t, n, o) {
697
704
  }),
698
705
  e("session", "1-0-4", N),
699
706
  i ? e("exception", "1-0-0", i) : void 0,
700
- s ? e("experience", "1-0-1", s) : void 0,
701
- e("feature_list", "2-0-0", a),
707
+ a ? e("experience", "1-0-1", a) : void 0,
708
+ e("feature_list", "2-0-0", s),
702
709
  r ? e("field_list", "1-0-0", r) : void 0,
703
710
  c ? e("form", "1-0-0", c) : void 0,
704
711
  m ? e("modal", "1-0-0", m) : void 0,
@@ -711,20 +718,20 @@ function ro(t, n, o) {
711
718
  );
712
719
  Q(P);
713
720
  }
714
- const R = "rapid_scroll";
715
- function De(t, n) {
716
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
721
+ const W = "rapid_scroll";
722
+ function ve(t, n) {
723
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
717
724
  if (!D(r)) {
718
725
  const E = {
719
726
  node_type: "unknown"
720
727
  };
721
728
  return l(
722
- R,
729
+ W,
723
730
  [
724
731
  e("feature_list", "2-0-0", o),
725
732
  e("session", "1-0-4", i),
726
- a ? e("step", "1-0-0", a) : void 0,
727
- s ? e("experience", "1-0-1", s) : void 0,
733
+ s ? e("step", "1-0-0", s) : void 0,
734
+ a ? e("experience", "1-0-1", a) : void 0,
728
735
  e("element", "1-0-0", E)
729
736
  ],
730
737
  n
@@ -737,35 +744,35 @@ function De(t, n) {
737
744
  text: C(v(c))
738
745
  };
739
746
  return l(
740
- R,
747
+ W,
741
748
  [
742
749
  e("feature_list", "2-0-0", o),
743
750
  e("session", "1-0-4", i),
744
- a ? e("step", "1-0-0", a) : void 0,
745
- s ? e("experience", "1-0-1", s) : void 0,
751
+ s ? e("step", "1-0-0", s) : void 0,
752
+ a ? e("experience", "1-0-1", a) : void 0,
746
753
  e("element", "1-0-0", m)
747
754
  ],
748
755
  n
749
756
  );
750
757
  }
751
- const _e = p(R, De), ke = 100, be = 100, Te = 300;
752
- let tt = 0, et = 0;
753
- const Le = F(
758
+ const De = p(W, ve), _e = 100, ke = 100, be = 300;
759
+ let Z = 0, tt = 0;
760
+ const Te = F(
754
761
  (t, n) => {
755
- _e(t, n), y("rapid_scroll", t, n);
762
+ De(t, n), y("rapid_scroll", t, n);
756
763
  },
757
- Te
764
+ be
758
765
  );
759
- function $e(t, n) {
766
+ function Le(t, n) {
760
767
  const o = t.event.target || document.documentElement;
761
768
  if (!(o instanceof HTMLElement))
762
769
  return;
763
- const i = o.scrollTop, s = Date.now() - et;
764
- Math.abs(i - tt) > ke && s < be && Le(t, n), tt = i, et = Date.now();
770
+ const i = o.scrollTop, a = Date.now() - tt;
771
+ Math.abs(i - Z) > _e && a < ke && Te(t, n), Z = i, tt = Date.now();
765
772
  }
766
- const ge = k("scroll", $e, !0), z = "rapid_click";
767
- function he(t, n) {
768
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
773
+ const $e = k("scroll", Le, !0), z = "rapid_click";
774
+ function ge(t, n) {
775
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
769
776
  if (!D(r)) {
770
777
  const E = {
771
778
  node_type: "unknown"
@@ -776,8 +783,8 @@ function he(t, n) {
776
783
  e("feature_list", "2-0-0", o),
777
784
  e("session", "1-0-4", i),
778
785
  e("element", "1-0-0", E),
779
- a ? e("step", "1-0-0", a) : void 0,
780
- s ? e("experience", "1-0-1", s) : void 0
786
+ s ? e("step", "1-0-0", s) : void 0,
787
+ a ? e("experience", "1-0-1", a) : void 0
781
788
  ],
782
789
  n
783
790
  );
@@ -794,22 +801,22 @@ function he(t, n) {
794
801
  e("feature_list", "2-0-0", o),
795
802
  e("session", "1-0-4", i),
796
803
  e("element", "1-0-0", m),
797
- a ? e("step", "1-0-0", a) : void 0,
798
- s ? e("experience", "1-0-1", s) : void 0
804
+ s ? e("step", "1-0-0", s) : void 0,
805
+ a ? e("experience", "1-0-1", a) : void 0
799
806
  ],
800
807
  n
801
808
  );
802
809
  }
803
- const ye = p(z, he);
804
- let O = 0, nt = 0;
805
- const Ne = 3, we = 500;
806
- function Pe(t, n) {
810
+ const he = p(z, ge);
811
+ let O = 0, et = 0;
812
+ const ye = 3, Ne = 500;
813
+ function we(t, n) {
807
814
  const o = (/* @__PURE__ */ new Date()).getTime();
808
- o - nt < we ? O++ : O = 1, nt = o, O >= Ne && (ye(t, n), y("rapid_click", t, n), O = 0);
815
+ o - et < Ne ? O++ : O = 1, et = o, O >= ye && (he(t, n), y("rapid_click", t, n), O = 0);
809
816
  }
810
- const Ve = k("click", Pe), U = "right_click";
811
- function Se(t, n) {
812
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
817
+ const Pe = k("click", we), U = "right_click";
818
+ function Ve(t, n) {
819
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
813
820
  if (!D(r)) {
814
821
  const E = {
815
822
  node_type: "unknown"
@@ -818,8 +825,8 @@ function Se(t, n) {
818
825
  e("feature_list", "2-0-0", o),
819
826
  e("session", "1-0-4", i),
820
827
  e("element", "1-0-0", E),
821
- a ? e("step", "1-0-0", a) : void 0,
822
- s ? e("experience", "1-0-1", s) : void 0
828
+ s ? e("step", "1-0-0", s) : void 0,
829
+ a ? e("experience", "1-0-1", a) : void 0
823
830
  ]);
824
831
  }
825
832
  const c = T(r) || r, m = {
@@ -834,81 +841,81 @@ function Se(t, n) {
834
841
  e("feature_list", "2-0-0", o),
835
842
  e("session", "1-0-4", i),
836
843
  e("element", "1-0-0", m),
837
- a ? e("step", "1-0-0", a) : void 0,
838
- s ? e("experience", "1-0-1", s) : void 0
844
+ s ? e("step", "1-0-0", s) : void 0,
845
+ a ? e("experience", "1-0-1", a) : void 0
839
846
  ],
840
847
  n
841
848
  );
842
849
  }
843
- const Ye = p(U, Se);
844
- function Be(t, n) {
845
- Ye(t, n), y("right_click", t, n);
850
+ const Se = p(U, Ve);
851
+ function Ye(t, n) {
852
+ Se(t, n), y("right_click", t, n);
846
853
  }
847
- const Ae = k("contextmenu", Be), Lt = "mouse_shake";
848
- function He(t, n) {
849
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
854
+ const Be = k("contextmenu", Ye), Tt = "mouse_shake";
855
+ function Ae(t, n) {
856
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
850
857
  return l(
851
- Lt,
858
+ Tt,
852
859
  [
853
860
  e("feature_list", "2-0-0", o),
854
861
  e("session", "1-0-4", i),
855
- a ? e("step", "1-0-0", a) : void 0,
856
- s ? e("experience", "1-0-1", s) : void 0
862
+ s ? e("step", "1-0-0", s) : void 0,
863
+ a ? e("experience", "1-0-1", a) : void 0
857
864
  ],
858
865
  n
859
866
  );
860
867
  }
861
- const Oe = p(Lt, He), je = 5, qe = 500, Fe = 500;
862
- let ot = { x: 0 }, V = [], st = 0;
863
- const Ie = F(
868
+ const He = p(Tt, Ae), Oe = 5, je = 500, qe = 500;
869
+ let nt = { x: 0 }, V = [], ot = 0;
870
+ const Fe = F(
864
871
  (t, n) => {
865
- Oe(t, n), y("mouse_shake", t, n);
872
+ He(t, n), y("mouse_shake", t, n);
866
873
  },
867
- qe
874
+ je
868
875
  );
869
- function We(t, n) {
870
- const o = Date.now(), i = t.event.clientX - ot.x, s = Math.sign(i);
871
- o - st > Fe && (V = []), s !== 0 && (V.length === 0 || V.at(-1) !== s) && V.push(s), ot = { x: t.event.clientX, y: t.event.clientY }, V.length >= je && (Ie(t, n), V = []), st = o;
876
+ function Ie(t, n) {
877
+ const o = Date.now(), i = t.event.clientX - nt.x, a = Math.sign(i);
878
+ o - ot > qe && (V = []), a !== 0 && (V.length === 0 || V.at(-1) !== a) && V.push(a), nt = { x: t.event.clientX, y: t.event.clientY }, V.length >= Oe && (Fe(t, n), V = []), ot = o;
872
879
  }
873
- const Re = k("mousemove", We), $t = "page_visible";
874
- function ze(t, n) {
875
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
880
+ const Re = k("mousemove", Ie), Lt = "page_visible";
881
+ function We(t, n) {
882
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
876
883
  return l(
877
- $t,
884
+ Lt,
878
885
  [
879
886
  e("feature_list", "2-0-0", o),
880
887
  e("session", "1-0-4", i),
881
- a ? e("step", "1-0-0", a) : void 0,
882
- s ? e("experience", "1-0-1", s) : void 0
888
+ s ? e("step", "1-0-0", s) : void 0,
889
+ a ? e("experience", "1-0-1", a) : void 0
883
890
  ],
884
891
  n
885
892
  );
886
893
  }
887
- const Ue = p($t, ze), gt = "page_hidden";
888
- function Ge(t, n) {
889
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
894
+ const ze = p(Lt, We), $t = "page_hidden";
895
+ function Ue(t, n) {
896
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
890
897
  return l(
891
- gt,
898
+ $t,
892
899
  [
893
900
  e("feature_list", "2-0-0", o),
894
901
  e("session", "1-0-4", i),
895
- a ? e("step", "1-0-0", a) : void 0,
896
- s ? e("experience", "1-0-1", s) : void 0
902
+ s ? e("step", "1-0-0", s) : void 0,
903
+ a ? e("experience", "1-0-1", a) : void 0
897
904
  ],
898
905
  n
899
906
  );
900
907
  }
901
- const Ke = p(gt, Ge);
902
- function Me(t, n) {
908
+ const Ge = p($t, Ue);
909
+ function Ke(t, n) {
903
910
  if (document.visibilityState === "visible") {
904
- Ue(t, n);
911
+ ze(t, n);
905
912
  return;
906
913
  }
907
- Ke(t, n);
914
+ Ge(t, n);
908
915
  }
909
- const Xe = Mt("visibilitychange", Me), G = "backspace";
910
- function Je(t, n) {
911
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
916
+ const Me = Kt("visibilitychange", Ke), G = "backspace";
917
+ function Xe(t, n) {
918
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
912
919
  if (!D(r)) {
913
920
  const E = {
914
921
  node_type: "unknown"
@@ -919,8 +926,8 @@ function Je(t, n) {
919
926
  e("feature_list", "2-0-0", o),
920
927
  e("session", "1-0-4", i),
921
928
  e("element", "1-0-0", E),
922
- a ? e("step", "1-0-0", a) : void 0,
923
- s ? e("experience", "1-0-1", s) : void 0
929
+ s ? e("step", "1-0-0", s) : void 0,
930
+ a ? e("experience", "1-0-1", a) : void 0
924
931
  ],
925
932
  n
926
933
  );
@@ -937,81 +944,81 @@ function Je(t, n) {
937
944
  e("feature_list", "2-0-0", o),
938
945
  e("session", "1-0-4", i),
939
946
  e("element", "1-0-0", m),
940
- a ? e("step", "1-0-0", a) : void 0,
941
- s ? e("experience", "1-0-1", s) : void 0
947
+ s ? e("step", "1-0-0", s) : void 0,
948
+ a ? e("experience", "1-0-1", a) : void 0
942
949
  ],
943
950
  n
944
951
  );
945
952
  }
946
- const Qe = p(G, Je);
947
- function Ze(t, n) {
948
- t.event.key === "Backspace" && Qe(t, n);
953
+ const Je = p(G, Xe);
954
+ function Qe(t, n) {
955
+ t.event.key === "Backspace" && Je(t, n);
949
956
  }
950
- const tn = k("keydown", Ze), ht = "page_hide";
951
- function en(t, n) {
952
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
957
+ const Ze = k("keydown", Qe), gt = "page_hide";
958
+ function tn(t, n) {
959
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
953
960
  return l(
954
- ht,
961
+ gt,
955
962
  [
956
963
  e("feature_list", "2-0-0", o),
957
964
  e("session", "1-0-4", i),
958
- a ? e("step", "1-0-0", a) : void 0,
959
- s ? e("experience", "1-0-1", s) : void 0
965
+ s ? e("step", "1-0-0", s) : void 0,
966
+ a ? e("experience", "1-0-1", a) : void 0
960
967
  ],
961
968
  n
962
969
  );
963
970
  }
964
- const nn = p(ht, en);
965
- function on(t, n) {
966
- nn(t, n);
971
+ const en = p(gt, tn);
972
+ function nn(t, n) {
973
+ en(t, n);
967
974
  }
968
- const sn = S("pagehide", on), yt = "page_show";
969
- function an(t, n) {
970
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
975
+ const on = S("pagehide", nn), ht = "page_show";
976
+ function sn(t, n) {
977
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
971
978
  return l(
972
- yt,
979
+ ht,
973
980
  [
974
981
  e("feature_list", "2-0-0", o),
975
982
  e("session", "1-0-4", i),
976
- a ? e("step", "1-0-0", a) : void 0,
977
- s ? e("experience", "1-0-1", s) : void 0
983
+ s ? e("step", "1-0-0", s) : void 0,
984
+ a ? e("experience", "1-0-1", a) : void 0
978
985
  ],
979
986
  n
980
987
  );
981
988
  }
982
- const rn = p(yt, an);
983
- function cn(t, n) {
984
- rn(t, n);
989
+ const an = p(ht, sn);
990
+ function rn(t, n) {
991
+ an(t, n);
985
992
  }
986
- const ln = S("pageshow", cn), Nt = "offline";
987
- function un(t, n) {
988
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
993
+ const cn = S("pageshow", rn), yt = "offline";
994
+ function ln(t, n) {
995
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
989
996
  return l(
990
- Nt,
997
+ yt,
991
998
  [
992
999
  e("feature_list", "2-0-0", o),
993
1000
  e("session", "1-0-4", i),
994
- a ? e("step", "1-0-0", a) : void 0,
995
- s ? e("experience", "1-0-1", s) : void 0
1001
+ s ? e("step", "1-0-0", s) : void 0,
1002
+ a ? e("experience", "1-0-1", a) : void 0
996
1003
  ],
997
1004
  n
998
1005
  );
999
1006
  }
1000
- const fn = p(Nt, un);
1007
+ const un = p(yt, ln);
1001
1008
  function dn(t, n) {
1002
- fn(t, n);
1009
+ un(t, n);
1003
1010
  }
1004
- const xn = S("offline", dn), K = "scroll";
1005
- function pn(t, n) {
1006
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1011
+ const fn = S("offline", dn), K = "scroll";
1012
+ function xn(t, n) {
1013
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1007
1014
  if (!D(r))
1008
1015
  return l(
1009
1016
  K,
1010
1017
  [
1011
1018
  e("feature_list", "2-0-0", o),
1012
1019
  e("session", "1-0-4", i),
1013
- a ? e("step", "1-0-0", a) : void 0,
1014
- s ? e("experience", "1-0-1", s) : void 0
1020
+ s ? e("step", "1-0-0", s) : void 0,
1021
+ a ? e("experience", "1-0-1", a) : void 0
1015
1022
  ],
1016
1023
  n
1017
1024
  );
@@ -1026,91 +1033,91 @@ function pn(t, n) {
1026
1033
  [
1027
1034
  e("feature_list", "2-0-0", o),
1028
1035
  e("session", "1-0-4", i),
1029
- a ? e("step", "1-0-0", a) : void 0,
1030
- s ? e("experience", "1-0-1", s) : void 0,
1036
+ s ? e("step", "1-0-0", s) : void 0,
1037
+ a ? e("experience", "1-0-1", a) : void 0,
1031
1038
  e("element", "1-0-0", m)
1032
1039
  ],
1033
1040
  n
1034
1041
  );
1035
1042
  }
1036
- const mn = p(K, pn), Cn = F(
1043
+ const pn = p(K, xn), mn = F(
1037
1044
  (t, n) => {
1038
- mn(t, n), y("scroll", t, n);
1045
+ pn(t, n), y("scroll", t, n);
1039
1046
  },
1040
1047
  500
1041
- ), En = k("scroll", Cn, !0), wt = "online";
1042
- function vn(t, n) {
1043
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
1048
+ ), Cn = k("scroll", mn, !0), Nt = "online";
1049
+ function En(t, n) {
1050
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
1044
1051
  return l(
1045
- wt,
1052
+ Nt,
1046
1053
  [
1047
1054
  e("feature_list", "2-0-0", o),
1048
1055
  e("session", "1-0-4", i),
1049
- a ? e("step", "1-0-0", a) : void 0,
1050
- s ? e("experience", "1-0-1", s) : void 0
1056
+ s ? e("step", "1-0-0", s) : void 0,
1057
+ a ? e("experience", "1-0-1", a) : void 0
1051
1058
  ],
1052
1059
  n
1053
1060
  );
1054
1061
  }
1055
- const Dn = p(wt, vn);
1056
- function _n(t, n) {
1057
- Dn(t, n);
1062
+ const vn = p(Nt, En);
1063
+ function Dn(t, n) {
1064
+ vn(t, n);
1058
1065
  }
1059
- const kn = S("online", _n), Pt = "resize";
1060
- function bn(t, n) {
1061
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
1066
+ const _n = S("online", Dn), wt = "resize";
1067
+ function kn(t, n) {
1068
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
1062
1069
  return l(
1063
- Pt,
1070
+ wt,
1064
1071
  [
1065
1072
  e("feature_list", "2-0-0", o),
1066
1073
  e("session", "1-0-4", i),
1067
- a ? e("step", "1-0-0", a) : void 0,
1068
- s ? e("experience", "1-0-1", s) : void 0
1074
+ s ? e("step", "1-0-0", s) : void 0,
1075
+ a ? e("experience", "1-0-1", a) : void 0
1069
1076
  ],
1070
1077
  n
1071
1078
  );
1072
1079
  }
1073
- const at = p(Pt, bn);
1080
+ const st = p(wt, kn);
1074
1081
  let I = 0;
1075
- const Tn = F(
1082
+ const bn = F(
1076
1083
  (t, n) => {
1077
1084
  const o = window.innerWidth;
1078
- o !== I ? (at(t, n), I = o) : "ontouchstart" in window || at(t, n), I = o;
1085
+ o !== I ? (st(t, n), I = o) : "ontouchstart" in window || st(t, n), I = o;
1079
1086
  },
1080
1087
  300
1081
- ), Ln = S("resize", Tn), Vt = "unload";
1082
- function $n(t, n) {
1083
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
1088
+ ), Tn = S("resize", bn), Pt = "unload";
1089
+ function Ln(t, n) {
1090
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
1084
1091
  return l(
1085
- Vt,
1092
+ Pt,
1086
1093
  [
1087
1094
  e("feature_list", "2-0-0", o),
1088
1095
  e("session", "1-0-4", i),
1089
- a ? e("step", "1-0-0", a) : void 0,
1090
- s ? e("experience", "1-0-1", s) : void 0
1096
+ s ? e("step", "1-0-0", s) : void 0,
1097
+ a ? e("experience", "1-0-1", a) : void 0
1091
1098
  ],
1092
1099
  n
1093
1100
  );
1094
1101
  }
1095
- const gn = p(Vt, $n);
1096
- function hn(t, n) {
1097
- gn(t, n);
1102
+ const $n = p(Pt, Ln);
1103
+ function gn(t, n) {
1104
+ $n(t, n);
1098
1105
  }
1099
- const yn = S("unload", hn);
1100
- function Nn(t, n) {
1101
- Ee(t, n), y("click", t, n);
1106
+ const hn = S("unload", gn);
1107
+ function yn(t, n) {
1108
+ Ce(t, n), y("click", t, n);
1102
1109
  }
1103
- const wn = k("click", Nn), M = "paste";
1104
- function Pn(t, n) {
1105
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1110
+ const Nn = k("click", yn), M = "paste";
1111
+ function wn(t, n) {
1112
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1106
1113
  if (!D(r))
1107
1114
  return l(
1108
1115
  M,
1109
1116
  [
1110
1117
  e("feature_list", "2-0-0", o),
1111
1118
  e("session", "1-0-4", i),
1112
- a ? e("step", "1-0-0", a) : void 0,
1113
- s ? e("experience", "1-0-1", s) : void 0
1119
+ s ? e("step", "1-0-0", s) : void 0,
1120
+ a ? e("experience", "1-0-1", a) : void 0
1114
1121
  ],
1115
1122
  n
1116
1123
  );
@@ -1125,28 +1132,28 @@ function Pn(t, n) {
1125
1132
  [
1126
1133
  e("feature_list", "2-0-0", o),
1127
1134
  e("session", "1-0-4", i),
1128
- a ? e("step", "1-0-0", a) : void 0,
1129
- s ? e("experience", "1-0-1", s) : void 0,
1135
+ s ? e("step", "1-0-0", s) : void 0,
1136
+ a ? e("experience", "1-0-1", a) : void 0,
1130
1137
  e("element", "1-0-0", m)
1131
1138
  ],
1132
1139
  n
1133
1140
  );
1134
1141
  }
1135
- const Vn = p(M, Pn);
1136
- function Sn(t, n) {
1137
- Vn(t, n);
1142
+ const Pn = p(M, wn);
1143
+ function Vn(t, n) {
1144
+ Pn(t, n);
1138
1145
  }
1139
- const Yn = k("paste", Sn), X = "copy";
1140
- function Bn(t, n) {
1141
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1146
+ const Sn = k("paste", Vn), X = "copy";
1147
+ function Yn(t, n) {
1148
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1142
1149
  if (!D(r))
1143
1150
  return l(
1144
1151
  X,
1145
1152
  [
1146
1153
  e("feature_list", "2-0-0", o),
1147
1154
  e("session", "1-0-4", i),
1148
- a ? e("step", "1-0-0", a) : void 0,
1149
- s ? e("experience", "1-0-1", s) : void 0
1155
+ s ? e("step", "1-0-0", s) : void 0,
1156
+ a ? e("experience", "1-0-1", a) : void 0
1150
1157
  ],
1151
1158
  n
1152
1159
  );
@@ -1161,28 +1168,28 @@ function Bn(t, n) {
1161
1168
  [
1162
1169
  e("feature_list", "2-0-0", o),
1163
1170
  e("session", "1-0-4", i),
1164
- a ? e("step", "1-0-0", a) : void 0,
1165
- s ? e("experience", "1-0-1", s) : void 0,
1171
+ s ? e("step", "1-0-0", s) : void 0,
1172
+ a ? e("experience", "1-0-1", a) : void 0,
1166
1173
  e("element", "1-0-0", m)
1167
1174
  ],
1168
1175
  n
1169
1176
  );
1170
1177
  }
1171
- const An = p(X, Bn);
1172
- function Hn(t, n) {
1173
- An(t, n);
1178
+ const Bn = p(X, Yn);
1179
+ function An(t, n) {
1180
+ Bn(t, n);
1174
1181
  }
1175
- const On = k("copy", Hn), J = "drag";
1176
- function jn(t, n) {
1177
- const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1182
+ const Hn = k("copy", An), J = "drag";
1183
+ function On(t, n) {
1184
+ const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1178
1185
  if (!D(r))
1179
1186
  return l(
1180
1187
  J,
1181
1188
  [
1182
1189
  e("feature_list", "2-0-0", o),
1183
1190
  e("session", "1-0-4", i),
1184
- a ? e("step", "1-0-0", a) : void 0,
1185
- s ? e("experience", "1-0-1", s) : void 0
1191
+ s ? e("step", "1-0-0", s) : void 0,
1192
+ a ? e("experience", "1-0-1", a) : void 0
1186
1193
  ],
1187
1194
  n
1188
1195
  );
@@ -1197,64 +1204,64 @@ function jn(t, n) {
1197
1204
  [
1198
1205
  e("feature_list", "2-0-0", o),
1199
1206
  e("session", "1-0-4", i),
1200
- a ? e("step", "1-0-0", a) : void 0,
1201
- s ? e("experience", "1-0-1", s) : void 0,
1207
+ s ? e("step", "1-0-0", s) : void 0,
1208
+ a ? e("experience", "1-0-1", a) : void 0,
1202
1209
  e("element", "1-0-0", m)
1203
1210
  ],
1204
1211
  n
1205
1212
  );
1206
1213
  }
1207
- const qn = p(J, jn);
1208
- function St(t, n) {
1214
+ const jn = p(J, On);
1215
+ function Vt(t, n) {
1209
1216
  const o = t.event.currentTarget;
1210
1217
  if (!o || !(o instanceof HTMLElement))
1211
1218
  return;
1212
- function i(s) {
1213
- St({ event: s, analyticsContext: t.analyticsContext });
1219
+ function i(a) {
1220
+ Vt({ event: a, analyticsContext: t.analyticsContext });
1214
1221
  }
1215
1222
  o.removeEventListener("drag", i), o.addEventListener(
1216
1223
  "dragend",
1217
- () => Yt(o, () => t.analyticsContext)
1218
- ), qn(t, n), y("drag", t, n);
1224
+ () => St(o, () => t.analyticsContext)
1225
+ ), jn(t, n), y("drag", t, n);
1219
1226
  }
1220
- const Yt = k("drag", St);
1221
- function co(t, n) {
1222
- n && (wn(n, t), Ve(n, t), Ae(n, t), On(n, t), Yn(n, t), Yt(n, t), tn(n, t), En(n, t), ge(n, t), Re(n, t));
1227
+ const St = k("drag", Vt);
1228
+ function ro(t, n) {
1229
+ n && (Nn(n, t), Pe(n, t), Be(n, t), Hn(n, t), Sn(n, t), St(n, t), Ze(n, t), Cn(n, t), $e(n, t), Re(n, t));
1223
1230
  }
1224
- function lo(t) {
1225
- Xe(t), sn(t), ln(t), xn(t), kn(t), Ln(t), yn(t);
1231
+ function co(t) {
1232
+ Me(t), on(t), cn(t), fn(t), _n(t), Tn(t), hn(t);
1226
1233
  }
1227
1234
  export {
1228
- so as A,
1229
- io as B,
1230
- ro as C,
1231
- to as D,
1232
- eo as E,
1233
- no as F,
1234
- f as a,
1235
+ oo as A,
1236
+ ao as B,
1237
+ io as C,
1238
+ Zn as D,
1239
+ to as E,
1240
+ eo as F,
1241
+ d as a,
1235
1242
  x as b,
1236
1243
  p as c,
1237
- d,
1244
+ f as d,
1238
1245
  j as e,
1239
1246
  u as f,
1240
1247
  B as g,
1241
1248
  l as h,
1242
1249
  e as i,
1243
1250
  q as j,
1244
- ct as k,
1245
- lt as l,
1246
- ut as m,
1247
- lo as n,
1248
- co as o,
1249
- Gn as p,
1250
- Mn as q,
1251
- Xn as r,
1252
- Jn as s,
1253
- Kn as t,
1251
+ rt as k,
1252
+ ct as l,
1253
+ lt as m,
1254
+ co as n,
1255
+ ro as o,
1256
+ Un as p,
1257
+ Kn as q,
1258
+ Mn as r,
1259
+ Xn as s,
1260
+ Gn as t,
1254
1261
  y as u,
1255
- Ee as v,
1256
- Qn as w,
1257
- Zn as x,
1258
- oo as y,
1259
- ao as z
1262
+ Ce as v,
1263
+ Jn as w,
1264
+ Qn as x,
1265
+ no as y,
1266
+ so as z
1260
1267
  };