autotel-subscribers 16.0.1 → 17.0.0

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.
package/dist/factories.js CHANGED
@@ -86,11 +86,11 @@ function normalizeWindowsPath(path) {
86
86
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
87
87
  }
88
88
  var init_module_node = __esm({
89
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
89
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
90
90
  }
91
91
  });
92
92
 
93
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
93
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs
94
94
  function getFlagDetailFromFlagAndPayload(key, value, payload) {
95
95
  return {
96
96
  key,
@@ -107,7 +107,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
107
107
  }
108
108
  var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
109
109
  var init_featureFlagUtils = __esm({
110
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
110
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
111
111
  normalizeFlagsResponse = (flagsResponse) => {
112
112
  if ("flags" in flagsResponse) {
113
113
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -165,10 +165,10 @@ var init_featureFlagUtils = __esm({
165
165
  }
166
166
  });
167
167
 
168
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
168
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
169
169
  var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
170
170
  var init_uuidv7 = __esm({
171
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
171
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
172
172
  DIGITS = "0123456789abcdef";
173
173
  UUID = class _UUID {
174
174
  constructor(bytes) {
@@ -329,10 +329,10 @@ var init_uuidv7 = __esm({
329
329
  }
330
330
  });
331
331
 
332
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
332
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs
333
333
  var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
334
334
  var init_bot_detection = __esm({
335
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
335
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
336
336
  DEFAULT_BLOCKED_UA_STRS = [
337
337
  "amazonbot",
338
338
  "amazonproductbot",
@@ -423,10 +423,10 @@ var init_bot_detection = __esm({
423
423
  }
424
424
  });
425
425
 
426
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs
427
- var types_PostHogPersistedProperty;
426
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/types.mjs
427
+ var types_PostHogPersistedProperty, FeatureFlagError;
428
428
  var init_types = __esm({
429
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs"() {
429
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/types.mjs"() {
430
430
  types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
431
431
  PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
432
432
  PostHogPersistedProperty["DistinctId"] = "distinct_id";
@@ -455,16 +455,25 @@ var init_types = __esm({
455
455
  PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
456
456
  return PostHogPersistedProperty;
457
457
  })({});
458
+ FeatureFlagError = {
459
+ ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
460
+ FLAG_MISSING: "flag_missing",
461
+ QUOTA_LIMITED: "quota_limited",
462
+ TIMEOUT: "timeout",
463
+ CONNECTION_ERROR: "connection_error",
464
+ UNKNOWN_ERROR: "unknown_error",
465
+ apiError: (status) => `api_error_${status}`
466
+ };
458
467
  }
459
468
  });
460
469
 
461
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
470
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/string-utils.mjs
462
471
  var init_string_utils = __esm({
463
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
472
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
464
473
  }
465
474
  });
466
475
 
467
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
476
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/type-utils.mjs
468
477
  function isPrimitive(value) {
469
478
  return null === value || "object" != typeof value;
470
479
  }
@@ -489,7 +498,7 @@ function isInstanceOf(candidate, base) {
489
498
  }
490
499
  var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
491
500
  var init_type_utils = __esm({
492
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
501
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
493
502
  init_types();
494
503
  init_string_utils();
495
504
  nativeIsArray = Array.isArray;
@@ -503,12 +512,12 @@ var init_type_utils = __esm({
503
512
  isUndefined = (x) => void 0 === x;
504
513
  isString = (x) => "[object String]" == type_utils_toString.call(x);
505
514
  isEmptyString = (x) => isString(x) && 0 === x.trim().length;
506
- isNumber = (x) => "[object Number]" == type_utils_toString.call(x);
515
+ isNumber = (x) => "[object Number]" == type_utils_toString.call(x) && x === x;
507
516
  isPlainError = (x) => x instanceof Error;
508
517
  }
509
518
  });
510
519
 
511
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
520
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/number-utils.mjs
512
521
  function clampToRange(value, min, max, logger, fallbackValue) {
513
522
  if (min > max) {
514
523
  logger.warn("min cannot be greater than max.");
@@ -526,15 +535,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
526
535
  return clampToRange(max, min, max, logger);
527
536
  }
528
537
  var init_number_utils = __esm({
529
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
538
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
530
539
  init_type_utils();
531
540
  }
532
541
  });
533
542
 
534
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
543
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
535
544
  var ONE_DAY_IN_MS, BucketedRateLimiter;
536
545
  var init_bucketed_rate_limiter = __esm({
537
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
546
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
538
547
  init_number_utils();
539
548
  ONE_DAY_IN_MS = 864e5;
540
549
  BucketedRateLimiter = class {
@@ -578,10 +587,10 @@ var init_bucketed_rate_limiter = __esm({
578
587
  }
579
588
  });
580
589
 
581
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
590
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs
582
591
  var PromiseQueue;
583
592
  var init_promise_queue = __esm({
584
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
593
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
585
594
  init_uuidv7();
586
595
  PromiseQueue = class {
587
596
  add(promise) {
@@ -612,7 +621,7 @@ var init_promise_queue = __esm({
612
621
  }
613
622
  });
614
623
 
615
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs
624
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/logger.mjs
616
625
  function createConsole(consoleLike = console) {
617
626
  const lockedMethods = {
618
627
  log: consoleLike.log.bind(consoleLike),
@@ -627,7 +636,7 @@ function createLogger(prefix, maybeCall = passThrough) {
627
636
  }
628
637
  var _createLogger, passThrough;
629
638
  var init_logger = __esm({
630
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
639
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/logger.mjs"() {
631
640
  _createLogger = (prefix, maybeCall, consoleLike) => {
632
641
  function _log(level, ...args) {
633
642
  maybeCall(() => {
@@ -656,10 +665,10 @@ var init_logger = __esm({
656
665
  }
657
666
  });
658
667
 
659
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
668
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
660
669
  var MOBILE, TABLET, GENERIC;
661
670
  var init_user_agent_utils = __esm({
662
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
671
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
663
672
  init_string_utils();
664
673
  init_type_utils();
665
674
  MOBILE = "Mobile";
@@ -670,7 +679,7 @@ var init_user_agent_utils = __esm({
670
679
  }
671
680
  });
672
681
 
673
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs
682
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/index.mjs
674
683
  function assert(truthyValue, message2) {
675
684
  if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message2);
676
685
  }
@@ -714,7 +723,7 @@ function allSettled(promises) {
714
723
  }
715
724
  var STRING_FORMAT, isError;
716
725
  var init_utils = __esm({
717
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
726
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/utils/index.mjs"() {
718
727
  init_bot_detection();
719
728
  init_bucketed_rate_limiter();
720
729
  init_number_utils();
@@ -728,10 +737,10 @@ var init_utils = __esm({
728
737
  }
729
738
  });
730
739
 
731
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs
740
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/eventemitter.mjs
732
741
  var SimpleEventEmitter;
733
742
  var init_eventemitter = __esm({
734
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
743
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/eventemitter.mjs"() {
735
744
  SimpleEventEmitter = class {
736
745
  constructor() {
737
746
  this.events = {};
@@ -752,7 +761,7 @@ var init_eventemitter = __esm({
752
761
  }
753
762
  });
754
763
 
755
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs
764
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/gzip.mjs
756
765
  function isGzipSupported() {
757
766
  return "CompressionStream" in globalThis;
758
767
  }
@@ -771,11 +780,11 @@ async function gzipCompress(input, isDebug = true) {
771
780
  }
772
781
  }
773
782
  var init_gzip = __esm({
774
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs"() {
783
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/gzip.mjs"() {
775
784
  }
776
785
  });
777
786
 
778
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
787
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
779
788
  async function logFlushError(err) {
780
789
  if (err instanceof PostHogFetchHttpError) {
781
790
  let text = "";
@@ -795,7 +804,7 @@ function isPostHogFetchContentTooLargeError(err) {
795
804
  }
796
805
  var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
797
806
  var init_posthog_core_stateless = __esm({
798
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
807
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
799
808
  init_eventemitter();
800
809
  init_featureFlagUtils();
801
810
  init_gzip();
@@ -851,10 +860,11 @@ var init_posthog_core_stateless = __esm({
851
860
  this.disableGeoip = options.disableGeoip ?? true;
852
861
  this.disabled = options.disabled ?? false;
853
862
  this.historicalMigration = options?.historicalMigration ?? false;
854
- this.evaluationEnvironments = options?.evaluationEnvironments;
855
863
  this._initPromise = Promise.resolve();
856
864
  this._isInitialized = true;
857
865
  this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
866
+ this.evaluationContexts = options?.evaluationContexts ?? options?.evaluationEnvironments;
867
+ if (options?.evaluationEnvironments && !options?.evaluationContexts) this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version.");
858
868
  this.disableCompression = !isGzipSupported() || (options?.disableCompression ?? false);
859
869
  }
860
870
  logMsgIfDebug(fn) {
@@ -1029,7 +1039,7 @@ var init_posthog_core_stateless = __esm({
1029
1039
  group_properties: groupProperties,
1030
1040
  ...extraPayload
1031
1041
  };
1032
- if (this.evaluationEnvironments && this.evaluationEnvironments.length > 0) requestData.evaluation_environments = this.evaluationEnvironments;
1042
+ if (this.evaluationContexts && this.evaluationContexts.length > 0) requestData.evaluation_contexts = this.evaluationContexts;
1033
1043
  const fetchOptions = {
1034
1044
  method: "POST",
1035
1045
  headers: {
@@ -1041,10 +1051,35 @@ var init_posthog_core_stateless = __esm({
1041
1051
  this._logger.info("Flags URL", url);
1042
1052
  return this.fetchWithRetry(url, fetchOptions, {
1043
1053
  retryCount: 0
1044
- }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => normalizeFlagsResponse(response)).catch((error) => {
1054
+ }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => ({
1055
+ success: true,
1056
+ response: normalizeFlagsResponse(response)
1057
+ })).catch((error) => {
1045
1058
  this._events.emit("error", error);
1059
+ return {
1060
+ success: false,
1061
+ error: this.categorizeRequestError(error)
1062
+ };
1046
1063
  });
1047
1064
  }
1065
+ categorizeRequestError(error) {
1066
+ if (error instanceof PostHogFetchHttpError) return {
1067
+ type: "api_error",
1068
+ statusCode: error.status
1069
+ };
1070
+ if (error instanceof PostHogFetchNetworkError) {
1071
+ const cause = error.error;
1072
+ if (cause instanceof Error && ("AbortError" === cause.name || "TimeoutError" === cause.name)) return {
1073
+ type: "timeout"
1074
+ };
1075
+ return {
1076
+ type: "connection_error"
1077
+ };
1078
+ }
1079
+ return {
1080
+ type: "unknown_error"
1081
+ };
1082
+ }
1048
1083
  async getFeatureFlagStateless(key, distinctId, groups = {}, personProperties = {}, groupProperties = {}, disableGeoip) {
1049
1084
  await this._initPromise;
1050
1085
  const flagDetailResponse = await this.getFeatureFlagDetailStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
@@ -1111,8 +1146,9 @@ var init_posthog_core_stateless = __esm({
1111
1146
  const extraPayload = {};
1112
1147
  if (disableGeoip ?? this.disableGeoip) extraPayload["geoip_disable"] = true;
1113
1148
  if (flagKeysToEvaluate) extraPayload["flag_keys_to_evaluate"] = flagKeysToEvaluate;
1114
- const flagsResponse = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1115
- if (void 0 === flagsResponse) return;
1149
+ const result = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1150
+ if (!result.success) return;
1151
+ const flagsResponse = result.response;
1116
1152
  if (flagsResponse.errorsWhileComputingFlags) console.error("[FEATURE FLAGS] Error while computing feature flags, some flags may be missing or incorrect. Learn more at https://posthog.com/docs/feature-flags/best-practices");
1117
1153
  if (flagsResponse.quotaLimited?.includes("feature_flags")) {
1118
1154
  console.warn("[FEATURE FLAGS] Feature flags quota limit exceeded - feature flags unavailable. Learn more about billing limits at https://posthog.com/docs/billing/limits-alerts");
@@ -1179,10 +1215,15 @@ var init_posthog_core_stateless = __esm({
1179
1215
  this.setPersistedProperty(types_PostHogPersistedProperty.Props, this.props);
1180
1216
  });
1181
1217
  }
1218
+ processBeforeEnqueue(message2) {
1219
+ return message2;
1220
+ }
1182
1221
  enqueue(type, _message, options) {
1183
1222
  this.wrap(() => {
1184
1223
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1185
- const message2 = this.prepareMessage(type, _message, options);
1224
+ let message2 = this.prepareMessage(type, _message, options);
1225
+ message2 = this.processBeforeEnqueue(message2);
1226
+ if (null === message2) return;
1186
1227
  const queue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
1187
1228
  if (queue.length >= this.maxQueueSize) {
1188
1229
  queue.shift();
@@ -1201,10 +1242,13 @@ var init_posthog_core_stateless = __esm({
1201
1242
  if (this.disabled) return void this._logger.warn("The client is disabled");
1202
1243
  if (!this._isInitialized) await this._initPromise;
1203
1244
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1245
+ let message2 = this.prepareMessage(type, _message, options);
1246
+ message2 = this.processBeforeEnqueue(message2);
1247
+ if (null === message2) return;
1204
1248
  const data = {
1205
1249
  api_key: this.apiKey,
1206
1250
  batch: [
1207
- this.prepareMessage(type, _message, options)
1251
+ message2
1208
1252
  ],
1209
1253
  sent_at: currentISOTime()
1210
1254
  };
@@ -1413,9 +1457,9 @@ var init_posthog_core_stateless = __esm({
1413
1457
  }
1414
1458
  });
1415
1459
 
1416
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs
1460
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/posthog-core.mjs
1417
1461
  var init_posthog_core = __esm({
1418
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1462
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1419
1463
  init_featureFlagUtils();
1420
1464
  init_types();
1421
1465
  init_posthog_core_stateless();
@@ -1424,7 +1468,7 @@ var init_posthog_core = __esm({
1424
1468
  }
1425
1469
  });
1426
1470
 
1427
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1471
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1428
1472
  function getFilenameToChunkIdMap(stackParser) {
1429
1473
  const chunkIdMap = globalThis._posthogChunkIds;
1430
1474
  if (!chunkIdMap) return;
@@ -1457,14 +1501,14 @@ function getFilenameToChunkIdMap(stackParser) {
1457
1501
  }
1458
1502
  var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
1459
1503
  var init_chunk_ids = __esm({
1460
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1504
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1461
1505
  }
1462
1506
  });
1463
1507
 
1464
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1508
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1465
1509
  var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
1466
1510
  var init_error_properties_builder = __esm({
1467
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1511
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1468
1512
  init_utils();
1469
1513
  init_chunk_ids();
1470
1514
  MAX_CAUSE_RECURSION = 4;
@@ -1578,7 +1622,7 @@ var init_error_properties_builder = __esm({
1578
1622
  }
1579
1623
  });
1580
1624
 
1581
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1625
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1582
1626
  function createFrame(platform, filename, func, lineno, colno) {
1583
1627
  const frame = {
1584
1628
  platform,
@@ -1592,16 +1636,16 @@ function createFrame(platform, filename, func, lineno, colno) {
1592
1636
  }
1593
1637
  var UNKNOWN_FUNCTION;
1594
1638
  var init_base = __esm({
1595
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1639
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1596
1640
  init_utils();
1597
1641
  UNKNOWN_FUNCTION = "?";
1598
1642
  }
1599
1643
  });
1600
1644
 
1601
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1645
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1602
1646
  var extractSafariExtensionDetails;
1603
1647
  var init_safari = __esm({
1604
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1648
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1605
1649
  init_base();
1606
1650
  extractSafariExtensionDetails = (func, filename) => {
1607
1651
  const isSafariExtension = -1 !== func.indexOf("safari-extension");
@@ -1617,10 +1661,10 @@ var init_safari = __esm({
1617
1661
  }
1618
1662
  });
1619
1663
 
1620
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1664
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1621
1665
  var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
1622
1666
  var init_chrome = __esm({
1623
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1667
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1624
1668
  init_base();
1625
1669
  init_safari();
1626
1670
  chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
@@ -1650,10 +1694,10 @@ var init_chrome = __esm({
1650
1694
  }
1651
1695
  });
1652
1696
 
1653
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1697
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1654
1698
  var geckoREgex, geckoEvalRegex, geckoStackLineParser;
1655
1699
  var init_gecko = __esm({
1656
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1700
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1657
1701
  init_base();
1658
1702
  init_safari();
1659
1703
  geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
@@ -1680,10 +1724,10 @@ var init_gecko = __esm({
1680
1724
  }
1681
1725
  });
1682
1726
 
1683
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1727
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1684
1728
  var winjsRegex, winjsStackLineParser;
1685
1729
  var init_winjs = __esm({
1686
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1730
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1687
1731
  init_base();
1688
1732
  winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
1689
1733
  winjsStackLineParser = (line, platform) => {
@@ -1693,10 +1737,10 @@ var init_winjs = __esm({
1693
1737
  }
1694
1738
  });
1695
1739
 
1696
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1740
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1697
1741
  var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
1698
1742
  var init_opera = __esm({
1699
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1743
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1700
1744
  init_base();
1701
1745
  opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
1702
1746
  opera10StackLineParser = (line, platform) => {
@@ -1711,7 +1755,7 @@ var init_opera = __esm({
1711
1755
  }
1712
1756
  });
1713
1757
 
1714
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1758
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1715
1759
  function filenameIsInApp(filename, isNative = false) {
1716
1760
  const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
1717
1761
  return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
@@ -1721,7 +1765,7 @@ function _parseIntOrUndefined(input) {
1721
1765
  }
1722
1766
  var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
1723
1767
  var init_node = __esm({
1724
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1768
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1725
1769
  init_base();
1726
1770
  FILENAME_MATCH = /^\s*[-]{4,}$/;
1727
1771
  FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
@@ -1782,7 +1826,7 @@ var init_node = __esm({
1782
1826
  }
1783
1827
  });
1784
1828
 
1785
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1829
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1786
1830
  function reverseAndStripFrames(stack) {
1787
1831
  if (!stack.length) return [];
1788
1832
  const localStack = Array.from(stack);
@@ -1823,7 +1867,7 @@ function createStackParser(platform, ...parsers) {
1823
1867
  }
1824
1868
  var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
1825
1869
  var init_parsers = __esm({
1826
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1870
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1827
1871
  init_base();
1828
1872
  init_chrome();
1829
1873
  init_gecko();
@@ -1835,10 +1879,10 @@ var init_parsers = __esm({
1835
1879
  }
1836
1880
  });
1837
1881
 
1838
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1882
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1839
1883
  var DOMExceptionCoercer;
1840
1884
  var init_dom_exception_coercer = __esm({
1841
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1885
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1842
1886
  init_utils();
1843
1887
  DOMExceptionCoercer = class {
1844
1888
  match(err) {
@@ -1872,10 +1916,10 @@ var init_dom_exception_coercer = __esm({
1872
1916
  }
1873
1917
  });
1874
1918
 
1875
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1919
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1876
1920
  var ErrorCoercer;
1877
1921
  var init_error_coercer = __esm({
1878
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1922
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1879
1923
  init_utils();
1880
1924
  ErrorCoercer = class {
1881
1925
  match(err) {
@@ -1905,10 +1949,10 @@ var init_error_coercer = __esm({
1905
1949
  }
1906
1950
  });
1907
1951
 
1908
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1952
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1909
1953
  var ErrorEventCoercer;
1910
1954
  var init_error_event_coercer = __esm({
1911
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1955
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1912
1956
  init_utils();
1913
1957
  ErrorEventCoercer = class {
1914
1958
  constructor() {
@@ -1930,10 +1974,10 @@ var init_error_event_coercer = __esm({
1930
1974
  }
1931
1975
  });
1932
1976
 
1933
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1977
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1934
1978
  var ERROR_TYPES_PATTERN, StringCoercer;
1935
1979
  var init_string_coercer = __esm({
1936
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1980
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1937
1981
  ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
1938
1982
  StringCoercer = class {
1939
1983
  match(input) {
@@ -1965,10 +2009,10 @@ var init_string_coercer = __esm({
1965
2009
  }
1966
2010
  });
1967
2011
 
1968
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
2012
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/types.mjs
1969
2013
  var severityLevels;
1970
2014
  var init_types2 = __esm({
1971
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2015
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
1972
2016
  severityLevels = [
1973
2017
  "fatal",
1974
2018
  "error",
@@ -1980,7 +2024,7 @@ var init_types2 = __esm({
1980
2024
  }
1981
2025
  });
1982
2026
 
1983
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2027
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
1984
2028
  function extractExceptionKeysForMessage(err, maxLength = 40) {
1985
2029
  const keys = Object.keys(err);
1986
2030
  keys.sort();
@@ -1995,14 +2039,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
1995
2039
  return "";
1996
2040
  }
1997
2041
  var init_utils2 = __esm({
1998
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2042
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
1999
2043
  }
2000
2044
  });
2001
2045
 
2002
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2046
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2003
2047
  var ObjectCoercer;
2004
2048
  var init_object_coercer = __esm({
2005
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2049
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2006
2050
  init_utils();
2007
2051
  init_types2();
2008
2052
  init_utils2();
@@ -2056,10 +2100,10 @@ var init_object_coercer = __esm({
2056
2100
  }
2057
2101
  });
2058
2102
 
2059
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2103
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2060
2104
  var EventCoercer;
2061
2105
  var init_event_coercer = __esm({
2062
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2106
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2063
2107
  init_utils();
2064
2108
  init_utils2();
2065
2109
  EventCoercer = class {
@@ -2079,10 +2123,10 @@ var init_event_coercer = __esm({
2079
2123
  }
2080
2124
  });
2081
2125
 
2082
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2126
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2083
2127
  var PrimitiveCoercer;
2084
2128
  var init_primitive_coercer = __esm({
2085
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2129
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2086
2130
  init_utils();
2087
2131
  PrimitiveCoercer = class {
2088
2132
  match(candidate) {
@@ -2100,10 +2144,10 @@ var init_primitive_coercer = __esm({
2100
2144
  }
2101
2145
  });
2102
2146
 
2103
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2147
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2104
2148
  var PromiseRejectionEventCoercer;
2105
2149
  var init_promise_rejection_event = __esm({
2106
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2150
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2107
2151
  init_utils();
2108
2152
  PromiseRejectionEventCoercer = class {
2109
2153
  match(err) {
@@ -2132,9 +2176,9 @@ var init_promise_rejection_event = __esm({
2132
2176
  }
2133
2177
  });
2134
2178
 
2135
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2179
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2136
2180
  var init_coercers = __esm({
2137
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2181
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2138
2182
  init_dom_exception_coercer();
2139
2183
  init_error_coercer();
2140
2184
  init_error_event_coercer();
@@ -2146,10 +2190,10 @@ var init_coercers = __esm({
2146
2190
  }
2147
2191
  });
2148
2192
 
2149
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2193
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2150
2194
  var ReduceableCache;
2151
2195
  var init_utils3 = __esm({
2152
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2196
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2153
2197
  ReduceableCache = class {
2154
2198
  constructor(_maxSize) {
2155
2199
  this._maxSize = _maxSize;
@@ -2175,7 +2219,7 @@ var init_utils3 = __esm({
2175
2219
  }
2176
2220
  });
2177
2221
 
2178
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
2222
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/index.mjs
2179
2223
  var error_tracking_exports = {};
2180
2224
  __export(error_tracking_exports, {
2181
2225
  DOMExceptionCoercer: () => DOMExceptionCoercer,
@@ -2199,7 +2243,7 @@ __export(error_tracking_exports, {
2199
2243
  winjsStackLineParser: () => winjsStackLineParser
2200
2244
  });
2201
2245
  var init_error_tracking = __esm({
2202
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2246
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2203
2247
  init_error_properties_builder();
2204
2248
  init_parsers();
2205
2249
  init_coercers();
@@ -2207,9 +2251,9 @@ var init_error_tracking = __esm({
2207
2251
  }
2208
2252
  });
2209
2253
 
2210
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs
2254
+ // ../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/index.mjs
2211
2255
  var init_dist = __esm({
2212
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs"() {
2256
+ "../../node_modules/.pnpm/@posthog+core@1.13.0/node_modules/@posthog/core/dist/index.mjs"() {
2213
2257
  init_featureFlagUtils();
2214
2258
  init_uuidv7();
2215
2259
  init_utils();
@@ -2400,7 +2444,7 @@ function snipLine(line, colno) {
2400
2444
  }
2401
2445
  var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
2402
2446
  var init_context_lines_node = __esm({
2403
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2447
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2404
2448
  init_dist();
2405
2449
  LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
2406
2450
  LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
@@ -2410,7 +2454,7 @@ var init_context_lines_node = __esm({
2410
2454
  }
2411
2455
  });
2412
2456
 
2413
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2457
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2414
2458
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
2415
2459
  let calledFatalError = false;
2416
2460
  return Object.assign((error) => {
@@ -2442,14 +2486,14 @@ function addUnhandledRejectionListener(captureFn) {
2442
2486
  }));
2443
2487
  }
2444
2488
  var init_autocapture = __esm({
2445
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2489
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2446
2490
  }
2447
2491
  });
2448
2492
 
2449
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2493
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2450
2494
  var SHUTDOWN_TIMEOUT, ErrorTracking;
2451
2495
  var init_error_tracking2 = __esm({
2452
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2496
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2453
2497
  init_autocapture();
2454
2498
  init_dist();
2455
2499
  SHUTDOWN_TIMEOUT = 2e3;
@@ -2520,19 +2564,19 @@ var init_error_tracking2 = __esm({
2520
2564
  }
2521
2565
  });
2522
2566
 
2523
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs
2567
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/version.mjs
2524
2568
  var version;
2525
2569
  var init_version = __esm({
2526
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs"() {
2527
- version = "5.21.0";
2570
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/version.mjs"() {
2571
+ version = "5.24.1";
2528
2572
  }
2529
2573
  });
2530
2574
 
2531
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs
2532
- var FeatureFlagError;
2575
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/types.mjs
2576
+ var FeatureFlagError2;
2533
2577
  var init_types3 = __esm({
2534
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs"() {
2535
- FeatureFlagError = {
2578
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/types.mjs"() {
2579
+ FeatureFlagError2 = {
2536
2580
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
2537
2581
  FLAG_MISSING: "flag_missing",
2538
2582
  QUOTA_LIMITED: "quota_limited",
@@ -2541,7 +2585,7 @@ var init_types3 = __esm({
2541
2585
  }
2542
2586
  });
2543
2587
 
2544
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2588
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2545
2589
  async function hashSHA1(text) {
2546
2590
  const subtle = globalThis.crypto?.subtle;
2547
2591
  if (!subtle) throw new Error("SubtleCrypto API not available");
@@ -2550,11 +2594,11 @@ async function hashSHA1(text) {
2550
2594
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
2551
2595
  }
2552
2596
  var init_crypto = __esm({
2553
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2597
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2554
2598
  }
2555
2599
  });
2556
2600
 
2557
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2601
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2558
2602
  async function _hash(key, distinctId, salt = "") {
2559
2603
  const hashString = await hashSHA1(`${key}.${distinctId}${salt}`);
2560
2604
  return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
@@ -2722,7 +2766,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
2722
2766
  }
2723
2767
  var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
2724
2768
  var init_feature_flags = __esm({
2725
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2769
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2726
2770
  init_dist();
2727
2771
  init_crypto();
2728
2772
  SIXTY_SECONDS = 6e4;
@@ -3135,10 +3179,10 @@ var init_feature_flags = __esm({
3135
3179
  }
3136
3180
  });
3137
3181
 
3138
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs
3182
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/storage-memory.mjs
3139
3183
  var PostHogMemoryStorage;
3140
3184
  var init_storage_memory = __esm({
3141
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs"() {
3185
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/storage-memory.mjs"() {
3142
3186
  PostHogMemoryStorage = class {
3143
3187
  getProperty(key) {
3144
3188
  return this._memoryStorage[key];
@@ -3153,10 +3197,10 @@ var init_storage_memory = __esm({
3153
3197
  }
3154
3198
  });
3155
3199
 
3156
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs
3200
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/client.mjs
3157
3201
  var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, PostHogBackendClient;
3158
3202
  var init_client = __esm({
3159
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs"() {
3203
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/client.mjs"() {
3160
3204
  init_version();
3161
3205
  init_dist();
3162
3206
  init_types3();
@@ -3296,94 +3340,148 @@ var init_client = __esm({
3296
3340
  });
3297
3341
  });
3298
3342
  }
3299
- async getFeatureFlag(key, distinctId, options) {
3300
- if (void 0 !== this._flagOverrides && key in this._flagOverrides) return this._flagOverrides[key];
3301
- const { groups, disableGeoip } = options || {};
3302
- let { onlyEvaluateLocally, sendFeatureFlagEvents, personProperties, groupProperties } = options || {};
3343
+ async _getFeatureFlagResult(key, distinctId, options = {}, matchValue) {
3344
+ const sendFeatureFlagEvents = options.sendFeatureFlagEvents ?? true;
3345
+ if (void 0 !== this._flagOverrides && key in this._flagOverrides) {
3346
+ const overrideValue = this._flagOverrides[key];
3347
+ if (void 0 === overrideValue) return;
3348
+ const overridePayload = this._payloadOverrides?.[key];
3349
+ return {
3350
+ key,
3351
+ enabled: false !== overrideValue,
3352
+ variant: "string" == typeof overrideValue ? overrideValue : void 0,
3353
+ payload: overridePayload
3354
+ };
3355
+ }
3356
+ const { groups, disableGeoip } = options;
3357
+ let { onlyEvaluateLocally, personProperties, groupProperties } = options;
3303
3358
  const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3304
3359
  personProperties = adjustedProperties.allPersonProperties;
3305
3360
  groupProperties = adjustedProperties.allGroupProperties;
3306
3361
  if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3307
- if (void 0 == sendFeatureFlagEvents) sendFeatureFlagEvents = this.options.sendFeatureFlagEvent ?? true;
3308
- let response = await this.featureFlagsPoller?.getFeatureFlag(key, distinctId, groups, personProperties, groupProperties);
3309
- const flagWasLocallyEvaluated = void 0 !== response;
3362
+ let result;
3363
+ let flagWasLocallyEvaluated = false;
3310
3364
  let requestId;
3311
3365
  let evaluatedAt;
3312
- let flagDetail;
3313
3366
  let featureFlagError;
3367
+ let flagId;
3368
+ let flagVersion;
3369
+ let flagReason;
3370
+ const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3371
+ if (localEvaluationEnabled) {
3372
+ await this.featureFlagsPoller?.loadFeatureFlags();
3373
+ const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3374
+ if (flag) try {
3375
+ const localResult = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3376
+ if (localResult) {
3377
+ flagWasLocallyEvaluated = true;
3378
+ const value = localResult.value;
3379
+ flagId = flag.id;
3380
+ flagReason = "Evaluated locally";
3381
+ result = {
3382
+ key,
3383
+ enabled: false !== value,
3384
+ variant: "string" == typeof value ? value : void 0,
3385
+ payload: localResult.payload ?? void 0
3386
+ };
3387
+ }
3388
+ } catch (e) {
3389
+ if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${key}: ${e.message}`);
3390
+ else throw e;
3391
+ }
3392
+ }
3314
3393
  if (!flagWasLocallyEvaluated && !onlyEvaluateLocally) {
3315
3394
  const flagsResponse = await super.getFeatureFlagDetailsStateless(distinctId, groups, personProperties, groupProperties, disableGeoip, [
3316
3395
  key
3317
3396
  ]);
3318
- if (void 0 === flagsResponse) featureFlagError = FeatureFlagError.UNKNOWN_ERROR;
3397
+ if (void 0 === flagsResponse) featureFlagError = FeatureFlagError2.UNKNOWN_ERROR;
3319
3398
  else {
3320
3399
  requestId = flagsResponse.requestId;
3321
3400
  evaluatedAt = flagsResponse.evaluatedAt;
3322
3401
  const errors = [];
3323
- if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError.ERRORS_WHILE_COMPUTING);
3324
- if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError.QUOTA_LIMITED);
3325
- flagDetail = flagsResponse.flags[key];
3326
- if (void 0 === flagDetail) errors.push(FeatureFlagError.FLAG_MISSING);
3402
+ if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError2.ERRORS_WHILE_COMPUTING);
3403
+ if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError2.QUOTA_LIMITED);
3404
+ const flagDetail = flagsResponse.flags[key];
3405
+ if (void 0 === flagDetail) errors.push(FeatureFlagError2.FLAG_MISSING);
3406
+ else {
3407
+ flagId = flagDetail.metadata?.id;
3408
+ flagVersion = flagDetail.metadata?.version;
3409
+ flagReason = flagDetail.reason?.description ?? flagDetail.reason?.code;
3410
+ let parsedPayload;
3411
+ if (flagDetail.metadata?.payload !== void 0) try {
3412
+ parsedPayload = JSON.parse(flagDetail.metadata.payload);
3413
+ } catch {
3414
+ parsedPayload = flagDetail.metadata.payload;
3415
+ }
3416
+ result = {
3417
+ key,
3418
+ enabled: flagDetail.enabled,
3419
+ variant: flagDetail.variant,
3420
+ payload: parsedPayload
3421
+ };
3422
+ }
3327
3423
  if (errors.length > 0) featureFlagError = errors.join(",");
3328
- response = getFeatureFlagValue(flagDetail);
3329
3424
  }
3330
3425
  }
3331
- const featureFlagReportedKey = `${key}_${response}`;
3332
- if (sendFeatureFlagEvents && (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey))) {
3333
- if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3334
- if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3335
- else this.distinctIdHasSentFlagCalls[distinctId] = [
3336
- featureFlagReportedKey
3337
- ];
3338
- const properties = {
3339
- $feature_flag: key,
3340
- $feature_flag_response: response,
3341
- $feature_flag_id: flagDetail?.metadata?.id,
3342
- $feature_flag_version: flagDetail?.metadata?.version,
3343
- $feature_flag_reason: flagDetail?.reason?.description ?? flagDetail?.reason?.code,
3344
- locally_evaluated: flagWasLocallyEvaluated,
3345
- [`$feature/${key}`]: response,
3346
- $feature_flag_request_id: requestId,
3347
- $feature_flag_evaluated_at: evaluatedAt
3348
- };
3349
- if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3350
- this.capture({
3351
- distinctId,
3352
- event: "$feature_flag_called",
3353
- properties,
3354
- groups,
3355
- disableGeoip
3356
- });
3426
+ if (sendFeatureFlagEvents) {
3427
+ const response = void 0 === result ? void 0 : false === result.enabled ? false : result.variant ?? true;
3428
+ const featureFlagReportedKey = `${key}_${response}`;
3429
+ if (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey)) {
3430
+ if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3431
+ if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3432
+ else this.distinctIdHasSentFlagCalls[distinctId] = [
3433
+ featureFlagReportedKey
3434
+ ];
3435
+ const properties = {
3436
+ $feature_flag: key,
3437
+ $feature_flag_response: response,
3438
+ $feature_flag_id: flagId,
3439
+ $feature_flag_version: flagVersion,
3440
+ $feature_flag_reason: flagReason,
3441
+ locally_evaluated: flagWasLocallyEvaluated,
3442
+ [`$feature/${key}`]: response,
3443
+ $feature_flag_request_id: requestId,
3444
+ $feature_flag_evaluated_at: evaluatedAt
3445
+ };
3446
+ if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3447
+ this.capture({
3448
+ distinctId,
3449
+ event: "$feature_flag_called",
3450
+ properties,
3451
+ groups,
3452
+ disableGeoip
3453
+ });
3454
+ }
3357
3455
  }
3358
- return response;
3456
+ if (void 0 !== result && void 0 !== this._payloadOverrides && key in this._payloadOverrides) result = {
3457
+ ...result,
3458
+ payload: this._payloadOverrides[key]
3459
+ };
3460
+ return result;
3461
+ }
3462
+ async getFeatureFlag(key, distinctId, options) {
3463
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3464
+ ...options,
3465
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3466
+ });
3467
+ if (void 0 === result) return;
3468
+ if (false === result.enabled) return false;
3469
+ return result.variant ?? true;
3359
3470
  }
3360
3471
  async getFeatureFlagPayload(key, distinctId, matchValue, options) {
3361
3472
  if (void 0 !== this._payloadOverrides && key in this._payloadOverrides) return this._payloadOverrides[key];
3362
- const { groups, disableGeoip } = options || {};
3363
- let { onlyEvaluateLocally, personProperties, groupProperties } = options || {};
3364
- const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3365
- personProperties = adjustedProperties.allPersonProperties;
3366
- groupProperties = adjustedProperties.allGroupProperties;
3367
- let response;
3368
- const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3369
- if (localEvaluationEnabled) {
3370
- await this.featureFlagsPoller?.loadFeatureFlags();
3371
- const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3372
- if (flag) try {
3373
- const result = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3374
- if (result) {
3375
- matchValue = result.value;
3376
- response = result.payload;
3377
- }
3378
- } catch (e) {
3379
- if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${flag.key}: ${e.message}`);
3380
- else throw e;
3381
- }
3382
- }
3383
- if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3384
- const payloadWasLocallyEvaluated = void 0 !== response;
3385
- if (!payloadWasLocallyEvaluated && !onlyEvaluateLocally) response = await super.getFeatureFlagPayloadStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
3386
- return response;
3473
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3474
+ ...options,
3475
+ sendFeatureFlagEvents: false
3476
+ }, matchValue);
3477
+ if (void 0 === result) return;
3478
+ return result.payload ?? null;
3479
+ }
3480
+ async getFeatureFlagResult(key, distinctId, options) {
3481
+ return this._getFeatureFlagResult(key, distinctId, {
3482
+ ...options,
3483
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3484
+ });
3387
3485
  }
3388
3486
  async getRemoteConfigPayload(flagKey) {
3389
3487
  if (!this.options.personalApiKey) throw new Error("Personal API key is required for remote config payload decryption");
@@ -3710,7 +3808,7 @@ var init_client = __esm({
3710
3808
  });
3711
3809
  var PostHogContext;
3712
3810
  var init_context = __esm({
3713
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3811
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3714
3812
  PostHogContext = class {
3715
3813
  constructor() {
3716
3814
  this.storage = new AsyncLocalStorage();
@@ -3738,7 +3836,7 @@ var init_context = __esm({
3738
3836
  }
3739
3837
  });
3740
3838
 
3741
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3839
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3742
3840
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
3743
3841
  "error"
3744
3842
  ], sendExceptionsToPostHog = true } = {}) {
@@ -3794,7 +3892,7 @@ function sentryIntegration(_posthog, options) {
3794
3892
  }
3795
3893
  var NAME, PostHogSentryIntegration;
3796
3894
  var init_sentry_integration = __esm({
3797
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3895
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3798
3896
  NAME = "posthog-node";
3799
3897
  PostHogSentryIntegration = class {
3800
3898
  static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -3816,7 +3914,7 @@ var init_sentry_integration = __esm({
3816
3914
  }
3817
3915
  });
3818
3916
 
3819
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs
3917
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/express.mjs
3820
3918
  function setupExpressErrorHandler(_posthog, app) {
3821
3919
  app.use(posthogErrorHandler(_posthog));
3822
3920
  }
@@ -3848,21 +3946,22 @@ function posthogErrorHandler(posthog) {
3848
3946
  };
3849
3947
  }
3850
3948
  var init_express = __esm({
3851
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs"() {
3949
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/extensions/express.mjs"() {
3852
3950
  init_error_tracking2();
3853
3951
  }
3854
3952
  });
3855
3953
 
3856
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs
3954
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/exports.mjs
3857
3955
  var init_exports = __esm({
3858
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs"() {
3956
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/exports.mjs"() {
3957
+ init_dist();
3859
3958
  init_sentry_integration();
3860
3959
  init_express();
3861
3960
  init_types3();
3862
3961
  }
3863
3962
  });
3864
3963
 
3865
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3964
+ // ../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3866
3965
  var index_node_exports = {};
3867
3966
  __export(index_node_exports, {
3868
3967
  FeatureFlagError: () => FeatureFlagError,
@@ -3874,7 +3973,7 @@ __export(index_node_exports, {
3874
3973
  });
3875
3974
  var PostHog;
3876
3975
  var init_index_node = __esm({
3877
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
3976
+ "../../node_modules/.pnpm/posthog-node@5.24.1/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
3878
3977
  init_module_node();
3879
3978
  init_context_lines_node();
3880
3979
  init_error_tracking2();
@@ -7446,10 +7545,10 @@ var init_tslib_es6 = __esm({
7446
7545
  }
7447
7546
  });
7448
7547
 
7449
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7548
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7450
7549
  var IdentifyOperation, SpecialEventType;
7451
7550
  var init_event = __esm({
7452
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7551
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7453
7552
  (function(IdentifyOperation3) {
7454
7553
  IdentifyOperation3["SET"] = "$set";
7455
7554
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -7470,10 +7569,10 @@ var init_event = __esm({
7470
7569
  }
7471
7570
  });
7472
7571
 
7473
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7572
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7474
7573
  var UNSET_VALUE, AMPLITUDE_PREFIX, STORAGE_PREFIX, DEFAULT_INSTANCE_NAME, AMPLITUDE_SERVER_URL, EU_AMPLITUDE_SERVER_URL, AMPLITUDE_BATCH_SERVER_URL, EU_AMPLITUDE_BATCH_SERVER_URL;
7475
7574
  var init_constants = __esm({
7476
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7575
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7477
7576
  UNSET_VALUE = "-";
7478
7577
  AMPLITUDE_PREFIX = "AMP";
7479
7578
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -7485,10 +7584,10 @@ var init_constants = __esm({
7485
7584
  }
7486
7585
  });
7487
7586
 
7488
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7587
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7489
7588
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
7490
7589
  var init_valid_properties = __esm({
7491
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7590
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7492
7591
  init_tslib_es6();
7493
7592
  MAX_PROPERTY_KEYS = 1e3;
7494
7593
  isValidObject = function(properties) {
@@ -7543,10 +7642,10 @@ var init_valid_properties = __esm({
7543
7642
  }
7544
7643
  });
7545
7644
 
7546
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js
7645
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js
7547
7646
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
7548
7647
  var init_identify = __esm({
7549
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
7648
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
7550
7649
  init_tslib_es6();
7551
7650
  init_constants();
7552
7651
  init_valid_properties();
@@ -7657,10 +7756,10 @@ var init_identify = __esm({
7657
7756
  }
7658
7757
  });
7659
7758
 
7660
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
7759
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
7661
7760
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
7662
7761
  var init_messages = __esm({
7663
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
7762
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
7664
7763
  SUCCESS_MESSAGE = "Event tracked successfully";
7665
7764
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
7666
7765
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -7671,10 +7770,10 @@ var init_messages = __esm({
7671
7770
  }
7672
7771
  });
7673
7772
 
7674
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
7773
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
7675
7774
  var Status;
7676
7775
  var init_status = __esm({
7677
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
7776
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
7678
7777
  (function(Status2) {
7679
7778
  Status2["Unknown"] = "unknown";
7680
7779
  Status2["Skipped"] = "skipped";
@@ -7689,10 +7788,10 @@ var init_status = __esm({
7689
7788
  }
7690
7789
  });
7691
7790
 
7692
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
7791
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
7693
7792
  var buildResult;
7694
7793
  var init_result_builder = __esm({
7695
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
7794
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
7696
7795
  init_status();
7697
7796
  buildResult = function(event, code, message2) {
7698
7797
  if (code === void 0) {
@@ -7706,10 +7805,10 @@ var init_result_builder = __esm({
7706
7805
  }
7707
7806
  });
7708
7807
 
7709
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
7808
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
7710
7809
  var getGlobalScope;
7711
7810
  var init_global_scope = __esm({
7712
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
7811
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
7713
7812
  getGlobalScope = function() {
7714
7813
  var ampIntegrationContextName = "ampIntegrationContext";
7715
7814
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -7732,10 +7831,10 @@ var init_global_scope = __esm({
7732
7831
  }
7733
7832
  });
7734
7833
 
7735
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
7834
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
7736
7835
  var legacyUUID, hex, UUID2;
7737
7836
  var init_uuid = __esm({
7738
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
7837
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
7739
7838
  init_tslib_es6();
7740
7839
  init_global_scope();
7741
7840
  legacyUUID = function(a) {
@@ -7779,10 +7878,10 @@ var init_uuid = __esm({
7779
7878
  }
7780
7879
  });
7781
7880
 
7782
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
7881
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
7783
7882
  var Timeline;
7784
7883
  var init_timeline = __esm({
7785
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
7884
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
7786
7885
  init_tslib_es6();
7787
7886
  init_result_builder();
7788
7887
  init_uuid();
@@ -8084,10 +8183,10 @@ var init_timeline = __esm({
8084
8183
  }
8085
8184
  });
8086
8185
 
8087
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8186
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8088
8187
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
8089
8188
  var init_event_builder = __esm({
8090
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8189
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8091
8190
  init_tslib_es6();
8092
8191
  init_identify();
8093
8192
  init_event();
@@ -8117,10 +8216,10 @@ var init_event_builder = __esm({
8117
8216
  }
8118
8217
  });
8119
8218
 
8120
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8219
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8121
8220
  var returnWrapper;
8122
8221
  var init_return_wrapper = __esm({
8123
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8222
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8124
8223
  returnWrapper = function(awaitable) {
8125
8224
  return {
8126
8225
  promise: awaitable || Promise.resolve()
@@ -8129,10 +8228,10 @@ var init_return_wrapper = __esm({
8129
8228
  }
8130
8229
  });
8131
8230
 
8132
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8231
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8133
8232
  var AmplitudeCore;
8134
8233
  var init_core_client = __esm({
8135
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8234
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8136
8235
  init_tslib_es6();
8137
8236
  init_event();
8138
8237
  init_identify();
@@ -8400,10 +8499,10 @@ var init_core_client = __esm({
8400
8499
  }
8401
8500
  });
8402
8501
 
8403
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8502
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8404
8503
  var Revenue, RevenueProperty;
8405
8504
  var init_revenue = __esm({
8406
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8505
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8407
8506
  init_tslib_es6();
8408
8507
  init_valid_properties();
8409
8508
  Revenue = /** @class */
@@ -8480,10 +8579,10 @@ var init_revenue = __esm({
8480
8579
  }
8481
8580
  });
8482
8581
 
8483
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
8582
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
8484
8583
  var chunk;
8485
8584
  var init_chunk = __esm({
8486
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
8585
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
8487
8586
  chunk = function(arr, size) {
8488
8587
  var chunkSize = Math.max(size, 1);
8489
8588
  return arr.reduce(function(chunks, element, index) {
@@ -8498,10 +8597,10 @@ var init_chunk = __esm({
8498
8597
  }
8499
8598
  });
8500
8599
 
8501
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
8600
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
8502
8601
  var LogLevel;
8503
8602
  var init_loglevel = __esm({
8504
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
8603
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
8505
8604
  (function(LogLevel2) {
8506
8605
  LogLevel2[LogLevel2["None"] = 0] = "None";
8507
8606
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -8512,10 +8611,10 @@ var init_loglevel = __esm({
8512
8611
  }
8513
8612
  });
8514
8613
 
8515
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js
8614
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js
8516
8615
  var PREFIX, Logger;
8517
8616
  var init_logger2 = __esm({
8518
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
8617
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
8519
8618
  init_loglevel();
8520
8619
  PREFIX = "Amplitude Logger ";
8521
8620
  Logger = /** @class */
@@ -8577,10 +8676,10 @@ var init_logger2 = __esm({
8577
8676
  }
8578
8677
  });
8579
8678
 
8580
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js
8679
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/config.js
8581
8680
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
8582
8681
  var init_config = __esm({
8583
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
8682
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
8584
8683
  init_constants();
8585
8684
  init_logger2();
8586
8685
  init_loglevel();
@@ -8681,19 +8780,19 @@ var init_config = __esm({
8681
8780
  }
8682
8781
  });
8683
8782
 
8684
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
8783
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
8685
8784
  function isSuccessStatusCode(code) {
8686
8785
  return code >= 200 && code < 300;
8687
8786
  }
8688
8787
  var init_status_code = __esm({
8689
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
8788
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
8690
8789
  }
8691
8790
  });
8692
8791
 
8693
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
8792
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
8694
8793
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
8695
8794
  var init_debug = __esm({
8696
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
8795
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
8697
8796
  init_tslib_es6();
8698
8797
  init_loglevel();
8699
8798
  getStacktrace = function(ignoreDepth) {
@@ -8811,7 +8910,7 @@ var init_debug = __esm({
8811
8910
  }
8812
8911
  });
8813
8912
 
8814
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
8913
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
8815
8914
  function getErrorMessage(error) {
8816
8915
  if (error instanceof Error)
8817
8916
  return error.message;
@@ -8829,7 +8928,7 @@ function getResponseBodyString(res) {
8829
8928
  }
8830
8929
  var Destination;
8831
8930
  var init_destination = __esm({
8832
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
8931
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
8833
8932
  init_tslib_es6();
8834
8933
  init_status();
8835
8934
  init_messages();
@@ -9220,10 +9319,10 @@ var init_destination = __esm({
9220
9319
  }
9221
9320
  });
9222
9321
 
9223
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9322
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9224
9323
  var BaseTransport;
9225
9324
  var init_base2 = __esm({
9226
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9325
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9227
9326
  init_status();
9228
9327
  init_status_code();
9229
9328
  BaseTransport = /** @class */
@@ -9325,10 +9424,10 @@ var init_base2 = __esm({
9325
9424
  }
9326
9425
  });
9327
9426
 
9328
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9427
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9329
9428
  var ServerZone;
9330
9429
  var init_server_zone = __esm({
9331
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9430
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9332
9431
  (function(ServerZone2) {
9333
9432
  ServerZone2["US"] = "US";
9334
9433
  ServerZone2["EU"] = "EU";
@@ -9337,17 +9436,17 @@ var init_server_zone = __esm({
9337
9436
  }
9338
9437
  });
9339
9438
 
9340
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9439
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9341
9440
  var OfflineDisabled;
9342
9441
  var init_offline = __esm({
9343
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9442
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9344
9443
  OfflineDisabled = null;
9345
9444
  }
9346
9445
  });
9347
9446
 
9348
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js
9447
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/index.js
9349
9448
  var init_esm = __esm({
9350
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9449
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.36.0/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9351
9450
  init_core_client();
9352
9451
  init_identify();
9353
9452
  init_revenue();
@@ -9364,18 +9463,18 @@ var init_esm = __esm({
9364
9463
  }
9365
9464
  });
9366
9465
 
9367
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js
9466
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/version.js
9368
9467
  var VERSION;
9369
9468
  var init_version2 = __esm({
9370
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9371
- VERSION = "1.5.31";
9469
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9470
+ VERSION = "1.5.32";
9372
9471
  }
9373
9472
  });
9374
9473
 
9375
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9474
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9376
9475
  var Context;
9377
9476
  var init_context2 = __esm({
9378
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9477
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9379
9478
  init_tslib_es6();
9380
9479
  init_esm();
9381
9480
  init_version2();
@@ -9410,7 +9509,7 @@ var init_context2 = __esm({
9410
9509
  });
9411
9510
  var Http;
9412
9511
  var init_http = __esm({
9413
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9512
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9414
9513
  init_tslib_es6();
9415
9514
  init_esm();
9416
9515
  Http = /** @class */
@@ -9472,10 +9571,10 @@ var init_http = __esm({
9472
9571
  }
9473
9572
  });
9474
9573
 
9475
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js
9574
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/config.js
9476
9575
  var NodeConfig, useNodeConfig;
9477
9576
  var init_config2 = __esm({
9478
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
9577
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
9479
9578
  init_tslib_es6();
9480
9579
  init_esm();
9481
9580
  init_http();
@@ -9493,10 +9592,10 @@ var init_config2 = __esm({
9493
9592
  }
9494
9593
  });
9495
9594
 
9496
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
9595
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
9497
9596
  var AmplitudeNode, createInstance, node_client_default;
9498
9597
  var init_node_client = __esm({
9499
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
9598
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
9500
9599
  init_tslib_es6();
9501
9600
  init_esm();
9502
9601
  init_context2();
@@ -9570,7 +9669,7 @@ var init_node_client = __esm({
9570
9669
  }
9571
9670
  });
9572
9671
 
9573
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js
9672
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/types.js
9574
9673
  var types_exports = {};
9575
9674
  __export(types_exports, {
9576
9675
  IdentifyOperation: () => IdentifyOperation,
@@ -9581,12 +9680,12 @@ __export(types_exports, {
9581
9680
  SpecialEventType: () => SpecialEventType
9582
9681
  });
9583
9682
  var init_types4 = __esm({
9584
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
9683
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
9585
9684
  init_esm();
9586
9685
  }
9587
9686
  });
9588
9687
 
9589
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js
9688
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/index.js
9590
9689
  var esm_exports = {};
9591
9690
  __export(esm_exports, {
9592
9691
  Identify: () => Identify,
@@ -9607,7 +9706,7 @@ __export(esm_exports, {
9607
9706
  });
9608
9707
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
9609
9708
  var init_esm2 = __esm({
9610
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
9709
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.32/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
9611
9710
  init_node_client();
9612
9711
  init_node_client();
9613
9712
  init_esm();