@qonto/embed-sdk 0.64.1 → 0.64.3

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.
Files changed (569) hide show
  1. package/dist/_virtual/index.js +1 -0
  2. package/dist/_virtual/index2.js +1 -0
  3. package/dist/auth-links/client/auth-links.client.d.ts +1 -1
  4. package/dist/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
  5. package/dist/cards/client/cards.client.d.ts +1 -1
  6. package/dist/cards/client/cards.client.d.ts.map +1 -1
  7. package/dist/cards/index.d.ts +1 -1
  8. package/dist/index.umd.js +81 -81
  9. package/dist/mocks/handlers.d.ts.map +1 -1
  10. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +1 -1
  11. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +1 -0
  12. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +1 -1
  13. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +1 -0
  14. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +1 -1
  15. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/config.js +1 -0
  16. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/cookie-migration/index.js +1 -1
  17. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +1 -1
  18. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/index.js +1 -0
  19. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/context.js +1 -1
  20. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/file-download-tracking.js +1 -1
  21. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +1 -0
  22. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/network-connectivity-checker.js +1 -1
  23. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/storage/local-storage.js +1 -1
  24. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/storage/session-storage.js +1 -1
  25. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +1 -1
  26. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +1 -0
  27. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/types.js +1 -0
  28. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/version.js +1 -0
  29. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js +1 -1
  30. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +1 -0
  31. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js +1 -1
  32. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-storage.js +1 -1
  33. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +1 -0
  34. package/dist/{server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/identify.js +1 -1
  35. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js +1 -0
  36. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js +1 -0
  37. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js +1 -0
  38. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/utils.js +1 -0
  39. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/network-request-event.js +1 -1
  40. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/observers/console.js +1 -0
  41. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/observers/network.js +1 -0
  42. package/dist/{server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +1 -1
  43. package/dist/{server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js +1 -1
  44. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js +1 -1
  45. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +1 -1
  46. package/dist/{server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/revenue.js +1 -1
  47. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js +1 -1
  48. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +1 -0
  49. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js +1 -1
  50. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +1 -0
  51. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +1 -0
  52. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +1 -0
  53. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +1 -1
  54. package/dist/{server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +1 -1
  55. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/json-query.js +1 -1
  56. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -1
  57. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js +1 -0
  58. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +1 -1
  59. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +1 -1
  60. package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-action-click.js +1 -1
  61. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +1 -0
  62. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-error-click.js +1 -0
  63. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +1 -0
  64. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +1 -0
  65. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -0
  66. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +1 -0
  67. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +1 -0
  68. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -0
  69. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +1 -0
  70. package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/hierarchy.js +1 -1
  71. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +1 -0
  72. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -0
  73. package/dist/{server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2 → node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/triggers.js +1 -1
  74. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +1 -0
  75. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.8.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -0
  76. package/dist/node_modules/.pnpm/{@amplitude_plugin-network-capture-browser@1.7.2 → @amplitude_plugin-network-capture-browser@1.8.2}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/track-network-event.js +1 -1
  77. package/dist/node_modules/.pnpm/{@amplitude_plugin-page-url-enrichment-browser@0.5.8 → @amplitude_plugin-page-url-enrichment-browser@0.6.2}/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +1 -1
  78. package/dist/node_modules/.pnpm/{@amplitude_plugin-page-view-tracking-browser@2.6.5 → @amplitude_plugin-page-view-tracking-browser@2.7.2}/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +1 -1
  79. package/dist/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.2 → @amplitude_plugin-web-vitals-browser@1.1.13}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js +1 -1
  80. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/default-msg.js +2 -2
  81. package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/property.js +1 -1
  82. package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/reactive-element.js +1 -1
  83. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@10.39.0/node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js +1 -0
  84. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@10.39.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/dom.js +1 -0
  85. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@10.39.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js +1 -0
  86. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@10.39.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js +1 -0
  87. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@10.39.0/node_modules/@sentry-internal/browser-utils/build/esm/types.js +1 -0
  88. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/client.js +1 -0
  89. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/eventbuilder.js +1 -0
  90. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/helpers.js +1 -0
  91. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/breadcrumbs.js +1 -0
  92. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browserapierrors.js +1 -0
  93. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browsersession.js +1 -0
  94. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/culturecontext.js +1 -0
  95. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/globalhandlers.js +1 -0
  96. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/httpcontext.js +1 -0
  97. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/linkederrors.js +1 -0
  98. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/sdk.js +1 -0
  99. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/stack-parsers.js +1 -0
  100. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/transports/fetch.js +1 -0
  101. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/utils/detectBrowserExtension.js +1 -0
  102. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js +1 -0
  103. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/breadcrumbs.js +1 -0
  104. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/carrier.js +1 -0
  105. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/client.js +1 -0
  106. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/currentScopes.js +1 -0
  107. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/defaultScopes.js +1 -0
  108. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/envelope.js +1 -0
  109. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/eventProcessors.js +1 -0
  110. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/exports.js +1 -0
  111. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/instrument/console.js +1 -0
  112. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/instrument/fetch.js +1 -0
  113. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/instrument/globalError.js +1 -0
  114. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js +1 -0
  115. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/instrument/handlers.js +1 -0
  116. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/integration.js +1 -0
  117. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/integrations/conversationId.js +1 -0
  118. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js +1 -0
  119. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/integrations/eventFilters.js +1 -0
  120. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js +1 -0
  121. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/logs/envelope.js +1 -0
  122. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/logs/internal.js +1 -0
  123. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/metrics/envelope.js +1 -0
  124. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/metrics/internal.js +1 -0
  125. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/scope.js +1 -0
  126. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/sdk.js +1 -0
  127. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/semanticAttributes.js +1 -0
  128. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/session.js +1 -0
  129. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js +1 -0
  130. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/tracing/utils.js +1 -0
  131. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/transports/base.js +1 -0
  132. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js +1 -0
  133. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/baggage.js +1 -0
  134. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/browser.js +1 -0
  135. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/debug-ids.js +1 -0
  136. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/debug-logger.js +1 -0
  137. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/dsn.js +1 -0
  138. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/envelope.js +1 -0
  139. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/eventUtils.js +1 -0
  140. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/eventbuilder.js +1 -0
  141. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js +1 -0
  142. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/ipAddress.js +1 -0
  143. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/is.js +1 -0
  144. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/merge.js +1 -0
  145. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/misc.js +1 -0
  146. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/normalize.js +1 -0
  147. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/object.js +1 -0
  148. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js +1 -0
  149. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js +1 -0
  150. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/promisebuffer.js +1 -0
  151. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js +1 -0
  152. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/ratelimit.js +1 -0
  153. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/scopeData.js +1 -0
  154. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js +1 -0
  155. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js +1 -0
  156. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js +1 -0
  157. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/spanUtils.js +1 -0
  158. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/stacktrace.js +1 -0
  159. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/string.js +1 -0
  160. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/supports.js +1 -0
  161. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/syncpromise.js +1 -0
  162. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/time.js +1 -0
  163. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/timer.js +1 -0
  164. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/transactionEvent.js +1 -0
  165. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/url.js +1 -0
  166. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/version.js +1 -0
  167. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/worldwide.js +1 -0
  168. package/dist/node_modules/.pnpm/{lit-element@4.2.1 → lit-element@4.2.2}/node_modules/lit-element/lit-element.js +2 -2
  169. package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/unsafe-html.js +2 -2
  170. package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/lit-html.js +1 -1
  171. package/dist/node_modules/.pnpm/lottie-web@5.13.0/node_modules/lottie-web/build/player/lottie.js +1 -1
  172. package/dist/node_modules/.pnpm/safe-json-stringify@1.2.0/node_modules/safe-json-stringify/index.js +1 -0
  173. package/dist/node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js +1 -0
  174. package/dist/node_modules/.pnpm/web-vitals@5.1.0/node_modules/web-vitals/dist/web-vitals.js +1 -0
  175. package/dist/sepa-transfers/bulk-transfers/index.d.ts +1 -1
  176. package/dist/sepa-transfers/index.d.ts +1 -1
  177. package/dist/server/_virtual/_commonjsHelpers.js +1 -0
  178. package/dist/server/_virtual/index.js +1 -0
  179. package/dist/server/_virtual/index2.js +1 -0
  180. package/dist/server/auth-links/client/auth-links.client.d.ts +1 -1
  181. package/dist/server/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
  182. package/dist/server/cards/client/cards.client.d.ts +1 -1
  183. package/dist/server/cards/client/cards.client.d.ts.map +1 -1
  184. package/dist/server/cards/index.d.ts +1 -1
  185. package/dist/server/index.server.umd.js +1 -1
  186. package/dist/server/mocks/handlers.d.ts.map +1 -1
  187. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +1 -1
  188. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +1 -0
  189. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +1 -1
  190. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +1 -0
  191. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +1 -1
  192. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/config.js +1 -0
  193. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/cookie-migration/index.js +1 -1
  194. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +1 -1
  195. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/index.js +1 -0
  196. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/context.js +1 -1
  197. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/file-download-tracking.js +1 -1
  198. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +1 -0
  199. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/network-connectivity-checker.js +1 -1
  200. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/storage/local-storage.js +1 -1
  201. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/storage/session-storage.js +1 -1
  202. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +1 -1
  203. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +1 -0
  204. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/types.js +1 -0
  205. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/version.js +1 -0
  206. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js +1 -1
  207. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +1 -0
  208. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js +1 -1
  209. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-storage.js +1 -1
  210. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +1 -0
  211. package/dist/{node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/identify.js +1 -1
  212. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js +1 -0
  213. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js +1 -0
  214. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js +1 -0
  215. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/utils.js +1 -0
  216. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/network-request-event.js +1 -1
  217. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/observers/console.js +1 -0
  218. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/observers/network.js +1 -0
  219. package/dist/{node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +1 -1
  220. package/dist/{node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js +1 -1
  221. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js +1 -1
  222. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +1 -1
  223. package/dist/{node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/revenue.js +1 -1
  224. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js +1 -1
  225. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +1 -0
  226. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js +1 -1
  227. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +1 -0
  228. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +1 -0
  229. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +1 -0
  230. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +1 -1
  231. package/dist/{node_modules/.pnpm/@amplitude_analytics-core@2.34.1 → server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +1 -1
  232. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/json-query.js +1 -1
  233. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -1
  234. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js +1 -0
  235. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +1 -1
  236. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +1 -1
  237. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-action-click.js +1 -1
  238. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +1 -0
  239. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-error-click.js +1 -0
  240. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +1 -0
  241. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +1 -0
  242. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -0
  243. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +1 -0
  244. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +1 -0
  245. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -0
  246. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +1 -0
  247. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/hierarchy.js +1 -1
  248. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +1 -0
  249. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -0
  250. package/dist/{node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2 → server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/triggers.js +1 -1
  251. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +1 -0
  252. package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.8.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -0
  253. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-network-capture-browser@1.7.2 → @amplitude_plugin-network-capture-browser@1.8.2}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/track-network-event.js +1 -1
  254. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-page-url-enrichment-browser@0.5.8 → @amplitude_plugin-page-url-enrichment-browser@0.6.2}/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +1 -1
  255. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-page-view-tracking-browser@2.6.5 → @amplitude_plugin-page-view-tracking-browser@2.7.2}/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +1 -1
  256. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.2 → @amplitude_plugin-web-vitals-browser@1.1.13}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js +1 -1
  257. package/dist/server/node_modules/.pnpm/safe-json-stringify@1.2.0/node_modules/safe-json-stringify/index.js +1 -0
  258. package/dist/server/node_modules/.pnpm/uuid@13.0.0/node_modules/uuid/dist/v4.js +1 -0
  259. package/dist/server/node_modules/.pnpm/web-vitals@5.1.0/node_modules/web-vitals/dist/web-vitals.js +1 -0
  260. package/dist/server/sepa-transfers/bulk-transfers/index.d.ts +1 -1
  261. package/dist/server/sepa-transfers/index.d.ts +1 -1
  262. package/dist/server/src/beneficiaries/beneficiaries.js +1 -1
  263. package/dist/server/src/beneficiaries/shared/beneficiaries.api.js +1 -1
  264. package/dist/server/src/common/analytics/amplitude-manager.js +1 -1
  265. package/dist/server/src/sepa-transfers/bulk-transfers/server/bulk-transfers.server.js +1 -1
  266. package/dist/server/src/sepa-transfers/server/sepa-transfers.server.js +1 -1
  267. package/dist/server/transactions/client/transactions.client.d.ts +3 -3
  268. package/dist/server/validation/operation-settings-validation.d.ts +2 -2
  269. package/dist/src/auth-links/client/auth-links.client.js +1 -1
  270. package/dist/src/beneficiaries/beneficiaries.js +1 -1
  271. package/dist/src/beneficiaries/client/beneficiaries.client.js +1 -1
  272. package/dist/src/beneficiaries/shared/beneficiaries.api.js +1 -1
  273. package/dist/src/cards/client/cards.client.js +1 -1
  274. package/dist/src/cards/shared/cards.serializer.js +1 -1
  275. package/dist/src/cards/shared/cards.validate.js +1 -1
  276. package/dist/src/common/analytics/amplitude-manager.js +1 -1
  277. package/dist/src/common/sentry/sentry-manager.js +1 -1
  278. package/dist/src/iframe/iframe-message-builder.js +1 -1
  279. package/dist/src/payment-links/client/payment-links.client.js +1 -1
  280. package/dist/src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.js +1 -1
  281. package/dist/src/sepa-transfers/client/sepa-transfers.client.js +1 -1
  282. package/dist/src/transactions/client/transactions.client.js +1 -1
  283. package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.js +1 -1
  284. package/dist/src/ui/customizable-components/amount-field/qonto-amount-field.styles.js +1 -1
  285. package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.js +1 -1
  286. package/dist/src/ui/customizable-components/badge-status/qonto-badge-status.styles.js +1 -1
  287. package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.js +1 -1
  288. package/dist/src/ui/customizable-components/beneficiary-card/qonto-beneficiary-card.styles.js +1 -1
  289. package/dist/src/ui/customizable-components/button/qonto-button.js +1 -1
  290. package/dist/src/ui/customizable-components/button/qonto-button.styles.js +1 -1
  291. package/dist/src/ui/customizable-components/icons/icon-checkmark-rounded-filled.js +1 -1
  292. package/dist/src/ui/customizable-components/icons/icon-clock-filled.js +1 -1
  293. package/dist/src/ui/customizable-components/icons/icon-declined.js +1 -1
  294. package/dist/src/ui/customizable-components/icons/icon-error-filled.js +1 -1
  295. package/dist/src/ui/customizable-components/icons/icon-in-progress.js +1 -1
  296. package/dist/src/ui/customizable-components/icons/icon-warning.js +1 -1
  297. package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.js +1 -1
  298. package/dist/src/ui/customizable-components/lottie-player/qonto-lottie-player.styles.js +1 -1
  299. package/dist/src/ui/customizable-components/select-field/qonto-option.js +1 -1
  300. package/dist/src/ui/customizable-components/select-field/qonto-select-field.js +1 -1
  301. package/dist/src/ui/customizable-components/select-field/qonto-select-field.styles.js +1 -1
  302. package/dist/src/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.js +1 -1
  303. package/dist/src/ui/customizable-components/skeleton-loader/qonto-skeleton-loader-line.styles.js +1 -1
  304. package/dist/src/ui/customizable-components/styles/component-styles/table-styles.js +1 -1
  305. package/dist/src/ui/customizable-components/styles/styles.css.js +1 -1
  306. package/dist/src/ui/customizable-components/text/qonto-text-body.js +1 -1
  307. package/dist/src/ui/customizable-components/text/qonto-text-body.styles.js +1 -1
  308. package/dist/src/ui/customizable-components/text/qonto-text-heading.js +1 -1
  309. package/dist/src/ui/customizable-components/text/qonto-text-heading.styles.js +1 -1
  310. package/dist/src/ui/customizable-components/text-field/qonto-text-field.js +1 -1
  311. package/dist/src/ui/customizable-components/text-field/qonto-text-field.styles.js +1 -1
  312. package/dist/src/ui/ui-elements/list-utils/list.utils.js +1 -1
  313. package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.js +1 -1
  314. package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.styles.js +1 -1
  315. package/dist/src/ui/ui-elements/sca-passkey/qonto-sca-passkey-waiting.utils.js +1 -1
  316. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.js +1 -1
  317. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.styles.js +1 -1
  318. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/beneficiary-selection-page.utils.js +1 -1
  319. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.js +1 -1
  320. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-details-page.styles.js +1 -1
  321. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.js +1 -1
  322. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-error-page.styles.js +1 -1
  323. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.js +1 -1
  324. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-success-page.styles.js +1 -1
  325. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.js +1 -1
  326. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.styles.js +1 -1
  327. package/dist/src/ui/ui-elements/sepa-transfer-creation/pages/transfer-summary-page.utils.js +1 -1
  328. package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.js +1 -1
  329. package/dist/src/ui/ui-elements/sepa-transfer-creation/sepa-transfer-creation.styles.js +1 -1
  330. package/dist/src/ui/ui-elements/transaction-list/transaction-list.js +1 -1
  331. package/dist/src/ui/ui-elements/transfer-list/transfer-list.js +1 -1
  332. package/dist/transactions/client/transactions.client.d.ts +3 -3
  333. package/dist/validation/operation-settings-validation.d.ts +2 -2
  334. package/package.json +38 -39
  335. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +0 -1
  336. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +0 -1
  337. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config.js +0 -1
  338. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js +0 -1
  339. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +0 -1
  340. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +0 -1
  341. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/types.js +0 -1
  342. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/version.js +0 -1
  343. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +0 -1
  344. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +0 -1
  345. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-observer.js +0 -1
  346. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +0 -1
  347. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +0 -1
  348. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +0 -1
  349. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +0 -1
  350. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +0 -1
  351. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +0 -1
  352. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +0 -1
  353. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +0 -1
  354. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +0 -1
  355. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +0 -1
  356. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +0 -1
  357. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +0 -1
  358. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +0 -1
  359. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +0 -1
  360. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +0 -1
  361. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js +0 -1
  362. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/dom.js +0 -1
  363. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js +0 -1
  364. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js +0 -1
  365. package/dist/node_modules/.pnpm/@sentry-internal_browser-utils@8.55.0/node_modules/@sentry-internal/browser-utils/build/esm/types.js +0 -1
  366. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/client.js +0 -1
  367. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/eventbuilder.js +0 -1
  368. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/helpers.js +0 -1
  369. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/breadcrumbs.js +0 -1
  370. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/browserapierrors.js +0 -1
  371. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/browsersession.js +0 -1
  372. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/globalhandlers.js +0 -1
  373. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/httpcontext.js +0 -1
  374. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/integrations/linkederrors.js +0 -1
  375. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/sdk.js +0 -1
  376. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/stack-parsers.js +0 -1
  377. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/transports/fetch.js +0 -1
  378. package/dist/node_modules/.pnpm/@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm/userfeedback.js +0 -1
  379. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js +0 -1
  380. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/baseclient.js +0 -1
  381. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/breadcrumbs.js +0 -1
  382. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/carrier.js +0 -1
  383. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/currentScopes.js +0 -1
  384. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/defaultScopes.js +0 -1
  385. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/envelope.js +0 -1
  386. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/eventProcessors.js +0 -1
  387. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/exports.js +0 -1
  388. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integration.js +0 -1
  389. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/dedupe.js +0 -1
  390. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/functiontostring.js +0 -1
  391. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/integrations/inboundfilters.js +0 -1
  392. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/metrics/metric-summary.js +0 -1
  393. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/scope.js +0 -1
  394. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/sdk.js +0 -1
  395. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/semanticAttributes.js +0 -1
  396. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/session.js +0 -1
  397. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js +0 -1
  398. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/transports/base.js +0 -1
  399. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/applyScopeDataToEvent.js +0 -1
  400. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/hasTracingEnabled.js +0 -1
  401. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/merge.js +0 -1
  402. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js +0 -1
  403. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/prepareEvent.js +0 -1
  404. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js +0 -1
  405. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/spanOnScope.js +0 -1
  406. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils/spanUtils.js +0 -1
  407. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/aggregate-errors.js +0 -1
  408. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/baggage.js +0 -1
  409. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/browser.js +0 -1
  410. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/debug-build.js +0 -1
  411. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/debug-ids.js +0 -1
  412. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/dsn.js +0 -1
  413. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/envelope.js +0 -1
  414. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/error.js +0 -1
  415. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/console.js +0 -1
  416. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/fetch.js +0 -1
  417. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/globalError.js +0 -1
  418. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/globalUnhandledRejection.js +0 -1
  419. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/instrument/handlers.js +0 -1
  420. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/is.js +0 -1
  421. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/logger.js +0 -1
  422. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/memo.js +0 -1
  423. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/misc.js +0 -1
  424. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/normalize.js +0 -1
  425. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/object.js +0 -1
  426. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/promisebuffer.js +0 -1
  427. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/ratelimit.js +0 -1
  428. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/stacktrace.js +0 -1
  429. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/string.js +0 -1
  430. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/supports.js +0 -1
  431. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/syncpromise.js +0 -1
  432. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/time.js +0 -1
  433. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/url.js +0 -1
  434. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/vendor/supportsHistory.js +0 -1
  435. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/version.js +0 -1
  436. package/dist/node_modules/.pnpm/@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist/worldwide.js +0 -1
  437. package/dist/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +0 -1
  438. package/dist/node_modules/.pnpm/web-vitals@5.0.1/node_modules/web-vitals/dist/web-vitals.js +0 -1
  439. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +0 -1
  440. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +0 -1
  441. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/config.js +0 -1
  442. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js +0 -1
  443. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +0 -1
  444. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +0 -1
  445. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/types.js +0 -1
  446. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.32.2/node_modules/@amplitude/analytics-browser/lib/esm/version.js +0 -1
  447. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +0 -1
  448. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +0 -1
  449. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/network-observer.js +0 -1
  450. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +0 -1
  451. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +0 -1
  452. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +0 -1
  453. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +0 -1
  454. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +0 -1
  455. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +0 -1
  456. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +0 -1
  457. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +0 -1
  458. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +0 -1
  459. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +0 -1
  460. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +0 -1
  461. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +0 -1
  462. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +0 -1
  463. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.18.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +0 -1
  464. package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.7.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +0 -1
  465. package/dist/server/node_modules/.pnpm/uuid@11.1.0/node_modules/uuid/dist/esm-browser/v4.js +0 -1
  466. package/dist/server/node_modules/.pnpm/web-vitals@5.0.1/node_modules/web-vitals/dist/web-vitals.js +0 -1
  467. package/dist/server/src/common/logger/logger.js +0 -1
  468. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/constants.js +0 -0
  469. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/det-notification.js +0 -0
  470. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/lib-prefix.js +0 -0
  471. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/utils/snippet-helper.js +0 -0
  472. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js +0 -0
  473. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/config.js +0 -0
  474. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js +0 -0
  475. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js +0 -0
  476. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/language.js +0 -0
  477. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/logger.js +0 -0
  478. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/query-params.js +0 -0
  479. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config-localstorage.js +0 -0
  480. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/session.js +0 -0
  481. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js +0 -0
  482. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +0 -0
  483. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js +0 -0
  484. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js +0 -0
  485. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js +0 -0
  486. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js +0 -0
  487. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js +0 -0
  488. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js +0 -0
  489. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js +0 -0
  490. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/status.js +0 -0
  491. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +0 -0
  492. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +0 -0
  493. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +0 -0
  494. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/sampling.js +0 -0
  495. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js +0 -0
  496. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js +0 -0
  497. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-change.js +0 -0
  498. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-click.js +0 -0
  499. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/actions.js +0 -0
  500. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/matchEventToFilter.js +0 -0
  501. /package/dist/node_modules/.pnpm/{@amplitude_plugin-network-capture-browser@1.7.2 → @amplitude_plugin-network-capture-browser@1.8.2}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/constants.js +0 -0
  502. /package/dist/node_modules/.pnpm/{@amplitude_plugin-page-view-tracking-browser@2.6.5 → @amplitude_plugin-page-view-tracking-browser@2.7.2}/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/utils.js +0 -0
  503. /package/dist/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.2 → @amplitude_plugin-web-vitals-browser@1.1.13}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/constants.js +0 -0
  504. /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/css-tag.js +0 -0
  505. /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/base.js +0 -0
  506. /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -0
  507. /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/query.js +0 -0
  508. /package/dist/node_modules/.pnpm/{@lit_reactive-element@2.1.1 → @lit_reactive-element@2.1.2}/node_modules/@lit/reactive-element/decorators/state.js +0 -0
  509. /package/dist/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3 → @rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3}/node_modules/tslib/tslib.es6.js +0 -0
  510. /package/dist/node_modules/.pnpm/{@sentry-internal_browser-utils@8.55.0 → @sentry-internal_browser-utils@10.39.0}/node_modules/@sentry-internal/browser-utils/build/esm/debug-build.js +0 -0
  511. /package/dist/node_modules/.pnpm/{@sentry_browser@8.55.0/node_modules/@sentry/browser/build/npm/esm → @sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod}/debug-build.js +0 -0
  512. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0 → @sentry_core@10.39.0}/node_modules/@sentry/core/build/esm/api.js +0 -0
  513. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0 → @sentry_core@10.39.0}/node_modules/@sentry/core/build/esm/asyncContext/index.js +0 -0
  514. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0 → @sentry_core@10.39.0}/node_modules/@sentry/core/build/esm/constants.js +0 -0
  515. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0 → @sentry_core@10.39.0}/node_modules/@sentry/core/build/esm/debug-build.js +0 -0
  516. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0 → @sentry_core@10.39.0}/node_modules/@sentry/core/build/esm/tracing/spanstatus.js +0 -0
  517. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist → @sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils}/breadcrumb-log-level.js +0 -0
  518. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist → @sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils}/clientreport.js +0 -0
  519. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist → @sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils}/env.js +0 -0
  520. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist → @sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils}/propagationContext.js +0 -0
  521. /package/dist/node_modules/.pnpm/{@sentry_core@8.55.0/node_modules/@sentry/core/build/esm/utils-hoist → @sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils}/severity.js +0 -0
  522. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/async-directive.js +0 -0
  523. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directive-helpers.js +0 -0
  524. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directive.js +0 -0
  525. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/directives/ref.js +0 -0
  526. /package/dist/node_modules/.pnpm/{lit-html@3.3.1 → lit-html@3.3.2}/node_modules/lit-html/static.js +0 -0
  527. /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/native.js +0 -0
  528. /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/rng.js +0 -0
  529. /package/dist/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/stringify.js +0 -0
  530. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/constants.js +0 -0
  531. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/det-notification.js +0 -0
  532. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/lib-prefix.js +0 -0
  533. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.32.2 → @amplitude_analytics-browser@2.35.3}/node_modules/@amplitude/analytics-browser/lib/esm/utils/snippet-helper.js +0 -0
  534. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js +0 -0
  535. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/config.js +0 -0
  536. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js +0 -0
  537. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js +0 -0
  538. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/language.js +0 -0
  539. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/logger.js +0 -0
  540. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/query-params.js +0 -0
  541. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config-localstorage.js +0 -0
  542. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/session.js +0 -0
  543. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js +0 -0
  544. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +0 -0
  545. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js +0 -0
  546. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js +0 -0
  547. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js +0 -0
  548. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js +0 -0
  549. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js +0 -0
  550. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js +0 -0
  551. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js +0 -0
  552. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/types/status.js +0 -0
  553. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +0 -0
  554. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +0 -0
  555. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +0 -0
  556. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/sampling.js +0 -0
  557. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js +0 -0
  558. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.34.1 → @amplitude_analytics-core@2.40.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js +0 -0
  559. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-change.js +0 -0
  560. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-click.js +0 -0
  561. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/actions.js +0 -0
  562. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.18.2 → @amplitude_plugin-autocapture-browser@1.22.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/matchEventToFilter.js +0 -0
  563. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-network-capture-browser@1.7.2 → @amplitude_plugin-network-capture-browser@1.8.2}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/constants.js +0 -0
  564. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-page-view-tracking-browser@2.6.5 → @amplitude_plugin-page-view-tracking-browser@2.7.2}/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/utils.js +0 -0
  565. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.2 → @amplitude_plugin-web-vitals-browser@1.1.13}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/constants.js +0 -0
  566. /package/dist/server/node_modules/.pnpm/{@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3 → @rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3}/node_modules/tslib/tslib.es6.js +0 -0
  567. /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/native.js +0 -0
  568. /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/rng.js +0 -0
  569. /package/dist/server/node_modules/.pnpm/{uuid@11.1.0/node_modules/uuid/dist/esm-browser → uuid@13.0.0/node_modules/uuid/dist}/stringify.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,2CAA2C,CAAC;AAGnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,2CAA2C,CAAC;AAInD,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAEpB,eAAe,EAEf,8BAA8B,EAC/B,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAK3D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA+BzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAY/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAkBpC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAqBrE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAqBxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAoBrE,CAAC;AAEF,eAAO,MAAM,wBAAwB,iEAC2B,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,cAuD1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,qBA2CzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8EzD,CAAC;AAGF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,EAAE,WAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,8BAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,CAAC,eAAe,CAI7E,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAuBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,WAAW,6BA26BvB,CAAC"}
1
+ {"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../src/mocks/handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,qBAAqB,EACtB,MAAM,2CAA2C,CAAC;AAGnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMhE,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,2CAA2C,CAAC;AAInD,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EAEpB,eAAe,EAEf,8BAA8B,EAC/B,MAAM,4DAA4D,CAAC;AAEpE,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAK3D,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA+BzD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,sBAchC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,qBAY/B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;CAOlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,qBAAqB,EAe1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,sBAkBpC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAqBrE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAqBxC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,sBAAsB,EAoBrE,CAAC;AAEF,eAAO,MAAM,wBAAwB,iEAC2B,CAAC;AAEjE,eAAO,MAAM,YAAY,EAAE,cAuD1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,qBA2CzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,qBAAqB,EA8EzD,CAAC;AAGF,eAAO,MAAM,kCAAkC,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,EAAE,WAYtC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,eAKtC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,8BAKnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,oBAAoB,CAAC,eAAe,CAI7E,CAAC;AAEJ,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;CAiB1C,CAAC;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;CAiB7C,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;CAuBzC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;CAI/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,2BAA2B,eAAe,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AAEX,eAAO,MAAM,WAAW,6BA67BvB,CAAC"}
@@ -1 +1 @@
1
- import{__rest as e,__assign as r,__read as i}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{BASE_CAMPAIGN as n}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";import{Identify as t}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js";import{createIdentifyEvent as s}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js";var a=function(e){var r=e.split(".");return r.length<=2?e:r.slice(r.length-2,r.length).join(".")},o=function(r,i,n,t,s){void 0===s&&(s=!0),r.referrer;var o=r.referring_domain,c=e(r,["referrer","referring_domain"]),l=i||{};l.referrer;var d=l.referring_domain,m=e(l,["referrer","referring_domain"]);if(u(n.excludeReferrers,r.referring_domain))return t.debug("This is not a new campaign because ".concat(r.referring_domain," is in the exclude referrer list.")),!1;if(!s&&function(e){return Object.values(e).every((function(e){return!e}))}(r)&&i)return t.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var f=JSON.stringify(c)!==JSON.stringify(m),p=a(o||"")!==a(d||""),g=!i||f||p;return g?t.debug("This is a new campaign. An $identify event will be sent."):t.debug("This is not a new campaign because it's the same as the previous one."),g},u=function(e,r){return void 0===e&&(e=[]),void 0===r&&(r=""),e.some((function(e){return e instanceof RegExp?e.test(r):e===r}))},c=function(e,a){var o=r(r({},n),e),u=Object.entries(o).reduce((function(e,r){var n,t=i(r,2),s=t[0],o=t[1];return e.setOnce("initial_".concat(s),null!==(n=null!=o?o:a.initialEmptyValue)&&void 0!==n?n:"EMPTY"),o?e.set(s,o):e.unset(s)}),new t);return s(u)},l=function(e){var r=e;return r?(r.startsWith(".")&&(r=r.substring(1)),[new RegExp("".concat(r.replace(".","\\."),"$"))]):[]};export{c as createCampaignEvent,l as getDefaultExcludedReferrers,u as isExcludedReferrer,o as isNewCampaign};
1
+ import{__rest as e,__assign as r,__read as i}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{BASE_CAMPAIGN as n}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";import{Identify as t}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js";import{createIdentifyEvent as s}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js";var a=function(e){var r=e.split(".");return r.length<=2?e:r.slice(r.length-2,r.length).join(".")},o=function(r,i,n,t,s){void 0===s&&(s=!0),r.referrer;var o=r.referring_domain,c=e(r,["referrer","referring_domain"]),l=i||{};l.referrer;var d=l.referring_domain,m=e(l,["referrer","referring_domain"]);if(u(n.excludeReferrers,r.referring_domain))return t.debug("This is not a new campaign because ".concat(r.referring_domain," is in the exclude referrer list.")),!1;if(!s&&function(e){return Object.values(e).every((function(e){return!e}))}(r)&&i)return t.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var f=JSON.stringify(c)!==JSON.stringify(m),p=a(o||"")!==a(d||""),g=!i||f||p;return g?t.debug("This is a new campaign. An $identify event will be sent."):t.debug("This is not a new campaign because it's the same as the previous one."),g},u=function(e,r){return void 0===e&&(e=[]),void 0===r&&(r=""),e.some((function(e){return e instanceof RegExp?e.test(r):e===r}))},c=function(e,a){var o=r(r({},n),e),u=Object.entries(o).reduce((function(e,r){var n,t=i(r,2),s=t[0],o=t[1];return e.setOnce("initial_".concat(s),null!==(n=null!=o?o:a.initialEmptyValue)&&void 0!==n?n:"EMPTY"),o?e.set(s,o):e.unset(s)}),new t);return s(u)},l=function(e){var r=e;return r?(r.startsWith(".")&&(r=r.substring(1)),[new RegExp("".concat(r.replace(".","\\."),"$"))]):[]};export{c as createCampaignEvent,l as getDefaultExcludedReferrers,u as isExcludedReferrer,o as isNewCampaign};
@@ -0,0 +1 @@
1
+ import{__assign as t,__awaiter as e,__generator as i,__read as s}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getDefaultExcludedReferrers as o,isNewCampaign as a,createCampaignEvent as r}from"./helpers.js";import{getStorageKey as n}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js";import{BASE_CAMPAIGN as p}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";import{isNewSession as l}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/session.js";import{CampaignParser as u}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js";var m=function(){function m(e,i){var s;this.shouldTrackNewCampaign=!1,this.options=t({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:o(null===(s=i.cookieOptions)||void 0===s?void 0:s.domain),optOut:i.optOut},e),this.storage=i.cookieStorage,this.storageKey=n(i.apiKey,"MKTG"),this.webExpStorageKey=n(i.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=p,this.sessionTimeout=i.sessionTimeout,this.lastEventTime=i.lastEventTime,this.logger=i.loggerProvider,i.loggerProvider.log("Installing web attribution tracking.")}return m.prototype.init=function(){return e(this,void 0,void 0,(function(){var t,e;return i(this,(function(i){switch(i.label){case 0:return this.options.optOut?[2]:[4,this.fetchCampaign()];case 1:return e=s.apply(void 0,[i.sent(),2]),this.currentCampaign=e[0],this.previousCampaign=e[1],t=!this.lastEventTime||l(this.sessionTimeout,this.lastEventTime),a(this.currentCampaign,this.previousCampaign,this.options,this.logger,t)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},m.prototype.fetchCampaign=function(){return e(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return(t=e.sent())?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:e.sent(),e.label=3;case 3:return[4,Promise.all([t||(new u).parse(),this.storage.get(this.storageKey)])];case 4:return[2,e.sent()]}}))}))},m.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var e=r(this.currentCampaign,this.options);return t&&(e.event_id=t),e},m.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},m}();export{m as WebAttribution};
@@ -1 +1 @@
1
- import{AmplitudeBrowser as e}from"./browser-client.js";import{debugWrapper as i,getClientStates as n,getClientLogConfig as t}from"../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js";var d=function(){var d=new e;return{init:i(d.init.bind(d),"init",t(d),n(d,["config"])),add:i(d.add.bind(d),"add",t(d),n(d,["config.apiKey","timeline.plugins"])),remove:i(d.remove.bind(d),"remove",t(d),n(d,["config.apiKey","timeline.plugins"])),track:i(d.track.bind(d),"track",t(d),n(d,["config.apiKey","timeline.queue.length"])),logEvent:i(d.logEvent.bind(d),"logEvent",t(d),n(d,["config.apiKey","timeline.queue.length"])),identify:i(d.identify.bind(d),"identify",t(d),n(d,["config.apiKey","timeline.queue.length"])),groupIdentify:i(d.groupIdentify.bind(d),"groupIdentify",t(d),n(d,["config.apiKey","timeline.queue.length"])),setGroup:i(d.setGroup.bind(d),"setGroup",t(d),n(d,["config.apiKey","timeline.queue.length"])),revenue:i(d.revenue.bind(d),"revenue",t(d),n(d,["config.apiKey","timeline.queue.length"])),flush:i(d.flush.bind(d),"flush",t(d),n(d,["config.apiKey","timeline.queue.length"])),getUserId:i(d.getUserId.bind(d),"getUserId",t(d),n(d,["config","config.userId"])),setUserId:i(d.setUserId.bind(d),"setUserId",t(d),n(d,["config","config.userId"])),getDeviceId:i(d.getDeviceId.bind(d),"getDeviceId",t(d),n(d,["config","config.deviceId"])),setDeviceId:i(d.setDeviceId.bind(d),"setDeviceId",t(d),n(d,["config","config.deviceId"])),reset:i(d.reset.bind(d),"reset",t(d),n(d,["config","config.userId","config.deviceId"])),getSessionId:i(d.getSessionId.bind(d),"getSessionId",t(d),n(d,["config"])),setSessionId:i(d.setSessionId.bind(d),"setSessionId",t(d),n(d,["config"])),extendSession:i(d.extendSession.bind(d),"extendSession",t(d),n(d,["config"])),setOptOut:i(d.setOptOut.bind(d),"setOptOut",t(d),n(d,["config"])),setTransport:i(d.setTransport.bind(d),"setTransport",t(d),n(d,["config"])),getIdentity:i(d.getIdentity.bind(d),"getIdentity",t(d),n(d,["config"])),getOptOut:i(d.getOptOut.bind(d),"getOptOut",t(d),n(d,["config"])),_setDiagnosticsSampleRate:i(d._setDiagnosticsSampleRate.bind(d),"_setDiagnosticsSampleRate",t(d),n(d,["config"]))}},s=d();export{d as createInstance,s as default};
1
+ import{AmplitudeBrowser as e}from"./browser-client.js";import{debugWrapper as i,getClientStates as n,getClientLogConfig as t}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js";var d=function(){var d=new e;return{init:i(d.init.bind(d),"init",t(d),n(d,["config"])),add:i(d.add.bind(d),"add",t(d),n(d,["config.apiKey","timeline.plugins"])),remove:i(d.remove.bind(d),"remove",t(d),n(d,["config.apiKey","timeline.plugins"])),track:i(d.track.bind(d),"track",t(d),n(d,["config.apiKey","timeline.queue.length"])),logEvent:i(d.logEvent.bind(d),"logEvent",t(d),n(d,["config.apiKey","timeline.queue.length"])),identify:i(d.identify.bind(d),"identify",t(d),n(d,["config.apiKey","timeline.queue.length"])),groupIdentify:i(d.groupIdentify.bind(d),"groupIdentify",t(d),n(d,["config.apiKey","timeline.queue.length"])),setGroup:i(d.setGroup.bind(d),"setGroup",t(d),n(d,["config.apiKey","timeline.queue.length"])),revenue:i(d.revenue.bind(d),"revenue",t(d),n(d,["config.apiKey","timeline.queue.length"])),flush:i(d.flush.bind(d),"flush",t(d),n(d,["config.apiKey","timeline.queue.length"])),getUserId:i(d.getUserId.bind(d),"getUserId",t(d),n(d,["config","config.userId"])),setUserId:i(d.setUserId.bind(d),"setUserId",t(d),n(d,["config","config.userId"])),getDeviceId:i(d.getDeviceId.bind(d),"getDeviceId",t(d),n(d,["config","config.deviceId"])),setDeviceId:i(d.setDeviceId.bind(d),"setDeviceId",t(d),n(d,["config","config.deviceId"])),reset:i(d.reset.bind(d),"reset",t(d),n(d,["config","config.userId","config.deviceId"])),getSessionId:i(d.getSessionId.bind(d),"getSessionId",t(d),n(d,["config"])),setSessionId:i(d.setSessionId.bind(d),"setSessionId",t(d),n(d,["config"])),extendSession:i(d.extendSession.bind(d),"extendSession",t(d),n(d,["config"])),setOptOut:i(d.setOptOut.bind(d),"setOptOut",t(d),n(d,["config"])),setTransport:i(d.setTransport.bind(d),"setTransport",t(d),n(d,["config"])),getIdentity:i(d.getIdentity.bind(d),"getIdentity",t(d),n(d,["config"])),setIdentity:i(d.setIdentity.bind(d),"setIdentity",t(d),n(d,["config","config.userId","config.deviceId"])),getOptOut:i(d.getOptOut.bind(d),"getOptOut",t(d),n(d,["config"])),_setDiagnosticsSampleRate:i(d._setDiagnosticsSampleRate.bind(d),"_setDiagnosticsSampleRate",t(d),n(d,["config"]))}},s=d();export{d as createInstance,s as default};
@@ -0,0 +1 @@
1
+ import{__extends as i,__assign as e,__awaiter as t,__values as s,__read as n,__generator as o,__rest as r}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{isSessionTrackingEnabled as a,isPageUrlEnrichmentEnabled as d,isWebVitalsEnabled as c,isNetworkTrackingEnabled as u,getNetworkTrackingConfig as l,isFrustrationInteractionsEnabled as p,getFrustrationInteractionsConfig as g,isElementInteractionsEnabled as m,getElementInteractionsConfig as f,getPageViewTrackingConfig as h,isPageViewTrackingEnabled as v,isFormInteractionTrackingEnabled as b,isFileDownloadTrackingEnabled as y,isAttributionTrackingEnabled as I,getAttributionTrackingConfig as _}from"./default-tracking.js";import{isInstanceProxy as w,convertProxyObjectToRealObject as j}from"./utils/snippet-helper.js";import{Context as S}from"./plugins/context.js";import{createTransport as k,useBrowserConfig as P,shouldFetchRemoteConfig as T}from"./config.js";import{formInteractionTracking as D}from"./plugins/form-interaction-tracking.js";import{fileDownloadTracking as A}from"./plugins/file-download-tracking.js";import{DEFAULT_SESSION_END_EVENT as O,DEFAULT_SESSION_START_EVENT as C,DEFAULT_SERVER_ZONE as N}from"./constants.js";import{detNotify as E}from"./det-notification.js";import{networkConnectivityCheckerPlugin as q}from"./plugins/network-connectivity-checker.js";import{updateBrowserConfigWithRemoteConfig as R}from"./config/joined-config.js";import{WebAttribution as U}from"./attribution/web-attribution.js";import{LIBPREFIX as K}from"./lib-prefix.js";import{VERSION as x}from"./version.js";import{returnWrapper as z}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js";import{setConnectorUserId as B,setConnectorDeviceId as F,getAnalyticsConnector as L}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js";import{UUID as J}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";import{Identify as Q}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js";import{createIdentifyEvent as Z}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js";import{safeJsonStringify as G}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js";import{AmplitudeCore as H}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js";import{pageUrlEnrichmentPlugin as M}from"../../../../../../@amplitude_plugin-page-url-enrichment-browser@0.6.2/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js";import{webVitalsPlugin as V}from"../../../../../../@amplitude_plugin-web-vitals-browser@1.1.13/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js";import{networkCapturePlugin as W}from"../../../../../../@amplitude_plugin-network-capture-browser@1.8.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js";import{frustrationPlugin as X}from"../../../../../../@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js";import{autocapturePlugin as Y}from"../../../../../../@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js";import{pageViewTrackingPlugin as $}from"../../../../../../@amplitude_plugin-page-view-tracking-browser@2.7.2/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js";import{IdentityEventSender as ii}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js";import{Destination as ei}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js";import{getQueryParams as ti}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/query-params.js";import{OfflineDisabled as si}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js";import{DiagnosticsClient as ni}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js";import{Logger as oi}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js";import{RemoteConfigClient as ri}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js";import{Revenue as ai}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js";import{isNewSession as di}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/session.js";var ci=function(H){function ci(){var i=null!==H&&H.apply(this,arguments)||this;return i._diagnosticsSampleRate=0,i}return i(ci,H),ci.prototype.init=function(i,t,s){var n,o;return void 0===i&&(i=""),arguments.length>2?(n=t,o=s):"string"==typeof t?(n=t,o=void 0):(n=null==t?void 0:t.userId,o=t),z(this._init(e(e({},o),{userId:n,apiKey:i})))},ci.prototype._init=function(i){var e,s,n,a,w,j,k;return t(this,void 0,void 0,(function(){var O,C,z,B,F,J,Q,Z,G,ai,di,ci,ui,li,pi,gi=this;return o(this,(function(mi){switch(mi.label){case 0:return this.initializing?[2]:(this.initializing=!0,O=T(i),C=null!==(e=i.loggerProvider)&&void 0!==e?e:new oi,z=null!==(s=i.serverZone)&&void 0!==s?s:N,F=this._diagnosticsSampleRate,J=null===(n=i.enableDiagnostics)||void 0===n||n,O?(B=new ri(i.apiKey,C,z,null===(a=i.remoteConfig)||void 0===a?void 0:a.serverUrl),[4,new Promise((function(i){null==B||B.subscribe("configs.diagnostics.browserSDK","all",(function(e,t,s){if(C.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:e,source:t,lastFetch:s},null,2)),e){var n=e.sampleRate;"number"!=typeof n||isNaN(n)||(F=n);var o=e.enabled;"boolean"==typeof o&&(J=o)}i()}))}))]):[3,2]);case 1:mi.sent(),mi.label=2;case 2:return(Q=new ni(i.apiKey,C,z,{enabled:J,sampleRate:F})).setTag("library","".concat(K,"/").concat(x)),"undefined"!=typeof navigator&&Q.setTag("user_agent",navigator.userAgent),[4,P(i.apiKey,i,this,Q,{loggerProvider:C,serverZone:z,enableDiagnostics:J,diagnosticsSampleRate:F})];case 3:return Z=mi.sent(),O&&B?[4,new Promise((function(i){null==B||B.subscribe("configs.analyticsSDK.browserSDK","all",(function(e,t,s){Z.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:e,source:t,lastFetch:s},null,2)),e&&R(e,Z),i()}))}))]:[3,5];case 4:mi.sent(),mi.label=5;case 5:return[4,H.prototype._init.call(this,Z)];case 6:return mi.sent(),this.logBrowserOptions(Z),this.config.remoteConfigClient=B,I(this.config.defaultTracking)?(this.config.optOut&&this.timeline.addOptOutListener((function(i){return t(gi,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return i?[3,2]:(e=_(this.config),this.webAttribution=new U(e,this.config),[4,this.webAttribution.init()]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})),G=_(this.config),this.webAttribution=new U(G,this.config),[4,this.webAttribution.init()]):[3,8];case 7:mi.sent(),mi.label=8;case 8:return ai=ti(),di=ai.ampTimestamp?Number(ai.ampTimestamp):void 0,ci=!di||Date.now()<di,ui=ci&&!Number.isNaN(Number(ai.ampSessionId))?Number(ai.ampSessionId):void 0,-1!==(li=this.config.deferredSessionId)||this.config.optOut||(li=Date.now()),this.setSessionId(null!==(k=null!==(j=null!==(w=i.sessionId)&&void 0!==w?w:ui)&&void 0!==j?j:li)&&void 0!==k?k:this.config.sessionId),this.config.optOut&&this.timeline.addOptOutListener((function(i){return t(gi,void 0,void 0,(function(){return o(this,(function(e){return!i&&this.config.deferredSessionId&&(-1===this.config.deferredSessionId?this.setSessionId(void 0):this.setSessionId(this.config.deferredSessionId)),[2]}))}))})),(pi=L(i.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===si?[3,10]:[4,this.add(q()).promise];case 9:mi.sent(),mi.label=10;case 10:return[4,this.add(new ei({diagnosticsClient:Q})).promise];case 11:return mi.sent(),[4,this.add(new S).promise];case 12:return mi.sent(),[4,this.add(new ii).promise];case 13:return mi.sent(),E(this.config),y(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(A()).promise]):[3,15];case 14:mi.sent(),mi.label=15;case 15:return b(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(D()).promise]):[3,17];case 16:mi.sent(),mi.label=17;case 17:return v(this.config.defaultTracking)?this.config.optOut?[3,19]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add($(h(this.config))).promise]):[3,20];case 18:return mi.sent(),[3,20];case 19:this.timeline.addOptOutListener((function(i){return t(gi,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return i?[2]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add($(h(this.config))).promise]);case 1:return e.sent(),[2]}}))}))})),mi.label=20;case 20:return m(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(Y(f(this.config),{diagnosticsClient:Q})).promise]):[3,22];case 21:mi.sent(),mi.label=22;case 22:return p(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(X(g(this.config))).promise]):[3,24];case 23:mi.sent(),mi.label=24;case 24:return u(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(W(l(this.config))).promise]):[3,26];case 25:mi.sent(),mi.label=26;case 26:return c(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(V()).promise]):[3,28];case 27:mi.sent(),mi.label=28;case 28:return d(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(M()).promise]):[3,30];case 29:mi.sent(),mi.label=30;case 30:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 31:return mi.sent(),pi.eventBridge.setEventReceiver((function(i){var e=i.eventProperties||{},t=e.time,s=r(e,["time"]),n="number"==typeof t?{time:t}:void 0;gi.track(i.eventType,s,n)})),[2]}}))}))},ci.prototype.getUserId=function(){var i;return null===(i=this.config)||void 0===i?void 0:i.userId},ci.prototype.setUserId=function(i){this.config?(this.config.loggerProvider.debug("function setUserId: ",i),i===this.config.userId&&void 0!==i||(this.config.userId=i,this.timeline.onIdentityChanged({userId:i}),B(i,this.config.instanceName))):this.q.push(this.setUserId.bind(this,i))},ci.prototype.getDeviceId=function(){var i;return null===(i=this.config)||void 0===i?void 0:i.deviceId},ci.prototype.setDeviceId=function(i){this.config?(this.config.loggerProvider.debug("function setDeviceId: ",i),i!==this.config.deviceId&&(this.config.deviceId=i,this.timeline.onIdentityChanged({deviceId:i}),F(i,this.config.instanceName))):this.q.push(this.setDeviceId.bind(this,i))},ci.prototype.reset=function(){this.setDeviceId(J()),this.setUserId(void 0),this.timeline.onReset()},ci.prototype.getIdentity=function(){var i,e;return{deviceId:null===(i=this.config)||void 0===i?void 0:i.deviceId,userId:null===(e=this.config)||void 0===e?void 0:e.userId,userProperties:this.userProperties}},ci.prototype.setIdentity=function(i){var e,t,o;if("userId"in i&&this.setUserId(i.userId),"deviceId"in i&&i.deviceId&&this.setDeviceId(i.deviceId),"userProperties"in i){this.userProperties=i.userProperties;var r=new Q,a=null!==(o=i.userProperties)&&void 0!==o?o:{};try{for(var d=s(Object.entries(a)),c=d.next();!c.done;c=d.next()){var u=n(c.value,2),l=u[0],p=u[1];r.set(l,p)}}catch(i){e={error:i}}finally{try{c&&!c.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}this.identify(r)}},ci.prototype.getOptOut=function(){var i;return null===(i=this.config)||void 0===i?void 0:i.optOut},ci.prototype.getSessionId=function(){var i;return null===(i=this.config)||void 0===i?void 0:i.sessionId},ci.prototype.setSessionId=function(i){var e,t=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,i)),z(Promise.resolve());if(this.config.optOut)return this.config.deferredSessionId=null!=i?i:-1,z(Promise.resolve());if(void 0===i&&(i=Date.now()),i===this.config.sessionId)return z(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",i);var s=this.getSessionId();s!==i&&this.timeline.onSessionIdChanged(i);var n=this.config.lastEventTime,o=null!==(e=this.config.lastEventId)&&void 0!==e?e:-1;this.config.sessionId=i,this.config.lastEventTime=void 0,this.config.pageCounter=0,a(this.config.defaultTracking)&&(s&&n&&t.push(this.track(O,void 0,{device_id:this.previousSessionDeviceId,event_id:++o,session_id:s,time:n+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var r=this.trackCampaignEventIfNeeded(++o,t);return this.config.identify&&t.push(this.track(Z(this.config.identify)).promise),a(this.config.defaultTracking)&&t.push(this.track(C,void 0,{event_id:r?++o:o,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,z(Promise.all(t))},ci.prototype.extendSession=function(){this.config?this.config.lastEventTime=Date.now():this.q.push(this.extendSession.bind(this))},ci.prototype.setTransport=function(i){this.config?this.config.transportProvider=k(i):this.q.push(this.setTransport.bind(this,i))},ci.prototype.identify=function(i,e){if(w(i)){var t=i._q;i._q=[],i=j(new Q,t)}return(null==e?void 0:e.user_id)&&this.setUserId(e.user_id),(null==e?void 0:e.device_id)&&this.setDeviceId(e.device_id),H.prototype.identify.call(this,i,e)},ci.prototype.groupIdentify=function(i,e,t,s){if(w(t)){var n=t._q;t._q=[],t=j(new Q,n)}return H.prototype.groupIdentify.call(this,i,e,t,s)},ci.prototype.revenue=function(i,e){if(w(i)){var t=i._q;i._q=[],i=j(new ai,t)}return H.prototype.revenue.call(this,i,e)},ci.prototype.trackCampaignEventIfNeeded=function(i,e){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var t=this.webAttribution.generateCampaignEvent(i);return e?e.push(this.track(t).promise):this.track(t),this.config.loggerProvider.log("Tracking attribution."),!0},ci.prototype.process=function(i){return t(this,void 0,void 0,(function(){var e,t,s;return o(this,(function(n){return e=Date.now(),t=di(this.config.sessionTimeout,this.config.lastEventTime),s=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),i.event_type===C||i.event_type===O||i.session_id&&i.session_id!==this.getSessionId()||(t||s?(this.setSessionId(e),s&&this.config.loggerProvider.log("Created a new session for new campaign.")):t||this.trackCampaignEventIfNeeded()),[2,H.prototype.process.call(this,i)]}))}))},ci.prototype.logBrowserOptions=function(i){try{var t=e(e({},i),{apiKey:i.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",G(t))}catch(i){this.config.loggerProvider.error("Error logging browser config",i)}},ci.prototype._setDiagnosticsSampleRate=function(i){i>1||i<0||this.config||(this._diagnosticsSampleRate=i)},ci}(H);export{ci as AmplitudeBrowser};
@@ -1 +1 @@
1
- import{__assign as e,__values as t,__spreadArray as r,__read as a}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{SAFE_HEADERS as o}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";function l(e){var n,u,i,c,p,d,s,f,v,g,y;if("object"==typeof e&&null!==e&&!Array.isArray(e)){var k=Object.keys(e);try{for(var w=t(k),b=w.next();!b.done;b=w.next()){var m=b.value;try{var h=e[m];"boolean"==typeof(null==h?void 0:h.enabled)&&(h.enabled?(delete h.enabled,0===Object.keys(h).length&&(e[m]=!0)):e[m]=!1),l(h)}catch(e){}}}catch(e){n={error:e}}finally{try{b&&!b.done&&(u=w.return)&&u.call(w)}finally{if(n)throw n.error}}try{if(null===(v=null===(f=null===(s=e.autocapture)||void 0===s?void 0:s.networkTracking)||void 0===f?void 0:f.captureRules)||void 0===v?void 0:v.length)try{for(var x=t(e.autocapture.networkTracking.captureRules),I=x.next();!I.done;I=x.next()){var R=I.value;try{for(var j=(p=void 0,t(["responseHeaders","requestHeaders"])),A=j.next();!A.done;A=j.next()){var T=A.value,C=null!==(g=R[T])&&void 0!==g?g:{},_=C.captureSafeHeaders,U=C.allowlist;(_||U)&&(void 0===U||Array.isArray(U)?R[T]=r(r([],a(_?o:[]),!1),a(null!=U?U:[]),!1):delete R[T])}}catch(e){p={error:e}}finally{try{A&&!A.done&&(d=j.return)&&d.call(j)}finally{if(p)throw p.error}}}}catch(e){i={error:e}}finally{try{I&&!I.done&&(c=x.return)&&c.call(x)}finally{if(i)throw i.error}}}catch(e){}var O=null===(y=e.autocapture)||void 0===y?void 0:y.frustrationInteractions;O&&(O.rageClick&&(O.rageClicks=O.rageClick,delete O.rageClick),O.deadClick&&(O.deadClicks=O.deadClick,delete O.deadClick))}}function n(e,r,a){var o,l,n=[];try{for(var u=t(null!=r?r:[]),i=u.next();!i.done;i=u.next()){var c=i.value;try{n.push(new RegExp(c))}catch(e){a.loggerProvider.warn("Invalid regex pattern: ".concat(c),e)}}}catch(e){o={error:e}}finally{try{i&&!i.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}return e.concat(n)}function u(r,a){var o,u,i,c,p,d,s;if(r){l(r);try{a.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(r));var f=r;if(f&&"autocapture"in f){if("boolean"==typeof f.autocapture&&(a.autocapture=f.autocapture),"object"==typeof f.autocapture&&null!==f.autocapture){var v=e({},f.autocapture);if(void 0===a.autocapture&&(a.autocapture=f.autocapture),"object"==typeof f.autocapture.elementInteractions&&null!==f.autocapture.elementInteractions&&(null===(i=f.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===i?void 0:i.length)){v.elementInteractions=e({},f.autocapture.elementInteractions);var g=v.elementInteractions,y=null!==(c=g.pageUrlAllowlist)&&void 0!==c?c:[],k=f.autocapture.elementInteractions.pageUrlAllowlistRegex;g.pageUrlAllowlist=n(y,k,a),delete g.pageUrlAllowlistRegex}if("object"==typeof f.autocapture.networkTracking&&null!==f.autocapture.networkTracking&&(null===(p=f.autocapture.networkTracking.captureRules)||void 0===p?void 0:p.length)){v.networkTracking=e({},f.autocapture.networkTracking);var w=null!==(d=v.networkTracking.captureRules)&&void 0!==d?d:[];try{for(var b=t(w),m=b.next();!m.done;m=b.next()){var h=m.value;h.urls=n(null!==(s=h.urls)&&void 0!==s?s:[],h.urlsRegex,a),delete h.urlsRegex}}catch(e){o={error:e}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(o)throw o.error}}}"boolean"==typeof a.autocapture&&(a.autocapture=e({attribution:a.autocapture,fileDownloads:a.autocapture,formInteractions:a.autocapture,pageViews:a.autocapture,sessions:a.autocapture,elementInteractions:a.autocapture,webVitals:a.autocapture,frustrationInteractions:a.autocapture},v)),"object"==typeof a.autocapture&&(a.autocapture=e(e({},a.autocapture),v))}a.defaultTracking=a.autocapture}a.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(a))}catch(e){a.loggerProvider.error("Failed to apply remote configuration because of error: ",e)}}}export{l as translateRemoteConfigToLocal,u as updateBrowserConfigWithRemoteConfig};
1
+ import{__assign as e,__values as t,__spreadArray as r,__read as a}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{SAFE_HEADERS as o}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";function l(e){var n,u,i,c,p,d,s,f,v,g,y;if("object"==typeof e&&null!==e&&!Array.isArray(e)){var k=Object.keys(e);try{for(var w=t(k),b=w.next();!b.done;b=w.next()){var m=b.value;try{var h=e[m];"boolean"==typeof(null==h?void 0:h.enabled)&&(h.enabled?(delete h.enabled,0===Object.keys(h).length&&(e[m]=!0)):e[m]=!1),l(h)}catch(e){}}}catch(e){n={error:e}}finally{try{b&&!b.done&&(u=w.return)&&u.call(w)}finally{if(n)throw n.error}}try{if(null===(v=null===(f=null===(s=e.autocapture)||void 0===s?void 0:s.networkTracking)||void 0===f?void 0:f.captureRules)||void 0===v?void 0:v.length)try{for(var x=t(e.autocapture.networkTracking.captureRules),I=x.next();!I.done;I=x.next()){var R=I.value;try{for(var j=(p=void 0,t(["responseHeaders","requestHeaders"])),A=j.next();!A.done;A=j.next()){var T=A.value,C=null!==(g=R[T])&&void 0!==g?g:{},_=C.captureSafeHeaders,U=C.allowlist;(_||U)&&(void 0===U||Array.isArray(U)?R[T]=r(r([],a(_?o:[]),!1),a(null!=U?U:[]),!1):delete R[T])}}catch(e){p={error:e}}finally{try{A&&!A.done&&(d=j.return)&&d.call(j)}finally{if(p)throw p.error}}}}catch(e){i={error:e}}finally{try{I&&!I.done&&(c=x.return)&&c.call(x)}finally{if(i)throw i.error}}}catch(e){}var O=null===(y=e.autocapture)||void 0===y?void 0:y.frustrationInteractions;O&&(O.rageClick&&(O.rageClicks=O.rageClick,delete O.rageClick),O.deadClick&&(O.deadClicks=O.deadClick,delete O.deadClick))}}function n(e,r,a){var o,l,n=[];try{for(var u=t(null!=r?r:[]),i=u.next();!i.done;i=u.next()){var c=i.value;try{n.push(new RegExp(c))}catch(e){a.loggerProvider.warn("Invalid regex pattern: ".concat(c),e)}}}catch(e){o={error:e}}finally{try{i&&!i.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}return e.concat(n)}function u(r,a){var o,u,i,c,p,d,s;if(r){l(r);try{a.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(r));var f=r;if(f&&"autocapture"in f){if("boolean"==typeof f.autocapture&&(a.autocapture=f.autocapture),"object"==typeof f.autocapture&&null!==f.autocapture){var v=e({},f.autocapture);if(void 0===a.autocapture&&(a.autocapture=f.autocapture),"object"==typeof f.autocapture.elementInteractions&&null!==f.autocapture.elementInteractions&&(null===(i=f.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===i?void 0:i.length)){v.elementInteractions=e({},f.autocapture.elementInteractions);var g=v.elementInteractions,y=null!==(c=g.pageUrlAllowlist)&&void 0!==c?c:[],k=f.autocapture.elementInteractions.pageUrlAllowlistRegex;g.pageUrlAllowlist=n(y,k,a),delete g.pageUrlAllowlistRegex}if("object"==typeof f.autocapture.networkTracking&&null!==f.autocapture.networkTracking&&(null===(p=f.autocapture.networkTracking.captureRules)||void 0===p?void 0:p.length)){v.networkTracking=e({},f.autocapture.networkTracking);var w=null!==(d=v.networkTracking.captureRules)&&void 0!==d?d:[];try{for(var b=t(w),m=b.next();!m.done;m=b.next()){var h=m.value;h.urls=n(null!==(s=h.urls)&&void 0!==s?s:[],h.urlsRegex,a),delete h.urlsRegex}}catch(e){o={error:e}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(o)throw o.error}}}"boolean"==typeof a.autocapture&&(a.autocapture=e({attribution:a.autocapture,fileDownloads:a.autocapture,formInteractions:a.autocapture,pageViews:a.autocapture,sessions:a.autocapture,elementInteractions:a.autocapture,webVitals:a.autocapture,frustrationInteractions:a.autocapture},v)),"object"==typeof a.autocapture&&(a.autocapture=e(e({},a.autocapture),v))}a.defaultTracking=a.autocapture}a.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(a))}catch(e){a.loggerProvider.error("Failed to apply remote configuration because of error: ",e)}}}export{l as translateRemoteConfigToLocal,u as updateBrowserConfigWithRemoteConfig};
@@ -0,0 +1 @@
1
+ import{__extends as e,__awaiter as t,__generator as o,__assign as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{LocalStorage as n}from"./storage/local-storage.js";import{SessionStorage as r}from"./storage/session-storage.js";import{XHRTransport as s}from"./transports/xhr.js";import{SendBeaconTransport as a}from"./transports/send-beacon.js";import{parseLegacyCookies as d}from"./cookie-migration/index.js";import{DEFAULT_IDENTITY_STORAGE as l,DEFAULT_SERVER_ZONE as u}from"./constants.js";import{VERSION as c}from"./version.js";import{FetchTransport as p}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js";import{Logger as v}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js";import{LogLevel as g}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js";import{CookieStorage as m,decodeCookieValue as f,isDomainEqual as h}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js";import{getCookieName as b}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js";import{Config as _}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/config.js";import{MemoryStorage as I}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js";import{getQueryParams as y}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/query-params.js";import{UUID as S}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";var O=function(t){function o(e,o,i,r,s,a,d,p,m,f,h,b,_,y,S,O,k,j,E,P,w,T,L,R,D,x,M,A,N,K,U,Z,z,B,F,Q,V,q,J,W,G){void 0===i&&(i=new I),void 0===r&&(r={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===p&&(p=1e3),void 0===m&&(m=5),void 0===f&&(f=30),void 0===h&&(h=l),void 0===O&&(O=new v),void 0===k&&(k=g.Warn),void 0===E&&(E=!1),void 0===P&&(P=!1),void 0===L&&(L=""),void 0===R&&(R=u),void 0===M&&(M=18e5),void 0===A&&(A=new n({loggerProvider:O})),void 0===N&&(N={ipAddress:!0,language:!0,platform:!0}),void 0===K&&(K="fetch"),void 0===U&&(U=!1),void 0===Z&&(Z=!0),void 0===q&&(q=!0),void 0===J&&(J=0);var H,X=this;(X=t.call(this,{apiKey:e,storageProvider:A,transportProvider:C(K)})||this).apiKey=e,X.appVersion=o,X.cookieOptions=r,X.defaultTracking=s,X.autocapture=a,X.flushIntervalMillis=p,X.flushMaxRetries=m,X.flushQueueSize=f,X.identityStorage=h,X.ingestionMetadata=b,X.instanceName=_,X.loggerProvider=O,X.logLevel=k,X.minIdLength=j,X.offline=E,X.partnerId=w,X.plan=T,X.serverUrl=L,X.serverZone=R,X.sessionTimeout=M,X.storageProvider=A,X.trackingOptions=N,X.transport=K,X.useBatch=U,X.fetchRemoteConfig=Z,X.networkTrackingOptions=Q,X.identify=V,X.enableDiagnostics=q,X.diagnosticsSampleRate=J,X.diagnosticsClient=W,X.remoteConfig=G,X.version=c,X._optOut=!1,X._cookieStorage=i,X.deviceId=d,X.lastEventId=y,X.lastEventTime=S,X.optOut=P,X.deferredSessionId=x,X.sessionId=D,X.pageCounter=B,X.userId=z,X.debugLogsEnabled=F,X.loggerProvider.enable(F?g.Debug:X.logLevel),X.networkTrackingOptions=Q,X.identify=V,X.enableDiagnostics=q,X.diagnosticsSampleRate=J,X.diagnosticsClient=W;var Y=null!==(H=null==G?void 0:G.fetchRemoteConfig)&&void 0!==H?H:Z;return X.remoteConfig=X.remoteConfig||{},X.remoteConfig.fetchRemoteConfig=Y,X.fetchRemoteConfig=Y,X}return e(o,t),Object.defineProperty(o.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,void 0!==e&&void 0!==this._deferredSessionId&&(this._deferredSessionId=void 0),this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"deferredSessionId",{get:function(){return this._deferredSessionId},set:function(e){this._deferredSessionId!==e&&e!==this.sessionId&&(this._deferredSessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),o.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,deferredSessionId:this._deferredSessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof m&&(e.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(b(this.apiKey),e)},o}(_),k=function(e,n,r,s,a){return void 0===n&&(n={}),t(void 0,void 0,void 0,(function(){var t,u,c,p,v,g,m,_,k,E,C,w,T,L,R,D,x,M,A,N,K,U,Z,z,B,F,Q,V,q,J,W,G,H,X,Y,$,ee,te,oe,ie,ne,re,se,ae,de,le,ue,ce,pe,ve,ge;return o(this,(function(o){switch(o.label){case 0:return t=n.identityStorage||l,Z={},t===l?[3,1]:(c="",[3,5]);case 1:return null===(B=null===(z=n.cookieOptions)||void 0===z?void 0:z.domain)||void 0===B?[3,2]:(p=B,[3,4]);case 2:return[4,P()];case 3:p=o.sent(),o.label=4;case 4:c=p,o.label=5;case 5:return u=i.apply(void 0,[(Z.domain=c,Z.expiration=365,Z.sameSite="Lax",Z.secure=!1,Z.upgrade=!0,Z),n.cookieOptions]),v={duplicateResolverFn:function(e){var t=f(e);if(!t)return!1;var o=JSON.parse(t);return h(o.cookieDomain,u.domain)},diagnosticsClient:s},g=j(n.identityStorage,u,v),[4,d(e,g,null===(Q=null===(F=n.cookieOptions)||void 0===F?void 0:F.upgrade)||void 0===Q||Q)];case 6:return m=o.sent(),[4,g.get(b(e))];case 7:return _=o.sent(),k=y(),E=k.ampTimestamp?Number(k.ampTimestamp):void 0,C=!E||Date.now()<E,w=null!==(G=null!==(W=null!==(J=null!==(V=n.deviceId)&&void 0!==V?V:C?null!==(q=k.ampDeviceId)&&void 0!==q?q:k.deviceId:void 0)&&void 0!==J?J:null==_?void 0:_.deviceId)&&void 0!==W?W:m.deviceId)&&void 0!==G?G:S(),T=null!==(H=null==_?void 0:_.lastEventId)&&void 0!==H?H:m.lastEventId,L=null!==(X=null==_?void 0:_.lastEventTime)&&void 0!==X?X:m.lastEventTime,R=null!==($=null!==(Y=n.optOut)&&void 0!==Y?Y:null==_?void 0:_.optOut)&&void 0!==$?$:m.optOut,D=null!==(ee=null==_?void 0:_.sessionId)&&void 0!==ee?ee:m.sessionId,x=null==_?void 0:_.deferredSessionId,M=null!==(oe=null!==(te=n.userId)&&void 0!==te?te:null==_?void 0:_.userId)&&void 0!==oe?oe:m.userId,r.previousSessionDeviceId=null!==(ie=null==_?void 0:_.deviceId)&&void 0!==ie?ie:m.deviceId,r.previousSessionUserId=null!==(ne=null==_?void 0:_.userId)&&void 0!==ne?ne:m.userId,A={ipAddress:null===(se=null===(re=n.trackingOptions)||void 0===re?void 0:re.ipAddress)||void 0===se||se,language:null===(de=null===(ae=n.trackingOptions)||void 0===ae?void 0:ae.language)||void 0===de||de,platform:null===(ue=null===(le=n.trackingOptions)||void 0===le?void 0:le.platform)||void 0===ue||ue},N=null==_?void 0:_.pageCounter,K=null==_?void 0:_.debugLogsEnabled,void 0!==n.autocapture&&(n.defaultTracking=n.autocapture),[4,(U=new O(e,n.appVersion,g,u,n.defaultTracking,n.autocapture,w,n.flushIntervalMillis,n.flushMaxRetries,n.flushQueueSize,t,n.ingestionMetadata,n.instanceName,T,L,null!==(ce=null==a?void 0:a.loggerProvider)&&void 0!==ce?ce:n.loggerProvider,n.logLevel,n.minIdLength,n.offline,R,n.partnerId,n.plan,n.serverUrl,null!==(pe=null==a?void 0:a.serverZone)&&void 0!==pe?pe:n.serverZone,D,x,n.sessionTimeout,n.storageProvider,A,n.transport,n.useBatch,n.fetchRemoteConfig,M,N,K,n.networkTrackingOptions,n.identify,null!==(ve=null==a?void 0:a.enableDiagnostics)&&void 0!==ve?ve:n.enableDiagnostics,null!==(ge=null==a?void 0:a.diagnosticsSampleRate)&&void 0!==ge?ge:r._diagnosticsSampleRate,s,n.remoteConfig)).storageProvider.isEnabled()];case 8:return o.sent()||(U.loggerProvider.warn("Storage provider ".concat(U.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),U.storageProvider=new I),[2,U]}}))}))},j=function(e,t,o){switch(void 0===e&&(e=l),void 0===t&&(t={}),e){case"localStorage":return new n;case"sessionStorage":return new r;case"none":return new I;default:return new m(i(i({},t),{expirationDays:t.expiration}),o)}},E=function(e){var t,o;return void 0===e&&(e={}),!0===(null===(t=e.remoteConfig)||void 0===t?void 0:t.fetchRemoteConfig)||!1!==(null===(o=e.remoteConfig)||void 0===o?void 0:o.fetchRemoteConfig)&&!1!==e.fetchRemoteConfig},C=function(e){var t="object"==typeof e?e.type:e,o="object"==typeof e?e.headers:void 0;return"xhr"===t?new s(o):"beacon"===t?new a:new p(o)},P=function(e){return t(void 0,void 0,void 0,(function(){var e,t,i,n,r,s,a,d;return o(this,(function(o){switch(o.label){case 0:return[4,(new m).isEnabled()];case 1:if(!o.sent()||"undefined"==typeof location||!location.hostname)return[2,""];for(e=location.hostname,t=e.split("."),i=[],n=S(),r="AMP_TLDTEST_".concat(n.substring(0,8)),s=t.length-2;s>=0;--s)i.push(t.slice(s).join("."));s=0,o.label=2;case 2:return s<i.length?(a=i[s],[4,(d=new m({domain:"."+a,expirationDays:.003})).set(r,1)]):[3,7];case 3:return o.sent(),[4,d.get(r)];case 4:return o.sent()?[4,d.remove(r)]:[3,6];case 5:return o.sent(),[2,"."+a];case 6:return s++,[3,2];case 7:return[2,""]}}))}))};export{O as BrowserConfig,j as createCookieStorage,C as createTransport,P as getTopLevelDomain,E as shouldFetchRemoteConfig,k as useBrowserConfig};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t,__read as o}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getOldCookieName as r}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js";var n=function(n,a,c){return void 0===c&&(c=!0),e(void 0,void 0,void 0,(function(){var e,l,u,p,d,m,v,f,b;return t(this,(function(t){switch(t.label){case 0:return e=r(n),[4,a.getRaw(e)];case 1:return(l=t.sent())?c?[4,a.remove(e)]:[3,3]:[2,{optOut:!1}];case 2:t.sent(),t.label=3;case 3:return u=o(l.split("."),6),p=u[0],d=u[1],m=u[2],v=u[3],f=u[4],b=u[5],[2,{deviceId:p,userId:s(d),sessionId:i(v),lastEventId:i(b),lastEventTime:i(f),optOut:Boolean(m)}]}}))}))},i=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},s=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}};export{s as decode,n as parseLegacyCookies,i as parseTime};
1
+ import{__awaiter as e,__generator as t,__read as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getOldCookieName as r}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js";var n=function(n,a,c){return void 0===c&&(c=!0),e(void 0,void 0,void 0,(function(){var e,l,u,p,d,m,v,f,b;return t(this,(function(t){switch(t.label){case 0:return e=r(n),[4,a.getRaw(e)];case 1:return(l=t.sent())?c?[4,a.remove(e)]:[3,3]:[2,{optOut:!1}];case 2:t.sent(),t.label=3;case 3:return u=o(l.split("."),6),p=u[0],d=u[1],m=u[2],v=u[3],f=u[4],b=u[5],[2,{deviceId:p,userId:s(d),sessionId:i(v),lastEventId:i(b),lastEventTime:i(f),optOut:Boolean(m)}]}}))}))},i=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},s=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}};export{s as decode,n as parseLegacyCookies,i as parseTime};
@@ -1 +1 @@
1
- import{__assign as t}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";var e=function(t,e){return"boolean"==typeof t?t:!1!==(null==t?void 0:t[e])},n=function(t){return e(t,"attribution")},o=function(t){return e(t,"fileDownloads")},r=function(t){return e(t,"formInteractions")},a=function(t){return e(t,"pageViews")},i=function(t){return e(t,"sessions")},u=function(t){return e(t,"pageUrlEnrichment")},c=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.networkTracking||"object"==typeof t.networkTracking)},f=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.elementInteractions||"object"==typeof t.elementInteractions)},s=function(t){return"boolean"==typeof t?t:"object"==typeof t&&!0===t.webVitals},p=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.frustrationInteractions||"object"==typeof t.frustrationInteractions)},l=function(t){if(f(t.autocapture)&&"object"==typeof t.autocapture&&"object"==typeof t.autocapture.elementInteractions)return t.autocapture.elementInteractions},g=function(t){if(p(t.autocapture)&&"object"==typeof t.autocapture&&"object"==typeof t.autocapture.frustrationInteractions)return t.autocapture.frustrationInteractions},d=function(e){var n;if(c(e.autocapture)){var o=void 0;return"object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking?o=e.autocapture.networkTracking:e.networkTrackingOptions&&(o=e.networkTrackingOptions),t(t({},o),{captureRules:null===(n=null==o?void 0:o.captureRules)||void 0===n?void 0:n.map((function(n){var o,r,a;if((null===(o=n.urls)||void 0===o?void 0:o.length)&&(null===(r=n.hosts)||void 0===r?void 0:r.length)){var i=JSON.stringify(n.hosts),u=JSON.stringify(n.urls);return null===(a=e.loggerProvider)||void 0===a||a.warn("Found network capture rule with both urls='".concat(u,"' and hosts='").concat(i,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),t(t({},n),{hosts:void 0})}return n}))})}},k=function(t){var e,n=function(){return!1},o=void 0,r=t.pageCounter;return a(t.defaultTracking)&&(n=void 0,e=void 0,t.defaultTracking&&"object"==typeof t.defaultTracking&&t.defaultTracking.pageViews&&"object"==typeof t.defaultTracking.pageViews&&("trackOn"in t.defaultTracking.pageViews&&(n=t.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in t.defaultTracking.pageViews&&(o=t.defaultTracking.pageViews.trackHistoryChanges),"eventType"in t.defaultTracking.pageViews&&t.defaultTracking.pageViews.eventType&&(e=t.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:o,eventType:e,pageCounter:r}},y=function(e){return n(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.attribution&&"object"==typeof e.defaultTracking.attribution?t({},e.defaultTracking.attribution):{}};export{y as getAttributionTrackingConfig,l as getElementInteractionsConfig,g as getFrustrationInteractionsConfig,d as getNetworkTrackingConfig,k as getPageViewTrackingConfig,n as isAttributionTrackingEnabled,f as isElementInteractionsEnabled,o as isFileDownloadTrackingEnabled,r as isFormInteractionTrackingEnabled,p as isFrustrationInteractionsEnabled,c as isNetworkTrackingEnabled,u as isPageUrlEnrichmentEnabled,a as isPageViewTrackingEnabled,i as isSessionTrackingEnabled,s as isWebVitalsEnabled};
1
+ import{__assign as t}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var e=function(t,e){return"boolean"==typeof t?t:!1!==(null==t?void 0:t[e])},n=function(t){return e(t,"attribution")},o=function(t){return e(t,"fileDownloads")},r=function(t){return e(t,"formInteractions")},a=function(t){return e(t,"pageViews")},i=function(t){return e(t,"sessions")},u=function(t){return e(t,"pageUrlEnrichment")},c=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.networkTracking||"object"==typeof t.networkTracking)},f=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.elementInteractions||"object"==typeof t.elementInteractions)},s=function(t){return"boolean"==typeof t?t:"object"==typeof t&&!0===t.webVitals},p=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.frustrationInteractions||"object"==typeof t.frustrationInteractions)},l=function(t){if(f(t.autocapture)&&"object"==typeof t.autocapture&&"object"==typeof t.autocapture.elementInteractions)return t.autocapture.elementInteractions},g=function(t){if(p(t.autocapture)&&"object"==typeof t.autocapture&&"object"==typeof t.autocapture.frustrationInteractions)return t.autocapture.frustrationInteractions},d=function(e){var n;if(c(e.autocapture)){var o=void 0;return"object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking?o=e.autocapture.networkTracking:e.networkTrackingOptions&&(o=e.networkTrackingOptions),t(t({},o),{captureRules:null===(n=null==o?void 0:o.captureRules)||void 0===n?void 0:n.map((function(n){var o,r,a;if((null===(o=n.urls)||void 0===o?void 0:o.length)&&(null===(r=n.hosts)||void 0===r?void 0:r.length)){var i=JSON.stringify(n.hosts),u=JSON.stringify(n.urls);return null===(a=e.loggerProvider)||void 0===a||a.warn("Found network capture rule with both urls='".concat(u,"' and hosts='").concat(i,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),t(t({},n),{hosts:void 0})}return n}))})}},k=function(t){var e,n=function(){return!1},o=void 0,r=t.pageCounter;return a(t.defaultTracking)&&(n=void 0,e=void 0,t.defaultTracking&&"object"==typeof t.defaultTracking&&t.defaultTracking.pageViews&&"object"==typeof t.defaultTracking.pageViews&&("trackOn"in t.defaultTracking.pageViews&&(n=t.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in t.defaultTracking.pageViews&&(o=t.defaultTracking.pageViews.trackHistoryChanges),"eventType"in t.defaultTracking.pageViews&&t.defaultTracking.pageViews.eventType&&(e=t.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:o,eventType:e,pageCounter:r}},y=function(e){return n(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.attribution&&"object"==typeof e.defaultTracking.attribution?t({},e.defaultTracking.attribution):{}},b=function(t){if(r(t.defaultTracking)&&t.defaultTracking&&"object"==typeof t.defaultTracking&&"object"==typeof t.defaultTracking.formInteractions)return t.defaultTracking.formInteractions};export{y as getAttributionTrackingConfig,l as getElementInteractionsConfig,b as getFormInteractionsConfig,g as getFrustrationInteractionsConfig,d as getNetworkTrackingConfig,k as getPageViewTrackingConfig,n as isAttributionTrackingEnabled,f as isElementInteractionsEnabled,o as isFileDownloadTrackingEnabled,r as isFormInteractionTrackingEnabled,p as isFrustrationInteractionsEnabled,c as isNetworkTrackingEnabled,u as isPageUrlEnrichmentEnabled,a as isPageViewTrackingEnabled,i as isSessionTrackingEnabled,s as isWebVitalsEnabled};
@@ -0,0 +1 @@
1
+ import e from"./browser-client-factory.js";export{createInstance}from"./browser-client-factory.js";export{AmplitudeBrowser}from"./browser-client.js";export{runQueuedFunctions}from"./utils/snippet-helper.js";import*as t from"./types.js";export{t as Types};export{Identify}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js";export{Revenue}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js";var s=e.add,r=e.extendSession,o=e.flush,i=e.getDeviceId,n=e.getIdentity,a=e.getOptOut,d=e.getSessionId,p=e.getUserId,l=e.groupIdentify,c=e.identify,m=e.init,u=e.logEvent,f=e.remove,y=e.reset,I=e.revenue,g=e.setDeviceId,v=e.setGroup,x=e.setIdentity,j=e.setOptOut,b=e.setSessionId,_=e.setTransport,w=e.setUserId,O=e.track,S=e._setDiagnosticsSampleRate;export{S as _setDiagnosticsSampleRate,s as add,r as extendSession,o as flush,i as getDeviceId,n as getIdentity,a as getOptOut,d as getSessionId,p as getUserId,l as groupIdentify,c as identify,m as init,u as logEvent,f as remove,y as reset,I as revenue,g as setDeviceId,v as setGroup,x as setIdentity,j as setOptOut,b as setSessionId,_ as setTransport,w as setUserId,O as track};
@@ -1 +1 @@
1
- import{__awaiter as i,__generator as t,__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{VERSION as n}from"../version.js";import{LIBPREFIX as o}from"../lib-prefix.js";import{getLanguage as s}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/language.js";import{UUID as r}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";var a=function(){function a(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(o,"/").concat(n),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return a.prototype.setup=function(i){return this.config=i,Promise.resolve(void 0)},a.prototype.execute=function(n){var o,a;return i(this,void 0,void 0,(function(){var i,c,p;return t(this,(function(t){return i=(new Date).getTime(),c=null!==(o=this.config.lastEventId)&&void 0!==o?o:-1,p=null!==(a=n.event_id)&&void 0!==a?a:c+1,this.config.lastEventId=p,n.time||(this.config.lastEventTime=i),[2,e(e(e(e(e(e(e(e({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:s()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:r(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),n),{event_id:p,library:this.library,user_agent:this.userAgent})]}))}))},a}();export{a as Context};
1
+ import{__awaiter as i,__generator as t,__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as n}from"../version.js";import{LIBPREFIX as o}from"../lib-prefix.js";import{getLanguage as s}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/language.js";import{UUID as r}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";var a=function(){function a(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(o,"/").concat(n),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return a.prototype.setup=function(i){return this.config=i,Promise.resolve(void 0)},a.prototype.execute=function(n){var o,a;return i(this,void 0,void 0,(function(){var i,c,p;return t(this,(function(t){return i=(new Date).getTime(),c=null!==(o=this.config.lastEventId)&&void 0!==o?o:-1,p=null!==(a=n.event_id)&&void 0!==a?a:c+1,this.config.lastEventId=p,n.time||(this.config.lastEventTime=i),[2,e(e(e(e(e(e(e(e({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:s()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:r(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),n),{event_id:p,library:this.library,user_agent:this.userAgent})]}))}))},a}();export{a as Context};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{DEFAULT_FILE_DOWNLOAD_EVENT as n,FILE_EXTENSION as r,FILE_NAME as o,LINK_ID as i,LINK_TEXT as a,LINK_URL as d}from"../constants.js";import{getGlobalScope as l}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var u=function(){var u,c=[];return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(s,f){return e(void 0,void 0,void 0,(function(){var e,m;return t(this,(function(t){return e=function(){if(f){if("undefined"!=typeof document){var e=function(e){var l;try{l=new URL(e.href,window.location.href)}catch(e){return}var u=t.exec(l.href),s=null==u?void 0:u[1];s&&function(e,t,n){e.addEventListener(t,n),c.push({element:e,type:t,handler:n})}(e,"click",(function(){var t;s&&f.track(n,((t={})[r]=s,t[o]=l.pathname,t[i]=e.id,t[a]=e.text,t[d]=e.href,t))}))},t=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(e),"undefined"!=typeof MutationObserver&&(u=new MutationObserver((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){"A"===t.nodeName&&e(t),"querySelectorAll"in t&&"function"==typeof t.querySelectorAll&&Array.from(t.querySelectorAll("a")).map(e)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else s.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.")},"complete"===document.readyState?e():(m=l())?m.addEventListener("load",e):s.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return null==u||u.disconnect(),c.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),c=[],[2]}))}))}}};export{u as fileDownloadTracking};
1
+ import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DEFAULT_FILE_DOWNLOAD_EVENT as n,FILE_EXTENSION as r,FILE_NAME as o,LINK_ID as i,LINK_TEXT as a,LINK_URL as d}from"../constants.js";import{getGlobalScope as l}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var u=function(){var u,c=[];return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(s,f){return e(void 0,void 0,void 0,(function(){var e,m;return t(this,(function(t){return e=function(){if(f){if("undefined"!=typeof document){var e=function(e){var l;try{l=new URL(e.href,window.location.href)}catch(e){return}var u=t.exec(l.href),s=null==u?void 0:u[1];s&&function(e,t,n){e.addEventListener(t,n),c.push({element:e,type:t,handler:n})}(e,"click",(function(){var t;s&&f.track(n,((t={})[r]=s,t[o]=l.pathname,t[i]=e.id,t[a]=e.text,t[d]=e.href,t))}))},t=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(e),"undefined"!=typeof MutationObserver&&(u=new MutationObserver((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){"A"===t.nodeName&&e(t),"querySelectorAll"in t&&"function"==typeof t.querySelectorAll&&Array.from(t.querySelectorAll("a")).map(e)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else s.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.")},"complete"===document.readyState?e():(m=l())?m.addEventListener("load",e):s.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return null==u||u.disconnect(),c.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),c=[],[2]}))}))}}};export{u as fileDownloadTracking};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DEFAULT_FORM_START_EVENT as n,FORM_ID as r,FORM_NAME as o,FORM_DESTINATION as i,DEFAULT_FORM_SUBMIT_EVENT as a}from"../constants.js";import{getFormInteractionsConfig as u}from"../default-tracking.js";import{getGlobalScope as c}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var d=function(){var d,s,m=[],v=function(e,t,n){e.addEventListener(t,n),m.push({element:e,type:t,handler:n})};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(m,p){return e(void 0,void 0,void 0,(function(){var e,b;return t(this,(function(t){return s=u(m),e=function(){if(p){if("undefined"!=typeof document){var e=new WeakSet,t=function(t){if(!e.has(t)){e.add(t);var u=!1;v(t,"change",(function(){var e,a=f(t);u||p.track(n,((e={})[r]=l(t.id),e[o]=l(t.name),e[i]=a,e)),u=!0})),v(t,"submit",(function(e){var c,d,v=f(t);if(u||p.track(n,((c={})[r]=l(t.id),c[o]=l(t.name),c[i]=v,c)),u=!0,void 0!==(null==s?void 0:s.shouldTrackSubmit))if("function"==typeof s.shouldTrackSubmit&&"undefined"!=typeof SubmitEvent&&e instanceof SubmitEvent)try{if(!s.shouldTrackSubmit(e))return}catch(e){m.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else m.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");p.track(a,((d={})[r]=l(t.id),d[o]=l(t.name),d[i]=v,d)),u=!1}))}};Array.from(document.getElementsByTagName("form")).forEach(t),"undefined"!=typeof MutationObserver&&(d=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"FORM"===e.nodeName&&t(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(t)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else m.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.")},"complete"===document.readyState?e():(b=c())?b.addEventListener("load",e):m.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return null==d||d.disconnect(),m.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),m=[],[2]}))}))}}},l=function(e){if("string"==typeof e)return e},f=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t};export{f as extractFormAction,d as formInteractionTracking,l as stringOrUndefined};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as n}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as i}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var o=function(){var o=i(),t=[],r=function(e,n){(null==o?void 0:o.addEventListener)&&(null==o||o.addEventListener(e,n),t.push({type:e,handler:n}))};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(i,o){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return"undefined"==typeof navigator?(i.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),i.offline=!1,[2]):(i.offline=!navigator.onLine,r("online",(function(){i.loggerProvider.debug("Network connectivity changed to online."),i.offline=!1,setTimeout((function(){o.flush()}),i.flushIntervalMillis)})),r("offline",(function(){i.loggerProvider.debug("Network connectivity changed to offline."),i.offline=!0})),[2])}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return t.forEach((function(e){var n=e.type,i=e.handler;null==o||o.removeEventListener(n,i)})),t=[],[2]}))}))}}};export{o as networkConnectivityCheckerPlugin};
1
+ import{__awaiter as e,__generator as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as i}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var o=function(){var o=i(),t=[],r=function(e,n){(null==o?void 0:o.addEventListener)&&(null==o||o.addEventListener(e,n),t.push({type:e,handler:n}))};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(i,o){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return"undefined"==typeof navigator?(i.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),i.offline=!1,[2]):(i.offline=!navigator.onLine,r("online",(function(){i.loggerProvider.debug("Network connectivity changed to online."),i.offline=!1,setTimeout((function(){o.flush()}),i.flushIntervalMillis)})),r("offline",(function(){i.loggerProvider.debug("Network connectivity changed to offline."),i.offline=!0})),[2])}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return t.forEach((function(e){var n=e.type,i=e.handler;null==o||o.removeEventListener(n,i)})),t=[],[2]}))}))}}};export{o as networkConnectivityCheckerPlugin};
@@ -1 +1 @@
1
- import{__extends as e,__awaiter as t,__generator as r}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as o}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as l}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var i=1e3,s=function(l){function s(e){var t,r,i,s=this;try{i=null===(t=o())||void 0===t?void 0:t.localStorage}catch(t){null===(r=null==e?void 0:e.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(t))),i=void 0}return(s=l.call(this,i)||this).loggerProvider=null==e?void 0:e.loggerProvider,s}return e(s,l),s.prototype.set=function(e,o){var s;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return Array.isArray(o)&&o.length>i?(t=o.length-i,[4,l.prototype.set.call(this,e,o.slice(0,i))]):[3,2];case 1:return r.sent(),null===(s=this.loggerProvider)||void 0===s||s.error("Failed to save ".concat(t," events because the queue length exceeded ").concat(i,".")),[3,4];case 2:return[4,l.prototype.set.call(this,e,o)];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},s}(l);export{s as LocalStorage};
1
+ import{__extends as e,__awaiter as t,__generator as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as o}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as l}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var i=1e3,s=function(l){function s(e){var t,r,i,s=this;try{i=null===(t=o())||void 0===t?void 0:t.localStorage}catch(t){null===(r=null==e?void 0:e.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(t))),i=void 0}return(s=l.call(this,i)||this).loggerProvider=null==e?void 0:e.loggerProvider,s}return e(s,l),s.prototype.set=function(e,o){var s;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return Array.isArray(o)&&o.length>i?(t=o.length-i,[4,l.prototype.set.call(this,e,o.slice(0,i))]):[3,2];case 1:return r.sent(),null===(s=this.loggerProvider)||void 0===s||s.error("Failed to save ".concat(t," events because the queue length exceeded ").concat(i,".")),[3,4];case 2:return[4,l.prototype.set.call(this,e,o)];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},s}(l);export{s as LocalStorage};
@@ -1 +1 @@
1
- import{__extends as o}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as e}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as t}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var l=function(t){function l(){var o;return t.call(this,null===(o=e())||void 0===o?void 0:o.sessionStorage)||this}return o(l,t),l}(t);export{l as SessionStorage};
1
+ import{__extends as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as e}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as t}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var l=function(t){function l(){var o;return t.call(this,null===(o=e())||void 0===o?void 0:o.sessionStorage)||this}return o(l,t),l}(t);export{l as SessionStorage};
@@ -1 +1 @@
1
- import{__extends as e,__awaiter as t,__generator as n}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{BaseTransport as o}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js";import{getGlobalScope as r}from"../../../../../../../@amplitude_analytics-core@2.34.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var i=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return e(i,o),i.prototype.send=function(e,o){return t(this,void 0,void 0,(function(){var t=this;return n(this,(function(n){return[2,new Promise((function(n,i){var s=r();if(!(null==s?void 0:s.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var l=JSON.stringify(o);return n(s.navigator.sendBeacon(e,JSON.stringify(o))?t.buildResponse({code:200,events_ingested:o.events.length,payload_size_bytes:l.length,server_upload_time:Date.now()}):t.buildResponse({code:500}))}catch(e){i(e)}}))]}))}))},i}(o);export{i as SendBeaconTransport};
1
+ import{__extends as e,__awaiter as t,__generator as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{BaseTransport as o}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js";import{getGlobalScope as r}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var i=function(o){function i(){return null!==o&&o.apply(this,arguments)||this}return e(i,o),i.prototype.send=function(e,o){return t(this,void 0,void 0,(function(){var t=this;return n(this,(function(n){return[2,new Promise((function(n,i){var s=r();if(!(null==s?void 0:s.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var l=JSON.stringify(o);return n(s.navigator.sendBeacon(e,JSON.stringify(o))?t.buildResponse({code:200,events_ingested:o.events.length,payload_size_bytes:l.length,server_upload_time:Date.now()}):t.buildResponse({code:500}))}catch(e){i(e)}}))]}))}))},i}(o);export{i as SendBeaconTransport};
@@ -0,0 +1 @@
1
+ import{__extends as e,__awaiter as t,__generator as r,__assign as n,__values as o,__read as s}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{BaseTransport as i}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js";var a=function(i){function a(e){void 0===e&&(e={});var t=i.call(this)||this;return t.state={done:4},t.customHeaders=e,t}return e(a,i),a.prototype.send=function(e,i){return t(this,void 0,void 0,(function(){var t=this;return r(this,(function(r){return[2,new Promise((function(r,a){var u,p;"undefined"==typeof XMLHttpRequest&&a(new Error("XHRTransport is not supported."));var c=new XMLHttpRequest;c.open("POST",e,!0),c.onreadystatechange=function(){if(c.readyState===t.state.done){var e=c.responseText;try{r(t.buildResponse(JSON.parse(e)))}catch(e){r(t.buildResponse({code:c.status}))}}};var l=n({"Content-Type":"application/json",Accept:"*/*"},t.customHeaders);try{for(var d=o(Object.entries(l)),f=d.next();!f.done;f=d.next()){var y=s(f.value,2),v=y[0],m=y[1];c.setRequestHeader(v,m)}}catch(e){u={error:e}}finally{try{f&&!f.done&&(p=d.return)&&p.call(d)}finally{if(u)throw u.error}}c.send(JSON.stringify(i))}))]}))}))},a}(i);export{a as XHRTransport};
@@ -0,0 +1 @@
1
+ export{DEFAULT_ACTION_CLICK_ALLOWLIST,DEFAULT_CSS_SELECTOR_ALLOWLIST,DEFAULT_DATA_ATTRIBUTE_PREFIX}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";export{IdentifyOperation,SpecialEventType}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js";export{LogLevel}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js";export{OfflineDisabled}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js";export{RevenueProperty}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js";export{ServerZone}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js";
@@ -1 +1 @@
1
- import{__awaiter as r,__generator as t,__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getQueryParams as o}from"../query-params.js";import{BASE_CAMPAIGN as i,UTM_CAMPAIGN as n,UTM_CONTENT as u,UTM_ID as m,UTM_MEDIUM as p,UTM_SOURCE as s,UTM_TERM as c,DCLID as f,FBCLID as d,GBRAID as a,GCLID as l,KO_CLICK_ID as v,LI_FAT_ID as _,MSCLKID as g,RDT_CID as y,TTCLID as h,TWCLID as b,WBRAID as j}from"../types/constants.js";var k=function(){function k(){}return k.prototype.parse=function(){return r(this,void 0,void 0,(function(){return t(this,(function(r){return[2,e(e(e(e({},i),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},k.prototype.getUtmParam=function(){var r=o();return{utm_campaign:r[n],utm_content:r[u],utm_id:r[m],utm_medium:r[p],utm_source:r[s],utm_term:r[c]}},k.prototype.getReferrer=function(){var r,t,e={referrer:void 0,referring_domain:void 0};try{e.referrer=document.referrer||void 0,e.referring_domain=null!==(t=null===(r=e.referrer)||void 0===r?void 0:r.split("/")[2])&&void 0!==t?t:void 0}catch(r){}return e},k.prototype.getClickIds=function(){var r,t=o();return(r={})[f]=t[f],r[d]=t[d],r[a]=t[a],r[l]=t[l],r[v]=t[v],r[_]=t[_],r[g]=t[g],r[y]=t[y],r[h]=t[h],r[b]=t[b],r[j]=t[j],r},k}();export{k as CampaignParser};
1
+ import{__awaiter as r,__generator as t,__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getQueryParams as o}from"../query-params.js";import{BASE_CAMPAIGN as i,UTM_CAMPAIGN as n,UTM_CONTENT as u,UTM_ID as m,UTM_MEDIUM as p,UTM_SOURCE as s,UTM_TERM as c,DCLID as f,FBCLID as d,GBRAID as a,GCLID as l,KO_CLICK_ID as v,LI_FAT_ID as _,MSCLKID as g,RDT_CID as y,TTCLID as h,TWCLID as b,WBRAID as j}from"../types/constants.js";var k=function(){function k(){}return k.prototype.parse=function(){return r(this,void 0,void 0,(function(){return t(this,(function(r){return[2,e(e(e(e({},i),this.getUtmParam()),this.getReferrer()),this.getClickIds())]}))}))},k.prototype.getUtmParam=function(){var r=o();return{utm_campaign:r[n],utm_content:r[u],utm_id:r[m],utm_medium:r[p],utm_source:r[s],utm_term:r[c]}},k.prototype.getReferrer=function(){var r,t,e={referrer:void 0,referring_domain:void 0};try{e.referrer=document.referrer||void 0,e.referring_domain=null!==(t=null===(r=e.referrer)||void 0===r?void 0:r.split("/")[2])&&void 0!==t?t:void 0}catch(r){}return e},k.prototype.getClickIds=function(){var r,t=o();return(r={})[f]=t[f],r[d]=t[d],r[a]=t[a],r[l]=t[l],r[v]=t[v],r[_]=t[_],r[g]=t[g],r[y]=t[y],r[h]=t[h],r[b]=t[b],r[j]=t[j],r},k}();export{k as CampaignParser};
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as e,__assign as i,__values as r}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{IdentifyOperation as s,SpecialEventType as n}from"./types/event/event.js";import{OrderedIdentifyOperations as o}from"./identify.js";import{CLIENT_NOT_INITIALIZED as u,OPT_OUT_MESSAGE as p}from"./types/messages.js";import{Timeline as c}from"./timeline.js";import{createTrackEvent as h,createIdentifyEvent as a,createGroupIdentifyEvent as l,createGroupEvent as d,createRevenueEvent as f}from"./utils/event-builder.js";import{buildResult as g}from"./utils/result-builder.js";import{returnWrapper as v}from"./utils/return-wrapper.js";var y=function(){function y(t){void 0===t&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new c(this),this.name=t}return y.prototype._init=function(i){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return this.config=i,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return t.sent(),this.isReady=!0,[2]}}))}))},y.prototype.runQueuedFunctions=function(i){return t(this,void 0,void 0,(function(){var t,s,n,o,u,p,c,h;return e(this,(function(e){switch(e.label){case 0:t=this[i],this[i]=[],e.label=1;case 1:e.trys.push([1,8,9,10]),s=r(t),n=s.next(),e.label=2;case 2:return n.done?[3,7]:(o=n.value,(u=o())&&"promise"in u?[4,u.promise]:[3,4]);case 3:return e.sent(),[3,6];case 4:return[4,u];case 5:e.sent(),e.label=6;case 6:return n=s.next(),[3,2];case 7:return[3,10];case 8:return p=e.sent(),c={error:p},[3,10];case 9:try{n&&!n.done&&(h=s.return)&&h.call(s)}finally{if(c)throw c.error}return[7];case 10:return this[i].length?[4,this.runQueuedFunctions(i)]:[3,12];case 11:e.sent(),e.label=12;case 12:return[2]}}))}))},y.prototype.track=function(t,e,i){var r=h(t,e,i);return this.userProperties=this.getOperationAppliedUserProperties(r.user_properties),v(this.dispatch(r))},y.prototype.identify=function(t,e){var i=a(t,e);return this.userProperties=this.getOperationAppliedUserProperties(i.user_properties),v(this.dispatch(i))},y.prototype.groupIdentify=function(t,e,i,r){var s=l(t,e,i,r);return v(this.dispatch(s))},y.prototype.setGroup=function(t,e,i){var r=d(t,e,i);return this.userProperties=this.getOperationAppliedUserProperties(r.user_properties),v(this.dispatch(r))},y.prototype.revenue=function(t,e){var i=f(t,e);return v(this.dispatch(i))},y.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),v())},y.prototype._addPlugin=function(t){return v(this.timeline.register(t,this.config))},y.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),v())},y.prototype._removePlugin=function(t){return v(this.timeline.deregister(t,this.config))},y.prototype.dispatchWithCallback=function(t,e){if(!this.isReady)return e(g(t,0,u));this.process(t).then(e)},y.prototype.dispatch=function(i){return t(this,void 0,void 0,(function(){var t=this;return e(this,(function(e){return this.isReady?[2,this.process(i)]:[2,new Promise((function(e){t.dispatchQ.push(t.dispatchWithCallback.bind(t,i,e))}))]}))}))},y.prototype.getOperationAppliedUserProperties=function(t){var e,r=null!==(e=this.userProperties)&&void 0!==e?e:{},n=i({},r);if(void 0===t)return n;var u={};return Object.keys(t).forEach((function(e){Object.values(s).includes(e)||(u[e]=t[e])})),o.forEach((function(e){if(Object.keys(t).includes(e)){var i=t[e];switch(e){case s.CLEAR_ALL:Object.keys(n).forEach((function(t){delete n[t]}));break;case s.UNSET:Object.keys(i).forEach((function(t){delete n[t]}));break;case s.SET:Object.assign(n,i)}}})),Object.assign(n,u),n},y.prototype.process=function(i){return t(this,void 0,void 0,(function(){var t,r,s;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this.config.optOut?[2,g(i,0,p)]:(i.event_type===n.IDENTIFY&&this.timeline.onIdentityChanged({userProperties:this.userProperties}),[4,this.timeline.push(i)]);case 1:return 200===(s=e.sent()).code?this.config.loggerProvider.log(s.message):100===s.code?this.config.loggerProvider.warn(s.message):this.config.loggerProvider.error(s.message),[2,s];case 2:return t=e.sent(),r=String(t),this.config.loggerProvider.error(r),[2,s=g(i,0,r)];case 3:return[2]}}))}))},y.prototype.setOptOut=function(t){this.isReady?this._setOptOut(t):this.q.push(this._setOptOut.bind(this,Boolean(t)))},y.prototype._setOptOut=function(t){this.config.optOut!==t&&(this.config.optOut=Boolean(t),this.timeline.onOptOutChanged(t))},y.prototype.flush=function(){return v(this.timeline.flush())},y.prototype.plugin=function(t){var e=this.timeline.plugins.find((function(e){return e.name===t}));if(void 0!==e)return e;this.config.loggerProvider.debug("Cannot find plugin with name ".concat(t))},y.prototype.plugins=function(t){return this.timeline.plugins.filter((function(e){return e instanceof t}))},y}();export{y as AmplitudeCore};
@@ -1 +1 @@
1
- import{__assign as t,__awaiter as e,__generator as s,__spreadArray as i,__read as n}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{DiagnosticsStorage as r}from"./diagnostics-storage.js";import{getGlobalScope as o}from"../global-scope.js";import{isTimestampInSampleTemp as a}from"../utils/sampling.js";import{enableSdkErrorListeners as l}from"./uncaught-sdk-errors.js";var h=1e3,u=3e5,c="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",g="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",m=1e4,d=10,p=function(){function h(e,s,i,n){void 0===i&&(i="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=e,this.logger=s,this.serverUrl="US"===i?c:g,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(n,null,2)),this.config=t({enabled:!0,sampleRate:0},n),this.startTimestamp=Date.now(),this.shouldTrack=a(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,r.isSupported()?this.storage=new r(e,s):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),l(this))}return h.prototype.isStorageAndTrackEnabled=function(){return Boolean(this.storage)&&Boolean(this.shouldTrack)},h.prototype.setTag=function(t,e){this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryTags).length>=m?this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit"):(this.inMemoryTags[t]=e,this.startTimersIfNeeded()))},h.prototype.increment=function(t,e){void 0===e&&(e=1),this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryCounters).length>=m?this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit"):(this.inMemoryCounters[t]=(this.inMemoryCounters[t]||0)+e,this.startTimersIfNeeded()))},h.prototype.recordHistogram=function(t,e){if(this.isStorageAndTrackEnabled())if(Object.keys(this.inMemoryHistograms).length>=m)this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");else{var s=this.inMemoryHistograms[t];s?(s.count+=1,s.min=Math.min(s.min,e),s.max=Math.max(s.max,e),s.sum+=e):this.inMemoryHistograms[t]={count:1,min:e,max:e,sum:e},this.startTimersIfNeeded()}},h.prototype.recordEvent=function(t,e){this.isStorageAndTrackEnabled()&&(this.inMemoryEvents.length>=10?this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit"):(this.inMemoryEvents.push({event_name:t,time:Date.now(),event_properties:e}),this.startTimersIfNeeded()))},h.prototype.startTimersIfNeeded=function(){var t=this;this.saveTimer||(this.saveTimer=setTimeout((function(){t.saveAllDataToStorage().catch((function(e){t.logger.debug("DiagnosticsClient: Failed to save all data to storage",e)})).finally((function(){t.saveTimer=null}))}),1e3)),this.flushTimer||(this.flushTimer=setTimeout((function(){t._flush().catch((function(e){t.logger.debug("DiagnosticsClient: Failed to flush",e)})).finally((function(){t.flushTimer=null}))}),u))},h.prototype.saveAllDataToStorage=function(){return e(this,void 0,void 0,(function(){var e,r,o,a;return s(this,(function(s){switch(s.label){case 0:return this.storage?(e=t({},this.inMemoryTags),r=t({},this.inMemoryCounters),o=t({},this.inMemoryHistograms),a=i([],n(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(e),this.storage.incrementCounters(r),this.storage.setHistogramStats(o),this.storage.addEventRecords(a)])]):[2];case 1:return s.sent(),[2]}}))}))},h.prototype._flush=function(){return e(this,void 0,void 0,(function(){var t,e,i,n,r,o,a,l,h,u;return s(this,(function(s){switch(s.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return s.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return t=s.sent(),e=t.tags,i=t.counters,n=t.histogramStats,r=t.events,this.storage.setLastFlushTimestamp(Date.now()),o={},e.forEach((function(t){o[t.key]=t.value})),a={},i.forEach((function(t){a[t.key]=t.value})),l={},n.forEach((function(t){l[t.key]={count:t.count,min:t.min,max:t.max,avg:Math.round(t.sum/t.count*100)/100}})),h=r.map((function(t){return{event_name:t.event_name,time:t.time,event_properties:t.event_properties}})),0===Object.keys(a).length&&0===Object.keys(l).length&&0===h.length?[2]:(u={tags:o,histogram:l,counters:a,events:h},this.fetch(u),[2])}}))}))},h.prototype.fetch=function(t){return e(this,void 0,void 0,(function(){var e;return s(this,(function(s){switch(s.label){case 0:if(s.trys.push([0,2,,3]),!o())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(t)})];case 1:return s.sent().ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return e=s.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",e),[3,3];case 3:return[2]}}))}))},h.prototype.initializeFlushInterval=function(){return e(this,void 0,void 0,(function(){var t,e,i;return s(this,(function(s){switch(s.label){case 0:return this.storage?(t=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return-1===(e=s.sent()||-1)?(this.storage.setLastFlushTimestamp(t),this._setFlushTimer(u),[2]):(i=t-e)>=u?(this._flush(),[2]):(this._setFlushTimer(u-i),[2])}}))}))},h.prototype._setFlushTimer=function(t){var e=this;this.flushTimer=setTimeout((function(){e._flush().catch((function(t){e.logger.debug("DiagnosticsClient: Failed to flush",t)})).finally((function(){e.flushTimer=null}))}),t)},h.prototype._setSampleRate=function(t){this.logger.debug("DiagnosticsClient: Setting sample rate to",t),this.config.sampleRate=t,this.shouldTrack=a(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},h}();export{g as DIAGNOSTICS_EU_SERVER_URL,c as DIAGNOSTICS_US_SERVER_URL,p as DiagnosticsClient,u as FLUSH_INTERVAL_MS,m as MAX_MEMORY_STORAGE_COUNT,d as MAX_MEMORY_STORAGE_EVENTS_COUNT,h as SAVE_INTERVAL_MS};
1
+ import{__assign as t,__awaiter as e,__generator as s,__spreadArray as i,__read as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DiagnosticsStorage as r}from"./diagnostics-storage.js";import{getGlobalScope as o}from"../global-scope.js";import{isTimestampInSampleTemp as a}from"../utils/sampling.js";import{enableSdkErrorListeners as l}from"./uncaught-sdk-errors.js";var h=1e3,u=3e5,c="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",g="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",m=1e4,d=10,p=function(){function h(e,s,i,n){void 0===i&&(i="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=e,this.logger=s,this.serverUrl="US"===i?c:g,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(n,null,2)),this.config=t({enabled:!0,sampleRate:0},n),this.startTimestamp=Date.now(),this.shouldTrack=a(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,r.isSupported()?this.storage=new r(e,s):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),l(this))}return h.prototype.isStorageAndTrackEnabled=function(){return Boolean(this.storage)&&Boolean(this.shouldTrack)},h.prototype.setTag=function(t,e){this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryTags).length>=m?this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit"):(this.inMemoryTags[t]=e,this.startTimersIfNeeded()))},h.prototype.increment=function(t,e){void 0===e&&(e=1),this.isStorageAndTrackEnabled()&&(Object.keys(this.inMemoryCounters).length>=m?this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit"):(this.inMemoryCounters[t]=(this.inMemoryCounters[t]||0)+e,this.startTimersIfNeeded()))},h.prototype.recordHistogram=function(t,e){if(this.isStorageAndTrackEnabled())if(Object.keys(this.inMemoryHistograms).length>=m)this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");else{var s=this.inMemoryHistograms[t];s?(s.count+=1,s.min=Math.min(s.min,e),s.max=Math.max(s.max,e),s.sum+=e):this.inMemoryHistograms[t]={count:1,min:e,max:e,sum:e},this.startTimersIfNeeded()}},h.prototype.recordEvent=function(t,e){this.isStorageAndTrackEnabled()&&(this.inMemoryEvents.length>=10?this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit"):(this.inMemoryEvents.push({event_name:t,time:Date.now(),event_properties:e}),this.startTimersIfNeeded()))},h.prototype.startTimersIfNeeded=function(){var t=this;this.saveTimer||(this.saveTimer=setTimeout((function(){t.saveAllDataToStorage().catch((function(e){t.logger.debug("DiagnosticsClient: Failed to save all data to storage",e)})).finally((function(){t.saveTimer=null}))}),1e3)),this.flushTimer||(this.flushTimer=setTimeout((function(){t._flush().catch((function(e){t.logger.debug("DiagnosticsClient: Failed to flush",e)})).finally((function(){t.flushTimer=null}))}),u))},h.prototype.saveAllDataToStorage=function(){return e(this,void 0,void 0,(function(){var e,r,o,a;return s(this,(function(s){switch(s.label){case 0:return this.storage?(e=t({},this.inMemoryTags),r=t({},this.inMemoryCounters),o=t({},this.inMemoryHistograms),a=i([],n(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(e),this.storage.incrementCounters(r),this.storage.setHistogramStats(o),this.storage.addEventRecords(a)])]):[2];case 1:return s.sent(),[2]}}))}))},h.prototype._flush=function(){return e(this,void 0,void 0,(function(){var t,e,i,n,r,o,a,l,h,u;return s(this,(function(s){switch(s.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return s.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return t=s.sent(),e=t.tags,i=t.counters,n=t.histogramStats,r=t.events,this.storage.setLastFlushTimestamp(Date.now()),o={},e.forEach((function(t){o[t.key]=t.value})),a={},i.forEach((function(t){a[t.key]=t.value})),l={},n.forEach((function(t){l[t.key]={count:t.count,min:t.min,max:t.max,avg:Math.round(t.sum/t.count*100)/100}})),h=r.map((function(t){return{event_name:t.event_name,time:t.time,event_properties:t.event_properties}})),0===Object.keys(a).length&&0===Object.keys(l).length&&0===h.length?[2]:(u={tags:o,histogram:l,counters:a,events:h},this.fetch(u),[2])}}))}))},h.prototype.fetch=function(t){return e(this,void 0,void 0,(function(){var e;return s(this,(function(s){switch(s.label){case 0:if(s.trys.push([0,2,,3]),!o())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(t)})];case 1:return s.sent().ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return e=s.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",e),[3,3];case 3:return[2]}}))}))},h.prototype.initializeFlushInterval=function(){return e(this,void 0,void 0,(function(){var t,e,i;return s(this,(function(s){switch(s.label){case 0:return this.storage?(t=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return-1===(e=s.sent()||-1)?(this.storage.setLastFlushTimestamp(t),this._setFlushTimer(u),[2]):(i=t-e)>=u?(this._flush(),[2]):(this._setFlushTimer(u-i),[2])}}))}))},h.prototype._setFlushTimer=function(t){var e=this;this.flushTimer=setTimeout((function(){e._flush().catch((function(t){e.logger.debug("DiagnosticsClient: Failed to flush",t)})).finally((function(){e.flushTimer=null}))}),t)},h.prototype._setSampleRate=function(t){this.logger.debug("DiagnosticsClient: Setting sample rate to",t),this.config.sampleRate=t,this.shouldTrack=a(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},h}();export{g as DIAGNOSTICS_EU_SERVER_URL,c as DIAGNOSTICS_US_SERVER_URL,p as DiagnosticsClient,u as FLUSH_INTERVAL_MS,m as MAX_MEMORY_STORAGE_COUNT,d as MAX_MEMORY_STORAGE_EVENTS_COUNT,h as SAVE_INTERVAL_MS};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__read as r}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as n}from"../global-scope.js";var o={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},s={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},i=function(){function i(t,e){this.dbPromise=null,this.logger=e,this.dbName="AMP_diagnostics_".concat(t.substring(0,10))}return i.isSupported=function(){var t;return void 0!==(null===(t=n())||void 0===t?void 0:t.indexedDB)},i.prototype.getDB=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]}))}))},i.prototype.openDB=function(){var t=this;return new Promise((function(e,r){var n=indexedDB.open(t.dbName,1);n.onerror=function(){t.dbPromise=null,r(new Error("Failed to open IndexedDB"))},n.onsuccess=function(){var r=n.result;r.onclose=function(){t.dbPromise=null,t.logger.debug("DiagnosticsStorage: DB connection closed.")},r.onerror=function(e){t.logger.debug("DiagnosticsStorage: A global database error occurred.",e),r.close()},e(r)},n.onupgradeneeded=function(e){var r=e.target.result;t.createTables(r)}}))},i.prototype.createTables=function(t){(t.objectStoreNames.contains(o.TAGS)||t.createObjectStore(o.TAGS,{keyPath:"key"}),t.objectStoreNames.contains(o.COUNTERS)||t.createObjectStore(o.COUNTERS,{keyPath:"key"}),t.objectStoreNames.contains(o.HISTOGRAMS)||t.createObjectStore(o.HISTOGRAMS,{keyPath:"key"}),t.objectStoreNames.contains(o.EVENTS))||t.createObjectStore(o.EVENTS,{keyPath:"id",autoIncrement:!0}).createIndex("time_idx","time",{unique:!1});t.objectStoreNames.contains(o.INTERNAL)||t.createObjectStore(o.INTERNAL,{keyPath:"key"})},i.prototype.setTags=function(n){return t(this,void 0,void 0,(function(){var t,s,i,a,c=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===Object.entries(n).length?[2]:[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.TAGS],"readwrite"),i=s.objectStore(o.TAGS),[2,new Promise((function(t){var e=Object.entries(n);s.oncomplete=function(){t()},s.onabort=function(e){c.logger.debug("DiagnosticsStorage: Failed to set tags",e),t()},e.forEach((function(t){var e=r(t,2),n=e[0],o=e[1];i.put({key:n,value:o}).onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to set tag",n,o,t)}}))}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",a),[3,3];case 3:return[2]}}))}))},i.prototype.incrementCounters=function(n){return t(this,void 0,void 0,(function(){var t,s,i,a,c=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===Object.entries(n).length?[2]:[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.COUNTERS],"readwrite"),i=s.objectStore(o.COUNTERS),[2,new Promise((function(t){var e=Object.entries(n);s.oncomplete=function(){t()},s.onabort=function(e){c.logger.debug("DiagnosticsStorage: Failed to increment counters",e),t()},e.forEach((function(t){var e=r(t,2),n=e[0],o=e[1],s=i.get(n);s.onsuccess=function(){var t=s.result,e=t?t.value:0;i.put({key:n,value:e+o}).onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to update counter",n,t)}},s.onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to read existing counter",n,t)}}))}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",a),[3,3];case 3:return[2]}}))}))},i.prototype.setHistogramStats=function(n){return t(this,void 0,void 0,(function(){var t,s,i,a,c=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===Object.entries(n).length?[2]:[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.HISTOGRAMS],"readwrite"),i=s.objectStore(o.HISTOGRAMS),[2,new Promise((function(t){var e=Object.entries(n);s.oncomplete=function(){t()},s.onabort=function(e){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",e),t()},e.forEach((function(t){var e=r(t,2),n=e[0],o=e[1],s=i.get(n);s.onsuccess=function(){var t,e=s.result;t=e?{key:n,count:e.count+o.count,min:Math.min(e.min,o.min),max:Math.max(e.max,o.max),sum:e.sum+o.sum}:{key:n,count:o.count,min:o.min,max:o.max,sum:o.sum},i.put(t).onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",n,t)}},s.onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",n,t)}}))}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",a),[3,3];case 3:return[2]}}))}))},i.prototype.addEventRecords=function(r){return t(this,void 0,void 0,(function(){var t,n,s,i,a=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===r.length?[2]:[4,this.getDB()];case 1:return t=e.sent(),n=t.transaction([o.EVENTS],"readwrite"),s=n.objectStore(o.EVENTS),[2,new Promise((function(t){n.oncomplete=function(){t()},n.onabort=function(e){a.logger.debug("DiagnosticsStorage: Failed to add event records",e),t()};var e=s.count();e.onsuccess=function(){var t=e.result,n=Math.max(0,10-t);n<r.length&&a.logger.debug("DiagnosticsStorage: Only added ".concat(n," of ").concat(r.length," events due to storage limit")),r.slice(0,n).forEach((function(t){s.add(t).onerror=function(t){a.logger.debug("DiagnosticsStorage: Failed to add event record",t)}}))},e.onerror=function(t){a.logger.debug("DiagnosticsStorage: Failed to count existing events",t)}}))];case 2:return i=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",i),[3,3];case 3:return[2]}}))}))},i.prototype.setInternal=function(r,n){return t(this,void 0,void 0,(function(){var t,s,i,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.INTERNAL],"readwrite"),i=s.objectStore(o.INTERNAL),[2,new Promise((function(t,e){s.onabort=function(){return e(new Error("Failed to set internal value"))};var o=i.put({key:r,value:n});o.onsuccess=function(){return t()},o.onerror=function(){return e(new Error("Failed to set internal value"))}}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",a),[3,3];case 3:return[2]}}))}))},i.prototype.getInternal=function(r){return t(this,void 0,void 0,(function(){var t,n,s,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getDB()];case 1:return t=e.sent(),n=t.transaction([o.INTERNAL],"readonly"),s=n.objectStore(o.INTERNAL),[2,new Promise((function(t,e){n.onabort=function(){return e(new Error("Failed to get internal value"))};var o=s.get(r);o.onsuccess=function(){return t(o.result)},o.onerror=function(){return e(new Error("Failed to get internal value"))}}))];case 2:return i=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",i),[2,void 0];case 3:return[2]}}))}))},i.prototype.getLastFlushTimestamp=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getInternal(s.LAST_FLUSH_TIMESTAMP)];case 1:return[2,(t=e.sent())?parseInt(t.value,10):void 0];case 2:return r=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",r),[2,void 0];case 3:return[2]}}))}))},i.prototype.setLastFlushTimestamp=function(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.setInternal(s.LAST_FLUSH_TIMESTAMP,r.toString())];case 1:return e.sent(),[3,3];case 2:return t=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",t),[3,3];case 3:return[2]}}))}))},i.prototype.clearTable=function(t,e){return new Promise((function(r,n){var o=t.objectStore(e).clear();o.onsuccess=function(){return r()},o.onerror=function(){return n(new Error("Failed to clear table ".concat(e)))}}))},i.prototype.getAllAndClear=function(){return t(this,void 0,void 0,(function(){var t,n,s,i,a,c,u,l;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),[4,this.getDB()];case 1:return t=e.sent(),n=t.transaction([o.TAGS,o.COUNTERS,o.HISTOGRAMS,o.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(n,o.TAGS),this.getAllFromStore(n,o.COUNTERS),this.getAllFromStore(n,o.HISTOGRAMS),this.getAllFromStore(n,o.EVENTS)])];case 2:return s=r.apply(void 0,[e.sent(),4]),i=s[0],a=s[1],c=s[2],u=s[3],[4,Promise.all([this.clearTable(n,o.COUNTERS),this.clearTable(n,o.HISTOGRAMS),this.clearTable(n,o.EVENTS)])];case 3:return e.sent(),[2,{tags:i,counters:a,histogramStats:c,events:u}];case 4:return l=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",l),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}}))}))},i.prototype.getAllFromStore=function(t,e){return new Promise((function(r,n){var o=t.objectStore(e).getAll();o.onsuccess=function(){return r(o.result)},o.onerror=function(){return n(new Error("Failed to get all from ".concat(e)))}}))},i}();export{i as DiagnosticsStorage,s as INTERNAL_KEYS,o as TABLE_NAMES};
1
+ import{__awaiter as t,__generator as e,__read as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as n}from"../global-scope.js";var o={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},s={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},i=function(){function i(t,e){this.dbPromise=null,this.logger=e,this.dbName="AMP_diagnostics_".concat(t.substring(0,10))}return i.isSupported=function(){var t;return void 0!==(null===(t=n())||void 0===t?void 0:t.indexedDB)},i.prototype.getDB=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]}))}))},i.prototype.openDB=function(){var t=this;return new Promise((function(e,r){var n=indexedDB.open(t.dbName,1);n.onerror=function(){t.dbPromise=null,r(new Error("Failed to open IndexedDB"))},n.onsuccess=function(){var r=n.result;r.onclose=function(){t.dbPromise=null,t.logger.debug("DiagnosticsStorage: DB connection closed.")},r.onerror=function(e){t.logger.debug("DiagnosticsStorage: A global database error occurred.",e),r.close()},e(r)},n.onupgradeneeded=function(e){var r=e.target.result;t.createTables(r)}}))},i.prototype.createTables=function(t){(t.objectStoreNames.contains(o.TAGS)||t.createObjectStore(o.TAGS,{keyPath:"key"}),t.objectStoreNames.contains(o.COUNTERS)||t.createObjectStore(o.COUNTERS,{keyPath:"key"}),t.objectStoreNames.contains(o.HISTOGRAMS)||t.createObjectStore(o.HISTOGRAMS,{keyPath:"key"}),t.objectStoreNames.contains(o.EVENTS))||t.createObjectStore(o.EVENTS,{keyPath:"id",autoIncrement:!0}).createIndex("time_idx","time",{unique:!1});t.objectStoreNames.contains(o.INTERNAL)||t.createObjectStore(o.INTERNAL,{keyPath:"key"})},i.prototype.setTags=function(n){return t(this,void 0,void 0,(function(){var t,s,i,a,c=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===Object.entries(n).length?[2]:[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.TAGS],"readwrite"),i=s.objectStore(o.TAGS),[2,new Promise((function(t){var e=Object.entries(n);s.oncomplete=function(){t()},s.onabort=function(e){c.logger.debug("DiagnosticsStorage: Failed to set tags",e),t()},e.forEach((function(t){var e=r(t,2),n=e[0],o=e[1];i.put({key:n,value:o}).onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to set tag",n,o,t)}}))}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",a),[3,3];case 3:return[2]}}))}))},i.prototype.incrementCounters=function(n){return t(this,void 0,void 0,(function(){var t,s,i,a,c=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===Object.entries(n).length?[2]:[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.COUNTERS],"readwrite"),i=s.objectStore(o.COUNTERS),[2,new Promise((function(t){var e=Object.entries(n);s.oncomplete=function(){t()},s.onabort=function(e){c.logger.debug("DiagnosticsStorage: Failed to increment counters",e),t()},e.forEach((function(t){var e=r(t,2),n=e[0],o=e[1],s=i.get(n);s.onsuccess=function(){var t=s.result,e=t?t.value:0;i.put({key:n,value:e+o}).onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to update counter",n,t)}},s.onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to read existing counter",n,t)}}))}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",a),[3,3];case 3:return[2]}}))}))},i.prototype.setHistogramStats=function(n){return t(this,void 0,void 0,(function(){var t,s,i,a,c=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===Object.entries(n).length?[2]:[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.HISTOGRAMS],"readwrite"),i=s.objectStore(o.HISTOGRAMS),[2,new Promise((function(t){var e=Object.entries(n);s.oncomplete=function(){t()},s.onabort=function(e){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",e),t()},e.forEach((function(t){var e=r(t,2),n=e[0],o=e[1],s=i.get(n);s.onsuccess=function(){var t,e=s.result;t=e?{key:n,count:e.count+o.count,min:Math.min(e.min,o.min),max:Math.max(e.max,o.max),sum:e.sum+o.sum}:{key:n,count:o.count,min:o.min,max:o.max,sum:o.sum},i.put(t).onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to set histogram stats",n,t)}},s.onerror=function(t){c.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",n,t)}}))}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",a),[3,3];case 3:return[2]}}))}))},i.prototype.addEventRecords=function(r){return t(this,void 0,void 0,(function(){var t,n,s,i,a=this;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),0===r.length?[2]:[4,this.getDB()];case 1:return t=e.sent(),n=t.transaction([o.EVENTS],"readwrite"),s=n.objectStore(o.EVENTS),[2,new Promise((function(t){n.oncomplete=function(){t()},n.onabort=function(e){a.logger.debug("DiagnosticsStorage: Failed to add event records",e),t()};var e=s.count();e.onsuccess=function(){var t=e.result,n=Math.max(0,10-t);n<r.length&&a.logger.debug("DiagnosticsStorage: Only added ".concat(n," of ").concat(r.length," events due to storage limit")),r.slice(0,n).forEach((function(t){s.add(t).onerror=function(t){a.logger.debug("DiagnosticsStorage: Failed to add event record",t)}}))},e.onerror=function(t){a.logger.debug("DiagnosticsStorage: Failed to count existing events",t)}}))];case 2:return i=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",i),[3,3];case 3:return[2]}}))}))},i.prototype.setInternal=function(r,n){return t(this,void 0,void 0,(function(){var t,s,i,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getDB()];case 1:return t=e.sent(),s=t.transaction([o.INTERNAL],"readwrite"),i=s.objectStore(o.INTERNAL),[2,new Promise((function(t,e){s.onabort=function(){return e(new Error("Failed to set internal value"))};var o=i.put({key:r,value:n});o.onsuccess=function(){return t()},o.onerror=function(){return e(new Error("Failed to set internal value"))}}))];case 2:return a=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",a),[3,3];case 3:return[2]}}))}))},i.prototype.getInternal=function(r){return t(this,void 0,void 0,(function(){var t,n,s,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getDB()];case 1:return t=e.sent(),n=t.transaction([o.INTERNAL],"readonly"),s=n.objectStore(o.INTERNAL),[2,new Promise((function(t,e){n.onabort=function(){return e(new Error("Failed to get internal value"))};var o=s.get(r);o.onsuccess=function(){return t(o.result)},o.onerror=function(){return e(new Error("Failed to get internal value"))}}))];case 2:return i=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",i),[2,void 0];case 3:return[2]}}))}))},i.prototype.getLastFlushTimestamp=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.getInternal(s.LAST_FLUSH_TIMESTAMP)];case 1:return[2,(t=e.sent())?parseInt(t.value,10):void 0];case 2:return r=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",r),[2,void 0];case 3:return[2]}}))}))},i.prototype.setLastFlushTimestamp=function(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.setInternal(s.LAST_FLUSH_TIMESTAMP,r.toString())];case 1:return e.sent(),[3,3];case 2:return t=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",t),[3,3];case 3:return[2]}}))}))},i.prototype.clearTable=function(t,e){return new Promise((function(r,n){var o=t.objectStore(e).clear();o.onsuccess=function(){return r()},o.onerror=function(){return n(new Error("Failed to clear table ".concat(e)))}}))},i.prototype.getAllAndClear=function(){return t(this,void 0,void 0,(function(){var t,n,s,i,a,c,u,l;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,4,,5]),[4,this.getDB()];case 1:return t=e.sent(),n=t.transaction([o.TAGS,o.COUNTERS,o.HISTOGRAMS,o.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(n,o.TAGS),this.getAllFromStore(n,o.COUNTERS),this.getAllFromStore(n,o.HISTOGRAMS),this.getAllFromStore(n,o.EVENTS)])];case 2:return s=r.apply(void 0,[e.sent(),4]),i=s[0],a=s[1],c=s[2],u=s[3],[4,Promise.all([this.clearTable(n,o.COUNTERS),this.clearTable(n,o.HISTOGRAMS),this.clearTable(n,o.EVENTS)])];case 3:return e.sent(),[2,{tags:i,counters:a,histogramStats:c,events:u}];case 4:return l=e.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",l),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}}))}))},i.prototype.getAllFromStore=function(t,e){return new Promise((function(r,n){var o=t.objectStore(e).getAll();o.onsuccess=function(){return r(o.result)},o.onerror=function(){return n(new Error("Failed to get all from ".concat(e)))}}))},i}();export{i as DiagnosticsStorage,s as INTERNAL_KEYS,o as TABLE_NAMES};
@@ -0,0 +1 @@
1
+ import{__values as e,__assign as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as n}from"../global-scope.js";var t="__AMPLITUDE_SCRIPT_URL__",a="sdk.error.uncaught",i=function(e){var t=n();if(t&&"function"==typeof t.addEventListener){var i=function(n){e.recordEvent(a,r({type:n.type,message:n.message,filename:n.filename,error_name:n.errorName,stack:n.stack},n.metadata))};t.addEventListener("error",(function(e){var r=e.error instanceof Error?e.error:void 0,n=null==r?void 0:r.stack,t=o({filename:e.filename,stack:n});t&&i({type:"error",message:e.message,stack:n,filename:e.filename,errorName:null==r?void 0:r.name,metadata:{colno:e.colno,lineno:e.lineno,isTrusted:e.isTrusted,matchReason:t}})}),!0),t.addEventListener("unhandledrejection",(function(e){var r,n=e.reason instanceof Error?e.reason:void 0,t=null==n?void 0:n.stack,a=s(t),c=o({filename:a,stack:t});c&&i({type:"unhandledrejection",message:null!==(r=null==n?void 0:n.message)&&void 0!==r?r:l(e.reason),stack:t,filename:a,errorName:null==n?void 0:n.name,metadata:{isTrusted:e.isTrusted,matchReason:c}})}),!0)}},o=function(r){var a,i,o=function(){var e=n();if(!e)return[];var r=e[t];return Array.isArray(r)?r:"string"==typeof r?[r]:[]}();if(0!==o.length)try{for(var s=e(o),l=s.next();!l.done;l=s.next()){var c=l.value;if(r.filename&&r.filename.includes(c))return"filename";if(r.stack&&r.stack.includes(c))return"stack"}}catch(e){a={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}},s=function(e){if(e){var r=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return r?r[1]:void 0}},l=function(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(e){return"[object Object]"}};export{a as EVENT_NAME_ERROR_UNCAUGHT,t as GLOBAL_KEY,i as enableSdkErrorListeners};
@@ -1 +1 @@
1
- import{__assign as t}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{UNSET_VALUE as e}from"./types/constants.js";import{isValidProperties as r}from"./utils/valid-properties.js";var s,p=function(){function p(){this._propertySet=new Set,this._properties={}}return p.prototype.getUserProperties=function(){return t({},this._properties)},p.prototype.set=function(t,e){return this._safeSet(s.SET,t,e),this},p.prototype.setOnce=function(t,e){return this._safeSet(s.SET_ONCE,t,e),this},p.prototype.append=function(t,e){return this._safeSet(s.APPEND,t,e),this},p.prototype.prepend=function(t,e){return this._safeSet(s.PREPEND,t,e),this},p.prototype.postInsert=function(t,e){return this._safeSet(s.POSTINSERT,t,e),this},p.prototype.preInsert=function(t,e){return this._safeSet(s.PREINSERT,t,e),this},p.prototype.remove=function(t,e){return this._safeSet(s.REMOVE,t,e),this},p.prototype.add=function(t,e){return this._safeSet(s.ADD,t,e),this},p.prototype.unset=function(t){return this._safeSet(s.UNSET,t,e),this},p.prototype.clearAll=function(){return this._properties={},this._properties[s.CLEAR_ALL]=e,this},p.prototype._safeSet=function(t,e,r){if(this._validate(t,e,r)){var s=this._properties[t];return void 0===s&&(s={},this._properties[t]=s),s[e]=r,this._propertySet.add(e),!0}return!1},p.prototype._validate=function(t,e,p){return void 0===this._properties[s.CLEAR_ALL]&&(!this._propertySet.has(e)&&(t===s.ADD?"number"==typeof p:t===s.UNSET||t===s.REMOVE||r(e,p)))},p}();!function(t){t.SET="$set",t.SET_ONCE="$setOnce",t.ADD="$add",t.APPEND="$append",t.PREPEND="$prepend",t.REMOVE="$remove",t.PREINSERT="$preInsert",t.POSTINSERT="$postInsert",t.UNSET="$unset",t.CLEAR_ALL="$clearAll"}(s||(s={}));var o=[s.CLEAR_ALL,s.UNSET,s.SET,s.SET_ONCE,s.ADD,s.APPEND,s.PREPEND,s.PREINSERT,s.POSTINSERT,s.REMOVE];export{p as Identify,s as IdentifyOperation,o as OrderedIdentifyOperations};
1
+ import{__assign as t}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{UNSET_VALUE as e}from"./types/constants.js";import{isValidProperties as r}from"./utils/valid-properties.js";var s,p=function(){function p(){this._propertySet=new Set,this._properties={}}return p.prototype.getUserProperties=function(){return t({},this._properties)},p.prototype.set=function(t,e){return this._safeSet(s.SET,t,e),this},p.prototype.setOnce=function(t,e){return this._safeSet(s.SET_ONCE,t,e),this},p.prototype.append=function(t,e){return this._safeSet(s.APPEND,t,e),this},p.prototype.prepend=function(t,e){return this._safeSet(s.PREPEND,t,e),this},p.prototype.postInsert=function(t,e){return this._safeSet(s.POSTINSERT,t,e),this},p.prototype.preInsert=function(t,e){return this._safeSet(s.PREINSERT,t,e),this},p.prototype.remove=function(t,e){return this._safeSet(s.REMOVE,t,e),this},p.prototype.add=function(t,e){return this._safeSet(s.ADD,t,e),this},p.prototype.unset=function(t){return this._safeSet(s.UNSET,t,e),this},p.prototype.clearAll=function(){return this._properties={},this._properties[s.CLEAR_ALL]=e,this},p.prototype._safeSet=function(t,e,r){if(this._validate(t,e,r)){var s=this._properties[t];return void 0===s&&(s={},this._properties[t]=s),s[e]=r,this._propertySet.add(e),!0}return!1},p.prototype._validate=function(t,e,p){return void 0===this._properties[s.CLEAR_ALL]&&(!this._propertySet.has(e)&&(t===s.ADD?"number"==typeof p:t===s.UNSET||t===s.REMOVE||r(e,p)))},p}();!function(t){t.SET="$set",t.SET_ONCE="$setOnce",t.ADD="$add",t.APPEND="$append",t.PREPEND="$prepend",t.REMOVE="$remove",t.PREINSERT="$preInsert",t.POSTINSERT="$postInsert",t.UNSET="$unset",t.CLEAR_ALL="$clearAll"}(s||(s={}));var o=[s.CLEAR_ALL,s.UNSET,s.SET,s.SET_ONCE,s.ADD,s.APPEND,s.PREPEND,s.PREINSERT,s.POSTINSERT,s.REMOVE];export{p as Identify,s as IdentifyOperation,o as OrderedIdentifyOperations};
@@ -0,0 +1 @@
1
+ import{AMPLITUDE_BACKGROUND_CAPTURE_SCRIPT_URL as n}from"./constants.js";var o="__AMPLITUDE_BACKGROUND_CAPTURE__";function l(l,a){var i=l;if(!0!==i[o]){i[o]=!0;var r=n,e=null,t=function(n,o){var a,i;"background-capture-complete"===n&&(null===(i=null===(a=l.logger)||void 0===a?void 0:a.debug)||void 0===i||i.call(a,"Background capture complete"),l.notify({action:"background-capture-complete",data:o}))};l.registerActionHandler("initialize-background-capture",(function(){var n,o;null===(o=null===(n=l.logger)||void 0===n?void 0:n.debug)||void 0===o||o.call(n,"Initializing background capture (external script)");var a=new URL(r,l.endpoint).toString();l.loadScriptOnce(a).then((function(){var n,o,a;null===(o=null===(n=l.logger)||void 0===n?void 0:n.debug)||void 0===o||o.call(n,"Background capture script loaded (external)"),e=null===(a=null===window||void 0===window?void 0:window.amplitudeBackgroundCapture)||void 0===a?void 0:a.call(window,{messenger:l,onBackgroundCapture:t}),l.notify({action:"background-capture-loaded"})})).catch((function(){var n;null===(n=l.logger)||void 0===n||n.warn("Failed to initialize background capture")}))})),l.registerActionHandler("close-background-capture",(function(){var n;null===(n=null==e?void 0:e.close)||void 0===n||n.call(e),e=null}))}}export{l as enableBackgroundCapture};
@@ -0,0 +1 @@
1
+ import{__values as e,__awaiter as t,__generator as i}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as s}from"../global-scope.js";import{AMPLITUDE_ORIGIN as n}from"./constants.js";import{generateUniqueId as o,asyncLoadScript as r}from"./utils.js";var l,a="__AMPLITUDE_MESSENGER_INSTANCE__",d="__AMPLITUDE_MESSENGER__",u=function(){function a(e){var t=(void 0===e?{}:e).origin,i=void 0===t?n:t;this[l]=!0,this.isSetup=!1,this.messageHandler=null,this.requestCallbacks={},this.actionHandlers=new Map,this.pendingMessages=new Map,this.scriptLoadPromises=new Map,this.endpoint=i}return a.prototype.notify=function(e){var t,i,s,n;null===(i=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===i||i.call(t,"Message sent: ",JSON.stringify(e)),null===(n=null===(s=window.opener)||void 0===s?void 0:s.postMessage)||void 0===n||n.call(s,e,this.endpoint)},a.prototype.sendRequest=function(e,t,i){var s=this;void 0===i&&(i={timeout:15e3});var n=o(),r={id:n,action:e,args:t};return new Promise((function(t,o){s.requestCallbacks[n]={resolve:t,reject:o},s.notify(r),i.timeout>0&&setTimeout((function(){o(new Error("".concat(e," timed out (id: ").concat(n,")"))),delete s.requestCallbacks[n]}),i.timeout)}))},a.prototype.handleResponse=function(e){var t;this.requestCallbacks[e.id]?(this.requestCallbacks[e.id].resolve(e.responseData),delete this.requestCallbacks[e.id]):null===(t=this.logger)||void 0===t||t.warn("No callback found for request id: ".concat(e.id))},a.prototype.registerActionHandler=function(t,i){var s,n,o,r;this.actionHandlers.has(t)&&(null===(r=null===(o=this.logger)||void 0===o?void 0:o.warn)||void 0===r||r.call(o,"Overwriting existing action handler for: ".concat(t))),this.actionHandlers.set(t,i);var l=this.pendingMessages.get(t);if(l){this.pendingMessages.delete(t);try{for(var a=e(l),d=a.next();!d.done;d=a.next()){i(d.value)}}catch(e){s={error:e}}finally{try{d&&!d.done&&(n=a.return)&&n.call(a)}finally{if(s)throw s.error}}}},a.prototype.loadScriptOnce=function(e){return t(this,void 0,void 0,(function(){var t,s,n;return i(this,(function(i){switch(i.label){case 0:if(t=this.scriptLoadPromises.get(e))return[2,t];s=r(e).then((function(){})),this.scriptLoadPromises.set(e,s),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,s];case 2:return i.sent(),[3,4];case 3:throw n=i.sent(),this.scriptLoadPromises.delete(e),n;case 4:return[2]}}))}))},a.prototype.setup=function(e){var t,i,s=this,o=void 0===e?{}:e,r=o.logger,l=o.endpoint;r&&(this.logger=r),l&&this.endpoint===n&&(this.endpoint=l),this.isSetup||(this.isSetup=!0,null===(i=null===(t=this.logger)||void 0===t?void 0:t.debug)||void 0===i||i.call(t,"Setting up messenger"),this.messageHandler=function(e){var t,i,n,o,r;if(null===(i=null===(t=s.logger)||void 0===t?void 0:t.debug)||void 0===i||i.call(t,"Message received: ",JSON.stringify(e)),s.endpoint===e.origin){var l=e.data,a=null==l?void 0:l.action;if(a)if("id"in l&&l.id)null===(o=null===(n=s.logger)||void 0===n?void 0:n.debug)||void 0===o||o.call(n,"Received Response to previous request: ",JSON.stringify(e)),s.handleResponse(l);else{if("ping"===a)return void s.notify({action:"pong"});var d=s.actionHandlers.get(a);if(d)d(l.data);else{var u=null!==(r=s.pendingMessages.get(a))&&void 0!==r?r:[];u.push(l.data),s.pendingMessages.set(a,u)}}}},window.addEventListener("message",this.messageHandler),this.notify({action:"page-loaded"}))},a.prototype.destroy=function(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.isSetup=!1,this.actionHandlers.clear(),this.pendingMessages.clear(),this.requestCallbacks={},this.scriptLoadPromises.clear();var e=s();(null==e?void 0:e[d])===this&&delete e[d]},a}();function c(e){var t,i=s(),n=null==i?void 0:i[d];if("object"==typeof(t=n)&&null!==t&&a in t&&!0===t[a])return n;var o=new u(e);return i&&(i[d]=o),o}l=a;export{c as getOrCreateWindowMessenger};
@@ -0,0 +1 @@
1
+ var p="https://app.amplitude.com",t="https://app.eu.amplitude.com",a="https://apps.stag2.amplitude.com",m={US:p,EU:t,STAGING:a},s="https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.1.js.gz";export{s as AMPLITUDE_BACKGROUND_CAPTURE_SCRIPT_URL,p as AMPLITUDE_ORIGIN,m as AMPLITUDE_ORIGINS_MAP,t as AMPLITUDE_ORIGIN_EU,a as AMPLITUDE_ORIGIN_STAGING};
@@ -0,0 +1 @@
1
+ var t=function(t){return document.querySelector('script[src="'.concat(CSS.escape(t),'"]'))?Promise.resolve({status:!0}):new Promise((function(e,n){var c;try{var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,r.addEventListener("load",(function(){e({status:!0})}),{once:!0}),r.addEventListener("error",(function(){n({status:!1,message:"Failed to load the script ".concat(t)})})),null===(c=document.head)||void 0===c||c.appendChild(r)}catch(t){n(t)}}))};function e(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}export{t as asyncLoadScript,e as generateUniqueId};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t,__values as r,__read as n,__spreadArray as o}from"../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as i}from"./global-scope.js";import{pruneJson as s}from"./utils/json-query.js";import{FORBIDDEN_HEADERS as u,SAFE_HEADERS as a}from"./types/constants.js";var l=100,f=function(){function o(e){this.request=e}return o.prototype.headers=function(e){var t,o;void 0===e&&(e=[]);var i=this.request.headers,s={};if(Array.isArray(i))i.forEach((function(e){var t=n(e,2),r=t[0],o=t[1];s[r]=o}));else if(i instanceof Headers)i.forEach((function(e,t){s[t]=e}));else if("object"==typeof i&&null!==i)try{for(var u=r(Object.entries(i)),a=u.next();!a.done;a=u.next()){var l=n(a.value,2),f=l[0],d=l[1];s[f]=d}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}return m(s,{allow:e})},Object.defineProperty(o.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=i();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=c(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),o.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){return t(this,(function(e){return 0===r.length?[2,null]:[2,v(this.body,r,n)]}))}))},o}(),d=function(){function r(e,t){this.bodyRaw=e,this.requestHeaders=t}return r.prototype.headers=function(e){return void 0===e&&(e=[]),m(this.requestHeaders,{allow:e})},Object.defineProperty(r.prototype,"bodySize",{get:function(){return c(this.bodyRaw,100)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"body",{get:function(){return"string"==typeof this.bodyRaw?this.bodyRaw:null},enumerable:!1,configurable:!0}),r.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){return t(this,(function(e){return 0===r.length?[2,null]:[2,v(this.body,r,n)]}))}))},r}();function c(e,t){var o,s,u,a=i(),l=null==a?void 0:a.TextEncoder;if(l){var f;if("string"==typeof e)f=e,u=(new l).encode(f).length;else if(e instanceof Blob)u=(f=e).size;else if(e instanceof URLSearchParams)f=e,u=(new l).encode(f.toString()).length;else if(ArrayBuffer.isView(e))u=(f=e).byteLength;else if(e instanceof ArrayBuffer)u=(f=e).byteLength;else if(e instanceof FormData){var d=e,c=0,h=0;try{for(var p=r(d.entries()),y=p.next();!y.done;y=p.next()){var v=n(y.value,2),b=v[0],m=v[1];if(c+=b.length,"string"==typeof m)c+=(new l).encode(m).length;else{if(!(m instanceof Blob))return;c+=m.size}if(++h>=t)return}}catch(e){o={error:e}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}u=c}else if(e instanceof ReadableStream)return void(f=e);return u}}var h,p=function(){function r(e){this.response=e}return r.prototype.headers=function(e){var t;if(void 0===e&&(e=[]),this.response.headers instanceof Headers){var r=this.response.headers,n={};return null===(t=null==r?void 0:r.forEach)||void 0===t||t.call(r,(function(e,t){n[t]=e})),m(n,{allow:e})}},Object.defineProperty(r.prototype,"bodySize",{get:function(){var e,t;if(void 0!==this._bodySize)return this._bodySize;var r=null===(t=null===(e=this.response.headers)||void 0===e?void 0:e.get)||void 0===t?void 0:t.call(e,"content-length"),n=r?parseInt(r,10):void 0;return this._bodySize=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),r.prototype.text=function(){return e(this,void 0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),t.label=1;case 1:return t.trys.push([1,3,,4]),e=this.clonedResponse.text(),r=new Promise((function(e){return setTimeout((function(){return e(null)}),500)})),[4,Promise.race([e,r])];case 2:return[2,t.sent()];case 3:return t.sent(),[2,null];case 4:return[2]}}))}))},r.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return 0===r.length?[2,null]:[4,this.text()];case 1:return[2,v(e.sent(),r,n)]}}))}))},r}(),y=function(){function o(e,t,r,n){this.statusCode=e,this.headersString=t,this.size=r,this.getJson=n}return Object.defineProperty(o.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),o.prototype.headers=function(e){var t,o;if(void 0===e&&(e=[]),!this.headersString)return{};var i={},s=this.headersString.split("\r\n");try{for(var u=r(s),a=u.next();!a.done;a=u.next()){var l=a.value,f=n(l.split(": "),2),d=f[0],c=f[1];d&&c&&(i[d]=c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}return m(i,{allow:e})},o.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){var e;return t(this,(function(t){return 0===r.length?[2,null]:(e=this.getJson())?(s(e,r,n),[2,e]):[2,null]}))}))},o}();function v(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return s(n,t,r),n}catch(e){return null}}!function(e){e.REDACT="redact",e.REMOVE="remove"}(h||(h={}));var b="[REDACTED]",m=function(e,t){var i,s,a=t.allow,l=void 0===a?[]:a,f=t.strategy,d=void 0===f?h.REMOVE:f,c=o([],n(u),!1),p={},y=function(t){var r=t.toLowerCase();c.find((function(e){return e.toLowerCase()===r}))?d===h.REDACT&&(p[t]=b):l.find((function(e){return e.toLowerCase()===r}))?p[t]=e[t]:d===h.REDACT&&(p[t]=b)};try{for(var v=r(Object.keys(e)),m=v.next();!m.done;m=v.next()){y(m.value)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return p},g=function(){function e(e,t,r,n,o,i,s,u,a,l,f){void 0===s&&(s=0),this.type=e,this.method=t,this.timestamp=r,this.startTime=n,this.url=o,this.requestWrapper=i,this.status=s,this.duration=u,this.responseWrapper=a,this.error=l,this.endTime=f}return e.prototype.toSerializable=function(){var e,t,r,i,s={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null===(e=this.requestWrapper)||void 0===e?void 0:e.headers(o([],n(a),!1)),requestBodySize:null===(t=this.requestWrapper)||void 0===t?void 0:t.bodySize,responseHeaders:null===(r=this.responseWrapper)||void 0===r?void 0:r.headers(o([],n(a),!1)),responseBodySize:null===(i=this.responseWrapper)||void 0===i?void 0:i.bodySize};return Object.fromEntries(Object.entries(s).filter((function(e){var t=n(e,2);return t[0],void 0!==t[1]})))},e}();export{l as MAXIMUM_ENTRIES,g as NetworkRequestEvent,h as PRUNE_STRATEGY,f as RequestWrapperFetch,d as RequestWrapperXhr,p as ResponseWrapperFetch,y as ResponseWrapperXhr,m as pruneHeaders};
1
+ import{__awaiter as e,__generator as t,__values as r,__read as n,__spreadArray as o}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as i}from"./global-scope.js";import{pruneJson as s}from"./utils/json-query.js";import{FORBIDDEN_HEADERS as u,SAFE_HEADERS as a}from"./types/constants.js";var l=100,f=function(){function o(e){this.request=e}return o.prototype.headers=function(e){var t,o;void 0===e&&(e=[]);var i=this.request.headers,s={};if(Array.isArray(i))i.forEach((function(e){var t=n(e,2),r=t[0],o=t[1];s[r]=o}));else if(i instanceof Headers)i.forEach((function(e,t){s[t]=e}));else if("object"==typeof i&&null!==i)try{for(var u=r(Object.entries(i)),a=u.next();!a.done;a=u.next()){var l=n(a.value,2),f=l[0],d=l[1];s[f]=d}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}return m(s,{allow:e})},Object.defineProperty(o.prototype,"bodySize",{get:function(){if("number"==typeof this._bodySize)return this._bodySize;var e=i();if(null==e?void 0:e.TextEncoder){var t=this.request.body;return this._bodySize=c(t,100),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"body",{get:function(){return"string"==typeof this.request.body?this.request.body:null},enumerable:!1,configurable:!0}),o.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){return t(this,(function(e){return 0===r.length?[2,null]:[2,v(this.body,r,n)]}))}))},o}(),d=function(){function r(e,t){this.bodyRaw=e,this.requestHeaders=t}return r.prototype.headers=function(e){return void 0===e&&(e=[]),m(this.requestHeaders,{allow:e})},Object.defineProperty(r.prototype,"bodySize",{get:function(){return c(this.bodyRaw,100)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"body",{get:function(){return"string"==typeof this.bodyRaw?this.bodyRaw:null},enumerable:!1,configurable:!0}),r.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){return t(this,(function(e){return 0===r.length?[2,null]:[2,v(this.body,r,n)]}))}))},r}();function c(e,t){var o,s,u,a=i(),l=null==a?void 0:a.TextEncoder;if(l){var f;if("string"==typeof e)f=e,u=(new l).encode(f).length;else if(e instanceof Blob)u=(f=e).size;else if(e instanceof URLSearchParams)f=e,u=(new l).encode(f.toString()).length;else if(ArrayBuffer.isView(e))u=(f=e).byteLength;else if(e instanceof ArrayBuffer)u=(f=e).byteLength;else if(e instanceof FormData){var d=e,c=0,h=0;try{for(var p=r(d.entries()),y=p.next();!y.done;y=p.next()){var v=n(y.value,2),b=v[0],m=v[1];if(c+=b.length,"string"==typeof m)c+=(new l).encode(m).length;else{if(!(m instanceof Blob))return;c+=m.size}if(++h>=t)return}}catch(e){o={error:e}}finally{try{y&&!y.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}u=c}else if(e instanceof ReadableStream)return void(f=e);return u}}var h,p=function(){function r(e){this.response=e}return r.prototype.headers=function(e){var t;if(void 0===e&&(e=[]),this.response.headers instanceof Headers){var r=this.response.headers,n={};return null===(t=null==r?void 0:r.forEach)||void 0===t||t.call(r,(function(e,t){n[t]=e})),m(n,{allow:e})}},Object.defineProperty(r.prototype,"bodySize",{get:function(){var e,t;if(void 0!==this._bodySize)return this._bodySize;var r=null===(t=null===(e=this.response.headers)||void 0===e?void 0:e.get)||void 0===t?void 0:t.call(e,"content-length"),n=r?parseInt(r,10):void 0;return this._bodySize=n,n},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),r.prototype.text=function(){return e(this,void 0,void 0,(function(){var e,r;return t(this,(function(t){switch(t.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),t.label=1;case 1:return t.trys.push([1,3,,4]),e=this.clonedResponse.text(),r=new Promise((function(e){return setTimeout((function(){return e(null)}),500)})),[4,Promise.race([e,r])];case 2:return[2,t.sent()];case 3:return t.sent(),[2,null];case 4:return[2]}}))}))},r.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return 0===r.length?[2,null]:[4,this.text()];case 1:return[2,v(e.sent(),r,n)]}}))}))},r}(),y=function(){function o(e,t,r,n){this.statusCode=e,this.headersString=t,this.size=r,this.getJson=n}return Object.defineProperty(o.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),o.prototype.headers=function(e){var t,o;if(void 0===e&&(e=[]),!this.headersString)return{};var i={},s=this.headersString.split("\r\n");try{for(var u=r(s),a=u.next();!a.done;a=u.next()){var l=a.value,f=n(l.split(": "),2),d=f[0],c=f[1];d&&c&&(i[d]=c)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(t)throw t.error}}return m(i,{allow:e})},o.prototype.json=function(r,n){return void 0===r&&(r=[]),void 0===n&&(n=[]),e(this,void 0,void 0,(function(){var e;return t(this,(function(t){return 0===r.length?[2,null]:(e=this.getJson())?(s(e,r,n),[2,e]):[2,null]}))}))},o}();function v(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return s(n,t,r),n}catch(e){return null}}!function(e){e.REDACT="redact",e.REMOVE="remove"}(h||(h={}));var b="[REDACTED]",m=function(e,t){var i,s,a=t.allow,l=void 0===a?[]:a,f=t.strategy,d=void 0===f?h.REMOVE:f,c=o([],n(u),!1),p={},y=function(t){var r=t.toLowerCase();c.find((function(e){return e.toLowerCase()===r}))?d===h.REDACT&&(p[t]=b):l.find((function(e){return e.toLowerCase()===r}))?p[t]=e[t]:d===h.REDACT&&(p[t]=b)};try{for(var v=r(Object.keys(e)),m=v.next();!m.done;m=v.next()){y(m.value)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return p},g=function(){function e(e,t,r,n,o,i,s,u,a,l,f){void 0===s&&(s=0),this.type=e,this.method=t,this.timestamp=r,this.startTime=n,this.url=o,this.requestWrapper=i,this.status=s,this.duration=u,this.responseWrapper=a,this.error=l,this.endTime=f}return e.prototype.toSerializable=function(){var e,t,r,i,s={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:null===(e=this.requestWrapper)||void 0===e?void 0:e.headers(o([],n(a),!1)),requestBodySize:null===(t=this.requestWrapper)||void 0===t?void 0:t.bodySize,responseHeaders:null===(r=this.responseWrapper)||void 0===r?void 0:r.headers(o([],n(a),!1)),responseBodySize:null===(i=this.responseWrapper)||void 0===i?void 0:i.bodySize};return Object.fromEntries(Object.entries(s).filter((function(e){var t=n(e,2);return t[0],void 0!==t[1]})))},e}();export{l as MAXIMUM_ENTRIES,g as NetworkRequestEvent,h as PRUNE_STRATEGY,f as RequestWrapperFetch,d as RequestWrapperXhr,p as ResponseWrapperFetch,y as ResponseWrapperXhr,m as pruneHeaders};
@@ -0,0 +1 @@
1
+ import{__values as r,__read as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as t}from"../global-scope.js";var o=t(),n=null==o?void 0:o.console,l={},a={},i=!1;var c={addListener:function(r,e){var t;if(!(t=r,!!n&&"function"==typeof n[t]&&(a[t]||(a[t]=n[t],n[t]=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];try{if(l[t]&&!i){i=!0;var o=l[t];o&&o.forEach((function(e){try{e(t,r)}catch(r){}}))}}catch(r){}return i=!1,a[t].apply(n,r)}),!0)))return new Error("Console override failed");l[r]?l[r].push(e):l[r]=[e]},removeListener:function(e){var t,o;try{for(var n=r(Object.values(l)),a=n.next();!a.done;a=n.next())for(var i=a.value,c=i.length-1;c>=0;c--)if(i[c]===e){i.splice(c,1);break}}catch(r){t={error:r}}finally{try{a&&!a.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}},_restoreConsole:function(){var t,o;try{for(var i=r(Object.entries(a)),c=i.next();!c.done;c=i.next()){var f=e(c.value,2),s=f[0],u=f[1];u&&(n[s]=u)}}catch(r){t={error:r}}finally{try{c&&!c.done&&(o=i.return)&&o.call(i)}finally{if(t)throw t.error}}a={},l={}}};export{c as consoleObserver};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t,__read as r,__assign as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as n}from"../global-scope.js";import{UUID as i}from"../utils/uuid.js";import{NetworkRequestEvent as l,RequestWrapperFetch as s,ResponseWrapperFetch as a,ResponseWrapperXhr as u,RequestWrapperXhr as c}from"../network-request-event.js";var d=function(e,t){void 0===t&&(t=i()),this.callback=e,this.id=t};function v(e){try{e()}catch(e){}}var p=function(){function i(e){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=e;var t=n();i.isSupported()&&(this.globalScope=t)}return i.isSupported=function(){var e=n();return!!e&&!!e.fetch},i.prototype.subscribe=function(e,t){var r,o,n,i,l,s,a,u,c,d;if(this.logger||(this.logger=t),this.eventCallbacks.set(e.id,e),!this.isObserving){var v=null===(n=null===(o=null===(r=this.globalScope)||void 0===r?void 0:r.XMLHttpRequest)||void 0===o?void 0:o.prototype)||void 0===n?void 0:n.open,p=null===(s=null===(l=null===(i=this.globalScope)||void 0===i?void 0:i.XMLHttpRequest)||void 0===l?void 0:l.prototype)||void 0===s?void 0:s.send,h=null===(c=null===(u=null===(a=this.globalScope)||void 0===a?void 0:a.XMLHttpRequest)||void 0===u?void 0:u.prototype)||void 0===c?void 0:c.setRequestHeader;v&&p&&h&&this.observeXhr(v,p,h);var g=null===(d=this.globalScope)||void 0===d?void 0:d.fetch;g&&this.observeFetch(g),this.isObserving=!0}},i.prototype.unsubscribe=function(e){this.eventCallbacks.delete(e.id)},i.prototype.triggerEventCallbacks=function(e){var t=this;this.eventCallbacks.forEach((function(r){try{r.callback(e)}catch(e){v((function(){var r;null===(r=t.logger)||void 0===r||r.debug("an unexpected error occurred while triggering event callbacks",e)}))}}))},i.prototype.handleNetworkRequestEvent=function(e,t,r,o,n,i,s){var a;if(void 0!==i&&void 0!==s){var u,c,d,v="GET";if(!function(e){return"object"==typeof e&&null!==e&&"url"in e&&"method"in e}(t)?u=null===(a=null==t?void 0:t.toString)||void 0===a?void 0:a.call(t):(u=t.url,v=t.method),u)try{var p=new URL(u);u="".concat(p.protocol,"//").concat(p.host).concat(p.pathname).concat(p.search).concat(p.hash)}catch(e){}v=(null==r?void 0:r.method)||v,o&&(c=o.status),n&&(d={name:n.name||"UnknownError",message:n.message||"An unknown error occurred"},c=0);var h=Math.floor(performance.now()-s),g=Math.floor(i+h),f=new l(e,v,i,i,u,r,c,h,o,d,g);this.triggerEventCallbacks(f)}},i.prototype.getTimestamps=function(){var e,t;return{startTime:null===(e=Date.now)||void 0===e?void 0:e.call(Date),durationStart:null===(t=null===performance||void 0===performance?void 0:performance.now)||void 0===t?void 0:t.call(performance)}},i.prototype.observeFetch=function(r){var o=this;this.globalScope&&r&&(this.globalScope.fetch=function(n,i){return e(o,void 0,void 0,(function(){var e,o,l,u,c=this;return t(this,(function(t){switch(t.label){case 0:try{e=this.getTimestamps()}catch(e){v((function(){var t;return null===(t=c.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while retrieving timestamps",e)}))}t.label=1;case 1:return t.trys.push([1,3,,4]),[4,r(n,i)];case 2:return o=t.sent(),[3,4];case 3:return u=t.sent(),l=u,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,i?new s(i):void 0,o?new a(o):void 0,l,null==e?void 0:e.startTime,null==e?void 0:e.durationStart)}catch(e){v((function(){var t;return null===(t=c.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while handling fetch",e)}))}if(o)return[2,o];throw l}}))}))})},i.createXhrJsonParser=function(e,t){return function(){var r;try{if("json"===e.responseType){if(null===(r=t.globalScope)||void 0===r?void 0:r.structuredClone)return t.globalScope.structuredClone(e.response)}else if(["text",""].includes(e.responseType))return JSON.parse(e.responseText)}catch(r){return r instanceof Error&&"InvalidStateError"===r.name&&v((function(){var r;return null===(r=t.logger)||void 0===r?void 0:r.debug("unexpected error when retrieving responseText. responseType='".concat(e.responseType,"'"))})),null}return null}},i.prototype.observeXhr=function(e,t,n){if(this.globalScope&&e&&t){var l=this.globalScope.XMLHttpRequest.prototype,s=this;l.open=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var l=r(n,2),a=l[0],u=l[1];try{this.$$AmplitudeAnalyticsEvent=o({method:a,url:null===(t=null==u?void 0:u.toString)||void 0===t?void 0:t.call(u),headers:{}},s.getTimestamps())}catch(e){v((function(){var t;return null===(t=s.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while calling xhr open",e)}))}return e.apply(this,n)},l.send=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=this,n=i.createXhrJsonParser(this,s),l=e[0],a=o.$$AmplitudeAnalyticsEvent;return o.$$AmplitudeAnalyticsEvent&&o.addEventListener("loadend",(function(){try{var e=o.getAllResponseHeaders(),t=o.getResponseHeader("content-length"),r=new u(o.status,e,t?parseInt(t,10):void 0,n),i=o.$$AmplitudeAnalyticsEvent.headers,d=new c(l,i);a.status=o.status,s.handleNetworkRequestEvent("xhr",{url:a.url,method:a.method},d,r,void 0,a.startTime,a.durationStart)}catch(e){v((function(){var t;return null===(t=s.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while handling xhr send",e)}))}})),t.apply(o,e)},l.setRequestHeader=function(e,t){try{var r=this.$$AmplitudeAnalyticsEvent;r&&(r.headers[e]=t)}catch(e){v((function(){var t;return null===(t=s.logger)||void 0===t?void 0:t.debug("an unexpected error occurred while calling xhr setRequestHeader",e)}))}n.apply(this,[e,t])}}},i}(),h=new p;export{d as NetworkEventCallback,p as NetworkObserver,h as networkObserver};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t,__rest as s,__spreadArray as i,__read as n}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";import{Status as o}from"../types/status.js";import{MAX_RETRIES_EXCEEDED_MESSAGE as r,UNEXPECTED_ERROR_MESSAGE as u,MISSING_API_KEY_MESSAGE as l,SUCCESS_MESSAGE as a,INVALID_API_KEY as c}from"../types/messages.js";import{STORAGE_PREFIX as h}from"../types/constants.js";import{chunk as d}from"../utils/chunk.js";import{buildResult as f}from"../utils/result-builder.js";import{createServerConfig as v,RequestMetadata as p}from"../config.js";import{UUID as g}from"../utils/uuid.js";import{isSuccessStatusCode as m}from"../utils/status-code.js";import{getStacktrace as y}from"../utils/debug.js";function b(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var R=function(){function R(e){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=null==e?void 0:e.diagnosticsClient}return R.prototype.setup=function(s){var i;return e(this,void 0,void 0,(function(){var e,n=this;return t(this,(function(t){switch(t.label){case 0:return this.config=s,this.storageKey="".concat(h,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(i=this.config.storageProvider)||void 0===i?void 0:i.get(this.storageKey)];case 1:return(e=t.sent())&&e.length>0&&Promise.all(e.map((function(e){return n.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},R.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=g()),new Promise((function(s){var i={event:e,attempts:0,callback:function(e){return s(e)},timeout:0};t.queue.push(i),t.schedule(t.config.flushIntervalMillis),t.saveEvents()}))},R.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter((function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,r),!1)}))},R.prototype.scheduleEvents=function(e){var t=this;e.forEach((function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)}))},R.prototype.schedule=function(e){var t=this;if(!this.config.offline)return null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout?(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,void(this.scheduleId=setTimeout((function(){t.queue=t.queue.map((function(e){return e.timeout=0,e})),t.flush(!0)}),e))):void 0},R.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},R.prototype.flush=function(s){return void 0===s&&(s=!1),e(this,void 0,void 0,(function(){var i,n,o=this;return t(this,(function(r){switch(r.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),i=[],n=[],this.queue.forEach((function(e){return 0===e.timeout?i.push(e):n.push(e)})),[4,d(i,this.config.flushQueueSize).reduce((function(i,n){return e(o,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,i];case 1:return e.sent(),[4,this.send(n,s)];case 2:return[2,e.sent()]}}))}))}),Promise.resolve())]);case 1:return r.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}}))}))},R.prototype.send=function(i,n){var r;return void 0===n&&(n=!0),e(this,void 0,void 0,(function(){var e,a,c,h,d;return t(this,(function(t){switch(t.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(i,400,l)];e={api_key:this.config.apiKey,events:i.map((function(e){var t=e.event;return t.extra,s(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new p,t.label=1;case 1:return t.trys.push([1,3,,4]),a=v(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(a,e)];case 2:return null===(c=t.sent())?(this.fulfillRequest(i,0,u),[2]):n?(this.handleResponse(c,i),[3,4]):("body"in c?this.fulfillRequest(i,c.statusCode,"".concat(c.status,": ").concat(b(c))):this.fulfillRequest(i,c.statusCode,c.status),[2]);case 3:return h=t.sent(),d=(f=h)instanceof Error?f.message:String(f),this.config.loggerProvider.error(d),null===(r=this.diagnosticsClient)||void 0===r||r.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:i.map((function(e){return e.event.event_type})),message:d,stack_trace:y()}),this.handleResponse({status:o.Failed,statusCode:0},i),[3,4];case 4:return[2]}var f}))}))},R.prototype.handleResponse=function(e,t){var s;m(e.statusCode)||null===(s=this.diagnosticsClient)||void 0===s||s.recordEvent("analytics.events.unsuccessful",{events:t.map((function(e){return e.event.event_type})),code:e.statusCode,status:e.status,body:b(e),stack_trace:y()});var i=e.status;switch(i){case o.Success:this.handleSuccessResponse(e,t);break;case o.Invalid:this.handleInvalidResponse(e,t);break;case o.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case o.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(i,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},R.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,a)},R.prototype.handleInvalidResponse=function(e,t){var s=this;if(e.body.missingField||e.body.error.startsWith(c))this.fulfillRequest(t,e.statusCode,e.body.error);else{var o=i(i(i(i([],n(Object.values(e.body.eventsWithInvalidFields)),!1),n(Object.values(e.body.eventsWithMissingFields)),!1),n(Object.values(e.body.eventsWithInvalidIdLengths)),!1),n(e.body.silencedEvents),!1).flat(),r=new Set(o),u=t.filter((function(t,i){if(!r.has(i))return!0;s.fulfillRequest([t],e.statusCode,e.body.error)}));u.length>0&&this.config.loggerProvider.warn(b(e));var l=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(l)}},R.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(b(e)),this.config.flushQueueSize/=2;var s=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(s)}else this.fulfillRequest(t,e.statusCode,e.body.error)},R.prototype.handleRateLimitResponse=function(e,t){var s=this,i=Object.keys(e.body.exceededDailyQuotaUsers),n=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,r=new Set(i),u=new Set(n),l=new Set(o),a=t.filter((function(t,i){if(!(t.event.user_id&&r.has(t.event.user_id)||t.event.device_id&&u.has(t.event.device_id)))return l.has(i)&&(t.timeout=s.throttleTimeout),!0;s.fulfillRequest([t],e.statusCode,e.body.error)}));a.length>0&&this.config.loggerProvider.warn(b(e));var c=this.removeEventsExceedFlushMaxRetries(a);this.scheduleEvents(c)},R.prototype.handleOtherResponse=function(e){var t=this,s=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),i=this.removeEventsExceedFlushMaxRetries(s);this.scheduleEvents(i)},R.prototype.fulfillRequest=function(e,t,s){var i,n,o;m(t)?null===(o=this.diagnosticsClient)||void 0===o||o.increment("analytics.events.sent",e.length):(null===(i=this.diagnosticsClient)||void 0===i||i.increment("analytics.events.dropped",e.length),null===(n=this.diagnosticsClient)||void 0===n||n.recordEvent("analytics.events.dropped",{events:e.map((function(e){return e.event.event_type})),code:t,message:s,stack_trace:y()})),this.removeEvents(e),e.forEach((function(e){return e.callback(f(e.event,t,s))}))},R.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},R.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.some((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},R}();export{R as Destination,b as getResponseBodyString};
1
+ import{__awaiter as e,__generator as t,__rest as s,__spreadArray as i,__read as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{Status as o}from"../types/status.js";import{MAX_RETRIES_EXCEEDED_MESSAGE as r,UNEXPECTED_ERROR_MESSAGE as u,MISSING_API_KEY_MESSAGE as l,SUCCESS_MESSAGE as a,INVALID_API_KEY as c}from"../types/messages.js";import{STORAGE_PREFIX as h}from"../types/constants.js";import{chunk as d}from"../utils/chunk.js";import{buildResult as f}from"../utils/result-builder.js";import{createServerConfig as v,RequestMetadata as p}from"../config.js";import{UUID as g}from"../utils/uuid.js";import{isSuccessStatusCode as m}from"../utils/status-code.js";import{getStacktrace as y}from"../utils/debug.js";function b(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var R=function(){function R(e){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=null==e?void 0:e.diagnosticsClient}return R.prototype.setup=function(s){var i;return e(this,void 0,void 0,(function(){var e,n=this;return t(this,(function(t){switch(t.label){case 0:return this.config=s,this.storageKey="".concat(h,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(i=this.config.storageProvider)||void 0===i?void 0:i.get(this.storageKey)];case 1:return(e=t.sent())&&e.length>0&&Promise.all(e.map((function(e){return n.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},R.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=g()),new Promise((function(s){var i={event:e,attempts:0,callback:function(e){return s(e)},timeout:0};t.queue.push(i),t.schedule(t.config.flushIntervalMillis),t.saveEvents()}))},R.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter((function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,r),!1)}))},R.prototype.scheduleEvents=function(e){var t=this;e.forEach((function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)}))},R.prototype.schedule=function(e){var t=this;if(!this.config.offline)return null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout?(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,void(this.scheduleId=setTimeout((function(){t.queue=t.queue.map((function(e){return e.timeout=0,e})),t.flush(!0)}),e))):void 0},R.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},R.prototype.flush=function(s){return void 0===s&&(s=!1),e(this,void 0,void 0,(function(){var i,n,o=this;return t(this,(function(r){switch(r.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),i=[],n=[],this.queue.forEach((function(e){return 0===e.timeout?i.push(e):n.push(e)})),[4,d(i,this.config.flushQueueSize).reduce((function(i,n){return e(o,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,i];case 1:return e.sent(),[4,this.send(n,s)];case 2:return[2,e.sent()]}}))}))}),Promise.resolve())]);case 1:return r.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}}))}))},R.prototype.send=function(i,n){var r;return void 0===n&&(n=!0),e(this,void 0,void 0,(function(){var e,a,c,h,d;return t(this,(function(t){switch(t.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(i,400,l)];e={api_key:this.config.apiKey,events:i.map((function(e){var t=e.event;return t.extra,s(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new p,t.label=1;case 1:return t.trys.push([1,3,,4]),a=v(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(a,e)];case 2:return null===(c=t.sent())?(this.fulfillRequest(i,0,u),[2]):n?(this.handleResponse(c,i),[3,4]):("body"in c?this.fulfillRequest(i,c.statusCode,"".concat(c.status,": ").concat(b(c))):this.fulfillRequest(i,c.statusCode,c.status),[2]);case 3:return h=t.sent(),d=(f=h)instanceof Error?f.message:String(f),this.config.loggerProvider.error(d),null===(r=this.diagnosticsClient)||void 0===r||r.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:i.map((function(e){return e.event.event_type})),message:d,stack_trace:y()}),this.handleResponse({status:o.Failed,statusCode:0},i),[3,4];case 4:return[2]}var f}))}))},R.prototype.handleResponse=function(e,t){var s;m(e.statusCode)||null===(s=this.diagnosticsClient)||void 0===s||s.recordEvent("analytics.events.unsuccessful",{events:t.map((function(e){return e.event.event_type})),code:e.statusCode,status:e.status,body:b(e),stack_trace:y()});var i=e.status;switch(i){case o.Success:this.handleSuccessResponse(e,t);break;case o.Invalid:this.handleInvalidResponse(e,t);break;case o.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case o.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(i,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},R.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,a)},R.prototype.handleInvalidResponse=function(e,t){var s=this;if(e.body.missingField||e.body.error.startsWith(c))this.fulfillRequest(t,e.statusCode,e.body.error);else{var o=i(i(i(i([],n(Object.values(e.body.eventsWithInvalidFields)),!1),n(Object.values(e.body.eventsWithMissingFields)),!1),n(Object.values(e.body.eventsWithInvalidIdLengths)),!1),n(e.body.silencedEvents),!1).flat(),r=new Set(o),u=t.filter((function(t,i){if(!r.has(i))return!0;s.fulfillRequest([t],e.statusCode,e.body.error)}));u.length>0&&this.config.loggerProvider.warn(b(e));var l=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(l)}},R.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(b(e)),this.config.flushQueueSize/=2;var s=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(s)}else this.fulfillRequest(t,e.statusCode,e.body.error)},R.prototype.handleRateLimitResponse=function(e,t){var s=this,i=Object.keys(e.body.exceededDailyQuotaUsers),n=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,r=new Set(i),u=new Set(n),l=new Set(o),a=t.filter((function(t,i){if(!(t.event.user_id&&r.has(t.event.user_id)||t.event.device_id&&u.has(t.event.device_id)))return l.has(i)&&(t.timeout=s.throttleTimeout),!0;s.fulfillRequest([t],e.statusCode,e.body.error)}));a.length>0&&this.config.loggerProvider.warn(b(e));var c=this.removeEventsExceedFlushMaxRetries(a);this.scheduleEvents(c)},R.prototype.handleOtherResponse=function(e){var t=this,s=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),i=this.removeEventsExceedFlushMaxRetries(s);this.scheduleEvents(i)},R.prototype.fulfillRequest=function(e,t,s){var i,n,o;m(t)?null===(o=this.diagnosticsClient)||void 0===o||o.increment("analytics.events.sent",e.length):(null===(i=this.diagnosticsClient)||void 0===i||i.increment("analytics.events.dropped",e.length),null===(n=this.diagnosticsClient)||void 0===n||n.recordEvent("analytics.events.dropped",{events:e.map((function(e){return e.event.event_type})),code:t,message:s,stack_trace:y()})),this.removeEvents(e),e.forEach((function(e){return e.callback(f(e.event,t,s))}))},R.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},R.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.some((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},R}();export{R as Destination,b as getResponseBodyString};
@@ -1 +1 @@
1
- import{__values as t}from"../../../../../../../@rollup_plugin-typescript@12.1.2_rollup@4.39.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js";var e="data-amp-mask",r="*****",l=/\b(?:\d[ -]*?){13,16}\b/,n=/(\d{3}-?\d{2}-?\d{4})/g,o=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,i=function(e,i){var a,u;if(void 0===i&&(i=[]),"string"!=typeof e)return"";var c=e;c=(c=(c=c.replace(l,r)).replace(n,r)).replace(o,r);try{for(var d=t(i),p=d.next();!p.done;p=d.next()){var s=p.value;try{c=c.replace(s,r)}catch(t){}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(u=d.return)&&u.call(d)}finally{if(a)throw a.error}}return c},a=function(t){if("undefined"==typeof document||!document.title)return"";var l=document.querySelector("title");return l&&l.hasAttribute(e)?r:t?t(document.title):document.title};export{l as CC_REGEX,o as EMAIL_REGEX,r as MASKED_TEXT_VALUE,n as SSN_REGEX,e as TEXT_MASK_ATTRIBUTE,a as getPageTitle,i as replaceSensitiveString};
1
+ import{__values as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var e="data-amp-mask",r="*****",l=/\b(?:\d[ -]*?){13,16}\b/,n=/(\d{3}-?\d{2}-?\d{4})/g,o=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,i=function(e,i){var a,u;if(void 0===i&&(i=[]),"string"!=typeof e)return"";var c=e;c=(c=(c=c.replace(l,r)).replace(n,r)).replace(o,r);try{for(var d=t(i),p=d.next();!p.done;p=d.next()){var s=p.value;try{c=c.replace(s,r)}catch(t){}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(u=d.return)&&u.call(d)}finally{if(a)throw a.error}}return c},a=function(t){if("undefined"==typeof document||!document.title)return"";var l=document.querySelector("title");return l&&l.hasAttribute(e)?r:t?t(document.title):document.title};export{l as CC_REGEX,o as EMAIL_REGEX,r as MASKED_TEXT_VALUE,n as SSN_REGEX,e as TEXT_MASK_ATTRIBUTE,a as getPageTitle,i as replaceSensitiveString};