autotel-subscribers 30.0.2 → 30.0.4

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
@@ -1,4 +1,4 @@
1
- import { posix, dirname, sep } from 'path';
1
+ import { isAbsolute, relative, posix, dirname, sep } from 'path';
2
2
  import { createReadStream } from 'fs';
3
3
  import { createInterface } from 'readline';
4
4
  import { AsyncLocalStorage } from 'async_hooks';
@@ -82,11 +82,11 @@ function normalizeWindowsPath(path) {
82
82
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
83
83
  }
84
84
  var init_module_node = __esm({
85
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
85
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
86
86
  }
87
87
  });
88
88
 
89
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
89
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/featureFlagUtils.mjs
90
90
  function getFlagDetailFromFlagAndPayload(key, value, payload) {
91
91
  return {
92
92
  key,
@@ -103,7 +103,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
103
103
  }
104
104
  var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
105
105
  var init_featureFlagUtils = __esm({
106
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
106
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
107
107
  normalizeFlagsResponse = (flagsResponse) => {
108
108
  if ("flags" in flagsResponse) {
109
109
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -161,251 +161,41 @@ var init_featureFlagUtils = __esm({
161
161
  }
162
162
  });
163
163
 
164
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/gzip.mjs
164
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/gzip.mjs
165
165
  function isGzipSupported() {
166
- return "CompressionStream" in globalThis;
166
+ return "CompressionStream" in globalThis && "TextEncoder" in globalThis && "Response" in globalThis && "function" == typeof Response.prototype.blob;
167
167
  }
168
- async function gzipCompress(input, isDebug = true) {
168
+ async function gzipCompress(input, isDebug = true, options) {
169
169
  try {
170
- const dataStream = new Blob([
171
- input
172
- ], {
173
- type: "text/plain"
174
- }).stream();
175
- const compressedStream = dataStream.pipeThrough(new CompressionStream("gzip"));
176
- return await new Response(compressedStream).blob();
170
+ const compressedStream = new CompressionStream("gzip");
171
+ const writer = compressedStream.writable.getWriter();
172
+ const writePromise = writer.write(new TextEncoder().encode(input)).then(() => writer.close()).catch(async (err) => {
173
+ try {
174
+ await writer.abort(err);
175
+ } catch {
176
+ }
177
+ throw err;
178
+ });
179
+ const responsePromise = new Response(compressedStream.readable).blob();
180
+ const [compressed] = await Promise.all([
181
+ responsePromise,
182
+ writePromise
183
+ ]);
184
+ return compressed;
177
185
  } catch (error) {
178
186
  if (isDebug) console.error("Failed to gzip compress data", error);
179
187
  return null;
180
188
  }
181
189
  }
182
190
  var init_gzip = __esm({
183
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/gzip.mjs"() {
191
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/gzip.mjs"() {
184
192
  }
185
193
  });
186
194
 
187
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
188
- var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
189
- var init_uuidv7 = __esm({
190
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
191
- DIGITS = "0123456789abcdef";
192
- UUID = class _UUID {
193
- constructor(bytes) {
194
- this.bytes = bytes;
195
- }
196
- static ofInner(bytes) {
197
- if (16 === bytes.length) return new _UUID(bytes);
198
- throw new TypeError("not 128-bit length");
199
- }
200
- static fromFieldsV7(unixTsMs, randA, randBHi, randBLo) {
201
- if (!Number.isInteger(unixTsMs) || !Number.isInteger(randA) || !Number.isInteger(randBHi) || !Number.isInteger(randBLo) || unixTsMs < 0 || randA < 0 || randBHi < 0 || randBLo < 0 || unixTsMs > 281474976710655 || randA > 4095 || randBHi > 1073741823 || randBLo > 4294967295) throw new RangeError("invalid field value");
202
- const bytes = new Uint8Array(16);
203
- bytes[0] = unixTsMs / 2 ** 40;
204
- bytes[1] = unixTsMs / 2 ** 32;
205
- bytes[2] = unixTsMs / 2 ** 24;
206
- bytes[3] = unixTsMs / 2 ** 16;
207
- bytes[4] = unixTsMs / 256;
208
- bytes[5] = unixTsMs;
209
- bytes[6] = 112 | randA >>> 8;
210
- bytes[7] = randA;
211
- bytes[8] = 128 | randBHi >>> 24;
212
- bytes[9] = randBHi >>> 16;
213
- bytes[10] = randBHi >>> 8;
214
- bytes[11] = randBHi;
215
- bytes[12] = randBLo >>> 24;
216
- bytes[13] = randBLo >>> 16;
217
- bytes[14] = randBLo >>> 8;
218
- bytes[15] = randBLo;
219
- return new _UUID(bytes);
220
- }
221
- static parse(uuid) {
222
- let hex2;
223
- switch (uuid.length) {
224
- case 32:
225
- hex2 = /^[0-9a-f]{32}$/i.exec(uuid)?.[0];
226
- break;
227
- case 36:
228
- hex2 = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
229
- break;
230
- case 38:
231
- hex2 = /^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(uuid)?.slice(1, 6).join("");
232
- break;
233
- case 45:
234
- hex2 = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
235
- break;
236
- }
237
- if (hex2) {
238
- const inner = new Uint8Array(16);
239
- for (let i = 0; i < 16; i += 4) {
240
- const n = parseInt(hex2.substring(2 * i, 2 * i + 8), 16);
241
- inner[i + 0] = n >>> 24;
242
- inner[i + 1] = n >>> 16;
243
- inner[i + 2] = n >>> 8;
244
- inner[i + 3] = n;
245
- }
246
- return new _UUID(inner);
247
- }
248
- throw new SyntaxError("could not parse UUID string");
249
- }
250
- toString() {
251
- let text = "";
252
- for (let i = 0; i < this.bytes.length; i++) {
253
- text += DIGITS.charAt(this.bytes[i] >>> 4);
254
- text += DIGITS.charAt(15 & this.bytes[i]);
255
- if (3 === i || 5 === i || 7 === i || 9 === i) text += "-";
256
- }
257
- return text;
258
- }
259
- toHex() {
260
- let text = "";
261
- for (let i = 0; i < this.bytes.length; i++) {
262
- text += DIGITS.charAt(this.bytes[i] >>> 4);
263
- text += DIGITS.charAt(15 & this.bytes[i]);
264
- }
265
- return text;
266
- }
267
- toJSON() {
268
- return this.toString();
269
- }
270
- getVariant() {
271
- const n = this.bytes[8] >>> 4;
272
- if (n < 0) throw new Error("unreachable");
273
- if (n <= 7) return this.bytes.every((e) => 0 === e) ? "NIL" : "VAR_0";
274
- if (n <= 11) return "VAR_10";
275
- if (n <= 13) return "VAR_110";
276
- if (n <= 15) return this.bytes.every((e) => 255 === e) ? "MAX" : "VAR_RESERVED";
277
- else throw new Error("unreachable");
278
- }
279
- getVersion() {
280
- return "VAR_10" === this.getVariant() ? this.bytes[6] >>> 4 : void 0;
281
- }
282
- clone() {
283
- return new _UUID(this.bytes.slice(0));
284
- }
285
- equals(other) {
286
- return 0 === this.compareTo(other);
287
- }
288
- compareTo(other) {
289
- for (let i = 0; i < 16; i++) {
290
- const diff = this.bytes[i] - other.bytes[i];
291
- if (0 !== diff) return Math.sign(diff);
292
- }
293
- return 0;
294
- }
295
- };
296
- V7Generator = class {
297
- constructor(randomNumberGenerator) {
298
- this.timestamp = 0;
299
- this.counter = 0;
300
- this.random = randomNumberGenerator ?? getDefaultRandom();
301
- }
302
- generate() {
303
- return this.generateOrResetCore(Date.now(), 1e4);
304
- }
305
- generateOrAbort() {
306
- return this.generateOrAbortCore(Date.now(), 1e4);
307
- }
308
- generateOrResetCore(unixTsMs, rollbackAllowance) {
309
- let value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
310
- if (void 0 === value) {
311
- this.timestamp = 0;
312
- value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
313
- }
314
- return value;
315
- }
316
- generateOrAbortCore(unixTsMs, rollbackAllowance) {
317
- const MAX_COUNTER = 4398046511103;
318
- if (!Number.isInteger(unixTsMs) || unixTsMs < 1 || unixTsMs > 281474976710655) throw new RangeError("`unixTsMs` must be a 48-bit positive integer");
319
- if (rollbackAllowance < 0 || rollbackAllowance > 281474976710655) throw new RangeError("`rollbackAllowance` out of reasonable range");
320
- if (unixTsMs > this.timestamp) {
321
- this.timestamp = unixTsMs;
322
- this.resetCounter();
323
- } else {
324
- if (!(unixTsMs + rollbackAllowance >= this.timestamp)) return;
325
- this.counter++;
326
- if (this.counter > MAX_COUNTER) {
327
- this.timestamp++;
328
- this.resetCounter();
329
- }
330
- }
331
- return UUID.fromFieldsV7(this.timestamp, Math.trunc(this.counter / 2 ** 30), this.counter & 2 ** 30 - 1, this.random.nextUint32());
332
- }
333
- resetCounter() {
334
- this.counter = 1024 * this.random.nextUint32() + (1023 & this.random.nextUint32());
335
- }
336
- generateV4() {
337
- const bytes = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);
338
- bytes[6] = 64 | bytes[6] >>> 4;
339
- bytes[8] = 128 | bytes[8] >>> 2;
340
- return UUID.ofInner(bytes);
341
- }
342
- };
343
- getDefaultRandom = () => ({
344
- nextUint32: () => 65536 * Math.trunc(65536 * Math.random()) + Math.trunc(65536 * Math.random())
345
- });
346
- uuidv7 = () => uuidv7obj().toString();
347
- uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generate();
348
- }
349
- });
350
-
351
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/types.mjs
352
- var types_PostHogPersistedProperty, FeatureFlagError;
353
- var init_types = __esm({
354
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/types.mjs"() {
355
- types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
356
- PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
357
- PostHogPersistedProperty["DistinctId"] = "distinct_id";
358
- PostHogPersistedProperty["Props"] = "props";
359
- PostHogPersistedProperty["EnablePersonProcessing"] = "enable_person_processing";
360
- PostHogPersistedProperty["PersonMode"] = "person_mode";
361
- PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
362
- PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
363
- PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
364
- PostHogPersistedProperty["BootstrapFeatureFlagDetails"] = "bootstrap_feature_flag_details";
365
- PostHogPersistedProperty["BootstrapFeatureFlags"] = "bootstrap_feature_flags";
366
- PostHogPersistedProperty["BootstrapFeatureFlagPayloads"] = "bootstrap_feature_flag_payloads";
367
- PostHogPersistedProperty["OverrideFeatureFlags"] = "override_feature_flags";
368
- PostHogPersistedProperty["Queue"] = "queue";
369
- PostHogPersistedProperty["OptedOut"] = "opted_out";
370
- PostHogPersistedProperty["SessionId"] = "session_id";
371
- PostHogPersistedProperty["SessionStartTimestamp"] = "session_start_timestamp";
372
- PostHogPersistedProperty["SessionLastTimestamp"] = "session_timestamp";
373
- PostHogPersistedProperty["PersonProperties"] = "person_properties";
374
- PostHogPersistedProperty["GroupProperties"] = "group_properties";
375
- PostHogPersistedProperty["InstalledAppBuild"] = "installed_app_build";
376
- PostHogPersistedProperty["InstalledAppVersion"] = "installed_app_version";
377
- PostHogPersistedProperty["SessionReplay"] = "session_replay";
378
- PostHogPersistedProperty["SurveyLastSeenDate"] = "survey_last_seen_date";
379
- PostHogPersistedProperty["SurveysSeen"] = "surveys_seen";
380
- PostHogPersistedProperty["Surveys"] = "surveys";
381
- PostHogPersistedProperty["RemoteConfig"] = "remote_config";
382
- PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
383
- PostHogPersistedProperty["DeviceId"] = "device_id";
384
- return PostHogPersistedProperty;
385
- })({});
386
- FeatureFlagError = {
387
- ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
388
- FLAG_MISSING: "flag_missing",
389
- QUOTA_LIMITED: "quota_limited",
390
- TIMEOUT: "timeout",
391
- CONNECTION_ERROR: "connection_error",
392
- UNKNOWN_ERROR: "unknown_error",
393
- apiError: (status) => `api_error_${status}`
394
- };
395
- }
396
- });
397
-
398
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/surveys/validation.mjs
399
- var init_validation = __esm({
400
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
401
- init_types();
402
- }
403
- });
404
-
405
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
195
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bot-detection.mjs
406
196
  var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
407
197
  var init_bot_detection = __esm({
408
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
198
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
409
199
  DEFAULT_BLOCKED_UA_STRS = [
410
200
  "amazonbot",
411
201
  "amazonproductbot",
@@ -496,13 +286,60 @@ var init_bot_detection = __esm({
496
286
  }
497
287
  });
498
288
 
499
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
289
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/types.mjs
290
+ var types_PostHogPersistedProperty, FeatureFlagError;
291
+ var init_types = __esm({
292
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/types.mjs"() {
293
+ types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
294
+ PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
295
+ PostHogPersistedProperty["DistinctId"] = "distinct_id";
296
+ PostHogPersistedProperty["Props"] = "props";
297
+ PostHogPersistedProperty["EnablePersonProcessing"] = "enable_person_processing";
298
+ PostHogPersistedProperty["PersonMode"] = "person_mode";
299
+ PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
300
+ PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
301
+ PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
302
+ PostHogPersistedProperty["BootstrapFeatureFlagDetails"] = "bootstrap_feature_flag_details";
303
+ PostHogPersistedProperty["BootstrapFeatureFlags"] = "bootstrap_feature_flags";
304
+ PostHogPersistedProperty["BootstrapFeatureFlagPayloads"] = "bootstrap_feature_flag_payloads";
305
+ PostHogPersistedProperty["OverrideFeatureFlags"] = "override_feature_flags";
306
+ PostHogPersistedProperty["Queue"] = "queue";
307
+ PostHogPersistedProperty["OptedOut"] = "opted_out";
308
+ PostHogPersistedProperty["SessionId"] = "session_id";
309
+ PostHogPersistedProperty["SessionStartTimestamp"] = "session_start_timestamp";
310
+ PostHogPersistedProperty["SessionLastTimestamp"] = "session_timestamp";
311
+ PostHogPersistedProperty["PersonProperties"] = "person_properties";
312
+ PostHogPersistedProperty["GroupProperties"] = "group_properties";
313
+ PostHogPersistedProperty["InstalledAppBuild"] = "installed_app_build";
314
+ PostHogPersistedProperty["InstalledAppVersion"] = "installed_app_version";
315
+ PostHogPersistedProperty["SessionReplay"] = "session_replay";
316
+ PostHogPersistedProperty["SurveyLastSeenDate"] = "survey_last_seen_date";
317
+ PostHogPersistedProperty["SurveysSeen"] = "surveys_seen";
318
+ PostHogPersistedProperty["Surveys"] = "surveys";
319
+ PostHogPersistedProperty["RemoteConfig"] = "remote_config";
320
+ PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
321
+ PostHogPersistedProperty["DeviceId"] = "device_id";
322
+ return PostHogPersistedProperty;
323
+ })({});
324
+ FeatureFlagError = {
325
+ ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
326
+ FLAG_MISSING: "flag_missing",
327
+ QUOTA_LIMITED: "quota_limited",
328
+ TIMEOUT: "timeout",
329
+ CONNECTION_ERROR: "connection_error",
330
+ UNKNOWN_ERROR: "unknown_error",
331
+ apiError: (status) => `api_error_${status}`
332
+ };
333
+ }
334
+ });
335
+
336
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/string-utils.mjs
500
337
  var init_string_utils = __esm({
501
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
338
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
502
339
  }
503
340
  });
504
341
 
505
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
342
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/type-utils.mjs
506
343
  function isPrimitive(value) {
507
344
  return null === value || "object" != typeof value;
508
345
  }
@@ -527,7 +364,7 @@ function isInstanceOf(candidate, base) {
527
364
  }
528
365
  var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
529
366
  var init_type_utils = __esm({
530
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
367
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
531
368
  init_types();
532
369
  init_string_utils();
533
370
  nativeIsArray = Array.isArray;
@@ -546,7 +383,7 @@ var init_type_utils = __esm({
546
383
  }
547
384
  });
548
385
 
549
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
386
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/number-utils.mjs
550
387
  function clampToRange(value, min, max, logger, fallbackValue) {
551
388
  if (min > max) {
552
389
  logger.warn("min cannot be greater than max.");
@@ -564,15 +401,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
564
401
  return clampToRange(max, min, max, logger);
565
402
  }
566
403
  var init_number_utils = __esm({
567
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
404
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
568
405
  init_type_utils();
569
406
  }
570
407
  });
571
408
 
572
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
409
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
573
410
  var ONE_DAY_IN_MS, BucketedRateLimiter;
574
411
  var init_bucketed_rate_limiter = __esm({
575
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
412
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
576
413
  init_number_utils();
577
414
  ONE_DAY_IN_MS = 864e5;
578
415
  BucketedRateLimiter = class {
@@ -616,10 +453,174 @@ var init_bucketed_rate_limiter = __esm({
616
453
  }
617
454
  });
618
455
 
619
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
456
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
457
+ var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
458
+ var init_uuidv7 = __esm({
459
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
460
+ DIGITS = "0123456789abcdef";
461
+ UUID = class _UUID {
462
+ constructor(bytes) {
463
+ this.bytes = bytes;
464
+ }
465
+ static ofInner(bytes) {
466
+ if (16 === bytes.length) return new _UUID(bytes);
467
+ throw new TypeError("not 128-bit length");
468
+ }
469
+ static fromFieldsV7(unixTsMs, randA, randBHi, randBLo) {
470
+ if (!Number.isInteger(unixTsMs) || !Number.isInteger(randA) || !Number.isInteger(randBHi) || !Number.isInteger(randBLo) || unixTsMs < 0 || randA < 0 || randBHi < 0 || randBLo < 0 || unixTsMs > 281474976710655 || randA > 4095 || randBHi > 1073741823 || randBLo > 4294967295) throw new RangeError("invalid field value");
471
+ const bytes = new Uint8Array(16);
472
+ bytes[0] = unixTsMs / 2 ** 40;
473
+ bytes[1] = unixTsMs / 2 ** 32;
474
+ bytes[2] = unixTsMs / 2 ** 24;
475
+ bytes[3] = unixTsMs / 2 ** 16;
476
+ bytes[4] = unixTsMs / 256;
477
+ bytes[5] = unixTsMs;
478
+ bytes[6] = 112 | randA >>> 8;
479
+ bytes[7] = randA;
480
+ bytes[8] = 128 | randBHi >>> 24;
481
+ bytes[9] = randBHi >>> 16;
482
+ bytes[10] = randBHi >>> 8;
483
+ bytes[11] = randBHi;
484
+ bytes[12] = randBLo >>> 24;
485
+ bytes[13] = randBLo >>> 16;
486
+ bytes[14] = randBLo >>> 8;
487
+ bytes[15] = randBLo;
488
+ return new _UUID(bytes);
489
+ }
490
+ static parse(uuid) {
491
+ let hex2;
492
+ switch (uuid.length) {
493
+ case 32:
494
+ hex2 = /^[0-9a-f]{32}$/i.exec(uuid)?.[0];
495
+ break;
496
+ case 36:
497
+ hex2 = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
498
+ break;
499
+ case 38:
500
+ hex2 = /^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(uuid)?.slice(1, 6).join("");
501
+ break;
502
+ case 45:
503
+ hex2 = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
504
+ break;
505
+ }
506
+ if (hex2) {
507
+ const inner = new Uint8Array(16);
508
+ for (let i = 0; i < 16; i += 4) {
509
+ const n = parseInt(hex2.substring(2 * i, 2 * i + 8), 16);
510
+ inner[i + 0] = n >>> 24;
511
+ inner[i + 1] = n >>> 16;
512
+ inner[i + 2] = n >>> 8;
513
+ inner[i + 3] = n;
514
+ }
515
+ return new _UUID(inner);
516
+ }
517
+ throw new SyntaxError("could not parse UUID string");
518
+ }
519
+ toString() {
520
+ let text = "";
521
+ for (let i = 0; i < this.bytes.length; i++) {
522
+ text += DIGITS.charAt(this.bytes[i] >>> 4);
523
+ text += DIGITS.charAt(15 & this.bytes[i]);
524
+ if (3 === i || 5 === i || 7 === i || 9 === i) text += "-";
525
+ }
526
+ return text;
527
+ }
528
+ toHex() {
529
+ let text = "";
530
+ for (let i = 0; i < this.bytes.length; i++) {
531
+ text += DIGITS.charAt(this.bytes[i] >>> 4);
532
+ text += DIGITS.charAt(15 & this.bytes[i]);
533
+ }
534
+ return text;
535
+ }
536
+ toJSON() {
537
+ return this.toString();
538
+ }
539
+ getVariant() {
540
+ const n = this.bytes[8] >>> 4;
541
+ if (n < 0) throw new Error("unreachable");
542
+ if (n <= 7) return this.bytes.every((e) => 0 === e) ? "NIL" : "VAR_0";
543
+ if (n <= 11) return "VAR_10";
544
+ if (n <= 13) return "VAR_110";
545
+ if (n <= 15) return this.bytes.every((e) => 255 === e) ? "MAX" : "VAR_RESERVED";
546
+ else throw new Error("unreachable");
547
+ }
548
+ getVersion() {
549
+ return "VAR_10" === this.getVariant() ? this.bytes[6] >>> 4 : void 0;
550
+ }
551
+ clone() {
552
+ return new _UUID(this.bytes.slice(0));
553
+ }
554
+ equals(other) {
555
+ return 0 === this.compareTo(other);
556
+ }
557
+ compareTo(other) {
558
+ for (let i = 0; i < 16; i++) {
559
+ const diff = this.bytes[i] - other.bytes[i];
560
+ if (0 !== diff) return Math.sign(diff);
561
+ }
562
+ return 0;
563
+ }
564
+ };
565
+ V7Generator = class {
566
+ constructor(randomNumberGenerator) {
567
+ this.timestamp = 0;
568
+ this.counter = 0;
569
+ this.random = randomNumberGenerator ?? getDefaultRandom();
570
+ }
571
+ generate() {
572
+ return this.generateOrResetCore(Date.now(), 1e4);
573
+ }
574
+ generateOrAbort() {
575
+ return this.generateOrAbortCore(Date.now(), 1e4);
576
+ }
577
+ generateOrResetCore(unixTsMs, rollbackAllowance) {
578
+ let value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
579
+ if (void 0 === value) {
580
+ this.timestamp = 0;
581
+ value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
582
+ }
583
+ return value;
584
+ }
585
+ generateOrAbortCore(unixTsMs, rollbackAllowance) {
586
+ const MAX_COUNTER = 4398046511103;
587
+ if (!Number.isInteger(unixTsMs) || unixTsMs < 1 || unixTsMs > 281474976710655) throw new RangeError("`unixTsMs` must be a 48-bit positive integer");
588
+ if (rollbackAllowance < 0 || rollbackAllowance > 281474976710655) throw new RangeError("`rollbackAllowance` out of reasonable range");
589
+ if (unixTsMs > this.timestamp) {
590
+ this.timestamp = unixTsMs;
591
+ this.resetCounter();
592
+ } else {
593
+ if (!(unixTsMs + rollbackAllowance >= this.timestamp)) return;
594
+ this.counter++;
595
+ if (this.counter > MAX_COUNTER) {
596
+ this.timestamp++;
597
+ this.resetCounter();
598
+ }
599
+ }
600
+ return UUID.fromFieldsV7(this.timestamp, Math.trunc(this.counter / 2 ** 30), this.counter & 2 ** 30 - 1, this.random.nextUint32());
601
+ }
602
+ resetCounter() {
603
+ this.counter = 1024 * this.random.nextUint32() + (1023 & this.random.nextUint32());
604
+ }
605
+ generateV4() {
606
+ const bytes = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);
607
+ bytes[6] = 64 | bytes[6] >>> 4;
608
+ bytes[8] = 128 | bytes[8] >>> 2;
609
+ return UUID.ofInner(bytes);
610
+ }
611
+ };
612
+ getDefaultRandom = () => ({
613
+ nextUint32: () => 65536 * Math.trunc(65536 * Math.random()) + Math.trunc(65536 * Math.random())
614
+ });
615
+ uuidv7 = () => uuidv7obj().toString();
616
+ uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generate();
617
+ }
618
+ });
619
+
620
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/promise-queue.mjs
620
621
  var PromiseQueue;
621
622
  var init_promise_queue = __esm({
622
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
623
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
623
624
  init_uuidv7();
624
625
  PromiseQueue = class {
625
626
  add(promise) {
@@ -650,7 +651,7 @@ var init_promise_queue = __esm({
650
651
  }
651
652
  });
652
653
 
653
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/logger.mjs
654
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/logger.mjs
654
655
  function createConsole(consoleLike = console) {
655
656
  const lockedMethods = {
656
657
  log: consoleLike.log.bind(consoleLike),
@@ -665,7 +666,7 @@ function createLogger(prefix, maybeCall = passThrough) {
665
666
  }
666
667
  var _createLogger, passThrough;
667
668
  var init_logger = __esm({
668
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
669
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/logger.mjs"() {
669
670
  _createLogger = (prefix, maybeCall, consoleLike) => {
670
671
  function _log(level, ...args) {
671
672
  maybeCall(() => {
@@ -694,10 +695,10 @@ var init_logger = __esm({
694
695
  }
695
696
  });
696
697
 
697
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
698
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
698
699
  var MOBILE, TABLET, GENERIC;
699
700
  var init_user_agent_utils = __esm({
700
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
701
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
701
702
  init_string_utils();
702
703
  init_type_utils();
703
704
  MOBILE = "Mobile";
@@ -708,14 +709,7 @@ var init_user_agent_utils = __esm({
708
709
  }
709
710
  });
710
711
 
711
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/index.mjs
712
- function assert(truthyValue, message2) {
713
- if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message2);
714
- }
715
- function isEmpty(truthyValue) {
716
- if (0 === truthyValue.trim().length) return true;
717
- return false;
718
- }
712
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/index.mjs
719
713
  function removeTrailingSlash(url) {
720
714
  return url?.replace(/\/+$/, "");
721
715
  }
@@ -752,7 +746,7 @@ function allSettled(promises) {
752
746
  }
753
747
  var STRING_FORMAT, isError;
754
748
  var init_utils = __esm({
755
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
749
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/index.mjs"() {
756
750
  init_bot_detection();
757
751
  init_bucketed_rate_limiter();
758
752
  init_number_utils();
@@ -766,10 +760,52 @@ var init_utils = __esm({
766
760
  }
767
761
  });
768
762
 
769
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/eventemitter.mjs
763
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/logs/logs-utils.mjs
764
+ var OTLP_SEVERITY_MAP;
765
+ var init_logs_utils = __esm({
766
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/logs/logs-utils.mjs"() {
767
+ init_utils();
768
+ OTLP_SEVERITY_MAP = {
769
+ trace: {
770
+ text: "TRACE",
771
+ number: 1
772
+ },
773
+ debug: {
774
+ text: "DEBUG",
775
+ number: 5
776
+ },
777
+ info: {
778
+ text: "INFO",
779
+ number: 9
780
+ },
781
+ warn: {
782
+ text: "WARN",
783
+ number: 13
784
+ },
785
+ error: {
786
+ text: "ERROR",
787
+ number: 17
788
+ },
789
+ fatal: {
790
+ text: "FATAL",
791
+ number: 21
792
+ }
793
+ };
794
+ OTLP_SEVERITY_MAP.info;
795
+ }
796
+ });
797
+
798
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/surveys/validation.mjs
799
+ var init_validation = __esm({
800
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
801
+ init_types();
802
+ }
803
+ });
804
+
805
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/eventemitter.mjs
770
806
  var SimpleEventEmitter;
771
807
  var init_eventemitter = __esm({
772
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
808
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/eventemitter.mjs"() {
773
809
  SimpleEventEmitter = class {
774
810
  constructor() {
775
811
  this.events = {};
@@ -790,7 +826,7 @@ var init_eventemitter = __esm({
790
826
  }
791
827
  });
792
828
 
793
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
829
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
794
830
  async function logFlushError(err) {
795
831
  if (err instanceof PostHogFetchHttpError) {
796
832
  let text = "";
@@ -810,7 +846,7 @@ function isPostHogFetchContentTooLargeError(err) {
810
846
  }
811
847
  var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
812
848
  var init_posthog_core_stateless = __esm({
813
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
849
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
814
850
  init_eventemitter();
815
851
  init_featureFlagUtils();
816
852
  init_gzip();
@@ -845,9 +881,13 @@ var init_posthog_core_stateless = __esm({
845
881
  this.promiseQueue = new PromiseQueue();
846
882
  this._events = new SimpleEventEmitter();
847
883
  this._isInitialized = false;
848
- assert(apiKey, "You must pass your PostHog project's api key.");
849
- this.apiKey = apiKey;
850
- this.host = removeTrailingSlash(options.host || "https://us.i.posthog.com");
884
+ const normalizedApiKey = "string" == typeof apiKey ? apiKey.trim() : "";
885
+ const normalizedHost = "string" == typeof options.host ? options.host.trim() : "";
886
+ const missingApiKey = !normalizedApiKey;
887
+ this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
888
+ if (missingApiKey) this._logger.error("You must pass your PostHog project's api key. The client will be disabled.");
889
+ this.apiKey = normalizedApiKey;
890
+ this.host = removeTrailingSlash(normalizedHost || "https://us.i.posthog.com");
851
891
  this.flushAt = options.flushAt ? Math.max(options.flushAt, 1) : 20;
852
892
  this.maxBatchSize = Math.max(this.flushAt, options.maxBatchSize ?? 100);
853
893
  this.maxQueueSize = Math.max(this.flushAt, options.maxQueueSize ?? 1e3);
@@ -864,11 +904,10 @@ var init_posthog_core_stateless = __esm({
864
904
  this.featureFlagsRequestTimeoutMs = options.featureFlagsRequestTimeoutMs ?? 3e3;
865
905
  this.remoteConfigRequestTimeoutMs = options.remoteConfigRequestTimeoutMs ?? 3e3;
866
906
  this.disableGeoip = options.disableGeoip ?? true;
867
- this.disabled = options.disabled ?? false;
907
+ this.disabled = (options.disabled ?? false) || missingApiKey;
868
908
  this.historicalMigration = options?.historicalMigration ?? false;
869
909
  this._initPromise = Promise.resolve();
870
910
  this._isInitialized = true;
871
- this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
872
911
  this.evaluationContexts = options?.evaluationContexts ?? options?.evaluationEnvironments;
873
912
  if (options?.evaluationEnvironments && !options?.evaluationContexts) this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version.");
874
913
  this.disableCompression = !isGzipSupported() || (options?.disableCompression ?? false);
@@ -1045,6 +1084,7 @@ var init_posthog_core_stateless = __esm({
1045
1084
  group_properties: groupProperties,
1046
1085
  ...extraPayload
1047
1086
  };
1087
+ if (personProperties.$device_id) requestData.$device_id = personProperties.$device_id;
1048
1088
  if (this.evaluationContexts && this.evaluationContexts.length > 0) requestData.evaluation_contexts = this.evaluationContexts;
1049
1089
  const fetchOptions = {
1050
1090
  method: "POST",
@@ -1471,9 +1511,9 @@ var init_posthog_core_stateless = __esm({
1471
1511
  }
1472
1512
  });
1473
1513
 
1474
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core.mjs
1514
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core.mjs
1475
1515
  var init_posthog_core = __esm({
1476
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1516
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1477
1517
  init_featureFlagUtils();
1478
1518
  init_types();
1479
1519
  init_posthog_core_stateless();
@@ -1482,7 +1522,14 @@ var init_posthog_core = __esm({
1482
1522
  }
1483
1523
  });
1484
1524
 
1485
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1525
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/tracing-headers.mjs
1526
+ var init_tracing_headers = __esm({
1527
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/tracing-headers.mjs"() {
1528
+ init_type_utils();
1529
+ }
1530
+ });
1531
+
1532
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1486
1533
  function getFilenameToChunkIdMap(stackParser) {
1487
1534
  const chunkIdMap = globalThis._posthogChunkIds;
1488
1535
  if (!chunkIdMap) return;
@@ -1515,14 +1562,14 @@ function getFilenameToChunkIdMap(stackParser) {
1515
1562
  }
1516
1563
  var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
1517
1564
  var init_chunk_ids = __esm({
1518
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1565
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1519
1566
  }
1520
1567
  });
1521
1568
 
1522
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1569
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1523
1570
  var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
1524
1571
  var init_error_properties_builder = __esm({
1525
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1572
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1526
1573
  init_utils();
1527
1574
  init_chunk_ids();
1528
1575
  MAX_CAUSE_RECURSION = 4;
@@ -1637,7 +1684,7 @@ var init_error_properties_builder = __esm({
1637
1684
  }
1638
1685
  });
1639
1686
 
1640
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1687
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1641
1688
  function createFrame(platform, filename, func, lineno, colno) {
1642
1689
  const frame = {
1643
1690
  platform,
@@ -1651,16 +1698,16 @@ function createFrame(platform, filename, func, lineno, colno) {
1651
1698
  }
1652
1699
  var UNKNOWN_FUNCTION;
1653
1700
  var init_base = __esm({
1654
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1701
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1655
1702
  init_utils();
1656
1703
  UNKNOWN_FUNCTION = "?";
1657
1704
  }
1658
1705
  });
1659
1706
 
1660
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1707
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1661
1708
  var extractSafariExtensionDetails;
1662
1709
  var init_safari = __esm({
1663
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1710
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1664
1711
  init_base();
1665
1712
  extractSafariExtensionDetails = (func, filename) => {
1666
1713
  const isSafariExtension = -1 !== func.indexOf("safari-extension");
@@ -1676,10 +1723,10 @@ var init_safari = __esm({
1676
1723
  }
1677
1724
  });
1678
1725
 
1679
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1726
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1680
1727
  var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
1681
1728
  var init_chrome = __esm({
1682
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1729
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1683
1730
  init_base();
1684
1731
  init_safari();
1685
1732
  chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
@@ -1709,10 +1756,10 @@ var init_chrome = __esm({
1709
1756
  }
1710
1757
  });
1711
1758
 
1712
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1759
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1713
1760
  var geckoREgex, geckoEvalRegex, geckoStackLineParser;
1714
1761
  var init_gecko = __esm({
1715
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1762
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1716
1763
  init_base();
1717
1764
  init_safari();
1718
1765
  geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
@@ -1739,10 +1786,10 @@ var init_gecko = __esm({
1739
1786
  }
1740
1787
  });
1741
1788
 
1742
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1789
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1743
1790
  var winjsRegex, winjsStackLineParser;
1744
1791
  var init_winjs = __esm({
1745
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1792
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1746
1793
  init_base();
1747
1794
  winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
1748
1795
  winjsStackLineParser = (line, platform) => {
@@ -1752,10 +1799,10 @@ var init_winjs = __esm({
1752
1799
  }
1753
1800
  });
1754
1801
 
1755
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1802
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1756
1803
  var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
1757
1804
  var init_opera = __esm({
1758
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1805
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1759
1806
  init_base();
1760
1807
  opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
1761
1808
  opera10StackLineParser = (line, platform) => {
@@ -1770,7 +1817,7 @@ var init_opera = __esm({
1770
1817
  }
1771
1818
  });
1772
1819
 
1773
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1820
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1774
1821
  function filenameIsInApp(filename, isNative = false) {
1775
1822
  const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
1776
1823
  return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
@@ -1780,7 +1827,7 @@ function _parseIntOrUndefined(input) {
1780
1827
  }
1781
1828
  var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
1782
1829
  var init_node = __esm({
1783
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1830
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1784
1831
  init_base();
1785
1832
  FILENAME_MATCH = /^\s*[-]{4,}$/;
1786
1833
  FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
@@ -1841,7 +1888,7 @@ var init_node = __esm({
1841
1888
  }
1842
1889
  });
1843
1890
 
1844
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1891
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1845
1892
  function reverseAndStripFrames(stack) {
1846
1893
  if (!stack.length) return [];
1847
1894
  const localStack = Array.from(stack);
@@ -1882,7 +1929,7 @@ function createStackParser(platform, ...parsers) {
1882
1929
  }
1883
1930
  var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
1884
1931
  var init_parsers = __esm({
1885
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1932
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1886
1933
  init_base();
1887
1934
  init_chrome();
1888
1935
  init_gecko();
@@ -1894,10 +1941,10 @@ var init_parsers = __esm({
1894
1941
  }
1895
1942
  });
1896
1943
 
1897
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1944
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1898
1945
  var DOMExceptionCoercer;
1899
1946
  var init_dom_exception_coercer = __esm({
1900
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1947
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1901
1948
  init_utils();
1902
1949
  DOMExceptionCoercer = class {
1903
1950
  match(err) {
@@ -1931,10 +1978,10 @@ var init_dom_exception_coercer = __esm({
1931
1978
  }
1932
1979
  });
1933
1980
 
1934
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1981
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1935
1982
  var ErrorCoercer;
1936
1983
  var init_error_coercer = __esm({
1937
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1984
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1938
1985
  init_utils();
1939
1986
  ErrorCoercer = class {
1940
1987
  match(err) {
@@ -1964,10 +2011,10 @@ var init_error_coercer = __esm({
1964
2011
  }
1965
2012
  });
1966
2013
 
1967
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
2014
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1968
2015
  var ErrorEventCoercer;
1969
2016
  var init_error_event_coercer = __esm({
1970
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
2017
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1971
2018
  init_utils();
1972
2019
  ErrorEventCoercer = class {
1973
2020
  constructor() {
@@ -1989,10 +2036,10 @@ var init_error_event_coercer = __esm({
1989
2036
  }
1990
2037
  });
1991
2038
 
1992
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
2039
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1993
2040
  var ERROR_TYPES_PATTERN, StringCoercer;
1994
2041
  var init_string_coercer = __esm({
1995
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
2042
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1996
2043
  ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
1997
2044
  StringCoercer = class {
1998
2045
  match(input) {
@@ -2024,10 +2071,10 @@ var init_string_coercer = __esm({
2024
2071
  }
2025
2072
  });
2026
2073
 
2027
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
2074
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/types.mjs
2028
2075
  var severityLevels;
2029
2076
  var init_types2 = __esm({
2030
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2077
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2031
2078
  severityLevels = [
2032
2079
  "fatal",
2033
2080
  "error",
@@ -2039,7 +2086,7 @@ var init_types2 = __esm({
2039
2086
  }
2040
2087
  });
2041
2088
 
2042
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2089
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2043
2090
  function extractExceptionKeysForMessage(err, maxLength = 40) {
2044
2091
  const keys = Object.keys(err);
2045
2092
  keys.sort();
@@ -2054,14 +2101,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
2054
2101
  return "";
2055
2102
  }
2056
2103
  var init_utils2 = __esm({
2057
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2104
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2058
2105
  }
2059
2106
  });
2060
2107
 
2061
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2108
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2062
2109
  var ObjectCoercer;
2063
2110
  var init_object_coercer = __esm({
2064
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2111
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2065
2112
  init_utils();
2066
2113
  init_types2();
2067
2114
  init_utils2();
@@ -2115,10 +2162,10 @@ var init_object_coercer = __esm({
2115
2162
  }
2116
2163
  });
2117
2164
 
2118
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2165
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2119
2166
  var EventCoercer;
2120
2167
  var init_event_coercer = __esm({
2121
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2168
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2122
2169
  init_utils();
2123
2170
  init_utils2();
2124
2171
  EventCoercer = class {
@@ -2138,10 +2185,10 @@ var init_event_coercer = __esm({
2138
2185
  }
2139
2186
  });
2140
2187
 
2141
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2188
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2142
2189
  var PrimitiveCoercer;
2143
2190
  var init_primitive_coercer = __esm({
2144
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2191
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2145
2192
  init_utils();
2146
2193
  PrimitiveCoercer = class {
2147
2194
  match(candidate) {
@@ -2159,10 +2206,10 @@ var init_primitive_coercer = __esm({
2159
2206
  }
2160
2207
  });
2161
2208
 
2162
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2209
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2163
2210
  var PromiseRejectionEventCoercer;
2164
2211
  var init_promise_rejection_event = __esm({
2165
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2212
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2166
2213
  init_utils();
2167
2214
  PromiseRejectionEventCoercer = class {
2168
2215
  match(err) {
@@ -2199,9 +2246,9 @@ var init_promise_rejection_event = __esm({
2199
2246
  }
2200
2247
  });
2201
2248
 
2202
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2249
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2203
2250
  var init_coercers = __esm({
2204
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2251
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2205
2252
  init_dom_exception_coercer();
2206
2253
  init_error_coercer();
2207
2254
  init_error_event_coercer();
@@ -2213,10 +2260,10 @@ var init_coercers = __esm({
2213
2260
  }
2214
2261
  });
2215
2262
 
2216
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2263
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2217
2264
  var ReduceableCache;
2218
2265
  var init_utils3 = __esm({
2219
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2266
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2220
2267
  ReduceableCache = class {
2221
2268
  constructor(_maxSize) {
2222
2269
  this._maxSize = _maxSize;
@@ -2242,14 +2289,161 @@ var init_utils3 = __esm({
2242
2289
  }
2243
2290
  });
2244
2291
 
2245
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
2292
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs
2293
+ function resolveExceptionStepsConfig(config) {
2294
+ if (!config) return {
2295
+ ...DEFAULT_EXCEPTION_STEPS_CONFIG
2296
+ };
2297
+ return {
2298
+ enabled: config.enabled ?? DEFAULT_EXCEPTION_STEPS_CONFIG.enabled,
2299
+ max_bytes: normalizePositiveInteger(config.max_bytes, DEFAULT_EXCEPTION_STEPS_CONFIG.max_bytes)
2300
+ };
2301
+ }
2302
+ function stripReservedExceptionStepFields(properties) {
2303
+ if (!properties) return {
2304
+ sanitizedProperties: {},
2305
+ droppedKeys: []
2306
+ };
2307
+ const droppedKeys = [];
2308
+ const sanitizedProperties = Object.keys(properties).reduce((acc, key) => {
2309
+ if (RESERVED_EXCEPTION_STEP_KEYS.has(key)) {
2310
+ droppedKeys.push(key);
2311
+ return acc;
2312
+ }
2313
+ acc[key] = properties[key];
2314
+ return acc;
2315
+ }, {});
2316
+ return {
2317
+ sanitizedProperties,
2318
+ droppedKeys
2319
+ };
2320
+ }
2321
+ function normalizePositiveInteger(input, fallback) {
2322
+ if (!isNumber(input) || input === 1 / 0 || input === -1 / 0) return fallback;
2323
+ const normalized = Math.floor(input);
2324
+ if (normalized < 0) return fallback;
2325
+ return normalized;
2326
+ }
2327
+ function normalizeAndSerializeStep(step) {
2328
+ const json = safeStringify(step);
2329
+ if (!json) return;
2330
+ try {
2331
+ const parsed = JSON.parse(json);
2332
+ if (!isObject(parsed)) return;
2333
+ const parsedStep = parsed;
2334
+ const message2 = parsedStep[EXCEPTION_STEP_INTERNAL_FIELDS.MESSAGE];
2335
+ const timestamp = parsedStep[EXCEPTION_STEP_INTERNAL_FIELDS.TIMESTAMP];
2336
+ if (!isString(message2) || 0 === message2.trim().length) return;
2337
+ if (!isString(timestamp) && !isNumber(timestamp)) return;
2338
+ return {
2339
+ step: parsedStep,
2340
+ json
2341
+ };
2342
+ } catch {
2343
+ return;
2344
+ }
2345
+ }
2346
+ function safeStringify(value) {
2347
+ const seen = /* @__PURE__ */ new WeakSet();
2348
+ try {
2349
+ return JSON.stringify(value, (_key, replacementValue) => {
2350
+ if ("bigint" == typeof replacementValue) return replacementValue.toString();
2351
+ if ("function" == typeof replacementValue || "symbol" == typeof replacementValue) return;
2352
+ if (replacementValue instanceof Date) return replacementValue.toISOString();
2353
+ if (replacementValue instanceof Error) return {
2354
+ name: replacementValue.name,
2355
+ message: replacementValue.message,
2356
+ stack: replacementValue.stack
2357
+ };
2358
+ if (replacementValue && "object" == typeof replacementValue) {
2359
+ if (seen.has(replacementValue)) return "[Circular]";
2360
+ seen.add(replacementValue);
2361
+ }
2362
+ return replacementValue;
2363
+ });
2364
+ } catch {
2365
+ return;
2366
+ }
2367
+ }
2368
+ function getUtf8ByteLength(value) {
2369
+ if ("undefined" != typeof TextEncoder) return new TextEncoder().encode(value).length;
2370
+ const encoded = encodeURIComponent(value);
2371
+ let byteLength = 0;
2372
+ for (let i = 0; i < encoded.length; i++) if ("%" === encoded[i]) {
2373
+ byteLength += 1;
2374
+ i += 2;
2375
+ } else byteLength += 1;
2376
+ return byteLength;
2377
+ }
2378
+ var EXCEPTION_STEP_INTERNAL_FIELDS, RESERVED_EXCEPTION_STEP_KEYS, DEFAULT_EXCEPTION_STEPS_CONFIG, ExceptionStepsBuffer;
2379
+ var init_exception_steps = __esm({
2380
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs"() {
2381
+ init_utils();
2382
+ EXCEPTION_STEP_INTERNAL_FIELDS = {
2383
+ MESSAGE: "$message",
2384
+ TIMESTAMP: "$timestamp"
2385
+ };
2386
+ RESERVED_EXCEPTION_STEP_KEYS = /* @__PURE__ */ new Set([
2387
+ EXCEPTION_STEP_INTERNAL_FIELDS.MESSAGE,
2388
+ EXCEPTION_STEP_INTERNAL_FIELDS.TIMESTAMP
2389
+ ]);
2390
+ DEFAULT_EXCEPTION_STEPS_CONFIG = {
2391
+ enabled: true,
2392
+ max_bytes: 32768
2393
+ };
2394
+ ExceptionStepsBuffer = class {
2395
+ constructor(config) {
2396
+ this._entries = [];
2397
+ this._totalBytes = 0;
2398
+ this._config = resolveExceptionStepsConfig(config);
2399
+ }
2400
+ setConfig(config) {
2401
+ this._config = resolveExceptionStepsConfig(config);
2402
+ this._trimToMaxBytes();
2403
+ }
2404
+ add(step) {
2405
+ const serialized = normalizeAndSerializeStep(step);
2406
+ if (!serialized) return;
2407
+ const bytes = getUtf8ByteLength(serialized.json);
2408
+ if (bytes > this._config.max_bytes) return;
2409
+ this._entries.push({
2410
+ step: serialized.step,
2411
+ bytes
2412
+ });
2413
+ this._totalBytes += bytes;
2414
+ this._trimToMaxBytes();
2415
+ }
2416
+ getAttachable() {
2417
+ return this._entries.map((e) => e.step);
2418
+ }
2419
+ clear() {
2420
+ this._entries = [];
2421
+ this._totalBytes = 0;
2422
+ }
2423
+ size() {
2424
+ return this._entries.length;
2425
+ }
2426
+ _trimToMaxBytes() {
2427
+ while (this._totalBytes > this._config.max_bytes && this._entries.length > 0) {
2428
+ const evicted = this._entries.shift();
2429
+ if (evicted) this._totalBytes -= evicted.bytes;
2430
+ }
2431
+ }
2432
+ };
2433
+ }
2434
+ });
2435
+
2436
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/index.mjs
2246
2437
  var error_tracking_exports = {};
2247
2438
  __export(error_tracking_exports, {
2439
+ DEFAULT_EXCEPTION_STEPS_CONFIG: () => DEFAULT_EXCEPTION_STEPS_CONFIG,
2248
2440
  DOMExceptionCoercer: () => DOMExceptionCoercer,
2441
+ EXCEPTION_STEP_INTERNAL_FIELDS: () => EXCEPTION_STEP_INTERNAL_FIELDS,
2249
2442
  ErrorCoercer: () => ErrorCoercer,
2250
2443
  ErrorEventCoercer: () => ErrorEventCoercer,
2251
2444
  ErrorPropertiesBuilder: () => ErrorPropertiesBuilder,
2252
2445
  EventCoercer: () => EventCoercer,
2446
+ ExceptionStepsBuffer: () => ExceptionStepsBuffer,
2253
2447
  ObjectCoercer: () => ObjectCoercer,
2254
2448
  PrimitiveCoercer: () => PrimitiveCoercer,
2255
2449
  PromiseRejectionEventCoercer: () => PromiseRejectionEventCoercer,
@@ -2259,31 +2453,37 @@ __export(error_tracking_exports, {
2259
2453
  createDefaultStackParser: () => createDefaultStackParser,
2260
2454
  createStackParser: () => createStackParser,
2261
2455
  geckoStackLineParser: () => geckoStackLineParser,
2456
+ getUtf8ByteLength: () => getUtf8ByteLength,
2262
2457
  nodeStackLineParser: () => nodeStackLineParser,
2263
2458
  opera10StackLineParser: () => opera10StackLineParser,
2264
2459
  opera11StackLineParser: () => opera11StackLineParser,
2460
+ resolveExceptionStepsConfig: () => resolveExceptionStepsConfig,
2265
2461
  reverseAndStripFrames: () => reverseAndStripFrames,
2462
+ stripReservedExceptionStepFields: () => stripReservedExceptionStepFields,
2266
2463
  winjsStackLineParser: () => winjsStackLineParser
2267
2464
  });
2268
2465
  var init_error_tracking = __esm({
2269
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2466
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2270
2467
  init_error_properties_builder();
2271
2468
  init_parsers();
2272
2469
  init_coercers();
2273
2470
  init_utils3();
2471
+ init_exception_steps();
2274
2472
  }
2275
2473
  });
2276
2474
 
2277
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/index.mjs
2475
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/index.mjs
2278
2476
  var init_dist = __esm({
2279
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/index.mjs"() {
2477
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/index.mjs"() {
2280
2478
  init_featureFlagUtils();
2281
2479
  init_gzip();
2480
+ init_logs_utils();
2282
2481
  init_uuidv7();
2283
2482
  init_validation();
2284
2483
  init_utils();
2285
2484
  init_posthog_core();
2286
2485
  init_posthog_core_stateless();
2486
+ init_tracing_headers();
2287
2487
  init_types();
2288
2488
  init_error_tracking();
2289
2489
  }
@@ -2469,7 +2669,7 @@ function snipLine(line, colno) {
2469
2669
  }
2470
2670
  var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
2471
2671
  var init_context_lines_node = __esm({
2472
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2672
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2473
2673
  init_dist();
2474
2674
  LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
2475
2675
  LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
@@ -2478,8 +2678,23 @@ var init_context_lines_node = __esm({
2478
2678
  MAX_CONTEXTLINES_LINENO = 1e4;
2479
2679
  }
2480
2680
  });
2681
+ function createRelativePathModifier(basePath = process.cwd()) {
2682
+ const isWindows = "\\" === sep;
2683
+ const toUnix = (p) => isWindows ? p.replace(/\\/g, "/") : p;
2684
+ const normalizedBase = toUnix(basePath);
2685
+ return async (frames) => {
2686
+ for (const frame of frames) if (!(!frame.filename || frame.filename.startsWith("node:") || frame.filename.startsWith("data:"))) {
2687
+ if (isAbsolute(frame.filename)) frame.filename = toUnix(relative(normalizedBase, toUnix(frame.filename)));
2688
+ }
2689
+ return frames;
2690
+ };
2691
+ }
2692
+ var init_relative_path_node = __esm({
2693
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs"() {
2694
+ }
2695
+ });
2481
2696
 
2482
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2697
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2483
2698
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
2484
2699
  let calledFatalError = false;
2485
2700
  return Object.assign((error) => {
@@ -2511,14 +2726,14 @@ function addUnhandledRejectionListener(captureFn) {
2511
2726
  }));
2512
2727
  }
2513
2728
  var init_autocapture = __esm({
2514
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2729
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2515
2730
  }
2516
2731
  });
2517
2732
 
2518
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2733
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2519
2734
  var SHUTDOWN_TIMEOUT, ErrorTracking;
2520
2735
  var init_error_tracking2 = __esm({
2521
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2736
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2522
2737
  init_autocapture();
2523
2738
  init_dist();
2524
2739
  SHUTDOWN_TIMEOUT = 2e3;
@@ -2589,18 +2804,18 @@ var init_error_tracking2 = __esm({
2589
2804
  }
2590
2805
  });
2591
2806
 
2592
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
2807
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
2593
2808
  var version;
2594
2809
  var init_version = __esm({
2595
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
2596
- version = "5.29.1";
2810
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
2811
+ version = "5.30.4";
2597
2812
  }
2598
2813
  });
2599
2814
 
2600
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
2815
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
2601
2816
  var FeatureFlagError2;
2602
2817
  var init_types3 = __esm({
2603
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
2818
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
2604
2819
  FeatureFlagError2 = {
2605
2820
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
2606
2821
  FLAG_MISSING: "flag_missing",
@@ -2610,7 +2825,7 @@ var init_types3 = __esm({
2610
2825
  }
2611
2826
  });
2612
2827
 
2613
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2828
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2614
2829
  async function hashSHA1(text) {
2615
2830
  const subtle = globalThis.crypto?.subtle;
2616
2831
  if (!subtle) throw new Error("SubtleCrypto API not available");
@@ -2619,11 +2834,11 @@ async function hashSHA1(text) {
2619
2834
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
2620
2835
  }
2621
2836
  var init_crypto = __esm({
2622
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2837
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2623
2838
  }
2624
2839
  });
2625
2840
 
2626
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2841
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2627
2842
  async function _hash(key, bucketingValue, salt = "") {
2628
2843
  const hashString = await hashSHA1(`${key}.${bucketingValue}${salt}`);
2629
2844
  return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
@@ -2939,7 +3154,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
2939
3154
  }
2940
3155
  var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
2941
3156
  var init_feature_flags = __esm({
2942
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
3157
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2943
3158
  init_dist();
2944
3159
  init_crypto();
2945
3160
  SIXTY_SECONDS = 6e4;
@@ -3358,7 +3573,7 @@ var init_feature_flags = __esm({
3358
3573
  };
3359
3574
  }
3360
3575
  _requestFeatureFlagDefinitions() {
3361
- const url = `${this.host}/api/feature_flag/local_evaluation?token=${this.projectApiKey}&send_cohorts`;
3576
+ const url = `${this.host}/flags/definitions?token=${this.projectApiKey}&send_cohorts`;
3362
3577
  const options = this.getPersonalApiKeyRequestOptions("GET", this.flagsEtag);
3363
3578
  let abortTimeout = null;
3364
3579
  if (this.timeout && "number" == typeof this.timeout) {
@@ -3391,10 +3606,10 @@ var init_feature_flags = __esm({
3391
3606
  }
3392
3607
  });
3393
3608
 
3394
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
3609
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
3395
3610
  var PostHogMemoryStorage;
3396
3611
  var init_storage_memory = __esm({
3397
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3612
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3398
3613
  PostHogMemoryStorage = class {
3399
3614
  getProperty(key) {
3400
3615
  return this._memoryStorage[key];
@@ -3409,10 +3624,21 @@ var init_storage_memory = __esm({
3409
3624
  }
3410
3625
  });
3411
3626
 
3412
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
3413
- var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, WAITUNTIL_DEBOUNCE_MS, WAITUNTIL_MAX_WAIT_MS, PostHogBackendClient;
3627
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
3628
+ function normalizeApiKey(value) {
3629
+ return "string" == typeof value ? value.trim() : "";
3630
+ }
3631
+ function normalizePersonalApiKey(value) {
3632
+ const normalizedValue = "string" == typeof value ? value.trim() : "";
3633
+ return normalizedValue || void 0;
3634
+ }
3635
+ function normalizeHost(value) {
3636
+ const normalizedValue = "string" == typeof value ? value.trim() : "";
3637
+ return normalizedValue || DEFAULT_NODE_HOST;
3638
+ }
3639
+ var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, WAITUNTIL_DEBOUNCE_MS, WAITUNTIL_MAX_WAIT_MS, DEFAULT_NODE_HOST, PostHogBackendClient;
3414
3640
  var init_client = __esm({
3415
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
3641
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
3416
3642
  init_version();
3417
3643
  init_dist();
3418
3644
  init_types3();
@@ -3424,24 +3650,31 @@ var init_client = __esm({
3424
3650
  MAX_CACHE_SIZE = 5e4;
3425
3651
  WAITUNTIL_DEBOUNCE_MS = 50;
3426
3652
  WAITUNTIL_MAX_WAIT_MS = 500;
3653
+ DEFAULT_NODE_HOST = "https://us.i.posthog.com";
3427
3654
  PostHogBackendClient = class extends PostHogCoreStateless {
3428
3655
  constructor(apiKey, options = {}) {
3429
- super(apiKey, options), this._memoryStorage = new PostHogMemoryStorage();
3430
- this.options = options;
3656
+ const normalizedApiKey = normalizeApiKey(apiKey);
3657
+ const normalizedOptions = {
3658
+ ...options,
3659
+ host: normalizeHost(options.host),
3660
+ personalApiKey: normalizePersonalApiKey(options.personalApiKey)
3661
+ };
3662
+ super(normalizedApiKey, normalizedOptions), this._memoryStorage = new PostHogMemoryStorage();
3663
+ this.options = normalizedOptions;
3431
3664
  this.context = this.initializeContext();
3432
- this.options.featureFlagsPollingInterval = "number" == typeof options.featureFlagsPollingInterval ? Math.max(options.featureFlagsPollingInterval, MINIMUM_POLLING_INTERVAL) : THIRTY_SECONDS;
3433
- if ("number" == typeof options.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(options.waitUntilDebounceMs, 0);
3434
- if ("number" == typeof options.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(options.waitUntilMaxWaitMs, 0);
3435
- if (options.personalApiKey) {
3436
- if (options.personalApiKey.includes("phc_")) throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');
3437
- const shouldEnableLocalEvaluation = false !== options.enableLocalEvaluation;
3665
+ this.options.featureFlagsPollingInterval = "number" == typeof normalizedOptions.featureFlagsPollingInterval ? Math.max(normalizedOptions.featureFlagsPollingInterval, MINIMUM_POLLING_INTERVAL) : THIRTY_SECONDS;
3666
+ if ("number" == typeof normalizedOptions.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(normalizedOptions.waitUntilDebounceMs, 0);
3667
+ if ("number" == typeof normalizedOptions.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(normalizedOptions.waitUntilMaxWaitMs, 0);
3668
+ if (normalizedOptions.personalApiKey) {
3669
+ if (normalizedOptions.personalApiKey.includes("phc_")) throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');
3670
+ const shouldEnableLocalEvaluation = false !== normalizedOptions.enableLocalEvaluation;
3438
3671
  if (shouldEnableLocalEvaluation) this.featureFlagsPoller = new FeatureFlagsPoller({
3439
3672
  pollingInterval: this.options.featureFlagsPollingInterval,
3440
- personalApiKey: options.personalApiKey,
3441
- projectApiKey: apiKey,
3442
- timeout: options.requestTimeout ?? 1e4,
3673
+ personalApiKey: normalizedOptions.personalApiKey,
3674
+ projectApiKey: normalizedApiKey,
3675
+ timeout: normalizedOptions.requestTimeout ?? 1e4,
3443
3676
  host: this.host,
3444
- fetch: options.fetch,
3677
+ fetch: normalizedOptions.fetch,
3445
3678
  onError: (err) => {
3446
3679
  this._events.emit("error", err);
3447
3680
  },
@@ -3449,13 +3682,13 @@ var init_client = __esm({
3449
3682
  this._events.emit("localEvaluationFlagsLoaded", count);
3450
3683
  },
3451
3684
  customHeaders: this.getCustomHeaders(),
3452
- cacheProvider: options.flagDefinitionCacheProvider,
3453
- strictLocalEvaluation: options.strictLocalEvaluation
3685
+ cacheProvider: normalizedOptions.flagDefinitionCacheProvider,
3686
+ strictLocalEvaluation: normalizedOptions.strictLocalEvaluation
3454
3687
  });
3455
3688
  }
3456
- this.errorTracking = new ErrorTracking(this, options, this._logger);
3689
+ this.errorTracking = new ErrorTracking(this, normalizedOptions, this._logger);
3457
3690
  this.distinctIdHasSentFlagCalls = {};
3458
- this.maxCacheSize = options.maxCacheSize || MAX_CACHE_SIZE;
3691
+ this.maxCacheSize = normalizedOptions.maxCacheSize || MAX_CACHE_SIZE;
3459
3692
  }
3460
3693
  enqueue(type, message2, options) {
3461
3694
  super.enqueue(type, message2, options);
@@ -4138,7 +4371,7 @@ var init_client = __esm({
4138
4371
  });
4139
4372
  var PostHogContext;
4140
4373
  var init_context = __esm({
4141
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
4374
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
4142
4375
  PostHogContext = class {
4143
4376
  constructor() {
4144
4377
  this.storage = new AsyncLocalStorage();
@@ -4168,7 +4401,7 @@ var init_context = __esm({
4168
4401
  }
4169
4402
  });
4170
4403
 
4171
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
4404
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
4172
4405
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
4173
4406
  "error"
4174
4407
  ], sendExceptionsToPostHog = true } = {}) {
@@ -4224,7 +4457,7 @@ function sentryIntegration(_posthog, options) {
4224
4457
  }
4225
4458
  var NAME, PostHogSentryIntegration;
4226
4459
  var init_sentry_integration = __esm({
4227
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
4460
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
4228
4461
  NAME = "posthog-node";
4229
4462
  PostHogSentryIntegration = class {
4230
4463
  static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -4246,7 +4479,7 @@ var init_sentry_integration = __esm({
4246
4479
  }
4247
4480
  });
4248
4481
 
4249
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
4482
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
4250
4483
  function setupExpressErrorHandler(_posthog, app) {
4251
4484
  app.use(posthogErrorHandler(_posthog));
4252
4485
  }
@@ -4278,14 +4511,14 @@ function posthogErrorHandler(posthog) {
4278
4511
  };
4279
4512
  }
4280
4513
  var init_express = __esm({
4281
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
4514
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
4282
4515
  init_error_tracking2();
4283
4516
  }
4284
4517
  });
4285
4518
 
4286
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
4519
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
4287
4520
  var init_exports = __esm({
4288
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
4521
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
4289
4522
  init_dist();
4290
4523
  init_sentry_integration();
4291
4524
  init_express();
@@ -4293,7 +4526,7 @@ var init_exports = __esm({
4293
4526
  }
4294
4527
  });
4295
4528
 
4296
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
4529
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
4297
4530
  var index_node_exports = {};
4298
4531
  __export(index_node_exports, {
4299
4532
  FeatureFlagError: () => FeatureFlagError,
@@ -4305,9 +4538,10 @@ __export(index_node_exports, {
4305
4538
  });
4306
4539
  var PostHog;
4307
4540
  var init_index_node = __esm({
4308
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
4541
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
4309
4542
  init_module_node();
4310
4543
  init_context_lines_node();
4544
+ init_relative_path_node();
4311
4545
  init_error_tracking2();
4312
4546
  init_client();
4313
4547
  init_dist();
@@ -4321,7 +4555,8 @@ var init_index_node = __esm({
4321
4555
  new error_tracking_exports.PrimitiveCoercer()
4322
4556
  ], error_tracking_exports.createStackParser("node:javascript", error_tracking_exports.nodeStackLineParser), [
4323
4557
  createModulerModifier(),
4324
- addSourceContext
4558
+ addSourceContext,
4559
+ createRelativePathModifier()
4325
4560
  ]);
4326
4561
  PostHog = class extends PostHogBackendClient {
4327
4562
  getLibraryId() {
@@ -5596,9 +5831,9 @@ var require_dist2 = __commonJS({
5596
5831
  }
5597
5832
  });
5598
5833
 
5599
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/package.json
5834
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/package.json
5600
5835
  var require_package = __commonJS({
5601
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/package.json"(exports$1, module) {
5836
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/package.json"(exports$1, module) {
5602
5837
  module.exports = {
5603
5838
  name: "mixpanel",
5604
5839
  description: "A simple server-side API for mixpanel",
@@ -5608,7 +5843,7 @@ var require_package = __commonJS({
5608
5843
  "api",
5609
5844
  "stats"
5610
5845
  ],
5611
- version: "0.20.0",
5846
+ version: "0.21.0",
5612
5847
  homepage: "https://github.com/mixpanel/mixpanel-node",
5613
5848
  author: "Carl Sverre",
5614
5849
  license: "MIT",
@@ -5648,9 +5883,9 @@ var require_package = __commonJS({
5648
5883
  }
5649
5884
  });
5650
5885
 
5651
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/utils.js
5886
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/utils.js
5652
5887
  var require_utils = __commonJS({
5653
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/utils.js"(exports$1) {
5888
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/utils.js"(exports$1) {
5654
5889
  exports$1.async_all = function(requests, handler, callback) {
5655
5890
  let total = requests.length, errors = null, results = [], done = function(err, result) {
5656
5891
  if (err) {
@@ -5691,9 +5926,9 @@ var require_utils = __commonJS({
5691
5926
  }
5692
5927
  });
5693
5928
 
5694
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/profile_helpers.js
5929
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/profile_helpers.js
5695
5930
  var require_profile_helpers = __commonJS({
5696
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/profile_helpers.js"(exports$1) {
5931
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/profile_helpers.js"(exports$1) {
5697
5932
  var { ensure_timestamp } = require_utils();
5698
5933
  function merge_modifiers(data, modifiers) {
5699
5934
  if (modifiers) {
@@ -5921,9 +6156,9 @@ var require_profile_helpers = __commonJS({
5921
6156
  }
5922
6157
  });
5923
6158
 
5924
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/groups.js
6159
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/groups.js
5925
6160
  var require_groups = __commonJS({
5926
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/groups.js"(exports$1) {
6161
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/groups.js"(exports$1) {
5927
6162
  var { ProfileHelpers } = require_profile_helpers();
5928
6163
  var MixpanelGroups = class extends ProfileHelpers() {
5929
6164
  constructor(mp_instance) {
@@ -6023,9 +6258,9 @@ var require_groups = __commonJS({
6023
6258
  }
6024
6259
  });
6025
6260
 
6026
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/people.js
6261
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/people.js
6027
6262
  var require_people = __commonJS({
6028
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/people.js"(exports$1) {
6263
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/people.js"(exports$1) {
6029
6264
  var { merge_modifiers, ProfileHelpers } = require_profile_helpers();
6030
6265
  var MixpanelPeople = class extends ProfileHelpers() {
6031
6266
  constructor(mp_instance) {
@@ -6350,9 +6585,9 @@ var require_people = __commonJS({
6350
6585
  }
6351
6586
  });
6352
6587
 
6353
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/utils.js
6588
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/utils.js
6354
6589
  var require_utils2 = __commonJS({
6355
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/utils.js"(exports$1, module) {
6590
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/utils.js"(exports$1, module) {
6356
6591
  var crypto3 = __require("crypto");
6357
6592
  var EXPOSURE_EVENT = "$experiment_started";
6358
6593
  var REQUEST_HEADERS = {
@@ -6425,9 +6660,9 @@ var require_utils2 = __commonJS({
6425
6660
  }
6426
6661
  });
6427
6662
 
6428
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/flags.js
6663
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/flags.js
6429
6664
  var require_flags = __commonJS({
6430
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/flags.js"(exports$1, module) {
6665
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/flags.js"(exports$1, module) {
6431
6666
  var https2 = __require("https");
6432
6667
  var packageInfo = require_package();
6433
6668
  var {
@@ -6518,6 +6753,11 @@ var require_flags = __commonJS({
6518
6753
  request.end();
6519
6754
  });
6520
6755
  }
6756
+ /**
6757
+ * No-op by default; subclasses can override to clean up resources
6758
+ */
6759
+ shutdown() {
6760
+ }
6521
6761
  /**
6522
6762
  * Manually tracks a feature flag exposure event to Mixpanel
6523
6763
  * This provides flexibility for reporting individual exposure events when using getAllVariants
@@ -6541,7 +6781,7 @@ var require_flags = __commonJS({
6541
6781
  $experiment_type: "feature_flag",
6542
6782
  "Flag evaluation mode": this.evaluationMode
6543
6783
  };
6544
- if (latencyMs !== null && latencyMs !== void 0) {
6784
+ if (latencyMs != null) {
6545
6785
  properties["Variant fetch latency (ms)"] = latencyMs;
6546
6786
  }
6547
6787
  if (selectedVariant.experiment_id !== void 0) {
@@ -6942,9 +7182,9 @@ var require_logic = __commonJS({
6942
7182
  }
6943
7183
  });
6944
7184
 
6945
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/local_flags.js
7185
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/local_flags.js
6946
7186
  var require_local_flags = __commonJS({
6947
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/local_flags.js"(exports$1, module) {
7187
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/local_flags.js"(exports$1, module) {
6948
7188
  var FeatureFlagsProvider = require_flags();
6949
7189
  var {
6950
7190
  normalizedHash,
@@ -6976,6 +7216,7 @@ var require_local_flags = __commonJS({
6976
7216
  this.config = mergedConfig;
6977
7217
  this.flagDefinitions = /* @__PURE__ */ new Map();
6978
7218
  this.pollingInterval = null;
7219
+ this._initialFetchPromise = null;
6979
7220
  }
6980
7221
  /**
6981
7222
  * Start polling for flag definitions.
@@ -6984,7 +7225,8 @@ var require_local_flags = __commonJS({
6984
7225
  */
6985
7226
  async startPollingForDefinitions() {
6986
7227
  try {
6987
- await this._fetchFlagDefinitions();
7228
+ this._initialFetchPromise = this._fetchFlagDefinitions();
7229
+ await this._initialFetchPromise;
6988
7230
  if (this.config.enable_polling && !this.pollingInterval) {
6989
7231
  this.pollingInterval = setInterval(async () => {
6990
7232
  try {
@@ -7015,6 +7257,20 @@ var require_local_flags = __commonJS({
7015
7257
  );
7016
7258
  }
7017
7259
  }
7260
+ shutdown() {
7261
+ if (this.pollingInterval) {
7262
+ clearInterval(this.pollingInterval);
7263
+ this.pollingInterval = null;
7264
+ }
7265
+ }
7266
+ areFlagsReady() {
7267
+ if (!this._initialFetchPromise) {
7268
+ this.logger?.warn(
7269
+ "areFlagsReady called before startPollingForDefinitions"
7270
+ );
7271
+ }
7272
+ return this._initialFetchPromise ?? Promise.resolve();
7273
+ }
7018
7274
  /**
7019
7275
  * Check if a feature flag is enabled
7020
7276
  * This method is intended only for flags defined as Mixpanel Feature Gates (boolean flags)
@@ -7149,17 +7405,17 @@ var require_local_flags = __commonJS({
7149
7405
  if (!variantKey) {
7150
7406
  return null;
7151
7407
  }
7152
- let selected_variant = this._getMatchingVariant(variantKey, flag);
7153
- if (selected_variant) {
7154
- selected_variant.is_qa_tester = true;
7408
+ let selectedVariant = this._getMatchingVariant(variantKey, flag);
7409
+ if (selectedVariant) {
7410
+ selectedVariant.is_qa_tester = true;
7155
7411
  }
7156
- return selected_variant;
7412
+ return selectedVariant;
7157
7413
  }
7158
7414
  _getAssignedRollout(flag, contextValue, context) {
7159
7415
  for (let index = 0; index < flag.ruleset.rollout.length; index++) {
7160
7416
  const rollout = flag.ruleset.rollout[index];
7161
7417
  let salt;
7162
- if (flag.hash_salt !== null && flag.hash_salt !== void 0) {
7418
+ if (flag.hash_salt != null) {
7163
7419
  salt = flag.key + flag.hash_salt + index.toString();
7164
7420
  } else {
7165
7421
  salt = flag.key + "rollout";
@@ -7181,7 +7437,7 @@ var require_local_flags = __commonJS({
7181
7437
  return { ...variant, is_qa_tester: false };
7182
7438
  }
7183
7439
  }
7184
- const storedSalt = flag.hash_salt !== null && flag.hash_salt !== void 0 ? flag.hash_salt : "";
7440
+ const storedSalt = flag.hash_salt != null ? flag.hash_salt : "";
7185
7441
  const salt = flagKey + storedSalt + "variant";
7186
7442
  const variantHash = normalizedHash(String(contextValue), salt);
7187
7443
  const variants = flag.ruleset.variants.map((v) => ({ ...v }));
@@ -7259,9 +7515,9 @@ var require_local_flags = __commonJS({
7259
7515
  }
7260
7516
  });
7261
7517
 
7262
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/remote_flags.js
7518
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/remote_flags.js
7263
7519
  var require_remote_flags = __commonJS({
7264
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/remote_flags.js"(exports$1, module) {
7520
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/remote_flags.js"(exports$1, module) {
7265
7521
  var FeatureFlagsProvider = require_flags();
7266
7522
  var RemoteFeatureFlagsProvider = class extends FeatureFlagsProvider {
7267
7523
  /**
@@ -7394,9 +7650,9 @@ var require_remote_flags = __commonJS({
7394
7650
  }
7395
7651
  });
7396
7652
 
7397
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/index.js
7653
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/index.js
7398
7654
  var require_flags2 = __commonJS({
7399
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/index.js"(exports$1, module) {
7655
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/index.js"(exports$1, module) {
7400
7656
  var LocalFeatureFlagsProvider = require_local_flags();
7401
7657
  var RemoteFeatureFlagsProvider = require_remote_flags();
7402
7658
  module.exports = {
@@ -7406,9 +7662,9 @@ var require_flags2 = __commonJS({
7406
7662
  }
7407
7663
  });
7408
7664
 
7409
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/mixpanel-node.js
7665
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/mixpanel-node.js
7410
7666
  var require_mixpanel_node = __commonJS({
7411
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/mixpanel-node.js"(exports$1, module) {
7667
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/mixpanel-node.js"(exports$1, module) {
7412
7668
  var querystring = __require("querystring");
7413
7669
  var Buffer4 = __require("buffer").Buffer;
7414
7670
  var http2 = __require("http");
@@ -7877,10 +8133,10 @@ var init_tslib_es6 = __esm({
7877
8133
  }
7878
8134
  });
7879
8135
 
7880
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
8136
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7881
8137
  var IdentifyOperation, SpecialEventType;
7882
8138
  var init_event = __esm({
7883
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
8139
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7884
8140
  (function(IdentifyOperation3) {
7885
8141
  IdentifyOperation3["SET"] = "$set";
7886
8142
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -7901,10 +8157,10 @@ var init_event = __esm({
7901
8157
  }
7902
8158
  });
7903
8159
 
7904
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
8160
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7905
8161
  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;
7906
8162
  var init_constants = __esm({
7907
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
8163
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7908
8164
  UNSET_VALUE = "-";
7909
8165
  AMPLITUDE_PREFIX = "AMP";
7910
8166
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -7916,10 +8172,10 @@ var init_constants = __esm({
7916
8172
  }
7917
8173
  });
7918
8174
 
7919
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
8175
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7920
8176
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
7921
8177
  var init_valid_properties = __esm({
7922
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
8178
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7923
8179
  init_tslib_es6();
7924
8180
  MAX_PROPERTY_KEYS = 1e3;
7925
8181
  isValidObject = function(properties) {
@@ -7974,10 +8230,10 @@ var init_valid_properties = __esm({
7974
8230
  }
7975
8231
  });
7976
8232
 
7977
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js
8233
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js
7978
8234
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
7979
8235
  var init_identify = __esm({
7980
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
8236
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
7981
8237
  init_tslib_es6();
7982
8238
  init_constants();
7983
8239
  init_valid_properties();
@@ -8088,10 +8344,10 @@ var init_identify = __esm({
8088
8344
  }
8089
8345
  });
8090
8346
 
8091
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
8347
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
8092
8348
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
8093
8349
  var init_messages = __esm({
8094
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
8350
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
8095
8351
  SUCCESS_MESSAGE = "Event tracked successfully";
8096
8352
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
8097
8353
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -8102,10 +8358,10 @@ var init_messages = __esm({
8102
8358
  }
8103
8359
  });
8104
8360
 
8105
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
8361
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
8106
8362
  var Status;
8107
8363
  var init_status = __esm({
8108
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
8364
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
8109
8365
  (function(Status2) {
8110
8366
  Status2["Unknown"] = "unknown";
8111
8367
  Status2["Skipped"] = "skipped";
@@ -8120,10 +8376,10 @@ var init_status = __esm({
8120
8376
  }
8121
8377
  });
8122
8378
 
8123
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
8379
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
8124
8380
  var buildResult;
8125
8381
  var init_result_builder = __esm({
8126
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
8382
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
8127
8383
  init_status();
8128
8384
  buildResult = function(event, code, message2) {
8129
8385
  if (code === void 0) {
@@ -8137,10 +8393,10 @@ var init_result_builder = __esm({
8137
8393
  }
8138
8394
  });
8139
8395
 
8140
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
8396
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
8141
8397
  var getGlobalScope;
8142
8398
  var init_global_scope = __esm({
8143
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
8399
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
8144
8400
  getGlobalScope = function() {
8145
8401
  var ampIntegrationContextName = "ampIntegrationContext";
8146
8402
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -8163,10 +8419,10 @@ var init_global_scope = __esm({
8163
8419
  }
8164
8420
  });
8165
8421
 
8166
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
8422
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
8167
8423
  var legacyUUID, hex, UUID2;
8168
8424
  var init_uuid = __esm({
8169
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
8425
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
8170
8426
  init_tslib_es6();
8171
8427
  init_global_scope();
8172
8428
  legacyUUID = function(a) {
@@ -8210,10 +8466,10 @@ var init_uuid = __esm({
8210
8466
  }
8211
8467
  });
8212
8468
 
8213
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
8469
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
8214
8470
  var Timeline;
8215
8471
  var init_timeline = __esm({
8216
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
8472
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
8217
8473
  init_tslib_es6();
8218
8474
  init_result_builder();
8219
8475
  init_uuid();
@@ -8576,10 +8832,10 @@ var init_timeline = __esm({
8576
8832
  }
8577
8833
  });
8578
8834
 
8579
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8835
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8580
8836
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
8581
8837
  var init_event_builder = __esm({
8582
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8838
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8583
8839
  init_tslib_es6();
8584
8840
  init_identify();
8585
8841
  init_event();
@@ -8609,10 +8865,10 @@ var init_event_builder = __esm({
8609
8865
  }
8610
8866
  });
8611
8867
 
8612
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8868
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8613
8869
  var returnWrapper;
8614
8870
  var init_return_wrapper = __esm({
8615
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8871
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8616
8872
  returnWrapper = function(awaitable) {
8617
8873
  return {
8618
8874
  promise: awaitable || Promise.resolve()
@@ -8621,10 +8877,10 @@ var init_return_wrapper = __esm({
8621
8877
  }
8622
8878
  });
8623
8879
 
8624
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8880
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8625
8881
  var AmplitudeCore;
8626
8882
  var init_core_client = __esm({
8627
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8883
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8628
8884
  init_tslib_es6();
8629
8885
  init_event();
8630
8886
  init_identify();
@@ -8896,10 +9152,10 @@ var init_core_client = __esm({
8896
9152
  }
8897
9153
  });
8898
9154
 
8899
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
9155
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8900
9156
  var Revenue, RevenueProperty;
8901
9157
  var init_revenue = __esm({
8902
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
9158
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8903
9159
  init_tslib_es6();
8904
9160
  init_valid_properties();
8905
9161
  Revenue = /** @class */
@@ -8980,10 +9236,10 @@ var init_revenue = __esm({
8980
9236
  }
8981
9237
  });
8982
9238
 
8983
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
9239
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
8984
9240
  var chunk;
8985
9241
  var init_chunk = __esm({
8986
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
9242
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
8987
9243
  chunk = function(arr, size) {
8988
9244
  var chunkSize = Math.max(size, 1);
8989
9245
  return arr.reduce(function(chunks, element, index) {
@@ -8998,10 +9254,10 @@ var init_chunk = __esm({
8998
9254
  }
8999
9255
  });
9000
9256
 
9001
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
9257
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
9002
9258
  var LogLevel;
9003
9259
  var init_loglevel = __esm({
9004
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
9260
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
9005
9261
  (function(LogLevel2) {
9006
9262
  LogLevel2[LogLevel2["None"] = 0] = "None";
9007
9263
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -9012,10 +9268,10 @@ var init_loglevel = __esm({
9012
9268
  }
9013
9269
  });
9014
9270
 
9015
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js
9271
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js
9016
9272
  var PREFIX, Logger;
9017
9273
  var init_logger2 = __esm({
9018
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
9274
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
9019
9275
  init_loglevel();
9020
9276
  PREFIX = "Amplitude Logger ";
9021
9277
  Logger = /** @class */
@@ -9077,10 +9333,10 @@ var init_logger2 = __esm({
9077
9333
  }
9078
9334
  });
9079
9335
 
9080
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/config.js
9336
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/config.js
9081
9337
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
9082
9338
  var init_config = __esm({
9083
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
9339
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
9084
9340
  init_constants();
9085
9341
  init_logger2();
9086
9342
  init_loglevel();
@@ -9181,19 +9437,19 @@ var init_config = __esm({
9181
9437
  }
9182
9438
  });
9183
9439
 
9184
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
9440
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
9185
9441
  function isSuccessStatusCode(code) {
9186
9442
  return code >= 200 && code < 300;
9187
9443
  }
9188
9444
  var init_status_code = __esm({
9189
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
9445
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
9190
9446
  }
9191
9447
  });
9192
9448
 
9193
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
9449
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
9194
9450
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
9195
9451
  var init_debug = __esm({
9196
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
9452
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
9197
9453
  init_tslib_es6();
9198
9454
  init_loglevel();
9199
9455
  getStacktrace = function(ignoreDepth) {
@@ -9311,7 +9567,7 @@ var init_debug = __esm({
9311
9567
  }
9312
9568
  });
9313
9569
 
9314
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
9570
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
9315
9571
  function getErrorMessage(error) {
9316
9572
  if (error instanceof Error)
9317
9573
  return error.message;
@@ -9329,7 +9585,7 @@ function getResponseBodyString(res) {
9329
9585
  }
9330
9586
  var DEFAULT_AMPLITUDE_SERVER_URLS, shouldCompressUploadBodyForRequest, Destination;
9331
9587
  var init_destination = __esm({
9332
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
9588
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
9333
9589
  init_tslib_es6();
9334
9590
  init_status();
9335
9591
  init_messages();
@@ -9736,10 +9992,10 @@ var init_destination = __esm({
9736
9992
  }
9737
9993
  });
9738
9994
 
9739
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9995
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9740
9996
  var BaseTransport;
9741
9997
  var init_base2 = __esm({
9742
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9998
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9743
9999
  init_status();
9744
10000
  init_status_code();
9745
10001
  BaseTransport = /** @class */
@@ -9841,10 +10097,10 @@ var init_base2 = __esm({
9841
10097
  }
9842
10098
  });
9843
10099
 
9844
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
10100
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9845
10101
  var ServerZone;
9846
10102
  var init_server_zone = __esm({
9847
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
10103
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9848
10104
  (function(ServerZone2) {
9849
10105
  ServerZone2["US"] = "US";
9850
10106
  ServerZone2["EU"] = "EU";
@@ -9853,17 +10109,17 @@ var init_server_zone = __esm({
9853
10109
  }
9854
10110
  });
9855
10111
 
9856
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
10112
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9857
10113
  var OfflineDisabled;
9858
10114
  var init_offline = __esm({
9859
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
10115
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9860
10116
  OfflineDisabled = null;
9861
10117
  }
9862
10118
  });
9863
10119
 
9864
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/index.js
10120
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/index.js
9865
10121
  var init_esm = __esm({
9866
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
10122
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9867
10123
  init_core_client();
9868
10124
  init_identify();
9869
10125
  init_revenue();
@@ -9880,18 +10136,18 @@ var init_esm = __esm({
9880
10136
  }
9881
10137
  });
9882
10138
 
9883
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/version.js
10139
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/version.js
9884
10140
  var VERSION;
9885
10141
  var init_version2 = __esm({
9886
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9887
- VERSION = "1.5.52";
10142
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
10143
+ VERSION = "1.5.56";
9888
10144
  }
9889
10145
  });
9890
10146
 
9891
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
10147
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9892
10148
  var Context;
9893
10149
  var init_context2 = __esm({
9894
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
10150
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9895
10151
  init_tslib_es6();
9896
10152
  init_esm();
9897
10153
  init_version2();
@@ -9926,7 +10182,7 @@ var init_context2 = __esm({
9926
10182
  });
9927
10183
  var Http;
9928
10184
  var init_http = __esm({
9929
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
10185
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9930
10186
  init_tslib_es6();
9931
10187
  init_esm();
9932
10188
  Http = /** @class */
@@ -9988,10 +10244,10 @@ var init_http = __esm({
9988
10244
  }
9989
10245
  });
9990
10246
 
9991
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/config.js
10247
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/config.js
9992
10248
  var NodeConfig, useNodeConfig;
9993
10249
  var init_config2 = __esm({
9994
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
10250
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
9995
10251
  init_tslib_es6();
9996
10252
  init_esm();
9997
10253
  init_http();
@@ -10009,10 +10265,10 @@ var init_config2 = __esm({
10009
10265
  }
10010
10266
  });
10011
10267
 
10012
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
10268
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
10013
10269
  var AmplitudeNode, createInstance, node_client_default;
10014
10270
  var init_node_client = __esm({
10015
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
10271
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
10016
10272
  init_tslib_es6();
10017
10273
  init_esm();
10018
10274
  init_context2();
@@ -10086,7 +10342,7 @@ var init_node_client = __esm({
10086
10342
  }
10087
10343
  });
10088
10344
 
10089
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/types.js
10345
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/types.js
10090
10346
  var types_exports = {};
10091
10347
  __export(types_exports, {
10092
10348
  IdentifyOperation: () => IdentifyOperation,
@@ -10097,12 +10353,12 @@ __export(types_exports, {
10097
10353
  SpecialEventType: () => SpecialEventType
10098
10354
  });
10099
10355
  var init_types4 = __esm({
10100
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
10356
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
10101
10357
  init_esm();
10102
10358
  }
10103
10359
  });
10104
10360
 
10105
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/index.js
10361
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/index.js
10106
10362
  var esm_exports = {};
10107
10363
  __export(esm_exports, {
10108
10364
  Identify: () => Identify,
@@ -10123,7 +10379,7 @@ __export(esm_exports, {
10123
10379
  });
10124
10380
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
10125
10381
  var init_esm2 = __esm({
10126
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
10382
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
10127
10383
  init_node_client();
10128
10384
  init_node_client();
10129
10385
  init_esm();