vviinn-widgets 2.5.2 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/dist/types/campaign/CampaignService.d.ts +1 -1
  2. package/dist/types/campaign/VCSCampaignService.d.ts +2 -1
  3. package/dist/types/campaign/VPRCampaignService.d.ts +2 -1
  4. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -0
  5. package/dist/types/components/vviinn-vpr-button/stories/args.d.ts +6 -0
  6. package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +6 -0
  7. package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +2 -0
  8. package/dist/types/components/vviinn-vpr-widget/stories/args.d.ts +6 -0
  9. package/dist/types/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.d.ts +6 -0
  10. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +3 -0
  11. package/dist/types/components.d.ts +24 -0
  12. package/dist/vviinn-widgets/Array-bdfc75db.js +4870 -0
  13. package/dist/vviinn-widgets/Handler-edcb46f4.js +1422 -0
  14. package/dist/vviinn-widgets/NonEmptyArray-947ab7b3.js +4411 -0
  15. package/dist/{esm/app-globals-6f6aa89e.js → vviinn-widgets/app-globals-26a61baa.js} +922 -10
  16. package/dist/{esm → vviinn-widgets}/cropper-handler.entry.js +2 -2
  17. package/dist/vviinn-widgets/css-shim-f0027935.js +4 -0
  18. package/dist/{esm/customized-slots-6b427dda.js → vviinn-widgets/customized-slots-fb9b3e5f.js} +1 -1
  19. package/dist/vviinn-widgets/dom-db0073f0.js +73 -0
  20. package/dist/vviinn-widgets/highlight-box.entry.js +41 -0
  21. package/dist/{collection/components/image-search/image-view/image-cropper/image-cropper.js → vviinn-widgets/image-cropper.entry.js} +33 -70
  22. package/dist/{esm/imageSearch.store-0ae87235.js → vviinn-widgets/imageSearch.store-15bda6de.js} +12106 -11817
  23. package/dist/{esm/index-ac05c460.js → vviinn-widgets/index-533f9255.js} +4 -2
  24. package/dist/{esm/index-2e296af4.js → vviinn-widgets/index-6c6de682.js} +639 -6
  25. package/dist/vviinn-widgets/index-89051fa8.js +3010 -0
  26. package/dist/vviinn-widgets/index.esm.js +1 -0
  27. package/dist/vviinn-widgets/number-171db649.js +1499 -0
  28. package/dist/vviinn-widgets/search-filters.entry.js +76 -0
  29. package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +389 -0
  30. package/dist/{collection/components/vviinn-carousel/vviinn-carousel.js → vviinn-widgets/vviinn-carousel.entry.js} +18 -113
  31. package/dist/vviinn-widgets/vviinn-detected-object.entry.js +54 -0
  32. package/dist/vviinn-widgets/vviinn-empty-results.entry.js +16 -0
  33. package/dist/{esm → vviinn-widgets}/vviinn-error.entry.js +1 -1
  34. package/dist/vviinn-widgets/vviinn-example-image.entry.js +38 -0
  35. package/dist/vviinn-widgets/vviinn-example-images.entry.js +28 -0
  36. package/dist/vviinn-widgets/vviinn-image-selector.entry.js +31 -0
  37. package/dist/vviinn-widgets/vviinn-image-view.entry.js +55 -0
  38. package/dist/vviinn-widgets/vviinn-modal.entry.js +30 -0
  39. package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +21 -0
  40. package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +21 -0
  41. package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +21 -0
  42. package/dist/vviinn-widgets/vviinn-onboarding.entry.js +20 -0
  43. package/dist/vviinn-widgets/vviinn-overlay.entry.js +15 -0
  44. package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +18 -0
  45. package/dist/{esm → vviinn-widgets}/vviinn-preloader.entry.js +6 -3
  46. package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +20 -0
  47. package/dist/vviinn-widgets/vviinn-product-card.entry.js +184 -0
  48. package/dist/{esm → vviinn-widgets}/vviinn-recommendations-sidebar.entry.js +5 -3
  49. package/dist/vviinn-widgets/vviinn-server-error.entry.js +16 -0
  50. package/dist/vviinn-widgets/vviinn-slide.entry.js +15 -0
  51. package/dist/vviinn-widgets/vviinn-slider.entry.js +120 -0
  52. package/dist/vviinn-widgets/vviinn-teaser.entry.js +20 -0
  53. package/dist/{esm → vviinn-widgets}/vviinn-vpr-button.entry.js +7 -2
  54. package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +4588 -0
  55. package/dist/{esm → vviinn-widgets}/vviinn-vps-button.entry.js +3 -3
  56. package/dist/{esm → vviinn-widgets}/vviinn-vps-widget.entry.js +8 -5
  57. package/dist/vviinn-widgets/vviinn-widgets.css +6 -1
  58. package/dist/vviinn-widgets/vviinn-widgets.esm.js +125 -1
  59. package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +16 -0
  60. package/package.json +3 -3
  61. package/www/build/Array-bdfc75db.js +4870 -0
  62. package/www/build/Handler-edcb46f4.js +1422 -0
  63. package/www/build/NonEmptyArray-947ab7b3.js +4411 -0
  64. package/{dist/cjs/app-globals-d15b4c2c.js → www/build/app-globals-26a61baa.js} +925 -15
  65. package/{dist/cjs/cropper-handler.cjs.entry.js → www/build/cropper-handler.entry.js} +7 -11
  66. package/www/build/css-shim-f0027935.js +4 -0
  67. package/{dist/cjs/customized-slots-0c0d0665.js → www/build/customized-slots-fb9b3e5f.js} +3 -6
  68. package/www/build/dom-db0073f0.js +73 -0
  69. package/www/build/highlight-box.entry.js +41 -0
  70. package/www/build/image-cropper.entry.js +118 -0
  71. package/{dist/cjs/imageSearch.store-865c23f4.js → www/build/imageSearch.store-15bda6de.js} +11902 -11647
  72. package/{dist/collection/components/vviinn-icons/index.js → www/build/index-533f9255.js} +14 -11
  73. package/{dist/cjs/index-0eb3036a.js → www/build/index-6c6de682.js} +698 -76
  74. package/www/build/index-89051fa8.js +3010 -0
  75. package/www/build/index.esm.js +1 -0
  76. package/www/build/number-171db649.js +1499 -0
  77. package/www/build/search-filters.entry.js +76 -0
  78. package/www/build/shadow-css-c1fdfa9f.js +389 -0
  79. package/www/build/vviinn-carousel.entry.js +210 -0
  80. package/www/build/vviinn-detected-object.entry.js +54 -0
  81. package/www/build/vviinn-empty-results.entry.js +16 -0
  82. package/{dist/cjs/vviinn-error.cjs.entry.js → www/build/vviinn-error.entry.js} +4 -8
  83. package/www/build/vviinn-example-image.entry.js +38 -0
  84. package/www/build/vviinn-example-images.entry.js +28 -0
  85. package/www/build/vviinn-image-selector.entry.js +31 -0
  86. package/www/build/vviinn-image-view.entry.js +55 -0
  87. package/www/build/vviinn-modal.entry.js +30 -0
  88. package/www/build/vviinn-onboarding-card-1.entry.js +21 -0
  89. package/www/build/vviinn-onboarding-card-2.entry.js +21 -0
  90. package/www/build/vviinn-onboarding-card-3.entry.js +21 -0
  91. package/www/build/vviinn-onboarding.entry.js +20 -0
  92. package/www/build/vviinn-overlay.entry.js +15 -0
  93. package/www/build/vviinn-overlayed-modal.entry.js +18 -0
  94. package/{dist/cjs/vviinn-preloader.cjs.entry.js → www/build/vviinn-preloader.entry.js} +10 -11
  95. package/www/build/vviinn-privacy-badge.entry.js +20 -0
  96. package/www/build/vviinn-product-card.entry.js +184 -0
  97. package/{dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js → www/build/vviinn-recommendations-sidebar.entry.js} +10 -12
  98. package/www/build/vviinn-server-error.entry.js +16 -0
  99. package/www/build/vviinn-slide.entry.js +15 -0
  100. package/www/build/vviinn-slider.entry.js +120 -0
  101. package/www/build/vviinn-teaser.entry.js +20 -0
  102. package/{dist/cjs/vviinn-vpr-button.cjs.entry.js → www/build/vviinn-vpr-button.entry.js} +10 -9
  103. package/www/build/vviinn-vpr-widget.entry.js +4588 -0
  104. package/www/build/vviinn-vps-button.entry.js +39 -0
  105. package/{dist/cjs/vviinn-vps-widget.cjs.entry.js → www/build/vviinn-vps-widget.entry.js} +44 -45
  106. package/www/build/vviinn-widgets.css +6 -1
  107. package/www/build/vviinn-widgets.esm.js +125 -1
  108. package/www/build/vviinn-wrong-format.entry.js +16 -0
  109. package/www/index.html +10 -1
  110. package/dist/cjs/Handler-176539c8.js +0 -331
  111. package/dist/cjs/highlight-box_22.cjs.entry.js +0 -747
  112. package/dist/cjs/index-0f5516a6.js +0 -1354
  113. package/dist/cjs/index-31b9cb7a.js +0 -39
  114. package/dist/cjs/index.cjs.js +0 -2
  115. package/dist/cjs/loader.cjs.js +0 -23
  116. package/dist/cjs/vviinn-carousel_3.cjs.entry.js +0 -1174
  117. package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -43
  118. package/dist/cjs/vviinn-widgets.cjs.js +0 -21
  119. package/dist/collection/Image/error.js +0 -14
  120. package/dist/collection/Image/form.js +0 -5
  121. package/dist/collection/Image/fromFile.js +0 -18
  122. package/dist/collection/Image/imageToB64.js +0 -9
  123. package/dist/collection/Image/index.js +0 -0
  124. package/dist/collection/Image/renderPromise.js +0 -6
  125. package/dist/collection/Image/resizeImage.js +0 -28
  126. package/dist/collection/Image/sizing.js +0 -39
  127. package/dist/collection/Image/toFile.js +0 -17
  128. package/dist/collection/analytics/GAnalytics.js +0 -32
  129. package/dist/collection/analytics/GeneralAnalytics.js +0 -9
  130. package/dist/collection/analytics/GtagAnalytics.js +0 -35
  131. package/dist/collection/analytics/ProductAnalytics.js +0 -1
  132. package/dist/collection/campaign/Campaign.js +0 -8
  133. package/dist/collection/campaign/CampaignService.js +0 -5
  134. package/dist/collection/campaign/VCSCampaign.js +0 -1
  135. package/dist/collection/campaign/VCSCampaignResponse.js +0 -1
  136. package/dist/collection/campaign/VCSCampaignService.js +0 -5
  137. package/dist/collection/campaign/VPRCampaignResponse.js +0 -1
  138. package/dist/collection/campaign/VPRCampaignService.js +0 -5
  139. package/dist/collection/collection-manifest.json +0 -43
  140. package/dist/collection/components/customized-slots.js +0 -47
  141. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +0 -71
  142. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +0 -25
  143. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -49
  144. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +0 -64
  145. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +0 -33
  146. package/dist/collection/components/image-search/search-filters/search-filters.css +0 -120
  147. package/dist/collection/components/image-search/search-filters/search-filters.js +0 -125
  148. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +0 -142
  149. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +0 -7
  150. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +0 -36
  151. package/dist/collection/components/vviinn-error/vviinn-error.css +0 -38
  152. package/dist/collection/components/vviinn-error/vviinn-error.js +0 -18
  153. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +0 -3
  154. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +0 -34
  155. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +0 -3
  156. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +0 -34
  157. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +0 -34
  158. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +0 -129
  159. package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +0 -19
  160. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +0 -80
  161. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +0 -25
  162. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +0 -64
  163. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +0 -47
  164. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +0 -100
  165. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -31
  166. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +0 -61
  167. package/dist/collection/components/vviinn-modal/vviinn-modal.css +0 -105
  168. package/dist/collection/components/vviinn-modal/vviinn-modal.js +0 -98
  169. package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +0 -41
  170. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +0 -26
  171. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +0 -26
  172. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +0 -26
  173. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +0 -58
  174. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +0 -28
  175. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +0 -33
  176. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +0 -15
  177. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +0 -29
  178. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +0 -71
  179. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +0 -37
  180. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +0 -20
  181. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -19
  182. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +0 -27
  183. package/dist/collection/components/vviinn-product-card/render-helpers.js +0 -32
  184. package/dist/collection/components/vviinn-product-card/stories/args.js +0 -73
  185. package/dist/collection/components/vviinn-product-card/stories/decorators.js +0 -51
  186. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +0 -105
  187. package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +0 -95
  188. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +0 -462
  189. package/dist/collection/components/vviinn-slider/arrow.js +0 -11
  190. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +0 -4
  191. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +0 -15
  192. package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -109
  193. package/dist/collection/components/vviinn-slider/vviinn-slider.js +0 -181
  194. package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +0 -14
  195. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +0 -29
  196. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +0 -238
  197. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +0 -200
  198. package/dist/collection/components/vviinn-vpr-button/stories/args.js +0 -207
  199. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +0 -89
  200. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +0 -35
  201. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +0 -156
  202. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +0 -190
  203. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +0 -29
  204. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +0 -212
  205. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +0 -11
  206. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +0 -483
  207. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +0 -79
  208. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +0 -31
  209. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +0 -3
  210. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +0 -178
  211. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +0 -33
  212. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -350
  213. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +0 -352
  214. package/dist/collection/cropper/Cropper.js +0 -1
  215. package/dist/collection/cropper/Handler.js +0 -61
  216. package/dist/collection/dom/index.js +0 -3
  217. package/dist/collection/error.js +0 -14
  218. package/dist/collection/file/index.js +0 -4
  219. package/dist/collection/geometry/Clip.js +0 -14
  220. package/dist/collection/geometry/Point.js +0 -32
  221. package/dist/collection/geometry/Rectangle.js +0 -95
  222. package/dist/collection/geometry/RectangleAlt.js +0 -1
  223. package/dist/collection/geometry/Sized.js +0 -8
  224. package/dist/collection/global.js +0 -19
  225. package/dist/collection/index.js +0 -1
  226. package/dist/collection/interfaces/generated.js +0 -5
  227. package/dist/collection/interfaces/recommendation.js +0 -1
  228. package/dist/collection/network/apiClient.js +0 -9
  229. package/dist/collection/network/ion/File.js +0 -14
  230. package/dist/collection/network/ion/Form.js +0 -64
  231. package/dist/collection/network/ion/Link.js +0 -8
  232. package/dist/collection/network/ion/ValueObject.js +0 -23
  233. package/dist/collection/network/request.js +0 -19
  234. package/dist/collection/network/utils.js +0 -37
  235. package/dist/collection/openApi/index.js +0 -27
  236. package/dist/collection/recommendation/events.js +0 -1
  237. package/dist/collection/recommendation/recommendation.js +0 -1
  238. package/dist/collection/searchSession/searchSession.js +0 -26
  239. package/dist/collection/sentry.js +0 -14
  240. package/dist/collection/slider/GridMode.js +0 -1
  241. package/dist/collection/store/file-processing.js +0 -13
  242. package/dist/collection/store/imageSearch.store.js +0 -138
  243. package/dist/collection/store/store.js +0 -3
  244. package/dist/collection/store/tracking.store.js +0 -3
  245. package/dist/collection/stories/Button.js +0 -21
  246. package/dist/collection/stories/Button.stories.js +0 -42
  247. package/dist/collection/stories/Header.js +0 -45
  248. package/dist/collection/stories/Header.stories.js +0 -15
  249. package/dist/collection/stories/Page.js +0 -61
  250. package/dist/collection/stories/Page.stories.js +0 -19
  251. package/dist/collection/stories/assets/code-brackets.svg +0 -1
  252. package/dist/collection/stories/assets/colors.svg +0 -1
  253. package/dist/collection/stories/assets/comments.svg +0 -1
  254. package/dist/collection/stories/assets/direction.svg +0 -1
  255. package/dist/collection/stories/assets/flow.svg +0 -1
  256. package/dist/collection/stories/assets/plugin.svg +0 -1
  257. package/dist/collection/stories/assets/repo.svg +0 -1
  258. package/dist/collection/stories/assets/stackalt.svg +0 -1
  259. package/dist/collection/stories/image-selector.stories.js +0 -6
  260. package/dist/collection/stories/image-view.stories.js +0 -6
  261. package/dist/collection/stories/modal.stories.js +0 -12
  262. package/dist/collection/stories/onboarding.stories.js +0 -11
  263. package/dist/collection/stories/overlay.stories.js +0 -5
  264. package/dist/collection/stories/overlayedModal.stories.js +0 -8
  265. package/dist/collection/stories/privacy-badge.stories.js +0 -11
  266. package/dist/collection/stories/slider.stories.js +0 -17
  267. package/dist/collection/stories/teaser.stories.js +0 -5
  268. package/dist/collection/stories/vps-widget.stories.js +0 -47
  269. package/dist/collection/stories/vviinn-product.stories.js +0 -19
  270. package/dist/collection/tracking/event.js +0 -3
  271. package/dist/collection/tracking/filter.js +0 -5
  272. package/dist/collection/tracking/index.js +0 -13
  273. package/dist/collection/tracking/models.js +0 -6
  274. package/dist/collection/tracking/product.js +0 -18
  275. package/dist/collection/tracking/search.js +0 -5
  276. package/dist/collection/tracking/widget.js +0 -10
  277. package/dist/collection/utils/collections/collectionsUtils.js +0 -5
  278. package/dist/collection/utils/either.js +0 -3
  279. package/dist/collection/utils/enum/enumUtils.js +0 -3
  280. package/dist/collection/utils/event/Events.js +0 -1
  281. package/dist/collection/utils/number/index.js +0 -4
  282. package/dist/collection/utils/option/option.js +0 -4
  283. package/dist/collection/utils/semigroup/semigroupDiff.js +0 -6
  284. package/dist/collection/utils/token/tokenUtils.js +0 -9
  285. package/dist/esm/Handler-f9b8735c.js +0 -309
  286. package/dist/esm/highlight-box_22.entry.js +0 -722
  287. package/dist/esm/index-59f44eaa.js +0 -1323
  288. package/dist/esm/index.js +0 -1
  289. package/dist/esm/loader.js +0 -19
  290. package/dist/esm/polyfills/core-js.js +0 -11
  291. package/dist/esm/polyfills/css-shim.js +0 -1
  292. package/dist/esm/polyfills/dom.js +0 -79
  293. package/dist/esm/polyfills/es5-html-element.js +0 -1
  294. package/dist/esm/polyfills/index.js +0 -34
  295. package/dist/esm/polyfills/system.js +0 -6
  296. package/dist/esm/vviinn-carousel_3.entry.js +0 -1168
  297. package/dist/esm/vviinn-widgets.js +0 -19
  298. package/dist/index.cjs.js +0 -1
  299. package/dist/index.js +0 -1
  300. package/dist/loader/cdn.js +0 -3
  301. package/dist/loader/index.cjs.js +0 -3
  302. package/dist/loader/index.d.ts +0 -12
  303. package/dist/loader/index.es2017.js +0 -3
  304. package/dist/loader/index.js +0 -4
  305. package/dist/loader/package.json +0 -10
  306. package/dist/vviinn-widgets/p-118ac907.js +0 -1
  307. package/dist/vviinn-widgets/p-11f61564.js +0 -1
  308. package/dist/vviinn-widgets/p-39fdc5c9.entry.js +0 -1
  309. package/dist/vviinn-widgets/p-762dc067.entry.js +0 -1
  310. package/dist/vviinn-widgets/p-7e2f542c.js +0 -1
  311. package/dist/vviinn-widgets/p-8d56e795.entry.js +0 -1
  312. package/dist/vviinn-widgets/p-8f955b15.entry.js +0 -1
  313. package/dist/vviinn-widgets/p-9654fe35.entry.js +0 -1
  314. package/dist/vviinn-widgets/p-9e5adc42.js +0 -1
  315. package/dist/vviinn-widgets/p-b3731705.entry.js +0 -1
  316. package/dist/vviinn-widgets/p-bad1809f.js +0 -1
  317. package/dist/vviinn-widgets/p-c36546fa.js +0 -15
  318. package/dist/vviinn-widgets/p-d991330b.entry.js +0 -1
  319. package/dist/vviinn-widgets/p-da9c933b.entry.js +0 -1
  320. package/dist/vviinn-widgets/p-ee46fc83.js +0 -1
  321. package/dist/vviinn-widgets/p-f41e25f0.entry.js +0 -1
  322. package/www/build/p-118ac907.js +0 -1
  323. package/www/build/p-11f61564.js +0 -1
  324. package/www/build/p-39fdc5c9.entry.js +0 -1
  325. package/www/build/p-762dc067.entry.js +0 -1
  326. package/www/build/p-7e2f542c.js +0 -1
  327. package/www/build/p-8d56e795.entry.js +0 -1
  328. package/www/build/p-8f955b15.entry.js +0 -1
  329. package/www/build/p-9654fe35.entry.js +0 -1
  330. package/www/build/p-9e5adc42.js +0 -1
  331. package/www/build/p-a67898be.css +0 -1
  332. package/www/build/p-b3731705.entry.js +0 -1
  333. package/www/build/p-bad1809f.js +0 -1
  334. package/www/build/p-c36546fa.js +0 -15
  335. package/www/build/p-cfd998c1.js +0 -1
  336. package/www/build/p-d991330b.entry.js +0 -1
  337. package/www/build/p-da9c933b.entry.js +0 -1
  338. package/www/build/p-ee46fc83.js +0 -1
  339. package/www/build/p-f41e25f0.entry.js +0 -1
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- const index = require('./index-0f5516a6.js');
1
+ import { E as Env } from './index-89051fa8.js';
4
2
 
5
3
  /*! *****************************************************************************
6
4
  Copyright (c) Microsoft Corporation.
@@ -54,6 +52,68 @@ function __rest(s, e) {
54
52
  return t;
55
53
  }
56
54
 
55
+ function __decorate(decorators, target, key, desc) {
56
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
57
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
58
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
59
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
60
+ }
61
+
62
+ function __param(paramIndex, decorator) {
63
+ return function (target, key) { decorator(target, key, paramIndex); }
64
+ }
65
+
66
+ function __metadata(metadataKey, metadataValue) {
67
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
68
+ }
69
+
70
+ function __awaiter(thisArg, _arguments, P, generator) {
71
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
72
+ return new (P || (P = Promise))(function (resolve, reject) {
73
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
74
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
75
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
76
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
77
+ });
78
+ }
79
+
80
+ function __generator(thisArg, body) {
81
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
82
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
83
+ function verb(n) { return function (v) { return step([n, v]); }; }
84
+ function step(op) {
85
+ if (f) throw new TypeError("Generator is already executing.");
86
+ while (_) try {
87
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
88
+ if (y = 0, t) op = [op[0] & 2, t.value];
89
+ switch (op[0]) {
90
+ case 0: case 1: t = op; break;
91
+ case 4: _.label++; return { value: op[1], done: false };
92
+ case 5: _.label++; y = op[1]; op = [0]; continue;
93
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
94
+ default:
95
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
96
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
97
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
98
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
99
+ if (t[2]) _.ops.pop();
100
+ _.trys.pop(); continue;
101
+ }
102
+ op = body.call(thisArg, _);
103
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
104
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
105
+ }
106
+ }
107
+
108
+ function __createBinding(o, m, k, k2) {
109
+ if (k2 === undefined) k2 = k;
110
+ o[k2] = m[k];
111
+ }
112
+
113
+ function __exportStar(m, exports) {
114
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
115
+ }
116
+
57
117
  function __values(o) {
58
118
  var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
59
119
  if (m) return m.call(o);
@@ -87,8 +147,91 @@ function __spread() {
87
147
  for (var ar = [], i = 0; i < arguments.length; i++)
88
148
  ar = ar.concat(__read(arguments[i]));
89
149
  return ar;
150
+ }
151
+
152
+ function __spreadArrays() {
153
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
154
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
155
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
156
+ r[k] = a[j];
157
+ return r;
158
+ };
159
+
160
+ function __await(v) {
161
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
162
+ }
163
+
164
+ function __asyncGenerator(thisArg, _arguments, generator) {
165
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
166
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
167
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
168
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
169
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
170
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
171
+ function fulfill(value) { resume("next", value); }
172
+ function reject(value) { resume("throw", value); }
173
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
174
+ }
175
+
176
+ function __asyncDelegator(o) {
177
+ var i, p;
178
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
179
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
180
+ }
181
+
182
+ function __asyncValues(o) {
183
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
184
+ var m = o[Symbol.asyncIterator], i;
185
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
186
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
187
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
188
+ }
189
+
190
+ function __makeTemplateObject(cooked, raw) {
191
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
192
+ return cooked;
193
+ };
194
+
195
+ function __importStar(mod) {
196
+ if (mod && mod.__esModule) return mod;
197
+ var result = {};
198
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
199
+ result.default = mod;
200
+ return result;
201
+ }
202
+
203
+ function __importDefault(mod) {
204
+ return (mod && mod.__esModule) ? mod : { default: mod };
205
+ }
206
+
207
+ function __classPrivateFieldGet(receiver, privateMap) {
208
+ if (!privateMap.has(receiver)) {
209
+ throw new TypeError("attempted to get private field on non-instance");
210
+ }
211
+ return privateMap.get(receiver);
212
+ }
213
+
214
+ function __classPrivateFieldSet(receiver, privateMap, value) {
215
+ if (!privateMap.has(receiver)) {
216
+ throw new TypeError("attempted to set private field on non-instance");
217
+ }
218
+ privateMap.set(receiver, value);
219
+ return value;
90
220
  }
91
221
 
222
+ /** Console logging verbosity for the SDK. */
223
+ var LogLevel;
224
+ (function (LogLevel) {
225
+ /** No logs will be generated. */
226
+ LogLevel[LogLevel["None"] = 0] = "None";
227
+ /** Only SDK internal errors will be logged. */
228
+ LogLevel[LogLevel["Error"] = 1] = "Error";
229
+ /** Information useful for debugging the SDK will be logged. */
230
+ LogLevel[LogLevel["Debug"] = 2] = "Debug";
231
+ /** All SDK actions will be logged. */
232
+ LogLevel[LogLevel["Verbose"] = 3] = "Verbose";
233
+ })(LogLevel || (LogLevel = {}));
234
+
92
235
  /**
93
236
  * Session Status
94
237
  */
@@ -206,6 +349,14 @@ var Status;
206
349
  Status.fromHttpCode = fromHttpCode;
207
350
  })(Status || (Status = {}));
208
351
 
352
+ var TransactionSamplingMethod;
353
+ (function (TransactionSamplingMethod) {
354
+ TransactionSamplingMethod["Explicit"] = "explicitly_set";
355
+ TransactionSamplingMethod["Sampler"] = "client_sampler";
356
+ TransactionSamplingMethod["Rate"] = "client_rate";
357
+ TransactionSamplingMethod["Inheritance"] = "inheritance";
358
+ })(TransactionSamplingMethod || (TransactionSamplingMethod = {}));
359
+
209
360
  var Outcome;
210
361
  (function (Outcome) {
211
362
  Outcome["BeforeSend"] = "before_send";
@@ -251,6 +402,36 @@ function dynamicRequire(mod, request) {
251
402
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
252
403
  return mod.require(request);
253
404
  }
405
+ /**
406
+ * Helper for dynamically loading module that should work with linked dependencies.
407
+ * The problem is that we _should_ be using `require(require.resolve(moduleName, { paths: [cwd()] }))`
408
+ * However it's _not possible_ to do that with Webpack, as it has to know all the dependencies during
409
+ * build time. `require.resolve` is also not available in any other way, so we cannot create,
410
+ * a fake helper like we do with `dynamicRequire`.
411
+ *
412
+ * We always prefer to use local package, thus the value is not returned early from each `try/catch` block.
413
+ * That is to mimic the behavior of `require.resolve` exactly.
414
+ *
415
+ * @param moduleName module name to require
416
+ * @returns possibly required module
417
+ */
418
+ function loadModule(moduleName) {
419
+ var mod;
420
+ try {
421
+ mod = dynamicRequire(module, moduleName);
422
+ }
423
+ catch (e) {
424
+ // no-empty
425
+ }
426
+ try {
427
+ var cwd = dynamicRequire(module, 'process').cwd;
428
+ mod = dynamicRequire(module, cwd() + "/node_modules/" + moduleName);
429
+ }
430
+ catch (e) {
431
+ // no-empty
432
+ }
433
+ return mod;
434
+ }
254
435
 
255
436
  /**
256
437
  * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,
@@ -828,6 +1009,44 @@ function truncate(str, max) {
828
1009
  }
829
1010
  return str.length <= max ? str : str.substr(0, max) + "...";
830
1011
  }
1012
+ /**
1013
+ * This is basically just `trim_line` from
1014
+ * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67
1015
+ *
1016
+ * @param str An object that contains serializable values
1017
+ * @param max Maximum number of characters in truncated string
1018
+ * @returns string Encoded
1019
+ */
1020
+ function snipLine(line, colno) {
1021
+ var newLine = line;
1022
+ var ll = newLine.length;
1023
+ if (ll <= 150) {
1024
+ return newLine;
1025
+ }
1026
+ if (colno > ll) {
1027
+ // eslint-disable-next-line no-param-reassign
1028
+ colno = ll;
1029
+ }
1030
+ var start = Math.max(colno - 60, 0);
1031
+ if (start < 5) {
1032
+ start = 0;
1033
+ }
1034
+ var end = Math.min(start + 140, ll);
1035
+ if (end > ll - 5) {
1036
+ end = ll;
1037
+ }
1038
+ if (end === ll) {
1039
+ start = Math.max(end - 140, 0);
1040
+ }
1041
+ newLine = newLine.slice(start, end);
1042
+ if (start > 0) {
1043
+ newLine = "'{snip} " + newLine;
1044
+ }
1045
+ if (end < ll) {
1046
+ newLine += ' {snip}';
1047
+ }
1048
+ return newLine;
1049
+ }
831
1050
  /**
832
1051
  * Join values in array
833
1052
  * @param input array of values to be joined together
@@ -869,6 +1088,22 @@ function isMatchingPattern(value, pattern) {
869
1088
  }
870
1089
  return false;
871
1090
  }
1091
+ /**
1092
+ * Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to
1093
+ * `new RegExp()`.
1094
+ *
1095
+ * Based on https://github.com/sindresorhus/escape-string-regexp. Vendored to a) reduce the size by skipping the runtime
1096
+ * type-checking, and b) ensure it gets down-compiled for old versions of Node (the published package only supports Node
1097
+ * 12+).
1098
+ *
1099
+ * @param regexString The string to escape
1100
+ * @returns An version of the string with all special regex characters escaped
1101
+ */
1102
+ function escapeStringForRegex(regexString) {
1103
+ // escape the hyphen separately so we can also replace it with a unicode literal hyphen, to avoid the problems
1104
+ // discussed in https://github.com/sindresorhus/escape-string-regexp/issues/20.
1105
+ return regexString.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&').replace(/-/g, '\\x2d');
1106
+ }
872
1107
 
873
1108
  /**
874
1109
  * Replace a method in an object with a wrapped version of itself.
@@ -1200,7 +1435,88 @@ function dropUndefinedKeys(val) {
1200
1435
  }
1201
1436
  return val;
1202
1437
  }
1438
+ /**
1439
+ * Ensure that something is an object.
1440
+ *
1441
+ * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper
1442
+ * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.
1443
+ *
1444
+ * @param wat The subject of the objectification
1445
+ * @returns A version of `wat` which can safely be used with `Object` class methods
1446
+ */
1447
+ function objectify(wat) {
1448
+ var objectified;
1449
+ switch (true) {
1450
+ case wat === undefined || wat === null:
1451
+ objectified = new String(wat);
1452
+ break;
1453
+ // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason
1454
+ // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as
1455
+ // an object in order to wrap it.
1456
+ case typeof wat === 'symbol' || typeof wat === 'bigint':
1457
+ objectified = Object(wat);
1458
+ break;
1459
+ // this will catch the remaining primitives: `String`, `Number`, and `Boolean`
1460
+ case isPrimitive(wat):
1461
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
1462
+ objectified = new wat.constructor(wat);
1463
+ break;
1464
+ // by process of elimination, at this point we know that `wat` must already be an object
1465
+ default:
1466
+ objectified = wat;
1467
+ break;
1468
+ }
1469
+ return objectified;
1470
+ }
1203
1471
 
1472
+ /**
1473
+ * Tells whether current environment supports ErrorEvent objects
1474
+ * {@link supportsErrorEvent}.
1475
+ *
1476
+ * @returns Answer to the given question.
1477
+ */
1478
+ function supportsErrorEvent() {
1479
+ try {
1480
+ new ErrorEvent('');
1481
+ return true;
1482
+ }
1483
+ catch (e) {
1484
+ return false;
1485
+ }
1486
+ }
1487
+ /**
1488
+ * Tells whether current environment supports DOMError objects
1489
+ * {@link supportsDOMError}.
1490
+ *
1491
+ * @returns Answer to the given question.
1492
+ */
1493
+ function supportsDOMError() {
1494
+ try {
1495
+ // Chrome: VM89:1 Uncaught TypeError: Failed to construct 'DOMError':
1496
+ // 1 argument required, but only 0 present.
1497
+ // @ts-ignore It really needs 1 argument, not 0.
1498
+ new DOMError('');
1499
+ return true;
1500
+ }
1501
+ catch (e) {
1502
+ return false;
1503
+ }
1504
+ }
1505
+ /**
1506
+ * Tells whether current environment supports DOMException objects
1507
+ * {@link supportsDOMException}.
1508
+ *
1509
+ * @returns Answer to the given question.
1510
+ */
1511
+ function supportsDOMException() {
1512
+ try {
1513
+ new DOMException('');
1514
+ return true;
1515
+ }
1516
+ catch (e) {
1517
+ return false;
1518
+ }
1519
+ }
1204
1520
  /**
1205
1521
  * Tells whether current environment supports Fetch API
1206
1522
  * {@link supportsFetch}.
@@ -1266,6 +1582,15 @@ function supportsNativeFetch() {
1266
1582
  }
1267
1583
  return result;
1268
1584
  }
1585
+ /**
1586
+ * Tells whether current environment supports ReportingObserver API
1587
+ * {@link supportsReportingObserver}.
1588
+ *
1589
+ * @returns Answer to the given question.
1590
+ */
1591
+ function supportsReportingObserver() {
1592
+ return 'ReportingObserver' in getGlobalObject();
1593
+ }
1269
1594
  /**
1270
1595
  * Tells whether current environment supports Referrer Policy API
1271
1596
  * {@link supportsReferrerPolicy}.
@@ -1958,6 +2283,25 @@ function addExceptionMechanism(event, newMechanism) {
1958
2283
  exceptionValue0.mechanism.data = mergedData;
1959
2284
  }
1960
2285
  }
2286
+ // https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
2287
+ var SEMVER_REGEXP = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
2288
+ /**
2289
+ * Parses input into a SemVer interface
2290
+ * @param input string representation of a semver version
2291
+ */
2292
+ function parseSemver(input) {
2293
+ var match = input.match(SEMVER_REGEXP) || [];
2294
+ var major = parseInt(match[1], 10);
2295
+ var minor = parseInt(match[2], 10);
2296
+ var patch = parseInt(match[3], 10);
2297
+ return {
2298
+ buildmetadata: match[5],
2299
+ major: isNaN(major) ? undefined : major,
2300
+ minor: isNaN(minor) ? undefined : minor,
2301
+ patch: isNaN(patch) ? undefined : patch,
2302
+ prerelease: match[4],
2303
+ };
2304
+ }
1961
2305
  var defaultRetryAfter = 60 * 1000; // 60 seconds
1962
2306
  /**
1963
2307
  * Extracts Retry-After value from the request header or returns default value
@@ -1978,6 +2322,36 @@ function parseRetryAfterHeader(now, header) {
1978
2322
  }
1979
2323
  return defaultRetryAfter;
1980
2324
  }
2325
+ /**
2326
+ * This function adds context (pre/post/line) lines to the provided frame
2327
+ *
2328
+ * @param lines string[] containing all lines
2329
+ * @param frame StackFrame that will be mutated
2330
+ * @param linesOfContext number of context lines we want to add pre/post
2331
+ */
2332
+ function addContextToFrame(lines, frame, linesOfContext) {
2333
+ if (linesOfContext === void 0) { linesOfContext = 5; }
2334
+ var lineno = frame.lineno || 0;
2335
+ var maxLines = lines.length;
2336
+ var sourceLine = Math.max(Math.min(maxLines, lineno - 1), 0);
2337
+ frame.pre_context = lines
2338
+ .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)
2339
+ .map(function (line) { return snipLine(line, 0); });
2340
+ frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);
2341
+ frame.post_context = lines
2342
+ .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)
2343
+ .map(function (line) { return snipLine(line, 0); });
2344
+ }
2345
+ /**
2346
+ * Strip the query string and fragment off of a given URL or path (if present)
2347
+ *
2348
+ * @param urlPath Full URL or path, including possible query string and/or fragment
2349
+ * @returns URL or path without query string or fragment
2350
+ */
2351
+ function stripUrlQueryAndFragment(urlPath) {
2352
+ // eslint-disable-next-line no-useless-escape
2353
+ return urlPath.split(/[\?#]/, 1)[0];
2354
+ }
1981
2355
  /**
1982
2356
  * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object
1983
2357
  * in question), and marks it captured if not.
@@ -2018,6 +2392,168 @@ function checkOrSetAlreadyCaught(exception) {
2018
2392
  return false;
2019
2393
  }
2020
2394
 
2395
+ // Slightly modified (no IE8 support, ES6) and transcribed to TypeScript
2396
+ // https://raw.githubusercontent.com/calvinmetcalf/rollup-plugin-node-builtins/master/src/es6/path.js
2397
+ /** JSDoc */
2398
+ function normalizeArray(parts, allowAboveRoot) {
2399
+ // if the path tries to go above the root, `up` ends up > 0
2400
+ var up = 0;
2401
+ for (var i = parts.length - 1; i >= 0; i--) {
2402
+ var last = parts[i];
2403
+ if (last === '.') {
2404
+ parts.splice(i, 1);
2405
+ }
2406
+ else if (last === '..') {
2407
+ parts.splice(i, 1);
2408
+ // eslint-disable-next-line no-plusplus
2409
+ up++;
2410
+ }
2411
+ else if (up) {
2412
+ parts.splice(i, 1);
2413
+ // eslint-disable-next-line no-plusplus
2414
+ up--;
2415
+ }
2416
+ }
2417
+ // if the path is allowed to go above the root, restore leading ..s
2418
+ if (allowAboveRoot) {
2419
+ // eslint-disable-next-line no-plusplus
2420
+ for (; up--; up) {
2421
+ parts.unshift('..');
2422
+ }
2423
+ }
2424
+ return parts;
2425
+ }
2426
+ // Split a filename into [root, dir, basename, ext], unix version
2427
+ // 'root' is just a slash, or nothing.
2428
+ var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;
2429
+ /** JSDoc */
2430
+ function splitPath(filename) {
2431
+ var parts = splitPathRe.exec(filename);
2432
+ return parts ? parts.slice(1) : [];
2433
+ }
2434
+ // path.resolve([from ...], to)
2435
+ // posix version
2436
+ /** JSDoc */
2437
+ function resolve() {
2438
+ var args = [];
2439
+ for (var _i = 0; _i < arguments.length; _i++) {
2440
+ args[_i] = arguments[_i];
2441
+ }
2442
+ var resolvedPath = '';
2443
+ var resolvedAbsolute = false;
2444
+ for (var i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {
2445
+ var path = i >= 0 ? args[i] : '/';
2446
+ // Skip empty entries
2447
+ if (!path) {
2448
+ continue;
2449
+ }
2450
+ resolvedPath = path + "/" + resolvedPath;
2451
+ resolvedAbsolute = path.charAt(0) === '/';
2452
+ }
2453
+ // At this point the path should be resolved to a full absolute path, but
2454
+ // handle relative paths to be safe (might happen when process.cwd() fails)
2455
+ // Normalize the path
2456
+ resolvedPath = normalizeArray(resolvedPath.split('/').filter(function (p) { return !!p; }), !resolvedAbsolute).join('/');
2457
+ return (resolvedAbsolute ? '/' : '') + resolvedPath || '.';
2458
+ }
2459
+ /** JSDoc */
2460
+ function trim(arr) {
2461
+ var start = 0;
2462
+ for (; start < arr.length; start++) {
2463
+ if (arr[start] !== '') {
2464
+ break;
2465
+ }
2466
+ }
2467
+ var end = arr.length - 1;
2468
+ for (; end >= 0; end--) {
2469
+ if (arr[end] !== '') {
2470
+ break;
2471
+ }
2472
+ }
2473
+ if (start > end) {
2474
+ return [];
2475
+ }
2476
+ return arr.slice(start, end - start + 1);
2477
+ }
2478
+ // path.relative(from, to)
2479
+ // posix version
2480
+ /** JSDoc */
2481
+ function relative(from, to) {
2482
+ /* eslint-disable no-param-reassign */
2483
+ from = resolve(from).substr(1);
2484
+ to = resolve(to).substr(1);
2485
+ /* eslint-enable no-param-reassign */
2486
+ var fromParts = trim(from.split('/'));
2487
+ var toParts = trim(to.split('/'));
2488
+ var length = Math.min(fromParts.length, toParts.length);
2489
+ var samePartsLength = length;
2490
+ for (var i = 0; i < length; i++) {
2491
+ if (fromParts[i] !== toParts[i]) {
2492
+ samePartsLength = i;
2493
+ break;
2494
+ }
2495
+ }
2496
+ var outputParts = [];
2497
+ for (var i = samePartsLength; i < fromParts.length; i++) {
2498
+ outputParts.push('..');
2499
+ }
2500
+ outputParts = outputParts.concat(toParts.slice(samePartsLength));
2501
+ return outputParts.join('/');
2502
+ }
2503
+ // path.normalize(path)
2504
+ // posix version
2505
+ /** JSDoc */
2506
+ function normalizePath(path) {
2507
+ var isPathAbsolute = isAbsolute(path);
2508
+ var trailingSlash = path.substr(-1) === '/';
2509
+ // Normalize the path
2510
+ var normalizedPath = normalizeArray(path.split('/').filter(function (p) { return !!p; }), !isPathAbsolute).join('/');
2511
+ if (!normalizedPath && !isPathAbsolute) {
2512
+ normalizedPath = '.';
2513
+ }
2514
+ if (normalizedPath && trailingSlash) {
2515
+ normalizedPath += '/';
2516
+ }
2517
+ return (isPathAbsolute ? '/' : '') + normalizedPath;
2518
+ }
2519
+ // posix version
2520
+ /** JSDoc */
2521
+ function isAbsolute(path) {
2522
+ return path.charAt(0) === '/';
2523
+ }
2524
+ // posix version
2525
+ /** JSDoc */
2526
+ function join() {
2527
+ var args = [];
2528
+ for (var _i = 0; _i < arguments.length; _i++) {
2529
+ args[_i] = arguments[_i];
2530
+ }
2531
+ return normalizePath(args.join('/'));
2532
+ }
2533
+ /** JSDoc */
2534
+ function dirname(path) {
2535
+ var result = splitPath(path);
2536
+ var root = result[0];
2537
+ var dir = result[1];
2538
+ if (!root && !dir) {
2539
+ // No dirname whatsoever
2540
+ return '.';
2541
+ }
2542
+ if (dir) {
2543
+ // It has a dirname, strip trailing slash
2544
+ dir = dir.substr(0, dir.length - 1);
2545
+ }
2546
+ return root + dir;
2547
+ }
2548
+ /** JSDoc */
2549
+ function basename(path, ext) {
2550
+ var f = splitPath(path)[2];
2551
+ if (ext && f.substr(ext.length * -1) === ext) {
2552
+ f = f.substr(0, f.length - ext.length);
2553
+ }
2554
+ return f;
2555
+ }
2556
+
2021
2557
  /* eslint-disable @typescript-eslint/explicit-function-return-type */
2022
2558
  /** SyncPromise internal states */
2023
2559
  var States;
@@ -2392,16 +2928,27 @@ var dateTimestampInSeconds = dateTimestampSource.nowSeconds.bind(dateTimestampSo
2392
2928
  * See https://github.com/getsentry/sentry-javascript/issues/2590.
2393
2929
  */
2394
2930
  var timestampInSeconds = timestampSource.nowSeconds.bind(timestampSource);
2931
+ // Re-exported with an old name for backwards-compatibility.
2932
+ var timestampWithMs = timestampInSeconds;
2933
+ /**
2934
+ * A boolean that is true when timestampInSeconds uses the Performance API to produce monotonic timestamps.
2935
+ */
2936
+ var usingPerformanceAPI = platformPerformance !== undefined;
2937
+ /**
2938
+ * Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only.
2939
+ */
2940
+ var _browserPerformanceTimeOriginMode;
2395
2941
  /**
2396
2942
  * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the
2397
2943
  * performance API is available.
2398
2944
  */
2399
- ((function () {
2945
+ var browserPerformanceTimeOrigin = (function () {
2400
2946
  // Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or
2401
2947
  // performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin
2402
2948
  // data as reliable if they are within a reasonable threshold of the current time.
2403
2949
  var performance = getGlobalObject().performance;
2404
2950
  if (!performance || !performance.now) {
2951
+ _browserPerformanceTimeOriginMode = 'none';
2405
2952
  return undefined;
2406
2953
  }
2407
2954
  var threshold = 3600 * 1000;
@@ -2426,14 +2973,18 @@ var timestampInSeconds = timestampSource.nowSeconds.bind(timestampSource);
2426
2973
  if (timeOriginIsReliable || navigationStartIsReliable) {
2427
2974
  // Use the more reliable time origin
2428
2975
  if (timeOriginDelta <= navigationStartDelta) {
2976
+ _browserPerformanceTimeOriginMode = 'timeOrigin';
2429
2977
  return performance.timeOrigin;
2430
2978
  }
2431
2979
  else {
2980
+ _browserPerformanceTimeOriginMode = 'navigationStart';
2432
2981
  return navigationStart;
2433
2982
  }
2434
2983
  }
2984
+ // Either both timeOrigin and navigationStart are skewed or neither is available, fallback to Date.
2985
+ _browserPerformanceTimeOriginMode = 'dateNow';
2435
2986
  return dateNow;
2436
- }))();
2987
+ })();
2437
2988
 
2438
2989
  /**
2439
2990
  * Absolute maximum number of breadcrumbs added to an event.
@@ -3427,6 +3978,17 @@ function getCurrentHub() {
3427
3978
  // Return hub that lives on a global object
3428
3979
  return getHubFromCarrier(registry);
3429
3980
  }
3981
+ /**
3982
+ * Returns the active domain, if one exists
3983
+ * @deprecated No longer used; remove in v7
3984
+ * @returns The domain, or undefined if there is no active domain
3985
+ */
3986
+ // eslint-disable-next-line deprecation/deprecation
3987
+ function getActiveDomain() {
3988
+ logger.warn('Function `getActiveDomain` is deprecated and will be removed in a future version.');
3989
+ var sentry = getMainCarrier().__SENTRY__;
3990
+ return sentry && sentry.extensions && sentry.extensions.domain && sentry.extensions.domain.active;
3991
+ }
3430
3992
  /**
3431
3993
  * Try to read the hub from an active domain, and fallback to the registry if one doesn't exist
3432
3994
  * @returns discovered hub
@@ -3486,6 +4048,106 @@ function setHubOnCarrier(carrier, hub) {
3486
4048
  return true;
3487
4049
  }
3488
4050
 
4051
+ /**
4052
+ * @inheritdoc
4053
+ */
4054
+ var SessionFlusher = /** @class */ (function () {
4055
+ function SessionFlusher(transport, attrs) {
4056
+ var _this = this;
4057
+ this.flushTimeout = 60;
4058
+ this._pendingAggregates = {};
4059
+ this._isEnabled = true;
4060
+ this._transport = transport;
4061
+ // Call to setInterval, so that flush is called every 60 seconds
4062
+ this._intervalId = setInterval(function () { return _this.flush(); }, this.flushTimeout * 1000);
4063
+ this._sessionAttrs = attrs;
4064
+ }
4065
+ /** Sends session aggregates to Transport */
4066
+ SessionFlusher.prototype.sendSessionAggregates = function (sessionAggregates) {
4067
+ if (!this._transport.sendSession) {
4068
+ logger.warn("Dropping session because custom transport doesn't implement sendSession");
4069
+ return;
4070
+ }
4071
+ void this._transport.sendSession(sessionAggregates).then(null, function (reason) {
4072
+ logger.error("Error while sending session: " + reason);
4073
+ });
4074
+ };
4075
+ /** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSessions` */
4076
+ SessionFlusher.prototype.flush = function () {
4077
+ var sessionAggregates = this.getSessionAggregates();
4078
+ if (sessionAggregates.aggregates.length === 0) {
4079
+ return;
4080
+ }
4081
+ this._pendingAggregates = {};
4082
+ this.sendSessionAggregates(sessionAggregates);
4083
+ };
4084
+ /** Massages the entries in `pendingAggregates` and returns aggregated sessions */
4085
+ SessionFlusher.prototype.getSessionAggregates = function () {
4086
+ var _this = this;
4087
+ var aggregates = Object.keys(this._pendingAggregates).map(function (key) {
4088
+ return _this._pendingAggregates[parseInt(key)];
4089
+ });
4090
+ var sessionAggregates = {
4091
+ attrs: this._sessionAttrs,
4092
+ aggregates: aggregates,
4093
+ };
4094
+ return dropUndefinedKeys(sessionAggregates);
4095
+ };
4096
+ /** JSDoc */
4097
+ SessionFlusher.prototype.close = function () {
4098
+ clearInterval(this._intervalId);
4099
+ this._isEnabled = false;
4100
+ this.flush();
4101
+ };
4102
+ /**
4103
+ * Wrapper function for _incrementSessionStatusCount that checks if the instance of SessionFlusher is enabled then
4104
+ * fetches the session status of the request from `Scope.getRequestSession().status` on the scope and passes them to
4105
+ * `_incrementSessionStatusCount` along with the start date
4106
+ */
4107
+ SessionFlusher.prototype.incrementSessionStatusCount = function () {
4108
+ var _a, _b;
4109
+ if (!this._isEnabled) {
4110
+ return;
4111
+ }
4112
+ var scope = getCurrentHub().getScope();
4113
+ var requestSession = (_a = scope) === null || _a === void 0 ? void 0 : _a.getRequestSession();
4114
+ if (requestSession && requestSession.status) {
4115
+ this._incrementSessionStatusCount(requestSession.status, new Date());
4116
+ // This is not entirely necessarily but is added as a safe guard to indicate the bounds of a request and so in
4117
+ // case captureRequestSession is called more than once to prevent double count
4118
+ (_b = scope) === null || _b === void 0 ? void 0 : _b.setRequestSession(undefined);
4119
+ /* eslint-enable @typescript-eslint/no-unsafe-member-access */
4120
+ }
4121
+ };
4122
+ /**
4123
+ * Increments status bucket in pendingAggregates buffer (internal state) corresponding to status of
4124
+ * the session received
4125
+ */
4126
+ SessionFlusher.prototype._incrementSessionStatusCount = function (status, date) {
4127
+ // Truncate minutes and seconds on Session Started attribute to have one minute bucket keys
4128
+ var sessionStartedTrunc = new Date(date).setSeconds(0, 0);
4129
+ this._pendingAggregates[sessionStartedTrunc] = this._pendingAggregates[sessionStartedTrunc] || {};
4130
+ // corresponds to aggregated sessions in one specific minute bucket
4131
+ // for example, {"started":"2021-03-16T08:00:00.000Z","exited":4, "errored": 1}
4132
+ var aggregationCounts = this._pendingAggregates[sessionStartedTrunc];
4133
+ if (!aggregationCounts.started) {
4134
+ aggregationCounts.started = new Date(sessionStartedTrunc).toISOString();
4135
+ }
4136
+ switch (status) {
4137
+ case RequestSessionStatus.Errored:
4138
+ aggregationCounts.errored = (aggregationCounts.errored || 0) + 1;
4139
+ return aggregationCounts.errored;
4140
+ case RequestSessionStatus.Ok:
4141
+ aggregationCounts.exited = (aggregationCounts.exited || 0) + 1;
4142
+ return aggregationCounts.exited;
4143
+ case RequestSessionStatus.Crashed:
4144
+ aggregationCounts.crashed = (aggregationCounts.crashed || 0) + 1;
4145
+ return aggregationCounts.crashed;
4146
+ }
4147
+ };
4148
+ return SessionFlusher;
4149
+ }());
4150
+
3489
4151
  /**
3490
4152
  * This calls a function on the current hub.
3491
4153
  * @param method function to call on hub.
@@ -3525,6 +4187,104 @@ function captureException(exception, captureContext) {
3525
4187
  syntheticException: syntheticException,
3526
4188
  });
3527
4189
  }
4190
+ /**
4191
+ * Captures a message event and sends it to Sentry.
4192
+ *
4193
+ * @param message The message to send to Sentry.
4194
+ * @param level Define the level of the message.
4195
+ * @returns The generated eventId.
4196
+ */
4197
+ function captureMessage(message, captureContext) {
4198
+ var syntheticException;
4199
+ try {
4200
+ throw new Error(message);
4201
+ }
4202
+ catch (exception) {
4203
+ syntheticException = exception;
4204
+ }
4205
+ // This is necessary to provide explicit scopes upgrade, without changing the original
4206
+ // arity of the `captureMessage(message, level)` method.
4207
+ var level = typeof captureContext === 'string' ? captureContext : undefined;
4208
+ var context = typeof captureContext !== 'string' ? { captureContext: captureContext } : undefined;
4209
+ return callOnHub('captureMessage', message, level, __assign({ originalException: message, syntheticException: syntheticException }, context));
4210
+ }
4211
+ /**
4212
+ * Captures a manually created event and sends it to Sentry.
4213
+ *
4214
+ * @param event The event to send to Sentry.
4215
+ * @returns The generated eventId.
4216
+ */
4217
+ function captureEvent(event) {
4218
+ return callOnHub('captureEvent', event);
4219
+ }
4220
+ /**
4221
+ * Callback to set context information onto the scope.
4222
+ * @param callback Callback function that receives Scope.
4223
+ */
4224
+ function configureScope(callback) {
4225
+ callOnHub('configureScope', callback);
4226
+ }
4227
+ /**
4228
+ * Records a new breadcrumb which will be attached to future events.
4229
+ *
4230
+ * Breadcrumbs will be added to subsequent events to provide more context on
4231
+ * user's actions prior to an error or crash.
4232
+ *
4233
+ * @param breadcrumb The breadcrumb to record.
4234
+ */
4235
+ function addBreadcrumb(breadcrumb) {
4236
+ callOnHub('addBreadcrumb', breadcrumb);
4237
+ }
4238
+ /**
4239
+ * Sets context data with the given name.
4240
+ * @param name of the context
4241
+ * @param context Any kind of data. This data will be normalized.
4242
+ */
4243
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4244
+ function setContext(name, context) {
4245
+ callOnHub('setContext', name, context);
4246
+ }
4247
+ /**
4248
+ * Set an object that will be merged sent as extra data with the event.
4249
+ * @param extras Extras object to merge into current context.
4250
+ */
4251
+ function setExtras(extras) {
4252
+ callOnHub('setExtras', extras);
4253
+ }
4254
+ /**
4255
+ * Set an object that will be merged sent as tags data with the event.
4256
+ * @param tags Tags context object to merge into current context.
4257
+ */
4258
+ function setTags(tags) {
4259
+ callOnHub('setTags', tags);
4260
+ }
4261
+ /**
4262
+ * Set key:value that will be sent as extra data with the event.
4263
+ * @param key String of extra
4264
+ * @param extra Any kind of data. This data will be normalized.
4265
+ */
4266
+ function setExtra(key, extra) {
4267
+ callOnHub('setExtra', key, extra);
4268
+ }
4269
+ /**
4270
+ * Set key:value that will be sent as tags data with the event.
4271
+ *
4272
+ * Can also be used to unset a tag, by passing `undefined`.
4273
+ *
4274
+ * @param key String key of tag
4275
+ * @param value Value of tag
4276
+ */
4277
+ function setTag(key, value) {
4278
+ callOnHub('setTag', key, value);
4279
+ }
4280
+ /**
4281
+ * Updates user context information for future events.
4282
+ *
4283
+ * @param user User context object to be set in the current context. Pass `null` to unset the user.
4284
+ */
4285
+ function setUser(user) {
4286
+ callOnHub('setUser', user);
4287
+ }
3528
4288
  /**
3529
4289
  * Creates a new scope with and executes the given operation within.
3530
4290
  * The scope is automatically removed once the operation
@@ -3541,6 +4301,44 @@ function captureException(exception, captureContext) {
3541
4301
  function withScope(callback) {
3542
4302
  callOnHub('withScope', callback);
3543
4303
  }
4304
+ /**
4305
+ * Calls a function on the latest client. Use this with caution, it's meant as
4306
+ * in "internal" helper so we don't need to expose every possible function in
4307
+ * the shim. It is not guaranteed that the client actually implements the
4308
+ * function.
4309
+ *
4310
+ * @param method The method to call on the client/client.
4311
+ * @param args Arguments to pass to the client/fontend.
4312
+ * @hidden
4313
+ */
4314
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4315
+ function _callOnClient(method) {
4316
+ var args = [];
4317
+ for (var _i = 1; _i < arguments.length; _i++) {
4318
+ args[_i - 1] = arguments[_i];
4319
+ }
4320
+ callOnHub.apply(void 0, __spread(['_invokeClient', method], args));
4321
+ }
4322
+ /**
4323
+ * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
4324
+ *
4325
+ * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
4326
+ * new child span within the transaction or any span, call the respective `.startChild()` method.
4327
+ *
4328
+ * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
4329
+ *
4330
+ * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its
4331
+ * finished child spans will be sent to Sentry.
4332
+ *
4333
+ * @param context Properties of the new `Transaction`.
4334
+ * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
4335
+ * default values). See {@link Options.tracesSampler}.
4336
+ *
4337
+ * @returns The transaction which was just started
4338
+ */
4339
+ function startTransaction(context, customSamplingContext) {
4340
+ return callOnHub('startTransaction', __assign({}, context), customSamplingContext);
4341
+ }
3544
4342
 
3545
4343
  var SENTRY_API_VERSION = '7';
3546
4344
  /**
@@ -4631,6 +5429,12 @@ var InboundFilters = /** @class */ (function () {
4631
5429
  return InboundFilters;
4632
5430
  }());
4633
5431
 
5432
+ const CoreIntegrations = /*#__PURE__*/Object.freeze({
5433
+ __proto__: null,
5434
+ FunctionToString: FunctionToString,
5435
+ InboundFilters: InboundFilters
5436
+ });
5437
+
4634
5438
  /**
4635
5439
  * This was originally forked from https://github.com/occ/TraceKit, but has since been
4636
5440
  * largely modified and is now maintained as part of Sentry JS SDK.
@@ -5598,7 +6402,7 @@ function ignoreNextOnError() {
5598
6402
  * @returns The wrapped function.
5599
6403
  * @hidden
5600
6404
  */
5601
- function wrap(fn, options, before) {
6405
+ function wrap$1(fn, options, before) {
5602
6406
  if (options === void 0) { options = {}; }
5603
6407
  if (typeof fn !== 'function') {
5604
6408
  return fn;
@@ -5628,7 +6432,7 @@ function wrap(fn, options, before) {
5628
6432
  before.apply(this, arguments);
5629
6433
  }
5630
6434
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
5631
- var wrappedArguments = args.map(function (arg) { return wrap(arg, options); });
6435
+ var wrappedArguments = args.map(function (arg) { return wrap$1(arg, options); });
5632
6436
  if (fn.handleEvent) {
5633
6437
  // Attempt to invoke user-land function
5634
6438
  // NOTE: If you are a Sentry user, and you are seeing this stack frame, it
@@ -6002,7 +6806,7 @@ var TryCatch = /** @class */ (function () {
6002
6806
  args[_i] = arguments[_i];
6003
6807
  }
6004
6808
  var originalCallback = args[0];
6005
- args[0] = wrap(originalCallback, {
6809
+ args[0] = wrap$1(originalCallback, {
6006
6810
  mechanism: {
6007
6811
  data: { function: getFunctionName(original) },
6008
6812
  handled: true,
@@ -6018,7 +6822,7 @@ var TryCatch = /** @class */ (function () {
6018
6822
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6019
6823
  return function (callback) {
6020
6824
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
6021
- return original.call(this, wrap(callback, {
6825
+ return original.call(this, wrap$1(callback, {
6022
6826
  mechanism: {
6023
6827
  data: {
6024
6828
  function: 'requestAnimationFrame',
@@ -6044,7 +6848,7 @@ var TryCatch = /** @class */ (function () {
6044
6848
  return function (eventName, fn, options) {
6045
6849
  try {
6046
6850
  if (typeof fn.handleEvent === 'function') {
6047
- fn.handleEvent = wrap(fn.handleEvent.bind(fn), {
6851
+ fn.handleEvent = wrap$1(fn.handleEvent.bind(fn), {
6048
6852
  mechanism: {
6049
6853
  data: {
6050
6854
  function: 'handleEvent',
@@ -6062,7 +6866,7 @@ var TryCatch = /** @class */ (function () {
6062
6866
  }
6063
6867
  return original.call(this, eventName,
6064
6868
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6065
- wrap(fn, {
6869
+ wrap$1(fn, {
6066
6870
  mechanism: {
6067
6871
  data: {
6068
6872
  function: 'addEventListener',
@@ -6139,7 +6943,7 @@ var TryCatch = /** @class */ (function () {
6139
6943
  wrapOptions.mechanism.data.handler = getFunctionName(original.__sentry_original__);
6140
6944
  }
6141
6945
  // Otherwise wrap directly
6142
- return wrap(original, wrapOptions);
6946
+ return wrap$1(original, wrapOptions);
6143
6947
  });
6144
6948
  }
6145
6949
  });
@@ -6676,6 +7480,16 @@ var Dedupe = /** @class */ (function () {
6676
7480
  return Dedupe;
6677
7481
  }());
6678
7482
 
7483
+ const BrowserIntegrations = /*#__PURE__*/Object.freeze({
7484
+ __proto__: null,
7485
+ GlobalHandlers: GlobalHandlers,
7486
+ TryCatch: TryCatch,
7487
+ Breadcrumbs: Breadcrumbs,
7488
+ LinkedErrors: LinkedErrors,
7489
+ UserAgent: UserAgent,
7490
+ Dedupe: Dedupe
7491
+ });
7492
+
6679
7493
  /**
6680
7494
  * The Sentry Browser SDK Client.
6681
7495
  *
@@ -6834,6 +7648,91 @@ function init(options) {
6834
7648
  startSessionTracking();
6835
7649
  }
6836
7650
  }
7651
+ /**
7652
+ * Present the user with a report dialog.
7653
+ *
7654
+ * @param options Everything is optional, we try to fetch all info need from the global scope.
7655
+ */
7656
+ function showReportDialog(options) {
7657
+ if (options === void 0) { options = {}; }
7658
+ var hub = getCurrentHub();
7659
+ var scope = hub.getScope();
7660
+ if (scope) {
7661
+ options.user = __assign(__assign({}, scope.getUser()), options.user);
7662
+ }
7663
+ if (!options.eventId) {
7664
+ options.eventId = hub.lastEventId();
7665
+ }
7666
+ var client = hub.getClient();
7667
+ if (client) {
7668
+ client.showReportDialog(options);
7669
+ }
7670
+ }
7671
+ /**
7672
+ * This is the getter for lastEventId.
7673
+ *
7674
+ * @returns The last event id of a captured event.
7675
+ */
7676
+ function lastEventId() {
7677
+ return getCurrentHub().lastEventId();
7678
+ }
7679
+ /**
7680
+ * This function is here to be API compatible with the loader.
7681
+ * @hidden
7682
+ */
7683
+ function forceLoad() {
7684
+ // Noop
7685
+ }
7686
+ /**
7687
+ * This function is here to be API compatible with the loader.
7688
+ * @hidden
7689
+ */
7690
+ function onLoad(callback) {
7691
+ callback();
7692
+ }
7693
+ /**
7694
+ * Call `flush()` on the current client, if there is one. See {@link Client.flush}.
7695
+ *
7696
+ * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause
7697
+ * the client to wait until all events are sent before resolving the promise.
7698
+ * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it
7699
+ * doesn't (or if there's no client defined).
7700
+ */
7701
+ function flush(timeout) {
7702
+ var client = getCurrentHub().getClient();
7703
+ if (client) {
7704
+ return client.flush(timeout);
7705
+ }
7706
+ logger.warn('Cannot flush events. No client defined.');
7707
+ return SyncPromise.resolve(false);
7708
+ }
7709
+ /**
7710
+ * Call `close()` on the current client, if there is one. See {@link Client.close}.
7711
+ *
7712
+ * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this
7713
+ * parameter will cause the client to wait until all events are sent before disabling itself.
7714
+ * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it
7715
+ * doesn't (or if there's no client defined).
7716
+ */
7717
+ function close(timeout) {
7718
+ var client = getCurrentHub().getClient();
7719
+ if (client) {
7720
+ return client.close(timeout);
7721
+ }
7722
+ logger.warn('Cannot flush events and disable SDK. No client defined.');
7723
+ return SyncPromise.resolve(false);
7724
+ }
7725
+ /**
7726
+ * Wrap code within a try/catch block so the SDK is able to capture errors.
7727
+ *
7728
+ * @param fn A function to wrap.
7729
+ *
7730
+ * @returns The result of wrapped function call.
7731
+ */
7732
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
7733
+ function wrap(fn) {
7734
+ return wrap$1(fn)();
7735
+ }
6837
7736
  /**
6838
7737
  * Enable automatic Session Tracking for the initial page load.
6839
7738
  */
@@ -6875,6 +7774,17 @@ function startSessionTracking() {
6875
7774
  });
6876
7775
  }
6877
7776
 
7777
+ // TODO: Remove in the next major release and rely only on @sentry/core SDK_VERSION and SdkInfo metadata
7778
+ var SDK_NAME = 'sentry.javascript.browser';
7779
+
7780
+ var windowIntegrations = {};
7781
+ // This block is needed to add compatibility with the integrations packages when used with a CDN
7782
+ var _window = getGlobalObject();
7783
+ if (_window.Sentry && _window.Sentry.Integrations) {
7784
+ windowIntegrations = _window.Sentry.Integrations;
7785
+ }
7786
+ var INTEGRATIONS = __assign(__assign(__assign({}, windowIntegrations), CoreIntegrations), BrowserIntegrations);
7787
+
6878
7788
  const getExeptionValues = (event) => { var _a, _b; return (_b = (_a = event === null || event === void 0 ? void 0 : event.exception) === null || _a === void 0 ? void 0 : _a.values) !== null && _b !== void 0 ? _b : []; };
6879
7789
  const getExeptionStackFrames = (exeption) => { var _a, _b; return (_b = (_a = exeption === null || exeption === void 0 ? void 0 : exeption.stacktrace) === null || _a === void 0 ? void 0 : _a.frames) !== null && _b !== void 0 ? _b : []; };
6880
7790
  const filterStackFrameByFilename = (query) => (frame) => {
@@ -6893,8 +7803,8 @@ const filterInternalExeptions = (event) => {
6893
7803
  const setupSentry = () => {
6894
7804
  init({
6895
7805
  dsn: "https://70bcf561598b44148bd3cabc7c142a6c@o1015876.ingest.sentry.io/5983034",
6896
- release: `${index.Env.packageName}@${index.Env.packageVersion}`,
6897
- environment: index.Env.environment,
7806
+ release: `${Env.packageName}@${Env.packageVersion}`,
7807
+ environment: Env.environment,
6898
7808
  tracesSampleRate: 0.0,
6899
7809
  maxBreadcrumbs: 4,
6900
7810
  beforeSend: filterInternalExeptions,
@@ -6909,4 +7819,4 @@ function appGlobalScript () {
6909
7819
 
6910
7820
  const globalScripts = appGlobalScript;
6911
7821
 
6912
- exports.globalScripts = globalScripts;
7822
+ export { globalScripts as g };