@depict-ai/utilishared 2.6.16 → 2.6.18

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.
@@ -84,6 +84,7 @@ $parcel$export(module.exports, "set_session_id_fn", () => $335c248bb07a3509$expo
84
84
  $parcel$export(module.exports, "get_session_id", () => $335c248bb07a3509$export$61e7e1f11e96692f);
85
85
  $parcel$export(module.exports, "get_cookie", () => $335c248bb07a3509$export$622991c71a1f52b3);
86
86
  $parcel$export(module.exports, "get_tracking_event_context_data", () => $335c248bb07a3509$export$8c6f26a5b6921b95);
87
+ $parcel$export(module.exports, "set_event_transport", () => $bccbc7bdec4799cf$export$83c5d6634ba2a3c5);
87
88
  $parcel$export(module.exports, "filter_depict_payload", () => $49880c4ce4bb7db2$export$72036d950e1fae95);
88
89
  $parcel$export(module.exports, "send_depict", () => $49880c4ce4bb7db2$export$28cacbd9b4306ffc);
89
90
  $parcel$export(module.exports, "foolproof_send_beacon", () => $49880c4ce4bb7db2$export$cc3b6ddf805f6156);
@@ -207,7 +208,7 @@ $parcel$export(module.exports, "version", () => $ce0ab19b284b64fa$export$83d89fb
207
208
  $parcel$export(module.exports, "add_to_version_info", () => $045fb30107c9eecc$export$2cefb7e61fcbae00);
208
209
  $parcel$export(module.exports, "sync_el_content_with_accessor", () => $84d13ab567309a50$export$c3f56a35e076f139);
209
210
  $parcel$export(module.exports, "use_href_accessor", () => $59b7011b96010a8e$export$e35115e6d0715f77);
210
- const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.6.16";
211
+ const $ce0ab19b284b64fa$export$83d89fbfd8236492 = "2.6.18";
211
212
  const $9e9538f4aff6f83c$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
212
213
  const $7f95f77417d06249$var$browser_prefix_styling = "color: #fff;";
213
214
  let $7f95f77417d06249$var$browser_prefix = "[Depict]";
@@ -1233,6 +1234,7 @@ function $bd0a305620de4c2a$var$_periodic_send2(msg) {
1233
1234
  })().catch(e => $3b52ccc10510b32a$export$f18d5b0af29128b7(e, "error"));
1234
1235
  return () => quit = true;
1235
1236
  }
1237
+ const $62869a3ed703f236$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1236
1238
 
1237
1239
  /**
1238
1240
  * Returns a random string
@@ -1244,10 +1246,105 @@ function $a13f25507f352177$export$656831b7e9c341c3() {
1244
1246
  function $a13f25507f352177$export$a6db784f019668ba() {
1245
1247
  return "x" + $a13f25507f352177$export$656831b7e9c341c3().replaceAll(".", "");
1246
1248
  }
1247
- const $62869a3ed703f236$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1249
+
1250
+ /** HTTP is the default; both also sends identical events over a canary socket. */
1251
+ const $bccbc7bdec4799cf$var$MAX_BODY_BYTES = 49152;
1252
+ const $bccbc7bdec4799cf$var$IMPRESSION_DELAY_MS = 250;
1253
+ let $bccbc7bdec4799cf$var$transport = "http";
1254
+ let $bccbc7bdec4799cf$var$socket;
1255
+ let $bccbc7bdec4799cf$var$queued_events = [];
1256
+ let $bccbc7bdec4799cf$var$queued_bytes = 2;
1257
+ let $bccbc7bdec4799cf$var$flush_timer;
1258
+ let $bccbc7bdec4799cf$var$listening = false;
1259
+ function $bccbc7bdec4799cf$export$83c5d6634ba2a3c5(value) {
1260
+ $bccbc7bdec4799cf$var$transport = value === "both" ? "both" : "http";
1261
+ }
1262
+ function $bccbc7bdec4799cf$var$send_beacon(url, body) {
1263
+ try {
1264
+ if (!navigator.sendBeacon(url, new Blob([body], {
1265
+ type: "text/plain"
1266
+ }))) $3b52ccc10510b32a$export$f18d5b0af29128b7(new Error("Event beacon was not queued"), "warning");
1267
+ } catch (error) {
1268
+ $3b52ccc10510b32a$export$f18d5b0af29128b7(error, "warning");
1269
+ }
1270
+ }
1271
+ function $bccbc7bdec4799cf$var$send_batch(url, body) {
1272
+ let retried = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1273
+ let request;
1274
+ try {
1275
+ request = fetch(url, {
1276
+ method: "POST",
1277
+ keepalive: true,
1278
+ credentials: "omit",
1279
+ headers: {
1280
+ "Content-Type": "text/plain"
1281
+ },
1282
+ body: body
1283
+ });
1284
+ } catch {
1285
+ $bccbc7bdec4799cf$var$send_beacon(url, body);
1286
+ return;
1287
+ }
1288
+ request.then(response => {
1289
+ if (response.status >= 500 && !retried && document.visibilityState === "visible") $bccbc7bdec4799cf$var$send_batch(url, body, true);
1290
+ }, () => {
1291
+ if (!retried && document.visibilityState === "visible") $bccbc7bdec4799cf$var$send_batch(url, body, true);else $bccbc7bdec4799cf$var$send_beacon(url, body);
1292
+ }).catch(error => $3b52ccc10510b32a$export$f18d5b0af29128b7(error, "warning"));
1293
+ }
1294
+ const $bccbc7bdec4799cf$var$flush = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9(() => {
1295
+ clearTimeout($bccbc7bdec4799cf$var$flush_timer);
1296
+ $bccbc7bdec4799cf$var$flush_timer = undefined;
1297
+ if (!$bccbc7bdec4799cf$var$queued_events.length) return;
1298
+ const body = "[".concat($bccbc7bdec4799cf$var$queued_events.join(","), "]");
1299
+ $bccbc7bdec4799cf$var$queued_events = [];
1300
+ $bccbc7bdec4799cf$var$queued_bytes = 2;
1301
+ $bccbc7bdec4799cf$var$send_batch(String($045fb30107c9eecc$export$fe609f0216e4ebef((0, $62869a3ed703f236$export$362abebb4b313340) + "/create-events")), body);
1302
+ });
1303
+ const $bccbc7bdec4799cf$var$send_canary = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9(json => {
1304
+ if (typeof WebSocket !== "function") return;
1305
+ $bccbc7bdec4799cf$var$socket || ($bccbc7bdec4799cf$var$socket = new (0, $bd0a305620de4c2a$export$1d9c6fddbff3441f)("wss://ws.depict.ai/ws/create-events"));
1306
+ const event = JSON.parse(json);
1307
+ $bccbc7bdec4799cf$var$socket.ensure_sent({
1308
+ id: event.deduplication_id,
1309
+ event: event
1310
+ }).catch(error => $3b52ccc10510b32a$export$f18d5b0af29128b7(error, "warning"));
1311
+ }, undefined, "warning");
1312
+ function $bccbc7bdec4799cf$export$fb18f6dbe1c6f251(payload) {
1313
+ if (process.env.DEPICT === "false" || typeof document === "undefined") return;
1314
+ if (!$bccbc7bdec4799cf$var$listening) {
1315
+ document.addEventListener("visibilitychange", () => {
1316
+ if (document.visibilityState === "hidden") $bccbc7bdec4799cf$var$flush();
1317
+ });
1318
+ window.addEventListener("pagehide", $bccbc7bdec4799cf$var$flush);
1319
+ $bccbc7bdec4799cf$var$listening = true;
1320
+ }
1321
+ let accepted = true;
1322
+ let immediate = document.visibilityState === "hidden";
1323
+ for (const event of payload) {
1324
+ const json = JSON.stringify({
1325
+ ...event,
1326
+ deduplication_id: event.deduplication_id || $a13f25507f352177$export$656831b7e9c341c3()
1327
+ });
1328
+ const bytes = new Blob([json]).size;
1329
+ if (bytes + 2 > $bccbc7bdec4799cf$var$MAX_BODY_BYTES) {
1330
+ $3b52ccc10510b32a$export$f18d5b0af29128b7(new Error("Event exceeds the keepalive body limit"), "warning", {
1331
+ bytes: bytes,
1332
+ type: event.type
1333
+ });
1334
+ accepted = false;
1335
+ continue;
1336
+ }
1337
+ if ($bccbc7bdec4799cf$var$queued_bytes + bytes + ($bccbc7bdec4799cf$var$queued_events.length ? 1 : 0) > $bccbc7bdec4799cf$var$MAX_BODY_BYTES) $bccbc7bdec4799cf$var$flush();
1338
+ $bccbc7bdec4799cf$var$queued_bytes += bytes + ($bccbc7bdec4799cf$var$queued_events.length ? 1 : 0);
1339
+ $bccbc7bdec4799cf$var$queued_events.push(json);
1340
+ immediate || (immediate = event.type !== "element_visible");
1341
+ if ($bccbc7bdec4799cf$var$transport === "both") $bccbc7bdec4799cf$var$send_canary(json);
1342
+ }
1343
+ if (immediate) $bccbc7bdec4799cf$var$flush();else if ($bccbc7bdec4799cf$var$queued_events.length && $bccbc7bdec4799cf$var$flush_timer === undefined) $bccbc7bdec4799cf$var$flush_timer = setTimeout($bccbc7bdec4799cf$var$flush, $bccbc7bdec4799cf$var$IMPRESSION_DELAY_MS);
1344
+ return accepted;
1345
+ }
1248
1346
  const $49880c4ce4bb7db2$var$c = (0, $3b52ccc10510b32a$export$b3bbfd758f11cfa9);
1249
- const $49880c4ce4bb7db2$var$ws_instance = /*@__PURE__*/$49880c4ce4bb7db2$var$c(() => new (0, $bd0a305620de4c2a$export$1d9c6fddbff3441f)("wss://ws.depict.ai/ws/create-events"))();
1250
- const $49880c4ce4bb7db2$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
1347
+ const $49880c4ce4bb7db2$var$allowed_keys = ["deduplication_id", "tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
1251
1348
  const $49880c4ce4bb7db2$export$72036d950e1fae95 = /*@__PURE__*/$49880c4ce4bb7db2$var$c(payload => {
1252
1349
  if (process.env.DEPICT === "false") return;
1253
1350
  return payload.map(body => Object.fromEntries(Object.entries(body).filter(_ref => {
@@ -1256,24 +1353,11 @@ const $49880c4ce4bb7db2$export$72036d950e1fae95 = /*@__PURE__*/$49880c4ce4bb7db2
1256
1353
  })));
1257
1354
  });
1258
1355
  const $49880c4ce4bb7db2$export$aa26019042811d4f = /*@__PURE__*/$49880c4ce4bb7db2$var$c(async bodies => {
1259
- if (process.env.DEPICT === "false") return;
1260
- for (let i = 0; i < bodies.length; i++) {
1261
- const id = $a13f25507f352177$export$656831b7e9c341c3();
1262
- $49880c4ce4bb7db2$var$ws_instance === null || $49880c4ce4bb7db2$var$ws_instance === void 0 || $49880c4ce4bb7db2$var$ws_instance.ensure_sent({
1263
- id: id,
1264
- event: bodies[i]
1265
- }).catch(e => $3b52ccc10510b32a$export$f18d5b0af29128b7(e, "error"));
1266
- }
1356
+ $bccbc7bdec4799cf$export$fb18f6dbe1c6f251(bodies);
1267
1357
  });
1268
1358
  const $49880c4ce4bb7db2$export$608478473a3304a0 = /*@__PURE__*/$49880c4ce4bb7db2$var$c(function (payload) {
1269
1359
  let use_ws = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1270
- if (process.env.DEPICT === "false") return;
1271
- if (use_ws && typeof WebSocket == "function" && typeof ($49880c4ce4bb7db2$var$ws_instance === null || $49880c4ce4bb7db2$var$ws_instance === void 0 ? void 0 : $49880c4ce4bb7db2$var$ws_instance.ensure_sent) == "function") {
1272
- $7f95f77417d06249$export$de56f1198d121036("Sending to depict (ws)", payload);
1273
- return $49880c4ce4bb7db2$export$aa26019042811d4f(payload);
1274
- }
1275
- const url = (0, $62869a3ed703f236$export$362abebb4b313340) + "/create-events";
1276
- return $49880c4ce4bb7db2$export$cc3b6ddf805f6156(url, payload);
1360
+ return $bccbc7bdec4799cf$export$fb18f6dbe1c6f251(payload);
1277
1361
  });
1278
1362
  const $49880c4ce4bb7db2$export$cc3b6ddf805f6156 = /*@__PURE__*/$49880c4ce4bb7db2$var$c((url, payload) => {
1279
1363
  const payload_json = JSON.stringify(payload);
@@ -1387,19 +1471,10 @@ const $335c248bb07a3509$export$82badda1f9923310 = /*@__PURE__*/$3b52ccc10510b32a
1387
1471
  });
1388
1472
  const $335c248bb07a3509$export$15f8a0cd5a8c0ebb = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9(vars => {
1389
1473
  if (process.env.DEPICT === "false") return;
1390
- const beacon_retval = $335c248bb07a3509$export$82badda1f9923310({
1474
+ return $335c248bb07a3509$export$82badda1f9923310({
1391
1475
  ...vars,
1392
1476
  type: "click"
1393
- }, false // don't send clicks over websockets because the page might unload
1394
- );
1395
-
1396
- $335c248bb07a3509$export$82badda1f9923310({
1397
- ...vars,
1398
- type: "ws_click"
1399
- }, true // explicitly send `ws-click` over websockets, this is an experiment to test the hypothesis of above - does unloading the page affect if this gets sent?
1400
- );
1401
-
1402
- return beacon_retval;
1477
+ });
1403
1478
  });
1404
1479
  const $335c248bb07a3509$export$9028351cb994757e = /*@__PURE__*/$3b52ccc10510b32a$export$b3bbfd758f11cfa9(vars => {
1405
1480
  if (process.env.DEPICT === "false") return;
@@ -1,5 +1,5 @@
1
1
  import { JSX, Accessor } from "solid-js";
2
- export const version = "2.6.16";
2
+ export const version = "2.6.18";
3
3
  export const is_debug: boolean;
4
4
  /**
5
5
  * Sets the prefix of dlog, dwarn, and derror messages in the browser console. Defaults to `[Depict]`.
@@ -217,15 +217,21 @@ export class DepictAPIWS extends AutoReconnectingWS {
217
217
  initial_retry_ms: number;
218
218
  }>]);
219
219
  }
220
+ export const base_url: string;
220
221
  /**
221
222
  * Returns a random string
222
223
  * @return A random string, containing a-z, 0-9 and occasionally a dot (`.`)
223
224
  */
224
225
  export function random_string(): string;
225
226
  export function make_random_classname(): string;
226
- export const base_url: string;
227
+ /** HTTP is the default; both also sends identical events over a canary socket. */
228
+ export type EventTransport = "http" | "both";
229
+ /** Configure before tracking starts; shared by users of this utilishared module.
230
+ * Switching to http stops new socket sends but leaves an existing canary socket open.
231
+ */
232
+ export function set_event_transport(value: EventTransport): void;
227
233
  export type event_types = "page_view" | "click" | "add_to_cart" | "purchase" | "element_visible";
228
- declare const allowed_keys: readonly ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
234
+ declare const allowed_keys: readonly ["deduplication_id", "tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
229
235
  export type depict_body = Partial<{ [K in (typeof allowed_keys)[number]]: any }>;
230
236
  export type depict_payload = depict_body[];
231
237
  type any_properties = {
@@ -234,6 +240,7 @@ type any_properties = {
234
240
  export type noisy_depict_payload = (depict_body & any_properties)[];
235
241
  export const filter_depict_payload: (payload: noisy_depict_payload) => depict_payload | undefined;
236
242
  export const send_websocket: (bodies: depict_payload) => Promise<void | undefined>;
243
+ /** use_ws is retained for compatibility; transport is configured with set_event_transport. */
237
244
  export const send_depict_unfiltered: (payload: depict_payload, use_ws?: any) => boolean | Promise<void | undefined> | undefined;
238
245
  export const foolproof_send_beacon: (url: string, payload: {
239
246
  [key: string]: any;
@@ -256,6 +263,7 @@ export const depict_prefilled: (vars: Partial<{
256
263
  detail: any;
257
264
  url: any;
258
265
  currency: any;
266
+ deduplication_id: any;
259
267
  tenant: any;
260
268
  market: any;
261
269
  session_id: any;
@@ -282,6 +290,7 @@ export const depict_click: (vars: Partial<{
282
290
  detail: any;
283
291
  url: any;
284
292
  currency: any;
293
+ deduplication_id: any;
285
294
  tenant: any;
286
295
  market: any;
287
296
  session_id: any;
@@ -308,6 +317,7 @@ export const depict_add_to_cart: (vars: Partial<{
308
317
  detail: any;
309
318
  url: any;
310
319
  currency: any;
320
+ deduplication_id: any;
311
321
  tenant: any;
312
322
  market: any;
313
323
  session_id: any;
@@ -1134,8 +1144,6 @@ export type ImpressionEvent = {
1134
1144
  } & (ExplicitImpressionEventData | TrackingEventContextData);
1135
1145
  /**
1136
1146
  * Sends an impression event to the api.
1137
- *
1138
- * Impression events always use websockets.
1139
1147
  */
1140
1148
  export const send_impression_event: (data: Optional<ImpressionEvent, "type">) => void;
1141
1149
  export function Promise_Any<T>(promises: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>;
@@ -8,7 +8,7 @@ register_es_version("utilishared", "ES10");
8
8
  function $parcel$interopDefault(a) {
9
9
  return a && a.__esModule ? a.default : a;
10
10
  }
11
- const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.6.16";
11
+ const $b9e07ce3c67aa344$export$83d89fbfd8236492 = "2.6.18";
12
12
  const $a5a2bdb4ae93374b$export$55fe61489d2c7417 = /*@__PURE__*/((_globalThis$document, _globalThis$document$, _globalThis$document$2, _globalThis$localStor, _globalThis$localStor2) => process.env.STRIP_DEBUG === "true" ? false : process.env.DEBUG === "true" || process.env.NODE_ENV === "development" || process.env.BUILD_TARGET !== "node" && ((globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$document = globalThis.document) === null || _globalThis$document === void 0 ? void 0 : (_globalThis$document$ = _globalThis$document.currentScript) === null || _globalThis$document$ === void 0 ? void 0 : (_globalThis$document$2 = _globalThis$document$.dataset) === null || _globalThis$document$2 === void 0 ? void 0 : _globalThis$document$2.debug) === "true" || (globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$localStor = globalThis.localStorage) === null || _globalThis$localStor === void 0 ? void 0 : (_globalThis$localStor2 = _globalThis$localStor.getItem) === null || _globalThis$localStor2 === void 0 ? void 0 : _globalThis$localStor2.call(_globalThis$localStor, "debug")) === "true"))();
13
13
  const $241f2f02cc612a49$var$browser_prefix_styling = "color: #fff;";
14
14
  let $241f2f02cc612a49$var$browser_prefix = "[Depict]";
@@ -1034,6 +1034,7 @@ function $f5a4b8e233f0e1cd$var$_periodic_send2(msg) {
1034
1034
  })().catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "error"));
1035
1035
  return () => quit = true;
1036
1036
  }
1037
+ const $9e4bee2e3b4b5753$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1037
1038
 
1038
1039
  /**
1039
1040
  * Returns a random string
@@ -1045,10 +1046,105 @@ function $6cb4d83127e468ea$export$656831b7e9c341c3() {
1045
1046
  function $6cb4d83127e468ea$export$a6db784f019668ba() {
1046
1047
  return "x" + $6cb4d83127e468ea$export$656831b7e9c341c3().replaceAll(".", "");
1047
1048
  }
1048
- const $9e4bee2e3b4b5753$export$362abebb4b313340 = process.env.DEPICT_BASE_URL || "https://api.depict.ai";
1049
+
1050
+ /** HTTP is the default; both also sends identical events over a canary socket. */
1051
+ const $455443b05f201064$var$MAX_BODY_BYTES = 49152;
1052
+ const $455443b05f201064$var$IMPRESSION_DELAY_MS = 250;
1053
+ let $455443b05f201064$var$transport = "http";
1054
+ let $455443b05f201064$var$socket;
1055
+ let $455443b05f201064$var$queued_events = [];
1056
+ let $455443b05f201064$var$queued_bytes = 2;
1057
+ let $455443b05f201064$var$flush_timer;
1058
+ let $455443b05f201064$var$listening = false;
1059
+ function $455443b05f201064$export$83c5d6634ba2a3c5(value) {
1060
+ $455443b05f201064$var$transport = value === "both" ? "both" : "http";
1061
+ }
1062
+ function $455443b05f201064$var$send_beacon(url, body) {
1063
+ try {
1064
+ if (!navigator.sendBeacon(url, new Blob([body], {
1065
+ type: "text/plain"
1066
+ }))) $5e1f45affc1d7def$export$f18d5b0af29128b7(new Error("Event beacon was not queued"), "warning");
1067
+ } catch (error) {
1068
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(error, "warning");
1069
+ }
1070
+ }
1071
+ function $455443b05f201064$var$send_batch(url, body) {
1072
+ let retried = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1073
+ let request;
1074
+ try {
1075
+ request = fetch(url, {
1076
+ method: "POST",
1077
+ keepalive: true,
1078
+ credentials: "omit",
1079
+ headers: {
1080
+ "Content-Type": "text/plain"
1081
+ },
1082
+ body: body
1083
+ });
1084
+ } catch {
1085
+ $455443b05f201064$var$send_beacon(url, body);
1086
+ return;
1087
+ }
1088
+ request.then(response => {
1089
+ if (response.status >= 500 && !retried && document.visibilityState === "visible") $455443b05f201064$var$send_batch(url, body, true);
1090
+ }, () => {
1091
+ if (!retried && document.visibilityState === "visible") $455443b05f201064$var$send_batch(url, body, true);else $455443b05f201064$var$send_beacon(url, body);
1092
+ }).catch(error => $5e1f45affc1d7def$export$f18d5b0af29128b7(error, "warning"));
1093
+ }
1094
+ const $455443b05f201064$var$flush = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(() => {
1095
+ clearTimeout($455443b05f201064$var$flush_timer);
1096
+ $455443b05f201064$var$flush_timer = undefined;
1097
+ if (!$455443b05f201064$var$queued_events.length) return;
1098
+ const body = "[".concat($455443b05f201064$var$queued_events.join(","), "]");
1099
+ $455443b05f201064$var$queued_events = [];
1100
+ $455443b05f201064$var$queued_bytes = 2;
1101
+ $455443b05f201064$var$send_batch(String($ea5707b8e7b350cf$export$fe609f0216e4ebef((0, $9e4bee2e3b4b5753$export$362abebb4b313340) + "/create-events")), body);
1102
+ });
1103
+ const $455443b05f201064$var$send_canary = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(json => {
1104
+ if (typeof WebSocket !== "function") return;
1105
+ $455443b05f201064$var$socket || ($455443b05f201064$var$socket = new (0, $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f)("wss://ws.depict.ai/ws/create-events"));
1106
+ const event = JSON.parse(json);
1107
+ $455443b05f201064$var$socket.ensure_sent({
1108
+ id: event.deduplication_id,
1109
+ event: event
1110
+ }).catch(error => $5e1f45affc1d7def$export$f18d5b0af29128b7(error, "warning"));
1111
+ }, undefined, "warning");
1112
+ function $455443b05f201064$export$fb18f6dbe1c6f251(payload) {
1113
+ if (process.env.DEPICT === "false" || typeof document === "undefined") return;
1114
+ if (!$455443b05f201064$var$listening) {
1115
+ document.addEventListener("visibilitychange", () => {
1116
+ if (document.visibilityState === "hidden") $455443b05f201064$var$flush();
1117
+ });
1118
+ window.addEventListener("pagehide", $455443b05f201064$var$flush);
1119
+ $455443b05f201064$var$listening = true;
1120
+ }
1121
+ let accepted = true;
1122
+ let immediate = document.visibilityState === "hidden";
1123
+ for (const event of payload) {
1124
+ const json = JSON.stringify({
1125
+ ...event,
1126
+ deduplication_id: event.deduplication_id || $6cb4d83127e468ea$export$656831b7e9c341c3()
1127
+ });
1128
+ const bytes = new Blob([json]).size;
1129
+ if (bytes + 2 > $455443b05f201064$var$MAX_BODY_BYTES) {
1130
+ $5e1f45affc1d7def$export$f18d5b0af29128b7(new Error("Event exceeds the keepalive body limit"), "warning", {
1131
+ bytes: bytes,
1132
+ type: event.type
1133
+ });
1134
+ accepted = false;
1135
+ continue;
1136
+ }
1137
+ if ($455443b05f201064$var$queued_bytes + bytes + ($455443b05f201064$var$queued_events.length ? 1 : 0) > $455443b05f201064$var$MAX_BODY_BYTES) $455443b05f201064$var$flush();
1138
+ $455443b05f201064$var$queued_bytes += bytes + ($455443b05f201064$var$queued_events.length ? 1 : 0);
1139
+ $455443b05f201064$var$queued_events.push(json);
1140
+ immediate || (immediate = event.type !== "element_visible");
1141
+ if ($455443b05f201064$var$transport === "both") $455443b05f201064$var$send_canary(json);
1142
+ }
1143
+ if (immediate) $455443b05f201064$var$flush();else if ($455443b05f201064$var$queued_events.length && $455443b05f201064$var$flush_timer === undefined) $455443b05f201064$var$flush_timer = setTimeout($455443b05f201064$var$flush, $455443b05f201064$var$IMPRESSION_DELAY_MS);
1144
+ return accepted;
1145
+ }
1049
1146
  const $814c3bf8e175fa59$var$c = (0, $5e1f45affc1d7def$export$b3bbfd758f11cfa9);
1050
- const $814c3bf8e175fa59$var$ws_instance = /*@__PURE__*/$814c3bf8e175fa59$var$c(() => new (0, $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f)("wss://ws.depict.ai/ws/create-events"))();
1051
- const $814c3bf8e175fa59$var$allowed_keys = ["tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
1147
+ const $814c3bf8e175fa59$var$allowed_keys = ["deduplication_id", "tenant", "market", "type", "session_id", "product_id", "entity_identifiers", "url", "entity_price", "currency", "document_referrer", "document_width", "attribution_id", "recommendation_id", "click_location", "ab_test_group", "variant_ids", "transaction_id", "error_type", "detail", "recommendation_type", "search_result_id", "product_listing_result_id"];
1052
1148
  const $814c3bf8e175fa59$export$72036d950e1fae95 = /*@__PURE__*/$814c3bf8e175fa59$var$c(payload => {
1053
1149
  if (process.env.DEPICT === "false") return;
1054
1150
  return payload.map(body => Object.fromEntries(Object.entries(body).filter(_ref => {
@@ -1057,24 +1153,11 @@ const $814c3bf8e175fa59$export$72036d950e1fae95 = /*@__PURE__*/$814c3bf8e175fa59
1057
1153
  })));
1058
1154
  });
1059
1155
  const $814c3bf8e175fa59$export$aa26019042811d4f = /*@__PURE__*/$814c3bf8e175fa59$var$c(async bodies => {
1060
- if (process.env.DEPICT === "false") return;
1061
- for (let i = 0; i < bodies.length; i++) {
1062
- const id = $6cb4d83127e468ea$export$656831b7e9c341c3();
1063
- $814c3bf8e175fa59$var$ws_instance === null || $814c3bf8e175fa59$var$ws_instance === void 0 || $814c3bf8e175fa59$var$ws_instance.ensure_sent({
1064
- id: id,
1065
- event: bodies[i]
1066
- }).catch(e => $5e1f45affc1d7def$export$f18d5b0af29128b7(e, "error"));
1067
- }
1156
+ $455443b05f201064$export$fb18f6dbe1c6f251(bodies);
1068
1157
  });
1069
1158
  const $814c3bf8e175fa59$export$608478473a3304a0 = /*@__PURE__*/$814c3bf8e175fa59$var$c(function (payload) {
1070
1159
  let use_ws = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
1071
- if (process.env.DEPICT === "false") return;
1072
- if (use_ws && typeof WebSocket == "function" && typeof ($814c3bf8e175fa59$var$ws_instance === null || $814c3bf8e175fa59$var$ws_instance === void 0 ? void 0 : $814c3bf8e175fa59$var$ws_instance.ensure_sent) == "function") {
1073
- $241f2f02cc612a49$export$de56f1198d121036("Sending to depict (ws)", payload);
1074
- return $814c3bf8e175fa59$export$aa26019042811d4f(payload);
1075
- }
1076
- const url = (0, $9e4bee2e3b4b5753$export$362abebb4b313340) + "/create-events";
1077
- return $814c3bf8e175fa59$export$cc3b6ddf805f6156(url, payload);
1160
+ return $455443b05f201064$export$fb18f6dbe1c6f251(payload);
1078
1161
  });
1079
1162
  const $814c3bf8e175fa59$export$cc3b6ddf805f6156 = /*@__PURE__*/$814c3bf8e175fa59$var$c((url, payload) => {
1080
1163
  const payload_json = JSON.stringify(payload);
@@ -1188,19 +1271,10 @@ const $d5f7352b58e0d737$export$82badda1f9923310 = /*@__PURE__*/$5e1f45affc1d7def
1188
1271
  });
1189
1272
  const $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(vars => {
1190
1273
  if (process.env.DEPICT === "false") return;
1191
- const beacon_retval = $d5f7352b58e0d737$export$82badda1f9923310({
1274
+ return $d5f7352b58e0d737$export$82badda1f9923310({
1192
1275
  ...vars,
1193
1276
  type: "click"
1194
- }, false // don't send clicks over websockets because the page might unload
1195
- );
1196
-
1197
- $d5f7352b58e0d737$export$82badda1f9923310({
1198
- ...vars,
1199
- type: "ws_click"
1200
- }, true // explicitly send `ws-click` over websockets, this is an experiment to test the hypothesis of above - does unloading the page affect if this gets sent?
1201
- );
1202
-
1203
- return beacon_retval;
1277
+ });
1204
1278
  });
1205
1279
  const $d5f7352b58e0d737$export$9028351cb994757e = /*@__PURE__*/$5e1f45affc1d7def$export$b3bbfd758f11cfa9(vars => {
1206
1280
  if (process.env.DEPICT === "false") return;
@@ -6290,4 +6364,4 @@ function $34eb7e26a9a798f2$export$e35115e6d0715f77() {
6290
6364
  return href;
6291
6365
  }
6292
6366
  $ea5707b8e7b350cf$export$2cefb7e61fcbae00("utilishared", (0, $b9e07ce3c67aa344$export$83d89fbfd8236492));
6293
- export { $e5da8b4d1e6c12b3$export$a13bb02a27aaa5e6 as setOverrideSentryEnvironment, $c9b2d210d5bbc418$export$2d9dc2897d88588 as findMostFrequentItem, $5c580d87c093cc47$export$a7e53ec3b3fdd030 as base64_decode_unicode, $5c580d87c093cc47$export$a1893782a2a6be0d as base64_encode_unicode, $5f4e0abe3139380e$export$6f051469dd676a8b as make_plp_recommendations_inserted_handler, $ea5707b8e7b350cf$export$60d1d0e3cfc8b9ed as version_info, $ea5707b8e7b350cf$export$fe609f0216e4ebef as add_version_query_params, $cdf4691608b4019f$export$6e7454c733fa1fb2 as cache_args, $bcc7b73f8b96a6f0$export$8582cf3716962dc2 as check_displays, $b000f5ef6ce456d9$export$8048b892d651b310 as err, $a01cf8e3169d2af1$export$16d7c76794a38a4 as require_event_listener, $6a44fa3f1acf7693$export$55621c1ce3cd536b as infinite_promise_creator, $4c6e595091defcd9$export$32ccf3a614c84258 as infinite_promise_no_skip, $e64690bc3a7de2b1$export$c7187bbd1a7a9244 as placeholder, $0342f59060b8a196$export$f1b8b9fd75ddcab1 as insert_styling_into_slider, $03021b39f80fac4b$export$2e2bcd8739ae039 as wpff, $7d82513db34b5d27$export$12e07a2a9f87578a as ElementObserver, $90fa633a9564f115$export$b6ae1bc530f4c149 as observer, $0f650018c3cbc373$export$34b9dba7ce09269b as jsx, $0f650018c3cbc373$export$25062201e9e25d76 as jsxs, $a285401a927e4306$export$eb0b9ed911409b57 as use_element, $a285401a927e4306$export$f63fcc839cb0f734 as use_listener, $a285401a927e4306$export$22a65337c1b43b1f as classlist, $0f650018c3cbc373$export$ffb0004e005737fa as Fragment, $241f2f02cc612a49$export$de56f1198d121036 as dlog, $241f2f02cc612a49$export$997143d41f6a0c9b as derror, $241f2f02cc612a49$export$c2363754d4758444 as dwarn, $241f2f02cc612a49$export$2dd75a6b038dc8cb as set_browser_prefix, $5e1f45affc1d7def$export$b3bbfd758f11cfa9 as catchify, $5e1f45affc1d7def$export$f18d5b0af29128b7 as report, $a5a2bdb4ae93374b$export$55fe61489d2c7417 as is_debug, $c755e2b0d4b18501$export$6038895ac52bd044 as chevronLeft, $c755e2b0d4b18501$export$dc84183312f0c201 as chevronRight, $0fe3923936d40f55$export$68c017fd93791405 as expandingContainer, $5f31622ffb78bc10$export$3be7054c61590ee3 as Lazyfier, $5f31622ffb78bc10$export$b87d7e0da8b5cbe3 as test_array_proxy_support, $be288a83d9eabf2a$export$692b27c28639e5b9 as Amazing_Slider, $20fe9624210ef635$export$16501883f477737a as colorize_elements, $20fe9624210ef635$export$deca40f48c0569f8 as should_colorizeLogics, $df6d080cba513381$export$17c3166a7ebd4688 as n_col_styling_with_dist, $df6d080cba513381$export$c84671f46d6a1ca as Layout, $df6d080cba513381$export$483bdd1f1186de13 as layout_get_visible_recs_without_partial_rows, $df6d080cba513381$export$3dc5e2383c924ebf as layout_get_total_rec_amount_for_row, $df6d080cba513381$export$717f13d9ba00ca19 as layout_media_query_header, $b109421811582f8c$export$8cbd8aa1c70f9a13 as slider_autoscroll_factory, $090af64928922937$export$80039a49055269fb as make_button1, $66c5b496f7887c00$export$af88b4929c2dc86 as make_button2, $d3c54fdf1bfb087a$export$1d17a045bcc711b1 as slider_dots_factory, $d3c54fdf1bfb087a$export$a09282b33e69b43f as navdot, $3ad897e1659ee6d7$export$411b0f20794697ce as slider_draggable_factory, $21afac8db3f98820$export$5129719c04a52f8c as slider_fading_factory, $0cbf24ae3e670238$export$5723caf9a8335aa6 as slider_fractional_factory, $4837ebe61ecec421$export$93223e488e7ee078 as slider_show_scroll, $ff905d87817a07f4$export$b36d2489a5a16728 as slider_snap_css, $ff905d87817a07f4$export$49b950309ab787ad as can_use_snapping_and_still_scroll, $e1af55c2112926b7$export$dac64fd35a4805a4 as slider_snapping_factory, $f340c415f2e1d03a$export$68babfc5be0de5da as Amazing_Lazy_Slider, $aadc6d9eeb8e8a56$export$419f84efad7d9fe as sizes_to_surface, $aadc6d9eeb8e8a56$export$417ef0ab13d8b984 as surface_mixer, $aadc6d9eeb8e8a56$export$be95cb0e8cfd099e as promise_until_next_navigation, $bd7c9f254946941d$export$2c34560c3749dc63 as bind_to_a2c_button, $bd7c9f254946941d$export$82a685f2da2fb027 as bind_tracking_to_link, $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb as depict_click, $d5f7352b58e0d737$export$82badda1f9923310 as depict_prefilled, $d5f7352b58e0d737$export$9028351cb994757e as depict_add_to_cart, $d5f7352b58e0d737$export$93ae15b1ae509334 as set_session_id_fn, $d5f7352b58e0d737$export$61e7e1f11e96692f as get_session_id, $d5f7352b58e0d737$export$622991c71a1f52b3 as get_cookie, $d5f7352b58e0d737$export$8c6f26a5b6921b95 as get_tracking_event_context_data, $814c3bf8e175fa59$export$72036d950e1fae95 as filter_depict_payload, $814c3bf8e175fa59$export$28cacbd9b4306ffc as send_depict, $814c3bf8e175fa59$export$cc3b6ddf805f6156 as foolproof_send_beacon, $814c3bf8e175fa59$export$608478473a3304a0 as send_depict_unfiltered, $814c3bf8e175fa59$export$aa26019042811d4f as send_websocket, $799496226e956169$export$674d8cd8b6868154 as create_ga_queue, $799496226e956169$export$edfedd0557ca5a2d as make_tracker_send_to_depict, $d6c3e2ba045accda$export$4205dc6835bc0d9f as send_impression_event, $e89a1d249db21af0$export$37125ccc5dd98050 as impression_track_element, $c633189b7b69d048$export$d0efd8ed14f5c33 as impression_tracking_post_processor, $d6c3e2ba045accda$export$c543ee4cdb0d0964 as set_impression_threshold, $d6c3e2ba045accda$export$135da44d0ba958bc as impression_threshold, $d6c3e2ba045accda$export$ca8321ea61dc2544 as has_to_be_intersecting_for, $df87ac5a30f7baac$export$58c56fe2313fdbe3 as add_new_tab_listener, $df87ac5a30f7baac$export$836f70a28c317905 as broadcast_product_id, $df87ac5a30f7baac$export$8f66c4c7fb96eda2 as contextmenu_callback, $0897f35c3b3fbbc4$export$eee4c4d924348b05 as send_page_view_if_needed, $0897f35c3b3fbbc4$export$f7cb1bd47199ec38 as send_page_view_on_navigation, $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f as DepictAPIWS, $429b4383ef3d586f$export$74108888f38788f3 as ListenableSet, $9c44a7238815fa47$export$535946eb77c946dd as deparallelize, $9c44a7238815fa47$export$f241be8e610f5c77 as deparallelize_no_drop, $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129 as buildThresholdList, $85906d121f53bacd$export$d9fdc6ce2907f95b as chaotic_closest, $652300c6621d5500$export$cfef5d5c9ac09253 as standard_price_format, $652300c6621d5500$export$9590700a594aef08 as ensure_object_path, $652300c6621d5500$export$925772df9b4d16e5 as ensure_parameter_in_url, $652300c6621d5500$export$44951404cb8d0583 as html2elems, $652300c6621d5500$export$d3e2a0560cbf4787 as html2elem, $652300c6621d5500$export$5e63aea0cac01fa0 as querySelectorAllElements, $652300c6621d5500$export$785f04709990c4ec as querySelectorUpwards, $652300c6621d5500$export$f124e3ee16e6b45d as intl_number_format_with_fallback, $652300c6621d5500$export$d4bd03f19260ef1c as relativify, $45d268baa2df1ba1$export$6b75200e58bc97d0 as deduplicate, $45d268baa2df1ba1$export$9426572bd5645bc1 as dedup_products, $8183c177c3bdf94d$export$82539d9817116aff as navigate_with_next_router, $f69445e469425bcb$export$774bc87373c4fc6c as add_item, $f69445e469425bcb$export$337197b94b3bd680 as get_items_in_cart, $f69445e469425bcb$export$783ef16647773b3d as get_shopify_analytics_meta_product, $f69445e469425bcb$export$ab0f802c05dd969b as intercept, $201e455525e1fa49$export$85be83e1935d93c2 as fetch_replacer, $201e455525e1fa49$export$f8da66bc4f1d059e as FakeResponse, $c95f8181bad32e8d$export$bcd70d5ed1cf6313 as fetch_retry, $ad1dbddac6af350d$export$20e9533e68ee72e7 as stateless_href_change_ipns, $ad1dbddac6af350d$export$a9d39e43ae273d26 as href_change_ipns, $ad1dbddac6af350d$export$baccefee4a395d8f as history_replacer, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b as on_next_navigation, $ad1dbddac6af350d$export$7500cdfd37aafd43 as instant_exec_on_suspect_history_change, $7ca6fdc721083788$export$e806c6c1615a59ae as async_iterable_ipns, $7ca6fdc721083788$export$10c3e52ef388b81b as make_ipns_stateful, $7ca6fdc721083788$export$90740b5bc9c2b3b7 as make_ipns_stateless, $449d6683cecfa078$export$3e42f5078e3abfc0 as make_simple_async_iterable, $449d6683cecfa078$export$e2c811ae0eb35313 as RawObservableInformation, $c1590f86e0eca625$export$2c2f50b30b7b2576 as iterable_to_attribute, $332ef338faf216a4$export$7c081fdbc65b6a2a as iterable_to_elems, $fee212025270d5b9$export$927664b47117acb0 as make_asyncIterable_exiter, $07beada135e5f5e8$export$f8913c8a18f7ca21 as zip_async_iterables, $2c22b027931240e6$export$f811d2ce0aa6019b as insert_surfaces, $2c22b027931240e6$export$b8d1e1d07a3f3776 as prevent_infinite_loop, $2c22b027931240e6$export$e3f70ef7e3d00501 as revertable_remove, $1013f2e568f87406$export$59ba1eb2c083f0cd as insert_styling, $1013f2e568f87406$export$692b606677218a16 as depict_init, $1013f2e568f87406$export$328e81c44cddf3c0 as depict_init_with_market_logic, $1013f2e568f87406$export$a4f97b27a0592e6c as normal_get_product_id, $26dbd7db7fd1bc2c$export$515c3ea4d599b05a as javascript_media_query, $914c6f35222c820d$export$33f937d741e49339 as patched_querySelectorAll, $6c8c963618d41bb2$export$947a20746936143d as Promise_Any, $3a96de5a459d34f9$export$c50e1901e8ed0615 as queueMacroTask, $1cd1e96fe31c935d$export$bb0a9c36cf454ea0 as rand, $6cb4d83127e468ea$export$656831b7e9c341c3 as random_string, $6cb4d83127e468ea$export$a6db784f019668ba as make_random_classname, $2b6304d4ce419ed5$export$3d04c40e7acc1a32 as reactive_template, $243da8b4990520aa$export$8ec5c86406f333ff as removeChild_error_swallowing_factory, $9c0a16930ae6750f$export$38e89c688f9d553a as replace_promise_with_native_if_exists_and_enforce, $9c0a16930ae6750f$export$e647444ed9403635 as get_iframe_promise, $f82333cd2ffc1582$export$2a1cc61cffa1f36f as rp_relativify_fetch, $f82333cd2ffc1582$export$f14a775632a826c4 as rp_relativify_history, $f82333cd2ffc1582$export$2a38b176ce969e2c as rp_relativify_xhr, $f82333cd2ffc1582$export$83ec13b10b391f13 as default_rp_fixes, $d9aec442b12a1134$export$39d526a1194b6499 as serialize_object, $b2c9f99c083a1182$export$12b4c6cbc6b8b4e4 as sort_obj, $95b71532fa7f905c$export$a422d714c8cb1a5d as standard_get_market, $cb3a51d87cbe5eff$export$3427ec8268623f1 as listenToLocalStorage, $26145caeb41f1f7b$export$cd1adfb8059b5fcd as timeout_promise, $2da62df28669a48a$export$79f910a98828378d as variable_setter_to_ipns, $2da62df28669a48a$export$d5062f468a0454f3 as find_descriptor, $2da62df28669a48a$export$2fc1a072736ae2f6 as is_available_in, $8a812fa4638e2832$export$a739d9a07da7f9ce as use_voyado_id, $57642e3bf93ac1e7$export$5c069c93d2b7493f as wait, $24528b2f119d82fb$export$f314addd5f976083 as xhr_load, $24528b2f119d82fb$export$8e16c51fd2b6507 as xhr_read_interceptor, $24528b2f119d82fb$export$c74578d2cd47a84a as xhr_send_interceptor, $24528b2f119d82fb$export$33d1643df63073a8 as xhr_replace, $c40fc6dc2c22b3c4$export$4a3043e508dd72f0 as DefaultViewMoreButton, $a59cde169150d10b$export$8a0e4d6f6abf7e90 as GeneralSideSlidein, $24f3fd73864991c0$export$c068ad5361be7646 as GeneralSizeSelector, $adc0bb548fdb574f$export$84712d0562a614b8 as Placeholder, $adc0bb548fdb574f$export$d613f5b6d0a331a8 as ContainedPlaceholderImage, $2e6ca552eb0e0b2b$export$97f31f44c68c1d5 as RecommendationContainer, $ad0b2591dac160be$export$ddd70fdae1b350e6 as LeftChevron, $ad0b2591dac160be$export$32a55d57d151bc5a as RightChevron, $9a74c17d1ef21fdf$export$590326cc34f49e2d as createColorPicker, $0f55c2bc0a7b363b$export$237455ad7e59d4e5 as useExpandingContainer, $73f0a7e385687d5d$export$2369f6fc1c911576 as ContainedHoverImage, $c987460cedc0d7ec$export$788756b42446dc2d as ContainedImage, $9ef5ce4804a3b61b$export$f39a7d0667e924a as make_sizes_setter, $9ef5ce4804a3b61b$export$a62825542f1bfcf5 as make_sourceset_component, $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 as is_safari, $9ef5ce4804a3b61b$export$f7c915448031deac as make_url_with_query_params, $9ef5ce4804a3b61b$export$3d13beba9b52c947 as resize_base_url, $9e4bee2e3b4b5753$export$362abebb4b313340 as base_url, $17bb552dedcd526c$export$af2e17a20c2ea3c5 as Sentry, $c07f1f2ffdcaec61$export$9dc8f3a0aa3efc85 as camelCasifyObject, $c07f1f2ffdcaec61$export$b481488de1caa85 as snakeCasifyObject, $40a5a98adc907fe0$export$499ef00a6a3417f8 as rgb_to_hsl, $40a5a98adc907fe0$export$e4fd3b61e79357a7 as hsl_to_rgb, $40a5a98adc907fe0$export$98c2b3491e76c1f as relative_luminance_from_rgb, $40a5a98adc907fe0$export$486b165479b9284f as hsb_to_rgb, $40a5a98adc907fe0$export$ca305c142c6fc3cf as hex_to_rgb, $b9e07ce3c67aa344$export$83d89fbfd8236492 as version, $ea5707b8e7b350cf$export$2cefb7e61fcbae00 as add_to_version_info, $5ea81d00eec57744$export$c3f56a35e076f139 as sync_el_content_with_accessor, $34eb7e26a9a798f2$export$e35115e6d0715f77 as use_href_accessor };
6367
+ export { $e5da8b4d1e6c12b3$export$a13bb02a27aaa5e6 as setOverrideSentryEnvironment, $c9b2d210d5bbc418$export$2d9dc2897d88588 as findMostFrequentItem, $5c580d87c093cc47$export$a7e53ec3b3fdd030 as base64_decode_unicode, $5c580d87c093cc47$export$a1893782a2a6be0d as base64_encode_unicode, $5f4e0abe3139380e$export$6f051469dd676a8b as make_plp_recommendations_inserted_handler, $ea5707b8e7b350cf$export$60d1d0e3cfc8b9ed as version_info, $ea5707b8e7b350cf$export$fe609f0216e4ebef as add_version_query_params, $cdf4691608b4019f$export$6e7454c733fa1fb2 as cache_args, $bcc7b73f8b96a6f0$export$8582cf3716962dc2 as check_displays, $b000f5ef6ce456d9$export$8048b892d651b310 as err, $a01cf8e3169d2af1$export$16d7c76794a38a4 as require_event_listener, $6a44fa3f1acf7693$export$55621c1ce3cd536b as infinite_promise_creator, $4c6e595091defcd9$export$32ccf3a614c84258 as infinite_promise_no_skip, $e64690bc3a7de2b1$export$c7187bbd1a7a9244 as placeholder, $0342f59060b8a196$export$f1b8b9fd75ddcab1 as insert_styling_into_slider, $03021b39f80fac4b$export$2e2bcd8739ae039 as wpff, $7d82513db34b5d27$export$12e07a2a9f87578a as ElementObserver, $90fa633a9564f115$export$b6ae1bc530f4c149 as observer, $0f650018c3cbc373$export$34b9dba7ce09269b as jsx, $0f650018c3cbc373$export$25062201e9e25d76 as jsxs, $a285401a927e4306$export$eb0b9ed911409b57 as use_element, $a285401a927e4306$export$f63fcc839cb0f734 as use_listener, $a285401a927e4306$export$22a65337c1b43b1f as classlist, $0f650018c3cbc373$export$ffb0004e005737fa as Fragment, $241f2f02cc612a49$export$de56f1198d121036 as dlog, $241f2f02cc612a49$export$997143d41f6a0c9b as derror, $241f2f02cc612a49$export$c2363754d4758444 as dwarn, $241f2f02cc612a49$export$2dd75a6b038dc8cb as set_browser_prefix, $5e1f45affc1d7def$export$b3bbfd758f11cfa9 as catchify, $5e1f45affc1d7def$export$f18d5b0af29128b7 as report, $a5a2bdb4ae93374b$export$55fe61489d2c7417 as is_debug, $c755e2b0d4b18501$export$6038895ac52bd044 as chevronLeft, $c755e2b0d4b18501$export$dc84183312f0c201 as chevronRight, $0fe3923936d40f55$export$68c017fd93791405 as expandingContainer, $5f31622ffb78bc10$export$3be7054c61590ee3 as Lazyfier, $5f31622ffb78bc10$export$b87d7e0da8b5cbe3 as test_array_proxy_support, $be288a83d9eabf2a$export$692b27c28639e5b9 as Amazing_Slider, $20fe9624210ef635$export$16501883f477737a as colorize_elements, $20fe9624210ef635$export$deca40f48c0569f8 as should_colorizeLogics, $df6d080cba513381$export$17c3166a7ebd4688 as n_col_styling_with_dist, $df6d080cba513381$export$c84671f46d6a1ca as Layout, $df6d080cba513381$export$483bdd1f1186de13 as layout_get_visible_recs_without_partial_rows, $df6d080cba513381$export$3dc5e2383c924ebf as layout_get_total_rec_amount_for_row, $df6d080cba513381$export$717f13d9ba00ca19 as layout_media_query_header, $b109421811582f8c$export$8cbd8aa1c70f9a13 as slider_autoscroll_factory, $090af64928922937$export$80039a49055269fb as make_button1, $66c5b496f7887c00$export$af88b4929c2dc86 as make_button2, $d3c54fdf1bfb087a$export$1d17a045bcc711b1 as slider_dots_factory, $d3c54fdf1bfb087a$export$a09282b33e69b43f as navdot, $3ad897e1659ee6d7$export$411b0f20794697ce as slider_draggable_factory, $21afac8db3f98820$export$5129719c04a52f8c as slider_fading_factory, $0cbf24ae3e670238$export$5723caf9a8335aa6 as slider_fractional_factory, $4837ebe61ecec421$export$93223e488e7ee078 as slider_show_scroll, $ff905d87817a07f4$export$b36d2489a5a16728 as slider_snap_css, $ff905d87817a07f4$export$49b950309ab787ad as can_use_snapping_and_still_scroll, $e1af55c2112926b7$export$dac64fd35a4805a4 as slider_snapping_factory, $f340c415f2e1d03a$export$68babfc5be0de5da as Amazing_Lazy_Slider, $aadc6d9eeb8e8a56$export$419f84efad7d9fe as sizes_to_surface, $aadc6d9eeb8e8a56$export$417ef0ab13d8b984 as surface_mixer, $aadc6d9eeb8e8a56$export$be95cb0e8cfd099e as promise_until_next_navigation, $bd7c9f254946941d$export$2c34560c3749dc63 as bind_to_a2c_button, $bd7c9f254946941d$export$82a685f2da2fb027 as bind_tracking_to_link, $d5f7352b58e0d737$export$15f8a0cd5a8c0ebb as depict_click, $d5f7352b58e0d737$export$82badda1f9923310 as depict_prefilled, $d5f7352b58e0d737$export$9028351cb994757e as depict_add_to_cart, $d5f7352b58e0d737$export$93ae15b1ae509334 as set_session_id_fn, $d5f7352b58e0d737$export$61e7e1f11e96692f as get_session_id, $d5f7352b58e0d737$export$622991c71a1f52b3 as get_cookie, $d5f7352b58e0d737$export$8c6f26a5b6921b95 as get_tracking_event_context_data, $455443b05f201064$export$83c5d6634ba2a3c5 as set_event_transport, $814c3bf8e175fa59$export$72036d950e1fae95 as filter_depict_payload, $814c3bf8e175fa59$export$28cacbd9b4306ffc as send_depict, $814c3bf8e175fa59$export$cc3b6ddf805f6156 as foolproof_send_beacon, $814c3bf8e175fa59$export$608478473a3304a0 as send_depict_unfiltered, $814c3bf8e175fa59$export$aa26019042811d4f as send_websocket, $799496226e956169$export$674d8cd8b6868154 as create_ga_queue, $799496226e956169$export$edfedd0557ca5a2d as make_tracker_send_to_depict, $d6c3e2ba045accda$export$4205dc6835bc0d9f as send_impression_event, $e89a1d249db21af0$export$37125ccc5dd98050 as impression_track_element, $c633189b7b69d048$export$d0efd8ed14f5c33 as impression_tracking_post_processor, $d6c3e2ba045accda$export$c543ee4cdb0d0964 as set_impression_threshold, $d6c3e2ba045accda$export$135da44d0ba958bc as impression_threshold, $d6c3e2ba045accda$export$ca8321ea61dc2544 as has_to_be_intersecting_for, $df87ac5a30f7baac$export$58c56fe2313fdbe3 as add_new_tab_listener, $df87ac5a30f7baac$export$836f70a28c317905 as broadcast_product_id, $df87ac5a30f7baac$export$8f66c4c7fb96eda2 as contextmenu_callback, $0897f35c3b3fbbc4$export$eee4c4d924348b05 as send_page_view_if_needed, $0897f35c3b3fbbc4$export$f7cb1bd47199ec38 as send_page_view_on_navigation, $f5a4b8e233f0e1cd$export$1d9c6fddbff3441f as DepictAPIWS, $429b4383ef3d586f$export$74108888f38788f3 as ListenableSet, $9c44a7238815fa47$export$535946eb77c946dd as deparallelize, $9c44a7238815fa47$export$f241be8e610f5c77 as deparallelize_no_drop, $ab9c3dbf2bb2fbf7$export$f8ea2e7b15b5d129 as buildThresholdList, $85906d121f53bacd$export$d9fdc6ce2907f95b as chaotic_closest, $652300c6621d5500$export$cfef5d5c9ac09253 as standard_price_format, $652300c6621d5500$export$9590700a594aef08 as ensure_object_path, $652300c6621d5500$export$925772df9b4d16e5 as ensure_parameter_in_url, $652300c6621d5500$export$44951404cb8d0583 as html2elems, $652300c6621d5500$export$d3e2a0560cbf4787 as html2elem, $652300c6621d5500$export$5e63aea0cac01fa0 as querySelectorAllElements, $652300c6621d5500$export$785f04709990c4ec as querySelectorUpwards, $652300c6621d5500$export$f124e3ee16e6b45d as intl_number_format_with_fallback, $652300c6621d5500$export$d4bd03f19260ef1c as relativify, $45d268baa2df1ba1$export$6b75200e58bc97d0 as deduplicate, $45d268baa2df1ba1$export$9426572bd5645bc1 as dedup_products, $8183c177c3bdf94d$export$82539d9817116aff as navigate_with_next_router, $f69445e469425bcb$export$774bc87373c4fc6c as add_item, $f69445e469425bcb$export$337197b94b3bd680 as get_items_in_cart, $f69445e469425bcb$export$783ef16647773b3d as get_shopify_analytics_meta_product, $f69445e469425bcb$export$ab0f802c05dd969b as intercept, $201e455525e1fa49$export$85be83e1935d93c2 as fetch_replacer, $201e455525e1fa49$export$f8da66bc4f1d059e as FakeResponse, $c95f8181bad32e8d$export$bcd70d5ed1cf6313 as fetch_retry, $ad1dbddac6af350d$export$20e9533e68ee72e7 as stateless_href_change_ipns, $ad1dbddac6af350d$export$a9d39e43ae273d26 as href_change_ipns, $ad1dbddac6af350d$export$baccefee4a395d8f as history_replacer, $ad1dbddac6af350d$export$1cd22bab0d2c3b0b as on_next_navigation, $ad1dbddac6af350d$export$7500cdfd37aafd43 as instant_exec_on_suspect_history_change, $7ca6fdc721083788$export$e806c6c1615a59ae as async_iterable_ipns, $7ca6fdc721083788$export$10c3e52ef388b81b as make_ipns_stateful, $7ca6fdc721083788$export$90740b5bc9c2b3b7 as make_ipns_stateless, $449d6683cecfa078$export$3e42f5078e3abfc0 as make_simple_async_iterable, $449d6683cecfa078$export$e2c811ae0eb35313 as RawObservableInformation, $c1590f86e0eca625$export$2c2f50b30b7b2576 as iterable_to_attribute, $332ef338faf216a4$export$7c081fdbc65b6a2a as iterable_to_elems, $fee212025270d5b9$export$927664b47117acb0 as make_asyncIterable_exiter, $07beada135e5f5e8$export$f8913c8a18f7ca21 as zip_async_iterables, $2c22b027931240e6$export$f811d2ce0aa6019b as insert_surfaces, $2c22b027931240e6$export$b8d1e1d07a3f3776 as prevent_infinite_loop, $2c22b027931240e6$export$e3f70ef7e3d00501 as revertable_remove, $1013f2e568f87406$export$59ba1eb2c083f0cd as insert_styling, $1013f2e568f87406$export$692b606677218a16 as depict_init, $1013f2e568f87406$export$328e81c44cddf3c0 as depict_init_with_market_logic, $1013f2e568f87406$export$a4f97b27a0592e6c as normal_get_product_id, $26dbd7db7fd1bc2c$export$515c3ea4d599b05a as javascript_media_query, $914c6f35222c820d$export$33f937d741e49339 as patched_querySelectorAll, $6c8c963618d41bb2$export$947a20746936143d as Promise_Any, $3a96de5a459d34f9$export$c50e1901e8ed0615 as queueMacroTask, $1cd1e96fe31c935d$export$bb0a9c36cf454ea0 as rand, $6cb4d83127e468ea$export$656831b7e9c341c3 as random_string, $6cb4d83127e468ea$export$a6db784f019668ba as make_random_classname, $2b6304d4ce419ed5$export$3d04c40e7acc1a32 as reactive_template, $243da8b4990520aa$export$8ec5c86406f333ff as removeChild_error_swallowing_factory, $9c0a16930ae6750f$export$38e89c688f9d553a as replace_promise_with_native_if_exists_and_enforce, $9c0a16930ae6750f$export$e647444ed9403635 as get_iframe_promise, $f82333cd2ffc1582$export$2a1cc61cffa1f36f as rp_relativify_fetch, $f82333cd2ffc1582$export$f14a775632a826c4 as rp_relativify_history, $f82333cd2ffc1582$export$2a38b176ce969e2c as rp_relativify_xhr, $f82333cd2ffc1582$export$83ec13b10b391f13 as default_rp_fixes, $d9aec442b12a1134$export$39d526a1194b6499 as serialize_object, $b2c9f99c083a1182$export$12b4c6cbc6b8b4e4 as sort_obj, $95b71532fa7f905c$export$a422d714c8cb1a5d as standard_get_market, $cb3a51d87cbe5eff$export$3427ec8268623f1 as listenToLocalStorage, $26145caeb41f1f7b$export$cd1adfb8059b5fcd as timeout_promise, $2da62df28669a48a$export$79f910a98828378d as variable_setter_to_ipns, $2da62df28669a48a$export$d5062f468a0454f3 as find_descriptor, $2da62df28669a48a$export$2fc1a072736ae2f6 as is_available_in, $8a812fa4638e2832$export$a739d9a07da7f9ce as use_voyado_id, $57642e3bf93ac1e7$export$5c069c93d2b7493f as wait, $24528b2f119d82fb$export$f314addd5f976083 as xhr_load, $24528b2f119d82fb$export$8e16c51fd2b6507 as xhr_read_interceptor, $24528b2f119d82fb$export$c74578d2cd47a84a as xhr_send_interceptor, $24528b2f119d82fb$export$33d1643df63073a8 as xhr_replace, $c40fc6dc2c22b3c4$export$4a3043e508dd72f0 as DefaultViewMoreButton, $a59cde169150d10b$export$8a0e4d6f6abf7e90 as GeneralSideSlidein, $24f3fd73864991c0$export$c068ad5361be7646 as GeneralSizeSelector, $adc0bb548fdb574f$export$84712d0562a614b8 as Placeholder, $adc0bb548fdb574f$export$d613f5b6d0a331a8 as ContainedPlaceholderImage, $2e6ca552eb0e0b2b$export$97f31f44c68c1d5 as RecommendationContainer, $ad0b2591dac160be$export$ddd70fdae1b350e6 as LeftChevron, $ad0b2591dac160be$export$32a55d57d151bc5a as RightChevron, $9a74c17d1ef21fdf$export$590326cc34f49e2d as createColorPicker, $0f55c2bc0a7b363b$export$237455ad7e59d4e5 as useExpandingContainer, $73f0a7e385687d5d$export$2369f6fc1c911576 as ContainedHoverImage, $c987460cedc0d7ec$export$788756b42446dc2d as ContainedImage, $9ef5ce4804a3b61b$export$f39a7d0667e924a as make_sizes_setter, $9ef5ce4804a3b61b$export$a62825542f1bfcf5 as make_sourceset_component, $9ef5ce4804a3b61b$export$a98fc8a2c818d3d8 as is_safari, $9ef5ce4804a3b61b$export$f7c915448031deac as make_url_with_query_params, $9ef5ce4804a3b61b$export$3d13beba9b52c947 as resize_base_url, $9e4bee2e3b4b5753$export$362abebb4b313340 as base_url, $17bb552dedcd526c$export$af2e17a20c2ea3c5 as Sentry, $c07f1f2ffdcaec61$export$9dc8f3a0aa3efc85 as camelCasifyObject, $c07f1f2ffdcaec61$export$b481488de1caa85 as snakeCasifyObject, $40a5a98adc907fe0$export$499ef00a6a3417f8 as rgb_to_hsl, $40a5a98adc907fe0$export$e4fd3b61e79357a7 as hsl_to_rgb, $40a5a98adc907fe0$export$98c2b3491e76c1f as relative_luminance_from_rgb, $40a5a98adc907fe0$export$486b165479b9284f as hsb_to_rgb, $40a5a98adc907fe0$export$ca305c142c6fc3cf as hex_to_rgb, $b9e07ce3c67aa344$export$83d89fbfd8236492 as version, $ea5707b8e7b350cf$export$2cefb7e61fcbae00 as add_to_version_info, $5ea81d00eec57744$export$c3f56a35e076f139 as sync_el_content_with_accessor, $34eb7e26a9a798f2$export$e35115e6d0715f77 as use_href_accessor };