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 +0,0 @@
1
- import{e as t,h as n}from"./p-7e2f542c.js";var e,r=new Uint8Array(16);function i(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function u(t){return"string"==typeof t&&o.test(t)}for(var a=[],c=0;c<256;++c)a.push((c+256).toString(16).substr(1));function f(t,n,e){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){e=e||0;for(var o=0;o<16;++o)n[e+o]=r[o];return n}return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(a[t[n+0]]+a[t[n+1]]+a[t[n+2]]+a[t[n+3]]+"-"+a[t[n+4]]+a[t[n+5]]+"-"+a[t[n+6]]+a[t[n+7]]+"-"+a[t[n+8]]+a[t[n+9]]+"-"+a[t[n+10]]+a[t[n+11]]+a[t[n+12]]+a[t[n+13]]+a[t[n+14]]+a[t[n+15]]).toLowerCase();if(!u(e))throw TypeError("Stringified UUID is invalid");return e}(r)}var s=function(t,n){if(n=n.split(":")[0],!(t=+t))return!1;switch(n){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t},h=Object.prototype.hasOwnProperty;function l(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function v(t){try{return encodeURIComponent(t)}catch(t){return null}}var d={stringify:function(t,n){n=n||"";var e,r,i=[];for(r in"string"!=typeof n&&(n="?"),t)if(h.call(t,r)){if((e=t[r])||null!=e&&!isNaN(e)||(e=""),r=v(r),e=v(e),null===r||null===e)continue;i.push(r+"="+e)}return i.length?n+i.join("&"):""},parse:function(t){for(var n,e=/([^=?#&]+)=?([^&]*)/g,r={};n=e.exec(t);){var i=l(n[1]),o=l(n[2]);null===i||null===o||i in r||(r[i]=o)}return r}},p=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,m=/[\n\r\t]/g,b=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,w=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,g=/^[a-zA-Z]:/;function _(t){return(t||"").toString().replace(p,"")}var j=[["#","hash"],["?","query"],function(t,n){return A(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],O={hash:1,query:1};function E(n){var e;e="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var r,i={},o=typeof(n=n||e.location||{});if("blob:"===n.protocol)i=new T(unescape(n.pathname),{});else if("string"===o)for(r in i=new T(n,{}),O)delete i[r];else if("object"===o){for(r in n)r in O||(i[r]=n[r]);void 0===i.slashes&&(i.slashes=b.test(n.href))}return i}function A(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function S(t,n){t=(t=_(t)).replace(m,""),n=n||{};var e,r=w.exec(t),i=r[1]?r[1].toLowerCase():"",o=!!r[2],u=!!r[3],a=0;return o?u?(e=r[2]+r[3]+r[4],a=r[2].length+r[3].length):(e=r[2]+r[4],a=r[2].length):u?(e=r[3]+r[4],a=r[3].length):e=r[4],"file:"===i?a>=2&&(e=e.slice(2)):A(i)?e=r[4]:i?o&&(e=e.slice(2)):a>=2&&A(n.protocol)&&(e=r[4]),{protocol:i,slashes:o||A(i),slashesCount:a,rest:e}}function T(t,n,e){if(t=(t=_(t)).replace(m,""),!(this instanceof T))return new T(t,n,e);var r,i,o,u,a,c,f=j.slice(),h=typeof n,l=this,v=0;for("object"!==h&&"string"!==h&&(e=n,n=null),e&&"function"!=typeof e&&(e=d.parse),r=!(i=S(t||"",n=E(n))).protocol&&!i.slashes,l.slashes=i.slashes||r&&n.slashes,l.protocol=i.protocol||n.protocol||"",t=i.rest,("file:"===i.protocol&&(2!==i.slashesCount||g.test(t))||!i.slashes&&(i.protocol||i.slashesCount<2||!A(l.protocol)))&&(f[3]=[/(.*)/,"pathname"]);v<f.length;v++)"function"!=typeof(u=f[v])?(c=u[1],(o=u[0])!=o?l[c]=t:"string"==typeof o?~(a="@"===o?t.lastIndexOf(o):t.indexOf(o))&&("number"==typeof u[2]?(l[c]=t.slice(0,a),t=t.slice(a+u[2])):(l[c]=t.slice(a),t=t.slice(0,a))):(a=o.exec(t))&&(l[c]=a[1],t=t.slice(0,a.index)),l[c]=l[c]||r&&u[3]&&n[c]||"",u[4]&&(l[c]=l[c].toLowerCase())):t=u(t,l);e&&(l.query=e(l.query)),r&&n.slashes&&"/"!==l.pathname.charAt(0)&&(""!==l.pathname||""!==n.pathname)&&(l.pathname=function(t,n){if(""===t)return n;for(var e=(n||"/").split("/").slice(0,-1).concat(t.split("/")),r=e.length,i=e[r-1],o=!1,u=0;r--;)"."===e[r]?e.splice(r,1):".."===e[r]?(e.splice(r,1),u++):u&&(0===r&&(o=!0),e.splice(r,1),u--);return o&&e.unshift(""),"."!==i&&".."!==i||e.push(""),e.join("/")}(l.pathname,n.pathname)),"/"!==l.pathname.charAt(0)&&A(l.protocol)&&(l.pathname="/"+l.pathname),s(l.port,l.protocol)||(l.host=l.hostname,l.port=""),l.username=l.password="",l.auth&&(~(a=l.auth.indexOf(":"))?(l.username=l.auth.slice(0,a),l.username=encodeURIComponent(decodeURIComponent(l.username)),l.password=l.auth.slice(a+1),l.password=encodeURIComponent(decodeURIComponent(l.password))):l.username=encodeURIComponent(decodeURIComponent(l.auth)),l.auth=l.password?l.username+":"+l.password:l.username),l.origin="file:"!==l.protocol&&A(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}T.prototype={set:function(t,n,e){var r=this;switch(t){case"query":"string"==typeof n&&n.length&&(n=(e||d.parse)(n)),r[t]=n;break;case"port":r[t]=n,s(n,r.protocol)?n&&(r.host=r.hostname+":"+n):(r.host=r.hostname,r[t]="");break;case"hostname":r[t]=n,r.port&&(n+=":"+r.port),r.host=n;break;case"host":r[t]=n,y.test(n)?(n=n.split(":"),r.port=n.pop(),r.hostname=n.join(":")):(r.hostname=n,r.port="");break;case"protocol":r.protocol=n.toLowerCase(),r.slashes=!e;break;case"pathname":case"hash":if(n){var i="pathname"===t?"/":"#";r[t]=n.charAt(0)!==i?i+n:n}else r[t]=n;break;case"username":case"password":r[t]=encodeURIComponent(n);break;case"auth":var o=n.indexOf(":");~o?(r.username=n.slice(0,o),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=n.slice(o+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(n))}for(var u=0;u<j.length;u++){var a=j[u];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin="file:"!==r.protocol&&A(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(t){t&&"function"==typeof t||(t=d.stringify);var n,e=this,r=e.host,i=e.protocol;i&&":"!==i.charAt(i.length-1)&&(i+=":");var o=i+(e.protocol&&e.slashes||A(e.protocol)?"//":"");return e.username?(o+=e.username,e.password&&(o+=":"+e.password),o+="@"):e.password?(o+=":"+e.password,o+="@"):"file:"!==e.protocol&&A(e.protocol)&&!r&&"/"!==e.pathname&&(o+="@"),(":"===r[r.length-1]||y.test(e.hostname)&&!e.port)&&(r+=":"),o+=r+e.pathname,(n="object"==typeof e.query?t(e.query):e.query)&&(o+="?"!==n.charAt(0)?"?"+n:n),e.hash&&(o+=e.hash),o}},T.extractProtocol=S,T.location=E,T.trimLeft=_,T.qs=d;var N=T,C=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.map=n.mergeMap=n.of=n.from=n.Observable=void 0;var e=function(){function t(t){this.promise=t}return t.prototype.toPromise=function(){return this.promise},t.prototype.pipe=function(n){return new t(this.promise.then(n))},t}();n.Observable=e,n.from=function(t){return new e(t)},n.of=function(t){return new e(Promise.resolve(t))},n.mergeMap=function(t){return function(n){return t(n).toPromise()}},n.map=function(t){return t}})),P="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==P&&P,k="URLSearchParams"in P,M="Symbol"in P&&"iterator"in Symbol,R="FileReader"in P&&"Blob"in P&&function(){try{return new Blob,!0}catch(t){return!1}}(),U="FormData"in P,x="ArrayBuffer"in P;if(x)var I=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],F=ArrayBuffer.isView||function(t){return t&&I.indexOf(Object.prototype.toString.call(t))>-1};function D(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function W(t){return"string"!=typeof t&&(t=String(t)),t}function V(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return M&&(n[Symbol.iterator]=function(){return n}),n}function B(t){this.map={},t instanceof B?t.forEach((function(t,n){this.append(n,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(n){this.append(n,t[n])}),this)}function q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function z(t){return new Promise((function(n,e){t.onload=function(){n(t.result)},t.onerror=function(){e(t.error)}}))}function G(t){var n=new FileReader,e=z(n);return n.readAsArrayBuffer(t),e}function H(t){if(t.slice)return t.slice(0);var n=new Uint8Array(t.byteLength);return n.set(new Uint8Array(t)),n.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:R&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:U&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:k&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():x&&R&&(n=t)&&DataView.prototype.isPrototypeOf(n)?(this._bodyArrayBuffer=H(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):x&&(ArrayBuffer.prototype.isPrototypeOf(t)||F(t))?this._bodyArrayBuffer=H(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):k&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},R&&(this.blob=function(){var t=q(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?q(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(G)}),this.text=function(){var t,n,e,r=q(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=z(n=new FileReader),n.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var n=new Uint8Array(t),e=new Array(n.length),r=0;r<n.length;r++)e[r]=String.fromCharCode(n[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},U&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}B.prototype.append=function(t,n){t=D(t),n=W(n);var e=this.map[t];this.map[t]=e?e+", "+n:n},B.prototype.delete=function(t){delete this.map[D(t)]},B.prototype.get=function(t){return t=D(t),this.has(t)?this.map[t]:null},B.prototype.has=function(t){return this.map.hasOwnProperty(D(t))},B.prototype.set=function(t,n){this.map[D(t)]=W(n)},B.prototype.forEach=function(t,n){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(n,this.map[e],e,this)},B.prototype.keys=function(){var t=[];return this.forEach((function(n,e){t.push(e)})),V(t)},B.prototype.values=function(){var t=[];return this.forEach((function(n){t.push(n)})),V(t)},B.prototype.entries=function(){var t=[];return this.forEach((function(n,e){t.push([e,n])})),V(t)},M&&(B.prototype[Symbol.iterator]=B.prototype.entries);var J=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function $(t,n){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var e,r,i=(n=n||{}).body;if(t instanceof $){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,n.headers||(this.headers=new B(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new B(n.headers)),this.method=(r=(e=n.method||this.method||"GET").toUpperCase(),J.indexOf(r)>-1?r:e),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function K(t){var n=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(i))}})),n}function X(t,n){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');n||(n={}),this.type="default",this.status=void 0===n.status?200:n.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===n.statusText?"":""+n.statusText,this.headers=new B(n.headers),this.url=n.url||"",this._initBody(t)}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})},L.call($.prototype),L.call(X.prototype),X.prototype.clone=function(){return new X(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new B(this.headers),url:this.url})},X.error=function(){var t=new X(null,{status:0,statusText:""});return t.type="error",t};var Z=[301,302,303,307,308];X.redirect=function(t,n){if(-1===Z.indexOf(n))throw new RangeError("Invalid status code");return new X(null,{status:n,headers:{location:t}})};var Q=P.DOMException;try{new Q}catch(t){(Q=function(t,n){this.message=t,this.name=n;var e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Q.prototype.constructor=Q}function Y(t,n){return new Promise((function(e,r){var i=new $(t,n);if(i.signal&&i.signal.aborted)return r(new Q("Aborted","AbortError"));var o=new XMLHttpRequest;function u(){o.abort()}o.onload=function(){var t,n,r={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",n=new B,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();n.append(r,i)}})),n)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){e(new X(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Q("Aborted","AbortError"))}),0)},o.open(i.method,function(t){try{return""===t&&P.location.href?P.location.href:t}catch(n){return t}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(R?o.responseType="blob":x&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof B?i.headers.forEach((function(t,n){o.setRequestHeader(n,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){o.setRequestHeader(t,W(n.headers[t]))})),i.signal&&(i.signal.addEventListener("abort",u),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",u)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}Y.polyfill=!0,P.fetch||(P.fetch=Y,P.Headers=B,P.Request=$,P.Response=X);var tt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.IsomorphicFetchHttpLibrary=void 0;var e=function(){function t(){}return t.prototype.send=function(t){var n=t.getHttpMethod().toString(),e=t.getBody(),r=fetch(t.getUrl(),{method:n,body:e,headers:t.getHeaders(),credentials:"same-origin"}).then((function(t){var n={};t.headers.forEach((function(t,e){n[e]=t}));var e={text:function(){return t.text()},binary:function(){return t.blob()}};return new nt.ResponseContext(t.status,n,e)}));return(0,C.from)(r)},t}();n.IsomorphicFetchHttpLibrary=e})),nt=n((function(n,e){var r,i,o=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),u=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),a=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||u(n,t,e)},c=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},f=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.wrapHttpLibrary=e.ResponseContext=e.SelfDecodingBody=e.RequestContext=e.HttpException=e.HttpMethod=void 0,a(tt,e),(i=e.HttpMethod||(e.HttpMethod={})).GET="GET",i.HEAD="HEAD",i.POST="POST",i.PUT="PUT",i.DELETE="DELETE",i.CONNECT="CONNECT",i.OPTIONS="OPTIONS",i.TRACE="TRACE",i.PATCH="PATCH";var s=function(t){function n(n){return t.call(this,n)||this}return o(n,t),n}(Error);e.HttpException=s;var h=function(){function t(t,n){this.httpMethod=n,this.headers={},this.body=void 0,this.url=new N(t,!0)}return t.prototype.getUrl=function(){return this.url.toString()},t.prototype.setUrl=function(t){this.url=new N(t,!0)},t.prototype.setBody=function(t){this.body=t},t.prototype.getHttpMethod=function(){return this.httpMethod},t.prototype.getHeaders=function(){return this.headers},t.prototype.getBody=function(){return this.body},t.prototype.setQueryParam=function(t,n){var e=this.url.query;e[t]=n,this.url.set("query",e)},t.prototype.addCookie=function(t,n){this.headers.Cookie||(this.headers.Cookie=""),this.headers.Cookie+=t+"="+n+"; "},t.prototype.setHeaderParam=function(t,n){this.headers[t]=n},t}();e.RequestContext=h;var l=function(){function t(t){this.dataSource=t}return t.prototype.binary=function(){return this.dataSource},t.prototype.text=function(){return c(this,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:return[4,this.dataSource];case 1:return(t=n.sent()).text?[2,t.text()]:[2,new Promise((function(n,e){var r=new FileReader;r.addEventListener("load",(function(){return n(r.result)})),r.addEventListener("error",(function(){return e(r.error)})),r.readAsText(t)}))]}}))}))},t}();e.SelfDecodingBody=l;var v=function(){function t(t,n,e){this.httpStatusCode=t,this.headers=n,this.body=e}return t.prototype.getParsedHeader=function(t){var n={};if(!this.headers[t])return n;for(var e=0,r=this.headers[t].split(";");e<r.length;e++){var i=r[e].split("=",2),o=i[0],u=i[1];o=o.toLowerCase().trim(),void 0===u?n[""]=o:((u=u.trim()).startsWith('"')&&u.endsWith('"')&&(u=u.substring(1,u.length-1)),n[o]=u)}return n},t.prototype.getBodyAsFile=function(){return c(this,void 0,void 0,(function(){var t,n,e;return f(this,(function(r){switch(r.label){case 0:return[4,this.body.binary()];case 1:t=r.sent(),n=this.getParsedHeader("content-disposition").filename||"",e=this.headers["content-type"]||"";try{return[2,new File([t],n,{type:e})]}catch(r){return[2,Object.assign(t,{name:n,type:e})]}return[2]}}))}))},t.prototype.getBodyAsAny=function(){try{return this.body.text()}catch(t){}try{return this.body.binary()}catch(t){}return Promise.resolve(void 0)},t}();e.ResponseContext=v,e.wrapHttpLibrary=function(t){return{send:function(n){return(0,C.from)(t.send(n))}}}})),et=n((function(n,e){var r=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},i=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.configureAuthMethods=e.BearerAuthAuthentication=void 0;var o=function(){function t(t){this.tokenProvider=t}return t.prototype.getName=function(){return"bearerAuth"},t.prototype.applySecurityAuthentication=function(t){return r(this,void 0,void 0,(function(){var n,e,r,o;return i(this,(function(i){switch(i.label){case 0:return e=(n=t).setHeaderParam,r=["Authorization"],o="Bearer ",[4,this.tokenProvider.getToken()];case 1:return e.apply(n,r.concat([o+i.sent()])),[2]}}))}))},t}();e.BearerAuthAuthentication=o,e.configureAuthMethods=function(t){var n={};return t?(n.default=t.default,t.bearerAuth&&(n.bearerAuth=new o(t.bearerAuth.tokenProvider)),n):n}})),rt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorObject=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"domain",baseName:"domain",type:"string",format:""},{name:"reason",baseName:"reason",type:"string",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"location",baseName:"location",type:"string",format:""},{name:"location_type",baseName:"location_type",type:"string",format:""},{name:"extended_help",baseName:"extended_help",type:"string",format:""},{name:"send_report",baseName:"send_report",type:"string",format:""}],t}();n.ErrorObject=e})),it=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ErrorResponse=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"code",baseName:"code",type:"number",format:""},{name:"message",baseName:"message",type:"string",format:""},{name:"errors",baseName:"errors",type:"Array<ErrorObject>",format:""}],t}();n.ErrorResponse=e})),ot=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.Event=void 0;var e=function(){function t(){this.typ="Event"}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator="typ",t.attributeTypeMap=[{name:"session_id",baseName:"session_id",type:"string",format:""},{name:"typ",baseName:"typ",type:"string",format:""}],t}();n.Event=e})),ut=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.EventConfirmation=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"status",baseName:"status",type:"EventConfirmationStatusEnum",format:""}],t}();n.EventConfirmation=e})),at=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),ct=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.FilterEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="FilterEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],n}(ot.Event);e.FilterEvent=o})),ft=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.FilterEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"FilterAction",format:""},{name:"kind",baseName:"kind",type:"FilterKind",format:""}],t}();n.FilterEventAllOf=e})),st=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),ht=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProductClickEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductClickEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(ot.Event);e.ProductClickEvent=o})),lt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ProductViewEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="ProductViewEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],n}(ot.Event);e.ProductViewEvent=o})),vt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ProductViewEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"product",baseName:"product",type:"string",format:""},{name:"rank",baseName:"rank",type:"number",format:""}],t}();n.ProductViewEventAllOf=e})),dt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),pt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.SearchEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="SearchEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],n}(ot.Event);e.SearchEvent=o})),mt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.SearchEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"source",baseName:"source",type:"SearchImageSource",format:""},{name:"search_area",baseName:"search_area",type:"SearchArea",format:""}],t}();n.SearchEventAllOf=e})),bt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),yt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),wt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0})})),gt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.WidgetEvent=void 0;var o=function(t){function n(){var n=t.call(this)||this;return n.typ="WidgetEvent",n}return i(n,t),n.getAttributeTypeMap=function(){return t.getAttributeTypeMap.call(this).concat(n.attributeTypeMap)},n.discriminator=void 0,n.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],n}(ot.Event);e.WidgetEvent=o})),_t=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.WidgetEventAllOf=void 0;var e=function(){function t(){}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.discriminator=void 0,t.attributeTypeMap=[{name:"widget",baseName:"widget",type:"Widget",format:""},{name:"action",baseName:"action",type:"WidgetAction",format:""}],t}();n.WidgetEventAllOf=e})),jt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),i(rt,e),i(it,e),i(ot,e),i(ut,e),i(at,e),i(ct,e),i(ft,e),i(st,e),i(ht,e),i(lt,e),i(vt,e),i(dt,e),i(pt,e),i(mt,e),i(bt,e),i(yt,e),i(wt,e),i(gt,e),i(_t,e)})),Ot=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseMiddlewareWrapper=void 0;var e=function(){function t(t){this.middleware=t}return t.prototype.pre=function(t){return(0,C.from)(this.middleware.pre(t))},t.prototype.post=function(t){return(0,C.from)(this.middleware.post(t))},t}();n.PromiseMiddlewareWrapper=e})),Et=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.servers=n.server2=n.server1=n.ServerConfiguration=void 0;var e=function(){function t(t,n){this.url=t,this.variableConfiguration=n}return t.prototype.setVariables=function(t){Object.assign(this.variableConfiguration,t)},t.prototype.getConfiguration=function(){return this.variableConfiguration},t.prototype.getUrl=function(){var t=this.url;for(var n in this.variableConfiguration){var e=new RegExp("{"+n+"}","g");t=t.replace(e,this.variableConfiguration[n])}return t},t.prototype.makeRequestContext=function(t,n){return new nt.RequestContext(this.getUrl()+t,n)},t}();n.ServerConfiguration=e,n.server1=new e("https://tracking.vviinn.com",{}),n.server2=new e("https://tracking.stage.vviinn.com",{}),n.servers=[n.server1,n.server2]})),At=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.createConfiguration=void 0,n.createConfiguration=function(t){void 0===t&&(t={});var n={baseServer:void 0!==t.baseServer?t.baseServer:Et.server1,httpApi:t.httpApi||new tt.IsomorphicFetchHttpLibrary,middleware:t.middleware||[],authMethods:(0,et.configureAuthMethods)(t.authMethods)};return t.promiseMiddleware&&t.promiseMiddleware.forEach((function(t){return n.middleware.push(new Ot.PromiseMiddlewareWrapper(t))})),n}})),St=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.ApiException=void 0;var o=function(t){function n(n,e,r,i){var o=t.call(this,"HTTP-Code: "+n+"\nMessage: "+e+"\nBody: "+JSON.stringify(r)+"\nHeaders: "+JSON.stringify(i))||this;return o.code=n,o.body=r,o.headers=i,o}return i(n,t),n}(Error);e.ApiException=o})),Tt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0}),e.RequiredError=e.BaseAPIRequestFactory=e.COLLECTION_FORMATS=void 0,e.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},e.BaseAPIRequestFactory=function(t){this.configuration=t};var o=function(t){function n(n,e,r){var i=t.call(this,"Required parameter "+r+" was null or undefined when calling "+n+"."+e+".")||this;return i.api=n,i.method=e,i.field=r,i.name="RequiredError",i}return i(n,t),n}(Error);e.RequiredError=o})),Nt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectSerializer=void 0,i(rt,e),i(it,e),i(ot,e),i(ut,e),i(at,e),i(ct,e),i(ft,e),i(st,e),i(ht,e),i(lt,e),i(vt,e),i(dt,e),i(pt,e),i(mt,e),i(bt,e),i(yt,e),i(wt,e),i(gt,e),i(_t,e);var o=rt,u=it,a=ot,c=ut,f=ct,s=ft,h=ht,l=lt,v=vt,d=pt,p=mt,m=gt,b=_t,y=["string","boolean","double","integer","long","float","number","any"],w={"application/json":1/0,"application/octet-stream":0,"application/x-www-form-urlencoded":0},g=new Set(["EventConfirmationStatusEnum","FilterAction","FilterKind","SearchArea","SearchImageSource","Widget","WidgetAction"]),_={ErrorObject:o.ErrorObject,ErrorResponse:u.ErrorResponse,Event:a.Event,EventConfirmation:c.EventConfirmation,FilterEvent:f.FilterEvent,FilterEventAllOf:s.FilterEventAllOf,ProductClickEvent:h.ProductClickEvent,ProductViewEvent:l.ProductViewEvent,ProductViewEventAllOf:v.ProductViewEventAllOf,SearchEvent:d.SearchEvent,SearchEventAllOf:p.SearchEventAllOf,WidgetEvent:m.WidgetEvent,WidgetEventAllOf:b.WidgetEventAllOf},j=function(){function t(){}return t.findCorrectType=function(t,n){if(null==t)return n;if(-1!==y.indexOf(n.toLowerCase()))return n;if("Date"===n)return n;if(g.has(n))return n;if(!_[n])return n;var e=_[n].discriminator;if(null==e)return n;if(t[e]){var r=t[e];return _[r]?r:n}return n},t.serialize=function(n,e,r){if(null==n)return n;if(-1!==y.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var u in n)o.push(t.serialize(n[u],i,r));return o}if("Date"===e){if("date"==r){var a=n.getMonth()+1;a=a<10?"0"+a.toString():a.toString();var c=n.getDate();return c=c<10?"0"+c.toString():c.toString(),n.getFullYear()+"-"+a+"-"+c}return n.toISOString()}if(g.has(e))return n;if(!_[e])return n;e=this.findCorrectType(n,e);var f=_[e].getAttributeTypeMap(),s={};for(var u in f){var h=f[u];s[h.baseName]=t.serialize(n[h.name],h.type,h.format)}return s},t.deserialize=function(n,e,r){if(e=t.findCorrectType(n,e),null==n)return n;if(-1!==y.indexOf(e.toLowerCase()))return n;if(0===e.lastIndexOf("Array<",0)){var i=e.replace("Array<","");i=i.substring(0,i.length-1);var o=[];for(var u in n)o.push(t.deserialize(n[u],i,r));return o}if("Date"===e)return new Date(n);if(g.has(e))return n;if(!_[e])return n;var a=new _[e],c=_[e].getAttributeTypeMap();for(var u in c){var f=c[u];a[f.name]=t.deserialize(n[f.baseName],f.type,f.format)}return a},t.normalizeMediaType=function(t){if(void 0!==t)return t.split(";")[0].trim().toLowerCase()},t.getPreferredMediaType=function(t){if(!t)return"application/json";for(var n=void 0,e=-1/0,r=0,i=t.map(this.normalizeMediaType);r<i.length;r++){var o=i[r];w[o]>e&&(n=o,e=w[o])}if(void 0===n)throw new Error("None of the given media types are supported: "+t.join(", "));return n},t.stringify=function(t,n){if("application/json"===n)return JSON.stringify(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.stringify.")},t.parse=function(t,n){if(void 0===n)throw new Error("Cannot parse content. No Content-Type defined.");if("application/json"===n)return JSON.parse(t);throw new Error("The mediaType "+n+" is not supported by ObjectSerializer.parse.")},t}();e.ObjectSerializer=j})),Ct=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.canConsumeForm=n.isCodeInRange=void 0,n.isCodeInRange=function(t,n){if("0"===t)return!0;if(t==n.toString())return!0;var e=n.toString();if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if("X"!=t.charAt(r)&&t.charAt(r)!=e.charAt(r))return!1;return!0},n.canConsumeForm=function(t){return-1!==t.indexOf("multipart/form-data")}})),Pt=n((function(n,e){var r,i=t&&t.__extends||(r=function(t,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}),o=t&&t.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(i,o){function u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))},u=t&&t.__generator||function(t,n){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=n.call(t,u)}catch(t){o=[6,t],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultApiResponseProcessor=e.DefaultApiRequestFactory=void 0;var a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.trackEvent=function(t,n){var e,r,i;return o(this,void 0,void 0,(function(){var o,a,c,f,s,h;return u(this,(function(u){switch(u.label){case 0:return(a=(o=n||this.configuration).baseServer.makeRequestContext("/event",nt.HttpMethod.POST)).setHeaderParam("Accept","application/json, */*;q=0.8"),c=Nt.ObjectSerializer.getPreferredMediaType(["application/json"]),a.setHeaderParam("Content-Type",c),f=Nt.ObjectSerializer.stringify(Nt.ObjectSerializer.serialize(t,"ProductViewEvent | ProductClickEvent | WidgetEvent | FilterEvent | SearchEvent",""),c),a.setBody(f),(null==(s=o.authMethods.bearerAuth)?void 0:s.applySecurityAuthentication)?[4,null==s?void 0:s.applySecurityAuthentication(a)]:[3,2];case 1:u.sent(),u.label=2;case 2:return(null==(h=(null===(e=null==n?void 0:n.authMethods)||void 0===e?void 0:e.default)||(null===(i=null===(r=this.configuration)||void 0===r?void 0:r.authMethods)||void 0===i?void 0:i.default))?void 0:h.applySecurityAuthentication)?[4,null==h?void 0:h.applySecurityAuthentication(a)]:[3,4];case 3:u.sent(),u.label=4;case 4:return[2,a]}}))}))},n}(Tt.BaseAPIRequestFactory);e.DefaultApiRequestFactory=a;var c=function(){function t(){}return t.prototype.trackEvent=function(t){return o(this,void 0,void 0,(function(){var n,e,r,i,o,a,c,f,s,h,l,v,d,p,m,b;return u(this,(function(u){switch(u.label){case 0:return n=Nt.ObjectSerializer.normalizeMediaType(t.headers["content-type"]),(0,Ct.isCodeInRange)("200",t.httpStatusCode)?(r=(e=Nt.ObjectSerializer).deserialize,o=(i=Nt.ObjectSerializer).parse,[4,t.body.text()]):[3,2];case 1:return[2,h=r.apply(e,[o.apply(i,[u.sent(),n]),"EventConfirmation",""])];case 2:return(0,Ct.isCodeInRange)("502",t.httpStatusCode)?(c=(a=Nt.ObjectSerializer).deserialize,s=(f=Nt.ObjectSerializer).parse,[4,t.body.text()]):[3,4];case 3:throw h=c.apply(a,[s.apply(f,[u.sent(),n]),"ErrorResponse",""]),new St.ApiException(502,"an error occurred",h,t.headers);case 4:return t.httpStatusCode>=200&&t.httpStatusCode<=299?(v=(l=Nt.ObjectSerializer).deserialize,p=(d=Nt.ObjectSerializer).parse,[4,t.body.text()]):[3,6];case 5:return[2,h=v.apply(l,[p.apply(d,[u.sent(),n]),"EventConfirmation",""])];case 6:return m=St.ApiException.bind,b=[void 0,t.httpStatusCode,"Unknown API Status Code!"],[4,t.getBodyAsAny()];case 7:throw new(m.apply(St.ApiException,b.concat([u.sent(),t.headers])))}}))}))},t}();e.DefaultApiResponseProcessor=c})),kt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.ObservableDefaultApi=void 0;var e=C,r=function(){function t(t,n,e){this.configuration=t,this.requestFactory=n||new Pt.DefaultApiRequestFactory(t),this.responseProcessor=e||new Pt.DefaultApiResponseProcessor}return t.prototype.trackEvent=function(t,n){for(var r=this,i=this.requestFactory.trackEvent(t,n),o=(0,C.from)(i),u=function(t){o=o.pipe((0,e.mergeMap)((function(n){return t.pre(n)})))},a=0,c=this.configuration.middleware;a<c.length;a++)u(c[a]);return o.pipe((0,e.mergeMap)((function(t){return r.configuration.httpApi.send(t)}))).pipe((0,e.mergeMap)((function(t){for(var n=(0,C.of)(t),i=function(t){n=n.pipe((0,e.mergeMap)((function(n){return t.post(n)})))},o=0,u=r.configuration.middleware;o<u.length;o++)i(u[o]);return n.pipe((0,e.map)((function(t){return r.responseProcessor.trackEvent(t)})))})))},t}();n.ObservableDefaultApi=r})),Mt=n((function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.PromiseDefaultApi=void 0;var e=function(){function t(t,n,e){this.api=new kt.ObservableDefaultApi(t,n,e)}return t.prototype.trackEvent=function(t,n){return this.api.trackEvent(t,n).toPromise()},t}();n.PromiseDefaultApi=e})),Rt=n((function(n,e){var r=t&&t.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),i=t&&t.__exportStar||function(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||r(n,t,e)};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultApi=e.createConfiguration=void 0,i(nt,e),i(et,e),i(jt,e),Object.defineProperty(e,"createConfiguration",{enumerable:!0,get:function(){return At.createConfiguration}}),i(St,e),i(Et,e),Object.defineProperty(e,"DefaultApi",{enumerable:!0,get:function(){return Mt.PromiseDefaultApi}})}));const Ut=(t,n)=>{const e=(t=>(t=>!t.includes("stage"))(t)?Rt.servers[0]:Rt.servers[1])(t),r=(t=>({bearerAuth:{tokenProvider:{getToken:()=>new Promise((n=>n(t)))}}}))(n);return new Rt.DefaultApi(Rt.createConfiguration({baseServer:e,authMethods:r}))},xt=t=>n=>Object.assign(Object.assign({},n),t),It=xt({widget:"VPR",typ:"product_view_event"}),Ft=xt({widget:"VPS",typ:"product_view_event"}),Dt=xt({widget:"VPR",typ:"product_click_event"}),Wt=xt({widget:"VPS",typ:"product_click_event"}),Vt=xt({widget:"VPR",typ:"widget_event"}),Bt=xt({widget:"VPS",typ:"widget_event"}),qt=xt({widget:"VPS",typ:"search_event"}),zt=xt({widget:"VPS",typ:"filter_event"});export{Dt as a,Ut as b,It as c,Vt as d,Ft as e,Wt as f,qt as g,zt as h,Bt as i,f as v}
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as s}from"./p-bad1809f.js";import{V as i}from"./p-118ac907.js";let n=class{constructor(o){t(this,o),this.position="bottom",this.sourceImage=null,this.sidebarTitle="Visually similar products",this.modalScrollbar=!1,this.sidebar=null,this.sidebarCloseListener=()=>{document.body.removeChild(this.sidebar)}}render(){return o(s,null,o("button",{class:"open-button",part:"button",onClick:()=>this.handleClick()},o("slot",null,o(i,null))))}handleClick(){const t=document.createElement("vviinn-recommendations-sidebar");t.sidebarTitle=this.sidebarTitle,t.productId=this.productId,t.token=this.token,t.position=this.position,t.sourceImage=this.sourceImage,t.widgetScrollbar=this.modalScrollbar,this.sidebar=t,t.addEventListener("modalClosed",this.sidebarCloseListener),document.body.append(this.sidebar)}disconnectedCallback(){this.sidebar.removeEventListener("modalCLosed",this.sidebarCloseListener),document.body.removeChild(this.sidebar)}};n.style=":host{display:block}.open-button{align-items:center;background:rgba(255, 255, 255, 0.8);border-radius:50%;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);box-sizing:border-box;cursor:pointer;display:grid;height:40px;justify-items:center;padding:0;width:40px;transition:all 0.25s ease-in-out}.open-button:hover{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.25)}.open-button:focus{border:2px solid rgba(15, 98, 254, 0.5);outline:none}.open-button:active{background:#F4F4F4;outline:none}";export{n as vviinn_vpr_button}
@@ -1 +0,0 @@
1
- const t={packageVersion:"2.5.1",packageName:"vviinn-widgets",environment:"local"};let e,n,l=!1,s=null,o=!1;const c="undefined"!=typeof window?window:{},i=c.document||{head:{}},r={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),u=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),f=(t,e,n)=>{n&&n.map((([n,l,s])=>{const o=h(t,n),c=d(e,s),i=p(n);r.ael(o,l,c,i),(e.o=e.o||[]).push((()=>r.rel(o,l,c,i)))}))},d=(t,e)=>n=>{try{256&t.t?t.i[e](n):(t.u=t.u||[]).push([e,n])}catch(t){lt(t)}},h=(t,e)=>16&e?i.body:t,p=t=>0!=(2&t),y=new WeakMap,m=t=>"sc-"+t.h,$={},w=t=>"object"==(t=typeof t)||"function"===t,b=(t,e,...n)=>{let l=null,s=!1,o=!1,c=[];const i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!w(l))&&(l+=""),s&&o?c[c.length-1].p+=l:c.push(s?g(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if("function"==typeof t)return t(null===e?{}:e,c,j);const r=g(t,null);return r.m=e,c.length>0&&(r.$=c),r},g=(t,e)=>({t:0,g:t,p:e,v:null,$:null,m:null}),v={},j={forEach:(t,e)=>t.map(S).forEach(e),map:(t,e)=>t.map(S).map(e).map(k)},S=t=>({vattrs:t.m,vchildren:t.$,vkey:t.j,vname:t.S,vtag:t.g,vtext:t.p}),k=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),b(t.vtag,e,...t.vchildren||[])}const e=g(t.vtag,t.vtext);return e.m=t.vattrs,e.$=t.vchildren,e.j=t.vkey,e.S=t.vname,e},O=(t,e,n,l,s,o)=>{if(n!==l){let i=nt(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,s=M(n),o=M(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if(i||"o"!==e[0]||"n"!==e[1]){const c=w(l);if((i||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}else e="-"===e[2]?e.slice(3):nt(c,a)?a.slice(2):a[2]+e.slice(3),n&&r.rel(t,e,n,!1),l&&r.ael(t,e,l,!1)}},C=/\s/,M=t=>t?t.split(C):[],x=(t,e,n,l)=>{const s=11===e.v.nodeType&&e.v.host?e.v.host:e.v,o=t&&t.m||$,c=e.m||$;for(l in o)l in c||O(s,l,o[l],void 0,n,e.t);for(l in c)O(s,l,o[l],c[l],n,e.t)},E=(t,n,s)=>{let o,c,r=n.$[s],a=0;if(null!==r.p)o=r.v=i.createTextNode(r.p);else{if(l||(l="svg"===r.g),o=r.v=i.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.g),l&&"foreignObject"===r.g&&(l=!1),x(null,r,l),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),r.$)for(a=0;a<r.$.length;++a)c=E(t,r,a),c&&o.appendChild(c);"svg"===r.g?l=!1:"foreignObject"===o.tagName&&(l=!0)}return o},L=(t,e,l,s,o,c)=>{let i,r=t;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);o<=c;++o)s[o]&&(i=E(null,l,o),i&&(s[o].v=i,r.insertBefore(i,e)))},P=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.v.remove()},T=(t,e)=>t.g===e.g,W=(t,e)=>{const n=e.v=t.v,s=t.$,o=e.$,c=e.g,i=e.p;null===i?(l="svg"===c||"foreignObject"!==c&&l,"slot"===c||x(t,e,l),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,c=0,i=e.length-1,r=e[0],a=e[i],u=l.length-1,f=l[0],d=l[u];for(;o<=i&&c<=u;)null==r?r=e[++o]:null==a?a=e[--i]:null==f?f=l[++c]:null==d?d=l[--u]:T(r,f)?(W(r,f),r=e[++o],f=l[++c]):T(a,d)?(W(a,d),a=e[--i],d=l[--u]):T(r,d)?(W(r,d),t.insertBefore(r.v,a.v.nextSibling),r=e[++o],d=l[--u]):T(a,f)?(W(a,f),t.insertBefore(a.v,r.v),a=e[--i],f=l[++c]):(s=E(e&&e[c],n,c),f=l[++c],s&&r.v.parentNode.insertBefore(s,r.v));o>i?L(t,null==l[u+1]?null:l[u+1].v,n,l,c,u):c>u&&P(e,o,i)})(n,s,e,o):null!==o?(null!==t.p&&(n.textContent=""),L(n,null,e,o,0,o.length-1)):null!==s&&P(s,0,s.length-1),l&&"svg"===c&&(l=!1)):t.p!==i&&(n.data=i)},A=t=>Z(t).k,F=(t,e,n)=>{const l=A(t);return{emit:t=>H(l,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},H=(t,e,n)=>{const l=r.ce(e,n);return t.dispatchEvent(l),l},N=(t,e)=>{e&&!t.O&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.O=e)))},R=(t,e)=>{if(t.t|=16,!(4&t.t))return N(t,t.C),ht((()=>U(t,e)));t.t|=512},U=(t,e)=>{const n=t.i;let l;return e&&(t.t|=256,t.u&&(t.u.map((([t,e])=>G(n,t,e))),t.u=null),l=G(n,"componentWillLoad")),I(l,(()=>V(t,n,e)))},V=async(t,e,n)=>{const l=t.k,s=l["s-rc"];n&&(t=>{const e=t.M,n=t.k,l=e.t,s=((t,e)=>{let n=m(e),l=ct.get(n);if(t=11===t.nodeType?t:i,l)if("string"==typeof l){let e,s=y.get(t=t.head||t);s||y.set(t,s=new Set),s.has(n)||(e=i.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);q(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>_(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},q=(t,l)=>{try{s=l,l=l.render(),t.t&=-17,t.t|=2,((t,l)=>{const s=t.k,o=t.M,c=t.L||g(null,null),i=(t=>t&&t.g===v)(l)?l:b(null,null,l);n=s.tagName,o.P&&(i.m=i.m||{},o.P.map((([t,e])=>i.m[e]=s[t]))),i.g=null,i.t|=4,t.L=i,i.v=c.v=s.shadowRoot||s,e=s["s-sc"],W(c,i)})(t,l)}catch(e){lt(e,t.k)}return s=null,null},D=()=>s,_=t=>{const e=t.k,n=t.i,l=t.C;64&t.t||(t.t|=64,J(e),G(n,"componentDidLoad"),t.T(e),l||B()),t.O&&(t.O(),t.O=void 0),512&t.t&&dt((()=>R(t,!1))),t.t&=-517},z=t=>{{const e=Z(t),n=e.k.isConnected;return n&&2==(18&e.t)&&R(e,!1),n}},B=()=>{J(i.documentElement),dt((()=>H(c,"appload",{detail:{namespace:"vviinn-widgets"}})))},G=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){lt(t)}},I=(t,e)=>t&&t.then?t.then(e):e(),J=t=>t.classList.add("hydrated"),K=(t,e,n)=>{if(e.W){t.watchers&&(e.A=t.watchers);const l=Object.entries(e.W),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>Z(this).F.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=Z(t),o=s.k,c=s.F.get(e),i=s.t,r=s.i;if(n=((t,e)=>null==t||w(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.W[e][0]),!(8&i&&void 0!==c||n===c)&&(s.F.set(e,n),r)){if(l.A&&128&i){const t=l.A[e];t&&t.map((t=>{try{r[t](n,c,e)}catch(t){lt(t,o)}}))}2==(18&i)&&R(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){r.jmp((()=>{const e=n.get(t);this.hasOwnProperty(e)&&(l=this[e],delete this[e]),this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.P.push([t,s]),s}))}}return t},Q=t=>{G(t,"connectedCallback")},X=(t,e={})=>{const n=[],l=e.exclude||[],s=c.customElements,o=i.head,a=o.querySelector("meta[charset]"),d=i.createElement("style"),h=[];let p,y=!0;Object.assign(r,e),r.l=new URL(e.resourcesUrl||"./",i.baseURI).href,t.map((t=>t[1].map((e=>{const o={t:e[0],h:e[1],W:e[2],H:e[3]};o.W=e[2],o.H=e[3],o.P=[],o.A={};const c=o.h,i=class extends HTMLElement{constructor(t){super(t),et(t=this,o),1&o.t&&t.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),y?h.push(this):r.jmp((()=>(t=>{if(0==(1&r.t)){const e=Z(t),n=e.M,l=()=>{};if(1&e.t)f(t,e,n.H),Q(e.i);else{e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){N(e,e.C=n);break}}n.W&&Object.entries(n.W).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=ot(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.A=s.watchers,K(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){lt(t)}e.t&=-9,e.t|=128,t(),Q(e.i)}if(s.style){let t=s.style;const e=m(n);if(!ct.has(e)){const l=()=>{};((t,e,n)=>{let l=ct.get(t);u&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,ct.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.C,c=()=>R(e,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(0,e,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const t=Z(this),e=t.i;t.o&&(t.o.map((t=>t())),t.o=void 0),G(e,"disconnectedCallback")}})()))}componentOnReady(){return Z(this).N}};o.R=t[0],l.includes(c)||s.get(c)||(n.push(c),s.define(c,K(i,o,1)))})))),d.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles",""),o.insertBefore(d,a?a.nextSibling:o.firstChild),y=!1,h.length?h.map((t=>t.connectedCallback())):r.jmp((()=>p=setTimeout(B,30)))},Y=new WeakMap,Z=t=>Y.get(t),tt=(t,e)=>Y.set(e.i=t,e),et=(t,e)=>{const n={t:0,k:t,M:e,F:new Map};return n.N=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[],f(t,n,e.H),Y.set(t,n)},nt=(t,e)=>e in t,lt=(t,e)=>(0,console.error)(t,e),st=new Map,ot=t=>{const e=t.h.replace(/-/g,"_"),n=t.R,l=st.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(st.set(n,t),t[e])),lt)},ct=new Map,it=[],rt=[],at=(t,e)=>n=>{t.push(n),o||(o=!0,e&&4&r.t?dt(ft):r.raf(ft))},ut=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){lt(t)}t.length=0},ft=()=>{ut(it),ut(rt),(o=it.length>0)&&r.raf(ft)},dt=t=>a().then(t),ht=at(rt,!0);export{t as E,v as H,D as a,X as b,F as c,z as f,A as g,b as h,a as p,tt as r}
@@ -1,15 +0,0 @@
1
- import{E as t}from"./p-bad1809f.js";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var n=function(t,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])})(t,r)};function r(t,r){function i(){this.constructor=t}n(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u,s,c=function(){return(c=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++)for(var e in n=arguments[r])Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t}).apply(this,arguments)};function a(t){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&t[n],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,e,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function h(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(f(arguments[n]));return t}function v(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}!function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(i||(i={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(e||(e={})),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(o||(o={})),function(t){t.fromString=function(n){switch(n){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(o||(o={})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(u||(u={})),function(t){t.fromHttpCode=function(n){return n>=200&&n<300?t.Success:429===n?t.RateLimit:n>=400&&n<500?t.Invalid:n>=500?t.Failed:t.Unknown}}(u||(u={})),function(t){t.BeforeSend="before_send",t.EventProcessor="event_processor",t.NetworkError="network_error",t.QueueOverflow="queue_overflow",t.RateLimitBackoff="ratelimit_backoff",t.SampleRate="sample_rate"}(s||(s={}));var l={};function d(){return v()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:l}function p(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return k(t,Error)}}function y(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function m(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function b(t){return"[object String]"===Object.prototype.toString.call(t)}function w(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function E(t){return"undefined"!=typeof Event&&k(t,Event)}function j(t){return"undefined"!=typeof Element&&k(t,Element)}function x(t){return!(!t||!t.then||"function"!=typeof t.then)}function k(t,n){try{return t instanceof n}catch(t){return!1}}function O(t,n){try{for(var r=t,i=[],e=0,o=0,u=void 0;r&&e++<5&&!("html"===(u=_(r,n))||e>1&&o+3*i.length+u.length>=80);)i.push(u),o+=u.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return"<unknown>"}}function _(t,n){var r,i,e,o,u,s,c,a=t,f=[];if(!a||!a.tagName)return"";f.push(a.tagName.toLowerCase());var h=(null===(r=n)||void 0===r?void 0:r.length)?n.filter((function(t){return a.getAttribute(t)})).map((function(t){return[t,a.getAttribute(t)]})):null;if(null===(i=h)||void 0===i?void 0:i.length)h.forEach((function(t){f.push("["+t[0]+'="'+t[1]+'"]')}));else if(a.id&&f.push("#"+a.id),(e=a.className)&&b(e))for(o=e.split(/\s+/),c=0;c<o.length;c++)f.push("."+o[c]);var v=["type","name","title","alt"];for(c=0;c<v.length;c++)(s=a.getAttribute(u=v[c]))&&f.push("["+u+'="'+s+'"]');return f.join("")}var S=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,n){return t.__proto__=n,t}:function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=n[r]);return t}),D=function(t){function n(n){var r=this.constructor,i=t.call(this,n)||this;return i.message=n,i.name=r.prototype.constructor.name,S(i,r.prototype),i}return r(n,t),n}(Error),T=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,N=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var n=this,r=n.path,i=n.pass,e=n.port;return n.protocol+"://"+n.publicKey+(t&&i?":"+i:"")+"@"+n.host+(e?":"+e:"")+"/"+(r?r+"/":r)+n.projectId},t.prototype._fromString=function(t){var n=T.exec(t);if(!n)throw new D("Invalid Dsn");var r=f(n.slice(1),6),i=r[0],e=r[1],o=r[2],u=void 0===o?"":o,s=r[3],c=r[4],a=void 0===c?"":c,h="",v=r[5],l=v.split("/");if(l.length>1&&(h=l.slice(0,-1).join("/"),v=l.pop()),v){var d=v.match(/^\d+/);d&&(v=d[0])}this._fromComponents({host:s,pass:u,path:h,projectId:v,port:a,protocol:i,publicKey:e})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(n){if(!t[n])throw new D("Invalid Dsn: "+n+" missing")})),!this.projectId.match(/^\d+$/))throw new D("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new D("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new D("Invalid Dsn: Invalid port "+this.port)},t}(),R=d(),I="Sentry Logger ";function q(t){var n=d();if(!("console"in n))return t();var r=n.console,i={};["debug","info","warn","error","log","assert"].forEach((function(t){t in n.console&&r[t].__sentry_original__&&(i[t]=r[t],r[t]=r[t].__sentry_original__)}));var e=t();return Object.keys(i).forEach((function(t){r[t]=i[t]})),e}var A=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&q((function(){R.console.log(I+"[Log]: "+t.join(" "))}))},t.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&q((function(){R.console.warn(I+"[Warn]: "+t.join(" "))}))},t.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._enabled&&q((function(){R.console.error(I+"[Error]: "+t.join(" "))}))},t}();R.__SENTRY__=R.__SENTRY__||{};var C=R.__SENTRY__.logger||(R.__SENTRY__.logger=new A),M=function(){function t(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return t.prototype.memoize=function(t){if(this._hasWeakSet)return!!this._inner.has(t)||(this._inner.add(t),!1);for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t)return!0;return this._inner.push(t),!1},t.prototype.unmemoize=function(t){if(this._hasWeakSet)this._inner.delete(t);else for(var n=0;n<this._inner.length;n++)if(this._inner[n]===t){this._inner.splice(n,1);break}},t}();function L(t){try{return t&&"function"==typeof t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}function U(t,n){return void 0===n&&(n=0),"string"!=typeof t||0===n||t.length<=n?t:t.substr(0,n)+"..."}function H(t,n){if(!Array.isArray(t))return"";for(var r=[],i=0;i<t.length;i++){var e=t[i];try{r.push(e+"")}catch(t){r.push("[value cannot be serialized]")}}return r.join(n)}function P(t,n){return!!b(t)&&(function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}(n)?n.test(t):"string"==typeof n&&-1!==t.indexOf(n))}function J(t,n,r){if(n in t){var i=t[n],e=r(i);if("function"==typeof e)try{e.prototype=e.prototype||{},Object.defineProperties(e,{__sentry_original__:{enumerable:!1,value:i}})}catch(t){}t[n]=e}}function F(t){if(p(t)){var n=t,r={message:n.message,name:n.name,stack:n.stack};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);return r}if(E(t)){var e=t,o={};o.type=e.type;try{o.target=j(e.target)?O(e.target):Object.prototype.toString.call(e.target)}catch(t){o.target="<unknown>"}try{o.currentTarget=j(e.currentTarget)?O(e.currentTarget):Object.prototype.toString.call(e.currentTarget)}catch(t){o.currentTarget="<unknown>"}for(var u in"undefined"!=typeof CustomEvent&&k(t,CustomEvent)&&(o.detail=e.detail),e)Object.prototype.hasOwnProperty.call(e,u)&&(o[u]=e[u]);return o}return t}function X(t,n,r){void 0===n&&(n=3),void 0===r&&(r=102400);var i=B(t,n);return function(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}(i)>r?X(t,n-1,r):i}function $(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":"undefined"!=typeof global&&t===global?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":function(t){return g(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+L(t)+"]":"symbol"==typeof t?"["+t+"]":"bigint"==typeof t?"[BigInt: "+t+"]":t}function W(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new M),0===r)return function(t){var n=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===n)return"[Object]";if("[object Array]"===n)return"[Array]";var r=$(t);return w(r)?r:n}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var e=$(n,t);if(w(e))return e;var o=F(n),u=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(u[s]=W(s,o[s],r-1,i));return i.unmemoize(n),u}function B(t,n){try{return JSON.parse(JSON.stringify(t,(function(t,r){return W(t,r,n)})))}catch(t){return"**non-serializable**"}}function G(t,n){void 0===n&&(n=40);var r=Object.keys(F(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=n)return U(r[0],n);for(var i=r.length;i>0;i--){var e=r.slice(0,i).join(", ");if(!(e.length>n))return i===r.length?e:U(e,n)}return""}function z(t){var n,r;if(g(t)){var i=t,e={};try{for(var o=a(Object.keys(i)),u=o.next();!u.done;u=o.next()){var s=u.value;void 0!==i[s]&&(e[s]=z(i[s]))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}return Array.isArray(t)?t.map(z):t}function K(){if(!("fetch"in d()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function V(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(""+t)}function Q(){if(!K())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var Y,Z,tt,nt=d(),rt={},it={};function et(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(rt[t.type]=rt[t.type]||[],rt[t.type].push(t.callback),function(t){if(!it[t])switch(it[t]=!0,t){case"console":"console"in nt&&["debug","info","warn","error","log","assert"].forEach((function(t){t in nt.console&&J(nt.console,t,(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];ot("console",{args:r,level:t}),n&&Function.prototype.apply.call(n,nt.console,r)}}))}));break;case"dom":!function(){if("document"in nt){var t=ot.bind(null,"dom"),n=ct(t,!0);nt.document.addEventListener("click",n,!1),nt.document.addEventListener("keypress",n,!1),["EventTarget","Node"].forEach((function(n){var r=nt[n]&&nt[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(J(r,"addEventListener",(function(n){return function(r,i,e){if("click"===r||"keypress"==r)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=o[r]=o[r]||{refCount:0};if(!u.handler){var s=ct(t);u.handler=s,n.call(this,r,s,e)}u.refCount+=1}catch(t){}return n.call(this,r,i,e)}})),J(r,"removeEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var e=this.__sentry_instrumentation_handlers__||{},o=e[n];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,n,o.handler,i),o.handler=void 0,delete e[n]),0===Object.keys(e).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,n,r,i)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in nt){var t=[],n=[],r=XMLHttpRequest.prototype;J(r,"open",(function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var o=this,u=i[1];o.__sentry_xhr__={method:b(i[0])?i[0].toUpperCase():i[0],url:i[1]},b(u)&&"POST"===o.__sentry_xhr__.method&&u.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(t){}try{var r=t.indexOf(o);if(-1!==r){t.splice(r);var e=n.splice(r)[0];o.__sentry_xhr__&&void 0!==e[0]&&(o.__sentry_xhr__.body=e[0])}}catch(t){}ot("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?J(o,"onreadystatechange",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return s(),t.apply(o,n)}})):o.addEventListener("readystatechange",s),r.apply(o,i)}})),J(r,"send",(function(r){return function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return t.push(this),n.push(i),ot("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),r.apply(this,i)}}))}}();break;case"fetch":(function(){if(!K())return!1;var t=d();if(V(t.fetch))return!0;var n=!1,r=t.document;if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i),i.contentWindow&&i.contentWindow.fetch&&(n=V(i.contentWindow.fetch)),r.head.removeChild(i)}catch(t){C.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return n})()&&J(nt,"fetch",(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={args:n,fetchData:{method:ut(n),url:st(n)},startTimestamp:Date.now()};return ot("fetch",c({},i)),t.apply(nt,n).then((function(t){return ot("fetch",c(c({},i),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw ot("fetch",c(c({},i),{endTimestamp:Date.now(),error:t})),t}))}}));break;case"history":!function(){if(function(){var t=d(),n=t.chrome;return!(n&&n.app&&n.app.runtime||!("history"in t)||!t.history.pushState||!t.history.replaceState)}()){var t=nt.onpopstate;nt.onpopstate=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=nt.location.href,e=Y;if(Y=i,ot("history",{from:e,to:i}),t)try{return t.apply(this,n)}catch(t){}},J(nt.history,"pushState",n),J(nt.history,"replaceState",n)}function n(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var e=Y,o=i+"";Y=o,ot("history",{from:e,to:o})}return t.apply(this,n)}}}();break;case"error":ft=nt.onerror,nt.onerror=function(t,n,r,i,e){return ot("error",{column:i,error:e,line:r,msg:t,url:n}),!!ft&&ft.apply(this,arguments)};break;case"unhandledrejection":ht=nt.onunhandledrejection,nt.onunhandledrejection=function(t){return ot("unhandledrejection",t),!ht||ht.apply(this,arguments)};break;default:C.warn("unknown instrumentation type:",t)}}(t.type))}function ot(t,n){var r,i;if(t&&rt[t])try{for(var e=a(rt[t]||[]),o=e.next();!o.done;o=e.next()){var u=o.value;try{u(n)}catch(n){C.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+L(u)+"\nError: "+n)}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}}function ut(t){return void 0===t&&(t=[]),"Request"in nt&&k(t[0],Request)&&t[0].method?(t[0].method+"").toUpperCase():t[1]&&t[1].method?(t[1].method+"").toUpperCase():"GET"}function st(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in nt&&k(t[0],Request)?t[0].url:t[0]+""}function ct(t,n){return void 0===n&&(n=!1),function(r){if(r&&tt!==r&&!function(t){if("keypress"!==t.type)return!1;try{var n=t.target;if(!n||!n.tagName)return!0;if("INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable)return!1}catch(t){}return!0}(r)){var i="keypress"===r.type?"input":r.type;(void 0===Z||function(t,n){if(!t)return!0;if(t.type!==n.type)return!0;try{if(t.target!==n.target)return!0}catch(t){}return!1}(tt,r))&&(t({event:r,name:i,global:n}),tt=r),clearTimeout(Z),Z=nt.setTimeout((function(){Z=void 0}),1e3)}}}var at,ft=null,ht=null;function vt(){var t=d(),n=t.crypto||t.msCrypto;if(void 0!==n&&n.getRandomValues){var r=new Uint16Array(8);n.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(t){for(var n=t.toString(16);n.length<4;)n="0"+n;return n};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)}))}function lt(t){if(!t)return{};var n=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return n?{host:n[4],path:n[5],protocol:n[2],relative:n[5]+(n[6]||"")+(n[8]||"")}:{}}function dt(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var n=t.exception.values[0];return n.type&&n.value?n.type+": "+n.value:n.type||n.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function pt(t,n,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||n||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function yt(t,n){var r;if(t.exception&&t.exception.values){var i=t.exception.values[0],e=i.mechanism;if(i.mechanism=c(c(c({},{type:"generic",handled:!0}),e),n),n&&"data"in n){var o=c(c({},null===(r=e)||void 0===r?void 0:r.data),n.data);i.mechanism.data=o}}}function mt(t){var n;if(null===(n=t)||void 0===n?void 0:n.__sentry_captured__)return!0;try{Object.defineProperty(t,"__sentry_captured__",{value:!0})}catch(t){}return!1}!function(t){t.PENDING="PENDING",t.RESOLVED="RESOLVED",t.REJECTED="REJECTED"}(at||(at={}));var bt=function(){function t(t){var n=this;this._state=at.PENDING,this._handlers=[],this._resolve=function(t){n._setResult(at.RESOLVED,t)},this._reject=function(t){n._setResult(at.REJECTED,t)},this._setResult=function(t,r){n._state===at.PENDING&&(x(r)?r.then(n._resolve,n._reject):(n._state=t,n._value=r,n._executeHandlers()))},this._attachHandler=function(t){n._handlers=n._handlers.concat(t),n._executeHandlers()},this._executeHandlers=function(){if(n._state!==at.PENDING){var t=n._handlers.slice();n._handlers=[],t.forEach((function(t){t.done||(n._state===at.RESOLVED&&t.onfulfilled&&t.onfulfilled(n._value),n._state===at.REJECTED&&t.onrejected&&t.onrejected(n._value),t.done=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.resolve=function(n){return new t((function(t){t(n)}))},t.reject=function(n){return new t((function(t,r){r(n)}))},t.all=function(n){return new t((function(r,i){if(Array.isArray(n))if(0!==n.length){var e=n.length,o=[];n.forEach((function(n,u){t.resolve(n).then((function(t){o[u]=t,0==(e-=1)&&r(o)})).then(null,i)}))}else r([]);else i(new TypeError("Promise.all requires an array as input."))}))},t.prototype.then=function(n,r){var i=this;return new t((function(t,e){i._attachHandler({done:!1,onfulfilled:function(r){if(n)try{return void t(n(r))}catch(t){return void e(t)}else t(r)},onrejected:function(n){if(r)try{return void t(r(n))}catch(t){return void e(t)}else e(n)}})}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(n){var r=this;return new t((function(t,i){var e,o;return r.then((function(t){o=!1,e=t,n&&n()}),(function(t){o=!0,e=t,n&&n()})).then((function(){o?i(e):t(e)}))}))},t.prototype.toString=function(){return"[object SyncPromise]"},t}(),wt=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},t.prototype.add=function(t){var n=this;if(!this.isReady())return bt.reject(new D("Not adding Promise due to buffer limit reached."));var r=t();return-1===this._buffer.indexOf(r)&&this._buffer.push(r),r.then((function(){return n.remove(r)})).then(null,(function(){return n.remove(r).then(null,(function(){}))})),r},t.prototype.remove=function(t){return this._buffer.splice(this._buffer.indexOf(t),1)[0]},t.prototype.length=function(){return this._buffer.length},t.prototype.drain=function(t){var n=this;return new bt((function(r){var i=setTimeout((function(){t&&t>0&&r(!1)}),t);bt.all(n._buffer).then((function(){clearTimeout(i),r(!0)})).then(null,(function(){r(!0)}))}))},t}(),gt={nowSeconds:function(){return Date.now()/1e3}},Et=v()?function(){try{return module.require("perf_hooks").performance}catch(t){return}}():function(){var t=d().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),jt=void 0===Et?gt:{nowSeconds:function(){return(Et.timeOrigin+Et.now())/1e3}},xt=gt.nowSeconds.bind(gt),kt=jt.nowSeconds.bind(jt);!function(){var t=d().performance;if(t&&t.now)t.now(),Date.now()}();var Ot=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(n){var r=new t;return n&&(r._breadcrumbs=h(n._breadcrumbs),r._tags=c({},n._tags),r._extra=c({},n._extra),r._contexts=c({},n._contexts),r._user=n._user,r._level=n._level,r._span=n._span,r._session=n._session,r._transactionName=n._transactionName,r._fingerprint=n._fingerprint,r._eventProcessors=h(n._eventProcessors),r._requestSession=n._requestSession),r},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=c(c({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,n){var r;return this._tags=c(c({},this._tags),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=c(c({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,n){var r;return this._extra=c(c({},this._extra),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,n){var r;return null===n?delete this._contexts[t]:this._contexts=c(c({},this._contexts),((r={})[t]=n,r)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,n,r,i,e=this.getSpan();return(null===(t=e)||void 0===t?void 0:t.transaction)?null===(n=e)||void 0===n?void 0:n.transaction:(null===(i=null===(r=e)||void 0===r?void 0:r.spanRecorder)||void 0===i?void 0:i.spans[0])?e.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(n){if(!n)return this;if("function"==typeof n){var r=n(this);return r instanceof t?r:this}return n instanceof t?(this._tags=c(c({},this._tags),n._tags),this._extra=c(c({},this._extra),n._extra),this._contexts=c(c({},this._contexts),n._contexts),n._user&&Object.keys(n._user).length&&(this._user=n._user),n._level&&(this._level=n._level),n._fingerprint&&(this._fingerprint=n._fingerprint),n._requestSession&&(this._requestSession=n._requestSession)):g(n)&&(n=n,this._tags=c(c({},this._tags),n.tags),this._extra=c(c({},this._extra),n.extra),this._contexts=c(c({},this._contexts),n.contexts),n.user&&(this._user=n.user),n.level&&(this._level=n.level),n.fingerprint&&(this._fingerprint=n.fingerprint),n.requestSession&&(this._requestSession=n.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,n){var r="number"==typeof n?Math.min(n,100):100;if(r<=0)return this;var i=c({timestamp:xt()},t);return this._breadcrumbs=h(this._breadcrumbs,[i]).slice(-r),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,n){var r;if(this._extra&&Object.keys(this._extra).length&&(t.extra=c(c({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=c(c({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=c(c({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=c(c({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=c({trace:this._span.getTraceContext()},t.contexts);var i=null===(r=this._span.transaction)||void 0===r?void 0:r.name;i&&(t.tags=c({transaction:i},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=h(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(h(_t(),this._eventProcessors),t,n)},t.prototype._notifyEventProcessors=function(t,n,r,i){var e=this;return void 0===i&&(i=0),new bt((function(o,u){var s=t[i];if(null===n||"function"!=typeof s)o(n);else{var a=s(c({},n),r);x(a)?a.then((function(n){return e._notifyEventProcessors(t,n,r,i+1).then(o)})).then(null,u):e._notifyEventProcessors(t,a,r,i+1).then(o).then(null,u)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(n){n(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function _t(){var t=d();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function St(t){_t().push(t)}var Dt=function(){function t(t){this.errors=0,this.sid=vt(),this.duration=0,this.status=i.Ok,this.init=!0,this.ignoreDuration=!1;var n=kt();this.timestamp=n,this.started=n,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||kt(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:vt()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var n=this.timestamp-this.started;this.duration=n>=0?n:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===i.Ok?this.update({status:i.Exited}):this.update()},t.prototype.toJSON=function(){return z({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:z({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),Tt=function(){function t(t,n,r){void 0===n&&(n=new Ot),void 0===r&&(r=4),this._version=r,this._stack=[{}],this.getStackTop().scope=n,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=Ot.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},t.prototype.withScope=function(t){var n=this.pushScope();try{t(n)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,n){var r=this._lastEventId=vt(),i=n;if(!n){var e=void 0;try{throw Error("Sentry syntheticException")}catch(t){e=t}i={originalException:t,syntheticException:e}}return this._invokeClient("captureException",t,c(c({},i),{event_id:r})),r},t.prototype.captureMessage=function(t,n,r){var i=this._lastEventId=vt(),e=r;if(!r){var o=void 0;try{throw Error(t)}catch(t){o=t}e={originalException:t,syntheticException:o}}return this._invokeClient("captureMessage",t,n,c(c({},e),{event_id:i})),i},t.prototype.captureEvent=function(t,n){var r=vt();return"transaction"!==t.type&&(this._lastEventId=r),this._invokeClient("captureEvent",t,c(c({},n),{event_id:r})),r},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,n){var r=this.getStackTop(),i=r.scope,e=r.client;if(i&&e){var o=e.getOptions&&e.getOptions()||{},u=o.beforeBreadcrumb,s=void 0===u?null:u,a=o.maxBreadcrumbs,f=void 0===a?100:a;if(!(f<=0)){var h=xt(),v=c({timestamp:h},t),l=s?q((function(){return s(v,n)})):v;null!==l&&i.addBreadcrumb(l,f)}}},t.prototype.setUser=function(t){var n=this.getScope();n&&n.setUser(t)},t.prototype.setTags=function(t){var n=this.getScope();n&&n.setTags(t)},t.prototype.setExtras=function(t){var n=this.getScope();n&&n.setExtras(t)},t.prototype.setTag=function(t,n){var r=this.getScope();r&&r.setTag(t,n)},t.prototype.setExtra=function(t,n){var r=this.getScope();r&&r.setExtra(t,n)},t.prototype.setContext=function(t,n){var r=this.getScope();r&&r.setContext(t,n)},t.prototype.configureScope=function(t){var n=this.getStackTop(),r=n.scope;r&&n.client&&t(r)},t.prototype.run=function(t){var n=Rt(this);try{t(this)}finally{Rt(n)}},t.prototype.getIntegration=function(t){var n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(n){return C.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,n){return this._callExtensionMethod("startTransaction",t,n)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t,n,r,i,e;null===(r=null===(n=null===(t=this.getStackTop())||void 0===t?void 0:t.scope)||void 0===n?void 0:n.getSession())||void 0===r||r.close(),this._sendSessionUpdate(),null===(e=null===(i=this.getStackTop())||void 0===i?void 0:i.scope)||void 0===e||e.setSession()},t.prototype.startSession=function(t){var n=this.getStackTop(),r=n.scope,e=n.client,o=e&&e.getOptions()||{},u=o.release,s=o.environment,a=(d().navigator||{}).userAgent,f=new Dt(c(c(c({release:u,environment:s},r&&{user:r.getUser()}),a&&{userAgent:a}),t));if(r){var h=r.getSession&&r.getSession();h&&h.status===i.Ok&&h.update({status:i.Exited}),this.endSession(),r.setSession(f)}return f},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),n=t.scope,r=t.client;if(n){var i=n.getSession&&n.getSession();i&&r&&r.captureSession&&r.captureSession(i)}},t.prototype._invokeClient=function(t){for(var n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var e=this.getStackTop(),o=e.scope,u=e.client;u&&u[t]&&(n=u)[t].apply(n,h(r,[o]))},t.prototype._callExtensionMethod=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=Nt(),e=i.__SENTRY__;if(e&&e.extensions&&"function"==typeof e.extensions[t])return e.extensions[t].apply(this,n);C.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function Nt(){var t=d();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function Rt(t){var n=Nt(),r=At(n);return Ct(n,t),r}function It(){var t=Nt();return qt(t)&&!At(t).isOlderThan(4)||Ct(t,new Tt),v()?function(t){var n,r,i;try{var e=null===(i=null===(r=null===(n=Nt().__SENTRY__)||void 0===n?void 0:n.extensions)||void 0===r?void 0:r.domain)||void 0===i?void 0:i.active;if(!e)return At(t);if(!qt(e)||At(e).isOlderThan(4)){var o=At(t).getStackTop();Ct(e,new Tt(o.client,Ot.clone(o.scope)))}return At(e)}catch(n){return At(t)}}(t):At(t)}function qt(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function At(t){return t&&t.__SENTRY__&&t.__SENTRY__.hub||(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=new Tt),t.__SENTRY__.hub}function Ct(t,n){return!!t&&(t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.hub=n,!0)}function Mt(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=It();if(i&&i[t])return i[t].apply(i,h(n));throw Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function Lt(t,n){var r;try{throw Error("Sentry syntheticException")}catch(t){r=t}return Mt("captureException",t,{captureContext:n,originalException:t,syntheticException:r})}function Ut(t){Mt("withScope",t)}var Ht=function(){function t(t,n,r){void 0===n&&(n={}),this.dsn=t,this._dsnObject=new N(t),this.metadata=n,this._tunnel=r}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){var t=this.getDsn();return(t.protocol?t.protocol+":":"")+"//"+t.host+(t.port?":"+t.port:"")+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this.forceEnvelope()?this._tunnel:this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this.getDsn();return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,n){var r=this.getDsn(),i=["Sentry sentry_version=7"];return i.push("sentry_client="+t+"/"+n),i.push("sentry_key="+r.publicKey),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var n=this.getDsn(),r=this.getBaseApiEndpoint()+"embed/error-page/",i=[];for(var e in i.push("dsn="+n),t)if("dsn"!==e)if("user"===e){if(!t.user)continue;t.user.name&&i.push("name="+encodeURIComponent(t.user.name)),t.user.email&&i.push("email="+encodeURIComponent(t.user.email))}else i.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return i.length?r+"?"+i.join("&"):r},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return this._tunnel?this._tunnel:""+this.getBaseApiEndpoint()+this.getDsn().projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){return function(t){return Object.keys(t).map((function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t[n])})).join("&")}({sentry_key:this.getDsn().publicKey,sentry_version:"7"})},t}(),Pt=[];function Jt(t){return t.reduce((function(t,n){return t.every((function(t){return n.name!==t.name}))&&t.push(n),t}),[])}var Ft="Not capturing exception because it's already been captured.",Xt=function(){function t(t,n){this._integrations={},this._numProcessing=0,this._backend=new t(n),this._options=n,n.dsn&&(this._dsn=new N(n.dsn))}return t.prototype.captureException=function(t,n,r){var i=this;if(!mt(t)){var e=n&&n.event_id;return this._process(this._getBackend().eventFromException(t,n).then((function(t){return i._captureEvent(t,n,r)})).then((function(t){e=t}))),e}C.log(Ft)},t.prototype.captureMessage=function(t,n,r,i){var e=this,o=r&&r.event_id,u=w(t)?this._getBackend().eventFromMessage(t+"",n,r):this._getBackend().eventFromException(t,r);return this._process(u.then((function(t){return e._captureEvent(t,r,i)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,n,r){var i;if(!(null===(i=n)||void 0===i?void 0:i.originalException)||!mt(n.originalException)){var e=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then((function(t){e=t}))),e}C.log(Ft)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?C.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):C.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var n=this;return this._isClientDoneProcessing(t).then((function(r){return n.getTransport().close(t).then((function(t){return r&&t}))}))},t.prototype.close=function(t){var n=this;return this.flush(t).then((function(t){return n.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=function(t){var n={};return function(t){var n=t.defaultIntegrations&&h(t.defaultIntegrations)||[],r=t.integrations,i=h(Jt(n));Array.isArray(r)?i=h(i.filter((function(t){return r.every((function(n){return n.name!==t.name}))})),Jt(r)):"function"==typeof r&&(i=r(i),i=Array.isArray(i)?i:[i]);var e=i.map((function(t){return t.name})),o="Debug";return-1!==e.indexOf(o)&&i.push.apply(i,h(i.splice(e.indexOf(o),1))),i}(t).forEach((function(t){n[t.name]=t,function(t){-1===Pt.indexOf(t.name)&&(t.setupOnce(St,It),Pt.push(t.name),C.log("Integration installed: "+t.name))}(t)})),Object.defineProperty(n,"initialized",{value:!0}),n}(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(n){return C.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,n){var r,e,o=!1,u=!1,s=n.exception&&n.exception.values;if(s){u=!0;try{for(var f=a(s),h=f.next();!h.done;h=f.next()){var v=h.value.mechanism;if(v&&!1===v.handled){o=!0;break}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(e=f.return)&&e.call(f)}finally{if(r)throw r.error}}}var l=t.status===i.Ok;(l&&0===t.errors||l&&o)&&(t.update(c(c({},o&&{status:i.Crashed}),{errors:t.errors||Number(u||o)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var n=this;return new bt((function(r){var i=0,e=setInterval((function(){0==n._numProcessing?(clearInterval(e),r(!0)):(i+=1,t&&i>=t&&(clearInterval(e),r(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,n,r){var i=this,e=this.getOptions().normalizeDepth,o=void 0===e?3:e,u=c(c({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:vt()),timestamp:t.timestamp||xt()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var s=n;r&&r.captureContext&&(s=Ot.clone(s).update(r.captureContext));var a=bt.resolve(u);return s&&(a=s.applyToEvent(u,r)),a.then((function(t){return"number"==typeof o&&o>0?i._normalizeEvent(t,o):t}))},t.prototype._normalizeEvent=function(t,n){if(!t)return null;var r=c(c(c(c(c({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return c(c({},t),t.data&&{data:B(t.data,n)})}))}),t.user&&{user:B(t.user,n)}),t.contexts&&{contexts:B(t.contexts,n)}),t.extra&&{extra:B(t.extra,n)});t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace);var i=this.getOptions()._experiments;return(void 0===i?{}:i).ensureNoCircularStructures?B(r):r},t.prototype._applyClientOptions=function(t){var n=this.getOptions(),r=n.release,i=n.dist,e=n.maxValueLength,o=void 0===e?250:e;"environment"in t||(t.environment="environment"in n?n.environment:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=U(t.message,o));var u=t.exception&&t.exception.values&&t.exception.values[0];u&&u.value&&(u.value=U(u.value,o));var s=t.request;s&&s.url&&(s.url=U(s.url,o))},t.prototype._applyIntegrationsMetadata=function(t){var n=Object.keys(this._integrations);n.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=h(t.sdk.integrations||[],n))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,n,r){return this._processEvent(t,n,r).then((function(t){return t.event_id}),(function(t){C.error(t)}))},t.prototype._processEvent=function(t,n,r){var i,e,o=this,u=this.getOptions(),c=u.beforeSend,a=u.sampleRate,f=this.getTransport();if(!this._isEnabled())return bt.reject(new D("SDK not enabled, will not capture event."));var h="transaction"===t.type;return!h&&"number"==typeof a&&Math.random()>a?(null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,s.SampleRate,"event"),bt.reject(new D("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(t,r,n).then((function(r){var i,e;if(null===r)throw null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,s.EventProcessor,t.type||"event"),new D("An event processor returned null, will not send event.");if(n&&n.data&&!0===n.data.__sentry__||h||!c)return r;var u=c(r,n);return o._ensureBeforeSendRv(u)})).then((function(n){var i,e;if(null===n)throw null===(e=(i=f).recordLostEvent)||void 0===e||e.call(i,s.BeforeSend,t.type||"event"),new D("`beforeSend` returned `null`, will not send event.");var u=r&&r.getSession&&r.getSession();return!h&&u&&o._updateSessionFromEvent(u,n),o._sendEvent(n),n})).then(null,(function(t){if(t instanceof D)throw t;throw o.captureException(t,{data:{__sentry__:!0},originalException:t}),new D("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var n=this;this._numProcessing+=1,t.then((function(t){return n._numProcessing-=1,t}),(function(t){return n._numProcessing-=1,t}))},t.prototype._ensureBeforeSendRv=function(t){var n="`beforeSend` method has to return `null` or a valid event.";if(x(t))return t.then((function(t){if(!g(t)&&null!==t)throw new D(n);return t}),(function(t){throw new D("beforeSend rejected with "+t)}));if(!g(t)&&null!==t)throw new D(n);return t},t}(),$t=function(){function t(){}return t.prototype.sendEvent=function(){return bt.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:u.Skipped})},t.prototype.close=function(){return bt.resolve(!0)},t}(),Wt=function(){function t(t){this._options=t,this._options.dsn||C.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(){throw new D("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(){throw new D("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){C.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){C.error("Error while sending session: "+t)})):C.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new $t},t}();function Bt(t){if(t.metadata&&t.metadata.sdk){var n=t.metadata.sdk;return{name:n.name,version:n.version}}}function Gt(t,n){return n?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||n.name,t.sdk.version=t.sdk.version||n.version,t.sdk.integrations=h(t.sdk.integrations||[],n.integrations||[]),t.sdk.packages=h(t.sdk.packages||[],n.packages||[]),t):t}function zt(t,n){var r=Bt(n),i="aggregates"in t?"sessions":"session";return{body:JSON.stringify(c(c({sent_at:(new Date).toISOString()},r&&{sdk:r}),n.forceEnvelope()&&{dsn:""+n.getDsn()}))+"\n"+JSON.stringify({type:i})+"\n"+JSON.stringify(t),type:i,url:n.getEnvelopeEndpointWithUrlEncodedAuth()}}function Kt(t,n){var r=Bt(n),i=t.type||"event",e="transaction"===i||n.forceEnvelope(),o=t.debug_meta||{},u=o.transactionSampling,s=function(t,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var e=0;for(i=Object.getOwnPropertySymbols(t);e<i.length;e++)n.indexOf(i[e])<0&&Object.prototype.propertyIsEnumerable.call(t,i[e])&&(r[i[e]]=t[i[e]])}return r}(o,["transactionSampling"]),a=u||{},f=a.method,h=a.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var v={body:JSON.stringify(r?Gt(t,n.metadata.sdk):t),type:i,url:e?n.getEnvelopeEndpointWithUrlEncodedAuth():n.getStoreEndpointWithUrlEncodedAuth()};if(e){var l=JSON.stringify(c(c({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),n.forceEnvelope()&&{dsn:""+n.getDsn()})),d=JSON.stringify({type:i,sample_rates:[{id:f,rate:h}]});v.body=l+"\n"+d+"\n"+v.body}return v}var Vt,Qt=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Vt=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.__sentry_original__||this;return Vt.apply(r,t)}},t.id="FunctionToString",t}(),Yt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Zt=function(){function t(n){void 0===n&&(n={}),this._options=n,this.name=t.id}return t.prototype.setupOnce=function(){St((function(n){var r=It();if(!r)return n;var i=r.getIntegration(t);if(i){var e=r.getClient(),o=e?e.getOptions():{},u="function"==typeof i._mergeOptions?i._mergeOptions(o):{};return"function"!=typeof i._shouldDropEvent?n:i._shouldDropEvent(n,u)?null:n}return n}))},t.prototype._shouldDropEvent=function(t,n){return this._isSentryError(t,n)?(C.warn("Event dropped due to being internal Sentry Error.\nEvent: "+dt(t)),!0):this._isIgnoredError(t,n)?(C.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+dt(t)),!0):this._isDeniedUrl(t,n)?(C.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+dt(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0):!this._isAllowedUrl(t,n)&&(C.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+dt(t)+".\nUrl: "+this._getEventFilterUrl(t)),!0)},t.prototype._isSentryError=function(t,n){if(!n.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&"SentryError"===t.exception.values[0].type||!1}catch(t){return!1}},t.prototype._isIgnoredError=function(t,n){return!(!n.ignoreErrors||!n.ignoreErrors.length)&&this._getPossibleEventMessages(t).some((function(t){return n.ignoreErrors.some((function(n){return P(t,n)}))}))},t.prototype._isDeniedUrl=function(t,n){if(!n.denyUrls||!n.denyUrls.length)return!1;var r=this._getEventFilterUrl(t);return!!r&&n.denyUrls.some((function(t){return P(r,t)}))},t.prototype._isAllowedUrl=function(t,n){if(!n.allowUrls||!n.allowUrls.length)return!0;var r=this._getEventFilterUrl(t);return!r||n.allowUrls.some((function(t){return P(r,t)}))},t.prototype._mergeOptions=function(t){return void 0===t&&(t={}),{allowUrls:h(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:h(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:h(this._options.ignoreErrors||[],t.ignoreErrors||[],Yt),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},t.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},r=n.type,i=n.value,e=void 0===i?"":i;return[""+e,(void 0===r?"":r)+": "+e]}catch(n){return C.error("Cannot extract message for event "+dt(t)),[]}return[]},t.prototype._getLastValidUrl=function(t){var n,r;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--){var e=t[i];if("<anonymous>"!==(null===(n=e)||void 0===n?void 0:n.filename)&&"[native code]"!==(null===(r=e)||void 0===r?void 0:r.filename))return e.filename||null}return null},t.prototype._getEventFilterUrl=function(t){try{return t.stacktrace?this._getLastValidUrl(t.stacktrace.frames):t.exception?this._getLastValidUrl(t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames):null}catch(n){return C.error("Cannot extract url for event "+dt(t)),null}},t.id="InboundFilters",t}(),tn=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,en=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,on=/\((\S*)(?::(\d+))(?::(\d+))\)/,un=/Minified React error #\d+;/i;function sn(t){var n=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:un.test(t.message)&&(r=1));try{if(n=function(t){if(!t||!t.stacktrace)return null;for(var n,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,e=t.stacktrace.split("\n"),o=[],u=0;u<e.length;u+=2){var s=null;(n=r.exec(e[u]))?s={url:n[2],func:n[3],args:[],line:+n[1],column:null}:(n=i.exec(e[u]))&&(s={url:n[6],func:n[3]||n[4],args:n[5]?n[5].split(","):[],line:+n[1],column:+n[2]}),s&&(!s.func&&s.line&&(s.func="?"),o.push(s))}return o.length?{message:fn(t),name:t.name,stack:o}:null}(t))return an(n,r)}catch(t){}try{if(n=function(t){var n,r;if(!t||!t.stack)return null;for(var i,e,o,u=[],s=t.stack.split("\n"),c=0;c<s.length;++c){if(e=tn.exec(s[c])){var a=e[2]&&0===e[2].indexOf("native");e[2]&&0===e[2].indexOf("eval")&&(i=on.exec(e[2]))&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);var h=e[2]&&0===e[2].indexOf("address at ")?e[2].substr(11):e[2];o={url:h=(n=f(cn(e[1]||"?",h),2))[1],func:n[0],args:a?[e[2]]:[],line:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}else if(e=rn.exec(s[c]))o={url:e[2],func:e[1]||"?",args:[],line:+e[3],column:e[4]?+e[4]:null};else{if(!(e=nn.exec(s[c])))continue;e[3]&&e[3].indexOf(" > eval")>-1&&(i=en.exec(e[3]))?(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]=""):0!==c||e[5]||void 0===t.columnNumber||(u[0].column=t.columnNumber+1),o={url:h=(r=f(cn(e[1]||"?",h=e[3]),2))[1],func:r[0],args:e[2]?e[2].split(","):[],line:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}!o.func&&o.line&&(o.func="?"),u.push(o)}return u.length?{message:fn(t),name:t.name,stack:u}:null}(t))return an(n,r)}catch(t){}return{message:fn(t),name:t&&t.name,stack:[],failed:!0}}var cn=function(t,n){var r=-1!==t.indexOf("safari-extension"),i=-1!==t.indexOf("safari-web-extension");return r||i?[-1!==t.indexOf("@")?t.split("@")[0]:"?",r?"safari-extension:"+n:"safari-web-extension:"+n]:[t,n]};function an(t,n){try{return c(c({},t),{stack:t.stack.slice(n)})}catch(n){return t}}function fn(t){var n=t&&t.message;return n?n.error&&"string"==typeof n.error.message?n.error.message:n:"No error message"}function hn(t){var n=ln(t.stack),r={type:t.name,value:t.message};return n&&n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function vn(t){return{exception:{values:[hn(t)]}}}function ln(t){if(!t||!t.length)return[];var n=t,r=n[0].func||"",i=n[n.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(n=n.slice(1)),-1!==i.indexOf("sentryWrapped")&&(n=n.slice(0,-1)),n.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||n[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function dn(t,n,r){var i;if(void 0===r&&(r={}),y(t)&&t.error)return vn(sn(t=t.error));if(m(t)||function(t){return"[object DOMException]"===Object.prototype.toString.call(t)}(t)){var e=t;if("stack"in t)i=vn(sn(t));else{var o=e.name||(m(e)?"DOMError":"DOMException"),u=e.message?o+": "+e.message:o;pt(i=pn(u,n,r),u)}return"code"in e&&(i.tags=c(c({},i.tags),{"DOMException.code":""+e.code})),i}return p(t)?i=vn(sn(t)):g(t)||E(t)?(yt(i=function(t,n,r){var i={exception:{values:[{type:E(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+G(t)}]},extra:{__serialized__:X(t)}};if(n){var e=ln(sn(n).stack);i.stacktrace={frames:e}}return i}(t,n,r.rejection),{synthetic:!0}),i):(pt(i=pn(t,n,r),""+t,void 0),yt(i,{synthetic:!0}),i)}function pn(t,n,r){void 0===r&&(r={});var i={message:t};if(r.attachStacktrace&&n){var e=ln(sn(n).stack);i.stacktrace={frames:e}}return i}var yn,mn=d();function bn(){var t,n;if(yn)return yn;if(V(mn.fetch))return yn=mn.fetch.bind(mn);var r=mn.document,i=mn.fetch;if("function"==typeof(null===(t=r)||void 0===t?void 0:t.createElement))try{var e=r.createElement("iframe");e.hidden=!0,r.head.appendChild(e),(null===(n=e.contentWindow)||void 0===n?void 0:n.fetch)&&(i=e.contentWindow.fetch),r.head.removeChild(e)}catch(t){C.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return yn=i.bind(mn)}var wn={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},gn=d(),En=function(){function t(t){var n=this;this.options=t,this._buffer=new wt(30),this._rateLimits={},this._outcomes={},this._api=new Ht(t.dsn,t._metadata,t.tunnel),this.url=this._api.getStoreEndpointWithUrlEncodedAuth(),this.options.sendClientReports&&gn.document&&gn.document.addEventListener("visibilitychange",(function(){"hidden"===gn.document.visibilityState&&n._flushOutcomes()}))}return t.prototype.sendEvent=function(){throw new D("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,n){var r;if(this.options.sendClientReports){var i=wn[n]+":"+t;C.log("Adding outcome: "+i),this._outcomes[i]=(null!=(r=this._outcomes[i])?r:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){C.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var n=this._api.getEnvelopeEndpointWithUrlEncodedAuth(),r=JSON.stringify(c({},this.options.tunnel&&{dsn:""+this._api.getDsn()}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:xt(),discarded_events:Object.keys(t).map((function(n){var r=f(n.split(":"),2);return{reason:r[1],category:r[0],quantity:t[n]}}))});try{!function(t,n){"[object Navigator]"===Object.prototype.toString.call(mn&&mn.navigator)&&"function"==typeof mn.navigator.sendBeacon?mn.navigator.sendBeacon.bind(mn.navigator)(t,n):K()&&function(t){t.then(null,(function(t){console.error(t)}))}(bn()(t,{body:n,method:"POST",credentials:"omit",keepalive:!0}))}(n,r)}catch(t){C.error(t)}}else C.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var n=t.requestType,r=t.response,i=t.headers,e=t.resolve,o=t.reject,s=u.fromHttpCode(r.status);this._handleRateLimit(i)&&C.warn("Too many "+n+" requests, backing off until: "+this._disabledUntil(n)),s!==u.Success?o(r):e({status:s})},t.prototype._disabledUntil=function(t){return this._rateLimits[wn[t]]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var n,r,i,e,o=Date.now(),u=t["x-sentry-rate-limits"],s=t["retry-after"];if(u){try{for(var c=a(u.trim().split(",")),f=c.next();!f.done;f=c.next()){var h=f.value.split(":",2),v=parseInt(h[0],10),l=1e3*(isNaN(v)?60:v);try{for(var d=(i=void 0,a(h[1].split(";"))),p=d.next();!p.done;p=d.next())this._rateLimits[p.value||"all"]=new Date(o+l)}catch(t){i={error:t}}finally{try{p&&!p.done&&(e=d.return)&&e.call(d)}finally{if(i)throw i.error}}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+function(t,n){if(!n)return 6e4;var r=parseInt(""+n,10);if(!isNaN(r))return 1e3*r;var i=Date.parse(""+n);return isNaN(i)?6e4:i-t}(o,s)),!0)},t}(),jn=function(t){function n(n,r){void 0===r&&(r=bn());var i=t.call(this,n)||this;return i._fetch=r,i}return r(n,t),n.prototype.sendEvent=function(t){return this._sendRequest(Kt(t,this._api),t)},n.prototype.sendSession=function(t){return this._sendRequest(zt(t,this._api),t)},n.prototype._sendRequest=function(t,n){var r=this;if(this._isRateLimited(t.type))return this.recordLostEvent(s.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var i={body:t.body,method:"POST",referrerPolicy:Q()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(i,this.options.fetchParameters),void 0!==this.options.headers&&(i.headers=this.options.headers),this._buffer.add((function(){return new bt((function(n,e){r._fetch(t.url,i).then((function(i){var o={"x-sentry-rate-limits":i.headers.get("X-Sentry-Rate-Limits"),"retry-after":i.headers.get("Retry-After")};r._handleResponse({requestType:t.type,response:i,headers:o,resolve:n,reject:e})})).catch(e)}))})).then(void 0,(function(n){throw r.recordLostEvent(n instanceof D?s.QueueOverflow:s.NetworkError,t.type),n}))},n}(En),xn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.sendEvent=function(t){return this._sendRequest(Kt(t,this._api),t)},n.prototype.sendSession=function(t){return this._sendRequest(zt(t,this._api),t)},n.prototype._sendRequest=function(t,n){var r=this;return this._isRateLimited(t.type)?(this.recordLostEvent(s.RateLimitBackoff,t.type),Promise.reject({event:n,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new bt((function(n,i){var e=new XMLHttpRequest;for(var o in e.onreadystatechange=function(){if(4===e.readyState){var o={"x-sentry-rate-limits":e.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":e.getResponseHeader("Retry-After")};r._handleResponse({requestType:t.type,response:e,headers:o,resolve:n,reject:i})}},e.open("POST",t.url),r.options.headers)Object.prototype.hasOwnProperty.call(r.options.headers,o)&&e.setRequestHeader(o,r.options.headers[o]);e.send(t.body)}))})).then(void 0,(function(n){throw r.recordLostEvent(n instanceof D?s.QueueOverflow:s.NetworkError,t.type),n}))},n}(En),kn=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.eventFromException=function(t,n){return function(t,n,r){var i=dn(n,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return yt(i),i.level=o.Error,r&&r.event_id&&(i.event_id=r.event_id),bt.resolve(i)}(this._options,t,n)},n.prototype.eventFromMessage=function(t,n,r){return void 0===n&&(n=o.Info),function(t,n,r,i){void 0===r&&(r=o.Info);var e=pn(n,i&&i.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return e.level=r,i&&i.event_id&&(e.event_id=i.event_id),bt.resolve(e)}(this._options,t,n,r)},n.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var n=c(c({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(n):K()?new jn(n):new xn(n)},n}(Wt),On=d(),_n=0;function Sn(){return _n>0}function Dn(){_n+=1,setTimeout((function(){_n-=1}))}function Tn(t,n,r){if(void 0===n&&(n={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(n){return t}var i=function(){var i=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var e=i.map((function(t){return Tn(t,n)}));return t.handleEvent?t.handleEvent.apply(this,e):t.apply(this,e)}catch(t){throw Dn(),Ut((function(r){r.addEventProcessor((function(t){var r=c({},t);return n.mechanism&&(pt(r,void 0,void 0),yt(r,n.mechanism)),r.extra=c(c({},r.extra),{arguments:i}),r})),Lt(t)})),t}};try{for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e])}catch(t){}t.prototype=t.prototype||{},i.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:i}),Object.defineProperties(i,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.defineProperty(i,"name",{get:function(){return t.name}})}catch(t){}return i}var Nn=function(){function t(n){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=c({onerror:!0,onunhandledrejection:!0},n)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(C.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(C.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var n=this;this._onErrorHandlerInstalled||(et({callback:function(r){var i=r.error,e=It(),o=e.getIntegration(t),u=i&&!0===i.__sentry_own_request__;if(o&&!Sn()&&!u){var s=e.getClient(),c=void 0===i&&b(r.msg)?n._eventFromIncompleteOnError(r.msg,r.url,r.line,r.column):n._enhanceEventWithInitialFrame(dn(i||r.msg,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),r.url,r.line,r.column);yt(c,{handled:!1,type:"onerror"}),e.captureEvent(c,{originalException:i})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var n=this;this._onUnhandledRejectionHandlerInstalled||(et({callback:function(r){var i=r;try{"reason"in r?i=r.reason:"detail"in r&&"reason"in r.detail&&(i=r.detail.reason)}catch(t){}var e=It(),u=e.getIntegration(t),s=i&&!0===i.__sentry_own_request__;if(!u||Sn()||s)return!0;var c=e.getClient(),a=w(i)?n._eventFromRejectionWithPrimitive(i):dn(i,void 0,{attachStacktrace:c&&c.getOptions().attachStacktrace,rejection:!0});a.level=o.Error,yt(a,{handled:!1,type:"onunhandledrejection"}),e.captureEvent(a,{originalException:i})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,n,r,i){var e,o=y(t)?t.message:t,u=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return u&&(e=u[1],o=u[2]),this._enhanceEventWithInitialFrame({exception:{values:[{type:e||"Error",value:o}]}},n,r,i)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+t}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,n,r,i){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var e=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,u=b(n)&&n.length>0?n:function(){var t=d();try{return t.document.location.href}catch(t){return""}}();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:e,filename:u,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}(),Rn=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],In=function(){function t(n){this.name=t.id,this._options=c({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},n)}return t.prototype.setupOnce=function(){var t=d();this._options.setTimeout&&J(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&J(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&J(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&J(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Rn).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n[0];return n[0]=Tn(i,{mechanism:{data:{function:L(t)},handled:!0,type:"instrument"}}),t.apply(this,n)}},t.prototype._wrapRAF=function(t){return function(n){return t.call(this,Tn(n,{mechanism:{data:{function:"requestAnimationFrame",handler:L(t)},handled:!0,type:"instrument"}}))}},t.prototype._wrapEventTarget=function(t){var n=d(),r=n[t]&&n[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(J(r,"addEventListener",(function(n){return function(r,i,e){try{"function"==typeof i.handleEvent&&(i.handleEvent=Tn(i.handleEvent.bind(i),{mechanism:{data:{function:"handleEvent",handler:L(i),target:t},handled:!0,type:"instrument"}}))}catch(t){}return n.call(this,r,Tn(i,{mechanism:{data:{function:"addEventListener",handler:L(i),target:t},handled:!0,type:"instrument"}}),e)}})),J(r,"removeEventListener",(function(t){return function(n,r,i){var e,o=r;try{var u=null===(e=o)||void 0===e?void 0:e.__sentry_wrapped__;u&&t.call(this,n,u,i)}catch(t){}return t.call(this,n,o,i)}})))},t.prototype._wrapXHR=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=this,e=["onload","onerror","onprogress","onreadystatechange"];return e.forEach((function(t){t in i&&"function"==typeof i[t]&&J(i,t,(function(n){var r={mechanism:{data:{function:t,handler:L(n)},handled:!0,type:"instrument"}};return n.__sentry_original__&&(r.mechanism.data.handler=L(n.__sentry_original__)),Tn(n,r)}))})),t.apply(this,n)}},t.id="TryCatch",t}(),qn=function(){function t(n){this.name=t.id,this._options=c({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},n)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&It().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:dt(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._consoleBreadcrumb.apply(t,h(n))},type:"console"}),this._options.dom&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._domBreadcrumb.apply(t,h(n))},type:"dom"}),this._options.xhr&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._xhrBreadcrumb.apply(t,h(n))},type:"xhr"}),this._options.fetch&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._fetchBreadcrumb.apply(t,h(n))},type:"fetch"}),this._options.history&&et({callback:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t._historyBreadcrumb.apply(t,h(n))},type:"history"})},t.prototype._consoleBreadcrumb=function(t){var n={category:"console",data:{arguments:t.args,logger:"console"},level:o.fromString(t.level),message:H(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: "+(H(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}It().addBreadcrumb(n,{input:t.args,level:t.level})},t.prototype._domBreadcrumb=function(t){var n,r="object"==typeof this._options.dom?this._options.dom.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=O(t.event.target?t.event.target:t.event,r)}catch(t){n="<unknown>"}0!==n.length&&It().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,e=n.status_code,o=n.body;It().addBreadcrumb({category:"xhr",data:{method:r,url:i,status_code:e},type:"http"},{xhr:t.xhr,input:o})}},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?It().addBreadcrumb({category:"fetch",data:t.fetchData,level:o.Error,type:"http"},{data:t.error,input:t.args}):It().addBreadcrumb({category:"fetch",data:c(c({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var n=d(),r=t.from,i=t.to,e=lt(n.location.href),o=lt(r),u=lt(i);o.path||(o=e),e.protocol===u.protocol&&e.host===u.host&&(i=u.relative),e.protocol===o.protocol&&e.host===o.host&&(r=o.relative),It().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},t.id="Breadcrumbs",t}(),An=function(){function t(n){void 0===n&&(n={}),this.name=t.id,this._key=n.key||"cause",this._limit=n.limit||5}return t.prototype.setupOnce=function(){St((function(n,r){var i=It().getIntegration(t);if(i){var e=i._handler&&i._handler.bind(i);return"function"==typeof e?e(n,r):n}return n}))},t.prototype._handler=function(t,n){if(!(t.exception&&t.exception.values&&n&&k(n.originalException,Error)))return t;var r=this._walkErrorTree(n.originalException,this._key);return t.exception.values=h(r,t.exception.values),t},t.prototype._walkErrorTree=function(t,n,r){if(void 0===r&&(r=[]),!k(t[n],Error)||r.length+1>=this._limit)return r;var i=hn(sn(t[n]));return this._walkErrorTree(t[n],n,h([i],r))},t.id="LinkedErrors",t}(),Cn=d(),Mn=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){St((function(n){var r,i,e;if(It().getIntegration(t)){if(!Cn.navigator&&!Cn.location&&!Cn.document)return n;var o=(null===(r=n.request)||void 0===r?void 0:r.url)||(null===(i=Cn.location)||void 0===i?void 0:i.href),u=(Cn.document||{}).referrer,s=(Cn.navigator||{}).userAgent,a=c(c(c({},null===(e=n.request)||void 0===e?void 0:e.headers),u&&{Referer:u}),s&&{"User-Agent":s}),f=c(c({},o&&{url:o}),{headers:a});return c(c({},n),{request:f})}return n}))},t.id="UserAgent",t}(),Ln=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(n,r){n((function(n){var i=r().getIntegration(t);if(i){try{if(i._shouldDropEvent(n,i._previousEvent))return C.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return i._previousEvent=n}return i._previousEvent=n}return n}))},t.prototype._shouldDropEvent=function(t,n){return!(!n||!this._isSameMessageEvent(t,n)&&!this._isSameExceptionEvent(t,n))},t.prototype._isSameMessageEvent=function(t,n){var r=t.message,i=n.message;return!(!r&&!i||r&&!i||!r&&i||r!==i||!this._isSameFingerprint(t,n)||!this._isSameStacktrace(t,n))},t.prototype._getFramesFromEvent=function(t){var n=t.exception;if(n)try{return n.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype._isSameStacktrace=function(t,n){var r=this._getFramesFromEvent(t),i=this._getFramesFromEvent(n);if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;if((i=i).length!==(r=r).length)return!1;for(var e=0;e<i.length;e++){var o=i[e],u=r[e];if(o.filename!==u.filename||o.lineno!==u.lineno||o.colno!==u.colno||o.function!==u.function)return!1}return!0},t.prototype._getExceptionFromEvent=function(t){return t.exception&&t.exception.values&&t.exception.values[0]},t.prototype._isSameExceptionEvent=function(t,n){var r=this._getExceptionFromEvent(n),i=this._getExceptionFromEvent(t);return!!(r&&i&&r.type===i.type&&r.value===i.value&&this._isSameFingerprint(t,n)&&this._isSameStacktrace(t,n))},t.prototype._isSameFingerprint=function(t,n){var r=t.fingerprint,i=n.fingerprint;if(!r&&!i)return!0;if(r&&!i||!r&&i)return!1;r=r,i=i;try{return!(r.join("")!==i.join(""))}catch(t){return!1}},t.id="Dedupe",t}(),Un=function(t){function n(n){return void 0===n&&(n={}),n._metadata=n._metadata||{},n._metadata.sdk=n._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.15.0"}],version:"6.15.0"},t.call(this,kn,n)||this}return r(n,t),n.prototype.showReportDialog=function(t){void 0===t&&(t={}),d().document&&(this._isEnabled()?function(t){if(void 0===t&&(t={}),On.document)if(t.eventId)if(t.dsn){var n=On.document.createElement("script");n.async=!0,n.src=new Ht(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(n.onload=t.onLoad);var r=On.document.head||On.document.body;r&&r.appendChild(n)}else C.error("Missing dsn option in showReportDialog call");else C.error("Missing eventId option in showReportDialog call")}(c(c({},t),{dsn:t.dsn||this.getDsn()})):C.error("Trying to call showReportDialog with Sentry Client disabled"))},n.prototype._prepareEvent=function(n,r,i){return n.platform=n.platform||"javascript",t.prototype._prepareEvent.call(this,n,r,i)},n.prototype._sendEvent=function(n){var r=this.getIntegration(qn);r&&r.addSentryBreadcrumb(n),t.prototype._sendEvent.call(this,n)},n}(Xt),Hn=[new Zt,new Qt,new In,new qn,new Nn,new An,new Ln,new Mn];const Pn=t=>{var n,r;return null!==(r=null===(n=null==t?void 0:t.stacktrace)||void 0===n?void 0:n.frames)&&void 0!==r?r:[]},Jn=t=>{const n=null==t?void 0:t.filename;return!!n&&n.includes("vviinn")},Fn=t=>(t=>{var n,r;return null!==(r=null===(n=null==t?void 0:t.exception)||void 0===n?void 0:n.values)&&void 0!==r?r:[]})(t).map(Pn).flat().some(Jn)?t:null,Xn=function(){!function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Hn),void 0===t.release){var n=d();n.SENTRY_RELEASE&&n.SENTRY_RELEASE.id&&(t.release=n.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,n){var r;!0===n.debug&&C.enable();var i=It();null===(r=i.getScope())||void 0===r||r.update(n.initialScope);var e=new t(n);i.bindClient(e)}(Un,t),t.autoSessionTracking&&function(){if(void 0!==d().document){var t=It();"function"==typeof t.startSession&&"function"==typeof t.captureSession&&(t.startSession({ignoreDuration:!0}),t.captureSession(),et({callback:function(n){var r=n.from;void 0!==r&&r!==n.to&&(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else C.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://70bcf561598b44148bd3cabc7c142a6c@o1015876.ingest.sentry.io/5983034",release:`${t.packageName}@${t.packageVersion}`,environment:t.environment,tracesSampleRate:0,maxBreadcrumbs:4,beforeSend:Fn,allowUrls:[/https?:\/\/cdn\.jsdelivr\.net\/npm\/vviinn-widgets.+/]})};export{Xn as g}
@@ -1 +0,0 @@
1
- import{r as i,h as t,H as e,g as r}from"./p-bad1809f.js";import{i as o,s,O as a}from"./p-7e2f542c.js";import{s as n}from"./p-ee46fc83.js";import{e as d,f as l,g as p,h as c,v as g,b as h,i as m}from"./p-9e5adc42.js";import"./p-11f61564.js";let v=class{constructor(t){i(this,t),this.apiPath="https://api.vviinn.com",this.active=!1,this.currencySign="€",this.locale="de-DE",this.slidePosition=0,this.width=0,this.wrongImageFormat=!1,this.imageSource=null}activeWatcher(i){i?(this.overflow=document.body.style.overflow,document.body.style.overflow="hidden",this.trackOpenEvent()):document.body.style.overflow=this.overflow}trackRecommendationView({detail:i}){const t=d(Object.assign({session_id:this.uiSessionId},i));this.trackingApi.trackEvent(t)}trackRecommendationClick({detail:i}){const t=l(Object.assign({sessionId:this.uiSessionId},i));this.trackingApi.trackEvent(t).finally((()=>{const t=o.results.find((t=>t.productId===i.product));t&&t.deeplink&&(window.location.href=t.deeplink)}))}trachSearchAreaChanges(){const i=p({session_id:this.uiSessionId,source:this.imageSource,search_area:"manual-selection"});this.trackingApi.trackEvent(i)}trackDetectedObject(){const i=p({session_id:this.uiSessionId,source:this.imageSource,search_area:"attention-point"});this.trackingApi.trackEvent(i)}trackFilter({detail:i}){const t=c({session_id:this.uiSessionId,source:this.imageSource,kind:"category",action:i});this.trackingApi.trackEvent(t)}componentWillLoad(){n(this,this.el)}connectedCallback(){s.apiPath=this.apiPath,s.currencySign=this.currencySign,s.locale=this.locale,o.token=this.token,this.uiSessionId=g()}trackOpenEvent(){this.trackingApi=h(this.apiPath,this.token);const i=m({action:"open",session_id:this.uiSessionId});this.trackingApi.trackEvent(i)}handleImageSelection(i){this.imageSource=i,this.slidePosition=1,this.el.shadowRoot.querySelector("vviinn-overlayed-modal").shadowRoot.querySelector("vviinn-overlay").querySelector("vviinn-modal").shadowRoot.querySelector(".body").scrollTop=0,this.trackInitialSearch()}trackInitialSearch(){const i=p({session_id:this.uiSessionId,source:this.imageSource,search_area:"full"});this.trackingApi.trackEvent(i)}resetState(){this.resetScroll("onboarding-block"),this.slidePosition=0,o.image=a.none,o.imageUrl=a.none,o.imageBounds=a.none,o.searchArea=a.none,o.results=[],o.filters=[],o.detectedObjects=[],o.activeIonLink=void 0,o.rectangleSearchForm=void 0,this.resetScroll("results-block")}haveErrors(){return this.wrongImageFormat||o.serverError}resetScroll(i,t="auto"){this.el.shadowRoot.getElementById(i).scroll({top:0,left:0,behavior:t})}handleModalClose(){this.active=!1,this.resetState(),["onboarding-block","results-block"].forEach((i=>this.resetScroll(i)));const i=m({action:"close",session_id:this.uiSessionId});this.trackingApi.trackEvent(i)}render(){return t(e,null,t("vviinn-overlayed-modal",{class:{"first-screen":0===this.slidePosition},active:this.active,onSecondaryActionClicked:()=>this.resetState(),onModalClosed:()=>this.handleModalClose(),exportparts:"secondary-action, title, close-button, example-images"},t("vviinn-slider",{showBullets:!1,position:this.slidePosition},t("vviinn-slide",{class:{"start-page":!0}},t("div",{class:{error:this.haveErrors(),"start-page_block":!0}},t("vviinn-wrong-format",{class:{hidden:!this.wrongImageFormat},onActionClick:()=>this.wrongImageFormat=!1}),t("vviinn-server-error",{class:{hidden:!o.serverError},onActionClick:()=>o.serverError=!1}),t("vviinn-teaser",{class:{hidden:this.haveErrors()}}),t("vviinn-image-selector",{class:{hidden:this.haveErrors()},onImageSelected:()=>this.handleImageSelection("upload"),onImageSelectedError:()=>this.wrongImageFormat=!0,part:"select-image_button"},t("span",{slot:"upload-button-text",class:"upload-button-content"},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"28",fill:"none"},t("defs",null),t("path",{fill:"#fff","fill-rule":"evenodd",d:"M10.271 3.89A.875.875 0 0111 3.5h7c.293 0 .566.146.728.39l1.49 2.235h3.033a2.625 2.625 0 012.625 2.625V21a2.625 2.625 0 01-2.625 2.625H5.75A2.625 2.625 0 013.125 21V8.75A2.625 2.625 0 015.75 6.125h3.031l1.49-2.235zm1.197 1.36l-1.49 2.235a.875.875 0 01-.729.39H5.75a.875.875 0 00-.875.875V21a.875.875 0 00.875.875h17.5a.875.875 0 00.875-.875V8.75a.875.875 0 00-.875-.875h-3.5a.875.875 0 01-.729-.39l-1.49-2.235h-6.063z","clip-rule":"evenodd"}),t("path",{fill:"#fff","fill-rule":"evenodd",d:"M14.5 11.375a3.062 3.062 0 100 6.125 3.062 3.062 0 000-6.125zm-4.813 3.063a4.812 4.812 0 119.625 0 4.812 4.812 0 01-9.625 0z","clip-rule":"evenodd"})),t("slot",{name:"vviinn-image-upload-button-text"},t("span",null,"Kamera oder Bild auswählen")))),t("vviinn-privacy-badge",{class:{hidden:this.haveErrors()}})),t("div",{id:"onboarding-block",class:"start-page_block"},t("div",{class:"onboarding-wrapper"},t("vviinn-onboarding",null),t("vviinn-example-images",{part:"example-images",onImageSelected:()=>this.handleImageSelection("example"),onImageSelectedError:()=>this.resetScroll("onboarding-block","smooth")})))),t("vviinn-slide",{class:{"results-page":!0,active:1==this.slidePosition}},t("div",{class:"image-wrapper"},t("vviinn-image-view",null),t("div",{class:"filters-wrapper"},t("div",{class:"filters"},o.filters.map((i=>t("search-filters",{filter:i})))))),t("div",{id:"results-block",class:"products-wrapper"},t("div",{class:{"nothing-found":!0,hidden:o.results.length>0}},t("vviinn-empty-results",null),t("vviinn-onboarding",null)),t("div",{class:{hidden:o.results.length<=0,products:!0}},o.results.map(((i,e)=>{var r;return t("vviinn-product-card",{hidden:!0,productTitle:i.title,productId:i.productId,brand:i.brand,deeplink:i.deeplink,price:i.price.actual,salePrice:i.price.sale,imageWidth:160,image:null!==(r=i.image.thumbnail)&&void 0!==r?r:i.image.original,part:"product-card",index:e})}))))))))}get el(){return r(this)}static get watchers(){return{active:["activeWatcher"]}}};v.style=":host{--color-primary-system:#0F62FE;--color-primary-hover-system:#014CDA;--color-icons-system:#2F8EDF;--spacer:8px}:host{display:block}.hidden{visibility:hidden;height:1px}vviinn-overlayed-modal.first-screen::part(title),vviinn-overlayed-modal.first-screen::part(secondary-action){visibility:hidden}.start-page{display:grid;grid-template-columns:repeat(2, 1fr);min-height:580px}.start-page_block{align-content:start;border-right:1px solid #F4F4F4;display:grid;padding:48px}.start-page_block.error{align-content:center}#onboarding-block{border-right:unset;box-sizing:border-box;grid-gap:24px;overflow-y:auto;position:relative;width:100%}vviinn-teaser{margin-bottom:32px;margin-top:-24px}vviinn-image-selector{align-items:center;background:var(--color-primary, var(--color-primary-system));border-color:var(--color-primary, var(--color-primary-system));border-radius:2px;color:white;display:grid;font-size:16px;font-weight:600;height:56px;justify-items:center;margin-bottom:16px;transition:background 0.1s ease-in-out}vviinn-image-selector:hover{background:var(--color-primary-hover, var(--color-primary-hover-system));border-color:var(--color-primary-hover, var(--color-primary-hover-system))}vviinn-image-selector:active{border-color:black}.upload-button-content{display:grid;align-items:center;justify-items:start;justify-content:center;grid-template-columns:-webkit-max-content auto;grid-template-columns:max-content auto;grid-gap:16px}.results-page{display:grid;grid-template-columns:336px auto;box-sizing:border-box}.results-page>*{padding:24px;box-sizing:border-box}.products{align-content:center;align-items:start;box-sizing:border-box;display:grid;grid-gap:32px 16px;grid-template-columns:repeat(auto-fill, minmax(152px, 1fr));justify-items:center;padding:24px;padding-right:0;position:absolute;width:calc(100% - 16px)}.products.hidden{display:none}vviinn-empty-results{width:280px;align-self:center;justify-self:center}.products-wrapper{display:grid;overflow-y:auto;overflow-x:hidden;padding:unset;position:relative;width:100%}.image-wrapper{border-right:1px solid #F4F4F4;display:grid;grid-template-rows:-webkit-min-content 170px;grid-template-rows:min-content 170px;grid-gap:24px;min-width:100%}.onboarding-wrapper{position:absolute;width:100%;padding:48px;box-sizing:border-box;display:grid;grid-gap:64px;padding-bottom:24px}vviinn-product-card{gap:0;width:100%}vviinn-product-card::part(image){border:1px solid #eaeaea;margin-bottom:8px}vviinn-product-card::part(price-container),vviinn-product-card::part(deeplink),vviinn-product-card::part(title){align-self:start}search-filters span{display:none}search-filters::part(filter){background:#F4F4F4;border-radius:4px;border:1px solid #F4F4F4;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px}search-filters::part(show-more-filters){border:1px solid #f4f4f4;border-radius:4px;box-sizing:border-box;color:#161616;font-size:14px;font-weight:600;line-height:20px;padding:6px 16px}search-filters::part(show-more-filters):hover{background:#EAEAEA}search-filters::part(filter):hover{background:#EAEAEA}search-filters::part(filter):focus{outline:none;border:1px solid var(--color-primary, var(--color-primary-system))}search-filters::part(filter active){background:rgba(15, 98, 254, 0.15);color:var(--color-primary, var(--color-primary-system))}.filters-wrapper{overflow:auto}.results-page:not(.active){display:none}.nothing-found{display:grid;grid-gap:64px;justify-self:center;padding-top:64px;padding-bottom:16px;position:absolute;width:60%}@media (max-width: 768px){.start-page_block{padding:24px}.onboarding-wrapper{padding:24px}}@media (max-width: 640px){.start-page{grid-template-rows:-webkit-min-content;grid-template-rows:min-content;grid-template-columns:unset;grid-gap:48px;padding:24px 0 48px 0}}@media (max-width: 640px) and (min-width: 415px){.onboarding-wrapper{position:unset}#onboarding-block{overflow:unset}.start-page.active{height:1px;overflow:auto}}@media (max-width: 415px){.results-page>*{box-sizing:border-box;padding:24px}vviinn-slide{padding-bottom:48px}.start-page_block:last-of-type{border-right:unset;overflow-y:unset;position:static;box-sizing:border-box;width:unset}.start-page_block{padding:0 24px}vviinn-teaser{margin-top:24px}.onboarding-wrapper{position:static;width:unset;padding:unset;box-sizing:border-box}.results-page{grid-template-columns:unset;grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto}.image{margin-bottom:8px}.image-wrapper{grid-template-rows:-webkit-min-content auto;grid-template-rows:min-content auto;width:100%}.products-wrapper{align-content:start;position:static;overflow-y:unset;width:100%;padding-top:0}.products{position:static;padding:0;width:unset;grid-gap:32px 16px;justify-content:center}.nothing-found{position:static;grid-gap:64px;padding:unset;align-content:start;width:unset}}@media (max-width: 320px){.products{grid-template-columns:unset}}vviinn-wrong-format,vviinn-server-error{width:280px;align-self:center;justify-self:center}";export{v as vviinn_vps_widget}
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as e,g as s,c as r}from"./p-bad1809f.js";import{_ as n,O as o,S as a,a as c,E as h,i as l,s as d,c as u,m as p,f as m,g as v,b as g,d as f,A as b,T as w}from"./p-7e2f542c.js";import{C as y}from"./p-118ac907.js";import{p as x}from"./p-11f61564.js";import{c as k,a as C,v as _,b as P,d as R}from"./p-9e5adc42.js";let S=class{constructor(i){t(this,i),this.moveDirection="right",this.contentGroups=[],this.activeContentGroup=0,this.mode="continuity",this.imageWidth=140,this.showScroll=!0,this.recommendations=[],this.columns=0,this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.mutationObserver=new MutationObserver((()=>this.cloneSlottedContent()))}connectedCallback(){this.setItemWidth()}disconnectedCallback(){this.resizeObserver.disconnect()}componentDidLoad(){this.setWidth(),this.processScrollbarWidth(),this.columns=this.getColumnsNumber();const t=this.el.querySelector(".content");this.mutationObserver.observe(t,{subtree:!0,childList:!0}),this.resizeObserver.observe(this.getHostParent())}getItemWidthFromDocument(){return parseInt(getComputedStyle(document.body).getPropertyValue("--vviinn-carousel-image-width"))}setItemWidth(){const t=this.getItemWidthFromDocument(),i=isNaN(t)?this.imageWidth:t;this.el.style.setProperty("--vviinn-carousel-image-width",`${i}px`)}getContentClassMap(){return{content:!0,[this.moveDirection]:!0,[this.mode]:!0,"show-scrollbar":this.showScroll}}handleResize(){this.setWidth(),this.processScrollbarWidth(),this.setItemWidth();const t=this.getColumnsNumber();t!==this.columns&&(this.columns=t)}calculateMoveStep(){const t=this.getContent().map((t=>t.getBoundingClientRect().width));return t.reduce(((t,i)=>t+i),0)/t.length}getHostParent(){return this.el.parentNode.host.parentElement}setWidth(){const t=this.getHostParent();if(!t)return;const i=getComputedStyle(t),e=t.getBoundingClientRect().width-(parseInt(i["padding-right"])+parseInt(i["padding-left"]));this.el.style.setProperty("--vviinn-carousel-content-width",`${e}px`)}getParent(){return this.el.parentNode.host.parentElement}cloneSlottedContent(){this.setWidth()}getActiveGroupIndex(){var t,i;if(!(null===(i=null===(t=this.getContentNode())||void 0===t?void 0:t.getBoundingClientRect())||void 0===i?void 0:i.left))return 0;const e=this.getContentGroups().map((t=>t.getBoundingClientRect().left)).map(((t,i)=>[t,i])).filter((t=>t[0]>=0));return e.length>0?e[0][1]:0}getContentNode(){return this.el.querySelector(".content")}getContent(){const t=this.getContentNode().children;return Array.from(t).map((t=>t))}getColumnsNumber(){const t=getComputedStyle(this.el).getPropertyValue("--vviinn-carousel-columns-internal");return parseInt(t)}getContentGroups(){return Array.from(this.el.querySelectorAll(".items-group"))}showNext(){this.moveDirection="right";const t=this.getContentNode();requestAnimationFrame((()=>{t.scrollTo({top:0,left:t.scrollLeft+this.calculateMoveStep(),behavior:"smooth"})}))}showPrev(){this.moveDirection="left";const t=this.getContentNode();requestAnimationFrame((()=>{t.scrollTo({top:0,left:t.scrollLeft-this.calculateMoveStep(),behavior:"smooth"})}))}scroll(t){const i=this.getContentNode();requestAnimationFrame((()=>{i.scrollTo({top:0,left:this.calculateMoveStep()*t,behavior:"smooth"})}))}processScrollbarWidth(){const t=this.getContentNode();this.el.style.setProperty("--vviinn-progressbar-width",t.clientWidth*((t.scrollLeft+t.clientWidth)/t.scrollWidth)+"px"),this.activeContentGroup=this.getActiveGroupIndex()}showBullets(){return"grid"===this.mode&&this.showScroll}showScrollbar(){return"continuity"===this.mode&&this.showScroll}getClassMap(){return{[this.mode]:!0,"show-scrollbar":this.showScrollbar()}}renderRecommendation(t,e){return i("vviinn-product-card",{part:"product-part",productId:t.productId,productTitle:t.title,deeplink:t.deeplink,image:t.image.thumbnail,brand:t.brand,imageWidth:this.imageWidth,imageRatio:1,price:t.price.actual,salePrice:t.price.sale,responsive:"grid"===this.mode,dimmedBackground:"continuity"===this.mode,index:e})}renderRecommendationGroup(t){return i("div",{class:"items-group"},t)}renderRecommendationGroups(t){return t.map((t=>this.renderRecommendationGroup(t)))}renderRecommendations(){return"grid"===this.mode?this.renderGrid():this.renderRecommendationsElements()}renderRecommendationsElements(){return this.recommendations.map(((t,i)=>this.renderRecommendation(t,i)))}renderGrid(){const t=this.renderRecommendationsElements(),i=n.chunksOf(this.getColumnsNumber())(t);return this.renderRecommendationGroups(i)}renderBullets(){const t=Math.ceil(this.recommendations.length/this.getColumnsNumber());return Array.from(Array(t).keys()).map((t=>i("div",{class:{bullet:!0,active:this.activeContentGroup===t},onClick:()=>this.scroll(t)})))}render(){return i(e,{class:this.getClassMap()},i("div",{class:Object.assign({body:!0},this.getClassMap())},i("button",{class:"prev",onClick:()=>this.showPrev(),part:"carousel-button"},i(y,null)),i("div",{class:this.getContentClassMap(),onScroll:()=>this.processScrollbarWidth()},this.renderRecommendations()),i("button",{class:"next",onClick:()=>this.showNext(),part:"carousel-button"},i(y,null))),this.showBullets()?i("div",{class:"bullets"},this.renderBullets()):"")}get el(){return s(this)}};S.style=":host{--vviinn-progressbar-width:0;--vviinn-carousel-item-width:150px;--vviinn-carousel-columns-internal:var(--vviinn-carousel-columns, 4);--vviinn-carousel-image-width-system:140px}.body{display:flex;position:relative;width:var(--vviinn-carousel-content-width);flex-direction:column}.content-wrapper *{box-sizing:border-box}.content-wrapper{overflow-y:hidden;overflow-x:auto;flex-grow:1}.bullets{margin-top:16px;display:flex;flex-direction:row;grid-gap:24px;justify-content:center}.bullet{width:10px;height:10px;background:#E0E0E0;border-radius:50%;cursor:pointer}.bullet.active{background:#161616}.content:not(.show-scrollbar),.content.grid{scrollbar-color:#fff0 #fff0}.content:not(.show-scrollbar)::-webkit-scrollbar,.content.grid::-webkit-scrollbar{opacity:0}.content{display:flex;flex-direction:row;grid-gap:8px;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-y:hidden;overflow-x:auto;flex-grow:1;padding-bottom:16px}.content.left>*{scroll-snap-align:start}.content.right>*{scroll-snap-align:end}:host(.continuity) button{border-radius:2px}:host(.grid) button{border-radius:50%}button{align-items:center;background-color:white;border:none;box-shadow:0px 2px 6px rgba(0, 0, 0, 0.15);cursor:pointer;display:grid;height:40px;justify-items:center;position:absolute;top:calc(50% - 20px);width:40px;z-index:1;padding:0;margin:0}button{fill:#525252}button.prev svg{transform:rotate(180deg);margin-left:-5px}.prev{left:0}.next{right:0}.items-group{display:grid;grid-gap:16px;grid-template-columns:repeat(var(--vviinn-carousel-columns-internal), 1fr);min-width:100%}vviinn-product-card::part(price-container){text-align:center}:host(.classic) vviinn-product-card::part(title),:host(.classic) vviinn-product-card::part(brand),:host(.classic) vviinn-product-card::part(type){text-align:center}@media (max-width: 480px){:host(.modern) button{display:none}.items-group{grid-template-columns:repeat(2, 1fr)}}";class I{sendImpression(t){var i,e,s;gtag("event","view_item_list",{items:[{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}]})}sendClick(t){var i,e,s;gtag("event","select_content",{content_type:"product",items:[{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",list_name:"VI VPR View",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}]})}}class E{constructor(){ga("require","ec")}convertProduct(t){var i,e,s;return{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",list:"VI VPR View",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}}sendImpression(t){ga("ec:addImpression",this.convertProduct(t))}sendClick(t){var i,e,s;ga("ec:addProduct",{id:t.productId,name:t.title,brand:null!==(i=t.brand)&&void 0!==i?i:"",category:null!==(e=t.productType)&&void 0!==e?e:"",price:Math.min(t.price.actual,null!==(s=t.price.sale)&&void 0!==s?s:1/0)}),ga("ec:setAction","click",{list:"VI VPR View"})}}const V=o.getMonoid(a.first()).concat(c.pipe(o.fromNullable(window.gtag),o.map((()=>new I))),c.pipe(o.fromNullable(window.ga),o.map((()=>new E)))),j=/fit\/\d+\//,A=(t,i)=>c.pipe((t=>c.pipe(t.match(j),h.fromNullable(t),h.map((()=>t))))(t),h.map((t=>t.replace(j,`fit/${i}/`))),h.getOrElse((()=>t))),z=(t,e)=>t.deeplink?i("a",{class:t.part,part:t.part,href:t.deeplink},e):e,O=t=>{var e;const s=new Intl.NumberFormat(t.locale,{minimumFractionDigits:2}).format(t.price),r=`${null!==(e=t.prefix)&&void 0!==e?e:""} ${s} ${t.currency}`;return i("span",{class:"price-amount",part:"price-amount"},r)},D=t=>{const e=i(O,{prefix:t.prefix,currency:t.currency,price:t.price,locale:t.locale});return i("span",{class:"price-container",part:"price-container"},t.salePrice?[i("span",{class:"price-sale",part:"price-sale"},i(O,{prefix:t.prefix,currency:t.currency,price:t.salePrice,locale:t.locale})),i("span",{class:"price-outdated",part:"price-outdated"},e)]:i("span",{class:"price-regular",part:"price-regular"},e))};let $=class{constructor(i){t(this,i),this.recommendationLoad=r(this,"recommendationLoad",7),this.recommendationView=r(this,"recommendationView",7),this.recommendationClick=r(this,"recommendationClick",7),this.productImageLoaded=r(this,"productImageLoaded",7),this.currency=void 0,this.imageRatio=1,this.imageWidth=200,this.locale=void 0,this.pricePrefix=void 0,this.responsive=!1,this.dimmedBackground=!1,this.index=0,this.imageLoaded=!1,this.productData=null,this.intersectionObserver=new IntersectionObserver(this.intersectionCallback.bind(this),{threshold:1})}connectedCallback(){this.productData={product:this.productId,rank:this.index}}intersectionCallback(t){t.some((t=>t.isIntersecting))&&(c.pipe(V,o.map((t=>t.sendImpression(this.getProduct())))),this.recommendationView.emit(this.productData),this.intersectionObserver.disconnect())}componentDidLoad(){this.recommendationLoad.emit(this.productData),this.intersectionObserver.observe(this.el),this.el.shadowRoot.querySelectorAll("a").forEach((t=>t.addEventListener("click",(t=>{t.preventDefault(),t.stopImmediatePropagation(),this.recommendationClick.emit(this.productData),c.pipe(V,o.match((()=>null),(t=>t.sendClick(this.getProduct()))))}))))}getProduct(){return l.results.find((t=>t.productId===this.productId))}renderImage(){const t={width:this.imageWidth,height:this.imageWidth*this.imageRatio,src:this.image,title:this.productTitle,lazy:!1};return this.responsive?((t,e=(()=>{}))=>i("picture",null,i("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image responsive",src:A(t.src,t.width),alt:t.title,onLoad:e})))(t,(()=>this.kek())):((t,e=(()=>{}))=>i("picture",null,i("img",{loading:t.lazy?"lazy":"eager",part:"image",class:"image",width:t.width,height:t.height,src:A(t.src,t.width),alt:t.title,onLoad:e})))(t,(()=>this.kek()))}kek(){this.productImageLoaded.emit(this.productId)}render(){var t,s,r;return i(e,{part:"product-card",class:{dimmed:this.dimmedBackground},exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title"},i(z,{deeplink:this.deeplink,part:"image-link"},this.renderImage()),i(z,{deeplink:this.deeplink,part:"deeplink"},i("span",{class:"title",part:"title"},this.productTitle)),i("span",{class:"brand",part:"brand"},this.brand),i("span",{class:"type",part:"type"},this.productType),i(D,{prefix:null!==(t=this.pricePrefix)&&void 0!==t?t:d.pricePrefix,currency:null!==(s=this.currency)&&void 0!==s?s:d.currencySign,price:this.price,salePrice:this.salePrice,locale:null!==(r=this.locale)&&void 0!==r?r:d.locale}))}get el(){return s(this)}};$.style=':host{align-items:center;display:flex;flex-direction:column;gap:8px;height:100%}.price-container{display:flex;flex-direction:column}.price-sale,.price-regular{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;color:#161616}.price-outdated{font-style:normal;font-weight:normal;font-size:16px;line-height:24px;color:#757575;text-decoration:line-through}.product-type{word-wrap:anywhere}.image{display:grid;align-content:center;-o-object-position:50% 50%;object-position:50% 50%;-o-object-fit:contain;object-fit:contain;text-align:center;box-sizing:border-box}img.responsive{width:100%;height:auto;aspect-ratio:1}.brand,.type{display:none}.title{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#161616;display:-webkit-box;font-size:16px;font-style:normal;font-weight:500;line-height:24px;margin-bottom:8px;overflow:hidden}.deeplink{text-decoration:none}.image-link{display:contents}picture{position:relative;width:100%}:host(.dimmed) picture::before{content:"";width:100%;height:100%;box-sizing:border-box;background:#f7f7f7;display:block;top:0;left:0;position:absolute;mix-blend-mode:multiply}';const T=c.flow((t=>`Bearer ${t}`),(t=>new Headers({Authorization:t})),(t=>({headers:t}))),L=f(b),M=(t,i={})=>x(L(v(),g),m,u(p(t,i))),N=t=>i=>M(`product/${t}/similar-products`,i),W=t=>i=>M(`product/${t}/cross-selling-products`,i);function F(t){return"function"==typeof t}function B(t){const i=t((t=>{Error.call(t),t.stack=(new Error).stack}));return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}const G=B((t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map(((t,i)=>`${i+1}) ${t.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=i}));function q(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class H{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(const t of i)t.remove(this);else i.remove(this);const{initialTeardown:e}=this;if(F(e))try{e()}catch(i){t=i instanceof G?i.errors:[i]}const{_finalizers:s}=this;if(s){this._finalizers=null;for(const i of s)try{K(i)}catch(i){t=null!=t?t:[],i instanceof G?t=[...t,...i.errors]:t.push(i)}}if(t)throw new G(t)}}add(t){var i;if(t&&t!==this)if(this.closed)K(t);else{if(t instanceof H){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(i=this._finalizers)&&void 0!==i?i:[]).push(t)}}_hasParent(t){const{_parentage:i}=this;return i===t||Array.isArray(i)&&i.includes(t)}_addParent(t){const{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(t),i):i?[i,t]:t}_removeParent(t){const{_parentage:i}=this;i===t?this._parentage=null:Array.isArray(i)&&q(i,t)}remove(t){const{_finalizers:i}=this;i&&q(i,t),t instanceof H&&t._removeParent(this)}}H.EMPTY=(()=>{const t=new H;return t.closed=!0,t})();const U=H.EMPTY;function J(t){return t instanceof H||t&&"closed"in t&&F(t.remove)&&F(t.add)&&F(t.unsubscribe)}function K(t){F(t)?t():t.unsubscribe()}const Q={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},X={setTimeout(t,i,...e){const{delegate:s}=X;return(null==s?void 0:s.setTimeout)?s.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=X;return((null==i?void 0:i.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Y(){}const Z=tt("C",void 0,void 0);function tt(t,i,e){return{kind:t,value:i,error:e}}function it(t){t()}class et extends H{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,J(t)&&t.add(this)):this.destination=ht}static create(t,i,e){return new ot(t,i,e)}next(t){this.isStopped?ct(function(t){return tt("N",t,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ct(tt("E",void 0,t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ct(Z,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const st=Function.prototype.bind;function rt(t,i){return st.call(t,i)}class nt{constructor(t){this.partialObserver=t}next(t){const{partialObserver:i}=this;if(i.next)try{i.next(t)}catch(t){at(t)}}error(t){const{partialObserver:i}=this;if(i.error)try{i.error(t)}catch(t){at(t)}else at(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(t){at(t)}}}class ot extends et{constructor(t,i,e){let s;if(super(),F(t)||!t)s={next:null!=t?t:void 0,error:null!=i?i:void 0,complete:null!=e?e:void 0};else{let i;this&&Q.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),s={next:t.next&&rt(t.next,i),error:t.error&&rt(t.error,i),complete:t.complete&&rt(t.complete,i)}):s=t}this.destination=new nt(s)}}function at(t){var i;i=t,X.setTimeout((()=>{const{onUnhandledError:t}=Q;if(!t)throw i;t(i)}))}function ct(t,i){const{onStoppedNotification:e}=Q;e&&X.setTimeout((()=>e(t,i)))}const ht={closed:!0,next:Y,error:function(t){throw t},complete:Y},lt="function"==typeof Symbol&&Symbol.observable||"@@observable";function dt(t){return t}class ut{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new ut;return i.source=this,i.operator=t,i}subscribe(t,i,e){const s=(r=t)&&r instanceof et||function(t){return t&&F(t.next)&&F(t.error)&&F(t.complete)}(r)&&J(r)?t:new ot(t,i,e);var r;return it((()=>{const{operator:t,source:i}=this;s.add(t?t.call(s,i):i?this._subscribe(s):this._trySubscribe(s))})),s}_trySubscribe(t){try{return this._subscribe(t)}catch(i){t.error(i)}}forEach(t,i){return new(i=pt(i))(((i,e)=>{const s=new ot({next:i=>{try{t(i)}catch(t){e(t),s.unsubscribe()}},error:e,complete:i});this.subscribe(s)}))}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[lt](){return this}pipe(...t){return(0===(i=t).length?dt:1===i.length?i[0]:function(t){return i.reduce(((t,i)=>i(t)),t)})(this);var i}toPromise(t){return new(t=pt(t))(((t,i)=>{let e;this.subscribe((t=>e=t),(t=>i(t)),(()=>t(e)))}))}}function pt(t){var i;return null!==(i=null!=t?t:Q.Promise)&&void 0!==i?i:Promise}ut.create=t=>new ut(t);const mt=B((t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}));class vt extends ut{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new gt(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new mt}next(t){it((()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}}))}error(t){it((()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}}))}complete(){it((()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}}))}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:i,isStopped:e,observers:s}=this;return i||e?U:(this.currentObservers=null,s.push(t),new H((()=>{this.currentObservers=null,q(s,t)})))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:e,isStopped:s}=this;i?t.error(e):s&&t.complete()}asObservable(){const t=new ut;return t.source=this,t}}vt.create=(t,i)=>new gt(t,i);class gt extends vt{constructor(t,i){super(),this.destination=t,this.source=i}next(t){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.next)||void 0===e||e.call(i,t)}error(t){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.error)||void 0===e||e.call(i,t)}complete(){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===i||i.call(t)}_subscribe(t){var i,e;return null!==(e=null===(i=this.source)||void 0===i?void 0:i.subscribe(t))&&void 0!==e?e:U}}let ft=class{constructor(i){t(this,i),this.recommendationsLoaded=r(this,"recommendationsLoaded",7),this.blockTitle="Recommended products",this.imageRatio=1,this.imageWidth=300,this.currencySign="€",this.mode="continuity",this.campaignType="VPR",this.locale="de-DE",this.apiPath="https://api.vviinn.com",this.useCarousel=!0,this.showScroll=!0,this.cssUrl=null,this.recommendations=[],this.loaded=!1,this.productImageLoadedSubject=new vt}handleProductIdChange(){this.getRecommendations()}handleCampaignTypeChange(){this.getRecommendations()}handleApiPathChange(t){d.apiPath=t,this.getRecommendations()}handleImageLoading({detail:t}){this.productImageLoadedSubject.next(t)}trackRecommendationView({detail:t}){const i=k(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(i)}trackRecommendationClick({detail:t}){const i=C(Object.assign({session_id:this.uiSessionId},t));this.trackingApi.trackEvent(i).finally((()=>{const i=this.recommendations.find((i=>i.productId===t.product));i&&i.deeplink&&(window.location.href=i.deeplink)}))}connectedCallback(){d.apiPath=this.apiPath,d.currencySign=this.currencySign,d.locale=this.locale,this.uiSessionId=_(),this.trackingApi=P(this.apiPath,this.token);const t=R({action:"open",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}disconnectedCallback(){const t=R({action:"close",session_id:this.uiSessionId});this.trackingApi.trackEvent(t)}async componentWillLoad(){d.pricePrefix=this.pricePrefix,d.currencySign=this.currencySign,this.getRecommendations()}async getRecommendations(){if(void 0===this.productId||void 0===this.token)return;const t=this.campaignType.length>0?this.campaignType:"VPR",i=T(this.token),e=c.pipe(w.of((t=>{return c.pipe("VPR"===t?{_tag:"VPR"}:{_tag:"VCS"},(i=()=>N,e=()=>W,t=>(t=>"VPR"===t._tag)(t)?i():e()));var i,e})(t)),w.ap(w.of(this.productId)),w.ap(w.of(i)),w.flatten),s=await e();c.pipe(s,h.fold((t=>this.handleError(t)),(t=>this.handleRecommendationsSucces(t))))}handleError(t){console.log("ERROR:",t)}handleRecommendationsSucces(t){var i;this.recommendations=null!==(i=null==t?void 0:t.extended)&&void 0!==i?i:t,l.results=this.recommendations,this.loaded=!0,this.productIds=this.recommendations.map((t=>t.productId)),this.productImageLoadedSubject.subscribe((t=>{this.productIds=this.productIds.filter((i=>i!==t)),0===this.productIds.length&&this.recommendationsLoaded.emit()}))}isExternalCSS(){return this.cssUrl&&this.cssUrl.length>0}renderExternalCSS(){return this.isExternalCSS()?i("link",{href:this.cssUrl,rel:"stylesheet"}):""}render(){return i(e,{class:{loaded:this.loaded,empty:0==this.recommendations.length,[this.mode]:!0},"aria-hidden":this.loaded?"false":"true"},this.renderExternalCSS(),i("style",null,d.fallbackStyles),i("h2",{part:"recommendations-title"},this.blockTitle),this.useCarousel?this.renderCarousel():this.renderResults())}renderRecommendation(t,e){return i("vviinn-product-card",{part:"product-part",productId:t.productId,productTitle:t.title,deeplink:t.deeplink,image:t.image.thumbnail,brand:t.brand,imageWidth:this.imageWidth,imageRatio:1,price:t.price.actual,salePrice:t.price.sale,responsive:"grid"===this.mode,dimmedBackground:this.useDimmedBackgroundInCard(),index:e})}useDimmedBackgroundInCard(){return"continuity"===this.mode||!this.useCarousel}renderResults(){return i("div",{class:"recommendations-grid",part:"recommendations-grid"},this.recommendations.map(((t,i)=>this.renderRecommendation(t,i))))}renderCarousel(){return i("vviinn-carousel",{mode:this.mode,imageWidth:this.imageWidth,showScroll:this.showScroll,recommendations:this.recommendations})}get el(){return s(this)}static get watchers(){return{productId:["handleProductIdChange"],campaignType:["handleCampaignTypeChange"],apiPath:["handleApiPathChange"]}}};ft.style=":host{display:grid;grid-gap:1rem;width:100%}:host(:not(.loaded)){position:absolute;visibility:hidden}:host(.grid) vviinn-product-card::part(image){border:1px solid #DDDDDD;width:100%}h2{margin:0}vviinn-product-card::part(price-container){align-self:flex-start;text-align:left;display:flex}.results{display:grid;grid-gap:1rem}.visually-hidden{position:absolute;top:0;left:0;z-index:-1;height:0;width:0}h2{margin:0}:host(.grid) h2{justify-content:center}:host(.grid) vviinn-product-card::part(image){min-width:100%}:host(.grid) vviinn-product-card::part(image-link){width:100%}:host(.grid) vviinn-product-card::part(title),:host(.grid) vviinn-product-card::part(brand),:host(.grid) vviinn-product-card::part(type){text-align:center}:host(.grid) vviinn-product-card::part(price-container){align-self:center}:host(.continuity) vviinn-product-card::part(title),:host(.continuity) vviinn-product-card::part(brand),:host(.continuity) vviinn-product-card::part(type),:host(.continuity) vviinn-product-card::part(deeplink){text-align:left;max-width:unset;align-self:start}";export{S as vviinn_carousel,$ as vviinn_product_card,ft as vviinn_vpr_widget}
@@ -1 +0,0 @@
1
- import{h as n}from"./p-bad1809f.js";const i=["vviinn-onboarding-title","vviinn-onboarding-card-1-icon","vviinn-onboarding-card-1-text","vviinn-onboarding-card-2-icon","vviinn-onboarding-card-2-text","vviinn-onboarding-card-3-icon","vviinn-onboarding-card-3-text","vviinn-example-images-title","vviinn-example-images-1","vviinn-example-images-2","vviinn-example-images-3","vviinn-example-images-4","vviinn-teaser-text","vviinn-image-upload-button-text","vviinn-privacy-badge-text"],a=i=>n("slot",{name:i}),e=()=>i.map(a),v=(n,i)=>{i.innerHTML=n.outerHTML},o=(n,i)=>{n.connectedCallback=function(){document.addEventListener("globalSlotsChanged",(({detail:n})=>{var a;(n=>Array.from(n.shadowRoot.querySelectorAll("slot")))(i).reduce((a=n,(n,i)=>{const e=a.find((v=i,n=>v.getAttribute("name")===n.getAttribute("slot")));var v;return e&&n.set(i,e),n}),new Map).forEach(v)}),!0)},n.connectedCallback.call(n)};export{e as S,o as s}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as o,H as r,g as e}from"./p-bad1809f.js";import{b as a}from"./p-118ac907.js";let n=class{constructor(o){t(this,o),this.modalClosed=i(this,"modalClosed",7),this.position="bottom",this.sourceImage=null,this.widgetScrollbar=!1,this.state="idle"}bodyClickListener(t){const{clientX:i,clientY:o}=t,r=this.getSidebarRectangle();r&&(i>=r.left&&i<=r.right&&o>=r.top&&o<=r.bottom||(this.state="closed"))}getClassMap(){return{[this.position]:!0,[this.state]:!0}}getSidebarRectangle(){var t;return null===(t=this.el.shadowRoot.querySelector("aside"))||void 0===t?void 0:t.getBoundingClientRect()}render(){return o(r,{class:this.getClassMap()},o("aside",{class:"sidebar",part:"body",onAnimationEnd:t=>this.handleAnimationEnd(t)},o("header",{class:{"contains-source-img":this.isSourceImageValid()},part:"sidebar-header"},this.isSourceImageValid()?this.renderSourceImage():null,o("span",{class:"title",part:"title"},this.sidebarTitle),o("button",{class:"close-sidebar",onClick:()=>this.state="closed"},o(a,null))),o("main",{part:"sidebar-content"},o("vviinn-vpr-widget",{exportparts:"brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title: product-title",token:this.token,productId:this.productId,imageWidth:300,blockTitle:"",mode:"bottom"===this.position?"continuity":"grid",useCarousel:"bottom"===this.position,onRecommendationsLoaded:()=>this.state="open",showScroll:this.widgetScrollbar}))))}renderSourceImage(){return o("img",{class:"source-image",part:"source-image",src:this.sourceImage})}isSourceImageValid(){var t;return(null===(t=this.sourceImage)||void 0===t?void 0:t.length)>0}handleAnimationEnd({animationName:t}){t.includes("slideOut")&&this.modalClosed.emit()}get el(){return e(this)}};n.style=":host{--vviinn-carousel-columns:0;box-sizing:border-box;display:block;display:flex;height:100vh;left:0;position:fixed;top:0;transition:background 0.1s ease-in-out;width:100vw}:host(.open){background:rgba(0, 0, 0, 0.2)}:host(.bottom){flex-direction:column;justify-content:end}:host(.right){flex-direction:row;justify-content:flex-end}header{position:relative;text-align:center;padding:32px}header.contains-source-img{display:grid;justify-items:center;grid-gap:12px}img.source-image{width:64px;height:64px;border-radius:50%;box-shadow:0px 2px 4px rgba(0, 0, 0, 0.15);padding:8px}:host(.right) header{box-shadow:0px 2px 6px rgba(0, 0, 0, 0.1)}main{padding:0 24px}:host(.right) main{overflow:auto}.sidebar{background:white;box-sizing:border-box;display:flex;flex-direction:column}:host(.bottom.idle) .sidebar,:host(.bottom.closed) .sidebar{transform:translateY(100%)}:host(.bottom.closed) .sidebar{-webkit-animation-name:slideOutFromBottom;animation-name:slideOutFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.bottom.open) .sidebar{-webkit-animation-name:slideInFromBottom;animation-name:slideInFromBottom;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.idle) .sidebar{transform:translateX(100%)}:host(.right.closed) .sidebar{-webkit-animation-name:slideOutFromRight;animation-name:slideOutFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right.open) .sidebar{-webkit-animation-name:slideInFromRight;animation-name:slideInFromRight;-webkit-animation-duration:0.5s;animation-duration:0.5s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}:host(.right) .sidebar{max-width:480px}:host(.right) vviinn-vpr-widget::part(recommendations-grid){display:grid;grid-template-columns:repeat(2, 1fr);grid-gap:24px}:host(.right) vviinn-vpr-widget{overflow:auto}:host(.right) vviinn-vpr-widget::part(image){border:none}.title{font-style:normal;font-weight:500;font-size:28px;line-height:40px;text-align:center;color:#000000}vviinn-vpr-widget::part(title),vviinn-vpr-widget::part(brand),vviinn-vpr-widget::part(type){text-align:left}vviinn-vpr-widget::part(price-container){align-self:start}.close-sidebar{background:transparent;border:none;cursor:pointer;margin:0;padding:0;position:absolute;right:24px;top:24px}@-webkit-keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideInFromBottom{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slideOutFromBottom{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes slideInFromRight{from{transform:translateX(100%)}to{transform:translateX(0)}}@-webkit-keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes slideOutFromRight{from{transform:translateX(0)}to{transform:translateX(100%)}}";export{n as vviinn_recommendations_sidebar}
@@ -1 +0,0 @@
1
- import{h as a}from"./p-bad1809f.js";const l=()=>a("svg",{width:"12",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M0 10 10 0l1.4 1.4L2.8 10l8.6 8.6L10 20 0 10Z"})),h=()=>a("svg",{width:"22",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.567 3H19A3.01 3.01 0 0 1 22 6v7.69h-2V6c0-.55-.451-1-1.001-1h-3.502l-2.03-3H8.543L6.603 5H3.001c-.55 0-1 .45-1 1v11c0 .55.45 1 1 1h5.933v2H3.001A3.01 3.01 0 0 1 0 17V6c0-1.65 1.35-3 3.001-3h2.522l1.94-3h7.074l2.03 3Zm-5.562 3c1.28 0 2.561.48 3.542 1.46h-.01a4.992 4.992 0 0 1 .64 6.29l3.051 3.05-1.41 1.41-3.052-3.05c-.84.55-1.8.83-2.76.83-1.282 0-2.562-.48-3.543-1.46a5.002 5.002 0 0 1 0-7.07A5.026 5.026 0 0 1 11.005 6Zm-2.771 5a2.763 2.763 0 0 0 2.771 2.77A2.763 2.763 0 0 0 13.776 11a2.763 2.763 0 0 0-2.771-2.77A2.763 2.763 0 0 0 8.234 11Z",fill:"#161616"})),t=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{fill:"#393939",d:"M74.55 20a5.06 5.06 0 014.14 2l4.72 9.32.1.18.11.17A5.07 5.07 0 0087.93 34h13.87c5.07 0 9.2 3.59 9.2 8v50c0 4.41-4.13 8-9.2 8H18.2c-5.07 0-9.2-3.59-9.2-8V42c0-4.41 4.13-8 9.2-8h13.87a5.072 5.072 0 004.31-2.34l.11-.17.1-.18L41.31 22a5.06 5.06 0 014.14-2h29.1zm0-4h-29.1a9 9 0 00-7.6 4L33 29.5a1.13 1.13 0 01-1 .5H18.2C10.91 30 5 35.37 5 42v50c0 6.63 5.91 12 13.2 12h83.6c7.29 0 13.2-5.37 13.2-12V42c0-6.63-5.91-12-13.2-12H87.93a1.13 1.13 0 01-1-.5L82.15 20a9 9 0 00-7.6-4z"}),a("path",{fill:"#393939",d:"M96 46a4 4 0 110 8 4 4 0 010-8zm0-4a8 8 0 100 16.001A8 8 0 0096 42z"}),a("path",{class:"colored",d:"M60 42a24 24 0 100 48.001A24 24 0 0060 42zm12 26H62v10a2 2 0 01-4 0V68H48a2 2 0 010-4h10V54a2 2 0 014 0v10h10a2 2 0 110 4z"})),s=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{fill:"#393939",d:"M110.35 96.52l-24.8-22.66a6.22 6.22 0 00-8.14-.27l-.09.07-10.57 8.93-18.33-17.88a6.001 6.001 0 00-8.51-.35L8.69 91.49a2 2 0 002.62 3l31.3-27.2a2 2 0 012.233-.359 2 2 0 01.637.479l.1.1 45 43.9a2.005 2.005 0 002.83-.03 2.003 2.003 0 00-.03-2.83L69.63 85.39l10.22-8.63a2.3 2.3 0 013 .07l24.77 22.65c.377.343.871.529 1.38.52a2 2 0 001.35-3.48zM75 31a10 10 0 110 20 10 10 0 010-20zm0-4a14 14 0 100 28 14 14 0 000-28z"}),a("path",{class:"colored",d:"M12 36H8V20A12 12 0 0120 8h16v4H20a8 8 0 00-8 8v16zM112 36h-4V20a8.001 8.001 0 00-8-8H84V8h16a11.998 11.998 0 0112 12v16zM36 112H20a11.998 11.998 0 01-12-12V84h4v16a8 8 0 008 8h16v4zM100 112H84v-4h16a8 8 0 008-8V84h4v16c0 3.183-1.264 6.235-3.515 8.485A11.996 11.996 0 01100 112z"})),v=()=>a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",fill:"none"},a("defs",null),a("path",{class:"colored",d:"M84.09 43.24a.53.53 0 00-.29-.48L60.28 29.4a.522.522 0 00-.27-.07.531.531 0 00-.28.07L36.2 42.76a.54.54 0 000 1l23.53 13.3a.54.54 0 00.55 0L83.8 43.72a.53.53 0 00.29-.48zM57.28 61.23L33.73 47.88a.569.569 0 00-.85.48V75a.54.54 0 00.29.48L56.72 88.8a.56.56 0 00.56 0 .53.53 0 00.28-.48V61.71a.56.56 0 00-.28-.48zM86.84 47.88a.63.63 0 00-.29-.08.55.55 0 00-.28.08L62.73 61.23a.56.56 0 00-.28.48v26.61a.53.53 0 00.28.48.56.56 0 00.56 0l23.54-13.29a.54.54 0 00.29-.48V48.36a.55.55 0 00-.28-.48z"}),a("path",{class:"colored",d:"M100 7.94H20a12 12 0 00-12 12v80a11.998 11.998 0 0012 12h80c3.183 0 6.235-1.264 8.485-3.515A11.996 11.996 0 00112 99.94v-80a11.998 11.998 0 00-12-12zm-8 69.24a1.69 1.69 0 01-.85 1.45l-30.31 17.1a1.77 1.77 0 01-1.67 0l-30.32-17.1a1.689 1.689 0 01-.85-1.45V42.82a1.66 1.66 0 01.85-1.45l30.32-17.21a1.71 1.71 0 011.67 0l30.31 17.21a1.67 1.67 0 01.85 1.45v34.36z"})),w=()=>a("svg",{width:"14",height:"11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M5 10.414 0 5.413 1.413 4 5 7.586 12.585 0 14 1.415l-9 8.999Z",fill:"var(--color-primary, var(--color-primary-system))"})),i=()=>a("svg",{width:"9",height:"16",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"m9 8-7.895 8L0 14.88 6.79 8 0 1.12 1.105 0 9 8Z"})),e=()=>a("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 2C3.35 2 2 3.35 2 5v2H0V5c0-2.76 2.24-5 5-5h2v2H5Zm5 3c1.28 0 2.56.48 3.54 1.46h-.01a4.994 4.994 0 0 1 .64 6.29l3.05 3.05-1.41 1.41-3.05-3.05c-.84.55-1.8.83-2.76.83a4.98 4.98 0 0 1-3.54-1.46 5.003 5.003 0 0 1 0-7.07C7.44 5.49 8.72 5 10 5Zm-2.77 5c0 .74.29 1.44.81 1.96s1.22.81 1.96.81 1.44-.29 1.96-.81.81-1.22.81-1.96-.29-1.44-.81-1.96-1.22-.81-1.96-.81-1.44.29-1.96.81-.81 1.22-.81 1.96ZM2 15v-2H0v2c0 2.76 2.24 5 5 5h2v-2H5c-1.65 0-3-1.35-3-3ZM13 0h2c2.76 0 5 2.24 5 5v2h-2V5c0-1.65-1.35-3-3-3h-2V0Z",fill:"#161616"})),d=()=>a("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a("path",{d:"M16 1.4L14.6 0L8 6.6L1.4 0L0 1.4L6.6 8L0 14.6L1.4 16L8 9.4L14.6 16L16 14.6L9.4 8L16 1.4Z",fill:"#161616"}));export{l as A,i as C,t as O,e as V,h as a,d as b,w as c,s as d,v as e}
@@ -1 +0,0 @@
1
- function t(t){return t}function r(t,r,n,e,s,u,c,a,i){switch(arguments.length){case 1:return t;case 2:return function(){return r(t.apply(this,arguments))};case 3:return function(){return n(r(t.apply(this,arguments)))};case 4:return function(){return e(n(r(t.apply(this,arguments))))};case 5:return function(){return s(e(n(r(t.apply(this,arguments)))))};case 6:return function(){return u(s(e(n(r(t.apply(this,arguments))))))};case 7:return function(){return c(u(s(e(n(r(t.apply(this,arguments)))))))};case 8:return function(){return a(c(u(s(e(n(r(t.apply(this,arguments))))))))};case 9:return function(){return i(a(c(u(s(e(n(r(t.apply(this,arguments)))))))))}}}function n(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return t}function e(t,r,n,e,s,u,c,a,i){switch(arguments.length){case 1:return t;case 2:return r(t);case 3:return n(r(t));case 4:return e(n(r(t)));case 5:return s(e(n(r(t))));case 6:return u(s(e(n(r(t)))));case 7:return c(u(s(e(n(r(t))))));case 8:return a(c(u(s(e(n(r(t)))))));case 9:return i(a(c(u(s(e(n(r(t))))))));default:for(var o=arguments[0],f=1;f<arguments.length;f++)o=arguments[f](o);return o}}var s=function(t){return"None"===t._tag},u=function(t){return"Some"===t._tag},c={_tag:"None"},a=function(t){return{_tag:"Some",value:t}},i=function(t){return"Left"===t._tag},o=function(t){return{_tag:"Left",left:t}},f=function(t){return{_tag:"Right",right:t}},h=Object.prototype.hasOwnProperty,x=function(t){return{concat:function(r,n){var e={};for(var s in t)h.call(t,s)&&(e[s]=t[s].concat(r[s],n[s]));return e}}},y=function(){return{concat:t}},z=function(){return{concat:function(t,r){return r}}},d={concat:function(t,r){return t+r}};const g={concat:(t,r)=>t-r},l=({x:t,y:r})=>({x:t,y:r}),p=({clientX:t,clientY:r})=>({x:t,y:r}),v=x({x:g,y:g}),w=x({x:d,y:d});var N;!function(t){t[t.East=0]="East",t[t.North=1]="North",t[t.NorthEast=2]="NorthEast",t[t.NorthWest=3]="NorthWest",t[t.South=4]="South",t[t.SouthEast=5]="SouthEast",t[t.SouthWest=6]="SouthWest",t[t.West=7]="West"}(N||(N={}));const S=t=>{switch(t){case N.East:return"e-resize";case N.North:return"n-resize";case N.NorthEast:return"ne-resize";case N.NorthWest:return"nw-resize";case N.South:return"s-resize";case N.SouthEast:return"se-resize";case N.SouthWest:return"sw-resize";case N.West:return"w-resize";default:return"pointer"}},_=t=>[{position:l(t),direction:N.NorthWest},{position:w.concat(l(t),{x:t.width,y:0}),direction:N.NorthEast},{position:w.concat(l(t),{x:0,y:t.height}),direction:N.SouthWest},{position:w.concat(l(t),{x:t.width,y:t.height}),direction:N.SouthEast}];export{N as H,i as a,t as b,r as c,x as d,z as e,y as f,w as g,h,s as i,l as j,u as k,o as l,_ as m,c as n,v as o,e as p,p as q,f as r,a as s,n as t,S as u}